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
51,000
bf_convert_to_radix
bluesky950520[P]quickjs/libbf.c
static int bf_convert_to_radix(bf_t *r, slimb_t *pE, const bf_t *a, int radix, limb_t P, bf_rnd_t rnd_mode, BOOL is_fixed_exponent) { slimb_t E, e, prec, extra_bits, ziv_extra_bits, prec0; bf_t B_s, *B = &B_s; int e_sign, ret, res; if (a->len == 0) { /* zero case */ *pE = 0; return bf_set(r, a); } if (is_fixed_exponent) { E = *pE; } else { /* compute the new exponent */ E = 1 + bf_mul_log2_radix(a->expn - 1, radix, TRUE, FALSE); } // bf_print_str("a", a); // printf("E=%ld P=%ld radix=%d\n", E, P, radix); for(;;) { e = P - E; e_sign = 0; if (e < 0) { e = -e; e_sign = 1; } /* Note: precision for log2(radix) is not critical here */ prec0 = bf_mul_log2_radix(P, radix, FALSE, TRUE); ziv_extra_bits = 16; for(;;) { prec = prec0 + ziv_extra_bits; /* XXX: rigorous error analysis needed */ extra_bits = ceil_log2(e) * 2 + 1; ret = bf_pow_ui_ui(r, radix, e, prec + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP); if (!e_sign) ret |= bf_mul(r, r, a, prec + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP); else ret |= bf_div(r, a, r, prec + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP); if (ret & BF_ST_MEM_ERROR) return BF_ST_MEM_ERROR; /* if the result is not exact, check that it can be safely rounded to an integer */ if ((ret & BF_ST_INEXACT) && !bf_can_round(r, r->expn, rnd_mode, prec)) { /* and more precision and retry */ ziv_extra_bits = ziv_extra_bits + (ziv_extra_bits / 2); continue; } else { ret = bf_rint(r, rnd_mode); if (ret & BF_ST_MEM_ERROR) return BF_ST_MEM_ERROR; break; } } if (is_fixed_exponent) break; /* check that the result is < B^P */ /* XXX: do a fast approximate test first ? */ bf_init(r->ctx, B); ret = bf_pow_ui_ui(B, radix, P, BF_PREC_INF, BF_RNDZ); if (ret) { bf_delete(B); return ret; } res = bf_cmpu(r, B); bf_delete(B); if (res < 0) break; /* try a larger exponent */ E++; } *pE = E; return 0; }
O2
c
bf_convert_to_radix: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movl %r9d, (%rsp) movq %rdi, %r12 cmpq $0x0, 0x18(%rdx) je 0x7cdfc movq %r8, %r14 movl %ecx, %ebp movl 0xb0(%rsp), %eax movl %eax, 0x4(%rsp) testl %eax, %eax movq %rsi, 0x30(%rsp) movq %rdx, 0x10(%rsp) je 0x7ce19 movq (%rsi), %rbx jmp 0x7ce32 andq $0x0, (%rsi) movq %r12, %rdi movq %rdx, %rsi addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x73216 movq 0x10(%rdx), %rdi decq %rdi pushq $0x1 popq %rdx movl %ebp, %esi xorl %ecx, %ecx callq 0x76f55 movq %rax, %rbx incq %rbx pushq $0x1 popq %rcx movq %r14, %rdi movl %ebp, %esi xorl %edx, %edx callq 0x76f55 movq %rax, 0x40(%rsp) movslq %ebp, %rax movq %rax, 0x18(%rsp) pushq $0x40 popq %rax movq %rbx, 0x28(%rsp) movq %r14, 0x38(%rsp) movq %r14, %rcx movq %rbx, 0x8(%rsp) subq %rbx, %rcx movq %rcx, %rdx negq %rdx movq %rcx, 0x48(%rsp) cmovsq %rcx, %rdx movq %rdx, 0x20(%rsp) movq %rdx, %rcx decq %rcx je 0x7ce8a bsrq %rcx, %rax xorq $0x3f, %rax addq %rax, %rax movl $0x81, %r15d subq %rax, %r15 cmpq $0x2, 0x20(%rsp) pushq $0x1 popq %rax cmovbq %rax, %r15 pushq $0x10 popq %rbp movq 0x40(%rsp), %rax leaq (%rax,%rbp), %r14 leaq (%r14,%r15), %r13 movq %r12, %rdi movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx movq %r13, %rcx movl $0x7e0, %r8d # imm = 0x7E0 callq 0x765cf movl %eax, %ebx cmpq $0x0, 0x48(%rsp) js 0x7cef3 movq %r12, %rdi movq %r12, %rsi movq 0x10(%rsp), %rdx movq %r13, %rcx movl $0x7e0, %r8d # imm = 0x7E0 callq 0x74959 jmp 0x7cf0c movq %r12, %rdi movq 0x10(%rsp), %rsi movq %r12, %rdx movq %r13, %rcx movl $0x7e0, %r8d # imm = 0x7E0 callq 0x758a2 orl %ebx, %eax testb $0x20, %al jne 0x7cfdf testb $0x10, %al je 0x7cf44 movq 0x10(%r12), %rsi movq %r12, %rdi movl (%rsp), %edx movq %r14, %rcx callq 0x736e0 testl %eax, %eax jne 0x7cf44 movq %rbp, %rax cqto pushq $0x2 popq %rcx idivq %rcx addq %rax, %rbp jmp 0x7cea6 movq %r12, %rdi movl (%rsp), %esi callq 0x757ed testb $0x20, %al jne 0x7cfdf cmpl $0x0, 0x4(%rsp) jne 0x7cff1 movq (%r12), %rax movq %rax, 0x50(%rsp) andl $0x0, 0x58(%rsp) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x60(%rsp) leaq 0x68(%rsp), %rax xorps %xmm0, %xmm0 movups %xmm0, (%rax) leaq 0x50(%rsp), %r15 movq %r15, %rdi movq 0x18(%rsp), %rsi movq 0x38(%rsp), %r14 movq %r14, %rdx movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF pushq $0x1 popq %r8 callq 0x765cf testl %eax, %eax jne 0x7cff8 movq %r12, %rdi movq %r15, %rsi callq 0x73916 movl %eax, %ebx movq %r15, %rdi callq 0x7500e testl %ebx, %ebx js 0x7d008 movq 0x8(%rsp), %rbx incq %rbx pushq $0x40 popq %rax jmp 0x7ce5b pushq $0x20 popq %rax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x28(%rsp), %rcx jmp 0x7d00d movl %eax, %ebx leaq 0x50(%rsp), %rdi callq 0x7500e movl %ebx, %eax jmp 0x7cfe2 movq 0x8(%rsp), %rcx movq 0x30(%rsp), %rax movq %rcx, (%rax) xorl %eax, %eax jmp 0x7cfe2
bf_convert_to_radix: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov [rsp+0A8h+var_A8], r9d mov r12, rdi cmp qword ptr [rdx+18h], 0 jz short loc_7CDFC mov r14, r8 mov ebp, ecx mov eax, [rsp+0A8h+arg_0] mov [rsp+0A8h+var_A4], eax test eax, eax mov [rsp+0A8h+var_78], rsi mov [rsp+0A8h+var_98], rdx jz short loc_7CE19 mov rbx, [rsi] jmp short loc_7CE32 loc_7CDFC: and qword ptr [rsi], 0 mov rdi, r12 mov rsi, rdx add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp bf_set loc_7CE19: mov rdi, [rdx+10h] dec rdi push 1 pop rdx mov esi, ebp xor ecx, ecx call bf_mul_log2_radix mov rbx, rax inc rbx loc_7CE32: push 1 pop rcx mov rdi, r14 mov esi, ebp xor edx, edx call bf_mul_log2_radix mov [rsp+0A8h+var_68], rax movsxd rax, ebp mov [rsp+0A8h+var_90], rax push 40h ; '@' pop rax mov [rsp+0A8h+var_80], rbx mov [rsp+0A8h+var_70], r14 loc_7CE5B: mov rcx, r14 mov [rsp+0A8h+var_A0], rbx sub rcx, rbx mov rdx, rcx neg rdx mov [rsp+0A8h+var_60], rcx cmovs rdx, rcx mov [rsp+0A8h+var_88], rdx mov rcx, rdx dec rcx jz short loc_7CE8A bsr rax, rcx xor rax, 3Fh loc_7CE8A: add rax, rax mov r15d, 81h sub r15, rax cmp [rsp+0A8h+var_88], 2 push 1 pop rax cmovb r15, rax push 10h pop rbp loc_7CEA6: mov rax, [rsp+0A8h+var_68] lea r14, [rax+rbp] lea r13, [r14+r15] mov rdi, r12 mov rsi, [rsp+0A8h+var_90] mov rdx, [rsp+0A8h+var_88] mov rcx, r13 mov r8d, 7E0h call bf_pow_ui_ui mov ebx, eax cmp [rsp+0A8h+var_60], 0 js short loc_7CEF3 mov rdi, r12 mov rsi, r12 mov rdx, [rsp+0A8h+var_98] mov rcx, r13 mov r8d, 7E0h call bf_mul jmp short loc_7CF0C loc_7CEF3: mov rdi, r12 mov rsi, [rsp+0A8h+var_98] mov rdx, r12 mov rcx, r13 mov r8d, 7E0h call bf_div loc_7CF0C: or eax, ebx test al, 20h jnz loc_7CFDF test al, 10h jz short loc_7CF44 mov rsi, [r12+10h] mov rdi, r12 mov edx, [rsp+0A8h+var_A8] mov rcx, r14 call bf_can_round test eax, eax jnz short loc_7CF44 mov rax, rbp cqo push 2 pop rcx idiv rcx add rbp, rax jmp loc_7CEA6 loc_7CF44: mov rdi, r12 mov esi, [rsp+0A8h+var_A8] call bf_rint test al, 20h jnz loc_7CFDF cmp [rsp+0A8h+var_A4], 0 jnz loc_7CFF1 mov rax, [r12] mov [rsp+0A8h+var_58], rax and [rsp+0A8h+var_50], 0 mov rax, 8000000000000000h mov [rsp+0A8h+var_48], rax lea rax, [rsp+0A8h+var_40] xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 lea r15, [rsp+0A8h+var_58] mov rdi, r15 mov rsi, [rsp+0A8h+var_90] mov r14, [rsp+0A8h+var_70] mov rdx, r14 mov rcx, 3FFFFFFFFFFFFFFFh push 1 pop r8 call bf_pow_ui_ui test eax, eax jnz short loc_7CFF8 mov rdi, r12 mov rsi, r15 call bf_cmpu mov ebx, eax mov rdi, r15 call bf_delete_0 test ebx, ebx js short loc_7D008 mov rbx, [rsp+0A8h+var_A0] inc rbx push 40h ; '@' pop rax jmp loc_7CE5B loc_7CFDF: push 20h ; ' ' pop rax loc_7CFE2: add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7CFF1: mov rcx, [rsp+0A8h+var_80] jmp short loc_7D00D loc_7CFF8: mov ebx, eax lea rdi, [rsp+0A8h+var_58] call bf_delete_0 mov eax, ebx jmp short loc_7CFE2 loc_7D008: mov rcx, [rsp+0A8h+var_A0] loc_7D00D: mov rax, [rsp+0A8h+var_78] mov [rax], rcx xor eax, eax jmp short loc_7CFE2
long long bf_convert_to_radix( long long *a1, unsigned long long *a2, long long a3, signed int a4, long long a5, int a6, int a7) { unsigned long long v9; // rbx unsigned long long v11; // rax unsigned long long v12; // rdx unsigned long long v13; // rax long long v14; // r15 long long i; // rbp long long v16; // r13 char v17; // bl char v18; // al char v19; // al unsigned int v20; // eax int v21; // ebx unsigned long long v22; // rcx unsigned int v23; // ebx unsigned long long v25; // [rsp+8h] [rbp-A0h] unsigned long long v27; // [rsp+18h] [rbp-90h] unsigned long long v28; // [rsp+20h] [rbp-88h] unsigned long long v29; // [rsp+28h] [rbp-80h] unsigned long long v30; // [rsp+38h] [rbp-70h] unsigned long long v31; // [rsp+40h] [rbp-68h] long long v32; // [rsp+48h] [rbp-60h] long long v33; // [rsp+50h] [rbp-58h] BYREF int v34; // [rsp+58h] [rbp-50h] unsigned long long v35; // [rsp+60h] [rbp-48h] __int128 v36; // [rsp+68h] [rbp-40h] if ( !*(_QWORD *)(a3 + 24) ) { *a2 = 0LL; return bf_set((long long)a1, a3); } if ( a7 ) v9 = *a2; else v9 = bf_mul_log2_radix(*(_QWORD *)(a3 + 16) - 1LL, a4, 1, 0) + 1; v31 = bf_mul_log2_radix(a5, a4, 0, 1); v27 = a4; v11 = 64LL; v29 = v9; v30 = a5; while ( 2 ) { v25 = v9; v12 = v9 - a5; v32 = a5 - v9; if ( (long long)(v9 - a5) < 0 ) v12 = a5 - v9; v28 = v12; if ( v12 != 1 ) { _BitScanReverse64(&v13, v12 - 1); v11 = v13 ^ 0x3F; } v14 = 129 - 2 * v11; if ( v12 < 2 ) v14 = 1LL; for ( i = 16LL; ; i += i / 2 ) { v16 = v31 + i + v14; v17 = bf_pow_ui_ui(a1, v27, v28, v16, 0x7E0u); if ( v32 < 0 ) v18 = bf_div((__int128 *)a1, (__int128 *)a3, (__int128 *)a1, v16, 2016LL); else v18 = bf_mul(a1, a1, (long long *)a3, v16, 0x7E0u); v19 = v17 | v18; if ( (v19 & 0x20) != 0 ) return 32LL; if ( (v19 & 0x10) == 0 || bf_can_round(a1, a1[2], a6, v31 + i) ) break; } if ( (bf_rint((long long)a1, a6) & 0x20) != 0 ) return 32LL; if ( a7 ) { v22 = v29; } else { v33 = *a1; v34 = 0; v35 = 0x8000000000000000LL; v36 = 0LL; a5 = v30; v20 = bf_pow_ui_ui(&v33, v27, v30, 0x3FFFFFFFFFFFFFFFLL, 1u); if ( v20 ) { v23 = v20; bf_delete_0(&v33); return v23; } v21 = bf_cmpu(a1, &v33); bf_delete_0(&v33); if ( v21 >= 0 ) { v9 = v25 + 1; v11 = 64LL; continue; } v22 = v25; } break; } *a2 = v22; return 0LL; }
bf_convert_to_radix: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV dword ptr [RSP],R9D MOV R12,RDI CMP qword ptr [RDX + 0x18],0x0 JZ 0x0017cdfc MOV R14,R8 MOV EBP,ECX MOV EAX,dword ptr [RSP + 0xb0] MOV dword ptr [RSP + 0x4],EAX TEST EAX,EAX MOV qword ptr [RSP + 0x30],RSI MOV qword ptr [RSP + 0x10],RDX JZ 0x0017ce19 MOV RBX,qword ptr [RSI] JMP 0x0017ce32 LAB_0017cdfc: AND qword ptr [RSI],0x0 MOV RDI,R12 MOV RSI,RDX ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00173216 LAB_0017ce19: MOV RDI,qword ptr [RDX + 0x10] DEC RDI PUSH 0x1 POP RDX MOV ESI,EBP XOR ECX,ECX CALL 0x00176f55 MOV RBX,RAX INC RBX LAB_0017ce32: PUSH 0x1 POP RCX MOV RDI,R14 MOV ESI,EBP XOR EDX,EDX CALL 0x00176f55 MOV qword ptr [RSP + 0x40],RAX MOVSXD RAX,EBP MOV qword ptr [RSP + 0x18],RAX PUSH 0x40 POP RAX MOV qword ptr [RSP + 0x28],RBX MOV qword ptr [RSP + 0x38],R14 LAB_0017ce5b: MOV RCX,R14 MOV qword ptr [RSP + 0x8],RBX SUB RCX,RBX MOV RDX,RCX NEG RDX MOV qword ptr [RSP + 0x48],RCX CMOVS RDX,RCX MOV qword ptr [RSP + 0x20],RDX MOV RCX,RDX DEC RCX JZ 0x0017ce8a BSR RAX,RCX XOR RAX,0x3f LAB_0017ce8a: ADD RAX,RAX MOV R15D,0x81 SUB R15,RAX CMP qword ptr [RSP + 0x20],0x2 PUSH 0x1 POP RAX CMOVC R15,RAX PUSH 0x10 POP RBP LAB_0017cea6: MOV RAX,qword ptr [RSP + 0x40] LEA R14,[RAX + RBP*0x1] LEA R13,[R14 + R15*0x1] MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] MOV RCX,R13 MOV R8D,0x7e0 CALL 0x001765cf MOV EBX,EAX CMP qword ptr [RSP + 0x48],0x0 JS 0x0017cef3 MOV RDI,R12 MOV RSI,R12 MOV RDX,qword ptr [RSP + 0x10] MOV RCX,R13 MOV R8D,0x7e0 CALL 0x00174959 JMP 0x0017cf0c LAB_0017cef3: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x10] MOV RDX,R12 MOV RCX,R13 MOV R8D,0x7e0 CALL 0x001758a2 LAB_0017cf0c: OR EAX,EBX TEST AL,0x20 JNZ 0x0017cfdf TEST AL,0x10 JZ 0x0017cf44 MOV RSI,qword ptr [R12 + 0x10] MOV RDI,R12 MOV EDX,dword ptr [RSP] MOV RCX,R14 CALL 0x001736e0 TEST EAX,EAX JNZ 0x0017cf44 MOV RAX,RBP CQO PUSH 0x2 POP RCX IDIV RCX ADD RBP,RAX JMP 0x0017cea6 LAB_0017cf44: MOV RDI,R12 MOV ESI,dword ptr [RSP] CALL 0x001757ed TEST AL,0x20 JNZ 0x0017cfdf CMP dword ptr [RSP + 0x4],0x0 JNZ 0x0017cff1 MOV RAX,qword ptr [R12] MOV qword ptr [RSP + 0x50],RAX AND dword ptr [RSP + 0x58],0x0 MOV RAX,-0x8000000000000000 MOV qword ptr [RSP + 0x60],RAX LEA RAX,[RSP + 0x68] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 LEA R15,[RSP + 0x50] MOV RDI,R15 MOV RSI,qword ptr [RSP + 0x18] MOV R14,qword ptr [RSP + 0x38] MOV RDX,R14 MOV RCX,0x3fffffffffffffff PUSH 0x1 POP R8 CALL 0x001765cf TEST EAX,EAX JNZ 0x0017cff8 MOV RDI,R12 MOV RSI,R15 CALL 0x00173916 MOV EBX,EAX MOV RDI,R15 CALL 0x0017500e TEST EBX,EBX JS 0x0017d008 MOV RBX,qword ptr [RSP + 0x8] INC RBX PUSH 0x40 POP RAX JMP 0x0017ce5b LAB_0017cfdf: PUSH 0x20 POP RAX LAB_0017cfe2: ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017cff1: MOV RCX,qword ptr [RSP + 0x28] JMP 0x0017d00d LAB_0017cff8: MOV EBX,EAX LEA RDI,[RSP + 0x50] CALL 0x0017500e MOV EAX,EBX JMP 0x0017cfe2 LAB_0017d008: MOV RCX,qword ptr [RSP + 0x8] LAB_0017d00d: MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RAX],RCX XOR EAX,EAX JMP 0x0017cfe2
ulong bf_convert_to_radix(int8 *param_1,long *param_2,long param_3,int param_4,long param_5, int4 param_6,int param_7) { long lVar1; uint uVar2; uint uVar3; int iVar4; long lVar5; long lVar6; ulong uVar7; ulong uVar8; ulong uVar9; long lVar10; ulong uVar11; long lVar12; long lVar13; int8 uStack_58; int4 uStack_50; int8 uStack_48; int8 uStack_40; int8 uStack_38; if (*(long *)(param_3 + 0x18) == 0) { *param_2 = 0; uVar7 = bf_set(param_1,param_3); return uVar7; } if (param_7 == 0) { lVar5 = bf_mul_log2_radix(*(long *)(param_3 + 0x10) + -1,param_4,1,0); lVar5 = lVar5 + 1; } else { lVar5 = *param_2; } lVar6 = bf_mul_log2_radix(param_5,param_4,0,1); lVar12 = lVar5; while( true ) { uVar7 = 0x40; uVar8 = param_5 - lVar12; uVar11 = -uVar8; if (0 < (long)uVar8) { uVar11 = uVar8; } uVar9 = uVar11 - 1; if (uVar9 != 0) { uVar7 = 0x3f; if (uVar9 != 0) { for (; uVar9 >> uVar7 == 0; uVar7 = uVar7 - 1) { } } uVar7 = uVar7 ^ 0x3f; } lVar10 = uVar7 * -2 + 0x81; if (uVar11 < 2) { lVar10 = 1; } lVar13 = 0x10; while( true ) { lVar1 = lVar6 + lVar13 + lVar10; uVar2 = bf_pow_ui_ui(param_1,(long)param_4,uVar11,lVar1,0x7e0); if ((long)uVar8 < 0) { uVar3 = bf_div(param_1,param_3,param_1,lVar1,0x7e0); } else { uVar3 = bf_mul(param_1,param_1,param_3,lVar1,0x7e0); } if (((uVar3 | uVar2) & 0x20) != 0) { return 0x20; } if ((((uVar3 | uVar2) & 0x10) == 0) || (iVar4 = bf_can_round(param_1,param_1[2],param_6,lVar6 + lVar13), iVar4 != 0)) break; lVar13 = lVar13 + lVar13 / 2; } uVar7 = bf_rint(param_1,param_6); if ((uVar7 & 0x20) != 0) { return 0x20; } lVar10 = lVar5; if (param_7 != 0) break; uStack_58 = *param_1; uStack_50 = 0; uStack_48 = 0x8000000000000000; uStack_40 = 0; uStack_38 = 0; uVar2 = bf_pow_ui_ui(&uStack_58,(long)param_4,param_5,0x3fffffffffffffff,1); if (uVar2 != 0) { bf_delete(&uStack_58); return (ulong)uVar2; } iVar4 = bf_cmpu(param_1,&uStack_58); bf_delete(&uStack_58); lVar10 = lVar12; if (iVar4 < 0) break; lVar12 = lVar12 + 1; } *param_2 = lVar10; return 0; }
51,001
bf_convert_to_radix
bluesky950520[P]quickjs/libbf.c
static int bf_convert_to_radix(bf_t *r, slimb_t *pE, const bf_t *a, int radix, limb_t P, bf_rnd_t rnd_mode, BOOL is_fixed_exponent) { slimb_t E, e, prec, extra_bits, ziv_extra_bits, prec0; bf_t B_s, *B = &B_s; int e_sign, ret, res; if (a->len == 0) { /* zero case */ *pE = 0; return bf_set(r, a); } if (is_fixed_exponent) { E = *pE; } else { /* compute the new exponent */ E = 1 + bf_mul_log2_radix(a->expn - 1, radix, TRUE, FALSE); } // bf_print_str("a", a); // printf("E=%ld P=%ld radix=%d\n", E, P, radix); for(;;) { e = P - E; e_sign = 0; if (e < 0) { e = -e; e_sign = 1; } /* Note: precision for log2(radix) is not critical here */ prec0 = bf_mul_log2_radix(P, radix, FALSE, TRUE); ziv_extra_bits = 16; for(;;) { prec = prec0 + ziv_extra_bits; /* XXX: rigorous error analysis needed */ extra_bits = ceil_log2(e) * 2 + 1; ret = bf_pow_ui_ui(r, radix, e, prec + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP); if (!e_sign) ret |= bf_mul(r, r, a, prec + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP); else ret |= bf_div(r, a, r, prec + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP); if (ret & BF_ST_MEM_ERROR) return BF_ST_MEM_ERROR; /* if the result is not exact, check that it can be safely rounded to an integer */ if ((ret & BF_ST_INEXACT) && !bf_can_round(r, r->expn, rnd_mode, prec)) { /* and more precision and retry */ ziv_extra_bits = ziv_extra_bits + (ziv_extra_bits / 2); continue; } else { ret = bf_rint(r, rnd_mode); if (ret & BF_ST_MEM_ERROR) return BF_ST_MEM_ERROR; break; } } if (is_fixed_exponent) break; /* check that the result is < B^P */ /* XXX: do a fast approximate test first ? */ bf_init(r->ctx, B); ret = bf_pow_ui_ui(B, radix, P, BF_PREC_INF, BF_RNDZ); if (ret) { bf_delete(B); return ret; } res = bf_cmpu(r, B); bf_delete(B); if (res < 0) break; /* try a larger exponent */ E++; } *pE = E; return 0; }
O3
c
bf_convert_to_radix: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %r9d, 0xc(%rsp) movq %rdi, %r12 cmpq $0x0, 0x18(%rdx) je 0x9801f movq %r8, %r14 movl %ecx, %ebp movl 0xc0(%rsp), %eax movl %eax, 0x14(%rsp) testl %eax, %eax movq %rsi, 0x38(%rsp) movq %rdx, 0x18(%rsp) je 0x98042 movq (%rsi), %rbx jmp 0x9805d movq $0x0, (%rsi) movq %r12, %rdi movq %rdx, %rsi addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x8b6e2 movq 0x10(%rdx), %rdi decq %rdi movl %ebp, %esi movl $0x1, %edx xorl %ecx, %ecx callq 0x90485 movq %rax, %rbx incq %rbx movq %r14, %rdi movl %ebp, %esi xorl %edx, %edx movl $0x1, %ecx callq 0x90485 movq %rax, 0x50(%rsp) movslq %ebp, %rax movq %rax, 0x20(%rsp) movl 0xc(%rsp), %eax orl $0x10, %eax movl %eax, 0x10(%rsp) movq %rbx, 0x30(%rsp) movq %r14, 0x40(%rsp) subq %rbx, %r14 movq %r14, %rax negq %rax movq %r14, 0x58(%rsp) cmovsq %r14, %rax movq %rax, 0x28(%rsp) decq %rax movq %rbx, 0x48(%rsp) je 0x980bb bsrq %rax, %rax xorq $0x3f, %rax jmp 0x980c0 movl $0x40, %eax addq %rax, %rax movl $0x81, %r13d subq %rax, %r13 cmpq $0x2, 0x28(%rsp) movl $0x1, %eax cmovbq %rax, %r13 movl $0x10, %r15d movq 0x50(%rsp), %rax leaq (%r15,%rax), %r14 leaq (%r14,%r13), %rbx movq %r12, %rdi movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx movq %rbx, %rcx movl $0x7e0, %r8d # imm = 0x7E0 callq 0x8f898 movl %eax, %ebp cmpq $0x0, 0x58(%rsp) js 0x9812e movq %r12, %rdi movq %r12, %rsi movq 0x18(%rsp), %rdx movq %rbx, %rcx movl $0x7e0, %r8d # imm = 0x7E0 callq 0x8d184 jmp 0x9814e movq %r12, %rdi movq 0x18(%rsp), %rsi movq %r12, %rdx movq %rbx, %rcx movl $0x7e0, %r8d # imm = 0x7E0 leaq -0x9a4b(%rip), %r9 # 0x8e6fe callq 0x8e645 orl %ebp, %eax movl $0x20, %ebp testb $0x20, %al jne 0x98261 testb $0x10, %al je 0x9818e movq 0x10(%r12), %rsi movq %r12, %rdi movl 0xc(%rsp), %edx movq %r14, %rcx callq 0x8bc29 testl %eax, %eax jne 0x9818e movq %r15, %rax shrq $0x3f, %rax addq %r15, %rax sarq %rax addq %rax, %r15 jmp 0x980e1 movq 0x18(%r12), %rcx testq %rcx, %rcx je 0x981b1 movq %r12, %rdi xorl %esi, %esi movl 0x10(%rsp), %edx xorl %r8d, %r8d callq 0x8b88b testb $0x20, %al jne 0x98261 cmpl $0x0, 0x14(%rsp) jne 0x98252 movq (%r12), %rax movq %rax, 0x60(%rsp) movl $0x0, 0x68(%rsp) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x70(%rsp) leaq 0x78(%rsp), %rax xorps %xmm0, %xmm0 movups %xmm0, (%rax) leaq 0x60(%rsp), %rbx movq %rbx, %rdi movq 0x20(%rsp), %rsi movq 0x40(%rsp), %r14 movq %r14, %rdx movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF movl $0x1, %r8d callq 0x8f898 testl %eax, %eax jne 0x98275 movq %r12, %rdi movq %rbx, %rsi callq 0x8be6c movl %eax, %ebx movq 0x60(%rsp), %rax testq %rax, %rax je 0x98241 movq 0x80(%rsp), %rsi testq %rsi, %rsi je 0x98241 movq (%rax), %rdi xorl %edx, %edx callq *0x8(%rax) testl %ebx, %ebx movq 0x48(%rsp), %rbx js 0x98257 incq %rbx jmp 0x98090 movq 0x30(%rsp), %rbx movq 0x38(%rsp), %rax movq %rbx, (%rax) xorl %ebp, %ebp movl %ebp, %eax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl %eax, %ebp movq 0x60(%rsp), %rax testq %rax, %rax je 0x98261 movq 0x80(%rsp), %rsi testq %rsi, %rsi je 0x98261 movq (%rax), %rdi xorl %edx, %edx callq *0x8(%rax) jmp 0x98261
bf_convert_to_radix: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov [rsp+0B8h+var_AC], r9d mov r12, rdi cmp qword ptr [rdx+18h], 0 jz short loc_9801F mov r14, r8 mov ebp, ecx mov eax, [rsp+0B8h+arg_0] mov [rsp+0B8h+var_A4], eax test eax, eax mov [rsp+0B8h+var_80], rsi mov [rsp+0B8h+var_A0], rdx jz short loc_98042 mov rbx, [rsi] jmp short loc_9805D loc_9801F: mov qword ptr [rsi], 0 mov rdi, r12 mov rsi, rdx add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp bf_set loc_98042: mov rdi, [rdx+10h] dec rdi mov esi, ebp mov edx, 1 xor ecx, ecx call bf_mul_log2_radix mov rbx, rax inc rbx loc_9805D: mov rdi, r14 mov esi, ebp xor edx, edx mov ecx, 1 call bf_mul_log2_radix mov [rsp+0B8h+var_68], rax movsxd rax, ebp mov [rsp+0B8h+var_98], rax mov eax, [rsp+0B8h+var_AC] or eax, 10h mov [rsp+0B8h+var_A8], eax mov [rsp+0B8h+var_88], rbx mov [rsp+0B8h+var_78], r14 loc_98090: sub r14, rbx mov rax, r14 neg rax mov [rsp+0B8h+var_60], r14 cmovs rax, r14 mov [rsp+0B8h+var_90], rax dec rax mov [rsp+0B8h+var_70], rbx jz short loc_980BB bsr rax, rax xor rax, 3Fh jmp short loc_980C0 loc_980BB: mov eax, 40h ; '@' loc_980C0: add rax, rax mov r13d, 81h sub r13, rax cmp [rsp+0B8h+var_90], 2 mov eax, 1 cmovb r13, rax mov r15d, 10h loc_980E1: mov rax, [rsp+0B8h+var_68] lea r14, [r15+rax] lea rbx, [r14+r13] mov rdi, r12 mov rsi, [rsp+0B8h+var_98] mov rdx, [rsp+0B8h+var_90] mov rcx, rbx mov r8d, 7E0h call bf_pow_ui_ui mov ebp, eax cmp [rsp+0B8h+var_60], 0 js short loc_9812E mov rdi, r12 mov rsi, r12 mov rdx, [rsp+0B8h+var_A0] mov rcx, rbx mov r8d, 7E0h call bf_mul jmp short loc_9814E loc_9812E: mov rdi, r12 mov rsi, [rsp+0B8h+var_A0] mov rdx, r12 mov rcx, rbx mov r8d, 7E0h lea r9, __bf_div call bf_op2 loc_9814E: or eax, ebp mov ebp, 20h ; ' ' test al, 20h jnz loc_98261 test al, 10h jz short loc_9818E mov rsi, [r12+10h] mov rdi, r12 mov edx, [rsp+0B8h+var_AC] mov rcx, r14 call bf_can_round test eax, eax jnz short loc_9818E mov rax, r15 shr rax, 3Fh add rax, r15 sar rax, 1 add r15, rax jmp loc_980E1 loc_9818E: mov rcx, [r12+18h] test rcx, rcx jz short loc_981B1 mov rdi, r12 xor esi, esi mov edx, [rsp+0B8h+var_A8] xor r8d, r8d call __bf_round test al, 20h jnz loc_98261 loc_981B1: cmp [rsp+0B8h+var_A4], 0 jnz loc_98252 mov rax, [r12] mov [rsp+0B8h+var_58], rax mov [rsp+0B8h+var_50], 0 mov rax, 8000000000000000h mov [rsp+0B8h+var_48], rax lea rax, [rsp+0B8h+var_40] xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 lea rbx, [rsp+0B8h+var_58] mov rdi, rbx mov rsi, [rsp+0B8h+var_98] mov r14, [rsp+0B8h+var_78] mov rdx, r14 mov rcx, 3FFFFFFFFFFFFFFFh mov r8d, 1 call bf_pow_ui_ui test eax, eax jnz short loc_98275 mov rdi, r12 mov rsi, rbx call bf_cmpu mov ebx, eax mov rax, [rsp+0B8h+var_58] test rax, rax jz short loc_98241 mov rsi, [rsp+0B8h+var_38] test rsi, rsi jz short loc_98241 mov rdi, [rax] xor edx, edx call qword ptr [rax+8] loc_98241: test ebx, ebx mov rbx, [rsp+0B8h+var_70] js short loc_98257 inc rbx jmp loc_98090 loc_98252: mov rbx, [rsp+0B8h+var_88] loc_98257: mov rax, [rsp+0B8h+var_80] mov [rax], rbx xor ebp, ebp loc_98261: mov eax, ebp add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_98275: mov ebp, eax mov rax, [rsp+0B8h+var_58] test rax, rax jz short loc_98261 mov rsi, [rsp+0B8h+var_38] test rsi, rsi jz short loc_98261 mov rdi, [rax] xor edx, edx call qword ptr [rax+8] jmp short loc_98261
long long bf_convert_to_radix( long long a1, unsigned long long *a2, long long a3, signed int a4, long long a5, int a6, int a7) { unsigned long long v9; // rbx long long v11; // r14 unsigned long long v12; // rax unsigned long long v13; // rax long long v14; // rax long long v15; // r13 long long i; // r15 long long v17; // rbx char v18; // bp char v19; // al char v20; // al unsigned int v21; // ebp unsigned long long v22; // rcx unsigned int v23; // eax int v24; // ebx bool v25; // sf unsigned long long v26; // rbx unsigned long long v29; // [rsp+20h] [rbp-98h] unsigned long long v30; // [rsp+28h] [rbp-90h] unsigned long long v31; // [rsp+30h] [rbp-88h] unsigned long long v32; // [rsp+40h] [rbp-78h] unsigned long long v33; // [rsp+48h] [rbp-70h] unsigned long long v34; // [rsp+50h] [rbp-68h] _QWORD *v35; // [rsp+60h] [rbp-58h] BYREF int v36; // [rsp+68h] [rbp-50h] unsigned long long v37; // [rsp+70h] [rbp-48h] __int128 v38; // [rsp+78h] [rbp-40h] if ( *(_QWORD *)(a3 + 24) ) { if ( a7 ) v9 = *a2; else v9 = bf_mul_log2_radix(*(_QWORD *)(a3 + 16) - 1LL, a4, 1, 0) + 1; v34 = bf_mul_log2_radix(a5, a4, 0, 1); v29 = a4; v31 = v9; v32 = a5; while ( 2 ) { v11 = a5 - v9; v12 = -v11; if ( v11 > 0 ) v12 = v11; v30 = v12; v13 = v12 - 1; v33 = v9; if ( v13 ) { _BitScanReverse64(&v13, v13); v14 = v13 ^ 0x3F; } else { v14 = 64LL; } v15 = 129 - 2 * v14; if ( v30 < 2 ) v15 = 1LL; for ( i = 16LL; ; i += i / 2 ) { v17 = i + v34 + v15; v18 = bf_pow_ui_ui((_QWORD **)a1, v29, v30, v17, 0x7E0u); if ( v11 < 0 ) v19 = bf_op2( (__int128 *)a1, (__int128 *)a3, (__int128 *)a1, v17, 2016LL, (long long ( *)(__int128 *))_bf_div); else v19 = bf_mul((__int128 *)a1, a1, a3, v17, 0x7E0u); v20 = v18 | v19; v21 = 32; if ( (v20 & 0x20) != 0 ) return v21; if ( (v20 & 0x10) == 0 || bf_can_round((_QWORD *)a1, *(_QWORD *)(a1 + 16), a6, i + v34) ) break; } v22 = *(_QWORD *)(a1 + 24); if ( !v22 || (_bf_round((_QWORD **)a1, 0LL, a6 | 0x10u, v22, 0) & 0x20) == 0 ) { if ( a7 ) { v26 = v31; LABEL_32: *a2 = v26; return 0; } v35 = *(_QWORD **)a1; v36 = 0; v37 = 0x8000000000000000LL; v38 = 0LL; a5 = v32; v23 = bf_pow_ui_ui(&v35, v29, v32, 0x3FFFFFFFFFFFFFFFLL, 1u); if ( !v23 ) { v24 = bf_cmpu((_QWORD *)a1, &v35); if ( v35 ) { if ( *((_QWORD *)&v38 + 1) ) ((void ( *)(_QWORD, _QWORD, _QWORD))v35[1])(*v35, *((_QWORD *)&v38 + 1), 0LL); } v25 = v24 < 0; v26 = v33; if ( !v25 ) { v9 = v33 + 1; continue; } goto LABEL_32; } v21 = v23; if ( v35 && *((_QWORD *)&v38 + 1) ) ((void ( *)(_QWORD, _QWORD, _QWORD))v35[1])(*v35, *((_QWORD *)&v38 + 1), 0LL); } return v21; } } else { *a2 = 0LL; return bf_set((_QWORD *)a1, a3); } }
bf_convert_to_radix: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV dword ptr [RSP + 0xc],R9D MOV R12,RDI CMP qword ptr [RDX + 0x18],0x0 JZ 0x0019801f MOV R14,R8 MOV EBP,ECX MOV EAX,dword ptr [RSP + 0xc0] MOV dword ptr [RSP + 0x14],EAX TEST EAX,EAX MOV qword ptr [RSP + 0x38],RSI MOV qword ptr [RSP + 0x18],RDX JZ 0x00198042 MOV RBX,qword ptr [RSI] JMP 0x0019805d LAB_0019801f: MOV qword ptr [RSI],0x0 MOV RDI,R12 MOV RSI,RDX ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0018b6e2 LAB_00198042: MOV RDI,qword ptr [RDX + 0x10] DEC RDI MOV ESI,EBP MOV EDX,0x1 XOR ECX,ECX CALL 0x00190485 MOV RBX,RAX INC RBX LAB_0019805d: MOV RDI,R14 MOV ESI,EBP XOR EDX,EDX MOV ECX,0x1 CALL 0x00190485 MOV qword ptr [RSP + 0x50],RAX MOVSXD RAX,EBP MOV qword ptr [RSP + 0x20],RAX MOV EAX,dword ptr [RSP + 0xc] OR EAX,0x10 MOV dword ptr [RSP + 0x10],EAX MOV qword ptr [RSP + 0x30],RBX MOV qword ptr [RSP + 0x40],R14 LAB_00198090: SUB R14,RBX MOV RAX,R14 NEG RAX MOV qword ptr [RSP + 0x58],R14 CMOVS RAX,R14 MOV qword ptr [RSP + 0x28],RAX DEC RAX MOV qword ptr [RSP + 0x48],RBX JZ 0x001980bb BSR RAX,RAX XOR RAX,0x3f JMP 0x001980c0 LAB_001980bb: MOV EAX,0x40 LAB_001980c0: ADD RAX,RAX MOV R13D,0x81 SUB R13,RAX CMP qword ptr [RSP + 0x28],0x2 MOV EAX,0x1 CMOVC R13,RAX MOV R15D,0x10 LAB_001980e1: MOV RAX,qword ptr [RSP + 0x50] LEA R14,[R15 + RAX*0x1] LEA RBX,[R14 + R13*0x1] MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] MOV RCX,RBX MOV R8D,0x7e0 CALL 0x0018f898 MOV EBP,EAX CMP qword ptr [RSP + 0x58],0x0 JS 0x0019812e MOV RDI,R12 MOV RSI,R12 MOV RDX,qword ptr [RSP + 0x18] MOV RCX,RBX MOV R8D,0x7e0 CALL 0x0018d184 JMP 0x0019814e LAB_0019812e: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x18] MOV RDX,R12 MOV RCX,RBX MOV R8D,0x7e0 LEA R9,[0x18e6fe] CALL 0x0018e645 LAB_0019814e: OR EAX,EBP MOV EBP,0x20 TEST AL,0x20 JNZ 0x00198261 TEST AL,0x10 JZ 0x0019818e MOV RSI,qword ptr [R12 + 0x10] MOV RDI,R12 MOV EDX,dword ptr [RSP + 0xc] MOV RCX,R14 CALL 0x0018bc29 TEST EAX,EAX JNZ 0x0019818e MOV RAX,R15 SHR RAX,0x3f ADD RAX,R15 SAR RAX,0x1 ADD R15,RAX JMP 0x001980e1 LAB_0019818e: MOV RCX,qword ptr [R12 + 0x18] TEST RCX,RCX JZ 0x001981b1 MOV RDI,R12 XOR ESI,ESI MOV EDX,dword ptr [RSP + 0x10] XOR R8D,R8D CALL 0x0018b88b TEST AL,0x20 JNZ 0x00198261 LAB_001981b1: CMP dword ptr [RSP + 0x14],0x0 JNZ 0x00198252 MOV RAX,qword ptr [R12] MOV qword ptr [RSP + 0x60],RAX MOV dword ptr [RSP + 0x68],0x0 MOV RAX,-0x8000000000000000 MOV qword ptr [RSP + 0x70],RAX LEA RAX,[RSP + 0x78] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 LEA RBX,[RSP + 0x60] MOV RDI,RBX MOV RSI,qword ptr [RSP + 0x20] MOV R14,qword ptr [RSP + 0x40] MOV RDX,R14 MOV RCX,0x3fffffffffffffff MOV R8D,0x1 CALL 0x0018f898 TEST EAX,EAX JNZ 0x00198275 MOV RDI,R12 MOV RSI,RBX CALL 0x0018be6c MOV EBX,EAX MOV RAX,qword ptr [RSP + 0x60] TEST RAX,RAX JZ 0x00198241 MOV RSI,qword ptr [RSP + 0x80] TEST RSI,RSI JZ 0x00198241 MOV RDI,qword ptr [RAX] XOR EDX,EDX CALL qword ptr [RAX + 0x8] LAB_00198241: TEST EBX,EBX MOV RBX,qword ptr [RSP + 0x48] JS 0x00198257 INC RBX JMP 0x00198090 LAB_00198252: MOV RBX,qword ptr [RSP + 0x30] LAB_00198257: MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RAX],RBX XOR EBP,EBP LAB_00198261: MOV EAX,EBP ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00198275: MOV EBP,EAX MOV RAX,qword ptr [RSP + 0x60] TEST RAX,RAX JZ 0x00198261 MOV RSI,qword ptr [RSP + 0x80] TEST RSI,RSI JZ 0x00198261 MOV RDI,qword ptr [RAX] XOR EDX,EDX CALL qword ptr [RAX + 0x8] JMP 0x00198261
ulong bf_convert_to_radix(int8 *param_1,long *param_2,long param_3,int param_4,long param_5, uint param_6,int param_7) { long lVar1; uint uVar2; uint uVar3; int iVar4; long lVar5; long lVar6; ulong uVar7; ulong uVar8; ulong uVar9; long lVar10; long lVar11; ulong uVar12; long lVar13; int8 *puStack_58; int4 uStack_50; int8 uStack_48; int8 uStack_40; long lStack_38; if (*(long *)(param_3 + 0x18) == 0) { *param_2 = 0; uVar9 = bf_set(param_1,param_3); return uVar9; } if (param_7 == 0) { lVar5 = bf_mul_log2_radix(*(long *)(param_3 + 0x10) + -1,param_4,1,0); lVar5 = lVar5 + 1; } else { lVar5 = *param_2; } lVar6 = bf_mul_log2_radix(param_5,param_4,0,1); lVar10 = lVar5; while( true ) { uVar12 = param_5 - lVar10; uVar9 = -uVar12; if (0 < (long)uVar12) { uVar9 = uVar12; } uVar7 = uVar9 - 1; if (uVar7 == 0) { uVar8 = 0x40; } else { uVar8 = 0x3f; if (uVar7 != 0) { for (; uVar7 >> uVar8 == 0; uVar8 = uVar8 - 1) { } } uVar8 = uVar8 ^ 0x3f; } lVar11 = uVar8 * -2 + 0x81; if (uVar9 < 2) { lVar11 = 1; } lVar13 = 0x10; while( true ) { lVar1 = lVar13 + lVar6 + lVar11; uVar2 = bf_pow_ui_ui(param_1,(long)param_4,uVar9,lVar1,0x7e0); if ((long)uVar12 < 0) { uVar3 = bf_op2(param_1,param_3,param_1,lVar1,0x7e0,__bf_div); } else { uVar3 = bf_mul(param_1,param_1,param_3,lVar1,0x7e0); } if (((uVar3 | uVar2) & 0x20) != 0) { return 0x20; } if ((((uVar3 | uVar2) & 0x10) == 0) || (iVar4 = bf_can_round(param_1,param_1[2],param_6,lVar13 + lVar6), iVar4 != 0)) break; lVar13 = lVar13 + lVar13 / 2; } if ((param_1[3] != 0) && (uVar9 = __bf_round(param_1,0,param_6 | 0x10,param_1[3],0), (uVar9 & 0x20) != 0)) { return 0x20; } lVar11 = lVar5; if (param_7 != 0) break; puStack_58 = (int8 *)*param_1; uStack_50 = 0; uStack_48 = 0x8000000000000000; uStack_40 = 0; lStack_38 = 0; uVar2 = bf_pow_ui_ui(&puStack_58,(long)param_4,param_5,0x3fffffffffffffff,1); if (uVar2 != 0) { uVar9 = (ulong)uVar2; if (puStack_58 == (int8 *)0x0) { return uVar9; } if (lStack_38 == 0) { return uVar9; } (*(code *)puStack_58[1])(*puStack_58,lStack_38,0); return uVar9; } iVar4 = bf_cmpu(param_1,&puStack_58); if ((puStack_58 != (int8 *)0x0) && (lStack_38 != 0)) { (*(code *)puStack_58[1])(*puStack_58,lStack_38,0); } lVar11 = lVar10; if (iVar4 < 0) break; lVar10 = lVar10 + 1; } *param_2 = lVar11; return 0; }
51,002
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::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<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, minja::Value>>>::at(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
T& at(const key_type& key) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it->second; } } JSON_THROW(std::out_of_range("key not found")); }
O0
cpp
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::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<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, minja::Value>>>::at(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 $0x48, %rsp movq %rdi, 0x40(%rsp) movq %rsi, 0x38(%rsp) movq 0x40(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x113de0 movq %rax, 0x30(%rsp) movq 0x10(%rsp), %rdi callq 0x113e50 movq %rax, 0x28(%rsp) leaq 0x30(%rsp), %rdi leaq 0x28(%rsp), %rsi callq 0x113e10 testb $0x1, %al jne 0x135316 jmp 0x135367 movq 0x10(%rsp), %rax addq $0x18, %rax movq %rax, 0x8(%rsp) leaq 0x30(%rsp), %rdi callq 0x113e80 movq 0x8(%rsp), %rdi movq %rax, %rsi movq 0x38(%rsp), %rdx callq 0x127a30 testb $0x1, %al jne 0x135346 jmp 0x135359 leaq 0x30(%rsp), %rdi callq 0x113e80 addq $0x10, %rax addq $0x48, %rsp retq jmp 0x13535b leaq 0x30(%rsp), %rdi callq 0x1141d0 jmp 0x1352f2 movl $0x10, %edi callq 0x5a680 movq %rax, %rdi movq %rdi, %rax movq %rax, (%rsp) leaq 0xdeb0b(%rip), %rsi # 0x213e8d callq 0x5a490 jmp 0x135389 movq (%rsp), %rdi movq 0x16fb84(%rip), %rsi # 0x2a4f18 movq 0x16fbe5(%rip), %rdx # 0x2a4f80 callq 0x5aae0 movq (%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) callq 0x5af70 movq 0x20(%rsp), %rdi callq 0x5aba0 nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atERSJ_: sub rsp, 48h mov [rsp+48h+var_8], rdi mov [rsp+48h+var_10], rsi mov rdi, [rsp+48h+var_8] mov [rsp+48h+var_38], rdi 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+48h+var_18], rax loc_1352F2: mov rdi, [rsp+48h+var_38] 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+48h+var_20], rax lea rdi, [rsp+48h+var_18] lea rsi, [rsp+48h+var_20] 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_135316 jmp short loc_135367 loc_135316: mov rax, [rsp+48h+var_38] add rax, 18h mov [rsp+48h+var_40], rax lea rdi, [rsp+48h+var_18] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEptEv; __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 rdi, [rsp+48h+var_40] mov rsi, rax mov rdx, [rsp+48h+var_10] call _ZNKSt8equal_toIvEclIRKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEESI_EEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSJ_OSK_ test al, 1 jnz short loc_135346 jmp short loc_135359 loc_135346: lea rdi, [rsp+48h+var_18] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEptEv; __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) add rax, 10h add rsp, 48h retn loc_135359: jmp short $+2 loc_13535B: lea rdi, [rsp+48h+var_18] 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 short loc_1352F2 loc_135367: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rsp+48h+var_48], rax lea rsi, aKeyNotFound; "key not found" call __ZNSt12out_of_rangeC1EPKc; std::out_of_range::out_of_range(char const*) jmp short $+2 loc_135389: mov rdi, [rsp+48h+var_48]; void * mov rsi, cs:_ZTISt12out_of_range_ptr; lptinfo mov rdx, cs:_ZNSt12out_of_rangeD1Ev_ptr; void (*)(void *) call ___cxa_throw mov rdi, [rsp+48h+var_48]; void * mov rcx, rax mov eax, edx mov [rsp+48h+var_28], rcx mov [rsp+48h+var_2C], eax call ___cxa_free_exception mov rdi, [rsp+48h+var_28] call __Unwind_Resume
long long 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( long long a1, long long a2) { long long v2; // rax std::out_of_range *exception; // [rsp+0h] [rbp-48h] long long v5; // [rsp+28h] [rbp-20h] BYREF long long i; // [rsp+30h] [rbp-18h] BYREF long long v7; // [rsp+38h] [rbp-10h] long long v8; // [rsp+40h] [rbp-8h] v8 = a1; v7 = a2; for ( i = 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(a1); ; __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++(&i) ) { v5 = 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(a1); if ( !__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)&i, (long long)&v5) ) { exception = (std::out_of_range *)__cxa_allocate_exception(0x10uLL); std::out_of_range::out_of_range(exception, "key not found"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::out_of_range, (void (*)(void *))&std::out_of_range::~out_of_range); } v2 = __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)&i); if ( (std::equal_to<void>::operator()<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&>( a1 + 24, v2, v7) & 1) != 0 ) break; } return __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)&i) + 16; }
51,003
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::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<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, minja::Value>>>::at(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
T& at(const key_type& key) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it->second; } } JSON_THROW(std::out_of_range("key not found")); }
O2
cpp
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::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<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, minja::Value>>>::at(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 %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %r15 movq (%rdi), %rbx cmpq 0x8(%r15), %rbx je 0x6e0d4 movq %rbx, %rdi movq %r14, %rsi callq 0x6809c testb %al, %al jne 0x6e0c7 addq $0x60, %rbx jmp 0x6e0ac addq $0x10, %rbx movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq pushq $0x10 popq %rdi callq 0x23480 movq %rax, %rbx leaq 0x463b0(%rip), %rsi # 0xb4496 movq %rax, %rdi callq 0x23100 movq 0x8fec3(%rip), %rsi # 0xfdfb8 movq 0x8fe9c(%rip), %rdx # 0xfdf98 movq %rbx, %rdi callq 0x23f30 movq %rax, %r14 movq %rbx, %rdi callq 0x236b0 movq %r14, %rdi callq 0x23fd0 nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atERSJ_: push r15 push r14 push rbx mov r14, rsi mov r15, rdi mov rbx, [rdi] loc_6E0AC: cmp rbx, [r15+8] jz short loc_6E0D4 mov rdi, rbx mov rsi, r14 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&) test al, al jnz short loc_6E0C7 add rbx, 60h ; '`' jmp short loc_6E0AC loc_6E0C7: add rbx, 10h mov rax, rbx pop rbx pop r14 pop r15 retn loc_6E0D4: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aKeyNotFound; "key not found" mov rdi, rax; this call __ZNSt12out_of_rangeC1EPKc; std::out_of_range::out_of_range(char const*) mov rsi, cs:_ZTISt12out_of_range_ptr; lptinfo mov rdx, cs:_ZNSt12out_of_rangeD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception mov rdi, r14 call __Unwind_Resume
unsigned __int8 * 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( unsigned __int8 **a1, unsigned __int8 *a2, __m128d a3) { unsigned __int8 *i; // rbx std::out_of_range *exception; // rbx for ( i = *a1; ; i += 96 ) { if ( i == a1[1] ) { exception = (std::out_of_range *)__cxa_allocate_exception(0x10uLL); std::out_of_range::out_of_range(exception, "key not found"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::out_of_range, (void (*)(void *))&std::out_of_range::~out_of_range); } if ( nlohmann::json_abi_v3_11_3::operator==(i, a2, a3) ) break; } return i + 16; }
at: PUSH R15 PUSH R14 PUSH RBX MOV R14,RSI MOV R15,RDI MOV RBX,qword ptr [RDI] LAB_0016e0ac: CMP RBX,qword ptr [R15 + 0x8] JZ 0x0016e0d4 MOV RDI,RBX MOV RSI,R14 CALL 0x0016809c TEST AL,AL JNZ 0x0016e0c7 ADD RBX,0x60 JMP 0x0016e0ac LAB_0016e0c7: ADD RBX,0x10 MOV RAX,RBX POP RBX POP R14 POP R15 RET LAB_0016e0d4: PUSH 0x10 POP RDI CALL 0x00123480 MOV RBX,RAX LAB_0016e0df: LEA RSI,[0x1b4496] MOV RDI,RAX CALL 0x00123100 LAB_0016e0ee: MOV RSI,qword ptr [0x001fdfb8] MOV RDX,qword ptr [0x001fdf98] MOV RDI,RBX CALL 0x00123f30
/* 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(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&) */ basic_json * __thiscall 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(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>>> *this,basic_json *param_1) { char cVar1; out_of_range *this_00; basic_json *pbVar2; pbVar2 = *(basic_json **)this; while( true ) { if (pbVar2 == *(basic_json **)(this + 8)) { this_00 = (out_of_range *)__cxa_allocate_exception(0x10); /* try { // try from 0016e0df to 0016e0ed has its CatchHandler @ 0016e104 */ std::out_of_range::out_of_range(this_00,"key not found"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001fdfb8,PTR__out_of_range_001fdf98); } cVar1 = json_abi_v3_11_3::operator==(pbVar2,param_1); if (cVar1 != '\0') break; pbVar2 = pbVar2 + 0x60; } return pbVar2 + 0x10; }
51,004
mi_kpos
eloqsql/storage/myisam/mi_search.c
my_off_t _mi_kpos(uint nod_flag, uchar *after_key) { after_key-=nod_flag; switch (nod_flag) { #if SIZEOF_OFF_T > 4 case 7: return mi_uint7korr(after_key)*MI_MIN_KEY_BLOCK_LENGTH; case 6: return mi_uint6korr(after_key)*MI_MIN_KEY_BLOCK_LENGTH; case 5: return mi_uint5korr(after_key)*MI_MIN_KEY_BLOCK_LENGTH; #else case 7: after_key++; case 6: after_key++; case 5: after_key++; #endif case 4: return ((my_off_t) mi_uint4korr(after_key))*MI_MIN_KEY_BLOCK_LENGTH; case 3: return ((my_off_t) mi_uint3korr(after_key))*MI_MIN_KEY_BLOCK_LENGTH; case 2: return (my_off_t) (mi_uint2korr(after_key)*MI_MIN_KEY_BLOCK_LENGTH); case 1: return (uint) (*after_key)*MI_MIN_KEY_BLOCK_LENGTH; case 0: /* At leaf page */ default: /* Impossible */ return(HA_OFFSET_ERROR); } }
O0
c
mi_kpos: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0xc(%rbp) movq %rsi, -0x18(%rbp) movl -0xc(%rbp), %eax movl %eax, %ecx movq -0x18(%rbp), %rax subq %rcx, %rax movq %rax, -0x18(%rbp) movl -0xc(%rbp), %eax movq %rax, -0x20(%rbp) subq $0x7, %rax ja 0xe9539 movq -0x20(%rbp), %rax leaq 0xabf41(%rip), %rcx # 0x19538c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x18(%rbp), %rdi callq 0xea980 shlq $0xa, %rax movq %rax, -0x8(%rbp) jmp 0xe9541 movq -0x18(%rbp), %rdi callq 0xea9e0 shlq $0xa, %rax movq %rax, -0x8(%rbp) jmp 0xe9541 movq -0x18(%rbp), %rdi callq 0xeaa30 shlq $0xa, %rax movq %rax, -0x8(%rbp) jmp 0xe9541 movq -0x18(%rbp), %rax movzbl 0x3(%rax), %eax movq -0x18(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx shll $0x18, %ecx orl %ecx, %eax movl %eax, %eax shlq $0xa, %rax movq %rax, -0x8(%rbp) jmp 0xe9541 movq -0x18(%rbp), %rax movzbl 0x2(%rax), %eax movq -0x18(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax shlq $0xa, %rax movq %rax, -0x8(%rbp) jmp 0xe9541 movq -0x18(%rbp), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movzwl %ax, %eax shll $0xa, %eax cltq movq %rax, -0x8(%rbp) jmp 0xe9541 movq -0x18(%rbp), %rax movzbl (%rax), %eax shll $0xa, %eax movl %eax, %eax movq %rax, -0x8(%rbp) jmp 0xe9541 jmp 0xe9539 movq $-0x1, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
_mi_kpos: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_C], edi mov [rbp+var_18], rsi mov eax, [rbp+var_C] mov ecx, eax mov rax, [rbp+var_18] sub rax, rcx mov [rbp+var_18], rax mov eax, [rbp+var_C] mov [rbp+var_20], rax sub rax, 7; switch 8 cases ja def_E9452; jumptable 00000000000E9452 default case mov rax, [rbp+var_20] lea rcx, jpt_E9452 movsxd rax, ds:(jpt_E9452 - 19538Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_E9454: mov rdi, [rbp+var_18]; jumptable 00000000000E9452 case 7 call mi_uint7korr_0 shl rax, 0Ah mov [rbp+var_8], rax jmp loc_E9541 loc_E946A: mov rdi, [rbp+var_18]; jumptable 00000000000E9452 case 6 call mi_uint6korr_0 shl rax, 0Ah mov [rbp+var_8], rax jmp loc_E9541 loc_E9480: mov rdi, [rbp+var_18]; jumptable 00000000000E9452 case 5 call mi_uint5korr_0 shl rax, 0Ah mov [rbp+var_8], rax jmp loc_E9541 loc_E9496: mov rax, [rbp+var_18]; jumptable 00000000000E9452 case 4 movzx eax, byte ptr [rax+3] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+2] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+1] shl ecx, 10h or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] shl ecx, 18h or eax, ecx mov eax, eax shl rax, 0Ah mov [rbp+var_8], rax jmp short loc_E9541 loc_E94D0: mov rax, [rbp+var_18]; jumptable 00000000000E9452 case 3 movzx eax, byte ptr [rax+2] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+1] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] shl ecx, 10h or eax, ecx mov eax, eax shl rax, 0Ah mov [rbp+var_8], rax jmp short loc_E9541 loc_E94FD: mov rax, [rbp+var_18]; jumptable 00000000000E9452 case 2 movzx eax, byte ptr [rax+1] movzx eax, ax mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] movzx ecx, cx shl ecx, 8 or eax, ecx movzx eax, ax shl eax, 0Ah cdqe mov [rbp+var_8], rax jmp short loc_E9541 loc_E9525: mov rax, [rbp+var_18]; jumptable 00000000000E9452 case 1 movzx eax, byte ptr [rax] shl eax, 0Ah mov eax, eax mov [rbp+var_8], rax jmp short loc_E9541 loc_E9537: jmp short $+2; jumptable 00000000000E9452 case 0 def_E9452: mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh; jumptable 00000000000E9452 default case loc_E9541: mov rax, [rbp+var_8] add rsp, 20h pop rbp retn
long long mi_kpos(unsigned int a1, long long a2) { unsigned __int8 *v3; // [rsp+8h] [rbp-18h] long long v4; // [rsp+18h] [rbp-8h] v3 = (unsigned __int8 *)(a2 - a1); switch ( a1 ) { case 1u: v4 = *v3 << 10; break; case 2u: v4 = _byteswap_ushort(*(_WORD *)v3) << 10; break; case 3u: v4 = (unsigned long long)((*v3 << 16) | (v3[1] << 8) | (unsigned int)v3[2]) << 10; break; case 4u: v4 = (unsigned long long)_byteswap_ulong(*(_DWORD *)v3) << 10; break; case 5u: v4 = mi_uint5korr_0(v3) << 10; break; case 6u: v4 = mi_uint6korr_0(v3) << 10; break; case 7u: v4 = mi_uint7korr_0(v3) << 10; break; default: v4 = -1LL; break; } return v4; }
_mi_kpos: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0xc],EDI MOV qword ptr [RBP + -0x18],RSI MOV EAX,dword ptr [RBP + -0xc] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] SUB RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV EAX,dword ptr [RBP + -0xc] MOV qword ptr [RBP + -0x20],RAX SUB RAX,0x7 JA 0x001e9539 MOV RAX,qword ptr [RBP + -0x20] LEA RCX,[0x29538c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_7: MOV RDI,qword ptr [RBP + -0x18] CALL 0x001ea980 SHL RAX,0xa MOV qword ptr [RBP + -0x8],RAX JMP 0x001e9541 caseD_6: MOV RDI,qword ptr [RBP + -0x18] CALL 0x001ea9e0 SHL RAX,0xa MOV qword ptr [RBP + -0x8],RAX JMP 0x001e9541 caseD_5: MOV RDI,qword ptr [RBP + -0x18] CALL 0x001eaa30 SHL RAX,0xa MOV qword ptr [RBP + -0x8],RAX JMP 0x001e9541 caseD_4: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x3] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x10 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] SHL ECX,0x18 OR EAX,ECX MOV EAX,EAX SHL RAX,0xa MOV qword ptr [RBP + -0x8],RAX JMP 0x001e9541 caseD_3: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x2] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] SHL ECX,0x10 OR EAX,ECX MOV EAX,EAX SHL RAX,0xa MOV qword ptr [RBP + -0x8],RAX JMP 0x001e9541 caseD_2: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOVZX EAX,AX SHL EAX,0xa CDQE MOV qword ptr [RBP + -0x8],RAX JMP 0x001e9541 caseD_1: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] SHL EAX,0xa MOV EAX,EAX MOV qword ptr [RBP + -0x8],RAX JMP 0x001e9541 caseD_0: JMP 0x001e9539 default: MOV qword ptr [RBP + -0x8],-0x1 LAB_001e9541: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x20 POP RBP RET
long _mi_kpos(uint param_1,long param_2) { byte *pbVar1; long local_10; pbVar1 = (byte *)(param_2 - (ulong)param_1); switch(param_1) { case 0: default: local_10 = -1; break; case 1: local_10 = (ulong)*pbVar1 << 10; break; case 2: local_10 = (long)(int)((uint)CONCAT11(*pbVar1,pbVar1[1]) << 10); break; case 3: local_10 = (ulong)CONCAT12(*pbVar1,CONCAT11(pbVar1[1],pbVar1[2])) << 10; break; case 4: local_10 = (ulong)CONCAT13(*pbVar1,CONCAT12(pbVar1[1],CONCAT11(pbVar1[2],pbVar1[3]))) << 10; break; case 5: local_10 = mi_uint5korr(pbVar1); local_10 = local_10 << 10; break; case 6: local_10 = mi_uint6korr(pbVar1); local_10 = local_10 << 10; break; case 7: local_10 = mi_uint7korr(pbVar1); local_10 = local_10 << 10; } return local_10; }
51,005
stbi_loadf_from_memory
monkey531[P]llama/examples/llava/../../common/stb_image.h
STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) { stbi__context s; stbi__start_mem(&s,buffer,len); return stbi__loadf_main(&s,x,y,comp,req_comp); }
O1
c
stbi_loadf_from_memory: subq $0xe8, %rsp leaq 0x8(%rsp), %rax movq $0x0, 0x10(%rax) xorl %r10d, %r10d movl %r10d, 0x30(%rax) movl %r10d, 0xb8(%rax) movq %rdi, 0xd0(%rax) movq %rdi, 0xc0(%rax) movslq %esi, %rsi addq %rdi, %rsi movq %rsi, 0xd8(%rax) movq %rsi, 0xc8(%rax) movq %rax, %rdi movq %rdx, %rsi movq %rcx, %rdx movq %r8, %rcx movl %r9d, %r8d callq 0x29675 addq $0xe8, %rsp retq
stbi_loadf_from_memory: sub rsp, 0E8h lea rax, [rsp+0E8h+var_E0] mov qword ptr [rax+10h], 0 xor r10d, r10d mov [rax+30h], r10d mov [rax+0B8h], r10d mov [rax+0D0h], rdi mov [rax+0C0h], rdi movsxd rsi, esi add rsi, rdi mov [rax+0D8h], rsi mov [rax+0C8h], rsi mov rdi, rax mov rsi, rdx mov rdx, rcx mov rcx, r8 mov r8d, r9d call _ZL16stbi__loadf_mainP13stbi__contextPiS1_S1_i; stbi__loadf_main(stbi__context *,int *,int *,int *,int) add rsp, 0E8h retn
long long stbi_loadf_from_memory(long long a1, int a2, long long a3, long long a4, long long a5, unsigned int a6) { _BYTE v7[16]; // [rsp+8h] [rbp-E0h] BYREF long long v8; // [rsp+18h] [rbp-D0h] int v9; // [rsp+38h] [rbp-B0h] int v10; // [rsp+C0h] [rbp-28h] long long v11; // [rsp+C8h] [rbp-20h] long long v12; // [rsp+D0h] [rbp-18h] long long v13; // [rsp+D8h] [rbp-10h] long long v14; // [rsp+E0h] [rbp-8h] v8 = 0LL; v9 = 0; v10 = 0; v13 = a1; v11 = a1; v14 = a1 + a2; v12 = v14; return stbi__loadf_main(v7, a3, a4, a5, a6); }
stbi_loadf_from_memory: SUB RSP,0xe8 LEA RAX,[RSP + 0x8] MOV qword ptr [RAX + 0x10],0x0 XOR R10D,R10D MOV dword ptr [RAX + 0x30],R10D MOV dword ptr [RAX + 0xb8],R10D MOV qword ptr [RAX + 0xd0],RDI MOV qword ptr [RAX + 0xc0],RDI MOVSXD RSI,ESI ADD RSI,RDI MOV qword ptr [RAX + 0xd8],RSI MOV qword ptr [RAX + 0xc8],RSI MOV RDI,RAX MOV RSI,RDX MOV RDX,RCX MOV RCX,R8 MOV R8D,R9D CALL 0x00129675 ADD RSP,0xe8 RET
void stbi_loadf_from_memory (long param_1,int param_2,int *param_3,int *param_4,int *param_5,int param_6) { stbi__context local_e0 [16]; int8 local_d0; int4 local_b0; int4 local_28; long local_20; long local_18; long local_10; long local_8; local_d0 = 0; local_b0 = 0; local_28 = 0; local_18 = param_2 + param_1; local_20 = param_1; local_10 = param_1; local_8 = local_18; stbi__loadf_main(local_e0,param_3,param_4,param_5,param_6); return; }
51,006
stbi_loadf_from_memory
monkey531[P]llama/examples/llava/../../common/stb_image.h
STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) { stbi__context s; stbi__start_mem(&s,buffer,len); return stbi__loadf_main(&s,x,y,comp,req_comp); }
O2
c
stbi_loadf_from_memory: subq $0xe8, %rsp leaq 0x8(%rsp), %rax andq $0x0, 0x10(%rax) andl $0x0, 0x30(%rax) andl $0x0, 0xb8(%rax) movq %rdi, 0xd0(%rax) movq %rdi, 0xc0(%rax) movslq %esi, %rsi addq %rdi, %rsi movq %rsi, 0xd8(%rax) movq %rsi, 0xc8(%rax) movq %rax, %rdi movq %rdx, %rsi movq %rcx, %rdx movq %r8, %rcx movl %r9d, %r8d callq 0x2ece5 addq $0xe8, %rsp retq
stbi_loadf_from_memory: sub rsp, 0E8h lea rax, [rsp+0E8h+var_E0] and qword ptr [rax+10h], 0 and dword ptr [rax+30h], 0 and dword ptr [rax+0B8h], 0 mov [rax+0D0h], rdi mov [rax+0C0h], rdi movsxd rsi, esi add rsi, rdi mov [rax+0D8h], rsi mov [rax+0C8h], rsi mov rdi, rax mov rsi, rdx mov rdx, rcx mov rcx, r8 mov r8d, r9d call _ZL16stbi__loadf_mainP13stbi__contextPiS1_S1_i; stbi__loadf_main(stbi__context *,int *,int *,int *,int) add rsp, 0E8h retn
long long stbi_loadf_from_memory(long long a1, int a2, long long a3, long long a4, long long a5, unsigned int a6) { _BYTE v7[16]; // [rsp+8h] [rbp-E0h] BYREF long long v8; // [rsp+18h] [rbp-D0h] int v9; // [rsp+38h] [rbp-B0h] int v10; // [rsp+C0h] [rbp-28h] long long v11; // [rsp+C8h] [rbp-20h] long long v12; // [rsp+D0h] [rbp-18h] long long v13; // [rsp+D8h] [rbp-10h] long long v14; // [rsp+E0h] [rbp-8h] v8 = 0LL; v9 = 0; v10 = 0; v13 = a1; v11 = a1; v14 = a1 + a2; v12 = v14; return stbi__loadf_main(v7, a3, a4, a5, a6); }
stbi_loadf_from_memory: SUB RSP,0xe8 LEA RAX,[RSP + 0x8] AND qword ptr [RAX + 0x10],0x0 AND dword ptr [RAX + 0x30],0x0 AND dword ptr [RAX + 0xb8],0x0 MOV qword ptr [RAX + 0xd0],RDI MOV qword ptr [RAX + 0xc0],RDI MOVSXD RSI,ESI ADD RSI,RDI MOV qword ptr [RAX + 0xd8],RSI MOV qword ptr [RAX + 0xc8],RSI MOV RDI,RAX MOV RSI,RDX MOV RDX,RCX MOV RCX,R8 MOV R8D,R9D CALL 0x0012ece5 ADD RSP,0xe8 RET
void stbi_loadf_from_memory (long param_1,int param_2,int *param_3,int *param_4,int *param_5,int param_6) { stbi__context local_e0 [16]; int8 local_d0; int4 local_b0; int4 local_28; long local_20; long local_18; long local_10; long local_8; local_d0 = 0; local_b0 = 0; local_28 = 0; local_18 = param_2 + param_1; local_20 = param_1; local_10 = param_1; local_8 = local_18; stbi__loadf_main(local_e0,param_3,param_4,param_5,param_6); return; }
51,007
stbi_loadf_from_memory
monkey531[P]llama/examples/llava/../../common/stb_image.h
STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) { stbi__context s; stbi__start_mem(&s,buffer,len); return stbi__loadf_main(&s,x,y,comp,req_comp); }
O3
c
stbi_loadf_from_memory: subq $0xe8, %rsp leaq 0x8(%rsp), %rax movq $0x0, 0x10(%rax) xorl %r10d, %r10d movl %r10d, 0x30(%rax) movl %r10d, 0xb8(%rax) movq %rdi, 0xd0(%rax) movq %rdi, 0xc0(%rax) movslq %esi, %rsi addq %rdi, %rsi movq %rsi, 0xd8(%rax) movq %rsi, 0xc8(%rax) movq %rax, %rdi movq %rdx, %rsi movq %rcx, %rdx movq %r8, %rcx movl %r9d, %r8d callq 0x29549 addq $0xe8, %rsp retq
stbi_loadf_from_memory: sub rsp, 0E8h lea rax, [rsp+0E8h+var_E0] mov qword ptr [rax+10h], 0 xor r10d, r10d mov [rax+30h], r10d mov [rax+0B8h], r10d mov [rax+0D0h], rdi mov [rax+0C0h], rdi movsxd rsi, esi add rsi, rdi mov [rax+0D8h], rsi mov [rax+0C8h], rsi mov rdi, rax mov rsi, rdx mov rdx, rcx mov rcx, r8 mov r8d, r9d call _ZL16stbi__loadf_mainP13stbi__contextPiS1_S1_i; stbi__loadf_main(stbi__context *,int *,int *,int *,int) add rsp, 0E8h retn
long long stbi_loadf_from_memory(long long a1, int a2, long long a3, long long a4, long long a5, unsigned int a6) { _BYTE v7[16]; // [rsp+8h] [rbp-E0h] BYREF long long v8; // [rsp+18h] [rbp-D0h] int v9; // [rsp+38h] [rbp-B0h] int v10; // [rsp+C0h] [rbp-28h] long long v11; // [rsp+C8h] [rbp-20h] long long v12; // [rsp+D0h] [rbp-18h] long long v13; // [rsp+D8h] [rbp-10h] long long v14; // [rsp+E0h] [rbp-8h] v8 = 0LL; v9 = 0; v10 = 0; v13 = a1; v11 = a1; v14 = a1 + a2; v12 = v14; return stbi__loadf_main(v7, a3, a4, a5, a6); }
stbi_loadf_from_memory: SUB RSP,0xe8 LEA RAX,[RSP + 0x8] MOV qword ptr [RAX + 0x10],0x0 XOR R10D,R10D MOV dword ptr [RAX + 0x30],R10D MOV dword ptr [RAX + 0xb8],R10D MOV qword ptr [RAX + 0xd0],RDI MOV qword ptr [RAX + 0xc0],RDI MOVSXD RSI,ESI ADD RSI,RDI MOV qword ptr [RAX + 0xd8],RSI MOV qword ptr [RAX + 0xc8],RSI MOV RDI,RAX MOV RSI,RDX MOV RDX,RCX MOV RCX,R8 MOV R8D,R9D CALL 0x00129549 ADD RSP,0xe8 RET
void stbi_loadf_from_memory (long param_1,int param_2,int *param_3,int *param_4,int *param_5,int param_6) { stbi__context local_e0 [16]; int8 local_d0; int4 local_b0; int4 local_28; long local_20; long local_18; long local_10; long local_8; local_d0 = 0; local_b0 = 0; local_28 = 0; local_18 = param_2 + param_1; local_20 = param_1; local_10 = param_1; local_8 = local_18; stbi__loadf_main(local_e0,param_3,param_4,param_5,param_6); return; }
51,008
google::protobuf::internal::AnyMetadata::InternalPackFrom(google::protobuf::Arena*, google::protobuf::MessageLite const&, google::protobuf::stringpiece_internal::StringPiece, google::protobuf::stringpiece_internal::StringPiece)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/any_lite.cc
bool AnyMetadata::InternalPackFrom(Arena* arena, const MessageLite& message, StringPiece type_url_prefix, StringPiece type_name) { type_url_->Set(GetTypeUrl(type_name, type_url_prefix), arena); return message.SerializeToString(value_->Mutable(arena)); }
O3
cpp
google::protobuf::internal::AnyMetadata::InternalPackFrom(google::protobuf::Arena*, google::protobuf::MessageLite const&, google::protobuf::stringpiece_internal::StringPiece, google::protobuf::stringpiece_internal::StringPiece): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x20, %rsp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movq (%rdi), %r12 movq 0x50(%rsp), %rsi movq 0x58(%rsp), %rdx movq %rsp, %r13 movq %r13, %rdi callq 0x91f34 movq %r12, %rdi movq %r13, %rsi movq %r14, %rdx callq 0x93164 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x92009 callq 0xf330 movq 0x8(%r15), %rdi movq %r14, %rsi callq 0x9323a movq %rbx, %rdi movq %rax, %rsi callq 0x9e6f0 addq $0x20, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x92044 callq 0xf330 movq %rbx, %rdi callq 0xf570
_ZN6google8protobuf8internal11AnyMetadata16InternalPackFromEPNS0_5ArenaERKNS0_11MessageLiteENS0_20stringpiece_internal11StringPieceES9_: push r15 push r14 push r13 push r12 push rbx sub rsp, 20h mov rbx, rdx mov r14, rsi mov r15, rdi mov r12, [rdi] mov rsi, [rsp+48h+arg_0] mov rdx, [rsp+48h+arg_8] mov r13, rsp mov rdi, r13 call _ZN6google8protobuf8internal10GetTypeUrlB5cxx11ENS0_20stringpiece_internal11StringPieceES3_; google::protobuf::internal::GetTypeUrl(google::protobuf::stringpiece_internal::StringPiece,google::protobuf::stringpiece_internal::StringPiece) mov rdi, r12 mov rsi, r13 mov rdx, r14 call _ZN6google8protobuf8internal14ArenaStringPtr3SetEONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string &&,google::protobuf::Arena *) lea rax, [rsp+48h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_92009 call __ZdlPv; operator delete(void *) loc_92009: mov rdi, [r15+8] mov rsi, r14 call _ZN6google8protobuf8internal14ArenaStringPtr7MutableB5cxx11EPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Mutable(google::protobuf::Arena *) mov rdi, rbx mov rsi, rax call _ZNK6google8protobuf11MessageLite17SerializeToStringEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::MessageLite::SerializeToString(std::string *) add rsp, 20h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov rbx, rax lea rax, [rsp+arg_8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_92044 call __ZdlPv; operator delete(void *) loc_92044: mov rdi, rbx call __Unwind_Resume
long long google::protobuf::internal::AnyMetadata::InternalPackFrom( long long *a1, long long a2, long long a3, long long a4, long long a5, long long a6, const char *a7, long long a8) { long long v9; // r12 long long v10; // rax void *v12[2]; // [rsp+0h] [rbp-48h] BYREF char v13; // [rsp+10h] [rbp-38h] BYREF v9 = *a1; google::protobuf::internal::GetTypeUrl[abi:cxx11]((long long *)v12, a7, a8, a4, a5); google::protobuf::internal::ArenaStringPtr::Set(v9, v12, a2); if ( v12[0] != &v13 ) operator delete(v12[0]); v10 = google::protobuf::internal::ArenaStringPtr::Mutable[abi:cxx11](a1[1], a2); return google::protobuf::MessageLite::SerializeToString(a3, v10); }
InternalPackFrom: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x20 MOV RBX,RDX MOV R14,RSI MOV R15,RDI MOV R12,qword ptr [RDI] MOV RSI,qword ptr [RSP + 0x50] MOV RDX,qword ptr [RSP + 0x58] MOV R13,RSP MOV RDI,R13 CALL 0x00191f34 LAB_00191fe8: MOV RDI,R12 MOV RSI,R13 MOV RDX,R14 CALL 0x00193164 LAB_00191ff6: LEA RAX,[RSP + 0x10] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00192009 CALL 0x0010f330 LAB_00192009: MOV RDI,qword ptr [R15 + 0x8] MOV RSI,R14 CALL 0x0019323a MOV RDI,RBX MOV RSI,RAX CALL 0x0019e6f0 ADD RSP,0x20 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* google::protobuf::internal::AnyMetadata::InternalPackFrom(google::protobuf::Arena*, google::protobuf::MessageLite const&, google::protobuf::stringpiece_internal::StringPiece, google::protobuf::stringpiece_internal::StringPiece) */ void google::protobuf::internal::AnyMetadata::InternalPackFrom (int8 *param_1,Arena *param_2,MessageLite *param_3) { ArenaStringPtr *this; string *psVar1; int8 in_stack_00000008; int8 in_stack_00000010; int1 *local_48 [2]; int1 local_38 [16]; this = (ArenaStringPtr *)*param_1; GetTypeUrl_abi_cxx11_(local_48,in_stack_00000008,in_stack_00000010); /* try { // try from 00191fe8 to 00191ff5 has its CatchHandler @ 0019202e */ ArenaStringPtr::Set(this,(string *)local_48,param_2); if (local_48[0] != local_38) { operator_delete(local_48[0]); } psVar1 = (string *)ArenaStringPtr::Mutable_abi_cxx11_((ArenaStringPtr *)param_1[1],param_2); MessageLite::SerializeToString(param_3,psVar1); return; }
51,009
insert_at
eloqsql/mysys/queues.c
static void insert_at(QUEUE *queue, uchar *element, uint idx) { uint next_index, offset_to_key= queue->offset_to_key; uint offset_to_queue_pos= queue->offset_to_queue_pos; /* max_at_top swaps the comparison if we want to order by desc */ while ((next_index= idx >> 1) > 0 && queue->compare(queue->first_cmp_arg, element + offset_to_key, queue->root[next_index] + offset_to_key) * queue->max_at_top < 0) { queue->root[idx]= queue->root[next_index]; if (offset_to_queue_pos) (*(uint*) (queue->root[idx] + offset_to_queue_pos-1))= idx; idx= next_index; } queue->root[idx]= element; if (offset_to_queue_pos) (*(uint*) (element + offset_to_queue_pos-1))= idx; }
O3
c
insert_at: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %edx, %r15d movq %rdi, %r14 movl 0x1c(%rdi), %r13d cmpl $0x2, %edx movq %rsi, -0x30(%rbp) jae 0xa233f movl %r15d, %ebx jmp 0xa2397 movl 0x18(%r14), %r12d leaq (%rsi,%r12), %rax movq %rax, -0x38(%rbp) movl %r15d, %ebx shrl %ebx movq (%r14), %rax movq 0x8(%r14), %rdi movq (%rax,%rbx,8), %rdx addq %r12, %rdx movq -0x38(%rbp), %rsi callq *0x28(%r14) imull 0x24(%r14), %eax testl %eax, %eax jns 0xa233a movq (%r14), %rcx movq (%rcx,%rbx,8), %rdx movl %r15d, %eax movq %rdx, (%rcx,%rax,8) testq %r13, %r13 je 0xa238e movq (%r14), %rcx movq (%rcx,%rax,8), %rax movl %r15d, -0x1(%rax,%r13) cmpl $0x3, %r15d movl %ebx, %r15d ja 0xa234e movq (%r14), %rax movl %ebx, %ecx movq -0x30(%rbp), %rdx movq %rdx, (%rax,%rcx,8) testq %r13, %r13 je 0xa23ae movl %ebx, -0x1(%rdx,%r13) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
insert_at: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15d, edx mov r14, rdi mov r13d, [rdi+1Ch] cmp edx, 2 mov [rbp+var_30], rsi jnb short loc_A233F loc_A233A: mov ebx, r15d jmp short loc_A2397 loc_A233F: mov r12d, [r14+18h] lea rax, [rsi+r12] mov [rbp+var_38], rax mov ebx, r15d loc_A234E: shr ebx, 1 mov rax, [r14] mov rdi, [r14+8] mov rdx, [rax+rbx*8] add rdx, r12 mov rsi, [rbp+var_38] call qword ptr [r14+28h] imul eax, [r14+24h] test eax, eax jns short loc_A233A mov rcx, [r14] mov rdx, [rcx+rbx*8] mov eax, r15d mov [rcx+rax*8], rdx test r13, r13 jz short loc_A238E mov rcx, [r14] mov rax, [rcx+rax*8] mov [rax+r13-1], r15d loc_A238E: cmp r15d, 3 mov r15d, ebx ja short loc_A234E loc_A2397: mov rax, [r14] mov ecx, ebx mov rdx, [rbp+var_30] mov [rax+rcx*8], rdx test r13, r13 jz short loc_A23AE mov [rdx+r13-1], ebx loc_A23AE: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long insert_at(long long *a1, long long a2, unsigned int a3) { unsigned int v3; // r15d long long v4; // r13 long long v5; // rbx long long v6; // r12 bool v7; // cc long long result; // rax v3 = a3; v4 = *((unsigned int *)a1 + 7); if ( a3 >= 2 ) { v6 = *((unsigned int *)a1 + 6); LODWORD(v5) = a3; while ( 1 ) { v5 = (unsigned int)v5 >> 1; if ( (int)(*((_DWORD *)a1 + 9) * ((long long ( *)(long long, long long, long long))a1[5])( a1[1], a2 + v6, v6 + *(_QWORD *)(*a1 + 8 * v5))) >= 0 ) break; *(_QWORD *)(*a1 + 8LL * v3) = *(_QWORD *)(*a1 + 8 * v5); if ( v4 ) *(_DWORD *)(*(_QWORD *)(*a1 + 8LL * v3) + v4 - 1) = v3; v7 = v3 <= 3; v3 = v5; if ( v7 ) goto LABEL_8; } } LODWORD(v5) = v3; LABEL_8: result = *a1; *(_QWORD *)(*a1 + 8LL * (unsigned int)v5) = a2; if ( v4 ) *(_DWORD *)(a2 + v4 - 1) = v5; return result; }
insert_at: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15D,EDX MOV R14,RDI MOV R13D,dword ptr [RDI + 0x1c] CMP EDX,0x2 MOV qword ptr [RBP + -0x30],RSI JNC 0x001a233f LAB_001a233a: MOV EBX,R15D JMP 0x001a2397 LAB_001a233f: MOV R12D,dword ptr [R14 + 0x18] LEA RAX,[RSI + R12*0x1] MOV qword ptr [RBP + -0x38],RAX MOV EBX,R15D LAB_001a234e: SHR EBX,0x1 MOV RAX,qword ptr [R14] MOV RDI,qword ptr [R14 + 0x8] MOV RDX,qword ptr [RAX + RBX*0x8] ADD RDX,R12 MOV RSI,qword ptr [RBP + -0x38] CALL qword ptr [R14 + 0x28] IMUL EAX,dword ptr [R14 + 0x24] TEST EAX,EAX JNS 0x001a233a MOV RCX,qword ptr [R14] MOV RDX,qword ptr [RCX + RBX*0x8] MOV EAX,R15D MOV qword ptr [RCX + RAX*0x8],RDX TEST R13,R13 JZ 0x001a238e MOV RCX,qword ptr [R14] MOV RAX,qword ptr [RCX + RAX*0x8] MOV dword ptr [RAX + R13*0x1 + -0x1],R15D LAB_001a238e: CMP R15D,0x3 MOV R15D,EBX JA 0x001a234e LAB_001a2397: MOV RAX,qword ptr [R14] MOV ECX,EBX MOV RDX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + RCX*0x8],RDX TEST R13,R13 JZ 0x001a23ae MOV dword ptr [RDX + R13*0x1 + -0x1],EBX LAB_001a23ae: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void insert_at(long *param_1,long param_2,uint param_3) { uint uVar1; ulong uVar2; int iVar3; ulong uVar4; ulong uVar5; uint uVar6; uVar4 = (ulong)param_3; uVar5 = (ulong)*(uint *)((long)param_1 + 0x1c); if (1 < param_3) { uVar1 = *(uint *)(param_1 + 3); do { uVar2 = uVar4 >> 1; iVar3 = (*(code *)param_1[5]) (param_1[1],param_2 + (ulong)uVar1, *(long *)(*param_1 + uVar2 * 8) + (ulong)uVar1); if (-1 < iVar3 * *(int *)((long)param_1 + 0x24)) break; uVar6 = (uint)uVar4; *(int8 *)(*param_1 + uVar4 * 8) = *(int8 *)(*param_1 + uVar2 * 8); if (uVar5 != 0) { *(uint *)(*(long *)(*param_1 + uVar4 * 8) + -1 + uVar5) = uVar6; } uVar4 = uVar2; } while (3 < uVar6); } *(long *)(*param_1 + uVar4 * 8) = param_2; if (uVar5 != 0) { *(int *)(param_2 + -1 + uVar5) = (int)uVar4; } return; }
51,010
ma_apply_undo_key_delete
eloqsql/storage/maria/ma_key_recover.c
my_bool _ma_apply_undo_key_delete(MARIA_HA *info, LSN undo_lsn, const uchar *header, uint length, my_bool with_root) { LSN lsn; my_bool res; uint keynr, skip_bytes; uchar key_buff[MARIA_MAX_KEY_BUFF]; MARIA_SHARE *share= info->s; my_off_t new_root; struct st_msg_to_write_hook_for_undo_key msg; MARIA_KEY key; DBUG_ENTER("_ma_apply_undo_key_delete"); share->state.changed|= (STATE_CHANGED | STATE_NOT_OPTIMIZED_KEYS | STATE_NOT_SORTED_PAGES | STATE_NOT_ZEROFILLED | STATE_NOT_MOVABLE); keynr= key_nr_korr(header); skip_bytes= KEY_NR_STORE_SIZE + (with_root ? PAGE_STORE_SIZE : 0); header+= skip_bytes; length-= skip_bytes; /* We have to copy key as _ma_ck_real_write_btree() may change it */ memcpy(key_buff, header, length); DBUG_DUMP("key", key_buff, length); key.keyinfo= share->keyinfo + keynr; key.data= key_buff; key.data_length= length - share->rec_reflength; key.ref_length= share->rec_reflength; key.flag= SEARCH_USER_KEY_HAS_TRANSID; new_root= share->state.key_root[keynr]; res= (share->keyinfo[keynr].key_alg == HA_KEY_ALG_RTREE) ? maria_rtree_insert_level(info, &key, -1, &new_root) : _ma_ck_real_write_btree(info, &key, &new_root, share->keyinfo[keynr].write_comp_flag | key.flag); if (res) _ma_mark_file_crashed(share); msg.root= &share->state.key_root[keynr]; msg.value= new_root; msg.keynr= keynr; if (_ma_write_clr(info, undo_lsn, *msg.root == msg.value ? LOGREC_UNDO_KEY_DELETE : LOGREC_UNDO_KEY_DELETE_WITH_ROOT, 0, 0, &lsn, (void*) &msg)) res= 1; _ma_fast_unlock_key_del(info); _ma_unpin_all_pages_and_finalize_row(info, lsn); DBUG_RETURN(res); }
O0
c
ma_apply_undo_key_delete: pushq %rbp movq %rsp, %rbp subq $0xa80, %rsp # imm = 0xA80 movb %r8b, %al movq %fs:0x28, %r8 movq %r8, -0x8(%rbp) movq %rdi, -0x9e8(%rbp) movq %rsi, -0x9f0(%rbp) movq %rdx, -0x9f8(%rbp) movl %ecx, -0x9fc(%rbp) movb %al, -0x9fd(%rbp) movq -0x9e8(%rbp), %rax movq (%rax), %rax movq %rax, -0xa20(%rbp) movq -0xa20(%rbp), %rax movl 0x170(%rax), %ecx orl $0x1b1, %ecx # imm = 0x1B1 movl %ecx, 0x170(%rax) movq -0x9f8(%rbp), %rax movzbl (%rax), %eax movl %eax, -0xa10(%rbp) movsbl -0x9fd(%rbp), %edx xorl %eax, %eax movl $0x5, %ecx cmpl $0x0, %edx cmovnel %ecx, %eax addl $0x1, %eax movl %eax, -0xa14(%rbp) movl -0xa14(%rbp), %ecx movq -0x9f8(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x9f8(%rbp) movl -0xa14(%rbp), %ecx movl -0x9fc(%rbp), %eax subl %ecx, %eax movl %eax, -0x9fc(%rbp) leaq -0x9e0(%rbp), %rdi movq -0x9f8(%rbp), %rsi movl -0x9fc(%rbp), %eax movl %eax, %edx callq 0x2a090 jmp 0x7396d movq -0xa20(%rbp), %rax movq 0x570(%rax), %rax movl -0xa10(%rbp), %ecx imulq $0x118, %rcx, %rcx # imm = 0x118 addq %rcx, %rax movq %rax, -0xa60(%rbp) leaq -0x9e0(%rbp), %rax movq %rax, -0xa68(%rbp) movl -0x9fc(%rbp), %eax movq -0xa20(%rbp), %rcx subl 0x740(%rcx), %eax movl %eax, -0xa58(%rbp) movq -0xa20(%rbp), %rax movl 0x740(%rax), %eax movl %eax, -0xa54(%rbp) movl $0x80000, -0xa50(%rbp) # imm = 0x80000 movq -0xa20(%rbp), %rax movq 0x118(%rax), %rax movl -0xa10(%rbp), %ecx movq (%rax,%rcx,8), %rax movq %rax, -0xa28(%rbp) movq -0xa20(%rbp), %rax movq 0x570(%rax), %rax movl -0xa10(%rbp), %ecx imulq $0x118, %rcx, %rcx # imm = 0x118 addq %rcx, %rax movzbl 0xa4(%rax), %eax cmpl $0x2, %eax jne 0x73a46 movq -0x9e8(%rbp), %rdi leaq -0xa68(%rbp), %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF leaq -0xa28(%rbp), %rcx callq 0x8f770 movl %eax, -0xa6c(%rbp) jmp 0x73a93 movq -0x9e8(%rbp), %rdi movq -0xa20(%rbp), %rax movq 0x570(%rax), %rax movl -0xa10(%rbp), %ecx imulq $0x118, %rcx, %rcx # imm = 0x118 addq %rcx, %rax movl 0xb4(%rax), %ecx orl -0xa50(%rbp), %ecx leaq -0xa68(%rbp), %rsi leaq -0xa28(%rbp), %rdx callq 0x83b50 movsbl %al, %eax movl %eax, -0xa6c(%rbp) movl -0xa6c(%rbp), %eax movb %al, -0xa09(%rbp) cmpb $0x0, -0xa09(%rbp) je 0x73ab4 movq -0xa20(%rbp), %rdi callq 0x375d0 movq -0xa20(%rbp), %rax movq 0x118(%rax), %rax movl -0xa10(%rbp), %ecx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0xa48(%rbp) movq -0xa28(%rbp), %rax movq %rax, -0xa40(%rbp) movl -0xa10(%rbp), %eax movl %eax, -0xa38(%rbp) movq -0x9e8(%rbp), %rdi movq -0x9f0(%rbp), %rsi movq -0xa48(%rbp), %rax movq (%rax), %rcx movq -0xa40(%rbp), %r8 movl $0x18, %edx movl $0x17, %eax cmpq %r8, %rcx cmovel %eax, %edx xorl %r8d, %r8d leaq -0xa08(%rbp), %r9 leaq -0xa48(%rbp), %rax movl %r8d, %ecx movq %rax, (%rsp) callq 0x713d0 cmpb $0x0, %al je 0x73b47 movb $0x1, -0xa09(%rbp) movq -0x9e8(%rbp), %rdi callq 0x71930 movq -0x9e8(%rbp), %rdi movq -0xa08(%rbp), %rsi callq 0x73860 movb -0xa09(%rbp), %al movb %al, -0xa6d(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x73b93 movb -0xa6d(%rbp), %al addq $0xa80, %rsp # imm = 0xA80 popq %rbp retq callq 0x2a270 nopl (%rax,%rax)
_ma_apply_undo_key_delete: push rbp mov rbp, rsp sub rsp, 0A80h mov al, r8b mov r8, fs:28h mov [rbp+var_8], r8 mov [rbp+var_9E8], rdi mov [rbp+var_9F0], rsi mov [rbp+var_9F8], rdx mov [rbp+var_9FC], ecx mov [rbp+var_9FD], al mov rax, [rbp+var_9E8] mov rax, [rax] mov [rbp+var_A20], rax mov rax, [rbp+var_A20] mov ecx, [rax+170h] or ecx, 1B1h mov [rax+170h], ecx mov rax, [rbp+var_9F8] movzx eax, byte ptr [rax] mov [rbp+var_A10], eax movsx edx, [rbp+var_9FD] xor eax, eax mov ecx, 5 cmp edx, 0 cmovnz eax, ecx add eax, 1 mov [rbp+var_A14], eax mov ecx, [rbp+var_A14] mov rax, [rbp+var_9F8] mov ecx, ecx add rax, rcx mov [rbp+var_9F8], rax mov ecx, [rbp+var_A14] mov eax, [rbp+var_9FC] sub eax, ecx mov [rbp+var_9FC], eax lea rdi, [rbp+var_9E0] mov rsi, [rbp+var_9F8] mov eax, [rbp+var_9FC] mov edx, eax call _memcpy jmp short $+2 loc_7396D: mov rax, [rbp+var_A20] mov rax, [rax+570h] mov ecx, [rbp+var_A10] imul rcx, 118h add rax, rcx mov [rbp+var_A60], rax lea rax, [rbp+var_9E0] mov [rbp+var_A68], rax mov eax, [rbp+var_9FC] mov rcx, [rbp+var_A20] sub eax, [rcx+740h] mov [rbp+var_A58], eax mov rax, [rbp+var_A20] mov eax, [rax+740h] mov [rbp+var_A54], eax mov [rbp+var_A50], offset loc_80000 mov rax, [rbp+var_A20] mov rax, [rax+118h] mov ecx, [rbp+var_A10] mov rax, [rax+rcx*8] mov [rbp+var_A28], rax mov rax, [rbp+var_A20] mov rax, [rax+570h] mov ecx, [rbp+var_A10] imul rcx, 118h add rax, rcx movzx eax, byte ptr [rax+0A4h] cmp eax, 2 jnz short loc_73A46 mov rdi, [rbp+var_9E8] lea rsi, [rbp+var_A68] mov edx, 0FFFFFFFFh lea rcx, [rbp+var_A28] call maria_rtree_insert_level mov [rbp+var_A6C], eax jmp short loc_73A93 loc_73A46: mov rdi, [rbp+var_9E8] mov rax, [rbp+var_A20] mov rax, [rax+570h] mov ecx, [rbp+var_A10] imul rcx, 118h add rax, rcx mov ecx, [rax+0B4h] or ecx, [rbp+var_A50] lea rsi, [rbp+var_A68] lea rdx, [rbp+var_A28] call _ma_ck_real_write_btree movsx eax, al mov [rbp+var_A6C], eax loc_73A93: mov eax, [rbp+var_A6C] mov [rbp+var_A09], al cmp [rbp+var_A09], 0 jz short loc_73AB4 mov rdi, [rbp+var_A20] call _ma_mark_file_crashed loc_73AB4: mov rax, [rbp+var_A20] mov rax, [rax+118h] mov ecx, [rbp+var_A10] shl rcx, 3 add rax, rcx mov [rbp+var_A48], rax mov rax, [rbp+var_A28] mov [rbp+var_A40], rax mov eax, [rbp+var_A10] mov [rbp+var_A38], eax mov rdi, [rbp+var_9E8] mov rsi, [rbp+var_9F0] mov rax, [rbp+var_A48] mov rcx, [rax] mov r8, [rbp+var_A40] mov edx, 18h mov eax, 17h cmp rcx, r8 cmovz edx, eax xor r8d, r8d lea r9, [rbp+var_A08] lea rax, [rbp+var_A48] mov ecx, r8d mov [rsp+0A80h+var_A80], rax call _ma_write_clr cmp al, 0 jz short loc_73B47 mov [rbp+var_A09], 1 loc_73B47: mov rdi, [rbp+var_9E8] call _ma_fast_unlock_key_del mov rdi, [rbp+var_9E8] mov rsi, [rbp+var_A08] call _ma_unpin_all_pages_and_finalize_row mov al, [rbp+var_A09] mov [rbp+var_A6D], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_73B93 mov al, [rbp+var_A6D] add rsp, 0A80h pop rbp retn loc_73B93: call ___stack_chk_fail
char ma_apply_undo_key_delete(long long *a1, long long a2, unsigned __int8 *a3, unsigned int a4, char a5) { int v5; // eax int v6; // edx char inserted; // [rsp+14h] [rbp-A6Ch] _QWORD v9[2]; // [rsp+18h] [rbp-A68h] BYREF unsigned int v10; // [rsp+28h] [rbp-A58h] int v11; // [rsp+2Ch] [rbp-A54h] unsigned int v12; // [rsp+30h] [rbp-A50h] _QWORD v13[2]; // [rsp+38h] [rbp-A48h] BYREF unsigned int v14; // [rsp+48h] [rbp-A38h] long long v15; // [rsp+58h] [rbp-A28h] BYREF long long v16; // [rsp+60h] [rbp-A20h] int v17; // [rsp+6Ch] [rbp-A14h] unsigned int v18; // [rsp+70h] [rbp-A10h] char v19; // [rsp+77h] [rbp-A09h] long long v20; // [rsp+78h] [rbp-A08h] BYREF char v21; // [rsp+83h] [rbp-9FDh] unsigned int v22; // [rsp+84h] [rbp-9FCh] unsigned __int8 *v23; // [rsp+88h] [rbp-9F8h] long long v24; // [rsp+90h] [rbp-9F0h] long long *v25; // [rsp+98h] [rbp-9E8h] _BYTE v26[2520]; // [rsp+A0h] [rbp-9E0h] BYREF unsigned long long v27; // [rsp+A78h] [rbp-8h] v27 = __readfsqword(0x28u); v25 = a1; v24 = a2; v23 = a3; v22 = a4; v21 = a5; v16 = *a1; *(_DWORD *)(v16 + 368) |= 0x1B1u; v18 = *v23; v5 = 0; if ( v21 ) v5 = 5; v17 = v5 + 1; v23 += (unsigned int)(v5 + 1); v22 -= v5 + 1; memcpy(v26, v23, v22); v9[1] = 280LL * v18 + *(_QWORD *)(v16 + 1392); v9[0] = v26; v10 = v22 - *(_DWORD *)(v16 + 1856); v11 = *(_DWORD *)(v16 + 1856); v12 = (unsigned int)&loc_80000; v15 = *(_QWORD *)(*(_QWORD *)(v16 + 280) + 8LL * v18); if ( *(_BYTE *)(280LL * v18 + *(_QWORD *)(v16 + 1392) + 164) == 2 ) inserted = maria_rtree_insert_level(v25, v9, 0xFFFFFFFFLL, &v15); else inserted = ma_ck_real_write_btree(v25, v9, &v15, v12 | *(_DWORD *)(280LL * v18 + *(_QWORD *)(v16 + 1392) + 180)); v19 = inserted; if ( inserted ) ma_mark_file_crashed(v16); v13[0] = 8LL * v18 + *(_QWORD *)(v16 + 280); v13[1] = v15; v14 = v18; v6 = 24; if ( *(_QWORD *)v13[0] == v15 ) v6 = 23; if ( ma_write_clr(v25, v24, v6, 0, 0, (long long)&v20, (long long)v13) ) v19 = 1; ma_fast_unlock_key_del((long long)v25); ma_unpin_all_pages_and_finalize_row((long long)v25, v20); return v19; }
_ma_apply_undo_key_delete: PUSH RBP MOV RBP,RSP SUB RSP,0xa80 MOV AL,R8B MOV R8,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],R8 MOV qword ptr [RBP + -0x9e8],RDI MOV qword ptr [RBP + -0x9f0],RSI MOV qword ptr [RBP + -0x9f8],RDX MOV dword ptr [RBP + -0x9fc],ECX MOV byte ptr [RBP + -0x9fd],AL MOV RAX,qword ptr [RBP + -0x9e8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xa20],RAX MOV RAX,qword ptr [RBP + -0xa20] MOV ECX,dword ptr [RAX + 0x170] OR ECX,0x1b1 MOV dword ptr [RAX + 0x170],ECX MOV RAX,qword ptr [RBP + -0x9f8] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0xa10],EAX MOVSX EDX,byte ptr [RBP + -0x9fd] XOR EAX,EAX MOV ECX,0x5 CMP EDX,0x0 CMOVNZ EAX,ECX ADD EAX,0x1 MOV dword ptr [RBP + -0xa14],EAX MOV ECX,dword ptr [RBP + -0xa14] MOV RAX,qword ptr [RBP + -0x9f8] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x9f8],RAX MOV ECX,dword ptr [RBP + -0xa14] MOV EAX,dword ptr [RBP + -0x9fc] SUB EAX,ECX MOV dword ptr [RBP + -0x9fc],EAX LEA RDI,[RBP + -0x9e0] MOV RSI,qword ptr [RBP + -0x9f8] MOV EAX,dword ptr [RBP + -0x9fc] MOV EDX,EAX CALL 0x0012a090 JMP 0x0017396d LAB_0017396d: MOV RAX,qword ptr [RBP + -0xa20] MOV RAX,qword ptr [RAX + 0x570] MOV ECX,dword ptr [RBP + -0xa10] IMUL RCX,RCX,0x118 ADD RAX,RCX MOV qword ptr [RBP + -0xa60],RAX LEA RAX,[RBP + -0x9e0] MOV qword ptr [RBP + -0xa68],RAX MOV EAX,dword ptr [RBP + -0x9fc] MOV RCX,qword ptr [RBP + -0xa20] SUB EAX,dword ptr [RCX + 0x740] MOV dword ptr [RBP + -0xa58],EAX MOV RAX,qword ptr [RBP + -0xa20] MOV EAX,dword ptr [RAX + 0x740] MOV dword ptr [RBP + -0xa54],EAX MOV dword ptr [RBP + -0xa50],0x80000 MOV RAX,qword ptr [RBP + -0xa20] MOV RAX,qword ptr [RAX + 0x118] MOV ECX,dword ptr [RBP + -0xa10] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0xa28],RAX MOV RAX,qword ptr [RBP + -0xa20] MOV RAX,qword ptr [RAX + 0x570] MOV ECX,dword ptr [RBP + -0xa10] IMUL RCX,RCX,0x118 ADD RAX,RCX MOVZX EAX,byte ptr [RAX + 0xa4] CMP EAX,0x2 JNZ 0x00173a46 MOV RDI,qword ptr [RBP + -0x9e8] LEA RSI,[RBP + -0xa68] MOV EDX,0xffffffff LEA RCX,[RBP + -0xa28] CALL 0x0018f770 MOV dword ptr [RBP + -0xa6c],EAX JMP 0x00173a93 LAB_00173a46: MOV RDI,qword ptr [RBP + -0x9e8] MOV RAX,qword ptr [RBP + -0xa20] MOV RAX,qword ptr [RAX + 0x570] MOV ECX,dword ptr [RBP + -0xa10] IMUL RCX,RCX,0x118 ADD RAX,RCX MOV ECX,dword ptr [RAX + 0xb4] OR ECX,dword ptr [RBP + -0xa50] LEA RSI,[RBP + -0xa68] LEA RDX,[RBP + -0xa28] CALL 0x00183b50 MOVSX EAX,AL MOV dword ptr [RBP + -0xa6c],EAX LAB_00173a93: MOV EAX,dword ptr [RBP + -0xa6c] MOV byte ptr [RBP + -0xa09],AL CMP byte ptr [RBP + -0xa09],0x0 JZ 0x00173ab4 MOV RDI,qword ptr [RBP + -0xa20] CALL 0x001375d0 LAB_00173ab4: MOV RAX,qword ptr [RBP + -0xa20] MOV RAX,qword ptr [RAX + 0x118] MOV ECX,dword ptr [RBP + -0xa10] SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0xa48],RAX MOV RAX,qword ptr [RBP + -0xa28] MOV qword ptr [RBP + -0xa40],RAX MOV EAX,dword ptr [RBP + -0xa10] MOV dword ptr [RBP + -0xa38],EAX MOV RDI,qword ptr [RBP + -0x9e8] MOV RSI,qword ptr [RBP + -0x9f0] MOV RAX,qword ptr [RBP + -0xa48] MOV RCX,qword ptr [RAX] MOV R8,qword ptr [RBP + -0xa40] MOV EDX,0x18 MOV EAX,0x17 CMP RCX,R8 CMOVZ EDX,EAX XOR R8D,R8D LEA R9,[RBP + -0xa08] LEA RAX,[RBP + -0xa48] MOV ECX,R8D MOV qword ptr [RSP],RAX CALL 0x001713d0 CMP AL,0x0 JZ 0x00173b47 MOV byte ptr [RBP + -0xa09],0x1 LAB_00173b47: MOV RDI,qword ptr [RBP + -0x9e8] CALL 0x00171930 MOV RDI,qword ptr [RBP + -0x9e8] MOV RSI,qword ptr [RBP + -0xa08] CALL 0x00173860 MOV AL,byte ptr [RBP + -0xa09] MOV byte ptr [RBP + -0xa6d],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00173b93 MOV AL,byte ptr [RBP + -0xa6d] ADD RSP,0xa80 POP RBP RET LAB_00173b93: CALL 0x0012a270
int8 _ma_apply_undo_key_delete(long *param_1,int8 param_2,byte *param_3,int param_4,char param_5) { char cVar1; int iVar2; int8 uVar3; long in_FS_OFFSET; char local_a74; int1 *local_a70; long local_a68; int local_a60; int4 local_a5c; int4 local_a58; long *local_a50; long local_a48; uint local_a40; long local_a30; long local_a28; uint local_a1c; uint local_a18; char local_a11; int8 local_a10; char local_a05; uint local_a04; byte *local_a00; int8 local_9f8; long *local_9f0; int1 local_9e8 [2520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_a28 = *param_1; *(uint *)(local_a28 + 0x170) = *(uint *)(local_a28 + 0x170) | 0x1b1; local_a18 = (uint)*param_3; iVar2 = 0; if (param_5 != '\0') { iVar2 = 5; } local_a1c = iVar2 + 1; local_a00 = param_3 + local_a1c; local_a04 = param_4 - local_a1c; local_a05 = param_5; local_9f8 = param_2; local_9f0 = param_1; memcpy(local_9e8,local_a00,(ulong)local_a04); local_a68 = *(long *)(local_a28 + 0x570) + (ulong)local_a18 * 0x118; local_a70 = local_9e8; local_a60 = local_a04 - *(int *)(local_a28 + 0x740); local_a5c = *(int4 *)(local_a28 + 0x740); local_a58 = 0x80000; local_a30 = *(long *)(*(long *)(local_a28 + 0x118) + (ulong)local_a18 * 8); if (*(char *)(*(long *)(local_a28 + 0x570) + (ulong)local_a18 * 0x118 + 0xa4) == '\x02') { local_a74 = maria_rtree_insert_level(local_9f0,&local_a70,0xffffffff,&local_a30); } else { local_a74 = _ma_ck_real_write_btree (local_9f0,&local_a70,&local_a30, *(uint *)(*(long *)(local_a28 + 0x570) + (ulong)local_a18 * 0x118 + 0xb4) | 0x80000); } local_a11 = local_a74; if (local_a74 != '\0') { _ma_mark_file_crashed(local_a28); } local_a50 = (long *)(*(long *)(local_a28 + 0x118) + (ulong)local_a18 * 8); local_a48 = local_a30; local_a40 = local_a18; uVar3 = 0x18; if (*local_a50 == local_a30) { uVar3 = 0x17; } cVar1 = _ma_write_clr(local_9f0,local_9f8,uVar3,0,0,&local_a10,&local_a50); if (cVar1 != '\0') { local_a11 = '\x01'; } _ma_fast_unlock_key_del(local_9f0); _ma_unpin_all_pages_and_finalize_row(local_9f0,local_a10); if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_a11); } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
51,011
ma_apply_undo_key_delete
eloqsql/storage/maria/ma_key_recover.c
my_bool _ma_apply_undo_key_delete(MARIA_HA *info, LSN undo_lsn, const uchar *header, uint length, my_bool with_root) { LSN lsn; my_bool res; uint keynr, skip_bytes; uchar key_buff[MARIA_MAX_KEY_BUFF]; MARIA_SHARE *share= info->s; my_off_t new_root; struct st_msg_to_write_hook_for_undo_key msg; MARIA_KEY key; DBUG_ENTER("_ma_apply_undo_key_delete"); share->state.changed|= (STATE_CHANGED | STATE_NOT_OPTIMIZED_KEYS | STATE_NOT_SORTED_PAGES | STATE_NOT_ZEROFILLED | STATE_NOT_MOVABLE); keynr= key_nr_korr(header); skip_bytes= KEY_NR_STORE_SIZE + (with_root ? PAGE_STORE_SIZE : 0); header+= skip_bytes; length-= skip_bytes; /* We have to copy key as _ma_ck_real_write_btree() may change it */ memcpy(key_buff, header, length); DBUG_DUMP("key", key_buff, length); key.keyinfo= share->keyinfo + keynr; key.data= key_buff; key.data_length= length - share->rec_reflength; key.ref_length= share->rec_reflength; key.flag= SEARCH_USER_KEY_HAS_TRANSID; new_root= share->state.key_root[keynr]; res= (share->keyinfo[keynr].key_alg == HA_KEY_ALG_RTREE) ? maria_rtree_insert_level(info, &key, -1, &new_root) : _ma_ck_real_write_btree(info, &key, &new_root, share->keyinfo[keynr].write_comp_flag | key.flag); if (res) _ma_mark_file_crashed(share); msg.root= &share->state.key_root[keynr]; msg.value= new_root; msg.keynr= keynr; if (_ma_write_clr(info, undo_lsn, *msg.root == msg.value ? LOGREC_UNDO_KEY_DELETE : LOGREC_UNDO_KEY_DELETE_WITH_ROOT, 0, 0, &lsn, (void*) &msg)) res= 1; _ma_fast_unlock_key_del(info); _ma_unpin_all_pages_and_finalize_row(info, lsn); DBUG_RETURN(res); }
O3
c
ma_apply_undo_key_delete: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa48, %rsp # imm = 0xA48 movq %rsi, -0xa20(%rbp) movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq (%rdi), %r15 orl $0x1b1, 0x170(%r15) # imm = 0x1B1 movzbl (%rdx), %r14d xorl %eax, %eax testb %r8b, %r8b setne %al leal (%rax,%rax,4), %r12d leaq (%r12,%rdx), %rsi incq %rsi notl %r12d addl %ecx, %r12d leaq -0xa10(%rbp), %r13 movl $0x9d3, %ecx # imm = 0x9D3 movq %r13, %rdi movq %r12, %rdx callq 0x29420 movq 0x570(%r15), %rcx imulq $0x118, %r14, %rdx # imm = 0x118 leaq (%rcx,%rdx), %rax movq %rax, -0xa40(%rbp) movq %r13, -0xa48(%rbp) movl 0x740(%r15), %esi subl %esi, %r12d movl %r12d, -0xa38(%rbp) movl %esi, -0xa34(%rbp) movl $0x80000, -0xa30(%rbp) # imm = 0x80000 movq 0x118(%r15), %rsi movq (%rsi,%r14,8), %rsi movq %rsi, -0xa18(%rbp) cmpb $0x2, 0xa4(%rcx,%rdx) jne 0x5bba2 leaq -0xa48(%rbp), %rsi leaq -0xa18(%rbp), %rcx movq %rbx, %rdi movl $0xffffffff, %edx # imm = 0xFFFFFFFF callq 0x6c6ce movl %eax, %r12d jmp 0x5bbc6 movl $0x80000, %ecx # imm = 0x80000 orl 0xb4(%rax), %ecx leaq -0xa48(%rbp), %rsi leaq -0xa18(%rbp), %rdx movq %rbx, %rdi callq 0x65974 movl %eax, %r12d testb %r12b, %r12b je 0x5bbd3 movq %r15, %rdi callq 0x39176 movq 0x118(%r15), %rax leaq (%rax,%r14,8), %rax leaq -0xa68(%rbp), %rcx movq %rax, (%rcx) movq -0xa18(%rbp), %rsi movq %rsi, 0x8(%rcx) movl %r14d, 0x10(%rcx) xorl %edx, %edx cmpq %rsi, (%rax) setne %dl addl $0x17, %edx movq %rcx, (%rsp) leaq -0xa28(%rbp), %r9 movq %rbx, %rdi movq -0xa20(%rbp), %rsi xorl %ecx, %ecx xorl %r8d, %r8d callq 0x5a7a1 movl %eax, %r14d cmpb $0x0, 0x67e(%rbx) je 0x5bc35 movq %rbx, %rdi callq 0x5bdde testb %r14b, %r14b movzbl %r12b, %eax movl $0x1, %r14d cmovel %eax, %r14d movq -0xa28(%rbp), %rsi movq %rbx, %rdi callq 0x5a724 movq 0x8(%rbx), %rax movq $0x0, 0x90(%rax) movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x5bc88 movl %r14d, %eax addq $0xa48, %rsp # imm = 0xA48 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x29270
_ma_apply_undo_key_delete: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 0A48h mov [rbp+var_A20], rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_30], rax mov r15, [rdi] or dword ptr [r15+170h], 1B1h movzx r14d, byte ptr [rdx] xor eax, eax test r8b, r8b setnz al lea r12d, [rax+rax*4] lea rsi, [r12+rdx] inc rsi not r12d add r12d, ecx lea r13, [rbp+var_A10] mov ecx, 9D3h mov rdi, r13 mov rdx, r12 call ___memcpy_chk mov rcx, [r15+570h] imul rdx, r14, 118h lea rax, [rcx+rdx] mov [rbp+var_A40], rax mov [rbp+var_A48], r13 mov esi, [r15+740h] sub r12d, esi mov [rbp+var_A38], r12d mov [rbp+var_A34], esi mov [rbp+var_A30], 80000h mov rsi, [r15+118h] mov rsi, [rsi+r14*8] mov [rbp+var_A18], rsi cmp byte ptr [rcx+rdx+0A4h], 2 jnz short loc_5BBA2 lea rsi, [rbp+var_A48] lea rcx, [rbp+var_A18] mov rdi, rbx mov edx, 0FFFFFFFFh call maria_rtree_insert_level mov r12d, eax jmp short loc_5BBC6 loc_5BBA2: mov ecx, 80000h or ecx, [rax+0B4h] lea rsi, [rbp+var_A48] lea rdx, [rbp+var_A18] mov rdi, rbx call _ma_ck_real_write_btree mov r12d, eax loc_5BBC6: test r12b, r12b jz short loc_5BBD3 mov rdi, r15 call _ma_mark_file_crashed loc_5BBD3: mov rax, [r15+118h] lea rax, [rax+r14*8] lea rcx, [rbp+var_A68] mov [rcx], rax mov rsi, [rbp+var_A18] mov [rcx+8], rsi mov [rcx+10h], r14d xor edx, edx cmp [rax], rsi setnz dl add edx, 17h mov [rsp+0A70h+var_A70], rcx lea r9, [rbp+var_A28] mov rdi, rbx mov rsi, [rbp+var_A20] xor ecx, ecx xor r8d, r8d call _ma_write_clr mov r14d, eax cmp byte ptr [rbx+67Eh], 0 jz short loc_5BC35 mov rdi, rbx call _ma_unlock_key_del loc_5BC35: test r14b, r14b movzx eax, r12b mov r14d, 1 cmovz r14d, eax mov rsi, [rbp+var_A28] mov rdi, rbx call _ma_unpin_all_pages mov rax, [rbx+8] mov qword ptr [rax+90h], 0 mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_5BC88 mov eax, r14d add rsp, 0A48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_5BC88: call ___stack_chk_fail
long long ma_apply_undo_key_delete(long long a1, long long a2, unsigned __int8 *a3, int a4, char a5) { long long v5; // r15 long long v6; // r14 long long v7; // r12 long long v8; // rsi long long v9; // r12 long long v10; // rax unsigned __int8 inserted; // r12 char v12; // r14 bool v13; // zf unsigned int v14; // r14d _QWORD v16[2]; // [rsp+8h] [rbp-A68h] BYREF int v17; // [rsp+18h] [rbp-A58h] _QWORD v18[2]; // [rsp+28h] [rbp-A48h] BYREF int v19; // [rsp+38h] [rbp-A38h] int v20; // [rsp+3Ch] [rbp-A34h] int v21; // [rsp+40h] [rbp-A30h] signed long long v22; // [rsp+48h] [rbp-A28h] BYREF long long v23; // [rsp+50h] [rbp-A20h] long long v24; // [rsp+58h] [rbp-A18h] BYREF _BYTE v25[2528]; // [rsp+60h] [rbp-A10h] BYREF unsigned long long v26; // [rsp+A40h] [rbp-30h] v23 = a2; v26 = __readfsqword(0x28u); v5 = *(_QWORD *)a1; *(_DWORD *)(*(_QWORD *)a1 + 368LL) |= 0x1B1u; v6 = *a3; v7 = 5 * (unsigned int)(a5 != 0); v8 = (long long)&a3[v7 + 1]; v9 = (unsigned int)(a4 + ~(_DWORD)v7); __memcpy_chk(v25, v8, v9, 2515LL); v10 = *(_QWORD *)(v5 + 1392) + 280 * v6; v18[1] = v10; v18[0] = v25; LODWORD(v8) = *(_DWORD *)(v5 + 1856); v19 = v9 - v8; v20 = v8; v21 = 0x80000; v24 = *(_QWORD *)(*(_QWORD *)(v5 + 280) + 8 * v6); if ( *(_BYTE *)(v10 + 164) == 2 ) inserted = maria_rtree_insert_level(a1, v18, 0xFFFFFFFFLL, &v24); else inserted = ma_ck_real_write_btree(a1, v18, &v24, *(_DWORD *)(v10 + 180) | 0x80000u); if ( inserted ) ma_mark_file_crashed(v5); v16[0] = *(_QWORD *)(v5 + 280) + 8 * v6; v16[1] = v24; v17 = v6; v12 = ma_write_clr( (long long *)a1, v23, (unsigned int)(*(_QWORD *)v16[0] != v24) + 23, 0, 0, (unsigned long long)&v22, (long long)v16); if ( *(_BYTE *)(a1 + 1662) ) ma_unlock_key_del(a1); v13 = v12 == 0; v14 = 1; if ( v13 ) v14 = inserted; ma_unpin_all_pages(a1, v22); *(_QWORD *)(*(_QWORD *)(a1 + 8) + 144LL) = 0LL; return v14; }
_ma_apply_undo_key_delete: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xa48 MOV qword ptr [RBP + -0xa20],RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV R15,qword ptr [RDI] OR dword ptr [R15 + 0x170],0x1b1 MOVZX R14D,byte ptr [RDX] XOR EAX,EAX TEST R8B,R8B SETNZ AL LEA R12D,[RAX + RAX*0x4] LEA RSI,[R12 + RDX*0x1] INC RSI NOT R12D ADD R12D,ECX LEA R13,[RBP + -0xa10] MOV ECX,0x9d3 MOV RDI,R13 MOV RDX,R12 CALL 0x00129420 MOV RCX,qword ptr [R15 + 0x570] IMUL RDX,R14,0x118 LEA RAX,[RCX + RDX*0x1] MOV qword ptr [RBP + -0xa40],RAX MOV qword ptr [RBP + -0xa48],R13 MOV ESI,dword ptr [R15 + 0x740] SUB R12D,ESI MOV dword ptr [RBP + -0xa38],R12D MOV dword ptr [RBP + -0xa34],ESI MOV dword ptr [RBP + -0xa30],0x80000 MOV RSI,qword ptr [R15 + 0x118] MOV RSI,qword ptr [RSI + R14*0x8] MOV qword ptr [RBP + -0xa18],RSI CMP byte ptr [RCX + RDX*0x1 + 0xa4],0x2 JNZ 0x0015bba2 LEA RSI,[RBP + -0xa48] LEA RCX,[RBP + -0xa18] MOV RDI,RBX MOV EDX,0xffffffff CALL 0x0016c6ce MOV R12D,EAX JMP 0x0015bbc6 LAB_0015bba2: MOV ECX,0x80000 OR ECX,dword ptr [RAX + 0xb4] LEA RSI,[RBP + -0xa48] LEA RDX,[RBP + -0xa18] MOV RDI,RBX CALL 0x00165974 MOV R12D,EAX LAB_0015bbc6: TEST R12B,R12B JZ 0x0015bbd3 MOV RDI,R15 CALL 0x00139176 LAB_0015bbd3: MOV RAX,qword ptr [R15 + 0x118] LEA RAX,[RAX + R14*0x8] LEA RCX,[RBP + -0xa68] MOV qword ptr [RCX],RAX MOV RSI,qword ptr [RBP + -0xa18] MOV qword ptr [RCX + 0x8],RSI MOV dword ptr [RCX + 0x10],R14D XOR EDX,EDX CMP qword ptr [RAX],RSI SETNZ DL ADD EDX,0x17 MOV qword ptr [RSP],RCX LEA R9,[RBP + -0xa28] MOV RDI,RBX MOV RSI,qword ptr [RBP + -0xa20] XOR ECX,ECX XOR R8D,R8D CALL 0x0015a7a1 MOV R14D,EAX CMP byte ptr [RBX + 0x67e],0x0 JZ 0x0015bc35 MOV RDI,RBX CALL 0x0015bdde LAB_0015bc35: TEST R14B,R14B MOVZX EAX,R12B MOV R14D,0x1 CMOVZ R14D,EAX MOV RSI,qword ptr [RBP + -0xa28] MOV RDI,RBX CALL 0x0015a724 MOV RAX,qword ptr [RBX + 0x8] MOV qword ptr [RAX + 0x90],0x0 MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0015bc88 MOV EAX,R14D ADD RSP,0xa48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0015bc88: CALL 0x00129270
char _ma_apply_undo_key_delete (long *param_1,int8 param_2,byte *param_3,int param_4,char param_5) { byte bVar1; long lVar2; uint uVar3; char cVar4; char cVar5; char cVar6; ulong uVar7; long in_FS_OFFSET; long *local_a70; long local_a68; uint local_a60; int1 *local_a50; long local_a48; int local_a40; int local_a3c; int4 local_a38; int8 local_a30; int8 local_a28; long local_a20; int1 local_a18 [2528]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); lVar2 = *param_1; *(uint *)(lVar2 + 0x170) = *(uint *)(lVar2 + 0x170) | 0x1b1; bVar1 = *param_3; uVar7 = (ulong)bVar1; uVar3 = (uint)(param_5 != '\0') * 5; param_4 = ~uVar3 + param_4; local_a28 = param_2; __memcpy_chk(local_a18,param_3 + (ulong)uVar3 + 1,param_4,0x9d3); local_a48 = *(long *)(lVar2 + 0x570) + uVar7 * 0x118; local_a3c = *(int *)(lVar2 + 0x740); local_a40 = param_4 - local_a3c; local_a38 = 0x80000; local_a20 = *(long *)(*(long *)(lVar2 + 0x118) + uVar7 * 8); local_a50 = local_a18; if (*(char *)(*(long *)(lVar2 + 0x570) + 0xa4 + uVar7 * 0x118) == '\x02') { cVar4 = maria_rtree_insert_level(param_1,&local_a50,0xffffffff,&local_a20); } else { cVar4 = _ma_ck_real_write_btree (param_1,&local_a50,&local_a20,*(uint *)(local_a48 + 0xb4) | 0x80000); } if (cVar4 != '\0') { _ma_mark_file_crashed(lVar2); } local_a70 = (long *)(*(long *)(lVar2 + 0x118) + uVar7 * 8); local_a68 = local_a20; local_a60 = (uint)bVar1; cVar5 = _ma_write_clr(param_1,local_a28,(*local_a70 != local_a20) + '\x17',0,0,&local_a30, &local_a70); if (*(char *)((long)param_1 + 0x67e) != '\0') { _ma_unlock_key_del(param_1); } cVar6 = '\x01'; if (cVar5 == '\0') { cVar6 = cVar4; } _ma_unpin_all_pages(param_1,local_a30); *(int8 *)(param_1[1] + 0x90) = 0; if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return cVar6; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
51,012
common_embd_normalize(float const*, float*, int, int)
llama.cpp/common/common.cpp
void common_embd_normalize(const float * inp, float * out, int n, int embd_norm) { double sum = 0.0; switch (embd_norm) { case -1: // no normalisation sum = 1.0; break; case 0: // max absolute for (int i = 0; i < n; i++) { if (sum < std::abs(inp[i])) { sum = std::abs(inp[i]); } } sum /= 32760.0; // make an int16 range break; case 2: // euclidean for (int i = 0; i < n; i++) { sum += inp[i] * inp[i]; } sum = std::sqrt(sum); break; default: // p-norm (euclidean is p-norm p=2) for (int i = 0; i < n; i++) { sum += std::pow(std::abs(inp[i]), embd_norm); } sum = std::pow(sum, 1.0 / embd_norm); break; } const float norm = sum > 0.0 ? 1.0 / sum : 0.0f; for (int i = 0; i < n; i++) { out[i] = inp[i] * norm; } }
O3
cpp
common_embd_normalize(float const*, float*, int, int): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movl %edx, %ebp movq %rsi, %rbx movq %rdi, %r14 movsd 0x187e4(%rip), %xmm3 # 0x112d30 movapd %xmm3, %xmm0 cmpl $-0x1, %ecx je 0xfa661 testl %ecx, %ecx je 0xfa59f cmpl $0x2, %ecx jne 0xfa5d5 xorpd %xmm1, %xmm1 xorpd %xmm0, %xmm0 testl %ebp, %ebp jle 0xfa58c movl %ebp, %eax xorl %ecx, %ecx movss (%r14,%rcx,4), %xmm2 mulss %xmm2, %xmm2 cvtss2sd %xmm2, %xmm2 addsd %xmm2, %xmm0 incq %rcx cmpq %rcx, %rax jne 0xfa572 ucomisd %xmm1, %xmm0 jb 0xfa62f sqrtsd %xmm0, %xmm0 jmp 0xfa661 testl %ebp, %ebp jle 0xfa636 movl %ebp, %eax xorpd %xmm2, %xmm2 xorl %ecx, %ecx movaps 0x2a27a(%rip), %xmm1 # 0x124830 movss (%r14,%rcx,4), %xmm0 andps %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 maxsd %xmm2, %xmm0 incq %rcx movapd %xmm0, %xmm2 cmpq %rcx, %rax jne 0xfa5b6 jmp 0xfa63a cvtsi2sd %ecx, %xmm2 testl %ebp, %ebp jle 0xfa644 movl %ebp, %r15d xorpd %xmm0, %xmm0 xorl %r12d, %r12d movsd %xmm2, 0x8(%rsp) movsd %xmm0, (%rsp) movss (%r14,%r12,4), %xmm0 andps 0x2a231(%rip), %xmm0 # 0x124830 cvtss2sd %xmm0, %xmm0 movapd %xmm2, %xmm1 callq 0x205c0 movsd 0x8(%rsp), %xmm2 movsd (%rsp), %xmm1 addsd %xmm0, %xmm1 movsd %xmm1, (%rsp) movsd (%rsp), %xmm0 incq %r12 cmpq %r12, %r15 jne 0xfa5ed jmp 0xfa648 callq 0x20810 jmp 0xfa659 xorpd %xmm0, %xmm0 divsd 0x2a216(%rip), %xmm0 # 0x124858 jmp 0xfa661 xorpd %xmm0, %xmm0 movsd 0x186e0(%rip), %xmm1 # 0x112d30 divsd %xmm2, %xmm1 callq 0x205c0 movsd 0x186cf(%rip), %xmm3 # 0x112d30 testl %ebp, %ebp jle 0xfa697 divsd %xmm0, %xmm3 xorps %xmm1, %xmm1 cmpltsd %xmm0, %xmm1 andpd %xmm3, %xmm1 xorps %xmm0, %xmm0 cvtsd2ss %xmm1, %xmm0 movl %ebp, %eax xorl %ecx, %ecx movss (%r14,%rcx,4), %xmm1 mulss %xmm0, %xmm1 movss %xmm1, (%rbx,%rcx,4) incq %rcx cmpq %rcx, %rax jne 0xfa680 addq $0x10, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
_Z21common_embd_normalizePKfPfii: push rbp push r15 push r14 push r12 push rbx sub rsp, 10h mov ebp, edx mov rbx, rsi mov r14, rdi movsd xmm3, cs:qword_112D30 movapd xmm0, xmm3 cmp ecx, 0FFFFFFFFh jz loc_FA661 test ecx, ecx jz short loc_FA59F cmp ecx, 2 jnz short loc_FA5D5 xorpd xmm1, xmm1 xorpd xmm0, xmm0 test ebp, ebp jle short loc_FA58C mov eax, ebp xor ecx, ecx loc_FA572: movss xmm2, dword ptr [r14+rcx*4] mulss xmm2, xmm2 cvtss2sd xmm2, xmm2 addsd xmm0, xmm2 inc rcx cmp rax, rcx jnz short loc_FA572 loc_FA58C: ucomisd xmm0, xmm1 jb loc_FA62F sqrtsd xmm0, xmm0 jmp loc_FA661 loc_FA59F: test ebp, ebp jle loc_FA636 mov eax, ebp xorpd xmm2, xmm2 xor ecx, ecx movaps xmm1, cs:xmmword_124830 loc_FA5B6: movss xmm0, dword ptr [r14+rcx*4] andps xmm0, xmm1 cvtss2sd xmm0, xmm0 maxsd xmm0, xmm2 inc rcx movapd xmm2, xmm0 cmp rax, rcx jnz short loc_FA5B6 jmp short loc_FA63A loc_FA5D5: cvtsi2sd xmm2, ecx test ebp, ebp jle short loc_FA644 mov r15d, ebp xorpd xmm0, xmm0 xor r12d, r12d movsd [rsp+38h+var_30], xmm2 loc_FA5ED: movsd [rsp+38h+var_38], xmm0 movss xmm0, dword ptr [r14+r12*4] andps xmm0, cs:xmmword_124830 cvtss2sd xmm0, xmm0 movapd xmm1, xmm2 call _pow movsd xmm2, [rsp+38h+var_30] movsd xmm1, [rsp+38h+var_38] addsd xmm1, xmm0 movsd [rsp+38h+var_38], xmm1 movsd xmm0, [rsp+38h+var_38] inc r12 cmp r15, r12 jnz short loc_FA5ED jmp short loc_FA648 loc_FA62F: call _sqrt jmp short loc_FA659 loc_FA636: xorpd xmm0, xmm0 loc_FA63A: divsd xmm0, cs:qword_124858 jmp short loc_FA661 loc_FA644: xorpd xmm0, xmm0 loc_FA648: movsd xmm1, cs:qword_112D30 divsd xmm1, xmm2 call _pow loc_FA659: movsd xmm3, cs:qword_112D30 loc_FA661: test ebp, ebp jle short loc_FA697 divsd xmm3, xmm0 xorps xmm1, xmm1 cmpltsd xmm1, xmm0 andpd xmm1, xmm3 xorps xmm0, xmm0 cvtsd2ss xmm0, xmm1 mov eax, ebp xor ecx, ecx loc_FA680: movss xmm1, dword ptr [r14+rcx*4] mulss xmm1, xmm0 movss dword ptr [rbx+rcx*4], xmm1 inc rcx cmp rax, rcx jnz short loc_FA680 loc_FA697: add rsp, 10h pop rbx pop r12 pop r14 pop r15 pop rbp retn
void common_embd_normalize(const float *a1, float *a2, int a3, int a4) { __m128d v5; // xmm0 double v6; // xmm0_8 long long i; // rcx double v8; // xmm2_8 long long v9; // rcx double v10; // xmm0_8 double v11; // xmm2_8 double v12; // xmm0_8 long long v13; // r12 double v14; // xmm0_8 float v15; // xmm0_4 long long v16; // rcx double v17; // [rsp+0h] [rbp-38h] double v18; // [rsp+8h] [rbp-30h] v5.m128d_f64[0] = 1.0; if ( a4 != -1 ) { if ( a4 ) { if ( a4 == 2 ) { v6 = 0.0; if ( a3 > 0 ) { for ( i = 0LL; i != a3; ++i ) v6 = v6 + (float)(a1[i] * a1[i]); } if ( v6 < 0.0 ) v5.m128d_f64[0] = sqrt(v6); else v5.m128d_f64[0] = sqrt(v6); } else { v11 = (double)a4; if ( a3 <= 0 ) { v12 = 0.0; } else { v12 = 0.0; v13 = 0LL; v18 = (double)a4; do { v17 = v12; v14 = pow(fabs(a1[v13]), v11); v11 = v18; v12 = v17 + v14; ++v13; } while ( a3 != v13 ); } v5.m128d_f64[0] = pow(v12, 1.0 / v11); } } else { if ( a3 <= 0 ) { v10 = 0.0; } else { v8 = 0.0; v9 = 0LL; do { v10 = fmax(fabs(a1[v9++]), v8); v8 = v10; } while ( a3 != v9 ); } v5.m128d_f64[0] = v10 / 32760.0; } } if ( a3 > 0 ) { v15 = COERCE_DOUBLE(*(_OWORD *)&_mm_cmplt_sd((__m128d)0LL, v5) & COERCE_UNSIGNED_INT64(1.0 / v5.m128d_f64[0])); v16 = 0LL; do { a2[v16] = a1[v16] * v15; ++v16; } while ( a3 != v16 ); } }
common_embd_normalize: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x10 MOV EBP,EDX MOV RBX,RSI MOV R14,RDI MOVSD XMM3,qword ptr [0x00212d30] MOVAPD XMM0,XMM3 CMP ECX,-0x1 JZ 0x001fa661 TEST ECX,ECX JZ 0x001fa59f CMP ECX,0x2 JNZ 0x001fa5d5 XORPD XMM1,XMM1 XORPD XMM0,XMM0 TEST EBP,EBP JLE 0x001fa58c MOV EAX,EBP XOR ECX,ECX LAB_001fa572: MOVSS XMM2,dword ptr [R14 + RCX*0x4] MULSS XMM2,XMM2 CVTSS2SD XMM2,XMM2 ADDSD XMM0,XMM2 INC RCX CMP RAX,RCX JNZ 0x001fa572 LAB_001fa58c: UCOMISD XMM0,XMM1 JC 0x001fa62f SQRTSD XMM0,XMM0 JMP 0x001fa661 LAB_001fa59f: TEST EBP,EBP JLE 0x001fa636 MOV EAX,EBP XORPD XMM2,XMM2 XOR ECX,ECX MOVAPS XMM1,xmmword ptr [0x00224830] LAB_001fa5b6: MOVSS XMM0,dword ptr [R14 + RCX*0x4] ANDPS XMM0,XMM1 CVTSS2SD XMM0,XMM0 MAXSD XMM0,XMM2 INC RCX MOVAPD XMM2,XMM0 CMP RAX,RCX JNZ 0x001fa5b6 JMP 0x001fa63a LAB_001fa5d5: CVTSI2SD XMM2,ECX TEST EBP,EBP JLE 0x001fa644 MOV R15D,EBP XORPD XMM0,XMM0 XOR R12D,R12D MOVSD qword ptr [RSP + 0x8],XMM2 LAB_001fa5ed: MOVSD qword ptr [RSP],XMM0 MOVSS XMM0,dword ptr [R14 + R12*0x4] ANDPS XMM0,xmmword ptr [0x00224830] CVTSS2SD XMM0,XMM0 MOVAPD XMM1,XMM2 CALL 0x001205c0 MOVSD XMM2,qword ptr [RSP + 0x8] MOVSD XMM1,qword ptr [RSP] ADDSD XMM1,XMM0 MOVSD qword ptr [RSP],XMM1 MOVSD XMM0,qword ptr [RSP] INC R12 CMP R15,R12 JNZ 0x001fa5ed JMP 0x001fa648 LAB_001fa62f: CALL 0x00120810 JMP 0x001fa659 LAB_001fa636: XORPD XMM0,XMM0 LAB_001fa63a: DIVSD XMM0,qword ptr [0x00224858] JMP 0x001fa661 LAB_001fa644: XORPD XMM0,XMM0 LAB_001fa648: MOVSD XMM1,qword ptr [0x00212d30] DIVSD XMM1,XMM2 CALL 0x001205c0 LAB_001fa659: MOVSD XMM3,qword ptr [0x00212d30] LAB_001fa661: TEST EBP,EBP JLE 0x001fa697 DIVSD XMM3,XMM0 XORPS XMM1,XMM1 CMPLTSD XMM1,XMM0 ANDPD XMM1,XMM3 XORPS XMM0,XMM0 CVTSD2SS XMM0,XMM1 MOV EAX,EBP XOR ECX,ECX LAB_001fa680: MOVSS XMM1,dword ptr [R14 + RCX*0x4] MULSS XMM1,XMM0 MOVSS dword ptr [RBX + RCX*0x4],XMM1 INC RCX CMP RAX,RCX JNZ 0x001fa680 LAB_001fa697: ADD RSP,0x10 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* common_embd_normalize(float const*, float*, int, int) */ void common_embd_normalize(float *param_1,float *param_2,int param_3,int param_4) { ulong uVar1; double dVar2; double dVar3; dVar2 = DAT_00212d30; if (param_4 != -1) { if (param_4 == 0) { if (param_3 < 1) { dVar2 = 0.0; } else { uVar1 = 0; dVar3 = 0.0; do { dVar2 = (double)(float)((uint)param_1[uVar1] & _DAT_00224830); if ((double)(float)((uint)param_1[uVar1] & _DAT_00224830) <= dVar3) { dVar2 = dVar3; } uVar1 = uVar1 + 1; dVar3 = dVar2; } while ((uint)param_3 != uVar1); } dVar2 = dVar2 / _DAT_00224858; } else if (param_4 == 2) { dVar2 = 0.0; if (0 < param_3) { uVar1 = 0; do { dVar2 = dVar2 + (double)(param_1[uVar1] * param_1[uVar1]); uVar1 = uVar1 + 1; } while ((uint)param_3 != uVar1); } if (0.0 <= dVar2) { dVar2 = SQRT(dVar2); } else { dVar2 = sqrt(dVar2); } } else { if (param_3 < 1) { dVar2 = 0.0; } else { dVar2 = 0.0; uVar1 = 0; do { dVar3 = pow((double)(float)((uint)param_1[uVar1] & _DAT_00224830),(double)param_4); dVar2 = dVar2 + dVar3; uVar1 = uVar1 + 1; } while ((uint)param_3 != uVar1); } dVar2 = pow(dVar2,DAT_00212d30 / (double)param_4); } } if (0 < param_3) { dVar3 = DAT_00212d30 / dVar2; uVar1 = 0; do { param_2[uVar1] = param_1[uVar1] * (float)(double)(-(ulong)(0.0 < dVar2) & (ulong)dVar3); uVar1 = uVar1 + 1; } while ((uint)param_3 != uVar1); } return; }
51,013
minja::CommentTemplateToken::CommentTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/minja.hpp
CommentTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, const std::string& t) : TemplateToken(Type::Comment, location, pre, post), text(t) {}
O1
cpp
minja::CommentTemplateToken::CommentTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0xa87bb(%rip), %r15 # 0x13b2e8 addq $0x10, %r15 movq %r15, (%rdi) movl $0xc, 0x8(%rdi) movq (%rsi), %rax movq %rax, 0x10(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x18(%rdi) testq %rax, %rax je 0x92b64 movq 0xaa42a(%rip), %rdi # 0x13cf80 cmpb $0x0, (%rdi) je 0x92b60 incl 0x8(%rax) jmp 0x92b64 lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x20(%rbx) movl %edx, 0x28(%rbx) movl %ecx, 0x2c(%rbx) leaq 0xa8727(%rip), %rax # 0x13b2a0 addq $0x10, %rax movq %rax, (%rbx) leaq 0x30(%rbx), %rdi leaq 0x40(%rbx), %rax movq %rax, 0x30(%rbx) movq (%r8), %rsi movq 0x8(%r8), %rdx addq %rsi, %rdx callq 0x2d612 popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq %r15, (%rbx) movq 0x18(%rbx), %rdi testq %rdi, %rdi je 0x92bb5 callq 0x7ae1c movq %r14, %rdi callq 0x1c020 nop
_ZN5minja20CommentTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r15 push r14 push rbx mov rbx, rdi lea r15, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken add r15, 10h mov [rdi], r15 mov dword ptr [rdi+8], 0Ch mov rax, [rsi] mov [rdi+10h], rax mov rax, [rsi+8] mov [rdi+18h], rax test rax, rax jz short loc_92B64 mov rdi, cs:__libc_single_threaded_ptr cmp byte ptr [rdi], 0 jz short loc_92B60 inc dword ptr [rax+8] jmp short loc_92B64 loc_92B60: lock inc dword ptr [rax+8] loc_92B64: mov rax, [rsi+10h] mov [rbx+20h], rax mov [rbx+28h], edx mov [rbx+2Ch], ecx lea rax, _ZTVN5minja20CommentTemplateTokenE; `vtable for'minja::CommentTemplateToken add rax, 10h mov [rbx], rax lea rdi, [rbx+30h] lea rax, [rbx+40h] mov [rbx+30h], rax mov rsi, [r8] mov rdx, [r8+8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) pop rbx pop r14 pop r15 retn mov r14, rax mov [rbx], r15 mov rdi, [rbx+18h] test rdi, rdi jz short loc_92BB5 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_92BB5: mov rdi, r14 call __Unwind_Resume
long long minja::CommentTemplateToken::CommentTemplateToken( long long a1, _QWORD *a2, int a3, int a4, long long a5) { long long v5; // rax *(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2; *(_DWORD *)(a1 + 8) = 12; *(_QWORD *)(a1 + 16) = *a2; v5 = a2[1]; *(_QWORD *)(a1 + 24) = v5; if ( v5 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v5 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v5 + 8)); } *(_QWORD *)(a1 + 32) = a2[2]; *(_DWORD *)(a1 + 40) = a3; *(_DWORD *)(a1 + 44) = a4; *(_QWORD *)a1 = &`vtable for'minja::CommentTemplateToken + 2; *(_QWORD *)(a1 + 48) = a1 + 64; return std::string::_M_construct<char *>((_QWORD *)(a1 + 48), *(_BYTE **)a5, *(_QWORD *)a5 + *(_QWORD *)(a5 + 8)); }
CommentTemplateToken: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI LEA R15,[0x23b2e8] ADD R15,0x10 MOV qword ptr [RDI],R15 MOV dword ptr [RDI + 0x8],0xc MOV RAX,qword ptr [RSI] MOV qword ptr [RDI + 0x10],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x18],RAX TEST RAX,RAX JZ 0x00192b64 MOV RDI,qword ptr [0x0023cf80] CMP byte ptr [RDI],0x0 JZ 0x00192b60 INC dword ptr [RAX + 0x8] JMP 0x00192b64 LAB_00192b60: INC.LOCK dword ptr [RAX + 0x8] LAB_00192b64: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RBX + 0x20],RAX MOV dword ptr [RBX + 0x28],EDX MOV dword ptr [RBX + 0x2c],ECX LEA RAX,[0x23b2a0] ADD RAX,0x10 MOV qword ptr [RBX],RAX LEA RDI,[RBX + 0x30] LEA RAX,[RBX + 0x40] MOV qword ptr [RBX + 0x30],RAX MOV RSI,qword ptr [R8] MOV RDX,qword ptr [R8 + 0x8] ADD RDX,RSI LAB_00192b96: CALL 0x0012d612 LAB_00192b9b: POP RBX POP R14 POP R15 RET
/* minja::CommentTemplateToken::CommentTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::string const&) */ void __thiscall minja::CommentTemplateToken::CommentTemplateToken (CommentTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4, long *param_5) { long lVar1; *(int ***)this = &PTR__TemplateToken_0023b2f8; *(int4 *)(this + 8) = 0xc; *(int8 *)(this + 0x10) = *param_1; lVar1 = param_1[1]; *(long *)(this + 0x18) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_0023cf80 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } *(int8 *)(this + 0x20) = param_1[2]; *(int4 *)(this + 0x28) = param_3; *(int4 *)(this + 0x2c) = param_4; *(int ***)this = &PTR__CommentTemplateToken_0023b2b0; *(CommentTemplateToken **)(this + 0x30) = this + 0x40; /* try { // try from 00192b96 to 00192b9a has its CatchHandler @ 00192ba1 */ std::__cxx11::string::_M_construct<char*>(this + 0x30,*param_5,param_5[1] + *param_5); return; }
51,014
minja::CommentTemplateToken::CommentTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/minja.hpp
CommentTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, const std::string& t) : TemplateToken(Type::Comment, location, pre, post), text(t) {}
O3
cpp
minja::CommentTemplateToken::CommentTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbx movq %rdi, %rbx leaq 0xa6b33(%rip), %rax # 0x1392a0 addq $0x10, %rax movq %rax, (%rdi) movq 0x30(%rdi), %rdi leaq 0x40(%rbx), %rax cmpq %rax, %rdi je 0x9278c movq (%rax), %rsi incq %rsi callq 0x1b8f0 leaq 0xa6b55(%rip), %rax # 0x1392e8 addq $0x10, %rax movq %rax, (%rbx) movq 0x18(%rbx), %rdi testq %rdi, %rdi je 0x927a8 callq 0x7b578 movl $0x50, %esi movq %rbx, %rdi popq %rbx jmp 0x1b8f0
_ZN5minja20CommentTemplateTokenD0Ev: push rbx mov rbx, rdi lea rax, _ZTVN5minja20CommentTemplateTokenE; `vtable for'minja::CommentTemplateToken add rax, 10h mov [rdi], rax mov rdi, [rdi+30h]; void * lea rax, [rbx+40h] cmp rdi, rax jz short loc_9278C mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9278C: lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken add rax, 10h mov [rbx], rax mov rdi, [rbx+18h] test rdi, rdi jz short loc_927A8 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_927A8: mov esi, 50h ; 'P'; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong)
void minja::CommentTemplateToken::~CommentTemplateToken(minja::CommentTemplateToken *this) { char *v2; // rdi volatile signed __int32 *v3; // rdi *(_QWORD *)this = &`vtable for'minja::CommentTemplateToken + 2; v2 = (char *)*((_QWORD *)this + 6); if ( v2 != (char *)this + 64 ) operator delete(v2, *((_QWORD *)this + 8) + 1LL); *(_QWORD *)this = &`vtable for'minja::TemplateToken + 2; v3 = (volatile signed __int32 *)*((_QWORD *)this + 3); if ( v3 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3); operator delete(this, 0x50uLL); }
~CommentTemplateToken: PUSH RBX MOV RBX,RDI LEA RAX,[0x2392a0] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x30] LEA RAX,[RBX + 0x40] CMP RDI,RAX JZ 0x0019278c MOV RSI,qword ptr [RAX] INC RSI CALL 0x0011b8f0 LAB_0019278c: LEA RAX,[0x2392e8] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RBX + 0x18] TEST RDI,RDI JZ 0x001927a8 CALL 0x0017b578 LAB_001927a8: MOV ESI,0x50 MOV RDI,RBX POP RBX JMP 0x0011b8f0
/* minja::CommentTemplateToken::~CommentTemplateToken() */ void __thiscall minja::CommentTemplateToken::~CommentTemplateToken(CommentTemplateToken *this) { *(int ***)this = &PTR__CommentTemplateToken_002392b0; if (*(CommentTemplateToken **)(this + 0x30) != this + 0x40) { operator_delete(*(CommentTemplateToken **)(this + 0x30),*(long *)(this + 0x40) + 1); } *(int ***)this = &PTR__TemplateToken_002392f8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18)); } operator_delete(this,0x50); return; }
51,015
translog_mark_file_finished
eloqsql/storage/maria/ma_loghandler.c
static void translog_mark_file_finished(uint32 file) { int i; struct st_file_counter *UNINIT_VAR(fc_ptr); DBUG_ENTER("translog_mark_file_finished"); DBUG_PRINT("enter", ("file: %lu", (ulong) file)); mysql_mutex_lock(&log_descriptor.unfinished_files_lock); DBUG_ASSERT(log_descriptor.unfinished_files.elements > 0); for (i= 0; i < (int) log_descriptor.unfinished_files.elements; i++) { fc_ptr= dynamic_element(&log_descriptor.unfinished_files, i, struct st_file_counter *); if (fc_ptr->file == file) { break; } } DBUG_ASSERT(i < (int) log_descriptor.unfinished_files.elements); if (! --fc_ptr->counter) delete_dynamic_element(&log_descriptor.unfinished_files, i); mysql_mutex_unlock(&log_descriptor.unfinished_files_lock); DBUG_VOID_RETURN; }
O0
c
translog_mark_file_finished: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl %edi, -0x4(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x10(%rbp) jmp 0x5c2b5 leaq 0x41d104(%rip), %rdi # 0x4793c0 addq $0x800e08, %rdi # imm = 0x800E08 leaq 0xf5a04(%rip), %rsi # 0x151cce movl $0x58d, %edx # imm = 0x58D callq 0x4fcf0 jmp 0x5c2d6 movl $0x0, -0x8(%rbp) movl -0x8(%rbp), %eax cmpl 0xc1df32(%rip), %eax # 0xc7a218 jge 0x5c318 movq 0xc1df21(%rip), %rax # 0xc7a210 movslq -0x8(%rbp), %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movl (%rax), %eax cmpl -0x4(%rbp), %eax jne 0x5c30b jmp 0x5c318 jmp 0x5c30d movl -0x8(%rbp), %eax addl $0x1, %eax movl %eax, -0x8(%rbp) jmp 0x5c2dd jmp 0x5c31a jmp 0x5c31c movq -0x10(%rbp), %rcx movl 0x4(%rcx), %eax addl $-0x1, %eax movl %eax, 0x4(%rcx) cmpl $0x0, %eax jne 0x5c344 movl -0x8(%rbp), %esi leaq 0x41d088(%rip), %rdi # 0x4793c0 addq $0x800e50, %rdi # imm = 0x800E50 callq 0xdae30 leaq 0x41d075(%rip), %rdi # 0x4793c0 addq $0x800e08, %rdi # imm = 0x800E08 callq 0x4fd60 jmp 0x5c359 addq $0x10, %rsp popq %rbp retq nop
translog_mark_file_finished: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_4], edi mov rax, [rbp+var_10] mov [rbp+var_10], rax jmp short $+2 loc_5C2B5: lea rdi, log_descriptor add rdi, 800E08h lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 58Dh call inline_mysql_mutex_lock_8 jmp short $+2 loc_5C2D6: mov [rbp+var_8], 0 loc_5C2DD: mov eax, [rbp+var_8] cmp eax, cs:dword_C7A218 jge short loc_5C318 mov rax, cs:qword_C7A210 movsxd rcx, [rbp+var_8] shl rcx, 3 add rax, rcx mov [rbp+var_10], rax mov rax, [rbp+var_10] mov eax, [rax] cmp eax, [rbp+var_4] jnz short loc_5C30B jmp short loc_5C318 loc_5C30B: jmp short $+2 loc_5C30D: mov eax, [rbp+var_8] add eax, 1 mov [rbp+var_8], eax jmp short loc_5C2DD loc_5C318: jmp short $+2 loc_5C31A: jmp short $+2 loc_5C31C: mov rcx, [rbp+var_10] mov eax, [rcx+4] add eax, 0FFFFFFFFh mov [rcx+4], eax cmp eax, 0 jnz short loc_5C344 mov esi, [rbp+var_8] lea rdi, log_descriptor add rdi, 800E50h call delete_dynamic_element loc_5C344: lea rdi, log_descriptor add rdi, 800E08h call inline_mysql_mutex_unlock_8 jmp short $+2 loc_5C359: add rsp, 10h pop rbp retn
long long translog_mark_file_finished(int a1) { int v1; // eax _DWORD *v3; // [rsp+0h] [rbp-10h] int i; // [rsp+8h] [rbp-8h] inline_mysql_mutex_lock_8( (long long)&log_descriptor[1049025], (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x58Du); for ( i = 0; i < dword_C7A218; ++i ) { v3 = (_DWORD *)(8LL * i + qword_C7A210); if ( *v3 == a1 ) break; } v1 = v3[1] - 1; v3[1] = v1; if ( !v1 ) delete_dynamic_element(&log_descriptor[1049034], (unsigned int)i); return inline_mysql_mutex_unlock_8((long long)&log_descriptor[1049025]); }
translog_mark_file_finished: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV dword ptr [RBP + -0x4],EDI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x10],RAX JMP 0x0015c2b5 LAB_0015c2b5: LEA RDI,[0x5793c0] ADD RDI,0x800e08 LEA RSI,[0x251cce] MOV EDX,0x58d CALL 0x0014fcf0 JMP 0x0015c2d6 LAB_0015c2d6: MOV dword ptr [RBP + -0x8],0x0 LAB_0015c2dd: MOV EAX,dword ptr [RBP + -0x8] CMP EAX,dword ptr [0x00d7a218] JGE 0x0015c318 MOV RAX,qword ptr [0x00d7a210] MOVSXD RCX,dword ptr [RBP + -0x8] SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] CMP EAX,dword ptr [RBP + -0x4] JNZ 0x0015c30b JMP 0x0015c318 LAB_0015c30b: JMP 0x0015c30d LAB_0015c30d: MOV EAX,dword ptr [RBP + -0x8] ADD EAX,0x1 MOV dword ptr [RBP + -0x8],EAX JMP 0x0015c2dd LAB_0015c318: JMP 0x0015c31a LAB_0015c31a: JMP 0x0015c31c LAB_0015c31c: MOV RCX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RCX + 0x4] ADD EAX,-0x1 MOV dword ptr [RCX + 0x4],EAX CMP EAX,0x0 JNZ 0x0015c344 MOV ESI,dword ptr [RBP + -0x8] LEA RDI,[0x5793c0] ADD RDI,0x800e50 CALL 0x001dae30 LAB_0015c344: LEA RDI,[0x5793c0] ADD RDI,0x800e08 CALL 0x0014fd60 JMP 0x0015c359 LAB_0015c359: ADD RSP,0x10 POP RBP RET
void translog_mark_file_finished(int param_1) { int iVar1; int *local_18; int local_10; inline_mysql_mutex_lock (&DAT_00d7a1c8,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x58d); local_10 = 0; while ((local_10 < DAT_00d7a218 && (local_18 = (int *)(DAT_00d7a210 + (long)local_10 * 8), *local_18 != param_1))) { local_10 = local_10 + 1; } iVar1 = local_18[1]; local_18[1] = iVar1 + -1; if (iVar1 + -1 == 0) { delete_dynamic_element(&DAT_00d7a210,local_10); } inline_mysql_mutex_unlock(&DAT_00d7a1c8); return; }
51,016
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<long&>(long&, bool)
llama.cpp/common/json.hpp
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false) { JSON_ASSERT(!keep_stack.empty()); // do not handle this value if we know it would be added to a discarded // container if (!keep_stack.back()) { return {false, nullptr}; } // create value auto value = BasicJsonType(std::forward<Value>(v)); // check callback const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value); // do not handle this value if we just learnt it shall be discarded if (!keep) { return {false, nullptr}; } if (ref_stack.empty()) { root = std::move(value); return {true, & root}; } // skip this value if we already decided to skip the parent // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360) if (!ref_stack.back()) { return {false, nullptr}; } // we now only expect arrays and objects JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object()); // array if (ref_stack.back()->is_array()) { ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value)); return {true, & (ref_stack.back()->m_data.m_value.array->back())}; } // object JSON_ASSERT(ref_stack.back()->is_object()); // check if we should store an element for the current key JSON_ASSERT(!key_keep_stack.empty()); const bool store_element = key_keep_stack.back(); key_keep_stack.pop_back(); if (!store_element) { return {false, nullptr}; } JSON_ASSERT(object_element); *object_element = std::move(value); return {true, object_element}; }
O3
cpp
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<long&>(long&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movl %edx, %ebp movq %rdi, %rbx movq 0x30(%rdi), %rax movl 0x38(%rdi), %ecx cmpq %rax, 0x20(%rdi) sete %dl testl %ecx, %ecx sete %dil andb %dl, %dil cmpb $0x1, %dil je 0x8c436 movl %ecx, %ecx movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000 leaq -0x1(%rcx), %rdx addq $0x3e, %rcx testq %rdx, %rdx cmovnsq %rdx, %rcx sarq $0x6, %rcx leaq (%rax,%rcx,8), %rax leaq 0x3f(%r15), %rcx andq %rdx, %rcx xorl %edi, %edi cmpq %r15, %rcx setbe %dil movq -0x8(%rax,%rdi,8), %rax btq %rdx, %rax jae 0x8c2c9 xorps %xmm0, %xmm0 leaq 0x10(%rsp), %r14 movaps %xmm0, (%r14) movq (%rsi), %rsi movq %r14, %rdi callq 0x8c4d0 movq %r14, %rdi movl $0x1, %esi callq 0x8508e testb %bpl, %bpl jne 0x8c276 movq 0x10(%rbx), %rax subq 0x8(%rbx), %rax shrq $0x3, %rax movl %eax, 0xc(%rsp) movb $0x5, 0xb(%rsp) cmpq $0x0, 0x90(%rbx) je 0x8c457 leaq 0x80(%rbx), %rdi leaq 0xc(%rsp), %rsi leaq 0xb(%rsp), %rdx leaq 0x10(%rsp), %rcx callq *0x98(%rbx) testb %al, %al je 0x8c40a movq 0x10(%rbx), %rax cmpq %rax, 0x8(%rbx) je 0x8c2d3 movq -0x8(%rax), %rax testq %rax, %rax je 0x8c40a movzbl (%rax), %ecx cmpl $0x1, %ecx je 0x8c32d cmpl $0x2, %ecx jne 0x8c45c movq 0x8(%rax), %rdi leaq 0x10(%rsp), %rsi callq 0x88ea4 movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq 0x8(%rax), %rax movq 0x8(%rax), %r14 addq $-0x10, %r14 jmp 0x8c406 xorl %ebx, %ebx xorl %r14d, %r14d jmp 0x8c426 leaq 0x10(%rsp), %r14 movaps (%r14), %xmm0 leaq 0x30(%rsp), %r15 movaps %xmm0, (%r15) movq %r14, %rdi xorl %esi, %esi callq 0x8508e movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r15, %rdi movl $0x1, %esi callq 0x8508e movq (%rbx), %rdi movq %r15, %rsi callq 0x871fa movq %r15, %rdi xorl %esi, %esi callq 0x8508e movq %r15, %rdi callq 0x897a8 movq (%rbx), %r14 jmp 0x8c406 movq 0x58(%rbx), %rax movl 0x60(%rbx), %ecx cmpq %rax, 0x48(%rbx) sete %dl testl %ecx, %ecx sete %sil andb %dl, %sil cmpb $0x1, %sil je 0x8c46a movl %ecx, %esi leaq -0x1(%rsi), %rcx movq %rsi, %rdx addq $0x3e, %rdx testq %rcx, %rcx cmovnsq %rcx, %rdx sarq $0x6, %rdx leaq (%rax,%rdx,8), %rdi leaq 0x3f(%r15), %rdx andq %rcx, %rdx xorl %r8d, %r8d cmpq %r15, %rdx setbe %r8b movl $0x1, %edx shlq %cl, %rdx andq -0x8(%rdi,%r8,8), %rdx subl $0x1, %esi movl %esi, 0x60(%rbx) jae 0x8c39f movl $0x3f, 0x60(%rbx) addq $-0x8, %rax movq %rax, 0x58(%rbx) testq %rdx, %rdx je 0x8c40a cmpq $0x0, 0x70(%rbx) je 0x8c48b leaq 0x10(%rsp), %r14 movaps (%r14), %xmm0 leaq 0x20(%rsp), %r15 movaps %xmm0, (%r15) movq %r14, %rdi xorl %esi, %esi callq 0x8508e movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r15, %rdi movl $0x1, %esi callq 0x8508e movq 0x70(%rbx), %rdi movq %r15, %rsi callq 0x871fa movq %r15, %rdi xorl %esi, %esi callq 0x8508e movq %r15, %rdi callq 0x897a8 movq 0x70(%rbx), %r14 movb $0x1, %bl jmp 0x8c40f xorl %ebx, %ebx xorl %r14d, %r14d leaq 0x10(%rsp), %r15 movq %r15, %rdi xorl %esi, %esi callq 0x8508e movq %r15, %rdi callq 0x897a8 movl %ebx, %eax movq %r14, %rdx addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x8d47b(%rip), %rdi # 0x1198b8 leaq 0x85dc9(%rip), %rdx # 0x11220d leaq 0x8e3c3(%rip), %rcx # 0x11a80e movl $0x1c28, %esi # imm = 0x1C28 xorl %eax, %eax callq 0x20e60 callq 0x212a0 leaq 0x8e3bf(%rip), %rcx # 0x11a822 movl $0x1c4b, %esi # imm = 0x1C4B jmp 0x8c476 leaq 0x8e3ef(%rip), %rcx # 0x11a860 movl $0x1c57, %esi # imm = 0x1C57 leaq 0x8d43b(%rip), %rdi # 0x1198b8 leaq 0x85d89(%rip), %rdx # 0x11220d xorl %eax, %eax callq 0x20e60 leaq 0x8d426(%rip), %rdi # 0x1198b8 leaq 0x85d74(%rip), %rdx # 0x11220d leaq 0x8e3d8(%rip), %rcx # 0x11a878 movl $0x1c60, %esi # imm = 0x1C60 xorl %eax, %eax callq 0x20e60 jmp 0x8c4ae movq %rax, %rbx leaq 0x10(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x8508e movq %r14, %rdi callq 0x897a8 movq %rbx, %rdi callq 0x20ae0
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRmEESt4pairIbPSF_EOT_b: push rbp push r15 push r14 push rbx sub rsp, 48h mov ebp, edx mov rbx, rdi mov rax, [rdi+30h] mov ecx, [rdi+38h] cmp [rdi+20h], rax setz dl test ecx, ecx setz dil and dil, dl cmp dil, 1 jz loc_8C436 mov ecx, ecx mov r15, 8000000000000000h lea rdx, [rcx-1] add rcx, 3Eh ; '>' test rdx, rdx cmovns rcx, rdx sar rcx, 6 lea rax, [rax+rcx*8] lea rcx, [r15+3Fh] and rcx, rdx xor edi, edi cmp rcx, r15 setbe dil mov rax, [rax+rdi*8-8] bt rax, rdx jnb loc_8C2C9 xorps xmm0, xmm0 lea r14, [rsp+68h+var_58] movaps xmmword ptr [r14], xmm0 mov rsi, [rsi] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE6EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_17number_unsigned_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_unsigned_t) mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) test bpl, bpl jnz short loc_8C276 mov rax, [rbx+10h] sub rax, [rbx+8] shr rax, 3 mov [rsp+68h+var_5C], eax mov [rsp+68h+var_5D], 5 cmp qword ptr [rbx+90h], 0 jz loc_8C457 lea rdi, [rbx+80h] lea rsi, [rsp+68h+var_5C] lea rdx, [rsp+68h+var_5D] lea rcx, [rsp+68h+var_58] call qword ptr [rbx+98h] test al, al jz loc_8C40A loc_8C276: mov rax, [rbx+10h] cmp [rbx+8], rax jz short loc_8C2D3 mov rax, [rax-8] test rax, rax jz loc_8C40A movzx ecx, byte ptr [rax] cmp ecx, 1 jz loc_8C32D cmp ecx, 2 jnz loc_8C45C mov rdi, [rax+8] lea rsi, [rsp+68h+var_58] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) mov rax, [rbx+10h] mov rax, [rax-8] mov rax, [rax+8] mov r14, [rax+8] add r14, 0FFFFFFFFFFFFFFF0h jmp loc_8C406 loc_8C2C9: xor ebx, ebx xor r14d, r14d jmp loc_8C426 loc_8C2D3: lea r14, [rsp+68h+var_58] movaps xmm0, xmmword ptr [r14] lea r15, [rsp+68h+var_38] movaps xmmword ptr [r15], xmm0 mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, [rbx] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov r14, [rbx] jmp loc_8C406 loc_8C32D: mov rax, [rbx+58h] mov ecx, [rbx+60h] cmp [rbx+48h], rax setz dl test ecx, ecx setz sil and sil, dl cmp sil, 1 jz loc_8C46A mov esi, ecx lea rcx, [rsi-1] mov rdx, rsi add rdx, 3Eh ; '>' test rcx, rcx cmovns rdx, rcx sar rdx, 6 lea rdi, [rax+rdx*8] lea rdx, [r15+3Fh] and rdx, rcx xor r8d, r8d cmp rdx, r15 setbe r8b mov edx, 1 shl rdx, cl and rdx, [rdi+r8*8-8] sub esi, 1 mov [rbx+60h], esi jnb short loc_8C39F mov dword ptr [rbx+60h], 3Fh ; '?' add rax, 0FFFFFFFFFFFFFFF8h mov [rbx+58h], rax loc_8C39F: test rdx, rdx jz short loc_8C40A cmp qword ptr [rbx+70h], 0 jz loc_8C48B lea r14, [rsp+68h+var_58] movaps xmm0, xmmword ptr [r14] lea r15, [rsp+68h+var_48] movaps xmmword ptr [r15], xmm0 mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, [rbx+70h] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov r14, [rbx+70h] loc_8C406: mov bl, 1 jmp short loc_8C40F loc_8C40A: xor ebx, ebx xor r14d, r14d loc_8C40F: lea r15, [rsp+68h+var_58] mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_8C426: mov eax, ebx mov rdx, r14 add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_8C436: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov esi, 1C28h xor eax, eax call _ggml_abort loc_8C457: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) loc_8C45C: lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"... mov esi, 1C4Bh jmp short loc_8C476 loc_8C46A: lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()" mov esi, 1C57h loc_8C476: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" xor eax, eax call _ggml_abort loc_8C48B: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aObjectElement; "object_element" mov esi, 1C60h xor eax, eax call _ggml_abort jmp short $+2 loc_8C4AE: mov rbx, rax lea r14, [rsp+68h+var_58] mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<unsigned long &>( long long a1, _QWORD *a2, char a3) { unsigned int v4; // ebx long long v5; // rax unsigned int v6; // ecx signed long long v7; // rdx long long v8; // rcx long long v9; // rax long long v10; // rax unsigned __int8 *v11; // rax int v12; // ecx long long v13; // rax unsigned int v14; // ecx long long v15; // rsi long long v16; // rcx long long v17; // rdx long long v18; // rdx const char *v20; // rcx long long v21; // rsi long long v22; // rax long long v23; // rbx char v24; // [rsp+Bh] [rbp-5Dh] BYREF int v25; // [rsp+Ch] [rbp-5Ch] BYREF __int128 v26; // [rsp+10h] [rbp-58h] BYREF __int128 v27; // [rsp+20h] [rbp-48h] BYREF _OWORD v28[3]; // [rsp+30h] [rbp-38h] BYREF v4 = a1; v5 = *(_QWORD *)(a1 + 48); v6 = *(_DWORD *)(a1 + 56); if ( *(_QWORD *)(a1 + 32) == v5 && v6 == 0 ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 7208LL, "GGML_ASSERT(%s) failed", "!keep_stack.empty()"); goto LABEL_28; } v7 = v6 - 1LL; v8 = v6 + 62LL; if ( v7 >= 0 ) v8 = v7; v9 = *(_QWORD *)(v5 + 8 * (v8 >> 6) + 8LL * ((v7 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8); if ( _bittest64(&v9, v7) ) { v26 = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( &v26, *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 *)&v26); if ( a3 ) { LABEL_8: v10 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(a1 + 8) == v10 ) { v28[0] = v26; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26); LOBYTE(v26) = 0; *((_QWORD *)&v26 + 1) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( *(_QWORD *)a1, (long long)v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v28); goto LABEL_23; } v11 = *(unsigned __int8 **)(v10 - 8); if ( v11 ) { v12 = *v11; if ( v12 != 1 ) { if ( v12 == 2 ) { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( *((_QWORD *)v11 + 1), (long long)&v26); LABEL_23: LOBYTE(v4) = 1; LABEL_25: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v26); return v4; } v20 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; v21 = 7243LL; goto LABEL_31; } v13 = *(_QWORD *)(a1 + 88); v14 = *(_DWORD *)(a1 + 96); if ( *(_QWORD *)(a1 + 72) == v13 && v14 == 0 ) { v20 = "!key_keep_stack.empty()"; v21 = 7255LL; LABEL_31: ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", v21, "GGML_ASSERT(%s) failed", v20); goto LABEL_32; } v15 = v14; v16 = v14 - 1LL; v17 = v15 + 62; if ( v16 >= 0 ) v17 = v16; v18 = *(_QWORD *)(v13 + 8 * (v17 >> 6) + 8LL * ((v16 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8) & (1LL << v16); *(_DWORD *)(a1 + 96) = v15 - 1; if ( !(_DWORD)v15 ) { *(_DWORD *)(a1 + 96) = 63; *(_QWORD *)(a1 + 88) = v13 - 8; } if ( v18 ) { if ( *(_QWORD *)(a1 + 112) ) { v27 = v26; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26); LOBYTE(v26) = 0; *((_QWORD *)&v26 + 1) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( *(_QWORD *)(a1 + 112), (long long)&v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v27); goto LABEL_23; } LABEL_32: ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 7264LL, "GGML_ASSERT(%s) failed", "object_element"); v23 = v22; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v26); _Unwind_Resume(v23); } } LABEL_24: v4 = 0; goto LABEL_25; } v25 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3; v24 = 5; if ( *(_QWORD *)(a1 + 144) ) { if ( !(*(unsigned __int8 ( **)(long long, int *, char *, __int128 *))(a1 + 152))( a1 + 128, &v25, &v24, &v26) ) goto LABEL_24; goto LABEL_8; } LABEL_28: std::__throw_bad_function_call(); } return 0; }
handle_value<unsigned_long&>: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV EBP,EDX MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x30] MOV ECX,dword ptr [RDI + 0x38] CMP qword ptr [RDI + 0x20],RAX SETZ DL TEST ECX,ECX SETZ DIL AND DIL,DL CMP DIL,0x1 JZ 0x0018c436 MOV ECX,ECX MOV R15,-0x8000000000000000 LEA RDX,[RCX + -0x1] ADD RCX,0x3e TEST RDX,RDX CMOVNS RCX,RDX SAR RCX,0x6 LEA RAX,[RAX + RCX*0x8] LEA RCX,[R15 + 0x3f] AND RCX,RDX XOR EDI,EDI CMP RCX,R15 SETBE DIL MOV RAX,qword ptr [RAX + RDI*0x8 + -0x8] BT RAX,RDX JNC 0x0018c2c9 XORPS XMM0,XMM0 LEA R14,[RSP + 0x10] MOVAPS xmmword ptr [R14],XMM0 MOV RSI,qword ptr [RSI] MOV RDI,R14 CALL 0x0018c4d0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0018508e TEST BPL,BPL JNZ 0x0018c276 MOV RAX,qword ptr [RBX + 0x10] SUB RAX,qword ptr [RBX + 0x8] SHR RAX,0x3 MOV dword ptr [RSP + 0xc],EAX MOV byte ptr [RSP + 0xb],0x5 CMP qword ptr [RBX + 0x90],0x0 JZ 0x0018c457 LEA RDI,[RBX + 0x80] LAB_0018c259: LEA RSI,[RSP + 0xc] LEA RDX,[RSP + 0xb] LEA RCX,[RSP + 0x10] CALL qword ptr [RBX + 0x98] TEST AL,AL JZ 0x0018c40a LAB_0018c276: MOV RAX,qword ptr [RBX + 0x10] CMP qword ptr [RBX + 0x8],RAX JZ 0x0018c2d3 MOV RAX,qword ptr [RAX + -0x8] TEST RAX,RAX JZ 0x0018c40a MOVZX ECX,byte ptr [RAX] CMP ECX,0x1 JZ 0x0018c32d CMP ECX,0x2 JNZ 0x0018c45c MOV RDI,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x10] CALL 0x00188ea4 LAB_0018c2b0: MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV R14,qword ptr [RAX + 0x8] ADD R14,-0x10 JMP 0x0018c406 LAB_0018c2c9: XOR EBX,EBX XOR R14D,R14D JMP 0x0018c426 LAB_0018c2d3: LEA R14,[RSP + 0x10] MOVAPS XMM0,xmmword ptr [R14] LEA R15,[RSP + 0x30] MOVAPS xmmword ptr [R15],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x0018508e MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x0018508e MOV RDI,qword ptr [RBX] MOV RSI,R15 CALL 0x001871fa MOV RDI,R15 XOR ESI,ESI CALL 0x0018508e MOV RDI,R15 CALL 0x001897a8 MOV R14,qword ptr [RBX] JMP 0x0018c406 LAB_0018c32d: MOV RAX,qword ptr [RBX + 0x58] MOV ECX,dword ptr [RBX + 0x60] CMP qword ptr [RBX + 0x48],RAX SETZ DL TEST ECX,ECX SETZ SIL AND SIL,DL CMP SIL,0x1 JZ 0x0018c46a MOV ESI,ECX LEA RCX,[RSI + -0x1] MOV RDX,RSI ADD RDX,0x3e TEST RCX,RCX CMOVNS RDX,RCX SAR RDX,0x6 LEA RDI,[RAX + RDX*0x8] LEA RDX,[R15 + 0x3f] AND RDX,RCX XOR R8D,R8D CMP RDX,R15 SETBE R8B MOV EDX,0x1 SHL RDX,CL AND RDX,qword ptr [RDI + R8*0x8 + -0x8] SUB ESI,0x1 MOV dword ptr [RBX + 0x60],ESI JNC 0x0018c39f MOV dword ptr [RBX + 0x60],0x3f ADD RAX,-0x8 MOV qword ptr [RBX + 0x58],RAX LAB_0018c39f: TEST RDX,RDX JZ 0x0018c40a CMP qword ptr [RBX + 0x70],0x0 JZ 0x0018c48b LEA R14,[RSP + 0x10] MOVAPS XMM0,xmmword ptr [R14] LEA R15,[RSP + 0x20] MOVAPS xmmword ptr [R15],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x0018508e MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x0018508e MOV RDI,qword ptr [RBX + 0x70] MOV RSI,R15 CALL 0x001871fa MOV RDI,R15 XOR ESI,ESI CALL 0x0018508e MOV RDI,R15 CALL 0x001897a8 MOV R14,qword ptr [RBX + 0x70] LAB_0018c406: MOV BL,0x1 JMP 0x0018c40f LAB_0018c40a: XOR EBX,EBX XOR R14D,R14D LAB_0018c40f: LEA R15,[RSP + 0x10] MOV RDI,R15 XOR ESI,ESI CALL 0x0018508e MOV RDI,R15 CALL 0x001897a8 LAB_0018c426: MOV EAX,EBX MOV RDX,R14 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_0018c436: LEA RDI,[0x2198b8] LEA RDX,[0x21220d] LEA RCX,[0x21a80e] MOV ESI,0x1c28 XOR EAX,EAX CALL 0x00120e60 LAB_0018c457: CALL 0x001212a0 LAB_0018c45c: LEA RCX,[0x21a822] MOV ESI,0x1c4b JMP 0x0018c476 LAB_0018c46a: LEA RCX,[0x21a860] MOV ESI,0x1c57 LAB_0018c476: LEA RDI,[0x2198b8] LEA RDX,[0x21220d] XOR EAX,EAX CALL 0x00120e60 LAB_0018c48b: LEA RDI,[0x2198b8] LEA RDX,[0x21220d] LEA RCX,[0x21a878] MOV ESI,0x1c60 XOR EAX,EAX CALL 0x00120e60
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::handle_value<unsigned long&>(unsigned long&, bool) */ int1 [16] __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::handle_value<unsigned_long&> (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,ulong *param_1,bool param_2) { uint uVar1; char cVar2; ulong uVar3; char *pcVar4; ulong uVar5; int8 uVar6; bool bVar7; long lVar8; int1 auVar9 [16]; int1 local_5d; int4 local_5c; ulong local_58; int8 uStack_50; ulong local_48; int8 uStack_40; ulong local_38; int8 uStack_30; uVar1 = *(uint *)(this + 0x38); if (uVar1 == 0 && *(long *)(this + 0x20) == *(long *)(this + 0x30)) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x1c28, "GGML_ASSERT(%s) failed","!keep_stack.empty()"); } uVar5 = (ulong)uVar1 - 1; uVar3 = (ulong)uVar1 + 0x3e; if (-1 < (long)uVar5) { uVar3 = uVar5; } if ((*(ulong *)(*(long *)(this + 0x30) + ((long)uVar3 >> 6) * 8 + -8 + (ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8) >> (uVar5 & 0x3f) & 1) == 0) { uVar5 = 0; lVar8 = 0; goto LAB_0018c426; } local_58 = 0; uStack_50 = 0; external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (&local_58,*param_1); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_58,0)); if (param_2) { LAB_0018c276: if (*(long *)(this + 8) == *(long *)(this + 0x10)) { local_38 = local_58; uStack_30 = uStack_50; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_58,0)); local_58 = local_58 & 0xffffffffffffff00; uStack_50 = 0; bVar7 = SUB81((data *)&local_38,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)this,(data *)&local_38); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)&local_38); lVar8 = *(long *)this; } else { pcVar4 = *(char **)(*(long *)(this + 0x10) + -8); if (pcVar4 == (char *)0x0) goto LAB_0018c40a; if (*pcVar4 == '\x01') { lVar8 = *(long *)(this + 0x58); uVar1 = *(uint *)(this + 0x60); if (uVar1 == 0 && *(long *)(this + 0x48) == lVar8) { pcVar4 = "!key_keep_stack.empty()"; uVar6 = 0x1c57; goto LAB_0018c476; } uVar5 = (ulong)uVar1 - 1; uVar3 = (ulong)uVar1 + 0x3e; if (-1 < (long)uVar5) { uVar3 = uVar5; } uVar3 = *(ulong *)(lVar8 + ((long)uVar3 >> 6) * 8 + -8 + (ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8); *(uint *)(this + 0x60) = uVar1 - 1; if (uVar1 == 0) { *(int4 *)(this + 0x60) = 0x3f; *(long *)(this + 0x58) = lVar8 + -8; } if ((1L << ((byte)uVar5 & 0x3f) & uVar3) == 0) goto LAB_0018c40a; if (*(long *)(this + 0x70) == 0) { /* try { // try from 0018c48b to 0018c4ab has its CatchHandler @ 0018c4ac */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x1c60, "GGML_ASSERT(%s) failed","object_element"); } local_48 = local_58; uStack_40 = uStack_50; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_58,0)); local_58 = local_58 & 0xffffffffffffff00; uStack_50 = 0; bVar7 = SUB81((data *)&local_48,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(this + 0x70),(data *)&local_48); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)&local_48); lVar8 = *(long *)(this + 0x70); } else { if (*pcVar4 != '\x02') { pcVar4 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; uVar6 = 0x1c4b; LAB_0018c476: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",uVar6, "GGML_ASSERT(%s) failed",pcVar4); } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(pcVar4 + 8),(basic_json *)&local_58); lVar8 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10; } } uVar5 = CONCAT71((int7)((ulong)this >> 8),1); } else { local_5c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3); local_5d = 5; if (*(long *)(this + 0x90) == 0) { /* WARNING: Subroutine does not return */ /* try { // try from 0018c457 to 0018c48a has its CatchHandler @ 0018c4ae */ std::__throw_bad_function_call(); } /* try { // try from 0018c259 to 0018c2af has its CatchHandler @ 0018c4ae */ cVar2 = (**(code **)(this + 0x98))(this + 0x80,&local_5c,&local_5d,&local_58); if (cVar2 != '\0') goto LAB_0018c276; LAB_0018c40a: uVar5 = 0; lVar8 = 0; } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)&local_58,0)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)&local_58); LAB_0018c426: auVar9._0_8_ = uVar5 & 0xffffffff; auVar9._8_8_ = lVar8; return auVar9; }
51,017
R3D_UpdateResolution
r3d/src/r3d_core.c
void R3D_UpdateResolution(int width, int height) { if (width <= 0 || height <= 0) { TraceLog(LOG_ERROR, "R3D: Invalid resolution given to 'R3D_UpdateResolution'"); return; } if (width == R3D.state.resolution.width && height == R3D.state.resolution.height) { return; } r3d_framebuffers_unload(); r3d_framebuffers_load(width, height); R3D.state.resolution.width = width; R3D.state.resolution.height = height; R3D.state.resolution.texelX = 1.0f / width; R3D.state.resolution.texelY = 1.0f / height; }
O3
c
R3D_UpdateResolution: testl %edi, %edi setg %al testl %esi, %esi setg %cl testb %cl, %al jne 0xc3eba leaq 0x4d7a8(%rip), %rsi # 0x111656 movl $0x5, %edi xorl %eax, %eax jmp 0xa9cb1 pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movl %edi, %r14d leaq 0xec4a0(%rip), %r15 # 0x1b0370 cmpl %edi, 0x1700(%r15) jne 0xc3ee2 cmpl %ebx, 0x1704(%r15) je 0xc3f30 callq 0xbfd3b movl %r14d, %edi movl %ebx, %esi callq 0xbef1e cvtsi2ss %r14d, %xmm0 movl %r14d, 0x1700(%r15) movss 0x1d10b(%rip), %xmm1 # 0xe1010 movaps %xmm1, %xmm2 divss %xmm0, %xmm2 xorps %xmm0, %xmm0 cvtsi2ss %ebx, %xmm0 movl %ebx, 0x1704(%r15) movss %xmm2, 0x1708(%r15) divss %xmm0, %xmm1 movss %xmm1, 0x170c(%r15) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
R3D_UpdateResolution: test edi, edi setnle al test esi, esi setnle cl test al, cl jnz short loc_C3EBA lea rsi, aR3dInvalidReso; "R3D: Invalid resolution given to 'R3D_U"... mov edi, 5 xor eax, eax jmp TraceLog loc_C3EBA: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov ebx, esi mov r14d, edi lea r15, R3D cmp [r15+1700h], edi jnz short loc_C3EE2 cmp [r15+1704h], ebx jz short loc_C3F30 loc_C3EE2: call r3d_framebuffers_unload mov edi, r14d mov esi, ebx call r3d_framebuffers_load cvtsi2ss xmm0, r14d mov [r15+1700h], r14d movss xmm1, cs:dword_E1010 movaps xmm2, xmm1 divss xmm2, xmm0 xorps xmm0, xmm0 cvtsi2ss xmm0, ebx mov [r15+1704h], ebx movss dword ptr [r15+1708h], xmm2 divss xmm1, xmm0 movss dword ptr [r15+170Ch], xmm1 loc_C3F30: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
void R3D_UpdateResolution(long long a1, signed int a2) { if ( a2 > 0 && (int)a1 > 0 ) { if ( *(_DWORD *)&R3D[5888] != (_DWORD)a1 || *(_DWORD *)&R3D[5892] != a2 ) { r3d_framebuffers_unload(a1); r3d_framebuffers_load(a1, a2); *(_DWORD *)&R3D[5888] = a1; *(_DWORD *)&R3D[5892] = a2; *(float *)&R3D[5896] = 1.0 / (float)(int)a1; *(float *)&R3D[5900] = 1.0 / (float)a2; } } else { TraceLog(5, (long long)"R3D: Invalid resolution given to 'R3D_UpdateResolution'"); } }
R3D_UpdateResolution: TEST EDI,EDI SETG AL TEST ESI,ESI SETG CL TEST AL,CL JNZ 0x001c3eba LEA RSI,[0x211656] MOV EDI,0x5 XOR EAX,EAX JMP 0x001a9cb1 LAB_001c3eba: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV EBX,ESI MOV R14D,EDI LEA R15,[0x2b0370] CMP dword ptr [R15 + 0x1700],EDI JNZ 0x001c3ee2 CMP dword ptr [R15 + 0x1704],EBX JZ 0x001c3f30 LAB_001c3ee2: CALL 0x001bfd3b MOV EDI,R14D MOV ESI,EBX CALL 0x001bef1e CVTSI2SS XMM0,R14D MOV dword ptr [R15 + 0x1700],R14D MOVSS XMM1,dword ptr [0x001e1010] MOVAPS XMM2,XMM1 DIVSS XMM2,XMM0 XORPS XMM0,XMM0 CVTSI2SS XMM0,EBX MOV dword ptr [R15 + 0x1704],EBX MOVSS dword ptr [R15 + 0x1708],XMM2 DIVSS XMM1,XMM0 MOVSS dword ptr [R15 + 0x170c],XMM1 LAB_001c3f30: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
void R3D_UpdateResolution(int param_1,int param_2) { if (param_1 < 1 || param_2 < 1) { TraceLog(5,"R3D: Invalid resolution given to \'R3D_UpdateResolution\'"); return; } if ((DAT_002b1a70 != param_1) || (DAT_002b1a74 != param_2)) { r3d_framebuffers_unload(); r3d_framebuffers_load(param_1,param_2); DAT_002b1a78 = DAT_001e1010 / (float)param_1; DAT_002b1a7c = DAT_001e1010 / (float)param_2; DAT_002b1a70 = param_1; DAT_002b1a74 = param_2; } return; }
51,018
ma_update_blob_record
eloqsql/storage/maria/ma_dynrec.c
my_bool _ma_update_blob_record(MARIA_HA *info, MARIA_RECORD_POS pos, const uchar *oldrec __attribute__ ((unused)), const uchar *record) { uchar *rec_buff; int error; ulong reclength,reclength2,extra; my_bool buff_alloced; extra= (ALIGN_SIZE(MARIA_MAX_DYN_BLOCK_HEADER)+MARIA_SPLIT_LENGTH+ MARIA_DYN_DELETE_BLOCK_HEADER); reclength= (info->s->base.pack_reclength+ _ma_calc_total_blob_length(info,record)+ extra); #ifdef NOT_USED /* We now support big rows */ if (reclength > MARIA_DYN_MAX_ROW_LENGTH) { my_errno=HA_ERR_TO_BIG_ROW; return 1; } #endif alloc_on_stack(*info->stack_end_ptr, rec_buff, buff_alloced, reclength); if (!rec_buff) { my_errno= HA_ERR_OUT_OF_MEM; /* purecov: inspected */ return(1); } reclength2= _ma_rec_pack(info, rec_buff+ ALIGN_SIZE(MARIA_MAX_DYN_BLOCK_HEADER), record); if (!reclength2) { error= 1; goto err; } DBUG_ASSERT(reclength2 <= reclength); error=update_dynamic_record(info,pos, rec_buff+ALIGN_SIZE(MARIA_MAX_DYN_BLOCK_HEADER), reclength2); err: stack_alloc_free(rec_buff, buff_alloced); return(error != 0); }
O0
c
ma_update_blob_record: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) movq %rdx, -0x28(%rbp) movq %rcx, -0x30(%rbp) movq $0x5c, -0x58(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq 0x3a0(%rax), %rax movq %rax, -0x78(%rbp) movq -0x18(%rbp), %rdi movq -0x30(%rbp), %rsi callq 0x3dee0 movq %rax, %rcx movq -0x78(%rbp), %rax addq %rcx, %rax addq -0x58(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x18(%rbp), %rax movq 0x78(%rax), %rax movq (%rax), %rax leaq -0x68(%rbp), %rcx subq %rcx, %rax movq %rax, -0x70(%rbp) movq -0x70(%rbp), %rax cmpq -0x68(%rbp), %rax jbe 0x3e087 movq -0x70(%rbp), %rcx subq -0x68(%rbp), %rcx movl $0x10000, %eax # imm = 0x10000 cmpq %rcx, %rax jb 0x3e068 movq -0x70(%rbp), %rcx subq -0x68(%rbp), %rcx movl $0x8000, %eax # imm = 0x8000 cmpq %rcx, %rax jae 0x3e087 movl $0x1000, %eax # imm = 0x1000 cmpq -0x68(%rbp), %rax ja 0x3e087 movb $0x0, -0x59(%rbp) movq -0x48(%rbp), %rcx addq $0xf, %rcx andq $-0x10, %rcx movq %rsp, %rax subq %rcx, %rax movq %rax, %rsp movq %rax, -0x38(%rbp) jmp 0x3e09f movb $0x1, -0x59(%rbp) movq -0x48(%rbp), %rsi xorl %edi, %edi movl $0x10010, %edx # imm = 0x10010 callq 0xf4be0 movq %rax, -0x38(%rbp) jmp 0x3e0a1 cmpq $0x0, -0x38(%rbp) jne 0x3e0b9 callq 0xf7440 movl $0x80, (%rax) movb $0x1, -0x9(%rbp) jmp 0x3e123 movq -0x18(%rbp), %rdi movq -0x38(%rbp), %rsi addq $0x18, %rsi movq -0x30(%rbp), %rdx callq 0x3ce20 movl %eax, %eax movq %rax, -0x50(%rbp) cmpq $0x0, -0x50(%rbp) jne 0x3e0e4 movl $0x1, -0x3c(%rbp) jmp 0x3e107 jmp 0x3e0e6 jmp 0x3e0e8 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x38(%rbp), %rdx addq $0x18, %rdx movq -0x50(%rbp), %rcx callq 0x3d5f0 movsbl %al, %eax movl %eax, -0x3c(%rbp) movq -0x38(%rbp), %rdi movsbl -0x59(%rbp), %esi callq 0x3df80 cmpl $0x0, -0x3c(%rbp) setne %al andb $0x1, %al movzbl %al, %eax movb %al, -0x9(%rbp) movb -0x9(%rbp), %al movb %al, -0x79(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x3e143 movb -0x79(%rbp), %al movq %rbp, %rsp popq %rbp retq callq 0x2a270 nopl (%rax,%rax)
_ma_update_blob_record: push rbp mov rbp, rsp sub rsp, 80h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_18], rdi mov [rbp+var_20], rsi mov [rbp+var_28], rdx mov [rbp+var_30], rcx mov [rbp+var_58], 5Ch ; '\' mov rax, [rbp+var_18] mov rax, [rax] mov rax, [rax+3A0h] mov [rbp+var_78], rax mov rdi, [rbp+var_18] mov rsi, [rbp+var_30] call _ma_calc_total_blob_length mov rcx, rax mov rax, [rbp+var_78] add rax, rcx add rax, [rbp+var_58] mov [rbp+var_48], rax mov rax, [rbp+var_48] mov [rbp+var_68], rax mov rax, [rbp+var_18] mov rax, [rax+78h] mov rax, [rax] lea rcx, [rbp+var_68] sub rax, rcx mov [rbp+var_70], rax mov rax, [rbp+var_70] cmp rax, [rbp+var_68] jbe short loc_3E087 mov rcx, [rbp+var_70] sub rcx, [rbp+var_68] mov eax, 10000h cmp rax, rcx jb short loc_3E068 mov rcx, [rbp+var_70] sub rcx, [rbp+var_68] mov eax, 8000h cmp rax, rcx jnb short loc_3E087 mov eax, 1000h cmp rax, [rbp+var_68] ja short loc_3E087 loc_3E068: mov [rbp+var_59], 0 mov rcx, [rbp+var_48] add rcx, 0Fh and rcx, 0FFFFFFFFFFFFFFF0h mov rax, rsp sub rax, rcx mov rsp, rax mov [rbp+var_38], rax jmp short loc_3E09F loc_3E087: mov [rbp+var_59], 1 mov rsi, [rbp+var_48] xor edi, edi mov edx, offset stru_10010 call my_malloc mov [rbp+var_38], rax loc_3E09F: jmp short $+2 loc_3E0A1: cmp [rbp+var_38], 0 jnz short loc_3E0B9 call _my_thread_var mov dword ptr [rax], 80h mov [rbp+var_9], 1 jmp short loc_3E123 loc_3E0B9: mov rdi, [rbp+var_18] mov rsi, [rbp+var_38] add rsi, 18h mov rdx, [rbp+var_30] call _ma_rec_pack mov eax, eax mov [rbp+var_50], rax cmp [rbp+var_50], 0 jnz short loc_3E0E4 mov [rbp+var_3C], 1 jmp short loc_3E107 loc_3E0E4: jmp short $+2 loc_3E0E6: jmp short $+2 loc_3E0E8: mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_38] add rdx, 18h mov rcx, [rbp+var_50] call update_dynamic_record movsx eax, al mov [rbp+var_3C], eax loc_3E107: mov rdi, [rbp+var_38] movsx esi, [rbp+var_59] call stack_alloc_free cmp [rbp+var_3C], 0 setnz al and al, 1 movzx eax, al mov [rbp+var_9], al loc_3E123: mov al, [rbp+var_9] mov [rbp+var_79], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_3E143 mov al, [rbp+var_79] mov rsp, rbp pop rbp retn loc_3E143: call ___stack_chk_fail
bool ma_update_blob_record(long long a1, long long a2, long long a3, _BYTE *a4) { unsigned int v4; // eax long long v6; // [rsp+0h] [rbp-80h] BYREF long long v7; // [rsp+8h] [rbp-78h] unsigned long long v8; // [rsp+10h] [rbp-70h] unsigned long long v9; // [rsp+18h] [rbp-68h] BYREF char v10; // [rsp+27h] [rbp-59h] long long v11; // [rsp+28h] [rbp-58h] unsigned long long v12; // [rsp+30h] [rbp-50h] unsigned long long v13; // [rsp+38h] [rbp-48h] int updated; // [rsp+44h] [rbp-3Ch] long long v15; // [rsp+48h] [rbp-38h] _BYTE *v16; // [rsp+50h] [rbp-30h] long long v17; // [rsp+58h] [rbp-28h] long long v18; // [rsp+60h] [rbp-20h] _DWORD *v19; // [rsp+68h] [rbp-18h] unsigned long long v21; // [rsp+78h] [rbp-8h] v21 = __readfsqword(0x28u); v19 = (_DWORD *)a1; v18 = a2; v17 = a3; v16 = a4; v11 = 92LL; v7 = *(_QWORD *)(*(_QWORD *)a1 + 928LL); v13 = ma_calc_total_blob_length((_QWORD *)a1, (long long)a4, a3) + v7 + 92; v9 = v13; v8 = **(_QWORD **)(a1 + 120) - (_QWORD)&v9; if ( v8 <= v13 || v8 - v9 <= 0x10000 && (v8 - v9 <= 0x8000 || v9 < 0x1000) ) { v10 = 1; v15 = my_malloc(0LL, v13, &stru_10010); } else { v10 = 0; v15 = (long long)&v6 - ((v13 + 15) & 0xFFFFFFFFFFFFFFF0LL); } if ( v15 ) { v4 = ma_rec_pack(v19, (_BYTE *)(v15 + 24), v16); v12 = v4; if ( v4 ) updated = update_dynamic_record((long long)v19, v18, v15 + 24, v12); else updated = 1; stack_alloc_free(v15, v10); return updated != 0; } else { *(_DWORD *)my_thread_var() = 128; return 1; } }
_ma_update_blob_record: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x18],RDI MOV qword ptr [RBP + -0x20],RSI MOV qword ptr [RBP + -0x28],RDX MOV qword ptr [RBP + -0x30],RCX MOV qword ptr [RBP + -0x58],0x5c MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x3a0] MOV qword ptr [RBP + -0x78],RAX MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x30] CALL 0x0013dee0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x78] ADD RAX,RCX ADD RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x78] MOV RAX,qword ptr [RAX] LEA RCX,[RBP + -0x68] SUB RAX,RCX MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x70] CMP RAX,qword ptr [RBP + -0x68] JBE 0x0013e087 MOV RCX,qword ptr [RBP + -0x70] SUB RCX,qword ptr [RBP + -0x68] MOV EAX,0x10000 CMP RAX,RCX JC 0x0013e068 MOV RCX,qword ptr [RBP + -0x70] SUB RCX,qword ptr [RBP + -0x68] MOV EAX,0x8000 CMP RAX,RCX JNC 0x0013e087 MOV EAX,0x1000 CMP RAX,qword ptr [RBP + -0x68] JA 0x0013e087 LAB_0013e068: MOV byte ptr [RBP + -0x59],0x0 MOV RCX,qword ptr [RBP + -0x48] ADD RCX,0xf AND RCX,-0x10 MOV RAX,RSP SUB RAX,RCX MOV RSP,RAX MOV qword ptr [RBP + -0x38],RAX JMP 0x0013e09f LAB_0013e087: MOV byte ptr [RBP + -0x59],0x1 MOV RSI,qword ptr [RBP + -0x48] XOR EDI,EDI MOV EDX,0x10010 CALL 0x001f4be0 MOV qword ptr [RBP + -0x38],RAX LAB_0013e09f: JMP 0x0013e0a1 LAB_0013e0a1: CMP qword ptr [RBP + -0x38],0x0 JNZ 0x0013e0b9 CALL 0x001f7440 MOV dword ptr [RAX],0x80 MOV byte ptr [RBP + -0x9],0x1 JMP 0x0013e123 LAB_0013e0b9: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x38] ADD RSI,0x18 MOV RDX,qword ptr [RBP + -0x30] CALL 0x0013ce20 MOV EAX,EAX MOV qword ptr [RBP + -0x50],RAX CMP qword ptr [RBP + -0x50],0x0 JNZ 0x0013e0e4 MOV dword ptr [RBP + -0x3c],0x1 JMP 0x0013e107 LAB_0013e0e4: JMP 0x0013e0e6 LAB_0013e0e6: JMP 0x0013e0e8 LAB_0013e0e8: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x38] ADD RDX,0x18 MOV RCX,qword ptr [RBP + -0x50] CALL 0x0013d5f0 MOVSX EAX,AL MOV dword ptr [RBP + -0x3c],EAX LAB_0013e107: MOV RDI,qword ptr [RBP + -0x38] MOVSX ESI,byte ptr [RBP + -0x59] CALL 0x0013df80 CMP dword ptr [RBP + -0x3c],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x9],AL LAB_0013e123: MOV AL,byte ptr [RBP + -0x9] MOV byte ptr [RBP + -0x79],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0013e143 MOV AL,byte ptr [RBP + -0x79] MOV RSP,RBP POP RBP RET LAB_0013e143: CALL 0x0012a270
int8 _ma_update_blob_record(long *param_1,int8 param_2,int8 param_3,int8 param_4) { int8 uVar1; long *plVar2; char cVar3; uint uVar4; long lVar5; int4 *puVar6; ulong uVar7; int1 *puVar8; int iVar9; int1 *puVar10; long in_FS_OFFSET; int1 auStack_88 [7]; bool local_81; long local_80; ulong local_78; ulong local_70; char local_61; long local_60; ulong local_58; ulong local_50; int local_44; int1 *local_40; int8 local_38; int8 local_30; int8 local_28; long *local_20; bool local_11; long local_10; puVar8 = auStack_88; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_60 = 0x5c; local_80 = *(long *)(*param_1 + 0x3a0); local_38 = param_4; local_30 = param_3; local_28 = param_2; local_20 = param_1; lVar5 = _ma_calc_total_blob_length(param_1,param_4); local_70 = local_80 + lVar5 + local_60; local_78 = *(long *)local_20[0xf] - (long)&local_70; local_50 = local_70; if ((local_70 < local_78) && ((0x10000 < local_78 - local_70 || ((0x8000 < local_78 - local_70 && (0xfff < local_70)))))) { local_61 = '\0'; puVar8 = auStack_88 + -(local_70 + 0xf & 0xfffffffffffffff0); local_40 = puVar8; } else { local_61 = '\x01'; local_40 = (int1 *)my_malloc(0,local_70,0x10010); } plVar2 = local_20; uVar1 = local_38; if (local_40 == (int1 *)0x0) { *(int8 *)(puVar8 + -8) = 0x13e0ad; puVar6 = (int4 *)_my_thread_var(); *puVar6 = 0x80; local_11 = true; } else { puVar10 = local_40 + 0x18; *(int8 *)(puVar8 + -8) = 0x13e0ce; uVar4 = _ma_rec_pack(plVar2,puVar10,uVar1); plVar2 = local_20; uVar1 = local_28; uVar7 = (ulong)uVar4; local_58 = uVar7; if (uVar7 == 0) { local_44 = 1; } else { puVar10 = local_40 + 0x18; *(int8 *)(puVar8 + -8) = 0x13e101; cVar3 = update_dynamic_record(plVar2,uVar1,puVar10,uVar7); local_44 = (int)cVar3; } puVar10 = local_40; iVar9 = (int)local_61; *(int8 *)(puVar8 + -8) = 0x13e114; stack_alloc_free(puVar10,iVar9); local_11 = local_44 != 0; } local_81 = local_11; if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_11); } /* WARNING: Subroutine does not return */ *(int8 *)(puVar8 + -8) = 0x13e148; __stack_chk_fail(); }
51,019
namelist_find
bluesky950520[P]quickjs/qjsc.c
namelist_entry_t *namelist_find(namelist_t *lp, const char *name) { int i; for(i = 0; i < lp->count; i++) { namelist_entry_t *e = &lp->array[i]; if (!strcmp(e->name, name)) return e; } return NULL; }
O1
c
namelist_find: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movslq 0x8(%rdi), %r15 testq %r15, %r15 jle 0x13bef movq %rsi, %rbx movq (%rdi), %r12 movq (%r12), %rdi movq %rbx, %rsi callq 0xe510 testl %eax, %eax cmoveq %r12, %r14 je 0x13bf2 addq $0x18, %r12 decq %r15 jne 0x13bd2 xorl %r14d, %r14d movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
namelist_find: push r15 push r14 push r12 push rbx push rax movsxd r15, dword ptr [rdi+8] test r15, r15 jle short loc_13BEF mov rbx, rsi mov r12, [rdi] loc_13BD2: mov rdi, [r12] mov rsi, rbx call _strcmp test eax, eax cmovz r14, r12 jz short loc_13BF2 add r12, 18h dec r15 jnz short loc_13BD2 loc_13BEF: xor r14d, r14d loc_13BF2: mov rax, r14 add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
_QWORD * namelist_find(long long a1, long long a2) { long long v2; // r15 _QWORD *i; // r12 v2 = *(int *)(a1 + 8); if ( v2 <= 0 ) return 0LL; for ( i = *(_QWORD **)a1; (unsigned int)strcmp(*i, a2); i += 3 ) { if ( !--v2 ) return 0LL; } return i; }
51,020
namelist_find
bluesky950520[P]quickjs/qjsc.c
namelist_entry_t *namelist_find(namelist_t *lp, const char *name) { int i; for(i = 0; i < lp->count; i++) { namelist_entry_t *e = &lp->array[i]; if (!strcmp(e->name, name)) return e; } return NULL; }
O2
c
namelist_find: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %r15 movslq 0x8(%rdi), %r13 pushq $-0x18 popq %r12 pushq $-0x1 popq %rbp incq %rbp cmpq %r13, %rbp jge 0xec03 movq (%r15), %rbx movq 0x18(%rbx,%r12), %rdi addq $0x18, %r12 movq %r14, %rsi callq 0xe520 testl %eax, %eax jne 0xebdb addq %r12, %rbx movq %rbx, %rax jmp 0xec05 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
namelist_find: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rsi mov r15, rdi movsxd r13, dword ptr [rdi+8] push 0FFFFFFFFFFFFFFE8h pop r12 push 0FFFFFFFFFFFFFFFFh pop rbp loc_EBDB: inc rbp cmp rbp, r13 jge short loc_EC03 mov rbx, [r15] mov rdi, [rbx+r12+18h] add r12, 18h mov rsi, r14 call _strcmp test eax, eax jnz short loc_EBDB add rbx, r12 mov rax, rbx jmp short loc_EC05 loc_EC03: xor eax, eax loc_EC05: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long namelist_find(long long *a1, long long a2) { long long v3; // r13 long long v4; // r12 long long v5; // rbp long long v6; // rbx long long v7; // rdi v3 = *((int *)a1 + 2); v4 = -24LL; v5 = -1LL; while ( ++v5 < v3 ) { v6 = *a1; v7 = *(_QWORD *)(*a1 + v4 + 24); v4 += 24LL; if ( !(unsigned int)strcmp(v7, a2) ) return v4 + v6; } return 0LL; }
namelist_find: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RSI MOV R15,RDI MOVSXD R13,dword ptr [RDI + 0x8] PUSH -0x18 POP R12 PUSH -0x1 POP RBP LAB_0010ebdb: INC RBP CMP RBP,R13 JGE 0x0010ec03 MOV RBX,qword ptr [R15] MOV RDI,qword ptr [RBX + R12*0x1 + 0x18] ADD R12,0x18 MOV RSI,R14 CALL 0x0010e520 TEST EAX,EAX JNZ 0x0010ebdb ADD RBX,R12 MOV RAX,RBX JMP 0x0010ec05 LAB_0010ec03: XOR EAX,EAX LAB_0010ec05: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long namelist_find(long *param_1,char *param_2) { int8 *puVar1; long lVar2; long lVar3; int iVar4; long lVar5; long lVar6; lVar3 = param_1[1]; lVar6 = -0x18; lVar5 = -1; do { lVar5 = lVar5 + 1; if ((int)lVar3 <= lVar5) { return 0; } lVar2 = *param_1; puVar1 = (int8 *)(lVar2 + 0x18 + lVar6); lVar6 = lVar6 + 0x18; iVar4 = strcmp((char *)*puVar1,param_2); } while (iVar4 != 0); return lVar2 + lVar6; }
51,021
Proc_reset_setup_object::operator()(PFS_setup_object*)
eloqsql/storage/perfschema/pfs_setup_object.cc
virtual void operator()(PFS_setup_object *pfs) { lf_hash_delete(&setup_object_hash, m_pins, pfs->m_key.m_hash_key, pfs->m_key.m_key_length); global_setup_object_container.deallocate(pfs); }
O3
cpp
Proc_reset_setup_object::operator()(PFS_setup_object*): pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rsi, %rbx movq 0x8(%rdi), %rsi leaq 0x4(%rbx), %rdx movl 0x188(%rbx), %ecx leaq 0x38e53e(%rip), %rdi # 0x3d1ba0 callq 0x2bf35 movq 0x1b0(%rbx), %rax movl (%rbx), %ecx andl $-0x4, %ecx xchgl %ecx, (%rbx) xorl %ecx, %ecx movb %cl, (%rax) leaq 0x35b398(%rip), %rax # 0x39ea18 movb %cl, 0x9(%rax) addq $0x8, %rsp popq %rbx popq %rbp retq
_ZN23Proc_reset_setup_objectclEP16PFS_setup_object: push rbp mov rbp, rsp push rbx push rax mov rbx, rsi mov rsi, [rdi+8] lea rdx, [rbx+4] mov ecx, [rbx+188h] lea rdi, setup_object_hash call lf_hash_delete mov rax, [rbx+1B0h] mov ecx, [rbx] and ecx, 0FFFFFFFCh xchg ecx, [rbx] xor ecx, ecx mov [rax], cl lea rax, global_setup_object_container mov [rax+9], cl add rsp, 8 pop rbx pop rbp retn
long long * Proc_reset_setup_object::operator()(long long a1, long long a2) { _BYTE *v3; // rax long long *result; // rax lf_hash_delete((long long)&setup_object_hash, *(volatile long long **)(a1 + 8), a2 + 4, *(_DWORD *)(a2 + 392)); v3 = *(_BYTE **)(a2 + 432); _InterlockedExchange((volatile __int32 *)a2, *(_DWORD *)a2 & 0xFFFFFFFC); *v3 = 0; result = &global_setup_object_container; *((_BYTE *)&global_setup_object_container + 9) = 0; return result; }
operator(): PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RSI MOV RSI,qword ptr [RDI + 0x8] LEA RDX,[RBX + 0x4] MOV ECX,dword ptr [RBX + 0x188] LEA RDI,[0x4d1ba0] CALL 0x0012bf35 MOV RAX,qword ptr [RBX + 0x1b0] MOV ECX,dword ptr [RBX] AND ECX,0xfffffffc XCHG dword ptr [RBX],ECX XOR ECX,ECX MOV byte ptr [RAX],CL LEA RAX,[0x49ea18] MOV byte ptr [RAX + 0x9],CL ADD RSP,0x8 POP RBX POP RBP RET
/* Proc_reset_setup_object::TEMPNAMEPLACEHOLDERVALUE(PFS_setup_object*) */ void __thiscall Proc_reset_setup_object::operator()(Proc_reset_setup_object *this,PFS_setup_object *param_1) { lf_hash_delete(setup_object_hash,*(int8 *)(this + 8),param_1 + 4, *(int4 *)(param_1 + 0x188)); LOCK(); *(uint *)param_1 = *(uint *)param_1 & 0xfffffffc; UNLOCK(); **(int1 **)(param_1 + 0x1b0) = 0; global_setup_object_container[9] = 0; return; }
51,022
my_collation_get_by_name
eloqsql/mysys/charset.c
CHARSET_INFO * my_collation_get_by_name(MY_CHARSET_LOADER *loader, const char *name, myf flags) { uint cs_number; CHARSET_INFO *cs; my_pthread_once(&charsets_initialized, init_available_charsets); cs_number= get_collation_number(name,flags); my_charset_loader_init_mysys(loader); cs= cs_number ? get_internal_charset(loader, cs_number, flags) : NULL; if (!cs && (flags & MY_WME)) { char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)]; strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX); my_error(EE_UNKNOWN_COLLATION, MYF(ME_BELL), name, index_file); } return cs; }
O0
c
my_collation_get_by_name: pushq %rbp movq %rsp, %rbp subq $0x260, %rsp # imm = 0x260 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x228(%rbp) movq %rsi, -0x230(%rbp) movq %rdx, -0x238(%rbp) leaq 0x385400(%rip), %rdi # 0x3f53c4 leaq -0x90b(%rip), %rsi # 0x6f6c0 callq 0x36280 movq -0x230(%rbp), %rdi movq -0x238(%rbp), %rsi callq 0x6f610 movl %eax, -0x23c(%rbp) movq -0x228(%rbp), %rdi callq 0x6ece0 cmpl $0x0, -0x23c(%rbp) je 0x70020 movq -0x228(%rbp), %rdi movl -0x23c(%rbp), %esi movq -0x238(%rbp), %rdx callq 0x6fd10 movq %rax, -0x250(%rbp) jmp 0x7002b xorl %eax, %eax movq %rax, -0x250(%rbp) jmp 0x7002b movq -0x250(%rbp), %rax movq %rax, -0x248(%rbp) cmpq $0x0, -0x248(%rbp) jne 0x7008e movq -0x238(%rbp), %rax andq $0x10, %rax cmpq $0x0, %rax je 0x7008e leaq -0x220(%rbp), %rdi callq 0x6f380 movq %rax, %rdi leaq 0x5deba(%rip), %rsi # 0xcdf24 callq 0x36970 movq -0x230(%rbp), %rdx leaq -0x220(%rbp), %rcx movl $0x1c, %edi movl $0x4, %esi movb $0x0, %al callq 0x779f0 movq -0x248(%rbp), %rax movq %rax, -0x258(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x700be movq -0x258(%rbp), %rax addq $0x260, %rsp # imm = 0x260 popq %rbp retq callq 0x362a0 nopw %cs:(%rax,%rax)
my_collation_get_by_name: push rbp mov rbp, rsp sub rsp, 260h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_228], rdi mov [rbp+var_230], rsi mov [rbp+var_238], rdx lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, [rbp+var_230] mov rsi, [rbp+var_238] call get_collation_number mov [rbp+var_23C], eax mov rdi, [rbp+var_228] call my_charset_loader_init_mysys cmp [rbp+var_23C], 0 jz short loc_70020 mov rdi, [rbp+var_228] mov esi, [rbp+var_23C] mov rdx, [rbp+var_238] call get_internal_charset mov [rbp+var_250], rax jmp short loc_7002B loc_70020: xor eax, eax mov [rbp+var_250], rax jmp short $+2 loc_7002B: mov rax, [rbp+var_250] mov [rbp+var_248], rax cmp [rbp+var_248], 0 jnz short loc_7008E mov rax, [rbp+var_238] and rax, 10h cmp rax, 0 jz short loc_7008E lea rdi, [rbp+var_220] call get_charsets_dir mov rdi, rax lea rsi, aIndexXml; "Index.xml" call _stpcpy mov rdx, [rbp+var_230] lea rcx, [rbp+var_220] mov edi, 1Ch mov esi, 4 mov al, 0 call my_error loc_7008E: mov rax, [rbp+var_248] mov [rbp+var_258], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_700BE mov rax, [rbp+var_258] add rsp, 260h pop rbp retn loc_700BE: call ___stack_chk_fail
long long my_collation_get_by_name(long long a1, long long a2, long long a3) { long long charsets_dir; // rax int v4; // r8d int v5; // r9d long long internal_charset; // [rsp+10h] [rbp-250h] unsigned int collation_number; // [rsp+24h] [rbp-23Ch] _BYTE v10[536]; // [rsp+40h] [rbp-220h] BYREF unsigned long long v11; // [rsp+258h] [rbp-8h] v11 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); collation_number = get_collation_number(a2, a3); my_charset_loader_init_mysys(a1); if ( collation_number ) internal_charset = get_internal_charset(a1, collation_number, a3); else internal_charset = 0LL; if ( !internal_charset && (a3 & 0x10) != 0 ) { charsets_dir = get_charsets_dir((long long)v10); stpcpy(charsets_dir, "Index.xml"); my_error(28, 4, a2, (unsigned int)v10, v4, v5); } return internal_charset; }
my_collation_get_by_name: PUSH RBP MOV RBP,RSP SUB RSP,0x260 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x228],RDI MOV qword ptr [RBP + -0x230],RSI MOV qword ptr [RBP + -0x238],RDX LEA RDI,[0x4f53c4] LEA RSI,[0x16f6c0] CALL 0x00136280 MOV RDI,qword ptr [RBP + -0x230] MOV RSI,qword ptr [RBP + -0x238] CALL 0x0016f610 MOV dword ptr [RBP + -0x23c],EAX MOV RDI,qword ptr [RBP + -0x228] CALL 0x0016ece0 CMP dword ptr [RBP + -0x23c],0x0 JZ 0x00170020 MOV RDI,qword ptr [RBP + -0x228] MOV ESI,dword ptr [RBP + -0x23c] MOV RDX,qword ptr [RBP + -0x238] CALL 0x0016fd10 MOV qword ptr [RBP + -0x250],RAX JMP 0x0017002b LAB_00170020: XOR EAX,EAX MOV qword ptr [RBP + -0x250],RAX JMP 0x0017002b LAB_0017002b: MOV RAX,qword ptr [RBP + -0x250] MOV qword ptr [RBP + -0x248],RAX CMP qword ptr [RBP + -0x248],0x0 JNZ 0x0017008e MOV RAX,qword ptr [RBP + -0x238] AND RAX,0x10 CMP RAX,0x0 JZ 0x0017008e LEA RDI,[RBP + -0x220] CALL 0x0016f380 MOV RDI,RAX LEA RSI,[0x1cdf24] CALL 0x00136970 MOV RDX,qword ptr [RBP + -0x230] LEA RCX,[RBP + -0x220] MOV EDI,0x1c MOV ESI,0x4 MOV AL,0x0 CALL 0x001779f0 LAB_0017008e: MOV RAX,qword ptr [RBP + -0x248] MOV qword ptr [RBP + -0x258],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001700be MOV RAX,qword ptr [RBP + -0x258] ADD RSP,0x260 POP RBP RET LAB_001700be: CALL 0x001362a0
long my_collation_get_by_name(int8 param_1,int8 param_2,ulong param_3) { int iVar1; char *__dest; long in_FS_OFFSET; long local_258; int1 local_228 [536]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); iVar1 = get_collation_number(param_2,param_3); my_charset_loader_init_mysys(param_1); if (iVar1 == 0) { local_258 = 0; } else { local_258 = get_internal_charset(param_1,iVar1,param_3); } if ((local_258 == 0) && ((param_3 & 0x10) != 0)) { __dest = (char *)get_charsets_dir(local_228); stpcpy(__dest,"Index.xml"); my_error(0x1c,4,param_2,local_228); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_258; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
51,023
minja::Parser::parseIdentifier()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<VariableExpr> parseIdentifier() { static std::regex ident_regex(R"((?!(?:not|is|and|or|del)\b)[a-zA-Z_]\w*)"); auto location = get_location(); auto ident = consumeToken(ident_regex); if (ident.empty()) return nullptr; return std::make_shared<VariableExpr>(location, ident); }
O0
cpp
minja::Parser::parseIdentifier(): subq $0x78, %rsp movq %rdi, (%rsp) movq %rdi, %rax movq %rax, 0x8(%rsp) movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movq 0x68(%rsp), %rax movq %rax, 0x10(%rsp) leaq 0x19903d(%rip), %rax # 0x270598 cmpb $0x0, (%rax) jne 0xd75b1 leaq 0x199031(%rip), %rdi # 0x270598 callq 0x56530 cmpl $0x0, %eax je 0xd75b1 leaq 0x199000(%rip), %rdi # 0x270578 leaq 0x1122a4(%rip), %rsi # 0x1e9823 movl $0x10, %edx callq 0x692d0 jmp 0xd758b leaq -0x6dc92(%rip), %rdi # 0x69900 leaq 0x198fdf(%rip), %rsi # 0x270578 leaq 0x1983c8(%rip), %rdx # 0x26f968 callq 0x56db0 leaq 0x198fec(%rip), %rdi # 0x270598 callq 0x568d0 movq 0x10(%rsp), %rsi leaq 0x40(%rsp), %rdi callq 0xd5450 movq 0x10(%rsp), %rsi leaq 0x198fac(%rip), %rdx # 0x270578 leaq 0x20(%rsp), %rdi movl $0x1, %ecx callq 0xd5e70 jmp 0xd75dd leaq 0x20(%rsp), %rdi callq 0x56430 testb $0x1, %al jne 0xd75ed jmp 0xd7630 movq (%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x125390 movl $0x1, 0x1c(%rsp) jmp 0xd7669 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) leaq 0x198f7f(%rip), %rdi # 0x270598 callq 0x56660 jmp 0xd7691 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) jmp 0xd7687 movq (%rsp), %rdi leaq 0x40(%rsp), %rsi leaq 0x20(%rsp), %rdx callq 0x1253b0 jmp 0xd7645 movl $0x1, 0x1c(%rsp) jmp 0xd7669 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) leaq 0x20(%rsp), %rdi callq 0x572d0 jmp 0xd7687 leaq 0x20(%rsp), %rdi callq 0x572d0 leaq 0x40(%rsp), %rdi callq 0xd8a10 movq 0x8(%rsp), %rax addq $0x78, %rsp retq leaq 0x40(%rsp), %rdi callq 0xd8a10 movq 0x60(%rsp), %rdi callq 0x56a10 nopl (%rax,%rax)
_ZN5minja6Parser15parseIdentifierEv: sub rsp, 78h mov [rsp+78h+var_78], rdi mov rax, rdi mov [rsp+78h+var_70], rax mov [rsp+78h+var_8], rdi mov [rsp+78h+var_10], rsi mov rax, [rsp+78h+var_10] mov [rsp+78h+var_68], rax lea rax, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; `guard variable for'minja::Parser::parseIdentifier(void)::ident_regex cmp byte ptr [rax], 0 jnz short loc_D75B1 lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_acquire cmp eax, 0 jz short loc_D75B1 lea rdi, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; minja::Parser::parseIdentifier(void)::ident_regex lea rsi, aNotIsAndOrDelB; "(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\"... mov edx, 10h call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type) jmp short $+2 loc_D758B: lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc lea rsi, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_release loc_D75B1: mov rsi, [rsp+78h+var_68] lea rdi, [rsp+78h+var_38]; this call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void) mov rsi, [rsp+78h+var_68] lea rdx, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; minja::Parser::parseIdentifier(void)::ident_regex lea rdi, [rsp+78h+var_58] mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) jmp short $+2 loc_D75DD: lea rdi, [rsp+78h+var_58] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz short loc_D75ED jmp short loc_D7630 loc_D75ED: mov rdi, [rsp+78h+var_78] xor eax, eax mov esi, eax call _ZNSt10shared_ptrIN5minja12VariableExprEEC2EDn; std::shared_ptr<minja::VariableExpr>::shared_ptr(decltype(nullptr)) mov [rsp+78h+var_5C], 1 jmp short loc_D7669 mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_D7691 mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax jmp short loc_D7687 loc_D7630: mov rdi, [rsp+78h+var_78] lea rsi, [rsp+78h+var_38] lea rdx, [rsp+78h+var_58] call _ZSt11make_sharedIN5minja12VariableExprEJRNS0_8LocationERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::VariableExpr,minja::Location &,std::string &>(minja::Location &,std::string &) jmp short $+2 loc_D7645: mov [rsp+78h+var_5C], 1 jmp short loc_D7669 mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax lea rdi, [rsp+arg_18]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_D7687 loc_D7669: lea rdi, [rsp+78h+var_58]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+78h+var_38]; this call _ZN5minja8LocationD2Ev; minja::Location::~Location() mov rax, [rsp+78h+var_70] add rsp, 78h retn loc_D7687: lea rdi, [rsp+arg_38]; this call _ZN5minja8LocationD2Ev; minja::Location::~Location() loc_D7691: mov rdi, [rsp+arg_58] call __Unwind_Resume
minja::Parser * minja::Parser::parseIdentifier(minja::Parser *this, long long a2) { int v2; // ecx int v3; // r8d int v4; // r9d minja::Parser *v6; // [rsp+8h] [rbp-70h] _BYTE v7[32]; // [rsp+20h] [rbp-58h] BYREF _BYTE v8[40]; // [rsp+40h] [rbp-38h] BYREF long long v9; // [rsp+68h] [rbp-10h] minja::Parser *v10; // [rsp+70h] [rbp-8h] v6 = this; v10 = this; v9 = a2; if ( !(_BYTE)`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], (long long)"(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\w*", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]); } minja::Parser::get_location((minja::Parser *)v8, a2); minja::Parser::consumeToken( (long long)v7, a2, (long long)&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], 1u); if ( (std::string::empty(v7) & 1) != 0 ) std::shared_ptr<minja::VariableExpr>::shared_ptr(this, 0LL); else std::make_shared<minja::VariableExpr,minja::Location &,std::string &>( (_DWORD)this, (unsigned int)v8, (unsigned int)v7, v2, v3, v4, (_DWORD)this, (_DWORD)this, a2); std::string::~string(v7); minja::Location::~Location((minja::Location *)v8); return v6; }
parseIdentifier: SUB RSP,0x78 MOV qword ptr [RSP],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RSI MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x10],RAX LEA RAX,[0x370598] CMP byte ptr [RAX],0x0 JNZ 0x001d75b1 LEA RDI,[0x370598] CALL 0x00156530 CMP EAX,0x0 JZ 0x001d75b1 LAB_001d7571: LEA RDI,[0x370578] LEA RSI,[0x2e9823] MOV EDX,0x10 CALL 0x001692d0 LAB_001d7589: JMP 0x001d758b LAB_001d758b: LEA RDI,[0x169900] LEA RSI,[0x370578] LEA RDX,[0x36f968] CALL 0x00156db0 LEA RDI,[0x370598] CALL 0x001568d0 LAB_001d75b1: MOV RSI,qword ptr [RSP + 0x10] LEA RDI,[RSP + 0x40] CALL 0x001d5450 MOV RSI,qword ptr [RSP + 0x10] LAB_001d75c5: LEA RDX,[0x370578] LEA RDI,[RSP + 0x20] MOV ECX,0x1 CALL 0x001d5e70 JMP 0x001d75dd LAB_001d75dd: LEA RDI,[RSP + 0x20] CALL 0x00156430 TEST AL,0x1 JNZ 0x001d75ed JMP 0x001d7630 LAB_001d75ed: MOV RDI,qword ptr [RSP] XOR EAX,EAX MOV ESI,EAX CALL 0x00225390 MOV dword ptr [RSP + 0x1c],0x1 JMP 0x001d7669 LAB_001d7630: MOV RDI,qword ptr [RSP] LEA RSI,[RSP + 0x40] LEA RDX,[RSP + 0x20] CALL 0x002253b0 LAB_001d7643: JMP 0x001d7645 LAB_001d7645: MOV dword ptr [RSP + 0x1c],0x1 JMP 0x001d7669 LAB_001d7669: LEA RDI,[RSP + 0x20] CALL 0x001572d0 LEA RDI,[RSP + 0x40] CALL 0x001d8a10 MOV RAX,qword ptr [RSP + 0x8] ADD RSP,0x78 RET
/* minja::Parser::parseIdentifier() */ Location * minja::Parser::parseIdentifier(void) { int iVar1; ulong uVar2; int8 in_RSI; Location *in_RDI; string local_58 [32]; string local_38 [56]; if (parseIdentifier()::ident_regex_abi_cxx11_ == '\0') { iVar1 = __cxa_guard_acquire(&parseIdentifier()::ident_regex_abi_cxx11_); if (iVar1 != 0) { /* try { // try from 001d7571 to 001d7588 has its CatchHandler @ 001d7604 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex (parseIdentifier()::ident_regex_abi_cxx11_, "(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\w*",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseIdentifier()::ident_regex_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseIdentifier()::ident_regex_abi_cxx11_); } } get_location(); /* try { // try from 001d75c5 to 001d75da has its CatchHandler @ 001d7620 */ consumeToken(local_58,in_RSI,parseIdentifier()::ident_regex_abi_cxx11_,1); uVar2 = std::__cxx11::string::empty(); if ((uVar2 & 1) == 0) { /* try { // try from 001d7630 to 001d7642 has its CatchHandler @ 001d764f */ std::make_shared<minja::VariableExpr,minja::Location&,std::__cxx11::string&>(in_RDI,local_38); } else { std::shared_ptr<minja::VariableExpr>::shared_ptr((_func_decltype_nullptr *)in_RDI); } std::__cxx11::string::~string(local_58); Location::~Location((Location *)local_38); return in_RDI; }
51,024
minja::Parser::parseIdentifier()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<VariableExpr> parseIdentifier() { static std::regex ident_regex(R"((?!(?:not|is|and|or|del)\b)[a-zA-Z_]\w*)"); auto location = get_location(); auto ident = consumeToken(ident_regex); if (ident.empty()) return nullptr; return std::make_shared<VariableExpr>(location, ident); }
O2
cpp
minja::Parser::parseIdentifier(): pushq %r14 pushq %rbx subq $0x38, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x989da(%rip), %rax # 0xe4408 movb (%rax), %al testb %al, %al je 0x4ba95 movq %rsp, %rdi movq %r14, %rsi callq 0x4ae82 leaq 0x989a2(%rip), %rdx # 0xe43e8 leaq 0x18(%rsp), %rdi pushq $0x1 popq %rcx movq %r14, %rsi callq 0x4b2a6 cmpq $0x0, 0x20(%rsp) je 0x4ba70 movq %rsp, %rsi leaq 0x18(%rsp), %rdx movq %rbx, %rdi callq 0x6447b jmp 0x4ba76 xorps %xmm0, %xmm0 movups %xmm0, (%rbx) leaq 0x18(%rsp), %rdi callq 0x22f98 leaq 0x8(%rsp), %rdi callq 0x3542e movq %rbx, %rax addq $0x38, %rsp popq %rbx popq %r14 retq leaq 0x9896c(%rip), %rdi # 0xe4408 callq 0x22e00 testl %eax, %eax je 0x4ba34 leaq 0x9893c(%rip), %rdi # 0xe43e8 leaq 0x54237(%rip), %rsi # 0x9fcea pushq $0x10 popq %rdx callq 0x29ce4 leaq -0x21b22(%rip), %rdi # 0x29fa0 leaq 0x9891f(%rip), %rsi # 0xe43e8 leaq 0x97d08(%rip), %rdx # 0xe37d8 callq 0x226c0 leaq 0x9892c(%rip), %rdi # 0xe4408 callq 0x22500 jmp 0x4ba34 movq %rax, %rbx leaq 0x98918(%rip), %rdi # 0xe4408 callq 0x224f0 jmp 0x4bb13 movq %rax, %rbx leaq 0x18(%rsp), %rdi callq 0x22f98 jmp 0x4bb09 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x3542e movq %rbx, %rdi callq 0x22da0 nop
_ZN5minja6Parser15parseIdentifierEv: push r14 push rbx sub rsp, 38h mov r14, rsi mov rbx, rdi lea rax, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; `guard variable for'minja::Parser::parseIdentifier(void)::ident_regex mov al, [rax] test al, al jz short loc_4BA95 loc_4BA34: mov rdi, rsp; this mov rsi, r14 call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void) lea rdx, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; minja::Parser::parseIdentifier(void)::ident_regex lea rdi, [rsp+48h+var_30] push 1 pop rcx mov rsi, r14 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) cmp [rsp+48h+var_28], 0 jz short loc_4BA70 mov rsi, rsp lea rdx, [rsp+48h+var_30] mov rdi, rbx call _ZSt11make_sharedIN5minja12VariableExprEJRNS0_8LocationERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::VariableExpr,minja::Location &,std::string &>(minja::Location &,std::string &) jmp short loc_4BA76 loc_4BA70: xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 loc_4BA76: lea rdi, [rsp+48h+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+48h+var_40] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rax, rbx add rsp, 38h pop rbx pop r14 retn loc_4BA95: lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz short loc_4BA34 lea rdi, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; minja::Parser::parseIdentifier(void)::ident_regex lea rsi, aNotIsAndOrDelB; "(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\"... push 10h pop rdx call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type) lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc lea rsi, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_release jmp loc_4BA34 mov rbx, rax lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_4BB13 mov rbx, rax lea rdi, [rsp+arg_10]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_4BB09 mov rbx, rax loc_4BB09: lea rdi, [rsp+arg_0] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() loc_4BB13: mov rdi, rbx call __Unwind_Resume
minja::Parser * minja::Parser::parseIdentifier(minja::Parser *this, _QWORD *a2) { long long v3; // [rsp+0h] [rbp-48h] BYREF long long v4; // [rsp+8h] [rbp-40h] BYREF _QWORD v5[6]; // [rsp+18h] [rbp-30h] BYREF if ( !(_BYTE)`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], (long long)"(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\w*", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]); } minja::Parser::get_location((minja::Parser *)&v3, a2); minja::Parser::consumeToken( v5, (long long)a2, (long long)&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], 1u); if ( v5[1] ) std::make_shared<minja::VariableExpr,minja::Location &,std::string &>(this, &v3, v5); else *(_OWORD *)this = 0LL; std::string::~string(v5); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v4); return this; }
parseIdentifier: PUSH R14 PUSH RBX SUB RSP,0x38 MOV R14,RSI MOV RBX,RDI LEA RAX,[0x1e4408] MOV AL,byte ptr [RAX] TEST AL,AL JZ 0x0014ba95 LAB_0014ba34: MOV RDI,RSP MOV RSI,R14 CALL 0x0014ae82 LAB_0014ba3f: LEA RDX,[0x1e43e8] LEA RDI,[RSP + 0x18] PUSH 0x1 POP RCX MOV RSI,R14 CALL 0x0014b2a6 CMP qword ptr [RSP + 0x20],0x0 JZ 0x0014ba70 LAB_0014ba5e: MOV RSI,RSP LEA RDX,[RSP + 0x18] MOV RDI,RBX CALL 0x0016447b JMP 0x0014ba76 LAB_0014ba70: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 LAB_0014ba76: LEA RDI,[RSP + 0x18] CALL 0x00122f98 LEA RDI,[RSP + 0x8] CALL 0x0013542e MOV RAX,RBX ADD RSP,0x38 POP RBX POP R14 RET LAB_0014ba95: LEA RDI,[0x1e4408] CALL 0x00122e00 TEST EAX,EAX JZ 0x0014ba34 LAB_0014baa5: LEA RDI,[0x1e43e8] LEA RSI,[0x19fcea] PUSH 0x10 POP RDX CALL 0x00129ce4 LAB_0014babb: LEA RDI,[0x129fa0] LEA RSI,[0x1e43e8] LEA RDX,[0x1e37d8] CALL 0x001226c0 LEA RDI,[0x1e4408] CALL 0x00122500 JMP 0x0014ba34
/* minja::Parser::parseIdentifier() */ void minja::Parser::parseIdentifier(void) { int iVar1; Location *in_RDI; string asStack_48 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_40 [16]; string local_30 [8]; long local_28; if (parseIdentifier()::ident_regex_abi_cxx11_ == '\0') { iVar1 = __cxa_guard_acquire(&parseIdentifier()::ident_regex_abi_cxx11_); if (iVar1 != 0) { /* try { // try from 0014baa5 to 0014baba has its CatchHandler @ 0014bae6 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseIdentifier()::ident_regex_abi_cxx11_, "(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\w*",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseIdentifier()::ident_regex_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseIdentifier()::ident_regex_abi_cxx11_); } } get_location(); /* try { // try from 0014ba3f to 0014ba55 has its CatchHandler @ 0014bb06 */ consumeToken(local_30); if (local_28 == 0) { *(int8 *)in_RDI = 0; *(int8 *)(in_RDI + 8) = 0; } else { /* try { // try from 0014ba5e to 0014ba6d has its CatchHandler @ 0014baf7 */ std::make_shared<minja::VariableExpr,minja::Location&,std::__cxx11::string&>(in_RDI,asStack_48); } std::__cxx11::string::~string(local_30); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_40); return; }
51,025
testing::internal::OsStackTraceGetter::CurrentStackTrace[abi:cxx11](int, int)
giladroyz[P]FindPeaks/build_O0/_deps/googletest-src/googletest/src/gtest.cc
GTEST_LOCK_EXCLUDED_(mutex_) { #ifdef GTEST_HAS_ABSL std::string result; if (max_depth <= 0) { return result; } max_depth = std::min(max_depth, kMaxStackTraceDepth); std::vector<void*> raw_stack(max_depth); // Skips the frames requested by the caller, plus this function. const int raw_stack_size = absl::GetStackTrace(&raw_stack[0], max_depth, skip_count + 1); void* caller_frame = nullptr; { MutexLock lock(&mutex_); caller_frame = caller_frame_; } for (int i = 0; i < raw_stack_size; ++i) { if (raw_stack[i] == caller_frame && !GTEST_FLAG_GET(show_internal_stack_frames)) { // Add a marker to the trace and stop adding frames. absl::StrAppend(&result, kElidedFramesMarker, "\n"); break; } char tmp[1024]; const char* symbol = "(unknown)"; if (absl::Symbolize(raw_stack[i], tmp, sizeof(tmp))) { symbol = tmp; } char line[1024]; snprintf(line, sizeof(line), " %p: %s\n", raw_stack[i], symbol); result += line; } return result; #else // !GTEST_HAS_ABSL static_cast<void>(max_depth); static_cast<void>(skip_count); return ""; #endif // GTEST_HAS_ABSL }
O0
cpp
testing::internal::OsStackTraceGetter::CurrentStackTrace[abi:cxx11](int, int): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x40(%rbp) movq %rdi, %rax movq %rax, -0x48(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl %ecx, -0x18(%rbp) leaq -0x19(%rbp), %rdi movq %rdi, -0x38(%rbp) callq 0xac10 movq -0x40(%rbp), %rdi movq -0x38(%rbp), %rdx leaq 0x3fd3a(%rip), %rsi # 0x7b947 callq 0xa9c0 jmp 0x3bc14 leaq -0x19(%rbp), %rdi callq 0xa6e0 movq -0x48(%rbp), %rax addq $0x50, %rsp popq %rbp retq movq %rax, %rcx movl %edx, %eax movq %rcx, -0x28(%rbp) movl %eax, -0x2c(%rbp) leaq -0x19(%rbp), %rdi callq 0xa6e0 movq -0x28(%rbp), %rdi callq 0xac00 nopw %cs:(%rax,%rax)
_ZN7testing8internal18OsStackTraceGetter17CurrentStackTraceB5cxx11Eii: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_40], rdi mov rax, rdi mov [rbp+var_48], rax mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_18], ecx lea rdi, [rbp+var_19] mov [rbp+var_38], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdi, [rbp+var_40] mov rdx, [rbp+var_38] lea rsi, aSFromSSMsTotal+1Ah; "" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&) jmp short $+2 loc_3BC14: lea rdi, [rbp+var_19] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rax, [rbp+var_48] add rsp, 50h pop rbp retn mov rcx, rax mov eax, edx mov [rbp+var_28], rcx mov [rbp+var_2C], eax lea rdi, [rbp+var_19] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rdi, [rbp+var_28] call __Unwind_Resume
long long testing::internal::OsStackTraceGetter::CurrentStackTrace[abi:cxx11]( long long a1, long long a2, long long a3, int a4) { char v5; // [rsp+37h] [rbp-19h] BYREF int v6; // [rsp+38h] [rbp-18h] int v7; // [rsp+3Ch] [rbp-14h] long long v8; // [rsp+40h] [rbp-10h] long long v9; // [rsp+48h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; v6 = a4; std::allocator<char>::allocator(&v5, a2, a3); std::string::basic_string(a1, "", &v5); std::allocator<char>::~allocator(&v5); return a1; }
CurrentStackTrace[abi:cxx11]: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x40],RDI MOV RAX,RDI MOV qword ptr [RBP + -0x48],RAX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV dword ptr [RBP + -0x18],ECX LEA RDI,[RBP + -0x19] MOV qword ptr [RBP + -0x38],RDI CALL 0x0010ac10 MOV RDI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x38] LAB_0013bc06: LEA RSI,[0x17b947] CALL 0x0010a9c0 LAB_0013bc12: JMP 0x0013bc14 LAB_0013bc14: LEA RDI,[RBP + -0x19] CALL 0x0010a6e0 MOV RAX,qword ptr [RBP + -0x48] ADD RSP,0x50 POP RBP RET
/* testing::internal::OsStackTraceGetter::CurrentStackTrace[abi:cxx11](int, int) */ string * testing::internal::OsStackTraceGetter::CurrentStackTrace_abi_cxx11_ (int param_1,int param_2) { int4 in_register_00000034; int4 in_register_0000003c; string *this; allocator local_21 [9]; int8 local_18; string *local_10; this = (string *)CONCAT44(in_register_0000003c,param_1); local_18 = CONCAT44(in_register_00000034,param_2); local_10 = this; std::allocator<char>::allocator(); /* try { // try from 0013bc06 to 0013bc11 has its CatchHandler @ 0013bc27 */ std::__cxx11::string::string(this,"",local_21); std::allocator<char>::~allocator((allocator<char> *)local_21); return this; }
51,026
my_mb_wc_gb2312
eloqsql/strings/ctype-gb2312.c
static int my_mb_wc_gb2312(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s, const uchar *e){ int hi; if (s >= e) return MY_CS_TOOSMALL; if ((hi= s[0]) < 0x80) { pwc[0]=hi; return 1; } if (s+2>e) return MY_CS_TOOSMALL2; if (!IS_MB2_CHAR(hi, s[1])) return MY_CS_ILSEQ; if (!(pwc[0]=func_gb2312_uni_onechar(((hi<<8)+s[1])&0x7F7F))) return -2; return 2; }
O0
c
my_mb_wc_gb2312: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x3d0be movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x3d17c movq -0x20(%rbp), %rax movzbl (%rax), %eax movl %eax, -0x2c(%rbp) cmpl $0x80, %eax jge 0x3d0e6 movslq -0x2c(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x1, -0x4(%rbp) jmp 0x3d17c movq -0x20(%rbp), %rax addq $0x2, %rax cmpq -0x28(%rbp), %rax jbe 0x3d0fd movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A jmp 0x3d17c movl -0x2c(%rbp), %eax movzbl %al, %ecx movl $0xa1, %eax cmpl %ecx, %eax jg 0x3d139 movl -0x2c(%rbp), %eax movzbl %al, %eax cmpl $0xf7, %eax jg 0x3d139 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %ecx movl $0xa1, %eax cmpl %ecx, %eax jg 0x3d139 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0xfe, %eax jle 0x3d142 movl $0x0, -0x4(%rbp) jmp 0x3d17c movl -0x2c(%rbp), %edi shll $0x8, %edi movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax addl %eax, %edi andl $0x7f7f, %edi # imm = 0x7F7F callq 0x3d490 cltq movq -0x18(%rbp), %rcx movq %rax, (%rcx) cmpq $0x0, %rax jne 0x3d175 movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE jmp 0x3d17c movl $0x2, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_mb_wc_gb2312: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_3D0BE mov [rbp+var_4], 0FFFFFF9Bh jmp loc_3D17C loc_3D0BE: mov rax, [rbp+var_20] movzx eax, byte ptr [rax] mov [rbp+var_2C], eax cmp eax, 80h jge short loc_3D0E6 movsxd rcx, [rbp+var_2C] mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 1 jmp loc_3D17C loc_3D0E6: mov rax, [rbp+var_20] add rax, 2 cmp rax, [rbp+var_28] jbe short loc_3D0FD mov [rbp+var_4], 0FFFFFF9Ah jmp short loc_3D17C loc_3D0FD: mov eax, [rbp+var_2C] movzx ecx, al mov eax, 0A1h cmp eax, ecx jg short loc_3D139 mov eax, [rbp+var_2C] movzx eax, al cmp eax, 0F7h jg short loc_3D139 mov rax, [rbp+var_20] movzx ecx, byte ptr [rax+1] mov eax, 0A1h cmp eax, ecx jg short loc_3D139 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 0FEh jle short loc_3D142 loc_3D139: mov [rbp+var_4], 0 jmp short loc_3D17C loc_3D142: mov edi, [rbp+var_2C] shl edi, 8 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] add edi, eax and edi, 7F7Fh call func_gb2312_uni_onechar cdqe mov rcx, [rbp+var_18] mov [rcx], rax cmp rax, 0 jnz short loc_3D175 mov [rbp+var_4], 0FFFFFFFEh jmp short loc_3D17C loc_3D175: mov [rbp+var_4], 2 loc_3D17C: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long my_mb_wc_gb2312(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4) { int v4; // eax __int16 v6; // [rsp+4h] [rbp-2Ch] if ( (unsigned long long)a3 < a4 ) { v6 = *a3; if ( *a3 >= 0x80u ) { if ( (unsigned long long)(a3 + 2) <= a4 ) { if ( (unsigned __int8)v6 < 0xA1u || (unsigned __int8)v6 > 0xF7u || a3[1] < 0xA1u || a3[1] == 255 ) { return 0; } else { v4 = func_gb2312_uni_onechar((a3[1] + (v6 << 8)) & 0x7F7F); *a2 = v4; if ( v4 ) return 2; else return (unsigned int)-2; } } else { return (unsigned int)-102; } } else { *a2 = *a3; return 1; } } else { return (unsigned int)-101; } }
my_mb_wc_gb2312: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x0013d0be MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x0013d17c LAB_0013d0be: MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x80 JGE 0x0013d0e6 MOVSXD RCX,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x1 JMP 0x0013d17c LAB_0013d0e6: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x28] JBE 0x0013d0fd MOV dword ptr [RBP + -0x4],0xffffff9a JMP 0x0013d17c LAB_0013d0fd: MOV EAX,dword ptr [RBP + -0x2c] MOVZX ECX,AL MOV EAX,0xa1 CMP EAX,ECX JG 0x0013d139 MOV EAX,dword ptr [RBP + -0x2c] MOVZX EAX,AL CMP EAX,0xf7 JG 0x0013d139 MOV RAX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RAX + 0x1] MOV EAX,0xa1 CMP EAX,ECX JG 0x0013d139 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0xfe JLE 0x0013d142 LAB_0013d139: MOV dword ptr [RBP + -0x4],0x0 JMP 0x0013d17c LAB_0013d142: MOV EDI,dword ptr [RBP + -0x2c] SHL EDI,0x8 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] ADD EDI,EAX AND EDI,0x7f7f CALL 0x0013d490 CDQE MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RCX],RAX CMP RAX,0x0 JNZ 0x0013d175 MOV dword ptr [RBP + -0x4],0xfffffffe JMP 0x0013d17c LAB_0013d175: MOV dword ptr [RBP + -0x4],0x2 LAB_0013d17c: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 my_mb_wc_gb2312(int8 param_1,long *param_2,byte *param_3,byte *param_4) { uint uVar1; int iVar2; int4 local_c; if (param_3 < param_4) { uVar1 = (uint)*param_3; if (uVar1 < 0x80) { *param_2 = (long)(int)uVar1; local_c = 1; } else if (param_4 < param_3 + 2) { local_c = 0xffffff9a; } else if ((((uVar1 < 0xa1) || (0xf7 < uVar1)) || (param_3[1] < 0xa1)) || (param_3[1] == 0xff)) { local_c = 0; } else { iVar2 = func_gb2312_uni_onechar(uVar1 * 0x100 + (uint)param_3[1] & 0x7f7f); *param_2 = (long)iVar2; if ((long)iVar2 == 0) { local_c = 0xfffffffe; } else { local_c = 2; } } } else { local_c = 0xffffff9b; } return local_c; }
51,027
r3d_shaders_unload
r3d/src/r3d_state.c
void r3d_shaders_unload(void) { // Unload generation shaders rlUnloadShaderProgram(R3D.shader.generate.gaussianBlurDualPass.id); rlUnloadShaderProgram(R3D.shader.generate.cubemapFromEquirectangular.id); rlUnloadShaderProgram(R3D.shader.generate.irradianceConvolution.id); rlUnloadShaderProgram(R3D.shader.generate.prefilter.id); // Unload raster shaders rlUnloadShaderProgram(R3D.shader.raster.geometry.id); rlUnloadShaderProgram(R3D.shader.raster.geometryInst.id); rlUnloadShaderProgram(R3D.shader.raster.forward.id); rlUnloadShaderProgram(R3D.shader.raster.forwardInst.id); rlUnloadShaderProgram(R3D.shader.raster.skybox.id); rlUnloadShaderProgram(R3D.shader.raster.depth.id); rlUnloadShaderProgram(R3D.shader.raster.depthInst.id); rlUnloadShaderProgram(R3D.shader.raster.depthCube.id); rlUnloadShaderProgram(R3D.shader.raster.depthCubeInst.id); // Unload screen shaders rlUnloadShaderProgram(R3D.shader.screen.ambientIbl.id); rlUnloadShaderProgram(R3D.shader.screen.ambient.id); rlUnloadShaderProgram(R3D.shader.screen.lighting.id); rlUnloadShaderProgram(R3D.shader.screen.scene.id); rlUnloadShaderProgram(R3D.shader.screen.tonemap.id); rlUnloadShaderProgram(R3D.shader.screen.adjustment.id); if (R3D.shader.screen.ssao.id != 0) { rlUnloadShaderProgram(R3D.shader.screen.ssao.id); } if (R3D.shader.screen.bloom.id != 0) { rlUnloadShaderProgram(R3D.shader.screen.bloom.id); } if (R3D.shader.screen.fog.id != 0) { rlUnloadShaderProgram(R3D.shader.screen.fog.id); } if (R3D.shader.screen.fxaa.id != 0) { rlUnloadShaderProgram(R3D.shader.screen.fxaa.id); } }
O3
c
r3d_shaders_unload: pushq %rbp movq %rsp, %rbp movl 0xecb67(%rip), %edi # 0x1b0148 callq 0x1ea3d movl 0xecb74(%rip), %edi # 0x1b0160 callq 0x1ea3d movl 0xecb7d(%rip), %edi # 0x1b0174 callq 0x1ea3d movl 0xecb86(%rip), %edi # 0x1b0188 callq 0x1ea3d movl 0xecb97(%rip), %edi # 0x1b01a4 callq 0x1ea3d movl 0xecc24(%rip), %edi # 0x1b023c callq 0x1ea3d movl 0xeccb9(%rip), %edi # 0x1b02dc callq 0x1ea3d movl 0xed356(%rip), %edi # 0x1b0984 callq 0x1ea3d movl 0xed9fb(%rip), %edi # 0x1b1034 callq 0x1ea3d movl 0xeda20(%rip), %edi # 0x1b1064 callq 0x1ea3d movl 0xeda35(%rip), %edi # 0x1b1084 callq 0x1ea3d movl 0xeda5a(%rip), %edi # 0x1b10b4 callq 0x1ea3d movl 0xeda8b(%rip), %edi # 0x1b10f0 callq 0x1ea3d movl 0xedb28(%rip), %edi # 0x1b1198 callq 0x1ea3d movl 0xedb8d(%rip), %edi # 0x1b1208 callq 0x1ea3d movl 0xedbaa(%rip), %edi # 0x1b1230 callq 0x1ea3d movl 0xedc8f(%rip), %edi # 0x1b1320 callq 0x1ea3d movl 0xedd28(%rip), %edi # 0x1b13c4 callq 0x1ea3d movl 0xedd41(%rip), %edi # 0x1b13e8 callq 0x1ea3d movl 0xeda86(%rip), %edi # 0x1b1138 testl %edi, %edi je 0xc36bb callq 0x1ea3d movl 0xedc8b(%rip), %edi # 0x1b134c testl %edi, %edi je 0xc36ca callq 0x1ea3d movl 0xedca0(%rip), %edi # 0x1b1370 testl %edi, %edi je 0xc36d9 callq 0x1ea3d movl 0xedd2d(%rip), %edi # 0x1b140c testl %edi, %edi je 0xc36e9 popq %rbp jmp 0x1ea3d popq %rbp retq nop
r3d_shaders_unload: push rbp mov rbp, rsp mov edi, cs:dword_1B0148 call rlUnloadShaderProgram mov edi, cs:dword_1B0160 call rlUnloadShaderProgram mov edi, cs:dword_1B0174 call rlUnloadShaderProgram mov edi, cs:dword_1B0188 call rlUnloadShaderProgram mov edi, cs:dword_1B01A4 call rlUnloadShaderProgram mov edi, cs:dword_1B023C call rlUnloadShaderProgram mov edi, cs:dword_1B02DC call rlUnloadShaderProgram mov edi, cs:dword_1B0984 call rlUnloadShaderProgram mov edi, cs:dword_1B1034 call rlUnloadShaderProgram mov edi, cs:dword_1B1064 call rlUnloadShaderProgram mov edi, cs:dword_1B1084 call rlUnloadShaderProgram mov edi, cs:dword_1B10B4 call rlUnloadShaderProgram mov edi, cs:dword_1B10F0 call rlUnloadShaderProgram mov edi, cs:dword_1B1198 call rlUnloadShaderProgram mov edi, cs:dword_1B1208 call rlUnloadShaderProgram mov edi, cs:dword_1B1230 call rlUnloadShaderProgram mov edi, cs:dword_1B1320 call rlUnloadShaderProgram mov edi, cs:dword_1B13C4 call rlUnloadShaderProgram mov edi, cs:dword_1B13E8 call rlUnloadShaderProgram mov edi, cs:dword_1B1138 test edi, edi jz short loc_C36BB call rlUnloadShaderProgram loc_C36BB: mov edi, cs:dword_1B134C test edi, edi jz short loc_C36CA call rlUnloadShaderProgram loc_C36CA: mov edi, cs:dword_1B1370 test edi, edi jz short loc_C36D9 call rlUnloadShaderProgram loc_C36D9: mov edi, cs:dword_1B140C test edi, edi jz short loc_C36E9 pop rbp jmp rlUnloadShaderProgram loc_C36E9: pop rbp retn
long long r3d_shaders_unload() { long long result; // rax rlUnloadShaderProgram((unsigned int)dword_1B0148); rlUnloadShaderProgram((unsigned int)dword_1B0160); rlUnloadShaderProgram((unsigned int)dword_1B0174); rlUnloadShaderProgram((unsigned int)dword_1B0188); rlUnloadShaderProgram((unsigned int)dword_1B01A4); rlUnloadShaderProgram((unsigned int)dword_1B023C); rlUnloadShaderProgram((unsigned int)dword_1B02DC); rlUnloadShaderProgram((unsigned int)dword_1B0984); rlUnloadShaderProgram((unsigned int)dword_1B1034); rlUnloadShaderProgram((unsigned int)dword_1B1064); rlUnloadShaderProgram((unsigned int)dword_1B1084); rlUnloadShaderProgram((unsigned int)dword_1B10B4); rlUnloadShaderProgram((unsigned int)dword_1B10F0); rlUnloadShaderProgram((unsigned int)dword_1B1198); rlUnloadShaderProgram((unsigned int)dword_1B1208); rlUnloadShaderProgram((unsigned int)dword_1B1230); rlUnloadShaderProgram((unsigned int)dword_1B1320); rlUnloadShaderProgram((unsigned int)dword_1B13C4); result = rlUnloadShaderProgram((unsigned int)dword_1B13E8); if ( dword_1B1138 ) result = rlUnloadShaderProgram((unsigned int)dword_1B1138); if ( dword_1B134C ) result = rlUnloadShaderProgram((unsigned int)dword_1B134C); if ( dword_1B1370 ) result = rlUnloadShaderProgram((unsigned int)dword_1B1370); if ( dword_1B140C ) return rlUnloadShaderProgram((unsigned int)dword_1B140C); return result; }
r3d_shaders_unload: PUSH RBP MOV RBP,RSP MOV EDI,dword ptr [0x002b0148] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b0160] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b0174] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b0188] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b01a4] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b023c] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b02dc] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b0984] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b1034] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b1064] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b1084] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b10b4] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b10f0] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b1198] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b1208] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b1230] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b1320] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b13c4] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b13e8] CALL 0x0011ea3d MOV EDI,dword ptr [0x002b1138] TEST EDI,EDI JZ 0x001c36bb CALL 0x0011ea3d LAB_001c36bb: MOV EDI,dword ptr [0x002b134c] TEST EDI,EDI JZ 0x001c36ca CALL 0x0011ea3d LAB_001c36ca: MOV EDI,dword ptr [0x002b1370] TEST EDI,EDI JZ 0x001c36d9 CALL 0x0011ea3d LAB_001c36d9: MOV EDI,dword ptr [0x002b140c] TEST EDI,EDI JZ 0x001c36e9 POP RBP JMP 0x0011ea3d LAB_001c36e9: POP RBP RET
void r3d_shaders_unload(void) { rlUnloadShaderProgram(DAT_002b0148); rlUnloadShaderProgram(DAT_002b0160); rlUnloadShaderProgram(DAT_002b0174); rlUnloadShaderProgram(DAT_002b0188); rlUnloadShaderProgram(DAT_002b01a4); rlUnloadShaderProgram(DAT_002b023c); rlUnloadShaderProgram(DAT_002b02dc); rlUnloadShaderProgram(DAT_002b0984); rlUnloadShaderProgram(DAT_002b1034); rlUnloadShaderProgram(DAT_002b1064); rlUnloadShaderProgram(DAT_002b1084); rlUnloadShaderProgram(DAT_002b10b4); rlUnloadShaderProgram(DAT_002b10f0); rlUnloadShaderProgram(DAT_002b1198); rlUnloadShaderProgram(DAT_002b1208); rlUnloadShaderProgram(DAT_002b1230); rlUnloadShaderProgram(DAT_002b1320); rlUnloadShaderProgram(DAT_002b13c4); rlUnloadShaderProgram(DAT_002b13e8); if (DAT_002b1138 != 0) { rlUnloadShaderProgram(); } if (DAT_002b134c != 0) { rlUnloadShaderProgram(); } if (DAT_002b1370 != 0) { rlUnloadShaderProgram(); } if (DAT_002b140c != 0) { rlUnloadShaderProgram(); return; } return; }
51,028
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_array(unsigned long)
monkey531[P]llama/common/json.hpp
bool start_array(std::size_t len) { const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::array_start, discarded); keep_stack.push_back(keep); auto val = handle_value(BasicJsonType::value_t::array, true); ref_stack.push_back(val.second); // check array limit if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size())) { JSON_THROW(out_of_range::create(408, concat("excessive array size: ", std::to_string(len)), ref_stack.back())); } return true; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_array(unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x58, %rsp movq %rsi, %r15 movq %rdi, %r14 addq $0x80, %rdi leaq 0x8(%r14), %rbx movq 0x10(%r14), %rsi subq 0x8(%r14), %rsi shrq $0x3, %rsi leaq 0xa8(%r14), %rcx pushq $0x2 popq %rdx callq 0x68ad2 leaq 0x20(%r14), %rdi movzbl %al, %esi callq 0x67d78 leaq 0x8(%rsp), %rsi movb $0x2, (%rsi) pushq $0x1 popq %rdx movq %r14, %rdi callq 0x68af6 leaq 0x50(%rsp), %rsi movb %al, -0x8(%rsi) movq %rdx, (%rsi) movq %rbx, %rdi callq 0x68d00 movq 0x10(%r14), %rax movq -0x8(%rax), %rdi testq %rdi, %rdi sete %al cmpq $-0x1, %r15 sete %cl orb %al, %cl jne 0x686f1 callq 0x68d1e cmpq %r15, %rax jb 0x686fe movb $0x1, %al addq $0x58, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x265e0 movq %rax, %rbx leaq 0x28(%rsp), %rdi movq %r15, %rsi callq 0x42685 leaq 0x66bfc(%rip), %rsi # 0xcf319 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rdx callq 0x6abb5 movq 0x10(%r14), %rax movq -0x8(%rax), %rcx movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x198, %esi # imm = 0x198 callq 0x68d46 xorl %ebp, %ebp leaq 0xb69c6(%rip), %rsi # 0x11f118 leaq -0x15b3(%rip), %rdx # 0x671a6 movq %rbx, %rdi callq 0x275b0 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x27998 jmp 0x68776 movq %rax, %r14 movb $0x1, %bpl leaq 0x28(%rsp), %rdi callq 0x27998 testb %bpl, %bpl jne 0x6878a jmp 0x68792 movq %rax, %r14 movq %rbx, %rdi callq 0x268f0 movq %r14, %rdi callq 0x27660
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11start_arrayEm: push rbp push r15 push r14; char push rbx; int sub rsp, 58h mov r15, rsi mov r14, rdi add rdi, 80h lea rbx, [r14+8] mov rsi, [r14+10h] sub rsi, [r14+8] shr rsi, 3 lea rcx, [r14+0A8h] push 2 pop rdx call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) lea rdi, [r14+20h] movzx esi, al call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) lea rsi, [rsp+78h+var_70] mov byte ptr [rsi], 2 push 1 pop rdx mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEESt4pairIbPSF_EOT_b; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&,bool) lea rsi, [rsp+78h+var_28] mov [rsi-8], al mov [rsi], rdx mov rdi, rbx call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE9push_backERKSE_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> * const&) mov rax, [r14+10h] mov rdi, [rax-8] test rdi, rdi setz al cmp r15, 0FFFFFFFFFFFFFFFFh setz cl or cl, al jnz short loc_686F1 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) cmp rax, r15 jb short loc_686FE loc_686F1: mov al, 1 add rsp, 58h pop rbx pop r14 pop r15 pop rbp retn loc_686FE: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+78h+var_50]; this mov rsi, r15; unsigned __int64 call _ZNSt7__cxx119to_stringEm; std::to_string(ulong) lea rsi, aExcessiveArray; "excessive array size: " lea rdi, [rsp+78h+var_70] lea rdx, [rsp+78h+var_50] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA23_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[23],std::string>(char const(&)[23],std::string &&) mov rax, [r14+10h] mov rcx, [rax-8] mov bpl, 1 lea rdx, [rsp+78h+var_70] mov rdi, rbx; this mov esi, 198h; int 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_ 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 mov r14, rax lea rdi, [rsp+78h+var_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_68776 mov r14, rax mov bpl, 1 loc_68776: lea rdi, [rsp+78h+var_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_6878A jmp short loc_68792 mov r14, rax loc_6878A: mov rdi, rbx; void * call ___cxa_free_exception loc_68792: mov rdi, r14 call __Unwind_Resume
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::start_array( long long a1, unsigned long long a2) { unsigned __int8 v2; // al long long v3; // rdx nlohmann::json_abi_v3_11_3::detail::out_of_range *exception; // rbx char v6; // [rsp+0h] [rbp-78h] int v7[6]; // [rsp+8h] [rbp-70h] BYREF char v8; // [rsp+20h] [rbp-58h] int v9[6]; // [rsp+28h] [rbp-50h] BYREF char v10; // [rsp+40h] [rbp-38h] int v11; // [rsp+48h] [rbp-30h] long long v12; // [rsp+50h] [rbp-28h] int v13; // [rsp+58h] [rbp-20h] char v14; // [rsp+60h] [rbp-18h] v2 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()( a1 + 128, (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3, 2LL, a1 + 168); std::vector<bool>::push_back(a1 + 32, v2); LOBYTE(v7[0]) = 2; LOBYTE(v11) = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>( a1, v7, 1LL); v12 = v3; 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); if ( *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL) != 0LL && a2 != -1LL && nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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() < a2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); std::to_string((std::__cxx11 *)v9, a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[23],std::string>( v7, "excessive array size: ", v9); 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, v6, v7[0], v7[2], v7[4], v8, v9[0], v9[2], v9[4], v10, v11, v12, v13, v14); __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::exception::~exception); } return 1; }
start_array: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x58 MOV R15,RSI MOV R14,RDI ADD RDI,0x80 LEA RBX,[R14 + 0x8] MOV RSI,qword ptr [R14 + 0x10] SUB RSI,qword ptr [R14 + 0x8] SHR RSI,0x3 LEA RCX,[R14 + 0xa8] PUSH 0x2 POP RDX CALL 0x00168ad2 LEA RDI,[R14 + 0x20] MOVZX ESI,AL CALL 0x00167d78 LEA RSI,[RSP + 0x8] MOV byte ptr [RSI],0x2 PUSH 0x1 POP RDX MOV RDI,R14 CALL 0x00168af6 LEA RSI,[RSP + 0x50] MOV byte ptr [RSI + -0x8],AL MOV qword ptr [RSI],RDX MOV RDI,RBX CALL 0x00168d00 MOV RAX,qword ptr [R14 + 0x10] MOV RDI,qword ptr [RAX + -0x8] TEST RDI,RDI SETZ AL CMP R15,-0x1 SETZ CL OR CL,AL JNZ 0x001686f1 CALL 0x00168d1e CMP RAX,R15 JC 0x001686fe LAB_001686f1: MOV AL,0x1 ADD RSP,0x58 POP RBX POP R14 POP R15 POP RBP RET LAB_001686fe: PUSH 0x20 POP RDI CALL 0x001265e0 MOV RBX,RAX LAB_00168709: LEA RDI,[RSP + 0x28] MOV RSI,R15 CALL 0x00142685 LAB_00168716: LEA RSI,[0x1cf319] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x28] CALL 0x0016abb5 MOV RAX,qword ptr [R14 + 0x10] MOV RCX,qword ptr [RAX + -0x8] MOV BPL,0x1 LAB_00168737: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x198 CALL 0x00168d46 XOR EBP,EBP LEA RSI,[0x21f118] LEA RDX,[0x1671a6] MOV RDI,RBX CALL 0x001275b0
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::start_array(unsigned long) */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::start_array(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,ulong param_1) { bool bVar1; ulong uVar2; int8 uVar3; basic_json *extraout_RDX; detail local_70 [32]; __cxx11 local_50 [32]; int1 local_30; basic_json *local_28; bVar1 = (bool)std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::operator()(this + 0x80,(ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3, 2,this + 0xa8); std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x20),bVar1); local_70[0] = (detail)0x2; local_30 = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,local_70,true); local_28 = extraout_RDX; std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::push_back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8),&local_28); if (param_1 != 0xffffffffffffffff && *(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(*(long *)(this + 0x10) + -8) != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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) { uVar2 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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> **)(*(long *)(this + 0x10) + -8)); if (uVar2 < param_1) { uVar3 = __cxa_allocate_exception(0x20); /* try { // try from 00168709 to 00168715 has its CatchHandler @ 00168787 */ std::__cxx11::to_string(local_50,param_1); /* try { // try from 00168716 to 0016872b has its CatchHandler @ 00168770 */ concat<std::__cxx11::string,char_const(&)[23],std::__cxx11::string> (local_70,"excessive array size: ",(string *)local_50); /* try { // try from 00168737 to 00168760 has its CatchHandler @ 00168761 */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar3,0x198,local_70,*(int8 *)(*(long *)(this + 0x10) + -8)); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&out_of_range::typeinfo,exception::~exception); } } return 1; }
51,029
mi_pack_rec_unpack
eloqsql/storage/myisam/mi_packrec.c
int _mi_pack_rec_unpack(register MI_INFO *info, MI_BIT_BUFF *bit_buff, register uchar *to, uchar *from, ulong reclength) { uchar *end_field; reg3 MI_COLUMNDEF *end; MI_COLUMNDEF *current_field; MYISAM_SHARE *share=info->s; DBUG_ENTER("_mi_pack_rec_unpack"); init_bit_buffer(bit_buff, (uchar*) from, reclength); for (current_field=share->rec, end=current_field+share->base.fields ; current_field < end ; current_field++,to=end_field) { end_field=to+current_field->length; (*current_field->unpack)(current_field, bit_buff, (uchar*) to, (uchar*) end_field); } if (!bit_buff->error && bit_buff->pos - bit_buff->bits / 8 == bit_buff->end) DBUG_RETURN(0); info->update&= ~HA_STATE_AKTIV; DBUG_RETURN(my_errno=HA_ERR_WRONG_IN_RECORD); }
O3
c
mi_pack_rec_unpack: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rax movq %rcx, 0x8(%rsi) movl %r8d, %esi addq %rcx, %rsi movq %rsi, 0x10(%r14) movl $0x0, 0x28(%r14) movq $0x0, (%r14) movq 0x168(%rax), %rcx testq %rcx, %rcx jle 0x832a1 movq 0x230(%rax), %r15 leaq (%rcx,%rcx,2), %r13 shlq $0x4, %r13 addq %r15, %r13 movzwl 0x4(%r15), %r12d addq %rdx, %r12 movq %r15, %rdi movq %r14, %rsi movq %r12, %rcx callq *0x10(%r15) addq $0x30, %r15 movq %r12, %rdx cmpq %r13, %r15 jb 0x83279 cmpl $0x0, 0x28(%r14) jne 0x832b5 movq 0x8(%r14), %rax movl 0x4(%r14), %ecx shrl $0x3, %ecx subq %rcx, %rax cmpq 0x10(%r14), %rax je 0x832ce andb $-0x3, 0x1d0(%rbx) callq 0xa63fe movl $0x7f, (%rax) movl $0x7f, %eax jmp 0x832d0 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_mi_pack_rec_unpack: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rsi mov rbx, rdi mov rax, [rdi] mov [rsi+8], rcx mov esi, r8d add rsi, rcx mov [r14+10h], rsi mov dword ptr [r14+28h], 0 mov qword ptr [r14], 0 mov rcx, [rax+168h] test rcx, rcx jle short loc_832A1 mov r15, [rax+230h] lea r13, [rcx+rcx*2] shl r13, 4 add r13, r15 loc_83279: movzx r12d, word ptr [r15+4] add r12, rdx mov rdi, r15 mov rsi, r14 mov rcx, r12 call qword ptr [r15+10h] add r15, 30h ; '0' mov rdx, r12 cmp r15, r13 jb short loc_83279 cmp dword ptr [r14+28h], 0 jnz short loc_832B5 loc_832A1: mov rax, [r14+8] mov ecx, [r14+4] shr ecx, 3 sub rax, rcx cmp rax, [r14+10h] jz short loc_832CE loc_832B5: and byte ptr [rbx+1D0h], 0FDh call _my_thread_var mov dword ptr [rax], 7Fh mov eax, 7Fh jmp short loc_832D0 loc_832CE: xor eax, eax loc_832D0: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mi_pack_rec_unpack(_QWORD *a1, long long a2, long long a3, long long a4, unsigned int a5) { _QWORD *v6; // rbx long long v7; // rax const char *v8; // rsi long long v9; // rcx unsigned long long v10; // r15 unsigned long long v11; // r13 long long v12; // r12 v6 = a1; v7 = *a1; *(_QWORD *)(a2 + 8) = a4; v8 = (const char *)(a4 + a5); *(_QWORD *)(a2 + 16) = v8; *(_DWORD *)(a2 + 40) = 0; *(_QWORD *)a2 = 0LL; v9 = *(_QWORD *)(v7 + 360); if ( v9 <= 0 ) goto LABEL_5; v10 = *(_QWORD *)(v7 + 560); v11 = v10 + 48 * v9; do { v12 = a3 + *(unsigned __int16 *)(v10 + 4); a1 = (_QWORD *)v10; v8 = (const char *)a2; (*(void ( **)(unsigned long long, long long, long long, long long))(v10 + 16))(v10, a2, a3, v12); v10 += 48LL; a3 = v12; } while ( v10 < v11 ); if ( !*(_DWORD *)(a2 + 40) ) { LABEL_5: if ( *(_QWORD *)(a2 + 8) - (*(_DWORD *)(a2 + 4) >> 3) == *(_QWORD *)(a2 + 16) ) return 0LL; } *((_BYTE *)v6 + 464) &= ~2u; *(_DWORD *)my_thread_var(a1, v8, a3) = 127; return 127LL; }
_mi_pack_rec_unpack: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RDI] MOV qword ptr [RSI + 0x8],RCX MOV ESI,R8D ADD RSI,RCX MOV qword ptr [R14 + 0x10],RSI MOV dword ptr [R14 + 0x28],0x0 MOV qword ptr [R14],0x0 MOV RCX,qword ptr [RAX + 0x168] TEST RCX,RCX JLE 0x001832a1 MOV R15,qword ptr [RAX + 0x230] LEA R13,[RCX + RCX*0x2] SHL R13,0x4 ADD R13,R15 LAB_00183279: MOVZX R12D,word ptr [R15 + 0x4] ADD R12,RDX MOV RDI,R15 MOV RSI,R14 MOV RCX,R12 CALL qword ptr [R15 + 0x10] ADD R15,0x30 MOV RDX,R12 CMP R15,R13 JC 0x00183279 CMP dword ptr [R14 + 0x28],0x0 JNZ 0x001832b5 LAB_001832a1: MOV RAX,qword ptr [R14 + 0x8] MOV ECX,dword ptr [R14 + 0x4] SHR ECX,0x3 SUB RAX,RCX CMP RAX,qword ptr [R14 + 0x10] JZ 0x001832ce LAB_001832b5: AND byte ptr [RBX + 0x1d0],0xfd CALL 0x001a63fe MOV dword ptr [RAX],0x7f MOV EAX,0x7f JMP 0x001832d0 LAB_001832ce: XOR EAX,EAX LAB_001832d0: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 _mi_pack_rec_unpack(long *param_1,int8 *param_2,long param_3,long param_4,uint param_5) { long lVar1; int4 *puVar2; long lVar3; ulong uVar4; ulong uVar5; lVar3 = *param_1; param_2[1] = param_4; param_2[2] = (ulong)param_5 + param_4; *(int4 *)(param_2 + 5) = 0; *param_2 = 0; lVar1 = *(long *)(lVar3 + 0x168); if (0 < lVar1) { uVar5 = *(ulong *)(lVar3 + 0x230); uVar4 = lVar1 * 0x30 + uVar5; do { lVar3 = (ulong)*(ushort *)(uVar5 + 4) + param_3; (**(code **)(uVar5 + 0x10))(uVar5,param_2,param_3,lVar3); uVar5 = uVar5 + 0x30; param_3 = lVar3; } while (uVar5 < uVar4); if (*(int *)(param_2 + 5) != 0) goto LAB_001832b5; } if (param_2[1] - (ulong)(*(uint *)((long)param_2 + 4) >> 3) == param_2[2]) { return 0; } LAB_001832b5: *(byte *)(param_1 + 0x3a) = *(byte *)(param_1 + 0x3a) & 0xfd; puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7f; return 0x7f; }
51,030
stbiw__zhash
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image-write.h
static unsigned int stbiw__zhash(unsigned char *data) { stbiw_uint32 hash = data[0] + (data[1] << 8) + (data[2] << 16); hash ^= hash << 3; hash += hash >> 5; hash ^= hash << 4; hash += hash >> 17; hash ^= hash << 25; hash += hash >> 6; return hash; }
O0
c
stbiw__zhash: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movzbl (%rax), %eax movq -0x8(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx addl %ecx, %eax movq -0x8(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x10, %ecx addl %ecx, %eax movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax shll $0x3, %eax xorl -0xc(%rbp), %eax movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax shrl $0x5, %eax addl -0xc(%rbp), %eax movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax shll $0x4, %eax xorl -0xc(%rbp), %eax movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax shrl $0x11, %eax addl -0xc(%rbp), %eax movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax shll $0x19, %eax xorl -0xc(%rbp), %eax movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax shrl $0x6, %eax addl -0xc(%rbp), %eax movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax popq %rbp retq nopl (%rax)
stbiw__zhash: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] movzx eax, byte ptr [rax] mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+1] shl ecx, 8 add eax, ecx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+2] shl ecx, 10h add eax, ecx mov [rbp+var_C], eax mov eax, [rbp+var_C] shl eax, 3 xor eax, [rbp+var_C] mov [rbp+var_C], eax mov eax, [rbp+var_C] shr eax, 5 add eax, [rbp+var_C] mov [rbp+var_C], eax mov eax, [rbp+var_C] shl eax, 4 xor eax, [rbp+var_C] mov [rbp+var_C], eax mov eax, [rbp+var_C] shr eax, 11h add eax, [rbp+var_C] mov [rbp+var_C], eax mov eax, [rbp+var_C] shl eax, 19h xor eax, [rbp+var_C] mov [rbp+var_C], eax mov eax, [rbp+var_C] shr eax, 6 add eax, [rbp+var_C] mov [rbp+var_C], eax mov eax, [rbp+var_C] pop rbp retn
long long stbiw__zhash(unsigned __int8 *a1) { int v2; // [rsp+0h] [rbp-Ch] unsigned int v3; // [rsp+0h] [rbp-Ch] unsigned int v4; // [rsp+0h] [rbp-Ch] v2 = (a1[2] << 16) + (a1[1] << 8) + *a1; v3 = (v2 ^ (8 * v2)) + ((v2 ^ (unsigned int)(8 * v2)) >> 5); v4 = (v3 ^ (16 * v3)) + ((v3 ^ (16 * v3)) >> 17); return (v4 ^ (v4 << 25)) + ((v4 ^ (v4 << 25)) >> 6); }
stbiw__zhash: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x8 ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x10 ADD EAX,ECX MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0xc] SHL EAX,0x3 XOR EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0xc] SHR EAX,0x5 ADD EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0xc] SHL EAX,0x4 XOR EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0xc] SHR EAX,0x11 ADD EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0xc] SHL EAX,0x19 XOR EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0xc] SHR EAX,0x6 ADD EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0xc] POP RBP RET
int stbiw__zhash(byte *param_1) { uint uVar1; uVar1 = (uint)*param_1 + (uint)param_1[1] * 0x100 + (uint)param_1[2] * 0x10000; uVar1 = uVar1 * 8 ^ uVar1; uVar1 = (uVar1 >> 5) + uVar1; uVar1 = uVar1 * 0x10 ^ uVar1; uVar1 = (uVar1 >> 0x11) + uVar1; uVar1 = uVar1 * 0x2000000 ^ uVar1; return (uVar1 >> 6) + uVar1; }
51,031
SchemaConverter::_not_strings(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&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
std::string _not_strings(const std::vector<std::string> & strings) { struct TrieNode { std::map<char, TrieNode> children; bool is_end_of_string; TrieNode() : is_end_of_string(false) {} void insert(const std::string & string) { auto node = this; for (char c : string) { node = &node->children[c]; } node->is_end_of_string = true; } }; TrieNode trie; for (const auto & s : strings) { trie.insert(s); } std::string char_rule = _add_primitive("char", PRIMITIVE_RULES.at("char")); std::ostringstream out; out << "[\"] ( "; std::function<void(const TrieNode &)> visit = [&](const TrieNode & node) { std::ostringstream rejects; auto first = true; for (const auto & kv : node.children) { rejects << kv.first; if (first) { first = false; } else { out << " | "; } out << "[" << kv.first << "]"; if (!kv.second.children.empty()) { out << " ("; visit(kv.second); out << ")"; } else if (kv.second.is_end_of_string) { out << " " << char_rule << "+"; } } if (!node.children.empty()) { if (!first) { out << " | "; } out << "[^\"" << rejects.str() << "] " << char_rule << "*"; } }; visit(trie); out << " )"; if (!trie.is_end_of_string) { out << "?"; } out << " [\"] space"; return out.str(); }
O2
cpp
SchemaConverter::_not_strings(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&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x210, %rsp # imm = 0x210 movq %rsi, %r14 movq %rdi, %rbx leaq 0x30(%rsp), %rax andl $0x0, (%rax) andq $0x0, 0x8(%rax) movq %rax, 0x10(%rax) movq %rax, 0x18(%rax) andq $0x0, 0x20(%rax) movb $0x0, 0x28(%rax) movq (%rdx), %r15 movq 0x8(%rdx), %r13 leaq 0x28(%rsp), %r12 cmpq %r13, %r15 je 0x95d02 movq %r12, %rdi movq %r15, %rsi callq 0x963b2 addq $0x20, %r15 jmp 0x95cec leaq 0x266df(%rip), %rsi # 0xbc3e8 leaq 0x98(%rsp), %rdi leaq 0x80(%rsp), %rdx callq 0x29c20 leaq 0x266c3(%rip), %rsi # 0xbc3e8 leaq 0x8(%rsp), %rdi leaq 0x7(%rsp), %rdx callq 0x29c20 leaq 0x6d68d(%rip), %rdi # 0x1033c8 leaq 0x8(%rsp), %rsi callq 0x98f88 leaq 0x60(%rsp), %r15 leaq 0x98(%rsp), %rdx movq %r15, %rdi movq %r14, %rsi movq %rax, %rcx callq 0x94caa leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x24348 leaq 0x98(%rsp), %rdi callq 0x24348 leaq 0x98(%rsp), %rdi callq 0x23c70 leaq 0x26a01(%rip), %rsi # 0xbc78f leaq 0x98(%rsp), %r12 movq %r12, %rdi callq 0x23910 leaq 0x80(%rsp), %rsi movq %r12, (%rsi) movq %r14, 0x8(%rsi) movq %r15, 0x10(%rsi) movq %r14, %rdi callq 0x963f6 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rsi callq 0x9643e leaq 0x266d3(%rip), %rsi # 0xbc4a2 leaq 0x98(%rsp), %rdi callq 0x23910 cmpb $0x0, 0x58(%rsp) jne 0x95df7 leaq 0x267e9(%rip), %rsi # 0xbc5d3 leaq 0x98(%rsp), %rdi callq 0x23910 leaq 0x26998(%rip), %rsi # 0xbc796 leaq 0x98(%rsp), %rdi callq 0x23910 leaq 0xa0(%rsp), %rsi movq %rbx, %rdi callq 0x23ed0 leaq 0x8(%rsp), %rdi callq 0x4b452 leaq 0x98(%rsp), %rdi callq 0x231e0 leaq 0x60(%rsp), %rdi callq 0x24348 leaq 0x28(%rsp), %rdi callq 0x969ea movq %rbx, %rax addq $0x210, %rsp # imm = 0x210 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq jmp 0x95e5c movq %rax, %rbx jmp 0x95e91 movq %rax, %rbx jmp 0x95e9e movq %rax, %rbx jmp 0x95e7a jmp 0x95eaa movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x24348 leaq 0x98(%rsp), %rdi jmp 0x95ea3 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x4b452 leaq 0x98(%rsp), %rdi callq 0x231e0 leaq 0x60(%rsp), %rdi callq 0x24348 jmp 0x95ead movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x969ea movq %rbx, %rdi callq 0x240e0 nop
_ZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE: push r15 push r14 push r13 push r12 push rbx sub rsp, 210h mov r14, rsi mov rbx, rdi lea rax, [rsp+238h+var_208] and dword ptr [rax], 0 and qword ptr [rax+8], 0 mov [rax+10h], rax mov [rax+18h], rax and qword ptr [rax+20h], 0 mov byte ptr [rax+28h], 0 mov r15, [rdx] mov r13, [rdx+8] lea r12, [rsp+238h+var_210] loc_95CEC: cmp r15, r13 jz short loc_95D02 mov rdi, r12 mov rsi, r15 call _ZZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEEN8TrieNode6insertERKS6_; SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode::insert(std::string const&) add r15, 20h ; ' ' jmp short loc_95CEC loc_95D02: lea rsi, aChar; "char" lea rdi, [rsp+238h+var_1A0] lea rdx, [rsp+238h+var_1B8] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aChar; "char" lea rdi, [rsp+238h+var_230] lea rdx, [rsp+238h+var_231] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, _Z15PRIMITIVE_RULESB5cxx11; PRIMITIVE_RULES lea rsi, [rsp+238h+var_230] call _ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_11BuiltinRuleESaISA_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EE2atERS8_; std::__detail::_Map_base<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>::at(std::string const&) lea r15, [rsp+238h+var_1D8] lea rdx, [rsp+238h+var_1A0] mov rdi, r15 mov rsi, r14 mov rcx, rax call _ZN15SchemaConverter14_add_primitiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK11BuiltinRule; SchemaConverter::_add_primitive(std::string const&,BuiltinRule const&) lea r14, [rsp+238h+var_230] mov rdi, r14; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+238h+var_1A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+238h+var_1A0] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) lea rsi, asc_BC78F; "[\"] ( " lea r12, [rsp+238h+var_1A0] mov rdi, r12 call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) lea rsi, [rsp+238h+var_1B8] mov [rsi], r12 mov [rsi+8], r14 mov [rsi+10h], r15 mov rdi, r14 call _ZNSt8functionIFvRKZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE8TrieNodeEEC2IZNS0_12_not_stringsESB_EUlSE_E_vEEOT_; std::function<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)>::function<SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1},void>(SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1} &&) lea rdi, [rsp+238h+var_230] lea rsi, [rsp+238h+var_210] call _ZNKSt8functionIFvRKZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE8TrieNodeEEclESE_; std::function<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)>::operator()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&) lea rsi, a09401910201912+50h; " )" lea rdi, [rsp+238h+var_1A0] call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) cmp [rsp+238h+var_1E0], 0 jnz short loc_95DF7 lea rsi, asc_BC5D0+3; "?" lea rdi, [rsp+238h+var_1A0] call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) loc_95DF7: lea rsi, aSpace_5; " [\"] space" lea rdi, [rsp+238h+var_1A0] call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) lea rsi, [rsp+238h+var_198] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) lea rdi, [rsp+238h+var_230]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() lea rdi, [rsp+238h+var_1A0] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+238h+var_1D8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+238h+var_210] call _ZNSt8_Rb_treeIcSt4pairIKcZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEE8TrieNodeESt10_Select1stISF_ESt4lessIcESaISF_EED2Ev; std::_Rb_tree<char,std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>,std::_Select1st<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::~_Rb_tree() mov rax, rbx add rsp, 210h pop rbx pop r12 pop r13 pop r14 pop r15 retn jmp short $+2 loc_95E5C: mov rbx, rax jmp short loc_95E91 mov rbx, rax jmp short loc_95E9E mov rbx, rax jmp short loc_95E7A jmp short loc_95EAA mov rbx, rax lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_95E7A: lea rdi, [rsp+arg_90] jmp short loc_95EA3 mov rbx, rax lea rdi, [rsp+arg_0]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() loc_95E91: lea rdi, [rsp+arg_90] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() loc_95E9E: lea rdi, [rsp+arg_58]; void * loc_95EA3: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_95EAD loc_95EAA: mov rbx, rax loc_95EAD: lea rdi, [rsp+arg_20] call _ZNSt8_Rb_treeIcSt4pairIKcZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEE8TrieNodeESt10_Select1stISF_ESt4lessIcESaISF_EED2Ev; std::_Rb_tree<char,std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>,std::_Select1st<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::~_Rb_tree() mov rdi, rbx call __Unwind_Resume
long long SchemaConverter::_not_strings(long long a1, long long a2, long long *a3) { long long v3; // r15 long long v4; // r13 _QWORD *v5; // rax _QWORD v7[4]; // [rsp+8h] [rbp-230h] BYREF _BYTE v8[8]; // [rsp+28h] [rbp-210h] BYREF int v9; // [rsp+30h] [rbp-208h] BYREF long long v10; // [rsp+38h] [rbp-200h] int *v11; // [rsp+40h] [rbp-1F8h] int *v12; // [rsp+48h] [rbp-1F0h] long long v13; // [rsp+50h] [rbp-1E8h] char v14; // [rsp+58h] [rbp-1E0h] _BYTE v15[32]; // [rsp+60h] [rbp-1D8h] BYREF long long *v16; // [rsp+80h] [rbp-1B8h] _QWORD *v17; // [rsp+88h] [rbp-1B0h] _BYTE *v18; // [rsp+90h] [rbp-1A8h] long long v19; // [rsp+98h] [rbp-1A0h] BYREF _BYTE v20[408]; // [rsp+A0h] [rbp-198h] BYREF v9 = 0; v10 = 0LL; v11 = &v9; v12 = &v9; v13 = 0LL; v14 = 0; v3 = *a3; v4 = a3[1]; while ( v3 != v4 ) { SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode::insert(v8, v3); v3 += 32LL; } std::string::basic_string<std::allocator<char>>(&v19, (long long)"char"); std::string::basic_string<std::allocator<char>>(v7, (long long)"char"); v5 = (_QWORD *)std::__detail::_Map_base<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>::at( &PRIMITIVE_RULES[abi:cxx11], v7); SchemaConverter::_add_primitive((long long)v15, a2, &v19, v5); std::string::~string(v7); std::string::~string(&v19); std::ostringstream::basic_ostringstream(&v19); std::operator<<<std::char_traits<char>>(&v19, "[\"] ( "); v16 = &v19; v17 = v7; v18 = v15; std::function<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)>::function<SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1},void>(v7); std::function<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)>::operator()( v7, v8); std::operator<<<std::char_traits<char>>(&v19, " )"); if ( !v14 ) std::operator<<<std::char_traits<char>>(&v19, "?"); std::operator<<<std::char_traits<char>>(&v19, " [\"] space"); std::stringbuf::str(a1, v20); std::_Function_base::~_Function_base((std::_Function_base *)v7); std::ostringstream::~ostringstream(&v19); std::string::~string(v15); std::_Rb_tree<char,std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>,std::_Select1st<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::~_Rb_tree(v8); return a1; }
_not_strings: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x210 MOV R14,RSI MOV RBX,RDI LEA RAX,[RSP + 0x30] AND dword ptr [RAX],0x0 AND qword ptr [RAX + 0x8],0x0 MOV qword ptr [RAX + 0x10],RAX MOV qword ptr [RAX + 0x18],RAX AND qword ptr [RAX + 0x20],0x0 MOV byte ptr [RAX + 0x28],0x0 MOV R15,qword ptr [RDX] MOV R13,qword ptr [RDX + 0x8] LEA R12,[RSP + 0x28] LAB_00195cec: CMP R15,R13 JZ 0x00195d02 LAB_00195cf1: MOV RDI,R12 MOV RSI,R15 CALL 0x001963b2 ADD R15,0x20 JMP 0x00195cec LAB_00195d02: LEA RSI,[0x1bc3e8] LEA RDI,[RSP + 0x98] LEA RDX,[RSP + 0x80] CALL 0x00129c20 LAB_00195d1e: LEA RSI,[0x1bc3e8] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x7] CALL 0x00129c20 LAB_00195d34: LEA RDI,[0x2033c8] LEA RSI,[RSP + 0x8] CALL 0x00198f88 LEA R15,[RSP + 0x60] LEA RDX,[RSP + 0x98] MOV RDI,R15 MOV RSI,R14 MOV RCX,RAX CALL 0x00194caa LEA R14,[RSP + 0x8] MOV RDI,R14 CALL 0x00124348 LEA RDI,[RSP + 0x98] CALL 0x00124348 LAB_00195d7a: LEA RDI,[RSP + 0x98] CALL 0x00123c70 LAB_00195d87: LEA RSI,[0x1bc78f] LEA R12,[RSP + 0x98] MOV RDI,R12 CALL 0x00123910 LEA RSI,[RSP + 0x80] MOV qword ptr [RSI],R12 MOV qword ptr [RSI + 0x8],R14 MOV qword ptr [RSI + 0x10],R15 LAB_00195db1: MOV RDI,R14 CALL 0x001963f6 LAB_00195db9: LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x28] CALL 0x0019643e LEA RSI,[0x1bc4a2] LEA RDI,[RSP + 0x98] CALL 0x00123910 CMP byte ptr [RSP + 0x58],0x0 JNZ 0x00195df7 LEA RSI,[0x1bc5d3] LEA RDI,[RSP + 0x98] CALL 0x00123910 LAB_00195df7: LEA RSI,[0x1bc796] LEA RDI,[RSP + 0x98] CALL 0x00123910 LEA RSI,[RSP + 0xa0] MOV RDI,RBX CALL 0x00123ed0 LAB_00195e1b: LEA RDI,[RSP + 0x8] CALL 0x0014b452 LEA RDI,[RSP + 0x98] CALL 0x001231e0 LEA RDI,[RSP + 0x60] CALL 0x00124348 LEA RDI,[RSP + 0x28] CALL 0x001969ea MOV RAX,RBX ADD RSP,0x210 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* SchemaConverter::_not_strings(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&) */ vector * SchemaConverter::_not_strings(vector *param_1) { long lVar1; long *in_RDX; BuiltinRule *in_RSI; long lVar2; allocator local_231; string local_230 [32]; TrieNode local_210 [8]; int4 local_208 [2]; int8 local_200; int4 *local_1f8; int4 *local_1f0; int8 local_1e8; char local_1e0; string local_1d8 [32]; ostream *local_1b8; string *local_1b0; string *local_1a8; string local_1a0 [376]; local_1f8 = local_208; local_208[0] = 0; local_200 = 0; local_1e8 = 0; local_1e0 = '\0'; lVar1 = in_RDX[1]; local_1f0 = local_1f8; for (lVar2 = *in_RDX; lVar2 != lVar1; lVar2 = lVar2 + 0x20) { /* try { // try from 00195cf1 to 00195cfb has its CatchHandler @ 00195eaa */ _not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&):: TrieNode::insert(std::__cxx11::string_const__(local_210,lVar2); } /* try { // try from 00195d02 to 00195d1d has its CatchHandler @ 00195e6b */ std::__cxx11::string::string<std::allocator<char>>(local_1a0,"char",(allocator *)&local_1b8); /* try { // try from 00195d1e to 00195d33 has its CatchHandler @ 00195e66 */ std::__cxx11::string::string<std::allocator<char>>(local_230,"char",&local_231); /* try { // try from 00195d34 to 00195d5f has its CatchHandler @ 00195e6d */ std::__detail:: _Map_base<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true> ::at((_Map_base<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true> *)PRIMITIVE_RULES_abi_cxx11_,local_230); _add_primitive(local_1d8,in_RSI); std::__cxx11::string::~string(local_230); std::__cxx11::string::~string(local_1a0); /* try { // try from 00195d7a to 00195d86 has its CatchHandler @ 00195e61 */ std::__cxx11::ostringstream::ostringstream((ostringstream *)local_1a0); /* try { // try from 00195d87 to 00195d9d has its CatchHandler @ 00195e5c */ std::operator<<((ostream *)local_1a0,"[\"] ( "); local_1b8 = (ostream *)local_1a0; local_1b0 = local_230; local_1a8 = local_1d8; /* try { // try from 00195db1 to 00195db8 has its CatchHandler @ 00195e5a */ std:: function<void(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)> :: function<SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::_lambda(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)_1_,void> ((_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string_>_>_const____TrieNode_const___1_ *)local_230); /* try { // try from 00195db9 to 00195e1a has its CatchHandler @ 00195e84 */ std:: function<void(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)> ::operator()((function<void(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)> *)local_230,local_210); std::operator<<((ostream *)local_1a0," )"); if (local_1e0 == '\0') { std::operator<<((ostream *)local_1a0,"?"); } std::operator<<((ostream *)local_1a0," [\"] space"); std::__cxx11::stringbuf::str(); std::_Function_base::~_Function_base((_Function_base *)local_230); std::__cxx11::ostringstream::~ostringstream((ostringstream *)local_1a0); std::__cxx11::string::~string(local_1d8); std:: _Rb_tree<char,std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>,std::_Select1st<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>> ::~_Rb_tree((_Rb_tree<char,std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>,std::_Select1st<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>> *)local_210); return param_1; }
51,032
google::protobuf::EnumValueDescriptorProto::ByteSizeLong() const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
size_t EnumValueDescriptorProto::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDescriptorProto) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string name = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // optional .google.protobuf.EnumValueOptions options = 3; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.options_); } // optional int32 number = 2; if (cached_has_bits & 0x00000004u) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_number()); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); }
O3
cpp
google::protobuf::EnumValueDescriptorProto::ByteSizeLong() const: pushq %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movl 0x10(%rdi), %ebp testb $0x7, %bpl je 0x4ef9d testb $0x1, %bpl jne 0x4efa2 xorl %r14d, %r14d jmp 0x4efc6 xorl %r14d, %r14d jmp 0x4f00d movq 0x18(%rbx), %rax andq $-0x4, %rax movq 0x8(%rax), %rax movl %eax, %ecx orl $0x1, %ecx bsrl %ecx, %ecx leal (%rcx,%rcx,8), %ecx addl $0x49, %ecx shrl $0x6, %ecx leaq (%rax,%rcx), %r14 incq %r14 testb $0x2, %bpl je 0x4efed movq 0x20(%rbx), %rdi callq 0x54472 addq %rax, %r14 orl $0x1, %eax bsrl %eax, %eax leal (%rax,%rax,8), %eax addl $0x49, %eax shrl $0x6, %eax addq %rax, %r14 incq %r14 testb $0x4, %bpl je 0x4f00d movslq 0x28(%rbx), %rax orq $0x1, %rax bsrq %rax, %rax leal (%rax,%rax,8), %eax addl $0x89, %eax shrl $0x6, %eax addq %rax, %r14 leaq 0x14(%rbx), %rdx movq %rbx, %rdi movq %r14, %rsi popq %rbx popq %r14 popq %rbp jmp 0x77d4a
_ZNK6google8protobuf24EnumValueDescriptorProto12ByteSizeLongEv: push rbp push r14 push rbx mov rbx, rdi mov ebp, [rdi+10h] test bpl, 7 jz short loc_4EF9D test bpl, 1 jnz short loc_4EFA2 xor r14d, r14d jmp short loc_4EFC6 loc_4EF9D: xor r14d, r14d jmp short loc_4F00D loc_4EFA2: mov rax, [rbx+18h] and rax, 0FFFFFFFFFFFFFFFCh mov rax, [rax+8] mov ecx, eax or ecx, 1 bsr ecx, ecx lea ecx, [rcx+rcx*8] add ecx, 49h ; 'I' shr ecx, 6 lea r14, [rax+rcx] inc r14 loc_4EFC6: test bpl, 2 jz short loc_4EFED mov rdi, [rbx+20h]; this call _ZNK6google8protobuf16EnumValueOptions12ByteSizeLongEv; google::protobuf::EnumValueOptions::ByteSizeLong(void) add r14, rax or eax, 1 bsr eax, eax lea eax, [rax+rax*8] add eax, 49h ; 'I' shr eax, 6 add r14, rax inc r14 loc_4EFED: test bpl, 4 jz short loc_4F00D movsxd rax, dword ptr [rbx+28h] or rax, 1 bsr rax, rax lea eax, [rax+rax*8] add eax, 89h shr eax, 6 add r14, rax loc_4F00D: lea rdx, [rbx+14h] mov rdi, rbx mov rsi, r14 pop rbx pop r14 pop rbp jmp _ZNK6google8protobuf7Message29MaybeComputeUnknownFieldsSizeEmPNS0_8internal10CachedSizeE; google::protobuf::Message::MaybeComputeUnknownFieldsSize(ulong,google::protobuf::internal::CachedSize *)
long long google::protobuf::EnumValueDescriptorProto::ByteSizeLong( google::protobuf::EnumValueDescriptorProto *this) { int v1; // ebp long long v2; // r14 unsigned int v3; // ecx long long v4; // rax long long v5; // r14 unsigned long long v6; // rax v1 = *((_DWORD *)this + 4); if ( (v1 & 7) != 0 ) { if ( (v1 & 1) != 0 ) { _BitScanReverse(&v3, *(_QWORD *)((*((_QWORD *)this + 3) & 0xFFFFFFFFFFFFFFFCLL) + 8) | 1); v2 = *(_QWORD *)((*((_QWORD *)this + 3) & 0xFFFFFFFFFFFFFFFCLL) + 8) + ((9 * v3 + 73) >> 6) + 1LL; } else { v2 = 0LL; } if ( (v1 & 2) != 0 ) { v4 = google::protobuf::EnumValueOptions::ByteSizeLong(*((google::protobuf::EnumValueOptions **)this + 4)); v5 = v4 + v2; _BitScanReverse((unsigned int *)&v4, v4 | 1); v2 = ((unsigned int)(9 * v4 + 73) >> 6) + v5 + 1; } if ( (v1 & 4) != 0 ) { _BitScanReverse64(&v6, *((int *)this + 10) | 1LL); v2 += (unsigned int)(9 * v6 + 137) >> 6; } } else { v2 = 0LL; } return google::protobuf::Message::MaybeComputeUnknownFieldsSize(this, v2, (char *)this + 20); }
ByteSizeLong: PUSH RBP PUSH R14 PUSH RBX MOV RBX,RDI MOV EBP,dword ptr [RDI + 0x10] TEST BPL,0x7 JZ 0x0014ef9d TEST BPL,0x1 JNZ 0x0014efa2 XOR R14D,R14D JMP 0x0014efc6 LAB_0014ef9d: XOR R14D,R14D JMP 0x0014f00d LAB_0014efa2: MOV RAX,qword ptr [RBX + 0x18] AND RAX,-0x4 MOV RAX,qword ptr [RAX + 0x8] MOV ECX,EAX OR ECX,0x1 BSR ECX,ECX LEA ECX,[RCX + RCX*0x8] ADD ECX,0x49 SHR ECX,0x6 LEA R14,[RAX + RCX*0x1] INC R14 LAB_0014efc6: TEST BPL,0x2 JZ 0x0014efed MOV RDI,qword ptr [RBX + 0x20] CALL 0x00154472 ADD R14,RAX OR EAX,0x1 BSR EAX,EAX LEA EAX,[RAX + RAX*0x8] ADD EAX,0x49 SHR EAX,0x6 ADD R14,RAX INC R14 LAB_0014efed: TEST BPL,0x4 JZ 0x0014f00d MOVSXD RAX,dword ptr [RBX + 0x28] OR RAX,0x1 BSR RAX,RAX LEA EAX,[RAX + RAX*0x8] ADD EAX,0x89 SHR EAX,0x6 ADD R14,RAX LAB_0014f00d: LEA RDX,[RBX + 0x14] MOV RDI,RBX MOV RSI,R14 POP RBX POP R14 POP RBP JMP 0x00177d4a
/* google::protobuf::EnumValueDescriptorProto::ByteSizeLong() const */ void __thiscall google::protobuf::EnumValueDescriptorProto::ByteSizeLong(EnumValueDescriptorProto *this) { uint uVar1; int iVar2; uint uVar3; long lVar4; ulong uVar5; uVar1 = *(uint *)(this + 0x10); if ((uVar1 & 7) == 0) { uVar5 = 0; } else { if ((uVar1 & 1) == 0) { uVar5 = 0; } else { lVar4 = *(long *)((*(ulong *)(this + 0x18) & 0xfffffffffffffffc) + 8); uVar3 = (uint)lVar4 | 1; iVar2 = 0x1f; if (uVar3 != 0) { for (; uVar3 >> iVar2 == 0; iVar2 = iVar2 + -1) { } } uVar5 = lVar4 + (ulong)(iVar2 * 9 + 0x49U >> 6) + 1; } if ((uVar1 & 2) != 0) { lVar4 = EnumValueOptions::ByteSizeLong(*(EnumValueOptions **)(this + 0x20)); uVar3 = (uint)lVar4 | 1; iVar2 = 0x1f; if (uVar3 != 0) { for (; uVar3 >> iVar2 == 0; iVar2 = iVar2 + -1) { } } uVar5 = uVar5 + lVar4 + (ulong)(iVar2 * 9 + 0x49U >> 6) + 1; } if ((uVar1 & 4) != 0) { lVar4 = 0x3f; if (((long)*(int *)(this + 0x28) | 1U) != 0) { for (; ((long)*(int *)(this + 0x28) | 1U) >> lVar4 == 0; lVar4 = lVar4 + -1) { } } uVar5 = uVar5 + ((int)lVar4 * 9 + 0x89U >> 6); } } Message::MaybeComputeUnknownFieldsSize((Message *)this,uVar5,(CachedSize *)(this + 0x14)); return; }
51,033
pvio_socket_has_data
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
my_bool pvio_socket_has_data(MARIADB_PVIO *pvio, ssize_t *data_len) { struct st_pvio_socket *csock= NULL; char tmp_buf; ssize_t len; my_bool mode; if (!pvio || !pvio->data) return 0; csock= (struct st_pvio_socket *)pvio->data; /* MSG_PEEK: Peeks at the incoming data. The data is copied into the buffer, but is not removed from the input queue. */ pvio_socket_blocking(pvio, 0, &mode); len= recv(csock->socket, &tmp_buf, sizeof(tmp_buf), MSG_PEEK); pvio_socket_blocking(pvio, mode, 0); if (len < 0) return 1; *data_len= len; return 0; }
O0
c
pvio_socket_has_data: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq $0x0, -0x20(%rbp) cmpq $0x0, -0x10(%rbp) je 0x692b9 movq -0x10(%rbp), %rax cmpq $0x0, (%rax) jne 0x692bf movb $0x0, -0x1(%rbp) jmp 0x69323 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rdi xorl %esi, %esi leaq -0x31(%rbp), %rdx callq 0x68260 movq -0x20(%rbp), %rax movl (%rax), %edi leaq -0x21(%rbp), %rsi movl $0x1, %edx movl $0x2, %ecx callq 0x379a0 movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rdi xorl %eax, %eax movl %eax, %edx movsbl -0x31(%rbp), %esi callq 0x68260 cmpq $0x0, -0x30(%rbp) jge 0x69314 movb $0x1, -0x1(%rbp) jmp 0x69323 movq -0x30(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x40, %rsp popq %rbp retq nopl (%rax)
pvio_socket_has_data: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], 0 cmp [rbp+var_10], 0 jz short loc_692B9 mov rax, [rbp+var_10] cmp qword ptr [rax], 0 jnz short loc_692BF loc_692B9: mov [rbp+var_1], 0 jmp short loc_69323 loc_692BF: mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_20], rax mov rdi, [rbp+var_10] xor esi, esi lea rdx, [rbp+var_31] call pvio_socket_blocking mov rax, [rbp+var_20] mov edi, [rax] lea rsi, [rbp+var_21] mov edx, 1 mov ecx, 2 call _recv mov [rbp+var_30], rax mov rdi, [rbp+var_10] xor eax, eax mov edx, eax movsx esi, [rbp+var_31] call pvio_socket_blocking cmp [rbp+var_30], 0 jge short loc_69314 mov [rbp+var_1], 1 jmp short loc_69323 loc_69314: mov rcx, [rbp+var_30] mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_1], 0 loc_69323: mov al, [rbp+var_1] add rsp, 40h pop rbp retn
char pvio_socket_has_data(unsigned int **a1, long long *a2) { char v3; // [rsp+Fh] [rbp-31h] BYREF long long v4; // [rsp+10h] [rbp-30h] char v5; // [rsp+1Fh] [rbp-21h] BYREF unsigned int *v6; // [rsp+20h] [rbp-20h] long long *v7; // [rsp+28h] [rbp-18h] unsigned int **v8; // [rsp+30h] [rbp-10h] v8 = a1; v7 = a2; v6 = 0LL; if ( !a1 || !*v8 ) return 0; v6 = *v8; pvio_socket_blocking(v8, 0, &v3); v4 = recv(*v6, &v5, 1LL, 2LL); pvio_socket_blocking(v8, v3, 0LL); if ( v4 < 0 ) return 1; *v7 = v4; return 0; }
pvio_socket_has_data: 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],0x0 CMP qword ptr [RBP + -0x10],0x0 JZ 0x001692b9 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX],0x0 JNZ 0x001692bf LAB_001692b9: MOV byte ptr [RBP + -0x1],0x0 JMP 0x00169323 LAB_001692bf: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x10] XOR ESI,ESI LEA RDX,[RBP + -0x31] CALL 0x00168260 MOV RAX,qword ptr [RBP + -0x20] MOV EDI,dword ptr [RAX] LEA RSI,[RBP + -0x21] MOV EDX,0x1 MOV ECX,0x2 CALL 0x001379a0 MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x10] XOR EAX,EAX MOV EDX,EAX MOVSX ESI,byte ptr [RBP + -0x31] CALL 0x00168260 CMP qword ptr [RBP + -0x30],0x0 JGE 0x00169314 MOV byte ptr [RBP + -0x1],0x1 JMP 0x00169323 LAB_00169314: MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV byte ptr [RBP + -0x1],0x0 LAB_00169323: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x40 POP RBP RET
int1 pvio_socket_has_data(long *param_1,long *param_2) { char local_39; long local_38; int1 local_29; int *local_28; long *local_20; long *local_18; int1 local_9; if ((param_1 == (long *)0x0) || (*param_1 == 0)) { local_9 = 0; } else { local_28 = (int *)*param_1; local_20 = param_2; local_18 = param_1; pvio_socket_blocking(param_1,0,&local_39); local_38 = recv(*local_28,&local_29,1,2); pvio_socket_blocking(local_18,(int)local_39,0); if (local_38 < 0) { local_9 = 1; } else { *local_20 = local_38; local_9 = 0; } } return local_9; }
51,034
enough_free_entries_on_page
eloqsql/storage/maria/ma_blockrec.c
my_bool enough_free_entries_on_page(MARIA_SHARE *share, uchar *page_buff) { enum en_page_type page_type; page_type= (enum en_page_type) (page_buff[PAGE_TYPE_OFFSET] & ~(uchar) PAGE_CAN_BE_COMPACTED); if (page_type == HEAD_PAGE) { uint row_count= (uint) page_buff[DIR_COUNT_OFFSET]; return !(row_count == MAX_ROWS_PER_PAGE && page_buff[DIR_FREE_OFFSET] == END_OF_DIR_FREE_LIST); } return enough_free_entries(page_buff, share->block_size, 1 + share->base.blobs); }
O0
c
enough_free_entries_on_page: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x18(%rbp), %rax movzbl 0x7(%rax), %eax andl $0xffffff7f, %eax # imm = 0xFFFFFF7F movl %eax, -0x1c(%rbp) cmpl $0x1, -0x1c(%rbp) jne 0x7f021 movq -0x18(%rbp), %rax movzbl 0x8(%rax), %eax movl %eax, -0x20(%rbp) xorl %eax, %eax cmpl $0xff, -0x20(%rbp) movb %al, -0x21(%rbp) jne 0x7f012 movq -0x18(%rbp), %rax movzbl 0x9(%rax), %eax cmpl $0xff, %eax sete %al movb %al, -0x21(%rbp) movb -0x21(%rbp), %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax movb %al, -0x1(%rbp) jmp 0x7f044 movq -0x18(%rbp), %rdi movq -0x10(%rbp), %rax movl 0x7bc(%rax), %esi movq -0x10(%rbp), %rax movl 0x3f0(%rax), %edx addl $0x1, %edx callq 0x7f050 movb %al, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopl (%rax)
enough_free_entries_on_page: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_18] movzx eax, byte ptr [rax+7] and eax, 0FFFFFF7Fh mov [rbp+var_1C], eax cmp [rbp+var_1C], 1 jnz short loc_7F021 mov rax, [rbp+var_18] movzx eax, byte ptr [rax+8] mov [rbp+var_20], eax xor eax, eax cmp [rbp+var_20], 0FFh mov [rbp+var_21], al jnz short loc_7F012 mov rax, [rbp+var_18] movzx eax, byte ptr [rax+9] cmp eax, 0FFh setz al mov [rbp+var_21], al loc_7F012: mov al, [rbp+var_21] xor al, 0FFh and al, 1 movzx eax, al mov [rbp+var_1], al jmp short loc_7F044 loc_7F021: mov rdi, [rbp+var_18] mov rax, [rbp+var_10] mov esi, [rax+7BCh] mov rax, [rbp+var_10] mov edx, [rax+3F0h] add edx, 1 call enough_free_entries mov [rbp+var_1], al loc_7F044: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char enough_free_entries_on_page(long long a1, _BYTE *a2) { bool v3; // [rsp+Fh] [rbp-21h] if ( (a2[7] & 0x7F) != 1 ) return enough_free_entries(a2, *(unsigned int *)(a1 + 1980), (unsigned int)(*(_DWORD *)(a1 + 1008) + 1)); v3 = 0; if ( (unsigned __int8)a2[8] == 255 ) v3 = (unsigned __int8)a2[9] == 255; return !v3; }
enough_free_entries_on_page: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x7] AND EAX,0xffffff7f MOV dword ptr [RBP + -0x1c],EAX CMP dword ptr [RBP + -0x1c],0x1 JNZ 0x0017f021 MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x8] MOV dword ptr [RBP + -0x20],EAX XOR EAX,EAX CMP dword ptr [RBP + -0x20],0xff MOV byte ptr [RBP + -0x21],AL JNZ 0x0017f012 MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x9] CMP EAX,0xff SETZ AL MOV byte ptr [RBP + -0x21],AL LAB_0017f012: MOV AL,byte ptr [RBP + -0x21] XOR AL,0xff AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x1],AL JMP 0x0017f044 LAB_0017f021: MOV RDI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX + 0x7bc] MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0x3f0] ADD EDX,0x1 CALL 0x0017f050 MOV byte ptr [RBP + -0x1],AL LAB_0017f044: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
byte enough_free_entries_on_page(long param_1,long param_2) { bool local_29; byte local_9; if ((*(byte *)(param_2 + 7) & 0x7f) == 1) { local_29 = false; if (*(char *)(param_2 + 8) == -1) { local_29 = *(char *)(param_2 + 9) == -1; } local_9 = (local_29 ^ 0xffU) & 1; } else { local_9 = enough_free_entries(param_2,*(int4 *)(param_1 + 0x7bc), *(int *)(param_1 + 0x3f0) + 1); } return local_9; }
51,035
my_snprintf_utf32
eloqsql/strings/ctype-ucs2.c
static size_t my_snprintf_utf32(CHARSET_INFO *cs __attribute__((unused)), char* to, size_t n, const char* fmt, ...) { size_t ret; va_list args; va_start(args,fmt); ret= my_vsnprintf_utf32(to, n, fmt, args); va_end(args); return ret; }
O3
c
my_snprintf_utf32: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf8, %rsp movq %rcx, %r15 movq %rdx, %rbx movq %rsi, %r12 leaq -0x120(%rbp), %rcx movq %r8, 0x20(%rcx) movq %r9, 0x28(%rcx) testb %al, %al je 0x50ab3 movaps %xmm0, -0xf0(%rbp) movaps %xmm1, -0xe0(%rbp) movaps %xmm2, -0xd0(%rbp) movaps %xmm3, -0xc0(%rbp) movaps %xmm4, -0xb0(%rbp) movaps %xmm5, -0xa0(%rbp) movaps %xmm6, -0x90(%rbp) movaps %xmm7, -0x80(%rbp) movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq %rcx, -0x50(%rbp) leaq 0x10(%rbp), %rax movq %rax, -0x58(%rbp) movabsq $0x3000000020, %rax # imm = 0x3000000020 movq %rax, -0x60(%rbp) addq %rsi, %rbx leaq -0x40(%rbp), %r14 movq %rsi, -0x68(%rbp) movzbl (%r15), %eax cmpl $0x25, %eax je 0x50b1d testl %eax, %eax je 0x50c9e cmpq %rbx, %r12 jae 0x50c9e movw $0x0, (%r12) movb $0x0, 0x2(%r12) movb (%r15), %al movb %al, 0x3(%r12) addq $0x4, %r12 incq %r15 jmp 0x50ae5 addq $0x2, %r15 movb -0x1(%r15), %al leal -0x30(%rax), %ecx cmpb $0xa, %cl jb 0x50b38 movzbl %al, %ecx leal -0x2d(%rcx), %edx cmpl $0x2, %edx jae 0x50b3d incq %r15 jmp 0x50b21 cmpl $0x6c, %ecx jne 0x50b47 movb (%r15), %al jmp 0x50b4a decq %r15 cmpb $0x64, %al je 0x50b7a movzbl %al, %eax cmpl $0x75, %eax je 0x50b7a cmpl $0x73, %eax jne 0x50ba2 movl -0x60(%rbp), %ecx cmpq $0x28, %rcx ja 0x50c1b movq %rcx, %rax addq -0x50(%rbp), %rax addl $0x8, %ecx movl %ecx, -0x60(%rbp) jmp 0x50c27 movq %rbx, %rax subq %r12, %rax cmpq $0x3f, %rax jbe 0x50c9e movl -0x60(%rbp), %ecx cmpq $0x28, %rcx ja 0x50bb8 movq %rcx, %rax addq -0x50(%rbp), %rax addl $0x8, %ecx movl %ecx, -0x60(%rbp) jmp 0x50bc4 cmpq %rbx, %r12 je 0x50c9b movl $0x25000000, (%r12) # imm = 0x25000000 jmp 0x50b14 movq -0x58(%rbp), %rax leaq 0x8(%rax), %rcx movq %rcx, -0x58(%rbp) movslq (%rax), %rdi cmpb $0x64, (%r15) jne 0x50bd7 movq %r14, %rsi movl $0xfffffff6, %edx # imm = 0xFFFFFFF6 jmp 0x50be1 movl %edi, %edi movq %r14, %rsi movl $0xa, %edx callq 0x617e2 cmpb $0x0, -0x40(%rbp) je 0x50b18 leaq -0x3f(%rbp), %rax movw $0x0, (%r12) movb $0x0, 0x2(%r12) movb -0x1(%rax), %cl movb %cl, 0x3(%r12) addq $0x4, %r12 cmpb $0x0, (%rax) leaq 0x1(%rax), %rax jne 0x50bf4 jmp 0x50b18 movq -0x58(%rbp), %rax leaq 0x8(%rax), %rcx movq %rcx, -0x58(%rbp) movq (%rax), %r13 movq %rbx, %r14 subq %r12, %r14 testq %r13, %r13 leaq 0x17000(%rip), %rax # 0x67c3a cmoveq %rax, %r13 movq %r13, %rdi callq 0x24170 leaq (,%rax,4), %rdx movq %r14, %rcx shrq $0x2, %rcx decq %rcx cmpq %rdx, %r14 cmovaq %rax, %rcx testq %rcx, %rcx je 0x50c92 xorl %eax, %eax leaq -0x40(%rbp), %r14 movw $0x0, (%r12) movb $0x0, 0x2(%r12) movb (%r13,%rax), %dl movb %dl, 0x3(%r12) addq $0x4, %r12 incq %rax cmpq %rax, %rcx jne 0x50c6a jmp 0x50b18 leaq -0x40(%rbp), %r14 jmp 0x50b18 movq %rbx, %r12 movl $0x0, (%r12) movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x50cce subq -0x68(%rbp), %r12 movq %r12, %rax addq $0xf8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x243e0
my_snprintf_utf32: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 0F8h mov r15, rcx mov rbx, rdx mov r12, rsi lea rcx, [rbp+var_120] mov [rcx+20h], r8 mov [rcx+28h], r9 test al, al jz short loc_50AB3 movaps [rbp+var_F0], xmm0 movaps [rbp+var_E0], xmm1 movaps [rbp+var_D0], xmm2 movaps [rbp+var_C0], xmm3 movaps [rbp+var_B0], xmm4 movaps [rbp+var_A0], xmm5 movaps [rbp+var_90], xmm6 movaps [rbp+var_80], xmm7 loc_50AB3: mov rax, fs:28h mov [rbp+var_30], rax mov [rbp+var_50], rcx lea rax, [rbp+arg_0] mov [rbp+var_58], rax mov rax, 3000000020h mov [rbp+var_60], rax add rbx, rsi lea r14, [rbp+var_40] mov [rbp+var_68], rsi loc_50AE5: movzx eax, byte ptr [r15] cmp eax, 25h ; '%' jz short loc_50B1D test eax, eax jz loc_50C9E cmp r12, rbx jnb loc_50C9E mov word ptr [r12], 0 mov byte ptr [r12+2], 0 mov al, [r15] mov [r12+3], al loc_50B14: add r12, 4 loc_50B18: inc r15 jmp short loc_50AE5 loc_50B1D: add r15, 2 loc_50B21: mov al, [r15-1] lea ecx, [rax-30h] cmp cl, 0Ah jb short loc_50B38 movzx ecx, al lea edx, [rcx-2Dh] cmp edx, 2 jnb short loc_50B3D loc_50B38: inc r15 jmp short loc_50B21 loc_50B3D: cmp ecx, 6Ch ; 'l' jnz short loc_50B47 mov al, [r15] jmp short loc_50B4A loc_50B47: dec r15 loc_50B4A: cmp al, 64h ; 'd' jz short loc_50B7A movzx eax, al cmp eax, 75h ; 'u' jz short loc_50B7A cmp eax, 73h ; 's' jnz short loc_50BA2 mov ecx, dword ptr [rbp+var_60] cmp rcx, 28h ; '(' ja loc_50C1B mov rax, rcx add rax, [rbp+var_50] add ecx, 8 mov dword ptr [rbp+var_60], ecx jmp loc_50C27 loc_50B7A: mov rax, rbx sub rax, r12 cmp rax, 3Fh ; '?' jbe loc_50C9E mov ecx, dword ptr [rbp+var_60] cmp rcx, 28h ; '(' ja short loc_50BB8 mov rax, rcx add rax, [rbp+var_50] add ecx, 8 mov dword ptr [rbp+var_60], ecx jmp short loc_50BC4 loc_50BA2: cmp r12, rbx jz loc_50C9B mov dword ptr [r12], 25000000h jmp loc_50B14 loc_50BB8: mov rax, [rbp+var_58] lea rcx, [rax+8] mov [rbp+var_58], rcx loc_50BC4: movsxd rdi, dword ptr [rax] cmp byte ptr [r15], 64h ; 'd' jnz short loc_50BD7 mov rsi, r14 mov edx, 0FFFFFFF6h jmp short loc_50BE1 loc_50BD7: mov edi, edi mov rsi, r14 mov edx, 0Ah loc_50BE1: call int10_to_str cmp [rbp+var_40], 0 jz loc_50B18 lea rax, [rbp+var_3F] loc_50BF4: mov word ptr [r12], 0 mov byte ptr [r12+2], 0 mov cl, [rax-1] mov [r12+3], cl add r12, 4 cmp byte ptr [rax], 0 lea rax, [rax+1] jnz short loc_50BF4 jmp loc_50B18 loc_50C1B: mov rax, [rbp+var_58] lea rcx, [rax+8] mov [rbp+var_58], rcx loc_50C27: mov r13, [rax] mov r14, rbx sub r14, r12 test r13, r13 lea rax, aNull; "(null)" cmovz r13, rax mov rdi, r13 call _strlen lea rdx, ds:0[rax*4] mov rcx, r14 shr rcx, 2 dec rcx cmp r14, rdx cmova rcx, rax test rcx, rcx jz short loc_50C92 xor eax, eax lea r14, [rbp+var_40] loc_50C6A: mov word ptr [r12], 0 mov byte ptr [r12+2], 0 mov dl, [r13+rax+0] mov [r12+3], dl add r12, 4 inc rax cmp rcx, rax jnz short loc_50C6A jmp loc_50B18 loc_50C92: lea r14, [rbp+var_40] jmp loc_50B18 loc_50C9B: mov r12, rbx loc_50C9E: mov dword ptr [r12], 0 mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_50CCE sub r12, [rbp+var_68] mov rax, r12 add rsp, 0F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_50CCE: call ___stack_chk_fail
unsigned long long my_snprintf_utf32( __m128 a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, long long a9, unsigned long long a10, long long a11, unsigned __int8 *a12, long long a13, long long a14, char a15) { unsigned long long v16; // r12 unsigned long long v17; // rbx unsigned __int8 v18; // al const char **v19; // rax char *v20; // rax long long v21; // rdi long long v22; // rdx char *v23; // rax const char *v25; // r13 unsigned long long v26; // r14 long long v27; // rax long long v28; // rcx long long i; // rax char v31; // [rsp+0h] [rbp-120h] BYREF long long v32; // [rsp+20h] [rbp-100h] long long v33; // [rsp+28h] [rbp-F8h] __m128 v34; // [rsp+30h] [rbp-F0h] __m128 v35; // [rsp+40h] [rbp-E0h] __m128 v36; // [rsp+50h] [rbp-D0h] __m128 v37; // [rsp+60h] [rbp-C0h] __m128 v38; // [rsp+70h] [rbp-B0h] __m128 v39; // [rsp+80h] [rbp-A0h] __m128 v40; // [rsp+90h] [rbp-90h] __m128 v41; // [rsp+A0h] [rbp-80h] unsigned long long v42; // [rsp+B8h] [rbp-68h] long long v43; // [rsp+C0h] [rbp-60h] char *v44; // [rsp+C8h] [rbp-58h] char *v45; // [rsp+D0h] [rbp-50h] char v46; // [rsp+E0h] [rbp-40h] BYREF char v47; // [rsp+E1h] [rbp-3Fh] BYREF unsigned long long v48; // [rsp+F0h] [rbp-30h] v34 = a1; v35 = a2; v36 = a3; v37 = a4; v38 = a5; v39 = a6; v40 = a7; v41 = a8; v16 = a10; v32 = a13; v33 = a14; v48 = __readfsqword(0x28u); v45 = &v31; v44 = &a15; v43 = 0x3000000020LL; v17 = a10 + a11; v42 = a10; while ( 1 ) { if ( *a12 != 37 ) { if ( !*a12 || v16 >= v17 ) goto LABEL_44; *(_WORD *)v16 = 0; *(_BYTE *)(v16 + 2) = 0; *(_BYTE *)(v16 + 3) = *a12; goto LABEL_6; } for ( a12 += 2; ; ++a12 ) { v18 = *(a12 - 1); if ( (unsigned __int8)(v18 - 48) >= 0xAu && (unsigned int)v18 - 45 >= 2 ) break; } if ( v18 == 108 ) v18 = *a12; else --a12; if ( v18 != 100 && v18 != 117 ) break; if ( v17 - v16 <= 0x3F ) goto LABEL_44; if ( (unsigned int)v43 > 0x28uLL ) { v20 = v44; v44 += 8; } else { v20 = &v45[(unsigned int)v43]; LODWORD(v43) = v43 + 8; } v21 = *(int *)v20; if ( *a12 == 100 ) { v22 = 4294967286LL; } else { v21 = (unsigned int)v21; v22 = 10LL; } int10_to_str(v21, &v46, v22); if ( v46 ) { v23 = &v47; do { *(_WORD *)v16 = 0; *(_BYTE *)(v16 + 2) = 0; *(_BYTE *)(v16 + 3) = *(v23 - 1); v16 += 4LL; } while ( *v23++ != 0 ); } LABEL_7: ++a12; } if ( v18 == 115 ) { if ( (unsigned int)v43 > 0x28uLL ) { v19 = (const char **)v44; v44 += 8; } else { v19 = (const char **)&v45[(unsigned int)v43]; LODWORD(v43) = v43 + 8; } v25 = *v19; v26 = v17 - v16; if ( !*v19 ) v25 = "(null)"; v27 = strlen(v25); v28 = (v26 >> 2) - 1; if ( v26 > 4 * v27 ) v28 = v27; if ( v28 ) { for ( i = 0LL; i != v28; ++i ) { *(_WORD *)v16 = 0; *(_BYTE *)(v16 + 2) = 0; *(_BYTE *)(v16 + 3) = v25[i]; v16 += 4LL; } } goto LABEL_7; } if ( v16 != v17 ) { *(_DWORD *)v16 = 620756992; LABEL_6: v16 += 4LL; goto LABEL_7; } v16 = v17; LABEL_44: *(_DWORD *)v16 = 0; return v16 - v42; }
my_snprintf_utf32: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xf8 MOV R15,RCX MOV RBX,RDX MOV R12,RSI LEA RCX,[RBP + -0x120] MOV qword ptr [RCX + 0x20],R8 MOV qword ptr [RCX + 0x28],R9 TEST AL,AL JZ 0x00150ab3 MOVAPS xmmword ptr [RBP + -0xf0],XMM0 MOVAPS xmmword ptr [RBP + -0xe0],XMM1 MOVAPS xmmword ptr [RBP + -0xd0],XMM2 MOVAPS xmmword ptr [RBP + -0xc0],XMM3 MOVAPS xmmword ptr [RBP + -0xb0],XMM4 MOVAPS xmmword ptr [RBP + -0xa0],XMM5 MOVAPS xmmword ptr [RBP + -0x90],XMM6 MOVAPS xmmword ptr [RBP + -0x80],XMM7 LAB_00150ab3: MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [RBP + -0x50],RCX LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x58],RAX MOV RAX,0x3000000020 MOV qword ptr [RBP + -0x60],RAX ADD RBX,RSI LEA R14,[RBP + -0x40] MOV qword ptr [RBP + -0x68],RSI LAB_00150ae5: MOVZX EAX,byte ptr [R15] CMP EAX,0x25 JZ 0x00150b1d TEST EAX,EAX JZ 0x00150c9e CMP R12,RBX JNC 0x00150c9e MOV word ptr [R12],0x0 MOV byte ptr [R12 + 0x2],0x0 MOV AL,byte ptr [R15] MOV byte ptr [R12 + 0x3],AL LAB_00150b14: ADD R12,0x4 LAB_00150b18: INC R15 JMP 0x00150ae5 LAB_00150b1d: ADD R15,0x2 LAB_00150b21: MOV AL,byte ptr [R15 + -0x1] LEA ECX,[RAX + -0x30] CMP CL,0xa JC 0x00150b38 MOVZX ECX,AL LEA EDX,[RCX + -0x2d] CMP EDX,0x2 JNC 0x00150b3d LAB_00150b38: INC R15 JMP 0x00150b21 LAB_00150b3d: CMP ECX,0x6c JNZ 0x00150b47 MOV AL,byte ptr [R15] JMP 0x00150b4a LAB_00150b47: DEC R15 LAB_00150b4a: CMP AL,0x64 JZ 0x00150b7a MOVZX EAX,AL CMP EAX,0x75 JZ 0x00150b7a CMP EAX,0x73 JNZ 0x00150ba2 MOV ECX,dword ptr [RBP + -0x60] CMP RCX,0x28 JA 0x00150c1b MOV RAX,RCX ADD RAX,qword ptr [RBP + -0x50] ADD ECX,0x8 MOV dword ptr [RBP + -0x60],ECX JMP 0x00150c27 LAB_00150b7a: MOV RAX,RBX SUB RAX,R12 CMP RAX,0x3f JBE 0x00150c9e MOV ECX,dword ptr [RBP + -0x60] CMP RCX,0x28 JA 0x00150bb8 MOV RAX,RCX ADD RAX,qword ptr [RBP + -0x50] ADD ECX,0x8 MOV dword ptr [RBP + -0x60],ECX JMP 0x00150bc4 LAB_00150ba2: CMP R12,RBX JZ 0x00150c9b MOV dword ptr [R12],0x25000000 JMP 0x00150b14 LAB_00150bb8: MOV RAX,qword ptr [RBP + -0x58] LEA RCX,[RAX + 0x8] MOV qword ptr [RBP + -0x58],RCX LAB_00150bc4: MOVSXD RDI,dword ptr [RAX] CMP byte ptr [R15],0x64 JNZ 0x00150bd7 MOV RSI,R14 MOV EDX,0xfffffff6 JMP 0x00150be1 LAB_00150bd7: MOV EDI,EDI MOV RSI,R14 MOV EDX,0xa LAB_00150be1: CALL 0x001617e2 CMP byte ptr [RBP + -0x40],0x0 JZ 0x00150b18 LEA RAX,[RBP + -0x3f] LAB_00150bf4: MOV word ptr [R12],0x0 MOV byte ptr [R12 + 0x2],0x0 MOV CL,byte ptr [RAX + -0x1] MOV byte ptr [R12 + 0x3],CL ADD R12,0x4 CMP byte ptr [RAX],0x0 LEA RAX,[RAX + 0x1] JNZ 0x00150bf4 JMP 0x00150b18 LAB_00150c1b: MOV RAX,qword ptr [RBP + -0x58] LEA RCX,[RAX + 0x8] MOV qword ptr [RBP + -0x58],RCX LAB_00150c27: MOV R13,qword ptr [RAX] MOV R14,RBX SUB R14,R12 TEST R13,R13 LEA RAX,[0x167c3a] CMOVZ R13,RAX MOV RDI,R13 CALL 0x00124170 LEA RDX,[RAX*0x4] MOV RCX,R14 SHR RCX,0x2 DEC RCX CMP R14,RDX CMOVA RCX,RAX TEST RCX,RCX JZ 0x00150c92 XOR EAX,EAX LEA R14,[RBP + -0x40] LAB_00150c6a: MOV word ptr [R12],0x0 MOV byte ptr [R12 + 0x2],0x0 MOV DL,byte ptr [R13 + RAX*0x1] MOV byte ptr [R12 + 0x3],DL ADD R12,0x4 INC RAX CMP RCX,RAX JNZ 0x00150c6a JMP 0x00150b18 LAB_00150c92: LEA R14,[RBP + -0x40] JMP 0x00150b18 LAB_00150c9b: MOV R12,RBX LAB_00150c9e: MOV dword ptr [R12],0x0 MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x00150cce SUB R12,qword ptr [RBP + -0x68] MOV RAX,R12 ADD RSP,0xf8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00150cce: CALL 0x001243e0
long my_snprintf_utf32(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,int4 *param_10,long param_11,byte *param_12, int8 param_13,int8 param_14) { char in_AL; byte bVar1; uint *puVar2; size_t sVar3; size_t sVar4; int8 uVar5; int4 *puVar6; ulong uVar7; int4 *puVar8; char *pcVar9; long in_FS_OFFSET; int1 local_128 [32]; int8 local_108; int8 local_100; int8 local_f8; int8 local_e8; int8 local_d8; int8 local_c8; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int4 *local_70; ulong local_68; uint *local_60; int1 *local_58; char local_48 [16]; long local_38; local_58 = local_128; if (in_AL != '\0') { local_f8 = param_1; local_e8 = param_2; local_d8 = param_3; local_c8 = param_4; local_b8 = param_5; local_a8 = param_6; local_98 = param_7; local_88 = param_8; } local_38 = *(long *)(in_FS_OFFSET + 0x28); local_60 = (uint *)&stack0x00000008; local_68 = 0x3000000020; puVar6 = (int4 *)(param_11 + (long)param_10); local_108 = param_13; local_100 = param_14; local_70 = param_10; do { puVar8 = param_10; if (*param_12 == 0x25) { param_12 = param_12 + 2; while ((bVar1 = param_12[-1], (byte)(bVar1 - 0x30) < 10 || (bVar1 - 0x2d < 2))) { param_12 = param_12 + 1; } if (bVar1 == 0x6c) { bVar1 = *param_12; } else { param_12 = param_12 + -1; } if ((bVar1 == 100) || (bVar1 == 0x75)) { if ((ulong)((long)puVar6 - (long)param_10) < 0x40) { LAB_00150c9e: *puVar8 = 0; if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return (long)puVar8 - (long)local_70; } uVar7 = local_68 & 0xffffffff; if (uVar7 < 0x29) { local_68 = CONCAT44(local_68._4_4_,(int)local_68 + 8); puVar2 = (uint *)(local_58 + uVar7); } else { puVar2 = local_60; local_60 = local_60 + 2; } uVar7 = (ulong)(int)*puVar2; if (*param_12 == 100) { uVar5 = 0xfffffff6; } else { uVar7 = (ulong)*puVar2; uVar5 = 10; } int10_to_str(uVar7,local_48,uVar5); if (local_48[0] != '\0') { pcVar9 = local_48; do { pcVar9 = pcVar9 + 1; *(int2 *)param_10 = 0; *(int1 *)((long)param_10 + 2) = 0; *(char *)((long)param_10 + 3) = pcVar9[-1]; param_10 = param_10 + 1; } while (*pcVar9 != '\0'); } } else { if (bVar1 != 0x73) { puVar8 = puVar6; if (param_10 != puVar6) { *param_10 = 0x25000000; goto LAB_00150b14; } goto LAB_00150c9e; } uVar7 = local_68 & 0xffffffff; if (uVar7 < 0x29) { local_68 = CONCAT44(local_68._4_4_,(int)local_68 + 8); puVar2 = (uint *)(local_58 + uVar7); } else { puVar2 = local_60; local_60 = local_60 + 2; } pcVar9 = *(char **)puVar2; if (pcVar9 == (char *)0x0) { pcVar9 = "(null)"; } sVar3 = strlen(pcVar9); sVar4 = ((ulong)((long)puVar6 - (long)param_10) >> 2) - 1; if (sVar3 * 4 < (ulong)((long)puVar6 - (long)param_10)) { sVar4 = sVar3; } if (sVar4 != 0) { sVar3 = 0; do { *(int2 *)param_10 = 0; *(int1 *)((long)param_10 + 2) = 0; *(char *)((long)param_10 + 3) = pcVar9[sVar3]; param_10 = param_10 + 1; sVar3 = sVar3 + 1; } while (sVar4 != sVar3); } } } else { if ((*param_12 == 0) || (puVar6 <= param_10)) goto LAB_00150c9e; *(int2 *)param_10 = 0; *(int1 *)((long)param_10 + 2) = 0; *(byte *)((long)param_10 + 3) = *param_12; LAB_00150b14: param_10 = param_10 + 1; } param_12 = param_12 + 1; } while( true ); }
51,036
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::key(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
monkey531[P]llama/common/json.hpp
bool key(string_t& val) { BasicJsonType k = BasicJsonType(val); // check callback for key const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::key, k); key_keep_stack.push_back(keep); // add discarded value at given key and store the reference for later if (keep && ref_stack.back()) { object_element = &(ref_stack.back()->m_data.m_value.object->operator[](val) = discarded); } return true; }
O1
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::key(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rsp), %rdi callq 0x9028e movq 0x10(%rbx), %rax subq 0x8(%rbx), %rax shrq $0x3, %rax movl %eax, 0xc(%rsp) movb $0x4, 0xb(%rsp) cmpq $0x0, 0x90(%rbx) je 0x8d7ae leaq 0x80(%rbx), %rdi leaq 0xc(%rsp), %rsi leaq 0xb(%rsp), %rdx leaq 0x10(%rsp), %rcx callq *0x98(%rbx) movl %eax, %ebp leaq 0x48(%rbx), %rdi movzbl %al, %esi callq 0x8cf36 testb %bpl, %bpl je 0x8d78c movq 0x10(%rbx), %rax cmpq $0x0, -0x8(%rax) je 0x8d78c leaq 0xa8(%rbx), %rsi leaq 0x20(%rsp), %rdi callq 0x8e7ac movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq 0x8(%rax), %rdi movq %r14, %rsi callq 0x902c8 leaq 0x20(%rsp), %r14 movq %rax, %rdi movq %r14, %rsi callq 0x8bf58 movq %rax, 0x70(%rbx) movq %r14, %rdi xorl %esi, %esi callq 0x8974c movq %r14, %rdi callq 0x8ed0c leaq 0x10(%rsp), %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x8974c movq %rbx, %rdi callq 0x8ed0c movb $0x1, %al addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq callq 0x1d3e0 movq %rax, %rbx leaq 0x20(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x8974c movq %r14, %rdi callq 0x8ed0c jmp 0x8d7d2 movq %rax, %rbx leaq 0x10(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x8974c movq %r14, %rdi callq 0x8ed0c movq %rbx, %rdi callq 0x1e650 nop
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE3keyERSB_: push rbp push r14 push rbx sub rsp, 30h mov r14, rsi mov rbx, rdi lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ mov rax, [rbx+10h] sub rax, [rbx+8] shr rax, 3 mov [rsp+48h+var_3C], eax mov [rsp+48h+var_3D], 4 cmp qword ptr [rbx+90h], 0 jz loc_8D7AE lea rdi, [rbx+80h] lea rsi, [rsp+48h+var_3C] lea rdx, [rsp+48h+var_3D] lea rcx, [rsp+48h+var_38] call qword ptr [rbx+98h] mov ebp, eax lea rdi, [rbx+48h] movzx esi, al call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) test bpl, bpl jz short loc_8D78C mov rax, [rbx+10h] cmp qword ptr [rax-8], 0 jz short loc_8D78C lea rsi, [rbx+0A8h] lea rdi, [rsp+48h+var_28] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rax, [rbx+10h] mov rax, [rax-8] mov rdi, [rax+8] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEixERSH_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator[](std::string const&) lea r14, [rsp+48h+var_28] mov rdi, rax mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov [rbx+70h], rax mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_8D78C: lea rbx, [rsp+48h+var_38] 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 al, 1 add rsp, 30h pop rbx pop r14 pop rbp retn loc_8D7AE: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) mov rbx, rax lea r14, [rsp+48h+var_28] mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_8D7D2 mov rbx, rax loc_8D7D2: lea r14, [rsp+48h+var_38] mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, rbx call __Unwind_Resume
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::key( long long a1, long long a2) { unsigned __int8 v2; // bp long long v3; // rax char v5; // [rsp+Bh] [rbp-3Dh] BYREF int v6; // [rsp+Ch] [rbp-3Ch] BYREF char v7[16]; // [rsp+10h] [rbp-38h] BYREF char v8[40]; // [rsp+20h] [rbp-28h] BYREF ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(v7); v6 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3; v5 = 4; if ( !*(_QWORD *)(a1 + 144) ) std::__throw_bad_function_call(); v2 = (*(long long ( **)(long long, int *, char *, char *))(a1 + 152))(a1 + 128, &v6, &v5, v7); std::vector<bool>::push_back(a1 + 72, v2); if ( v2 && *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL) ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( v8, a1 + 168); v3 = nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator[]( *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL) + 8LL), a2); *(_QWORD *)(a1 + 112) = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( v3, (long long)v8); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v8); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v8); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v7); return 1; }
key: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RSI MOV RBX,RDI LEA RDI,[RSP + 0x10] CALL 0x0019028e MOV RAX,qword ptr [RBX + 0x10] SUB RAX,qword ptr [RBX + 0x8] SHR RAX,0x3 MOV dword ptr [RSP + 0xc],EAX MOV byte ptr [RSP + 0xb],0x4 CMP qword ptr [RBX + 0x90],0x0 JZ 0x0018d7ae LEA RDI,[RBX + 0x80] LAB_0018d70e: LEA RSI,[RSP + 0xc] LEA RDX,[RSP + 0xb] LEA RCX,[RSP + 0x10] CALL qword ptr [RBX + 0x98] MOV EBP,EAX LEA RDI,[RBX + 0x48] MOVZX ESI,AL CALL 0x0018cf36 TEST BPL,BPL JZ 0x0018d78c MOV RAX,qword ptr [RBX + 0x10] CMP qword ptr [RAX + -0x8],0x0 JZ 0x0018d78c LEA RSI,[RBX + 0xa8] LEA RDI,[RSP + 0x20] CALL 0x0018e7ac MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] MOV RDI,qword ptr [RAX + 0x8] LAB_0018d75e: MOV RSI,R14 CALL 0x001902c8 LEA R14,[RSP + 0x20] MOV RDI,RAX MOV RSI,R14 CALL 0x0018bf58 MOV qword ptr [RBX + 0x70],RAX MOV RDI,R14 XOR ESI,ESI CALL 0x0018974c MOV RDI,R14 CALL 0x0018ed0c LAB_0018d78c: LEA RBX,[RSP + 0x10] MOV RDI,RBX XOR ESI,ESI CALL 0x0018974c MOV RDI,RBX CALL 0x0018ed0c MOV AL,0x1 ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_0018d7ae: CALL 0x0011d3e0
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::key(std::__cxx11::string&) */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::key(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,string *param_1) { bool bVar1; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *pbVar2; int8 uVar3; int1 local_3d; int4 local_3c; data local_38 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_28 [16]; _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ (local_38); local_3c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3); local_3d = 4; if (*(long *)(this + 0x90) != 0) { /* try { // try from 0018d70e to 0018d751 has its CatchHandler @ 0018d7cf */ bVar1 = (bool)(**(code **)(this + 0x98))(this + 0x80,&local_3c,&local_3d,local_38); std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x48),bVar1); if ((bVar1 != false) && (*(long *)(*(long *)(this + 0x10) + -8) != 0)) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_28,(basic_json *)(this + 0xa8)); /* try { // try from 0018d75e to 0018d765 has its CatchHandler @ 0018d7b3 */ pbVar2 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::operator[](*(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)(*(long *)(*(long *)(this + 0x10) + -8) + 8),param_1); uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(pbVar2,(data *)local_28); *(int8 *)(this + 0x70) = uVar3; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)local_28,0)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_28); } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_38,0)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_38); return 1; } /* WARNING: Subroutine does not return */ /* try { // try from 0018d7ae to 0018d7b2 has its CatchHandler @ 0018d7cf */ std::__throw_bad_function_call(); }
51,037
my_strntol_8bit
eloqsql/strings/ctype-simple.c
long my_strntol_8bit(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative; register uint32 cutoff; register uint cutlim; register uint32 i; register const char *s; register uchar c; const char *save, *e; int overflow; *err= 0; /* Initialize error indicator */ s = nptr; e = nptr+l; for ( ; s<e && my_isspace(cs, *s) ; s++); if (s == e) { goto noconv; } /* Check for a sign. */ if (*s == '-') { negative = 1; ++s; } else if (*s == '+') { negative = 0; ++s; } else negative = 0; save = s; cutoff = ((uint32)~0L) / (uint32) base; cutlim = (uint) (((uint32)~0L) % (uint32) base); overflow = 0; i = 0; for (c = *s; s != e; c = *++s) { if (c>='0' && c<='9') c -= '0'; else if (c>='A' && c<='Z') c = c - 'A' + 10; else if (c>='a' && c<='z') c = c - 'a' + 10; else break; if (c >= base) break; if (i > cutoff || (i == cutoff && c > cutlim)) overflow = 1; else { i *= (uint32) base; i += c; } } if (s == save) goto noconv; if (endptr != NULL) *endptr = (char *) s; if (negative) { if (i > (uint32) INT_MIN32) overflow = 1; } else if (i > INT_MAX32) overflow = 1; if (overflow) { err[0]= ERANGE; return negative ? INT_MIN32 : INT_MAX32; } return (negative ? -((long) i) : (long) i); noconv: err[0]= EDOM; if (endptr != NULL) *endptr = (char *) nptr; return 0L; }
O0
c
my_strntol_8bit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x50(%rbp), %rcx xorl %eax, %eax cmpq -0x68(%rbp), %rcx movb %al, -0x6d(%rbp) jae 0xa2758 movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq -0x50(%rbp), %rcx movzbl (%rcx), %ecx movzbl 0x1(%rax,%rcx), %eax andl $0x8, %eax cmpl $0x0, %eax setne %al movb %al, -0x6d(%rbp) movb -0x6d(%rbp), %al testb $0x1, %al jne 0xa2761 jmp 0xa2771 jmp 0xa2763 movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) jmp 0xa2729 movq -0x50(%rbp), %rax cmpq -0x68(%rbp), %rax jne 0xa2780 jmp 0xa2975 movq -0x50(%rbp), %rax movsbl (%rax), %eax cmpl $0x2d, %eax jne 0xa27a1 movl $0x1, -0x3c(%rbp) movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) jmp 0xa27cb movq -0x50(%rbp), %rax movsbl (%rax), %eax cmpl $0x2b, %eax jne 0xa27c2 movl $0x0, -0x3c(%rbp) movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) jmp 0xa27c9 movl $0x0, -0x3c(%rbp) jmp 0xa27cb movq -0x50(%rbp), %rax movq %rax, -0x60(%rbp) movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x24(%rbp) movl %eax, -0x40(%rbp) movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x24(%rbp) movl %edx, -0x44(%rbp) movl $0x0, -0x6c(%rbp) movl $0x0, -0x48(%rbp) movq -0x50(%rbp), %rax movb (%rax), %al movb %al, -0x51(%rbp) movq -0x50(%rbp), %rax cmpq -0x68(%rbp), %rax je 0xa28d5 movzbl -0x51(%rbp), %eax cmpl $0x30, %eax jl 0xa2830 movzbl -0x51(%rbp), %eax cmpl $0x39, %eax jg 0xa2830 movzbl -0x51(%rbp), %eax subl $0x30, %eax movb %al, -0x51(%rbp) jmp 0xa2878 movzbl -0x51(%rbp), %eax cmpl $0x41, %eax jl 0xa2851 movzbl -0x51(%rbp), %eax cmpl $0x5a, %eax jg 0xa2851 movzbl -0x51(%rbp), %eax subl $0x41, %eax addl $0xa, %eax movb %al, -0x51(%rbp) jmp 0xa2876 movzbl -0x51(%rbp), %eax cmpl $0x61, %eax jl 0xa2872 movzbl -0x51(%rbp), %eax cmpl $0x7a, %eax jg 0xa2872 movzbl -0x51(%rbp), %eax subl $0x61, %eax addl $0xa, %eax movb %al, -0x51(%rbp) jmp 0xa2874 jmp 0xa28d5 jmp 0xa2876 jmp 0xa2878 movzbl -0x51(%rbp), %eax cmpl -0x24(%rbp), %eax jl 0xa2883 jmp 0xa28d5 movl -0x48(%rbp), %eax cmpl -0x40(%rbp), %eax ja 0xa289c movl -0x48(%rbp), %eax cmpl -0x40(%rbp), %eax jne 0xa28a5 movzbl -0x51(%rbp), %eax cmpl -0x44(%rbp), %eax jbe 0xa28a5 movl $0x1, -0x6c(%rbp) jmp 0xa28b9 movl -0x24(%rbp), %eax imull -0x48(%rbp), %eax movl %eax, -0x48(%rbp) movzbl -0x51(%rbp), %eax addl -0x48(%rbp), %eax movl %eax, -0x48(%rbp) jmp 0xa28bb movq -0x50(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x50(%rbp) movb 0x1(%rax), %al movb %al, -0x51(%rbp) jmp 0xa2804 movq -0x50(%rbp), %rax cmpq -0x60(%rbp), %rax jne 0xa28e4 jmp 0xa2975 cmpq $0x0, -0x30(%rbp) je 0xa28f6 movq -0x50(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) cmpl $0x0, -0x3c(%rbp) je 0xa290e cmpl $0x80000000, -0x48(%rbp) # imm = 0x80000000 jbe 0xa290c movl $0x1, -0x6c(%rbp) jmp 0xa2922 movl -0x48(%rbp), %eax cmpq $0x7fffffff, %rax # imm = 0x7FFFFFFF jle 0xa2920 movl $0x1, -0x6c(%rbp) jmp 0xa2922 cmpl $0x0, -0x6c(%rbp) je 0xa294e movq -0x38(%rbp), %rax movl $0x22, (%rax) movl -0x3c(%rbp), %edx movl $0x7fffffff, %eax # imm = 0x7FFFFFFF movq $-0x80000000, %rcx # imm = 0x80000000 cmpl $0x0, %edx cmovneq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0xa2999 cmpl $0x0, -0x3c(%rbp) je 0xa2964 movl -0x48(%rbp), %eax movl %eax, %ecx xorl %eax, %eax subq %rcx, %rax movq %rax, -0x78(%rbp) jmp 0xa296b movl -0x48(%rbp), %eax movq %rax, -0x78(%rbp) movq -0x78(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xa2999 movq -0x38(%rbp), %rax movl $0x21, (%rax) cmpq $0x0, -0x30(%rbp) je 0xa2991 movq -0x18(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nop
my_strntol_8bit: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rax, [rbp+var_38] mov dword ptr [rax], 0 mov rax, [rbp+var_18] mov [rbp+var_50], rax mov rax, [rbp+var_18] add rax, [rbp+var_20] mov [rbp+var_68], rax loc_A2729: mov rcx, [rbp+var_50] xor eax, eax cmp rcx, [rbp+var_68] mov [rbp+var_6D], al jnb short loc_A2758 mov rax, [rbp+var_10] mov rax, [rax+40h] mov rcx, [rbp+var_50] movzx ecx, byte ptr [rcx] movzx eax, byte ptr [rax+rcx+1] and eax, 8 cmp eax, 0 setnz al mov [rbp+var_6D], al loc_A2758: mov al, [rbp+var_6D] test al, 1 jnz short loc_A2761 jmp short loc_A2771 loc_A2761: jmp short $+2 loc_A2763: mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax jmp short loc_A2729 loc_A2771: mov rax, [rbp+var_50] cmp rax, [rbp+var_68] jnz short loc_A2780 jmp loc_A2975 loc_A2780: mov rax, [rbp+var_50] movsx eax, byte ptr [rax] cmp eax, 2Dh ; '-' jnz short loc_A27A1 mov [rbp+var_3C], 1 mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax jmp short loc_A27CB loc_A27A1: mov rax, [rbp+var_50] movsx eax, byte ptr [rax] cmp eax, 2Bh ; '+' jnz short loc_A27C2 mov [rbp+var_3C], 0 mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax jmp short loc_A27C9 loc_A27C2: mov [rbp+var_3C], 0 loc_A27C9: jmp short $+2 loc_A27CB: mov rax, [rbp+var_50] mov [rbp+var_60], rax mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_24] mov [rbp+var_40], eax mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_24] mov [rbp+var_44], edx mov [rbp+var_6C], 0 mov [rbp+var_48], 0 mov rax, [rbp+var_50] mov al, [rax] mov [rbp+var_51], al loc_A2804: mov rax, [rbp+var_50] cmp rax, [rbp+var_68] jz loc_A28D5 movzx eax, [rbp+var_51] cmp eax, 30h ; '0' jl short loc_A2830 movzx eax, [rbp+var_51] cmp eax, 39h ; '9' jg short loc_A2830 movzx eax, [rbp+var_51] sub eax, 30h ; '0' mov [rbp+var_51], al jmp short loc_A2878 loc_A2830: movzx eax, [rbp+var_51] cmp eax, 41h ; 'A' jl short loc_A2851 movzx eax, [rbp+var_51] cmp eax, 5Ah ; 'Z' jg short loc_A2851 movzx eax, [rbp+var_51] sub eax, 41h ; 'A' add eax, 0Ah mov [rbp+var_51], al jmp short loc_A2876 loc_A2851: movzx eax, [rbp+var_51] cmp eax, 61h ; 'a' jl short loc_A2872 movzx eax, [rbp+var_51] cmp eax, 7Ah ; 'z' jg short loc_A2872 movzx eax, [rbp+var_51] sub eax, 61h ; 'a' add eax, 0Ah mov [rbp+var_51], al jmp short loc_A2874 loc_A2872: jmp short loc_A28D5 loc_A2874: jmp short $+2 loc_A2876: jmp short $+2 loc_A2878: movzx eax, [rbp+var_51] cmp eax, [rbp+var_24] jl short loc_A2883 jmp short loc_A28D5 loc_A2883: mov eax, [rbp+var_48] cmp eax, [rbp+var_40] ja short loc_A289C mov eax, [rbp+var_48] cmp eax, [rbp+var_40] jnz short loc_A28A5 movzx eax, [rbp+var_51] cmp eax, [rbp+var_44] jbe short loc_A28A5 loc_A289C: mov [rbp+var_6C], 1 jmp short loc_A28B9 loc_A28A5: mov eax, [rbp+var_24] imul eax, [rbp+var_48] mov [rbp+var_48], eax movzx eax, [rbp+var_51] add eax, [rbp+var_48] mov [rbp+var_48], eax loc_A28B9: jmp short $+2 loc_A28BB: mov rax, [rbp+var_50] mov rcx, rax add rcx, 1 mov [rbp+var_50], rcx mov al, [rax+1] mov [rbp+var_51], al jmp loc_A2804 loc_A28D5: mov rax, [rbp+var_50] cmp rax, [rbp+var_60] jnz short loc_A28E4 jmp loc_A2975 loc_A28E4: cmp [rbp+var_30], 0 jz short loc_A28F6 mov rcx, [rbp+var_50] mov rax, [rbp+var_30] mov [rax], rcx loc_A28F6: cmp [rbp+var_3C], 0 jz short loc_A290E cmp [rbp+var_48], 80000000h jbe short loc_A290C mov [rbp+var_6C], 1 loc_A290C: jmp short loc_A2922 loc_A290E: mov eax, [rbp+var_48] cmp rax, 7FFFFFFFh jle short loc_A2920 mov [rbp+var_6C], 1 loc_A2920: jmp short $+2 loc_A2922: cmp [rbp+var_6C], 0 jz short loc_A294E mov rax, [rbp+var_38] mov dword ptr [rax], 22h ; '"' mov edx, [rbp+var_3C] mov eax, 7FFFFFFFh mov rcx, 0FFFFFFFF80000000h cmp edx, 0 cmovnz rax, rcx mov [rbp+var_8], rax jmp short loc_A2999 loc_A294E: cmp [rbp+var_3C], 0 jz short loc_A2964 mov eax, [rbp+var_48] mov ecx, eax xor eax, eax sub rax, rcx mov [rbp+var_78], rax jmp short loc_A296B loc_A2964: mov eax, [rbp+var_48] mov [rbp+var_78], rax loc_A296B: mov rax, [rbp+var_78] mov [rbp+var_8], rax jmp short loc_A2999 loc_A2975: mov rax, [rbp+var_38] mov dword ptr [rax], 21h ; '!' cmp [rbp+var_30], 0 jz short loc_A2991 mov rcx, [rbp+var_18] mov rax, [rbp+var_30] mov [rax], rcx loc_A2991: mov [rbp+var_8], 0 loc_A2999: mov rax, [rbp+var_8] pop rbp retn
long long my_strntol_8bit(long long a1, _BYTE *a2, long long a3, int a4, _QWORD *a5, _DWORD *a6) { _BYTE *v6; // rax long long v7; // rax bool v10; // [rsp+Bh] [rbp-6Dh] int v11; // [rsp+Ch] [rbp-6Ch] _BYTE *v12; // [rsp+10h] [rbp-68h] _BYTE *v13; // [rsp+18h] [rbp-60h] unsigned __int8 v14; // [rsp+27h] [rbp-51h] unsigned __int8 v15; // [rsp+27h] [rbp-51h] _BYTE *v16; // [rsp+28h] [rbp-50h] unsigned int v17; // [rsp+30h] [rbp-48h] unsigned long long v18; // [rsp+34h] [rbp-44h] int v19; // [rsp+3Ch] [rbp-3Ch] *a6 = 0; v16 = a2; v12 = &a2[a3]; while ( 1 ) { v10 = 0; if ( v16 < v12 ) v10 = (*(_BYTE *)(*(_QWORD *)(a1 + 64) + (unsigned __int8)*v16 + 1LL) & 8) != 0; if ( !v10 ) break; ++v16; } if ( v16 == v12 ) goto LABEL_45; if ( *v16 == 45 ) { v19 = 1; ++v16; } else { v19 = 0; if ( *v16 == 43 ) ++v16; } v13 = v16; v11 = 0; v17 = 0; v14 = *v16; while ( v16 != v12 ) { if ( v14 < 0x30u || v14 > 0x39u ) { if ( v14 < 0x41u || v14 > 0x5Au ) { if ( v14 < 0x61u || v14 > 0x7Au ) break; v15 = v14 - 97 + 10; } else { v15 = v14 - 65 + 10; } } else { v15 = v14 - 48; } if ( v15 >= a4 ) break; LODWORD(v18) = 0xFFFFFFFF % a4; HIDWORD(v18) = 0xFFFFFFFF / a4; if ( __PAIR64__(v17, v15) <= v18 ) v17 = v17 * a4 + v15; else v11 = 1; v6 = v16++; v14 = v6[1]; } if ( v16 == v13 ) { LABEL_45: *a6 = 33; if ( a5 ) *a5 = a2; return 0LL; } else { if ( a5 ) *a5 = v16; if ( v19 ) { if ( v17 > 0x80000000 ) v11 = 1; } else if ( v17 > 0x7FFFFFFFuLL ) { v11 = 1; } if ( v11 ) { *a6 = 34; v7 = 0x7FFFFFFFLL; if ( v19 ) return 0xFFFFFFFF80000000LL; return v7; } else if ( v19 ) { return -(long long)v17; } else { return v17; } } }
my_strntol_8bit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x68],RAX LAB_001a2729: MOV RCX,qword ptr [RBP + -0x50] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x68] MOV byte ptr [RBP + -0x6d],AL JNC 0x001a2758 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x50] MOVZX ECX,byte ptr [RCX] MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1] AND EAX,0x8 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x6d],AL LAB_001a2758: MOV AL,byte ptr [RBP + -0x6d] TEST AL,0x1 JNZ 0x001a2761 JMP 0x001a2771 LAB_001a2761: JMP 0x001a2763 LAB_001a2763: MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX JMP 0x001a2729 LAB_001a2771: MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x68] JNZ 0x001a2780 JMP 0x001a2975 LAB_001a2780: MOV RAX,qword ptr [RBP + -0x50] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2d JNZ 0x001a27a1 MOV dword ptr [RBP + -0x3c],0x1 MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX JMP 0x001a27cb LAB_001a27a1: MOV RAX,qword ptr [RBP + -0x50] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2b JNZ 0x001a27c2 MOV dword ptr [RBP + -0x3c],0x0 MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX JMP 0x001a27c9 LAB_001a27c2: MOV dword ptr [RBP + -0x3c],0x0 LAB_001a27c9: JMP 0x001a27cb LAB_001a27cb: MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x60],RAX MOV EAX,0xffffffff XOR EDX,EDX DIV dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x40],EAX MOV EAX,0xffffffff XOR EDX,EDX DIV dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x44],EDX MOV dword ptr [RBP + -0x6c],0x0 MOV dword ptr [RBP + -0x48],0x0 MOV RAX,qword ptr [RBP + -0x50] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x51],AL LAB_001a2804: MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x68] JZ 0x001a28d5 MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,0x30 JL 0x001a2830 MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,0x39 JG 0x001a2830 MOVZX EAX,byte ptr [RBP + -0x51] SUB EAX,0x30 MOV byte ptr [RBP + -0x51],AL JMP 0x001a2878 LAB_001a2830: MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,0x41 JL 0x001a2851 MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,0x5a JG 0x001a2851 MOVZX EAX,byte ptr [RBP + -0x51] SUB EAX,0x41 ADD EAX,0xa MOV byte ptr [RBP + -0x51],AL JMP 0x001a2876 LAB_001a2851: MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,0x61 JL 0x001a2872 MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,0x7a JG 0x001a2872 MOVZX EAX,byte ptr [RBP + -0x51] SUB EAX,0x61 ADD EAX,0xa MOV byte ptr [RBP + -0x51],AL JMP 0x001a2874 LAB_001a2872: JMP 0x001a28d5 LAB_001a2874: JMP 0x001a2876 LAB_001a2876: JMP 0x001a2878 LAB_001a2878: MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,dword ptr [RBP + -0x24] JL 0x001a2883 JMP 0x001a28d5 LAB_001a2883: MOV EAX,dword ptr [RBP + -0x48] CMP EAX,dword ptr [RBP + -0x40] JA 0x001a289c MOV EAX,dword ptr [RBP + -0x48] CMP EAX,dword ptr [RBP + -0x40] JNZ 0x001a28a5 MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,dword ptr [RBP + -0x44] JBE 0x001a28a5 LAB_001a289c: MOV dword ptr [RBP + -0x6c],0x1 JMP 0x001a28b9 LAB_001a28a5: MOV EAX,dword ptr [RBP + -0x24] IMUL EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x48],EAX MOVZX EAX,byte ptr [RBP + -0x51] ADD EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x48],EAX LAB_001a28b9: JMP 0x001a28bb LAB_001a28bb: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x50],RCX MOV AL,byte ptr [RAX + 0x1] MOV byte ptr [RBP + -0x51],AL JMP 0x001a2804 LAB_001a28d5: MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x60] JNZ 0x001a28e4 JMP 0x001a2975 LAB_001a28e4: CMP qword ptr [RBP + -0x30],0x0 JZ 0x001a28f6 MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_001a28f6: CMP dword ptr [RBP + -0x3c],0x0 JZ 0x001a290e CMP dword ptr [RBP + -0x48],0x80000000 JBE 0x001a290c MOV dword ptr [RBP + -0x6c],0x1 LAB_001a290c: JMP 0x001a2922 LAB_001a290e: MOV EAX,dword ptr [RBP + -0x48] CMP RAX,0x7fffffff JLE 0x001a2920 MOV dword ptr [RBP + -0x6c],0x1 LAB_001a2920: JMP 0x001a2922 LAB_001a2922: CMP dword ptr [RBP + -0x6c],0x0 JZ 0x001a294e MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x22 MOV EDX,dword ptr [RBP + -0x3c] MOV EAX,0x7fffffff MOV RCX,-0x80000000 CMP EDX,0x0 CMOVNZ RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x001a2999 LAB_001a294e: CMP dword ptr [RBP + -0x3c],0x0 JZ 0x001a2964 MOV EAX,dword ptr [RBP + -0x48] MOV ECX,EAX XOR EAX,EAX SUB RAX,RCX MOV qword ptr [RBP + -0x78],RAX JMP 0x001a296b LAB_001a2964: MOV EAX,dword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x78],RAX LAB_001a296b: MOV RAX,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x8],RAX JMP 0x001a2999 LAB_001a2975: MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x21 CMP qword ptr [RBP + -0x30],0x0 JZ 0x001a2991 MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_001a2991: MOV qword ptr [RBP + -0x8],0x0 LAB_001a2999: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
ulong my_strntol_8bit(long param_1,byte *param_2,long param_3,uint param_4,int8 *param_5, int4 *param_6) { bool bVar1; byte *pbVar2; uint uVar3; byte *pbVar4; bool bVar5; ulong local_80; byte local_59; byte *local_58; uint local_50; *param_6 = 0; pbVar4 = param_2 + param_3; local_58 = param_2; while( true ) { bVar5 = false; if (local_58 < pbVar4) { bVar5 = (*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*local_58) & 8) != 0; } if (!bVar5) break; local_58 = local_58 + 1; } if (local_58 != pbVar4) { if (*local_58 == 0x2d) { bVar5 = true; local_58 = local_58 + 1; } else { if (*local_58 == 0x2b) { local_58 = local_58 + 1; } bVar5 = false; } pbVar2 = local_58; uVar3 = (uint)(0xffffffff / (ulong)param_4); bVar1 = false; local_50 = 0; local_59 = *local_58; for (; local_58 != pbVar4; local_58 = local_58 + 1) { if ((local_59 < 0x30) || (0x39 < local_59)) { if ((local_59 < 0x41) || (0x5a < local_59)) { if ((local_59 < 0x61) || (0x7a < local_59)) break; local_59 = local_59 + 0xa9; } else { local_59 = local_59 - 0x37; } } else { local_59 = local_59 - 0x30; } if ((int)param_4 <= (int)(uint)local_59) break; if ((uVar3 < local_50) || ((local_50 == uVar3 && ((uint)(0xffffffff % (ulong)param_4) < (uint)local_59)))) { bVar1 = true; } else { local_50 = (uint)local_59 + param_4 * local_50; } local_59 = local_58[1]; } if (local_58 != pbVar2) { if (param_5 != (int8 *)0x0) { *param_5 = local_58; } if (bVar5) { if (0x80000000 < local_50) { bVar1 = true; } } else if (0x7fffffff < local_50) { bVar1 = true; } if (bVar1) { *param_6 = 0x22; if (!bVar5) { return 0x7fffffff; } return 0xffffffff80000000; } if (bVar5) { local_80 = -(ulong)local_50; } else { local_80 = (ulong)local_50; } return local_80; } } *param_6 = 0x21; if (param_5 != (int8 *)0x0) { *param_5 = param_2; } return 0; }
51,038
minja::Value::contains(minja::Value const&) const
monkey531[P]llama/common/minja.hpp
bool contains(const Value & value) const { if (is_null()) throw std::runtime_error("Undefined value or reference"); if (array_) { for (const auto& item : *array_) { if (item.to_bool() && item == value) return true; } return false; } else if (object_) { if (!value.is_hashable()) throw std::runtime_error("Unashable type: " + value.dump()); return object_->find(value.primitive_) != object_->end(); } else { throw std::runtime_error("contains can only be called on arrays and objects: " + dump()); } }
O3
cpp
minja::Value::contains(minja::Value const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rsi, %rbx movq %rdi, %r15 movq 0x10(%rdi), %rax movq 0x20(%rdi), %r12 testq %r12, %r12 jne 0x932ba testq %rax, %rax jne 0x932ba cmpb $0x0, 0x40(%r15) jne 0x932ba cmpq $0x0, 0x30(%r15) je 0x9336a testq %rax, %rax je 0x932f0 movq (%rax), %r14 movq 0x8(%rax), %r15 cmpq %r15, %r14 je 0x932ec movq %r14, %rdi callq 0x85f1e testb %al, %al je 0x932e6 movq %r14, %rdi movq %rbx, %rsi callq 0x94798 testb %al, %al jne 0x9335b addq $0x50, %r14 jmp 0x932c6 xorl %eax, %eax jmp 0x9335d testq %r12, %r12 je 0x9339c cmpq $0x0, 0x10(%rbx) jne 0x933f9 cmpq $0x0, 0x20(%rbx) jne 0x933f9 cmpq $0x0, 0x30(%rbx) jne 0x933f9 movq (%r12), %r14 cmpq 0x8(%r12), %r14 je 0x93350 addq $0x40, %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x8d000 testb %al, %al jne 0x93343 addq $0x60, %r14 cmpq 0x8(%r12), %r14 jne 0x93329 movq %r14, %rax movq 0x20(%r15), %rcx movq 0x8(%rcx), %r14 jmp 0x93353 movq %r14, %rax cmpq %r14, %rax setne %al jmp 0x9335d movb $0x1, %al addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x1b440 movq %rax, %r14 leaq 0x5e78c(%rip), %rsi # 0xf1b0a movq %rax, %rdi callq 0x1b320 movq 0x9ac5b(%rip), %rsi # 0x12dfe8 movq 0x9abbc(%rip), %rdx # 0x12df50 movq %r14, %rdi callq 0x1bef0 movl $0x10, %edi callq 0x1b440 movq %rax, %r14 movq %rsp, %rdi movq %r15, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x86334 leaq 0x5f1fc(%rip), %rsi # 0xf25be leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0x78ac9 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x1be00 xorl %ebp, %ebp movq 0x9ac00(%rip), %rsi # 0x12dfe8 movq 0x9ab61(%rip), %rdx # 0x12df50 movq %r14, %rdi callq 0x1bef0 jmp 0x93454 movl $0x10, %edi callq 0x1b440 movq %rax, %r14 movq %rsp, %rdi movq %rbx, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x86334 leaq 0x5ecef(%rip), %rsi # 0xf210e leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0x78ac9 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x1be00 xorl %ebp, %ebp movq 0x9aba3(%rip), %rsi # 0x12dfe8 movq 0x9ab04(%rip), %rdx # 0x12df50 movq %r14, %rdi callq 0x1bef0 jmp 0x93458 jmp 0x93498 movq %rax, %rbx leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x93476 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b8b0 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x93491 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8b0 testb %bpl, %bpl jne 0x934bf jmp 0x934c7 movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x934bf movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8b0 jmp 0x934bf jmp 0x934bc jmp 0x934bc movq %rax, %rbx movq %r14, %rdi callq 0x1b650 movq %rbx, %rdi callq 0x1bf70 nop
_ZNK5minja5Value8containsERKS0_: push rbp push r15 push r14 push r12 push rbx sub rsp, 40h mov rbx, rsi mov r15, rdi mov rax, [rdi+10h] mov r12, [rdi+20h] test r12, r12 jnz short loc_932BA test rax, rax jnz short loc_932BA cmp byte ptr [r15+40h], 0 jnz short loc_932BA cmp qword ptr [r15+30h], 0 jz loc_9336A loc_932BA: test rax, rax jz short loc_932F0 mov r14, [rax] mov r15, [rax+8] loc_932C6: cmp r14, r15 jz short loc_932EC mov rdi, r14; this call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void) test al, al jz short loc_932E6 mov rdi, r14 mov rsi, rbx call _ZNK5minja5ValueeqERKS0_; minja::Value::operator==(minja::Value const&) test al, al jnz short loc_9335B loc_932E6: add r14, 50h ; 'P' jmp short loc_932C6 loc_932EC: xor eax, eax jmp short loc_9335D loc_932F0: test r12, r12 jz loc_9339C cmp qword ptr [rbx+10h], 0 jnz loc_933F9 cmp qword ptr [rbx+20h], 0 jnz loc_933F9 cmp qword ptr [rbx+30h], 0 jnz loc_933F9 mov r14, [r12] cmp r14, [r12+8] jz short loc_93350 add rbx, 40h ; '@' loc_93329: mov rdi, r14 mov rsi, rbx 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&) test al, al jnz short loc_93343 add r14, 60h ; '`' cmp r14, [r12+8] jnz short loc_93329 loc_93343: mov rax, r14 mov rcx, [r15+20h] mov r14, [rcx+8] jmp short loc_93353 loc_93350: mov rax, r14 loc_93353: cmp rax, r14 setnz al jmp short loc_9335D loc_9335B: mov al, 1 loc_9335D: add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_9336A: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aUndefinedValue; "Undefined value or reference" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_9339C: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax mov rdi, rsp mov rsi, r15 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aContainsCanOnl; "contains can only be called on arrays a"... lea rdi, [rsp+68h+var_48] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+68h+var_48] mov rdi, r14 call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short loc_93454 loc_933F9: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax mov rdi, rsp mov rsi, rbx mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aUnashableType; "Unashable type: " lea rdi, [rsp+68h+var_48] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+68h+var_48] mov rdi, r14 call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_93454: jmp short loc_93458 jmp short loc_93498 loc_93458: mov rbx, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_93476 mov rsi, [rsp+68h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_93476: lea rax, [rsp+68h+var_58] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_93491 mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_93491: test bpl, bpl jnz short loc_934BF jmp short loc_934C7 loc_93498: mov rbx, rax lea rax, [rsp+68h+var_58] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_934BF mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_934BF jmp short loc_934BC jmp short $+2 loc_934BC: mov rbx, rax loc_934BF: mov rdi, r14; void * call ___cxa_free_exception loc_934C7: mov rdi, rbx call __Unwind_Resume
bool minja::Value::contains(minja::Value *this, const minja::Value *a2, __m128d a3) { minja::Value **v3; // rax unsigned __int8 **v4; // r12 minja::Value *v5; // r14 minja::Value *v6; // r15 unsigned __int8 *v8; // r14 unsigned __int8 *v9; // rax std::runtime_error *exception; // r14 void *v11; // r14 void *v12; // r14 _BYTE v13[16]; // [rsp+0h] [rbp-68h] BYREF _BYTE v14[16]; // [rsp+20h] [rbp-48h] BYREF v3 = (minja::Value **)*((_QWORD *)this + 2); v4 = (unsigned __int8 **)*((_QWORD *)this + 4); if ( !v4 && !v3 && !*((_BYTE *)this + 64) && !*((_QWORD *)this + 6) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Undefined value or reference"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( v3 ) { v5 = *v3; v6 = v3[1]; while ( 1 ) { if ( v5 == v6 ) return 0; if ( (unsigned __int8)minja::Value::to_bool(v5) && (unsigned __int8)minja::Value::operator==(v5, a2) ) break; v5 = (minja::Value *)((char *)v5 + 80); } return 1; } else { if ( !v4 ) { v11 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v13, (long long)this, 0xFFFFFFFF, 0); std::operator+<char>((long long)v14, (long long)"contains can only be called on arrays and objects: ", (long long)v13); std::runtime_error::runtime_error(v11, v14); __cxa_throw( v11, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( *((_QWORD *)a2 + 2) || *((_QWORD *)a2 + 4) || *((_QWORD *)a2 + 6) ) { v12 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v13, (long long)a2, 0xFFFFFFFF, 0); std::operator+<char>((long long)v14, (long long)"Unashable type: ", (long long)v13); std::runtime_error::runtime_error(v12, v14); __cxa_throw( v12, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v8 = *v4; if ( *v4 == v4[1] ) { v9 = *v4; } else { do { if ( (unsigned __int8)nlohmann::json_abi_v3_11_3::operator==(v8, (unsigned __int8 *)a2 + 64, a3) ) break; v8 += 96; } while ( v8 != v4[1] ); v9 = v8; v8 = *(unsigned __int8 **)(*((_QWORD *)this + 4) + 8LL); } return v9 != v8; } }
contains: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV RBX,RSI MOV R15,RDI MOV RAX,qword ptr [RDI + 0x10] MOV R12,qword ptr [RDI + 0x20] TEST R12,R12 JNZ 0x001932ba TEST RAX,RAX JNZ 0x001932ba CMP byte ptr [R15 + 0x40],0x0 JNZ 0x001932ba CMP qword ptr [R15 + 0x30],0x0 JZ 0x0019336a LAB_001932ba: TEST RAX,RAX JZ 0x001932f0 MOV R14,qword ptr [RAX] MOV R15,qword ptr [RAX + 0x8] LAB_001932c6: CMP R14,R15 JZ 0x001932ec MOV RDI,R14 CALL 0x00185f1e TEST AL,AL JZ 0x001932e6 MOV RDI,R14 MOV RSI,RBX CALL 0x00194798 TEST AL,AL JNZ 0x0019335b LAB_001932e6: ADD R14,0x50 JMP 0x001932c6 LAB_001932ec: XOR EAX,EAX JMP 0x0019335d LAB_001932f0: TEST R12,R12 JZ 0x0019339c CMP qword ptr [RBX + 0x10],0x0 JNZ 0x001933f9 CMP qword ptr [RBX + 0x20],0x0 JNZ 0x001933f9 CMP qword ptr [RBX + 0x30],0x0 JNZ 0x001933f9 MOV R14,qword ptr [R12] CMP R14,qword ptr [R12 + 0x8] JZ 0x00193350 ADD RBX,0x40 LAB_00193329: MOV RDI,R14 MOV RSI,RBX CALL 0x0018d000 TEST AL,AL JNZ 0x00193343 ADD R14,0x60 CMP R14,qword ptr [R12 + 0x8] JNZ 0x00193329 LAB_00193343: MOV RAX,R14 MOV RCX,qword ptr [R15 + 0x20] MOV R14,qword ptr [RCX + 0x8] JMP 0x00193353 LAB_00193350: MOV RAX,R14 LAB_00193353: CMP RAX,R14 SETNZ AL JMP 0x0019335d LAB_0019335b: MOV AL,0x1 LAB_0019335d: ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0019336a: MOV EDI,0x10 CALL 0x0011b440 MOV R14,RAX LAB_00193377: LEA RSI,[0x1f1b0a] MOV RDI,RAX CALL 0x0011b320 LAB_00193386: MOV RSI,qword ptr [0x0022dfe8] MOV RDX,qword ptr [0x0022df50] MOV RDI,R14 CALL 0x0011bef0 LAB_0019339c: MOV EDI,0x10 CALL 0x0011b440 MOV R14,RAX LAB_001933a9: MOV RDI,RSP MOV RSI,R15 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x00186334 LAB_001933bb: LEA RSI,[0x1f25be] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x00178ac9 MOV BPL,0x1 LAB_001933d2: LEA RSI,[RSP + 0x20] MOV RDI,R14 CALL 0x0011be00 XOR EBP,EBP MOV RSI,qword ptr [0x0022dfe8] MOV RDX,qword ptr [0x0022df50] MOV RDI,R14 CALL 0x0011bef0 LAB_001933f9: MOV EDI,0x10 CALL 0x0011b440 MOV R14,RAX LAB_00193406: MOV RDI,RSP MOV RSI,RBX MOV EDX,0xffffffff XOR ECX,ECX CALL 0x00186334 LAB_00193418: LEA RSI,[0x1f210e] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x00178ac9 MOV BPL,0x1 LAB_0019342f: LEA RSI,[RSP + 0x20] MOV RDI,R14 CALL 0x0011be00 XOR EBP,EBP MOV RSI,qword ptr [0x0022dfe8] MOV RDX,qword ptr [0x0022df50] MOV RDI,R14 CALL 0x0011bef0
/* minja::Value::contains(minja::Value const&) const */ bool __thiscall minja::Value::contains(Value *this,Value *param_1) { int8 *puVar1; long *plVar2; Value *pVVar3; char cVar4; runtime_error *prVar5; Value *this_00; basic_json *pbVar6; basic_json *pbVar7; bool bVar8; int1 auStack_68 [32]; string local_48 [32]; puVar1 = *(int8 **)(this + 0x10); plVar2 = *(long **)(this + 0x20); if ((((plVar2 == (long *)0x0) && (puVar1 == (int8 *)0x0)) && (this[0x40] == (Value)0x0)) && (*(long *)(this + 0x30) == 0)) { prVar5 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00193377 to 00193385 has its CatchHandler @ 001934bc */ std::runtime_error::runtime_error(prVar5,"Undefined value or reference"); /* WARNING: Subroutine does not return */ __cxa_throw(prVar5,PTR_typeinfo_0022dfe8,PTR__runtime_error_0022df50); } if (puVar1 == (int8 *)0x0) { if (plVar2 == (long *)0x0) { prVar5 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001933a9 to 001933ba has its CatchHandler @ 001934ba */ dump_abi_cxx11_((int)auStack_68,SUB81(this,0)); /* try { // try from 001933bb to 001933ce has its CatchHandler @ 00193498 */ std::operator+((char *)local_48, (string *)"contains can only be called on arrays and objects: "); /* try { // try from 001933d2 to 001933f6 has its CatchHandler @ 00193458 */ std::runtime_error::runtime_error(prVar5,local_48); /* WARNING: Subroutine does not return */ __cxa_throw(prVar5,PTR_typeinfo_0022dfe8,PTR__runtime_error_0022df50); } if (((*(long *)(param_1 + 0x10) != 0) || (*(long *)(param_1 + 0x20) != 0)) || (*(long *)(param_1 + 0x30) != 0)) { prVar5 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00193406 to 00193417 has its CatchHandler @ 001934b8 */ dump_abi_cxx11_((int)auStack_68,SUB81(param_1,0)); /* try { // try from 00193418 to 0019342b has its CatchHandler @ 00193456 */ std::operator+((char *)local_48,(string *)"Unashable type: "); /* try { // try from 0019342f to 00193453 has its CatchHandler @ 00193454 */ std::runtime_error::runtime_error(prVar5,local_48); /* WARNING: Subroutine does not return */ __cxa_throw(prVar5,PTR_typeinfo_0022dfe8,PTR__runtime_error_0022df50); } pbVar6 = (basic_json *)*plVar2; pbVar7 = pbVar6; if (pbVar6 != (basic_json *)plVar2[1]) { do { cVar4 = nlohmann::json_abi_v3_11_3::operator==(pbVar6,(basic_json *)(param_1 + 0x40)); if (cVar4 != '\0') break; pbVar6 = pbVar6 + 0x60; } while (pbVar6 != (basic_json *)plVar2[1]); pbVar7 = *(basic_json **)(*(long *)(this + 0x20) + 8); } bVar8 = pbVar6 != pbVar7; } else { pVVar3 = (Value *)puVar1[1]; for (this_00 = (Value *)*puVar1; this_00 != pVVar3; this_00 = this_00 + 0x50) { cVar4 = to_bool(this_00); if ((cVar4 != '\0') && (cVar4 = operator==(this_00,param_1), cVar4 != '\0')) { return true; } } bVar8 = false; } return bVar8; }
51,039
countMaxEdge
aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_island.c
static int countMaxEdge(const mjModel* m, const mjData* d) { int nedge_max = 0; nedge_max += 2*d->ncon; // contact: 2 edges nedge_max += 2*d->ne; // equality: 2 edges nedge_max += d->nl; // limit: 1 edges (always within same tree) nedge_max += d->nf; // joint friction: 1 edge (always within same tree) // tendon limits and friction add up to tendon_num edges for (int i=0; i < m->ntendon; i++) { if (m->tendon_frictionloss[i]) { nedge_max += m->tendon_num[i]; } if (m->tendon_limited[i]) { nedge_max += m->tendon_num[i]; } } return nedge_max; }
O0
c
countMaxEdge: movq %rdi, -0x8(%rsp) movq %rsi, -0x10(%rsp) movl $0x0, -0x14(%rsp) movq -0x10(%rsp), %rax movl 0x27744(%rax), %eax shll %eax addl -0x14(%rsp), %eax movl %eax, -0x14(%rsp) movq -0x10(%rsp), %rax movl 0x27730(%rax), %eax shll %eax addl -0x14(%rsp), %eax movl %eax, -0x14(%rsp) movq -0x10(%rsp), %rax movl 0x27738(%rax), %eax addl -0x14(%rsp), %eax movl %eax, -0x14(%rsp) movq -0x10(%rsp), %rax movl 0x27734(%rax), %eax addl -0x14(%rsp), %eax movl %eax, -0x14(%rsp) movl $0x0, -0x18(%rsp) movl -0x18(%rsp), %eax movq -0x8(%rsp), %rcx cmpl 0xa4(%rcx), %eax jge 0x93104 movq -0x8(%rsp), %rax movq 0xde0(%rax), %rax movslq -0x18(%rsp), %rcx vmovsd (%rax,%rcx,8), %xmm0 vxorps %xmm1, %xmm1, %xmm1 vucomisd %xmm1, %xmm0 jne 0x930a3 jp 0x930a3 jmp 0x930bf movq -0x8(%rsp), %rax movq 0xd78(%rax), %rax movslq -0x18(%rsp), %rcx movl (%rax,%rcx,4), %eax addl -0x14(%rsp), %eax movl %eax, -0x14(%rsp) movq -0x8(%rsp), %rax movq 0xd90(%rax), %rax movslq -0x18(%rsp), %rcx cmpb $0x0, (%rax,%rcx) je 0x930f2 movq -0x8(%rsp), %rax movq 0xd78(%rax), %rax movslq -0x18(%rsp), %rcx movl (%rax,%rcx,4), %eax addl -0x14(%rsp), %eax movl %eax, -0x14(%rsp) jmp 0x930f4 movl -0x18(%rsp), %eax addl $0x1, %eax movl %eax, -0x18(%rsp) jmp 0x9306a movl -0x14(%rsp), %eax retq nopl (%rax)
countMaxEdge: mov [rsp+var_8], rdi mov [rsp+var_10], rsi mov [rsp+var_14], 0 mov rax, [rsp+var_10] mov eax, [rax+27744h] shl eax, 1 add eax, [rsp+var_14] mov [rsp+var_14], eax mov rax, [rsp+var_10] mov eax, [rax+27730h] shl eax, 1 add eax, [rsp+var_14] mov [rsp+var_14], eax mov rax, [rsp+var_10] mov eax, [rax+27738h] add eax, [rsp+var_14] mov [rsp+var_14], eax mov rax, [rsp+var_10] mov eax, [rax+27734h] add eax, [rsp+var_14] mov [rsp+var_14], eax mov [rsp+var_18], 0 loc_9306A: mov eax, [rsp+var_18] mov rcx, [rsp+var_8] cmp eax, [rcx+0A4h] jge loc_93104 mov rax, [rsp+var_8] mov rax, [rax+0DE0h] movsxd rcx, [rsp+var_18] vmovsd xmm0, qword ptr [rax+rcx*8] vxorps xmm1, xmm1, xmm1 vucomisd xmm0, xmm1 jnz short loc_930A3 jp short loc_930A3 jmp short loc_930BF loc_930A3: mov rax, [rsp+var_8] mov rax, [rax+0D78h] movsxd rcx, [rsp+var_18] mov eax, [rax+rcx*4] add eax, [rsp+var_14] mov [rsp+var_14], eax loc_930BF: mov rax, [rsp+var_8] mov rax, [rax+0D90h] movsxd rcx, [rsp+var_18] cmp byte ptr [rax+rcx], 0 jz short loc_930F2 mov rax, [rsp+var_8] mov rax, [rax+0D78h] movsxd rcx, [rsp+var_18] mov eax, [rax+rcx*4] add eax, [rsp+var_14] mov [rsp+var_14], eax loc_930F2: jmp short $+2 loc_930F4: mov eax, [rsp+var_18] add eax, 1 mov [rsp+var_18], eax jmp loc_9306A loc_93104: mov eax, [rsp+var_14] retn
long long countMaxEdge(long long a1, _DWORD *a2, double a3, __m128 _XMM1) { int i; // [rsp+0h] [rbp-18h] unsigned int v9; // [rsp+4h] [rbp-14h] v9 = 2 * a2[40401] + 2 * a2[40396] + a2[40398] + a2[40397]; for ( i = 0; i < *(_DWORD *)(a1 + 164); ++i ) { _RAX = *(_QWORD *)(a1 + 3552); _RCX = i; __asm { vmovsd xmm0, qword ptr [rax+rcx*8] vxorps xmm1, xmm1, xmm1 vucomisd xmm0, xmm1 } if ( i != *(_DWORD *)(a1 + 164) || __SETP__(i, *(_DWORD *)(a1 + 164)) ) v9 += *(_DWORD *)(*(_QWORD *)(a1 + 3448) + 4LL * i); if ( *(_BYTE *)(*(_QWORD *)(a1 + 3472) + i) ) v9 += *(_DWORD *)(*(_QWORD *)(a1 + 3448) + 4LL * i); } return v9; }
countMaxEdge: MOV qword ptr [RSP + -0x8],RDI MOV qword ptr [RSP + -0x10],RSI MOV dword ptr [RSP + -0x14],0x0 MOV RAX,qword ptr [RSP + -0x10] MOV EAX,dword ptr [RAX + 0x27744] SHL EAX,0x1 ADD EAX,dword ptr [RSP + -0x14] MOV dword ptr [RSP + -0x14],EAX MOV RAX,qword ptr [RSP + -0x10] MOV EAX,dword ptr [RAX + 0x27730] SHL EAX,0x1 ADD EAX,dword ptr [RSP + -0x14] MOV dword ptr [RSP + -0x14],EAX MOV RAX,qword ptr [RSP + -0x10] MOV EAX,dword ptr [RAX + 0x27738] ADD EAX,dword ptr [RSP + -0x14] MOV dword ptr [RSP + -0x14],EAX MOV RAX,qword ptr [RSP + -0x10] MOV EAX,dword ptr [RAX + 0x27734] ADD EAX,dword ptr [RSP + -0x14] MOV dword ptr [RSP + -0x14],EAX MOV dword ptr [RSP + -0x18],0x0 LAB_0019306a: MOV EAX,dword ptr [RSP + -0x18] MOV RCX,qword ptr [RSP + -0x8] CMP EAX,dword ptr [RCX + 0xa4] JGE 0x00193104 MOV RAX,qword ptr [RSP + -0x8] MOV RAX,qword ptr [RAX + 0xde0] MOVSXD RCX,dword ptr [RSP + -0x18] VMOVSD XMM0,qword ptr [RAX + RCX*0x8] VXORPS XMM1,XMM1,XMM1 VUCOMISD XMM0,XMM1 JNZ 0x001930a3 JP 0x001930a3 JMP 0x001930bf LAB_001930a3: MOV RAX,qword ptr [RSP + -0x8] MOV RAX,qword ptr [RAX + 0xd78] MOVSXD RCX,dword ptr [RSP + -0x18] MOV EAX,dword ptr [RAX + RCX*0x4] ADD EAX,dword ptr [RSP + -0x14] MOV dword ptr [RSP + -0x14],EAX LAB_001930bf: MOV RAX,qword ptr [RSP + -0x8] MOV RAX,qword ptr [RAX + 0xd90] MOVSXD RCX,dword ptr [RSP + -0x18] CMP byte ptr [RAX + RCX*0x1],0x0 JZ 0x001930f2 MOV RAX,qword ptr [RSP + -0x8] MOV RAX,qword ptr [RAX + 0xd78] MOVSXD RCX,dword ptr [RSP + -0x18] MOV EAX,dword ptr [RAX + RCX*0x4] ADD EAX,dword ptr [RSP + -0x14] MOV dword ptr [RSP + -0x14],EAX LAB_001930f2: JMP 0x001930f4 LAB_001930f4: MOV EAX,dword ptr [RSP + -0x18] ADD EAX,0x1 MOV dword ptr [RSP + -0x18],EAX JMP 0x0019306a LAB_00193104: MOV EAX,dword ptr [RSP + -0x14] RET
int countMaxEdge(long param_1,long param_2) { double dVar1; int4 local_18; int4 local_14; local_14 = *(int *)(param_2 + 0x27734) + *(int *)(param_2 + 0x27738) + *(int *)(param_2 + 0x27730) * 2 + *(int *)(param_2 + 0x27744) * 2; for (local_18 = 0; local_18 < *(int *)(param_1 + 0xa4); local_18 = local_18 + 1) { dVar1 = *(double *)(*(long *)(param_1 + 0xde0) + (long)local_18 * 8); if ((dVar1 != 0.0) || (NAN(dVar1))) { local_14 = *(int *)(*(long *)(param_1 + 0xd78) + (long)local_18 * 4) + local_14; } if (*(char *)(*(long *)(param_1 + 0xd90) + (long)local_18) != '\0') { local_14 = *(int *)(*(long *)(param_1 + 0xd78) + (long)local_18 * 4) + local_14; } } return local_14; }
51,040
CLI::App::check_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
MikePodsytnik[P]TCRtrie/build_O0/_deps/cli11-src/include/CLI/impl/App_inl.hpp
CLI11_NODISCARD CLI11_INLINE bool App::check_name(std::string name_to_check) const { std::string local_name = name_; if(ignore_underscore_) { local_name = detail::remove_underscore(name_); name_to_check = detail::remove_underscore(name_to_check); } if(ignore_case_) { local_name = detail::to_lower(name_); name_to_check = detail::to_lower(name_to_check); } if(local_name == name_to_check) { return true; } for(auto les : aliases_) { // NOLINT(performance-for-range-copy) if(ignore_underscore_) { les = detail::remove_underscore(les); } if(ignore_case_) { les = detail::to_lower(les); } if(les == name_to_check) { return true; } } return false; }
O0
cpp
CLI::App::check_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const: pushq %rbp movq %rsp, %rbp subq $0x230, %rsp # imm = 0x230 movq %rsi, -0x218(%rbp) movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rsi movq %rsi, -0x210(%rbp) addq $0x8, %rsi leaq -0x38(%rbp), %rdi callq 0x9250 movq -0x210(%rbp), %rax testb $0x1, 0x299(%rax) je 0x385bc movq -0x210(%rbp), %rsi addq $0x8, %rsi leaq -0x78(%rbp), %rdi callq 0x9250 jmp 0x384dc leaq -0x58(%rbp), %rdi leaq -0x78(%rbp), %rsi callq 0x1ebc0 jmp 0x384eb leaq -0x38(%rbp), %rdi leaq -0x58(%rbp), %rsi movq %rsi, -0x220(%rbp) callq 0x9790 movq -0x220(%rbp), %rdi callq 0x9b90 leaq -0x78(%rbp), %rdi callq 0x9b90 movq -0x218(%rbp), %rsi leaq -0xc8(%rbp), %rdi callq 0x9250 jmp 0x38529 leaq -0xa8(%rbp), %rdi leaq -0xc8(%rbp), %rsi callq 0x1ebc0 jmp 0x3853e movq -0x218(%rbp), %rdi leaq -0xa8(%rbp), %rsi callq 0x9790 leaq -0xa8(%rbp), %rdi callq 0x9b90 leaq -0xc8(%rbp), %rdi callq 0x9b90 jmp 0x385bc movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) jmp 0x38914 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) leaq -0x78(%rbp), %rdi callq 0x9b90 jmp 0x38914 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) leaq -0xc8(%rbp), %rdi callq 0x9b90 jmp 0x38914 movq -0x210(%rbp), %rax testb $0x1, 0x298(%rax) je 0x386c4 movq -0x210(%rbp), %rsi addq $0x8, %rsi leaq -0x108(%rbp), %rdi callq 0x9250 jmp 0x385e9 leaq -0xe8(%rbp), %rdi leaq -0x108(%rbp), %rsi callq 0x1eb40 jmp 0x385fe leaq -0x38(%rbp), %rdi leaq -0xe8(%rbp), %rsi movq %rsi, -0x228(%rbp) callq 0x9790 movq -0x228(%rbp), %rdi callq 0x9b90 leaq -0x108(%rbp), %rdi callq 0x9b90 movq -0x218(%rbp), %rsi leaq -0x148(%rbp), %rdi callq 0x9250 jmp 0x38642 leaq -0x128(%rbp), %rdi leaq -0x148(%rbp), %rsi callq 0x1eb40 jmp 0x38657 movq -0x218(%rbp), %rdi leaq -0x128(%rbp), %rsi callq 0x9790 leaq -0x128(%rbp), %rdi callq 0x9b90 leaq -0x148(%rbp), %rdi callq 0x9b90 jmp 0x386c4 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) leaq -0x108(%rbp), %rdi callq 0x9b90 jmp 0x38914 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) leaq -0x148(%rbp), %rdi callq 0x9b90 jmp 0x38914 movq -0x218(%rbp), %rsi leaq -0x38(%rbp), %rdi callq 0x19900 testb $0x1, %al jne 0x386da jmp 0x386ed movb $0x1, -0x1(%rbp) movl $0x1, -0x14c(%rbp) jmp 0x388fd movq -0x210(%rbp), %rax addq $0x2f0, %rax # imm = 0x2F0 movq %rax, -0x158(%rbp) movq -0x158(%rbp), %rdi callq 0x1b060 movq %rax, -0x160(%rbp) movq -0x158(%rbp), %rdi callq 0x1b090 movq %rax, -0x168(%rbp) leaq -0x160(%rbp), %rdi leaq -0x168(%rbp), %rsi callq 0x1b0c0 testb $0x1, %al jne 0x38743 jmp 0x388ef leaq -0x160(%rbp), %rdi callq 0x1b100 movq %rax, %rsi leaq -0x188(%rbp), %rdi callq 0x9250 jmp 0x38760 movq -0x210(%rbp), %rax testb $0x1, 0x299(%rax) je 0x387ff leaq -0x1c8(%rbp), %rdi leaq -0x188(%rbp), %rsi callq 0x9250 jmp 0x38789 leaq -0x1a8(%rbp), %rdi leaq -0x1c8(%rbp), %rsi callq 0x1ebc0 jmp 0x3879e leaq -0x188(%rbp), %rdi leaq -0x1a8(%rbp), %rsi callq 0x9790 leaq -0x1a8(%rbp), %rdi callq 0x9b90 leaq -0x1c8(%rbp), %rdi callq 0x9b90 jmp 0x387ff movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) jmp 0x388e1 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) leaq -0x1c8(%rbp), %rdi callq 0x9b90 jmp 0x388e1 movq -0x210(%rbp), %rax testb $0x1, 0x298(%rax) je 0x38883 leaq -0x208(%rbp), %rdi leaq -0x188(%rbp), %rsi callq 0x9250 jmp 0x38824 leaq -0x1e8(%rbp), %rdi leaq -0x208(%rbp), %rsi callq 0x1eb40 jmp 0x38839 leaq -0x188(%rbp), %rdi leaq -0x1e8(%rbp), %rsi callq 0x9790 leaq -0x1e8(%rbp), %rdi callq 0x9b90 leaq -0x208(%rbp), %rdi callq 0x9b90 jmp 0x38883 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) leaq -0x208(%rbp), %rdi callq 0x9b90 jmp 0x388e1 movq -0x218(%rbp), %rsi leaq -0x188(%rbp), %rdi callq 0x19900 testb $0x1, %al jne 0x3889c jmp 0x388ac movb $0x1, -0x1(%rbp) movl $0x1, -0x14c(%rbp) jmp 0x388b6 movl $0x0, -0x14c(%rbp) leaq -0x188(%rbp), %rdi callq 0x9b90 movl -0x14c(%rbp), %eax testl %eax, %eax jne 0x388fd jmp 0x388ce jmp 0x388d0 leaq -0x160(%rbp), %rdi callq 0x1b160 jmp 0x38727 leaq -0x188(%rbp), %rdi callq 0x9b90 jmp 0x38914 movb $0x0, -0x1(%rbp) movl $0x1, -0x14c(%rbp) leaq -0x38(%rbp), %rdi callq 0x9b90 movb -0x1(%rbp), %al andb $0x1, %al addq $0x230, %rsp # imm = 0x230 popq %rbp retq leaq -0x38(%rbp), %rdi callq 0x9b90 movq -0x80(%rbp), %rdi callq 0x9a70 nopw %cs:(%rax,%rax)
_ZNK3CLI3App10check_nameENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp mov rbp, rsp sub rsp, 230h mov [rbp+var_218], rsi mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rsi, [rbp+var_10] mov [rbp+var_210], rsi add rsi, 8 lea rdi, [rbp+var_38] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) mov rax, [rbp+var_210] test byte ptr [rax+299h], 1 jz loc_385BC mov rsi, [rbp+var_210] add rsi, 8 lea rdi, [rbp+var_78] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_384DC: lea rdi, [rbp+var_58] lea rsi, [rbp+var_78] call _ZN3CLI6detail17remove_underscoreENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::detail::remove_underscore(std::string) jmp short $+2 loc_384EB: lea rdi, [rbp+var_38] lea rsi, [rbp+var_58] mov [rbp+var_220], rsi call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [rbp+var_220]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_78]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rsi, [rbp+var_218] lea rdi, [rbp+var_C8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_38529: lea rdi, [rbp+var_A8] lea rsi, [rbp+var_C8] call _ZN3CLI6detail17remove_underscoreENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::detail::remove_underscore(std::string) jmp short $+2 loc_3853E: mov rdi, [rbp+var_218] lea rsi, [rbp+var_A8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) lea rdi, [rbp+var_A8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_C8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_385BC mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax jmp loc_38914 mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax lea rdi, [rbp+var_78]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_38914 mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax lea rdi, [rbp+var_C8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_38914 loc_385BC: mov rax, [rbp+var_210] test byte ptr [rax+298h], 1 jz loc_386C4 mov rsi, [rbp+var_210] add rsi, 8 lea rdi, [rbp+var_108] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_385E9: lea rdi, [rbp+var_E8] lea rsi, [rbp+var_108] call _ZN3CLI6detail8to_lowerENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::detail::to_lower(std::string) jmp short $+2 loc_385FE: lea rdi, [rbp+var_38] lea rsi, [rbp+var_E8] mov [rbp+var_228], rsi call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [rbp+var_228]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_108]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rsi, [rbp+var_218] lea rdi, [rbp+var_148] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_38642: lea rdi, [rbp+var_128] lea rsi, [rbp+var_148] call _ZN3CLI6detail8to_lowerENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::detail::to_lower(std::string) jmp short $+2 loc_38657: mov rdi, [rbp+var_218] lea rsi, [rbp+var_128] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) lea rdi, [rbp+var_128]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_148]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_386C4 mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax lea rdi, [rbp+var_108]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_38914 mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax lea rdi, [rbp+var_148]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_38914 loc_386C4: mov rsi, [rbp+var_218] lea rdi, [rbp+var_38] call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ test al, 1 jnz short loc_386DA jmp short loc_386ED loc_386DA: mov [rbp+var_1], 1 mov [rbp+var_14C], 1 jmp loc_388FD loc_386ED: mov rax, [rbp+var_210] add rax, 2F0h mov [rbp+var_158], rax mov rdi, [rbp+var_158] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void) mov [rbp+var_160], rax mov rdi, [rbp+var_158] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void) mov [rbp+var_168], rax loc_38727: lea rdi, [rbp+var_160] lea rsi, [rbp+var_168] call _ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_; __gnu_cxx::operator!=<std::string const*,std::vector<std::string>>(__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>> const&,__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>> const&) test al, 1 jnz short loc_38743 jmp loc_388EF loc_38743: lea rdi, [rbp+var_160] call _ZNK9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv; __gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>::operator*(void) mov rsi, rax lea rdi, [rbp+var_188] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_38760: mov rax, [rbp+var_210] test byte ptr [rax+299h], 1 jz loc_387FF lea rdi, [rbp+var_1C8] lea rsi, [rbp+var_188] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_38789: lea rdi, [rbp+var_1A8] lea rsi, [rbp+var_1C8] call _ZN3CLI6detail17remove_underscoreENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::detail::remove_underscore(std::string) jmp short $+2 loc_3879E: lea rdi, [rbp+var_188] lea rsi, [rbp+var_1A8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) lea rdi, [rbp+var_1A8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_1C8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_387FF mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax jmp loc_388E1 mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax lea rdi, [rbp+var_1C8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_388E1 loc_387FF: mov rax, [rbp+var_210] test byte ptr [rax+298h], 1 jz short loc_38883 lea rdi, [rbp+var_208] lea rsi, [rbp+var_188] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_38824: lea rdi, [rbp+var_1E8] lea rsi, [rbp+var_208] call _ZN3CLI6detail8to_lowerENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::detail::to_lower(std::string) jmp short $+2 loc_38839: lea rdi, [rbp+var_188] lea rsi, [rbp+var_1E8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) lea rdi, [rbp+var_1E8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_208]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_38883 mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax lea rdi, [rbp+var_208]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_388E1 loc_38883: mov rsi, [rbp+var_218] lea rdi, [rbp+var_188] call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ test al, 1 jnz short loc_3889C jmp short loc_388AC loc_3889C: mov [rbp+var_1], 1 mov [rbp+var_14C], 1 jmp short loc_388B6 loc_388AC: mov [rbp+var_14C], 0 loc_388B6: lea rdi, [rbp+var_188]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov eax, [rbp+var_14C] test eax, eax jnz short loc_388FD jmp short $+2 loc_388CE: jmp short $+2 loc_388D0: lea rdi, [rbp+var_160] call _ZN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv; __gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>::operator++(void) jmp loc_38727 loc_388E1: lea rdi, [rbp+var_188]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_38914 loc_388EF: mov [rbp+var_1], 0 mov [rbp+var_14C], 1 loc_388FD: lea rdi, [rbp+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov al, [rbp+var_1] and al, 1 add rsp, 230h pop rbp retn loc_38914: lea rdi, [rbp+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rdi, [rbp+var_80] call __Unwind_Resume
char CLI::App::check_name(long long a1, long long a2) { long long v2; // rax _BYTE v4[32]; // [rsp+28h] [rbp-208h] BYREF _BYTE v5[32]; // [rsp+48h] [rbp-1E8h] BYREF _BYTE v6[32]; // [rsp+68h] [rbp-1C8h] BYREF _BYTE v7[32]; // [rsp+88h] [rbp-1A8h] BYREF _BYTE v8[32]; // [rsp+A8h] [rbp-188h] BYREF long long v9; // [rsp+C8h] [rbp-168h] BYREF _QWORD v10[2]; // [rsp+D0h] [rbp-160h] BYREF int v11; // [rsp+E4h] [rbp-14Ch] _BYTE v12[32]; // [rsp+E8h] [rbp-148h] BYREF _BYTE v13[32]; // [rsp+108h] [rbp-128h] BYREF _BYTE v14[32]; // [rsp+128h] [rbp-108h] BYREF _BYTE v15[32]; // [rsp+148h] [rbp-E8h] BYREF _BYTE v16[32]; // [rsp+168h] [rbp-C8h] BYREF _BYTE v17[36]; // [rsp+188h] [rbp-A8h] BYREF _BYTE v18[32]; // [rsp+1B8h] [rbp-78h] BYREF _BYTE v19[32]; // [rsp+1D8h] [rbp-58h] BYREF _BYTE v20[32]; // [rsp+1F8h] [rbp-38h] BYREF long long v21; // [rsp+218h] [rbp-18h] long long v22; // [rsp+220h] [rbp-10h] char v23; // [rsp+22Fh] [rbp-1h] v22 = a1; v21 = a2; std::string::basic_string(v20, a1 + 8); if ( (*(_BYTE *)(a1 + 665) & 1) != 0 ) { std::string::basic_string(v18, a1 + 8); CLI::detail::remove_underscore((long long)v19, (long long)v18); std::string::operator=(v20); std::string::~string(v19); std::string::~string(v18); std::string::basic_string(v16, a2); CLI::detail::remove_underscore((long long)v17, (long long)v16); std::string::operator=(a2); std::string::~string(v17); std::string::~string(v16); } if ( (*(_BYTE *)(a1 + 664) & 1) != 0 ) { std::string::basic_string(v14, a1 + 8); CLI::detail::to_lower((long long)v15, (long long)v14); std::string::operator=(v20); std::string::~string(v15); std::string::~string(v14); std::string::basic_string(v12, a2); CLI::detail::to_lower((long long)v13, (long long)v12); std::string::operator=(a2); std::string::~string(v13); std::string::~string(v12); } if ( (std::operator==<char>((long long)v20, a2) & 1) != 0 ) { v23 = 1; v11 = 1; } else { v10[1] = a1 + 752; v10[0] = std::vector<std::string>::begin(a1 + 752); v9 = std::vector<std::string>::end(a1 + 752); while ( __gnu_cxx::operator!=<std::string const*,std::vector<std::string>>((long long)v10, (long long)&v9) ) { v2 = __gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>::operator*((long long)v10); std::string::basic_string(v8, v2); if ( (*(_BYTE *)(a1 + 665) & 1) != 0 ) { std::string::basic_string(v6, v8); CLI::detail::remove_underscore((long long)v7, (long long)v6); std::string::operator=(v8); std::string::~string(v7); std::string::~string(v6); } if ( (*(_BYTE *)(a1 + 664) & 1) != 0 ) { std::string::basic_string(v4, v8); CLI::detail::to_lower((long long)v5, (long long)v4); std::string::operator=(v8); std::string::~string(v5); std::string::~string(v4); } if ( (std::operator==<char>((long long)v8, a2) & 1) != 0 ) { v23 = 1; v11 = 1; } else { v11 = 0; } std::string::~string(v8); if ( v11 ) goto LABEL_19; __gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>::operator++(v10); } v23 = 0; v11 = 1; } LABEL_19: std::string::~string(v20); return v23 & 1; }
check_name: PUSH RBP MOV RBP,RSP SUB RSP,0x230 MOV qword ptr [RBP + -0x218],RSI MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RSI,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x210],RSI ADD RSI,0x8 LEA RDI,[RBP + -0x38] CALL 0x00109250 MOV RAX,qword ptr [RBP + -0x210] TEST byte ptr [RAX + 0x299],0x1 JZ 0x001385bc MOV RSI,qword ptr [RBP + -0x210] ADD RSI,0x8 LAB_001384d1: LEA RDI,[RBP + -0x78] CALL 0x00109250 JMP 0x001384dc LAB_001384dc: LEA RDI,[RBP + -0x58] LEA RSI,[RBP + -0x78] CALL 0x0011ebc0 JMP 0x001384eb LAB_001384eb: LEA RDI,[RBP + -0x38] LEA RSI,[RBP + -0x58] MOV qword ptr [RBP + -0x220],RSI CALL 0x00109790 MOV RDI,qword ptr [RBP + -0x220] CALL 0x00109b90 LEA RDI,[RBP + -0x78] CALL 0x00109b90 MOV RSI,qword ptr [RBP + -0x218] LAB_0013851b: LEA RDI,[RBP + -0xc8] CALL 0x00109250 JMP 0x00138529 LAB_00138529: LEA RDI,[RBP + -0xa8] LEA RSI,[RBP + -0xc8] CALL 0x0011ebc0 JMP 0x0013853e LAB_0013853e: MOV RDI,qword ptr [RBP + -0x218] LEA RSI,[RBP + -0xa8] CALL 0x00109790 LEA RDI,[RBP + -0xa8] CALL 0x00109b90 LEA RDI,[RBP + -0xc8] CALL 0x00109b90 JMP 0x001385bc LAB_001385bc: MOV RAX,qword ptr [RBP + -0x210] TEST byte ptr [RAX + 0x298],0x1 JZ 0x001386c4 MOV RSI,qword ptr [RBP + -0x210] ADD RSI,0x8 LAB_001385db: LEA RDI,[RBP + -0x108] CALL 0x00109250 JMP 0x001385e9 LAB_001385e9: LEA RDI,[RBP + -0xe8] LEA RSI,[RBP + -0x108] CALL 0x0011eb40 JMP 0x001385fe LAB_001385fe: LEA RDI,[RBP + -0x38] LEA RSI,[RBP + -0xe8] MOV qword ptr [RBP + -0x228],RSI CALL 0x00109790 MOV RDI,qword ptr [RBP + -0x228] CALL 0x00109b90 LEA RDI,[RBP + -0x108] CALL 0x00109b90 MOV RSI,qword ptr [RBP + -0x218] LAB_00138634: LEA RDI,[RBP + -0x148] CALL 0x00109250 JMP 0x00138642 LAB_00138642: LEA RDI,[RBP + -0x128] LEA RSI,[RBP + -0x148] CALL 0x0011eb40 JMP 0x00138657 LAB_00138657: MOV RDI,qword ptr [RBP + -0x218] LEA RSI,[RBP + -0x128] CALL 0x00109790 LEA RDI,[RBP + -0x128] CALL 0x00109b90 LEA RDI,[RBP + -0x148] CALL 0x00109b90 JMP 0x001386c4 LAB_001386c4: MOV RSI,qword ptr [RBP + -0x218] LEA RDI,[RBP + -0x38] CALL 0x00119900 TEST AL,0x1 JNZ 0x001386da JMP 0x001386ed LAB_001386da: MOV byte ptr [RBP + -0x1],0x1 MOV dword ptr [RBP + -0x14c],0x1 JMP 0x001388fd LAB_001386ed: MOV RAX,qword ptr [RBP + -0x210] ADD RAX,0x2f0 MOV qword ptr [RBP + -0x158],RAX MOV RDI,qword ptr [RBP + -0x158] CALL 0x0011b060 MOV qword ptr [RBP + -0x160],RAX MOV RDI,qword ptr [RBP + -0x158] CALL 0x0011b090 MOV qword ptr [RBP + -0x168],RAX LAB_00138727: LEA RDI,[RBP + -0x160] LEA RSI,[RBP + -0x168] CALL 0x0011b0c0 TEST AL,0x1 JNZ 0x00138743 JMP 0x001388ef LAB_00138743: LEA RDI,[RBP + -0x160] CALL 0x0011b100 MOV RSI,RAX LAB_00138752: LEA RDI,[RBP + -0x188] CALL 0x00109250 JMP 0x00138760 LAB_00138760: MOV RAX,qword ptr [RBP + -0x210] TEST byte ptr [RAX + 0x299],0x1 JZ 0x001387ff LAB_00138774: LEA RDI,[RBP + -0x1c8] LEA RSI,[RBP + -0x188] CALL 0x00109250 JMP 0x00138789 LAB_00138789: LEA RDI,[RBP + -0x1a8] LEA RSI,[RBP + -0x1c8] CALL 0x0011ebc0 JMP 0x0013879e LAB_0013879e: LEA RDI,[RBP + -0x188] LEA RSI,[RBP + -0x1a8] CALL 0x00109790 LEA RDI,[RBP + -0x1a8] CALL 0x00109b90 LEA RDI,[RBP + -0x1c8] CALL 0x00109b90 JMP 0x001387ff LAB_001387ff: MOV RAX,qword ptr [RBP + -0x210] TEST byte ptr [RAX + 0x298],0x1 JZ 0x00138883 LAB_0013880f: LEA RDI,[RBP + -0x208] LEA RSI,[RBP + -0x188] CALL 0x00109250 JMP 0x00138824 LAB_00138824: LEA RDI,[RBP + -0x1e8] LEA RSI,[RBP + -0x208] CALL 0x0011eb40 LAB_00138837: JMP 0x00138839 LAB_00138839: LEA RDI,[RBP + -0x188] LEA RSI,[RBP + -0x1e8] CALL 0x00109790 LEA RDI,[RBP + -0x1e8] CALL 0x00109b90 LEA RDI,[RBP + -0x208] CALL 0x00109b90 JMP 0x00138883 LAB_00138883: MOV RSI,qword ptr [RBP + -0x218] LEA RDI,[RBP + -0x188] CALL 0x00119900 TEST AL,0x1 JNZ 0x0013889c JMP 0x001388ac LAB_0013889c: MOV byte ptr [RBP + -0x1],0x1 MOV dword ptr [RBP + -0x14c],0x1 JMP 0x001388b6 LAB_001388ac: MOV dword ptr [RBP + -0x14c],0x0 LAB_001388b6: LEA RDI,[RBP + -0x188] CALL 0x00109b90 MOV EAX,dword ptr [RBP + -0x14c] TEST EAX,EAX JNZ 0x001388fd JMP 0x001388ce LAB_001388ce: JMP 0x001388d0 LAB_001388d0: LEA RDI,[RBP + -0x160] CALL 0x0011b160 JMP 0x00138727 LAB_001388ef: MOV byte ptr [RBP + -0x1],0x0 MOV dword ptr [RBP + -0x14c],0x1 LAB_001388fd: LEA RDI,[RBP + -0x38] CALL 0x00109b90 MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x230 POP RBP RET
/* CLI::App::check_name(std::__cxx11::string) const */ ulong __thiscall CLI::App::check_name(App *this,string *param_2) { bool bVar1; ulong uVar2; string *psVar3; int8 uVar4; string local_210 [32]; detail local_1f0 [32]; string local_1d0 [32]; detail local_1b0 [32]; string local_190 [32]; int8 local_170; int8 local_168; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_160; uint local_154; string local_150 [32]; detail local_130 [32]; string local_110 [32]; detail local_f0 [32]; string local_d0 [32]; detail local_b0 [48]; string local_80 [32]; detail local_60 [32]; string local_40 [32]; string *local_20; App *local_18; int1 local_9; local_20 = param_2; local_18 = this; std::__cxx11::string::string(local_40,(string *)(this + 8)); if (((byte)this[0x299] & 1) != 0) { /* try { // try from 001384d1 to 001384d9 has its CatchHandler @ 0013856b */ std::__cxx11::string::string(local_80,(string *)(this + 8)); /* try { // try from 001384dc to 001384e8 has its CatchHandler @ 0013857f */ detail::remove_underscore(local_60,local_80); std::__cxx11::string::operator=(local_40,(string *)local_60); std::__cxx11::string::~string((string *)local_60); std::__cxx11::string::~string(local_80); /* try { // try from 0013851b to 00138526 has its CatchHandler @ 0013856b */ std::__cxx11::string::string(local_d0,param_2); /* try { // try from 00138529 to 0013853b has its CatchHandler @ 0013859c */ detail::remove_underscore(local_b0,local_d0); std::__cxx11::string::operator=(param_2,(string *)local_b0); std::__cxx11::string::~string((string *)local_b0); std::__cxx11::string::~string(local_d0); } if (((byte)this[0x298] & 1) != 0) { /* try { // try from 001385db to 001385e6 has its CatchHandler @ 0013856b */ std::__cxx11::string::string(local_110,(string *)(this + 8)); /* try { // try from 001385e9 to 001385fb has its CatchHandler @ 00138684 */ detail::to_lower(local_f0,local_110); std::__cxx11::string::operator=(local_40,(string *)local_f0); std::__cxx11::string::~string((string *)local_f0); std::__cxx11::string::~string(local_110); /* try { // try from 00138634 to 0013863f has its CatchHandler @ 0013856b */ std::__cxx11::string::string(local_150,param_2); /* try { // try from 00138642 to 00138654 has its CatchHandler @ 001386a4 */ detail::to_lower(local_130,local_150); std::__cxx11::string::operator=(param_2,(string *)local_130); std::__cxx11::string::~string((string *)local_130); std::__cxx11::string::~string(local_150); } uVar2 = std::operator==(local_40,param_2); if ((uVar2 & 1) == 0) { local_160 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x2f0); local_168 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin (local_160); local_170 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end (local_160); while (bVar1 = __gnu_cxx::operator!= ((__normal_iterator *)&local_168,(__normal_iterator *)&local_170), bVar1) { psVar3 = (string *) __gnu_cxx:: __normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator*((__normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_168); /* try { // try from 00138752 to 0013875d has its CatchHandler @ 0013856b */ std::__cxx11::string::string(local_190,psVar3); if (((byte)this[0x299] & 1) != 0) { /* try { // try from 00138774 to 00138786 has its CatchHandler @ 001387cb */ std::__cxx11::string::string(local_1d0,local_190); /* try { // try from 00138789 to 0013879b has its CatchHandler @ 001387df */ detail::remove_underscore(local_1b0,local_1d0); std::__cxx11::string::operator=(local_190,(string *)local_1b0); std::__cxx11::string::~string((string *)local_1b0); std::__cxx11::string::~string(local_1d0); } if (((byte)this[0x298] & 1) != 0) { /* try { // try from 0013880f to 00138821 has its CatchHandler @ 001387cb */ std::__cxx11::string::string(local_210,local_190); /* try { // try from 00138824 to 00138836 has its CatchHandler @ 00138866 */ detail::to_lower(local_1f0,local_210); std::__cxx11::string::operator=(local_190,(string *)local_1f0); std::__cxx11::string::~string((string *)local_1f0); std::__cxx11::string::~string(local_210); } uVar2 = std::operator==(local_190,param_2); bVar1 = (uVar2 & 1) != 0; if (bVar1) { local_9 = 1; } local_154 = (uint)bVar1; std::__cxx11::string::~string(local_190); if (local_154 != 0) goto LAB_001388fd; __gnu_cxx:: __normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator++((__normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_168); } local_9 = 0; local_154 = 1; } else { local_9 = 1; local_154 = 1; } LAB_001388fd: uVar4 = std::__cxx11::string::~string(local_40); return CONCAT71((int7)((ulong)uVar4 >> 8),local_9) & 0xffffffffffffff01; }
51,041
testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::Matcher(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest-matchers.cc
Matcher<const std::string&>::Matcher(const std::string& s) { *this = Eq(s); }
O1
cpp
testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::Matcher(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) leaq 0x42a4c(%rip), %r14 # 0x58898 movq %r14, (%rdi) leaq 0x30(%rsp), %r15 movq %r15, -0x10(%r15) movq (%rsi), %rax movq 0x8(%rsi), %rdx addq %rax, %rdx leaq 0x20(%rsp), %rdi movq %rax, %rsi callq 0x39594 leaq 0x10(%rsp), %r12 movq %r12, -0x10(%r12) movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx addq %rsi, %rdx movq %rsp, %rdi callq 0x39594 leaq 0x42b9b(%rip), %rax # 0x58a30 movq %rax, 0x40(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x48(%rsp) leaq 0x42d77(%rip), %rax # 0x58c20 movq %rax, 0x48(%rsp) movl $0x28, %edi callq 0x84b0 movl $0x1, (%rax) movq %rax, %rcx addq $0x18, %rcx movq %rcx, 0x8(%rax) movq (%rsp), %rdx cmpq %r12, %rdx je 0x15ee1 movq %rdx, 0x8(%rax) movq 0x10(%rsp), %rcx movq %rcx, 0x18(%rax) jmp 0x15ee9 movups (%r12), %xmm0 movups %xmm0, (%rcx) movq 0x8(%rsp), %rcx movq %rcx, 0x10(%rax) movq %r12, (%rsp) movq $0x0, 0x8(%rsp) movb $0x0, 0x10(%rsp) leaq 0x40(%rsp), %rsi movq %rax, 0x10(%rsi) movq %r14, (%rsi) movq %rbx, %rdi callq 0x36214 leaq 0x40(%rsp), %rdi callq 0x32246 movq (%rsp), %rdi cmpq %r12, %rdi je 0x15f38 movq 0x10(%rsp), %rsi incq %rsi callq 0x84e0 movq 0x20(%rsp), %rdi cmpq %r15, %rdi je 0x15f4f movq 0x30(%rsp), %rsi incq %rsi callq 0x84e0 addq $0x58, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %r14 leaq 0x40(%rsp), %rdi callq 0x32246 jmp 0x15f6d movq %rax, %r14 movq (%rsp), %rdi cmpq %r12, %rdi je 0x15f88 movq 0x10(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x15f88 movq %rax, %r14 movq 0x20(%rsp), %rdi cmpq %r15, %rdi je 0x15fa4 movq 0x30(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x15fa4 movq %rax, %r14 movq %rbx, %rdi callq 0x32246 movq %r14, %rdi callq 0x8990
_ZN7testing7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2ES8_: push r15; Alternative name is 'testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::Matcher(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)' push r14 push r12 push rbx sub rsp, 58h mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 lea r14, off_58898 mov [rdi], r14 lea r15, [rsp+78h+var_48] mov [r15-10h], r15 mov rax, [rsi] mov rdx, [rsi+8] add rdx, rax lea rdi, [rsp+78h+var_58] mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea r12, [rsp+78h+var_68] mov [r12-10h], r12 mov rsi, [rsp+78h+var_58] mov rdx, [rsp+78h+var_50] add rdx, rsi mov rdi, rsp call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rax, off_58A30 mov [rsp+78h+var_38], rax xorps xmm0, xmm0 movups [rsp+78h+var_30], xmm0 lea rax, _ZZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE9GetVTableINSA_11ValuePolicyINS0_9EqMatcherIS7_EELb0EEEEEPKNSA_6VTableEvE7kVTableB5cxx11; testing::internal::MatcherBase<std::string const&>::GetVTable<testing::internal::MatcherBase<std::string const&>::ValuePolicy<testing::internal::EqMatcher<std::string>,false>>(void)::kVTable mov qword ptr [rsp+78h+var_30], rax mov edi, 28h ; '('; unsigned __int64 call __Znwm; operator new(ulong) mov dword ptr [rax], 1 mov rcx, rax add rcx, 18h mov [rax+8], rcx mov rdx, [rsp+78h+var_78] cmp rdx, r12 jz short loc_15EE1 mov [rax+8], rdx mov rcx, [rsp+78h+var_68] mov [rax+18h], rcx jmp short loc_15EE9 loc_15EE1: movups xmm0, xmmword ptr [r12] movups xmmword ptr [rcx], xmm0 loc_15EE9: mov rcx, [rsp+78h+var_70] mov [rax+10h], rcx mov [rsp+78h+var_78], r12 mov [rsp+78h+var_70], 0 mov byte ptr [rsp+78h+var_68], 0 lea rsi, [rsp+78h+var_38] mov [rsi+10h], rax mov [rsi], r14 mov rdi, rbx call _ZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEaSEOSA_; testing::internal::MatcherBase<std::string const&>::operator=(testing::internal::MatcherBase<std::string const&>&&) lea rdi, [rsp+78h+var_38] call _ZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::MatcherBase<std::string const&>::~MatcherBase() mov rdi, [rsp+78h+var_78]; void * cmp rdi, r12 jz short loc_15F38 mov rsi, [rsp+78h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_15F38: mov rdi, [rsp+78h+var_58]; void * cmp rdi, r15 jz short loc_15F4F mov rsi, [rsp+78h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_15F4F: add rsp, 58h pop rbx pop r12 pop r14 pop r15 retn mov r14, rax lea rdi, [rsp+arg_38] call _ZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::MatcherBase<std::string const&>::~MatcherBase() jmp short loc_15F6D mov r14, rax loc_15F6D: mov rdi, [rsp+0]; void * cmp rdi, r12 jz short loc_15F88 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_15F88 mov r14, rax loc_15F88: mov rdi, [rsp+arg_18]; void * cmp rdi, r15 jz short loc_15FA4 mov rsi, [rsp+arg_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_15FA4 mov r14, rax loc_15FA4: mov rdi, rbx call _ZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::MatcherBase<std::string const&>::~MatcherBase() mov rdi, r14 call __Unwind_Resume
void testing::Matcher<std::string const&>::Matcher(long long a1, _QWORD *a2) { long long v2; // rax void *v3; // [rsp+0h] [rbp-78h] BYREF long long v4; // [rsp+8h] [rbp-70h] __int128 v5; // [rsp+10h] [rbp-68h] BYREF void *v6[2]; // [rsp+20h] [rbp-58h] BYREF _QWORD v7[2]; // [rsp+30h] [rbp-48h] BYREF _QWORD v8[2]; // [rsp+40h] [rbp-38h] BYREF long long v9; // [rsp+50h] [rbp-28h] *(_OWORD *)(a1 + 8) = 0LL; *(_QWORD *)a1 = &off_58898; v6[0] = v7; std::string::_M_construct<char *>(v6, *a2, *a2 + a2[1]); v3 = &v5; std::string::_M_construct<char *>(&v3, v6[0], (char *)v6[0] + (unsigned long long)v6[1]); v8[0] = &off_58A30; v9 = 0LL; v8[1] = testing::internal::MatcherBase<std::string const&>::GetVTable<testing::internal::MatcherBase<std::string const&>::ValuePolicy<testing::internal::EqMatcher<std::string>,false>>(void)::kVTable[abi:cxx11]; v2 = operator new(0x28uLL); *(_DWORD *)v2 = 1; *(_QWORD *)(v2 + 8) = v2 + 24; if ( v3 == &v5 ) { *(_OWORD *)(v2 + 24) = v5; } else { *(_QWORD *)(v2 + 8) = v3; *(_QWORD *)(v2 + 24) = v5; } *(_QWORD *)(v2 + 16) = v4; v3 = &v5; v4 = 0LL; LOBYTE(v5) = 0; v9 = v2; v8[0] = &off_58898; testing::internal::MatcherBase<std::string const&>::operator=(a1); testing::internal::MatcherBase<std::string const&>::~MatcherBase(v8); if ( v3 != &v5 ) operator delete(v3, v5 + 1); if ( v6[0] != v7 ) operator delete(v6[0], v7[0] + 1LL); }
Matcher: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x58 MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 LEA R14,[0x158898] MOV qword ptr [RDI],R14 LEA R15,[RSP + 0x30] MOV qword ptr [R15 + -0x10],R15 MOV RAX,qword ptr [RSI] MOV RDX,qword ptr [RSI + 0x8] ADD RDX,RAX LAB_00115e62: LEA RDI,[RSP + 0x20] MOV RSI,RAX CALL 0x00139594 LEA R12,[RSP + 0x10] MOV qword ptr [R12 + -0x10],R12 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] ADD RDX,RSI LAB_00115e86: MOV RDI,RSP CALL 0x00139594 LEA RAX,[0x158a30] MOV qword ptr [RSP + 0x40],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSP + 0x48],XMM0 LEA RAX,[0x158c20] MOV qword ptr [RSP + 0x48],RAX LAB_00115eae: MOV EDI,0x28 CALL 0x001084b0 MOV dword ptr [RAX],0x1 MOV RCX,RAX ADD RCX,0x18 MOV qword ptr [RAX + 0x8],RCX MOV RDX,qword ptr [RSP] CMP RDX,R12 JZ 0x00115ee1 MOV qword ptr [RAX + 0x8],RDX MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x18],RCX JMP 0x00115ee9 LAB_00115ee1: MOVUPS XMM0,xmmword ptr [R12] MOVUPS xmmword ptr [RCX],XMM0 LAB_00115ee9: MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0x10],RCX MOV qword ptr [RSP],R12 MOV qword ptr [RSP + 0x8],0x0 MOV byte ptr [RSP + 0x10],0x0 LEA RSI,[RSP + 0x40] MOV qword ptr [RSI + 0x10],RAX MOV qword ptr [RSI],R14 LAB_00115f10: MOV RDI,RBX CALL 0x00136214 LAB_00115f18: LEA RDI,[RSP + 0x40] CALL 0x00132246 MOV RDI,qword ptr [RSP] CMP RDI,R12 JZ 0x00115f38 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x001084e0 LAB_00115f38: MOV RDI,qword ptr [RSP + 0x20] CMP RDI,R15 JZ 0x00115f4f MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x001084e0 LAB_00115f4f: ADD RSP,0x58 POP RBX POP R12 POP R14 POP R15 RET
/* testing::Matcher<std::__cxx11::string const&>::Matcher(std::__cxx11::string const&) */ void __thiscall testing::Matcher<std::__cxx11::string_const&>::Matcher (Matcher<std::__cxx11::string_const&> *this,string *param_1) { int1 *local_78; int8 local_70; int1 local_68; int7 uStack_67; int8 uStack_60; long *local_58; long local_50; long local_48 [2]; int **local_38; int1 *local_30; int4 *puStack_28; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int ***)this = &PTR__MatcherBase_00158898; /* try { // try from 00115e62 to 00115e6e has its CatchHandler @ 00115fa1 */ local_58 = local_48; std::__cxx11::string::_M_construct<char*> (&local_58,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1); local_78 = &local_68; /* try { // try from 00115e86 to 00115e8d has its CatchHandler @ 00115f85 */ std::__cxx11::string::_M_construct<char*>(&local_78,local_58,local_50 + (long)local_58); local_38 = &PTR__MatcherBase_00158a30; puStack_28 = (int4 *)0x0; local_30 = internal::MatcherBase<std::__cxx11::string_const&>:: GetVTable<testing::internal::MatcherBase<std::__cxx11::string_const&>::ValuePolicy<testing::internal::EqMatcher<std::__cxx11::string>,false>>() ::kVTable_abi_cxx11_; /* try { // try from 00115eae to 00115eb7 has its CatchHandler @ 00115f6a */ puStack_28 = (int4 *)operator_new(0x28); *puStack_28 = 1; *(int4 **)(puStack_28 + 2) = puStack_28 + 6; if (local_78 == &local_68) { *(ulong *)(puStack_28 + 6) = CONCAT71(uStack_67,local_68); *(int8 *)(puStack_28 + 8) = uStack_60; } else { *(int1 **)(puStack_28 + 2) = local_78; *(ulong *)(puStack_28 + 6) = CONCAT71(uStack_67,local_68); } *(int8 *)(puStack_28 + 4) = local_70; local_70 = 0; local_68 = 0; local_38 = &PTR__MatcherBase_00158898; local_78 = &local_68; /* try { // try from 00115f10 to 00115f17 has its CatchHandler @ 00115f5b */ internal::MatcherBase<std::__cxx11::string_const&>::operator= ((MatcherBase<std::__cxx11::string_const&> *)this,(MatcherBase *)&local_38); internal::MatcherBase<std::__cxx11::string_const&>::~MatcherBase ((MatcherBase<std::__cxx11::string_const&> *)&local_38); if (local_78 != &local_68) { operator_delete(local_78,CONCAT71(uStack_67,local_68) + 1); } if (local_58 != local_48) { operator_delete(local_58,local_48[0] + 1); } return; }
51,042
mysql_stmt_send_long_data_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_stmt_send_long_data_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_stmt_send_long_data, (parms->stmt, parms->param_number, parms->data, parms->length), parms->stmt->mysql, my_bool, r_my_bool) }
O0
c
mysql_stmt_send_long_data_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 movl 0x8(%rax), %esi movq -0x10(%rbp), %rax movq 0x10(%rax), %rdx movq -0x10(%rbp), %rax movq 0x18(%rax), %rcx callq 0x46c50 movb %al, -0x11(%rbp) movb -0x11(%rbp), %cl movq -0x20(%rbp), %rax movb %cl, 0x8(%rax) movq -0x20(%rbp), %rax movl $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nop
mysql_stmt_send_long_data_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 esi, [rax+8] mov rax, [rbp+var_10] mov rdx, [rax+10h] mov rax, [rbp+var_10] mov rcx, [rax+18h] call mysql_stmt_send_long_data mov [rbp+var_11], al mov cl, [rbp+var_11] mov rax, [rbp+var_20] mov [rax+8], cl mov rax, [rbp+var_20] mov dword ptr [rax], 0 add rsp, 20h pop rbp retn
long long mysql_stmt_send_long_data_start_internal(long long a1) { long long result; // rax long long v2; // [rsp+0h] [rbp-20h] v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 56LL) + 1152LL) + 40LL); *(_BYTE *)(v2 + 8) = mysql_stmt_send_long_data( *(_QWORD *)a1, *(_DWORD *)(a1 + 8), *(_QWORD *)(a1 + 16), *(_QWORD *)(a1 + 24)); result = v2; *(_DWORD *)v2 = 0; return result; }
mysql_stmt_send_long_data_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 ESI,dword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x18] CALL 0x00146c50 MOV byte ptr [RBP + -0x11],AL MOV CL,byte ptr [RBP + -0x11] MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x8],CL MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 ADD RSP,0x20 POP RBP RET
void mysql_stmt_send_long_data_start_internal(long *param_1) { int4 *puVar1; int1 uVar2; puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28); uVar2 = mysql_stmt_send_long_data(*param_1,(int)param_1[1],param_1[2],param_1[3]); *(int1 *)(puVar1 + 2) = uVar2; *puVar1 = 0; return; }
51,043
init_one_value
eloqsql/mysys/my_getopt.c
static void init_one_value(const struct my_option *option, void *variable, longlong value) { DBUG_ENTER("init_one_value"); switch ((option->var_type & GET_TYPE_MASK)) { case GET_BOOL: *((my_bool*) variable)= (my_bool) value; break; case GET_INT: *((int*) variable)= (int) getopt_ll_limit_value((int) value, option, NULL); break; case GET_ENUM: *((ulong*) variable)= (ulong) value; break; case GET_UINT: *((uint*) variable)= (uint) getopt_ull_limit_value((uint) value, option, NULL); break; case GET_LONG: *((long*) variable)= (long) getopt_ll_limit_value((long) value, option, NULL); break; case GET_ULONG: *((ulong*) variable)= (ulong) getopt_ull_limit_value((ulong) value, option, NULL); break; case GET_LL: *((longlong*) variable)= (longlong) getopt_ll_limit_value((longlong) value, option, NULL); break; case GET_ULL: *((ulonglong*) variable)= (ulonglong) getopt_ull_limit_value((ulonglong) value, option, NULL); break; case GET_SET: case GET_FLAGSET: *((ulonglong*) variable)= (ulonglong) value; break; case GET_BIT: { ulonglong bit= (option->block_size >= 0 ? option->block_size : -option->block_size); if (option->block_size < 0) value= !value; if (value) (*(ulonglong*)variable)|= bit; else (*(ulonglong*)variable)&= ~bit; break; } case GET_DOUBLE: *((double*) variable)= getopt_ulonglong2double(value); break; case GET_STR: /* Do not clear variable value if it has no default value. The default value may already be set. NOTE: To avoid compiler warnings, we first cast longlong to intptr, so that the value has the same size as a pointer. */ if ((char*) (intptr) value) *((char**) variable)= (char*) (intptr) value; break; case GET_STR_ALLOC: /* Do not clear variable value if it has no default value. The default value may already be set. NOTE: To avoid compiler warnings, we first cast longlong to intptr, so that the value has the same size as a pointer. */ if ((char*) (intptr) value) { char **pstr= (char **) variable; my_free(*pstr); *pstr= my_strdup(key_memory_defaults, (char*) (intptr) value, MYF(MY_WME)); } break; default: /* dummy default to avoid compiler warnings */ break; } DBUG_VOID_RETURN; }
O0
c
init_one_value: 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 0x30(%rax), %rax andl $0x3f, %eax addq $-0x2, %rax movq %rax, -0x30(%rbp) subq $0xe, %rax ja 0x2cf7e movq -0x30(%rbp), %rax leaq 0x5af34(%rip), %rcx # 0x87cd0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x18(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x2cf80 movq -0x18(%rbp), %rax movslq %eax, %rdi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x2d740 movl %eax, %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) jmp 0x2cf80 movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x2cf80 movq -0x18(%rbp), %rax movl %eax, %eax movl %eax, %edi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x2d9c0 movl %eax, %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) jmp 0x2cf80 movq -0x18(%rbp), %rdi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x2d740 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x2cf80 movq -0x18(%rbp), %rdi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x2d9c0 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x2cf80 movq -0x18(%rbp), %rdi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x2d740 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x2cf80 movq -0x18(%rbp), %rdi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x2d9c0 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x2cf80 movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x2cf80 movq -0x8(%rbp), %rax cmpq $0x0, 0x60(%rax) jl 0x2ceb2 movq -0x8(%rbp), %rax movq 0x60(%rax), %rax movq %rax, -0x38(%rbp) jmp 0x2cec0 movq -0x8(%rbp), %rcx xorl %eax, %eax subq 0x60(%rcx), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x60(%rax) jge 0x2cee8 cmpq $0x0, -0x18(%rbp) setne %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x2ceff movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax orq (%rax), %rcx movq %rcx, (%rax) jmp 0x2cf11 movq -0x20(%rbp), %rcx xorq $-0x1, %rcx movq -0x10(%rbp), %rax andq (%rax), %rcx movq %rcx, (%rax) jmp 0x2cf80 movq -0x18(%rbp), %rdi callq 0x2b960 movq -0x10(%rbp), %rax movsd %xmm0, (%rax) jmp 0x2cf80 movq -0x18(%rbp), %rax cmpq $0x0, %rax je 0x2cf3b movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x2cf80 movq -0x18(%rbp), %rax cmpq $0x0, %rax je 0x2cf7c movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq (%rax), %rdi callq 0x30520 leaq 0x363cc6(%rip), %rax # 0x390c28 movl (%rax), %edi movq -0x18(%rbp), %rsi movl $0x10, %edx callq 0x30620 movq %rax, %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) jmp 0x2cf80 jmp 0x2cf80 jmp 0x2cf82 jmp 0x2cf84 addq $0x40, %rsp popq %rbp retq nopw (%rax,%rax)
init_one_value: 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+30h] and eax, 3Fh add rax, 0FFFFFFFFFFFFFFFEh; switch 15 cases mov [rbp+var_30], rax sub rax, 0Eh ja def_2CDA3; jumptable 000000000002CDA3 default case, case 11 mov rax, [rbp+var_30] lea rcx, jpt_2CDA3 movsxd rax, ds:(jpt_2CDA3 - 87CD0h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_2CDA5: mov rax, [rbp+var_18]; jumptable 000000000002CDA3 case 2 mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp loc_2CF80 loc_2CDB6: mov rax, [rbp+var_18]; jumptable 000000000002CDA3 case 3 movsxd rdi, eax mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call getopt_ll_limit_value mov ecx, eax mov rax, [rbp+var_10] mov [rax], ecx jmp loc_2CF80 loc_2CDD7: mov rcx, [rbp+var_18]; jumptable 000000000002CDA3 case 12 mov rax, [rbp+var_10] mov [rax], rcx jmp loc_2CF80 loc_2CDE7: mov rax, [rbp+var_18]; jumptable 000000000002CDA3 case 4 mov eax, eax mov edi, eax mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call getopt_ull_limit_value mov ecx, eax mov rax, [rbp+var_10] mov [rax], ecx jmp loc_2CF80 loc_2CE09: mov rdi, [rbp+var_18]; jumptable 000000000002CDA3 case 5 mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call getopt_ll_limit_value mov rcx, rax mov rax, [rbp+var_10] mov [rax], rcx jmp loc_2CF80 loc_2CE29: mov rdi, [rbp+var_18]; jumptable 000000000002CDA3 case 6 mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call getopt_ull_limit_value mov rcx, rax mov rax, [rbp+var_10] mov [rax], rcx jmp loc_2CF80 loc_2CE49: mov rdi, [rbp+var_18]; jumptable 000000000002CDA3 case 7 mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call getopt_ll_limit_value mov rcx, rax mov rax, [rbp+var_10] mov [rax], rcx jmp loc_2CF80 loc_2CE69: mov rdi, [rbp+var_18]; jumptable 000000000002CDA3 case 8 mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call getopt_ull_limit_value mov rcx, rax mov rax, [rbp+var_10] mov [rax], rcx jmp loc_2CF80 loc_2CE89: mov rcx, [rbp+var_18]; jumptable 000000000002CDA3 cases 13,15 mov rax, [rbp+var_10] mov [rax], rcx jmp loc_2CF80 loc_2CE99: mov rax, [rbp+var_8]; jumptable 000000000002CDA3 case 16 cmp qword ptr [rax+60h], 0 jl short loc_2CEB2 mov rax, [rbp+var_8] mov rax, [rax+60h] mov [rbp+var_38], rax jmp short loc_2CEC0 loc_2CEB2: mov rcx, [rbp+var_8] xor eax, eax sub rax, [rcx+60h] mov [rbp+var_38], rax loc_2CEC0: mov rax, [rbp+var_38] mov [rbp+var_20], rax mov rax, [rbp+var_8] cmp qword ptr [rax+60h], 0 jge short loc_2CEE8 cmp [rbp+var_18], 0 setnz al xor al, 0FFh and al, 1 movzx eax, al cdqe mov [rbp+var_18], rax loc_2CEE8: cmp [rbp+var_18], 0 jz short loc_2CEFF mov rcx, [rbp+var_20] mov rax, [rbp+var_10] or rcx, [rax] mov [rax], rcx jmp short loc_2CF11 loc_2CEFF: mov rcx, [rbp+var_20] xor rcx, 0FFFFFFFFFFFFFFFFh mov rax, [rbp+var_10] and rcx, [rax] mov [rax], rcx loc_2CF11: jmp short loc_2CF80 loc_2CF13: mov rdi, [rbp+var_18]; jumptable 000000000002CDA3 case 14 call getopt_ulonglong2double mov rax, [rbp+var_10] movsd qword ptr [rax], xmm0 jmp short loc_2CF80 loc_2CF26: mov rax, [rbp+var_18]; jumptable 000000000002CDA3 case 9 cmp rax, 0 jz short loc_2CF3B mov rcx, [rbp+var_18] mov rax, [rbp+var_10] mov [rax], rcx loc_2CF3B: jmp short loc_2CF80 loc_2CF3D: mov rax, [rbp+var_18]; jumptable 000000000002CDA3 case 10 cmp rax, 0 jz short loc_2CF7C mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_28] mov rdi, [rax] call my_free lea rax, key_memory_defaults mov edi, [rax] mov rsi, [rbp+var_18] mov edx, 10h call my_strdup mov rcx, rax mov rax, [rbp+var_28] mov [rax], rcx loc_2CF7C: jmp short loc_2CF80 def_2CDA3: jmp short $+2; jumptable 000000000002CDA3 default case, case 11 loc_2CF80: jmp short $+2 loc_2CF82: jmp short $+2 loc_2CF84: add rsp, 40h pop rbp retn
long long init_one_value(long long a1, long long *a2, long long a3) { long long result; // rax int v4; // ecx int v5; // ecx long long v6; // rcx long long v7; // rcx long long v8; // rcx double v9; // xmm0_8 long long v10; // rcx long long v11; // [rsp+8h] [rbp-38h] _BOOL8 v12; // [rsp+28h] [rbp-18h] v12 = a3; result = (*(_QWORD *)(a1 + 48) & 0x3FLL) - 2; switch ( *(_QWORD *)(a1 + 48) & 0x3FLL ) { case 2LL: result = (long long)a2; *(_BYTE *)a2 = a3; break; case 3LL: v4 = getopt_ll_limit_value((int)a3, a1, 0LL); result = (long long)a2; *(_DWORD *)a2 = v4; break; case 4LL: v5 = getopt_ull_limit_value((unsigned int)a3, a1, 0LL); result = (long long)a2; *(_DWORD *)a2 = v5; break; case 5LL: case 7LL: v6 = getopt_ll_limit_value(a3, a1, 0LL); result = (long long)a2; *a2 = v6; break; case 6LL: case 8LL: v7 = getopt_ull_limit_value(a3, a1, 0LL); result = (long long)a2; *a2 = v7; break; case 9LL: result = a3; if ( a3 ) { result = (long long)a2; *a2 = a3; } break; case 0xALL: result = a3; if ( a3 ) { my_free(*a2); v10 = my_strdup(key_memory_defaults, v12, 16LL); result = (long long)a2; *a2 = v10; } break; case 0xCLL: result = (long long)a2; *a2 = a3; break; case 0xDLL: case 0xFLL: result = (long long)a2; *a2 = a3; break; case 0xELL: v9 = getopt_ulonglong2double(a3); result = (long long)a2; *(double *)a2 = v9; break; case 0x10LL: if ( *(long long *)(a1 + 96) < 0 ) v11 = -*(_QWORD *)(a1 + 96); else v11 = *(_QWORD *)(a1 + 96); if ( *(long long *)(a1 + 96) < 0 ) v12 = a3 == 0; result = (long long)a2; if ( v12 ) v8 = *a2 | v11; else v8 = *a2 & ~v11; *a2 = v8; break; default: return result; } return result; }
init_one_value: 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 + 0x30] AND EAX,0x3f ADD RAX,-0x2 MOV qword ptr [RBP + -0x30],RAX SUB RAX,0xe JA 0x0012cf7e MOV RAX,qword ptr [RBP + -0x30] LEA RCX,[0x187cd0] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_2: MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0012cf80 caseD_3: MOV RAX,qword ptr [RBP + -0x18] MOVSXD RDI,EAX MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x0012d740 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX JMP 0x0012cf80 caseD_c: MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x0012cf80 caseD_4: MOV RAX,qword ptr [RBP + -0x18] MOV EAX,EAX MOV EDI,EAX MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x0012d9c0 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX JMP 0x0012cf80 caseD_5: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x0012d740 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x0012cf80 caseD_6: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x0012d9c0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x0012cf80 caseD_7: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x0012d740 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x0012cf80 caseD_8: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x0012d9c0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x0012cf80 caseD_d: MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x0012cf80 caseD_10: MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x60],0x0 JL 0x0012ceb2 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x60] MOV qword ptr [RBP + -0x38],RAX JMP 0x0012cec0 LAB_0012ceb2: MOV RCX,qword ptr [RBP + -0x8] XOR EAX,EAX SUB RAX,qword ptr [RCX + 0x60] MOV qword ptr [RBP + -0x38],RAX LAB_0012cec0: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x60],0x0 JGE 0x0012cee8 CMP qword ptr [RBP + -0x18],0x0 SETNZ AL XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE MOV qword ptr [RBP + -0x18],RAX LAB_0012cee8: CMP qword ptr [RBP + -0x18],0x0 JZ 0x0012ceff MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] OR RCX,qword ptr [RAX] MOV qword ptr [RAX],RCX JMP 0x0012cf11 LAB_0012ceff: MOV RCX,qword ptr [RBP + -0x20] XOR RCX,-0x1 MOV RAX,qword ptr [RBP + -0x10] AND RCX,qword ptr [RAX] MOV qword ptr [RAX],RCX LAB_0012cf11: JMP 0x0012cf80 caseD_e: MOV RDI,qword ptr [RBP + -0x18] CALL 0x0012b960 MOV RAX,qword ptr [RBP + -0x10] MOVSD qword ptr [RAX],XMM0 JMP 0x0012cf80 caseD_9: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,0x0 JZ 0x0012cf3b MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX LAB_0012cf3b: JMP 0x0012cf80 caseD_a: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,0x0 JZ 0x0012cf7c MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX] CALL 0x00130520 LEA RAX,[0x490c28] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,0x10 CALL 0x00130620 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX LAB_0012cf7c: JMP 0x0012cf80 caseD_b: JMP 0x0012cf80 LAB_0012cf80: JMP 0x0012cf82 LAB_0012cf82: JMP 0x0012cf84 LAB_0012cf84: ADD RSP,0x40 POP RBP RET
void init_one_value(long param_1,ulong *param_2,ulong param_3) { int4 uVar1; ulong uVar2; ulong local_40; ulong local_20; switch((uint)*(int8 *)(param_1 + 0x30) & 0x3f) { case 2: *(char *)param_2 = (char)param_3; break; case 3: uVar1 = getopt_ll_limit_value((long)(int)param_3,param_1,0); *(int4 *)param_2 = uVar1; break; case 4: uVar1 = getopt_ull_limit_value(param_3 & 0xffffffff,param_1,0); *(int4 *)param_2 = uVar1; break; case 5: uVar2 = getopt_ll_limit_value(param_3,param_1,0); *param_2 = uVar2; break; case 6: uVar2 = getopt_ull_limit_value(param_3,param_1,0); *param_2 = uVar2; break; case 7: uVar2 = getopt_ll_limit_value(param_3,param_1,0); *param_2 = uVar2; break; case 8: uVar2 = getopt_ull_limit_value(param_3,param_1,0); *param_2 = uVar2; break; case 9: if (param_3 != 0) { *param_2 = param_3; } break; case 10: if (param_3 != 0) { my_free(*param_2); uVar2 = my_strdup(key_memory_defaults,param_3,0x10); *param_2 = uVar2; } break; default: break; case 0xc: *param_2 = param_3; break; case 0xd: case 0xf: *param_2 = param_3; break; case 0xe: uVar2 = getopt_ulonglong2double(param_3); *param_2 = uVar2; break; case 0x10: if (*(long *)(param_1 + 0x60) < 0) { local_40 = -*(long *)(param_1 + 0x60); } else { local_40 = *(ulong *)(param_1 + 0x60); } local_20 = param_3; if (*(long *)(param_1 + 0x60) < 0) { local_20 = (ulong)(int)(uint)((param_3 != 0 ^ 0xffU) & 1); } if (local_20 == 0) { *param_2 = (local_40 ^ 0xffffffffffffffff) & *param_2; } else { *param_2 = local_40 | *param_2; } } return; }
51,044
Dimension::create_chunk(glm::vec<3, int, (glm::qualifier)0> const&)
untodesu[P]voxelius/game/shared/dimension.cc
Chunk *Dimension::create_chunk(const chunk_pos &cpos) { auto it = m_chunkmap.find(cpos); if(it != m_chunkmap.cend()) { // Chunk already exists return it->second; } auto entity = chunks.create(); auto chunk = new Chunk(entity, this); auto &component = chunks.emplace<ChunkComponent>(entity); component.chunk = chunk; component.cpos = cpos; ChunkCreateEvent event; event.dimension = this; event.chunk = chunk; event.cpos = cpos; globals::dispatcher.trigger(event); return m_chunkmap.insert_or_assign(cpos, std::move(chunk)).first->second; }
O0
cpp
Dimension::create_chunk(glm::vec<3, int, (glm::qualifier)0> const&): pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x98(%rbp) addq $0x2c8, %rdi # imm = 0x2C8 movq -0x18(%rbp), %rsi callq 0xa28f0 movq -0x98(%rbp), %rdi movq %rax, -0x20(%rbp) addq $0x2c8, %rdi # imm = 0x2C8 callq 0xa2970 movq %rax, -0x28(%rbp) leaq -0x20(%rbp), %rdi leaq -0x28(%rbp), %rsi callq 0xa2940 testb $0x1, %al jne 0xa1fbc jmp 0xa1fd2 leaq -0x20(%rbp), %rdi callq 0xa29a0 movq 0x10(%rax), %rax movq %rax, -0x8(%rbp) jmp 0xa20f4 movq -0x98(%rbp), %rdi addq $0x8, %rdi callq 0x65540 movl %eax, -0x2c(%rbp) movl $0x2020, %edi # imm = 0x2020 callq 0x1a930 movq -0x98(%rbp), %rdx movq %rax, %rdi movq %rdi, %rax movq %rax, -0xa0(%rbp) movl -0x2c(%rbp), %esi callq 0x91e80 jmp 0xa200d movq -0x98(%rbp), %rdi movq -0xa0(%rbp), %rax movq %rax, -0x38(%rbp) addq $0x8, %rdi movl -0x2c(%rbp), %esi callq 0xa29c0 movq %rax, %rcx movq -0x98(%rbp), %rax movq %rcx, -0x50(%rbp) movq -0x38(%rbp), %rdx movq -0x50(%rbp), %rcx movq %rdx, 0x10(%rcx) movq -0x18(%rbp), %rdx movq -0x50(%rbp), %rcx movl 0x8(%rdx), %esi movl %esi, 0x8(%rcx) movq (%rdx), %rdx movq %rdx, (%rcx) movq %rax, -0x70(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x18(%rbp), %rax movl 0x8(%rax), %ecx movl %ecx, -0x60(%rbp) movq (%rax), %rax movq %rax, -0x68(%rbp) leaq 0x22f7cb(%rip), %rdi # 0x2d1848 leaq -0x70(%rbp), %rsi callq 0xa2a30 movq -0x98(%rbp), %rdi addq $0x2c8, %rdi # imm = 0x2C8 movq -0x18(%rbp), %rsi leaq -0x38(%rbp), %rdx callq 0xa2a70 movb %dl, -0x88(%rbp) movq %rax, -0x90(%rbp) movq -0x90(%rbp), %rax movq %rax, -0x80(%rbp) movb -0x88(%rbp), %al movb %al, -0x78(%rbp) leaq -0x80(%rbp), %rdi callq 0xa29a0 movq 0x10(%rax), %rax movq %rax, -0x8(%rbp) jmp 0xa20f4 movq -0xa0(%rbp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) movl $0x2020, %esi # imm = 0x2020 callq 0x1a940 jmp 0xa2101 movq -0x8(%rbp), %rax addq $0xa0, %rsp popq %rbp retq movq -0x40(%rbp), %rdi callq 0x1aff0 nopw (%rax,%rax)
_ZN9Dimension12create_chunkERKN3glm3vecILi3EiLNS0_9qualifierE0EEE: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rdi, [rbp+var_10] mov [rbp+var_98], rdi add rdi, 2C8h mov rsi, [rbp+var_18] call _ZN7emhash87HashMapIN3glm3vecILi3EiLNS1_9qualifierE0EEEP5ChunkSt4hashIS4_ESt8equal_toIS4_EE4findIS4_EENSB_8iteratorERKT_; emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::find<glm::vec<3,int,(glm::qualifier)0>>(glm::vec<3,int,(glm::qualifier)0> const&) mov rdi, [rbp+var_98] mov [rbp+var_20], rax add rdi, 2C8h call _ZNK7emhash87HashMapIN3glm3vecILi3EiLNS1_9qualifierE0EEEP5ChunkSt4hashIS4_ESt8equal_toIS4_EE4cendEv; emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::cend(void) mov [rbp+var_28], rax lea rdi, [rbp+var_20] lea rsi, [rbp+var_28] call _ZNK7emhash87HashMapIN3glm3vecILi3EiLNS1_9qualifierE0EEEP5ChunkSt4hashIS4_ESt8equal_toIS4_EE8iteratorneERKNSB_14const_iteratorE; emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::iterator::operator!=(emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::const_iterator const&) test al, 1 jnz short loc_A1FBC jmp short loc_A1FD2 loc_A1FBC: lea rdi, [rbp+var_20] call _ZNK7emhash87HashMapIN3glm3vecILi3EiLNS1_9qualifierE0EEEP5ChunkSt4hashIS4_ESt8equal_toIS4_EE8iteratorptEv; emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::iterator::operator->(void) mov rax, [rax+10h] mov [rbp+var_8], rax jmp loc_A20F4 loc_A1FD2: mov rdi, [rbp+var_98] add rdi, 8 call _ZN4entt14basic_registryINS_6entityESaIS1_EE6createEv; entt::basic_registry<entt::entity,std::allocator<entt::entity>>::create(void) mov [rbp+var_2C], eax mov edi, 2020h; unsigned __int64 call __Znwm; operator new(ulong) mov rdx, [rbp+var_98] mov rdi, rax mov rax, rdi mov [rbp+var_A0], rax mov esi, [rbp+var_2C] call _ZN5ChunkC2EN4entt6entityEP9Dimension; Chunk::Chunk(entt::entity,Dimension *) jmp short $+2 loc_A200D: mov rdi, [rbp+var_98] mov rax, [rbp+var_A0] mov [rbp+var_38], rax add rdi, 8 mov esi, [rbp+var_2C] call _ZN4entt14basic_registryINS_6entityESaIS1_EE7emplaceI14ChunkComponentJEEEDcS1_DpOT0_ mov rcx, rax mov rax, [rbp+var_98] mov [rbp+var_50], rcx mov rdx, [rbp+var_38] mov rcx, [rbp+var_50] mov [rcx+10h], rdx mov rdx, [rbp+var_18] mov rcx, [rbp+var_50] mov esi, [rdx+8] mov [rcx+8], esi mov rdx, [rdx] mov [rcx], rdx mov [rbp+var_70], rax mov rax, [rbp+var_38] mov [rbp+var_58], rax mov rax, [rbp+var_18] mov ecx, [rax+8] mov [rbp+var_60], ecx mov rax, [rax] mov [rbp+var_68], rax lea rdi, _ZN7globals10dispatcherE; globals::dispatcher lea rsi, [rbp+var_70] call _ZN4entt16basic_dispatcherISaIvEE7triggerIR16ChunkCreateEventEEvOT_; entt::basic_dispatcher<std::allocator<void>>::trigger<ChunkCreateEvent &>(ChunkCreateEvent &) mov rdi, [rbp+var_98] add rdi, 2C8h mov rsi, [rbp+var_18] lea rdx, [rbp+var_38] call _ZN7emhash87HashMapIN3glm3vecILi3EiLNS1_9qualifierE0EEEP5ChunkSt4hashIS4_ESt8equal_toIS4_EE16insert_or_assignERKS4_OS6_; emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::insert_or_assign(glm::vec<3,int,(glm::qualifier)0> const&,Chunk *&&) mov [rbp+var_88], dl mov [rbp+var_90], rax mov rax, [rbp+var_90] mov [rbp+var_80], rax mov al, [rbp+var_88] mov [rbp+var_78], al lea rdi, [rbp+var_80] call _ZNK7emhash87HashMapIN3glm3vecILi3EiLNS1_9qualifierE0EEEP5ChunkSt4hashIS4_ESt8equal_toIS4_EE8iteratorptEv; emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::iterator::operator->(void) mov rax, [rax+10h] mov [rbp+var_8], rax jmp short loc_A20F4 mov rdi, [rbp+var_A0]; void * mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax mov esi, 2020h; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_A2101 loc_A20F4: mov rax, [rbp+var_8] add rsp, 0A0h pop rbp retn loc_A2101: mov rdi, [rbp+var_40] call __Unwind_Resume
long long Dimension::create_chunk(long long a1, long long a2) { _QWORD *v2; // rdx _QWORD *v3; // rcx char v4; // dl void *v6; // [rsp+0h] [rbp-A0h] long long v7; // [rsp+20h] [rbp-80h] BYREF char v8; // [rsp+28h] [rbp-78h] _QWORD v9[2]; // [rsp+30h] [rbp-70h] BYREF int v10; // [rsp+40h] [rbp-60h] void *v11; // [rsp+48h] [rbp-58h] long long v12; // [rsp+50h] [rbp-50h] void *v13; // [rsp+68h] [rbp-38h] BYREF unsigned int v14; // [rsp+74h] [rbp-2Ch] long long v15; // [rsp+78h] [rbp-28h] BYREF long long v16; // [rsp+80h] [rbp-20h] BYREF long long v17; // [rsp+88h] [rbp-18h] long long v18; // [rsp+90h] [rbp-10h] v18 = a1; v17 = a2; v16 = emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::find<glm::vec<3,int,(glm::qualifier)0>>( a1 + 712, a2); v15 = emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::cend(a1 + 712); if ( (emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::iterator::operator!=( &v16, &v15) & 1) != 0 ) return *(_QWORD *)(emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::iterator::operator->(&v16) + 16); v14 = entt::basic_registry<entt::entity,std::allocator<entt::entity>>::create(a1 + 8); v6 = (void *)operator new(0x2020uLL); Chunk::Chunk((long long)v6, v14, a1); v13 = v6; v12 = entt::basic_registry<entt::entity,std::allocator<entt::entity>>::emplace<ChunkComponent>(a1 + 8, v14); *(_QWORD *)(v12 + 16) = v6; v2 = (_QWORD *)v17; v3 = (_QWORD *)v12; *(_DWORD *)(v12 + 8) = *(_DWORD *)(v17 + 8); *v3 = *v2; v9[0] = a1; v11 = v13; v10 = *(_DWORD *)(v17 + 8); v9[1] = *(_QWORD *)v17; entt::basic_dispatcher<std::allocator<void>>::trigger<ChunkCreateEvent &>(&globals::dispatcher, v9); v7 = emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::insert_or_assign( a1 + 712, v17, &v13); v8 = v4; return *(_QWORD *)(emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::iterator::operator->(&v7) + 16); }
create_chunk: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RDI,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x98],RDI ADD RDI,0x2c8 MOV RSI,qword ptr [RBP + -0x18] CALL 0x001a28f0 MOV RDI,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0x20],RAX ADD RDI,0x2c8 CALL 0x001a2970 MOV qword ptr [RBP + -0x28],RAX LEA RDI,[RBP + -0x20] LEA RSI,[RBP + -0x28] CALL 0x001a2940 TEST AL,0x1 JNZ 0x001a1fbc JMP 0x001a1fd2 LAB_001a1fbc: LEA RDI,[RBP + -0x20] CALL 0x001a29a0 MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x8],RAX JMP 0x001a20f4 LAB_001a1fd2: MOV RDI,qword ptr [RBP + -0x98] ADD RDI,0x8 CALL 0x00165540 MOV dword ptr [RBP + -0x2c],EAX MOV EDI,0x2020 CALL 0x0011a930 MOV RDX,qword ptr [RBP + -0x98] MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RBP + -0xa0],RAX MOV ESI,dword ptr [RBP + -0x2c] LAB_001a2006: CALL 0x00191e80 LAB_001a200b: JMP 0x001a200d LAB_001a200d: MOV RDI,qword ptr [RBP + -0x98] MOV RAX,qword ptr [RBP + -0xa0] MOV qword ptr [RBP + -0x38],RAX ADD RDI,0x8 MOV ESI,dword ptr [RBP + -0x2c] CALL 0x001a29c0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0x50],RCX MOV RDX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x50] MOV qword ptr [RCX + 0x10],RDX MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x50] MOV ESI,dword ptr [RDX + 0x8] MOV dword ptr [RCX + 0x8],ESI MOV RDX,qword ptr [RDX] MOV qword ptr [RCX],RDX MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x60],ECX MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x68],RAX LEA RDI,[0x3d1848] LEA RSI,[RBP + -0x70] CALL 0x001a2a30 MOV RDI,qword ptr [RBP + -0x98] ADD RDI,0x2c8 MOV RSI,qword ptr [RBP + -0x18] LEA RDX,[RBP + -0x38] CALL 0x001a2a70 MOV byte ptr [RBP + -0x88],DL MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0x90] MOV qword ptr [RBP + -0x80],RAX MOV AL,byte ptr [RBP + -0x88] MOV byte ptr [RBP + -0x78],AL LEA RDI,[RBP + -0x80] CALL 0x001a29a0 MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x8],RAX JMP 0x001a20f4 LAB_001a20f4: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0xa0 POP RBP RET
/* Dimension::create_chunk(glm::vec<3, int, (glm::qualifier)0> const&) */ int8 __thiscall Dimension::create_chunk(Dimension *this,vec *param_1) { ulong uVar1; Chunk *pCVar2; long lVar3; int1 extraout_DL; int8 local_88; int1 local_80; Dimension *local_78; int8 local_70; int4 local_68; Chunk *local_60; _func_decltype_auto *local_58; Chunk *local_40; int4 local_34; int8 local_30; int8 local_28; vec *local_20; Dimension *local_18; int8 local_10; local_20 = param_1; local_18 = this; local_28 = emhash8:: HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> ::find<glm::vec<3,int,(glm::qualifier)0>> ((HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> *)(this + 0x2c8),param_1); local_30 = emhash8:: HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> ::cend((HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> *)(this + 0x2c8)); uVar1 = emhash8:: HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> ::iterator::operator!=((iterator *)&local_28,(const_iterator *)&local_30); if ((uVar1 & 1) == 0) { local_34 = entt::basic_registry<entt::entity,std::allocator<entt::entity>>::create ((basic_registry<entt::entity,std::allocator<entt::entity>> *)(this + 8)); pCVar2 = (Chunk *)operator_new(0x2020); /* try { // try from 001a2006 to 001a200a has its CatchHandler @ 001a20d5 */ Chunk::Chunk(pCVar2,local_34,this); local_40 = pCVar2; local_58 = entt::basic_registry<entt::entity,std::allocator<entt::entity>>:: emplace<ChunkComponent> ((basic_registry<entt::entity,std::allocator<entt::entity>> *)(this + 8), local_34); *(Chunk **)(local_58 + 0x10) = local_40; *(int4 *)(local_58 + 8) = *(int4 *)(local_20 + 8); *(int8 *)local_58 = *(int8 *)local_20; local_60 = local_40; local_68 = *(int4 *)(local_20 + 8); local_70 = *(int8 *)local_20; local_78 = this; entt::basic_dispatcher<std::allocator<void>>::trigger<ChunkCreateEvent&> ((ChunkCreateEvent *)globals::dispatcher); local_88 = emhash8:: HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> ::insert_or_assign((HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> *)(this + 0x2c8),local_20,&local_40); local_80 = extraout_DL; lVar3 = emhash8:: HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> ::iterator::operator->((iterator *)&local_88); local_10 = *(int8 *)(lVar3 + 0x10); } else { lVar3 = emhash8:: HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> ::iterator::operator->((iterator *)&local_28); local_10 = *(int8 *)(lVar3 + 0x10); } return local_10; }
51,045
Dimension::create_chunk(glm::vec<3, int, (glm::qualifier)0> const&)
untodesu[P]voxelius/game/shared/dimension.cc
Chunk *Dimension::create_chunk(const chunk_pos &cpos) { auto it = m_chunkmap.find(cpos); if(it != m_chunkmap.cend()) { // Chunk already exists return it->second; } auto entity = chunks.create(); auto chunk = new Chunk(entity, this); auto &component = chunks.emplace<ChunkComponent>(entity); component.chunk = chunk; component.cpos = cpos; ChunkCreateEvent event; event.dimension = this; event.chunk = chunk; event.cpos = cpos; globals::dispatcher.trigger(event); return m_chunkmap.insert_or_assign(cpos, std::move(chunk)).first->second; }
O2
cpp
Dimension::create_chunk(glm::vec<3, int, (glm::qualifier)0> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, %rbx movq %rdi, %r15 leaq 0x2c8(%rdi), %r14 movq %r14, %rdi callq 0x38a38 movslq 0x2e8(%r15), %rcx imulq $0x18, %rcx, %rcx addq 0x2d0(%r15), %rcx cmpq %rcx, %rax jne 0x3869b leaq 0xb0(%r15), %rdi callq 0x2a1d8 movl %eax, %ebp movl $0x2020, %edi # imm = 0x2020 callq 0x17740 movq %rax, %r12 movq %rax, %rdi movl %ebp, %esi movq %r15, %rdx callq 0x34ba8 leaq 0x8(%r15), %rdi movq %rsp, %r13 movq %r12, (%r13) movl %ebp, %esi callq 0x38a4e movq %r12, 0x10(%rax) movq (%rbx), %rcx movq %rcx, (%rax) movl 0x8(%rbx), %ecx movl %ecx, 0x8(%rax) leaq 0x8(%rsp), %rsi movq %r15, (%rsi) movq %r12, 0x18(%rsi) movq (%rbx), %rax movq %rax, 0x8(%rsi) movl 0x8(%rbx), %eax movl %eax, 0x10(%rsi) leaq 0xd5940(%rip), %rdi # 0x10dfc8 callq 0x38a9e movq %r14, %rdi movq %rbx, %rsi movq %r13, %rdx callq 0x39d14 movq 0x10(%rax), %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movl $0x2020, %esi # imm = 0x2020 movq %r12, %rdi callq 0x17750 movq %rbx, %rdi callq 0x17cd0
_ZN9Dimension12create_chunkERKN3glm3vecILi3EiLNS0_9qualifierE0EEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rsi mov r15, rdi lea r14, [rdi+2C8h] mov rdi, r14 call _ZN7emhash87HashMapIN3glm3vecILi3EiLNS1_9qualifierE0EEEP5ChunkSt4hashIS4_ESt8equal_toIS4_EE4findIS4_EENSB_8iteratorERKT_; emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::find<glm::vec<3,int,(glm::qualifier)0>>(glm::vec<3,int,(glm::qualifier)0> const&) movsxd rcx, dword ptr [r15+2E8h] imul rcx, 18h add rcx, [r15+2D0h] cmp rax, rcx jnz short loc_3869B lea rdi, [r15+0B0h] call _ZN4entt16basic_sigh_mixinINS_13basic_storageINS_6entityES2_SaIS2_EvEENS_14basic_registryIS2_S3_EEE7emplaceEv; entt::basic_sigh_mixin<entt::basic_storage<entt::entity,entt::entity,std::allocator<entt::entity>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>::emplace(void) mov ebp, eax mov edi, 2020h; unsigned __int64 call __Znwm; operator new(ulong) mov r12, rax mov rdi, rax mov esi, ebp mov rdx, r15 call _ZN5ChunkC2EN4entt6entityEP9Dimension; Chunk::Chunk(entt::entity,Dimension *) lea rdi, [r15+8] mov r13, rsp mov [r13+0], r12 mov esi, ebp call _ZN4entt14basic_registryINS_6entityESaIS1_EE7emplaceI14ChunkComponentJEEEDcS1_DpOT0_ mov [rax+10h], r12 mov rcx, [rbx] mov [rax], rcx mov ecx, [rbx+8] mov [rax+8], ecx lea rsi, [rsp+58h+var_50] mov [rsi], r15 mov [rsi+18h], r12 mov rax, [rbx] mov [rsi+8], rax mov eax, [rbx+8] mov [rsi+10h], eax lea rdi, _ZN7globals10dispatcherE; globals::dispatcher call _ZN4entt16basic_dispatcherISaIvEE7triggerIR16ChunkCreateEventEEvOT_; entt::basic_dispatcher<std::allocator<void>>::trigger<ChunkCreateEvent &>(ChunkCreateEvent &) mov rdi, r14 mov rsi, rbx mov rdx, r13 call _ZN7emhash87HashMapIN3glm3vecILi3EiLNS1_9qualifierE0EEEP5ChunkSt4hashIS4_ESt8equal_toIS4_EE9do_assignIRKS4_S6_EESt4pairINSB_8iteratorEbEOT_OT0_; emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::do_assign<glm::vec<3,int,(glm::qualifier)0> const&,Chunk *>(glm::vec<3,int,(glm::qualifier)0> const&,Chunk * &&) loc_3869B: mov rax, [rax+10h] add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov esi, 2020h; unsigned __int64 mov rdi, r12; void * call __ZdlPvm; operator delete(void *,ulong) mov rdi, rbx call __Unwind_Resume
long long Dimension::create_chunk(long long a1, long long a2) { long long v2; // rax unsigned int v3; // ebp long long v4; // r12 long long v5; // rax _QWORD v7[3]; // [rsp+0h] [rbp-58h] BYREF int v8; // [rsp+18h] [rbp-40h] long long v9; // [rsp+20h] [rbp-38h] v2 = emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::find<glm::vec<3,int,(glm::qualifier)0>>(a1 + 712); if ( v2 == *(_QWORD *)(a1 + 720) + 24LL * *(int *)(a1 + 744) ) { v3 = entt::basic_sigh_mixin<entt::basic_storage<entt::entity,entt::entity,std::allocator<entt::entity>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>::emplace(a1 + 176); v4 = operator new(0x2020uLL); Chunk::Chunk(v4, v3, a1); v7[0] = v4; v5 = entt::basic_registry<entt::entity,std::allocator<entt::entity>>::emplace<ChunkComponent>(a1 + 8, v3); *(_QWORD *)(v5 + 16) = v4; *(_QWORD *)v5 = *(_QWORD *)a2; *(_DWORD *)(v5 + 8) = *(_DWORD *)(a2 + 8); v7[1] = a1; v9 = v4; v7[2] = *(_QWORD *)a2; v8 = *(_DWORD *)(a2 + 8); entt::basic_dispatcher<std::allocator<void>>::trigger<ChunkCreateEvent &>(globals::dispatcher); v2 = emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::do_assign<glm::vec<3,int,(glm::qualifier)0> const&,Chunk *>( a1 + 712, a2, v7); } return *(_QWORD *)(v2 + 16); }
create_chunk: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RSI MOV R15,RDI LEA R14,[RDI + 0x2c8] MOV RDI,R14 CALL 0x00138a38 MOVSXD RCX,dword ptr [R15 + 0x2e8] IMUL RCX,RCX,0x18 ADD RCX,qword ptr [R15 + 0x2d0] CMP RAX,RCX JNZ 0x0013869b LEA RDI,[R15 + 0xb0] CALL 0x0012a1d8 MOV EBP,EAX MOV EDI,0x2020 CALL 0x00117740 MOV R12,RAX LAB_00138639: MOV RDI,RAX MOV ESI,EBP MOV RDX,R15 CALL 0x00134ba8 LAB_00138646: LEA RDI,[R15 + 0x8] MOV R13,RSP MOV qword ptr [R13],R12 MOV ESI,EBP CALL 0x00138a4e MOV qword ptr [RAX + 0x10],R12 MOV RCX,qword ptr [RBX] MOV qword ptr [RAX],RCX MOV ECX,dword ptr [RBX + 0x8] MOV dword ptr [RAX + 0x8],ECX LEA RSI,[RSP + 0x8] MOV qword ptr [RSI],R15 MOV qword ptr [RSI + 0x18],R12 MOV RAX,qword ptr [RBX] MOV qword ptr [RSI + 0x8],RAX MOV EAX,dword ptr [RBX + 0x8] MOV dword ptr [RSI + 0x10],EAX LEA RDI,[0x20dfc8] CALL 0x00138a9e MOV RDI,R14 MOV RSI,RBX MOV RDX,R13 CALL 0x00139d14 LAB_0013869b: MOV RAX,qword ptr [RAX + 0x10] ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Dimension::create_chunk(glm::vec<3, int, (glm::qualifier)0> const&) */ int8 __thiscall Dimension::create_chunk(Dimension *this,vec *param_1) { int4 uVar1; long lVar2; Chunk *pCVar3; _func_decltype_auto *p_Var4; Chunk *local_58; Dimension *local_50; int8 local_48; int4 local_40; Chunk *local_38; lVar2 = emhash8:: HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> ::find<glm::vec<3,int,(glm::qualifier)0>> ((HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> *)(this + 0x2c8),param_1); if (lVar2 == (long)*(int *)(this + 0x2e8) * 0x18 + *(long *)(this + 0x2d0)) { uVar1 = entt:: basic_sigh_mixin<entt::basic_storage<entt::entity,entt::entity,std::allocator<entt::entity>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>> ::emplace((basic_sigh_mixin<entt::basic_storage<entt::entity,entt::entity,std::allocator<entt::entity>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>> *)(this + 0xb0)); pCVar3 = (Chunk *)operator_new(0x2020); /* try { // try from 00138639 to 00138645 has its CatchHandler @ 001386ae */ Chunk::Chunk(pCVar3,uVar1,this); local_58 = pCVar3; p_Var4 = entt::basic_registry<entt::entity,std::allocator<entt::entity>>:: emplace<ChunkComponent> ((basic_registry<entt::entity,std::allocator<entt::entity>> *)(this + 8), uVar1); *(Chunk **)(p_Var4 + 0x10) = pCVar3; *(int8 *)p_Var4 = *(int8 *)param_1; *(int4 *)(p_Var4 + 8) = *(int4 *)(param_1 + 8); local_48 = *(int8 *)param_1; local_40 = *(int4 *)(param_1 + 8); local_50 = this; local_38 = pCVar3; entt::basic_dispatcher<std::allocator<void>>::trigger<ChunkCreateEvent&> ((basic_dispatcher<std::allocator<void>> *)globals::dispatcher, (ChunkCreateEvent *)&local_50); lVar2 = emhash8:: HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> ::do_assign<glm::vec<3,int,(glm::qualifier)0>const&,Chunk*> ((HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> *)(this + 0x2c8),param_1,&local_58); } return *(int8 *)(lVar2 + 0x10); }
51,046
init_one_value
eloqsql/mysys/my_getopt.c
static void init_one_value(const struct my_option *option, void *variable, longlong value) { DBUG_ENTER("init_one_value"); switch ((option->var_type & GET_TYPE_MASK)) { case GET_BOOL: *((my_bool*) variable)= (my_bool) value; break; case GET_INT: *((int*) variable)= (int) getopt_ll_limit_value((int) value, option, NULL); break; case GET_ENUM: *((ulong*) variable)= (ulong) value; break; case GET_UINT: *((uint*) variable)= (uint) getopt_ull_limit_value((uint) value, option, NULL); break; case GET_LONG: *((long*) variable)= (long) getopt_ll_limit_value((long) value, option, NULL); break; case GET_ULONG: *((ulong*) variable)= (ulong) getopt_ull_limit_value((ulong) value, option, NULL); break; case GET_LL: *((longlong*) variable)= (longlong) getopt_ll_limit_value((longlong) value, option, NULL); break; case GET_ULL: *((ulonglong*) variable)= (ulonglong) getopt_ull_limit_value((ulonglong) value, option, NULL); break; case GET_SET: case GET_FLAGSET: *((ulonglong*) variable)= (ulonglong) value; break; case GET_BIT: { ulonglong bit= (option->block_size >= 0 ? option->block_size : -option->block_size); if (option->block_size < 0) value= !value; if (value) (*(ulonglong*)variable)|= bit; else (*(ulonglong*)variable)&= ~bit; break; } case GET_DOUBLE: *((double*) variable)= getopt_ulonglong2double(value); break; case GET_STR: /* Do not clear variable value if it has no default value. The default value may already be set. NOTE: To avoid compiler warnings, we first cast longlong to intptr, so that the value has the same size as a pointer. */ if ((char*) (intptr) value) *((char**) variable)= (char*) (intptr) value; break; case GET_STR_ALLOC: /* Do not clear variable value if it has no default value. The default value may already be set. NOTE: To avoid compiler warnings, we first cast longlong to intptr, so that the value has the same size as a pointer. */ if ((char*) (intptr) value) { char **pstr= (char **) variable; my_free(*pstr); *pstr= my_strdup(key_memory_defaults, (char*) (intptr) value, MYF(MY_WME)); } break; default: /* dummy default to avoid compiler warnings */ break; } DBUG_VOID_RETURN; }
O0
c
init_one_value: 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 0x30(%rax), %rax andl $0x3f, %eax addq $-0x2, %rax movq %rax, -0x30(%rbp) subq $0xe, %rax ja 0x27b8e movq -0x30(%rbp), %rax leaq 0x5e024(%rip), %rcx # 0x859d0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x18(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x27b90 movq -0x18(%rbp), %rax movslq %eax, %rdi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x28350 movl %eax, %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) jmp 0x27b90 movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x27b90 movq -0x18(%rbp), %rax movl %eax, %eax movl %eax, %edi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x285d0 movl %eax, %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) jmp 0x27b90 movq -0x18(%rbp), %rdi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x28350 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x27b90 movq -0x18(%rbp), %rdi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x285d0 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x27b90 movq -0x18(%rbp), %rdi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x28350 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x27b90 movq -0x18(%rbp), %rdi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x285d0 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x27b90 movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x27b90 movq -0x8(%rbp), %rax cmpq $0x0, 0x60(%rax) jl 0x27ac2 movq -0x8(%rbp), %rax movq 0x60(%rax), %rax movq %rax, -0x38(%rbp) jmp 0x27ad0 movq -0x8(%rbp), %rcx xorl %eax, %eax subq 0x60(%rcx), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x60(%rax) jge 0x27af8 cmpq $0x0, -0x18(%rbp) setne %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x27b0f movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax orq (%rax), %rcx movq %rcx, (%rax) jmp 0x27b21 movq -0x20(%rbp), %rcx xorq $-0x1, %rcx movq -0x10(%rbp), %rax andq (%rax), %rcx movq %rcx, (%rax) jmp 0x27b90 movq -0x18(%rbp), %rdi callq 0x26570 movq -0x10(%rbp), %rax movsd %xmm0, (%rax) jmp 0x27b90 movq -0x18(%rbp), %rax cmpq $0x0, %rax je 0x27b4b movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x27b90 movq -0x18(%rbp), %rax cmpq $0x0, %rax je 0x27b8c movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq (%rax), %rdi callq 0x2a830 leaq 0x3668e6(%rip), %rax # 0x38e458 movl (%rax), %edi movq -0x18(%rbp), %rsi movl $0x10, %edx callq 0x2a930 movq %rax, %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) jmp 0x27b90 jmp 0x27b90 jmp 0x27b92 jmp 0x27b94 addq $0x40, %rsp popq %rbp retq nopw (%rax,%rax)
init_one_value: 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+30h] and eax, 3Fh add rax, 0FFFFFFFFFFFFFFFEh; switch 15 cases mov [rbp+var_30], rax sub rax, 0Eh ja def_279B3; jumptable 00000000000279B3 default case, case 11 mov rax, [rbp+var_30] lea rcx, jpt_279B3 movsxd rax, ds:(jpt_279B3 - 859D0h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_279B5: mov rax, [rbp+var_18]; jumptable 00000000000279B3 case 2 mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp loc_27B90 loc_279C6: mov rax, [rbp+var_18]; jumptable 00000000000279B3 case 3 movsxd rdi, eax mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call getopt_ll_limit_value mov ecx, eax mov rax, [rbp+var_10] mov [rax], ecx jmp loc_27B90 loc_279E7: mov rcx, [rbp+var_18]; jumptable 00000000000279B3 case 12 mov rax, [rbp+var_10] mov [rax], rcx jmp loc_27B90 loc_279F7: mov rax, [rbp+var_18]; jumptable 00000000000279B3 case 4 mov eax, eax mov edi, eax mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call getopt_ull_limit_value mov ecx, eax mov rax, [rbp+var_10] mov [rax], ecx jmp loc_27B90 loc_27A19: mov rdi, [rbp+var_18]; jumptable 00000000000279B3 case 5 mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call getopt_ll_limit_value mov rcx, rax mov rax, [rbp+var_10] mov [rax], rcx jmp loc_27B90 loc_27A39: mov rdi, [rbp+var_18]; jumptable 00000000000279B3 case 6 mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call getopt_ull_limit_value mov rcx, rax mov rax, [rbp+var_10] mov [rax], rcx jmp loc_27B90 loc_27A59: mov rdi, [rbp+var_18]; jumptable 00000000000279B3 case 7 mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call getopt_ll_limit_value mov rcx, rax mov rax, [rbp+var_10] mov [rax], rcx jmp loc_27B90 loc_27A79: mov rdi, [rbp+var_18]; jumptable 00000000000279B3 case 8 mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call getopt_ull_limit_value mov rcx, rax mov rax, [rbp+var_10] mov [rax], rcx jmp loc_27B90 loc_27A99: mov rcx, [rbp+var_18]; jumptable 00000000000279B3 cases 13,15 mov rax, [rbp+var_10] mov [rax], rcx jmp loc_27B90 loc_27AA9: mov rax, [rbp+var_8]; jumptable 00000000000279B3 case 16 cmp qword ptr [rax+60h], 0 jl short loc_27AC2 mov rax, [rbp+var_8] mov rax, [rax+60h] mov [rbp+var_38], rax jmp short loc_27AD0 loc_27AC2: mov rcx, [rbp+var_8] xor eax, eax sub rax, [rcx+60h] mov [rbp+var_38], rax loc_27AD0: mov rax, [rbp+var_38] mov [rbp+var_20], rax mov rax, [rbp+var_8] cmp qword ptr [rax+60h], 0 jge short loc_27AF8 cmp [rbp+var_18], 0 setnz al xor al, 0FFh and al, 1 movzx eax, al cdqe mov [rbp+var_18], rax loc_27AF8: cmp [rbp+var_18], 0 jz short loc_27B0F mov rcx, [rbp+var_20] mov rax, [rbp+var_10] or rcx, [rax] mov [rax], rcx jmp short loc_27B21 loc_27B0F: mov rcx, [rbp+var_20] xor rcx, 0FFFFFFFFFFFFFFFFh mov rax, [rbp+var_10] and rcx, [rax] mov [rax], rcx loc_27B21: jmp short loc_27B90 loc_27B23: mov rdi, [rbp+var_18]; jumptable 00000000000279B3 case 14 call getopt_ulonglong2double mov rax, [rbp+var_10] movsd qword ptr [rax], xmm0 jmp short loc_27B90 loc_27B36: mov rax, [rbp+var_18]; jumptable 00000000000279B3 case 9 cmp rax, 0 jz short loc_27B4B mov rcx, [rbp+var_18] mov rax, [rbp+var_10] mov [rax], rcx loc_27B4B: jmp short loc_27B90 loc_27B4D: mov rax, [rbp+var_18]; jumptable 00000000000279B3 case 10 cmp rax, 0 jz short loc_27B8C mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_28] mov rdi, [rax] call my_free lea rax, key_memory_defaults mov edi, [rax] mov rsi, [rbp+var_18] mov edx, 10h call my_strdup mov rcx, rax mov rax, [rbp+var_28] mov [rax], rcx loc_27B8C: jmp short loc_27B90 def_279B3: jmp short $+2; jumptable 00000000000279B3 default case, case 11 loc_27B90: jmp short $+2 loc_27B92: jmp short $+2 loc_27B94: add rsp, 40h pop rbp retn
long long init_one_value(long long a1, long long *a2, long long a3) { long long result; // rax int v4; // ecx int v5; // ecx long long v6; // rcx long long v7; // rcx long long v8; // rcx double v9; // xmm0_8 long long v10; // rcx long long v11; // [rsp+8h] [rbp-38h] _BOOL8 v12; // [rsp+28h] [rbp-18h] v12 = a3; result = (*(_QWORD *)(a1 + 48) & 0x3FLL) - 2; switch ( *(_QWORD *)(a1 + 48) & 0x3FLL ) { case 2LL: result = (long long)a2; *(_BYTE *)a2 = a3; break; case 3LL: v4 = getopt_ll_limit_value((int)a3, a1, 0LL); result = (long long)a2; *(_DWORD *)a2 = v4; break; case 4LL: v5 = getopt_ull_limit_value((unsigned int)a3, a1, 0LL); result = (long long)a2; *(_DWORD *)a2 = v5; break; case 5LL: case 7LL: v6 = getopt_ll_limit_value(a3, a1, 0LL); result = (long long)a2; *a2 = v6; break; case 6LL: case 8LL: v7 = getopt_ull_limit_value(a3, a1, 0LL); result = (long long)a2; *a2 = v7; break; case 9LL: result = a3; if ( a3 ) { result = (long long)a2; *a2 = a3; } break; case 0xALL: result = a3; if ( a3 ) { my_free(*a2); v10 = my_strdup(key_memory_defaults, v12, 16LL); result = (long long)a2; *a2 = v10; } break; case 0xCLL: result = (long long)a2; *a2 = a3; break; case 0xDLL: case 0xFLL: result = (long long)a2; *a2 = a3; break; case 0xELL: v9 = getopt_ulonglong2double(a3); result = (long long)a2; *(double *)a2 = v9; break; case 0x10LL: if ( *(long long *)(a1 + 96) < 0 ) v11 = -*(_QWORD *)(a1 + 96); else v11 = *(_QWORD *)(a1 + 96); if ( *(long long *)(a1 + 96) < 0 ) v12 = a3 == 0; result = (long long)a2; if ( v12 ) v8 = *a2 | v11; else v8 = *a2 & ~v11; *a2 = v8; break; default: return result; } return result; }
init_one_value: 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 + 0x30] AND EAX,0x3f ADD RAX,-0x2 MOV qword ptr [RBP + -0x30],RAX SUB RAX,0xe JA 0x00127b8e MOV RAX,qword ptr [RBP + -0x30] LEA RCX,[0x1859d0] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_2: MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x00127b90 caseD_3: MOV RAX,qword ptr [RBP + -0x18] MOVSXD RDI,EAX MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x00128350 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX JMP 0x00127b90 caseD_c: MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x00127b90 caseD_4: MOV RAX,qword ptr [RBP + -0x18] MOV EAX,EAX MOV EDI,EAX MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x001285d0 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX JMP 0x00127b90 caseD_5: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x00128350 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x00127b90 caseD_6: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x001285d0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x00127b90 caseD_7: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x00128350 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x00127b90 caseD_8: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x001285d0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x00127b90 caseD_d: MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x00127b90 caseD_10: MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x60],0x0 JL 0x00127ac2 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x60] MOV qword ptr [RBP + -0x38],RAX JMP 0x00127ad0 LAB_00127ac2: MOV RCX,qword ptr [RBP + -0x8] XOR EAX,EAX SUB RAX,qword ptr [RCX + 0x60] MOV qword ptr [RBP + -0x38],RAX LAB_00127ad0: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x60],0x0 JGE 0x00127af8 CMP qword ptr [RBP + -0x18],0x0 SETNZ AL XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE MOV qword ptr [RBP + -0x18],RAX LAB_00127af8: CMP qword ptr [RBP + -0x18],0x0 JZ 0x00127b0f MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] OR RCX,qword ptr [RAX] MOV qword ptr [RAX],RCX JMP 0x00127b21 LAB_00127b0f: MOV RCX,qword ptr [RBP + -0x20] XOR RCX,-0x1 MOV RAX,qword ptr [RBP + -0x10] AND RCX,qword ptr [RAX] MOV qword ptr [RAX],RCX LAB_00127b21: JMP 0x00127b90 caseD_e: MOV RDI,qword ptr [RBP + -0x18] CALL 0x00126570 MOV RAX,qword ptr [RBP + -0x10] MOVSD qword ptr [RAX],XMM0 JMP 0x00127b90 caseD_9: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,0x0 JZ 0x00127b4b MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX LAB_00127b4b: JMP 0x00127b90 caseD_a: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,0x0 JZ 0x00127b8c MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX] CALL 0x0012a830 LEA RAX,[0x48e458] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,0x10 CALL 0x0012a930 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX LAB_00127b8c: JMP 0x00127b90 caseD_b: JMP 0x00127b90 LAB_00127b90: JMP 0x00127b92 LAB_00127b92: JMP 0x00127b94 LAB_00127b94: ADD RSP,0x40 POP RBP RET
void init_one_value(long param_1,ulong *param_2,ulong param_3) { int4 uVar1; ulong uVar2; ulong local_40; ulong local_20; switch((uint)*(int8 *)(param_1 + 0x30) & 0x3f) { case 2: *(char *)param_2 = (char)param_3; break; case 3: uVar1 = getopt_ll_limit_value((long)(int)param_3,param_1,0); *(int4 *)param_2 = uVar1; break; case 4: uVar1 = getopt_ull_limit_value(param_3 & 0xffffffff,param_1,0); *(int4 *)param_2 = uVar1; break; case 5: uVar2 = getopt_ll_limit_value(param_3,param_1,0); *param_2 = uVar2; break; case 6: uVar2 = getopt_ull_limit_value(param_3,param_1,0); *param_2 = uVar2; break; case 7: uVar2 = getopt_ll_limit_value(param_3,param_1,0); *param_2 = uVar2; break; case 8: uVar2 = getopt_ull_limit_value(param_3,param_1,0); *param_2 = uVar2; break; case 9: if (param_3 != 0) { *param_2 = param_3; } break; case 10: if (param_3 != 0) { my_free(*param_2); uVar2 = my_strdup(key_memory_defaults,param_3,0x10); *param_2 = uVar2; } break; default: break; case 0xc: *param_2 = param_3; break; case 0xd: case 0xf: *param_2 = param_3; break; case 0xe: uVar2 = getopt_ulonglong2double(param_3); *param_2 = uVar2; break; case 0x10: if (*(long *)(param_1 + 0x60) < 0) { local_40 = -*(long *)(param_1 + 0x60); } else { local_40 = *(ulong *)(param_1 + 0x60); } local_20 = param_3; if (*(long *)(param_1 + 0x60) < 0) { local_20 = (ulong)(int)(uint)((param_3 != 0 ^ 0xffU) & 1); } if (local_20 == 0) { *param_2 = (local_40 ^ 0xffffffffffffffff) & *param_2; } else { *param_2 = local_40 | *param_2; } } return; }
51,047
js_bytecode_function_mark
bluesky950520[P]quickjs/quickjs.c
static void js_bytecode_function_mark(JSRuntime *rt, JSValue val, JS_MarkFunc *mark_func) { JSObject *p = JS_VALUE_GET_OBJ(val); JSVarRef **var_refs = p->u.func.var_refs; JSFunctionBytecode *b = p->u.func.function_bytecode; int i; if (p->u.func.home_object) { JS_MarkValue(rt, JS_MKPTR(JS_TAG_OBJECT, p->u.func.home_object), mark_func); } if (b) { if (var_refs) { for(i = 0; i < b->closure_var_count; i++) { JSVarRef *var_ref = var_refs[i]; if (var_ref && var_ref->is_detached) { mark_func(rt, &var_ref->header); } } } /* must mark the function bytecode because template objects may be part of a cycle */ JS_MarkValue(rt, JS_MKPTR(JS_TAG_FUNCTION_BYTECODE, b), mark_func); } }
O0
c
js_bytecode_function_mark: subq $0x68, %rsp movq %rsi, 0x58(%rsp) movq %rdx, 0x60(%rsp) movq %rdi, 0x50(%rsp) movq %rcx, 0x48(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x40(%rsp), %rax movq 0x38(%rax), %rax movq %rax, 0x38(%rsp) movq 0x40(%rsp), %rax movq 0x30(%rax), %rax movq %rax, 0x30(%rsp) movq 0x40(%rsp), %rax cmpq $0x0, 0x40(%rax) je 0x5b1ca movq 0x50(%rsp), %rdi movq 0x40(%rsp), %rax movq 0x40(%rax), %rax movq %rax, 0x18(%rsp) movq $-0x1, 0x20(%rsp) movq 0x48(%rsp), %rcx movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx callq 0x2abe0 cmpq $0x0, 0x30(%rsp) je 0x5b26d cmpq $0x0, 0x38(%rsp) je 0x5b243 movl $0x0, 0x2c(%rsp) movl 0x2c(%rsp), %eax movq 0x30(%rsp), %rcx cmpl 0x5c(%rcx), %eax jge 0x5b241 movq 0x38(%rsp), %rax movslq 0x2c(%rsp), %rcx movq (%rax,%rcx,8), %rax movq %rax, 0x10(%rsp) cmpq $0x0, 0x10(%rsp) je 0x5b232 movq 0x10(%rsp), %rax movb 0x5(%rax), %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x5b232 movq 0x48(%rsp), %rax movq 0x50(%rsp), %rdi movq 0x10(%rsp), %rsi callq *%rax jmp 0x5b234 movl 0x2c(%rsp), %eax addl $0x1, %eax movl %eax, 0x2c(%rsp) jmp 0x5b1e6 jmp 0x5b243 movq 0x50(%rsp), %rdi movq 0x30(%rsp), %rax movq %rax, (%rsp) movq $-0x2, 0x8(%rsp) movq 0x48(%rsp), %rcx movq (%rsp), %rsi movq 0x8(%rsp), %rdx callq 0x2abe0 addq $0x68, %rsp retq nopw %cs:(%rax,%rax)
js_bytecode_function_mark: sub rsp, 68h mov [rsp+68h+var_10], rsi mov [rsp+68h+var_8], rdx mov [rsp+68h+var_18], rdi mov [rsp+68h+var_20], rcx mov rax, [rsp+68h+var_10] mov [rsp+68h+var_28], rax mov rax, [rsp+68h+var_28] mov rax, [rax+38h] mov [rsp+68h+var_30], rax mov rax, [rsp+68h+var_28] mov rax, [rax+30h] mov [rsp+68h+var_38], rax mov rax, [rsp+68h+var_28] cmp qword ptr [rax+40h], 0 jz short loc_5B1CA mov rdi, [rsp+68h+var_18] mov rax, [rsp+68h+var_28] mov rax, [rax+40h] mov [rsp+68h+var_50], rax mov [rsp+68h+var_48], 0FFFFFFFFFFFFFFFFh mov rcx, [rsp+68h+var_20] mov rsi, [rsp+68h+var_50] mov rdx, [rsp+68h+var_48] call JS_MarkValue loc_5B1CA: cmp [rsp+68h+var_38], 0 jz loc_5B26D cmp [rsp+68h+var_30], 0 jz short loc_5B243 mov [rsp+68h+var_3C], 0 loc_5B1E6: mov eax, [rsp+68h+var_3C] mov rcx, [rsp+68h+var_38] cmp eax, [rcx+5Ch] jge short loc_5B241 mov rax, [rsp+68h+var_30] movsxd rcx, [rsp+68h+var_3C] mov rax, [rax+rcx*8] mov [rsp+68h+var_58], rax cmp [rsp+68h+var_58], 0 jz short loc_5B232 mov rax, [rsp+68h+var_58] mov al, [rax+5] and al, 1 movzx eax, al cmp eax, 0 jz short loc_5B232 mov rax, [rsp+68h+var_20] mov rdi, [rsp+68h+var_18] mov rsi, [rsp+68h+var_58] call rax loc_5B232: jmp short $+2 loc_5B234: mov eax, [rsp+68h+var_3C] add eax, 1 mov [rsp+68h+var_3C], eax jmp short loc_5B1E6 loc_5B241: jmp short $+2 loc_5B243: mov rdi, [rsp+68h+var_18] mov rax, [rsp+68h+var_38] mov [rsp+68h+var_68], rax mov [rsp+68h+var_60], 0FFFFFFFFFFFFFFFEh mov rcx, [rsp+68h+var_20] mov rsi, [rsp+68h+var_68] mov rdx, [rsp+68h+var_60] call JS_MarkValue loc_5B26D: add rsp, 68h retn
long long js_bytecode_function_mark( long long a1, _QWORD *a2, long long a3, long long ( *a4)(long long, long long)) { long long result; // rax long long v5; // [rsp+10h] [rbp-58h] int i; // [rsp+2Ch] [rbp-3Ch] long long v7; // [rsp+30h] [rbp-38h] long long v8; // [rsp+38h] [rbp-30h] v8 = a2[7]; v7 = a2[6]; result = (long long)a2; if ( a2[8] ) result = JS_MarkValue(a1, a2[8], -1LL, a4); if ( v7 ) { if ( v8 ) { for ( i = 0; i < *(_DWORD *)(v7 + 92); ++i ) { v5 = *(_QWORD *)(v8 + 8LL * i); if ( v5 ) { if ( (*(_BYTE *)(v5 + 5) & 1) != 0 ) a4(a1, v5); } } } return JS_MarkValue(a1, v7, -2LL, a4); } return result; }
js_bytecode_function_mark: SUB RSP,0x68 MOV qword ptr [RSP + 0x58],RSI MOV qword ptr [RSP + 0x60],RDX MOV qword ptr [RSP + 0x50],RDI MOV qword ptr [RSP + 0x48],RCX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX + 0x38] MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + 0x30],RAX MOV RAX,qword ptr [RSP + 0x40] CMP qword ptr [RAX + 0x40],0x0 JZ 0x0015b1ca MOV RDI,qword ptr [RSP + 0x50] MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX + 0x40] MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],-0x1 MOV RCX,qword ptr [RSP + 0x48] MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] CALL 0x0012abe0 LAB_0015b1ca: CMP qword ptr [RSP + 0x30],0x0 JZ 0x0015b26d CMP qword ptr [RSP + 0x38],0x0 JZ 0x0015b243 MOV dword ptr [RSP + 0x2c],0x0 LAB_0015b1e6: MOV EAX,dword ptr [RSP + 0x2c] MOV RCX,qword ptr [RSP + 0x30] CMP EAX,dword ptr [RCX + 0x5c] JGE 0x0015b241 MOV RAX,qword ptr [RSP + 0x38] MOVSXD RCX,dword ptr [RSP + 0x2c] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RSP + 0x10],RAX CMP qword ptr [RSP + 0x10],0x0 JZ 0x0015b232 MOV RAX,qword ptr [RSP + 0x10] MOV AL,byte ptr [RAX + 0x5] AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x0015b232 MOV RAX,qword ptr [RSP + 0x48] MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x10] CALL RAX LAB_0015b232: JMP 0x0015b234 LAB_0015b234: MOV EAX,dword ptr [RSP + 0x2c] ADD EAX,0x1 MOV dword ptr [RSP + 0x2c],EAX JMP 0x0015b1e6 LAB_0015b241: JMP 0x0015b243 LAB_0015b243: MOV RDI,qword ptr [RSP + 0x50] MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],-0x2 MOV RCX,qword ptr [RSP + 0x48] MOV RSI,qword ptr [RSP] MOV RDX,qword ptr [RSP + 0x8] CALL 0x0012abe0 LAB_0015b26d: ADD RSP,0x68 RET
void js_bytecode_function_mark(int8 param_1,long param_2,int8 param_3,code *param_4) { long lVar1; long lVar2; long lVar3; int local_3c; lVar1 = *(long *)(param_2 + 0x38); lVar2 = *(long *)(param_2 + 0x30); if (*(long *)(param_2 + 0x40) != 0) { JS_MarkValue(param_1,*(int8 *)(param_2 + 0x40),0xffffffffffffffff,param_4); } if (lVar2 != 0) { if (lVar1 != 0) { for (local_3c = 0; local_3c < *(int *)(lVar2 + 0x5c); local_3c = local_3c + 1) { lVar3 = *(long *)(lVar1 + (long)local_3c * 8); if ((lVar3 != 0) && ((*(byte *)(lVar3 + 5) & 1) != 0)) { (*param_4)(param_1,lVar3); } } } JS_MarkValue(param_1,lVar2,0xfffffffffffffffe,param_4); } return; }
51,048
js_bytecode_function_mark
bluesky950520[P]quickjs/quickjs.c
static void js_bytecode_function_mark(JSRuntime *rt, JSValue val, JS_MarkFunc *mark_func) { JSObject *p = JS_VALUE_GET_OBJ(val); JSVarRef **var_refs = p->u.func.var_refs; JSFunctionBytecode *b = p->u.func.function_bytecode; int i; if (p->u.func.home_object) { JS_MarkValue(rt, JS_MKPTR(JS_TAG_OBJECT, p->u.func.home_object), mark_func); } if (b) { if (var_refs) { for(i = 0; i < b->closure_var_count; i++) { JSVarRef *var_ref = var_refs[i]; if (var_ref && var_ref->is_detached) { mark_func(rt, &var_ref->header); } } } /* must mark the function bytecode because template objects may be part of a cycle */ JS_MarkValue(rt, JS_MKPTR(JS_TAG_FUNCTION_BYTECODE, b), mark_func); } }
O1
c
js_bytecode_function_mark: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdi, %r14 movq 0x30(%rsi), %rbx movq 0x38(%rsi), %r15 movq 0x40(%rsi), %rsi testq %rsi, %rsi movq %rcx, %r13 je 0x3a93f movq %r14, %rdi callq *%r13 movq %r13, %rcx testq %rbx, %rbx je 0x3a987 testq %r15, %r15 je 0x3a976 cmpl $0x0, 0x5c(%rbx) jle 0x3a976 xorl %r12d, %r12d movq (%r15,%r12,8), %rsi testq %rsi, %rsi je 0x3a96a testb $0x1, 0x5(%rsi) je 0x3a96a movq %r14, %rdi callq *%r13 movq %r13, %rcx incq %r12 movslq 0x5c(%rbx), %rax cmpq %rax, %r12 jl 0x3a952 movq %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_bytecode_function_mark: push r15 push r14 push r13 push r12 push rbx mov r14, rdi mov rbx, [rsi+30h] mov r15, [rsi+38h] mov rsi, [rsi+40h] test rsi, rsi mov r13, rcx jz short loc_3A93F mov rdi, r14 call r13 mov rcx, r13 loc_3A93F: test rbx, rbx jz short loc_3A987 test r15, r15 jz short loc_3A976 cmp dword ptr [rbx+5Ch], 0 jle short loc_3A976 xor r12d, r12d loc_3A952: mov rsi, [r15+r12*8] test rsi, rsi jz short loc_3A96A test byte ptr [rsi+5], 1 jz short loc_3A96A mov rdi, r14 call r13 mov rcx, r13 loc_3A96A: inc r12 movsxd rax, dword ptr [rbx+5Ch] cmp r12, rax jl short loc_3A952 loc_3A976: mov rdi, r14 mov rsi, rbx pop rbx pop r12 pop r13 pop r14 pop r15 jmp rcx loc_3A987: pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long js_bytecode_function_mark(long long a1, _QWORD *a2, long long a3, void ( *a4)(_QWORD)) { long long v4; // rbx long long v5; // r15 void ( *v6)(_QWORD); // r13 long long result; // rax long long v8; // r12 long long v9; // rsi v4 = a2[6]; v5 = a2[7]; v6 = a4; if ( a2[8] ) { result = ((long long ( *)(long long))a4)(a1); a4 = v6; } if ( v4 ) { if ( v5 && *(int *)(v4 + 92) > 0 ) { v8 = 0LL; do { v9 = *(_QWORD *)(v5 + 8 * v8); if ( v9 ) { if ( (*(_BYTE *)(v9 + 5) & 1) != 0 ) { v6(a1); a4 = v6; } } ++v8; } while ( v8 < *(int *)(v4 + 92) ); } return ((long long ( *)(long long, long long))a4)(a1, v4); } return result; }
js_bytecode_function_mark: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R14,RDI MOV RBX,qword ptr [RSI + 0x30] MOV R15,qword ptr [RSI + 0x38] MOV RSI,qword ptr [RSI + 0x40] TEST RSI,RSI MOV R13,RCX JZ 0x0013a93f MOV RDI,R14 CALL R13 MOV RCX,R13 LAB_0013a93f: TEST RBX,RBX JZ 0x0013a987 TEST R15,R15 JZ 0x0013a976 CMP dword ptr [RBX + 0x5c],0x0 JLE 0x0013a976 XOR R12D,R12D LAB_0013a952: MOV RSI,qword ptr [R15 + R12*0x8] TEST RSI,RSI JZ 0x0013a96a TEST byte ptr [RSI + 0x5],0x1 JZ 0x0013a96a MOV RDI,R14 CALL R13 MOV RCX,R13 LAB_0013a96a: INC R12 MOVSXD RAX,dword ptr [RBX + 0x5c] CMP R12,RAX JL 0x0013a952 LAB_0013a976: MOV RDI,R14 MOV RSI,RBX POP RBX POP R12 POP R13 POP R14 POP R15 JMP RCX LAB_0013a987: POP RBX POP R12 POP R13 POP R14 POP R15 RET
void js_bytecode_function_mark (int8 param_1,long param_2,int8 param_3,code *UNRECOVERED_JUMPTABLE) { long lVar1; long lVar2; long lVar3; int8 extraout_RDX; int8 extraout_RDX_00; long lVar4; lVar1 = *(long *)(param_2 + 0x30); lVar2 = *(long *)(param_2 + 0x38); if (*(long *)(param_2 + 0x40) != 0) { (*UNRECOVERED_JUMPTABLE)(param_1); param_3 = extraout_RDX; } if (lVar1 != 0) { if ((lVar2 != 0) && (0 < *(int *)(lVar1 + 0x5c))) { lVar4 = 0; do { lVar3 = *(long *)(lVar2 + lVar4 * 8); if ((lVar3 != 0) && ((*(byte *)(lVar3 + 5) & 1) != 0)) { (*UNRECOVERED_JUMPTABLE)(param_1); param_3 = extraout_RDX_00; } lVar4 = lVar4 + 1; } while (lVar4 < *(int *)(lVar1 + 0x5c)); } /* WARNING: Could not recover jumptable at 0x0013a985. Too many branches */ /* WARNING: Treating indirect jump as call */ (*UNRECOVERED_JUMPTABLE)(param_1,lVar1,param_3,UNRECOVERED_JUMPTABLE); return; } return; }
51,049
stbi_zlib_decode_malloc_guesssize_headerflag
llama.cpp/examples/llava/../../common/stb_image.h
STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header) { stbi__zbuf a; char *p = (char *) stbi__malloc(initial_size); if (p == NULL) return NULL; a.zbuffer = (stbi_uc *) buffer; a.zbuffer_end = (stbi_uc *) buffer + len; if (stbi__do_zlib(&a, p, initial_size, 1, parse_header)) { if (outlen) *outlen = (int) (a.zout - a.zout_start); return a.zout_start; } else { STBI_FREE(a.zout_start); return NULL; } }
O3
c
stbi_zlib_decode_malloc_guesssize_headerflag: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1010, %rsp # imm = 0x1010 movl %r8d, %ebp movq %rcx, %rbx movl %edx, %r14d movl %esi, %r12d movq %rdi, %r15 movslq %edx, %rdi callq 0x1da90 testq %rax, %rax je 0x2399c leaq 0x8(%rsp), %rdi movq %r15, (%rdi) movslq %r12d, %rcx addq %r15, %rcx movq %rcx, 0x8(%rdi) movq %rax, %rsi movl %r14d, %edx movl $0x1, %ecx movl %ebp, %r8d callq 0x22e97 testl %eax, %eax je 0x23992 testq %rbx, %rbx je 0x239ae movl 0x28(%rsp), %ecx movq 0x30(%rsp), %rax subl %eax, %ecx movl %ecx, (%rbx) jmp 0x2399e movq 0x30(%rsp), %rdi callq 0x1d810 xorl %eax, %eax addq $0x1010, %rsp # imm = 0x1010 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq 0x30(%rsp), %rax jmp 0x2399e
stbi_zlib_decode_malloc_guesssize_headerflag: push rbp push r15 push r14 push r12 push rbx sub rsp, 1010h mov ebp, r8d mov rbx, rcx mov r14d, edx mov r12d, esi mov r15, rdi movsxd rdi, edx call _malloc test rax, rax jz short loc_2399C lea rdi, [rsp+1038h+var_1030] mov [rdi], r15 movsxd rcx, r12d add rcx, r15 mov [rdi+8], rcx mov rsi, rax mov edx, r14d mov ecx, 1 mov r8d, ebp call _ZL13stbi__do_zlibP10stbi__zbufPciii; stbi__do_zlib(stbi__zbuf *,char *,int,int,int) test eax, eax jz short loc_23992 test rbx, rbx jz short loc_239AE mov ecx, [rsp+1038h+var_1010] mov rax, [rsp+1038h+var_1008] sub ecx, eax mov [rbx], ecx jmp short loc_2399E loc_23992: mov rdi, [rsp+1038h+var_1008] call _free loc_2399C: xor eax, eax loc_2399E: add rsp, 1010h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_239AE: mov rax, [rsp+1038h+var_1008] jmp short loc_2399E
long long stbi_zlib_decode_malloc_guesssize_headerflag( unsigned __int8 *a1, int a2, int a3, _DWORD *a4, int a5) { unsigned __int8 *v8; // rax long long result; // rax unsigned __int8 *v10[4]; // [rsp+8h] [rbp-1030h] BYREF int v11; // [rsp+28h] [rbp-1010h] long long v12; // [rsp+30h] [rbp-1008h] v8 = (unsigned __int8 *)malloc(a3); if ( !v8 ) return 0LL; v10[0] = a1; v10[1] = &a1[a2]; if ( !(unsigned int)stbi__do_zlib(v10, v8, a3, 1, a5) ) { free(v12); return 0LL; } result = v12; if ( a4 ) *a4 = v11 - v12; return result; }
stbi_zlib_decode_malloc_guesssize_headerflag: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x1010 MOV EBP,R8D MOV RBX,RCX MOV R14D,EDX MOV R12D,ESI MOV R15,RDI MOVSXD RDI,EDX CALL 0x0011da90 TEST RAX,RAX JZ 0x0012399c LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],R15 MOVSXD RCX,R12D ADD RCX,R15 MOV qword ptr [RDI + 0x8],RCX MOV RSI,RAX MOV EDX,R14D MOV ECX,0x1 MOV R8D,EBP CALL 0x00122e97 TEST EAX,EAX JZ 0x00123992 TEST RBX,RBX JZ 0x001239ae MOV ECX,dword ptr [RSP + 0x28] MOV RAX,qword ptr [RSP + 0x30] SUB ECX,EAX MOV dword ptr [RBX],ECX JMP 0x0012399e LAB_00123992: MOV RDI,qword ptr [RSP + 0x30] CALL 0x0011d810 LAB_0012399c: XOR EAX,EAX LAB_0012399e: ADD RSP,0x1010 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001239ae: MOV RAX,qword ptr [RSP + 0x30] JMP 0x0012399e
void * stbi_zlib_decode_malloc_guesssize_headerflag (long param_1,int param_2,int param_3,int *param_4,int param_5) { int iVar1; char *pcVar2; long local_1030; long local_1028; int local_1010; void *local_1008; pcVar2 = (char *)malloc((long)param_3); if (pcVar2 != (char *)0x0) { local_1028 = param_2 + param_1; local_1030 = param_1; iVar1 = stbi__do_zlib((stbi__zbuf *)&local_1030,pcVar2,param_3,1,param_5); if (iVar1 != 0) { if (param_4 == (int *)0x0) { return local_1008; } *param_4 = local_1010 - (int)local_1008; return local_1008; } free(local_1008); } return (void *)0x0; }
51,050
ggml_compute_forward_sum_f32(ggml_compute_params const*, ggml_tensor*)
ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp
static void ggml_compute_forward_sum_f32( const ggml_compute_params * params, ggml_tensor * dst) { const ggml_tensor * src0 = dst->src[0]; if (params->ith != 0) { return; } assert(ggml_is_scalar(dst)); assert(src0->nb[0] == sizeof(float)); GGML_TENSOR_LOCALS(int64_t, ne0, src0, ne) GGML_TENSOR_LOCALS(size_t, nb0, src0, nb) ggml_float sum = 0; ggml_float row_sum = 0; for (int64_t i03 = 0; i03 < ne03; i03++) { for (int64_t i02 = 0; i02 < ne02; i02++) { for (int64_t i01 = 0; i01 < ne01; i01++) { ggml_vec_sum_f32_ggf(ne00, &row_sum, (float *) ((char *) src0->data + i01*nb01 + i02*nb02 + i03*nb03)); sum += row_sum; } } } ((float *) dst->data)[0] = sum; }
O0
cpp
ggml_compute_forward_sum_f32(ggml_compute_params const*, ggml_tensor*): subq $0x88, %rsp movq %rdi, 0x80(%rsp) movq %rsi, 0x78(%rsp) movq 0x78(%rsp), %rax movq 0x98(%rax), %rax movq %rax, 0x70(%rsp) movq 0x80(%rsp), %rax cmpl $0x0, (%rax) je 0x8b247 jmp 0x8b3bf movq 0x70(%rsp), %rax movq 0x10(%rax), %rax movq %rax, 0x68(%rsp) movq 0x70(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0x60(%rsp) movq 0x70(%rsp), %rax movq 0x20(%rax), %rax movq %rax, 0x58(%rsp) movq 0x70(%rsp), %rax movq 0x28(%rax), %rax movq %rax, 0x50(%rsp) movq 0x70(%rsp), %rax movq 0x30(%rax), %rax movq %rax, 0x48(%rsp) movq 0x70(%rsp), %rax movq 0x38(%rax), %rax movq %rax, 0x40(%rsp) movq 0x70(%rsp), %rax movq 0x40(%rax), %rax movq %rax, 0x38(%rsp) movq 0x70(%rsp), %rax movq 0x48(%rax), %rax movq %rax, 0x30(%rsp) vpxor %xmm0, %xmm0, %xmm0 vmovsd %xmm0, 0x28(%rsp) vpxor %xmm0, %xmm0, %xmm0 vmovsd %xmm0, 0x20(%rsp) movq $0x0, 0x18(%rsp) movq 0x18(%rsp), %rax cmpq 0x50(%rsp), %rax jge 0x8b3a5 movq $0x0, 0x10(%rsp) movq 0x10(%rsp), %rax cmpq 0x58(%rsp), %rax jge 0x8b390 movq $0x0, 0x8(%rsp) movq 0x8(%rsp), %rax cmpq 0x60(%rsp), %rax jge 0x8b37b movq 0x68(%rsp), %rax movl %eax, %edi movq 0x70(%rsp), %rax movq 0xf8(%rax), %rdx movq 0x8(%rsp), %rax imulq 0x40(%rsp), %rax addq %rax, %rdx movq 0x10(%rsp), %rax imulq 0x38(%rsp), %rax addq %rax, %rdx movq 0x18(%rsp), %rax imulq 0x30(%rsp), %rax addq %rax, %rdx leaq 0x20(%rsp), %rsi callq 0xa7c80 vmovsd 0x20(%rsp), %xmm0 vaddsd 0x28(%rsp), %xmm0, %xmm0 vmovsd %xmm0, 0x28(%rsp) movq 0x8(%rsp), %rax addq $0x1, %rax movq %rax, 0x8(%rsp) jmp 0x8b306 jmp 0x8b37d movq 0x10(%rsp), %rax addq $0x1, %rax movq %rax, 0x10(%rsp) jmp 0x8b2ed jmp 0x8b392 movq 0x18(%rsp), %rax addq $0x1, %rax movq %rax, 0x18(%rsp) jmp 0x8b2d4 vmovsd 0x28(%rsp), %xmm1 vcvtsd2ss %xmm1, %xmm0, %xmm0 movq 0x78(%rsp), %rax movq 0xf8(%rax), %rax vmovss %xmm0, (%rax) addq $0x88, %rsp retq nopw (%rax,%rax)
_ZL28ggml_compute_forward_sum_f32PK19ggml_compute_paramsP11ggml_tensor: sub rsp, 88h mov [rsp+88h+var_8], rdi mov [rsp+88h+var_10], rsi mov rax, [rsp+88h+var_10] mov rax, [rax+98h] mov [rsp+88h+var_18], rax mov rax, [rsp+88h+var_8] cmp dword ptr [rax], 0 jz short loc_8B247 jmp loc_8B3BF loc_8B247: mov rax, [rsp+88h+var_18] mov rax, [rax+10h] mov qword ptr [rsp+88h+var_20], rax mov rax, [rsp+88h+var_18] mov rax, [rax+18h] mov [rsp+88h+var_28], rax mov rax, [rsp+88h+var_18] mov rax, [rax+20h] mov [rsp+88h+var_30], rax mov rax, [rsp+88h+var_18] mov rax, [rax+28h] mov [rsp+88h+var_38], rax mov rax, [rsp+88h+var_18] mov rax, [rax+30h] mov [rsp+88h+var_40], rax mov rax, [rsp+88h+var_18] mov rax, [rax+38h] mov [rsp+88h+var_48], rax mov rax, [rsp+88h+var_18] mov rax, [rax+40h] mov [rsp+88h+var_50], rax mov rax, [rsp+88h+var_18] mov rax, [rax+48h] mov [rsp+88h+var_58], rax vpxor xmm0, xmm0, xmm0 vmovsd [rsp+88h+var_60], xmm0 vpxor xmm0, xmm0, xmm0 vmovsd [rsp+88h+var_68], xmm0 mov [rsp+88h+var_70], 0 loc_8B2D4: mov rax, [rsp+88h+var_70] cmp rax, [rsp+88h+var_38] jge loc_8B3A5 mov [rsp+88h+var_78], 0 loc_8B2ED: mov rax, [rsp+88h+var_78] cmp rax, [rsp+88h+var_30] jge loc_8B390 mov [rsp+88h+var_80], 0 loc_8B306: mov rax, [rsp+88h+var_80] cmp rax, [rsp+88h+var_28] jge short loc_8B37B mov rax, qword ptr [rsp+88h+var_20] mov edi, eax; int mov rax, [rsp+88h+var_18] mov rdx, [rax+0F8h] mov rax, [rsp+88h+var_80] imul rax, [rsp+88h+var_48] add rdx, rax mov rax, [rsp+88h+var_78] imul rax, [rsp+88h+var_50] add rdx, rax mov rax, [rsp+88h+var_70] imul rax, [rsp+88h+var_58] add rdx, rax; float * lea rsi, [rsp+88h+var_68]; double * call _ZL20ggml_vec_sum_f32_ggfiPdPKf; ggml_vec_sum_f32_ggf(int,double *,float const*) vmovsd xmm0, [rsp+88h+var_68] vaddsd xmm0, xmm0, [rsp+88h+var_60] vmovsd [rsp+88h+var_60], xmm0 mov rax, [rsp+88h+var_80] add rax, 1 mov [rsp+88h+var_80], rax jmp short loc_8B306 loc_8B37B: jmp short $+2 loc_8B37D: mov rax, [rsp+88h+var_78] add rax, 1 mov [rsp+88h+var_78], rax jmp loc_8B2ED loc_8B390: jmp short $+2 loc_8B392: mov rax, [rsp+88h+var_70] add rax, 1 mov [rsp+88h+var_70], rax jmp loc_8B2D4 loc_8B3A5: vmovsd xmm1, [rsp+88h+var_60] vcvtsd2ss xmm0, xmm0, xmm1 mov rax, [rsp+88h+var_10] mov rax, [rax+0F8h] vmovss dword ptr [rax], xmm0 loc_8B3BF: add rsp, 88h retn
_DWORD * ggml_compute_forward_sum_f32(_DWORD *a1, long long a2, __m128 _XMM0) { _DWORD *result; // rax long long k; // [rsp+8h] [rbp-80h] long long j; // [rsp+10h] [rbp-78h] long long i; // [rsp+18h] [rbp-70h] double v12; // [rsp+20h] [rbp-68h] BYREF long long v14; // [rsp+30h] [rbp-58h] long long v15; // [rsp+38h] [rbp-50h] long long v16; // [rsp+40h] [rbp-48h] long long v17; // [rsp+48h] [rbp-40h] long long v18; // [rsp+50h] [rbp-38h] long long v19; // [rsp+58h] [rbp-30h] long long v20; // [rsp+60h] [rbp-28h] int v21[2]; // [rsp+68h] [rbp-20h] _QWORD *v22; // [rsp+70h] [rbp-18h] long long v23; // [rsp+78h] [rbp-10h] _DWORD *v24; // [rsp+80h] [rbp-8h] v24 = a1; v23 = a2; v22 = *(_QWORD **)(a2 + 152); result = a1; if ( !*a1 ) { *(_QWORD *)v21 = v22[2]; v20 = v22[3]; v19 = v22[4]; v18 = v22[5]; v17 = v22[6]; v16 = v22[7]; v15 = v22[8]; v14 = v22[9]; __asm { vpxor xmm0, xmm0, xmm0 vmovsd [rsp+88h+var_60], xmm0 vpxor xmm0, xmm0, xmm0 vmovsd [rsp+88h+var_68], xmm0 } for ( i = 0LL; i < v18; ++i ) { for ( j = 0LL; j < v19; ++j ) { for ( k = 0LL; k < v20; ++k ) { ggml_vec_sum_f32_ggf(v21[0], &v12, (const float *)(v14 * i + v15 * j + v16 * k + v22[31])); __asm { vmovsd xmm0, [rsp+88h+var_68] vaddsd xmm0, xmm0, [rsp+88h+var_60] vmovsd [rsp+88h+var_60], xmm0 } } } } __asm { vmovsd xmm1, [rsp+88h+var_60] vcvtsd2ss xmm0, xmm0, xmm1 } result = *(_DWORD **)(v23 + 248); __asm { vmovss dword ptr [rax], xmm0 } } return result; }
ggml_compute_forward_sum_f32: SUB RSP,0x88 MOV qword ptr [RSP + 0x80],RDI MOV qword ptr [RSP + 0x78],RSI MOV RAX,qword ptr [RSP + 0x78] MOV RAX,qword ptr [RAX + 0x98] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x80] CMP dword ptr [RAX],0x0 JZ 0x0018b247 JMP 0x0018b3bf LAB_0018b247: MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x60],RAX MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX + 0x20] MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + 0x48],RAX MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX + 0x38] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX + 0x40] MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RSP + 0x30],RAX VPXOR XMM0,XMM0,XMM0 VMOVSD qword ptr [RSP + 0x28],XMM0 VPXOR XMM0,XMM0,XMM0 VMOVSD qword ptr [RSP + 0x20],XMM0 MOV qword ptr [RSP + 0x18],0x0 LAB_0018b2d4: MOV RAX,qword ptr [RSP + 0x18] CMP RAX,qword ptr [RSP + 0x50] JGE 0x0018b3a5 MOV qword ptr [RSP + 0x10],0x0 LAB_0018b2ed: MOV RAX,qword ptr [RSP + 0x10] CMP RAX,qword ptr [RSP + 0x58] JGE 0x0018b390 MOV qword ptr [RSP + 0x8],0x0 LAB_0018b306: MOV RAX,qword ptr [RSP + 0x8] CMP RAX,qword ptr [RSP + 0x60] JGE 0x0018b37b MOV RAX,qword ptr [RSP + 0x68] MOV EDI,EAX MOV RAX,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RAX + 0xf8] MOV RAX,qword ptr [RSP + 0x8] IMUL RAX,qword ptr [RSP + 0x40] ADD RDX,RAX MOV RAX,qword ptr [RSP + 0x10] IMUL RAX,qword ptr [RSP + 0x38] ADD RDX,RAX MOV RAX,qword ptr [RSP + 0x18] IMUL RAX,qword ptr [RSP + 0x30] ADD RDX,RAX LEA RSI,[RSP + 0x20] CALL 0x001a7c80 VMOVSD XMM0,qword ptr [RSP + 0x20] VADDSD XMM0,XMM0,qword ptr [RSP + 0x28] VMOVSD qword ptr [RSP + 0x28],XMM0 MOV RAX,qword ptr [RSP + 0x8] ADD RAX,0x1 MOV qword ptr [RSP + 0x8],RAX JMP 0x0018b306 LAB_0018b37b: JMP 0x0018b37d LAB_0018b37d: MOV RAX,qword ptr [RSP + 0x10] ADD RAX,0x1 MOV qword ptr [RSP + 0x10],RAX JMP 0x0018b2ed LAB_0018b390: JMP 0x0018b392 LAB_0018b392: MOV RAX,qword ptr [RSP + 0x18] ADD RAX,0x1 MOV qword ptr [RSP + 0x18],RAX JMP 0x0018b2d4 LAB_0018b3a5: VMOVSD XMM1,qword ptr [RSP + 0x28] VCVTSD2SS XMM0,XMM0,XMM1 MOV RAX,qword ptr [RSP + 0x78] MOV RAX,qword ptr [RAX + 0xf8] VMOVSS dword ptr [RAX],XMM0 LAB_0018b3bf: ADD RSP,0x88 RET
/* ggml_compute_forward_sum_f32(ggml_compute_params const*, ggml_tensor*) */ void ggml_compute_forward_sum_f32(ggml_compute_params *param_1,ggml_tensor *param_2) { long local_80; long local_78; long local_70; double local_68; double local_60; long local_58; long local_50; long local_48; int8 local_40; long local_38; long local_30; long local_28; int8 local_20; long local_18; ggml_tensor *local_10; ggml_compute_params *local_8; local_18 = *(long *)(param_2 + 0x98); if (*(int *)param_1 == 0) { local_20 = *(int8 *)(local_18 + 0x10); local_28 = *(long *)(local_18 + 0x18); local_30 = *(long *)(local_18 + 0x20); local_38 = *(long *)(local_18 + 0x28); local_40 = *(int8 *)(local_18 + 0x30); local_48 = *(long *)(local_18 + 0x38); local_50 = *(long *)(local_18 + 0x40); local_58 = *(long *)(local_18 + 0x48); local_60 = 0.0; local_68 = 0.0; local_10 = param_2; local_8 = param_1; for (local_70 = 0; local_70 < local_38; local_70 = local_70 + 1) { for (local_78 = 0; local_78 < local_30; local_78 = local_78 + 1) { for (local_80 = 0; local_80 < local_28; local_80 = local_80 + 1) { ggml_vec_sum_f32_ggf ((int)local_20,&local_68, (float *)(*(long *)(local_18 + 0xf8) + local_80 * local_48 + local_78 * local_50 + local_70 * local_58)); local_60 = local_68 + local_60; } } } **(float **)(local_10 + 0xf8) = (float)local_60; } return; }
51,051
minja::TextNode::TextNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/minja.hpp
TextNode(const Location & location, const std::string& t) : TemplateNode(location), text(t) {}
O3
cpp
minja::TextNode::TextNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x8e8f3(%rip), %r15 # 0x139fc8 addq $0x10, %r15 movq %r15, (%rdi) movq (%rsi), %rax movq %rax, 0x8(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x10(%rdi) testq %rax, %rax je 0xab705 movq 0x8f889(%rip), %rcx # 0x13af80 cmpb $0x0, (%rcx) je 0xab701 incl 0x8(%rax) jmp 0xab705 lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x18(%rbx) leaq 0x8eb04(%rip), %rax # 0x13a218 addq $0x10, %rax movq %rax, (%rbx) leaq 0x20(%rbx), %rdi leaq 0x30(%rbx), %rax movq %rax, 0x20(%rbx) movq (%rdx), %rsi movq 0x8(%rdx), %rdx addq %rsi, %rdx callq 0x2d500 popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq %r15, (%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0xab750 callq 0x7b578 movq %r14, %rdi callq 0x1c020
_ZN5minja8TextNodeC2ERKNS_8LocationERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r15 push r14 push rbx mov rbx, rdi lea r15, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode add r15, 10h mov [rdi], r15 mov rax, [rsi] mov [rdi+8], rax mov rax, [rsi+8] mov [rdi+10h], rax test rax, rax jz short loc_AB705 mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_AB701 inc dword ptr [rax+8] jmp short loc_AB705 loc_AB701: lock inc dword ptr [rax+8] loc_AB705: mov rax, [rsi+10h] mov [rbx+18h], rax lea rax, _ZTVN5minja8TextNodeE; `vtable for'minja::TextNode add rax, 10h mov [rbx], rax lea rdi, [rbx+20h] lea rax, [rbx+30h] mov [rbx+20h], rax mov rsi, [rdx] mov rdx, [rdx+8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) pop rbx pop r14 pop r15 retn mov r14, rax mov [rbx], r15 mov rdi, [rbx+10h] test rdi, rdi jz short loc_AB750 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_AB750: mov rdi, r14 call __Unwind_Resume
long long minja::TextNode::TextNode(_QWORD *a1, _QWORD *a2, long long a3) { long long v3; // rax *a1 = &`vtable for'minja::TemplateNode + 2; a1[1] = *a2; v3 = a2[1]; a1[2] = v3; if ( v3 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v3 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v3 + 8)); } a1[3] = a2[2]; *a1 = &`vtable for'minja::TextNode + 2; a1[4] = a1 + 6; return std::string::_M_construct<char *>((long long)(a1 + 4), *(_BYTE **)a3, *(_QWORD *)a3 + *(_QWORD *)(a3 + 8)); }
TextNode: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI LEA R15,[0x239fc8] ADD R15,0x10 MOV qword ptr [RDI],R15 MOV RAX,qword ptr [RSI] MOV qword ptr [RDI + 0x8],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x10],RAX TEST RAX,RAX JZ 0x001ab705 MOV RCX,qword ptr [0x0023af80] CMP byte ptr [RCX],0x0 JZ 0x001ab701 INC dword ptr [RAX + 0x8] JMP 0x001ab705 LAB_001ab701: INC.LOCK dword ptr [RAX + 0x8] LAB_001ab705: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RBX + 0x18],RAX LEA RAX,[0x23a218] ADD RAX,0x10 MOV qword ptr [RBX],RAX LEA RDI,[RBX + 0x20] LEA RAX,[RBX + 0x30] MOV qword ptr [RBX + 0x20],RAX MOV RSI,qword ptr [RDX] MOV RDX,qword ptr [RDX + 0x8] ADD RDX,RSI LAB_001ab731: CALL 0x0012d500 LAB_001ab736: POP RBX POP R14 POP R15 RET
/* minja::TextNode::TextNode(minja::Location const&, std::__cxx11::string const&) */ void __thiscall minja::TextNode::TextNode(TextNode *this,Location *param_1,string *param_2) { long lVar1; *(int ***)this = &PTR___cxa_pure_virtual_00239fd8; *(int8 *)(this + 8) = *(int8 *)param_1; lVar1 = *(long *)(param_1 + 8); *(long *)(this + 0x10) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_0023af80 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } *(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10); *(int ***)this = &PTR_do_render_0023a228; *(TextNode **)(this + 0x20) = this + 0x30; /* try { // try from 001ab731 to 001ab735 has its CatchHandler @ 001ab73c */ std::__cxx11::string::_M_construct<char*> (this + 0x20,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2); return; }
51,052
my_8bit_charset_flags_from_data
eloqsql/strings/ctype-simple.c
uint my_8bit_charset_flags_from_data(CHARSET_INFO *cs) { uint flags= 0; if (my_charset_is_8bit_pure_ascii(cs)) flags|= MY_CS_PUREASCII; if (!my_charset_is_ascii_compatible(cs)) flags|= MY_CS_NONASCII; return flags; }
O0
c
my_8bit_charset_flags_from_data: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movl $0x0, -0xc(%rbp) movq -0x8(%rbp), %rdi callq 0x50d10 cmpb $0x0, %al je 0x50ceb movl -0xc(%rbp), %eax orl $0x1000, %eax # imm = 0x1000 movl %eax, -0xc(%rbp) movq -0x8(%rbp), %rdi callq 0x50d70 cmpb $0x0, %al jne 0x50d03 movl -0xc(%rbp), %eax orl $0x2000, %eax # imm = 0x2000 movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax addq $0x10, %rsp popq %rbp retq nopl (%rax)
my_8bit_charset_flags_from_data: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov [rbp+var_C], 0 mov rdi, [rbp+var_8] call my_charset_is_8bit_pure_ascii cmp al, 0 jz short loc_50CEB mov eax, [rbp+var_C] or eax, 1000h mov [rbp+var_C], eax loc_50CEB: mov rdi, [rbp+var_8] call my_charset_is_ascii_compatible cmp al, 0 jnz short loc_50D03 mov eax, [rbp+var_C] or eax, 2000h mov [rbp+var_C], eax loc_50D03: mov eax, [rbp+var_C] add rsp, 10h pop rbp retn
long long my_8bit_charset_flags_from_data(long long a1) { unsigned int v2; // [rsp+4h] [rbp-Ch] v2 = 0; if ( (unsigned __int8)my_charset_is_8bit_pure_ascii(a1) ) v2 = 4096; if ( !(unsigned __int8)my_charset_is_ascii_compatible(a1) ) v2 |= 0x2000u; return v2; }
my_8bit_charset_flags_from_data: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],0x0 MOV RDI,qword ptr [RBP + -0x8] CALL 0x00150d10 CMP AL,0x0 JZ 0x00150ceb MOV EAX,dword ptr [RBP + -0xc] OR EAX,0x1000 MOV dword ptr [RBP + -0xc],EAX LAB_00150ceb: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00150d70 CMP AL,0x0 JNZ 0x00150d03 MOV EAX,dword ptr [RBP + -0xc] OR EAX,0x2000 MOV dword ptr [RBP + -0xc],EAX LAB_00150d03: MOV EAX,dword ptr [RBP + -0xc] ADD RSP,0x10 POP RBP RET
uint my_8bit_charset_flags_from_data(int8 param_1) { char cVar1; int4 local_14; local_14 = 0; cVar1 = my_charset_is_8bit_pure_ascii(param_1); if (cVar1 != '\0') { local_14 = 0x1000; } cVar1 = my_charset_is_ascii_compatible(param_1); if (cVar1 == '\0') { local_14 = local_14 | 0x2000; } return local_14; }
51,053
my_8bit_charset_flags_from_data
eloqsql/strings/ctype-simple.c
uint my_8bit_charset_flags_from_data(CHARSET_INFO *cs) { uint flags= 0; if (my_charset_is_8bit_pure_ascii(cs)) flags|= MY_CS_PUREASCII; if (!my_charset_is_ascii_compatible(cs)) flags|= MY_CS_NONASCII; return flags; }
O3
c
my_8bit_charset_flags_from_data: movq 0x68(%rdi), %rcx testq %rcx, %rcx je 0x3f638 pushq %rbp movq %rsp, %rbp xorl %eax, %eax xorl %edx, %edx cmpw $0x80, (%rcx,%rdx,2) jae 0x3f61f incq %rdx cmpq $0x100, %rdx # imm = 0x100 jne 0x3f606 movl $0x1000, %eax # imm = 0x1000 xorl %edx, %edx movzwl (%rcx,%rdx,2), %esi cmpq %rsi, %rdx jne 0x3f63b incq %rdx cmpq $0x80, %rdx jne 0x3f621 jmp 0x3f640 xorl %eax, %eax retq orl $0x2000, %eax # imm = 0x2000 popq %rbp retq
my_8bit_charset_flags_from_data: mov rcx, [rdi+68h] test rcx, rcx jz short loc_3F638 push rbp mov rbp, rsp xor eax, eax xor edx, edx loc_3F606: cmp word ptr [rcx+rdx*2], 80h jnb short loc_3F61F inc rdx cmp rdx, 100h jnz short loc_3F606 mov eax, 1000h loc_3F61F: xor edx, edx loc_3F621: movzx esi, word ptr [rcx+rdx*2] cmp rdx, rsi jnz short loc_3F63B inc rdx cmp rdx, 80h jnz short loc_3F621 jmp short loc_3F640 loc_3F638: xor eax, eax retn loc_3F63B: or eax, 2000h loc_3F640: pop rbp retn
long long my_8bit_charset_flags_from_data(long long a1) { long long v1; // rcx long long result; // rax long long v3; // rdx long long v4; // rdx v1 = *(_QWORD *)(a1 + 104); if ( !v1 ) return 0LL; result = 0LL; v3 = 0LL; while ( *(_WORD *)(v1 + 2 * v3) < 0x80u ) { if ( ++v3 == 256 ) { result = 4096LL; break; } } v4 = 0LL; while ( v4 == *(unsigned __int16 *)(v1 + 2 * v4) ) { if ( ++v4 == 128 ) return result; } return (unsigned int)result | 0x2000; }
my_8bit_charset_flags_from_data: MOV RCX,qword ptr [RDI + 0x68] TEST RCX,RCX JZ 0x0013f638 PUSH RBP MOV RBP,RSP XOR EAX,EAX XOR EDX,EDX LAB_0013f606: CMP word ptr [RCX + RDX*0x2],0x80 JNC 0x0013f61f INC RDX CMP RDX,0x100 JNZ 0x0013f606 MOV EAX,0x1000 LAB_0013f61f: XOR EDX,EDX LAB_0013f621: MOVZX ESI,word ptr [RCX + RDX*0x2] CMP RDX,RSI JNZ 0x0013f63b INC RDX CMP RDX,0x80 JNZ 0x0013f621 JMP 0x0013f640 LAB_0013f638: XOR EAX,EAX RET LAB_0013f63b: OR EAX,0x2000 LAB_0013f640: POP RBP RET
uint my_8bit_charset_flags_from_data(long param_1) { long lVar1; uint uVar2; long lVar3; ulong uVar4; lVar1 = *(long *)(param_1 + 0x68); if (lVar1 == 0) { return 0; } uVar2 = 0; lVar3 = 0; do { if (0x7f < *(ushort *)(lVar1 + lVar3 * 2)) goto LAB_0013f61f; lVar3 = lVar3 + 1; } while (lVar3 != 0x100); uVar2 = 0x1000; LAB_0013f61f: uVar4 = 0; do { if (uVar4 != *(ushort *)(lVar1 + uVar4 * 2)) { return uVar2 | 0x2000; } uVar4 = uVar4 + 1; } while (uVar4 != 0x80); return uVar2; }
51,054
google::protobuf::compiler::csharp::MessageFieldGenerator::GenerateParsingCode(google::protobuf::io::Printer*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/csharp/csharp_message_field.cc
void MessageFieldGenerator::GenerateParsingCode(io::Printer* printer) { printer->Print( variables_, "if ($has_not_property_check$) {\n" " $property_name$ = new $type_name$();\n" "}\n"); if (descriptor_->type() == FieldDescriptor::Type::TYPE_MESSAGE) { printer->Print(variables_, "input.ReadMessage($property_name$);\n"); } else { printer->Print(variables_, "input.ReadGroup($property_name$);\n"); } }
O0
cpp
google::protobuf::compiler::csharp::MessageFieldGenerator::GenerateParsingCode(google::protobuf::io::Printer*): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq %rsi, 0x8(%rsp) movq 0x10(%rsp), %rsi movq %rsi, (%rsp) movq 0x8(%rsp), %rdi addq $0x20, %rsi leaq 0x341a21(%rip), %rdx # 0x3acb68 callq 0x3235f0 movq (%rsp), %rax movq 0x10(%rax), %rdi callq 0x3d920 cmpl $0xb, %eax jne 0x6b179 movq (%rsp), %rsi movq 0x8(%rsp), %rdi addq $0x20, %rsi leaq 0x341a40(%rip), %rdx # 0x3acbb2 callq 0x3235f0 jmp 0x6b192 movq (%rsp), %rsi movq 0x8(%rsp), %rdi addq $0x20, %rsi leaq 0x341a4a(%rip), %rdx # 0x3acbd7 callq 0x3235f0 addq $0x18, %rsp retq nopw (%rax,%rax)
_ZN6google8protobuf8compiler6csharp21MessageFieldGenerator19GenerateParsingCodeEPNS0_2io7PrinterE: sub rsp, 18h mov [rsp+18h+var_8], rdi mov [rsp+18h+var_10], rsi mov rsi, [rsp+18h+var_8] mov [rsp+18h+var_18], rsi mov rdi, [rsp+18h+var_10] add rsi, 20h ; ' ' lea rdx, aIfHasNotProper; "if ($has_not_property_check$) {\n $pro"... call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*) mov rax, [rsp+18h+var_18] mov rdi, [rax+10h]; this call _ZNK6google8protobuf15FieldDescriptor4typeEv; google::protobuf::FieldDescriptor::type(void) cmp eax, 0Bh jnz short loc_6B179 mov rsi, [rsp+18h+var_18] mov rdi, [rsp+18h+var_10] add rsi, 20h ; ' ' lea rdx, aInputReadmessa; "input.ReadMessage($property_name$);\n" call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*) jmp short loc_6B192 loc_6B179: mov rsi, [rsp+18h+var_18] mov rdi, [rsp+18h+var_10] add rsi, 20h ; ' ' lea rdx, aInputReadgroup; "input.ReadGroup($property_name$);\n" call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*) loc_6B192: add rsp, 18h retn
GenerateParsingCode: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV qword ptr [RSP + 0x8],RSI MOV RSI,qword ptr [RSP + 0x10] MOV qword ptr [RSP],RSI MOV RDI,qword ptr [RSP + 0x8] ADD RSI,0x20 LEA RDX,[0x4acb68] CALL 0x004235f0 MOV RAX,qword ptr [RSP] MOV RDI,qword ptr [RAX + 0x10] CALL 0x0013d920 CMP EAX,0xb JNZ 0x0016b179 MOV RSI,qword ptr [RSP] MOV RDI,qword ptr [RSP + 0x8] ADD RSI,0x20 LEA RDX,[0x4acbb2] CALL 0x004235f0 JMP 0x0016b192 LAB_0016b179: MOV RSI,qword ptr [RSP] MOV RDI,qword ptr [RSP + 0x8] ADD RSI,0x20 LEA RDX,[0x4acbd7] CALL 0x004235f0 LAB_0016b192: ADD RSP,0x18 RET
/* google::protobuf::compiler::csharp::MessageFieldGenerator::GenerateParsingCode(google::protobuf::io::Printer*) */ void __thiscall google::protobuf::compiler::csharp::MessageFieldGenerator::GenerateParsingCode (MessageFieldGenerator *this,Printer *param_1) { int iVar1; io::Printer::Print(param_1,(map *)(this + 0x20), "if ($has_not_property_check$) {\n $property_name$ = new $type_name$();\n}\n") ; iVar1 = FieldDescriptor::type(*(FieldDescriptor **)(this + 0x10)); if (iVar1 == 0xb) { io::Printer::Print(param_1,(map *)(this + 0x20),"input.ReadMessage($property_name$);\n"); } else { io::Printer::Print(param_1,(map *)(this + 0x20),"input.ReadGroup($property_name$);\n"); } return; }
51,055
google::protobuf::compiler::csharp::MessageFieldGenerator::GenerateParsingCode(google::protobuf::io::Printer*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/csharp/csharp_message_field.cc
void MessageFieldGenerator::GenerateParsingCode(io::Printer* printer) { printer->Print( variables_, "if ($has_not_property_check$) {\n" " $property_name$ = new $type_name$();\n" "}\n"); if (descriptor_->type() == FieldDescriptor::Type::TYPE_MESSAGE) { printer->Print(variables_, "input.ReadMessage($property_name$);\n"); } else { printer->Print(variables_, "input.ReadGroup($property_name$);\n"); } }
O3
cpp
google::protobuf::compiler::csharp::MessageFieldGenerator::GenerateParsingCode(google::protobuf::io::Printer*): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rsi, %rbx movq %rdi, %r15 leaq 0x20(%rdi), %r14 leaq 0x160113(%rip), %rdx # 0x19e9f3 movq %rsi, %rdi movq %r14, %rsi callq 0x16cd32 movq 0x10(%r15), %r15 movq 0x18(%r15), %rdi testq %rdi, %rdi je 0x3e912 leaq 0xfb335(%rip), %rax # 0x139c34 leaq 0x8(%rsp), %rsi movq %rax, (%rsi) movq %rsp, %rdx movq %r15, (%rdx) callq 0x2f19d cmpb $0xb, 0x2(%r15) leaq 0x16011f(%rip), %rax # 0x19ea3d leaq 0x16013d(%rip), %rdx # 0x19ea62 cmoveq %rax, %rdx movq %rbx, %rdi movq %r14, %rsi callq 0x16cd32 addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq
_ZN6google8protobuf8compiler6csharp21MessageFieldGenerator19GenerateParsingCodeEPNS0_2io7PrinterE: push r15; int push r14; int push rbx; char sub rsp, 10h mov rbx, rsi mov r15, rdi lea r14, [rdi+20h] lea rdx, aIfHasNotProper; "if ($has_not_property_check$) {\n $pro"... mov rdi, rsi; this mov rsi, r14 call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*) mov r15, [r15+10h] mov rdi, [r15+18h] test rdi, rdi jz short loc_3E912 lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*) lea rsi, [rsp+28h+var_20] mov [rsi], rax mov rdx, rsp mov [rdx], r15 call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&) loc_3E912: cmp byte ptr [r15+2], 0Bh lea rax, aInputReadmessa; "input.ReadMessage($property_name$);\n" lea rdx, aInputReadgroup; "input.ReadGroup($property_name$);\n" cmovz rdx, rax mov rdi, rbx; this mov rsi, r14 call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*) add rsp, 10h pop rbx pop r14 pop r15 retn
GenerateParsingCode: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RSI MOV R15,RDI LEA R14,[RDI + 0x20] LEA RDX,[0x29e9f3] MOV RDI,RSI MOV RSI,R14 CALL 0x0026cd32 MOV R15,qword ptr [R15 + 0x10] MOV RDI,qword ptr [R15 + 0x18] TEST RDI,RDI JZ 0x0013e912 LEA RAX,[0x239c34] LEA RSI,[RSP + 0x8] MOV qword ptr [RSI],RAX MOV RDX,RSP MOV qword ptr [RDX],R15 CALL 0x0012f19d LAB_0013e912: CMP byte ptr [R15 + 0x2],0xb LEA RAX,[0x29ea3d] LEA RDX,[0x29ea62] CMOVZ RDX,RAX MOV RDI,RBX MOV RSI,R14 CALL 0x0026cd32 ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* google::protobuf::compiler::csharp::MessageFieldGenerator::GenerateParsingCode(google::protobuf::io::Printer*) */ void __thiscall google::protobuf::compiler::csharp::MessageFieldGenerator::GenerateParsingCode (MessageFieldGenerator *this,Printer *param_1) { FieldDescriptor *pFVar1; char *pcVar2; FieldDescriptor *local_28; code *local_20; io::Printer::Print(param_1,(map *)(this + 0x20), "if ($has_not_property_check$) {\n $property_name$ = new $type_name$();\n}\n") ; pFVar1 = *(FieldDescriptor **)(this + 0x10); if (*(once_flag **)(pFVar1 + 0x18) != (once_flag *)0x0) { local_20 = FieldDescriptor::TypeOnceInit; local_28 = pFVar1; std:: call_once<void(*)(google::protobuf::FieldDescriptor_const*),google::protobuf::FieldDescriptor_const*> (*(once_flag **)(pFVar1 + 0x18),(_func_void_FieldDescriptor_ptr *)&local_20,&local_28) ; } pcVar2 = "input.ReadGroup($property_name$);\n"; if (pFVar1[2] == (FieldDescriptor)0xb) { pcVar2 = "input.ReadMessage($property_name$);\n"; } io::Printer::Print(param_1,(map *)(this + 0x20),pcVar2); return; }
51,056
my_casedn_8bit
eloqsql/strings/ctype-simple.c
size_t my_casedn_8bit(CHARSET_INFO * cs, const char *src, size_t srclen, char *dst, size_t dstlen __attribute__((unused))) { const char *end= src + srclen; register const uchar *map=cs->to_lower; DBUG_ASSERT(srclen <= dstlen); for ( ; src != end ; src++) *dst++= (char) map[(uchar) *src]; return srclen; }
O0
c
my_casedn_8bit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x8(%rbp), %rax movq 0x48(%rax), %rax movq %rax, -0x38(%rbp) jmp 0x92d52 jmp 0x92d54 movq -0x10(%rbp), %rax cmpq -0x30(%rbp), %rax je 0x92d8b movq -0x38(%rbp), %rax movq -0x10(%rbp), %rcx movzbl (%rcx), %ecx movb (%rax,%rcx), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0x92d54 movq -0x18(%rbp), %rax popq %rbp retq nopw %cs:(%rax,%rax)
my_casedn_8bit: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_30], rax mov rax, [rbp+var_8] mov rax, [rax+48h] mov [rbp+var_38], rax jmp short $+2 loc_92D52: jmp short $+2 loc_92D54: mov rax, [rbp+var_10] cmp rax, [rbp+var_30] jz short loc_92D8B mov rax, [rbp+var_38] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx] mov cl, [rax+rcx] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax jmp short loc_92D54 loc_92D8B: mov rax, [rbp+var_18] pop rbp retn
long long my_casedn_8bit(long long a1, unsigned __int8 *a2, long long a3, _BYTE *a4) { _BYTE *v4; // rax long long v6; // [rsp+0h] [rbp-38h] unsigned __int8 *v8; // [rsp+28h] [rbp-10h] v8 = a2; v6 = *(_QWORD *)(a1 + 72); while ( v8 != &a2[a3] ) { v4 = a4++; *v4 = *(_BYTE *)(v6 + *v8++); } return a3; }
my_casedn_8bit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RBP + -0x38],RAX JMP 0x00192d52 LAB_00192d52: JMP 0x00192d54 LAB_00192d54: MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x30] JZ 0x00192d8b MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX JMP 0x00192d54 LAB_00192d8b: MOV RAX,qword ptr [RBP + -0x18] POP RBP RET
long my_casedn_8bit(long param_1,byte *param_2,long param_3,int1 *param_4) { long lVar1; int1 *local_28; byte *local_18; lVar1 = *(long *)(param_1 + 0x48); local_28 = param_4; for (local_18 = param_2; local_18 != param_2 + param_3; local_18 = local_18 + 1) { *local_28 = *(int1 *)(lVar1 + (ulong)*local_18); local_28 = local_28 + 1; } return param_3; }
51,057
LefDefParser::lefwLayerArraySpacing(int, double, double, int, int*, double*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwLayerArraySpacing(int longArray, double viaWidth, double cutSpacing, int numArrayCut, int *arrayCuts, double *arraySpacings) { int i; if (!lefwFile) return LEFW_UNINITIALIZED; if (lefwState != LEFW_LAYER_START && lefwState != LEFW_LAYER) return LEFW_BAD_ORDER; if (!lefwIsCut) return LEFW_BAD_DATA; // only cut calls this func if (lefwIsMaxviastack) return LEFW_BAD_ORDER; // Layer after maximum stacked-via if (cutSpacing) { if (lefwWriteEncrypt) { encPrint(lefwFile, (char*) " ARRAYSPACING "); if (longArray) encPrint(lefwFile, (char*) "LONGARRAY "); if (viaWidth) encPrint(lefwFile, (char*) "WIDTH %.11g ", viaWidth); encPrint(lefwFile, (char*) "CUTSPACING %.11g ", cutSpacing); for (i = 0; i < numArrayCut; i++) { encPrint(lefwFile, (char*) "ARRAYCUTS %d SPACING %.11g ", *arrayCuts++, *arraySpacings++); } encPrint(lefwFile, (char*) " ;\n"); } else { fprintf(lefwFile, " ARRAYSPACING "); if (longArray) fprintf(lefwFile, "LONGARRAY "); if (viaWidth) fprintf(lefwFile, "WIDTH %.11g ", viaWidth); fprintf(lefwFile, "CUTSPACING %.11g ", cutSpacing); for (i = 0; i < numArrayCut; i++) { fprintf(lefwFile, "ARRAYCUTS %d SPACING %.11g ", *arrayCuts++, *arraySpacings++); } fprintf(lefwFile, " ;\n"); } lefwLines++; } lefwState = LEFW_LAYER; return LEFW_OK; }
O3
cpp
LefDefParser::lefwLayerArraySpacing(int, double, double, int, int*, double*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %rbx leaq 0x7bc80(%rip), %r13 # 0x8d0f0 movq (%r13), %rcx testq %rcx, %rcx je 0x11595 movq %rdx, %r14 movl %esi, %ebp movl %edi, %r15d leaq 0x7beb4(%rip), %rsi # 0x8d340 movl (%rsi), %edx movl $0x2, %eax cmpl $0x1c, %edx je 0x114a1 cmpl $0x6, %edx jne 0x1167c leaq 0x7becc(%rip), %rdx # 0x8d374 cmpl $0x0, (%rdx) je 0x1159f leaq 0x7beec(%rip), %rdx # 0x8d3a4 cmpl $0x0, (%rdx) jne 0x1167c xorpd %xmm2, %xmm2 ucomisd %xmm2, %xmm1 jne 0x114d1 jnp 0x11674 movsd %xmm0, 0x8(%rsp) movsd %xmm1, 0x10(%rsp) cmpb $0x1, 0x7bef8(%rip) # 0x8d3dc jne 0x115a9 leaq 0x4957d(%rip), %rsi # 0x5aa6e movq %rcx, %rdi xorl %eax, %eax callq 0x55afd testl %r15d, %r15d je 0x11512 movq (%r13), %rdi leaq 0x473d5(%rip), %rsi # 0x588e0 xorl %eax, %eax callq 0x55afd xorpd %xmm1, %xmm1 movsd 0x8(%rsp), %xmm0 ucomisd %xmm1, %xmm0 jne 0x11524 jnp 0x11536 movq (%r13), %rdi leaq 0x497ad(%rip), %rsi # 0x5acdc movb $0x1, %al callq 0x55afd movq (%r13), %rdi leaq 0x4953e(%rip), %rsi # 0x5aa7f movsd 0x10(%rsp), %xmm0 movb $0x1, %al callq 0x55afd testl %ebp, %ebp jle 0x1157e movl %ebp, %ebp xorl %r12d, %r12d leaq 0x49533(%rip), %r15 # 0x5aa91 movq (%r13), %rdi movl (%r14,%r12,4), %edx movsd (%rbx,%r12,8), %xmm0 movq %r15, %rsi movb $0x1, %al callq 0x55afd incq %r12 cmpl %r12d, %ebp jne 0x1155e movq (%r13), %rdi leaq 0x49277(%rip), %rsi # 0x5a800 xorl %eax, %eax callq 0x55afd jmp 0x11664 movl $0x1, %eax jmp 0x1167c movl $0x3, %eax jmp 0x1167c leaq 0x494bf(%rip), %rdi # 0x5aa6f movl $0xf, %esi movl $0x1, %edx callq 0x23d0 testl %r15d, %r15d je 0x115de movq (%r13), %rcx leaq 0x47311(%rip), %rdi # 0x588e0 movl $0xa, %esi movl $0x1, %edx callq 0x23d0 xorpd %xmm1, %xmm1 movsd 0x8(%rsp), %xmm0 ucomisd %xmm1, %xmm0 jne 0x115f0 jnp 0x11602 movq (%r13), %rdi leaq 0x496e1(%rip), %rsi # 0x5acdc movb $0x1, %al callq 0x22e0 movq (%r13), %rdi leaq 0x49472(%rip), %rsi # 0x5aa7f movsd 0x10(%rsp), %xmm0 movb $0x1, %al callq 0x22e0 testl %ebp, %ebp jle 0x1164a movl %ebp, %ebp xorl %r12d, %r12d leaq 0x49467(%rip), %r15 # 0x5aa91 movq (%r13), %rdi movl (%r14,%r12,4), %edx movsd (%rbx,%r12,8), %xmm0 movq %r15, %rsi movb $0x1, %al callq 0x22e0 incq %r12 cmpl %r12d, %ebp jne 0x1162a movq (%r13), %rcx leaq 0x491ab(%rip), %rdi # 0x5a800 movl $0x3, %esi movl $0x1, %edx callq 0x23d0 leaq 0x7bcd1(%rip), %rax # 0x8d33c incl (%rax) leaq 0x7bccc(%rip), %rsi # 0x8d340 movl $0x1c, (%rsi) xorl %eax, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN12LefDefParser21lefwLayerArraySpacingEiddiPiPd: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rcx lea r13, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rcx, [r13+0] test rcx, rcx jz loc_11595 mov r14, rdx mov ebp, esi mov r15d, edi lea rsi, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov edx, [rsi] mov eax, 2 cmp edx, 1Ch jz short loc_114A1 cmp edx, 6 jnz loc_1167C loc_114A1: lea rdx, _ZN12LefDefParser9lefwIsCutE; LefDefParser::lefwIsCut cmp dword ptr [rdx], 0 jz loc_1159F lea rdx, _ZN12LefDefParser17lefwIsMaxviastackE; LefDefParser::lefwIsMaxviastack cmp dword ptr [rdx], 0 jnz loc_1167C xorpd xmm2, xmm2 ucomisd xmm1, xmm2 jnz short loc_114D1 jnp loc_11674 loc_114D1: movsd [rsp+48h+var_40], xmm0 movsd [rsp+48h+var_38], xmm1 cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt jnz loc_115A9 lea rsi, aArrayspacing; " ARRAYSPACING " mov rdi, rcx xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) test r15d, r15d jz short loc_11512 mov rdi, [r13+0] lea rsi, aLongarray; "LONGARRAY " xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) loc_11512: xorpd xmm1, xmm1 movsd xmm0, [rsp+48h+var_40] ucomisd xmm0, xmm1 jnz short loc_11524 jnp short loc_11536 loc_11524: mov rdi, [r13+0] lea rsi, aMinimumcut11gW+14h; "WIDTH %.11g " mov al, 1 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) loc_11536: mov rdi, [r13+0] lea rsi, aCutspacing11g; "CUTSPACING %.11g " movsd xmm0, [rsp+48h+var_38] mov al, 1 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) test ebp, ebp jle short loc_1157E mov ebp, ebp xor r12d, r12d lea r15, aArraycutsDSpac_0; "ARRAYCUTS %d SPACING %.11g " loc_1155E: mov rdi, [r13+0] mov edx, [r14+r12*4] movsd xmm0, qword ptr [rbx+r12*8] mov rsi, r15 mov al, 1 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) inc r12 cmp ebp, r12d jnz short loc_1155E loc_1157E: mov rdi, [r13+0] lea rsi, aDividercharS+10h; " ;\n" xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp loc_11664 loc_11595: mov eax, 1 jmp loc_1167C loc_1159F: mov eax, 3 jmp loc_1167C loc_115A9: lea rdi, aArrayspacing+1; " ARRAYSPACING " mov esi, 0Fh mov edx, 1 call _fwrite test r15d, r15d jz short loc_115DE mov rcx, [r13+0] lea rdi, aLongarray; "LONGARRAY " mov esi, 0Ah mov edx, 1 call _fwrite loc_115DE: xorpd xmm1, xmm1 movsd xmm0, [rsp+48h+var_40] ucomisd xmm0, xmm1 jnz short loc_115F0 jnp short loc_11602 loc_115F0: mov rdi, [r13+0] lea rsi, aMinimumcut11gW+14h; "WIDTH %.11g " mov al, 1 call _fprintf loc_11602: mov rdi, [r13+0] lea rsi, aCutspacing11g; "CUTSPACING %.11g " movsd xmm0, [rsp+48h+var_38] mov al, 1 call _fprintf test ebp, ebp jle short loc_1164A mov ebp, ebp xor r12d, r12d lea r15, aArraycutsDSpac_0; "ARRAYCUTS %d SPACING %.11g " loc_1162A: mov rdi, [r13+0] mov edx, [r14+r12*4] movsd xmm0, qword ptr [rbx+r12*8] mov rsi, r15 mov al, 1 call _fprintf inc r12 cmp ebp, r12d jnz short loc_1162A loc_1164A: mov rcx, [r13+0] lea rdi, aDividercharS+10h; " ;\n" mov esi, 3 mov edx, 1 call _fwrite loc_11664: lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines inc dword ptr [rax] lea rsi, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState loc_11674: mov dword ptr [rsi], 1Ch xor eax, eax loc_1167C: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long LefDefParser::lefwLayerArraySpacing( LefDefParser *this, int a2, double a3, double a4, long long a5, int *a6, double *a7, int a8) { long long result; // rax int v11; // edx int v12; // ecx int v13; // r8d int v14; // r9d int v15; // edx int v16; // ecx int v17; // r8d int v18; // r9d long long v19; // r12 long long v20; // r12 if ( !*(_QWORD *)&LefDefParser::lefwFile ) return 1LL; result = 2LL; if ( LefDefParser::lefwState == 28 || LefDefParser::lefwState == 6 ) { if ( LefDefParser::lefwIsCut ) { if ( !LefDefParser::lefwIsMaxviastack ) { if ( a4 != 0.0 ) { if ( LefDefParser::lefwWriteEncrypt == 1 ) { LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)" ARRAYSPACING ", (unsigned int)&LefDefParser::lefwIsMaxviastack, LefDefParser::lefwFile, (_DWORD)a7, a8); if ( (_DWORD)this ) LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"LONGARRAY ", v11, v12, v13, v14); if ( a3 != 0.0 ) LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"WIDTH %.11g ", v11, v12, v13, v14); LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"CUTSPACING %.11g ", v11, v12, v13, v14); if ( a2 > 0 ) { v19 = 0LL; do LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)"ARRAYCUTS %d SPACING %.11g ", *(_DWORD *)(a5 + 4 * v19++), v16, v17, v18); while ( a2 != (_DWORD)v19 ); } LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" ;\n", v15, v16, v17, v18); } else { fwrite(" ARRAYSPACING ", 15LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); if ( (_DWORD)this ) fwrite("LONGARRAY ", 10LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); if ( a3 != 0.0 ) fprintf(*(_QWORD *)&LefDefParser::lefwFile, "WIDTH %.11g ", a3); fprintf(*(_QWORD *)&LefDefParser::lefwFile, "CUTSPACING %.11g ", a4); if ( a2 > 0 ) { v20 = 0LL; do { fprintf( *(_QWORD *)&LefDefParser::lefwFile, "ARRAYCUTS %d SPACING %.11g ", *(_DWORD *)(a5 + 4 * v20), *(double *)&a6[2 * v20]); ++v20; } while ( a2 != (_DWORD)v20 ); } fwrite(" ;\n", 3LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); } ++LefDefParser::lefwLines; } LefDefParser::lefwState = 28; return 0LL; } } else { return 3LL; } } return result; }
lefwLayerArraySpacing: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RCX LEA R13,[0x18d0f0] MOV RCX,qword ptr [R13] TEST RCX,RCX JZ 0x00111595 MOV R14,RDX MOV EBP,ESI MOV R15D,EDI LEA RSI,[0x18d340] MOV EDX,dword ptr [RSI] MOV EAX,0x2 CMP EDX,0x1c JZ 0x001114a1 CMP EDX,0x6 JNZ 0x0011167c LAB_001114a1: LEA RDX,[0x18d374] CMP dword ptr [RDX],0x0 JZ 0x0011159f LEA RDX,[0x18d3a4] CMP dword ptr [RDX],0x0 JNZ 0x0011167c XORPD XMM2,XMM2 UCOMISD XMM1,XMM2 JNZ 0x001114d1 JNP 0x00111674 LAB_001114d1: MOVSD qword ptr [RSP + 0x8],XMM0 MOVSD qword ptr [RSP + 0x10],XMM1 CMP byte ptr [0x0018d3dc],0x1 JNZ 0x001115a9 LEA RSI,[0x15aa6e] MOV RDI,RCX XOR EAX,EAX CALL 0x00155afd TEST R15D,R15D JZ 0x00111512 MOV RDI,qword ptr [R13] LEA RSI,[0x1588e0] XOR EAX,EAX CALL 0x00155afd LAB_00111512: XORPD XMM1,XMM1 MOVSD XMM0,qword ptr [RSP + 0x8] UCOMISD XMM0,XMM1 JNZ 0x00111524 JNP 0x00111536 LAB_00111524: MOV RDI,qword ptr [R13] LEA RSI,[0x15acdc] MOV AL,0x1 CALL 0x00155afd LAB_00111536: MOV RDI,qword ptr [R13] LEA RSI,[0x15aa7f] MOVSD XMM0,qword ptr [RSP + 0x10] MOV AL,0x1 CALL 0x00155afd TEST EBP,EBP JLE 0x0011157e MOV EBP,EBP XOR R12D,R12D LEA R15,[0x15aa91] LAB_0011155e: MOV RDI,qword ptr [R13] MOV EDX,dword ptr [R14 + R12*0x4] MOVSD XMM0,qword ptr [RBX + R12*0x8] MOV RSI,R15 MOV AL,0x1 CALL 0x00155afd INC R12 CMP EBP,R12D JNZ 0x0011155e LAB_0011157e: MOV RDI,qword ptr [R13] LEA RSI,[0x15a800] XOR EAX,EAX CALL 0x00155afd JMP 0x00111664 LAB_00111595: MOV EAX,0x1 JMP 0x0011167c LAB_0011159f: MOV EAX,0x3 JMP 0x0011167c LAB_001115a9: LEA RDI,[0x15aa6f] MOV ESI,0xf MOV EDX,0x1 CALL 0x001023d0 TEST R15D,R15D JZ 0x001115de MOV RCX,qword ptr [R13] LEA RDI,[0x1588e0] MOV ESI,0xa MOV EDX,0x1 CALL 0x001023d0 LAB_001115de: XORPD XMM1,XMM1 MOVSD XMM0,qword ptr [RSP + 0x8] UCOMISD XMM0,XMM1 JNZ 0x001115f0 JNP 0x00111602 LAB_001115f0: MOV RDI,qword ptr [R13] LEA RSI,[0x15acdc] MOV AL,0x1 CALL 0x001022e0 LAB_00111602: MOV RDI,qword ptr [R13] LEA RSI,[0x15aa7f] MOVSD XMM0,qword ptr [RSP + 0x10] MOV AL,0x1 CALL 0x001022e0 TEST EBP,EBP JLE 0x0011164a MOV EBP,EBP XOR R12D,R12D LEA R15,[0x15aa91] LAB_0011162a: MOV RDI,qword ptr [R13] MOV EDX,dword ptr [R14 + R12*0x4] MOVSD XMM0,qword ptr [RBX + R12*0x8] MOV RSI,R15 MOV AL,0x1 CALL 0x001022e0 INC R12 CMP EBP,R12D JNZ 0x0011162a LAB_0011164a: MOV RCX,qword ptr [R13] LEA RDI,[0x15a800] MOV ESI,0x3 MOV EDX,0x1 CALL 0x001023d0 LAB_00111664: LEA RAX,[0x18d33c] INC dword ptr [RAX] LEA RSI,[0x18d340] LAB_00111674: MOV dword ptr [RSI],0x1c XOR EAX,EAX LAB_0011167c: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* LefDefParser::lefwLayerArraySpacing(int, double, double, int, int*, double*) */ int8 LefDefParser::lefwLayerArraySpacing (int param_1,double param_2,double param_3,int param_4,int *param_5,double *param_6) { int8 uVar1; long lVar2; if (lefwFile == (_IO_FILE *)0x0) { uVar1 = 1; } else { uVar1 = 2; if ((lefwState == 0x1c) || (lefwState == 6)) { if (lefwIsCut == 0) { uVar1 = 3; } else if (lefwIsMaxviastack == 0) { if ((param_3 != 0.0) || (NAN(param_3))) { if (lefwWriteEncrypt == '\x01') { encPrint(lefwFile," ARRAYSPACING "); if (param_1 != 0) { encPrint(lefwFile,"LONGARRAY "); } if ((param_2 != 0.0) || (NAN(param_2))) { encPrint(lefwFile,"WIDTH %.11g "); } encPrint(lefwFile,"CUTSPACING %.11g ",param_3); if (0 < param_4) { lVar2 = 0; do { encPrint(lefwFile,"ARRAYCUTS %d SPACING %.11g ",param_6[lVar2], (ulong)(uint)param_5[lVar2]); lVar2 = lVar2 + 1; } while (param_4 != (int)lVar2); } encPrint(lefwFile," ;\n"); } else { fwrite(" ARRAYSPACING ",0xf,1,lefwFile); if (param_1 != 0) { fwrite("LONGARRAY ",10,1,lefwFile); } if ((param_2 != 0.0) || (NAN(param_2))) { fprintf(lefwFile,"WIDTH %.11g "); } fprintf(lefwFile,"CUTSPACING %.11g ",param_3); if (0 < param_4) { lVar2 = 0; do { fprintf(lefwFile,"ARRAYCUTS %d SPACING %.11g ",param_6[lVar2], (ulong)(uint)param_5[lVar2]); lVar2 = lVar2 + 1; } while (param_4 != (int)lVar2); } fwrite(" ;\n",3,1,lefwFile); } lefwLines = lefwLines + 1; } lefwState = 0x1c; uVar1 = 0; } } } return uVar1; }
51,058
mysql_session_track_get_first
eloqsql/libmariadb/libmariadb/mariadb_lib.c
int STDCALL mysql_session_track_get_first(MYSQL *mysql, enum enum_session_state_type type, const char **data, size_t *length) { mysql->extension->session_state[type].current= mysql->extension->session_state[type].list; return mysql_session_track_get_next(mysql, type, data, length); }
O3
c
mysql_session_track_get_first: pushq %rbp movq %rsp, %rbp movq 0x4f0(%rdi), %r8 movl %esi, %eax shlq $0x4, %rax movq 0x8(%r8,%rax), %rsi movq %rsi, 0x10(%r8,%rax) movq 0x4f0(%rdi), %rdi movq 0x10(%rdi,%rax), %rsi testq %rsi, %rsi je 0x8c132 addq %rdi, %rax addq $0x10, %rax movq 0x8(%rsi), %rdi movq 0x10(%rsi), %rsi movq %rdi, (%rax) movq (%rsi), %rdi movq %rdi, (%rdx) xorl %eax, %eax testq %rdi, %rdi je 0x8c139 movq 0x8(%rsi), %rdx jmp 0x8c13b movl $0x1, %eax jmp 0x8c13e xorl %edx, %edx movq %rdx, (%rcx) popq %rbp retq
mysql_session_track_get_first: push rbp mov rbp, rsp mov r8, [rdi+4F0h] mov eax, esi shl rax, 4 mov rsi, [r8+rax+8] mov [r8+rax+10h], rsi mov rdi, [rdi+4F0h] mov rsi, [rdi+rax+10h] test rsi, rsi jz short loc_8C132 add rax, rdi add rax, 10h mov rdi, [rsi+8] mov rsi, [rsi+10h] mov [rax], rdi mov rdi, [rsi] mov [rdx], rdi xor eax, eax test rdi, rdi jz short loc_8C139 mov rdx, [rsi+8] jmp short loc_8C13B loc_8C132: mov eax, 1 jmp short loc_8C13E loc_8C139: xor edx, edx loc_8C13B: mov [rcx], rdx loc_8C13E: pop rbp retn
long long mysql_session_track_get_first(long long a1, unsigned int a2, long long *a3, _QWORD *a4) { long long v4; // rax long long v5; // rdi long long v6; // rsi _QWORD *v7; // rax long long v8; // rdi long long *v9; // rsi long long v10; // rdi long long result; // rax long long v12; // rdx v4 = 16LL * a2; *(_QWORD *)(*(_QWORD *)(a1 + 1264) + v4 + 16) = *(_QWORD *)(*(_QWORD *)(a1 + 1264) + v4 + 8); v5 = *(_QWORD *)(a1 + 1264); v6 = *(_QWORD *)(v5 + v4 + 16); if ( !v6 ) return 1LL; v7 = (_QWORD *)(v5 + v4 + 16); v8 = *(_QWORD *)(v6 + 8); v9 = *(long long **)(v6 + 16); *v7 = v8; v10 = *v9; *a3 = *v9; result = 0LL; if ( v10 ) v12 = v9[1]; else v12 = 0LL; *a4 = v12; return result; }
mysql_session_track_get_first: PUSH RBP MOV RBP,RSP MOV R8,qword ptr [RDI + 0x4f0] MOV EAX,ESI SHL RAX,0x4 MOV RSI,qword ptr [R8 + RAX*0x1 + 0x8] MOV qword ptr [R8 + RAX*0x1 + 0x10],RSI MOV RDI,qword ptr [RDI + 0x4f0] MOV RSI,qword ptr [RDI + RAX*0x1 + 0x10] TEST RSI,RSI JZ 0x0018c132 ADD RAX,RDI ADD RAX,0x10 MOV RDI,qword ptr [RSI + 0x8] MOV RSI,qword ptr [RSI + 0x10] MOV qword ptr [RAX],RDI MOV RDI,qword ptr [RSI] MOV qword ptr [RDX],RDI XOR EAX,EAX TEST RDI,RDI JZ 0x0018c139 MOV RDX,qword ptr [RSI + 0x8] JMP 0x0018c13b LAB_0018c132: MOV EAX,0x1 JMP 0x0018c13e LAB_0018c139: XOR EDX,EDX LAB_0018c13b: MOV qword ptr [RCX],RDX LAB_0018c13e: POP RBP RET
int8 mysql_session_track_get_first(long param_1,ulong param_2,long *param_3,long *param_4) { long *plVar1; long lVar2; int8 uVar3; long lVar4; lVar2 = (param_2 & 0xffffffff) * 0x10; *(int8 *)(*(long *)(param_1 + 0x4f0) + 0x10 + lVar2) = *(int8 *)(*(long *)(param_1 + 0x4f0) + 8 + lVar2); lVar4 = *(long *)(*(long *)(param_1 + 0x4f0) + 0x10 + lVar2); if (lVar4 == 0) { uVar3 = 1; } else { plVar1 = *(long **)(lVar4 + 0x10); *(int8 *)(lVar2 + *(long *)(param_1 + 0x4f0) + 0x10) = *(int8 *)(lVar4 + 8); lVar4 = *plVar1; *param_3 = lVar4; uVar3 = 0; if (lVar4 == 0) { lVar4 = 0; } else { lVar4 = plVar1[1]; } *param_4 = lVar4; } return uVar3; }
51,059
str_to_TIME
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
int str_to_TIME(const char *str, size_t length, MYSQL_TIME *tm) { const char *p = str; const char *end = str + length; int is_time = 0; if (!p) goto error; while (p < end && isspace(*p)) p++; while (p < end && isspace(end[-1])) end--; if (end -p < 5) goto error; if (*p == '-') { tm->neg = 1; /* Only TIME can't be negative.*/ is_time = 1; p++; } else { int i; tm->neg = 0; /* Date parsing (in server) accepts leading zeroes, thus position of the delimiters is not fixed. Scan the string to find out what we need to parse. */ for (i = 1; p + i < end; i++) { if(p[i] == '-' || p [i] == ':') { is_time = p[i] == ':'; break; } } } if (is_time) { if (parse_time(p, end - p, &p, tm)) goto error; tm->year = tm->month = tm->day = 0; tm->time_type = MYSQL_TIMESTAMP_TIME; return 0; } if (parse_date(p, end - p, &p, tm)) goto error; if (p == end || p[0] != ' ') { tm->hour = tm->minute = tm->second = tm->second_part = 0; tm->time_type = MYSQL_TIMESTAMP_DATE; return 0; } /* Skip space. */ p++; if (parse_time(p, end - p, &p, tm)) goto error; /* In DATETIME, hours must be < 24.*/ if (tm->hour > 23) goto error; tm->time_type = MYSQL_TIMESTAMP_DATETIME; return 0; error: memset(tm, 0, sizeof(*tm)); tm->time_type = MYSQL_TIMESTAMP_ERROR; return 1; }
O0
c
str_to_TIME: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movl $0x0, -0x34(%rbp) cmpq $0x0, -0x28(%rbp) jne 0x2e01b jmp 0x2e28f jmp 0x2e01d movq -0x28(%rbp), %rcx xorl %eax, %eax cmpq -0x30(%rbp), %rcx movb %al, -0x39(%rbp) jae 0x2e050 callq 0x13470 movq (%rax), %rax movq -0x28(%rbp), %rcx movsbl (%rcx), %ecx movslq %ecx, %rcx movzwl (%rax,%rcx,2), %eax andl $0x2000, %eax # imm = 0x2000 cmpl $0x0, %eax setne %al movb %al, -0x39(%rbp) movb -0x39(%rbp), %al testb $0x1, %al jne 0x2e059 jmp 0x2e067 movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x2e01d jmp 0x2e069 movq -0x28(%rbp), %rcx xorl %eax, %eax cmpq -0x30(%rbp), %rcx movb %al, -0x3a(%rbp) jae 0x2e09d callq 0x13470 movq (%rax), %rax movq -0x30(%rbp), %rcx movsbl -0x1(%rcx), %ecx movslq %ecx, %rcx movzwl (%rax,%rcx,2), %eax andl $0x2000, %eax # imm = 0x2000 cmpl $0x0, %eax setne %al movb %al, -0x3a(%rbp) movb -0x3a(%rbp), %al testb $0x1, %al jne 0x2e0a6 jmp 0x2e0b4 movq -0x30(%rbp), %rax addq $-0x1, %rax movq %rax, -0x30(%rbp) jmp 0x2e069 movq -0x30(%rbp), %rax movq -0x28(%rbp), %rcx subq %rcx, %rax cmpq $0x5, %rax jge 0x2e0ca jmp 0x2e28f movq -0x28(%rbp), %rax movsbl (%rax), %eax cmpl $0x2d, %eax jne 0x2e0f3 movq -0x20(%rbp), %rax movb $0x1, 0x20(%rax) movl $0x1, -0x34(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x2e160 movq -0x20(%rbp), %rax movb $0x0, 0x20(%rax) movl $0x1, -0x38(%rbp) movq -0x28(%rbp), %rax movslq -0x38(%rbp), %rcx addq %rcx, %rax cmpq -0x30(%rbp), %rax jae 0x2e15e movq -0x28(%rbp), %rax movslq -0x38(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0x2d, %eax je 0x2e135 movq -0x28(%rbp), %rax movslq -0x38(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0x3a, %eax jne 0x2e151 movq -0x28(%rbp), %rax movslq -0x38(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0x3a, %eax sete %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x34(%rbp) jmp 0x2e15e jmp 0x2e153 movl -0x38(%rbp), %eax addl $0x1, %eax movl %eax, -0x38(%rbp) jmp 0x2e102 jmp 0x2e160 cmpl $0x0, -0x34(%rbp) je 0x2e1c3 movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x28(%rbp), %rax subq %rax, %rsi movq -0x20(%rbp), %rcx leaq -0x28(%rbp), %rdx callq 0x2e2c0 cmpl $0x0, %eax je 0x2e18c jmp 0x2e28f movq -0x20(%rbp), %rax movl $0x0, 0x8(%rax) movq -0x20(%rbp), %rax movl $0x0, 0x4(%rax) movq -0x20(%rbp), %rax movl $0x0, (%rax) movq -0x20(%rbp), %rax movl $0x2, 0x24(%rax) movl $0x0, -0x4(%rbp) jmp 0x2e2b1 movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x28(%rbp), %rax subq %rax, %rsi movq -0x20(%rbp), %rcx leaq -0x28(%rbp), %rdx callq 0x2e510 cmpl $0x0, %eax je 0x2e1e9 jmp 0x2e28f movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax je 0x2e1ff movq -0x28(%rbp), %rax movsbl (%rax), %eax cmpl $0x20, %eax je 0x2e240 movq -0x20(%rbp), %rax movq $0x0, 0x18(%rax) movq -0x20(%rbp), %rax movl $0x0, 0x14(%rax) movq -0x20(%rbp), %rax movl $0x0, 0x10(%rax) movq -0x20(%rbp), %rax movl $0x0, 0xc(%rax) movq -0x20(%rbp), %rax movl $0x0, 0x24(%rax) movl $0x0, -0x4(%rbp) jmp 0x2e2b1 movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x28(%rbp), %rax subq %rax, %rsi movq -0x20(%rbp), %rcx leaq -0x28(%rbp), %rdx callq 0x2e2c0 cmpl $0x0, %eax je 0x2e26f jmp 0x2e28f movq -0x20(%rbp), %rax cmpl $0x17, 0xc(%rax) jbe 0x2e27b jmp 0x2e28f movq -0x20(%rbp), %rax movl $0x1, 0x24(%rax) movl $0x0, -0x4(%rbp) jmp 0x2e2b1 movq -0x20(%rbp), %rdi xorl %esi, %esi movl $0x28, %edx callq 0x13250 movq -0x20(%rbp), %rax movl $0xffffffff, 0x24(%rax) # imm = 0xFFFFFFFF movl $0x1, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopw (%rax,%rax)
str_to_TIME: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_30], rax mov [rbp+var_34], 0 cmp [rbp+var_28], 0 jnz short loc_2E01B jmp loc_2E28F loc_2E01B: jmp short $+2 loc_2E01D: mov rcx, [rbp+var_28] xor eax, eax cmp rcx, [rbp+var_30] mov [rbp+var_39], al jnb short loc_2E050 call ___ctype_b_loc mov rax, [rax] mov rcx, [rbp+var_28] movsx ecx, byte ptr [rcx] movsxd rcx, ecx movzx eax, word ptr [rax+rcx*2] and eax, 2000h cmp eax, 0 setnz al mov [rbp+var_39], al loc_2E050: mov al, [rbp+var_39] test al, 1 jnz short loc_2E059 jmp short loc_2E067 loc_2E059: mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax jmp short loc_2E01D loc_2E067: jmp short $+2 loc_2E069: mov rcx, [rbp+var_28] xor eax, eax cmp rcx, [rbp+var_30] mov [rbp+var_3A], al jnb short loc_2E09D call ___ctype_b_loc mov rax, [rax] mov rcx, [rbp+var_30] movsx ecx, byte ptr [rcx-1] movsxd rcx, ecx movzx eax, word ptr [rax+rcx*2] and eax, 2000h cmp eax, 0 setnz al mov [rbp+var_3A], al loc_2E09D: mov al, [rbp+var_3A] test al, 1 jnz short loc_2E0A6 jmp short loc_2E0B4 loc_2E0A6: mov rax, [rbp+var_30] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_30], rax jmp short loc_2E069 loc_2E0B4: mov rax, [rbp+var_30] mov rcx, [rbp+var_28] sub rax, rcx cmp rax, 5 jge short loc_2E0CA jmp loc_2E28F loc_2E0CA: mov rax, [rbp+var_28] movsx eax, byte ptr [rax] cmp eax, 2Dh ; '-' jnz short loc_2E0F3 mov rax, [rbp+var_20] mov byte ptr [rax+20h], 1 mov [rbp+var_34], 1 mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax jmp short loc_2E160 loc_2E0F3: mov rax, [rbp+var_20] mov byte ptr [rax+20h], 0 mov [rbp+var_38], 1 loc_2E102: mov rax, [rbp+var_28] movsxd rcx, [rbp+var_38] add rax, rcx cmp rax, [rbp+var_30] jnb short loc_2E15E mov rax, [rbp+var_28] movsxd rcx, [rbp+var_38] movsx eax, byte ptr [rax+rcx] cmp eax, 2Dh ; '-' jz short loc_2E135 mov rax, [rbp+var_28] movsxd rcx, [rbp+var_38] movsx eax, byte ptr [rax+rcx] cmp eax, 3Ah ; ':' jnz short loc_2E151 loc_2E135: mov rax, [rbp+var_28] movsxd rcx, [rbp+var_38] movsx eax, byte ptr [rax+rcx] cmp eax, 3Ah ; ':' setz al and al, 1 movzx eax, al mov [rbp+var_34], eax jmp short loc_2E15E loc_2E151: jmp short $+2 loc_2E153: mov eax, [rbp+var_38] add eax, 1 mov [rbp+var_38], eax jmp short loc_2E102 loc_2E15E: jmp short $+2 loc_2E160: cmp [rbp+var_34], 0 jz short loc_2E1C3 mov rdi, [rbp+var_28] mov rsi, [rbp+var_30] mov rax, [rbp+var_28] sub rsi, rax mov rcx, [rbp+var_20] lea rdx, [rbp+var_28] call parse_time cmp eax, 0 jz short loc_2E18C jmp loc_2E28F loc_2E18C: mov rax, [rbp+var_20] mov dword ptr [rax+8], 0 mov rax, [rbp+var_20] mov dword ptr [rax+4], 0 mov rax, [rbp+var_20] mov dword ptr [rax], 0 mov rax, [rbp+var_20] mov dword ptr [rax+24h], 2 mov [rbp+var_4], 0 jmp loc_2E2B1 loc_2E1C3: mov rdi, [rbp+var_28] mov rsi, [rbp+var_30] mov rax, [rbp+var_28] sub rsi, rax mov rcx, [rbp+var_20] lea rdx, [rbp+var_28] call parse_date cmp eax, 0 jz short loc_2E1E9 jmp loc_2E28F loc_2E1E9: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jz short loc_2E1FF mov rax, [rbp+var_28] movsx eax, byte ptr [rax] cmp eax, 20h ; ' ' jz short loc_2E240 loc_2E1FF: mov rax, [rbp+var_20] mov qword ptr [rax+18h], 0 mov rax, [rbp+var_20] mov dword ptr [rax+14h], 0 mov rax, [rbp+var_20] mov dword ptr [rax+10h], 0 mov rax, [rbp+var_20] mov dword ptr [rax+0Ch], 0 mov rax, [rbp+var_20] mov dword ptr [rax+24h], 0 mov [rbp+var_4], 0 jmp short loc_2E2B1 loc_2E240: mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax mov rdi, [rbp+var_28] mov rsi, [rbp+var_30] mov rax, [rbp+var_28] sub rsi, rax mov rcx, [rbp+var_20] lea rdx, [rbp+var_28] call parse_time cmp eax, 0 jz short loc_2E26F jmp short loc_2E28F loc_2E26F: mov rax, [rbp+var_20] cmp dword ptr [rax+0Ch], 17h jbe short loc_2E27B jmp short loc_2E28F loc_2E27B: mov rax, [rbp+var_20] mov dword ptr [rax+24h], 1 mov [rbp+var_4], 0 jmp short loc_2E2B1 loc_2E28F: mov rdi, [rbp+var_20] xor esi, esi mov edx, 28h ; '(' call _memset mov rax, [rbp+var_20] mov dword ptr [rax+24h], 0FFFFFFFFh mov [rbp+var_4], 1 loc_2E2B1: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long str_to_TIME(_BYTE *a1, long long a2, long long a3) { bool v4; // [rsp+6h] [rbp-3Ah] bool v5; // [rsp+7h] [rbp-39h] int i; // [rsp+8h] [rbp-38h] BOOL v7; // [rsp+Ch] [rbp-34h] unsigned long long v8; // [rsp+10h] [rbp-30h] _BYTE *v9; // [rsp+18h] [rbp-28h] BYREF long long v10; // [rsp+20h] [rbp-20h] long long v11; // [rsp+28h] [rbp-18h] _BYTE *v12; // [rsp+30h] [rbp-10h] v12 = a1; v11 = a2; v10 = a3; v9 = a1; v8 = (unsigned long long)&a1[a2]; v7 = 0; if ( !a1 ) goto LABEL_29; while ( 1 ) { v5 = 0; if ( (unsigned long long)v9 < v8 ) v5 = (*(_WORD *)(*(_QWORD *)__ctype_b_loc() + 2LL * (char)*v9) & 0x2000) != 0; if ( !v5 ) break; ++v9; } while ( 1 ) { v4 = 0; if ( (unsigned long long)v9 < v8 ) v4 = (*(_WORD *)(*(_QWORD *)__ctype_b_loc() + 2LL * *(char *)(v8 - 1)) & 0x2000) != 0; if ( !v4 ) break; --v8; } if ( (long long)(v8 - (_QWORD)v9) < 5 ) goto LABEL_29; if ( *v9 == 45 ) { *(_BYTE *)(v10 + 32) = 1; v7 = 1; ++v9; } else { *(_BYTE *)(v10 + 32) = 0; for ( i = 1; (unsigned long long)&v9[i] < v8; ++i ) { if ( v9[i] == 45 || v9[i] == 58 ) { v7 = v9[i] == 58; break; } } } if ( !v7 ) { if ( !(unsigned int)parse_date(v9, v8 - (_QWORD)v9, &v9, v10) ) { if ( v9 == (_BYTE *)v8 || *v9 != 32 ) { *(_QWORD *)(v10 + 24) = 0LL; *(_DWORD *)(v10 + 20) = 0; *(_DWORD *)(v10 + 16) = 0; *(_DWORD *)(v10 + 12) = 0; *(_DWORD *)(v10 + 36) = 0; return 0; } ++v9; if ( !(unsigned int)parse_time(v9, v8 - (_QWORD)v9, &v9, v10) && *(_DWORD *)(v10 + 12) <= 0x17u ) { *(_DWORD *)(v10 + 36) = 1; return 0; } } LABEL_29: memset(v10, 0LL, 40LL); *(_DWORD *)(v10 + 36) = -1; return 1; } if ( (unsigned int)parse_time(v9, v8 - (_QWORD)v9, &v9, v10) ) goto LABEL_29; *(_DWORD *)(v10 + 8) = 0; *(_DWORD *)(v10 + 4) = 0; *(_DWORD *)v10 = 0; *(_DWORD *)(v10 + 36) = 2; return 0; }
str_to_TIME: 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 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV dword ptr [RBP + -0x34],0x0 CMP qword ptr [RBP + -0x28],0x0 JNZ 0x0012e01b JMP 0x0012e28f LAB_0012e01b: JMP 0x0012e01d LAB_0012e01d: MOV RCX,qword ptr [RBP + -0x28] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x30] MOV byte ptr [RBP + -0x39],AL JNC 0x0012e050 CALL 0x00113470 MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x28] MOVSX ECX,byte ptr [RCX] MOVSXD RCX,ECX MOVZX EAX,word ptr [RAX + RCX*0x2] AND EAX,0x2000 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x39],AL LAB_0012e050: MOV AL,byte ptr [RBP + -0x39] TEST AL,0x1 JNZ 0x0012e059 JMP 0x0012e067 LAB_0012e059: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x0012e01d LAB_0012e067: JMP 0x0012e069 LAB_0012e069: MOV RCX,qword ptr [RBP + -0x28] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x30] MOV byte ptr [RBP + -0x3a],AL JNC 0x0012e09d CALL 0x00113470 MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x30] MOVSX ECX,byte ptr [RCX + -0x1] MOVSXD RCX,ECX MOVZX EAX,word ptr [RAX + RCX*0x2] AND EAX,0x2000 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x3a],AL LAB_0012e09d: MOV AL,byte ptr [RBP + -0x3a] TEST AL,0x1 JNZ 0x0012e0a6 JMP 0x0012e0b4 LAB_0012e0a6: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,-0x1 MOV qword ptr [RBP + -0x30],RAX JMP 0x0012e069 LAB_0012e0b4: MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x28] SUB RAX,RCX CMP RAX,0x5 JGE 0x0012e0ca JMP 0x0012e28f LAB_0012e0ca: MOV RAX,qword ptr [RBP + -0x28] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2d JNZ 0x0012e0f3 MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x20],0x1 MOV dword ptr [RBP + -0x34],0x1 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x0012e160 LAB_0012e0f3: MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x20],0x0 MOV dword ptr [RBP + -0x38],0x1 LAB_0012e102: MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,dword ptr [RBP + -0x38] ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x30] JNC 0x0012e15e MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,dword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0x2d JZ 0x0012e135 MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,dword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0x3a JNZ 0x0012e151 LAB_0012e135: MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,dword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0x3a SETZ AL AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RBP + -0x34],EAX JMP 0x0012e15e LAB_0012e151: JMP 0x0012e153 LAB_0012e153: MOV EAX,dword ptr [RBP + -0x38] ADD EAX,0x1 MOV dword ptr [RBP + -0x38],EAX JMP 0x0012e102 LAB_0012e15e: JMP 0x0012e160 LAB_0012e160: CMP dword ptr [RBP + -0x34],0x0 JZ 0x0012e1c3 MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x28] SUB RSI,RAX MOV RCX,qword ptr [RBP + -0x20] LEA RDX,[RBP + -0x28] CALL 0x0012e2c0 CMP EAX,0x0 JZ 0x0012e18c JMP 0x0012e28f LAB_0012e18c: MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x4],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x24],0x2 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0012e2b1 LAB_0012e1c3: MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x28] SUB RSI,RAX MOV RCX,qword ptr [RBP + -0x20] LEA RDX,[RBP + -0x28] CALL 0x0012e510 CMP EAX,0x0 JZ 0x0012e1e9 JMP 0x0012e28f LAB_0012e1e9: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JZ 0x0012e1ff MOV RAX,qword ptr [RBP + -0x28] MOVSX EAX,byte ptr [RAX] CMP EAX,0x20 JZ 0x0012e240 LAB_0012e1ff: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x18],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x14],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x10],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0xc],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x24],0x0 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0012e2b1 LAB_0012e240: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x28] SUB RSI,RAX MOV RCX,qword ptr [RBP + -0x20] LEA RDX,[RBP + -0x28] CALL 0x0012e2c0 CMP EAX,0x0 JZ 0x0012e26f JMP 0x0012e28f LAB_0012e26f: MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX + 0xc],0x17 JBE 0x0012e27b JMP 0x0012e28f LAB_0012e27b: MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x24],0x1 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0012e2b1 LAB_0012e28f: MOV RDI,qword ptr [RBP + -0x20] XOR ESI,ESI MOV EDX,0x28 CALL 0x00113250 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x24],0xffffffff MOV dword ptr [RBP + -0x4],0x1 LAB_0012e2b1: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
int4 str_to_TIME(char *param_1,long param_2,int4 *param_3) { int iVar1; ushort **ppuVar2; bool bVar3; bool bVar4; int local_40; char *local_38; char *local_30; int4 *local_28; long local_20; char *local_18; local_38 = param_1 + param_2; bVar4 = false; local_30 = param_1; local_28 = param_3; local_20 = param_2; local_18 = param_1; if (param_1 != (char *)0x0) { while( true ) { bVar3 = false; if (local_30 < local_38) { ppuVar2 = __ctype_b_loc(); bVar3 = ((*ppuVar2)[(int)*local_30] & 0x2000) != 0; } if (!bVar3) break; local_30 = local_30 + 1; } while( true ) { bVar3 = false; if (local_30 < local_38) { ppuVar2 = __ctype_b_loc(); bVar3 = ((*ppuVar2)[(int)local_38[-1]] & 0x2000) != 0; } if (!bVar3) break; local_38 = local_38 + -1; } if (4 < (long)local_38 - (long)local_30) { if (*local_30 == '-') { *(int1 *)(local_28 + 8) = 1; bVar4 = true; local_30 = local_30 + 1; } else { *(int1 *)(local_28 + 8) = 0; for (local_40 = 1; local_30 + local_40 < local_38; local_40 = local_40 + 1) { if ((local_30[local_40] == '-') || (local_30[local_40] == ':')) { bVar4 = local_30[local_40] == ':'; break; } } } if (bVar4) { iVar1 = parse_time(local_30,(long)local_38 - (long)local_30,&local_30,local_28); if (iVar1 == 0) { local_28[2] = 0; local_28[1] = 0; *local_28 = 0; local_28[9] = 2; return 0; } } else { iVar1 = parse_date(local_30,(long)local_38 - (long)local_30,&local_30,local_28); if (iVar1 == 0) { if ((local_30 == local_38) || (*local_30 != ' ')) { *(int8 *)(local_28 + 6) = 0; local_28[5] = 0; local_28[4] = 0; local_28[3] = 0; local_28[9] = 0; return 0; } local_30 = local_30 + 1; iVar1 = parse_time(local_30,(long)local_38 - (long)local_30,&local_30,local_28); if ((iVar1 == 0) && ((uint)local_28[3] < 0x18)) { local_28[9] = 1; return 0; } } } } } memset(local_28,0,0x28); local_28[9] = 0xffffffff; return 1; }
51,060
my_wildcmp_8bit_impl
eloqsql/strings/ctype-simple.c
static int my_wildcmp_8bit_impl(CHARSET_INFO *cs, const char *str,const char *str_end, const char *wildstr,const char *wildend, int escape, int w_one, int w_many, int recurse_level) { int result= -1; /* Not found, using wildcards */ if (my_string_stack_guard && my_string_stack_guard(recurse_level)) return 1; while (wildstr != wildend) { while (*wildstr != w_many && *wildstr != w_one) { if (*wildstr == escape && wildstr+1 != wildend) wildstr++; if (str == str_end || likeconv(cs,*wildstr++) != likeconv(cs,*str++)) return(1); /* No match */ if (wildstr == wildend) return(str != str_end); /* Match if both are at end */ result=1; /* Found an anchor char */ } if (*wildstr == w_one) { do { if (str == str_end) /* Skip one char if possible */ return(result); INC_PTR(cs,str,str_end); } while (++wildstr < wildend && *wildstr == w_one); if (wildstr == wildend) break; } if (*wildstr == w_many) { /* Found w_many */ uchar cmp; wildstr++; /* Remove any '%' and '_' from the wild search string */ for (; wildstr != wildend ; wildstr++) { if (*wildstr == w_many) continue; if (*wildstr == w_one) { if (str == str_end) return(-1); INC_PTR(cs,str,str_end); continue; } break; /* Not a wild character */ } if (wildstr == wildend) return(0); /* Ok if w_many is last */ if (str == str_end) return(-1); if ((cmp= *wildstr) == escape && wildstr+1 != wildend) cmp= *++wildstr; INC_PTR(cs,wildstr,wildend); /* This is compared trough cmp */ cmp=likeconv(cs,cmp); do { /* Find the next character in the subject string equal to 'cmp', then check recursively my_wildcmp_8bit_impl() for the pattern remainder. */ while (str != str_end && (uchar) likeconv(cs,*str) != cmp) str++; if (str++ == str_end) return(-1); /* 'cmp' was not found in the subject string */ { int tmp=my_wildcmp_8bit_impl(cs,str,str_end, wildstr,wildend,escape,w_one, w_many, recurse_level+1); if (tmp <= 0) return(tmp); } /* The recursion call did not match. But it returned 1, which means the pattern remainder has some non-special characters. Continue, there is a chance that we'll find another 'cmp' at a different position in the subject string. */ } while (str != str_end); return(-1); } } return(str != str_end ? 1 : 0); }
O0
c
my_wildcmp_8bit_impl: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movl 0x20(%rbp), %eax movl 0x18(%rbp), %eax movl 0x10(%rbp), %eax movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movl %r9d, -0x34(%rbp) movl $0xffffffff, -0x38(%rbp) # imm = 0xFFFFFFFF leaq 0x39f251(%rip), %rax # 0x41a918 cmpq $0x0, (%rax) je 0x7b6ed leaq 0x39f244(%rip), %rax # 0x41a918 movq (%rax), %rax movl 0x20(%rbp), %edi callq *%rax cmpl $0x0, %eax je 0x7b6ed movl $0x1, -0x4(%rbp) jmp 0x7ba1a jmp 0x7b6ef movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax je 0x7ba02 jmp 0x7b6ff movq -0x28(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax cmpl 0x18(%rbp), %ecx movb %al, -0x41(%rbp) je 0x7b720 movq -0x28(%rbp), %rax movsbl (%rax), %eax cmpl 0x10(%rbp), %eax setne %al movb %al, -0x41(%rbp) movb -0x41(%rbp), %al testb $0x1, %al jne 0x7b72c jmp 0x7b7d6 movq -0x28(%rbp), %rax movsbl (%rax), %eax cmpl -0x34(%rbp), %eax jne 0x7b752 movq -0x28(%rbp), %rax addq $0x1, %rax cmpq -0x30(%rbp), %rax je 0x7b752 movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax je 0x7b79c movq -0x10(%rbp), %rax movq 0x58(%rax), %rax movq -0x28(%rbp), %rcx movq %rcx, %rdx addq $0x1, %rdx movq %rdx, -0x28(%rbp) movzbl (%rcx), %ecx movzbl (%rax,%rcx), %eax movq -0x10(%rbp), %rcx movq 0x58(%rcx), %rcx movq -0x18(%rbp), %rdx movq %rdx, %rsi addq $0x1, %rsi movq %rsi, -0x18(%rbp) movzbl (%rdx), %edx movzbl (%rcx,%rdx), %ecx cmpl %ecx, %eax je 0x7b7a8 movl $0x1, -0x4(%rbp) jmp 0x7ba1a movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax jne 0x7b7ca movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax setne %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x4(%rbp) jmp 0x7ba1a movl $0x1, -0x38(%rbp) jmp 0x7b6ff movq -0x28(%rbp), %rax movsbl (%rax), %eax cmpl 0x10(%rbp), %eax jne 0x7b844 jmp 0x7b7e4 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jne 0x7b7f9 movl -0x38(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x7ba1a movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) movq -0x28(%rbp), %rcx addq $0x1, %rcx movq %rcx, -0x28(%rbp) xorl %eax, %eax cmpq -0x30(%rbp), %rcx movb %al, -0x42(%rbp) jae 0x7b82c movq -0x28(%rbp), %rax movsbl (%rax), %eax cmpl 0x10(%rbp), %eax sete %al movb %al, -0x42(%rbp) movb -0x42(%rbp), %al testb $0x1, %al jne 0x7b7e4 movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax jne 0x7b842 jmp 0x7ba02 jmp 0x7b844 movq -0x28(%rbp), %rax movsbl (%rax), %eax cmpl 0x18(%rbp), %eax jne 0x7b9fd movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax je 0x7b8b8 movq -0x28(%rbp), %rax movsbl (%rax), %eax cmpl 0x18(%rbp), %eax jne 0x7b878 jmp 0x7b8aa movq -0x28(%rbp), %rax movsbl (%rax), %eax cmpl 0x10(%rbp), %eax jne 0x7b8a8 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jne 0x7b89a movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x7ba1a movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x7b8aa jmp 0x7b8b8 movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x7b860 movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax jne 0x7b8ce movl $0x0, -0x4(%rbp) jmp 0x7ba1a movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jne 0x7b8e4 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x7ba1a movq -0x28(%rbp), %rax movb (%rax), %al movb %al, -0x39(%rbp) movzbl %al, %eax cmpl -0x34(%rbp), %eax jne 0x7b918 movq -0x28(%rbp), %rax addq $0x1, %rax cmpq -0x30(%rbp), %rax je 0x7b918 movq -0x28(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x28(%rbp) movb 0x1(%rax), %al movb %al, -0x39(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rax movq 0x58(%rax), %rax movzbl -0x39(%rbp), %ecx movb (%rax,%rcx), %al movb %al, -0x39(%rbp) jmp 0x7b938 movq -0x18(%rbp), %rcx xorl %eax, %eax cmpq -0x20(%rbp), %rcx movb %al, -0x43(%rbp) je 0x7b966 movq -0x10(%rbp), %rax movq 0x58(%rax), %rax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx movzbl (%rax,%rcx), %eax movzbl -0x39(%rbp), %ecx cmpl %ecx, %eax setne %al movb %al, -0x43(%rbp) movb -0x43(%rbp), %al testb $0x1, %al jne 0x7b96f jmp 0x7b97d movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x7b938 movq -0x18(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x18(%rbp) cmpq -0x20(%rbp), %rax jne 0x7b99b movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x7ba1a movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x28(%rbp), %rcx movq -0x30(%rbp), %r8 movl -0x34(%rbp), %r9d movl 0x10(%rbp), %r11d movl 0x18(%rbp), %r10d movl 0x20(%rbp), %eax addl $0x1, %eax movl %r11d, (%rsp) movl %r10d, 0x8(%rsp) movl %eax, 0x10(%rsp) callq 0x7b690 movl %eax, -0x40(%rbp) cmpl $0x0, -0x40(%rbp) jg 0x7b9e4 movl -0x40(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x7ba1a jmp 0x7b9e6 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jne 0x7b936 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x7ba1a jmp 0x7b6ef movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rsi xorl %eax, %eax movl $0x1, %ecx cmpq %rsi, %rdx cmovnel %ecx, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_wildcmp_8bit_impl: push rbp mov rbp, rsp sub rsp, 60h mov eax, [rbp+arg_10] mov eax, [rbp+arg_8] mov eax, [rbp+arg_0] mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_34], r9d mov [rbp+var_38], 0FFFFFFFFh lea rax, my_string_stack_guard cmp qword ptr [rax], 0 jz short loc_7B6ED lea rax, my_string_stack_guard mov rax, [rax] mov edi, [rbp+arg_10] call rax cmp eax, 0 jz short loc_7B6ED mov [rbp+var_4], 1 jmp loc_7BA1A loc_7B6ED: jmp short $+2 loc_7B6EF: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jz loc_7BA02 jmp short $+2 loc_7B6FF: mov rax, [rbp+var_28] movsx ecx, byte ptr [rax] xor eax, eax cmp ecx, [rbp+arg_8] mov [rbp+var_41], al jz short loc_7B720 mov rax, [rbp+var_28] movsx eax, byte ptr [rax] cmp eax, [rbp+arg_0] setnz al mov [rbp+var_41], al loc_7B720: mov al, [rbp+var_41] test al, 1 jnz short loc_7B72C jmp loc_7B7D6 loc_7B72C: mov rax, [rbp+var_28] movsx eax, byte ptr [rax] cmp eax, [rbp+var_34] jnz short loc_7B752 mov rax, [rbp+var_28] add rax, 1 cmp rax, [rbp+var_30] jz short loc_7B752 mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax loc_7B752: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jz short loc_7B79C mov rax, [rbp+var_10] mov rax, [rax+58h] mov rcx, [rbp+var_28] mov rdx, rcx add rdx, 1 mov [rbp+var_28], rdx movzx ecx, byte ptr [rcx] movzx eax, byte ptr [rax+rcx] mov rcx, [rbp+var_10] mov rcx, [rcx+58h] mov rdx, [rbp+var_18] mov rsi, rdx add rsi, 1 mov [rbp+var_18], rsi movzx edx, byte ptr [rdx] movzx ecx, byte ptr [rcx+rdx] cmp eax, ecx jz short loc_7B7A8 loc_7B79C: mov [rbp+var_4], 1 jmp loc_7BA1A loc_7B7A8: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jnz short loc_7B7CA mov rax, [rbp+var_18] cmp rax, [rbp+var_20] setnz al and al, 1 movzx eax, al mov [rbp+var_4], eax jmp loc_7BA1A loc_7B7CA: mov [rbp+var_38], 1 jmp loc_7B6FF loc_7B7D6: mov rax, [rbp+var_28] movsx eax, byte ptr [rax] cmp eax, [rbp+arg_0] jnz short loc_7B844 jmp short $+2 loc_7B7E4: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnz short loc_7B7F9 mov eax, [rbp+var_38] mov [rbp+var_4], eax jmp loc_7BA1A loc_7B7F9: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax mov rcx, [rbp+var_28] add rcx, 1 mov [rbp+var_28], rcx xor eax, eax cmp rcx, [rbp+var_30] mov [rbp+var_42], al jnb short loc_7B82C mov rax, [rbp+var_28] movsx eax, byte ptr [rax] cmp eax, [rbp+arg_0] setz al mov [rbp+var_42], al loc_7B82C: mov al, [rbp+var_42] test al, 1 jnz short loc_7B7E4 mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jnz short loc_7B842 jmp loc_7BA02 loc_7B842: jmp short $+2 loc_7B844: mov rax, [rbp+var_28] movsx eax, byte ptr [rax] cmp eax, [rbp+arg_8] jnz loc_7B9FD mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax loc_7B860: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jz short loc_7B8B8 mov rax, [rbp+var_28] movsx eax, byte ptr [rax] cmp eax, [rbp+arg_8] jnz short loc_7B878 jmp short loc_7B8AA loc_7B878: mov rax, [rbp+var_28] movsx eax, byte ptr [rax] cmp eax, [rbp+arg_0] jnz short loc_7B8A8 mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnz short loc_7B89A mov [rbp+var_4], 0FFFFFFFFh jmp loc_7BA1A loc_7B89A: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_7B8AA loc_7B8A8: jmp short loc_7B8B8 loc_7B8AA: mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax jmp short loc_7B860 loc_7B8B8: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jnz short loc_7B8CE mov [rbp+var_4], 0 jmp loc_7BA1A loc_7B8CE: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnz short loc_7B8E4 mov [rbp+var_4], 0FFFFFFFFh jmp loc_7BA1A loc_7B8E4: mov rax, [rbp+var_28] mov al, [rax] mov [rbp+var_39], al movzx eax, al cmp eax, [rbp+var_34] jnz short loc_7B918 mov rax, [rbp+var_28] add rax, 1 cmp rax, [rbp+var_30] jz short loc_7B918 mov rax, [rbp+var_28] mov rcx, rax add rcx, 1 mov [rbp+var_28], rcx mov al, [rax+1] mov [rbp+var_39], al loc_7B918: mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax mov rax, [rbp+var_10] mov rax, [rax+58h] movzx ecx, [rbp+var_39] mov al, [rax+rcx] mov [rbp+var_39], al loc_7B936: jmp short $+2 loc_7B938: mov rcx, [rbp+var_18] xor eax, eax cmp rcx, [rbp+var_20] mov [rbp+var_43], al jz short loc_7B966 mov rax, [rbp+var_10] mov rax, [rax+58h] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] movzx eax, byte ptr [rax+rcx] movzx ecx, [rbp+var_39] cmp eax, ecx setnz al mov [rbp+var_43], al loc_7B966: mov al, [rbp+var_43] test al, 1 jnz short loc_7B96F jmp short loc_7B97D loc_7B96F: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_7B938 loc_7B97D: mov rax, [rbp+var_18] mov rcx, rax add rcx, 1 mov [rbp+var_18], rcx cmp rax, [rbp+var_20] jnz short loc_7B99B mov [rbp+var_4], 0FFFFFFFFh jmp short loc_7BA1A loc_7B99B: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] mov rcx, [rbp+var_28] mov r8, [rbp+var_30] mov r9d, [rbp+var_34] mov r11d, [rbp+arg_0] mov r10d, [rbp+arg_8] mov eax, [rbp+arg_10] add eax, 1 mov [rsp+60h+var_60], r11d mov [rsp+60h+var_58], r10d mov [rsp+60h+var_50], eax call my_wildcmp_8bit_impl mov [rbp+var_40], eax cmp [rbp+var_40], 0 jg short loc_7B9E4 mov eax, [rbp+var_40] mov [rbp+var_4], eax jmp short loc_7BA1A loc_7B9E4: jmp short $+2 loc_7B9E6: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnz loc_7B936 mov [rbp+var_4], 0FFFFFFFFh jmp short loc_7BA1A loc_7B9FD: jmp loc_7B6EF loc_7BA02: mov rdx, [rbp+var_18] mov rsi, [rbp+var_20] xor eax, eax mov ecx, 1 cmp rdx, rsi cmovnz eax, ecx mov [rbp+var_4], eax loc_7BA1A: mov eax, [rbp+var_4] add rsp, 60h pop rbp retn
long long my_wildcmp_8bit_impl( long long a1, unsigned __int8 *a2, unsigned __int8 *a3, char *a4, char *a5, int a6, int a7, int a8, unsigned int a9) { char *v9; // rcx unsigned __int8 *v10; // rdx char *v11; // rax unsigned __int8 *v12; // rax bool v14; // [rsp+1Dh] [rbp-43h] bool v15; // [rsp+1Eh] [rbp-42h] bool v16; // [rsp+1Fh] [rbp-41h] int v17; // [rsp+20h] [rbp-40h] unsigned __int8 v18; // [rsp+27h] [rbp-39h] unsigned __int8 v19; // [rsp+27h] [rbp-39h] unsigned int v20; // [rsp+28h] [rbp-38h] char *i; // [rsp+38h] [rbp-28h] int v25; // [rsp+38h] [rbp-28h] v20 = -1; if ( my_string_stack_guard && (unsigned int)my_string_stack_guard(a9) ) { return 1; } else { do { if ( a4 != a5 ) { while ( 1 ) { v16 = 0; if ( *a4 != a8 ) v16 = *a4 != a7; if ( !v16 ) break; if ( *a4 == a6 && a4 + 1 != a5 ) ++a4; if ( a2 == a3 ) return 1; v9 = a4++; v10 = a2++; if ( *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + (unsigned __int8)*v9) != *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *v10) ) return 1; if ( a4 == a5 ) return a2 != a3; v20 = 1; } if ( *a4 != a7 ) continue; do { if ( a2 == a3 ) return v20; ++a2; ++a4; v15 = 0; if ( a4 < a5 ) v15 = *a4 == a7; } while ( v15 ); if ( a4 != a5 ) continue; } return a2 != a3; } while ( *a4 != a8 ); for ( i = a4 + 1; i != a5; ++i ) { if ( *i != a8 ) { if ( *i != a7 ) break; if ( a2 == a3 ) return (unsigned int)-1; ++a2; } } if ( i == a5 ) { return 0; } else if ( a2 == a3 ) { return (unsigned int)-1; } else { v18 = *i; if ( (unsigned __int8)*i == a6 && i + 1 != a5 ) { v11 = i; LODWORD(i) = (_DWORD)i + 1; v18 = v11[1]; } v25 = (_DWORD)i + 1; v19 = *(_BYTE *)(*(_QWORD *)(a1 + 88) + v18); do { while ( 1 ) { v14 = 0; if ( a2 != a3 ) v14 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *a2) != v19; if ( !v14 ) break; ++a2; } v12 = a2++; if ( v12 == a3 ) return (unsigned int)-1; v17 = my_wildcmp_8bit_impl(a1, (_DWORD)a2, (_DWORD)a3, v25, (_DWORD)a5, a6, a7, a8, a9 + 1); if ( v17 <= 0 ) return (unsigned int)v17; } while ( a2 != a3 ); return (unsigned int)-1; } } }
my_wildcmp_8bit_impl: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV EAX,dword ptr [RBP + 0x20] MOV EAX,dword ptr [RBP + 0x18] MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV dword ptr [RBP + -0x34],R9D MOV dword ptr [RBP + -0x38],0xffffffff LEA RAX,[0x51a918] CMP qword ptr [RAX],0x0 JZ 0x0017b6ed LEA RAX,[0x51a918] MOV RAX,qword ptr [RAX] MOV EDI,dword ptr [RBP + 0x20] CALL RAX CMP EAX,0x0 JZ 0x0017b6ed MOV dword ptr [RBP + -0x4],0x1 JMP 0x0017ba1a LAB_0017b6ed: JMP 0x0017b6ef LAB_0017b6ef: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JZ 0x0017ba02 JMP 0x0017b6ff LAB_0017b6ff: MOV RAX,qword ptr [RBP + -0x28] MOVSX ECX,byte ptr [RAX] XOR EAX,EAX CMP ECX,dword ptr [RBP + 0x18] MOV byte ptr [RBP + -0x41],AL JZ 0x0017b720 MOV RAX,qword ptr [RBP + -0x28] MOVSX EAX,byte ptr [RAX] CMP EAX,dword ptr [RBP + 0x10] SETNZ AL MOV byte ptr [RBP + -0x41],AL LAB_0017b720: MOV AL,byte ptr [RBP + -0x41] TEST AL,0x1 JNZ 0x0017b72c JMP 0x0017b7d6 LAB_0017b72c: MOV RAX,qword ptr [RBP + -0x28] MOVSX EAX,byte ptr [RAX] CMP EAX,dword ptr [RBP + -0x34] JNZ 0x0017b752 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 CMP RAX,qword ptr [RBP + -0x30] JZ 0x0017b752 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX LAB_0017b752: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JZ 0x0017b79c MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x58] MOV RCX,qword ptr [RBP + -0x28] MOV RDX,RCX ADD RDX,0x1 MOV qword ptr [RBP + -0x28],RDX MOVZX ECX,byte ptr [RCX] MOVZX EAX,byte ptr [RAX + RCX*0x1] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x58] MOV RDX,qword ptr [RBP + -0x18] MOV RSI,RDX ADD RSI,0x1 MOV qword ptr [RBP + -0x18],RSI MOVZX EDX,byte ptr [RDX] MOVZX ECX,byte ptr [RCX + RDX*0x1] CMP EAX,ECX JZ 0x0017b7a8 LAB_0017b79c: MOV dword ptr [RBP + -0x4],0x1 JMP 0x0017ba1a LAB_0017b7a8: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0017b7ca MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RBP + -0x4],EAX JMP 0x0017ba1a LAB_0017b7ca: MOV dword ptr [RBP + -0x38],0x1 JMP 0x0017b6ff LAB_0017b7d6: MOV RAX,qword ptr [RBP + -0x28] MOVSX EAX,byte ptr [RAX] CMP EAX,dword ptr [RBP + 0x10] JNZ 0x0017b844 JMP 0x0017b7e4 LAB_0017b7e4: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x0017b7f9 MOV EAX,dword ptr [RBP + -0x38] MOV dword ptr [RBP + -0x4],EAX JMP 0x0017ba1a LAB_0017b7f9: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX MOV RCX,qword ptr [RBP + -0x28] ADD RCX,0x1 MOV qword ptr [RBP + -0x28],RCX XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x30] MOV byte ptr [RBP + -0x42],AL JNC 0x0017b82c MOV RAX,qword ptr [RBP + -0x28] MOVSX EAX,byte ptr [RAX] CMP EAX,dword ptr [RBP + 0x10] SETZ AL MOV byte ptr [RBP + -0x42],AL LAB_0017b82c: MOV AL,byte ptr [RBP + -0x42] TEST AL,0x1 JNZ 0x0017b7e4 MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0017b842 JMP 0x0017ba02 LAB_0017b842: JMP 0x0017b844 LAB_0017b844: MOV RAX,qword ptr [RBP + -0x28] MOVSX EAX,byte ptr [RAX] CMP EAX,dword ptr [RBP + 0x18] JNZ 0x0017b9fd MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX LAB_0017b860: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JZ 0x0017b8b8 MOV RAX,qword ptr [RBP + -0x28] MOVSX EAX,byte ptr [RAX] CMP EAX,dword ptr [RBP + 0x18] JNZ 0x0017b878 JMP 0x0017b8aa LAB_0017b878: MOV RAX,qword ptr [RBP + -0x28] MOVSX EAX,byte ptr [RAX] CMP EAX,dword ptr [RBP + 0x10] JNZ 0x0017b8a8 MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x0017b89a MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0017ba1a LAB_0017b89a: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x0017b8aa LAB_0017b8a8: JMP 0x0017b8b8 LAB_0017b8aa: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x0017b860 LAB_0017b8b8: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0017b8ce MOV dword ptr [RBP + -0x4],0x0 JMP 0x0017ba1a LAB_0017b8ce: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x0017b8e4 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0017ba1a LAB_0017b8e4: MOV RAX,qword ptr [RBP + -0x28] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x39],AL MOVZX EAX,AL CMP EAX,dword ptr [RBP + -0x34] JNZ 0x0017b918 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 CMP RAX,qword ptr [RBP + -0x30] JZ 0x0017b918 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x28],RCX MOV AL,byte ptr [RAX + 0x1] MOV byte ptr [RBP + -0x39],AL LAB_0017b918: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x58] MOVZX ECX,byte ptr [RBP + -0x39] MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RBP + -0x39],AL LAB_0017b936: JMP 0x0017b938 LAB_0017b938: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x20] MOV byte ptr [RBP + -0x43],AL JZ 0x0017b966 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x58] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] MOVZX EAX,byte ptr [RAX + RCX*0x1] MOVZX ECX,byte ptr [RBP + -0x39] CMP EAX,ECX SETNZ AL MOV byte ptr [RBP + -0x43],AL LAB_0017b966: MOV AL,byte ptr [RBP + -0x43] TEST AL,0x1 JNZ 0x0017b96f JMP 0x0017b97d LAB_0017b96f: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x0017b938 LAB_0017b97d: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x18],RCX CMP RAX,qword ptr [RBP + -0x20] JNZ 0x0017b99b MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0017ba1a LAB_0017b99b: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x28] MOV R8,qword ptr [RBP + -0x30] MOV R9D,dword ptr [RBP + -0x34] MOV R11D,dword ptr [RBP + 0x10] MOV R10D,dword ptr [RBP + 0x18] MOV EAX,dword ptr [RBP + 0x20] ADD EAX,0x1 MOV dword ptr [RSP],R11D MOV dword ptr [RSP + 0x8],R10D MOV dword ptr [RSP + 0x10],EAX CALL 0x0017b690 MOV dword ptr [RBP + -0x40],EAX CMP dword ptr [RBP + -0x40],0x0 JG 0x0017b9e4 MOV EAX,dword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x4],EAX JMP 0x0017ba1a LAB_0017b9e4: JMP 0x0017b9e6 LAB_0017b9e6: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x0017b936 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0017ba1a LAB_0017b9fd: JMP 0x0017b6ef LAB_0017ba02: MOV RDX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] XOR EAX,EAX MOV ECX,0x1 CMP RDX,RSI CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x4],EAX LAB_0017ba1a: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x60 POP RBP RET
uint my_wildcmp_8bit_impl (long param_1,byte *param_2,byte *param_3,byte *param_4,byte *param_5,uint param_6, int param_7,int param_8,int param_9) { char cVar1; int iVar2; uint uVar3; byte *pbVar4; bool bVar5; byte local_41; uint local_40; byte *local_30; byte *local_20; uint local_c; local_40 = 0xffffffff; local_30 = param_4; local_20 = param_2; if ((my_string_stack_guard == (code *)0x0) || (iVar2 = (*my_string_stack_guard)(param_9), iVar2 == 0)) { do { if (local_30 == param_5) { LAB_0017ba02: return (uint)(local_20 != param_3); } while( true ) { bVar5 = false; if ((char)*local_30 != param_8) { bVar5 = (char)*local_30 != param_7; } if (!bVar5) break; if (((int)(char)*local_30 == param_6) && (local_30 + 1 != param_5)) { local_30 = local_30 + 1; } if (local_20 == param_3) { return 1; } if (*(char *)(*(long *)(param_1 + 0x58) + (ulong)*local_30) != *(char *)(*(long *)(param_1 + 0x58) + (ulong)*local_20)) { return 1; } if (local_30 + 1 == param_5) { return (uint)(local_20 + 1 != param_3); } local_40 = 1; local_30 = local_30 + 1; local_20 = local_20 + 1; } if ((char)*local_30 == param_7) { do { if (local_20 == param_3) { return local_40; } local_20 = local_20 + 1; local_30 = local_30 + 1; bVar5 = false; if (local_30 < param_5) { bVar5 = (char)*local_30 == param_7; } } while (bVar5); if (local_30 == param_5) goto LAB_0017ba02; } } while ((char)*local_30 != param_8); while (pbVar4 = local_30, local_30 = pbVar4 + 1, local_30 != param_5) { if ((char)*local_30 != param_8) { if ((char)*local_30 != param_7) break; if (local_20 == param_3) { return 0xffffffff; } local_20 = local_20 + 1; } } if (local_30 == param_5) { local_c = 0; } else if (local_20 == param_3) { local_c = 0xffffffff; } else { local_41 = *local_30; if ((local_41 == param_6) && (pbVar4 + 2 != param_5)) { local_30 = pbVar4 + 2; local_41 = pbVar4[2]; } cVar1 = *(char *)(*(long *)(param_1 + 0x58) + (ulong)local_41); do { while( true ) { bVar5 = false; if (local_20 != param_3) { bVar5 = *(char *)(*(long *)(param_1 + 0x58) + (ulong)*local_20) != cVar1; } if (!bVar5) break; local_20 = local_20 + 1; } pbVar4 = local_20 + 1; if (local_20 == param_3) { return 0xffffffff; } uVar3 = my_wildcmp_8bit_impl (param_1,pbVar4,param_3,local_30 + 1,param_5,param_6,param_7,param_8, param_9 + 1); if ((int)uVar3 < 1) { return uVar3; } local_20 = pbVar4; } while (pbVar4 != param_3); local_c = 0xffffffff; } } else { local_c = 1; } return local_c; }
51,061
dequantize_row_q8_K
7CodeWizard[P]stablediffusion/ggml/src/ggml-quants.c
void dequantize_row_q8_K(const block_q8_K * restrict x, float * restrict y, int k) { assert(k % QK_K == 0); const int nb = k / QK_K; for (int i = 0; i < nb; i++) { for (int j = 0; j < QK_K; ++j) { *y++ = x[i].d * x[i].qs[j]; } } }
O2
c
dequantize_row_q8_K: movl %edx, %eax movl $0x100, %ecx # imm = 0x100 cltd idivl %ecx xorl %ecx, %ecx testl %eax, %eax cmovlel %ecx, %eax leaq 0x4(%rdi), %rdx cmpq %rax, %rcx je 0x95328 imulq $0x124, %rcx, %r8 # imm = 0x124 vmovss (%rdi,%r8), %xmm0 xorl %r8d, %r8d cmpq $0x100, %r8 # imm = 0x100 je 0x9531c movsbl (%rdx,%r8), %r9d vcvtsi2ss %r9d, %xmm2, %xmm1 vmulss %xmm1, %xmm0, %xmm1 vmovss %xmm1, (%rsi) addq $0x4, %rsi incq %r8 jmp 0x952f8 incq %rcx addq $0x124, %rdx # imm = 0x124 jmp 0x952e3 retq
dequantize_row_q8_K: mov eax, edx mov ecx, 100h cdq idiv ecx xor ecx, ecx test eax, eax cmovle eax, ecx lea rdx, [rdi+4] loc_952E3: cmp rcx, rax jz short locret_95328 imul r8, rcx, 124h vmovss xmm0, dword ptr [rdi+r8] xor r8d, r8d loc_952F8: cmp r8, 100h jz short loc_9531C movsx r9d, byte ptr [rdx+r8] vcvtsi2ss xmm1, xmm2, r9d vmulss xmm1, xmm0, xmm1 vmovss dword ptr [rsi], xmm1 add rsi, 4 inc r8 jmp short loc_952F8 loc_9531C: inc rcx add rdx, 124h jmp short loc_952E3 locret_95328: retn
long long dequantize_row_q8_K(long long _RDI, long long _RSI, int a3, double a4, double a5, __m128 _XMM2) { long long result; // rax long long v7; // rcx long long v8; // rdx long long i; // r8 result = (unsigned int)(a3 / 256); v7 = 0LL; if ( (int)result <= 0 ) result = 0LL; v8 = _RDI + 4; while ( v7 != result ) { _R8 = 292 * v7; __asm { vmovss xmm0, dword ptr [rdi+r8] } for ( i = 0LL; i != 256; ++i ) { __asm { vcvtsi2ss xmm1, xmm2, r9d vmulss xmm1, xmm0, xmm1 vmovss dword ptr [rsi], xmm1 } _RSI += 4LL; } ++v7; v8 += 292LL; } return result; }
dequantize_row_q8_K: MOV EAX,EDX MOV ECX,0x100 CDQ IDIV ECX XOR ECX,ECX TEST EAX,EAX CMOVLE EAX,ECX LEA RDX,[RDI + 0x4] LAB_001952e3: CMP RCX,RAX JZ 0x00195328 IMUL R8,RCX,0x124 VMOVSS XMM0,dword ptr [RDI + R8*0x1] XOR R8D,R8D LAB_001952f8: CMP R8,0x100 JZ 0x0019531c MOVSX R9D,byte ptr [RDX + R8*0x1] VCVTSI2SS XMM1,XMM2,R9D VMULSS XMM1,XMM0,XMM1 VMOVSS dword ptr [RSI],XMM1 ADD RSI,0x4 INC R8 JMP 0x001952f8 LAB_0019531c: INC RCX ADD RDX,0x124 JMP 0x001952e3 LAB_00195328: RET
void dequantize_row_q8_K(long param_1,float *param_2,int param_3) { float fVar1; ulong uVar2; ulong uVar3; long lVar4; long lVar5; uVar2 = (long)param_3 / 0x100 & 0xffffffff; uVar3 = 0; if ((int)((long)param_3 / 0x100) < 1) { uVar2 = 0; } lVar4 = param_1 + 4; for (; uVar3 != uVar2; uVar3 = uVar3 + 1) { fVar1 = *(float *)(param_1 + uVar3 * 0x124); for (lVar5 = 0; lVar5 != 0x100; lVar5 = lVar5 + 1) { *param_2 = fVar1 * (float)(int)*(char *)(lVar4 + lVar5); param_2 = param_2 + 1; } lVar4 = lVar4 + 0x124; } return; }
51,062
minja::ExpressionNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const
llama.cpp/common/minja/minja.hpp
void do_render(std::ostringstream & out, const std::shared_ptr<Context> & context) const override { if (!expr) throw std::runtime_error("ExpressionNode.expr is null"); auto result = expr->evaluate(context); if (result.is_string()) { out << result.get<std::string>(); } else if (result.is_boolean()) { out << (result.get<bool>() ? "True" : "False"); } else if (!result.is_null()) { out << result.dump(); } }
O3
cpp
minja::ExpressionNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const: pushq %r14 pushq %rbx subq $0x78, %rsp movq %rsi, %rbx movq 0x20(%rdi), %rsi testq %rsi, %rsi je 0xad23f leaq 0x28(%rsp), %r14 movq %r14, %rdi callq 0x9bbb8 movzbl 0x40(%r14), %eax cmpl $0x4, %eax je 0xad13c cmpl $0x3, %eax jne 0xad16b leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rsi callq 0x644fe movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x1ddc0 jmp 0xad1af leaq 0x28(%rsp), %rdi callq 0x642d8 leaq 0x25752(%rip), %rcx # 0xd289f leaq 0x25750(%rip), %rsi # 0xd28a4 testb %al, %al cmovneq %rcx, %rsi movzbl %al, %edx xorq $0x5, %rdx movq %rbx, %rdi callq 0x1ddc0 jmp 0xad1ca testb %al, %al jne 0xad187 cmpq $0x0, 0x48(%rsp) jne 0xad187 cmpq $0x0, 0x38(%rsp) jne 0xad187 cmpq $0x0, 0x58(%rsp) je 0xad1ca leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x5a4a4 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x1ddc0 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xad1ca movq 0x18(%rsp), %rsi incq %rsi callq 0x1d160 leaq 0x68(%rsp), %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x60b38 movq %rbx, %rdi callq 0x60bd8 leaq 0x60(%rsp), %rdi callq 0x56124 leaq 0x50(%rsp), %rdi callq 0x56124 leaq 0x40(%rsp), %rbx movq %rbx, %rdi callq 0x56124 movq -0x10(%rbx), %rdi testq %rdi, %rdi je 0xad237 movq 0x5dd76(%rip), %rax # 0x10af88 cmpb $0x0, (%rax) je 0xad222 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0xad22c movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0xad237 movq (%rdi), %rax callq *0x18(%rax) addq $0x78, %rsp popq %rbx popq %r14 retq movl $0x10, %edi callq 0x1d520 movq %rax, %r14 leaq 0x28aff(%rip), %rsi # 0xd5d52 movq %rax, %rdi callq 0x1d330 movq 0x5dd56(%rip), %rsi # 0x10afb8 movq 0x5dd07(%rip), %rdx # 0x10af70 movq %r14, %rdi callq 0x1d890 jmp 0xad275 jmp 0xad2a4 movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xad2a7 movq 0x18(%rsp), %rsi incq %rsi callq 0x1d160 jmp 0xad2a7 jmp 0xad2a4 movq %rax, %rbx movq %r14, %rdi callq 0x1dc90 jmp 0xad2b1 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x5a540 movq %rbx, %rdi callq 0x1d8e0 nop
_ZNK5minja14ExpressionNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE: push r14 push rbx sub rsp, 78h mov rbx, rsi mov rsi, [rdi+20h] test rsi, rsi jz loc_AD23F lea r14, [rsp+88h+var_60] mov rdi, r14 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) movzx eax, byte ptr [r14+40h] cmp eax, 4 jz short loc_AD13C cmp eax, 3 jnz short loc_AD16B lea rdi, [rsp+88h+var_80] lea rsi, [rsp+88h+var_60] call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_AD1AF loc_AD13C: lea rdi, [rsp+88h+var_60] call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void) lea rcx, aTrue; "True" lea rsi, aFalse_1; "False" test al, al cmovnz rsi, rcx movzx edx, al xor rdx, 5 mov rdi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_AD1CA loc_AD16B: test al, al jnz short loc_AD187 cmp [rsp+88h+var_40], 0 jnz short loc_AD187 cmp [rsp+88h+var_50], 0 jnz short loc_AD187 cmp [rsp+88h+var_30], 0 jz short loc_AD1CA loc_AD187: lea rdi, [rsp+88h+var_80] lea rsi, [rsp+88h+var_60] mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_AD1AF: lea rax, [rsp+88h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_AD1CA mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AD1CA: lea rbx, [rsp+88h+var_20] 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() lea rdi, [rsp+88h+var_28] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+88h+var_38] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rbx, [rsp+88h+var_48] mov rdi, rbx call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, [rbx-10h] test rdi, rdi jz short loc_AD237 mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag cmp byte ptr [rax], 0 jz short loc_AD222 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_AD22C loc_AD222: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_AD22C: cmp eax, 1 jnz short loc_AD237 mov rax, [rdi] call qword ptr [rax+18h] loc_AD237: add rsp, 78h pop rbx pop r14 retn loc_AD23F: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aExpressionnode; "ExpressionNode.expr is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short loc_AD275 jmp short loc_AD2A4 loc_AD275: mov rbx, rax lea rax, [rsp+88h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_AD2A7 mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_AD2A7 jmp short loc_AD2A4 mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_AD2B1 loc_AD2A4: mov rbx, rax loc_AD2A7: lea rdi, [rsp+88h+var_60]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_AD2B1: mov rdi, rbx call __Unwind_Resume
void minja::ExpressionNode::do_render(long long a1, long long a2) { void (***v3)(void); // rsi unsigned __int8 v4; // al const char *v5; // rsi long long v6; // rdi signed __int32 v7; // eax std::runtime_error *exception; // r14 long long *v9; // [rsp+8h] [rbp-80h] BYREF long long v10; // [rsp+10h] [rbp-78h] long long v11; // [rsp+18h] [rbp-70h] BYREF long long v12; // [rsp+28h] [rbp-60h] BYREF long long v13; // [rsp+30h] [rbp-58h] long long v14; // [rsp+38h] [rbp-50h] volatile signed __int32 *v15[2]; // [rsp+40h] [rbp-48h] BYREF volatile signed __int32 *v16[2]; // [rsp+50h] [rbp-38h] BYREF volatile signed __int32 *v17; // [rsp+60h] [rbp-28h] BYREF char v18[32]; // [rsp+68h] [rbp-20h] BYREF v3 = *(void (****)(void))(a1 + 32); if ( !v3 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "ExpressionNode.expr is null"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Expression::evaluate((long long)&v12, v3); if ( v18[0] == 4 ) { v4 = minja::Value::get<bool>(&v12); v5 = "False"; if ( v4 ) v5 = "True"; std::__ostream_insert<char,std::char_traits<char>>(a2, v5, v4 ^ 5LL); } else { if ( v18[0] == 3 ) { minja::Value::get<std::string>((long long)&v9, &v12); std::__ostream_insert<char,std::char_traits<char>>(a2, v9, v10); } else { if ( !v18[0] && !v15[1] && !v14 && !v16[1] ) goto LABEL_15; minja::Value::dump[abi:cxx11]((long long)&v9, (long long)&v12, 0xFFFFFFFF, 0); std::__ostream_insert<char,std::char_traits<char>>(a2, v9, v10); } if ( v9 != &v11 ) operator delete(v9, v11 + 1); } LABEL_15: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v18); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v18); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v17); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v16); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v15); v6 = v13; if ( v13 ) { if ( _libc_single_threaded ) { v7 = *(_DWORD *)(v13 + 12); *(_DWORD *)(v13 + 12) = v7 - 1; } else { v7 = _InterlockedExchangeAdd((volatile signed __int32 *)(v13 + 12), 0xFFFFFFFF); } if ( v7 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v6 + 24LL))(v6, 0LL); } }
do_render: PUSH R14 PUSH RBX SUB RSP,0x78 MOV RBX,RSI MOV RSI,qword ptr [RDI + 0x20] TEST RSI,RSI JZ 0x001ad23f LEA R14,[RSP + 0x28] MOV RDI,R14 CALL 0x0019bbb8 MOVZX EAX,byte ptr [R14 + 0x40] CMP EAX,0x4 JZ 0x001ad13c CMP EAX,0x3 JNZ 0x001ad16b LAB_001ad119: LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x28] CALL 0x001644fe MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_001ad132: MOV RDI,RBX CALL 0x0011ddc0 JMP 0x001ad1af LAB_001ad13c: LEA RDI,[RSP + 0x28] CALL 0x001642d8 LEA RCX,[0x1d289f] LEA RSI,[0x1d28a4] TEST AL,AL CMOVNZ RSI,RCX MOVZX EDX,AL XOR RDX,0x5 MOV RDI,RBX CALL 0x0011ddc0 JMP 0x001ad1ca LAB_001ad16b: TEST AL,AL JNZ 0x001ad187 CMP qword ptr [RSP + 0x48],0x0 JNZ 0x001ad187 CMP qword ptr [RSP + 0x38],0x0 JNZ 0x001ad187 CMP qword ptr [RSP + 0x58],0x0 JZ 0x001ad1ca LAB_001ad187: LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x28] MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0015a4a4 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_001ad1a7: MOV RDI,RBX CALL 0x0011ddc0 LAB_001ad1af: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001ad1ca MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011d160 LAB_001ad1ca: LEA RBX,[RSP + 0x68] MOV RDI,RBX XOR ESI,ESI CALL 0x00160b38 MOV RDI,RBX CALL 0x00160bd8 LEA RDI,[RSP + 0x60] CALL 0x00156124 LEA RDI,[RSP + 0x50] CALL 0x00156124 LEA RBX,[RSP + 0x40] MOV RDI,RBX CALL 0x00156124 MOV RDI,qword ptr [RBX + -0x10] TEST RDI,RDI JZ 0x001ad237 MOV RAX,qword ptr [0x0020af88] CMP byte ptr [RAX],0x0 JZ 0x001ad222 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x001ad22c LAB_001ad222: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_001ad22c: CMP EAX,0x1 JNZ 0x001ad237 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_001ad237: ADD RSP,0x78 POP RBX POP R14 RET LAB_001ad23f: MOV EDI,0x10 CALL 0x0011d520 MOV R14,RAX LAB_001ad24c: LEA RSI,[0x1d5d52] MOV RDI,RAX CALL 0x0011d330 LAB_001ad25b: MOV RSI,qword ptr [0x0020afb8] MOV RDX,qword ptr [0x0020af70] MOV RDI,R14 CALL 0x0011d890
/* minja::ExpressionNode::do_render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context> const&) const */ void minja::ExpressionNode::do_render(ostringstream *param_1,shared_ptr *param_2) { int *piVar1; bool bVar2; int iVar3; runtime_error *this; char *pcVar4; long *local_80; long local_78; long local_70 [2]; Expression local_60 [8]; long *local_58; long local_50; __shared_count<(__gnu_cxx::_Lock_policy)2> local_48 [8]; long local_40; __shared_count<(__gnu_cxx::_Lock_policy)2> local_38 [8]; long local_30; __shared_count<(__gnu_cxx::_Lock_policy)2> local_28 [8]; data local_20 [16]; if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001ad24c to 001ad25a has its CatchHandler @ 001ad297 */ std::runtime_error::runtime_error(this,"ExpressionNode.expr is null"); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_0020afb8,PTR__runtime_error_0020af70); } Expression::evaluate(local_60,*(shared_ptr **)(param_1 + 0x20)); if (local_20[0] == (data)0x4) { /* try { // try from 001ad13c to 001ad168 has its CatchHandler @ 001ad2a4 */ bVar2 = Value::get<bool>((Value *)local_60); pcVar4 = "False"; if (bVar2) { pcVar4 = "True"; } std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,pcVar4,(ulong)bVar2 ^ 5); } else { if (local_20[0] == (data)0x3) { /* try { // try from 001ad119 to 001ad127 has its CatchHandler @ 001ad295 */ Value::get<std::__cxx11::string>(); /* try { // try from 001ad132 to 001ad139 has its CatchHandler @ 001ad275 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)param_2,(char *)local_80,local_78); } else { if ((((local_20[0] == (data)0x0) && (local_40 == 0)) && (local_50 == 0)) && (local_30 == 0)) goto LAB_001ad1ca; /* try { // try from 001ad187 to 001ad19c has its CatchHandler @ 001ad273 */ Value::dump_abi_cxx11_((int)&local_80,SUB81(local_60,0)); /* try { // try from 001ad1a7 to 001ad1ae has its CatchHandler @ 001ad271 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)param_2,(char *)local_80,local_78); } if (local_80 != local_70) { operator_delete(local_80,local_70[0] + 1); } } LAB_001ad1ca: nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_20,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_20); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_28); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_38); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_48); if (local_58 != (long *)0x0) { if (*PTR___libc_single_threaded_0020af88 == '\0') { LOCK(); piVar1 = (int *)((long)local_58 + 0xc); iVar3 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar3 = *(int *)((long)local_58 + 0xc); *(int *)((long)local_58 + 0xc) = iVar3 + -1; } if (iVar3 == 1) { (**(code **)(*local_58 + 0x18))(); } } return; }
51,063
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>>::end_object()
monkey531[P]llama/common/json.hpp
bool end_object() { JSON_ASSERT(!ref_stack.empty()); JSON_ASSERT(ref_stack.back()->is_object()); ref_stack.back()->set_parents(); ref_stack.pop_back(); return true; }
O2
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>>::end_object(): pushq %rax movq 0x10(%rdi), %rax cmpq %rax, 0x8(%rdi) je 0x4879e movq -0x8(%rax), %rcx cmpb $0x1, (%rcx) jne 0x487ba addq $-0x8, %rax movq %rax, 0x10(%rdi) movb $0x1, %al popq %rcx retq leaq 0x6b3f7(%rip), %rdi # 0xb3b9c leaq 0x64e49(%rip), %rdx # 0xad5f5 leaq 0x6c3e3(%rip), %rcx # 0xb4b96 movl $0x1aeb, %esi # imm = 0x1AEB jmp 0x487d4 leaq 0x6b3db(%rip), %rdi # 0xb3b9c leaq 0x64e2d(%rip), %rdx # 0xad5f5 leaq 0x6c375(%rip), %rcx # 0xb4b44 movl $0x1aec, %esi # imm = 0x1AEC xorl %eax, %eax callq 0x23fe0 nop
_ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv: push rax mov rax, [rdi+10h] cmp [rdi+8], rax jz short loc_4879E mov rcx, [rax-8] cmp byte ptr [rcx], 1 jnz short loc_487BA add rax, 0FFFFFFFFFFFFFFF8h mov [rdi+10h], rax mov al, 1 pop rcx retn loc_4879E: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackEmpty; "!ref_stack.empty()" mov esi, 1AEBh jmp short loc_487D4 loc_487BA: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackBackIs+20h; "ref_stack.back()->is_object()" mov esi, 1AECh loc_487D4: xor eax, eax call _ggml_abort nop
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>>::end_object( long long a1) { long long v1; // rax long long v3; // rsi v1 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(a1 + 8) == v1 ) { v3 = 6891LL; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 6891LL, "GGML_ASSERT(%s) failed", "!ref_stack.empty()"); } else { if ( **(_BYTE **)(v1 - 8) == 1 ) { *(_QWORD *)(a1 + 16) = v1 - 8; return 1; } v3 = 6892LL; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 6892LL, "GGML_ASSERT(%s) failed", "ref_stack.back()->is_object()"); } return 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>>::key( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v3); }
end_object: PUSH RAX MOV RAX,qword ptr [RDI + 0x10] CMP qword ptr [RDI + 0x8],RAX JZ 0x0014879e MOV RCX,qword ptr [RAX + -0x8] CMP byte ptr [RCX],0x1 JNZ 0x001487ba ADD RAX,-0x8 MOV qword ptr [RDI + 0x10],RAX MOV AL,0x1 POP RCX RET LAB_0014879e: LEA RDI,[0x1b3b9c] LEA RDX,[0x1ad5f5] LEA RCX,[0x1b4b96] MOV ESI,0x1aeb JMP 0x001487d4 LAB_001487ba: LEA RDI,[0x1b3b9c] LEA RDX,[0x1ad5f5] LEA RCX,[0x1b4b44] MOV ESI,0x1aec LAB_001487d4: XOR EAX,EAX CALL 0x00123fe0
/* 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> >::end_object() */ 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>> ::end_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) { long lVar1; char *pcVar2; int8 uVar3; lVar1 = *(long *)(this + 0x10); if (*(long *)(this + 8) == lVar1) { pcVar2 = "!ref_stack.empty()"; uVar3 = 0x1aeb; } else { if (**(char **)(lVar1 + -8) == '\x01') { *(long *)(this + 0x10) = lVar1 + -8; return CONCAT71((int7)((ulong)(lVar1 + -8) >> 8),1); } pcVar2 = "ref_stack.back()->is_object()"; uVar3 = 0x1aec; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3, "GGML_ASSERT(%s) failed",pcVar2); }
51,064
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>>::end_object()
monkey531[P]llama/common/json.hpp
bool end_object() { JSON_ASSERT(!ref_stack.empty()); JSON_ASSERT(ref_stack.back()->is_object()); ref_stack.back()->set_parents(); ref_stack.pop_back(); return true; }
O3
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>>::end_object(): pushq %rax movq 0x10(%rdi), %rax cmpq %rax, 0x8(%rdi) je 0x6600c movq -0x8(%rax), %rcx cmpb $0x1, (%rcx) jne 0x66028 addq $-0x8, %rax movq %rax, 0x10(%rdi) movb $0x1, %al popq %rcx retq leaq 0x8ab86(%rip), %rdi # 0xf0b99 leaq 0x845db(%rip), %rdx # 0xea5f5 leaq 0x8bb63(%rip), %rcx # 0xf1b84 movl $0x1aeb, %esi # imm = 0x1AEB jmp 0x66042 leaq 0x8ab6a(%rip), %rdi # 0xf0b99 leaq 0x845bf(%rip), %rdx # 0xea5f5 leaq 0x8baf5(%rip), %rcx # 0xf1b32 movl $0x1aec, %esi # imm = 0x1AEC xorl %eax, %eax callq 0x1bfb0 nop
_ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv: push rax mov rax, [rdi+10h] cmp [rdi+8], rax jz short loc_6600C mov rcx, [rax-8] cmp byte ptr [rcx], 1 jnz short loc_66028 add rax, 0FFFFFFFFFFFFFFF8h mov [rdi+10h], rax mov al, 1 pop rcx retn loc_6600C: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackEmpty; "!ref_stack.empty()" mov esi, 1AEBh jmp short loc_66042 loc_66028: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackBackIs+20h; "ref_stack.back()->is_object()" mov esi, 1AECh loc_66042: xor eax, eax call _ggml_abort nop
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>>::end_object( long long a1) { long long v1; // rax long long v3; // rsi v1 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(a1 + 8) == v1 ) { v3 = 6891LL; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 6891LL, "GGML_ASSERT(%s) failed", "!ref_stack.empty()"); } else { if ( **(_BYTE **)(v1 - 8) == 1 ) { *(_QWORD *)(a1 + 16) = v1 - 8; return 1; } v3 = 6892LL; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 6892LL, "GGML_ASSERT(%s) failed", "ref_stack.back()->is_object()"); } return 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>>::key( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v3); }
end_object: PUSH RAX MOV RAX,qword ptr [RDI + 0x10] CMP qword ptr [RDI + 0x8],RAX JZ 0x0016600c MOV RCX,qword ptr [RAX + -0x8] CMP byte ptr [RCX],0x1 JNZ 0x00166028 ADD RAX,-0x8 MOV qword ptr [RDI + 0x10],RAX MOV AL,0x1 POP RCX RET LAB_0016600c: LEA RDI,[0x1f0b99] LEA RDX,[0x1ea5f5] LEA RCX,[0x1f1b84] MOV ESI,0x1aeb JMP 0x00166042 LAB_00166028: LEA RDI,[0x1f0b99] LEA RDX,[0x1ea5f5] LEA RCX,[0x1f1b32] MOV ESI,0x1aec LAB_00166042: XOR EAX,EAX CALL 0x0011bfb0
/* 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> >::end_object() */ 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>> ::end_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) { long lVar1; char *pcVar2; int8 uVar3; lVar1 = *(long *)(this + 0x10); if (*(long *)(this + 8) == lVar1) { pcVar2 = "!ref_stack.empty()"; uVar3 = 0x1aeb; } else { if (**(char **)(lVar1 + -8) == '\x01') { *(long *)(this + 0x10) = lVar1 + -8; return CONCAT71((int7)((ulong)(lVar1 + -8) >> 8),1); } pcVar2 = "ref_stack.back()->is_object()"; uVar3 = 0x1aec; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3, "GGML_ASSERT(%s) failed",pcVar2); }
51,065
LefDefParser::defiGroup::clear()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiGroup.cpp
void defiGroup::clear() { int i; hasRegionName_ = 0; hasPerim_ = 0; hasMaxX_ = 0; hasMaxY_ = 0; for (i = 0; i < numProps_; i++) { free(propNames_[i]); free(propValues_[i]); propDValues_[i] = 0; } numProps_ = 0; numRects_ = 0; }
O0
cpp
LefDefParser::defiGroup::clear(): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rax movq %rax, (%rsp) movb $0x0, 0x55(%rax) movb $0x0, 0x56(%rax) movb $0x0, 0x57(%rax) movb $0x0, 0x58(%rax) movl $0x0, 0xc(%rsp) movq (%rsp), %rcx movl 0xc(%rsp), %eax cmpl 0x5c(%rcx), %eax jge 0x4ca55 movq (%rsp), %rax movq 0x68(%rax), %rax movslq 0xc(%rsp), %rcx movq (%rax,%rcx,8), %rdi callq 0x72a0 movq (%rsp), %rax movq 0x70(%rax), %rax movslq 0xc(%rsp), %rcx movq (%rax,%rcx,8), %rdi callq 0x72a0 movq (%rsp), %rax movq 0x78(%rax), %rax movslq 0xc(%rsp), %rcx xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) movl 0xc(%rsp), %eax addl $0x1, %eax movl %eax, 0xc(%rsp) jmp 0x4c9fa movq (%rsp), %rax movl $0x0, 0x5c(%rax) movl $0x0, 0x20(%rax) addq $0x18, %rsp retq nopl (%rax)
_ZN12LefDefParser9defiGroup5clearEv: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rax, [rsp+18h+var_8] mov [rsp+18h+var_18], rax mov byte ptr [rax+55h], 0 mov byte ptr [rax+56h], 0 mov byte ptr [rax+57h], 0 mov byte ptr [rax+58h], 0 mov [rsp+18h+var_C], 0 loc_4C9FA: mov rcx, [rsp+18h+var_18] mov eax, [rsp+18h+var_C] cmp eax, [rcx+5Ch] jge short loc_4CA55 mov rax, [rsp+18h+var_18] mov rax, [rax+68h] movsxd rcx, [rsp+18h+var_C] mov rdi, [rax+rcx*8] call _free mov rax, [rsp+18h+var_18] mov rax, [rax+70h] movsxd rcx, [rsp+18h+var_C] mov rdi, [rax+rcx*8] call _free mov rax, [rsp+18h+var_18] mov rax, [rax+78h] movsxd rcx, [rsp+18h+var_C] xorps xmm0, xmm0 movsd qword ptr [rax+rcx*8], xmm0 mov eax, [rsp+18h+var_C] add eax, 1 mov [rsp+18h+var_C], eax jmp short loc_4C9FA loc_4CA55: mov rax, [rsp+18h+var_18] mov dword ptr [rax+5Ch], 0 mov dword ptr [rax+20h], 0 add rsp, 18h retn
LefDefParser::defiGroup * LefDefParser::defiGroup::clear(LefDefParser::defiGroup *this) { LefDefParser::defiGroup *result; // rax int i; // [rsp+Ch] [rbp-Ch] *((_BYTE *)this + 85) = 0; *((_BYTE *)this + 86) = 0; *((_BYTE *)this + 87) = 0; *((_BYTE *)this + 88) = 0; for ( i = 0; i < *((_DWORD *)this + 23); ++i ) { free(*(_QWORD *)(*((_QWORD *)this + 13) + 8LL * i)); free(*(_QWORD *)(*((_QWORD *)this + 14) + 8LL * i)); *(_QWORD *)(*((_QWORD *)this + 15) + 8LL * i) = 0LL; } result = this; *((_DWORD *)this + 23) = 0; *((_DWORD *)this + 8) = 0; return result; }
clear: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP],RAX MOV byte ptr [RAX + 0x55],0x0 MOV byte ptr [RAX + 0x56],0x0 MOV byte ptr [RAX + 0x57],0x0 MOV byte ptr [RAX + 0x58],0x0 MOV dword ptr [RSP + 0xc],0x0 LAB_0014c9fa: MOV RCX,qword ptr [RSP] MOV EAX,dword ptr [RSP + 0xc] CMP EAX,dword ptr [RCX + 0x5c] JGE 0x0014ca55 MOV RAX,qword ptr [RSP] MOV RAX,qword ptr [RAX + 0x68] MOVSXD RCX,dword ptr [RSP + 0xc] MOV RDI,qword ptr [RAX + RCX*0x8] CALL 0x001072a0 MOV RAX,qword ptr [RSP] MOV RAX,qword ptr [RAX + 0x70] MOVSXD RCX,dword ptr [RSP + 0xc] MOV RDI,qword ptr [RAX + RCX*0x8] CALL 0x001072a0 MOV RAX,qword ptr [RSP] MOV RAX,qword ptr [RAX + 0x78] MOVSXD RCX,dword ptr [RSP + 0xc] XORPS XMM0,XMM0 MOVSD qword ptr [RAX + RCX*0x8],XMM0 MOV EAX,dword ptr [RSP + 0xc] ADD EAX,0x1 MOV dword ptr [RSP + 0xc],EAX JMP 0x0014c9fa LAB_0014ca55: MOV RAX,qword ptr [RSP] MOV dword ptr [RAX + 0x5c],0x0 MOV dword ptr [RAX + 0x20],0x0 ADD RSP,0x18 RET
/* LefDefParser::defiGroup::clear() */ void __thiscall LefDefParser::defiGroup::clear(defiGroup *this) { int local_c; this[0x55] = (defiGroup)0x0; this[0x56] = (defiGroup)0x0; this[0x57] = (defiGroup)0x0; this[0x58] = (defiGroup)0x0; for (local_c = 0; local_c < *(int *)(this + 0x5c); local_c = local_c + 1) { free(*(void **)(*(long *)(this + 0x68) + (long)local_c * 8)); free(*(void **)(*(long *)(this + 0x70) + (long)local_c * 8)); *(int8 *)(*(long *)(this + 0x78) + (long)local_c * 8) = 0; } *(int4 *)(this + 0x5c) = 0; *(int4 *)(this + 0x20) = 0; return; }
51,066
pfs_get_socket_address(char*, unsigned int, unsigned int*, sockaddr_storage const*, unsigned int)
eloqsql/storage/perfschema/pfs_global.cc
uint pfs_get_socket_address(char *host, uint host_len, uint *port, const struct sockaddr_storage *src_addr, socklen_t src_len) { assert(host); assert(src_addr); assert(port); memset(host, 0, host_len); *port= 0; switch (src_addr->ss_family) { case AF_INET: { if (host_len < INET_ADDRSTRLEN+1) return 0; struct sockaddr_in *sa4= (struct sockaddr_in *)(src_addr); #ifdef _WIN32 /* Older versions of Windows do not support inet_ntop() */ getnameinfo((struct sockaddr *)sa4, sizeof(struct sockaddr_in), host, host_len, NULL, 0, NI_NUMERICHOST); #else inet_ntop(AF_INET, &(sa4->sin_addr), host, INET_ADDRSTRLEN); #endif *port= ntohs(sa4->sin_port); } break; #ifdef HAVE_IPV6 case AF_INET6: { if (host_len < INET6_ADDRSTRLEN+1) return 0; struct sockaddr_in6 *sa6= (struct sockaddr_in6 *)(src_addr); #ifdef _WIN32 /* Older versions of Windows do not support inet_ntop() */ getnameinfo((struct sockaddr *)sa6, sizeof(struct sockaddr_in6), host, host_len, NULL, 0, NI_NUMERICHOST); #else inet_ntop(AF_INET6, &(sa6->sin6_addr), host, INET6_ADDRSTRLEN); #endif *port= ntohs(sa6->sin6_port); } break; #endif default: break; } /* Return actual IP address string length */ return ((uint)strlen((const char*)host)); }
O0
cpp
pfs_get_socket_address(char*, unsigned int, unsigned int*, sockaddr_storage const*, unsigned int): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movl %r8d, -0x2c(%rbp) movq -0x10(%rbp), %rdi movl -0x14(%rbp), %eax movl %eax, %edx xorl %esi, %esi callq 0x261c0 movq -0x20(%rbp), %rax movl $0x0, (%rax) movq -0x28(%rbp), %rax movzwl (%rax), %eax movl %eax, -0x44(%rbp) subl $0x2, %eax je 0x394e3 jmp 0x394d6 movl -0x44(%rbp), %eax subl $0xa, %eax je 0x39530 jmp 0x3957a cmpl $0x11, -0x14(%rbp) jae 0x394f5 movl $0x0, -0x4(%rbp) jmp 0x39588 movq -0x28(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rsi addq $0x4, %rsi movq -0x10(%rbp), %rdx movl $0x2, %edi movl $0x10, %ecx callq 0x26340 movq -0x38(%rbp), %rax movzwl 0x2(%rax), %edi callq 0x26630 movzwl %ax, %ecx movq -0x20(%rbp), %rax movl %ecx, (%rax) jmp 0x3957c cmpl $0x2f, -0x14(%rbp) jae 0x3953f movl $0x0, -0x4(%rbp) jmp 0x39588 movq -0x28(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rsi addq $0x8, %rsi movq -0x10(%rbp), %rdx movl $0xa, %edi movl $0x2e, %ecx callq 0x26340 movq -0x40(%rbp), %rax movzwl 0x2(%rax), %edi callq 0x26630 movzwl %ax, %ecx movq -0x20(%rbp), %rax movl %ecx, (%rax) jmp 0x3957c jmp 0x3957c movq -0x10(%rbp), %rdi callq 0x26150 movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_Z22pfs_get_socket_addressPcjPjPK16sockaddr_storagej: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_2C], r8d mov rdi, [rbp+var_10] mov eax, [rbp+var_14] mov edx, eax xor esi, esi call _memset mov rax, [rbp+var_20] mov dword ptr [rax], 0 mov rax, [rbp+var_28] movzx eax, word ptr [rax] mov [rbp+var_44], eax sub eax, 2 jz short loc_394E3 jmp short $+2 loc_394D6: mov eax, [rbp+var_44] sub eax, 0Ah jz short loc_39530 jmp loc_3957A loc_394E3: cmp [rbp+var_14], 11h jnb short loc_394F5 mov [rbp+var_4], 0 jmp loc_39588 loc_394F5: mov rax, [rbp+var_28] mov [rbp+var_38], rax mov rsi, [rbp+var_38] add rsi, 4 mov rdx, [rbp+var_10] mov edi, 2 mov ecx, 10h call _inet_ntop mov rax, [rbp+var_38] movzx edi, word ptr [rax+2] call _ntohs movzx ecx, ax mov rax, [rbp+var_20] mov [rax], ecx jmp short loc_3957C loc_39530: cmp [rbp+var_14], 2Fh ; '/' jnb short loc_3953F mov [rbp+var_4], 0 jmp short loc_39588 loc_3953F: mov rax, [rbp+var_28] mov [rbp+var_40], rax mov rsi, [rbp+var_40] add rsi, 8 mov rdx, [rbp+var_10] mov edi, 0Ah mov ecx, 2Eh ; '.' call _inet_ntop mov rax, [rbp+var_40] movzx edi, word ptr [rax+2] call _ntohs movzx ecx, ax mov rax, [rbp+var_20] mov [rax], ecx jmp short loc_3957C loc_3957A: jmp short $+2 loc_3957C: mov rdi, [rbp+var_10] call _strlen mov [rbp+var_4], eax loc_39588: mov eax, [rbp+var_4] add rsp, 50h pop rbp retn
long long pfs_get_socket_address(long long a1, unsigned int a2, _DWORD *a3, unsigned __int16 *a4) { int v5; // [rsp+Ch] [rbp-44h] memset(a1, 0LL, a2); *a3 = 0; v5 = *a4; if ( v5 != 2 ) { if ( v5 != 10 ) return (unsigned int)strlen(a1); if ( a2 < 0x2F ) return 0; inet_ntop(10LL, a4 + 4, a1, 46LL); *a3 = (unsigned __int16)ntohs(a4[1]); return (unsigned int)strlen(a1); } if ( a2 >= 0x11 ) { inet_ntop(2LL, a4 + 2, a1, 16LL); *a3 = (unsigned __int16)ntohs(a4[1]); return (unsigned int)strlen(a1); } return 0; }
pfs_get_socket_address: PUSH RBP MOV RBP,RSP SUB RSP,0x50 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 dword ptr [RBP + -0x2c],R8D MOV RDI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x14] MOV EDX,EAX XOR ESI,ESI CALL 0x001261c0 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,word ptr [RAX] MOV dword ptr [RBP + -0x44],EAX SUB EAX,0x2 JZ 0x001394e3 JMP 0x001394d6 LAB_001394d6: MOV EAX,dword ptr [RBP + -0x44] SUB EAX,0xa JZ 0x00139530 JMP 0x0013957a LAB_001394e3: CMP dword ptr [RBP + -0x14],0x11 JNC 0x001394f5 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00139588 LAB_001394f5: MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x38],RAX MOV RSI,qword ptr [RBP + -0x38] ADD RSI,0x4 MOV RDX,qword ptr [RBP + -0x10] MOV EDI,0x2 MOV ECX,0x10 CALL 0x00126340 MOV RAX,qword ptr [RBP + -0x38] MOVZX EDI,word ptr [RAX + 0x2] CALL 0x00126630 MOVZX ECX,AX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],ECX JMP 0x0013957c LAB_00139530: CMP dword ptr [RBP + -0x14],0x2f JNC 0x0013953f MOV dword ptr [RBP + -0x4],0x0 JMP 0x00139588 LAB_0013953f: MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x40],RAX MOV RSI,qword ptr [RBP + -0x40] ADD RSI,0x8 MOV RDX,qword ptr [RBP + -0x10] MOV EDI,0xa MOV ECX,0x2e CALL 0x00126340 MOV RAX,qword ptr [RBP + -0x40] MOVZX EDI,word ptr [RAX + 0x2] CALL 0x00126630 MOVZX ECX,AX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],ECX JMP 0x0013957c LAB_0013957a: JMP 0x0013957c LAB_0013957c: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00126150 MOV dword ptr [RBP + -0x4],EAX LAB_00139588: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x50 POP RBP RET
/* pfs_get_socket_address(char*, unsigned int, unsigned int*, sockaddr_storage const*, unsigned int) */ int4 pfs_get_socket_address (char *param_1,uint param_2,uint *param_3,sockaddr_storage *param_4,uint param_5) { uint16_t uVar1; size_t sVar2; memset(param_1,0,(ulong)param_2); *param_3 = 0; if (*(short *)param_4 == 2) { if (param_2 < 0x11) { return 0; } inet_ntop(2,param_4 + 4,param_1,0x10); uVar1 = ntohs(*(uint16_t *)(param_4 + 2)); *param_3 = (uint)uVar1; } else if (*(short *)param_4 == 10) { if (param_2 < 0x2f) { return 0; } inet_ntop(10,param_4 + 8,param_1,0x2e); uVar1 = ntohs(*(uint16_t *)(param_4 + 2)); *param_3 = (uint)uVar1; } sVar2 = strlen(param_1); return (int)sVar2; }
51,067
alaya::UpdateTest::~UpdateTest()
AlayaLite/tests/executor/update_test.cpp
void SetUp() override { if (!std::filesystem::exists(dir_name_)) { throw std::invalid_argument("The dataset is not exist."); } alaya::load_fvecs(data_file_, data_, points_num_, dim_); alaya::load_fvecs(query_file_, queries_, query_num_, query_dim_); assert(dim_ == query_dim_); alaya::load_ivecs(gt_file_, answers_, ans_num_, gt_col_); assert(ans_num_ == query_num_); }
O0
cpp
alaya::UpdateTest::~UpdateTest(): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi movq %rdi, 0x8(%rsp) leaq 0x173346(%rip), %rax # 0x1cc400 addq $0x10, %rax movq %rax, (%rdi) addq $0x110, %rdi # imm = 0x110 callq 0x4ca60 movq 0x8(%rsp), %rdi addq $0xf0, %rdi callq 0x1e170 movq 0x8(%rsp), %rdi addq $0xd0, %rdi callq 0x20bb0 movq 0x8(%rsp), %rdi addq $0xb0, %rdi callq 0x20bb0 movq 0x8(%rsp), %rdi addq $0x88, %rdi callq 0x1e220 movq 0x8(%rsp), %rdi addq $0x60, %rdi callq 0x1e220 movq 0x8(%rsp), %rdi addq $0x38, %rdi callq 0x1e220 movq 0x8(%rsp), %rdi addq $0x10, %rdi callq 0x1e220 movq 0x8(%rsp), %rdi callq 0x106910 addq $0x18, %rsp retq nopw (%rax,%rax)
_ZN5alaya10UpdateTestD2Ev: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rdi, [rsp+18h+var_8] mov [rsp+18h+var_10], rdi lea rax, _ZTVN5alaya10UpdateTestE; `vtable for'alaya::UpdateTest add rax, 10h mov [rdi], rax add rdi, 110h call _ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEED2Ev; std::unordered_set<uint>::~unordered_set() mov rdi, [rsp+18h+var_10] add rdi, 0F0h call _ZNSt6vectorIjSaIjEED2Ev; std::vector<uint>::~vector() mov rdi, [rsp+18h+var_10] add rdi, 0D0h call _ZNSt6vectorIfSaIfEED2Ev; std::vector<float>::~vector() mov rdi, [rsp+18h+var_10] add rdi, 0B0h call _ZNSt6vectorIfSaIfEED2Ev; std::vector<float>::~vector() mov rdi, [rsp+18h+var_10] add rdi, 88h; this call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path() mov rdi, [rsp+18h+var_10] add rdi, 60h ; '`'; this call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path() mov rdi, [rsp+18h+var_10] add rdi, 38h ; '8'; this call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path() mov rdi, [rsp+18h+var_10] add rdi, 10h; this call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path() mov rdi, [rsp+18h+var_10]; this call _ZN7testing4TestD2Ev; testing::Test::~Test() add rsp, 18h retn
void alaya::UpdateTest::~UpdateTest(alaya::UpdateTest *this) { *(_QWORD *)this = &`vtable for'alaya::UpdateTest + 2; std::unordered_set<unsigned int>::~unordered_set((long long)this + 272); std::vector<unsigned int>::~vector((long long *)this + 30); std::vector<float>::~vector((long long *)this + 26); std::vector<float>::~vector((long long *)this + 22); std::filesystem::__cxx11::path::~path((alaya::UpdateTest *)((char *)this + 136)); std::filesystem::__cxx11::path::~path((alaya::UpdateTest *)((char *)this + 96)); std::filesystem::__cxx11::path::~path((alaya::UpdateTest *)((char *)this + 56)); std::filesystem::__cxx11::path::~path((alaya::UpdateTest *)((char *)this + 16)); testing::Test::~Test(this); }
~UpdateTest: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV RDI,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x8],RDI LEA RAX,[0x2cc400] ADD RAX,0x10 MOV qword ptr [RDI],RAX ADD RDI,0x110 CALL 0x0014ca60 MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0xf0 CALL 0x0011e170 MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0xd0 CALL 0x00120bb0 MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0xb0 CALL 0x00120bb0 MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x88 CALL 0x0011e220 MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x60 CALL 0x0011e220 MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x38 CALL 0x0011e220 MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x10 CALL 0x0011e220 MOV RDI,qword ptr [RSP + 0x8] CALL 0x00206910 ADD RSP,0x18 RET
/* alaya::UpdateTest::~UpdateTest() */ void __thiscall alaya::UpdateTest::~UpdateTest(UpdateTest *this) { *(int ***)this = &PTR__UpdateTest_002cc410; std:: unordered_set<unsigned_int,std::hash<unsigned_int>,std::equal_to<unsigned_int>,std::allocator<unsigned_int>> ::~unordered_set((unordered_set<unsigned_int,std::hash<unsigned_int>,std::equal_to<unsigned_int>,std::allocator<unsigned_int>> *)(this + 0x110)); std::vector<unsigned_int,std::allocator<unsigned_int>>::~vector ((vector<unsigned_int,std::allocator<unsigned_int>> *)(this + 0xf0)); std::vector<float,std::allocator<float>>::~vector ((vector<float,std::allocator<float>> *)(this + 0xd0)); std::vector<float,std::allocator<float>>::~vector ((vector<float,std::allocator<float>> *)(this + 0xb0)); std::filesystem::__cxx11::path::~path((path *)(this + 0x88)); std::filesystem::__cxx11::path::~path((path *)(this + 0x60)); std::filesystem::__cxx11::path::~path((path *)(this + 0x38)); std::filesystem::__cxx11::path::~path((path *)(this + 0x10)); testing::Test::~Test((Test *)this); return; }
51,068
mdev9044()
eloqsql/unittest/sql/mf_iocache-t.cc
void mdev9044() { int res; uchar buf[CACHE_SIZE + 200]; diag("MDEV-9044 Binlog corruption in Galera"); res= open_cached_file(&info, 0, 0, CACHE_SIZE, 0); ok(res == 0, "open_cached_file" INFO_TAIL); res= my_b_write(&info, USTRING_WITH_LEN("first write\0")); ok(res == 0, "first write" INFO_TAIL); res= my_b_flush_io_cache(&info, 1); ok(res == 0, "flush" INFO_TAIL); res= reinit_io_cache(&info, WRITE_CACHE, 0, 0, 0); ok(res == 0, "reinit WRITE_CACHE" INFO_TAIL); res= my_b_write(&info, USTRING_WITH_LEN("second write\0")); ok(res == 0, "second write" INFO_TAIL ); res= reinit_io_cache(&info, READ_CACHE, 0, 0, 0); ok(res == 0, "reinit READ_CACHE" INFO_TAIL); res= (int)my_b_fill(&info); ok(res == 0, "fill" INFO_TAIL); res= reinit_io_cache(&info, READ_CACHE, 0, 0, 0); ok(res == 0, "reinit READ_CACHE" INFO_TAIL); res= my_b_read(&info, buf, sizeof(buf)); ok(res == 1 && strcmp((char*)buf, "second write") == 0, "read '%s'", buf); close_cached_file(&info); }
O3
cpp
mdev9044(): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40d0, %rsp # imm = 0x40D0 movq %fs:0x28, %rax movq %rax, -0x28(%rbp) leaq 0x3d68b(%rip), %rdi # 0x64275 xorl %eax, %eax callq 0x34c8b leaq 0x349038(%rip), %rdi # 0x36fc30 movl $0x4000, %ecx # imm = 0x4000 xorl %esi, %esi xorl %edx, %edx xorl %r8d, %r8d callq 0x28ad0 xorl %edi, %edi testb %al, %al sete %dil cmpl $0x1, 0x3490c8(%rip) # 0x36fce0 leaq 0x349021(%rip), %r12 # 0x36fc40 leaq 0x34904a(%rip), %r15 # 0x36fc70 movq %r15, %rax cmoveq %r12, %rax movq 0x348ffc(%rip), %rdx # 0x36fc30 movq (%rax), %rcx subq 0x34901a(%rip), %rcx # 0x36fc58 leaq 0x3d47b(%rip), %rsi # 0x640c0 xorl %eax, %eax callq 0x34eeb movq 0x34901d(%rip), %rax # 0x36fc70 leaq 0xc(%rax), %rcx cmpq 0x34901a(%rip), %rcx # 0x36fc78 jbe 0x26c89 leaq 0x348fc9(%rip), %rdi # 0x36fc30 leaq 0x4252f(%rip), %rsi # 0x6919d movl $0xc, %edx callq 0x296cb xorl %edi, %edi testl %eax, %eax sete %dil movq 0x348fe9(%rip), %rcx # 0x36fc70 jmp 0x26cb4 movabsq $0x7277207473726966, %rcx # imm = 0x7277207473726966 movq %rcx, (%rax) movl $0x657469, 0x8(%rax) # imm = 0x657469 movq 0x348fcc(%rip), %rcx # 0x36fc70 addq $0xc, %rcx movq %rcx, 0x348fc1(%rip) # 0x36fc70 movl $0x1, %edi leaq 0x348f75(%rip), %r14 # 0x36fc30 movq 0x348f6e(%rip), %rdx # 0x36fc30 cmpl $0x1, 0x349017(%rip) # 0x36fce0 jne 0x26cd2 movq 0x348f6e(%rip), %rcx # 0x36fc40 subq 0x348f7f(%rip), %rcx # 0x36fc58 leaq 0x3d5bb(%rip), %rsi # 0x6429b xorl %eax, %eax callq 0x34eeb movl $0x1, %ebx movq %r14, %rdi movl $0x1, %esi callq 0x29409 xorl %edi, %edi testl %eax, %eax sete %dil cmpl $0x1, 0x348fd8(%rip) # 0x36fce0 movq %r15, %rax cmoveq %r12, %rax movq 0x348f1a(%rip), %rdx # 0x36fc30 movq (%rax), %rcx subq 0x348f38(%rip), %rcx # 0x36fc58 leaq 0x3d46d(%rip), %rsi # 0x64194 xorl %eax, %eax callq 0x34eeb movq %r14, %rdi movl $0x2, %esi xorl %edx, %edx xorl %ecx, %ecx xorl %r8d, %r8d callq 0x291d8 xorl %edi, %edi testb %al, %al sete %dil cmpl $0x1, 0x348f8f(%rip) # 0x36fce0 movq %r15, %rax cmoveq %r12, %rax movq 0x348ed1(%rip), %rdx # 0x36fc30 movq (%rax), %rcx subq 0x348eef(%rip), %rcx # 0x36fc58 leaq 0x3d55d(%rip), %rsi # 0x642cd xorl %eax, %eax callq 0x34eeb movq 0x348ef2(%rip), %rax # 0x36fc70 leaq 0xd(%rax), %rcx cmpq 0x348eef(%rip), %rcx # 0x36fc78 jbe 0x26db3 leaq 0x348e9e(%rip), %rdi # 0x36fc30 leaq 0x42411(%rip), %rsi # 0x691aa movl $0xd, %edx callq 0x296cb xorl %ebx, %ebx testl %eax, %eax sete %bl movq 0x348ebf(%rip), %rcx # 0x36fc70 jmp 0x26de0 movabsq $0x65746972772064, %rcx # imm = 0x65746972772064 movq %rcx, 0x5(%rax) movabsq $0x7720646e6f636573, %rcx # imm = 0x7720646E6F636573 movq %rcx, (%rax) movq 0x348e9b(%rip), %rcx # 0x36fc70 addq $0xd, %rcx movq %rcx, 0x348e90(%rip) # 0x36fc70 leaq 0x348e49(%rip), %r14 # 0x36fc30 movq 0x348e42(%rip), %rdx # 0x36fc30 cmpl $0x1, 0x348eeb(%rip) # 0x36fce0 jne 0x26dfe movq 0x348e42(%rip), %rcx # 0x36fc40 subq 0x348e53(%rip), %rcx # 0x36fc58 leaq 0x3d4fa(%rip), %rsi # 0x64306 movl %ebx, %edi xorl %eax, %eax callq 0x34eeb movq %r14, %rdi movl $0x1, %esi xorl %edx, %edx xorl %ecx, %ecx xorl %r8d, %r8d callq 0x291d8 xorl %edi, %edi testb %al, %al sete %dil cmpl $0x1, 0x348ea8(%rip) # 0x36fce0 movq %r15, %rax cmoveq %r12, %rax movq 0x348dea(%rip), %rdx # 0x36fc30 movq (%rax), %rcx subq 0x348e08(%rip), %rcx # 0x36fc58 leaq 0x3d369(%rip), %rbx # 0x641c0 movq %rbx, %rsi xorl %eax, %eax callq 0x34eeb movq 0x348de0(%rip), %rax # 0x36fc48 movq %rax, 0x348dd1(%rip) # 0x36fc40 movq %r14, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x2966a testl %eax, %eax setne %al movq 0x348dc1(%rip), %rdx # 0x36fc48 movq 0x348db2(%rip), %rcx # 0x36fc40 subq %rcx, %rdx testl %edx, %edx sete %dl orb %al, %dl movzbl %dl, %edi movq 0x348d8e(%rip), %rdx # 0x36fc30 cmpl $0x1, 0x348e37(%rip) # 0x36fce0 je 0x26eb2 movq 0x348dbe(%rip), %rcx # 0x36fc70 subq 0x348d9f(%rip), %rcx # 0x36fc58 leaq 0x3d479(%rip), %rsi # 0x64339 xorl %eax, %eax callq 0x34eeb movq %r14, %rdi movl $0x1, %esi xorl %edx, %edx xorl %ecx, %ecx xorl %r8d, %r8d callq 0x291d8 xorl %edi, %edi testb %al, %al sete %dil cmpl $0x1, 0x348df6(%rip) # 0x36fce0 cmoveq %r12, %r15 movq 0x348d3b(%rip), %rdx # 0x36fc30 movq (%r15), %rcx subq 0x348d59(%rip), %rcx # 0x36fc58 movq %rbx, %rsi xorl %eax, %eax callq 0x34eeb movq 0x348d30(%rip), %rsi # 0x36fc40 leaq 0x40c8(%rsi), %rbx cmpq 0x348d2a(%rip), %rbx # 0x36fc48 jbe 0x26f6c leaq 0x348d09(%rip), %rdi # 0x36fc30 leaq -0x40f0(%rbp), %rsi movl $0x40c8, %edx # imm = 0x40C8 callq 0x2966a xorl %edi, %edi cmpl $0x1, %eax jne 0x26f86 movabsq $0x7720646e6f636573, %rax # imm = 0x7720646E6F636573 xorq -0x40f0(%rbp), %rax movabsq $0x65746972772064, %rcx # imm = 0x65746972772064 xorq -0x40eb(%rbp), %rcx xorl %edi, %edi orq %rax, %rcx sete %dil jmp 0x26f86 leaq -0x40f0(%rbp), %rdi movl $0x40c8, %edx # imm = 0x40C8 callq 0x25330 movq %rbx, 0x348cbc(%rip) # 0x36fc40 xorl %edi, %edi leaq 0x3d3e4(%rip), %rsi # 0x64371 leaq -0x40f0(%rbp), %rdx xorl %eax, %eax callq 0x34eeb leaq 0x348c8e(%rip), %rdi # 0x36fc30 callq 0x28ba8 movq %fs:0x28, %rax cmpq -0x28(%rbp), %rax jne 0x26fc6 addq $0x40d0, %rsp # imm = 0x40D0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x254d0
_Z8mdev9044v: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 40D0h mov rax, fs:28h mov [rbp+var_28], rax lea rdi, aMdev9044Binlog; "MDEV-9044 Binlog corruption in Galera" xor eax, eax call diag lea rdi, _ZL4info; info mov ecx, 4000h xor esi, esi xor edx, edx xor r8d, r8d call open_cached_file xor edi, edi test al, al setz dil cmp cs:dword_36FCE0, 1 lea r12, qword_36FC40 lea r15, qword_36FC70 mov rax, r15 cmovz rax, r12 mov rdx, cs:_ZL4info; info mov rcx, [rax] sub rcx, cs:qword_36FC58 lea rsi, aOpenCachedFile; "open_cached_file, pos_in_file = %llu, p"... xor eax, eax call ok mov rax, cs:qword_36FC70 lea rcx, [rax+0Ch] cmp rcx, cs:qword_36FC78 jbe short loc_26C89 lea rdi, _ZL4info; info lea rsi, aFirstWrite; "first write" mov edx, 0Ch call _my_b_write xor edi, edi test eax, eax setz dil mov rcx, cs:qword_36FC70 jmp short loc_26CB4 loc_26C89: mov rcx, 7277207473726966h mov [rax], rcx mov dword ptr [rax+8], 657469h mov rcx, cs:qword_36FC70 add rcx, 0Ch mov cs:qword_36FC70, rcx mov edi, 1 loc_26CB4: lea r14, _ZL4info; info mov rdx, cs:_ZL4info; info cmp cs:dword_36FCE0, 1 jnz short loc_26CD2 mov rcx, cs:qword_36FC40 loc_26CD2: sub rcx, cs:qword_36FC58 lea rsi, aFirstWritePosI; "first write, pos_in_file = %llu, pos_in"... xor eax, eax call ok mov ebx, 1 mov rdi, r14 mov esi, 1 call my_b_flush_io_cache xor edi, edi test eax, eax setz dil cmp cs:dword_36FCE0, 1 mov rax, r15 cmovz rax, r12 mov rdx, cs:_ZL4info; info mov rcx, [rax] sub rcx, cs:qword_36FC58 lea rsi, aFlushPosInFile; "flush, pos_in_file = %llu, pos_in_mem ="... xor eax, eax call ok mov rdi, r14 mov esi, 2 xor edx, edx xor ecx, ecx xor r8d, r8d call reinit_io_cache xor edi, edi test al, al setz dil cmp cs:dword_36FCE0, 1 mov rax, r15 cmovz rax, r12 mov rdx, cs:_ZL4info; info mov rcx, [rax] sub rcx, cs:qword_36FC58 lea rsi, aReinitWriteCac; "reinit WRITE_CACHE, pos_in_file = %llu,"... xor eax, eax call ok mov rax, cs:qword_36FC70 lea rcx, [rax+0Dh] cmp rcx, cs:qword_36FC78 jbe short loc_26DB3 lea rdi, _ZL4info; info lea rsi, aSecondWrite; "second write" mov edx, 0Dh call _my_b_write xor ebx, ebx test eax, eax setz bl mov rcx, cs:qword_36FC70 jmp short loc_26DE0 loc_26DB3: mov rcx, 65746972772064h mov [rax+5], rcx mov rcx, 7720646E6F636573h mov [rax], rcx mov rcx, cs:qword_36FC70 add rcx, 0Dh mov cs:qword_36FC70, rcx loc_26DE0: lea r14, _ZL4info; info mov rdx, cs:_ZL4info; info cmp cs:dword_36FCE0, 1 jnz short loc_26DFE mov rcx, cs:qword_36FC40 loc_26DFE: sub rcx, cs:qword_36FC58 lea rsi, aSecondWritePos; "second write, pos_in_file = %llu, pos_i"... mov edi, ebx xor eax, eax call ok mov rdi, r14 mov esi, 1 xor edx, edx xor ecx, ecx xor r8d, r8d call reinit_io_cache xor edi, edi test al, al setz dil cmp cs:dword_36FCE0, 1 mov rax, r15 cmovz rax, r12 mov rdx, cs:_ZL4info; info mov rcx, [rax] sub rcx, cs:qword_36FC58 lea rbx, aReinitReadCach; "reinit READ_CACHE, pos_in_file = %llu, "... mov rsi, rbx xor eax, eax call ok mov rax, cs:qword_36FC48 mov cs:qword_36FC40, rax mov rdi, r14 xor esi, esi xor edx, edx call _my_b_read test eax, eax setnz al mov rdx, cs:qword_36FC48 mov rcx, cs:qword_36FC40 sub rdx, rcx test edx, edx setz dl or dl, al movzx edi, dl mov rdx, cs:_ZL4info; info cmp cs:dword_36FCE0, 1 jz short loc_26EB2 mov rcx, cs:qword_36FC70 loc_26EB2: sub rcx, cs:qword_36FC58 lea rsi, aFillPosInFileL; "fill, pos_in_file = %llu, pos_in_mem = "... xor eax, eax call ok mov rdi, r14 mov esi, 1 xor edx, edx xor ecx, ecx xor r8d, r8d call reinit_io_cache xor edi, edi test al, al setz dil cmp cs:dword_36FCE0, 1 cmovz r15, r12 mov rdx, cs:_ZL4info; info mov rcx, [r15] sub rcx, cs:qword_36FC58 mov rsi, rbx xor eax, eax call ok mov rsi, cs:qword_36FC40 lea rbx, [rsi+40C8h] cmp rbx, cs:qword_36FC48 jbe short loc_26F6C lea rdi, _ZL4info; info lea rsi, [rbp+var_40F0] mov edx, 40C8h call _my_b_read xor edi, edi cmp eax, 1 jnz short loc_26F86 mov rax, 7720646E6F636573h xor rax, [rbp+var_40F0] mov rcx, 65746972772064h xor rcx, [rbp+var_40F0+5] xor edi, edi or rcx, rax setz dil jmp short loc_26F86 loc_26F6C: lea rdi, [rbp+var_40F0] mov edx, 40C8h call _memcpy mov cs:qword_36FC40, rbx xor edi, edi loc_26F86: lea rsi, aReadS; "read '%s'" lea rdx, [rbp+var_40F0] xor eax, eax call ok lea rdi, _ZL4info; info call close_cached_file mov rax, fs:28h cmp rax, [rbp+var_28] jnz short loc_26FC6 add rsp, 40D0h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_26FC6: call ___stack_chk_fail
unsigned long long mdev9044(long long a1, int a2, int a3, int a4, int a5, int a6) { BOOL v6; // edi int v7; // r8d int v8; // r9d long long *v9; // r15 long long *v10; // rax int v11; // r8d int v12; // r9d long long v13; // rax BOOL v14; // edi int v15; // ecx BOOL v16; // ebx BOOL v17; // edi int v18; // r8d int v19; // r9d long long *v20; // rax BOOL v21; // edi int v22; // r8d int v23; // r9d long long *v24; // rax int v25; // r8d int v26; // r9d _QWORD *v27; // rax int v28; // ecx BOOL v29; // edi int v30; // r8d int v31; // r9d long long *v32; // rax int v33; // eax int v34; // r8d int v35; // r9d int v36; // ecx BOOL v37; // edi int v38; // r8d int v39; // r9d long long v40; // rbx int v41; // ecx int v42; // r8d int v43; // r9d BOOL v44; // edi _BYTE v46[16575]; // [rsp+0h] [rbp-40F0h] BYREF unsigned long long v47; // [rsp+40C8h] [rbp-28h] v47 = __readfsqword(0x28u); diag((unsigned int)"MDEV-9044 Binlog corruption in Galera", a2, a3, a4, a5, a6, v46[0]); v6 = (unsigned __int8)open_cached_file(&info, 0LL, 0LL, 0x4000LL, 0LL) == 0; v9 = &qword_36FC70; v10 = &qword_36FC70; if ( dword_36FCE0 == 1 ) v10 = &qword_36FC40; ok( v6, (unsigned int)"open_cached_file, pos_in_file = %llu, pos_in_mem = %lu", info, *(_DWORD *)v10 - qword_36FC58, v7, v8); v13 = qword_36FC70; if ( qword_36FC70 + 12 <= (unsigned long long)qword_36FC78 ) { *(_QWORD *)qword_36FC70 = 0x7277207473726966LL; *(_DWORD *)(v13 + 8) = 6648937; v15 = qword_36FC70 + 12; qword_36FC70 += 12LL; v14 = 1; } else { v14 = my_b_write(&info, "first write", 12LL) == 0; v15 = qword_36FC70; } if ( dword_36FCE0 == 1 ) v15 = qword_36FC40; ok(v14, (unsigned int)"first write, pos_in_file = %llu, pos_in_mem = %lu", info, v15 - qword_36FC58, v11, v12); v16 = 1; v17 = my_b_flush_io_cache(&info, 1LL) == 0; v20 = &qword_36FC70; if ( dword_36FCE0 == 1 ) v20 = &qword_36FC40; ok(v17, (unsigned int)"flush, pos_in_file = %llu, pos_in_mem = %lu", info, *(_DWORD *)v20 - qword_36FC58, v18, v19); v21 = (unsigned __int8)reinit_io_cache(&info, 2LL, 0LL, 0LL, 0LL) == 0; v24 = &qword_36FC70; if ( dword_36FCE0 == 1 ) v24 = &qword_36FC40; ok( v21, (unsigned int)"reinit WRITE_CACHE, pos_in_file = %llu, pos_in_mem = %lu", info, *(_DWORD *)v24 - qword_36FC58, v22, v23); v27 = (_QWORD *)qword_36FC70; if ( qword_36FC70 + 13 <= (unsigned long long)qword_36FC78 ) { *(_QWORD *)(qword_36FC70 + 5) = 0x65746972772064LL; *v27 = 0x7720646E6F636573LL; v28 = qword_36FC70 + 13; qword_36FC70 += 13LL; } else { v16 = my_b_write(&info, "second write", 13LL) == 0; v28 = qword_36FC70; } if ( dword_36FCE0 == 1 ) v28 = qword_36FC40; ok(v16, (unsigned int)"second write, pos_in_file = %llu, pos_in_mem = %lu", info, v28 - qword_36FC58, v25, v26); v29 = (unsigned __int8)reinit_io_cache(&info, 1LL, 0LL, 0LL, 0LL) == 0; v32 = &qword_36FC70; if ( dword_36FCE0 == 1 ) v32 = &qword_36FC40; ok( v29, (unsigned int)"reinit READ_CACHE, pos_in_file = %llu, pos_in_mem = %lu", info, *(_DWORD *)v32 - qword_36FC58, v30, v31); qword_36FC40 = qword_36FC48; v33 = my_b_read(&info, 0LL, 0LL); v36 = qword_36FC40; if ( dword_36FCE0 != 1 ) v36 = qword_36FC70; ok( v33 != 0 || (_DWORD)qword_36FC48 == (_DWORD)qword_36FC40, (unsigned int)"fill, pos_in_file = %llu, pos_in_mem = %lu", info, v36 - qword_36FC58, v34, v35); v37 = (unsigned __int8)reinit_io_cache(&info, 1LL, 0LL, 0LL, 0LL) == 0; if ( dword_36FCE0 == 1 ) v9 = &qword_36FC40; ok( v37, (unsigned int)"reinit READ_CACHE, pos_in_file = %llu, pos_in_mem = %lu", info, *(_DWORD *)v9 - qword_36FC58, v38, v39); v40 = qword_36FC40 + 16584; if ( qword_36FC40 + 16584 <= (unsigned long long)qword_36FC48 ) { memcpy(v46, qword_36FC40, 16584LL); qword_36FC40 = v40; v44 = 0; } else { v44 = 0; if ( (unsigned int)my_b_read(&info, v46, 16584LL) == 1 ) { v41 = *(_DWORD *)v46 ^ 0x6F636573 | *(_DWORD *)&v46[5] ^ 0x72772064; v44 = (*(_QWORD *)v46 ^ 0x7720646E6F636573LL | *(_QWORD *)&v46[5] ^ 0x65746972772064LL) == 0; } } ok(v44, (unsigned int)"read '%s'", (unsigned int)v46, v41, v42, v43); close_cached_file(&info); return __readfsqword(0x28u); }
mdev9044: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40d0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX LEA RDI,[0x164275] XOR EAX,EAX CALL 0x00134c8b LEA RDI,[0x46fc30] MOV ECX,0x4000 XOR ESI,ESI XOR EDX,EDX XOR R8D,R8D CALL 0x00128ad0 XOR EDI,EDI TEST AL,AL SETZ DIL CMP dword ptr [0x0046fce0],0x1 LEA R12,[0x46fc40] LEA R15,[0x46fc70] MOV RAX,R15 CMOVZ RAX,R12 MOV RDX,qword ptr [0x0046fc30] MOV RCX,qword ptr [RAX] SUB RCX,qword ptr [0x0046fc58] LEA RSI,[0x1640c0] XOR EAX,EAX CALL 0x00134eeb MOV RAX,qword ptr [0x0046fc70] LEA RCX,[RAX + 0xc] CMP RCX,qword ptr [0x0046fc78] JBE 0x00126c89 LEA RDI,[0x46fc30] LEA RSI,[0x16919d] MOV EDX,0xc CALL 0x001296cb XOR EDI,EDI TEST EAX,EAX SETZ DIL MOV RCX,qword ptr [0x0046fc70] JMP 0x00126cb4 LAB_00126c89: MOV RCX,0x7277207473726966 MOV qword ptr [RAX],RCX MOV dword ptr [RAX + 0x8],0x657469 MOV RCX,qword ptr [0x0046fc70] ADD RCX,0xc MOV qword ptr [0x0046fc70],RCX MOV EDI,0x1 LAB_00126cb4: LEA R14,[0x46fc30] MOV RDX,qword ptr [0x0046fc30] CMP dword ptr [0x0046fce0],0x1 JNZ 0x00126cd2 MOV RCX,qword ptr [0x0046fc40] LAB_00126cd2: SUB RCX,qword ptr [0x0046fc58] LEA RSI,[0x16429b] XOR EAX,EAX CALL 0x00134eeb MOV EBX,0x1 MOV RDI,R14 MOV ESI,0x1 CALL 0x00129409 XOR EDI,EDI TEST EAX,EAX SETZ DIL CMP dword ptr [0x0046fce0],0x1 MOV RAX,R15 CMOVZ RAX,R12 MOV RDX,qword ptr [0x0046fc30] MOV RCX,qword ptr [RAX] SUB RCX,qword ptr [0x0046fc58] LEA RSI,[0x164194] XOR EAX,EAX CALL 0x00134eeb MOV RDI,R14 MOV ESI,0x2 XOR EDX,EDX XOR ECX,ECX XOR R8D,R8D CALL 0x001291d8 XOR EDI,EDI TEST AL,AL SETZ DIL CMP dword ptr [0x0046fce0],0x1 MOV RAX,R15 CMOVZ RAX,R12 MOV RDX,qword ptr [0x0046fc30] MOV RCX,qword ptr [RAX] SUB RCX,qword ptr [0x0046fc58] LEA RSI,[0x1642cd] XOR EAX,EAX CALL 0x00134eeb MOV RAX,qword ptr [0x0046fc70] LEA RCX,[RAX + 0xd] CMP RCX,qword ptr [0x0046fc78] JBE 0x00126db3 LEA RDI,[0x46fc30] LEA RSI,[0x1691aa] MOV EDX,0xd CALL 0x001296cb XOR EBX,EBX TEST EAX,EAX SETZ BL MOV RCX,qword ptr [0x0046fc70] JMP 0x00126de0 LAB_00126db3: MOV RCX,0x65746972772064 MOV qword ptr [RAX + 0x5],RCX MOV RCX,0x7720646e6f636573 MOV qword ptr [RAX],RCX MOV RCX,qword ptr [0x0046fc70] ADD RCX,0xd MOV qword ptr [0x0046fc70],RCX LAB_00126de0: LEA R14,[0x46fc30] MOV RDX,qword ptr [0x0046fc30] CMP dword ptr [0x0046fce0],0x1 JNZ 0x00126dfe MOV RCX,qword ptr [0x0046fc40] LAB_00126dfe: SUB RCX,qword ptr [0x0046fc58] LEA RSI,[0x164306] MOV EDI,EBX XOR EAX,EAX CALL 0x00134eeb MOV RDI,R14 MOV ESI,0x1 XOR EDX,EDX XOR ECX,ECX XOR R8D,R8D CALL 0x001291d8 XOR EDI,EDI TEST AL,AL SETZ DIL CMP dword ptr [0x0046fce0],0x1 MOV RAX,R15 CMOVZ RAX,R12 MOV RDX,qword ptr [0x0046fc30] MOV RCX,qword ptr [RAX] SUB RCX,qword ptr [0x0046fc58] LEA RBX,[0x1641c0] MOV RSI,RBX XOR EAX,EAX CALL 0x00134eeb MOV RAX,qword ptr [0x0046fc48] MOV qword ptr [0x0046fc40],RAX MOV RDI,R14 XOR ESI,ESI XOR EDX,EDX CALL 0x0012966a TEST EAX,EAX SETNZ AL MOV RDX,qword ptr [0x0046fc48] MOV RCX,qword ptr [0x0046fc40] SUB RDX,RCX TEST EDX,EDX SETZ DL OR DL,AL MOVZX EDI,DL MOV RDX,qword ptr [0x0046fc30] CMP dword ptr [0x0046fce0],0x1 JZ 0x00126eb2 MOV RCX,qword ptr [0x0046fc70] LAB_00126eb2: SUB RCX,qword ptr [0x0046fc58] LEA RSI,[0x164339] XOR EAX,EAX CALL 0x00134eeb MOV RDI,R14 MOV ESI,0x1 XOR EDX,EDX XOR ECX,ECX XOR R8D,R8D CALL 0x001291d8 XOR EDI,EDI TEST AL,AL SETZ DIL CMP dword ptr [0x0046fce0],0x1 CMOVZ R15,R12 MOV RDX,qword ptr [0x0046fc30] MOV RCX,qword ptr [R15] SUB RCX,qword ptr [0x0046fc58] MOV RSI,RBX XOR EAX,EAX CALL 0x00134eeb MOV RSI,qword ptr [0x0046fc40] LEA RBX,[RSI + 0x40c8] CMP RBX,qword ptr [0x0046fc48] JBE 0x00126f6c LEA RDI,[0x46fc30] LEA RSI,[RBP + -0x40f0] MOV EDX,0x40c8 CALL 0x0012966a XOR EDI,EDI CMP EAX,0x1 JNZ 0x00126f86 MOV RAX,0x7720646e6f636573 XOR RAX,qword ptr [RBP + -0x40f0] MOV RCX,0x65746972772064 XOR RCX,qword ptr [RBP + -0x40eb] XOR EDI,EDI OR RCX,RAX SETZ DIL JMP 0x00126f86 LAB_00126f6c: LEA RDI,[RBP + -0x40f0] MOV EDX,0x40c8 CALL 0x00125330 MOV qword ptr [0x0046fc40],RBX XOR EDI,EDI LAB_00126f86: LEA RSI,[0x164371] LEA RDX,[RBP + -0x40f0] XOR EAX,EAX CALL 0x00134eeb LEA RDI,[0x46fc30] CALL 0x00128ba8 MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x28] JNZ 0x00126fc6 ADD RSP,0x40d0 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00126fc6: CALL 0x001254d0
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* mdev9044() */ void mdev9044(void) { char cVar1; int iVar2; long *plVar3; int8 *puVar4; long *plVar5; long in_FS_OFFSET; bool bVar6; int5 local_40f8; int3 uStack_40f3; int5 uStack_40f0; long local_30; local_30 = *(long *)(in_FS_OFFSET + 0x28); diag("MDEV-9044 Binlog corruption in Galera"); cVar1 = open_cached_file(&info,0,0,0x4000,0); plVar5 = (long *)&DAT_0046fc70; plVar3 = (long *)&DAT_0046fc70; if (DAT_0046fce0 == 1) { plVar3 = (long *)&DAT_0046fc40; } ok(cVar1 == '\0',"open_cached_file, pos_in_file = %llu, pos_in_mem = %lu",info, *plVar3 - _DAT_0046fc58); puVar4 = DAT_0046fc70; if (DAT_0046fc78 < (long)DAT_0046fc70 + 0xcU) { iVar2 = _my_b_write(&info,"first write",0xc); bVar6 = iVar2 == 0; } else { *DAT_0046fc70 = 0x7277207473726966; *(int4 *)(puVar4 + 1) = 0x657469; DAT_0046fc70 = (int8 *)((long)DAT_0046fc70 + 0xc); bVar6 = true; } puVar4 = DAT_0046fc70; if (DAT_0046fce0 == 1) { puVar4 = DAT_0046fc40; } ok(bVar6,"first write, pos_in_file = %llu, pos_in_mem = %lu",info,(long)puVar4 - _DAT_0046fc58); bVar6 = true; iVar2 = my_b_flush_io_cache(&info,1); plVar3 = (long *)&DAT_0046fc70; if (DAT_0046fce0 == 1) { plVar3 = (long *)&DAT_0046fc40; } ok(iVar2 == 0,"flush, pos_in_file = %llu, pos_in_mem = %lu",info,*plVar3 - _DAT_0046fc58); cVar1 = reinit_io_cache(&info,2,0,0,0); plVar3 = (long *)&DAT_0046fc70; if (DAT_0046fce0 == 1) { plVar3 = (long *)&DAT_0046fc40; } ok(cVar1 == '\0',"reinit WRITE_CACHE, pos_in_file = %llu, pos_in_mem = %lu",info, *plVar3 - _DAT_0046fc58); puVar4 = DAT_0046fc70; if (DAT_0046fc78 < (long)DAT_0046fc70 + 0xdU) { iVar2 = _my_b_write(&info,"second write",0xd); bVar6 = iVar2 == 0; } else { *(int8 *)((long)DAT_0046fc70 + 5) = 0x65746972772064; *puVar4 = 0x7720646e6f636573; DAT_0046fc70 = (int8 *)((long)DAT_0046fc70 + 0xd); } puVar4 = DAT_0046fc70; if (DAT_0046fce0 == 1) { puVar4 = DAT_0046fc40; } ok(bVar6,"second write, pos_in_file = %llu, pos_in_mem = %lu",info,(long)puVar4 - _DAT_0046fc58); cVar1 = reinit_io_cache(&info,1,0,0,0); plVar3 = (long *)&DAT_0046fc70; if (DAT_0046fce0 == 1) { plVar3 = (long *)&DAT_0046fc40; } ok(cVar1 == '\0',"reinit READ_CACHE, pos_in_file = %llu, pos_in_mem = %lu",info, *plVar3 - _DAT_0046fc58); DAT_0046fc40 = DAT_0046fc48; iVar2 = _my_b_read(&info,0,0); puVar4 = DAT_0046fc40; if (DAT_0046fce0 != 1) { puVar4 = DAT_0046fc70; } ok((int)DAT_0046fc48 == (int)DAT_0046fc40 || iVar2 != 0, "fill, pos_in_file = %llu, pos_in_mem = %lu",info,(long)puVar4 - _DAT_0046fc58); cVar1 = reinit_io_cache(&info,1,0,0,0); if (DAT_0046fce0 == 1) { plVar5 = (long *)&DAT_0046fc40; } ok(cVar1 == '\0',"reinit READ_CACHE, pos_in_file = %llu, pos_in_mem = %lu",info, *plVar5 - _DAT_0046fc58); puVar4 = DAT_0046fc40 + 0x819; if (DAT_0046fc48 < puVar4) { iVar2 = _my_b_read(&info,&local_40f8,0x40c8); bVar6 = false; if (iVar2 == 1) { bVar6 = CONCAT53(uStack_40f0,uStack_40f3) == 0x65746972772064 && CONCAT35(uStack_40f3,local_40f8) == 0x7720646e6f636573; } } else { memcpy(&local_40f8,DAT_0046fc40,0x40c8); bVar6 = false; DAT_0046fc40 = puVar4; } ok(bVar6,"read \'%s\'",&local_40f8); close_cached_file(&info); if (*(long *)(in_FS_OFFSET + 0x28) == local_30) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
51,069
bf_convert_to_radix
bluesky950520[P]quickjs/libbf.c
static int bf_convert_to_radix(bf_t *r, slimb_t *pE, const bf_t *a, int radix, limb_t P, bf_rnd_t rnd_mode, BOOL is_fixed_exponent) { slimb_t E, e, prec, extra_bits, ziv_extra_bits, prec0; bf_t B_s, *B = &B_s; int e_sign, ret, res; if (a->len == 0) { /* zero case */ *pE = 0; return bf_set(r, a); } if (is_fixed_exponent) { E = *pE; } else { /* compute the new exponent */ E = 1 + bf_mul_log2_radix(a->expn - 1, radix, TRUE, FALSE); } // bf_print_str("a", a); // printf("E=%ld P=%ld radix=%d\n", E, P, radix); for(;;) { e = P - E; e_sign = 0; if (e < 0) { e = -e; e_sign = 1; } /* Note: precision for log2(radix) is not critical here */ prec0 = bf_mul_log2_radix(P, radix, FALSE, TRUE); ziv_extra_bits = 16; for(;;) { prec = prec0 + ziv_extra_bits; /* XXX: rigorous error analysis needed */ extra_bits = ceil_log2(e) * 2 + 1; ret = bf_pow_ui_ui(r, radix, e, prec + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP); if (!e_sign) ret |= bf_mul(r, r, a, prec + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP); else ret |= bf_div(r, a, r, prec + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP); if (ret & BF_ST_MEM_ERROR) return BF_ST_MEM_ERROR; /* if the result is not exact, check that it can be safely rounded to an integer */ if ((ret & BF_ST_INEXACT) && !bf_can_round(r, r->expn, rnd_mode, prec)) { /* and more precision and retry */ ziv_extra_bits = ziv_extra_bits + (ziv_extra_bits / 2); continue; } else { ret = bf_rint(r, rnd_mode); if (ret & BF_ST_MEM_ERROR) return BF_ST_MEM_ERROR; break; } } if (is_fixed_exponent) break; /* check that the result is < B^P */ /* XXX: do a fast approximate test first ? */ bf_init(r->ctx, B); ret = bf_pow_ui_ui(B, radix, P, BF_PREC_INF, BF_RNDZ); if (ret) { bf_delete(B); return ret; } res = bf_cmpu(r, B); bf_delete(B); if (res < 0) break; /* try a larger exponent */ E++; } *pE = E; return 0; }
O1
c
bf_convert_to_radix: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %r9d, 0xc(%rsp) movq %rdi, %r12 cmpq $0x0, 0x18(%rdx) je 0x915b5 movq %r8, %r14 movl %ecx, %ebp movl 0xc0(%rsp), %eax movl %eax, 0x14(%rsp) testl %eax, %eax movq %rsi, 0x38(%rsp) movq %rdx, 0x18(%rsp) je 0x915d8 movq (%rsi), %rbx jmp 0x915f3 movq $0x0, (%rsi) movq %r12, %rdi movq %rdx, %rsi addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x84c8d movq 0x10(%rdx), %rdi decq %rdi movl %ebp, %esi movl $0x1, %edx xorl %ecx, %ecx callq 0x899e4 movq %rax, %rbx incq %rbx movq %r14, %rdi movl %ebp, %esi xorl %edx, %edx movl $0x1, %ecx callq 0x899e4 movq %rax, 0x50(%rsp) movslq %ebp, %rax movq %rax, 0x20(%rsp) movl 0xc(%rsp), %eax orl $0x10, %eax movl %eax, 0x10(%rsp) movq %rbx, 0x30(%rsp) movq %r14, 0x40(%rsp) subq %rbx, %r14 movq %r14, %rax negq %rax movq %r14, 0x58(%rsp) cmovsq %r14, %rax movq %rax, 0x28(%rsp) decq %rax movq %rbx, 0x48(%rsp) je 0x91651 bsrq %rax, %rax xorq $0x3f, %rax jmp 0x91656 movl $0x40, %eax addq %rax, %rax movl $0x81, %r13d subq %rax, %r13 cmpq $0x2, 0x28(%rsp) movl $0x1, %eax cmovbq %rax, %r13 movl $0x10, %r15d movq 0x50(%rsp), %rax leaq (%r15,%rax), %r14 leaq (%r14,%r13), %rbx movq %r12, %rdi movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx movq %rbx, %rcx movl $0x7e0, %r8d # imm = 0x7E0 callq 0x88cee movl %eax, %ebp cmpq $0x0, 0x58(%rsp) js 0x916c4 movq %r12, %rdi movq %r12, %rsi movq 0x18(%rsp), %rdx movq %rbx, %rcx movl $0x7e0, %r8d # imm = 0x7E0 callq 0x86711 jmp 0x916e4 movq %r12, %rdi movq 0x18(%rsp), %rsi movq %r12, %rdx movq %rbx, %rcx movl $0x7e0, %r8d # imm = 0x7E0 leaq -0x9aec(%rip), %r9 # 0x87bf3 callq 0x87b3a orl %ebp, %eax movl $0x20, %ebp testb $0x20, %al jne 0x917f7 testb $0x10, %al je 0x91724 movq 0x10(%r12), %rsi movq %r12, %rdi movl 0xc(%rsp), %edx movq %r14, %rcx callq 0x851e7 testl %eax, %eax jne 0x91724 movq %r15, %rax shrq $0x3f, %rax addq %r15, %rax sarq %rax addq %rax, %r15 jmp 0x91677 movq 0x18(%r12), %rcx testq %rcx, %rcx je 0x91747 movq %r12, %rdi xorl %esi, %esi movl 0x10(%rsp), %edx xorl %r8d, %r8d callq 0x84e26 testb $0x20, %al jne 0x917f7 cmpl $0x0, 0x14(%rsp) jne 0x917e8 movq (%r12), %rax movq %rax, 0x60(%rsp) movl $0x0, 0x68(%rsp) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x70(%rsp) leaq 0x78(%rsp), %rax xorps %xmm0, %xmm0 movups %xmm0, (%rax) leaq 0x60(%rsp), %rbx movq %rbx, %rdi movq 0x20(%rsp), %rsi movq 0x40(%rsp), %r14 movq %r14, %rdx movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF movl $0x1, %r8d callq 0x88cee testl %eax, %eax jne 0x9180b movq %r12, %rdi movq %rbx, %rsi callq 0x8542a movl %eax, %ebx movq 0x60(%rsp), %rax testq %rax, %rax je 0x917d7 movq 0x80(%rsp), %rsi testq %rsi, %rsi je 0x917d7 movq (%rax), %rdi xorl %edx, %edx callq *0x8(%rax) testl %ebx, %ebx movq 0x48(%rsp), %rbx js 0x917ed incq %rbx jmp 0x91626 movq 0x30(%rsp), %rbx movq 0x38(%rsp), %rax movq %rbx, (%rax) xorl %ebp, %ebp movl %ebp, %eax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl %eax, %ebp movq 0x60(%rsp), %rax testq %rax, %rax je 0x917f7 movq 0x80(%rsp), %rsi testq %rsi, %rsi je 0x917f7 movq (%rax), %rdi xorl %edx, %edx callq *0x8(%rax) jmp 0x917f7
bf_convert_to_radix: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov [rsp+0B8h+var_AC], r9d mov r12, rdi cmp qword ptr [rdx+18h], 0 jz short loc_915B5 mov r14, r8 mov ebp, ecx mov eax, [rsp+0B8h+arg_0] mov [rsp+0B8h+var_A4], eax test eax, eax mov [rsp+0B8h+var_80], rsi mov [rsp+0B8h+var_A0], rdx jz short loc_915D8 mov rbx, [rsi] jmp short loc_915F3 loc_915B5: mov qword ptr [rsi], 0 mov rdi, r12 mov rsi, rdx add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp bf_set loc_915D8: mov rdi, [rdx+10h] dec rdi mov esi, ebp mov edx, 1 xor ecx, ecx call bf_mul_log2_radix mov rbx, rax inc rbx loc_915F3: mov rdi, r14 mov esi, ebp xor edx, edx mov ecx, 1 call bf_mul_log2_radix mov [rsp+0B8h+var_68], rax movsxd rax, ebp mov [rsp+0B8h+var_98], rax mov eax, [rsp+0B8h+var_AC] or eax, 10h mov [rsp+0B8h+var_A8], eax mov [rsp+0B8h+var_88], rbx mov [rsp+0B8h+var_78], r14 loc_91626: sub r14, rbx mov rax, r14 neg rax mov [rsp+0B8h+var_60], r14 cmovs rax, r14 mov [rsp+0B8h+var_90], rax dec rax mov [rsp+0B8h+var_70], rbx jz short loc_91651 bsr rax, rax xor rax, 3Fh jmp short loc_91656 loc_91651: mov eax, 40h ; '@' loc_91656: add rax, rax mov r13d, 81h sub r13, rax cmp [rsp+0B8h+var_90], 2 mov eax, 1 cmovb r13, rax mov r15d, 10h loc_91677: mov rax, [rsp+0B8h+var_68] lea r14, [r15+rax] lea rbx, [r14+r13] mov rdi, r12 mov rsi, [rsp+0B8h+var_98] mov rdx, [rsp+0B8h+var_90] mov rcx, rbx mov r8d, 7E0h call bf_pow_ui_ui mov ebp, eax cmp [rsp+0B8h+var_60], 0 js short loc_916C4 mov rdi, r12 mov rsi, r12 mov rdx, [rsp+0B8h+var_A0] mov rcx, rbx mov r8d, 7E0h call bf_mul jmp short loc_916E4 loc_916C4: mov rdi, r12 mov rsi, [rsp+0B8h+var_A0] mov rdx, r12 mov rcx, rbx mov r8d, 7E0h lea r9, __bf_div call bf_op2 loc_916E4: or eax, ebp mov ebp, 20h ; ' ' test al, 20h jnz loc_917F7 test al, 10h jz short loc_91724 mov rsi, [r12+10h] mov rdi, r12 mov edx, [rsp+0B8h+var_AC] mov rcx, r14 call bf_can_round test eax, eax jnz short loc_91724 mov rax, r15 shr rax, 3Fh add rax, r15 sar rax, 1 add r15, rax jmp loc_91677 loc_91724: mov rcx, [r12+18h] test rcx, rcx jz short loc_91747 mov rdi, r12 xor esi, esi mov edx, [rsp+0B8h+var_A8] xor r8d, r8d call __bf_round test al, 20h jnz loc_917F7 loc_91747: cmp [rsp+0B8h+var_A4], 0 jnz loc_917E8 mov rax, [r12] mov [rsp+0B8h+var_58], rax mov [rsp+0B8h+var_50], 0 mov rax, 8000000000000000h mov [rsp+0B8h+var_48], rax lea rax, [rsp+0B8h+var_40] xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 lea rbx, [rsp+0B8h+var_58] mov rdi, rbx mov rsi, [rsp+0B8h+var_98] mov r14, [rsp+0B8h+var_78] mov rdx, r14 mov rcx, 3FFFFFFFFFFFFFFFh mov r8d, 1 call bf_pow_ui_ui test eax, eax jnz short loc_9180B mov rdi, r12 mov rsi, rbx call bf_cmpu mov ebx, eax mov rax, [rsp+0B8h+var_58] test rax, rax jz short loc_917D7 mov rsi, [rsp+0B8h+var_38] test rsi, rsi jz short loc_917D7 mov rdi, [rax] xor edx, edx call qword ptr [rax+8] loc_917D7: test ebx, ebx mov rbx, [rsp+0B8h+var_70] js short loc_917ED inc rbx jmp loc_91626 loc_917E8: mov rbx, [rsp+0B8h+var_88] loc_917ED: mov rax, [rsp+0B8h+var_80] mov [rax], rbx xor ebp, ebp loc_917F7: mov eax, ebp add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_9180B: mov ebp, eax mov rax, [rsp+0B8h+var_58] test rax, rax jz short loc_917F7 mov rsi, [rsp+0B8h+var_38] test rsi, rsi jz short loc_917F7 mov rdi, [rax] xor edx, edx call qword ptr [rax+8] jmp short loc_917F7
long long bf_convert_to_radix( long long a1, unsigned long long *a2, long long a3, signed int a4, long long a5, int a6, int a7) { unsigned long long v9; // rbx long long v11; // r14 unsigned long long v12; // rax unsigned long long v13; // rax long long v14; // rax long long v15; // r13 long long i; // r15 long long v17; // rbx char v18; // bp char v19; // al char v20; // al unsigned int v21; // ebp unsigned long long v22; // rcx unsigned int v23; // eax int v24; // ebx bool v25; // sf unsigned long long v26; // rbx unsigned long long v29; // [rsp+20h] [rbp-98h] unsigned long long v30; // [rsp+28h] [rbp-90h] unsigned long long v31; // [rsp+30h] [rbp-88h] unsigned long long v32; // [rsp+40h] [rbp-78h] unsigned long long v33; // [rsp+48h] [rbp-70h] unsigned long long v34; // [rsp+50h] [rbp-68h] _QWORD *v35; // [rsp+60h] [rbp-58h] BYREF int v36; // [rsp+68h] [rbp-50h] unsigned long long v37; // [rsp+70h] [rbp-48h] __int128 v38; // [rsp+78h] [rbp-40h] if ( *(_QWORD *)(a3 + 24) ) { if ( a7 ) v9 = *a2; else v9 = bf_mul_log2_radix(*(_QWORD *)(a3 + 16) - 1LL, a4, 1, 0) + 1; v34 = bf_mul_log2_radix(a5, a4, 0, 1); v29 = a4; v31 = v9; v32 = a5; while ( 2 ) { v11 = a5 - v9; v12 = -v11; if ( v11 > 0 ) v12 = v11; v30 = v12; v13 = v12 - 1; v33 = v9; if ( v13 ) { _BitScanReverse64(&v13, v13); v14 = v13 ^ 0x3F; } else { v14 = 64LL; } v15 = 129 - 2 * v14; if ( v30 < 2 ) v15 = 1LL; for ( i = 16LL; ; i += i / 2 ) { v17 = i + v34 + v15; v18 = bf_pow_ui_ui((_QWORD **)a1, v29, v30, v17, 0x7E0u); if ( v11 < 0 ) v19 = bf_op2( (__int128 *)a1, (__int128 *)a3, (__int128 *)a1, v17, 2016LL, (long long ( *)(__int128 *))_bf_div); else v19 = bf_mul((__int128 *)a1, a1, a3, v17, 0x7E0u); v20 = v18 | v19; v21 = 32; if ( (v20 & 0x20) != 0 ) return v21; if ( (v20 & 0x10) == 0 || bf_can_round((_QWORD *)a1, *(_QWORD *)(a1 + 16), a6, i + v34) ) break; } v22 = *(_QWORD *)(a1 + 24); if ( !v22 || (_bf_round(a1, 0LL, a6 | 0x10u, v22, 0) & 0x20) == 0 ) { if ( a7 ) { v26 = v31; LABEL_32: *a2 = v26; return 0; } v35 = *(_QWORD **)a1; v36 = 0; v37 = 0x8000000000000000LL; v38 = 0LL; a5 = v32; v23 = bf_pow_ui_ui(&v35, v29, v32, 0x3FFFFFFFFFFFFFFFLL, 1u); if ( !v23 ) { v24 = bf_cmpu((_QWORD *)a1, &v35); if ( v35 ) { if ( *((_QWORD *)&v38 + 1) ) ((void ( *)(_QWORD, _QWORD, _QWORD))v35[1])(*v35, *((_QWORD *)&v38 + 1), 0LL); } v25 = v24 < 0; v26 = v33; if ( !v25 ) { v9 = v33 + 1; continue; } goto LABEL_32; } v21 = v23; if ( v35 && *((_QWORD *)&v38 + 1) ) ((void ( *)(_QWORD, _QWORD, _QWORD))v35[1])(*v35, *((_QWORD *)&v38 + 1), 0LL); } return v21; } } else { *a2 = 0LL; return bf_set((_QWORD *)a1, a3); } }
bf_convert_to_radix: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV dword ptr [RSP + 0xc],R9D MOV R12,RDI CMP qword ptr [RDX + 0x18],0x0 JZ 0x001915b5 MOV R14,R8 MOV EBP,ECX MOV EAX,dword ptr [RSP + 0xc0] MOV dword ptr [RSP + 0x14],EAX TEST EAX,EAX MOV qword ptr [RSP + 0x38],RSI MOV qword ptr [RSP + 0x18],RDX JZ 0x001915d8 MOV RBX,qword ptr [RSI] JMP 0x001915f3 LAB_001915b5: MOV qword ptr [RSI],0x0 MOV RDI,R12 MOV RSI,RDX ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00184c8d LAB_001915d8: MOV RDI,qword ptr [RDX + 0x10] DEC RDI MOV ESI,EBP MOV EDX,0x1 XOR ECX,ECX CALL 0x001899e4 MOV RBX,RAX INC RBX LAB_001915f3: MOV RDI,R14 MOV ESI,EBP XOR EDX,EDX MOV ECX,0x1 CALL 0x001899e4 MOV qword ptr [RSP + 0x50],RAX MOVSXD RAX,EBP MOV qword ptr [RSP + 0x20],RAX MOV EAX,dword ptr [RSP + 0xc] OR EAX,0x10 MOV dword ptr [RSP + 0x10],EAX MOV qword ptr [RSP + 0x30],RBX MOV qword ptr [RSP + 0x40],R14 LAB_00191626: SUB R14,RBX MOV RAX,R14 NEG RAX MOV qword ptr [RSP + 0x58],R14 CMOVS RAX,R14 MOV qword ptr [RSP + 0x28],RAX DEC RAX MOV qword ptr [RSP + 0x48],RBX JZ 0x00191651 BSR RAX,RAX XOR RAX,0x3f JMP 0x00191656 LAB_00191651: MOV EAX,0x40 LAB_00191656: ADD RAX,RAX MOV R13D,0x81 SUB R13,RAX CMP qword ptr [RSP + 0x28],0x2 MOV EAX,0x1 CMOVC R13,RAX MOV R15D,0x10 LAB_00191677: MOV RAX,qword ptr [RSP + 0x50] LEA R14,[R15 + RAX*0x1] LEA RBX,[R14 + R13*0x1] MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] MOV RCX,RBX MOV R8D,0x7e0 CALL 0x00188cee MOV EBP,EAX CMP qword ptr [RSP + 0x58],0x0 JS 0x001916c4 MOV RDI,R12 MOV RSI,R12 MOV RDX,qword ptr [RSP + 0x18] MOV RCX,RBX MOV R8D,0x7e0 CALL 0x00186711 JMP 0x001916e4 LAB_001916c4: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x18] MOV RDX,R12 MOV RCX,RBX MOV R8D,0x7e0 LEA R9,[0x187bf3] CALL 0x00187b3a LAB_001916e4: OR EAX,EBP MOV EBP,0x20 TEST AL,0x20 JNZ 0x001917f7 TEST AL,0x10 JZ 0x00191724 MOV RSI,qword ptr [R12 + 0x10] MOV RDI,R12 MOV EDX,dword ptr [RSP + 0xc] MOV RCX,R14 CALL 0x001851e7 TEST EAX,EAX JNZ 0x00191724 MOV RAX,R15 SHR RAX,0x3f ADD RAX,R15 SAR RAX,0x1 ADD R15,RAX JMP 0x00191677 LAB_00191724: MOV RCX,qword ptr [R12 + 0x18] TEST RCX,RCX JZ 0x00191747 MOV RDI,R12 XOR ESI,ESI MOV EDX,dword ptr [RSP + 0x10] XOR R8D,R8D CALL 0x00184e26 TEST AL,0x20 JNZ 0x001917f7 LAB_00191747: CMP dword ptr [RSP + 0x14],0x0 JNZ 0x001917e8 MOV RAX,qword ptr [R12] MOV qword ptr [RSP + 0x60],RAX MOV dword ptr [RSP + 0x68],0x0 MOV RAX,-0x8000000000000000 MOV qword ptr [RSP + 0x70],RAX LEA RAX,[RSP + 0x78] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 LEA RBX,[RSP + 0x60] MOV RDI,RBX MOV RSI,qword ptr [RSP + 0x20] MOV R14,qword ptr [RSP + 0x40] MOV RDX,R14 MOV RCX,0x3fffffffffffffff MOV R8D,0x1 CALL 0x00188cee TEST EAX,EAX JNZ 0x0019180b MOV RDI,R12 MOV RSI,RBX CALL 0x0018542a MOV EBX,EAX MOV RAX,qword ptr [RSP + 0x60] TEST RAX,RAX JZ 0x001917d7 MOV RSI,qword ptr [RSP + 0x80] TEST RSI,RSI JZ 0x001917d7 MOV RDI,qword ptr [RAX] XOR EDX,EDX CALL qword ptr [RAX + 0x8] LAB_001917d7: TEST EBX,EBX MOV RBX,qword ptr [RSP + 0x48] JS 0x001917ed INC RBX JMP 0x00191626 LAB_001917e8: MOV RBX,qword ptr [RSP + 0x30] LAB_001917ed: MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RAX],RBX XOR EBP,EBP LAB_001917f7: MOV EAX,EBP ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0019180b: MOV EBP,EAX MOV RAX,qword ptr [RSP + 0x60] TEST RAX,RAX JZ 0x001917f7 MOV RSI,qword ptr [RSP + 0x80] TEST RSI,RSI JZ 0x001917f7 MOV RDI,qword ptr [RAX] XOR EDX,EDX CALL qword ptr [RAX + 0x8] JMP 0x001917f7
ulong bf_convert_to_radix(int8 *param_1,long *param_2,long param_3,int param_4,long param_5, uint param_6,int param_7) { long lVar1; uint uVar2; uint uVar3; int iVar4; long lVar5; long lVar6; ulong uVar7; ulong uVar8; ulong uVar9; long lVar10; long lVar11; ulong uVar12; long lVar13; int8 *puStack_58; int4 uStack_50; int8 uStack_48; int8 uStack_40; long lStack_38; if (*(long *)(param_3 + 0x18) == 0) { *param_2 = 0; uVar9 = bf_set(param_1,param_3); return uVar9; } if (param_7 == 0) { lVar5 = bf_mul_log2_radix(*(long *)(param_3 + 0x10) + -1,param_4,1,0); lVar5 = lVar5 + 1; } else { lVar5 = *param_2; } lVar6 = bf_mul_log2_radix(param_5,param_4,0,1); lVar10 = lVar5; while( true ) { uVar12 = param_5 - lVar10; uVar9 = -uVar12; if (0 < (long)uVar12) { uVar9 = uVar12; } uVar7 = uVar9 - 1; if (uVar7 == 0) { uVar8 = 0x40; } else { uVar8 = 0x3f; if (uVar7 != 0) { for (; uVar7 >> uVar8 == 0; uVar8 = uVar8 - 1) { } } uVar8 = uVar8 ^ 0x3f; } lVar11 = uVar8 * -2 + 0x81; if (uVar9 < 2) { lVar11 = 1; } lVar13 = 0x10; while( true ) { lVar1 = lVar13 + lVar6 + lVar11; uVar2 = bf_pow_ui_ui(param_1,(long)param_4,uVar9,lVar1,0x7e0); if ((long)uVar12 < 0) { uVar3 = bf_op2(param_1,param_3,param_1,lVar1,0x7e0,__bf_div); } else { uVar3 = bf_mul(param_1,param_1,param_3,lVar1,0x7e0); } if (((uVar3 | uVar2) & 0x20) != 0) { return 0x20; } if ((((uVar3 | uVar2) & 0x10) == 0) || (iVar4 = bf_can_round(param_1,param_1[2],param_6,lVar13 + lVar6), iVar4 != 0)) break; lVar13 = lVar13 + lVar13 / 2; } if ((param_1[3] != 0) && (uVar9 = __bf_round(param_1,0,param_6 | 0x10,param_1[3],0), (uVar9 & 0x20) != 0)) { return 0x20; } lVar11 = lVar5; if (param_7 != 0) break; puStack_58 = (int8 *)*param_1; uStack_50 = 0; uStack_48 = 0x8000000000000000; uStack_40 = 0; lStack_38 = 0; uVar2 = bf_pow_ui_ui(&puStack_58,(long)param_4,param_5,0x3fffffffffffffff,1); if (uVar2 != 0) { uVar9 = (ulong)uVar2; if (puStack_58 == (int8 *)0x0) { return uVar9; } if (lStack_38 == 0) { return uVar9; } (*(code *)puStack_58[1])(*puStack_58,lStack_38,0); return uVar9; } iVar4 = bf_cmpu(param_1,&puStack_58); if ((puStack_58 != (int8 *)0x0) && (lStack_38 != 0)) { (*(code *)puStack_58[1])(*puStack_58,lStack_38,0); } lVar11 = lVar10; if (iVar4 < 0) break; lVar10 = lVar10 + 1; } *param_2 = lVar11; return 0; }
51,070
bf_convert_to_radix
bluesky950520[P]quickjs/libbf.c
static int bf_convert_to_radix(bf_t *r, slimb_t *pE, const bf_t *a, int radix, limb_t P, bf_rnd_t rnd_mode, BOOL is_fixed_exponent) { slimb_t E, e, prec, extra_bits, ziv_extra_bits, prec0; bf_t B_s, *B = &B_s; int e_sign, ret, res; if (a->len == 0) { /* zero case */ *pE = 0; return bf_set(r, a); } if (is_fixed_exponent) { E = *pE; } else { /* compute the new exponent */ E = 1 + bf_mul_log2_radix(a->expn - 1, radix, TRUE, FALSE); } // bf_print_str("a", a); // printf("E=%ld P=%ld radix=%d\n", E, P, radix); for(;;) { e = P - E; e_sign = 0; if (e < 0) { e = -e; e_sign = 1; } /* Note: precision for log2(radix) is not critical here */ prec0 = bf_mul_log2_radix(P, radix, FALSE, TRUE); ziv_extra_bits = 16; for(;;) { prec = prec0 + ziv_extra_bits; /* XXX: rigorous error analysis needed */ extra_bits = ceil_log2(e) * 2 + 1; ret = bf_pow_ui_ui(r, radix, e, prec + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP); if (!e_sign) ret |= bf_mul(r, r, a, prec + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP); else ret |= bf_div(r, a, r, prec + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP); if (ret & BF_ST_MEM_ERROR) return BF_ST_MEM_ERROR; /* if the result is not exact, check that it can be safely rounded to an integer */ if ((ret & BF_ST_INEXACT) && !bf_can_round(r, r->expn, rnd_mode, prec)) { /* and more precision and retry */ ziv_extra_bits = ziv_extra_bits + (ziv_extra_bits / 2); continue; } else { ret = bf_rint(r, rnd_mode); if (ret & BF_ST_MEM_ERROR) return BF_ST_MEM_ERROR; break; } } if (is_fixed_exponent) break; /* check that the result is < B^P */ /* XXX: do a fast approximate test first ? */ bf_init(r->ctx, B); ret = bf_pow_ui_ui(B, radix, P, BF_PREC_INF, BF_RNDZ); if (ret) { bf_delete(B); return ret; } res = bf_cmpu(r, B); bf_delete(B); if (res < 0) break; /* try a larger exponent */ E++; } *pE = E; return 0; }
O2
c
bf_convert_to_radix: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movl %r9d, (%rsp) movq %rdi, %r12 cmpq $0x0, 0x18(%rdx) je 0x7924c movq %r8, %r14 movl %ecx, %ebp movl 0xb0(%rsp), %eax movl %eax, 0x4(%rsp) testl %eax, %eax movq %rsi, 0x30(%rsp) movq %rdx, 0x10(%rsp) je 0x79269 movq (%rsi), %rbx jmp 0x79282 andq $0x0, (%rsi) movq %r12, %rdi movq %rdx, %rsi addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x6f666 movq 0x10(%rdx), %rdi decq %rdi pushq $0x1 popq %rdx movl %ebp, %esi xorl %ecx, %ecx callq 0x733a5 movq %rax, %rbx incq %rbx pushq $0x1 popq %rcx movq %r14, %rdi movl %ebp, %esi xorl %edx, %edx callq 0x733a5 movq %rax, 0x40(%rsp) movslq %ebp, %rax movq %rax, 0x18(%rsp) pushq $0x40 popq %rax movq %rbx, 0x28(%rsp) movq %r14, 0x38(%rsp) movq %r14, %rcx movq %rbx, 0x8(%rsp) subq %rbx, %rcx movq %rcx, %rdx negq %rdx movq %rcx, 0x48(%rsp) cmovsq %rcx, %rdx movq %rdx, 0x20(%rsp) movq %rdx, %rcx decq %rcx je 0x792da bsrq %rcx, %rax xorq $0x3f, %rax addq %rax, %rax movl $0x81, %r15d subq %rax, %r15 cmpq $0x2, 0x20(%rsp) pushq $0x1 popq %rax cmovbq %rax, %r15 pushq $0x10 popq %rbp movq 0x40(%rsp), %rax leaq (%rax,%rbp), %r14 leaq (%r14,%r15), %r13 movq %r12, %rdi movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx movq %r13, %rcx movl $0x7e0, %r8d # imm = 0x7E0 callq 0x72a1f movl %eax, %ebx cmpq $0x0, 0x48(%rsp) js 0x79343 movq %r12, %rdi movq %r12, %rsi movq 0x10(%rsp), %rdx movq %r13, %rcx movl $0x7e0, %r8d # imm = 0x7E0 callq 0x70da9 jmp 0x7935c movq %r12, %rdi movq 0x10(%rsp), %rsi movq %r12, %rdx movq %r13, %rcx movl $0x7e0, %r8d # imm = 0x7E0 callq 0x71cf2 orl %ebx, %eax testb $0x20, %al jne 0x7942f testb $0x10, %al je 0x79394 movq 0x10(%r12), %rsi movq %r12, %rdi movl (%rsp), %edx movq %r14, %rcx callq 0x6fb30 testl %eax, %eax jne 0x79394 movq %rbp, %rax cqto pushq $0x2 popq %rcx idivq %rcx addq %rax, %rbp jmp 0x792f6 movq %r12, %rdi movl (%rsp), %esi callq 0x71c3d testb $0x20, %al jne 0x7942f cmpl $0x0, 0x4(%rsp) jne 0x79441 movq (%r12), %rax movq %rax, 0x50(%rsp) andl $0x0, 0x58(%rsp) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x60(%rsp) leaq 0x68(%rsp), %rax xorps %xmm0, %xmm0 movups %xmm0, (%rax) leaq 0x50(%rsp), %r15 movq %r15, %rdi movq 0x18(%rsp), %rsi movq 0x38(%rsp), %r14 movq %r14, %rdx movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF pushq $0x1 popq %r8 callq 0x72a1f testl %eax, %eax jne 0x79448 movq %r12, %rdi movq %r15, %rsi callq 0x6fd66 movl %eax, %ebx movq %r15, %rdi callq 0x7145e testl %ebx, %ebx js 0x79458 movq 0x8(%rsp), %rbx incq %rbx pushq $0x40 popq %rax jmp 0x792ab pushq $0x20 popq %rax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x28(%rsp), %rcx jmp 0x7945d movl %eax, %ebx leaq 0x50(%rsp), %rdi callq 0x7145e movl %ebx, %eax jmp 0x79432 movq 0x8(%rsp), %rcx movq 0x30(%rsp), %rax movq %rcx, (%rax) xorl %eax, %eax jmp 0x79432
bf_convert_to_radix: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov [rsp+0A8h+var_A8], r9d mov r12, rdi cmp qword ptr [rdx+18h], 0 jz short loc_7924C mov r14, r8 mov ebp, ecx mov eax, [rsp+0A8h+arg_0] mov [rsp+0A8h+var_A4], eax test eax, eax mov [rsp+0A8h+var_78], rsi mov [rsp+0A8h+var_98], rdx jz short loc_79269 mov rbx, [rsi] jmp short loc_79282 loc_7924C: and qword ptr [rsi], 0 mov rdi, r12 mov rsi, rdx add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp bf_set loc_79269: mov rdi, [rdx+10h] dec rdi push 1 pop rdx mov esi, ebp xor ecx, ecx call bf_mul_log2_radix mov rbx, rax inc rbx loc_79282: push 1 pop rcx mov rdi, r14 mov esi, ebp xor edx, edx call bf_mul_log2_radix mov [rsp+0A8h+var_68], rax movsxd rax, ebp mov [rsp+0A8h+var_90], rax push 40h ; '@' pop rax mov [rsp+0A8h+var_80], rbx mov [rsp+0A8h+var_70], r14 loc_792AB: mov rcx, r14 mov [rsp+0A8h+var_A0], rbx sub rcx, rbx mov rdx, rcx neg rdx mov [rsp+0A8h+var_60], rcx cmovs rdx, rcx mov [rsp+0A8h+var_88], rdx mov rcx, rdx dec rcx jz short loc_792DA bsr rax, rcx xor rax, 3Fh loc_792DA: add rax, rax mov r15d, 81h sub r15, rax cmp [rsp+0A8h+var_88], 2 push 1 pop rax cmovb r15, rax push 10h pop rbp loc_792F6: mov rax, [rsp+0A8h+var_68] lea r14, [rax+rbp] lea r13, [r14+r15] mov rdi, r12 mov rsi, [rsp+0A8h+var_90] mov rdx, [rsp+0A8h+var_88] mov rcx, r13 mov r8d, 7E0h call bf_pow_ui_ui mov ebx, eax cmp [rsp+0A8h+var_60], 0 js short loc_79343 mov rdi, r12 mov rsi, r12 mov rdx, [rsp+0A8h+var_98] mov rcx, r13 mov r8d, 7E0h call bf_mul jmp short loc_7935C loc_79343: mov rdi, r12 mov rsi, [rsp+0A8h+var_98] mov rdx, r12 mov rcx, r13 mov r8d, 7E0h call bf_div loc_7935C: or eax, ebx test al, 20h jnz loc_7942F test al, 10h jz short loc_79394 mov rsi, [r12+10h] mov rdi, r12 mov edx, [rsp+0A8h+var_A8] mov rcx, r14 call bf_can_round test eax, eax jnz short loc_79394 mov rax, rbp cqo push 2 pop rcx idiv rcx add rbp, rax jmp loc_792F6 loc_79394: mov rdi, r12 mov esi, [rsp+0A8h+var_A8] call bf_rint test al, 20h jnz loc_7942F cmp [rsp+0A8h+var_A4], 0 jnz loc_79441 mov rax, [r12] mov [rsp+0A8h+var_58], rax and [rsp+0A8h+var_50], 0 mov rax, 8000000000000000h mov [rsp+0A8h+var_48], rax lea rax, [rsp+0A8h+var_40] xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 lea r15, [rsp+0A8h+var_58] mov rdi, r15 mov rsi, [rsp+0A8h+var_90] mov r14, [rsp+0A8h+var_70] mov rdx, r14 mov rcx, 3FFFFFFFFFFFFFFFh push 1 pop r8 call bf_pow_ui_ui test eax, eax jnz short loc_79448 mov rdi, r12 mov rsi, r15 call bf_cmpu mov ebx, eax mov rdi, r15 call bf_delete_0 test ebx, ebx js short loc_79458 mov rbx, [rsp+0A8h+var_A0] inc rbx push 40h ; '@' pop rax jmp loc_792AB loc_7942F: push 20h ; ' ' pop rax loc_79432: add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_79441: mov rcx, [rsp+0A8h+var_80] jmp short loc_7945D loc_79448: mov ebx, eax lea rdi, [rsp+0A8h+var_58] call bf_delete_0 mov eax, ebx jmp short loc_79432 loc_79458: mov rcx, [rsp+0A8h+var_A0] loc_7945D: mov rax, [rsp+0A8h+var_78] mov [rax], rcx xor eax, eax jmp short loc_79432
long long bf_convert_to_radix( long long *a1, unsigned long long *a2, long long a3, signed int a4, long long a5, int a6, int a7) { unsigned long long v9; // rbx unsigned long long v11; // rax unsigned long long v12; // rdx unsigned long long v13; // rax long long v14; // r15 long long i; // rbp long long v16; // r13 char v17; // bl char v18; // al char v19; // al unsigned int v20; // eax int v21; // ebx unsigned long long v22; // rcx unsigned int v23; // ebx unsigned long long v25; // [rsp+8h] [rbp-A0h] unsigned long long v27; // [rsp+18h] [rbp-90h] unsigned long long v28; // [rsp+20h] [rbp-88h] unsigned long long v29; // [rsp+28h] [rbp-80h] unsigned long long v30; // [rsp+38h] [rbp-70h] unsigned long long v31; // [rsp+40h] [rbp-68h] long long v32; // [rsp+48h] [rbp-60h] long long v33; // [rsp+50h] [rbp-58h] BYREF int v34; // [rsp+58h] [rbp-50h] unsigned long long v35; // [rsp+60h] [rbp-48h] __int128 v36; // [rsp+68h] [rbp-40h] if ( !*(_QWORD *)(a3 + 24) ) { *a2 = 0LL; return bf_set((long long)a1, a3); } if ( a7 ) v9 = *a2; else v9 = bf_mul_log2_radix(*(_QWORD *)(a3 + 16) - 1LL, a4, 1, 0) + 1; v31 = bf_mul_log2_radix(a5, a4, 0, 1); v27 = a4; v11 = 64LL; v29 = v9; v30 = a5; while ( 2 ) { v25 = v9; v12 = v9 - a5; v32 = a5 - v9; if ( (long long)(v9 - a5) < 0 ) v12 = a5 - v9; v28 = v12; if ( v12 != 1 ) { _BitScanReverse64(&v13, v12 - 1); v11 = v13 ^ 0x3F; } v14 = 129 - 2 * v11; if ( v12 < 2 ) v14 = 1LL; for ( i = 16LL; ; i += i / 2 ) { v16 = v31 + i + v14; v17 = bf_pow_ui_ui(a1, v27, v28, v16, 0x7E0u); if ( v32 < 0 ) v18 = bf_div((__int128 *)a1, (__int128 *)a3, (__int128 *)a1, v16, 2016LL); else v18 = bf_mul(a1, a1, (long long *)a3, v16, 0x7E0u); v19 = v17 | v18; if ( (v19 & 0x20) != 0 ) return 32LL; if ( (v19 & 0x10) == 0 || bf_can_round(a1, a1[2], a6, v31 + i) ) break; } if ( (bf_rint((long long)a1, a6) & 0x20) != 0 ) return 32LL; if ( a7 ) { v22 = v29; } else { v33 = *a1; v34 = 0; v35 = 0x8000000000000000LL; v36 = 0LL; a5 = v30; v20 = bf_pow_ui_ui(&v33, v27, v30, 0x3FFFFFFFFFFFFFFFLL, 1u); if ( v20 ) { v23 = v20; bf_delete_0(&v33); return v23; } v21 = bf_cmpu(a1, &v33); bf_delete_0(&v33); if ( v21 >= 0 ) { v9 = v25 + 1; v11 = 64LL; continue; } v22 = v25; } break; } *a2 = v22; return 0LL; }
bf_convert_to_radix: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV dword ptr [RSP],R9D MOV R12,RDI CMP qword ptr [RDX + 0x18],0x0 JZ 0x0017924c MOV R14,R8 MOV EBP,ECX MOV EAX,dword ptr [RSP + 0xb0] MOV dword ptr [RSP + 0x4],EAX TEST EAX,EAX MOV qword ptr [RSP + 0x30],RSI MOV qword ptr [RSP + 0x10],RDX JZ 0x00179269 MOV RBX,qword ptr [RSI] JMP 0x00179282 LAB_0017924c: AND qword ptr [RSI],0x0 MOV RDI,R12 MOV RSI,RDX ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0016f666 LAB_00179269: MOV RDI,qword ptr [RDX + 0x10] DEC RDI PUSH 0x1 POP RDX MOV ESI,EBP XOR ECX,ECX CALL 0x001733a5 MOV RBX,RAX INC RBX LAB_00179282: PUSH 0x1 POP RCX MOV RDI,R14 MOV ESI,EBP XOR EDX,EDX CALL 0x001733a5 MOV qword ptr [RSP + 0x40],RAX MOVSXD RAX,EBP MOV qword ptr [RSP + 0x18],RAX PUSH 0x40 POP RAX MOV qword ptr [RSP + 0x28],RBX MOV qword ptr [RSP + 0x38],R14 LAB_001792ab: MOV RCX,R14 MOV qword ptr [RSP + 0x8],RBX SUB RCX,RBX MOV RDX,RCX NEG RDX MOV qword ptr [RSP + 0x48],RCX CMOVS RDX,RCX MOV qword ptr [RSP + 0x20],RDX MOV RCX,RDX DEC RCX JZ 0x001792da BSR RAX,RCX XOR RAX,0x3f LAB_001792da: ADD RAX,RAX MOV R15D,0x81 SUB R15,RAX CMP qword ptr [RSP + 0x20],0x2 PUSH 0x1 POP RAX CMOVC R15,RAX PUSH 0x10 POP RBP LAB_001792f6: MOV RAX,qword ptr [RSP + 0x40] LEA R14,[RAX + RBP*0x1] LEA R13,[R14 + R15*0x1] MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] MOV RCX,R13 MOV R8D,0x7e0 CALL 0x00172a1f MOV EBX,EAX CMP qword ptr [RSP + 0x48],0x0 JS 0x00179343 MOV RDI,R12 MOV RSI,R12 MOV RDX,qword ptr [RSP + 0x10] MOV RCX,R13 MOV R8D,0x7e0 CALL 0x00170da9 JMP 0x0017935c LAB_00179343: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x10] MOV RDX,R12 MOV RCX,R13 MOV R8D,0x7e0 CALL 0x00171cf2 LAB_0017935c: OR EAX,EBX TEST AL,0x20 JNZ 0x0017942f TEST AL,0x10 JZ 0x00179394 MOV RSI,qword ptr [R12 + 0x10] MOV RDI,R12 MOV EDX,dword ptr [RSP] MOV RCX,R14 CALL 0x0016fb30 TEST EAX,EAX JNZ 0x00179394 MOV RAX,RBP CQO PUSH 0x2 POP RCX IDIV RCX ADD RBP,RAX JMP 0x001792f6 LAB_00179394: MOV RDI,R12 MOV ESI,dword ptr [RSP] CALL 0x00171c3d TEST AL,0x20 JNZ 0x0017942f CMP dword ptr [RSP + 0x4],0x0 JNZ 0x00179441 MOV RAX,qword ptr [R12] MOV qword ptr [RSP + 0x50],RAX AND dword ptr [RSP + 0x58],0x0 MOV RAX,-0x8000000000000000 MOV qword ptr [RSP + 0x60],RAX LEA RAX,[RSP + 0x68] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 LEA R15,[RSP + 0x50] MOV RDI,R15 MOV RSI,qword ptr [RSP + 0x18] MOV R14,qword ptr [RSP + 0x38] MOV RDX,R14 MOV RCX,0x3fffffffffffffff PUSH 0x1 POP R8 CALL 0x00172a1f TEST EAX,EAX JNZ 0x00179448 MOV RDI,R12 MOV RSI,R15 CALL 0x0016fd66 MOV EBX,EAX MOV RDI,R15 CALL 0x0017145e TEST EBX,EBX JS 0x00179458 MOV RBX,qword ptr [RSP + 0x8] INC RBX PUSH 0x40 POP RAX JMP 0x001792ab LAB_0017942f: PUSH 0x20 POP RAX LAB_00179432: ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00179441: MOV RCX,qword ptr [RSP + 0x28] JMP 0x0017945d LAB_00179448: MOV EBX,EAX LEA RDI,[RSP + 0x50] CALL 0x0017145e MOV EAX,EBX JMP 0x00179432 LAB_00179458: MOV RCX,qword ptr [RSP + 0x8] LAB_0017945d: MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RAX],RCX XOR EAX,EAX JMP 0x00179432
ulong bf_convert_to_radix(int8 *param_1,long *param_2,long param_3,int param_4,long param_5, int4 param_6,int param_7) { long lVar1; uint uVar2; uint uVar3; int iVar4; long lVar5; long lVar6; ulong uVar7; ulong uVar8; ulong uVar9; long lVar10; ulong uVar11; long lVar12; long lVar13; int8 uStack_58; int4 uStack_50; int8 uStack_48; int8 uStack_40; int8 uStack_38; if (*(long *)(param_3 + 0x18) == 0) { *param_2 = 0; uVar7 = bf_set(param_1,param_3); return uVar7; } if (param_7 == 0) { lVar5 = bf_mul_log2_radix(*(long *)(param_3 + 0x10) + -1,param_4,1,0); lVar5 = lVar5 + 1; } else { lVar5 = *param_2; } lVar6 = bf_mul_log2_radix(param_5,param_4,0,1); lVar12 = lVar5; while( true ) { uVar7 = 0x40; uVar8 = param_5 - lVar12; uVar11 = -uVar8; if (0 < (long)uVar8) { uVar11 = uVar8; } uVar9 = uVar11 - 1; if (uVar9 != 0) { uVar7 = 0x3f; if (uVar9 != 0) { for (; uVar9 >> uVar7 == 0; uVar7 = uVar7 - 1) { } } uVar7 = uVar7 ^ 0x3f; } lVar10 = uVar7 * -2 + 0x81; if (uVar11 < 2) { lVar10 = 1; } lVar13 = 0x10; while( true ) { lVar1 = lVar6 + lVar13 + lVar10; uVar2 = bf_pow_ui_ui(param_1,(long)param_4,uVar11,lVar1,0x7e0); if ((long)uVar8 < 0) { uVar3 = bf_div(param_1,param_3,param_1,lVar1,0x7e0); } else { uVar3 = bf_mul(param_1,param_1,param_3,lVar1,0x7e0); } if (((uVar3 | uVar2) & 0x20) != 0) { return 0x20; } if ((((uVar3 | uVar2) & 0x10) == 0) || (iVar4 = bf_can_round(param_1,param_1[2],param_6,lVar6 + lVar13), iVar4 != 0)) break; lVar13 = lVar13 + lVar13 / 2; } uVar7 = bf_rint(param_1,param_6); if ((uVar7 & 0x20) != 0) { return 0x20; } lVar10 = lVar5; if (param_7 != 0) break; uStack_58 = *param_1; uStack_50 = 0; uStack_48 = 0x8000000000000000; uStack_40 = 0; uStack_38 = 0; uVar2 = bf_pow_ui_ui(&uStack_58,(long)param_4,param_5,0x3fffffffffffffff,1); if (uVar2 != 0) { bf_delete(&uStack_58); return (ulong)uVar2; } iVar4 = bf_cmpu(param_1,&uStack_58); bf_delete(&uStack_58); lVar10 = lVar12; if (iVar4 < 0) break; lVar12 = lVar12 + 1; } *param_2 = lVar10; return 0; }
51,071
ggml_backend_cpu_free(ggml_backend*)
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp
static void ggml_backend_cpu_free(ggml_backend_t backend) { struct ggml_backend_cpu_context * cpu_ctx = (struct ggml_backend_cpu_context *)backend->context; delete[] cpu_ctx->work_data; delete cpu_ctx; delete backend; }
O0
cpp
ggml_backend_cpu_free(ggml_backend*): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq 0x78(%rax), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, %rax je 0x3e6a3 movq -0x18(%rbp), %rdi callq 0xdd80 movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, %rax je 0x3e6bf movq -0x20(%rbp), %rdi movl $0x30, %esi callq 0xdb00 movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) cmpq $0x0, %rax je 0x3e6db movq -0x28(%rbp), %rdi movl $0x80, %esi callq 0xdb00 addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZL21ggml_backend_cpu_freeP12ggml_backend: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov rax, [rax+78h] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rax, [rax+10h] mov [rbp+var_18], rax cmp rax, 0 jz short loc_3E6A3 mov rdi, [rbp+var_18]; void * call __ZdaPv; operator delete[](void *) loc_3E6A3: mov rax, [rbp+var_10] mov [rbp+var_20], rax cmp rax, 0 jz short loc_3E6BF mov rdi, [rbp+var_20]; void * mov esi, 30h ; '0'; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3E6BF: mov rax, [rbp+var_8] mov [rbp+var_28], rax cmp rax, 0 jz short loc_3E6DB mov rdi, [rbp+var_28]; void * mov esi, 80h; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3E6DB: add rsp, 30h pop rbp retn
void ggml_backend_cpu_free(_QWORD *a1) { void *v1; // [rsp+18h] [rbp-18h] _QWORD *v2; // [rsp+20h] [rbp-10h] v2 = (_QWORD *)a1[15]; v1 = (void *)v2[2]; if ( v1 ) operator delete[](v1); if ( v2 ) operator delete(v2, 0x30uLL); if ( a1 ) operator delete(a1, 0x80uLL); }
ggml_backend_cpu_free: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x78] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x18],RAX CMP RAX,0x0 JZ 0x0013e6a3 MOV RDI,qword ptr [RBP + -0x18] CALL 0x0010dd80 LAB_0013e6a3: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JZ 0x0013e6bf MOV RDI,qword ptr [RBP + -0x20] MOV ESI,0x30 CALL 0x0010db00 LAB_0013e6bf: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x28],RAX CMP RAX,0x0 JZ 0x0013e6db MOV RDI,qword ptr [RBP + -0x28] MOV ESI,0x80 CALL 0x0010db00 LAB_0013e6db: ADD RSP,0x30 POP RBP RET
/* ggml_backend_cpu_free(ggml_backend*) */ void ggml_backend_cpu_free(ggml_backend *param_1) { void *pvVar1; pvVar1 = *(void **)(param_1 + 0x78); if (*(void **)((long)pvVar1 + 0x10) != (void *)0x0) { operator_delete__(*(void **)((long)pvVar1 + 0x10)); } if (pvVar1 != (void *)0x0) { operator_delete(pvVar1,0x30); } if (param_1 != (ggml_backend *)0x0) { operator_delete(param_1,0x80); } return; }
51,072
OpenSubdiv::v3_6_0::Far::PatchTableBuilder::identifyPatches()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
void PatchTableBuilder::identifyPatches() { // // First initialize the offsets for all levels // _levelVertOffsets.push_back(0); _levelFVarValueOffsets.resize(_fvarChannelIndices.size()); for (int fvc=0; fvc<(int)_fvarChannelIndices.size(); ++fvc) { _levelFVarValueOffsets[fvc].push_back(0); } for (int levelIndex=0; levelIndex<_refiner.GetNumLevels(); ++levelIndex) { Level const & level = _refiner.getLevel(levelIndex); _levelVertOffsets.push_back( _levelVertOffsets.back() + level.getNumVertices()); for (int fvc=0; fvc<(int)_fvarChannelIndices.size(); ++fvc) { int refinerChannel = _fvarChannelIndices[fvc]; _levelFVarValueOffsets[fvc].push_back( _levelFVarValueOffsets[fvc].back() + level.getNumFVarValues(refinerChannel)); } } // // If a set of selected base faces is present, identify the patches // depth first. Otherwise search breadth first through the levels: // int uniformLevel = _refiner.IsUniform() ? _options.maxIsolationLevel : -1; _patches.reserve(_refiner.GetNumFacesTotal()); if (_selectedFaces.size()) { for (int i = 0; i < (int)_selectedFaces.size(); ++i) { findDescendantPatches(0, _selectedFaces[i], uniformLevel); } } else if (uniformLevel >= 0) { int numFaces = _refiner.getLevel(uniformLevel).getNumFaces(); for (int faceIndex = 0; faceIndex < numFaces; ++faceIndex) { if (_patchBuilder->IsFaceAPatch(uniformLevel, faceIndex)) { appendPatch(uniformLevel, faceIndex); } } } else { for (int levelIndex=0; levelIndex<_refiner.GetNumLevels(); ++levelIndex) { int numFaces = _refiner.getLevel(levelIndex).getNumFaces(); for (int faceIndex = 0; faceIndex < numFaces; ++faceIndex) { if (_patchBuilder->IsFaceAPatch(levelIndex, faceIndex) && _patchBuilder->IsFaceALeaf(levelIndex, faceIndex)) { appendPatch(levelIndex, faceIndex); } } } } }
O1
cpp
OpenSubdiv::v3_6_0::Far::PatchTableBuilder::identifyPatches(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx addq $0x78, %rdi movl $0x0, 0x8(%rsp) movq 0x80(%rbx), %rsi cmpq 0x88(%rbx), %rsi movq %rdi, 0x18(%rsp) je 0x6ca63 movl $0x0, (%rsi) addq $0x4, %rsi movq %rsi, 0x80(%rbx) jmp 0x6ca6d leaq 0x8(%rsp), %rdx callq 0x3b550 leaq 0x90(%rbx), %rdi movq 0xb0(%rbx), %rsi subq 0xa8(%rbx), %rsi sarq $0x2, %rsi movq %rdi, 0x10(%rsp) callq 0x3af00 movq 0xb0(%rbx), %rax subq 0xa8(%rbx), %rax shrq $0x2, %rax testl %eax, %eax jle 0x6cb09 xorl %r14d, %r14d leaq 0x8(%rsp), %r12 xorl %r13d, %r13d movq 0x10(%rsp), %rax movq (%rax), %rax leaq (%rax,%r14), %rdi movl $0x0, 0x8(%rsp) movq 0x8(%rax,%r14), %rsi cmpq 0x10(%rax,%r14), %rsi je 0x6cae1 movl $0x0, (%rsi) addq $0x4, %rsi movq %rsi, 0x8(%rdi) jmp 0x6cae9 movq %r12, %rdx callq 0x3b550 incq %r13 movq 0xb0(%rbx), %rax subq 0xa8(%rbx), %rax shrq $0x2, %rax cltq addq $0x18, %r14 cmpq %rax, %r13 jl 0x6cab1 movq (%rbx), %rax movq 0x68(%rax), %rcx subq 0x60(%rax), %rcx shrq $0x3, %rcx imull $0xaaaaaaab, %ecx, %ecx # imm = 0xAAAAAAAB testl %ecx, %ecx jle 0x6cc27 xorl %edx, %edx movq 0x30(%rax), %rax movq %rdx, 0x20(%rsp) movq (%rax,%rdx,8), %r13 movq 0x80(%rbx), %rsi movl 0x8(%r13), %eax addl -0x4(%rsi), %eax movl %eax, 0x8(%rsp) cmpq 0x88(%rbx), %rsi je 0x6cb5f movl %eax, (%rsi) addq $0x4, %rsi movq %rsi, 0x80(%rbx) jmp 0x6cb6e movq 0x18(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x3b550 movq 0xa8(%rbx), %rax movq 0xb0(%rbx), %rcx subq %rax, %rcx shrq $0x2, %rcx testl %ecx, %ecx jle 0x6cbfe xorl %r12d, %r12d xorl %r14d, %r14d movl (%rax,%r14,4), %esi movq 0x10(%rsp), %rax movq (%rax), %rbp movq 0x8(%rbp,%r12), %rax movl -0x4(%rax), %r15d movq %r13, %rdi callq 0x3ae80 addl %r15d, %eax movl %eax, 0x8(%rsp) movq 0x8(%rbp,%r12), %rsi cmpq 0x10(%rbp,%r12), %rsi je 0x6cbca movl %eax, (%rsi) addq $0x4, %rsi movq %rsi, 0x8(%rbp,%r12) jmp 0x6cbda addq %r12, %rbp movq %rbp, %rdi leaq 0x8(%rsp), %rdx callq 0x3b550 incq %r14 movq 0xa8(%rbx), %rax movq 0xb0(%rbx), %rcx subq %rax, %rcx shrq $0x2, %rcx movslq %ecx, %rcx addq $0x18, %r12 cmpq %rcx, %r14 jl 0x6cb8d movq 0x20(%rsp), %rdx incq %rdx movq (%rbx), %rax movq 0x68(%rax), %rcx subq 0x60(%rax), %rcx shrq $0x3, %rcx imull $0xaaaaaaab, %ecx, %ecx # imm = 0xAAAAAAAB movslq %ecx, %rcx cmpq %rcx, %rdx jl 0x6cb28 movzwl 0x8(%rax), %r15d movl %r15d, %ecx andl $0x1, %ecx movl 0x8(%rbx), %edx shrl $0x6, %edx andl $0xf, %edx xorl %ebp, %ebp cmpw $0x1, %cx sbbl %ebp, %ebp orl %edx, %ebp leaq 0x58(%rbx), %r14 movslq 0x1c(%rax), %rsi movq %r14, %rdi callq 0x3a8d0 cmpl $0x0, 0x20(%rbx) je 0x6cc8d cmpl $0x0, 0x20(%rbx) jle 0x6cdf1 xorl %r14d, %r14d movq 0x18(%rbx), %rax movl (%rax,%r14,4), %edx movq %rbx, %rdi xorl %esi, %esi movl %ebp, %ecx callq 0x389e0 incq %r14 movslq 0x20(%rbx), %rax cmpq %rax, %r14 jl 0x6cc68 jmp 0x6cdf1 movq (%rbx), %rax testb $0x1, %r15b jne 0x6cd6f movq 0x68(%rax), %rcx subq 0x60(%rax), %rcx shrq $0x3, %rcx imull $0xaaaaaaab, %ecx, %ecx # imm = 0xAAAAAAAB testl %ecx, %ecx jle 0x6cdf1 xorl %r15d, %r15d leaq 0x8(%rsp), %r12 movq 0x30(%rax), %rax movq (%rax,%r15,8), %rax movl (%rax), %r13d testl %r13d, %r13d jle 0x6cd46 xorl %ebp, %ebp movq 0x38(%rbx), %rdi movl %r15d, %esi movl %ebp, %edx callq 0x3a8c0 testb %al, %al je 0x6cd3f movq 0x38(%rbx), %rdi movl %r15d, %esi movl %ebp, %edx callq 0x3a520 testb %al, %al je 0x6cd3f movl %ebp, 0x8(%rsp) movl %r15d, 0xc(%rsp) movq %r14, %rdi movq %r12, %rsi callq 0x38830 movq 0x38(%rbx), %rdi movl %r15d, %esi movl %ebp, %edx movl $0xffffffff, %ecx # imm = 0xFFFFFFFF callq 0x39700 testb %al, %al je 0x6cd22 incl 0x70(%rbx) jmp 0x6cd3f incl 0x74(%rbx) cmpb $0x1, 0xc0(%rbx) jne 0x6cd3f movq 0xc8(%rbx), %rdi movl %r15d, %esi movl %ebp, %edx callq 0x3a5b0 incl %ebp cmpl %ebp, %r13d jne 0x6ccce incq %r15 movq (%rbx), %rax movq 0x68(%rax), %rcx subq 0x60(%rax), %rcx shrq $0x3, %rcx imull $0xaaaaaaab, %ecx, %ecx # imm = 0xAAAAAAAB movslq %ecx, %rcx cmpq %rcx, %r15 jl 0x6ccbc jmp 0x6cdf1 movslq %ebp, %rcx movq 0x30(%rax), %rax movq (%rax,%rcx,8), %rax movl (%rax), %r13d testl %r13d, %r13d jle 0x6cdf1 xorl %r15d, %r15d leaq 0x8(%rsp), %r12 movq 0x38(%rbx), %rdi movl %ebp, %esi movl %r15d, %edx callq 0x3a8c0 testb %al, %al je 0x6cde9 movl %r15d, 0x8(%rsp) movl %ebp, 0xc(%rsp) movq %r14, %rdi movq %r12, %rsi callq 0x38830 movq 0x38(%rbx), %rdi movl %ebp, %esi movl %r15d, %edx movl $0xffffffff, %ecx # imm = 0xFFFFFFFF callq 0x39700 testb %al, %al je 0x6cdcc incl 0x70(%rbx) jmp 0x6cde9 incl 0x74(%rbx) cmpb $0x1, 0xc0(%rbx) jne 0x6cde9 movq 0xc8(%rbx), %rdi movl %ebp, %esi movl %r15d, %edx callq 0x3a5b0 incl %r15d cmpl %r15d, %r13d jne 0x6cd8a addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder15identifyPatchesEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi add rdi, 78h ; 'x' mov [rsp+58h+var_50], 0 mov rsi, [rbx+80h] cmp rsi, [rbx+88h] mov [rsp+58h+var_40], rdi jz short loc_6CA63 mov dword ptr [rsi], 0 add rsi, 4 mov [rbx+80h], rsi jmp short loc_6CA6D loc_6CA63: lea rdx, [rsp+58h+var_50] call __ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int &&) loc_6CA6D: lea rdi, [rbx+90h] mov rsi, [rbx+0B0h] sub rsi, [rbx+0A8h] sar rsi, 2 mov [rsp+58h+var_48], rdi call __ZNSt6vectorIS_IiSaIiEESaIS1_EE6resizeEm; std::vector<std::vector<int>>::resize(ulong) mov rax, [rbx+0B0h] sub rax, [rbx+0A8h] shr rax, 2 test eax, eax jle short loc_6CB09 xor r14d, r14d lea r12, [rsp+58h+var_50] xor r13d, r13d loc_6CAB1: mov rax, [rsp+58h+var_48] mov rax, [rax] lea rdi, [rax+r14] mov [rsp+58h+var_50], 0 mov rsi, [rax+r14+8] cmp rsi, [rax+r14+10h] jz short loc_6CAE1 mov dword ptr [rsi], 0 add rsi, 4 mov [rdi+8], rsi jmp short loc_6CAE9 loc_6CAE1: mov rdx, r12 call __ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int &&) loc_6CAE9: inc r13 mov rax, [rbx+0B0h] sub rax, [rbx+0A8h] shr rax, 2 cdqe add r14, 18h cmp r13, rax jl short loc_6CAB1 loc_6CB09: mov rax, [rbx] mov rcx, [rax+68h] sub rcx, [rax+60h] shr rcx, 3 imul ecx, 0AAAAAAABh test ecx, ecx jle loc_6CC27 xor edx, edx loc_6CB28: mov rax, [rax+30h] mov [rsp+58h+var_38], rdx mov r13, [rax+rdx*8] mov rsi, [rbx+80h] mov eax, [r13+8] add eax, [rsi-4] mov [rsp+58h+var_50], eax cmp rsi, [rbx+88h] jz short loc_6CB5F mov [rsi], eax add rsi, 4 mov [rbx+80h], rsi jmp short loc_6CB6E loc_6CB5F: mov rdi, [rsp+58h+var_40] lea rdx, [rsp+58h+var_50] call __ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int &&) loc_6CB6E: mov rax, [rbx+0A8h] mov rcx, [rbx+0B0h] sub rcx, rax shr rcx, 2 test ecx, ecx jle short loc_6CBFE xor r12d, r12d xor r14d, r14d loc_6CB8D: mov esi, [rax+r14*4]; int mov rax, [rsp+58h+var_48] mov rbp, [rax] mov rax, [rbp+r12+8] mov r15d, [rax-4] mov rdi, r13; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level16getNumFVarValuesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumFVarValues(int) add eax, r15d mov [rsp+58h+var_50], eax mov rsi, [rbp+r12+8] cmp rsi, [rbp+r12+10h] jz short loc_6CBCA mov [rsi], eax add rsi, 4 mov [rbp+r12+8], rsi jmp short loc_6CBDA loc_6CBCA: add rbp, r12 mov rdi, rbp lea rdx, [rsp+58h+var_50] call __ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int &&) loc_6CBDA: inc r14 mov rax, [rbx+0A8h] mov rcx, [rbx+0B0h] sub rcx, rax shr rcx, 2 movsxd rcx, ecx add r12, 18h cmp r14, rcx jl short loc_6CB8D loc_6CBFE: mov rdx, [rsp+58h+var_38] inc rdx mov rax, [rbx] mov rcx, [rax+68h] sub rcx, [rax+60h] shr rcx, 3 imul ecx, 0AAAAAAABh movsxd rcx, ecx cmp rdx, rcx jl loc_6CB28 loc_6CC27: movzx r15d, word ptr [rax+8] mov ecx, r15d and ecx, 1 mov edx, [rbx+8] shr edx, 6 and edx, 0Fh xor ebp, ebp cmp cx, 1 sbb ebp, ebp or ebp, edx lea r14, [rbx+58h] movsxd rsi, dword ptr [rax+1Ch] mov rdi, r14 call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Far17PatchTableBuilder10PatchTupleESaIS4_EE7reserveEm; std::vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>::reserve(ulong) cmp dword ptr [rbx+20h], 0 jz short loc_6CC8D cmp dword ptr [rbx+20h], 0 jle loc_6CDF1 xor r14d, r14d loc_6CC68: mov rax, [rbx+18h] mov edx, [rax+r14*4]; int mov rdi, rbx; this xor esi, esi; int mov ecx, ebp; int call __ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder21findDescendantPatchesEiii; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::findDescendantPatches(int,int,int) inc r14 movsxd rax, dword ptr [rbx+20h] cmp r14, rax jl short loc_6CC68 jmp loc_6CDF1 loc_6CC8D: mov rax, [rbx] test r15b, 1 jnz loc_6CD6F mov rcx, [rax+68h] sub rcx, [rax+60h] shr rcx, 3 imul ecx, 0AAAAAAABh test ecx, ecx jle loc_6CDF1 xor r15d, r15d lea r12, [rsp+58h+var_50] loc_6CCBC: mov rax, [rax+30h] mov rax, [rax+r15*8] mov r13d, [rax] test r13d, r13d jle short loc_6CD46 xor ebp, ebp loc_6CCCE: mov rdi, [rbx+38h]; this mov esi, r15d; int mov edx, ebp; int call __ZNK10OpenSubdiv6v3_6_03Far12PatchBuilder12IsFaceAPatchEii; OpenSubdiv::v3_6_0::Far::PatchBuilder::IsFaceAPatch(int,int) test al, al jz short loc_6CD3F mov rdi, [rbx+38h]; this mov esi, r15d; int mov edx, ebp; int call __ZNK10OpenSubdiv6v3_6_03Far12PatchBuilder11IsFaceALeafEii; OpenSubdiv::v3_6_0::Far::PatchBuilder::IsFaceALeaf(int,int) test al, al jz short loc_6CD3F mov [rsp+58h+var_50], ebp mov [rsp+58h+var_4C], r15d mov rdi, r14 mov rsi, r12 call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Far17PatchTableBuilder10PatchTupleESaIS4_EE12emplace_backIJS4_EEERS4_DpOT_; std::vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>::emplace_back<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>(OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple &&) mov rdi, [rbx+38h]; this mov esi, r15d; int mov edx, ebp; int mov ecx, 0FFFFFFFFh; int call __ZNK10OpenSubdiv6v3_6_03Far12PatchBuilder14IsPatchRegularEiii; OpenSubdiv::v3_6_0::Far::PatchBuilder::IsPatchRegular(int,int,int) test al, al jz short loc_6CD22 inc dword ptr [rbx+70h] jmp short loc_6CD3F loc_6CD22: inc dword ptr [rbx+74h] cmp byte ptr [rbx+0C0h], 1 jnz short loc_6CD3F mov rdi, [rbx+0C8h]; this mov esi, r15d; int mov edx, ebp; int call __ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder19LegacyGregoryHelper12AddPatchFaceEii; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::AddPatchFace(int,int) loc_6CD3F: inc ebp cmp r13d, ebp jnz short loc_6CCCE loc_6CD46: inc r15 mov rax, [rbx] mov rcx, [rax+68h] sub rcx, [rax+60h] shr rcx, 3 imul ecx, 0AAAAAAABh movsxd rcx, ecx cmp r15, rcx jl loc_6CCBC jmp loc_6CDF1 loc_6CD6F: movsxd rcx, ebp mov rax, [rax+30h] mov rax, [rax+rcx*8] mov r13d, [rax] test r13d, r13d jle short loc_6CDF1 xor r15d, r15d lea r12, [rsp+58h+var_50] loc_6CD8A: mov rdi, [rbx+38h]; this mov esi, ebp; int mov edx, r15d; int call __ZNK10OpenSubdiv6v3_6_03Far12PatchBuilder12IsFaceAPatchEii; OpenSubdiv::v3_6_0::Far::PatchBuilder::IsFaceAPatch(int,int) test al, al jz short loc_6CDE9 mov [rsp+58h+var_50], r15d mov [rsp+58h+var_4C], ebp mov rdi, r14 mov rsi, r12 call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Far17PatchTableBuilder10PatchTupleESaIS4_EE12emplace_backIJS4_EEERS4_DpOT_; std::vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>::emplace_back<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>(OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple &&) mov rdi, [rbx+38h]; this mov esi, ebp; int mov edx, r15d; int mov ecx, 0FFFFFFFFh; int call __ZNK10OpenSubdiv6v3_6_03Far12PatchBuilder14IsPatchRegularEiii; OpenSubdiv::v3_6_0::Far::PatchBuilder::IsPatchRegular(int,int,int) test al, al jz short loc_6CDCC inc dword ptr [rbx+70h] jmp short loc_6CDE9 loc_6CDCC: inc dword ptr [rbx+74h] cmp byte ptr [rbx+0C0h], 1 jnz short loc_6CDE9 mov rdi, [rbx+0C8h]; this mov esi, ebp; int mov edx, r15d; int call __ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder19LegacyGregoryHelper12AddPatchFaceEii; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::AddPatchFace(int,int) loc_6CDE9: inc r15d cmp r13d, r15d jnz short loc_6CD8A loc_6CDF1: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long OpenSubdiv::v3_6_0::Far::PatchTableBuilder::identifyPatches( OpenSubdiv::v3_6_0::Far::PatchTableBuilder *this) { char *v2; // rdi _DWORD *v3; // rsi bool v4; // zf long long v5; // rsi long long v6; // r14 long long v7; // r13 long long v8; // rdi _DWORD *v9; // rsi long long v10; // rax long long v11; // rdx long long v12; // rax OpenSubdiv::v3_6_0::Vtr::internal::Level *v13; // r13 int *v14; // rsi int v15; // eax long long v16; // rax long long v17; // r12 long long v18; // r14 long long v19; // rbp int v20; // r15d int v21; // eax int *v22; // rsi __int16 v23; // r15 int v24; // ebp long long result; // rax long long v26; // r14 long long v27; // r15 int v28; // r13d int i; // ebp int v30; // r13d int v31; // r15d int v32; // [rsp+8h] [rbp-50h] BYREF int v33; // [rsp+Ch] [rbp-4Ch] long long *v34; // [rsp+10h] [rbp-48h] char *v35; // [rsp+18h] [rbp-40h] long long v36; // [rsp+20h] [rbp-38h] v2 = (char *)this + 120; v32 = 0; v3 = (_DWORD *)*((_QWORD *)this + 16); v4 = v3 == *((_DWORD **)this + 17); v35 = v2; if ( v4 ) { std::vector<int>::_M_realloc_insert<int>(v2, v3, &v32); } else { *v3 = 0; *((_QWORD *)this + 16) = v3 + 1; } v5 = (long long)(*((_QWORD *)this + 22) - *((_QWORD *)this + 21)) >> 2; v34 = (long long *)((char *)this + 144); std::vector<std::vector<int>>::resize((char *)this + 144, v5); if ( (int)((*((_QWORD *)this + 22) - *((_QWORD *)this + 21)) >> 2) > 0 ) { v6 = 0LL; v7 = 0LL; do { v8 = *v34 + v6; v32 = 0; v9 = *(_DWORD **)(v8 + 8); if ( v9 == *(_DWORD **)(v8 + 16) ) { std::vector<int>::_M_realloc_insert<int>(v8, v9, &v32); } else { *v9 = 0; *(_QWORD *)(v8 + 8) = v9 + 1; } ++v7; v6 += 24LL; } while ( v7 < (int)((*((_QWORD *)this + 22) - *((_QWORD *)this + 21)) >> 2) ); } v10 = *(_QWORD *)this; if ( (int)(-1431655765 * ((*(_QWORD *)(*(_QWORD *)this + 104LL) - *(_QWORD *)(*(_QWORD *)this + 96LL)) >> 3)) > 0 ) { v11 = 0LL; do { v12 = *(_QWORD *)(v10 + 48); v36 = v11; v13 = *(OpenSubdiv::v3_6_0::Vtr::internal::Level **)(v12 + 8 * v11); v14 = (int *)*((_QWORD *)this + 16); v15 = *(v14 - 1) + *((_DWORD *)v13 + 2); v32 = v15; if ( v14 == *((int **)this + 17) ) { std::vector<int>::_M_realloc_insert<int>(v35, v14, &v32); } else { *v14 = v15; *((_QWORD *)this + 16) = v14 + 1; } v16 = *((_QWORD *)this + 21); if ( (int)((unsigned long long)(*((_QWORD *)this + 22) - v16) >> 2) > 0 ) { v17 = 0LL; v18 = 0LL; do { v19 = *v34; v20 = *(_DWORD *)(*(_QWORD *)(*v34 + v17 + 8) - 4LL); v21 = v20 + OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumFVarValues(v13, *(_DWORD *)(v16 + 4 * v18)); v32 = v21; v22 = *(int **)(v19 + v17 + 8); if ( v22 == *(int **)(v19 + v17 + 16) ) { std::vector<int>::_M_realloc_insert<int>(v17 + v19, v22, &v32); } else { *v22 = v21; *(_QWORD *)(v19 + v17 + 8) = v22 + 1; } ++v18; v16 = *((_QWORD *)this + 21); v17 += 24LL; } while ( v18 < (int)((unsigned long long)(*((_QWORD *)this + 22) - v16) >> 2) ); } v11 = v36 + 1; v10 = *(_QWORD *)this; } while ( v36 + 1 < (int)(-1431655765 * ((*(_QWORD *)(*(_QWORD *)this + 104LL) - *(_QWORD *)(*(_QWORD *)this + 96LL)) >> 3)) ); } v23 = *(_WORD *)(v10 + 8); v24 = (v23 & 1) == 0 ? -1 : (*((_DWORD *)this + 2) >> 6) & 0xF; result = std::vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>::reserve( (char *)this + 88, *(int *)(v10 + 28)); if ( *((_DWORD *)this + 8) ) { if ( *((int *)this + 8) > 0 ) { v26 = 0LL; do { OpenSubdiv::v3_6_0::Far::PatchTableBuilder::findDescendantPatches( this, 0, *(_DWORD *)(*((_QWORD *)this + 3) + 4 * v26++), v24); result = *((int *)this + 8); } while ( v26 < result ); } } else { result = *(_QWORD *)this; if ( (v23 & 1) != 0 ) { result = *(_QWORD *)(*(_QWORD *)(result + 48) + 8LL * v24); v30 = *(_DWORD *)result; if ( *(int *)result > 0 ) { v31 = 0; do { result = OpenSubdiv::v3_6_0::Far::PatchBuilder::IsFaceAPatch( *((OpenSubdiv::v3_6_0::Far::PatchBuilder **)this + 7), v24, v31); if ( (_BYTE)result ) { v32 = v31; v33 = v24; std::vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>::emplace_back<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>( (char *)this + 88, &v32); result = OpenSubdiv::v3_6_0::Far::PatchBuilder::IsPatchRegular( *((OpenSubdiv::v3_6_0::Far::PatchBuilder **)this + 7), v24, v31, -1); if ( (_BYTE)result ) { ++*((_DWORD *)this + 28); } else { ++*((_DWORD *)this + 29); if ( *((_BYTE *)this + 192) == 1 ) result = OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::AddPatchFace( *((OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper **)this + 25), v24, v31); } } ++v31; } while ( v30 != v31 ); } } else if ( (int)(-1431655765 * ((*(_QWORD *)(result + 104) - *(_QWORD *)(result + 96)) >> 3)) > 0 ) { v27 = 0LL; do { v28 = **(_DWORD **)(*(_QWORD *)(result + 48) + 8 * v27); if ( v28 > 0 ) { for ( i = 0; i != v28; ++i ) { if ( (unsigned __int8)OpenSubdiv::v3_6_0::Far::PatchBuilder::IsFaceAPatch( *((OpenSubdiv::v3_6_0::Far::PatchBuilder **)this + 7), v27, i) && (unsigned __int8)OpenSubdiv::v3_6_0::Far::PatchBuilder::IsFaceALeaf( *((OpenSubdiv::v3_6_0::Far::PatchBuilder **)this + 7), v27, i) ) { v32 = i; v33 = v27; std::vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>::emplace_back<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>( (char *)this + 88, &v32); if ( (unsigned __int8)OpenSubdiv::v3_6_0::Far::PatchBuilder::IsPatchRegular( *((OpenSubdiv::v3_6_0::Far::PatchBuilder **)this + 7), v27, i, -1) ) { ++*((_DWORD *)this + 28); } else { ++*((_DWORD *)this + 29); if ( *((_BYTE *)this + 192) == 1 ) OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::AddPatchFace( *((OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper **)this + 25), v27, i); } } } } ++v27; result = *(_QWORD *)this; } while ( v27 < (int)(-1431655765 * ((*(_QWORD *)(*(_QWORD *)this + 104LL) - *(_QWORD *)(*(_QWORD *)this + 96LL)) >> 3)) ); } } return result; }
identifyPatches: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI ADD RDI,0x78 MOV dword ptr [RSP + 0x8],0x0 MOV RSI,qword ptr [RBX + 0x80] CMP RSI,qword ptr [RBX + 0x88] MOV qword ptr [RSP + 0x18],RDI JZ 0x0016ca63 MOV dword ptr [RSI],0x0 ADD RSI,0x4 MOV qword ptr [RBX + 0x80],RSI JMP 0x0016ca6d LAB_0016ca63: LEA RDX,[RSP + 0x8] CALL 0x0013b550 LAB_0016ca6d: LEA RDI,[RBX + 0x90] MOV RSI,qword ptr [RBX + 0xb0] SUB RSI,qword ptr [RBX + 0xa8] SAR RSI,0x2 MOV qword ptr [RSP + 0x10],RDI CALL 0x0013af00 MOV RAX,qword ptr [RBX + 0xb0] SUB RAX,qword ptr [RBX + 0xa8] SHR RAX,0x2 TEST EAX,EAX JLE 0x0016cb09 XOR R14D,R14D LEA R12,[RSP + 0x8] XOR R13D,R13D LAB_0016cab1: MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX] LEA RDI,[RAX + R14*0x1] MOV dword ptr [RSP + 0x8],0x0 MOV RSI,qword ptr [RAX + R14*0x1 + 0x8] CMP RSI,qword ptr [RAX + R14*0x1 + 0x10] JZ 0x0016cae1 MOV dword ptr [RSI],0x0 ADD RSI,0x4 MOV qword ptr [RDI + 0x8],RSI JMP 0x0016cae9 LAB_0016cae1: MOV RDX,R12 CALL 0x0013b550 LAB_0016cae9: INC R13 MOV RAX,qword ptr [RBX + 0xb0] SUB RAX,qword ptr [RBX + 0xa8] SHR RAX,0x2 CDQE ADD R14,0x18 CMP R13,RAX JL 0x0016cab1 LAB_0016cb09: MOV RAX,qword ptr [RBX] MOV RCX,qword ptr [RAX + 0x68] SUB RCX,qword ptr [RAX + 0x60] SHR RCX,0x3 IMUL ECX,ECX,-0x55555555 TEST ECX,ECX JLE 0x0016cc27 XOR EDX,EDX LAB_0016cb28: MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + 0x20],RDX MOV R13,qword ptr [RAX + RDX*0x8] MOV RSI,qword ptr [RBX + 0x80] MOV EAX,dword ptr [R13 + 0x8] ADD EAX,dword ptr [RSI + -0x4] MOV dword ptr [RSP + 0x8],EAX CMP RSI,qword ptr [RBX + 0x88] JZ 0x0016cb5f MOV dword ptr [RSI],EAX ADD RSI,0x4 MOV qword ptr [RBX + 0x80],RSI JMP 0x0016cb6e LAB_0016cb5f: MOV RDI,qword ptr [RSP + 0x18] LEA RDX,[RSP + 0x8] CALL 0x0013b550 LAB_0016cb6e: MOV RAX,qword ptr [RBX + 0xa8] MOV RCX,qword ptr [RBX + 0xb0] SUB RCX,RAX SHR RCX,0x2 TEST ECX,ECX JLE 0x0016cbfe XOR R12D,R12D XOR R14D,R14D LAB_0016cb8d: MOV ESI,dword ptr [RAX + R14*0x4] MOV RAX,qword ptr [RSP + 0x10] MOV RBP,qword ptr [RAX] MOV RAX,qword ptr [RBP + R12*0x1 + 0x8] MOV R15D,dword ptr [RAX + -0x4] MOV RDI,R13 CALL 0x0013ae80 ADD EAX,R15D MOV dword ptr [RSP + 0x8],EAX MOV RSI,qword ptr [RBP + R12*0x1 + 0x8] CMP RSI,qword ptr [RBP + R12*0x1 + 0x10] JZ 0x0016cbca MOV dword ptr [RSI],EAX ADD RSI,0x4 MOV qword ptr [RBP + R12*0x1 + 0x8],RSI JMP 0x0016cbda LAB_0016cbca: ADD RBP,R12 MOV RDI,RBP LEA RDX,[RSP + 0x8] CALL 0x0013b550 LAB_0016cbda: INC R14 MOV RAX,qword ptr [RBX + 0xa8] MOV RCX,qword ptr [RBX + 0xb0] SUB RCX,RAX SHR RCX,0x2 MOVSXD RCX,ECX ADD R12,0x18 CMP R14,RCX JL 0x0016cb8d LAB_0016cbfe: MOV RDX,qword ptr [RSP + 0x20] INC RDX MOV RAX,qword ptr [RBX] MOV RCX,qword ptr [RAX + 0x68] SUB RCX,qword ptr [RAX + 0x60] SHR RCX,0x3 IMUL ECX,ECX,-0x55555555 MOVSXD RCX,ECX CMP RDX,RCX JL 0x0016cb28 LAB_0016cc27: MOVZX R15D,word ptr [RAX + 0x8] MOV ECX,R15D AND ECX,0x1 MOV EDX,dword ptr [RBX + 0x8] SHR EDX,0x6 AND EDX,0xf XOR EBP,EBP CMP CX,0x1 SBB EBP,EBP OR EBP,EDX LEA R14,[RBX + 0x58] MOVSXD RSI,dword ptr [RAX + 0x1c] MOV RDI,R14 CALL 0x0013a8d0 CMP dword ptr [RBX + 0x20],0x0 JZ 0x0016cc8d CMP dword ptr [RBX + 0x20],0x0 JLE 0x0016cdf1 XOR R14D,R14D LAB_0016cc68: MOV RAX,qword ptr [RBX + 0x18] MOV EDX,dword ptr [RAX + R14*0x4] MOV RDI,RBX XOR ESI,ESI MOV ECX,EBP CALL 0x001389e0 INC R14 MOVSXD RAX,dword ptr [RBX + 0x20] CMP R14,RAX JL 0x0016cc68 JMP 0x0016cdf1 LAB_0016cc8d: MOV RAX,qword ptr [RBX] TEST R15B,0x1 JNZ 0x0016cd6f MOV RCX,qword ptr [RAX + 0x68] SUB RCX,qword ptr [RAX + 0x60] SHR RCX,0x3 IMUL ECX,ECX,-0x55555555 TEST ECX,ECX JLE 0x0016cdf1 XOR R15D,R15D LEA R12,[RSP + 0x8] LAB_0016ccbc: MOV RAX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RAX + R15*0x8] MOV R13D,dword ptr [RAX] TEST R13D,R13D JLE 0x0016cd46 XOR EBP,EBP LAB_0016ccce: MOV RDI,qword ptr [RBX + 0x38] MOV ESI,R15D MOV EDX,EBP CALL 0x0013a8c0 TEST AL,AL JZ 0x0016cd3f MOV RDI,qword ptr [RBX + 0x38] MOV ESI,R15D MOV EDX,EBP CALL 0x0013a520 TEST AL,AL JZ 0x0016cd3f MOV dword ptr [RSP + 0x8],EBP MOV dword ptr [RSP + 0xc],R15D MOV RDI,R14 MOV RSI,R12 CALL 0x00138830 MOV RDI,qword ptr [RBX + 0x38] MOV ESI,R15D MOV EDX,EBP MOV ECX,0xffffffff CALL 0x00139700 TEST AL,AL JZ 0x0016cd22 INC dword ptr [RBX + 0x70] JMP 0x0016cd3f LAB_0016cd22: INC dword ptr [RBX + 0x74] CMP byte ptr [RBX + 0xc0],0x1 JNZ 0x0016cd3f MOV RDI,qword ptr [RBX + 0xc8] MOV ESI,R15D MOV EDX,EBP CALL 0x0013a5b0 LAB_0016cd3f: INC EBP CMP R13D,EBP JNZ 0x0016ccce LAB_0016cd46: INC R15 MOV RAX,qword ptr [RBX] MOV RCX,qword ptr [RAX + 0x68] SUB RCX,qword ptr [RAX + 0x60] SHR RCX,0x3 IMUL ECX,ECX,-0x55555555 MOVSXD RCX,ECX CMP R15,RCX JL 0x0016ccbc JMP 0x0016cdf1 LAB_0016cd6f: MOVSXD RCX,EBP MOV RAX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RAX + RCX*0x8] MOV R13D,dword ptr [RAX] TEST R13D,R13D JLE 0x0016cdf1 XOR R15D,R15D LEA R12,[RSP + 0x8] LAB_0016cd8a: MOV RDI,qword ptr [RBX + 0x38] MOV ESI,EBP MOV EDX,R15D CALL 0x0013a8c0 TEST AL,AL JZ 0x0016cde9 MOV dword ptr [RSP + 0x8],R15D MOV dword ptr [RSP + 0xc],EBP MOV RDI,R14 MOV RSI,R12 CALL 0x00138830 MOV RDI,qword ptr [RBX + 0x38] MOV ESI,EBP MOV EDX,R15D MOV ECX,0xffffffff CALL 0x00139700 TEST AL,AL JZ 0x0016cdcc INC dword ptr [RBX + 0x70] JMP 0x0016cde9 LAB_0016cdcc: INC dword ptr [RBX + 0x74] CMP byte ptr [RBX + 0xc0],0x1 JNZ 0x0016cde9 MOV RDI,qword ptr [RBX + 0xc8] MOV ESI,EBP MOV EDX,R15D CALL 0x0013a5b0 LAB_0016cde9: INC R15D CMP R13D,R15D JNZ 0x0016cd8a LAB_0016cdf1: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* OpenSubdiv::v3_6_0::Far::PatchTableBuilder::identifyPatches() */ void __thiscall OpenSubdiv::v3_6_0::Far::PatchTableBuilder::identifyPatches(PatchTableBuilder *this) { vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple,std::allocator<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>> *this_00; ushort uVar1; int iVar2; int4 *puVar3; Level *this_01; int *piVar4; long lVar5; char cVar6; uint uVar7; int iVar8; long lVar9; long lVar10; long lVar11; int local_50; uint local_4c; vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> *local_48; vector<int,std::allocator<int>> *local_40; long local_38; local_40 = (vector<int,std::allocator<int>> *)(this + 0x78); local_50 = 0; puVar3 = *(int4 **)(this + 0x80); if (puVar3 == *(int4 **)(this + 0x88)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int>(local_40,puVar3,&local_50); } else { *puVar3 = 0; *(int4 **)(this + 0x80) = puVar3 + 1; } local_48 = (vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> *)(this + 0x90); std:: vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> ::resize(local_48,*(long *)(this + 0xb0) - *(long *)(this + 0xa8) >> 2); if (0 < (int)((ulong)(*(long *)(this + 0xb0) - *(long *)(this + 0xa8)) >> 2)) { lVar10 = 0; lVar9 = 0; do { lVar11 = *(long *)local_48; local_50 = 0; puVar3 = *(int4 **)(lVar11 + 8 + lVar10); if (puVar3 == *(int4 **)(lVar11 + 0x10 + lVar10)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int> ((vector<int,std::allocator<int>> *)(lVar11 + lVar10),puVar3,&local_50); } else { *puVar3 = 0; *(int4 **)((vector<int,std::allocator<int>> *)(lVar11 + lVar10) + 8) = puVar3 + 1; } lVar9 = lVar9 + 1; lVar10 = lVar10 + 0x18; } while (lVar9 < (int)((ulong)(*(long *)(this + 0xb0) - *(long *)(this + 0xa8)) >> 2)); } lVar9 = *(long *)this; if (0 < (int)((ulong)(*(long *)(lVar9 + 0x68) - *(long *)(lVar9 + 0x60)) >> 3) * -0x55555555) { lVar10 = 0; do { this_01 = *(Level **)(*(long *)(lVar9 + 0x30) + lVar10 * 8); piVar4 = *(int **)(this + 0x80); local_50 = *(int *)(this_01 + 8) + piVar4[-1]; local_38 = lVar10; if (piVar4 == *(int **)(this + 0x88)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int>(local_40,piVar4,&local_50); } else { *piVar4 = local_50; *(int **)(this + 0x80) = piVar4 + 1; } lVar9 = *(long *)(this + 0xa8); if (0 < (int)((ulong)(*(long *)(this + 0xb0) - lVar9) >> 2)) { lVar10 = 0; lVar11 = 0; do { lVar5 = *(long *)local_48; iVar2 = *(int *)(*(long *)(lVar5 + 8 + lVar10) + -4); local_50 = Vtr::internal::Level::getNumFVarValues(this_01,*(int *)(lVar9 + lVar11 * 4)); local_50 = local_50 + iVar2; piVar4 = *(int **)(lVar5 + 8 + lVar10); if (piVar4 == *(int **)(lVar5 + 0x10 + lVar10)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int> ((vector<int,std::allocator<int>> *)(lVar5 + lVar10),piVar4,&local_50); } else { *piVar4 = local_50; *(int **)(lVar5 + 8 + lVar10) = piVar4 + 1; } lVar11 = lVar11 + 1; lVar9 = *(long *)(this + 0xa8); lVar10 = lVar10 + 0x18; } while (lVar11 < (int)((ulong)(*(long *)(this + 0xb0) - lVar9) >> 2)); } lVar10 = local_38 + 1; lVar9 = *(long *)this; } while (lVar10 < (int)((ulong)(*(long *)(lVar9 + 0x68) - *(long *)(lVar9 + 0x60)) >> 3) * -0x55555555); } uVar1 = *(ushort *)(lVar9 + 8); uVar7 = -(uint)((uVar1 & 1) == 0) | *(uint *)(this + 8) >> 6 & 0xf; this_00 = (vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple,std::allocator<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>> *)(this + 0x58); std:: vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple,std::allocator<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>> ::reserve(this_00,(long)*(int *)(lVar9 + 0x1c)); if (*(int *)(this + 0x20) == 0) { lVar9 = *(long *)this; if ((uVar1 & 1) == 0) { if (0 < (int)((ulong)(*(long *)(lVar9 + 0x68) - *(long *)(lVar9 + 0x60)) >> 3) * -0x55555555) { lVar10 = 0; do { iVar2 = **(int **)(*(long *)(lVar9 + 0x30) + lVar10 * 8); if (0 < iVar2) { iVar8 = 0; do { uVar7 = (uint)lVar10; cVar6 = PatchBuilder::IsFaceAPatch(*(PatchBuilder **)(this + 0x38),uVar7,iVar8); if ((cVar6 != '\0') && (cVar6 = PatchBuilder::IsFaceALeaf(*(PatchBuilder **)(this + 0x38),uVar7,iVar8), cVar6 != '\0')) { local_50 = iVar8; local_4c = uVar7; std:: vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple,std::allocator<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>> ::emplace_back<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple> (this_00,(PatchTuple *)&local_50); cVar6 = PatchBuilder::IsPatchRegular(*(PatchBuilder **)(this + 0x38),uVar7,iVar8,-1) ; if (cVar6 == '\0') { *(int *)(this + 0x74) = *(int *)(this + 0x74) + 1; if (this[0xc0] == (PatchTableBuilder)0x1) { LegacyGregoryHelper::AddPatchFace (*(LegacyGregoryHelper **)(this + 200),uVar7,iVar8); } } else { *(int *)(this + 0x70) = *(int *)(this + 0x70) + 1; } } iVar8 = iVar8 + 1; } while (iVar2 != iVar8); } lVar10 = lVar10 + 1; lVar9 = *(long *)this; } while (lVar10 < (int)((ulong)(*(long *)(lVar9 + 0x68) - *(long *)(lVar9 + 0x60)) >> 3) * -0x55555555); } } else { iVar2 = **(int **)(*(long *)(lVar9 + 0x30) + (long)(int)uVar7 * 8); if (0 < iVar2) { iVar8 = 0; do { cVar6 = PatchBuilder::IsFaceAPatch(*(PatchBuilder **)(this + 0x38),uVar7,iVar8); if (cVar6 != '\0') { local_50 = iVar8; local_4c = uVar7; std:: vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple,std::allocator<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>> ::emplace_back<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple> (this_00,(PatchTuple *)&local_50); cVar6 = PatchBuilder::IsPatchRegular(*(PatchBuilder **)(this + 0x38),uVar7,iVar8,-1); if (cVar6 == '\0') { *(int *)(this + 0x74) = *(int *)(this + 0x74) + 1; if (this[0xc0] == (PatchTableBuilder)0x1) { LegacyGregoryHelper::AddPatchFace(*(LegacyGregoryHelper **)(this + 200),uVar7,iVar8) ; } } else { *(int *)(this + 0x70) = *(int *)(this + 0x70) + 1; } } iVar8 = iVar8 + 1; } while (iVar2 != iVar8); } } } else if (0 < *(int *)(this + 0x20)) { lVar9 = 0; do { findDescendantPatches(this,0,*(int *)(*(long *)(this + 0x18) + lVar9 * 4),uVar7); lVar9 = lVar9 + 1; } while (lVar9 < *(int *)(this + 0x20)); } return; }
51,073
OpenSubdiv::v3_6_0::Far::PatchTableBuilder::identifyPatches()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
void PatchTableBuilder::identifyPatches() { // // First initialize the offsets for all levels // _levelVertOffsets.push_back(0); _levelFVarValueOffsets.resize(_fvarChannelIndices.size()); for (int fvc=0; fvc<(int)_fvarChannelIndices.size(); ++fvc) { _levelFVarValueOffsets[fvc].push_back(0); } for (int levelIndex=0; levelIndex<_refiner.GetNumLevels(); ++levelIndex) { Level const & level = _refiner.getLevel(levelIndex); _levelVertOffsets.push_back( _levelVertOffsets.back() + level.getNumVertices()); for (int fvc=0; fvc<(int)_fvarChannelIndices.size(); ++fvc) { int refinerChannel = _fvarChannelIndices[fvc]; _levelFVarValueOffsets[fvc].push_back( _levelFVarValueOffsets[fvc].back() + level.getNumFVarValues(refinerChannel)); } } // // If a set of selected base faces is present, identify the patches // depth first. Otherwise search breadth first through the levels: // int uniformLevel = _refiner.IsUniform() ? _options.maxIsolationLevel : -1; _patches.reserve(_refiner.GetNumFacesTotal()); if (_selectedFaces.size()) { for (int i = 0; i < (int)_selectedFaces.size(); ++i) { findDescendantPatches(0, _selectedFaces[i], uniformLevel); } } else if (uniformLevel >= 0) { int numFaces = _refiner.getLevel(uniformLevel).getNumFaces(); for (int faceIndex = 0; faceIndex < numFaces; ++faceIndex) { if (_patchBuilder->IsFaceAPatch(uniformLevel, faceIndex)) { appendPatch(uniformLevel, faceIndex); } } } else { for (int levelIndex=0; levelIndex<_refiner.GetNumLevels(); ++levelIndex) { int numFaces = _refiner.getLevel(levelIndex).getNumFaces(); for (int faceIndex = 0; faceIndex < numFaces; ++faceIndex) { if (_patchBuilder->IsFaceAPatch(levelIndex, faceIndex) && _patchBuilder->IsFaceALeaf(levelIndex, faceIndex)) { appendPatch(levelIndex, faceIndex); } } } } }
O2
cpp
OpenSubdiv::v3_6_0::Far::PatchTableBuilder::identifyPatches(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx addq $0x78, %rdi leaq 0xc(%rsp), %r12 andl $0x0, (%r12) movq %rdi, 0x18(%rsp) movq %r12, %rsi callq 0x54910 leaq 0x90(%rbx), %rdi movq 0xb0(%rbx), %rsi subq 0xa8(%rbx), %rsi sarq $0x2, %rsi movq %rdi, 0x10(%rsp) callq 0x53ce0 xorl %r14d, %r14d xorl %r13d, %r13d movq 0xb0(%rbx), %rax subq 0xa8(%rbx), %rax shrq $0x2, %rax cltq cmpq %rax, %r13 jge 0x7ebc5 movq 0x10(%rsp), %rax movq (%rax), %rdi addq %r14, %rdi andl $0x0, 0xc(%rsp) movq %r12, %rsi callq 0x54910 incq %r13 addq $0x18, %r14 jmp 0x7eb8b xorl %edi, %edi movq (%rbx), %rcx movq 0x68(%rcx), %rax subq 0x60(%rcx), %rax cqto pushq $0x18 popq %rsi idivq %rsi cltq cmpq %rax, %rdi jge 0x7ec80 movq 0x30(%rcx), %rax movq %rdi, 0x20(%rsp) movq (%rax,%rdi,8), %r13 movq 0x80(%rbx), %rax movl 0x8(%r13), %ecx addl -0x4(%rax), %ecx movl %ecx, 0xc(%rsp) movq 0x18(%rsp), %rdi leaq 0xc(%rsp), %rsi callq 0x54910 xorl %r14d, %r14d xorl %r12d, %r12d movq 0xa8(%rbx), %rax movq 0xb0(%rbx), %rcx subq %rax, %rcx shrq $0x2, %rcx movslq %ecx, %rcx cmpq %rcx, %r12 jge 0x7ec73 movl (%rax,%r12,4), %esi movq 0x10(%rsp), %rax movq (%rax), %rbp movq 0x8(%rbp,%r14), %rax addq %r14, %rbp movl -0x4(%rax), %r15d movq %r13, %rdi callq 0x53c20 addl %r15d, %eax movl %eax, 0xc(%rsp) movq %rbp, %rdi leaq 0xc(%rsp), %rsi callq 0x54910 incq %r12 addq $0x18, %r14 jmp 0x7ec19 movq 0x20(%rsp), %rdi incq %rdi jmp 0x7ebc7 movzwl 0x8(%rcx), %r15d movl %r15d, %eax andl $0x1, %eax movl 0x8(%rbx), %r14d shrl $0x6, %r14d andl $0xf, %r14d xorl %ebp, %ebp cmpw $0x1, %ax sbbl %ebp, %ebp orl %r14d, %ebp leaq 0x58(%rbx), %rdi movslq 0x1c(%rcx), %rsi callq 0x532d0 movl 0x20(%rbx), %eax testl %eax, %eax je 0x7ece0 xorl %r14d, %r14d cltq cmpq %rax, %r14 jge 0x7ed9b movq 0x18(%rbx), %rax movl (%rax,%r14,4), %edx movq %rbx, %rdi xorl %esi, %esi movl %ebp, %ecx callq 0x4ffb0 incq %r14 movl 0x20(%rbx), %eax jmp 0x7ecb9 testb $0x1, %r15b jne 0x7ed5a xorl %r14d, %r14d movq (%rbx), %rcx movq 0x68(%rcx), %rax subq 0x60(%rcx), %rax cqto pushq $0x18 popq %rsi idivq %rsi cltq cmpq %rax, %r14 jge 0x7ed9b movq 0x30(%rcx), %rax movq (%rax,%r14,8), %rax movl (%rax), %r15d xorl %ebp, %ebp testl %r15d, %r15d cmovlel %ebp, %r15d cmpl %ebp, %r15d je 0x7ed55 movq 0x38(%rbx), %rdi movl %r14d, %esi movl %ebp, %edx callq 0x532a0 testb %al, %al je 0x7ed51 movq 0x38(%rbx), %rdi movl %r14d, %esi movl %ebp, %edx callq 0x52c20 testb %al, %al je 0x7ed51 movq %rbx, %rdi movl %r14d, %esi movl %ebp, %edx callq 0x51070 incl %ebp jmp 0x7ed1b incq %r14 jmp 0x7ece9 movq (%rbx), %rax movq 0x30(%rax), %rax movq (%rax,%r14,8), %rax movl (%rax), %r15d xorl %r14d, %r14d testl %r15d, %r15d cmovlel %r14d, %r15d cmpl %r14d, %r15d je 0x7ed9b movq 0x38(%rbx), %rdi movl %ebp, %esi movl %r14d, %edx callq 0x532a0 testb %al, %al je 0x7ed96 movq %rbx, %rdi movl %ebp, %esi movl %r14d, %edx callq 0x51070 incl %r14d jmp 0x7ed72 addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder15identifyPatchesEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi add rdi, 78h ; 'x' lea r12, [rsp+58h+var_4C] and dword ptr [r12], 0 mov [rsp+58h+var_40], rdi mov rsi, r12 call __ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_; std::vector<int>::emplace_back<int>(int &&) lea rdi, [rbx+90h] mov rsi, [rbx+0B0h] sub rsi, [rbx+0A8h] sar rsi, 2 mov [rsp+58h+var_48], rdi call __ZNSt6vectorIS_IiSaIiEESaIS1_EE6resizeEm; std::vector<std::vector<int>>::resize(ulong) xor r14d, r14d xor r13d, r13d loc_7EB8B: mov rax, [rbx+0B0h] sub rax, [rbx+0A8h] shr rax, 2 cdqe cmp r13, rax jge short loc_7EBC5 mov rax, [rsp+58h+var_48] mov rdi, [rax] add rdi, r14 and [rsp+58h+var_4C], 0 mov rsi, r12 call __ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_; std::vector<int>::emplace_back<int>(int &&) inc r13 add r14, 18h jmp short loc_7EB8B loc_7EBC5: xor edi, edi loc_7EBC7: mov rcx, [rbx] mov rax, [rcx+68h] sub rax, [rcx+60h] cqo push 18h pop rsi idiv rsi cdqe cmp rdi, rax jge loc_7EC80 mov rax, [rcx+30h] mov [rsp+58h+var_38], rdi mov r13, [rax+rdi*8] mov rax, [rbx+80h] mov ecx, [r13+8] add ecx, [rax-4] mov [rsp+58h+var_4C], ecx mov rdi, [rsp+58h+var_40] lea rsi, [rsp+58h+var_4C] call __ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_; std::vector<int>::emplace_back<int>(int &&) xor r14d, r14d xor r12d, r12d loc_7EC19: mov rax, [rbx+0A8h] mov rcx, [rbx+0B0h] sub rcx, rax shr rcx, 2 movsxd rcx, ecx cmp r12, rcx jge short loc_7EC73 mov esi, [rax+r12*4]; int mov rax, [rsp+58h+var_48] mov rbp, [rax] mov rax, [rbp+r14+8] add rbp, r14 mov r15d, [rax-4] mov rdi, r13; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level16getNumFVarValuesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumFVarValues(int) add eax, r15d mov [rsp+58h+var_4C], eax mov rdi, rbp lea rsi, [rsp+58h+var_4C] call __ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_; std::vector<int>::emplace_back<int>(int &&) inc r12 add r14, 18h jmp short loc_7EC19 loc_7EC73: mov rdi, [rsp+58h+var_38] inc rdi jmp loc_7EBC7 loc_7EC80: movzx r15d, word ptr [rcx+8] mov eax, r15d and eax, 1 mov r14d, [rbx+8] shr r14d, 6 and r14d, 0Fh xor ebp, ebp cmp ax, 1 sbb ebp, ebp or ebp, r14d lea rdi, [rbx+58h] movsxd rsi, dword ptr [rcx+1Ch] call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Far17PatchTableBuilder10PatchTupleESaIS4_EE7reserveEm; std::vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>::reserve(ulong) mov eax, [rbx+20h] test eax, eax jz short loc_7ECE0 xor r14d, r14d loc_7ECB9: cdqe cmp r14, rax jge loc_7ED9B mov rax, [rbx+18h] mov edx, [rax+r14*4]; int mov rdi, rbx; this xor esi, esi; int mov ecx, ebp; int call __ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder21findDescendantPatchesEiii; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::findDescendantPatches(int,int,int) inc r14 mov eax, [rbx+20h] jmp short loc_7ECB9 loc_7ECE0: test r15b, 1 jnz short loc_7ED5A xor r14d, r14d loc_7ECE9: mov rcx, [rbx] mov rax, [rcx+68h] sub rax, [rcx+60h] cqo push 18h pop rsi idiv rsi cdqe cmp r14, rax jge loc_7ED9B mov rax, [rcx+30h] mov rax, [rax+r14*8] mov r15d, [rax] xor ebp, ebp test r15d, r15d cmovle r15d, ebp loc_7ED1B: cmp r15d, ebp jz short loc_7ED55 mov rdi, [rbx+38h]; this mov esi, r14d; int mov edx, ebp; int call __ZNK10OpenSubdiv6v3_6_03Far12PatchBuilder12IsFaceAPatchEii; OpenSubdiv::v3_6_0::Far::PatchBuilder::IsFaceAPatch(int,int) test al, al jz short loc_7ED51 mov rdi, [rbx+38h]; this mov esi, r14d; int mov edx, ebp; int call __ZNK10OpenSubdiv6v3_6_03Far12PatchBuilder11IsFaceALeafEii; OpenSubdiv::v3_6_0::Far::PatchBuilder::IsFaceALeaf(int,int) test al, al jz short loc_7ED51 mov rdi, rbx; this mov esi, r14d; int mov edx, ebp; int call __ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder11appendPatchEii; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::appendPatch(int,int) loc_7ED51: inc ebp jmp short loc_7ED1B loc_7ED55: inc r14 jmp short loc_7ECE9 loc_7ED5A: mov rax, [rbx] mov rax, [rax+30h] mov rax, [rax+r14*8] mov r15d, [rax] xor r14d, r14d test r15d, r15d cmovle r15d, r14d loc_7ED72: cmp r15d, r14d jz short loc_7ED9B mov rdi, [rbx+38h]; this mov esi, ebp; int mov edx, r14d; int call __ZNK10OpenSubdiv6v3_6_03Far12PatchBuilder12IsFaceAPatchEii; OpenSubdiv::v3_6_0::Far::PatchBuilder::IsFaceAPatch(int,int) test al, al jz short loc_7ED96 mov rdi, rbx; this mov esi, ebp; int mov edx, r14d; int call __ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder11appendPatchEii; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::appendPatch(int,int) loc_7ED96: inc r14d jmp short loc_7ED72 loc_7ED9B: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long OpenSubdiv::v3_6_0::Far::PatchTableBuilder::identifyPatches( OpenSubdiv::v3_6_0::Far::PatchTableBuilder *this) { long long v2; // rsi long long v3; // r14 long long i; // r13 long long v5; // rdi long long j; // rdi long long v7; // rcx long long v8; // rax OpenSubdiv::v3_6_0::Vtr::internal::Level *v9; // r13 long long v10; // r14 long long k; // r12 long long v12; // rax long long v13; // rbp int v14; // r15d __int16 v15; // r15 long long v16; // r14 int v17; // ebp long long result; // rax long long m; // r14 long long n; // r14 int v21; // r15d int v22; // ebp int v23; // r15d int v24; // r14d int v25; // [rsp+Ch] [rbp-4Ch] BYREF _QWORD *v26; // [rsp+10h] [rbp-48h] char *v27; // [rsp+18h] [rbp-40h] long long v28; // [rsp+20h] [rbp-38h] v25 = 0; v27 = (char *)this + 120; std::vector<int>::emplace_back<int>((char *)this + 120, &v25); v2 = (long long)(*((_QWORD *)this + 22) - *((_QWORD *)this + 21)) >> 2; v26 = (_QWORD *)((char *)this + 144); std::vector<std::vector<int>>::resize((char *)this + 144, v2); v3 = 0LL; for ( i = 0LL; i < (int)((*((_QWORD *)this + 22) - *((_QWORD *)this + 21)) >> 2); ++i ) { v5 = v3 + *v26; v25 = 0; std::vector<int>::emplace_back<int>(v5, &v25); v3 += 24LL; } for ( j = 0LL; ; j = v28 + 1 ) { v7 = *(_QWORD *)this; if ( j >= (int)((*(_QWORD *)(*(_QWORD *)this + 104LL) - *(_QWORD *)(*(_QWORD *)this + 96LL)) / 24LL) ) break; v8 = *(_QWORD *)(v7 + 48); v28 = j; v9 = *(OpenSubdiv::v3_6_0::Vtr::internal::Level **)(v8 + 8 * j); v25 = *(_DWORD *)(*((_QWORD *)this + 16) - 4LL) + *((_DWORD *)v9 + 2); std::vector<int>::emplace_back<int>(v27, &v25); v10 = 0LL; for ( k = 0LL; ; ++k ) { v12 = *((_QWORD *)this + 21); if ( k >= (int)((unsigned long long)(*((_QWORD *)this + 22) - v12) >> 2) ) break; v13 = v10 + *v26; v14 = *(_DWORD *)(*(_QWORD *)(v13 + 8) - 4LL); v25 = v14 + OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumFVarValues(v9, *(_DWORD *)(v12 + 4 * k)); std::vector<int>::emplace_back<int>(v13, &v25); v10 += 24LL; } } v15 = *(_WORD *)(v7 + 8); v16 = (*((_DWORD *)this + 2) >> 6) & 0xF; v17 = (v15 & 1) == 0 ? -1 : v16; std::vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>::reserve( (char *)this + 88, *(int *)(v7 + 28), (*(_QWORD *)(*(_QWORD *)this + 104LL) - *(_QWORD *)(*(_QWORD *)this + 96LL)) % 24LL); LODWORD(result) = *((_DWORD *)this + 8); if ( (_DWORD)result ) { for ( m = 0LL; ; ++m ) { result = (int)result; if ( m >= (int)result ) break; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::findDescendantPatches( this, 0, *(_DWORD *)(*((_QWORD *)this + 3) + 4 * m), v17); LODWORD(result) = *((_DWORD *)this + 8); } } else if ( (v15 & 1) != 0 ) { result = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)this + 48LL) + 8 * v16); v23 = *(_DWORD *)result; v24 = 0; if ( *(int *)result <= 0 ) v23 = 0; while ( v23 != v24 ) { result = OpenSubdiv::v3_6_0::Far::PatchBuilder::IsFaceAPatch( *((OpenSubdiv::v3_6_0::Far::PatchBuilder **)this + 7), v17, v24); if ( (_BYTE)result ) result = OpenSubdiv::v3_6_0::Far::PatchTableBuilder::appendPatch(this, v17, v24); ++v24; } } else { for ( n = 0LL; ; ++n ) { result = (int)((*(_QWORD *)(*(_QWORD *)this + 104LL) - *(_QWORD *)(*(_QWORD *)this + 96LL)) / 24LL); if ( n >= result ) break; v21 = **(_DWORD **)(*(_QWORD *)(*(_QWORD *)this + 48LL) + 8 * n); v22 = 0; if ( v21 <= 0 ) v21 = 0; while ( v21 != v22 ) { if ( (unsigned __int8)OpenSubdiv::v3_6_0::Far::PatchBuilder::IsFaceAPatch( *((OpenSubdiv::v3_6_0::Far::PatchBuilder **)this + 7), n, v22) && (unsigned __int8)OpenSubdiv::v3_6_0::Far::PatchBuilder::IsFaceALeaf( *((OpenSubdiv::v3_6_0::Far::PatchBuilder **)this + 7), n, v22) ) { OpenSubdiv::v3_6_0::Far::PatchTableBuilder::appendPatch(this, n, v22); } ++v22; } } } return result; }
identifyPatches: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI ADD RDI,0x78 LEA R12,[RSP + 0xc] AND dword ptr [R12],0x0 MOV qword ptr [RSP + 0x18],RDI MOV RSI,R12 CALL 0x00154910 LEA RDI,[RBX + 0x90] MOV RSI,qword ptr [RBX + 0xb0] SUB RSI,qword ptr [RBX + 0xa8] SAR RSI,0x2 MOV qword ptr [RSP + 0x10],RDI CALL 0x00153ce0 XOR R14D,R14D XOR R13D,R13D LAB_0017eb8b: MOV RAX,qword ptr [RBX + 0xb0] SUB RAX,qword ptr [RBX + 0xa8] SHR RAX,0x2 CDQE CMP R13,RAX JGE 0x0017ebc5 MOV RAX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RAX] ADD RDI,R14 AND dword ptr [RSP + 0xc],0x0 MOV RSI,R12 CALL 0x00154910 INC R13 ADD R14,0x18 JMP 0x0017eb8b LAB_0017ebc5: XOR EDI,EDI LAB_0017ebc7: MOV RCX,qword ptr [RBX] MOV RAX,qword ptr [RCX + 0x68] SUB RAX,qword ptr [RCX + 0x60] CQO PUSH 0x18 POP RSI IDIV RSI CDQE CMP RDI,RAX JGE 0x0017ec80 MOV RAX,qword ptr [RCX + 0x30] MOV qword ptr [RSP + 0x20],RDI MOV R13,qword ptr [RAX + RDI*0x8] MOV RAX,qword ptr [RBX + 0x80] MOV ECX,dword ptr [R13 + 0x8] ADD ECX,dword ptr [RAX + -0x4] MOV dword ptr [RSP + 0xc],ECX MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[RSP + 0xc] CALL 0x00154910 XOR R14D,R14D XOR R12D,R12D LAB_0017ec19: MOV RAX,qword ptr [RBX + 0xa8] MOV RCX,qword ptr [RBX + 0xb0] SUB RCX,RAX SHR RCX,0x2 MOVSXD RCX,ECX CMP R12,RCX JGE 0x0017ec73 MOV ESI,dword ptr [RAX + R12*0x4] MOV RAX,qword ptr [RSP + 0x10] MOV RBP,qword ptr [RAX] MOV RAX,qword ptr [RBP + R14*0x1 + 0x8] ADD RBP,R14 MOV R15D,dword ptr [RAX + -0x4] MOV RDI,R13 CALL 0x00153c20 ADD EAX,R15D MOV dword ptr [RSP + 0xc],EAX MOV RDI,RBP LEA RSI,[RSP + 0xc] CALL 0x00154910 INC R12 ADD R14,0x18 JMP 0x0017ec19 LAB_0017ec73: MOV RDI,qword ptr [RSP + 0x20] INC RDI JMP 0x0017ebc7 LAB_0017ec80: MOVZX R15D,word ptr [RCX + 0x8] MOV EAX,R15D AND EAX,0x1 MOV R14D,dword ptr [RBX + 0x8] SHR R14D,0x6 AND R14D,0xf XOR EBP,EBP CMP AX,0x1 SBB EBP,EBP OR EBP,R14D LEA RDI,[RBX + 0x58] MOVSXD RSI,dword ptr [RCX + 0x1c] CALL 0x001532d0 MOV EAX,dword ptr [RBX + 0x20] TEST EAX,EAX JZ 0x0017ece0 XOR R14D,R14D LAB_0017ecb9: CDQE CMP R14,RAX JGE 0x0017ed9b MOV RAX,qword ptr [RBX + 0x18] MOV EDX,dword ptr [RAX + R14*0x4] MOV RDI,RBX XOR ESI,ESI MOV ECX,EBP CALL 0x0014ffb0 INC R14 MOV EAX,dword ptr [RBX + 0x20] JMP 0x0017ecb9 LAB_0017ece0: TEST R15B,0x1 JNZ 0x0017ed5a XOR R14D,R14D LAB_0017ece9: MOV RCX,qword ptr [RBX] MOV RAX,qword ptr [RCX + 0x68] SUB RAX,qword ptr [RCX + 0x60] CQO PUSH 0x18 POP RSI IDIV RSI CDQE CMP R14,RAX JGE 0x0017ed9b MOV RAX,qword ptr [RCX + 0x30] MOV RAX,qword ptr [RAX + R14*0x8] MOV R15D,dword ptr [RAX] XOR EBP,EBP TEST R15D,R15D CMOVLE R15D,EBP LAB_0017ed1b: CMP R15D,EBP JZ 0x0017ed55 MOV RDI,qword ptr [RBX + 0x38] MOV ESI,R14D MOV EDX,EBP CALL 0x001532a0 TEST AL,AL JZ 0x0017ed51 MOV RDI,qword ptr [RBX + 0x38] MOV ESI,R14D MOV EDX,EBP CALL 0x00152c20 TEST AL,AL JZ 0x0017ed51 MOV RDI,RBX MOV ESI,R14D MOV EDX,EBP CALL 0x00151070 LAB_0017ed51: INC EBP JMP 0x0017ed1b LAB_0017ed55: INC R14 JMP 0x0017ece9 LAB_0017ed5a: MOV RAX,qword ptr [RBX] MOV RAX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RAX + R14*0x8] MOV R15D,dword ptr [RAX] XOR R14D,R14D TEST R15D,R15D CMOVLE R15D,R14D LAB_0017ed72: CMP R15D,R14D JZ 0x0017ed9b MOV RDI,qword ptr [RBX + 0x38] MOV ESI,EBP MOV EDX,R14D CALL 0x001532a0 TEST AL,AL JZ 0x0017ed96 MOV RDI,RBX MOV ESI,EBP MOV EDX,R14D CALL 0x00151070 LAB_0017ed96: INC R14D JMP 0x0017ed72 LAB_0017ed9b: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* OpenSubdiv::v3_6_0::Far::PatchTableBuilder::identifyPatches() */ void __thiscall OpenSubdiv::v3_6_0::Far::PatchTableBuilder::identifyPatches(PatchTableBuilder *this) { ushort uVar1; Level *this_00; long lVar2; char cVar3; int iVar4; uint uVar5; int iVar6; long lVar7; uint uVar8; int iVar9; long lVar10; int local_4c; vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> *local_48; vector<int,std::allocator<int>> *local_40; long local_38; local_40 = (vector<int,std::allocator<int>> *)(this + 0x78); local_4c = 0; std::vector<int,std::allocator<int>>::emplace_back<int>(local_40,&local_4c); local_48 = (vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> *)(this + 0x90); std:: vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> ::resize(local_48,*(long *)(this + 0xb0) - *(long *)(this + 0xa8) >> 2); lVar10 = 0; for (lVar7 = 0; lVar7 < (int)((ulong)(*(long *)(this + 0xb0) - *(long *)(this + 0xa8)) >> 2); lVar7 = lVar7 + 1) { local_4c = 0; std::vector<int,std::allocator<int>>::emplace_back<int> ((vector<int,std::allocator<int>> *)(*(long *)local_48 + lVar10),&local_4c); lVar10 = lVar10 + 0x18; } lVar7 = 0; while( true ) { lVar10 = *(long *)this; if ((int)((*(long *)(lVar10 + 0x68) - *(long *)(lVar10 + 0x60)) / 0x18) <= lVar7) break; this_00 = *(Level **)(*(long *)(lVar10 + 0x30) + lVar7 * 8); local_4c = *(int *)(this_00 + 8) + *(int *)(*(long *)(this + 0x80) + -4); local_38 = lVar7; std::vector<int,std::allocator<int>>::emplace_back<int>(local_40,&local_4c); lVar10 = 0; for (lVar7 = 0; lVar7 < (int)((ulong)(*(long *)(this + 0xb0) - *(long *)(this + 0xa8)) >> 2); lVar7 = lVar7 + 1) { lVar2 = *(long *)local_48; iVar4 = *(int *)(*(long *)(lVar2 + 8 + lVar10) + -4); local_4c = Vtr::internal::Level::getNumFVarValues (this_00,*(int *)(*(long *)(this + 0xa8) + lVar7 * 4)); local_4c = local_4c + iVar4; std::vector<int,std::allocator<int>>::emplace_back<int> ((vector<int,std::allocator<int>> *)(lVar2 + lVar10),&local_4c); lVar10 = lVar10 + 0x18; } lVar7 = local_38 + 1; } uVar1 = *(ushort *)(lVar10 + 8); uVar8 = *(uint *)(this + 8) >> 6 & 0xf; uVar5 = -(uint)((uVar1 & 1) == 0) | uVar8; std:: vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple,std::allocator<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>> ::reserve((vector<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple,std::allocator<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::PatchTuple>> *)(this + 0x58),(long)*(int *)(lVar10 + 0x1c)); iVar4 = *(int *)(this + 0x20); if (iVar4 == 0) { if ((uVar1 & 1) == 0) { lVar7 = 0; while( true ) { lVar10 = *(long *)this; if ((int)((*(long *)(lVar10 + 0x68) - *(long *)(lVar10 + 0x60)) / 0x18) <= lVar7) break; iVar4 = **(int **)(*(long *)(lVar10 + 0x30) + lVar7 * 8); iVar6 = 0; if (iVar4 < 1) { iVar4 = 0; } for (; iVar4 != iVar6; iVar6 = iVar6 + 1) { iVar9 = (int)lVar7; cVar3 = PatchBuilder::IsFaceAPatch(*(PatchBuilder **)(this + 0x38),iVar9,iVar6); if (cVar3 != '\0') { cVar3 = PatchBuilder::IsFaceALeaf(*(PatchBuilder **)(this + 0x38),iVar9,iVar6); if (cVar3 != '\0') { appendPatch(this,iVar9,iVar6); } } } lVar7 = lVar7 + 1; } } else { iVar4 = **(int **)(*(long *)(*(long *)this + 0x30) + (ulong)uVar8 * 8); iVar6 = 0; if (iVar4 < 1) { iVar4 = 0; } for (; iVar4 != iVar6; iVar6 = iVar6 + 1) { cVar3 = PatchBuilder::IsFaceAPatch(*(PatchBuilder **)(this + 0x38),uVar5,iVar6); if (cVar3 != '\0') { appendPatch(this,uVar5,iVar6); } } } } else { for (lVar7 = 0; lVar7 < iVar4; lVar7 = lVar7 + 1) { findDescendantPatches(this,0,*(int *)(*(long *)(this + 0x18) + lVar7 * 4),uVar5); iVar4 = *(int *)(this + 0x20); } } return; }
51,074
mi_write_keypage
eloqsql/storage/myisam/mi_page.c
int _mi_write_keypage(register MI_INFO *info, register MI_KEYDEF *keyinfo, my_off_t page, int level, uchar *buff) { reg3 uint length; DBUG_ENTER("_mi_write_keypage"); #ifndef FAST /* Safety check */ if (page < info->s->base.keystart || page+keyinfo->block_length > info->state->key_file_length || (page & (MI_MIN_KEY_BLOCK_LENGTH-1))) { DBUG_PRINT("error",("Trying to write inside key status region: key_start: %lu length: %lu page: %lu", (long) info->s->base.keystart, (long) info->state->key_file_length, (long) page)); my_errno=EINVAL; DBUG_RETURN((-1)); } DBUG_PRINT("page",("write page at: %lu",(long) page)); DBUG_DUMP("buff",(uchar*) buff,mi_getint(buff)); #endif if ((length=keyinfo->block_length) > IO_SIZE*2 && info->state->key_file_length != page+length) length= ((mi_getint(buff)+IO_SIZE-1) & (uint) ~(IO_SIZE-1)); DBUG_RETURN((key_cache_write(info->s->key_cache, info->s->kfile, &info->s->dirty_part_map, page, level, (uchar*) buff, length, (uint) keyinfo->block_length, (int) ((info->lock_type != F_UNLCK) || info->s->delay_key_write)))); }
O3
c
mi_write_keypage: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq (%rdi), %r11 cmpq %rdx, 0x108(%r11) jbe 0x836dc callq 0xa13e6 movl $0x16, (%rax) movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0x83782 movq %r8, %r9 movl %ecx, %r8d movq %rdx, %rcx testl $0x3ff, %ecx # imm = 0x3FF jne 0x836c7 movzwl 0xe(%rsi), %r10d leaq (%r10,%rcx), %rax movq 0x8(%rdi), %rdx movq 0x20(%rdx), %rdx cmpq %rdx, %rax ja 0x836c7 cmpl $0x2001, %r10d # imm = 0x2001 setb %sil cmpq %rax, %rdx sete %al orb %sil, %al movl %r10d, %ebx jne 0x8373a movzbl 0x1(%r9), %eax movzbl (%r9), %edx andl $0x7f, %edx shll $0x8, %edx leal (%rax,%rdx), %ebx addl $0xfff, %ebx # imm = 0xFFF andl $0xf000, %ebx # imm = 0xF000 movq 0x278(%r11), %rax movl 0x350(%r11), %esi leaq 0x280(%r11), %rdx movl $0x1, %r14d cmpl $0x2, 0x1f4(%rdi) jne 0x8376d xorl %r14d, %r14d cmpb $0x0, 0x383(%r11) setne %r14b subq $0x8, %rsp movq %rax, %rdi pushq %r14 pushq %r10 pushq %rbx callq 0x97ffe addq $0x20, %rsp popq %rbx popq %r14 popq %rbp retq
_mi_write_keypage: push rbp mov rbp, rsp push r14 push rbx mov r11, [rdi] cmp [r11+108h], rdx jbe short loc_836DC loc_836C7: call _my_thread_var mov dword ptr [rax], 16h mov eax, 0FFFFFFFFh jmp loc_83782 loc_836DC: mov r9, r8 mov r8d, ecx mov rcx, rdx test ecx, 3FFh jnz short loc_836C7 movzx r10d, word ptr [rsi+0Eh] lea rax, [r10+rcx] mov rdx, [rdi+8] mov rdx, [rdx+20h] cmp rax, rdx ja short loc_836C7 cmp r10d, 2001h setb sil cmp rdx, rax setz al or al, sil mov ebx, r10d jnz short loc_8373A movzx eax, byte ptr [r9+1] movzx edx, byte ptr [r9] and edx, 7Fh shl edx, 8 lea ebx, [rax+rdx] add ebx, 0FFFh and ebx, 0F000h loc_8373A: mov rax, [r11+278h] mov esi, [r11+350h] lea rdx, [r11+280h] mov r14d, 1 cmp dword ptr [rdi+1F4h], 2 jnz short loc_8376D xor r14d, r14d cmp byte ptr [r11+383h], 0 setnz r14b loc_8376D: sub rsp, 8 mov rdi, rax push r14 push r10 push rbx call key_cache_write add rsp, 20h loc_83782: pop rbx pop r14 pop rbp retn
long long mi_write_keypage(long long *a1, long long a2, unsigned long long a3, unsigned int a4, _BYTE *a5) { long long v5; // r11 long long v8; // r8 long long v10; // r10 long long v11; // rax unsigned long long v12; // rdx long long v13; // rbx _BOOL8 v14; // r14 v5 = *a1; if ( *(_QWORD *)(*a1 + 264) > a3 || (v8 = a4, (a3 & 0x3FF) != 0) || (v10 = *(unsigned __int16 *)(a2 + 14), v11 = v10 + a3, v12 = *(_QWORD *)(a1[1] + 32), v10 + a3 > v12) ) { *(_DWORD *)my_thread_var(a1) = 22; return 0xFFFFFFFFLL; } else { v13 = *(unsigned __int16 *)(a2 + 14); if ( (unsigned int)v10 >= 0x2001 && v12 != v11 ) v13 = (unsigned __int16)((unsigned __int8)a5[1] + ((*a5 & 0x7F) << 8) + 4095) & 0xF000; v14 = 1LL; if ( *((_DWORD *)a1 + 125) == 2 ) v14 = *(_BYTE *)(v5 + 899) != 0; return key_cache_write(*(_QWORD *)(v5 + 632), *(unsigned int *)(v5 + 848), v5 + 640, a3, v8, a5, v13, v10, v14); } }
_mi_write_keypage: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R11,qword ptr [RDI] CMP qword ptr [R11 + 0x108],RDX JBE 0x001836dc LAB_001836c7: CALL 0x001a13e6 MOV dword ptr [RAX],0x16 MOV EAX,0xffffffff JMP 0x00183782 LAB_001836dc: MOV R9,R8 MOV R8D,ECX MOV RCX,RDX TEST ECX,0x3ff JNZ 0x001836c7 MOVZX R10D,word ptr [RSI + 0xe] LEA RAX,[R10 + RCX*0x1] MOV RDX,qword ptr [RDI + 0x8] MOV RDX,qword ptr [RDX + 0x20] CMP RAX,RDX JA 0x001836c7 CMP R10D,0x2001 SETC SIL CMP RDX,RAX SETZ AL OR AL,SIL MOV EBX,R10D JNZ 0x0018373a MOVZX EAX,byte ptr [R9 + 0x1] MOVZX EDX,byte ptr [R9] AND EDX,0x7f SHL EDX,0x8 LEA EBX,[RAX + RDX*0x1] ADD EBX,0xfff AND EBX,0xf000 LAB_0018373a: MOV RAX,qword ptr [R11 + 0x278] MOV ESI,dword ptr [R11 + 0x350] LEA RDX,[R11 + 0x280] MOV R14D,0x1 CMP dword ptr [RDI + 0x1f4],0x2 JNZ 0x0018376d XOR R14D,R14D CMP byte ptr [R11 + 0x383],0x0 SETNZ R14B LAB_0018376d: SUB RSP,0x8 MOV RDI,RAX PUSH R14 PUSH R10 PUSH RBX CALL 0x00197ffe ADD RSP,0x20 LAB_00183782: POP RBX POP R14 POP RBP RET
int8 _mi_write_keypage(long *param_1,long param_2,ulong param_3,int4 param_4,byte *param_5) { ulong uVar1; long lVar2; int4 *puVar3; int8 uVar4; ushort uVar5; ulong uVar6; bool bVar7; lVar2 = *param_1; if ((*(ulong *)(lVar2 + 0x108) <= param_3) && ((param_3 & 0x3ff) == 0)) { uVar5 = *(ushort *)(param_2 + 0xe); uVar6 = (ulong)uVar5; uVar1 = uVar6 + param_3; if (uVar1 <= *(ulong *)(param_1[1] + 0x20)) { if (*(ulong *)(param_1[1] + 0x20) != uVar1 && 0x2000 < uVar5) { uVar5 = (ushort)param_5[1] + (*param_5 & 0x7f) * 0x100 + 0xfff & 0xf000; } bVar7 = true; if (*(int *)((long)param_1 + 500) == 2) { bVar7 = *(char *)(lVar2 + 899) != '\0'; } uVar4 = key_cache_write(*(int8 *)(lVar2 + 0x278),*(int4 *)(lVar2 + 0x350), lVar2 + 0x280,param_3,param_4,param_5,uVar5,uVar6,bVar7); return uVar4; } } puVar3 = (int4 *)_my_thread_var(); *puVar3 = 0x16; return 0xffffffff; }
51,075
psi_rwlock_rdlock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_rwlock_rdlock(mysql_rwlock_t *that, const char *file, uint line) { PSI_rwlock_locker_state state; PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_rdwait) (&state, that->m_psi, PSI_RWLOCK_READLOCK, file, line); int result= rw_rdlock(&that->m_rwlock); if (locker) PSI_RWLOCK_CALL(end_rwlock_rdwait)(locker, result); return result; }
O0
c
psi_rwlock_rdlock: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) leaq 0x1c8e7e(%rip), %rax # 0x2bf0b8 movq (%rax), %rax movq 0x1a0(%rax), %rax movq -0x8(%rbp), %rcx movq 0x90(%rcx), %rsi movq -0x10(%rbp), %rcx movl -0x14(%rbp), %r8d leaq -0x48(%rbp), %rdi xorl %edx, %edx callq *%rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rdi callq 0xf9930 movl %eax, -0x54(%rbp) cmpq $0x0, -0x50(%rbp) je 0xf6290 leaq 0x1c8e3b(%rip), %rax # 0x2bf0b8 movq (%rax), %rax movq 0x1a8(%rax), %rax movq -0x50(%rbp), %rdi movl -0x54(%rbp), %esi callq *%rax movl -0x54(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopl (%rax)
psi_rwlock_rdlock: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx lea rax, PSI_server mov rax, [rax] mov rax, [rax+1A0h] mov rcx, [rbp+var_8] mov rsi, [rcx+90h] mov rcx, [rbp+var_10] mov r8d, [rbp+var_14] lea rdi, [rbp+var_48] xor edx, edx call rax mov [rbp+var_50], rax mov rdi, [rbp+var_8] call my_rw_rdlock mov [rbp+var_54], eax cmp [rbp+var_50], 0 jz short loc_F6290 lea rax, PSI_server mov rax, [rax] mov rax, [rax+1A8h] mov rdi, [rbp+var_50] mov esi, [rbp+var_54] call rax loc_F6290: mov eax, [rbp+var_54] add rsp, 60h pop rbp retn
long long psi_rwlock_rdlock(long long a1, long long a2, unsigned int a3) { unsigned int v4; // [rsp+Ch] [rbp-54h] long long v5; // [rsp+10h] [rbp-50h] _BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF unsigned int v7; // [rsp+4Ch] [rbp-14h] long long v8; // [rsp+50h] [rbp-10h] long long v9; // [rsp+58h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; v5 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[52])( v6, *(_QWORD *)(a1 + 144), 0LL, a2, a3); v4 = my_rw_rdlock(v9); if ( v5 ) ((void ( *)(long long, _QWORD))PSI_server[53])(v5, v4); return v4; }
psi_rwlock_rdlock: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX LEA RAX,[0x3bf0b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1a0] MOV RCX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RCX + 0x90] MOV RCX,qword ptr [RBP + -0x10] MOV R8D,dword ptr [RBP + -0x14] LEA RDI,[RBP + -0x48] XOR EDX,EDX CALL RAX MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x001f9930 MOV dword ptr [RBP + -0x54],EAX CMP qword ptr [RBP + -0x50],0x0 JZ 0x001f6290 LEA RAX,[0x3bf0b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1a8] MOV RDI,qword ptr [RBP + -0x50] MOV ESI,dword ptr [RBP + -0x54] CALL RAX LAB_001f6290: MOV EAX,dword ptr [RBP + -0x54] ADD RSP,0x60 POP RBP RET
int4 psi_rwlock_rdlock(long param_1,int8 param_2,int4 param_3) { int4 uVar1; long lVar2; int1 local_50 [52]; int4 local_1c; int8 local_18; long local_10; local_1c = param_3; local_18 = param_2; local_10 = param_1; lVar2 = (**(code **)(PSI_server + 0x1a0)) (local_50,*(int8 *)(param_1 + 0x90),0,param_2,param_3); uVar1 = my_rw_rdlock(local_10); if (lVar2 != 0) { (**(code **)(PSI_server + 0x1a8))(lVar2,uVar1); } return uVar1; }
51,076
JS_AddIntrinsicWeakRef
bluesky950520[P]quickjs/quickjs.c
void JS_AddIntrinsicWeakRef(JSContext *ctx) { JSRuntime *rt = ctx->rt; /* WeakRef */ if (!JS_IsRegisteredClass(rt, JS_CLASS_WEAK_REF)) { init_class_range(rt, js_weakref_class_def, JS_CLASS_WEAK_REF, countof(js_weakref_class_def)); } ctx->class_proto[JS_CLASS_WEAK_REF] = JS_NewObject(ctx); JS_SetPropertyFunctionList(ctx, ctx->class_proto[JS_CLASS_WEAK_REF], js_weakref_proto_funcs, countof(js_weakref_proto_funcs)); JS_NewGlobalCConstructor(ctx, "WeakRef", js_weakref_constructor, 1, ctx->class_proto[JS_CLASS_WEAK_REF]); /* FinalizationRegistry */ if (!JS_IsRegisteredClass(rt, JS_CLASS_FINALIZATION_REGISTRY)) { init_class_range(rt, js_finrec_class_def, JS_CLASS_FINALIZATION_REGISTRY, countof(js_finrec_class_def)); } ctx->class_proto[JS_CLASS_FINALIZATION_REGISTRY] = JS_NewObject(ctx); JS_SetPropertyFunctionList(ctx, ctx->class_proto[JS_CLASS_FINALIZATION_REGISTRY], js_finrec_proto_funcs, countof(js_finrec_proto_funcs)); JS_NewGlobalCConstructor(ctx, "FinalizationRegistry", js_finrec_constructor, 1, ctx->class_proto[JS_CLASS_FINALIZATION_REGISTRY]); }
O0
c
JS_AddIntrinsicWeakRef: subq $0x68, %rsp movq %rdi, 0x60(%rsp) movq 0x60(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0x58(%rsp) movq 0x58(%rsp), %rdi movl $0x3a, %esi callq 0x29230 cmpl $0x0, %eax jne 0x276f6 movq 0x58(%rsp), %rdi leaq 0x109e29(%rip), %rsi # 0x131510 movl $0x3a, %edx movl $0x1, %ecx callq 0x224f0 movq 0x60(%rsp), %rax movq 0x40(%rax), %rax movq %rax, 0x10(%rsp) movq 0x60(%rsp), %rdi callq 0x2a570 movq %rax, %rcx movq 0x10(%rsp), %rax movq %rcx, 0x48(%rsp) movq %rdx, 0x50(%rsp) movq 0x48(%rsp), %rcx movq %rcx, 0x3a0(%rax) movq 0x50(%rsp), %rcx movq %rcx, 0x3a8(%rax) movq 0x60(%rsp), %rdi movq 0x60(%rsp), %rax movq 0x40(%rax), %rax movq 0x3a0(%rax), %rsi movq 0x3a8(%rax), %rdx leaq 0x10e315(%rip), %rcx # 0x135a70 movl $0x2, %r8d callq 0x4cb00 movq 0x60(%rsp), %rdi movq 0x60(%rsp), %rax movq 0x40(%rax), %rax movq 0x3a0(%rax), %r8 movq 0x3a8(%rax), %r9 leaq 0xe676f(%rip), %rsi # 0x10def8 leaq 0x32e60(%rip), %rdx # 0x5a5f0 movl $0x1, %ecx callq 0x4e170 movq %rax, 0x38(%rsp) movq %rdx, 0x40(%rsp) movq 0x58(%rsp), %rdi movl $0x3b, %esi callq 0x29230 cmpl $0x0, %eax jne 0x277d3 movq 0x58(%rsp), %rdi leaq 0x109d6c(%rip), %rsi # 0x131530 movl $0x3b, %edx movl $0x1, %ecx callq 0x224f0 movq 0x60(%rsp), %rax movq 0x40(%rax), %rax movq %rax, 0x8(%rsp) movq 0x60(%rsp), %rdi callq 0x2a570 movq %rax, %rcx movq 0x8(%rsp), %rax movq %rcx, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq 0x28(%rsp), %rcx movq %rcx, 0x3b0(%rax) movq 0x30(%rsp), %rcx movq %rcx, 0x3b8(%rax) movq 0x60(%rsp), %rdi movq 0x60(%rsp), %rax movq 0x40(%rax), %rax movq 0x3b0(%rax), %rsi movq 0x3b8(%rax), %rdx leaq 0x10e278(%rip), %rcx # 0x135ab0 movl $0x3, %r8d callq 0x4cb00 movq 0x60(%rsp), %rdi movq 0x60(%rsp), %rax movq 0x40(%rax), %rax movq 0x3b0(%rax), %r8 movq 0x3b8(%rax), %r9 leaq 0xe669a(%rip), %rsi # 0x10df00 leaq 0x32f93(%rip), %rdx # 0x5a800 movl $0x1, %ecx callq 0x4e170 movq %rax, 0x18(%rsp) movq %rdx, 0x20(%rsp) addq $0x68, %rsp retq nopw %cs:(%rax,%rax)
JS_AddIntrinsicWeakRef: sub rsp, 68h mov [rsp+68h+var_8], rdi mov rax, [rsp+68h+var_8] mov rax, [rax+18h] mov [rsp+68h+var_10], rax mov rdi, [rsp+68h+var_10] mov esi, 3Ah ; ':' call JS_IsRegisteredClass cmp eax, 0 jnz short loc_276F6 mov rdi, [rsp+68h+var_10] lea rsi, js_weakref_class_def mov edx, 3Ah ; ':' mov ecx, 1 call init_class_range loc_276F6: mov rax, [rsp+68h+var_8] mov rax, [rax+40h] mov [rsp+68h+var_58], rax mov rdi, [rsp+68h+var_8] call JS_NewObject mov rcx, rax mov rax, [rsp+68h+var_58] mov [rsp+68h+var_20], rcx mov [rsp+68h+var_18], rdx mov rcx, [rsp+68h+var_20] mov [rax+3A0h], rcx mov rcx, [rsp+68h+var_18] mov [rax+3A8h], rcx mov rdi, [rsp+68h+var_8] mov rax, [rsp+68h+var_8] mov rax, [rax+40h] mov rsi, [rax+3A0h] mov rdx, [rax+3A8h] lea rcx, js_weakref_proto_funcs mov r8d, 2 call JS_SetPropertyFunctionList mov rdi, [rsp+68h+var_8] mov rax, [rsp+68h+var_8] mov rax, [rax+40h] mov r8, [rax+3A0h] mov r9, [rax+3A8h] lea rsi, aWeakref; "WeakRef" lea rdx, js_weakref_constructor mov ecx, 1 call JS_NewGlobalCConstructor mov [rsp+68h+var_30], rax mov [rsp+68h+var_28], rdx mov rdi, [rsp+68h+var_10] mov esi, 3Bh ; ';' call JS_IsRegisteredClass cmp eax, 0 jnz short loc_277D3 mov rdi, [rsp+68h+var_10] lea rsi, js_finrec_class_def mov edx, 3Bh ; ';' mov ecx, 1 call init_class_range loc_277D3: mov rax, [rsp+68h+var_8] mov rax, [rax+40h] mov [rsp+68h+var_60], rax mov rdi, [rsp+68h+var_8] call JS_NewObject mov rcx, rax mov rax, [rsp+68h+var_60] mov [rsp+68h+var_40], rcx mov [rsp+68h+var_38], rdx mov rcx, [rsp+68h+var_40] mov [rax+3B0h], rcx mov rcx, [rsp+68h+var_38] mov [rax+3B8h], rcx mov rdi, [rsp+68h+var_8] mov rax, [rsp+68h+var_8] mov rax, [rax+40h] mov rsi, [rax+3B0h] mov rdx, [rax+3B8h] lea rcx, js_finrec_proto_funcs mov r8d, 3 call JS_SetPropertyFunctionList mov rdi, [rsp+68h+var_8] mov rax, [rsp+68h+var_8] mov rax, [rax+40h] mov r8, [rax+3B0h] mov r9, [rax+3B8h] lea rsi, aFinalizationre; "FinalizationRegistry" lea rdx, js_finrec_constructor mov ecx, 1 call JS_NewGlobalCConstructor mov [rsp+68h+var_50], rax mov [rsp+68h+var_48], rdx add rsp, 68h retn
long long JS_AddIntrinsicWeakRef(long long a1) { long long v1; // rdx long long v2; // rdx long long v4; // [rsp+8h] [rbp-60h] long long v5; // [rsp+10h] [rbp-58h] long long v6; // [rsp+58h] [rbp-10h] v6 = *(_QWORD *)(a1 + 24); if ( !(unsigned int)JS_IsRegisteredClass(v6, 58LL) ) init_class_range(v6, (long long)&js_weakref_class_def, 58, 1); v5 = *(_QWORD *)(a1 + 64); *(_QWORD *)(v5 + 928) = JS_NewObject(a1); *(_QWORD *)(v5 + 936) = v1; JS_SetPropertyFunctionList( a1, *(_QWORD *)(*(_QWORD *)(a1 + 64) + 928LL), *(_QWORD *)(*(_QWORD *)(a1 + 64) + 936LL), &js_weakref_proto_funcs, 2LL); JS_NewGlobalCConstructor( a1, "WeakRef", js_weakref_constructor, 1LL, *(_QWORD *)(*(_QWORD *)(a1 + 64) + 928LL), *(_QWORD *)(*(_QWORD *)(a1 + 64) + 936LL)); if ( !(unsigned int)JS_IsRegisteredClass(v6, 59LL) ) init_class_range(v6, (long long)&js_finrec_class_def, 59, 1); v4 = *(_QWORD *)(a1 + 64); *(_QWORD *)(v4 + 944) = JS_NewObject(a1); *(_QWORD *)(v4 + 952) = v2; JS_SetPropertyFunctionList( a1, *(_QWORD *)(*(_QWORD *)(a1 + 64) + 944LL), *(_QWORD *)(*(_QWORD *)(a1 + 64) + 952LL), &js_finrec_proto_funcs, 3LL); return JS_NewGlobalCConstructor( a1, "FinalizationRegistry", js_finrec_constructor, 1LL, *(_QWORD *)(*(_QWORD *)(a1 + 64) + 944LL), *(_QWORD *)(*(_QWORD *)(a1 + 64) + 952LL)); }
JS_AddIntrinsicWeakRef: SUB RSP,0x68 MOV qword ptr [RSP + 0x60],RDI MOV RAX,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0x58] MOV ESI,0x3a CALL 0x00129230 CMP EAX,0x0 JNZ 0x001276f6 MOV RDI,qword ptr [RSP + 0x58] LEA RSI,[0x231510] MOV EDX,0x3a MOV ECX,0x1 CALL 0x001224f0 LAB_001276f6: MOV RAX,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RAX + 0x40] MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x60] CALL 0x0012a570 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x48],RCX MOV qword ptr [RSP + 0x50],RDX MOV RCX,qword ptr [RSP + 0x48] MOV qword ptr [RAX + 0x3a0],RCX MOV RCX,qword ptr [RSP + 0x50] MOV qword ptr [RAX + 0x3a8],RCX MOV RDI,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RAX + 0x40] MOV RSI,qword ptr [RAX + 0x3a0] MOV RDX,qword ptr [RAX + 0x3a8] LEA RCX,[0x235a70] MOV R8D,0x2 CALL 0x0014cb00 MOV RDI,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RAX + 0x40] MOV R8,qword ptr [RAX + 0x3a0] MOV R9,qword ptr [RAX + 0x3a8] LEA RSI,[0x20def8] LEA RDX,[0x15a5f0] MOV ECX,0x1 CALL 0x0014e170 MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],RDX MOV RDI,qword ptr [RSP + 0x58] MOV ESI,0x3b CALL 0x00129230 CMP EAX,0x0 JNZ 0x001277d3 MOV RDI,qword ptr [RSP + 0x58] LEA RSI,[0x231530] MOV EDX,0x3b MOV ECX,0x1 CALL 0x001224f0 LAB_001277d3: MOV RAX,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RAX + 0x40] MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x60] CALL 0x0012a570 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x28],RCX MOV qword ptr [RSP + 0x30],RDX MOV RCX,qword ptr [RSP + 0x28] MOV qword ptr [RAX + 0x3b0],RCX MOV RCX,qword ptr [RSP + 0x30] MOV qword ptr [RAX + 0x3b8],RCX MOV RDI,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RAX + 0x40] MOV RSI,qword ptr [RAX + 0x3b0] MOV RDX,qword ptr [RAX + 0x3b8] LEA RCX,[0x235ab0] MOV R8D,0x3 CALL 0x0014cb00 MOV RDI,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RAX + 0x40] MOV R8,qword ptr [RAX + 0x3b0] MOV R9,qword ptr [RAX + 0x3b8] LEA RSI,[0x20df00] LEA RDX,[0x15a800] MOV ECX,0x1 CALL 0x0014e170 MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RDX ADD RSP,0x68 RET
void JS_AddIntrinsicWeakRef(long param_1) { int8 uVar1; long lVar2; int iVar3; int1 auVar4 [16]; uVar1 = *(int8 *)(param_1 + 0x18); iVar3 = JS_IsRegisteredClass(uVar1,0x3a); if (iVar3 == 0) { init_class_range(uVar1,js_weakref_class_def,0x3a,1); } lVar2 = *(long *)(param_1 + 0x40); auVar4 = JS_NewObject(param_1); *(int1 (*) [16])(lVar2 + 0x3a0) = auVar4; JS_SetPropertyFunctionList (param_1,*(int8 *)(*(long *)(param_1 + 0x40) + 0x3a0), *(int8 *)(*(long *)(param_1 + 0x40) + 0x3a8),js_weakref_proto_funcs,2); JS_NewGlobalCConstructor (param_1,"WeakRef",js_weakref_constructor,1, *(int8 *)(*(long *)(param_1 + 0x40) + 0x3a0), *(int8 *)(*(long *)(param_1 + 0x40) + 0x3a8)); iVar3 = JS_IsRegisteredClass(uVar1,0x3b); if (iVar3 == 0) { init_class_range(uVar1,js_finrec_class_def,0x3b,1); } lVar2 = *(long *)(param_1 + 0x40); auVar4 = JS_NewObject(param_1); *(int1 (*) [16])(lVar2 + 0x3b0) = auVar4; JS_SetPropertyFunctionList (param_1,*(int8 *)(*(long *)(param_1 + 0x40) + 0x3b0), *(int8 *)(*(long *)(param_1 + 0x40) + 0x3b8),js_finrec_proto_funcs,3); JS_NewGlobalCConstructor (param_1,"FinalizationRegistry",js_finrec_constructor,1, *(int8 *)(*(long *)(param_1 + 0x40) + 0x3b0), *(int8 *)(*(long *)(param_1 + 0x40) + 0x3b8)); return; }
51,077
JS_AddIntrinsicWeakRef
bluesky950520[P]quickjs/quickjs.c
void JS_AddIntrinsicWeakRef(JSContext *ctx) { JSRuntime *rt = ctx->rt; /* WeakRef */ if (!JS_IsRegisteredClass(rt, JS_CLASS_WEAK_REF)) { init_class_range(rt, js_weakref_class_def, JS_CLASS_WEAK_REF, countof(js_weakref_class_def)); } ctx->class_proto[JS_CLASS_WEAK_REF] = JS_NewObject(ctx); JS_SetPropertyFunctionList(ctx, ctx->class_proto[JS_CLASS_WEAK_REF], js_weakref_proto_funcs, countof(js_weakref_proto_funcs)); JS_NewGlobalCConstructor(ctx, "WeakRef", js_weakref_constructor, 1, ctx->class_proto[JS_CLASS_WEAK_REF]); /* FinalizationRegistry */ if (!JS_IsRegisteredClass(rt, JS_CLASS_FINALIZATION_REGISTRY)) { init_class_range(rt, js_finrec_class_def, JS_CLASS_FINALIZATION_REGISTRY, countof(js_finrec_class_def)); } ctx->class_proto[JS_CLASS_FINALIZATION_REGISTRY] = JS_NewObject(ctx); JS_SetPropertyFunctionList(ctx, ctx->class_proto[JS_CLASS_FINALIZATION_REGISTRY], js_finrec_proto_funcs, countof(js_finrec_proto_funcs)); JS_NewGlobalCConstructor(ctx, "FinalizationRegistry", js_finrec_constructor, 1, ctx->class_proto[JS_CLASS_FINALIZATION_REGISTRY]); }
O1
c
JS_AddIntrinsicWeakRef: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movq 0x18(%rdi), %r14 cmpl $0x3b, 0x78(%r14) jb 0x1f78b movq 0x80(%r14), %rax cmpl $0x0, 0x910(%rax) jne 0x1f7a4 leaq 0xa8c8e(%rip), %rsi # 0xc8420 movq %r14, %rdi movl $0x3a, %edx movl $0x1, %ecx callq 0x1ce49 movq 0x40(%rbx), %r15 movq 0x10(%r15), %rsi movq 0x18(%r15), %rdx movq %rbx, %rdi movl $0x1, %ecx callq 0x20f05 movq %rax, 0x3a0(%r15) movq %rdx, 0x3a8(%r15) movq 0x40(%rbx), %rax movq 0x3a0(%rax), %rsi movq 0x3a8(%rax), %rdx leaq 0xad1ac(%rip), %rcx # 0xcc990 movq %rbx, %rdi movl $0x2, %r8d callq 0x32c67 movq 0x40(%rbx), %rax movq 0x3a0(%rax), %r15 movq 0x3a8(%rax), %r12 leaq 0x48(%rbx), %rbp movups 0x48(%rbx), %xmm0 movups %xmm0, (%rsp) leaq 0x1ab58(%rip), %rsi # 0x3a36f leaq 0x7f676(%rip), %r13 # 0x9ee94 movq %rbx, %rdi movq %r13, %rdx movl $0x1, %ecx movl $0x4, %r8d xorl %r9d, %r9d callq 0x21006 movq %rbx, %rdi movq %rax, %rsi movq %r13, %rcx movq %r15, %r8 movq %r12, %r9 callq 0x361aa cmpl $0x3c, 0x78(%r14) jb 0x1f862 movq 0x80(%r14), %rax cmpl $0x0, 0x938(%rax) jne 0x1f87b leaq 0xa8bd7(%rip), %rsi # 0xc8440 movq %r14, %rdi movl $0x3b, %edx movl $0x1, %ecx callq 0x1ce49 movq 0x40(%rbx), %r14 movq 0x10(%r14), %rsi movq 0x18(%r14), %rdx movq %rbx, %rdi movl $0x1, %ecx callq 0x20f05 movq %rax, 0x3b0(%r14) movq %rdx, 0x3b8(%r14) movq 0x40(%rbx), %rax movq 0x3b0(%rax), %rsi movq 0x3b8(%rax), %rdx leaq 0xad115(%rip), %rcx # 0xcc9d0 movq %rbx, %rdi movl $0x3, %r8d callq 0x32c67 movq 0x40(%rbx), %rax movq 0x3b0(%rax), %r14 movq 0x3b8(%rax), %r15 movups (%rbp), %xmm0 movups %xmm0, (%rsp) leaq 0x1abde(%rip), %rsi # 0x3a4c8 leaq 0x7f5ab(%rip), %r12 # 0x9ee9c movq %rbx, %rdi movq %r12, %rdx movl $0x1, %ecx movl $0x4, %r8d xorl %r9d, %r9d callq 0x21006 movq %rbx, %rdi movq %rax, %rsi movq %r12, %rcx movq %r14, %r8 movq %r15, %r9 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x361aa
JS_AddIntrinsicWeakRef: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rdi mov r14, [rdi+18h] cmp dword ptr [r14+78h], 3Bh ; ';' jb short loc_1F78B mov rax, [r14+80h] cmp dword ptr [rax+910h], 0 jnz short loc_1F7A4 loc_1F78B: lea rsi, js_weakref_class_def mov rdi, r14 mov edx, 3Ah ; ':' mov ecx, 1 call init_class_range loc_1F7A4: mov r15, [rbx+40h] mov rsi, [r15+10h] mov rdx, [r15+18h] mov rdi, rbx mov ecx, 1 call JS_NewObjectProtoClass mov [r15+3A0h], rax mov [r15+3A8h], rdx mov rax, [rbx+40h] mov rsi, [rax+3A0h] mov rdx, [rax+3A8h] lea rcx, js_weakref_proto_funcs mov rdi, rbx mov r8d, 2 call JS_SetPropertyFunctionList mov rax, [rbx+40h] mov r15, [rax+3A0h] mov r12, [rax+3A8h] lea rbp, [rbx+48h] movups xmm0, xmmword ptr [rbx+48h] movups [rsp+48h+var_48], xmm0 lea rsi, js_weakref_constructor lea r13, aWeakref; "WeakRef" mov rdi, rbx mov rdx, r13 mov ecx, 1 mov r8d, 4 xor r9d, r9d call JS_NewCFunction3 mov rdi, rbx mov rsi, rax mov rcx, r13 mov r8, r15 mov r9, r12 call JS_NewGlobalCConstructor2 cmp dword ptr [r14+78h], 3Ch ; '<' jb short loc_1F862 mov rax, [r14+80h] cmp dword ptr [rax+938h], 0 jnz short loc_1F87B loc_1F862: lea rsi, js_finrec_class_def mov rdi, r14 mov edx, 3Bh ; ';' mov ecx, 1 call init_class_range loc_1F87B: mov r14, [rbx+40h] mov rsi, [r14+10h] mov rdx, [r14+18h] mov rdi, rbx mov ecx, 1 call JS_NewObjectProtoClass mov [r14+3B0h], rax mov [r14+3B8h], rdx mov rax, [rbx+40h] mov rsi, [rax+3B0h] mov rdx, [rax+3B8h] lea rcx, js_finrec_proto_funcs mov rdi, rbx mov r8d, 3 call JS_SetPropertyFunctionList mov rax, [rbx+40h] mov r14, [rax+3B0h] mov r15, [rax+3B8h] movups xmm0, xmmword ptr [rbp+0] movups [rsp+48h+var_48], xmm0 lea rsi, js_finrec_constructor lea r12, aFinalizationre; "FinalizationRegistry" mov rdi, rbx mov rdx, r12 mov ecx, 1 mov r8d, 4 xor r9d, r9d call JS_NewCFunction3 mov rdi, rbx mov rsi, rax mov rcx, r12 mov r8, r14 mov r9, r15 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp JS_NewGlobalCConstructor2
long long JS_AddIntrinsicWeakRef(long long *a1) { long long v1; // r14 _QWORD *v2; // r15 long long v3; // rdx long long v4; // rax long long v5; // r15 long long v6; // r12 long long v7; // rax long long v8; // rdx _QWORD *v9; // r14 long long v10; // rdx long long v11; // rax long long v12; // r14 long long v13; // r15 long long v14; // rax long long v15; // rdx v1 = a1[3]; if ( *(_DWORD *)(v1 + 120) < 0x3Bu || !*(_DWORD *)(*(_QWORD *)(v1 + 128) + 2320LL) ) init_class_range(a1[3], (long long)&js_weakref_class_def, 0x3Au, 1); v2 = (_QWORD *)a1[8]; v2[116] = JS_NewObjectProtoClass(a1, v2[2], v2[3], 1LL); v2[117] = v3; JS_SetPropertyFunctionList(a1, *(_QWORD *)(a1[8] + 928), *(_QWORD *)(a1[8] + 936), &js_weakref_proto_funcs, 2LL); v4 = a1[8]; v5 = *(_QWORD *)(v4 + 928); v6 = *(_QWORD *)(v4 + 936); v7 = JS_NewCFunction3( (_DWORD)a1, (unsigned int)js_weakref_constructor, (unsigned int)"WeakRef", 1, 4, 0, a1[9], a1[10]); JS_NewGlobalCConstructor2(a1, v7, v8, "WeakRef", v5, v6); if ( *(_DWORD *)(v1 + 120) < 0x3Cu || !*(_DWORD *)(*(_QWORD *)(v1 + 128) + 2360LL) ) init_class_range(v1, (long long)&js_finrec_class_def, 0x3Bu, 1); v9 = (_QWORD *)a1[8]; v9[118] = JS_NewObjectProtoClass(a1, v9[2], v9[3], 1LL); v9[119] = v10; JS_SetPropertyFunctionList(a1, *(_QWORD *)(a1[8] + 944), *(_QWORD *)(a1[8] + 952), &js_finrec_proto_funcs, 3LL); v11 = a1[8]; v12 = *(_QWORD *)(v11 + 944); v13 = *(_QWORD *)(v11 + 952); v14 = JS_NewCFunction3( (_DWORD)a1, (unsigned int)js_finrec_constructor, (unsigned int)"FinalizationRegistry", 1, 4, 0, a1[9], a1[10]); return JS_NewGlobalCConstructor2(a1, v14, v15, "FinalizationRegistry", v12, v13); }
51,078
bitmap_copy
eloqsql/mysys/my_bitmap.c
void bitmap_copy(MY_BITMAP *map, const MY_BITMAP *map2) { my_bitmap_map *to= map->bitmap, *from= map2->bitmap, *end; DBUG_ASSERT(map->bitmap); DBUG_ASSERT(map2->bitmap); DBUG_ASSERT(map->n_bits == map2->n_bits); end= map->last_word_ptr; while (to <= end) *to++ = *from++; }
O0
c
bitmap_copy: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) jmp 0xefc54 jmp 0xefc56 jmp 0xefc58 jmp 0xefc5a jmp 0xefc5c movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax cmpq -0x28(%rbp), %rax ja 0xefc96 movq -0x20(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x20(%rbp) movl (%rax), %ecx movq -0x18(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x18(%rbp) movl %ecx, (%rax) jmp 0xefc68 popq %rbp retq nopl (%rax,%rax)
bitmap_copy: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_18], rax mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_20], rax jmp short $+2 loc_EFC54: jmp short $+2 loc_EFC56: jmp short $+2 loc_EFC58: jmp short $+2 loc_EFC5A: jmp short $+2 loc_EFC5C: mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_28], rax loc_EFC68: mov rax, [rbp+var_18] cmp rax, [rbp+var_28] ja short loc_EFC96 mov rax, [rbp+var_20] mov rcx, rax add rcx, 4 mov [rbp+var_20], rcx mov ecx, [rax] mov rax, [rbp+var_18] mov rdx, rax add rdx, 4 mov [rbp+var_18], rdx mov [rax], ecx jmp short loc_EFC68 loc_EFC96: pop rbp retn
_DWORD * bitmap_copy(_QWORD *a1, int **a2) { _DWORD *result; // rax int *v3; // rax int v4; // ecx _DWORD *v5; // rax unsigned long long v6; // [rsp+0h] [rbp-28h] int *v7; // [rsp+8h] [rbp-20h] _DWORD *v8; // [rsp+10h] [rbp-18h] v8 = (_DWORD *)*a1; v7 = *a2; v6 = a1[1]; while ( 1 ) { result = v8; if ( (unsigned long long)v8 > v6 ) break; v3 = v7++; v4 = *v3; v5 = v8++; *v5 = v4; } return result; }
bitmap_copy: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX JMP 0x001efc54 LAB_001efc54: JMP 0x001efc56 LAB_001efc56: JMP 0x001efc58 LAB_001efc58: JMP 0x001efc5a LAB_001efc5a: JMP 0x001efc5c LAB_001efc5c: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x28],RAX LAB_001efc68: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x28] JA 0x001efc96 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x20],RCX MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV RDX,RAX ADD RDX,0x4 MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RAX],ECX JMP 0x001efc68 LAB_001efc96: POP RBP RET
void bitmap_copy(int8 *param_1,int8 *param_2) { int4 *puVar1; int4 *local_28; int4 *local_20; puVar1 = (int4 *)param_1[1]; local_28 = (int4 *)*param_2; local_20 = (int4 *)*param_1; while (local_20 <= puVar1) { *local_20 = *local_28; local_28 = local_28 + 1; local_20 = local_20 + 1; } return; }
51,079
ftb_find_relevance_parse
eloqsql/storage/myisam/ft_boolean_search.c
static int ftb_find_relevance_parse(MYSQL_FTPARSER_PARAM *param, const char *doc, int len) { MY_FTB_FIND_PARAM *ftb_param= param->mysql_ftparam; FT_INFO *ftb= ftb_param->ftb; uchar *end= (uchar*) doc + len; FT_WORD w; while (ft_simple_get_word(ftb->charset, (uchar**) &doc, end, &w, TRUE)) param->mysql_add_word(param, (char*) w.pos, (int)w.len, 0); return(0); }
O3
c
ftb_find_relevance_parse: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq -0x30(%rbp), %rax movq %rsi, (%rax) movq 0x18(%rdi), %rcx movq (%rcx), %r13 movslq %edx, %r14 addq %rsi, %r14 movq 0x10(%r13), %rdi leaq -0x48(%rbp), %rcx movq %rax, %rsi movq %r14, %rdx movl $0x1, %r8d callq 0x739c9 testb %al, %al je 0x723ad leaq -0x30(%rbp), %r15 leaq -0x48(%rbp), %r12 movq -0x48(%rbp), %rsi movl -0x38(%rbp), %edx movq %rbx, %rdi xorl %ecx, %ecx callq *0x8(%rbx) movq 0x10(%r13), %rdi movq %r15, %rsi movq %r14, %rdx movq %r12, %rcx movl $0x1, %r8d callq 0x739c9 testb %al, %al jne 0x72382 xorl %eax, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ftb_find_relevance_parse: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi lea rax, [rbp+var_30] mov [rax], rsi mov rcx, [rdi+18h] mov r13, [rcx] movsxd r14, edx add r14, rsi mov rdi, [r13+10h] lea rcx, [rbp+var_48] mov rsi, rax mov rdx, r14 mov r8d, 1 call ft_simple_get_word test al, al jz short loc_723AD lea r15, [rbp+var_30] lea r12, [rbp+var_48] loc_72382: mov rsi, [rbp+var_48] mov edx, [rbp+var_38] mov rdi, rbx xor ecx, ecx call qword ptr [rbx+8] mov rdi, [r13+10h] mov rsi, r15 mov rdx, r14 mov rcx, r12 mov r8d, 1 call ft_simple_get_word test al, al jnz short loc_72382 loc_723AD: xor eax, eax add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ftb_find_relevance_parse(long long a1, long long a2, int a3) { long long v3; // r13 long long v4; // r14 _QWORD v6[2]; // [rsp+8h] [rbp-48h] BYREF unsigned int v7; // [rsp+18h] [rbp-38h] _QWORD v8[6]; // [rsp+20h] [rbp-30h] BYREF v8[0] = a2; v3 = **(_QWORD **)(a1 + 24); v4 = a2 + a3; while ( (unsigned __int8)ft_simple_get_word(*(_QWORD *)(v3 + 16), v8, v4, v6, 1LL) ) (*(void ( **)(long long, _QWORD, _QWORD, _QWORD))(a1 + 8))(a1, v6[0], v7, 0LL); return 0LL; }
ftb_find_relevance_parse: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA RAX,[RBP + -0x30] MOV qword ptr [RAX],RSI MOV RCX,qword ptr [RDI + 0x18] MOV R13,qword ptr [RCX] MOVSXD R14,EDX ADD R14,RSI MOV RDI,qword ptr [R13 + 0x10] LEA RCX,[RBP + -0x48] MOV RSI,RAX MOV RDX,R14 MOV R8D,0x1 CALL 0x001739c9 TEST AL,AL JZ 0x001723ad LEA R15,[RBP + -0x30] LEA R12,[RBP + -0x48] LAB_00172382: MOV RSI,qword ptr [RBP + -0x48] MOV EDX,dword ptr [RBP + -0x38] MOV RDI,RBX XOR ECX,ECX CALL qword ptr [RBX + 0x8] MOV RDI,qword ptr [R13 + 0x10] MOV RSI,R15 MOV RDX,R14 MOV RCX,R12 MOV R8D,0x1 CALL 0x001739c9 TEST AL,AL JNZ 0x00172382 LAB_001723ad: XOR EAX,EAX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 ftb_find_relevance_parse(long param_1,long param_2,int param_3) { long lVar1; char cVar2; int8 local_50 [2]; int4 local_40; long local_38; lVar1 = **(long **)(param_1 + 0x18); local_38 = param_2; cVar2 = ft_simple_get_word(*(int8 *)(lVar1 + 0x10),&local_38,param_3 + param_2,local_50,1); if (cVar2 != '\0') { do { (**(code **)(param_1 + 8))(param_1,local_50[0],local_40,0); cVar2 = ft_simple_get_word(*(int8 *)(lVar1 + 0x10),&local_38,param_3 + param_2,local_50, 1); } while (cVar2 != '\0'); } return 0; }
51,080
google::protobuf::DescriptorBuilder::AddWarning(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::Message const&, google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
void DescriptorBuilder::AddWarning( const std::string& element_name, const Message& descriptor, DescriptorPool::ErrorCollector::ErrorLocation location, const std::string& error) { if (error_collector_ == nullptr) { GOOGLE_LOG(WARNING) << filename_ << " " << element_name << ": " << error; } else { error_collector_->AddWarning(filename_, element_name, &descriptor, location, error); } }
O0
cpp
google::protobuf::DescriptorBuilder::AddWarning(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::Message const&, google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): subq $0xa8, %rsp movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movq %rdx, 0x90(%rsp) movl %ecx, 0x8c(%rsp) movq %r8, 0x80(%rsp) movq 0xa0(%rsp), %rax movq %rax, 0x30(%rsp) cmpq $0x0, 0x10(%rax) jne 0x4a5bb7 leaq 0x152c69(%rip), %rdx # 0x5f8756 leaq 0x48(%rsp), %rdi movq %rdi, 0x20(%rsp) movl $0x1, %esi movl $0x109d, %ecx # imm = 0x109D callq 0x3ef0b0 movq 0x30(%rsp), %rsi movq 0x20(%rsp), %rdi addq $0x38, %rsi callq 0x3ee9a0 movq %rax, 0x28(%rsp) jmp 0x4a5b20 movq 0x28(%rsp), %rdi leaq 0x1555bb(%rip), %rsi # 0x5fb0e7 callq 0x3ee970 movq %rax, 0x18(%rsp) jmp 0x4a5b38 movq 0x18(%rsp), %rdi movq 0x98(%rsp), %rsi callq 0x3ee9a0 movq %rax, 0x10(%rsp) jmp 0x4a5b51 movq 0x10(%rsp), %rdi leaq 0x14e028(%rip), %rsi # 0x5f3b85 callq 0x3ee970 movq %rax, 0x8(%rsp) jmp 0x4a5b69 movq 0x8(%rsp), %rdi movq 0x80(%rsp), %rsi callq 0x3ee9a0 movq %rax, (%rsp) jmp 0x4a5b81 movq (%rsp), %rsi leaq 0x3b(%rsp), %rdi callq 0x3eeb20 jmp 0x4a5b91 leaq 0x48(%rsp), %rdi callq 0x3ef0f0 jmp 0x4a5bea movq %rax, %rcx movl %edx, %eax movq %rcx, 0x40(%rsp) movl %eax, 0x3c(%rsp) leaq 0x48(%rsp), %rdi callq 0x3ef0f0 jmp 0x4a5bf2 movq 0x30(%rsp), %rsi movq 0x10(%rsi), %rdi addq $0x38, %rsi movq 0x98(%rsp), %rdx movq 0x90(%rsp), %rcx movl 0x8c(%rsp), %r8d movq 0x80(%rsp), %r9 movq (%rdi), %rax callq *0x18(%rax) addq $0xa8, %rsp retq movq 0x40(%rsp), %rdi callq 0x198ce0 nopl (%rax)
_ZN6google8protobuf17DescriptorBuilder10AddWarningERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_7MessageENS0_14DescriptorPool14ErrorCollector13ErrorLocationES9_: sub rsp, 0A8h mov [rsp+0A8h+var_8], rdi mov [rsp+0A8h+var_10], rsi mov [rsp+0A8h+var_18], rdx mov [rsp+0A8h+var_1C], ecx mov [rsp+0A8h+var_28], r8 mov rax, [rsp+0A8h+var_8] mov [rsp+0A8h+var_78], rax cmp qword ptr [rax+10h], 0 jnz loc_4A5BB7 lea rdx, aWorkspaceLlm4b_47; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+0A8h+var_60] mov [rsp+0A8h+var_88], rdi mov esi, 1 mov ecx, 109Dh call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rsi, [rsp+0A8h+var_78] mov rdi, [rsp+0A8h+var_88] add rsi, 38h ; '8' call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&) mov [rsp+0A8h+var_80], rax jmp short $+2 loc_4A5B20: mov rdi, [rsp+0A8h+var_80] lea rsi, aParsingAttempt+12h; " " call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0A8h+var_90], rax jmp short $+2 loc_4A5B38: mov rdi, [rsp+0A8h+var_90] mov rsi, [rsp+0A8h+var_10] call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&) mov [rsp+0A8h+var_98], rax jmp short $+2 loc_4A5B51: mov rdi, [rsp+0A8h+var_98] lea rsi, aField+0Fh; ": " call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0A8h+var_A0], rax jmp short $+2 loc_4A5B69: mov rdi, [rsp+0A8h+var_A0] mov rsi, [rsp+0A8h+var_28] call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&) mov [rsp+0A8h+var_A8], rax jmp short $+2 loc_4A5B81: mov rsi, [rsp+0A8h+var_A8] lea rdi, [rsp+0A8h+var_6D] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_4A5B91: lea rdi, [rsp+0A8h+var_60]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() jmp short loc_4A5BEA mov rcx, rax mov eax, edx mov [rsp+arg_38], rcx mov [rsp+arg_34], eax lea rdi, [rsp+arg_40]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() jmp short loc_4A5BF2 loc_4A5BB7: mov rsi, [rsp+0A8h+var_78] mov rdi, [rsi+10h] add rsi, 38h ; '8' mov rdx, [rsp+0A8h+var_10] mov rcx, [rsp+0A8h+var_18] mov r8d, [rsp+0A8h+var_1C] mov r9, [rsp+0A8h+var_28] mov rax, [rdi] call qword ptr [rax+18h] loc_4A5BEA: add rsp, 0A8h retn loc_4A5BF2: mov rdi, [rsp+arg_38] call __Unwind_Resume
void google::protobuf::DescriptorBuilder::AddWarning( long long a1, long long a2, long long a3, unsigned int a4, long long a5) { google::protobuf::internal::LogMessage *v5; // [rsp+0h] [rbp-A8h] long long v6; // [rsp+8h] [rbp-A0h] long long v7; // [rsp+10h] [rbp-98h] long long v8; // [rsp+18h] [rbp-90h] long long v9; // [rsp+28h] [rbp-80h] _BYTE v10[13]; // [rsp+3Bh] [rbp-6Dh] BYREF _BYTE v11[56]; // [rsp+48h] [rbp-60h] BYREF long long v12; // [rsp+80h] [rbp-28h] unsigned int v13; // [rsp+8Ch] [rbp-1Ch] long long v14; // [rsp+90h] [rbp-18h] long long v15; // [rsp+98h] [rbp-10h] long long v16; // [rsp+A0h] [rbp-8h] v16 = a1; v15 = a2; v14 = a3; v13 = a4; v12 = a5; if ( *(_QWORD *)(a1 + 16) ) { (*(void ( **)(_QWORD, long long, long long, long long, _QWORD, long long))(**(_QWORD **)(a1 + 16) + 24LL))( *(_QWORD *)(a1 + 16), a1 + 56, v15, v14, v13, v12); } else { google::protobuf::internal::LogMessage::LogMessage( (long long)v11, 1, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc", 4253); v9 = google::protobuf::internal::LogMessage::operator<<((long long)v11, a1 + 56); v8 = google::protobuf::internal::LogMessage::operator<<(v9, (long long)" "); v7 = google::protobuf::internal::LogMessage::operator<<(v8, v15); v6 = google::protobuf::internal::LogMessage::operator<<(v7, (long long)": "); v5 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v6, v12); google::protobuf::internal::LogFinisher::operator=((long long)v10, v5); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v11); } }
__gthread_yield: PUSH RAX CALL 0x002a6000 POP RCX RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* __gthread_yield() */ void __gthread_yield(void) { sched_yield(); return; }
51,081
google::protobuf::DescriptorBuilder::AddWarning(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::Message const&, google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
void DescriptorBuilder::AddWarning( const std::string& element_name, const Message& descriptor, DescriptorPool::ErrorCollector::ErrorLocation location, const std::string& error) { if (error_collector_ == nullptr) { GOOGLE_LOG(WARNING) << filename_ << " " << element_name << ": " << error; } else { error_collector_->AddWarning(filename_, element_name, &descriptor, location, error); } }
O3
cpp
google::protobuf::DescriptorBuilder::AddWarning(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::Message const&, google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x48, %rsp movq %r8, %rbx movq %rsi, %r14 movq %rdi, %r15 movq 0x10(%rdi), %rdi testq %rdi, %rdi je 0x183270 movl %ecx, %r8d movq %rdx, %rcx addq $0x38, %r15 movq (%rdi), %rax movq 0x18(%rax), %rax movq %r15, %rsi movq %r14, %rdx movq %rbx, %r9 addq $0x48, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmpq *%rax leaq 0x8093f(%rip), %rdx # 0x203bb6 leaq 0x10(%rsp), %r12 movq %r12, %rdi movl $0x1, %esi movl $0x109d, %ecx # imm = 0x109D callq 0x13e1e6 addq $0x38, %r15 movq %r12, %rdi movq %r15, %rsi callq 0x13dcf6 leaq 0x83158(%rip), %rsi # 0x2063fc movq %rax, %rdi callq 0x13dce4 movq %rax, %rdi movq %r14, %rsi callq 0x13dcf6 leaq 0x7d7ac(%rip), %rsi # 0x200a6a movq %rax, %rdi callq 0x13dce4 movq %rax, %rdi movq %rbx, %rsi callq 0x13dcf6 leaq 0xf(%rsp), %rdi movq %rax, %rsi callq 0x13ddbe leaq 0x10(%rsp), %rdi callq 0x13e204 addq $0x48, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq jmp 0x1832f6 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x13e204 movq %rbx, %rdi callq 0x83b70 nop
_ZN6google8protobuf17DescriptorBuilder10AddWarningERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_7MessageENS0_14DescriptorPool14ErrorCollector13ErrorLocationES9_: push r15 push r14 push r12 push rbx sub rsp, 48h mov rbx, r8 mov r14, rsi mov r15, rdi mov rdi, [rdi+10h] test rdi, rdi jz short loc_183270 mov r8d, ecx mov rcx, rdx add r15, 38h ; '8' mov rax, [rdi] mov rax, [rax+18h] mov rsi, r15 mov rdx, r14 mov r9, rbx add rsp, 48h pop rbx pop r12 pop r14 pop r15 jmp rax loc_183270: lea rdx, aWorkspaceLlm4b_41; "/workspace/llm4binary/github2025/aimrt_"... lea r12, [rsp+68h+var_58] mov rdi, r12 mov esi, 1 mov ecx, 109Dh call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) add r15, 38h ; '8' mov rdi, r12 mov rsi, r15 call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&) lea rsi, aParsingAttempt+12h; " " mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov rdi, rax mov rsi, r14 call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&) lea rsi, aField+0Fh; ": " mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov rdi, rax mov rsi, rbx call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&) lea rdi, [rsp+68h+var_59] mov rsi, rax call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) lea rdi, [rsp+68h+var_58]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() add rsp, 48h pop rbx pop r12 pop r14 pop r15 retn jmp short $+2 loc_1832F6: mov rbx, rax lea rdi, [rsp+arg_8]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() mov rdi, rbx call __Unwind_Resume
void google::protobuf::DescriptorBuilder::AddWarning( long long a1, _QWORD *a2, long long a3, unsigned int a4, _QWORD *a5) { long long v7; // rdi long long v8; // rax long long v9; // rax long long v10; // rax long long v11; // rax google::protobuf::internal::LogMessage *v12; // rax char v13; // [rsp+Fh] [rbp-59h] BYREF _BYTE v14[88]; // [rsp+10h] [rbp-58h] BYREF v7 = *(_QWORD *)(a1 + 16); if ( v7 ) { (*(void ( **)(long long, long long, _QWORD *, long long, _QWORD, _QWORD *))(*(_QWORD *)v7 + 24LL))( v7, a1 + 56, a2, a3, a4, a5); } else { google::protobuf::internal::LogMessage::LogMessage( (long long)v14, 1, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc", 4253); v8 = google::protobuf::internal::LogMessage::operator<<((long long)v14, (_QWORD *)(a1 + 56)); v9 = google::protobuf::internal::LogMessage::operator<<(v8, (long long)" "); v10 = google::protobuf::internal::LogMessage::operator<<(v9, a2); v11 = google::protobuf::internal::LogMessage::operator<<(v10, (long long)": "); v12 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v11, a5); google::protobuf::internal::LogFinisher::operator=((long long)&v13, v12); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v14); } }
51,082
do_start_slave_sql
eloqsql/client/mysqldump.c
static int do_start_slave_sql(MYSQL *mysql_con) { MYSQL_RES *slave; MYSQL_ROW row; int error= 0; DBUG_ENTER("do_start_slave_sql"); /* We need to check if the slave sql is stopped in the first place */ if (mysql_query_with_error_report(mysql_con, &slave, multi_source ? "SHOW ALL SLAVES STATUS" : "SHOW SLAVE STATUS")) DBUG_RETURN(1); while ((row= mysql_fetch_row(slave))) { DBUG_PRINT("info", ("Connection: '%s' status: '%s'", multi_source ? row[0] : "", row[11 + multi_source])); if (row[11 + multi_source]) { /* if SLAVE SQL is not running, we don't start it */ if (strcmp(row[11 + multi_source], "Yes")) { char query[160]; if (multi_source) sprintf(query, "START SLAVE '%.80s'", row[0]); else strmov(query, "START SLAVE"); if (mysql_query_with_error_report(mysql_con, 0, query)) { fprintf(stderr, "%s: Error: Unable to start slave '%s'\n", my_progname_short, multi_source ? row[0] : ""); error= 1; } } } } mysql_free_result(slave); DBUG_RETURN(error); }
O0
c
do_start_slave_sql: pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0xc0(%rbp) movl $0x0, -0xd4(%rbp) movq -0xc0(%rbp), %rdi movl 0x3c4e2a(%rip), %ecx # 0x401620 leaq 0x9f047(%rip), %rdx # 0xdb844 leaq 0x9f029(%rip), %rax # 0xdb82d cmpl $0x0, %ecx cmovneq %rax, %rdx leaq -0xc8(%rbp), %rsi callq 0x39350 cmpl $0x0, %eax je 0x3c82d jmp 0x3c81e movl $0x1, -0xb4(%rbp) jmp 0x3c98d jmp 0x3c82f movq -0xc8(%rbp), %rdi callq 0x51800 movq %rax, -0xd0(%rbp) cmpq $0x0, %rax je 0x3c975 jmp 0x3c84e jmp 0x3c850 movq -0xd0(%rbp), %rax movl 0x3c4dc3(%rip), %ecx # 0x401620 addl $0xb, %ecx movl %ecx, %ecx cmpq $0x0, (%rax,%rcx,8) je 0x3c970 movq -0xd0(%rbp), %rax movl 0x3c4da6(%rip), %ecx # 0x401620 addl $0xb, %ecx movl %ecx, %ecx movq (%rax,%rcx,8), %rdi leaq 0xa2aa7(%rip), %rsi # 0xdf331 callq 0x38880 cmpl $0x0, %eax je 0x3c96e cmpl $0x0, 0x3c4d81(%rip) # 0x401620 je 0x3c8c2 leaq -0xb0(%rbp), %rdi movq -0xd0(%rbp), %rax movq (%rax), %rdx leaq 0xa2a7c(%rip), %rsi # 0xdf335 movb $0x0, %al callq 0x38a10 jmp 0x3c8d5 leaq -0xb0(%rbp), %rdi leaq 0xa2a79(%rip), %rsi # 0xdf349 callq 0x389c0 movq -0xc0(%rbp), %rdi leaq -0xb0(%rbp), %rdx xorl %eax, %eax movl %eax, %esi callq 0x39350 cmpl $0x0, %eax je 0x3c96c movq 0x2086e8(%rip), %rax # 0x244fe0 movq (%rax), %rax movq %rax, -0xe8(%rbp) leaq 0x3d02cf(%rip), %rax # 0x40cbd8 movq (%rax), %rax movq %rax, -0xe0(%rbp) cmpl $0x0, 0x3c4d06(%rip) # 0x401620 je 0x3c92f movq -0xd0(%rbp), %rax movq (%rax), %rax movq %rax, -0xf0(%rbp) jmp 0x3c93f leaq 0xa0216(%rip), %rax # 0xdcb4c movq %rax, -0xf0(%rbp) jmp 0x3c93f movq -0xe0(%rbp), %rdx movq -0xe8(%rbp), %rdi movq -0xf0(%rbp), %rcx leaq 0xa29fa(%rip), %rsi # 0xdf355 movb $0x0, %al callq 0x381d0 movl $0x1, -0xd4(%rbp) jmp 0x3c96e jmp 0x3c970 jmp 0x3c82f movq -0xc8(%rbp), %rdi callq 0x48d00 movl -0xd4(%rbp), %eax movl %eax, -0xb4(%rbp) movl -0xb4(%rbp), %eax movl %eax, -0xf4(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x3c9ba movl -0xf4(%rbp), %eax addq $0x100, %rsp # imm = 0x100 popq %rbp retq callq 0x382c0 nop
do_start_slave_sql: push rbp mov rbp, rsp sub rsp, 100h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_C0], rdi mov [rbp+var_D4], 0 mov rdi, [rbp+var_C0] mov ecx, cs:multi_source lea rdx, aShowSlaveStatu; "SHOW SLAVE STATUS" lea rax, aShowAllSlavesS; "SHOW ALL SLAVES STATUS" cmp ecx, 0 cmovnz rdx, rax lea rsi, [rbp+var_C8] call mysql_query_with_error_report cmp eax, 0 jz short loc_3C82D jmp short $+2 loc_3C81E: mov [rbp+var_B4], 1 jmp loc_3C98D loc_3C82D: jmp short $+2 loc_3C82F: mov rdi, [rbp+var_C8] call mysql_fetch_row mov [rbp+var_D0], rax cmp rax, 0 jz loc_3C975 jmp short $+2 loc_3C84E: jmp short $+2 loc_3C850: mov rax, [rbp+var_D0] mov ecx, cs:multi_source add ecx, 0Bh mov ecx, ecx cmp qword ptr [rax+rcx*8], 0 jz loc_3C970 mov rax, [rbp+var_D0] mov ecx, cs:multi_source add ecx, 0Bh mov ecx, ecx mov rdi, [rax+rcx*8] lea rsi, aYes; "Yes" call _strcmp cmp eax, 0 jz loc_3C96E cmp cs:multi_source, 0 jz short loc_3C8C2 lea rdi, [rbp+var_B0] mov rax, [rbp+var_D0] mov rdx, [rax] lea rsi, aStartSlave80s; "START SLAVE '%.80s'" mov al, 0 call _sprintf jmp short loc_3C8D5 loc_3C8C2: lea rdi, [rbp+var_B0] lea rsi, aStartSlave_0; "START SLAVE" call _stpcpy loc_3C8D5: mov rdi, [rbp+var_C0] lea rdx, [rbp+var_B0] xor eax, eax mov esi, eax call mysql_query_with_error_report cmp eax, 0 jz short loc_3C96C mov rax, cs:stderr_ptr mov rax, [rax] mov [rbp+var_E8], rax lea rax, my_progname_short mov rax, [rax] mov [rbp+var_E0], rax cmp cs:multi_source, 0 jz short loc_3C92F mov rax, [rbp+var_D0] mov rax, [rax] mov [rbp+var_F0], rax jmp short loc_3C93F loc_3C92F: lea rax, asc_DCB4A+2; "" mov [rbp+var_F0], rax jmp short $+2 loc_3C93F: mov rdx, [rbp+var_E0] mov rdi, [rbp+var_E8] mov rcx, [rbp+var_F0] lea rsi, aSErrorUnableTo; "%s: Error: Unable to start slave '%s'\n" mov al, 0 call _fprintf mov [rbp+var_D4], 1 loc_3C96C: jmp short $+2 loc_3C96E: jmp short $+2 loc_3C970: jmp loc_3C82F loc_3C975: mov rdi, [rbp+var_C8] call mysql_free_result mov eax, [rbp+var_D4] mov [rbp+var_B4], eax loc_3C98D: mov eax, [rbp+var_B4] mov [rbp+var_F4], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_3C9BA mov eax, [rbp+var_F4] add rsp, 100h pop rbp retn loc_3C9BA: call ___stack_chk_fail
long long do_start_slave_sql(long long a1) { const char *v1; // rdx unsigned int v3; // [rsp+2Ch] [rbp-D4h] const char **row; // [rsp+30h] [rbp-D0h] long long v5; // [rsp+38h] [rbp-C8h] BYREF long long v6; // [rsp+40h] [rbp-C0h] _BYTE v8[168]; // [rsp+50h] [rbp-B0h] BYREF unsigned long long v9; // [rsp+F8h] [rbp-8h] v9 = __readfsqword(0x28u); v6 = a1; v3 = 0; v1 = "SHOW SLAVE STATUS"; if ( multi_source ) v1 = "SHOW ALL SLAVES STATUS"; if ( (unsigned int)mysql_query_with_error_report(a1, &v5, (long long)v1) ) { return 1; } else { while ( 1 ) { row = (const char **)mysql_fetch_row(v5); if ( !row ) break; if ( row[multi_source + 11] && (unsigned int)strcmp(row[multi_source + 11], "Yes") ) { if ( multi_source ) sprintf(v8, "START SLAVE '%.80s'", *row); else stpcpy(v8, "START SLAVE"); if ( (unsigned int)mysql_query_with_error_report(v6, 0LL, (long long)v8) ) { if ( multi_source ) fprintf(stderr, "%s: Error: Unable to start slave '%s'\n", my_progname_short, *row); else fprintf(stderr, "%s: Error: Unable to start slave '%s'\n", my_progname_short, ""); v3 = 1; } } } mysql_free_result(v5); return v3; } }
do_start_slave_sql: PUSH RBP MOV RBP,RSP SUB RSP,0x100 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0xc0],RDI MOV dword ptr [RBP + -0xd4],0x0 MOV RDI,qword ptr [RBP + -0xc0] MOV ECX,dword ptr [0x00501620] LEA RDX,[0x1db844] LEA RAX,[0x1db82d] CMP ECX,0x0 CMOVNZ RDX,RAX LEA RSI,[RBP + -0xc8] CALL 0x00139350 CMP EAX,0x0 JZ 0x0013c82d JMP 0x0013c81e LAB_0013c81e: MOV dword ptr [RBP + -0xb4],0x1 JMP 0x0013c98d LAB_0013c82d: JMP 0x0013c82f LAB_0013c82f: MOV RDI,qword ptr [RBP + -0xc8] CALL 0x00151800 MOV qword ptr [RBP + -0xd0],RAX CMP RAX,0x0 JZ 0x0013c975 JMP 0x0013c84e LAB_0013c84e: JMP 0x0013c850 LAB_0013c850: MOV RAX,qword ptr [RBP + -0xd0] MOV ECX,dword ptr [0x00501620] ADD ECX,0xb MOV ECX,ECX CMP qword ptr [RAX + RCX*0x8],0x0 JZ 0x0013c970 MOV RAX,qword ptr [RBP + -0xd0] MOV ECX,dword ptr [0x00501620] ADD ECX,0xb MOV ECX,ECX MOV RDI,qword ptr [RAX + RCX*0x8] LEA RSI,[0x1df331] CALL 0x00138880 CMP EAX,0x0 JZ 0x0013c96e CMP dword ptr [0x00501620],0x0 JZ 0x0013c8c2 LEA RDI,[RBP + -0xb0] MOV RAX,qword ptr [RBP + -0xd0] MOV RDX,qword ptr [RAX] LEA RSI,[0x1df335] MOV AL,0x0 CALL 0x00138a10 JMP 0x0013c8d5 LAB_0013c8c2: LEA RDI,[RBP + -0xb0] LEA RSI,[0x1df349] CALL 0x001389c0 LAB_0013c8d5: MOV RDI,qword ptr [RBP + -0xc0] LEA RDX,[RBP + -0xb0] XOR EAX,EAX MOV ESI,EAX CALL 0x00139350 CMP EAX,0x0 JZ 0x0013c96c MOV RAX,qword ptr [0x00344fe0] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xe8],RAX LEA RAX,[0x50cbd8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xe0],RAX CMP dword ptr [0x00501620],0x0 JZ 0x0013c92f MOV RAX,qword ptr [RBP + -0xd0] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xf0],RAX JMP 0x0013c93f LAB_0013c92f: LEA RAX,[0x1dcb4c] MOV qword ptr [RBP + -0xf0],RAX JMP 0x0013c93f LAB_0013c93f: MOV RDX,qword ptr [RBP + -0xe0] MOV RDI,qword ptr [RBP + -0xe8] MOV RCX,qword ptr [RBP + -0xf0] LEA RSI,[0x1df355] MOV AL,0x0 CALL 0x001381d0 MOV dword ptr [RBP + -0xd4],0x1 LAB_0013c96c: JMP 0x0013c96e LAB_0013c96e: JMP 0x0013c970 LAB_0013c970: JMP 0x0013c82f LAB_0013c975: MOV RDI,qword ptr [RBP + -0xc8] CALL 0x00148d00 MOV EAX,dword ptr [RBP + -0xd4] MOV dword ptr [RBP + -0xb4],EAX LAB_0013c98d: MOV EAX,dword ptr [RBP + -0xb4] MOV dword ptr [RBP + -0xf4],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0013c9ba MOV EAX,dword ptr [RBP + -0xf4] ADD RSP,0x100 POP RBP RET LAB_0013c9ba: CALL 0x001382c0
int4 do_start_slave_sql(int8 param_1) { int iVar1; int8 *puVar2; char *pcVar3; long in_FS_OFFSET; int1 *local_f8; int4 local_dc; int8 local_d0; int8 local_c8; int4 local_bc; char local_b8 [168]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_dc = 0; pcVar3 = "SHOW SLAVE STATUS"; if (multi_source != 0) { pcVar3 = "SHOW ALL SLAVES STATUS"; } local_c8 = param_1; iVar1 = mysql_query_with_error_report(param_1,&local_d0,pcVar3); if (iVar1 == 0) { while (puVar2 = (int8 *)mysql_fetch_row(local_d0), puVar2 != (int8 *)0x0) { if ((puVar2[multi_source + 0xb] != 0) && (iVar1 = strcmp((char *)puVar2[multi_source + 0xb],"Yes"), iVar1 != 0)) { if (multi_source == 0) { stpcpy(local_b8,"START SLAVE"); } else { sprintf(local_b8,"START SLAVE \'%.80s\'",*puVar2); } iVar1 = mysql_query_with_error_report(local_c8,0,local_b8); if (iVar1 != 0) { if (multi_source == 0) { local_f8 = &DAT_001dcb4c; } else { local_f8 = (int1 *)*puVar2; } fprintf(*(FILE **)PTR_stderr_00344fe0,"%s: Error: Unable to start slave \'%s\'\n", my_progname_short,local_f8); local_dc = 1; } } } mysql_free_result(local_d0); local_bc = local_dc; } else { local_bc = 1; } if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_bc; }
51,083
next_free_record_pos
eloqsql/storage/heap/hp_write.c
static uchar *next_free_record_pos(HP_SHARE *info) { int block_pos; uchar *pos; size_t length; DBUG_ENTER("next_free_record_pos"); if (info->del_link) { pos=info->del_link; info->del_link= *((uchar**) pos); info->deleted--; DBUG_PRINT("exit",("Used old position: %p", pos)); DBUG_RETURN(pos); } if ((info->records > info->max_records && info->max_records) || (info->data_length + info->index_length >= info->max_table_size)) { DBUG_PRINT("error", ("record file full. records: %lu max_records: %lu " "data_length: %llu index_length: %llu " "max_table_size: %llu", info->records, info->max_records, info->data_length, info->index_length, info->max_table_size)); my_errno=HA_ERR_RECORD_FILE_FULL; DBUG_RETURN(NULL); } if (!(block_pos=(info->records % info->block.records_in_block))) { if (hp_get_new_block(info, &info->block,&length)) DBUG_RETURN(NULL); info->data_length+=length; } DBUG_PRINT("exit",("Used new position: %p", ((uchar*) info->block.level_info[0].last_blocks+ block_pos * info->block.recbuffer))); DBUG_RETURN((uchar*) info->block.level_info[0].last_blocks+ block_pos*info->block.recbuffer); }
O0
c
next_free_record_pos: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax cmpq $0x0, 0x110(%rax) je 0x2d0d2 movq -0x10(%rbp), %rax movq 0x110(%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x110(%rax) movq -0x10(%rbp), %rax movq 0xe0(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0xe0(%rax) jmp 0x2d0c3 jmp 0x2d0c5 movq -0x20(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x2d1b3 movq -0x10(%rbp), %rax movq 0xd0(%rax), %rax movq -0x10(%rbp), %rcx cmpq 0xc8(%rcx), %rax jbe 0x2d0f8 movq -0x10(%rbp), %rax cmpq $0x0, 0xc8(%rax) jne 0x2d11b movq -0x10(%rbp), %rax movq 0xa0(%rax), %rax movq -0x10(%rbp), %rcx addq 0xa8(%rcx), %rax movq -0x10(%rbp), %rcx cmpq 0xb0(%rcx), %rax jb 0x2d134 jmp 0x2d11d jmp 0x2d11f callq 0x31370 movl $0x87, (%rax) movq $0x0, -0x8(%rbp) jmp 0x2d1b3 movq -0x10(%rbp), %rax movq 0xd0(%rax), %rax movq -0x10(%rbp), %rcx xorl %edx, %edx divq 0x88(%rcx) movl %edx, %eax movl %eax, -0x14(%rbp) cmpl $0x0, %eax jne 0x2d18e movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rsi leaq -0x28(%rbp), %rdx callq 0x26e10 cmpl $0x0, %eax je 0x2d178 jmp 0x2d16e movq $0x0, -0x8(%rbp) jmp 0x2d1b3 movq -0x28(%rbp), %rcx movq -0x10(%rbp), %rax addq 0xa0(%rax), %rcx movq %rcx, 0xa0(%rax) jmp 0x2d190 jmp 0x2d192 jmp 0x2d194 movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movl -0x14(%rbp), %ecx movq -0x10(%rbp), %rdx imull 0x84(%rdx), %ecx movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax)
next_free_record_pos: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov rax, [rbp+var_10] cmp qword ptr [rax+110h], 0 jz short loc_2D0D2 mov rax, [rbp+var_10] mov rax, [rax+110h] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov rcx, [rax] mov rax, [rbp+var_10] mov [rax+110h], rcx mov rax, [rbp+var_10] mov rcx, [rax+0E0h] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+0E0h], rcx jmp short $+2 loc_2D0C3: jmp short $+2 loc_2D0C5: mov rax, [rbp+var_20] mov [rbp+var_8], rax jmp loc_2D1B3 loc_2D0D2: mov rax, [rbp+var_10] mov rax, [rax+0D0h] mov rcx, [rbp+var_10] cmp rax, [rcx+0C8h] jbe short loc_2D0F8 mov rax, [rbp+var_10] cmp qword ptr [rax+0C8h], 0 jnz short loc_2D11B loc_2D0F8: mov rax, [rbp+var_10] mov rax, [rax+0A0h] mov rcx, [rbp+var_10] add rax, [rcx+0A8h] mov rcx, [rbp+var_10] cmp rax, [rcx+0B0h] jb short loc_2D134 loc_2D11B: jmp short $+2 loc_2D11D: jmp short $+2 loc_2D11F: call _my_thread_var mov dword ptr [rax], 87h mov [rbp+var_8], 0 jmp short loc_2D1B3 loc_2D134: mov rax, [rbp+var_10] mov rax, [rax+0D0h] mov rcx, [rbp+var_10] xor edx, edx div qword ptr [rcx+88h] mov eax, edx mov [rbp+var_14], eax cmp eax, 0 jnz short loc_2D18E mov rdi, [rbp+var_10] mov rsi, [rbp+var_10] lea rdx, [rbp+var_28] call hp_get_new_block cmp eax, 0 jz short loc_2D178 jmp short $+2 loc_2D16E: mov [rbp+var_8], 0 jmp short loc_2D1B3 loc_2D178: mov rcx, [rbp+var_28] mov rax, [rbp+var_10] add rcx, [rax+0A0h] mov [rax+0A0h], rcx loc_2D18E: jmp short $+2 loc_2D190: jmp short $+2 loc_2D192: jmp short $+2 loc_2D194: mov rax, [rbp+var_10] mov rax, [rax+18h] mov ecx, [rbp+var_14] mov rdx, [rbp+var_10] imul ecx, [rdx+84h] mov ecx, ecx add rax, rcx mov [rbp+var_8], rax loc_2D1B3: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
_QWORD * next_free_record_pos(long long a1, long long a2, long long a3) { long long v3; // rdx long long v5; // [rsp+8h] [rbp-28h] BYREF _QWORD *v6; // [rsp+10h] [rbp-20h] int v7; // [rsp+1Ch] [rbp-14h] long long v8; // [rsp+20h] [rbp-10h] v8 = a1; if ( *(_QWORD *)(a1 + 272) ) { v6 = *(_QWORD **)(v8 + 272); *(_QWORD *)(v8 + 272) = *v6; --*(_QWORD *)(v8 + 224); return v6; } else { if ( (*(_QWORD *)(v8 + 208) <= *(_QWORD *)(v8 + 200) || !*(_QWORD *)(v8 + 200)) && *(_QWORD *)(v8 + 168) + *(_QWORD *)(v8 + 160) < *(_QWORD *)(v8 + 176) ) { v3 = *(_QWORD *)(v8 + 208) % *(_QWORD *)(v8 + 136); v7 = v3; if ( !(_DWORD)v3 ) { if ( (unsigned int)hp_get_new_block(v8, v8, &v5) ) return 0LL; *(_QWORD *)(v8 + 160) += v5; } return (_QWORD *)((unsigned int)(*(_DWORD *)(v8 + 132) * v7) + *(_QWORD *)(v8 + 24)); } *(_DWORD *)my_thread_var(a1, a2, a3) = 135; return 0LL; } }
next_free_record_pos: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x110],0x0 JZ 0x0012d0d2 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x110] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x110],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0xe0] ADD RCX,-0x1 MOV qword ptr [RAX + 0xe0],RCX JMP 0x0012d0c3 LAB_0012d0c3: JMP 0x0012d0c5 LAB_0012d0c5: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x8],RAX JMP 0x0012d1b3 LAB_0012d0d2: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xd0] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0xc8] JBE 0x0012d0f8 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0xc8],0x0 JNZ 0x0012d11b LAB_0012d0f8: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xa0] MOV RCX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0xb0] JC 0x0012d134 LAB_0012d11b: JMP 0x0012d11d LAB_0012d11d: JMP 0x0012d11f LAB_0012d11f: CALL 0x00131370 MOV dword ptr [RAX],0x87 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0012d1b3 LAB_0012d134: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xd0] MOV RCX,qword ptr [RBP + -0x10] XOR EDX,EDX DIV qword ptr [RCX + 0x88] MOV EAX,EDX MOV dword ptr [RBP + -0x14],EAX CMP EAX,0x0 JNZ 0x0012d18e MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x10] LEA RDX,[RBP + -0x28] CALL 0x00126e10 CMP EAX,0x0 JZ 0x0012d178 JMP 0x0012d16e LAB_0012d16e: MOV qword ptr [RBP + -0x8],0x0 JMP 0x0012d1b3 LAB_0012d178: MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0xa0] MOV qword ptr [RAX + 0xa0],RCX LAB_0012d18e: JMP 0x0012d190 LAB_0012d190: JMP 0x0012d192 LAB_0012d192: JMP 0x0012d194 LAB_0012d194: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV ECX,dword ptr [RBP + -0x14] MOV RDX,qword ptr [RBP + -0x10] IMUL ECX,dword ptr [RDX + 0x84] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x8],RAX LAB_0012d1b3: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
int8 * next_free_record_pos(long param_1) { int iVar1; int4 *puVar2; long local_30 [2]; int local_1c; long local_18; int8 *local_10; if (*(long *)(param_1 + 0x110) == 0) { local_18 = param_1; if (((*(ulong *)(param_1 + 200) < *(ulong *)(param_1 + 0xd0)) && (*(long *)(param_1 + 200) != 0) ) || (*(ulong *)(param_1 + 0xb0) <= (ulong)(*(long *)(param_1 + 0xa0) + *(long *)(param_1 + 0xa8)))) { puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x87; local_10 = (int8 *)0x0; } else { local_1c = (int)(*(ulong *)(param_1 + 0xd0) % *(ulong *)(param_1 + 0x88)); if (local_1c == 0) { iVar1 = hp_get_new_block(param_1,param_1,local_30); if (iVar1 != 0) { return (int8 *)0x0; } *(long *)(local_18 + 0xa0) = local_30[0] + *(long *)(local_18 + 0xa0); } local_10 = (int8 *) (*(long *)(local_18 + 0x18) + (ulong)(uint)(local_1c * *(int *)(local_18 + 0x84))); } } else { local_10 = *(int8 **)(param_1 + 0x110); *(int8 *)(param_1 + 0x110) = *local_10; *(long *)(param_1 + 0xe0) = *(long *)(param_1 + 0xe0) + -1; } return local_10; }
51,084
testing::internal::AppendUserMessage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::Message const&)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
std::string AppendUserMessage(const std::string& gtest_msg, const Message& user_msg) { // Appends the user message if it's non-empty. const std::string user_msg_string = user_msg.GetString(); if (user_msg_string.empty()) { return gtest_msg; } if (gtest_msg.empty()) { return user_msg_string; } return gtest_msg + "\n" + user_msg_string; }
O0
cpp
testing::internal::AppendUserMessage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::Message const&): subq $0x78, %rsp movq %rdi, (%rsp) movq %rdi, %rax movq %rax, 0x8(%rsp) movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movq %rdx, 0x60(%rsp) movq 0x60(%rsp), %rsi leaq 0x40(%rsp), %rdi callq 0xb2630 leaq 0x40(%rsp), %rdi callq 0x39260 testb $0x1, %al jne 0xbc9fe jmp 0xbca2e movq (%rsp), %rdi movq 0x68(%rsp), %rsi callq 0x39160 jmp 0xbca0e movl $0x1, 0x30(%rsp) jmp 0xbcab3 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) jmp 0xbcac7 movq 0x68(%rsp), %rdi callq 0x39260 testb $0x1, %al jne 0xbca3e jmp 0xbca58 movq (%rsp), %rdi leaq 0x40(%rsp), %rsi callq 0x39160 jmp 0xbca4e movl $0x1, 0x30(%rsp) jmp 0xbcab3 movq 0x68(%rsp), %rsi leaq 0x5700f(%rip), %rdx # 0x113a73 leaq 0x10(%rsp), %rdi callq 0x8bfc0 jmp 0xbca70 movq (%rsp), %rdi leaq 0x10(%rsp), %rsi leaq 0x40(%rsp), %rdx callq 0xe34c0 jmp 0xbca85 leaq 0x10(%rsp), %rdi callq 0x1aac0 movl $0x1, 0x30(%rsp) jmp 0xbcab3 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) leaq 0x10(%rsp), %rdi callq 0x1aac0 jmp 0xbcac7 leaq 0x40(%rsp), %rdi callq 0x1aac0 movq 0x8(%rsp), %rax addq $0x78, %rsp retq leaq 0x40(%rsp), %rdi callq 0x1aac0 movq 0x38(%rsp), %rdi callq 0x14c80 nopl (%rax,%rax)
_ZN7testing8internal17AppendUserMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7MessageE: sub rsp, 78h mov qword ptr [rsp+78h+var_78], rdi; int mov rax, rdi mov [rsp+78h+var_70], rax; void * mov [rsp+78h+var_8], rdi mov qword ptr [rsp+78h+var_10], rsi mov qword ptr [rsp+78h+var_18], rdx mov rsi, qword ptr [rsp+78h+var_18]; int lea rdi, [rsp+78h+var_38]; int call _ZNK7testing7Message9GetStringB5cxx11Ev; testing::Message::GetString(void) lea rdi, [rsp+78h+var_38] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz short loc_BC9FE jmp short loc_BCA2E loc_BC9FE: mov rdi, qword ptr [rsp+78h+var_78] mov rsi, qword ptr [rsp+78h+var_10] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_BCA0E: mov [rsp+78h+var_48], 1 jmp loc_BCAB3 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax jmp loc_BCAC7 loc_BCA2E: mov rdi, qword ptr [rsp+78h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz short loc_BCA3E jmp short loc_BCA58 loc_BCA3E: mov rdi, qword ptr [rsp+78h+var_78] lea rsi, [rsp+78h+var_38] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_BCA4E: mov [rsp+78h+var_48], 1 jmp short loc_BCAB3 loc_BCA58: mov rsi, qword ptr [rsp+78h+var_10]; int lea rdx, aSFromSSMsTotal+19h; int lea rdi, [rsp+78h+var_68]; int call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*) jmp short $+2 loc_BCA70: mov rdi, qword ptr [rsp+78h+var_78] lea rsi, [rsp+78h+var_68] lea rdx, [rsp+78h+var_38] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&) jmp short $+2 loc_BCA85: lea rdi, [rsp+78h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov [rsp+78h+var_48], 1 jmp short loc_BCAB3 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax lea rdi, [rsp+arg_8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_BCAC7 loc_BCAB3: lea rdi, [rsp+78h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, [rsp+78h+var_70] add rsp, 78h retn loc_BCAC7: lea rdi, [rsp+arg_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, [rsp+arg_30] call __Unwind_Resume
_QWORD * testing::internal::AppendUserMessage(_QWORD *a1, long long a2, long long a3) { _QWORD v4[4]; // [rsp+10h] [rbp-68h] BYREF int v5; // [rsp+30h] [rbp-48h] int v6[8]; // [rsp+40h] [rbp-38h] BYREF int v7[2]; // [rsp+60h] [rbp-18h] int v8[2]; // [rsp+68h] [rbp-10h] _QWORD *v9; // [rsp+70h] [rbp-8h] v9 = a1; *(_QWORD *)v8 = a2; *(_QWORD *)v7 = a3; testing::Message::GetString[abi:cxx11]((int)v6, a3); if ( std::string::empty((long long)v6) ) { std::string::basic_string(a1, *(long long *)v8); v5 = 1; } else { if ( std::string::empty(*(long long *)v8) ) { std::string::basic_string(a1, (long long)v6); } else { std::operator+<char>(v4, *(long long *)v8, (long long)"\n"); std::operator+<char>(a1, v4, v6); std::string::~string(v4); } v5 = 1; } std::string::~string(v6); return a1; }
AppendUserMessage: SUB RSP,0x78 MOV qword ptr [RSP],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RSI MOV qword ptr [RSP + 0x60],RDX MOV RSI,qword ptr [RSP + 0x60] LEA RDI,[RSP + 0x40] CALL 0x001b2630 LEA RDI,[RSP + 0x40] CALL 0x00139260 TEST AL,0x1 JNZ 0x001bc9fe JMP 0x001bca2e LAB_001bc9fe: MOV RDI,qword ptr [RSP] MOV RSI,qword ptr [RSP + 0x68] LAB_001bca07: CALL 0x00139160 JMP 0x001bca0e LAB_001bca0e: MOV dword ptr [RSP + 0x30],0x1 JMP 0x001bcab3 LAB_001bca2e: MOV RDI,qword ptr [RSP + 0x68] CALL 0x00139260 TEST AL,0x1 JNZ 0x001bca3e JMP 0x001bca58 LAB_001bca3e: MOV RDI,qword ptr [RSP] LEA RSI,[RSP + 0x40] CALL 0x00139160 JMP 0x001bca4e LAB_001bca4e: MOV dword ptr [RSP + 0x30],0x1 JMP 0x001bcab3 LAB_001bca58: MOV RSI,qword ptr [RSP + 0x68] LEA RDX,[0x213a73] LEA RDI,[RSP + 0x10] CALL 0x0018bfc0 JMP 0x001bca70 LAB_001bca70: MOV RDI,qword ptr [RSP] LEA RSI,[RSP + 0x10] LEA RDX,[RSP + 0x40] CALL 0x001e34c0 LAB_001bca83: JMP 0x001bca85 LAB_001bca85: LEA RDI,[RSP + 0x10] CALL 0x0011aac0 MOV dword ptr [RSP + 0x30],0x1 JMP 0x001bcab3 LAB_001bcab3: LEA RDI,[RSP + 0x40] CALL 0x0011aac0 MOV RAX,qword ptr [RSP + 0x8] ADD RSP,0x78 RET
/* testing::internal::AppendUserMessage(std::__cxx11::string const&, testing::Message const&) */ internal * __thiscall testing::internal::AppendUserMessage(internal *this,string *param_1,Message *param_2) { ulong uVar1; string local_68 [32]; int4 local_48; string local_38 [32]; Message *local_18; string *local_10; internal *local_8; local_18 = param_2; local_10 = param_1; local_8 = this; Message::GetString_abi_cxx11_(); uVar1 = std::__cxx11::string::empty(local_38); if ((uVar1 & 1) == 0) { uVar1 = std::__cxx11::string::empty(local_10); if ((uVar1 & 1) == 0) { std::operator+(local_68,(char *)local_10); /* try { // try from 001bca70 to 001bca82 has its CatchHandler @ 001bca99 */ std::operator+((string *)this,local_68); std::__cxx11::string::~string(local_68); } else { std::__cxx11::string::string((string *)this,local_38); } } else { /* try { // try from 001bca07 to 001bca6d has its CatchHandler @ 001bca1b */ std::__cxx11::string::string((string *)this,local_10); } local_48 = 1; std::__cxx11::string::~string(local_38); return this; }
51,085
js_promise_executor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_promise_executor(JSContext *ctx, JSValue this_val, int argc, JSValue *argv, int magic, JSValue *func_data) { int i; for(i = 0; i < 2; i++) { if (!JS_IsUndefined(func_data[i])) return JS_ThrowTypeError(ctx, "resolving function already set"); func_data[i] = js_dup(argv[i]); } return JS_UNDEFINED; }
O0
c
js_promise_executor: subq $0x58, %rsp movq 0x60(%rsp), %rax movq %rsi, 0x38(%rsp) movq %rdx, 0x40(%rsp) movq %rdi, 0x30(%rsp) movl %ecx, 0x2c(%rsp) movq %r8, 0x20(%rsp) movl %r9d, 0x1c(%rsp) movl $0x0, 0x18(%rsp) cmpl $0x2, 0x18(%rsp) jge 0x9029e movq 0x60(%rsp), %rax movslq 0x18(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x2cfa0 cmpl $0x0, %eax jne 0x9023a movq 0x30(%rsp), %rdi leaq 0x7d9b4(%rip), %rsi # 0x10dbdb movb $0x0, %al callq 0x2c040 movq %rax, 0x48(%rsp) movq %rdx, 0x50(%rsp) jmp 0x902af movq 0x60(%rsp), %rax movslq 0x18(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq %rax, (%rsp) movq 0x20(%rsp), %rax movslq 0x18(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x20410 movq %rax, %rcx movq (%rsp), %rax movq %rcx, 0x8(%rsp) movq %rdx, 0x10(%rsp) movq 0x8(%rsp), %rcx movq %rcx, (%rax) movq 0x10(%rsp), %rcx movq %rcx, 0x8(%rax) movl 0x18(%rsp), %eax addl $0x1, %eax movl %eax, 0x18(%rsp) jmp 0x901ee movl $0x0, 0x48(%rsp) movq $0x3, 0x50(%rsp) movq 0x48(%rsp), %rax movq 0x50(%rsp), %rdx addq $0x58, %rsp retq nop
js_promise_executor: sub rsp, 58h mov rax, [rsp+58h+arg_0] mov [rsp+58h+var_20], rsi mov [rsp+58h+var_18], rdx mov [rsp+58h+var_28], rdi mov [rsp+58h+var_2C], ecx mov [rsp+58h+var_38], r8 mov [rsp+58h+var_3C], r9d mov [rsp+58h+var_40], 0 loc_901EE: cmp [rsp+58h+var_40], 2 jge loc_9029E mov rax, [rsp+58h+arg_0] movsxd rcx, [rsp+58h+var_40] shl rcx, 4 add rax, rcx mov rdi, [rax] mov rsi, [rax+8] call JS_IsUndefined_0 cmp eax, 0 jnz short loc_9023A mov rdi, [rsp+58h+var_28] lea rsi, aResolvingFunct; "resolving function already set" mov al, 0 call JS_ThrowTypeError mov [rsp+58h+var_10], rax mov [rsp+58h+var_8], rdx jmp short loc_902AF loc_9023A: mov rax, [rsp+58h+arg_0] movsxd rcx, [rsp+58h+var_40] shl rcx, 4 add rax, rcx mov [rsp+58h+var_58], rax mov rax, [rsp+58h+var_38] movsxd rcx, [rsp+58h+var_40] shl rcx, 4 add rax, rcx mov rdi, [rax] mov rsi, [rax+8] call js_dup mov rcx, rax mov rax, [rsp+58h+var_58] mov [rsp+58h+var_50], rcx mov [rsp+58h+var_48], rdx mov rcx, [rsp+58h+var_50] mov [rax], rcx mov rcx, [rsp+58h+var_48] mov [rax+8], rcx mov eax, [rsp+58h+var_40] add eax, 1 mov [rsp+58h+var_40], eax jmp loc_901EE loc_9029E: mov dword ptr [rsp+58h+var_10], 0 mov [rsp+58h+var_8], 3 loc_902AF: mov rax, [rsp+58h+var_10] mov rdx, [rsp+58h+var_8] add rsp, 58h retn
long long js_promise_executor( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, double a6, double a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, long long a13, long long a14, long long a15) { long long v15; // rdx long long v16; // rcx long long v17; // r8 long long v18; // r9 __m128 v19; // xmm4 __m128 v20; // xmm5 long long v21; // rdx _QWORD *v23; // [rsp+0h] [rbp-58h] int i; // [rsp+18h] [rbp-40h] long long v26; // [rsp+48h] [rbp-10h] for ( i = 0; i < 2; ++i ) { if ( !JS_IsUndefined_0(*(_QWORD *)(16LL * i + a15), *(_QWORD *)(16LL * i + a15 + 8)) ) return JS_ThrowTypeError( a1, (long long)"resolving function already set", v15, v16, v17, v18, a2, a3, a4, a5, v19, v20, a8, a9, (char)v23); v23 = (_QWORD *)(16LL * i + a15); *v23 = js_dup(*(_DWORD **)(16LL * i + a13), *(_QWORD *)(16LL * i + a13 + 8)); v23[1] = v21; } LODWORD(v26) = 0; return v26; }
js_promise_executor: SUB RSP,0x58 MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x38],RSI MOV qword ptr [RSP + 0x40],RDX MOV qword ptr [RSP + 0x30],RDI MOV dword ptr [RSP + 0x2c],ECX MOV qword ptr [RSP + 0x20],R8 MOV dword ptr [RSP + 0x1c],R9D MOV dword ptr [RSP + 0x18],0x0 LAB_001901ee: CMP dword ptr [RSP + 0x18],0x2 JGE 0x0019029e MOV RAX,qword ptr [RSP + 0x60] MOVSXD RCX,dword ptr [RSP + 0x18] SHL RCX,0x4 ADD RAX,RCX MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x0012cfa0 CMP EAX,0x0 JNZ 0x0019023a MOV RDI,qword ptr [RSP + 0x30] LEA RSI,[0x20dbdb] MOV AL,0x0 CALL 0x0012c040 MOV qword ptr [RSP + 0x48],RAX MOV qword ptr [RSP + 0x50],RDX JMP 0x001902af LAB_0019023a: MOV RAX,qword ptr [RSP + 0x60] MOVSXD RCX,dword ptr [RSP + 0x18] SHL RCX,0x4 ADD RAX,RCX MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP + 0x20] MOVSXD RCX,dword ptr [RSP + 0x18] SHL RCX,0x4 ADD RAX,RCX MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x00120410 MOV RCX,RAX MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x8],RCX MOV qword ptr [RSP + 0x10],RDX MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV EAX,dword ptr [RSP + 0x18] ADD EAX,0x1 MOV dword ptr [RSP + 0x18],EAX JMP 0x001901ee LAB_0019029e: MOV dword ptr [RSP + 0x48],0x0 MOV qword ptr [RSP + 0x50],0x3 LAB_001902af: MOV RAX,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] ADD RSP,0x58 RET
int1 [16] js_promise_executor(int8 param_1) { int iVar1; int8 *puVar2; long in_R8; int1 auVar3 [16]; long in_stack_00000008; int local_40; int4 local_10; int4 uStack_c; int8 local_8; local_40 = 0; do { if (1 < local_40) { local_10 = 0; local_8 = 3; LAB_001902af: auVar3._4_4_ = uStack_c; auVar3._0_4_ = local_10; auVar3._8_8_ = local_8; return auVar3; } puVar2 = (int8 *)(in_stack_00000008 + (long)local_40 * 0x10); iVar1 = JS_IsUndefined(*puVar2,puVar2[1]); if (iVar1 == 0) { auVar3 = JS_ThrowTypeError(param_1,"resolving function already set"); local_8 = auVar3._8_8_; local_10 = auVar3._0_4_; uStack_c = auVar3._4_4_; goto LAB_001902af; } puVar2 = (int8 *)(in_R8 + (long)local_40 * 0x10); auVar3 = js_dup(*puVar2,puVar2[1]); *(int1 (*) [16])(in_stack_00000008 + (long)local_40 * 0x10) = auVar3; local_40 = local_40 + 1; } while( true ); }
51,086
js_promise_executor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_promise_executor(JSContext *ctx, JSValue this_val, int argc, JSValue *argv, int magic, JSValue *func_data) { int i; for(i = 0; i < 2; i++) { if (!JS_IsUndefined(func_data[i])) return JS_ThrowTypeError(ctx, "resolving function already set"); func_data[i] = js_dup(argv[i]); } return JS_UNDEFINED; }
O1
c
js_promise_executor: pushq %rax movq 0x10(%rsp), %rax xorl %ecx, %ecx cmpl $0x3, 0x8(%rax,%rcx) jne 0x51a72 movq (%r8,%rcx), %rdx movq 0x8(%r8,%rcx), %rsi movq %rdx, (%rsp) cmpl $-0x9, %esi jb 0x51a58 movq (%rsp), %r9 incl (%r9) movq %rdx, (%rax,%rcx) movq %rsi, 0x8(%rax,%rcx) addq $0x10, %rcx cmpq $0x10, %rcx je 0x51a38 movl $0x3, %edx jmp 0x51a85 leaq 0x4d166(%rip), %rsi # 0x9ebdf xorl %eax, %eax callq 0x21953 movl $0x6, %edx xorl %eax, %eax popq %rcx retq
js_promise_executor: push rax mov rax, [rsp+8+arg_0] xor ecx, ecx loc_51A38: cmp dword ptr [rax+rcx+8], 3 jnz short loc_51A72 mov rdx, [r8+rcx] mov rsi, [r8+rcx+8] mov [rsp+8+var_8], rdx cmp esi, 0FFFFFFF7h jb short loc_51A58 mov r9, [rsp+8+var_8] inc dword ptr [r9] loc_51A58: mov [rax+rcx], rdx mov [rax+rcx+8], rsi add rcx, 10h cmp rcx, 10h jz short loc_51A38 mov edx, 3 jmp short loc_51A85 loc_51A72: lea rsi, aResolvingFunct; "resolving function already set" xor eax, eax call JS_ThrowTypeError mov edx, 6 loc_51A85: xor eax, eax pop rcx retn
long long js_promise_executor( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, _DWORD *a11, long long a12, long long a13, long long a14, long long a15) { char v15; // al long long v16; // rcx long long v17; // rsi char v19; // [rsp+0h] [rbp-8h] v19 = v15; v16 = 0LL; while ( *(_DWORD *)(a15 + v16 + 8) == 3 ) { a11 = *(_DWORD **)(a13 + v16); v17 = *(_QWORD *)(a13 + v16 + 8); v19 = (char)a11; if ( (unsigned int)v17 >= 0xFFFFFFF7 ) { a14 = *(_QWORD *)(a13 + v16); ++*a11; } *(_QWORD *)(a15 + v16) = a11; *(_QWORD *)(a15 + v16 + 8) = v17; v16 += 16LL; if ( v16 != 16 ) return 0LL; } JS_ThrowTypeError( a1, (long long)"resolving function already set", (long long)a11, v16, a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, v19); return 0LL; }
js_promise_executor: PUSH RAX MOV RAX,qword ptr [RSP + 0x10] XOR ECX,ECX LAB_00151a38: CMP dword ptr [RAX + RCX*0x1 + 0x8],0x3 JNZ 0x00151a72 MOV RDX,qword ptr [R8 + RCX*0x1] MOV RSI,qword ptr [R8 + RCX*0x1 + 0x8] MOV qword ptr [RSP],RDX CMP ESI,-0x9 JC 0x00151a58 MOV R9,qword ptr [RSP] INC dword ptr [R9] LAB_00151a58: MOV qword ptr [RAX + RCX*0x1],RDX MOV qword ptr [RAX + RCX*0x1 + 0x8],RSI ADD RCX,0x10 CMP RCX,0x10 JZ 0x00151a38 MOV EDX,0x3 JMP 0x00151a85 LAB_00151a72: LEA RSI,[0x19ebdf] XOR EAX,EAX CALL 0x00121953 MOV EDX,0x6 LAB_00151a85: XOR EAX,EAX POP RCX RET
int1 [16] js_promise_executor(int8 param_1) { int *piVar1; int8 uVar2; int1 auVar3 [16]; long lVar4; ulong uVar5; long in_R8; long in_stack_00000008; lVar4 = 0; do { if (*(int *)(in_stack_00000008 + 8 + lVar4) != 3) { JS_ThrowTypeError(param_1,"resolving function already set"); uVar5 = 6; goto LAB_00151a85; } piVar1 = *(int **)(in_R8 + lVar4); uVar2 = *(int8 *)(in_R8 + 8 + lVar4); if (0xfffffff6 < (uint)uVar2) { *piVar1 = *piVar1 + 1; } *(int **)(in_stack_00000008 + lVar4) = piVar1; *(int8 *)(in_stack_00000008 + 8 + lVar4) = uVar2; lVar4 = lVar4 + 0x10; } while (lVar4 == 0x10); uVar5 = 3; LAB_00151a85: auVar3._8_8_ = 0; auVar3._0_8_ = uVar5; return auVar3 << 0x40; }
51,087
ma_gets
eloqsql/libmariadb/libmariadb/ma_io.c
char *ma_gets(char *ptr, size_t size, MA_FILE *file) { if (!file) return NULL; switch (file->type) { case MA_FILE_LOCAL: return fgets(ptr, (int)size, (FILE *)file->ptr); break; #ifdef HAVE_REMOTEIO case MA_FILE_REMOTE: return rio_plugin->methods->mgets(ptr, size, file); break; #endif default: return NULL; } }
O3
c
ma_gets: pushq %rbp movq %rsp, %rbp testq %rdx, %rdx je 0x2870a movl (%rdx), %eax cmpl $0x2, %eax je 0x2870e cmpl $0x1, %eax jne 0x2870a movq 0x8(%rdx), %rdx popq %rbp jmp 0x13700 xorl %eax, %eax popq %rbp retq leaq 0x241fb(%rip), %rax # 0x4c910 movq (%rax), %rax movq 0x58(%rax), %rax movq 0x20(%rax), %rax popq %rbp jmpq *%rax nop
ma_gets: push rbp mov rbp, rsp test rdx, rdx jz short loc_2870A mov eax, [rdx] cmp eax, 2 jz short loc_2870E cmp eax, 1 jnz short loc_2870A mov rdx, [rdx+8] pop rbp jmp _fgets loc_2870A: xor eax, eax pop rbp retn loc_2870E: lea rax, rio_plugin mov rax, [rax] mov rax, [rax+58h] mov rax, [rax+20h] pop rbp jmp rax
long long ma_gets(long long a1, long long a2, long long a3) { if ( !a3 ) return 0LL; if ( *(_DWORD *)a3 != 2 ) { if ( *(_DWORD *)a3 == 1 ) return fgets(a1, a2, *(_QWORD *)(a3 + 8)); return 0LL; } return (*(long long (**)(void))(*(_QWORD *)(rio_plugin + 88LL) + 32LL))(); }
ma_gets: PUSH RBP MOV RBP,RSP TEST RDX,RDX JZ 0x0012870a MOV EAX,dword ptr [RDX] CMP EAX,0x2 JZ 0x0012870e CMP EAX,0x1 JNZ 0x0012870a MOV RDX,qword ptr [RDX + 0x8] POP RBP JMP 0x00113700 LAB_0012870a: XOR EAX,EAX POP RBP RET LAB_0012870e: LEA RAX,[0x14c910] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x58] MOV RAX,qword ptr [RAX + 0x20] POP RBP JMP RAX
char * ma_gets(char *param_1,int param_2,int *param_3) { char *pcVar1; if (param_3 != (int *)0x0) { if (*param_3 == 2) { /* WARNING: Could not recover jumptable at 0x00128721. Too many branches */ /* WARNING: Treating indirect jump as call */ pcVar1 = (char *)(**(code **)(*(long *)(rio_plugin + 0x58) + 0x20))(); return pcVar1; } if (*param_3 == 1) { pcVar1 = fgets(param_1,param_2,*(FILE **)(param_3 + 2)); return pcVar1; } } return (char *)0x0; }
51,088
my_lengthsp_utf16le
eloqsql/strings/ctype-ucs2.c
static size_t my_lengthsp_utf16le(CHARSET_INFO *cs __attribute__((unused)), const char *ptr, size_t length) { const char *end= ptr + length; while (end > ptr + 1 && uint2korr(end - 2) == ' ') end-= 2; return (size_t) (end - ptr); }
O0
c
my_lengthsp_utf16le: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rdx addq $0x1, %rdx xorl %eax, %eax cmpq %rdx, %rcx movb %al, -0x21(%rbp) jbe 0x729f3 movq -0x20(%rbp), %rax movzwl -0x2(%rax), %eax cmpl $0x20, %eax sete %al movb %al, -0x21(%rbp) movb -0x21(%rbp), %al testb $0x1, %al jne 0x729fc jmp 0x72a0a movq -0x20(%rbp), %rax addq $-0x2, %rax movq %rax, -0x20(%rbp) jmp 0x729cc movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx subq %rcx, %rax popq %rbp retq nopw (%rax,%rax)
my_lengthsp_utf16le: 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] add rax, [rbp+var_18] mov [rbp+var_20], rax loc_729CC: mov rcx, [rbp+var_20] mov rdx, [rbp+var_10] add rdx, 1 xor eax, eax cmp rcx, rdx mov [rbp+var_21], al jbe short loc_729F3 mov rax, [rbp+var_20] movzx eax, word ptr [rax-2] cmp eax, 20h ; ' ' setz al mov [rbp+var_21], al loc_729F3: mov al, [rbp+var_21] test al, 1 jnz short loc_729FC jmp short loc_72A0A loc_729FC: mov rax, [rbp+var_20] add rax, 0FFFFFFFFFFFFFFFEh mov [rbp+var_20], rax jmp short loc_729CC loc_72A0A: mov rax, [rbp+var_20] mov rcx, [rbp+var_10] sub rax, rcx pop rbp retn
long long my_lengthsp_utf16le(long long a1, long long a2, long long a3) { bool v4; // [rsp+1h] [rbp-21h] unsigned long long i; // [rsp+2h] [rbp-20h] for ( i = a3 + a2; ; i -= 2LL ) { v4 = 0; if ( i > a2 + 1 ) v4 = *(unsigned __int16 *)(i - 2) == 32; if ( !v4 ) break; } return i - a2; }
my_lengthsp_utf16le: 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] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX LAB_001729cc: MOV RCX,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x10] ADD RDX,0x1 XOR EAX,EAX CMP RCX,RDX MOV byte ptr [RBP + -0x21],AL JBE 0x001729f3 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,word ptr [RAX + -0x2] CMP EAX,0x20 SETZ AL MOV byte ptr [RBP + -0x21],AL LAB_001729f3: MOV AL,byte ptr [RBP + -0x21] TEST AL,0x1 JNZ 0x001729fc JMP 0x00172a0a LAB_001729fc: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,-0x2 MOV qword ptr [RBP + -0x20],RAX JMP 0x001729cc LAB_00172a0a: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,RCX POP RBP RET
long my_lengthsp_utf16le(int8 param_1,long param_2,long param_3) { bool bVar1; int8 local_28; local_28 = param_2 + param_3; while( true ) { bVar1 = false; if (param_2 + 1U < local_28) { bVar1 = *(short *)(local_28 - 2) == 0x20; } if (!bVar1) break; local_28 = local_28 - 2; } return local_28 - param_2; }
51,089
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::next_byte_in_range(std::initializer_list<int>)
llama.cpp/common/./json.hpp
bool next_byte_in_range(std::initializer_list<char_int_type> ranges) { JSON_ASSERT(ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6); add(current); for (auto range = ranges.begin(); range != ranges.end(); ++range) { get(); if (JSON_HEDLEY_LIKELY(*range <= current && current <= *(++range))) // NOLINT(bugprone-inc-dec-in-conditions) { add(current); } else { error_message = "invalid string: ill-formed UTF-8 byte"; return false; } } return true; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::next_byte_in_range(std::initializer_list<int>): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %r14 movsbl 0x14(%rdi), %esi leaq 0x50(%rdi), %r12 movq %r12, %rdi callq 0x1e070 movb $0x1, %bl testq %r13, %r13 je 0x27f1a leaq (%r15,%r13,4), %r13 movq %r14, %rdi callq 0x1e8a0 movl 0x14(%r14), %eax cmpl %eax, (%r15) jg 0x27f26 cmpl 0x4(%r15), %eax jg 0x27f26 movsbl %al, %esi movq %r12, %rdi callq 0x1e070 addq $0x8, %r15 cmpq %r13, %r15 jne 0x27eef movl %ebx, %eax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq leaq 0xa2b62(%rip), %rax # 0xcaa8f movq %rax, 0x70(%r14) xorl %ebx, %ebx jmp 0x27f1a nop
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18next_byte_in_rangeESt16initializer_listIiE: push r15 push r14 push r13 push r12 push rbx mov r13, rdx mov r15, rsi mov r14, rdi movsx esi, byte ptr [rdi+14h] lea r12, [rdi+50h] mov rdi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov bl, 1 test r13, r13 jz short loc_27F1A lea r13, [r15+r13*4] loc_27EEF: mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) mov eax, [r14+14h] cmp [r15], eax jg short loc_27F26 cmp eax, [r15+4] jg short loc_27F26 movsx esi, al mov rdi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) add r15, 8 cmp r15, r13 jnz short loc_27EEF loc_27F1A: mov eax, ebx pop rbx pop r12 pop r13 pop r14 pop r15 retn loc_27F26: lea rax, aInvalidStringI; "invalid string: ill-formed UTF-8 byte" mov [r14+70h], rax xor ebx, ebx jmp short loc_27F1A
long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range( __m128i *a1, __int32 *a2, long long a3) { unsigned int v3; // ebx __int32 *v5; // r15 __int32 *v6; // r13 __int32 v7; // eax v5 = a2; std::string::push_back(&a1[5], (unsigned int)a1[1].m128i_i8[4]); LOBYTE(v3) = 1; if ( a3 ) { v6 = &a2[a3]; while ( 1 ) { nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1); v7 = a1[1].m128i_i32[1]; if ( *v5 > v7 || v7 > v5[1] ) break; std::string::push_back(&a1[5], (unsigned int)(char)v7); v5 += 2; if ( v5 == v6 ) return v3; } a1[7].m128i_i64[0] = (long long)"invalid string: ill-formed UTF-8 byte"; return 0; } return v3; }
next_byte_in_range: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R13,RDX MOV R15,RSI MOV R14,RDI MOVSX ESI,byte ptr [RDI + 0x14] LEA R12,[RDI + 0x50] MOV RDI,R12 CALL 0x0011e070 MOV BL,0x1 TEST R13,R13 JZ 0x00127f1a LEA R13,[R15 + R13*0x4] LAB_00127eef: MOV RDI,R14 CALL 0x0011e8a0 MOV EAX,dword ptr [R14 + 0x14] CMP dword ptr [R15],EAX JG 0x00127f26 CMP EAX,dword ptr [R15 + 0x4] JG 0x00127f26 MOVSX ESI,AL MOV RDI,R12 CALL 0x0011e070 ADD R15,0x8 CMP R15,R13 JNZ 0x00127eef LAB_00127f1a: MOV EAX,EBX POP RBX POP R12 POP R13 POP R14 POP R15 RET LAB_00127f26: LEA RAX,[0x1caa8f] MOV qword ptr [R14 + 0x70],RAX XOR EBX,EBX JMP 0x00127f1a
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::next_byte_in_range(std::initializer_list<int>) */ ulong nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::next_byte_in_range (lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *param_1,int *param_2,long param_3) { int *piVar1; int8 unaff_RBX; ulong uVar2; char cVar3; cVar3 = (char)param_1 + 'P'; std::__cxx11::string::push_back(cVar3); uVar2 = CONCAT71((int7)((ulong)unaff_RBX >> 8),1); if (param_3 != 0) { piVar1 = param_2 + param_3; do { get(param_1); if ((*(int *)(param_1 + 0x14) < *param_2) || (param_2[1] < *(int *)(param_1 + 0x14))) { *(char **)(param_1 + 0x70) = "invalid string: ill-formed UTF-8 byte"; uVar2 = 0; break; } std::__cxx11::string::push_back(cVar3); param_2 = param_2 + 2; } while (param_2 != piVar1); } return uVar2 & 0xffffffff; }
51,090
host_selfdestruct
corpus-core[P]colibri-stateless/src/chains/eth/verifier/call_evmone.c
static void host_selfdestruct(void* context, const evmc_address* addr, const evmc_address* beneficiary) { evmone_context_t* ctx = (evmone_context_t*) context; debug_print_address("selfdestruct account", addr); debug_print_address("selfdestruct beneficiary", beneficiary); bool created; changed_account_t* acc = create_changed_account(ctx, addr->bytes, &created); while (acc->storage) { changed_storage_t* storage = acc->storage; acc->storage = storage->next; safe_free(storage); } acc->deleted = true; EVM_LOG("selfdestruct: account marked as deleted"); }
O2
c
host_selfdestruct: pushq %rbx subq $0x10, %rsp leaq 0xf(%rsp), %rdx callq 0x29937 movq %rax, %rbx movq 0x50(%rbx), %rdi testq %rdi, %rdi je 0x2961d movq 0x40(%rdi), %rax movq %rax, 0x50(%rbx) callq 0x4aff8 jmp 0x29605 movb $0x1, 0x58(%rbx) addq $0x10, %rsp popq %rbx retq
host_selfdestruct: push rbx sub rsp, 10h lea rdx, [rsp+18h+var_9] call create_changed_account mov rbx, rax loc_29605: mov rdi, [rbx+50h] test rdi, rdi jz short loc_2961D mov rax, [rdi+40h] mov [rbx+50h], rax call safe_free jmp short loc_29605 loc_2961D: mov byte ptr [rbx+58h], 1 add rsp, 10h pop rbx retn
long long host_selfdestruct(long long a1, long long a2) { long long result; // rax long long v3; // rbx long long v4; // rdi _BYTE v5[9]; // [rsp+Fh] [rbp-9h] BYREF result = create_changed_account(a1, a2, v5); v3 = result; while ( 1 ) { v4 = *(_QWORD *)(v3 + 80); if ( !v4 ) break; *(_QWORD *)(v3 + 80) = *(_QWORD *)(v4 + 64); result = safe_free(v4); } *(_BYTE *)(v3 + 88) = 1; return result; }
host_selfdestruct: PUSH RBX SUB RSP,0x10 LEA RDX,[RSP + 0xf] CALL 0x00129937 MOV RBX,RAX LAB_00129605: MOV RDI,qword ptr [RBX + 0x50] TEST RDI,RDI JZ 0x0012961d MOV RAX,qword ptr [RDI + 0x40] MOV qword ptr [RBX + 0x50],RAX CALL 0x0014aff8 JMP 0x00129605 LAB_0012961d: MOV byte ptr [RBX + 0x58],0x1 ADD RSP,0x10 POP RBX RET
void host_selfdestruct(int8 param_1,int8 param_2) { long lVar1; int1 local_9; lVar1 = create_changed_account(param_1,param_2,&local_9); while (*(long *)(lVar1 + 0x50) != 0) { *(int8 *)(lVar1 + 0x50) = *(int8 *)(*(long *)(lVar1 + 0x50) + 0x40); safe_free(); } *(int1 *)(lVar1 + 0x58) = 1; return; }
51,091
unicode_get_cc
bluesky950520[P]quickjs/libunicode.c
static int unicode_get_cc(uint32_t c) { uint32_t code, n, type, cc, c1, b; int pos; const uint8_t *p; pos = get_index_pos(&code, c, unicode_cc_index, sizeof(unicode_cc_index) / 3); if (pos < 0) return 0; p = unicode_cc_table + pos; for(;;) { b = *p++; type = b >> 6; n = b & 0x3f; if (n < 48) { } else if (n < 56) { n = (n - 48) << 8; n |= *p++; n += 48; } else { n = (n - 56) << 8; n |= *p++ << 8; n |= *p++; n += 48 + (1 << 11); } if (type <= 1) p++; c1 = code + n + 1; if (c < c1) { switch(type) { case 0: cc = p[-1]; break; case 1: cc = p[-1] + c - code; break; case 2: cc = 0; break; default: case 3: cc = 230; break; } return cc; } code = c1; } }
O0
c
unicode_get_cc: subq $0x38, %rsp movl %edi, 0x30(%rsp) movl 0x30(%rsp), %esi leaq 0x2c(%rsp), %rdi leaq 0x13dd8(%rip), %rdx # 0x118010 movl $0x1d, %ecx callq 0x106410 movl %eax, 0x14(%rsp) cmpl $0x0, 0x14(%rsp) jge 0x10425a movl $0x0, 0x34(%rsp) jmp 0x1043df movslq 0x14(%rsp), %rcx leaq 0x13e0a(%rip), %rax # 0x118070 addq %rcx, %rax movq %rax, 0x8(%rsp) movq 0x8(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x8(%rsp) movzbl (%rax), %eax movl %eax, 0x18(%rsp) movl 0x18(%rsp), %eax shrl $0x6, %eax movl %eax, 0x24(%rsp) movl 0x18(%rsp), %eax andl $0x3f, %eax movl %eax, 0x28(%rsp) cmpl $0x30, 0x28(%rsp) jae 0x1042a8 jmp 0x10433e cmpl $0x38, 0x28(%rsp) jae 0x1042e6 movl 0x28(%rsp), %eax subl $0x30, %eax shll $0x8, %eax movl %eax, 0x28(%rsp) movq 0x8(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x8(%rsp) movzbl (%rax), %eax orl 0x28(%rsp), %eax movl %eax, 0x28(%rsp) movl 0x28(%rsp), %eax addl $0x30, %eax movl %eax, 0x28(%rsp) jmp 0x10433c movl 0x28(%rsp), %eax subl $0x38, %eax shll $0x8, %eax movl %eax, 0x28(%rsp) movq 0x8(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x8(%rsp) movzbl (%rax), %eax shll $0x8, %eax orl 0x28(%rsp), %eax movl %eax, 0x28(%rsp) movq 0x8(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x8(%rsp) movzbl (%rax), %eax orl 0x28(%rsp), %eax movl %eax, 0x28(%rsp) movl 0x28(%rsp), %eax addl $0x830, %eax # imm = 0x830 movl %eax, 0x28(%rsp) jmp 0x10433e cmpl $0x1, 0x24(%rsp) ja 0x104353 movq 0x8(%rsp), %rax addq $0x1, %rax movq %rax, 0x8(%rsp) movl 0x2c(%rsp), %eax addl 0x28(%rsp), %eax addl $0x1, %eax movl %eax, 0x1c(%rsp) movl 0x30(%rsp), %eax cmpl 0x1c(%rsp), %eax jae 0x1043d2 movl 0x24(%rsp), %eax movq %rax, (%rsp) subq $0x3, %rax ja 0x1043be movq (%rsp), %rax leaq 0xd0b3(%rip), %rcx # 0x111438 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x8(%rsp), %rax movzbl -0x1(%rax), %eax movl %eax, 0x20(%rsp) jmp 0x1043c8 movq 0x8(%rsp), %rax movzbl -0x1(%rax), %eax addl 0x30(%rsp), %eax subl 0x2c(%rsp), %eax movl %eax, 0x20(%rsp) jmp 0x1043c8 movl $0x0, 0x20(%rsp) jmp 0x1043c8 jmp 0x1043c0 movl $0xe6, 0x20(%rsp) movl 0x20(%rsp), %eax movl %eax, 0x34(%rsp) jmp 0x1043df movl 0x1c(%rsp), %eax movl %eax, 0x2c(%rsp) jmp 0x10426e movl 0x34(%rsp), %eax addq $0x38, %rsp retq nopl (%rax,%rax)
unicode_get_cc: sub rsp, 38h mov [rsp+38h+var_8], edi mov esi, [rsp+38h+var_8] lea rdi, [rsp+38h+var_C] lea rdx, unicode_cc_index mov ecx, 1Dh call get_index_pos mov [rsp+38h+var_24], eax cmp [rsp+38h+var_24], 0 jge short loc_10425A mov [rsp+38h+var_4], 0 jmp loc_1043DF loc_10425A: movsxd rcx, [rsp+38h+var_24] lea rax, unicode_cc_table add rax, rcx mov [rsp+38h+var_30], rax loc_10426E: mov rax, [rsp+38h+var_30] mov rcx, rax add rcx, 1 mov [rsp+38h+var_30], rcx movzx eax, byte ptr [rax] mov [rsp+38h+var_20], eax mov eax, [rsp+38h+var_20] shr eax, 6 mov [rsp+38h+var_14], eax mov eax, [rsp+38h+var_20] and eax, 3Fh mov [rsp+38h+var_10], eax cmp [rsp+38h+var_10], 30h ; '0' jnb short loc_1042A8 jmp loc_10433E loc_1042A8: cmp [rsp+38h+var_10], 38h ; '8' jnb short loc_1042E6 mov eax, [rsp+38h+var_10] sub eax, 30h ; '0' shl eax, 8 mov [rsp+38h+var_10], eax mov rax, [rsp+38h+var_30] mov rcx, rax add rcx, 1 mov [rsp+38h+var_30], rcx movzx eax, byte ptr [rax] or eax, [rsp+38h+var_10] mov [rsp+38h+var_10], eax mov eax, [rsp+38h+var_10] add eax, 30h ; '0' mov [rsp+38h+var_10], eax jmp short loc_10433C loc_1042E6: mov eax, [rsp+38h+var_10] sub eax, 38h ; '8' shl eax, 8 mov [rsp+38h+var_10], eax mov rax, [rsp+38h+var_30] mov rcx, rax add rcx, 1 mov [rsp+38h+var_30], rcx movzx eax, byte ptr [rax] shl eax, 8 or eax, [rsp+38h+var_10] mov [rsp+38h+var_10], eax mov rax, [rsp+38h+var_30] mov rcx, rax add rcx, 1 mov [rsp+38h+var_30], rcx movzx eax, byte ptr [rax] or eax, [rsp+38h+var_10] mov [rsp+38h+var_10], eax mov eax, [rsp+38h+var_10] add eax, 830h mov [rsp+38h+var_10], eax loc_10433C: jmp short $+2 loc_10433E: cmp [rsp+38h+var_14], 1 ja short loc_104353 mov rax, [rsp+38h+var_30] add rax, 1 mov [rsp+38h+var_30], rax loc_104353: mov eax, [rsp+38h+var_C] add eax, [rsp+38h+var_10] add eax, 1 mov [rsp+38h+var_1C], eax mov eax, [rsp+38h+var_8] cmp eax, [rsp+38h+var_1C] jnb short loc_1043D2 mov eax, [rsp+38h+var_14] mov [rsp+38h+var_38], rax sub rax, 3; switch 4 cases ja short def_10438C; jumptable 000000000010438C default case mov rax, [rsp+38h+var_38] lea rcx, jpt_10438C movsxd rax, ds:(jpt_10438C - 111438h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_10438E: mov rax, [rsp+38h+var_30]; jumptable 000000000010438C case 0 movzx eax, byte ptr [rax-1] mov [rsp+38h+var_18], eax jmp short loc_1043C8 loc_10439D: mov rax, [rsp+38h+var_30]; jumptable 000000000010438C case 1 movzx eax, byte ptr [rax-1] add eax, [rsp+38h+var_8] sub eax, [rsp+38h+var_C] mov [rsp+38h+var_18], eax jmp short loc_1043C8 loc_1043B4: mov [rsp+38h+var_18], 0; jumptable 000000000010438C case 2 jmp short loc_1043C8 def_10438C: jmp short $+2; jumptable 000000000010438C default case loc_1043C0: mov [rsp+38h+var_18], 0E6h; jumptable 000000000010438C case 3 loc_1043C8: mov eax, [rsp+38h+var_18] mov [rsp+38h+var_4], eax jmp short loc_1043DF loc_1043D2: mov eax, [rsp+38h+var_1C] mov [rsp+38h+var_C], eax jmp loc_10426E loc_1043DF: mov eax, [rsp+38h+var_4] add rsp, 38h retn
long long unicode_get_cc(unsigned int a1) { unsigned __int8 *v1; // rax unsigned __int8 *v2; // rax unsigned __int8 *v3; // rax unsigned __int8 *v5; // [rsp+8h] [rbp-30h] int index_pos; // [rsp+14h] [rbp-24h] unsigned int v7; // [rsp+18h] [rbp-20h] unsigned int v8; // [rsp+20h] [rbp-18h] unsigned int v9; // [rsp+24h] [rbp-14h] unsigned int v10; // [rsp+28h] [rbp-10h] int v11; // [rsp+28h] [rbp-10h] int v12; // [rsp+2Ch] [rbp-Ch] BYREF unsigned int v13; // [rsp+30h] [rbp-8h] v13 = a1; index_pos = get_index_pos(&v12, a1, &unicode_cc_index, 29LL); if ( index_pos >= 0 ) { v5 = (unsigned __int8 *)&unicode_cc_table + index_pos; while ( 1 ) { v1 = v5++; v7 = *v1; v9 = v7 >> 6; v10 = v7 & 0x3F; if ( v10 >= 0x30 ) { if ( v10 >= 0x38 ) { v11 = ((v10 - 56) << 8) | (*v5 << 8); v3 = v5 + 1; v5 += 2; v10 = (v11 | *v3) + 2096; } else { v2 = v5++; v10 = (((v10 - 48) << 8) | *v2) + 48; } } if ( v9 <= 1 ) ++v5; if ( v13 < v10 + v12 + 1 ) break; v12 += v10 + 1; } switch ( v9 ) { case 0u: v8 = *(v5 - 1); break; case 1u: v8 = v13 + *(v5 - 1) - v12; break; case 2u: v8 = 0; break; default: v8 = 230; break; } return v8; } else { return 0; } }
51,092
unicode_get_cc
bluesky950520[P]quickjs/libunicode.c
static int unicode_get_cc(uint32_t c) { uint32_t code, n, type, cc, c1, b; int pos; const uint8_t *p; pos = get_index_pos(&code, c, unicode_cc_index, sizeof(unicode_cc_index) / 3); if (pos < 0) return 0; p = unicode_cc_table + pos; for(;;) { b = *p++; type = b >> 6; n = b & 0x3f; if (n < 48) { } else if (n < 56) { n = (n - 48) << 8; n |= *p++; n += 48; } else { n = (n - 56) << 8; n |= *p++ << 8; n |= *p++; n += 48 + (1 << 11); } if (type <= 1) p++; c1 = code + n + 1; if (c < c1) { switch(type) { case 0: cc = p[-1]; break; case 1: cc = p[-1] + c - code; break; case 2: cc = 0; break; default: case 3: cc = 230; break; } return cc; } code = c1; } }
O3
c
unicode_get_cc: pushq %rbx subq $0x10, %rsp movl %edi, %ebx leaq 0x10f80(%rip), %rdx # 0xabb90 leaq 0xc(%rsp), %rdi movl %ebx, %esi movl $0x1d, %ecx callq 0x9c27e movl %eax, %ecx xorl %eax, %eax testl %ecx, %ecx js 0x9acd0 movl %ecx, %ecx leaq 0x10fba(%rip), %rdx # 0xabbf0 addq %rcx, %rdx movl 0xc(%rsp), %edi movl %edi, %ecx movzbl (%rdx), %esi movl %esi, %edi andl $0x3f, %edi cmpl $0x30, %edi jae 0x9ac51 incq %rdx jmp 0x9ac90 cmpl $0x37, %edi ja 0x9ac6d shll $0x8, %edi movzbl 0x1(%rdx), %r8d addq $0x2, %rdx addl %r8d, %edi addl $0xffffd030, %edi # imm = 0xFFFFD030 jmp 0x9ac90 movzbl 0x1(%rdx), %r8d addl $0xffffc8, %edi # imm = 0xFFFFC8 orl %r8d, %edi shll $0x8, %edi movzbl 0x2(%rdx), %r8d addq $0x3, %rdx addl %r8d, %edi addl $0x830, %edi # imm = 0x830 movq %rdx, %r8 xorl %edx, %edx testb %sil, %sil setns %dl addq %r8, %rdx addl %ecx, %edi incl %edi cmpl %ebx, %edi jbe 0x9ac3d shrl $0x6, %esi leaq 0xa334(%rip), %rdi # 0xa4fe4 movslq (%rdi,%rsi,4), %rsi addq %rdi, %rsi jmpq *%rsi movzbl -0x1(%rdx), %eax jmp 0x9acd0 movzbl -0x1(%rdx), %eax subl %ecx, %ebx addl %eax, %ebx movl %ebx, %eax jmp 0x9acd0 movl $0xe6, %eax addq $0x10, %rsp popq %rbx retq
unicode_get_cc: push rbx sub rsp, 10h mov ebx, edi lea rdx, unicode_cc_index lea rdi, [rsp+18h+var_C] mov esi, ebx mov ecx, 1Dh call get_index_pos mov ecx, eax xor eax, eax test ecx, ecx js loc_9ACD0; jumptable 000000000009ACB7 case 2 mov ecx, ecx lea rdx, unicode_cc_table add rdx, rcx mov edi, [rsp+18h+var_C] loc_9AC3D: mov ecx, edi movzx esi, byte ptr [rdx] mov edi, esi and edi, 3Fh cmp edi, 30h ; '0' jnb short loc_9AC51 inc rdx jmp short loc_9AC90 loc_9AC51: cmp edi, 37h ; '7' ja short loc_9AC6D shl edi, 8 movzx r8d, byte ptr [rdx+1] add rdx, 2 add edi, r8d add edi, 0FFFFD030h jmp short loc_9AC90 loc_9AC6D: movzx r8d, byte ptr [rdx+1] add edi, 0FFFFC8h or edi, r8d shl edi, 8 movzx r8d, byte ptr [rdx+2] add rdx, 3 add edi, r8d add edi, 830h loc_9AC90: mov r8, rdx xor edx, edx test sil, sil setns dl add rdx, r8 add edi, ecx inc edi cmp edi, ebx jbe short loc_9AC3D shr esi, 6 lea rdi, jpt_9ACB7 movsxd rsi, ds:(jpt_9ACB7 - 0A4FE4h)[rdi+rsi*4]; switch 4 cases add rsi, rdi jmp rsi; switch jump loc_9ACB9: movzx eax, byte ptr [rdx-1]; jumptable 000000000009ACB7 case 0 jmp short loc_9ACD0; jumptable 000000000009ACB7 case 2 loc_9ACBF: movzx eax, byte ptr [rdx-1]; jumptable 000000000009ACB7 case 1 sub ebx, ecx add ebx, eax mov eax, ebx jmp short loc_9ACD0; jumptable 000000000009ACB7 case 2 loc_9ACCB: mov eax, 0E6h; jumptable 000000000009ACB7 case 3 loc_9ACD0: add rsp, 10h; jumptable 000000000009ACB7 case 2 pop rbx retn
long long unicode_get_cc(unsigned int a1) { int index_pos; // ecx long long result; // rax _BYTE *v4; // rdx unsigned int v5; // edi unsigned int v6; // ecx unsigned int v7; // esi unsigned int v8; // edi _BYTE *v9; // rdx int v10; // r8d int v11; // edi int v12; // r8d unsigned int v13[3]; // [rsp+Ch] [rbp-Ch] BYREF index_pos = get_index_pos(v13, a1); result = 0LL; if ( index_pos >= 0 ) { v4 = (char *)&unicode_cc_table + (unsigned int)index_pos; v5 = v13[0]; do { v6 = v5; v7 = (unsigned __int8)*v4; v8 = *v4 & 0x3F; if ( v8 >= 0x30 ) { if ( v8 > 0x37 ) { v11 = ((unsigned __int8)v4[1] | (v8 + 16777160)) << 8; v12 = (unsigned __int8)v4[2]; v9 = v4 + 3; v8 = v12 + v11 + 2096; } else { v10 = (unsigned __int8)v4[1]; v9 = v4 + 2; v8 = v10 + (v8 << 8) - 12240; } } else { v9 = v4 + 1; } v4 = &v9[(v7 & 0x80u) == 0]; v5 = v6 + v8 + 1; } while ( v5 <= a1 ); switch ( v7 >> 6 ) { case 0u: result = (unsigned __int8)*(v4 - 1); break; case 1u: result = (unsigned __int8)*(v4 - 1) + a1 - v6; break; case 2u: return result; case 3u: result = 230LL; break; } } return result; }
unicode_get_cc: PUSH RBX SUB RSP,0x10 MOV EBX,EDI LEA RDX,[0x1abb90] LEA RDI,[RSP + 0xc] MOV ESI,EBX MOV ECX,0x1d CALL 0x0019c27e MOV ECX,EAX XOR EAX,EAX TEST ECX,ECX JS 0x0019acd0 MOV ECX,ECX LEA RDX,[0x1abbf0] ADD RDX,RCX MOV EDI,dword ptr [RSP + 0xc] LAB_0019ac3d: MOV ECX,EDI MOVZX ESI,byte ptr [RDX] MOV EDI,ESI AND EDI,0x3f CMP EDI,0x30 JNC 0x0019ac51 INC RDX JMP 0x0019ac90 LAB_0019ac51: CMP EDI,0x37 JA 0x0019ac6d SHL EDI,0x8 MOVZX R8D,byte ptr [RDX + 0x1] ADD RDX,0x2 ADD EDI,R8D ADD EDI,0xffffd030 JMP 0x0019ac90 LAB_0019ac6d: MOVZX R8D,byte ptr [RDX + 0x1] ADD EDI,0xffffc8 OR EDI,R8D SHL EDI,0x8 MOVZX R8D,byte ptr [RDX + 0x2] ADD RDX,0x3 ADD EDI,R8D ADD EDI,0x830 LAB_0019ac90: MOV R8,RDX XOR EDX,EDX TEST SIL,SIL SETNS DL ADD RDX,R8 ADD EDI,ECX INC EDI CMP EDI,EBX JBE 0x0019ac3d SHR ESI,0x6 LEA RDI,[0x1a4fe4] MOVSXD RSI,dword ptr [RDI + RSI*0x4] ADD RSI,RDI JMP RSI LAB_0019acd0: ADD RSP,0x10 POP RBX RET
int8 unicode_get_cc(uint param_1) { byte bVar1; uint uVar2; int8 uVar3; byte *pbVar4; byte *pbVar5; uint local_c; uVar2 = get_index_pos(&local_c,param_1,unicode_cc_index,0x1d); if (-1 < (int)uVar2) { pbVar4 = unicode_cc_table + uVar2; do { bVar1 = *pbVar4; uVar2 = bVar1 & 0x3f; if (uVar2 < 0x30) { pbVar5 = pbVar4 + 1; } else if (uVar2 < 0x38) { pbVar5 = pbVar4 + 2; uVar2 = (uVar2 * 0x100 + (uint)pbVar4[1]) - 0x2fd0; } else { pbVar5 = pbVar4 + 3; uVar2 = (uVar2 + 0xffffc8 | (uint)pbVar4[1]) * 0x100 + (uint)pbVar4[2] + 0x830; } pbVar4 = pbVar5 + (-1 < (char)bVar1); local_c = uVar2 + local_c + 1; } while (local_c <= param_1); /* WARNING: Could not recover jumptable at 0x0019acb7. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar3 = (*(code *)(&DAT_001a4fe4 + *(int *)(&DAT_001a4fe4 + (ulong)(bVar1 >> 6) * 4))) (&DAT_001a4fe4, &DAT_001a4fe4 + *(int *)(&DAT_001a4fe4 + (ulong)(bVar1 >> 6) * 4)); return uVar3; } return 0; }
51,093
reciprocal_fr
corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/recip.c
static void reciprocal_fr(vec256 out, const vec256 inp) { static const vec256 rx2 = { /* left-aligned value of the modulus */ TO_LIMB_T(0xfffffffe00000002), TO_LIMB_T(0xa77b4805fffcb7fd), TO_LIMB_T(0x6673b0101343b00a), TO_LIMB_T(0xe7db4ea6533afa90), }; vec512 temp; ct_inverse_mod_256(temp, inp, BLS12_381_r, rx2); redc_mont_256(out, temp, BLS12_381_r, r0); mul_mont_sparse_256(out, out, BLS12_381_rRR, BLS12_381_r, r0); }
O2
c
reciprocal_fr: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rdi, %rbx leaq 0x275b6(%rip), %r14 # 0x7fa50 leaq 0x2942f(%rip), %rcx # 0x818d0 leaq -0x60(%rbp), %r15 movq %r15, %rdi movq %r14, %rdx callq 0x6aea0 movabsq $-0x100000001, %r12 # imm = 0xFFFFFFFEFFFFFFFF movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx movq %r12, %rcx callq 0x6a780 leaq 0x27a8e(%rip), %rdx # 0x7ff60 movq %rbx, %rdi movq %rbx, %rsi movq %r14, %rcx movq %r12, %r8 callq 0x6a2c0 addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
reciprocal_fr: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 40h mov rbx, rdi lea r14, BLS12_381_r lea rcx, reciprocal_fr_rx2 lea r15, [rbp+var_60] mov rdi, r15 mov rdx, r14 call ct_inverse_mod_256 mov r12, 0FFFFFFFEFFFFFFFFh mov rdi, rbx mov rsi, r15 mov rdx, r14 mov rcx, r12 call redc_mont_256 lea rdx, BLS12_381_rRR mov rdi, rbx mov rsi, rbx mov rcx, r14 mov r8, r12 call mul_mont_sparse_256 add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long reciprocal_fr(long long a1, long long a2) { _BYTE v3[96]; // [rsp+0h] [rbp-60h] BYREF ct_inverse_mod_256(v3, a2, &BLS12_381_r, &reciprocal_fr_rx2); redc_mont_256(a1, v3, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL); return mul_mont_sparse_256(a1, a1, &BLS12_381_rRR, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL); }
reciprocal_fr: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV RBX,RDI LEA R14,[0x17fa50] LEA RCX,[0x1818d0] LEA R15,[RBP + -0x60] MOV RDI,R15 MOV RDX,R14 CALL 0x0016aea0 MOV R12,-0x100000001 MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 MOV RCX,R12 CALL 0x0016a780 LEA RDX,[0x17ff60] MOV RDI,RBX MOV RSI,RBX MOV RCX,R14 MOV R8,R12 CALL 0x0016a2c0 ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET
void reciprocal_fr(int8 param_1,int8 param_2) { int1 local_68 [64]; ct_inverse_mod_256(local_68,param_2,BLS12_381_r,reciprocal_fr_rx2); redc_mont_256(param_1,local_68,BLS12_381_r,0xfffffffeffffffff); mul_mont_sparse_256(param_1,param_1,BLS12_381_rRR,BLS12_381_r,0xfffffffeffffffff); return; }
51,094
my_mb_wc_sjis
eloqsql/strings/ctype-sjis.c
static int my_mb_wc_sjis(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s, const uchar *e){ int hi; if (s >= e) return MY_CS_TOOSMALL; if ((hi= s[0]) < 0x80) /* ASCII: [00..7F] -> [U+0000..U+007F] */ { *pwc= hi; return 1; } /* JIS-X-0201 Half width Katakana: [A1..DF] -> [U+FF61..U+FF9F] */ if (hi >= 0xA1 && hi <= 0xDF) { *pwc= sjis_to_unicode[hi]; return 1; } if (s + 2 > e) return MY_CS_TOOSMALL2; /* JIS-X-0208 [81..9F,E0..FC][40..7E,80..FC] */ if (!(pwc[0]= sjis_to_unicode[(hi << 8) + s[1]])) return (issjishead(hi) && issjistail(s[1])) ? -2 : MY_CS_ILSEQ; return 2; }
O0
c
my_mb_wc_sjis: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0xfac6a movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0xfadc8 movq -0x20(%rbp), %rax movzbl (%rax), %eax movl %eax, -0x2c(%rbp) cmpl $0x80, %eax jge 0xfac92 movslq -0x2c(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x1, -0x4(%rbp) jmp 0xfadc8 cmpl $0xa1, -0x2c(%rbp) jl 0xfacc8 cmpl $0xdf, -0x2c(%rbp) jg 0xfacc8 movslq -0x2c(%rbp), %rcx leaq 0x262841(%rip), %rax # 0x35d4f0 movzwl (%rax,%rcx,2), %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x1, -0x4(%rbp) jmp 0xfadc8 movq -0x20(%rbp), %rax addq $0x2, %rax cmpq -0x28(%rbp), %rax jbe 0xface2 movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A jmp 0xfadc8 movl -0x2c(%rbp), %eax shll $0x8, %eax movq -0x20(%rbp), %rcx movzbl 0x1(%rcx), %ecx addl %ecx, %eax movslq %eax, %rcx leaq 0x2627f4(%rip), %rax # 0x35d4f0 movzwl (%rax,%rcx,2), %eax movq -0x18(%rbp), %rcx movq %rax, (%rcx) cmpq $0x0, %rax jne 0xfadc1 movl -0x2c(%rbp), %eax movzbl %al, %ecx movl $0x81, %eax cmpl %ecx, %eax jg 0xfad2d movl -0x2c(%rbp), %eax movzbl %al, %eax cmpl $0x9f, %eax jle 0xfad54 movl -0x2c(%rbp), %eax movzbl %al, %edx xorl %eax, %eax movl $0xe0, %ecx cmpl %edx, %ecx movb %al, -0x2d(%rbp) jg 0xfadac movl -0x2c(%rbp), %eax movzbl %al, %ecx xorl %eax, %eax cmpl $0xfc, %ecx movb %al, -0x2d(%rbp) jg 0xfadac movq -0x20(%rbp), %rax movzbl 0x1(%rax), %ecx movl $0x40, %eax cmpl %ecx, %eax jg 0xfad77 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %ecx movb $0x1, %al cmpl $0x7e, %ecx movb %al, -0x2e(%rbp) jle 0xfada6 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %edx xorl %eax, %eax movl $0x80, %ecx cmpl %edx, %ecx movb %al, -0x2f(%rbp) jg 0xfada0 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0xfc, %eax setle %al movb %al, -0x2f(%rbp) movb -0x2f(%rbp), %al movb %al, -0x2e(%rbp) movb -0x2e(%rbp), %al movb %al, -0x2d(%rbp) movb -0x2d(%rbp), %dl xorl %eax, %eax movl $0xfffffffe, %ecx # imm = 0xFFFFFFFE testb $0x1, %dl cmovnel %ecx, %eax movl %eax, -0x4(%rbp) jmp 0xfadc8 movl $0x2, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopl (%rax)
my_mb_wc_sjis: 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_20] cmp rax, [rbp+var_28] jb short loc_FAC6A mov [rbp+var_4], 0FFFFFF9Bh jmp loc_FADC8 loc_FAC6A: mov rax, [rbp+var_20] movzx eax, byte ptr [rax] mov [rbp+var_2C], eax cmp eax, 80h jge short loc_FAC92 movsxd rcx, [rbp+var_2C] mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 1 jmp loc_FADC8 loc_FAC92: cmp [rbp+var_2C], 0A1h jl short loc_FACC8 cmp [rbp+var_2C], 0DFh jg short loc_FACC8 movsxd rcx, [rbp+var_2C] lea rax, sjis_to_unicode movzx eax, word ptr [rax+rcx*2] mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 1 jmp loc_FADC8 loc_FACC8: mov rax, [rbp+var_20] add rax, 2 cmp rax, [rbp+var_28] jbe short loc_FACE2 mov [rbp+var_4], 0FFFFFF9Ah jmp loc_FADC8 loc_FACE2: mov eax, [rbp+var_2C] shl eax, 8 mov rcx, [rbp+var_20] movzx ecx, byte ptr [rcx+1] add eax, ecx movsxd rcx, eax lea rax, sjis_to_unicode movzx eax, word ptr [rax+rcx*2] mov rcx, [rbp+var_18] mov [rcx], rax cmp rax, 0 jnz loc_FADC1 mov eax, [rbp+var_2C] movzx ecx, al mov eax, 81h cmp eax, ecx jg short loc_FAD2D mov eax, [rbp+var_2C] movzx eax, al cmp eax, 9Fh jle short loc_FAD54 loc_FAD2D: mov eax, [rbp+var_2C] movzx edx, al xor eax, eax mov ecx, 0E0h cmp ecx, edx mov [rbp+var_2D], al jg short loc_FADAC mov eax, [rbp+var_2C] movzx ecx, al xor eax, eax cmp ecx, 0FCh mov [rbp+var_2D], al jg short loc_FADAC loc_FAD54: mov rax, [rbp+var_20] movzx ecx, byte ptr [rax+1] mov eax, 40h ; '@' cmp eax, ecx jg short loc_FAD77 mov rax, [rbp+var_20] movzx ecx, byte ptr [rax+1] mov al, 1 cmp ecx, 7Eh ; '~' mov [rbp+var_2E], al jle short loc_FADA6 loc_FAD77: mov rax, [rbp+var_20] movzx edx, byte ptr [rax+1] xor eax, eax mov ecx, 80h cmp ecx, edx mov [rbp+var_2F], al jg short loc_FADA0 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 0FCh setle al mov [rbp+var_2F], al loc_FADA0: mov al, [rbp+var_2F] mov [rbp+var_2E], al loc_FADA6: mov al, [rbp+var_2E] mov [rbp+var_2D], al loc_FADAC: mov dl, [rbp+var_2D] xor eax, eax mov ecx, 0FFFFFFFEh test dl, 1 cmovnz eax, ecx mov [rbp+var_4], eax jmp short loc_FADC8 loc_FADC1: mov [rbp+var_4], 2 loc_FADC8: mov eax, [rbp+var_4] pop rbp retn
long long my_mb_wc_sjis(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4) { long long v4; // rax unsigned int v5; // eax bool v7; // [rsp+1h] [rbp-2Fh] char v8; // [rsp+2h] [rbp-2Eh] char v9; // [rsp+3h] [rbp-2Dh] unsigned int v10; // [rsp+4h] [rbp-2Ch] if ( (unsigned long long)a3 < a4 ) { v10 = *a3; if ( v10 >= 0x80 ) { if ( *a3 < 0xA1u || *a3 > 0xDFu ) { if ( (unsigned long long)(a3 + 2) <= a4 ) { v4 = sjis_to_unicode[a3[1] + (v10 << 8)]; *a2 = v4; if ( v4 ) { return 2; } else { if ( (unsigned __int8)v10 >= 0x81u && (unsigned __int8)v10 <= 0x9Fu || (v9 = 0, (unsigned __int8)v10 >= 0xE0u) && (v9 = 0, (unsigned __int8)v10 <= 0xFCu) ) { if ( a3[1] < 0x40u || (v8 = 1, a3[1] > 0x7Eu) ) { v7 = 0; if ( a3[1] >= 0x80u ) v7 = a3[1] <= 0xFCu; v8 = v7; } v9 = v8; } v5 = 0; if ( (v9 & 1) != 0 ) return (unsigned int)-2; return v5; } } else { return (unsigned int)-102; } } else { *a2 = sjis_to_unicode[*a3]; return 1; } } else { *a2 = *a3; return 1; } } else { return (unsigned int)-101; } }
my_mb_wc_sjis: 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 + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x001fac6a MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x001fadc8 LAB_001fac6a: MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x80 JGE 0x001fac92 MOVSXD RCX,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x1 JMP 0x001fadc8 LAB_001fac92: CMP dword ptr [RBP + -0x2c],0xa1 JL 0x001facc8 CMP dword ptr [RBP + -0x2c],0xdf JG 0x001facc8 MOVSXD RCX,dword ptr [RBP + -0x2c] LEA RAX,[0x45d4f0] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x1 JMP 0x001fadc8 LAB_001facc8: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x28] JBE 0x001face2 MOV dword ptr [RBP + -0x4],0xffffff9a JMP 0x001fadc8 LAB_001face2: MOV EAX,dword ptr [RBP + -0x2c] SHL EAX,0x8 MOV RCX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RCX + 0x1] ADD EAX,ECX MOVSXD RCX,EAX LEA RAX,[0x45d4f0] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RCX],RAX CMP RAX,0x0 JNZ 0x001fadc1 MOV EAX,dword ptr [RBP + -0x2c] MOVZX ECX,AL MOV EAX,0x81 CMP EAX,ECX JG 0x001fad2d MOV EAX,dword ptr [RBP + -0x2c] MOVZX EAX,AL CMP EAX,0x9f JLE 0x001fad54 LAB_001fad2d: MOV EAX,dword ptr [RBP + -0x2c] MOVZX EDX,AL XOR EAX,EAX MOV ECX,0xe0 CMP ECX,EDX MOV byte ptr [RBP + -0x2d],AL JG 0x001fadac MOV EAX,dword ptr [RBP + -0x2c] MOVZX ECX,AL XOR EAX,EAX CMP ECX,0xfc MOV byte ptr [RBP + -0x2d],AL JG 0x001fadac LAB_001fad54: MOV RAX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RAX + 0x1] MOV EAX,0x40 CMP EAX,ECX JG 0x001fad77 MOV RAX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RAX + 0x1] MOV AL,0x1 CMP ECX,0x7e MOV byte ptr [RBP + -0x2e],AL JLE 0x001fada6 LAB_001fad77: MOV RAX,qword ptr [RBP + -0x20] MOVZX EDX,byte ptr [RAX + 0x1] XOR EAX,EAX MOV ECX,0x80 CMP ECX,EDX MOV byte ptr [RBP + -0x2f],AL JG 0x001fada0 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0xfc SETLE AL MOV byte ptr [RBP + -0x2f],AL LAB_001fada0: MOV AL,byte ptr [RBP + -0x2f] MOV byte ptr [RBP + -0x2e],AL LAB_001fada6: MOV AL,byte ptr [RBP + -0x2e] MOV byte ptr [RBP + -0x2d],AL LAB_001fadac: MOV DL,byte ptr [RBP + -0x2d] XOR EAX,EAX MOV ECX,0xfffffffe TEST DL,0x1 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x4],EAX JMP 0x001fadc8 LAB_001fadc1: MOV dword ptr [RBP + -0x4],0x2 LAB_001fadc8: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_mb_wc_sjis(int8 param_1,ulong *param_2,byte *param_3,byte *param_4) { ushort uVar1; bool bVar2; uint uVar3; int4 local_c; if (param_3 < param_4) { uVar3 = (uint)*param_3; if (uVar3 < 0x80) { *param_2 = (long)(int)uVar3; local_c = 1; } else if ((uVar3 < 0xa1) || (0xdf < uVar3)) { if (param_4 < param_3 + 2) { local_c = 0xffffff9a; } else { uVar1 = *(ushort *)(sjis_to_unicode + (long)(int)(uVar3 * 0x100 + (uint)param_3[1]) * 2); *param_2 = (ulong)uVar1; if ((ulong)uVar1 == 0) { if ((((0x80 < uVar3) && (uVar3 < 0xa0)) || ((bVar2 = false, 0xdf < uVar3 && (bVar2 = false, uVar3 < 0xfd)))) && (((param_3[1] < 0x40 || (bVar2 = true, 0x7e < param_3[1])) && (bVar2 = false, 0x7f < param_3[1])))) { bVar2 = param_3[1] < 0xfd; } local_c = 0; if (bVar2) { local_c = 0xfffffffe; } } else { local_c = 2; } } } else { *param_2 = (ulong)*(ushort *)(sjis_to_unicode + (long)(int)uVar3 * 2); local_c = 1; } } else { local_c = 0xffffff9b; } return local_c; }
51,095
matrix_f_identity
tsotchke[P]eshkol/src/core/utils/vector.c
MatrixF* matrix_f_identity(Arena* arena, size_t dim) { assert(arena != NULL); assert(dim > 0 && dim <= VECTOR_MAX_DIM); MatrixF* mat = matrix_f_create(arena, dim, dim); if (!mat) { return NULL; } // Set the diagonal elements to 1 for (size_t i = 0; i < dim; i++) { mat->data[i][i] = 1.0f; } return mat; }
O0
c
matrix_f_identity: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) cmpq $0x0, -0x10(%rbp) je 0x7099 jmp 0x70b8 leaq 0x53da(%rip), %rdi # 0xc47a leaq 0x6319(%rip), %rsi # 0xd3c0 movl $0x494, %edx # imm = 0x494 leaq 0x6a7a(%rip), %rcx # 0xdb2d callq 0x10b0 cmpq $0x0, -0x18(%rbp) jbe 0x70c8 cmpq $0x4, -0x18(%rbp) ja 0x70c8 jmp 0x70e7 leaq 0x636d(%rip), %rdi # 0xd43c leaq 0x62ea(%rip), %rsi # 0xd3c0 movl $0x495, %edx # imm = 0x495 leaq 0x6a4b(%rip), %rcx # 0xdb2d callq 0x10b0 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x5720 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) jne 0x710d movq $0x0, -0x8(%rbp) jmp 0x7155 movq $0x0, -0x28(%rbp) movq -0x28(%rbp), %rax cmpq -0x18(%rbp), %rax jae 0x714d movq -0x20(%rbp), %rax movq -0x28(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq -0x28(%rbp), %rcx movss 0x4ed6(%rip), %xmm0 # 0xc010 movss %xmm0, (%rax,%rcx,4) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x7115 movq -0x20(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nop
matrix_f_identity: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi cmp [rbp+var_10], 0 jz short loc_7099 jmp short loc_70B8 loc_7099: lea rdi, aArenaNull; "arena != NULL" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov edx, 494h lea rcx, aMatrixfMatrixF_6; "MatrixF *matrix_f_identity(Arena *, siz"... call ___assert_fail loc_70B8: cmp [rbp+var_18], 0 jbe short loc_70C8 cmp [rbp+var_18], 4 ja short loc_70C8 jmp short loc_70E7 loc_70C8: lea rdi, aDim0DimVectorM; "dim > 0 && dim <= VECTOR_MAX_DIM" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov edx, 495h lea rcx, aMatrixfMatrixF_6; "MatrixF *matrix_f_identity(Arena *, siz"... call ___assert_fail loc_70E7: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_18] call matrix_f_create mov [rbp+var_20], rax cmp [rbp+var_20], 0 jnz short loc_710D mov [rbp+var_8], 0 jmp short loc_7155 loc_710D: mov [rbp+var_28], 0 loc_7115: mov rax, [rbp+var_28] cmp rax, [rbp+var_18] jnb short loc_714D mov rax, [rbp+var_20] mov rcx, [rbp+var_28] shl rcx, 4 add rax, rcx mov rcx, [rbp+var_28] movss xmm0, cs:dword_C010 movss dword ptr [rax+rcx*4], xmm0 mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax jmp short loc_7115 loc_714D: mov rax, [rbp+var_20] mov [rbp+var_8], rax loc_7155: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
long long matrix_f_identity(_QWORD *a1, unsigned long long a2) { unsigned long long i; // [rsp+8h] [rbp-28h] long long v4; // [rsp+10h] [rbp-20h] if ( !a1 ) __assert_fail( "arena != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c", 1172LL, "MatrixF *matrix_f_identity(Arena *, size_t)"); if ( !a2 || a2 > 4 ) __assert_fail( "dim > 0 && dim <= VECTOR_MAX_DIM", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c", 1173LL, "MatrixF *matrix_f_identity(Arena *, size_t)"); v4 = matrix_f_create(a1, a2, a2); if ( !v4 ) return 0LL; for ( i = 0LL; i < a2; ++i ) *(_DWORD *)(16 * i + v4 + 4 * i) = 1065353216; return v4; }
matrix_f_identity: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI CMP qword ptr [RBP + -0x10],0x0 JZ 0x00107099 JMP 0x001070b8 LAB_00107099: LEA RDI,[0x10c468] LEA RSI,[0x10d398] MOV EDX,0x494 LEA RCX,[0x10daf3] CALL 0x001010b0 LAB_001070b8: CMP qword ptr [RBP + -0x18],0x0 JBE 0x001070c8 CMP qword ptr [RBP + -0x18],0x4 JA 0x001070c8 JMP 0x001070e7 LAB_001070c8: LEA RDI,[0x10d402] LEA RSI,[0x10d398] MOV EDX,0x495 LEA RCX,[0x10daf3] CALL 0x001010b0 LAB_001070e7: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x18] CALL 0x00105720 MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JNZ 0x0010710d MOV qword ptr [RBP + -0x8],0x0 JMP 0x00107155 LAB_0010710d: MOV qword ptr [RBP + -0x28],0x0 LAB_00107115: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x18] JNC 0x0010714d MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x28] SHL RCX,0x4 ADD RAX,RCX MOV RCX,qword ptr [RBP + -0x28] MOVSS XMM0,dword ptr [0x0010c010] MOVSS dword ptr [RAX + RCX*0x4],XMM0 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x00107115 LAB_0010714d: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x8],RAX LAB_00107155: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
long matrix_f_identity(long param_1,ulong param_2) { ulong local_30; long local_10; if (param_1 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("arena != NULL","/workspace/llm4binary/github2025/eshkol/src/core/utils/vector.c", 0x494,"MatrixF *matrix_f_identity(Arena *, size_t)"); } if ((param_2 != 0) && (param_2 < 5)) { local_10 = matrix_f_create(param_1,param_2,param_2); if (local_10 == 0) { local_10 = 0; } else { for (local_30 = 0; local_30 < param_2; local_30 = local_30 + 1) { *(int4 *)(local_10 + local_30 * 0x14) = DAT_0010c010; } } return local_10; } /* WARNING: Subroutine does not return */ __assert_fail("dim > 0 && dim <= VECTOR_MAX_DIM", "/workspace/llm4binary/github2025/eshkol/src/core/utils/vector.c",0x495, "MatrixF *matrix_f_identity(Arena *, size_t)"); }
51,096
my_get_err_msg
eloqsql/mysys/my_error.c
const char *my_get_err_msg(uint nr) { const char *format; struct my_err_head *meh_p; /* Search for the range this error is in. */ for (meh_p= my_errmsgs_list; meh_p; meh_p= meh_p->meh_next) if (nr <= meh_p->meh_last) break; /* If we found the range this error number is in, get the format string. If the string is empty, or a NULL pointer, or if we're out of return, we return NULL. */ if (!(format= (meh_p && (nr >= meh_p->meh_first)) ? meh_p->get_errmsgs(nr)[nr - meh_p->meh_first] : NULL) || !*format) return NULL; return format; }
O0
c
my_get_err_msg: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0xc(%rbp) movq 0x1afbf6(%rip), %rax # 0x214468 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x6489a movl -0xc(%rbp), %eax movq -0x20(%rbp), %rcx cmpl 0x14(%rcx), %eax ja 0x6488b jmp 0x6489a jmp 0x6488d movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) jmp 0x64876 cmpq $0x0, -0x20(%rbp) je 0x648d0 movl -0xc(%rbp), %eax movq -0x20(%rbp), %rcx cmpl 0x10(%rcx), %eax jb 0x648d0 movq -0x20(%rbp), %rax movq 0x8(%rax), %rax movl -0xc(%rbp), %edi callq *%rax movl -0xc(%rbp), %ecx movq -0x20(%rbp), %rdx subl 0x10(%rdx), %ecx movl %ecx, %ecx movq (%rax,%rcx,8), %rax movq %rax, -0x28(%rbp) jmp 0x648d8 xorl %eax, %eax movq %rax, -0x28(%rbp) jmp 0x648d8 movq -0x28(%rbp), %rax movq %rax, -0x18(%rbp) cmpq $0x0, %rax je 0x648ef movq -0x18(%rbp), %rax cmpb $0x0, (%rax) jne 0x648f9 movq $0x0, -0x8(%rbp) jmp 0x64901 movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
my_get_err_msg: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_C], edi mov rax, cs:my_errmsgs_list mov [rbp+var_20], rax loc_64876: cmp [rbp+var_20], 0 jz short loc_6489A mov eax, [rbp+var_C] mov rcx, [rbp+var_20] cmp eax, [rcx+14h] ja short loc_6488B jmp short loc_6489A loc_6488B: jmp short $+2 loc_6488D: mov rax, [rbp+var_20] mov rax, [rax] mov [rbp+var_20], rax jmp short loc_64876 loc_6489A: cmp [rbp+var_20], 0 jz short loc_648D0 mov eax, [rbp+var_C] mov rcx, [rbp+var_20] cmp eax, [rcx+10h] jb short loc_648D0 mov rax, [rbp+var_20] mov rax, [rax+8] mov edi, [rbp+var_C] call rax mov ecx, [rbp+var_C] mov rdx, [rbp+var_20] sub ecx, [rdx+10h] mov ecx, ecx mov rax, [rax+rcx*8] mov [rbp+var_28], rax jmp short loc_648D8 loc_648D0: xor eax, eax mov [rbp+var_28], rax jmp short $+2 loc_648D8: mov rax, [rbp+var_28] mov [rbp+var_18], rax cmp rax, 0 jz short loc_648EF mov rax, [rbp+var_18] cmp byte ptr [rax], 0 jnz short loc_648F9 loc_648EF: mov [rbp+var_8], 0 jmp short loc_64901 loc_648F9: mov rax, [rbp+var_18] mov [rbp+var_8], rax loc_64901: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
_BYTE * my_get_err_msg(unsigned int a1) { _BYTE *v2; // [rsp+8h] [rbp-28h] long long *i; // [rsp+10h] [rbp-20h] for ( i = my_errmsgs_list; i && a1 > *((_DWORD *)i + 5); i = (long long *)*i ) ; if ( i && a1 >= *((_DWORD *)i + 4) ) v2 = *(_BYTE **)(((long long ( *)(_QWORD))i[1])(a1) + 8LL * (a1 - *((_DWORD *)i + 4))); else v2 = 0LL; if ( v2 && *v2 ) return v2; else return 0LL; }
my_get_err_msg: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV dword ptr [RBP + -0xc],EDI MOV RAX,qword ptr [0x00314468] MOV qword ptr [RBP + -0x20],RAX LAB_00164876: CMP qword ptr [RBP + -0x20],0x0 JZ 0x0016489a MOV EAX,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x20] CMP EAX,dword ptr [RCX + 0x14] JA 0x0016488b JMP 0x0016489a LAB_0016488b: JMP 0x0016488d LAB_0016488d: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX JMP 0x00164876 LAB_0016489a: CMP qword ptr [RBP + -0x20],0x0 JZ 0x001648d0 MOV EAX,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x20] CMP EAX,dword ptr [RCX + 0x10] JC 0x001648d0 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x8] MOV EDI,dword ptr [RBP + -0xc] CALL RAX MOV ECX,dword ptr [RBP + -0xc] MOV RDX,qword ptr [RBP + -0x20] SUB ECX,dword ptr [RDX + 0x10] MOV ECX,ECX MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x28],RAX JMP 0x001648d8 LAB_001648d0: XOR EAX,EAX MOV qword ptr [RBP + -0x28],RAX JMP 0x001648d8 LAB_001648d8: MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x18],RAX CMP RAX,0x0 JZ 0x001648ef MOV RAX,qword ptr [RBP + -0x18] CMP byte ptr [RAX],0x0 JNZ 0x001648f9 LAB_001648ef: MOV qword ptr [RBP + -0x8],0x0 JMP 0x00164901 LAB_001648f9: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX LAB_00164901: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
char * my_get_err_msg(uint param_1) { long lVar1; char *local_30; int8 *local_28; char *local_10; for (local_28 = (int8 *)my_errmsgs_list; (local_28 != (int8 *)0x0 && (*(uint *)((long)local_28 + 0x14) < param_1)); local_28 = (int8 *)*local_28) { } if ((local_28 == (int8 *)0x0) || (param_1 < *(uint *)(local_28 + 2))) { local_30 = (char *)0x0; } else { lVar1 = (*(code *)local_28[1])(param_1); local_30 = *(char **)(lVar1 + (ulong)(param_1 - *(int *)(local_28 + 2)) * 8); } if ((local_30 == (char *)0x0) || (*local_30 == '\0')) { local_10 = (char *)0x0; } else { local_10 = local_30; } return local_10; }
51,097
rtree_PrintWKB
eloqsql/storage/myisam/sp_test.c
static void rtree_PrintWKB(uchar *wkb, uint n_dims) { uint wkb_type; ++wkb; wkb_type = uint4korr(wkb); wkb += 4; switch ((enum wkbType)wkb_type) { case wkbPoint: { uint i; double ord; printf("POINT("); for (i=0; i < n_dims; ++i) { float8get(ord, wkb); wkb += 8; printf("%.14g", ord); if (i < n_dims - 1) printf(" "); else printf(")"); } break; } case wkbLineString: { uint p, i; uint n_points; double ord; printf("LineString("); n_points = uint4korr(wkb); wkb += 4; for (p=0; p < n_points; ++p) { for (i=0; i < n_dims; ++i) { float8get(ord, wkb); wkb += 8; printf("%.14g", ord); if (i < n_dims - 1) printf(" "); } if (p < n_points - 1) printf(", "); else printf(")"); } break; } case wkbPolygon: { printf("POLYGON(...)"); break; } case wkbMultiPoint: { printf("MULTIPOINT(...)"); break; } case wkbMultiLineString: { printf("MULTILINESTRING(...)"); break; } case wkbMultiPolygon: { printf("MULTIPOLYGON(...)"); break; } case wkbGeometryCollection: { printf("GEOMETRYCOLLECTION(...)"); break; } default: { printf("UNKNOWN GEOMETRY TYPE"); break; } } }
O0
c
rtree_PrintWKB: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax incq %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax movl (%rax), %eax movl %eax, -0x10(%rbp) movq -0x8(%rbp), %rax addq $0x4, %rax movq %rax, -0x8(%rbp) movl -0x10(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -0x40(%rbp) subl $0x6, %eax ja 0x29abf movq -0x40(%rbp), %rax leaq 0xae70a(%rip), %rcx # 0xd8018 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0xae9a2(%rip), %rdi # 0xd82c0 movb $0x0, %al callq 0x28050 movl $0x0, -0x14(%rbp) movl -0x14(%rbp), %eax cmpl -0xc(%rbp), %eax jae 0x29996 movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax addq $0x8, %rax movq %rax, -0x8(%rbp) movsd -0x20(%rbp), %xmm0 leaq 0xae970(%rip), %rdi # 0xd82c7 movb $0x1, %al callq 0x28050 movl -0x14(%rbp), %eax movl -0xc(%rbp), %ecx subl $0x1, %ecx cmpl %ecx, %eax jae 0x2997b leaq 0xae968(%rip), %rdi # 0xd82da movb $0x0, %al callq 0x28050 jmp 0x29989 leaq 0xae97d(%rip), %rdi # 0xd82ff movb $0x0, %al callq 0x28050 jmp 0x2998b movl -0x14(%rbp), %eax addl $0x1, %eax movl %eax, -0x14(%rbp) jmp 0x2992c jmp 0x29acd leaq 0xae92b(%rip), %rdi # 0xd82cd movb $0x0, %al callq 0x28050 movq -0x8(%rbp), %rax movl (%rax), %eax movl %eax, -0x2c(%rbp) movq -0x8(%rbp), %rax addq $0x4, %rax movq %rax, -0x8(%rbp) movl $0x0, -0x24(%rbp) movl -0x24(%rbp), %eax cmpl -0x2c(%rbp), %eax jae 0x29a6d movl $0x0, -0x28(%rbp) movl -0x28(%rbp), %eax cmpl -0xc(%rbp), %eax jae 0x29a32 movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x8(%rbp), %rax addq $0x8, %rax movq %rax, -0x8(%rbp) movsd -0x38(%rbp), %xmm0 leaq 0xae8c4(%rip), %rdi # 0xd82c7 movb $0x1, %al callq 0x28050 movl -0x28(%rbp), %eax movl -0xc(%rbp), %ecx subl $0x1, %ecx cmpl %ecx, %eax jae 0x29a25 leaq 0xae8bc(%rip), %rdi # 0xd82da movb $0x0, %al callq 0x28050 jmp 0x29a27 movl -0x28(%rbp), %eax addl $0x1, %eax movl %eax, -0x28(%rbp) jmp 0x299d8 movl -0x24(%rbp), %eax movl -0x2c(%rbp), %ecx subl $0x1, %ecx cmpl %ecx, %eax jae 0x29a4f leaq 0xae893(%rip), %rdi # 0xd82d9 movb $0x0, %al callq 0x28050 jmp 0x29a5d leaq 0xae8a9(%rip), %rdi # 0xd82ff movb $0x0, %al callq 0x28050 jmp 0x29a5f movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0x299c5 jmp 0x29acd leaq 0xae890(%rip), %rdi # 0xd8306 movb $0x0, %al callq 0x28050 jmp 0x29acd leaq 0xae856(%rip), %rdi # 0xd82dc movb $0x0, %al callq 0x28050 jmp 0x29acd leaq 0xae856(%rip), %rdi # 0xd82ec movb $0x0, %al callq 0x28050 jmp 0x29acd leaq 0xae85b(%rip), %rdi # 0xd8301 movb $0x0, %al callq 0x28050 jmp 0x29acd leaq 0xae85d(%rip), %rdi # 0xd8313 movb $0x0, %al callq 0x28050 jmp 0x29acd leaq 0xae865(%rip), %rdi # 0xd832b movb $0x0, %al callq 0x28050 addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
rtree_PrintWKB: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov rax, [rbp+var_8] inc rax mov [rbp+var_8], rax mov rax, [rbp+var_8] mov eax, [rax] mov [rbp+var_10], eax mov rax, [rbp+var_8] add rax, 4 mov [rbp+var_8], rax mov eax, [rbp+var_10] dec eax; switch 7 cases mov ecx, eax mov [rbp+var_40], rcx sub eax, 6 ja def_29915; jumptable 0000000000029915 default case mov rax, [rbp+var_40] lea rcx, jpt_29915 movsxd rax, ds:(jpt_29915 - 0D8018h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_29917: lea rdi, aPoint; jumptable 0000000000029915 case 1 mov al, 0 call _printf mov [rbp+var_14], 0 loc_2992C: mov eax, [rbp+var_14] cmp eax, [rbp+var_C] jnb short loc_29996 mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_20], rax mov rax, [rbp+var_8] add rax, 8 mov [rbp+var_8], rax movsd xmm0, [rbp+var_20] lea rdi, a14g_0; "%.14g" mov al, 1 call _printf mov eax, [rbp+var_14] mov ecx, [rbp+var_C] sub ecx, 1 cmp eax, ecx jnb short loc_2997B lea rdi, asc_D82D9+1; " " mov al, 0 call _printf jmp short loc_29989 loc_2997B: lea rdi, aMultilinestrin+13h; ")" mov al, 0 call _printf loc_29989: jmp short $+2 loc_2998B: mov eax, [rbp+var_14] add eax, 1 mov [rbp+var_14], eax jmp short loc_2992C loc_29996: jmp loc_29ACD loc_2999B: lea rdi, aLinestring; jumptable 0000000000029915 case 2 mov al, 0 call _printf mov rax, [rbp+var_8] mov eax, [rax] mov [rbp+var_2C], eax mov rax, [rbp+var_8] add rax, 4 mov [rbp+var_8], rax mov [rbp+var_24], 0 loc_299C5: mov eax, [rbp+var_24] cmp eax, [rbp+var_2C] jnb loc_29A6D mov [rbp+var_28], 0 loc_299D8: mov eax, [rbp+var_28] cmp eax, [rbp+var_C] jnb short loc_29A32 mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_8] add rax, 8 mov [rbp+var_8], rax movsd xmm0, [rbp+var_38] lea rdi, a14g_0; "%.14g" mov al, 1 call _printf mov eax, [rbp+var_28] mov ecx, [rbp+var_C] sub ecx, 1 cmp eax, ecx jnb short loc_29A25 lea rdi, asc_D82D9+1; " " mov al, 0 call _printf loc_29A25: jmp short $+2 loc_29A27: mov eax, [rbp+var_28] add eax, 1 mov [rbp+var_28], eax jmp short loc_299D8 loc_29A32: mov eax, [rbp+var_24] mov ecx, [rbp+var_2C] sub ecx, 1 cmp eax, ecx jnb short loc_29A4F lea rdi, asc_D82D9; ", " mov al, 0 call _printf jmp short loc_29A5D loc_29A4F: lea rdi, aMultilinestrin+13h; ")" mov al, 0 call _printf loc_29A5D: jmp short $+2 loc_29A5F: mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp loc_299C5 loc_29A6D: jmp short loc_29ACD loc_29A6F: lea rdi, aMultipolygon+5; jumptable 0000000000029915 case 3 mov al, 0 call _printf jmp short loc_29ACD loc_29A7F: lea rdi, aMultipoint; jumptable 0000000000029915 case 4 mov al, 0 call _printf jmp short loc_29ACD loc_29A8F: lea rdi, aMultilinestrin; jumptable 0000000000029915 case 5 mov al, 0 call _printf jmp short loc_29ACD loc_29A9F: lea rdi, aMultipolygon; jumptable 0000000000029915 case 6 mov al, 0 call _printf jmp short loc_29ACD loc_29AAF: lea rdi, aGeometrycollec; jumptable 0000000000029915 case 7 mov al, 0 call _printf jmp short loc_29ACD def_29915: lea rdi, aUnknownGeometr; jumptable 0000000000029915 default case mov al, 0 call _printf loc_29ACD: add rsp, 40h pop rbp retn
long long rtree_PrintWKB(long long a1, unsigned int a2) { long long result; // rax double v3; // [rsp+8h] [rbp-38h] unsigned int v4; // [rsp+14h] [rbp-2Ch] unsigned int k; // [rsp+18h] [rbp-28h] unsigned int j; // [rsp+1Ch] [rbp-24h] double v7; // [rsp+20h] [rbp-20h] unsigned int i; // [rsp+2Ch] [rbp-14h] double *v9; // [rsp+38h] [rbp-8h] double *v10; // [rsp+38h] [rbp-8h] v9 = (double *)(a1 + 5); switch ( *(_DWORD *)(a1 + 1) ) { case 1: printf("POINT("); for ( i = 0; ; ++i ) { result = i; if ( i >= a2 ) break; v7 = *v9++; printf("%.14g", v7); if ( i >= a2 - 1 ) printf(")"); else printf(" "); } break; case 2: printf("LineString("); v4 = *(_DWORD *)v9; v10 = (double *)(a1 + 9); for ( j = 0; ; ++j ) { result = j; if ( j >= v4 ) break; for ( k = 0; k < a2; ++k ) { v3 = *v10++; printf("%.14g", v3); if ( k < a2 - 1 ) printf(" "); } if ( j >= v4 - 1 ) printf(")"); else printf(", "); } break; case 3: result = printf("POLYGON(...)"); break; case 4: result = printf("MULTIPOINT(...)"); break; case 5: result = printf("MULTILINESTRING(...)"); break; case 6: result = printf("MULTIPOLYGON(...)"); break; case 7: result = printf("GEOMETRYCOLLECTION(...)"); break; default: result = printf("UNKNOWN GEOMETRY TYPE"); break; } return result; }
rtree_PrintWKB: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV RAX,qword ptr [RBP + -0x8] INC RAX MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x10],EAX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x4 MOV qword ptr [RBP + -0x8],RAX MOV EAX,dword ptr [RBP + -0x10] DEC EAX MOV ECX,EAX MOV qword ptr [RBP + -0x40],RCX SUB EAX,0x6 JA 0x00129abf MOV RAX,qword ptr [RBP + -0x40] LEA RCX,[0x1d8018] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: LEA RDI,[0x1d82c0] MOV AL,0x0 CALL 0x00128050 MOV dword ptr [RBP + -0x14],0x0 LAB_0012992c: MOV EAX,dword ptr [RBP + -0x14] CMP EAX,dword ptr [RBP + -0xc] JNC 0x00129996 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x8 MOV qword ptr [RBP + -0x8],RAX MOVSD XMM0,qword ptr [RBP + -0x20] LEA RDI,[0x1d82c7] MOV AL,0x1 CALL 0x00128050 MOV EAX,dword ptr [RBP + -0x14] MOV ECX,dword ptr [RBP + -0xc] SUB ECX,0x1 CMP EAX,ECX JNC 0x0012997b LEA RDI,[0x1d82da] MOV AL,0x0 CALL 0x00128050 JMP 0x00129989 LAB_0012997b: LEA RDI,[0x1d82ff] MOV AL,0x0 CALL 0x00128050 LAB_00129989: JMP 0x0012998b LAB_0012998b: MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x1 MOV dword ptr [RBP + -0x14],EAX JMP 0x0012992c LAB_00129996: JMP 0x00129acd caseD_2: LEA RDI,[0x1d82cd] MOV AL,0x0 CALL 0x00128050 MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x4 MOV qword ptr [RBP + -0x8],RAX MOV dword ptr [RBP + -0x24],0x0 LAB_001299c5: MOV EAX,dword ptr [RBP + -0x24] CMP EAX,dword ptr [RBP + -0x2c] JNC 0x00129a6d MOV dword ptr [RBP + -0x28],0x0 LAB_001299d8: MOV EAX,dword ptr [RBP + -0x28] CMP EAX,dword ptr [RBP + -0xc] JNC 0x00129a32 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x8 MOV qword ptr [RBP + -0x8],RAX MOVSD XMM0,qword ptr [RBP + -0x38] LEA RDI,[0x1d82c7] MOV AL,0x1 CALL 0x00128050 MOV EAX,dword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0xc] SUB ECX,0x1 CMP EAX,ECX JNC 0x00129a25 LEA RDI,[0x1d82da] MOV AL,0x0 CALL 0x00128050 LAB_00129a25: JMP 0x00129a27 LAB_00129a27: MOV EAX,dword ptr [RBP + -0x28] ADD EAX,0x1 MOV dword ptr [RBP + -0x28],EAX JMP 0x001299d8 LAB_00129a32: MOV EAX,dword ptr [RBP + -0x24] MOV ECX,dword ptr [RBP + -0x2c] SUB ECX,0x1 CMP EAX,ECX JNC 0x00129a4f LEA RDI,[0x1d82d9] MOV AL,0x0 CALL 0x00128050 JMP 0x00129a5d LAB_00129a4f: LEA RDI,[0x1d82ff] MOV AL,0x0 CALL 0x00128050 LAB_00129a5d: JMP 0x00129a5f LAB_00129a5f: MOV EAX,dword ptr [RBP + -0x24] ADD EAX,0x1 MOV dword ptr [RBP + -0x24],EAX JMP 0x001299c5 LAB_00129a6d: JMP 0x00129acd caseD_3: LEA RDI,[0x1d8306] MOV AL,0x0 CALL 0x00128050 JMP 0x00129acd caseD_4: LEA RDI,[0x1d82dc] MOV AL,0x0 CALL 0x00128050 JMP 0x00129acd caseD_5: LEA RDI,[0x1d82ec] MOV AL,0x0 CALL 0x00128050 JMP 0x00129acd caseD_6: LEA RDI,[0x1d8301] MOV AL,0x0 CALL 0x00128050 JMP 0x00129acd caseD_7: LEA RDI,[0x1d8313] MOV AL,0x0 CALL 0x00128050 JMP 0x00129acd default: LEA RDI,[0x1d832b] MOV AL,0x0 CALL 0x00128050 LAB_00129acd: ADD RSP,0x40 POP RBP RET
void rtree_PrintWKB(long param_1,uint param_2) { uint uVar1; int8 uVar2; uint local_30; uint local_2c; uint local_1c; uint *local_10; local_10 = (uint *)(param_1 + 5); switch(*(int4 *)(param_1 + 1)) { case 1: printf("POINT("); for (local_1c = 0; local_1c < param_2; local_1c = local_1c + 1) { uVar2 = *(int8 *)local_10; local_10 = local_10 + 2; printf("%.14g",uVar2); if (local_1c < param_2 - 1) { printf(" "); } else { printf(")"); } } break; case 2: printf("LineString("); uVar1 = *local_10; local_10 = (uint *)(param_1 + 9); for (local_2c = 0; local_2c < uVar1; local_2c = local_2c + 1) { for (local_30 = 0; local_30 < param_2; local_30 = local_30 + 1) { uVar2 = *(int8 *)local_10; local_10 = (uint *)((long)local_10 + 8); printf("%.14g",uVar2); if (local_30 < param_2 - 1) { printf(" "); } } if (local_2c < uVar1 - 1) { printf(", "); } else { printf(")"); } } break; case 3: printf("POLYGON(...)"); break; case 4: printf("MULTIPOINT(...)"); break; case 5: printf("MULTILINESTRING(...)"); break; case 6: printf("MULTIPOLYGON(...)"); break; case 7: printf("GEOMETRYCOLLECTION(...)"); break; default: printf("UNKNOWN GEOMETRY TYPE"); } return; }
51,098
minja::Value::set(minja::Value const&, minja::Value const&)
monkey531[P]llama/common/minja.hpp
void set(const Value& key, const Value& value) { if (!object_) throw std::runtime_error("Value is not an object: " + dump()); if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump()); (*object_)[key.primitive_] = value; }
O1
cpp
minja::Value::set(minja::Value const&, minja::Value const&): pushq %rbp pushq %r14 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 movq 0x20(%rdi), %rdi testq %rdi, %rdi je 0x74253 cmpq $0x0, 0x10(%rsi) jne 0x742b0 cmpq $0x0, 0x20(%rsi) jne 0x742b0 cmpq $0x0, 0x30(%rsi) jne 0x742b0 movq %rdx, %rbx addq $0x40, %rsi callq 0x743dc movq %rax, %r14 movq 0x10(%rbx), %rax movq %rax, 0x10(%r14) leaq 0x18(%r14), %rdi leaq 0x18(%rbx), %rsi callq 0x73380 movq 0x20(%rbx), %rax movq %rax, 0x20(%r14) leaq 0x28(%r14), %rdi leaq 0x28(%rbx), %rsi callq 0x73380 movq 0x30(%rbx), %rax movq %rax, 0x30(%r14) leaq 0x38(%r14), %rdi leaq 0x38(%rbx), %rsi callq 0x73380 addq $0x40, %rbx movq %rsp, %rdi movq %rbx, %rsi callq 0x2e230 addq $0x40, %r14 movq %rsp, %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x2b96e movq %rbx, %rdi xorl %esi, %esi callq 0x28fd0 movq %rbx, %rdi callq 0x2e790 addq $0x40, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x10, %edi callq 0x19370 movq %rax, %rbx leaq 0x20(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x6c964 leaq 0x4a262(%rip), %rsi # 0xbe4dd movq %rsp, %rdi leaq 0x20(%rsp), %rdx callq 0x3779b movb $0x1, %bpl movq %rsp, %rsi movq %rbx, %rdi callq 0x19ac0 xorl %ebp, %ebp movq 0x7ad49(%rip), %rsi # 0xeefe8 movq 0x7acc2(%rip), %rdx # 0xeef68 movq %rbx, %rdi callq 0x19b70 jmp 0x7430b movl $0x10, %edi callq 0x19370 movq %rax, %rbx leaq 0x20(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x6c964 leaq 0x4a21e(%rip), %rsi # 0xbe4f6 movq %rsp, %rdi leaq 0x20(%rsp), %rdx callq 0x3779b movb $0x1, %bpl movq %rsp, %rsi movq %rbx, %rdi callq 0x19ac0 xorl %ebp, %ebp movq 0x7acec(%rip), %rsi # 0xeefe8 movq 0x7ac65(%rip), %rdx # 0xeef68 movq %rbx, %rdi callq 0x19b70 jmp 0x7430f jmp 0x7432f movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x74335 movq 0x10(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x74335 movq %rax, %r14 movb $0x1, %bpl leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7435a movq 0x30(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x7435a jmp 0x74354 movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x74367 movq %rbx, %rdi callq 0x19510 movq %r14, %rdi callq 0x19be0 movq %rax, %rdi callq 0x28537 nop
_ZN5minja5Value3setERKS0_S2_: push rbp push r14 push rbx sub rsp, 40h mov r14, rdi mov rdi, [rdi+20h] test rdi, rdi jz loc_74253 cmp qword ptr [rsi+10h], 0 jnz loc_742B0 cmp qword ptr [rsi+20h], 0 jnz loc_742B0 cmp qword ptr [rsi+30h], 0 jnz loc_742B0 mov rbx, rdx add rsi, 40h ; '@' call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixERSJ_; 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>>>::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&) mov r14, rax mov rax, [rbx+10h] mov [r14+10h], rax lea rdi, [r14+18h] lea rsi, [rbx+18h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&) mov rax, [rbx+20h] mov [r14+20h], rax lea rdi, [r14+28h] lea rsi, [rbx+28h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&) mov rax, [rbx+30h] mov [r14+30h], rax lea rdi, [r14+38h] lea rsi, [rbx+38h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&) add rbx, 40h ; '@' mov rdi, rsp mov rsi, 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&) add r14, 40h ; '@' mov rbx, rsp mov rdi, r14 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add rsp, 40h pop rbx pop r14 pop rbp retn loc_74253: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+58h+var_38] mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aValueIsNotAnOb; "Value is not an object: " mov rdi, rsp lea rdx, [rsp+58h+var_38] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 mov rsi, rsp mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_7430B loc_742B0: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+58h+var_38] mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aUnashableType; "Unashable type: " mov rdi, rsp lea rdx, [rsp+58h+var_38] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 mov rsi, rsp mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_7430B: jmp short loc_7430F jmp short loc_7432F loc_7430F: mov r14, rax lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_74335 mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_74335 loc_7432F: mov r14, rax mov bpl, 1 loc_74335: lea rax, [rsp+58h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_7435A mov rsi, [rsp+58h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_7435A jmp short $+2 loc_74354: mov r14, rax mov bpl, 1 loc_7435A: test bpl, bpl jz short loc_74367 mov rdi, rbx; void * call ___cxa_free_exception loc_74367: mov rdi, r14 call __Unwind_Resume mov rdi, rax call __clang_call_terminate
long long minja::Value::set(minja::Value *this, const minja::Value *a2, const minja::Value *a3) { long long v4; // rdi long long v6; // r14 void *exception; // rbx void *v9; // rbx unsigned __int8 v10[16]; // [rsp+0h] [rbp-58h] BYREF _BYTE v11[16]; // [rsp+20h] [rbp-38h] BYREF v4 = *((_QWORD *)this + 4); if ( !v4 ) { exception = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v11, (long long)this, 0xFFFFFFFF, 0); std::operator+<char>((long long)v10, (long long)"Value is not an object: ", (long long)v11); 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); } if ( *((_QWORD *)a2 + 2) || *((_QWORD *)a2 + 4) || *((_QWORD *)a2 + 6) ) { v9 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v11, (long long)this, 0xFFFFFFFF, 0); std::operator+<char>((long long)v10, (long long)"Unashable type: ", (long long)v11); std::runtime_error::runtime_error(v9, v10); __cxa_throw( v9, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v6 = 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>>>::operator[]( v4, (char *)a2 + 64); *(_QWORD *)(v6 + 16) = *((_QWORD *)a3 + 2); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=( (volatile signed __int32 **)(v6 + 24), (volatile signed __int32 **)a3 + 3); *(_QWORD *)(v6 + 32) = *((_QWORD *)a3 + 4); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=( (volatile signed __int32 **)(v6 + 40), (volatile signed __int32 **)a3 + 5); *(_QWORD *)(v6 + 48) = *((_QWORD *)a3 + 6); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=( (volatile signed __int32 **)(v6 + 56), (volatile signed __int32 **)a3 + 7); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( v10, (unsigned __int8 *)a3 + 64); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( v6 + 64, (long long)v10); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)v10); return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v10); }
set: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x40 MOV R14,RDI MOV RDI,qword ptr [RDI + 0x20] TEST RDI,RDI JZ 0x00174253 CMP qword ptr [RSI + 0x10],0x0 JNZ 0x001742b0 CMP qword ptr [RSI + 0x20],0x0 JNZ 0x001742b0 CMP qword ptr [RSI + 0x30],0x0 JNZ 0x001742b0 MOV RBX,RDX ADD RSI,0x40 CALL 0x001743dc MOV R14,RAX MOV RAX,qword ptr [RBX + 0x10] MOV qword ptr [R14 + 0x10],RAX LEA RDI,[R14 + 0x18] LEA RSI,[RBX + 0x18] CALL 0x00173380 MOV RAX,qword ptr [RBX + 0x20] MOV qword ptr [R14 + 0x20],RAX LEA RDI,[R14 + 0x28] LEA RSI,[RBX + 0x28] CALL 0x00173380 MOV RAX,qword ptr [RBX + 0x30] MOV qword ptr [R14 + 0x30],RAX LEA RDI,[R14 + 0x38] LEA RSI,[RBX + 0x38] CALL 0x00173380 ADD RBX,0x40 LAB_0017421b: MOV RDI,RSP MOV RSI,RBX CALL 0x0012e230 LAB_00174226: ADD R14,0x40 MOV RBX,RSP MOV RDI,R14 MOV RSI,RBX CALL 0x0012b96e MOV RDI,RBX XOR ESI,ESI CALL 0x00128fd0 MOV RDI,RBX CALL 0x0012e790 ADD RSP,0x40 POP RBX POP R14 POP RBP RET LAB_00174253: MOV EDI,0x10 CALL 0x00119370 MOV RBX,RAX LAB_00174260: LEA RDI,[RSP + 0x20] MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0016c964 LAB_00174274: LEA RSI,[0x1be4dd] MOV RDI,RSP LEA RDX,[RSP + 0x20] CALL 0x0013779b MOV BPL,0x1 LAB_0017428b: MOV RSI,RSP MOV RDI,RBX CALL 0x00119ac0 XOR EBP,EBP MOV RSI,qword ptr [0x001eefe8] MOV RDX,qword ptr [0x001eef68] MOV RDI,RBX CALL 0x00119b70 LAB_001742b0: MOV EDI,0x10 CALL 0x00119370 MOV RBX,RAX LAB_001742bd: LEA RDI,[RSP + 0x20] MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0016c964 LAB_001742d1: LEA RSI,[0x1be4f6] MOV RDI,RSP LEA RDX,[RSP + 0x20] CALL 0x0013779b MOV BPL,0x1 LAB_001742e8: MOV RSI,RSP MOV RDI,RBX CALL 0x00119ac0 XOR EBP,EBP MOV RSI,qword ptr [0x001eefe8] MOV RDX,qword ptr [0x001eef68] MOV RDI,RBX CALL 0x00119b70
/* minja::Value::set(minja::Value const&, minja::Value const&) */ void __thiscall minja::Value::set(Value *this,Value *param_1,Value *param_2) { long lVar1; runtime_error *prVar2; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> abStack_58 [32]; int1 local_38 [32]; if (*(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>>> **)(this + 0x20) == (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>>> *)0x0) { prVar2 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00174260 to 00174273 has its CatchHandler @ 00174354 */ dump_abi_cxx11_((int)local_38,SUB81(this,0)); /* try { // try from 00174274 to 00174287 has its CatchHandler @ 0017432f */ std::operator+((char *)abStack_58,(string *)"Value is not an object: "); /* try { // try from 0017428b to 001742ad has its CatchHandler @ 0017430f */ std::runtime_error::runtime_error(prVar2,(string *)abStack_58); /* WARNING: Subroutine does not return */ __cxa_throw(prVar2,PTR_typeinfo_001eefe8,PTR__runtime_error_001eef68); } if (((*(long *)(param_1 + 0x10) == 0) && (*(long *)(param_1 + 0x20) == 0)) && (*(long *)(param_1 + 0x30) == 0)) { lVar1 = 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>>> ::operator[](*(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>>> **)(this + 0x20),(basic_json *)(param_1 + 0x40)); *(int8 *)(lVar1 + 0x10) = *(int8 *)(param_2 + 0x10); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator= ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(lVar1 + 0x18), (__shared_count *)(param_2 + 0x18)); *(int8 *)(lVar1 + 0x20) = *(int8 *)(param_2 + 0x20); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator= ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(lVar1 + 0x28), (__shared_count *)(param_2 + 0x28)); *(int8 *)(lVar1 + 0x30) = *(int8 *)(param_2 + 0x30); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator= ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(lVar1 + 0x38), (__shared_count *)(param_2 + 0x38)); /* try { // try from 0017421b to 00174225 has its CatchHandler @ 0017436f */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(abStack_58,(basic_json *)(param_2 + 0x40)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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> *)(lVar1 + 0x40),abStack_58); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(abStack_58,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)abStack_58); return; } prVar2 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001742bd to 001742d0 has its CatchHandler @ 00174352 */ dump_abi_cxx11_((int)local_38,SUB81(this,0)); /* try { // try from 001742d1 to 001742e4 has its CatchHandler @ 0017430d */ std::operator+((char *)abStack_58,(string *)"Unashable type: "); /* try { // try from 001742e8 to 0017430a has its CatchHandler @ 0017430b */ std::runtime_error::runtime_error(prVar2,(string *)abStack_58); /* WARNING: Subroutine does not return */ __cxa_throw(prVar2,PTR_typeinfo_001eefe8,PTR__runtime_error_001eef68); }
51,099
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<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>>>::iteration_proxy_value(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>>, unsigned long)
monkey531[P]llama/common/./json.hpp
explicit iteration_proxy_value(IteratorType it, std::size_t array_index_ = 0) noexcept(std::is_nothrow_move_constructible<IteratorType>::value && std::is_nothrow_default_constructible<string_type>::value) : anchor(std::move(it)) , array_index(array_index_) {}
O3
cpp
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<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>>>::iteration_proxy_value(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>>, unsigned long): pushq %rbx movq %rdi, %rbx movups (%rsi), %xmm0 movups 0x10(%rsi), %xmm1 movups %xmm1, 0x10(%rdi) movups %xmm0, (%rdi) movq %rdx, 0x20(%rdi) movq $0x0, 0x28(%rdi) addq $0x30, %rdi leaq 0x40(%rbx), %rax movq %rax, 0x30(%rbx) leaq 0x4aaaa(%rip), %rsi # 0xbc5ff leaq 0x4aaa4(%rip), %rdx # 0xbc600 callq 0x590a2 leaq 0x60(%rbx), %rax movq %rax, 0x50(%rbx) movq $0x0, 0x58(%rbx) movb $0x0, 0x60(%rbx) popq %rbx retq movq %rax, %rdi callq 0x2ad73
_ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESH_m: push rbx mov rbx, rdi movups xmm0, xmmword ptr [rsi] movups xmm1, xmmword ptr [rsi+10h] movups xmmword ptr [rdi+10h], xmm1 movups xmmword ptr [rdi], xmm0 mov [rdi+20h], rdx mov qword ptr [rdi+28h], 0 add rdi, 30h ; '0' lea rax, [rbx+40h] mov [rbx+30h], rax lea rsi, aMinExp0+0Ah; "0" lea rdx, aMinExp0+0Bh; "" 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 rax, [rbx+60h] mov [rbx+50h], rax mov qword ptr [rbx+58h], 0 mov byte ptr [rbx+60h], 0 pop rbx retn mov rdi, rax call __clang_call_terminate
long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<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>>>::iteration_proxy_value( long long a1, __int128 *a2, long long a3) { __int128 v3; // xmm0 long long result; // rax v3 = *a2; *(_OWORD *)(a1 + 16) = a2[1]; *(_OWORD *)a1 = v3; *(_QWORD *)(a1 + 32) = a3; *(_QWORD *)(a1 + 40) = 0LL; *(_QWORD *)(a1 + 48) = a1 + 64; std::string::_M_construct<char const*>(a1 + 48, "0", (long long)""); result = a1 + 96; *(_QWORD *)(a1 + 80) = a1 + 96; *(_QWORD *)(a1 + 88) = 0LL; *(_BYTE *)(a1 + 96) = 0; return result; }
iteration_proxy_value: PUSH RBX MOV RBX,RDI MOVUPS XMM0,xmmword ptr [RSI] MOVUPS XMM1,xmmword ptr [RSI + 0x10] MOVUPS xmmword ptr [RDI + 0x10],XMM1 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x20],RDX MOV qword ptr [RDI + 0x28],0x0 ADD RDI,0x30 LEA RAX,[RBX + 0x40] MOV qword ptr [RBX + 0x30],RAX LAB_00171b4e: LEA RSI,[0x1bc5ff] LEA RDX,[0x1bc600] CALL 0x001590a2 LEA RAX,[RBX + 0x60] MOV qword ptr [RBX + 0x50],RAX MOV qword ptr [RBX + 0x58],0x0 MOV byte ptr [RBX + 0x60],0x0 POP RBX RET
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<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> > >::iteration_proxy_value(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> >, unsigned long) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: iteration_proxy_value<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>>> ::iteration_proxy_value (iteration_proxy_value<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>>> *this,int4 *param_2,int8 param_3) { int4 uVar1; int4 uVar2; int4 uVar3; int4 uVar4; int4 uVar5; int4 uVar6; int4 uVar7; uVar1 = *param_2; uVar2 = param_2[1]; uVar3 = param_2[2]; uVar4 = param_2[3]; uVar5 = param_2[5]; uVar6 = param_2[6]; uVar7 = param_2[7]; *(int4 *)(this + 0x10) = param_2[4]; *(int4 *)(this + 0x14) = uVar5; *(int4 *)(this + 0x18) = uVar6; *(int4 *)(this + 0x1c) = uVar7; *(int4 *)this = uVar1; *(int4 *)(this + 4) = uVar2; *(int4 *)(this + 8) = uVar3; *(int4 *)(this + 0xc) = uVar4; *(int8 *)(this + 0x20) = param_3; *(int8 *)(this + 0x28) = 0; *(iteration_proxy_value<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>>> **)(this + 0x30) = this + 0x40; /* try { // try from 00171b4e to 00171b60 has its CatchHandler @ 00171b77 */ std::__cxx11::string::_M_construct<char_const*>(this + 0x30,"0",""); *(iteration_proxy_value<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>>> **)(this + 0x50) = this + 0x60; *(int8 *)(this + 0x58) = 0; this[0x60] = (iteration_proxy_value<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>>> )0x0; return; }