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
44,000
binding_system_resolve_binding
tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c
uint64_t binding_system_resolve_binding(BindingSystem* system, StringId name) { assert(system != NULL); assert(name != NULL); // Get current scope uint64_t scope_id = system->current_scope_id; // Search for binding in current scope and parent scopes while (scope_id != 0) { // Search for binding in current scope for (size_t i = 0; i < system->binding_table.count; i++) { if (system->binding_table.scope_ids[i] == scope_id && strcmp(system->binding_table.names[i], name) == 0) { // Found binding return system->binding_table.binding_ids[i]; } } // Get parent scope scope_id = binding_system_get_parent_scope(system, scope_id); } // Binding not found return 0; }
O3
c
binding_system_resolve_binding: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax testq %rdi, %rdi je 0x82af movq %rsi, %r14 testq %rsi, %rsi je 0x82ce movq %rdi, %rbx movq 0x110(%rdi), %r12 testq %r12, %r12 je 0x8294 movq 0x48(%rbx), %r13 testq %r13, %r13 je 0x8281 movq 0x20(%rbx), %r15 xorl %ebp, %ebp cmpq %r12, (%r15,%rbp,8) jne 0x8279 movq 0x10(%rbx), %rax movq (%rax,%rbp,8), %rdi movq %r14, %rsi callq 0x21f0 testl %eax, %eax je 0x8298 incq %rbp cmpq %rbp, %r13 jne 0x825f movq %rbx, %rdi movq %r12, %rsi callq 0x7f8f movq %rax, %r12 testq %rax, %rax jne 0x8250 xorl %eax, %eax jmp 0x82a0 movq 0x18(%rbx), %rax movq (%rax,%rbp,8), %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x1317b(%rip), %rdi # 0x1b431 leaq 0x13367(%rip), %rsi # 0x1b624 leaq 0x1340f(%rip), %rcx # 0x1b6d3 movl $0x56, %edx callq 0x2180 leaq 0x13811(%rip), %rdi # 0x1bae6 leaq 0x13348(%rip), %rsi # 0x1b624 leaq 0x133f0(%rip), %rcx # 0x1b6d3 movl $0x57, %edx callq 0x2180
binding_system_resolve_binding: push rbp push r15 push r14 push r13 push r12 push rbx push rax test rdi, rdi jz short loc_82AF mov r14, rsi test rsi, rsi jz loc_82CE mov rbx, rdi mov r12, [rdi+110h] test r12, r12 jz short loc_8294 loc_8250: mov r13, [rbx+48h] test r13, r13 jz short loc_8281 mov r15, [rbx+20h] xor ebp, ebp loc_825F: cmp [r15+rbp*8], r12 jnz short loc_8279 mov rax, [rbx+10h] mov rdi, [rax+rbp*8] mov rsi, r14 call _strcmp test eax, eax jz short loc_8298 loc_8279: inc rbp cmp r13, rbp jnz short loc_825F loc_8281: mov rdi, rbx mov rsi, r12 call binding_system_get_parent_scope mov r12, rax test rax, rax jnz short loc_8250 loc_8294: xor eax, eax jmp short loc_82A0 loc_8298: mov rax, [rbx+18h] mov rax, [rax+rbp*8] loc_82A0: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_82AF: lea rdi, aSystemNull; "system != NULL" lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"... lea rcx, aUint64TBinding_3; "uint64_t binding_system_resolve_binding"... mov edx, 56h ; 'V' call ___assert_fail loc_82CE: lea rdi, aFunctionNameNu+9; "name != NULL" lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"... lea rcx, aUint64TBinding_3; "uint64_t binding_system_resolve_binding"... mov edx, 57h ; 'W' call ___assert_fail
long long binding_system_resolve_binding(_QWORD *a1, long long a2) { long long parent_scope; // r12 long long v3; // r13 long long v4; // r15 long long v5; // rbp if ( !a1 ) __assert_fail( "system != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c", 86LL, "uint64_t binding_system_resolve_binding(BindingSystem *, StringId)"); if ( !a2 ) __assert_fail( "name != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c", 87LL, "uint64_t binding_system_resolve_binding(BindingSystem *, StringId)"); parent_scope = a1[34]; if ( !parent_scope ) return 0LL; while ( 1 ) { v3 = a1[9]; if ( v3 ) break; LABEL_9: parent_scope = binding_system_get_parent_scope(a1, parent_scope); if ( !parent_scope ) return 0LL; } v4 = a1[4]; v5 = 0LL; while ( *(_QWORD *)(v4 + 8 * v5) != parent_scope || (unsigned int)strcmp(*(_QWORD *)(a1[2] + 8 * v5), a2) ) { if ( v3 == ++v5 ) goto LABEL_9; } return *(_QWORD *)(a1[3] + 8 * v5); }
binding_system_resolve_binding: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX TEST RDI,RDI JZ 0x001082af MOV R14,RSI TEST RSI,RSI JZ 0x001082ce MOV RBX,RDI MOV R12,qword ptr [RDI + 0x110] TEST R12,R12 JZ 0x00108294 LAB_00108250: MOV R13,qword ptr [RBX + 0x48] TEST R13,R13 JZ 0x00108281 MOV R15,qword ptr [RBX + 0x20] XOR EBP,EBP LAB_0010825f: CMP qword ptr [R15 + RBP*0x8],R12 JNZ 0x00108279 MOV RAX,qword ptr [RBX + 0x10] MOV RDI,qword ptr [RAX + RBP*0x8] MOV RSI,R14 CALL 0x001021f0 TEST EAX,EAX JZ 0x00108298 LAB_00108279: INC RBP CMP R13,RBP JNZ 0x0010825f LAB_00108281: MOV RDI,RBX MOV RSI,R12 CALL 0x00107f8f MOV R12,RAX TEST RAX,RAX JNZ 0x00108250 LAB_00108294: XOR EAX,EAX JMP 0x001082a0 LAB_00108298: MOV RAX,qword ptr [RBX + 0x18] MOV RAX,qword ptr [RAX + RBP*0x8] LAB_001082a0: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001082af: LEA RDI,[0x11b431] LEA RSI,[0x11b624] LEA RCX,[0x11b6d3] MOV EDX,0x56 CALL 0x00102180 LAB_001082ce: LEA RDI,[0x11bae6] LEA RSI,[0x11b624] LEA RCX,[0x11b6d3] MOV EDX,0x57 CALL 0x00102180
int8 binding_system_resolve_binding(long param_1,char *param_2) { long lVar1; long lVar2; int iVar3; long lVar4; long lVar5; if (param_1 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("system != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c" ,0x56,"uint64_t binding_system_resolve_binding(BindingSystem *, StringId)"); } if (param_2 != (char *)0x0) { lVar4 = *(long *)(param_1 + 0x110); do { if (lVar4 == 0) { return 0; } lVar1 = *(long *)(param_1 + 0x48); if (lVar1 != 0) { lVar2 = *(long *)(param_1 + 0x20); lVar5 = 0; do { if ((*(long *)(lVar2 + lVar5 * 8) == lVar4) && (iVar3 = strcmp(*(char **)(*(long *)(param_1 + 0x10) + lVar5 * 8),param_2), iVar3 == 0) ) { return *(int8 *)(*(long *)(param_1 + 0x18) + lVar5 * 8); } lVar5 = lVar5 + 1; } while (lVar1 != lVar5); } lVar4 = binding_system_get_parent_scope(param_1,lVar4); } while( true ); } /* WARNING: Subroutine does not return */ __assert_fail("name != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c" ,0x57,"uint64_t binding_system_resolve_binding(BindingSystem *, StringId)"); }
44,001
JS_ArraySpeciesCreate
bluesky950520[P]quickjs/quickjs.c
static JSValue JS_ArraySpeciesCreate(JSContext *ctx, JSValue obj, JSValue len_val) { JSValue ctor, ret, species; int res; JSContext *realm; res = JS_IsArray(ctx, obj); if (res < 0) return JS_EXCEPTION; if (!res) return js_array_constructor(ctx, JS_UNDEFINED, 1, &len_val); ctor = JS_GetProperty(ctx, obj, JS_ATOM_constructor); if (JS_IsException(ctor)) return ctor; if (JS_IsConstructor(ctx, ctor)) { /* legacy web compatibility */ realm = JS_GetFunctionRealm(ctx, ctor); if (!realm) { JS_FreeValue(ctx, ctor); return JS_EXCEPTION; } if (realm != ctx && js_same_value(ctx, ctor, realm->array_ctor)) { JS_FreeValue(ctx, ctor); ctor = JS_UNDEFINED; } } if (JS_IsObject(ctor)) { species = JS_GetProperty(ctx, ctor, JS_ATOM_Symbol_species); JS_FreeValue(ctx, ctor); if (JS_IsException(species)) return species; ctor = species; if (JS_IsNull(ctor)) ctor = JS_UNDEFINED; } if (JS_IsUndefined(ctor)) { return js_array_constructor(ctx, JS_UNDEFINED, 1, &len_val); } else { ret = JS_CallConstructor(ctx, ctor, 1, &len_val); JS_FreeValue(ctx, ctor); return ret; } }
O0
c
JS_ArraySpeciesCreate: subq $0xe8, %rsp movq %rsi, 0xc8(%rsp) movq %rdx, 0xd0(%rsp) movq %rcx, 0xb8(%rsp) movq %r8, 0xc0(%rsp) movq %rdi, 0xb0(%rsp) movq 0xb0(%rsp), %rdi movq 0xc8(%rsp), %rsi movq 0xd0(%rsp), %rdx callq 0x3fe90 movl %eax, 0x7c(%rsp) cmpl $0x0, 0x7c(%rsp) jge 0xd4133 movl $0x0, 0xd8(%rsp) movq $0x6, 0xe0(%rsp) jmp 0xd452e cmpl $0x0, 0x7c(%rsp) jne 0xd4184 movq 0xb0(%rsp), %rdi movl $0x0, 0x60(%rsp) movq $0x3, 0x68(%rsp) movq 0x60(%rsp), %rsi movq 0x68(%rsp), %rdx movl $0x1, %ecx leaq 0xb8(%rsp), %r8 callq 0x5d0b0 movq %rax, 0xd8(%rsp) movq %rdx, 0xe0(%rsp) jmp 0xd452e movq 0xb0(%rsp), %rdi movq 0xc8(%rsp), %rsi movq 0xd0(%rsp), %rdx movl $0x3d, %ecx callq 0x30070 movq %rax, 0x50(%rsp) movq %rdx, 0x58(%rsp) movq 0x50(%rsp), %rax movq %rax, 0xa0(%rsp) movq 0x58(%rsp), %rax movq %rax, 0xa8(%rsp) movq 0xa0(%rsp), %rdi movq 0xa8(%rsp), %rsi callq 0x29fb0 cmpl $0x0, %eax je 0xd4209 movq 0xa0(%rsp), %rax movq %rax, 0xd8(%rsp) movq 0xa8(%rsp), %rax movq %rax, 0xe0(%rsp) jmp 0xd452e movq 0xb0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx callq 0x3e3e0 cmpl $0x0, %eax je 0xd431a movq 0xb0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx callq 0x9be60 movq %rax, 0x70(%rsp) cmpq $0x0, 0x70(%rsp) jne 0xd4292 movq 0xb0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx callq 0x29f80 movl $0x0, 0xd8(%rsp) movq $0x6, 0xe0(%rsp) jmp 0xd452e movq 0x70(%rsp), %rax cmpq 0xb0(%rsp), %rax je 0xd4318 movq 0xb0(%rsp), %rdi movq 0x70(%rsp), %rax movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx movq 0x68(%rax), %rcx movq 0x70(%rax), %r8 callq 0x3be00 cmpl $0x0, %eax je 0xd4318 movq 0xb0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx callq 0x29f80 movl $0x0, 0x40(%rsp) movq $0x3, 0x48(%rsp) movq 0x40(%rsp), %rax movq %rax, 0xa0(%rsp) movq 0x48(%rsp), %rax movq %rax, 0xa8(%rsp) jmp 0xd431a movq 0xa0(%rsp), %rdi movq 0xa8(%rsp), %rsi callq 0x31260 cmpl $0x0, %eax je 0xd4441 movq 0xb0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx movl $0xdd, %ecx callq 0x30070 movq %rax, 0x30(%rsp) movq %rdx, 0x38(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x88(%rsp) movq 0xb0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx callq 0x29f80 movq 0x80(%rsp), %rdi movq 0x88(%rsp), %rsi callq 0x29fb0 cmpl $0x0, %eax je 0xd43da movq 0x80(%rsp), %rax movq %rax, 0xd8(%rsp) movq 0x88(%rsp), %rax movq %rax, 0xe0(%rsp) jmp 0xd452e movq 0x80(%rsp), %rax movq %rax, 0xa0(%rsp) movq 0x88(%rsp), %rax movq %rax, 0xa8(%rsp) movq 0xa0(%rsp), %rdi movq 0xa8(%rsp), %rsi callq 0x34530 cmpl $0x0, %eax je 0xd443f movl $0x0, 0x20(%rsp) movq $0x3, 0x28(%rsp) movq 0x20(%rsp), %rax movq %rax, 0xa0(%rsp) movq 0x28(%rsp), %rax movq %rax, 0xa8(%rsp) jmp 0xd4441 movq 0xa0(%rsp), %rdi movq 0xa8(%rsp), %rsi callq 0x34550 cmpl $0x0, %eax je 0xd44a5 movq 0xb0(%rsp), %rdi movl $0x0, 0x10(%rsp) movq $0x3, 0x18(%rsp) movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx movl $0x1, %ecx leaq 0xb8(%rsp), %r8 callq 0x5d0b0 movq %rax, 0xd8(%rsp) movq %rdx, 0xe0(%rsp) jmp 0xd452e movq 0xb0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx movl $0x1, %ecx leaq 0xb8(%rsp), %r8 callq 0x4e840 movq %rax, (%rsp) movq %rdx, 0x8(%rsp) movq (%rsp), %rax movq %rax, 0x90(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x98(%rsp) movq 0xb0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx callq 0x29f80 movq 0x90(%rsp), %rax movq %rax, 0xd8(%rsp) movq 0x98(%rsp), %rax movq %rax, 0xe0(%rsp) movq 0xd8(%rsp), %rax movq 0xe0(%rsp), %rdx addq $0xe8, %rsp retq nopw %cs:(%rax,%rax)
JS_ArraySpeciesCreate: sub rsp, 0E8h mov [rsp+0E8h+var_20], rsi mov [rsp+0E8h+var_18], rdx mov [rsp+0E8h+var_30], rcx mov [rsp+0E8h+var_28], r8 mov [rsp+0E8h+var_38], rdi mov rdi, [rsp+0E8h+var_38] mov rsi, [rsp+0E8h+var_20] mov rdx, [rsp+0E8h+var_18] call JS_IsArray mov [rsp+0E8h+var_6C], eax cmp [rsp+0E8h+var_6C], 0 jge short loc_D4133 mov dword ptr [rsp+0E8h+var_10], 0 mov [rsp+0E8h+var_8], 6 jmp loc_D452E loc_D4133: cmp [rsp+0E8h+var_6C], 0 jnz short loc_D4184 mov rdi, [rsp+0E8h+var_38] mov dword ptr [rsp+0E8h+var_88], 0 mov [rsp+0E8h+var_80], 3 mov rsi, [rsp+0E8h+var_88] mov rdx, [rsp+0E8h+var_80] mov ecx, 1 lea r8, [rsp+0E8h+var_30] call js_array_constructor mov [rsp+0E8h+var_10], rax mov [rsp+0E8h+var_8], rdx jmp loc_D452E loc_D4184: mov rdi, [rsp+0E8h+var_38] mov rsi, [rsp+0E8h+var_20] mov rdx, [rsp+0E8h+var_18] mov ecx, 3Dh ; '=' call JS_GetProperty mov [rsp+0E8h+var_98], rax mov [rsp+0E8h+var_90], rdx mov rax, [rsp+0E8h+var_98] mov [rsp+0E8h+var_48], rax mov rax, [rsp+0E8h+var_90] mov [rsp+0E8h+var_40], rax mov rdi, [rsp+0E8h+var_48] mov rsi, [rsp+0E8h+var_40] call JS_IsException_1 cmp eax, 0 jz short loc_D4209 mov rax, [rsp+0E8h+var_48] mov [rsp+0E8h+var_10], rax mov rax, [rsp+0E8h+var_40] mov [rsp+0E8h+var_8], rax jmp loc_D452E loc_D4209: mov rdi, [rsp+0E8h+var_38] mov rsi, [rsp+0E8h+var_48] mov rdx, [rsp+0E8h+var_40] call JS_IsConstructor cmp eax, 0 jz loc_D431A mov rdi, [rsp+0E8h+var_38] mov rsi, [rsp+0E8h+var_48] mov rdx, [rsp+0E8h+var_40] call JS_GetFunctionRealm mov [rsp+0E8h+var_78], rax cmp [rsp+0E8h+var_78], 0 jnz short loc_D4292 mov rdi, [rsp+0E8h+var_38] mov rsi, [rsp+0E8h+var_48] mov rdx, [rsp+0E8h+var_40] call JS_FreeValue mov dword ptr [rsp+0E8h+var_10], 0 mov [rsp+0E8h+var_8], 6 jmp loc_D452E loc_D4292: mov rax, [rsp+0E8h+var_78] cmp rax, [rsp+0E8h+var_38] jz short loc_D4318 mov rdi, [rsp+0E8h+var_38] mov rax, [rsp+0E8h+var_78] mov rsi, [rsp+0E8h+var_48] mov rdx, [rsp+0E8h+var_40] mov rcx, [rax+68h] mov r8, [rax+70h] call js_same_value cmp eax, 0 jz short loc_D4318 mov rdi, [rsp+0E8h+var_38] mov rsi, [rsp+0E8h+var_48] mov rdx, [rsp+0E8h+var_40] call JS_FreeValue mov dword ptr [rsp+0E8h+var_A8], 0 mov [rsp+0E8h+var_A0], 3 mov rax, [rsp+0E8h+var_A8] mov [rsp+0E8h+var_48], rax mov rax, [rsp+0E8h+var_A0] mov [rsp+0E8h+var_40], rax loc_D4318: jmp short $+2 loc_D431A: mov rdi, [rsp+0E8h+var_48] mov rsi, [rsp+0E8h+var_40] call JS_IsObject cmp eax, 0 jz loc_D4441 mov rdi, [rsp+0E8h+var_38] mov rsi, [rsp+0E8h+var_48] mov rdx, [rsp+0E8h+var_40] mov ecx, 0DDh call JS_GetProperty mov [rsp+0E8h+var_B8], rax mov [rsp+0E8h+var_B0], rdx mov rax, [rsp+0E8h+var_B8] mov [rsp+0E8h+var_68], rax mov rax, [rsp+0E8h+var_B0] mov [rsp+0E8h+var_60], rax mov rdi, [rsp+0E8h+var_38] mov rsi, [rsp+0E8h+var_48] mov rdx, [rsp+0E8h+var_40] call JS_FreeValue mov rdi, [rsp+0E8h+var_68] mov rsi, [rsp+0E8h+var_60] call JS_IsException_1 cmp eax, 0 jz short loc_D43DA mov rax, [rsp+0E8h+var_68] mov [rsp+0E8h+var_10], rax mov rax, [rsp+0E8h+var_60] mov [rsp+0E8h+var_8], rax jmp loc_D452E loc_D43DA: mov rax, [rsp+0E8h+var_68] mov [rsp+0E8h+var_48], rax mov rax, [rsp+0E8h+var_60] mov [rsp+0E8h+var_40], rax mov rdi, [rsp+0E8h+var_48] mov rsi, [rsp+0E8h+var_40] call JS_IsNull_1 cmp eax, 0 jz short loc_D443F mov dword ptr [rsp+0E8h+var_C8], 0 mov [rsp+0E8h+var_C0], 3 mov rax, [rsp+0E8h+var_C8] mov [rsp+0E8h+var_48], rax mov rax, [rsp+0E8h+var_C0] mov [rsp+0E8h+var_40], rax loc_D443F: jmp short $+2 loc_D4441: mov rdi, [rsp+0E8h+var_48] mov rsi, [rsp+0E8h+var_40] call JS_IsUndefined_1 cmp eax, 0 jz short loc_D44A5 mov rdi, [rsp+0E8h+var_38] mov dword ptr [rsp+0E8h+var_D8], 0 mov [rsp+0E8h+var_D0], 3 mov rsi, [rsp+0E8h+var_D8] mov rdx, [rsp+0E8h+var_D0] mov ecx, 1 lea r8, [rsp+0E8h+var_30] call js_array_constructor mov [rsp+0E8h+var_10], rax mov [rsp+0E8h+var_8], rdx jmp loc_D452E loc_D44A5: mov rdi, [rsp+0E8h+var_38] mov rsi, [rsp+0E8h+var_48] mov rdx, [rsp+0E8h+var_40] mov ecx, 1 lea r8, [rsp+0E8h+var_30] call JS_CallConstructor mov [rsp+0E8h+var_E8], rax mov [rsp+0E8h+var_E0], rdx mov rax, [rsp+0E8h+var_E8] mov [rsp+0E8h+var_58], rax mov rax, [rsp+0E8h+var_E0] mov [rsp+0E8h+var_50], rax mov rdi, [rsp+0E8h+var_38] mov rsi, [rsp+0E8h+var_48] mov rdx, [rsp+0E8h+var_40] call JS_FreeValue mov rax, [rsp+0E8h+var_58] mov [rsp+0E8h+var_10], rax mov rax, [rsp+0E8h+var_50] mov [rsp+0E8h+var_8], rax loc_D452E: mov rax, [rsp+0E8h+var_10] mov rdx, [rsp+0E8h+var_8] add rsp, 0E8h retn
long long JS_ArraySpeciesCreate( long long a1, long long a2, long long a3, long long a4, long long a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, double a10, double a11, __m128 a12, __m128 a13) { double v13; // xmm4_8 double v14; // xmm5_8 long long v15; // rdx long long v16; // rdx long long v17; // rcx long long v18; // r8 long long v19; // r9 __m128 v20; // xmm4 __m128 v21; // xmm5 long long v22; // rdx double v23; // xmm4_8 double v24; // xmm5_8 long long v25; // rdx long long v26; // rdx long long v28; // [rsp+0h] [rbp-E8h] long long v29; // [rsp+10h] [rbp-D8h] long long v30; // [rsp+20h] [rbp-C8h] long long v31; // [rsp+30h] [rbp-B8h] long long v32; // [rsp+40h] [rbp-A8h] _DWORD *Property; // [rsp+50h] [rbp-98h] long long v34; // [rsp+60h] [rbp-88h] long long FunctionRealm; // [rsp+70h] [rbp-78h] int IsArray; // [rsp+7Ch] [rbp-6Ch] long long v37; // [rsp+88h] [rbp-60h] long long v38; // [rsp+98h] [rbp-50h] long long v39; // [rsp+A0h] [rbp-48h] long long v40; // [rsp+A8h] [rbp-40h] long long v41[2]; // [rsp+B8h] [rbp-30h] BYREF long long v42; // [rsp+C8h] [rbp-20h] long long v43; // [rsp+D0h] [rbp-18h] long long v44; // [rsp+D8h] [rbp-10h] long long v45; // [rsp+E0h] [rbp-8h] v42 = a2; v43 = a3; v41[0] = a4; v41[1] = a5; IsArray = JS_IsArray(a1, a2, a3); if ( IsArray >= 0 ) { if ( IsArray ) { Property = (_DWORD *)JS_GetProperty(a1, v42, v43, 61); v39 = (long long)Property; v40 = v16; if ( JS_IsException_1((long long)Property, v16) ) { v44 = (long long)Property; v45 = v40; } else { if ( JS_IsConstructor(a1, (long long)Property, v40) ) { FunctionRealm = JS_GetFunctionRealm( a1, (long long)Property, v40, a6, a7, a8, a9, v20, v21, a12, a13, v17, v18, v19); if ( !FunctionRealm ) { JS_FreeValue(a1, (long long)Property, v40); LODWORD(v44) = 0; v45 = 6LL; return v44; } if ( FunctionRealm != a1 && (unsigned int)js_same_value( a1, Property, v40, *(_DWORD **)(FunctionRealm + 104), *(_QWORD *)(FunctionRealm + 112)) ) { JS_FreeValue(a1, (long long)Property, v40); LODWORD(v32) = 0; v39 = v32; v40 = 3LL; } } if ( JS_IsObject(v39, v40) ) { v31 = JS_GetProperty(a1, v39, v40, 221); v37 = v22; JS_FreeValue(a1, v39, v40); if ( JS_IsException_1(v31, v37) ) { v44 = v31; v45 = v37; return v44; } v39 = v31; v40 = v37; if ( JS_IsNull_1(v31, v37) ) { LODWORD(v30) = 0; v39 = v30; v40 = 3LL; } } if ( JS_IsUndefined_1(v39, v40) ) { LODWORD(v29) = 0; v44 = js_array_constructor(a1, v29, 3LL, 1, v41, a6, a7, a8, a9, v23, v24, a12, a13); v45 = v25; } else { v28 = JS_CallConstructor(a1, v39, v40, 1u, (long long)v41, a6, a7, a8, a9, v23, v24, a12, a13); v38 = v26; JS_FreeValue(a1, v39, v40); v44 = v28; v45 = v38; } } } else { LODWORD(v34) = 0; v44 = js_array_constructor(a1, v34, 3LL, 1, v41, a6, a7, a8, a9, v13, v14, a12, a13); v45 = v15; } } else { LODWORD(v44) = 0; v45 = 6LL; } return v44; }
JS_ArraySpeciesCreate: SUB RSP,0xe8 MOV qword ptr [RSP + 0xc8],RSI MOV qword ptr [RSP + 0xd0],RDX MOV qword ptr [RSP + 0xb8],RCX MOV qword ptr [RSP + 0xc0],R8 MOV qword ptr [RSP + 0xb0],RDI MOV RDI,qword ptr [RSP + 0xb0] MOV RSI,qword ptr [RSP + 0xc8] MOV RDX,qword ptr [RSP + 0xd0] CALL 0x0013fe90 MOV dword ptr [RSP + 0x7c],EAX CMP dword ptr [RSP + 0x7c],0x0 JGE 0x001d4133 MOV dword ptr [RSP + 0xd8],0x0 MOV qword ptr [RSP + 0xe0],0x6 JMP 0x001d452e LAB_001d4133: CMP dword ptr [RSP + 0x7c],0x0 JNZ 0x001d4184 MOV RDI,qword ptr [RSP + 0xb0] MOV dword ptr [RSP + 0x60],0x0 MOV qword ptr [RSP + 0x68],0x3 MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x68] MOV ECX,0x1 LEA R8,[RSP + 0xb8] CALL 0x0015d0b0 MOV qword ptr [RSP + 0xd8],RAX MOV qword ptr [RSP + 0xe0],RDX JMP 0x001d452e LAB_001d4184: MOV RDI,qword ptr [RSP + 0xb0] MOV RSI,qword ptr [RSP + 0xc8] MOV RDX,qword ptr [RSP + 0xd0] MOV ECX,0x3d CALL 0x00130070 MOV qword ptr [RSP + 0x50],RAX MOV qword ptr [RSP + 0x58],RDX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0xa0],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0xa8],RAX MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0xa8] CALL 0x00129fb0 CMP EAX,0x0 JZ 0x001d4209 MOV RAX,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0xd8],RAX MOV RAX,qword ptr [RSP + 0xa8] MOV qword ptr [RSP + 0xe0],RAX JMP 0x001d452e LAB_001d4209: MOV RDI,qword ptr [RSP + 0xb0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] CALL 0x0013e3e0 CMP EAX,0x0 JZ 0x001d431a MOV RDI,qword ptr [RSP + 0xb0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] CALL 0x0019be60 MOV qword ptr [RSP + 0x70],RAX CMP qword ptr [RSP + 0x70],0x0 JNZ 0x001d4292 MOV RDI,qword ptr [RSP + 0xb0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] CALL 0x00129f80 MOV dword ptr [RSP + 0xd8],0x0 MOV qword ptr [RSP + 0xe0],0x6 JMP 0x001d452e LAB_001d4292: MOV RAX,qword ptr [RSP + 0x70] CMP RAX,qword ptr [RSP + 0xb0] JZ 0x001d4318 MOV RDI,qword ptr [RSP + 0xb0] MOV RAX,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] MOV RCX,qword ptr [RAX + 0x68] MOV R8,qword ptr [RAX + 0x70] CALL 0x0013be00 CMP EAX,0x0 JZ 0x001d4318 MOV RDI,qword ptr [RSP + 0xb0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] CALL 0x00129f80 MOV dword ptr [RSP + 0x40],0x0 MOV qword ptr [RSP + 0x48],0x3 MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0xa0],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0xa8],RAX LAB_001d4318: JMP 0x001d431a LAB_001d431a: MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0xa8] CALL 0x00131260 CMP EAX,0x0 JZ 0x001d4441 MOV RDI,qword ptr [RSP + 0xb0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] MOV ECX,0xdd CALL 0x00130070 MOV qword ptr [RSP + 0x30],RAX MOV qword ptr [RSP + 0x38],RDX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x80],RAX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x88],RAX MOV RDI,qword ptr [RSP + 0xb0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] CALL 0x00129f80 MOV RDI,qword ptr [RSP + 0x80] MOV RSI,qword ptr [RSP + 0x88] CALL 0x00129fb0 CMP EAX,0x0 JZ 0x001d43da MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0xd8],RAX MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0xe0],RAX JMP 0x001d452e LAB_001d43da: 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 RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0xa8] CALL 0x00134530 CMP EAX,0x0 JZ 0x001d443f MOV dword ptr [RSP + 0x20],0x0 MOV qword ptr [RSP + 0x28],0x3 MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0xa0],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0xa8],RAX LAB_001d443f: JMP 0x001d4441 LAB_001d4441: MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0xa8] CALL 0x00134550 CMP EAX,0x0 JZ 0x001d44a5 MOV RDI,qword ptr [RSP + 0xb0] MOV dword ptr [RSP + 0x10],0x0 MOV qword ptr [RSP + 0x18],0x3 MOV RSI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x18] MOV ECX,0x1 LEA R8,[RSP + 0xb8] CALL 0x0015d0b0 MOV qword ptr [RSP + 0xd8],RAX MOV qword ptr [RSP + 0xe0],RDX JMP 0x001d452e LAB_001d44a5: MOV RDI,qword ptr [RSP + 0xb0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] MOV ECX,0x1 LEA R8,[RSP + 0xb8] CALL 0x0014e840 MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],RDX MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x90],RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x98],RAX MOV RDI,qword ptr [RSP + 0xb0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] CALL 0x00129f80 MOV RAX,qword ptr [RSP + 0x90] MOV qword ptr [RSP + 0xd8],RAX MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0xe0],RAX LAB_001d452e: MOV RAX,qword ptr [RSP + 0xd8] MOV RDX,qword ptr [RSP + 0xe0] ADD RSP,0xe8 RET
int1 [16] JS_ArraySpeciesCreate (long param_1,int8 param_2,int8 param_3,int8 param_4,int8 param_5) { int1 auVar1 [16]; int iVar2; int8 uVar3; long lVar4; int8 uVar5; int1 auVar6 [16]; uint uStack_d4; uint uStack_c4; uint uStack_a4; uint uStack_84; int8 local_48; int8 local_40; int8 local_30; int8 local_28; int8 local_20; int8 local_18; int4 local_10; int4 uStack_c; int8 local_8; local_30 = param_4; local_28 = param_5; local_20 = param_2; local_18 = param_3; iVar2 = JS_IsArray(param_1,param_2,param_3); if (iVar2 < 0) { local_10 = 0; local_8 = 6; } else if (iVar2 == 0) { auVar6 = js_array_constructor(param_1,(ulong)uStack_84 << 0x20,3,1,&local_30); local_10 = auVar6._0_4_; uStack_c = auVar6._4_4_; local_8 = auVar6._8_8_; } else { auVar6 = JS_GetProperty(param_1,local_20,local_18,0x3d); uVar5 = auVar6._8_8_; uVar3 = auVar6._0_8_; iVar2 = JS_IsException(uVar3,uVar5); if (iVar2 == 0) { iVar2 = JS_IsConstructor(param_1,uVar3,uVar5); if (iVar2 != 0) { lVar4 = JS_GetFunctionRealm(param_1,uVar3,uVar5); if (lVar4 == 0) { JS_FreeValue(param_1,uVar3,uVar5); local_10 = 0; local_8 = 6; goto LAB_001d452e; } if ((lVar4 != param_1) && (iVar2 = js_same_value(param_1,uVar3,uVar5,*(int8 *)(lVar4 + 0x68), *(int8 *)(lVar4 + 0x70)), iVar2 != 0)) { JS_FreeValue(param_1,uVar3,uVar5); auVar6._8_8_ = 3; auVar6._0_8_ = (ulong)uStack_a4 << 0x20; } } local_40 = auVar6._8_8_; local_48 = auVar6._0_8_; iVar2 = JS_IsObject(local_48,local_40); if (iVar2 != 0) { auVar6 = JS_GetProperty(param_1,local_48,local_40,0xdd); uVar3 = auVar6._8_8_; JS_FreeValue(param_1,local_48,local_40); iVar2 = JS_IsException(auVar6._0_8_,uVar3); if (iVar2 != 0) { local_10 = auVar6._0_4_; uStack_c = auVar6._4_4_; local_8 = uVar3; goto LAB_001d452e; } iVar2 = JS_IsNull(auVar6._0_8_,uVar3); if (iVar2 != 0) { auVar6._8_8_ = 3; auVar6._0_8_ = (ulong)uStack_c4 << 0x20; } } local_40 = auVar6._8_8_; local_48 = auVar6._0_8_; iVar2 = JS_IsUndefined(local_48,local_40); if (iVar2 == 0) { auVar6 = JS_CallConstructor(param_1,local_48,local_40,1,&local_30); JS_FreeValue(param_1,local_48,local_40); local_10 = auVar6._0_4_; uStack_c = auVar6._4_4_; local_8 = auVar6._8_8_; } else { auVar6 = js_array_constructor(param_1,(ulong)uStack_d4 << 0x20,3,1,&local_30); local_10 = auVar6._0_4_; uStack_c = auVar6._4_4_; local_8 = auVar6._8_8_; } } else { local_10 = auVar6._0_4_; uStack_c = auVar6._4_4_; local_8 = uVar5; } } LAB_001d452e: auVar1._4_4_ = uStack_c; auVar1._0_4_ = local_10; auVar1._8_8_ = local_8; return auVar1; }
44,002
ma_tls_read
eloqsql/libmariadb/libmariadb/secure/openssl.c
ssize_t ma_tls_read(MARIADB_TLS *ctls, const uchar* buffer, size_t length) { int rc; MARIADB_PVIO *pvio= ctls->pvio; while ((rc= SSL_read((SSL *)ctls->ssl, (void *)buffer, (int)length)) <= 0) { int error= SSL_get_error((SSL *)ctls->ssl, rc); if (error != SSL_ERROR_WANT_READ) break; if (pvio->methods->wait_io_or_timeout(pvio, TRUE, pvio->mysql->options.read_timeout) < 1) break; } if (rc <= 0) { MYSQL *mysql= SSL_get_app_data(ctls->ssl); ma_tls_set_error(mysql); } return rc; }
O0
c
ma_tls_read: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x28(%rbp) movq -0x8(%rbp), %rax movq 0x10(%rax), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rax movl %eax, %edx callq 0x60d90 movl %eax, -0x1c(%rbp) cmpl $0x0, %eax jg 0x9bf68 movq -0x8(%rbp), %rax movq 0x10(%rax), %rdi movl -0x1c(%rbp), %esi callq 0x60df0 movl %eax, -0x2c(%rbp) cmpl $0x2, -0x2c(%rbp) je 0x9bf3a jmp 0x9bf68 movq -0x28(%rbp), %rax movq 0x48(%rax), %rax movq 0x30(%rax), %rax movq -0x28(%rbp), %rdi movq -0x28(%rbp), %rcx movq 0x40(%rcx), %rcx movl 0x394(%rcx), %edx movl $0x1, %esi callq *%rax cmpl $0x1, %eax jge 0x9bf66 jmp 0x9bf68 jmp 0x9bf00 cmpl $0x0, -0x1c(%rbp) jg 0x9bf8a movq -0x8(%rbp), %rax movq 0x10(%rax), %rdi xorl %esi, %esi callq 0x60360 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rdi callq 0x9bc10 movslq -0x1c(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_tls_read: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_28], rax loc_9BF00: mov rax, [rbp+var_8] mov rdi, [rax+10h] mov rsi, [rbp+var_10] mov rax, [rbp+var_18] mov edx, eax call _SSL_read mov [rbp+var_1C], eax cmp eax, 0 jg short loc_9BF68 mov rax, [rbp+var_8] mov rdi, [rax+10h] mov esi, [rbp+var_1C] call _SSL_get_error mov [rbp+var_2C], eax cmp [rbp+var_2C], 2 jz short loc_9BF3A jmp short loc_9BF68 loc_9BF3A: mov rax, [rbp+var_28] mov rax, [rax+48h] mov rax, [rax+30h] mov rdi, [rbp+var_28] mov rcx, [rbp+var_28] mov rcx, [rcx+40h] mov edx, [rcx+394h] mov esi, 1 call rax cmp eax, 1 jge short loc_9BF66 jmp short loc_9BF68 loc_9BF66: jmp short loc_9BF00 loc_9BF68: cmp [rbp+var_1C], 0 jg short loc_9BF8A mov rax, [rbp+var_8] mov rdi, [rax+10h] xor esi, esi call _SSL_get_ex_data mov [rbp+var_38], rax mov rdi, [rbp+var_38] call ma_tls_set_error loc_9BF8A: movsxd rax, [rbp+var_1C] add rsp, 40h pop rbp retn
long long ma_tls_read(long long a1, long long a2, unsigned int a3) { long long *v4; // [rsp+8h] [rbp-38h] long long v5; // [rsp+18h] [rbp-28h] int v6; // [rsp+24h] [rbp-1Ch] v5 = *(_QWORD *)(a1 + 8); do v6 = SSL_read(*(_QWORD *)(a1 + 16), a2, a3); while ( v6 <= 0 && (unsigned int)SSL_get_error(*(_QWORD *)(a1 + 16), (unsigned int)v6) == 2 && (*(int ( **)(long long, long long, _QWORD))(*(_QWORD *)(v5 + 72) + 48LL))( v5, 1LL, *(unsigned int *)(*(_QWORD *)(v5 + 64) + 916LL)) >= 1 ); if ( v6 <= 0 ) { v4 = (long long *)SSL_get_ex_data(*(_QWORD *)(a1 + 16), 0LL); ma_tls_set_error(v4); } return v6; }
ma_tls_read: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x28],RAX LAB_0019bf00: MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x10] MOV RSI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV EDX,EAX CALL 0x00160d90 MOV dword ptr [RBP + -0x1c],EAX CMP EAX,0x0 JG 0x0019bf68 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x10] MOV ESI,dword ptr [RBP + -0x1c] CALL 0x00160df0 MOV dword ptr [RBP + -0x2c],EAX CMP dword ptr [RBP + -0x2c],0x2 JZ 0x0019bf3a JMP 0x0019bf68 LAB_0019bf3a: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x48] MOV RAX,qword ptr [RAX + 0x30] MOV RDI,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RCX + 0x40] MOV EDX,dword ptr [RCX + 0x394] MOV ESI,0x1 CALL RAX CMP EAX,0x1 JGE 0x0019bf66 JMP 0x0019bf68 LAB_0019bf66: JMP 0x0019bf00 LAB_0019bf68: CMP dword ptr [RBP + -0x1c],0x0 JG 0x0019bf8a MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x10] XOR ESI,ESI CALL 0x00160360 MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x38] CALL 0x0019bc10 LAB_0019bf8a: MOVSXD RAX,dword ptr [RBP + -0x1c] ADD RSP,0x40 POP RBP RET
long ma_tls_read(long param_1,void *param_2,int param_3) { long lVar1; int ret_code; int iVar2; void *pvVar3; lVar1 = *(long *)(param_1 + 8); do { ret_code = SSL_read(*(SSL **)(param_1 + 0x10),param_2,param_3); if ((0 < ret_code) || (iVar2 = SSL_get_error(*(SSL **)(param_1 + 0x10),ret_code), iVar2 != 2)) break; iVar2 = (**(code **)(*(long *)(lVar1 + 0x48) + 0x30)) (lVar1,1,*(int4 *)(*(long *)(lVar1 + 0x40) + 0x394)); } while (0 < iVar2); if (ret_code < 1) { pvVar3 = SSL_get_ex_data(*(SSL **)(param_1 + 0x10),0); ma_tls_set_error(pvVar3); } return (long)ret_code; }
44,003
void rapidjson::SkipWhitespace<rapidjson::GenericStringStream<rapidjson::UTF8<char>>>(rapidjson::GenericStringStream<rapidjson::UTF8<char>>&)
mnn-tts/MNN/3rd_party/rapidjson/reader.h
void SkipWhitespace(InputStream& is) { internal::StreamLocalCopy<InputStream> copy(is); InputStream& s(copy.s); typename InputStream::Ch c; while ((c = s.Peek()) == ' ' || c == '\n' || c == '\r' || c == '\t') s.Take(); }
O0
c
void rapidjson::SkipWhitespace<rapidjson::GenericStringStream<rapidjson::UTF8<char>>>(rapidjson::GenericStringStream<rapidjson::UTF8<char>>&): subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq 0x30(%rsp), %rsi leaq 0x18(%rsp), %rdi callq 0x19930 leaq 0x18(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rdi callq 0x196d0 movb %al, 0xf(%rsp) movsbl %al, %ecx movb $0x1, %al cmpl $0x20, %ecx movb %al, 0xe(%rsp) je 0x198fd movsbl 0xf(%rsp), %ecx movb $0x1, %al cmpl $0xa, %ecx movb %al, 0xe(%rsp) je 0x198fd movsbl 0xf(%rsp), %ecx movb $0x1, %al cmpl $0xd, %ecx movb %al, 0xe(%rsp) je 0x198fd movsbl 0xf(%rsp), %eax cmpl $0x9, %eax sete %al movb %al, 0xe(%rsp) movb 0xe(%rsp), %al testb $0x1, %al jne 0x19907 jmp 0x19913 movq 0x10(%rsp), %rdi callq 0x19960 jmp 0x198b2 leaq 0x18(%rsp), %rdi callq 0x19980 addq $0x38, %rsp retq nopw %cs:(%rax,%rax) nopl (%rax)
_ZN9rapidjson14SkipWhitespaceINS_19GenericStringStreamINS_4UTF8IcEEEEEEvRT_: sub rsp, 38h mov [rsp+38h+var_8], rdi mov rsi, [rsp+38h+var_8] lea rdi, [rsp+38h+var_20] call _ZN9rapidjson8internal15StreamLocalCopyINS_19GenericStringStreamINS_4UTF8IcEEEELi1EEC2ERS5_; rapidjson::internal::StreamLocalCopy<rapidjson::GenericStringStream<rapidjson::UTF8<char>>,1>::StreamLocalCopy(rapidjson::GenericStringStream<rapidjson::UTF8<char>>&) lea rax, [rsp+38h+var_20] mov [rsp+38h+var_28], rax loc_198B2: mov rdi, [rsp+38h+var_28] call _ZNK9rapidjson19GenericStringStreamINS_4UTF8IcEEE4PeekEv; rapidjson::GenericStringStream<rapidjson::UTF8<char>>::Peek(void) mov [rsp+38h+var_29], al movsx ecx, al mov al, 1 cmp ecx, 20h ; ' ' mov [rsp+38h+var_2A], al jz short loc_198FD movsx ecx, [rsp+38h+var_29] mov al, 1 cmp ecx, 0Ah mov [rsp+38h+var_2A], al jz short loc_198FD movsx ecx, [rsp+38h+var_29] mov al, 1 cmp ecx, 0Dh mov [rsp+38h+var_2A], al jz short loc_198FD movsx eax, [rsp+38h+var_29] cmp eax, 9 setz al mov [rsp+38h+var_2A], al loc_198FD: mov al, [rsp+38h+var_2A] test al, 1 jnz short loc_19907 jmp short loc_19913 loc_19907: mov rdi, [rsp+38h+var_28] call _ZN9rapidjson19GenericStringStreamINS_4UTF8IcEEE4TakeEv; rapidjson::GenericStringStream<rapidjson::UTF8<char>>::Take(void) jmp short loc_198B2 loc_19913: lea rdi, [rsp+38h+var_20] call _ZN9rapidjson8internal15StreamLocalCopyINS_19GenericStringStreamINS_4UTF8IcEEEELi1EED2Ev; rapidjson::internal::StreamLocalCopy<rapidjson::GenericStringStream<rapidjson::UTF8<char>>,1>::~StreamLocalCopy() add rsp, 38h retn
long long rapidjson::SkipWhitespace<rapidjson::GenericStringStream<rapidjson::UTF8<char>>>(long long a1) { bool v2; // [rsp+Eh] [rbp-2Ah] char v3; // [rsp+Fh] [rbp-29h] _BYTE v4[24]; // [rsp+18h] [rbp-20h] BYREF long long v5; // [rsp+30h] [rbp-8h] v5 = a1; rapidjson::internal::StreamLocalCopy<rapidjson::GenericStringStream<rapidjson::UTF8<char>>,1>::StreamLocalCopy(v4, a1); while ( 1 ) { v3 = rapidjson::GenericStringStream<rapidjson::UTF8<char>>::Peek((long long)v4); v2 = 1; if ( v3 != 32 ) { v2 = 1; if ( v3 != 10 ) { v2 = 1; if ( v3 != 13 ) v2 = v3 == 9; } } if ( !v2 ) break; rapidjson::GenericStringStream<rapidjson::UTF8<char>>::Take(v4); } return rapidjson::internal::StreamLocalCopy<rapidjson::GenericStringStream<rapidjson::UTF8<char>>,1>::~StreamLocalCopy(v4); }
SkipWhitespace<rapidjson::GenericStringStream<rapidjson::UTF8<char>>>: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV RSI,qword ptr [RSP + 0x30] LEA RDI,[RSP + 0x18] CALL 0x00119930 LEA RAX,[RSP + 0x18] MOV qword ptr [RSP + 0x10],RAX LAB_001198b2: MOV RDI,qword ptr [RSP + 0x10] CALL 0x001196d0 MOV byte ptr [RSP + 0xf],AL MOVSX ECX,AL MOV AL,0x1 CMP ECX,0x20 MOV byte ptr [RSP + 0xe],AL JZ 0x001198fd MOVSX ECX,byte ptr [RSP + 0xf] MOV AL,0x1 CMP ECX,0xa MOV byte ptr [RSP + 0xe],AL JZ 0x001198fd MOVSX ECX,byte ptr [RSP + 0xf] MOV AL,0x1 CMP ECX,0xd MOV byte ptr [RSP + 0xe],AL JZ 0x001198fd MOVSX EAX,byte ptr [RSP + 0xf] CMP EAX,0x9 SETZ AL MOV byte ptr [RSP + 0xe],AL LAB_001198fd: MOV AL,byte ptr [RSP + 0xe] TEST AL,0x1 JNZ 0x00119907 JMP 0x00119913 LAB_00119907: MOV RDI,qword ptr [RSP + 0x10] CALL 0x00119960 JMP 0x001198b2 LAB_00119913: LEA RDI,[RSP + 0x18] CALL 0x00119980 ADD RSP,0x38 RET
/* void rapidjson::SkipWhitespace<rapidjson::GenericStringStream<rapidjson::UTF8<char> > >(rapidjson::GenericStringStream<rapidjson::UTF8<char> >&) */ void rapidjson::SkipWhitespace<rapidjson::GenericStringStream<rapidjson::UTF8<char>>> (GenericStringStream *param_1) { char cVar1; bool bVar2; StreamLocalCopy<rapidjson::GenericStringStream<rapidjson::UTF8<char>>,1> local_20 [24]; GenericStringStream *local_8; local_8 = param_1; internal::StreamLocalCopy<rapidjson::GenericStringStream<rapidjson::UTF8<char>>,1>:: StreamLocalCopy(local_20,param_1); while( true ) { cVar1 = GenericStringStream<rapidjson::UTF8<char>>::Peek ((GenericStringStream<rapidjson::UTF8<char>> *)local_20); bVar2 = true; if (((cVar1 != ' ') && (bVar2 = true, cVar1 != '\n')) && (bVar2 = true, cVar1 != '\r')) { bVar2 = cVar1 == '\t'; } if (!bVar2) break; GenericStringStream<rapidjson::UTF8<char>>::Take ((GenericStringStream<rapidjson::UTF8<char>> *)local_20); } internal::StreamLocalCopy<rapidjson::GenericStringStream<rapidjson::UTF8<char>>,1>:: ~StreamLocalCopy(local_20); return; }
44,004
String::copy(char const*, unsigned long, charset_info_st const*, charset_info_st const*, unsigned int*)
eloqsql/sql/sql_string.cc
bool String::copy(const char *str, size_t arg_length, CHARSET_INFO *from_cs, CHARSET_INFO *to_cs, uint *errors) { uint32 offset; DBUG_ASSERT(!str || str != Ptr || !is_alloced()); if (!needs_conversion(arg_length, from_cs, to_cs, &offset)) { *errors= 0; return copy(str, arg_length, to_cs); } if ((from_cs == &my_charset_bin) && offset) { *errors= 0; return copy_aligned(str, arg_length, offset, to_cs); } size_t new_length= to_cs->mbmaxlen*arg_length; if (alloc(new_length)) return TRUE; str_length=copy_and_convert((char*) Ptr, new_length, to_cs, str, arg_length, from_cs, errors); set_charset(to_cs); return FALSE; }
O0
cpp
String::copy(char const*, unsigned long, charset_info_st const*, charset_info_st const*, unsigned int*): pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x50(%rbp) jmp 0x2776a movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x30(%rbp), %rdx leaq -0x3c(%rbp), %rcx callq 0x27a70 testb $0x1, %al jne 0x277ac movq -0x50(%rbp), %rdi movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x30(%rbp), %rcx callq 0x29a30 andb $0x1, %al movb %al, -0x1(%rbp) jmp 0x27857 leaq 0x1bd48d(%rip), %rax # 0x1e4c40 cmpq %rax, -0x28(%rbp) jne 0x277ea cmpl $0x0, -0x3c(%rbp) je 0x277ea movq -0x50(%rbp), %rdi movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx movl -0x3c(%rbp), %eax movl %eax, %ecx movq -0x30(%rbp), %r8 callq 0x27c00 andb $0x1, %al movb %al, -0x1(%rbp) jmp 0x27857 movq -0x50(%rbp), %rdi movq -0x30(%rbp), %rax movl 0x9c(%rax), %eax imulq -0x20(%rbp), %rax movq %rax, -0x48(%rbp) addq $0x8, %rdi movq -0x48(%rbp), %rsi callq 0x26250 testb $0x1, %al jne 0x27814 jmp 0x2781a movb $0x1, -0x1(%rbp) jmp 0x27857 movq -0x50(%rbp), %rax movq 0x8(%rax), %rdi movq -0x48(%rbp), %rsi movq -0x30(%rbp), %rdx movq -0x18(%rbp), %rcx movq -0x20(%rbp), %r8 movq -0x28(%rbp), %r9 movq -0x38(%rbp), %rax movq %rax, (%rsp) callq 0x29a80 movq -0x50(%rbp), %rdi movl %eax, 0x10(%rdi) movq -0x30(%rbp), %rsi callq 0x299c0 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN6String4copyEPKcmPK15charset_info_stS4_Pj: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_3C+4], r9 mov rax, [rbp+var_10] mov [rbp+var_50], rax jmp short $+2 loc_2776A: mov rdi, [rbp+var_20]; this mov rsi, [rbp+var_28]; unsigned __int64 mov rdx, [rbp+var_30]; charset_info_st * lea rcx, [rbp+var_3C]; charset_info_st * call _ZN6String16needs_conversionEmPK15charset_info_stS2_Pj; String::needs_conversion(ulong,charset_info_st const*,charset_info_st const*,uint *) test al, 1 jnz short loc_277AC mov rdi, [rbp+var_50]; this mov rax, [rbp+var_3C+4] mov dword ptr [rax], 0 mov rsi, [rbp+var_18]; char * mov rdx, [rbp+var_20]; unsigned __int64 mov rcx, [rbp+var_30]; charset_info_st * call _ZN6String4copyEPKcmPK15charset_info_st; String::copy(char const*,ulong,charset_info_st const*) and al, 1 mov [rbp+var_1], al jmp loc_27857 loc_277AC: lea rax, my_charset_bin cmp [rbp+var_28], rax jnz short loc_277EA cmp dword ptr [rbp+var_3C], 0 jz short loc_277EA mov rdi, [rbp+var_50]; this mov rax, [rbp+var_3C+4] mov dword ptr [rax], 0 mov rsi, [rbp+var_18]; char * mov rdx, [rbp+var_20]; unsigned __int64 mov eax, dword ptr [rbp+var_3C] mov ecx, eax; unsigned __int64 mov r8, [rbp+var_30]; charset_info_st * call _ZN6String12copy_alignedEPKcmmPK15charset_info_st; String::copy_aligned(char const*,ulong,ulong,charset_info_st const*) and al, 1 mov [rbp+var_1], al jmp short loc_27857 loc_277EA: mov rdi, [rbp+var_50] mov rax, [rbp+var_30] mov eax, [rax+9Ch] imul rax, [rbp+var_20] mov [rbp+var_48], rax add rdi, 8; this mov rsi, [rbp+var_48]; unsigned __int64 call _ZN13Binary_string5allocEm; Binary_string::alloc(ulong) test al, 1 jnz short loc_27814 jmp short loc_2781A loc_27814: mov [rbp+var_1], 1 jmp short loc_27857 loc_2781A: mov rax, [rbp+var_50] mov rdi, [rax+8]; char * mov rsi, [rbp+var_48]; unsigned __int64 mov rdx, [rbp+var_30]; charset_info_st * mov rcx, [rbp+var_18]; char * mov r8, [rbp+var_20]; unsigned __int64 mov r9, [rbp+var_28]; charset_info_st * mov rax, [rbp+var_3C+4] mov [rsp+60h+var_60], rax; unsigned int * call _Z16copy_and_convertPcmPK15charset_info_stPKcmS2_Pj; copy_and_convert(char *,ulong,charset_info_st const*,char const*,ulong,charset_info_st const*,uint *) mov rdi, [rbp+var_50]; this mov [rdi+10h], eax mov rsi, [rbp+var_30]; charset_info_st * call _ZN7Charset11set_charsetEPK15charset_info_st; Charset::set_charset(charset_info_st const*) mov [rbp+var_1], 0 loc_27857: mov al, [rbp+var_1] and al, 1 add rsp, 60h pop rbp retn
char String::copy( char **this, char *a2, String *a3, const charset_info_st *a4, const charset_info_st *a5, unsigned int *a6) { unsigned long long v7; // [rsp+18h] [rbp-48h] _DWORD v8[3]; // [rsp+24h] [rbp-3Ch] BYREF charset_info_st *v9; // [rsp+30h] [rbp-30h] charset_info_st *v10; // [rsp+38h] [rbp-28h] String *v11; // [rsp+40h] [rbp-20h] char *v12; // [rsp+48h] [rbp-18h] char **v13; // [rsp+50h] [rbp-10h] v13 = this; v12 = a2; v11 = a3; v10 = a4; v9 = a5; *(_QWORD *)&v8[1] = a6; if ( (String::needs_conversion(a3, (unsigned long long)a4, a5, (const charset_info_st *)v8, (unsigned int *)a5) & 1) != 0 ) { if ( v10 == (charset_info_st *)&my_charset_bin && v8[0] ) { **(_DWORD **)&v8[1] = 0; return String::copy_aligned((String *)this, v12, (unsigned long long)v11, v8[0], v9) & 1; } else { v7 = (_QWORD)v11 * *((unsigned int *)v9 + 39); if ( (Binary_string::alloc((Binary_string *)(this + 1), v7) & 1) != 0 ) { return 1; } else { *((_DWORD *)this + 4) = copy_and_convert( this[1], v7, v9, v12, (unsigned long long)v11, v10, *(unsigned int **)&v8[1]); Charset::set_charset((Charset *)this, v9); return 0; } } } else { **(_DWORD **)&v8[1] = 0; return String::copy((String *)this, v12, (unsigned long long)v11, v9) & 1; } }
copy: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x50],RAX JMP 0x0012776a LAB_0012776a: MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x30] LEA RCX,[RBP + -0x3c] CALL 0x00127a70 TEST AL,0x1 JNZ 0x001277ac MOV RDI,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x30] CALL 0x00129a30 AND AL,0x1 MOV byte ptr [RBP + -0x1],AL JMP 0x00127857 LAB_001277ac: LEA RAX,[0x2e4c40] CMP qword ptr [RBP + -0x28],RAX JNZ 0x001277ea CMP dword ptr [RBP + -0x3c],0x0 JZ 0x001277ea MOV RDI,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RBP + -0x3c] MOV ECX,EAX MOV R8,qword ptr [RBP + -0x30] CALL 0x00127c00 AND AL,0x1 MOV byte ptr [RBP + -0x1],AL JMP 0x00127857 LAB_001277ea: MOV RDI,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RAX + 0x9c] IMUL RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x48],RAX ADD RDI,0x8 MOV RSI,qword ptr [RBP + -0x48] CALL 0x00126250 TEST AL,0x1 JNZ 0x00127814 JMP 0x0012781a LAB_00127814: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00127857 LAB_0012781a: MOV RAX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RAX + 0x8] MOV RSI,qword ptr [RBP + -0x48] MOV RDX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x18] MOV R8,qword ptr [RBP + -0x20] MOV R9,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RSP],RAX CALL 0x00129a80 MOV RDI,qword ptr [RBP + -0x50] MOV dword ptr [RDI + 0x10],EAX MOV RSI,qword ptr [RBP + -0x30] CALL 0x001299c0 MOV byte ptr [RBP + -0x1],0x0 LAB_00127857: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x60 POP RBP RET
/* String::copy(char const*, unsigned long, charset_info_st const*, charset_info_st const*, unsigned int*) */ byte __thiscall String::copy(String *this,char *param_1,ulong param_2,charset_info_st *param_3, charset_info_st *param_4,uint *param_5) { int4 uVar1; ulong uVar2; ulong uVar3; uint local_44; uint *local_40; charset_info_st *local_38; charset_info_st *local_30; ulong local_28; char *local_20; String *local_18; byte local_9; local_40 = param_5; local_38 = param_4; local_30 = param_3; local_28 = param_2; local_20 = param_1; local_18 = this; uVar2 = needs_conversion(param_2,param_3,param_4,&local_44); if ((uVar2 & 1) == 0) { *local_40 = 0; local_9 = copy(this,local_20,local_28,local_38); local_9 = local_9 & 1; } else if ((local_30 == (charset_info_st *)my_charset_bin) && (local_44 != 0)) { *local_40 = 0; local_9 = copy_aligned(this,local_20,local_28,(ulong)local_44,local_38); local_9 = local_9 & 1; } else { uVar2 = *(uint *)(local_38 + 0x9c) * local_28; uVar3 = Binary_string::alloc((Binary_string *)(this + 8),uVar2); if ((uVar3 & 1) == 0) { uVar1 = copy_and_convert(*(char **)(this + 8),uVar2,local_38,local_20,local_28,local_30, local_40); *(int4 *)(this + 0x10) = uVar1; Charset::set_charset((Charset *)this,local_38); local_9 = 0; } else { local_9 = 1; } } return local_9; }
44,005
String::copy(char const*, unsigned long, charset_info_st const*, charset_info_st const*, unsigned int*)
eloqsql/sql/sql_string.cc
bool String::copy(const char *str, size_t arg_length, CHARSET_INFO *from_cs, CHARSET_INFO *to_cs, uint *errors) { uint32 offset; DBUG_ASSERT(!str || str != Ptr || !is_alloced()); if (!needs_conversion(arg_length, from_cs, to_cs, &offset)) { *errors= 0; return copy(str, arg_length, to_cs); } if ((from_cs == &my_charset_bin) && offset) { *errors= 0; return copy_aligned(str, arg_length, offset, to_cs); } size_t new_length= to_cs->mbmaxlen*arg_length; if (alloc(new_length)) return TRUE; str_length=copy_and_convert((char*) Ptr, new_length, to_cs, str, arg_length, from_cs, errors); set_charset(to_cs); return FALSE; }
O3
cpp
String::copy(char const*, unsigned long, charset_info_st const*, charset_info_st const*, unsigned int*): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r9, %r13 movq %r8, %rbx movq %rdx, %r15 movq %rsi, %r8 movq %rdi, %r14 cmpq %rcx, %rbx je 0x26aa8 testq %rbx, %rbx je 0x26aa8 cmpq 0x2d35d1(%rip), %rbx # 0x2f9fa8 je 0x26aa8 movq %rcx, %r12 movq 0x10(%rcx), %rax cmpq 0x10(%rbx), %rax je 0x26aa8 cmpq 0x2d35b3(%rip), %r12 # 0x2f9fa8 je 0x26a6b movl 0x9c(%rbx), %esi imulq %r15, %rsi movl 0x14(%r14), %eax testq %rax, %rax setne %cl cmpq %rax, %rsi setbe %al testb %al, %cl jne 0x26a3a leaq 0x8(%r14), %rdi movq %rsi, -0x30(%rbp) movq -0x30(%rbp), %rsi movq %r8, -0x38(%rbp) callq 0x265ec movq -0x30(%rbp), %rsi movq -0x38(%rbp), %r8 movl %eax, %ecx movb $0x1, %al testb %cl, %cl jne 0x26a5c movq 0x8(%r14), %rdi movq %r13, (%rsp) movq %rbx, %rdx movq %r8, %rcx movl %r15d, %r8d movq %r12, %r9 callq 0x5dcbb movl %eax, 0x10(%r14) movq %rbx, (%r14) xorl %eax, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl 0x98(%rbx), %ecx movq %r15, %rax xorl %edx, %edx divq %rcx testq %rdx, %rdx je 0x26aa8 movq %rdx, %rcx movl $0x0, (%r13) movq %r14, %rdi movq %r8, %rsi movq %r15, %rdx movq %rbx, %r8 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x26d32 movl $0x0, (%r13) movq %rbx, (%r14) addq $0x8, %r14 movq %r14, %rdi movq %r8, %rsi movq %r15, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x26b78 nop
_ZN6String4copyEPKcmPK15charset_info_stS4_Pj: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r13, r9 mov rbx, r8 mov r15, rdx mov r8, rsi mov r14, rdi cmp rbx, rcx jz loc_26AA8 test rbx, rbx jz loc_26AA8 cmp rbx, cs:my_charset_bin_ptr jz loc_26AA8 mov r12, rcx mov rax, [rcx+10h] cmp rax, [rbx+10h] jz loc_26AA8 cmp r12, cs:my_charset_bin_ptr jz short loc_26A6B mov esi, [rbx+9Ch] imul rsi, r15 mov eax, [r14+14h] test rax, rax setnz cl cmp rsi, rax setbe al test cl, al jnz short loc_26A3A lea rdi, [r14+8]; this mov [rbp+var_30], rsi mov rsi, [rbp+var_30]; unsigned __int64 mov [rbp+var_38], r8 call _ZN13Binary_string10real_allocEm; Binary_string::real_alloc(ulong) mov rsi, [rbp+var_30] mov r8, [rbp+var_38] mov ecx, eax mov al, 1 test cl, cl jnz short loc_26A5C loc_26A3A: mov rdi, [r14+8] mov [rsp+40h+var_40], r13 mov rdx, rbx mov rcx, r8 mov r8d, r15d mov r9, r12 call my_convert mov [r14+10h], eax mov [r14], rbx xor eax, eax loc_26A5C: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_26A6B: mov ecx, [rbx+98h] mov rax, r15 xor edx, edx div rcx test rdx, rdx jz short loc_26AA8 mov rcx, rdx mov dword ptr [r13+0], 0 mov rdi, r14 mov rsi, r8 mov rdx, r15 mov r8, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _ZN6String12copy_alignedEPKcmmPK15charset_info_st; String::copy_aligned(char const*,ulong,ulong,charset_info_st const*) loc_26AA8: mov dword ptr [r13+0], 0 mov [r14], rbx add r14, 8 mov rdi, r14; this mov rsi, r8; char * mov rdx, r15; unsigned __int64 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _ZN13Binary_string4copyEPKcm; Binary_string::copy(char const*,ulong)
char String::copy(long long a1, const char *a2, unsigned long long a3, long long a4, long long a5, _DWORD *a6) { int v8; // r15d int v9; // r8d int v10; // r12d unsigned long long v11; // rsi char v12; // al char v13; // cl char result; // al unsigned long long v15; // rcx int v16; // [rsp+8h] [rbp-38h] int v17; // [rsp+10h] [rbp-30h] v8 = a3; v9 = (int)a2; if ( a5 == a4 || !a5 || (_UNKNOWN *)a5 == &my_charset_bin || (v10 = a4, *(_QWORD *)(a4 + 16) == *(_QWORD *)(a5 + 16)) ) { LABEL_12: *a6 = 0; *(_QWORD *)a1 = a5; return Binary_string::copy((Binary_string *)(a1 + 8), a2, a3); } if ( (_UNKNOWN *)a4 == &my_charset_bin ) { if ( a3 % *(unsigned int *)(a5 + 152) ) { v15 = a3 % *(unsigned int *)(a5 + 152); *a6 = 0; return String::copy_aligned(a1, a2, a3, v15, a5); } goto LABEL_12; } v11 = a3 * *(unsigned int *)(a5 + 156); if ( v11 <= *(unsigned int *)(a1 + 20) && *(_DWORD *)(a1 + 20) != 0LL || (v17 = a3 * *(_DWORD *)(a5 + 156), v16 = v9, v12 = Binary_string::real_alloc((Binary_string *)(a1 + 8), v11), LODWORD(v11) = v17, v9 = v16, v13 = v12, result = 1, !v13) ) { *(_DWORD *)(a1 + 16) = my_convert(*(_QWORD *)(a1 + 8), v11, a5, v9, v8, v10, (long long)a6); *(_QWORD *)a1 = a5; return 0; } return result; }
copy: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R13,R9 MOV RBX,R8 MOV R15,RDX MOV R8,RSI MOV R14,RDI CMP RBX,RCX JZ 0x00126aa8 TEST RBX,RBX JZ 0x00126aa8 CMP RBX,qword ptr [0x003f9fa8] JZ 0x00126aa8 MOV R12,RCX MOV RAX,qword ptr [RCX + 0x10] CMP RAX,qword ptr [RBX + 0x10] JZ 0x00126aa8 CMP R12,qword ptr [0x003f9fa8] JZ 0x00126a6b MOV ESI,dword ptr [RBX + 0x9c] IMUL RSI,R15 MOV EAX,dword ptr [R14 + 0x14] TEST RAX,RAX SETNZ CL CMP RSI,RAX SETBE AL TEST CL,AL JNZ 0x00126a3a LEA RDI,[R14 + 0x8] MOV qword ptr [RBP + -0x30],RSI MOV RSI,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x38],R8 CALL 0x001265ec MOV RSI,qword ptr [RBP + -0x30] MOV R8,qword ptr [RBP + -0x38] MOV ECX,EAX MOV AL,0x1 TEST CL,CL JNZ 0x00126a5c LAB_00126a3a: MOV RDI,qword ptr [R14 + 0x8] MOV qword ptr [RSP],R13 MOV RDX,RBX MOV RCX,R8 MOV R8D,R15D MOV R9,R12 CALL 0x0015dcbb MOV dword ptr [R14 + 0x10],EAX MOV qword ptr [R14],RBX XOR EAX,EAX LAB_00126a5c: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00126a6b: MOV ECX,dword ptr [RBX + 0x98] MOV RAX,R15 XOR EDX,EDX DIV RCX TEST RDX,RDX JZ 0x00126aa8 MOV RCX,RDX MOV dword ptr [R13],0x0 MOV RDI,R14 MOV RSI,R8 MOV RDX,R15 MOV R8,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00126d32 LAB_00126aa8: MOV dword ptr [R13],0x0 MOV qword ptr [R14],RBX ADD R14,0x8 MOV RDI,R14 MOV RSI,R8 MOV RDX,R15 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00126b78
/* String::copy(char const*, unsigned long, charset_info_st const*, charset_info_st const*, unsigned int*) */ int8 __thiscall String::copy(String *this,char *param_1,ulong param_2,charset_info_st *param_3, charset_info_st *param_4,uint *param_5) { uint uVar1; char cVar2; int4 uVar3; ulong uVar4; int8 uVar5; ulong uVar6; if ((((param_4 != param_3) && (param_4 != (charset_info_st *)0x0)) && (param_4 != (charset_info_st *)PTR_my_charset_bin_003f9fa8)) && (*(long *)(param_3 + 0x10) != *(long *)(param_4 + 0x10))) { if (param_3 != (charset_info_st *)PTR_my_charset_bin_003f9fa8) { uVar6 = *(uint *)(param_4 + 0x9c) * param_2; uVar4 = (ulong)*(uint *)(this + 0x14); if (uVar4 == 0 || uVar4 <= uVar6 && uVar6 - uVar4 != 0) { cVar2 = Binary_string::real_alloc((Binary_string *)(this + 8),uVar6); if (cVar2 != '\0') { return 1; } } uVar3 = my_convert(*(int8 *)(this + 8),uVar6,param_4,param_1,param_2 & 0xffffffff, param_3,param_5); *(int4 *)(this + 0x10) = uVar3; *(charset_info_st **)this = param_4; return 0; } uVar1 = *(uint *)(param_4 + 0x98); if (param_2 % (ulong)uVar1 != 0) { *param_5 = 0; uVar5 = copy_aligned(this,param_1,param_2,param_2 % (ulong)uVar1,param_4); return uVar5; } } *param_5 = 0; *(charset_info_st **)this = param_4; uVar5 = Binary_string::copy((Binary_string *)(this + 8),param_1,param_2); return uVar5; }
44,006
string_get_sortable_timestamp[abi:cxx11]()
monkey531[P]llama/common/common.cpp
std::string string_get_sortable_timestamp() { using clock = std::chrono::system_clock; const clock::time_point current_time = clock::now(); const time_t as_time_t = clock::to_time_t(current_time); char timestamp_no_ns[100]; std::strftime(timestamp_no_ns, 100, "%Y_%m_%d-%H_%M_%S", std::localtime(&as_time_t)); const int64_t ns = std::chrono::duration_cast<std::chrono::nanoseconds>( current_time.time_since_epoch() % 1000000000).count(); char timestamp_ns[11]; snprintf(timestamp_ns, 11, "%09" PRId64, ns); return std::string(timestamp_no_ns) + "." + std::string(timestamp_ns); }
O1
cpp
string_get_sortable_timestamp[abi:cxx11](): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf0, %rsp movq %rdi, %rbx callq 0x1b090 movq %rax, %r14 movabsq $0x112e0be826d694b3, %rcx # imm = 0x112E0BE826D694B3 imulq %rcx movq %rdx, %r12 movq %rdx, %rax shrq $0x3f, %rax sarq $0x1a, %r12 addq %rax, %r12 leaq 0x78(%rsp), %rdi movq %r12, (%rdi) callq 0x1b690 leaq 0x7ea49(%rip), %rdx # 0xf1b77 leaq 0x80(%rsp), %r15 movl $0x64, %esi movq %r15, %rdi movq %rax, %rcx callq 0x1b710 imulq $0x3b9aca00, %r12, %rax # imm = 0x3B9ACA00 subq %rax, %r14 leaq 0x7ea32(%rip), %rdx # 0xf1b89 leaq 0x4d(%rsp), %rdi movl $0xb, %esi movq %r14, %rcx xorl %eax, %eax callq 0x1bdf0 leaq 0x68(%rsp), %r12 movq %r12, -0x10(%r12) movq %r15, %rdi callq 0x1b3d0 leaq (%rsp,%rax), %rdx addq $0x80, %rdx leaq 0x58(%rsp), %r14 movq %r14, %rdi movq %r15, %rsi callq 0x23580 leaq 0x79fe2(%rip), %rsi # 0xed181 movq %r14, %rdi callq 0x1c110 leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x731ce movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x731d5 movups (%rcx), %xmm0 movups %xmm0, (%r15) movq 0x8(%rax), %rdx movq %rdx, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x38(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x4d(%rsp), %r14 movq %r14, %rdi callq 0x1b3d0 leaq (%rsp,%rax), %rdx addq $0x4d, %rdx leaq 0x28(%rsp), %rdi movq %r14, %rsi callq 0x23580 movq 0x8(%rsp), %rcx movq 0x10(%rsp), %r8 movq 0x30(%rsp), %rdx leaq (%rdx,%r8), %rax movl $0xf, %esi cmpq %r15, %rcx je 0x7323a movq 0x18(%rsp), %rsi cmpq %rsi, %rax jbe 0x73255 movl $0xf, %esi cmpq %r13, 0x28(%rsp) je 0x73250 movq 0x38(%rsp), %rsi cmpq %rsi, %rax jbe 0x73266 movq 0x28(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x1b250 jmp 0x73274 leaq 0x28(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x1b9e0 leaq 0x10(%rbx), %rdx movq %rdx, (%rbx) movq (%rax), %rsi leaq 0x10(%rax), %rcx cmpq %rcx, %rsi je 0x73293 movq %rsi, (%rbx) movq (%rcx), %rdx movq %rdx, 0x10(%rbx) jmp 0x73299 movups (%rcx), %xmm0 movups %xmm0, (%rdx) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x8(%rbx) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x732cc movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8e0 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x732e3 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8e0 movq 0x58(%rsp), %rdi cmpq %r12, %rdi je 0x732fa movq 0x68(%rsp), %rsi incq %rsi callq 0x1b8e0 movq %rbx, %rax addq $0xf0, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x7332d movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8e0 jmp 0x7332d movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x73349 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8e0 jmp 0x73349 movq %rax, %rbx movq 0x58(%rsp), %rdi cmpq %r12, %rdi je 0x73360 movq 0x68(%rsp), %rsi incq %rsi callq 0x1b8e0 movq %rbx, %rdi callq 0x1bfb0
_Z29string_get_sortable_timestampB5cxx11v: push r15 push r14 push r13 push r12 push rbx sub rsp, 0F0h mov rbx, rdi call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void) mov r14, rax mov rcx, 112E0BE826D694B3h imul rcx mov r12, rdx mov rax, rdx shr rax, 3Fh sar r12, 1Ah add r12, rax lea rdi, [rsp+118h+var_A0] mov [rdi], r12 call _localtime lea rdx, aYMDHMS; "%Y_%m_%d-%H_%M_%S" lea r15, [rsp+118h+var_98] mov esi, 64h ; 'd' mov rdi, r15 mov rcx, rax call _strftime imul rax, r12, 3B9ACA00h sub r14, rax lea rdx, a09ld; "%09ld" lea rdi, [rsp+118h+var_CB] mov esi, 0Bh mov rcx, r14 xor eax, eax call _snprintf lea r12, [rsp+118h+var_B0] mov [r12-10h], r12 mov rdi, r15 call _strlen lea rdx, [rsp+rax+118h+var_118] add rdx, 80h lea r14, [rsp+118h+var_C0] mov rdi, r14 mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rsi, aN0N1+8; "." mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r15, [rsp+118h+var_100] mov [r15-10h], r15 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_731CE mov [rsp+118h+var_110], rdx mov rdx, [rcx] mov [rsp+118h+var_100], rdx jmp short loc_731D5 loc_731CE: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r15], xmm0 loc_731D5: mov rdx, [rax+8] mov [rsp+118h+var_108], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea r13, [rsp+118h+var_E0] mov [r13-10h], r13 lea r14, [rsp+118h+var_CB] mov rdi, r14 call _strlen lea rdx, [rsp+rax+118h+var_118] add rdx, 4Dh ; 'M' lea rdi, [rsp+118h+var_F0] mov rsi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rcx, [rsp+118h+var_110] mov r8, [rsp+118h+var_108] mov rdx, [rsp+118h+var_E8] lea rax, [rdx+r8] mov esi, 0Fh cmp rcx, r15 jz short loc_7323A mov rsi, [rsp+118h+var_100] loc_7323A: cmp rax, rsi jbe short loc_73255 mov esi, 0Fh cmp [rsp+118h+var_F0], r13 jz short loc_73250 mov rsi, [rsp+118h+var_E0] loc_73250: cmp rax, rsi jbe short loc_73266 loc_73255: mov rsi, [rsp+118h+var_F0] lea rdi, [rsp+118h+var_110] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) jmp short loc_73274 loc_73266: lea rdi, [rsp+118h+var_F0] xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) loc_73274: lea rdx, [rbx+10h] mov [rbx], rdx mov rsi, [rax] lea rcx, [rax+10h] cmp rsi, rcx jz short loc_73293 mov [rbx], rsi mov rdx, [rcx] mov [rbx+10h], rdx jmp short loc_73299 loc_73293: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rdx], xmm0 loc_73299: mov rdx, rax add rdx, 8 mov rsi, [rax+8] mov [rbx+8], rsi mov [rax], rcx mov qword ptr [rdx], 0 mov byte ptr [rcx], 0 mov rdi, [rsp+118h+var_F0]; void * cmp rdi, r13 jz short loc_732CC mov rsi, [rsp+118h+var_E0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_732CC: mov rdi, [rsp+118h+var_110]; void * cmp rdi, r15 jz short loc_732E3 mov rsi, [rsp+118h+var_100] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_732E3: mov rdi, [rsp+118h+var_C0]; void * cmp rdi, r12 jz short loc_732FA mov rsi, [rsp+118h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_732FA: mov rax, rbx add rsp, 0F0h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+arg_20]; void * cmp rdi, r13 jz short loc_7332D mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_7332D mov rbx, rax loc_7332D: mov rdi, [rsp+arg_0]; void * cmp rdi, r15 jz short loc_73349 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_73349 mov rbx, rax loc_73349: mov rdi, [rsp+arg_50]; void * cmp rdi, r12 jz short loc_73360 mov rsi, [rsp+arg_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_73360: mov rdi, rbx call __Unwind_Resume
long long string_get_sortable_timestamp[abi:cxx11](long long a1) { long long v1; // r14 long long v2; // rax long long v3; // rax long long v4; // rax __int128 *v5; // rcx long long v6; // rax unsigned long long v7; // rax unsigned long long v8; // rsi unsigned long long v9; // rsi _QWORD *v10; // rax _OWORD *v11; // rcx void *v13; // [rsp+8h] [rbp-110h] BYREF long long v14; // [rsp+10h] [rbp-108h] __int128 v15; // [rsp+18h] [rbp-100h] BYREF void *v16; // [rsp+28h] [rbp-F0h] BYREF long long v17; // [rsp+30h] [rbp-E8h] _QWORD v18[2]; // [rsp+38h] [rbp-E0h] BYREF _BYTE v19[11]; // [rsp+4Dh] [rbp-CBh] BYREF void *v20[2]; // [rsp+58h] [rbp-C0h] BYREF _QWORD v21[3]; // [rsp+68h] [rbp-B0h] BYREF _BYTE v22[152]; // [rsp+80h] [rbp-98h] BYREF v1 = std::chrono::_V2::system_clock::now((std::chrono::_V2::system_clock *)a1); v21[2] = v1 / 1000000000; v2 = localtime(); strftime(v22, 100LL, "%Y_%m_%d-%H_%M_%S", v2); snprintf(v19, 11LL, "%09ld", v1 % 1000000000); v20[0] = v21; v3 = strlen(v22); std::string::_M_construct<char const*>(v20, v22, (long long)&v22[v3]); v4 = std::string::append(v20, "."); v13 = &v15; v5 = (__int128 *)(v4 + 16); if ( *(_QWORD *)v4 == v4 + 16 ) { v15 = *v5; } else { v13 = *(void **)v4; *(_QWORD *)&v15 = *(_QWORD *)v5; } v14 = *(_QWORD *)(v4 + 8); *(_QWORD *)v4 = v5; *(_QWORD *)(v4 + 8) = 0LL; *(_BYTE *)(v4 + 16) = 0; v16 = v18; v6 = strlen(v19); std::string::_M_construct<char const*>(&v16, v19, (long long)&v19[v6]); v7 = v17 + v14; v8 = 15LL; if ( v13 != &v15 ) v8 = v15; if ( v7 <= v8 ) goto LABEL_10; v9 = 15LL; if ( v16 != v18 ) v9 = v18[0]; if ( v7 <= v9 ) v10 = (_QWORD *)std::string::replace(&v16, 0LL, 0LL, v13, v14); else LABEL_10: v10 = (_QWORD *)std::string::_M_append(&v13, v16, v17); *(_QWORD *)a1 = a1 + 16; v11 = v10 + 2; if ( (_QWORD *)*v10 == v10 + 2 ) { *(_OWORD *)(a1 + 16) = *v11; } else { *(_QWORD *)a1 = *v10; *(_QWORD *)(a1 + 16) = *(_QWORD *)v11; } *(_QWORD *)(a1 + 8) = v10[1]; *v10 = v11; v10[1] = 0LL; *(_BYTE *)v11 = 0; if ( v16 != v18 ) operator delete(v16, v18[0] + 1LL); if ( v13 != &v15 ) operator delete(v13, v15 + 1); if ( v20[0] != v21 ) operator delete(v20[0], v21[0] + 1LL); return a1; }
string_get_sortable_timestamp[abi:cxx11]: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xf0 MOV RBX,RDI CALL 0x0011b090 MOV R14,RAX MOV RCX,0x112e0be826d694b3 IMUL RCX MOV R12,RDX MOV RAX,RDX SHR RAX,0x3f SAR R12,0x1a ADD R12,RAX LEA RDI,[RSP + 0x78] MOV qword ptr [RDI],R12 CALL 0x0011b690 LEA RDX,[0x1f1b77] LEA R15,[RSP + 0x80] MOV ESI,0x64 MOV RDI,R15 MOV RCX,RAX CALL 0x0011b710 IMUL RAX,R12,0x3b9aca00 SUB R14,RAX LEA RDX,[0x1f1b89] LEA RDI,[RSP + 0x4d] MOV ESI,0xb MOV RCX,R14 XOR EAX,EAX CALL 0x0011bdf0 LEA R12,[RSP + 0x68] MOV qword ptr [R12 + -0x10],R12 MOV RDI,R15 CALL 0x0011b3d0 LEA RDX,[RSP + RAX*0x1] ADD RDX,0x80 LEA R14,[RSP + 0x58] MOV RDI,R14 MOV RSI,R15 CALL 0x00123580 LAB_00173198: LEA RSI,[0x1ed181] MOV RDI,R14 CALL 0x0011c110 LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x001731ce MOV qword ptr [RSP + 0x8],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RDX JMP 0x001731d5 LAB_001731ce: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R15],XMM0 LAB_001731d5: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LEA R13,[RSP + 0x38] MOV qword ptr [R13 + -0x10],R13 LEA R14,[RSP + 0x4d] MOV RDI,R14 CALL 0x0011b3d0 LEA RDX,[RSP + RAX*0x1] ADD RDX,0x4d LAB_0017320b: LEA RDI,[RSP + 0x28] MOV RSI,R14 CALL 0x00123580 MOV RCX,qword ptr [RSP + 0x8] MOV R8,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x30] LEA RAX,[RDX + R8*0x1] MOV ESI,0xf CMP RCX,R15 JZ 0x0017323a MOV RSI,qword ptr [RSP + 0x18] LAB_0017323a: CMP RAX,RSI JBE 0x00173255 MOV ESI,0xf CMP qword ptr [RSP + 0x28],R13 JZ 0x00173250 MOV RSI,qword ptr [RSP + 0x38] LAB_00173250: CMP RAX,RSI JBE 0x00173266 LAB_00173255: MOV RSI,qword ptr [RSP + 0x28] LAB_0017325a: LEA RDI,[RSP + 0x8] CALL 0x0011b250 JMP 0x00173274 LAB_00173266: LEA RDI,[RSP + 0x28] XOR ESI,ESI XOR EDX,EDX CALL 0x0011b9e0 LAB_00173274: LEA RDX,[RBX + 0x10] MOV qword ptr [RBX],RDX MOV RSI,qword ptr [RAX] LEA RCX,[RAX + 0x10] CMP RSI,RCX JZ 0x00173293 MOV qword ptr [RBX],RSI MOV RDX,qword ptr [RCX] MOV qword ptr [RBX + 0x10],RDX JMP 0x00173299 LAB_00173293: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RDX],XMM0 LAB_00173299: MOV RDX,RAX ADD RDX,0x8 MOV RSI,qword ptr [RAX + 0x8] MOV qword ptr [RBX + 0x8],RSI MOV qword ptr [RAX],RCX MOV qword ptr [RDX],0x0 MOV byte ptr [RCX],0x0 MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R13 JZ 0x001732cc MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011b8e0 LAB_001732cc: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R15 JZ 0x001732e3 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011b8e0 LAB_001732e3: MOV RDI,qword ptr [RSP + 0x58] CMP RDI,R12 JZ 0x001732fa MOV RSI,qword ptr [RSP + 0x68] INC RSI CALL 0x0011b8e0 LAB_001732fa: MOV RAX,RBX ADD RSP,0xf0 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* string_get_sortable_timestamp[abi:cxx11]() */ void string_get_sortable_timestamp_abi_cxx11_(void) { int8 *puVar1; int8 uVar2; long lVar3; tm *__tp; size_t sVar4; long *plVar5; int8 *puVar6; ulong *puVar7; ulong uVar8; int8 *in_RDI; ulong *local_110; long local_108; ulong local_100; long lStack_f8; ulong *local_f0; long local_e8; ulong local_e0 [2]; char local_cb [11]; long *local_c0 [2]; long local_b0 [2]; long local_a0; char local_98 [112]; lVar3 = std::chrono::_V2::system_clock::now(); local_a0 = lVar3 / 1000000000; __tp = localtime(&local_a0); strftime(local_98,100,"%Y_%m_%d-%H_%M_%S",__tp); snprintf(local_cb,0xb,"%09ld",lVar3 % 1000000000); local_c0[0] = local_b0; sVar4 = strlen(local_98); std::__cxx11::string::_M_construct<char_const*>(local_c0,local_98,local_98 + sVar4); /* try { // try from 00173198 to 001731a6 has its CatchHandler @ 00173346 */ plVar5 = (long *)std::__cxx11::string::append((char *)local_c0); puVar7 = (ulong *)(plVar5 + 2); if ((ulong *)*plVar5 == puVar7) { local_100 = *puVar7; lStack_f8 = plVar5[3]; local_110 = &local_100; } else { local_100 = *puVar7; local_110 = (ulong *)*plVar5; } local_108 = plVar5[1]; *plVar5 = (long)puVar7; plVar5[1] = 0; *(int1 *)(plVar5 + 2) = 0; local_f0 = local_e0; sVar4 = strlen(local_cb); /* try { // try from 0017320b to 00173217 has its CatchHandler @ 0017332a */ std::__cxx11::string::_M_construct<char_const*>(&local_f0,local_cb,local_cb + sVar4); uVar8 = 0xf; if (local_110 != &local_100) { uVar8 = local_100; } if (uVar8 < (ulong)(local_e8 + local_108)) { uVar8 = 0xf; if (local_f0 != local_e0) { uVar8 = local_e0[0]; } if ((ulong)(local_e8 + local_108) <= uVar8) { puVar6 = (int8 *) std::__cxx11::string::replace((ulong)&local_f0,0,(char *)0x0,(ulong)local_110); goto LAB_00173274; } } /* try { // try from 0017325a to 00173273 has its CatchHandler @ 0017330e */ puVar6 = (int8 *)std::__cxx11::string::_M_append((char *)&local_110,(ulong)local_f0); LAB_00173274: *in_RDI = in_RDI + 2; puVar1 = puVar6 + 2; if ((int8 *)*puVar6 == puVar1) { uVar2 = puVar6[3]; in_RDI[2] = *puVar1; in_RDI[3] = uVar2; } else { *in_RDI = (int8 *)*puVar6; in_RDI[2] = *puVar1; } in_RDI[1] = puVar6[1]; *puVar6 = puVar1; puVar6[1] = 0; *(int1 *)puVar1 = 0; if (local_f0 != local_e0) { operator_delete(local_f0,local_e0[0] + 1); } if (local_110 != &local_100) { operator_delete(local_110,local_100 + 1); } if (local_c0[0] != local_b0) { operator_delete(local_c0[0],local_b0[0] + 1); } return; }
44,007
psi_cond_wait
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_cond_wait(mysql_cond_t *that, mysql_mutex_t *mutex, const char *file, uint line) { PSI_cond_locker_state state; PSI_cond_locker *locker= PSI_COND_CALL(start_cond_wait) (&state, that->m_psi, mutex->m_psi, PSI_COND_WAIT, file, line); int result= my_cond_wait(&that->m_cond, &mutex->m_mutex); if (locker) PSI_COND_CALL(end_cond_wait)(locker, result); return result; }
O3
c
psi_cond_wait: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movl %ecx, %r9d movq %rdx, %r8 movq %rsi, %r14 movq %rdi, %r15 leaq 0x2cace3(%rip), %r12 # 0x2ef820 movq (%r12), %rax movq 0x30(%rdi), %rsi movq 0x40(%r14), %rdx leaq -0x58(%rbp), %rdi xorl %ecx, %ecx callq *0x1c0(%rax) movq %rax, %rbx movq %r15, %rdi movq %r14, %rsi callq 0x24640 movl %eax, %r14d testq %rbx, %rbx je 0x24b7b movq (%r12), %rax movq %rbx, %rdi movl %r14d, %esi callq *0x1c8(%rax) movl %r14d, %eax addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
psi_cond_wait: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 40h mov r9d, ecx mov r8, rdx mov r14, rsi mov r15, rdi lea r12, PSI_server mov rax, [r12] mov rsi, [rdi+30h] mov rdx, [r14+40h] lea rdi, [rbp+var_58] xor ecx, ecx call qword ptr [rax+1C0h] mov rbx, rax mov rdi, r15 mov rsi, r14 call _pthread_cond_wait mov r14d, eax test rbx, rbx jz short loc_24B7B mov rax, [r12] mov rdi, rbx mov esi, r14d call qword ptr [rax+1C8h] loc_24B7B: mov eax, r14d add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long psi_cond_wait(long long a1, long long a2, long long a3, unsigned int a4) { long long v4; // rbx unsigned int v5; // r14d _BYTE v7[88]; // [rsp+8h] [rbp-58h] BYREF v4 = (*((long long ( **)(_BYTE *, _QWORD, _QWORD, _QWORD, long long, _QWORD))PSI_server[0] + 56))( v7, *(_QWORD *)(a1 + 48), *(_QWORD *)(a2 + 64), 0LL, a3, a4); v5 = pthread_cond_wait(a1, a2); if ( v4 ) (*((void ( **)(long long, _QWORD))PSI_server[0] + 57))(v4, v5); return v5; }
psi_cond_wait: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV R9D,ECX MOV R8,RDX MOV R14,RSI MOV R15,RDI LEA R12,[0x3ef820] MOV RAX,qword ptr [R12] MOV RSI,qword ptr [RDI + 0x30] MOV RDX,qword ptr [R14 + 0x40] LEA RDI,[RBP + -0x58] XOR ECX,ECX CALL qword ptr [RAX + 0x1c0] MOV RBX,RAX MOV RDI,R15 MOV RSI,R14 CALL 0x00124640 MOV R14D,EAX TEST RBX,RBX JZ 0x00124b7b MOV RAX,qword ptr [R12] MOV RDI,RBX MOV ESI,R14D CALL qword ptr [RAX + 0x1c8] LAB_00124b7b: MOV EAX,R14D ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET
int psi_cond_wait(pthread_cond_t *param_1,pthread_mutex_t *param_2,int8 param_3, int4 param_4) { int iVar1; long lVar2; int1 local_60 [56]; lVar2 = (**(code **)(PSI_server + 0x1c0)) (local_60,param_1[1].__align,*(int8 *)((long)param_2 + 0x40),0,param_3, param_4); iVar1 = pthread_cond_wait(param_1,param_2); if (lVar2 != 0) { (**(code **)(PSI_server + 0x1c8))(lVar2,iVar1); } return iVar1; }
44,008
maria_too_big_key_for_sort
eloqsql/storage/maria/ma_check.c
my_bool maria_too_big_key_for_sort(MARIA_KEYDEF *key, ha_rows rows) { uint key_maxlength=key->maxlength; if (key->flag & HA_FULLTEXT) { uint ft_max_word_len_for_sort=FT_MAX_WORD_LEN_FOR_SORT* key->seg->charset->mbmaxlen; key_maxlength+=ft_max_word_len_for_sort-HA_FT_MAXBYTELEN; } return (key->flag & HA_SPATIAL) || (key->flag & (HA_BINARY_PACK_KEY | HA_VAR_LENGTH_KEY | HA_FULLTEXT) && ((ulonglong) rows * key_maxlength > (ulonglong) maria_max_temp_length)); }
O0
c
maria_too_big_key_for_sort: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movzwl 0xae(%rax), %eax movl %eax, -0x14(%rbp) movq -0x8(%rbp), %rax movzwl 0xa2(%rax), %eax andl $0x80, %eax cmpl $0x0, %eax je 0x8b535 movq -0x8(%rbp), %rax movq 0xc0(%rax), %rax movq (%rax), %rax imull $0x1f, 0x9c(%rax), %eax movl %eax, -0x18(%rbp) movl -0x18(%rbp), %eax subl $0xfe, %eax addl -0x14(%rbp), %eax movl %eax, -0x14(%rbp) movq -0x8(%rbp), %rax movzwl 0xa2(%rax), %ecx andl $0x400, %ecx # imm = 0x400 movb $0x1, %al cmpl $0x0, %ecx movb %al, -0x19(%rbp) jne 0x8b58c movq -0x8(%rbp), %rax movzwl 0xa2(%rax), %ecx andl $0xa8, %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x1a(%rbp) je 0x8b586 movq -0x10(%rbp), %rax movl -0x14(%rbp), %ecx imulq %rcx, %rax leaq 0x2738bb(%rip), %rcx # 0x2fee38 cmpq (%rcx), %rax seta %al movb %al, -0x1a(%rbp) movb -0x1a(%rbp), %al movb %al, -0x19(%rbp) movb -0x19(%rbp), %al andb $0x1, %al movzbl %al, %eax popq %rbp retq nopw %cs:(%rax,%rax)
maria_too_big_key_for_sort: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] movzx eax, word ptr [rax+0AEh] mov [rbp+var_14], eax mov rax, [rbp+var_8] movzx eax, word ptr [rax+0A2h] and eax, 80h cmp eax, 0 jz short loc_8B535 mov rax, [rbp+var_8] mov rax, [rax+0C0h] mov rax, [rax] imul eax, [rax+9Ch], 1Fh mov [rbp+var_18], eax mov eax, [rbp+var_18] sub eax, 0FEh add eax, [rbp+var_14] mov [rbp+var_14], eax loc_8B535: mov rax, [rbp+var_8] movzx ecx, word ptr [rax+0A2h] and ecx, 400h mov al, 1 cmp ecx, 0 mov [rbp+var_19], al jnz short loc_8B58C mov rax, [rbp+var_8] movzx ecx, word ptr [rax+0A2h] and ecx, 0A8h xor eax, eax cmp ecx, 0 mov [rbp+var_1A], al jz short loc_8B586 mov rax, [rbp+var_10] mov ecx, [rbp+var_14] imul rax, rcx lea rcx, maria_max_temp_length cmp rax, [rcx] setnbe al mov [rbp+var_1A], al loc_8B586: mov al, [rbp+var_1A] mov [rbp+var_19], al loc_8B58C: mov al, [rbp+var_19] and al, 1 movzx eax, al pop rbp retn
long long maria_too_big_key_for_sort(long long a1, long long a2) { bool v3; // [rsp+0h] [rbp-1Ah] char v4; // [rsp+1h] [rbp-19h] unsigned int v5; // [rsp+6h] [rbp-14h] v5 = *(unsigned __int16 *)(a1 + 174); if ( (*(_WORD *)(a1 + 162) & 0x80) != 0 ) v5 += 31 * *(_DWORD *)(**(_QWORD **)(a1 + 192) + 156LL) - 254; v4 = 1; if ( (*(_WORD *)(a1 + 162) & 0x400) == 0 ) { v3 = 0; if ( (*(_WORD *)(a1 + 162) & 0xA8) != 0 ) v3 = (unsigned long long)v5 * a2 > maria_max_temp_length; v4 = v3; } return v4 & 1; }
maria_too_big_key_for_sort: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,word ptr [RAX + 0xae] MOV dword ptr [RBP + -0x14],EAX MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,word ptr [RAX + 0xa2] AND EAX,0x80 CMP EAX,0x0 JZ 0x0018b535 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0xc0] MOV RAX,qword ptr [RAX] IMUL EAX,dword ptr [RAX + 0x9c],0x1f MOV dword ptr [RBP + -0x18],EAX MOV EAX,dword ptr [RBP + -0x18] SUB EAX,0xfe ADD EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x14],EAX LAB_0018b535: MOV RAX,qword ptr [RBP + -0x8] MOVZX ECX,word ptr [RAX + 0xa2] AND ECX,0x400 MOV AL,0x1 CMP ECX,0x0 MOV byte ptr [RBP + -0x19],AL JNZ 0x0018b58c MOV RAX,qword ptr [RBP + -0x8] MOVZX ECX,word ptr [RAX + 0xa2] AND ECX,0xa8 XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x1a],AL JZ 0x0018b586 MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x14] IMUL RAX,RCX LEA RCX,[0x3fee38] CMP RAX,qword ptr [RCX] SETA AL MOV byte ptr [RBP + -0x1a],AL LAB_0018b586: MOV AL,byte ptr [RBP + -0x1a] MOV byte ptr [RBP + -0x19],AL LAB_0018b58c: MOV AL,byte ptr [RBP + -0x19] AND AL,0x1 MOVZX EAX,AL POP RBP RET
bool maria_too_big_key_for_sort(long param_1,long param_2) { int1 local_22; int1 local_21; int4 local_1c; local_1c = (uint)*(ushort *)(param_1 + 0xae); if ((*(ushort *)(param_1 + 0xa2) & 0x80) != 0) { local_1c = *(int *)(**(long **)(param_1 + 0xc0) + 0x9c) * 0x1f + -0xfe + local_1c; } local_21 = true; if ((*(ushort *)(param_1 + 0xa2) & 0x400) == 0) { local_22 = false; if ((*(ushort *)(param_1 + 0xa2) & 0xa8) != 0) { local_22 = maria_max_temp_length <= param_2 * (ulong)local_1c && param_2 * (ulong)local_1c - maria_max_temp_length != 0; } local_21 = local_22; } return local_21; }
44,009
httpclient_read_complete_ex
navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_http-src/src/httpclient.c
int32_t httpclient_read_complete_ex (HTTP_CLIENT_T* client) { DBG_MESSAGE_HTTP_CLIENT (DBG_MESSAGE_SEVERITY_INFO, "HTTP : : read complete %d bytes in %d chunks", client->read, client->chunked); if (client->read_buffer) { HTTP_CLIENT_FREE(client->read_buffer) ; client->read_buffer = 0 ; } return EOK ; }
O3
c
httpclient_read_complete_ex: movq 0x10(%rdi), %rsi testq %rsi, %rsi je 0x20e34 pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx movl $0x1, %edi callq 0x14243 movq $0x0, 0x10(%rbx) addq $0x8, %rsp popq %rbx popq %rbp xorl %eax, %eax retq
httpclient_read_complete_ex: mov rsi, [rdi+10h] test rsi, rsi jz short loc_20E34 push rbp mov rbp, rsp push rbx push rax mov rbx, rdi mov edi, 1 call qoraal_free mov qword ptr [rbx+10h], 0 add rsp, 8 pop rbx pop rbp loc_20E34: xor eax, eax retn
long long httpclient_read_complete_ex(long long a1) { long long v1; // rsi v1 = *(_QWORD *)(a1 + 16); if ( v1 ) { qoraal_free(1LL, v1); *(_QWORD *)(a1 + 16) = 0LL; } return 0LL; }
httpclient_read_complete_ex: MOV RSI,qword ptr [RDI + 0x10] TEST RSI,RSI JZ 0x00120e34 PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI MOV EDI,0x1 CALL 0x00114243 MOV qword ptr [RBX + 0x10],0x0 ADD RSP,0x8 POP RBX POP RBP LAB_00120e34: XOR EAX,EAX RET
int8 httpclient_read_complete_ex(long param_1) { if (*(long *)(param_1 + 0x10) != 0) { qoraal_free(1); *(int8 *)(param_1 + 0x10) = 0; } return 0; }
44,010
auto reaction::field<int>(reaction::FieldStructBase*, int&&)
reaction/include/reaction/dataSource.h
auto field(FieldStructBase *meta, SourceType &&value) { auto ptr = std::make_shared<DataSource<AlwaysTrigger, FieldStrategy, FieldIdentity<std::decay_t<SourceType>>>> (FieldIdentity<std::decay_t<SourceType>>{meta, std::forward<SourceType>(value)}); FieldGraph::getInstance().addNode(ptr); return DataWeakRef{ptr}; }
O3
c
auto reaction::field<int>(reaction::FieldStructBase*, int&&): pushq %rbx subq $0x50, %rsp movq %rdi, %rbx leaq 0x40(%rsp), %rax movq %rsi, (%rax) movl (%rdx), %ecx movl %ecx, 0x8(%rax) leaq 0x10(%rsp), %rdi leaq 0xf(%rsp), %rsi movq %rax, %rdx callq 0x54a4 callq 0x4234 movq 0x10(%rsp), %rcx leaq 0x8(%rcx), %rdx testq %rcx, %rcx cmoveq %rcx, %rdx movq 0x18(%rsp), %rcx movq %rdx, 0x30(%rsp) movq %rcx, 0x38(%rsp) testq %rcx, %rcx je 0x70b4 movq 0xcf1a(%rip), %rdx # 0x13fc0 cmpb $0x0, (%rdx) je 0x70b0 incl 0x8(%rcx) jmp 0x70b4 lock incl 0x8(%rcx) addq $0x70, %rax leaq 0x40(%rsp), %rdx movq %rax, (%rdx) leaq 0x30(%rsp), %rsi movq %rax, %rdi callq 0x5020 movq 0x38(%rsp), %rdi testq %rdi, %rdi je 0x70dc callq 0x4f16 movq 0x10(%rsp), %rcx movq 0x18(%rsp), %rax movq %rcx, 0x20(%rsp) movq %rax, 0x28(%rsp) testq %rax, %rax je 0x710a movq 0xcec4(%rip), %rcx # 0x13fc0 cmpb $0x0, (%rcx) je 0x7106 incl 0x8(%rax) jmp 0x710a lock incl 0x8(%rax) leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x5438 movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x7126 callq 0x4f16 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x7135 callq 0x4f16 movq %rbx, %rax addq $0x50, %rsp popq %rbx retq movq %rax, %rbx movq 0x28(%rsp), %rdi jmp 0x7150 movq %rax, %rbx movq 0x38(%rsp), %rdi testq %rdi, %rdi je 0x715f callq 0x4f16 jmp 0x715f movq %rax, %rbx movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x716e callq 0x4f16 movq %rbx, %rdi callq 0x2270
_ZN8reaction5fieldITkNS_9CompareCCERiEEDaPNS_15FieldStructBaseEOT_: push rbx sub rsp, 50h mov rbx, rdi lea rax, [rsp+58h+var_18] mov [rax], rsi mov ecx, [rdx] mov [rax+8], ecx lea rdi, [rsp+58h+var_48]; this lea rsi, [rsp+58h+var_49] mov rdx, rax call _ZNSt12__shared_ptrIN8reaction10DataSourceINS0_13AlwaysTriggerENS0_13FieldStrategyENS0_13FieldIdentityIiEEJEEELN9__gnu_cxx12_Lock_policyE2EEC2ISaIS6_EJS5_EEESt20_Sp_alloc_shared_tagIT_EDpOT0_; std::__shared_ptr<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>>,reaction::FieldIdentity<int>>(std::_Sp_alloc_shared_tag<std::allocator<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>>>,reaction::FieldIdentity<int> &&) call _ZN8reaction10FieldGraph11getInstanceEv; reaction::FieldGraph::getInstance(void) mov rcx, [rsp+58h+var_48] lea rdx, [rcx+8] test rcx, rcx cmovz rdx, rcx mov rcx, [rsp+58h+var_40] mov [rsp+58h+var_28], rdx mov [rsp+58h+var_20], rcx test rcx, rcx jz short loc_70B4 mov rdx, cs:__libc_single_threaded_ptr cmp byte ptr [rdx], 0 jz short loc_70B0 inc dword ptr [rcx+8] jmp short loc_70B4 loc_70B0: lock inc dword ptr [rcx+8] loc_70B4: add rax, 70h ; 'p' lea rdx, [rsp+58h+var_18] mov [rdx], rax lea rsi, [rsp+58h+var_28] mov rdi, rax call _ZNSt10_HashtableISt10shared_ptrIN8reaction17ObserverFieldNodeEES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE9_M_insertIRKS3_NS5_10_AllocNodeISaINS5_10_Hash_nodeIS3_Lb0EEEEEEEESt4pairINS5_14_Node_iteratorIS3_Lb1ELb0EEEbEOT_RKT0_St17integral_constantIbLb1EE; std::_Hashtable<std::shared_ptr<reaction::ObserverFieldNode>,std::shared_ptr<reaction::ObserverFieldNode>,std::allocator<std::shared_ptr<reaction::ObserverFieldNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverFieldNode>>,std::hash<std::shared_ptr<reaction::ObserverFieldNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>::_M_insert<std::shared_ptr<reaction::ObserverFieldNode> const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::shared_ptr<reaction::ObserverFieldNode>,false>>>>(std::shared_ptr<reaction::ObserverFieldNode> const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::shared_ptr<reaction::ObserverFieldNode>,false>>> const&,std::integral_constant<bool,true>) mov rdi, [rsp+58h+var_20] test rdi, rdi jz short loc_70DC call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_70DC: mov rcx, [rsp+58h+var_48] mov rax, [rsp+58h+var_40] mov [rsp+58h+var_38], rcx mov [rsp+58h+var_30], rax test rax, rax jz short loc_710A mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_7106 inc dword ptr [rax+8] jmp short loc_710A loc_7106: lock inc dword ptr [rax+8] loc_710A: lea rsi, [rsp+58h+var_38] mov rdi, rbx call _ZN8reaction11DataWeakRefINS_10DataSourceINS_13AlwaysTriggerENS_13FieldStrategyENS_13FieldIdentityIiEEJEEEEC2ESt10shared_ptrIS6_E; reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>>::DataWeakRef(std::shared_ptr<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>>) mov rdi, [rsp+58h+var_30] test rdi, rdi jz short loc_7126 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_7126: mov rdi, [rsp+58h+var_40] test rdi, rdi jz short loc_7135 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_7135: mov rax, rbx add rsp, 50h pop rbx retn mov rbx, rax mov rdi, [rsp+arg_20] jmp short loc_7150 mov rbx, rax mov rdi, [rsp+arg_30] loc_7150: test rdi, rdi jz short loc_715F 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_715F mov rbx, rax loc_715F: mov rdi, [rsp+arg_10] test rdi, rdi jz short loc_716E call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_716E: mov rdi, rbx call __Unwind_Resume
long long * ZN8reaction5fieldITkNS_9CompareCCERiEEDaPNS_15FieldStructBaseEOT_( long long *a1, long long *a2, int *a3) { long long *Instance; // rax long long v4; // rdx char v6; // [rsp+Fh] [rbp-49h] BYREF long long v7; // [rsp+10h] [rbp-48h] BYREF volatile signed __int32 *v8; // [rsp+18h] [rbp-40h] long long v9; // [rsp+20h] [rbp-38h] BYREF volatile signed __int32 *v10; // [rsp+28h] [rbp-30h] long long v11; // [rsp+30h] [rbp-28h] BYREF volatile signed __int32 *v12; // [rsp+38h] [rbp-20h] long long *v13; // [rsp+40h] [rbp-18h] BYREF int v14; // [rsp+48h] [rbp-10h] v13 = a2; v14 = *a3; std::__shared_ptr<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>>,reaction::FieldIdentity<int>>( &v7, (long long)&v6, (long long)&v13); Instance = reaction::FieldGraph::getInstance((reaction::FieldGraph *)&v7); v4 = v7 + 8; if ( !v7 ) v4 = 0LL; v11 = v4; v12 = v8; if ( v8 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v8 + 2); else _InterlockedIncrement(v8 + 2); } v13 = Instance + 14; std::_Hashtable<std::shared_ptr<reaction::ObserverFieldNode>,std::shared_ptr<reaction::ObserverFieldNode>,std::allocator<std::shared_ptr<reaction::ObserverFieldNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverFieldNode>>,std::hash<std::shared_ptr<reaction::ObserverFieldNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>::_M_insert<std::shared_ptr<reaction::ObserverFieldNode> const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::shared_ptr<reaction::ObserverFieldNode>,false>>>>( Instance + 14, &v11, &v13); if ( v12 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v12); v9 = v7; v10 = v8; if ( v8 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v8 + 2); else _InterlockedIncrement(v8 + 2); } reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>>::DataWeakRef( a1, &v9); if ( v10 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v10); if ( v8 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v8); return a1; }
_ZN8reaction5fieldITkNS_9CompareCCERiEEDaPNS_15FieldStructBaseEOT_: PUSH RBX SUB RSP,0x50 MOV RBX,RDI LEA RAX,[RSP + 0x40] MOV qword ptr [RAX],RSI MOV ECX,dword ptr [RDX] MOV dword ptr [RAX + 0x8],ECX LEA RDI,[RSP + 0x10] LEA RSI,[RSP + 0xf] MOV RDX,RAX CALL 0x001054a4 LAB_00107076: CALL 0x00104234 MOV RCX,qword ptr [RSP + 0x10] LEA RDX,[RCX + 0x8] TEST RCX,RCX CMOVZ RDX,RCX MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RSP + 0x38],RCX TEST RCX,RCX JZ 0x001070b4 MOV RDX,qword ptr [0x00113fc0] CMP byte ptr [RDX],0x0 JZ 0x001070b0 INC dword ptr [RCX + 0x8] JMP 0x001070b4 LAB_001070b0: INC.LOCK dword ptr [RCX + 0x8] LAB_001070b4: ADD RAX,0x70 LEA RDX,[RSP + 0x40] MOV qword ptr [RDX],RAX LAB_001070c0: LEA RSI,[RSP + 0x30] MOV RDI,RAX CALL 0x00105020 MOV RDI,qword ptr [RSP + 0x38] TEST RDI,RDI JZ 0x001070dc CALL 0x00104f16 LAB_001070dc: MOV RCX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x20],RCX MOV qword ptr [RSP + 0x28],RAX TEST RAX,RAX JZ 0x0010710a MOV RCX,qword ptr [0x00113fc0] CMP byte ptr [RCX],0x0 JZ 0x00107106 INC dword ptr [RAX + 0x8] JMP 0x0010710a LAB_00107106: INC.LOCK dword ptr [RAX + 0x8] LAB_0010710a: LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x00105438 LAB_00107117: MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x00107126 CALL 0x00104f16 LAB_00107126: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x00107135 CALL 0x00104f16 LAB_00107135: MOV RAX,RBX ADD RSP,0x50 POP RBX RET
DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>> * _ZN8reaction5fieldITkNS_9CompareCCERiEEDaPNS_15FieldStructBaseEOT_ (DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>> *param_1,long param_2,int4 *param_3) { int1 local_49; long local_48; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40; long local_38; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_30; long local_28; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_20; long local_18; int4 local_10; local_10 = *param_3; local_18 = param_2; std:: __shared_ptr<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>,(__gnu_cxx::_Lock_policy)2> :: __shared_ptr<std::allocator<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>>,reaction::FieldIdentity<int>> ((__shared_ptr<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>,(__gnu_cxx::_Lock_policy)2> *)&local_48,&local_49,&local_18); /* try { // try from 00107076 to 0010707a has its CatchHandler @ 0010715c */ local_18 = reaction::FieldGraph::getInstance(); local_28 = local_48 + 8; if (local_48 == 0) { local_28 = 0; } local_20 = local_40; if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_00113fc0 == '\0') { LOCK(); *(int *)(local_40 + 8) = *(int *)(local_40 + 8) + 1; UNLOCK(); } else { *(int *)(local_40 + 8) = *(int *)(local_40 + 8) + 1; } } local_18 = local_18 + 0x70; /* try { // try from 001070c0 to 001070cc has its CatchHandler @ 00107148 */ std:: _Hashtable<std::shared_ptr<reaction::ObserverFieldNode>,std::shared_ptr<reaction::ObserverFieldNode>,std::allocator<std::shared_ptr<reaction::ObserverFieldNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverFieldNode>>,std::hash<std::shared_ptr<reaction::ObserverFieldNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>> :: _M_insert<std::shared_ptr<reaction::ObserverFieldNode>const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::shared_ptr<reaction::ObserverFieldNode>,false>>>> (local_18,&local_28); if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_20); } local_38 = local_48; local_30 = local_40; if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_00113fc0 == '\0') { LOCK(); *(int *)(local_40 + 8) = *(int *)(local_40 + 8) + 1; UNLOCK(); } else { *(int *)(local_40 + 8) = *(int *)(local_40 + 8) + 1; } } /* try { // try from 0010710a to 00107116 has its CatchHandler @ 0010713e */ reaction:: DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::FieldStrategy,reaction::FieldIdentity<int>>> ::DataWeakRef(param_1,&local_38); if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30); } if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40); } return param_1; }
44,011
my_hash_first
eloqsql/mysys/hash.c
uchar* my_hash_first(const HASH *hash, const uchar *key, size_t length, HASH_SEARCH_STATE *current_record) { uchar *res; DBUG_ASSERT(my_hash_inited(hash)); res= my_hash_first_from_hash_value(hash, hash->hash_function(hash->charset, key, length ? length : hash->key_length), key, length, current_record); return res; }
O0
c
my_hash_first: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) jmp 0xdf46a movq -0x8(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x8(%rbp), %rax movq 0x58(%rax), %rax movq %rax, -0x40(%rbp) movq -0x8(%rbp), %rax movq 0x68(%rax), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) cmpq $0x0, -0x18(%rbp) je 0xdf4a3 movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) jmp 0xdf4af movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x50(%rbp) movq -0x40(%rbp), %rax movq -0x30(%rbp), %rsi movq -0x38(%rbp), %rdi movq -0x50(%rbp), %rdx callq *%rax movq -0x48(%rbp), %rdi movl %eax, %esi movq -0x10(%rbp), %rdx movq -0x18(%rbp), %rcx movq -0x20(%rbp), %r8 callq 0xdf530 movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_hash_first: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx jmp short $+2 loc_DF46A: mov rax, [rbp+var_8] mov [rbp+var_48], rax mov rax, [rbp+var_8] mov rax, [rax+58h] mov [rbp+var_40], rax mov rax, [rbp+var_8] mov rax, [rax+68h] mov [rbp+var_38], rax mov rax, [rbp+var_10] mov [rbp+var_30], rax cmp [rbp+var_18], 0 jz short loc_DF4A3 mov rax, [rbp+var_18] mov [rbp+var_50], rax jmp short loc_DF4AF loc_DF4A3: mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_50], rax loc_DF4AF: mov rax, [rbp+var_40] mov rsi, [rbp+var_30] mov rdi, [rbp+var_38] mov rdx, [rbp+var_50] call rax mov rdi, [rbp+var_48] mov esi, eax mov rdx, [rbp+var_10] mov rcx, [rbp+var_18] mov r8, [rbp+var_20] call my_hash_first_from_hash_value mov [rbp+var_28], rax mov rax, [rbp+var_28] add rsp, 50h pop rbp retn
long long my_hash_first(_QWORD *a1, long long a2, long long a3, long long a4) { unsigned int v4; // eax long long ( *v6)(long long, long long, long long); // [rsp+10h] [rbp-40h] long long v7; // [rsp+18h] [rbp-38h] v6 = (long long ( *)(long long, long long, long long))a1[11]; v7 = a1[13]; if ( a3 ) v4 = v6(v7, a2, a3); else v4 = v6(v7, a2, a1[1]); return my_hash_first_from_hash_value(a1, v4, a2, a3, a4); }
my_hash_first: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX JMP 0x001df46a LAB_001df46a: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x58] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x68] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX CMP qword ptr [RBP + -0x18],0x0 JZ 0x001df4a3 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX JMP 0x001df4af LAB_001df4a3: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x50],RAX LAB_001df4af: MOV RAX,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x50] CALL RAX MOV RDI,qword ptr [RBP + -0x48] MOV ESI,EAX MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x18] MOV R8,qword ptr [RBP + -0x20] CALL 0x001df530 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RSP,0x50 POP RBP RET
int8 my_hash_first(long param_1,int8 param_2,long param_3,int8 param_4) { int4 uVar1; int8 uVar2; int8 local_58; local_58 = param_3; if (param_3 == 0) { local_58 = *(long *)(param_1 + 8); } uVar1 = (**(code **)(param_1 + 0x58))(*(int8 *)(param_1 + 0x68),param_2,local_58); uVar2 = my_hash_first_from_hash_value(param_1,uVar1,param_2,param_3,param_4); return uVar2; }
44,012
ma_cmp_static_record
eloqsql/storage/maria/ma_statrec.c
my_bool _ma_cmp_static_record(register MARIA_HA *info, register const uchar *old) { DBUG_ENTER("_ma_cmp_static_record"); if (info->opt_flag & WRITE_CACHE_USED) { if (flush_io_cache(&info->rec_cache)) { DBUG_RETURN(1); } info->rec_cache.seek_not_done=1; /* We have done a seek */ } if ((info->opt_flag & READ_CHECK_USED)) { /* If check isn't disabled */ info->rec_cache.seek_not_done=1; /* We have done a seek */ if (info->s->file_read(info, info->rec_buff, info->s->base.reclength, info->cur_row.lastpos, MYF(MY_NABP))) DBUG_RETURN(1); if (memcmp(info->rec_buff, old, (uint) info->s->base.reclength)) { DBUG_DUMP("read",old,info->s->base.reclength); DBUG_DUMP("disk",info->rec_buff,info->s->base.reclength); my_errno=HA_ERR_RECORD_CHANGED; /* Record have changed */ DBUG_RETURN(1); } } DBUG_RETURN(0); }
O0
c
ma_cmp_static_record: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movl 0x61c(%rax), %eax andl $0x10, %eax cmpl $0x0, %eax je 0x9b505 movq -0x10(%rbp), %rdi addq $0x4b8, %rdi # imm = 0x4B8 movl $0x1, %esi callq 0xe0920 cmpl $0x0, %eax je 0x9b4f7 jmp 0x9b4ee movb $0x1, -0x1(%rbp) jmp 0x9b5c1 movq -0x10(%rbp), %rax movl $0x1, 0x598(%rax) movq -0x10(%rbp), %rax movl 0x61c(%rax), %eax andl $0x4, %eax cmpl $0x0, %eax je 0x9b5bb movq -0x10(%rbp), %rax movl $0x1, 0x598(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x6e0(%rax), %rax movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rcx movq 0x3a0(%rcx), %rsi movq -0x10(%rbp), %rcx movq (%rcx), %rcx movq 0x398(%rcx), %rdx movq -0x10(%rbp), %rcx movq 0x98(%rcx), %rcx movl $0x4, %r8d callq *%rax cmpq $0x0, %rax je 0x9b575 jmp 0x9b56f movb $0x1, -0x1(%rbp) jmp 0x9b5c1 movq -0x10(%rbp), %rax movq 0x3a0(%rax), %rdi movq -0x18(%rbp), %rsi movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x398(%rax), %rax movl %eax, %eax movl %eax, %edx callq 0x2a810 cmpl $0x0, %eax je 0x9b5b9 jmp 0x9b5a2 jmp 0x9b5a4 jmp 0x9b5a6 jmp 0x9b5a8 callq 0xf6080 movl $0x7b, (%rax) movb $0x1, -0x1(%rbp) jmp 0x9b5c1 jmp 0x9b5bb jmp 0x9b5bd movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
_ma_cmp_static_record: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] mov eax, [rax+61Ch] and eax, 10h cmp eax, 0 jz short loc_9B505 mov rdi, [rbp+var_10] add rdi, 4B8h mov esi, 1 call my_b_flush_io_cache cmp eax, 0 jz short loc_9B4F7 jmp short $+2 loc_9B4EE: mov [rbp+var_1], 1 jmp loc_9B5C1 loc_9B4F7: mov rax, [rbp+var_10] mov dword ptr [rax+598h], 1 loc_9B505: mov rax, [rbp+var_10] mov eax, [rax+61Ch] and eax, 4 cmp eax, 0 jz loc_9B5BB mov rax, [rbp+var_10] mov dword ptr [rax+598h], 1 mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+6E0h] mov rdi, [rbp+var_10] mov rcx, [rbp+var_10] mov rsi, [rcx+3A0h] mov rcx, [rbp+var_10] mov rcx, [rcx] mov rdx, [rcx+398h] mov rcx, [rbp+var_10] mov rcx, [rcx+98h] mov r8d, 4 call rax cmp rax, 0 jz short loc_9B575 jmp short $+2 loc_9B56F: mov [rbp+var_1], 1 jmp short loc_9B5C1 loc_9B575: mov rax, [rbp+var_10] mov rdi, [rax+3A0h] mov rsi, [rbp+var_18] mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+398h] mov eax, eax mov edx, eax call _memcmp cmp eax, 0 jz short loc_9B5B9 jmp short $+2 loc_9B5A2: jmp short $+2 loc_9B5A4: jmp short $+2 loc_9B5A6: jmp short $+2 loc_9B5A8: call _my_thread_var mov dword ptr [rax], 7Bh ; '{' mov [rbp+var_1], 1 jmp short loc_9B5C1 loc_9B5B9: jmp short $+2 loc_9B5BB: jmp short $+2 loc_9B5BD: mov [rbp+var_1], 0 loc_9B5C1: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char ma_cmp_static_record(long long a1, const char *a2) { long long v2; // rdi if ( (*(_DWORD *)(a1 + 1564) & 0x10) == 0 ) { LABEL_5: if ( (*(_DWORD *)(a1 + 1564) & 4) != 0 ) { *(_DWORD *)(a1 + 1432) = 1; if ( (*(long long ( **)(long long, _QWORD, _QWORD, _QWORD, long long))(*(_QWORD *)a1 + 1760LL))( a1, *(_QWORD *)(a1 + 928), *(_QWORD *)(*(_QWORD *)a1 + 920LL), *(_QWORD *)(a1 + 152), 4LL) ) { return 1; } v2 = *(_QWORD *)(a1 + 928); if ( (unsigned int)memcmp(v2, a2, (unsigned int)*(_QWORD *)(*(_QWORD *)a1 + 920LL)) ) { *(_DWORD *)my_thread_var(v2, a2) = 123; return 1; } } return 0; } if ( !(unsigned int)my_b_flush_io_cache(a1 + 1208, 1LL) ) { *(_DWORD *)(a1 + 1432) = 1; goto LABEL_5; } return 1; }
_ma_cmp_static_record: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x61c] AND EAX,0x10 CMP EAX,0x0 JZ 0x0019b505 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x4b8 MOV ESI,0x1 CALL 0x001e0920 CMP EAX,0x0 JZ 0x0019b4f7 JMP 0x0019b4ee LAB_0019b4ee: MOV byte ptr [RBP + -0x1],0x1 JMP 0x0019b5c1 LAB_0019b4f7: MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x598],0x1 LAB_0019b505: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x61c] AND EAX,0x4 CMP EAX,0x0 JZ 0x0019b5bb MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x598],0x1 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x6e0] MOV RDI,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RCX + 0x3a0] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] MOV RDX,qword ptr [RCX + 0x398] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x98] MOV R8D,0x4 CALL RAX CMP RAX,0x0 JZ 0x0019b575 JMP 0x0019b56f LAB_0019b56f: MOV byte ptr [RBP + -0x1],0x1 JMP 0x0019b5c1 LAB_0019b575: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x3a0] MOV RSI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x398] MOV EAX,EAX MOV EDX,EAX CALL 0x0012a810 CMP EAX,0x0 JZ 0x0019b5b9 JMP 0x0019b5a2 LAB_0019b5a2: JMP 0x0019b5a4 LAB_0019b5a4: JMP 0x0019b5a6 LAB_0019b5a6: JMP 0x0019b5a8 LAB_0019b5a8: CALL 0x001f6080 MOV dword ptr [RAX],0x7b MOV byte ptr [RBP + -0x1],0x1 JMP 0x0019b5c1 LAB_0019b5b9: JMP 0x0019b5bb LAB_0019b5bb: JMP 0x0019b5bd LAB_0019b5bd: MOV byte ptr [RBP + -0x1],0x0 LAB_0019b5c1: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int1 _ma_cmp_static_record(long *param_1,void *param_2) { int iVar1; long lVar2; int4 *puVar3; if ((*(uint *)((long)param_1 + 0x61c) & 0x10) != 0) { iVar1 = my_b_flush_io_cache(param_1 + 0x97,1); if (iVar1 != 0) { return 1; } *(int4 *)(param_1 + 0xb3) = 1; } if ((*(uint *)((long)param_1 + 0x61c) & 4) != 0) { *(int4 *)(param_1 + 0xb3) = 1; lVar2 = (**(code **)(*param_1 + 0x6e0)) (param_1,param_1[0x74],*(int8 *)(*param_1 + 0x398),param_1[0x13],4); if (lVar2 != 0) { return 1; } iVar1 = memcmp((void *)param_1[0x74],param_2,*(ulong *)(*param_1 + 0x398) & 0xffffffff); if (iVar1 != 0) { puVar3 = (int4 *)_my_thread_var(); *puVar3 = 0x7b; return 1; } } return 0; }
44,013
ma_cmp_static_record
eloqsql/storage/maria/ma_statrec.c
my_bool _ma_cmp_static_record(register MARIA_HA *info, register const uchar *old) { DBUG_ENTER("_ma_cmp_static_record"); if (info->opt_flag & WRITE_CACHE_USED) { if (flush_io_cache(&info->rec_cache)) { DBUG_RETURN(1); } info->rec_cache.seek_not_done=1; /* We have done a seek */ } if ((info->opt_flag & READ_CHECK_USED)) { /* If check isn't disabled */ info->rec_cache.seek_not_done=1; /* We have done a seek */ if (info->s->file_read(info, info->rec_buff, info->s->base.reclength, info->cur_row.lastpos, MYF(MY_NABP))) DBUG_RETURN(1); if (memcmp(info->rec_buff, old, (uint) info->s->base.reclength)) { DBUG_DUMP("read",old,info->s->base.reclength); DBUG_DUMP("disk",info->rec_buff,info->s->base.reclength); my_errno=HA_ERR_RECORD_CHANGED; /* Record have changed */ DBUG_RETURN(1); } } DBUG_RETURN(0); }
O3
c
ma_cmp_static_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movl 0x61c(%rdi), %eax testb $0x10, %al je 0x70279 leaq 0x4b8(%r14), %rdi movl $0x1, %esi callq 0x953c1 movb $0x1, %r15b testl %eax, %eax jne 0x702e3 movl $0x1, 0x598(%r14) movl 0x61c(%r14), %eax testb $0x4, %al jne 0x70282 xorl %r15d, %r15d jmp 0x702e3 movl $0x1, 0x598(%r14) movq 0x3a0(%r14), %rsi movq (%r14), %rax movq 0x98(%r14), %rcx movq 0x398(%rax), %rdx movl $0x4, %r8d movq %r14, %rdi callq *0x6e0(%rax) movb $0x1, %r15b testq %rax, %rax jne 0x702e3 movq 0x3a0(%r14), %rdi movq (%r14), %rax movl 0x398(%rax), %edx movq %rbx, %rsi callq 0x29560 testl %eax, %eax je 0x7027d callq 0xa1b26 movl $0x7b, (%rax) movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
_ma_cmp_static_record: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rsi mov r14, rdi mov eax, [rdi+61Ch] test al, 10h jz short loc_70279 lea rdi, [r14+4B8h] mov esi, 1 call my_b_flush_io_cache mov r15b, 1 test eax, eax jnz short loc_702E3 mov dword ptr [r14+598h], 1 mov eax, [r14+61Ch] loc_70279: test al, 4 jnz short loc_70282 loc_7027D: xor r15d, r15d jmp short loc_702E3 loc_70282: mov dword ptr [r14+598h], 1 mov rsi, [r14+3A0h] mov rax, [r14] mov rcx, [r14+98h] mov rdx, [rax+398h] mov r8d, 4 mov rdi, r14 call qword ptr [rax+6E0h] mov r15b, 1 test rax, rax jnz short loc_702E3 mov rdi, [r14+3A0h] mov rax, [r14] mov edx, [rax+398h] mov rsi, rbx call _bcmp test eax, eax jz short loc_7027D call _my_thread_var mov dword ptr [rax], 7Bh ; '{' loc_702E3: mov eax, r15d add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long ma_cmp_static_record(_QWORD *a1, long long a2) { unsigned int v2; // r15d int v4; // eax long long v5; // rdi v4 = *((_DWORD *)a1 + 391); if ( (v4 & 0x10) != 0 ) { LOBYTE(v2) = 1; if ( (unsigned int)my_b_flush_io_cache(a1 + 151, 1LL) ) return v2; *((_DWORD *)a1 + 358) = 1; v4 = *((_DWORD *)a1 + 391); } if ( (v4 & 4) != 0 ) { *((_DWORD *)a1 + 358) = 1; LOBYTE(v2) = 1; if ( (*(long long ( **)(_QWORD *, _QWORD, _QWORD, _QWORD, long long))(*a1 + 1760LL))( a1, a1[116], *(_QWORD *)(*a1 + 920LL), a1[19], 4LL) ) { return v2; } v5 = a1[116]; if ( (unsigned int)bcmp(v5, a2, *(unsigned int *)(*a1 + 920LL)) ) { *(_DWORD *)my_thread_var(v5) = 123; return v2; } } return 0; }
_ma_cmp_static_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV EAX,dword ptr [RDI + 0x61c] TEST AL,0x10 JZ 0x00170279 LEA RDI,[R14 + 0x4b8] MOV ESI,0x1 CALL 0x001953c1 MOV R15B,0x1 TEST EAX,EAX JNZ 0x001702e3 MOV dword ptr [R14 + 0x598],0x1 MOV EAX,dword ptr [R14 + 0x61c] LAB_00170279: TEST AL,0x4 JNZ 0x00170282 LAB_0017027d: XOR R15D,R15D JMP 0x001702e3 LAB_00170282: MOV dword ptr [R14 + 0x598],0x1 MOV RSI,qword ptr [R14 + 0x3a0] MOV RAX,qword ptr [R14] MOV RCX,qword ptr [R14 + 0x98] MOV RDX,qword ptr [RAX + 0x398] MOV R8D,0x4 MOV RDI,R14 CALL qword ptr [RAX + 0x6e0] MOV R15B,0x1 TEST RAX,RAX JNZ 0x001702e3 MOV RDI,qword ptr [R14 + 0x3a0] MOV RAX,qword ptr [R14] MOV EDX,dword ptr [RAX + 0x398] MOV RSI,RBX CALL 0x00129560 TEST EAX,EAX JZ 0x0017027d CALL 0x001a1b26 MOV dword ptr [RAX],0x7b LAB_001702e3: MOV EAX,R15D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
ulong _ma_cmp_static_record(long *param_1,void *param_2) { int iVar1; uint uVar2; long lVar3; int4 *puVar4; ulong unaff_R15; uVar2 = *(uint *)((long)param_1 + 0x61c); if ((uVar2 & 0x10) != 0) { iVar1 = my_b_flush_io_cache(param_1 + 0x97,1); unaff_R15 = CONCAT71((int7)(unaff_R15 >> 8),1); if (iVar1 != 0) goto LAB_001702e3; *(int4 *)(param_1 + 0xb3) = 1; uVar2 = *(uint *)((long)param_1 + 0x61c); } if ((uVar2 & 4) != 0) { *(int4 *)(param_1 + 0xb3) = 1; lVar3 = (**(code **)(*param_1 + 0x6e0)) (param_1,param_1[0x74],*(int8 *)(*param_1 + 0x398),param_1[0x13],4); unaff_R15 = CONCAT71((int7)(unaff_R15 >> 8),1); if (lVar3 != 0) goto LAB_001702e3; iVar1 = bcmp((void *)param_1[0x74],param_2,(ulong)*(uint *)(*param_1 + 0x398)); if (iVar1 != 0) { puVar4 = (int4 *)_my_thread_var(); *puVar4 = 0x7b; goto LAB_001702e3; } } unaff_R15 = 0; LAB_001702e3: return unaff_R15 & 0xffffffff; }
44,014
minja::ForTemplateToken::ForTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, bool)
monkey531[P]llama/common/minja.hpp
ForTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, const std::vector<std::string> & vns, std::shared_ptr<Expression> && iter, std::shared_ptr<Expression> && c, bool r) : TemplateToken(Type::For, location, pre, post), var_names(vns), iterable(std::move(iter)), condition(std::move(c)), recursive(r) {}
O2
cpp
minja::ForTemplateToken::ForTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, bool): pushq %r15 pushq %r14 pushq %rbx movq %r9, %r14 movq %r8, %r15 movl %ecx, %r8d movl %edx, %ecx movq %rsi, %rdx movq %rdi, %rbx pushq $0x6 popq %rsi callq 0x61a8a leaq 0x8b3a5(%rip), %rax # 0xfcc20 addq $0x10, %rax movq %rax, (%rbx) leaq 0x30(%rbx), %rdi movq %r15, %rsi callq 0x39c8c movb 0x28(%rsp), %al movq 0x20(%rsp), %rcx andq $0x0, 0x50(%rbx) movups (%r14), %xmm0 andq $0x0, 0x8(%r14) movups %xmm0, 0x48(%rbx) andq $0x0, (%r14) andq $0x0, 0x60(%rbx) movups (%rcx), %xmm0 andq $0x0, 0x8(%rcx) movups %xmm0, 0x58(%rbx) andq $0x0, (%rcx) movb %al, 0x68(%rbx) popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq %rbx, %rdi callq 0x720d8 movq %r14, %rdi callq 0x23fb0
_ZN5minja16ForTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_RKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISB_EEOSt10shared_ptrINS_10ExpressionEESJ_b: push r15 push r14 push rbx mov r14, r9 mov r15, r8 mov r8d, ecx mov ecx, edx mov rdx, rsi mov rbx, rdi push 6 pop rsi call _ZN5minja13TemplateTokenC2ENS0_4TypeERKNS_8LocationENS_13SpaceHandlingES5_; minja::TemplateToken::TemplateToken(minja::TemplateToken::Type,minja::Location const&,minja::SpaceHandling,minja::SpaceHandling) lea rax, _ZTVN5minja16ForTemplateTokenE; `vtable for'minja::ForTemplateToken add rax, 10h mov [rbx], rax lea rdi, [rbx+30h] mov rsi, r15 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) mov al, [rsp+18h+arg_8] mov rcx, [rsp+18h+arg_0] and qword ptr [rbx+50h], 0 movups xmm0, xmmword ptr [r14] and qword ptr [r14+8], 0 movups xmmword ptr [rbx+48h], xmm0 and qword ptr [r14], 0 and qword ptr [rbx+60h], 0 movups xmm0, xmmword ptr [rcx] and qword ptr [rcx+8], 0 movups xmmword ptr [rbx+58h], xmm0 and qword ptr [rcx], 0 mov [rbx+68h], al pop rbx pop r14 pop r15 retn mov r14, rax mov rdi, rbx; this call _ZN5minja13TemplateTokenD2Ev; minja::TemplateToken::~TemplateToken() mov rdi, r14 call __Unwind_Resume
char minja::ForTemplateToken::ForTemplateToken( long long a1, long long a2, int a3, int a4, _QWORD *a5, __int128 *a6, __int128 *a7, char a8) { char result; // al __int128 v11; // xmm0 __int128 v12; // xmm0 minja::TemplateToken::TemplateToken(a1, 6, a2, a3, a4); *(_QWORD *)a1 = &`vtable for'minja::ForTemplateToken + 2; std::vector<std::string>::vector((_QWORD *)(a1 + 48), a5); result = a8; *(_QWORD *)(a1 + 80) = 0LL; v11 = *a6; *((_QWORD *)a6 + 1) = 0LL; *(_OWORD *)(a1 + 72) = v11; *(_QWORD *)a6 = 0LL; *(_QWORD *)(a1 + 96) = 0LL; v12 = *a7; *((_QWORD *)a7 + 1) = 0LL; *(_OWORD *)(a1 + 88) = v12; *(_QWORD *)a7 = 0LL; *(_BYTE *)(a1 + 104) = a8; return result; }
ForTemplateToken: PUSH R15 PUSH R14 PUSH RBX MOV R14,R9 MOV R15,R8 MOV R8D,ECX MOV ECX,EDX MOV RDX,RSI MOV RBX,RDI PUSH 0x6 POP RSI CALL 0x00161a8a LEA RAX,[0x1fcc20] ADD RAX,0x10 MOV qword ptr [RBX],RAX LEA RDI,[RBX + 0x30] LAB_00171886: MOV RSI,R15 CALL 0x00139c8c LAB_0017188e: MOV AL,byte ptr [RSP + 0x28] MOV RCX,qword ptr [RSP + 0x20] AND qword ptr [RBX + 0x50],0x0 MOVUPS XMM0,xmmword ptr [R14] AND qword ptr [R14 + 0x8],0x0 MOVUPS xmmword ptr [RBX + 0x48],XMM0 AND qword ptr [R14],0x0 AND qword ptr [RBX + 0x60],0x0 MOVUPS XMM0,xmmword ptr [RCX] AND qword ptr [RCX + 0x8],0x0 MOVUPS xmmword ptr [RBX + 0x58],XMM0 AND qword ptr [RCX],0x0 MOV byte ptr [RBX + 0x68],AL POP RBX POP R14 POP R15 RET
/* minja::ForTemplateToken::ForTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, bool) */ void __thiscall minja::ForTemplateToken::ForTemplateToken (ForTemplateToken *this,int8 param_1,int4 param_3,int4 param_4, vector *param_5,int8 *param_6,int8 *param_7,ForTemplateToken param_8) { int8 uVar1; TemplateToken::TemplateToken((TemplateToken *)this,6,param_1,param_3,param_4); *(int ***)this = &PTR__ForTemplateToken_001fcc30; /* try { // try from 00171886 to 0017188d has its CatchHandler @ 001718cb */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x30), param_5); *(int8 *)(this + 0x50) = 0; uVar1 = param_6[1]; param_6[1] = 0; *(int8 *)(this + 0x48) = *param_6; *(int8 *)(this + 0x50) = uVar1; *param_6 = 0; *(int8 *)(this + 0x60) = 0; uVar1 = param_7[1]; param_7[1] = 0; *(int8 *)(this + 0x58) = *param_7; *(int8 *)(this + 0x60) = uVar1; *param_7 = 0; this[0x68] = param_8; return; }
44,015
my_casefold_ujis
eloqsql/strings/ctype-ujis.c
static size_t my_casefold_ujis(CHARSET_INFO *cs, const char *src, size_t srclen, char *dst, size_t dstlen __attribute__((unused)), const uchar * const map, size_t is_upper) { const char *srcend= src + srclen, *dst0= dst; while (src < srcend) { size_t mblen= my_ismbchar(cs, src, srcend); if (mblen) { MY_UNICASE_CHARACTER *ch; ch= (mblen == 2) ? get_case_info_for_ch(cs, 0, (uchar) src[0], (uchar) src[1]) : get_case_info_for_ch(cs, 1, (uchar) src[1], (uchar) src[2]); if (ch) { int code= is_upper ? ch->toupper : ch->tolower; src+= mblen; if (code > 0xFFFF) *dst++= (char) (uchar) ((code >> 16) & 0xFF); if (code > 0xFF) *dst++= (char) (uchar) ((code >> 8) & 0xFF); *dst++= (char) (uchar) (code & 0xFF); } else { if (mblen == 3) *dst++= *src++; *dst++= *src++; *dst++= *src++; } } else { *dst++= (char) map[(uchar) *src++]; } } return (size_t) (dst - dst0); }
O0
c
my_casefold_ujis: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq 0x10(%rbp), %rax 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), %rax addq -0x18(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x10(%rbp), %rax cmpq -0x38(%rbp), %rax jae 0x6e23b movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x38(%rbp), %rdx callq 0x6e2b0 movl %eax, %eax movq %rax, -0x48(%rbp) cmpq $0x0, -0x48(%rbp) je 0x6e20c cmpq $0x2, -0x48(%rbp) jne 0x6e0cf movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rax movzbl (%rax), %edx movq -0x10(%rbp), %rax movzbl 0x1(%rax), %ecx xorl %esi, %esi callq 0x6e310 movq %rax, -0x60(%rbp) jmp 0x6e0f1 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rax movzbl 0x1(%rax), %edx movq -0x10(%rbp), %rax movzbl 0x2(%rax), %ecx movl $0x1, %esi callq 0x6e310 movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rax movq %rax, -0x50(%rbp) cmpq $0x0, -0x50(%rbp) je 0x6e19d cmpq $0x0, 0x10(%rbp) je 0x6e116 movq -0x50(%rbp), %rax movl (%rax), %eax movl %eax, -0x64(%rbp) jmp 0x6e120 movq -0x50(%rbp), %rax movl 0x4(%rax), %eax movl %eax, -0x64(%rbp) movl -0x64(%rbp), %eax movl %eax, -0x54(%rbp) movq -0x48(%rbp), %rax addq -0x10(%rbp), %rax movq %rax, -0x10(%rbp) cmpl $0xffff, -0x54(%rbp) # imm = 0xFFFF jle 0x6e159 movl -0x54(%rbp), %eax sarl $0x10, %eax andl $0xff, %eax movb %al, %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) cmpl $0xff, -0x54(%rbp) jle 0x6e180 movl -0x54(%rbp), %eax sarl $0x8, %eax andl $0xff, %eax movb %al, %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movl -0x54(%rbp), %eax andl $0xff, %eax movb %al, %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) jmp 0x6e20a cmpq $0x3, -0x48(%rbp) jne 0x6e1c6 movq -0x10(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x10(%rbp) movb (%rax), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movq -0x10(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x10(%rbp) movb (%rax), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movq -0x10(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x10(%rbp) movb (%rax), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) jmp 0x6e236 movq -0x30(%rbp), %rax movq -0x10(%rbp), %rcx movq %rcx, %rdx addq $0x1, %rdx movq %rdx, -0x10(%rbp) movzbl (%rcx), %ecx movb (%rax,%rcx), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) jmp 0x6e078 movq -0x20(%rbp), %rax movq -0x40(%rbp), %rcx subq %rcx, %rax addq $0x70, %rsp popq %rbp retq nopl (%rax)
my_casefold_ujis: push rbp mov rbp, rsp sub rsp, 70h mov rax, [rbp+arg_0] 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 rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_38], rax mov rax, [rbp+var_20] mov [rbp+var_40], rax loc_6E078: mov rax, [rbp+var_10] cmp rax, [rbp+var_38] jnb loc_6E23B mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_38] call my_ismbchar_2 mov eax, eax mov [rbp+var_48], rax cmp [rbp+var_48], 0 jz loc_6E20C cmp [rbp+var_48], 2 jnz short loc_6E0CF mov rdi, [rbp+var_8] mov rax, [rbp+var_10] movzx edx, byte ptr [rax] mov rax, [rbp+var_10] movzx ecx, byte ptr [rax+1] xor esi, esi call get_case_info_for_ch_0 mov [rbp+var_60], rax jmp short loc_6E0F1 loc_6E0CF: mov rdi, [rbp+var_8] mov rax, [rbp+var_10] movzx edx, byte ptr [rax+1] mov rax, [rbp+var_10] movzx ecx, byte ptr [rax+2] mov esi, 1 call get_case_info_for_ch_0 mov [rbp+var_60], rax loc_6E0F1: mov rax, [rbp+var_60] mov [rbp+var_50], rax cmp [rbp+var_50], 0 jz loc_6E19D cmp [rbp+arg_0], 0 jz short loc_6E116 mov rax, [rbp+var_50] mov eax, [rax] mov [rbp+var_64], eax jmp short loc_6E120 loc_6E116: mov rax, [rbp+var_50] mov eax, [rax+4] mov [rbp+var_64], eax loc_6E120: mov eax, [rbp+var_64] mov [rbp+var_54], eax mov rax, [rbp+var_48] add rax, [rbp+var_10] mov [rbp+var_10], rax cmp [rbp+var_54], 0FFFFh jle short loc_6E159 mov eax, [rbp+var_54] sar eax, 10h and eax, 0FFh mov cl, al mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl loc_6E159: cmp [rbp+var_54], 0FFh jle short loc_6E180 mov eax, [rbp+var_54] sar eax, 8 and eax, 0FFh mov cl, al mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl loc_6E180: mov eax, [rbp+var_54] and eax, 0FFh mov cl, al mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl jmp short loc_6E20A loc_6E19D: cmp [rbp+var_48], 3 jnz short loc_6E1C6 mov rax, [rbp+var_10] mov rcx, rax add rcx, 1 mov [rbp+var_10], rcx mov cl, [rax] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl loc_6E1C6: mov rax, [rbp+var_10] mov rcx, rax add rcx, 1 mov [rbp+var_10], rcx mov cl, [rax] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov rax, [rbp+var_10] mov rcx, rax add rcx, 1 mov [rbp+var_10], rcx mov cl, [rax] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl loc_6E20A: jmp short loc_6E236 loc_6E20C: mov rax, [rbp+var_30] mov rcx, [rbp+var_10] mov rdx, rcx add rdx, 1 mov [rbp+var_10], rdx 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 loc_6E236: jmp loc_6E078 loc_6E23B: mov rax, [rbp+var_20] mov rcx, [rbp+var_40] sub rax, rcx add rsp, 70h pop rbp retn
_BYTE * my_casefold_ujis( long long a1, unsigned __int8 *a2, long long a3, unsigned __int8 *a4, long long a5, long long a6, long long a7) { unsigned int v7; // eax unsigned __int8 *v8; // rax unsigned __int8 *v9; // rax unsigned __int8 *v10; // rax unsigned __int8 *v11; // rax unsigned __int8 v12; // cl unsigned __int8 *v13; // rax char *v14; // rax char v15; // cl _BYTE *v16; // rax unsigned __int8 *v17; // rcx unsigned __int8 *v18; // rax int v20; // [rsp+Ch] [rbp-64h] int *case_info_for_ch_0; // [rsp+10h] [rbp-60h] long long v22; // [rsp+28h] [rbp-48h] unsigned long long v24; // [rsp+38h] [rbp-38h] unsigned __int8 *v26; // [rsp+50h] [rbp-20h] unsigned __int8 *v27; // [rsp+60h] [rbp-10h] v27 = a2; v26 = a4; v24 = (unsigned long long)&a2[a3]; while ( (unsigned long long)v27 < v24 ) { v7 = my_ismbchar_2(a1, v27, v24); v22 = v7; if ( v7 ) { if ( v7 == 2LL ) case_info_for_ch_0 = (int *)get_case_info_for_ch_0(a1, 0LL, *v27, v27[1]); else case_info_for_ch_0 = (int *)get_case_info_for_ch_0(a1, 1LL, v27[1], v27[2]); if ( case_info_for_ch_0 ) { if ( a7 ) v20 = *case_info_for_ch_0; else v20 = case_info_for_ch_0[1]; v27 += v22; if ( v20 > 0xFFFF ) { v8 = v26++; *v8 = BYTE2(v20); } if ( v20 > 255 ) { v9 = v26++; *v9 = BYTE1(v20); } v10 = v26++; *v10 = v20; } else { if ( v22 == 3 ) { v11 = v27++; v12 = *v11; v13 = v26++; *v13 = v12; } *v26 = *v27; v14 = (char *)(v27 + 1); v27 += 2; v15 = *v14; v16 = v26 + 1; v26 += 2; *v16 = v15; } } else { v17 = v27++; v18 = v26++; *v18 = *(_BYTE *)(a6 + *v17); } } return (_BYTE *)(v26 - a4); }
my_casefold_ujis: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV RAX,qword ptr [RBP + 0x10] 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 RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x40],RAX LAB_0016e078: MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x38] JNC 0x0016e23b MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x38] CALL 0x0016e2b0 MOV EAX,EAX MOV qword ptr [RBP + -0x48],RAX CMP qword ptr [RBP + -0x48],0x0 JZ 0x0016e20c CMP qword ptr [RBP + -0x48],0x2 JNZ 0x0016e0cf MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOVZX EDX,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RAX + 0x1] XOR ESI,ESI CALL 0x0016e310 MOV qword ptr [RBP + -0x60],RAX JMP 0x0016e0f1 LAB_0016e0cf: MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOVZX EDX,byte ptr [RAX + 0x1] MOV RAX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RAX + 0x2] MOV ESI,0x1 CALL 0x0016e310 MOV qword ptr [RBP + -0x60],RAX LAB_0016e0f1: MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RBP + -0x50],RAX CMP qword ptr [RBP + -0x50],0x0 JZ 0x0016e19d CMP qword ptr [RBP + 0x10],0x0 JZ 0x0016e116 MOV RAX,qword ptr [RBP + -0x50] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x64],EAX JMP 0x0016e120 LAB_0016e116: MOV RAX,qword ptr [RBP + -0x50] MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RBP + -0x64],EAX LAB_0016e120: MOV EAX,dword ptr [RBP + -0x64] MOV dword ptr [RBP + -0x54],EAX MOV RAX,qword ptr [RBP + -0x48] ADD RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x10],RAX CMP dword ptr [RBP + -0x54],0xffff JLE 0x0016e159 MOV EAX,dword ptr [RBP + -0x54] SAR EAX,0x10 AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL LAB_0016e159: CMP dword ptr [RBP + -0x54],0xff JLE 0x0016e180 MOV EAX,dword ptr [RBP + -0x54] SAR EAX,0x8 AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL LAB_0016e180: MOV EAX,dword ptr [RBP + -0x54] AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL JMP 0x0016e20a LAB_0016e19d: CMP qword ptr [RBP + -0x48],0x3 JNZ 0x0016e1c6 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x10],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL LAB_0016e1c6: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x10],RCX MOV CL,byte ptr [RAX] 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] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x10],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL LAB_0016e20a: JMP 0x0016e236 LAB_0016e20c: MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x10] MOV RDX,RCX ADD RDX,0x1 MOV qword ptr [RBP + -0x10],RDX 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 LAB_0016e236: JMP 0x0016e078 LAB_0016e23b: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x40] SUB RAX,RCX ADD RSP,0x70 POP RBP RET
long my_casefold_ujis(int8 param_1,byte *param_2,long param_3,byte *param_4,int8 param_5 ,long param_6,long param_7) { uint uVar1; ulong uVar2; byte *pbVar3; byte *pbVar4; int local_6c; int *local_68; byte *local_28; byte *local_18; local_28 = param_4; local_18 = param_2; while (local_18 < param_2 + param_3) { uVar1 = my_ismbchar(param_1,local_18,param_2 + param_3); uVar2 = (ulong)uVar1; if (uVar2 == 0) { *local_28 = *(byte *)(param_6 + (ulong)*local_18); local_28 = local_28 + 1; local_18 = local_18 + 1; } else { if (uVar2 == 2) { local_68 = (int *)get_case_info_for_ch(param_1,0,*local_18,local_18[1]); } else { local_68 = (int *)get_case_info_for_ch(param_1,1,local_18[1],local_18[2]); } if (local_68 == (int *)0x0) { if (uVar2 == 3) { *local_28 = *local_18; local_28 = local_28 + 1; local_18 = local_18 + 1; } pbVar3 = local_18 + 1; pbVar4 = local_28 + 1; *local_28 = *local_18; local_18 = local_18 + 2; local_28 = local_28 + 2; *pbVar4 = *pbVar3; } else { if (param_7 == 0) { local_6c = local_68[1]; } else { local_6c = *local_68; } local_18 = local_18 + uVar2; if (0xffff < local_6c) { *local_28 = (byte)((uint)local_6c >> 0x10); local_28 = local_28 + 1; } if (0xff < local_6c) { *local_28 = (byte)((uint)local_6c >> 8); local_28 = local_28 + 1; } *local_28 = (byte)local_6c; local_28 = local_28 + 1; } } } return (long)local_28 - (long)param_4; }
44,016
updatewindow
3fs/build_O3/src/apache-arrow-cpp/cpp/zlib_ep-prefix/src/zlib_ep/inflate.c
local int updatewindow(strm, end, copy) z_streamp strm; const Bytef *end; unsigned copy; { struct inflate_state FAR *state; unsigned dist; state = (struct inflate_state FAR *)strm->state; /* if it hasn't been done already, allocate space for the window */ if (state->window == Z_NULL) { state->window = (unsigned char FAR *) ZALLOC(strm, 1U << state->wbits, sizeof(unsigned char)); if (state->window == Z_NULL) return 1; } /* if window not in use yet, initialize */ if (state->wsize == 0) { state->wsize = 1U << state->wbits; state->wnext = 0; state->whave = 0; } /* copy state->wsize or less output bytes into the circular window */ if (copy >= state->wsize) { zmemcpy(state->window, end - state->wsize, state->wsize); state->wnext = 0; state->whave = state->wsize; } else { dist = state->wsize - state->wnext; if (dist > copy) dist = copy; zmemcpy(state->window + state->wnext, end - copy, dist); copy -= dist; if (copy) { zmemcpy(state->window, end - copy, copy); state->wnext = copy; state->whave = state->wsize; } else { state->wnext += dist; if (state->wnext == state->wsize) state->wnext = 0; if (state->whave < state->wsize) state->whave += dist; } } return 0; }
O3
c
updatewindow: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %edx, %r14d movq %rsi, %rbx movq %rdi, %rax movq 0x38(%rdi), %r12 movq 0x48(%r12), %rdi testq %rdi, %rdi jne 0xa9b2 movq 0x50(%rax), %rdi movb 0x38(%r12), %cl movl $0x1, %ebp movl $0x1, %esi shll %cl, %esi movl $0x1, %edx callq *0x40(%rax) movq %rax, %rdi movq %rax, 0x48(%r12) testq %rax, %rax je 0xaa43 movl 0x3c(%r12), %ebp testl %ebp, %ebp jne 0xa9d5 movb 0x38(%r12), %cl movl $0x1, %ebp shll %cl, %ebp movl %ebp, 0x3c(%r12) movq $0x0, 0x40(%r12) cmpl %r14d, %ebp jbe 0xaa21 movl 0x44(%r12), %eax subl %eax, %ebp cmpl %r14d, %ebp movl %r14d, %r15d cmovbl %ebp, %r15d addq %rax, %rdi movl %r14d, %eax movq %rbx, %rsi subq %rax, %rsi movq %r15, %rdx callq 0x31b0 cmpl %r14d, %ebp jae 0xaa4e subl %r15d, %r14d movq 0x48(%r12), %rdi subq %r14, %rbx movq %rbx, %rsi movq %r14, %rdx callq 0x31b0 movl %r14d, 0x44(%r12) jmp 0xaa37 movl %ebp, %edx subq %rdx, %rbx movq %rbx, %rsi callq 0x31b0 movl $0x0, 0x44(%r12) movl 0x3c(%r12), %eax movl %eax, 0x40(%r12) xorl %ebp, %ebp movl %ebp, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl 0x44(%r12), %ecx addl %r15d, %ecx movl 0x3c(%r12), %edx movl 0x40(%r12), %eax xorl %ebp, %ebp cmpl %edx, %ecx cmovel %ebp, %ecx movl %ecx, 0x44(%r12) cmpl %edx, %eax jae 0xaa43 addl %r15d, %eax movl %eax, 0x40(%r12) jmp 0xaa43
updatewindow: push rbp push r15 push r14 push r12 push rbx mov r14d, edx mov rbx, rsi mov rax, rdi mov r12, [rdi+38h] mov rdi, [r12+48h] test rdi, rdi jnz short loc_A9B2 mov rdi, [rax+50h] mov cl, [r12+38h] mov ebp, 1 mov esi, 1 shl esi, cl mov edx, 1 call qword ptr [rax+40h] mov rdi, rax mov [r12+48h], rax test rax, rax jz loc_AA43 loc_A9B2: mov ebp, [r12+3Ch] test ebp, ebp jnz short loc_A9D5 mov cl, [r12+38h] mov ebp, 1 shl ebp, cl mov [r12+3Ch], ebp mov qword ptr [r12+40h], 0 loc_A9D5: cmp ebp, r14d jbe short loc_AA21 mov eax, [r12+44h] sub ebp, eax cmp ebp, r14d mov r15d, r14d cmovb r15d, ebp add rdi, rax mov eax, r14d mov rsi, rbx sub rsi, rax mov rdx, r15 call _memcpy cmp ebp, r14d jnb short loc_AA4E sub r14d, r15d mov rdi, [r12+48h] sub rbx, r14 mov rsi, rbx mov rdx, r14 call _memcpy mov [r12+44h], r14d jmp short loc_AA37 loc_AA21: mov edx, ebp sub rbx, rdx mov rsi, rbx call _memcpy mov dword ptr [r12+44h], 0 loc_AA37: mov eax, [r12+3Ch] mov [r12+40h], eax xor ebp, ebp loc_AA43: mov eax, ebp pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_AA4E: mov ecx, [r12+44h] add ecx, r15d mov edx, [r12+3Ch] mov eax, [r12+40h] xor ebp, ebp cmp ecx, edx cmovz ecx, ebp mov [r12+44h], ecx cmp eax, edx jnb short loc_AA43 add eax, r15d mov [r12+40h], eax jmp short loc_AA43
long long updatewindow(long long a1, long long a2, unsigned int a3) { long long v5; // r12 long long v6; // rdi unsigned int v7; // ebp unsigned int v8; // ebp long long v9; // rax unsigned int v10; // ebp long long v11; // r15 long long v12; // r14 int v14; // ecx unsigned int v15; // edx unsigned int v16; // eax v5 = *(_QWORD *)(a1 + 56); v6 = *(_QWORD *)(v5 + 72); if ( v6 || (v7 = 1, v6 = (*(long long ( **)(_QWORD, _QWORD, long long))(a1 + 64))( *(_QWORD *)(a1 + 80), (unsigned int)(1 << *(_BYTE *)(v5 + 56)), 1LL), (*(_QWORD *)(v5 + 72) = v6) != 0LL) ) { v8 = *(_DWORD *)(v5 + 60); if ( !v8 ) { v8 = 1 << *(_BYTE *)(v5 + 56); *(_DWORD *)(v5 + 60) = v8; *(_QWORD *)(v5 + 64) = 0LL; } if ( v8 <= a3 ) { memcpy(v6, a2 - v8, v8); *(_DWORD *)(v5 + 68) = 0; goto LABEL_11; } v9 = *(unsigned int *)(v5 + 68); v10 = v8 - v9; v11 = a3; if ( v10 < a3 ) v11 = v10; memcpy(v9 + v6, a2 - a3, v11); if ( v10 < a3 ) { v12 = a3 - (unsigned int)v11; memcpy(*(_QWORD *)(v5 + 72), a2 - v12, v12); *(_DWORD *)(v5 + 68) = v12; LABEL_11: *(_DWORD *)(v5 + 64) = *(_DWORD *)(v5 + 60); return 0; } v14 = v11 + *(_DWORD *)(v5 + 68); v15 = *(_DWORD *)(v5 + 60); v16 = *(_DWORD *)(v5 + 64); v7 = 0; if ( v14 == v15 ) v14 = 0; *(_DWORD *)(v5 + 68) = v14; if ( v16 < v15 ) *(_DWORD *)(v5 + 64) = v11 + v16; } return v7; }
updatewindow: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14D,EDX MOV RBX,RSI MOV RAX,RDI MOV R12,qword ptr [RDI + 0x38] MOV RDI,qword ptr [R12 + 0x48] TEST RDI,RDI JNZ 0x0010a9b2 MOV RDI,qword ptr [RAX + 0x50] MOV CL,byte ptr [R12 + 0x38] MOV EBP,0x1 MOV ESI,0x1 SHL ESI,CL MOV EDX,0x1 CALL qword ptr [RAX + 0x40] MOV RDI,RAX MOV qword ptr [R12 + 0x48],RAX TEST RAX,RAX JZ 0x0010aa43 LAB_0010a9b2: MOV EBP,dword ptr [R12 + 0x3c] TEST EBP,EBP JNZ 0x0010a9d5 MOV CL,byte ptr [R12 + 0x38] MOV EBP,0x1 SHL EBP,CL MOV dword ptr [R12 + 0x3c],EBP MOV qword ptr [R12 + 0x40],0x0 LAB_0010a9d5: CMP EBP,R14D JBE 0x0010aa21 MOV EAX,dword ptr [R12 + 0x44] SUB EBP,EAX CMP EBP,R14D MOV R15D,R14D CMOVC R15D,EBP ADD RDI,RAX MOV EAX,R14D MOV RSI,RBX SUB RSI,RAX MOV RDX,R15 CALL 0x001031b0 CMP EBP,R14D JNC 0x0010aa4e SUB R14D,R15D MOV RDI,qword ptr [R12 + 0x48] SUB RBX,R14 MOV RSI,RBX MOV RDX,R14 CALL 0x001031b0 MOV dword ptr [R12 + 0x44],R14D JMP 0x0010aa37 LAB_0010aa21: MOV EDX,EBP SUB RBX,RDX MOV RSI,RBX CALL 0x001031b0 MOV dword ptr [R12 + 0x44],0x0 LAB_0010aa37: MOV EAX,dword ptr [R12 + 0x3c] MOV dword ptr [R12 + 0x40],EAX XOR EBP,EBP LAB_0010aa43: MOV EAX,EBP POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0010aa4e: MOV ECX,dword ptr [R12 + 0x44] ADD ECX,R15D MOV EDX,dword ptr [R12 + 0x3c] MOV EAX,dword ptr [R12 + 0x40] XOR EBP,EBP CMP ECX,EDX CMOVZ ECX,EBP MOV dword ptr [R12 + 0x44],ECX CMP EAX,EDX JNC 0x0010aa43 ADD EAX,R15D MOV dword ptr [R12 + 0x40],EAX JMP 0x0010aa43
int4 updatewindow(long param_1,long param_2,uint param_3) { long lVar1; void *__dest; uint uVar2; int iVar3; size_t __n; lVar1 = *(long *)(param_1 + 0x38); __dest = *(void **)(lVar1 + 0x48); if (__dest == (void *)0x0) { __dest = (void *)(**(code **)(param_1 + 0x40)) (*(int8 *)(param_1 + 0x50), 1 << (*(byte *)(lVar1 + 0x38) & 0x1f),1); *(void **)(lVar1 + 0x48) = __dest; if (__dest == (void *)0x0) { return 1; } } uVar2 = *(uint *)(lVar1 + 0x3c); if (uVar2 == 0) { uVar2 = 1 << (*(byte *)(lVar1 + 0x38) & 0x1f); *(uint *)(lVar1 + 0x3c) = uVar2; *(int8 *)(lVar1 + 0x40) = 0; } if (param_3 < uVar2) { uVar2 = uVar2 - *(uint *)(lVar1 + 0x44); __n = (size_t)param_3; if (uVar2 < param_3) { __n = (size_t)uVar2; } memcpy((void *)((long)__dest + (ulong)*(uint *)(lVar1 + 0x44)), (void *)(param_2 - (ulong)param_3),__n); iVar3 = (int)__n; if (param_3 <= uVar2) { uVar2 = *(int *)(lVar1 + 0x44) + iVar3; if (uVar2 == *(uint *)(lVar1 + 0x3c)) { uVar2 = 0; } *(uint *)(lVar1 + 0x44) = uVar2; if (*(uint *)(lVar1 + 0x3c) <= *(uint *)(lVar1 + 0x40)) { return 0; } *(uint *)(lVar1 + 0x40) = *(uint *)(lVar1 + 0x40) + iVar3; return 0; } param_3 = param_3 - iVar3; memcpy(*(void **)(lVar1 + 0x48),(void *)(param_2 - (ulong)param_3),(ulong)param_3); *(uint *)(lVar1 + 0x44) = param_3; } else { memcpy(__dest,(void *)(param_2 - (ulong)uVar2),(ulong)uVar2); *(int4 *)(lVar1 + 0x44) = 0; } *(int4 *)(lVar1 + 0x40) = *(int4 *)(lVar1 + 0x3c); return 0; }
44,017
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_object(unsigned long)
monkey531[P]llama/common/./json.hpp
bool start_object(std::size_t len) { ref_stack.push_back(handle_value(BasicJsonType::value_t::object)); if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size())) { JSON_THROW(out_of_range::create(408, concat("excessive object size: ", std::to_string(len)), ref_stack.back())); } return true; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_object(unsigned long): subq $0x98, %rsp movq %rdi, 0x90(%rsp) movq %rsi, 0x88(%rsp) movq 0x90(%rsp), %rdi movq %rdi, 0x18(%rsp) movq %rdi, %rax addq $0x8, %rax movq %rax, 0x20(%rsp) movb $0x1, 0x7f(%rsp) leaq 0x7f(%rsp), %rsi callq 0xc3dc0 movq 0x20(%rsp), %rdi movq %rax, 0x80(%rsp) leaq 0x80(%rsp), %rsi callq 0xc3d90 xorl %eax, %eax cmpq $-0x1, 0x88(%rsp) movb %al, 0x2a(%rsp) je 0xc371f movq 0x18(%rsp), %rdi movq 0x88(%rsp), %rax movq %rax, 0x10(%rsp) addq $0x8, %rdi callq 0xb9880 movq (%rax), %rdi callq 0xb98c0 movq %rax, %rcx movq 0x10(%rsp), %rax cmpq %rcx, %rax seta %al movb %al, 0x2a(%rsp) movb 0x2a(%rsp), %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0xc3730 jmp 0xc380d movb $0x1, 0x2b(%rsp) movl $0x20, %edi callq 0x50540 movq %rax, 0x8(%rsp) movq 0x88(%rsp), %rsi leaq 0x38(%rsp), %rdi callq 0xb9ba0 jmp 0xc3758 leaq 0x10b4bd(%rip), %rsi # 0x1cec1c leaq 0x58(%rsp), %rdi leaq 0x38(%rsp), %rdx callq 0xb9af0 jmp 0xc3770 movq 0x18(%rsp), %rdi addq $0x8, %rdi callq 0xb9880 movq 0x8(%rsp), %rdi movq (%rax), %rcx movl $0x198, %esi # imm = 0x198 leaq 0x58(%rsp), %rdx callq 0xb9940 jmp 0xc3797 movq 0x8(%rsp), %rdi movb $0x0, 0x2b(%rsp) leaq 0x18ea38(%rip), %rsi # 0x2521e0 leaq -0xa86f(%rip), %rdx # 0xb8f40 callq 0x508f0 jmp 0xc3823 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) jmp 0xc37f8 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) jmp 0xc37ee movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) leaq 0x58(%rsp), %rdi callq 0x510c0 leaq 0x38(%rsp), %rdi callq 0x510c0 testb $0x1, 0x2b(%rsp) jne 0xc3801 jmp 0xc380b movq 0x8(%rsp), %rdi callq 0x50c40 jmp 0xc3819 movb $0x1, %al andb $0x1, %al addq $0x98, %rsp retq movq 0x30(%rsp), %rdi callq 0x50940 nopw %cs:(%rax,%rax) nopl (%rax)
_ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12start_objectEm: sub rsp, 98h mov qword ptr [rsp+98h+var_8], rdi; char mov [rsp+98h+var_10], rsi; int mov rdi, qword ptr [rsp+98h+var_8] mov qword ptr [rsp+98h+var_80], rdi; char mov rax, rdi add rax, 8 mov qword ptr [rsp+98h+var_78], rax; int mov [rsp+98h+var_19], 1 lea rsi, [rsp+98h+var_19] call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEEPSF_OT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&) mov rdi, qword ptr [rsp+98h+var_78] mov qword ptr [rsp+98h+var_18], rax; int lea rsi, [rsp+98h+var_18] call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE9push_backEOSE_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *&&) xor eax, eax cmp [rsp+98h+var_10], 0FFFFFFFFFFFFFFFFh mov [rsp+98h+var_6E], al jz short loc_C371F mov rdi, qword ptr [rsp+98h+var_80] mov rax, [rsp+98h+var_10] mov qword ptr [rsp+98h+var_88], rax; int add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::max_size(void) mov rcx, rax mov rax, qword ptr [rsp+98h+var_88] cmp rax, rcx setnbe al mov [rsp+98h+var_6E], al loc_C371F: mov al, [rsp+98h+var_6E] xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_C3730 jmp loc_C380D loc_C3730: mov [rsp+98h+var_6D], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+98h+var_90], rax; int mov rsi, [rsp+98h+var_10]; unsigned __int64 lea rdi, [rsp+98h+var_60]; this call _ZNSt7__cxx119to_stringEm; std::to_string(ulong) jmp short $+2 loc_C3758: lea rsi, aExcessiveObjec; "excessive object size: " lea rdi, [rsp+98h+var_40] lea rdx, [rsp+98h+var_60] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA24_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[24],std::string>(char const(&)[24],std::string &&) jmp short $+2 loc_C3770: mov rdi, qword ptr [rsp+98h+var_80] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rsp+98h+var_90]; int mov rcx, [rax] mov esi, 198h lea rdx, [rsp+98h+var_40] call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ jmp short $+2 loc_C3797: mov rdi, [rsp+98h+var_90]; void * mov [rsp+98h+var_6D], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeD2Ev; void (*)(void *) call ___cxa_throw jmp short loc_C3823 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax jmp short loc_C37F8 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax jmp short loc_C37EE mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_C37EE: lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_C37F8: test [rsp+arg_23], 1 jnz short loc_C3801 jmp short loc_C380B loc_C3801: mov rdi, [rsp+arg_0]; void * call ___cxa_free_exception loc_C380B: jmp short loc_C3819 loc_C380D: mov al, 1 and al, 1 add rsp, 98h retn loc_C3819: mov rdi, [rsp+arg_28] call __Unwind_Resume loc_C3823: nop word ptr [rax+rax+00000000h] nop dword ptr [rax]
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::start_object( long long a1, unsigned long long a2) { long long *v2; // rax long long *v3; // rax nlohmann::json_abi_v3_11_3::detail::out_of_range *exception; // [rsp+8h] [rbp-90h] unsigned long long v6; // [rsp+10h] [rbp-88h] bool v7; // [rsp+2Ah] [rbp-6Eh] _BYTE v8[32]; // [rsp+38h] [rbp-60h] BYREF _BYTE v9[39]; // [rsp+58h] [rbp-40h] BYREF char v10; // [rsp+7Fh] [rbp-19h] BYREF int v11[2]; // [rsp+80h] [rbp-18h] BYREF unsigned long long v12; // [rsp+88h] [rbp-10h] char v13[8]; // [rsp+90h] [rbp-8h] *(_QWORD *)v13 = a1; v12 = a2; v10 = 1; *(_QWORD *)v11 = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>( a1, &v10); std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::push_back( a1 + 8, v11); v7 = 0; if ( v12 != -1LL ) { v6 = v12; v2 = (long long *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); v7 = v6 > nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::max_size(*v2); } if ( v7 ) { exception = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); std::to_string((std::__cxx11 *)v8, v12); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[24],std::string>( (long long)v9, (long long)"excessive object size: ", (long long)v8); v3 = (long long *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 408, (long long)v9, *v3); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::out_of_range::~out_of_range); } return 1; }
start_object: SUB RSP,0x98 MOV qword ptr [RSP + 0x90],RDI MOV qword ptr [RSP + 0x88],RSI MOV RDI,qword ptr [RSP + 0x90] MOV qword ptr [RSP + 0x18],RDI MOV RAX,RDI ADD RAX,0x8 MOV qword ptr [RSP + 0x20],RAX MOV byte ptr [RSP + 0x7f],0x1 LEA RSI,[RSP + 0x7f] CALL 0x001c3dc0 MOV RDI,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x80],RAX LEA RSI,[RSP + 0x80] CALL 0x001c3d90 XOR EAX,EAX CMP qword ptr [RSP + 0x88],-0x1 MOV byte ptr [RSP + 0x2a],AL JZ 0x001c371f MOV RDI,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x10],RAX ADD RDI,0x8 CALL 0x001b9880 MOV RDI,qword ptr [RAX] CALL 0x001b98c0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] CMP RAX,RCX SETA AL MOV byte ptr [RSP + 0x2a],AL LAB_001c371f: MOV AL,byte ptr [RSP + 0x2a] XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001c3730 JMP 0x001c380d LAB_001c3730: MOV byte ptr [RSP + 0x2b],0x1 MOV EDI,0x20 CALL 0x00150540 MOV qword ptr [RSP + 0x8],RAX MOV RSI,qword ptr [RSP + 0x88] LAB_001c374c: LEA RDI,[RSP + 0x38] CALL 0x001b9ba0 JMP 0x001c3758 LAB_001c3758: LEA RSI,[0x2cec1c] LEA RDI,[RSP + 0x58] LEA RDX,[RSP + 0x38] CALL 0x001b9af0 JMP 0x001c3770 LAB_001c3770: MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 CALL 0x001b9880 MOV RDI,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RAX] LAB_001c3786: MOV ESI,0x198 LEA RDX,[RSP + 0x58] CALL 0x001b9940 JMP 0x001c3797 LAB_001c3797: MOV RDI,qword ptr [RSP + 0x8] MOV byte ptr [RSP + 0x2b],0x0 LEA RSI,[0x3521e0] LEA RDX,[0x1b8f40] CALL 0x001508f0 LAB_001c380d: MOV AL,0x1 AND AL,0x1 ADD RSP,0x98 RET
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::start_object(unsigned long) */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::start_object(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,ulong param_1) { bool bVar1; ulong uVar2; int8 *puVar3; ulong uVar4; int7 uVar6; int8 uVar5; __cxx11 local_60 [32]; detail local_40 [39]; value_t local_19; basic_json *local_18; ulong local_10; json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *local_8; local_19 = 1; local_10 = param_1; local_8 = this; local_18 = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,&local_19); std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::push_back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8),&local_18); uVar2 = local_10; uVar6 = 0; bVar1 = false; if (local_10 != 0xffffffffffffffff) { puVar3 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar4 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::max_size((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar3); bVar1 = uVar4 < uVar2; uVar6 = (int7)(uVar2 >> 8); } if (!bVar1) { return CONCAT71(uVar6,1); } uVar5 = __cxa_allocate_exception(0x20); /* try { // try from 001c374c to 001c3755 has its CatchHandler @ 001c37b6 */ std::__cxx11::to_string(local_60,local_10); /* try { // try from 001c3758 to 001c376d has its CatchHandler @ 001c37c6 */ concat<std::__cxx11::string,char_const(&)[24],std::__cxx11::string> (local_40,"excessive object size: ",(string *)local_60); puVar3 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); /* try { // try from 001c3786 to 001c37b3 has its CatchHandler @ 001c37d6 */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar5,0x198,local_40,*puVar3); /* WARNING: Subroutine does not return */ __cxa_throw(uVar5,&out_of_range::typeinfo,out_of_range::~out_of_range); }
44,018
find_where_to_split_row
eloqsql/storage/maria/ma_bitmap.c
static uint find_where_to_split_row(MARIA_SHARE *share, MARIA_ROW *row, uint extents, uint split_size) { uint *lengths, *lengths_end; /* Ensure we have the minimum required space on head page: - Header + length of field lengths (row->min_length) - Number of extents - One extent */ uint row_length= (row->min_length + size_to_store_key_length(extents) + ROW_EXTENT_SIZE); DBUG_ASSERT(row_length <= split_size); /* Store first in all_field_lengths the different parts that are written to the row. This needs to be in same order as in ma_block_rec.c::write_block_record() */ row->null_field_lengths[-3]= extents * ROW_EXTENT_SIZE; row->null_field_lengths[-2]= share->base.fixed_not_null_fields_length; row->null_field_lengths[-1]= row->field_lengths_length; for (lengths= row->null_field_lengths - EXTRA_LENGTH_FIELDS, lengths_end= (lengths + share->base.fields - share->base.blobs + EXTRA_LENGTH_FIELDS); lengths < lengths_end; lengths++) { if (row_length + *lengths > split_size) break; row_length+= *lengths; } return row_length; }
O3
c
find_where_to_split_row: pushq %rbp movq %rsp, %rbp movl 0x68(%rsi), %eax xorl %r8d, %r8d cmpl $0xff, %edx setae %r8b leal (%rax,%r8,2), %r8d addl $0x8, %r8d leal (,%rdx,8), %eax subl %edx, %eax movq 0x58(%rsi), %rdx movl %eax, -0xc(%rdx) movl 0x3d0(%rdi), %eax movq 0x58(%rsi), %rdx movl %eax, -0x8(%rdx) movl 0xa8(%rsi), %eax movq 0x58(%rsi), %rdx movl %eax, -0x4(%rdx) movl 0x3c8(%rdi), %r9d movl 0x3f0(%rdi), %eax leaq (,%r9,4), %rdx shlq $0x2, %rax subq %rax, %rdx addq $-0xc, %rdx cmpq $-0x17, %rdx jl 0x40c68 movq 0x58(%rsi), %rdx leaq (%rdx,%r9,4), %rsi subq %rax, %rsi addq $-0xc, %rdx movl %r8d, %eax movl (%rdx), %r8d addl %eax, %r8d cmpl %ecx, %r8d ja 0x40c6b addq $0x4, %rdx movl %r8d, %eax cmpq %rsi, %rdx jb 0x40c4c jmp 0x40c6b movl %r8d, %eax popq %rbp retq
find_where_to_split_row: push rbp mov rbp, rsp mov eax, [rsi+68h] xor r8d, r8d cmp edx, 0FFh setnb r8b lea r8d, [rax+r8*2] add r8d, 8 lea eax, ds:0[rdx*8] sub eax, edx mov rdx, [rsi+58h] mov [rdx-0Ch], eax mov eax, [rdi+3D0h] mov rdx, [rsi+58h] mov [rdx-8], eax mov eax, [rsi+0A8h] mov rdx, [rsi+58h] mov [rdx-4], eax mov r9d, [rdi+3C8h] mov eax, [rdi+3F0h] lea rdx, ds:0[r9*4] shl rax, 2 sub rdx, rax add rdx, 0FFFFFFFFFFFFFFF4h cmp rdx, 0FFFFFFFFFFFFFFE9h jl short loc_40C68 mov rdx, [rsi+58h] lea rsi, [rdx+r9*4] sub rsi, rax add rdx, 0FFFFFFFFFFFFFFF4h loc_40C4C: mov eax, r8d mov r8d, [rdx] add r8d, eax cmp r8d, ecx ja short loc_40C6B add rdx, 4 mov eax, r8d cmp rdx, rsi jb short loc_40C4C jmp short loc_40C6B loc_40C68: mov eax, r8d loc_40C6B: pop rbp retn
long long find_where_to_split_row(unsigned int *a1, long long a2, unsigned int a3, unsigned int a4) { unsigned int v4; // r8d long long v5; // r9 long long v6; // rax long long v7; // rdx unsigned long long v8; // rsi _DWORD *v9; // rdx long long result; // rax v4 = *(_DWORD *)(a2 + 104) + 2 * (a3 >= 0xFF) + 8; *(_DWORD *)(*(_QWORD *)(a2 + 88) - 12LL) = 7 * a3; *(_DWORD *)(*(_QWORD *)(a2 + 88) - 8LL) = a1[244]; *(_DWORD *)(*(_QWORD *)(a2 + 88) - 4LL) = *(_DWORD *)(a2 + 168); v5 = a1[242]; v6 = 4LL * a1[252]; if ( 4 * v5 - v6 - 12 < -23 ) return v4; v7 = *(_QWORD *)(a2 + 88); v8 = v7 + 4 * v5 - v6; v9 = (_DWORD *)(v7 - 12); do { result = v4; v4 += *v9; if ( v4 > a4 ) break; ++v9; result = v4; } while ( (unsigned long long)v9 < v8 ); return result; }
find_where_to_split_row: PUSH RBP MOV RBP,RSP MOV EAX,dword ptr [RSI + 0x68] XOR R8D,R8D CMP EDX,0xff SETNC R8B LEA R8D,[RAX + R8*0x2] ADD R8D,0x8 LEA EAX,[RDX*0x8] SUB EAX,EDX MOV RDX,qword ptr [RSI + 0x58] MOV dword ptr [RDX + -0xc],EAX MOV EAX,dword ptr [RDI + 0x3d0] MOV RDX,qword ptr [RSI + 0x58] MOV dword ptr [RDX + -0x8],EAX MOV EAX,dword ptr [RSI + 0xa8] MOV RDX,qword ptr [RSI + 0x58] MOV dword ptr [RDX + -0x4],EAX MOV R9D,dword ptr [RDI + 0x3c8] MOV EAX,dword ptr [RDI + 0x3f0] LEA RDX,[R9*0x4] SHL RAX,0x2 SUB RDX,RAX ADD RDX,-0xc CMP RDX,-0x17 JL 0x00140c68 MOV RDX,qword ptr [RSI + 0x58] LEA RSI,[RDX + R9*0x4] SUB RSI,RAX ADD RDX,-0xc LAB_00140c4c: MOV EAX,R8D MOV R8D,dword ptr [RDX] ADD R8D,EAX CMP R8D,ECX JA 0x00140c6b ADD RDX,0x4 MOV EAX,R8D CMP RDX,RSI JC 0x00140c4c JMP 0x00140c6b LAB_00140c68: MOV EAX,R8D LAB_00140c6b: POP RBP RET
uint find_where_to_split_row(long param_1,long param_2,uint param_3,uint param_4) { int *piVar1; uint uVar2; uint uVar3; uVar2 = *(int *)(param_2 + 0x68) + (uint)(0xfe < param_3) * 2 + 8; *(uint *)(*(long *)(param_2 + 0x58) + -0xc) = param_3 * 7; *(int4 *)(*(long *)(param_2 + 0x58) + -8) = *(int4 *)(param_1 + 0x3d0); *(int4 *)(*(long *)(param_2 + 0x58) + -4) = *(int4 *)(param_2 + 0xa8); if (-0x18 < (long)((ulong)*(uint *)(param_1 + 0x3c8) * 4 + (ulong)*(uint *)(param_1 + 0x3f0) * -4 + -0xc)) { piVar1 = (int *)(*(long *)(param_2 + 0x58) + -0xc); uVar3 = uVar2; do { uVar2 = *piVar1 + uVar3; if (param_4 < uVar2) { return uVar3; } piVar1 = piVar1 + 1; uVar3 = uVar2; } while (piVar1 < (int *)(*(long *)(param_2 + 0x58) + (ulong)*(uint *)(param_1 + 0x3c8) * 4 + (ulong)*(uint *)(param_1 + 0x3f0) * -4)); } return uVar2; }
44,019
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::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>>::moved_or_copied() const
monkey531[P]llama/common/json.hpp
value_type moved_or_copied() const { if (value_ref == nullptr) { return std::move(owned_value); } return *value_ref; }
O3
cpp
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::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>>::moved_or_copied() const: pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x10(%rsi), %rsi testq %rsi, %rsi je 0x68025 movq %rbx, %rdi callq 0x2dfb0 jmp 0x6804f movups (%r14), %xmm0 movups %xmm0, (%rbx) movq %r14, %rdi xorl %esi, %esi callq 0x40bf2 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %rbx, %rdi movl $0x1, %esi callq 0x40bf2 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv: push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov rsi, [rsi+10h] test rsi, rsi jz short loc_68025 mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) jmp short loc_6804F loc_68025: movups xmm0, xmmword ptr [r14] movups xmmword ptr [rbx], xmm0 mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, rbx mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_6804F: mov rax, rbx add rsp, 8 pop rbx pop r14 retn
char * 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>>::moved_or_copied( char *a1, long long a2) { long long v3; // rsi v3 = *(_QWORD *)(a2 + 16); if ( v3 ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( (long long)a1, v3); } else { *(_OWORD *)a1 = *(_OWORD *)a2; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a2); *(_BYTE *)a2 = 0; *(_QWORD *)(a2 + 8) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(a1); } return a1; }
moved_or_copied: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RSI,qword ptr [RSI + 0x10] TEST RSI,RSI JZ 0x00168025 MOV RDI,RBX CALL 0x0012dfb0 JMP 0x0016804f LAB_00168025: MOVUPS XMM0,xmmword ptr [R14] MOVUPS xmmword ptr [RBX],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x00140bf2 MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,RBX MOV ESI,0x1 CALL 0x00140bf2 LAB_0016804f: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* 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> >::moved_or_copied() const */ void 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>> ::moved_or_copied(void) { int8 uVar1; int8 *in_RSI; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *in_RDI; if ((basic_json *)in_RSI[2] == (basic_json *)0x0) { uVar1 = in_RSI[1]; *(int8 *)in_RDI = *in_RSI; *(int8 *)(in_RDI + 8) = uVar1; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(in_RSI,0)); *(int1 *)in_RSI = 0; in_RSI[1] = 0; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(in_RDI,0)); } else { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(in_RDI,(basic_json *)in_RSI[2]); } return; }
44,020
ac_expr_free_ast
alca/libalca/expr.c
void ac_expr_free_ast(ac_ast *program) { if (program) { if (program->statements) { for (int i = 0; i < program->stmt_count; i++) { if (program->statements[i]) { switch (program->statements[i]->type) { case STMT_RULE: ac_expr_free_rule(program->statements[i]); break; case STMT_SEQUENCE: ac_expr_free_sequence(program->statements[i]); break; case STMT_IMPORT: ac_expr_free_import(program->statements[i]); break; } } } ac_free(program->statements); } ac_free(program); } }
O0
c
ac_expr_free_ast: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) cmpq $0x0, -0x8(%rbp) je 0xbc8a movq -0x8(%rbp), %rax cmpq $0x0, 0x10(%rax) je 0xbc81 movl $0x0, -0xc(%rbp) movl -0xc(%rbp), %eax movq -0x8(%rbp), %rcx cmpl 0x8(%rcx), %eax jae 0xbc74 movq -0x8(%rbp), %rax movq 0x10(%rax), %rax movslq -0xc(%rbp), %rcx cmpq $0x0, (%rax,%rcx,8) je 0xbc64 movq -0x8(%rbp), %rax movq 0x10(%rax), %rax movslq -0xc(%rbp), %rcx movq (%rax,%rcx,8), %rax movl (%rax), %eax movl %eax, -0x10(%rbp) testl %eax, %eax je 0xbc1f jmp 0xbc0b movl -0x10(%rbp), %eax subl $0x1, %eax je 0xbc36 jmp 0xbc15 movl -0x10(%rbp), %eax subl $0x2, %eax je 0xbc4d jmp 0xbc62 movq -0x8(%rbp), %rax movq 0x10(%rax), %rax movslq -0xc(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq 0x7760 jmp 0xbc62 movq -0x8(%rbp), %rax movq 0x10(%rax), %rax movslq -0xc(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq 0x7a50 jmp 0xbc62 movq -0x8(%rbp), %rax movq 0x10(%rax), %rax movslq -0xc(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq 0x7320 jmp 0xbc64 jmp 0xbc66 movl -0xc(%rbp), %eax addl $0x1, %eax movl %eax, -0xc(%rbp) jmp 0xbbcd movq -0x8(%rbp), %rax movq 0x10(%rax), %rdi callq 0x73f0 movq -0x8(%rbp), %rdi callq 0x73f0 addq $0x10, %rsp popq %rbp retq
ac_expr_free_ast: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi cmp [rbp+var_8], 0 jz loc_BC8A mov rax, [rbp+var_8] cmp qword ptr [rax+10h], 0 jz loc_BC81 mov [rbp+var_C], 0 loc_BBCD: mov eax, [rbp+var_C] mov rcx, [rbp+var_8] cmp eax, [rcx+8] jnb loc_BC74 mov rax, [rbp+var_8] mov rax, [rax+10h] movsxd rcx, [rbp+var_C] cmp qword ptr [rax+rcx*8], 0 jz short loc_BC64 mov rax, [rbp+var_8] mov rax, [rax+10h] movsxd rcx, [rbp+var_C] mov rax, [rax+rcx*8] mov eax, [rax] mov [rbp+var_10], eax test eax, eax jz short loc_BC1F jmp short $+2 loc_BC0B: mov eax, [rbp+var_10] sub eax, 1 jz short loc_BC36 jmp short $+2 loc_BC15: mov eax, [rbp+var_10] sub eax, 2 jz short loc_BC4D jmp short loc_BC62 loc_BC1F: mov rax, [rbp+var_8] mov rax, [rax+10h] movsxd rcx, [rbp+var_C] mov rdi, [rax+rcx*8] call _ac_expr_free_rule jmp short loc_BC62 loc_BC36: mov rax, [rbp+var_8] mov rax, [rax+10h] movsxd rcx, [rbp+var_C] mov rdi, [rax+rcx*8] call _ac_expr_free_sequence jmp short loc_BC62 loc_BC4D: mov rax, [rbp+var_8] mov rax, [rax+10h] movsxd rcx, [rbp+var_C] mov rdi, [rax+rcx*8] call _ac_expr_free_import loc_BC62: jmp short $+2 loc_BC64: jmp short $+2 loc_BC66: mov eax, [rbp+var_C] add eax, 1 mov [rbp+var_C], eax jmp loc_BBCD loc_BC74: mov rax, [rbp+var_8] mov rdi, [rax+10h] call _ac_free loc_BC81: mov rdi, [rbp+var_8] call _ac_free loc_BC8A: add rsp, 10h pop rbp retn
long long ac_expr_free_ast(long long a1) { long long result; // rax int v2; // [rsp+0h] [rbp-10h] unsigned int i; // [rsp+4h] [rbp-Ch] if ( a1 ) { if ( *(_QWORD *)(a1 + 16) ) { for ( i = 0; i < *(_DWORD *)(a1 + 8); ++i ) { if ( *(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL * (int)i) ) { v2 = **(_DWORD **)(*(_QWORD *)(a1 + 16) + 8LL * (int)i); if ( v2 ) { if ( v2 == 1 ) { ac_expr_free_sequence(*(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL * (int)i)); } else if ( v2 == 2 ) { ac_expr_free_import(*(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL * (int)i)); } } else { ac_expr_free_rule(*(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL * (int)i)); } } } ac_free(*(_QWORD *)(a1 + 16)); } return ac_free(a1); } return result; }
ac_expr_free_ast: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI CMP qword ptr [RBP + -0x8],0x0 JZ 0x0010bc8a MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x10],0x0 JZ 0x0010bc81 MOV dword ptr [RBP + -0xc],0x0 LAB_0010bbcd: MOV EAX,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0x8] JNC 0x0010bc74 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] MOVSXD RCX,dword ptr [RBP + -0xc] CMP qword ptr [RAX + RCX*0x8],0x0 JZ 0x0010bc64 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] MOVSXD RCX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RAX + RCX*0x8] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x10],EAX TEST EAX,EAX JZ 0x0010bc1f JMP 0x0010bc0b LAB_0010bc0b: MOV EAX,dword ptr [RBP + -0x10] SUB EAX,0x1 JZ 0x0010bc36 JMP 0x0010bc15 LAB_0010bc15: MOV EAX,dword ptr [RBP + -0x10] SUB EAX,0x2 JZ 0x0010bc4d JMP 0x0010bc62 LAB_0010bc1f: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] MOVSXD RCX,dword ptr [RBP + -0xc] MOV RDI,qword ptr [RAX + RCX*0x8] CALL 0x00107760 JMP 0x0010bc62 LAB_0010bc36: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] MOVSXD RCX,dword ptr [RBP + -0xc] MOV RDI,qword ptr [RAX + RCX*0x8] CALL 0x00107a50 JMP 0x0010bc62 LAB_0010bc4d: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] MOVSXD RCX,dword ptr [RBP + -0xc] MOV RDI,qword ptr [RAX + RCX*0x8] CALL 0x00107320 LAB_0010bc62: JMP 0x0010bc64 LAB_0010bc64: JMP 0x0010bc66 LAB_0010bc66: MOV EAX,dword ptr [RBP + -0xc] ADD EAX,0x1 MOV dword ptr [RBP + -0xc],EAX JMP 0x0010bbcd LAB_0010bc74: MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x10] CALL 0x001073f0 LAB_0010bc81: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001073f0 LAB_0010bc8a: ADD RSP,0x10 POP RBP RET
void ac_expr_free_ast(long param_1) { int iVar1; int4 local_14; if (param_1 != 0) { if (*(long *)(param_1 + 0x10) != 0) { for (local_14 = 0; local_14 < *(uint *)(param_1 + 8); local_14 = local_14 + 1) { if (*(long *)(*(long *)(param_1 + 0x10) + (long)(int)local_14 * 8) != 0) { iVar1 = **(int **)(*(long *)(param_1 + 0x10) + (long)(int)local_14 * 8); if (iVar1 == 0) { ac_expr_free_rule(*(int8 *)(*(long *)(param_1 + 0x10) + (long)(int)local_14 * 8)); } else if (iVar1 == 1) { ac_expr_free_sequence (*(int8 *)(*(long *)(param_1 + 0x10) + (long)(int)local_14 * 8)); } else if (iVar1 == 2) { ac_expr_free_import(*(int8 *)(*(long *)(param_1 + 0x10) + (long)(int)local_14 * 8) ); } } } ac_free(*(int8 *)(param_1 + 0x10)); } ac_free(param_1); } return; }
44,021
ft_init_boolean_search
eloqsql/storage/myisam/ft_boolean_search.c
FT_INFO * ft_init_boolean_search(MI_INFO *info, uint keynr, uchar *query, uint query_len, CHARSET_INFO *cs) { FTB *ftb; FTB_EXPR *ftbe; FTB_WORD *ftbw; if (!(ftb=(FTB *)my_malloc(mi_key_memory_FTB, sizeof(FTB), MYF(MY_WME)))) return 0; ftb->please= (struct _ft_vft *) & _ft_vft_boolean; ftb->state=UNINITIALIZED; ftb->info=info; ftb->keynr=keynr; ftb->charset=cs; DBUG_ASSERT(keynr==NO_SUCH_KEY || cs == info->s->keyinfo[keynr].seg->charset); ftb->with_scan=0; ftb->lastpos=HA_OFFSET_ERROR; bzero(& ftb->no_dupes, sizeof(TREE)); ftb->last_word= 0; init_alloc_root(mi_key_memory_FTB, &ftb->mem_root, 1024, 1024, MYF(0)); ftb->queue.max_elements= 0; if (!(ftbe=(FTB_EXPR *)alloc_root(&ftb->mem_root, sizeof(FTB_EXPR)))) goto err; ftbe->weight=1; ftbe->flags=FTB_FLAG_YES; ftbe->nos=1; ftbe->up=0; ftbe->max_docid= ftbe->ythresh= ftbe->yweaks= 0; ftbe->docid[0]=ftbe->docid[1]=HA_OFFSET_ERROR; ftbe->phrase= NULL; ftbe->document= 0; ftb->root=ftbe; if (unlikely(_ftb_parse_query(ftb, query, query_len, keynr == NO_SUCH_KEY ? &ft_default_parser : info->s->keyinfo[keynr].parser))) goto err; /* Hack: instead of init_queue, we'll use reinit queue to be able to alloc queue with alloc_root() */ if (! (ftb->queue.root= (uchar **)alloc_root(&ftb->mem_root, (ftb->queue.max_elements + 1) * sizeof(void *)))) goto err; reinit_queue(&ftb->queue, ftb->queue.max_elements, 0, 0, (int (*)(void*, uchar*, uchar*))FTB_WORD_cmp, 0, 0, 0); for (ftbw= ftb->last_word; ftbw; ftbw= ftbw->prev) queue_insert(&ftb->queue, (uchar *)ftbw); ftb->list=(FTB_WORD **)alloc_root(&ftb->mem_root, sizeof(FTB_WORD *)*ftb->queue.elements); memcpy(ftb->list, &queue_top(&ftb->queue), sizeof(FTB_WORD *)*ftb->queue.elements); my_qsort2(ftb->list, ftb->queue.elements, sizeof(FTB_WORD *), (qsort2_cmp)FTB_WORD_cmp_list, (void*)ftb->charset); if (ftb->queue.elements<2) ftb->with_scan &= ~FTB_FLAG_TRUNC; ftb->state=READY; return ftb; err: free_root(& ftb->mem_root, MYF(0)); my_free(ftb); return 0; }
O3
c
ft_init_boolean_search: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r8, %r14 movl %ecx, -0x2c(%rbp) movq %rdx, -0x38(%rbp) movl %esi, %r13d movq %rdi, %r15 leaq 0xb8dfc4(%rip), %r12 # 0xbff90c movl (%r12), %edi movl $0x350, %esi # imm = 0x350 movl $0x10, %edx callq 0x9ff21 xorl %ecx, %ecx testq %rax, %rax je 0x71b4f movq %rax, %rbx leaq 0x309ac8(%rip), %rax # 0x37b438 movq %rax, (%rbx) movl %ecx, 0x348(%rbx) movq %r15, 0x8(%rbx) movl %r13d, 0x340(%rbx) movq %r14, 0x10(%rbx) movb $0x0, 0x344(%rbx) movq $-0x1, 0x338(%rbx) leaq 0xa0(%rbx), %rdi movl $0x298, %edx # imm = 0x298 xorl %esi, %esi callq 0x292b0 movq $0x0, 0x28(%rbx) movl (%r12), %edi leaq 0x30(%rbx), %r14 movl $0x400, %edx # imm = 0x400 movl $0x400, %ecx # imm = 0x400 movq %r14, %rsi xorl %r8d, %r8d callq 0x9cb10 xorl %eax, %eax movl %eax, 0x84(%rbx) movl $0x50, %esi movq %r14, %rdi callq 0x9cc67 testq %rax, %rax je 0x71b3d movl $0x3f800000, 0x28(%rax) # imm = 0x3F800000 movl $0x2, 0x8(%rax) movl $0x1, 0x44(%rax) xorl %ecx, %ecx movq %rcx, (%rax) movq %rcx, 0x48(%rax) movq %rcx, 0x20(%rax) pcmpeqd %xmm0, %xmm0 movdqu %xmm0, 0x10(%rax) pxor %xmm0, %xmm0 movdqu %xmm0, 0x30(%rax) movq %rax, 0x18(%rbx) cmpl $-0x1, %r13d je 0x71a46 movq (%r15), %rax movq 0x218(%rax), %rax movl %r13d, %ecx imulq $0x70, %rcx, %rcx movq 0x38(%rax,%rcx), %r15 jmp 0x71a4d leaq 0x3138b3(%rip), %r15 # 0x385300 cmpl $0x0, 0x348(%rbx) jne 0x71ada movq 0x8(%rbx), %rdi movl 0x340(%rbx), %esi xorl %edx, %edx callq 0x73ee9 testq %rax, %rax je 0x71b3d leaq -0x58(%rbp), %rcx movq %rbx, (%rcx) movl $0x0, 0x18(%rcx) movq 0x18(%rbx), %rdx movq %rdx, 0x8(%rcx) movq $0x0, 0x10(%rcx) leaq 0xc93(%rip), %rdx # 0x7272c movq %rdx, (%rax) leaq 0xd1e(%rip), %rdx # 0x727c1 movq %rdx, 0x8(%rax) movq %rcx, 0x18(%rax) movq 0x10(%rbx), %rcx movq %rcx, 0x20(%rax) movq -0x38(%rbp), %rcx movq %rcx, 0x28(%rax) movl -0x2c(%rbp), %ecx movl %ecx, 0x30(%rax) movabsq $0x200000000, %rcx # imm = 0x200000000 movq %rcx, 0x34(%rax) movq %rax, %rdi callq *0x8(%r15) testl %eax, %eax jne 0x71b3d movl 0x84(%rbx), %esi incl %esi shlq $0x3, %rsi movq %r14, %rdi callq 0x9cc67 movq %rax, 0x70(%rbx) testq %rax, %rax je 0x71b3d movq %rbx, %r15 addq $0x70, %r15 movl 0x84(%rbx), %esi xorl %eax, %eax leaq 0xc1(%rip), %r8 # 0x71bce movq %r15, %rdi xorl %edx, %edx xorl %ecx, %ecx xorl %r9d, %r9d pushq %rax pushq %rax callq 0xa2253 addq $0x10, %rsp movq 0x28(%rbx), %r12 testq %r12, %r12 je 0x71b53 movq %r15, %rdi movq %r12, %rsi callq 0xa2307 movq 0x38(%r12), %r12 jmp 0x71b26 movq %r14, %rdi xorl %esi, %esi callq 0x9cedf movq %rbx, %rdi callq 0xa014e xorl %ebx, %ebx jmp 0x71bbc movl 0x80(%rbx), %esi shlq $0x3, %rsi movq %r14, %rdi callq 0x9cc67 movq %rax, 0x20(%rbx) movq 0x70(%rbx), %rsi addq $0x8, %rsi movl 0x80(%rbx), %edx shlq $0x3, %rdx movq %rax, %rdi callq 0x29080 movq 0x10(%rbx), %r8 movq 0x20(%rbx), %rdi movl 0x80(%rbx), %esi leaq 0x72(%rip), %rcx # 0x71c0a movl $0x8, %edx callq 0x9befc cmpl $0x1, 0x80(%rbx) ja 0x71bb2 andb $-0x2, 0x344(%rbx) movl $0x1, 0x348(%rbx) movq %rbx, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ft_init_boolean_search: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r14, r8 mov [rbp+var_2C], ecx mov [rbp+var_38], rdx mov r13d, esi mov r15, rdi lea r12, mi_key_memory_FTB mov edi, [r12] mov esi, 350h mov edx, 10h call my_malloc xor ecx, ecx test rax, rax jz loc_71B4F mov rbx, rax lea rax, _ft_vft_boolean mov [rbx], rax mov [rbx+348h], ecx mov [rbx+8], r15 mov [rbx+340h], r13d mov [rbx+10h], r14 mov byte ptr [rbx+344h], 0 mov qword ptr [rbx+338h], 0FFFFFFFFFFFFFFFFh lea rdi, [rbx+0A0h] mov edx, 298h xor esi, esi call _memset mov qword ptr [rbx+28h], 0 mov edi, [r12] lea r14, [rbx+30h] mov edx, 400h mov ecx, 400h mov rsi, r14 xor r8d, r8d call init_alloc_root xor eax, eax mov [rbx+84h], eax mov esi, 50h ; 'P' mov rdi, r14 call alloc_root test rax, rax jz loc_71B3D mov dword ptr [rax+28h], 3F800000h mov dword ptr [rax+8], 2 mov dword ptr [rax+44h], 1 xor ecx, ecx mov [rax], rcx mov [rax+48h], rcx mov [rax+20h], rcx pcmpeqd xmm0, xmm0 movdqu xmmword ptr [rax+10h], xmm0 pxor xmm0, xmm0 movdqu xmmword ptr [rax+30h], xmm0 mov [rbx+18h], rax cmp r13d, 0FFFFFFFFh jz short loc_71A46 mov rax, [r15] mov rax, [rax+218h] mov ecx, r13d imul rcx, 70h ; 'p' mov r15, [rax+rcx+38h] jmp short loc_71A4D loc_71A46: lea r15, ft_default_parser loc_71A4D: cmp dword ptr [rbx+348h], 0 jnz loc_71ADA mov rdi, [rbx+8] mov esi, [rbx+340h] xor edx, edx call ftparser_call_initializer test rax, rax jz loc_71B3D lea rcx, [rbp+var_58] mov [rcx], rbx mov dword ptr [rcx+18h], 0 mov rdx, [rbx+18h] mov [rcx+8], rdx mov qword ptr [rcx+10h], 0 lea rdx, ftb_parse_query_internal mov [rax], rdx lea rdx, ftb_query_add_word mov [rax+8], rdx mov [rax+18h], rcx mov rcx, [rbx+10h] mov [rax+20h], rcx mov rcx, [rbp+var_38] mov [rax+28h], rcx mov ecx, [rbp+var_2C] mov [rax+30h], ecx mov rcx, 200000000h mov [rax+34h], rcx mov rdi, rax call qword ptr [r15+8] test eax, eax jnz short loc_71B3D loc_71ADA: mov esi, [rbx+84h] inc esi shl rsi, 3 mov rdi, r14 call alloc_root mov [rbx+70h], rax test rax, rax jz short loc_71B3D mov r15, rbx add r15, 70h ; 'p' mov esi, [rbx+84h] xor eax, eax lea r8, FTB_WORD_cmp mov rdi, r15 xor edx, edx xor ecx, ecx xor r9d, r9d push rax push rax call reinit_queue add rsp, 10h mov r12, [rbx+28h] loc_71B26: test r12, r12 jz short loc_71B53 mov rdi, r15 mov rsi, r12 call queue_insert mov r12, [r12+38h] jmp short loc_71B26 loc_71B3D: mov rdi, r14 xor esi, esi call free_root mov rdi, rbx call my_free loc_71B4F: xor ebx, ebx jmp short loc_71BBC loc_71B53: mov esi, [rbx+80h] shl rsi, 3 mov rdi, r14 call alloc_root mov [rbx+20h], rax mov rsi, [rbx+70h] add rsi, 8 mov edx, [rbx+80h] shl rdx, 3 mov rdi, rax call _memcpy mov r8, [rbx+10h] mov rdi, [rbx+20h] mov esi, [rbx+80h] lea rcx, FTB_WORD_cmp_list mov edx, 8 call my_qsort2 cmp dword ptr [rbx+80h], 1 ja short loc_71BB2 and byte ptr [rbx+344h], 0FEh loc_71BB2: mov dword ptr [rbx+348h], 1 loc_71BBC: mov rax, rbx add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ft_init_boolean_search(long long a1, unsigned int a2, long long a3, int a4, long long a5) { long long v6; // rax long long v7; // rbx long long v8; // rax unsigned int ( **v9)(long long); // r15 long long v10; // rax long long v11; // rax long long i; // r12 long long v13; // rax _QWORD v15[3]; // [rsp+8h] [rbp-58h] BYREF int v16; // [rsp+20h] [rbp-40h] long long v17; // [rsp+28h] [rbp-38h] int v18; // [rsp+34h] [rbp-2Ch] v18 = a4; v17 = a3; v6 = my_malloc(mi_key_memory_FTB, 848LL, 16LL); if ( !v6 ) return 0LL; v7 = v6; *(_QWORD *)v6 = ft_vft_boolean; *(_DWORD *)(v6 + 840) = 0; *(_QWORD *)(v6 + 8) = a1; *(_DWORD *)(v6 + 832) = a2; *(_QWORD *)(v6 + 16) = a5; *(_BYTE *)(v6 + 836) = 0; *(_QWORD *)(v6 + 824) = -1LL; memset(v6 + 160, 0LL, 664LL); *(_QWORD *)(v7 + 40) = 0LL; init_alloc_root(mi_key_memory_FTB, v7 + 48, 1024LL, 1024LL, 0LL); *(_DWORD *)(v7 + 132) = 0; v8 = alloc_root(v7 + 48, 80LL); if ( !v8 ) goto LABEL_13; *(_DWORD *)(v8 + 40) = 1065353216; *(_DWORD *)(v8 + 8) = 2; *(_DWORD *)(v8 + 68) = 1; *(_QWORD *)v8 = 0LL; *(_QWORD *)(v8 + 72) = 0LL; *(_QWORD *)(v8 + 32) = 0LL; *(_OWORD *)(v8 + 16) = -1LL; *(_OWORD *)(v8 + 48) = 0LL; *(_QWORD *)(v7 + 24) = v8; v9 = a2 == -1 ? (unsigned int ( **)(long long))&ft_default_parser : *(unsigned int ( ***)(long long))(*(_QWORD *)(*(_QWORD *)a1 + 536LL) + 112LL * a2 + 56); if ( !*(_DWORD *)(v7 + 840) ) { v10 = ftparser_call_initializer(*(_QWORD *)(v7 + 8), *(unsigned int *)(v7 + 832), 0LL, 0.0); if ( !v10 ) goto LABEL_13; v15[0] = v7; v16 = 0; v15[1] = *(_QWORD *)(v7 + 24); v15[2] = 0LL; *(_QWORD *)v10 = ftb_parse_query_internal; *(_QWORD *)(v10 + 8) = ftb_query_add_word; *(_QWORD *)(v10 + 24) = v15; *(_QWORD *)(v10 + 32) = *(_QWORD *)(v7 + 16); *(_QWORD *)(v10 + 40) = v17; *(_DWORD *)(v10 + 48) = v18; *(_QWORD *)(v10 + 52) = 0x200000000LL; if ( v9[1](v10) ) goto LABEL_13; } v11 = alloc_root(v7 + 48, 8LL * (unsigned int)(*(_DWORD *)(v7 + 132) + 1)); *(_QWORD *)(v7 + 112) = v11; if ( !v11 ) { LABEL_13: free_root(v7 + 48, 0LL); my_free(v7); return 0LL; } reinit_queue(v7 + 112, *(_DWORD *)(v7 + 132), 0, 0, (unsigned int)FTB_WORD_cmp, 0, 0, 0); for ( i = *(_QWORD *)(v7 + 40); i; i = *(_QWORD *)(i + 56) ) queue_insert(v7 + 112, i); v13 = alloc_root(v7 + 48, 8LL * *(unsigned int *)(v7 + 128)); *(_QWORD *)(v7 + 32) = v13; memcpy(v13, *(_QWORD *)(v7 + 112) + 8LL, 8LL * *(unsigned int *)(v7 + 128)); my_qsort2(*(_QWORD *)(v7 + 32), *(unsigned int *)(v7 + 128), 8LL, FTB_WORD_cmp_list, *(_QWORD *)(v7 + 16)); if ( *(_DWORD *)(v7 + 128) <= 1u ) *(_BYTE *)(v7 + 836) &= ~1u; *(_DWORD *)(v7 + 840) = 1; return v7; }
ft_init_boolean_search: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,R8 MOV dword ptr [RBP + -0x2c],ECX MOV qword ptr [RBP + -0x38],RDX MOV R13D,ESI MOV R15,RDI LEA R12,[0xcff90c] MOV EDI,dword ptr [R12] MOV ESI,0x350 MOV EDX,0x10 CALL 0x0019ff21 XOR ECX,ECX TEST RAX,RAX JZ 0x00171b4f MOV RBX,RAX LEA RAX,[0x47b438] MOV qword ptr [RBX],RAX MOV dword ptr [RBX + 0x348],ECX MOV qword ptr [RBX + 0x8],R15 MOV dword ptr [RBX + 0x340],R13D MOV qword ptr [RBX + 0x10],R14 MOV byte ptr [RBX + 0x344],0x0 MOV qword ptr [RBX + 0x338],-0x1 LEA RDI,[RBX + 0xa0] MOV EDX,0x298 XOR ESI,ESI CALL 0x001292b0 MOV qword ptr [RBX + 0x28],0x0 MOV EDI,dword ptr [R12] LEA R14,[RBX + 0x30] MOV EDX,0x400 MOV ECX,0x400 MOV RSI,R14 XOR R8D,R8D CALL 0x0019cb10 XOR EAX,EAX MOV dword ptr [RBX + 0x84],EAX MOV ESI,0x50 MOV RDI,R14 CALL 0x0019cc67 TEST RAX,RAX JZ 0x00171b3d MOV dword ptr [RAX + 0x28],0x3f800000 MOV dword ptr [RAX + 0x8],0x2 MOV dword ptr [RAX + 0x44],0x1 XOR ECX,ECX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x48],RCX MOV qword ptr [RAX + 0x20],RCX PCMPEQD XMM0,XMM0 MOVDQU xmmword ptr [RAX + 0x10],XMM0 PXOR XMM0,XMM0 MOVDQU xmmword ptr [RAX + 0x30],XMM0 MOV qword ptr [RBX + 0x18],RAX CMP R13D,-0x1 JZ 0x00171a46 MOV RAX,qword ptr [R15] MOV RAX,qword ptr [RAX + 0x218] MOV ECX,R13D IMUL RCX,RCX,0x70 MOV R15,qword ptr [RAX + RCX*0x1 + 0x38] JMP 0x00171a4d LAB_00171a46: LEA R15,[0x485300] LAB_00171a4d: CMP dword ptr [RBX + 0x348],0x0 JNZ 0x00171ada MOV RDI,qword ptr [RBX + 0x8] MOV ESI,dword ptr [RBX + 0x340] XOR EDX,EDX CALL 0x00173ee9 TEST RAX,RAX JZ 0x00171b3d LEA RCX,[RBP + -0x58] MOV qword ptr [RCX],RBX MOV dword ptr [RCX + 0x18],0x0 MOV RDX,qword ptr [RBX + 0x18] MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RCX + 0x10],0x0 LEA RDX,[0x17272c] MOV qword ptr [RAX],RDX LEA RDX,[0x1727c1] MOV qword ptr [RAX + 0x8],RDX MOV qword ptr [RAX + 0x18],RCX MOV RCX,qword ptr [RBX + 0x10] MOV qword ptr [RAX + 0x20],RCX MOV RCX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x28],RCX MOV ECX,dword ptr [RBP + -0x2c] MOV dword ptr [RAX + 0x30],ECX MOV RCX,0x200000000 MOV qword ptr [RAX + 0x34],RCX MOV RDI,RAX CALL qword ptr [R15 + 0x8] TEST EAX,EAX JNZ 0x00171b3d LAB_00171ada: MOV ESI,dword ptr [RBX + 0x84] INC ESI SHL RSI,0x3 MOV RDI,R14 CALL 0x0019cc67 MOV qword ptr [RBX + 0x70],RAX TEST RAX,RAX JZ 0x00171b3d MOV R15,RBX ADD R15,0x70 MOV ESI,dword ptr [RBX + 0x84] XOR EAX,EAX LEA R8,[0x171bce] MOV RDI,R15 XOR EDX,EDX XOR ECX,ECX XOR R9D,R9D PUSH RAX PUSH RAX CALL 0x001a2253 ADD RSP,0x10 MOV R12,qword ptr [RBX + 0x28] LAB_00171b26: TEST R12,R12 JZ 0x00171b53 MOV RDI,R15 MOV RSI,R12 CALL 0x001a2307 MOV R12,qword ptr [R12 + 0x38] JMP 0x00171b26 LAB_00171b3d: MOV RDI,R14 XOR ESI,ESI CALL 0x0019cedf MOV RDI,RBX CALL 0x001a014e LAB_00171b4f: XOR EBX,EBX JMP 0x00171bbc LAB_00171b53: MOV ESI,dword ptr [RBX + 0x80] SHL RSI,0x3 MOV RDI,R14 CALL 0x0019cc67 MOV qword ptr [RBX + 0x20],RAX MOV RSI,qword ptr [RBX + 0x70] ADD RSI,0x8 MOV EDX,dword ptr [RBX + 0x80] SHL RDX,0x3 MOV RDI,RAX CALL 0x00129080 MOV R8,qword ptr [RBX + 0x10] MOV RDI,qword ptr [RBX + 0x20] MOV ESI,dword ptr [RBX + 0x80] LEA RCX,[0x171c0a] MOV EDX,0x8 CALL 0x0019befc CMP dword ptr [RBX + 0x80],0x1 JA 0x00171bb2 AND byte ptr [RBX + 0x344],0xfe LAB_00171bb2: MOV dword ptr [RBX + 0x348],0x1 LAB_00171bbc: MOV RAX,RBX ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 * ft_init_boolean_search (long *param_1,uint param_2,int8 param_3,int4 param_4,int8 param_5) { int8 *puVar1; int iVar2; int8 *puVar3; int8 *puVar4; long lVar5; void *__dest; int1 *puVar6; int8 *local_60; int8 local_58; int8 local_50; int4 local_48; int8 local_40; int4 local_34; local_40 = param_3; local_34 = param_4; puVar3 = (int8 *)my_malloc(mi_key_memory_FTB,0x350,0x10); if (puVar3 == (int8 *)0x0) { return (int8 *)0x0; } *puVar3 = _ft_vft_boolean; *(int4 *)(puVar3 + 0x69) = 0; puVar3[1] = param_1; *(uint *)(puVar3 + 0x68) = param_2; puVar3[2] = param_5; *(int1 *)((long)puVar3 + 0x344) = 0; puVar3[0x67] = 0xffffffffffffffff; memset(puVar3 + 0x14,0,0x298); puVar3[5] = 0; puVar1 = puVar3 + 6; init_alloc_root(mi_key_memory_FTB,puVar1,0x400,0x400,0); *(int4 *)((long)puVar3 + 0x84) = 0; puVar4 = (int8 *)alloc_root(puVar1,0x50); if (puVar4 == (int8 *)0x0) goto LAB_00171b3d; *(int4 *)(puVar4 + 5) = 0x3f800000; *(int4 *)(puVar4 + 1) = 2; *(int4 *)((long)puVar4 + 0x44) = 1; *puVar4 = 0; puVar4[9] = 0; puVar4[4] = 0; *(int4 *)(puVar4 + 2) = 0xffffffff; *(int4 *)((long)puVar4 + 0x14) = 0xffffffff; *(int4 *)(puVar4 + 3) = 0xffffffff; *(int4 *)((long)puVar4 + 0x1c) = 0xffffffff; *(int1 (*) [16])(puVar4 + 6) = (int1 [16])0x0; puVar3[3] = puVar4; if (param_2 == 0xffffffff) { puVar6 = ft_default_parser; } else { puVar6 = *(int1 **)(*(long *)(*param_1 + 0x218) + 0x38 + (ulong)param_2 * 0x70); } if (*(int *)(puVar3 + 0x69) == 0) { puVar4 = (int8 *)ftparser_call_initializer(puVar3[1],*(int4 *)(puVar3 + 0x68),0); if (puVar4 == (int8 *)0x0) goto LAB_00171b3d; local_48 = 0; local_58 = puVar3[3]; local_50 = 0; *puVar4 = ftb_parse_query_internal; puVar4[1] = ftb_query_add_word; puVar4[3] = &local_60; puVar4[4] = puVar3[2]; puVar4[5] = local_40; *(int4 *)(puVar4 + 6) = local_34; *(int8 *)((long)puVar4 + 0x34) = 0x200000000; local_60 = puVar3; iVar2 = (**(code **)(puVar6 + 8))(puVar4); if (iVar2 != 0) goto LAB_00171b3d; } lVar5 = alloc_root(puVar1,(ulong)(*(int *)((long)puVar3 + 0x84) + 1) << 3); puVar3[0xe] = lVar5; if (lVar5 != 0) { reinit_queue(puVar3 + 0xe,*(int4 *)((long)puVar3 + 0x84),0,0,FTB_WORD_cmp,0,0,0); for (lVar5 = puVar3[5]; lVar5 != 0; lVar5 = *(long *)(lVar5 + 0x38)) { queue_insert(puVar3 + 0xe,lVar5); } __dest = (void *)alloc_root(puVar1,(ulong)*(uint *)(puVar3 + 0x10) << 3); puVar3[4] = __dest; memcpy(__dest,(void *)(puVar3[0xe] + 8),(ulong)*(uint *)(puVar3 + 0x10) << 3); my_qsort2(puVar3[4],*(int4 *)(puVar3 + 0x10),8,FTB_WORD_cmp_list,puVar3[2]); if (*(uint *)(puVar3 + 0x10) < 2) { *(byte *)((long)puVar3 + 0x344) = *(byte *)((long)puVar3 + 0x344) & 0xfe; } *(int4 *)(puVar3 + 0x69) = 1; return puVar3; } LAB_00171b3d: free_root(puVar1,0); my_free(puVar3); return (int8 *)0x0; }
44,022
js_object_assign
bluesky950520[P]quickjs/quickjs.c
static JSValue js_object_assign(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { // Object.assign(obj, source1) JSValue obj, s; int i; s = JS_UNDEFINED; obj = JS_ToObject(ctx, argv[0]); if (JS_IsException(obj)) goto exception; for (i = 1; i < argc; i++) { if (!JS_IsNull(argv[i]) && !JS_IsUndefined(argv[i])) { s = JS_ToObject(ctx, argv[i]); if (JS_IsException(s)) goto exception; if (JS_CopyDataProperties(ctx, obj, s, JS_UNDEFINED, TRUE)) goto exception; JS_FreeValue(ctx, s); } } return obj; exception: JS_FreeValue(ctx, obj); JS_FreeValue(ctx, s); return JS_EXCEPTION; }
O0
c
js_object_assign: subq $0xb8, %rsp movq %rsi, 0x98(%rsp) movq %rdx, 0xa0(%rsp) movq %rdi, 0x90(%rsp) movl %ecx, 0x8c(%rsp) movq %r8, 0x80(%rsp) movl $0x0, 0x48(%rsp) movq $0x3, 0x50(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x90(%rsp), %rdi movq 0x80(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x37770 movq %rax, 0x38(%rsp) movq %rdx, 0x40(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x70(%rsp), %rdi movq 0x78(%rsp), %rsi callq 0x23cc0 cmpl $0x0, %eax je 0xbfd56 jmp 0xbfeb9 movl $0x1, 0x5c(%rsp) movl 0x5c(%rsp), %eax cmpl 0x8c(%rsp), %eax jge 0xbfe9d movq 0x80(%rsp), %rax movslq 0x5c(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x2e240 cmpl $0x0, %eax jne 0xbfe8b movq 0x80(%rsp), %rax movslq 0x5c(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x2e260 cmpl $0x0, %eax jne 0xbfe8b movq 0x90(%rsp), %rdi movq 0x80(%rsp), %rax movslq 0x5c(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x37770 movq %rax, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x60(%rsp), %rdi movq 0x68(%rsp), %rsi callq 0x23cc0 cmpl $0x0, %eax je 0xbfe20 jmp 0xbfeb9 movq 0x90(%rsp), %rdi movl $0x0, 0x18(%rsp) movq $0x3, 0x20(%rsp) movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx movq 0x60(%rsp), %rcx movq 0x68(%rsp), %r8 leaq 0x18(%rsp), %rax movl $0x1, %r9d movq (%rax), %r10 movq %r10, (%rsp) movq 0x8(%rax), %rax movq %rax, 0x8(%rsp) callq 0x6a140 cmpl $0x0, %eax je 0xbfe74 jmp 0xbfeb9 movq 0x90(%rsp), %rdi movq 0x60(%rsp), %rsi movq 0x68(%rsp), %rdx callq 0x23c90 jmp 0xbfe8d movl 0x5c(%rsp), %eax addl $0x1, %eax movl %eax, 0x5c(%rsp) jmp 0xbfd5e movq 0x70(%rsp), %rax movq %rax, 0xa8(%rsp) movq 0x78(%rsp), %rax movq %rax, 0xb0(%rsp) jmp 0xbfefe movq 0x90(%rsp), %rdi movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx callq 0x23c90 movq 0x90(%rsp), %rdi movq 0x60(%rsp), %rsi movq 0x68(%rsp), %rdx callq 0x23c90 movl $0x0, 0xa8(%rsp) movq $0x6, 0xb0(%rsp) movq 0xa8(%rsp), %rax movq 0xb0(%rsp), %rdx addq $0xb8, %rsp retq nopw %cs:(%rax,%rax)
js_object_assign: sub rsp, 0B8h mov [rsp+0B8h+var_20], rsi mov [rsp+0B8h+var_18], rdx mov [rsp+0B8h+var_28], rdi mov [rsp+0B8h+var_2C], ecx mov [rsp+0B8h+var_38], r8 mov dword ptr [rsp+0B8h+var_70], 0 mov [rsp+0B8h+var_68], 3 mov rax, [rsp+0B8h+var_70] mov [rsp+0B8h+var_58], rax mov rax, [rsp+0B8h+var_68] mov [rsp+0B8h+var_50], rax mov rdi, [rsp+0B8h+var_28] mov rax, [rsp+0B8h+var_38] mov rsi, [rax] mov rdx, [rax+8] call JS_ToObject mov [rsp+0B8h+var_80], rax mov [rsp+0B8h+var_78], rdx mov rax, [rsp+0B8h+var_80] mov [rsp+0B8h+var_48], rax mov rax, [rsp+0B8h+var_78] mov [rsp+0B8h+var_40], rax mov rdi, [rsp+0B8h+var_48] mov rsi, [rsp+0B8h+var_40] call JS_IsException_1 cmp eax, 0 jz short loc_BFD56 jmp loc_BFEB9 loc_BFD56: mov [rsp+0B8h+var_5C], 1 loc_BFD5E: mov eax, [rsp+0B8h+var_5C] cmp eax, [rsp+0B8h+var_2C] jge loc_BFE9D mov rax, [rsp+0B8h+var_38] movsxd rcx, [rsp+0B8h+var_5C] shl rcx, 4 add rax, rcx mov rdi, [rax] mov rsi, [rax+8] call JS_IsNull_0 cmp eax, 0 jnz loc_BFE8B mov rax, [rsp+0B8h+var_38] movsxd rcx, [rsp+0B8h+var_5C] shl rcx, 4 add rax, rcx mov rdi, [rax] mov rsi, [rax+8] call JS_IsUndefined_0 cmp eax, 0 jnz loc_BFE8B mov rdi, [rsp+0B8h+var_28] mov rax, [rsp+0B8h+var_38] movsxd rcx, [rsp+0B8h+var_5C] shl rcx, 4 add rax, rcx mov rsi, [rax] mov rdx, [rax+8] call JS_ToObject mov [rsp+0B8h+var_90], rax mov [rsp+0B8h+var_88], rdx mov rax, [rsp+0B8h+var_90] mov [rsp+0B8h+var_58], rax mov rax, [rsp+0B8h+var_88] mov [rsp+0B8h+var_50], rax mov rdi, [rsp+0B8h+var_58] mov rsi, [rsp+0B8h+var_50] call JS_IsException_1 cmp eax, 0 jz short loc_BFE20 jmp loc_BFEB9 loc_BFE20: mov rdi, [rsp+0B8h+var_28] mov [rsp+0B8h+var_A0], 0 mov [rsp+0B8h+var_98], 3 mov rsi, [rsp+0B8h+var_48] mov rdx, [rsp+0B8h+var_40] mov rcx, [rsp+0B8h+var_58] mov r8, [rsp+0B8h+var_50] lea rax, [rsp+0B8h+var_A0] mov r9d, 1 mov r10, [rax] mov [rsp+0B8h+var_B8], r10 mov rax, [rax+8] mov [rsp+0B8h+var_B0], rax call JS_CopyDataProperties cmp eax, 0 jz short loc_BFE74 jmp short loc_BFEB9 loc_BFE74: mov rdi, [rsp+0B8h+var_28] mov rsi, [rsp+0B8h+var_58] mov rdx, [rsp+0B8h+var_50] call JS_FreeValue loc_BFE8B: jmp short $+2 loc_BFE8D: mov eax, [rsp+0B8h+var_5C] add eax, 1 mov [rsp+0B8h+var_5C], eax jmp loc_BFD5E loc_BFE9D: mov rax, [rsp+0B8h+var_48] mov [rsp+0B8h+var_10], rax mov rax, [rsp+0B8h+var_40] mov [rsp+0B8h+var_8], rax jmp short loc_BFEFE loc_BFEB9: mov rdi, [rsp+0B8h+var_28] mov rsi, [rsp+0B8h+var_48] mov rdx, [rsp+0B8h+var_40] call JS_FreeValue mov rdi, [rsp+0B8h+var_28] mov rsi, [rsp+0B8h+var_58] mov rdx, [rsp+0B8h+var_50] call JS_FreeValue mov dword ptr [rsp+0B8h+var_10], 0 mov [rsp+0B8h+var_8], 6 loc_BFEFE: mov rax, [rsp+0B8h+var_10] mov rdx, [rsp+0B8h+var_8] add rsp, 0B8h retn
_DWORD * js_object_assign( 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) { long long v14; // rdx long long v15; // r8 long long v16; // r9 __m128 v17; // xmm4 __m128 v18; // xmm5 long long v19; // rdx double v20; // xmm4_8 double v21; // xmm5_8 long long v23; // [rsp+18h] [rbp-A0h] _DWORD *v24; // [rsp+28h] [rbp-90h] _DWORD *v25; // [rsp+38h] [rbp-80h] long long v26; // [rsp+48h] [rbp-70h] int i; // [rsp+5Ch] [rbp-5Ch] long long v28; // [rsp+60h] [rbp-58h] long long v29; // [rsp+68h] [rbp-50h] long long v30; // [rsp+78h] [rbp-40h] int v32; // [rsp+8Ch] [rbp-2Ch] long long v33; // [rsp+A8h] [rbp-10h] v32 = a12; LODWORD(v26) = 0; v28 = v26; v29 = 3LL; v25 = JS_ToObject(a1, *(_DWORD **)a13, *(_QWORD *)(a13 + 8), a2, a3, a4, a5, a6, a7, a8, a9, a12, a13, a14); v30 = v14; if ( JS_IsException_1((long long)v25, v14) ) { LABEL_11: JS_FreeValue(a1, (long long)v25, v30); JS_FreeValue(a1, v28, v29); LODWORD(v33) = 0; } else { for ( i = 1; i < v32; ++i ) { if ( !JS_IsNull_0(*(_QWORD *)(16LL * i + a13), *(_QWORD *)(16LL * i + a13 + 8)) && !JS_IsUndefined_0(*(_QWORD *)(16LL * i + a13), *(_QWORD *)(16LL * i + a13 + 8)) ) { v24 = JS_ToObject( a1, *(_DWORD **)(16LL * i + a13), *(_QWORD *)(16LL * i + a13 + 8), a2, a3, a4, a5, v17, v18, a8, a9, 16LL * i, v15, v16); v28 = (long long)v24; v29 = v19; if ( JS_IsException_1((long long)v24, v19) ) goto LABEL_11; LODWORD(v23) = 0; if ( (unsigned int)JS_CopyDataProperties( a1, (long long)v25, v30, (long long)v24, v29, 1, a2, a3, a4, a5, v20, v21, a8, a9, v23, 3) ) goto LABEL_11; JS_FreeValue(a1, (long long)v24, v29); } } return v25; } return (_DWORD *)v33; }
js_object_assign: SUB RSP,0xb8 MOV qword ptr [RSP + 0x98],RSI MOV qword ptr [RSP + 0xa0],RDX MOV qword ptr [RSP + 0x90],RDI MOV dword ptr [RSP + 0x8c],ECX MOV qword ptr [RSP + 0x80],R8 MOV dword ptr [RSP + 0x48],0x0 MOV qword ptr [RSP + 0x50],0x3 MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x60],RAX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x68],RAX MOV RDI,qword ptr [RSP + 0x90] MOV RAX,qword ptr [RSP + 0x80] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x00137770 MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],RDX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x78],RAX MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x78] CALL 0x00123cc0 CMP EAX,0x0 JZ 0x001bfd56 JMP 0x001bfeb9 LAB_001bfd56: MOV dword ptr [RSP + 0x5c],0x1 LAB_001bfd5e: MOV EAX,dword ptr [RSP + 0x5c] CMP EAX,dword ptr [RSP + 0x8c] JGE 0x001bfe9d MOV RAX,qword ptr [RSP + 0x80] MOVSXD RCX,dword ptr [RSP + 0x5c] SHL RCX,0x4 ADD RAX,RCX MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x0012e240 CMP EAX,0x0 JNZ 0x001bfe8b MOV RAX,qword ptr [RSP + 0x80] MOVSXD RCX,dword ptr [RSP + 0x5c] SHL RCX,0x4 ADD RAX,RCX MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x0012e260 CMP EAX,0x0 JNZ 0x001bfe8b MOV RDI,qword ptr [RSP + 0x90] MOV RAX,qword ptr [RSP + 0x80] MOVSXD RCX,dword ptr [RSP + 0x5c] SHL RCX,0x4 ADD RAX,RCX MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x00137770 MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x30],RDX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x60],RAX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x68],RAX MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x68] CALL 0x00123cc0 CMP EAX,0x0 JZ 0x001bfe20 JMP 0x001bfeb9 LAB_001bfe20: MOV RDI,qword ptr [RSP + 0x90] MOV dword ptr [RSP + 0x18],0x0 MOV qword ptr [RSP + 0x20],0x3 MOV RSI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x78] MOV RCX,qword ptr [RSP + 0x60] MOV R8,qword ptr [RSP + 0x68] LEA RAX,[RSP + 0x18] MOV R9D,0x1 MOV R10,qword ptr [RAX] MOV qword ptr [RSP],R10 MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RAX CALL 0x0016a140 CMP EAX,0x0 JZ 0x001bfe74 JMP 0x001bfeb9 LAB_001bfe74: MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x68] CALL 0x00123c90 LAB_001bfe8b: JMP 0x001bfe8d LAB_001bfe8d: MOV EAX,dword ptr [RSP + 0x5c] ADD EAX,0x1 MOV dword ptr [RSP + 0x5c],EAX JMP 0x001bfd5e LAB_001bfe9d: MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0xa8],RAX MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0xb0],RAX JMP 0x001bfefe LAB_001bfeb9: MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x78] CALL 0x00123c90 MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x68] CALL 0x00123c90 MOV dword ptr [RSP + 0xa8],0x0 MOV qword ptr [RSP + 0xb0],0x6 LAB_001bfefe: MOV RAX,qword ptr [RSP + 0xa8] MOV RDX,qword ptr [RSP + 0xb0] ADD RSP,0xb8 RET
int1 [16] js_object_assign(int8 param_1,int8 param_2,int8 param_3,int param_4, int8 *param_5) { int iVar1; int1 auVar5 [16]; int1 auVar6 [16]; uint uStack_9c; uint uStack_6c; int local_5c; int8 local_58; int8 local_50; int4 local_10; int4 uStack_c; int8 local_8; int8 uVar2; int8 uVar3; int8 uVar4; auVar6._8_8_ = 3; auVar6._0_8_ = (ulong)uStack_6c << 0x20; auVar5 = JS_ToObject(param_1,*param_5,param_5[1]); local_8 = auVar5._8_8_; uVar2 = auVar5._0_8_; iVar1 = JS_IsException(uVar2,local_8); if (iVar1 == 0) { for (local_5c = 1; local_5c < param_4; local_5c = local_5c + 1) { iVar1 = JS_IsNull(param_5[(long)local_5c * 2],(param_5 + (long)local_5c * 2)[1]); if ((iVar1 == 0) && (iVar1 = JS_IsUndefined(param_5[(long)local_5c * 2],(param_5 + (long)local_5c * 2)[1]), iVar1 == 0)) { auVar6 = JS_ToObject(param_1,param_5[(long)local_5c * 2],(param_5 + (long)local_5c * 2)[1]); uVar4 = auVar6._8_8_; uVar3 = auVar6._0_8_; iVar1 = JS_IsException(uVar3,uVar4); if ((iVar1 != 0) || (iVar1 = JS_CopyDataProperties (param_1,uVar2,local_8,uVar3,uVar4,1,(ulong)uStack_9c << 0x20,3), iVar1 != 0)) goto LAB_001bfeb9; JS_FreeValue(param_1,uVar3,uVar4); } } local_10 = auVar5._0_4_; uStack_c = auVar5._4_4_; } else { LAB_001bfeb9: local_50 = auVar6._8_8_; local_58 = auVar6._0_8_; JS_FreeValue(param_1,uVar2,local_8); JS_FreeValue(param_1,local_58,local_50); local_10 = 0; local_8 = 6; } auVar5._4_4_ = uStack_c; auVar5._0_4_ = local_10; auVar5._8_8_ = local_8; return auVar5; }
44,023
js_object_assign
bluesky950520[P]quickjs/quickjs.c
static JSValue js_object_assign(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { // Object.assign(obj, source1) JSValue obj, s; int i; s = JS_UNDEFINED; obj = JS_ToObject(ctx, argv[0]); if (JS_IsException(obj)) goto exception; for (i = 1; i < argc; i++) { if (!JS_IsNull(argv[i]) && !JS_IsUndefined(argv[i])) { s = JS_ToObject(ctx, argv[i]); if (JS_IsException(s)) goto exception; if (JS_CopyDataProperties(ctx, obj, s, JS_UNDEFINED, TRUE)) goto exception; JS_FreeValue(ctx, s); } } return obj; exception: JS_FreeValue(ctx, obj); JS_FreeValue(ctx, s); return JS_EXCEPTION; }
O1
c
js_object_assign: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r8, %r12 movl %ecx, %ebp movq %rdi, %r15 movq (%r8), %rsi movq 0x8(%r8), %rdx callq 0x26ddd cmpl $0x6, %edx jne 0x70b25 movl $0x3, %r13d xorl %ebp, %ebp jmp 0x70bd7 cmpl $0x2, %ebp jl 0x70bf9 movq %rax, 0x18(%rsp) movq %rdx, 0x20(%rsp) movl %ebp, %r14d shlq $0x4, %r14 addq $-0x10, %r14 xorl %ebx, %ebx movq 0x18(%r12,%rbx), %rdx movl %edx, %eax andl $-0x2, %eax cmpl $0x2, %eax je 0x70bb8 movq 0x10(%r12,%rbx), %rsi movq %r15, %rdi callq 0x26ddd movq %rax, %rbp movq %rdx, %r13 cmpl $0x6, %r13d je 0x70bcd movl $0x0, 0x28(%rsp) movq $0x3, 0x30(%rsp) movups 0x28(%rsp), %xmm0 movups %xmm0, (%rsp) movq %r15, %rdi movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx movq %rbp, %rcx movq %r13, %r8 movl $0x1, %r9d callq 0x3ff54 testl %eax, %eax jne 0x70bcd movq 0x18(%r15), %rdi movq %rbp, %rsi movq %r13, %rdx callq 0x1d8c6 addq $0x10, %rbx cmpq %rbx, %r14 jne 0x70b45 movq 0x20(%rsp), %rdx movq 0x18(%rsp), %rax jmp 0x70bf9 movq 0x20(%rsp), %rdx movq 0x18(%rsp), %rax movq 0x18(%r15), %rdi movq %rax, %rsi callq 0x1d8c6 movq 0x18(%r15), %rdi movq %rbp, %rsi movq %r13, %rdx callq 0x1d8c6 movl $0x6, %edx xorl %eax, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_object_assign: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r12, r8 mov ebp, ecx mov r15, rdi mov rsi, [r8] mov rdx, [r8+8] call JS_ToObject cmp edx, 6 jnz short loc_70B25 mov r13d, 3 xor ebp, ebp jmp loc_70BD7 loc_70B25: cmp ebp, 2 jl loc_70BF9 mov [rsp+68h+var_50], rax mov [rsp+68h+var_48], rdx mov r14d, ebp shl r14, 4 add r14, 0FFFFFFFFFFFFFFF0h xor ebx, ebx loc_70B45: mov rdx, [r12+rbx+18h] mov eax, edx and eax, 0FFFFFFFEh cmp eax, 2 jz short loc_70BB8 mov rsi, [r12+rbx+10h] mov rdi, r15 call JS_ToObject mov rbp, rax mov r13, rdx cmp r13d, 6 jz short loc_70BCD mov dword ptr [rsp+68h+var_40], 0 mov qword ptr [rsp+68h+var_40+8], 3 movups xmm0, [rsp+68h+var_40] movups [rsp+68h+var_68], xmm0 mov rdi, r15 mov rsi, [rsp+68h+var_50] mov rdx, [rsp+68h+var_48] mov rcx, rbp mov r8, r13 mov r9d, 1 call JS_CopyDataProperties test eax, eax jnz short loc_70BCD mov rdi, [r15+18h] mov rsi, rbp mov rdx, r13 call JS_FreeValueRT loc_70BB8: add rbx, 10h cmp r14, rbx jnz short loc_70B45 mov rdx, [rsp+68h+var_48] mov rax, [rsp+68h+var_50] jmp short loc_70BF9 loc_70BCD: mov rdx, [rsp+68h+var_48] mov rax, [rsp+68h+var_50] loc_70BD7: mov rdi, [r15+18h] mov rsi, rax call JS_FreeValueRT mov rdi, [r15+18h] mov rsi, rbp mov rdx, r13 call JS_FreeValueRT mov edx, 6 xor eax, eax loc_70BF9: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_DWORD * js_object_assign( 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 v15; // ebp _DWORD *result; // rax long long v17; // rdx long long v18; // rcx long long v19; // r8 long long v20; // r9 __m128 v21; // xmm4 __m128 v22; // xmm5 long long v23; // r13 _DWORD *v24; // rbp long long v25; // r14 unsigned long long v26; // rbx _DWORD *v27; // rax long long v28; // rdx double v29; // xmm4_8 double v30; // xmm5_8 unsigned long long v31; // [rsp+18h] [rbp-50h] unsigned long long v32; // [rsp+20h] [rbp-48h] __m128 v33; // [rsp+28h] [rbp-40h] v15 = a12; result = JS_ToObject(a1, *a13, a13[1], a12, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9); if ( (_DWORD)v17 == 6 ) { v23 = 3LL; v24 = 0LL; goto LABEL_12; } if ( v15 >= 2 ) { v31 = (unsigned long long)result; v32 = v17; v25 = 16LL * (unsigned int)v15 - 16; v26 = 0LL; while ( 1 ) { if ( (a13[v26 / 8 + 3] & 0xFFFFFFFE) != 2 ) { v27 = JS_ToObject(a1, a13[v26 / 8 + 2], a13[v26 / 8 + 3], v18, v19, v20, a2, a3, a4, a5, v21, v22, a8, a9); v24 = v27; v23 = v28; if ( (_DWORD)v28 == 6 || (v33.m128_i32[0] = 0, v33.m128_u64[1] = 3LL, a2 = v33, (unsigned int)JS_CopyDataProperties( a1, v31, v32, (long long)v27, v28, 1, *(double *)v33.m128_u64, a3, a4, a5, v29, v30, a8, a9, v33.m128_i64[0], 3)) ) { v17 = v32; result = (_DWORD *)v31; LABEL_12: JS_FreeValueRT(*(_QWORD *)(a1 + 24), result, v17); JS_FreeValueRT(*(_QWORD *)(a1 + 24), v24, v23); return 0LL; } JS_FreeValueRT(*(_QWORD *)(a1 + 24), v24, v23); } v26 += 16LL; if ( v25 == v26 ) return (_DWORD *)v31; } } return result; }
js_object_assign: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R12,R8 MOV EBP,ECX MOV R15,RDI MOV RSI,qword ptr [R8] MOV RDX,qword ptr [R8 + 0x8] CALL 0x00126ddd CMP EDX,0x6 JNZ 0x00170b25 MOV R13D,0x3 XOR EBP,EBP JMP 0x00170bd7 LAB_00170b25: CMP EBP,0x2 JL 0x00170bf9 MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RDX MOV R14D,EBP SHL R14,0x4 ADD R14,-0x10 XOR EBX,EBX LAB_00170b45: MOV RDX,qword ptr [R12 + RBX*0x1 + 0x18] MOV EAX,EDX AND EAX,0xfffffffe CMP EAX,0x2 JZ 0x00170bb8 MOV RSI,qword ptr [R12 + RBX*0x1 + 0x10] MOV RDI,R15 CALL 0x00126ddd MOV RBP,RAX MOV R13,RDX CMP R13D,0x6 JZ 0x00170bcd MOV dword ptr [RSP + 0x28],0x0 MOV qword ptr [RSP + 0x30],0x3 MOVUPS XMM0,xmmword ptr [RSP + 0x28] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,R15 MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] MOV RCX,RBP MOV R8,R13 MOV R9D,0x1 CALL 0x0013ff54 TEST EAX,EAX JNZ 0x00170bcd MOV RDI,qword ptr [R15 + 0x18] MOV RSI,RBP MOV RDX,R13 CALL 0x0011d8c6 LAB_00170bb8: ADD RBX,0x10 CMP R14,RBX JNZ 0x00170b45 MOV RDX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] JMP 0x00170bf9 LAB_00170bcd: MOV RDX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] LAB_00170bd7: MOV RDI,qword ptr [R15 + 0x18] MOV RSI,RAX CALL 0x0011d8c6 MOV RDI,qword ptr [R15 + 0x18] MOV RSI,RBP MOV RDX,R13 CALL 0x0011d8c6 MOV EDX,0x6 XOR EAX,EAX LAB_00170bf9: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 js_object_assign(long param_1,int8 param_2,int8 param_3,uint param_4,int8 *param_5 ) { int iVar1; int8 uVar2; long lVar3; int1 auVar4 [16]; int1 auVar5 [16]; auVar4 = JS_ToObject(param_1,*param_5,param_5[1]); uVar2 = auVar4._0_8_; if (auVar4._8_4_ == 6) { auVar5 = ZEXT816(3) << 0x40; LAB_00170bd7: JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar2,auVar4._8_8_); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar5._0_8_,auVar5._8_8_); uVar2 = 0; } else if (1 < (int)param_4) { lVar3 = 0; do { if (((uint)*(int8 *)((long)param_5 + lVar3 + 0x18) & 0xfffffffe) != 2) { auVar5 = JS_ToObject(param_1,*(int8 *)((long)param_5 + lVar3 + 0x10)); if ((auVar5._8_4_ == 6) || (iVar1 = JS_CopyDataProperties (param_1,uVar2,auVar4._8_8_,auVar5._0_8_,auVar5._8_8_,1,0,3), iVar1 != 0)) goto LAB_00170bd7; JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar5._0_8_,auVar5._8_8_); } lVar3 = lVar3 + 0x10; } while ((ulong)param_4 * 0x10 + -0x10 != lVar3); } return uVar2; }
44,024
js_object_assign
bluesky950520[P]quickjs/quickjs.c
static JSValue js_object_assign(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { // Object.assign(obj, source1) JSValue obj, s; int i; s = JS_UNDEFINED; obj = JS_ToObject(ctx, argv[0]); if (JS_IsException(obj)) goto exception; for (i = 1; i < argc; i++) { if (!JS_IsNull(argv[i]) && !JS_IsUndefined(argv[i])) { s = JS_ToObject(ctx, argv[i]); if (JS_IsException(s)) goto exception; if (JS_CopyDataProperties(ctx, obj, s, JS_UNDEFINED, TRUE)) goto exception; JS_FreeValue(ctx, s); } } return obj; exception: JS_FreeValue(ctx, obj); JS_FreeValue(ctx, s); return JS_EXCEPTION; }
O2
c
js_object_assign: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r8, %r12 movl %ecx, %ebp movq %rdi, %rbx movq (%r8), %rsi movq 0x8(%r8), %rdx callq 0x20b92 cmpl $0x6, %edx jne 0x5ed21 pushq $0x3 popq %r13 xorl %ebp, %ebp jmp 0x5edc6 movq %rax, 0x18(%rsp) movq %rdx, 0x20(%rsp) movslq %ebp, %r15 addq $0x18, %r12 pushq $0x1 popq %r14 cmpq %r15, %r14 jge 0x5edb0 movq (%r12), %rdx movl %edx, %eax andl $-0x2, %eax cmpl $0x2, %eax je 0x5eda7 movq -0x8(%r12), %rsi movq %rbx, %rdi callq 0x20b92 movq %rax, %rbp movq %rdx, %r13 cmpl $0x6, %r13d je 0x5edbc andl $0x0, 0x28(%rsp) movq $0x3, 0x30(%rsp) movups 0x28(%rsp), %xmm0 movups %xmm0, (%rsp) movq %rbx, %rdi movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx movq %rbp, %rcx movq %r13, %r8 pushq $0x1 popq %r9 callq 0x38169 testl %eax, %eax jne 0x5edbc movq %rbx, %rdi movq %rbp, %rsi movq %r13, %rdx callq 0x1801e incq %r14 addq $0x10, %r12 jmp 0x5ed36 movq 0x20(%rsp), %rdx movq 0x18(%rsp), %rax jmp 0x5ede4 movq 0x20(%rsp), %rdx movq 0x18(%rsp), %rax movq %rbx, %rdi movq %rax, %rsi callq 0x1801e movq %rbx, %rdi movq %rbp, %rsi movq %r13, %rdx callq 0x1801e pushq $0x6 popq %rdx xorl %eax, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_object_assign: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r12, r8 mov ebp, ecx mov rbx, rdi mov rsi, [r8] mov rdx, [r8+8] call JS_ToObject cmp edx, 6 jnz short loc_5ED21 push 3 pop r13 xor ebp, ebp jmp loc_5EDC6 loc_5ED21: mov [rsp+68h+var_50], rax mov [rsp+68h+var_48], rdx movsxd r15, ebp add r12, 18h push 1 pop r14 loc_5ED36: cmp r14, r15 jge short loc_5EDB0 mov rdx, [r12] mov eax, edx and eax, 0FFFFFFFEh cmp eax, 2 jz short loc_5EDA7 mov rsi, [r12-8] mov rdi, rbx call JS_ToObject mov rbp, rax mov r13, rdx cmp r13d, 6 jz short loc_5EDBC and dword ptr [rsp+68h+var_40], 0 mov qword ptr [rsp+68h+var_40+8], 3 movups xmm0, [rsp+68h+var_40] movups [rsp+68h+var_68], xmm0 mov rdi, rbx mov rsi, [rsp+68h+var_50] mov rdx, [rsp+68h+var_48] mov rcx, rbp mov r8, r13 push 1 pop r9 call JS_CopyDataProperties test eax, eax jnz short loc_5EDBC mov rdi, rbx mov rsi, rbp mov rdx, r13 call JS_FreeValue loc_5EDA7: inc r14 add r12, 10h jmp short loc_5ED36 loc_5EDB0: mov rdx, [rsp+68h+var_48] mov rax, [rsp+68h+var_50] jmp short loc_5EDE4 loc_5EDBC: mov rdx, [rsp+68h+var_48] mov rax, [rsp+68h+var_50] loc_5EDC6: mov rdi, rbx mov rsi, rax call JS_FreeValue mov rdi, rbx mov rsi, rbp mov rdx, r13 call JS_FreeValue push 6 pop rdx xor eax, eax loc_5EDE4: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long js_object_assign( 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 v15; // ebp long long v16; // rax long long v17; // rdx long long v18; // rcx long long v19; // r8 long long v20; // r9 __m128 v21; // xmm4 __m128 v22; // xmm5 long long v23; // r13 long long v24; // rbp long long v25; // r15 long long *v26; // r12 long long i; // r14 long long v28; // rax long long v29; // rdx double v30; // xmm4_8 double v31; // xmm5_8 long long v33; // [rsp+18h] [rbp-50h] long long v34; // [rsp+20h] [rbp-48h] __m128 v35; // [rsp+28h] [rbp-40h] v15 = a12; v16 = JS_ToObject(a1, *a13, a13[1], a12, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9); if ( (_DWORD)v17 != 6 ) { v33 = v16; v34 = v17; v25 = v15; v26 = a13 + 3; for ( i = 1LL; ; ++i ) { if ( i >= v25 ) return v33; if ( (*(_DWORD *)v26 & 0xFFFFFFFE) != 2 ) { v28 = JS_ToObject(a1, *(v26 - 1), *v26, v18, v19, v20, a2, a3, a4, a5, v21, v22, a8, a9); v24 = v28; v23 = v29; if ( (_DWORD)v29 == 6 || (v35.m128_i32[0] = 0, v35.m128_u64[1] = 3LL, a2 = v35, (unsigned int)JS_CopyDataProperties( a1, v33, v34, v28, v29, 1, *(double *)v35.m128_u64, a3, a4, a5, v30, v31, a8, a9, v35.m128_i64[0], 3)) ) { v17 = v34; v16 = v33; goto LABEL_12; } JS_FreeValue(a1, v24, v23); } v26 += 2; } } v23 = 3LL; v24 = 0LL; LABEL_12: JS_FreeValue(a1, v16, v17); JS_FreeValue(a1, v24, v23); return 0LL; }
js_object_assign: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R12,R8 MOV EBP,ECX MOV RBX,RDI MOV RSI,qword ptr [R8] MOV RDX,qword ptr [R8 + 0x8] CALL 0x00120b92 CMP EDX,0x6 JNZ 0x0015ed21 PUSH 0x3 POP R13 XOR EBP,EBP JMP 0x0015edc6 LAB_0015ed21: MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RDX MOVSXD R15,EBP ADD R12,0x18 PUSH 0x1 POP R14 LAB_0015ed36: CMP R14,R15 JGE 0x0015edb0 MOV RDX,qword ptr [R12] MOV EAX,EDX AND EAX,0xfffffffe CMP EAX,0x2 JZ 0x0015eda7 MOV RSI,qword ptr [R12 + -0x8] MOV RDI,RBX CALL 0x00120b92 MOV RBP,RAX MOV R13,RDX CMP R13D,0x6 JZ 0x0015edbc AND dword ptr [RSP + 0x28],0x0 MOV qword ptr [RSP + 0x30],0x3 MOVUPS XMM0,xmmword ptr [RSP + 0x28] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,RBX MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] MOV RCX,RBP MOV R8,R13 PUSH 0x1 POP R9 CALL 0x00138169 TEST EAX,EAX JNZ 0x0015edbc MOV RDI,RBX MOV RSI,RBP MOV RDX,R13 CALL 0x0011801e LAB_0015eda7: INC R14 ADD R12,0x10 JMP 0x0015ed36 LAB_0015edb0: MOV RDX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] JMP 0x0015ede4 LAB_0015edbc: MOV RDX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] LAB_0015edc6: MOV RDI,RBX MOV RSI,RAX CALL 0x0011801e MOV RDI,RBX MOV RSI,RBP MOV RDX,R13 CALL 0x0011801e PUSH 0x6 POP RDX XOR EAX,EAX LAB_0015ede4: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int1 [16] js_object_assign(int8 param_1,int8 param_2,int8 param_3,int param_4, int8 *param_5) { int iVar1; long lVar2; int1 auVar3 [16]; int1 auVar4 [16]; auVar3 = JS_ToObject(param_1,*param_5,param_5[1]); if (auVar3._8_4_ == 6) { auVar4 = ZEXT816(3) << 0x40; LAB_0015edc6: JS_FreeValue(param_1,auVar3._0_8_,auVar3._8_8_); JS_FreeValue(param_1,auVar4._0_8_,auVar4._8_8_); auVar3 = ZEXT816(6) << 0x40; } else { param_5 = param_5 + 3; for (lVar2 = 1; lVar2 < param_4; lVar2 = lVar2 + 1) { if (((uint)*param_5 & 0xfffffffe) != 2) { auVar4 = JS_ToObject(param_1,param_5[-1]); if ((auVar4._8_4_ == 6) || (iVar1 = JS_CopyDataProperties (param_1,auVar3._0_8_,auVar3._8_8_,auVar4._0_8_,auVar4._8_8_,1,0,3), iVar1 != 0)) goto LAB_0015edc6; JS_FreeValue(param_1,auVar4._0_8_,auVar4._8_8_); } param_5 = param_5 + 2; } } return auVar3; }
44,025
ma_send_connect_attr
eloqsql/libmariadb/libmariadb/mariadb_lib.c
char *ma_send_connect_attr(MYSQL *mysql, unsigned char *buffer) { if (mysql->server_capabilities & CLIENT_CONNECT_ATTRS) { buffer= (unsigned char *)mysql_net_store_length((unsigned char *)buffer, (mysql->options.extension) ? mysql->options.extension->connect_attrs_len : 0); if (mysql->options.extension && ma_hashtbl_inited(&mysql->options.extension->connect_attrs)) { uint i; for (i=0; i < mysql->options.extension->connect_attrs.records; i++) { size_t len; uchar *p= ma_hashtbl_element(&mysql->options.extension->connect_attrs, i); len= strlen((char *)p); buffer= mysql_net_store_length(buffer, len); memcpy(buffer, p, len); buffer+= (len); p+= (len + 1); len= strlen((char *)p); buffer= mysql_net_store_length(buffer, len); memcpy(buffer, p, len); buffer+= len; } } } return (char *)buffer; }
O3
c
ma_send_connect_attr: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 testb $0x10, 0x372(%rdi) je 0x18f1c movq %rdi, %rbx movq 0x480(%rdi), %rax testq %rax, %rax je 0x18e72 movq 0x78(%rax), %rsi jmp 0x18e74 xorl %esi, %esi movq %r14, %rdi callq 0x1f70b movq %rax, %r14 movq 0x480(%rbx), %rdi testq %rdi, %rdi je 0x18f1c cmpq $0x0, 0x48(%rdi) je 0x18f1c cmpl $0x0, 0x38(%rdi) je 0x18f1c xorl %r15d, %r15d addq $0x30, %rdi movl %r15d, %esi callq 0x31a15 movq %rax, %r12 movq %rax, %rdi callq 0x131c0 movq %rax, %r13 movq %r14, %rdi movq %rax, %rsi callq 0x1f70b movq %rax, %r14 movq %rax, %rdi movq %r12, %rsi movq %r13, %rdx callq 0x13390 addq %r13, %r14 addq %r13, %r12 incq %r12 movq %r12, %rdi callq 0x131c0 movq %rax, %r13 movq %r14, %rdi movq %rax, %rsi callq 0x1f70b movq %rax, %r14 movq %rax, %rdi movq %r12, %rsi movq %r13, %rdx callq 0x13390 addq %r13, %r14 incl %r15d movq 0x480(%rbx), %rdi cmpl 0x38(%rdi), %r15d jb 0x18ea3 movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ma_send_connect_attr: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rsi test byte ptr [rdi+372h], 10h jz loc_18F1C mov rbx, rdi mov rax, [rdi+480h] test rax, rax jz short loc_18E72 mov rsi, [rax+78h] jmp short loc_18E74 loc_18E72: xor esi, esi loc_18E74: mov rdi, r14 call mysql_net_store_length mov r14, rax mov rdi, [rbx+480h] test rdi, rdi jz loc_18F1C cmp qword ptr [rdi+48h], 0 jz loc_18F1C cmp dword ptr [rdi+38h], 0 jz short loc_18F1C xor r15d, r15d loc_18EA3: add rdi, 30h ; '0' mov esi, r15d call ma_hashtbl_element mov r12, rax mov rdi, rax call _strlen mov r13, rax mov rdi, r14 mov rsi, rax call mysql_net_store_length mov r14, rax mov rdi, rax mov rsi, r12 mov rdx, r13 call _memcpy add r14, r13 add r12, r13 inc r12 mov rdi, r12 call _strlen mov r13, rax mov rdi, r14 mov rsi, rax call mysql_net_store_length mov r14, rax mov rdi, rax mov rsi, r12 mov rdx, r13 call _memcpy add r14, r13 inc r15d mov rdi, [rbx+480h] cmp r15d, [rdi+38h] jb short loc_18EA3 loc_18F1C: mov rax, r14 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ma_send_connect_attr(long long a1, long long a2) { long long v4; // rax long long v5; // rsi long long v6; // rdi unsigned int v7; // r15d long long v8; // r12 long long v9; // r13 long long v10; // r14 long long v11; // r14 long long v12; // r12 long long v13; // r13 long long v14; // r14 if ( (*(_BYTE *)(a1 + 882) & 0x10) != 0 ) { v4 = *(_QWORD *)(a1 + 1152); if ( v4 ) v5 = *(_QWORD *)(v4 + 120); else v5 = 0LL; a2 = mysql_net_store_length(a2, v5); v6 = *(_QWORD *)(a1 + 1152); if ( v6 && *(_QWORD *)(v6 + 72) && *(_DWORD *)(v6 + 56) ) { v7 = 0; do { v8 = ma_hashtbl_element(v6 + 48, v7); v9 = strlen(v8); v10 = mysql_net_store_length(a2, v9); memcpy(v10, v8, v9); v11 = v9 + v10; v12 = v9 + v8 + 1; v13 = strlen(v12); v14 = mysql_net_store_length(v11, v13); memcpy(v14, v12, v13); a2 = v13 + v14; ++v7; v6 = *(_QWORD *)(a1 + 1152); } while ( v7 < *(_DWORD *)(v6 + 56) ); } } return a2; }
ma_send_connect_attr: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RSI TEST byte ptr [RDI + 0x372],0x10 JZ 0x00118f1c MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x480] TEST RAX,RAX JZ 0x00118e72 MOV RSI,qword ptr [RAX + 0x78] JMP 0x00118e74 LAB_00118e72: XOR ESI,ESI LAB_00118e74: MOV RDI,R14 CALL 0x0011f70b MOV R14,RAX MOV RDI,qword ptr [RBX + 0x480] TEST RDI,RDI JZ 0x00118f1c CMP qword ptr [RDI + 0x48],0x0 JZ 0x00118f1c CMP dword ptr [RDI + 0x38],0x0 JZ 0x00118f1c XOR R15D,R15D LAB_00118ea3: ADD RDI,0x30 MOV ESI,R15D CALL 0x00131a15 MOV R12,RAX MOV RDI,RAX CALL 0x001131c0 MOV R13,RAX MOV RDI,R14 MOV RSI,RAX CALL 0x0011f70b MOV R14,RAX MOV RDI,RAX MOV RSI,R12 MOV RDX,R13 CALL 0x00113390 ADD R14,R13 ADD R12,R13 INC R12 MOV RDI,R12 CALL 0x001131c0 MOV R13,RAX MOV RDI,R14 MOV RSI,RAX CALL 0x0011f70b MOV R14,RAX MOV RDI,RAX MOV RSI,R12 MOV RDX,R13 CALL 0x00113390 ADD R14,R13 INC R15D MOV RDI,qword ptr [RBX + 0x480] CMP R15D,dword ptr [RDI + 0x38] JC 0x00118ea3 LAB_00118f1c: MOV RAX,R14 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long ma_send_connect_attr(long param_1,long param_2) { char *__s; size_t __n; void *pvVar1; size_t __n_00; int8 uVar2; long lVar3; uint uVar4; if ((*(byte *)(param_1 + 0x372) & 0x10) != 0) { if (*(long *)(param_1 + 0x480) == 0) { uVar2 = 0; } else { uVar2 = *(int8 *)(*(long *)(param_1 + 0x480) + 0x78); } param_2 = mysql_net_store_length(param_2,uVar2); lVar3 = *(long *)(param_1 + 0x480); if (((lVar3 != 0) && (*(long *)(lVar3 + 0x48) != 0)) && (*(int *)(lVar3 + 0x38) != 0)) { uVar4 = 0; do { __s = (char *)ma_hashtbl_element(lVar3 + 0x30,uVar4); __n = strlen(__s); pvVar1 = (void *)mysql_net_store_length(param_2,__n); memcpy(pvVar1,__s,__n); __n_00 = strlen(__s + __n + 1); pvVar1 = (void *)mysql_net_store_length((long)pvVar1 + __n,__n_00); memcpy(pvVar1,__s + __n + 1,__n_00); param_2 = (long)pvVar1 + __n_00; uVar4 = uVar4 + 1; lVar3 = *(long *)(param_1 + 0x480); } while (uVar4 < *(uint *)(lVar3 + 0x38)); } } return param_2; }
44,026
minja::Value::to_str[abi:cxx11]() const
monkey531[P]llama/common/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 0x593f9 movq %rbx, %rdi callq 0x40982 jmp 0x59562 leal -0x5(%rax), %ecx cmpb $0x1, %cl ja 0x59480 movq %rsi, %rdi callq 0x3ed5c movq %rax, %r15 movq %rax, %r14 negq %r14 cmovsq %rax, %r14 movl $0x1, %r12d cmpq $0xa, %r14 jb 0x59535 movl $0x4, %r12d movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B movq %r14, %rcx cmpq $0x63, %rcx jbe 0x5952c cmpq $0x3e7, %rcx # imm = 0x3E7 jbe 0x59532 cmpq $0x2710, %rcx # imm = 0x2710 jb 0x59535 movq %rcx, %rax mulq %rsi shrq $0xb, %rdx addl $0x4, %r12d cmpq $0x1869f, %rcx # imm = 0x1869F movq %rdx, %rcx ja 0x59439 addl $-0x3, %r12d jmp 0x59535 cmpl $0x4, %eax je 0x594b4 cmpl $0x7, %eax jne 0x594e3 movq %rsi, %rdi callq 0x3eea6 movq 0x84ab7(%rip), %rsi # 0xddf50 leaq 0x5328a(%rip), %rcx # 0xac72a movl $0x148, %edx # imm = 0x148 movq %rbx, %rdi movb $0x1, %al callq 0x5a2af jmp 0x59562 movq %rsi, %rdi callq 0x40872 leaq 0x514d7(%rip), %rcx # 0xaa99a leaq 0x514d5(%rip), %rsi # 0xaa99f testb %al, %al cmovneq %rcx, %rsi leaq 0x10(%rbx), %rcx movq %rcx, (%rbx) movzbl %al, %edx xorq $0x5, %rdx addq %rsi, %rdx jmp 0x59511 testl %eax, %eax jne 0x5951b cmpq $0x0, 0x20(%rsi) jne 0x5951b cmpq $0x0, 0x10(%rsi) jne 0x5951b cmpq $0x0, 0x30(%rsi) jne 0x5951b leaq 0x10(%rbx), %rax movq %rax, (%rbx) leaq 0x518c0(%rip), %rsi # 0xaadca leaq 0x518bd(%rip), %rdx # 0xaadce movq %rbx, %rdi callq 0x1ded4 jmp 0x59562 movq %rbx, %rdi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x3eff2 jmp 0x59562 addl $-0x2, %r12d jmp 0x59535 decl %r12d shrq $0x3f, %r15 leal (%r15,%r12), %esi leaq 0x10(%rbx), %rax movq %rax, (%rbx) movq %rbx, %rdi movl $0x2d, %edx callq 0x187a0 addq (%rbx), %r15 movq %r15, %rdi movl %r12d, %esi movq %r14, %rdx callq 0x4a74f movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq nop
_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_593F9 mov rdi, rbx call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) jmp loc_59562 loc_593F9: lea ecx, [rax-5] cmp cl, 1 ja short loc_59480 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_59535 mov r12d, 4 mov rsi, 346DC5D63886594Bh mov rcx, r14 loc_59439: cmp rcx, 63h ; 'c' jbe loc_5952C cmp rcx, 3E7h jbe loc_59532 cmp rcx, 2710h jb loc_59535 mov rax, rcx mul rsi shr rdx, 0Bh add r12d, 4 cmp rcx, 1869Fh mov rcx, rdx ja short loc_59439 add r12d, 0FFFFFFFDh jmp loc_59535 loc_59480: cmp eax, 4 jz short loc_594B4 cmp eax, 7 jnz short loc_594E3 mov rdi, rsi call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) mov rsi, cs:vsnprintf_ptr lea rcx, asc_AC72A; "%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_59562 loc_594B4: mov rdi, rsi call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void) lea rcx, aTrue_0; "True" lea rsi, aFalse_0; "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_59511 loc_594E3: test eax, eax jnz short loc_5951B cmp qword ptr [rsi+20h], 0 jnz short loc_5951B cmp qword ptr [rsi+10h], 0 jnz short loc_5951B cmp qword ptr [rsi+30h], 0 jnz short loc_5951B lea rax, [rbx+10h] mov [rbx], rax lea rsi, aNone; "None" lea rdx, aNone+4; "" loc_59511: 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_59562 loc_5951B: mov rdi, rbx mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) jmp short loc_59562 loc_5952C: add r12d, 0FFFFFFFEh jmp short loc_59535 loc_59532: dec r12d loc_59535: 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_59562: 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>(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>(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 0x001593f9 MOV RDI,RBX CALL 0x00140982 JMP 0x00159562 LAB_001593f9: LEA ECX,[RAX + -0x5] CMP CL,0x1 JA 0x00159480 MOV RDI,RSI CALL 0x0013ed5c MOV R15,RAX MOV R14,RAX NEG R14 CMOVS R14,RAX MOV R12D,0x1 CMP R14,0xa JC 0x00159535 MOV R12D,0x4 MOV RSI,0x346dc5d63886594b MOV RCX,R14 LAB_00159439: CMP RCX,0x63 JBE 0x0015952c CMP RCX,0x3e7 JBE 0x00159532 CMP RCX,0x2710 JC 0x00159535 MOV RAX,RCX MUL RSI SHR RDX,0xb ADD R12D,0x4 CMP RCX,0x1869f MOV RCX,RDX JA 0x00159439 ADD R12D,-0x3 JMP 0x00159535 LAB_00159480: CMP EAX,0x4 JZ 0x001594b4 CMP EAX,0x7 JNZ 0x001594e3 MOV RDI,RSI CALL 0x0013eea6 MOV RSI,qword ptr [0x001ddf50] LEA RCX,[0x1ac72a] MOV EDX,0x148 MOV RDI,RBX MOV AL,0x1 CALL 0x0015a2af JMP 0x00159562 LAB_001594b4: MOV RDI,RSI CALL 0x00140872 LEA RCX,[0x1aa99a] LEA RSI,[0x1aa99f] 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 0x00159511 LAB_001594e3: TEST EAX,EAX JNZ 0x0015951b CMP qword ptr [RSI + 0x20],0x0 JNZ 0x0015951b CMP qword ptr [RSI + 0x10],0x0 JNZ 0x0015951b CMP qword ptr [RSI + 0x30],0x0 JNZ 0x0015951b LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX LEA RSI,[0x1aadca] LEA RDX,[0x1aadce] LAB_00159511: MOV RDI,RBX CALL 0x0011ded4 JMP 0x00159562 LAB_0015951b: MOV RDI,RBX MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0013eff2 JMP 0x00159562 LAB_0015952c: ADD R12D,-0x2 JMP 0x00159535 LAB_00159532: DEC R12D LAB_00159535: SHR R15,0x3f LEA ESI,[R15 + R12*0x1] LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX MOV RDI,RBX MOV EDX,0x2d CALL 0x001187a0 ADD R15,qword ptr [RBX] MOV RDI,R15 MOV ESI,R12D MOV RDX,R14 CALL 0x0014a74f LAB_00159562: 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_00159535; } if (uVar5 < 1000) { uVar6 = uVar6 - 1; goto LAB_00159535; } if (uVar5 < 10000) goto LAB_00159535; bVar2 = 99999 < uVar5; uVar5 = uVar5 / 10000; uVar3 = uVar6 + 4; } while (bVar2); uVar6 = uVar6 + 1; } LAB_00159535: *(_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_001ddf50,(char *)0x148,&DAT_001ac72a); 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; }
44,027
ftxui::(anonymous namespace)::SeparatorWithPixel::Render(ftxui::Screen&)
Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/dom/separator.cpp
void Render(Screen& screen) override { for (int y = box_.y_min; y <= box_.y_max; ++y) { for (int x = box_.x_min; x <= box_.x_max; ++x) { screen.PixelAt(x, y) = pixel_; } } }
O2
cpp
ftxui::(anonymous namespace)::SeparatorWithPixel::Render(ftxui::Screen&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 movl 0x54(%rdi), %ebp leaq 0x60(%rdi), %r15 cmpl 0x58(%r14), %ebp jg 0x1fb82 movl 0x4c(%r14), %r12d cmpl 0x50(%r14), %r12d jg 0x1fb7e movq %rbx, %rdi movl %r12d, %esi movl %ebp, %edx callq 0x303fa movq %rax, %rdi movq %r15, %rsi callq 0x1da5e incl %r12d jmp 0x1fb5b incl %ebp jmp 0x1fb51 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq nop
_ZN5ftxui12_GLOBAL__N_118SeparatorWithPixel6RenderERNS_6ScreenE: push rbp push r15 push r14 push r12 push rbx mov rbx, rsi mov r14, rdi mov ebp, [rdi+54h] lea r15, [rdi+60h] loc_1FB51: cmp ebp, [r14+58h] jg short loc_1FB82 mov r12d, [r14+4Ch] loc_1FB5B: cmp r12d, [r14+50h] jg short loc_1FB7E mov rdi, rbx; this mov esi, r12d; int mov edx, ebp; int call _ZN5ftxui6Screen7PixelAtEii; ftxui::Screen::PixelAt(int,int) mov rdi, rax mov rsi, r15 call _ZN5ftxui5PixelaSERKS0_; ftxui::Pixel::operator=(ftxui::Pixel const&) inc r12d jmp short loc_1FB5B loc_1FB7E: inc ebp jmp short loc_1FB51 loc_1FB82: pop rbx pop r12 pop r14 pop r15 pop rbp retn
void ftxui::`anonymous namespace'::SeparatorWithPixel::Render( ftxui::_anonymous_namespace_::SeparatorWithPixel *this, ftxui::Screen *a2) { int i; // ebp int j; // r12d long long v4; // rax for ( i = *((_DWORD *)this + 21); i <= *((_DWORD *)this + 22); ++i ) { for ( j = *((_DWORD *)this + 19); j <= *((_DWORD *)this + 20); ++j ) { v4 = ftxui::Screen::PixelAt(a2, j, i); ftxui::Pixel::operator=(v4, (long long)this + 96); } } }
Render: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RSI MOV R14,RDI MOV EBP,dword ptr [RDI + 0x54] LEA R15,[RDI + 0x60] LAB_0011fb51: CMP EBP,dword ptr [R14 + 0x58] JG 0x0011fb82 MOV R12D,dword ptr [R14 + 0x4c] LAB_0011fb5b: CMP R12D,dword ptr [R14 + 0x50] JG 0x0011fb7e MOV RDI,RBX MOV ESI,R12D MOV EDX,EBP CALL 0x001303fa MOV RDI,RAX MOV RSI,R15 CALL 0x0011da5e INC R12D JMP 0x0011fb5b LAB_0011fb7e: INC EBP JMP 0x0011fb51 LAB_0011fb82: POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* ftxui::(anonymous namespace)::SeparatorWithPixel::Render(ftxui::Screen&) */ void __thiscall ftxui::(anonymous_namespace)::SeparatorWithPixel::Render(SeparatorWithPixel *this,Screen *param_1) { Pixel *this_00; int iVar1; int iVar2; for (iVar1 = *(int *)(this + 0x54); iVar1 <= *(int *)(this + 0x58); iVar1 = iVar1 + 1) { for (iVar2 = *(int *)(this + 0x4c); iVar2 <= *(int *)(this + 0x50); iVar2 = iVar2 + 1) { this_00 = (Pixel *)Screen::PixelAt(param_1,iVar2,iVar1); Pixel::operator=(this_00,(Pixel *)(this + 0x60)); } } return; }
44,028
fmt::v10::appender fmt::v10::detail::write_significand<fmt::v10::appender, char, unsigned long, fmt::v10::detail::digit_grouping<char>>(fmt::v10::appender, unsigned long, int, int, char, fmt::v10::detail::digit_grouping<char> const&)
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h
FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand, int significand_size, int integral_size, Char decimal_point, const Grouping& grouping) -> OutputIt { if (!grouping.has_separator()) { return write_significand(out, significand, significand_size, integral_size, decimal_point); } auto buffer = basic_memory_buffer<Char>(); write_significand(buffer_appender<Char>(buffer), significand, significand_size, integral_size, decimal_point); grouping.apply( out, basic_string_view<Char>(buffer.data(), to_unsigned(integral_size))); return detail::copy_str_noinline<Char>(buffer.data() + integral_size, buffer.end(), out); }
O0
c
fmt::v10::appender fmt::v10::detail::write_significand<fmt::v10::appender, char, unsigned long, fmt::v10::detail::digit_grouping<char>>(fmt::v10::appender, unsigned long, int, int, char, fmt::v10::detail::digit_grouping<char> const&): subq $0x2e8, %rsp # imm = 0x2E8 movb %r8b, %al movq %rdi, 0x2d0(%rsp) movq %rsi, 0x2c8(%rsp) movl %edx, 0x2c4(%rsp) movl %ecx, 0x2c0(%rsp) movb %al, 0x2bf(%rsp) movq %r9, 0x2b0(%rsp) movq 0x2b0(%rsp), %rdi callq 0xd46f0 testb $0x1, %al jne 0xde0f3 movq 0x2d0(%rsp), %rax movq %rax, 0x2a8(%rsp) movq 0x2c8(%rsp), %rsi movl 0x2c4(%rsp), %edx movl 0x2c0(%rsp), %ecx movb 0x2bf(%rsp), %al movq 0x2a8(%rsp), %rdi movsbl %al, %r8d callq 0xdd650 movq %rax, 0x2d8(%rsp) jmp 0xde2ab leaq 0x8f(%rsp), %rdi movq %rdi, 0x38(%rsp) callq 0x15de0 movq 0x38(%rsp), %rsi leaq 0x90(%rsp), %rdi callq 0xc7960 jmp 0xde119 leaq 0x8f(%rsp), %rdi callq 0x157f0 leaq 0x70(%rsp), %rdi leaq 0x90(%rsp), %rsi callq 0x23fb0 jmp 0xde13a movq 0x2c8(%rsp), %rsi movl 0x2c4(%rsp), %edx movl 0x2c0(%rsp), %ecx movsbl 0x2bf(%rsp), %r8d movq 0x70(%rsp), %rdi callq 0xdd650 movq %rax, 0x30(%rsp) jmp 0xde16a movq 0x30(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x2b0(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x2d0(%rsp), %rax movq %rax, 0x60(%rsp) leaq 0x90(%rsp), %rdi callq 0x243d0 movq %rax, 0x20(%rsp) movl 0x2c0(%rsp), %edi callq 0xc7930 movl %eax, 0x2c(%rsp) jmp 0xde1b2 movq 0x20(%rsp), %rsi movl 0x2c(%rsp), %eax movl %eax, %eax movl %eax, %edx leaq 0x50(%rsp), %rdi callq 0x243f0 movq 0x18(%rsp), %rdi movq 0x60(%rsp), %rsi movq 0x50(%rsp), %rdx movq 0x58(%rsp), %rcx callq 0xd4760 movq %rax, 0x10(%rsp) jmp 0xde1e9 movq 0x10(%rsp), %rax movq %rax, 0x48(%rsp) leaq 0x90(%rsp), %rdi movq %rdi, (%rsp) callq 0x243d0 movq %rax, %rdi movq (%rsp), %rax movslq 0x2c0(%rsp), %rcx addq %rcx, %rdi movq %rax, 0x2e0(%rsp) movq 0x2e0(%rsp), %rax movq 0x8(%rax), %rsi movq 0x10(%rax), %rax addq %rax, %rsi movq 0x2d0(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x40(%rsp), %rdx callq 0xcd850 movq %rax, 0x8(%rsp) jmp 0xde24f movq 0x8(%rsp), %rax movq %rax, 0x2d8(%rsp) leaq 0x90(%rsp), %rdi callq 0xc79c0 jmp 0xde2ab movq %rax, %rcx movl %edx, %eax movq %rcx, 0x80(%rsp) movl %eax, 0x7c(%rsp) leaq 0x8f(%rsp), %rdi callq 0x157f0 jmp 0xde2bb movq %rax, %rcx movl %edx, %eax movq %rcx, 0x80(%rsp) movl %eax, 0x7c(%rsp) leaq 0x90(%rsp), %rdi callq 0xc79c0 jmp 0xde2bb movq 0x2d8(%rsp), %rax addq $0x2e8, %rsp # imm = 0x2E8 retq movq 0x80(%rsp), %rdi callq 0x15dd0 nopl (%rax,%rax)
_ZN3fmt3v106detail17write_significandINS0_8appenderEcPKcNS1_14digit_groupingIcEEEET_S8_T1_iiT0_RKT2_: sub rsp, 2E8h mov al, r8b mov [rsp+2E8h+var_18], rdi mov [rsp+2E8h+var_20], rsi mov [rsp+2E8h+var_24], edx mov [rsp+2E8h+var_28], ecx mov [rsp+2E8h+var_29], al mov [rsp+2E8h+var_38], r9 mov rdi, [rsp+2E8h+var_38] call _ZNK3fmt3v106detail14digit_groupingIcE13has_separatorEv; fmt::v10::detail::digit_grouping<char>::has_separator(void) test al, 1 jnz short loc_DE0F3 mov rax, [rsp+2E8h+var_18] mov [rsp+2E8h+var_40], rax mov rsi, [rsp+2E8h+var_20] mov edx, [rsp+2E8h+var_24] mov ecx, [rsp+2E8h+var_28] mov al, [rsp+2E8h+var_29] mov rdi, [rsp+2E8h+var_40] movsx r8d, al call _ZN3fmt3v106detail17write_significandINS0_8appenderEcEET_S4_PKciiT0_; fmt::v10::detail::write_significand<fmt::v10::appender,char>(fmt::v10::appender,char const*,int,int,char) mov [rsp+2E8h+var_10], rax jmp loc_DE2AB loc_DE0F3: lea rdi, [rsp+2E8h+var_259] mov [rsp+2E8h+var_2B0], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rsi, [rsp+2E8h+var_2B0] lea rdi, [rsp+2E8h+var_258] call _ZN3fmt3v1019basic_memory_bufferIcLm500ESaIcEEC2ERKS2_; fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::basic_memory_buffer(std::allocator<char> const&) jmp short $+2 loc_DE119: lea rdi, [rsp+2E8h+var_259] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, [rsp+2E8h+var_278] lea rsi, [rsp+2E8h+var_258] call _ZN3fmt3v108appenderCI2St20back_insert_iteratorINS0_6detail6bufferIcEEEERS5_ jmp short $+2 loc_DE13A: mov rsi, [rsp+2E8h+var_20] mov edx, [rsp+2E8h+var_24] mov ecx, [rsp+2E8h+var_28] movsx r8d, [rsp+2E8h+var_29] mov rdi, [rsp+2E8h+var_278] call _ZN3fmt3v106detail17write_significandINS0_8appenderEcEET_S4_PKciiT0_; fmt::v10::detail::write_significand<fmt::v10::appender,char>(fmt::v10::appender,char const*,int,int,char) mov [rsp+2E8h+var_2B8], rax jmp short $+2 loc_DE16A: mov rax, [rsp+2E8h+var_2B8] mov [rsp+2E8h+var_280], rax mov rax, [rsp+2E8h+var_38] mov [rsp+2E8h+var_2D0], rax mov rax, [rsp+2E8h+var_18] mov [rsp+2E8h+var_288], rax lea rdi, [rsp+2E8h+var_258] call _ZN3fmt3v106detail6bufferIcE4dataEv; fmt::v10::detail::buffer<char>::data(void) mov [rsp+2E8h+var_2C8], rax mov edi, [rsp+2E8h+var_28] call _ZN3fmt3v106detail11to_unsignedIiEENSt13make_unsignedIT_E4typeES4_; fmt::v10::detail::to_unsigned<int>(int) mov [rsp+2E8h+var_2BC], eax jmp short $+2 loc_DE1B2: mov rsi, [rsp+2E8h+var_2C8] mov eax, [rsp+2E8h+var_2BC] mov eax, eax mov edx, eax lea rdi, [rsp+2E8h+var_298] call _ZN3fmt3v1017basic_string_viewIcEC2EPKcm; fmt::v10::basic_string_view<char>::basic_string_view(char const*,ulong) mov rdi, [rsp+2E8h+var_2D0] mov rsi, [rsp+2E8h+var_288] mov rdx, [rsp+2E8h+var_298] mov rcx, [rsp+2E8h+var_290] call _ZNK3fmt3v106detail14digit_groupingIcE5applyINS0_8appenderEcEET_S6_NS0_17basic_string_viewIT0_EE; fmt::v10::detail::digit_grouping<char>::apply<fmt::v10::appender,char>(fmt::v10::appender,fmt::v10::basic_string_view<char>) mov [rsp+2E8h+var_2D8], rax jmp short $+2 loc_DE1E9: mov rax, [rsp+2E8h+var_2D8] mov [rsp+2E8h+var_2A0], rax lea rdi, [rsp+2E8h+var_258] mov [rsp+2E8h+var_2E8], rdi call _ZN3fmt3v106detail6bufferIcE4dataEv; fmt::v10::detail::buffer<char>::data(void) mov rdi, rax mov rax, [rsp+2E8h+var_2E8] movsxd rcx, [rsp+2E8h+var_28] add rdi, rcx mov [rsp+2E8h+var_8], rax mov rax, [rsp+2E8h+var_8] mov rsi, [rax+8] mov rax, [rax+10h] add rsi, rax mov rax, [rsp+2E8h+var_18] mov [rsp+2E8h+var_2A8], rax mov rdx, [rsp+2E8h+var_2A8] call _ZN3fmt3v106detail17copy_str_noinlineIcPcNS0_8appenderEEET1_T0_S6_S5_; fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>(char *,char *,fmt::v10::appender) mov [rsp+2E8h+var_2E0], rax jmp short $+2 loc_DE24F: mov rax, [rsp+2E8h+var_2E0] mov [rsp+2E8h+var_10], rax lea rdi, [rsp+2E8h+var_258] call _ZN3fmt3v1019basic_memory_bufferIcLm500ESaIcEED2Ev; fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::~basic_memory_buffer() jmp short loc_DE2AB mov rcx, rax mov eax, edx mov [rsp+arg_78], rcx mov [rsp+arg_74], eax lea rdi, [rsp+arg_87] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_DE2BB mov rcx, rax mov eax, edx mov [rsp+arg_78], rcx mov [rsp+arg_74], eax lea rdi, [rsp+arg_88] call _ZN3fmt3v1019basic_memory_bufferIcLm500ESaIcEED2Ev; fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::~basic_memory_buffer() jmp short loc_DE2BB loc_DE2AB: mov rax, [rsp+2E8h+var_10] add rsp, 2E8h retn loc_DE2BB: mov rdi, [rsp+arg_78] call __Unwind_Resume
long long fmt::v10::detail::write_significand<fmt::v10::appender,char,char const*,fmt::v10::detail::digit_grouping<char>>( long long a1, long long a2, int a3, int a4, char a5, long long a6) { long long v6; // rdx long long v7; // rax const char *v8; // rsi long long v9; // r8 long long v10; // r9 long long v12; // [rsp+18h] [rbp-2D0h] long long v13; // [rsp+20h] [rbp-2C8h] unsigned int v14; // [rsp+2Ch] [rbp-2BCh] long long v15[2]; // [rsp+50h] [rbp-298h] BYREF long long v16; // [rsp+60h] [rbp-288h] long long v17; // [rsp+68h] [rbp-280h] long long v18[3]; // [rsp+70h] [rbp-278h] BYREF char v19; // [rsp+8Fh] [rbp-259h] BYREF long long v20; // [rsp+90h] [rbp-258h] BYREF long long v21; // [rsp+98h] [rbp-250h] long long v22; // [rsp+A0h] [rbp-248h] long long v23; // [rsp+2A8h] [rbp-40h] long long v24; // [rsp+2B0h] [rbp-38h] char v25; // [rsp+2BFh] [rbp-29h] int v26; // [rsp+2C0h] [rbp-28h] int v27; // [rsp+2C4h] [rbp-24h] long long v28; // [rsp+2C8h] [rbp-20h] long long v29; // [rsp+2D0h] [rbp-18h] long long v30; // [rsp+2D8h] [rbp-10h] long long *v31; // [rsp+2E0h] [rbp-8h] v29 = a1; v28 = a2; v27 = a3; v26 = a4; v25 = a5; v24 = a6; if ( fmt::v10::detail::digit_grouping<char>::has_separator(a6) ) { std::allocator<char>::allocator(&v19, a2, v6); fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::basic_memory_buffer(&v20, (long long)&v19); std::allocator<char>::~allocator(&v19, &v19); ZN3fmt3v108appenderCI2St20back_insert_iteratorINS0_6detail6bufferIcEEEERS5_((long long)v18, (long long)&v20); v17 = fmt::v10::detail::write_significand<fmt::v10::appender,char>(v18[0], v28, v27, v26, v25); v12 = v24; v16 = v29; v13 = fmt::v10::detail::buffer<char>::data((long long)&v20); v14 = fmt::v10::detail::to_unsigned<int>(v26); fmt::v10::basic_string_view<char>::basic_string_view(v15, v13, v14); fmt::v10::detail::digit_grouping<char>::apply<fmt::v10::appender,char>(v12, v16, v15[0], v15[1]); v7 = fmt::v10::detail::buffer<char>::data((long long)&v20); v31 = &v20; v8 = (const char *)(v22 + v21); v30 = fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>(v26 + v7, v22 + v21, v29, v26, v9, v10); fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::~basic_memory_buffer((long long)&v20, v8); } else { v23 = v29; return fmt::v10::detail::write_significand<fmt::v10::appender,char>(v29, v28, v27, v26, v25); } return v30; }
write_significand<fmt::v10::appender,char,char_const*,fmt::v10::detail::digit_grouping<char>>: SUB RSP,0x2e8 MOV AL,R8B MOV qword ptr [RSP + 0x2d0],RDI MOV qword ptr [RSP + 0x2c8],RSI MOV dword ptr [RSP + 0x2c4],EDX MOV dword ptr [RSP + 0x2c0],ECX MOV byte ptr [RSP + 0x2bf],AL MOV qword ptr [RSP + 0x2b0],R9 MOV RDI,qword ptr [RSP + 0x2b0] CALL 0x001d46f0 TEST AL,0x1 JNZ 0x001de0f3 MOV RAX,qword ptr [RSP + 0x2d0] MOV qword ptr [RSP + 0x2a8],RAX MOV RSI,qword ptr [RSP + 0x2c8] MOV EDX,dword ptr [RSP + 0x2c4] MOV ECX,dword ptr [RSP + 0x2c0] MOV AL,byte ptr [RSP + 0x2bf] MOV RDI,qword ptr [RSP + 0x2a8] MOVSX R8D,AL CALL 0x001dd650 MOV qword ptr [RSP + 0x2d8],RAX JMP 0x001de2ab LAB_001de0f3: LEA RDI,[RSP + 0x8f] MOV qword ptr [RSP + 0x38],RDI CALL 0x00115de0 MOV RSI,qword ptr [RSP + 0x38] LAB_001de10a: LEA RDI,[RSP + 0x90] CALL 0x001c7960 JMP 0x001de119 LAB_001de119: LEA RDI,[RSP + 0x8f] CALL 0x001157f0 LAB_001de126: LEA RDI,[RSP + 0x70] LEA RSI,[RSP + 0x90] CALL 0x00123fb0 JMP 0x001de13a LAB_001de13a: MOV RSI,qword ptr [RSP + 0x2c8] MOV EDX,dword ptr [RSP + 0x2c4] MOV ECX,dword ptr [RSP + 0x2c0] MOVSX R8D,byte ptr [RSP + 0x2bf] MOV RDI,qword ptr [RSP + 0x70] CALL 0x001dd650 MOV qword ptr [RSP + 0x30],RAX JMP 0x001de16a LAB_001de16a: MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x2b0] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x2d0] MOV qword ptr [RSP + 0x60],RAX LEA RDI,[RSP + 0x90] CALL 0x001243d0 MOV qword ptr [RSP + 0x20],RAX MOV EDI,dword ptr [RSP + 0x2c0] CALL 0x001c7930 MOV dword ptr [RSP + 0x2c],EAX JMP 0x001de1b2 LAB_001de1b2: MOV RSI,qword ptr [RSP + 0x20] MOV EAX,dword ptr [RSP + 0x2c] MOV EAX,EAX MOV EDX,EAX LEA RDI,[RSP + 0x50] CALL 0x001243f0 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x50] MOV RCX,qword ptr [RSP + 0x58] CALL 0x001d4760 MOV qword ptr [RSP + 0x10],RAX JMP 0x001de1e9 LAB_001de1e9: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x48],RAX LEA RDI,[RSP + 0x90] MOV qword ptr [RSP],RDI CALL 0x001243d0 MOV RDI,RAX MOV RAX,qword ptr [RSP] MOVSXD RCX,dword ptr [RSP + 0x2c0] ADD RDI,RCX MOV qword ptr [RSP + 0x2e0],RAX MOV RAX,qword ptr [RSP + 0x2e0] MOV RSI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x10] ADD RSI,RAX MOV RAX,qword ptr [RSP + 0x2d0] MOV qword ptr [RSP + 0x40],RAX MOV RDX,qword ptr [RSP + 0x40] CALL 0x001cd850 LAB_001de248: MOV qword ptr [RSP + 0x8],RAX JMP 0x001de24f LAB_001de24f: MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x2d8],RAX LEA RDI,[RSP + 0x90] CALL 0x001c79c0 JMP 0x001de2ab LAB_001de2ab: MOV RAX,qword ptr [RSP + 0x2d8] ADD RSP,0x2e8 RET
/* fmt::v10::appender fmt::v10::detail::write_significand<fmt::v10::appender, char, char const*, fmt::v10::detail::digit_grouping<char> >(fmt::v10::appender, char const*, int, int, char, fmt::v10::detail::digit_grouping<char> const&) */ int8 fmt::v10::detail:: write_significand<fmt::v10::appender,char,char_const*,fmt::v10::detail::digit_grouping<char>> (int8 param_1,int8 param_2,int4 param_3,int param_4,char param_5, digit_grouping<char> *param_6) { digit_grouping<char> *pdVar1; uint uVar2; ulong uVar3; char *pcVar4; long lVar5; int8 local_298; int8 local_290; int8 local_288; int8 local_280; int8 local_278 [3]; allocator<char> local_259; allocator local_258 [8]; long local_250; long local_248; int8 local_40; digit_grouping<char> *local_38; char local_29; int local_28; int4 local_24; int8 local_20; int8 local_18; int8 local_10; buffer<char> *local_8; local_38 = param_6; local_29 = param_5; local_28 = param_4; local_24 = param_3; local_20 = param_2; local_18 = param_1; uVar3 = digit_grouping<char>::has_separator(param_6); if ((uVar3 & 1) == 0) { local_40 = local_18; local_10 = write_significand<fmt::v10::appender,char> (local_18,local_20,local_24,local_28,(int)local_29); } else { std::allocator<char>::allocator(); /* try { // try from 001de10a to 001de116 has its CatchHandler @ 001de26b */ basic_memory_buffer<char,500ul,std::allocator<char>>::basic_memory_buffer(local_258); std::allocator<char>::~allocator(&local_259); /* try { // try from 001de126 to 001de247 has its CatchHandler @ 001de28b */ appender::back_insert_iterator((appender *)local_278,(buffer *)local_258); local_280 = write_significand<fmt::v10::appender,char> (local_278[0],local_20,local_24,local_28,(int)local_29); pdVar1 = local_38; local_288 = local_18; pcVar4 = (char *)buffer<char>::data((buffer<char> *)local_258); uVar2 = to_unsigned<int>(local_28); basic_string_view<char>::basic_string_view ((basic_string_view<char> *)&local_298,pcVar4,(ulong)uVar2); digit_grouping<char>::apply<fmt::v10::appender,char>(pdVar1,local_288,local_298,local_290); lVar5 = buffer<char>::data((buffer<char> *)local_258); local_8 = (buffer<char> *)local_258; local_10 = copy_str_noinline<char,char*,fmt::v10::appender> (lVar5 + local_28,local_250 + local_248,local_18); basic_memory_buffer<char,500ul,std::allocator<char>>::~basic_memory_buffer ((basic_memory_buffer<char,500ul,std::allocator<char>> *)local_258); } return local_10; }
44,029
release_wrlock
eloqsql/storage/maria/ma_pagecache.c
static void release_wrlock(PAGECACHE_BLOCK_LINK *block, my_bool read_lock) { DBUG_ENTER("release_wrlock"); PCBLOCK_INFO(block); DBUG_ASSERT(block->wlocks > 0); DBUG_ASSERT(block->rlocks == 0); DBUG_ASSERT(block->pins > 0); if (read_lock) block->rlocks_queue++; if (block->wlocks == 1) { block->rlocks= block->rlocks_queue; block->rlocks_queue= 0; } block->wlocks--; if (block->wlocks > 0) DBUG_VOID_RETURN; /* Multiple write locked */ DBUG_PRINT("info", ("WR lock reset, block %p", block)); /* release all threads waiting for read lock or one waiting for write */ if (block->wqueue[COND_FOR_WRLOCK].last_thread) wqueue_release_one_locktype_from_queue(&block->wqueue[COND_FOR_WRLOCK]); PCBLOCK_INFO(block); DBUG_VOID_RETURN; }
O0
c
release_wrlock: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movb %sil, %al movq %rdi, -0x8(%rbp) movb %al, -0x9(%rbp) jmp 0x427e4 jmp 0x427e6 jmp 0x427e8 jmp 0x427ea jmp 0x427ec jmp 0x427ee jmp 0x427f0 cmpb $0x0, -0x9(%rbp) je 0x42803 movq -0x8(%rbp), %rax movl 0x70(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x70(%rax) movq -0x8(%rbp), %rax cmpl $0x1, 0x68(%rax) jne 0x42826 movq -0x8(%rbp), %rax movl 0x70(%rax), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x6c(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x70(%rax) movq -0x8(%rbp), %rax movl 0x68(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x68(%rax) movq -0x8(%rbp), %rax cmpl $0x0, 0x68(%rax) jbe 0x42841 jmp 0x4283f jmp 0x42869 jmp 0x42843 jmp 0x42845 movq -0x8(%rbp), %rax cmpq $0x0, 0x58(%rax) je 0x42861 movq -0x8(%rbp), %rdi addq $0x48, %rdi addq $0x10, %rdi callq 0x1088a0 jmp 0x42863 jmp 0x42865 jmp 0x42867 jmp 0x42869 addq $0x10, %rsp popq %rbp retq nop
release_wrlock: push rbp mov rbp, rsp sub rsp, 10h mov al, sil mov [rbp+var_8], rdi mov [rbp+var_9], al jmp short $+2 loc_427E4: jmp short $+2 loc_427E6: jmp short $+2 loc_427E8: jmp short $+2 loc_427EA: jmp short $+2 loc_427EC: jmp short $+2 loc_427EE: jmp short $+2 loc_427F0: cmp [rbp+var_9], 0 jz short loc_42803 mov rax, [rbp+var_8] mov ecx, [rax+70h] add ecx, 1 mov [rax+70h], ecx loc_42803: mov rax, [rbp+var_8] cmp dword ptr [rax+68h], 1 jnz short loc_42826 mov rax, [rbp+var_8] mov ecx, [rax+70h] mov rax, [rbp+var_8] mov [rax+6Ch], ecx mov rax, [rbp+var_8] mov dword ptr [rax+70h], 0 loc_42826: mov rax, [rbp+var_8] mov ecx, [rax+68h] add ecx, 0FFFFFFFFh mov [rax+68h], ecx mov rax, [rbp+var_8] cmp dword ptr [rax+68h], 0 jbe short loc_42841 jmp short $+2 loc_4283F: jmp short loc_42869 loc_42841: jmp short $+2 loc_42843: jmp short $+2 loc_42845: mov rax, [rbp+var_8] cmp qword ptr [rax+58h], 0 jz short loc_42861 mov rdi, [rbp+var_8] add rdi, 48h ; 'H' add rdi, 10h call wqueue_release_one_locktype_from_queue loc_42861: jmp short $+2 loc_42863: jmp short $+2 loc_42865: jmp short $+2 loc_42867: jmp short $+2 loc_42869: add rsp, 10h pop rbp retn
long long release_wrlock(long long a1, char a2) { long long result; // rax if ( a2 ) ++*(_DWORD *)(a1 + 112); if ( *(_DWORD *)(a1 + 104) == 1 ) { *(_DWORD *)(a1 + 108) = *(_DWORD *)(a1 + 112); *(_DWORD *)(a1 + 112) = 0; } --*(_DWORD *)(a1 + 104); result = a1; if ( !*(_DWORD *)(a1 + 104) ) { result = a1; if ( *(_QWORD *)(a1 + 88) ) return wqueue_release_one_locktype_from_queue(a1 + 88); } return result; }
release_wrlock: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV AL,SIL MOV qword ptr [RBP + -0x8],RDI MOV byte ptr [RBP + -0x9],AL JMP 0x001427e4 LAB_001427e4: JMP 0x001427e6 LAB_001427e6: JMP 0x001427e8 LAB_001427e8: JMP 0x001427ea LAB_001427ea: JMP 0x001427ec LAB_001427ec: JMP 0x001427ee LAB_001427ee: JMP 0x001427f0 LAB_001427f0: CMP byte ptr [RBP + -0x9],0x0 JZ 0x00142803 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x70] ADD ECX,0x1 MOV dword ptr [RAX + 0x70],ECX LAB_00142803: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x68],0x1 JNZ 0x00142826 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x70] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x6c],ECX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x70],0x0 LAB_00142826: MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x68] ADD ECX,-0x1 MOV dword ptr [RAX + 0x68],ECX MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x68],0x0 JBE 0x00142841 JMP 0x0014283f LAB_0014283f: JMP 0x00142869 LAB_00142841: JMP 0x00142843 LAB_00142843: JMP 0x00142845 LAB_00142845: MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x58],0x0 JZ 0x00142861 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x48 ADD RDI,0x10 CALL 0x002088a0 LAB_00142861: JMP 0x00142863 LAB_00142863: JMP 0x00142865 LAB_00142865: JMP 0x00142867 LAB_00142867: JMP 0x00142869 LAB_00142869: ADD RSP,0x10 POP RBP RET
void release_wrlock(long param_1,char param_2) { if (param_2 != '\0') { *(int *)(param_1 + 0x70) = *(int *)(param_1 + 0x70) + 1; } if (*(int *)(param_1 + 0x68) == 1) { *(int4 *)(param_1 + 0x6c) = *(int4 *)(param_1 + 0x70); *(int4 *)(param_1 + 0x70) = 0; } *(int *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + -1; if ((*(int *)(param_1 + 0x68) == 0) && (*(long *)(param_1 + 0x58) != 0)) { wqueue_release_one_locktype_from_queue(param_1 + 0x58); } return; }
44,030
google::protobuf::SourceCodeInfo_Location::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
void SourceCodeInfo_Location::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast<SourceCodeInfo_Location*>(&to_msg); auto& from = static_cast<const SourceCodeInfo_Location&>(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo.Location) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_impl_.path_.MergeFrom(from._impl_.path_); _this->_impl_.span_.MergeFrom(from._impl_.span_); _this->_impl_.leading_detached_comments_.MergeFrom(from._impl_.leading_detached_comments_); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _this->_internal_set_leading_comments(from._internal_leading_comments()); } if (cached_has_bits & 0x00000002u) { _this->_internal_set_trailing_comments(from._internal_trailing_comments()); } } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); }
O3
cpp
google::protobuf::SourceCodeInfo_Location::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movl 0x18(%rsi), %esi testl %esi, %esi je 0xf8dc7 leaq 0x18(%rbx), %rdi movslq 0x18(%rbx), %r15 addl %r15d, %esi callq 0x7f560 movl 0x18(%r14), %eax addl %eax, 0x18(%rbx) shlq $0x2, %r15 addq 0x20(%rbx), %r15 movq 0x20(%r14), %rsi movslq 0x18(%r14), %rdx shlq $0x2, %rdx movq %r15, %rdi callq 0x2ceb0 movl 0x30(%r14), %esi testl %esi, %esi je 0xf8e02 leaq 0x30(%rbx), %rdi movslq 0x30(%rbx), %r15 addl %r15d, %esi callq 0x7f560 movl 0x30(%r14), %eax addl %eax, 0x30(%rbx) shlq $0x2, %r15 addq 0x38(%rbx), %r15 movq 0x38(%r14), %rsi movslq 0x30(%r14), %rdx shlq $0x2, %rdx movq %r15, %rdi callq 0x2ceb0 cmpl $0x0, 0x50(%r14) je 0xf8e1f leaq 0x48(%r14), %rsi leaq 0x48(%rbx), %rdi leaq -0x83834(%rip), %rdx # 0x755e4 xorl %ecx, %ecx callq 0x74546 movl 0x10(%r14), %ebp testb $0x3, %bpl je 0xf8e7d testb $0x1, %bpl je 0xf8e53 movq 0x60(%r14), %rsi andq $-0x4, %rsi orl $0x1, 0x10(%rbx) leaq 0x60(%rbx), %rdi movq 0x8(%rbx), %rax movq %rax, %rdx andq $-0x4, %rdx testb $0x1, %al jne 0xf8eb0 callq 0x786ce testb $0x2, %bpl je 0xf8e7d movq 0x68(%r14), %rsi andq $-0x4, %rsi orl $0x2, 0x10(%rbx) leaq 0x68(%rbx), %rdi movq 0x8(%rbx), %rax movq %rax, %rdx andq $-0x4, %rdx testb $0x1, %al jne 0xf8eb5 callq 0x786ce movq 0x8(%r14), %rsi testb $0x1, %sil jne 0xf8e92 addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq addq $0x8, %rbx andq $-0x4, %rsi addq $0x8, %rsi movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x734be movq (%rdx), %rdx jmp 0xf8e4e movq (%rdx), %rdx jmp 0xf8e78
_ZN6google8protobuf23SourceCodeInfo_Location9MergeImplERNS0_7MessageERKS2_: push rbp push r15 push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov esi, [rsi+18h] test esi, esi jz short loc_F8DC7 lea rdi, [rbx+18h] movsxd r15, dword ptr [rbx+18h] add esi, r15d call _ZN6google8protobuf13RepeatedFieldIiE7ReserveEi; google::protobuf::RepeatedField<int>::Reserve(int) mov eax, [r14+18h] add [rbx+18h], eax shl r15, 2 add r15, [rbx+20h] mov rsi, [r14+20h] movsxd rdx, dword ptr [r14+18h] shl rdx, 2 mov rdi, r15 call _memcpy loc_F8DC7: mov esi, [r14+30h] test esi, esi jz short loc_F8E02 lea rdi, [rbx+30h] movsxd r15, dword ptr [rbx+30h] add esi, r15d call _ZN6google8protobuf13RepeatedFieldIiE7ReserveEi; google::protobuf::RepeatedField<int>::Reserve(int) mov eax, [r14+30h] add [rbx+30h], eax shl r15, 2 add r15, [rbx+38h] mov rsi, [r14+38h] movsxd rdx, dword ptr [r14+30h] shl rdx, 2 mov rdi, r15 call _memcpy loc_F8E02: cmp dword ptr [r14+50h], 0 jz short loc_F8E1F lea rsi, [r14+48h] lea rdi, [rbx+48h] lea rdx, _ZN6google8protobuf8internal20RepeatedPtrFieldBase18MergeFromInnerLoopINS0_16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE11TypeHandlerEEEvPPvSE_ii; google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInnerLoop<google::protobuf::RepeatedPtrField<std::string>::TypeHandler>(void **,void **,int,int) xor ecx, ecx call _ZN6google8protobuf8internal20RepeatedPtrFieldBase17MergeFromInternalERKS2_MS2_FvPPvS6_iiE; google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInternal(google::protobuf::internal::RepeatedPtrFieldBase const&,void (google::protobuf::internal::RepeatedPtrFieldBase::*)(void **,void **,int,int)) loc_F8E1F: mov ebp, [r14+10h] test bpl, 3 jz short loc_F8E7D test bpl, 1 jz short loc_F8E53 mov rsi, [r14+60h] and rsi, 0FFFFFFFFFFFFFFFCh or dword ptr [rbx+10h], 1 lea rdi, [rbx+60h] mov rax, [rbx+8] mov rdx, rax and rdx, 0FFFFFFFFFFFFFFFCh test al, 1 jnz short loc_F8EB0 loc_F8E4E: call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) loc_F8E53: test bpl, 2 jz short loc_F8E7D mov rsi, [r14+68h] and rsi, 0FFFFFFFFFFFFFFFCh or dword ptr [rbx+10h], 2 lea rdi, [rbx+68h] mov rax, [rbx+8] mov rdx, rax and rdx, 0FFFFFFFFFFFFFFFCh test al, 1 jnz short loc_F8EB5 loc_F8E78: call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) loc_F8E7D: mov rsi, [r14+8] test sil, 1 jnz short loc_F8E92 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_F8E92: add rbx, 8 and rsi, 0FFFFFFFFFFFFFFFCh add rsi, 8 mov rdi, rbx add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&) loc_F8EB0: mov rdx, [rdx] jmp short loc_F8E4E loc_F8EB5: mov rdx, [rdx] jmp short loc_F8E78
long long google::protobuf::SourceCodeInfo_Location::MergeImpl( google::protobuf::SourceCodeInfo_Location *this, google::protobuf::Message *a2, const google::protobuf::Message *a3) { int v4; // esi long long v5; // r15 long long result; // rax int v7; // esi long long v8; // r15 int v9; // ebp unsigned long long v10; // rsi google::protobuf::Arena *v11; // rdx unsigned long long v12; // rsi google::protobuf::Arena *v13; // rdx long long v14; // rsi v4 = *((_DWORD *)a2 + 6); if ( v4 ) { v5 = *((int *)this + 6); google::protobuf::RepeatedField<int>::Reserve((int *)this + 6, v5 + v4); *((_DWORD *)this + 6) += *((_DWORD *)a2 + 6); result = memcpy(*((_QWORD *)this + 4) + 4 * v5); } v7 = *((_DWORD *)a2 + 12); if ( v7 ) { v8 = *((int *)this + 12); google::protobuf::RepeatedField<int>::Reserve((int *)this + 12, v8 + v7); *((_DWORD *)this + 12) += *((_DWORD *)a2 + 12); result = memcpy(*((_QWORD *)this + 7) + 4 * v8); } if ( *((_DWORD *)a2 + 20) ) result = (long long)google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInternal( (long long)this + 72, (long long)a2 + 72, (char *)google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInnerLoop<google::protobuf::RepeatedPtrField<std::string>::TypeHandler>, 0LL); v9 = *((_DWORD *)a2 + 4); if ( (v9 & 3) != 0 ) { if ( (v9 & 1) != 0 ) { v10 = *((_QWORD *)a2 + 12) & 0xFFFFFFFFFFFFFFFCLL; *((_DWORD *)this + 4) |= 1u; v11 = (google::protobuf::Arena *)(*((_QWORD *)this + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)this + 1) & 1) != 0 ) v11 = *(google::protobuf::Arena **)v11; result = google::protobuf::internal::ArenaStringPtr::Set((long long *)this + 12, v10, v11); } if ( (v9 & 2) != 0 ) { v12 = *((_QWORD *)a2 + 13) & 0xFFFFFFFFFFFFFFFCLL; *((_DWORD *)this + 4) |= 2u; v13 = (google::protobuf::Arena *)(*((_QWORD *)this + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)this + 1) & 1) != 0 ) v13 = *(google::protobuf::Arena **)v13; result = google::protobuf::internal::ArenaStringPtr::Set((long long *)this + 13, v12, v13); } } v14 = *((_QWORD *)a2 + 1); if ( (v14 & 1) != 0 ) return google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>( (long long *)this + 1, (const google::protobuf::UnknownFieldSet *)((v14 & 0xFFFFFFFFFFFFFFFCLL) + 8)); return result; }
MergeImpl: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV ESI,dword ptr [RSI + 0x18] TEST ESI,ESI JZ 0x001f8dc7 LEA RDI,[RBX + 0x18] MOVSXD R15,dword ptr [RBX + 0x18] ADD ESI,R15D CALL 0x0017f560 MOV EAX,dword ptr [R14 + 0x18] ADD dword ptr [RBX + 0x18],EAX SHL R15,0x2 ADD R15,qword ptr [RBX + 0x20] MOV RSI,qword ptr [R14 + 0x20] MOVSXD RDX,dword ptr [R14 + 0x18] SHL RDX,0x2 MOV RDI,R15 CALL 0x0012ceb0 LAB_001f8dc7: MOV ESI,dword ptr [R14 + 0x30] TEST ESI,ESI JZ 0x001f8e02 LEA RDI,[RBX + 0x30] MOVSXD R15,dword ptr [RBX + 0x30] ADD ESI,R15D CALL 0x0017f560 MOV EAX,dword ptr [R14 + 0x30] ADD dword ptr [RBX + 0x30],EAX SHL R15,0x2 ADD R15,qword ptr [RBX + 0x38] MOV RSI,qword ptr [R14 + 0x38] MOVSXD RDX,dword ptr [R14 + 0x30] SHL RDX,0x2 MOV RDI,R15 CALL 0x0012ceb0 LAB_001f8e02: CMP dword ptr [R14 + 0x50],0x0 JZ 0x001f8e1f LEA RSI,[R14 + 0x48] LEA RDI,[RBX + 0x48] LEA RDX,[0x1755e4] XOR ECX,ECX CALL 0x00174546 LAB_001f8e1f: MOV EBP,dword ptr [R14 + 0x10] TEST BPL,0x3 JZ 0x001f8e7d TEST BPL,0x1 JZ 0x001f8e53 MOV RSI,qword ptr [R14 + 0x60] AND RSI,-0x4 OR dword ptr [RBX + 0x10],0x1 LEA RDI,[RBX + 0x60] MOV RAX,qword ptr [RBX + 0x8] MOV RDX,RAX AND RDX,-0x4 TEST AL,0x1 JNZ 0x001f8eb0 LAB_001f8e4e: CALL 0x001786ce LAB_001f8e53: TEST BPL,0x2 JZ 0x001f8e7d MOV RSI,qword ptr [R14 + 0x68] AND RSI,-0x4 OR dword ptr [RBX + 0x10],0x2 LEA RDI,[RBX + 0x68] MOV RAX,qword ptr [RBX + 0x8] MOV RDX,RAX AND RDX,-0x4 TEST AL,0x1 JNZ 0x001f8eb5 LAB_001f8e78: CALL 0x001786ce LAB_001f8e7d: MOV RSI,qword ptr [R14 + 0x8] TEST SIL,0x1 JNZ 0x001f8e92 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_001f8e92: ADD RBX,0x8 AND RSI,-0x4 ADD RSI,0x8 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x001734be LAB_001f8eb0: MOV RDX,qword ptr [RDX] JMP 0x001f8e4e LAB_001f8eb5: MOV RDX,qword ptr [RDX] JMP 0x001f8e78
/* google::protobuf::SourceCodeInfo_Location::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&) */ void google::protobuf::SourceCodeInfo_Location::MergeImpl(Message *param_1,Message *param_2) { int iVar1; uint uVar2; ulong uVar3; Arena *pAVar4; if (*(int *)(param_2 + 0x18) != 0) { iVar1 = *(int *)(param_1 + 0x18); RepeatedField<int>::Reserve ((RepeatedField<int> *)(param_1 + 0x18),*(int *)(param_2 + 0x18) + iVar1); *(int *)(param_1 + 0x18) = *(int *)(param_1 + 0x18) + *(int *)(param_2 + 0x18); memcpy((void *)((long)iVar1 * 4 + *(long *)(param_1 + 0x20)),*(void **)(param_2 + 0x20), (long)*(int *)(param_2 + 0x18) << 2); } if (*(int *)(param_2 + 0x30) != 0) { iVar1 = *(int *)(param_1 + 0x30); RepeatedField<int>::Reserve ((RepeatedField<int> *)(param_1 + 0x30),*(int *)(param_2 + 0x30) + iVar1); *(int *)(param_1 + 0x30) = *(int *)(param_1 + 0x30) + *(int *)(param_2 + 0x30); memcpy((void *)((long)iVar1 * 4 + *(long *)(param_1 + 0x38)),*(void **)(param_2 + 0x38), (long)*(int *)(param_2 + 0x30) << 2); } if (*(int *)(param_2 + 0x50) != 0) { internal::RepeatedPtrFieldBase::MergeFromInternal ((RepeatedPtrFieldBase *)(param_1 + 0x48), (_func_void_void_ptr_ptr_void_ptr_ptr_int_int *)(param_2 + 0x48)); } uVar2 = *(uint *)(param_2 + 0x10); if ((uVar2 & 3) != 0) { if ((uVar2 & 1) != 0) { uVar3 = *(ulong *)(param_2 + 0x60); *(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 1; pAVar4 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar4 = *(Arena **)pAVar4; } internal::ArenaStringPtr::Set ((ArenaStringPtr *)(param_1 + 0x60),(string *)(uVar3 & 0xfffffffffffffffc),pAVar4); } if ((uVar2 & 2) != 0) { uVar3 = *(ulong *)(param_2 + 0x68); *(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 2; pAVar4 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar4 = *(Arena **)pAVar4; } internal::ArenaStringPtr::Set ((ArenaStringPtr *)(param_1 + 0x68),(string *)(uVar3 & 0xfffffffffffffffc),pAVar4); } } if ((*(ulong *)(param_2 + 8) & 1) == 0) { return; } internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet> ((InternalMetadata *)(param_1 + 8), (UnknownFieldSet *)((*(ulong *)(param_2 + 8) & 0xfffffffffffffffc) + 8)); return; }
44,031
ma_check_if_right_bitmap_type
eloqsql/storage/maria/ma_bitmap.c
my_bool _ma_check_if_right_bitmap_type(MARIA_HA *info, enum en_page_type page_type, pgcache_page_no_t page, uint *bitmap_pattern) { if ((*bitmap_pattern= _ma_bitmap_get_page_bits(info, &info->s->bitmap, page)) > 7) return 1; /* Couldn't read page */ switch (page_type) { case HEAD_PAGE: return *bitmap_pattern < 1 || *bitmap_pattern > 4; case TAIL_PAGE: return *bitmap_pattern < 5; case BLOB_PAGE: return *bitmap_pattern != 7; default: break; } DBUG_ASSERT(0); return 1; }
O3
c
ma_check_if_right_bitmap_type: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rcx, %r14 movl %esi, %ebx movl $0xa10, %esi # imm = 0xA10 addq (%rdi), %rsi callq 0x53e89 movl %eax, %ecx movl %eax, (%r14) movb $0x1, %al cmpl $0x7, %ecx ja 0x5492c cmpl $0x3, %ebx je 0x54926 cmpl $0x2, %ebx je 0x5491e cmpl $0x1, %ebx jne 0x5492c addl $-0x5, %ecx cmpl $-0x4, %ecx jmp 0x54921 cmpl $0x5, %ecx setb %al jmp 0x5492c cmpl $0x7, %ecx setne %al popq %rbx popq %r14 popq %rbp retq
_ma_check_if_right_bitmap_type: push rbp mov rbp, rsp push r14 push rbx mov r14, rcx mov ebx, esi mov esi, 0A10h add rsi, [rdi] call _ma_bitmap_get_page_bits mov ecx, eax mov [r14], eax mov al, 1 cmp ecx, 7 ja short loc_5492C cmp ebx, 3 jz short loc_54926 cmp ebx, 2 jz short loc_5491E cmp ebx, 1 jnz short loc_5492C add ecx, 0FFFFFFFBh cmp ecx, 0FFFFFFFCh jmp short loc_54921 loc_5491E: cmp ecx, 5 loc_54921: setb al jmp short loc_5492C loc_54926: cmp ecx, 7 setnz al loc_5492C: pop rbx pop r14 pop rbp retn
char ma_check_if_right_bitmap_type(long long *a1, int a2, unsigned long long a3, unsigned int *a4) { unsigned int page_bits; // ecx char result; // al page_bits = ma_bitmap_get_page_bits(a1, (_QWORD *)(*a1 + 2576), a3); *a4 = page_bits; result = 1; if ( page_bits <= 7 ) { switch ( a2 ) { case 3: return page_bits != 7; case 2: return page_bits < 5; case 1: return page_bits - 5 < 0xFFFFFFFC; default: return result; } } return result; }
_ma_check_if_right_bitmap_type: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RCX MOV EBX,ESI MOV ESI,0xa10 ADD RSI,qword ptr [RDI] CALL 0x00153e89 MOV ECX,EAX MOV dword ptr [R14],EAX MOV AL,0x1 CMP ECX,0x7 JA 0x0015492c CMP EBX,0x3 JZ 0x00154926 CMP EBX,0x2 JZ 0x0015491e CMP EBX,0x1 JNZ 0x0015492c ADD ECX,-0x5 CMP ECX,-0x4 JMP 0x00154921 LAB_0015491e: CMP ECX,0x5 LAB_00154921: SETC AL JMP 0x0015492c LAB_00154926: CMP ECX,0x7 SETNZ AL LAB_0015492c: POP RBX POP R14 POP RBP RET
bool _ma_check_if_right_bitmap_type(long *param_1,int param_2,int8 param_3,uint *param_4) { uint uVar1; bool bVar2; uVar1 = _ma_bitmap_get_page_bits(param_1,*param_1 + 0xa10); *param_4 = uVar1; bVar2 = true; if (uVar1 < 8) { if (param_2 == 3) { bVar2 = uVar1 != 7; } else if (param_2 == 2) { bVar2 = uVar1 < 5; } else { if (param_2 != 1) { return true; } bVar2 = uVar1 - 5 < 0xfffffffc; } } return bVar2; }
44,032
ma_check_if_right_bitmap_type
eloqsql/storage/maria/ma_bitmap.c
my_bool _ma_check_if_right_bitmap_type(MARIA_HA *info, enum en_page_type page_type, pgcache_page_no_t page, uint *bitmap_pattern) { if ((*bitmap_pattern= _ma_bitmap_get_page_bits(info, &info->s->bitmap, page)) > 7) return 1; /* Couldn't read page */ switch (page_type) { case HEAD_PAGE: return *bitmap_pattern < 1 || *bitmap_pattern > 4; case TAIL_PAGE: return *bitmap_pattern < 5; case BLOB_PAGE: return *bitmap_pattern != 7; default: break; } DBUG_ASSERT(0); return 1; }
O0
c
ma_check_if_right_bitmap_type: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rax movq (%rax), %rsi addq $0xa10, %rsi # imm = 0xA10 movq -0x20(%rbp), %rdx callq 0x5fce0 movq -0x28(%rbp), %rcx movl %eax, (%rcx) cmpl $0x7, %eax jbe 0x60ba3 movb $0x1, -0x1(%rbp) jmp 0x60c1e movl -0x14(%rbp), %eax movl %eax, -0x2c(%rbp) subl $0x1, %eax je 0x60bc4 jmp 0x60bb0 movl -0x2c(%rbp), %eax subl $0x2, %eax je 0x60bec jmp 0x60bba movl -0x2c(%rbp), %eax subl $0x3, %eax je 0x60c00 jmp 0x60c14 movq -0x28(%rbp), %rcx movb $0x1, %al cmpl $0x1, (%rcx) movb %al, -0x2d(%rbp) jb 0x60bdf movq -0x28(%rbp), %rax cmpl $0x4, (%rax) seta %al movb %al, -0x2d(%rbp) movb -0x2d(%rbp), %al andb $0x1, %al movzbl %al, %eax movb %al, -0x1(%rbp) jmp 0x60c1e movq -0x28(%rbp), %rax cmpl $0x5, (%rax) setb %al andb $0x1, %al movzbl %al, %eax movb %al, -0x1(%rbp) jmp 0x60c1e movq -0x28(%rbp), %rax cmpl $0x7, (%rax) setne %al andb $0x1, %al movzbl %al, %eax movb %al, -0x1(%rbp) jmp 0x60c1e jmp 0x60c16 jmp 0x60c18 jmp 0x60c1a movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
_ma_check_if_right_bitmap_type: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rdi, [rbp+var_10] mov rax, [rbp+var_10] mov rsi, [rax] add rsi, 0A10h mov rdx, [rbp+var_20] call _ma_bitmap_get_page_bits mov rcx, [rbp+var_28] mov [rcx], eax cmp eax, 7 jbe short loc_60BA3 mov [rbp+var_1], 1 jmp short loc_60C1E loc_60BA3: mov eax, [rbp+var_14] mov [rbp+var_2C], eax sub eax, 1 jz short loc_60BC4 jmp short $+2 loc_60BB0: mov eax, [rbp+var_2C] sub eax, 2 jz short loc_60BEC jmp short $+2 loc_60BBA: mov eax, [rbp+var_2C] sub eax, 3 jz short loc_60C00 jmp short loc_60C14 loc_60BC4: mov rcx, [rbp+var_28] mov al, 1 cmp dword ptr [rcx], 1 mov [rbp+var_2D], al jb short loc_60BDF mov rax, [rbp+var_28] cmp dword ptr [rax], 4 setnbe al mov [rbp+var_2D], al loc_60BDF: mov al, [rbp+var_2D] and al, 1 movzx eax, al mov [rbp+var_1], al jmp short loc_60C1E loc_60BEC: mov rax, [rbp+var_28] cmp dword ptr [rax], 5 setb al and al, 1 movzx eax, al mov [rbp+var_1], al jmp short loc_60C1E loc_60C00: mov rax, [rbp+var_28] cmp dword ptr [rax], 7 setnz al and al, 1 movzx eax, al mov [rbp+var_1], al jmp short loc_60C1E loc_60C14: jmp short $+2 loc_60C16: jmp short $+2 loc_60C18: jmp short $+2 loc_60C1A: mov [rbp+var_1], 1 loc_60C1E: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char ma_check_if_right_bitmap_type(_QWORD *a1, int a2, long long a3, unsigned int *a4) { unsigned int page_bits; // eax bool v6; // [rsp+3h] [rbp-2Dh] page_bits = ma_bitmap_get_page_bits((long long)a1, *a1 + 2576LL, a3); *a4 = page_bits; if ( page_bits > 7 ) return 1; if ( a2 == 1 ) { v6 = 1; if ( *a4 ) return *a4 > 4; return v6; } else if ( a2 == 2 ) { return *a4 < 5; } else { return a2 != 3 || *a4 != 7; } }
_ma_check_if_right_bitmap_type: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX] ADD RSI,0xa10 MOV RDX,qword ptr [RBP + -0x20] CALL 0x0015fce0 MOV RCX,qword ptr [RBP + -0x28] MOV dword ptr [RCX],EAX CMP EAX,0x7 JBE 0x00160ba3 MOV byte ptr [RBP + -0x1],0x1 JMP 0x00160c1e LAB_00160ba3: MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x2c],EAX SUB EAX,0x1 JZ 0x00160bc4 JMP 0x00160bb0 LAB_00160bb0: MOV EAX,dword ptr [RBP + -0x2c] SUB EAX,0x2 JZ 0x00160bec JMP 0x00160bba LAB_00160bba: MOV EAX,dword ptr [RBP + -0x2c] SUB EAX,0x3 JZ 0x00160c00 JMP 0x00160c14 LAB_00160bc4: MOV RCX,qword ptr [RBP + -0x28] MOV AL,0x1 CMP dword ptr [RCX],0x1 MOV byte ptr [RBP + -0x2d],AL JC 0x00160bdf MOV RAX,qword ptr [RBP + -0x28] CMP dword ptr [RAX],0x4 SETA AL MOV byte ptr [RBP + -0x2d],AL LAB_00160bdf: MOV AL,byte ptr [RBP + -0x2d] AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x1],AL JMP 0x00160c1e LAB_00160bec: MOV RAX,qword ptr [RBP + -0x28] CMP dword ptr [RAX],0x5 SETC AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x1],AL JMP 0x00160c1e LAB_00160c00: MOV RAX,qword ptr [RBP + -0x28] CMP dword ptr [RAX],0x7 SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x1],AL JMP 0x00160c1e LAB_00160c14: JMP 0x00160c16 LAB_00160c16: JMP 0x00160c18 LAB_00160c18: JMP 0x00160c1a LAB_00160c1a: MOV byte ptr [RBP + -0x1],0x1 LAB_00160c1e: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
bool _ma_check_if_right_bitmap_type(long *param_1,int param_2,int8 param_3,uint *param_4) { uint uVar1; bool local_35; bool local_9; uVar1 = _ma_bitmap_get_page_bits(param_1,*param_1 + 0xa10,param_3); *param_4 = uVar1; if (uVar1 < 8) { if (param_2 == 1) { local_35 = true; if (*param_4 != 0) { local_35 = 4 < *param_4; } local_9 = local_35; } else if (param_2 == 2) { local_9 = *param_4 < 5; } else if (param_2 == 3) { local_9 = *param_4 != 7; } else { local_9 = true; } } else { local_9 = true; } return local_9; }
44,033
my_wc_mb_8bit
eloqsql/strings/ctype-simple.c
int my_wc_mb_8bit(CHARSET_INFO *cs,my_wc_t wc, uchar *str, uchar *end) { MY_UNI_IDX *idx; if (str >= end) return MY_CS_TOOSMALL; for (idx=cs->tab_from_uni; idx->tab ; idx++) { if (idx->from <= wc && idx->to >= wc) { str[0]= idx->tab[wc - idx->from]; return (!str[0] && wc) ? MY_CS_ILUNI : 1; } } return MY_CS_ILUNI; }
O3
c
my_wc_mb_8bit: movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0xb525d pushq %rbp movq %rsp, %rbp movq 0x70(%rdi), %rcx movq 0x8(%rcx), %rdi xorl %eax, %eax testq %rdi, %rdi je 0xb525c addq $0x2, %rcx movzwl -0x2(%rcx), %r9d movq %rsi, %r8 subq %r9, %r8 jb 0xb5237 movzwl (%rcx), %r9d cmpq %rsi, %r9 jae 0xb5246 movq 0x16(%rcx), %rdi addq $0x10, %rcx testq %rdi, %rdi jne 0xb5221 jmp 0xb525c movb (%rdi,%r8), %al movb %al, (%rdx) testb %al, %al setne %al testq %rsi, %rsi sete %cl orb %al, %cl movzbl %cl, %eax popq %rbp retq
my_wc_mb_8bit: mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short locret_B525D push rbp mov rbp, rsp mov rcx, [rdi+70h] mov rdi, [rcx+8] xor eax, eax test rdi, rdi jz short loc_B525C add rcx, 2 loc_B5221: movzx r9d, word ptr [rcx-2] mov r8, rsi sub r8, r9 jb short loc_B5237 movzx r9d, word ptr [rcx] cmp r9, rsi jnb short loc_B5246 loc_B5237: mov rdi, [rcx+16h] add rcx, 10h test rdi, rdi jnz short loc_B5221 jmp short loc_B525C loc_B5246: mov al, [rdi+r8] mov [rdx], al test al, al setnz al test rsi, rsi setz cl or cl, al movzx eax, cl loc_B525C: pop rbp locret_B525D: retn
long long my_wc_mb_8bit(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4) { long long result; // rax long long v5; // rcx long long v6; // rdi unsigned __int16 *i; // rcx unsigned long long v8; // r9 char v9; // al result = 4294967195LL; if ( (unsigned long long)a3 < a4 ) { v5 = *(_QWORD *)(a1 + 112); v6 = *(_QWORD *)(v5 + 8); result = 0LL; if ( v6 ) { for ( i = (unsigned __int16 *)(v5 + 2); ; i += 8 ) { v8 = *(i - 1); if ( a2 >= v8 && *i >= a2 ) break; v6 = *(_QWORD *)(i + 11); if ( !v6 ) return result; } v9 = *(_BYTE *)(v6 + a2 - v8); *a3 = v9; return (v9 != 0) | (unsigned __int8)(a2 == 0); } } return result; }
my_wc_mb_8bit: MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x001b525d PUSH RBP MOV RBP,RSP MOV RCX,qword ptr [RDI + 0x70] MOV RDI,qword ptr [RCX + 0x8] XOR EAX,EAX TEST RDI,RDI JZ 0x001b525c ADD RCX,0x2 LAB_001b5221: MOVZX R9D,word ptr [RCX + -0x2] MOV R8,RSI SUB R8,R9 JC 0x001b5237 MOVZX R9D,word ptr [RCX] CMP R9,RSI JNC 0x001b5246 LAB_001b5237: MOV RDI,qword ptr [RCX + 0x16] ADD RCX,0x10 TEST RDI,RDI JNZ 0x001b5221 JMP 0x001b525c LAB_001b5246: MOV AL,byte ptr [RDI + R8*0x1] MOV byte ptr [RDX],AL TEST AL,AL SETNZ AL TEST RSI,RSI SETZ CL OR CL,AL MOVZX EAX,CL LAB_001b525c: POP RBP LAB_001b525d: RET
ulong my_wc_mb_8bit(long param_1,ulong param_2,char *param_3,char *param_4) { char cVar1; ulong uVar2; ushort *puVar3; long lVar4; uVar2 = 0xffffff9b; if (param_3 < param_4) { lVar4 = *(long *)(*(long *)(param_1 + 0x70) + 8); uVar2 = 0; if (lVar4 != 0) { puVar3 = (ushort *)(*(long *)(param_1 + 0x70) + 2); do { if ((puVar3[-1] <= param_2) && (param_2 <= *puVar3)) { cVar1 = *(char *)(lVar4 + (param_2 - puVar3[-1])); *param_3 = cVar1; return (ulong)(param_2 == 0 || cVar1 != '\0'); } lVar4 = *(long *)(puVar3 + 0xb); puVar3 = puVar3 + 8; } while (lVar4 != 0); } } return uVar2; }
44,034
R3D_HasShadowMap
r3d/src/r3d_lighting.c
bool R3D_HasShadowMap(R3D_Light id) { r3d_get_and_check_light(light, id, false); return light->shadow.map.id != 0; }
O3
c
R3D_HasShadowMap: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movl %edi, %edx testl %edi, %edi je 0xbe82f leaq 0xf146b(%rip), %rax # 0x1afc60 cmpl %edx, 0x168(%rax) jbe 0xbe82f movq 0x128(%rax), %rsi leal -0x1(%rdx), %ecx cmpb $0x1, (%rsi,%rcx) jne 0xbe82f movq 0x108(%rax), %rsi cmpq %rcx, 0x110(%rax) setbe %dil testq %rsi, %rsi sete %r8b orb %dil, %r8b cmpb $0x1, %r8b jne 0xbe84d leaq 0x535ae(%rip), %rsi # 0x111de4 xorl %ebx, %ebx movl $0x5, %edi xorl %eax, %eax callq 0xa9c09 movl %ebx, %eax addq $0x8, %rsp popq %rbx popq %rbp retq imulq 0x120(%rax), %rcx cmpl $0x0, 0x10(%rsi,%rcx) setne %bl jmp 0xbe844
R3D_HasShadowMap: push rbp mov rbp, rsp push rbx push rax mov edx, edi test edi, edi jz short loc_BE82F lea rax, R3D cmp [rax+168h], edx jbe short loc_BE82F mov rsi, [rax+128h] lea ecx, [rdx-1] cmp byte ptr [rsi+rcx], 1 jnz short loc_BE82F mov rsi, [rax+108h] cmp [rax+110h], rcx setbe dil test rsi, rsi setz r8b or r8b, dil cmp r8b, 1 jnz short loc_BE84D loc_BE82F: lea rsi, aLightIdIIsNotV; "Light [ID %i] is not valid" xor ebx, ebx mov edi, 5 xor eax, eax call TraceLog loc_BE844: mov eax, ebx add rsp, 8 pop rbx pop rbp retn loc_BE84D: imul rcx, [rax+120h] cmp dword ptr [rsi+rcx+10h], 0 setnz bl jmp short loc_BE844
long long R3D_HasShadowMap(unsigned int a1) { unsigned int v1; // ebx unsigned long long v2; // rcx long long v3; // rsi if ( a1 && *((_DWORD *)&R3D + 90) > a1 && (v2 = a1 - 1, *(_BYTE *)(*((_QWORD *)&R3D + 37) + v2) == 1) && (v3 = *((_QWORD *)&R3D + 33), *((_QWORD *)&R3D + 34) > v2 && v3 != 0) ) { LOBYTE(v1) = *(_DWORD *)(v3 + *((_QWORD *)&R3D + 36) * v2 + 16) != 0; } else { v1 = 0; TraceLog(5, (long long)"Light [ID %i] is not valid", a1); } return v1; }
R3D_HasShadowMap: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV EDX,EDI TEST EDI,EDI JZ 0x001be82f LEA RAX,[0x2afc60] CMP dword ptr [RAX + 0x168],EDX JBE 0x001be82f MOV RSI,qword ptr [RAX + 0x128] LEA ECX,[RDX + -0x1] CMP byte ptr [RSI + RCX*0x1],0x1 JNZ 0x001be82f MOV RSI,qword ptr [RAX + 0x108] CMP qword ptr [RAX + 0x110],RCX SETBE DIL TEST RSI,RSI SETZ R8B OR R8B,DIL CMP R8B,0x1 JNZ 0x001be84d LAB_001be82f: LEA RSI,[0x211de4] XOR EBX,EBX MOV EDI,0x5 XOR EAX,EAX CALL 0x001a9c09 LAB_001be844: MOV EAX,EBX ADD RSP,0x8 POP RBX POP RBP RET LAB_001be84d: IMUL RCX,qword ptr [RAX + 0x120] CMP dword ptr [RSI + RCX*0x1 + 0x10],0x0 SETNZ BL JMP 0x001be844
ulong R3D_HasShadowMap(uint param_1) { ulong uVar1; int8 unaff_RBX; if (((param_1 != 0) && (param_1 < DAT_002afdc8)) && (uVar1 = (ulong)(param_1 - 1), *(char *)(DAT_002afd88 + uVar1) == '\x01')) { if (DAT_002afd68 != 0 && uVar1 < DAT_002afd70) { uVar1 = CONCAT71((int7)((ulong)unaff_RBX >> 8), *(int *)(DAT_002afd68 + 0x10 + uVar1 * DAT_002afd80) != 0); goto LAB_001be844; } } uVar1 = 0; TraceLog(5,"Light [ID %i] is not valid"); LAB_001be844: return uVar1 & 0xffffffff; }
44,035
ImageColorReplace
csit-sgu[P]mit-game-2025-team-tyler/Libraries/raylib/src/rtextures.c
void ImageColorReplace(Image *image, Color color, Color replace) { // Security check to avoid program crash if ((image->data == NULL) || (image->width == 0) || (image->height == 0)) return; Color *pixels = LoadImageColors(*image); for (int i = 0; i < image->width*image->height; i++) { if ((pixels[i].r == color.r) && (pixels[i].g == color.g) && (pixels[i].b == color.b) && (pixels[i].a == color.a)) { pixels[i].r = replace.r; pixels[i].g = replace.g; pixels[i].b = replace.b; pixels[i].a = replace.a; } } int format = image->format; RL_FREE(image->data); image->data = pixels; image->format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8; ImageFormat(image, format); }
O2
c
ImageColorReplace: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp cmpq $0x0, (%rdi) je 0x84731 movq %rdi, %rbx cmpl $0x0, 0x8(%rdi) je 0x84731 cmpl $0x0, 0xc(%rbx) je 0x84731 movl %esi, %r14d movl %esi, %r12d shrl $0x8, %r12d movl %esi, %r13d shrl $0x10, %r13d movl %esi, %eax shrl $0x18, %eax movl %eax, 0x20(%rsp) movl %edx, %eax shrl $0x8, %eax movl %eax, 0x1c(%rsp) movl %edx, %r15d shrl $0x10, %r15d movl %edx, %ebp shrl $0x18, %ebp movq 0x10(%rbx), %rax movq %rax, 0x10(%rsp) movups (%rbx), %xmm0 movups %xmm0, (%rsp) movl %edx, 0x24(%rsp) callq 0x7e5ef movl %ebp, %r9d movl %r15d, %r8d movl 0x24(%rsp), %edi movl 0x1c(%rsp), %ebp movl 0x20(%rsp), %esi movq %rax, %r15 xorl %eax, %eax movslq 0x8(%rbx), %rcx movslq 0xc(%rbx), %rdx imulq %rcx, %rdx cmpq %rdx, %rax jge 0x84740 cmpb %r14b, (%r15,%rax,4) jne 0x8472c cmpb %r12b, 0x1(%r15,%rax,4) jne 0x8472c cmpb %r13b, 0x2(%r15,%rax,4) jne 0x8472c movzbl 0x3(%r15,%rax,4), %ecx cmpl %ecx, %esi jne 0x8472c movb %dil, (%r15,%rax,4) movb %bpl, 0x1(%r15,%rax,4) movb %r8b, 0x2(%r15,%rax,4) movb %r9b, 0x3(%r15,%rax,4) incq %rax jmp 0x846ea addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl 0x14(%rbx), %ebp movq (%rbx), %rdi callq 0x9640 movq %r15, (%rbx) movl $0x7, 0x14(%rbx) movq %rbx, %rdi movl %ebp, %esi addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x7fda3
ImageColorReplace: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h cmp qword ptr [rdi], 0 jz loc_84731 mov rbx, rdi cmp dword ptr [rdi+8], 0 jz loc_84731 cmp dword ptr [rbx+0Ch], 0 jz loc_84731 mov r14d, esi mov r12d, esi shr r12d, 8 mov r13d, esi shr r13d, 10h mov eax, esi shr eax, 18h mov [rsp+58h+var_38], eax mov eax, edx shr eax, 8 mov [rsp+58h+var_3C], eax mov r15d, edx shr r15d, 10h mov ebp, edx shr ebp, 18h mov rax, [rbx+10h] mov [rsp+58h+var_48], rax movups xmm0, xmmword ptr [rbx] movups [rsp+58h+var_58], xmm0 mov [rsp+58h+var_34], edx call LoadImageColors mov r9d, ebp mov r8d, r15d mov edi, [rsp+58h+var_34] mov ebp, [rsp+58h+var_3C] mov esi, [rsp+58h+var_38] mov r15, rax xor eax, eax loc_846EA: movsxd rcx, dword ptr [rbx+8] movsxd rdx, dword ptr [rbx+0Ch] imul rdx, rcx cmp rax, rdx jge short loc_84740 cmp [r15+rax*4], r14b jnz short loc_8472C cmp [r15+rax*4+1], r12b jnz short loc_8472C cmp [r15+rax*4+2], r13b jnz short loc_8472C movzx ecx, byte ptr [r15+rax*4+3] cmp esi, ecx jnz short loc_8472C mov [r15+rax*4], dil mov [r15+rax*4+1], bpl mov [r15+rax*4+2], r8b mov [r15+rax*4+3], r9b loc_8472C: inc rax jmp short loc_846EA loc_84731: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_84740: mov ebp, [rbx+14h] mov rdi, [rbx] call _free mov [rbx], r15 mov dword ptr [rbx+14h], 7 mov rdi, rbx mov esi, ebp add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp ImageFormat
void ImageColorReplace( __m128i *a1, long long a2, long long a3, long long a4, long long a5, long long a6, double a7, __m128 a8) { char v8; // r14 unsigned int v9; // r12d unsigned int v10; // r13d unsigned int v11; // r15d unsigned int v12; // ebp long long ImageColors; // rax char v14; // r8 unsigned int v15; // esi long long v16; // r15 long long i; // rax int v18; // ebp double v19; // xmm0_8 long long v20; // rdx long long v21; // rcx long long v22; // r8 int v23; // r9d unsigned int v24; // [rsp+1Ch] [rbp-3Ch] char v25; // [rsp+24h] [rbp-34h] if ( a1->m128i_i64[0] && a1->m128i_i32[2] && a1->m128i_i32[3] ) { v8 = a2; v9 = (unsigned int)a2 >> 8; v10 = WORD1(a2); v24 = (unsigned int)a3 >> 8; v11 = WORD1(a3); v12 = BYTE3(a3); v25 = a3; ImageColors = LoadImageColors( *a1, (long long)a1, a2, a3, a4, a5, a6, a1->m128i_i64[0], a1->m128i_i64[1], a1[1].m128i_i64[0]); v14 = v11; v15 = BYTE3(a2); v16 = ImageColors; for ( i = 0LL; i < a1->m128i_i32[2] * (long long)a1->m128i_i32[3]; ++i ) { if ( *(_BYTE *)(v16 + 4 * i) == v8 && *(_BYTE *)(v16 + 4 * i + 1) == (_BYTE)v9 && *(_BYTE *)(v16 + 4 * i + 2) == (_BYTE)v10 && v15 == *(unsigned __int8 *)(v16 + 4 * i + 3) ) { *(_BYTE *)(v16 + 4 * i) = v25; *(_BYTE *)(v16 + 4 * i + 1) = v24; *(_BYTE *)(v16 + 4 * i + 2) = v14; *(_BYTE *)(v16 + 4 * i + 3) = v12; } } v18 = a1[1].m128i_i32[1]; v19 = free(a1->m128i_i64[0]); a1->m128i_i64[0] = v16; a1[1].m128i_i32[1] = 7; ImageFormat(a1->m128i_i64, v18, *(float *)&v19, a8, v20, v21, v22, v23); } }
ImageColorReplace: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 CMP qword ptr [RDI],0x0 JZ 0x00184731 MOV RBX,RDI CMP dword ptr [RDI + 0x8],0x0 JZ 0x00184731 CMP dword ptr [RBX + 0xc],0x0 JZ 0x00184731 MOV R14D,ESI MOV R12D,ESI SHR R12D,0x8 MOV R13D,ESI SHR R13D,0x10 MOV EAX,ESI SHR EAX,0x18 MOV dword ptr [RSP + 0x20],EAX MOV EAX,EDX SHR EAX,0x8 MOV dword ptr [RSP + 0x1c],EAX MOV R15D,EDX SHR R15D,0x10 MOV EBP,EDX SHR EBP,0x18 MOV RAX,qword ptr [RBX + 0x10] MOV qword ptr [RSP + 0x10],RAX MOVUPS XMM0,xmmword ptr [RBX] MOVUPS xmmword ptr [RSP],XMM0 MOV dword ptr [RSP + 0x24],EDX CALL 0x0017e5ef MOV R9D,EBP MOV R8D,R15D MOV EDI,dword ptr [RSP + 0x24] MOV EBP,dword ptr [RSP + 0x1c] MOV ESI,dword ptr [RSP + 0x20] MOV R15,RAX XOR EAX,EAX LAB_001846ea: MOVSXD RCX,dword ptr [RBX + 0x8] MOVSXD RDX,dword ptr [RBX + 0xc] IMUL RDX,RCX CMP RAX,RDX JGE 0x00184740 CMP byte ptr [R15 + RAX*0x4],R14B JNZ 0x0018472c CMP byte ptr [R15 + RAX*0x4 + 0x1],R12B JNZ 0x0018472c CMP byte ptr [R15 + RAX*0x4 + 0x2],R13B JNZ 0x0018472c MOVZX ECX,byte ptr [R15 + RAX*0x4 + 0x3] CMP ESI,ECX JNZ 0x0018472c MOV byte ptr [R15 + RAX*0x4],DIL MOV byte ptr [R15 + RAX*0x4 + 0x1],BPL MOV byte ptr [R15 + RAX*0x4 + 0x2],R8B MOV byte ptr [R15 + RAX*0x4 + 0x3],R9B LAB_0018472c: INC RAX JMP 0x001846ea LAB_00184731: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00184740: MOV EBP,dword ptr [RBX + 0x14] MOV RDI,qword ptr [RBX] CALL 0x00109640 MOV qword ptr [RBX],R15 MOV dword ptr [RBX + 0x14],0x7 MOV RDI,RBX MOV ESI,EBP ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0017fda3
void ImageColorReplace(long *param_1,int8 param_2,int8 param_3) { int4 uVar1; long lVar2; long lVar3; if (((*param_1 != 0) && ((int)param_1[1] != 0)) && (*(int *)((long)param_1 + 0xc) != 0)) { lVar2 = LoadImageColors(); for (lVar3 = 0; lVar3 < (long)*(int *)((long)param_1 + 0xc) * (long)(int)param_1[1]; lVar3 = lVar3 + 1) { if (((*(char *)(lVar2 + lVar3 * 4) == (char)param_2) && (*(char *)(lVar2 + 1 + lVar3 * 4) == (char)((ulong)param_2 >> 8))) && ((*(char *)(lVar2 + 2 + lVar3 * 4) == (char)((ulong)param_2 >> 0x10) && (((uint)((ulong)param_2 >> 0x18) & 0xff) == (uint)*(byte *)(lVar2 + 3 + lVar3 * 4))))) { *(char *)(lVar2 + lVar3 * 4) = (char)param_3; *(char *)(lVar2 + 1 + lVar3 * 4) = (char)((ulong)param_3 >> 8); *(char *)(lVar2 + 2 + lVar3 * 4) = (char)((ulong)param_3 >> 0x10); *(char *)(lVar2 + 3 + lVar3 * 4) = (char)((ulong)param_3 >> 0x18); } } uVar1 = *(int4 *)((long)param_1 + 0x14); free((void *)*param_1); *param_1 = lVar2; *(int4 *)((long)param_1 + 0x14) = 7; ImageFormat(param_1,uVar1); return; } return; }
44,036
mysql_stmt_prepare_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_stmt_prepare_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_stmt_prepare, (parms->stmt, parms->query, parms->length), parms->stmt->mysql, int, r_int) }
O0
c
mysql_stmt_prepare_start_internal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x38(%rax), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi movq -0x10(%rbp), %rax movq 0x10(%rax), %rdx callq 0x2b520 movl %eax, -0x14(%rbp) movl -0x14(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x20(%rbp), %rax movl $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
mysql_stmt_prepare_start_internal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+38h] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rdi, [rax] mov rax, [rbp+var_10] mov rsi, [rax+8] mov rax, [rbp+var_10] mov rdx, [rax+10h] call mysql_stmt_prepare mov [rbp+var_14], eax mov ecx, [rbp+var_14] mov rax, [rbp+var_20] mov [rax+8], ecx mov rax, [rbp+var_20] mov dword ptr [rax], 0 add rsp, 20h pop rbp retn
_DWORD * mysql_stmt_prepare_start_internal(long long *a1) { _DWORD *result; // rax _DWORD *v2; // [rsp+0h] [rbp-20h] v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(*a1 + 56) + 1152LL) + 40LL); v2[2] = mysql_stmt_prepare(*a1, a1[1], a1[2]); result = v2; *v2 = 0; return result; }
mysql_stmt_prepare_start_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x38] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x10] CALL 0x0012b520 MOV dword ptr [RBP + -0x14],EAX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 ADD RSP,0x20 POP RBP RET
void mysql_stmt_prepare_start_internal(long *param_1) { int4 *puVar1; int4 uVar2; puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28); uVar2 = mysql_stmt_prepare(*param_1,param_1[1],param_1[2]); puVar1[2] = uVar2; *puVar1 = 0; return; }
44,037
pfs_set_socket_info_v1
eloqsql/storage/perfschema/pfs.cc
void pfs_set_socket_info_v1(PSI_socket *socket, const my_socket *fd, const struct sockaddr *addr, socklen_t addr_len) { PFS_socket *pfs= reinterpret_cast<PFS_socket*>(socket); assert(pfs != NULL); /** Set socket descriptor */ if (fd != NULL) pfs->m_fd= (uint)*fd; /** Set raw socket address and length */ if (likely(addr != NULL && addr_len > 0)) { pfs->m_addr_len= addr_len; /** Restrict address length to size of struct */ if (unlikely(pfs->m_addr_len > sizeof(sockaddr_storage))) pfs->m_addr_len= sizeof(struct sockaddr_storage); memcpy(&pfs->m_sock_addr, addr, pfs->m_addr_len); } }
O3
cpp
pfs_set_socket_info_v1: pushq %rbp movq %rsp, %rbp testq %rsi, %rsi je 0x2a875 movl (%rsi), %eax movl %eax, 0x20(%rdi) testq %rdx, %rdx je 0x2a89e testl %ecx, %ecx je 0x2a89e cmpl $0x81, %ecx jae 0x2a8a0 movl %ecx, 0xa8(%rdi) addq $0x28, %rdi movl %ecx, %eax movq %rdx, %rsi movq %rax, %rdx popq %rbp jmp 0x26290 popq %rbp retq movl $0x80, %ecx jmp 0x2a886
pfs_set_socket_info_v1: push rbp mov rbp, rsp test rsi, rsi jz short loc_2A875 mov eax, [rsi] mov [rdi+20h], eax loc_2A875: test rdx, rdx jz short loc_2A89E test ecx, ecx jz short loc_2A89E cmp ecx, 81h jnb short loc_2A8A0 loc_2A886: mov [rdi+0A8h], ecx add rdi, 28h ; '(' mov eax, ecx mov rsi, rdx mov rdx, rax pop rbp jmp _memcpy loc_2A89E: pop rbp retn loc_2A8A0: mov ecx, 80h jmp short loc_2A886
long long pfs_set_socket_info_v1(long long a1, unsigned int *a2, long long a3, unsigned int a4) { long long result; // rax if ( a2 ) { result = *a2; *(_DWORD *)(a1 + 32) = result; } if ( a3 && a4 ) { if ( a4 >= 0x81 ) a4 = 128; *(_DWORD *)(a1 + 168) = a4; return memcpy(a1 + 40, a3, a4); } return result; }
pfs_set_socket_info_v1: PUSH RBP MOV RBP,RSP TEST RSI,RSI JZ 0x0012a875 MOV EAX,dword ptr [RSI] MOV dword ptr [RDI + 0x20],EAX LAB_0012a875: TEST RDX,RDX JZ 0x0012a89e TEST ECX,ECX JZ 0x0012a89e CMP ECX,0x81 JNC 0x0012a8a0 LAB_0012a886: MOV dword ptr [RDI + 0xa8],ECX ADD RDI,0x28 MOV EAX,ECX MOV RSI,RDX MOV RDX,RAX POP RBP JMP 0x00126290 LAB_0012a89e: POP RBP RET LAB_0012a8a0: MOV ECX,0x80 JMP 0x0012a886
void pfs_set_socket_info_v1(long param_1,int4 *param_2,void *param_3,uint param_4) { if (param_2 != (int4 *)0x0) { *(int4 *)(param_1 + 0x20) = *param_2; } if ((param_3 != (void *)0x0) && (param_4 != 0)) { if (0x80 < param_4) { param_4 = 0x80; } *(uint *)(param_1 + 0xa8) = param_4; memcpy((void *)(param_1 + 0x28),param_3,(ulong)param_4); return; } return; }
44,038
get_leaf
corpus-core[P]colibri-stateless/src/chains/eth/verifier/verify_account_proof.c
static bytes_t get_leaf(ssz_ob_t proof) { bytes_t node = ssz_at(proof, ssz_len(proof) - 1).bytes; if (rlp_decode(&node, 0, &node) != RLP_LIST) return NULL_BYTES; int len = rlp_decode(&node, -1, NULL); if (len == 17) rlp_decode(&node, 16, &node); else if (len == 2) rlp_decode(&node, 1, &node); else return NULL_BYTES; return node; }
O0
c
get_leaf: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp leaq 0x10(%rbp), %rax movq %rax, -0x48(%rbp) movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0x9f1e0 movl %eax, %esi movq -0x48(%rbp), %rax subl $0x1, %esi leaq -0x38(%rbp), %rdi movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0x9ef30 movq -0x38(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x18(%rbp) leaq -0x20(%rbp), %rdx xorl %esi, %esi movq %rdx, %rdi callq 0x34c30 cmpl $0x2, %eax je 0x2668d movl $0x0, -0x10(%rbp) movq $0x0, -0x8(%rbp) jmp 0x266f7 leaq -0x20(%rbp), %rdi movl $0xffffffff, %esi # imm = 0xFFFFFFFF xorl %eax, %eax movl %eax, %edx callq 0x34c30 movl %eax, -0x3c(%rbp) cmpl $0x11, -0x3c(%rbp) jne 0x266bb leaq -0x20(%rbp), %rdx movl $0x10, %esi movq %rdx, %rdi callq 0x34c30 jmp 0x266e7 cmpl $0x2, -0x3c(%rbp) jne 0x266d4 leaq -0x20(%rbp), %rdx movl $0x1, %esi movq %rdx, %rdi callq 0x34c30 jmp 0x266e5 movl $0x0, -0x10(%rbp) movq $0x0, -0x8(%rbp) jmp 0x266f7 jmp 0x266e7 movq -0x20(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) movl -0x10(%rbp), %eax movq -0x8(%rbp), %rdx addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
get_leaf: push rbp mov rbp, rsp sub rsp, 60h lea rax, [rbp+arg_0] mov [rbp+var_48], rax mov rcx, [rax] mov [rsp+60h+var_60], rcx mov rcx, [rax+8] mov [rsp+60h+var_58], rcx mov rax, [rax+10h] mov [rsp+60h+var_50], rax call ssz_len mov esi, eax mov rax, [rbp+var_48] sub esi, 1 lea rdi, [rbp+var_38] mov rcx, [rax] mov [rsp+60h+var_60], rcx mov rcx, [rax+8] mov [rsp+60h+var_58], rcx mov rax, [rax+10h] mov [rsp+60h+var_50], rax call ssz_at mov rax, [rbp+var_38] mov [rbp+var_20], rax mov rax, [rbp+var_30] mov [rbp+var_18], rax lea rdx, [rbp+var_20] xor esi, esi mov rdi, rdx call rlp_decode cmp eax, 2 jz short loc_2668D mov dword ptr [rbp+var_10], 0 mov [rbp+var_8], 0 jmp short loc_266F7 loc_2668D: lea rdi, [rbp+var_20] mov esi, 0FFFFFFFFh xor eax, eax mov edx, eax call rlp_decode mov [rbp+var_3C], eax cmp [rbp+var_3C], 11h jnz short loc_266BB lea rdx, [rbp+var_20] mov esi, 10h mov rdi, rdx call rlp_decode jmp short loc_266E7 loc_266BB: cmp [rbp+var_3C], 2 jnz short loc_266D4 lea rdx, [rbp+var_20] mov esi, 1 mov rdi, rdx call rlp_decode jmp short loc_266E5 loc_266D4: mov dword ptr [rbp+var_10], 0 mov [rbp+var_8], 0 jmp short loc_266F7 loc_266E5: jmp short $+2 loc_266E7: mov rax, [rbp+var_20] mov [rbp+var_10], rax mov rax, [rbp+var_18] mov [rbp+var_8], rax loc_266F7: mov eax, dword ptr [rbp+var_10] mov rdx, [rbp+var_8] add rsp, 60h pop rbp retn
long long get_leaf(int a1, int a2, int a3, _DWORD a4, int a5, int a6, long long a7, long long a8, long long a9) { int v9; // eax int v10; // edx int v11; // r8d int v12; // r9d int v14; // [rsp+24h] [rbp-3Ch] _QWORD v15[3]; // [rsp+28h] [rbp-38h] BYREF long long v16; // [rsp+40h] [rbp-20h] BYREF long long v17; // [rsp+48h] [rbp-18h] long long v18; // [rsp+50h] [rbp-10h] long long v19; // [rsp+58h] [rbp-8h] v9 = ssz_len(a1, a2, a3, a8, a5, a6, a7, a8, a9); ssz_at((unsigned int)v15, v9 - 1, v10, a8, v11, v12, a7, a8, a9); v16 = v15[0]; v17 = v15[1]; if ( (unsigned int)rlp_decode(&v16, 0LL) == 2 ) { v14 = rlp_decode(&v16, 0xFFFFFFFFLL); if ( v14 == 17 ) { rlp_decode(&v16, 16LL); } else { if ( v14 != 2 ) { LODWORD(v18) = 0; v19 = 0LL; return (unsigned int)v18; } rlp_decode(&v16, 1LL); } v18 = v16; v19 = v17; return (unsigned int)v18; } LODWORD(v18) = 0; v19 = 0LL; return (unsigned int)v18; }
get_leaf: PUSH RBP MOV RBP,RSP SUB RSP,0x60 LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x48],RAX MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x0019f1e0 MOV ESI,EAX MOV RAX,qword ptr [RBP + -0x48] SUB ESI,0x1 LEA RDI,[RBP + -0x38] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x0019ef30 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x18],RAX LEA RDX,[RBP + -0x20] XOR ESI,ESI MOV RDI,RDX CALL 0x00134c30 CMP EAX,0x2 JZ 0x0012668d MOV dword ptr [RBP + -0x10],0x0 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001266f7 LAB_0012668d: LEA RDI,[RBP + -0x20] MOV ESI,0xffffffff XOR EAX,EAX MOV EDX,EAX CALL 0x00134c30 MOV dword ptr [RBP + -0x3c],EAX CMP dword ptr [RBP + -0x3c],0x11 JNZ 0x001266bb LEA RDX,[RBP + -0x20] MOV ESI,0x10 MOV RDI,RDX CALL 0x00134c30 JMP 0x001266e7 LAB_001266bb: CMP dword ptr [RBP + -0x3c],0x2 JNZ 0x001266d4 LEA RDX,[RBP + -0x20] MOV ESI,0x1 MOV RDI,RDX CALL 0x00134c30 JMP 0x001266e5 LAB_001266d4: MOV dword ptr [RBP + -0x10],0x0 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001266f7 LAB_001266e5: JMP 0x001266e7 LAB_001266e7: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX LAB_001266f7: MOV EAX,dword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x8] ADD RSP,0x60 POP RBP RET
int1 [16] get_leaf(void) { int iVar1; int1 auVar2 [16]; ulong local_40; int8 local_38; ulong local_28; int8 local_20; ulong local_18; int8 local_10; iVar1 = ssz_len(); ssz_at(&local_40,iVar1 + -1); local_28 = local_40; local_20 = local_38; iVar1 = rlp_decode(&local_28,0); if (iVar1 == 2) { iVar1 = rlp_decode(&local_28,0xffffffff,0); if (iVar1 == 0x11) { rlp_decode(&local_28,0x10); } else { if (iVar1 != 2) { local_18 = 0; local_10 = 0; goto LAB_001266f7; } rlp_decode(&local_28,1); } local_18 = local_28; local_10 = local_20; } else { local_18 = 0; local_10 = 0; } LAB_001266f7: auVar2._0_8_ = local_18 & 0xffffffff; auVar2._8_8_ = local_10; return auVar2; }
44,039
EnableCursor
csit-sgu[P]mit-game-2025-team-tyler/Libraries/raylib/src/platforms/rcore_desktop_glfw.c
void EnableCursor(void) { glfwSetInputMode(platform.handle, GLFW_CURSOR, GLFW_CURSOR_NORMAL); // Set cursor position in the middle SetMousePosition(CORE.Window.screen.width/2, CORE.Window.screen.height/2); if (glfwRawMouseMotionSupported()) glfwSetInputMode(platform.handle, GLFW_RAW_MOUSE_MOTION, GLFW_FALSE); CORE.Input.Mouse.cursorHidden = false; }
O3
c
EnableCursor: pushq %rax movq 0xcc066(%rip), %rdi # 0x13c6a8 movl $0x33001, %esi # imm = 0x33001 movl $0x34001, %edx # imm = 0x34001 callq 0xbcf79 movq 0xcb593(%rip), %xmm0 # 0x13bbec psrld $0x1, %xmm0 cvtdq2ps %xmm0, %xmm1 movaps %xmm1, %xmm0 movlhps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0] movups %xmm0, 0xcbcae(%rip) # 0x13c31c movq 0xcc033(%rip), %rdi # 0x13c6a8 xorps %xmm0, %xmm0 cvtss2sd %xmm1, %xmm0 shufps $0x55, %xmm1, %xmm1 # xmm1 = xmm1[1,1,1,1] cvtss2sd %xmm1, %xmm1 callq 0xbd4f2 callq 0xbd256 testl %eax, %eax je 0x706a5 movq 0xcc00f(%rip), %rdi # 0x13c6a8 movl $0x33005, %esi # imm = 0x33005 xorl %edx, %edx callq 0xbcf79 movb $0x0, 0xcbc84(%rip) # 0x13c330 popq %rax retq
EnableCursor: push rax mov rdi, cs:platform_0 mov esi, 33001h mov edx, 34001h call glfwSetInputMode movq xmm0, cs:qword_13BBEC psrld xmm0, 1 cvtdq2ps xmm1, xmm0 movaps xmm0, xmm1 movlhps xmm0, xmm1 movups cs:xmmword_13C31C, xmm0 mov rdi, cs:platform_0 xorps xmm0, xmm0 cvtss2sd xmm0, xmm1 shufps xmm1, xmm1, 55h ; 'U' cvtss2sd xmm1, xmm1 call glfwSetCursorPos call glfwRawMouseMotionSupported test eax, eax jz short loc_706A5 mov rdi, cs:platform_0 mov esi, 33005h xor edx, edx call glfwSetInputMode loc_706A5: mov cs:byte_13C330, 0 pop rax retn
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm0,xmm4,xmm5> EnableCursor() { __m128 v0; // xmm1 glfwSetInputMode(platform_0, 208897LL, 212993LL); v0 = _mm_cvtepi32_ps(_mm_srli_epi32(_mm_loadl_epi64((const __m128i *)&qword_13BBEC), 1u)); xmmword_13C31C = (__int128)_mm_movelh_ps(v0, v0); glfwSetCursorPos(platform_0, v0.m128_f32[0], _mm_shuffle_ps(v0, v0, 85).m128_f32[0]); if ( (unsigned int)glfwRawMouseMotionSupported() ) glfwSetInputMode(platform_0, 208901LL, 0LL); byte_13C330 = 0; }
EnableCursor: PUSH RAX MOV RDI,qword ptr [0x0023c6a8] MOV ESI,0x33001 MOV EDX,0x34001 CALL 0x001bcf79 MOVQ XMM0,qword ptr [0x0023bbec] PSRLD XMM0,0x1 CVTDQ2PS XMM1,XMM0 MOVAPS XMM0,XMM1 MOVLHPS XMM0,XMM1 MOVUPS xmmword ptr [0x0023c31c],XMM0 MOV RDI,qword ptr [0x0023c6a8] XORPS XMM0,XMM0 CVTSS2SD XMM0,XMM1 SHUFPS XMM1,XMM1,0x55 CVTSS2SD XMM1,XMM1 CALL 0x001bd4f2 CALL 0x001bd256 TEST EAX,EAX JZ 0x001706a5 MOV RDI,qword ptr [0x0023c6a8] MOV ESI,0x33005 XOR EDX,EDX CALL 0x001bcf79 LAB_001706a5: MOV byte ptr [0x0023c330],0x0 POP RAX RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int8 EnableCursor(void) { int iVar1; int8 in_RAX; float fVar2; float fVar3; glfwSetInputMode(platform_0,0x33001,0x34001); fVar2 = (float)(DAT_0023bbec >> 1); fVar3 = (float)(DAT_0023bbf0 >> 1); _DAT_0023c324 = CONCAT44(fVar3,fVar2); DAT_0023c31c = CONCAT44(fVar3,fVar2); glfwSetCursorPos((double)(DAT_0023bbec >> 1),(double)(DAT_0023bbf0 >> 1),platform_0); iVar1 = glfwRawMouseMotionSupported(); if (iVar1 != 0) { glfwSetInputMode(platform_0,0x33005,0); } DAT_0023c330 = 0; return in_RAX; }
44,040
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator=(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>)
hkr04[P]cpp-mcp/common/json.hpp
basic_json& operator=(basic_json other) noexcept ( std::is_nothrow_move_constructible<value_t>::value&& std::is_nothrow_move_assignable<value_t>::value&& std::is_nothrow_move_constructible<json_value>::value&& std::is_nothrow_move_assignable<json_value>::value&& std::is_nothrow_move_assignable<json_base_class_t>::value ) { // check that passed value is valid other.assert_invariant(); using std::swap; swap(m_data.m_type, other.m_data.m_type); swap(m_data.m_value, other.m_data.m_value); json_base_class_t::operator=(std::move(other)); set_parents(); assert_invariant(); return *this; }
O0
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>): subq $0x28, %rsp movq %rsi, (%rsp) movq %rdi, %rax movq (%rsp), %rdi movq %rdi, 0x8(%rsp) movq %rax, 0x20(%rsp) movq %rdi, 0x18(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x10(%rsp) movl $0x1, %esi callq 0x6f1d0 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdi callq 0x713b0 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdi addq $0x8, %rdi addq $0x8, %rsi callq 0x713e0 movq 0x10(%rsp), %rdi callq 0x70bc0 movq 0x10(%rsp), %rdi movl $0x1, %esi callq 0x6f1d0 movq 0x10(%rsp), %rax addq $0x28, %rsp retq nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_: sub rsp, 28h mov [rsp+28h+var_28], rsi mov rax, rdi mov rdi, [rsp+28h+var_28] mov [rsp+28h+var_20], rdi mov [rsp+28h+var_8], rax mov [rsp+28h+var_10], rdi mov rax, [rsp+28h+var_8] mov [rsp+28h+var_18], rax mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rsi, [rsp+28h+var_20] mov rdi, [rsp+28h+var_18] call _ZSt4swapIN8nlohmann16json_abi_v3_11_36detail7value_tEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS7_ESt18is_move_assignableIS7_EEE5valueEvE4typeERS7_SG_ mov rsi, [rsp+28h+var_20] mov rdi, [rsp+28h+var_18] add rdi, 8 add rsi, 8 call _ZSt4swapIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvE10json_valueEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISJ_ESt18is_move_assignableISJ_EEE5valueEvE4typeERSJ_SS_ mov rdi, [rsp+28h+var_18] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE11set_parentsEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::set_parents(void) mov rdi, [rsp+28h+var_18] mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rax, [rsp+28h+var_18] add rsp, 28h retn
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( long long a1, long long a2) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( a2, 1LL); std::swap<nlohmann::json_abi_v3_11_3::detail::value_t>(a1, a2); std::swap<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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_value>( a1 + 8, a2 + 8); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::set_parents(a1); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( a1, 1LL); return a1; }
operator=: SUB RSP,0x28 MOV qword ptr [RSP],RSI MOV RAX,RDI MOV RDI,qword ptr [RSP] MOV qword ptr [RSP + 0x8],RDI MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x18],RDI MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x10],RAX MOV ESI,0x1 CALL 0x0016f1d0 MOV RSI,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RSP + 0x10] CALL 0x001713b0 MOV RSI,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 ADD RSI,0x8 CALL 0x001713e0 MOV RDI,qword ptr [RSP + 0x10] CALL 0x00170bc0 MOV RDI,qword ptr [RSP + 0x10] MOV ESI,0x1 CALL 0x0016f1d0 MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0x28 RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::TEMPNAMEPLACEHOLDERVALUE(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> * __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,value_t *param_2) { assert_invariant(SUB81(param_2,0)); std::swap<nlohmann::json_abi_v3_11_3::detail::value_t>(this,param_2); std:: swap<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_value> ((json_value *)(this + 8),(json_value *)(param_2 + 8)); set_parents(); assert_invariant(SUB81(this,0)); return this; }
44,041
get_utf32
memononen[P]budouxc/src/budoux.c
static uint32_t get_utf32(utf_iter_t* iter) { const uint32_t* buf = iter->buf; uint32_t cp = buf[iter->pos++]; // If reached end of string, start emitting empty code points. if (iter->pos >= iter->buf_len || buf[iter->pos] == 0) iter->get = &get_empty; return cp; }
O3
c
get_utf32: movq 0x8(%rdi), %rcx movslq 0x14(%rdi), %rdx leal 0x1(%rdx), %esi movl %esi, 0x14(%rdi) movl (%rcx,%rdx,4), %eax cmpl 0x10(%rdi), %esi jge 0x25bb cmpl $0x0, 0x4(%rcx,%rdx,4) je 0x25bb retq leaq -0x1ae(%rip), %rcx # 0x2414 movq %rcx, (%rdi) retq
get_utf32: mov rcx, [rdi+8] movsxd rdx, dword ptr [rdi+14h] lea esi, [rdx+1] mov [rdi+14h], esi mov eax, [rcx+rdx*4] cmp esi, [rdi+10h] jge short loc_25BB cmp dword ptr [rcx+rdx*4+4], 0 jz short loc_25BB retn loc_25BB: lea rcx, get_empty mov [rdi], rcx retn
long long get_utf32(long long a1) { long long v1; // rcx long long v2; // rdx long long result; // rax v1 = *(_QWORD *)(a1 + 8); v2 = *(int *)(a1 + 20); *(_DWORD *)(a1 + 20) = v2 + 1; result = *(unsigned int *)(v1 + 4 * v2); if ( (int)v2 + 1 >= *(_DWORD *)(a1 + 16) || !*(_DWORD *)(v1 + 4 * v2 + 4) ) *(_QWORD *)a1 = get_empty; return result; }
get_utf32: MOV RCX,qword ptr [RDI + 0x8] MOVSXD RDX,dword ptr [RDI + 0x14] LEA ESI,[RDX + 0x1] MOV dword ptr [RDI + 0x14],ESI MOV EAX,dword ptr [RCX + RDX*0x4] CMP ESI,dword ptr [RDI + 0x10] JGE 0x001025bb CMP dword ptr [RCX + RDX*0x4 + 0x4],0x0 JZ 0x001025bb RET LAB_001025bb: LEA RCX,[0x102414] MOV qword ptr [RDI],RCX RET
int4 get_utf32(int8 *param_1) { int iVar1; int4 uVar2; iVar1 = *(int *)((long)param_1 + 0x14); *(int *)((long)param_1 + 0x14) = iVar1 + 1; uVar2 = *(int4 *)(param_1[1] + (long)iVar1 * 4); if ((iVar1 + 1 < *(int *)(param_1 + 2)) && (*(int *)(param_1[1] + 4 + (long)iVar1 * 4) != 0)) { return uVar2; } *param_1 = get_empty; return uVar2; }
44,042
maria_ftparser_alloc_param
eloqsql/storage/maria/ma_ft_parser.c
MYSQL_FTPARSER_PARAM* maria_ftparser_alloc_param(MARIA_HA *info) { if (!info->ftparser_param) { /* . info->ftparser_param can not be zero after the initialization, because it always includes built-in fulltext parser. And built-in parser can be called even if the table has no fulltext indexes and no varchar/text fields. ftb_find_relevance... parser (ftb_find_relevance_parse, ftb_find_relevance_add_word) calls ftb_check_phrase... parser (ftb_check_phrase_internal, ftb_phrase_add_word). Thus MAX_PARAM_NR=2. */ info->ftparser_param= (MYSQL_FTPARSER_PARAM *) my_malloc(PSI_INSTRUMENT_ME, MAX_PARAM_NR * sizeof(MYSQL_FTPARSER_PARAM) * info->s->ftkeys, MYF(MY_WME | MY_ZEROFILL)); init_alloc_root(PSI_INSTRUMENT_ME, &info->ft_memroot, FTPARSER_MEMROOT_ALLOC_SIZE, 0, MYF(0)); } return info->ftparser_param; }
O3
c
maria_ftparser_alloc_param: movq 0x368(%rdi), %rax testq %rax, %rax je 0x607e6 retq pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx movq (%rdi), %rax movl 0x748(%rax), %esi shlq $0x7, %rsi movl $0x30, %edx xorl %edi, %edi callq 0xaa1d9 movq %rax, 0x368(%rbx) leaq 0x328(%rbx), %rsi movl $0x10000, %edx # imm = 0x10000 xorl %edi, %edi xorl %ecx, %ecx xorl %r8d, %r8d callq 0xa42bc movq 0x368(%rbx), %rax addq $0x8, %rsp popq %rbx popq %rbp retq
maria_ftparser_alloc_param: mov rax, [rdi+368h] test rax, rax jz short loc_607E6 retn loc_607E6: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi mov rax, [rdi] mov esi, [rax+748h] shl rsi, 7 mov edx, 30h ; '0' xor edi, edi call my_malloc mov [rbx+368h], rax lea rsi, [rbx+328h] mov edx, offset stru_10000 xor edi, edi xor ecx, ecx xor r8d, r8d call init_alloc_root mov rax, [rbx+368h] add rsp, 8 pop rbx pop rbp retn
long long maria_ftparser_alloc_param(_QWORD *a1) { long long result; // rax result = a1[109]; if ( !result ) { a1[109] = my_malloc(0LL, (unsigned long long)*(unsigned int *)(*a1 + 1864LL) << 7, 48LL); init_alloc_root(0LL, a1 + 101, &stru_10000, 0LL, 0LL); return a1[109]; } return result; }
maria_ftparser_alloc_param: MOV RAX,qword ptr [RDI + 0x368] TEST RAX,RAX JZ 0x001607e6 RET LAB_001607e6: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI MOV RAX,qword ptr [RDI] MOV ESI,dword ptr [RAX + 0x748] SHL RSI,0x7 MOV EDX,0x30 XOR EDI,EDI CALL 0x001aa1d9 MOV qword ptr [RBX + 0x368],RAX LEA RSI,[RBX + 0x328] MOV EDX,0x10000 XOR EDI,EDI XOR ECX,ECX XOR R8D,R8D CALL 0x001a42bc MOV RAX,qword ptr [RBX + 0x368] ADD RSP,0x8 POP RBX POP RBP RET
long maria_ftparser_alloc_param(long *param_1) { long lVar1; int8 in_R9; long lVar2; lVar2 = param_1[0x6d]; if (lVar2 != 0) { return lVar2; } lVar1 = my_malloc(0,(ulong)*(uint *)(*param_1 + 0x748) << 7,0x30); param_1[0x6d] = lVar1; init_alloc_root(0,param_1 + 0x65,0x10000,0,0,in_R9,lVar2); return param_1[0x6d]; }
44,043
detect_simd_x86
tsotchke[P]eshkol/src/core/utils/simd.c
static void detect_simd_x86(void) { int eax, ebx, ecx, edx; char cpu_name[64] = {0}; // Get CPU name get_cpu_name(cpu_name, sizeof(cpu_name)); g_simd_info.name = strdup(cpu_name); // Get SIMD capabilities eax = 1; ecx = 0; cpuidex(&eax, &ecx, &ebx, &edx); // Check SSE if (edx & (1 << 25)) { g_simd_info.flags |= SIMD_SSE; g_simd_info.vector_size = 16; } // Check SSE2 if (edx & (1 << 26)) { g_simd_info.flags |= SIMD_SSE2; } // Check SSE3 if (ecx & (1 << 0)) { g_simd_info.flags |= SIMD_SSE3; } // Check SSSE3 if (ecx & (1 << 9)) { g_simd_info.flags |= SIMD_SSSE3; } // Check SSE4.1 if (ecx & (1 << 19)) { g_simd_info.flags |= SIMD_SSE4_1; } // Check SSE4.2 if (ecx & (1 << 20)) { g_simd_info.flags |= SIMD_SSE4_2; } // Check AVX if (ecx & (1 << 28)) { g_simd_info.flags |= SIMD_AVX; g_simd_info.vector_size = 32; } // Check POPCNT if (ecx & (1 << 23)) { g_simd_info.has_popcnt = true; } // Check FMA if (ecx & (1 << 12)) { g_simd_info.has_fma = true; } // Check AVX2 and AVX-512 eax = 7; ecx = 0; cpuidex(&eax, &ecx, &ebx, &edx); // Check AVX2 if (ebx & (1 << 5)) { g_simd_info.flags |= SIMD_AVX2; } // Check AVX-512 Foundation if (ebx & (1 << 16)) { g_simd_info.flags |= SIMD_AVX512F; g_simd_info.vector_size = 64; } }
O0
c
detect_simd_x86: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp leaq -0x50(%rbp), %rdi xorl %esi, %esi movl $0x40, %edx callq 0x10a0 leaq -0x50(%rbp), %rdi movl $0x40, %esi callq 0x8eb0 leaq -0x50(%rbp), %rdi callq 0x1100 movq %rax, 0x674a(%rip) # 0xf0a0 movl $0x1, -0x4(%rbp) movl $0x0, -0xc(%rbp) leaq -0x4(%rbp), %rdi leaq -0xc(%rbp), %rsi leaq -0x8(%rbp), %rdx leaq -0x10(%rbp), %rcx callq 0x9050 movl -0x10(%rbp), %eax andl $0x2000000, %eax # imm = 0x2000000 cmpl $0x0, %eax je 0x899f movl 0x670c(%rip), %eax # 0xf098 orl $0x1, %eax movl %eax, 0x6703(%rip) # 0xf098 movl $0x10, 0x6709(%rip) # 0xf0a8 movl -0x10(%rbp), %eax andl $0x4000000, %eax # imm = 0x4000000 cmpl $0x0, %eax je 0x89bb movl 0x66e6(%rip), %eax # 0xf098 orl $0x2, %eax movl %eax, 0x66dd(%rip) # 0xf098 movl -0xc(%rbp), %eax andl $0x1, %eax cmpl $0x0, %eax je 0x89d5 movl 0x66cc(%rip), %eax # 0xf098 orl $0x4, %eax movl %eax, 0x66c3(%rip) # 0xf098 movl -0xc(%rbp), %eax andl $0x200, %eax # imm = 0x200 cmpl $0x0, %eax je 0x89f1 movl 0x66b0(%rip), %eax # 0xf098 orl $0x8, %eax movl %eax, 0x66a7(%rip) # 0xf098 movl -0xc(%rbp), %eax andl $0x80000, %eax # imm = 0x80000 cmpl $0x0, %eax je 0x8a0d movl 0x6694(%rip), %eax # 0xf098 orl $0x10, %eax movl %eax, 0x668b(%rip) # 0xf098 movl -0xc(%rbp), %eax andl $0x100000, %eax # imm = 0x100000 cmpl $0x0, %eax je 0x8a29 movl 0x6678(%rip), %eax # 0xf098 orl $0x20, %eax movl %eax, 0x666f(%rip) # 0xf098 movl -0xc(%rbp), %eax andl $0x10000000, %eax # imm = 0x10000000 cmpl $0x0, %eax je 0x8a4f movl 0x665c(%rip), %eax # 0xf098 orl $0x40, %eax movl %eax, 0x6653(%rip) # 0xf098 movl $0x20, 0x6659(%rip) # 0xf0a8 movl -0xc(%rbp), %eax andl $0x800000, %eax # imm = 0x800000 cmpl $0x0, %eax je 0x8a63 movb $0x1, 0x664a(%rip) # 0xf0ad movl -0xc(%rbp), %eax andl $0x1000, %eax # imm = 0x1000 cmpl $0x0, %eax je 0x8a77 movb $0x1, 0x6635(%rip) # 0xf0ac movl $0x7, -0x4(%rbp) movl $0x0, -0xc(%rbp) leaq -0x4(%rbp), %rdi leaq -0xc(%rbp), %rsi leaq -0x8(%rbp), %rdx leaq -0x10(%rbp), %rcx callq 0x9050 movl -0x8(%rbp), %eax andl $0x20, %eax cmpl $0x0, %eax je 0x8ab6 movl 0x65ed(%rip), %eax # 0xf098 orl $0x80, %eax movl %eax, 0x65e2(%rip) # 0xf098 movl -0x8(%rbp), %eax andl $0x10000, %eax # imm = 0x10000 cmpl $0x0, %eax je 0x8ade movl 0x65cf(%rip), %eax # 0xf098 orl $0x100, %eax # imm = 0x100 movl %eax, 0x65c4(%rip) # 0xf098 movl $0x40, 0x65ca(%rip) # 0xf0a8 addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
detect_simd_x86: push rbp mov rbp, rsp sub rsp, 50h lea rdi, [rbp+var_50] xor esi, esi mov edx, 40h ; '@' call _memset lea rdi, [rbp+var_50] mov esi, 40h ; '@' call get_cpu_name lea rdi, [rbp+var_50] call _strdup mov cs:off_F0A0, rax; "Unknown" mov [rbp+var_4], 1 mov [rbp+var_C], 0 lea rdi, [rbp+var_4] lea rsi, [rbp+var_C] lea rdx, [rbp+var_8] lea rcx, [rbp+var_10] call cpuidex mov eax, [rbp+var_10] and eax, 2000000h cmp eax, 0 jz short loc_899F mov eax, cs:g_simd_info or eax, 1 mov cs:g_simd_info, eax mov cs:dword_F0A8, 10h loc_899F: mov eax, [rbp+var_10] and eax, 4000000h cmp eax, 0 jz short loc_89BB mov eax, cs:g_simd_info or eax, 2 mov cs:g_simd_info, eax loc_89BB: mov eax, [rbp+var_C] and eax, 1 cmp eax, 0 jz short loc_89D5 mov eax, cs:g_simd_info or eax, 4 mov cs:g_simd_info, eax loc_89D5: mov eax, [rbp+var_C] and eax, 200h cmp eax, 0 jz short loc_89F1 mov eax, cs:g_simd_info or eax, 8 mov cs:g_simd_info, eax loc_89F1: mov eax, [rbp+var_C] and eax, 80000h cmp eax, 0 jz short loc_8A0D mov eax, cs:g_simd_info or eax, 10h mov cs:g_simd_info, eax loc_8A0D: mov eax, [rbp+var_C] and eax, 100000h cmp eax, 0 jz short loc_8A29 mov eax, cs:g_simd_info or eax, 20h mov cs:g_simd_info, eax loc_8A29: mov eax, [rbp+var_C] and eax, 10000000h cmp eax, 0 jz short loc_8A4F mov eax, cs:g_simd_info or eax, 40h mov cs:g_simd_info, eax mov cs:dword_F0A8, 20h ; ' ' loc_8A4F: mov eax, [rbp+var_C] and eax, 800000h cmp eax, 0 jz short loc_8A63 mov cs:byte_F0AD, 1 loc_8A63: mov eax, [rbp+var_C] and eax, 1000h cmp eax, 0 jz short loc_8A77 mov cs:byte_F0AC, 1 loc_8A77: mov [rbp+var_4], 7 mov [rbp+var_C], 0 lea rdi, [rbp+var_4] lea rsi, [rbp+var_C] lea rdx, [rbp+var_8] lea rcx, [rbp+var_10] call cpuidex mov eax, [rbp+var_8] and eax, 20h cmp eax, 0 jz short loc_8AB6 mov eax, cs:g_simd_info or eax, 80h mov cs:g_simd_info, eax loc_8AB6: mov eax, [rbp+var_8] and eax, 10000h cmp eax, 0 jz short loc_8ADE mov eax, cs:g_simd_info or eax, 100h mov cs:g_simd_info, eax mov cs:dword_F0A8, 40h ; '@' loc_8ADE: add rsp, 50h pop rbp retn
long long detect_simd_x86() { long long result; // rax _BYTE v1[64]; // [rsp+0h] [rbp-50h] BYREF int v2; // [rsp+40h] [rbp-10h] BYREF int v3; // [rsp+44h] [rbp-Ch] BYREF int v4; // [rsp+48h] [rbp-8h] BYREF int v5; // [rsp+4Ch] [rbp-4h] BYREF memset(v1, 0LL, sizeof(v1)); get_cpu_name(v1, 64LL); off_F0A0 = (char *)strdup(v1); v5 = 1; v3 = 0; cpuidex(&v5, &v3, &v4, &v2); if ( (v2 & 0x2000000) != 0 ) { g_simd_info |= 1u; dword_F0A8 = 16; } if ( (v2 & 0x4000000) != 0 ) g_simd_info |= 2u; if ( (v3 & 1) != 0 ) g_simd_info |= 4u; if ( (v3 & 0x200) != 0 ) g_simd_info |= 8u; if ( (v3 & 0x80000) != 0 ) g_simd_info |= 0x10u; if ( (v3 & 0x100000) != 0 ) g_simd_info |= 0x20u; if ( (v3 & 0x10000000) != 0 ) { g_simd_info |= 0x40u; dword_F0A8 = 32; } if ( (v3 & 0x800000) != 0 ) byte_F0AD = 1; if ( (v3 & 0x1000) != 0 ) byte_F0AC = 1; v5 = 7; v3 = 0; cpuidex(&v5, &v3, &v4, &v2); if ( (v4 & 0x20) != 0 ) g_simd_info |= 0x80u; result = v4 & 0x10000; if ( (_DWORD)result ) { result = g_simd_info | 0x100u; g_simd_info |= 0x100u; dword_F0A8 = 64; } return result; }
detect_simd_x86: PUSH RBP MOV RBP,RSP SUB RSP,0x50 LEA RDI,[RBP + -0x50] XOR ESI,ESI MOV EDX,0x40 CALL 0x001010a0 LEA RDI,[RBP + -0x50] MOV ESI,0x40 CALL 0x00108eb0 LEA RDI,[RBP + -0x50] CALL 0x00101100 MOV qword ptr [0x0010f0a0],RAX MOV dword ptr [RBP + -0x4],0x1 MOV dword ptr [RBP + -0xc],0x0 LEA RDI,[RBP + -0x4] LEA RSI,[RBP + -0xc] LEA RDX,[RBP + -0x8] LEA RCX,[RBP + -0x10] CALL 0x00109050 MOV EAX,dword ptr [RBP + -0x10] AND EAX,0x2000000 CMP EAX,0x0 JZ 0x0010899f MOV EAX,dword ptr [0x0010f098] OR EAX,0x1 MOV dword ptr [0x0010f098],EAX MOV dword ptr [0x0010f0a8],0x10 LAB_0010899f: MOV EAX,dword ptr [RBP + -0x10] AND EAX,0x4000000 CMP EAX,0x0 JZ 0x001089bb MOV EAX,dword ptr [0x0010f098] OR EAX,0x2 MOV dword ptr [0x0010f098],EAX LAB_001089bb: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x1 CMP EAX,0x0 JZ 0x001089d5 MOV EAX,dword ptr [0x0010f098] OR EAX,0x4 MOV dword ptr [0x0010f098],EAX LAB_001089d5: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x200 CMP EAX,0x0 JZ 0x001089f1 MOV EAX,dword ptr [0x0010f098] OR EAX,0x8 MOV dword ptr [0x0010f098],EAX LAB_001089f1: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x80000 CMP EAX,0x0 JZ 0x00108a0d MOV EAX,dword ptr [0x0010f098] OR EAX,0x10 MOV dword ptr [0x0010f098],EAX LAB_00108a0d: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x100000 CMP EAX,0x0 JZ 0x00108a29 MOV EAX,dword ptr [0x0010f098] OR EAX,0x20 MOV dword ptr [0x0010f098],EAX LAB_00108a29: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x10000000 CMP EAX,0x0 JZ 0x00108a4f MOV EAX,dword ptr [0x0010f098] OR EAX,0x40 MOV dword ptr [0x0010f098],EAX MOV dword ptr [0x0010f0a8],0x20 LAB_00108a4f: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x800000 CMP EAX,0x0 JZ 0x00108a63 MOV byte ptr [0x0010f0ad],0x1 LAB_00108a63: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x1000 CMP EAX,0x0 JZ 0x00108a77 MOV byte ptr [0x0010f0ac],0x1 LAB_00108a77: MOV dword ptr [RBP + -0x4],0x7 MOV dword ptr [RBP + -0xc],0x0 LEA RDI,[RBP + -0x4] LEA RSI,[RBP + -0xc] LEA RDX,[RBP + -0x8] LEA RCX,[RBP + -0x10] CALL 0x00109050 MOV EAX,dword ptr [RBP + -0x8] AND EAX,0x20 CMP EAX,0x0 JZ 0x00108ab6 MOV EAX,dword ptr [0x0010f098] OR EAX,0x80 MOV dword ptr [0x0010f098],EAX LAB_00108ab6: MOV EAX,dword ptr [RBP + -0x8] AND EAX,0x10000 CMP EAX,0x0 JZ 0x00108ade MOV EAX,dword ptr [0x0010f098] OR EAX,0x100 MOV dword ptr [0x0010f098],EAX MOV dword ptr [0x0010f0a8],0x40 LAB_00108ade: ADD RSP,0x50 POP RBP RET
/* WARNING: Type propagation algorithm not settling */ /* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void detect_simd_x86(void) { char local_58 [64]; uint local_18; uint local_14; uint local_10 [2]; memset(local_58,0,0x40); get_cpu_name(local_58,0x40); PTR_s_Unknown_0010f0a0 = strdup(local_58); local_10[1] = 1; local_14 = 0; cpuidex(local_10 + 1,&local_14,local_10,&local_18); if ((local_18 & 0x2000000) != 0) { g_simd_info = g_simd_info | 1; _DAT_0010f0a8 = 0x10; } if ((local_18 & 0x4000000) != 0) { g_simd_info = g_simd_info | 2; } if ((local_14 & 1) != 0) { g_simd_info = g_simd_info | 4; } if ((local_14 & 0x200) != 0) { g_simd_info = g_simd_info | 8; } if ((local_14 & 0x80000) != 0) { g_simd_info = g_simd_info | 0x10; } if ((local_14 & 0x100000) != 0) { g_simd_info = g_simd_info | 0x20; } if ((local_14 & 0x10000000) != 0) { g_simd_info = g_simd_info | 0x40; _DAT_0010f0a8 = 0x20; } if ((local_14 & 0x800000) != 0) { DAT_0010f0ad = 1; } if ((local_14 & 0x1000) != 0) { DAT_0010f0ac = 1; } local_10[1] = 7; local_14 = 0; cpuidex(local_10 + 1,&local_14,local_10,&local_18); if ((local_10[0] & 0x20) != 0) { g_simd_info = g_simd_info | 0x80; } if ((local_10[0] & 0x10000) != 0) { g_simd_info = g_simd_info | 0x100; _DAT_0010f0a8 = 0x40; } return; }
44,044
my_numcells_eucjp
eloqsql/strings/ctype-ujis.c
static size_t my_numcells_eucjp(CHARSET_INFO *cs __attribute__((unused)), const char *str, const char *str_end) { size_t clen; const uchar *b= (const uchar *) str; const uchar *e= (const uchar *) str_end; for (clen= 0; b < e; ) { if (*b == 0x8E) { clen++; b+= 2; } else if (*b == 0x8F) { clen+= 2; b+= 3; } else if (*b & 0x80) { clen+= 2; b+= 2; } else { clen++; b++; } } return clen; }
O0
c
my_numcells_eucjp: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq $0x0, -0x20(%rbp) movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax jae 0xb2622 movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0x8e, %eax jne 0xb25ae movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) jmp 0xb261d movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0x8f, %eax jne 0xb25d6 movq -0x20(%rbp), %rax addq $0x2, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x3, %rax movq %rax, -0x28(%rbp) jmp 0xb261b movq -0x28(%rbp), %rax movzbl (%rax), %eax andl $0x80, %eax cmpl $0x0, %eax je 0xb2601 movq -0x20(%rbp), %rax addq $0x2, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) jmp 0xb2619 movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0xb261b jmp 0xb261d jmp 0xb2578 movq -0x20(%rbp), %rax popq %rbp retq nopl (%rax,%rax)
my_numcells_eucjp: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_18] mov [rbp+var_30], rax mov [rbp+var_20], 0 loc_B2578: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jnb loc_B2622 mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 8Eh jnz short loc_B25AE mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax jmp short loc_B261D loc_B25AE: mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 8Fh jnz short loc_B25D6 mov rax, [rbp+var_20] add rax, 2 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 3 mov [rbp+var_28], rax jmp short loc_B261B loc_B25D6: mov rax, [rbp+var_28] movzx eax, byte ptr [rax] and eax, 80h cmp eax, 0 jz short loc_B2601 mov rax, [rbp+var_20] add rax, 2 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax jmp short loc_B2619 loc_B2601: mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax loc_B2619: jmp short $+2 loc_B261B: jmp short $+2 loc_B261D: jmp loc_B2578 loc_B2622: mov rax, [rbp+var_20] pop rbp retn
long long my_numcells_eucjp(long long a1, _BYTE *a2, unsigned long long a3) { long long v5; // [rsp+10h] [rbp-20h] v5 = 0LL; while ( (unsigned long long)a2 < a3 ) { if ( (unsigned __int8)*a2 == 142 ) { ++v5; a2 += 2; } else if ( (unsigned __int8)*a2 == 143 ) { v5 += 2LL; a2 += 3; } else if ( (*a2 & 0x80) != 0 ) { v5 += 2LL; a2 += 2; } else { ++v5; ++a2; } } return v5; }
my_numcells_eucjp: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [RBP + -0x20],0x0 LAB_001b2578: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JNC 0x001b2622 MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x8e JNZ 0x001b25ae MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX JMP 0x001b261d LAB_001b25ae: MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x8f JNZ 0x001b25d6 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x3 MOV qword ptr [RBP + -0x28],RAX JMP 0x001b261b LAB_001b25d6: MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] AND EAX,0x80 CMP EAX,0x0 JZ 0x001b2601 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX JMP 0x001b2619 LAB_001b2601: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX LAB_001b2619: JMP 0x001b261b LAB_001b261b: JMP 0x001b261d LAB_001b261d: JMP 0x001b2578 LAB_001b2622: MOV RAX,qword ptr [RBP + -0x20] POP RBP RET
long my_numcells_eucjp(int8 param_1,byte *param_2,byte *param_3) { byte *local_30; long local_28; local_28 = 0; local_30 = param_2; while (local_30 < param_3) { if (*local_30 == 0x8e) { local_28 = local_28 + 1; local_30 = local_30 + 2; } else if (*local_30 == 0x8f) { local_28 = local_28 + 2; local_30 = local_30 + 3; } else if ((*local_30 & 0x80) == 0) { local_28 = local_28 + 1; local_30 = local_30 + 1; } else { local_28 = local_28 + 2; local_30 = local_30 + 2; } } return local_28; }
44,045
end_of_previous_entry
eloqsql/storage/maria/ma_blockrec.c
static inline uint end_of_previous_entry(MARIA_SHARE *share, uchar *dir, uchar *end) { uchar *pos; for (pos= dir + DIR_ENTRY_SIZE ; pos < end ; pos+= DIR_ENTRY_SIZE) { uint offset; if ((offset= uint2korr(pos))) return offset + uint2korr(pos+2); } return PAGE_HEADER_SIZE(share); }
O0
c
end_of_previous_entry: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x18(%rbp), %rax addq $0x4, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x7f7f7 movq -0x28(%rbp), %rax movzwl (%rax), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax je 0x7f7e7 movl -0x2c(%rbp), %eax movq -0x28(%rbp), %rcx movzwl 0x2(%rcx), %ecx addl %ecx, %eax movl %eax, -0x4(%rbp) jmp 0x7f807 jmp 0x7f7e9 movq -0x28(%rbp), %rax addq $0x4, %rax movq %rax, -0x28(%rbp) jmp 0x7f7bc movq -0x10(%rbp), %rax movl 0xc18(%rax), %eax addl $0xc, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopl (%rax)
end_of_previous_entry: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_18] add rax, 4 mov [rbp+var_28], rax loc_7F7BC: mov rax, [rbp+var_28] cmp rax, [rbp+var_20] jnb short loc_7F7F7 mov rax, [rbp+var_28] movzx eax, word ptr [rax] mov [rbp+var_2C], eax cmp eax, 0 jz short loc_7F7E7 mov eax, [rbp+var_2C] mov rcx, [rbp+var_28] movzx ecx, word ptr [rcx+2] add eax, ecx mov [rbp+var_4], eax jmp short loc_7F807 loc_7F7E7: jmp short $+2 loc_7F7E9: mov rax, [rbp+var_28] add rax, 4 mov [rbp+var_28], rax jmp short loc_7F7BC loc_7F7F7: mov rax, [rbp+var_10] mov eax, [rax+0C18h] add eax, 0Ch mov [rbp+var_4], eax loc_7F807: mov eax, [rbp+var_4] pop rbp retn
long long end_of_previous_entry(long long a1, long long a2, unsigned long long a3) { unsigned __int16 *i; // [rsp+4h] [rbp-28h] for ( i = (unsigned __int16 *)(a2 + 4); (unsigned long long)i < a3; i += 2 ) { if ( *i ) return (unsigned int)(i[1] + *i); } return (unsigned int)(*(_DWORD *)(a1 + 3096) + 12); }
end_of_previous_entry: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x4 MOV qword ptr [RBP + -0x28],RAX LAB_0017f7bc: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x20] JNC 0x0017f7f7 MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,word ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JZ 0x0017f7e7 MOV EAX,dword ptr [RBP + -0x2c] MOV RCX,qword ptr [RBP + -0x28] MOVZX ECX,word ptr [RCX + 0x2] ADD EAX,ECX MOV dword ptr [RBP + -0x4],EAX JMP 0x0017f807 LAB_0017f7e7: JMP 0x0017f7e9 LAB_0017f7e9: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x4 MOV qword ptr [RBP + -0x28],RAX JMP 0x0017f7bc LAB_0017f7f7: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0xc18] ADD EAX,0xc MOV dword ptr [RBP + -0x4],EAX LAB_0017f807: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int end_of_previous_entry(long param_1,long param_2,ushort *param_3) { ushort *local_30; local_30 = (ushort *)(param_2 + 4); while( true ) { if (param_3 <= local_30) { return *(int *)(param_1 + 0xc18) + 0xc; } if (*local_30 != 0) break; local_30 = local_30 + 2; } return (uint)*local_30 + (uint)local_30[1]; }
44,046
mi_write_blob_record
eloqsql/storage/myisam/mi_dynrec.c
int _mi_write_blob_record(MI_INFO *info, const uchar *record) { uchar *rec_buff; int error; ulong reclength,reclength2,extra; extra= (ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER)+MI_SPLIT_LENGTH+ MI_DYN_DELETE_BLOCK_HEADER+1); reclength= (info->s->base.pack_reclength + _mi_calc_total_blob_length(info,record)+ extra); if (!(rec_buff=(uchar*) my_alloca(reclength))) { my_errno= HA_ERR_OUT_OF_MEM; /* purecov: inspected */ return(-1); } reclength2= _mi_rec_pack(info,rec_buff+ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER), record); DBUG_PRINT("info",("reclength: %lu reclength2: %lu", reclength, reclength2)); DBUG_ASSERT(reclength2 <= reclength); error=write_dynamic_record(info,rec_buff+ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER), reclength2); my_afree(rec_buff); return(error); }
O3
c
mi_write_blob_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rax movq 0x148(%rax), %r15 callq 0x77910 leaq (%r15,%rax), %rsi addq $0x5d, %rsi xorl %edi, %edi xorl %edx, %edx callq 0x9fc95 testq %rax, %rax je 0x778f7 movq %rax, %r15 movq %rax, %r12 addq $0x18, %r12 movq %rbx, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x76fd6 movl %eax, %edx movq %rbx, %rdi movq %r12, %rsi callq 0x77348 movl %eax, %ebx movq %r15, %rdi callq 0x9fec2 movl %ebx, %eax jmp 0x77907 callq 0xa1a06 movl $0x80, (%rax) movl $0xffffffff, %eax # imm = 0xFFFFFFFF popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
_mi_write_blob_record: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r14, rsi mov rbx, rdi mov rax, [rdi] mov r15, [rax+148h] call _mi_calc_total_blob_length lea rsi, [r15+rax] add rsi, 5Dh ; ']' xor edi, edi xor edx, edx call my_malloc test rax, rax jz short loc_778F7 mov r15, rax mov r12, rax add r12, 18h mov rdi, rbx mov rsi, r12 mov rdx, r14 call _mi_rec_pack mov edx, eax mov rdi, rbx mov rsi, r12 call write_dynamic_record_0 mov ebx, eax mov rdi, r15 call my_free mov eax, ebx jmp short loc_77907 loc_778F7: call _my_thread_var mov dword ptr [rax], 80h mov eax, 0FFFFFFFFh loc_77907: pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long mi_write_blob_record(_BYTE *a1, char *a2) { long long v3; // r15 const char *v4; // rsi long long v5; // rax long long v6; // r15 long long v7; // r12 unsigned int v8; // eax unsigned int v9; // ebx v3 = *(_QWORD *)(*(_QWORD *)a1 + 328LL); v4 = (const char *)(v3 + mi_calc_total_blob_length() + 93); v5 = my_malloc(0LL, v4, 0LL); if ( v5 ) { v6 = v5; v7 = v5 + 24; v8 = mi_rec_pack((long long)a1, (_BYTE *)(v5 + 24), a2); v9 = write_dynamic_record_0(a1, v7, v8); my_free(v6); return v9; } else { *(_DWORD *)my_thread_var(0LL, v4) = 128; return 0xFFFFFFFFLL; } }
_mi_write_blob_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RDI] MOV R15,qword ptr [RAX + 0x148] CALL 0x00177910 LEA RSI,[R15 + RAX*0x1] ADD RSI,0x5d XOR EDI,EDI XOR EDX,EDX CALL 0x0019fc95 TEST RAX,RAX JZ 0x001778f7 MOV R15,RAX MOV R12,RAX ADD R12,0x18 MOV RDI,RBX MOV RSI,R12 MOV RDX,R14 CALL 0x00176fd6 MOV EDX,EAX MOV RDI,RBX MOV RSI,R12 CALL 0x00177348 MOV EBX,EAX MOV RDI,R15 CALL 0x0019fec2 MOV EAX,EBX JMP 0x00177907 LAB_001778f7: CALL 0x001a1a06 MOV dword ptr [RAX],0x80 MOV EAX,0xffffffff LAB_00177907: POP RBX POP R12 POP R14 POP R15 POP RBP RET
int4 _mi_write_blob_record(long *param_1,int8 param_2) { int4 uVar1; long lVar2; long lVar3; int4 *puVar4; lVar3 = *(long *)(*param_1 + 0x148); lVar2 = _mi_calc_total_blob_length(); lVar3 = my_malloc(0,lVar3 + lVar2 + 0x5d,0); if (lVar3 == 0) { puVar4 = (int4 *)_my_thread_var(); *puVar4 = 0x80; uVar1 = 0xffffffff; } else { uVar1 = _mi_rec_pack(param_1,lVar3 + 0x18,param_2); uVar1 = write_dynamic_record(param_1,lVar3 + 0x18,uVar1); my_free(lVar3); } return uVar1; }
44,047
Sort_param::get_sort_length(unsigned char*)
eloqsql/sql/sql_sort.h
uint32 get_sort_length(uchar *plen) { if (using_packed_sortkeys()) return Sort_keys::read_sortkey_length(plen) + /* when addon fields are not present, then the sort_length also includes the res_length. For packed keys here we add the res_length */ (using_addon_fields() ? 0: res_length); else return sort_length; }
O0
c
Sort_param::get_sort_length(unsigned char*): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x20(%rbp) callq 0xc16c00 testb $0x1, %al jne 0xc17ae3 jmp 0xc17b1c movq -0x18(%rbp), %rdi callq 0xc17040 movq -0x20(%rbp), %rdi movl %eax, -0x24(%rbp) callq 0xc16850 testb $0x1, %al jne 0xc17afe jmp 0xc17b05 xorl %eax, %eax movl %eax, -0x28(%rbp) jmp 0xc17b0f movq -0x20(%rbp), %rax movl 0x10(%rax), %eax movl %eax, -0x28(%rbp) movl -0x24(%rbp), %eax movl -0x28(%rbp), %ecx addl %ecx, %eax movl %eax, -0x4(%rbp) jmp 0xc17b26 movq -0x20(%rbp), %rax movl 0x4(%rax), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nop
_ZN10Sort_param15get_sort_lengthEPh: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rdi, [rbp+var_10]; this mov [rbp+var_20], rdi call _ZNK10Sort_param21using_packed_sortkeysEv; Sort_param::using_packed_sortkeys(void) test al, 1 jnz short loc_C17AE3 jmp short loc_C17B1C loc_C17AE3: mov rdi, [rbp+var_18]; this call _ZN9Sort_keys19read_sortkey_lengthEPh; Sort_keys::read_sortkey_length(uchar *) mov rdi, [rbp+var_20]; this mov [rbp+var_24], eax call _ZNK10Sort_param18using_addon_fieldsEv; Sort_param::using_addon_fields(void) test al, 1 jnz short loc_C17AFE jmp short loc_C17B05 loc_C17AFE: xor eax, eax mov [rbp+var_28], eax jmp short loc_C17B0F loc_C17B05: mov rax, [rbp+var_20] mov eax, [rax+10h] mov [rbp+var_28], eax loc_C17B0F: mov eax, [rbp+var_24] mov ecx, [rbp+var_28] add eax, ecx mov [rbp+var_4], eax jmp short loc_C17B26 loc_C17B1C: mov rax, [rbp+var_20] mov eax, [rax+4] mov [rbp+var_4], eax loc_C17B26: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long Sort_param::get_sort_length(Sort_param *this, Sort_keys *a2) { int v3; // [rsp+8h] [rbp-28h] int sortkey_length; // [rsp+Ch] [rbp-24h] if ( (Sort_param::using_packed_sortkeys(this) & 1) != 0 ) { sortkey_length = Sort_keys::read_sortkey_length(a2, (unsigned __int8 *)a2); if ( Sort_param::using_addon_fields(this) ) v3 = 0; else v3 = *((_DWORD *)this + 4); return (unsigned int)(v3 + sortkey_length); } else { return (unsigned int)*((_DWORD *)this + 1); } }
Item_func_spatial_collection: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV dword ptr [RBP + -0x20],R8D MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x28],RDI MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] CALL 0x00c17d70 MOV RAX,qword ptr [RBP + -0x28] LEA RCX,[0x1b458d8] ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV ECX,dword ptr [RBP + -0x1c] MOV dword ptr [RAX + 0xa8],ECX MOV ECX,dword ptr [RBP + -0x20] MOV dword ptr [RAX + 0xac],ECX ADD RSP,0x30 POP RBP RET
/* Item_func_spatial_collection::Item_func_spatial_collection(THD*, List<Item>&, Geometry::wkbType, Geometry::wkbType) */ void __thiscall Item_func_spatial_collection::Item_func_spatial_collection (Item_func_spatial_collection *this,THD *param_1,List *param_2,int4 param_4, int4 param_5) { Item_geometry_func::Item_geometry_func((Item_geometry_func *)this,param_1,param_2); *(int ***)this = &PTR__Item_func_spatial_collection_01b458e8; *(int4 *)(this + 0xa8) = param_4; *(int4 *)(this + 0xac) = param_5; return; }
44,048
httplib::Server::process_and_close_socket(int)
nickolajgrishuk[P]metricz-cpp/build_O2/_deps/httplib-src/httplib.h
inline bool Server::process_and_close_socket(socket_t sock) { auto ret = detail::process_server_socket( svr_sock_, sock, keep_alive_max_count_, keep_alive_timeout_sec_, read_timeout_sec_, read_timeout_usec_, write_timeout_sec_, write_timeout_usec_, [this](Stream &strm, bool close_connection, bool &connection_closed) { return process_request(strm, close_connection, connection_closed, nullptr); }); detail::shutdown_socket(sock); detail::close_socket(sock); return ret; }
O2
c
httplib::Server::process_and_close_socket(int): pushq %rbp pushq %rbx subq $0x18, %rsp movl %esi, %ebx leaq 0x28(%rdi), %rax movq 0x30(%rdi), %rdx movq 0x38(%rdi), %rcx movq 0x40(%rdi), %r8 movq 0x48(%rdi), %r9 movups 0x50(%rdi), %xmm0 movq %rdi, 0x10(%rsp) movups %xmm0, (%rsp) movq %rax, %rdi callq 0x158dd movl %eax, %ebp movl %ebx, %edi callq 0x9e5c movl %ebx, %edi callq 0x8a80 movl %ebp, %eax addq $0x18, %rsp popq %rbx popq %rbp retq
_ZN7httplib6Server24process_and_close_socketEi: push rbp push rbx sub rsp, 18h mov ebx, esi lea rax, [rdi+28h] mov rdx, [rdi+30h] mov rcx, [rdi+38h] mov r8, [rdi+40h] mov r9, [rdi+48h] movups xmm0, xmmword ptr [rdi+50h] mov [rsp+28h+var_18], rdi movups [rsp+28h+var_28], xmm0 mov rdi, rax call _ZN7httplib6detail21process_server_socketIZNS_6Server24process_and_close_socketEiEUlRNS_6StreamEbRbE_EEbRKSt6atomicIiEimlllllT_; httplib::detail::process_server_socket<httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream &,bool,bool &)#1}>(std::atomic<int> const&,int,ulong,long,long,long,long,long,httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream &,bool,bool &)#1}) mov ebp, eax mov edi, ebx; this call _ZN7httplib6detail15shutdown_socketEi; httplib::detail::shutdown_socket(int) mov edi, ebx call _close mov eax, ebp add rsp, 18h pop rbx pop rbp retn
long long httplib::Server::process_and_close_socket(httplib::Server *this, unsigned int a2) { unsigned int v2; // ebp v2 = httplib::detail::process_server_socket<httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream &,bool,bool &)#1}>( (int)this + 40, a2, *((_QWORD *)this + 6), *((_QWORD *)this + 7), *((_QWORD *)this + 8), *((_QWORD *)this + 9), *((_OWORD *)this + 5), *((_QWORD *)this + 11), (long long)this); httplib::detail::shutdown_socket((httplib::detail *)a2, a2); close(a2); return v2; }
process_and_close_socket: PUSH RBP PUSH RBX SUB RSP,0x18 MOV EBX,ESI LEA RAX,[RDI + 0x28] MOV RDX,qword ptr [RDI + 0x30] MOV RCX,qword ptr [RDI + 0x38] MOV R8,qword ptr [RDI + 0x40] MOV R9,qword ptr [RDI + 0x48] MOVUPS XMM0,xmmword ptr [RDI + 0x50] MOV qword ptr [RSP + 0x10],RDI MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,RAX CALL 0x001158dd MOV EBP,EAX MOV EDI,EBX CALL 0x00109e5c MOV EDI,EBX CALL 0x00108a80 MOV EAX,EBP ADD RSP,0x18 POP RBX POP RBP RET
/* httplib::Server::process_and_close_socket(int) */ ulong __thiscall httplib::Server::process_and_close_socket(Server *this,int param_1) { bool bVar1; int7 extraout_var; bVar1 = detail:: process_server_socket<httplib::Server::process_and_close_socket(int)::_lambda(httplib::Stream&,bool,bool&)_1_> (this + 0x28,param_1,*(int8 *)(this + 0x30),*(int8 *)(this + 0x38), *(int8 *)(this + 0x40),*(int8 *)(this + 0x48), *(int4 *)(this + 0x50),*(int4 *)(this + 0x58),this); detail::shutdown_socket(param_1); close(param_1); return CONCAT71(extraout_var,bVar1) & 0xffffffff; }
44,049
JS_ThrowTypeErrorOrFalse
bluesky950520[P]quickjs/quickjs.c
static int __attribute__((format(printf, 3, 4))) JS_ThrowTypeErrorOrFalse(JSContext *ctx, int flags, const char *fmt, ...) { va_list ap; if ((flags & JS_PROP_THROW) || ((flags & JS_PROP_THROW_STRICT) && is_strict_mode(ctx))) { va_start(ap, fmt); JS_ThrowError(ctx, JS_TYPE_ERROR, fmt, ap); va_end(ap); return -1; } else { return FALSE; } }
O0
c
JS_ThrowTypeErrorOrFalse: subq $0xf8, %rsp testb %al, %al je 0x3ba1c movaps %xmm0, 0x30(%rsp) movaps %xmm1, 0x40(%rsp) movaps %xmm2, 0x50(%rsp) movaps %xmm3, 0x60(%rsp) movaps %xmm4, 0x70(%rsp) movaps %xmm5, 0x80(%rsp) movaps %xmm6, 0x90(%rsp) movaps %xmm7, 0xa0(%rsp) movq %r9, 0x28(%rsp) movq %r8, 0x20(%rsp) movq %rcx, 0x18(%rsp) movq %rdi, 0xe8(%rsp) movl %esi, 0xe4(%rsp) movq %rdx, 0xd8(%rsp) movl 0xe4(%rsp), %eax andl $0x4000, %eax # imm = 0x4000 cmpl $0x0, %eax jne 0x3ba7a movl 0xe4(%rsp), %eax andl $0x8000, %eax # imm = 0x8000 cmpl $0x0, %eax je 0x3bae9 movq 0xe8(%rsp), %rdi callq 0x3e230 cmpl $0x0, %eax je 0x3bae9 leaq 0xc0(%rsp), %rax movq %rsp, %rcx movq %rcx, 0x10(%rax) leaq 0x100(%rsp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x18, (%rax) movq 0xe8(%rsp), %rdi movq 0xd8(%rsp), %rdx leaq 0xc0(%rsp), %rcx movl $0x4, %esi callq 0x33430 movq %rax, 0xb0(%rsp) movq %rdx, 0xb8(%rsp) leaq 0xc0(%rsp), %rax movl $0xffffffff, 0xf4(%rsp) # imm = 0xFFFFFFFF jmp 0x3baf4 movl $0x0, 0xf4(%rsp) movl 0xf4(%rsp), %eax addq $0xf8, %rsp retq nopw %cs:(%rax,%rax)
JS_ThrowTypeErrorOrFalse: sub rsp, 0F8h test al, al jz short loc_3BA1C movaps [rsp+0F8h+var_C8], xmm0 movaps [rsp+0F8h+var_B8], xmm1 movaps [rsp+0F8h+var_A8], xmm2 movaps [rsp+0F8h+var_98], xmm3 movaps [rsp+0F8h+var_88], xmm4 movaps [rsp+0F8h+var_78], xmm5 movaps [rsp+0F8h+var_68], xmm6 movaps [rsp+0F8h+var_58], xmm7 loc_3BA1C: mov [rsp+0F8h+var_D0], r9 mov [rsp+0F8h+var_D8], r8 mov [rsp+0F8h+var_E0], rcx mov [rsp+0F8h+var_10], rdi mov [rsp+0F8h+var_14], esi mov [rsp+0F8h+var_20], rdx mov eax, [rsp+0F8h+var_14] and eax, 4000h cmp eax, 0 jnz short loc_3BA7A mov eax, [rsp+0F8h+var_14] and eax, 8000h cmp eax, 0 jz loc_3BAE9 mov rdi, [rsp+0F8h+var_10] call is_strict_mode cmp eax, 0 jz short loc_3BAE9 loc_3BA7A: lea rax, [rsp+0F8h+var_38] mov rcx, rsp mov [rax+10h], rcx lea rcx, [rsp+0F8h+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 18h mov rdi, [rsp+0F8h+var_10] mov rdx, [rsp+0F8h+var_20] lea rcx, [rsp+0F8h+var_38] mov esi, 4 call JS_ThrowError mov [rsp+0F8h+var_48], rax mov [rsp+0F8h+var_40], rdx lea rax, [rsp+0F8h+var_38] mov [rsp+0F8h+var_4], 0FFFFFFFFh jmp short loc_3BAF4 loc_3BAE9: mov [rsp+0F8h+var_4], 0 loc_3BAF4: mov eax, [rsp+0F8h+var_4] add rsp, 0F8h retn
long long JS_ThrowTypeErrorOrFalse(long long a1, int a2, long long a3, ...) { va_list va; // [rsp+C0h] [rbp-38h] BYREF long long v5; // [rsp+D8h] [rbp-20h] int v6; // [rsp+E4h] [rbp-14h] long long v7; // [rsp+E8h] [rbp-10h] v7 = a1; v6 = a2; v5 = a3; if ( (a2 & 0x4000) != 0 || (v6 & 0x8000) != 0 && (unsigned int)is_strict_mode(v7) ) { va_start(va, a3); JS_ThrowError(v7, 4u, v5, (long long)va); return (unsigned int)-1; } else { return 0; } }
JS_ThrowTypeErrorOrFalse: SUB RSP,0xf8 TEST AL,AL JZ 0x0013ba1c MOVAPS xmmword ptr [RSP + 0x30],XMM0 MOVAPS xmmword ptr [RSP + 0x40],XMM1 MOVAPS xmmword ptr [RSP + 0x50],XMM2 MOVAPS xmmword ptr [RSP + 0x60],XMM3 MOVAPS xmmword ptr [RSP + 0x70],XMM4 MOVAPS xmmword ptr [RSP + 0x80],XMM5 MOVAPS xmmword ptr [RSP + 0x90],XMM6 MOVAPS xmmword ptr [RSP + 0xa0],XMM7 LAB_0013ba1c: MOV qword ptr [RSP + 0x28],R9 MOV qword ptr [RSP + 0x20],R8 MOV qword ptr [RSP + 0x18],RCX MOV qword ptr [RSP + 0xe8],RDI MOV dword ptr [RSP + 0xe4],ESI MOV qword ptr [RSP + 0xd8],RDX MOV EAX,dword ptr [RSP + 0xe4] AND EAX,0x4000 CMP EAX,0x0 JNZ 0x0013ba7a MOV EAX,dword ptr [RSP + 0xe4] AND EAX,0x8000 CMP EAX,0x0 JZ 0x0013bae9 MOV RDI,qword ptr [RSP + 0xe8] CALL 0x0013e230 CMP EAX,0x0 JZ 0x0013bae9 LAB_0013ba7a: LEA RAX,[RSP + 0xc0] MOV RCX,RSP MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RSP + 0x100] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x18 MOV RDI,qword ptr [RSP + 0xe8] MOV RDX,qword ptr [RSP + 0xd8] LEA RCX,[RSP + 0xc0] MOV ESI,0x4 CALL 0x00133430 MOV qword ptr [RSP + 0xb0],RAX MOV qword ptr [RSP + 0xb8],RDX LEA RAX,[RSP + 0xc0] MOV dword ptr [RSP + 0xf4],0xffffffff JMP 0x0013baf4 LAB_0013bae9: MOV dword ptr [RSP + 0xf4],0x0 LAB_0013baf4: MOV EAX,dword ptr [RSP + 0xf4] ADD RSP,0xf8 RET
int4 JS_ThrowTypeErrorOrFalse (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 param_9,uint param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; int iVar1; int1 auStack_f8 [24]; int8 local_e0; int8 local_d8; int8 local_d0; int8 local_c8; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int4 local_38; int4 local_34; int1 *local_30; int1 *local_28; int8 local_20; uint local_14; int8 local_10; int4 local_4; if (in_AL != '\0') { local_c8 = param_1; local_b8 = param_2; local_a8 = param_3; local_98 = param_4; local_88 = param_5; local_78 = param_6; local_68 = param_7; local_58 = param_8; } local_e0 = param_12; local_d8 = param_13; local_d0 = param_14; local_20 = param_11; local_14 = param_10; local_10 = param_9; if ((param_10 & 0x4000) == 0) { if ((param_10 & 0x8000) != 0) { iVar1 = is_strict_mode(param_9); if (iVar1 != 0) goto LAB_0013ba7a; } local_4 = 0; } else { LAB_0013ba7a: local_30 = &stack0x00000008; local_34 = 0x30; local_38 = 0x18; local_28 = auStack_f8; JS_ThrowError(local_10,4,local_20,&local_38); local_4 = 0xffffffff; } return local_4; }
44,050
JS_ThrowTypeErrorOrFalse
bluesky950520[P]quickjs/quickjs.c
static int __attribute__((format(printf, 3, 4))) JS_ThrowTypeErrorOrFalse(JSContext *ctx, int flags, const char *fmt, ...) { va_list ap; if ((flags & JS_PROP_THROW) || ((flags & JS_PROP_THROW_STRICT) && is_strict_mode(ctx))) { va_start(ap, fmt); JS_ThrowError(ctx, JS_TYPE_ERROR, fmt, ap); va_end(ap); return -1; } else { return FALSE; } }
O2
c
JS_ThrowTypeErrorOrFalse: subq $0xd8, %rsp movq %rcx, 0x38(%rsp) movq %r8, 0x40(%rsp) movq %r9, 0x48(%rsp) testb %al, %al je 0x23907 movaps %xmm0, 0x50(%rsp) movaps %xmm1, 0x60(%rsp) movaps %xmm2, 0x70(%rsp) movaps %xmm3, 0x80(%rsp) movaps %xmm4, 0x90(%rsp) movaps %xmm5, 0xa0(%rsp) movaps %xmm6, 0xb0(%rsp) movaps %xmm7, 0xc0(%rsp) btl $0xe, %esi jb 0x2392a xorl %eax, %eax testw %si, %si jns 0x2395a movq 0x18(%rdi), %rcx movq 0x108(%rcx), %rcx testq %rcx, %rcx je 0x2395a cmpl $0x0, 0x40(%rcx) jns 0x2395a leaq 0x20(%rsp), %rax movq %rsp, %rcx movq %rax, 0x10(%rcx) leaq 0xe0(%rsp), %rax movq %rax, 0x8(%rcx) movabsq $0x3000000018, %rax # imm = 0x3000000018 movq %rax, (%rcx) pushq $0x4 popq %rsi callq 0x20101 pushq $-0x1 popq %rax addq $0xd8, %rsp retq
JS_ThrowTypeErrorOrFalse: sub rsp, 0D8h mov [rsp+0D8h+var_A0], rcx mov [rsp+0D8h+var_98], r8 mov [rsp+0D8h+var_90], r9 test al, al jz short loc_23907 movaps [rsp+0D8h+var_88], xmm0 movaps [rsp+0D8h+var_78], xmm1 movaps [rsp+0D8h+var_68], xmm2 movaps [rsp+0D8h+var_58], xmm3 movaps [rsp+0D8h+var_48], xmm4 movaps [rsp+0D8h+var_38], xmm5 movaps [rsp+0D8h+var_28], xmm6 movaps [rsp+0D8h+var_18], xmm7 loc_23907: bt esi, 0Eh jb short loc_2392A xor eax, eax test si, si jns short loc_2395A mov rcx, [rdi+18h] mov rcx, [rcx+108h] test rcx, rcx jz short loc_2395A cmp dword ptr [rcx+40h], 0 jns short loc_2395A loc_2392A: lea rax, [rsp+0D8h+var_B8] mov rcx, rsp mov [rcx+10h], rax lea rax, [rsp+0D8h+arg_0] mov [rcx+8], rax mov rax, 3000000018h mov [rcx], rax push 4 pop rsi call JS_ThrowError push 0FFFFFFFFFFFFFFFFh pop rax loc_2395A: add rsp, 0D8h retn
long long JS_ThrowTypeErrorOrFalse(long long a1, __int16 a2, long long a3, ...) { long long result; // rax long long v4; // rcx va_list va; // [rsp+0h] [rbp-D8h] BYREF if ( (a2 & 0x4000) != 0 || (result = 0LL, a2 < 0) && (v4 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 264LL)) != 0 && *(int *)(v4 + 64) < 0 ) { va_start(va, a3); JS_ThrowError(a1, 4LL, a3, (long long)va); return -1LL; } return result; }
JS_ThrowTypeErrorOrFalse: SUB RSP,0xd8 MOV qword ptr [RSP + 0x38],RCX MOV qword ptr [RSP + 0x40],R8 MOV qword ptr [RSP + 0x48],R9 TEST AL,AL JZ 0x00123907 MOVAPS xmmword ptr [RSP + 0x50],XMM0 MOVAPS xmmword ptr [RSP + 0x60],XMM1 MOVAPS xmmword ptr [RSP + 0x70],XMM2 MOVAPS xmmword ptr [RSP + 0x80],XMM3 MOVAPS xmmword ptr [RSP + 0x90],XMM4 MOVAPS xmmword ptr [RSP + 0xa0],XMM5 MOVAPS xmmword ptr [RSP + 0xb0],XMM6 MOVAPS xmmword ptr [RSP + 0xc0],XMM7 LAB_00123907: BT ESI,0xe JC 0x0012392a XOR EAX,EAX TEST SI,SI JNS 0x0012395a MOV RCX,qword ptr [RDI + 0x18] MOV RCX,qword ptr [RCX + 0x108] TEST RCX,RCX JZ 0x0012395a CMP dword ptr [RCX + 0x40],0x0 JNS 0x0012395a LAB_0012392a: LEA RAX,[RSP + 0x20] MOV RCX,RSP MOV qword ptr [RCX + 0x10],RAX LEA RAX,[RSP + 0xe0] MOV qword ptr [RCX + 0x8],RAX MOV RAX,0x3000000018 MOV qword ptr [RCX],RAX PUSH 0x4 POP RSI CALL 0x00120101 PUSH -0x1 POP RAX LAB_0012395a: ADD RSP,0xd8 RET
int8 JS_ThrowTypeErrorOrFalse(long param_1,uint param_2) { long lVar1; int8 uVar2; if (((param_2 >> 0xe & 1) != 0) || (((uVar2 = 0, (short)param_2 < 0 && (lVar1 = *(long *)(*(long *)(param_1 + 0x18) + 0x108), lVar1 != 0)) && (*(int *)(lVar1 + 0x40) < 0)))) { JS_ThrowError(param_1,4); uVar2 = 0xffffffffffffffff; } return uVar2; }
44,051
ggml_diag_mask_inf_impl
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
static struct ggml_tensor * ggml_diag_mask_inf_impl( struct ggml_context * ctx, struct ggml_tensor * a, int n_past, bool inplace) { struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); int32_t params[] = { n_past }; ggml_set_op_params(result, params, sizeof(params)); result->op = GGML_OP_DIAG_MASK_INF; result->src[0] = a; return result; }
O0
c
ggml_diag_mask_inf_impl: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movb %cl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) andb $0x1, %al movb %al, -0x15(%rbp) testb $0x1, -0x15(%rbp) je 0x506f3 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x428f0 movq %rax, -0x30(%rbp) jmp 0x50704 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x45d90 movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x20(%rbp) movl -0x14(%rbp), %eax movl %eax, -0x24(%rbp) movq -0x20(%rbp), %rdi leaq -0x24(%rbp), %rsi movl $0x4, %edx callq 0x4e370 movq -0x20(%rbp), %rax movl $0x28, 0x50(%rax) movq -0x10(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x98(%rax) movq -0x20(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
ggml_diag_mask_inf_impl: push rbp mov rbp, rsp sub rsp, 30h mov al, cl mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx and al, 1 mov [rbp+var_15], al test [rbp+var_15], 1 jz short loc_506F3 mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call _ggml_view_tensor mov [rbp+var_30], rax jmp short loc_50704 loc_506F3: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call _ggml_dup_tensor mov [rbp+var_30], rax loc_50704: mov rax, [rbp+var_30] mov [rbp+var_20], rax mov eax, [rbp+var_14] mov [rbp+var_24], eax mov rdi, [rbp+var_20] lea rsi, [rbp+var_24] mov edx, 4 call ggml_set_op_params mov rax, [rbp+var_20] mov dword ptr [rax+50h], 28h ; '(' mov rcx, [rbp+var_10] mov rax, [rbp+var_20] mov [rax+98h], rcx mov rax, [rbp+var_20] add rsp, 30h pop rbp retn
long long ggml_diag_mask_inf_impl( long long a1, unsigned int *a2, int a3, char a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, double a9, double a10, __m128 a11, __m128 a12) { long long v13; // [rsp+0h] [rbp-30h] int v14; // [rsp+Ch] [rbp-24h] BYREF long long v15; // [rsp+10h] [rbp-20h] char v16; // [rsp+1Bh] [rbp-15h] int v17; // [rsp+1Ch] [rbp-14h] unsigned int *v18; // [rsp+20h] [rbp-10h] long long v19; // [rsp+28h] [rbp-8h] v19 = a1; v18 = a2; v17 = a3; v16 = a4 & 1; if ( (a4 & 1) != 0 ) v13 = (long long)ggml_view_tensor(v19, (long long)v18, a5, a6, a7, a8, a9, a10, a11, a12); else v13 = ggml_dup_tensor(v19, v18); v15 = v13; v14 = v17; ggml_set_op_params(v13, (long long)&v14, 4uLL); *(_DWORD *)(v15 + 80) = 40; *(_QWORD *)(v15 + 152) = v18; return v15; }
ggml_diag_mask_inf_impl: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV AL,CL MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX AND AL,0x1 MOV byte ptr [RBP + -0x15],AL TEST byte ptr [RBP + -0x15],0x1 JZ 0x001506f3 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x001428f0 MOV qword ptr [RBP + -0x30],RAX JMP 0x00150704 LAB_001506f3: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x00145d90 MOV qword ptr [RBP + -0x30],RAX LAB_00150704: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x20],RAX MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x24],EAX MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x24] MOV EDX,0x4 CALL 0x0014e370 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x50],0x28 MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x98],RCX MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0x30 POP RBP RET
long ggml_diag_mask_inf_impl(int8 param_1,int8 param_2,int4 param_3,byte param_4) { long local_38; int4 local_2c; long local_28; byte local_1d; int4 local_1c; int8 local_18; int8 local_10; local_1d = param_4 & 1; local_1c = param_3; local_18 = param_2; local_10 = param_1; if (local_1d == 0) { local_38 = ggml_dup_tensor(param_1,param_2); } else { local_38 = ggml_view_tensor(param_1,param_2); } local_28 = local_38; local_2c = local_1c; ggml_set_op_params(local_38,&local_2c,4); *(int4 *)(local_28 + 0x50) = 0x28; *(int8 *)(local_28 + 0x98) = local_18; return local_28; }
44,052
ggml_diag_mask_inf_impl
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
static struct ggml_tensor * ggml_diag_mask_inf_impl( struct ggml_context * ctx, struct ggml_tensor * a, int n_past, bool inplace) { struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); int32_t params[] = { n_past }; ggml_set_op_params(result, params, sizeof(params)); result->op = GGML_OP_DIAG_MASK_INF; result->src[0] = a; return result; }
O2
c
ggml_diag_mask_inf_impl: pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movl %edx, %ebp movq %rsi, %rbx testl %ecx, %ecx je 0x23632 callq 0x1d410 jmp 0x23637 callq 0x1e7a0 movq %rax, %r14 leaq 0xc(%rsp), %rsi movl %ebp, (%rsi) pushq $0x4 popq %rdx movq %rax, %rdi callq 0x2221d movl $0x28, 0x50(%r14) movq %rbx, 0x98(%r14) movq %r14, %rax addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq
ggml_diag_mask_inf_impl: push rbp push r14 push rbx sub rsp, 10h mov ebp, edx mov rbx, rsi test ecx, ecx jz short loc_23632 call _ggml_view_tensor jmp short loc_23637 loc_23632: call _ggml_dup_tensor loc_23637: mov r14, rax lea rsi, [rsp+28h+var_1C] mov [rsi], ebp push 4 pop rdx mov rdi, rax call ggml_set_op_params mov dword ptr [r14+50h], 28h ; '(' mov [r14+98h], rbx mov rax, r14 add rsp, 10h pop rbx pop r14 pop rbp retn
long long ggml_diag_mask_inf_impl( long long a1, unsigned int *a2, int a3, int a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12) { long long v13; // rax long long v14; // rcx long long v15; // r8 long long v16; // r9 __m128 v17; // xmm4 __m128 v18; // xmm5 long long v19; // r14 int v21[7]; // [rsp+Ch] [rbp-1Ch] BYREF if ( a4 ) v13 = ggml_view_tensor(a1, (long long)a2, a5, a6, a7, a8, a9, a10, a11, a12); else v13 = ggml_dup_tensor(a1, a2); v19 = v13; v21[0] = a3; ggml_set_op_params(v13, (long long)v21, 4LL, a5, a6, a7, a8, v17, v18, a11, a12, v14, v15, v16); *(_DWORD *)(v19 + 80) = 40; *(_QWORD *)(v19 + 152) = a2; return v19; }
ggml_diag_mask_inf_impl: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x10 MOV EBP,EDX MOV RBX,RSI TEST ECX,ECX JZ 0x00123632 CALL 0x0011d410 JMP 0x00123637 LAB_00123632: CALL 0x0011e7a0 LAB_00123637: MOV R14,RAX LEA RSI,[RSP + 0xc] MOV dword ptr [RSI],EBP PUSH 0x4 POP RDX MOV RDI,RAX CALL 0x0012221d MOV dword ptr [R14 + 0x50],0x28 MOV qword ptr [R14 + 0x98],RBX MOV RAX,R14 ADD RSP,0x10 POP RBX POP R14 POP RBP RET
long ggml_diag_mask_inf_impl(int8 param_1,int8 param_2,int4 param_3,int param_4) { long lVar1; int4 local_1c; if (param_4 == 0) { lVar1 = ggml_dup_tensor(); } else { lVar1 = ggml_view_tensor(); } local_1c = param_3; ggml_set_op_params(lVar1,&local_1c,4); *(int4 *)(lVar1 + 0x50) = 0x28; *(int8 *)(lVar1 + 0x98) = param_2; return lVar1; }
44,053
ggml_diag_mask_inf_impl
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
static struct ggml_tensor * ggml_diag_mask_inf_impl( struct ggml_context * ctx, struct ggml_tensor * a, int n_past, bool inplace) { struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); int32_t params[] = { n_past }; ggml_set_op_params(result, params, sizeof(params)); result->op = GGML_OP_DIAG_MASK_INF; result->src[0] = a; return result; }
O3
c
ggml_diag_mask_inf_impl: pushq %rbp pushq %rbx pushq %rax movl %edx, %ebp movq %rsi, %rbx testl %ecx, %ecx je 0x1ce35 movq %rbx, %rsi callq 0x16260 jmp 0x1ce4b movl (%rbx), %esi leaq 0x10(%rbx), %rcx movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x1a57f testq %rax, %rax je 0x1ce68 movl %ebp, 0x54(%rax) movl $0x28, 0x50(%rax) movq %rbx, 0x98(%rax) addq $0x8, %rsp popq %rbx popq %rbp retq leaq 0x318fa(%rip), %rdi # 0x4e769 leaq 0x2f7ef(%rip), %rdx # 0x4c665 leaq 0x31a19(%rip), %rcx # 0x4e896 movl $0x70, %esi xorl %eax, %eax callq 0x17cd0
ggml_diag_mask_inf_impl: push rbp push rbx push rax mov ebp, edx mov rbx, rsi test ecx, ecx jz short loc_1CE35 mov rsi, rbx call _ggml_view_tensor jmp short loc_1CE4B loc_1CE35: mov esi, [rbx] lea rcx, [rbx+10h] mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl loc_1CE4B: test rax, rax jz short loc_1CE68 mov [rax+54h], ebp mov dword ptr [rax+50h], 28h ; '(' mov [rax+98h], rbx add rsp, 8 pop rbx pop rbp retn loc_1CE68: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorNull; "tensor != NULL" mov esi, 70h ; 'p' xor eax, eax call _ggml_abort
long long ggml_diag_mask_inf_impl(long long a1, long long a2, int a3, int a4, double a5) { long long result; // rax int v7; // r8d int v8; // r9d if ( a4 ) result = ggml_view_tensor(a1, a2, a5); else result = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4u, (long long *)(a2 + 16), 0LL, 0LL, a5); if ( !result ) ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h", 112, (unsigned int)"GGML_ASSERT(%s) failed", (unsigned int)"tensor != NULL", v7, v8); *(_DWORD *)(result + 84) = a3; *(_DWORD *)(result + 80) = 40; *(_QWORD *)(result + 152) = a2; return result; }
ggml_diag_mask_inf_impl: PUSH RBP PUSH RBX PUSH RAX MOV EBP,EDX MOV RBX,RSI TEST ECX,ECX JZ 0x0011ce35 MOV RSI,RBX CALL 0x00116260 JMP 0x0011ce4b LAB_0011ce35: MOV ESI,dword ptr [RBX] LEA RCX,[RBX + 0x10] MOV EDX,0x4 XOR R8D,R8D XOR R9D,R9D CALL 0x0011a57f LAB_0011ce4b: TEST RAX,RAX JZ 0x0011ce68 MOV dword ptr [RAX + 0x54],EBP MOV dword ptr [RAX + 0x50],0x28 MOV qword ptr [RAX + 0x98],RBX ADD RSP,0x8 POP RBX POP RBP RET LAB_0011ce68: LEA RDI,[0x14e769] LEA RDX,[0x14c665] LEA RCX,[0x14e896] MOV ESI,0x70 XOR EAX,EAX CALL 0x00117cd0
void ggml_diag_mask_inf_impl(int8 param_1,int4 *param_2,int4 param_3,int param_4) { long lVar1; if (param_4 == 0) { lVar1 = ggml_new_tensor_impl(param_1,*param_2,4,param_2 + 4,0,0); } else { lVar1 = ggml_view_tensor(param_1,param_2); } if (lVar1 != 0) { *(int4 *)(lVar1 + 0x54) = param_3; *(int4 *)(lVar1 + 0x50) = 0x28; *(int4 **)(lVar1 + 0x98) = param_2; return; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h" ,0x70,"GGML_ASSERT(%s) failed","tensor != NULL"); }
44,054
OGL::StreamBuffer::DeleteFences()
Dolphin-anty/Source/Core/VideoBackends/OGL/OGLStreamBuffer.cpp
void StreamBuffer::DeleteFences() { for (int i = Slot(m_free_iterator) + 1; i < SYNC_POINTS; i++) { glDeleteSync(m_fences[i]); } for (int i = 0; i < Slot(m_iterator); i++) { glDeleteSync(m_fences[i]); } }
O3
cpp
OGL::StreamBuffer::DeleteFences(): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movl 0x1c(%rdi), %eax movl 0x20(%rdi), %ecx shrl %cl, %eax cmpl $0xe, %eax jg 0x44d4e7 movslq %eax, %r14 leaq 0x101eded(%rip), %r15 # 0x146c2c0 movq 0x30(%rbx,%r14,8), %rdi incq %r14 callq *(%r15) cmpq $0xf, %r14 jne 0x44d4d3 movl 0x20(%rbx), %ecx movl 0x14(%rbx), %eax shrl %cl, %eax testl %eax, %eax jle 0x44d514 xorl %r14d, %r14d leaq 0x101edc6(%rip), %r15 # 0x146c2c0 movq 0x28(%rbx,%r14,8), %rdi callq *(%r15) movl 0x14(%rbx), %eax movb 0x20(%rbx), %cl shrl %cl, %eax incq %r14 cltq cmpq %rax, %r14 jl 0x44d4fa popq %rbx popq %r14 popq %r15 retq
_ZN3OGL12StreamBuffer12DeleteFencesEv: push r15 push r14 push rbx mov rbx, rdi mov eax, [rdi+1Ch] mov ecx, [rdi+20h] shr eax, cl cmp eax, 0Eh jg short loc_44D4E7 movsxd r14, eax lea r15, dolDeleteSync loc_44D4D3: mov rdi, [rbx+r14*8+30h] inc r14 call qword ptr [r15] cmp r14, 0Fh jnz short loc_44D4D3 mov ecx, [rbx+20h] loc_44D4E7: mov eax, [rbx+14h] shr eax, cl test eax, eax jle short loc_44D514 xor r14d, r14d lea r15, dolDeleteSync loc_44D4FA: mov rdi, [rbx+r14*8+28h] call qword ptr [r15] mov eax, [rbx+14h] mov cl, [rbx+20h] shr eax, cl inc r14 cdqe cmp r14, rax jl short loc_44D4FA loc_44D514: pop rbx pop r14 pop r15 retn
long long OGL::StreamBuffer::DeleteFences(OGL::StreamBuffer *this) { int v2; // ecx int v3; // eax long long v4; // r14 long long v5; // rdi long long result; // rax long long i; // r14 v2 = *((_DWORD *)this + 8); v3 = *((_DWORD *)this + 7) >> v2; if ( v3 <= 14 ) { v4 = v3; do { v5 = *((_QWORD *)this + v4++ + 6); dolDeleteSync(v5); } while ( v4 != 15 ); v2 = *((_DWORD *)this + 8); } result = (unsigned int)(*((_DWORD *)this + 5) >> v2); if ( (_DWORD)result ) { for ( i = 0LL; i < result; ++i ) { dolDeleteSync(*((_QWORD *)this + i + 5)); result = (int)(*((_DWORD *)this + 5) >> *((_BYTE *)this + 32)); } } return result; }
RunCompressor: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV EBP,R8D MOV R14D,ECX MOV RBX,RDI MOV R12D,R8D SHL R12D,0x5 MOV R15D,R12D JZ 0x0044d4ff MOVZX EAX,SI XOR ECX,ECX LAB_0044d4d6: MOV ESI,dword ptr [RBX + RCX*0x4 + 0x48] MOV EDI,ESI NEG EDI CMOVS EDI,ESI CMP EDI,EAX JA 0x0044d526 MOV ESI,dword ptr [RBX + RCX*0x4 + 0x2c8] MOV EDI,ESI NEG EDI CMOVS EDI,ESI CMP EDI,EAX JA 0x0044d526 INC RCX CMP R15,RCX JNZ 0x0044d4d6 LAB_0044d4ff: MOVZX EAX,word ptr [RBX + 0x2ad4] TEST AX,AX JZ 0x0044d599 DEC EAX MOV word ptr [RBX + 0x2ad4],AX MOVZX EAX,AX ADD EAX,0xb IMUL EBP,EAX SHL EBP,0x6 JMP 0x0044d53a LAB_0044d526: MOVZX EAX,word ptr [RBX + 0x2ad4] IMUL EBP,EAX SHL EBP,0x6 MOV word ptr [RBX + 0x2ad4],DX LAB_0044d53a: MOV RAX,qword ptr [RBX + 0x18] MOV RDI,qword ptr [RAX + 0x98] CALL 0x003b681c ADD EBP,R14D MOV RDI,RAX MOV ESI,EBP CALL 0x00413fb2 TEST R12D,R12D JZ 0x0044d599 XOR ECX,ECX LAB_0044d55e: MOVZX EDX,word ptr [RAX + RCX*0x2] ROL DX,0x8 MOVSXD RSI,dword ptr [RBX + RCX*0x4 + 0x48] MOVZX EDX,DX IMUL RSI,RDX SHR RSI,0xf MOV dword ptr [RBX + RCX*0x4 + 0x48],ESI MOVSXD RSI,dword ptr [RBX + RCX*0x4 + 0x2c8] IMUL RSI,RDX SHR RSI,0xf MOV dword ptr [RBX + RCX*0x4 + 0x2c8],ESI INC RCX CMP R15,RCX JNZ 0x0044d55e LAB_0044d599: POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* DSP::HLE::AXUCode::RunCompressor(unsigned short, unsigned short, unsigned int, unsigned int) */ void __thiscall DSP::HLE::AXUCode::RunCompressor (AXUCode *this,ushort param_1,ushort param_2,uint param_3,uint param_4) { ushort uVar1; uint uVar2; long lVar3; ulong uVar4; ulong uVar5; uint uVar6; uint uVar7; int1 auVar8 [12]; uVar7 = param_4 << 5; if (uVar7 != 0) { uVar4 = 0; do { uVar2 = *(uint *)(this + uVar4 * 4 + 0x48); uVar6 = -uVar2; if (0 < (int)uVar2) { uVar6 = uVar2; } if (param_1 < uVar6) { LAB_0044d526: uVar2 = (uint)*(ushort *)(this + 0x2ad4); *(ushort *)(this + 0x2ad4) = param_2; goto LAB_0044d53a; } uVar2 = *(uint *)(this + uVar4 * 4 + 0x2c8); uVar6 = -uVar2; if (0 < (int)uVar2) { uVar6 = uVar2; } if (param_1 < uVar6) goto LAB_0044d526; uVar4 = uVar4 + 1; } while (uVar7 != uVar4); } if (*(short *)(this + 0x2ad4) != 0) { uVar1 = *(short *)(this + 0x2ad4) - 1; *(ushort *)(this + 0x2ad4) = uVar1; uVar2 = uVar1 + 0xb; LAB_0044d53a: auVar8 = Core::System::GetMemory(*(System **)(*(long *)(this + 0x18) + 0x98)); lVar3 = HLEMemory_Get_Pointer (auVar8._0_8_,(MemoryManager *)(ulong)(param_4 * uVar2 * 0x40 + param_3), auVar8._8_4_); if (uVar7 != 0) { uVar4 = 0; do { uVar1 = *(ushort *)(lVar3 + uVar4 * 2); uVar5 = (ulong)(ushort)(uVar1 << 8 | uVar1 >> 8); *(int *)(this + uVar4 * 4 + 0x48) = (int)((long)*(int *)(this + uVar4 * 4 + 0x48) * uVar5 >> 0xf); *(int *)(this + uVar4 * 4 + 0x2c8) = (int)((long)*(int *)(this + uVar4 * 4 + 0x2c8) * uVar5 >> 0xf); uVar4 = uVar4 + 1; } while (uVar7 != uVar4); } } return; }
44,055
test_vector_normalize
tsotchke[P]eshkol/tests/unit/test_vector.c
static void test_vector_normalize(void) { printf("Testing vector normalization...\n"); // Create an arena Arena* arena = arena_create(1024); assert(arena != NULL); // Create vector VectorF* a = vector_f_create(arena, 3); assert(a != NULL); // Set vector float a_data[3] = {3.0f, 4.0f, 0.0f}; assert(vector_f_set(a, a_data, 3)); // Normalize vector VectorF* b = vector_f_normalize(arena, a); assert(b != NULL); assert(b->dim == 3); assert(fabsf(b->data[0] - 0.6f) < 1e-6f && fabsf(b->data[1] - 0.8f) < 1e-6f && fabsf(b->data[2]) < 1e-6f); // Verify magnitude is 1 float mag = vector_f_magnitude(b); assert(fabsf(mag - 1.0f) < 1e-6f); // Destroy the arena arena_destroy(arena); printf("PASS: vector_normalize\n"); }
O0
c
test_vector_normalize: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp leaq 0x830f(%rip), %rdi # 0xa7ce movb $0x0, %al callq 0x1080 movl $0x400, %edi # imm = 0x400 callq 0x42a0 movq %rax, -0x8(%rbp) cmpq $0x0, -0x8(%rbp) je 0x24dd jmp 0x24fc leaq 0x7cf1(%rip), %rdi # 0xa1d5 leaq 0x7c46(%rip), %rsi # 0xa131 movl $0x125, %edx # imm = 0x125 leaq 0x82f8(%rip), %rcx # 0xa7ef callq 0x1090 movq -0x8(%rbp), %rdi movl $0x3, %esi callq 0x49a0 movq %rax, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) je 0x2517 jmp 0x2536 leaq 0x7cbb(%rip), %rdi # 0xa1d9 leaq 0x7c0c(%rip), %rsi # 0xa131 movl $0x129, %edx # imm = 0x129 leaq 0x82be(%rip), %rcx # 0xa7ef callq 0x1090 movq 0x8ee7(%rip), %rax # 0xb424 movq %rax, -0x1c(%rbp) movl 0x8ee5(%rip), %eax # 0xb42c movl %eax, -0x14(%rbp) movq -0x10(%rbp), %rdi leaq -0x1c(%rbp), %rsi movl $0x3, %edx callq 0x4d80 testb $0x1, %al jne 0x2562 jmp 0x2564 jmp 0x2583 leaq 0x7f48(%rip), %rdi # 0xa4b3 leaq 0x7bbf(%rip), %rsi # 0xa131 movl $0x12d, %edx # imm = 0x12D leaq 0x8271(%rip), %rcx # 0xa7ef callq 0x1090 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x6160 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) je 0x259d jmp 0x25bc leaq 0x7f05(%rip), %rdi # 0xa4a9 leaq 0x7b86(%rip), %rsi # 0xa131 movl $0x131, %edx # imm = 0x131 leaq 0x8238(%rip), %rcx # 0xa7ef callq 0x1090 movq -0x28(%rbp), %rax cmpq $0x3, 0x10(%rax) jne 0x25c9 jmp 0x25e8 leaq 0x94fd(%rip), %rdi # 0xbacd leaq 0x7b5a(%rip), %rsi # 0xa131 movl $0x132, %edx # imm = 0x132 leaq 0x820c(%rip), %rcx # 0xa7ef callq 0x1090 movq -0x28(%rbp), %rax movss (%rax), %xmm1 movss 0x7a34(%rip), %xmm0 # 0xa02c subss %xmm0, %xmm1 movaps 0x7a8d(%rip), %xmm0 # 0xa090 pand %xmm0, %xmm1 movss 0x7a19(%rip), %xmm0 # 0xa028 ucomiss %xmm1, %xmm0 jbe 0x2664 movq -0x28(%rbp), %rax movss 0x4(%rax), %xmm1 movss 0x7a0b(%rip), %xmm0 # 0xa030 subss %xmm0, %xmm1 movaps 0x7a60(%rip), %xmm0 # 0xa090 pand %xmm0, %xmm1 movss 0x79ec(%rip), %xmm0 # 0xa028 ucomiss %xmm1, %xmm0 jbe 0x2664 movq -0x28(%rbp), %rax movss 0x8(%rax), %xmm1 movaps 0x7a3f(%rip), %xmm0 # 0xa090 pand %xmm0, %xmm1 movss 0x79cb(%rip), %xmm0 # 0xa028 ucomiss %xmm1, %xmm0 jbe 0x2664 jmp 0x2683 leaq 0x81a5(%rip), %rdi # 0xa810 leaq 0x7abf(%rip), %rsi # 0xa131 movl $0x133, %edx # imm = 0x133 leaq 0x8171(%rip), %rcx # 0xa7ef callq 0x1090 movq -0x28(%rbp), %rdi callq 0x6110 movss %xmm0, -0x2c(%rbp) movss -0x2c(%rbp), %xmm1 movss 0x7966(%rip), %xmm0 # 0xa004 subss %xmm0, %xmm1 movaps 0x79e7(%rip), %xmm0 # 0xa090 pand %xmm0, %xmm1 movss 0x7973(%rip), %xmm0 # 0xa028 ucomiss %xmm1, %xmm0 jbe 0x26bc jmp 0x26db leaq 0x81af(%rip), %rdi # 0xa872 leaq 0x7a67(%rip), %rsi # 0xa131 movl $0x137, %edx # imm = 0x137 leaq 0x8119(%rip), %rcx # 0xa7ef callq 0x1090 movq -0x8(%rbp), %rdi callq 0x4880 leaq 0x81a1(%rip), %rdi # 0xa88c movb $0x0, %al callq 0x1080 addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
test_vector_normalize: push rbp mov rbp, rsp sub rsp, 30h lea rdi, aTestingVectorN; "Testing vector normalization...\n" mov al, 0 call _printf mov edi, 400h call arena_create mov [rbp+var_8], rax cmp [rbp+var_8], 0 jz short loc_24DD jmp short loc_24FC loc_24DD: lea rdi, aArenaNull; "arena != NULL" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 125h lea rcx, aVoidTestVector_7; "void test_vector_normalize(void)" call ___assert_fail loc_24FC: mov rdi, [rbp+var_8] mov esi, 3 call vector_f_create mov [rbp+var_10], rax cmp [rbp+var_10], 0 jz short loc_2517 jmp short loc_2536 loc_2517: lea rdi, aArenaNull+4; "a != NULL" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 129h lea rcx, aVoidTestVector_7; "void test_vector_normalize(void)" call ___assert_fail loc_2536: mov rax, cs:qword_B424 mov [rbp+var_1C], rax mov eax, cs:dword_B42C mov [rbp+var_14], eax mov rdi, [rbp+var_10] lea rsi, [rbp+var_1C] mov edx, 3 call vector_f_set test al, 1 jnz short loc_2562 jmp short loc_2564 loc_2562: jmp short loc_2583 loc_2564: lea rdi, aVectorFSetAADa; "vector_f_set(a, a_data, 3)" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 12Dh lea rcx, aVoidTestVector_7; "void test_vector_normalize(void)" call ___assert_fail loc_2583: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call vector_f_normalize mov [rbp+var_28], rax cmp [rbp+var_28], 0 jz short loc_259D jmp short loc_25BC loc_259D: lea rdi, aBNull; "b != NULL" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 131h lea rcx, aVoidTestVector_7; "void test_vector_normalize(void)" call ___assert_fail loc_25BC: mov rax, [rbp+var_28] cmp qword ptr [rax+10h], 3 jnz short loc_25C9 jmp short loc_25E8 loc_25C9: lea rdi, aADim3BDim3+0Fh; "b->dim == 3" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 132h lea rcx, aVoidTestVector_7; "void test_vector_normalize(void)" call ___assert_fail loc_25E8: mov rax, [rbp+var_28] movss xmm1, dword ptr [rax] movss xmm0, cs:dword_A02C subss xmm1, xmm0 movaps xmm0, cs:xmmword_A090 pand xmm1, xmm0 movss xmm0, cs:dword_A028 ucomiss xmm0, xmm1 jbe short loc_2664 mov rax, [rbp+var_28] movss xmm1, dword ptr [rax+4] movss xmm0, cs:dword_A030 subss xmm1, xmm0 movaps xmm0, cs:xmmword_A090 pand xmm1, xmm0 movss xmm0, cs:dword_A028 ucomiss xmm0, xmm1 jbe short loc_2664 mov rax, [rbp+var_28] movss xmm1, dword ptr [rax+8] movaps xmm0, cs:xmmword_A090 pand xmm1, xmm0 movss xmm0, cs:dword_A028 ucomiss xmm0, xmm1 jbe short loc_2664 jmp short loc_2683 loc_2664: lea rdi, aFabsfBData006f; "fabsf(b->data[0] - 0.6f) < 1e-6f && fab"... lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 133h lea rcx, aVoidTestVector_7; "void test_vector_normalize(void)" call ___assert_fail loc_2683: mov rdi, [rbp+var_28] call vector_f_magnitude movss [rbp+var_2C], xmm0 movss xmm1, [rbp+var_2C] movss xmm0, cs:dword_A004 subss xmm1, xmm0 movaps xmm0, cs:xmmword_A090 pand xmm1, xmm0 movss xmm0, cs:dword_A028 ucomiss xmm0, xmm1 jbe short loc_26BC jmp short loc_26DB loc_26BC: lea rdi, aFabsfMag10f1e6; "fabsf(mag - 1.0f) < 1e-6f" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 137h lea rcx, aVoidTestVector_7; "void test_vector_normalize(void)" call ___assert_fail loc_26DB: mov rdi, [rbp+var_8] call arena_destroy lea rdi, aPassVectorNorm; "PASS: vector_normalize\n" mov al, 0 call _printf add rsp, 30h pop rbp retn
long long test_vector_normalize(long long a1, long long a2, long long a3) { long long v3; // rsi unsigned int *v4; // rax __m128i v5; // xmm1 __m128i v6; // xmm1 __m128i v7; // xmm1 long long v8; // rdx float v10; // [rsp+4h] [rbp-2Ch] long long v11; // [rsp+14h] [rbp-1Ch] BYREF int v12; // [rsp+1Ch] [rbp-14h] long long v13; // [rsp+20h] [rbp-10h] long long v14; // [rsp+28h] [rbp-8h] printf("Testing vector normalization...\n", a2, a3); v14 = arena_create(1024LL); if ( !v14 ) __assert_fail( "arena != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_vector.c", 293LL, "void test_vector_normalize(void)"); v13 = vector_f_create(v14, 3LL); if ( !v13 ) __assert_fail( "a != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_vector.c", 297LL, "void test_vector_normalize(void)"); v11 = 0x4080000040400000LL; v12 = 0; if ( (vector_f_set(v13, &v11, 3LL) & 1) == 0 ) __assert_fail( "vector_f_set(a, a_data, 3)", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_vector.c", 301LL, "void test_vector_normalize(void)"); v3 = v13; v4 = (unsigned int *)vector_f_normalize(v14, v13); if ( !v4 ) __assert_fail( "b != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_vector.c", 305LL, "void test_vector_normalize(void)"); if ( *((_QWORD *)v4 + 2) != 3LL ) __assert_fail( "b->dim == 3", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_vector.c", 306LL, "void test_vector_normalize(void)"); v5 = (__m128i)*v4; *(float *)v5.m128i_i32 = *(float *)v5.m128i_i32 - 0.60000002; if ( *(float *)_mm_and_si128(v5, (__m128i)xmmword_A090).m128i_i32 >= 0.000001 || (v6 = (__m128i)v4[1], *(float *)v6.m128i_i32 = *(float *)v6.m128i_i32 - 0.80000001, *(float *)_mm_and_si128(v6, (__m128i)xmmword_A090).m128i_i32 >= 0.000001) || *(float *)_mm_and_si128((__m128i)v4[2], (__m128i)xmmword_A090).m128i_i32 >= 0.000001 ) { __assert_fail( "fabsf(b->data[0] - 0.6f) < 1e-6f && fabsf(b->data[1] - 0.8f) < 1e-6f && fabsf(b->data[2]) < 1e-6f", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_vector.c", 307LL, "void test_vector_normalize(void)"); } v10 = vector_f_magnitude(v4); v7 = (__m128i)LODWORD(v10); *(float *)v7.m128i_i32 = v10 - 1.0; if ( *(float *)_mm_and_si128(v7, (__m128i)xmmword_A090).m128i_i32 >= 0.000001 ) __assert_fail( "fabsf(mag - 1.0f) < 1e-6f", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_vector.c", 311LL, "void test_vector_normalize(void)"); arena_destroy(v14); return printf("PASS: vector_normalize\n", v3, v8); }
test_vector_normalize: PUSH RBP MOV RBP,RSP SUB RSP,0x30 LEA RDI,[0x10a7bc] MOV AL,0x0 CALL 0x00101080 MOV EDI,0x400 CALL 0x001042a0 MOV qword ptr [RBP + -0x8],RAX CMP qword ptr [RBP + -0x8],0x0 JZ 0x001024dd JMP 0x001024fc LAB_001024dd: LEA RDI,[0x10a1c3] LEA RSI,[0x10a131] MOV EDX,0x125 LEA RCX,[0x10a7dd] CALL 0x00101090 LAB_001024fc: MOV RDI,qword ptr [RBP + -0x8] MOV ESI,0x3 CALL 0x001049a0 MOV qword ptr [RBP + -0x10],RAX CMP qword ptr [RBP + -0x10],0x0 JZ 0x00102517 JMP 0x00102536 LAB_00102517: LEA RDI,[0x10a1c7] LEA RSI,[0x10a131] MOV EDX,0x129 LEA RCX,[0x10a7dd] CALL 0x00101090 LAB_00102536: MOV RAX,qword ptr [0x0010b404] MOV qword ptr [RBP + -0x1c],RAX MOV EAX,dword ptr [0x0010b40c] MOV dword ptr [RBP + -0x14],EAX MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[RBP + -0x1c] MOV EDX,0x3 CALL 0x00104d80 TEST AL,0x1 JNZ 0x00102562 JMP 0x00102564 LAB_00102562: JMP 0x00102583 LAB_00102564: LEA RDI,[0x10a4a1] LEA RSI,[0x10a131] MOV EDX,0x12d LEA RCX,[0x10a7dd] CALL 0x00101090 LAB_00102583: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x00106160 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JZ 0x0010259d JMP 0x001025bc LAB_0010259d: LEA RDI,[0x10a497] LEA RSI,[0x10a131] MOV EDX,0x131 LEA RCX,[0x10a7dd] CALL 0x00101090 LAB_001025bc: MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX + 0x10],0x3 JNZ 0x001025c9 JMP 0x001025e8 LAB_001025c9: LEA RDI,[0x10ba87] LEA RSI,[0x10a131] MOV EDX,0x132 LEA RCX,[0x10a7dd] CALL 0x00101090 LAB_001025e8: MOV RAX,qword ptr [RBP + -0x28] MOVSS XMM1,dword ptr [RAX] MOVSS XMM0,dword ptr [0x0010a02c] SUBSS XMM1,XMM0 MOVAPS XMM0,xmmword ptr [0x0010a090] PAND XMM1,XMM0 MOVSS XMM0,dword ptr [0x0010a028] UCOMISS XMM0,XMM1 JBE 0x00102664 MOV RAX,qword ptr [RBP + -0x28] MOVSS XMM1,dword ptr [RAX + 0x4] MOVSS XMM0,dword ptr [0x0010a030] SUBSS XMM1,XMM0 MOVAPS XMM0,xmmword ptr [0x0010a090] PAND XMM1,XMM0 MOVSS XMM0,dword ptr [0x0010a028] UCOMISS XMM0,XMM1 JBE 0x00102664 MOV RAX,qword ptr [RBP + -0x28] MOVSS XMM1,dword ptr [RAX + 0x8] MOVAPS XMM0,xmmword ptr [0x0010a090] PAND XMM1,XMM0 MOVSS XMM0,dword ptr [0x0010a028] UCOMISS XMM0,XMM1 JBE 0x00102664 JMP 0x00102683 LAB_00102664: LEA RDI,[0x10a7fe] LEA RSI,[0x10a131] MOV EDX,0x133 LEA RCX,[0x10a7dd] CALL 0x00101090 LAB_00102683: MOV RDI,qword ptr [RBP + -0x28] CALL 0x00106110 MOVSS dword ptr [RBP + -0x2c],XMM0 MOVSS XMM1,dword ptr [RBP + -0x2c] MOVSS XMM0,dword ptr [0x0010a004] SUBSS XMM1,XMM0 MOVAPS XMM0,xmmword ptr [0x0010a090] PAND XMM1,XMM0 MOVSS XMM0,dword ptr [0x0010a028] UCOMISS XMM0,XMM1 JBE 0x001026bc JMP 0x001026db LAB_001026bc: LEA RDI,[0x10a860] LEA RSI,[0x10a131] MOV EDX,0x137 LEA RCX,[0x10a7dd] CALL 0x00101090 LAB_001026db: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00104880 LEA RDI,[0x10a87a] MOV AL,0x0 CALL 0x00101080 ADD RSP,0x30 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void test_vector_normalize(void) { ulong uVar1; float *pfVar2; float fVar3; int8 local_24; int4 local_1c; long local_18; long local_10; printf("Testing vector normalization...\n"); local_10 = arena_create(0x400); if (local_10 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("arena != NULL","/workspace/llm4binary/github2025/eshkol/tests/unit/test_vector.c" ,0x125,"void test_vector_normalize(void)"); } local_18 = vector_f_create(local_10,3); if (local_18 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("a != NULL","/workspace/llm4binary/github2025/eshkol/tests/unit/test_vector.c", 0x129,"void test_vector_normalize(void)"); } local_24 = DAT_0010b404; local_1c = DAT_0010b40c; uVar1 = vector_f_set(local_18,&local_24,3); if ((uVar1 & 1) == 0) { /* WARNING: Subroutine does not return */ __assert_fail("vector_f_set(a, a_data, 3)", "/workspace/llm4binary/github2025/eshkol/tests/unit/test_vector.c",0x12d, "void test_vector_normalize(void)"); } pfVar2 = (float *)vector_f_normalize(local_10,local_18); if (pfVar2 != (float *)0x0) { if (*(long *)(pfVar2 + 4) != 3) { /* WARNING: Subroutine does not return */ __assert_fail("b->dim == 3","/workspace/llm4binary/github2025/eshkol/tests/unit/test_vector.c" ,0x132,"void test_vector_normalize(void)"); } if (((float)((uint)(*pfVar2 - DAT_0010a02c) & _DAT_0010a090) < DAT_0010a028) && ((float)((uint)(pfVar2[1] - DAT_0010a030) & _DAT_0010a090) < DAT_0010a028)) { if ((float)((uint)pfVar2[2] & _DAT_0010a090) < DAT_0010a028) { fVar3 = (float)vector_f_magnitude(pfVar2); if ((float)((uint)(fVar3 - DAT_0010a004) & _DAT_0010a090) < DAT_0010a028) { arena_destroy(local_10); printf("PASS: vector_normalize\n"); return; } /* WARNING: Subroutine does not return */ __assert_fail("fabsf(mag - 1.0f) < 1e-6f", "/workspace/llm4binary/github2025/eshkol/tests/unit/test_vector.c",0x137, "void test_vector_normalize(void)"); } } /* WARNING: Subroutine does not return */ __assert_fail("fabsf(b->data[0] - 0.6f) < 1e-6f && fabsf(b->data[1] - 0.8f) < 1e-6f && fabsf(b->data[2]) < 1e-6f" ,"/workspace/llm4binary/github2025/eshkol/tests/unit/test_vector.c",0x133, "void test_vector_normalize(void)"); } /* WARNING: Subroutine does not return */ __assert_fail("b != NULL","/workspace/llm4binary/github2025/eshkol/tests/unit/test_vector.c",0x131 ,"void test_vector_normalize(void)"); }
44,056
Item_direct_view_ref::propagate_equal_fields(THD*, Value_source::Context const&, COND_EQUAL*)
eloqsql/sql/item.cc
Item *Item_direct_view_ref::propagate_equal_fields(THD *thd, const Context &ctx, COND_EQUAL *cond) { Item *field_item= real_item(); if (field_item->type() != FIELD_ITEM) return this; Item *item= field_item->propagate_equal_fields(thd, ctx, cond); set_item_equal(field_item->get_item_equal()); field_item->set_item_equal(NULL); if (item != field_item) return item; return this; }
O0
cpp
Item_direct_view_ref::propagate_equal_fields(THD*, Value_source::Context const&, COND_EQUAL*): pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x40(%rbp) movq (%rdi), %rax callq *0x2f0(%rax) movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rdi movq (%rdi), %rax callq *0xc8(%rax) cmpl $0x0, %eax je 0x907f99 movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x908000 movq -0x30(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x28(%rbp), %rcx movq (%rdi), %rax callq *0x4c0(%rax) movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rdi movq (%rdi), %rax callq *0x5c8(%rax) movq -0x40(%rbp), %rdi movq %rax, %rsi movq (%rdi), %rax callq *0x5d0(%rax) movq -0x30(%rbp), %rdi movq (%rdi), %rax xorl %ecx, %ecx movl %ecx, %esi callq *0x5d0(%rax) movq -0x38(%rbp), %rax cmpq -0x30(%rbp), %rax je 0x907ff8 movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x908000 movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw (%rax,%rax)
_ZN20Item_direct_view_ref22propagate_equal_fieldsEP3THDRKN12Value_source7ContextEP10COND_EQUAL: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rdi, [rbp+var_10] mov [rbp+var_40], rdi mov rax, [rdi] call qword ptr [rax+2F0h] mov [rbp+var_30], rax mov rdi, [rbp+var_30] mov rax, [rdi] call qword ptr [rax+0C8h] cmp eax, 0 jz short loc_907F99 mov rax, [rbp+var_40] mov [rbp+var_8], rax jmp short loc_908000 loc_907F99: mov rdi, [rbp+var_30] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] mov rcx, [rbp+var_28] mov rax, [rdi] call qword ptr [rax+4C0h] mov [rbp+var_38], rax mov rdi, [rbp+var_30] mov rax, [rdi] call qword ptr [rax+5C8h] mov rdi, [rbp+var_40] mov rsi, rax mov rax, [rdi] call qword ptr [rax+5D0h] mov rdi, [rbp+var_30] mov rax, [rdi] xor ecx, ecx mov esi, ecx call qword ptr [rax+5D0h] mov rax, [rbp+var_38] cmp rax, [rbp+var_30] jz short loc_907FF8 mov rax, [rbp+var_38] mov [rbp+var_8], rax jmp short loc_908000 loc_907FF8: mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_908000: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
Item_direct_view_ref * Item_direct_view_ref::propagate_equal_fields( Item_direct_view_ref *this, THD *a2, const Value_source::Context *a3, COND_EQUAL *a4) { long long v4; // rax long long v6; // [rsp+8h] [rbp-38h] long long v7; // [rsp+10h] [rbp-30h] v7 = (*(long long ( **)(Item_direct_view_ref *))(*(_QWORD *)this + 752LL))(this); if ( (*(unsigned int ( **)(long long))(*(_QWORD *)v7 + 200LL))(v7) ) return this; v6 = (*(long long ( **)(long long, THD *, const Value_source::Context *, COND_EQUAL *))(*(_QWORD *)v7 + 1216LL))( v7, a2, a3, a4); v4 = (*(long long ( **)(long long))(*(_QWORD *)v7 + 1480LL))(v7); (*(void ( **)(Item_direct_view_ref *, long long))(*(_QWORD *)this + 1488LL))(this, v4); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v7 + 1488LL))(v7, 0LL); if ( v6 == v7 ) return this; else return (Item_direct_view_ref *)v6; }
TP_connection_generic: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x40],RDI MOV RSI,qword ptr [RBP + -0x10] CALL 0x0090b370 MOV RAX,qword ptr [RBP + -0x40] LEA RCX,[0x13dca20] ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x28],0x0 MOV qword ptr [RAX + 0x30],0x0 MOV qword ptr [RAX + 0x38],0x0 MOV qword ptr [RAX + 0x40],-0x1 MOV byte ptr [RAX + 0x54],0x0 MOV dword ptr [RAX + 0x58],0x0 MOV byte ptr [RAX + 0x5c],0x0 MOV qword ptr [RAX + 0x60],0x0 JMP 0x00907fbc LAB_00907fbc: JMP 0x00907fbe LAB_00907fbe: MOV RAX,qword ptr [RBP + -0x10] MOVUPS XMM0,xmmword ptr [RAX + 0x18] MOVAPS xmmword ptr [RBP + -0x20],XMM0 MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x18] LAB_00907fd2: CALL 0x00908080 MOV dword ptr [RBP + -0x44],EAX JMP 0x00907fdc LAB_00907fdc: MOV RAX,qword ptr [RBP + -0x40] MOV ECX,dword ptr [RBP + -0x44] MOV dword ptr [RAX + 0x50],ECX MOV RAX,qword ptr [0x016f1a48] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x38] CALL 0x009080a0 MOV qword ptr [RBP + -0x50],RAX JMP 0x00908004 LAB_00908004: MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x58] MOV RDX,qword ptr [RBP + -0x50] IMUL RDX,RDX,0x160 ADD RCX,RDX MOV qword ptr [RBP + -0x38],RCX MOV RCX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x28],RCX MOV RDI,qword ptr [RBP + -0x38] LEA RSI,[0xea8e3e] MOV EDX,0x74b CALL 0x00905a00 JMP 0x0090803d LAB_0090803d: MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0xa4] INC ECX MOV dword ptr [RAX + 0xa4],ECX MOV RDI,qword ptr [RBP + -0x38] CALL 0x00905c60 LAB_00908058: JMP 0x0090805a LAB_0090805a: ADD RSP,0x60 POP RBP RET
/* TP_connection_generic::TP_connection_generic(CONNECT*) */ void __thiscall TP_connection_generic::TP_connection_generic(TP_connection_generic *this,CONNECT *param_1) { long lVar1; int4 uVar2; long lVar3; st_mysql_mutex *psVar4; TP_connection::TP_connection((TP_connection *)this,param_1); *(int ***)this = &PTR__TP_connection_generic_013dca30; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0xffffffffffffffff; this[0x54] = (TP_connection_generic)0x0; *(int4 *)(this + 0x58) = 0; this[0x5c] = (TP_connection_generic)0x0; *(int8 *)(this + 0x60) = 0; /* try { // try from 00907fd2 to 00908057 has its CatchHandler @ 00908060 */ uVar2 = mysql_socket_getfd(*(int8 *)(param_1 + 0x18),*(int8 *)(param_1 + 0x20)); *(int4 *)(this + 0x50) = uVar2; lVar1 = all_groups; lVar3 = get_group_id(*(ulonglong *)(param_1 + 0x38)); psVar4 = (st_mysql_mutex *)(lVar1 + lVar3 * 0x160); *(st_mysql_mutex **)(this + 0x28) = psVar4; coro_mutex_lock(psVar4,"/workspace/llm4binary/github2025/eloqsql/sql/threadpool_generic.cc",0x74b) ; *(int *)(psVar4 + 0xa4) = *(int *)(psVar4 + 0xa4) + 1; coro_mutex_unlock(psVar4); return; }
44,057
minja::Value::operator==(minja::Value const&) const
monkey531[P]llama/common/minja.hpp
bool operator==(const Value & other) const { if (callable_ || other.callable_) { if (callable_.get() != other.callable_.get()) return false; } if (array_) { if (!other.array_) return false; if (array_->size() != other.array_->size()) return false; for (size_t i = 0; i < array_->size(); ++i) { if (!(*array_)[i].to_bool() || !(*other.array_)[i].to_bool() || (*array_)[i] != (*other.array_)[i]) return false; } return true; } else if (object_) { if (!other.object_) return false; if (object_->size() != other.object_->size()) return false; for (const auto& item : *object_) { if (!item.second.to_bool() || !other.object_->count(item.first) || item.second != other.object_->at(item.first)) return false; } return true; } else { return primitive_ == other.primitive_; } }
O0
cpp
minja::Value::operator==(minja::Value const&) const: subq $0x78, %rsp movq %rdi, 0x68(%rsp) movq %rsi, 0x60(%rsp) movq 0x68(%rsp), %rdi movq %rdi, 0x30(%rsp) addq $0x30, %rdi callq 0xa11e0 testb $0x1, %al jne 0xde7c9 movq 0x60(%rsp), %rdi addq $0x30, %rdi callq 0xa11e0 testb $0x1, %al jne 0xde7c9 jmp 0xde803 movq 0x30(%rsp), %rdi addq $0x30, %rdi callq 0xdeb10 movq %rax, 0x28(%rsp) movq 0x60(%rsp), %rdi addq $0x30, %rdi callq 0xdeb10 movq %rax, %rcx movq 0x28(%rsp), %rax cmpq %rcx, %rax je 0xde801 movb $0x0, 0x77(%rsp) jmp 0xdeaff jmp 0xde803 movq 0x30(%rsp), %rdi addq $0x10, %rdi callq 0xa11a0 testb $0x1, %al jne 0xde81a jmp 0xde981 movq 0x60(%rsp), %rdi addq $0x10, %rdi callq 0xa11a0 testb $0x1, %al jne 0xde836 movb $0x0, 0x77(%rsp) jmp 0xdeaff movq 0x30(%rsp), %rdi addq $0x10, %rdi callq 0xa2930 movq %rax, %rdi callq 0xa2940 movq %rax, 0x20(%rsp) movq 0x60(%rsp), %rdi addq $0x10, %rdi callq 0xa2930 movq %rax, %rdi callq 0xa2940 movq %rax, %rcx movq 0x20(%rsp), %rax cmpq %rcx, %rax je 0xde87e movb $0x0, 0x77(%rsp) jmp 0xdeaff movq $0x0, 0x58(%rsp) movq 0x30(%rsp), %rdi movq 0x58(%rsp), %rax movq %rax, 0x18(%rsp) addq $0x10, %rdi callq 0xa2930 movq %rax, %rdi callq 0xa2940 movq %rax, %rcx movq 0x18(%rsp), %rax cmpq %rcx, %rax jae 0xde977 movq 0x30(%rsp), %rdi addq $0x10, %rdi callq 0xa29c0 movq %rax, %rdi movq 0x58(%rsp), %rsi callq 0xa29f0 movq %rax, %rdi callq 0xa08c0 testb $0x1, %al jne 0xde8e1 jmp 0xde958 movq 0x60(%rsp), %rdi addq $0x10, %rdi callq 0xa29c0 movq %rax, %rdi movq 0x58(%rsp), %rsi callq 0xa29f0 movq %rax, %rdi callq 0xa08c0 testb $0x1, %al jne 0xde90a jmp 0xde958 movq 0x30(%rsp), %rdi addq $0x10, %rdi callq 0xa29c0 movq %rax, %rdi movq 0x58(%rsp), %rsi callq 0xa29f0 movq %rax, 0x10(%rsp) movq 0x60(%rsp), %rdi addq $0x10, %rdi callq 0xa29c0 movq %rax, %rdi movq 0x58(%rsp), %rsi callq 0xa29f0 movq 0x10(%rsp), %rdi movq %rax, %rsi callq 0xdeb20 testb $0x1, %al jne 0xde958 jmp 0xde962 movb $0x0, 0x77(%rsp) jmp 0xdeaff jmp 0xde964 movq 0x58(%rsp), %rax addq $0x1, %rax movq %rax, 0x58(%rsp) jmp 0xde887 movb $0x1, 0x77(%rsp) jmp 0xdeaff movq 0x30(%rsp), %rdi addq $0x20, %rdi callq 0xa11c0 testb $0x1, %al jne 0xde998 jmp 0xdeae2 movq 0x60(%rsp), %rdi addq $0x20, %rdi callq 0xa11c0 testb $0x1, %al jne 0xde9b4 movb $0x0, 0x77(%rsp) jmp 0xdeaff movq 0x30(%rsp), %rdi addq $0x20, %rdi callq 0xa2a10 movq %rax, %rdi callq 0xcab40 movq %rax, 0x8(%rsp) movq 0x60(%rsp), %rdi addq $0x20, %rdi callq 0xa2a10 movq %rax, %rdi callq 0xcab40 movq %rax, %rcx movq 0x8(%rsp), %rax cmpq %rcx, %rax je 0xde9fc movb $0x0, 0x77(%rsp) jmp 0xdeaff movq 0x30(%rsp), %rdi addq $0x20, %rdi callq 0xc7670 movq %rax, 0x50(%rsp) movq 0x50(%rsp), %rdi callq 0xa2a20 movq %rax, 0x48(%rsp) movq 0x50(%rsp), %rdi callq 0xa2a90 movq %rax, 0x40(%rsp) leaq 0x48(%rsp), %rdi leaq 0x40(%rsp), %rsi callq 0xa2a50 testb $0x1, %al jne 0xdea45 jmp 0xdeadb leaq 0x48(%rsp), %rdi callq 0xcb0f0 movq %rax, 0x38(%rsp) movq 0x38(%rsp), %rdi addq $0x10, %rdi callq 0xa08c0 testb $0x1, %al jne 0xdea68 jmp 0xdeac3 movq 0x60(%rsp), %rdi addq $0x20, %rdi callq 0xa2a10 movq %rax, %rdi movq 0x38(%rsp), %rsi callq 0xdeb50 cmpq $0x0, %rax je 0xdeac3 movq 0x38(%rsp), %rax addq $0x10, %rax movq %rax, (%rsp) movq 0x60(%rsp), %rdi addq $0x20, %rdi callq 0xa2a10 movq %rax, %rdi movq 0x38(%rsp), %rsi callq 0xde2b0 movq (%rsp), %rdi movq %rax, %rsi callq 0xdeb20 testb $0x1, %al jne 0xdeac3 jmp 0xdeaca movb $0x0, 0x77(%rsp) jmp 0xdeaff jmp 0xdeacc leaq 0x48(%rsp), %rdi callq 0xa2e30 jmp 0xdea2d movb $0x1, 0x77(%rsp) jmp 0xdeaff movq 0x30(%rsp), %rdi addq $0x40, %rdi movq 0x60(%rsp), %rsi addq $0x40, %rsi callq 0xc9420 andb $0x1, %al movb %al, 0x77(%rsp) movb 0x77(%rsp), %al andb $0x1, %al addq $0x78, %rsp retq nopw (%rax,%rax)
_ZNK5minja5ValueeqERKS0_: sub rsp, 78h mov [rsp+78h+var_10], rdi mov [rsp+78h+var_18], rsi mov rdi, [rsp+78h+var_10] mov [rsp+78h+var_48], rdi add rdi, 30h ; '0' call _ZNKSt12__shared_ptrISt8functionIFN5minja5ValueERKSt10shared_ptrINS1_7ContextEERNS1_14ArgumentsValueEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2>::operator bool(void) test al, 1 jnz short loc_DE7C9 mov rdi, [rsp+78h+var_18] add rdi, 30h ; '0' call _ZNKSt12__shared_ptrISt8functionIFN5minja5ValueERKSt10shared_ptrINS1_7ContextEERNS1_14ArgumentsValueEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2>::operator bool(void) test al, 1 jnz short loc_DE7C9 jmp short loc_DE803 loc_DE7C9: mov rdi, [rsp+78h+var_48] add rdi, 30h ; '0' call _ZNKSt12__shared_ptrISt8functionIFN5minja5ValueERKSt10shared_ptrINS1_7ContextEERNS1_14ArgumentsValueEEELN9__gnu_cxx12_Lock_policyE2EE3getEv; std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2>::get(void) mov [rsp+78h+var_50], rax mov rdi, [rsp+78h+var_18] add rdi, 30h ; '0' call _ZNKSt12__shared_ptrISt8functionIFN5minja5ValueERKSt10shared_ptrINS1_7ContextEERNS1_14ArgumentsValueEEELN9__gnu_cxx12_Lock_policyE2EE3getEv; std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2>::get(void) mov rcx, rax mov rax, [rsp+78h+var_50] cmp rax, rcx jz short loc_DE801 mov [rsp+78h+var_1], 0 jmp loc_DEAFF loc_DE801: jmp short $+2 loc_DE803: mov rdi, [rsp+78h+var_48] add rdi, 10h call _ZNKSt12__shared_ptrISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2>::operator bool(void) test al, 1 jnz short loc_DE81A jmp loc_DE981 loc_DE81A: mov rdi, [rsp+78h+var_18] add rdi, 10h call _ZNKSt12__shared_ptrISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2>::operator bool(void) test al, 1 jnz short loc_DE836 mov [rsp+78h+var_1], 0 jmp loc_DEAFF loc_DE836: mov rdi, [rsp+78h+var_48] add rdi, 10h call _ZNKSt19__shared_ptr_accessISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax call _ZNKSt6vectorIN5minja5ValueESaIS1_EE4sizeEv; std::vector<minja::Value>::size(void) mov [rsp+78h+var_58], rax mov rdi, [rsp+78h+var_18] add rdi, 10h call _ZNKSt19__shared_ptr_accessISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax call _ZNKSt6vectorIN5minja5ValueESaIS1_EE4sizeEv; std::vector<minja::Value>::size(void) mov rcx, rax mov rax, [rsp+78h+var_58] cmp rax, rcx jz short loc_DE87E mov [rsp+78h+var_1], 0 jmp loc_DEAFF loc_DE87E: mov [rsp+78h+var_20], 0 loc_DE887: mov rdi, [rsp+78h+var_48] mov rax, [rsp+78h+var_20] mov [rsp+78h+var_60], rax add rdi, 10h call _ZNKSt19__shared_ptr_accessISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax call _ZNKSt6vectorIN5minja5ValueESaIS1_EE4sizeEv; std::vector<minja::Value>::size(void) mov rcx, rax mov rax, [rsp+78h+var_60] cmp rax, rcx jnb loc_DE977 mov rdi, [rsp+78h+var_48] add rdi, 10h call _ZNKSt19__shared_ptr_accessISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv; std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(void) mov rdi, rax mov rsi, [rsp+78h+var_20] call _ZNSt6vectorIN5minja5ValueESaIS1_EEixEm; std::vector<minja::Value>::operator[](ulong) mov rdi, rax; this call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void) test al, 1 jnz short loc_DE8E1 jmp short loc_DE958 loc_DE8E1: mov rdi, [rsp+78h+var_18] add rdi, 10h call _ZNKSt19__shared_ptr_accessISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv; std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(void) mov rdi, rax mov rsi, [rsp+78h+var_20] call _ZNSt6vectorIN5minja5ValueESaIS1_EEixEm; std::vector<minja::Value>::operator[](ulong) mov rdi, rax; this call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void) test al, 1 jnz short loc_DE90A jmp short loc_DE958 loc_DE90A: mov rdi, [rsp+78h+var_48] add rdi, 10h call _ZNKSt19__shared_ptr_accessISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv; std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(void) mov rdi, rax mov rsi, [rsp+78h+var_20] call _ZNSt6vectorIN5minja5ValueESaIS1_EEixEm; std::vector<minja::Value>::operator[](ulong) mov [rsp+78h+var_68], rax mov rdi, [rsp+78h+var_18] add rdi, 10h call _ZNKSt19__shared_ptr_accessISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv; std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(void) mov rdi, rax mov rsi, [rsp+78h+var_20] call _ZNSt6vectorIN5minja5ValueESaIS1_EEixEm; std::vector<minja::Value>::operator[](ulong) mov rdi, [rsp+78h+var_68] mov rsi, rax call _ZNK5minja5ValueneERKS0_; minja::Value::operator!=(minja::Value const&) test al, 1 jnz short loc_DE958 jmp short loc_DE962 loc_DE958: mov [rsp+78h+var_1], 0 jmp loc_DEAFF loc_DE962: jmp short $+2 loc_DE964: mov rax, [rsp+78h+var_20] add rax, 1 mov [rsp+78h+var_20], rax jmp loc_DE887 loc_DE977: mov [rsp+78h+var_1], 1 jmp loc_DEAFF loc_DE981: mov rdi, [rsp+78h+var_48] add rdi, 20h ; ' ' call _ZNKSt12__shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2>::operator bool(void) test al, 1 jnz short loc_DE998 jmp loc_DEAE2 loc_DE998: mov rdi, [rsp+78h+var_18] add rdi, 20h ; ' ' call _ZNKSt12__shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2>::operator bool(void) test al, 1 jnz short loc_DE9B4 mov [rsp+78h+var_1], 0 jmp loc_DEAFF loc_DE9B4: mov rdi, [rsp+78h+var_48] add rdi, 20h ; ' ' call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax call _ZNKSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE4sizeEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::size(void) mov [rsp+78h+var_70], rax mov rdi, [rsp+78h+var_18] add rdi, 20h ; ' ' call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax call _ZNKSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE4sizeEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::size(void) mov rcx, rax mov rax, [rsp+78h+var_70] cmp rax, rcx jz short loc_DE9FC mov [rsp+78h+var_1], 0 jmp loc_DEAFF loc_DE9FC: mov rdi, [rsp+78h+var_48] add rdi, 20h ; ' ' call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(void) mov [rsp+78h+var_28], rax mov rdi, [rsp+78h+var_28] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5beginEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::begin(void) mov [rsp+78h+var_30], rax mov rdi, [rsp+78h+var_28] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::end(void) mov [rsp+78h+var_38], rax loc_DEA2D: lea rdi, [rsp+78h+var_30] lea rsi, [rsp+78h+var_38] call _ZN9__gnu_cxxneIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbRKNS_17__normal_iteratorIT_T0_EEST_; __gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&) test al, 1 jnz short loc_DEA45 jmp loc_DEADB loc_DEA45: lea rdi, [rsp+78h+var_30] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator*(void) mov [rsp+78h+var_40], rax mov rdi, [rsp+78h+var_40] add rdi, 10h; this call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void) test al, 1 jnz short loc_DEA68 jmp short loc_DEAC3 loc_DEA68: mov rdi, [rsp+78h+var_18] add rdi, 20h ; ' ' call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax mov rsi, [rsp+78h+var_40] call _ZNK8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5countERSJ_; nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::count(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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&) cmp rax, 0 jz short loc_DEAC3 mov rax, [rsp+78h+var_40] add rax, 10h mov [rsp+78h+var_78], rax mov rdi, [rsp+78h+var_18] add rdi, 20h ; ' ' call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax mov rsi, [rsp+78h+var_40] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atERSJ_; nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::at(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rdi, [rsp+78h+var_78] mov rsi, rax call _ZNK5minja5ValueneERKS0_; minja::Value::operator!=(minja::Value const&) test al, 1 jnz short loc_DEAC3 jmp short loc_DEACA loc_DEAC3: mov [rsp+78h+var_1], 0 jmp short loc_DEAFF loc_DEACA: jmp short $+2 loc_DEACC: lea rdi, [rsp+78h+var_30] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator++(void) jmp loc_DEA2D loc_DEADB: mov [rsp+78h+var_1], 1 jmp short loc_DEAFF loc_DEAE2: mov rdi, [rsp+78h+var_48] add rdi, 40h ; '@' mov rsi, [rsp+78h+var_18] add rsi, 40h ; '@' call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) and al, 1 mov [rsp+78h+var_1], al loc_DEAFF: mov al, [rsp+78h+var_1] and al, 1 add rsp, 78h retn
char minja::Value::operator==(_QWORD *a1, _QWORD *a2) { _QWORD *v2; // rax _QWORD *v3; // rax _QWORD *v4; // rax _QWORD *v5; // rax minja::Value *v6; // rax _QWORD *v7; // rax minja::Value *v8; // rax _QWORD *v9; // rax _QWORD *v10; // rax long long v11; // rax _QWORD *v12; // rax _QWORD *v13; // rax long long v14; // rax long long v15; // rax long long v16; // rax long long v18; // [rsp+8h] [rbp-70h] long long v19; // [rsp+10h] [rbp-68h] long long v20; // [rsp+20h] [rbp-58h] long long v21; // [rsp+28h] [rbp-50h] long long v22; // [rsp+38h] [rbp-40h] long long v23; // [rsp+40h] [rbp-38h] BYREF long long v24; // [rsp+48h] [rbp-30h] BYREF long long v25; // [rsp+50h] [rbp-28h] unsigned long long i; // [rsp+58h] [rbp-20h] _QWORD *v27; // [rsp+60h] [rbp-18h] _QWORD *v28; // [rsp+68h] [rbp-10h] v28 = a1; v27 = a2; if ( std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2>::operator bool(a1 + 6) || std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2>::operator bool(v27 + 6) ) { v21 = std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2>::get(a1 + 6); if ( v21 != std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2>::get(v27 + 6) ) return 0; } if ( std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2>::operator bool(a1 + 2) ) { if ( std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2>::operator bool(v27 + 2) ) { v2 = (_QWORD *)std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)(a1 + 2)); v20 = std::vector<minja::Value>::size(v2); v3 = (_QWORD *)std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)(v27 + 2)); if ( v20 == std::vector<minja::Value>::size(v3) ) { for ( i = 0LL; ; ++i ) { v4 = (_QWORD *)std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)(a1 + 2)); if ( i >= std::vector<minja::Value>::size(v4) ) break; v5 = (_QWORD *)std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*((long long)(a1 + 2)); v6 = (minja::Value *)std::vector<minja::Value>::operator[](v5, i); if ( (minja::Value::to_bool(v6) & 1) != 0 ) { v7 = (_QWORD *)std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*((long long)(v27 + 2)); v8 = (minja::Value *)std::vector<minja::Value>::operator[](v7, i); if ( (minja::Value::to_bool(v8) & 1) != 0 ) { v9 = (_QWORD *)std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*((long long)(a1 + 2)); v19 = std::vector<minja::Value>::operator[](v9, i); v10 = (_QWORD *)std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*((long long)(v27 + 2)); v11 = std::vector<minja::Value>::operator[](v10, i); if ( (minja::Value::operator!=(v19, v11) & 1) == 0 ) continue; } } return 0; } return 1; } else { return 0; } } else { return 0; } } else if ( std::__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2>::operator bool(a1 + 4) ) { if ( std::__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2>::operator bool(v27 + 4) ) { v12 = (_QWORD *)std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)(a1 + 4)); v18 = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::size(v12); v13 = (_QWORD *)std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)(v27 + 4)); if ( v18 == std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::size(v13) ) { v25 = std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*((long long)(a1 + 4)); v24 = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::begin(v25); v23 = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::end(v25); while ( __gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>( (long long)&v24, (long long)&v23) ) { v22 = __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator*((long long)&v24); if ( (minja::Value::to_bool((minja::Value *)(v22 + 16)) & 1) == 0 ) return 0; v14 = std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)(v27 + 4)); if ( !nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::count( v14, v22) ) return 0; v15 = std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)(v27 + 4)); v16 = nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::at( v15, v22); if ( (minja::Value::operator!=(v22 + 16, v16) & 1) != 0 ) return 0; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator++(&v24); } return 1; } else { return 0; } } else { return 0; } } else { return nlohmann::json_abi_v3_11_3::operator==((long long)(a1 + 8), (long long)(v27 + 8)) & 1; } }
operator==: SUB RSP,0x78 MOV qword ptr [RSP + 0x68],RDI MOV qword ptr [RSP + 0x60],RSI MOV RDI,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x30],RDI ADD RDI,0x30 CALL 0x001a11e0 TEST AL,0x1 JNZ 0x001de7c9 MOV RDI,qword ptr [RSP + 0x60] ADD RDI,0x30 CALL 0x001a11e0 TEST AL,0x1 JNZ 0x001de7c9 JMP 0x001de803 LAB_001de7c9: MOV RDI,qword ptr [RSP + 0x30] ADD RDI,0x30 CALL 0x001deb10 MOV qword ptr [RSP + 0x28],RAX MOV RDI,qword ptr [RSP + 0x60] ADD RDI,0x30 CALL 0x001deb10 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x28] CMP RAX,RCX JZ 0x001de801 MOV byte ptr [RSP + 0x77],0x0 JMP 0x001deaff LAB_001de801: JMP 0x001de803 LAB_001de803: MOV RDI,qword ptr [RSP + 0x30] ADD RDI,0x10 CALL 0x001a11a0 TEST AL,0x1 JNZ 0x001de81a JMP 0x001de981 LAB_001de81a: MOV RDI,qword ptr [RSP + 0x60] ADD RDI,0x10 CALL 0x001a11a0 TEST AL,0x1 JNZ 0x001de836 MOV byte ptr [RSP + 0x77],0x0 JMP 0x001deaff LAB_001de836: MOV RDI,qword ptr [RSP + 0x30] ADD RDI,0x10 CALL 0x001a2930 MOV RDI,RAX CALL 0x001a2940 MOV qword ptr [RSP + 0x20],RAX MOV RDI,qword ptr [RSP + 0x60] ADD RDI,0x10 CALL 0x001a2930 MOV RDI,RAX CALL 0x001a2940 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x20] CMP RAX,RCX JZ 0x001de87e MOV byte ptr [RSP + 0x77],0x0 JMP 0x001deaff LAB_001de87e: MOV qword ptr [RSP + 0x58],0x0 LAB_001de887: MOV RDI,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x18],RAX ADD RDI,0x10 CALL 0x001a2930 MOV RDI,RAX CALL 0x001a2940 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x18] CMP RAX,RCX JNC 0x001de977 MOV RDI,qword ptr [RSP + 0x30] ADD RDI,0x10 CALL 0x001a29c0 MOV RDI,RAX MOV RSI,qword ptr [RSP + 0x58] CALL 0x001a29f0 MOV RDI,RAX CALL 0x001a08c0 TEST AL,0x1 JNZ 0x001de8e1 JMP 0x001de958 LAB_001de8e1: MOV RDI,qword ptr [RSP + 0x60] ADD RDI,0x10 CALL 0x001a29c0 MOV RDI,RAX MOV RSI,qword ptr [RSP + 0x58] CALL 0x001a29f0 MOV RDI,RAX CALL 0x001a08c0 TEST AL,0x1 JNZ 0x001de90a JMP 0x001de958 LAB_001de90a: MOV RDI,qword ptr [RSP + 0x30] ADD RDI,0x10 CALL 0x001a29c0 MOV RDI,RAX MOV RSI,qword ptr [RSP + 0x58] CALL 0x001a29f0 MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x60] ADD RDI,0x10 CALL 0x001a29c0 MOV RDI,RAX MOV RSI,qword ptr [RSP + 0x58] CALL 0x001a29f0 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,RAX CALL 0x001deb20 TEST AL,0x1 JNZ 0x001de958 JMP 0x001de962 LAB_001de958: MOV byte ptr [RSP + 0x77],0x0 JMP 0x001deaff LAB_001de962: JMP 0x001de964 LAB_001de964: MOV RAX,qword ptr [RSP + 0x58] ADD RAX,0x1 MOV qword ptr [RSP + 0x58],RAX JMP 0x001de887 LAB_001de977: MOV byte ptr [RSP + 0x77],0x1 JMP 0x001deaff LAB_001de981: MOV RDI,qword ptr [RSP + 0x30] ADD RDI,0x20 CALL 0x001a11c0 TEST AL,0x1 JNZ 0x001de998 JMP 0x001deae2 LAB_001de998: MOV RDI,qword ptr [RSP + 0x60] ADD RDI,0x20 CALL 0x001a11c0 TEST AL,0x1 JNZ 0x001de9b4 MOV byte ptr [RSP + 0x77],0x0 JMP 0x001deaff LAB_001de9b4: MOV RDI,qword ptr [RSP + 0x30] ADD RDI,0x20 CALL 0x001a2a10 MOV RDI,RAX CALL 0x001cab40 MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x60] ADD RDI,0x20 CALL 0x001a2a10 MOV RDI,RAX CALL 0x001cab40 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] CMP RAX,RCX JZ 0x001de9fc MOV byte ptr [RSP + 0x77],0x0 JMP 0x001deaff LAB_001de9fc: MOV RDI,qword ptr [RSP + 0x30] ADD RDI,0x20 CALL 0x001c7670 MOV qword ptr [RSP + 0x50],RAX MOV RDI,qword ptr [RSP + 0x50] CALL 0x001a2a20 MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x50] CALL 0x001a2a90 MOV qword ptr [RSP + 0x40],RAX LAB_001dea2d: LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x40] CALL 0x001a2a50 TEST AL,0x1 JNZ 0x001dea45 JMP 0x001deadb LAB_001dea45: LEA RDI,[RSP + 0x48] CALL 0x001cb0f0 MOV qword ptr [RSP + 0x38],RAX MOV RDI,qword ptr [RSP + 0x38] ADD RDI,0x10 CALL 0x001a08c0 TEST AL,0x1 JNZ 0x001dea68 JMP 0x001deac3 LAB_001dea68: MOV RDI,qword ptr [RSP + 0x60] ADD RDI,0x20 CALL 0x001a2a10 MOV RDI,RAX MOV RSI,qword ptr [RSP + 0x38] CALL 0x001deb50 CMP RAX,0x0 JZ 0x001deac3 MOV RAX,qword ptr [RSP + 0x38] ADD RAX,0x10 MOV qword ptr [RSP],RAX MOV RDI,qword ptr [RSP + 0x60] ADD RDI,0x20 CALL 0x001a2a10 MOV RDI,RAX MOV RSI,qword ptr [RSP + 0x38] CALL 0x001de2b0 MOV RDI,qword ptr [RSP] MOV RSI,RAX CALL 0x001deb20 TEST AL,0x1 JNZ 0x001deac3 JMP 0x001deaca LAB_001deac3: MOV byte ptr [RSP + 0x77],0x0 JMP 0x001deaff LAB_001deaca: JMP 0x001deacc LAB_001deacc: LEA RDI,[RSP + 0x48] CALL 0x001a2e30 JMP 0x001dea2d LAB_001deadb: MOV byte ptr [RSP + 0x77],0x1 JMP 0x001deaff LAB_001deae2: MOV RDI,qword ptr [RSP + 0x30] ADD RDI,0x40 MOV RSI,qword ptr [RSP + 0x60] ADD RSI,0x40 CALL 0x001c9420 AND AL,0x1 MOV byte ptr [RSP + 0x77],AL LAB_001deaff: MOV AL,byte ptr [RSP + 0x77] AND AL,0x1 ADD RSP,0x78 RET
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ byte __thiscall minja::Value::operator==(Value *this,Value *param_1) { bool bVar1; vector<minja::Value,std::allocator<minja::Value>> *pvVar2; ulong uVar3; Value *pVVar4; vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *pvVar5; long lVar6; long lVar7; basic_json *pbVar8; ulong uVar9; ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *poVar10; Value *pVVar11; int8 local_38; int8 local_30; vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *local_28; ulong local_20; Value *local_18; Value *local_10; byte local_1; local_18 = param_1; local_10 = this; bVar1 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)(this + 0x30)); if ((bVar1) || (bVar1 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)(local_18 + 0x30)), bVar1)) { lVar6 = std:: __shared_ptr<std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>,(__gnu_cxx::_Lock_policy)2> ::get((__shared_ptr<std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>,(__gnu_cxx::_Lock_policy)2> *)(this + 0x30)); lVar7 = std:: __shared_ptr<std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>,(__gnu_cxx::_Lock_policy)2> ::get((__shared_ptr<std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>,(__gnu_cxx::_Lock_policy)2> *)(local_18 + 0x30)); if (lVar6 != lVar7) { return 0; } } bVar1 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)(this + 0x10)); if (bVar1) { bVar1 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)(local_18 + 0x10)); if (bVar1) { pvVar2 = (vector<minja::Value,std::allocator<minja::Value>> *) std:: __shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator->((__shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(this + 0x10)); lVar6 = std::vector<minja::Value,std::allocator<minja::Value>>::size(pvVar2); pvVar2 = (vector<minja::Value,std::allocator<minja::Value>> *) std:: __shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator->((__shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(local_18 + 0x10)); lVar7 = std::vector<minja::Value,std::allocator<minja::Value>>::size(pvVar2); if (lVar6 == lVar7) { local_20 = 0; while( true ) { uVar9 = local_20; pvVar2 = (vector<minja::Value,std::allocator<minja::Value>> *) std:: __shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator->((__shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(this + 0x10)); uVar3 = std::vector<minja::Value,std::allocator<minja::Value>>::size(pvVar2); if (uVar3 <= uVar9) break; pvVar2 = (vector<minja::Value,std::allocator<minja::Value>> *) std:: __shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator*((__shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(this + 0x10)); pVVar11 = (Value *)std::vector<minja::Value,std::allocator<minja::Value>>::operator[] (pvVar2,local_20); uVar9 = to_bool(pVVar11); if ((uVar9 & 1) == 0) { return 0; } pvVar2 = (vector<minja::Value,std::allocator<minja::Value>> *) std:: __shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator*((__shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(local_18 + 0x10)); pVVar11 = (Value *)std::vector<minja::Value,std::allocator<minja::Value>>::operator[] (pvVar2,local_20); uVar9 = to_bool(pVVar11); if ((uVar9 & 1) == 0) { return 0; } pvVar2 = (vector<minja::Value,std::allocator<minja::Value>> *) std:: __shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator*((__shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(this + 0x10)); pVVar11 = (Value *)std::vector<minja::Value,std::allocator<minja::Value>>::operator[] (pvVar2,local_20); pvVar2 = (vector<minja::Value,std::allocator<minja::Value>> *) std:: __shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator*((__shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(local_18 + 0x10)); pVVar4 = (Value *)std::vector<minja::Value,std::allocator<minja::Value>>::operator[] (pvVar2,local_20); uVar9 = operator!=(pVVar11,pVVar4); if ((uVar9 & 1) != 0) { return 0; } local_20 = local_20 + 1; } local_1 = 1; } else { local_1 = 0; } } else { local_1 = 0; } } else { bVar1 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)(this + 0x20)); if (bVar1) { bVar1 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)(local_18 + 0x20)); if (bVar1) { pvVar5 = (vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)std:: __shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator->((__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(this + 0x20)); lVar6 = std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::size(pvVar5); pvVar5 = (vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)std:: __shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator->((__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(local_18 + 0x20)); lVar7 = std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::size(pvVar5); if (lVar6 == lVar7) { local_28 = (vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)std:: __shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator*((__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(this + 0x20)); local_30 = std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::begin(local_28); local_38 = std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::end(local_28); while (bVar1 = __gnu_cxx::operator!= ((__normal_iterator *)&local_30,(__normal_iterator *)&local_38), bVar1) { pbVar8 = (basic_json *) __gnu_cxx:: __normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> ::operator*((__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> *)&local_30); uVar9 = to_bool((Value *)(pbVar8 + 0x10)); if ((uVar9 & 1) == 0) { return 0; } poVar10 = (ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)std:: __shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator->((__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(local_18 + 0x20)); lVar6 = nlohmann::json_abi_v3_11_3:: ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::count(poVar10,pbVar8); if (lVar6 == 0) { return 0; } poVar10 = (ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)std:: __shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator->((__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(local_18 + 0x20)); pVVar11 = (Value *)nlohmann::json_abi_v3_11_3:: ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::at(poVar10,pbVar8); uVar9 = operator!=((Value *)(pbVar8 + 0x10),pVVar11); if ((uVar9 & 1) != 0) { return 0; } __gnu_cxx:: __normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> ::operator++((__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> *)&local_30); } local_1 = 1; } else { local_1 = 0; } } else { local_1 = 0; } } else { local_1 = nlohmann::json_abi_v3_11_3::operator==(this + 0x40,local_18 + 0x40); local_1 = local_1 & 1; } } return local_1; }
44,058
string_repeat(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
monkey531[P]llama/common/common.cpp
std::string string_repeat(const std::string & str, size_t n) { if (n == 0) { return ""; } std::string result; result.reserve(str.length() * n); for (size_t i = 0; i < n; ++i) { result += str; } return result; }
O0
cpp
string_repeat(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long): subq $0x58, %rsp movq %rdi, 0x10(%rsp) movq %rdi, %rax movq %rax, 0x18(%rsp) movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq %rdx, 0x40(%rsp) cmpq $0x0, 0x40(%rsp) jne 0xf461b leaq 0x3f(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x5b260 movq 0x10(%rsp), %rdi movq 0x8(%rsp), %rdx leaq 0x118a9f(%rip), %rsi # 0x20d087 callq 0x66cc0 jmp 0xf45ef leaq 0x3f(%rsp), %rdi callq 0x5b6d0 jmp 0xf46b6 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) leaq 0x3f(%rsp), %rdi callq 0x5b6d0 jmp 0xf46c0 movq 0x10(%rsp), %rdi movb $0x0, 0x2b(%rsp) callq 0x5a660 movq 0x48(%rsp), %rdi callq 0x5aab0 movq 0x10(%rsp), %rdi movq %rax, %rsi movq 0x40(%rsp), %rax imulq %rax, %rsi callq 0x5afe0 jmp 0xf464c movq $0x0, 0x20(%rsp) movq 0x20(%rsp), %rax cmpq 0x40(%rsp), %rax jae 0xf469e movq 0x10(%rsp), %rdi movq 0x48(%rsp), %rsi callq 0x5a170 jmp 0xf4672 jmp 0xf4674 movq 0x20(%rsp), %rax addq $0x1, %rax movq %rax, 0x20(%rsp) jmp 0xf4655 movq 0x10(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) callq 0x5b6f8 jmp 0xf46c0 movb $0x1, 0x2b(%rsp) testb $0x1, 0x2b(%rsp) jne 0xf46b4 movq 0x10(%rsp), %rdi callq 0x5b6f8 jmp 0xf46b6 movq 0x18(%rsp), %rax addq $0x58, %rsp retq movq 0x30(%rsp), %rdi callq 0x5ac70 nopw (%rax,%rax)
_Z13string_repeatRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm: sub rsp, 58h mov [rsp+58h+var_48], rdi mov rax, rdi mov [rsp+58h+var_40], rax mov [rsp+58h+var_8], rdi mov [rsp+58h+var_10], rsi mov [rsp+58h+var_18], rdx cmp [rsp+58h+var_18], 0 jnz short loc_F461B lea rdi, [rsp+58h+var_19] mov [rsp+58h+var_50], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdi, [rsp+58h+var_48] mov rdx, [rsp+58h+var_50] lea rsi, asc_20D079+0Eh; "" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_F45EF: lea rdi, [rsp+58h+var_19] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp loc_F46B6 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax lea rdi, [rsp+arg_37] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp loc_F46C0 loc_F461B: mov rdi, [rsp+58h+var_48] mov [rsp+58h+var_2D], 0 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov rdi, [rsp+58h+var_10] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv; std::string::length(void) mov rdi, [rsp+58h+var_48] mov rsi, rax mov rax, [rsp+58h+var_18] imul rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) jmp short $+2 loc_F464C: mov [rsp+58h+var_38], 0 loc_F4655: mov rax, [rsp+58h+var_38] cmp rax, [rsp+58h+var_18] jnb short loc_F469E mov rdi, [rsp+58h+var_48] mov rsi, [rsp+58h+var_10] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_; std::string::operator+=(std::string const&) jmp short $+2 loc_F4672: jmp short $+2 loc_F4674: mov rax, [rsp+58h+var_38] add rax, 1 mov [rsp+58h+var_38], rax jmp short loc_F4655 mov rdi, [rsp+arg_8]; void * mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_F46C0 loc_F469E: mov [rsp+58h+var_2D], 1 test [rsp+58h+var_2D], 1 jnz short loc_F46B4 mov rdi, [rsp+58h+var_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_F46B4: jmp short $+2 loc_F46B6: mov rax, [rsp+58h+var_40] add rsp, 58h retn loc_F46C0: mov rdi, [rsp+arg_28] call __Unwind_Resume
long long string_repeat(long long a1, long long a2, unsigned long long a3) { long long v3; // rax unsigned long long i; // [rsp+20h] [rbp-38h] char v6; // [rsp+3Fh] [rbp-19h] BYREF unsigned long long v7; // [rsp+40h] [rbp-18h] long long v8; // [rsp+48h] [rbp-10h] long long v9; // [rsp+50h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; if ( a3 ) { std::string::basic_string(a1); v3 = std::string::length(v8); std::string::reserve(a1, v7 * v3); for ( i = 0LL; i < v7; ++i ) std::string::operator+=(a1, v8); } else { std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>(a1, (long long)"", (long long)&v6); std::allocator<char>::~allocator(&v6); } return a1; }
string_repeat: SUB RSP,0x58 MOV qword ptr [RSP + 0x10],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x50],RDI MOV qword ptr [RSP + 0x48],RSI MOV qword ptr [RSP + 0x40],RDX CMP qword ptr [RSP + 0x40],0x0 JNZ 0x001f461b LEA RDI,[RSP + 0x3f] MOV qword ptr [RSP + 0x8],RDI CALL 0x0015b260 MOV RDI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x8] LAB_001f45e1: LEA RSI,[0x30d087] CALL 0x00166cc0 JMP 0x001f45ef LAB_001f45ef: LEA RDI,[RSP + 0x3f] CALL 0x0015b6d0 JMP 0x001f46b6 LAB_001f461b: MOV RDI,qword ptr [RSP + 0x10] MOV byte ptr [RSP + 0x2b],0x0 CALL 0x0015a660 MOV RDI,qword ptr [RSP + 0x48] CALL 0x0015aab0 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,RAX MOV RAX,qword ptr [RSP + 0x40] IMUL RSI,RAX LAB_001f4645: CALL 0x0015afe0 JMP 0x001f464c LAB_001f464c: MOV qword ptr [RSP + 0x20],0x0 LAB_001f4655: MOV RAX,qword ptr [RSP + 0x20] CMP RAX,qword ptr [RSP + 0x40] JNC 0x001f469e MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x48] CALL 0x0015a170 LAB_001f4670: JMP 0x001f4672 LAB_001f4672: JMP 0x001f4674 LAB_001f4674: MOV RAX,qword ptr [RSP + 0x20] ADD RAX,0x1 MOV qword ptr [RSP + 0x20],RAX JMP 0x001f4655 LAB_001f469e: MOV byte ptr [RSP + 0x2b],0x1 TEST byte ptr [RSP + 0x2b],0x1 JNZ 0x001f46b4 MOV RDI,qword ptr [RSP + 0x10] CALL 0x0015b6f8 LAB_001f46b4: JMP 0x001f46b6 LAB_001f46b6: MOV RAX,qword ptr [RSP + 0x18] ADD RSP,0x58 RET
/* WARNING: Removing unreachable block (ram,0x001f46aa) */ /* string_repeat(std::__cxx11::string const&, unsigned long) */ string * string_repeat(string *param_1,ulong param_2) { ulong in_RDX; ulong local_38; allocator local_19; ulong local_18; string *local_10; string *local_8; local_10 = (string *)param_2; local_8 = param_1; if (in_RDX == 0) { std::allocator<char>::allocator(); /* try { // try from 001f45e1 to 001f45ec has its CatchHandler @ 001f45fe */ std::__cxx11::string::string<std::allocator<char>>(param_1,"",&local_19); std::allocator<char>::~allocator((allocator<char> *)&local_19); } else { local_18 = in_RDX; std::__cxx11::string::string(param_1); std::__cxx11::string::length(); /* try { // try from 001f4645 to 001f466f has its CatchHandler @ 001f4684 */ std::__cxx11::string::reserve((ulong)param_1); for (local_38 = 0; local_38 < local_18; local_38 = local_38 + 1) { std::__cxx11::string::operator+=(param_1,local_10); } } return param_1; }
44,059
minja::Parser::consumeToken(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::SpaceHandling)
monkey531[P]llama/common/minja.hpp
std::string consumeToken(const std::string & token, SpaceHandling space_handling = SpaceHandling::Strip) { auto start = it; consumeSpaces(space_handling); if (std::distance(it, end) >= (int64_t) token.size() && std::string(it, it + token.size()) == token) { it += token.size(); return token; } it = start; return ""; }
O2
cpp
minja::Parser::consumeToken(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::SpaceHandling): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movq 0x20(%rsi), %r13 movq %rsi, %rdi movl %ecx, %esi callq 0x613ca movq 0x18(%r15), %rax movq 0x20(%r15), %rsi subq %rsi, %rax movq 0x8(%r14), %rdx cmpq %rdx, %rax jl 0x60b4d addq %rsi, %rdx leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x8(%rsp), %r12 movq %r12, %rdi callq 0x521e4 movq %r12, %rdi movq %r14, %rsi callq 0x3a3b8 movl %eax, %ebp movq %r12, %rdi callq 0x241b8 testb %bpl, %bpl je 0x60b4d movq 0x8(%r14), %rax addq %rax, 0x20(%r15) movq %rbx, %rdi movq %r14, %rsi callq 0x23c00 jmp 0x60b65 movq %r13, 0x20(%r15) leaq 0x4dfc1(%rip), %rsi # 0xaeb19 leaq 0x8(%rsp), %rdx movq %rbx, %rdi callq 0x2746a movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r14, rdx mov r15, rsi mov rbx, rdi mov r13, [rsi+20h] mov rdi, rsi mov esi, ecx call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling) mov rax, [r15+18h] mov rsi, [r15+20h] sub rax, rsi mov rdx, [r14+8] cmp rax, rdx jl short loc_60B4D add rdx, rsi lea rax, [rsp+58h+var_40] mov [rax-10h], rax lea r12, [rsp+58h+var_50] mov rdi, r12 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) mov rdi, r12 mov rsi, r14 call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ mov ebp, eax mov rdi, r12; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jz short loc_60B4D mov rax, [r14+8] add [r15+20h], rax mov rdi, rbx mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) jmp short loc_60B65 loc_60B4D: mov [r15+20h], r13 lea rsi, aErrorWhileHand_0+34h; "" lea rdx, [rsp+58h+var_50] mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) loc_60B65: mov rax, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_QWORD * minja::Parser::consumeToken(_QWORD *a1, long long a2, _QWORD *a3, unsigned int a4) { long long v6; // r13 _BYTE *v7; // rsi long long v8; // rdx bool v9; // bp _QWORD v11[2]; // [rsp+8h] [rbp-50h] BYREF char v12; // [rsp+18h] [rbp-40h] BYREF v6 = *(_QWORD *)(a2 + 32); minja::Parser::consumeSpaces(a2, a4); v7 = *(_BYTE **)(a2 + 32); v8 = a3[1]; if ( *(_QWORD *)(a2 + 24) - (_QWORD)v7 >= v8 && (v11[0] = &v12, std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>( (long long)v11, v7, (long long)&v7[v8]), v9 = std::operator==<char>(v11, a3), std::string::~string(v11), v9) ) { *(_QWORD *)(a2 + 32) += a3[1]; std::string::basic_string(a1, a3); } else { *(_QWORD *)(a2 + 32) = v6; std::string::basic_string<std::allocator<char>>(a1, (long long)""); } return a1; }
consumeToken: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV R13,qword ptr [RSI + 0x20] MOV RDI,RSI MOV ESI,ECX CALL 0x001613ca MOV RAX,qword ptr [R15 + 0x18] MOV RSI,qword ptr [R15 + 0x20] SUB RAX,RSI MOV RDX,qword ptr [R14 + 0x8] CMP RAX,RDX JL 0x00160b4d ADD RDX,RSI LEA RAX,[RSP + 0x18] MOV qword ptr [RAX + -0x10],RAX LEA R12,[RSP + 0x8] MOV RDI,R12 CALL 0x001521e4 MOV RDI,R12 MOV RSI,R14 CALL 0x0013a3b8 MOV EBP,EAX MOV RDI,R12 CALL 0x001241b8 TEST BPL,BPL JZ 0x00160b4d MOV RAX,qword ptr [R14 + 0x8] ADD qword ptr [R15 + 0x20],RAX MOV RDI,RBX MOV RSI,R14 CALL 0x00123c00 JMP 0x00160b65 LAB_00160b4d: MOV qword ptr [R15 + 0x20],R13 LEA RSI,[0x1aeb19] LEA RDX,[RSP + 0x8] MOV RDI,RBX CALL 0x0012746a LAB_00160b65: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::Parser::consumeToken(std::__cxx11::string const&, minja::SpaceHandling) */ string * minja::Parser::consumeToken (string *param_1,Parser *param_2,string *param_3,int4 param_4) { int8 uVar1; long lVar2; char cVar3; int1 *local_50 [2]; int1 local_40 [16]; uVar1 = *(int8 *)(param_2 + 0x20); consumeSpaces(param_2,param_4); lVar2 = *(long *)(param_2 + 0x20); if (*(long *)(param_3 + 8) <= *(long *)(param_2 + 0x18) - lVar2) { local_50[0] = local_40; std::__cxx11::string:: _M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> ((string *)local_50,lVar2,*(long *)(param_3 + 8) + lVar2); cVar3 = std::operator==((string *)local_50,param_3); std::__cxx11::string::~string((string *)local_50); if (cVar3 != '\0') { *(long *)(param_2 + 0x20) = *(long *)(param_2 + 0x20) + *(long *)(param_3 + 8); std::__cxx11::string::string(param_1,param_3); return param_1; } } *(int8 *)(param_2 + 0x20) = uVar1; std::__cxx11::string::string<std::allocator<char>>(param_1,"",(allocator *)local_50); return param_1; }
44,060
minja::Parser::consumeToken(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::SpaceHandling)
monkey531[P]llama/common/minja.hpp
std::string consumeToken(const std::string & token, SpaceHandling space_handling = SpaceHandling::Strip) { auto start = it; consumeSpaces(space_handling); if (std::distance(it, end) >= (int64_t) token.size() && std::string(it, it + token.size()) == token) { it += token.size(); return token; } it = start; return ""; }
O3
cpp
minja::Parser::consumeToken(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::SpaceHandling): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movq 0x20(%rsi), %r13 movq %rsi, %rdi movl %ecx, %esi callq 0x843b8 movq 0x18(%r15), %rax movq 0x20(%r15), %rsi subq %rsi, %rax movq 0x8(%r14), %rdx cmpq %rdx, %rax jl 0x83b52 addq %rsi, %rdx leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x8(%rsp), %r12 movq %r12, %rdi callq 0x7003a movq 0x8(%r12), %rdx cmpq 0x8(%r14), %rdx jne 0x83b08 movq 0x8(%rsp), %r12 testq %rdx, %rdx je 0x83b11 movq (%r14), %rsi movq %r12, %rdi callq 0x1a900 testl %eax, %eax sete %bpl jmp 0x83b14 movq 0x8(%rsp), %r12 xorl %ebp, %ebp jmp 0x83b14 movb $0x1, %bpl leaq 0x18(%rsp), %rax cmpq %rax, %r12 je 0x83b2e movq 0x18(%rsp), %rsi incq %rsi movq %r12, %rdi callq 0x1a8c0 testb %bpl, %bpl je 0x83b52 movq 0x8(%r14), %rdx addq %rdx, 0x20(%r15) leaq 0x10(%rbx), %rax movq %rax, (%rbx) movq (%r14), %rsi addq %rsi, %rdx movq %rbx, %rdi callq 0x219f6 jmp 0x83b6f movq %r13, 0x20(%r15) leaq 0x10(%rbx), %rax movq %rax, (%rbx) leaq 0x66fe2(%rip), %rdx # 0xeab46 movq %rbx, %rdi movq %rdx, %rsi callq 0x21b26 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r14, rdx mov r15, rsi mov rbx, rdi mov r13, [rsi+20h] mov rdi, rsi mov esi, ecx call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling) mov rax, [r15+18h] mov rsi, [r15+20h] sub rax, rsi mov rdx, [r14+8] cmp rax, rdx jl loc_83B52 add rdx, rsi lea rax, [rsp+58h+var_40] mov [rax-10h], rax lea r12, [rsp+58h+var_50] mov rdi, r12 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) mov rdx, [r12+8] cmp rdx, [r14+8] jnz short loc_83B08 mov r12, [rsp+58h+var_50] test rdx, rdx jz short loc_83B11 mov rsi, [r14] mov rdi, r12 call _bcmp test eax, eax setz bpl jmp short loc_83B14 loc_83B08: mov r12, [rsp+58h+var_50] xor ebp, ebp jmp short loc_83B14 loc_83B11: mov bpl, 1 loc_83B14: lea rax, [rsp+58h+var_40] cmp r12, rax jz short loc_83B2E mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 mov rdi, r12; void * call __ZdlPvm; operator delete(void *,ulong) loc_83B2E: test bpl, bpl jz short loc_83B52 mov rdx, [r14+8] add [r15+20h], rdx lea rax, [rbx+10h] mov [rbx], rax mov rsi, [r14] add rdx, rsi mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) jmp short loc_83B6F loc_83B52: mov [r15+20h], r13 lea rax, [rbx+10h] mov [rbx], rax lea rdx, aErrorWhileHand_0+34h; "" mov rdi, rbx mov rsi, rdx 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) loc_83B6F: mov rax, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_QWORD * minja::Parser::consumeToken(_QWORD *a1, long long a2, _BYTE **a3, unsigned int a4) { long long v6; // r13 _BYTE *v7; // rsi _BYTE *v8; // rdx _QWORD *v9; // r12 bool v10; // bp _BYTE *v11; // rdx void *v13; // [rsp+8h] [rbp-50h] BYREF _BYTE *v14; // [rsp+10h] [rbp-48h] _QWORD v15[8]; // [rsp+18h] [rbp-40h] BYREF v6 = *(_QWORD *)(a2 + 32); minja::Parser::consumeSpaces(a2, a4); v7 = *(_BYTE **)(a2 + 32); v8 = a3[1]; if ( *(_QWORD *)(a2 + 24) - (_QWORD)v7 < (long long)v8 ) goto LABEL_11; v13 = v15; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>( (long long)&v13, v7, (long long)&v8[(_QWORD)v7]); if ( v14 == a3[1] ) { v9 = v13; v10 = !v14 || (unsigned int)bcmp(v13, *a3) == 0; } else { v9 = v13; v10 = 0; } if ( v9 != v15 ) operator delete(v9, v15[0] + 1LL); if ( v10 ) { v11 = a3[1]; *(_QWORD *)(a2 + 32) += v11; *a1 = a1 + 2; std::string::_M_construct<char *>((long long)a1, *a3, (long long)&v11[(_QWORD)*a3]); } else { LABEL_11: *(_QWORD *)(a2 + 32) = v6; *a1 = a1 + 2; std::string::_M_construct<char const*>((long long)a1, "", (long long)""); } return a1; }
consumeToken: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV R13,qword ptr [RSI + 0x20] MOV RDI,RSI MOV ESI,ECX CALL 0x001843b8 MOV RAX,qword ptr [R15 + 0x18] MOV RSI,qword ptr [R15 + 0x20] SUB RAX,RSI MOV RDX,qword ptr [R14 + 0x8] CMP RAX,RDX JL 0x00183b52 ADD RDX,RSI LEA RAX,[RSP + 0x18] MOV qword ptr [RAX + -0x10],RAX LEA R12,[RSP + 0x8] MOV RDI,R12 CALL 0x0017003a MOV RDX,qword ptr [R12 + 0x8] CMP RDX,qword ptr [R14 + 0x8] JNZ 0x00183b08 MOV R12,qword ptr [RSP + 0x8] TEST RDX,RDX JZ 0x00183b11 MOV RSI,qword ptr [R14] MOV RDI,R12 CALL 0x0011a900 TEST EAX,EAX SETZ BPL JMP 0x00183b14 LAB_00183b08: MOV R12,qword ptr [RSP + 0x8] XOR EBP,EBP JMP 0x00183b14 LAB_00183b11: MOV BPL,0x1 LAB_00183b14: LEA RAX,[RSP + 0x18] CMP R12,RAX JZ 0x00183b2e MOV RSI,qword ptr [RSP + 0x18] INC RSI MOV RDI,R12 CALL 0x0011a8c0 LAB_00183b2e: TEST BPL,BPL JZ 0x00183b52 MOV RDX,qword ptr [R14 + 0x8] ADD qword ptr [R15 + 0x20],RDX LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX MOV RSI,qword ptr [R14] ADD RDX,RSI MOV RDI,RBX CALL 0x001219f6 JMP 0x00183b6f LAB_00183b52: MOV qword ptr [R15 + 0x20],R13 LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX LEA RDX,[0x1eab46] MOV RDI,RBX MOV RSI,RDX CALL 0x00121b26 LAB_00183b6f: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::Parser::consumeToken(std::__cxx11::string const&, minja::SpaceHandling) */ long * minja::Parser::consumeToken(long *param_1,Parser *param_2,long *param_3,int4 param_4) { int8 uVar1; long lVar2; long *plVar3; int iVar4; bool bVar5; long *local_50; size_t local_48; long local_40 [2]; uVar1 = *(int8 *)(param_2 + 0x20); consumeSpaces(param_2,param_4); lVar2 = *(long *)(param_2 + 0x20); if (param_3[1] <= *(long *)(param_2 + 0x18) - lVar2) { local_50 = local_40; std::__cxx11::string:: _M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> (&local_50,lVar2,param_3[1] + lVar2); plVar3 = local_50; if (local_48 == param_3[1]) { if (local_48 == 0) { bVar5 = true; } else { iVar4 = bcmp(local_50,(void *)*param_3,local_48); bVar5 = iVar4 == 0; } } else { bVar5 = false; } if (plVar3 != local_40) { operator_delete(plVar3,local_40[0] + 1); } if (bVar5) { lVar2 = param_3[1]; *(long *)(param_2 + 0x20) = *(long *)(param_2 + 0x20) + lVar2; *param_1 = (long)(param_1 + 2); std::__cxx11::string::_M_construct<char*>(param_1,*param_3,lVar2 + *param_3); return param_1; } } *(int8 *)(param_2 + 0x20) = uVar1; *param_1 = (long)(param_1 + 2); std::__cxx11::string::_M_construct<char_const*>(param_1,""); return param_1; }
44,061
LefDefParser::lefwLayerRoutingSpacingRangeRange(double, double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwLayerRoutingSpacingRangeRange(double minWidth, double maxWidth) { if (!lefwFile) return LEFW_UNINITIALIZED; if (lefwState != LEFW_LAYERROUTING_START && lefwState != LEFW_LAYERROUTING) return LEFW_BAD_ORDER; if (!lefwIsRouting) return LEFW_BAD_DATA; // only routing calls this func if (!lefwHasLayerRoutingRange) { // This routine can be called only if range are non zero fprintf(lefwFile, "ERROR (LEFWRIT-4005): lefwLayerRoutingSpacingInfluence cannot be called if\n"); fprintf(lefwFile, " lefRange and rightRange in lefwLayerRoutingSpacing are both zero.\n"); return LEFW_BAD_DATA; } if (lefwWriteEncrypt) { encPrint(lefwFile, (char*) "RANGE %.11g %.11g ", minWidth, maxWidth); } else { fprintf(lefwFile, (char*) "RANGE %.11g %.11g ", minWidth, maxWidth); } prtNewLine = 1; prtSemiColon = 1; lefwHasLayerRoutingRange = 0; // reset to 0 return LEFW_OK; }
O0
cpp
LefDefParser::lefwLayerRoutingSpacingRangeRange(double, double): subq $0x18, %rsp movsd %xmm0, 0x8(%rsp) movsd %xmm1, (%rsp) leaq 0x21e7a(%rip), %rax # 0x32e00 cmpq $0x0, (%rax) jne 0x10f99 movl $0x1, 0x14(%rsp) jmp 0x11091 leaq 0x220b0(%rip), %rax # 0x33050 cmpl $0x7, (%rax) je 0x10fbe leaq 0x220a4(%rip), %rax # 0x33050 cmpl $0x1f, (%rax) je 0x10fbe movl $0x2, 0x14(%rsp) jmp 0x11091 leaq 0x220ff(%rip), %rax # 0x330c4 cmpl $0x0, (%rax) jne 0x10fd7 movl $0x3, 0x14(%rsp) jmp 0x11091 cmpl $0x0, 0x2211a(%rip) # 0x330f8 jne 0x1101a leaq 0x21e19(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x1963f(%rip), %rsi # 0x2a630 movb $0x0, %al callq 0x1100 leaq 0x21e01(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x195c6(%rip), %rsi # 0x2a5cf movb $0x0, %al callq 0x1100 movl $0x3, 0x14(%rsp) jmp 0x11091 cmpl $0x0, 0x220cb(%rip) # 0x330ec je 0x11048 leaq 0x21dd6(%rip), %rax # 0x32e00 movq (%rax), %rdi movsd 0x8(%rsp), %xmm0 movsd (%rsp), %xmm1 leaq 0x19488(%rip), %rsi # 0x2a4c7 movb $0x2, %al callq 0x289b0 jmp 0x1106b leaq 0x21db1(%rip), %rax # 0x32e00 movq (%rax), %rdi movsd 0x8(%rsp), %xmm0 movsd (%rsp), %xmm1 leaq 0x19463(%rip), %rsi # 0x2a4c7 movb $0x2, %al callq 0x1100 movl $0x1, 0x2208f(%rip) # 0x33104 movl $0x1, 0x22075(%rip) # 0x330f4 movl $0x0, 0x2206f(%rip) # 0x330f8 movl $0x0, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopw (%rax,%rax)
_ZN12LefDefParser33lefwLayerRoutingSpacingRangeRangeEdd: sub rsp, 18h movsd [rsp+18h+var_10], xmm0 movsd [rsp+18h+var_18], xmm1 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile cmp qword ptr [rax], 0 jnz short loc_10F99 mov [rsp+18h+var_4], 1 jmp loc_11091 loc_10F99: lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState cmp dword ptr [rax], 7 jz short loc_10FBE lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState cmp dword ptr [rax], 1Fh jz short loc_10FBE mov [rsp+18h+var_4], 2 jmp loc_11091 loc_10FBE: lea rax, _ZN12LefDefParser13lefwIsRoutingE; LefDefParser::lefwIsRouting cmp dword ptr [rax], 0 jnz short loc_10FD7 mov [rsp+18h+var_4], 3 jmp loc_11091 loc_10FD7: cmp cs:_ZN12LefDefParserL24lefwHasLayerRoutingRangeE, 0; LefDefParser::lefwHasLayerRoutingRange jnz short loc_1101A lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aErrorLefwrit40_4; "ERROR (LEFWRIT-4005): lefwLayerRoutingS"... mov al, 0 call _fprintf lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aLefrangeAndRig; " lefRange and rightRange in lefwL"... mov al, 0 call _fprintf mov [rsp+18h+var_4], 3 jmp short loc_11091 loc_1101A: cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt jz short loc_11048 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] movsd xmm0, [rsp+18h+var_10] movsd xmm1, [rsp+18h+var_18] lea rsi, aRange11g11g; "RANGE %.11g %.11g " mov al, 2 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_1106B loc_11048: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] movsd xmm0, [rsp+18h+var_10] movsd xmm1, [rsp+18h+var_18] lea rsi, aRange11g11g; "RANGE %.11g %.11g " mov al, 2 call _fprintf loc_1106B: mov cs:_ZN12LefDefParserL10prtNewLineE, 1; LefDefParser::prtNewLine mov cs:_ZN12LefDefParserL12prtSemiColonE, 1; LefDefParser::prtSemiColon mov cs:_ZN12LefDefParserL24lefwHasLayerRoutingRangeE, 0; LefDefParser::lefwHasLayerRoutingRange mov [rsp+18h+var_4], 0 loc_11091: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long LefDefParser::lefwLayerRoutingSpacingRangeRange( LefDefParser *this, double a2, double a3, long long a4, int a5, int a6, int a7, int a8) { if ( *(_QWORD *)&LefDefParser::lefwFile ) { if ( LefDefParser::lefwState == 7 || LefDefParser::lefwState == 31 ) { if ( LefDefParser::lefwIsRouting ) { if ( LefDefParser::lefwHasLayerRoutingRange ) { if ( LefDefParser::lefwWriteEncrypt ) LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"RANGE %.11g %.11g ", a5, a6, a7, a8); else fprintf(*(_QWORD *)&LefDefParser::lefwFile, "RANGE %.11g %.11g ", a2, a3); LefDefParser::prtNewLine = 1; LefDefParser::prtSemiColon = 1; LefDefParser::lefwHasLayerRoutingRange = 0; return 0; } else { fprintf( *(_QWORD *)&LefDefParser::lefwFile, "ERROR (LEFWRIT-4005): lefwLayerRoutingSpacingInfluence cannot be called if\n"); fprintf( *(_QWORD *)&LefDefParser::lefwFile, " lefRange and rightRange in lefwLayerRoutingSpacing are both zero.\n"); return 3; } } else { return 3; } } else { return 2; } } else { return 1; } }
lefwLayerRoutingSpacingRangeRange: SUB RSP,0x18 MOVSD qword ptr [RSP + 0x8],XMM0 MOVSD qword ptr [RSP],XMM1 LEA RAX,[0x132e00] CMP qword ptr [RAX],0x0 JNZ 0x00110f99 MOV dword ptr [RSP + 0x14],0x1 JMP 0x00111091 LAB_00110f99: LEA RAX,[0x133050] CMP dword ptr [RAX],0x7 JZ 0x00110fbe LEA RAX,[0x133050] CMP dword ptr [RAX],0x1f JZ 0x00110fbe MOV dword ptr [RSP + 0x14],0x2 JMP 0x00111091 LAB_00110fbe: LEA RAX,[0x1330c4] CMP dword ptr [RAX],0x0 JNZ 0x00110fd7 MOV dword ptr [RSP + 0x14],0x3 JMP 0x00111091 LAB_00110fd7: CMP dword ptr [0x001330f8],0x0 JNZ 0x0011101a LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x12a630] MOV AL,0x0 CALL 0x00101100 LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x12a5cf] MOV AL,0x0 CALL 0x00101100 MOV dword ptr [RSP + 0x14],0x3 JMP 0x00111091 LAB_0011101a: CMP dword ptr [0x001330ec],0x0 JZ 0x00111048 LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOVSD XMM0,qword ptr [RSP + 0x8] MOVSD XMM1,qword ptr [RSP] LEA RSI,[0x12a4c7] MOV AL,0x2 CALL 0x001289b0 JMP 0x0011106b LAB_00111048: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOVSD XMM0,qword ptr [RSP + 0x8] MOVSD XMM1,qword ptr [RSP] LEA RSI,[0x12a4c7] MOV AL,0x2 CALL 0x00101100 LAB_0011106b: MOV dword ptr [0x00133104],0x1 MOV dword ptr [0x001330f4],0x1 MOV dword ptr [0x001330f8],0x0 MOV dword ptr [RSP + 0x14],0x0 LAB_00111091: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
/* LefDefParser::lefwLayerRoutingSpacingRangeRange(double, double) */ int4 LefDefParser::lefwLayerRoutingSpacingRangeRange(double param_1,double param_2) { int4 local_4; if (lefwFile == (FILE *)0x0) { local_4 = 1; } else if ((lefwState == 7) || (lefwState == 0x1f)) { if (lefwIsRouting == 0) { local_4 = 3; } else if (lefwHasLayerRoutingRange == 0) { fprintf(lefwFile, "ERROR (LEFWRIT-4005): lefwLayerRoutingSpacingInfluence cannot be called if\n"); fprintf(lefwFile," lefRange and rightRange in lefwLayerRoutingSpacing are both zero.\n") ; local_4 = 3; } else { if (lefwWriteEncrypt == 0) { fprintf(lefwFile,"RANGE %.11g %.11g ",param_1,param_2); } else { encPrint(lefwFile,"RANGE %.11g %.11g ",param_1,param_2); } prtNewLine = 1; prtSemiColon = 1; lefwHasLayerRoutingRange = 0; local_4 = 0; } } else { local_4 = 2; } return local_4; }
44,062
MYSQL_BIN_LOG::open_purge_index_file(bool)
eloqsql/sql/log.cc
int MYSQL_BIN_LOG::open_purge_index_file(bool destroy) { int error= 0; File file= -1; DBUG_ENTER("MYSQL_BIN_LOG::open_purge_index_file"); if (destroy) close_purge_index_file(); if (!my_b_inited(&purge_index_file)) { if ((file= my_open(purge_index_file_name, O_RDWR | O_CREAT | O_BINARY, MYF(MY_WME))) < 0 || init_io_cache(&purge_index_file, file, IO_SIZE, (destroy ? WRITE_CACHE : READ_CACHE), 0, 0, MYF(MY_WME | MY_NABP | MY_WAIT_IF_FULL))) { error= 1; sql_print_error("MYSQL_BIN_LOG::open_purge_index_file failed to open register " " file."); } } DBUG_RETURN(error); }
O0
cpp
MYSQL_BIN_LOG::open_purge_index_file(bool): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movb %sil, %al movq %rdi, -0x8(%rbp) andb $0x1, %al movb %al, -0x9(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movl $0x0, -0x10(%rbp) movl $0xffffffff, -0x14(%rbp) # imm = 0xFFFFFFFF testb $0x1, -0x9(%rbp) je 0xd305c9 movq -0x20(%rbp), %rdi callq 0xd30b00 movq -0x20(%rbp), %rdi addq $0x910, %rdi # imm = 0x910 callq 0xd341a0 cmpl $0x0, %eax jne 0xd30667 movq -0x20(%rbp), %rdi addq $0xa18, %rdi # imm = 0xA18 movl $0x42, %esi movl $0x10, %edx callq 0x12c7bb0 movl %eax, -0x14(%rbp) cmpl $0x0, %eax jl 0xd30644 movq -0x20(%rbp), %rdi addq $0x910, %rdi # imm = 0x910 movl -0x14(%rbp), %esi movb -0x9(%rbp), %dl movl $0x1, %ecx movl $0x2, %eax testb $0x1, %dl cmovnel %eax, %ecx movl $0x1000, %edx # imm = 0x1000 xorl %eax, %eax movl %eax, %r8d xorl %r9d, %r9d movq $0x34, (%rsp) callq 0x12ac7f0 cmpl $0x0, %eax je 0xd30665 movl $0x1, -0x10(%rbp) leaq 0x6a72b4(%rip), %rdi # 0x13d7906 movl $0x1307, %esi # imm = 0x1307 leaq 0x6a7bc2(%rip), %rdx # 0x13d8220 movb $0x0, %al callq 0xd29700 jmp 0xd30667 jmp 0xd30669 movl -0x10(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN13MYSQL_BIN_LOG21open_purge_index_fileEb: push rbp mov rbp, rsp sub rsp, 30h mov al, sil mov [rbp+var_8], rdi and al, 1 mov [rbp+var_9], al mov rax, [rbp+var_8] mov [rbp+var_20], rax mov [rbp+var_10], 0 mov [rbp+var_14], 0FFFFFFFFh test [rbp+var_9], 1 jz short loc_D305C9 mov rdi, [rbp+var_20]; this call _ZN13MYSQL_BIN_LOG22close_purge_index_fileEv; MYSQL_BIN_LOG::close_purge_index_file(void) loc_D305C9: mov rdi, [rbp+var_20] add rdi, 910h call _ZL11my_b_initedP11st_io_cache_4; my_b_inited(st_io_cache *) cmp eax, 0 jnz loc_D30667 mov rdi, [rbp+var_20] add rdi, 0A18h mov esi, 42h ; 'B' mov edx, 10h call my_open mov [rbp+var_14], eax cmp eax, 0 jl short loc_D30644 mov rdi, [rbp+var_20] add rdi, 910h mov esi, [rbp+var_14] mov dl, [rbp+var_9] mov ecx, 1 mov eax, 2 test dl, 1 cmovnz ecx, eax mov edx, 1000h xor eax, eax mov r8d, eax xor r9d, r9d mov [rsp+30h+var_30], 34h ; '4' call init_io_cache cmp eax, 0 jz short loc_D30665 loc_D30644: mov [rbp+var_10], 1 lea rdi, aWorkspaceLlm4b_100; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 1307h; int lea rdx, aMysqlBinLogOpe_0; "MYSQL_BIN_LOG::open_purge_index_file fa"... mov al, 0 call _Z16glog_print_errorPKciS0_z; glog_print_error(char const*,int,char const*,...) loc_D30665: jmp short $+2 loc_D30667: jmp short $+2 loc_D30669: mov eax, [rbp+var_10] add rsp, 30h pop rbp retn
long long MYSQL_BIN_LOG::open_purge_index_file(MYSQL_BIN_LOG *this, char a2) { int v2; // ecx int v4; // [rsp+1Ch] [rbp-14h] unsigned int v5; // [rsp+20h] [rbp-10h] v5 = 0; if ( (a2 & 1) != 0 ) MYSQL_BIN_LOG::close_purge_index_file(this); if ( !(unsigned int)my_b_inited((char *)this + 2320) ) { v4 = my_open((char *)this + 2584, 66LL, 16LL); if ( v4 < 0 ) goto LABEL_8; v2 = 1; if ( (a2 & 1) != 0 ) v2 = 2; if ( (unsigned int)init_io_cache((int)this + 2320, v4, 4096, v2, 0, 0, 52LL) ) { LABEL_8: v5 = 1; glog_print_error( "/workspace/llm4binary/github2025/eloqsql/sql/log.cc", 0x1307u, "MYSQL_BIN_LOG::open_purge_index_file failed to open register file."); } } return v5; }
save_str_value_in_field: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX TEST byte ptr [RAX + 0x64],0x1 JZ 0x00d305c0 MOV RDI,qword ptr [RBP + -0x18] CALL 0x00d0cac0 MOV dword ptr [RBP + -0x4],EAX JMP 0x00d30612 LAB_00d305c0: MOV RDI,qword ptr [RBP + -0x18] XOR EAX,EAX MOV ESI,EAX CALL 0x008faa10 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x8 CALL 0x008e7810 MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x8 CALL 0x008e7830 MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x30] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x28] MOV ECX,ECX MOV EDX,ECX MOV RCX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x60] MOV dword ptr [RBP + -0x4],EAX LAB_00d30612: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
/* Item::save_str_value_in_field(Field*, String*) */ int4 __thiscall Item::save_str_value_in_field(Item *this,Field *param_1,String *param_2) { int4 uVar1; int8 uVar2; int4 local_c; if (((byte)this[100] & 1) == 0) { Field::set_notnull(param_1,0); uVar2 = Binary_string::ptr((Binary_string *)(param_2 + 8)); uVar1 = Binary_string::length((Binary_string *)(param_2 + 8)); local_c = (**(code **)(*(long *)param_1 + 0x60)) (param_1,uVar2,uVar1,*(int8 *)(this + 0x10)); } else { local_c = set_field_to_null(param_1); } return local_c; }
44,063
MYSQL_BIN_LOG::open_purge_index_file(bool)
eloqsql/sql/log.cc
int MYSQL_BIN_LOG::open_purge_index_file(bool destroy) { int error= 0; File file= -1; DBUG_ENTER("MYSQL_BIN_LOG::open_purge_index_file"); if (destroy) close_purge_index_file(); if (!my_b_inited(&purge_index_file)) { if ((file= my_open(purge_index_file_name, O_RDWR | O_CREAT | O_BINARY, MYF(MY_WME))) < 0 || init_io_cache(&purge_index_file, file, IO_SIZE, (destroy ? WRITE_CACHE : READ_CACHE), 0, 0, MYF(MY_WME | MY_NABP | MY_WAIT_IF_FULL))) { error= 1; sql_print_error("MYSQL_BIN_LOG::open_purge_index_file failed to open register " " file."); } } DBUG_RETURN(error); }
O3
cpp
MYSQL_BIN_LOG::open_purge_index_file(bool): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %esi, %r14d movq %rdi, %rbx testl %esi, %esi je 0x9b5e14 movq %rbx, %rdi callq 0x9b62aa xorl %r15d, %r15d cmpq $0x0, 0x930(%rbx) jne 0x9b5e8c leaq 0xa18(%rbx), %rdi movl $0x10, %edx movl $0x42, %esi callq 0xcc43fc testl %eax, %eax js 0x9b5e6c addq $0x910, %rbx # imm = 0x910 movzbl %r14b, %ecx incl %ecx movq $0x34, (%rsp) xorl %r15d, %r15d movl $0x1000, %edx # imm = 0x1000 movq %rbx, %rdi movl %eax, %esi xorl %r8d, %r8d xorl %r9d, %r9d callq 0xcb489e testl %eax, %eax je 0x9b5e8c leaq 0x3cc2d1(%rip), %rdi # 0xd82144 leaq 0x3ccbe4(%rip), %rdx # 0xd82a5e movl $0x1307, %esi # imm = 0x1307 xorl %eax, %eax callq 0x9b0bc8 movl $0x1, %r15d movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
_ZN13MYSQL_BIN_LOG21open_purge_index_fileEb: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14d, esi mov rbx, rdi test esi, esi jz short loc_9B5E14 mov rdi, rbx; this call _ZN13MYSQL_BIN_LOG22close_purge_index_fileEv; MYSQL_BIN_LOG::close_purge_index_file(void) loc_9B5E14: xor r15d, r15d cmp qword ptr [rbx+930h], 0 jnz short loc_9B5E8C lea rdi, [rbx+0A18h] mov edx, 10h mov esi, 42h ; 'B' call my_open test eax, eax js short loc_9B5E6C add rbx, 910h movzx ecx, r14b inc ecx mov [rsp+20h+var_20], 34h ; '4' xor r15d, r15d mov edx, 1000h mov rdi, rbx mov esi, eax xor r8d, r8d xor r9d, r9d call init_io_cache test eax, eax jz short loc_9B5E8C loc_9B5E6C: lea rdi, aWorkspaceLlm4b_50; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aMysqlBinLogOpe_0; "MYSQL_BIN_LOG::open_purge_index_file fa"... mov esi, 1307h; int xor eax, eax call _Z16glog_print_errorPKciS0_z; glog_print_error(char const*,int,char const*,...) mov r15d, 1 loc_9B5E8C: mov eax, r15d add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long MYSQL_BIN_LOG::open_purge_index_file( MYSQL_BIN_LOG *this, int a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, double a7, double a8, __m128 a9, __m128 a10) { char v10; // al unsigned int v11; // r15d int v12; // eax long long v13; // rcx long long v14; // r8 long long v15; // r9 __m128 v16; // xmm4 __m128 v17; // xmm5 char v19; // [rsp+0h] [rbp-20h] v19 = v10; if ( a2 ) MYSQL_BIN_LOG::close_purge_index_file(this); v11 = 0; if ( !*((_QWORD *)this + 294) ) { v12 = my_open((char *)this + 2584, 66LL, 16LL); if ( v12 < 0 || (v11 = 0, (unsigned int)init_io_cache((int)this + 2320, v12, 4096, (unsigned int)(unsigned __int8)a2 + 1, 0, 0, 52LL)) ) { glog_print_error( "/workspace/llm4binary/github2025/eloqsql/sql/log.cc", 0x1307u, "MYSQL_BIN_LOG::open_purge_index_file failed to open register file.", v13, v14, v15, a3, a4, a5, a6, v16, v17, a9, a10, v19); return 1; } } return v11; }
44,064
Catch::RunContext::runTest(Catch::TestCaseHandle const&)
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
Totals RunContext::runTest(TestCaseHandle const& testCase) { const Totals prevTotals = m_totals; auto const& testInfo = testCase.getTestCaseInfo(); m_reporter->testCaseStarting(testInfo); m_activeTestCase = &testCase; ITracker& rootTracker = m_trackerContext.startRun(); assert(rootTracker.isSectionTracker()); static_cast<SectionTracker&>(rootTracker).addInitialFilters(m_config->getSectionsToRun()); // We intentionally only seed the internal RNG once per test case, // before it is first invoked. The reason for that is a complex // interplay of generator/section implementation details and the // Random*Generator types. // // The issue boils down to us needing to seed the Random*Generators // with different seed each, so that they return different sequences // of random numbers. We do this by giving them a number from the // shared RNG instance as their seed. // // However, this runs into an issue if the reseeding happens each // time the test case is entered (as opposed to first time only), // because multiple generators could get the same seed, e.g. in // ```cpp // TEST_CASE() { // auto i = GENERATE(take(10, random(0, 100)); // SECTION("A") { // auto j = GENERATE(take(10, random(0, 100)); // } // SECTION("B") { // auto k = GENERATE(take(10, random(0, 100)); // } // } // ``` // `i` and `j` would properly return values from different sequences, // but `i` and `k` would return the same sequence, because their seed // would be the same. // (The reason their seeds would be the same is that the generator // for k would be initialized when the test case is entered the second // time, after the shared RNG instance was reset to the same value // it had when the generator for i was initialized.) seedRng( *m_config ); uint64_t testRuns = 0; std::string redirectedCout; std::string redirectedCerr; do { m_trackerContext.startCycle(); m_testCaseTracker = &SectionTracker::acquire(m_trackerContext, TestCaseTracking::NameAndLocationRef(testInfo.name, testInfo.lineInfo)); m_reporter->testCasePartialStarting(testInfo, testRuns); const auto beforeRunTotals = m_totals; std::string oneRunCout, oneRunCerr; runCurrentTest(oneRunCout, oneRunCerr); redirectedCout += oneRunCout; redirectedCerr += oneRunCerr; const auto singleRunTotals = m_totals.delta(beforeRunTotals); auto statsForOneRun = TestCaseStats(testInfo, singleRunTotals, CATCH_MOVE(oneRunCout), CATCH_MOVE(oneRunCerr), aborting()); m_reporter->testCasePartialEnded(statsForOneRun, testRuns); ++testRuns; } while (!m_testCaseTracker->isSuccessfullyCompleted() && !aborting()); Totals deltaTotals = m_totals.delta(prevTotals); if (testInfo.expectedToFail() && deltaTotals.testCases.passed > 0) { deltaTotals.assertions.failed++; deltaTotals.testCases.passed--; deltaTotals.testCases.failed++; } m_totals.testCases += deltaTotals.testCases; m_reporter->testCaseEnded(TestCaseStats(testInfo, deltaTotals, CATCH_MOVE(redirectedCout), CATCH_MOVE(redirectedCerr), aborting())); m_activeTestCase = nullptr; m_testCaseTracker = nullptr; return deltaTotals; }
O3
cpp
Catch::RunContext::runTest(Catch::TestCaseHandle const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x208, %rsp # imm = 0x208 movq %rdx, %rbx movq %rsi, %r15 movq %rdi, 0xa0(%rsp) leaq 0xd0(%rsi), %rax movq %rax, 0x10(%rsp) movdqu 0xd0(%rsi), %xmm0 movdqu 0xe0(%rsi), %xmm1 movups 0xf0(%rsi), %xmm2 movups 0x100(%rsi), %xmm3 movaps %xmm3, 0x1b0(%rsp) movaps %xmm2, 0x1a0(%rsp) movdqa %xmm1, 0x190(%rsp) movdqa %xmm0, 0x180(%rsp) movq (%rdx), %r14 movq 0x110(%rsi), %rdi movq (%rdi), %rax movq %r14, %rsi callq *0x28(%rax) leaq 0x20(%r15), %rax movq %rax, 0x98(%rsp) movq %rbx, 0x20(%r15) leaq 0x1b0(%r15), %rdi movq %rdi, 0xa8(%rsp) callq 0x5ecae movq %rax, %rbx movq 0xc8(%r15), %rdi movq (%rdi), %rax callq *0xa8(%rax) movq %rbx, %rdi movq %rax, %rsi callq 0x5ede2 movq 0xc8(%r15), %rbx callq 0x58b19 movq (%rbx), %rax movq %rbx, %rdi movq %r14, %rbx callq *0x88(%rax) movl %eax, %eax movabsq $0x5851f42d4c957f2d, %rcx # imm = 0x5851F42D4C957F2D imulq %rax, %rcx movabsq $0x6f1903917447ed96, %rax # imm = 0x6F1903917447ED96 addq %rcx, %rax movq %rax, 0xd5833(%rip) # 0x134068 leaq 0x88(%rsp), %rax movq %rax, -0x10(%rax) xorl %ecx, %ecx movq %rcx, -0x8(%rax) movb %cl, (%rax) leaq 0x68(%rsp), %rax movq %rax, -0x10(%rax) movq %rcx, -0x8(%rax) movb %cl, (%rax) leaq 0xb0(%rsp), %rsi xorl %r13d, %r13d movq %r14, 0x8(%rsp) movq 0x1b0(%r15), %rax movq %rax, 0x1b8(%r15) movl $0x1, 0x1c0(%r15) movdqu (%rbx), %xmm0 movdqu 0x68(%rbx), %xmm1 movdqu %xmm0, 0xb0(%rsp) movdqu %xmm1, 0xc0(%rsp) movq 0xa8(%rsp), %rdi movq %rsi, %r14 callq 0x5eec6 movq %rax, 0x28(%r15) movq 0x110(%r15), %rdi movq (%rdi), %rax movq %rbx, %rsi movq %r13, %rdx callq *0x30(%rax) movq 0x10(%rsp), %rax movdqu (%rax), %xmm0 movdqu 0x10(%rax), %xmm1 movups 0x20(%rax), %xmm2 movups 0x30(%rax), %xmm3 movaps %xmm3, 0x170(%rsp) movaps %xmm2, 0x160(%rsp) movdqa %xmm1, 0x150(%rsp) movdqa %xmm0, 0x140(%rsp) leaq 0x48(%rsp), %rax movq %rax, 0x38(%rsp) xorl %ecx, %ecx movq %rcx, 0x40(%rsp) movb %cl, 0x48(%rsp) leaq 0x28(%rsp), %rax movq %rax, 0x18(%rsp) movq %rcx, 0x20(%rsp) movb %cl, 0x28(%rsp) movq %r15, %rdi leaq 0x38(%rsp), %rsi leaq 0x18(%rsp), %rdx callq 0x5f036 movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx leaq 0x78(%rsp), %rdi callq 0x82008 movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx leaq 0x58(%rsp), %rdi callq 0x82008 leaq 0x1c8(%rsp), %r12 movq %r12, %rdi movq 0x10(%rsp), %rsi leaq 0x140(%rsp), %rdx callq 0x589a6 movq 0xc8(%r15), %rdi movq 0xd8(%r15), %rbp movq (%rdi), %rax callq *0x48(%rax) movq %r14, %rbx cltq xorl %r9d, %r9d cmpq %rax, %rbp setae %r9b movq %r14, %rdi movq 0x8(%rsp), %rsi movq %r12, %rdx leaq 0x38(%rsp), %rcx leaq 0x18(%rsp), %r8 callq 0x58ed0 movq 0x110(%r15), %rdi movq (%rdi), %rax movq %rbx, %rsi movq %r13, %rdx callq *0x78(%rax) movq 0x118(%rsp), %rdi leaq 0x128(%rsp), %rax cmpq %rax, %rdi movq 0x8(%rsp), %rbx je 0x5e9f4 movq 0x128(%rsp), %rsi incq %rsi callq 0x17150 movq 0xf8(%rsp), %rdi leaq 0x108(%rsp), %rax cmpq %rax, %rdi je 0x5ea19 movq 0x108(%rsp), %rsi incq %rsi callq 0x17150 movq 0x18(%rsp), %rdi leaq 0x28(%rsp), %rax cmpq %rax, %rdi je 0x5ea35 movq 0x28(%rsp), %rsi incq %rsi callq 0x17150 movq 0x38(%rsp), %rdi leaq 0x48(%rsp), %rax cmpq %rax, %rdi je 0x5ea51 movq 0x48(%rsp), %rsi incq %rsi callq 0x17150 movq 0x28(%r15), %rax cmpl $0x4, 0x58(%rax) je 0x5ea80 movq 0xc8(%r15), %rdi movq 0xd8(%r15), %rbp movq (%rdi), %rax callq *0x48(%rax) cltq incq %r13 cmpq %rax, %rbp movq %r14, %rsi jb 0x5e868 leaq 0x180(%rsp), %rdx movq 0xa0(%rsp), %r13 movq %r13, %rdi movq 0x10(%rsp), %rsi callq 0x589a6 movb 0x78(%rbx), %cl shrb $0x2, %cl movq 0x20(%r13), %rax testq %rax, %rax setne %dl testb %dl, %cl je 0x5eac9 incq 0x8(%r13) decq %rax movq %rax, 0x20(%r13) movq 0x28(%r13), %rcx incq %rcx movq %rcx, 0x28(%r13) jmp 0x5eacd movq 0x28(%r13), %rcx addq %rax, 0xf0(%r15) addq %rcx, 0xf8(%r15) movdqu 0x30(%r13), %xmm0 movdqu 0x100(%r15), %xmm1 paddq %xmm0, %xmm1 movdqu %xmm1, 0x100(%r15) movq 0x110(%r15), %rbx movq 0xc8(%r15), %rdi movq 0xd8(%r15), %r15 movq (%rdi), %rax callq *0x48(%rax) cltq xorl %r9d, %r9d cmpq %rax, %r15 setae %r9b leaq 0xb0(%rsp), %rdi leaq 0x78(%rsp), %rcx leaq 0x58(%rsp), %r8 movq 0x8(%rsp), %rsi movq %r13, %rdx callq 0x58ed0 movq (%rbx), %rax leaq 0xb0(%rsp), %rsi movq %rbx, %rdi callq *0x80(%rax) movq 0x118(%rsp), %rdi leaq 0x128(%rsp), %rax cmpq %rax, %rdi leaq 0x88(%rsp), %rbx leaq 0x68(%rsp), %r14 je 0x5eb83 movq 0x128(%rsp), %rsi incq %rsi callq 0x17150 movq 0xf8(%rsp), %rdi leaq 0x108(%rsp), %rax cmpq %rax, %rdi je 0x5eba8 movq 0x108(%rsp), %rsi incq %rsi callq 0x17150 pxor %xmm0, %xmm0 movq 0x98(%rsp), %rax movdqu %xmm0, (%rax) movq 0x58(%rsp), %rdi cmpq %r14, %rdi je 0x5ebcf movq 0x68(%rsp), %rsi incq %rsi callq 0x17150 movq 0x78(%rsp), %rdi cmpq %rbx, %rdi je 0x5ebe9 movq 0x88(%rsp), %rsi incq %rsi callq 0x17150 movq %r13, %rax addq $0x208, %rsp # imm = 0x208 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0xb0(%rsp), %rdi callq 0x786d6 jmp 0x5ec68 jmp 0x5ec26 movq %rax, %rbx leaq 0xb0(%rsp), %rdi callq 0x786d6 jmp 0x5ec30 jmp 0x5ec26 movq %rax, %rbx jmp 0x5ec68 jmp 0x5ec2d movq %rax, %rbx movq 0x18(%rsp), %rdi leaq 0x28(%rsp), %rax cmpq %rax, %rdi je 0x5ec4c movq 0x28(%rsp), %rsi incq %rsi callq 0x17150 movq 0x38(%rsp), %rdi leaq 0x48(%rsp), %rax cmpq %rax, %rdi je 0x5ec68 movq 0x48(%rsp), %rsi incq %rsi callq 0x17150 leaq 0x88(%rsp), %r14 leaq 0x68(%rsp), %rax movq 0x58(%rsp), %rdi cmpq %rax, %rdi je 0x5ec8c movq 0x68(%rsp), %rsi incq %rsi callq 0x17150 movq 0x78(%rsp), %rdi cmpq %r14, %rdi je 0x5eca6 movq 0x88(%rsp), %rsi incq %rsi callq 0x17150 movq %rbx, %rdi callq 0x17740
_ZN5Catch10RunContext7runTestERKNS_14TestCaseHandleE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 208h mov rbx, rdx mov r15, rsi mov [rsp+238h+var_198], rdi lea rax, [rsi+0D0h] mov [rsp+238h+var_228], rax; int movdqu xmm0, xmmword ptr [rsi+0D0h] movdqu xmm1, xmmword ptr [rsi+0E0h] movups xmm2, xmmword ptr [rsi+0F0h] movups xmm3, xmmword ptr [rsi+100h] movaps [rsp+238h+var_88], xmm3 movaps [rsp+238h+var_98], xmm2 movdqa [rsp+238h+var_A8], xmm1 movdqa [rsp+238h+var_B8], xmm0 mov r14, [rdx] mov rdi, [rsi+110h] mov rax, [rdi] mov rsi, r14 call qword ptr [rax+28h] lea rax, [r15+20h] mov [rsp+238h+var_1A0], rax mov [r15+20h], rbx lea rdi, [r15+1B0h]; this mov qword ptr [rsp+238h+var_190], rdi call _ZN5Catch16TestCaseTracking14TrackerContext8startRunEv; Catch::TestCaseTracking::TrackerContext::startRun(void) mov rbx, rax mov rdi, [r15+0C8h] mov rax, [rdi] call qword ptr [rax+0A8h] mov rdi, rbx; this mov rsi, rax call _ZN5Catch16TestCaseTracking14SectionTracker17addInitialFiltersERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EE; Catch::TestCaseTracking::SectionTracker::addInitialFilters(std::vector<std::string> const&) mov rbx, [r15+0C8h] call _ZN5Catch9sharedRngEv; Catch::sharedRng(void) mov rax, [rbx] mov rdi, rbx mov rbx, r14 call qword ptr [rax+88h] mov eax, eax mov rcx, 5851F42D4C957F2Dh imul rcx, rax mov rax, 6F1903917447ED96h add rax, rcx mov cs:_ZZN5Catch9sharedRngEvE5s_rng, rax; Catch::sharedRng(void)::s_rng lea rax, [rsp+238h+var_1B0] mov [rax-10h], rax xor ecx, ecx; int mov [rax-8], rcx mov [rax], cl lea rax, [rsp+238h+var_1D0] mov [rax-10h], rax mov [rax-8], rcx mov [rax], cl lea rsi, [rsp+238h+var_188]; int xor r13d, r13d mov [rsp+238h+var_230], r14; void * loc_5E868: mov rax, [r15+1B0h] mov [r15+1B8h], rax mov dword ptr [r15+1C0h], 1 movdqu xmm0, xmmword ptr [rbx] movdqu xmm1, xmmword ptr [rbx+68h] movdqu xmmword ptr [rsp+238h+var_188], xmm0 movdqu [rsp+238h+var_178], xmm1 mov rdi, qword ptr [rsp+238h+var_190]; int mov r14, rsi call _ZN5Catch16TestCaseTracking14SectionTracker7acquireERNS0_14TrackerContextERKNS0_18NameAndLocationRefE; Catch::TestCaseTracking::SectionTracker::acquire(Catch::TestCaseTracking::TrackerContext &,Catch::TestCaseTracking::NameAndLocationRef const&) mov [r15+28h], rax mov rdi, [r15+110h] mov rax, [rdi] mov rsi, rbx mov rdx, r13 call qword ptr [rax+30h] mov rax, [rsp+238h+var_228] movdqu xmm0, xmmword ptr [rax] movdqu xmm1, xmmword ptr [rax+10h] movups xmm2, xmmword ptr [rax+20h] movups xmm3, xmmword ptr [rax+30h] movaps [rsp+238h+var_C8], xmm3 movaps [rsp+238h+var_D8], xmm2 movdqa [rsp+238h+var_E8], xmm1 movdqa [rsp+238h+var_F8], xmm0 lea rax, [rsp+238h+var_1F0] mov [rsp+238h+var_200], rax; int xor ecx, ecx mov qword ptr [rsp+238h+var_1F8], rcx; int mov byte ptr [rsp+238h+var_1F0], cl; int lea rax, [rsp+238h+var_210] mov [rsp+238h+var_220], rax; __int64 mov qword ptr [rsp+238h+var_218], rcx; int mov byte ptr [rsp+238h+var_210], cl; int mov rdi, r15; this lea rsi, [rsp+238h+var_200] lea rdx, [rsp+238h+var_220] call _ZN5Catch10RunContext14runCurrentTestERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_; Catch::RunContext::runCurrentTest(std::string &,std::string &) mov rsi, [rsp+238h+var_200] mov rdx, qword ptr [rsp+238h+var_1F8] lea rdi, [rsp+238h+var_1C0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [rsp+238h+var_220] mov rdx, qword ptr [rsp+238h+var_218] lea rdi, [rsp+238h+var_1E0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) lea r12, [rsp+238h+var_70] mov rdi, r12 mov rsi, [rsp+238h+var_228] lea rdx, [rsp+238h+var_F8] call _ZNK5Catch6Totals5deltaERKS0_; Catch::Totals::delta(Catch::Totals const&) mov rdi, [r15+0C8h] mov rbp, [r15+0D8h] mov rax, [rdi] call qword ptr [rax+48h] mov rbx, r14 cdqe xor r9d, r9d cmp rbp, rax setnb r9b mov rdi, r14 mov rsi, [rsp+238h+var_230] mov rdx, r12 lea rcx, [rsp+238h+var_200] lea r8, [rsp+238h+var_220] call _ZN5Catch13TestCaseStatsC2ERKNS_12TestCaseInfoERKNS_6TotalsEONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESD_b; Catch::TestCaseStats::TestCaseStats(Catch::TestCaseInfo const&,Catch::Totals const&,std::string &&,std::string &,bool) mov rdi, [r15+110h] mov rax, [rdi] mov rsi, rbx mov rdx, r13 call qword ptr [rax+78h] mov rdi, [rsp+238h+var_120]; void * lea rax, [rsp+238h+var_110] cmp rdi, rax mov rbx, [rsp+238h+var_230] jz short loc_5E9F4 mov rsi, [rsp+238h+var_110] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5E9F4: mov rdi, [rsp+238h+var_140]; void * lea rax, [rsp+238h+var_130] cmp rdi, rax jz short loc_5EA19 mov rsi, [rsp+238h+var_130] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5EA19: mov rdi, [rsp+238h+var_220]; void * lea rax, [rsp+238h+var_210] cmp rdi, rax jz short loc_5EA35 mov rsi, [rsp+238h+var_210] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5EA35: mov rdi, [rsp+238h+var_200]; void * lea rax, [rsp+238h+var_1F0] cmp rdi, rax jz short loc_5EA51 mov rsi, qword ptr [rsp+238h+var_1F0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5EA51: mov rax, [r15+28h] cmp dword ptr [rax+58h], 4 jz short loc_5EA80 mov rdi, [r15+0C8h] mov rbp, [r15+0D8h] mov rax, [rdi] call qword ptr [rax+48h] cdqe inc r13 cmp rbp, rax mov rsi, r14 jb loc_5E868 loc_5EA80: lea rdx, [rsp+238h+var_B8] mov r13, [rsp+238h+var_198] mov rdi, r13 mov rsi, [rsp+238h+var_228] call _ZNK5Catch6Totals5deltaERKS0_; Catch::Totals::delta(Catch::Totals const&) mov cl, [rbx+78h] shr cl, 2 mov rax, [r13+20h] test rax, rax setnz dl test cl, dl jz short loc_5EAC9 inc qword ptr [r13+8] dec rax mov [r13+20h], rax mov rcx, [r13+28h] inc rcx mov [r13+28h], rcx jmp short loc_5EACD loc_5EAC9: mov rcx, [r13+28h] loc_5EACD: add [r15+0F0h], rax add [r15+0F8h], rcx movdqu xmm0, xmmword ptr [r13+30h] movdqu xmm1, xmmword ptr [r15+100h] paddq xmm1, xmm0 movdqu xmmword ptr [r15+100h], xmm1 mov rbx, [r15+110h] mov rdi, [r15+0C8h] mov r15, [r15+0D8h] mov rax, [rdi] call qword ptr [rax+48h] cdqe xor r9d, r9d cmp r15, rax setnb r9b lea rdi, [rsp+238h+var_188] lea rcx, [rsp+238h+var_1C0] lea r8, [rsp+238h+var_1E0] mov rsi, [rsp+238h+var_230] mov rdx, r13 call _ZN5Catch13TestCaseStatsC2ERKNS_12TestCaseInfoERKNS_6TotalsEONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESD_b; Catch::TestCaseStats::TestCaseStats(Catch::TestCaseInfo const&,Catch::Totals const&,std::string &&,std::string &,bool) mov rax, [rbx] lea rsi, [rsp+238h+var_188] mov rdi, rbx call qword ptr [rax+80h] mov rdi, [rsp+238h+var_120]; void * lea rax, [rsp+238h+var_110] cmp rdi, rax lea rbx, [rsp+238h+var_1B0] lea r14, [rsp+238h+var_1D0] jz short loc_5EB83 mov rsi, [rsp+238h+var_110] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5EB83: mov rdi, [rsp+238h+var_140]; void * lea rax, [rsp+238h+var_130] cmp rdi, rax jz short loc_5EBA8 mov rsi, [rsp+238h+var_130] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5EBA8: pxor xmm0, xmm0 mov rax, [rsp+238h+var_1A0] movdqu xmmword ptr [rax], xmm0 mov rdi, [rsp+238h+var_1E0]; void * cmp rdi, r14 jz short loc_5EBCF mov rsi, [rsp+238h+var_1D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5EBCF: mov rdi, [rsp+238h+var_1C0]; void * cmp rdi, rbx jz short loc_5EBE9 mov rsi, [rsp+238h+var_1B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5EBE9: mov rax, r13 add rsp, 208h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_A8]; this call _ZN5Catch13TestCaseStatsD2Ev; Catch::TestCaseStats::~TestCaseStats() jmp short loc_5EC68 jmp short loc_5EC26 mov rbx, rax lea rdi, [rsp+arg_A8]; this call _ZN5Catch13TestCaseStatsD2Ev; Catch::TestCaseStats::~TestCaseStats() jmp short loc_5EC30 jmp short $+2 loc_5EC26: mov rbx, rax jmp short loc_5EC68 jmp short $+2 loc_5EC2D: mov rbx, rax loc_5EC30: mov rdi, [rsp+arg_10]; void * lea rax, [rsp+arg_20] cmp rdi, rax jz short loc_5EC4C mov rsi, [rsp+arg_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5EC4C: mov rdi, [rsp+arg_30]; void * lea rax, [rsp+arg_40] cmp rdi, rax jz short loc_5EC68 mov rsi, [rsp+arg_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5EC68: lea r14, [rsp+arg_80] lea rax, [rsp+arg_60] mov rdi, [rsp+arg_50]; void * cmp rdi, rax jz short loc_5EC8C mov rsi, [rsp+arg_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5EC8C: mov rdi, [rsp+arg_70]; void * cmp rdi, r14 jz short loc_5ECA6 mov rsi, [rsp+arg_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5ECA6: mov rdi, rbx call __Unwind_Resume
__m128i * Catch::RunContext::runTest(__m128i *this, __m128i *a2, _QWORD *a3) { __m128i v4; // xmm2 _BYTE *v5; // r14 long long started; // rbx long long v7; // rax Catch *v8; // rdi _QWORD *v9; // rbx long long v10; // rax _QWORD *v11; // rdi _BYTE *v12; // rbx int v13; // edx int v14; // r8d int v15; // r9d int v16; // ecx long long v17; // r13 __m128i v18; // xmm1 __m128i v19; // xmm0 __m128i v20; // xmm1 __m128i v21; // xmm2 unsigned long long v22; // rbp int v23; // eax unsigned long long v24; // rbp __m128i *v25; // r13 long long v26; // rax long long v27; // rcx long long v28; // rbx unsigned long long v29; // r15 int v30; // eax void *v32; // [rsp+0h] [rbp-238h] int v33; // [rsp+0h] [rbp-238h] _BYTE *v34; // [rsp+8h] [rbp-230h] void *v35; // [rsp+8h] [rbp-230h] const __m128i *v36; // [rsp+10h] [rbp-228h] const __m128i *v37; // [rsp+10h] [rbp-228h] void *v38; // [rsp+18h] [rbp-220h] BYREF int v39[2]; // [rsp+20h] [rbp-218h] long long v40; // [rsp+28h] [rbp-210h] BYREF long long v41; // [rsp+30h] [rbp-208h] void *v42; // [rsp+38h] [rbp-200h] BYREF int v43[2]; // [rsp+40h] [rbp-1F8h] int v44[2]; // [rsp+48h] [rbp-1F0h] BYREF int v45; // [rsp+50h] [rbp-1E8h] void *v46; // [rsp+58h] [rbp-1E0h] BYREF long long v47; // [rsp+60h] [rbp-1D8h] long long v48; // [rsp+68h] [rbp-1D0h] BYREF int v49; // [rsp+70h] [rbp-1C8h] void *v50; // [rsp+78h] [rbp-1C0h] BYREF long long v51; // [rsp+80h] [rbp-1B8h] long long v52[2]; // [rsp+88h] [rbp-1B0h] BYREF __m128i *v53; // [rsp+98h] [rbp-1A0h] __m128i *v54; // [rsp+A0h] [rbp-198h] int v55[2]; // [rsp+A8h] [rbp-190h] int v56[4]; // [rsp+B0h] [rbp-188h] BYREF __m128i v57; // [rsp+C0h] [rbp-178h] void *v58; // [rsp+F8h] [rbp-140h] _QWORD v59[2]; // [rsp+108h] [rbp-130h] BYREF void *v60; // [rsp+118h] [rbp-120h] _QWORD v61[3]; // [rsp+128h] [rbp-110h] BYREF __m128i v62[4]; // [rsp+140h] [rbp-F8h] BYREF __m128i v63[4]; // [rsp+180h] [rbp-B8h] BYREF __m128i v64[7]; // [rsp+1C8h] [rbp-70h] BYREF v54 = this; v36 = a2 + 13; v4 = a2[15]; v63[3] = a2[16]; v63[2] = v4; v63[1] = _mm_loadu_si128(a2 + 14); v63[0] = _mm_loadu_si128(a2 + 13); v5 = (_BYTE *)*a3; (*(void ( **)(long long, _QWORD))(*(_QWORD *)a2[17].m128i_i64[0] + 40LL))(a2[17].m128i_i64[0], *a3); v53 = a2 + 2; a2[2].m128i_i64[0] = (long long)a3; *(_QWORD *)v55 = a2 + 27; started = Catch::TestCaseTracking::TrackerContext::startRun((Catch::TestCaseTracking::TrackerContext *)&a2[27]); v7 = (*(long long ( **)(long long))(*(_QWORD *)a2[12].m128i_i64[1] + 168LL))(a2[12].m128i_i64[1]); v8 = (Catch *)started; Catch::TestCaseTracking::SectionTracker::addInitialFilters(started, v7); v9 = (_QWORD *)a2[12].m128i_i64[1]; Catch::sharedRng(v8); v10 = *v9; v11 = v9; v12 = v5; Catch::sharedRng(void)::s_rng = 0x5851F42D4C957F2DLL * (*(unsigned int ( **)(_QWORD *))(v10 + 136))(v11) + 0x6F1903917447ED96LL; v50 = v52; v16 = 0; v51 = 0LL; LOBYTE(v52[0]) = 0; v46 = &v48; v47 = 0LL; LOBYTE(v48) = 0; v17 = 0LL; LODWORD(v34) = (_DWORD)v5; do { a2[27].m128i_i64[1] = a2[27].m128i_i64[0]; a2[28].m128i_i32[0] = 1; v18 = _mm_loadu_si128((const __m128i *)(v12 + 104)); *(__m128i *)v56 = _mm_loadu_si128((const __m128i *)v12); v57 = v18; a2[2].m128i_i64[1] = Catch::TestCaseTracking::SectionTracker::acquire( v55[0], (int)v56, v13, v16, v14, v15, v32, (int)v34, (long long)v36, (int)v38, *(long long *)v39, v40, v41); (*(void ( **)(long long, _BYTE *, long long))(*(_QWORD *)a2[17].m128i_i64[0] + 48LL))( a2[17].m128i_i64[0], v12, v17); v19 = _mm_loadu_si128(v37); v20 = _mm_loadu_si128(v37 + 1); v21 = v37[2]; v62[3] = v37[3]; v62[2] = v21; v62[1] = v20; v62[0] = v19; LOBYTE(v44[0]) = 0; LOBYTE(v40) = 0; Catch::RunContext::runCurrentTest( (Catch::RunContext *)a2, v33, v35, (int)v37, (long long)&v40, 0, v40, v41, (int)v44, 0, v44[0], v45, (int)v46, v47, v48, v49, (int)v50, v51, v52[0]); std::string::_M_append(&v50, v42, *(_QWORD *)v43); std::string::_M_append(&v46, v38, *(_QWORD *)v39); Catch::Totals::delta(v64, v36, v62); v22 = a2[13].m128i_u64[1]; v23 = (*(long long ( **)(long long))(*(_QWORD *)a2[12].m128i_i64[1] + 72LL))(a2[12].m128i_i64[1]); Catch::TestCaseStats::TestCaseStats((long long)v56, (long long)v34, v64, (long long)&v42, (long long)&v38, v22 >= v23); (*(void ( **)(long long, int *, long long))(*(_QWORD *)a2[17].m128i_i64[0] + 120LL))( a2[17].m128i_i64[0], v56, v17); v12 = v34; if ( v60 != v61 ) operator delete(v60, v61[0] + 1LL); if ( v58 != v59 ) operator delete(v58, v59[0] + 1LL); if ( v38 != &v40 ) operator delete(v38, v40 + 1); if ( v42 != v44 ) operator delete(v42, *(_QWORD *)v44 + 1LL); if ( *(_DWORD *)(a2[2].m128i_i64[1] + 88) == 4 ) break; v24 = a2[13].m128i_u64[1]; ++v17; } while ( v24 < (*(int ( **)(long long))(*(_QWORD *)a2[12].m128i_i64[1] + 72LL))(a2[12].m128i_i64[1]) ); v25 = v54; Catch::Totals::delta(v54, v36, v63); v26 = v25[2].m128i_i64[0]; if ( ((v26 != 0) & (v34[120] >> 2)) != 0 ) { ++v25->m128i_i64[1]; v25[2].m128i_i64[0] = --v26; v27 = v25[2].m128i_i64[1] + 1; v25[2].m128i_i64[1] = v27; } else { v27 = v25[2].m128i_i64[1]; } a2[15].m128i_i64[0] += v26; a2[15].m128i_i64[1] += v27; a2[16] = _mm_add_epi64(_mm_loadu_si128(a2 + 16), _mm_loadu_si128(v25 + 3)); v28 = a2[17].m128i_i64[0]; v29 = a2[13].m128i_u64[1]; v30 = (*(long long ( **)(long long))(*(_QWORD *)a2[12].m128i_i64[1] + 72LL))(a2[12].m128i_i64[1]); Catch::TestCaseStats::TestCaseStats((long long)v56, (long long)v34, v25, (long long)&v50, (long long)&v46, v29 >= v30); (*(void ( **)(long long, int *))(*(_QWORD *)v28 + 128LL))(v28, v56); if ( v60 != v61 ) operator delete(v60, v61[0] + 1LL); if ( v58 != v59 ) operator delete(v58, v59[0] + 1LL); *v53 = 0LL; if ( v46 != &v48 ) operator delete(v46, v48 + 1); if ( v50 != v52 ) operator delete(v50, v52[0] + 1); return v25; }
runTest: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x208 MOV RBX,RDX MOV R15,RSI MOV qword ptr [RSP + 0xa0],RDI LEA RAX,[RSI + 0xd0] MOV qword ptr [RSP + 0x10],RAX MOVDQU XMM0,xmmword ptr [RSI + 0xd0] MOVDQU XMM1,xmmword ptr [RSI + 0xe0] MOVUPS XMM2,xmmword ptr [RSI + 0xf0] MOVUPS XMM3,xmmword ptr [RSI + 0x100] MOVAPS xmmword ptr [RSP + 0x1b0],XMM3 MOVAPS xmmword ptr [RSP + 0x1a0],XMM2 MOVDQA xmmword ptr [RSP + 0x190],XMM1 MOVDQA xmmword ptr [RSP + 0x180],XMM0 MOV R14,qword ptr [RDX] MOV RDI,qword ptr [RSI + 0x110] MOV RAX,qword ptr [RDI] MOV RSI,R14 CALL qword ptr [RAX + 0x28] LEA RAX,[R15 + 0x20] MOV qword ptr [RSP + 0x98],RAX MOV qword ptr [R15 + 0x20],RBX LEA RDI,[R15 + 0x1b0] MOV qword ptr [RSP + 0xa8],RDI CALL 0x0015ecae MOV RBX,RAX MOV RDI,qword ptr [R15 + 0xc8] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0xa8] MOV RDI,RBX MOV RSI,RAX CALL 0x0015ede2 MOV RBX,qword ptr [R15 + 0xc8] CALL 0x00158b19 MOV RAX,qword ptr [RBX] MOV RDI,RBX MOV RBX,R14 CALL qword ptr [RAX + 0x88] MOV EAX,EAX MOV RCX,0x5851f42d4c957f2d IMUL RCX,RAX MOV RAX,0x6f1903917447ed96 ADD RAX,RCX MOV qword ptr [0x00234068],RAX LEA RAX,[RSP + 0x88] MOV qword ptr [RAX + -0x10],RAX XOR ECX,ECX MOV qword ptr [RAX + -0x8],RCX MOV byte ptr [RAX],CL LEA RAX,[RSP + 0x68] MOV qword ptr [RAX + -0x10],RAX MOV qword ptr [RAX + -0x8],RCX MOV byte ptr [RAX],CL LEA RSI,[RSP + 0xb0] XOR R13D,R13D MOV qword ptr [RSP + 0x8],R14 LAB_0015e868: MOV RAX,qword ptr [R15 + 0x1b0] MOV qword ptr [R15 + 0x1b8],RAX MOV dword ptr [R15 + 0x1c0],0x1 MOVDQU XMM0,xmmword ptr [RBX] MOVDQU XMM1,xmmword ptr [RBX + 0x68] MOVDQU xmmword ptr [RSP + 0xb0],XMM0 MOVDQU xmmword ptr [RSP + 0xc0],XMM1 LAB_0015e89c: MOV RDI,qword ptr [RSP + 0xa8] MOV R14,RSI CALL 0x0015eec6 MOV qword ptr [R15 + 0x28],RAX MOV RDI,qword ptr [R15 + 0x110] MOV RAX,qword ptr [RDI] LAB_0015e8ba: MOV RSI,RBX MOV RDX,R13 CALL qword ptr [RAX + 0x30] MOV RAX,qword ptr [RSP + 0x10] MOVDQU XMM0,xmmword ptr [RAX] MOVDQU XMM1,xmmword ptr [RAX + 0x10] MOVUPS XMM2,xmmword ptr [RAX + 0x20] MOVUPS XMM3,xmmword ptr [RAX + 0x30] MOVAPS xmmword ptr [RSP + 0x170],XMM3 MOVAPS xmmword ptr [RSP + 0x160],XMM2 MOVDQA xmmword ptr [RSP + 0x150],XMM1 MOVDQA xmmword ptr [RSP + 0x140],XMM0 LEA RAX,[RSP + 0x48] MOV qword ptr [RSP + 0x38],RAX XOR ECX,ECX MOV qword ptr [RSP + 0x40],RCX MOV byte ptr [RSP + 0x48],CL LEA RAX,[RSP + 0x28] MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RCX MOV byte ptr [RSP + 0x28],CL LAB_0015e923: MOV RDI,R15 LEA RSI,[RSP + 0x38] LEA RDX,[RSP + 0x18] CALL 0x0015f036 MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] LEA RDI,[RSP + 0x78] CALL 0x00182008 MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] LEA RDI,[RSP + 0x58] CALL 0x00182008 LEA R12,[RSP + 0x1c8] MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x10] LEA RDX,[RSP + 0x140] CALL 0x001589a6 MOV RDI,qword ptr [R15 + 0xc8] MOV RBP,qword ptr [R15 + 0xd8] MOV RAX,qword ptr [RDI] LAB_0015e98b: CALL qword ptr [RAX + 0x48] MOV RBX,R14 CDQE XOR R9D,R9D CMP RBP,RAX SETNC R9B MOV RDI,R14 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R12 LEA RCX,[RSP + 0x38] LEA R8,[RSP + 0x18] CALL 0x00158ed0 MOV RDI,qword ptr [R15 + 0x110] MOV RAX,qword ptr [RDI] LAB_0015e9c1: MOV RSI,RBX MOV RDX,R13 CALL qword ptr [RAX + 0x78] MOV RDI,qword ptr [RSP + 0x118] LEA RAX,[RSP + 0x128] CMP RDI,RAX MOV RBX,qword ptr [RSP + 0x8] JZ 0x0015e9f4 MOV RSI,qword ptr [RSP + 0x128] INC RSI CALL 0x00117150 LAB_0015e9f4: MOV RDI,qword ptr [RSP + 0xf8] LEA RAX,[RSP + 0x108] CMP RDI,RAX JZ 0x0015ea19 MOV RSI,qword ptr [RSP + 0x108] INC RSI CALL 0x00117150 LAB_0015ea19: MOV RDI,qword ptr [RSP + 0x18] LEA RAX,[RSP + 0x28] CMP RDI,RAX JZ 0x0015ea35 MOV RSI,qword ptr [RSP + 0x28] INC RSI CALL 0x00117150 LAB_0015ea35: MOV RDI,qword ptr [RSP + 0x38] LEA RAX,[RSP + 0x48] CMP RDI,RAX JZ 0x0015ea51 MOV RSI,qword ptr [RSP + 0x48] INC RSI CALL 0x00117150 LAB_0015ea51: MOV RAX,qword ptr [R15 + 0x28] CMP dword ptr [RAX + 0x58],0x4 JZ 0x0015ea80 MOV RDI,qword ptr [R15 + 0xc8] MOV RBP,qword ptr [R15 + 0xd8] MOV RAX,qword ptr [RDI] LAB_0015ea6c: CALL qword ptr [RAX + 0x48] CDQE INC R13 CMP RBP,RAX MOV RSI,R14 JC 0x0015e868 LAB_0015ea80: LEA RDX,[RSP + 0x180] MOV R13,qword ptr [RSP + 0xa0] MOV RDI,R13 MOV RSI,qword ptr [RSP + 0x10] CALL 0x001589a6 MOV CL,byte ptr [RBX + 0x78] SHR CL,0x2 MOV RAX,qword ptr [R13 + 0x20] TEST RAX,RAX SETNZ DL TEST CL,DL JZ 0x0015eac9 INC qword ptr [R13 + 0x8] DEC RAX MOV qword ptr [R13 + 0x20],RAX MOV RCX,qword ptr [R13 + 0x28] INC RCX MOV qword ptr [R13 + 0x28],RCX JMP 0x0015eacd LAB_0015eac9: MOV RCX,qword ptr [R13 + 0x28] LAB_0015eacd: ADD qword ptr [R15 + 0xf0],RAX ADD qword ptr [R15 + 0xf8],RCX MOVDQU XMM0,xmmword ptr [R13 + 0x30] MOVDQU XMM1,xmmword ptr [R15 + 0x100] PADDQ XMM1,XMM0 MOVDQU xmmword ptr [R15 + 0x100],XMM1 MOV RBX,qword ptr [R15 + 0x110] MOV RDI,qword ptr [R15 + 0xc8] MOV R15,qword ptr [R15 + 0xd8] MOV RAX,qword ptr [RDI] LAB_0015eb0f: CALL qword ptr [RAX + 0x48] CDQE XOR R9D,R9D CMP R15,RAX SETNC R9B LEA RDI,[RSP + 0xb0] LEA RCX,[RSP + 0x78] LEA R8,[RSP + 0x58] MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R13 CALL 0x00158ed0 MOV RAX,qword ptr [RBX] LAB_0015eb40: LEA RSI,[RSP + 0xb0] MOV RDI,RBX CALL qword ptr [RAX + 0x80] LAB_0015eb51: MOV RDI,qword ptr [RSP + 0x118] LEA RAX,[RSP + 0x128] CMP RDI,RAX LEA RBX,[RSP + 0x88] LEA R14,[RSP + 0x68] JZ 0x0015eb83 MOV RSI,qword ptr [RSP + 0x128] INC RSI CALL 0x00117150 LAB_0015eb83: MOV RDI,qword ptr [RSP + 0xf8] LEA RAX,[RSP + 0x108] CMP RDI,RAX JZ 0x0015eba8 MOV RSI,qword ptr [RSP + 0x108] INC RSI CALL 0x00117150 LAB_0015eba8: PXOR XMM0,XMM0 MOV RAX,qword ptr [RSP + 0x98] MOVDQU xmmword ptr [RAX],XMM0 MOV RDI,qword ptr [RSP + 0x58] CMP RDI,R14 JZ 0x0015ebcf MOV RSI,qword ptr [RSP + 0x68] INC RSI CALL 0x00117150 LAB_0015ebcf: MOV RDI,qword ptr [RSP + 0x78] CMP RDI,RBX JZ 0x0015ebe9 MOV RSI,qword ptr [RSP + 0x88] INC RSI CALL 0x00117150 LAB_0015ebe9: MOV RAX,R13 ADD RSP,0x208 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Catch::RunContext::runTest(Catch::TestCaseHandle const&) */ Totals * Catch::RunContext::runTest(TestCaseHandle *param_1) { Totals *pTVar1; TestCaseInfo *pTVar2; long *plVar3; ulong uVar4; TestCaseHandle *pTVar5; uint uVar6; int iVar7; SectionTracker *this; vector *pvVar8; int8 uVar9; long lVar10; int8 *in_RDX; RunContext *in_RSI; long lVar11; char *local_220; ulong local_218; char local_210; int7 uStack_20f; char *local_200; ulong local_1f8; char local_1f0; int7 uStack_1ef; int1 *local_1e0; int8 local_1d8; int1 local_1d0; int7 uStack_1cf; int1 *local_1c0; int8 local_1b8; int1 local_1b0; int7 uStack_1af; RunContext *local_1a0; TestCaseHandle *local_198; TrackerContext *local_190; int8 local_188; int8 uStack_180; int8 local_178; int8 uStack_170; long *local_140; long local_130 [2]; long *local_120; long local_110 [3]; int8 local_f8; int8 uStack_f0; int8 local_e8; int8 uStack_e0; int8 local_d8; int8 uStack_d0; int8 local_c8; int8 uStack_c0; int8 local_b8; int8 uStack_b0; int8 local_a8; int8 uStack_a0; int4 local_98; int4 uStack_94; int4 uStack_90; int4 uStack_8c; int4 local_88; int4 uStack_84; int4 uStack_80; int4 uStack_7c; Totals local_70 [64]; pTVar1 = (Totals *)(in_RSI + 0xd0); local_b8 = *(int8 *)(in_RSI + 0xd0); uStack_b0 = *(int8 *)(in_RSI + 0xd8); local_a8 = *(int8 *)(in_RSI + 0xe0); uStack_a0 = *(int8 *)(in_RSI + 0xe8); local_98 = *(int4 *)(in_RSI + 0xf0); uStack_94 = *(int4 *)(in_RSI + 0xf4); uStack_90 = *(int4 *)(in_RSI + 0xf8); uStack_8c = *(int4 *)(in_RSI + 0xfc); local_88 = *(int4 *)(in_RSI + 0x100); uStack_84 = *(int4 *)(in_RSI + 0x104); uStack_80 = *(int4 *)(in_RSI + 0x108); uStack_7c = *(int4 *)(in_RSI + 0x10c); pTVar2 = (TestCaseInfo *)*in_RDX; local_198 = param_1; (**(code **)(**(long **)(in_RSI + 0x110) + 0x28))(*(long **)(in_RSI + 0x110),pTVar2); local_1a0 = in_RSI + 0x20; *(int8 **)(in_RSI + 0x20) = in_RDX; local_190 = (TrackerContext *)(in_RSI + 0x1b0); this = (SectionTracker *)TestCaseTracking::TrackerContext::startRun(local_190); pvVar8 = (vector *)(**(code **)(**(long **)(in_RSI + 200) + 0xa8))(); TestCaseTracking::SectionTracker::addInitialFilters(this,pvVar8); plVar3 = *(long **)(in_RSI + 200); sharedRng(); uVar6 = (**(code **)(*plVar3 + 0x88))(plVar3); sharedRng()::s_rng = (ulong)uVar6 * 0x5851f42d4c957f2d + 0x6f1903917447ed96; local_1c0 = &local_1b0; local_1b8 = 0; local_1b0 = 0; local_1e0 = &local_1d0; local_1d8 = 0; local_1d0 = 0; lVar11 = 0; do { *(int8 *)(in_RSI + 0x1b8) = *(int8 *)(in_RSI + 0x1b0); *(int4 *)(in_RSI + 0x1c0) = 1; local_188 = *(int8 *)pTVar2; uStack_180 = *(int8 *)(pTVar2 + 8); local_178 = *(int8 *)(pTVar2 + 0x68); uStack_170 = *(int8 *)(pTVar2 + 0x70); /* try { // try from 0015e89c to 0015e8ab has its CatchHandler @ 0015ec24 */ uVar9 = TestCaseTracking::SectionTracker::acquire(local_190,(NameAndLocationRef *)&local_188); *(int8 *)(in_RSI + 0x28) = uVar9; /* try { // try from 0015e8ba to 0015e8c2 has its CatchHandler @ 0015ec26 */ (**(code **)(**(long **)(in_RSI + 0x110) + 0x30))(*(long **)(in_RSI + 0x110),pTVar2,lVar11); local_f8 = *(int8 *)pTVar1; uStack_f0 = *(int8 *)(in_RSI + 0xd8); local_e8 = *(int8 *)(in_RSI + 0xe0); uStack_e0 = *(int8 *)(in_RSI + 0xe8); local_d8 = *(int8 *)(in_RSI + 0xf0); uStack_d0 = *(int8 *)(in_RSI + 0xf8); local_c8 = *(int8 *)(in_RSI + 0x100); uStack_c0 = *(int8 *)(in_RSI + 0x108); local_200 = &local_1f0; local_1f8 = 0; local_1f0 = '\0'; local_220 = &local_210; local_218 = 0; local_210 = '\0'; /* try { // try from 0015e923 to 0015e95c has its CatchHandler @ 0015ec2d */ runCurrentTest(in_RSI,(string *)&local_200,(string *)&local_220); std::__cxx11::string::_M_append((string *)&local_1c0,local_200,local_1f8); std::__cxx11::string::_M_append((string *)&local_1e0,local_220,local_218); Totals::delta(local_70,pTVar1); uVar4 = *(ulong *)(in_RSI + 0xd8); /* try { // try from 0015e98b to 0015e9b6 has its CatchHandler @ 0015ec2b */ iVar7 = (**(code **)(**(long **)(in_RSI + 200) + 0x48))(); TestCaseStats::TestCaseStats ((TestCaseStats *)&local_188,pTVar2,local_70,(string *)&local_200,(string *)&local_220 ,(ulong)(long)iVar7 <= uVar4); /* try { // try from 0015e9c1 to 0015e9c9 has its CatchHandler @ 0015ec12 */ (**(code **)(**(long **)(in_RSI + 0x110) + 0x78)) (*(long **)(in_RSI + 0x110),(NameAndLocationRef *)&local_188,lVar11); if (local_120 != local_110) { operator_delete(local_120,local_110[0] + 1); } if (local_140 != local_130) { operator_delete(local_140,local_130[0] + 1); } if (local_220 != &local_210) { operator_delete(local_220,CONCAT71(uStack_20f,local_210) + 1); } if (local_200 != &local_1f0) { operator_delete(local_200,CONCAT71(uStack_1ef,local_1f0) + 1); } if (*(int *)(*(long *)(in_RSI + 0x28) + 0x58) == 4) break; uVar4 = *(ulong *)(in_RSI + 0xd8); /* try { // try from 0015ea6c to 0015ea6e has its CatchHandler @ 0015ec26 */ iVar7 = (**(code **)(**(long **)(in_RSI + 200) + 0x48))(); lVar11 = lVar11 + 1; } while (uVar4 < (ulong)(long)iVar7); pTVar5 = local_198; Totals::delta((Totals *)local_198,pTVar1); lVar11 = *(long *)(pTVar5 + 0x20); if (((byte)pTVar2[0x78] >> 2 & lVar11 != 0) == 0) { lVar10 = *(long *)(pTVar5 + 0x28); } else { *(long *)(pTVar5 + 8) = *(long *)(pTVar5 + 8) + 1; lVar11 = lVar11 + -1; *(long *)(pTVar5 + 0x20) = lVar11; lVar10 = *(long *)(pTVar5 + 0x28) + 1; *(long *)(pTVar5 + 0x28) = lVar10; } *(long *)(in_RSI + 0xf0) = *(long *)(in_RSI + 0xf0) + lVar11; *(long *)(in_RSI + 0xf8) = *(long *)(in_RSI + 0xf8) + lVar10; lVar11 = *(long *)(pTVar5 + 0x38); *(long *)(in_RSI + 0x100) = *(long *)(in_RSI + 0x100) + *(long *)(pTVar5 + 0x30); *(long *)(in_RSI + 0x108) = *(long *)(in_RSI + 0x108) + lVar11; plVar3 = *(long **)(in_RSI + 0x110); uVar4 = *(ulong *)(in_RSI + 0xd8); /* try { // try from 0015eb0f to 0015eb3c has its CatchHandler @ 0015ec10 */ iVar7 = (**(code **)(**(long **)(in_RSI + 200) + 0x48))(); TestCaseStats::TestCaseStats ((TestCaseStats *)&local_188,pTVar2,(Totals *)pTVar5,(string *)&local_1c0, (string *)&local_1e0,(ulong)(long)iVar7 <= uVar4); /* try { // try from 0015eb40 to 0015eb50 has its CatchHandler @ 0015ebfe */ (**(code **)(*plVar3 + 0x80))(plVar3,&local_188); if (local_120 != local_110) { operator_delete(local_120,local_110[0] + 1); } if (local_140 != local_130) { operator_delete(local_140,local_130[0] + 1); } *(int1 (*) [16])local_1a0 = (int1 [16])0x0; if (local_1e0 != &local_1d0) { operator_delete(local_1e0,CONCAT71(uStack_1cf,local_1d0) + 1); } if (local_1c0 != &local_1b0) { operator_delete(local_1c0,CONCAT71(uStack_1af,local_1b0) + 1); } return (Totals *)pTVar5; }
44,065
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool)
llama.cpp/common/json.hpp
JSON_HEDLEY_WARN_UNUSED_RESULT static basic_json parse(InputType&& i, const parser_callback_t cb = nullptr, const bool allow_exceptions = true, const bool ignore_comments = false) { basic_json result; parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result); return result; }
O3
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> 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>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xe8, %rsp movl %r8d, %ebp movl %ecx, %r14d movq %rdx, %r13 movq %rsi, %r12 movq %rdi, %rbx movb $0x0, (%rdi) movq $0x0, 0x8(%rdi) movl $0x1, %esi callq 0x60b38 movq %rbx, %rdi movl $0x1, %esi callq 0x60b38 movq (%r12), %r15 movq 0x8(%r12), %r12 movq %rsp, %rdi movq %r13, %rsi callq 0x64c04 addq %r15, %r12 movzbl %r14b, %r8d movzbl %bpl, %r9d leaq 0x20(%rsp), %rdi movq %rsp, %rcx movq %r15, %rsi movq %r12, %rdx callq 0x64b58 leaq 0x20(%rsp), %rdi movl $0x1, %esi movq %rbx, %rdx callq 0x64c62 leaq 0x48(%rsp), %r14 movq %r14, %rdi callq 0x6533e movq -0x18(%r14), %rax testq %rax, %rax je 0x890e3 leaq 0x20(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x10(%rsp), %rax testq %rax, %rax je 0x890fa movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq %rbx, %rax addq $0xe8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x8913e jmp 0x8913e movq %rax, %r14 leaq 0x20(%rsp), %rdi callq 0x65234 jmp 0x89125 movq %rax, %r14 movq 0x10(%rsp), %rax testq %rax, %rax je 0x89149 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0x89149 movq %rax, %rdi callq 0x232f3 movq %rax, %r14 movq %rbx, %rdi xorl %esi, %esi callq 0x60b38 movq %rbx, %rdi callq 0x60bd8 movq %r14, %rdi callq 0x1d8e0 nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIRS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0E8h mov ebp, r8d mov r14d, ecx mov r13, rdx mov r12, rsi mov rbx, rdi mov byte ptr [rdi], 0 mov qword ptr [rdi+8], 0 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov r15, [r12] mov r12, [r12+8] mov rdi, rsp mov rsi, r13 call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&) add r12, r15 movzx r8d, r14b movzx r9d, bpl lea rdi, [rsp+118h+var_F8] mov rcx, rsp mov rsi, r15 mov rdx, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool) lea rdi, [rsp+118h+var_F8]; int mov esi, 1 mov rdx, rbx call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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 r14, [rsp+118h+var_D0] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; 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>>>::~lexer() mov rax, [r14-18h] test rax, rax jz short loc_890E3 lea rdi, [rsp+118h+var_F8] mov rsi, rdi mov edx, 3 call rax loc_890E3: mov rax, [rsp+118h+var_108] test rax, rax jz short loc_890FA mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_890FA: mov rax, rbx add rsp, 0E8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_8913E jmp short loc_8913E mov r14, rax lea rdi, [rsp+118h+var_F8] call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser() jmp short loc_89125 mov r14, rax loc_89125: mov rax, [rsp+118h+var_108] test rax, rax jz short loc_89149 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax jmp short loc_89149 loc_8913E: mov rdi, rax call __clang_call_terminate mov r14, rax loc_89149: mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string&>( long long a1, long long *a2, long long a3, unsigned __int8 a4, unsigned __int8 a5) { long long v8; // r15 long long v9; // r12 __int128 v11; // [rsp+0h] [rbp-118h] BYREF void ( *v12)(__int128 *, __int128 *, long long); // [rsp+10h] [rbp-108h] int v13[4]; // [rsp+20h] [rbp-F8h] BYREF void ( *v14)(int *, int *, long long); // [rsp+30h] [rbp-E8h] _QWORD v15[26]; // [rsp+48h] [rbp-D0h] BYREF *(_BYTE *)a1 = 0; *(_QWORD *)(a1 + 8) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); v8 = *a2; v9 = a2[1]; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function( &v11, a3); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>( (long long)v13, v8, v8 + v9, &v11, a4, a5); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse( (long long)v13, 1, (char *)a1); 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(v15); if ( v14 ) v14(v13, v13, 3LL); if ( v12 ) v12(&v11, &v11, 3LL); return a1; }
parse<std::__cxx11::string&>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xe8 MOV EBP,R8D MOV R14D,ECX MOV R13,RDX MOV R12,RSI MOV RBX,RDI MOV byte ptr [RDI],0x0 MOV qword ptr [RDI + 0x8],0x0 MOV ESI,0x1 CALL 0x00160b38 MOV RDI,RBX MOV ESI,0x1 CALL 0x00160b38 MOV R15,qword ptr [R12] MOV R12,qword ptr [R12 + 0x8] LAB_00189083: MOV RDI,RSP MOV RSI,R13 CALL 0x00164c04 ADD R12,R15 LAB_00189091: MOVZX R8D,R14B MOVZX R9D,BPL LEA RDI,[RSP + 0x20] MOV RCX,RSP MOV RSI,R15 MOV RDX,R12 CALL 0x00164b58 LAB_001890ac: LEA RDI,[RSP + 0x20] MOV ESI,0x1 MOV RDX,RBX CALL 0x00164c62 LEA R14,[RSP + 0x48] MOV RDI,R14 CALL 0x0016533e MOV RAX,qword ptr [R14 + -0x18] TEST RAX,RAX JZ 0x001890e3 LAB_001890d4: LEA RDI,[RSP + 0x20] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001890e3: MOV RAX,qword ptr [RSP + 0x10] TEST RAX,RAX JZ 0x001890fa LAB_001890ed: MOV RDI,RSP MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001890fa: MOV RAX,RBX ADD RSP,0xe8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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>::parse<std::__cxx11::string&>(std::__cxx11::string&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&)>, bool, bool) */ basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> * __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::parse<std::__cxx11::string&> (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,long *param_1,function *param_3,int1 param_4,int1 param_5) { long lVar1; long lVar2; function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> afStack_118 [16]; code *local_108; parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> local_f8 [16]; code *local_e8; 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>>> local_d0 [160]; *this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x0; *(int8 *)(this + 8) = 0; assert_invariant(SUB81(this,0)); assert_invariant(SUB81(this,0)); lVar1 = *param_1; lVar2 = param_1[1]; /* try { // try from 00189083 to 0018908d has its CatchHandler @ 00189146 */ std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::function(afStack_118,param_3); /* try { // try from 00189091 to 001890ab has its CatchHandler @ 00189122 */ parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> (local_f8,lVar1,lVar2 + lVar1,afStack_118,param_4,param_5); /* try { // try from 001890ac to 001890bd has its CatchHandler @ 00189113 */ detail:: parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::parse(local_f8,true,(basic_json *)this); 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(local_d0); if (local_e8 != (code *)0x0) { /* try { // try from 001890d4 to 001890e2 has its CatchHandler @ 00189111 */ (*local_e8)(local_f8,local_f8,3); } if (local_108 != (code *)0x0) { /* try { // try from 001890ed to 001890f9 has its CatchHandler @ 0018910f */ (*local_108)(afStack_118,afStack_118,3); } return this; }
44,066
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; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent(char*, int): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movl %esi, 0xc(%rsp) cmpl $0xfffffc18, 0xc(%rsp) # imm = 0xFFFFFC18 jg 0x18fee8 leaq 0x7c5a1(%rip), %rdi # 0x20c46f movl $0x45ae, %esi # imm = 0x45AE leaq 0x7c5df(%rip), %rdx # 0x20c4b9 leaq 0x823ed(%rip), %rcx # 0x2122ce movb $0x0, %al callq 0x5aec0 cmpl $0x3e8, 0xc(%rsp) # imm = 0x3E8 jl 0x18ff13 leaq 0x7c576(%rip), %rdi # 0x20c46f movl $0x45af, %esi # imm = 0x45AF leaq 0x7c5b4(%rip), %rdx # 0x20c4b9 leaq 0x823cc(%rip), %rcx # 0x2122d8 movb $0x0, %al callq 0x5aec0 cmpl $0x0, 0xc(%rsp) jge 0x18ff3a xorl %eax, %eax subl 0xc(%rsp), %eax movl %eax, 0xc(%rsp) movq 0x10(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x10(%rsp) movb $0x2d, (%rax) jmp 0x18ff4e movq 0x10(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x10(%rsp) movb $0x2b, (%rax) movl 0xc(%rsp), %eax movl %eax, 0x8(%rsp) cmpl $0xa, 0x8(%rsp) jae 0x18ff92 movq 0x10(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x10(%rsp) movb $0x30, (%rax) movl 0x8(%rsp), %eax addl $0x30, %eax movb %al, %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) jmp 0x19007a cmpl $0x64, 0x8(%rsp) jae 0x18fff0 movl 0x8(%rsp), %eax movl $0xa, %ecx xorl %edx, %edx divl %ecx addl $0x30, %eax movb %al, %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) movl 0x8(%rsp), %eax movl $0xa, %ecx xorl %edx, %edx divl %ecx movl %edx, 0x8(%rsp) movl 0x8(%rsp), %eax addl $0x30, %eax movb %al, %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) jmp 0x190078 movl 0x8(%rsp), %eax movl $0x64, %ecx xorl %edx, %edx divl %ecx addl $0x30, %eax movb %al, %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) movl 0x8(%rsp), %eax movl $0x64, %ecx xorl %edx, %edx divl %ecx movl %edx, 0x8(%rsp) movl 0x8(%rsp), %eax movl $0xa, %ecx xorl %edx, %edx divl %ecx addl $0x30, %eax movb %al, %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) movl 0x8(%rsp), %eax movl $0xa, %ecx xorl %edx, %edx divl %ecx movl %edx, 0x8(%rsp) movl 0x8(%rsp), %eax addl $0x30, %eax movb %al, %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) jmp 0x19007a movq 0x10(%rsp), %rax addq $0x18, %rsp retq nopw %cs:(%rax,%rax) nop
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl15append_exponentEPci: sub rsp, 18h mov [rsp+18h+var_8], rdi mov [rsp+18h+var_C], esi cmp [rsp+18h+var_C], 0FFFFFC18h jg short loc_18FEE8 lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 45AEh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aE1000; "e > -1000" mov al, 0 call _ggml_abort loc_18FEE8: cmp [rsp+18h+var_C], 3E8h jl short loc_18FF13 lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 45AFh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aE1000_0; "e < 1000" mov al, 0 call _ggml_abort loc_18FF13: cmp [rsp+18h+var_C], 0 jge short loc_18FF3A xor eax, eax sub eax, [rsp+18h+var_C] mov [rsp+18h+var_C], eax mov rax, [rsp+18h+var_8] mov rcx, rax add rcx, 1 mov [rsp+18h+var_8], rcx mov byte ptr [rax], 2Dh ; '-' jmp short loc_18FF4E loc_18FF3A: mov rax, [rsp+18h+var_8] mov rcx, rax add rcx, 1 mov [rsp+18h+var_8], rcx mov byte ptr [rax], 2Bh ; '+' loc_18FF4E: mov eax, [rsp+18h+var_C] mov [rsp+18h+var_10], eax cmp [rsp+18h+var_10], 0Ah jnb short loc_18FF92 mov rax, [rsp+18h+var_8] mov rcx, rax add rcx, 1 mov [rsp+18h+var_8], rcx mov byte ptr [rax], 30h ; '0' mov eax, [rsp+18h+var_10] add eax, 30h ; '0' mov cl, al mov rax, [rsp+18h+var_8] mov rdx, rax add rdx, 1 mov [rsp+18h+var_8], rdx mov [rax], cl jmp loc_19007A loc_18FF92: cmp [rsp+18h+var_10], 64h ; 'd' jnb short loc_18FFF0 mov eax, [rsp+18h+var_10] mov ecx, 0Ah xor edx, edx div ecx add eax, 30h ; '0' mov cl, al mov rax, [rsp+18h+var_8] mov rdx, rax add rdx, 1 mov [rsp+18h+var_8], rdx mov [rax], cl mov eax, [rsp+18h+var_10] mov ecx, 0Ah xor edx, edx div ecx mov [rsp+18h+var_10], edx mov eax, [rsp+18h+var_10] add eax, 30h ; '0' mov cl, al mov rax, [rsp+18h+var_8] mov rdx, rax add rdx, 1 mov [rsp+18h+var_8], rdx mov [rax], cl jmp loc_190078 loc_18FFF0: mov eax, [rsp+18h+var_10] mov ecx, 64h ; 'd' xor edx, edx div ecx add eax, 30h ; '0' mov cl, al mov rax, [rsp+18h+var_8] mov rdx, rax add rdx, 1 mov [rsp+18h+var_8], rdx mov [rax], cl mov eax, [rsp+18h+var_10] mov ecx, 64h ; 'd' xor edx, edx div ecx mov [rsp+18h+var_10], edx mov eax, [rsp+18h+var_10] mov ecx, 0Ah xor edx, edx div ecx add eax, 30h ; '0' mov cl, al mov rax, [rsp+18h+var_8] mov rdx, rax add rdx, 1 mov [rsp+18h+var_8], rdx mov [rax], cl mov eax, [rsp+18h+var_10] mov ecx, 0Ah xor edx, edx div ecx mov [rsp+18h+var_10], edx mov eax, [rsp+18h+var_10] add eax, 30h ; '0' mov cl, al mov rax, [rsp+18h+var_8] mov rdx, rax add rdx, 1 mov [rsp+18h+var_8], rdx mov [rax], cl loc_190078: jmp short $+2 loc_19007A: mov rax, [rsp+18h+var_8] add rsp, 18h retn
_BYTE * nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent( nlohmann::json_abi_v3_11_3::detail::dtoa_impl *this, char *a2) { _BYTE *v2; // rax _BYTE *v3; // rax _BYTE *v4; // rax unsigned int v6; // [rsp+8h] [rbp-10h] unsigned int v7; // [rsp+Ch] [rbp-Ch] _BYTE *v8; // [rsp+10h] [rbp-8h] _BYTE *v9; // [rsp+10h] [rbp-8h] v7 = (unsigned int)a2; if ( (int)a2 <= -1000 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17838LL, "GGML_ASSERT(%s) failed", "e > -1000"); if ( (int)a2 >= 1000 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17839LL, "GGML_ASSERT(%s) failed", "e < 1000"); if ( (int)a2 >= 0 ) { v8 = (char *)this + 1; *(_BYTE *)this = 43; } else { v7 = -(int)a2; v8 = (char *)this + 1; *(_BYTE *)this = 45; } v6 = v7; if ( v7 >= 0xA ) { if ( v7 >= 0x64 ) { v4 = v8++; *v4 = v7 / 0x64 + 48; v6 = v7 % 0x64; } *v8 = v6 / 0xA + 48; v3 = v8 + 1; v9 = v8 + 2; *v3 = v6 % 0xA + 48; } else { *v8 = 48; v2 = v8 + 1; v9 = v8 + 2; *v2 = v7 + 48; } return v9; }
begin: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RDI MOV RSI,qword ptr [RSP + 0x8] LEA RDI,[RSP + 0x10] CALL 0x00190310 MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0x18 RET
/* std::vector<common_control_vector_load_info, std::allocator<common_control_vector_load_info> >::begin() const */ int8 __thiscall std::vector<common_control_vector_load_info,std::allocator<common_control_vector_load_info>>::begin (vector<common_control_vector_load_info,std::allocator<common_control_vector_load_info>> *this) { int8 local_8; __gnu_cxx:: __normal_iterator<common_control_vector_load_info_const*,std::vector<common_control_vector_load_info,std::allocator<common_control_vector_load_info>>> ::__normal_iterator((__normal_iterator<common_control_vector_load_info_const*,std::vector<common_control_vector_load_info,std::allocator<common_control_vector_load_info>>> *)&local_8,(common_control_vector_load_info **)this); return local_8; }
44,067
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::serializer(std::shared_ptr<nlohmann::json_abi_v3_11_3::detail::output_adapter_protocol<char>>, char, nlohmann::json_abi_v3_11_3::detail::error_handler_t)
llama.cpp/common/json.hpp
serializer(output_adapter_t<char> s, const char ichar, error_handler_t error_handler_ = error_handler_t::strict) : o(std::move(s)) , loc(std::localeconv()) , thousands_sep(loc->thousands_sep == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->thousands_sep))) , decimal_point(loc->decimal_point == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->decimal_point))) , indent_char(ichar) , indent_string(512, indent_char) , error_handler(error_handler_) {}
O3
cpp
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::serializer(std::shared_ptr<nlohmann::json_abi_v3_11_3::detail::output_adapter_protocol<char>>, char, nlohmann::json_abi_v3_11_3::detail::error_handler_t): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %ecx, %ebx movl %edx, %ebp movq %rdi, %r14 xorl %r15d, %r15d movq %r15, 0x8(%rdi) movups (%rsi), %xmm0 movq %r15, 0x8(%rsi) movups %xmm0, (%rdi) movq %r15, (%rsi) xorps %xmm0, %xmm0 movups %xmm0, 0x40(%rdi) movups %xmm0, 0x30(%rdi) movups %xmm0, 0x20(%rdi) movups %xmm0, 0x10(%rdi) callq 0x21100 movq %rax, 0x50(%r14) movq 0x8(%rax), %rcx testq %rcx, %rcx je 0xd1ae4 movb (%rcx), %r15b movb %r15b, 0x58(%r14) movq (%rax), %rax testq %rax, %rax je 0xd1af4 movb (%rax), %al jmp 0xd1af6 xorl %eax, %eax leaq 0x8(%r14), %r15 movb %al, 0x59(%r14) leaq 0x5a(%r14), %rdi movl $0x200, %edx # imm = 0x200 xorl %esi, %esi callq 0x21500 movb %bpl, 0x25a(%r14) leaq 0x260(%r14), %rdi leaq 0x270(%r14), %rax movq %rax, 0x260(%r14) movsbl %bpl, %edx movl $0x200, %esi # imm = 0x200 callq 0x21ad0 movl %ebx, 0x280(%r14) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq %r15, %rdi callq 0x72cea movq %rbx, %rdi callq 0x21c20 nop
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt10shared_ptrINS1_23output_adapter_protocolIcEEEcNS1_15error_handler_tE: push rbp push r15 push r14 push rbx push rax mov ebx, ecx mov ebp, edx mov r14, rdi xor r15d, r15d mov [rdi+8], r15 movups xmm0, xmmword ptr [rsi] mov [rsi+8], r15 movups xmmword ptr [rdi], xmm0 mov [rsi], r15 xorps xmm0, xmm0 movups xmmword ptr [rdi+40h], xmm0 movups xmmword ptr [rdi+30h], xmm0 movups xmmword ptr [rdi+20h], xmm0 movups xmmword ptr [rdi+10h], xmm0 call _localeconv mov [r14+50h], rax mov rcx, [rax+8] test rcx, rcx jz short loc_D1AE4 mov r15b, [rcx] loc_D1AE4: mov [r14+58h], r15b mov rax, [rax] test rax, rax jz short loc_D1AF4 mov al, [rax] jmp short loc_D1AF6 loc_D1AF4: xor eax, eax loc_D1AF6: lea r15, [r14+8] mov [r14+59h], al lea rdi, [r14+5Ah] mov edx, 200h xor esi, esi call _memset mov [r14+25Ah], bpl lea rdi, [r14+260h] lea rax, [r14+270h] mov [r14+260h], rax movsx edx, bpl mov esi, 200h call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) mov [r14+280h], ebx add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, r15 call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::serializer( long long a1, __int128 *a2, char a3, int a4) { char v6; // r15 __int128 v7; // xmm0 long long v8; // rax char *v9; // rcx char *v10; // rax char v11; // al long long result; // rax v6 = 0; *(_QWORD *)(a1 + 8) = 0LL; v7 = *a2; *((_QWORD *)a2 + 1) = 0LL; *(_OWORD *)a1 = v7; *(_QWORD *)a2 = 0LL; *(_OWORD *)(a1 + 64) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 16) = 0LL; v8 = localeconv(a1); *(_QWORD *)(a1 + 80) = v8; v9 = *(char **)(v8 + 8); if ( v9 ) v6 = *v9; *(_BYTE *)(a1 + 88) = v6; v10 = *(char **)v8; if ( v10 ) v11 = *v10; else v11 = 0; *(_BYTE *)(a1 + 89) = v11; memset(a1 + 90, 0LL, 512LL); *(_BYTE *)(a1 + 602) = a3; *(_QWORD *)(a1 + 608) = a1 + 624; result = std::string::_M_construct(a1 + 608, 512LL, (unsigned int)a3); *(_DWORD *)(a1 + 640) = a4; return result; }
serializer: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV EBX,ECX MOV EBP,EDX MOV R14,RDI XOR R15D,R15D MOV qword ptr [RDI + 0x8],R15 MOVUPS XMM0,xmmword ptr [RSI] MOV qword ptr [RSI + 0x8],R15 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RSI],R15 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x40],XMM0 MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOVUPS xmmword ptr [RDI + 0x20],XMM0 MOVUPS xmmword ptr [RDI + 0x10],XMM0 CALL 0x00121100 MOV qword ptr [R14 + 0x50],RAX MOV RCX,qword ptr [RAX + 0x8] TEST RCX,RCX JZ 0x001d1ae4 MOV R15B,byte ptr [RCX] LAB_001d1ae4: MOV byte ptr [R14 + 0x58],R15B MOV RAX,qword ptr [RAX] TEST RAX,RAX JZ 0x001d1af4 MOV AL,byte ptr [RAX] JMP 0x001d1af6 LAB_001d1af4: XOR EAX,EAX LAB_001d1af6: LEA R15,[R14 + 0x8] MOV byte ptr [R14 + 0x59],AL LEA RDI,[R14 + 0x5a] MOV EDX,0x200 XOR ESI,ESI CALL 0x00121500 MOV byte ptr [R14 + 0x25a],BPL LEA RDI,[R14 + 0x260] LEA RAX,[R14 + 0x270] MOV qword ptr [R14 + 0x260],RAX LAB_001d1b2a: MOVSX EDX,BPL MOV ESI,0x200 CALL 0x00121ad0 LAB_001d1b38: MOV dword ptr [R14 + 0x280],EBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::serializer(std::shared_ptr<nlohmann::json_abi_v3_11_3::detail::output_adapter_protocol<char> >, char, nlohmann::json_abi_v3_11_3::detail::error_handler_t) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::serializer(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,int8 *param_2, serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> param_3,int4 param_4) { int8 uVar1; serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> sVar2; lconv *plVar3; sVar2 = (serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> )0x0; *(int8 *)(this + 8) = 0; uVar1 = param_2[1]; param_2[1] = 0; *(int8 *)this = *param_2; *(int8 *)(this + 8) = uVar1; *param_2 = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; plVar3 = localeconv(); *(lconv **)(this + 0x50) = plVar3; if ((serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)plVar3->thousands_sep != (serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)0x0) { sVar2 = *(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)plVar3->thousands_sep; } this[0x58] = sVar2; if ((serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)plVar3->decimal_point == (serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)0x0) { sVar2 = (serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> )0x0; } else { sVar2 = *(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)plVar3->decimal_point; } this[0x59] = sVar2; memset(this + 0x5a,0,0x200); this[0x25a] = param_3; *(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> **)(this + 0x260) = this + 0x270; /* try { // try from 001d1b2a to 001d1b37 has its CatchHandler @ 001d1b4a */ std::__cxx11::string::_M_construct((ulong)(this + 0x260),'\0'); *(int4 *)(this + 0x280) = param_4; return; }
44,068
auto coro::when_all<coro::task<void>, coro::task<void>>(coro::task<void>, coro::task<void>...)
AlayaLite/build_O3/_deps/libcoro-src/include/coro/when_all.hpp
[[nodiscard]] auto when_all(awaitables_type... awaitables) { return detail::when_all_ready_awaitable<std::tuple< detail::when_all_task<typename concepts::awaitable_traits<awaitables_type>::awaiter_return_type>...>>( std::make_tuple(detail::make_when_all_task(std::move(awaitables))...)); }
O3
cpp
auto coro::when_all<coro::task<void>, coro::task<void>>(coro::task<void>, coro::task<void>...): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r12 movq %rdi, %r14 movq (%rsi), %r15 movq $0x0, (%rsi) movl $0x38, %edi callq 0x32b0 movq %rax, %rbx leaq -0x2e2(%rip), %r13 # 0x4836 movq %r13, (%rax) leaq -0x256(%rip), %rbp # 0x48cc movq %rbp, 0x8(%rax) movq %r15, 0x28(%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movb $0x0, 0x30(%rax) movq (%r12), %r15 movq $0x0, (%r12) movl $0x38, %edi callq 0x32b0 movq %r13, (%rax) movq %rbp, 0x8(%rax) movq %r15, 0x28(%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movb $0x0, 0x30(%rax) movq $0x3, (%r14) movq $0x0, 0x8(%r14) movq %rax, 0x10(%r14) movq %rbx, 0x18(%r14) movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 testq %r15, %r15 je 0x4b99 movq %r15, %rdi callq *0x8(%r15) movq %rbx, %rdi callq 0x48cc jmp 0x4bb6 jmp 0x4bbe jmp 0x4bbe movq %rax, %r14 testq %r15, %r15 je 0x4bb6 movq %r15, %rdi callq *0x8(%r15) movq %r14, %rdi callq 0x3430 movq %rax, %rdi callq 0x4bee
_ZN4coro8when_allITpTkNS_8concepts9awaitableEJNS_4taskIvEES3_EEEDaDpT_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r12, rdx mov r14, rdi mov r15, [rsi] mov qword ptr [rsi], 0 mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax lea r13, _ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_13when_all_taskIT0_EET__resume mov [rax], r13 lea rbp, _ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_13when_all_taskIT0_EET__destroy mov [rax+8], rbp mov [rax+28h], r15 xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 mov byte ptr [rax+30h], 0 mov r15, [r12] mov qword ptr [r12], 0 mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov [rax], r13 mov [rax+8], rbp mov [rax+28h], r15 xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 mov byte ptr [rax+30h], 0 mov qword ptr [r14], 3 mov qword ptr [r14+8], 0 mov [r14+10h], rax mov [r14+18h], rbx mov rax, r14 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax test r15, r15 jz short loc_4B99 mov rdi, r15 call qword ptr [r15+8] loc_4B99: mov rdi, rbx; void * call _ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_13when_all_taskIT0_EET__destroy jmp short loc_4BB6 jmp short loc_4BBE jmp short loc_4BBE mov r14, rax test r15, r15 jz short loc_4BB6 mov rdi, r15 call qword ptr [r15+8] loc_4BB6: mov rdi, r14 call __Unwind_Resume loc_4BBE: mov rdi, rax call __clang_call_terminate
_QWORD * ZN4coro8when_allITpTkNS_8concepts9awaitableEJNS_4taskIvEES3_EEEDaDpT_( _QWORD *a1, long long *a2, long long *a3) { long long v4; // r15 long long v5; // rbx long long v6; // r15 long long v7; // rax v4 = *a2; *a2 = 0LL; v5 = operator new(0x38uLL); *(_QWORD *)v5 = ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_13when_all_taskIT0_EET__resume; *(_QWORD *)(v5 + 8) = ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_13when_all_taskIT0_EET__destroy; *(_QWORD *)(v5 + 40) = v4; *(_OWORD *)(v5 + 16) = 0LL; *(_BYTE *)(v5 + 48) = 0; v6 = *a3; *a3 = 0LL; v7 = operator new(0x38uLL); *(_QWORD *)v7 = ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_13when_all_taskIT0_EET__resume; *(_QWORD *)(v7 + 8) = ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_13when_all_taskIT0_EET__destroy; *(_QWORD *)(v7 + 40) = v6; *(_OWORD *)(v7 + 16) = 0LL; *(_BYTE *)(v7 + 48) = 0; *a1 = 3LL; a1[1] = 0LL; a1[2] = v7; a1[3] = v5; return a1; }
_ZN4coro8when_allITpTkNS_8concepts9awaitableEJNS_4taskIvEES3_EEEDaDpT_: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12,RDX MOV R14,RDI MOV R15,qword ptr [RSI] MOV qword ptr [RSI],0x0 LAB_00104b04: MOV EDI,0x38 CALL 0x001032b0 MOV RBX,RAX LEA R13,[0x104836] MOV qword ptr [RAX],R13 LEA RBP,[0x1048cc] MOV qword ptr [RAX + 0x8],RBP MOV qword ptr [RAX + 0x28],R15 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOV byte ptr [RAX + 0x30],0x0 MOV R15,qword ptr [R12] MOV qword ptr [R12],0x0 LAB_00104b41: MOV EDI,0x38 CALL 0x001032b0 MOV qword ptr [RAX],R13 MOV qword ptr [RAX + 0x8],RBP MOV qword ptr [RAX + 0x28],R15 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOV byte ptr [RAX + 0x30],0x0 MOV qword ptr [R14],0x3 MOV qword ptr [R14 + 0x8],0x0 MOV qword ptr [R14 + 0x10],RAX MOV qword ptr [R14 + 0x18],RBX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 * _ZN4coro8when_allITpTkNS_8concepts9awaitableEJNS_4taskIvEES3_EEEDaDpT_ (int8 *param_1,int8 *param_2,int8 *param_3) { int8 uVar1; int8 *puVar2; int8 *puVar3; uVar1 = *param_2; *param_2 = 0; /* try { // try from 00104b04 to 00104b0d has its CatchHandler @ 00104ba7 */ puVar2 = (int8 *)operator_new(0x38); *puVar2 = _ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_13when_all_taskIT0_EET__resume ; puVar2[1] = _ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_13when_all_taskIT0_EET__destroy ; puVar2[5] = uVar1; puVar2[2] = 0; puVar2[3] = 0; *(int1 *)(puVar2 + 6) = 0; uVar1 = *param_3; *param_3 = 0; /* try { // try from 00104b41 to 00104b4a has its CatchHandler @ 00104b8a */ puVar3 = (int8 *)operator_new(0x38); *puVar3 = _ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_13when_all_taskIT0_EET__resume ; puVar3[1] = _ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_13when_all_taskIT0_EET__destroy ; puVar3[5] = uVar1; puVar3[2] = 0; puVar3[3] = 0; *(int1 *)(puVar3 + 6) = 0; *param_1 = 3; param_1[1] = 0; param_1[2] = puVar3; param_1[3] = puVar2; return param_1; }
44,069
blst_p1_serialize
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/e1.c
void blst_p1_serialize(unsigned char out[96], const POINTonE1 *in) { POINTonE1_Serialize(out, in); }
O3
c
blst_p1_serialize: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx leaq 0x60(%rsi), %rdi movl $0x30, %esi callq 0x2ff40 testq %rax, %rax je 0x18ef5 xorps %xmm0, %xmm0 movups %xmm0, 0x50(%rbx) movups %xmm0, 0x41(%rbx) movups %xmm0, 0x31(%rbx) movups %xmm0, 0x21(%rbx) movups %xmm0, 0x11(%rbx) movups %xmm0, 0x1(%rbx) movb $0x40, (%rbx) popq %rbx popq %r14 popq %rbp retq movq %rbx, %rdi movq %r14, %rsi popq %rbx popq %r14 popq %rbp jmp 0x1a692
blst_p1_serialize: push rbp mov rbp, rsp push r14 push rbx mov r14, rsi mov rbx, rdi lea rdi, [rsi+60h] mov esi, 30h ; '0' call vec_is_zero_16x test rax, rax jz short loc_18EF5 xorps xmm0, xmm0 movups xmmword ptr [rbx+50h], xmm0 movups xmmword ptr [rbx+41h], xmm0 movups xmmword ptr [rbx+31h], xmm0 movups xmmword ptr [rbx+21h], xmm0 movups xmmword ptr [rbx+11h], xmm0 movups xmmword ptr [rbx+1], xmm0 mov byte ptr [rbx], 40h ; '@' pop rbx pop r14 pop rbp retn loc_18EF5: mov rdi, rbx mov rsi, r14 pop rbx pop r14 pop rbp jmp POINTonE1_Serialize_BE
long long blst_p1_serialize(long long a1, long long a2) { long long result; // rax result = vec_is_zero_16x(a2 + 96, 48LL); if ( !result ) return POINTonE1_Serialize_BE(a1, a2); *(_OWORD *)(a1 + 80) = 0LL; *(_OWORD *)(a1 + 65) = 0LL; *(_OWORD *)(a1 + 49) = 0LL; *(_OWORD *)(a1 + 33) = 0LL; *(_OWORD *)(a1 + 17) = 0LL; *(_OWORD *)(a1 + 1) = 0LL; *(_BYTE *)a1 = 64; return result; }
blst_p1_serialize: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RSI MOV RBX,RDI LEA RDI,[RSI + 0x60] MOV ESI,0x30 CALL 0x0012ff40 TEST RAX,RAX JZ 0x00118ef5 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x50],XMM0 MOVUPS xmmword ptr [RBX + 0x41],XMM0 MOVUPS xmmword ptr [RBX + 0x31],XMM0 MOVUPS xmmword ptr [RBX + 0x21],XMM0 MOVUPS xmmword ptr [RBX + 0x11],XMM0 MOVUPS xmmword ptr [RBX + 0x1],XMM0 MOV byte ptr [RBX],0x40 POP RBX POP R14 POP RBP RET LAB_00118ef5: MOV RDI,RBX MOV RSI,R14 POP RBX POP R14 POP RBP JMP 0x0011a692
void blst_p1_serialize(int1 *param_1,long param_2) { long lVar1; lVar1 = vec_is_zero_16x(param_2 + 0x60,0x30); if (lVar1 != 0) { *(int8 *)(param_1 + 0x50) = 0; *(int8 *)(param_1 + 0x58) = 0; *(int8 *)(param_1 + 0x41) = 0; *(int8 *)(param_1 + 0x49) = 0; *(int8 *)(param_1 + 0x31) = 0; *(int8 *)(param_1 + 0x39) = 0; *(int8 *)(param_1 + 0x21) = 0; *(int8 *)(param_1 + 0x29) = 0; *(int8 *)(param_1 + 0x11) = 0; *(int8 *)(param_1 + 0x19) = 0; *(int8 *)(param_1 + 1) = 0; *(int8 *)(param_1 + 9) = 0; *param_1 = 0x40; return; } POINTonE1_Serialize_BE(param_1,param_2); return; }
44,070
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator++()
monkey531[P]llama/common/json.hpp
iter_impl& operator++() { JSON_ASSERT(m_object != nullptr); switch (m_object->m_data.m_type) { case value_t::object: { std::advance(m_it.object_iterator, 1); break; } case value_t::array: { std::advance(m_it.array_iterator, 1); break; } case value_t::null: case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: { ++m_it.primitive_iterator; break; } } return *this; }
O1
cpp
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator++(): movq (%rdi), %rax testq %rax, %rax je 0x8d701 movzbl (%rax), %eax cmpl $0x2, %eax je 0x8d6f2 cmpl $0x1, %eax jne 0x8d6f9 addq $0x30, 0x8(%rdi) jmp 0x8d6fd addq $0x10, 0x10(%rdi) jmp 0x8d6fd incq 0x18(%rdi) movq %rdi, %rax retq pushq %rax leaq 0x62530(%rip), %rdi # 0xefc39 leaq 0x62573(%rip), %rdx # 0xefc83 leaq 0x67826(%rip), %rcx # 0xf4f3d movl $0x33c0, %esi # imm = 0x33C0 xorl %eax, %eax callq 0x1be90 nop
_ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv: mov rax, [rdi] test rax, rax jz short loc_8D701 movzx eax, byte ptr [rax] cmp eax, 2 jz short loc_8D6F2 cmp eax, 1 jnz short loc_8D6F9 add qword ptr [rdi+8], 30h ; '0' jmp short loc_8D6FD loc_8D6F2: add qword ptr [rdi+10h], 10h jmp short loc_8D6FD loc_8D6F9: inc qword ptr [rdi+18h] loc_8D6FD: mov rax, rdi retn loc_8D701: push rax lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAnchorMObjectN+7; "m_object != nullptr" mov esi, 33C0h xor eax, eax call _ggml_abort nop
long long 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++( unsigned __int8 **a1) { int v1; // eax if ( *a1 ) { v1 = **a1; if ( v1 == 2 ) { a1[2] += 16; } else if ( v1 == 1 ) { a1[1] += 48; } else { ++a1[3]; } return (long long)a1; } else { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 13248LL, "GGML_ASSERT(%s) failed", "m_object != nullptr"); return 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*("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"); } }
operator++: MOV RAX,qword ptr [RDI] TEST RAX,RAX JZ 0x0018d701 MOVZX EAX,byte ptr [RAX] CMP EAX,0x2 JZ 0x0018d6f2 CMP EAX,0x1 JNZ 0x0018d6f9 ADD qword ptr [RDI + 0x8],0x30 JMP 0x0018d6fd LAB_0018d6f2: ADD qword ptr [RDI + 0x10],0x10 JMP 0x0018d6fd LAB_0018d6f9: INC qword ptr [RDI + 0x18] LAB_0018d6fd: MOV RAX,RDI RET LAB_0018d701: PUSH RAX LEA RDI,[0x1efc39] LEA RDX,[0x1efc83] LEA RCX,[0x1f4f3d] MOV ESI,0x33c0 XOR EAX,EAX CALL 0x0011be90
/* 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>::TEMPNAMEPLACEHOLDERVALUE() */ 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> * __thiscall nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>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> *this) { char cVar1; int8 in_R8; int8 in_R9; if (*(char **)this != (char *)0x0) { cVar1 = **(char **)this; if (cVar1 == '\x02') { *(long *)(this + 0x10) = *(long *)(this + 0x10) + 0x10; } else if (cVar1 == '\x01') { *(long *)(this + 8) = *(long *)(this + 8) + 0x30; } else { *(long *)(this + 0x18) = *(long *)(this + 0x18) + 1; } return this; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x33c0, "GGML_ASSERT(%s) failed","m_object != nullptr",in_R8,in_R9,0); }
44,071
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator++()
monkey531[P]llama/common/json.hpp
iter_impl& operator++() { JSON_ASSERT(m_object != nullptr); switch (m_object->m_data.m_type) { case value_t::object: { std::advance(m_it.object_iterator, 1); break; } case value_t::array: { std::advance(m_it.array_iterator, 1); break; } case value_t::null: case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: { ++m_it.primitive_iterator; break; } } return *this; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator++(): movq (%rdi), %rax testq %rax, %rax je 0x685c1 movzbl (%rax), %eax cmpl $0x2, %eax je 0x685b2 cmpl $0x1, %eax jne 0x685b9 addq $0x30, 0x8(%rdi) jmp 0x685bd addq $0x10, 0x10(%rdi) jmp 0x685bd incq 0x18(%rdi) movq %rdi, %rax retq pushq %rax leaq 0x49673(%rip), %rdi # 0xb1c3c leaq 0x496b6(%rip), %rdx # 0xb1c86 leaq 0x4e946(%rip), %rcx # 0xb6f1d movl $0x33c0, %esi # imm = 0x33C0 xorl %eax, %eax callq 0x24ea0
_ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv: mov rax, [rdi] test rax, rax jz short loc_685C1 movzx eax, byte ptr [rax] cmp eax, 2 jz short loc_685B2 cmp eax, 1 jnz short loc_685B9 add qword ptr [rdi+8], 30h ; '0' jmp short loc_685BD loc_685B2: add qword ptr [rdi+10h], 10h jmp short loc_685BD loc_685B9: inc qword ptr [rdi+18h] loc_685BD: mov rax, rdi retn loc_685C1: push rax lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAnchorMObjectN+7; "m_object != nullptr" mov esi, 33C0h xor eax, eax call _ggml_abort
long long 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++( unsigned __int8 **a1) { int v1; // eax if ( *a1 ) { v1 = **a1; if ( v1 == 2 ) { a1[2] += 16; } else if ( v1 == 1 ) { a1[1] += 48; } else { ++a1[3]; } return (long long)a1; } else { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 13248LL, "GGML_ASSERT(%s) failed", "m_object != nullptr"); return std::make_shared<std::vector<minja::Value>>( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 13248LL); } }
operator++: MOV RAX,qword ptr [RDI] TEST RAX,RAX JZ 0x001685c1 MOVZX EAX,byte ptr [RAX] CMP EAX,0x2 JZ 0x001685b2 CMP EAX,0x1 JNZ 0x001685b9 ADD qword ptr [RDI + 0x8],0x30 JMP 0x001685bd LAB_001685b2: ADD qword ptr [RDI + 0x10],0x10 JMP 0x001685bd LAB_001685b9: INC qword ptr [RDI + 0x18] LAB_001685bd: MOV RAX,RDI RET LAB_001685c1: PUSH RAX LEA RDI,[0x1b1c3c] LEA RDX,[0x1b1c86] LEA RCX,[0x1b6f1d] MOV ESI,0x33c0 XOR EAX,EAX CALL 0x00124ea0
/* 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>::TEMPNAMEPLACEHOLDERVALUE() */ 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> * __thiscall nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>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> *this) { char cVar1; int8 in_R8; int8 in_R9; if (*(char **)this != (char *)0x0) { cVar1 = **(char **)this; if (cVar1 == '\x02') { *(long *)(this + 0x10) = *(long *)(this + 0x10) + 0x10; } else if (cVar1 == '\x01') { *(long *)(this + 8) = *(long *)(this + 8) + 0x30; } else { *(long *)(this + 0x18) = *(long *)(this + 0x18) + 1; } return this; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x33c0, "GGML_ASSERT(%s) failed","m_object != nullptr",in_R8,in_R9,0); }
44,072
glfwPlatformGetVideoMode
untodesu[P]riteg/build_O1/_deps/glfw-src/src/x11_monitor.c
void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) { if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) { XRRScreenResources* sr; XRRCrtcInfo* ci; sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); *mode = vidmodeFromModeInfo(getModeInfo(sr, ci->mode), ci); XRRFreeCrtcInfo(ci); XRRFreeScreenResources(sr); } else { mode->width = DisplayWidth(_glfw.x11.display, _glfw.x11.screen); mode->height = DisplayHeight(_glfw.x11.display, _glfw.x11.screen); mode->refreshRate = 0; _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen), &mode->redBits, &mode->greenBits, &mode->blueBits); } }
O1
c
glfwPlatformGetVideoMode: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x20, %rsp movq %rsi, %rbx leaq 0x83931(%rip), %r13 # 0xa4638 cmpl $0x0, 0x20570(%r13) je 0x20dbd cmpl $0x0, 0x20594(%r13) jne 0x20dbd movq %rdi, %r15 movq 0x1fec0(%r13), %rdi movq 0x1fed0(%r13), %rsi callq *0x205e8(%r13) movq %rax, %r14 movq 0x1fec0(%r13), %rdi movq 0x90(%r15), %rdx movq %rax, %rsi callq *0x205d0(%r13) movq %rax, %r15 movslq 0x30(%r14), %rax testq %rax, %rax jle 0x20d78 movq 0x18(%r15), %rcx movq 0x38(%r14), %rsi cmpq %rcx, (%rsi) je 0x20d7a addq $0x50, %rsi decq %rax jne 0x20d6a xorl %esi, %esi leaq 0x8(%rsp), %r12 movq %r12, %rdi movq %r15, %rdx callq 0x20e0f movq 0x10(%r12), %rax movq %rax, 0x10(%rbx) movups (%r12), %xmm0 movups %xmm0, (%rbx) movq %r15, %rdi callq *0x205a0(%r13) movq %r14, %rdi callq *0x205b8(%r13) addq $0x20, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq 0x1fec0(%r13), %rax movq 0xe8(%rax), %rax movslq 0x1fec8(%r13), %rcx shlq $0x7, %rcx movl 0x18(%rax,%rcx), %edx movl %edx, (%rbx) movl 0x1c(%rax,%rcx), %edx movl %edx, 0x4(%rbx) movl $0x0, 0x14(%rbx) movl 0x38(%rax,%rcx), %edi leaq 0x8(%rbx), %rsi leaq 0xc(%rbx), %rdx addq $0x10, %rbx movq %rbx, %rcx addq $0x20, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 jmp 0x1bd77
_glfwPlatformGetVideoMode: push r15 push r14 push r13 push r12 push rbx sub rsp, 20h mov rbx, rsi lea r13, _glfw cmp dword ptr [r13+20570h], 0 jz loc_20DBD cmp dword ptr ds:loc_20594[r13], 0 jnz loc_20DBD mov r15, rdi mov rdi, [r13+1FEC0h] mov rsi, [r13+1FED0h] call qword ptr [r13+205E8h] mov r14, rax mov rdi, [r13+1FEC0h] mov rdx, [r15+90h] mov rsi, rax call qword ptr [r13+205D0h] mov r15, rax movsxd rax, dword ptr [r14+30h] test rax, rax jle short loc_20D78 mov rcx, [r15+18h] mov rsi, [r14+38h] loc_20D6A: cmp [rsi], rcx jz short loc_20D7A add rsi, 50h ; 'P' dec rax jnz short loc_20D6A loc_20D78: xor esi, esi loc_20D7A: lea r12, [rsp+48h+var_40] mov rdi, r12 mov rdx, r15 call vidmodeFromModeInfo mov rax, [r12+10h] mov [rbx+10h], rax movups xmm0, xmmword ptr [r12] movups xmmword ptr [rbx], xmm0 mov rdi, r15 call qword ptr ds:loc_205A0[r13] mov rdi, r14 call qword ptr [r13+205B8h] add rsp, 20h pop rbx pop r12 pop r13 pop r14 pop r15 retn loc_20DBD: mov rax, [r13+1FEC0h] mov rax, [rax+0E8h] movsxd rcx, dword ptr [r13+1FEC8h] shl rcx, 7 mov edx, [rax+rcx+18h] mov [rbx], edx mov edx, [rax+rcx+1Ch] mov [rbx+4], edx mov dword ptr [rbx+14h], 0 mov edi, [rax+rcx+38h] lea rsi, [rbx+8] lea rdx, [rbx+0Ch] add rbx, 10h mov rcx, rbx add rsp, 20h pop rbx pop r12 pop r13 pop r14 pop r15 jmp _glfwSplitBPP
long long glfwPlatformGetVideoMode(long long a1, _DWORD *a2) { long long v3; // r14 long long v4; // rcx long long v5; // r15 long long v6; // rax _QWORD *v7; // rsi long long v9; // rax long long v10; // rcx __int128 v11; // [rsp+8h] [rbp-40h] BYREF long long v12; // [rsp+18h] [rbp-30h] if ( !glfw[33116] || *(_DWORD *)((char *)&loc_20594 + (_QWORD)glfw) ) { v9 = *(_QWORD *)(*(_QWORD *)&glfw[32688] + 232LL); v10 = (long long)(int)glfw[32690] << 7; *a2 = *(_DWORD *)(v9 + v10 + 24); a2[1] = *(_DWORD *)(v9 + v10 + 28); a2[5] = 0; return glfwSplitBPP(*(_DWORD *)(v9 + v10 + 56), a2 + 2, a2 + 3, a2 + 4); } else { v3 = (*(long long ( **)(_QWORD, _QWORD))&glfw[33146])(*(_QWORD *)&glfw[32688], *(_QWORD *)&glfw[32692]); v5 = (*(long long ( **)(_QWORD, long long, _QWORD))&glfw[33140])( *(_QWORD *)&glfw[32688], v3, *(_QWORD *)(a1 + 144)); v6 = *(int *)(v3 + 48); if ( v6 <= 0 ) { LABEL_7: v7 = 0LL; } else { v4 = *(_QWORD *)(v5 + 24); v7 = *(_QWORD **)(v3 + 56); while ( *v7 != v4 ) { v7 += 10; if ( !--v6 ) goto LABEL_7; } } vidmodeFromModeInfo(&v11, v7, v5, v4); *((_QWORD *)a2 + 2) = v12; *(_OWORD *)a2 = v11; (*(void ( **)(long long))((char *)&loc_205A0 + (_QWORD)glfw))(v5); return (*(long long ( **)(long long))&glfw[33134])(v3); } }
_glfwPlatformGetVideoMode: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x20 MOV RBX,RSI LEA R13,[0x1a4638] CMP dword ptr [R13 + 0x20570],0x0 JZ 0x00120dbd CMP dword ptr [R13 + 0x20594],0x0 JNZ 0x00120dbd MOV R15,RDI MOV RDI,qword ptr [R13 + 0x1fec0] MOV RSI,qword ptr [R13 + 0x1fed0] CALL qword ptr [R13 + 0x205e8] MOV R14,RAX MOV RDI,qword ptr [R13 + 0x1fec0] MOV RDX,qword ptr [R15 + 0x90] MOV RSI,RAX CALL qword ptr [R13 + 0x205d0] MOV R15,RAX MOVSXD RAX,dword ptr [R14 + 0x30] TEST RAX,RAX JLE 0x00120d78 MOV RCX,qword ptr [R15 + 0x18] MOV RSI,qword ptr [R14 + 0x38] LAB_00120d6a: CMP qword ptr [RSI],RCX JZ 0x00120d7a ADD RSI,0x50 DEC RAX JNZ 0x00120d6a LAB_00120d78: XOR ESI,ESI LAB_00120d7a: LEA R12,[RSP + 0x8] MOV RDI,R12 MOV RDX,R15 CALL 0x00120e0f MOV RAX,qword ptr [R12 + 0x10] MOV qword ptr [RBX + 0x10],RAX MOVUPS XMM0,xmmword ptr [R12] MOVUPS xmmword ptr [RBX],XMM0 MOV RDI,R15 CALL qword ptr [R13 + 0x205a0] MOV RDI,R14 CALL qword ptr [R13 + 0x205b8] ADD RSP,0x20 POP RBX POP R12 POP R13 POP R14 POP R15 RET LAB_00120dbd: MOV RAX,qword ptr [R13 + 0x1fec0] MOV RAX,qword ptr [RAX + 0xe8] MOVSXD RCX,dword ptr [R13 + 0x1fec8] SHL RCX,0x7 MOV EDX,dword ptr [RAX + RCX*0x1 + 0x18] MOV dword ptr [RBX],EDX MOV EDX,dword ptr [RAX + RCX*0x1 + 0x1c] MOV dword ptr [RBX + 0x4],EDX MOV dword ptr [RBX + 0x14],0x0 MOV EDI,dword ptr [RAX + RCX*0x1 + 0x38] LEA RSI,[RBX + 0x8] LEA RDX,[RBX + 0xc] ADD RBX,0x10 MOV RCX,RBX ADD RSP,0x20 POP RBX POP R12 POP R13 POP R14 POP R15 JMP 0x0011bd77
void _glfwPlatformGetVideoMode(long param_1,int4 *param_2) { long lVar1; long lVar2; long lVar3; long *plVar4; int4 local_40; int4 uStack_3c; int4 uStack_38; int4 uStack_34; int8 local_30; if ((DAT_001c4ba8 == 0) || (DAT_001c4bcc != 0)) { lVar1 = *(long *)(DAT_001c44f8 + 0xe8); lVar2 = (long)DAT_001c4500 * 0x80; *param_2 = *(int4 *)(lVar1 + 0x18 + lVar2); param_2[1] = *(int4 *)(lVar1 + 0x1c + lVar2); param_2[5] = 0; _glfwSplitBPP(*(int4 *)(lVar1 + 0x38 + lVar2),param_2 + 2,param_2 + 3,param_2 + 4); return; } lVar1 = (*DAT_001c4c20)(DAT_001c44f8,DAT_001c4508); lVar2 = (*DAT_001c4c08)(DAT_001c44f8,lVar1,*(int8 *)(param_1 + 0x90)); lVar3 = (long)*(int *)(lVar1 + 0x30); if (0 < lVar3) { plVar4 = *(long **)(lVar1 + 0x38); do { if (*plVar4 == *(long *)(lVar2 + 0x18)) goto LAB_00120d7a; plVar4 = plVar4 + 10; lVar3 = lVar3 + -1; } while (lVar3 != 0); } plVar4 = (long *)0x0; LAB_00120d7a: vidmodeFromModeInfo(&local_40,plVar4,lVar2); *(int8 *)(param_2 + 4) = local_30; *param_2 = local_40; param_2[1] = uStack_3c; param_2[2] = uStack_38; param_2[3] = uStack_34; (*DAT_001c4bd8)(lVar2); (*DAT_001c4bf0)(lVar1); return; }
44,073
ma_write_dynamic_record
eloqsql/storage/maria/ma_dynrec.c
my_bool _ma_write_dynamic_record(MARIA_HA *info, const uchar *record) { ulong reclength= _ma_rec_pack(info,info->rec_buff + MARIA_REC_BUFF_OFFSET, record); if (!reclength) return 1; return (write_dynamic_record(info,info->rec_buff + MARIA_REC_BUFF_OFFSET, reclength)); }
O3
c
ma_write_dynamic_record: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rsi, %rdx movq %rdi, %rbx movq 0x3a0(%rdi), %rsi addq $0x18, %rsi callq 0x674d9 testl %eax, %eax je 0x674d0 movl %eax, %edx movq 0x3a0(%rbx), %rsi addq $0x18, %rsi movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %rbp jmp 0x67841 movb $0x1, %al addq $0x8, %rsp popq %rbx popq %rbp retq
_ma_write_dynamic_record: push rbp mov rbp, rsp push rbx push rax mov rdx, rsi mov rbx, rdi mov rsi, [rdi+3A0h] add rsi, 18h call _ma_rec_pack test eax, eax jz short loc_674D0 mov edx, eax mov rsi, [rbx+3A0h] add rsi, 18h mov rdi, rbx add rsp, 8 pop rbx pop rbp jmp write_dynamic_record loc_674D0: mov al, 1 add rsp, 8 pop rbx pop rbp retn
int ma_write_dynamic_record(long long a1, long long a2) { unsigned int v2; // eax v2 = ma_rec_pack(a1, *(_QWORD *)(a1 + 928) + 24LL, a2); if ( v2 ) return write_dynamic_record(a1, *(_QWORD *)(a1 + 928) + 24LL, v2); else return 1; }
_ma_write_dynamic_record: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RDX,RSI MOV RBX,RDI MOV RSI,qword ptr [RDI + 0x3a0] ADD RSI,0x18 CALL 0x001674d9 TEST EAX,EAX JZ 0x001674d0 MOV EDX,EAX MOV RSI,qword ptr [RBX + 0x3a0] ADD RSI,0x18 MOV RDI,RBX ADD RSP,0x8 POP RBX POP RBP JMP 0x00167841 LAB_001674d0: MOV AL,0x1 ADD RSP,0x8 POP RBX POP RBP RET
int4 _ma_write_dynamic_record(long param_1,int8 param_2) { int iVar1; int4 uVar2; iVar1 = _ma_rec_pack(param_1,*(long *)(param_1 + 0x3a0) + 0x18,param_2); if (iVar1 != 0) { uVar2 = write_dynamic_record(param_1,*(long *)(param_1 + 0x3a0) + 0x18,iVar1); return uVar2; } return 1; }
44,074
js_async_generator_free
bluesky950520[P]quickjs/quickjs.c
static void js_async_generator_free(JSRuntime *rt, JSAsyncGeneratorData *s) { struct list_head *el, *el1; JSAsyncGeneratorRequest *req; list_for_each_safe(el, el1, &s->queue) { req = list_entry(el, JSAsyncGeneratorRequest, link); JS_FreeValueRT(rt, req->result); JS_FreeValueRT(rt, req->promise); JS_FreeValueRT(rt, req->resolving_funcs[0]); JS_FreeValueRT(rt, req->resolving_funcs[1]); js_free_rt(rt, req); } if (s->state != JS_ASYNC_GENERATOR_STATE_COMPLETED && s->state != JS_ASYNC_GENERATOR_STATE_AWAITING_RETURN) { async_func_free(rt, &s->func_state); } js_free_rt(rt, s); }
O0
c
js_async_generator_free: subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movq 0x18(%rsp), %rax movq 0x80(%rax), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax movq 0x8(%rax), %rax movq %rax, 0x8(%rsp) movq 0x10(%rsp), %rax movq 0x18(%rsp), %rcx addq $0x78, %rcx cmpq %rcx, %rax je 0x90af0 movq 0x10(%rsp), %rax movq %rax, (%rsp) movq 0x20(%rsp), %rdi movq (%rsp), %rax movq 0x18(%rax), %rsi movq 0x20(%rax), %rdx callq 0x22a50 movq 0x20(%rsp), %rdi movq (%rsp), %rax movq 0x28(%rax), %rsi movq 0x30(%rax), %rdx callq 0x22a50 movq 0x20(%rsp), %rdi movq (%rsp), %rax movq 0x38(%rax), %rsi movq 0x40(%rax), %rdx callq 0x22a50 movq 0x20(%rsp), %rdi movq (%rsp), %rax movq 0x48(%rax), %rsi movq 0x50(%rax), %rdx callq 0x22a50 movq 0x20(%rsp), %rdi movq (%rsp), %rsi callq 0x206a0 movq 0x8(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax movq 0x8(%rax), %rax movq %rax, 0x8(%rsp) jmp 0x90a4d movq 0x18(%rsp), %rax cmpl $0x5, 0x8(%rax) je 0x90b19 movq 0x18(%rsp), %rax cmpl $0x4, 0x8(%rax) je 0x90b19 movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rsi addq $0x10, %rsi callq 0x5af50 movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rsi callq 0x206a0 addq $0x28, %rsp retq nopl (%rax)
js_async_generator_free: sub rsp, 28h mov [rsp+28h+var_8], rdi mov [rsp+28h+var_10], rsi mov rax, [rsp+28h+var_10] mov rax, [rax+80h] mov [rsp+28h+var_18], rax mov rax, [rsp+28h+var_18] mov rax, [rax+8] mov [rsp+28h+var_20], rax loc_90A4D: mov rax, [rsp+28h+var_18] mov rcx, [rsp+28h+var_10] add rcx, 78h ; 'x' cmp rax, rcx jz loc_90AF0 mov rax, [rsp+28h+var_18] mov [rsp+28h+var_28], rax mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_28] mov rsi, [rax+18h] mov rdx, [rax+20h] call JS_FreeValueRT mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_28] mov rsi, [rax+28h] mov rdx, [rax+30h] call JS_FreeValueRT mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_28] mov rsi, [rax+38h] mov rdx, [rax+40h] call JS_FreeValueRT mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_28] mov rsi, [rax+48h] mov rdx, [rax+50h] call JS_FreeValueRT mov rdi, [rsp+28h+var_8] mov rsi, [rsp+28h+var_28] call js_free_rt mov rax, [rsp+28h+var_20] mov [rsp+28h+var_18], rax mov rax, [rsp+28h+var_18] mov rax, [rax+8] mov [rsp+28h+var_20], rax jmp loc_90A4D loc_90AF0: mov rax, [rsp+28h+var_10] cmp dword ptr [rax+8], 5 jz short loc_90B19 mov rax, [rsp+28h+var_10] cmp dword ptr [rax+8], 4 jz short loc_90B19 mov rdi, [rsp+28h+var_8] mov rsi, [rsp+28h+var_10] add rsi, 10h call async_func_free loc_90B19: mov rdi, [rsp+28h+var_8] mov rsi, [rsp+28h+var_10] call js_free_rt add rsp, 28h retn
void js_async_generator_free(long long a1, long long a2) { long long v2; // [rsp+0h] [rbp-28h] long long v3; // [rsp+8h] [rbp-20h] long long v4; // [rsp+10h] [rbp-18h] v4 = *(_QWORD *)(a2 + 128); v3 = *(_QWORD *)(v4 + 8); while ( v4 != a2 + 120 ) { v2 = v4; JS_FreeValueRT(a1, *(_DWORD **)(v4 + 24), *(_QWORD *)(v4 + 32)); JS_FreeValueRT(a1, *(_DWORD **)(v2 + 40), *(_QWORD *)(v2 + 48)); JS_FreeValueRT(a1, *(_DWORD **)(v2 + 56), *(_QWORD *)(v2 + 64)); JS_FreeValueRT(a1, *(_DWORD **)(v2 + 72), *(_QWORD *)(v2 + 80)); js_free_rt(a1, v4); v4 = v3; v3 = *(_QWORD *)(v3 + 8); } if ( *(_DWORD *)(a2 + 8) != 5 && *(_DWORD *)(a2 + 8) != 4 ) async_func_free(a1, a2 + 16); js_free_rt(a1, a2); }
js_async_generator_free: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x80] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RAX LAB_00190a4d: MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RSP + 0x18] ADD RCX,0x78 CMP RAX,RCX JZ 0x00190af0 MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP],RAX MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP] MOV RSI,qword ptr [RAX + 0x18] MOV RDX,qword ptr [RAX + 0x20] CALL 0x00122a50 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP] MOV RSI,qword ptr [RAX + 0x28] MOV RDX,qword ptr [RAX + 0x30] CALL 0x00122a50 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP] MOV RSI,qword ptr [RAX + 0x38] MOV RDX,qword ptr [RAX + 0x40] CALL 0x00122a50 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP] MOV RSI,qword ptr [RAX + 0x48] MOV RDX,qword ptr [RAX + 0x50] CALL 0x00122a50 MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP] CALL 0x001206a0 MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RAX JMP 0x00190a4d LAB_00190af0: MOV RAX,qword ptr [RSP + 0x18] CMP dword ptr [RAX + 0x8],0x5 JZ 0x00190b19 MOV RAX,qword ptr [RSP + 0x18] CMP dword ptr [RAX + 0x8],0x4 JZ 0x00190b19 MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x18] ADD RSI,0x10 CALL 0x0015af50 LAB_00190b19: MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x18] CALL 0x001206a0 ADD RSP,0x28 RET
void js_async_generator_free(int8 param_1,long param_2) { int8 local_20; int8 local_18; local_18 = *(long *)(param_2 + 0x80); local_20 = *(long *)(local_18 + 8); while (local_18 != param_2 + 0x78) { JS_FreeValueRT(param_1,*(int8 *)(local_18 + 0x18),*(int8 *)(local_18 + 0x20)); JS_FreeValueRT(param_1,*(int8 *)(local_18 + 0x28),*(int8 *)(local_18 + 0x30)); JS_FreeValueRT(param_1,*(int8 *)(local_18 + 0x38),*(int8 *)(local_18 + 0x40)); JS_FreeValueRT(param_1,*(int8 *)(local_18 + 0x48),*(int8 *)(local_18 + 0x50)); js_free_rt(param_1,local_18); local_18 = local_20; local_20 = *(long *)(local_20 + 8); } if ((*(int *)(param_2 + 8) != 5) && (*(int *)(param_2 + 8) != 4)) { async_func_free(param_1,param_2 + 0x10); } js_free_rt(param_1,param_2); return; }
44,075
js_async_generator_free
bluesky950520[P]quickjs/quickjs.c
static void js_async_generator_free(JSRuntime *rt, JSAsyncGeneratorData *s) { struct list_head *el, *el1; JSAsyncGeneratorRequest *req; list_for_each_safe(el, el1, &s->queue) { req = list_entry(el, JSAsyncGeneratorRequest, link); JS_FreeValueRT(rt, req->result); JS_FreeValueRT(rt, req->promise); JS_FreeValueRT(rt, req->resolving_funcs[0]); JS_FreeValueRT(rt, req->resolving_funcs[1]); js_free_rt(rt, req); } if (s->state != JS_ASYNC_GENERATOR_STATE_COMPLETED && s->state != JS_ASYNC_GENERATOR_STATE_AWAITING_RETURN) { async_func_free(rt, &s->func_state); } js_free_rt(rt, s); }
O1
c
js_async_generator_free: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 leaq 0x78(%rsi), %r12 movq 0x80(%rsi), %r15 cmpq %r12, %r15 je 0x52098 movq 0x8(%r15), %r13 movq 0x18(%r15), %rsi movq 0x20(%r15), %rdx movq %r14, %rdi callq 0x1ccb2 movq 0x28(%r15), %rsi movq 0x30(%r15), %rdx movq %r14, %rdi callq 0x1ccb2 movq 0x38(%r15), %rsi movq 0x40(%r15), %rdx movq %r14, %rdi callq 0x1ccb2 movq 0x48(%r15), %rsi movq 0x50(%r15), %rdx movq %r14, %rdi callq 0x1ccb2 testq %r15, %r15 je 0x52090 decq 0x28(%r14) movq %r15, %rdi callq *0x20(%r14) movq 0x30(%r14), %rcx movq 0x40(%r14), %rdi subq %rax, %rcx addq $-0x8, %rcx movq %rcx, 0x30(%r14) movq %r15, %rsi callq *0x10(%r14) movq %r13, %r15 cmpq %r12, %r13 jne 0x52022 movl 0x8(%rbx), %eax andl $-0x2, %eax cmpl $0x4, %eax je 0x520af leaq 0x10(%rbx), %rsi movq %r14, %rdi callq 0x3a8b6 testq %rbx, %rbx je 0x520e4 decq 0x28(%r14) movq %rbx, %rdi callq *0x20(%r14) movq 0x10(%r14), %rcx movq 0x30(%r14), %rdx subq %rax, %rdx addq $-0x8, %rdx movq %rdx, 0x30(%r14) movq 0x40(%r14), %rdi movq %rbx, %rsi popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 jmpq *%rcx popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
js_async_generator_free: push r15 push r14 push r13 push r12 push rbx mov rbx, rsi mov r14, rdi lea r12, [rsi+78h] mov r15, [rsi+80h] cmp r15, r12 jz short loc_52098 loc_52022: mov r13, [r15+8] mov rsi, [r15+18h] mov rdx, [r15+20h] mov rdi, r14 call JS_FreeValueRT mov rsi, [r15+28h] mov rdx, [r15+30h] mov rdi, r14 call JS_FreeValueRT mov rsi, [r15+38h] mov rdx, [r15+40h] mov rdi, r14 call JS_FreeValueRT mov rsi, [r15+48h] mov rdx, [r15+50h] mov rdi, r14 call JS_FreeValueRT test r15, r15 jz short loc_52090 dec qword ptr [r14+28h] mov rdi, r15 call qword ptr [r14+20h] mov rcx, [r14+30h] mov rdi, [r14+40h] sub rcx, rax add rcx, 0FFFFFFFFFFFFFFF8h mov [r14+30h], rcx mov rsi, r15 call qword ptr [r14+10h] loc_52090: mov r15, r13 cmp r13, r12 jnz short loc_52022 loc_52098: mov eax, [rbx+8] and eax, 0FFFFFFFEh cmp eax, 4 jz short loc_520AF lea rsi, [rbx+10h] mov rdi, r14 call async_func_free loc_520AF: test rbx, rbx jz short loc_520E4 dec qword ptr [r14+28h] mov rdi, rbx call qword ptr [r14+20h] mov rcx, [r14+10h] mov rdx, [r14+30h] sub rdx, rax add rdx, 0FFFFFFFFFFFFFFF8h mov [r14+30h], rdx mov rdi, [r14+40h] mov rsi, rbx pop rbx pop r12 pop r13 pop r14 pop r15 jmp rcx loc_520E4: pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long js_async_generator_free(long long a1, long long a2) { long long v3; // r15 long long v4; // r13 long long v5; // rax long long v6; // rdi long long result; // rax long long v8; // rax long long ( *v9)(_QWORD, long long); // rcx v3 = *(_QWORD *)(a2 + 128); if ( v3 != a2 + 120 ) { do { v4 = *(_QWORD *)(v3 + 8); JS_FreeValueRT(a1, *(_DWORD **)(v3 + 24), *(_QWORD *)(v3 + 32)); JS_FreeValueRT(a1, *(_DWORD **)(v3 + 40), *(_QWORD *)(v3 + 48)); JS_FreeValueRT(a1, *(_DWORD **)(v3 + 56), *(_QWORD *)(v3 + 64)); JS_FreeValueRT(a1, *(_DWORD **)(v3 + 72), *(_QWORD *)(v3 + 80)); if ( v3 ) { --*(_QWORD *)(a1 + 40); v5 = (*(long long ( **)(long long))(a1 + 32))(v3); v6 = *(_QWORD *)(a1 + 64); *(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v5 - 8; (*(void ( **)(long long, long long))(a1 + 16))(v6, v3); } v3 = v4; } while ( v4 != a2 + 120 ); } result = *(_DWORD *)(a2 + 8) & 0xFFFFFFFE; if ( (_DWORD)result != 4 ) result = async_func_free(a1, a2 + 16); if ( a2 ) { --*(_QWORD *)(a1 + 40); v8 = (*(long long ( **)(long long))(a1 + 32))(a2); v9 = *(long long ( **)(_QWORD, long long))(a1 + 16); *(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v8 - 8; return v9(*(_QWORD *)(a1 + 64), a2); } return result; }
js_async_generator_free: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV RBX,RSI MOV R14,RDI LEA R12,[RSI + 0x78] MOV R15,qword ptr [RSI + 0x80] CMP R15,R12 JZ 0x00152098 LAB_00152022: MOV R13,qword ptr [R15 + 0x8] MOV RSI,qword ptr [R15 + 0x18] MOV RDX,qword ptr [R15 + 0x20] MOV RDI,R14 CALL 0x0011ccb2 MOV RSI,qword ptr [R15 + 0x28] MOV RDX,qword ptr [R15 + 0x30] MOV RDI,R14 CALL 0x0011ccb2 MOV RSI,qword ptr [R15 + 0x38] MOV RDX,qword ptr [R15 + 0x40] MOV RDI,R14 CALL 0x0011ccb2 MOV RSI,qword ptr [R15 + 0x48] MOV RDX,qword ptr [R15 + 0x50] MOV RDI,R14 CALL 0x0011ccb2 TEST R15,R15 JZ 0x00152090 DEC qword ptr [R14 + 0x28] MOV RDI,R15 CALL qword ptr [R14 + 0x20] MOV RCX,qword ptr [R14 + 0x30] MOV RDI,qword ptr [R14 + 0x40] SUB RCX,RAX ADD RCX,-0x8 MOV qword ptr [R14 + 0x30],RCX MOV RSI,R15 CALL qword ptr [R14 + 0x10] LAB_00152090: MOV R15,R13 CMP R13,R12 JNZ 0x00152022 LAB_00152098: MOV EAX,dword ptr [RBX + 0x8] AND EAX,0xfffffffe CMP EAX,0x4 JZ 0x001520af LEA RSI,[RBX + 0x10] MOV RDI,R14 CALL 0x0013a8b6 LAB_001520af: TEST RBX,RBX JZ 0x001520e4 DEC qword ptr [R14 + 0x28] MOV RDI,RBX CALL qword ptr [R14 + 0x20] MOV RCX,qword ptr [R14 + 0x10] MOV RDX,qword ptr [R14 + 0x30] SUB RDX,RAX ADD RDX,-0x8 MOV qword ptr [R14 + 0x30],RDX MOV RDI,qword ptr [R14 + 0x40] MOV RSI,RBX POP RBX POP R12 POP R13 POP R14 POP R15 JMP RCX LAB_001520e4: POP RBX POP R12 POP R13 POP R14 POP R15 RET
void js_async_generator_free(long param_1,long param_2) { long lVar1; long lVar2; long lVar3; lVar3 = *(long *)(param_2 + 0x80); while (lVar1 = lVar3, lVar1 != param_2 + 0x78) { lVar3 = *(long *)(lVar1 + 8); JS_FreeValueRT(param_1,*(int8 *)(lVar1 + 0x18),*(int8 *)(lVar1 + 0x20)); JS_FreeValueRT(param_1,*(int8 *)(lVar1 + 0x28),*(int8 *)(lVar1 + 0x30)); JS_FreeValueRT(param_1,*(int8 *)(lVar1 + 0x38),*(int8 *)(lVar1 + 0x40)); JS_FreeValueRT(param_1,*(int8 *)(lVar1 + 0x48),*(int8 *)(lVar1 + 0x50)); if (lVar1 != 0) { *(long *)(param_1 + 0x28) = *(long *)(param_1 + 0x28) + -1; lVar2 = (**(code **)(param_1 + 0x20))(lVar1); *(long *)(param_1 + 0x30) = (*(long *)(param_1 + 0x30) - lVar2) + -8; (**(code **)(param_1 + 0x10))(*(int8 *)(param_1 + 0x40),lVar1); } } if ((*(uint *)(param_2 + 8) & 0xfffffffe) != 4) { async_func_free(param_1,param_2 + 0x10); } if (param_2 != 0) { *(long *)(param_1 + 0x28) = *(long *)(param_1 + 0x28) + -1; lVar3 = (**(code **)(param_1 + 0x20))(param_2); lVar3 = (*(long *)(param_1 + 0x30) - lVar3) + -8; *(long *)(param_1 + 0x30) = lVar3; /* WARNING: Could not recover jumptable at 0x001520e2. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(param_1 + 0x10)) (*(int8 *)(param_1 + 0x40),param_2,lVar3,*(code **)(param_1 + 0x10)); return; } return; }
44,076
action_a_gt
navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_engine-src/src/parts/engine.c
int32_t action_a_gt (PENGINE_T instance, uint32_t parm, uint32_t flags) { int32_t value ; if (flags & (PART_ACTION_FLAG_VALIDATE)) { return parts_valadate_int (instance, parm, flags, INT_MIN, INT_MAX) ; } value = parts_get_int (instance, parm, flags, INT_MIN, INT_MAX) ; int32_t acc ; engine_get_variable (instance, ENGINE_VARIABLE_ACCUMULATOR, &acc) ; return acc > value ; }
O3
c
action_a_gt: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx testb $0x1, %dl jne 0x718e movq %rbx, %rdi movl $0x80000000, %ecx # imm = 0x80000000 movl $0x7fffffff, %r8d # imm = 0x7FFFFFFF callq 0x82dd movl %eax, %r14d leaq -0x1c(%rbp), %r15 movq %rbx, %rdi xorl %esi, %esi movq %r15, %rdx callq 0xe6b1 xorl %eax, %eax cmpl %r14d, (%r15) setg %al addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rbx, %rdi movl $0x80000000, %ecx # imm = 0x80000000 movl $0x7fffffff, %r8d # imm = 0x7FFFFFFF addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x8254
action_a_gt: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi test dl, 1 jnz short loc_718E mov rdi, rbx mov ecx, 80000000h mov r8d, 7FFFFFFFh call parts_get_int mov r14d, eax lea r15, [rbp+var_1C] mov rdi, rbx xor esi, esi mov rdx, r15 call engine_get_variable xor eax, eax cmp [r15], r14d setnle al add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_718E: mov rdi, rbx mov ecx, 80000000h mov r8d, 7FFFFFFFh add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp parts_valadate_int
long long action_a_gt(long long a1, long long a2, long long a3) { long long v3; // rax int v4; // r14d _DWORD v6[7]; // [rsp+0h] [rbp-1Ch] BYREF v6[0] = HIDWORD(v3); if ( (a3 & 1) != 0 ) return parts_valadate_int(a1, a2, a3, 0x80000000LL, 0x7FFFFFFFLL); v4 = parts_get_int(a1, a2, a3, 0x80000000LL, 0x7FFFFFFFLL); engine_get_variable(a1, 0LL, v6); return v6[0] > v4; }
action_a_gt: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI TEST DL,0x1 JNZ 0x0010718e MOV RDI,RBX MOV ECX,0x80000000 MOV R8D,0x7fffffff CALL 0x001082dd MOV R14D,EAX LEA R15,[RBP + -0x1c] MOV RDI,RBX XOR ESI,ESI MOV RDX,R15 CALL 0x0010e6b1 XOR EAX,EAX CMP dword ptr [R15],R14D SETG AL ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_0010718e: MOV RDI,RBX MOV ECX,0x80000000 MOV R8D,0x7fffffff ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x00108254
ulong action_a_gt(int8 param_1,int8 param_2,ulong param_3) { int iVar1; int8 in_RAX; ulong uVar2; int local_24; local_24 = (int)((ulong)in_RAX >> 0x20); if ((param_3 & 1) == 0) { iVar1 = parts_get_int(param_1,param_2,param_3,0x80000000,0x7fffffff); engine_get_variable(param_1,0,&local_24); return (ulong)(iVar1 < local_24); } uVar2 = parts_valadate_int(param_1,param_2,param_3,0x80000000,0x7fffffff); return uVar2; }
44,077
mi_bin_search
eloqsql/storage/myisam/mi_search.c
int _mi_bin_search(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page, uchar *key, uint key_len, uint comp_flag, uchar **ret_pos, uchar *buff __attribute__((unused)), my_bool *last_key) { reg4 int start,mid,end,save_end; int UNINIT_VAR(flag); uint totlength,nod_flag,not_used[2]; DBUG_ENTER("_mi_bin_search"); totlength=keyinfo->keylength+(nod_flag=mi_test_if_nod(page)); start=0; mid=1; save_end=end=(int) ((mi_getint(page)-2-nod_flag)/totlength-1); DBUG_PRINT("test",("mi_getint: %d end: %d",mi_getint(page),end)); page+=2+nod_flag; while (start != end) { mid= (start+end)/2; if ((flag=ha_key_cmp(keyinfo->seg,page+(uint) mid*totlength,key,key_len, comp_flag, not_used)) >= 0) end=mid; else start=mid+1; } if (mid != start) flag=ha_key_cmp(keyinfo->seg,page+(uint) start*totlength,key,key_len, comp_flag, not_used); if (flag < 0) start++; /* point at next, bigger key */ *ret_pos=page+(uint) start*totlength; *last_key= end == save_end; DBUG_PRINT("exit",("flag: %d keypos: %d",flag,start)); DBUG_RETURN(flag); }
O3
c
mi_bin_search: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %r9d, -0x34(%rbp) movl %r8d, -0x30(%rbp) movq %rcx, -0x50(%rbp) movq %rdx, %rcx movq %rsi, -0x48(%rbp) movzwl 0x12(%rsi), %r15d movzbl (%rdx), %eax xorl %r14d, %r14d movl $0x0, %ebx testb %al, %al jns 0x84627 movq (%rdi), %rdx movl 0x17c(%rdx), %ebx movq 0x20(%rbp), %r12 movq 0x10(%rbp), %r13 addl %ebx, %r15d movzbl 0x1(%rcx), %edx andl $0x7f, %eax shll $0x8, %eax subl %ebx, %eax addl %edx, %eax addl $-0x2, %eax xorl %edx, %edx divl %r15d addl $0x2, %ebx addq %rcx, %rbx decl %eax movl %eax, -0x2c(%rbp) je 0x846c6 movq %rbx, -0x40(%rbp) movl %r15d, %ebx xorl %r15d, %r15d movl -0x2c(%rbp), %eax movl %eax, %r12d leal (%r15,%r12), %eax movl %eax, %r13d shrl $0x1f, %r13d addl %eax, %r13d sarl %r13d movq -0x48(%rbp), %rax movq 0x28(%rax), %rdi movl %r13d, %esi imull %ebx, %esi addq -0x40(%rbp), %rsi movq -0x50(%rbp), %rdx movl -0x30(%rbp), %ecx movl -0x34(%rbp), %r8d leaq -0x58(%rbp), %r9 callq 0x9e7c2 movl %r13d, %r14d testl %eax, %eax jns 0x846aa leal 0x1(%r13), %r15d movl %r12d, %r14d movl %r14d, %r12d cmpl %r14d, %r15d jne 0x84665 cmpl %r14d, %r13d movl %ebx, %r15d movq -0x40(%rbp), %rbx movq 0x20(%rbp), %r12 movq 0x10(%rbp), %r13 je 0x846ec movq -0x48(%rbp), %rax movq 0x28(%rax), %rdi movl %r14d, %esi imull %r15d, %esi addq %rbx, %rsi leaq -0x58(%rbp), %r9 movq -0x50(%rbp), %rdx movl -0x30(%rbp), %ecx movl -0x34(%rbp), %r8d callq 0x9e7c2 movl %eax, %ecx shrl $0x1f, %ecx addl %r14d, %ecx imull %r15d, %ecx addq %rcx, %rbx movq %rbx, (%r13) cmpl -0x2c(%rbp), %r14d sete (%r12) addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_mi_bin_search: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rbp+var_34], r9d mov [rbp+var_30], r8d mov [rbp+var_50], rcx mov rcx, rdx mov [rbp+var_48], rsi movzx r15d, word ptr [rsi+12h] movzx eax, byte ptr [rdx] xor r14d, r14d mov ebx, 0 test al, al jns short loc_84627 mov rdx, [rdi] mov ebx, [rdx+17Ch] loc_84627: mov r12, [rbp+arg_10] mov r13, [rbp+arg_0] add r15d, ebx movzx edx, byte ptr [rcx+1] and eax, 7Fh shl eax, 8 sub eax, ebx add eax, edx add eax, 0FFFFFFFEh xor edx, edx div r15d add ebx, 2 add rbx, rcx dec eax mov [rbp+var_2C], eax jz short loc_846C6 mov [rbp+var_40], rbx mov ebx, r15d xor r15d, r15d mov eax, [rbp+var_2C] mov r12d, eax loc_84665: lea eax, [r15+r12] mov r13d, eax shr r13d, 1Fh add r13d, eax sar r13d, 1 mov rax, [rbp+var_48] mov rdi, [rax+28h] mov esi, r13d imul esi, ebx add rsi, [rbp+var_40] mov rdx, [rbp+var_50] mov ecx, [rbp+var_30] mov r8d, [rbp+var_34] lea r9, [rbp+var_58] call ha_key_cmp mov r14d, r13d test eax, eax jns short loc_846AA lea r15d, [r13+1] mov r14d, r12d loc_846AA: mov r12d, r14d cmp r15d, r14d jnz short loc_84665 cmp r13d, r14d mov r15d, ebx mov rbx, [rbp+var_40] mov r12, [rbp+arg_10] mov r13, [rbp+arg_0] jz short loc_846EC loc_846C6: mov rax, [rbp+var_48] mov rdi, [rax+28h] mov esi, r14d imul esi, r15d add rsi, rbx lea r9, [rbp+var_58] mov rdx, [rbp+var_50] mov ecx, [rbp+var_30] mov r8d, [rbp+var_34] call ha_key_cmp loc_846EC: mov ecx, eax shr ecx, 1Fh add ecx, r14d imul ecx, r15d add rbx, rcx mov [r13+0], rbx cmp r14d, [rbp+var_2C] setz byte ptr [r12] add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mi_bin_search( long long a1, long long a2, long long a3, long long a4, unsigned int a5, unsigned int a6, _QWORD *a7, int a8, bool *a9) { int v9; // r14d int v10; // ebx bool *v11; // r12 _QWORD *v12; // r13 unsigned int v13; // r15d int v14; // eax long long v15; // rbx unsigned int v16; // ebx int v17; // r15d int v18; // r12d int v19; // r13d long long result; // rax bool v21; // zf char v22[8]; // [rsp+8h] [rbp-58h] BYREF long long v23; // [rsp+10h] [rbp-50h] long long v24; // [rsp+18h] [rbp-48h] long long v25; // [rsp+20h] [rbp-40h] unsigned int v26; // [rsp+2Ch] [rbp-34h] unsigned int v27; // [rsp+30h] [rbp-30h] int v28; // [rsp+34h] [rbp-2Ch] v26 = a6; v27 = a5; v23 = a4; v24 = a2; v9 = 0; v10 = 0; if ( *(char *)a3 < 0 ) v10 = *(_DWORD *)(*(_QWORD *)a1 + 380LL); v11 = a9; v12 = a7; v13 = v10 + *(unsigned __int16 *)(a2 + 18); v14 = (*(unsigned __int8 *)(a3 + 1) + ((unsigned __int8)(*(_BYTE *)a3 & 0x7F) << 8) - v10 - 2) / v13; v15 = a3 + (unsigned int)(v10 + 2); v28 = v14 - 1; if ( v14 == 1 ) goto LABEL_9; v25 = v15; v16 = v13; v17 = 0; v18 = v28; do { v19 = (v17 + v18) / 2; result = ha_key_cmp(*(_QWORD *)(v24 + 40), v25 + v16 * v19, v23, v27, v26, v22); v9 = v19; if ( (int)result < 0 ) { v17 = v19 + 1; v9 = v18; } v18 = v9; } while ( v17 != v9 ); v21 = v19 == v9; v13 = v16; v15 = v25; v11 = a9; v12 = a7; if ( !v21 ) LABEL_9: result = ha_key_cmp(*(_QWORD *)(v24 + 40), v15 + v13 * v9, v23, v27, v26, v22); *v12 = v13 * (v9 + ((unsigned int)result >> 31)) + v15; *v11 = v9 == v28; return result; }
_mi_bin_search: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV dword ptr [RBP + -0x34],R9D MOV dword ptr [RBP + -0x30],R8D MOV qword ptr [RBP + -0x50],RCX MOV RCX,RDX MOV qword ptr [RBP + -0x48],RSI MOVZX R15D,word ptr [RSI + 0x12] MOVZX EAX,byte ptr [RDX] XOR R14D,R14D MOV EBX,0x0 TEST AL,AL JNS 0x00184627 MOV RDX,qword ptr [RDI] MOV EBX,dword ptr [RDX + 0x17c] LAB_00184627: MOV R12,qword ptr [RBP + 0x20] MOV R13,qword ptr [RBP + 0x10] ADD R15D,EBX MOVZX EDX,byte ptr [RCX + 0x1] AND EAX,0x7f SHL EAX,0x8 SUB EAX,EBX ADD EAX,EDX ADD EAX,-0x2 XOR EDX,EDX DIV R15D ADD EBX,0x2 ADD RBX,RCX DEC EAX MOV dword ptr [RBP + -0x2c],EAX JZ 0x001846c6 MOV qword ptr [RBP + -0x40],RBX MOV EBX,R15D XOR R15D,R15D MOV EAX,dword ptr [RBP + -0x2c] MOV R12D,EAX LAB_00184665: LEA EAX,[R15 + R12*0x1] MOV R13D,EAX SHR R13D,0x1f ADD R13D,EAX SAR R13D,0x1 MOV RAX,qword ptr [RBP + -0x48] MOV RDI,qword ptr [RAX + 0x28] MOV ESI,R13D IMUL ESI,EBX ADD RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x30] MOV R8D,dword ptr [RBP + -0x34] LEA R9,[RBP + -0x58] CALL 0x0019e7c2 MOV R14D,R13D TEST EAX,EAX JNS 0x001846aa LEA R15D,[R13 + 0x1] MOV R14D,R12D LAB_001846aa: MOV R12D,R14D CMP R15D,R14D JNZ 0x00184665 CMP R13D,R14D MOV R15D,EBX MOV RBX,qword ptr [RBP + -0x40] MOV R12,qword ptr [RBP + 0x20] MOV R13,qword ptr [RBP + 0x10] JZ 0x001846ec LAB_001846c6: MOV RAX,qword ptr [RBP + -0x48] MOV RDI,qword ptr [RAX + 0x28] MOV ESI,R14D IMUL ESI,R15D ADD RSI,RBX LEA R9,[RBP + -0x58] MOV RDX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x30] MOV R8D,dword ptr [RBP + -0x34] CALL 0x0019e7c2 LAB_001846ec: MOV ECX,EAX SHR ECX,0x1f ADD ECX,R14D IMUL ECX,R15D ADD RBX,RCX MOV qword ptr [R13],RBX CMP R14D,dword ptr [RBP + -0x2c] SETZ byte ptr [R12] ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void _mi_bin_search(long *param_1,long param_2,byte *param_3,int8 param_4,int4 param_5, int4 param_6,int8 *param_7,int8 param_8,int8 param_9) { int iVar1; int iVar2; int iVar3; byte *pbVar4; int iVar5; uint uVar6; int iVar7; int1 local_60 [8]; int8 local_58; long local_50; byte *local_48; int4 local_3c; int4 local_38; int local_34; iVar3 = 0; if ((char)*param_3 < '\0') { iVar3 = *(int *)(*param_1 + 0x17c); } uVar6 = (uint)*(ushort *)(param_2 + 0x12) + iVar3; iVar1 = ((((*param_3 & 0x7f) * 0x100 - iVar3) + (uint)param_3[1]) - 2) / uVar6 - 1; pbVar4 = param_3 + (iVar3 + 2); iVar7 = 0; local_58 = param_4; local_50 = param_2; local_3c = param_6; local_38 = param_5; local_34 = iVar1; if (iVar1 != 0) { iVar7 = 0; local_48 = param_3 + (iVar3 + 2); do { iVar5 = (iVar7 + iVar1) / 2; iVar2 = ha_key_cmp(*(int8 *)(local_50 + 0x28),local_48 + iVar5 * uVar6,local_58,local_38 ,local_3c,local_60); iVar3 = iVar5; if (iVar2 < 0) { iVar7 = iVar5 + 1; iVar3 = iVar1; } iVar1 = iVar3; } while (iVar7 != iVar1); pbVar4 = local_48; iVar7 = iVar1; if (iVar5 == iVar1) goto LAB_001846ec; } iVar2 = ha_key_cmp(*(int8 *)(local_50 + 0x28),pbVar4 + iVar7 * uVar6,local_58,local_38, local_3c,local_60); LAB_001846ec: *param_7 = pbVar4 + (iVar7 - (iVar2 >> 0x1f)) * uVar6; *(bool *)param_9 = iVar7 == local_34; return; }
44,078
ma_hashtbl_search
eloqsql/libmariadb/libmariadb/ma_hashtbl.c
void* ma_hashtbl_search(MA_HASHTBL *hash,const uchar *key,uint length) { MA_HASHTBL_LINK *pos; uint flag,idx; flag=1; if (hash->records) { idx=hash_mask((*hash->calc_hashnr)(key,length ? length : hash->key_length), hash->blength,hash->records); do { pos= dynamic_element(&hash->array,idx,MA_HASHTBL_LINK*); if (!hashcmp(hash,pos,key,length)) { hash->current_record= idx; return (pos->data); } if (flag) { flag=0; /* Reset flag */ if (hash_rec_mask(hash,pos,hash->blength,hash->records) != idx) break; /* Wrong link */ } } while ((idx=pos->next) != NO_RECORD); } hash->current_record= NO_RECORD; return(0); }
O3
c
ma_hashtbl_search: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, -0x30(%rbp) movq %rdi, %rbx cmpl $0x0, 0x8(%rdi) je 0x35020 movl %edx, %r14d movq 0x40(%rbx), %rax movl %edx, %esi testl %edx, %edx jne 0x34fab movl 0x4(%rbx), %esi movq -0x30(%rbp), %rdi callq *%rax movl 0xc(%rbx), %r12d leal -0x1(%r12), %ecx andl %eax, %ecx shrl %r12d decl %r12d andl %eax, %r12d cmpl 0x8(%rbx), %ecx cmovbl %ecx, %r12d xorl %r15d, %r15d movq 0x18(%rbx), %rax movl %r12d, %ecx shlq $0x4, %rcx leaq (%rax,%rcx), %r13 movq 0x8(%rax,%rcx), %rsi movq %rbx, %rdi movq -0x30(%rbp), %rdx movl %r14d, %ecx callq 0x35042 testl %eax, %eax je 0x3502b testb $0x1, %r15b jne 0x35013 movl 0x8(%rbx), %ecx movl 0xc(%rbx), %edx movq 0x8(%r13), %rsi movq %rbx, %rdi callq 0x350b8 cmpl %r12d, %eax jne 0x35020 movl (%r13), %r12d movb $0x1, %r15b cmpl $-0x1, %r12d jne 0x34fcf movl $0xffffffff, 0x10(%rbx) # imm = 0xFFFFFFFF xorl %eax, %eax jmp 0x35033 movl %r12d, 0x10(%rbx) movq 0x8(%r13), %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ma_hashtbl_search: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov [rbp+var_30], rsi mov rbx, rdi cmp dword ptr [rdi+8], 0 jz loc_35020 mov r14d, edx mov rax, [rbx+40h] mov esi, edx test edx, edx jnz short loc_34FAB mov esi, [rbx+4] loc_34FAB: mov rdi, [rbp+var_30] call rax mov r12d, [rbx+0Ch] lea ecx, [r12-1] and ecx, eax shr r12d, 1 dec r12d and r12d, eax cmp ecx, [rbx+8] cmovb r12d, ecx xor r15d, r15d loc_34FCF: mov rax, [rbx+18h] mov ecx, r12d shl rcx, 4 lea r13, [rax+rcx] mov rsi, [rax+rcx+8] mov rdi, rbx mov rdx, [rbp+var_30] mov ecx, r14d call hashcmp test eax, eax jz short loc_3502B test r15b, 1 jnz short loc_35013 mov ecx, [rbx+8] mov edx, [rbx+0Ch] mov rsi, [r13+8] mov rdi, rbx call hash_rec_mask cmp eax, r12d jnz short loc_35020 loc_35013: mov r12d, [r13+0] mov r15b, 1 cmp r12d, 0FFFFFFFFh jnz short loc_34FCF loc_35020: mov dword ptr [rbx+10h], 0FFFFFFFFh xor eax, eax jmp short loc_35033 loc_3502B: mov [rbx+10h], r12d mov rax, [r13+8] loc_35033: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ma_hashtbl_search(long long a1, long long a2, unsigned int a3) { long long v4; // rsi int v5; // eax unsigned int v6; // r12d unsigned int v7; // ecx unsigned int v8; // r12d char v9; // r15 long long v10; // r13 if ( *(_DWORD *)(a1 + 8) ) { v4 = a3; if ( !a3 ) v4 = *(unsigned int *)(a1 + 4); v5 = (*(long long ( **)(long long, long long))(a1 + 64))(a2, v4); v6 = *(_DWORD *)(a1 + 12); v7 = v5 & (v6 - 1); v8 = v5 & ((v6 >> 1) - 1); if ( v7 < *(_DWORD *)(a1 + 8) ) v8 = v7; v9 = 0; while ( 1 ) { v10 = *(_QWORD *)(a1 + 24) + 16LL * v8; if ( !(unsigned int)hashcmp(a1, *(_QWORD *)(v10 + 8), a2, a3) ) break; if ( (v9 & 1) != 0 || (unsigned int)hash_rec_mask(a1, *(_QWORD *)(v10 + 8), *(unsigned int *)(a1 + 12), *(unsigned int *)(a1 + 8)) == v8 ) { v8 = *(_DWORD *)v10; v9 = 1; if ( *(_DWORD *)v10 != -1 ) continue; } goto LABEL_11; } *(_DWORD *)(a1 + 16) = v8; return *(_QWORD *)(v10 + 8); } else { LABEL_11: *(_DWORD *)(a1 + 16) = -1; return 0LL; } }
ma_hashtbl_search: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV qword ptr [RBP + -0x30],RSI MOV RBX,RDI CMP dword ptr [RDI + 0x8],0x0 JZ 0x00135020 MOV R14D,EDX MOV RAX,qword ptr [RBX + 0x40] MOV ESI,EDX TEST EDX,EDX JNZ 0x00134fab MOV ESI,dword ptr [RBX + 0x4] LAB_00134fab: MOV RDI,qword ptr [RBP + -0x30] CALL RAX MOV R12D,dword ptr [RBX + 0xc] LEA ECX,[R12 + -0x1] AND ECX,EAX SHR R12D,0x1 DEC R12D AND R12D,EAX CMP ECX,dword ptr [RBX + 0x8] CMOVC R12D,ECX XOR R15D,R15D LAB_00134fcf: MOV RAX,qword ptr [RBX + 0x18] MOV ECX,R12D SHL RCX,0x4 LEA R13,[RAX + RCX*0x1] MOV RSI,qword ptr [RAX + RCX*0x1 + 0x8] MOV RDI,RBX MOV RDX,qword ptr [RBP + -0x30] MOV ECX,R14D CALL 0x00135042 TEST EAX,EAX JZ 0x0013502b TEST R15B,0x1 JNZ 0x00135013 MOV ECX,dword ptr [RBX + 0x8] MOV EDX,dword ptr [RBX + 0xc] MOV RSI,qword ptr [R13 + 0x8] MOV RDI,RBX CALL 0x001350b8 CMP EAX,R12D JNZ 0x00135020 LAB_00135013: MOV R12D,dword ptr [R13] MOV R15B,0x1 CMP R12D,-0x1 JNZ 0x00134fcf LAB_00135020: MOV dword ptr [RBX + 0x10],0xffffffff XOR EAX,EAX JMP 0x00135033 LAB_0013502b: MOV dword ptr [RBX + 0x10],R12D MOV RAX,qword ptr [R13 + 0x8] LAB_00135033: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 ma_hashtbl_search(long param_1,int8 param_2,int param_3) { uint *puVar1; uint uVar2; int iVar3; uint uVar4; bool bVar5; if (*(int *)(param_1 + 8) != 0) { iVar3 = param_3; if (param_3 == 0) { iVar3 = *(int *)(param_1 + 4); } uVar2 = (**(code **)(param_1 + 0x40))(param_2,iVar3); uVar4 = *(uint *)(param_1 + 0xc) - 1 & uVar2; uVar2 = (*(uint *)(param_1 + 0xc) >> 1) - 1 & uVar2; if (uVar4 < *(uint *)(param_1 + 8)) { uVar2 = uVar4; } bVar5 = false; do { puVar1 = (uint *)(*(long *)(param_1 + 0x18) + (ulong)uVar2 * 0x10); iVar3 = hashcmp(param_1,*(int8 *)(*(long *)(param_1 + 0x18) + 8 + (ulong)uVar2 * 0x10), param_2,param_3); if (iVar3 == 0) { *(uint *)(param_1 + 0x10) = uVar2; return *(int8 *)(puVar1 + 2); } if ((!bVar5) && (uVar4 = hash_rec_mask(param_1,*(int8 *)(puVar1 + 2),*(int4 *)(param_1 + 0xc), *(int4 *)(param_1 + 8)), uVar4 != uVar2)) break; uVar2 = *puVar1; bVar5 = true; } while (uVar2 != 0xffffffff); } *(int4 *)(param_1 + 0x10) = 0xffffffff; return 0; }
44,079
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t)
monkey531[P]llama/common/json.hpp
static type_error create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t): subq $0xd8, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0xd0(%rsp) movl %esi, 0xcc(%rsp) movq %rdx, 0xc0(%rsp) movq %rcx, 0xb8(%rsp) leaq 0x57(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0x5b0d0 movq 0x18(%rsp), %rdx leaq 0xb1fab(%rip), %rsi # 0x20d4f9 leaq 0x58(%rsp), %rdi callq 0x61fc0 jmp 0x15b55a movl 0xcc(%rsp), %edx leaq 0x78(%rsp), %rdi leaq 0x58(%rsp), %rsi callq 0xa1fb0 jmp 0x15b572 xorl %eax, %eax movl %eax, %esi leaq 0x20(%rsp), %rdi callq 0xa2050 jmp 0x15b582 movq 0xc0(%rsp), %rcx leaq 0x98(%rsp), %rdi leaq 0x78(%rsp), %rsi leaq 0x20(%rsp), %rdx callq 0xa1ef0 jmp 0x15b5a3 leaq 0x20(%rsp), %rdi callq 0x5b558 leaq 0x78(%rsp), %rdi callq 0x5b558 leaq 0x58(%rsp), %rdi callq 0x5b558 leaq 0x57(%rsp), %rdi callq 0x5b530 movl 0xcc(%rsp), %eax movl %eax, 0x4(%rsp) leaq 0x98(%rsp), %rdi callq 0x5a1d0 movq 0x8(%rsp), %rdi movl 0x4(%rsp), %esi movq %rax, %rdx callq 0xb60a0 jmp 0x15b5f6 leaq 0x98(%rsp), %rdi callq 0x5b558 movq 0x10(%rsp), %rax addq $0xd8, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0x15b66c movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0x15b662 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0x15b658 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) leaq 0x20(%rsp), %rdi callq 0x5b558 leaq 0x78(%rsp), %rdi callq 0x5b558 leaq 0x58(%rsp), %rdi callq 0x5b558 leaq 0x57(%rsp), %rdi callq 0x5b530 jmp 0x15b693 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) leaq 0x98(%rsp), %rdi callq 0x5b558 movq 0x48(%rsp), %rdi callq 0x5abc0 nopl (%rax)
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: sub rsp, 0D8h mov [rsp+0D8h+var_D0], rdi; int mov rax, rdi mov qword ptr [rsp+0D8h+var_C8], rax; int mov [rsp+0D8h+var_8], rdi mov [rsp+0D8h+var_C], esi mov qword ptr [rsp+0D8h+var_18], rdx mov [rsp+0D8h+var_20], rcx lea rdi, [rsp+0D8h+var_81] mov qword ptr [rsp+0D8h+var_C0], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, qword ptr [rsp+0D8h+var_C0] lea rsi, aTypeError; "type_error" lea rdi, [rsp+0D8h+var_81+1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_15B55A: mov edx, [rsp+0D8h+var_C] lea rdi, [rsp+0D8h+var_60]; int lea rsi, [rsp+0D8h+var_81+1] call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) jmp short $+2 loc_15B572: xor eax, eax mov esi, eax lea rdi, [rsp+0D8h+var_B8] call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsB5cxx11EDn; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics(decltype(nullptr)) jmp short $+2 loc_15B582: mov rcx, qword ptr [rsp+0D8h+var_18]; int lea rdi, [rsp+0D8h+var_40]; int lea rsi, [rsp+0D8h+var_60]; int lea rdx, [rsp+0D8h+var_B8]; int call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&) jmp short $+2 loc_15B5A3: lea rdi, [rsp+0D8h+var_B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_81+1]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_81] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov eax, [rsp+0D8h+var_C] mov [rsp+0D8h+var_D4], eax lea rdi, [rsp+0D8h+var_40] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rdi, [rsp+0D8h+var_D0]; this mov esi, [rsp+0D8h+var_D4]; int mov rdx, rax; char * call _ZN8nlohmann16json_abi_v3_11_36detail10type_errorC2EiPKc; nlohmann::json_abi_v3_11_3::detail::type_error::type_error(int,char const*) jmp short $+2 loc_15B5F6: lea rdi, [rsp+0D8h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rax, qword ptr [rsp+0D8h+var_C8] add rsp, 0D8h retn mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_15B66C mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_15B662 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_15B658 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax lea rdi, [rsp+arg_18]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_15B658: lea rdi, [rsp+arg_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_15B662: lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_15B66C: lea rdi, [rsp+arg_4F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_15B693 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax lea rdi, [rsp+arg_90]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_15B693: mov rdi, [rsp+arg_40] call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::type_error * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( nlohmann::json_abi_v3_11_3::detail::type_error *a1, int a2, long long a3, long long a4) { const char *v4; // rax int v6; // [rsp+4h] [rbp-D4h] int v7[13]; // [rsp+20h] [rbp-B8h] BYREF int v8[8]; // [rsp+57h] [rbp-81h] BYREF int v9[8]; // [rsp+78h] [rbp-60h] BYREF int v10[8]; // [rsp+98h] [rbp-40h] BYREF long long v11; // [rsp+B8h] [rbp-20h] int v12[2]; // [rsp+C0h] [rbp-18h] int v13; // [rsp+CCh] [rbp-Ch] nlohmann::json_abi_v3_11_3::detail::type_error *v14; // [rsp+D0h] [rbp-8h] v14 = a1; v13 = a2; *(_QWORD *)v12 = a3; v11 = a4; std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>((long long)v8 + 1, (long long)"type_error", (long long)v8); nlohmann::json_abi_v3_11_3::detail::exception::name(v9, (long long)v8 + 1, v13); nlohmann::json_abi_v3_11_3::detail::exception::diagnostics[abi:cxx11]((long long)v7, 0LL); nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>( (long long)v10, (long long)v9, (long long)v7, *(long long *)v12); std::string::~string(v7); std::string::~string(v9); std::string::~string((char *)v8 + 1); std::allocator<char>::~allocator(v8); v6 = v13; v4 = (const char *)std::string::c_str(v10); nlohmann::json_abi_v3_11_3::detail::type_error::type_error(a1, v6, v4); std::string::~string(v10); return a1; }
44,080
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t)
monkey531[P]llama/common/json.hpp
static type_error create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x88, %rsp movq %rcx, %r15 movq %rdx, %r14 movl %esi, %ebp movq %rdi, %rbx leaq 0x6d479(%rip), %rsi # 0xaff4c leaq 0x28(%rsp), %rdi leaq 0x7(%rsp), %rdx callq 0x26f76 leaq 0x48(%rsp), %rdi leaq 0x28(%rsp), %rsi movl %ebp, %edx callq 0x3d5f4 leaq 0x8(%rsp), %rdi movq %r15, %rsi callq 0x4196e leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rsi leaq 0x8(%rsp), %rdx movq %r14, %rcx callq 0x3d58b leaq 0x8(%rsp), %rdi callq 0x241d8 leaq 0x48(%rsp), %rdi callq 0x241d8 leaq 0x28(%rsp), %rdi callq 0x241d8 movq 0x68(%rsp), %rdx movq %rbx, %rdi movl %ebp, %esi callq 0x42fee leaq 0x68(%rsp), %rdi callq 0x241d8 movq %rbx, %rax addq $0x88, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x68(%rsp), %rdi jmp 0x42b8f movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x241d8 jmp 0x42b7b movq %rax, %rbx leaq 0x48(%rsp), %rdi callq 0x241d8 jmp 0x42b8a movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x241d8 jmp 0x42b99 movq %rax, %rbx movq %rbx, %rdi callq 0x23fa0
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_: push rbp push r15 push r14 push rbx sub rsp, 88h mov r15, rcx mov r14, rdx mov ebp, esi mov rbx, rdi lea rsi, aTypeError; "type_error" lea rdi, [rsp+0A8h+var_80] lea rdx, [rsp+0A8h+var_A1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+0A8h+var_60] lea rsi, [rsp+0A8h+var_80] mov edx, ebp call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea rdi, [rsp+0A8h+var_A0] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEESC_PKT_; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const*) lea rdi, [rsp+0A8h+var_40] lea rsi, [rsp+0A8h+var_60] lea rdx, [rsp+0A8h+var_A0] mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&) lea rdi, [rsp+0A8h+var_A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+0A8h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+0A8h+var_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdx, [rsp+0A8h+var_40]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail10type_errorC2EiPKc; nlohmann::json_abi_v3_11_3::detail::type_error::type_error(int,char const*) lea rdi, [rsp+0A8h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, rbx add rsp, 88h pop rbx pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_60] jmp short loc_42B8F mov rbx, rax lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_42B7B mov rbx, rax loc_42B7B: lea rdi, [rsp+arg_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_42B8A mov rbx, rax loc_42B8A: lea rdi, [rsp+arg_20]; void * loc_42B8F: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_42B99 mov rbx, rax loc_42B99: mov rdi, rbx call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::type_error * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( nlohmann::json_abi_v3_11_3::detail::type_error *this, int a2, long long a3) { _QWORD v5[4]; // [rsp+8h] [rbp-A0h] BYREF _QWORD v6[4]; // [rsp+28h] [rbp-80h] BYREF _BYTE v7[32]; // [rsp+48h] [rbp-60h] BYREF char *v8[8]; // [rsp+68h] [rbp-40h] BYREF std::string::basic_string<std::allocator<char>>(v6, (long long)"type_error"); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v7, (long long)v6, a2); nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(v5); nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>( (long long)v8, (long long)v7, (long long)v5, a3); std::string::~string(v5); std::string::~string(v7); std::string::~string(v6); nlohmann::json_abi_v3_11_3::detail::type_error::type_error(this, a2, v8[0]); std::string::~string(v8); return this; }
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x88 MOV R15,RCX MOV R14,RDX MOV EBP,ESI MOV RBX,RDI LAB_00142acc: LEA RSI,[0x1aff4c] LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x7] CALL 0x00126f76 LAB_00142ae2: LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x28] MOV EDX,EBP CALL 0x0013d5f4 LAB_00142af3: LEA RDI,[RSP + 0x8] MOV RSI,R15 CALL 0x0014196e LAB_00142b00: LEA RDI,[RSP + 0x68] LEA RSI,[RSP + 0x48] LEA RDX,[RSP + 0x8] MOV RCX,R14 CALL 0x0013d58b LEA RDI,[RSP + 0x8] CALL 0x001241d8 LEA RDI,[RSP + 0x48] CALL 0x001241d8 LEA RDI,[RSP + 0x28] CALL 0x001241d8 MOV RDX,qword ptr [RSP + 0x68] LAB_00142b3a: MOV RDI,RBX MOV ESI,EBP CALL 0x00142fee LAB_00142b44: LEA RDI,[RSP + 0x68] CALL 0x001241d8 MOV RAX,RBX ADD RSP,0x88 POP RBX POP R14 POP R15 POP RBP RET
type_error * _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (type_error *param_1,int param_2,string *param_3) { allocator local_a1; string local_a0 [32]; string local_80 [32]; exception local_60 [32]; char *local_40 [4]; /* try { // try from 00142acc to 00142ae1 has its CatchHandler @ 00142b96 */ std::__cxx11::string::string<std::allocator<char>>(local_80,"type_error",&local_a1); /* try { // try from 00142ae2 to 00142af2 has its CatchHandler @ 00142b87 */ nlohmann::json_abi_v3_11_3::detail::exception::name(local_60,local_80,param_2); /* try { // try from 00142af3 to 00142aff has its CatchHandler @ 00142b78 */ nlohmann::json_abi_v3_11_3::detail::exception:: diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (local_a0); /* try { // try from 00142b00 to 00142b16 has its CatchHandler @ 00142b69 */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&> ((detail *)local_40,(string *)local_60,local_a0,param_3); std::__cxx11::string::~string(local_a0); std::__cxx11::string::~string((string *)local_60); std::__cxx11::string::~string(local_80); /* try { // try from 00142b3a to 00142b43 has its CatchHandler @ 00142b5f */ nlohmann::json_abi_v3_11_3::detail::type_error::type_error(param_1,param_2,local_40[0]); std::__cxx11::string::~string((string *)local_40); return param_1; }
44,081
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t)
monkey531[P]llama/common/json.hpp
static type_error create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdx, %r15 movl %esi, %ebp movq %rdi, %rbx leaq 0x38(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x8ddbd(%rip), %rsi # 0xebf3a leaq 0x8ddc0(%rip), %rdx # 0xebf44 leaq 0x28(%rsp), %rdi callq 0x214e2 leaq 0x48(%rsp), %rdi leaq 0x28(%rsp), %rsi movl %ebp, %edx callq 0x58050 leaq 0x78(%rsp), %r14 movq %r14, -0x10(%r14) xorl %eax, %eax movq %rax, -0x8(%r14) movb %al, (%r14) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) movq %rax, -0x8(%r12) movb %al, (%r12) movq 0x8(%r15), %rsi addq 0x50(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x1ad80 movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x1a260 movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x1a260 movq (%r15), %rsi movq 0x8(%r15), %rdx leaq 0x8(%rsp), %rdi callq 0x1a260 movq 0x68(%rsp), %rdi cmpq %r14, %rdi je 0x5e227 movq 0x78(%rsp), %rsi incq %rsi callq 0x1a8e0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x5e242 movq 0x58(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x5e259 movq 0x38(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0x8(%rsp), %rdx movq %rbx, %rdi movl %ebp, %esi callq 0x582be leaq 0xcad01(%rip), %rax # 0x128f70 addq $0x10, %rax movq %rax, (%rbx) movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x5e28d movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8e0 movq %rbx, %rax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x5e31b movq 0x18(%rsp), %rsi jmp 0x5e313 movq %rax, %rbx jmp 0x5e304 movq %rax, %rbx jmp 0x5e31b movq %rdx, %rbx movq %rax, %r15 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x5e2dd movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8e0 leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x88(%rsp), %r12 movq %r14, %rsi movq %r15, %rcx movl %ebx, %r8d movq %r12, %r9 callq 0x1b5f7 movq (%r12), %rbx movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x5e31b movq 0x38(%rsp), %rsi incq %rsi callq 0x1a8e0 movq %rbx, %rdi callq 0x1afa0
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov r15, rdx mov ebp, esi mov rbx, rdi lea r13, [rsp+0C8h+var_90] mov [r13-10h], r13 lea rsi, aTypeError; "type_error" lea rdx, aTypeError+0Ah; "" lea rdi, [rsp+0C8h+var_A0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0C8h+var_80]; int lea rsi, [rsp+0C8h+var_A0]; int mov edx, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea r14, [rsp+0C8h+var_50] mov [r14-10h], r14 xor eax, eax mov [r14-8], rax mov [r14], al lea r12, [rsp+0C8h+var_B0] mov [r12-10h], r12 mov [r12-8], rax mov [r12], al mov rsi, [r15+8] add rsi, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rsi, qword ptr [rsp+0C8h+var_80] mov rdx, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [rsp+0C8h+var_60] mov rdx, [rsp+0C8h+var_58] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [r15] mov rdx, [r15+8] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+0C8h+var_60]; void * cmp rdi, r14 jz short loc_5E227 mov rsi, [rsp+0C8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5E227: lea rax, [rsp+0C8h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_5E242 mov rsi, [rsp+0C8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5E242: mov rdi, [rsp+0C8h+var_A0]; void * cmp rdi, r13 jz short loc_5E259 mov rsi, [rsp+0C8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5E259: mov rdx, [rsp+0C8h+var_C0]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*) lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail10type_errorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::type_error add rax, 10h mov [rbx], rax mov rdi, [rsp+0C8h+var_C0]; void * cmp rdi, r12 jz short loc_5E28D mov rsi, [rsp+0C8h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5E28D: mov rax, rbx add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_0] cmp rdi, r12 jz short loc_5E31B mov rsi, [rsp+arg_10] jmp short loc_5E313 mov rbx, rax jmp short loc_5E304 mov rbx, rax jmp short loc_5E31B mov rbx, rdx mov r15, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_5E2DD mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5E2DD: lea rdi, [rsp+arg_60] lea rdx, [rsp+arg_40] lea r12, [rsp+arg_80] mov rsi, r14 mov rcx, r15 mov r8d, ebx mov r9, r12 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ__cold_1 mov rbx, [r12] loc_5E304: mov rdi, [rsp+arg_20]; void * cmp rdi, r13 jz short loc_5E31B mov rsi, [rsp+arg_30] loc_5E313: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5E31B: mov rdi, rbx call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( nlohmann::json_abi_v3_11_3::detail::exception *this, int a2, _QWORD *a3) { char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF _QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF _QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF int v9[2]; // [rsp+48h] [rbp-80h] BYREF long long v10; // [rsp+50h] [rbp-78h] long long v11; // [rsp+58h] [rbp-70h] BYREF void *v12; // [rsp+68h] [rbp-60h] long long v13; // [rsp+70h] [rbp-58h] _QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF v7[0] = v8; std::string::_M_construct<char const*>((long long)v7, "type_error", (long long)""); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2); v12 = v14; v13 = 0LL; LOBYTE(v14[0]) = 0; v5[0] = (char *)v6; v5[1] = 0LL; LOBYTE(v6[0]) = 0; std::string::reserve(v5, v10 + a3[1]); std::string::_M_append(v5, *(_QWORD *)v9, v10); std::string::_M_append(v5, v12, v13); std::string::_M_append(v5, *a3, a3[1]); if ( v12 != v14 ) operator delete(v12, v14[0] + 1LL); if ( *(long long **)v9 != &v11 ) operator delete(*(void **)v9, v11 + 1); if ( v7[0] != v8 ) operator delete(v7[0], v8[0] + 1LL); nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]); *(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::type_error + 2; if ( (_QWORD *)v5[0] != v6 ) operator delete(v5[0], v6[0] + 1LL); return this; }
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R15,RDX MOV EBP,ESI MOV RBX,RDI LEA R13,[RSP + 0x38] MOV qword ptr [R13 + -0x10],R13 LAB_0015e176: LEA RSI,[0x1ebf3a] LEA RDX,[0x1ebf44] LEA RDI,[RSP + 0x28] CALL 0x001214e2 LAB_0015e18e: LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x28] MOV EDX,EBP CALL 0x00158050 LEA R14,[RSP + 0x78] MOV qword ptr [R14 + -0x10],R14 XOR EAX,EAX MOV qword ptr [R14 + -0x8],RAX MOV byte ptr [R14],AL LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 MOV qword ptr [R12 + -0x8],RAX MOV byte ptr [R12],AL MOV RSI,qword ptr [R15 + 0x8] ADD RSI,qword ptr [RSP + 0x50] LAB_0015e1cd: LEA RDI,[RSP + 0x8] CALL 0x0011ad80 MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] LEA RDI,[RSP + 0x8] CALL 0x0011a260 MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] LEA RDI,[RSP + 0x8] CALL 0x0011a260 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] LEA RDI,[RSP + 0x8] CALL 0x0011a260 MOV RDI,qword ptr [RSP + 0x68] CMP RDI,R14 JZ 0x0015e227 MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x0011a8e0 LAB_0015e227: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0015e242 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0011a8e0 LAB_0015e242: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R13 JZ 0x0015e259 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011a8e0 LAB_0015e259: MOV RDX,qword ptr [RSP + 0x8] LAB_0015e25e: MOV RDI,RBX MOV ESI,EBP CALL 0x001582be LAB_0015e268: LEA RAX,[0x228f70] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x0015e28d MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011a8e0 LAB_0015e28d: MOV RAX,RBX ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
exception * _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (exception *param_1,int param_2,ulong *param_3) { char *local_c0; int8 local_b8; char local_b0; int7 uStack_af; long *local_a0 [2]; long local_90 [2]; long *local_80 [2]; long local_70 [2]; int1 *local_60; int8 local_58; int1 local_50; int7 uStack_4f; /* try { // try from 0015e176 to 0015e18d has its CatchHandler @ 0015e2bb */ local_a0[0] = local_90; std::__cxx11::string::_M_construct<char_const*>(local_a0,"type_error",""); /* try { // try from 0015e18e to 0015e19e has its CatchHandler @ 0015e2b6 */ nlohmann::json_abi_v3_11_3::detail::exception::name ((exception *)local_80,(string *)local_a0,param_2); local_58 = 0; local_50 = 0; local_b8 = 0; local_b0 = '\0'; /* try { // try from 0015e1cd to 0015e20f has its CatchHandler @ 0015e2c0 */ local_c0 = &local_b0; local_60 = &local_50; std::__cxx11::string::reserve((ulong)&local_c0); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60); std::__cxx11::string::_M_append((char *)&local_c0,*param_3); if (local_60 != &local_50) { operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1); } if (local_80[0] != local_70) { operator_delete(local_80[0],local_70[0] + 1); } if (local_a0[0] != local_90) { operator_delete(local_a0[0],local_90[0] + 1); } /* try { // try from 0015e25e to 0015e267 has its CatchHandler @ 0015e2a2 */ nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0); *(int ***)param_1 = &PTR__exception_00228f80; if (local_c0 != &local_b0) { operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1); } return param_1; }
44,082
ma_set_share_data_file_length
eloqsql/storage/maria/ma_state.c
void _ma_set_share_data_file_length(MARIA_SHARE *share, ulonglong new_length) { if (!share->internal_table) mysql_mutex_lock(&share->intern_lock); if (share->state.state.data_file_length < new_length) { share->state.state.data_file_length= new_length; if (new_length >= share->base.max_data_file_length) { /* Give an error on next insert */ share->state.changed|= STATE_DATA_FILE_FULL; } } if (!share->internal_table) mysql_mutex_unlock(&share->intern_lock); }
O0
c
ma_set_share_data_file_length: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax cmpb $0x0, 0x7e2(%rax) jne 0x386b9 movq -0x8(%rbp), %rdi addq $0x8f0, %rdi # imm = 0x8F0 leaq 0x11a199(%rip), %rsi # 0x152848 movl $0x313, %edx # imm = 0x313 callq 0x37880 movq -0x8(%rbp), %rax movq 0x40(%rax), %rax cmpq -0x10(%rbp), %rax jae 0x386fc movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x10(%rbp), %rax movq -0x8(%rbp), %rcx cmpq 0x368(%rcx), %rax jb 0x386fa movq -0x8(%rbp), %rax movl 0x170(%rax), %ecx orl $0x1000, %ecx # imm = 0x1000 movl %ecx, 0x170(%rax) jmp 0x386fc movq -0x8(%rbp), %rax cmpb $0x0, 0x7e2(%rax) jne 0x38719 movq -0x8(%rbp), %rdi addq $0x8f0, %rdi # imm = 0x8F0 callq 0x378f0 addq $0x10, %rsp popq %rbp retq nop
_ma_set_share_data_file_length: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] cmp byte ptr [rax+7E2h], 0 jnz short loc_386B9 mov rdi, [rbp+var_8] add rdi, 8F0h lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 313h call inline_mysql_mutex_lock_3 loc_386B9: mov rax, [rbp+var_8] mov rax, [rax+40h] cmp rax, [rbp+var_10] jnb short loc_386FC mov rcx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+40h], rcx mov rax, [rbp+var_10] mov rcx, [rbp+var_8] cmp rax, [rcx+368h] jb short loc_386FA mov rax, [rbp+var_8] mov ecx, [rax+170h] or ecx, 1000h mov [rax+170h], ecx loc_386FA: jmp short $+2 loc_386FC: mov rax, [rbp+var_8] cmp byte ptr [rax+7E2h], 0 jnz short loc_38719 mov rdi, [rbp+var_8] add rdi, 8F0h call inline_mysql_mutex_unlock_3 loc_38719: add rsp, 10h pop rbp retn
long long ma_set_share_data_file_length(long long a1, unsigned long long a2) { long long result; // rax if ( !*(_BYTE *)(a1 + 2018) ) inline_mysql_mutex_lock_3( a1 + 2288, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_state.c", 0x313u); if ( *(_QWORD *)(a1 + 64) < a2 ) { *(_QWORD *)(a1 + 64) = a2; if ( a2 >= *(_QWORD *)(a1 + 872) ) *(_DWORD *)(a1 + 368) |= 0x1000u; } result = a1; if ( !*(_BYTE *)(a1 + 2018) ) return inline_mysql_mutex_unlock_3(a1 + 2288); return result; }
_ma_set_share_data_file_length: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x7e2],0x0 JNZ 0x001386b9 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x8f0 LEA RSI,[0x252848] MOV EDX,0x313 CALL 0x00137880 LAB_001386b9: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x40] CMP RAX,qword ptr [RBP + -0x10] JNC 0x001386fc MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x40],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x368] JC 0x001386fa MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x170] OR ECX,0x1000 MOV dword ptr [RAX + 0x170],ECX LAB_001386fa: JMP 0x001386fc LAB_001386fc: MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x7e2],0x0 JNZ 0x00138719 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x8f0 CALL 0x001378f0 LAB_00138719: ADD RSP,0x10 POP RBP RET
void _ma_set_share_data_file_length(long param_1,ulong param_2) { if (*(char *)(param_1 + 0x7e2) == '\0') { inline_mysql_mutex_lock (param_1 + 0x8f0,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_state.c", 0x313); } if ((*(ulong *)(param_1 + 0x40) < param_2) && (*(ulong *)(param_1 + 0x40) = param_2, *(ulong *)(param_1 + 0x368) <= param_2)) { *(uint *)(param_1 + 0x170) = *(uint *)(param_1 + 0x170) | 0x1000; } if (*(char *)(param_1 + 0x7e2) == '\0') { inline_mysql_mutex_unlock(param_1 + 0x8f0); } return; }
44,083
ma_set_share_data_file_length
eloqsql/storage/maria/ma_state.c
void _ma_set_share_data_file_length(MARIA_SHARE *share, ulonglong new_length) { if (!share->internal_table) mysql_mutex_lock(&share->intern_lock); if (share->state.state.data_file_length < new_length) { share->state.state.data_file_length= new_length; if (new_length >= share->base.max_data_file_length) { /* Give an error on next insert */ share->state.changed|= STATE_DATA_FILE_FULL; } } if (!share->internal_table) mysql_mutex_unlock(&share->intern_lock); }
O3
c
ma_set_share_data_file_length: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx cmpb $0x0, 0x7e2(%rdi) jne 0x39c7c leaq 0x8f0(%rbx), %rdi cmpq $0x0, 0x930(%rbx) jne 0x39cc3 callq 0x29220 cmpq %r14, 0x40(%rbx) jae 0x39c96 movq %r14, 0x40(%rbx) cmpq %r14, 0x368(%rbx) ja 0x39c96 orb $0x10, 0x171(%rbx) cmpb $0x0, 0x7e2(%rbx) je 0x39ca4 popq %rbx popq %r14 popq %rbp retq movq 0x930(%rbx), %rdi addq $0x8f0, %rbx # imm = 0x8F0 testq %rdi, %rdi jne 0x39cd6 movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp 0x291e0 leaq 0xa0d06(%rip), %rsi # 0xda9d0 movl $0x313, %edx # imm = 0x313 callq 0x2eb8f jmp 0x39c7c leaq 0x34e3e3(%rip), %rax # 0x3880c0 movq (%rax), %rax callq *0x160(%rax) jmp 0x39cb7
_ma_set_share_data_file_length: push rbp mov rbp, rsp push r14 push rbx mov r14, rsi mov rbx, rdi cmp byte ptr [rdi+7E2h], 0 jnz short loc_39C7C lea rdi, [rbx+8F0h] cmp qword ptr [rbx+930h], 0 jnz short loc_39CC3 call _pthread_mutex_lock loc_39C7C: cmp [rbx+40h], r14 jnb short loc_39C96 mov [rbx+40h], r14 cmp [rbx+368h], r14 ja short loc_39C96 or byte ptr [rbx+171h], 10h loc_39C96: cmp byte ptr [rbx+7E2h], 0 jz short loc_39CA4 pop rbx pop r14 pop rbp retn loc_39CA4: mov rdi, [rbx+930h] add rbx, 8F0h test rdi, rdi jnz short loc_39CD6 loc_39CB7: mov rdi, rbx pop rbx pop r14 pop rbp jmp _pthread_mutex_unlock loc_39CC3: lea rsi, aWorkspaceLlm4b_28; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 313h call psi_mutex_lock jmp short loc_39C7C loc_39CD6: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_39CB7
long long ma_set_share_data_file_length(long long a1, unsigned long long a2) { long long v3; // rdi long long result; // rax long long v5; // rdi long long v6; // rbx if ( !*(_BYTE *)(a1 + 2018) ) { v3 = a1 + 2288; if ( *(_QWORD *)(a1 + 2352) ) result = psi_mutex_lock(v3, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_state.c", 0x313u); else result = pthread_mutex_lock(v3); } if ( *(_QWORD *)(a1 + 64) < a2 ) { *(_QWORD *)(a1 + 64) = a2; if ( *(_QWORD *)(a1 + 872) <= a2 ) *(_BYTE *)(a1 + 369) |= 0x10u; } if ( !*(_BYTE *)(a1 + 2018) ) { v5 = *(_QWORD *)(a1 + 2352); v6 = a1 + 2288; if ( v5 ) PSI_server[44](); return pthread_mutex_unlock(v6); } return result; }
_ma_set_share_data_file_length: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RSI MOV RBX,RDI CMP byte ptr [RDI + 0x7e2],0x0 JNZ 0x00139c7c LEA RDI,[RBX + 0x8f0] CMP qword ptr [RBX + 0x930],0x0 JNZ 0x00139cc3 CALL 0x00129220 LAB_00139c7c: CMP qword ptr [RBX + 0x40],R14 JNC 0x00139c96 MOV qword ptr [RBX + 0x40],R14 CMP qword ptr [RBX + 0x368],R14 JA 0x00139c96 OR byte ptr [RBX + 0x171],0x10 LAB_00139c96: CMP byte ptr [RBX + 0x7e2],0x0 JZ 0x00139ca4 POP RBX POP R14 POP RBP RET LAB_00139ca4: MOV RDI,qword ptr [RBX + 0x930] ADD RBX,0x8f0 TEST RDI,RDI JNZ 0x00139cd6 LAB_00139cb7: MOV RDI,RBX POP RBX POP R14 POP RBP JMP 0x001291e0 LAB_00139cc3: LEA RSI,[0x1da9d0] MOV EDX,0x313 CALL 0x0012eb8f JMP 0x00139c7c LAB_00139cd6: LEA RAX,[0x4880c0] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00139cb7
void _ma_set_share_data_file_length(long param_1,ulong param_2) { if (*(char *)(param_1 + 0x7e2) == '\0') { if (*(long *)(param_1 + 0x930) == 0) { pthread_mutex_lock((pthread_mutex_t *)(param_1 + 0x8f0)); } else { psi_mutex_lock((pthread_mutex_t *)(param_1 + 0x8f0), "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_state.c",0x313); } } if ((*(ulong *)(param_1 + 0x40) < param_2) && (*(ulong *)(param_1 + 0x40) = param_2, *(ulong *)(param_1 + 0x368) <= param_2)) { *(byte *)(param_1 + 0x171) = *(byte *)(param_1 + 0x171) | 0x10; } if (*(char *)(param_1 + 0x7e2) != '\0') { return; } if (*(long *)(param_1 + 0x930) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)(param_1 + 0x8f0)); return; }
44,084
maria_rtree_set_key_mbr
eloqsql/storage/maria/ma_rt_key.c
int maria_rtree_set_key_mbr(MARIA_HA *info, MARIA_KEY *key, my_off_t child_page) { MARIA_PAGE page; DBUG_ENTER("maria_rtree_set_key_mbr"); if (_ma_fetch_keypage(&page, info, key->keyinfo, child_page, PAGECACHE_LOCK_LEFT_UNLOCKED, DFLT_INIT_HITS, info->buff, 0)) DBUG_RETURN(-1); DBUG_RETURN(maria_rtree_page_mbr(key->keyinfo->seg, &page, key->data, key->data_length)); }
O3
c
maria_rtree_set_key_mbr: pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x38, %rsp movq %rdx, %rcx movq %rsi, %rbx movq %rdi, %rsi movq 0x8(%rbx), %rdx leaq -0x40(%rbp), %rdi xorl %r8d, %r8d movl $0x3, %r9d pushq $0x0 pushq 0x378(%rsi) callq 0x6faae addq $0x10, %rsp movl %eax, %ecx movl $0xffffffff, %eax # imm = 0xFFFFFFFF testb %cl, %cl jne 0x63d94 movq (%rbx), %rdx movq 0x8(%rbx), %rax movq 0xc0(%rax), %rdi movl 0x10(%rbx), %ecx leaq -0x40(%rbp), %rsi callq 0x6613e addq $0x38, %rsp popq %rbx popq %rbp retq nop
maria_rtree_set_key_mbr: push rbp mov rbp, rsp push rbx sub rsp, 38h mov rcx, rdx mov rbx, rsi mov rsi, rdi mov rdx, [rbx+8] lea rdi, [rbp+var_40] xor r8d, r8d mov r9d, 3 push 0 push qword ptr [rsi+378h] call _ma_fetch_keypage add rsp, 10h mov ecx, eax mov eax, 0FFFFFFFFh test cl, cl jnz short loc_63D94 mov rdx, [rbx] mov rax, [rbx+8] mov rdi, [rax+0C0h] mov ecx, [rbx+10h] lea rsi, [rbp+var_40] call maria_rtree_page_mbr loc_63D94: add rsp, 38h pop rbx pop rbp retn
long long maria_rtree_set_key_mbr(long long a1, long long a2, int a3) { char keypage; // cl long long result; // rax _BYTE v5[64]; // [rsp+0h] [rbp-40h] BYREF keypage = ma_fetch_keypage((unsigned int)v5, a1, *(_QWORD *)(a2 + 8), a3, 0, 3, *(_QWORD *)(a1 + 888)); result = 0xFFFFFFFFLL; if ( !keypage ) return maria_rtree_page_mbr(*(_QWORD *)(*(_QWORD *)(a2 + 8) + 192LL), v5, *(_QWORD *)a2, *(unsigned int *)(a2 + 16)); return result; }
maria_rtree_set_key_mbr: PUSH RBP MOV RBP,RSP PUSH RBX SUB RSP,0x38 MOV RCX,RDX MOV RBX,RSI MOV RSI,RDI MOV RDX,qword ptr [RBX + 0x8] LEA RDI,[RBP + -0x40] XOR R8D,R8D MOV R9D,0x3 PUSH 0x0 PUSH qword ptr [RSI + 0x378] CALL 0x0016faae ADD RSP,0x10 MOV ECX,EAX MOV EAX,0xffffffff TEST CL,CL JNZ 0x00163d94 MOV RDX,qword ptr [RBX] MOV RAX,qword ptr [RBX + 0x8] MOV RDI,qword ptr [RAX + 0xc0] MOV ECX,dword ptr [RBX + 0x10] LEA RSI,[RBP + -0x40] CALL 0x0016613e LAB_00163d94: ADD RSP,0x38 POP RBX POP RBP RET
int8 maria_rtree_set_key_mbr(long param_1,int8 *param_2,int8 param_3) { char cVar1; int8 uVar2; int1 local_48 [56]; cVar1 = _ma_fetch_keypage(local_48,param_1,param_2[1],param_3,0,3,*(int8 *)(param_1 + 0x378) ,0); uVar2 = 0xffffffff; if (cVar1 == '\0') { uVar2 = maria_rtree_page_mbr (*(int8 *)(param_2[1] + 0xc0),local_48,*param_2, *(int4 *)(param_2 + 2)); } return uVar2; }
44,085
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
monkey531[P]llama/common/json.hpp
void push_back(const basic_json& val) { // push_back only works for null objects or arrays if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array()))) { JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this)); } // transform null object into an array if (is_null()) { m_data.m_type = value_t::array; m_data.m_value = value_t::array; assert_invariant(); } // add element to array const auto old_capacity = m_data.m_value.array->capacity(); m_data.m_value.array->push_back(val); set_parent(m_data.m_value.array->back(), old_capacity); }
O0
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): subq $0x78, %rsp movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movq 0x70(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0xa1c50 movb %al, %cl movb $0x1, %al testb $0x1, %cl movb %al, 0x1f(%rsp) jne 0x1138c8 movq 0x10(%rsp), %rdi callq 0xa2940 movb %al, 0x1f(%rsp) movb 0x1f(%rsp), %al xorb $-0x1, %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0x1138db jmp 0x113993 movb $0x1, 0x33(%rsp) movl $0x20, %edi callq 0x4f580 movq 0x10(%rsp), %rdi movq %rax, 0x8(%rsp) callq 0xa04a0 movq %rax, 0x40(%rsp) leaq 0xa667e(%rip), %rsi # 0x1b9f83 leaq 0x48(%rsp), %rdi leaq 0x40(%rsp), %rdx callq 0xa03f0 jmp 0x113916 movq 0x10(%rsp), %rcx movq 0x8(%rsp), %rdi movl $0x134, %esi # imm = 0x134 leaq 0x48(%rsp), %rdx callq 0xbb8a0 jmp 0x113931 movq 0x8(%rsp), %rdi movb $0x0, 0x33(%rsp) leaq 0x1207c6(%rip), %rsi # 0x234108 leaq -0x733f9(%rip), %rdx # 0xa0550 callq 0x4f940 jmp 0x113a2a movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) jmp 0x11397b movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) leaq 0x48(%rsp), %rdi callq 0x50100 testb $0x1, 0x33(%rsp) jne 0x113984 jmp 0x11398e movq 0x8(%rsp), %rdi callq 0x4fc70 jmp 0x113a20 movq 0x10(%rsp), %rdi callq 0xa1c50 testb $0x1, %al jne 0x1139a3 jmp 0x1139d2 movq 0x10(%rsp), %rax movb $0x2, (%rax) leaq 0x28(%rsp), %rdi movl $0x2, %esi callq 0xc12b0 movq 0x10(%rsp), %rdi movq 0x28(%rsp), %rax movq %rax, 0x8(%rdi) movl $0x1, %esi callq 0x9f9d0 movq 0x10(%rsp), %rax movq 0x8(%rax), %rdi callq 0xa2c40 movq %rax, %rcx movq 0x10(%rsp), %rax movq %rcx, 0x20(%rsp) movq 0x8(%rax), %rdi movq 0x68(%rsp), %rsi callq 0x11d3c0 movq 0x10(%rsp), %rax movq 0x8(%rax), %rdi callq 0xa28e0 movq 0x10(%rsp), %rdi movq %rax, %rsi movq 0x20(%rsp), %rdx callq 0x11ad10 addq $0x78, %rsp retq movq 0x38(%rsp), %rdi callq 0x4f990 nopw (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSD_: sub rsp, 78h mov qword ptr [rsp+78h+var_8], rdi; char mov qword ptr [rsp+78h+var_10], rsi; int mov rdi, qword ptr [rsp+78h+var_8] mov qword ptr [rsp+78h+var_68], rdi; int call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7is_nullEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_null(void) mov cl, al mov al, 1 test cl, 1 mov [rsp+78h+var_59], al jnz short loc_1138C8 mov rdi, qword ptr [rsp+78h+var_68] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void) mov [rsp+78h+var_59], al loc_1138C8: mov al, [rsp+78h+var_59] xor al, 0FFh xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_1138DB jmp loc_113993 loc_1138DB: mov [rsp+78h+var_45], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rdi, qword ptr [rsp+78h+var_68] mov [rsp+78h+var_70], rax; int call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) mov [rsp+78h+var_38], rax; __int64 lea rsi, aCannotUsePushB; "cannot use push_back() with " lea rdi, [rsp+78h+var_30] lea rdx, [rsp+78h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) jmp short $+2 loc_113916: mov rcx, qword ptr [rsp+78h+var_68] mov rdi, [rsp+78h+var_70]; int mov esi, 134h lea rdx, [rsp+78h+var_30] call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ jmp short $+2 loc_113931: mov rdi, [rsp+78h+var_70]; void * mov [rsp+78h+var_45], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *) call ___cxa_throw jmp loc_113A2A mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax jmp short loc_11397B mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax lea rdi, [rsp+arg_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_11397B: test [rsp+arg_2B], 1 jnz short loc_113984 jmp short loc_11398E loc_113984: mov rdi, [rsp+arg_0]; void * call ___cxa_free_exception loc_11398E: jmp loc_113A20 loc_113993: mov rdi, qword ptr [rsp+78h+var_68] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7is_nullEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_null(void) test al, 1 jnz short loc_1139A3 jmp short loc_1139D2 loc_1139A3: mov rax, qword ptr [rsp+78h+var_68] mov byte ptr [rax], 2 lea rdi, [rsp+78h+var_50]; int mov esi, 2 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_valueC2ENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t) mov rdi, qword ptr [rsp+78h+var_68] mov rax, qword ptr [rsp+78h+var_50] mov [rdi+8], rax mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_1139D2: mov rax, qword ptr [rsp+78h+var_68] mov rdi, [rax+8] call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE8capacityEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::capacity(void) mov rcx, rax mov rax, qword ptr [rsp+78h+var_68] mov [rsp+78h+var_58], rcx mov rdi, [rax+8] mov rsi, qword ptr [rsp+78h+var_10] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backERKSD_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rax, qword ptr [rsp+78h+var_68] mov rdi, [rax+8] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void) mov rdi, qword ptr [rsp+78h+var_68] mov rsi, rax mov rdx, [rsp+78h+var_58] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10set_parentERSD_m; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::set_parent(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&,ulong) add rsp, 78h retn loc_113A20: mov rdi, [rsp+arg_30] call __Unwind_Resume loc_113A2A: nop word ptr [rax+rax+00h]
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back( _BYTE *a1, long long a2) { long long v2; // rax int v4; // [rsp+0h] [rbp-78h] int v5; // [rsp+8h] [rbp-70h] nlohmann::json_abi_v3_11_3::detail::type_error *exception; // [rsp+8h] [rbp-70h] long long v7; // [rsp+10h] [rbp-68h] __int16 v8; // [rsp+18h] [rbp-60h] bool is_array; // [rsp+1Fh] [rbp-59h] long long v10; // [rsp+20h] [rbp-58h] long long v11; // [rsp+20h] [rbp-58h] int v12[2]; // [rsp+28h] [rbp-50h] BYREF char v13; // [rsp+30h] [rbp-48h] char v14; // [rsp+33h] [rbp-45h] long long v15; // [rsp+40h] [rbp-38h] BYREF _BYTE v16[32]; // [rsp+48h] [rbp-30h] BYREF int v17[2]; // [rsp+68h] [rbp-10h] char v18[8]; // [rsp+70h] [rbp-8h] *(_QWORD *)v18 = a1; *(_QWORD *)v17 = a2; v7 = (long long)a1; is_array = 1; if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_null(a1) ) is_array = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(a1); if ( !is_array ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v15 = (long long)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v16, (long long)"cannot use push_back() with ", (long long)&v15); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 308, (long long)v16, (long long)a1); v14 = 0; __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::type_error::~type_error); } if ( nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_null(a1) ) { *a1 = 2; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::json_value( (int)v12, v4, v5, (int)a1, v8, v10, v12[0], v13); *(_QWORD *)(v7 + 8) = *(_QWORD *)v12; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v7); } v11 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::capacity(*(_QWORD **)(v7 + 8)); std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::push_back( *(_QWORD *)(v7 + 8), *(_QWORD *)v17); v2 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back(*(_QWORD *)(v7 + 8)); return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::set_parent( v7, v2, v11); }
44,086
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
monkey531[P]llama/common/json.hpp
void push_back(const basic_json& val) { // push_back only works for null objects or arrays if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array()))) { JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this)); } // transform null object into an array if (is_null()) { m_data.m_type = value_t::array; m_data.m_value = value_t::array; assert_invariant(); } // add element to array const auto old_capacity = m_data.m_value.array->capacity(); m_data.m_value.array->push_back(val); set_parent(m_data.m_value.array->back(), old_capacity); }
O2
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %rbx movq %rdi, %r14 movzbl (%rdi), %eax testl %eax, %eax jne 0x5fb57 movb $0x2, (%r14) callq 0x4863e movq %rax, 0x8(%r14) pushq $0x1 popq %rsi movq %r14, %rdi callq 0x3ccfc jmp 0x5fb5c cmpl $0x2, %eax jne 0x5fb70 movq 0x8(%r14), %rdi movq %rbx, %rsi addq $0x30, %rsp popq %rbx popq %r14 popq %rbp jmp 0x632f0 pushq $0x20 popq %rdi callq 0x20390 movq %rax, %rbx movq %r14, %rdi callq 0x3d1f2 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x328c8(%rip), %rsi # 0x9245a leaq 0x10(%rsp), %rdi callq 0x3d193 movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x134, %esi # imm = 0x134 movq %r14, %rcx callq 0x46780 xorl %ebp, %ebp leaq 0x6f70b(%rip), %rsi # 0xcf2c8 leaq -0x17470(%rip), %rdx # 0x48754 movq %rbx, %rdi callq 0x20b30 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x20d88 testb %bpl, %bpl jne 0x5fbe3 jmp 0x5fbeb movq %rax, %r14 movq %rbx, %rdi callq 0x20510 movq %r14, %rdi callq 0x20b90 nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSD_: push rbp; char push r14; int push rbx; int sub rsp, 30h mov rbx, rsi mov r14, rdi movzx eax, byte ptr [rdi] test eax, eax jnz short loc_5FB57 mov byte ptr [r14], 2 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJEEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>() mov [r14+8], rax push 1 pop rsi mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) jmp short loc_5FB5C loc_5FB57: cmp eax, 2 jnz short loc_5FB70 loc_5FB5C: mov rdi, [r14+8] mov rsi, rbx add rsp, 30h pop rbx pop r14 pop rbp jmp _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backERKSD_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) loc_5FB70: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aCannotUsePushB; "cannot use push_back() with " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 134h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+48h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_5FBE3 jmp short loc_5FBEB mov r14, rax loc_5FBE3: mov rdi, rbx; void * call ___cxa_free_exception loc_5FBEB: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back( long long a1, long long a2) { nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx const char *v4; // [rsp+8h] [rbp-40h] BYREF _BYTE v5[56]; // [rsp+10h] [rbp-38h] BYREF if ( *(_BYTE *)a1 ) { if ( *(_BYTE *)a1 != 2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v4 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v5, (long long)"cannot use push_back() with ", (long long)&v4); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 308, (long long)v5); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } } else { *(_BYTE *)a1 = 2; *(_QWORD *)(a1 + 8) = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); } return std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::push_back( *(_QWORD *)(a1 + 8), a2); }
push_back: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV RBX,RSI MOV R14,RDI MOVZX EAX,byte ptr [RDI] TEST EAX,EAX JNZ 0x0015fb57 MOV byte ptr [R14],0x2 CALL 0x0014863e MOV qword ptr [R14 + 0x8],RAX PUSH 0x1 POP RSI MOV RDI,R14 CALL 0x0013ccfc JMP 0x0015fb5c LAB_0015fb57: CMP EAX,0x2 JNZ 0x0015fb70 LAB_0015fb5c: MOV RDI,qword ptr [R14 + 0x8] MOV RSI,RBX ADD RSP,0x30 POP RBX POP R14 POP RBP JMP 0x001632f0 LAB_0015fb70: PUSH 0x20 POP RDI CALL 0x00120390 MOV RBX,RAX MOV RDI,R14 CALL 0x0013d1f2 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_0015fb8b: LEA RSI,[0x19245a] LEA RDI,[RSP + 0x10] CALL 0x0013d193 MOV BPL,0x1 LAB_0015fb9f: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x134 MOV RCX,R14 CALL 0x00146780 XOR EBP,EBP LEA RSI,[0x1cf2c8] LEA RDX,[0x148754] MOV RDI,RBX CALL 0x00120b30
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&) */ void __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::push_back(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,basic_json *param_1) { vector *pvVar1; int8 uVar2; char *local_40; detail local_38 [32]; if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x0) { *this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2; pvVar1 = create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> (); *(vector **)(this + 8) = pvVar1; assert_invariant(SUB81(this,0)); } else if (*this != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2) { uVar2 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name(this); /* try { // try from 0015fb8b to 0015fb9b has its CatchHandler @ 0015fbe0 */ detail::concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"cannot use push_back() with ",&local_40); /* try { // try from 0015fb9f to 0015fbcb has its CatchHandler @ 0015fbcc */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar2,0x134,local_38,this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception); } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::push_back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(this + 8),param_1); return; }
44,087
my_wc_mb_eucjpms
eloqsql/strings/ctype-eucjpms.c
static int my_wc_mb_eucjpms(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { int jp; if ((int) wc < 0x80) /* ASCII [00-7F] */ { if (s >= e) return MY_CS_TOOSMALL; *s= (uchar) wc; return 1; } if (wc > 0xFFFF) return MY_CS_ILUNI; if ((jp= unicode_to_jisx0208_eucjpms[wc])) /* JIS-X-0208 MS */ { if (s + 2 > e) return MY_CS_TOOSMALL2; MY_PUT_MB2(s, jp); return 2; } if ((jp= unicode_to_jisx0212_eucjpms[wc])) /* JIS-X-0212 MS */ { if (s + 3 > e) return MY_CS_TOOSMALL3; s[0]= 0x8F; MY_PUT_MB2(s + 1, jp); return 3; } if (wc >= 0xFF61 && wc <= 0xFF9F) /* Half width Katakana */ { if (s + 2 > e) return MY_CS_TOOSMALL2; s[0]= 0x8E; s[1]= (uchar) (wc - 0xFEC0); return 2; } return MY_CS_ILUNI; }
O0
c
my_wc_mb_eucjpms: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x18(%rbp), %rax cmpl $0x80, %eax jge 0x8c37d movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x8c365 movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x8c4a5 movq -0x18(%rbp), %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl $0x1, -0x4(%rbp) jmp 0x8c4a5 cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF jbe 0x8c393 movl $0x0, -0x4(%rbp) jmp 0x8c4a5 movq -0x18(%rbp), %rcx leaq 0x202072(%rip), %rax # 0x28e410 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax je 0x8c3ef movq -0x20(%rbp), %rax addq $0x2, %rax cmpq -0x28(%rbp), %rax jbe 0x8c3c4 movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A jmp 0x8c4a5 movl -0x2c(%rbp), %eax sarl $0x8, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl -0x2c(%rbp), %eax andl $0xff, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x1(%rax) movl $0x2, -0x4(%rbp) jmp 0x8c4a5 movq -0x18(%rbp), %rcx leaq 0x222016(%rip), %rax # 0x2ae410 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax je 0x8c450 movq -0x20(%rbp), %rax addq $0x3, %rax cmpq -0x28(%rbp), %rax jbe 0x8c420 movl $0xffffff99, -0x4(%rbp) # imm = 0xFFFFFF99 jmp 0x8c4a5 movq -0x20(%rbp), %rax movb $-0x71, (%rax) movl -0x2c(%rbp), %eax sarl $0x8, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x1(%rax) movl -0x2c(%rbp), %eax andl $0xff, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x2(%rax) movl $0x3, -0x4(%rbp) jmp 0x8c4a5 cmpq $0xff61, -0x18(%rbp) # imm = 0xFF61 jb 0x8c49e cmpq $0xff9f, -0x18(%rbp) # imm = 0xFF9F ja 0x8c49e movq -0x20(%rbp), %rax addq $0x2, %rax cmpq -0x28(%rbp), %rax jbe 0x8c47b movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A jmp 0x8c4a5 movq -0x20(%rbp), %rax movb $-0x72, (%rax) movq -0x18(%rbp), %rax subq $0xfec0, %rax # imm = 0xFEC0 movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x1(%rax) movl $0x2, -0x4(%rbp) jmp 0x8c4a5 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw (%rax,%rax)
my_wc_mb_eucjpms: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_18] cmp eax, 80h jge short loc_8C37D mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_8C365 mov [rbp+var_4], 0FFFFFF9Bh jmp loc_8C4A5 loc_8C365: mov rax, [rbp+var_18] mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov [rbp+var_4], 1 jmp loc_8C4A5 loc_8C37D: cmp [rbp+var_18], 0FFFFh jbe short loc_8C393 mov [rbp+var_4], 0 jmp loc_8C4A5 loc_8C393: mov rcx, [rbp+var_18] lea rax, unicode_to_jisx0208_eucjpms movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jz short loc_8C3EF mov rax, [rbp+var_20] add rax, 2 cmp rax, [rbp+var_28] jbe short loc_8C3C4 mov [rbp+var_4], 0FFFFFF9Ah jmp loc_8C4A5 loc_8C3C4: mov eax, [rbp+var_2C] sar eax, 8 mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov eax, [rbp+var_2C] and eax, 0FFh mov cl, al mov rax, [rbp+var_20] mov [rax+1], cl mov [rbp+var_4], 2 jmp loc_8C4A5 loc_8C3EF: mov rcx, [rbp+var_18] lea rax, unicode_to_jisx0212_eucjpms movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jz short loc_8C450 mov rax, [rbp+var_20] add rax, 3 cmp rax, [rbp+var_28] jbe short loc_8C420 mov [rbp+var_4], 0FFFFFF99h jmp loc_8C4A5 loc_8C420: mov rax, [rbp+var_20] mov byte ptr [rax], 8Fh mov eax, [rbp+var_2C] sar eax, 8 mov cl, al mov rax, [rbp+var_20] mov [rax+1], cl mov eax, [rbp+var_2C] and eax, 0FFh mov cl, al mov rax, [rbp+var_20] mov [rax+2], cl mov [rbp+var_4], 3 jmp short loc_8C4A5 loc_8C450: cmp [rbp+var_18], 0FF61h jb short loc_8C49E cmp [rbp+var_18], 0FF9Fh ja short loc_8C49E mov rax, [rbp+var_20] add rax, 2 cmp rax, [rbp+var_28] jbe short loc_8C47B mov [rbp+var_4], 0FFFFFF9Ah jmp short loc_8C4A5 loc_8C47B: mov rax, [rbp+var_20] mov byte ptr [rax], 8Eh mov rax, [rbp+var_18] sub rax, 0FEC0h mov cl, al mov rax, [rbp+var_20] mov [rax+1], cl mov [rbp+var_4], 2 jmp short loc_8C4A5 loc_8C49E: mov [rbp+var_4], 0 loc_8C4A5: mov eax, [rbp+var_4] pop rbp retn
long long my_wc_mb_eucjpms(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4) { __int16 v5; // [rsp+0h] [rbp-2Ch] __int16 v6; // [rsp+0h] [rbp-2Ch] if ( (int)a2 >= 128 ) { if ( a2 <= 0xFFFF ) { v5 = unicode_to_jisx0208_eucjpms[a2]; if ( v5 ) { if ( (unsigned long long)(a3 + 2) <= a4 ) { *a3 = HIBYTE(v5); a3[1] = v5; return 2; } else { return (unsigned int)-102; } } else { v6 = unicode_to_jisx0212_eucjpms[a2]; if ( v6 ) { if ( (unsigned long long)(a3 + 3) <= a4 ) { *a3 = -113; a3[1] = HIBYTE(v6); a3[2] = v6; return 3; } else { return (unsigned int)-103; } } else if ( a2 < 0xFF61 || a2 > 0xFF9F ) { return 0; } else if ( (unsigned long long)(a3 + 2) <= a4 ) { *a3 = -114; a3[1] = a2 + 64; return 2; } else { return (unsigned int)-102; } } } else { return 0; } } else if ( (unsigned long long)a3 < a4 ) { *a3 = a2; return 1; } else { return (unsigned int)-101; } }
my_wc_mb_eucjpms: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x18] CMP EAX,0x80 JGE 0x0018c37d MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x0018c365 MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x0018c4a5 LAB_0018c365: MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x1 JMP 0x0018c4a5 LAB_0018c37d: CMP qword ptr [RBP + -0x18],0xffff JBE 0x0018c393 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0018c4a5 LAB_0018c393: MOV RCX,qword ptr [RBP + -0x18] LEA RAX,[0x38e410] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JZ 0x0018c3ef MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x28] JBE 0x0018c3c4 MOV dword ptr [RBP + -0x4],0xffffff9a JMP 0x0018c4a5 LAB_0018c3c4: MOV EAX,dword ptr [RBP + -0x2c] SAR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV EAX,dword ptr [RBP + -0x2c] AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x1],CL MOV dword ptr [RBP + -0x4],0x2 JMP 0x0018c4a5 LAB_0018c3ef: MOV RCX,qword ptr [RBP + -0x18] LEA RAX,[0x3ae410] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JZ 0x0018c450 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x3 CMP RAX,qword ptr [RBP + -0x28] JBE 0x0018c420 MOV dword ptr [RBP + -0x4],0xffffff99 JMP 0x0018c4a5 LAB_0018c420: MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],0x8f MOV EAX,dword ptr [RBP + -0x2c] SAR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x1],CL MOV EAX,dword ptr [RBP + -0x2c] AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x2],CL MOV dword ptr [RBP + -0x4],0x3 JMP 0x0018c4a5 LAB_0018c450: CMP qword ptr [RBP + -0x18],0xff61 JC 0x0018c49e CMP qword ptr [RBP + -0x18],0xff9f JA 0x0018c49e MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x28] JBE 0x0018c47b MOV dword ptr [RBP + -0x4],0xffffff9a JMP 0x0018c4a5 LAB_0018c47b: MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],0x8e MOV RAX,qword ptr [RBP + -0x18] SUB RAX,0xfec0 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x1],CL MOV dword ptr [RBP + -0x4],0x2 JMP 0x0018c4a5 LAB_0018c49e: MOV dword ptr [RBP + -0x4],0x0 LAB_0018c4a5: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_wc_mb_eucjpms(int8 param_1,ulong param_2,char *param_3,char *param_4) { short sVar1; int4 local_c; if ((int)param_2 < 0x80) { if (param_3 < param_4) { *param_3 = (char)param_2; local_c = 1; } else { local_c = 0xffffff9b; } } else if (param_2 < 0x10000) { sVar1 = *(short *)(unicode_to_jisx0208_eucjpms + param_2 * 2); if (sVar1 == 0) { sVar1 = *(short *)(unicode_to_jisx0212_eucjpms + param_2 * 2); if (sVar1 == 0) { if ((param_2 < 0xff61) || (0xff9f < param_2)) { local_c = 0; } else if (param_4 < param_3 + 2) { local_c = 0xffffff9a; } else { *param_3 = -0x72; param_3[1] = (char)param_2 + '@'; local_c = 2; } } else if (param_4 < param_3 + 3) { local_c = 0xffffff99; } else { *param_3 = -0x71; param_3[1] = (char)((ushort)sVar1 >> 8); param_3[2] = (char)sVar1; local_c = 3; } } else if (param_4 < param_3 + 2) { local_c = 0xffffff9a; } else { *param_3 = (char)((ushort)sVar1 >> 8); param_3[1] = (char)sVar1; local_c = 2; } } else { local_c = 0; } return local_c; }
44,088
ast_create_lambda
tsotchke[P]eshkol/src/frontend/ast/create/ast_create.c
AstNode* ast_create_lambda(Arena* arena, Parameter** params, size_t param_count, Type* return_type, AstNode* body, size_t line, size_t column) { AstNode* node = ast_create_node(arena, AST_LAMBDA, line, column); if (!node) { return NULL; } node->as.lambda.params = params; node->as.lambda.param_count = param_count; node->as.lambda.return_type = return_type; node->as.lambda.body = body; return node; }
O0
c
ast_create_lambda: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq 0x10(%rbp), %rax movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rdx movq 0x10(%rbp), %rcx movl $0x8, %esi callq 0x5160 movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) jne 0x585f movq $0x0, -0x8(%rbp) jmp 0x5897 movq -0x18(%rbp), %rcx movq -0x40(%rbp), %rax movq %rcx, 0x48(%rax) movq -0x20(%rbp), %rcx movq -0x40(%rbp), %rax movq %rcx, 0x50(%rax) movq -0x28(%rbp), %rcx movq -0x40(%rbp), %rax movq %rcx, 0x58(%rax) movq -0x30(%rbp), %rcx movq -0x40(%rbp), %rax movq %rcx, 0x60(%rax) movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ast_create_lambda: push rbp mov rbp, rsp sub rsp, 40h mov rax, [rbp+arg_0] mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rdi, [rbp+var_10] mov rdx, [rbp+var_38] mov rcx, [rbp+arg_0] mov esi, 8 call ast_create_node mov [rbp+var_40], rax cmp [rbp+var_40], 0 jnz short loc_585F mov [rbp+var_8], 0 jmp short loc_5897 loc_585F: mov rcx, [rbp+var_18] mov rax, [rbp+var_40] mov [rax+48h], rcx mov rcx, [rbp+var_20] mov rax, [rbp+var_40] mov [rax+50h], rcx mov rcx, [rbp+var_28] mov rax, [rbp+var_40] mov [rax+58h], rcx mov rcx, [rbp+var_30] mov rax, [rbp+var_40] mov [rax+60h], rcx mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_5897: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
_QWORD * ast_create_lambda( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, long long a7) { _QWORD *node; // [rsp+0h] [rbp-40h] node = (_QWORD *)ast_create_node(a1, 8, a6, a7); if ( !node ) return 0LL; node[9] = a2; node[10] = a3; node[11] = a4; node[12] = a5; return node; }
ast_create_lambda: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + 0x10] MOV ESI,0x8 CALL 0x00105160 MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],0x0 JNZ 0x0010585f MOV qword ptr [RBP + -0x8],0x0 JMP 0x00105897 LAB_0010585f: MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x48],RCX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x50],RCX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x58],RCX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x60],RCX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_00105897: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
long ast_create_lambda(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7) { int8 local_10; local_10 = ast_create_node(param_1,8,param_6,param_7); if (local_10 == 0) { local_10 = 0; } else { *(int8 *)(local_10 + 0x48) = param_2; *(int8 *)(local_10 + 0x50) = param_3; *(int8 *)(local_10 + 0x58) = param_4; *(int8 *)(local_10 + 0x60) = param_5; } return local_10; }
44,089
stmt_cursor_fetch
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
static int stmt_cursor_fetch(MYSQL_STMT *stmt, uchar **row) { uchar buf[STMT_ID_LENGTH + 4]; MYSQL_DATA *result= &stmt->result; if (stmt->state < MYSQL_STMT_USE_OR_STORE_CALLED) { SET_CLIENT_STMT_ERROR(stmt, CR_COMMANDS_OUT_OF_SYNC, SQLSTATE_UNKNOWN, 0); return(1); } /* do we have some prefetched rows available ? */ if (stmt->result_cursor) return(stmt_buffered_fetch(stmt, row)); if (stmt->upsert_status.server_status & SERVER_STATUS_LAST_ROW_SENT) stmt->upsert_status.server_status&= ~SERVER_STATUS_LAST_ROW_SENT; else { int4store(buf, stmt->stmt_id); int4store(buf + STMT_ID_LENGTH, stmt->prefetch_rows); if (stmt->mysql->methods->db_command(stmt->mysql, COM_STMT_FETCH, (char *)buf, sizeof(buf), 1, stmt)) { UPDATE_STMT_ERROR(stmt); return(1); } /* free previously allocated buffer */ ma_free_root(&result->alloc, MYF(MY_KEEP_PREALLOC)); result->data= 0; result->rows= 0; if (!stmt->mysql->options.extension->skip_read_response) { if (stmt->mysql->methods->db_stmt_read_all_rows(stmt)) return(1); return(stmt_buffered_fetch(stmt, row)); } } /* no more cursor data available */ *row= NULL; return(MYSQL_NO_DATA); }
O0
c
stmt_cursor_fetch: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x20(%rbp) movq %rsi, -0x28(%rbp) movq -0x20(%rbp), %rax addq $0x80, %rax movq %rax, -0x30(%rbp) movq -0x20(%rbp), %rax cmpl $0x4, 0x50(%rax) jae 0x26596 jmp 0x26527 movq -0x20(%rbp), %rax movl $0x7de, 0x108(%rax) # imm = 0x7DE movq -0x20(%rbp), %rdi addq $0x30d, %rdi # imm = 0x30D leaq 0x399c9(%rip), %rax # 0x5ff10 movq (%rax), %rsi movl $0x5, %edx callq 0x13210 movq -0x20(%rbp), %rax movb $0x0, 0x312(%rax) movq -0x20(%rbp), %rdi addq $0x10c, %rdi # imm = 0x10C leaq 0x399af(%rip), %rax # 0x5ff20 movq 0x70(%rax), %rsi movl $0x200, %edx # imm = 0x200 callq 0x13210 movq -0x20(%rbp), %rax movb $0x0, 0x30b(%rax) movl $0x1, -0x14(%rbp) jmp 0x26802 movq -0x20(%rbp), %rax cmpq $0x0, 0xe0(%rax) je 0x265b9 movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rsi callq 0x2b3b0 movl %eax, -0x14(%rbp) jmp 0x26802 movq -0x20(%rbp), %rax movl 0xf4(%rax), %eax andl $0x80, %eax cmpl $0x0, %eax je 0x265e8 movq -0x20(%rbp), %rax movl 0xf4(%rax), %ecx andl $0xffffff7f, %ecx # imm = 0xFFFFFF7F movl %ecx, 0xf4(%rax) jmp 0x267f0 jmp 0x265ea movq -0x20(%rbp), %rax movq 0x40(%rax), %rax movb %al, -0x10(%rbp) movq -0x20(%rbp), %rax movq 0x40(%rax), %rax shrq $0x8, %rax movb %al, -0xf(%rbp) movq -0x20(%rbp), %rax movq 0x40(%rax), %rax shrq $0x10, %rax movb %al, -0xe(%rbp) movq -0x20(%rbp), %rax movq 0x40(%rax), %rax shrq $0x18, %rax movb %al, -0xd(%rbp) jmp 0x26624 movq -0x20(%rbp), %rax movq 0x318(%rax), %rax movb %al, -0xc(%rbp) movq -0x20(%rbp), %rax movq 0x318(%rax), %rax shrq $0x8, %rax movb %al, -0xb(%rbp) movq -0x20(%rbp), %rax movq 0x318(%rax), %rax shrq $0x10, %rax movb %al, -0xa(%rbp) movq -0x20(%rbp), %rax movq 0x318(%rax), %rax shrq $0x18, %rax movb %al, -0x9(%rbp) movq -0x20(%rbp), %rax movq 0x38(%rax), %rax movq 0x4d0(%rax), %rax movq 0x10(%rax), %rax movq -0x20(%rbp), %rcx movq 0x38(%rcx), %rdi leaq -0x10(%rbp), %rdx movq -0x20(%rbp), %r9 movl $0x1c, %esi movl $0x8, %ecx movl $0x1, %r8d callq *%rax cmpl $0x0, %eax je 0x26774 jmp 0x266a8 movq -0x20(%rbp), %rax movq 0x38(%rax), %rax movl 0x90(%rax), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x108(%rax) movq -0x20(%rbp), %rdi addq $0x30d, %rdi # imm = 0x30D movq -0x20(%rbp), %rax movq 0x38(%rax), %rsi addq $0x297, %rsi # imm = 0x297 movl $0x5, %edx callq 0x13210 movq -0x20(%rbp), %rax movb $0x0, 0x312(%rax) movq -0x20(%rbp), %rax addq $0x10c, %rax # imm = 0x10C movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rax movq 0x38(%rax), %rax addq $0x97, %rax cmpq $0x0, %rax je 0x26725 movq -0x20(%rbp), %rax movq 0x38(%rax), %rax addq $0x97, %rax movq %rax, -0x40(%rbp) jmp 0x2674b movq -0x20(%rbp), %rax movq 0x38(%rax), %rax movl 0x90(%rax), %eax subl $0x7d0, %eax # imm = 0x7D0 movl %eax, %eax movl %eax, %ecx leaq 0x397dd(%rip), %rax # 0x5ff20 movq (%rax,%rcx,8), %rax movq %rax, -0x40(%rbp) movq -0x38(%rbp), %rdi movq -0x40(%rbp), %rsi movl $0x200, %edx # imm = 0x200 callq 0x13210 movq -0x20(%rbp), %rax movb $0x0, 0x30b(%rax) movl $0x1, -0x14(%rbp) jmp 0x26802 movq -0x30(%rbp), %rdi addq $0x10, %rdi movl $0x1, %esi callq 0x24d40 movq -0x30(%rbp), %rax movq $0x0, (%rax) movq -0x30(%rbp), %rax movq $0x0, 0x48(%rax) movq -0x20(%rbp), %rax movq 0x38(%rax), %rax movq 0x480(%rax), %rax cmpb $0x0, 0x148(%rax) jne 0x267ee movq -0x20(%rbp), %rax movq 0x38(%rax), %rax movq 0x4d0(%rax), %rax movq 0x60(%rax), %rax movq -0x20(%rbp), %rdi callq *%rax cmpl $0x0, %eax je 0x267dc movl $0x1, -0x14(%rbp) jmp 0x26802 movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rsi callq 0x2b3b0 movl %eax, -0x14(%rbp) jmp 0x26802 jmp 0x267f0 movq -0x28(%rbp), %rax movq $0x0, (%rax) movl $0x64, -0x14(%rbp) movl -0x14(%rbp), %eax movl %eax, -0x44(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x26823 movl -0x44(%rbp), %eax addq $0x50, %rsp popq %rbp retq callq 0x134b0 nopl (%rax,%rax)
stmt_cursor_fetch: push rbp mov rbp, rsp sub rsp, 50h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_20], rdi mov [rbp+var_28], rsi mov rax, [rbp+var_20] add rax, 80h mov [rbp+var_30], rax mov rax, [rbp+var_20] cmp dword ptr [rax+50h], 4 jnb short loc_26596 jmp short $+2 loc_26527: mov rax, [rbp+var_20] mov dword ptr [rax+108h], 7DEh mov rdi, [rbp+var_20] add rdi, 30Dh lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [rbp+var_20] mov byte ptr [rax+312h], 0 mov rdi, [rbp+var_20] add rdi, 10Ch lea rax, client_errors mov rsi, [rax+70h] mov edx, 200h call _strncpy mov rax, [rbp+var_20] mov byte ptr [rax+30Bh], 0 mov [rbp+var_14], 1 jmp loc_26802 loc_26596: mov rax, [rbp+var_20] cmp qword ptr [rax+0E0h], 0 jz short loc_265B9 mov rdi, [rbp+var_20] mov rsi, [rbp+var_28] call stmt_buffered_fetch mov [rbp+var_14], eax jmp loc_26802 loc_265B9: mov rax, [rbp+var_20] mov eax, [rax+0F4h] and eax, 80h cmp eax, 0 jz short loc_265E8 mov rax, [rbp+var_20] mov ecx, [rax+0F4h] and ecx, 0FFFFFF7Fh mov [rax+0F4h], ecx jmp loc_267F0 loc_265E8: jmp short $+2 loc_265EA: mov rax, [rbp+var_20] mov rax, [rax+40h] mov [rbp+var_10], al mov rax, [rbp+var_20] mov rax, [rax+40h] shr rax, 8 mov [rbp+var_F], al mov rax, [rbp+var_20] mov rax, [rax+40h] shr rax, 10h mov [rbp+var_E], al mov rax, [rbp+var_20] mov rax, [rax+40h] shr rax, 18h mov [rbp+var_D], al jmp short $+2 loc_26624: mov rax, [rbp+var_20] mov rax, [rax+318h] mov [rbp+var_C], al mov rax, [rbp+var_20] mov rax, [rax+318h] shr rax, 8 mov [rbp+var_B], al mov rax, [rbp+var_20] mov rax, [rax+318h] shr rax, 10h mov [rbp+var_A], al mov rax, [rbp+var_20] mov rax, [rax+318h] shr rax, 18h mov [rbp+var_9], al mov rax, [rbp+var_20] mov rax, [rax+38h] mov rax, [rax+4D0h] mov rax, [rax+10h] mov rcx, [rbp+var_20] mov rdi, [rcx+38h] lea rdx, [rbp+var_10] mov r9, [rbp+var_20] mov esi, 1Ch mov ecx, 8 mov r8d, 1 call rax cmp eax, 0 jz loc_26774 jmp short $+2 loc_266A8: mov rax, [rbp+var_20] mov rax, [rax+38h] mov ecx, [rax+90h] mov rax, [rbp+var_20] mov [rax+108h], ecx mov rdi, [rbp+var_20] add rdi, 30Dh mov rax, [rbp+var_20] mov rsi, [rax+38h] add rsi, 297h mov edx, 5 call _strncpy mov rax, [rbp+var_20] mov byte ptr [rax+312h], 0 mov rax, [rbp+var_20] add rax, 10Ch mov [rbp+var_38], rax mov rax, [rbp+var_20] mov rax, [rax+38h] add rax, 97h cmp rax, 0 jz short loc_26725 mov rax, [rbp+var_20] mov rax, [rax+38h] add rax, 97h mov [rbp+var_40], rax jmp short loc_2674B loc_26725: mov rax, [rbp+var_20] mov rax, [rax+38h] mov eax, [rax+90h] sub eax, 7D0h mov eax, eax mov ecx, eax lea rax, client_errors mov rax, [rax+rcx*8] mov [rbp+var_40], rax loc_2674B: mov rdi, [rbp+var_38] mov rsi, [rbp+var_40] mov edx, 200h call _strncpy mov rax, [rbp+var_20] mov byte ptr [rax+30Bh], 0 mov [rbp+var_14], 1 jmp loc_26802 loc_26774: mov rdi, [rbp+var_30] add rdi, 10h mov esi, 1 call ma_free_root mov rax, [rbp+var_30] mov qword ptr [rax], 0 mov rax, [rbp+var_30] mov qword ptr [rax+48h], 0 mov rax, [rbp+var_20] mov rax, [rax+38h] mov rax, [rax+480h] cmp byte ptr [rax+148h], 0 jnz short loc_267EE mov rax, [rbp+var_20] mov rax, [rax+38h] mov rax, [rax+4D0h] mov rax, [rax+60h] mov rdi, [rbp+var_20] call rax cmp eax, 0 jz short loc_267DC mov [rbp+var_14], 1 jmp short loc_26802 loc_267DC: mov rdi, [rbp+var_20] mov rsi, [rbp+var_28] call stmt_buffered_fetch mov [rbp+var_14], eax jmp short loc_26802 loc_267EE: jmp short $+2 loc_267F0: mov rax, [rbp+var_28] mov qword ptr [rax], 0 mov [rbp+var_14], 64h ; 'd' loc_26802: mov eax, [rbp+var_14] mov [rbp+var_44], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_26823 mov eax, [rbp+var_44] add rsp, 50h pop rbp retn loc_26823: call ___stack_chk_fail
long long stmt_cursor_fetch(long long a1, _QWORD *a2) { char *v2; // rax _BYTE v5[8]; // [rsp+40h] [rbp-10h] BYREF unsigned long long v6; // [rsp+48h] [rbp-8h] v6 = __readfsqword(0x28u); if ( *(_DWORD *)(a1 + 80) < 4u ) { *(_DWORD *)(a1 + 264) = 2014; strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(a1 + 786) = 0; strncpy(a1 + 268, client_errors[14], 512LL); *(_BYTE *)(a1 + 779) = 0; return 1; } if ( *(_QWORD *)(a1 + 224) ) return (unsigned int)stmt_buffered_fetch(a1, a2); if ( (*(_DWORD *)(a1 + 244) & 0x80) != 0 ) { *(_DWORD *)(a1 + 244) &= ~0x80u; LABEL_16: *a2 = 0LL; return 100; } v5[0] = *(_QWORD *)(a1 + 64); v5[1] = BYTE1(*(_QWORD *)(a1 + 64)); v5[2] = BYTE2(*(_QWORD *)(a1 + 64)); v5[3] = BYTE3(*(_QWORD *)(a1 + 64)); v5[4] = *(_QWORD *)(a1 + 792); v5[5] = BYTE1(*(_QWORD *)(a1 + 792)); v5[6] = BYTE2(*(_QWORD *)(a1 + 792)); v5[7] = BYTE3(*(_QWORD *)(a1 + 792)); if ( (*(unsigned int ( **)(_QWORD, long long, _BYTE *, long long, long long, long long))(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1232LL) + 16LL))( *(_QWORD *)(a1 + 56), 28LL, v5, 8LL, 1LL, a1) ) { *(_DWORD *)(a1 + 264) = *(_DWORD *)(*(_QWORD *)(a1 + 56) + 144LL); strncpy(a1 + 781, *(_QWORD *)(a1 + 56) + 663LL, 5LL); *(_BYTE *)(a1 + 786) = 0; if ( *(_QWORD *)(a1 + 56) == -151LL ) v2 = client_errors[*(_DWORD *)(*(_QWORD *)(a1 + 56) + 144LL) - 2000]; else v2 = (char *)(*(_QWORD *)(a1 + 56) + 151LL); strncpy(a1 + 268, v2, 512LL); *(_BYTE *)(a1 + 779) = 0; return 1; } else { ma_free_root((_QWORD *)(a1 + 144), 1); *(_QWORD *)(a1 + 128) = 0LL; *(_QWORD *)(a1 + 200) = 0LL; if ( *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1152LL) + 328LL) ) goto LABEL_16; if ( (*(unsigned int ( **)(long long))(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1232LL) + 96LL))(a1) ) return 1; else return (unsigned int)stmt_buffered_fetch(a1, a2); } }
stmt_cursor_fetch: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x20],RDI MOV qword ptr [RBP + -0x28],RSI MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x80 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX + 0x50],0x4 JNC 0x00126596 JMP 0x00126527 LAB_00126527: MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x108],0x7de MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x30d LEA RAX,[0x15ff10] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x312],0x0 MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x10c LEA RAX,[0x15ff20] MOV RSI,qword ptr [RAX + 0x70] MOV EDX,0x200 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x30b],0x0 MOV dword ptr [RBP + -0x14],0x1 JMP 0x00126802 LAB_00126596: MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX + 0xe0],0x0 JZ 0x001265b9 MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x28] CALL 0x0012b3b0 MOV dword ptr [RBP + -0x14],EAX JMP 0x00126802 LAB_001265b9: MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0xf4] AND EAX,0x80 CMP EAX,0x0 JZ 0x001265e8 MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX + 0xf4] AND ECX,0xffffff7f MOV dword ptr [RAX + 0xf4],ECX JMP 0x001267f0 LAB_001265e8: JMP 0x001265ea LAB_001265ea: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x40] MOV byte ptr [RBP + -0x10],AL MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x40] SHR RAX,0x8 MOV byte ptr [RBP + -0xf],AL MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x40] SHR RAX,0x10 MOV byte ptr [RBP + -0xe],AL MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x40] SHR RAX,0x18 MOV byte ptr [RBP + -0xd],AL JMP 0x00126624 LAB_00126624: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x318] MOV byte ptr [RBP + -0xc],AL MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x318] SHR RAX,0x8 MOV byte ptr [RBP + -0xb],AL MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x318] SHR RAX,0x10 MOV byte ptr [RBP + -0xa],AL MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x318] SHR RAX,0x18 MOV byte ptr [RBP + -0x9],AL MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x38] MOV RAX,qword ptr [RAX + 0x4d0] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x20] MOV RDI,qword ptr [RCX + 0x38] LEA RDX,[RBP + -0x10] MOV R9,qword ptr [RBP + -0x20] MOV ESI,0x1c MOV ECX,0x8 MOV R8D,0x1 CALL RAX CMP EAX,0x0 JZ 0x00126774 JMP 0x001266a8 LAB_001266a8: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x38] MOV ECX,dword ptr [RAX + 0x90] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x108],ECX MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x30d MOV RAX,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RAX + 0x38] ADD RSI,0x297 MOV EDX,0x5 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x312],0x0 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x10c MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x38] ADD RAX,0x97 CMP RAX,0x0 JZ 0x00126725 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x38] ADD RAX,0x97 MOV qword ptr [RBP + -0x40],RAX JMP 0x0012674b LAB_00126725: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x38] MOV EAX,dword ptr [RAX + 0x90] SUB EAX,0x7d0 MOV EAX,EAX MOV ECX,EAX LEA RAX,[0x15ff20] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x40],RAX LAB_0012674b: MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x40] MOV EDX,0x200 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x30b],0x0 MOV dword ptr [RBP + -0x14],0x1 JMP 0x00126802 LAB_00126774: MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x10 MOV ESI,0x1 CALL 0x00124d40 MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0x48],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x38] MOV RAX,qword ptr [RAX + 0x480] CMP byte ptr [RAX + 0x148],0x0 JNZ 0x001267ee MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x38] MOV RAX,qword ptr [RAX + 0x4d0] MOV RAX,qword ptr [RAX + 0x60] MOV RDI,qword ptr [RBP + -0x20] CALL RAX CMP EAX,0x0 JZ 0x001267dc MOV dword ptr [RBP + -0x14],0x1 JMP 0x00126802 LAB_001267dc: MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x28] CALL 0x0012b3b0 MOV dword ptr [RBP + -0x14],EAX JMP 0x00126802 LAB_001267ee: JMP 0x001267f0 LAB_001267f0: MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],0x0 MOV dword ptr [RBP + -0x14],0x64 LAB_00126802: MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x44],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00126823 MOV EAX,dword ptr [RBP + -0x44] ADD RSP,0x50 POP RBP RET LAB_00126823: CALL 0x001134b0
int4 stmt_cursor_fetch(long param_1,int8 *param_2) { int iVar1; long in_FS_OFFSET; char *local_48; int4 local_1c; int1 local_18; int1 local_17; int1 local_16; int1 local_15; int1 local_14; int1 local_13; int1 local_12; int1 local_11; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if (*(uint *)(param_1 + 0x50) < 4) { *(int4 *)(param_1 + 0x108) = 0x7de; strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5); *(int1 *)(param_1 + 0x312) = 0; strncpy((char *)(param_1 + 0x10c),PTR_s_Commands_out_of_sync__you_can_t_r_0015ff90,0x200); *(int1 *)(param_1 + 0x30b) = 0; local_1c = 1; } else if (*(long *)(param_1 + 0xe0) == 0) { if ((*(uint *)(param_1 + 0xf4) & 0x80) == 0) { local_18 = (int1)*(int8 *)(param_1 + 0x40); local_17 = (int1)((ulong)*(int8 *)(param_1 + 0x40) >> 8); local_16 = (int1)((ulong)*(int8 *)(param_1 + 0x40) >> 0x10); local_15 = (int1)((ulong)*(int8 *)(param_1 + 0x40) >> 0x18); local_14 = (int1)*(int8 *)(param_1 + 0x318); local_13 = (int1)((ulong)*(int8 *)(param_1 + 0x318) >> 8); local_12 = (int1)((ulong)*(int8 *)(param_1 + 0x318) >> 0x10); local_11 = (int1)((ulong)*(int8 *)(param_1 + 0x318) >> 0x18); iVar1 = (**(code **)(*(long *)(*(long *)(param_1 + 0x38) + 0x4d0) + 0x10)) (*(int8 *)(param_1 + 0x38),0x1c,&local_18,8,1,param_1); if (iVar1 != 0) { *(int4 *)(param_1 + 0x108) = *(int4 *)(*(long *)(param_1 + 0x38) + 0x90); strncpy((char *)(param_1 + 0x30d),(char *)(*(long *)(param_1 + 0x38) + 0x297),5); *(int1 *)(param_1 + 0x312) = 0; if (*(long *)(param_1 + 0x38) == -0x97) { local_48 = (&client_errors)[*(int *)(*(long *)(param_1 + 0x38) + 0x90) - 2000]; } else { local_48 = (char *)(*(long *)(param_1 + 0x38) + 0x97); } strncpy((char *)(param_1 + 0x10c),local_48,0x200); *(int1 *)(param_1 + 0x30b) = 0; local_1c = 1; goto LAB_00126802; } ma_free_root(param_1 + 0x90,1); *(int8 *)(param_1 + 0x80) = 0; *(int8 *)(param_1 + 200) = 0; if (*(char *)(*(long *)(*(long *)(param_1 + 0x38) + 0x480) + 0x148) == '\0') { iVar1 = (**(code **)(*(long *)(*(long *)(param_1 + 0x38) + 0x4d0) + 0x60))(param_1); if (iVar1 == 0) { local_1c = stmt_buffered_fetch(param_1,param_2); } else { local_1c = 1; } goto LAB_00126802; } } else { *(uint *)(param_1 + 0xf4) = *(uint *)(param_1 + 0xf4) & 0xffffff7f; } *param_2 = 0; local_1c = 100; } else { local_1c = stmt_buffered_fetch(param_1,param_2); } LAB_00126802: if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_1c; }
44,090
my_strntoull_mb2_or_mb4
eloqsql/strings/ctype-ucs2.c
static ulonglong my_strntoull_mb2_or_mb4(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative= 0; int overflow; int cnv; my_wc_t wc; my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc; register ulonglong cutoff; register unsigned int cutlim; register ulonglong res; register const uchar *s= (const uchar*) nptr; register const uchar *e= (const uchar*) nptr + l; const uchar *save; *err= 0; do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { switch (wc) { case ' ' : break; case '\t': break; case '-' : negative= !negative; break; case '+' : break; default : goto bs; } } else /* No more characters or bad multibyte sequence */ { if (endptr !=NULL ) *endptr = (char*)s; err[0]= (cnv==MY_CS_ILSEQ) ? EILSEQ : EDOM; return 0; } s+=cnv; } while (1); bs: overflow = 0; res = 0; save = s; cutoff = (~(ulonglong) 0) / (unsigned long int) base; cutlim = (uint) ((~(ulonglong) 0) % (unsigned long int) base); do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { s+=cnv; if ( wc>='0' && wc<='9') wc -= '0'; else if ( wc>='A' && wc<='Z') wc = wc - 'A' + 10; else if ( wc>='a' && wc<='z') wc = wc - 'a' + 10; else break; if ((int)wc >= base) break; if (res > cutoff || (res == cutoff && wc > cutlim)) overflow = 1; else { res *= (ulonglong) base; res += wc; } } else if (cnv==MY_CS_ILSEQ) { if (endptr !=NULL ) *endptr = (char*)s; err[0]= EILSEQ; return 0; } else { /* No more characters */ break; } } while(1); if (endptr != NULL) *endptr = (char *) s; if (s == save) { err[0]= EDOM; return 0L; } if (overflow) { err[0]= ERANGE; return (~(ulonglong) 0); } return (negative ? -((longlong) res) : (longlong) res); }
O0
c
my_strntoull_mb2_or_mb4: pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movl $0x0, -0x3c(%rbp) movq -0x10(%rbp), %rax movq 0xb8(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x58(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x78(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x80(%rbp) movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x58(%rbp), %rax movq -0x10(%rbp), %rdi movq -0x78(%rbp), %rdx movq -0x80(%rbp), %rcx leaq -0x50(%rbp), %rsi callq *%rax movl %eax, -0x44(%rbp) cmpl $0x0, %eax jle 0x5bad1 movq -0x50(%rbp), %rax addq $-0x9, %rax movq %rax, -0x90(%rbp) subq $0x24, %rax ja 0x5bacd movq -0x90(%rbp), %rax leaq 0x156d41(%rip), %rcx # 0x1b27ec movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax jmp 0x5bacf jmp 0x5bacf cmpl $0x0, -0x3c(%rbp) setne %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x3c(%rbp) jmp 0x5bacf jmp 0x5bacf jmp 0x5bb28 jmp 0x5bb09 cmpq $0x0, -0x30(%rbp) je 0x5bae3 movq -0x78(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movl -0x44(%rbp), %edx movl $0x21, %ecx movl $0x54, %eax cmpl $0x0, %edx cmovel %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, (%rax) movq $0x0, -0x8(%rbp) jmp 0x5bd0c movl -0x44(%rbp), %ecx movq -0x78(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x78(%rbp) movb $0x1, %al testb $0x1, %al jne 0x5ba6a jmp 0x5bb26 jmp 0x5bb28 movl $0x0, -0x40(%rbp) movq $0x0, -0x70(%rbp) movq -0x78(%rbp), %rax movq %rax, -0x88(%rbp) movslq -0x24(%rbp), %rcx movq $-0x1, %rax xorl %edx, %edx divq %rcx movq %rax, -0x60(%rbp) movslq -0x24(%rbp), %rcx movq $-0x1, %rax xorl %edx, %edx divq %rcx movl %edx, %eax movl %eax, -0x64(%rbp) movq -0x58(%rbp), %rax movq -0x10(%rbp), %rdi movq -0x78(%rbp), %rdx movq -0x80(%rbp), %rcx leaq -0x50(%rbp), %rsi callq *%rax movl %eax, -0x44(%rbp) cmpl $0x0, %eax jle 0x5bc55 movl -0x44(%rbp), %ecx movq -0x78(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x78(%rbp) cmpq $0x30, -0x50(%rbp) jb 0x5bbba cmpq $0x39, -0x50(%rbp) ja 0x5bbba movq -0x50(%rbp), %rax subq $0x30, %rax movq %rax, -0x50(%rbp) jmp 0x5bc03 cmpq $0x41, -0x50(%rbp) jb 0x5bbda cmpq $0x5a, -0x50(%rbp) ja 0x5bbda movq -0x50(%rbp), %rax subq $0x41, %rax addq $0xa, %rax movq %rax, -0x50(%rbp) jmp 0x5bc01 cmpq $0x61, -0x50(%rbp) jb 0x5bbfa cmpq $0x7a, -0x50(%rbp) ja 0x5bbfa movq -0x50(%rbp), %rax subq $0x61, %rax addq $0xa, %rax movq %rax, -0x50(%rbp) jmp 0x5bbff jmp 0x5bc94 jmp 0x5bc01 jmp 0x5bc03 movq -0x50(%rbp), %rax cmpl -0x24(%rbp), %eax jl 0x5bc11 jmp 0x5bc94 movq -0x70(%rbp), %rax cmpq -0x60(%rbp), %rax ja 0x5bc31 movq -0x70(%rbp), %rax cmpq -0x60(%rbp), %rax jne 0x5bc3a movq -0x50(%rbp), %rax movl -0x64(%rbp), %ecx cmpq %rcx, %rax jbe 0x5bc3a movl $0x1, -0x40(%rbp) jmp 0x5bc53 movslq -0x24(%rbp), %rax imulq -0x70(%rbp), %rax movq %rax, -0x70(%rbp) movq -0x50(%rbp), %rax addq -0x70(%rbp), %rax movq %rax, -0x70(%rbp) jmp 0x5bc86 cmpl $0x0, -0x44(%rbp) jne 0x5bc84 cmpq $0x0, -0x30(%rbp) je 0x5bc6d movq -0x78(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rax movl $0x54, (%rax) movq $0x0, -0x8(%rbp) jmp 0x5bd0c jmp 0x5bc94 jmp 0x5bc88 movb $0x1, %al testb $0x1, %al jne 0x5bb6b jmp 0x5bc94 cmpq $0x0, -0x30(%rbp) je 0x5bca6 movq -0x78(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movq -0x78(%rbp), %rax cmpq -0x88(%rbp), %rax jne 0x5bcc7 movq -0x38(%rbp), %rax movl $0x21, (%rax) movq $0x0, -0x8(%rbp) jmp 0x5bd0c cmpl $0x0, -0x40(%rbp) je 0x5bce1 movq -0x38(%rbp), %rax movl $0x22, (%rax) movq $-0x1, -0x8(%rbp) jmp 0x5bd0c cmpl $0x0, -0x3c(%rbp) je 0x5bcf6 xorl %eax, %eax subq -0x70(%rbp), %rax movq %rax, -0x98(%rbp) jmp 0x5bd01 movq -0x70(%rbp), %rax movq %rax, -0x98(%rbp) movq -0x98(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0xa0, %rsp popq %rbp retq nopl (%rax)
my_strntoull_mb2_or_mb4: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov [rbp+var_3C], 0 mov rax, [rbp+var_10] mov rax, [rax+0B8h] mov rax, [rax+28h] mov [rbp+var_58], rax mov rax, [rbp+var_18] mov [rbp+var_78], rax mov rax, [rbp+var_18] add rax, [rbp+var_20] mov [rbp+var_80], rax mov rax, [rbp+var_38] mov dword ptr [rax], 0 loc_5BA6A: mov rax, [rbp+var_58] mov rdi, [rbp+var_10] mov rdx, [rbp+var_78] mov rcx, [rbp+var_80] lea rsi, [rbp+var_50] call rax mov [rbp+var_44], eax cmp eax, 0 jle short loc_5BAD1 mov rax, [rbp+var_50] add rax, 0FFFFFFFFFFFFFFF7h; switch 37 cases mov [rbp+var_90], rax sub rax, 24h ja short def_5BAB2; jumptable 000000000005BAB2 default case, cases 10-31,33-42,44 mov rax, [rbp+var_90] lea rcx, jpt_5BAB2 movsxd rax, ds:(jpt_5BAB2 - 1B27ECh)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_5BAB4: jmp short loc_5BACF; jumptable 000000000005BAB2 case 32 loc_5BAB6: jmp short loc_5BACF; jumptable 000000000005BAB2 case 9 loc_5BAB8: cmp [rbp+var_3C], 0; jumptable 000000000005BAB2 case 45 setnz al xor al, 0FFh and al, 1 movzx eax, al mov [rbp+var_3C], eax jmp short loc_5BACF loc_5BACB: jmp short loc_5BACF; jumptable 000000000005BAB2 case 43 def_5BAB2: jmp short loc_5BB28; jumptable 000000000005BAB2 default case, cases 10-31,33-42,44 loc_5BACF: jmp short loc_5BB09 loc_5BAD1: cmp [rbp+var_30], 0 jz short loc_5BAE3 mov rcx, [rbp+var_78] mov rax, [rbp+var_30] mov [rax], rcx loc_5BAE3: mov edx, [rbp+var_44] mov ecx, 21h ; '!' mov eax, 54h ; 'T' cmp edx, 0 cmovz ecx, eax mov rax, [rbp+var_38] mov [rax], ecx mov [rbp+var_8], 0 jmp loc_5BD0C loc_5BB09: mov ecx, [rbp+var_44] mov rax, [rbp+var_78] movsxd rcx, ecx add rax, rcx mov [rbp+var_78], rax mov al, 1 test al, 1 jnz loc_5BA6A jmp short $+2 loc_5BB26: jmp short $+2 loc_5BB28: mov [rbp+var_40], 0 mov [rbp+var_70], 0 mov rax, [rbp+var_78] mov [rbp+var_88], rax movsxd rcx, [rbp+var_24] mov rax, 0FFFFFFFFFFFFFFFFh xor edx, edx div rcx mov [rbp+var_60], rax movsxd rcx, [rbp+var_24] mov rax, 0FFFFFFFFFFFFFFFFh xor edx, edx div rcx mov eax, edx mov [rbp+var_64], eax loc_5BB6B: mov rax, [rbp+var_58] mov rdi, [rbp+var_10] mov rdx, [rbp+var_78] mov rcx, [rbp+var_80] lea rsi, [rbp+var_50] call rax mov [rbp+var_44], eax cmp eax, 0 jle loc_5BC55 mov ecx, [rbp+var_44] mov rax, [rbp+var_78] movsxd rcx, ecx add rax, rcx mov [rbp+var_78], rax cmp [rbp+var_50], 30h ; '0' jb short loc_5BBBA cmp [rbp+var_50], 39h ; '9' ja short loc_5BBBA mov rax, [rbp+var_50] sub rax, 30h ; '0' mov [rbp+var_50], rax jmp short loc_5BC03 loc_5BBBA: cmp [rbp+var_50], 41h ; 'A' jb short loc_5BBDA cmp [rbp+var_50], 5Ah ; 'Z' ja short loc_5BBDA mov rax, [rbp+var_50] sub rax, 41h ; 'A' add rax, 0Ah mov [rbp+var_50], rax jmp short loc_5BC01 loc_5BBDA: cmp [rbp+var_50], 61h ; 'a' jb short loc_5BBFA cmp [rbp+var_50], 7Ah ; 'z' ja short loc_5BBFA mov rax, [rbp+var_50] sub rax, 61h ; 'a' add rax, 0Ah mov [rbp+var_50], rax jmp short loc_5BBFF loc_5BBFA: jmp loc_5BC94 loc_5BBFF: jmp short $+2 loc_5BC01: jmp short $+2 loc_5BC03: mov rax, [rbp+var_50] cmp eax, [rbp+var_24] jl short loc_5BC11 jmp loc_5BC94 loc_5BC11: mov rax, [rbp+var_70] cmp rax, [rbp+var_60] ja short loc_5BC31 mov rax, [rbp+var_70] cmp rax, [rbp+var_60] jnz short loc_5BC3A mov rax, [rbp+var_50] mov ecx, [rbp+var_64] cmp rax, rcx jbe short loc_5BC3A loc_5BC31: mov [rbp+var_40], 1 jmp short loc_5BC53 loc_5BC3A: movsxd rax, [rbp+var_24] imul rax, [rbp+var_70] mov [rbp+var_70], rax mov rax, [rbp+var_50] add rax, [rbp+var_70] mov [rbp+var_70], rax loc_5BC53: jmp short loc_5BC86 loc_5BC55: cmp [rbp+var_44], 0 jnz short loc_5BC84 cmp [rbp+var_30], 0 jz short loc_5BC6D mov rcx, [rbp+var_78] mov rax, [rbp+var_30] mov [rax], rcx loc_5BC6D: mov rax, [rbp+var_38] mov dword ptr [rax], 54h ; 'T' mov [rbp+var_8], 0 jmp loc_5BD0C loc_5BC84: jmp short loc_5BC94 loc_5BC86: jmp short $+2 loc_5BC88: mov al, 1 test al, 1 jnz loc_5BB6B jmp short $+2 loc_5BC94: cmp [rbp+var_30], 0 jz short loc_5BCA6 mov rcx, [rbp+var_78] mov rax, [rbp+var_30] mov [rax], rcx loc_5BCA6: mov rax, [rbp+var_78] cmp rax, [rbp+var_88] jnz short loc_5BCC7 mov rax, [rbp+var_38] mov dword ptr [rax], 21h ; '!' mov [rbp+var_8], 0 jmp short loc_5BD0C loc_5BCC7: cmp [rbp+var_40], 0 jz short loc_5BCE1 mov rax, [rbp+var_38] mov dword ptr [rax], 22h ; '"' mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh jmp short loc_5BD0C loc_5BCE1: cmp [rbp+var_3C], 0 jz short loc_5BCF6 xor eax, eax sub rax, [rbp+var_70] mov [rbp+var_98], rax jmp short loc_5BD01 loc_5BCF6: mov rax, [rbp+var_70] mov [rbp+var_98], rax loc_5BD01: mov rax, [rbp+var_98] mov [rbp+var_8], rax loc_5BD0C: mov rax, [rbp+var_8] add rsp, 0A0h pop rbp retn
long long my_strntoull_mb2_or_mb4(long long a1, long long a2, long long a3, int a4, _QWORD *a5, int *a6) { int v6; // ecx long long v9; // [rsp+18h] [rbp-88h] long long v10; // [rsp+20h] [rbp-80h] long long v11; // [rsp+28h] [rbp-78h] unsigned long long v12; // [rsp+30h] [rbp-70h] unsigned int v13; // [rsp+3Ch] [rbp-64h] unsigned long long v14; // [rsp+40h] [rbp-60h] long long ( *v15)(long long, unsigned long long *, long long, long long); // [rsp+48h] [rbp-58h] unsigned long long v16; // [rsp+50h] [rbp-50h] BYREF int v17; // [rsp+5Ch] [rbp-44h] int v18; // [rsp+60h] [rbp-40h] BOOL v19; // [rsp+64h] [rbp-3Ch] int *v20; // [rsp+68h] [rbp-38h] _QWORD *v21; // [rsp+70h] [rbp-30h] int v22; // [rsp+7Ch] [rbp-24h] long long v23; // [rsp+80h] [rbp-20h] long long v24; // [rsp+88h] [rbp-18h] long long v25; // [rsp+90h] [rbp-10h] v25 = a1; v24 = a2; v23 = a3; v22 = a4; v21 = a5; v20 = a6; v19 = 0; v15 = *(long long ( **)(long long, unsigned long long *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL); v11 = a2; v10 = a3 + a2; *a6 = 0; while ( 2 ) { v17 = v15(v25, &v16, v11, v10); if ( v17 <= 0 ) { if ( v21 ) *v21 = v11; v6 = 33; if ( !v17 ) v6 = 84; *v20 = v6; return 0LL; } else { switch ( v16 ) { case 9uLL: case 0x20uLL: case 0x2BuLL: goto LABEL_10; case 0x2DuLL: v19 = !v19; LABEL_10: v11 += v17; continue; default: v18 = 0; v12 = 0LL; v9 = v11; v14 = 0xFFFFFFFFFFFFFFFFLL / v22; v13 = 0xFFFFFFFFFFFFFFFFLL % v22; break; } while ( 1 ) { v17 = v15(v25, &v16, v11, v10); if ( v17 <= 0 ) break; v11 += v17; if ( v16 < 0x30 || v16 > 0x39 ) { if ( v16 < 0x41 || v16 > 0x5A ) { if ( v16 < 0x61 || v16 > 0x7A ) goto LABEL_33; v16 = v16 - 97 + 10; } else { v16 = v16 - 65 + 10; } } else { v16 -= 48LL; } if ( (int)v16 >= v22 ) goto LABEL_33; if ( v12 > v14 || v12 == v14 && v16 > v13 ) v18 = 1; else v12 = v12 * v22 + v16; } if ( v17 ) { LABEL_33: if ( v21 ) *v21 = v11; if ( v11 == v9 ) { *v20 = 33; return 0LL; } else if ( v18 ) { *v20 = 34; return -1LL; } else if ( v19 ) { return -(long long)v12; } else { return v12; } } if ( v21 ) *v21 = v11; *v20 = 84; return 0LL; } } }
my_strntoull_mb2_or_mb4: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV dword ptr [RBP + -0x3c],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x78],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x80],RAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 LAB_0015ba6a: MOV RAX,qword ptr [RBP + -0x58] MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x78] MOV RCX,qword ptr [RBP + -0x80] LEA RSI,[RBP + -0x50] CALL RAX MOV dword ptr [RBP + -0x44],EAX CMP EAX,0x0 JLE 0x0015bad1 MOV RAX,qword ptr [RBP + -0x50] ADD RAX,-0x9 MOV qword ptr [RBP + -0x90],RAX SUB RAX,0x24 JA 0x0015bacd MOV RAX,qword ptr [RBP + -0x90] LEA RCX,[0x2b27ec] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_20: JMP 0x0015bacf caseD_9: JMP 0x0015bacf caseD_2d: CMP dword ptr [RBP + -0x3c],0x0 SETNZ AL XOR AL,0xff AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RBP + -0x3c],EAX JMP 0x0015bacf caseD_2b: JMP 0x0015bacf caseD_a: JMP 0x0015bb28 LAB_0015bacf: JMP 0x0015bb09 LAB_0015bad1: CMP qword ptr [RBP + -0x30],0x0 JZ 0x0015bae3 MOV RCX,qword ptr [RBP + -0x78] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_0015bae3: MOV EDX,dword ptr [RBP + -0x44] MOV ECX,0x21 MOV EAX,0x54 CMP EDX,0x0 CMOVZ ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX MOV qword ptr [RBP + -0x8],0x0 JMP 0x0015bd0c LAB_0015bb09: MOV ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x78] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x78],RAX MOV AL,0x1 TEST AL,0x1 JNZ 0x0015ba6a JMP 0x0015bb26 LAB_0015bb26: JMP 0x0015bb28 LAB_0015bb28: MOV dword ptr [RBP + -0x40],0x0 MOV qword ptr [RBP + -0x70],0x0 MOV RAX,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x88],RAX MOVSXD RCX,dword ptr [RBP + -0x24] MOV RAX,-0x1 XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x60],RAX MOVSXD RCX,dword ptr [RBP + -0x24] MOV RAX,-0x1 XOR EDX,EDX DIV RCX MOV EAX,EDX MOV dword ptr [RBP + -0x64],EAX LAB_0015bb6b: MOV RAX,qword ptr [RBP + -0x58] MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x78] MOV RCX,qword ptr [RBP + -0x80] LEA RSI,[RBP + -0x50] CALL RAX MOV dword ptr [RBP + -0x44],EAX CMP EAX,0x0 JLE 0x0015bc55 MOV ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x78] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x78],RAX CMP qword ptr [RBP + -0x50],0x30 JC 0x0015bbba CMP qword ptr [RBP + -0x50],0x39 JA 0x0015bbba MOV RAX,qword ptr [RBP + -0x50] SUB RAX,0x30 MOV qword ptr [RBP + -0x50],RAX JMP 0x0015bc03 LAB_0015bbba: CMP qword ptr [RBP + -0x50],0x41 JC 0x0015bbda CMP qword ptr [RBP + -0x50],0x5a JA 0x0015bbda MOV RAX,qword ptr [RBP + -0x50] SUB RAX,0x41 ADD RAX,0xa MOV qword ptr [RBP + -0x50],RAX JMP 0x0015bc01 LAB_0015bbda: CMP qword ptr [RBP + -0x50],0x61 JC 0x0015bbfa CMP qword ptr [RBP + -0x50],0x7a JA 0x0015bbfa MOV RAX,qword ptr [RBP + -0x50] SUB RAX,0x61 ADD RAX,0xa MOV qword ptr [RBP + -0x50],RAX JMP 0x0015bbff LAB_0015bbfa: JMP 0x0015bc94 LAB_0015bbff: JMP 0x0015bc01 LAB_0015bc01: JMP 0x0015bc03 LAB_0015bc03: MOV RAX,qword ptr [RBP + -0x50] CMP EAX,dword ptr [RBP + -0x24] JL 0x0015bc11 JMP 0x0015bc94 LAB_0015bc11: MOV RAX,qword ptr [RBP + -0x70] CMP RAX,qword ptr [RBP + -0x60] JA 0x0015bc31 MOV RAX,qword ptr [RBP + -0x70] CMP RAX,qword ptr [RBP + -0x60] JNZ 0x0015bc3a MOV RAX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x64] CMP RAX,RCX JBE 0x0015bc3a LAB_0015bc31: MOV dword ptr [RBP + -0x40],0x1 JMP 0x0015bc53 LAB_0015bc3a: MOVSXD RAX,dword ptr [RBP + -0x24] IMUL RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x50] ADD RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x70],RAX LAB_0015bc53: JMP 0x0015bc86 LAB_0015bc55: CMP dword ptr [RBP + -0x44],0x0 JNZ 0x0015bc84 CMP qword ptr [RBP + -0x30],0x0 JZ 0x0015bc6d MOV RCX,qword ptr [RBP + -0x78] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_0015bc6d: MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x54 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0015bd0c LAB_0015bc84: JMP 0x0015bc94 LAB_0015bc86: JMP 0x0015bc88 LAB_0015bc88: MOV AL,0x1 TEST AL,0x1 JNZ 0x0015bb6b JMP 0x0015bc94 LAB_0015bc94: CMP qword ptr [RBP + -0x30],0x0 JZ 0x0015bca6 MOV RCX,qword ptr [RBP + -0x78] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_0015bca6: MOV RAX,qword ptr [RBP + -0x78] CMP RAX,qword ptr [RBP + -0x88] JNZ 0x0015bcc7 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x21 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0015bd0c LAB_0015bcc7: CMP dword ptr [RBP + -0x40],0x0 JZ 0x0015bce1 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x22 MOV qword ptr [RBP + -0x8],-0x1 JMP 0x0015bd0c LAB_0015bce1: CMP dword ptr [RBP + -0x3c],0x0 JZ 0x0015bcf6 XOR EAX,EAX SUB RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x98],RAX JMP 0x0015bd01 LAB_0015bcf6: MOV RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x98],RAX LAB_0015bd01: MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0x8],RAX LAB_0015bd0c: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0xa0 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x0015bb24) */ /* WARNING: Removing unreachable block (ram,0x0015bc92) */ ulong my_strntoull_mb2_or_mb4 (long param_1,long param_2,long param_3,int param_4,long *param_5, int4 *param_6) { code *pcVar1; int1 auVar2 [16]; int1 auVar3 [16]; long lVar4; ulong uVar5; int4 uVar6; ulong local_a0; long local_80; ulong local_78; ulong local_58; int local_4c; int local_48; uint local_44; int4 *local_40; long *local_38; int local_2c; long local_28; long local_20; long local_18; ulong local_10; local_44 = 0; pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); *param_6 = 0; local_80 = param_2; local_40 = param_6; local_38 = param_5; local_2c = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; do { lVar4 = local_80; local_4c = (*pcVar1)(local_18,&local_58,local_80,param_2 + param_3); if (local_4c < 1) { if (local_38 != (long *)0x0) { *local_38 = local_80; } uVar6 = 0x21; if (local_4c == 0) { uVar6 = 0x54; } *local_40 = uVar6; return 0; } switch(local_58) { case 9: break; default: local_48 = 0; local_78 = 0; auVar2._8_8_ = 0; auVar2._0_8_ = (long)local_2c; uVar5 = SUB168((ZEXT816(0) << 0x40 | ZEXT816(0xffffffffffffffff)) / auVar2,0); auVar3._8_8_ = 0; auVar3._0_8_ = (long)local_2c; goto LAB_0015bb6b; case 0x20: break; case 0x2b: break; case 0x2d: local_44 = (uint)((local_44 != 0 ^ 0xffU) & 1); } local_80 = local_80 + local_4c; } while( true ); LAB_0015bb6b: local_4c = (*pcVar1)(local_18,&local_58,local_80,param_2 + param_3); if (local_4c < 1) { if (local_4c == 0) { if (local_38 != (long *)0x0) { *local_38 = local_80; } *local_40 = 0x54; local_10 = 0; } else { LAB_0015bc94: if (local_38 != (long *)0x0) { *local_38 = local_80; } if (local_80 == lVar4) { *local_40 = 0x21; local_10 = 0; } else if (local_48 == 0) { if (local_44 == 0) { local_a0 = local_78; } else { local_a0 = -local_78; } local_10 = local_a0; } else { *local_40 = 0x22; local_10 = 0xffffffffffffffff; } } return local_10; } local_80 = local_80 + local_4c; if ((local_58 < 0x30) || (0x39 < local_58)) { if ((local_58 < 0x41) || (0x5a < local_58)) { if ((local_58 < 0x61) || (0x7a < local_58)) goto LAB_0015bc94; local_58 = local_58 - 0x57; } else { local_58 = local_58 - 0x37; } } else { local_58 = local_58 - 0x30; } if (local_2c <= (int)local_58) goto LAB_0015bc94; if ((uVar5 < local_78) || ((local_78 == uVar5 && (SUB164((ZEXT816(0) << 0x40 | ZEXT816(0xffffffffffffffff)) % auVar3,0) < local_58)))) { local_48 = 1; } else { local_78 = local_58 + (long)local_2c * local_78; } goto LAB_0015bb6b; }
44,091
POINTonE2_affine_on_curve
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/e2.c
static bool_t POINTonE2_affine_on_curve(const POINTonE2_affine *p) { vec384x XXX, YY; sqr_fp2(XXX, p->X); mul_fp2(XXX, XXX, p->X); /* X^3 */ add_fp2(XXX, XXX, B_E2); /* X^3 + B */ sqr_fp2(YY, p->Y); /* Y^2 */ return vec_is_equal(XXX, YY, sizeof(XXX)); }
O3
c
POINTonE2_affine_on_curve: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp movq %rdi, %r14 leaq 0x308e0(%rip), %r15 # 0x8cca0 leaq -0xf0(%rbp), %rbx movabsq $-0x760c000300030003, %r12 # imm = 0x89F3FFFCFFFCFFFD movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movq %r12, %rcx callq 0x73ce0 movq %rbx, %rdi movq %rbx, %rsi movq %r14, %rdx movq %r15, %rcx movq %r12, %r8 callq 0x73ba0 leaq 0x317c3(%rip), %rdx # 0x8dbc0 movq %rbx, %rdi movq %rbx, %rsi movq %r15, %rcx callq 0x6f720 addq $0x60, %r14 leaq -0x90(%rbp), %r13 movq %r13, %rdi movq %r14, %rsi movq %r15, %rdx movq %r12, %rcx callq 0x73ce0 movl $0x60, %edx movq %rbx, %rdi movq %r13, %rsi callq 0x70980 addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
POINTonE2_affine_on_curve: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 0C8h mov r14, rdi lea r15, BLS12_381_P lea rbx, [rbp+var_F0] mov r12, 89F3FFFCFFFCFFFDh mov rdi, rbx mov rsi, r14 mov rdx, r15 mov rcx, r12 call sqr_mont_384x mov rdi, rbx mov rsi, rbx mov rdx, r14 mov rcx, r15 mov r8, r12 call mul_mont_384x lea rdx, B_E2 mov rdi, rbx mov rsi, rbx mov rcx, r15 call add_mod_384x add r14, 60h ; '`' lea r13, [rbp+var_90] mov rdi, r13 mov rsi, r14 mov rdx, r15 mov rcx, r12 call sqr_mont_384x mov edx, 60h ; '`' mov rdi, rbx mov rsi, r13 call vec_is_equal_16x add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long POINTonE2_affine_on_curve(long long a1) { _BYTE v2[96]; // [rsp+0h] [rbp-F0h] BYREF _BYTE v3[144]; // [rsp+60h] [rbp-90h] BYREF sqr_mont_384x(v2, a1, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); mul_mont_384x(v2, v2, a1, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); add_mod_384x(v2, v2, &B_E2, &BLS12_381_P); sqr_mont_384x(v3, a1 + 96, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); return vec_is_equal_16x(v2, v3, 96LL); }
POINTonE2_affine_on_curve: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 MOV R14,RDI LEA R15,[0x18cca0] LEA RBX,[RBP + -0xf0] MOV R12,-0x760c000300030003 MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 MOV RCX,R12 CALL 0x00173ce0 MOV RDI,RBX MOV RSI,RBX MOV RDX,R14 MOV RCX,R15 MOV R8,R12 CALL 0x00173ba0 LEA RDX,[0x18dbc0] MOV RDI,RBX MOV RSI,RBX MOV RCX,R15 CALL 0x0016f720 ADD R14,0x60 LEA R13,[RBP + -0x90] MOV RDI,R13 MOV RSI,R14 MOV RDX,R15 MOV RCX,R12 CALL 0x00173ce0 MOV EDX,0x60 MOV RDI,RBX MOV RSI,R13 CALL 0x00170980 ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void POINTonE2_affine_on_curve(long param_1) { int1 local_f8 [96]; int1 local_98 [104]; sqr_mont_384x(local_f8,param_1,BLS12_381_P,0x89f3fffcfffcfffd); mul_mont_384x(local_f8,local_f8,param_1,BLS12_381_P,0x89f3fffcfffcfffd); add_mod_384x(local_f8,local_f8,B_E2,BLS12_381_P); sqr_mont_384x(local_98,param_1 + 0x60,BLS12_381_P,0x89f3fffcfffcfffd); vec_is_equal_16x(local_f8,local_98,0x60); return; }
44,092
my_caseup_str_utf8mb4
eloqsql/strings/ctype-utf8.c
static size_t my_caseup_str_utf8mb4(CHARSET_INFO *cs, char *src) { my_wc_t wc; int srcres, dstres; char *dst= src, *dst0= src; MY_UNICASE_INFO *uni_plane= cs->caseinfo; DBUG_ASSERT(cs->caseup_multiply == 1); while (*src && (srcres= my_mb_wc_utf8mb4_no_range(cs, &wc, (uchar *) src)) > 0) { my_toupper_utf8mb4(uni_plane, &wc); if ((dstres= my_wc_mb_utf8mb4_no_range(cs, wc, (uchar*) dst)) <= 0) break; src+= srcres; dst+= dstres; } *dst= '\0'; return (size_t) (dst - dst0); }
O0
c
my_caseup_str_utf8mb4: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x8(%rbp), %rax movq 0x78(%rax), %rax movq %rax, -0x38(%rbp) jmp 0x142c8e jmp 0x142c90 movq -0x10(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x39(%rbp) je 0x142cbe movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rdx leaq -0x18(%rbp), %rsi callq 0x146b20 movl %eax, -0x1c(%rbp) cmpl $0x0, %eax setg %al movb %al, -0x39(%rbp) movb -0x39(%rbp), %al testb $0x1, %al jne 0x142cc7 jmp 0x142d16 movq -0x38(%rbp), %rdi leaq -0x18(%rbp), %rsi callq 0x146d60 movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x28(%rbp), %rdx callq 0x146dd0 movl %eax, -0x20(%rbp) cmpl $0x0, %eax jg 0x142cef jmp 0x142d16 movl -0x1c(%rbp), %ecx movq -0x10(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) movl -0x20(%rbp), %ecx movq -0x28(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) jmp 0x142c90 movq -0x28(%rbp), %rax movb $0x0, (%rax) movq -0x28(%rbp), %rax movq -0x30(%rbp), %rcx subq %rcx, %rax addq $0x40, %rsp popq %rbp retq nop
my_caseup_str_utf8mb4: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_10] mov [rbp+var_30], rax mov rax, [rbp+var_8] mov rax, [rax+78h] mov [rbp+var_38], rax jmp short $+2 loc_142C8E: jmp short $+2 loc_142C90: mov rax, [rbp+var_10] movsx ecx, byte ptr [rax] xor eax, eax cmp ecx, 0 mov [rbp+var_39], al jz short loc_142CBE mov rdi, [rbp+var_8] mov rdx, [rbp+var_10] lea rsi, [rbp+var_18] call my_mb_wc_utf8mb4_no_range mov [rbp+var_1C], eax cmp eax, 0 setnle al mov [rbp+var_39], al loc_142CBE: mov al, [rbp+var_39] test al, 1 jnz short loc_142CC7 jmp short loc_142D16 loc_142CC7: mov rdi, [rbp+var_38] lea rsi, [rbp+var_18] call my_toupper_utf8mb4 mov rdi, [rbp+var_8] mov rsi, [rbp+var_18] mov rdx, [rbp+var_28] call my_wc_mb_utf8mb4_no_range mov [rbp+var_20], eax cmp eax, 0 jg short loc_142CEF jmp short loc_142D16 loc_142CEF: mov ecx, [rbp+var_1C] mov rax, [rbp+var_10] movsxd rcx, ecx add rax, rcx mov [rbp+var_10], rax mov ecx, [rbp+var_20] mov rax, [rbp+var_28] movsxd rcx, ecx add rax, rcx mov [rbp+var_28], rax jmp loc_142C90 loc_142D16: mov rax, [rbp+var_28] mov byte ptr [rax], 0 mov rax, [rbp+var_28] mov rcx, [rbp+var_30] sub rax, rcx add rsp, 40h pop rbp retn
_BYTE * my_caseup_str_utf8mb4(long long a1, _BYTE *a2) { bool v3; // [rsp+7h] [rbp-39h] long long v4; // [rsp+8h] [rbp-38h] _BYTE *v5; // [rsp+18h] [rbp-28h] int v6; // [rsp+20h] [rbp-20h] int v7; // [rsp+24h] [rbp-1Ch] long long v8; // [rsp+28h] [rbp-18h] BYREF _BYTE *v9; // [rsp+30h] [rbp-10h] long long v10; // [rsp+38h] [rbp-8h] v10 = a1; v9 = a2; v5 = a2; v4 = *(_QWORD *)(a1 + 120); while ( 1 ) { v3 = 0; if ( *v9 ) { v7 = my_mb_wc_utf8mb4_no_range(v10, &v8, v9); v3 = v7 > 0; } if ( !v3 ) break; my_toupper_utf8mb4(v4, &v8); v6 = my_wc_mb_utf8mb4_no_range(v10, v8, v5); if ( v6 <= 0 ) break; v9 += v7; v5 += v6; } *v5 = 0; return (_BYTE *)(v5 - a2); }
44,093
my_caseup_str_utf8mb4
eloqsql/strings/ctype-utf8.c
static size_t my_caseup_str_utf8mb4(CHARSET_INFO *cs, char *src) { my_wc_t wc; int srcres, dstres; char *dst= src, *dst0= src; MY_UNICASE_INFO *uni_plane= cs->caseinfo; DBUG_ASSERT(cs->caseup_multiply == 1); while (*src && (srcres= my_mb_wc_utf8mb4_no_range(cs, &wc, (uchar *) src)) > 0) { my_toupper_utf8mb4(uni_plane, &wc); if ((dstres= my_wc_mb_utf8mb4_no_range(cs, wc, (uchar*) dst)) <= 0) break; src+= srcres; dst+= dstres; } *dst= '\0'; return (size_t) (dst - dst0); }
O3
c
my_caseup_str_utf8mb4: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx cmpb $0x0, (%rsi) movq %rsi, %r14 je 0xd0f4f movq 0x78(%rdi), %r15 movq %rbx, %r12 movq %rbx, %r14 leaq -0x30(%rbp), %rdi movq %r12, %rsi callq 0xd4293 testl %eax, %eax je 0xd0f4f movl %eax, %r13d movq -0x30(%rbp), %rdi cmpq (%r15), %rdi ja 0xd0f30 movq 0x8(%r15), %rax movq %rdi, %rcx shrq $0x8, %rcx movq (%rax,%rcx,8), %rax testq %rax, %rax je 0xd0f30 movzbl %dil, %ecx leaq (%rcx,%rcx,2), %rcx movl (%rax,%rcx,4), %edi movq %rdi, -0x30(%rbp) movq %r14, %rsi callq 0xd43af testl %eax, %eax je 0xd0f4f movl %r13d, %ecx movl %eax, %eax addq %rax, %r14 cmpb $0x0, (%r12,%rcx) leaq (%r12,%rcx), %r12 jne 0xd0ef1 movb $0x0, (%r14) subq %rbx, %r14 movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_caseup_str_utf8mb4: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi cmp byte ptr [rsi], 0 mov r14, rsi jz short loc_D0F4F mov r15, [rdi+78h] mov r12, rbx mov r14, rbx loc_D0EF1: lea rdi, [rbp+var_30] mov rsi, r12 call my_mb_wc_utf8mb4_no_range test eax, eax jz short loc_D0F4F mov r13d, eax mov rdi, [rbp+var_30] cmp rdi, [r15] ja short loc_D0F30 mov rax, [r15+8] mov rcx, rdi shr rcx, 8 mov rax, [rax+rcx*8] test rax, rax jz short loc_D0F30 movzx ecx, dil lea rcx, [rcx+rcx*2] mov edi, [rax+rcx*4] mov [rbp+var_30], rdi loc_D0F30: mov rsi, r14 call my_wc_mb_utf8mb4_no_range test eax, eax jz short loc_D0F4F mov ecx, r13d mov eax, eax add r14, rax cmp byte ptr [r12+rcx], 0 lea r12, [r12+rcx] jnz short loc_D0EF1 loc_D0F4F: mov byte ptr [r14], 0 sub r14, rbx mov rax, r14 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_caseup_str_utf8mb4(long long a1, _BYTE *a2) { long long v2; // rax _BYTE *v3; // r14 _QWORD *v4; // r15 _BYTE *v5; // r12 unsigned int v6; // eax unsigned int v7; // r13d long long v8; // rdi long long v9; // rax unsigned int v10; // eax bool v11; // zf _QWORD v13[6]; // [rsp+0h] [rbp-30h] BYREF v13[0] = v2; v3 = a2; if ( *a2 ) { v4 = *(_QWORD **)(a1 + 120); v5 = a2; v3 = a2; do { v6 = my_mb_wc_utf8mb4_no_range(v13, v5); if ( !v6 ) break; v7 = v6; v8 = v13[0]; if ( v13[0] <= *v4 ) { v9 = *(_QWORD *)(v4[1] + 8LL * (v13[0] >> 8)); if ( v9 ) { v8 = *(unsigned int *)(v9 + 12LL * LOBYTE(v13[0])); v13[0] = v8; } } v10 = my_wc_mb_utf8mb4_no_range(v8, v3); if ( !v10 ) break; v3 += v10; v11 = v5[v7] == 0; v5 += v7; } while ( !v11 ); } *v3 = 0; return v3 - a2; }
my_caseup_str_utf8mb4: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI CMP byte ptr [RSI],0x0 MOV R14,RSI JZ 0x001d0f4f MOV R15,qword ptr [RDI + 0x78] MOV R12,RBX MOV R14,RBX LAB_001d0ef1: LEA RDI,[RBP + -0x30] MOV RSI,R12 CALL 0x001d4293 TEST EAX,EAX JZ 0x001d0f4f MOV R13D,EAX MOV RDI,qword ptr [RBP + -0x30] CMP RDI,qword ptr [R15] JA 0x001d0f30 MOV RAX,qword ptr [R15 + 0x8] MOV RCX,RDI SHR RCX,0x8 MOV RAX,qword ptr [RAX + RCX*0x8] TEST RAX,RAX JZ 0x001d0f30 MOVZX ECX,DIL LEA RCX,[RCX + RCX*0x2] MOV EDI,dword ptr [RAX + RCX*0x4] MOV qword ptr [RBP + -0x30],RDI LAB_001d0f30: MOV RSI,R14 CALL 0x001d43af TEST EAX,EAX JZ 0x001d0f4f MOV ECX,R13D MOV EAX,EAX ADD R14,RAX CMP byte ptr [R12 + RCX*0x1],0x0 LEA R12,[R12 + RCX*0x1] JNZ 0x001d0ef1 LAB_001d0f4f: MOV byte ptr [R14],0x0 SUB R14,RBX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_caseup_str_utf8mb4(long param_1,char *param_2) { char *pcVar1; ulong *puVar2; long lVar3; uint uVar4; uint uVar5; ulong in_RAX; char *pcVar6; char *pcVar7; ulong local_38; pcVar7 = param_2; if (*param_2 != '\0') { puVar2 = *(ulong **)(param_1 + 0x78); pcVar6 = param_2; local_38 = in_RAX; do { uVar4 = my_mb_wc_utf8mb4_no_range(&local_38,pcVar6); if (uVar4 == 0) break; if ((local_38 <= *puVar2) && (lVar3 = *(long *)(puVar2[1] + (local_38 >> 8) * 8), lVar3 != 0)) { local_38 = (ulong)*(uint *)(lVar3 + (local_38 & 0xff) * 0xc); } uVar5 = my_wc_mb_utf8mb4_no_range(local_38,pcVar7); if (uVar5 == 0) break; pcVar7 = pcVar7 + uVar5; pcVar1 = pcVar6 + uVar4; pcVar6 = pcVar6 + uVar4; } while (*pcVar1 != '\0'); } *pcVar7 = '\0'; return (long)pcVar7 - (long)param_2; }
44,094
my_hash_sort_utf16_bin
eloqsql/strings/ctype-ucs2.c
static void my_hash_sort_utf16_bin(CHARSET_INFO *cs, const uchar *pos, size_t len, ulong *nr1, ulong *nr2) { size_t lengthsp= my_ci_lengthsp(cs, (const char *) pos, len); my_hash_sort_utf16_nopad_bin(cs, pos, lengthsp, nr1, nr2); }
O3
c
my_hash_sort_utf16_bin: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %r8, %rbx movq %rcx, %r14 movq %rsi, %r15 movq 0xb8(%rdi), %rax callq *0x18(%rax) movq (%r14), %rcx movq (%rbx), %rdx testq %rax, %rax jle 0x68f35 addq %r15, %rax movl %ecx, %esi andl $0x3f, %esi addq %rdx, %rsi movzbl (%r15), %edi imulq %rsi, %rdi movq %rcx, %rsi shlq $0x8, %rsi addq %rdi, %rsi xorq %rsi, %rcx addq $0x3, %rdx incq %r15 cmpq %rax, %r15 jb 0x68f0c movq %rcx, (%r14) movq %rdx, (%rbx) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
my_hash_sort_utf16_bin: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, r8 mov r14, rcx mov r15, rsi mov rax, [rdi+0B8h] call qword ptr [rax+18h] mov rcx, [r14] mov rdx, [rbx] test rax, rax jle short loc_68F35 add rax, r15 loc_68F0C: mov esi, ecx and esi, 3Fh add rsi, rdx movzx edi, byte ptr [r15] imul rdi, rsi mov rsi, rcx shl rsi, 8 add rsi, rdi xor rcx, rsi add rdx, 3 inc r15 cmp r15, rax jb short loc_68F0C loc_68F35: mov [r14], rcx mov [rbx], rdx add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long my_hash_sort_utf16_bin(long long a1, unsigned __int8 *a2, long long a3, long long *a4, long long *a5) { unsigned __int8 *v7; // r15 long long result; // rax long long v9; // rcx long long v10; // rdx v7 = a2; result = (*(long long ( **)(long long))(*(_QWORD *)(a1 + 184) + 24LL))(a1); v9 = *a4; v10 = *a5; if ( result > 0 ) { result += (long long)a2; do { v9 ^= (v10 + (v9 & 0x3F)) * *v7 + (v9 << 8); v10 += 3LL; ++v7; } while ( (unsigned long long)v7 < result ); } *a4 = v9; *a5 = v10; return result; }
my_hash_sort_utf16_bin: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,R8 MOV R14,RCX MOV R15,RSI MOV RAX,qword ptr [RDI + 0xb8] CALL qword ptr [RAX + 0x18] MOV RCX,qword ptr [R14] MOV RDX,qword ptr [RBX] TEST RAX,RAX JLE 0x00168f35 ADD RAX,R15 LAB_00168f0c: MOV ESI,ECX AND ESI,0x3f ADD RSI,RDX MOVZX EDI,byte ptr [R15] IMUL RDI,RSI MOV RSI,RCX SHL RSI,0x8 ADD RSI,RDI XOR RCX,RSI ADD RDX,0x3 INC R15 CMP R15,RAX JC 0x00168f0c LAB_00168f35: MOV qword ptr [R14],RCX MOV qword ptr [RBX],RDX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
void my_hash_sort_utf16_bin (long param_1,byte *param_2,int8 param_3,ulong *param_4,long *param_5) { long lVar1; byte *pbVar2; ulong uVar3; long lVar4; lVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x18))(); uVar3 = *param_4; lVar4 = *param_5; if (0 < lVar1) { pbVar2 = param_2 + lVar1; do { uVar3 = uVar3 ^ uVar3 * 0x100 + (ulong)*param_2 * ((ulong)((uint)uVar3 & 0x3f) + lVar4); lVar4 = lVar4 + 3; param_2 = param_2 + 1; } while (param_2 < pbVar2); } *param_4 = uVar3; *param_5 = lVar4; return; }
44,095
my_coll_parser_scan_reset_sequence
eloqsql/strings/ctype-uca.c
static int my_coll_parser_scan_reset_sequence(MY_COLL_RULE_PARSER *p) { my_coll_rule_reset(&p->rule); /* Scan "[before x]" option, if exists */ if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_OPTION) my_coll_parser_scan_reset_before(p); /* Try logical reset position */ if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_OPTION) { if (!my_coll_parser_scan_logical_position(p, p->rule.base, 1)) return 0; } else { /* Scan single reset character or expansion */ if (!my_coll_parser_scan_character_list(p, p->rule.base, MY_UCA_MAX_EXPANSION, "Expansion")) return 0; } return 1; }
O0
c
my_coll_parser_scan_reset_sequence: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi addq $0x50, %rdi callq 0x51770 movq -0x10(%rbp), %rdi callq 0x50c70 cmpl $0x7, (%rax) jne 0x514d0 movq -0x10(%rbp), %rdi callq 0x517a0 movq -0x10(%rbp), %rdi callq 0x50c70 cmpl $0x7, (%rax) jne 0x51504 movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x50, %rsi movl $0x1, %edx callq 0x51910 cmpl $0x0, %eax jne 0x51502 movl $0x0, -0x4(%rbp) jmp 0x51538 jmp 0x51531 movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x50, %rsi movl $0xa, %edx leaq 0x2c651(%rip), %rcx # 0x7db6d callq 0x51c30 cmpl $0x0, %eax jne 0x5152f movl $0x0, -0x4(%rbp) jmp 0x51538 jmp 0x51531 movl $0x1, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_coll_parser_scan_reset_sequence: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_10], rdi mov rdi, [rbp+var_10] add rdi, 50h ; 'P' call my_coll_rule_reset mov rdi, [rbp+var_10] call my_coll_parser_curr cmp dword ptr [rax], 7 jnz short loc_514D0 mov rdi, [rbp+var_10] call my_coll_parser_scan_reset_before loc_514D0: mov rdi, [rbp+var_10] call my_coll_parser_curr cmp dword ptr [rax], 7 jnz short loc_51504 mov rdi, [rbp+var_10] mov rsi, [rbp+var_10] add rsi, 50h ; 'P' mov edx, 1 call my_coll_parser_scan_logical_position cmp eax, 0 jnz short loc_51502 mov [rbp+var_4], 0 jmp short loc_51538 loc_51502: jmp short loc_51531 loc_51504: mov rdi, [rbp+var_10] mov rsi, [rbp+var_10] add rsi, 50h ; 'P' mov edx, 0Ah lea rcx, aExpansion; "Expansion" call my_coll_parser_scan_character_list cmp eax, 0 jnz short loc_5152F mov [rbp+var_4], 0 jmp short loc_51538 loc_5152F: jmp short $+2 loc_51531: mov [rbp+var_4], 1 loc_51538: mov eax, [rbp+var_4] add rsp, 10h pop rbp retn
_BOOL8 my_coll_parser_scan_reset_sequence(long long a1) { my_coll_rule_reset(a1 + 80); if ( *(_DWORD *)my_coll_parser_curr(a1) == 7 ) my_coll_parser_scan_reset_before(a1); if ( *(_DWORD *)my_coll_parser_curr(a1) != 7 ) return (unsigned int)my_coll_parser_scan_character_list(a1, a1 + 80, 10LL, "Expansion") != 0; return (unsigned int)my_coll_parser_scan_logical_position(a1, a1 + 80, 1LL) != 0; }
my_coll_parser_scan_reset_sequence: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x10],RDI MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x50 CALL 0x00151770 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00150c70 CMP dword ptr [RAX],0x7 JNZ 0x001514d0 MOV RDI,qword ptr [RBP + -0x10] CALL 0x001517a0 LAB_001514d0: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00150c70 CMP dword ptr [RAX],0x7 JNZ 0x00151504 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x50 MOV EDX,0x1 CALL 0x00151910 CMP EAX,0x0 JNZ 0x00151502 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00151538 LAB_00151502: JMP 0x00151531 LAB_00151504: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x50 MOV EDX,0xa LEA RCX,[0x17db6d] CALL 0x00151c30 CMP EAX,0x0 JNZ 0x0015152f MOV dword ptr [RBP + -0x4],0x0 JMP 0x00151538 LAB_0015152f: JMP 0x00151531 LAB_00151531: MOV dword ptr [RBP + -0x4],0x1 LAB_00151538: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x10 POP RBP RET
int4 my_coll_parser_scan_reset_sequence(long param_1) { int iVar1; int *piVar2; my_coll_rule_reset(param_1 + 0x50); piVar2 = (int *)my_coll_parser_curr(param_1); if (*piVar2 == 7) { my_coll_parser_scan_reset_before(param_1); } piVar2 = (int *)my_coll_parser_curr(param_1); if (*piVar2 == 7) { iVar1 = my_coll_parser_scan_logical_position(param_1,param_1 + 0x50,1); if (iVar1 == 0) { return 0; } } else { iVar1 = my_coll_parser_scan_character_list(param_1,param_1 + 0x50,10,"Expansion"); if (iVar1 == 0) { return 0; } } return 1; }
44,096
GGUFMeta::GKV<unsigned int>::get_kv(gguf_context const*, int)
monkey531[P]llama/src/llama-model-loader.cpp
static T get_kv(const gguf_context * ctx, const int k) { const enum gguf_type kt = gguf_get_kv_type(ctx, k); if (kt != GKV::gt) { throw std::runtime_error(format("key %s has wrong type %s but expected type %s", gguf_get_key(ctx, k), gguf_type_name(kt), gguf_type_name(GKV::gt))); } return GKV::getter(ctx, k); }
O2
cpp
GGUFMeta::GKV<unsigned int>::get_kv(gguf_context const*, int): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x20, %rsp movl %edx, %r12d movq %rsi, %r14 movq %rdi, %rbx movslq %edx, %r15 movq %rsi, %rdi movq %r15, %rsi callq 0xa83f0 cmpl $0x8, %eax jne 0xea9b6 movq %rbx, %rdi movq %r14, %rsi movl %r12d, %edx callq 0x9c170 movq %rbx, %rax addq $0x20, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl %eax, %ebp pushq $0x10 popq %rdi callq 0x9dfd0 movq %rax, %rbx movq %r14, %rdi movq %r15, %rsi callq 0xa0200 movq %rax, %r14 movl %ebp, %edi callq 0x9def0 movq %rax, %r15 pushq $0x8 popq %rdi callq 0x9def0 leaq 0x5b593(%rip), %rsi # 0x145f7d movq %rsp, %rdi movq %r14, %rdx movq %r15, %rcx movq %rax, %r8 xorl %eax, %eax callq 0xa7ad0 movb $0x1, %bpl movq %rsp, %rsi movq %rbx, %rdi callq 0xa6270 xorl %ebp, %ebp movq 0xaf5dc(%rip), %rsi # 0x199ff0 movq 0xaf2d5(%rip), %rdx # 0x199cf0 movq %rbx, %rdi callq 0xa6f50 movq %rax, %r14 movq %rsp, %rdi callq 0xa8d48 testb %bpl, %bpl jne 0xeaa38 jmp 0xeaa40 movq %rax, %r14 movq %rbx, %rdi callq 0x9fc30 movq %r14, %rdi callq 0xa7540
_ZN8GGUFMeta3GKVINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE6get_kvEPK12gguf_contexti: push rbp push r15 push r14 push r12 push rbx sub rsp, 20h mov r12d, edx mov r14, rsi mov rbx, rdi movsxd r15, edx mov rdi, rsi mov rsi, r15 call _gguf_get_kv_type cmp eax, 8 jnz short loc_EA9B6 mov rdi, rbx mov rsi, r14 mov edx, r12d call __ZN8GGUFMeta8GKV_BaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE6getterEPK12gguf_contexti; GGUFMeta::GKV_Base<std::string>::getter(gguf_context const*,int) mov rax, rbx add rsp, 20h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_EA9B6: mov ebp, eax push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 mov rsi, r15 call _gguf_get_key mov r14, rax mov edi, ebp call _gguf_type_name mov r15, rax push 8 pop rdi call _gguf_type_name lea rsi, aKeySHasWrongTy; "key %s has wrong type %s but expected t"... mov rdi, rsp mov rdx, r14 mov rcx, r15 mov r8, rax xor eax, eax call __Z6formatB5cxx11PKcz; format(char const*,...) mov bpl, 1 mov rsi, rsp mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rsp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_EAA38 jmp short loc_EAA40 mov r14, rax loc_EAA38: mov rdi, rbx; void * call ___cxa_free_exception loc_EAA40: mov rdi, r14 call __Unwind_Resume
long long GGUFMeta::GKV<std::string>::get_kv(long long a1, long long a2, unsigned int a3) { long long v4; // r15 unsigned int kv_type; // eax unsigned int v7; // ebp void *exception; // rbx int key; // r14d int v10; // r15d int v11; // eax int v12; // r9d _BYTE v13[72]; // [rsp+0h] [rbp-48h] BYREF v4 = (int)a3; kv_type = gguf_get_kv_type(a2, (int)a3); if ( kv_type != 8 ) { v7 = kv_type; exception = __cxa_allocate_exception(0x10uLL); key = gguf_get_key(a2, v4); v10 = gguf_type_name(v7); v11 = gguf_type_name(8LL); format[abi:cxx11]( (unsigned int)v13, (unsigned int)"key %s has wrong type %s but expected type %s", key, v10, v11, v12); std::runtime_error::runtime_error(exception, v13); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } GGUFMeta::GKV_Base<std::string>::getter(a1, a2, a3); return a1; }
get_kv: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x20 MOV R12D,EDX MOV R14,RSI MOV RBX,RDI MOVSXD R15,EDX MOV RDI,RSI MOV RSI,R15 CALL 0x001a83f0 CMP EAX,0x8 JNZ 0x001ea9b6 MOV RDI,RBX MOV RSI,R14 MOV EDX,R12D CALL 0x0019c170 MOV RAX,RBX ADD RSP,0x20 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001ea9b6: MOV EBP,EAX PUSH 0x10 POP RDI CALL 0x0019dfd0 MOV RBX,RAX LAB_001ea9c3: MOV RDI,R14 MOV RSI,R15 CALL 0x001a0200 MOV R14,RAX MOV EDI,EBP CALL 0x0019def0 MOV R15,RAX PUSH 0x8 POP RDI CALL 0x0019def0 LEA RSI,[0x245f7d] MOV RDI,RSP MOV RDX,R14 MOV RCX,R15 MOV R8,RAX XOR EAX,EAX CALL 0x001a7ad0 MOV BPL,0x1 LAB_001eaa00: MOV RSI,RSP MOV RDI,RBX CALL 0x001a6270 XOR EBP,EBP MOV RSI,qword ptr [0x00299ff0] MOV RDX,qword ptr [0x00299cf0] MOV RDI,RBX CALL 0x001a6f50
/* GGUFMeta::GKV<std::__cxx11::string >::get_kv(gguf_context const*, int) */ GKV<std::__cxx11::string> * __thiscall GGUFMeta::GKV<std::__cxx11::string>::get_kv (GKV<std::__cxx11::string> *this,gguf_context *param_1,int param_2) { int iVar1; runtime_error *this_00; int8 uVar2; int8 uVar3; int8 uVar4; string asStack_48 [32]; iVar1 = gguf_get_kv_type(param_1,(long)param_2); if (iVar1 == 8) { GKV_Base<std::__cxx11::string>::getter((GKV_Base<std::__cxx11::string> *)this,param_1,param_2); return this; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001ea9c3 to 001ea9fc has its CatchHandler @ 001eaa35 */ uVar2 = gguf_get_key(param_1,(long)param_2); uVar3 = gguf_type_name(iVar1); uVar4 = gguf_type_name(8); format_abi_cxx11_((char *)asStack_48,"key %s has wrong type %s but expected type %s",uVar2,uVar3, uVar4); /* try { // try from 001eaa00 to 001eaa22 has its CatchHandler @ 001eaa23 */ std::runtime_error::runtime_error(this_00,asStack_48); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_00299ff0,PTR__runtime_error_00299cf0); }
44,097
GGUFMeta::GKV<unsigned int>::get_kv(gguf_context const*, int)
monkey531[P]llama/src/llama-model-loader.cpp
static T get_kv(const gguf_context * ctx, const int k) { const enum gguf_type kt = gguf_get_kv_type(ctx, k); if (kt != GKV::gt) { throw std::runtime_error(format("key %s has wrong type %s but expected type %s", gguf_get_key(ctx, k), gguf_type_name(kt), gguf_type_name(GKV::gt))); } return GKV::getter(ctx, k); }
O3
cpp
GGUFMeta::GKV<unsigned int>::get_kv(gguf_context const*, int): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %r15 movslq %esi, %r14 movq %r14, %rsi callq 0x6bee0 cmpl $0x5, %eax jne 0xb52f4 movq %r15, %rdi movq %r14, %rsi addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x64d60 movl %eax, %ebp movl $0x10, %edi callq 0x65cb0 movq %rax, %rbx movq %r15, %rdi movq %r14, %rsi callq 0x67030 movq %rax, %r14 movl %ebp, %edi callq 0x65c10 movq %rax, %r15 movl $0x5, %edi callq 0x65c10 leaq 0x62721(%rip), %rsi # 0x117a4d leaq 0x8(%rsp), %rdi movq %r14, %rdx movq %r15, %rcx movq %rax, %r8 xorl %eax, %eax callq 0x6b940 movb $0x1, %bpl leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x6aa30 xorl %ebp, %ebp movq 0xa7c96(%rip), %rsi # 0x15cff0 movq 0xa798f(%rip), %rdx # 0x15ccf0 movq %rbx, %rdi callq 0x6b270 movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xb5387 movq 0x18(%rsp), %rsi incq %rsi callq 0x681a0 testb %bpl, %bpl jne 0xb5391 jmp 0xb5399 movq %rax, %r14 movq %rbx, %rdi callq 0x66d40 movq %r14, %rdi callq 0x6b5d0 nop
_ZN8GGUFMeta3GKVIiE6get_kvEPK12gguf_contexti: push rbp push r15 push r14 push rbx sub rsp, 28h mov r15, rdi movsxd r14, esi mov rsi, r14 call _gguf_get_kv_type cmp eax, 5 jnz short loc_B52F4 mov rdi, r15 mov rsi, r14 add rsp, 28h pop rbx pop r14 pop r15 pop rbp jmp _gguf_get_val_i32 loc_B52F4: mov ebp, eax mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r15 mov rsi, r14 call _gguf_get_key mov r14, rax mov edi, ebp call _gguf_type_name mov r15, rax mov edi, 5 call _gguf_type_name lea rsi, aKeySHasWrongTy; "key %s has wrong type %s but expected t"... lea rdi, [rsp+48h+var_40] mov rdx, r14 mov rcx, r15 mov r8, rax xor eax, eax call __Z6formatB5cxx11PKcz; format(char const*,...) mov bpl, 1 lea rsi, [rsp+48h+var_40] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+48h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_B5387 mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B5387: test bpl, bpl jnz short loc_B5391 jmp short loc_B5399 mov r14, rax loc_B5391: mov rdi, rbx; void * call ___cxa_free_exception loc_B5399: mov rdi, r14 call __Unwind_Resume
long long GGUFMeta::GKV<int>::get_kv(long long a1, int a2) { unsigned int kv_type; // eax unsigned int v4; // ebp void *exception; // rbx int key; // r14d int v7; // r15d int v8; // eax int v9; // r9d _BYTE v10[16]; // [rsp+8h] [rbp-40h] BYREF kv_type = gguf_get_kv_type(a1, a2); if ( kv_type != 5 ) { v4 = kv_type; exception = __cxa_allocate_exception(0x10uLL); key = gguf_get_key(a1, a2); v7 = gguf_type_name(v4); v8 = gguf_type_name(5LL); format[abi:cxx11]((unsigned int)v10, (unsigned int)"key %s has wrong type %s but expected type %s", key, v7, v8, v9); std::runtime_error::runtime_error(exception, v10); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } return gguf_get_val_i32(a1, a2); }
get_kv: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x28 MOV R15,RDI MOVSXD R14,ESI MOV RSI,R14 CALL 0x0016bee0 CMP EAX,0x5 JNZ 0x001b52f4 MOV RDI,R15 MOV RSI,R14 ADD RSP,0x28 POP RBX POP R14 POP R15 POP RBP JMP 0x00164d60 LAB_001b52f4: MOV EBP,EAX MOV EDI,0x10 CALL 0x00165cb0 MOV RBX,RAX LAB_001b5303: MOV RDI,R15 MOV RSI,R14 CALL 0x00167030 MOV R14,RAX MOV EDI,EBP CALL 0x00165c10 MOV R15,RAX MOV EDI,0x5 CALL 0x00165c10 LEA RSI,[0x217a4d] LEA RDI,[RSP + 0x8] MOV RDX,R14 MOV RCX,R15 MOV R8,RAX XOR EAX,EAX CALL 0x0016b940 MOV BPL,0x1 LAB_001b5344: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x0016aa30 XOR EBP,EBP MOV RSI,qword ptr [0x0025cff0] MOV RDX,qword ptr [0x0025ccf0] MOV RDI,RBX CALL 0x0016b270
/* GGUFMeta::GKV<int>::get_kv(gguf_context const*, int) */ void GGUFMeta::GKV<int>::get_kv(gguf_context *param_1,int param_2) { int iVar1; runtime_error *this; int8 uVar2; int8 uVar3; int8 uVar4; long lVar5; string local_40 [32]; lVar5 = (long)param_2; iVar1 = gguf_get_kv_type(param_1,lVar5); if (iVar1 == 5) { gguf_get_val_i32(param_1,lVar5); return; } this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001b5303 to 001b5340 has its CatchHandler @ 001b538e */ uVar2 = gguf_get_key(param_1,lVar5); uVar3 = gguf_type_name(iVar1); uVar4 = gguf_type_name(5); format_abi_cxx11_((char *)local_40,"key %s has wrong type %s but expected type %s",uVar2,uVar3, uVar4); /* try { // try from 001b5344 to 001b5368 has its CatchHandler @ 001b5369 */ std::runtime_error::runtime_error(this,local_40); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_0025cff0,PTR__runtime_error_0025ccf0); }
44,098
get_charset_name
eloqsql/mysys/charset.c
const char *get_charset_name(uint charset_number) { my_pthread_once(&charsets_initialized, init_available_charsets); if (charset_number < array_elements(all_charsets)) { CHARSET_INFO *cs= all_charsets[charset_number]; if (cs && (cs->number == charset_number) && cs->coll_name.str) return cs->coll_name.str; } return "?"; /* this mimics find_type() */ }
O3
c
get_charset_name: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movl %edi, %ebx leaq 0x34813e(%rip), %rdi # 0x371a00 leaq -0x302(%rip), %rsi # 0x295c7 callq 0x242b0 leaq 0x33efe(%rip), %rcx # 0x5d7d3 cmpl $0x7ff, %ebx # imm = 0x7FF ja 0x298fc movl %ebx, %eax leaq 0x3400aa(%rip), %rdx # 0x369990 movq (%rdx,%rax,8), %rax testq %rax, %rax je 0x298fc cmpl %ebx, (%rax) jne 0x298fc movq 0x20(%rax), %rax testq %rax, %rax jne 0x298ff movq %rcx, %rax addq $0x8, %rsp popq %rbx popq %rbp retq
get_charset_name: push rbp mov rbp, rsp push rbx push rax mov ebx, edi lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once lea rcx, asc_5D7D3; "?" cmp ebx, 7FFh ja short loc_298FC mov eax, ebx lea rdx, all_charsets mov rax, [rdx+rax*8] test rax, rax jz short loc_298FC cmp [rax], ebx jnz short loc_298FC mov rax, [rax+20h] test rax, rax jnz short loc_298FF loc_298FC: mov rax, rcx loc_298FF: add rsp, 8 pop rbx pop rbp retn
const char * get_charset_name(unsigned int a1) { long long v1; // rax const char *result; // rax pthread_once(&charsets_initialized, init_available_charsets); if ( a1 > 0x7FF ) return "?"; v1 = all_charsets[a1]; if ( !v1 ) return "?"; if ( *(_DWORD *)v1 != a1 ) return "?"; result = *(const char **)(v1 + 32); if ( !result ) return "?"; return result; }
get_charset_name: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV EBX,EDI LEA RDI,[0x471a00] LEA RSI,[0x1295c7] CALL 0x001242b0 LEA RCX,[0x15d7d3] CMP EBX,0x7ff JA 0x001298fc MOV EAX,EBX LEA RDX,[0x469990] MOV RAX,qword ptr [RDX + RAX*0x8] TEST RAX,RAX JZ 0x001298fc CMP dword ptr [RAX],EBX JNZ 0x001298fc MOV RAX,qword ptr [RAX + 0x20] TEST RAX,RAX JNZ 0x001298ff LAB_001298fc: MOV RAX,RCX LAB_001298ff: ADD RSP,0x8 POP RBX POP RBP RET
int * get_charset_name(uint param_1) { uint *puVar1; int *puVar2; pthread_once(&charsets_initialized,init_available_charsets); if ((((0x7ff < param_1) || (puVar1 = (uint *)(&all_charsets)[param_1], puVar1 == (uint *)0x0)) || (*puVar1 != param_1)) || (puVar2 = *(int **)(puVar1 + 8), puVar2 == (int *)0x0)) { puVar2 = &DAT_0015d7d3; } return puVar2; }
44,099
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [11], 0>(char const (&) [11]) const
monkey531[P]llama/common/./json.hpp
const_reference at(KeyType && key) const { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return it->second; }
O2
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [11], 0>(char const (&) [11]) const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rdi, %r14 cmpb $0x1, (%rdi) jne 0xaa7d3 movq %rsi, %r15 movq 0x8(%r14), %rdi callq 0x7e4d0 movq 0x8(%r14), %rcx cmpq 0x8(%rcx), %rax je 0xaa831 addq $0x20, %rax addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x24460 movq %rax, %rbx movq %r14, %rdi callq 0x434f0 leaq 0x28(%rsp), %rdx movq %rax, (%rdx) leaq 0xc52d(%rip), %rsi # 0xb6d22 leaq 0x8(%rsp), %rdi callq 0x7ddd5 movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x130, %esi # imm = 0x130 movq %r14, %rcx callq 0x63472 xorl %ebp, %ebp leaq 0x53718(%rip), %rsi # 0xfdf38 leaq -0x6a7a7(%rip), %rdx # 0x40080 movq %rbx, %rdi callq 0x24ee0 jmp 0xaa89b pushq $0x20 popq %rdi callq 0x24460 movq %rax, %rbx leaq 0x28(%rsp), %rdi leaq 0x7(%rsp), %rdx movq %r15, %rsi callq 0x27852 leaq 0xc4fd(%rip), %rsi # 0xb6d52 leaq 0xc4fc(%rip), %rcx # 0xb6d58 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rdx callq 0x7e3df movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x193, %esi # imm = 0x193 movq %r14, %rcx callq 0x7e84a xorl %ebp, %ebp leaq 0x5362c(%rip), %rsi # 0xfdeb8 leaq -0x6a813(%rip), %rdx # 0x40080 movq %rbx, %rdi callq 0x24ee0 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x251b8 jmp 0xaa8b0 movq %rax, %r14 movb $0x1, %bpl leaq 0x28(%rsp), %rdi jmp 0xaa8c1 jmp 0xaa8cd movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x251b8 testb %bpl, %bpl jne 0xaa8d0 jmp 0xaa8d8 movq %rax, %r14 movq %rbx, %rdi callq 0x24670 movq %r14, %rdi callq 0x24f60
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: push rbp; char push r15; int push r14; int push rbx; int sub rsp, 48h mov r14, rdi cmp byte ptr [rdi], 1 jnz short loc_AA7D3 mov r15, rsi mov rdi, [r14+8] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ mov rcx, [r14+8] cmp rax, [rcx+8] jz short loc_AA831 add rax, 20h ; ' ' add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_AA7D3: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+68h+var_40] mov [rdx], rax lea rsi, aCannotUseAtWit; "cannot use at() with " lea rdi, [rsp+68h+var_60] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) mov bpl, 1 lea rdx, [rsp+68h+var_60] mov rdi, rbx; this mov esi, 130h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_AA89B loc_AA831: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+68h+var_40] lea rdx, [rsp+68h+var_61] mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aKey; "key '" lea rcx, aNotFound; "' not found" lea rdi, [rsp+68h+var_60] lea rdx, [rsp+68h+var_40] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) mov bpl, 1 lea rdx, [rsp+68h+var_60] mov rdi, rbx; this mov esi, 193h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_AA89B: mov r14, rax lea rdi, [rsp+68h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_AA8B0 mov r14, rax mov bpl, 1 loc_AA8B0: lea rdi, [rsp+68h+var_40] jmp short loc_AA8C1 jmp short loc_AA8CD mov r14, rax lea rdi, [rsp+68h+var_60]; void * loc_AA8C1: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_AA8D0 jmp short loc_AA8D8 loc_AA8CD: mov r14, rax loc_AA8D0: mov rdi, rbx; void * call ___cxa_free_exception loc_AA8D8: mov rdi, r14 call __Unwind_Resume
long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( long long a1, long long a2) { long long v2; // rax nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx nlohmann::json_abi_v3_11_3::detail::out_of_range *v5; // rbx _BYTE v6[32]; // [rsp+8h] [rbp-60h] BYREF _QWORD v7[8]; // [rsp+28h] [rbp-40h] BYREF if ( *(_BYTE *)a1 != 1 ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v7[0] = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>( (long long)v6, (long long)"cannot use at() with ", v7); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 304, (long long)v6); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v2 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(*(long long **)(a1 + 8)); if ( v2 == *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) ) { v5 = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); std::string::basic_string<std::allocator<char>>(v7, a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( (long long)v6, (long long)"key '", (long long)v7, (long long)"' not found"); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( v5, 403, (long long)v6); __cxa_throw( v5, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return v2 + 32; }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV R14,RDI CMP byte ptr [RDI],0x1 JNZ 0x001aa7d3 MOV R15,RSI MOV RDI,qword ptr [R14 + 0x8] CALL 0x0017e4d0 MOV RCX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [RCX + 0x8] JZ 0x001aa831 ADD RAX,0x20 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_001aa7d3: PUSH 0x20 POP RDI CALL 0x00124460 MOV RBX,RAX MOV RDI,R14 CALL 0x001434f0 LEA RDX,[RSP + 0x28] MOV qword ptr [RDX],RAX LAB_001aa7ee: LEA RSI,[0x1b6d22] LEA RDI,[RSP + 0x8] CALL 0x0017ddd5 MOV BPL,0x1 LAB_001aa802: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x130 MOV RCX,R14 CALL 0x00163472 XOR EBP,EBP LEA RSI,[0x1fdf38] LEA RDX,[0x140080] MOV RDI,RBX CALL 0x00124ee0 LAB_001aa831: PUSH 0x20 POP RDI CALL 0x00124460 MOV RBX,RAX LAB_001aa83c: LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x7] MOV RSI,R15 CALL 0x00127852 LAB_001aa84e: LEA RSI,[0x1b6d52] LEA RCX,[0x1b6d58] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x28] CALL 0x0017e3df MOV BPL,0x1 LAB_001aa86e: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x193 MOV RCX,R14 CALL 0x0017e84a XOR EBP,EBP LEA RSI,[0x1fdeb8] LEA RDX,[0x140080] MOV RDI,RBX CALL 0x00124ee0
long _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,char *param_2) { long lVar1; int8 uVar2; allocator local_61; detail local_60 [32]; char *local_40 [4]; if (*param_1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { uVar2 = __cxa_allocate_exception(0x20); local_40[0] = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 001aa7ee to 001aa7fe has its CatchHandler @ 001aa8cd */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*> (local_60,"cannot use at() with ",local_40); /* try { // try from 001aa802 to 001aa82e has its CatchHandler @ 001aa8b9 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x130,local_60,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } lVar1 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ (*(int8 *)(param_1 + 8)); if (lVar1 != *(long *)(*(long *)(param_1 + 8) + 8)) { return lVar1 + 0x20; } uVar2 = __cxa_allocate_exception(0x20); /* try { // try from 001aa83c to 001aa84d has its CatchHandler @ 001aa8b7 */ std::__cxx11::string::string<std::allocator<char>>((string *)local_40,param_2,&local_61); /* try { // try from 001aa84e to 001aa86a has its CatchHandler @ 001aa8aa */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (local_60,"key \'",(string *)local_40,"\' not found"); /* try { // try from 001aa86e to 001aa89a has its CatchHandler @ 001aa89b */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x193,local_60,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); }