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
34,000
OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoints(int, OpenSubdiv::v3_6_0::Far::SparseMatrix<double>&, double*, int*) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp
void GregoryConverter<REAL>::computeIrregularFacePoints(int cIndex, Matrix & matrix, Weight *rowWeights, int *columnMask) const { // Identify neighboring corners: CornerTopology const & corner = _corners[cIndex]; int cNext = (cIndex+1) & 0x3; int cPrev = (cIndex+3) & 0x3; Point epPrev(matrix, 5*cPrev + 1); Point em (matrix, 5*cIndex + 2); Point p (matrix, 5*cIndex + 0); Point ep (matrix, 5*cIndex + 1); Point emNext(matrix, 5*cNext + 2); Point fp(matrix, 5*cIndex + 3); Point fm(matrix, 5*cIndex + 4); // // Compute the face points Fp and Fm in terms of the corner (P) and edge // points (Ep and Em) previously computed. The caller provides a buffer // of the appropriate size (twice the width of the matrix) to use for // combining weights, along with an integer buffer used to identify // non-zero weights and preserve the sparsity of the combinations (note // they use index + 1 to detect index 0 when cleared with 0 entries). // if (!corner.fpIsRegular && !corner.fpIsCopied) { int iEdgeP = corner.faceInRing; computeIrregularFacePoint(cIndex, iEdgeP, cNext, p, ep, emNext, fp, 1.0, rowWeights, columnMask); } if (!corner.fmIsRegular && !corner.fmIsCopied) { int iEdgeM = (corner.faceInRing + 1) % corner.valence; computeIrregularFacePoint(cIndex, iEdgeM, cPrev, p, em, epPrev, fm, -1.0, rowWeights, columnMask); } // Copy Fp or Fm now that any shared values were computed above: if (corner.fpIsCopied) { fp.Copy(fm); } if (corner.fmIsCopied) { fm.Copy(fp); } if (!corner.fpIsRegular) assert(matrix.GetRowSize(5*cIndex + 3) == fp.GetSize()); if (!corner.fmIsRegular) assert(matrix.GetRowSize(5*cIndex + 4) == fm.GetSize()); }
O3
cpp
OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoints(int, OpenSubdiv::v3_6_0::Far::SparseMatrix<double>&, double*, int*) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xe8, %rsp movq %r8, 0x8(%rsp) movq %rcx, 0x10(%rsp) movl %esi, 0x4(%rsp) movslq %esi, %rax leal -0x1(%rax), %r13d andl $0x3, %r13d movq 0x10(%rdx), %r14 leal (,%r13,4), %ecx leal (%rcx,%rcx,4), %ecx movl 0x8(%r14,%rcx), %esi movslq 0x4(%r14,%rcx), %rcx subl %ecx, %esi movl %esi, 0xd0(%rsp) movq 0x28(%rdx), %rsi leaq (%rsi,%rcx,4), %r8 movq %r8, 0xd8(%rsp) movq %rdx, 0x38(%rsp) movq 0x40(%rdx), %rdx leaq (%rdx,%rcx,8), %rcx movq %rcx, 0xe0(%rsp) leal (%rax,%rax,4), %ecx movslq %ecx, %rbx movslq 0xc(%r14,%rbx,4), %r8 movslq 0x8(%r14,%rbx,4), %rcx movl %r8d, %r9d subl %ecx, %r9d movl %r9d, 0xb8(%rsp) leaq (%rsi,%rcx,4), %r9 movq %r9, 0xc0(%rsp) leaq (%rdx,%rcx,8), %r9 movq %r9, 0xc8(%rsp) movslq 0x4(%r14,%rbx,4), %r9 movslq (%r14,%rbx,4), %r10 movl %r9d, %r11d subl %r10d, %r11d movl %r11d, 0x40(%rsp) leaq (%rsi,%r10,4), %r11 movq %r11, 0x48(%rsp) subl %r9d, %ecx leaq (%rdx,%r10,8), %r10 movq %r10, 0x50(%rsp) leaq (%rsi,%r9,4), %r10 leaq (%rdx,%r9,8), %r9 movl %ecx, 0xa0(%rsp) leal 0x1(%rax), %ecx andl $0x3, %ecx movq %r10, 0xa8(%rsp) movq %r9, 0xb0(%rsp) leal (,%rcx,4), %r9d leal (%r9,%r9,4), %r9d movl 0xc(%r14,%r9), %r10d movslq 0x8(%r14,%r9), %r9 subl %r9d, %r10d movl %r10d, 0x88(%rsp) leaq (%rsi,%r9,4), %r10 movq %r10, 0x90(%rsp) leaq (%rdx,%r9,8), %r9 movq %r9, 0x98(%rsp) movslq 0x10(%r14,%rbx,4), %r9 movl %r9d, %r15d subl %r8d, %r15d movl %r15d, 0x70(%rsp) leaq (%rsi,%r8,4), %r10 movq %r10, 0x28(%rsp) movq %r10, 0x78(%rsp) leaq (%rdx,%r8,8), %r8 movq %r8, 0x30(%rsp) movq %r8, 0x80(%rsp) movl 0x14(%r14,%rbx,4), %r14d subl %r9d, %r14d leaq (%rsi,%r9,4), %rsi leaq (%rdx,%r9,8), %rdx imulq $0xe0, %rax, %rax movq %rdi, %r12 leaq (%rdi,%rax), %rbp addq $0x18, %rbp movl %r14d, 0x58(%rsp) movq %rsi, 0x18(%rsp) movq %rsi, 0x60(%rsp) movq %rdx, 0x20(%rsp) movq %rdx, 0x68(%rsp) movzwl (%rbp), %eax testl $0x280, %eax # imm = 0x280 jne 0x54aad movl 0xc(%rbp), %edx leaq 0x70(%rsp), %rax leaq 0x88(%rsp), %r10 leaq 0x40(%rsp), %r8 leaq 0xa0(%rsp), %r9 movsd 0x62b0a(%rip), %xmm0 # 0xb7598 movq %r12, %rdi movl 0x4(%rsp), %esi pushq 0x8(%rsp) pushq 0x18(%rsp) pushq %rax pushq %r10 callq 0x4fb4e addq $0x20, %rsp movzwl (%rbp), %eax testl $0x500, %eax # imm = 0x500 jne 0x54b01 movl 0xc(%rbp), %eax incl %eax cltd idivl 0x4(%rbp) leaq 0x58(%rsp), %rax leaq 0xd0(%rsp), %r10 leaq 0x40(%rsp), %r8 leaq 0xb8(%rsp), %r9 movsd 0x62b29(%rip), %xmm0 # 0xb7608 movq %r12, %rdi movl 0x4(%rsp), %esi movl %r13d, %ecx pushq 0x8(%rsp) pushq 0x18(%rsp) pushq %rax pushq %r10 callq 0x4fb4e addq $0x20, %rsp movzwl (%rbp), %eax btl $0x9, %eax jae 0x54b44 cmpl %r14d, %r15d jne 0x54bd5 movslq %r15d, %r13 leaq (,%r13,4), %rdx movq 0x28(%rsp), %rdi movq 0x18(%rsp), %rsi callq 0x39ab0 shlq $0x3, %r13 movq 0x30(%rsp), %rdi movq 0x20(%rsp), %rsi movq %r13, %rdx callq 0x39ab0 movzwl (%rbp), %eax btl $0xa, %eax jae 0x54b87 cmpl %r15d, %r14d jne 0x54bd5 movslq %r15d, %r13 leaq (,%r13,4), %rdx movq 0x18(%rsp), %rdi movq 0x28(%rsp), %rsi callq 0x39ab0 shlq $0x3, %r13 movq 0x20(%rsp), %rdi movq 0x30(%rsp), %rsi movq %r13, %rdx callq 0x39ab0 movzwl (%rbp), %eax testb %al, %al js 0x54ba4 leaq 0x3(%rbx), %rcx movq 0x38(%rsp), %rdx movq 0x10(%rdx), %rdx movl 0x4(%rdx,%rcx,4), %esi subl (%rdx,%rcx,4), %esi cmpl %r15d, %esi jne 0x54bf4 btl $0x8, %eax jb 0x54bc3 addq $0x4, %rbx movq 0x38(%rsp), %rax movq 0x10(%rax), %rax movl 0x4(%rax,%rbx,4), %ecx subl (%rax,%rbx,4), %ecx cmpl %r14d, %ecx jne 0x54c13 addq $0xe8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x634e2(%rip), %rdi # 0xb80be leaq 0x62c53(%rip), %rsi # 0xb7836 leaq 0x63bbf(%rip), %rcx # 0xb87a9 movl $0x155, %edx # imm = 0x155 callq 0x39540 leaq 0x632fe(%rip), %rdi # 0xb7ef9 leaq 0x62c34(%rip), %rsi # 0xb7836 leaq 0x63a53(%rip), %rcx # 0xb865c movl $0x578, %edx # imm = 0x578 callq 0x39540 leaq 0x63396(%rip), %rdi # 0xb7fb0 leaq 0x62c15(%rip), %rsi # 0xb7836 leaq 0x63a34(%rip), %rcx # 0xb865c movl $0x579, %edx # imm = 0x579 callq 0x39540
_ZNK10OpenSubdiv6v3_6_03Far16GregoryConverterIdE26computeIrregularFacePointsEiRNS1_12SparseMatrixIdEEPdPi: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0E8h mov [rsp+118h+var_110], r8 mov [rsp+118h+var_108], rcx mov [rsp+118h+var_114], esi movsxd rax, esi lea r13d, [rax-1] and r13d, 3 mov r14, [rdx+10h] lea ecx, ds:0[r13*4] lea ecx, [rcx+rcx*4] mov esi, [r14+rcx+8] movsxd rcx, dword ptr [r14+rcx+4] sub esi, ecx mov [rsp+118h+var_48], esi mov rsi, [rdx+28h] lea r8, [rsi+rcx*4] mov [rsp+118h+var_40], r8 mov [rsp+118h+var_E0], rdx mov rdx, [rdx+40h] lea rcx, [rdx+rcx*8] mov [rsp+118h+var_38], rcx lea ecx, [rax+rax*4] movsxd rbx, ecx movsxd r8, dword ptr [r14+rbx*4+0Ch] movsxd rcx, dword ptr [r14+rbx*4+8] mov r9d, r8d sub r9d, ecx mov [rsp+118h+var_60], r9d lea r9, [rsi+rcx*4] mov [rsp+118h+var_58], r9 lea r9, [rdx+rcx*8] mov [rsp+118h+var_50], r9 movsxd r9, dword ptr [r14+rbx*4+4] movsxd r10, dword ptr [r14+rbx*4] mov r11d, r9d sub r11d, r10d mov [rsp+118h+var_D8], r11d lea r11, [rsi+r10*4] mov [rsp+118h+var_D0], r11 sub ecx, r9d lea r10, [rdx+r10*8] mov [rsp+118h+var_C8], r10 lea r10, [rsi+r9*4] lea r9, [rdx+r9*8] mov [rsp+118h+var_78], ecx lea ecx, [rax+1] and ecx, 3 mov [rsp+118h+var_70], r10 mov [rsp+118h+var_68], r9 lea r9d, ds:0[rcx*4] lea r9d, [r9+r9*4] mov r10d, [r14+r9+0Ch] movsxd r9, dword ptr [r14+r9+8] sub r10d, r9d mov [rsp+118h+var_90], r10d lea r10, [rsi+r9*4] mov [rsp+118h+var_88], r10 lea r9, [rdx+r9*8] mov [rsp+118h+var_80], r9 movsxd r9, dword ptr [r14+rbx*4+10h] mov r15d, r9d sub r15d, r8d mov [rsp+118h+var_A8], r15d lea r10, [rsi+r8*4] mov [rsp+118h+var_F0], r10 mov [rsp+118h+var_A0], r10 lea r8, [rdx+r8*8] mov [rsp+118h+var_E8], r8 mov [rsp+118h+var_98], r8 mov r14d, [r14+rbx*4+14h] sub r14d, r9d lea rsi, [rsi+r9*4] lea rdx, [rdx+r9*8] imul rax, 0E0h mov r12, rdi lea rbp, [rdi+rax] add rbp, 18h mov [rsp+118h+var_C0], r14d mov [rsp+118h+var_100], rsi mov [rsp+118h+var_B8], rsi mov [rsp+118h+var_F8], rdx mov [rsp+118h+var_B0], rdx movzx eax, word ptr [rbp+0] test eax, 280h jnz short loc_54AAD mov edx, [rbp+0Ch] lea rax, [rsp+118h+var_A8] lea r10, [rsp+118h+var_90] lea r8, [rsp+118h+var_D8] lea r9, [rsp+118h+var_78] movsd xmm0, cs:qword_B7598 mov rdi, r12 mov esi, [rsp+118h+var_114] push [rsp+118h+var_110] push [rsp+120h+var_108] push rax push r10 call _ZNK10OpenSubdiv6v3_6_03Far16GregoryConverterIdE25computeIrregularFacePointEiiiRKNS1_12_GLOBAL__N_115SparseMatrixRowIdEES8_S8_RS6_dPdPi; OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoint(int,int,int,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double> const&,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double> const&,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double> const&,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double>&,double,double *,int *) add rsp, 20h movzx eax, word ptr [rbp+0] loc_54AAD: test eax, 500h jnz short loc_54B01 mov eax, [rbp+0Ch] inc eax cdq idiv dword ptr [rbp+4] lea rax, [rsp+118h+var_C0] lea r10, [rsp+118h+var_48] lea r8, [rsp+118h+var_D8] lea r9, [rsp+118h+var_60] movsd xmm0, cs:qword_B7608 mov rdi, r12 mov esi, [rsp+118h+var_114] mov ecx, r13d push [rsp+118h+var_110] push [rsp+120h+var_108] push rax push r10 call _ZNK10OpenSubdiv6v3_6_03Far16GregoryConverterIdE25computeIrregularFacePointEiiiRKNS1_12_GLOBAL__N_115SparseMatrixRowIdEES8_S8_RS6_dPdPi; OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoint(int,int,int,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double> const&,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double> const&,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double> const&,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double>&,double,double *,int *) add rsp, 20h movzx eax, word ptr [rbp+0] loc_54B01: bt eax, 9 jnb short loc_54B44 cmp r15d, r14d jnz loc_54BD5 movsxd r13, r15d lea rdx, ds:0[r13*4] mov rdi, [rsp+118h+var_F0] mov rsi, [rsp+118h+var_100] call _memcpy shl r13, 3 mov rdi, [rsp+118h+var_E8] mov rsi, [rsp+118h+var_F8] mov rdx, r13 call _memcpy movzx eax, word ptr [rbp+0] loc_54B44: bt eax, 0Ah jnb short loc_54B87 cmp r14d, r15d jnz loc_54BD5 movsxd r13, r15d lea rdx, ds:0[r13*4] mov rdi, [rsp+118h+var_100] mov rsi, [rsp+118h+var_F0] call _memcpy shl r13, 3 mov rdi, [rsp+118h+var_F8] mov rsi, [rsp+118h+var_E8] mov rdx, r13 call _memcpy movzx eax, word ptr [rbp+0] loc_54B87: test al, al js short loc_54BA4 lea rcx, [rbx+3] mov rdx, [rsp+118h+var_E0] mov rdx, [rdx+10h] mov esi, [rdx+rcx*4+4] sub esi, [rdx+rcx*4] cmp esi, r15d jnz short loc_54BF4 loc_54BA4: bt eax, 8 jb short loc_54BC3 add rbx, 4 mov rax, [rsp+118h+var_E0] mov rax, [rax+10h] mov ecx, [rax+rbx*4+4] sub ecx, [rax+rbx*4] cmp ecx, r14d jnz short loc_54C13 loc_54BC3: add rsp, 0E8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_54BD5: lea rdi, aGetsizeOtherGe; "GetSize() == other.GetSize()" lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_34; "void OpenSubdiv::v3_6_0::Far::(anonymou"... mov edx, 155h call ___assert_fail loc_54BF4: lea rdi, aMatrixGetrowsi; "matrix.GetRowSize(5*cIndex + 3) == fp.G"... lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_35; "void OpenSubdiv::v3_6_0::Far::GregoryCo"... mov edx, 578h call ___assert_fail loc_54C13: lea rdi, aMatrixGetrowsi_0; "matrix.GetRowSize(5*cIndex + 4) == fm.G"... lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_35; "void OpenSubdiv::v3_6_0::Far::GregoryCo"... mov edx, 579h call ___assert_fail
long long OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoints( int *a1, int a2, _QWORD *a3, long long a4, long long a5) { long long v5; // rax int v6; // r13d long long v7; // r14 long long v8; // rcx int v9; // esi long long v10; // rcx long long v11; // rsi long long v12; // rdx long long v13; // rbx long long v14; // r8 long long v15; // rcx long long v16; // r9 long long v17; // r10 long long v18; // rcx long long v19; // r9 long long v20; // r9 long long v21; // r9 int v22; // r15d long long v23; // r8 int v24; // r14d int *v25; // rbp long long result; // rax long long v27; // rcx long long v28; // r8 long long v29; // r9 long long v30; // rcx long long v31; // r8 long long v32; // r9 long long v36; // [rsp+18h] [rbp-100h] long long v37; // [rsp+20h] [rbp-F8h] long long v38; // [rsp+28h] [rbp-F0h] long long v39; // [rsp+30h] [rbp-E8h] int v41; // [rsp+40h] [rbp-D8h] BYREF long long v42; // [rsp+48h] [rbp-D0h] long long v43; // [rsp+50h] [rbp-C8h] int v44; // [rsp+58h] [rbp-C0h] BYREF long long v45; // [rsp+60h] [rbp-B8h] long long v46; // [rsp+68h] [rbp-B0h] int v47; // [rsp+70h] [rbp-A8h] BYREF long long v48; // [rsp+78h] [rbp-A0h] long long v49; // [rsp+80h] [rbp-98h] int v50; // [rsp+88h] [rbp-90h] BYREF long long v51; // [rsp+90h] [rbp-88h] long long v52; // [rsp+98h] [rbp-80h] int v53; // [rsp+A0h] [rbp-78h] BYREF long long v54; // [rsp+A8h] [rbp-70h] long long v55; // [rsp+B0h] [rbp-68h] int v56; // [rsp+B8h] [rbp-60h] BYREF long long v57; // [rsp+C0h] [rbp-58h] long long v58; // [rsp+C8h] [rbp-50h] int v59; // [rsp+D0h] [rbp-48h] BYREF long long v60; // [rsp+D8h] [rbp-40h] long long v61; // [rsp+E0h] [rbp-38h] v5 = a2; v6 = ((_BYTE)a2 - 1) & 3; v7 = a3[2]; v8 = (unsigned int)(20 * v6); v9 = *(_DWORD *)(v7 + v8 + 8); v10 = *(int *)(v7 + v8 + 4); v59 = v9 - v10; v11 = a3[5]; v60 = v11 + 4 * v10; v12 = a3[8]; v61 = v12 + 8 * v10; v13 = 5 * (int)v5; v14 = *(int *)(v7 + 4 * v13 + 12); v15 = *(int *)(v7 + 4 * v13 + 8); v56 = *(_DWORD *)(v7 + 4 * v13 + 12) - v15; v57 = v11 + 4 * v15; v58 = v12 + 8 * v15; v16 = *(int *)(v7 + 4 * v13 + 4); v17 = *(int *)(v7 + 4 * v13); v41 = *(_DWORD *)(v7 + 4 * v13 + 4) - v17; v42 = v11 + 4 * v17; v43 = v12 + 8 * v17; v53 = v15 - v16; v18 = ((_BYTE)v5 + 1) & 3; v54 = v11 + 4 * v16; v55 = v12 + 8 * v16; v19 = (unsigned int)(20 * v18); LODWORD(v17) = *(_DWORD *)(v7 + v19 + 12); v20 = *(int *)(v7 + v19 + 8); v50 = v17 - v20; v51 = v11 + 4 * v20; v52 = v12 + 8 * v20; v21 = *(int *)(v7 + 4 * v13 + 16); v22 = *(_DWORD *)(v7 + 4 * v13 + 16) - v14; v47 = v22; v38 = v11 + 4 * v14; v48 = v38; v23 = v12 + 8 * v14; v39 = v23; v49 = v23; v24 = *(_DWORD *)(v7 + 4 * v13 + 20) - v21; v25 = &a1[56 * v5 + 6]; v44 = v24; v36 = v11 + 4 * v21; v45 = v36; v37 = v12 + 8 * v21; v46 = v37; result = *(unsigned __int16 *)v25; if ( (result & 0x280) == 0 ) { OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoint( a1, a2, v25[3], v18, &v41, &v53, 1.0, &v50, &v47, a4, a5); result = *(unsigned __int16 *)v25; } if ( (result & 0x500) == 0 ) { OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoint( a1, a2, (v25[3] + 1) % v25[1], v6, &v41, &v56, -1.0, &v59, &v44, a4, a5); result = *(unsigned __int16 *)v25; } if ( (result & 0x200) != 0 ) { if ( v22 != v24 ) goto LABEL_16; memcpy(v38, v36, 4LL * v22, v18, v23, v21); memcpy(v39, v37, 8LL * v22, v27, v28, v29); result = *(unsigned __int16 *)v25; } if ( (result & 0x400) != 0 ) { if ( v24 == v22 ) { memcpy(v36, v38, 4LL * v22, v18, v23, v21); memcpy(v37, v39, 8LL * v22, v30, v31, v32); result = *(unsigned __int16 *)v25; goto LABEL_11; } LABEL_16: __assert_fail( "GetSize() == other.GetSize()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp", 341LL, "void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double>::Copy(const SparseMatrixRow<REAL> &) [REAL = double]"); } LABEL_11: if ( (result & 0x80u) == 0LL && *(_DWORD *)(a3[2] + 4 * (v13 + 3) + 4) - *(_DWORD *)(a3[2] + 4 * (v13 + 3)) != v22 ) __assert_fail( "matrix.GetRowSize(5*cIndex + 3) == fp.GetSize()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp", 1400LL, "void OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoints(int, Matrix &, Weight *, int *)" " const [REAL = double]"); if ( (result & 0x100) == 0 ) { result = a3[2]; if ( *(_DWORD *)(result + 4 * (v13 + 4) + 4) - *(_DWORD *)(result + 4 * (v13 + 4)) != v24 ) __assert_fail( "matrix.GetRowSize(5*cIndex + 4) == fm.GetSize()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp", 1401LL, "void OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoints(int, Matrix &, Weight *, int " "*) const [REAL = double]"); } return result; }
computeIrregularFacePoints: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xe8 MOV qword ptr [RSP + 0x8],R8 MOV qword ptr [RSP + 0x10],RCX MOV dword ptr [RSP + 0x4],ESI MOVSXD RAX,ESI LEA R13D,[RAX + -0x1] AND R13D,0x3 MOV R14,qword ptr [RDX + 0x10] LEA ECX,[R13*0x4] LEA ECX,[RCX + RCX*0x4] MOV ESI,dword ptr [R14 + RCX*0x1 + 0x8] MOVSXD RCX,dword ptr [R14 + RCX*0x1 + 0x4] SUB ESI,ECX MOV dword ptr [RSP + 0xd0],ESI MOV RSI,qword ptr [RDX + 0x28] LEA R8,[RSI + RCX*0x4] MOV qword ptr [RSP + 0xd8],R8 MOV qword ptr [RSP + 0x38],RDX MOV RDX,qword ptr [RDX + 0x40] LEA RCX,[RDX + RCX*0x8] MOV qword ptr [RSP + 0xe0],RCX LEA ECX,[RAX + RAX*0x4] MOVSXD RBX,ECX MOVSXD R8,dword ptr [R14 + RBX*0x4 + 0xc] MOVSXD RCX,dword ptr [R14 + RBX*0x4 + 0x8] MOV R9D,R8D SUB R9D,ECX MOV dword ptr [RSP + 0xb8],R9D LEA R9,[RSI + RCX*0x4] MOV qword ptr [RSP + 0xc0],R9 LEA R9,[RDX + RCX*0x8] MOV qword ptr [RSP + 0xc8],R9 MOVSXD R9,dword ptr [R14 + RBX*0x4 + 0x4] MOVSXD R10,dword ptr [R14 + RBX*0x4] MOV R11D,R9D SUB R11D,R10D MOV dword ptr [RSP + 0x40],R11D LEA R11,[RSI + R10*0x4] MOV qword ptr [RSP + 0x48],R11 SUB ECX,R9D LEA R10,[RDX + R10*0x8] MOV qword ptr [RSP + 0x50],R10 LEA R10,[RSI + R9*0x4] LEA R9,[RDX + R9*0x8] MOV dword ptr [RSP + 0xa0],ECX LEA ECX,[RAX + 0x1] AND ECX,0x3 MOV qword ptr [RSP + 0xa8],R10 MOV qword ptr [RSP + 0xb0],R9 LEA R9D,[RCX*0x4] LEA R9D,[R9 + R9*0x4] MOV R10D,dword ptr [R14 + R9*0x1 + 0xc] MOVSXD R9,dword ptr [R14 + R9*0x1 + 0x8] SUB R10D,R9D MOV dword ptr [RSP + 0x88],R10D LEA R10,[RSI + R9*0x4] MOV qword ptr [RSP + 0x90],R10 LEA R9,[RDX + R9*0x8] MOV qword ptr [RSP + 0x98],R9 MOVSXD R9,dword ptr [R14 + RBX*0x4 + 0x10] MOV R15D,R9D SUB R15D,R8D MOV dword ptr [RSP + 0x70],R15D LEA R10,[RSI + R8*0x4] MOV qword ptr [RSP + 0x28],R10 MOV qword ptr [RSP + 0x78],R10 LEA R8,[RDX + R8*0x8] MOV qword ptr [RSP + 0x30],R8 MOV qword ptr [RSP + 0x80],R8 MOV R14D,dword ptr [R14 + RBX*0x4 + 0x14] SUB R14D,R9D LEA RSI,[RSI + R9*0x4] LEA RDX,[RDX + R9*0x8] IMUL RAX,RAX,0xe0 MOV R12,RDI LEA RBP,[RDI + RAX*0x1] ADD RBP,0x18 MOV dword ptr [RSP + 0x58],R14D MOV qword ptr [RSP + 0x18],RSI MOV qword ptr [RSP + 0x60],RSI MOV qword ptr [RSP + 0x20],RDX MOV qword ptr [RSP + 0x68],RDX MOVZX EAX,word ptr [RBP] TEST EAX,0x280 JNZ 0x00154aad MOV EDX,dword ptr [RBP + 0xc] LEA RAX,[RSP + 0x70] LEA R10,[RSP + 0x88] LEA R8,[RSP + 0x40] LEA R9,[RSP + 0xa0] MOVSD XMM0,qword ptr [0x001b7598] MOV RDI,R12 MOV ESI,dword ptr [RSP + 0x4] PUSH qword ptr [RSP + 0x8] PUSH qword ptr [RSP + 0x18] PUSH RAX PUSH R10 CALL 0x0014fb4e ADD RSP,0x20 MOVZX EAX,word ptr [RBP] LAB_00154aad: TEST EAX,0x500 JNZ 0x00154b01 MOV EAX,dword ptr [RBP + 0xc] INC EAX CDQ IDIV dword ptr [RBP + 0x4] LEA RAX,[RSP + 0x58] LEA R10,[RSP + 0xd0] LEA R8,[RSP + 0x40] LEA R9,[RSP + 0xb8] MOVSD XMM0,qword ptr [0x001b7608] MOV RDI,R12 MOV ESI,dword ptr [RSP + 0x4] MOV ECX,R13D PUSH qword ptr [RSP + 0x8] PUSH qword ptr [RSP + 0x18] PUSH RAX PUSH R10 CALL 0x0014fb4e ADD RSP,0x20 MOVZX EAX,word ptr [RBP] LAB_00154b01: BT EAX,0x9 JNC 0x00154b44 CMP R15D,R14D JNZ 0x00154bd5 MOVSXD R13,R15D LEA RDX,[R13*0x4] MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x18] CALL 0x00139ab0 SHL R13,0x3 MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x20] MOV RDX,R13 CALL 0x00139ab0 MOVZX EAX,word ptr [RBP] LAB_00154b44: BT EAX,0xa JNC 0x00154b87 CMP R14D,R15D JNZ 0x00154bd5 MOVSXD R13,R15D LEA RDX,[R13*0x4] MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x28] CALL 0x00139ab0 SHL R13,0x3 MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x30] MOV RDX,R13 CALL 0x00139ab0 MOVZX EAX,word ptr [RBP] LAB_00154b87: TEST AL,AL JS 0x00154ba4 LEA RCX,[RBX + 0x3] MOV RDX,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RDX + 0x10] MOV ESI,dword ptr [RDX + RCX*0x4 + 0x4] SUB ESI,dword ptr [RDX + RCX*0x4] CMP ESI,R15D JNZ 0x00154bf4 LAB_00154ba4: BT EAX,0x8 JC 0x00154bc3 ADD RBX,0x4 MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x10] MOV ECX,dword ptr [RAX + RBX*0x4 + 0x4] SUB ECX,dword ptr [RAX + RBX*0x4] CMP ECX,R14D JNZ 0x00154c13 LAB_00154bc3: ADD RSP,0xe8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00154bd5: LEA RDI,[0x1b80be] LEA RSI,[0x1b7836] LEA RCX,[0x1b87a9] MOV EDX,0x155 CALL 0x00139540 LAB_00154bf4: LEA RDI,[0x1b7ef9] LEA RSI,[0x1b7836] LEA RCX,[0x1b865c] MOV EDX,0x578 CALL 0x00139540 LAB_00154c13: LEA RDI,[0x1b7fb0] LEA RSI,[0x1b7836] LEA RCX,[0x1b865c] MOV EDX,0x579 CALL 0x00139540
/* OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoints(int, OpenSubdiv::v3_6_0::Far::SparseMatrix<double>&, double*, int*) const */ void __thiscall OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoints (GregoryConverter<double> *this,int param_1,SparseMatrix *param_2,double *param_3, int *param_4) { void *__dest; void *__dest_00; void *__src; void *__src_00; ushort uVar1; int iVar2; long lVar3; long lVar4; long lVar5; uint uVar6; ulong uVar7; long lVar8; GregoryConverter<double> *pGVar9; uint uVar10; int iVar11; int iVar12; int local_d8 [2]; long local_d0; long local_c8; int local_c0 [2]; void *local_b8; void *local_b0; int local_a8 [2]; void *local_a0; void *local_98; int local_90 [2]; long local_88; long local_80; int local_78 [2]; long local_70; long local_68; int local_60 [2]; long local_58; long local_50; int local_48 [2]; long local_40; long local_38; uVar10 = param_1 - 1U & 3; lVar3 = *(long *)(param_2 + 0x10); uVar7 = (ulong)(uVar10 * 0x14); iVar11 = *(int *)(lVar3 + 4 + uVar7); local_48[0] = *(int *)(lVar3 + 8 + uVar7) - iVar11; lVar4 = *(long *)(param_2 + 0x28); local_40 = lVar4 + (long)iVar11 * 4; lVar5 = *(long *)(param_2 + 0x40); local_38 = lVar5 + (long)iVar11 * 8; lVar8 = (long)(param_1 * 5); iVar11 = *(int *)(lVar3 + 0xc + lVar8 * 4); local_78[0] = *(int *)(lVar3 + 8 + lVar8 * 4); local_60[0] = iVar11 - local_78[0]; local_58 = lVar4 + (long)local_78[0] * 4; local_50 = lVar5 + (long)local_78[0] * 8; iVar2 = *(int *)(lVar3 + 4 + lVar8 * 4); iVar12 = *(int *)(lVar3 + lVar8 * 4); local_d8[0] = iVar2 - iVar12; local_d0 = lVar4 + (long)iVar12 * 4; local_78[0] = local_78[0] - iVar2; local_c8 = lVar5 + (long)iVar12 * 8; local_70 = lVar4 + (long)iVar2 * 4; local_68 = lVar5 + (long)iVar2 * 8; uVar6 = param_1 + 1U & 3; uVar7 = (ulong)(uVar6 * 0x14); iVar2 = *(int *)(lVar3 + 8 + uVar7); local_90[0] = *(int *)(lVar3 + 0xc + uVar7) - iVar2; local_88 = lVar4 + (long)iVar2 * 4; local_80 = lVar5 + (long)iVar2 * 8; iVar2 = *(int *)(lVar3 + 0x10 + lVar8 * 4); iVar12 = iVar2 - iVar11; __dest = (void *)(lVar4 + (long)iVar11 * 4); __dest_00 = (void *)(lVar5 + (long)iVar11 * 8); iVar11 = *(int *)(lVar3 + 0x14 + lVar8 * 4) - iVar2; __src = (void *)(lVar4 + (long)iVar2 * 4); __src_00 = (void *)(lVar5 + (long)iVar2 * 8); pGVar9 = this + (long)param_1 * 0xe0 + 0x18; uVar1 = *(ushort *)pGVar9; local_c0[0] = iVar11; local_b8 = __src; local_b0 = __src_00; local_a8[0] = iVar12; local_a0 = __dest; local_98 = __dest_00; if ((uVar1 & 0x280) == 0) { computeIrregularFacePoint (this,param_1,*(int *)(this + (long)param_1 * 0xe0 + 0x24),uVar6, (SparseMatrixRow *)local_d8,(SparseMatrixRow *)local_78,(SparseMatrixRow *)local_90, (SparseMatrixRow *)local_a8,DAT_001b7598,param_3,param_4); uVar1 = *(ushort *)pGVar9; } if ((uVar1 & 0x500) == 0) { computeIrregularFacePoint (this,param_1, (*(int *)(this + (long)param_1 * 0xe0 + 0x24) + 1) % *(int *)(this + (long)param_1 * 0xe0 + 0x1c),uVar10,(SparseMatrixRow *)local_d8, (SparseMatrixRow *)local_60,(SparseMatrixRow *)local_48,(SparseMatrixRow *)local_c0, DAT_001b7608,param_3,param_4); uVar1 = *(ushort *)pGVar9; } if ((uVar1 >> 9 & 1) != 0) { if (iVar12 != iVar11) goto LAB_00154bd5; memcpy(__dest,__src,(long)iVar12 * 4); memcpy(__dest_00,__src_00,(long)iVar12 << 3); uVar1 = *(ushort *)pGVar9; } if ((uVar1 >> 10 & 1) != 0) { if (iVar11 != iVar12) { LAB_00154bd5: /* WARNING: Subroutine does not return */ __assert_fail("GetSize() == other.GetSize()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp" ,0x155, "void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double>::Copy(const SparseMatrixRow<REAL> &) [REAL = double]" ); } memcpy(__src,__dest,(long)iVar12 * 4); memcpy(__src_00,__dest_00,(long)iVar12 << 3); uVar1 = *(ushort *)pGVar9; } if ((-1 < (char)uVar1) && (*(int *)(*(long *)(param_2 + 0x10) + 4 + (lVar8 + 3) * 4) - *(int *)(*(long *)(param_2 + 0x10) + (lVar8 + 3) * 4) != iVar12)) { /* WARNING: Subroutine does not return */ __assert_fail("matrix.GetRowSize(5*cIndex + 3) == fp.GetSize()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp" ,0x578, "void OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoints(int, Matrix &, Weight *, int *) const [REAL = double]" ); } if (((uVar1 >> 8 & 1) == 0) && (*(int *)(*(long *)(param_2 + 0x10) + 4 + (lVar8 + 4) * 4) - *(int *)(*(long *)(param_2 + 0x10) + (lVar8 + 4) * 4) != iVar11)) { /* WARNING: Subroutine does not return */ __assert_fail("matrix.GetRowSize(5*cIndex + 4) == fm.GetSize()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp" ,0x579, "void OpenSubdiv::v3_6_0::Far::GregoryConverter<double>::computeIrregularFacePoints(int, Matrix &, Weight *, int *) const [REAL = double]" ); } return; }
34,001
lshift
eloqsql/strings/dtoa.c
static Bigint *lshift(Bigint *b, int k, Stack_alloc *alloc) { int i, k1, n, n1; Bigint *b1; ULong *x, *x1, *xe, z; n= k >> 5; k1= b->k; n1= n + b->wds + 1; for (i= b->maxwds; n1 > i; i<<= 1) k1++; b1= Balloc(k1, alloc); x1= b1->p.x; for (i= 0; i < n; i++) *x1++= 0; x= b->p.x; xe= x + b->wds; if (k&= 0x1f) { k1= 32 - k; z= 0; do { *x1++= *x << k | z; z= *x++ >> k1; } while (x < xe); if ((*x1= z)) ++n1; } else do *x1++= *x++; while (x < xe); b1->wds= n1 - 1; Bfree(b, alloc); return b1; }
O0
c
lshift: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movl -0xc(%rbp), %eax sarl $0x5, %eax movl %eax, -0x24(%rbp) movq -0x8(%rbp), %rax movl 0x8(%rax), %eax movl %eax, -0x20(%rbp) movl -0x24(%rbp), %eax movq -0x8(%rbp), %rcx addl 0x14(%rcx), %eax addl $0x1, %eax movl %eax, -0x28(%rbp) movq -0x8(%rbp), %rax movl 0xc(%rax), %eax movl %eax, -0x1c(%rbp) movl -0x28(%rbp), %eax cmpl -0x1c(%rbp), %eax jle 0x792db movl -0x20(%rbp), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) movl -0x1c(%rbp), %eax shll %eax movl %eax, -0x1c(%rbp) jmp 0x792c0 movl -0x20(%rbp), %edi movq -0x18(%rbp), %rsi callq 0x78b50 movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq (%rax), %rax movq %rax, -0x40(%rbp) movl $0x0, -0x1c(%rbp) movl -0x1c(%rbp), %eax cmpl -0x24(%rbp), %eax jge 0x79325 movq -0x40(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x40(%rbp) movl $0x0, (%rax) movl -0x1c(%rbp), %eax addl $0x1, %eax movl %eax, -0x1c(%rbp) jmp 0x792fd movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq -0x8(%rbp), %rcx movslq 0x14(%rcx), %rcx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x48(%rbp) movl -0xc(%rbp), %eax andl $0x1f, %eax movl %eax, -0xc(%rbp) cmpl $0x0, %eax je 0x793c4 movl $0x20, %eax subl -0xc(%rbp), %eax movl %eax, -0x20(%rbp) movl $0x0, -0x4c(%rbp) movq -0x38(%rbp), %rax movl (%rax), %eax movl -0xc(%rbp), %ecx shll %cl, %eax movl %eax, %ecx orl -0x4c(%rbp), %ecx movq -0x40(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x40(%rbp) movl %ecx, (%rax) movq -0x38(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x38(%rbp) movl (%rax), %eax movl -0x20(%rbp), %ecx shrl %cl, %eax movl %eax, -0x4c(%rbp) movq -0x38(%rbp), %rax cmpq -0x48(%rbp), %rax jb 0x79367 movl -0x4c(%rbp), %eax movq -0x40(%rbp), %rcx movl %eax, (%rcx) cmpl $0x0, %eax je 0x793c2 movl -0x28(%rbp), %eax addl $0x1, %eax movl %eax, -0x28(%rbp) jmp 0x793f4 jmp 0x793c6 movq -0x38(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x38(%rbp) movl (%rax), %ecx movq -0x40(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x40(%rbp) movl %ecx, (%rax) movq -0x38(%rbp), %rax cmpq -0x48(%rbp), %rax jb 0x793c6 jmp 0x793f4 movl -0x28(%rbp), %ecx subl $0x1, %ecx movq -0x30(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x79200 movq -0x30(%rbp), %rax addq $0x50, %rsp popq %rbp retq nopl (%rax,%rax)
lshift: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov eax, [rbp+var_C] sar eax, 5 mov [rbp+var_24], eax mov rax, [rbp+var_8] mov eax, [rax+8] mov [rbp+var_20], eax mov eax, [rbp+var_24] mov rcx, [rbp+var_8] add eax, [rcx+14h] add eax, 1 mov [rbp+var_28], eax mov rax, [rbp+var_8] mov eax, [rax+0Ch] mov [rbp+var_1C], eax loc_792C0: mov eax, [rbp+var_28] cmp eax, [rbp+var_1C] jle short loc_792DB mov eax, [rbp+var_20] add eax, 1 mov [rbp+var_20], eax mov eax, [rbp+var_1C] shl eax, 1 mov [rbp+var_1C], eax jmp short loc_792C0 loc_792DB: mov edi, [rbp+var_20] mov rsi, [rbp+var_18] call Balloc mov [rbp+var_30], rax mov rax, [rbp+var_30] mov rax, [rax] mov [rbp+var_40], rax mov [rbp+var_1C], 0 loc_792FD: mov eax, [rbp+var_1C] cmp eax, [rbp+var_24] jge short loc_79325 mov rax, [rbp+var_40] mov rcx, rax add rcx, 4 mov [rbp+var_40], rcx mov dword ptr [rax], 0 mov eax, [rbp+var_1C] add eax, 1 mov [rbp+var_1C], eax jmp short loc_792FD loc_79325: mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_38] mov rcx, [rbp+var_8] movsxd rcx, dword ptr [rcx+14h] shl rcx, 2 add rax, rcx mov [rbp+var_48], rax mov eax, [rbp+var_C] and eax, 1Fh mov [rbp+var_C], eax cmp eax, 0 jz short loc_793C4 mov eax, 20h ; ' ' sub eax, [rbp+var_C] mov [rbp+var_20], eax mov [rbp+var_4C], 0 loc_79367: mov rax, [rbp+var_38] mov eax, [rax] mov ecx, [rbp+var_C] shl eax, cl mov ecx, eax or ecx, [rbp+var_4C] mov rax, [rbp+var_40] mov rdx, rax add rdx, 4 mov [rbp+var_40], rdx mov [rax], ecx mov rax, [rbp+var_38] mov rcx, rax add rcx, 4 mov [rbp+var_38], rcx mov eax, [rax] mov ecx, [rbp+var_20] shr eax, cl mov [rbp+var_4C], eax mov rax, [rbp+var_38] cmp rax, [rbp+var_48] jb short loc_79367 mov eax, [rbp+var_4C] mov rcx, [rbp+var_40] mov [rcx], eax cmp eax, 0 jz short loc_793C2 mov eax, [rbp+var_28] add eax, 1 mov [rbp+var_28], eax loc_793C2: jmp short loc_793F4 loc_793C4: jmp short $+2 loc_793C6: mov rax, [rbp+var_38] mov rcx, rax add rcx, 4 mov [rbp+var_38], rcx mov ecx, [rax] mov rax, [rbp+var_40] mov rdx, rax add rdx, 4 mov [rbp+var_40], rdx mov [rax], ecx mov rax, [rbp+var_38] cmp rax, [rbp+var_48] jb short loc_793C6 jmp short $+2 loc_793F4: mov ecx, [rbp+var_28] sub ecx, 1 mov rax, [rbp+var_30] mov [rax+14h], ecx mov rdi, [rbp+var_8] mov rsi, [rbp+var_18] call Bfree mov rax, [rbp+var_30] add rsp, 50h pop rbp retn
long long lshift(unsigned long long a1, int a2, unsigned long long *a3) { int *v3; // rax int *v4; // rax int *v5; // rax int *v6; // rax int v7; // ecx int *v8; // rax int v10; // [rsp+4h] [rbp-4Ch] unsigned long long v11; // [rsp+8h] [rbp-48h] int *v12; // [rsp+10h] [rbp-40h] int *v13; // [rsp+18h] [rbp-38h] long long v14; // [rsp+20h] [rbp-30h] int v15; // [rsp+28h] [rbp-28h] int v16; // [rsp+30h] [rbp-20h] int i; // [rsp+34h] [rbp-1Ch] int j; // [rsp+34h] [rbp-1Ch] char v20; // [rsp+44h] [rbp-Ch] v16 = *(_DWORD *)(a1 + 8); v15 = *(_DWORD *)(a1 + 20) + (a2 >> 5) + 1; for ( i = *(_DWORD *)(a1 + 12); v15 > i; i *= 2 ) ++v16; v14 = Balloc(v16, (long long)a3); v12 = *(int **)v14; for ( j = 0; j < a2 >> 5; ++j ) { v3 = v12++; *v3 = 0; } v13 = *(int **)a1; v11 = 4LL * *(int *)(a1 + 20) + *(_QWORD *)a1; v20 = a2 & 0x1F; if ( (a2 & 0x1F) != 0 ) { v10 = 0; do { v4 = v12++; *v4 = v10 | (*v13 << v20); v5 = v13++; v10 = (unsigned int)*v5 >> (32 - v20); } while ( (unsigned long long)v13 < v11 ); *v12 = v10; if ( v10 ) ++v15; } else { do { v6 = v13++; v7 = *v6; v8 = v12++; *v8 = v7; } while ( (unsigned long long)v13 < v11 ); } *(_DWORD *)(v14 + 20) = v15 - 1; Bfree(a1, a3); return v14; }
lshift: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV EAX,dword ptr [RBP + -0xc] SAR EAX,0x5 MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x20],EAX MOV EAX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x8] ADD EAX,dword ptr [RCX + 0x14] ADD EAX,0x1 MOV dword ptr [RBP + -0x28],EAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0xc] MOV dword ptr [RBP + -0x1c],EAX LAB_001792c0: MOV EAX,dword ptr [RBP + -0x28] CMP EAX,dword ptr [RBP + -0x1c] JLE 0x001792db MOV EAX,dword ptr [RBP + -0x20] ADD EAX,0x1 MOV dword ptr [RBP + -0x20],EAX MOV EAX,dword ptr [RBP + -0x1c] SHL EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX JMP 0x001792c0 LAB_001792db: MOV EDI,dword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00178b50 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x40],RAX MOV dword ptr [RBP + -0x1c],0x0 LAB_001792fd: MOV EAX,dword ptr [RBP + -0x1c] CMP EAX,dword ptr [RBP + -0x24] JGE 0x00179325 MOV RAX,qword ptr [RBP + -0x40] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x40],RCX MOV dword ptr [RAX],0x0 MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX JMP 0x001792fd LAB_00179325: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RCX + 0x14] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x1f MOV dword ptr [RBP + -0xc],EAX CMP EAX,0x0 JZ 0x001793c4 MOV EAX,0x20 SUB EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0x20],EAX MOV dword ptr [RBP + -0x4c],0x0 LAB_00179367: MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX] MOV ECX,dword ptr [RBP + -0xc] SHL EAX,CL MOV ECX,EAX OR ECX,dword ptr [RBP + -0x4c] MOV RAX,qword ptr [RBP + -0x40] MOV RDX,RAX ADD RDX,0x4 MOV qword ptr [RBP + -0x40],RDX MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x38] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x38],RCX MOV EAX,dword ptr [RAX] MOV ECX,dword ptr [RBP + -0x20] SHR EAX,CL MOV dword ptr [RBP + -0x4c],EAX MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x48] JC 0x00179367 MOV EAX,dword ptr [RBP + -0x4c] MOV RCX,qword ptr [RBP + -0x40] MOV dword ptr [RCX],EAX CMP EAX,0x0 JZ 0x001793c2 MOV EAX,dword ptr [RBP + -0x28] ADD EAX,0x1 MOV dword ptr [RBP + -0x28],EAX LAB_001793c2: JMP 0x001793f4 LAB_001793c4: JMP 0x001793c6 LAB_001793c6: MOV RAX,qword ptr [RBP + -0x38] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x38],RCX MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x40] MOV RDX,RAX ADD RDX,0x4 MOV qword ptr [RBP + -0x40],RDX MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x48] JC 0x001793c6 JMP 0x001793f4 LAB_001793f4: MOV ECX,dword ptr [RBP + -0x28] SUB ECX,0x1 MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RAX + 0x14],ECX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00179200 MOV RAX,qword ptr [RBP + -0x30] ADD RSP,0x50 POP RBP RET
int8 * lshift(int8 *param_1,uint param_2,int8 param_3) { sbyte sVar1; int iVar2; int8 *puVar3; uint *puVar4; uint *puVar5; uint *puVar6; uint local_54; uint *local_48; uint *local_40; int local_30; int local_28; int local_24; local_28 = *(int *)(param_1 + 1); iVar2 = ((int)param_2 >> 5) + *(int *)((long)param_1 + 0x14); local_30 = iVar2 + 1; for (local_24 = *(int *)((long)param_1 + 0xc); local_24 < local_30; local_24 = local_24 << 1) { local_28 = local_28 + 1; } puVar3 = (int8 *)Balloc(local_28,param_3); local_48 = (uint *)*puVar3; for (local_24 = 0; local_24 < (int)param_2 >> 5; local_24 = local_24 + 1) { *local_48 = 0; local_48 = local_48 + 1; } local_40 = (uint *)*param_1; puVar4 = local_40 + *(int *)((long)param_1 + 0x14); if ((param_2 & 0x1f) == 0) { do { puVar5 = local_40 + 1; *local_48 = *local_40; local_48 = local_48 + 1; local_40 = puVar5; } while (puVar5 < puVar4); } else { sVar1 = (sbyte)(param_2 & 0x1f); local_54 = 0; do { puVar6 = local_48 + 1; *local_48 = *local_40 << sVar1 | local_54; puVar5 = local_40 + 1; local_54 = *local_40 >> (0x20U - sVar1 & 0x1f); local_48 = puVar6; local_40 = puVar5; } while (puVar5 < puVar4); *puVar6 = local_54; if (local_54 != 0) { local_30 = iVar2 + 2; } } *(int *)((long)puVar3 + 0x14) = local_30 + -1; Bfree(param_1,param_3); return puVar3; }
34,002
lshift
eloqsql/strings/dtoa.c
static Bigint *lshift(Bigint *b, int k, Stack_alloc *alloc) { int i, k1, n, n1; Bigint *b1; ULong *x, *x1, *xe, z; n= k >> 5; k1= b->k; n1= n + b->wds + 1; for (i= b->maxwds; n1 > i; i<<= 1) k1++; b1= Balloc(k1, alloc); x1= b1->p.x; for (i= 0; i < n; i++) *x1++= 0; x= b->p.x; xe= x + b->wds; if (k&= 0x1f) { k1= 32 - k; z= 0; do { *x1++= *x << k | z; z= *x++ >> k1; } while (x < xe); if ((*x1= z)) ++n1; } else do *x1++= *x++; while (x < xe); b1->wds= n1 - 1; Bfree(b, alloc); return b1; }
O3
c
lshift: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %esi, %r15d movq %rdi, %r14 movl %esi, %r12d shrl $0x5, %r12d movl 0x8(%rdi), %edi movl 0xc(%r14), %eax movl 0x14(%r14), %ebx addl %r12d, %ebx cmpl %eax, %ebx jl 0x5c459 incl %edi addl %eax, %eax jmp 0x5c44f movq %rdx, -0x38(%rbp) movq %rdx, %rsi callq 0x5bffc movq (%rax), %r13 cmpl $0x20, %r15d jb 0x5c490 decl %r12d leaq 0x4(,%r12,4), %rdx movq %r13, %rdi xorl %esi, %esi movq %rax, -0x30(%rbp) callq 0x24180 movq -0x30(%rbp), %rax leaq 0x4(%r13,%r12,4), %r13 movq (%r14), %rdx movslq 0x14(%r14), %rcx leaq (%rdx,%rcx,4), %rsi andl $0x1f, %r15d je 0x5c4dc movl $0x20, %r9d subl %r15d, %r9d xorl %edi, %edi movl (%rdx), %r8d movl %r15d, %ecx shll %cl, %r8d orl %edi, %r8d movl %r8d, (%r13) addq $0x4, %r13 movl (%rdx), %edi addq $0x4, %rdx movl %r9d, %ecx shrl %cl, %edi cmpq %rsi, %rdx jb 0x5c4ac movl %edi, (%r13) cmpl $0x1, %edi sbbl $-0x1, %ebx jmp 0x5c4ef movl (%rdx), %ecx addq $0x4, %rdx movl %ecx, (%r13) addq $0x4, %r13 cmpq %rsi, %rdx jb 0x5c4dc movl %ebx, 0x14(%rax) movq %r14, %rdi movq -0x38(%rbp), %rsi movq %rax, %rbx callq 0x5c3f5 movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
lshift: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15d, esi mov r14, rdi mov r12d, esi shr r12d, 5 mov edi, [rdi+8] mov eax, [r14+0Ch] mov ebx, [r14+14h] add ebx, r12d loc_5C44F: cmp ebx, eax jl short loc_5C459 inc edi add eax, eax jmp short loc_5C44F loc_5C459: mov [rbp+var_38], rdx mov rsi, rdx call Balloc mov r13, [rax] cmp r15d, 20h ; ' ' jb short loc_5C490 dec r12d lea rdx, ds:4[r12*4] mov rdi, r13 xor esi, esi mov [rbp+var_30], rax call _memset mov rax, [rbp+var_30] lea r13, [r13+r12*4+4] loc_5C490: mov rdx, [r14] movsxd rcx, dword ptr [r14+14h] lea rsi, [rdx+rcx*4] and r15d, 1Fh jz short loc_5C4DC mov r9d, 20h ; ' ' sub r9d, r15d xor edi, edi loc_5C4AC: mov r8d, [rdx] mov ecx, r15d shl r8d, cl or r8d, edi mov [r13+0], r8d add r13, 4 mov edi, [rdx] add rdx, 4 mov ecx, r9d shr edi, cl cmp rdx, rsi jb short loc_5C4AC mov [r13+0], edi cmp edi, 1 sbb ebx, 0FFFFFFFFh jmp short loc_5C4EF loc_5C4DC: mov ecx, [rdx] add rdx, 4 mov [r13+0], ecx add r13, 4 cmp rdx, rsi jb short loc_5C4DC loc_5C4EF: mov [rax+14h], ebx mov rdi, r14 mov rsi, [rbp+var_38] mov rbx, rax call Bfree mov rax, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long lshift(unsigned long long a1, unsigned int a2, unsigned long long *a3) { char v3; // r15 int v5; // edi int v6; // eax int v7; // ebx long long v8; // rax int *v9; // r13 long long v10; // r12 int *v11; // rdx unsigned long long v12; // rsi int v13; // r15d int v14; // edi unsigned int v15; // edi int v16; // ecx long long v17; // rbx long long v20; // [rsp+10h] [rbp-30h] v3 = a2; v5 = *(_DWORD *)(a1 + 8); v6 = *(_DWORD *)(a1 + 12); v7 = (a2 >> 5) + *(_DWORD *)(a1 + 20); while ( v7 >= v6 ) { ++v5; v6 *= 2; } v8 = Balloc(v5, (long long)a3); v9 = *(int **)v8; if ( a2 >= 0x20 ) { v10 = (a2 >> 5) - 1; v20 = v8; memset(*(_QWORD *)v8, 0LL, 4 * v10 + 4); v8 = v20; v9 += v10 + 1; } v11 = *(int **)a1; v12 = *(_QWORD *)a1 + 4LL * *(int *)(a1 + 20); v13 = v3 & 0x1F; if ( v13 ) { v14 = 0; do { *v9++ = v14 | (*v11 << v13); v15 = *v11++; v14 = v15 >> (32 - v13); } while ( (unsigned long long)v11 < v12 ); *v9 = v14; v7 -= (v14 == 0) - 1; } else { do { v16 = *v11++; *v9++ = v16; } while ( (unsigned long long)v11 < v12 ); } *(_DWORD *)(v8 + 20) = v7; v17 = v8; Bfree(a1, a3); return v17; }
lshift: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15D,ESI MOV R14,RDI MOV R12D,ESI SHR R12D,0x5 MOV EDI,dword ptr [RDI + 0x8] MOV EAX,dword ptr [R14 + 0xc] MOV EBX,dword ptr [R14 + 0x14] ADD EBX,R12D LAB_0015c44f: CMP EBX,EAX JL 0x0015c459 INC EDI ADD EAX,EAX JMP 0x0015c44f LAB_0015c459: MOV qword ptr [RBP + -0x38],RDX MOV RSI,RDX CALL 0x0015bffc MOV R13,qword ptr [RAX] CMP R15D,0x20 JC 0x0015c490 DEC R12D LEA RDX,[0x4 + R12*0x4] MOV RDI,R13 XOR ESI,ESI MOV qword ptr [RBP + -0x30],RAX CALL 0x00124180 MOV RAX,qword ptr [RBP + -0x30] LEA R13,[R13 + R12*0x4 + 0x4] LAB_0015c490: MOV RDX,qword ptr [R14] MOVSXD RCX,dword ptr [R14 + 0x14] LEA RSI,[RDX + RCX*0x4] AND R15D,0x1f JZ 0x0015c4dc MOV R9D,0x20 SUB R9D,R15D XOR EDI,EDI LAB_0015c4ac: MOV R8D,dword ptr [RDX] MOV ECX,R15D SHL R8D,CL OR R8D,EDI MOV dword ptr [R13],R8D ADD R13,0x4 MOV EDI,dword ptr [RDX] ADD RDX,0x4 MOV ECX,R9D SHR EDI,CL CMP RDX,RSI JC 0x0015c4ac MOV dword ptr [R13],EDI CMP EDI,0x1 SBB EBX,-0x1 JMP 0x0015c4ef LAB_0015c4dc: MOV ECX,dword ptr [RDX] ADD RDX,0x4 MOV dword ptr [R13],ECX ADD R13,0x4 CMP RDX,RSI JC 0x0015c4dc LAB_0015c4ef: MOV dword ptr [RAX + 0x14],EBX MOV RDI,R14 MOV RSI,qword ptr [RBP + -0x38] MOV RBX,RAX CALL 0x0015c3f5 MOV RAX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 * lshift(int8 *param_1,uint param_2,int8 param_3) { uint *puVar1; sbyte sVar2; int iVar3; int8 *puVar4; uint *puVar5; int iVar6; uint uVar7; ulong uVar8; uint *__s; iVar6 = *(int *)((long)param_1 + 0x14) + (param_2 >> 5); for (iVar3 = *(int *)((long)param_1 + 0xc); iVar3 <= iVar6; iVar3 = iVar3 * 2) { } puVar4 = (int8 *)Balloc(); __s = (uint *)*puVar4; if (0x1f < param_2) { uVar8 = (ulong)((param_2 >> 5) - 1); memset(__s,0,uVar8 * 4 + 4); __s = __s + uVar8 + 1; } puVar5 = (uint *)*param_1; puVar1 = puVar5 + *(int *)((long)param_1 + 0x14); if ((param_2 & 0x1f) == 0) { do { uVar7 = *puVar5; puVar5 = puVar5 + 1; *__s = uVar7; __s = __s + 1; } while (puVar5 < puVar1); } else { sVar2 = (sbyte)(param_2 & 0x1f); uVar7 = 0; do { *__s = *puVar5 << sVar2 | uVar7; __s = __s + 1; uVar7 = *puVar5; puVar5 = puVar5 + 1; uVar7 = uVar7 >> (0x20U - sVar2 & 0x1f); } while (puVar5 < puVar1); *__s = uVar7; iVar6 = (iVar6 + 1) - (uint)(uVar7 == 0); } *(int *)((long)puVar4 + 0x14) = iVar6; Bfree(param_1,param_3); return puVar4; }
34,003
set_default_charset_by_name
eloqsql/libmariadb/libmariadb/mariadb_charset.c
my_bool set_default_charset_by_name(const char *cs_name, myf flags __attribute__((unused))) { MARIADB_CHARSET_INFO *new_charset; new_charset = mysql_get_charset_by_name(cs_name); if (!new_charset) { return(TRUE); /* error */ } ma_default_charset_info = new_charset; return(FALSE); }
O0
c
set_default_charset_by_name: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq -0x10(%rbp), %rdi callq 0x46f10 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) jne 0x46fe9 movb $0x1, -0x1(%rbp) jmp 0x46ffb movq -0x20(%rbp), %rcx leaq 0x1ada4(%rip), %rax # 0x61d98 movq %rcx, (%rax) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
set_default_charset_by_name: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov rdi, [rbp+var_10] call mysql_get_charset_by_name mov [rbp+var_20], rax cmp [rbp+var_20], 0 jnz short loc_46FE9 mov [rbp+var_1], 1 jmp short loc_46FFB loc_46FE9: mov rcx, [rbp+var_20] lea rax, ma_default_charset_info mov [rax], rcx mov [rbp+var_1], 0 loc_46FFB: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char set_default_charset_by_name(long long a1) { char *charset_by_name; // [rsp+0h] [rbp-20h] charset_by_name = mysql_get_charset_by_name(a1); if ( !charset_by_name ) return 1; ma_default_charset_info = charset_by_name; return 0; }
set_default_charset_by_name: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV RDI,qword ptr [RBP + -0x10] CALL 0x00146f10 MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JNZ 0x00146fe9 MOV byte ptr [RBP + -0x1],0x1 JMP 0x00146ffb LAB_00146fe9: MOV RCX,qword ptr [RBP + -0x20] LEA RAX,[0x161d98] MOV qword ptr [RAX],RCX MOV byte ptr [RBP + -0x1],0x0 LAB_00146ffb: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int8 set_default_charset_by_name(int8 param_1) { long lVar1; int8 *puVar2; bool local_9; lVar1 = mysql_get_charset_by_name(param_1); if (lVar1 != 0) { puVar2 = &ma_default_charset_info; ma_default_charset_info = lVar1; } else { puVar2 = (int8 *)0x0; } local_9 = lVar1 == 0; return CONCAT71((int7)((ulong)puVar2 >> 8),local_9); }
34,004
flush_cached_blocks
eloqsql/storage/maria/ma_pagecache.c
static int flush_cached_blocks(PAGECACHE *pagecache, PAGECACHE_FILE *file, PAGECACHE_BLOCK_LINK **cache, PAGECACHE_BLOCK_LINK **end, enum flush_type type, int *first_errno) { int rc= PCFLUSH_OK; my_bool error; uint count= (uint) (end-cache); DBUG_ENTER("flush_cached_blocks"); *first_errno= 0; /* Don't lock the cache during the flush */ pagecache_pthread_mutex_unlock(&pagecache->cache_lock); /* As all blocks referred in 'cache' are marked by PCBLOCK_IN_FLUSH we are guaranteed that no thread will change them */ qsort((uchar*) cache, count, sizeof(*cache), (qsort_cmp) cmp_sec_link); pagecache_pthread_mutex_lock(&pagecache->cache_lock); for (; cache != end; cache++) { PAGECACHE_BLOCK_LINK *block= *cache; /* In the case of non_transactional tables we want to flush also block pinned with reads. This is becasue we may have other threads reading the block during flush, as non transactional tables can have many readers while the one writer is doing the flush. We don't want to do flush pinned blocks during checkpoint. We detect the checkpoint case by checking if type is LAZY. */ if ((type == FLUSH_KEEP_LAZY && block->pins) || block->wlocks) { KEYCACHE_DBUG_PRINT("flush_cached_blocks", ("block: %u (%p) pinned", PCBLOCK_NUMBER(pagecache, block), block)); DBUG_PRINT("info", ("block: %u (%p) pinned", PCBLOCK_NUMBER(pagecache, block), block)); PCBLOCK_INFO(block); /* undo the mark put by flush_pagecache_blocks_int(): */ block->status&= ~PCBLOCK_IN_FLUSH; rc|= PCFLUSH_PINNED; DBUG_PRINT("warning", ("Page pinned")); unreg_request(pagecache, block, 1); if (!*first_errno) *first_errno= HA_ERR_INTERNAL_ERROR; continue; } if (make_lock_and_pin(pagecache, block, PAGECACHE_LOCK_READ, PAGECACHE_PIN, FALSE)) DBUG_ASSERT(0); KEYCACHE_PRINT("flush_cached_blocks", ("block: %u (%p) to be flushed", PCBLOCK_NUMBER(pagecache, block), block)); DBUG_PRINT("info", ("block: %u (%p) to be flushed", PCBLOCK_NUMBER(pagecache, block), block)); PCBLOCK_INFO(block); /** @todo IO If page is contiguous with next page to flush, group flushes in one single my_pwrite(). */ /** It is important to use block->hash_link->file below and not 'file', as the first one is right and the second may have different out-of-date content (see StaleFilePointersInFlush in ma_checkpoint.c). @todo change argument of functions to be File. */ pagecache_pthread_mutex_unlock(&pagecache->cache_lock); error= pagecache_fwrite(pagecache, &block->hash_link->file, block->buffer, block->hash_link->pageno, block->type, pagecache->readwrite_flags); pagecache_pthread_mutex_lock(&pagecache->cache_lock); if (make_lock_and_pin(pagecache, block, PAGECACHE_LOCK_READ_UNLOCK, PAGECACHE_UNPIN, FALSE)) DBUG_ASSERT(0); pagecache->global_cache_write++; if (error) { block->status|= PCBLOCK_ERROR; block->error= (int16) my_errno; my_debug_put_break_here(); if (!*first_errno) *first_errno= my_errno ? my_errno : -1; rc|= PCFLUSH_ERROR; } /* Let to proceed for possible waiting requests to write to the block page. It might happen only during an operation to resize the key cache. */ if (block->wqueue[COND_FOR_SAVED].last_thread) wqueue_release_queue(&block->wqueue[COND_FOR_SAVED]); /* type will never be FLUSH_IGNORE_CHANGED here */ if (! (type == FLUSH_KEEP || type == FLUSH_KEEP_LAZY || type == FLUSH_FORCE_WRITE)) { if (!free_block(pagecache, block, 1)) { pagecache->blocks_changed--; pagecache->global_blocks_changed--; } else { block->status&= ~PCBLOCK_IN_FLUSH; link_to_file_list(pagecache, block, file, 1); } } else { block->status&= ~PCBLOCK_IN_FLUSH; link_to_file_list(pagecache, block, file, 1); unreg_request(pagecache, block, 1); } } DBUG_RETURN(rc); }
O3
c
flush_cached_blocks: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %r9, %r14 movl %r8d, -0x2c(%rbp) movq %rdx, %r12 movq %rsi, -0x38(%rbp) movq %rdi, %r13 movq %rcx, -0x48(%rbp) movq %rcx, %rbx subq %rdx, %rbx shrq $0x3, %rbx movl $0x0, (%r9) leaq 0xc8(%rdi), %r15 movq 0x108(%rdi), %rdi testq %rdi, %rdi jne 0x35429 movq %r15, %rdi callq 0x291e0 movl %ebx, %esi leaq 0x258(%rip), %rcx # 0x35457 movl $0x8, %edx movq %r12, %rdi callq 0x295d0 cmpq $0x0, 0x108(%r13) jne 0x3543e movq %r15, %rdi callq 0x29220 cmpq -0x48(%rbp), %r12 movl -0x2c(%rbp), %eax je 0x35414 movq %r15, -0x50(%rbp) xorl %r15d, %r15d movq %r14, -0x40(%rbp) movq (%r12), %rbx cmpl $0x4, %eax jne 0x35249 cmpl $0x0, 0x64(%rbx) jne 0x3524f cmpl $0x0, 0x68(%rbx) je 0x3527d andb $-0x11, 0x74(%rbx) orl $0x2, %r15d movq %r13, %rdi movq %rbx, %rsi movl $0x1, %edx callq 0x320cf cmpl $0x0, (%r14) jne 0x35398 movl $0x7a, (%r14) jmp 0x35398 movl %r15d, -0x30(%rbp) movq %r13, %rdi movq %rbx, %rsi movl $0x3, %edx movl $0x2, %ecx callq 0x31f5f movq 0x108(%r13), %rdi testq %rdi, %rdi jne 0x353e6 movq -0x50(%rbp), %r15 movq %r15, %rdi callq 0x291e0 movq 0x20(%rbx), %rsi movq 0x30(%rbx), %rdx movq 0x60(%rsi), %rcx addq $0x18, %rsi movq 0x198(%r13), %r8 movq %r13, %rdi callq 0x340e0 movl %eax, %r14d cmpq $0x0, 0x108(%r13) jne 0x353fb movq %r15, %rdi callq 0x29220 movq %r13, %rdi movq %rbx, %rsi movl $0x5, %edx movl $0x3, %ecx callq 0x31f5f incq 0x178(%r13) testb %r14b, %r14b movl -0x30(%rbp), %r15d je 0x3533c orb $0x1, 0x74(%rbx) callq 0xa1afa movzwl (%rax), %eax movw %ax, 0x76(%rbx) movq -0x40(%rbp), %r14 cmpl $0x0, (%r14) jne 0x3534a callq 0xa1afa cmpl $0x0, (%rax) je 0x35342 callq 0xa1afa movl (%rax), %eax jmp 0x35347 movq -0x40(%rbp), %r14 jmp 0x3534e movl $0xffffffff, %eax # imm = 0xFFFFFFFF movl %eax, (%r14) orl $0x1, %r15d cmpq $0x0, 0x50(%rbx) je 0x3535e leaq 0x50(%rbx), %rdi callq 0xa6727 movl -0x2c(%rbp), %eax cmpl $0x4, %eax ja 0x353ab movl $0x19, %ecx btl %eax, %ecx jae 0x353ab andb $-0x11, 0x74(%rbx) movq %r13, %rdi movq %rbx, %rsi movq -0x38(%rbp), %rdx movl $0x1, %ecx callq 0x34e5a movq %r13, %rdi movq %rbx, %rsi movl $0x1, %edx callq 0x320cf movl -0x2c(%rbp), %eax addq $0x8, %r12 cmpq -0x48(%rbp), %r12 jne 0x3523a jmp 0x35417 movq %r13, %rdi movq %rbx, %rsi movl $0x1, %edx callq 0x34c81 testb %al, %al je 0x353d9 andb $-0x11, 0x74(%rbx) movq %r13, %rdi movq %rbx, %rsi movq -0x38(%rbp), %rdx movl $0x1, %ecx callq 0x34e5a jmp 0x35398 decq 0x58(%r13) decq 0x168(%r13) jmp 0x35398 leaq 0x350c23(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x352a6 movq %r15, %rdi leaq 0xa41a4(%rip), %rsi # 0xd95a9 movl $0x12dd, %edx # imm = 0x12DD callq 0x2eb8f jmp 0x352ea xorl %r15d, %r15d movl %r15d, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x350be0(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x351ee leaq 0xa4164(%rip), %rsi # 0xd95a9 movq %r15, %rdi movl $0x12a3, %edx # imm = 0x12A3 callq 0x2eb8f jmp 0x35222
flush_cached_blocks: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r14, r9 mov [rbp+var_2C], r8d mov r12, rdx mov [rbp+var_38], rsi mov r13, rdi mov [rbp+var_48], rcx mov rbx, rcx sub rbx, rdx shr rbx, 3 mov dword ptr [r9], 0 lea r15, [rdi+0C8h] mov rdi, [rdi+108h] test rdi, rdi jnz loc_35429 loc_351EE: mov rdi, r15 call _pthread_mutex_unlock mov esi, ebx lea rcx, cmp_sec_link mov edx, 8 mov rdi, r12 call _qsort cmp qword ptr [r13+108h], 0 jnz loc_3543E mov rdi, r15 call _pthread_mutex_lock loc_35222: cmp r12, [rbp+var_48] mov eax, [rbp+var_2C] jz loc_35414 mov [rbp+var_50], r15 xor r15d, r15d mov [rbp+var_40], r14 loc_3523A: mov rbx, [r12] cmp eax, 4 jnz short loc_35249 cmp dword ptr [rbx+64h], 0 jnz short loc_3524F loc_35249: cmp dword ptr [rbx+68h], 0 jz short loc_3527D loc_3524F: and byte ptr [rbx+74h], 0EFh or r15d, 2 mov rdi, r13 mov rsi, rbx mov edx, 1 call unreg_request cmp dword ptr [r14], 0 jnz loc_35398 mov dword ptr [r14], 7Ah ; 'z' jmp loc_35398 loc_3527D: mov [rbp+var_30], r15d mov rdi, r13 mov rsi, rbx mov edx, 3 mov ecx, 2 call make_lock_and_pin mov rdi, [r13+108h] test rdi, rdi jnz loc_353E6 loc_352A6: mov r15, [rbp+var_50] mov rdi, r15 call _pthread_mutex_unlock mov rsi, [rbx+20h] mov rdx, [rbx+30h] mov rcx, [rsi+60h] add rsi, 18h mov r8, [r13+198h] mov rdi, r13 call pagecache_fwrite mov r14d, eax cmp qword ptr [r13+108h], 0 jnz loc_353FB mov rdi, r15 call _pthread_mutex_lock loc_352EA: mov rdi, r13 mov rsi, rbx mov edx, 5 mov ecx, 3 call make_lock_and_pin inc qword ptr [r13+178h] test r14b, r14b mov r15d, [rbp+var_30] jz short loc_3533C or byte ptr [rbx+74h], 1 call _my_thread_var movzx eax, word ptr [rax] mov [rbx+76h], ax mov r14, [rbp+var_40] cmp dword ptr [r14], 0 jnz short loc_3534A call _my_thread_var cmp dword ptr [rax], 0 jz short loc_35342 call _my_thread_var mov eax, [rax] jmp short loc_35347 loc_3533C: mov r14, [rbp+var_40] jmp short loc_3534E loc_35342: mov eax, 0FFFFFFFFh loc_35347: mov [r14], eax loc_3534A: or r15d, 1 loc_3534E: cmp qword ptr [rbx+50h], 0 jz short loc_3535E lea rdi, [rbx+50h] call wqueue_release_queue loc_3535E: mov eax, [rbp+var_2C] cmp eax, 4 ja short loc_353AB mov ecx, 19h bt ecx, eax jnb short loc_353AB and byte ptr [rbx+74h], 0EFh mov rdi, r13 mov rsi, rbx mov rdx, [rbp+var_38] mov ecx, 1 call link_to_file_list mov rdi, r13 mov rsi, rbx mov edx, 1 call unreg_request loc_35398: mov eax, [rbp+var_2C] add r12, 8 cmp r12, [rbp+var_48] jnz loc_3523A jmp short loc_35417 loc_353AB: mov rdi, r13 mov rsi, rbx mov edx, 1 call free_block test al, al jz short loc_353D9 and byte ptr [rbx+74h], 0EFh mov rdi, r13 mov rsi, rbx mov rdx, [rbp+var_38] mov ecx, 1 call link_to_file_list jmp short loc_35398 loc_353D9: dec qword ptr [r13+58h] dec qword ptr [r13+168h] jmp short loc_35398 loc_353E6: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_352A6 loc_353FB: mov rdi, r15 lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 12DDh call psi_mutex_lock jmp loc_352EA loc_35414: xor r15d, r15d loc_35417: mov eax, r15d add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_35429: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_351EE loc_3543E: lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, r15 mov edx, 12A3h call psi_mutex_lock jmp loc_35222
long long flush_cached_blocks(_QWORD *a1, long long a2, long long *a3, long long *a4, unsigned int a5, int *a6) { int *v6; // r14 long long *v7; // r12 unsigned long long v8; // rbx long long v9; // r15 unsigned int v10; // eax unsigned int v11; // r15d long long v12; // rbx char v13; // r14 long long v14; // rdx long long v15; // rcx long long v16; // r8 long long v17; // rdx long long v18; // rdx int v19; // eax long long v21; // [rsp+0h] [rbp-50h] int *v23; // [rsp+10h] [rbp-40h] v6 = a6; v7 = a3; v8 = (unsigned long long)((char *)a4 - (char *)a3) >> 3; *a6 = 0; v9 = (long long)(a1 + 25); if ( a1[33] ) PSI_server[44](); pthread_mutex_unlock(v9); qsort(v7, (unsigned int)v8, 8LL, cmp_sec_link); if ( a1[33] ) psi_mutex_lock(v9, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x12A3u); else pthread_mutex_lock(v9); v10 = a5; if ( v7 == a4 ) { return 0; } else { v21 = (long long)(a1 + 25); v11 = 0; v23 = v6; do { v12 = *v7; if ( v10 == 4 && *(_DWORD *)(v12 + 100) || *(_DWORD *)(v12 + 104) ) { *(_BYTE *)(v12 + 116) &= ~0x10u; v11 |= 2u; unreg_request(a1, v12, 1); if ( !*v6 ) *v6 = 122; } else { make_lock_and_pin((long long)a1, v12, 3, 2); if ( a1[33] ) PSI_server[44](); pthread_mutex_unlock(v21); v13 = pagecache_fwrite( (long long)a1, *(_QWORD *)(v12 + 32) + 24LL, *(_QWORD *)(v12 + 48), *(_QWORD *)(*(_QWORD *)(v12 + 32) + 96LL), a1[51]); if ( a1[33] ) psi_mutex_lock(v21, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x12DDu); else pthread_mutex_lock(v21); make_lock_and_pin((long long)a1, v12, 5, 3); ++a1[47]; if ( v13 ) { *(_BYTE *)(v12 + 116) |= 1u; *(_WORD *)(v12 + 118) = *(_WORD *)my_thread_var(a1, v12, v14, v15, v16); v6 = v23; if ( !*v23 ) { if ( *(_DWORD *)my_thread_var(a1, v12, v17, v15, v16) ) v19 = *(_DWORD *)my_thread_var(a1, v12, v18, v15, v16); else v19 = -1; *v23 = v19; } v11 |= 1u; } else { v6 = v23; } if ( *(_QWORD *)(v12 + 80) ) wqueue_release_queue(v12 + 80); if ( a5 <= 4 && (v15 = 25LL, _bittest((const int *)&v15, a5)) ) { *(_BYTE *)(v12 + 116) &= ~0x10u; link_to_file_list((long long)a1, v12, a2, 1); unreg_request(a1, v12, 1); } else if ( (unsigned __int8)free_block(a1, v12, 1LL, v15, v16) ) { *(_BYTE *)(v12 + 116) &= ~0x10u; link_to_file_list((long long)a1, v12, a2, 1); } else { --a1[11]; --a1[45]; } } v10 = a5; ++v7; } while ( v7 != a4 ); } return v11; }
flush_cached_blocks: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R14,R9 MOV dword ptr [RBP + -0x2c],R8D MOV R12,RDX MOV qword ptr [RBP + -0x38],RSI MOV R13,RDI MOV qword ptr [RBP + -0x48],RCX MOV RBX,RCX SUB RBX,RDX SHR RBX,0x3 MOV dword ptr [R9],0x0 LEA R15,[RDI + 0xc8] MOV RDI,qword ptr [RDI + 0x108] TEST RDI,RDI JNZ 0x00135429 LAB_001351ee: MOV RDI,R15 CALL 0x001291e0 MOV ESI,EBX LEA RCX,[0x135457] MOV EDX,0x8 MOV RDI,R12 CALL 0x001295d0 CMP qword ptr [R13 + 0x108],0x0 JNZ 0x0013543e MOV RDI,R15 CALL 0x00129220 LAB_00135222: CMP R12,qword ptr [RBP + -0x48] MOV EAX,dword ptr [RBP + -0x2c] JZ 0x00135414 MOV qword ptr [RBP + -0x50],R15 XOR R15D,R15D MOV qword ptr [RBP + -0x40],R14 LAB_0013523a: MOV RBX,qword ptr [R12] CMP EAX,0x4 JNZ 0x00135249 CMP dword ptr [RBX + 0x64],0x0 JNZ 0x0013524f LAB_00135249: CMP dword ptr [RBX + 0x68],0x0 JZ 0x0013527d LAB_0013524f: AND byte ptr [RBX + 0x74],0xef OR R15D,0x2 MOV RDI,R13 MOV RSI,RBX MOV EDX,0x1 CALL 0x001320cf CMP dword ptr [R14],0x0 JNZ 0x00135398 MOV dword ptr [R14],0x7a JMP 0x00135398 LAB_0013527d: MOV dword ptr [RBP + -0x30],R15D MOV RDI,R13 MOV RSI,RBX MOV EDX,0x3 MOV ECX,0x2 CALL 0x00131f5f MOV RDI,qword ptr [R13 + 0x108] TEST RDI,RDI JNZ 0x001353e6 LAB_001352a6: MOV R15,qword ptr [RBP + -0x50] MOV RDI,R15 CALL 0x001291e0 MOV RSI,qword ptr [RBX + 0x20] MOV RDX,qword ptr [RBX + 0x30] MOV RCX,qword ptr [RSI + 0x60] ADD RSI,0x18 MOV R8,qword ptr [R13 + 0x198] MOV RDI,R13 CALL 0x001340e0 MOV R14D,EAX CMP qword ptr [R13 + 0x108],0x0 JNZ 0x001353fb MOV RDI,R15 CALL 0x00129220 LAB_001352ea: MOV RDI,R13 MOV RSI,RBX MOV EDX,0x5 MOV ECX,0x3 CALL 0x00131f5f INC qword ptr [R13 + 0x178] TEST R14B,R14B MOV R15D,dword ptr [RBP + -0x30] JZ 0x0013533c OR byte ptr [RBX + 0x74],0x1 CALL 0x001a1afa MOVZX EAX,word ptr [RAX] MOV word ptr [RBX + 0x76],AX MOV R14,qword ptr [RBP + -0x40] CMP dword ptr [R14],0x0 JNZ 0x0013534a CALL 0x001a1afa CMP dword ptr [RAX],0x0 JZ 0x00135342 CALL 0x001a1afa MOV EAX,dword ptr [RAX] JMP 0x00135347 LAB_0013533c: MOV R14,qword ptr [RBP + -0x40] JMP 0x0013534e LAB_00135342: MOV EAX,0xffffffff LAB_00135347: MOV dword ptr [R14],EAX LAB_0013534a: OR R15D,0x1 LAB_0013534e: CMP qword ptr [RBX + 0x50],0x0 JZ 0x0013535e LEA RDI,[RBX + 0x50] CALL 0x001a6727 LAB_0013535e: MOV EAX,dword ptr [RBP + -0x2c] CMP EAX,0x4 JA 0x001353ab MOV ECX,0x19 BT ECX,EAX JNC 0x001353ab AND byte ptr [RBX + 0x74],0xef MOV RDI,R13 MOV RSI,RBX MOV RDX,qword ptr [RBP + -0x38] MOV ECX,0x1 CALL 0x00134e5a MOV RDI,R13 MOV RSI,RBX MOV EDX,0x1 CALL 0x001320cf LAB_00135398: MOV EAX,dword ptr [RBP + -0x2c] ADD R12,0x8 CMP R12,qword ptr [RBP + -0x48] JNZ 0x0013523a JMP 0x00135417 LAB_001353ab: MOV RDI,R13 MOV RSI,RBX MOV EDX,0x1 CALL 0x00134c81 TEST AL,AL JZ 0x001353d9 AND byte ptr [RBX + 0x74],0xef MOV RDI,R13 MOV RSI,RBX MOV RDX,qword ptr [RBP + -0x38] MOV ECX,0x1 CALL 0x00134e5a JMP 0x00135398 LAB_001353d9: DEC qword ptr [R13 + 0x58] DEC qword ptr [R13 + 0x168] JMP 0x00135398 LAB_001353e6: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x001352a6 LAB_001353fb: MOV RDI,R15 LEA RSI,[0x1d95a9] MOV EDX,0x12dd CALL 0x0012eb8f JMP 0x001352ea LAB_00135414: XOR R15D,R15D LAB_00135417: MOV EAX,R15D ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00135429: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x001351ee LAB_0013543e: LEA RSI,[0x1d95a9] MOV RDI,R15 MOV EDX,0x12a3 CALL 0x0012eb8f JMP 0x00135222
uint flush_cached_blocks(long param_1,int8 param_2,long *param_3,long *param_4,uint param_5, int *param_6) { pthread_mutex_t *__mutex; long lVar1; char cVar2; int iVar3; int2 *puVar4; int *piVar5; uint uVar6; *param_6 = 0; __mutex = (pthread_mutex_t *)(param_1 + 200); if (*(long *)(param_1 + 0x108) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); qsort(param_3,(ulong)((long)param_4 - (long)param_3) >> 3 & 0xffffffff,8,cmp_sec_link); if (*(long *)(param_1 + 0x108) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x12a3); } if (param_3 == param_4) { uVar6 = 0; } else { uVar6 = 0; do { lVar1 = *param_3; if (((param_5 == 4) && (*(int *)(lVar1 + 100) != 0)) || (*(int *)(lVar1 + 0x68) != 0)) { *(byte *)(lVar1 + 0x74) = *(byte *)(lVar1 + 0x74) & 0xef; uVar6 = uVar6 | 2; unreg_request(param_1,lVar1,1); if (*param_6 == 0) { *param_6 = 0x7a; } } else { make_lock_and_pin(param_1,lVar1,3,2); if (*(long *)(param_1 + 0x108) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); cVar2 = pagecache_fwrite(param_1,*(long *)(lVar1 + 0x20) + 0x18, *(int8 *)(lVar1 + 0x30), *(int8 *)(*(long *)(lVar1 + 0x20) + 0x60), *(int8 *)(param_1 + 0x198)); if (*(long *)(param_1 + 0x108) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x12dd); } make_lock_and_pin(param_1,lVar1,5,3); *(long *)(param_1 + 0x178) = *(long *)(param_1 + 0x178) + 1; if (cVar2 != '\0') { *(byte *)(lVar1 + 0x74) = *(byte *)(lVar1 + 0x74) | 1; puVar4 = (int2 *)_my_thread_var(); *(int2 *)(lVar1 + 0x76) = *puVar4; if (*param_6 == 0) { piVar5 = (int *)_my_thread_var(); if (*piVar5 == 0) { iVar3 = -1; } else { piVar5 = (int *)_my_thread_var(); iVar3 = *piVar5; } *param_6 = iVar3; } uVar6 = uVar6 | 1; } if (*(long *)(lVar1 + 0x50) != 0) { wqueue_release_queue(lVar1 + 0x50); } if ((param_5 < 5) && ((0x19U >> (param_5 & 0x1f) & 1) != 0)) { *(byte *)(lVar1 + 0x74) = *(byte *)(lVar1 + 0x74) & 0xef; link_to_file_list(param_1,lVar1,param_2,1); unreg_request(param_1,lVar1,1); } else { cVar2 = free_block(param_1,lVar1,1); if (cVar2 == '\0') { *(long *)(param_1 + 0x58) = *(long *)(param_1 + 0x58) + -1; *(long *)(param_1 + 0x168) = *(long *)(param_1 + 0x168) + -1; } else { *(byte *)(lVar1 + 0x74) = *(byte *)(lVar1 + 0x74) & 0xef; link_to_file_list(param_1,lVar1,param_2,1); } } } param_3 = param_3 + 1; } while (param_3 != param_4); } return uVar6; }
34,005
my_strnncollsp_simple
eloqsql/strings/ctype-simple.c
int my_strnncollsp_simple(CHARSET_INFO * cs, const uchar *a, size_t a_length, const uchar *b, size_t b_length) { const uchar *map= cs->sort_order, *end; size_t length; int res; end= a + (length= MY_MIN(a_length, b_length)); while (a < end) { if (map[*a++] != map[*b++]) return ((int) map[a[-1]] - (int) map[b[-1]]); } res= 0; if (a_length != b_length) { int swap= 1; /* Check the next not space character of the longer key. If it's < ' ', then it's smaller than the other key. */ if (a_length < b_length) { /* put shorter key in s */ a_length= b_length; a= b; swap= -1; /* swap sign of result */ res= -res; } for (end= a + a_length-length; a < end ; a++) { if (map[*a] != map[' ']) return (map[*a] < map[' ']) ? -swap : swap; } } return res; }
O3
c
my_strnncollsp_simple: pushq %rbp movq %rsp, %rbp movq 0x58(%rdi), %rdi cmpq %r8, %rdx movq %r8, %r9 cmovbq %rdx, %r9 leaq (%rsi,%r9), %r10 cmpq %r10, %rsi jae 0xb7ae1 movzbl (%rsi), %eax incq %rsi movzbl (%rdi,%rax), %eax movzbl (%rcx), %r11d incq %rcx movzbl (%rdi,%r11), %r11d cmpb %r11b, %al je 0xb7abc subl %r11d, %eax jmp 0xb7b37 cmpq %r8, %rdx jne 0xb7aea xorl %eax, %eax jmp 0xb7b37 xorl %eax, %eax cmpq %r8, %rdx cmovaq %rdx, %r8 cmovbq %rcx, %rsi movl $0x0, %ecx sbbl %ecx, %ecx leaq (%rsi,%r8), %rdx subq %r9, %rdx cmpq %rdx, %rsi jae 0xb7b37 orl $0x1, %ecx movb 0x20(%rdi), %dl subq %r9, %r8 xorl %eax, %eax movzbl (%rsi,%rax), %r9d movb (%rdi,%r9), %r9b cmpb %dl, %r9b jne 0xb7b2d incq %rax cmpq %rax, %r8 jne 0xb7b15 jmp 0xb7ae6 movl %ecx, %eax negl %eax cmpb %dl, %r9b cmovael %ecx, %eax popq %rbp retq
my_strnncollsp_simple: push rbp mov rbp, rsp mov rdi, [rdi+58h] cmp rdx, r8 mov r9, r8 cmovb r9, rdx lea r10, [rsi+r9] loc_B7ABC: cmp rsi, r10 jnb short loc_B7AE1 movzx eax, byte ptr [rsi] inc rsi movzx eax, byte ptr [rdi+rax] movzx r11d, byte ptr [rcx] inc rcx movzx r11d, byte ptr [rdi+r11] cmp al, r11b jz short loc_B7ABC sub eax, r11d jmp short loc_B7B37 loc_B7AE1: cmp rdx, r8 jnz short loc_B7AEA loc_B7AE6: xor eax, eax jmp short loc_B7B37 loc_B7AEA: xor eax, eax cmp rdx, r8 cmova r8, rdx cmovb rsi, rcx mov ecx, 0 sbb ecx, ecx lea rdx, [rsi+r8] sub rdx, r9 cmp rsi, rdx jnb short loc_B7B37 or ecx, 1 mov dl, [rdi+20h] sub r8, r9 xor eax, eax loc_B7B15: movzx r9d, byte ptr [rsi+rax] mov r9b, [rdi+r9] cmp r9b, dl jnz short loc_B7B2D inc rax cmp r8, rax jnz short loc_B7B15 jmp short loc_B7AE6 loc_B7B2D: mov eax, ecx neg eax cmp r9b, dl cmovnb eax, ecx loc_B7B37: pop rbp retn
long long my_strnncollsp_simple( long long a1, unsigned __int8 *a2, unsigned long long a3, unsigned __int8 *a4, unsigned long long a5) { long long v5; // rdi unsigned long long v6; // r9 unsigned __int8 *v7; // r10 long long v8; // rax int v9; // eax long long v10; // r11 int v11; // r11d long long result; // rax bool v13; // cf unsigned int v14; // ecx unsigned __int8 v15; // dl unsigned long long v16; // r8 long long v17; // rax unsigned __int8 v18; // r9 v5 = *(_QWORD *)(a1 + 88); v6 = a5; if ( a3 < a5 ) v6 = a3; v7 = &a2[v6]; while ( a2 < v7 ) { v8 = *a2++; v9 = *(unsigned __int8 *)(v5 + v8); v10 = *a4++; v11 = *(unsigned __int8 *)(v5 + v10); if ( (_BYTE)v9 != (_BYTE)v11 ) return (unsigned int)(v9 - v11); } if ( a3 == a5 ) return 0LL; result = 0LL; v13 = a3 < a5; if ( a3 > a5 ) a5 = a3; if ( v13 ) a2 = a4; if ( a2 < &a2[a5 - v6] ) { v14 = v13 ? -1 : 1; v15 = *(_BYTE *)(v5 + 32); v16 = a5 - v6; v17 = 0LL; while ( 1 ) { v18 = *(_BYTE *)(v5 + a2[v17]); if ( v18 != v15 ) break; if ( v16 == ++v17 ) return 0LL; } result = -v14; if ( v18 >= v15 ) return v14; } return result; }
my_strnncollsp_simple: PUSH RBP MOV RBP,RSP MOV RDI,qword ptr [RDI + 0x58] CMP RDX,R8 MOV R9,R8 CMOVC R9,RDX LEA R10,[RSI + R9*0x1] LAB_001b7abc: CMP RSI,R10 JNC 0x001b7ae1 MOVZX EAX,byte ptr [RSI] INC RSI MOVZX EAX,byte ptr [RDI + RAX*0x1] MOVZX R11D,byte ptr [RCX] INC RCX MOVZX R11D,byte ptr [RDI + R11*0x1] CMP AL,R11B JZ 0x001b7abc SUB EAX,R11D JMP 0x001b7b37 LAB_001b7ae1: CMP RDX,R8 JNZ 0x001b7aea LAB_001b7ae6: XOR EAX,EAX JMP 0x001b7b37 LAB_001b7aea: XOR EAX,EAX CMP RDX,R8 CMOVA R8,RDX CMOVC RSI,RCX MOV ECX,0x0 SBB ECX,ECX LEA RDX,[RSI + R8*0x1] SUB RDX,R9 CMP RSI,RDX JNC 0x001b7b37 OR ECX,0x1 MOV DL,byte ptr [RDI + 0x20] SUB R8,R9 XOR EAX,EAX LAB_001b7b15: MOVZX R9D,byte ptr [RSI + RAX*0x1] MOV R9B,byte ptr [RDI + R9*0x1] CMP R9B,DL JNZ 0x001b7b2d INC RAX CMP R8,RAX JNZ 0x001b7b15 JMP 0x001b7ae6 LAB_001b7b2d: MOV EAX,ECX NEG EAX CMP R9B,DL CMOVNC EAX,ECX LAB_001b7b37: POP RBP RET
uint my_strnncollsp_simple(long param_1,byte *param_2,ulong param_3,byte *param_4,ulong param_5) { byte *pbVar1; byte bVar2; byte bVar3; long lVar4; long lVar5; uint uVar6; ulong uVar7; ulong uVar8; lVar4 = *(long *)(param_1 + 0x58); uVar8 = param_5; if (param_3 < param_5) { uVar8 = param_3; } pbVar1 = param_2 + uVar8; while (param_2 < pbVar1) { bVar2 = *param_2; param_2 = param_2 + 1; bVar3 = *param_4; param_4 = param_4 + 1; if (*(byte *)(lVar4 + (ulong)bVar2) != *(byte *)(lVar4 + (ulong)bVar3)) { return (uint)*(byte *)(lVar4 + (ulong)bVar2) - (uint)*(byte *)(lVar4 + (ulong)bVar3); } } if (param_3 != param_5) { uVar7 = param_5; if (param_5 < param_3) { uVar7 = param_3; } if (param_3 < param_5) { param_2 = param_4; } if (param_2 + (uVar7 - uVar8) <= param_2) { return 0; } uVar6 = -(uint)(param_3 < param_5) | 1; lVar5 = 0; do { if (*(byte *)(lVar4 + (ulong)param_2[lVar5]) != *(byte *)(lVar4 + 0x20)) { if (*(byte *)(lVar4 + (ulong)param_2[lVar5]) < *(byte *)(lVar4 + 0x20)) { return -uVar6; } return uVar6; } lVar5 = lVar5 + 1; } while (uVar7 - uVar8 != lVar5); } return 0; }
34,006
inline_mysql_file_stat
eloqsql/include/mysql/psi/mysql_file.h
static inline MY_STAT * inline_mysql_file_stat( #ifdef HAVE_PSI_FILE_INTERFACE PSI_file_key key, const char *src_file, uint src_line, #endif const char *path, MY_STAT *stat_area, myf flags) { MY_STAT *result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_STAT, path, &locker); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line); result= my_stat(path, stat_area, flags); PSI_FILE_CALL(end_file_open_wait)(locker, result); return result; } #endif result= my_stat(path, stat_area, flags); return result; }
O0
c
inline_mysql_file_stat: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movl %edi, -0xc(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) leaq 0x234450(%rip), %rax # 0x2c8038 movq (%rax), %rax movq 0x148(%rax), %rax movl -0xc(%rbp), %esi movq -0x28(%rbp), %rcx leaq -0x90(%rbp), %rdi movl $0xb, %edx leaq -0x48(%rbp), %r8 callq *%rax movq %rax, -0x48(%rbp) cmpq $0x0, -0x48(%rbp) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x93c87 leaq 0x234402(%rip), %rax # 0x2c8038 movq (%rax), %rax movq 0x1f0(%rax), %rax movq -0x48(%rbp), %rdi movq -0x18(%rbp), %rsi movl -0x1c(%rbp), %edx callq *%rax movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x38(%rbp), %rdx callq 0xfaf10 movq %rax, -0x40(%rbp) leaq 0x2343cf(%rip), %rax # 0x2c8038 movq (%rax), %rax movq 0x1f8(%rax), %rax movq -0x48(%rbp), %rdi movq -0x40(%rbp), %rsi callq *%rax movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x93ca4 movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x38(%rbp), %rdx callq 0xfaf10 movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x90, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
inline_mysql_file_stat: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_C], edi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 lea rax, PSI_server mov rax, [rax] mov rax, [rax+148h] mov esi, [rbp+var_C] mov rcx, [rbp+var_28] lea rdi, [rbp+var_90] mov edx, 0Bh lea r8, [rbp+var_48] call rax mov [rbp+var_48], rax cmp [rbp+var_48], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_93C87 lea rax, PSI_server mov rax, [rax] mov rax, [rax+1F0h] mov rdi, [rbp+var_48] mov rsi, [rbp+var_18] mov edx, [rbp+var_1C] call rax mov rdi, [rbp+var_28] mov rsi, [rbp+var_30] mov rdx, [rbp+var_38] call my_stat mov [rbp+var_40], rax lea rax, PSI_server mov rax, [rax] mov rax, [rax+1F8h] mov rdi, [rbp+var_48] mov rsi, [rbp+var_40] call rax mov rax, [rbp+var_40] mov [rbp+var_8], rax jmp short loc_93CA4 loc_93C87: mov rdi, [rbp+var_28] mov rsi, [rbp+var_30] mov rdx, [rbp+var_38] call my_stat mov [rbp+var_40], rax mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_93CA4: mov rax, [rbp+var_8] add rsp, 90h pop rbp retn
long long inline_mysql_file_stat( unsigned int a1, long long a2, unsigned int a3, long long a4, long long a5, long long a6) { _BYTE v7[72]; // [rsp+0h] [rbp-90h] BYREF long long v8; // [rsp+48h] [rbp-48h] BYREF long long v9; // [rsp+50h] [rbp-40h] long long v10; // [rsp+58h] [rbp-38h] long long v11; // [rsp+60h] [rbp-30h] long long v12; // [rsp+68h] [rbp-28h] unsigned int v13; // [rsp+74h] [rbp-1Ch] long long v14; // [rsp+78h] [rbp-18h] unsigned int v15; // [rsp+84h] [rbp-Ch] v15 = a1; v14 = a2; v13 = a3; v12 = a4; v11 = a5; v10 = a6; v8 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(v7, a1, 11LL, a4, &v8); if ( !v8 ) return my_stat(v12, v11, v10); ((void ( *)(long long, long long, _QWORD))PSI_server[62])(v8, v14, v13); v9 = my_stat(v12, v11, v10); ((void ( *)(long long, long long))PSI_server[63])(v8, v9); return v9; }
inline_mysql_file_stat: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV dword ptr [RBP + -0xc],EDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 LEA RAX,[0x3c8038] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x148] MOV ESI,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x28] LEA RDI,[RBP + -0x90] MOV EDX,0xb LEA R8,[RBP + -0x48] CALL RAX MOV qword ptr [RBP + -0x48],RAX CMP qword ptr [RBP + -0x48],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00193c87 LEA RAX,[0x3c8038] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1f0] MOV RDI,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RBP + -0x1c] CALL RAX MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x38] CALL 0x001faf10 MOV qword ptr [RBP + -0x40],RAX LEA RAX,[0x3c8038] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1f8] MOV RDI,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x40] CALL RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX JMP 0x00193ca4 LAB_00193c87: MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x38] CALL 0x001faf10 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_00193ca4: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x90 POP RBP RET
int8 inline_mysql_file_stat (int4 param_1,int8 param_2,int4 param_3,int8 param_4, int8 param_5,int8 param_6) { int1 local_98 [72]; long local_50; int8 local_48; int8 local_40; int8 local_38; int8 local_30; int4 local_24; int8 local_20; int4 local_14; int8 local_10; local_40 = param_6; local_38 = param_5; local_30 = param_4; local_24 = param_3; local_20 = param_2; local_14 = param_1; local_50 = (**(code **)(PSI_server + 0x148))(local_98,param_1,0xb,param_4,&local_50); if (local_50 == 0) { local_10 = my_stat(local_30,local_38,local_40); } else { (**(code **)(PSI_server + 0x1f0))(local_50,local_20,local_24); local_48 = my_stat(local_30,local_38,local_40); (**(code **)(PSI_server + 0x1f8))(local_50,local_48); local_10 = local_48; } return local_10; }
34,007
js_cond_destroy
bluesky950520[P]quickjs/cutils.c
void js_cond_destroy(js_cond_t *cond) { #if defined(__APPLE__) && defined(__MACH__) /* It has been reported that destroying condition variables that have been * signalled but not waited on can sometimes result in application crashes. * See https://codereview.chromium.org/1323293005. */ pthread_mutex_t mutex; struct timespec ts; int err; if (pthread_mutex_init(&mutex, NULL)) abort(); if (pthread_mutex_lock(&mutex)) abort(); ts.tv_sec = 0; ts.tv_nsec = 1; err = pthread_cond_timedwait_relative_np(cond, &mutex, &ts); if (err != 0 && err != ETIMEDOUT) abort(); if (pthread_mutex_unlock(&mutex)) abort(); if (pthread_mutex_destroy(&mutex)) abort(); #endif /* defined(__APPLE__) && defined(__MACH__) */ if (pthread_cond_destroy(cond)) abort(); }
O0
c
js_cond_destroy: pushq %rax movq %rdi, (%rsp) movq (%rsp), %rdi callq 0xe780 cmpl $0x0, %eax je 0x20ff8 callq 0xe090 popq %rax retq nopw (%rax,%rax)
js_cond_destroy: push rax mov [rsp+8+var_8], rdi mov rdi, [rsp+8+var_8] call _pthread_cond_destroy cmp eax, 0 jz short loc_20FF8 call _abort loc_20FF8: pop rax retn
long long js_cond_destroy(long long a1) { if ( (unsigned int)pthread_cond_destroy(a1) ) abort(); return a1; }
find_timer_by_id: MOV qword ptr [RSP + -0x10],RDI MOV dword ptr [RSP + -0x14],ESI CMP dword ptr [RSP + -0x14],0x0 JG 0x00120ffb MOV qword ptr [RSP + -0x8],0x0 JMP 0x00121060 LAB_00120ffb: MOV RAX,qword ptr [RSP + -0x10] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RSP + -0x20],RAX LAB_00121009: MOV RAX,qword ptr [RSP + -0x20] MOV RCX,qword ptr [RSP + -0x10] ADD RCX,0x20 CMP RAX,RCX JZ 0x00121057 MOV RAX,qword ptr [RSP + -0x20] MOV qword ptr [RSP + -0x28],RAX MOV RAX,qword ptr [RSP + -0x28] MOV RAX,qword ptr [RAX + 0x10] MOVSXD RCX,dword ptr [RSP + -0x14] CMP RAX,RCX JNZ 0x00121045 MOV RAX,qword ptr [RSP + -0x28] MOV qword ptr [RSP + -0x8],RAX JMP 0x00121060 LAB_00121045: JMP 0x00121047 LAB_00121047: MOV RAX,qword ptr [RSP + -0x20] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + -0x20],RAX JMP 0x00121009 LAB_00121057: MOV qword ptr [RSP + -0x8],0x0 LAB_00121060: MOV RAX,qword ptr [RSP + -0x8] RET
long find_timer_by_id(long param_1,int param_2) { long local_20; if (0 < param_2) { for (local_20 = *(long *)(param_1 + 0x28); local_20 != param_1 + 0x20; local_20 = *(long *)(local_20 + 8)) { if (*(long *)(local_20 + 0x10) == (long)param_2) { return local_20; } } } return 0; }
34,008
js_cond_destroy
bluesky950520[P]quickjs/cutils.c
void js_cond_destroy(js_cond_t *cond) { #if defined(__APPLE__) && defined(__MACH__) /* It has been reported that destroying condition variables that have been * signalled but not waited on can sometimes result in application crashes. * See https://codereview.chromium.org/1323293005. */ pthread_mutex_t mutex; struct timespec ts; int err; if (pthread_mutex_init(&mutex, NULL)) abort(); if (pthread_mutex_lock(&mutex)) abort(); ts.tv_sec = 0; ts.tv_nsec = 1; err = pthread_cond_timedwait_relative_np(cond, &mutex, &ts); if (err != 0 && err != ETIMEDOUT) abort(); if (pthread_mutex_unlock(&mutex)) abort(); if (pthread_mutex_destroy(&mutex)) abort(); #endif /* defined(__APPLE__) && defined(__MACH__) */ if (pthread_cond_destroy(cond)) abort(); }
O1
c
js_cond_destroy: pushq %rax callq 0xe790 testl %eax, %eax jne 0x1c7e8 popq %rax retq callq 0xe090
js_cond_destroy: push rax call _pthread_cond_destroy test eax, eax jnz short loc_1C7E8 pop rax retn loc_1C7E8: call _abort
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> js_cond_destroy(long long a1) { if ( (unsigned int)pthread_cond_destroy() ) abort(a1); }
34,009
js_cond_destroy
bluesky950520[P]quickjs/cutils.c
void js_cond_destroy(js_cond_t *cond) { #if defined(__APPLE__) && defined(__MACH__) /* It has been reported that destroying condition variables that have been * signalled but not waited on can sometimes result in application crashes. * See https://codereview.chromium.org/1323293005. */ pthread_mutex_t mutex; struct timespec ts; int err; if (pthread_mutex_init(&mutex, NULL)) abort(); if (pthread_mutex_lock(&mutex)) abort(); ts.tv_sec = 0; ts.tv_nsec = 1; err = pthread_cond_timedwait_relative_np(cond, &mutex, &ts); if (err != 0 && err != ETIMEDOUT) abort(); if (pthread_mutex_unlock(&mutex)) abort(); if (pthread_mutex_destroy(&mutex)) abort(); #endif /* defined(__APPLE__) && defined(__MACH__) */ if (pthread_cond_destroy(cond)) abort(); }
O3
c
js_cond_destroy: pushq %rax callq 0xe790 testl %eax, %eax jne 0x1d0e6 popq %rax retq callq 0xe090
js_cond_destroy: push rax call _pthread_cond_destroy test eax, eax jnz short loc_1D0E6 pop rax retn loc_1D0E6: call _abort
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> js_cond_destroy(long long a1) { if ( (unsigned int)pthread_cond_destroy() ) abort(a1); }
js_cond_destroy: PUSH RAX CALL 0x0010e790 TEST EAX,EAX JNZ 0x0011d0e6 POP RAX RET LAB_0011d0e6: CALL 0x0010e090
int8 js_cond_destroy(pthread_cond_t *param_1) { int iVar1; int8 in_RAX; iVar1 = pthread_cond_destroy(param_1); if (iVar1 == 0) { return in_RAX; } /* WARNING: Subroutine does not return */ abort(); }
34,010
mi_n_base_info_read
eloqsql/storage/myisam/mi_open.c
uchar *mi_n_base_info_read(uchar *ptr, MI_BASE_INFO *base) { base->keystart = mi_sizekorr(ptr); ptr +=8; base->max_data_file_length = mi_sizekorr(ptr); ptr +=8; base->max_key_file_length = mi_sizekorr(ptr); ptr +=8; base->records = (ha_rows) mi_sizekorr(ptr); ptr +=8; base->reloc = (ha_rows) mi_sizekorr(ptr); ptr +=8; base->mean_row_length = mi_uint4korr(ptr); ptr +=4; base->reclength = mi_uint4korr(ptr); ptr +=4; base->pack_reclength = mi_uint4korr(ptr); ptr +=4; base->min_pack_length = mi_uint4korr(ptr); ptr +=4; base->max_pack_length = mi_uint4korr(ptr); ptr +=4; base->min_block_length = mi_uint4korr(ptr); ptr +=4; base->fields = mi_uint4korr(ptr); ptr +=4; base->pack_fields = mi_uint4korr(ptr); ptr +=4; base->rec_reflength = *ptr++; base->key_reflength = *ptr++; base->keys= *ptr++; base->auto_key= *ptr++; base->pack_bits = mi_uint2korr(ptr); ptr +=2; base->blobs = mi_uint2korr(ptr); ptr +=2; base->max_key_block_length= mi_uint2korr(ptr); ptr +=2; base->max_key_length = mi_uint2korr(ptr); ptr +=2; base->extra_alloc_bytes = mi_uint2korr(ptr); ptr +=2; base->extra_alloc_procent = *ptr++; ptr+=13; return ptr; }
O3
c
mi_n_base_info_read: pushq %rbp movq %rsp, %rbp movq (%rdi), %rax bswapq %rax movq %rax, (%rsi) movq 0x8(%rdi), %rax bswapq %rax movq %rax, 0x8(%rsi) movq 0x10(%rdi), %rax bswapq %rax movq %rax, 0x10(%rsi) movq 0x18(%rdi), %rax bswapq %rax movq %rax, 0x20(%rsi) movq 0x20(%rdi), %rax bswapq %rax movq %rax, 0x28(%rsi) movl 0x28(%rdi), %eax bswapl %eax movq %rax, 0x30(%rsi) movl 0x2c(%rdi), %eax bswapl %eax movq %rax, 0x38(%rsi) movl 0x30(%rdi), %eax bswapl %eax movq %rax, 0x40(%rsi) movl 0x34(%rdi), %eax bswapl %eax movq %rax, 0x48(%rsi) movl 0x38(%rdi), %eax bswapl %eax movq %rax, 0x50(%rsi) movl 0x3c(%rdi), %eax bswapl %eax movq %rax, 0x58(%rsi) movl 0x40(%rdi), %eax bswapl %eax movq %rax, 0x60(%rsi) movl 0x44(%rdi), %eax bswapl %eax movq %rax, 0x68(%rsi) movzbl 0x48(%rdi), %eax movl %eax, 0x70(%rsi) movzbl 0x49(%rdi), %eax movl %eax, 0x74(%rsi) movzbl 0x4a(%rdi), %eax movl %eax, 0x78(%rsi) movzbl 0x4b(%rdi), %eax movl %eax, 0x7c(%rsi) movzwl 0x4c(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x84(%rsi) movzwl 0x4e(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x80(%rsi) movzwl 0x50(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x88(%rsi) movzwl 0x52(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x8c(%rsi) movzwl 0x54(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x90(%rsi) movzbl 0x56(%rdi), %eax movl %eax, 0x94(%rsi) leaq 0x64(%rdi), %rax popq %rbp retq
mi_n_base_info_read: push rbp mov rbp, rsp mov rax, [rdi] bswap rax mov [rsi], rax mov rax, [rdi+8] bswap rax mov [rsi+8], rax mov rax, [rdi+10h] bswap rax mov [rsi+10h], rax mov rax, [rdi+18h] bswap rax mov [rsi+20h], rax mov rax, [rdi+20h] bswap rax mov [rsi+28h], rax mov eax, [rdi+28h] bswap eax mov [rsi+30h], rax mov eax, [rdi+2Ch] bswap eax mov [rsi+38h], rax mov eax, [rdi+30h] bswap eax mov [rsi+40h], rax mov eax, [rdi+34h] bswap eax mov [rsi+48h], rax mov eax, [rdi+38h] bswap eax mov [rsi+50h], rax mov eax, [rdi+3Ch] bswap eax mov [rsi+58h], rax mov eax, [rdi+40h] bswap eax mov [rsi+60h], rax mov eax, [rdi+44h] bswap eax mov [rsi+68h], rax movzx eax, byte ptr [rdi+48h] mov [rsi+70h], eax movzx eax, byte ptr [rdi+49h] mov [rsi+74h], eax movzx eax, byte ptr [rdi+4Ah] mov [rsi+78h], eax movzx eax, byte ptr [rdi+4Bh] mov [rsi+7Ch], eax movzx eax, word ptr [rdi+4Ch] rol ax, 8 movzx eax, ax mov [rsi+84h], eax movzx eax, word ptr [rdi+4Eh] rol ax, 8 movzx eax, ax mov [rsi+80h], eax movzx eax, word ptr [rdi+50h] rol ax, 8 movzx eax, ax mov [rsi+88h], eax movzx eax, word ptr [rdi+52h] rol ax, 8 movzx eax, ax mov [rsi+8Ch], eax movzx eax, word ptr [rdi+54h] rol ax, 8 movzx eax, ax mov [rsi+90h], eax movzx eax, byte ptr [rdi+56h] mov [rsi+94h], eax lea rax, [rdi+64h] pop rbp retn
long long mi_n_base_info_read(long long a1, long long a2) { *(_QWORD *)a2 = _byteswap_uint64(*(_QWORD *)a1); *(_QWORD *)(a2 + 8) = _byteswap_uint64(*(_QWORD *)(a1 + 8)); *(_QWORD *)(a2 + 16) = _byteswap_uint64(*(_QWORD *)(a1 + 16)); *(_QWORD *)(a2 + 32) = _byteswap_uint64(*(_QWORD *)(a1 + 24)); *(_QWORD *)(a2 + 40) = _byteswap_uint64(*(_QWORD *)(a1 + 32)); *(_QWORD *)(a2 + 48) = _byteswap_ulong(*(_DWORD *)(a1 + 40)); *(_QWORD *)(a2 + 56) = _byteswap_ulong(*(_DWORD *)(a1 + 44)); *(_QWORD *)(a2 + 64) = _byteswap_ulong(*(_DWORD *)(a1 + 48)); *(_QWORD *)(a2 + 72) = _byteswap_ulong(*(_DWORD *)(a1 + 52)); *(_QWORD *)(a2 + 80) = _byteswap_ulong(*(_DWORD *)(a1 + 56)); *(_QWORD *)(a2 + 88) = _byteswap_ulong(*(_DWORD *)(a1 + 60)); *(_QWORD *)(a2 + 96) = _byteswap_ulong(*(_DWORD *)(a1 + 64)); *(_QWORD *)(a2 + 104) = _byteswap_ulong(*(_DWORD *)(a1 + 68)); *(_DWORD *)(a2 + 112) = *(unsigned __int8 *)(a1 + 72); *(_DWORD *)(a2 + 116) = *(unsigned __int8 *)(a1 + 73); *(_DWORD *)(a2 + 120) = *(unsigned __int8 *)(a1 + 74); *(_DWORD *)(a2 + 124) = *(unsigned __int8 *)(a1 + 75); *(_DWORD *)(a2 + 132) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 76), 8); *(_DWORD *)(a2 + 128) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 78), 8); *(_DWORD *)(a2 + 136) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 80), 8); *(_DWORD *)(a2 + 140) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 82), 8); *(_DWORD *)(a2 + 144) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 84), 8); *(_DWORD *)(a2 + 148) = *(unsigned __int8 *)(a1 + 86); return a1 + 100; }
mi_n_base_info_read: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI] BSWAP RAX MOV qword ptr [RSI],RAX MOV RAX,qword ptr [RDI + 0x8] BSWAP RAX MOV qword ptr [RSI + 0x8],RAX MOV RAX,qword ptr [RDI + 0x10] BSWAP RAX MOV qword ptr [RSI + 0x10],RAX MOV RAX,qword ptr [RDI + 0x18] BSWAP RAX MOV qword ptr [RSI + 0x20],RAX MOV RAX,qword ptr [RDI + 0x20] BSWAP RAX MOV qword ptr [RSI + 0x28],RAX MOV EAX,dword ptr [RDI + 0x28] BSWAP EAX MOV qword ptr [RSI + 0x30],RAX MOV EAX,dword ptr [RDI + 0x2c] BSWAP EAX MOV qword ptr [RSI + 0x38],RAX MOV EAX,dword ptr [RDI + 0x30] BSWAP EAX MOV qword ptr [RSI + 0x40],RAX MOV EAX,dword ptr [RDI + 0x34] BSWAP EAX MOV qword ptr [RSI + 0x48],RAX MOV EAX,dword ptr [RDI + 0x38] BSWAP EAX MOV qword ptr [RSI + 0x50],RAX MOV EAX,dword ptr [RDI + 0x3c] BSWAP EAX MOV qword ptr [RSI + 0x58],RAX MOV EAX,dword ptr [RDI + 0x40] BSWAP EAX MOV qword ptr [RSI + 0x60],RAX MOV EAX,dword ptr [RDI + 0x44] BSWAP EAX MOV qword ptr [RSI + 0x68],RAX MOVZX EAX,byte ptr [RDI + 0x48] MOV dword ptr [RSI + 0x70],EAX MOVZX EAX,byte ptr [RDI + 0x49] MOV dword ptr [RSI + 0x74],EAX MOVZX EAX,byte ptr [RDI + 0x4a] MOV dword ptr [RSI + 0x78],EAX MOVZX EAX,byte ptr [RDI + 0x4b] MOV dword ptr [RSI + 0x7c],EAX MOVZX EAX,word ptr [RDI + 0x4c] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x84],EAX MOVZX EAX,word ptr [RDI + 0x4e] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x80],EAX MOVZX EAX,word ptr [RDI + 0x50] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x88],EAX MOVZX EAX,word ptr [RDI + 0x52] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x8c],EAX MOVZX EAX,word ptr [RDI + 0x54] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x90],EAX MOVZX EAX,byte ptr [RDI + 0x56] MOV dword ptr [RSI + 0x94],EAX LEA RAX,[RDI + 0x64] POP RBP RET
long mi_n_base_info_read(ulong *param_1,ulong *param_2) { uint uVar1; ulong uVar2; uVar2 = *param_1; *param_2 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 | (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38; uVar2 = param_1[1]; param_2[1] = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 | (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38; uVar2 = param_1[2]; param_2[2] = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 | (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38; uVar2 = param_1[3]; param_2[4] = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 | (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38; uVar2 = param_1[4]; param_2[5] = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 | (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38; uVar1 = (uint)param_1[5]; param_2[6] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar1 = *(uint *)((long)param_1 + 0x2c); param_2[7] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar1 = (uint)param_1[6]; param_2[8] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar1 = *(uint *)((long)param_1 + 0x34); param_2[9] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar1 = (uint)param_1[7]; param_2[10] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar1 = *(uint *)((long)param_1 + 0x3c); param_2[0xb] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar1 = (uint)param_1[8]; param_2[0xc] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar1 = *(uint *)((long)param_1 + 0x44); param_2[0xd] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); *(uint *)(param_2 + 0xe) = (uint)(byte)param_1[9]; *(uint *)((long)param_2 + 0x74) = (uint)*(byte *)((long)param_1 + 0x49); *(uint *)(param_2 + 0xf) = (uint)*(byte *)((long)param_1 + 0x4a); *(uint *)((long)param_2 + 0x7c) = (uint)*(byte *)((long)param_1 + 0x4b); *(uint *)((long)param_2 + 0x84) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x4c) << 8 | *(ushort *)((long)param_1 + 0x4c) >> 8); *(uint *)(param_2 + 0x10) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x4e) << 8 | *(ushort *)((long)param_1 + 0x4e) >> 8); *(uint *)(param_2 + 0x11) = (uint)(ushort)((ushort)param_1[10] << 8 | (ushort)param_1[10] >> 8); *(uint *)((long)param_2 + 0x8c) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x52) << 8 | *(ushort *)((long)param_1 + 0x52) >> 8); *(uint *)(param_2 + 0x12) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x54) << 8 | *(ushort *)((long)param_1 + 0x54) >> 8); *(uint *)((long)param_2 + 0x94) = (uint)*(byte *)((long)param_1 + 0x56); return (long)param_1 + 100; }
34,011
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<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool)
monkey531[P]llama/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}; }
O0
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<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool): subq $0x148, %rsp # imm = 0x148 movb %dl, %al movq %rdi, 0x130(%rsp) movq %rsi, 0x128(%rsp) andb $0x1, %al movb %al, 0x127(%rsp) movq 0x130(%rsp), %rdi movq %rdi, 0x40(%rsp) addq $0x20, %rdi callq 0xb8c00 testb $0x1, %al jne 0xbf8fe jmp 0xbf91f leaq 0xf7fe0(%rip), %rdi # 0x1b78e5 movl $0x1c28, %esi # imm = 0x1C28 leaq 0xf497b(%rip), %rdx # 0x1b428c leaq 0xf9452(%rip), %rcx # 0x1b8d6a movb $0x0, %al callq 0x4fbf0 movq 0x40(%rsp), %rdi addq $0x20, %rdi callq 0xb8c80 movq %rax, 0x110(%rsp) movq %rdx, 0x118(%rsp) leaq 0x110(%rsp), %rdi callq 0xb6dc0 xorb $-0x1, %al testb $0x1, %al jne 0xbf952 jmp 0xbf988 movb $0x0, 0x10f(%rsp) movq $0x0, 0x100(%rsp) leaq 0x138(%rsp), %rdi leaq 0x10f(%rsp), %rsi leaq 0x100(%rsp), %rdx callq 0xb9790 jmp 0xbfdf1 movq 0x128(%rsp), %rsi leaq 0xf0(%rsp), %rdi callq 0xbcdd0 movb $0x1, %al testb $0x1, 0x127(%rsp) movb %al, 0x3f(%rsp) jne 0xbf9f0 movq 0x40(%rsp), %rdi movq %rdi, %rax subq $-0x80, %rax movq %rax, 0x30(%rsp) addq $0x8, %rdi callq 0xb8d80 movq 0x30(%rsp), %rdi movl %eax, %esi movl $0x5, %edx leaq 0xf0(%rsp), %rcx callq 0xb8d20 movb %al, 0x3e(%rsp) jmp 0xbf9e6 movb 0x3e(%rsp), %al movb %al, 0x3f(%rsp) jmp 0xbf9f0 movb 0x3f(%rsp), %al andb $0x1, %al movb %al, 0xef(%rsp) testb $0x1, 0xef(%rsp) jne 0xbfa70 movb $0x0, 0xdb(%rsp) movq $0x0, 0xd0(%rsp) leaq 0x138(%rsp), %rdi leaq 0xdb(%rsp), %rsi leaq 0xd0(%rsp), %rdx callq 0xb9790 jmp 0xbfa3a movl $0x1, 0xcc(%rsp) jmp 0xbfde4 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xe0(%rsp) movl %eax, 0xdc(%rsp) leaq 0xf0(%rsp), %rdi callq 0x6ced0 jmp 0xbfe08 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb97c0 testb $0x1, %al jne 0xbfa84 jmp 0xbfb01 leaq 0xb8(%rsp), %rdi movq %rdi, 0x28(%rsp) leaq 0xf0(%rsp), %rsi callq 0x9f900 movq 0x28(%rsp), %rsi movq 0x40(%rsp), %rax movq (%rax), %rdi callq 0x6ce50 movq 0x28(%rsp), %rdi callq 0x6ced0 movq 0x40(%rsp), %rax movb $0x1, 0xb7(%rsp) movq (%rax), %rax movq %rax, 0xa8(%rsp) leaq 0x138(%rsp), %rdi leaq 0xb7(%rsp), %rsi leaq 0xa8(%rsp), %rdx callq 0xb9810 jmp 0xbfaf1 movl $0x1, 0xcc(%rsp) jmp 0xbfde4 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb9370 cmpq $0x0, (%rax) jne 0xbfb58 movb $0x0, 0xa7(%rsp) movq $0x0, 0x98(%rsp) leaq 0x138(%rsp), %rdi leaq 0xa7(%rsp), %rsi leaq 0x98(%rsp), %rdx callq 0xb9790 jmp 0xbfb48 movl $0x1, 0xcc(%rsp) jmp 0xbfde4 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb9370 movq (%rax), %rdi callq 0xa2940 testb $0x1, %al jne 0xbfbaf movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb9370 movq (%rax), %rdi callq 0xa2980 testb $0x1, %al jne 0xbfbaf leaq 0xf7d52(%rip), %rdi # 0x1b78e5 leaq 0xf46f2(%rip), %rdx # 0x1b428c leaq 0xf91dd(%rip), %rcx # 0x1b8d7e xorl %eax, %eax movl $0x1c4b, %esi # imm = 0x1C4B callq 0x4fbf0 jmp 0xbfbaf movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb9370 movq (%rax), %rdi callq 0xa2940 testb $0x1, %al jne 0xbfbcb jmp 0xbfc48 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb9370 movq (%rax), %rax movq 0x8(%rax), %rdi leaq 0xf0(%rsp), %rsi callq 0xa33d0 jmp 0xbfbef movq 0x40(%rsp), %rdi movb $0x1, 0x97(%rsp) addq $0x8, %rdi callq 0xb9370 movq (%rax), %rax movq 0x8(%rax), %rdi callq 0xa28e0 movq %rax, 0x88(%rsp) leaq 0x138(%rsp), %rdi leaq 0x97(%rsp), %rsi leaq 0x88(%rsp), %rdx callq 0xb9810 jmp 0xbfc38 movl $0x1, 0xcc(%rsp) jmp 0xbfde4 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb9370 movq (%rax), %rdi callq 0xa2980 testb $0x1, %al jne 0xbfc85 leaq 0xf7c7c(%rip), %rdi # 0x1b78e5 leaq 0xf461c(%rip), %rdx # 0x1b428c leaq 0xf9127(%rip), %rcx # 0x1b8d9e xorl %eax, %eax movl $0x1c55, %esi # imm = 0x1C55 callq 0x4fbf0 jmp 0xbfc85 movq 0x40(%rsp), %rdi addq $0x48, %rdi callq 0xb8c00 testb $0x1, %al jne 0xbfc99 jmp 0xbfcbc leaq 0xf7c45(%rip), %rdi # 0x1b78e5 leaq 0xf45e5(%rip), %rdx # 0x1b428c leaq 0xf910e(%rip), %rcx # 0x1b8dbc xorl %eax, %eax movl $0x1c57, %esi # imm = 0x1C57 callq 0x4fbf0 jmp 0xbfcbc movq 0x40(%rsp), %rdi addq $0x48, %rdi callq 0xb8c80 movq %rdx, 0x18(%rsp) movq %rax, 0x20(%rsp) jmp 0xbfcd6 movq 0x18(%rsp), %rax movq 0x20(%rsp), %rcx movq %rcx, 0x70(%rsp) movq %rax, 0x78(%rsp) leaq 0x70(%rsp), %rdi callq 0xb6dc0 movq 0x40(%rsp), %rdi movb %al, 0x87(%rsp) addq $0x48, %rdi callq 0xb8d00 jmp 0xbfd0b testb $0x1, 0x87(%rsp) jne 0xbfd4c movb $0x0, 0x6f(%rsp) movq $0x0, 0x60(%rsp) leaq 0x138(%rsp), %rdi leaq 0x6f(%rsp), %rsi leaq 0x60(%rsp), %rdx callq 0xb9790 jmp 0xbfd3c movl $0x1, 0xcc(%rsp) jmp 0xbfde4 movq 0x40(%rsp), %rax cmpq $0x0, 0x70(%rax) jne 0xbfd7b leaq 0xf7b86(%rip), %rdi # 0x1b78e5 leaq 0xf4526(%rip), %rdx # 0x1b428c leaq 0xf9067(%rip), %rcx # 0x1b8dd4 xorl %eax, %eax movl $0x1c60, %esi # imm = 0x1C60 callq 0x4fbf0 jmp 0xbfd7b leaq 0x50(%rsp), %rdi movq %rdi, 0x8(%rsp) leaq 0xf0(%rsp), %rsi callq 0x9f900 movq 0x40(%rsp), %rax movq 0x8(%rsp), %rsi movq %rax, %rcx addq $0x70, %rcx movq %rcx, 0x10(%rsp) movq 0x70(%rax), %rdi callq 0x6ce50 movq 0x8(%rsp), %rdi callq 0x6ced0 movq 0x10(%rsp), %rdx movb $0x1, 0x4f(%rsp) leaq 0x138(%rsp), %rdi leaq 0x4f(%rsp), %rsi callq 0xb9840 jmp 0xbfdd9 movl $0x1, 0xcc(%rsp) leaq 0xf0(%rsp), %rdi callq 0x6ced0 movb 0x138(%rsp), %al movq 0x140(%rsp), %rdx addq $0x148, %rsp # imm = 0x148 retq movq 0xe0(%rsp), %rdi callq 0x4f990 nopw %cs:(%rax,%rax) nop
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRSB_EESt4pairIbPSF_EOT_b: sub rsp, 148h mov al, dl mov [rsp+148h+var_18], rdi mov [rsp+148h+var_20], rsi and al, 1 mov [rsp+148h+var_21], al mov rdi, [rsp+148h+var_18] mov [rsp+148h+var_108], rdi add rdi, 20h ; ' ' call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void) test al, 1 jnz short loc_BF8FE jmp short loc_BF91F loc_BF8FE: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... mov esi, 1C28h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov al, 0 call _ggml_abort loc_BF91F: mov rdi, [rsp+148h+var_108] add rdi, 20h ; ' ' call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void) mov [rsp+148h+var_38], rax mov [rsp+148h+var_30], rdx lea rdi, [rsp+148h+var_38] call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void) xor al, 0FFh test al, 1 jnz short loc_BF952 jmp short loc_BF988 loc_BF952: mov [rsp+148h+var_39], 0 mov [rsp+148h+var_48], 0 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_39] lea rdx, [rsp+148h+var_48] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp loc_BFDF1 loc_BF988: mov rsi, [rsp+148h+var_20] lea rdi, [rsp+148h+var_58] 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 al, 1 test [rsp+148h+var_21], 1 mov [rsp+148h+var_109], al jnz short loc_BF9F0 mov rdi, [rsp+148h+var_108] mov rax, rdi sub rax, 0FFFFFFFFFFFFFF80h mov [rsp+148h+var_118], rax add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void) mov rdi, [rsp+148h+var_118] mov esi, eax mov edx, 5 lea rcx, [rsp+148h+var_58] call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) mov [rsp+148h+var_10A], al jmp short $+2 loc_BF9E6: mov al, [rsp+148h+var_10A] mov [rsp+148h+var_109], al jmp short $+2 loc_BF9F0: mov al, [rsp+148h+var_109] and al, 1 mov [rsp+148h+var_59], al test [rsp+148h+var_59], 1 jnz short loc_BFA70 mov [rsp+148h+var_6D], 0 mov [rsp+148h+var_78], 0 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_6D] lea rdx, [rsp+148h+var_78] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_BFA3A: mov [rsp+148h+var_7C], 1 jmp loc_BFDE4 mov rcx, rax mov eax, edx mov [rsp+arg_D8], rcx mov [rsp+arg_D4], eax lea rdi, [rsp+arg_E8] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp loc_BFE08 loc_BFA70: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; 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> *>>::empty(void) test al, 1 jnz short loc_BFA84 jmp short loc_BFB01 loc_BFA84: lea rdi, [rsp+148h+var_90] mov [rsp+148h+var_120], rdi lea rsi, [rsp+148h+var_58] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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>&&) mov rsi, [rsp+148h+var_120] mov rax, [rsp+148h+var_108] mov rdi, [rax] 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, [rsp+148h+var_120] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rax, [rsp+148h+var_108] mov [rsp+148h+var_91], 1 mov rax, [rax] mov [rsp+148h+var_A0], rax lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_91] lea rdx, [rsp+148h+var_A0] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_BFAF1: mov [rsp+148h+var_7C], 1 jmp loc_BFDE4 loc_BFB01: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) cmp qword ptr [rax], 0 jnz short loc_BFB58 mov [rsp+148h+var_A1], 0 mov [rsp+148h+var_B0], 0 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_A1] lea rdx, [rsp+148h+var_B0] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_BFB48: mov [rsp+148h+var_7C], 1 jmp loc_BFDE4 loc_BFB58: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void) test al, 1 jnz short loc_BFBAF mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void) test al, 1 jnz short loc_BFBAF lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"... xor eax, eax mov esi, 1C4Bh call _ggml_abort jmp short $+2 loc_BFBAF: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void) test al, 1 jnz short loc_BFBCB jmp short loc_BFC48 loc_BFBCB: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rax, [rax] mov rdi, [rax+8] lea rsi, [rsp+148h+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> &&) jmp short $+2 loc_BFBEF: mov rdi, [rsp+148h+var_108] mov [rsp+148h+var_B1], 1 add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rax, [rax] mov rdi, [rax+8] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void) mov [rsp+148h+var_C0], rax lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_B1] lea rdx, [rsp+148h+var_C0] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_BFC38: mov [rsp+148h+var_7C], 1 jmp loc_BFDE4 loc_BFC48: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void) test al, 1 jnz short loc_BFC85 lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackBackIs+20h; "ref_stack.back()->is_object()" xor eax, eax mov esi, 1C55h call _ggml_abort jmp short $+2 loc_BFC85: mov rdi, [rsp+148h+var_108] add rdi, 48h ; 'H' call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void) test al, 1 jnz short loc_BFC99 jmp short loc_BFCBC loc_BFC99: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()" xor eax, eax mov esi, 1C57h call _ggml_abort jmp short $+2 loc_BFCBC: mov rdi, [rsp+148h+var_108] add rdi, 48h ; 'H' call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void) mov [rsp+148h+var_130], rdx mov [rsp+148h+var_128], rax jmp short $+2 loc_BFCD6: mov rax, [rsp+148h+var_130] mov rcx, [rsp+148h+var_128] mov [rsp+148h+var_D8], rcx mov [rsp+148h+var_D0], rax lea rdi, [rsp+148h+var_D8] call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void) mov rdi, [rsp+148h+var_108] mov [rsp+148h+var_C1], al add rdi, 48h ; 'H' call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void) jmp short $+2 loc_BFD0B: test [rsp+148h+var_C1], 1 jnz short loc_BFD4C mov [rsp+148h+var_D9], 0 mov [rsp+148h+var_E8], 0 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_D9] lea rdx, [rsp+148h+var_E8] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_BFD3C: mov [rsp+148h+var_7C], 1 jmp loc_BFDE4 loc_BFD4C: mov rax, [rsp+148h+var_108] cmp qword ptr [rax+70h], 0 jnz short loc_BFD7B lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aObjectElement; "object_element" xor eax, eax mov esi, 1C60h call _ggml_abort jmp short $+2 loc_BFD7B: lea rdi, [rsp+148h+var_F8] mov [rsp+148h+var_140], rdi lea rsi, [rsp+148h+var_58] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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>&&) mov rax, [rsp+148h+var_108] mov rsi, [rsp+148h+var_140] mov rcx, rax add rcx, 70h ; 'p' mov [rsp+148h+var_138], rcx mov rdi, [rax+70h] 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, [rsp+148h+var_140] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rdx, [rsp+148h+var_138] mov [rsp+148h+var_F9], 1 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_F9] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_ jmp short $+2 loc_BFDD9: mov [rsp+148h+var_7C], 1 loc_BFDE4: lea rdi, [rsp+148h+var_58] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() loc_BFDF1: mov al, [rsp+148h+var_10] mov rdx, [rsp+148h+var_8] add rsp, 148h retn loc_BFE08: mov rdi, [rsp+arg_D8] 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>>::handle_value<std::string&>( long long a1, long long a2, char a3) { long long v3; // rdx int v4; // eax _BYTE **v5; // rax _BYTE **v6; // rax _BYTE **v7; // rax long long v8; // rax long long v9; // rdx long long v10; // rcx long long v11; // r8 long long v12; // r9 long long v13; // rax _BYTE **v14; // rax long long v15; // rdx char v17; // [rsp+3Fh] [rbp-109h] char v18; // [rsp+4Fh] [rbp-F9h] BYREF __int128 v19; // [rsp+50h] [rbp-F8h] BYREF long long v20; // [rsp+60h] [rbp-E8h] char v21; // [rsp+6Fh] [rbp-D9h] BYREF _QWORD v22[2]; // [rsp+70h] [rbp-D8h] BYREF bool v23; // [rsp+87h] [rbp-C1h] long long v24; // [rsp+88h] [rbp-C0h] BYREF char v25; // [rsp+97h] [rbp-B1h] BYREF long long v26; // [rsp+98h] [rbp-B0h] char v27; // [rsp+A7h] [rbp-A1h] BYREF long long v28; // [rsp+A8h] [rbp-A0h] BYREF char v29; // [rsp+B7h] [rbp-91h] BYREF __int128 v30; // [rsp+B8h] [rbp-90h] BYREF int v31; // [rsp+CCh] [rbp-7Ch] long long v32; // [rsp+D0h] [rbp-78h] _BYTE v33[21]; // [rsp+DBh] [rbp-6Dh] BYREF _BYTE v34[16]; // [rsp+F0h] [rbp-58h] BYREF long long v35; // [rsp+100h] [rbp-48h] char v36; // [rsp+10Fh] [rbp-39h] BYREF _QWORD v37[2]; // [rsp+110h] [rbp-38h] BYREF char v38; // [rsp+127h] [rbp-21h] long long v39; // [rsp+128h] [rbp-20h] long long v40; // [rsp+130h] [rbp-18h] _BYTE v41[8]; // [rsp+138h] [rbp-10h] BYREF v40 = a1; v39 = a2; v38 = a3 & 1; if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 32)) & 1) != 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7208LL, "GGML_ASSERT(%s) failed", "!keep_stack.empty()"); v37[0] = std::vector<bool>::back(a1 + 32); v37[1] = v3; if ( std::_Bit_reference::operator bool((long long)v37) ) { ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_( v34, v39); v17 = 1; if ( (v38 & 1) == 0 ) { v4 = 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> *>>::size((_QWORD *)(a1 + 8)); v17 = 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()( (std::_Function_base *)(a1 + 128), v4, 5, (long long)v34); } v33[20] = v17 & 1; if ( (v17 & 1) != 0 ) { if ( (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> *>>::empty(a1 + 8) & 1) != 0 ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( &v30, (long long)v34); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)&v30); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v30); v29 = 1; v28 = *(_QWORD *)a1; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v41, &v29, &v28); v31 = 1; } else if ( *(_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) ) { v5 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v5) ) { v6 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v6) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7243LL, "GGML_ASSERT(%s) failed", "ref_stack.back()->is_array() || ref_stack.back()->is_object()"); } v7 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); if ( nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v7) ) { v8 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); 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 *)(*(_QWORD *)v8 + 8LL), (long long)v34, v9, v10, v11, v12); v25 = 1; v13 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); v24 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back(*(_QWORD *)(*(_QWORD *)v13 + 8LL)); ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v41, &v25, &v24); v31 = 1; } else { v14 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v14) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7253LL, "GGML_ASSERT(%s) failed", "ref_stack.back()->is_object()"); if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 72)) & 1) != 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7255LL, "GGML_ASSERT(%s) failed", "!key_keep_stack.empty()"); v22[0] = std::vector<bool>::back(a1 + 72); v22[1] = v15; v23 = std::_Bit_reference::operator bool((long long)v22); std::vector<bool>::pop_back(a1 + 72); if ( v23 ) { if ( !*(_QWORD *)(a1 + 112) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7264LL, "GGML_ASSERT(%s) failed", "object_element"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( &v19, (long long)v34); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)&v19); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v19); v18 = 1; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_( (long long)v41, &v18, (_QWORD *)(a1 + 112)); v31 = 1; } else { v21 = 0; v20 = 0LL; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v41, &v21); v31 = 1; } } } else { v27 = 0; v26 = 0LL; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v41, &v27); v31 = 1; } } else { v33[0] = 0; v32 = 0LL; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v41, v33); v31 = 1; } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v34); } else { v36 = 0; v35 = 0LL; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v41, &v36); } return v41[0]; }
handle_value<std::__cxx11::string&>: SUB RSP,0x148 MOV AL,DL MOV qword ptr [RSP + 0x130],RDI MOV qword ptr [RSP + 0x128],RSI AND AL,0x1 MOV byte ptr [RSP + 0x127],AL MOV RDI,qword ptr [RSP + 0x130] MOV qword ptr [RSP + 0x40],RDI ADD RDI,0x20 CALL 0x001b8c00 TEST AL,0x1 JNZ 0x001bf8fe JMP 0x001bf91f LAB_001bf8fe: LEA RDI,[0x2b78e5] MOV ESI,0x1c28 LEA RDX,[0x2b428c] LEA RCX,[0x2b8d6a] MOV AL,0x0 CALL 0x0014fbf0 LAB_001bf91f: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x20 CALL 0x001b8c80 MOV qword ptr [RSP + 0x110],RAX MOV qword ptr [RSP + 0x118],RDX LEA RDI,[RSP + 0x110] CALL 0x001b6dc0 XOR AL,0xff TEST AL,0x1 JNZ 0x001bf952 JMP 0x001bf988 LAB_001bf952: MOV byte ptr [RSP + 0x10f],0x0 MOV qword ptr [RSP + 0x100],0x0 LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0x10f] LEA RDX,[RSP + 0x100] CALL 0x001b9790 JMP 0x001bfdf1 LAB_001bf988: MOV RSI,qword ptr [RSP + 0x128] LEA RDI,[RSP + 0xf0] CALL 0x001bcdd0 MOV AL,0x1 TEST byte ptr [RSP + 0x127],0x1 MOV byte ptr [RSP + 0x3f],AL JNZ 0x001bf9f0 MOV RDI,qword ptr [RSP + 0x40] MOV RAX,RDI SUB RAX,-0x80 MOV qword ptr [RSP + 0x30],RAX ADD RDI,0x8 CALL 0x001b8d80 MOV RDI,qword ptr [RSP + 0x30] MOV ESI,EAX LAB_001bf9ce: MOV EDX,0x5 LEA RCX,[RSP + 0xf0] CALL 0x001b8d20 MOV byte ptr [RSP + 0x3e],AL JMP 0x001bf9e6 LAB_001bf9e6: MOV AL,byte ptr [RSP + 0x3e] MOV byte ptr [RSP + 0x3f],AL JMP 0x001bf9f0 LAB_001bf9f0: MOV AL,byte ptr [RSP + 0x3f] AND AL,0x1 MOV byte ptr [RSP + 0xef],AL TEST byte ptr [RSP + 0xef],0x1 JNZ 0x001bfa70 MOV byte ptr [RSP + 0xdb],0x0 MOV qword ptr [RSP + 0xd0],0x0 LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0xdb] LEA RDX,[RSP + 0xd0] CALL 0x001b9790 JMP 0x001bfa3a LAB_001bfa3a: MOV dword ptr [RSP + 0xcc],0x1 JMP 0x001bfde4 LAB_001bfa70: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b97c0 TEST AL,0x1 JNZ 0x001bfa84 JMP 0x001bfb01 LAB_001bfa84: LEA RDI,[RSP + 0xb8] MOV qword ptr [RSP + 0x28],RDI LEA RSI,[RSP + 0xf0] CALL 0x0019f900 MOV RSI,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RSP + 0x40] MOV RDI,qword ptr [RAX] CALL 0x0016ce50 MOV RDI,qword ptr [RSP + 0x28] CALL 0x0016ced0 MOV RAX,qword ptr [RSP + 0x40] MOV byte ptr [RSP + 0xb7],0x1 MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0xa8],RAX LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0xb7] LEA RDX,[RSP + 0xa8] CALL 0x001b9810 JMP 0x001bfaf1 LAB_001bfaf1: MOV dword ptr [RSP + 0xcc],0x1 JMP 0x001bfde4 LAB_001bfb01: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b9370 CMP qword ptr [RAX],0x0 JNZ 0x001bfb58 MOV byte ptr [RSP + 0xa7],0x0 MOV qword ptr [RSP + 0x98],0x0 LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0xa7] LEA RDX,[RSP + 0x98] CALL 0x001b9790 JMP 0x001bfb48 LAB_001bfb48: MOV dword ptr [RSP + 0xcc],0x1 JMP 0x001bfde4 LAB_001bfb58: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b9370 MOV RDI,qword ptr [RAX] CALL 0x001a2940 TEST AL,0x1 JNZ 0x001bfbaf MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b9370 MOV RDI,qword ptr [RAX] CALL 0x001a2980 TEST AL,0x1 JNZ 0x001bfbaf LEA RDI,[0x2b78e5] LEA RDX,[0x2b428c] LEA RCX,[0x2b8d7e] XOR EAX,EAX MOV ESI,0x1c4b CALL 0x0014fbf0 JMP 0x001bfbaf LAB_001bfbaf: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b9370 MOV RDI,qword ptr [RAX] CALL 0x001a2940 TEST AL,0x1 JNZ 0x001bfbcb JMP 0x001bfc48 LAB_001bfbcb: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b9370 MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0xf0] CALL 0x001a33d0 JMP 0x001bfbef LAB_001bfbef: MOV RDI,qword ptr [RSP + 0x40] MOV byte ptr [RSP + 0x97],0x1 ADD RDI,0x8 CALL 0x001b9370 MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x8] CALL 0x001a28e0 MOV qword ptr [RSP + 0x88],RAX LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0x97] LEA RDX,[RSP + 0x88] CALL 0x001b9810 JMP 0x001bfc38 LAB_001bfc38: MOV dword ptr [RSP + 0xcc],0x1 JMP 0x001bfde4 LAB_001bfc48: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b9370 MOV RDI,qword ptr [RAX] CALL 0x001a2980 TEST AL,0x1 JNZ 0x001bfc85 LEA RDI,[0x2b78e5] LEA RDX,[0x2b428c] LEA RCX,[0x2b8d9e] XOR EAX,EAX MOV ESI,0x1c55 CALL 0x0014fbf0 JMP 0x001bfc85 LAB_001bfc85: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x48 CALL 0x001b8c00 TEST AL,0x1 JNZ 0x001bfc99 JMP 0x001bfcbc LAB_001bfc99: LEA RDI,[0x2b78e5] LEA RDX,[0x2b428c] LEA RCX,[0x2b8dbc] XOR EAX,EAX MOV ESI,0x1c57 CALL 0x0014fbf0 JMP 0x001bfcbc LAB_001bfcbc: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x48 CALL 0x001b8c80 MOV qword ptr [RSP + 0x18],RDX MOV qword ptr [RSP + 0x20],RAX JMP 0x001bfcd6 LAB_001bfcd6: MOV RAX,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x70],RCX MOV qword ptr [RSP + 0x78],RAX LEA RDI,[RSP + 0x70] CALL 0x001b6dc0 MOV RDI,qword ptr [RSP + 0x40] MOV byte ptr [RSP + 0x87],AL ADD RDI,0x48 CALL 0x001b8d00 JMP 0x001bfd0b LAB_001bfd0b: TEST byte ptr [RSP + 0x87],0x1 JNZ 0x001bfd4c MOV byte ptr [RSP + 0x6f],0x0 MOV qword ptr [RSP + 0x60],0x0 LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0x6f] LEA RDX,[RSP + 0x60] CALL 0x001b9790 JMP 0x001bfd3c LAB_001bfd3c: MOV dword ptr [RSP + 0xcc],0x1 JMP 0x001bfde4 LAB_001bfd4c: MOV RAX,qword ptr [RSP + 0x40] CMP qword ptr [RAX + 0x70],0x0 JNZ 0x001bfd7b LEA RDI,[0x2b78e5] LEA RDX,[0x2b428c] LEA RCX,[0x2b8dd4] XOR EAX,EAX MOV ESI,0x1c60 CALL 0x0014fbf0 JMP 0x001bfd7b LAB_001bfd7b: LEA RDI,[RSP + 0x50] MOV qword ptr [RSP + 0x8],RDI LEA RSI,[RSP + 0xf0] CALL 0x0019f900 MOV RAX,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x8] MOV RCX,RAX ADD RCX,0x70 MOV qword ptr [RSP + 0x10],RCX MOV RDI,qword ptr [RAX + 0x70] CALL 0x0016ce50 MOV RDI,qword ptr [RSP + 0x8] CALL 0x0016ced0 MOV RDX,qword ptr [RSP + 0x10] MOV byte ptr [RSP + 0x4f],0x1 LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0x4f] CALL 0x001b9840 LAB_001bfdd7: JMP 0x001bfdd9 LAB_001bfdd9: MOV dword ptr [RSP + 0xcc],0x1 LAB_001bfde4: LEA RDI,[RSP + 0xf0] CALL 0x0016ced0 LAB_001bfdf1: MOV AL,byte ptr [RSP + 0x138] MOV RDX,qword ptr [RSP + 0x140] ADD RSP,0x148 RET
/* 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<std::__cxx11::string&>(std::__cxx11::string&, 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<std::__cxx11::string&> (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 param_2) { bool bVar1; int4 uVar2; ulong uVar3; long *plVar4; int8 *puVar5; int8 uVar6; int1 auVar7 [16]; byte local_109; int1 local_f9; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_f8 [16]; int8 local_e8; int1 local_d9; int1 local_d8 [16]; byte local_c1; int8 local_c0; int1 local_b1; int8 local_b0; int1 local_a1; int8 local_a0; int1 local_91; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_90 [20]; int4 local_7c; int8 local_78; int1 local_6d [20]; byte local_59; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 [16]; int8 local_48; int1 local_39; _Bit_reference local_38 [23]; byte local_21; string *local_20; json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *local_18; int1 local_10 [8]; int8 local_8; local_21 = param_2; local_20 = param_1; local_18 = this; uVar3 = std::vector<bool,std::allocator<bool>>::empty ((vector<bool,std::allocator<bool>> *)(this + 0x20)); if ((uVar3 & 1) != 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28, "GGML_ASSERT(%s) failed","!keep_stack.empty()"); } local_38._0_16_ = std::vector<bool,std::allocator<bool>>::back ((vector<bool,std::allocator<bool>> *)(this + 0x20)); bVar1 = std::_Bit_reference::operator_cast_to_bool(local_38); if (((bVar1 ^ 0xffU) & 1) == 0) { _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_58,local_20); local_109 = 1; if ((local_21 & 1) == 0) { uVar2 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); /* try { // try from 001bf9ce to 001bfdd6 has its CatchHandler @ 001bfa4a */ local_109 = std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> *)(this + 0x80),uVar2,5,local_58); } local_59 = local_109 & 1; if (local_59 == 0) { local_6d[0] = 0; local_78 = 0; _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_10,local_6d,&local_78); } else { uVar3 = 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>*>> ::empty((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)); if ((uVar3 & 1) == 0) { plVar4 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); if (*plVar4 == 0) { local_a1 = 0; local_b0 = 0; _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_10,&local_a1,&local_b0); } else { puVar5 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); 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> ::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar5); if ((uVar3 & 1) == 0) { puVar5 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); 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> ::is_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar5); if ((uVar3 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp" ,0x1c4b,"GGML_ASSERT(%s) failed", "ref_stack.back()->is_array() || ref_stack.back()->is_object()"); } } puVar5 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); 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> ::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar5); if ((uVar3 & 1) == 0) { puVar5 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); 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> ::is_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar5); if ((uVar3 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp" ,0x1c55,"GGML_ASSERT(%s) failed","ref_stack.back()->is_object()"); } uVar3 = std::vector<bool,std::allocator<bool>>::empty ((vector<bool,std::allocator<bool>> *)(this + 0x48)); if ((uVar3 & 1) != 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp" ,0x1c57,"GGML_ASSERT(%s) failed","!key_keep_stack.empty()"); } local_d8 = std::vector<bool,std::allocator<bool>>::back ((vector<bool,std::allocator<bool>> *)(this + 0x48)); local_c1 = std::_Bit_reference::operator_cast_to_bool((_Bit_reference *)local_d8); std::vector<bool,std::allocator<bool>>::pop_back ((vector<bool,std::allocator<bool>> *)(this + 0x48)); if ((local_c1 & 1) == 0) { local_d9 = 0; local_e8 = 0; _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_10,&local_d9,&local_e8); } else { if (*(long *)(this + 0x70) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp" ,0x1c60,"GGML_ASSERT(%s) failed","object_element"); } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_f8,local_58); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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),local_f8); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_f8); local_f9 = 1; _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_ (local_10,&local_f9,this + 0x70); } } else { plVar4 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); 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>>> **)(*plVar4 + 8),local_58); local_b1 = 1; plVar4 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); local_c0 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(*plVar4 + 8)); _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_10,&local_b1,&local_c0); } } } else { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_90,local_58); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,local_90); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_90); local_91 = 1; local_a0 = *(int8 *)this; _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_10,&local_91,&local_a0); } } local_7c = 1; uVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_58); } else { local_39 = 0; local_48 = 0; uVar6 = _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_10,&local_39,&local_48); } auVar7._1_7_ = (int7)((ulong)uVar6 >> 8); auVar7[0] = local_10[0]; auVar7._8_8_ = local_8; return auVar7; }
34,012
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<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool)
monkey531[P]llama/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}; }
O2
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<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movq 0x20(%rdi), %rax cmpq 0x30(%rdi), %rax jne 0x4742a cmpl $0x0, 0x38(%rbx) je 0x47582 leaq 0x20(%rbx), %rdi callq 0x45a26 testq %rdx, (%rax) je 0x474c5 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x4760c testb %bpl, %bpl jne 0x47476 leaq 0x80(%rbx), %rdi movq 0x10(%rbx), %rsi subq 0x8(%rbx), %rsi shrq $0x3, %rsi pushq $0x5 popq %rdx leaq 0x8(%rsp), %rcx callq 0x45a54 testb %al, %al je 0x47563 movq 0x10(%rbx), %rax cmpq %rax, 0x8(%rbx) je 0x474cf movq -0x8(%rax), %rax testq %rax, %rax je 0x47563 movzbl (%rax), %ecx cmpl $0x1, %ecx je 0x474f9 cmpl $0x2, %ecx jne 0x475a3 movq 0x8(%rax), %rdi leaq 0x8(%rsp), %rsi callq 0x3df72 movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq 0x8(%rax), %rax movq 0x8(%rax), %r14 addq $-0x10, %r14 jmp 0x4755f xorl %ebx, %ebx xorl %r14d, %r14d jmp 0x47572 leaq 0x28(%rsp), %r14 leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x3ccc8 movq (%rbx), %rdi movq %r14, %rsi callq 0x2c748 movq %r14, %rdi callq 0x2c78c movq (%rbx), %r14 jmp 0x4755f movq 0x48(%rbx), %rax cmpq 0x58(%rbx), %rax jne 0x4750d cmpl $0x0, 0x60(%rbx) je 0x475b1 leaq 0x48(%rbx), %rdi callq 0x45a26 movq %rdx, %r14 leaq 0x58(%rbx), %rdi movq (%rax), %r15 callq 0x450bc testq %r14, %r15 je 0x47563 cmpq $0x0, 0x70(%rbx) je 0x475d2 leaq 0x18(%rsp), %r14 leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x3ccc8 movq 0x70(%rbx), %rdi movq %r14, %rsi callq 0x2c748 movq %r14, %rdi callq 0x2c78c movq 0x70(%rbx), %r14 movb $0x1, %bl jmp 0x47568 xorl %ebx, %ebx xorl %r14d, %r14d leaq 0x8(%rsp), %rdi callq 0x2c78c movl %ebx, %eax movq %r14, %rdx addq $0x38, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x4884e(%rip), %rdi # 0x8fdd7 leaq 0x45cfc(%rip), %rdx # 0x8d28c leaq 0x49ccc(%rip), %rcx # 0x91263 movl $0x1c28, %esi # imm = 0x1C28 xorl %eax, %eax callq 0x20af0 leaq 0x49ccd(%rip), %rcx # 0x91277 movl $0x1c4b, %esi # imm = 0x1C4B jmp 0x475bd leaq 0x49cfd(%rip), %rcx # 0x912b5 movl $0x1c57, %esi # imm = 0x1C57 leaq 0x48813(%rip), %rdi # 0x8fdd7 leaq 0x45cc1(%rip), %rdx # 0x8d28c xorl %eax, %eax callq 0x20af0 leaq 0x487fe(%rip), %rdi # 0x8fdd7 leaq 0x45cac(%rip), %rdx # 0x8d28c leaq 0x49ce6(%rip), %rcx # 0x912cd movl $0x1c60, %esi # imm = 0x1C60 xorl %eax, %eax callq 0x20af0 jmp 0x475f7 jmp 0x475f7 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x2c78c movq %rbx, %rdi callq 0x20b90
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRbEESt4pairIbPSF_EOT_b: push rbp push r15 push r14 push rbx sub rsp, 38h mov ebp, edx mov r14, rsi mov rbx, rdi mov rax, [rdi+20h] cmp rax, [rdi+30h] jnz short loc_4742A cmp dword ptr [rbx+38h], 0 jz loc_47582 loc_4742A: lea rdi, [rbx+20h] call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void) test [rax], rdx jz loc_474C5 lea rdi, [rsp+58h+var_50] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ test bpl, bpl jnz short loc_47476 lea rdi, [rbx+80h] mov rsi, [rbx+10h] sub rsi, [rbx+8] shr rsi, 3 push 5 pop rdx lea rcx, [rsp+58h+var_50] 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> &) test al, al jz loc_47563 loc_47476: mov rax, [rbx+10h] cmp [rbx+8], rax jz short loc_474CF mov rax, [rax-8] test rax, rax jz loc_47563 movzx ecx, byte ptr [rax] cmp ecx, 1 jz short loc_474F9 cmp ecx, 2 jnz loc_475A3 mov rdi, [rax+8] lea rsi, [rsp+58h+var_50] 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_4755F loc_474C5: xor ebx, ebx xor r14d, r14d jmp loc_47572 loc_474CF: lea r14, [rsp+58h+var_30] lea rsi, [rsp+58h+var_50] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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>&&) mov rdi, [rbx] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov r14, [rbx] jmp short loc_4755F loc_474F9: mov rax, [rbx+48h] cmp rax, [rbx+58h] jnz short loc_4750D cmp dword ptr [rbx+60h], 0 jz loc_475B1 loc_4750D: lea rdi, [rbx+48h] call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void) mov r14, rdx lea rdi, [rbx+58h]; this mov r15, [rax] call _ZNSt18_Bit_iterator_base12_M_bump_downEv; std::_Bit_iterator_base::_M_bump_down(void) test r15, r14 jz short loc_47563 cmp qword ptr [rbx+70h], 0 jz loc_475D2 lea r14, [rsp+58h+var_40] lea rsi, [rsp+58h+var_50] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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>&&) mov rdi, [rbx+70h] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov r14, [rbx+70h] loc_4755F: mov bl, 1 jmp short loc_47568 loc_47563: xor ebx, ebx xor r14d, r14d loc_47568: lea rdi, [rsp+58h+var_50] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() loc_47572: mov eax, ebx mov rdx, r14 add rsp, 38h pop rbx pop r14 pop r15 pop rbp retn loc_47582: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov esi, 1C28h xor eax, eax call _ggml_abort loc_475A3: lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"... mov esi, 1C4Bh jmp short loc_475BD loc_475B1: lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()" mov esi, 1C57h loc_475BD: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" xor eax, eax call _ggml_abort loc_475D2: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aObjectElement; "object_element" mov esi, 1C60h xor eax, eax call _ggml_abort jmp short loc_475F7 jmp short $+2 loc_475F7: mov rbx, rax lea rdi, [rsp+58h+var_50] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rdi, 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<bool &>( long long a1, long long a2, char a3) { unsigned int v4; // ebx _QWORD *v5; // rax long long v6; // rdx long long v7; // rax unsigned __int8 *v8; // rax int v9; // ecx long long *v10; // rax long long v11; // rdx long long v12; // r14 long long v13; // r15 const char *v15; // rcx long long v16; // rsi long long v17; // rbx _BYTE v18[16]; // [rsp+8h] [rbp-50h] BYREF __int128 v19; // [rsp+18h] [rbp-40h] BYREF _OWORD v20[3]; // [rsp+28h] [rbp-30h] BYREF v4 = a1; if ( *(_QWORD *)(a1 + 32) == *(_QWORD *)(a1 + 48) && !*(_DWORD *)(a1 + 56) ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7208LL, "GGML_ASSERT(%s) failed", "!keep_stack.empty()"); LABEL_23: v15 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; v16 = 7243LL; LABEL_25: ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v16, "GGML_ASSERT(%s) failed", v15); goto LABEL_26; } v5 = (_QWORD *)std::vector<bool>::back(a1 + 32); if ( (v6 & *v5) != 0 ) { ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_( v18, a2); if ( a3 || (unsigned __int8)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, 5) ) { v7 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(a1 + 8) == 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>::basic_json( v20, (long long)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>::operator=( *(char **)a1, (char *)v20); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v20); goto LABEL_18; } v8 = *(unsigned __int8 **)(v7 - 8); if ( v8 ) { v9 = *v8; if ( v9 != 1 ) { if ( v9 == 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 *)v8 + 1), (long long)v18); LABEL_18: LOBYTE(v4) = 1; LABEL_20: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v18); return v4; } goto LABEL_23; } if ( *(_QWORD *)(a1 + 72) == *(_QWORD *)(a1 + 88) && !*(_DWORD *)(a1 + 96) ) { v15 = "!key_keep_stack.empty()"; v16 = 7255LL; goto LABEL_25; } v10 = (long long *)std::vector<bool>::back(a1 + 72); v12 = v11; v13 = *v10; std::_Bit_iterator_base::_M_bump_down((std::_Bit_iterator_base *)(a1 + 88)); if ( (v12 & v13) != 0 ) { if ( *(_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>::basic_json( &v19, (long long)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>::operator=( *(char **)(a1 + 112), (char *)&v19); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v19); goto LABEL_18; } LABEL_26: v17 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7264LL, "GGML_ASSERT(%s) failed", "object_element"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v18); _Unwind_Resume(v17); } } } v4 = 0; goto LABEL_20; } return 0; }
handle_value<bool&>: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x38 MOV EBP,EDX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x20] CMP RAX,qword ptr [RDI + 0x30] JNZ 0x0014742a CMP dword ptr [RBX + 0x38],0x0 JZ 0x00147582 LAB_0014742a: LEA RDI,[RBX + 0x20] CALL 0x00145a26 TEST qword ptr [RAX],RDX JZ 0x001474c5 LEA RDI,[RSP + 0x8] MOV RSI,R14 CALL 0x0014760c TEST BPL,BPL JNZ 0x00147476 LEA RDI,[RBX + 0x80] MOV RSI,qword ptr [RBX + 0x10] SUB RSI,qword ptr [RBX + 0x8] SHR RSI,0x3 LAB_00147461: PUSH 0x5 POP RDX LEA RCX,[RSP + 0x8] CALL 0x00145a54 TEST AL,AL JZ 0x00147563 LAB_00147476: MOV RAX,qword ptr [RBX + 0x10] CMP qword ptr [RBX + 0x8],RAX JZ 0x001474cf MOV RAX,qword ptr [RAX + -0x8] TEST RAX,RAX JZ 0x00147563 MOVZX ECX,byte ptr [RAX] CMP ECX,0x1 JZ 0x001474f9 CMP ECX,0x2 JNZ 0x001475a3 MOV RDI,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x8] CALL 0x0013df72 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 0x0014755f LAB_001474c5: XOR EBX,EBX XOR R14D,R14D JMP 0x00147572 LAB_001474cf: LEA R14,[RSP + 0x28] LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x0013ccc8 MOV RDI,qword ptr [RBX] MOV RSI,R14 CALL 0x0012c748 MOV RDI,R14 CALL 0x0012c78c MOV R14,qword ptr [RBX] JMP 0x0014755f LAB_001474f9: MOV RAX,qword ptr [RBX + 0x48] CMP RAX,qword ptr [RBX + 0x58] JNZ 0x0014750d CMP dword ptr [RBX + 0x60],0x0 JZ 0x001475b1 LAB_0014750d: LEA RDI,[RBX + 0x48] CALL 0x00145a26 LAB_00147516: MOV R14,RDX LEA RDI,[RBX + 0x58] MOV R15,qword ptr [RAX] CALL 0x001450bc TEST R15,R14 JZ 0x00147563 CMP qword ptr [RBX + 0x70],0x0 JZ 0x001475d2 LEA R14,[RSP + 0x18] LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x0013ccc8 MOV RDI,qword ptr [RBX + 0x70] MOV RSI,R14 CALL 0x0012c748 MOV RDI,R14 CALL 0x0012c78c MOV R14,qword ptr [RBX + 0x70] LAB_0014755f: MOV BL,0x1 JMP 0x00147568 LAB_00147563: XOR EBX,EBX XOR R14D,R14D LAB_00147568: LEA RDI,[RSP + 0x8] CALL 0x0012c78c LAB_00147572: MOV EAX,EBX MOV RDX,R14 ADD RSP,0x38 POP RBX POP R14 POP R15 POP RBP RET LAB_00147582: LEA RDI,[0x18fdd7] LEA RDX,[0x18d28c] LEA RCX,[0x191263] MOV ESI,0x1c28 XOR EAX,EAX CALL 0x00120af0 LAB_001475a3: LEA RCX,[0x191277] MOV ESI,0x1c4b JMP 0x001475bd LAB_001475b1: LEA RCX,[0x1912b5] MOV ESI,0x1c57 LAB_001475bd: LEA RDI,[0x18fdd7] LEA RDX,[0x18d28c] XOR EAX,EAX CALL 0x00120af0 LAB_001475d2: LEA RDI,[0x18fdd7] LEA RDX,[0x18d28c] LEA RCX,[0x1912cd] MOV ESI,0x1c60 XOR EAX,EAX CALL 0x00120af0
/* 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<bool&>(bool&, 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<bool&> (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,bool *param_1,bool param_2) { char cVar1; char *pcVar2; ulong uVar3; int8 uVar4; long lVar5; int1 auVar6 [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_50 [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_40 [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_30 [16]; if ((*(long *)(this + 0x20) == *(long *)(this + 0x30)) && (*(int *)(this + 0x38) == 0)) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28, "GGML_ASSERT(%s) failed","!keep_stack.empty()"); } auVar6 = std::vector<bool,std::allocator<bool>>::back ((vector<bool,std::allocator<bool>> *)(this + 0x20)); if ((*auVar6._0_8_ & auVar6._8_8_) == 0) { uVar3 = 0; lVar5 = 0; goto LAB_00147572; } _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ (local_50,param_1); if (param_2) { LAB_00147476: if (*(long *)(this + 8) == *(long *)(this + 0x10)) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_30,local_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> ::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,local_30); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_30); lVar5 = *(long *)this; } else { pcVar2 = *(char **)(*(long *)(this + 0x10) + -8); if (pcVar2 == (char *)0x0) goto LAB_00147563; if (*pcVar2 == '\x01') { if ((*(long *)(this + 0x48) == *(long *)(this + 0x58)) && (*(int *)(this + 0x60) == 0)) { pcVar2 = "!key_keep_stack.empty()"; uVar4 = 0x1c57; goto LAB_001475bd; } /* try { // try from 0014750d to 00147515 has its CatchHandler @ 001475f5 */ auVar6 = std::vector<bool,std::allocator<bool>>::back ((vector<bool,std::allocator<bool>> *)(this + 0x48)); uVar3 = *auVar6._0_8_; std::_Bit_iterator_base::_M_bump_down((_Bit_iterator_base *)(this + 0x58)); if ((uVar3 & auVar6._8_8_) == 0) goto LAB_00147563; if (*(long *)(this + 0x70) == 0) { /* try { // try from 001475d2 to 001475f2 has its CatchHandler @ 001475f3 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 0x1c60,"GGML_ASSERT(%s) failed","object_element"); } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_40,local_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> ::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),local_40); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_40); lVar5 = *(long *)(this + 0x70); } else { if (*pcVar2 != '\x02') { pcVar2 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; uVar4 = 0x1c4b; LAB_001475bd: /* try { // try from 001475bd to 001475d1 has its CatchHandler @ 001475f7 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", uVar4,"GGML_ASSERT(%s) failed",pcVar2); } 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>>> **)(pcVar2 + 8),local_50); lVar5 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10; } } uVar3 = CONCAT71((int7)((ulong)this >> 8),1); } else { /* try { // try from 00147461 to 001474ab has its CatchHandler @ 001475f7 */ cVar1 = 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,5, local_50); if (cVar1 != '\0') goto LAB_00147476; LAB_00147563: uVar3 = 0; lVar5 = 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_50); LAB_00147572: auVar6._0_8_ = uVar3 & 0xffffffff; auVar6._8_8_ = lVar5; return auVar6; }
34,013
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<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool)
monkey531[P]llama/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<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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 0x4b7ae movl %ecx, %ecx movabsq $-0x8000000000000000, %r14 # 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(%r14), %rcx andq %rdx, %rcx xorl %edi, %edi cmpq %r14, %rcx setbe %dil movq -0x8(%rax,%rdi,8), %rax btq %rdx, %rax jae 0x4b641 leaq 0x10(%rsp), %rdi callq 0x4a2e4 testb %bpl, %bpl jne 0x4b5ee movq 0x10(%rbx), %rax subq 0x8(%rbx), %rax shrq $0x3, %rax movl %eax, 0xc(%rsp) movb $0x5, 0xb(%rsp) cmpq $0x0, 0x90(%rbx) je 0x4b7cf leaq 0x80(%rbx), %rdi leaq 0xc(%rsp), %rsi leaq 0xb(%rsp), %rdx leaq 0x10(%rsp), %rcx callq *0x98(%rbx) testb %al, %al je 0x4b782 movq 0x10(%rbx), %rax cmpq %rax, 0x8(%rbx) je 0x4b64b movq -0x8(%rax), %rax testq %rax, %rax je 0x4b782 movzbl (%rax), %ecx cmpl $0x1, %ecx je 0x4b6a5 cmpl $0x2, %ecx jne 0x4b7d4 movq 0x8(%rax), %rdi leaq 0x10(%rsp), %rsi callq 0x3ee4c movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq 0x8(%rax), %rax movq 0x8(%rax), %r14 addq $-0x10, %r14 jmp 0x4b77e xorl %ebx, %ebx xorl %r14d, %r14d jmp 0x4b79e leaq 0x10(%rsp), %r14 movups (%r14), %xmm0 leaq 0x30(%rsp), %r15 movaps %xmm0, (%r15) movq %r14, %rdi xorl %esi, %esi callq 0x3d7c0 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r15, %rdi movl $0x1, %esi callq 0x3d7c0 movq (%rbx), %rdi movq %r15, %rsi callq 0x2a862 movq %r15, %rdi xorl %esi, %esi callq 0x3d7c0 movq %r15, %rdi callq 0x4a3ae movq (%rbx), %r14 jmp 0x4b77e 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 0x4b7e2 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(%r14), %rdx andq %rcx, %rdx xorl %r8d, %r8d cmpq %r14, %rdx setbe %r8b movl $0x1, %edx shlq %cl, %rdx andq -0x8(%rdi,%r8,8), %rdx subl $0x1, %esi movl %esi, 0x60(%rbx) jae 0x4b717 movl $0x3f, 0x60(%rbx) addq $-0x8, %rax movq %rax, 0x58(%rbx) testq %rdx, %rdx je 0x4b782 cmpq $0x0, 0x70(%rbx) je 0x4b803 leaq 0x10(%rsp), %r14 movups (%r14), %xmm0 leaq 0x20(%rsp), %r15 movaps %xmm0, (%r15) movq %r14, %rdi xorl %esi, %esi callq 0x3d7c0 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r15, %rdi movl $0x1, %esi callq 0x3d7c0 movq 0x70(%rbx), %rdi movq %r15, %rsi callq 0x2a862 movq %r15, %rdi xorl %esi, %esi callq 0x3d7c0 movq %r15, %rdi callq 0x4a3ae movq 0x70(%rbx), %r14 movb $0x1, %bl jmp 0x4b787 xorl %ebx, %ebx xorl %r14d, %r14d leaq 0x10(%rsp), %r15 movq %r15, %rdi xorl %esi, %esi callq 0x3d7c0 movq %r15, %rdi callq 0x4a3ae movl %ebx, %eax movq %r14, %rdx addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x5e652(%rip), %rdi # 0xa9e07 leaq 0x5bad0(%rip), %rdx # 0xa728c leaq 0x5fad0(%rip), %rcx # 0xab293 movl $0x1c28, %esi # imm = 0x1C28 xorl %eax, %eax callq 0x18ad0 callq 0x18260 leaq 0x5facc(%rip), %rcx # 0xab2a7 movl $0x1c4b, %esi # imm = 0x1C4B jmp 0x4b7ee leaq 0x5fafc(%rip), %rcx # 0xab2e5 movl $0x1c57, %esi # imm = 0x1C57 leaq 0x5e612(%rip), %rdi # 0xa9e07 leaq 0x5ba90(%rip), %rdx # 0xa728c xorl %eax, %eax callq 0x18ad0 leaq 0x5e5fd(%rip), %rdi # 0xa9e07 leaq 0x5ba7b(%rip), %rdx # 0xa728c leaq 0x5fae5(%rip), %rcx # 0xab2fd movl $0x1c60, %esi # imm = 0x1C60 xorl %eax, %eax callq 0x18ad0 jmp 0x4b826 movq %rax, %rbx leaq 0x10(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x3d7c0 movq %r14, %rdi callq 0x4a3ae movq %rbx, %rdi callq 0x18b90
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRSB_EESt4pairIbPSF_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_4B7AE mov ecx, ecx mov r14, 8000000000000000h lea rdx, [rcx-1] add rcx, 3Eh ; '>' test rdx, rdx cmovns rcx, rdx sar rcx, 6 lea rax, [rax+rcx*8] lea rcx, [r14+3Fh] and rcx, rdx xor edi, edi cmp rcx, r14 setbe dil mov rax, [rax+rdi*8-8] bt rax, rdx jnb loc_4B641 lea rdi, [rsp+68h+var_58] 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_ test bpl, bpl jnz short loc_4B5EE 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_4B7CF 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_4B782 loc_4B5EE: mov rax, [rbx+10h] cmp [rbx+8], rax jz short loc_4B64B mov rax, [rax-8] test rax, rax jz loc_4B782 movzx ecx, byte ptr [rax] cmp ecx, 1 jz loc_4B6A5 cmp ecx, 2 jnz loc_4B7D4 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_4B77E loc_4B641: xor ebx, ebx xor r14d, r14d jmp loc_4B79E loc_4B64B: lea r14, [rsp+68h+var_58] movups 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_4B77E loc_4B6A5: 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_4B7E2 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, [r14+3Fh] and rdx, rcx xor r8d, r8d cmp rdx, r14 setbe r8b mov edx, 1 shl rdx, cl and rdx, [rdi+r8*8-8] sub esi, 1 mov [rbx+60h], esi jnb short loc_4B717 mov dword ptr [rbx+60h], 3Fh ; '?' add rax, 0FFFFFFFFFFFFFFF8h mov [rbx+58h], rax loc_4B717: test rdx, rdx jz short loc_4B782 cmp qword ptr [rbx+70h], 0 jz loc_4B803 lea r14, [rsp+68h+var_58] movups 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_4B77E: mov bl, 1 jmp short loc_4B787 loc_4B782: xor ebx, ebx xor r14d, r14d loc_4B787: 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_4B79E: mov eax, ebx mov rdx, r14 add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_4B7AE: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov esi, 1C28h xor eax, eax call _ggml_abort loc_4B7CF: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) loc_4B7D4: lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"... mov esi, 1C4Bh jmp short loc_4B7EE loc_4B7E2: lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()" mov esi, 1C57h loc_4B7EE: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" xor eax, eax call _ggml_abort loc_4B803: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... 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_4B826: 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<std::string&>( long long a1, long long 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 char v23; // [rsp+Bh] [rbp-5Dh] BYREF int v24; // [rsp+Ch] [rbp-5Ch] BYREF __int128 v25; // [rsp+10h] [rbp-58h] BYREF __int128 v26; // [rsp+20h] [rbp-48h] BYREF _OWORD v27[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/github/2025_star3/monkey531[P]llama/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) ) { ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_((char *)&v25); if ( a3 ) { LABEL_8: v10 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(a1 + 8) == v10 ) { v27[0] = v25; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v25); LOBYTE(v25) = 0; *((_QWORD *)&v25 + 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=( *(char **)a1, (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>::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((void ***)v27); 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)&v25); 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 *)&v25); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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((void ***)&v25); 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/github/2025_star3/monkey531[P]llama/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) ) { v26 = v25; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v25); LOBYTE(v25) = 0; *((_QWORD *)&v25 + 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 *)&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>::operator=( *(char **)(a1 + 112), (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>::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((void ***)&v26); goto LABEL_23; } LABEL_32: v22 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7264LL, "GGML_ASSERT(%s) failed", "object_element"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v25); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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((void ***)&v25); _Unwind_Resume(v22); } } LABEL_24: v4 = 0; goto LABEL_25; } v24 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3; v23 = 5; if ( *(_QWORD *)(a1 + 144) ) { if ( !(*(unsigned __int8 ( **)(long long, int *, char *, __int128 *))(a1 + 152))( a1 + 128, &v24, &v23, &v25) ) goto LABEL_24; goto LABEL_8; } LABEL_28: std::__throw_bad_function_call(); } return 0; }
handle_value<std::__cxx11::string&>: 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 0x0014b7ae MOV ECX,ECX MOV R14,-0x8000000000000000 LEA RDX,[RCX + -0x1] ADD RCX,0x3e TEST RDX,RDX CMOVNS RCX,RDX SAR RCX,0x6 LEA RAX,[RAX + RCX*0x8] LEA RCX,[R14 + 0x3f] AND RCX,RDX XOR EDI,EDI CMP RCX,R14 SETBE DIL MOV RAX,qword ptr [RAX + RDI*0x8 + -0x8] BT RAX,RDX JNC 0x0014b641 LEA RDI,[RSP + 0x10] CALL 0x0014a2e4 TEST BPL,BPL JNZ 0x0014b5ee 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 0x0014b7cf LEA RDI,[RBX + 0x80] LAB_0014b5d1: LEA RSI,[RSP + 0xc] LEA RDX,[RSP + 0xb] LEA RCX,[RSP + 0x10] CALL qword ptr [RBX + 0x98] TEST AL,AL JZ 0x0014b782 LAB_0014b5ee: MOV RAX,qword ptr [RBX + 0x10] CMP qword ptr [RBX + 0x8],RAX JZ 0x0014b64b MOV RAX,qword ptr [RAX + -0x8] TEST RAX,RAX JZ 0x0014b782 MOVZX ECX,byte ptr [RAX] CMP ECX,0x1 JZ 0x0014b6a5 CMP ECX,0x2 JNZ 0x0014b7d4 MOV RDI,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x10] CALL 0x0013ee4c LAB_0014b628: 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 0x0014b77e LAB_0014b641: XOR EBX,EBX XOR R14D,R14D JMP 0x0014b79e LAB_0014b64b: LEA R14,[RSP + 0x10] MOVUPS XMM0,xmmword ptr [R14] LEA R15,[RSP + 0x30] MOVAPS xmmword ptr [R15],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x0013d7c0 MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x0013d7c0 MOV RDI,qword ptr [RBX] MOV RSI,R15 CALL 0x0012a862 MOV RDI,R15 XOR ESI,ESI CALL 0x0013d7c0 MOV RDI,R15 CALL 0x0014a3ae MOV R14,qword ptr [RBX] JMP 0x0014b77e LAB_0014b6a5: 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 0x0014b7e2 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,[R14 + 0x3f] AND RDX,RCX XOR R8D,R8D CMP RDX,R14 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 0x0014b717 MOV dword ptr [RBX + 0x60],0x3f ADD RAX,-0x8 MOV qword ptr [RBX + 0x58],RAX LAB_0014b717: TEST RDX,RDX JZ 0x0014b782 CMP qword ptr [RBX + 0x70],0x0 JZ 0x0014b803 LEA R14,[RSP + 0x10] MOVUPS XMM0,xmmword ptr [R14] LEA R15,[RSP + 0x20] MOVAPS xmmword ptr [R15],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x0013d7c0 MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x0013d7c0 MOV RDI,qword ptr [RBX + 0x70] MOV RSI,R15 CALL 0x0012a862 MOV RDI,R15 XOR ESI,ESI CALL 0x0013d7c0 MOV RDI,R15 CALL 0x0014a3ae MOV R14,qword ptr [RBX + 0x70] LAB_0014b77e: MOV BL,0x1 JMP 0x0014b787 LAB_0014b782: XOR EBX,EBX XOR R14D,R14D LAB_0014b787: LEA R15,[RSP + 0x10] MOV RDI,R15 XOR ESI,ESI CALL 0x0013d7c0 MOV RDI,R15 CALL 0x0014a3ae LAB_0014b79e: MOV EAX,EBX MOV RDX,R14 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_0014b7ae: LEA RDI,[0x1a9e07] LEA RDX,[0x1a728c] LEA RCX,[0x1ab293] MOV ESI,0x1c28 XOR EAX,EAX CALL 0x00118ad0 LAB_0014b7cf: CALL 0x00118260 LAB_0014b7d4: LEA RCX,[0x1ab2a7] MOV ESI,0x1c4b JMP 0x0014b7ee LAB_0014b7e2: LEA RCX,[0x1ab2e5] MOV ESI,0x1c57 LAB_0014b7ee: LEA RDI,[0x1a9e07] LEA RDX,[0x1a728c] XOR EAX,EAX CALL 0x00118ad0 LAB_0014b803: LEA RDI,[0x1a9e07] LEA RDX,[0x1a728c] LEA RCX,[0x1ab2fd] MOV ESI,0x1c60 XOR EAX,EAX CALL 0x00118ad0
/* 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<std::__cxx11::string&>(std::__cxx11::string&, 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<std::__cxx11::string&> (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 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; basic_json local_58 [8]; int8 uStack_50; data local_48 [8]; int8 uStack_40; data local_38 [8]; 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/github/2025_star3/monkey531[P]llama/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_0014b79e; } _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_58); if (param_2) { LAB_0014b5ee: if (*(long *)(this + 8) == *(long *)(this + 0x10)) { 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[0] = (basic_json)0x0; uStack_50 = 0; bVar7 = 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> ::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,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(local_38); lVar8 = *(long *)this; } else { pcVar4 = *(char **)(*(long *)(this + 0x10) + -8); if (pcVar4 == (char *)0x0) goto LAB_0014b782; 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_0014b7ee; } 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_0014b782; if (*(long *)(this + 0x70) == 0) { /* try { // try from 0014b803 to 0014b823 has its CatchHandler @ 0014b824 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 0x1c60,"GGML_ASSERT(%s) failed","object_element"); } 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[0] = (basic_json)0x0; uStack_50 = 0; bVar7 = SUB81(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),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(local_48); lVar8 = *(long *)(this + 0x70); } else { if (*pcVar4 != '\x02') { pcVar4 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; uVar6 = 0x1c4b; LAB_0014b7ee: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/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),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 0014b7cf to 0014b802 has its CatchHandler @ 0014b826 */ std::__throw_bad_function_call(); } /* try { // try from 0014b5d1 to 0014b627 has its CatchHandler @ 0014b826 */ cVar2 = (**(code **)(this + 0x98))(this + 0x80,&local_5c,&local_5d,local_58); if (cVar2 != '\0') goto LAB_0014b5ee; LAB_0014b782: 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_0014b79e: auVar9._0_8_ = uVar5 & 0xffffffff; auVar9._8_8_ = lVar8; return auVar9; }
34,014
ModbusClientPort::close()
serhmarch[P]ModbusBridge/modbus/src/ModbusClientPort.cpp
StatusCode ModbusClientPort::close() { ModbusClientPortPrivate *d = d_ModbusClientPort(d_ptr); StatusCode s = d->port->close(); signalClosed(this->objectName()); d->currentClient = nullptr; d->setPortStatus(s); return s; }
O0
cpp
ModbusClientPort::close(): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq 0x8(%rax), %rdi callq 0x199f0 movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x60(%rax), %rdi movq (%rdi), %rax callq *0x28(%rax) movq -0x20(%rbp), %rdi movl %eax, -0x14(%rbp) callq 0xda20 movq -0x20(%rbp), %rdi movq %rax, %rsi callq 0x13790 movq -0x10(%rbp), %rax movq $0x0, 0x78(%rax) movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi callq 0x19a00 movl -0x14(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
_ZN16ModbusClientPort5closeEv: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_20], rax mov rdi, [rax+8] call _Z18d_ModbusClientPortP19ModbusObjectPrivate; d_ModbusClientPort(ModbusObjectPrivate *) mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rdi, [rax+60h] mov rax, [rdi] call qword ptr [rax+28h] mov rdi, [rbp+var_20]; this mov [rbp+var_14], eax call _ZNK12ModbusObject10objectNameEv; ModbusObject::objectName(void) mov rdi, [rbp+var_20]; this mov rsi, rax; char * call _ZN16ModbusClientPort12signalClosedEPKc; ModbusClientPort::signalClosed(char const*) mov rax, [rbp+var_10] mov qword ptr [rax+78h], 0 mov rdi, [rbp+var_10] mov esi, [rbp+var_14] call _ZN23ModbusClientPortPrivate13setPortStatusEN6Modbus10StatusCodeE; ModbusClientPortPrivate::setPortStatus(Modbus::StatusCode) mov eax, [rbp+var_14] add rsp, 20h pop rbp retn
long long ModbusClientPort::close(ModbusObjectPrivate **this) { const char *v1; // rax unsigned int v3; // [rsp+Ch] [rbp-14h] long long v4; // [rsp+10h] [rbp-10h] v4 = d_ModbusClientPort(this[1]); v3 = (*(long long ( **)(_QWORD))(**(_QWORD **)(v4 + 96) + 40LL))(*(_QWORD *)(v4 + 96)); v1 = (const char *)ModbusObject::objectName((ModbusObject *)this); ModbusClientPort::signalClosed((ModbusClientPort *)this, v1); *(_QWORD *)(v4 + 120) = 0LL; ModbusClientPortPrivate::setPortStatus(v4, v3); return v3; }
close: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RAX + 0x8] CALL 0x001199f0 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x60] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x28] MOV RDI,qword ptr [RBP + -0x20] MOV dword ptr [RBP + -0x14],EAX CALL 0x0010da20 MOV RDI,qword ptr [RBP + -0x20] MOV RSI,RAX CALL 0x00113790 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x78],0x0 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] CALL 0x00119a00 MOV EAX,dword ptr [RBP + -0x14] ADD RSP,0x20 POP RBP RET
/* ModbusClientPort::close() */ int4 __thiscall ModbusClientPort::close(ModbusClientPort *this) { int4 uVar1; ModbusClientPortPrivate *pMVar2; pMVar2 = (ModbusClientPortPrivate *)d_ModbusClientPort(*(ModbusObjectPrivate **)(this + 8)); uVar1 = (**(code **)(**(long **)(pMVar2 + 0x60) + 0x28))(); ModbusObject::objectName(); signalClosed((char *)this); *(int8 *)(pMVar2 + 0x78) = 0; ModbusClientPortPrivate::setPortStatus(pMVar2,uVar1); return uVar1; }
34,015
ModbusClientPort::close()
serhmarch[P]ModbusBridge/modbus/src/ModbusClientPort.cpp
StatusCode ModbusClientPort::close() { ModbusClientPortPrivate *d = d_ModbusClientPort(d_ptr); StatusCode s = d->port->close(); signalClosed(this->objectName()); d->currentClient = nullptr; d->setPortStatus(s); return s; }
O3
cpp
ModbusClientPort::close(): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %r14 movq 0x8(%rdi), %r15 movq 0x60(%r15), %rdi movq (%rdi), %rax callq *0x28(%rax) movl %eax, %ebx movq %r14, %rdi callq 0x8a42 leaq 0xf0b9(%rip), %rsi # 0x19264 leaq 0x46(%rip), %rdx # 0xa1f8 movq %r14, %rdi xorl %ecx, %ecx movq %rax, %r8 callq 0xd992 movq $0x0, 0x78(%r15) btl $0x18, %ebx movl %ebx, 0x184(%r15) jae 0xa1e3 movl %ebx, 0x188(%r15) movb $0x1, 0x1b0(%r15) callq 0xfb5a movq %rax, 0x1b8(%r15) movl %ebx, %eax popq %rbx popq %r14 popq %r15 retq nop
_ZN16ModbusClientPort5closeEv: push r15 push r14 push rbx mov r14, rdi mov r15, [rdi+8] mov rdi, [r15+60h] mov rax, [rdi] call qword ptr [rax+28h] mov ebx, eax mov rdi, r14; this call _ZNK12ModbusObject10objectNameEv; ModbusObject::objectName(void) lea rsi, aSignalclosed; "signalClosed" lea rdx, _ZN16ModbusClientPort12signalClosedEPKc; ModbusClientPort::signalClosed(char const*) mov rdi, r14; this xor ecx, ecx mov r8, rax call _ZN12ModbusObject10emitSignalI16ModbusClientPortJPKcEEEvS3_MT_FvDpT0_ES6_; ModbusObject::emitSignal<ModbusClientPort,char const*>(char const*,void (ModbusClientPort::*)(char const*),char const*) mov qword ptr [r15+78h], 0 bt ebx, 18h mov [r15+184h], ebx jnb short loc_A1E3 mov [r15+188h], ebx mov byte ptr [r15+1B0h], 1 loc_A1E3: call currentTimestamp mov [r15+1B8h], rax mov eax, ebx pop rbx pop r14 pop r15 retn
long long ModbusClientPort::close(ModbusClientPort *this) { long long v1; // r15 unsigned int v2; // ebx v1 = *((_QWORD *)this + 1); v2 = (*(long long ( **)(_QWORD))(**(_QWORD **)(v1 + 96) + 40LL))(*(_QWORD *)(v1 + 96)); ModbusObject::objectName(this); ModbusObject::emitSignal<ModbusClientPort,char const*>(this); *(_QWORD *)(v1 + 120) = 0LL; *(_DWORD *)(v1 + 388) = v2; if ( (v2 & 0x1000000) != 0 ) { *(_DWORD *)(v1 + 392) = v2; *(_BYTE *)(v1 + 432) = 1; } *(_QWORD *)(v1 + 440) = currentTimestamp(this, "signalClosed"); return v2; }
close: PUSH R15 PUSH R14 PUSH RBX MOV R14,RDI MOV R15,qword ptr [RDI + 0x8] MOV RDI,qword ptr [R15 + 0x60] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x28] MOV EBX,EAX MOV RDI,R14 CALL 0x00108a42 LEA RSI,[0x119264] LEA RDX,[0x10a1f8] MOV RDI,R14 XOR ECX,ECX MOV R8,RAX CALL 0x0010d992 MOV qword ptr [R15 + 0x78],0x0 BT EBX,0x18 MOV dword ptr [R15 + 0x184],EBX JNC 0x0010a1e3 MOV dword ptr [R15 + 0x188],EBX MOV byte ptr [R15 + 0x1b0],0x1 LAB_0010a1e3: CALL 0x0010fb5a MOV qword ptr [R15 + 0x1b8],RAX MOV EAX,EBX POP RBX POP R14 POP R15 RET
/* ModbusClientPort::close() */ uint __thiscall ModbusClientPort::close(ModbusClientPort *this) { long lVar1; uint uVar2; int8 uVar3; lVar1 = *(long *)(this + 8); uVar2 = (**(code **)(**(long **)(lVar1 + 0x60) + 0x28))(); ModbusObject::objectName((ModbusObject *)this); ModbusObject::emitSignal<ModbusClientPort,char_const*> ((char *)this,(_func_void_char_ptr *)"signalClosed",(char *)signalClosed); *(int8 *)(lVar1 + 0x78) = 0; *(uint *)(lVar1 + 0x184) = uVar2; if ((uVar2 >> 0x18 & 1) != 0) { *(uint *)(lVar1 + 0x188) = uVar2; *(int1 *)(lVar1 + 0x1b0) = 1; } uVar3 = currentTimestamp(); *(int8 *)(lVar1 + 0x1b8) = uVar3; return uVar2; }
34,016
ESRGAN::ESRGAN()
7CodeWizard[P]stablediffusion/esrgan.hpp
ESRGAN() { name = "esrgan"; for (int i = 0; i < num_blocks; i++) { body_blocks[i] = EsrganBlock(num_features, num_grow_ch); } }
O0
cpp
ESRGAN::ESRGAN(): subq $0x148, %rsp # imm = 0x148 movq %rdi, 0x140(%rsp) movq 0x140(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x431f0 movq 0x8(%rsp), %rax leaq 0xe7223(%rip), %rcx # 0x1d7640 addq $0x10, %rcx movq %rcx, (%rax) movl $0x4, 0x68(%rax) movl $0x6, 0x6c(%rax) movl $0x3, 0x70(%rax) movl $0x3, 0x74(%rax) movl $0x40, 0x78(%rax) movl $0x20, 0x7c(%rax) movl $0x80, 0x80(%rax) addq $0x98, %rax movq %rax, %rcx addq $0x660, %rcx # imm = 0x660 movq %rcx, 0x10(%rsp) movq %rax, 0x18(%rsp) movq 0x18(%rsp), %rdi movq %rdi, (%rsp) callq 0xf0570 jmp 0xf0482 movq 0x10(%rsp), %rcx movq (%rsp), %rax addq $0x110, %rax # imm = 0x110 cmpq %rcx, %rax movq %rax, 0x18(%rsp) jne 0xf0472 movq 0x8(%rsp), %rdi movb $0x0, 0x748(%rdi) addq $0x8, %rdi leaq 0x95356(%rip), %rsi # 0x185808 callq 0xba40 jmp 0xf04b9 movl $0x0, 0x130(%rsp) movq 0x8(%rsp), %rcx movl 0x130(%rsp), %eax cmpl 0x6c(%rcx), %eax jge 0xf054c movq 0x8(%rsp), %rax movl 0x78(%rax), %esi movl 0x7c(%rax), %edx leaq 0x20(%rsp), %rdi callq 0xf05d0 jmp 0xf04ec movq 0x8(%rsp), %rdi addq $0x98, %rdi movslq 0x130(%rsp), %rax imulq $0x110, %rax, %rax # imm = 0x110 addq %rax, %rdi leaq 0x20(%rsp), %rsi movl $0x10c, %edx # imm = 0x10C callq 0xb600 movl 0x130(%rsp), %eax addl $0x1, %eax movl %eax, 0x130(%rsp) jmp 0xf04c4 movq 0x8(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x138(%rsp) movl %eax, 0x134(%rsp) callq 0x43510 jmp 0xf0554 addq $0x148, %rsp # imm = 0x148 retq movq 0x138(%rsp), %rdi callq 0xbd30 nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZN6ESRGANC2Ev: sub rsp, 148h mov [rsp+148h+var_8], rdi mov rdi, [rsp+148h+var_8]; this mov [rsp+148h+var_140], rdi call _ZN10GGMLModuleC2Ev; GGMLModule::GGMLModule(void) mov rax, [rsp+148h+var_140] lea rcx, _ZTV6ESRGAN; `vtable for'ESRGAN add rcx, 10h mov [rax], rcx mov dword ptr [rax+68h], 4 mov dword ptr [rax+6Ch], 6 mov dword ptr [rax+70h], 3 mov dword ptr [rax+74h], 3 mov dword ptr [rax+78h], 40h ; '@' mov dword ptr [rax+7Ch], 20h ; ' ' mov dword ptr [rax+80h], 80h add rax, 98h mov rcx, rax add rcx, 660h mov [rsp+148h+var_138], rcx mov [rsp+148h+var_130], rax loc_F0472: mov rdi, [rsp+148h+var_130]; this mov [rsp+148h+var_148], rdi call _ZN11EsrganBlockC2Ev; EsrganBlock::EsrganBlock(void) jmp short $+2 loc_F0482: mov rcx, [rsp+148h+var_138] mov rax, [rsp+148h+var_148] add rax, 110h cmp rax, rcx mov [rsp+148h+var_130], rax jnz short loc_F0472 mov rdi, [rsp+148h+var_140] mov byte ptr [rdi+748h], 0 add rdi, 8 lea rsi, aEsrgan; "esrgan" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc; std::string::operator=(char const*) jmp short $+2 loc_F04B9: mov [rsp+148h+var_18], 0 loc_F04C4: mov rcx, [rsp+148h+var_140] mov eax, [rsp+148h+var_18] cmp eax, [rcx+6Ch] jge short loc_F054C mov rax, [rsp+148h+var_140] mov esi, [rax+78h]; int mov edx, [rax+7Ch]; int lea rdi, [rsp+148h+var_128]; this call _ZN11EsrganBlockC2Eii; EsrganBlock::EsrganBlock(int,int) jmp short $+2 loc_F04EC: mov rdi, [rsp+148h+var_140] add rdi, 98h movsxd rax, [rsp+148h+var_18] imul rax, 110h add rdi, rax lea rsi, [rsp+148h+var_128] mov edx, 10Ch call _memcpy mov eax, [rsp+148h+var_18] add eax, 1 mov [rsp+148h+var_18], eax jmp short loc_F04C4 mov rdi, [rsp+arg_0]; this mov rcx, rax mov eax, edx mov [rsp+arg_130], rcx mov [rsp+arg_12C], eax call _ZN10GGMLModuleD2Ev; GGMLModule::~GGMLModule() jmp short loc_F0554 loc_F054C: add rsp, 148h retn loc_F0554: mov rdi, [rsp+arg_130] call __Unwind_Resume
void ESRGAN::ESRGAN(ESRGAN *this) { EsrganBlock *v1; // [rsp+18h] [rbp-130h] _BYTE v2[272]; // [rsp+20h] [rbp-128h] BYREF int i; // [rsp+130h] [rbp-18h] GGMLModule *v4; // [rsp+140h] [rbp-8h] v4 = this; GGMLModule::GGMLModule(this); *(_QWORD *)this = &`vtable for'ESRGAN + 2; *((_DWORD *)this + 26) = 4; *((_DWORD *)this + 27) = 6; *((_DWORD *)this + 28) = 3; *((_DWORD *)this + 29) = 3; *((_DWORD *)this + 30) = 64; *((_DWORD *)this + 31) = 32; *((_DWORD *)this + 32) = 128; v1 = (ESRGAN *)((char *)this + 152); do { EsrganBlock::EsrganBlock(v1); v1 = (EsrganBlock *)((char *)v1 + 272); } while ( v1 != (ESRGAN *)((char *)this + 1784) ); *((_BYTE *)this + 1864) = 0; std::string::operator=((char *)this + 8, "esrgan"); for ( i = 0; i < *((_DWORD *)this + 27); ++i ) { EsrganBlock::EsrganBlock((EsrganBlock *)v2, *((_DWORD *)this + 30), *((_DWORD *)this + 31)); memcpy((char *)this + 272 * i + 152, v2, 268LL); } }
ESRGAN: SUB RSP,0x148 MOV qword ptr [RSP + 0x140],RDI MOV RDI,qword ptr [RSP + 0x140] MOV qword ptr [RSP + 0x8],RDI CALL 0x001431f0 MOV RAX,qword ptr [RSP + 0x8] LEA RCX,[0x2d7640] ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV dword ptr [RAX + 0x68],0x4 MOV dword ptr [RAX + 0x6c],0x6 MOV dword ptr [RAX + 0x70],0x3 MOV dword ptr [RAX + 0x74],0x3 MOV dword ptr [RAX + 0x78],0x40 MOV dword ptr [RAX + 0x7c],0x20 MOV dword ptr [RAX + 0x80],0x80 ADD RAX,0x98 MOV RCX,RAX ADD RCX,0x660 MOV qword ptr [RSP + 0x10],RCX MOV qword ptr [RSP + 0x18],RAX LAB_001f0472: MOV RDI,qword ptr [RSP + 0x18] MOV qword ptr [RSP],RDI CALL 0x001f0570 JMP 0x001f0482 LAB_001f0482: MOV RCX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP] ADD RAX,0x110 CMP RAX,RCX MOV qword ptr [RSP + 0x18],RAX JNZ 0x001f0472 MOV RDI,qword ptr [RSP + 0x8] MOV byte ptr [RDI + 0x748],0x0 ADD RDI,0x8 LEA RSI,[0x285808] CALL 0x0010ba40 JMP 0x001f04b9 LAB_001f04b9: MOV dword ptr [RSP + 0x130],0x0 LAB_001f04c4: MOV RCX,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RSP + 0x130] CMP EAX,dword ptr [RCX + 0x6c] JGE 0x001f054c MOV RAX,qword ptr [RSP + 0x8] MOV ESI,dword ptr [RAX + 0x78] MOV EDX,dword ptr [RAX + 0x7c] LEA RDI,[RSP + 0x20] CALL 0x001f05d0 LAB_001f04ea: JMP 0x001f04ec LAB_001f04ec: MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x98 MOVSXD RAX,dword ptr [RSP + 0x130] IMUL RAX,RAX,0x110 ADD RDI,RAX LEA RSI,[RSP + 0x20] MOV EDX,0x10c CALL 0x0010b600 MOV EAX,dword ptr [RSP + 0x130] ADD EAX,0x1 MOV dword ptr [RSP + 0x130],EAX JMP 0x001f04c4 LAB_001f054c: ADD RSP,0x148 RET
/* ESRGAN::ESRGAN() */ void __thiscall ESRGAN::ESRGAN(ESRGAN *this) { EsrganBlock *local_130; EsrganBlock local_128 [272]; int local_18; ESRGAN *local_8; local_8 = this; GGMLModule::GGMLModule((GGMLModule *)this); *(int ***)this = &PTR_calculate_mem_size_002d7650; *(int4 *)(this + 0x68) = 4; *(int4 *)(this + 0x6c) = 6; *(int4 *)(this + 0x70) = 3; *(int4 *)(this + 0x74) = 3; *(int4 *)(this + 0x78) = 0x40; *(int4 *)(this + 0x7c) = 0x20; *(int4 *)(this + 0x80) = 0x80; local_130 = (EsrganBlock *)(this + 0x98); do { /* try { // try from 001f0472 to 001f04e9 has its CatchHandler @ 001f052c */ EsrganBlock::EsrganBlock(local_130); local_130 = local_130 + 0x110; } while (local_130 != (EsrganBlock *)(this + 0x6f8)); this[0x748] = (ESRGAN)0x0; std::__cxx11::string::operator=((string *)(this + 8),"esrgan"); for (local_18 = 0; local_18 < *(int *)(this + 0x6c); local_18 = local_18 + 1) { EsrganBlock::EsrganBlock(local_128,*(int *)(this + 0x78),*(int *)(this + 0x7c)); memcpy(this + (long)local_18 * 0x110 + 0x98,local_128,0x10c); } return; }
34,017
ESRGAN::ESRGAN()
7CodeWizard[P]stablediffusion/esrgan.hpp
ESRGAN() { name = "esrgan"; for (int i = 0; i < num_blocks; i++) { body_blocks[i] = EsrganBlock(num_features, num_grow_ch); } }
O2
cpp
ESRGAN::ESRGAN(): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x118, %rsp # imm = 0x118 movq %rdi, %rbx callq 0x21acc leaq 0x7d217(%rip), %rax # 0xd5090 movq %rax, (%rbx) movaps 0x4772d(%rip), %xmm0 # 0x9f5b0 movups %xmm0, 0x68(%rbx) movabsq $0x2000000040, %rax # imm = 0x2000000040 movq %rax, 0x78(%rbx) movl $0x80, 0x80(%rbx) leaq 0x1a0(%rbx), %rax xorl %ecx, %ecx movdqa 0x47710(%rip), %xmm0 # 0x9f5c0 movdqa 0x47718(%rip), %xmm1 # 0x9f5d0 movdqa 0x419c0(%rip), %xmm2 # 0x99880 movdqa 0x47718(%rip), %xmm3 # 0x9f5e0 pshufd $0xf5, %xmm3, %xmm4 # xmm4 = xmm3[1,1,3,3] movq %rcx, %xmm5 pshufd $0x44, %xmm5, %xmm5 # xmm5 = xmm5[0,1,0,1] movdqa %xmm5, %xmm6 por %xmm1, %xmm6 pxor %xmm2, %xmm6 movdqa %xmm3, %xmm7 pcmpgtd %xmm6, %xmm7 pshufd $0xf5, %xmm6, %xmm6 # xmm6 = xmm6[1,1,3,3] pcmpeqd %xmm4, %xmm6 pand %xmm7, %xmm6 movd %xmm6, %edx testb $0x1, %dl je 0x57f07 movl $0x3, (%rax) pextrw $0x4, %xmm6, %edx testb $0x1, %dl je 0x57f1b movl $0x3, 0x110(%rax) por %xmm0, %xmm5 pxor %xmm2, %xmm5 movdqa %xmm3, %xmm6 pcmpgtd %xmm5, %xmm6 pshufd $0xf5, %xmm5, %xmm5 # xmm5 = xmm5[1,1,3,3] pcmpeqd %xmm4, %xmm5 pand %xmm6, %xmm5 pextrw $0x0, %xmm5, %edx testb $0x1, %dl je 0x57f4c movl $0x3, 0x220(%rax) pextrw $0x4, %xmm5, %edx testb $0x1, %dl je 0x57f60 movl $0x3, 0x330(%rax) addq $0x4, %rcx addq $0x440, %rax # imm = 0x440 cmpq $0x8, %rcx jne 0x57ecd movb $0x0, 0x748(%rbx) leaq 0x8(%rbx), %rdi leaq 0x4766a(%rip), %rsi # 0x9f5f0 callq 0xabc0 leaq 0x98(%rbx), %r14 xorl %r12d, %r12d leaq 0x8(%rsp), %r15 movslq 0x6c(%rbx), %rax cmpq %rax, %r12 jge 0x57fcd movl 0x78(%rbx), %esi movl 0x7c(%rbx), %edx movq %r15, %rdi callq 0x57ff2 movl $0x10c, %edx # imm = 0x10C movq %r14, %rdi movq %r15, %rsi callq 0xa4c0 incq %r12 addq $0x110, %r14 # imm = 0x110 jmp 0x57f9a addq $0x118, %rsp # imm = 0x118 popq %rbx popq %r12 popq %r14 popq %r15 retq jmp 0x57fde movq %rax, %r14 movq %rbx, %rdi callq 0x213e6 movq %r14, %rdi callq 0xaab0 nop
_ZN6ESRGANC2Ev: push r15 push r14 push r12 push rbx sub rsp, 118h mov rbx, rdi call _ZN10GGMLModuleC2Ev; GGMLModule::GGMLModule(void) lea rax, off_D5090 mov [rbx], rax movaps xmm0, cs:xmmword_9F5B0 movups xmmword ptr [rbx+68h], xmm0 mov rax, 2000000040h mov [rbx+78h], rax mov dword ptr [rbx+80h], 80h lea rax, [rbx+1A0h] xor ecx, ecx movdqa xmm0, cs:xmmword_9F5C0 movdqa xmm1, cs:xmmword_9F5D0 movdqa xmm2, cs:xmmword_99880 movdqa xmm3, cs:xmmword_9F5E0 pshufd xmm4, xmm3, 0F5h loc_57ECD: movq xmm5, rcx pshufd xmm5, xmm5, 44h ; 'D' movdqa xmm6, xmm5 por xmm6, xmm1 pxor xmm6, xmm2 movdqa xmm7, xmm3 pcmpgtd xmm7, xmm6 pshufd xmm6, xmm6, 0F5h pcmpeqd xmm6, xmm4 pand xmm6, xmm7 movd edx, xmm6 test dl, 1 jz short loc_57F07 mov dword ptr [rax], 3 loc_57F07: pextrw edx, xmm6, 4 test dl, 1 jz short loc_57F1B mov dword ptr [rax+110h], 3 loc_57F1B: por xmm5, xmm0 pxor xmm5, xmm2 movdqa xmm6, xmm3 pcmpgtd xmm6, xmm5 pshufd xmm5, xmm5, 0F5h pcmpeqd xmm5, xmm4 pand xmm5, xmm6 pextrw edx, xmm5, 0 test dl, 1 jz short loc_57F4C mov dword ptr [rax+220h], 3 loc_57F4C: pextrw edx, xmm5, 4 test dl, 1 jz short loc_57F60 mov dword ptr [rax+330h], 3 loc_57F60: add rcx, 4 add rax, 440h cmp rcx, 8 jnz loc_57ECD mov byte ptr [rbx+748h], 0 lea rdi, [rbx+8] lea rsi, aEsrgan; "esrgan" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc; std::string::assign(char const*) lea r14, [rbx+98h] xor r12d, r12d lea r15, [rsp+138h+var_130] loc_57F9A: movsxd rax, dword ptr [rbx+6Ch] cmp r12, rax jge short loc_57FCD mov esi, [rbx+78h]; int mov edx, [rbx+7Ch]; int mov rdi, r15; this call _ZN11EsrganBlockC2Eii; EsrganBlock::EsrganBlock(int,int) mov edx, 10Ch mov rdi, r14 mov rsi, r15 call _memcpy inc r12 add r14, 110h jmp short loc_57F9A loc_57FCD: add rsp, 118h pop rbx pop r12 pop r14 pop r15 retn jmp short $+2 loc_57FDE: mov r14, rax mov rdi, rbx; this call _ZN10GGMLModuleD2Ev; GGMLModule::~GGMLModule() mov rdi, r14 call __Unwind_Resume
void ESRGAN::ESRGAN(ESRGAN *this) { _DWORD *v1; // rax unsigned long long v2; // rcx __m128i si128; // xmm0 __m128i v4; // xmm1 __m128i v5; // xmm2 __m128i v6; // xmm3 __m128i v7; // xmm4 __m128i v8; // xmm5 __m128i v9; // xmm6 __m128i v10; // xmm6 __m128i v11; // xmm5 __m128i v12; // xmm5 char *v13; // r14 long long i; // r12 _BYTE v15[304]; // [rsp+8h] [rbp-130h] BYREF GGMLModule::GGMLModule(this); *(_QWORD *)this = off_D5090; *(_OWORD *)((char *)this + 104) = xmmword_9F5B0; *((_QWORD *)this + 15) = 0x2000000040LL; *((_DWORD *)this + 32) = 128; v1 = (_DWORD *)((char *)this + 416); v2 = 0LL; si128 = _mm_load_si128((const __m128i *)&xmmword_9F5C0); v4 = _mm_load_si128((const __m128i *)&xmmword_9F5D0); v5 = _mm_load_si128((const __m128i *)&xmmword_99880); v6 = _mm_load_si128((const __m128i *)&xmmword_9F5E0); v7 = _mm_shuffle_epi32(v6, 245); do { v8 = _mm_shuffle_epi32((__m128i)v2, 68); v9 = _mm_xor_si128(_mm_or_si128(v8, v4), v5); v10 = _mm_and_si128(_mm_cmpeq_epi32(_mm_shuffle_epi32(v9, 245), v7), _mm_cmpgt_epi32(v6, v9)); if ( (_mm_cvtsi128_si32(v10) & 1) != 0 ) *v1 = 3; if ( (_mm_extract_epi16(v10, 4) & 1) != 0 ) v1[68] = 3; v11 = _mm_xor_si128(_mm_or_si128(v8, si128), v5); v12 = _mm_and_si128(_mm_cmpeq_epi32(_mm_shuffle_epi32(v11, 245), v7), _mm_cmpgt_epi32(v6, v11)); if ( (_mm_extract_epi16(v12, 0) & 1) != 0 ) v1[136] = 3; if ( (_mm_extract_epi16(v12, 4) & 1) != 0 ) v1[204] = 3; v2 += 4LL; v1 += 272; } while ( v2 != 8 ); *((_BYTE *)this + 1864) = 0; std::string::assign((char *)this + 8, "esrgan"); v13 = (char *)this + 152; for ( i = 0LL; i < *((int *)this + 27); ++i ) { EsrganBlock::EsrganBlock((EsrganBlock *)v15, *((_DWORD *)this + 30), *((_DWORD *)this + 31)); memcpy(v13, v15, 268LL); v13 += 272; } }
ESRGAN: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x118 MOV RBX,RDI CALL 0x00121acc LEA RAX,[0x1d5090] MOV qword ptr [RBX],RAX MOVAPS XMM0,xmmword ptr [0x0019f5b0] MOVUPS xmmword ptr [RBX + 0x68],XMM0 MOV RAX,0x2000000040 MOV qword ptr [RBX + 0x78],RAX MOV dword ptr [RBX + 0x80],0x80 LEA RAX,[RBX + 0x1a0] XOR ECX,ECX MOVDQA XMM0,xmmword ptr [0x0019f5c0] MOVDQA XMM1,xmmword ptr [0x0019f5d0] MOVDQA XMM2,xmmword ptr [0x00199880] MOVDQA XMM3,xmmword ptr [0x0019f5e0] PSHUFD XMM4,XMM3,0xf5 LAB_00157ecd: MOVQ XMM5,RCX PSHUFD XMM5,XMM5,0x44 MOVDQA XMM6,XMM5 POR XMM6,XMM1 PXOR XMM6,XMM2 MOVDQA XMM7,XMM3 PCMPGTD XMM7,XMM6 PSHUFD XMM6,XMM6,0xf5 PCMPEQD XMM6,XMM4 PAND XMM6,XMM7 MOVD EDX,XMM6 TEST DL,0x1 JZ 0x00157f07 MOV dword ptr [RAX],0x3 LAB_00157f07: PEXTRW EDX,XMM6,0x4 TEST DL,0x1 JZ 0x00157f1b MOV dword ptr [RAX + 0x110],0x3 LAB_00157f1b: POR XMM5,XMM0 PXOR XMM5,XMM2 MOVDQA XMM6,XMM3 PCMPGTD XMM6,XMM5 PSHUFD XMM5,XMM5,0xf5 PCMPEQD XMM5,XMM4 PAND XMM5,XMM6 PEXTRW EDX,XMM5,0x0 TEST DL,0x1 JZ 0x00157f4c MOV dword ptr [RAX + 0x220],0x3 LAB_00157f4c: PEXTRW EDX,XMM5,0x4 TEST DL,0x1 JZ 0x00157f60 MOV dword ptr [RAX + 0x330],0x3 LAB_00157f60: ADD RCX,0x4 ADD RAX,0x440 CMP RCX,0x8 JNZ 0x00157ecd MOV byte ptr [RBX + 0x748],0x0 LEA RDI,[RBX + 0x8] LAB_00157f7f: LEA RSI,[0x19f5f0] CALL 0x0010abc0 LEA R14,[RBX + 0x98] XOR R12D,R12D LEA R15,[RSP + 0x8] LAB_00157f9a: MOVSXD RAX,dword ptr [RBX + 0x6c] CMP R12,RAX JGE 0x00157fcd MOV ESI,dword ptr [RBX + 0x78] MOV EDX,dword ptr [RBX + 0x7c] LAB_00157fa9: MOV RDI,R15 CALL 0x00157ff2 LAB_00157fb1: MOV EDX,0x10c MOV RDI,R14 MOV RSI,R15 CALL 0x0010a4c0 INC R12 ADD R14,0x110 JMP 0x00157f9a LAB_00157fcd: ADD RSP,0x118 POP RBX POP R12 POP R14 POP R15 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* ESRGAN::ESRGAN() */ void __thiscall ESRGAN::ESRGAN(ESRGAN *this) { int1 auVar1 [16]; int8 uVar2; int1 auVar3 [16]; int1 auVar4 [16]; int iVar5; int iVar6; ESRGAN *pEVar7; long lVar8; int1 auVar9 [16]; int1 auVar10 [16]; EsrganBlock local_130 [272]; GGMLModule::GGMLModule((GGMLModule *)this); *(int ***)this = &PTR_calculate_mem_size_001d5090; uVar2 = _UNK_0019f5b8; *(int8 *)(this + 0x68) = _DAT_0019f5b0; *(int8 *)(this + 0x70) = uVar2; *(int8 *)(this + 0x78) = 0x2000000040; *(int4 *)(this + 0x80) = 0x80; iVar6 = _UNK_0019f5e4; iVar5 = _DAT_0019f5e0; auVar4 = _DAT_0019f5d0; auVar3 = _DAT_0019f5c0; auVar1 = _DAT_00199880; pEVar7 = this + 0x1a0; lVar8 = 0; do { auVar9._8_4_ = (int)lVar8; auVar9._0_8_ = lVar8; auVar9._12_4_ = (int)((ulong)lVar8 >> 0x20); auVar10 = (auVar9 | auVar4) ^ auVar1; if (auVar10._4_4_ == iVar6 && auVar10._0_4_ < iVar5) { *(int4 *)pEVar7 = 3; *(int4 *)(pEVar7 + 0x110) = 3; } auVar9 = (auVar9 | auVar3) ^ auVar1; if (auVar9._4_4_ == iVar6 && auVar9._0_4_ < iVar5) { *(int4 *)(pEVar7 + 0x220) = 3; *(int4 *)(pEVar7 + 0x330) = 3; } lVar8 = lVar8 + 4; pEVar7 = pEVar7 + 0x440; } while (lVar8 != 8); this[0x748] = (ESRGAN)0x0; /* try { // try from 00157f7f to 00157f8a has its CatchHandler @ 00157fdc */ std::__cxx11::string::assign((char *)(this + 8)); pEVar7 = this + 0x98; for (lVar8 = 0; lVar8 < *(int *)(this + 0x6c); lVar8 = lVar8 + 1) { /* try { // try from 00157fa9 to 00157fb0 has its CatchHandler @ 00157fde */ EsrganBlock::EsrganBlock(local_130,*(int *)(this + 0x78),*(int *)(this + 0x7c)); memcpy(pEVar7,local_130,0x10c); pEVar7 = pEVar7 + 0x110; } return; }
34,018
my_strnxfrm_latin1_de
eloqsql/strings/ctype-latin1.c
static size_t my_strnxfrm_latin1_de(CHARSET_INFO *cs, uchar *dst, size_t dstlen, uint nweights, const uchar* src, size_t srclen, uint flags) { uchar *de= dst + dstlen; const uchar *se= src + srclen; uchar *d0= dst; for ( ; src < se && dst < de && nweights; src++, nweights--) { uchar chr= combo1map[*src]; *dst++= chr; if ((chr= combo2map[*src]) && dst < de && nweights > 1) { *dst++= chr; nweights--; } } return my_strxfrm_pad_desc_and_reverse(cs, d0, dst, de, nweights, flags, 0); }
O3
c
my_strnxfrm_latin1_de: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r9, %rax movl %ecx, %r10d movq %rdx, %rcx movl 0x10(%rbp), %r9d addq %rsi, %rcx testq %rax, %rax jle 0x37867 addq %r8, %rax leaq 0x16b40f(%rip), %r11 # 0x1a2c10 leaq 0x16b508(%rip), %rbx # 0x1a2d10 movq %rsi, %r14 cmpq %rcx, %r14 jae 0x3786c testl %r10d, %r10d je 0x3786c movzbl (%r8), %edx movb (%rdx,%r11), %r15b leaq 0x1(%r14), %rdx movb %r15b, (%r14) movzbl (%r8), %r15d movb (%r15,%rbx), %r15b testb %r15b, %r15b je 0x37857 cmpq %rcx, %rdx setb %r12b cmpl $0x2, %r10d setae %r13b andb %r12b, %r13b cmpb $0x1, %r13b jne 0x37857 movb %r15b, 0x1(%r14) addq $0x2, %r14 decl %r10d movq %r14, %rdx incq %r8 decl %r10d movq %rdx, %r14 cmpq %rax, %r8 jb 0x3780b jmp 0x3786f movq %rsi, %rdx jmp 0x3786f movq %r14, %rdx movl $0x0, (%rsp) movl %r10d, %r8d callq 0x395f8 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nopl (%rax)
my_strnxfrm_latin1_de: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rax, r9 mov r10d, ecx mov rcx, rdx mov r9d, [rbp+arg_0] add rcx, rsi test rax, rax jle short loc_37867 add rax, r8 lea r11, combo1map lea rbx, combo2map mov r14, rsi loc_3780B: cmp r14, rcx jnb short loc_3786C test r10d, r10d jz short loc_3786C movzx edx, byte ptr [r8] mov r15b, [rdx+r11] lea rdx, [r14+1] mov [r14], r15b movzx r15d, byte ptr [r8] mov r15b, [r15+rbx] test r15b, r15b jz short loc_37857 cmp rdx, rcx setb r12b cmp r10d, 2 setnb r13b and r13b, r12b cmp r13b, 1 jnz short loc_37857 mov [r14+1], r15b add r14, 2 dec r10d mov rdx, r14 loc_37857: inc r8 dec r10d mov r14, rdx cmp r8, rax jb short loc_3780B jmp short loc_3786F loc_37867: mov rdx, rsi jmp short loc_3786F loc_3786C: mov rdx, r14 loc_3786F: mov [rsp+30h+var_30], 0 mov r8d, r10d call my_strxfrm_pad_desc_and_reverse add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_strnxfrm_latin1_de( int a1, _BYTE *a2, long long a3, unsigned int a4, unsigned __int8 *a5, long long a6, int a7) { unsigned long long v8; // rcx unsigned __int8 *v9; // rax _BYTE *v10; // r14 _BYTE *v11; // rdx unsigned __int8 v12; // r15 v8 = (unsigned long long)&a2[a3]; if ( a6 <= 0 ) { LODWORD(v11) = (_DWORD)a2; } else { v9 = &a5[a6]; v10 = a2; while ( (unsigned long long)v10 < v8 && a4 ) { v11 = v10 + 1; *v10 = combo1map[*a5]; v12 = combo2map[*a5]; if ( v12 && (unsigned long long)v11 < v8 && a4 >= 2 ) { v10[1] = v12; --a4; v11 = v10 + 2; } ++a5; --a4; v10 = v11; if ( a5 >= v9 ) return my_strxfrm_pad_desc_and_reverse(a1, (_DWORD)a2, (_DWORD)v11, v8, a4, a7, 0); } LODWORD(v11) = (_DWORD)v10; } return my_strxfrm_pad_desc_and_reverse(a1, (_DWORD)a2, (_DWORD)v11, v8, a4, a7, 0); }
my_strnxfrm_latin1_de: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RAX,R9 MOV R10D,ECX MOV RCX,RDX MOV R9D,dword ptr [RBP + 0x10] ADD RCX,RSI TEST RAX,RAX JLE 0x00137867 ADD RAX,R8 LEA R11,[0x2a2c10] LEA RBX,[0x2a2d10] MOV R14,RSI LAB_0013780b: CMP R14,RCX JNC 0x0013786c TEST R10D,R10D JZ 0x0013786c MOVZX EDX,byte ptr [R8] MOV R15B,byte ptr [RDX + R11*0x1] LEA RDX,[R14 + 0x1] MOV byte ptr [R14],R15B MOVZX R15D,byte ptr [R8] MOV R15B,byte ptr [R15 + RBX*0x1] TEST R15B,R15B JZ 0x00137857 CMP RDX,RCX SETC R12B CMP R10D,0x2 SETNC R13B AND R13B,R12B CMP R13B,0x1 JNZ 0x00137857 MOV byte ptr [R14 + 0x1],R15B ADD R14,0x2 DEC R10D MOV RDX,R14 LAB_00137857: INC R8 DEC R10D MOV R14,RDX CMP R8,RAX JC 0x0013780b JMP 0x0013786f LAB_00137867: MOV RDX,RSI JMP 0x0013786f LAB_0013786c: MOV RDX,R14 LAB_0013786f: MOV dword ptr [RSP],0x0 MOV R8D,R10D CALL 0x001395f8 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void my_strnxfrm_latin1_de (int8 param_1,int1 *param_2,long param_3,uint param_4,byte *param_5, long param_6,int4 param_7) { ulong in_RAX; byte *pbVar1; int1 *puVar2; int1 *puVar3; int1 *puVar4; puVar2 = param_2 + param_3; puVar4 = param_2; if (0 < param_6) { pbVar1 = param_5 + param_6; puVar3 = param_2; do { puVar4 = puVar3; if ((puVar2 <= puVar3) || (param_4 == 0)) break; puVar4 = puVar3 + 1; *puVar3 = combo1map[*param_5]; if ((combo2map[*param_5] != '\0') && (1 < param_4 && puVar4 < puVar2)) { puVar3[1] = combo2map[*param_5]; puVar4 = puVar3 + 2; param_4 = param_4 - 1; } param_5 = param_5 + 1; param_4 = param_4 - 1; puVar3 = puVar4; } while (param_5 < pbVar1); } my_strxfrm_pad_desc_and_reverse (param_1,param_2,puVar4,puVar2,param_4,param_7,in_RAX & 0xffffffff00000000); return; }
34,019
my_strtoll10
eloqsql/strings/my_strtoll10.c
longlong my_strtoll10(const char *nptr, char **endptr, int *error) { const char *s, *end, *start, *n_end, *true_end; char *dummy; uchar c; unsigned long i, j, k; ulonglong li; int negative; ulong cutoff, cutoff2, cutoff3; s= nptr; /* If fixed length string */ if (endptr) { end= *endptr; /* Skip leading spaces */ for ( ; s < end && my_isspace(&my_charset_latin1, *s) ; ) s++; if (s == end) goto no_conv; } else { endptr= &dummy; /* Easier end test */ /* Skip leading spaces */ for ( ; ; s++) { if (!*s) goto no_conv; if (!my_isspace(&my_charset_latin1, *s)) break; } /* This number must be big to guard against a lot of pre-zeros */ end= s+65535; /* Can't be longer than this */ } /* Check for a sign. */ negative= 0; if (*s == '-') { *error= -1; /* Mark as negative number */ negative= 1; if (++s == end) goto no_conv; cutoff= MAX_NEGATIVE_NUMBER / LFACTOR2; cutoff2= (MAX_NEGATIVE_NUMBER % LFACTOR2) / 100; cutoff3= MAX_NEGATIVE_NUMBER % 100; } else { *error= 0; if (*s == '+') { if (++s == end) goto no_conv; } cutoff= ULONGLONG_MAX / LFACTOR2; cutoff2= ULONGLONG_MAX % LFACTOR2 / 100; cutoff3= ULONGLONG_MAX % 100; } /* Handle case where we have a lot of pre-zero */ if (*s == '0') { i= 0; do { if (++s == end) goto end_i; /* Return 0 */ } while (*s == '0'); n_end= s+ INIT_CNT; } else { /* Read first digit to check that it's a valid number */ if ((c= (*s-'0')) > 9) goto no_conv; i= c; n_end= ++s+ INIT_CNT-1; } /* Handle first 9 digits and store them in i */ if (n_end > end) n_end= end; for (; s != n_end ; s++) { if ((c= (*s-'0')) > 9) goto end_i; i= i*10+c; } if (s == end) goto end_i; /* Handle next 9 digits and store them in j */ j= 0; start= s; /* Used to know how much to shift i */ n_end= true_end= s + INIT_CNT; if (n_end > end) n_end= end; do { if ((c= (*s-'0')) > 9) goto end_i_and_j; j= j*10+c; } while (++s != n_end); if (s == end) { if (s != true_end) goto end_i_and_j; goto end3; } if ((c= (*s-'0')) > 9) goto end3; /* Handle the next 1 or 2 digits and store them in k */ k=c; if (++s == end || (c= (*s-'0')) > 9) goto end4; k= k*10+c; *endptr= (char*) ++s; /* number string should have ended here */ if (s != end && (c= (*s-'0')) <= 9) goto overflow; /* Check that we didn't get an overflow with the last digit */ if (i > cutoff || (i == cutoff && (j > cutoff2 || (j == cutoff2 && k > cutoff3)))) goto overflow; li=i*LFACTOR2+ (ulonglong) j*100 + k; return (longlong) li; overflow: /* *endptr is set here */ *error= MY_ERRNO_ERANGE; return negative ? LONGLONG_MIN : (longlong) ULONGLONG_MAX; end_i: *endptr= (char*) s; return (negative ? ((longlong) -(long) i) : (longlong) i); end_i_and_j: li= (ulonglong) i * lfactor[(uint) (s-start)] + j; *endptr= (char*) s; return (negative ? -((longlong) li) : (longlong) li); end3: li=(ulonglong) i*LFACTOR+ (ulonglong) j; *endptr= (char*) s; return (negative ? -((longlong) li) : (longlong) li); end4: li=(ulonglong) i*LFACTOR1+ (ulonglong) j * 10 + k; *endptr= (char*) s; if (negative) { if (li > MAX_NEGATIVE_NUMBER) goto overflow; return -((longlong) li); } return (longlong) li; no_conv: /* There was no number to convert. */ *error= MY_ERRNO_EDOM; *endptr= (char *) nptr; return 0; }
O3
c
my_strtoll10: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx testq %rsi, %rsi je 0x5954a movq (%rsi), %r8 movq %rdi, %rax cmpq %rdi, %r8 jbe 0x5953a leaq 0x2bc264(%rip), %rax # 0x315780 movq 0x40(%rax), %rcx movq %rdi, %rax movzbl (%rax), %r9d testb $0x8, 0x1(%rcx,%r9) je 0x5953a incq %rax cmpq %r8, %rax jne 0x59523 movq %r8, %rax cmpq %r8, %rax je 0x59628 movb (%rax), %cl movq %r8, %rbx jmp 0x59596 movb (%rdi), %cl leaq -0x30(%rbp), %rsi testb %cl, %cl je 0x59628 leaq 0x2bc221(%rip), %rax # 0x315780 movq 0x40(%rax), %r8 leaq 0xffff(%rdi), %rbx movq %rdi, %rax movzbl %cl, %r9d testb $0x8, 0x1(%r8,%r9) je 0x5958b movb 0x1(%rax), %cl incq %rax incq %rbx testb %cl, %cl jne 0x5956d jmp 0x59628 leaq 0xffff(%rax), %r8 leaq -0x30(%rbp), %rsi cmpb $0x2d, %cl jne 0x595bd movl $0xffffffff, (%rdx) # imm = 0xFFFFFFFF incq %rax cmpq %r8, %rax je 0x59628 movl $0x8, %r9d movl $0x15f797ae, %r10d # imm = 0x15F797AE movl $0x57f5ff8, %r11d # imm = 0x57F5FF8 jmp 0x595e6 movl $0x0, (%rdx) movb (%rax), %r14b cmpb $0x2b, %r14b jne 0x595eb incq %rax cmpq %r8, %rax je 0x59628 movl $0xf, %r9d movl $0x2bef2f5c, %r10d # imm = 0x2BEF2F5C movl $0xafebff0, %r11d # imm = 0xAFEBFF0 movb (%rax), %r14b jmp 0x595fd movl $0xf, %r9d movl $0x2bef2f5c, %r10d # imm = 0x2BEF2F5C movl $0xafebff0, %r11d # imm = 0xAFEBFF0 cmpb $0x30, %r14b jne 0x5961e xorl %edi, %edi incq %rax cmpq %r8, %rax je 0x5972d cmpb $0x30, (%rax) je 0x59605 leaq 0x9(%rax), %rbx xorl %edi, %edi jmp 0x59646 addb $-0x30, %r14b cmpb $0x9, %r14b jbe 0x59638 movl $0x21, (%rdx) movq %rdi, (%rsi) xorl %eax, %eax jmp 0x5973d movzbl %r14b, %edi movq %rax, %rbx incq %rax addq $0x9, %rbx cmpq %r8, %rbx cmovaq %r8, %rbx cmpq %rbx, %rax je 0x59674 movb (%rax), %r14b addb $-0x30, %r14b cmpb $0x9, %r14b ja 0x5972a leaq (%rdi,%rdi,4), %rdi movzbl %r14b, %r14d leaq (%r14,%rdi,2), %rdi incq %rax jmp 0x5964d cmpq %r8, %rax je 0x5972a leaq 0x9(%rax), %r12 cmpq %r8, %r12 cmovaq %r8, %r12 leaq 0x1(%rax), %r14 movl $0x9, %r13d xorl %ebx, %ebx movb -0x1(%r14), %r15b addb $-0x30, %r15b cmpb $0x9, %r15b ja 0x59748 leaq (%rbx,%rbx,4), %rbx movzbl %r15b, %r15d leaq (%r15,%rbx,2), %rbx leaq 0x1(%r14), %r15 decq %r13 cmpq %r12, %r14 movq %r15, %r14 jne 0x59694 leaq -0x1(%r15), %r14 cmpq %r8, %r12 je 0x5976d movb (%r14), %al addb $-0x30, %al cmpb $0x9, %al ja 0x59772 movzbl %al, %r14d cmpq %r8, %r15 je 0x596f1 movb (%r15), %al addb $-0x30, %al cmpb $0x9, %al jbe 0x5978e movabsq $0x2540be400, %rax # imm = 0x2540BE400 imulq %rax, %rdi leaq (%rbx,%rbx,4), %rax leaq (%rdi,%rax,2), %rax addq %r14, %rax movq %r15, (%rsi) cmpb $0x2d, %cl jne 0x5973d movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000 cmpq %rsi, %rax ja 0x597c9 negq %rax jmp 0x5973d movq %rax, %rbx movq %rdi, %rax negq %rax cmpb $0x2d, %cl movq %rbx, (%rsi) cmovneq %rdi, %rax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq decq %r14 movl %r14d, %edx subl %eax, %edx leaq 0x27f779(%rip), %rax # 0x2d8ed0 imulq (%rax,%rdx,8), %rdi addq %rbx, %rdi movq %rdi, %rax negq %rax cmpb $0x2d, %cl movq %r14, (%rsi) jmp 0x59739 testq %r13, %r13 jne 0x5974b imulq $0x3b9aca00, %rdi, %rax # imm = 0x3B9ACA00 addq %rax, %rbx movq %rbx, %rax negq %rax cmpb $0x2d, %cl movq %r14, (%rsi) cmovneq %rbx, %rax jmp 0x5973d leaq 0x1(%r15), %r12 movq %r12, (%rsi) cmpq %r8, %r12 je 0x597a8 movb 0x1(%r15), %sil addb $-0x30, %sil cmpb $0xa, %sil jb 0x597c9 cmpq %r11, %rdi ja 0x597c9 leaq (%r14,%r14,4), %rsi movzbl %al, %eax leaq (%rax,%rsi,2), %rsi cmpq %r11, %rdi jne 0x597e4 cmpq %r10, %rbx ja 0x597c9 jne 0x597e4 cmpl %r9d, %esi jbe 0x597e4 xorl %eax, %eax cmpb $0x2d, %cl setne %al movl $0x22, (%rdx) negq %rax btsq $0x3f, %rax jmp 0x5973d movabsq $0x174876e800, %rax # imm = 0x174876E800 imulq %rax, %rdi imulq $0x64, %rbx, %rax addq %rdi, %rax addq %rsi, %rax jmp 0x5973d nopl (%rax)
my_strtoll10: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx test rsi, rsi jz short loc_5954A mov r8, [rsi] mov rax, rdi cmp r8, rdi jbe short loc_5953A lea rax, my_charset_latin1 mov rcx, [rax+40h] mov rax, rdi loc_59523: movzx r9d, byte ptr [rax] test byte ptr [rcx+r9+1], 8 jz short loc_5953A inc rax cmp rax, r8 jnz short loc_59523 mov rax, r8 loc_5953A: cmp rax, r8 jz loc_59628 mov cl, [rax] mov rbx, r8 jmp short loc_59596 loc_5954A: mov cl, [rdi] lea rsi, [rbp+var_30] test cl, cl jz loc_59628 lea rax, my_charset_latin1 mov r8, [rax+40h] lea rbx, [rdi+0FFFFh] mov rax, rdi loc_5956D: movzx r9d, cl test byte ptr [r8+r9+1], 8 jz short loc_5958B mov cl, [rax+1] inc rax inc rbx test cl, cl jnz short loc_5956D jmp loc_59628 loc_5958B: lea r8, [rax+0FFFFh] lea rsi, [rbp+var_30] loc_59596: cmp cl, 2Dh ; '-' jnz short loc_595BD mov dword ptr [rdx], 0FFFFFFFFh inc rax cmp rax, r8 jz short loc_59628 mov r9d, 8 mov r10d, 15F797AEh mov r11d, 57F5FF8h jmp short loc_595E6 loc_595BD: mov dword ptr [rdx], 0 mov r14b, [rax] cmp r14b, 2Bh ; '+' jnz short loc_595EB inc rax cmp rax, r8 jz short loc_59628 mov r9d, 0Fh mov r10d, 2BEF2F5Ch mov r11d, 0AFEBFF0h loc_595E6: mov r14b, [rax] jmp short loc_595FD loc_595EB: mov r9d, 0Fh mov r10d, 2BEF2F5Ch mov r11d, 0AFEBFF0h loc_595FD: cmp r14b, 30h ; '0' jnz short loc_5961E xor edi, edi loc_59605: inc rax cmp rax, r8 jz loc_5972D cmp byte ptr [rax], 30h ; '0' jz short loc_59605 lea rbx, [rax+9] xor edi, edi jmp short loc_59646 loc_5961E: add r14b, 0D0h cmp r14b, 9 jbe short loc_59638 loc_59628: mov dword ptr [rdx], 21h ; '!' mov [rsi], rdi xor eax, eax jmp loc_5973D loc_59638: movzx edi, r14b mov rbx, rax inc rax add rbx, 9 loc_59646: cmp rbx, r8 cmova rbx, r8 loc_5964D: cmp rax, rbx jz short loc_59674 mov r14b, [rax] add r14b, 0D0h cmp r14b, 9 ja loc_5972A lea rdi, [rdi+rdi*4] movzx r14d, r14b lea rdi, [r14+rdi*2] inc rax jmp short loc_5964D loc_59674: cmp rax, r8 jz loc_5972A lea r12, [rax+9] cmp r12, r8 cmova r12, r8 lea r14, [rax+1] mov r13d, 9 xor ebx, ebx loc_59694: mov r15b, [r14-1] add r15b, 0D0h cmp r15b, 9 ja loc_59748 lea rbx, [rbx+rbx*4] movzx r15d, r15b lea rbx, [r15+rbx*2] lea r15, [r14+1] dec r13 cmp r14, r12 mov r14, r15 jnz short loc_59694 lea r14, [r15-1] cmp r12, r8 jz loc_5976D mov al, [r14] add al, 0D0h cmp al, 9 ja loc_59772 movzx r14d, al cmp r15, r8 jz short loc_596F1 mov al, [r15] add al, 0D0h cmp al, 9 jbe loc_5978E loc_596F1: mov rax, 2540BE400h imul rdi, rax lea rax, [rbx+rbx*4] lea rax, [rdi+rax*2] add rax, r14 mov [rsi], r15 cmp cl, 2Dh ; '-' jnz short loc_5973D mov rsi, 8000000000000000h cmp rax, rsi ja loc_597C9 neg rax jmp short loc_5973D loc_5972A: mov rbx, rax loc_5972D: mov rax, rdi neg rax cmp cl, 2Dh ; '-' mov [rsi], rbx loc_59739: cmovnz rax, rdi loc_5973D: pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_59748: dec r14 loc_5974B: mov edx, r14d sub edx, eax lea rax, lfactor_0 imul rdi, [rax+rdx*8] add rdi, rbx mov rax, rdi neg rax cmp cl, 2Dh ; '-' mov [rsi], r14 jmp short loc_59739 loc_5976D: test r13, r13 jnz short loc_5974B loc_59772: imul rax, rdi, 3B9ACA00h add rbx, rax mov rax, rbx neg rax cmp cl, 2Dh ; '-' mov [rsi], r14 cmovnz rax, rbx jmp short loc_5973D loc_5978E: lea r12, [r15+1] mov [rsi], r12 cmp r12, r8 jz short loc_597A8 mov sil, [r15+1] add sil, 0D0h cmp sil, 0Ah jb short loc_597C9 loc_597A8: cmp rdi, r11 ja short loc_597C9 lea rsi, [r14+r14*4] movzx eax, al lea rsi, [rax+rsi*2] cmp rdi, r11 jnz short loc_597E4 cmp rbx, r10 ja short loc_597C9 jnz short loc_597E4 cmp esi, r9d jbe short loc_597E4 loc_597C9: xor eax, eax cmp cl, 2Dh ; '-' setnz al mov dword ptr [rdx], 22h ; '"' neg rax bts rax, 3Fh ; '?' jmp loc_5973D loc_597E4: mov rax, 174876E800h imul rdi, rax imul rax, rbx, 64h ; 'd' add rax, rdi add rax, rsi jmp loc_5973D
unsigned long long my_strtoll10(unsigned __int8 *a1, unsigned long long *a2, _DWORD *a3) { unsigned long long v3; // r8 unsigned __int8 *v4; // rax unsigned __int8 v5; // cl _BYTE *v6; // rbx unsigned int v7; // r9d unsigned long long v8; // r10 unsigned long long v9; // r11 unsigned __int8 v10; // r14 unsigned long long v11; // rdi unsigned __int8 *v12; // rbx unsigned __int8 v13; // r14 unsigned long long result; // rax unsigned __int8 *v15; // rbx unsigned __int8 v16; // r14 unsigned __int8 *v17; // r12 unsigned __int8 *v18; // r14 long long v19; // r13 unsigned long long v20; // rbx unsigned __int8 v21; // r15 _BYTE *v22; // r15 unsigned __int8 *v23; // r14 unsigned __int8 v24; // al long long v25; // r14 unsigned __int8 v26; // al bool v27; // zf unsigned long long v28; // rbx long long v29; // rsi _BYTE v30[48]; // [rsp+0h] [rbp-30h] BYREF if ( a2 ) { v3 = *a2; v4 = a1; if ( *a2 > (unsigned long long)a1 ) { v4 = a1; while ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + *v4 + 1LL) & 8) != 0 ) { if ( ++v4 == (unsigned __int8 *)v3 ) { v4 = (unsigned __int8 *)*a2; break; } } } if ( v4 == (unsigned __int8 *)v3 ) goto LABEL_29; v5 = *v4; v6 = (_BYTE *)*a2; } else { v5 = *a1; a2 = (unsigned long long *)v30; if ( !*a1 ) goto LABEL_29; v6 = a1 + 0xFFFF; v4 = a1; while ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + v5 + 1LL) & 8) != 0 ) { v5 = *++v4; ++v6; if ( !v5 ) goto LABEL_29; } v3 = (unsigned long long)(v4 + 0xFFFF); a2 = (unsigned long long *)v30; } if ( v5 == 45 ) { *a3 = -1; if ( ++v4 == (unsigned __int8 *)v3 ) goto LABEL_29; v7 = 8; v8 = 368547758LL; v9 = 92233720LL; goto LABEL_21; } *a3 = 0; v10 = *v4; if ( *v4 == 43 ) { if ( ++v4 == (unsigned __int8 *)v3 ) goto LABEL_29; v7 = 15; v8 = 737095516LL; v9 = 184467440LL; LABEL_21: v10 = *v4; goto LABEL_23; } v7 = 15; v8 = 737095516LL; v9 = 184467440LL; LABEL_23: if ( v10 != 48 ) { v13 = v10 - 48; if ( v13 <= 9u ) { v11 = v13; v15 = v4++; v12 = v15 + 9; goto LABEL_31; } LABEL_29: *a3 = 33; *a2 = (unsigned long long)a1; return 0LL; } v11 = 0LL; do { if ( ++v4 == (unsigned __int8 *)v3 ) goto LABEL_50; } while ( *v4 == 48 ); v12 = v4 + 9; v11 = 0LL; LABEL_31: if ( (unsigned long long)v12 > v3 ) v12 = (unsigned __int8 *)v3; while ( v4 != v12 ) { v16 = *v4 - 48; if ( v16 > 9u ) goto LABEL_49; v11 = v16 + 10 * v11; ++v4; } if ( v4 == (unsigned __int8 *)v3 ) { LABEL_49: v6 = v4; LABEL_50: result = -(long long)v11; v27 = v5 == 45; *a2 = (unsigned long long)v6; LABEL_51: if ( !v27 ) return v11; return result; } v17 = v4 + 9; if ( (unsigned long long)(v4 + 9) > v3 ) v17 = (unsigned __int8 *)v3; v18 = v4 + 1; v19 = 9LL; v20 = 0LL; do { v21 = *(v18 - 1) - 48; if ( v21 > 9u ) { v23 = v18 - 1; goto LABEL_55; } v20 = v21 + 10 * v20; v22 = v18 + 1; --v19; v27 = v18++ == v17; } while ( !v27 ); v23 = v22 - 1; if ( v17 == (unsigned __int8 *)v3 ) { if ( !v19 ) { LABEL_57: v28 = 1000000000 * v11 + v20; result = -(long long)v28; *a2 = (unsigned long long)v23; if ( v5 != 45 ) return v28; return result; } LABEL_55: v11 = v20 + lfactor_0[(int)v23 - (int)v4] * v11; result = -(long long)v11; v27 = v5 == 45; *a2 = (unsigned long long)v23; goto LABEL_51; } v24 = *v23 - 48; if ( v24 > 9u ) goto LABEL_57; v25 = v24; if ( v22 == (_BYTE *)v3 || (v26 = *v22 - 48, v26 > 9u) ) { result = v25 + 10000000000LL * v11 + 10 * v20; *a2 = (unsigned long long)v22; if ( v5 != 45 ) return result; if ( result <= 0x8000000000000000LL ) return -(long long)result; LABEL_67: *a3 = 34; return -(long long)(v5 != 45) | 0x8000000000000000LL; } else { *a2 = (unsigned long long)(v22 + 1); if ( v22 + 1 != (_BYTE *)v3 && (unsigned __int8)(v22[1] - 48) < 0xAu ) goto LABEL_67; if ( v11 > v9 ) goto LABEL_67; v29 = v26 + 10 * v25; if ( v11 == v9 && (v20 > v8 || v20 == v8 && (unsigned int)v29 > v7) ) goto LABEL_67; return v29 + 100000000000LL * v11 + 100 * v20; } }
my_strtoll10: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX TEST RSI,RSI JZ 0x0015954a MOV R8,qword ptr [RSI] MOV RAX,RDI CMP R8,RDI JBE 0x0015953a LEA RAX,[0x415780] MOV RCX,qword ptr [RAX + 0x40] MOV RAX,RDI LAB_00159523: MOVZX R9D,byte ptr [RAX] TEST byte ptr [RCX + R9*0x1 + 0x1],0x8 JZ 0x0015953a INC RAX CMP RAX,R8 JNZ 0x00159523 MOV RAX,R8 LAB_0015953a: CMP RAX,R8 JZ 0x00159628 MOV CL,byte ptr [RAX] MOV RBX,R8 JMP 0x00159596 LAB_0015954a: MOV CL,byte ptr [RDI] LEA RSI,[RBP + -0x30] TEST CL,CL JZ 0x00159628 LEA RAX,[0x415780] MOV R8,qword ptr [RAX + 0x40] LEA RBX,[RDI + 0xffff] MOV RAX,RDI LAB_0015956d: MOVZX R9D,CL TEST byte ptr [R8 + R9*0x1 + 0x1],0x8 JZ 0x0015958b MOV CL,byte ptr [RAX + 0x1] INC RAX INC RBX TEST CL,CL JNZ 0x0015956d JMP 0x00159628 LAB_0015958b: LEA R8,[RAX + 0xffff] LEA RSI,[RBP + -0x30] LAB_00159596: CMP CL,0x2d JNZ 0x001595bd MOV dword ptr [RDX],0xffffffff INC RAX CMP RAX,R8 JZ 0x00159628 MOV R9D,0x8 MOV R10D,0x15f797ae MOV R11D,0x57f5ff8 JMP 0x001595e6 LAB_001595bd: MOV dword ptr [RDX],0x0 MOV R14B,byte ptr [RAX] CMP R14B,0x2b JNZ 0x001595eb INC RAX CMP RAX,R8 JZ 0x00159628 MOV R9D,0xf MOV R10D,0x2bef2f5c MOV R11D,0xafebff0 LAB_001595e6: MOV R14B,byte ptr [RAX] JMP 0x001595fd LAB_001595eb: MOV R9D,0xf MOV R10D,0x2bef2f5c MOV R11D,0xafebff0 LAB_001595fd: CMP R14B,0x30 JNZ 0x0015961e XOR EDI,EDI LAB_00159605: INC RAX CMP RAX,R8 JZ 0x0015972d CMP byte ptr [RAX],0x30 JZ 0x00159605 LEA RBX,[RAX + 0x9] XOR EDI,EDI JMP 0x00159646 LAB_0015961e: ADD R14B,0xd0 CMP R14B,0x9 JBE 0x00159638 LAB_00159628: MOV dword ptr [RDX],0x21 MOV qword ptr [RSI],RDI XOR EAX,EAX JMP 0x0015973d LAB_00159638: MOVZX EDI,R14B MOV RBX,RAX INC RAX ADD RBX,0x9 LAB_00159646: CMP RBX,R8 CMOVA RBX,R8 LAB_0015964d: CMP RAX,RBX JZ 0x00159674 MOV R14B,byte ptr [RAX] ADD R14B,0xd0 CMP R14B,0x9 JA 0x0015972a LEA RDI,[RDI + RDI*0x4] MOVZX R14D,R14B LEA RDI,[R14 + RDI*0x2] INC RAX JMP 0x0015964d LAB_00159674: CMP RAX,R8 JZ 0x0015972a LEA R12,[RAX + 0x9] CMP R12,R8 CMOVA R12,R8 LEA R14,[RAX + 0x1] MOV R13D,0x9 XOR EBX,EBX LAB_00159694: MOV R15B,byte ptr [R14 + -0x1] ADD R15B,0xd0 CMP R15B,0x9 JA 0x00159748 LEA RBX,[RBX + RBX*0x4] MOVZX R15D,R15B LEA RBX,[R15 + RBX*0x2] LEA R15,[R14 + 0x1] DEC R13 CMP R14,R12 MOV R14,R15 JNZ 0x00159694 LEA R14,[R15 + -0x1] CMP R12,R8 JZ 0x0015976d MOV AL,byte ptr [R14] ADD AL,0xd0 CMP AL,0x9 JA 0x00159772 MOVZX R14D,AL CMP R15,R8 JZ 0x001596f1 MOV AL,byte ptr [R15] ADD AL,0xd0 CMP AL,0x9 JBE 0x0015978e LAB_001596f1: MOV RAX,0x2540be400 IMUL RDI,RAX LEA RAX,[RBX + RBX*0x4] LEA RAX,[RDI + RAX*0x2] ADD RAX,R14 MOV qword ptr [RSI],R15 CMP CL,0x2d JNZ 0x0015973d MOV RSI,-0x8000000000000000 CMP RAX,RSI JA 0x001597c9 NEG RAX JMP 0x0015973d LAB_0015972a: MOV RBX,RAX LAB_0015972d: MOV RAX,RDI NEG RAX CMP CL,0x2d MOV qword ptr [RSI],RBX LAB_00159739: CMOVNZ RAX,RDI LAB_0015973d: POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00159748: DEC R14 LAB_0015974b: MOV EDX,R14D SUB EDX,EAX LEA RAX,[0x3d8ed0] IMUL RDI,qword ptr [RAX + RDX*0x8] ADD RDI,RBX MOV RAX,RDI NEG RAX CMP CL,0x2d MOV qword ptr [RSI],R14 JMP 0x00159739 LAB_0015976d: TEST R13,R13 JNZ 0x0015974b LAB_00159772: IMUL RAX,RDI,0x3b9aca00 ADD RBX,RAX MOV RAX,RBX NEG RAX CMP CL,0x2d MOV qword ptr [RSI],R14 CMOVNZ RAX,RBX JMP 0x0015973d LAB_0015978e: LEA R12,[R15 + 0x1] MOV qword ptr [RSI],R12 CMP R12,R8 JZ 0x001597a8 MOV SIL,byte ptr [R15 + 0x1] ADD SIL,0xd0 CMP SIL,0xa JC 0x001597c9 LAB_001597a8: CMP RDI,R11 JA 0x001597c9 LEA RSI,[R14 + R14*0x4] MOVZX EAX,AL LEA RSI,[RAX + RSI*0x2] CMP RDI,R11 JNZ 0x001597e4 CMP RBX,R10 JA 0x001597c9 JNZ 0x001597e4 CMP ESI,R9D JBE 0x001597e4 LAB_001597c9: XOR EAX,EAX CMP CL,0x2d SETNZ AL MOV dword ptr [RDX],0x22 NEG RAX BTS RAX,0x3f JMP 0x0015973d LAB_001597e4: MOV RAX,0x174876e800 IMUL RDI,RAX IMUL RAX,RBX,0x64 ADD RAX,RDI ADD RAX,RSI JMP 0x0015973d
ulong my_strtoll10(byte *param_1,ulong *param_2,int4 *param_3) { byte bVar1; byte bVar2; byte *pbVar3; byte *pbVar4; byte *pbVar5; byte bVar6; byte *pbVar7; ulong uVar8; ulong uVar9; uint uVar10; ulong uVar11; ulong uVar12; long lVar13; byte *pbVar14; ulong local_38; pbVar4 = param_1; if (param_2 == (ulong *)0x0) { bVar6 = *param_1; param_2 = &local_38; if (bVar6 != 0) { pbVar7 = param_1 + 0xffff; do { if ((PTR_ctype_latin1_004157c0[(ulong)bVar6 + 1] & 8) == 0) { pbVar3 = pbVar4 + 0xffff; param_2 = &local_38; goto LAB_00159596; } bVar6 = pbVar4[1]; pbVar4 = pbVar4 + 1; pbVar7 = pbVar7 + 1; } while (bVar6 != 0); } goto LAB_00159628; } pbVar7 = (byte *)*param_2; pbVar3 = param_1; if (param_1 < pbVar7) { do { pbVar4 = pbVar3; if ((PTR_ctype_latin1_004157c0[(ulong)*pbVar3 + 1] & 8) == 0) break; pbVar3 = pbVar3 + 1; pbVar4 = pbVar7; } while (pbVar3 != pbVar7); } if (pbVar4 == pbVar7) goto LAB_00159628; bVar6 = *pbVar4; pbVar3 = pbVar7; LAB_00159596: if (bVar6 == 0x2d) { *param_3 = 0xffffffff; if (pbVar4 + 1 == pbVar3) goto LAB_00159628; uVar10 = 8; uVar11 = 0x15f797ae; uVar12 = 0x57f5ff8; LAB_001595e6: pbVar4 = pbVar4 + 1; bVar2 = *pbVar4; } else { *param_3 = 0; bVar2 = *pbVar4; if (bVar2 == 0x2b) { if (pbVar4 + 1 == pbVar3) goto LAB_00159628; uVar10 = 0xf; uVar11 = 0x2bef2f5c; uVar12 = 0xafebff0; goto LAB_001595e6; } uVar10 = 0xf; uVar11 = 0x2bef2f5c; uVar12 = 0xafebff0; } if (bVar2 == 0x30) { uVar9 = 0; do { pbVar14 = pbVar4; pbVar5 = pbVar14 + 1; if (pbVar5 == pbVar3) goto LAB_0015972d; pbVar4 = pbVar5; } while (*pbVar5 == 0x30); pbVar14 = pbVar14 + 10; uVar9 = 0; } else { if (9 < (byte)(bVar2 - 0x30)) { LAB_00159628: *param_3 = 0x21; *param_2 = (ulong)param_1; return 0; } uVar9 = (ulong)(byte)(bVar2 - 0x30); pbVar5 = pbVar4 + 1; pbVar14 = pbVar4 + 9; } if (pbVar3 < pbVar14) { pbVar14 = pbVar3; } for (; pbVar7 = pbVar5, pbVar5 != pbVar14; pbVar5 = pbVar5 + 1) { if (9 < (byte)(*pbVar5 - 0x30)) goto LAB_0015972d; uVar9 = (ulong)(byte)(*pbVar5 - 0x30) + uVar9 * 10; } if (pbVar5 != pbVar3) { pbVar4 = pbVar5 + 9; if (pbVar3 < pbVar5 + 9) { pbVar4 = pbVar3; } lVar13 = 9; uVar8 = 0; pbVar7 = pbVar5 + 1; do { pbVar14 = pbVar7; if (9 < (byte)(pbVar14[-1] - 0x30)) { pbVar14 = pbVar14 + -1; goto LAB_0015974b; } uVar8 = (ulong)(byte)(pbVar14[-1] - 0x30) + uVar8 * 10; pbVar7 = pbVar14 + 1; lVar13 = lVar13 + -1; } while (pbVar14 != pbVar4); if (pbVar4 == pbVar3) { if (lVar13 != 0) { LAB_0015974b: uVar9 = uVar9 * (&lfactor)[(uint)((int)pbVar14 - (int)pbVar5)] + uVar8; *param_2 = (ulong)pbVar14; goto LAB_00159739; } } else { bVar2 = *pbVar14 - 0x30; if (bVar2 < 10) { if ((pbVar7 == pbVar3) || (bVar1 = *pbVar7, 9 < (byte)(bVar1 - 0x30))) { uVar11 = uVar9 * 10000000000 + uVar8 * 10 + (ulong)bVar2; *param_2 = (ulong)pbVar7; if (bVar6 != 0x2d) { return uVar11; } if (uVar11 < 0x8000000000000001) { return -uVar11; } } else { *param_2 = (ulong)(pbVar14 + 2); if ((((pbVar14 + 2 == pbVar3) || (9 < (byte)(pbVar14[2] - 0x30))) && (uVar9 <= uVar12)) && ((lVar13 = (ulong)(byte)(bVar1 - 0x30) + (ulong)bVar2 * 10, uVar9 != uVar12 || ((uVar8 <= uVar11 && ((uVar8 != uVar11 || ((uint)lVar13 <= uVar10)))))))) { return uVar8 * 100 + uVar9 * 100000000000 + lVar13; } } *param_3 = 0x22; return -(ulong)(bVar6 != 0x2d) | 0x8000000000000000; } } uVar8 = uVar8 + uVar9 * 1000000000; *param_2 = (ulong)pbVar14; if (bVar6 == 0x2d) { return -uVar8; } return uVar8; } LAB_0015972d: *param_2 = (ulong)pbVar7; LAB_00159739: if (bVar6 == 0x2d) { return -uVar9; } return uVar9; }
34,020
partition_int
davidesantangelo[P]vsort/vsort.c
static int partition_int(int arr[], int low, int high) { int mid = low + (high - low) / 2; // Sort low, mid, high to find median if (arr[low] > arr[mid]) swap_int(&arr[low], &arr[mid]); if (arr[mid] > arr[high]) swap_int(&arr[mid], &arr[high]); if (arr[low] > arr[mid]) swap_int(&arr[low], &arr[mid]); // Ensure low <= mid // Median is now at mid, swap it to the end (high) to use as pivot swap_int(&arr[mid], &arr[high]); int pivot = arr[high]; int i = low - 1; // Index of smaller element for (int j = low; j < high; j++) { if (VSORT_LIKELY(arr[j] <= pivot)) { i++; if (i != j) swap_int(&arr[i], &arr[j]); // Avoid swap if i==j } } swap_int(&arr[i + 1], &arr[high]); // Place pivot in correct spot return i + 1; // Return pivot index }
O0
c
partition_int: subq $0x28, %rsp movq %rdi, 0x20(%rsp) movl %esi, 0x1c(%rsp) movl %edx, 0x18(%rsp) movl 0x1c(%rsp), %eax movl %eax, 0x4(%rsp) movl 0x18(%rsp), %eax subl 0x1c(%rsp), %eax movl $0x2, %ecx cltd idivl %ecx movl %eax, %ecx movl 0x4(%rsp), %eax addl %ecx, %eax movl %eax, 0x14(%rsp) movq 0x20(%rsp), %rax movslq 0x1c(%rsp), %rcx movl (%rax,%rcx,4), %eax movq 0x20(%rsp), %rcx movslq 0x14(%rsp), %rdx cmpl (%rcx,%rdx,4), %eax jle 0x3528 movq 0x20(%rsp), %rdi movslq 0x1c(%rsp), %rax shlq $0x2, %rax addq %rax, %rdi movq 0x20(%rsp), %rsi movslq 0x14(%rsp), %rax shlq $0x2, %rax addq %rax, %rsi callq 0x36b0 movq 0x20(%rsp), %rax movslq 0x14(%rsp), %rcx movl (%rax,%rcx,4), %eax movq 0x20(%rsp), %rcx movslq 0x18(%rsp), %rdx cmpl (%rcx,%rdx,4), %eax jle 0x356b movq 0x20(%rsp), %rdi movslq 0x14(%rsp), %rax shlq $0x2, %rax addq %rax, %rdi movq 0x20(%rsp), %rsi movslq 0x18(%rsp), %rax shlq $0x2, %rax addq %rax, %rsi callq 0x36b0 movq 0x20(%rsp), %rax movslq 0x1c(%rsp), %rcx movl (%rax,%rcx,4), %eax movq 0x20(%rsp), %rcx movslq 0x14(%rsp), %rdx cmpl (%rcx,%rdx,4), %eax jle 0x35ae movq 0x20(%rsp), %rdi movslq 0x1c(%rsp), %rax shlq $0x2, %rax addq %rax, %rdi movq 0x20(%rsp), %rsi movslq 0x14(%rsp), %rax shlq $0x2, %rax addq %rax, %rsi callq 0x36b0 movq 0x20(%rsp), %rdi movslq 0x14(%rsp), %rax shlq $0x2, %rax addq %rax, %rdi movq 0x20(%rsp), %rsi movslq 0x18(%rsp), %rax shlq $0x2, %rax addq %rax, %rsi callq 0x36b0 movq 0x20(%rsp), %rax movslq 0x18(%rsp), %rcx movl (%rax,%rcx,4), %eax movl %eax, 0x10(%rsp) movl 0x1c(%rsp), %eax subl $0x1, %eax movl %eax, 0xc(%rsp) movl 0x1c(%rsp), %eax movl %eax, 0x8(%rsp) movl 0x8(%rsp), %eax cmpl 0x18(%rsp), %eax jge 0x3675 movq 0x20(%rsp), %rax movslq 0x8(%rsp), %rcx movl (%rax,%rcx,4), %eax cmpl 0x10(%rsp), %eax setle %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x3666 movl 0xc(%rsp), %eax addl $0x1, %eax movl %eax, 0xc(%rsp) movl 0xc(%rsp), %eax cmpl 0x8(%rsp), %eax je 0x3664 movq 0x20(%rsp), %rdi movslq 0xc(%rsp), %rax shlq $0x2, %rax addq %rax, %rdi movq 0x20(%rsp), %rsi movslq 0x8(%rsp), %rax shlq $0x2, %rax addq %rax, %rsi callq 0x36b0 jmp 0x3666 jmp 0x3668 movl 0x8(%rsp), %eax addl $0x1, %eax movl %eax, 0x8(%rsp) jmp 0x35f9 movq 0x20(%rsp), %rdi movl 0xc(%rsp), %eax addl $0x1, %eax cltq shlq $0x2, %rax addq %rax, %rdi movq 0x20(%rsp), %rsi movslq 0x18(%rsp), %rax shlq $0x2, %rax addq %rax, %rsi callq 0x36b0 movl 0xc(%rsp), %eax addl $0x1, %eax addq $0x28, %rsp retq nopl (%rax)
partition_int: sub rsp, 28h mov [rsp+28h+var_8], rdi mov [rsp+28h+var_C], esi mov [rsp+28h+var_10], edx mov eax, [rsp+28h+var_C] mov [rsp+28h+var_24], eax mov eax, [rsp+28h+var_10] sub eax, [rsp+28h+var_C] mov ecx, 2 cdq idiv ecx mov ecx, eax mov eax, [rsp+28h+var_24] add eax, ecx mov [rsp+28h+var_14], eax mov rax, [rsp+28h+var_8] movsxd rcx, [rsp+28h+var_C] mov eax, [rax+rcx*4] mov rcx, [rsp+28h+var_8] movsxd rdx, [rsp+28h+var_14] cmp eax, [rcx+rdx*4] jle short loc_3528 mov rdi, [rsp+28h+var_8] movsxd rax, [rsp+28h+var_C] shl rax, 2 add rdi, rax mov rsi, [rsp+28h+var_8] movsxd rax, [rsp+28h+var_14] shl rax, 2 add rsi, rax call swap_int loc_3528: mov rax, [rsp+28h+var_8] movsxd rcx, [rsp+28h+var_14] mov eax, [rax+rcx*4] mov rcx, [rsp+28h+var_8] movsxd rdx, [rsp+28h+var_10] cmp eax, [rcx+rdx*4] jle short loc_356B mov rdi, [rsp+28h+var_8] movsxd rax, [rsp+28h+var_14] shl rax, 2 add rdi, rax mov rsi, [rsp+28h+var_8] movsxd rax, [rsp+28h+var_10] shl rax, 2 add rsi, rax call swap_int loc_356B: mov rax, [rsp+28h+var_8] movsxd rcx, [rsp+28h+var_C] mov eax, [rax+rcx*4] mov rcx, [rsp+28h+var_8] movsxd rdx, [rsp+28h+var_14] cmp eax, [rcx+rdx*4] jle short loc_35AE mov rdi, [rsp+28h+var_8] movsxd rax, [rsp+28h+var_C] shl rax, 2 add rdi, rax mov rsi, [rsp+28h+var_8] movsxd rax, [rsp+28h+var_14] shl rax, 2 add rsi, rax call swap_int loc_35AE: mov rdi, [rsp+28h+var_8] movsxd rax, [rsp+28h+var_14] shl rax, 2 add rdi, rax mov rsi, [rsp+28h+var_8] movsxd rax, [rsp+28h+var_10] shl rax, 2 add rsi, rax call swap_int mov rax, [rsp+28h+var_8] movsxd rcx, [rsp+28h+var_10] mov eax, [rax+rcx*4] mov [rsp+28h+var_18], eax mov eax, [rsp+28h+var_C] sub eax, 1 mov [rsp+28h+var_1C], eax mov eax, [rsp+28h+var_C] mov [rsp+28h+var_20], eax loc_35F9: mov eax, [rsp+28h+var_20] cmp eax, [rsp+28h+var_10] jge short loc_3675 mov rax, [rsp+28h+var_8] movsxd rcx, [rsp+28h+var_20] mov eax, [rax+rcx*4] cmp eax, [rsp+28h+var_18] setle al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_3666 mov eax, [rsp+28h+var_1C] add eax, 1 mov [rsp+28h+var_1C], eax mov eax, [rsp+28h+var_1C] cmp eax, [rsp+28h+var_20] jz short loc_3664 mov rdi, [rsp+28h+var_8] movsxd rax, [rsp+28h+var_1C] shl rax, 2 add rdi, rax mov rsi, [rsp+28h+var_8] movsxd rax, [rsp+28h+var_20] shl rax, 2 add rsi, rax call swap_int loc_3664: jmp short $+2 loc_3666: jmp short $+2 loc_3668: mov eax, [rsp+28h+var_20] add eax, 1 mov [rsp+28h+var_20], eax jmp short loc_35F9 loc_3675: mov rdi, [rsp+28h+var_8] mov eax, [rsp+28h+var_1C] add eax, 1 cdqe shl rax, 2 add rdi, rax mov rsi, [rsp+28h+var_8] movsxd rax, [rsp+28h+var_10] shl rax, 2 add rsi, rax call swap_int mov eax, [rsp+28h+var_1C] add eax, 1 add rsp, 28h retn
long long partition_int(long long a1, int a2, int a3) { int i; // [rsp+8h] [rbp-20h] int v5; // [rsp+Ch] [rbp-1Ch] int v6; // [rsp+10h] [rbp-18h] int v7; // [rsp+14h] [rbp-14h] v7 = (a3 - a2) / 2 + a2; if ( *(_DWORD *)(a1 + 4LL * a2) > *(_DWORD *)(a1 + 4LL * v7) ) swap_int(4LL * a2 + a1, 4LL * v7 + a1); if ( *(_DWORD *)(a1 + 4LL * v7) > *(_DWORD *)(a1 + 4LL * a3) ) swap_int(4LL * v7 + a1, 4LL * a3 + a1); if ( *(_DWORD *)(a1 + 4LL * a2) > *(_DWORD *)(a1 + 4LL * v7) ) swap_int(4LL * a2 + a1, 4LL * v7 + a1); swap_int(4LL * v7 + a1, 4LL * a3 + a1); v6 = *(_DWORD *)(a1 + 4LL * a3); v5 = a2 - 1; for ( i = a2; i < a3; ++i ) { if ( *(_DWORD *)(a1 + 4LL * i) <= v6 && ++v5 != i ) swap_int(4LL * v5 + a1, 4LL * i + a1); } swap_int(4LL * (v5 + 1) + a1, 4LL * a3 + a1); return (unsigned int)(v5 + 1); }
partition_int: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV dword ptr [RSP + 0x1c],ESI MOV dword ptr [RSP + 0x18],EDX MOV EAX,dword ptr [RSP + 0x1c] MOV dword ptr [RSP + 0x4],EAX MOV EAX,dword ptr [RSP + 0x18] SUB EAX,dword ptr [RSP + 0x1c] MOV ECX,0x2 CDQ IDIV ECX MOV ECX,EAX MOV EAX,dword ptr [RSP + 0x4] ADD EAX,ECX MOV dword ptr [RSP + 0x14],EAX MOV RAX,qword ptr [RSP + 0x20] MOVSXD RCX,dword ptr [RSP + 0x1c] MOV EAX,dword ptr [RAX + RCX*0x4] MOV RCX,qword ptr [RSP + 0x20] MOVSXD RDX,dword ptr [RSP + 0x14] CMP EAX,dword ptr [RCX + RDX*0x4] JLE 0x00103528 MOV RDI,qword ptr [RSP + 0x20] MOVSXD RAX,dword ptr [RSP + 0x1c] SHL RAX,0x2 ADD RDI,RAX MOV RSI,qword ptr [RSP + 0x20] MOVSXD RAX,dword ptr [RSP + 0x14] SHL RAX,0x2 ADD RSI,RAX CALL 0x001036b0 LAB_00103528: MOV RAX,qword ptr [RSP + 0x20] MOVSXD RCX,dword ptr [RSP + 0x14] MOV EAX,dword ptr [RAX + RCX*0x4] MOV RCX,qword ptr [RSP + 0x20] MOVSXD RDX,dword ptr [RSP + 0x18] CMP EAX,dword ptr [RCX + RDX*0x4] JLE 0x0010356b MOV RDI,qword ptr [RSP + 0x20] MOVSXD RAX,dword ptr [RSP + 0x14] SHL RAX,0x2 ADD RDI,RAX MOV RSI,qword ptr [RSP + 0x20] MOVSXD RAX,dword ptr [RSP + 0x18] SHL RAX,0x2 ADD RSI,RAX CALL 0x001036b0 LAB_0010356b: MOV RAX,qword ptr [RSP + 0x20] MOVSXD RCX,dword ptr [RSP + 0x1c] MOV EAX,dword ptr [RAX + RCX*0x4] MOV RCX,qword ptr [RSP + 0x20] MOVSXD RDX,dword ptr [RSP + 0x14] CMP EAX,dword ptr [RCX + RDX*0x4] JLE 0x001035ae MOV RDI,qword ptr [RSP + 0x20] MOVSXD RAX,dword ptr [RSP + 0x1c] SHL RAX,0x2 ADD RDI,RAX MOV RSI,qword ptr [RSP + 0x20] MOVSXD RAX,dword ptr [RSP + 0x14] SHL RAX,0x2 ADD RSI,RAX CALL 0x001036b0 LAB_001035ae: MOV RDI,qword ptr [RSP + 0x20] MOVSXD RAX,dword ptr [RSP + 0x14] SHL RAX,0x2 ADD RDI,RAX MOV RSI,qword ptr [RSP + 0x20] MOVSXD RAX,dword ptr [RSP + 0x18] SHL RAX,0x2 ADD RSI,RAX CALL 0x001036b0 MOV RAX,qword ptr [RSP + 0x20] MOVSXD RCX,dword ptr [RSP + 0x18] MOV EAX,dword ptr [RAX + RCX*0x4] MOV dword ptr [RSP + 0x10],EAX MOV EAX,dword ptr [RSP + 0x1c] SUB EAX,0x1 MOV dword ptr [RSP + 0xc],EAX MOV EAX,dword ptr [RSP + 0x1c] MOV dword ptr [RSP + 0x8],EAX LAB_001035f9: MOV EAX,dword ptr [RSP + 0x8] CMP EAX,dword ptr [RSP + 0x18] JGE 0x00103675 MOV RAX,qword ptr [RSP + 0x20] MOVSXD RCX,dword ptr [RSP + 0x8] MOV EAX,dword ptr [RAX + RCX*0x4] CMP EAX,dword ptr [RSP + 0x10] SETLE AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00103666 MOV EAX,dword ptr [RSP + 0xc] ADD EAX,0x1 MOV dword ptr [RSP + 0xc],EAX MOV EAX,dword ptr [RSP + 0xc] CMP EAX,dword ptr [RSP + 0x8] JZ 0x00103664 MOV RDI,qword ptr [RSP + 0x20] MOVSXD RAX,dword ptr [RSP + 0xc] SHL RAX,0x2 ADD RDI,RAX MOV RSI,qword ptr [RSP + 0x20] MOVSXD RAX,dword ptr [RSP + 0x8] SHL RAX,0x2 ADD RSI,RAX CALL 0x001036b0 LAB_00103664: JMP 0x00103666 LAB_00103666: JMP 0x00103668 LAB_00103668: MOV EAX,dword ptr [RSP + 0x8] ADD EAX,0x1 MOV dword ptr [RSP + 0x8],EAX JMP 0x001035f9 LAB_00103675: MOV RDI,qword ptr [RSP + 0x20] MOV EAX,dword ptr [RSP + 0xc] ADD EAX,0x1 CDQE SHL RAX,0x2 ADD RDI,RAX MOV RSI,qword ptr [RSP + 0x20] MOVSXD RAX,dword ptr [RSP + 0x18] SHL RAX,0x2 ADD RSI,RAX CALL 0x001036b0 MOV EAX,dword ptr [RSP + 0xc] ADD EAX,0x1 ADD RSP,0x28 RET
int partition_int(long param_1,int param_2,int param_3) { int iVar1; int local_20; int local_1c; iVar1 = param_2 + (param_3 - param_2) / 2; if (*(int *)(param_1 + (long)iVar1 * 4) < *(int *)(param_1 + (long)param_2 * 4)) { swap_int(param_1 + (long)param_2 * 4,param_1 + (long)iVar1 * 4); } if (*(int *)(param_1 + (long)param_3 * 4) < *(int *)(param_1 + (long)iVar1 * 4)) { swap_int(param_1 + (long)iVar1 * 4,param_1 + (long)param_3 * 4); } if (*(int *)(param_1 + (long)iVar1 * 4) < *(int *)(param_1 + (long)param_2 * 4)) { swap_int(param_1 + (long)param_2 * 4,param_1 + (long)iVar1 * 4); } swap_int(param_1 + (long)iVar1 * 4,param_1 + (long)param_3 * 4); iVar1 = *(int *)(param_1 + (long)param_3 * 4); local_1c = param_2 + -1; for (local_20 = param_2; local_20 < param_3; local_20 = local_20 + 1) { if ((*(int *)(param_1 + (long)local_20 * 4) <= iVar1) && (local_1c = local_1c + 1, local_1c != local_20)) { swap_int(param_1 + (long)local_1c * 4,param_1 + (long)local_20 * 4); } } swap_int(param_1 + (long)(local_1c + 1) * 4,param_1 + (long)param_3 * 4); return local_1c + 1; }
34,021
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; }
O3
c
my_collation_get_by_name: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x218, %rsp # imm = 0x218 movq %rdx, %r14 movq %rsi, %rbx movq %rdi, %r15 movq %fs:0x28, %rax movq %rax, -0x20(%rbp) leaq 0x3471fb(%rip), %rdi # 0x3763f0 leaq -0x7e1(%rip), %rsi # 0x2ea1b callq 0x24290 movq %rbx, %rdi movq %r14, %rsi callq 0x2e96f movb $0x0, (%r15) leaq -0xfc9(%rip), %rcx # 0x2e24e movq %rcx, 0x80(%r15) leaq -0xfc8(%rip), %rcx # 0x2e25d movq %rcx, 0x88(%r15) leaq -0xfbb(%rip), %rcx # 0x2e278 movq %rcx, 0x90(%r15) leaq -0x34c3(%rip), %rcx # 0x2bd7e movq %rcx, 0x98(%r15) leaq 0x2c7971(%rip), %rcx # 0x2f6bc0 movq (%rcx), %rcx movq %rcx, 0xa0(%r15) leaq -0xfca(%rip), %rcx # 0x2e296 movq %rcx, 0xa8(%r15) testl %eax, %eax je 0x2f27d movq %r15, %rdi movl %eax, %esi movq %r14, %rdx callq 0x2eeaa movq %rax, %r15 jmp 0x2f280 xorl %r15d, %r15d testq %r15, %r15 setne %al testb $0x10, %r14b sete %cl orb %al, %cl jne 0x2f2ca leaq -0x230(%rbp), %r14 movq %r14, %rdi callq 0x2e7db movabsq $0x6d782e7865646e49, %rcx # imm = 0x6D782E7865646E49 movq %rcx, (%rax) movw $0x6c, 0x8(%rax) movl $0x4, %esi movl $0x1c, %edi movq %rbx, %rdx movq %r14, %rcx xorl %eax, %eax callq 0x314c3 movq %fs:0x28, %rax cmpq -0x20(%rbp), %rax jne 0x2f2ea movq %r15, %rax addq $0x218, %rsp # imm = 0x218 popq %rbx popq %r14 popq %r15 popq %rbp retq callq 0x24360
my_collation_get_by_name: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 218h mov r14, rdx mov rbx, rsi mov r15, rdi mov rax, fs:28h mov [rbp+var_20], rax lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, rbx mov rsi, r14 call get_collation_number mov byte ptr [r15], 0 lea rcx, my_once_alloc_c mov [r15+80h], rcx lea rcx, my_malloc_c mov [r15+88h], rcx lea rcx, my_realloc_c mov [r15+90h], rcx lea rcx, my_free mov [r15+98h], rcx lea rcx, my_charset_error_reporter mov rcx, [rcx] mov [r15+0A0h], rcx lea rcx, add_collation mov [r15+0A8h], rcx test eax, eax jz short loc_2F27D mov rdi, r15 mov esi, eax mov rdx, r14 call get_internal_charset mov r15, rax jmp short loc_2F280 loc_2F27D: xor r15d, r15d loc_2F280: test r15, r15 setnz al test r14b, 10h setz cl or cl, al jnz short loc_2F2CA lea r14, [rbp+var_230] mov rdi, r14 call get_charsets_dir mov rcx, 6D782E7865646E49h mov [rax], rcx mov word ptr [rax+8], 6Ch ; 'l' mov esi, 4 mov edi, 1Ch mov rdx, rbx mov rcx, r14 xor eax, eax call my_error loc_2F2CA: mov rax, fs:28h cmp rax, [rbp+var_20] jnz short loc_2F2EA mov rax, r15 add rsp, 218h pop rbx pop r14 pop r15 pop rbp retn loc_2F2EA: call ___stack_chk_fail
long long my_collation_get_by_name(long long a1, long long a2, long long a3) { unsigned int collation_number; // eax long long internal_charset; // r15 int v6; // r8d int v7; // r9d _WORD v9[264]; // [rsp+0h] [rbp-230h] BYREF unsigned long long v10; // [rsp+210h] [rbp-20h] v10 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); collation_number = get_collation_number(a2, a3); *(_BYTE *)a1 = 0; *(_QWORD *)(a1 + 128) = my_once_alloc_c; *(_QWORD *)(a1 + 136) = my_malloc_c; *(_QWORD *)(a1 + 144) = my_realloc_c; *(_QWORD *)(a1 + 152) = my_free; *(_QWORD *)(a1 + 160) = my_charset_error_reporter; *(_QWORD *)(a1 + 168) = add_collation; if ( collation_number ) internal_charset = get_internal_charset(a1, collation_number, a3); else internal_charset = 0LL; if ( internal_charset == 0 && (a3 & 0x10) != 0 ) { strcpy((char *)get_charsets_dir(v9), "Index.xml"); my_error(28, 4, a2, (unsigned int)v9, v6, v7); } return internal_charset; }
my_collation_get_by_name: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x218 MOV R14,RDX MOV RBX,RSI MOV R15,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x20],RAX LEA RDI,[0x4763f0] LEA RSI,[0x12ea1b] CALL 0x00124290 MOV RDI,RBX MOV RSI,R14 CALL 0x0012e96f MOV byte ptr [R15],0x0 LEA RCX,[0x12e24e] MOV qword ptr [R15 + 0x80],RCX LEA RCX,[0x12e25d] MOV qword ptr [R15 + 0x88],RCX LEA RCX,[0x12e278] MOV qword ptr [R15 + 0x90],RCX LEA RCX,[0x12bd7e] MOV qword ptr [R15 + 0x98],RCX LEA RCX,[0x3f6bc0] MOV RCX,qword ptr [RCX] MOV qword ptr [R15 + 0xa0],RCX LEA RCX,[0x12e296] MOV qword ptr [R15 + 0xa8],RCX TEST EAX,EAX JZ 0x0012f27d MOV RDI,R15 MOV ESI,EAX MOV RDX,R14 CALL 0x0012eeaa MOV R15,RAX JMP 0x0012f280 LAB_0012f27d: XOR R15D,R15D LAB_0012f280: TEST R15,R15 SETNZ AL TEST R14B,0x10 SETZ CL OR CL,AL JNZ 0x0012f2ca LEA R14,[RBP + -0x230] MOV RDI,R14 CALL 0x0012e7db MOV RCX,0x6d782e7865646e49 MOV qword ptr [RAX],RCX MOV word ptr [RAX + 0x8],0x6c MOV ESI,0x4 MOV EDI,0x1c MOV RDX,RBX MOV RCX,R14 XOR EAX,EAX CALL 0x001314c3 LAB_0012f2ca: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x0012f2ea MOV RAX,R15 ADD RSP,0x218 POP RBX POP R14 POP R15 POP RBP RET LAB_0012f2ea: CALL 0x00124360
long my_collation_get_by_name(int1 *param_1,int8 param_2,ulong param_3) { int iVar1; long lVar2; int8 *puVar3; long in_FS_OFFSET; int1 local_238 [528]; long local_28; local_28 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); iVar1 = get_collation_number(param_2,param_3); *param_1 = 0; *(code **)(param_1 + 0x80) = my_once_alloc_c; *(code **)(param_1 + 0x88) = my_malloc_c; *(code **)(param_1 + 0x90) = my_realloc_c; *(code **)(param_1 + 0x98) = my_free; *(int **)(param_1 + 0xa0) = my_charset_error_reporter; *(code **)(param_1 + 0xa8) = add_collation; if (iVar1 == 0) { lVar2 = 0; } else { lVar2 = get_internal_charset(param_1,iVar1,param_3); } if ((param_3 & 0x10) != 0 && lVar2 == 0) { puVar3 = (int8 *)get_charsets_dir(local_238); *puVar3 = 0x6d782e7865646e49; *(int2 *)(puVar3 + 1) = 0x6c; my_error(0x1c,4,param_2,local_238); } if (*(long *)(in_FS_OFFSET + 0x28) == local_28) { return lVar2; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
34,022
bool httplib::detail::parse_header<httplib::detail::MultipartFormDataParser::parse(char const*, unsigned long, std::function<bool (char const*, unsigned long)> const&, std::function<bool (httplib::MultipartFormData const&)> const&)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)>(char const*, char const*, httplib::detail::MultipartFormDataParser::parse(char const*, unsigned long, std::function<bool (char const*, unsigned long)> const&, std::function<bool (httplib::MultipartFormData const&)> const&)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&))
monkey531[P]llama/examples/server/httplib.h
inline bool parse_header(const char *beg, const char *end, T fn) { // Skip trailing spaces and tabs. while (beg < end && is_space_or_tab(end[-1])) { end--; } auto p = beg; while (p < end && *p != ':') { p++; } if (p == end) { return false; } auto key_end = p; if (*p++ != ':') { return false; } while (p < end && is_space_or_tab(*p)) { p++; } if (p <= end) { auto key_len = key_end - beg; if (!key_len) { return false; } auto key = std::string(beg, key_end); auto val = case_ignore::equal(key, "Location") ? std::string(p, end) : decode_url(std::string(p, end), false); // NOTE: From RFC 9110: // Field values containing CR, LF, or NUL characters are // invalid and dangerous, due to the varying ways that // implementations might parse and interpret those // characters; a recipient of CR, LF, or NUL within a field // value MUST either reject the message or replace each of // those characters with SP before further processing or // forwarding of that message. static const std::string CR_LF_NUL("\r\n\0", 3); if (val.find_first_of(CR_LF_NUL) != std::string::npos) { return false; } fn(key, val); return true; } return false; }
O1
c
bool httplib::detail::parse_header<httplib::detail::MultipartFormDataParser::parse(char const*, unsigned long, std::function<bool (char const*, unsigned long)> const&, std::function<bool (httplib::MultipartFormData const&)> const&)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)>(char const*, char const*, httplib::detail::MultipartFormDataParser::parse(char const*, unsigned long, std::function<bool (char const*, unsigned long)> const&, std::function<bool (httplib::MultipartFormData const&)> const&)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rsi, %rbx movq %rdi, %rsi cmpq %rdi, %rbx jbe 0x6f0b8 movzbl -0x1(%rbx), %eax cmpl $0x20, %eax je 0x6f0ad cmpl $0x9, %eax jne 0x6f0b8 decq %rbx cmpq %rsi, %rbx ja 0x6f09f movq %rsi, %rbx movq %rsi, %rdx cmpq %rsi, %rbx jbe 0x6f0d3 movq %rsi, %rdx cmpb $0x3a, (%rdx) je 0x6f0d3 incq %rdx cmpq %rbx, %rdx jne 0x6f0c3 movq %rbx, %rdx cmpq %rbx, %rdx je 0x6f118 cmpb $0x3a, (%rdx) jne 0x6f118 leaq 0x1(%rdx), %r14 cmpq %rbx, %r14 jae 0x6f108 movq %rdx, %rax notq %rax addq %rbx, %rax movzbl (%r14), %ecx cmpl $0x20, %ecx je 0x6f0fd cmpl $0x9, %ecx jne 0x6f108 incq %r14 decq %rax jne 0x6f0ef movq %rbx, %r14 cmpq %rbx, %r14 seta %al cmpq %rsi, %rdx sete %cl orb %al, %cl je 0x6f12e xorl %ebx, %ebx movl %ebx, %eax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x38(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x28(%rsp), %rdi callq 0x4c588 leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) leaq 0xddf1f(%rip), %rsi # 0x14d071 leaq 0xddf20(%rip), %rdx # 0x14d079 leaq 0x8(%rsp), %rdi callq 0x4c588 movq 0x30(%rsp), %rax cmpq 0x10(%rsp), %rax jne 0x6f1bf testq %rax, %rax sete %bpl je 0x6f1c1 movq 0x28(%rsp), %rcx movq 0x8(%rsp), %rdx movzbl (%rcx), %edi movzbl (%rdx), %r8d leaq 0xe3740(%rip), %rsi # 0x1528d0 movb (%rdi,%rsi), %dil cmpb (%r8,%rsi), %dil jne 0x6f1bf movl $0x1, %edi cmpq %rdi, %rax sete %bpl je 0x6f1c1 movzbl (%rcx,%rdi), %r8d movzbl (%rdx,%rdi), %r9d movb (%r8,%rsi), %r8b incq %rdi cmpb (%r9,%rsi), %r8b je 0x6f19f xorl %ebp, %ebp leaq 0x78(%rsp), %r13 testb %bpl, %bpl je 0x6f1e0 leaq 0x68(%rsp), %rdi movq %r13, (%rdi) movq %r14, %rsi movq %rbx, %rdx callq 0x4c588 jmp 0x6f20a leaq 0x58(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x48(%rsp), %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x4c588 leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rsi xorl %edx, %edx callq 0x652dc testb %bpl, %bpl jne 0x6f22a leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x6f22a movq 0x58(%rsp), %rsi incq %rsi callq 0x1fae0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x6f246 movq 0x18(%rsp), %rsi incq %rsi callq 0x1fae0 movb 0x26640c(%rip), %al # 0x2d5658 testb %al, %al je 0x6f2a9 movq 0x2663e1(%rip), %rsi # 0x2d5638 movq 0x2663e2(%rip), %rcx # 0x2d5640 leaq 0x68(%rsp), %r14 movq %r14, %rdi xorl %edx, %edx callq 0x20040 cmpq $-0x1, %rax sete %bl movq (%r14), %rdi cmpq %r13, %rdi je 0x6f289 movq 0x78(%rsp), %rsi incq %rsi callq 0x1fae0 movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x6f11a movq 0x38(%rsp), %rsi incq %rsi callq 0x1fae0 jmp 0x6f11a callq 0x20bb3 jmp 0x6f250 movq %rax, %rbx movq 0x48(%rsp), %rdi cmpq %r15, %rdi je 0x6f2d1 movq 0x58(%rsp), %rsi incq %rsi callq 0x1fae0 jmp 0x6f2d1 jmp 0x6f2ce movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x6f2f2 movq 0x18(%rsp), %rsi incq %rsi callq 0x1fae0 jmp 0x6f2f2 movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x6f309 movq 0x38(%rsp), %rsi incq %rsi callq 0x1fae0 movq %rbx, %rdi callq 0x20380 nop
_ZN7httplib6detail12parse_headerIZNS0_23MultipartFormDataParser5parseEPKcmRKSt8functionIFbS4_mEERKS5_IFbRKNS_17MultipartFormDataEEEEUlRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESO_E_EEbS4_S4_T_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov rbx, rsi mov rsi, rdi cmp rbx, rdi jbe short loc_6F0B8 loc_6F09F: movzx eax, byte ptr [rbx-1] cmp eax, 20h ; ' ' jz short loc_6F0AD cmp eax, 9 jnz short loc_6F0B8 loc_6F0AD: dec rbx cmp rbx, rsi ja short loc_6F09F mov rbx, rsi loc_6F0B8: mov rdx, rsi cmp rbx, rsi jbe short loc_6F0D3 mov rdx, rsi loc_6F0C3: cmp byte ptr [rdx], 3Ah ; ':' jz short loc_6F0D3 inc rdx cmp rdx, rbx jnz short loc_6F0C3 mov rdx, rbx loc_6F0D3: cmp rdx, rbx jz short loc_6F118 cmp byte ptr [rdx], 3Ah ; ':' jnz short loc_6F118 lea r14, [rdx+1] cmp r14, rbx jnb short loc_6F108 mov rax, rdx not rax add rax, rbx loc_6F0EF: movzx ecx, byte ptr [r14] cmp ecx, 20h ; ' ' jz short loc_6F0FD cmp ecx, 9 jnz short loc_6F108 loc_6F0FD: inc r14 dec rax jnz short loc_6F0EF mov r14, rbx loc_6F108: cmp r14, rbx setnbe al cmp rdx, rsi setz cl or cl, al jz short loc_6F12E loc_6F118: xor ebx, ebx loc_6F11A: mov eax, ebx add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_6F12E: lea r12, [rsp+0B8h+var_80] mov [r12-10h], r12 lea rdi, [rsp+0B8h+var_90] 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, [rsp+0B8h+var_A0] mov [rax-10h], rax lea rsi, aLocation; "Location" lea rdx, aLocation+8; "" lea rdi, [rsp+0B8h+var_B0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rax, [rsp+0B8h+var_88] cmp rax, [rsp+0B8h+var_A8] jnz short loc_6F1BF test rax, rax setz bpl jz short loc_6F1C1 mov rcx, [rsp+0B8h+var_90] mov rdx, [rsp+0B8h+var_B0] movzx edi, byte ptr [rcx] movzx r8d, byte ptr [rdx] lea rsi, _ZZN7httplib6detail11case_ignore8to_lowerEiE5table; httplib::detail::case_ignore::to_lower(int)::table mov dil, [rdi+rsi] cmp dil, [r8+rsi] jnz short loc_6F1BF mov edi, 1 loc_6F19F: cmp rax, rdi setz bpl jz short loc_6F1C1 movzx r8d, byte ptr [rcx+rdi] movzx r9d, byte ptr [rdx+rdi] mov r8b, [r8+rsi] inc rdi cmp r8b, [r9+rsi] jz short loc_6F19F loc_6F1BF: xor ebp, ebp loc_6F1C1: lea r13, [rsp+0B8h+var_40] test bpl, bpl jz short loc_6F1E0 lea rdi, [rsp+0B8h+var_50] mov [rdi], r13 mov rsi, r14 mov rdx, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) jmp short loc_6F20A loc_6F1E0: lea r15, [rsp+0B8h+var_60] mov [r15-10h], r15 lea rdi, [rsp+0B8h+var_70] mov rsi, r14 mov rdx, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0B8h+var_50] lea rsi, [rsp+0B8h+var_70] xor edx, edx call _ZN7httplib6detail10decode_urlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb; httplib::detail::decode_url(std::string const&,bool) loc_6F20A: test bpl, bpl jnz short loc_6F22A lea rax, [rsp+0B8h+var_60] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_6F22A mov rsi, [rsp+0B8h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6F22A: mov rdi, [rsp+0B8h+var_B0]; void * lea rax, [rsp+0B8h+var_A0] cmp rdi, rax jz short loc_6F246 mov rsi, [rsp+0B8h+var_A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6F246: mov al, cs:_ZGVZN7httplib6detail12parse_headerIZNS0_23MultipartFormDataParser5parseEPKcmRKSt8functionIFbS4_mEERKS5_IFbRKNS_17MultipartFormDataEEEEUlRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESO_E_EEbS4_S4_T_E9CR_LF_NULB5cxx11; `guard variable for'httplib::detail::parse_header<httplib::detail::MultipartFormDataParser::parse(char const*,ulong,std::function<bool ()(char const*,ulong)> const&,std::function const&<bool ()(httplib::MultipartFormData const&)>)::{lambda(std::string const&,std::string const&)#1}>(char const*,char const*,httplib::detail::MultipartFormDataParser::parse(char const*,ulong,std::function<bool ()(char const*,ulong)> const&,std::function const&<bool ()(httplib::MultipartFormData const&)>)::{lambda(std::string const&,std::string const&)#1})::CR_LF_NUL test al, al jz short loc_6F2A9 loc_6F250: mov rsi, cs:_ZZN7httplib6detail12parse_headerIZNS0_23MultipartFormDataParser5parseEPKcmRKSt8functionIFbS4_mEERKS5_IFbRKNS_17MultipartFormDataEEEEUlRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESO_E_EEbS4_S4_T_E9CR_LF_NULB5cxx11; httplib::detail::parse_header<httplib::detail::MultipartFormDataParser::parse(char const*,ulong,std::function<bool ()(char const*,ulong)> const&,std::function const&<bool ()(httplib::MultipartFormData const&)>)::{lambda(std::string const&,std::string const&)#1}>(char const*,char const*,httplib::detail::MultipartFormDataParser::parse(char const*,ulong,std::function<bool ()(char const*,ulong)> const&,std::function const&<bool ()(httplib::MultipartFormData const&)>)::{lambda(std::string const&,std::string const&)#1})::CR_LF_NUL mov rcx, cs:qword_2D5640 lea r14, [rsp+0B8h+var_50] mov rdi, r14 xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13find_first_ofEPKcmm; std::string::find_first_of(char const*,ulong,ulong) cmp rax, 0FFFFFFFFFFFFFFFFh setz bl mov rdi, [r14]; void * cmp rdi, r13 jz short loc_6F289 mov rsi, [rsp+0B8h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6F289: mov rdi, [rsp+0B8h+var_90]; void * cmp rdi, r12 jz loc_6F11A mov rsi, [rsp+0B8h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_6F11A loc_6F2A9: call _ZN7httplib6detail12parse_headerIZNS0_23MultipartFormDataParser5parseEPKcmRKSt8functionIFbS4_mEERKS5_IFbRKNS_17MultipartFormDataEEEEUlRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESO_E_EEbS4_S4_T__cold_1; httplib::detail::parse_header<httplib::detail::MultipartFormDataParser::parse(char const*,ulong,std::function<bool ()(char const*,ulong)> const&,std::function const&<bool ()(httplib::MultipartFormData const&)>)::{lambda(std::string const&,std::string const&)#1}>(char const*,char const*,httplib::detail::MultipartFormDataParser::parse(char const*,ulong,std::function<bool ()(char const*,ulong)> const&,std::function const&<bool ()(httplib::MultipartFormData const&)>)::{lambda(std::string const&,std::string const&)#1}) [clone] jmp short loc_6F250 mov rbx, rax mov rdi, [rsp+arg_40]; void * cmp rdi, r15 jz short loc_6F2D1 mov rsi, [rsp+arg_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_6F2D1 jmp short $+2 loc_6F2CE: mov rbx, rax loc_6F2D1: mov rdi, [rsp+arg_0]; void * lea rax, [rsp+arg_10] cmp rdi, rax jz short loc_6F2F2 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_6F2F2 mov rbx, rax loc_6F2F2: mov rdi, [rsp+arg_20]; void * cmp rdi, r12 jz short loc_6F309 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6F309: mov rdi, rbx call __Unwind_Resume
long long httplib::detail::parse_header<httplib::detail::MultipartFormDataParser::parse(char const*,unsigned long,std::function<bool ()(char const*,unsigned long)> const&,std::function const&<bool ()(httplib::MultipartFormData const&)>)::{lambda(std::string const&,std::string const&)#1}>( _BYTE *a1, unsigned long long a2) { unsigned long long v2; // rbx int v3; // eax long long v4; // rdx _BYTE *v5; // r14 unsigned long long v6; // rax int v7; // ecx bool v9; // bp long long v10; // rdi long long v11; // r9 char v12; // r8 void *v13[2]; // [rsp+8h] [rbp-B0h] BYREF _QWORD v14[2]; // [rsp+18h] [rbp-A0h] BYREF void *v15; // [rsp+28h] [rbp-90h] BYREF void *v16; // [rsp+30h] [rbp-88h] _QWORD v17[2]; // [rsp+38h] [rbp-80h] BYREF void *v18[2]; // [rsp+48h] [rbp-70h] BYREF _QWORD v19[2]; // [rsp+58h] [rbp-60h] BYREF void *v20[2]; // [rsp+68h] [rbp-50h] BYREF _QWORD v21[8]; // [rsp+78h] [rbp-40h] BYREF v2 = a2; if ( a2 > (unsigned long long)a1 ) { while ( 1 ) { v3 = *(unsigned __int8 *)(v2 - 1); if ( v3 != 32 && v3 != 9 ) break; if ( --v2 <= (unsigned long long)a1 ) { v2 = (unsigned long long)a1; break; } } } v4 = (long long)a1; if ( v2 > (unsigned long long)a1 ) { v4 = (long long)a1; while ( *(_BYTE *)v4 != 58 ) { if ( ++v4 == v2 ) { v4 = v2; break; } } } if ( v4 == v2 || *(_BYTE *)v4 != 58 ) goto LABEL_20; v5 = (_BYTE *)(v4 + 1); if ( v4 + 1 < v2 ) { v6 = v2 + ~v4; while ( 1 ) { v7 = (unsigned __int8)*v5; if ( v7 != 32 && v7 != 9 ) break; ++v5; if ( !--v6 ) { v5 = (_BYTE *)v2; break; } } } if ( (unsigned long long)v5 > v2 || v4 == (_QWORD)a1 ) { LABEL_20: LODWORD(v2) = 0; return (unsigned int)v2; } v15 = v17; std::string::_M_construct<char const*>(&v15, a1, v4); v13[0] = v14; std::string::_M_construct<char const*>(v13, "Location", (long long)""); if ( v16 != v13[1] ) { LABEL_28: v9 = 0; goto LABEL_29; } v9 = v16 == 0LL; if ( v16 ) { if ( httplib::detail::case_ignore::to_lower(int)::table[*(unsigned __int8 *)v15] == httplib::detail::case_ignore::to_lower(int)::table[*(unsigned __int8 *)v13[0]] ) { v10 = 1LL; while ( 1 ) { v9 = v16 == (void *)v10; if ( v16 == (void *)v10 ) goto LABEL_29; v11 = *((unsigned __int8 *)v13[0] + v10); v12 = httplib::detail::case_ignore::to_lower(int)::table[*((unsigned __int8 *)v15 + v10++)]; if ( v12 != httplib::detail::case_ignore::to_lower(int)::table[v11] ) goto LABEL_28; } } goto LABEL_28; } LABEL_29: if ( v9 ) { v20[0] = v21; std::string::_M_construct<char const*>(v20, v5, v2); } else { v18[0] = v19; std::string::_M_construct<char const*>(v18, v5, v2); httplib::detail::decode_url((long long)v20, (long long *)v18, 0); } if ( !v9 && v18[0] != v19 ) operator delete(v18[0], v19[0] + 1LL); if ( v13[0] != v14 ) operator delete(v13[0], v14[0] + 1LL); if ( !(_BYTE)`guard variable for'bool httplib::detail::parse_header<httplib::detail::MultipartFormDataParser::parse(char const*,unsigned long,std::function<bool ()(char const*,unsigned long)> const&,std::function const&<bool ()(httplib::MultipartFormData const&)>)::{lambda(std::string const&,std::string const&)#1}>(char const*,char const*,httplib::detail::MultipartFormDataParser::parse(char const*,unsigned long,std::function<bool ()(char const*,unsigned long)> const&,std::function const&<bool ()(httplib::MultipartFormData const&)>)::{lambda(std::string const&,std::string const&)#1})::CR_LF_NUL[abi:cxx11] ) httplib::detail::parse_header<httplib::detail::MultipartFormDataParser::parse(char const*,unsigned long,std::function<bool ()(char const*,unsigned long)> const&,std::function const&<bool ()(httplib::MultipartFormData const&)>)::{lambda(std::string const&,std::string const&)#1}>(); LOBYTE(v2) = std::string::find_first_of( v20, httplib::detail::parse_header<httplib::detail::MultipartFormDataParser::parse(char const*,unsigned long,std::function<bool ()(char const*,unsigned long)> const&,std::function const&<bool ()(httplib::MultipartFormData const&)>)::{lambda(std::string const&,std::string const&)#1}>(char const*,char const*,httplib::detail::MultipartFormDataParser::parse(char const*,unsigned long,std::function<bool ()(char const*,unsigned long)> const&,std::function const&<bool ()(httplib::MultipartFormData const&)>)::{lambda(std::string const&,std::string const&)#1})::CR_LF_NUL[abi:cxx11], 0LL, qword_2D5640) == -1; if ( v20[0] != v21 ) operator delete(v20[0], v21[0] + 1LL); if ( v15 != v17 ) operator delete(v15, v17[0] + 1LL); return (unsigned int)v2; }
parse_header<httplib::detail::MultipartFormDataParser::parse(char_const*,unsigned_long,std::function<bool(char_const*,unsigned_long)>const&,std::function<bool(httplib::MultipartFormData_const&)>const&)::{lambda(std::__cxx11::string_const&,std::__cxx11::string_const&)#1}>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV RBX,RSI MOV RSI,RDI CMP RBX,RDI JBE 0x0016f0b8 LAB_0016f09f: MOVZX EAX,byte ptr [RBX + -0x1] CMP EAX,0x20 JZ 0x0016f0ad CMP EAX,0x9 JNZ 0x0016f0b8 LAB_0016f0ad: DEC RBX CMP RBX,RSI JA 0x0016f09f MOV RBX,RSI LAB_0016f0b8: MOV RDX,RSI CMP RBX,RSI JBE 0x0016f0d3 MOV RDX,RSI LAB_0016f0c3: CMP byte ptr [RDX],0x3a JZ 0x0016f0d3 INC RDX CMP RDX,RBX JNZ 0x0016f0c3 MOV RDX,RBX LAB_0016f0d3: CMP RDX,RBX JZ 0x0016f118 CMP byte ptr [RDX],0x3a JNZ 0x0016f118 LEA R14,[RDX + 0x1] CMP R14,RBX JNC 0x0016f108 MOV RAX,RDX NOT RAX ADD RAX,RBX LAB_0016f0ef: MOVZX ECX,byte ptr [R14] CMP ECX,0x20 JZ 0x0016f0fd CMP ECX,0x9 JNZ 0x0016f108 LAB_0016f0fd: INC R14 DEC RAX JNZ 0x0016f0ef MOV R14,RBX LAB_0016f108: CMP R14,RBX SETA AL CMP RDX,RSI SETZ CL OR CL,AL JZ 0x0016f12e LAB_0016f118: XOR EBX,EBX LAB_0016f11a: MOV EAX,EBX ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0016f12e: LEA R12,[RSP + 0x38] MOV qword ptr [R12 + -0x10],R12 LEA RDI,[RSP + 0x28] CALL 0x0014c588 LEA RAX,[RSP + 0x18] MOV qword ptr [RAX + -0x10],RAX LAB_0016f14b: LEA RSI,[0x24d071] LEA RDX,[0x24d079] LEA RDI,[RSP + 0x8] CALL 0x0014c588 MOV RAX,qword ptr [RSP + 0x30] CMP RAX,qword ptr [RSP + 0x10] JNZ 0x0016f1bf TEST RAX,RAX SETZ BPL JZ 0x0016f1c1 MOV RCX,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x8] MOVZX EDI,byte ptr [RCX] MOVZX R8D,byte ptr [RDX] LEA RSI,[0x2528d0] MOV DIL,byte ptr [RDI + RSI*0x1] CMP DIL,byte ptr [R8 + RSI*0x1] JNZ 0x0016f1bf MOV EDI,0x1 LAB_0016f19f: CMP RAX,RDI SETZ BPL JZ 0x0016f1c1 MOVZX R8D,byte ptr [RCX + RDI*0x1] MOVZX R9D,byte ptr [RDX + RDI*0x1] MOV R8B,byte ptr [R8 + RSI*0x1] INC RDI CMP R8B,byte ptr [R9 + RSI*0x1] JZ 0x0016f19f LAB_0016f1bf: XOR EBP,EBP LAB_0016f1c1: LEA R13,[RSP + 0x78] TEST BPL,BPL JZ 0x0016f1e0 LEA RDI,[RSP + 0x68] MOV qword ptr [RDI],R13 LAB_0016f1d3: MOV RSI,R14 MOV RDX,RBX CALL 0x0014c588 JMP 0x0016f20a LAB_0016f1e0: LEA R15,[RSP + 0x58] MOV qword ptr [R15 + -0x10],R15 LAB_0016f1e9: LEA RDI,[RSP + 0x48] MOV RSI,R14 MOV RDX,RBX CALL 0x0014c588 LAB_0016f1f9: LEA RDI,[RSP + 0x68] LEA RSI,[RSP + 0x48] XOR EDX,EDX CALL 0x001652dc LAB_0016f20a: TEST BPL,BPL JNZ 0x0016f22a LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0016f22a MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0011fae0 LAB_0016f22a: MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x0016f246 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011fae0 LAB_0016f246: MOV AL,byte ptr [0x003d5658] TEST AL,AL JZ 0x0016f2a9 LAB_0016f250: MOV RSI,qword ptr [0x003d5638] MOV RCX,qword ptr [0x003d5640] LEA R14,[RSP + 0x68] MOV RDI,R14 XOR EDX,EDX CALL 0x00120040 CMP RAX,-0x1 SETZ BL MOV RDI,qword ptr [R14] CMP RDI,R13 JZ 0x0016f289 MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x0011fae0 LAB_0016f289: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R12 JZ 0x0016f11a MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011fae0 JMP 0x0016f11a LAB_0016f2a9: CALL 0x00120bb3 JMP 0x0016f250
/* bool httplib::detail::parse_header<httplib::detail::MultipartFormDataParser::parse(char const*, unsigned long, std::function<bool (char const*, unsigned long)> const&, std::function<bool (httplib::MultipartFormData const&)> const&)::{lambda(std::__cxx11::string const&, std::__cxx11::string const&)#1}>(char const*, char const*, httplib::detail::MultipartFormDataParser::parse(char const*, unsigned long, std::function<bool (char const*, unsigned long)> const&, std::function<bool (httplib::MultipartFormData const&)> const&)::{lambda(std::__cxx11::string const&, std::__cxx11::string const&)#1}) */ bool httplib::detail:: parse_header<httplib::detail::MultipartFormDataParser::parse(char_const*,unsigned_long,std::function<bool(char_const*,unsigned_long)>const&,std::function<bool(httplib::MultipartFormData_const&)>const&)::_lambda(std::__cxx11::string_const&,std::__cxx11::string_const&)_1_> (char *param_1,char *param_2) { byte *pbVar1; byte *pbVar2; char *pcVar3; char *pcVar4; char *pcVar5; char *pcVar6; long lVar7; char *pcVar8; bool bVar9; byte *local_b0; long local_a8; long local_a0 [2]; byte *local_90; long local_88; long local_80 [2]; long *local_70 [2]; long local_60 [2]; long *local_50 [2]; long local_40 [2]; pcVar6 = param_2; if (param_1 < param_2) { do { if ((param_2[-1] != ' ') && (pcVar6 = param_2, param_2[-1] != '\t')) break; param_2 = param_2 + -1; pcVar6 = param_1; } while (param_1 < param_2); } pcVar5 = param_1; pcVar4 = param_1; if (param_1 < pcVar6) { do { pcVar5 = pcVar4; if (*pcVar4 == ':') break; pcVar4 = pcVar4 + 1; pcVar5 = pcVar6; } while (pcVar4 != pcVar6); } if ((pcVar5 == pcVar6) || (*pcVar5 != ':')) { return false; } pcVar4 = pcVar5 + 1; pcVar8 = pcVar4; if (pcVar4 < pcVar6) { pcVar3 = pcVar6 + ~(ulong)pcVar5; do { if ((*pcVar4 != ' ') && (pcVar8 = pcVar4, *pcVar4 != '\t')) break; pcVar4 = pcVar4 + 1; pcVar3 = pcVar3 + -1; pcVar8 = pcVar6; } while (pcVar3 != (char *)0x0); } if (pcVar5 == param_1 || pcVar6 < pcVar8) { return false; } local_90 = (byte *)local_80; std::__cxx11::string::_M_construct<char_const*>(&local_90); local_b0 = (byte *)local_a0; /* try { // try from 0016f14b to 0016f162 has its CatchHandler @ 0016f2ef */ std::__cxx11::string::_M_construct<char_const*>(&local_b0,"Location",""); if (local_88 == local_a8) { bVar9 = local_88 == 0; if (bVar9) goto LAB_0016f1c1; if (case_ignore::to_lower(int)::table[*local_90] == case_ignore::to_lower(int)::table[*local_b0] ) { lVar7 = 1; do { bVar9 = local_88 == lVar7; if (bVar9) goto LAB_0016f1c1; pbVar1 = local_90 + lVar7; pbVar2 = local_b0 + lVar7; lVar7 = lVar7 + 1; } while (case_ignore::to_lower(int)::table[*pbVar1] == case_ignore::to_lower(int)::table[*pbVar2]); } } bVar9 = false; LAB_0016f1c1: if (bVar9) { local_50[0] = local_40; /* try { // try from 0016f1d3 to 0016f1dd has its CatchHandler @ 0016f2ce */ std::__cxx11::string::_M_construct<char_const*>(local_50,pcVar8,pcVar6); } else { local_70[0] = local_60; /* try { // try from 0016f1e9 to 0016f1f8 has its CatchHandler @ 0016f2cc */ std::__cxx11::string::_M_construct<char_const*>(local_70,pcVar8,pcVar6); /* try { // try from 0016f1f9 to 0016f209 has its CatchHandler @ 0016f2b0 */ decode_url((string *)local_50,SUB81(local_70,0)); if (local_70[0] != local_60) { operator_delete(local_70[0],local_60[0] + 1); } } if (local_b0 != (byte *)local_a0) { operator_delete(local_b0,local_a0[0] + 1); } if (parse_header<httplib::detail::MultipartFormDataParser::parse(char_const*,unsigned_long,std::function<bool(char_const*,unsigned_long)>const&,std::function<bool(httplib::MultipartFormData_const&)>const&)::{lambda(std::__cxx11::string_const&,std::__cxx11::string_const&)#1}>(char_const*,char_const*,httplib::detail::MultipartFormDataParser::parse(char_const*,unsigned_long,std::function<bool(char_const*,unsigned_long)>const&,std::function<bool(httplib::MultipartFormData_const&)>const&)::{lambda(std::__cxx11::string_const&,std::__cxx11::string_const&)#1}) ::CR_LF_NUL_abi_cxx11_ == '\0') { parse_header<httplib::detail::MultipartFormDataParser::parse(char_const*,unsigned_long,std::function<bool(char_const*,unsigned_long)>const&,std::function<bool(httplib::MultipartFormData_const&)>const&)::_lambda(std::__cxx11::string_const&,std::__cxx11::string_const&)_1_> (); } lVar7 = std::__cxx11::string::find_first_of ((char *)local_50, parse_header<httplib::detail::MultipartFormDataParser::parse(char_const*,unsigned_long,std::function<bool(char_const*,unsigned_long)>const&,std::function<bool(httplib::MultipartFormData_const&)>const&)::{lambda(std::__cxx11::string_const&,std::__cxx11::string_const&)#1}>(char_const*,char_const*,httplib::detail::MultipartFormDataParser::parse(char_const*,unsigned_long,std::function<bool(char_const*,unsigned_long)>const&,std::function<bool(httplib::MultipartFormData_const&)>const&)::{lambda(std::__cxx11::string_const&,std::__cxx11::string_const&)#1}) ::CR_LF_NUL_abi_cxx11_,0); if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } if (local_90 != (byte *)local_80) { operator_delete(local_90,local_80[0] + 1); return lVar7 == -1; } return lVar7 == -1; }
34,023
bool httplib::detail::parse_header<httplib::detail::MultipartFormDataParser::parse(char const*, unsigned long, std::function<bool (char const*, unsigned long)> const&, std::function<bool (httplib::MultipartFormData const&)> const&)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)>(char const*, char const*, httplib::detail::MultipartFormDataParser::parse(char const*, unsigned long, std::function<bool (char const*, unsigned long)> const&, std::function<bool (httplib::MultipartFormData const&)> const&)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&))
monkey531[P]llama/examples/server/httplib.h
inline bool parse_header(const char *beg, const char *end, T fn) { // Skip trailing spaces and tabs. while (beg < end && is_space_or_tab(end[-1])) { end--; } auto p = beg; while (p < end && *p != ':') { p++; } if (p == end) { return false; } auto key_end = p; if (*p++ != ':') { return false; } while (p < end && is_space_or_tab(*p)) { p++; } if (p <= end) { auto key_len = key_end - beg; if (!key_len) { return false; } auto key = std::string(beg, key_end); auto val = case_ignore::equal(key, "Location") ? std::string(p, end) : decode_url(std::string(p, end), false); // NOTE: From RFC 9110: // Field values containing CR, LF, or NUL characters are // invalid and dangerous, due to the varying ways that // implementations might parse and interpret those // characters; a recipient of CR, LF, or NUL within a field // value MUST either reject the message or replace each of // those characters with SP before further processing or // forwarding of that message. static const std::string CR_LF_NUL("\r\n\0", 3); if (val.find_first_of(CR_LF_NUL) != std::string::npos) { return false; } fn(key, val); return true; } return false; }
O3
c
bool httplib::detail::parse_header<httplib::detail::MultipartFormDataParser::parse(char const*, unsigned long, std::function<bool (char const*, unsigned long)> const&, std::function<bool (httplib::MultipartFormData const&)> const&)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)>(char const*, char const*, httplib::detail::MultipartFormDataParser::parse(char const*, unsigned long, std::function<bool (char const*, unsigned long)> const&, std::function<bool (httplib::MultipartFormData const&)> const&)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %rsi cmpq %rdi, %r14 jbe 0x63984 movzbl -0x1(%r14), %eax cmpl $0x20, %eax je 0x63979 cmpl $0x9, %eax jne 0x63984 decq %r14 cmpq %rsi, %r14 ja 0x6396a movq %rsi, %r14 movq %rsi, %rdx cmpq %rsi, %r14 jbe 0x639a5 movq %r14, %rax subq %rsi, %rax movq %rsi, %rdx cmpb $0x3a, (%rdx) je 0x639a5 incq %rdx decq %rax jne 0x63995 movq %r14, %rdx cmpq %r14, %rdx je 0x63a8a cmpb $0x3a, (%rdx) jne 0x63a8a leaq 0x1(%rdx), %r15 cmpq %r14, %r15 jae 0x639e6 movq %r14, %rax subq %rdx, %rax leaq (%rdx,%rax), %rcx decq %rax movzbl (%r15), %edi cmpl $0x20, %edi je 0x639db cmpl $0x9, %edi jne 0x639e6 incq %r15 decq %rax jne 0x639cd movq %rcx, %r15 xorl %ebp, %ebp cmpq %rsi, %rdx je 0x63a8c cmpq %r14, %r15 ja 0x63a8c leaq 0x38(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x28(%rsp), %rdi callq 0x4b514 leaq 0x58(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0xe35a8(%rip), %rsi # 0x146fc6 leaq 0xe35a9(%rip), %rdx # 0x146fce leaq 0x48(%rsp), %rdi callq 0x4b514 movq 0x30(%rsp), %rax cmpq 0x50(%rsp), %rax jne 0x63aa0 testq %rax, %rax je 0x63a6f movq 0x28(%rsp), %rcx movq 0x48(%rsp), %rdx xorl %esi, %esi leaq 0xe8dcd(%rip), %rdi # 0x14c820 movzbl (%rcx,%rsi), %r8d movzbl (%rdx,%rsi), %r9d movb (%r8,%rdi), %r8b cmpb (%r9,%rdi), %r8b jne 0x63aa0 incq %rsi cmpq %rsi, %rax jne 0x63a53 leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x8(%rsp), %rdi movq %r15, %rsi movq %r14, %rdx callq 0x4b514 jmp 0x63ae1 xorl %ebp, %ebp movl %ebp, %eax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x78(%rsp), %rbp movq %rbp, -0x10(%rbp) leaq 0x68(%rsp), %rdi movq %r15, %rsi movq %r14, %rdx callq 0x4b514 leaq 0x8(%rsp), %rdi leaq 0x68(%rsp), %rsi xorl %edx, %edx callq 0x63bf0 movq 0x68(%rsp), %rdi cmpq %rbp, %rdi je 0x63ae1 movq 0x78(%rsp), %rsi incq %rsi callq 0x1fae0 movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x63af8 movq 0x58(%rsp), %rsi incq %rsi callq 0x1fae0 movb 0x2692f2(%rip), %al # 0x2ccdf0 testb %al, %al je 0x63b75 movq 0x2692c7(%rip), %rsi # 0x2ccdd0 movq 0x2692c8(%rip), %rcx # 0x2ccdd8 leaq 0x8(%rsp), %rdi xorl %edx, %edx callq 0x20040 cmpq $-0x1, %rax sete %bpl jne 0x63b3a leaq 0x28(%rsp), %rdx leaq 0x8(%rsp), %rcx movq %rbx, %rdi xorl %esi, %esi callq 0x63e7e leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x63b55 movq 0x18(%rsp), %rsi incq %rsi callq 0x1fae0 movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x63a8c movq 0x38(%rsp), %rsi incq %rsi callq 0x1fae0 jmp 0x63a8c callq 0x20b31 jmp 0x63b02 jmp 0x63bb2 movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x63bd1 movq 0x18(%rsp), %rsi jmp 0x63bc4 movq %rax, %rbx movq 0x68(%rsp), %rdi cmpq %rbp, %rdi je 0x63bb5 movq 0x78(%rsp), %rsi incq %rsi callq 0x1fae0 jmp 0x63bb5 movq %rax, %rbx movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x63bd1 movq 0x58(%rsp), %rsi incq %rsi callq 0x1fae0 jmp 0x63bd1 movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x63be8 movq 0x38(%rsp), %rsi incq %rsi callq 0x1fae0 movq %rbx, %rdi callq 0x20380
_ZN7httplib6detail12parse_headerIZNS0_12read_headersERNS_6StreamERSt18unordered_multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_NS0_11case_ignore4hashENSB_8equal_toESaISt4pairIKSA_SA_EEEEUlRSF_RSA_E_EEbPKcSO_T_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov rbx, rdx mov r14, rsi mov rsi, rdi cmp r14, rdi jbe short loc_63984 loc_6396A: movzx eax, byte ptr [r14-1] cmp eax, 20h ; ' ' jz short loc_63979 cmp eax, 9 jnz short loc_63984 loc_63979: dec r14 cmp r14, rsi ja short loc_6396A mov r14, rsi loc_63984: mov rdx, rsi cmp r14, rsi jbe short loc_639A5 mov rax, r14 sub rax, rsi mov rdx, rsi loc_63995: cmp byte ptr [rdx], 3Ah ; ':' jz short loc_639A5 inc rdx dec rax jnz short loc_63995 mov rdx, r14 loc_639A5: cmp rdx, r14 jz loc_63A8A cmp byte ptr [rdx], 3Ah ; ':' jnz loc_63A8A lea r15, [rdx+1] cmp r15, r14 jnb short loc_639E6 mov rax, r14 sub rax, rdx lea rcx, [rdx+rax] dec rax loc_639CD: movzx edi, byte ptr [r15] cmp edi, 20h ; ' ' jz short loc_639DB cmp edi, 9 jnz short loc_639E6 loc_639DB: inc r15 dec rax jnz short loc_639CD mov r15, rcx loc_639E6: xor ebp, ebp cmp rdx, rsi jz loc_63A8C cmp r15, r14 ja loc_63A8C lea r12, [rsp+0B8h+var_80] mov [r12-10h], r12 lea rdi, [rsp+0B8h+var_90] 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 r13, [rsp+0B8h+var_60] mov [r13-10h], r13 lea rsi, aLocation; "Location" lea rdx, aLocation+8; "" lea rdi, [rsp+0B8h+var_70] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rax, [rsp+0B8h+var_88] cmp rax, [rsp+0B8h+var_68] jnz short loc_63AA0 test rax, rax jz short loc_63A6F mov rcx, [rsp+0B8h+var_90] mov rdx, [rsp+0B8h+var_70] xor esi, esi lea rdi, _ZZN7httplib6detail11case_ignore8to_lowerEiE5table; httplib::detail::case_ignore::to_lower(int)::table loc_63A53: movzx r8d, byte ptr [rcx+rsi] movzx r9d, byte ptr [rdx+rsi] mov r8b, [r8+rdi] cmp r8b, [r9+rdi] jnz short loc_63AA0 inc rsi cmp rax, rsi jnz short loc_63A53 loc_63A6F: lea rax, [rsp+0B8h+var_A0] mov [rax-10h], rax lea rdi, [rsp+0B8h+var_B0] mov rsi, r15 mov rdx, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) jmp short loc_63AE1 loc_63A8A: xor ebp, ebp loc_63A8C: mov eax, ebp add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_63AA0: lea rbp, [rsp+0B8h+var_40] mov [rbp-10h], rbp lea rdi, [rsp+0B8h+var_50] mov rsi, r15 mov rdx, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0B8h+var_B0] lea rsi, [rsp+0B8h+var_50] xor edx, edx call _ZN7httplib6detail10decode_urlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb; httplib::detail::decode_url(std::string const&,bool) mov rdi, [rsp+0B8h+var_50]; void * cmp rdi, rbp jz short loc_63AE1 mov rsi, [rsp+0B8h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_63AE1: mov rdi, [rsp+0B8h+var_70]; void * cmp rdi, r13 jz short loc_63AF8 mov rsi, [rsp+0B8h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_63AF8: mov al, cs:_ZGVZN7httplib6detail12parse_headerIZNS0_12read_headersERNS_6StreamERSt18unordered_multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_NS0_11case_ignore4hashENSB_8equal_toESaISt4pairIKSA_SA_EEEEUlRSF_RSA_E_EEbPKcSO_T_E9CR_LF_NULB5cxx11; `guard variable for'httplib::detail::parse_header<httplib::detail::read_headers(httplib::Stream &,std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> &)::{lambda(std::string const&,std::string&)#1}>(char const*,char const*,httplib::detail::read_headers(httplib::Stream &,std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> &)::{lambda(std::string const&,std::string&)#1})::CR_LF_NUL test al, al jz short loc_63B75 loc_63B02: mov rsi, cs:_ZZN7httplib6detail12parse_headerIZNS0_12read_headersERNS_6StreamERSt18unordered_multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_NS0_11case_ignore4hashENSB_8equal_toESaISt4pairIKSA_SA_EEEEUlRSF_RSA_E_EEbPKcSO_T_E9CR_LF_NULB5cxx11; httplib::detail::parse_header<httplib::detail::read_headers(httplib::Stream &,std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> &)::{lambda(std::string const&,std::string&)#1}>(char const*,char const*,httplib::detail::read_headers(httplib::Stream &,std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> &)::{lambda(std::string const&,std::string&)#1})::CR_LF_NUL mov rcx, cs:qword_2CCDD8 lea rdi, [rsp+0B8h+var_B0] xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13find_first_ofEPKcmm; std::string::find_first_of(char const*,ulong,ulong) cmp rax, 0FFFFFFFFFFFFFFFFh setz bpl jnz short loc_63B3A lea rdx, [rsp+0B8h+var_90] lea rcx, [rsp+0B8h+var_B0] mov rdi, rbx xor esi, esi call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESaIS8_ENSt8__detail10_Select1stEN7httplib6detail11case_ignore8equal_toENSE_4hashENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb0EEEE10_M_emplaceIJRS7_RS5_EEENSA_14_Node_iteratorIS8_Lb0ELb1EEENSA_20_Node_const_iteratorIS8_Lb0ELb1EEESt17integral_constantIbLb0EEDpOT_; std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::_M_emplace<std::string const&,std::string&>(std::__detail::_Node_const_iterator<std::pair<std::string const,std::string>,false,true>,std::integral_constant<bool,false>,std::string const&,std::string&) loc_63B3A: lea rax, [rsp+0B8h+var_A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_63B55 mov rsi, [rsp+0B8h+var_A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_63B55: mov rdi, [rsp+0B8h+var_90]; void * cmp rdi, r12 jz loc_63A8C mov rsi, [rsp+0B8h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_63A8C loc_63B75: call _ZN7httplib6detail12parse_headerIZNS0_12read_headersERNS_6StreamERSt18unordered_multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_NS0_11case_ignore4hashENSB_8equal_toESaISt4pairIKSA_SA_EEEEUlRSF_RSA_E_EEbPKcSO_T__cold_1; httplib::detail::parse_header<httplib::detail::read_headers(httplib::Stream &,std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> &)::{lambda(std::string const&,std::string&)#1}>(char const*,char const*,httplib::detail::read_headers(httplib::Stream &,std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> &)::{lambda(std::string const&,std::string&)#1}) [clone] jmp short loc_63B02 jmp short loc_63BB2 mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h] cmp rdi, rax jz short loc_63BD1 mov rsi, [rsp+arg_10] jmp short loc_63BC4 mov rbx, rax mov rdi, [rsp+arg_60]; void * cmp rdi, rbp jz short loc_63BB5 mov rsi, [rsp+arg_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_63BB5 loc_63BB2: mov rbx, rax loc_63BB5: mov rdi, [rsp+arg_40]; void * cmp rdi, r13 jz short loc_63BD1 mov rsi, [rsp+arg_50] loc_63BC4: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_63BD1 mov rbx, rax loc_63BD1: mov rdi, [rsp+arg_20]; void * cmp rdi, r12 jz short loc_63BE8 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_63BE8: mov rdi, rbx call __Unwind_Resume
long long httplib::detail::parse_header<httplib::detail::read_headers(httplib::Stream &,std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> &)::{lambda(std::string const&,std::string&)#1}>( _BYTE *a1, unsigned long long a2, int a3) { int v6; // eax _BYTE *v7; // rdx unsigned long long v8; // rax _BYTE *v9; // r15 long long v10; // rax int v11; // edi _QWORD *v12; // rbp long long v13; // rsi long long first_of; // rax int v16; // r8d int v17; // r9d void *v18[2]; // [rsp+8h] [rbp-B0h] BYREF _QWORD v19[2]; // [rsp+18h] [rbp-A0h] BYREF void *v20; // [rsp+28h] [rbp-90h] BYREF void *v21; // [rsp+30h] [rbp-88h] _QWORD v22[2]; // [rsp+38h] [rbp-80h] BYREF void *v23[2]; // [rsp+48h] [rbp-70h] BYREF _QWORD v24[2]; // [rsp+58h] [rbp-60h] BYREF void *v25[2]; // [rsp+68h] [rbp-50h] BYREF _QWORD v26[8]; // [rsp+78h] [rbp-40h] BYREF if ( a2 > (unsigned long long)a1 ) { while ( 1 ) { v6 = *(unsigned __int8 *)(a2 - 1); if ( v6 != 32 && v6 != 9 ) break; if ( --a2 <= (unsigned long long)a1 ) { a2 = (unsigned long long)a1; break; } } } v7 = a1; if ( a2 > (unsigned long long)a1 ) { v8 = a2 - (_QWORD)a1; v7 = a1; while ( *v7 != 58 ) { ++v7; if ( !--v8 ) { v7 = (_BYTE *)a2; break; } } } if ( v7 == (_BYTE *)a2 || *v7 != 58 ) { LODWORD(v12) = 0; return (unsigned int)v12; } v9 = v7 + 1; if ( (unsigned long long)(v7 + 1) < a2 ) { v10 = a2 - (_QWORD)v7 - 1; while ( 1 ) { v11 = (unsigned __int8)*v9; if ( v11 != 32 && v11 != 9 ) break; ++v9; if ( !--v10 ) { v9 = (_BYTE *)a2; break; } } } LODWORD(v12) = 0; if ( v7 != a1 && (unsigned long long)v9 <= a2 ) { v20 = v22; std::string::_M_construct<char const*>((long long)&v20, a1, (long long)v7); v23[0] = v24; std::string::_M_construct<char const*>((long long)v23, "Location", (long long)""); if ( v21 == v23[1] ) { if ( !v21 ) { LABEL_26: v18[0] = v19; std::string::_M_construct<char const*>((long long)v18, v9, a2); LABEL_31: if ( v23[0] != v24 ) operator delete(v23[0], v24[0] + 1LL); if ( !(_BYTE)`guard variable for'bool httplib::detail::parse_header<httplib::detail::read_headers(httplib::Stream &,std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> &)::{lambda(std::string const&,std::string&)#1}>(char const*,char const*,httplib::detail::read_headers(httplib::Stream &,std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> &)::{lambda(std::string const&,std::string&)#1})::CR_LF_NUL[abi:cxx11] ) httplib::detail::parse_header<httplib::detail::read_headers(httplib::Stream &,std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> &)::{lambda(std::string const&,std::string&)#1}>(); first_of = std::string::find_first_of( v18, httplib::detail::parse_header<httplib::detail::read_headers(httplib::Stream &,std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> &)::{lambda(std::string const&,std::string&)#1}>(char const*,char const*,httplib::detail::read_headers(httplib::Stream &,std::unordered_multimap<std::string,std::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::string const,std::string>>> &)::{lambda(std::string const&,std::string&)#1})::CR_LF_NUL[abi:cxx11], 0LL, qword_2CCDD8); LOBYTE(v12) = first_of == -1; if ( first_of == -1 ) std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::_M_emplace<std::string const&,std::string&>( a3, 0, (unsigned int)&v20, (unsigned int)v18, v16, v17); if ( v18[0] != v19 ) operator delete(v18[0], v19[0] + 1LL); if ( v20 != v22 ) operator delete(v20, v22[0] + 1LL); return (unsigned int)v12; } v13 = 0LL; while ( httplib::detail::case_ignore::to_lower(int)::table[*((unsigned __int8 *)v20 + v13)] == httplib::detail::case_ignore::to_lower(int)::table[*((unsigned __int8 *)v23[0] + v13)] ) { if ( v21 == (void *)++v13 ) goto LABEL_26; } } v12 = v26; v25[0] = v26; std::string::_M_construct<char const*>((long long)v25, v9, a2); httplib::detail::decode_url(v18, v25, 0LL); if ( v25[0] != v26 ) operator delete(v25[0], v26[0] + 1LL); goto LABEL_31; } return (unsigned int)v12; }
parse_header<httplib::detail::read_headers(httplib::Stream&,std::unordered_multimap<std::__cxx11::string,std::__cxx11::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>&)::{lambda(std::__cxx11::string_const&,std::__cxx11::string&)#1}>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV RBX,RDX MOV R14,RSI MOV RSI,RDI CMP R14,RDI JBE 0x00163984 LAB_0016396a: MOVZX EAX,byte ptr [R14 + -0x1] CMP EAX,0x20 JZ 0x00163979 CMP EAX,0x9 JNZ 0x00163984 LAB_00163979: DEC R14 CMP R14,RSI JA 0x0016396a MOV R14,RSI LAB_00163984: MOV RDX,RSI CMP R14,RSI JBE 0x001639a5 MOV RAX,R14 SUB RAX,RSI MOV RDX,RSI LAB_00163995: CMP byte ptr [RDX],0x3a JZ 0x001639a5 INC RDX DEC RAX JNZ 0x00163995 MOV RDX,R14 LAB_001639a5: CMP RDX,R14 JZ 0x00163a8a CMP byte ptr [RDX],0x3a JNZ 0x00163a8a LEA R15,[RDX + 0x1] CMP R15,R14 JNC 0x001639e6 MOV RAX,R14 SUB RAX,RDX LEA RCX,[RDX + RAX*0x1] DEC RAX LAB_001639cd: MOVZX EDI,byte ptr [R15] CMP EDI,0x20 JZ 0x001639db CMP EDI,0x9 JNZ 0x001639e6 LAB_001639db: INC R15 DEC RAX JNZ 0x001639cd MOV R15,RCX LAB_001639e6: XOR EBP,EBP CMP RDX,RSI JZ 0x00163a8c CMP R15,R14 JA 0x00163a8c LEA R12,[RSP + 0x38] MOV qword ptr [R12 + -0x10],R12 LEA RDI,[RSP + 0x28] CALL 0x0014b514 LEA R13,[RSP + 0x58] MOV qword ptr [R13 + -0x10],R13 LAB_00163a17: LEA RSI,[0x246fc6] LEA RDX,[0x246fce] LEA RDI,[RSP + 0x48] CALL 0x0014b514 MOV RAX,qword ptr [RSP + 0x30] CMP RAX,qword ptr [RSP + 0x50] JNZ 0x00163aa0 TEST RAX,RAX JZ 0x00163a6f MOV RCX,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x48] XOR ESI,ESI LEA RDI,[0x24c820] LAB_00163a53: MOVZX R8D,byte ptr [RCX + RSI*0x1] MOVZX R9D,byte ptr [RDX + RSI*0x1] MOV R8B,byte ptr [R8 + RDI*0x1] CMP R8B,byte ptr [R9 + RDI*0x1] JNZ 0x00163aa0 INC RSI CMP RAX,RSI JNZ 0x00163a53 LAB_00163a6f: LEA RAX,[RSP + 0x18] MOV qword ptr [RAX + -0x10],RAX LAB_00163a78: LEA RDI,[RSP + 0x8] MOV RSI,R15 MOV RDX,R14 CALL 0x0014b514 JMP 0x00163ae1 LAB_00163a8a: XOR EBP,EBP LAB_00163a8c: MOV EAX,EBP ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00163aa0: LEA RBP,[RSP + 0x78] MOV qword ptr [RBP + -0x10],RBP LAB_00163aa9: LEA RDI,[RSP + 0x68] MOV RSI,R15 MOV RDX,R14 CALL 0x0014b514 LAB_00163ab9: LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x68] XOR EDX,EDX CALL 0x00163bf0 MOV RDI,qword ptr [RSP + 0x68] CMP RDI,RBP JZ 0x00163ae1 MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x0011fae0 LAB_00163ae1: MOV RDI,qword ptr [RSP + 0x48] CMP RDI,R13 JZ 0x00163af8 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0011fae0 LAB_00163af8: MOV AL,byte ptr [0x003ccdf0] TEST AL,AL JZ 0x00163b75 LAB_00163b02: MOV RSI,qword ptr [0x003ccdd0] MOV RCX,qword ptr [0x003ccdd8] LEA RDI,[RSP + 0x8] XOR EDX,EDX CALL 0x00120040 CMP RAX,-0x1 SETZ BPL JNZ 0x00163b3a LAB_00163b26: LEA RDX,[RSP + 0x28] LEA RCX,[RSP + 0x8] MOV RDI,RBX XOR ESI,ESI CALL 0x00163e7e LAB_00163b3a: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00163b55 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011fae0 LAB_00163b55: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R12 JZ 0x00163a8c MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011fae0 JMP 0x00163a8c LAB_00163b75: CALL 0x00120b31 JMP 0x00163b02
/* bool httplib::detail::parse_header<httplib::detail::read_headers(httplib::Stream&, std::unordered_multimap<std::__cxx11::string, std::__cxx11::string, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to, std::allocator<std::pair<std::__cxx11::string const, std::__cxx11::string > > >&)::{lambda(std::__cxx11::string const&, std::__cxx11::string&)#1}>(char const*, char const*, httplib::detail::read_headers(httplib::Stream&, std::unordered_multimap<std::__cxx11::string, std::__cxx11::string, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to, std::allocator<std::pair<std::__cxx11::string const, std::__cxx11::string > > >&)::{lambda(std::__cxx11::string const&, std::__cxx11::string&)#1}) */ bool httplib::detail:: parse_header<httplib::detail::read_headers(httplib::Stream&,std::unordered_multimap<std::__cxx11::string,std::__cxx11::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>&)::_lambda(std::__cxx11::string_const&,std::__cxx11::string&)_1_> (char *param_1,char *param_2,int8 param_3) { long lVar1; char *pcVar2; char *pcVar3; char *pcVar4; char *pcVar5; bool bVar6; long *local_b0 [2]; long local_a0 [2]; long *local_90; long local_88; long local_80 [2]; long *local_70; long local_68; long local_60 [2]; long *local_50 [2]; long local_40 [2]; pcVar4 = param_2; if (param_1 < param_2) { do { if ((param_2[-1] != ' ') && (pcVar4 = param_2, param_2[-1] != '\t')) break; param_2 = param_2 + -1; pcVar4 = param_1; } while (param_1 < param_2); } pcVar3 = param_1; if (param_1 < pcVar4) { lVar1 = (long)pcVar4 - (long)param_1; pcVar2 = param_1; do { pcVar3 = pcVar2; if (*pcVar2 == ':') break; pcVar2 = pcVar2 + 1; lVar1 = lVar1 + -1; pcVar3 = pcVar4; } while (lVar1 != 0); } if ((pcVar3 == pcVar4) || (*pcVar3 != ':')) { bVar6 = false; } else { pcVar2 = pcVar3 + 1; pcVar5 = pcVar2; if (pcVar2 < pcVar4) { lVar1 = ((long)pcVar4 - (long)pcVar3) + -1; do { if ((*pcVar2 != ' ') && (pcVar5 = pcVar2, *pcVar2 != '\t')) break; pcVar2 = pcVar2 + 1; lVar1 = lVar1 + -1; pcVar5 = pcVar3 + ((long)pcVar4 - (long)pcVar3); } while (lVar1 != 0); } bVar6 = false; if ((pcVar3 != param_1) && (bVar6 = false, pcVar5 <= pcVar4)) { local_90 = local_80; std::__cxx11::string::_M_construct<char_const*>(&local_90); /* try { // try from 00163a17 to 00163a2e has its CatchHandler @ 00163bce */ local_70 = local_60; std::__cxx11::string::_M_construct<char_const*>(&local_70,"Location",""); if (local_88 == local_68) { if (local_88 != 0) { lVar1 = 0; do { if (case_ignore::to_lower(int)::table[*(byte *)((long)local_90 + lVar1)] != case_ignore::to_lower(int)::table[*(byte *)((long)local_70 + lVar1)]) goto LAB_00163aa0; lVar1 = lVar1 + 1; } while (local_88 != lVar1); } local_b0[0] = local_a0; /* try { // try from 00163a78 to 00163a87 has its CatchHandler @ 00163b7c */ std::__cxx11::string::_M_construct<char_const*>(local_b0,pcVar5,pcVar4); } else { LAB_00163aa0: /* try { // try from 00163aa9 to 00163ab8 has its CatchHandler @ 00163bb2 */ local_50[0] = local_40; std::__cxx11::string::_M_construct<char_const*>(local_50,pcVar5,pcVar4); /* try { // try from 00163ab9 to 00163ac9 has its CatchHandler @ 00163b96 */ decode_url((string *)local_b0,SUB81(local_50,0)); if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } } if (local_70 != local_60) { operator_delete(local_70,local_60[0] + 1); } if (parse_header<httplib::detail::read_headers(httplib::Stream&,std::unordered_multimap<std::__cxx11::string,std::__cxx11::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>&)::{lambda(std::__cxx11::string_const&,std::__cxx11::string&)#1}>(char_const*,char_const*,httplib::detail::read_headers(httplib::Stream&,std::unordered_multimap<std::__cxx11::string,std::__cxx11::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>&)::{lambda(std::__cxx11::string_const&,std::__cxx11::string&)#1}) ::CR_LF_NUL_abi_cxx11_ == '\0') { parse_header<httplib::detail::read_headers(httplib::Stream&,std::unordered_multimap<std::__cxx11::string,std::__cxx11::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>&)::_lambda(std::__cxx11::string_const&,std::__cxx11::string&)_1_> (); } lVar1 = std::__cxx11::string::find_first_of ((char *)local_b0, parse_header<httplib::detail::read_headers(httplib::Stream&,std::unordered_multimap<std::__cxx11::string,std::__cxx11::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>&)::{lambda(std::__cxx11::string_const&,std::__cxx11::string&)#1}>(char_const*,char_const*,httplib::detail::read_headers(httplib::Stream&,std::unordered_multimap<std::__cxx11::string,std::__cxx11::string,httplib::detail::case_ignore::hash,httplib::detail::case_ignore::equal_to,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>&)::{lambda(std::__cxx11::string_const&,std::__cxx11::string&)#1}) ::CR_LF_NUL_abi_cxx11_,0); bVar6 = lVar1 == -1; if (bVar6) { /* try { // try from 00163b26 to 00163b39 has its CatchHandler @ 00163b7e */ std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>> ::_M_emplace<std::__cxx11::string_const&,std::__cxx11::string&> (param_3,0,&local_90,local_b0); } if (local_b0[0] != local_a0) { operator_delete(local_b0[0],local_a0[0] + 1); } if (local_90 != local_80) { operator_delete(local_90,local_80[0] + 1); } } } return bVar6; }
34,024
google::protobuf::internal::EpsCopyInputStream::ReadStringFallback(char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/parse_context.cc
const char* EpsCopyInputStream::ReadStringFallback(const char* ptr, int size, std::string* str) { str->clear(); if (PROTOBUF_PREDICT_TRUE(size <= buffer_end_ - ptr + limit_)) { // Reserve the string up to a static safe size. If strings are bigger than // this we proceed by growing the string as needed. This protects against // malicious payloads making protobuf hold on to a lot of memory. str->reserve(str->size() + std::min<int>(size, kSafeStringSize)); } return AppendSize(ptr, size, [str](const char* p, int s) { str->append(p, s); }); }
O0
cpp
google::protobuf::internal::EpsCopyInputStream::ReadStringFallback(char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*): subq $0x48, %rsp movq %rdi, 0x40(%rsp) movq %rsi, 0x38(%rsp) movl %edx, 0x34(%rsp) movq %rcx, 0x28(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x28(%rsp), %rdi callq 0x21600 movq 0x10(%rsp), %rdx movslq 0x34(%rsp), %rax movq 0x8(%rdx), %rcx movq 0x38(%rsp), %rsi subq %rsi, %rcx movslq 0x1c(%rdx), %rdx addq %rdx, %rcx cmpq %rcx, %rax jg 0x1f8510 movq 0x28(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x28(%rsp), %rdi callq 0x21300 movq %rax, (%rsp) movl $0x2faf080, 0x24(%rsp) # imm = 0x2FAF080 leaq 0x34(%rsp), %rdi leaq 0x24(%rsp), %rsi callq 0x5f0e0 movq (%rsp), %rsi movq 0x8(%rsp), %rdi movslq (%rax), %rax addq %rax, %rsi callq 0x21850 movq 0x10(%rsp), %rdi movq 0x38(%rsp), %rsi movl 0x34(%rsp), %edx movq 0x28(%rsp), %rax movq %rax, 0x18(%rsp) leaq 0x18(%rsp), %rcx callq 0x1f8540 addq $0x48, %rsp retq nopw (%rax,%rax)
_ZN6google8protobuf8internal18EpsCopyInputStream18ReadStringFallbackEPKciPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: sub rsp, 48h mov [rsp+48h+var_8], rdi mov [rsp+48h+var_10], rsi mov [rsp+48h+var_14], edx mov [rsp+48h+var_20], rcx mov rax, [rsp+48h+var_8] mov [rsp+48h+var_38], rax mov rdi, [rsp+48h+var_20] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv; std::string::clear(void) mov rdx, [rsp+48h+var_38] movsxd rax, [rsp+48h+var_14] mov rcx, [rdx+8] mov rsi, [rsp+48h+var_10] sub rcx, rsi movsxd rdx, dword ptr [rdx+1Ch] add rcx, rdx cmp rax, rcx jg short loc_1F8510 mov rax, [rsp+48h+var_20] mov [rsp+48h+var_40], rax mov rdi, [rsp+48h+var_20] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov [rsp+48h+var_48], rax mov [rsp+48h+var_24], 2FAF080h lea rdi, [rsp+48h+var_14] lea rsi, [rsp+48h+var_24] call _ZSt3minIiERKT_S2_S2_; std::min<int>(int const&,int const&) mov rsi, [rsp+48h+var_48] mov rdi, [rsp+48h+var_40] movsxd rax, dword ptr [rax] add rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) loc_1F8510: mov rdi, [rsp+48h+var_38] mov rsi, [rsp+48h+var_10] mov edx, [rsp+48h+var_14] mov rax, [rsp+48h+var_20] mov [rsp+48h+var_30], rax lea rcx, [rsp+48h+var_30] call _ZN6google8protobuf8internal18EpsCopyInputStream10AppendSizeIZNS2_18ReadStringFallbackEPKciPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3$_0EES5_S5_iRKT_; google::protobuf::internal::EpsCopyInputStream::AppendSize<google::protobuf::internal::EpsCopyInputStream::ReadStringFallback(char const*,int,std::string *)::$_0>(char const*,int,google::protobuf::internal::EpsCopyInputStream::ReadStringFallback(char const*,int,std::string *)::$_0 const&) add rsp, 48h retn
long long google::protobuf::internal::EpsCopyInputStream::ReadStringFallback( long long a1, long long a2, int a3, long long a4) { int v4; // r8d int v5; // r9d _DWORD *v6; // rax long long v8; // [rsp+0h] [rbp-48h] long long v9; // [rsp+8h] [rbp-40h] long long v10; // [rsp+18h] [rbp-30h] BYREF int v11; // [rsp+20h] [rbp-28h] int v12; // [rsp+24h] [rbp-24h] BYREF long long v13; // [rsp+28h] [rbp-20h] int v14; // [rsp+34h] [rbp-14h] BYREF long long v15; // [rsp+38h] [rbp-10h] long long v16; // [rsp+40h] [rbp-8h] v16 = a1; v15 = a2; v14 = a3; v13 = a4; std::string::clear(a4); if ( v14 <= *(int *)(a1 + 28) + *(_QWORD *)(a1 + 8) - a2 ) { v9 = v13; v8 = std::string::size(v13); v12 = 50000000; v6 = std::min<int>(&v14, &v12); std::string::reserve(v9, (int)*v6 + v8); } return google::protobuf::internal::EpsCopyInputStream::AppendSize<google::protobuf::internal::EpsCopyInputStream::ReadStringFallback(char const*,int,std::string *)::$_0>( a1, v15, v14, (unsigned int)&v10, v4, v5, v8, v9, a1, v13, v11, v13); }
34,025
google::protobuf::internal::EpsCopyInputStream::ReadStringFallback(char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/parse_context.cc
const char* EpsCopyInputStream::ReadStringFallback(const char* ptr, int size, std::string* str) { str->clear(); if (PROTOBUF_PREDICT_TRUE(size <= buffer_end_ - ptr + limit_)) { // Reserve the string up to a static safe size. If strings are bigger than // this we proceed by growing the string as needed. This protects against // malicious payloads making protobuf hold on to a lot of memory. str->reserve(str->size() + std::min<int>(size, kSafeStringSize)); } return AppendSize(ptr, size, [str](const char* p, int s) { str->append(p, s); }); }
O3
cpp
google::protobuf::internal::EpsCopyInputStream::ReadStringFallback(char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movl %edx, %ebp movq %rsi, %r14 movq %rdi, %r15 andq $0x0, 0x8(%rcx) movq (%rcx), %rax movb $0x0, (%rax) movslq %edx, %rax movq 0x8(%rdi), %r13 movq %r13, %rcx subq %rsi, %rcx movslq 0x1c(%rdi), %rdx addq %rcx, %rdx cmpq %rax, %rdx jl 0x20da1 movl $0x2faf080, %eax # imm = 0x2FAF080 cmpl %eax, %ebp cmovll %ebp, %eax movslq %eax, %rsi addq 0x8(%rbx), %rsi movq %rbx, %rdi callq 0x1f770 movq 0x8(%r15), %r13 subl %r14d, %r13d addl $0x10, %r13d xorl %r12d, %r12d cmpq $0x0, 0x10(%r15) je 0x20e05 movslq %r13d, %rdx movq %rbx, %rdi movq %r14, %rsi callq 0x1f080 cmpl $0x11, 0x1c(%r15) jl 0x20e05 movq %r15, %rdi callq 0xfe504 testq %rax, %rax je 0x20e05 movq %rax, %r14 subl %r13d, %ebp addq $0x10, %r14 movl 0x8(%r15), %r13d subl %r14d, %r13d addl $0x10, %r13d cmpl %r13d, %ebp jg 0x20dab movslq %ebp, %r15 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx callq 0x1f080 addq %r15, %r14 movq %r14, %r12 movq %r12, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZN6google8protobuf8internal18EpsCopyInputStream18ReadStringFallbackEPKciPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rcx mov ebp, edx mov r14, rsi mov r15, rdi and qword ptr [rcx+8], 0 mov rax, [rcx] mov byte ptr [rax], 0 movsxd rax, edx mov r13, [rdi+8] mov rcx, r13 sub rcx, rsi movsxd rdx, dword ptr [rdi+1Ch] add rdx, rcx cmp rdx, rax jl short loc_20DA1 mov eax, 2FAF080h cmp ebp, eax cmovl eax, ebp movsxd rsi, eax add rsi, [rbx+8] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov r13, [r15+8] loc_20DA1: sub r13d, r14d add r13d, 10h xor r12d, r12d loc_20DAB: cmp qword ptr [r15+10h], 0 jz short loc_20E05 movsxd rdx, r13d mov rdi, rbx mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong) cmp dword ptr [r15+1Ch], 11h jl short loc_20E05 mov rdi, r15; this call _ZN6google8protobuf8internal18EpsCopyInputStream4NextEv; google::protobuf::internal::EpsCopyInputStream::Next(void) test rax, rax jz short loc_20E05 mov r14, rax sub ebp, r13d add r14, 10h mov r13d, [r15+8] sub r13d, r14d add r13d, 10h cmp ebp, r13d jg short loc_20DAB movsxd r15, ebp mov rdi, rbx mov rsi, r14 mov rdx, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong) add r14, r15 mov r12, r14 loc_20E05: mov rax, r12 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long google::protobuf::internal::EpsCopyInputStream::ReadStringFallback( google::protobuf::internal::EpsCopyInputStream *this, long long a2, int a3, long long a4) { int v5; // ebp long long v6; // r14 long long v7; // r13 int v8; // eax int v9; // r13d long long v10; // r12 long long v11; // rax v5 = a3; v6 = a2; *(_QWORD *)(a4 + 8) = 0LL; **(_BYTE **)a4 = 0; v7 = *((_QWORD *)this + 1); if ( v7 - a2 + *((int *)this + 7) >= a3 ) { v8 = 50000000; if ( a3 < 50000000 ) v8 = a3; std::string::reserve(a4, *(_QWORD *)(a4 + 8) + v8); v7 = *((_QWORD *)this + 1); } v9 = v7 - a2 + 16; v10 = 0LL; while ( *((_QWORD *)this + 2) ) { std::string::append(a4, v6, v9); if ( *((int *)this + 7) < 17 ) break; v11 = google::protobuf::internal::EpsCopyInputStream::Next(this); if ( !v11 ) break; v5 -= v9; v6 = v11 + 16; v9 = *((_DWORD *)this + 2) - v11; if ( v5 <= v9 ) { std::string::append(a4, v11 + 16, v5); return v5 + v6; } } return v10; }
ReadStringFallback: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RCX MOV EBP,EDX MOV R14,RSI MOV R15,RDI AND qword ptr [RCX + 0x8],0x0 MOV RAX,qword ptr [RCX] MOV byte ptr [RAX],0x0 MOVSXD RAX,EDX MOV R13,qword ptr [RDI + 0x8] MOV RCX,R13 SUB RCX,RSI MOVSXD RDX,dword ptr [RDI + 0x1c] ADD RDX,RCX CMP RDX,RAX JL 0x00120da1 MOV EAX,0x2faf080 CMP EBP,EAX CMOVL EAX,EBP MOVSXD RSI,EAX ADD RSI,qword ptr [RBX + 0x8] MOV RDI,RBX CALL 0x0011f770 MOV R13,qword ptr [R15 + 0x8] LAB_00120da1: SUB R13D,R14D ADD R13D,0x10 XOR R12D,R12D LAB_00120dab: CMP qword ptr [R15 + 0x10],0x0 JZ 0x00120e05 MOVSXD RDX,R13D MOV RDI,RBX MOV RSI,R14 CALL 0x0011f080 CMP dword ptr [R15 + 0x1c],0x11 JL 0x00120e05 MOV RDI,R15 CALL 0x001fe504 TEST RAX,RAX JZ 0x00120e05 MOV R14,RAX SUB EBP,R13D ADD R14,0x10 MOV R13D,dword ptr [R15 + 0x8] SUB R13D,R14D ADD R13D,0x10 CMP EBP,R13D JG 0x00120dab MOVSXD R15,EBP MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 CALL 0x0011f080 ADD R14,R15 MOV R12,R14 LAB_00120e05: MOV RAX,R12 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* google::protobuf::internal::EpsCopyInputStream::ReadStringFallback(char const*, int, std::__cxx11::string*) */ char * __thiscall google::protobuf::internal::EpsCopyInputStream::ReadStringFallback (EpsCopyInputStream *this,char *param_1,int param_2,string *param_3) { long lVar1; int iVar2; *(int8 *)(param_3 + 8) = 0; **(int1 **)param_3 = 0; lVar1 = *(long *)(this + 8); if ((long)param_2 <= (long)*(int *)(this + 0x1c) + (lVar1 - (long)param_1)) { std::__cxx11::string::reserve((ulong)param_3); lVar1 = *(long *)(this + 8); } iVar2 = ((int)lVar1 - (int)param_1) + 0x10; do { if (*(long *)(this + 0x10) == 0) { return (char *)0x0; } std::__cxx11::string::append((char *)param_3,(ulong)param_1); if (*(int *)(this + 0x1c) < 0x11) { return (char *)0x0; } lVar1 = Next(this); if (lVar1 == 0) { return (char *)0x0; } param_2 = param_2 - iVar2; param_1 = (char *)(lVar1 + 0x10); iVar2 = (*(int *)(this + 8) - (int)param_1) + 0x10; } while (iVar2 < param_2); std::__cxx11::string::append((char *)param_3,(ulong)param_1); return param_1 + param_2; }
34,026
CLI::Option::~Option()
MikePodsytnik[P]TCRtrie/build_O0/_deps/cli11-src/include/CLI/Option.hpp
class Option : public OptionBase<Option> { friend App; protected: /// @name Names ///@{ /// A list of the short names (`-a`) without the leading dashes std::vector<std::string> snames_{}; /// A list of the long names (`--long`) without the leading dashes std::vector<std::string> lnames_{}; /// A list of the flag names with the appropriate default value, the first part of the pair should be duplicates of /// what is in snames or lnames but will trigger a particular response on a flag std::vector<std::pair<std::string, std::string>> default_flag_values_{}; /// a list of flag names with specified default values; std::vector<std::string> fnames_{}; /// A positional name std::string pname_{}; /// If given, check the environment for this option std::string envname_{}; ///@} /// @name Help ///@{ /// The description for help strings std::string description_{}; /// A human readable default value, either manually set, captured, or captured by default std::string default_str_{}; /// If given, replace the text that describes the option type and usage in the help text std::string option_text_{}; /// A human readable type value, set when App creates this /// /// This is a lambda function so "types" can be dynamic, such as when a set prints its contents. std::function<std::string()> type_name_{[]() { return std::string(); }}; /// Run this function to capture a default (ignore if empty) std::function<std::string()> default_function_{}; ///@} /// @name Configuration ///@{ /// The number of arguments that make up one option. max is the nominal type size, min is the minimum number of /// strings int type_size_max_{1}; /// The minimum number of arguments an option should be expecting int type_size_min_{1}; /// The minimum number of expected values int expected_min_{1}; /// The maximum number of expected values int expected_max_{1}; /// A list of Validators to run on each value parsed std::vector<Validator> validators_{}; /// A list of options that are required with this option std::set<Option *> needs_{}; /// A list of options that are excluded with this option std::set<Option *> excludes_{}; ///@} /// @name Other ///@{ /// link back up to the parent App for fallthrough App *parent_{nullptr}; /// Options store a callback to do all the work callback_t callback_{}; ///@} /// @name Parsing results ///@{ /// complete Results of parsing results_t results_{}; /// results after reduction results_t proc_results_{}; /// enumeration for the option state machine enum class option_state : char { parsing = 0, //!< The option is currently collecting parsed results validated = 2, //!< the results have been validated reduced = 4, //!< a subset of results has been generated callback_run = 6, //!< the callback has been executed }; /// Whether the callback has run (needed for INI parsing) option_state current_option_state_{option_state::parsing}; /// Specify that extra args beyond type_size_max should be allowed bool allow_extra_args_{false}; /// Specify that the option should act like a flag vs regular option bool flag_like_{false}; /// Control option to run the callback to set the default bool run_callback_for_default_{false}; /// flag indicating a separator needs to be injected after each argument call bool inject_separator_{false}; /// flag indicating that the option should trigger the validation and callback chain on each result when loaded bool trigger_on_result_{false}; /// flag indicating that the option should force the callback regardless if any results present bool force_callback_{false}; ///@} /// Making an option by hand is not defined, it must be made by the App class Option(std::string option_name, std::string option_description, callback_t callback, App *parent) : description_(std::move(option_description)), parent_(parent), callback_(std::move(callback)) { std::tie(snames_, lnames_, pname_) = detail::get_names(detail::split_names(option_name)); } public: /// @name Basic ///@{ Option(const Option &) = delete; Option &operator=(const Option &) = delete; /// Count the total number of times an option was passed CLI11_NODISCARD std::size_t count() const { return results_.size(); } /// True if the option was not passed CLI11_NODISCARD bool empty() const { return results_.empty(); }
O0
cpp
CLI::Option::~Option(): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) addq $0x230, %rdi # imm = 0x230 callq 0xe270 movq -0x10(%rbp), %rdi addq $0x218, %rdi # imm = 0x218 callq 0xe270 movq -0x10(%rbp), %rdi addq $0x1f8, %rdi # imm = 0x1F8 callq 0x29720 movq -0x10(%rbp), %rdi addq $0x1c0, %rdi # imm = 0x1C0 callq 0x26560 movq -0x10(%rbp), %rdi addq $0x190, %rdi # imm = 0x190 callq 0x26560 movq -0x10(%rbp), %rdi addq $0x178, %rdi # imm = 0x178 callq 0x29740 movq -0x10(%rbp), %rdi addq $0x148, %rdi # imm = 0x148 callq 0x156a0 movq -0x10(%rbp), %rdi addq $0x128, %rdi # imm = 0x128 callq 0x156a0 movq -0x10(%rbp), %rdi addq $0x108, %rdi # imm = 0x108 callq 0x9b90 movq -0x10(%rbp), %rdi addq $0xe8, %rdi callq 0x9b90 movq -0x10(%rbp), %rdi addq $0xc8, %rdi callq 0x9b90 movq -0x10(%rbp), %rdi addq $0xa8, %rdi callq 0x9b90 movq -0x10(%rbp), %rdi addq $0x88, %rdi callq 0x9b90 movq -0x10(%rbp), %rdi addq $0x70, %rdi callq 0xe270 movq -0x10(%rbp), %rdi addq $0x58, %rdi callq 0x297a0 movq -0x10(%rbp), %rdi addq $0x40, %rdi callq 0xe270 movq -0x10(%rbp), %rdi addq $0x28, %rdi callq 0xe270 movq -0x10(%rbp), %rdi callq 0x29800 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
_ZN3CLI6OptionD2Ev: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8] mov [rbp+var_10], rdi add rdi, 230h call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rbp+var_10] add rdi, 218h call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rbp+var_10] add rdi, 1F8h call _ZNSt8functionIFbRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEEED2Ev; std::function<bool ()(std::vector<std::string> const&)>::~function() mov rdi, [rbp+var_10] add rdi, 1C0h call _ZNSt3setIPN3CLI6OptionESt4lessIS2_ESaIS2_EED2Ev; std::set<CLI::Option *>::~set() mov rdi, [rbp+var_10] add rdi, 190h call _ZNSt3setIPN3CLI6OptionESt4lessIS2_ESaIS2_EED2Ev; std::set<CLI::Option *>::~set() mov rdi, [rbp+var_10] add rdi, 178h call _ZNSt6vectorIN3CLI9ValidatorESaIS1_EED2Ev; std::vector<CLI::Validator>::~vector() mov rdi, [rbp+var_10] add rdi, 148h call _ZNSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEvEED2Ev; std::function<std::string ()(void)>::~function() mov rdi, [rbp+var_10] add rdi, 128h call _ZNSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEvEED2Ev; std::function<std::string ()(void)>::~function() mov rdi, [rbp+var_10] add rdi, 108h; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rdi, [rbp+var_10] add rdi, 0E8h; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rdi, [rbp+var_10] add rdi, 0C8h; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rdi, [rbp+var_10] add rdi, 0A8h; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rdi, [rbp+var_10] add rdi, 88h; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rdi, [rbp+var_10] add rdi, 70h ; 'p' call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rbp+var_10] add rdi, 58h ; 'X' call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EED2Ev; std::vector<std::pair<std::string,std::string>>::~vector() mov rdi, [rbp+var_10] add rdi, 40h ; '@' call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rbp+var_10] add rdi, 28h ; '(' call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rbp+var_10] call _ZN3CLI10OptionBaseINS_6OptionEED2Ev; CLI::OptionBase<CLI::Option>::~OptionBase() add rsp, 10h pop rbp retn
void CLI::Option::~Option(CLI::Option *this) { std::vector<std::string>::~vector((long long *)this + 70); std::vector<std::string>::~vector((long long *)this + 67); std::function<bool ()(std::vector<std::string> const&)>::~function((char *)this + 504); std::set<CLI::Option *>::~set((long long)this + 448); std::set<CLI::Option *>::~set((long long)this + 400); std::vector<CLI::Validator>::~vector((char *)this + 376); std::function<std::string ()(void)>::~function((CLI::Option *)((char *)this + 328)); std::function<std::string ()(void)>::~function((CLI::Option *)((char *)this + 296)); std::string::~string((char *)this + 264); std::string::~string((char *)this + 232); std::string::~string((char *)this + 200); std::string::~string((char *)this + 168); std::string::~string((char *)this + 136); std::vector<std::string>::~vector((long long *)this + 14); std::vector<std::pair<std::string,std::string>>::~vector((char *)this + 88); std::vector<std::string>::~vector((long long *)this + 8); std::vector<std::string>::~vector((long long *)this + 5); CLI::OptionBase<CLI::Option>::~OptionBase(this); }
~Option: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RDI ADD RDI,0x230 CALL 0x0010e270 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x218 CALL 0x0010e270 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x1f8 CALL 0x00129720 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x1c0 CALL 0x00126560 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x190 CALL 0x00126560 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x178 CALL 0x00129740 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x148 CALL 0x001156a0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x128 CALL 0x001156a0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x108 CALL 0x00109b90 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xe8 CALL 0x00109b90 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xc8 CALL 0x00109b90 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xa8 CALL 0x00109b90 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x88 CALL 0x00109b90 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x70 CALL 0x0010e270 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x58 CALL 0x001297a0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x40 CALL 0x0010e270 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x28 CALL 0x0010e270 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00129800 ADD RSP,0x10 POP RBP RET
/* CLI::Option::~Option() */ void __thiscall CLI::Option::~Option(Option *this) { std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x230)); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x218)); std::function<bool(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)> ::~function((function<bool(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)> *)(this + 0x1f8)); std::set<CLI::Option*,std::less<CLI::Option*>,std::allocator<CLI::Option*>>::~set ((set<CLI::Option*,std::less<CLI::Option*>,std::allocator<CLI::Option*>> *) (this + 0x1c0)); std::set<CLI::Option*,std::less<CLI::Option*>,std::allocator<CLI::Option*>>::~set ((set<CLI::Option*,std::less<CLI::Option*>,std::allocator<CLI::Option*>> *)(this + 400)) ; std::vector<CLI::Validator,std::allocator<CLI::Validator>>::~vector ((vector<CLI::Validator,std::allocator<CLI::Validator>> *)(this + 0x178)); std::function<std::__cxx11::string()>::~function ((function<std::__cxx11::string()> *)(this + 0x148)); std::function<std::__cxx11::string()>::~function ((function<std::__cxx11::string()> *)(this + 0x128)); std::__cxx11::string::~string((string *)(this + 0x108)); std::__cxx11::string::~string((string *)(this + 0xe8)); std::__cxx11::string::~string((string *)(this + 200)); std::__cxx11::string::~string((string *)(this + 0xa8)); std::__cxx11::string::~string((string *)(this + 0x88)); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x70)); std:: vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>> ::~vector((vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>> *)(this + 0x58)); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x40)); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x28)); OptionBase<CLI::Option>::~OptionBase((OptionBase<CLI::Option> *)this); return; }
34,027
mysql_stmt_use_result
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
MYSQL_RES *_mysql_stmt_use_result(MYSQL_STMT *stmt) { MYSQL *mysql= stmt->mysql; if (!stmt->field_count || (!stmt->cursor_exists && mysql->status != MYSQL_STATUS_STMT_RESULT) || (stmt->cursor_exists && mysql->status != MYSQL_STATUS_READY) || (stmt->state != MYSQL_STMT_WAITING_USE_OR_STORE)) { SET_CLIENT_ERROR(mysql, CR_COMMANDS_OUT_OF_SYNC, SQLSTATE_UNKNOWN, 0); return(NULL); } CLEAR_CLIENT_STMT_ERROR(stmt); stmt->state = MYSQL_STMT_USE_OR_STORE_CALLED; if (!stmt->cursor_exists) stmt->fetch_row_func= stmt_unbuffered_fetch; //mysql_stmt_fetch_unbuffered_row; else stmt->fetch_row_func= stmt_cursor_fetch; return(NULL); }
O3
c
mysql_stmt_use_result: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq 0x38(%rdi), %rbx cmpl $0x0, 0x60(%rdi) je 0x23372 movb 0x338(%rdi), %al movl 0x488(%rbx), %ecx testb %al, %al je 0x2332f testl %ecx, %ecx jne 0x23372 jmp 0x23334 cmpl $0x8, %ecx jne 0x23372 cmpl $0x3, 0x50(%rdi) jne 0x23372 movl $0x0, 0x108(%rdi) movl $0x30303030, 0x30d(%rdi) # imm = 0x30303030 movw $0x30, 0x311(%rdi) movb $0x0, 0x10c(%rdi) movl $0x4, 0x50(%rdi) testb %al, %al je 0x233cb leaq 0xda(%rip), %rax # 0x2344a jmp 0x233d2 movl $0x7de, 0x90(%rbx) # imm = 0x7DE leaq 0x297(%rbx), %rdi leaq 0x2cc76(%rip), %rax # 0x50000 movq (%rax), %rsi movl $0x5, %edx callq 0x13230 xorl %r14d, %r14d movb %r14b, 0x29c(%rbx) leaq 0x97(%rbx), %rdi leaq 0x2cc61(%rip), %rax # 0x50010 movq 0x70(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x13230 movb %r14b, 0x296(%rbx) xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq leaq 0x9(%rip), %rax # 0x233db movq %rax, 0x348(%rdi) jmp 0x233c4
_mysql_stmt_use_result: push rbp mov rbp, rsp push r14 push rbx mov rbx, [rdi+38h] cmp dword ptr [rdi+60h], 0 jz short loc_23372 mov al, [rdi+338h] mov ecx, [rbx+488h] test al, al jz short loc_2332F test ecx, ecx jnz short loc_23372 jmp short loc_23334 loc_2332F: cmp ecx, 8 jnz short loc_23372 loc_23334: cmp dword ptr [rdi+50h], 3 jnz short loc_23372 mov dword ptr [rdi+108h], 0 mov dword ptr [rdi+30Dh], 30303030h mov word ptr [rdi+311h], 30h ; '0' mov byte ptr [rdi+10Ch], 0 mov dword ptr [rdi+50h], 4 test al, al jz short loc_233CB lea rax, stmt_cursor_fetch jmp short loc_233D2 loc_23372: mov dword ptr [rbx+90h], 7DEh lea rdi, [rbx+297h] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy xor r14d, r14d mov [rbx+29Ch], r14b lea rdi, [rbx+97h] lea rax, client_errors mov rsi, [rax+70h] mov edx, 1FFh call _strncpy mov [rbx+296h], r14b loc_233C4: xor eax, eax pop rbx pop r14 pop rbp retn loc_233CB: lea rax, stmt_unbuffered_fetch loc_233D2: mov [rdi+348h], rax jmp short loc_233C4
long long mysql_stmt_use_result(long long a1) { long long v1; // rbx char v2; // al int v3; // ecx long long ( *v4)(); // rax v1 = *(_QWORD *)(a1 + 56); if ( !*(_DWORD *)(a1 + 96) ) goto LABEL_9; v2 = *(_BYTE *)(a1 + 824); v3 = *(_DWORD *)(v1 + 1160); if ( !v2 ) { if ( v3 == 8 ) goto LABEL_6; LABEL_9: *(_DWORD *)(v1 + 144) = 2014; strncpy(v1 + 663, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(v1 + 668) = 0; strncpy(v1 + 151, client_errors[14], 511LL); *(_BYTE *)(v1 + 662) = 0; return 0LL; } if ( v3 ) goto LABEL_9; LABEL_6: if ( *(_DWORD *)(a1 + 80) != 3 ) goto LABEL_9; *(_DWORD *)(a1 + 264) = 0; strcpy((char *)(a1 + 781), "00000"); *(_BYTE *)(a1 + 268) = 0; *(_DWORD *)(a1 + 80) = 4; if ( v2 ) v4 = stmt_cursor_fetch; else v4 = stmt_unbuffered_fetch; *(_QWORD *)(a1 + 840) = v4; return 0LL; }
_mysql_stmt_use_result: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,qword ptr [RDI + 0x38] CMP dword ptr [RDI + 0x60],0x0 JZ 0x00123372 MOV AL,byte ptr [RDI + 0x338] MOV ECX,dword ptr [RBX + 0x488] TEST AL,AL JZ 0x0012332f TEST ECX,ECX JNZ 0x00123372 JMP 0x00123334 LAB_0012332f: CMP ECX,0x8 JNZ 0x00123372 LAB_00123334: CMP dword ptr [RDI + 0x50],0x3 JNZ 0x00123372 MOV dword ptr [RDI + 0x108],0x0 MOV dword ptr [RDI + 0x30d],0x30303030 MOV word ptr [RDI + 0x311],0x30 MOV byte ptr [RDI + 0x10c],0x0 MOV dword ptr [RDI + 0x50],0x4 TEST AL,AL JZ 0x001233cb LEA RAX,[0x12344a] JMP 0x001233d2 LAB_00123372: MOV dword ptr [RBX + 0x90],0x7de LEA RDI,[RBX + 0x297] LEA RAX,[0x150000] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113230 XOR R14D,R14D MOV byte ptr [RBX + 0x29c],R14B LEA RDI,[RBX + 0x97] LEA RAX,[0x150010] MOV RSI,qword ptr [RAX + 0x70] MOV EDX,0x1ff CALL 0x00113230 MOV byte ptr [RBX + 0x296],R14B LAB_001233c4: XOR EAX,EAX POP RBX POP R14 POP RBP RET LAB_001233cb: LEA RAX,[0x1233db] LAB_001233d2: MOV qword ptr [RDI + 0x348],RAX JMP 0x001233c4
int8 _mysql_stmt_use_result(long param_1) { long lVar1; code *pcVar2; lVar1 = *(long *)(param_1 + 0x38); if (*(int *)(param_1 + 0x60) != 0) { if (*(char *)(param_1 + 0x338) == '\0') { if (*(int *)(lVar1 + 0x488) != 8) goto LAB_00123372; } else if (*(int *)(lVar1 + 0x488) != 0) goto LAB_00123372; if (*(int *)(param_1 + 0x50) == 3) { *(int4 *)(param_1 + 0x108) = 0; *(int4 *)(param_1 + 0x30d) = 0x30303030; *(int2 *)(param_1 + 0x311) = 0x30; *(int1 *)(param_1 + 0x10c) = 0; *(int4 *)(param_1 + 0x50) = 4; if (*(char *)(param_1 + 0x338) == '\0') { pcVar2 = stmt_unbuffered_fetch; } else { pcVar2 = stmt_cursor_fetch; } *(code **)(param_1 + 0x348) = pcVar2; return 0; } } LAB_00123372: *(int4 *)(lVar1 + 0x90) = 0x7de; strncpy((char *)(lVar1 + 0x297),SQLSTATE_UNKNOWN,5); *(int1 *)(lVar1 + 0x29c) = 0; strncpy((char *)(lVar1 + 0x97),PTR_s_Commands_out_of_sync__you_can_t_r_00150080,0x1ff); *(int1 *)(lVar1 + 0x296) = 0; return 0; }
34,028
pow5mult
eloqsql/libmariadb/libmariadb/ma_dtoa.c
static Bigint *pow5mult(Bigint *b, int k, Stack_alloc *alloc) { Bigint *b1, *p5, *p51=NULL; int i; static int p05[3]= { 5, 25, 125 }; my_bool overflow= FALSE; if ((i= k & 3)) b= multadd(b, p05[i-1], 0, alloc); if (!(k>>= 2)) return b; p5= p5_a; for (;;) { if (k & 1) { b1= mult(b, p5, alloc); Bfree(b, alloc); b= b1; } if (!(k>>= 1)) break; /* Calculate next power of 5 */ if (overflow) { p51= mult(p5, p5, alloc); Bfree(p5, alloc); p5= p51; } else if (p5 < p5_a + P5A_MAX) ++p5; else if (p5 == p5_a + P5A_MAX) { p5= mult(p5, p5, alloc); overflow= TRUE; } } if (p51) Bfree(p51, alloc); return b; }
O3
c
pow5mult: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %rbx movl %esi, %r15d movq %rdi, %r13 movl %esi, %eax andl $0x3, %eax je 0x29d62 decl %eax leaq 0x12e57(%rip), %rcx # 0x3cba8 movl (%rcx,%rax,4), %esi movq %r13, %rdi movq %rbx, %rdx callq 0x2a108 movq %rax, %r13 cmpl $0x4, %r15d jb 0x29e4a movq %rbx, -0x38(%rbp) shrl $0x2, %r15d movb $0x1, %cl leaq 0x23053(%rip), %rbx # 0x4cdd0 movq $0x0, -0x40(%rbp) leaq 0x230d4(%rip), %r12 # 0x4ce60 movl %ecx, %r14d cmpq %r12, %rbx setb %cl movl %ecx, -0x2c(%rbp) testb $0x1, %r15b je 0x29dcd movq %r13, %rdi movq %rbx, %rsi movq %r13, %r12 movq -0x38(%rbp), %r13 movq %r13, %rdx callq 0x29e5c movq %rax, -0x48(%rbp) movq %r12, %rdi leaq 0x2309f(%rip), %r12 # 0x4ce60 movq %r13, %rsi callq 0x29f7e movq -0x48(%rbp), %r13 cmpl $0x2, %r15d jb 0x29e38 shrl %r15d testb $0x1, %r14b je 0x29dfd cmpq %r12, %rbx jb 0x29e2c movb $0x1, %r14b jne 0x29d98 movq %r12, %rdi movq %r12, %rsi movq -0x38(%rbp), %rdx callq 0x29e5c movq %rax, %rbx movl -0x2c(%rbp), %ecx jmp 0x29d8c movq %rbx, %rdi movq %rbx, %r14 movq %rbx, %rsi movq -0x38(%rbp), %rbx movq %rbx, %rdx callq 0x29e5c movq %rax, -0x40(%rbp) movq %r14, %rdi movq %rbx, %rsi callq 0x29f7e xorl %ecx, %ecx movq -0x40(%rbp), %rbx jmp 0x29d8c addq $0x18, %rbx movl -0x2c(%rbp), %ecx jmp 0x29d8c movq -0x40(%rbp), %rdi testq %rdi, %rdi je 0x29e4a movq -0x38(%rbp), %rsi callq 0x29f7e movq %r13, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
pow5mult: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdx mov r15d, esi mov r13, rdi mov eax, esi and eax, 3 jz short loc_29D62 dec eax lea rcx, pow5mult_p05 mov esi, [rcx+rax*4] mov rdi, r13 mov rdx, rbx call multadd mov r13, rax loc_29D62: cmp r15d, 4 jb loc_29E4A mov [rbp+var_38], rbx shr r15d, 2 mov cl, 1 lea rbx, p5_a mov [rbp+var_40], 0 lea r12, off_4CE60 loc_29D8C: mov r14d, ecx cmp rbx, r12 setb cl mov [rbp+var_2C], ecx loc_29D98: test r15b, 1 jz short loc_29DCD mov rdi, r13 mov rsi, rbx mov r12, r13 mov r13, [rbp+var_38] mov rdx, r13 call mult mov [rbp+var_48], rax mov rdi, r12 lea r12, off_4CE60 mov rsi, r13 call Bfree mov r13, [rbp+var_48] loc_29DCD: cmp r15d, 2 jb short loc_29E38 shr r15d, 1 test r14b, 1 jz short loc_29DFD cmp rbx, r12 jb short loc_29E2C mov r14b, 1 jnz short loc_29D98 mov rdi, r12 mov rsi, r12 mov rdx, [rbp+var_38] call mult mov rbx, rax mov ecx, [rbp+var_2C] jmp short loc_29D8C loc_29DFD: mov rdi, rbx mov r14, rbx mov rsi, rbx mov rbx, [rbp+var_38] mov rdx, rbx call mult mov [rbp+var_40], rax mov rdi, r14 mov rsi, rbx call Bfree xor ecx, ecx mov rbx, [rbp+var_40] jmp loc_29D8C loc_29E2C: add rbx, 18h mov ecx, [rbp+var_2C] jmp loc_29D8C loc_29E38: mov rdi, [rbp+var_40] test rdi, rdi jz short loc_29E4A mov rsi, [rbp+var_38] call Bfree loc_29E4A: mov rax, r13 add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long pow5mult(long long a1, unsigned int a2, long long a3, int a4) { long long v5; // r13 unsigned int v6; // r15d _UNKNOWN **v7; // rbx char v8; // r14 long long v10; // [rsp+8h] [rbp-48h] long long v11; // [rsp+10h] [rbp-40h] long long v12; // [rsp+18h] [rbp-38h] int v13; // [rsp+24h] [rbp-2Ch] v5 = a1; if ( (a2 & 3) != 0 ) v5 = multadd(a1, pow5mult_p05[(a2 & 3) - 1], a3); if ( a2 >= 4 ) { v12 = a3; v6 = a2 >> 2; LOBYTE(a4) = 1; v7 = &p5_a; v11 = 0LL; LABEL_5: v8 = a4; LOBYTE(a4) = v7 < &off_4CE60; v13 = a4; while ( 1 ) { if ( (v6 & 1) != 0 ) { v10 = mult(v5, v7, v12); Bfree(v5, v12); v5 = v10; } if ( v6 < 2 ) break; v6 >>= 1; if ( (v8 & 1) == 0 ) { v11 = mult(v7, v7, v12); Bfree(v7, v12); a4 = 0; v7 = (_UNKNOWN **)v11; goto LABEL_5; } if ( v7 < &off_4CE60 ) { v7 += 3; a4 = v13; goto LABEL_5; } v8 = 1; if ( v7 == &off_4CE60 ) { v7 = (_UNKNOWN **)mult(&off_4CE60, &off_4CE60, v12); a4 = v13; goto LABEL_5; } } if ( v11 ) Bfree(v11, v12); } return v5; }
pow5mult: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDX MOV R15D,ESI MOV R13,RDI MOV EAX,ESI AND EAX,0x3 JZ 0x00129d62 DEC EAX LEA RCX,[0x13cba8] MOV ESI,dword ptr [RCX + RAX*0x4] MOV RDI,R13 MOV RDX,RBX CALL 0x0012a108 MOV R13,RAX LAB_00129d62: CMP R15D,0x4 JC 0x00129e4a MOV qword ptr [RBP + -0x38],RBX SHR R15D,0x2 MOV CL,0x1 LEA RBX,[0x14cdd0] MOV qword ptr [RBP + -0x40],0x0 LEA R12,[0x14ce60] LAB_00129d8c: MOV R14D,ECX CMP RBX,R12 SETC CL MOV dword ptr [RBP + -0x2c],ECX LAB_00129d98: TEST R15B,0x1 JZ 0x00129dcd MOV RDI,R13 MOV RSI,RBX MOV R12,R13 MOV R13,qword ptr [RBP + -0x38] MOV RDX,R13 CALL 0x00129e5c MOV qword ptr [RBP + -0x48],RAX MOV RDI,R12 LEA R12,[0x14ce60] MOV RSI,R13 CALL 0x00129f7e MOV R13,qword ptr [RBP + -0x48] LAB_00129dcd: CMP R15D,0x2 JC 0x00129e38 SHR R15D,0x1 TEST R14B,0x1 JZ 0x00129dfd CMP RBX,R12 JC 0x00129e2c MOV R14B,0x1 JNZ 0x00129d98 MOV RDI,R12 MOV RSI,R12 MOV RDX,qword ptr [RBP + -0x38] CALL 0x00129e5c MOV RBX,RAX MOV ECX,dword ptr [RBP + -0x2c] JMP 0x00129d8c LAB_00129dfd: MOV RDI,RBX MOV R14,RBX MOV RSI,RBX MOV RBX,qword ptr [RBP + -0x38] MOV RDX,RBX CALL 0x00129e5c MOV qword ptr [RBP + -0x40],RAX MOV RDI,R14 MOV RSI,RBX CALL 0x00129f7e XOR ECX,ECX MOV RBX,qword ptr [RBP + -0x40] JMP 0x00129d8c LAB_00129e2c: ADD RBX,0x18 MOV ECX,dword ptr [RBP + -0x2c] JMP 0x00129d8c LAB_00129e38: MOV RDI,qword ptr [RBP + -0x40] TEST RDI,RDI JZ 0x00129e4a MOV RSI,qword ptr [RBP + -0x38] CALL 0x00129f7e LAB_00129e4a: MOV RAX,R13 ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 pow5mult(int8 param_1,uint param_2,int8 param_3) { int1 *puVar1; int8 uVar2; bool bVar3; bool bVar4; int1 *local_48; if ((param_2 & 3) != 0) { param_1 = multadd(param_1,*(int4 *)(pow5mult_p05 + (ulong)((param_2 & 3) - 1) * 4),param_3 ); } if (param_2 < 4) { return param_1; } param_2 = param_2 >> 2; local_48 = (int1 *)0x0; puVar1 = p5_a; bVar3 = true; LAB_00129d8c: do { bVar4 = puVar1 < (int1 *)0x14ce60; uVar2 = param_1; do { param_1 = uVar2; if ((param_2 & 1) != 0) { param_1 = mult(uVar2,puVar1,param_3); Bfree(uVar2,param_3); } if (param_2 < 2) { if (local_48 == (int1 *)0x0) { return param_1; } Bfree(local_48,param_3); return param_1; } param_2 = param_2 >> 1; if (!bVar3) { local_48 = (int1 *)mult(puVar1,puVar1,param_3); Bfree(puVar1,param_3); bVar3 = false; puVar1 = local_48; goto LAB_00129d8c; } if (puVar1 < (int1 *)0x14ce60) { puVar1 = puVar1 + 0x18; bVar3 = bVar4; goto LAB_00129d8c; } bVar3 = true; uVar2 = param_1; } while (puVar1 != (int1 *)0x14ce60); puVar1 = (int1 *)mult(0x14ce60,0x14ce60,param_3); bVar3 = bVar4; } while( true ); }
34,029
delete_dir_entry
eloqsql/storage/maria/ma_blockrec.c
static int delete_dir_entry(MARIA_SHARE *share, uchar *buff, uint record_number, uint *empty_space_res) { uint block_size= share->block_size; uint number_of_records= (uint) buff[DIR_COUNT_OFFSET]; uint length, empty_space; uchar *dir; DBUG_ENTER("delete_dir_entry"); DBUG_PRINT("enter", ("record_number: %u number_of_records: %u", record_number, number_of_records)); #ifdef SANITY_CHECKS if (record_number >= number_of_records || record_number > ((block_size - LSN_SIZE - PAGE_TYPE_SIZE - 1 - PAGE_SUFFIX_SIZE) / DIR_ENTRY_SIZE)) { DBUG_PRINT("error", ("record_number: %u number_of_records: %u", record_number, number_of_records)); DBUG_RETURN(-1); } #endif check_directory(share, buff, block_size, 0, (uint) -1); empty_space= uint2korr(buff + EMPTY_SPACE_OFFSET); dir= dir_entry_pos(buff, block_size, record_number); length= uint2korr(dir + 2); /* Length of entry we just deleted */ DBUG_ASSERT(uint2korr(dir) != 0 && length < block_size); if (record_number == number_of_records - 1) { /* Delete this entry and all following free directory entries */ uchar *end= buff + block_size - PAGE_SUFFIX_SIZE; number_of_records--; dir+= DIR_ENTRY_SIZE; empty_space+= DIR_ENTRY_SIZE; /* Unlink and free the next empty ones */ while (dir < end && dir[0] == 0 && dir[1] == 0) { number_of_records--; if (dir[2] == END_OF_DIR_FREE_LIST) buff[DIR_FREE_OFFSET]= dir[3]; else { uchar *prev_entry= dir_entry_pos(buff, block_size, (uint) dir[2]); DBUG_ASSERT(uint2korr(prev_entry) == 0 && prev_entry[3] == number_of_records); prev_entry[3]= dir[3]; } if (dir[3] != END_OF_DIR_FREE_LIST) { uchar *next_entry= dir_entry_pos(buff, block_size, (uint) dir[3]); DBUG_ASSERT(uint2korr(next_entry) == 0 && next_entry[2] == number_of_records); next_entry[2]= dir[2]; } dir+= DIR_ENTRY_SIZE; empty_space+= DIR_ENTRY_SIZE; } if (number_of_records == 0) { /* All entries on page deleted */ DBUG_PRINT("info", ("Page marked as unallocated")); buff[PAGE_TYPE_OFFSET]= UNALLOCATED_PAGE; #ifdef IDENTICAL_PAGES_AFTER_RECOVERY { dir= dir_entry_pos(buff, block_size, record_number); bzero(dir, (record_number+1) * DIR_ENTRY_SIZE); } #endif *empty_space_res= block_size; DBUG_RETURN(1); } buff[DIR_COUNT_OFFSET]= (uchar) number_of_records; } else { /* Update directory */ dir[0]= dir[1]= 0; dir[2]= END_OF_DIR_FREE_LIST; if ((dir[3]= buff[DIR_FREE_OFFSET]) != END_OF_DIR_FREE_LIST) { /* Relink next entry to point to newly freed entry */ uchar *next_entry= dir_entry_pos(buff, block_size, (uint) dir[3]); DBUG_ASSERT(uint2korr(next_entry) == 0 && next_entry[2] == END_OF_DIR_FREE_LIST); next_entry[2]= record_number; } buff[DIR_FREE_OFFSET]= record_number; } empty_space+= length; int2store(buff + EMPTY_SPACE_OFFSET, empty_space); buff[PAGE_TYPE_OFFSET]|= (uchar) PAGE_CAN_BE_COMPACTED; *empty_space_res= empty_space; check_directory(share, buff, block_size, 0, empty_space); DBUG_RETURN(0); }
O0
c
delete_dir_entry: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rax movl 0x7bc(%rax), %eax movl %eax, -0x2c(%rbp) movq -0x18(%rbp), %rax movzbl 0x8(%rax), %eax movl %eax, -0x30(%rbp) jmp 0x79f31 movl -0x1c(%rbp), %eax cmpl -0x30(%rbp), %eax jae 0x79f52 movl -0x1c(%rbp), %eax movl -0x2c(%rbp), %ecx subl $0x7, %ecx subl $0x1, %ecx subl $0x1, %ecx subl $0x4, %ecx shrl $0x2, %ecx cmpl %ecx, %eax jbe 0x79f64 jmp 0x79f54 jmp 0x79f56 jmp 0x79f58 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x7a187 movq -0x18(%rbp), %rax movzwl 0xa(%rax), %eax movl %eax, -0x38(%rbp) movq -0x18(%rbp), %rdi movl -0x2c(%rbp), %esi movl -0x1c(%rbp), %edx callq 0x745d0 movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movzwl 0x2(%rax), %eax movl %eax, -0x34(%rbp) jmp 0x79f8f movl -0x1c(%rbp), %eax movl -0x30(%rbp), %ecx subl $0x1, %ecx cmpl %ecx, %eax jne 0x7a0e3 movq -0x18(%rbp), %rax movl -0x2c(%rbp), %ecx addq %rcx, %rax addq $-0x4, %rax movq %rax, -0x48(%rbp) movl -0x30(%rbp), %eax addl $-0x1, %eax movl %eax, -0x30(%rbp) movq -0x40(%rbp), %rax addq $0x4, %rax movq %rax, -0x40(%rbp) movl -0x38(%rbp), %eax addl $0x4, %eax movl %eax, -0x38(%rbp) movq -0x40(%rbp), %rcx xorl %eax, %eax cmpq -0x48(%rbp), %rcx movb %al, -0x69(%rbp) jae 0x7a001 movq -0x40(%rbp), %rax movzbl (%rax), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x69(%rbp) jne 0x7a001 movq -0x40(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0x0, %eax sete %al movb %al, -0x69(%rbp) movb -0x69(%rbp), %al testb $0x1, %al jne 0x7a00d jmp 0x7a0ae movl -0x30(%rbp), %eax addl $-0x1, %eax movl %eax, -0x30(%rbp) movq -0x40(%rbp), %rax movzbl 0x2(%rax), %eax cmpl $0xff, %eax jne 0x7a035 movq -0x40(%rbp), %rax movb 0x3(%rax), %cl movq -0x18(%rbp), %rax movb %cl, 0x9(%rax) jmp 0x7a05d movq -0x18(%rbp), %rdi movl -0x2c(%rbp), %esi movq -0x40(%rbp), %rax movzbl 0x2(%rax), %edx callq 0x745d0 movq %rax, -0x50(%rbp) jmp 0x7a04f movq -0x40(%rbp), %rax movb 0x3(%rax), %cl movq -0x50(%rbp), %rax movb %cl, 0x3(%rax) movq -0x40(%rbp), %rax movzbl 0x3(%rax), %eax cmpl $0xff, %eax je 0x7a094 movq -0x18(%rbp), %rdi movl -0x2c(%rbp), %esi movq -0x40(%rbp), %rax movzbl 0x3(%rax), %edx callq 0x745d0 movq %rax, -0x58(%rbp) jmp 0x7a086 movq -0x40(%rbp), %rax movb 0x2(%rax), %cl movq -0x58(%rbp), %rax movb %cl, 0x2(%rax) movq -0x40(%rbp), %rax addq $0x4, %rax movq %rax, -0x40(%rbp) movl -0x38(%rbp), %eax addl $0x4, %eax movl %eax, -0x38(%rbp) jmp 0x79fd0 cmpl $0x0, -0x30(%rbp) jne 0x7a0d5 jmp 0x7a0b6 jmp 0x7a0b8 movq -0x18(%rbp), %rax movb $0x0, 0x7(%rax) movl -0x2c(%rbp), %ecx movq -0x28(%rbp), %rax movl %ecx, (%rax) movl $0x1, -0x4(%rbp) jmp 0x7a187 movl -0x30(%rbp), %eax movb %al, %cl movq -0x18(%rbp), %rax movb %cl, 0x8(%rax) jmp 0x7a144 movq -0x40(%rbp), %rax movb $0x0, 0x1(%rax) movq -0x40(%rbp), %rax movb $0x0, (%rax) movq -0x40(%rbp), %rax movb $-0x1, 0x2(%rax) movq -0x18(%rbp), %rax movb 0x9(%rax), %al movq -0x40(%rbp), %rcx movb %al, 0x3(%rcx) movzbl %al, %eax cmpl $0xff, %eax je 0x7a138 movq -0x18(%rbp), %rdi movl -0x2c(%rbp), %esi movq -0x40(%rbp), %rax movzbl 0x3(%rax), %edx callq 0x745d0 movq %rax, -0x60(%rbp) jmp 0x7a12c movl -0x1c(%rbp), %eax movb %al, %cl movq -0x60(%rbp), %rax movb %cl, 0x2(%rax) movl -0x1c(%rbp), %eax movb %al, %cl movq -0x18(%rbp), %rax movb %cl, 0x9(%rax) movl -0x34(%rbp), %eax addl -0x38(%rbp), %eax movl %eax, -0x38(%rbp) movq -0x18(%rbp), %rax addq $0xa, %rax movq %rax, -0x68(%rbp) movl -0x38(%rbp), %eax movw %ax, %cx movq -0x68(%rbp), %rax movw %cx, (%rax) movq -0x18(%rbp), %rax movzbl 0x7(%rax), %ecx orl $0x80, %ecx movb %cl, 0x7(%rax) movl -0x38(%rbp), %ecx movq -0x28(%rbp), %rax movl %ecx, (%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x70, %rsp popq %rbp retq
delete_dir_entry: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_28], rcx mov rax, [rbp+var_10] mov eax, [rax+7BCh] mov [rbp+var_2C], eax mov rax, [rbp+var_18] movzx eax, byte ptr [rax+8] mov [rbp+var_30], eax jmp short $+2 loc_79F31: mov eax, [rbp+var_1C] cmp eax, [rbp+var_30] jnb short loc_79F52 mov eax, [rbp+var_1C] mov ecx, [rbp+var_2C] sub ecx, 7 sub ecx, 1 sub ecx, 1 sub ecx, 4 shr ecx, 2 cmp eax, ecx jbe short loc_79F64 loc_79F52: jmp short $+2 loc_79F54: jmp short $+2 loc_79F56: jmp short $+2 loc_79F58: mov [rbp+var_4], 0FFFFFFFFh jmp loc_7A187 loc_79F64: mov rax, [rbp+var_18] movzx eax, word ptr [rax+0Ah] mov [rbp+var_38], eax mov rdi, [rbp+var_18] mov esi, [rbp+var_2C] mov edx, [rbp+var_1C] call dir_entry_pos mov [rbp+var_40], rax mov rax, [rbp+var_40] movzx eax, word ptr [rax+2] mov [rbp+var_34], eax jmp short $+2 loc_79F8F: mov eax, [rbp+var_1C] mov ecx, [rbp+var_30] sub ecx, 1 cmp eax, ecx jnz loc_7A0E3 mov rax, [rbp+var_18] mov ecx, [rbp+var_2C] add rax, rcx add rax, 0FFFFFFFFFFFFFFFCh mov [rbp+var_48], rax mov eax, [rbp+var_30] add eax, 0FFFFFFFFh mov [rbp+var_30], eax mov rax, [rbp+var_40] add rax, 4 mov [rbp+var_40], rax mov eax, [rbp+var_38] add eax, 4 mov [rbp+var_38], eax loc_79FD0: mov rcx, [rbp+var_40] xor eax, eax cmp rcx, [rbp+var_48] mov [rbp+var_69], al jnb short loc_7A001 mov rax, [rbp+var_40] movzx ecx, byte ptr [rax] xor eax, eax cmp ecx, 0 mov [rbp+var_69], al jnz short loc_7A001 mov rax, [rbp+var_40] movzx eax, byte ptr [rax+1] cmp eax, 0 setz al mov [rbp+var_69], al loc_7A001: mov al, [rbp+var_69] test al, 1 jnz short loc_7A00D jmp loc_7A0AE loc_7A00D: mov eax, [rbp+var_30] add eax, 0FFFFFFFFh mov [rbp+var_30], eax mov rax, [rbp+var_40] movzx eax, byte ptr [rax+2] cmp eax, 0FFh jnz short loc_7A035 mov rax, [rbp+var_40] mov cl, [rax+3] mov rax, [rbp+var_18] mov [rax+9], cl jmp short loc_7A05D loc_7A035: mov rdi, [rbp+var_18] mov esi, [rbp+var_2C] mov rax, [rbp+var_40] movzx edx, byte ptr [rax+2] call dir_entry_pos mov [rbp+var_50], rax jmp short $+2 loc_7A04F: mov rax, [rbp+var_40] mov cl, [rax+3] mov rax, [rbp+var_50] mov [rax+3], cl loc_7A05D: mov rax, [rbp+var_40] movzx eax, byte ptr [rax+3] cmp eax, 0FFh jz short loc_7A094 mov rdi, [rbp+var_18] mov esi, [rbp+var_2C] mov rax, [rbp+var_40] movzx edx, byte ptr [rax+3] call dir_entry_pos mov [rbp+var_58], rax jmp short $+2 loc_7A086: mov rax, [rbp+var_40] mov cl, [rax+2] mov rax, [rbp+var_58] mov [rax+2], cl loc_7A094: mov rax, [rbp+var_40] add rax, 4 mov [rbp+var_40], rax mov eax, [rbp+var_38] add eax, 4 mov [rbp+var_38], eax jmp loc_79FD0 loc_7A0AE: cmp [rbp+var_30], 0 jnz short loc_7A0D5 jmp short $+2 loc_7A0B6: jmp short $+2 loc_7A0B8: mov rax, [rbp+var_18] mov byte ptr [rax+7], 0 mov ecx, [rbp+var_2C] mov rax, [rbp+var_28] mov [rax], ecx mov [rbp+var_4], 1 jmp loc_7A187 loc_7A0D5: mov eax, [rbp+var_30] mov cl, al mov rax, [rbp+var_18] mov [rax+8], cl jmp short loc_7A144 loc_7A0E3: mov rax, [rbp+var_40] mov byte ptr [rax+1], 0 mov rax, [rbp+var_40] mov byte ptr [rax], 0 mov rax, [rbp+var_40] mov byte ptr [rax+2], 0FFh mov rax, [rbp+var_18] mov al, [rax+9] mov rcx, [rbp+var_40] mov [rcx+3], al movzx eax, al cmp eax, 0FFh jz short loc_7A138 mov rdi, [rbp+var_18] mov esi, [rbp+var_2C] mov rax, [rbp+var_40] movzx edx, byte ptr [rax+3] call dir_entry_pos mov [rbp+var_60], rax jmp short $+2 loc_7A12C: mov eax, [rbp+var_1C] mov cl, al mov rax, [rbp+var_60] mov [rax+2], cl loc_7A138: mov eax, [rbp+var_1C] mov cl, al mov rax, [rbp+var_18] mov [rax+9], cl loc_7A144: mov eax, [rbp+var_34] add eax, [rbp+var_38] mov [rbp+var_38], eax mov rax, [rbp+var_18] add rax, 0Ah mov [rbp+var_68], rax mov eax, [rbp+var_38] mov cx, ax mov rax, [rbp+var_68] mov [rax], cx mov rax, [rbp+var_18] movzx ecx, byte ptr [rax+7] or ecx, 80h mov [rax+7], cl mov ecx, [rbp+var_38] mov rax, [rbp+var_28] mov [rax], ecx mov [rbp+var_4], 0 loc_7A187: mov eax, [rbp+var_4] add rsp, 70h pop rbp retn
long long delete_dir_entry(long long a1, long long a2, unsigned int a3, unsigned int *a4) { unsigned __int8 v4; // al bool v6; // [rsp+7h] [rbp-69h] long long v7; // [rsp+30h] [rbp-40h] _BYTE *v8; // [rsp+30h] [rbp-40h] int v9; // [rsp+38h] [rbp-38h] unsigned int v10; // [rsp+38h] [rbp-38h] int v11; // [rsp+3Ch] [rbp-34h] unsigned int v12; // [rsp+40h] [rbp-30h] unsigned int v13; // [rsp+40h] [rbp-30h] unsigned int v14; // [rsp+44h] [rbp-2Ch] v14 = *(_DWORD *)(a1 + 1980); v12 = *(unsigned __int8 *)(a2 + 8); if ( a3 < v12 && a3 <= (v14 - 13) >> 2 ) { v9 = *(unsigned __int16 *)(a2 + 10); v7 = dir_entry_pos(a2, v14, a3); v11 = *(unsigned __int16 *)(v7 + 2); if ( a3 == v12 - 1 ) { v13 = v12 - 1; v8 = (_BYTE *)(v7 + 4); for ( v9 += 4; ; v9 += 4 ) { v6 = 0; if ( (unsigned long long)v8 < (unsigned long long)v14 + a2 - 4 ) { v6 = 0; if ( !*v8 ) v6 = v8[1] == 0; } if ( !v6 ) break; --v13; if ( (unsigned __int8)v8[2] == 255 ) *(_BYTE *)(a2 + 9) = v8[3]; else *(_BYTE *)(dir_entry_pos(a2, v14, (unsigned __int8)v8[2]) + 3) = v8[3]; if ( (unsigned __int8)v8[3] != 255 ) *(_BYTE *)(dir_entry_pos(a2, v14, (unsigned __int8)v8[3]) + 2) = v8[2]; v8 += 4; } if ( !v13 ) { *(_BYTE *)(a2 + 7) = 0; *a4 = v14; return 1; } *(_BYTE *)(a2 + 8) = v13; } else { *(_BYTE *)(v7 + 1) = 0; *(_BYTE *)v7 = 0; *(_BYTE *)(v7 + 2) = -1; v4 = *(_BYTE *)(a2 + 9); *(_BYTE *)(v7 + 3) = v4; if ( v4 != 255 ) *(_BYTE *)(dir_entry_pos(a2, v14, *(unsigned __int8 *)(v7 + 3)) + 2) = a3; *(_BYTE *)(a2 + 9) = a3; } v10 = v9 + v11; *(_WORD *)(a2 + 10) = v10; *(_BYTE *)(a2 + 7) |= 0x80u; *a4 = v10; return 0; } return (unsigned int)-1; }
delete_dir_entry: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x7bc] MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x8] MOV dword ptr [RBP + -0x30],EAX JMP 0x00179f31 LAB_00179f31: MOV EAX,dword ptr [RBP + -0x1c] CMP EAX,dword ptr [RBP + -0x30] JNC 0x00179f52 MOV EAX,dword ptr [RBP + -0x1c] MOV ECX,dword ptr [RBP + -0x2c] SUB ECX,0x7 SUB ECX,0x1 SUB ECX,0x1 SUB ECX,0x4 SHR ECX,0x2 CMP EAX,ECX JBE 0x00179f64 LAB_00179f52: JMP 0x00179f54 LAB_00179f54: JMP 0x00179f56 LAB_00179f56: JMP 0x00179f58 LAB_00179f58: MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0017a187 LAB_00179f64: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX + 0xa] MOV dword ptr [RBP + -0x38],EAX MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x2c] MOV EDX,dword ptr [RBP + -0x1c] CALL 0x001745d0 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,word ptr [RAX + 0x2] MOV dword ptr [RBP + -0x34],EAX JMP 0x00179f8f LAB_00179f8f: MOV EAX,dword ptr [RBP + -0x1c] MOV ECX,dword ptr [RBP + -0x30] SUB ECX,0x1 CMP EAX,ECX JNZ 0x0017a0e3 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x2c] ADD RAX,RCX ADD RAX,-0x4 MOV qword ptr [RBP + -0x48],RAX MOV EAX,dword ptr [RBP + -0x30] ADD EAX,-0x1 MOV dword ptr [RBP + -0x30],EAX MOV RAX,qword ptr [RBP + -0x40] ADD RAX,0x4 MOV qword ptr [RBP + -0x40],RAX MOV EAX,dword ptr [RBP + -0x38] ADD EAX,0x4 MOV dword ptr [RBP + -0x38],EAX LAB_00179fd0: MOV RCX,qword ptr [RBP + -0x40] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x48] MOV byte ptr [RBP + -0x69],AL JNC 0x0017a001 MOV RAX,qword ptr [RBP + -0x40] MOVZX ECX,byte ptr [RAX] XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x69],AL JNZ 0x0017a001 MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0x0 SETZ AL MOV byte ptr [RBP + -0x69],AL LAB_0017a001: MOV AL,byte ptr [RBP + -0x69] TEST AL,0x1 JNZ 0x0017a00d JMP 0x0017a0ae LAB_0017a00d: MOV EAX,dword ptr [RBP + -0x30] ADD EAX,-0x1 MOV dword ptr [RBP + -0x30],EAX MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,byte ptr [RAX + 0x2] CMP EAX,0xff JNZ 0x0017a035 MOV RAX,qword ptr [RBP + -0x40] MOV CL,byte ptr [RAX + 0x3] MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x9],CL JMP 0x0017a05d LAB_0017a035: MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x40] MOVZX EDX,byte ptr [RAX + 0x2] CALL 0x001745d0 MOV qword ptr [RBP + -0x50],RAX JMP 0x0017a04f LAB_0017a04f: MOV RAX,qword ptr [RBP + -0x40] MOV CL,byte ptr [RAX + 0x3] MOV RAX,qword ptr [RBP + -0x50] MOV byte ptr [RAX + 0x3],CL LAB_0017a05d: MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,byte ptr [RAX + 0x3] CMP EAX,0xff JZ 0x0017a094 MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x40] MOVZX EDX,byte ptr [RAX + 0x3] CALL 0x001745d0 MOV qword ptr [RBP + -0x58],RAX JMP 0x0017a086 LAB_0017a086: MOV RAX,qword ptr [RBP + -0x40] MOV CL,byte ptr [RAX + 0x2] MOV RAX,qword ptr [RBP + -0x58] MOV byte ptr [RAX + 0x2],CL LAB_0017a094: MOV RAX,qword ptr [RBP + -0x40] ADD RAX,0x4 MOV qword ptr [RBP + -0x40],RAX MOV EAX,dword ptr [RBP + -0x38] ADD EAX,0x4 MOV dword ptr [RBP + -0x38],EAX JMP 0x00179fd0 LAB_0017a0ae: CMP dword ptr [RBP + -0x30],0x0 JNZ 0x0017a0d5 JMP 0x0017a0b6 LAB_0017a0b6: JMP 0x0017a0b8 LAB_0017a0b8: MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x7],0x0 MOV ECX,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX],ECX MOV dword ptr [RBP + -0x4],0x1 JMP 0x0017a187 LAB_0017a0d5: MOV EAX,dword ptr [RBP + -0x30] MOV CL,AL MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x8],CL JMP 0x0017a144 LAB_0017a0e3: MOV RAX,qword ptr [RBP + -0x40] MOV byte ptr [RAX + 0x1],0x0 MOV RAX,qword ptr [RBP + -0x40] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x40] MOV byte ptr [RAX + 0x2],0xff MOV RAX,qword ptr [RBP + -0x18] MOV AL,byte ptr [RAX + 0x9] MOV RCX,qword ptr [RBP + -0x40] MOV byte ptr [RCX + 0x3],AL MOVZX EAX,AL CMP EAX,0xff JZ 0x0017a138 MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x40] MOVZX EDX,byte ptr [RAX + 0x3] CALL 0x001745d0 MOV qword ptr [RBP + -0x60],RAX JMP 0x0017a12c LAB_0017a12c: MOV EAX,dword ptr [RBP + -0x1c] MOV CL,AL MOV RAX,qword ptr [RBP + -0x60] MOV byte ptr [RAX + 0x2],CL LAB_0017a138: MOV EAX,dword ptr [RBP + -0x1c] MOV CL,AL MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x9],CL LAB_0017a144: MOV EAX,dword ptr [RBP + -0x34] ADD EAX,dword ptr [RBP + -0x38] MOV dword ptr [RBP + -0x38],EAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0xa MOV qword ptr [RBP + -0x68],RAX MOV EAX,dword ptr [RBP + -0x38] MOV CX,AX MOV RAX,qword ptr [RBP + -0x68] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RAX + 0x7] OR ECX,0x80 MOV byte ptr [RAX + 0x7],CL MOV ECX,dword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX],ECX MOV dword ptr [RBP + -0x4],0x0 LAB_0017a187: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x70 POP RBP RET
int4 delete_dir_entry(long param_1,long param_2,uint param_3,uint *param_4) { char cVar1; ushort uVar2; uint uVar3; char *pcVar4; long lVar5; bool bVar6; char *local_48; uint local_40; uint local_38; int4 local_c; uVar3 = *(uint *)(param_1 + 0x7bc); local_38 = (uint)*(byte *)(param_2 + 8); if ((param_3 < local_38) && (param_3 <= uVar3 - 0xd >> 2)) { local_40 = (uint)*(ushort *)(param_2 + 10); local_48 = (char *)dir_entry_pos(param_2,uVar3,param_3); uVar2 = *(ushort *)(local_48 + 2); if (param_3 == local_38 - 1) { while( true ) { pcVar4 = local_48; local_38 = local_38 - 1; local_40 = local_40 + 4; local_48 = pcVar4 + 4; bVar6 = false; if ((local_48 < (char *)(param_2 + (ulong)uVar3 + -4)) && (bVar6 = false, *local_48 == '\0') ) { bVar6 = pcVar4[5] == '\0'; } if (!bVar6) break; if (pcVar4[6] == -1) { *(char *)(param_2 + 9) = pcVar4[7]; } else { lVar5 = dir_entry_pos(param_2,uVar3,pcVar4[6]); *(char *)(lVar5 + 3) = pcVar4[7]; } if (pcVar4[7] != -1) { lVar5 = dir_entry_pos(param_2,uVar3,pcVar4[7]); *(char *)(lVar5 + 2) = pcVar4[6]; } } if (local_38 == 0) { *(int1 *)(param_2 + 7) = 0; *param_4 = uVar3; return 1; } *(char *)(param_2 + 8) = (char)local_38; } else { local_48[1] = '\0'; *local_48 = '\0'; local_48[2] = -1; cVar1 = *(char *)(param_2 + 9); local_48[3] = cVar1; if (cVar1 != -1) { lVar5 = dir_entry_pos(param_2,uVar3,local_48[3]); *(char *)(lVar5 + 2) = (char)param_3; } *(char *)(param_2 + 9) = (char)param_3; } *(short *)(param_2 + 10) = (short)(uVar2 + local_40); *(byte *)(param_2 + 7) = *(byte *)(param_2 + 7) | 0x80; *param_4 = uVar2 + local_40; local_c = 0; } else { local_c = 0xffffffff; } return local_c; }
34,030
translog_buffer_increase_writers
eloqsql/storage/maria/ma_loghandler.c
static inline void translog_buffer_increase_writers(struct st_translog_buffer *buffer) { DBUG_ENTER("translog_buffer_increase_writers"); translog_buffer_lock_assert_owner(buffer); buffer->copy_to_buffer_in_progress++; DBUG_PRINT("info", ("copy_to_buffer_in_progress. Buffer #%u %p progress: %d", (uint) buffer->buffer_no, buffer, buffer->copy_to_buffer_in_progress)); DBUG_VOID_RETURN; }
O0
c
translog_buffer_increase_writers: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movl 0x100078(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x100078(%rax) jmp 0x557ad jmp 0x557af jmp 0x557b1 popq %rbp retq nopw %cs:(%rax,%rax)
translog_buffer_increase_writers: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov ecx, [rax+100078h] add ecx, 1 mov [rax+100078h], ecx jmp short $+2 loc_557AD: jmp short $+2 loc_557AF: jmp short $+2 loc_557B1: pop rbp retn
long long translog_buffer_increase_writers(long long a1) { long long result; // rax result = a1; ++*(_DWORD *)(a1 + 1048696); return result; }
translog_buffer_increase_writers: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x100078] ADD ECX,0x1 MOV dword ptr [RAX + 0x100078],ECX JMP 0x001557ad LAB_001557ad: JMP 0x001557af LAB_001557af: JMP 0x001557b1 LAB_001557b1: POP RBP RET
void translog_buffer_increase_writers(long param_1) { *(int *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_type + param_1) = *(int *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_type + param_1) + 1; return; }
34,031
heap_rsame
eloqsql/storage/heap/hp_rsame.c
int heap_rsame(register HP_INFO *info, uchar *record, int inx) { HP_SHARE *share=info->s; DBUG_ENTER("heap_rsame"); test_active(info); if (info->current_ptr[share->visible]) { if (inx < -1 || inx >= (int) share->keys) { DBUG_RETURN(my_errno=HA_ERR_WRONG_INDEX); } else if (inx != -1) { info->lastinx=inx; hp_make_key(share->keydef + inx, info->lastkey, record); if (!hp_search(info, share->keydef + inx, info->lastkey, 3)) { info->update= 0; DBUG_RETURN(my_errno); } } memcpy(record,info->current_ptr,(size_t) share->reclength); DBUG_RETURN(0); } info->update=0; DBUG_RETURN(my_errno=HA_ERR_RECORD_DELETED); }
O0
c
heap_rsame: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rax movl 0x38(%rax), %eax andl $0x2, %eax cmpl $0x0, %eax jne 0x2c5f4 callq 0x31370 movl $0x85, (%rax) movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x2c70f movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq -0x28(%rbp), %rcx movl 0xf8(%rcx), %ecx cmpb $0x0, (%rax,%rcx) je 0x2c6f2 cmpl $-0x1, -0x1c(%rbp) jl 0x2c625 movl -0x1c(%rbp), %eax movq -0x28(%rbp), %rcx cmpl 0x100(%rcx), %eax jl 0x2c63e jmp 0x2c627 callq 0x31370 movl $0x7c, (%rax) movl $0x7c, -0x4(%rbp) jmp 0x2c70f cmpl $-0x1, -0x1c(%rbp) je 0x2c6ca movl -0x1c(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x28(%rax) movq -0x28(%rbp), %rax movq 0x98(%rax), %rdi movslq -0x1c(%rbp), %rax imulq $0x368, %rax, %rax # imm = 0x368 addq %rax, %rdi movq -0x10(%rbp), %rax movq 0x40(%rax), %rsi movq -0x18(%rbp), %rdx callq 0x2a860 movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rax movq 0x98(%rax), %rsi movslq -0x1c(%rbp), %rax imulq $0x368, %rax, %rax # imm = 0x368 addq %rax, %rsi movq -0x10(%rbp), %rax movq 0x40(%rax), %rdx movl $0x3, %ecx callq 0x29380 cmpq $0x0, %rax jne 0x2c6c8 movq -0x10(%rbp), %rax movl $0x0, 0x38(%rax) callq 0x31370 movl (%rax), %eax movl %eax, -0x4(%rbp) jmp 0x2c70f jmp 0x2c6ca jmp 0x2c6cc movq -0x18(%rbp), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi movq -0x28(%rbp), %rax movl 0xf4(%rax), %eax movl %eax, %edx callq 0x24200 movl $0x0, -0x4(%rbp) jmp 0x2c70f movq -0x10(%rbp), %rax movl $0x0, 0x38(%rax) callq 0x31370 movl $0x86, (%rax) movl $0x86, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
heap_rsame: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_28], rax mov rax, [rbp+var_10] mov eax, [rax+38h] and eax, 2 cmp eax, 0 jnz short loc_2C5F4 call _my_thread_var mov dword ptr [rax], 85h mov [rbp+var_4], 0FFFFFFFFh jmp loc_2C70F loc_2C5F4: mov rax, [rbp+var_10] mov rax, [rax+8] mov rcx, [rbp+var_28] mov ecx, [rcx+0F8h] cmp byte ptr [rax+rcx], 0 jz loc_2C6F2 cmp [rbp+var_1C], 0FFFFFFFFh jl short loc_2C625 mov eax, [rbp+var_1C] mov rcx, [rbp+var_28] cmp eax, [rcx+100h] jl short loc_2C63E loc_2C625: jmp short $+2 loc_2C627: call _my_thread_var mov dword ptr [rax], 7Ch ; '|' mov [rbp+var_4], 7Ch ; '|' jmp loc_2C70F loc_2C63E: cmp [rbp+var_1C], 0FFFFFFFFh jz loc_2C6CA mov ecx, [rbp+var_1C] mov rax, [rbp+var_10] mov [rax+28h], ecx mov rax, [rbp+var_28] mov rdi, [rax+98h] movsxd rax, [rbp+var_1C] imul rax, 368h add rdi, rax mov rax, [rbp+var_10] mov rsi, [rax+40h] mov rdx, [rbp+var_18] call hp_make_key mov rdi, [rbp+var_10] mov rax, [rbp+var_28] mov rsi, [rax+98h] movsxd rax, [rbp+var_1C] imul rax, 368h add rsi, rax mov rax, [rbp+var_10] mov rdx, [rax+40h] mov ecx, 3 call hp_search cmp rax, 0 jnz short loc_2C6C8 mov rax, [rbp+var_10] mov dword ptr [rax+38h], 0 call _my_thread_var mov eax, [rax] mov [rbp+var_4], eax jmp short loc_2C70F loc_2C6C8: jmp short $+2 loc_2C6CA: jmp short $+2 loc_2C6CC: mov rdi, [rbp+var_18] mov rax, [rbp+var_10] mov rsi, [rax+8] mov rax, [rbp+var_28] mov eax, [rax+0F4h] mov edx, eax call _memcpy mov [rbp+var_4], 0 jmp short loc_2C70F loc_2C6F2: mov rax, [rbp+var_10] mov dword ptr [rax+38h], 0 call _my_thread_var mov dword ptr [rax], 86h mov [rbp+var_4], 86h loc_2C70F: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long heap_rsame(long long *a1, long long a2, int a3, long long a4, long long a5, long long a6) { long long v7; // [rsp+8h] [rbp-28h] v7 = *a1; if ( (a1[7] & 2) != 0 ) { if ( *(_BYTE *)(a1[1] + *(unsigned int *)(v7 + 248)) ) { if ( a3 >= -1 && a3 < *(_DWORD *)(v7 + 256) ) { if ( a3 == -1 || (*((_DWORD *)a1 + 10) = a3, hp_make_key(872LL * a3 + *(_QWORD *)(v7 + 152), (bool *)a1[8], a2, (unsigned int)a3, a5, a6), hp_search(a1, 872LL * a3 + *(_QWORD *)(v7 + 152), a1[8], 3)) ) { memcpy(a2, a1[1], *(unsigned int *)(v7 + 244)); return 0; } else { *((_DWORD *)a1 + 14) = 0; return *(unsigned int *)my_thread_var(); } } else { *(_DWORD *)my_thread_var() = 124; return 124; } } else { *((_DWORD *)a1 + 14) = 0; *(_DWORD *)my_thread_var() = 134; return 134; } } else { *(_DWORD *)my_thread_var() = 133; return (unsigned int)-1; } }
heap_rsame: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x38] AND EAX,0x2 CMP EAX,0x0 JNZ 0x0012c5f4 CALL 0x00131370 MOV dword ptr [RAX],0x85 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0012c70f LAB_0012c5f4: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RCX + 0xf8] CMP byte ptr [RAX + RCX*0x1],0x0 JZ 0x0012c6f2 CMP dword ptr [RBP + -0x1c],-0x1 JL 0x0012c625 MOV EAX,dword ptr [RBP + -0x1c] MOV RCX,qword ptr [RBP + -0x28] CMP EAX,dword ptr [RCX + 0x100] JL 0x0012c63e LAB_0012c625: JMP 0x0012c627 LAB_0012c627: CALL 0x00131370 MOV dword ptr [RAX],0x7c MOV dword ptr [RBP + -0x4],0x7c JMP 0x0012c70f LAB_0012c63e: CMP dword ptr [RBP + -0x1c],-0x1 JZ 0x0012c6ca MOV ECX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x28],ECX MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX + 0x98] MOVSXD RAX,dword ptr [RBP + -0x1c] IMUL RAX,RAX,0x368 ADD RDI,RAX MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x40] MOV RDX,qword ptr [RBP + -0x18] CALL 0x0012a860 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RAX + 0x98] MOVSXD RAX,dword ptr [RBP + -0x1c] IMUL RAX,RAX,0x368 ADD RSI,RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x40] MOV ECX,0x3 CALL 0x00129380 CMP RAX,0x0 JNZ 0x0012c6c8 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x38],0x0 CALL 0x00131370 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4],EAX JMP 0x0012c70f LAB_0012c6c8: JMP 0x0012c6ca LAB_0012c6ca: JMP 0x0012c6cc LAB_0012c6cc: MOV RDI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX + 0xf4] MOV EDX,EAX CALL 0x00124200 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0012c70f LAB_0012c6f2: MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x38],0x0 CALL 0x00131370 MOV dword ptr [RAX],0x86 MOV dword ptr [RBP + -0x4],0x86 LAB_0012c70f: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 heap_rsame(long *param_1,void *param_2,int param_3) { long lVar1; int4 *puVar2; long lVar3; int4 local_c; lVar1 = *param_1; if ((*(uint *)(param_1 + 7) & 2) == 0) { puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x85; local_c = 0xffffffff; } else if (*(char *)(param_1[1] + (ulong)*(uint *)(lVar1 + 0xf8)) == '\0') { *(int4 *)(param_1 + 7) = 0; puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x86; local_c = 0x86; } else if ((param_3 < -1) || (*(int *)(lVar1 + 0x100) <= param_3)) { puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7c; local_c = 0x7c; } else { if (param_3 != -1) { *(int *)(param_1 + 5) = param_3; hp_make_key(*(long *)(lVar1 + 0x98) + (long)param_3 * 0x368,param_1[8],param_2); lVar3 = hp_search(param_1,*(long *)(lVar1 + 0x98) + (long)param_3 * 0x368,param_1[8],3); if (lVar3 == 0) { *(int4 *)(param_1 + 7) = 0; puVar2 = (int4 *)_my_thread_var(); return *puVar2; } } memcpy(param_2,(void *)param_1[1],(ulong)*(uint *)(lVar1 + 0xf4)); local_c = 0; } return local_c; }
34,032
composition_solid_source_in
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-blend.c
static void composition_solid_source_in(uint32_t* dest, int length, uint32_t color, uint32_t const_alpha) { if(const_alpha == 255) { for(int i = 0; i < length; i++) { dest[i] = BYTE_MUL(color, plutovg_alpha(dest[i])); } } else { color = BYTE_MUL(color, const_alpha); uint32_t cia = 255 - const_alpha; for(int i = 0; i < length; i++) { uint32_t d = dest[i]; dest[i] = INTERPOLATE_PIXEL(color, plutovg_alpha(d), d, cia); } } }
O1
c
composition_solid_source_in: pushq %rbp pushq %r14 pushq %rbx cmpl $0xff, %ecx jne 0x20e28 testl %esi, %esi jle 0x20ef0 movl $0xff00ff, %eax # imm = 0xFF00FF movl %edx, %ecx andl %eax, %ecx shrl $0x8, %edx andl %eax, %edx movl %esi, %esi xorl %r8d, %r8d movl $0x800080, %r9d # imm = 0x800080 movl (%rdi,%r8,4), %r10d shrl $0x18, %r10d movl %r10d, %r11d imull %ecx, %r11d movl %r11d, %ebx shrl $0x8, %ebx andl %eax, %ebx addl %r9d, %r11d addl %ebx, %r11d shrl $0x8, %r11d andl %eax, %r11d imull %edx, %r10d movl %r10d, %ebx shrl $0x8, %ebx andl %eax, %ebx addl %r9d, %r10d addl %ebx, %r10d andl $0xff00ff00, %r10d # imm = 0xFF00FF00 orl %r11d, %r10d movl %r10d, (%rdi,%r8,4) incq %r8 cmpq %r8, %rsi jne 0x20dd7 jmp 0x20ef0 testl %esi, %esi jle 0x20ef0 movl $0xff00ff, %eax # imm = 0xFF00FF movl %edx, %r8d andl %eax, %r8d imull %ecx, %r8d movl %r8d, %r9d shrl $0x8, %r9d andl %eax, %r9d addl %r9d, %r8d addl $0x800080, %r8d # imm = 0x800080 shrl $0x8, %r8d andl %eax, %r8d movl $0xff, %r9d subl %ecx, %r9d shrl $0x8, %edx andl %eax, %edx imull %ecx, %edx movl %edx, %ecx shrl $0x8, %ecx andl %eax, %ecx addl %edx, %ecx addl $0x800080, %ecx # imm = 0x800080 shrl $0x8, %ecx andl %eax, %ecx movl %esi, %edx xorl %esi, %esi movl $0x800080, %r10d # imm = 0x800080 movl (%rdi,%rsi,4), %r11d movl %r11d, %ebp shrl $0x18, %ebp movl %ebp, %r14d imull %r8d, %r14d movl %r11d, %ebx andl %eax, %ebx imull %r9d, %ebx addl %r14d, %ebx movl %ebx, %r14d shrl $0x8, %r14d andl %eax, %r14d addl %r10d, %ebx addl %r14d, %ebx shrl $0x8, %ebx andl %eax, %ebx imull %ecx, %ebp shrl $0x8, %r11d andl %eax, %r11d imull %r9d, %r11d addl %ebp, %r11d movl %r11d, %ebp shrl $0x8, %ebp andl %eax, %ebp addl %r10d, %r11d addl %ebp, %r11d andl $0xff00ff00, %r11d # imm = 0xFF00FF00 orl %ebx, %r11d movl %r11d, (%rdi,%rsi,4) incq %rsi cmpq %rsi, %rdx jne 0x20e89 popq %rbx popq %r14 popq %rbp retq
composition_solid_source_in: push rbp push r14 push rbx cmp ecx, 0FFh jnz short loc_20E28 test esi, esi jle loc_20EF0 mov eax, 0FF00FFh mov ecx, edx and ecx, eax shr edx, 8 and edx, eax mov esi, esi xor r8d, r8d mov r9d, 800080h loc_20DD7: mov r10d, [rdi+r8*4] shr r10d, 18h mov r11d, r10d imul r11d, ecx mov ebx, r11d shr ebx, 8 and ebx, eax add r11d, r9d add r11d, ebx shr r11d, 8 and r11d, eax imul r10d, edx mov ebx, r10d shr ebx, 8 and ebx, eax add r10d, r9d add r10d, ebx and r10d, 0FF00FF00h or r10d, r11d mov [rdi+r8*4], r10d inc r8 cmp rsi, r8 jnz short loc_20DD7 jmp loc_20EF0 loc_20E28: test esi, esi jle loc_20EF0 mov eax, 0FF00FFh mov r8d, edx and r8d, eax imul r8d, ecx mov r9d, r8d shr r9d, 8 and r9d, eax add r8d, r9d add r8d, 800080h shr r8d, 8 and r8d, eax mov r9d, 0FFh sub r9d, ecx shr edx, 8 and edx, eax imul edx, ecx mov ecx, edx shr ecx, 8 and ecx, eax add ecx, edx add ecx, 800080h shr ecx, 8 and ecx, eax mov edx, esi xor esi, esi mov r10d, 800080h loc_20E89: mov r11d, [rdi+rsi*4] mov ebp, r11d shr ebp, 18h mov r14d, ebp imul r14d, r8d mov ebx, r11d and ebx, eax imul ebx, r9d add ebx, r14d mov r14d, ebx shr r14d, 8 and r14d, eax add ebx, r10d add ebx, r14d shr ebx, 8 and ebx, eax imul ebp, ecx shr r11d, 8 and r11d, eax imul r11d, r9d add r11d, ebp mov ebp, r11d shr ebp, 8 and ebp, eax add r11d, r10d add r11d, ebp and r11d, 0FF00FF00h or r11d, ebx mov [rdi+rsi*4], r11d inc rsi cmp rdx, rsi jnz short loc_20E89 loc_20EF0: pop rbx pop r14 pop rbp retn
void composition_solid_source_in(long long a1, int a2, unsigned int a3, int a4) { int v4; // ecx int v5; // edx long long i; // r8 unsigned int v7; // r8d int v8; // r9d unsigned int v9; // ecx long long v10; // rdx long long j; // rsi if ( a4 == 255 ) { if ( a2 > 0 ) { v4 = a3 & 0xFF00FF; v5 = (a3 >> 8) & 0xFF00FF; for ( i = 0LL; i != a2; ++i ) *(_DWORD *)(a1 + 4 * i) = (((((unsigned int)(v4 * HIBYTE(*(_DWORD *)(a1 + 4 * i))) >> 8) & 0xFF00FF) + v4 * HIBYTE(*(_DWORD *)(a1 + 4 * i)) + 8388736) >> 8) & 0xFF00FF | ((((unsigned int)(v5 * HIBYTE(*(_DWORD *)(a1 + 4 * i))) >> 8) & 0xFF00FF) + v5 * HIBYTE(*(_DWORD *)(a1 + 4 * i)) + 8388736) & 0xFF00FF00; } } else if ( a2 > 0 ) { v7 = (((((a4 * (a3 & 0xFF00FF)) >> 8) & 0xFF00FF) + a4 * (a3 & 0xFF00FF) + 8388736) >> 8) & 0xFF00FF; v8 = 255 - a4; v9 = ((a4 * ((a3 >> 8) & 0xFF00FF) + (((a4 * ((a3 >> 8) & 0xFF00FF)) >> 8) & 0xFF00FF) + 8388736) >> 8) & 0xFF00FF; v10 = (unsigned int)a2; for ( j = 0LL; j != v10; ++j ) *(_DWORD *)(a1 + 4 * j) = (((((v7 * HIBYTE(*(_DWORD *)(a1 + 4 * j)) + v8 * (*(_DWORD *)(a1 + 4 * j) & 0xFF00FF)) >> 8) & 0xFF00FF) + v7 * HIBYTE(*(_DWORD *)(a1 + 4 * j)) + v8 * (*(_DWORD *)(a1 + 4 * j) & 0xFF00FF) + 8388736) >> 8) & 0xFF00FF | ((((v9 * HIBYTE(*(_DWORD *)(a1 + 4 * j)) + v8 * ((*(_DWORD *)(a1 + 4 * j) >> 8) & 0xFF00FF)) >> 8) & 0xFF00FF) + v9 * HIBYTE(*(_DWORD *)(a1 + 4 * j)) + v8 * ((*(_DWORD *)(a1 + 4 * j) >> 8) & 0xFF00FF) + 8388736) & 0xFF00FF00; } }
composition_solid_source_in: PUSH RBP PUSH R14 PUSH RBX CMP ECX,0xff JNZ 0x00120e28 TEST ESI,ESI JLE 0x00120ef0 MOV EAX,0xff00ff MOV ECX,EDX AND ECX,EAX SHR EDX,0x8 AND EDX,EAX MOV ESI,ESI XOR R8D,R8D MOV R9D,0x800080 LAB_00120dd7: MOV R10D,dword ptr [RDI + R8*0x4] SHR R10D,0x18 MOV R11D,R10D IMUL R11D,ECX MOV EBX,R11D SHR EBX,0x8 AND EBX,EAX ADD R11D,R9D ADD R11D,EBX SHR R11D,0x8 AND R11D,EAX IMUL R10D,EDX MOV EBX,R10D SHR EBX,0x8 AND EBX,EAX ADD R10D,R9D ADD R10D,EBX AND R10D,0xff00ff00 OR R10D,R11D MOV dword ptr [RDI + R8*0x4],R10D INC R8 CMP RSI,R8 JNZ 0x00120dd7 JMP 0x00120ef0 LAB_00120e28: TEST ESI,ESI JLE 0x00120ef0 MOV EAX,0xff00ff MOV R8D,EDX AND R8D,EAX IMUL R8D,ECX MOV R9D,R8D SHR R9D,0x8 AND R9D,EAX ADD R8D,R9D ADD R8D,0x800080 SHR R8D,0x8 AND R8D,EAX MOV R9D,0xff SUB R9D,ECX SHR EDX,0x8 AND EDX,EAX IMUL EDX,ECX MOV ECX,EDX SHR ECX,0x8 AND ECX,EAX ADD ECX,EDX ADD ECX,0x800080 SHR ECX,0x8 AND ECX,EAX MOV EDX,ESI XOR ESI,ESI MOV R10D,0x800080 LAB_00120e89: MOV R11D,dword ptr [RDI + RSI*0x4] MOV EBP,R11D SHR EBP,0x18 MOV R14D,EBP IMUL R14D,R8D MOV EBX,R11D AND EBX,EAX IMUL EBX,R9D ADD EBX,R14D MOV R14D,EBX SHR R14D,0x8 AND R14D,EAX ADD EBX,R10D ADD EBX,R14D SHR EBX,0x8 AND EBX,EAX IMUL EBP,ECX SHR R11D,0x8 AND R11D,EAX IMUL R11D,R9D ADD R11D,EBP MOV EBP,R11D SHR EBP,0x8 AND EBP,EAX ADD R11D,R10D ADD R11D,EBP AND R11D,0xff00ff00 OR R11D,EBX MOV dword ptr [RDI + RSI*0x4],R11D INC RSI CMP RDX,RSI JNZ 0x00120e89 LAB_00120ef0: POP RBX POP R14 POP RBP RET
void composition_solid_source_in(long param_1,uint param_2,uint param_3,int param_4) { uint uVar1; ulong uVar2; uint uVar3; uint uVar4; uint uVar5; if (param_4 == 0xff) { if (0 < (int)param_2) { uVar2 = 0; do { uVar3 = *(uint *)(param_1 + uVar2 * 4) >> 0x18; uVar4 = uVar3 * (param_3 & 0xff00ff); uVar3 = uVar3 * (param_3 >> 8 & 0xff00ff); *(uint *)(param_1 + uVar2 * 4) = uVar3 + 0x800080 + (uVar3 >> 8 & 0xff00ff) & 0xff00ff00 | uVar4 + 0x800080 + (uVar4 >> 8 & 0xff00ff) >> 8 & 0xff00ff; uVar2 = uVar2 + 1; } while (param_2 != uVar2); } } else if (0 < (int)param_2) { uVar4 = (param_3 & 0xff00ff) * param_4; uVar3 = (param_3 >> 8 & 0xff00ff) * param_4; uVar2 = 0; do { uVar5 = *(uint *)(param_1 + uVar2 * 4); uVar1 = (uVar5 & 0xff00ff) * (0xff - param_4) + (uVar5 >> 0x18) * (uVar4 + (uVar4 >> 8 & 0xff00ff) + 0x800080 >> 8 & 0xff00ff); uVar5 = (uVar5 >> 8 & 0xff00ff) * (0xff - param_4) + (uVar5 >> 0x18) * ((uVar3 >> 8 & 0xff00ff) + uVar3 + 0x800080 >> 8 & 0xff00ff); *(uint *)(param_1 + uVar2 * 4) = uVar5 + 0x800080 + (uVar5 >> 8 & 0xff00ff) & 0xff00ff00 | uVar1 + 0x800080 + (uVar1 >> 8 & 0xff00ff) >> 8 & 0xff00ff; uVar2 = uVar2 + 1; } while (param_2 != uVar2); } return; }
34,033
my_coll_parser_scan_shift
eloqsql/strings/ctype-uca.c
static int my_coll_parser_scan_shift(MY_COLL_RULE_PARSER *p) { if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_SHIFT) { my_coll_rule_shift_at_level(&p->rule, my_coll_parser_curr(p)->diff); return my_coll_parser_scan(p); } return 0; }
O3
c
my_coll_parser_scan_shift: xorl %eax, %eax cmpl $0x1, (%rdi) jne 0x61d3e movl 0x20(%rdi), %eax decl %eax cmpl $0x3, %eax ja 0x61d11 leaq 0x1a6180(%rip), %rcx # 0x207e40 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax incl 0xd0(%rdi) movl $0x0, 0xdc(%rdi) movq $0x0, 0xd4(%rdi) jmp 0x61d11 incl 0xd8(%rdi) movl $0x0, 0xdc(%rdi) jmp 0x61d11 incl 0xdc(%rdi) jmp 0x61d11 incl 0xd4(%rdi) movq $0x0, 0xd8(%rdi) pushq %rbp movq %rsp, %rbp leaq 0x28(%rdi), %rax movq 0x48(%rdi), %rcx movq %rcx, 0x20(%rdi) movups 0x28(%rdi), %xmm0 movups 0x38(%rdi), %xmm1 movups %xmm1, 0x10(%rdi) movups %xmm0, (%rdi) movq %rax, %rdi callq 0x61a0b movl $0x1, %eax popq %rbp retq
my_coll_parser_scan_shift: xor eax, eax cmp dword ptr [rdi], 1 jnz locret_61D3E mov eax, [rdi+20h] dec eax; switch 4 cases cmp eax, 3 ja short def_61CC7; jumptable 0000000000061CC7 default case lea rcx, jpt_61CC7 movsxd rax, ds:(jpt_61CC7 - 207E40h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_61CC9: inc dword ptr [rdi+0D0h]; jumptable 0000000000061CC7 case 1 mov dword ptr [rdi+0DCh], 0 mov qword ptr [rdi+0D4h], 0 jmp short def_61CC7; jumptable 0000000000061CC7 default case loc_61CE6: inc dword ptr [rdi+0D8h]; jumptable 0000000000061CC7 case 3 mov dword ptr [rdi+0DCh], 0 jmp short def_61CC7; jumptable 0000000000061CC7 default case loc_61CF8: inc dword ptr [rdi+0DCh]; jumptable 0000000000061CC7 case 4 jmp short def_61CC7; jumptable 0000000000061CC7 default case loc_61D00: inc dword ptr [rdi+0D4h]; jumptable 0000000000061CC7 case 2 mov qword ptr [rdi+0D8h], 0 def_61CC7: push rbp; jumptable 0000000000061CC7 default case mov rbp, rsp lea rax, [rdi+28h] mov rcx, [rdi+48h] mov [rdi+20h], rcx movups xmm0, xmmword ptr [rdi+28h] movups xmm1, xmmword ptr [rdi+38h] movups xmmword ptr [rdi+10h], xmm1 movups xmmword ptr [rdi], xmm0 mov rdi, rax call my_coll_lexem_next mov eax, 1 pop rbp locret_61D3E: retn
long long my_coll_parser_scan_shift(long long a1) { long long result; // rax __int128 v2; // xmm0 result = 0LL; if ( *(_DWORD *)a1 == 1 ) { switch ( *(_DWORD *)(a1 + 32) ) { case 1: ++*(_DWORD *)(a1 + 208); *(_DWORD *)(a1 + 220) = 0; *(_QWORD *)(a1 + 212) = 0LL; break; case 2: ++*(_DWORD *)(a1 + 212); *(_QWORD *)(a1 + 216) = 0LL; break; case 3: ++*(_DWORD *)(a1 + 216); *(_DWORD *)(a1 + 220) = 0; break; case 4: ++*(_DWORD *)(a1 + 220); break; default: break; } *(_QWORD *)(a1 + 32) = *(_QWORD *)(a1 + 72); v2 = *(_OWORD *)(a1 + 40); *(_OWORD *)(a1 + 16) = *(_OWORD *)(a1 + 56); *(_OWORD *)a1 = v2; my_coll_lexem_next(a1 + 40); return 1LL; } return result; }
my_coll_parser_scan_shift: XOR EAX,EAX CMP dword ptr [RDI],0x1 JNZ 0x00161d3e MOV EAX,dword ptr [RDI + 0x20] DEC EAX CMP EAX,0x3 JA 0x00161d11 LEA RCX,[0x307e40] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: INC dword ptr [RDI + 0xd0] MOV dword ptr [RDI + 0xdc],0x0 MOV qword ptr [RDI + 0xd4],0x0 JMP 0x00161d11 caseD_3: INC dword ptr [RDI + 0xd8] MOV dword ptr [RDI + 0xdc],0x0 JMP 0x00161d11 caseD_4: INC dword ptr [RDI + 0xdc] JMP 0x00161d11 caseD_2: INC dword ptr [RDI + 0xd4] MOV qword ptr [RDI + 0xd8],0x0 default: PUSH RBP MOV RBP,RSP LEA RAX,[RDI + 0x28] MOV RCX,qword ptr [RDI + 0x48] MOV qword ptr [RDI + 0x20],RCX MOVUPS XMM0,xmmword ptr [RDI + 0x28] MOVUPS XMM1,xmmword ptr [RDI + 0x38] MOVUPS xmmword ptr [RDI + 0x10],XMM1 MOVUPS xmmword ptr [RDI],XMM0 MOV RDI,RAX CALL 0x00161a0b MOV EAX,0x1 POP RBP LAB_00161d3e: RET
int8 my_coll_parser_scan_shift(int *param_1) { int8 uVar1; uVar1 = 0; if (*param_1 == 1) { switch(param_1[8]) { case 1: param_1[0x34] = param_1[0x34] + 1; param_1[0x37] = 0; param_1[0x35] = 0; param_1[0x36] = 0; break; case 2: param_1[0x35] = param_1[0x35] + 1; param_1[0x36] = 0; param_1[0x37] = 0; break; case 3: param_1[0x36] = param_1[0x36] + 1; param_1[0x37] = 0; break; case 4: param_1[0x37] = param_1[0x37] + 1; } *(int8 *)(param_1 + 8) = *(int8 *)(param_1 + 0x12); param_1[4] = param_1[0xe]; param_1[5] = param_1[0xf]; param_1[6] = param_1[0x10]; param_1[7] = param_1[0x11]; *param_1 = param_1[10]; param_1[1] = param_1[0xb]; param_1[2] = param_1[0xc]; param_1[3] = param_1[0xd]; my_coll_lexem_next(param_1 + 10); uVar1 = 1; } return uVar1; }
34,034
dbug_tmp_use_all_columns(TABLE*, st_bitmap**, st_bitmap**, st_bitmap**)
eloqsql/sql/table.h
static inline void dbug_tmp_use_all_columns(TABLE *table, MY_BITMAP **save, MY_BITMAP **read_set, MY_BITMAP **write_set) { #ifdef DBUG_ASSERT_EXISTS save[0]= *read_set; save[1]= *write_set; (void) tmp_use_all_columns(table, read_set); (void) tmp_use_all_columns(table, write_set); #endif }
O0
c
dbug_tmp_use_all_columns(TABLE*, st_bitmap**, st_bitmap**, st_bitmap**): pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) popq %rbp retq nopw %cs:(%rax,%rax)
_ZL24dbug_tmp_use_all_columnsP5TABLEPP9st_bitmapS3_S3_: 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 pop rbp retn
void dbug_tmp_use_all_columns() { ; }
__cxx_global_var_init.20: PUSH RBP MOV RBP,RSP LEA RDI,[0x1e7b890] LEA RSI,[0x153fc6f] CALL 0x00d0bb40 LEA RDI,[0xd0bbd0] LEA RSI,[0x1e7b890] LEA RDX,[0x1c3c008] CALL 0x00875dc0 POP RBP RET
void __cxx_global_var_init_20(void) { Named_type_handler<Type_handler_medium_blob_json>::Named_type_handler ((Named_type_handler<Type_handler_medium_blob_json> *)type_handler_medium_blob_json, "mediumblob/json"); __cxa_atexit(Named_type_handler<Type_handler_medium_blob_json>::~Named_type_handler, type_handler_medium_blob_json,&__dso_handle); return; }
34,035
js_parse_class_default_ctor
bluesky950520[P]quickjs/quickjs.c
static __exception int js_parse_class_default_ctor(JSParseState *s, BOOL has_super, JSFunctionDef **pfd) { JSParseFunctionEnum func_type; JSFunctionDef *fd = s->cur_func; fd = js_new_function_def(s->ctx, fd, FALSE, FALSE, s->filename, s->token.line_num, s->token.col_num); if (!fd) return -1; s->cur_func = fd; fd->has_home_object = TRUE; fd->super_allowed = TRUE; fd->has_prototype = FALSE; fd->has_this_binding = TRUE; fd->new_target_allowed = TRUE; /* error if not invoked as a constructor */ emit_op(s, OP_check_ctor); push_scope(s); /* enter body scope */ fd->body_scope = fd->scope_level; if (has_super) { fd->is_derived_class_constructor = TRUE; fd->super_call_allowed = TRUE; fd->arguments_allowed = TRUE; fd->has_arguments_binding = TRUE; func_type = JS_PARSE_FUNC_DERIVED_CLASS_CONSTRUCTOR; /* super */ emit_op(s, OP_scope_get_var); emit_atom(s, JS_ATOM_this_active_func); emit_u16(s, 0); emit_op(s, OP_get_super); emit_op(s, OP_scope_get_var); emit_atom(s, JS_ATOM_new_target); emit_u16(s, 0); emit_op(s, OP_array_from); emit_u16(s, 0); emit_op(s, OP_push_i32); emit_u32(s, 0); /* arguments */ emit_op(s, OP_scope_get_var); emit_atom(s, JS_ATOM_arguments); emit_u16(s, 0); emit_op(s, OP_append); /* drop the index */ emit_op(s, OP_drop); emit_op(s, OP_apply); emit_u16(s, 1); /* set the 'this' value */ emit_op(s, OP_dup); emit_op(s, OP_scope_put_var_init); emit_atom(s, JS_ATOM_this); emit_u16(s, 0); emit_class_field_init(s); } else { func_type = JS_PARSE_FUNC_CLASS_CONSTRUCTOR; emit_class_field_init(s); } fd->func_kind = JS_FUNC_NORMAL; fd->func_type = func_type; emit_return(s, FALSE); s->cur_func = fd->parent; if (pfd) *pfd = fd; int idx; /* the real object will be set at the end of the compilation */ idx = cpool_add(s, JS_NULL); fd->parent_cpool_idx = idx; return 0; }
O1
c
js_parse_class_default_ctor: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %r14 movl %esi, %ebp movq %rdi, %rbx movq 0x90(%rdi), %rsi movq (%rdi), %rdi movq 0x18(%rbx), %r8 movl 0x24(%rbx), %r9d movl 0x28(%rbx), %eax movl %eax, (%rsp) xorl %edx, %edx xorl %ecx, %ecx callq 0x11beb testq %rax, %rax je 0x1245b movq %rax, %r15 movq %rax, 0x90(%rbx) movq $0x1, 0x48(%rax) movl $0x1, 0x70(%rax) movabsq $0x100000001, %r12 # imm = 0x100000001 movq %r12, 0x64(%rax) movq %rax, %rdi addq $0x138, %rdi # imm = 0x138 movl 0x140(%rax), %eax movl %eax, 0x168(%r15) pushq $0x2b popq %rsi callq 0x1f52c movq %rbx, %rdi callq 0x5c4d5 movl 0xe8(%r15), %eax movl %eax, 0x120(%r15) testl %ebp, %ebp je 0x12461 pushq $0x1 popq %rax movl %eax, 0x6c(%r15) movq %r12, 0x74(%r15) movl %eax, 0x60(%r15) movq 0x90(%rbx), %rax movl $0x138, %r12d # imm = 0x138 leaq (%rax,%r12), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) movl $0xb7, %esi callq 0x1f52c movq 0x90(%rbx), %rdi addq %r12, %rdi leaq 0xc(%rsp), %rbp movl $0x73, (%rbp) pushq $0x4 popq %rdx movq %rbp, %rsi movq %r14, 0x10(%rsp) movq %rdx, %r14 callq 0x1f47e movq 0x90(%rbx), %rdi addq %r12, %rdi andw $0x0, (%rbp) leaq 0xc(%rsp), %r13 pushq $0x2 popq %rbp movq %r13, %rsi movq %rbp, %rdx callq 0x1f47e movq 0x90(%rbx), %rax leaq (%rax,%r12), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) pushq $0x34 popq %rsi callq 0x1f52c movq 0x90(%rbx), %rax leaq (%rax,%r12), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) movl $0xb7, %esi callq 0x1f52c movq 0x90(%rbx), %rdi addq %r12, %rdi movl $0x72, (%r13) leaq 0xc(%rsp), %r13 movq %r13, %rsi movq %r14, %rdx callq 0x1f47e movq 0x90(%rbx), %rdi addq %r12, %rdi andw $0x0, (%r13) leaq 0xc(%rsp), %r13 movq %r13, %rsi movq %rbp, %rdx callq 0x1f47e movq 0x90(%rbx), %rax leaq (%rax,%r12), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) pushq $0x26 popq %rsi callq 0x1f52c movq 0x90(%rbx), %rdi addq %r12, %rdi andw $0x0, (%r13) leaq 0xc(%rsp), %r13 movq %r13, %rsi movq %rbp, %rdx callq 0x1f47e movq 0x90(%rbx), %rax leaq (%rax,%r12), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) pushq $0x1 popq %rsi callq 0x1f52c movq 0x90(%rbx), %rdi addq %r12, %rdi andl $0x0, (%r13) leaq 0xc(%rsp), %r13 movq %r13, %rsi movq %r14, %rdx callq 0x1f47e movq 0x90(%rbx), %rax leaq (%rax,%r12), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) movl $0xb7, %esi callq 0x1f52c movq 0x90(%rbx), %rdi addq %r12, %rdi movl $0x4e, (%r13) leaq 0xc(%rsp), %r13 movq %r13, %rsi movq %r14, %rdx movq 0x10(%rsp), %r14 callq 0x1f47e movq 0x90(%rbx), %rdi addq %r12, %rdi andw $0x0, (%r13) leaq 0xc(%rsp), %r13 movq %r13, %rsi movq %rbp, %rdx callq 0x1f47e movq 0x90(%rbx), %rax leaq (%rax,%r12), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) pushq $0x52 popq %rsi callq 0x1f52c movq 0x90(%rbx), %rax leaq (%rax,%r12), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) pushq $0xe popq %rsi callq 0x1f52c movq 0x90(%rbx), %rax leaq (%rax,%r12), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) pushq $0x27 popq %rsi callq 0x1f52c movq 0x90(%rbx), %rdi addq %r12, %rdi movw $0x1, (%r13) leaq 0xc(%rsp), %r13 movq %r13, %rsi movq %rbp, %rdx callq 0x1f47e movq 0x90(%rbx), %rax leaq (%rax,%r12), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) pushq $0x11 popq %rsi callq 0x1f52c movq 0x90(%rbx), %rax leaq (%rax,%r12), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) movl $0xbc, %esi callq 0x1f52c movq 0x90(%rbx), %rdi addq %r12, %rdi movl $0x8, (%r13) leaq 0xc(%rsp), %r13 movq %r13, %rsi pushq $0x4 popq %rdx callq 0x1f47e addq 0x90(%rbx), %r12 andw $0x0, (%r13) leaq 0xc(%rsp), %rsi movq %r12, %rdi movq %rbp, %rdx callq 0x1f47e movw $0x900, %bp # imm = 0x900 jmp 0x12465 pushq $-0x1 popq %r12 jmp 0x124b7 movw $0x800, %bp # imm = 0x800 movq %rbx, %rdi callq 0x672c9 movl $0xffff8000, %eax # imm = 0xFFFF8000 andl 0x84(%r15), %eax movzwl %bp, %ecx orl %eax, %ecx movw %cx, 0x84(%r15) xorl %r12d, %r12d movq %rbx, %rdi xorl %esi, %esi callq 0x62c97 movq 0x8(%r15), %rax movq %rax, 0x90(%rbx) testq %r14, %r14 je 0x124a6 movq %r15, (%r14) pushq $0x2 popq %rdx movq %rbx, %rdi xorl %esi, %esi callq 0x69197 movl %eax, 0x10(%r15) movl %r12d, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_parse_class_default_ctor: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r14, rdx mov ebp, esi mov rbx, rdi mov rsi, [rdi+90h] mov rdi, [rdi] mov r8, [rbx+18h] mov r9d, [rbx+24h] mov eax, [rbx+28h] mov [rsp+48h+var_48], eax xor edx, edx xor ecx, ecx call js_new_function_def test rax, rax jz loc_1245B mov r15, rax mov [rbx+90h], rax mov qword ptr [rax+48h], 1 mov dword ptr [rax+70h], 1 mov r12, 100000001h mov [rax+64h], r12 mov rdi, rax add rdi, 138h mov eax, [rax+140h] mov [r15+168h], eax push 2Bh ; '+' pop rsi call dbuf_putc mov rdi, rbx call push_scope mov eax, [r15+0E8h] mov [r15+120h], eax test ebp, ebp jz loc_12461 push 1 pop rax mov [r15+6Ch], eax mov [r15+74h], r12 mov [r15+60h], eax mov rax, [rbx+90h] mov r12d, 138h lea rdi, [rax+r12] mov ecx, [rax+140h] mov [rax+168h], ecx mov esi, 0B7h call dbuf_putc mov rdi, [rbx+90h] add rdi, r12 lea rbp, [rsp+48h+var_3C] mov dword ptr [rbp+0], 73h ; 's' push 4 pop rdx mov rsi, rbp mov [rsp+48h+var_38], r14 mov r14, rdx call dbuf_put mov rdi, [rbx+90h] add rdi, r12 and word ptr [rbp+0], 0 lea r13, [rsp+48h+var_3C] push 2 pop rbp mov rsi, r13 mov rdx, rbp call dbuf_put mov rax, [rbx+90h] lea rdi, [rax+r12] mov ecx, [rax+140h] mov [rax+168h], ecx push 34h ; '4' pop rsi call dbuf_putc mov rax, [rbx+90h] lea rdi, [rax+r12] mov ecx, [rax+140h] mov [rax+168h], ecx mov esi, 0B7h call dbuf_putc mov rdi, [rbx+90h] add rdi, r12 mov dword ptr [r13+0], 72h ; 'r' lea r13, [rsp+48h+var_3C] mov rsi, r13 mov rdx, r14 call dbuf_put mov rdi, [rbx+90h] add rdi, r12 and word ptr [r13+0], 0 lea r13, [rsp+48h+var_3C] mov rsi, r13 mov rdx, rbp call dbuf_put mov rax, [rbx+90h] lea rdi, [rax+r12] mov ecx, [rax+140h] mov [rax+168h], ecx push 26h ; '&' pop rsi call dbuf_putc mov rdi, [rbx+90h] add rdi, r12 and word ptr [r13+0], 0 lea r13, [rsp+48h+var_3C] mov rsi, r13 mov rdx, rbp call dbuf_put mov rax, [rbx+90h] lea rdi, [rax+r12] mov ecx, [rax+140h] mov [rax+168h], ecx push 1 pop rsi call dbuf_putc mov rdi, [rbx+90h] add rdi, r12 and dword ptr [r13+0], 0 lea r13, [rsp+48h+var_3C] mov rsi, r13 mov rdx, r14 call dbuf_put mov rax, [rbx+90h] lea rdi, [rax+r12] mov ecx, [rax+140h] mov [rax+168h], ecx mov esi, 0B7h call dbuf_putc mov rdi, [rbx+90h] add rdi, r12 mov dword ptr [r13+0], 4Eh ; 'N' lea r13, [rsp+48h+var_3C] mov rsi, r13 mov rdx, r14 mov r14, [rsp+48h+var_38] call dbuf_put mov rdi, [rbx+90h] add rdi, r12 and word ptr [r13+0], 0 lea r13, [rsp+48h+var_3C] mov rsi, r13 mov rdx, rbp call dbuf_put mov rax, [rbx+90h] lea rdi, [rax+r12] mov ecx, [rax+140h] mov [rax+168h], ecx push 52h ; 'R' pop rsi call dbuf_putc mov rax, [rbx+90h] lea rdi, [rax+r12] mov ecx, [rax+140h] mov [rax+168h], ecx push 0Eh pop rsi call dbuf_putc mov rax, [rbx+90h] lea rdi, [rax+r12] mov ecx, [rax+140h] mov [rax+168h], ecx push 27h ; ''' pop rsi call dbuf_putc mov rdi, [rbx+90h] add rdi, r12 mov word ptr [r13+0], 1 lea r13, [rsp+48h+var_3C] mov rsi, r13 mov rdx, rbp call dbuf_put mov rax, [rbx+90h] lea rdi, [rax+r12] mov ecx, [rax+140h] mov [rax+168h], ecx push 11h pop rsi call dbuf_putc mov rax, [rbx+90h] lea rdi, [rax+r12] mov ecx, [rax+140h] mov [rax+168h], ecx mov esi, 0BCh call dbuf_putc mov rdi, [rbx+90h] add rdi, r12 mov dword ptr [r13+0], 8 lea r13, [rsp+48h+var_3C] mov rsi, r13 push 4 pop rdx call dbuf_put add r12, [rbx+90h] and word ptr [r13+0], 0 lea rsi, [rsp+48h+var_3C] mov rdi, r12 mov rdx, rbp call dbuf_put mov bp, 900h jmp short loc_12465 loc_1245B: push 0FFFFFFFFFFFFFFFFh pop r12 jmp short loc_124B7 loc_12461: mov bp, 800h loc_12465: mov rdi, rbx call emit_class_field_init mov eax, 0FFFF8000h and eax, [r15+84h] movzx ecx, bp or ecx, eax mov [r15+84h], cx xor r12d, r12d mov rdi, rbx xor esi, esi call emit_return mov rax, [r15+8] mov [rbx+90h], rax test r14, r14 jz short loc_124A6 mov [r14], r15 loc_124A6: push 2 pop rdx mov rdi, rbx xor esi, esi call cpool_add mov [r15+10h], eax loc_124B7: mov eax, r12d add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long js_parse_class_default_ctor(long long a1, int a2, _QWORD *a3) { _QWORD *v5; // rax _QWORD *v6; // r15 long long v7; // rax long long v8; // rdi long long v9; // rdi __int16 v10; // bp long long v11; // rax long long v12; // rax long long v13; // rdi long long v14; // rdi long long v15; // rax long long v16; // rdi long long v17; // rax long long v18; // rdi long long v19; // rax long long v20; // rdi long long v21; // rdi long long v22; // rax long long v23; // rax long long v24; // rax long long v25; // rdi long long v26; // rax long long v27; // rax long long v28; // rdi long long v29; // r12 unsigned int v30; // r12d int v32; // [rsp+Ch] [rbp-3Ch] BYREF _QWORD *v33; // [rsp+10h] [rbp-38h] v5 = js_new_function_def( *(_QWORD *)a1, *(_QWORD *)(a1 + 144), 0, 0, *(_QWORD *)(a1 + 24), *(_DWORD *)(a1 + 36), *(_DWORD *)(a1 + 40)); if ( v5 ) { v6 = v5; *(_QWORD *)(a1 + 144) = v5; v5[9] = 1LL; *((_DWORD *)v5 + 28) = 1; *(_QWORD *)((char *)v5 + 100) = 0x100000001LL; *((_DWORD *)v5 + 90) = *((_DWORD *)v5 + 80); dbuf_putc(v5 + 39, 43LL); push_scope(a1); *((_DWORD *)v6 + 72) = *((_DWORD *)v6 + 58); if ( a2 ) { *((_DWORD *)v6 + 27) = 1; *(_QWORD *)((char *)v6 + 116) = 0x100000001LL; *((_DWORD *)v6 + 24) = 1; v7 = *(_QWORD *)(a1 + 144); *(_DWORD *)(v7 + 360) = *(_DWORD *)(v7 + 320); dbuf_putc(v7 + 312, 183LL); v8 = *(_QWORD *)(a1 + 144) + 312LL; v32 = 115; v33 = a3; dbuf_put(v8, &v32, 4LL); v9 = *(_QWORD *)(a1 + 144) + 312LL; LOWORD(v32) = 0; v10 = 2304; dbuf_put(v9, &v32, 2LL); v11 = *(_QWORD *)(a1 + 144); *(_DWORD *)(v11 + 360) = *(_DWORD *)(v11 + 320); dbuf_putc(v11 + 312, 52LL); v12 = *(_QWORD *)(a1 + 144); *(_DWORD *)(v12 + 360) = *(_DWORD *)(v12 + 320); dbuf_putc(v12 + 312, 183LL); v13 = *(_QWORD *)(a1 + 144) + 312LL; v32 = 114; dbuf_put(v13, &v32, 4LL); v14 = *(_QWORD *)(a1 + 144) + 312LL; LOWORD(v32) = 0; dbuf_put(v14, &v32, 2LL); v15 = *(_QWORD *)(a1 + 144); *(_DWORD *)(v15 + 360) = *(_DWORD *)(v15 + 320); dbuf_putc(v15 + 312, 38LL); v16 = *(_QWORD *)(a1 + 144) + 312LL; LOWORD(v32) = 0; dbuf_put(v16, &v32, 2LL); v17 = *(_QWORD *)(a1 + 144); *(_DWORD *)(v17 + 360) = *(_DWORD *)(v17 + 320); dbuf_putc(v17 + 312, 1LL); v18 = *(_QWORD *)(a1 + 144) + 312LL; v32 = 0; dbuf_put(v18, &v32, 4LL); v19 = *(_QWORD *)(a1 + 144); *(_DWORD *)(v19 + 360) = *(_DWORD *)(v19 + 320); dbuf_putc(v19 + 312, 183LL); v20 = *(_QWORD *)(a1 + 144) + 312LL; v32 = 78; a3 = v33; dbuf_put(v20, &v32, 4LL); v21 = *(_QWORD *)(a1 + 144) + 312LL; LOWORD(v32) = 0; dbuf_put(v21, &v32, 2LL); v22 = *(_QWORD *)(a1 + 144); *(_DWORD *)(v22 + 360) = *(_DWORD *)(v22 + 320); dbuf_putc(v22 + 312, 82LL); v23 = *(_QWORD *)(a1 + 144); *(_DWORD *)(v23 + 360) = *(_DWORD *)(v23 + 320); dbuf_putc(v23 + 312, 14LL); v24 = *(_QWORD *)(a1 + 144); *(_DWORD *)(v24 + 360) = *(_DWORD *)(v24 + 320); dbuf_putc(v24 + 312, 39LL); v25 = *(_QWORD *)(a1 + 144) + 312LL; LOWORD(v32) = 1; dbuf_put(v25, &v32, 2LL); v26 = *(_QWORD *)(a1 + 144); *(_DWORD *)(v26 + 360) = *(_DWORD *)(v26 + 320); dbuf_putc(v26 + 312, 17LL); v27 = *(_QWORD *)(a1 + 144); *(_DWORD *)(v27 + 360) = *(_DWORD *)(v27 + 320); dbuf_putc(v27 + 312, 188LL); v28 = *(_QWORD *)(a1 + 144) + 312LL; v32 = 8; dbuf_put(v28, &v32, 4LL); v29 = *(_QWORD *)(a1 + 144) + 312LL; LOWORD(v32) = 0; dbuf_put(v29, &v32, 2LL); } else { v10 = 2048; } emit_class_field_init(a1); *((_WORD *)v6 + 66) = *((_WORD *)v6 + 66) & 0x8000 | v10; v30 = 0; emit_return(a1, 0LL); *(_QWORD *)(a1 + 144) = v6[1]; if ( a3 ) *a3 = v6; *((_DWORD *)v6 + 4) = cpool_add(a1, 0LL, 2LL); } else { return (unsigned int)-1; } return v30; }
js_parse_class_default_ctor: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14,RDX MOV EBP,ESI MOV RBX,RDI MOV RSI,qword ptr [RDI + 0x90] MOV RDI,qword ptr [RDI] MOV R8,qword ptr [RBX + 0x18] MOV R9D,dword ptr [RBX + 0x24] MOV EAX,dword ptr [RBX + 0x28] MOV dword ptr [RSP],EAX XOR EDX,EDX XOR ECX,ECX CALL 0x00111beb TEST RAX,RAX JZ 0x0011245b MOV R15,RAX MOV qword ptr [RBX + 0x90],RAX MOV qword ptr [RAX + 0x48],0x1 MOV dword ptr [RAX + 0x70],0x1 MOV R12,0x100000001 MOV qword ptr [RAX + 0x64],R12 MOV RDI,RAX ADD RDI,0x138 MOV EAX,dword ptr [RAX + 0x140] MOV dword ptr [R15 + 0x168],EAX PUSH 0x2b POP RSI CALL 0x0011f52c MOV RDI,RBX CALL 0x0015c4d5 MOV EAX,dword ptr [R15 + 0xe8] MOV dword ptr [R15 + 0x120],EAX TEST EBP,EBP JZ 0x00112461 PUSH 0x1 POP RAX MOV dword ptr [R15 + 0x6c],EAX MOV qword ptr [R15 + 0x74],R12 MOV dword ptr [R15 + 0x60],EAX MOV RAX,qword ptr [RBX + 0x90] MOV R12D,0x138 LEA RDI,[RAX + R12*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX MOV ESI,0xb7 CALL 0x0011f52c MOV RDI,qword ptr [RBX + 0x90] ADD RDI,R12 LEA RBP,[RSP + 0xc] MOV dword ptr [RBP],0x73 PUSH 0x4 POP RDX MOV RSI,RBP MOV qword ptr [RSP + 0x10],R14 MOV R14,RDX CALL 0x0011f47e MOV RDI,qword ptr [RBX + 0x90] ADD RDI,R12 AND word ptr [RBP],0x0 LEA R13,[RSP + 0xc] PUSH 0x2 POP RBP MOV RSI,R13 MOV RDX,RBP CALL 0x0011f47e MOV RAX,qword ptr [RBX + 0x90] LEA RDI,[RAX + R12*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX PUSH 0x34 POP RSI CALL 0x0011f52c MOV RAX,qword ptr [RBX + 0x90] LEA RDI,[RAX + R12*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX MOV ESI,0xb7 CALL 0x0011f52c MOV RDI,qword ptr [RBX + 0x90] ADD RDI,R12 MOV dword ptr [R13],0x72 LEA R13,[RSP + 0xc] MOV RSI,R13 MOV RDX,R14 CALL 0x0011f47e MOV RDI,qword ptr [RBX + 0x90] ADD RDI,R12 AND word ptr [R13],0x0 LEA R13,[RSP + 0xc] MOV RSI,R13 MOV RDX,RBP CALL 0x0011f47e MOV RAX,qword ptr [RBX + 0x90] LEA RDI,[RAX + R12*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX PUSH 0x26 POP RSI CALL 0x0011f52c MOV RDI,qword ptr [RBX + 0x90] ADD RDI,R12 AND word ptr [R13],0x0 LEA R13,[RSP + 0xc] MOV RSI,R13 MOV RDX,RBP CALL 0x0011f47e MOV RAX,qword ptr [RBX + 0x90] LEA RDI,[RAX + R12*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX PUSH 0x1 POP RSI CALL 0x0011f52c MOV RDI,qword ptr [RBX + 0x90] ADD RDI,R12 AND dword ptr [R13],0x0 LEA R13,[RSP + 0xc] MOV RSI,R13 MOV RDX,R14 CALL 0x0011f47e MOV RAX,qword ptr [RBX + 0x90] LEA RDI,[RAX + R12*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX MOV ESI,0xb7 CALL 0x0011f52c MOV RDI,qword ptr [RBX + 0x90] ADD RDI,R12 MOV dword ptr [R13],0x4e LEA R13,[RSP + 0xc] MOV RSI,R13 MOV RDX,R14 MOV R14,qword ptr [RSP + 0x10] CALL 0x0011f47e MOV RDI,qword ptr [RBX + 0x90] ADD RDI,R12 AND word ptr [R13],0x0 LEA R13,[RSP + 0xc] MOV RSI,R13 MOV RDX,RBP CALL 0x0011f47e MOV RAX,qword ptr [RBX + 0x90] LEA RDI,[RAX + R12*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX PUSH 0x52 POP RSI CALL 0x0011f52c MOV RAX,qword ptr [RBX + 0x90] LEA RDI,[RAX + R12*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX PUSH 0xe POP RSI CALL 0x0011f52c MOV RAX,qword ptr [RBX + 0x90] LEA RDI,[RAX + R12*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX PUSH 0x27 POP RSI CALL 0x0011f52c MOV RDI,qword ptr [RBX + 0x90] ADD RDI,R12 MOV word ptr [R13],0x1 LEA R13,[RSP + 0xc] MOV RSI,R13 MOV RDX,RBP CALL 0x0011f47e MOV RAX,qword ptr [RBX + 0x90] LEA RDI,[RAX + R12*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX PUSH 0x11 POP RSI CALL 0x0011f52c MOV RAX,qword ptr [RBX + 0x90] LEA RDI,[RAX + R12*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX MOV ESI,0xbc CALL 0x0011f52c MOV RDI,qword ptr [RBX + 0x90] ADD RDI,R12 MOV dword ptr [R13],0x8 LEA R13,[RSP + 0xc] MOV RSI,R13 PUSH 0x4 POP RDX CALL 0x0011f47e ADD R12,qword ptr [RBX + 0x90] AND word ptr [R13],0x0 LEA RSI,[RSP + 0xc] MOV RDI,R12 MOV RDX,RBP CALL 0x0011f47e MOV BP,0x900 JMP 0x00112465 LAB_0011245b: PUSH -0x1 POP R12 JMP 0x001124b7 LAB_00112461: MOV BP,0x800 LAB_00112465: MOV RDI,RBX CALL 0x001672c9 MOV EAX,0xffff8000 AND EAX,dword ptr [R15 + 0x84] MOVZX ECX,BP OR ECX,EAX MOV word ptr [R15 + 0x84],CX XOR R12D,R12D MOV RDI,RBX XOR ESI,ESI CALL 0x00162c97 MOV RAX,qword ptr [R15 + 0x8] MOV qword ptr [RBX + 0x90],RAX TEST R14,R14 JZ 0x001124a6 MOV qword ptr [R14],R15 LAB_001124a6: PUSH 0x2 POP RDX MOV RDI,RBX XOR ESI,ESI CALL 0x00169197 MOV dword ptr [R15 + 0x10],EAX LAB_001124b7: MOV EAX,R12D ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int4 js_parse_class_default_ctor(int8 *param_1,int param_2,long *param_3) { long lVar1; int4 uVar2; long lVar3; ushort uVar4; int4 uVar5; uint local_3c; long *local_38; lVar3 = js_new_function_def(*param_1,param_1[0x12],0,0,param_1[3], *(int4 *)((long)param_1 + 0x24),*(int4 *)(param_1 + 5)); if (lVar3 == 0) { uVar5 = 0xffffffff; } else { param_1[0x12] = lVar3; *(int8 *)(lVar3 + 0x48) = 1; *(int4 *)(lVar3 + 0x70) = 1; *(int8 *)(lVar3 + 100) = 0x100000001; *(int4 *)(lVar3 + 0x168) = *(int4 *)(lVar3 + 0x140); dbuf_putc(lVar3 + 0x138,0x2b); push_scope(param_1); *(int4 *)(lVar3 + 0x120) = *(int4 *)(lVar3 + 0xe8); if (param_2 == 0) { uVar4 = 0x800; } else { *(int4 *)(lVar3 + 0x6c) = 1; *(int8 *)(lVar3 + 0x74) = 0x100000001; *(int4 *)(lVar3 + 0x60) = 1; lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,0xb7); local_3c = 0x73; local_38 = param_3; dbuf_put(param_1[0x12] + 0x138,&local_3c,4); local_3c = local_3c & 0xffff0000; dbuf_put(param_1[0x12] + 0x138,&local_3c,2); lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,0x34); lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,0xb7); local_3c = 0x72; dbuf_put(param_1[0x12] + 0x138,&local_3c,4); local_3c = local_3c & 0xffff0000; dbuf_put(param_1[0x12] + 0x138,&local_3c,2); lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,0x26); local_3c = local_3c & 0xffff0000; dbuf_put(param_1[0x12] + 0x138,&local_3c,2); lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,1); local_3c = 0; dbuf_put(param_1[0x12] + 0x138,&local_3c,4); lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,0xb7); param_3 = local_38; local_3c = 0x4e; dbuf_put(param_1[0x12] + 0x138,&local_3c,4); local_3c = local_3c & 0xffff0000; dbuf_put(param_1[0x12] + 0x138,&local_3c,2); lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,0x52); lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,0xe); lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,0x27); local_3c = CONCAT22(local_3c._2_2_,1); dbuf_put(param_1[0x12] + 0x138,&local_3c,2); lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,0x11); lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,0xbc); local_3c = 8; dbuf_put(param_1[0x12] + 0x138,&local_3c,4); local_3c = local_3c & 0xffff0000; dbuf_put(param_1[0x12] + 0x138,&local_3c,2); uVar4 = 0x900; } emit_class_field_init(param_1); *(ushort *)(lVar3 + 0x84) = uVar4 | (ushort)*(int4 *)(lVar3 + 0x84) & 0x8000; uVar5 = 0; emit_return(param_1,0); param_1[0x12] = *(int8 *)(lVar3 + 8); if (param_3 != (long *)0x0) { *param_3 = lVar3; } uVar2 = cpool_add(param_1,0,2); *(int4 *)(lVar3 + 0x10) = uVar2; } return uVar5; }
34,036
r3d_shader_load_generate_cubemap_from_equirectangular
r3d/src/r3d_state.c
void r3d_shader_load_generate_cubemap_from_equirectangular(void) { R3D.shader.generate.cubemapFromEquirectangular.id = rlLoadShaderCode( VS_COMMON_CUBEMAP, FS_GENERATE_CUBEMAP_FROM_EQUIRECTANGULAR ); r3d_shader_get_location(generate.cubemapFromEquirectangular, uMatProj); r3d_shader_get_location(generate.cubemapFromEquirectangular, uMatView); r3d_shader_get_location(generate.cubemapFromEquirectangular, uTexEquirectangular); r3d_shader_enable(generate.cubemapFromEquirectangular); r3d_shader_set_sampler2D_slot(generate.cubemapFromEquirectangular, uTexEquirectangular, 0); r3d_shader_disable(); }
O3
c
r3d_shader_load_generate_cubemap_from_equirectangular: pushq %rbp movq %rsp, %rbp leaq 0x58536(%rip), %rdi # 0x11af40 leaq 0x5883f(%rip), %rsi # 0x11b250 callq 0x1ed91 movl %eax, 0xef354(%rip) # 0x1b1d70 leaq 0x50655(%rip), %rsi # 0x113078 movl %eax, %edi callq 0x1f1ea movl %eax, 0xef344(%rip) # 0x1b1d74 movl 0xef33a(%rip), %edi # 0x1b1d70 leaq 0x50644(%rip), %rsi # 0x113081 callq 0x1f1ea movl %eax, 0xef330(%rip) # 0x1b1d78 movl 0xef322(%rip), %edi # 0x1b1d70 leaq 0x50635(%rip), %rsi # 0x11308a callq 0x1f1ea movl %eax, 0xef320(%rip) # 0x1b1d80 movl 0xef30a(%rip), %edi # 0x1b1d70 callq 0x1c616 cmpl $0x0, 0xef30a(%rip) # 0x1b1d7c je 0xc2a9a movl $0x0, 0xef2fe(%rip) # 0x1b1d7c leaq 0xef2f7(%rip), %rsi # 0x1b1d7c movl 0xef2f5(%rip), %edi # 0x1b1d80 movl $0x4, %edx movl $0x1, %ecx callq 0x1f206 popq %rbp jmp 0x1c621
r3d_shader_load_generate_cubemap_from_equirectangular: push rbp mov rbp, rsp lea rdi, VS_COMMON_CUBEMAP; "#version 330 core\nlayout(location=0)in"... lea rsi, FS_GENERATE_CUBEMAP_FROM_EQUIRECTANGULAR; "#version 330 core\nin vec3 vPosition;un"... call rlLoadShaderCode mov cs:dword_1B1D70, eax lea rsi, aUmatproj; "uMatProj" mov edi, eax call rlGetLocationUniform mov cs:dword_1B1D74, eax mov edi, cs:dword_1B1D70 lea rsi, aUmatview; "uMatView" call rlGetLocationUniform mov cs:dword_1B1D78, eax mov edi, cs:dword_1B1D70 lea rsi, aUtexequirectan; "uTexEquirectangular" call rlGetLocationUniform mov cs:dword_1B1D80, eax mov edi, cs:dword_1B1D70 call rlEnableShader cmp cs:dword_1B1D7C, 0 jz short loc_C2A9A mov cs:dword_1B1D7C, 0 lea rsi, dword_1B1D7C mov edi, cs:dword_1B1D80 mov edx, 4 mov ecx, 1 call rlSetUniform loc_C2A9A: pop rbp jmp rlDisableShader
long long r3d_shader_load_generate_cubemap_from_equirectangular() { int v0; // r8d int v1; // r9d dword_1B1D70 = rlLoadShaderCode( (long long)"#version 330 core\n" "layout(location=0)in vec3 aPosition;uniform mat4 uMatProj;uniform mat4 uMatView;out vec3 vPo" "sition;void main(){vPosition=aPosition;gl_Position=uMatProj*uMatView*vec4(vPosition,1.0);}", (long long)"#version 330 core\n" "in vec3 vPosition;uniform sampler2D uTexEquirectangular;out vec4 a;vec2 SampleSphericalMap(v" "ec3 d){vec2 c=vec2(atan(d.z,d.x),asin(d.y));c*=vec2(0.1591,-0.3183);c+=0.5;return c;}void ma" "in(){vec2 c=SampleSphericalMap(normalize(vPosition));vec3 b=texture(uTexEquirectangular,c).r" "gb;a=vec4(b,1.0);}"); dword_1B1D74 = rlGetLocationUniform((unsigned int)dword_1B1D70, (long long)"uMatProj"); dword_1B1D78 = rlGetLocationUniform((unsigned int)dword_1B1D70, (long long)"uMatView"); dword_1B1D80 = rlGetLocationUniform((unsigned int)dword_1B1D70, (long long)"uTexEquirectangular"); rlEnableShader((unsigned int)dword_1B1D70); if ( dword_1B1D7C ) { dword_1B1D7C = 0; rlSetUniform((unsigned int)dword_1B1D80, (long long)&dword_1B1D7C, 4, 1u, v0, v1); } return rlDisableShader(); }
r3d_shader_load_generate_cubemap_from_equirectangular: PUSH RBP MOV RBP,RSP LEA RDI,[0x21af40] LEA RSI,[0x21b250] CALL 0x0011ed91 MOV dword ptr [0x002b1d70],EAX LEA RSI,[0x213078] MOV EDI,EAX CALL 0x0011f1ea MOV dword ptr [0x002b1d74],EAX MOV EDI,dword ptr [0x002b1d70] LEA RSI,[0x213081] CALL 0x0011f1ea MOV dword ptr [0x002b1d78],EAX MOV EDI,dword ptr [0x002b1d70] LEA RSI,[0x21308a] CALL 0x0011f1ea MOV dword ptr [0x002b1d80],EAX MOV EDI,dword ptr [0x002b1d70] CALL 0x0011c616 CMP dword ptr [0x002b1d7c],0x0 JZ 0x001c2a9a MOV dword ptr [0x002b1d7c],0x0 LEA RSI,[0x2b1d7c] MOV EDI,dword ptr [0x002b1d80] MOV EDX,0x4 MOV ECX,0x1 CALL 0x0011f206 LAB_001c2a9a: POP RBP JMP 0x0011c621
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void r3d_shader_load_generate_cubemap_from_equirectangular(void) { DAT_002b1d70 = rlLoadShaderCode("#version 330 core\nlayout(location=0)in vec3 aPosition;uniform mat4 uMatProj;uniform mat4 uMatView;out vec3 vPosition;void main(){vPosition=aPosition;gl_Position=uMatProj*uMatView*vec4(vPosition,1.0);}" , "#version 330 core\nin vec3 vPosition;uniform sampler2D uTexEquirectangular;out vec4 a;vec2 SampleSphericalMap(vec3 d){vec2 c=vec2(atan(d.z,d.x),asin(d.y));c*=vec2(0.1591,-0.3183);c+=0.5;return c;}void main(){vec2 c=SampleSphericalMap(normalize(vPosition));vec3 b=texture(uTexEquirectangular,c).rgb;a=vec4(b,1.0);}" ); _DAT_002b1d74 = rlGetLocationUniform(DAT_002b1d70,"uMatProj"); _DAT_002b1d78 = rlGetLocationUniform(DAT_002b1d70,"uMatView"); _DAT_002b1d80 = rlGetLocationUniform(DAT_002b1d70,"uTexEquirectangular"); rlEnableShader(DAT_002b1d70); if (_DAT_002b1d7c != 0) { _DAT_002b1d7c = 0; rlSetUniform(_DAT_002b1d80,&DAT_002b1d7c,4,1); } rlDisableShader(); return; }
34,037
fini_one_value
eloqsql/mysys/my_getopt.c
static void fini_one_value(const struct my_option *option, void *variable, longlong value __attribute__ ((unused))) { DBUG_ENTER("fini_one_value"); switch ((option->var_type & GET_TYPE_MASK)) { case GET_STR_ALLOC: my_free(*((char**) variable)); *((char**) variable)= NULL; break; default: /* dummy default to avoid compiler warnings */ break; } DBUG_VOID_RETURN; }
O3
c
fini_one_value: movl 0x30(%rdi), %eax andl $0x3f, %eax cmpl $0xa, %eax jne 0xa3f30 pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rsi, %rbx movq (%rsi), %rdi callq 0xa6612 movq $0x0, (%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
fini_one_value: mov eax, [rdi+30h] and eax, 3Fh cmp eax, 0Ah jnz short locret_A3F30 push rbp mov rbp, rsp push rbx push rax mov rbx, rsi mov rdi, [rsi] call my_free mov qword ptr [rbx], 0 add rsp, 8 pop rbx pop rbp locret_A3F30: retn
long long fini_one_value(long long a1, _QWORD *a2) { long long result; // rax result = *(_DWORD *)(a1 + 48) & 0x3F; if ( (_DWORD)result == 10 ) { result = my_free(*a2); *a2 = 0LL; } return result; }
fini_one_value: MOV EAX,dword ptr [RDI + 0x30] AND EAX,0x3f CMP EAX,0xa JNZ 0x001a3f30 PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RSI MOV RDI,qword ptr [RSI] CALL 0x001a6612 MOV qword ptr [RBX],0x0 ADD RSP,0x8 POP RBX POP RBP LAB_001a3f30: RET
void fini_one_value(long param_1,int8 *param_2) { if ((*(uint *)(param_1 + 0x30) & 0x3f) == 10) { my_free(*param_2); *param_2 = 0; } return; }
34,038
minja::Value::operator-(minja::Value const&) const
llama.cpp/common/minja/minja.hpp
Value operator-(const Value& rhs) const { if (is_number_integer() && rhs.is_number_integer()) return get<int64_t>() - rhs.get<int64_t>(); else return get<double>() - rhs.get<double>(); }
O3
cpp
minja::Value::operator-(minja::Value const&) const: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdx, %r14 movq %rdi, %rbx movb 0x40(%rsi), %al addb $-0x5, %al cmpb $0x1, %al ja 0xf0b45 movb 0x40(%r14), %al addb $-0x5, %al cmpb $0x1, %al ja 0xf0b45 movq %rsi, %rdi callq 0xc52b2 movq %rax, %r15 movq %r14, %rdi callq 0xc52b2 subq %rax, %r15 leaq 0x40(%rbx), %r14 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r14, %rdi movq %r15, %rsi callq 0x8f498 jmp 0xf0b91 movq %rsi, %rdi callq 0xc246c movsd %xmm0, 0x8(%rsp) movq %r14, %rdi callq 0xc246c movsd 0x8(%rsp), %xmm1 subsd %xmm0, %xmm1 leaq 0x40(%rbx), %r14 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r14, %rdi movapd %xmm1, %xmm0 callq 0x8ea60 movq %r14, %rdi movl $0x1, %esi callq 0x886ee movq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq nop
_ZNK5minja5ValuemiERKS0_: push r15 push r14 push rbx sub rsp, 10h mov r14, rdx mov rbx, rdi mov al, [rsi+40h] add al, 0FBh cmp al, 1 ja short loc_F0B45 mov al, [r14+40h] add al, 0FBh cmp al, 1 ja short loc_F0B45 mov rdi, rsi call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov r15, rax mov rdi, r14 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) sub r15, rax lea r14, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r14 mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) jmp short loc_F0B91 loc_F0B45: mov rdi, rsi call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd [rsp+28h+var_20], xmm0 mov rdi, r14 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd xmm1, [rsp+28h+var_20] subsd xmm1, xmm0 lea r14, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r14 movapd xmm0, xmm1 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t) loc_F0B91: 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) mov rax, rbx add rsp, 10h pop rbx pop r14 pop r15 retn
long long minja::Value::operator-(long long a1, long long a2, long long a3) { long long v4; // r15 long long v5; // rax char *v6; // r14 double v7; // xmm0_8 double v9; // [rsp+8h] [rbp-20h] if ( (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 1u || (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) > 1u ) { v9 = minja::Value::get<double>((_QWORD *)a2); v7 = minja::Value::get<double>((_QWORD *)a3); v6 = (char *)(a1 + 64); *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (unsigned __int8 *)(a1 + 64), v9 - v7); } else { v4 = minja::Value::get<long>((_QWORD *)a2); v5 = minja::Value::get<long>((_QWORD *)a3); v6 = (char *)(a1 + 64); *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (unsigned __int8 *)(a1 + 64), v4 - v5); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v6); return a1; }
operator-: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RDX MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x001f0b45 MOV AL,byte ptr [R14 + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x001f0b45 MOV RDI,RSI CALL 0x001c52b2 MOV R15,RAX MOV RDI,R14 CALL 0x001c52b2 SUB R15,RAX LEA R14,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOV RSI,R15 CALL 0x0018f498 JMP 0x001f0b91 LAB_001f0b45: MOV RDI,RSI CALL 0x001c246c MOVSD qword ptr [RSP + 0x8],XMM0 MOV RDI,R14 CALL 0x001c246c MOVSD XMM1,qword ptr [RSP + 0x8] SUBSD XMM1,XMM0 LEA R14,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOVAPD XMM0,XMM1 CALL 0x0018ea60 LAB_001f0b91: MOV RDI,R14 MOV ESI,0x1 CALL 0x001886ee MOV RAX,RBX ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ Value * __thiscall minja::Value::operator-(Value *this,Value *param_1) { long lVar1; long lVar2; Value *in_RDX; double dVar3; double dVar4; if (((byte)((char)param_1[0x40] - 5U) < 2) && ((byte)((char)in_RDX[0x40] - 5U) < 2)) { lVar1 = get<long>(param_1); lVar2 = get<long>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (this + 0x40,lVar1 - lVar2); } else { dVar3 = get<double>(param_1); dVar4 = get<double>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (dVar3 - dVar4,this + 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> ::assert_invariant((bool)((char)this + '@')); return this; }
34,039
nglog::tools::GetStackTrace(void**, int, int)
ng-log[P]ng-log/src/stacktrace_generic-inl.h
int GetStackTrace(void** result, int max_depth, int skip_count) { static const int kStackLength = 64; void* stack[kStackLength]; int size; size = backtrace(stack, kStackLength); skip_count++; // we want to skip the current frame as well int result_count = size - skip_count; if (result_count < 0) { result_count = 0; } if (result_count > max_depth) { result_count = max_depth; } for (int i = 0; i < result_count; i++) { result[i] = stack[i + skip_count]; } return result_count; }
O0
c
nglog::tools::GetStackTrace(void**, int, int): pushq %rbp movq %rsp, %rbp subq $0x220, %rsp # imm = 0x220 movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) leaq -0x210(%rbp), %rdi movl $0x40, %esi callq 0x9b30 movl %eax, -0x214(%rbp) movl -0x10(%rbp), %eax addl $0x1, %eax movl %eax, -0x10(%rbp) movl -0x214(%rbp), %eax subl -0x10(%rbp), %eax movl %eax, -0x218(%rbp) cmpl $0x0, -0x218(%rbp) jge 0x48e97 movl $0x0, -0x218(%rbp) movl -0x218(%rbp), %eax cmpl -0xc(%rbp), %eax jle 0x48eab movl -0xc(%rbp), %eax movl %eax, -0x218(%rbp) movl $0x0, -0x21c(%rbp) movl -0x21c(%rbp), %eax cmpl -0x218(%rbp), %eax jge 0x48ef6 movl -0x21c(%rbp), %eax addl -0x10(%rbp), %eax cltq movq -0x210(%rbp,%rax,8), %rdx movq -0x8(%rbp), %rax movslq -0x21c(%rbp), %rcx movq %rdx, (%rax,%rcx,8) movl -0x21c(%rbp), %eax addl $0x1, %eax movl %eax, -0x21c(%rbp) jmp 0x48eb5 movl -0x218(%rbp), %eax addq $0x220, %rsp # imm = 0x220 popq %rbp retq nopw %cs:(%rax,%rax) nop
_ZN5nglog5tools13GetStackTraceEPPvii: push rbp mov rbp, rsp sub rsp, 220h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx lea rdi, [rbp+var_210] mov esi, 40h ; '@' call _backtrace mov [rbp+var_214], eax mov eax, [rbp+var_10] add eax, 1 mov [rbp+var_10], eax mov eax, [rbp+var_214] sub eax, [rbp+var_10] mov [rbp+var_218], eax cmp [rbp+var_218], 0 jge short loc_48E97 mov [rbp+var_218], 0 loc_48E97: mov eax, [rbp+var_218] cmp eax, [rbp+var_C] jle short loc_48EAB mov eax, [rbp+var_C] mov [rbp+var_218], eax loc_48EAB: mov [rbp+var_21C], 0 loc_48EB5: mov eax, [rbp+var_21C] cmp eax, [rbp+var_218] jge short loc_48EF6 mov eax, [rbp+var_21C] add eax, [rbp+var_10] cdqe mov rdx, [rbp+rax*8+var_210] mov rax, [rbp+var_8] movsxd rcx, [rbp+var_21C] mov [rax+rcx*8], rdx mov eax, [rbp+var_21C] add eax, 1 mov [rbp+var_21C], eax jmp short loc_48EB5 loc_48EF6: mov eax, [rbp+var_218] add rsp, 220h pop rbp retn
long long nglog::tools::GetStackTrace(nglog::tools *this, void **a2, int a3) { int i; // [rsp+4h] [rbp-21Ch] signed int v5; // [rsp+8h] [rbp-218h] int v6; // [rsp+Ch] [rbp-214h] _QWORD v7[64]; // [rsp+10h] [rbp-210h] BYREF int v8; // [rsp+210h] [rbp-10h] int v9; // [rsp+214h] [rbp-Ch] nglog::tools *v10; // [rsp+218h] [rbp-8h] v10 = this; v9 = (int)a2; v8 = a3; v6 = backtrace(v7, 64LL); ++v8; v5 = v6 - v8; if ( v6 - v8 < 0 ) v5 = 0; if ( v5 > v9 ) v5 = v9; for ( i = 0; i < v5; ++i ) *((_QWORD *)v10 + i) = v7[v8 + i]; return (unsigned int)v5; }
GetStackTrace: PUSH RBP MOV RBP,RSP SUB RSP,0x220 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX LEA RDI,[RBP + -0x210] MOV ESI,0x40 CALL 0x00109b30 MOV dword ptr [RBP + -0x214],EAX MOV EAX,dword ptr [RBP + -0x10] ADD EAX,0x1 MOV dword ptr [RBP + -0x10],EAX MOV EAX,dword ptr [RBP + -0x214] SUB EAX,dword ptr [RBP + -0x10] MOV dword ptr [RBP + -0x218],EAX CMP dword ptr [RBP + -0x218],0x0 JGE 0x00148e97 MOV dword ptr [RBP + -0x218],0x0 LAB_00148e97: MOV EAX,dword ptr [RBP + -0x218] CMP EAX,dword ptr [RBP + -0xc] JLE 0x00148eab MOV EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0x218],EAX LAB_00148eab: MOV dword ptr [RBP + -0x21c],0x0 LAB_00148eb5: MOV EAX,dword ptr [RBP + -0x21c] CMP EAX,dword ptr [RBP + -0x218] JGE 0x00148ef6 MOV EAX,dword ptr [RBP + -0x21c] ADD EAX,dword ptr [RBP + -0x10] CDQE MOV RDX,qword ptr [RBP + RAX*0x8 + -0x210] MOV RAX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RBP + -0x21c] MOV qword ptr [RAX + RCX*0x8],RDX MOV EAX,dword ptr [RBP + -0x21c] ADD EAX,0x1 MOV dword ptr [RBP + -0x21c],EAX JMP 0x00148eb5 LAB_00148ef6: MOV EAX,dword ptr [RBP + -0x218] ADD RSP,0x220 POP RBP RET
/* nglog::tools::GetStackTrace(void**, int, int) */ int nglog::tools::GetStackTrace(void **param_1,int param_2,int param_3) { int local_224; int local_220; int8 local_218 [64]; int local_18; int local_14; void **local_10; local_18 = param_3; local_14 = param_2; local_10 = param_1; local_220 = backtrace(local_218,0x40); local_18 = local_18 + 1; local_220 = local_220 - local_18; if (local_220 < 0) { local_220 = 0; } if (local_14 < local_220) { local_220 = local_14; } for (local_224 = 0; local_224 < local_220; local_224 = local_224 + 1) { local_10[local_224] = (void *)local_218[local_224 + local_18]; } return local_220; }
34,040
nglog::tools::GetStackTrace(void**, int, int)
ng-log[P]ng-log/src/stacktrace_generic-inl.h
int GetStackTrace(void** result, int max_depth, int skip_count) { static const int kStackLength = 64; void* stack[kStackLength]; int size; size = backtrace(stack, kStackLength); skip_count++; // we want to skip the current frame as well int result_count = size - skip_count; if (result_count < 0) { result_count = 0; } if (result_count > max_depth) { result_count = max_depth; } for (int i = 0; i < result_count; i++) { result[i] = stack[i + skip_count]; } return result_count; }
O1
c
nglog::tools::GetStackTrace(void**, int, int): pushq %rbp pushq %r14 pushq %rbx subq $0x200, %rsp # imm = 0x200 movl %edx, %ebp movl %esi, %r14d movq %rdi, %rbx movq %rsp, %rdi movl $0x40, %esi callq 0x7830 movl %eax, %ecx incl %ebp subl %ebp, %ecx xorl %eax, %eax testl %ecx, %ecx cmovgl %ecx, %eax cmpl %r14d, %eax cmovgel %r14d, %eax testl %eax, %eax jle 0x20287 movslq %ebp, %rdx movl %eax, %ecx leaq (%rsp,%rdx,8), %rdx xorl %esi, %esi movq (%rdx,%rsi,8), %rdi movq %rdi, (%rbx,%rsi,8) incq %rsi cmpq %rsi, %rcx jne 0x20277 addq $0x200, %rsp # imm = 0x200 popq %rbx popq %r14 popq %rbp retq nop
_ZN5nglog5tools13GetStackTraceEPPvii: push rbp push r14 push rbx sub rsp, 200h mov ebp, edx mov r14d, esi mov rbx, rdi mov rdi, rsp mov esi, 40h ; '@' call _backtrace mov ecx, eax inc ebp sub ecx, ebp xor eax, eax test ecx, ecx cmovg eax, ecx cmp eax, r14d cmovge eax, r14d test eax, eax jle short loc_20287 movsxd rdx, ebp mov ecx, eax lea rdx, [rsp+rdx*8+218h+var_218] xor esi, esi loc_20277: mov rdi, [rdx+rsi*8] mov [rbx+rsi*8], rdi inc rsi cmp rcx, rsi jnz short loc_20277 loc_20287: add rsp, 200h pop rbx pop r14 pop rbp retn
long long nglog::tools::GetStackTrace(nglog::tools *this, void **a2, int a3) { int v3; // ebp int v4; // ecx long long result; // rax long long v6; // rsi _QWORD v7[67]; // [rsp+0h] [rbp-218h] BYREF v3 = a3 + 1; v4 = backtrace(v7, 64LL) - (a3 + 1); result = 0LL; if ( v4 > 0 ) result = (unsigned int)v4; if ( (int)result >= (int)a2 ) result = (unsigned int)a2; if ( (int)result > 0 ) { v6 = 0LL; do { *((_QWORD *)this + v6) = v7[v3 + v6]; ++v6; } while ( (unsigned int)result != v6 ); } return result; }
GetStackTrace: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x200 MOV EBP,EDX MOV R14D,ESI MOV RBX,RDI MOV RDI,RSP MOV ESI,0x40 CALL 0x00107830 MOV ECX,EAX INC EBP SUB ECX,EBP XOR EAX,EAX TEST ECX,ECX CMOVG EAX,ECX CMP EAX,R14D CMOVGE EAX,R14D TEST EAX,EAX JLE 0x00120287 MOVSXD RDX,EBP MOV ECX,EAX LEA RDX,[RSP + RDX*0x8] XOR ESI,ESI LAB_00120277: MOV RDI,qword ptr [RDX + RSI*0x8] MOV qword ptr [RBX + RSI*0x8],RDI INC RSI CMP RCX,RSI JNZ 0x00120277 LAB_00120287: ADD RSP,0x200 POP RBX POP R14 POP RBP RET
/* nglog::tools::GetStackTrace(void**, int, int) */ void nglog::tools::GetStackTrace(void **param_1,int param_2,int param_3) { int iVar1; uint uVar2; uint uVar3; ulong uVar4; int8 auStack_218 [64]; iVar1 = backtrace(auStack_218); uVar3 = iVar1 - (param_3 + 1); uVar2 = 0; if (0 < (int)uVar3) { uVar2 = uVar3; } if (param_2 <= (int)uVar2) { uVar2 = param_2; } if (0 < (int)uVar2) { uVar4 = 0; do { param_1[uVar4] = (void *)auStack_218[(long)(param_3 + 1) + uVar4]; uVar4 = uVar4 + 1; } while (uVar2 != uVar4); } return; }
34,041
nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*)
monkey531[P]llama/common/json.hpp
static invalid_iterator create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("invalid_iterator", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdx, %r15 movl %esi, %ebp movq %rdi, %rbx leaq 0x38(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x5f875(%rip), %rsi # 0xf0312 leaq 0x5f87e(%rip), %rdx # 0xf0322 leaq 0x28(%rsp), %rdi callq 0x261e8 leaq 0x48(%rsp), %rdi leaq 0x28(%rsp), %rsi movl %ebp, %edx callq 0x5c75a leaq 0x78(%rsp), %r14 movq %r14, -0x10(%r14) xorl %eax, %eax movq %rax, -0x8(%r14) movb %al, (%r14) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) movq %rax, -0x8(%r12) movb %al, (%r12) movq 0x8(%r15), %rsi addq 0x50(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x1bff0 movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x1b2b0 movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x1b2b0 movq (%r15), %rsi movq 0x8(%r15), %rdx leaq 0x8(%rsp), %rdi callq 0x1b2b0 movq 0x68(%rsp), %rdi cmpq %r14, %rdi je 0x90b47 movq 0x78(%rsp), %rsi incq %rsi callq 0x1ba60 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x90b62 movq 0x58(%rsp), %rsi incq %rsi callq 0x1ba60 movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x90b79 movq 0x38(%rsp), %rsi incq %rsi callq 0x1ba60 movq 0x8(%rsp), %rdx movq %rbx, %rdi movl %ebp, %esi callq 0x5c956 leaq 0x9d391(%rip), %rax # 0x12df20 addq $0x10, %rax movq %rax, (%rbx) movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x90bad movq 0x18(%rsp), %rsi incq %rsi callq 0x1ba60 movq %rbx, %rax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x90c3b movq 0x18(%rsp), %rsi jmp 0x90c33 movq %rax, %rbx jmp 0x90c24 movq %rax, %rbx jmp 0x90c3b movq %rdx, %rbx movq %rax, %r15 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x90bfd movq 0x18(%rsp), %rsi incq %rsi callq 0x1ba60 leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x88(%rsp), %r12 movq %r14, %rsi movq %r15, %rcx movl %ebx, %r8d movq %r12, %r9 callq 0x1d1d6 movq (%r12), %rbx movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x90c3b movq 0x38(%rsp), %rsi incq %rsi callq 0x1ba60 movq %rbx, %rdi callq 0x1c250 nop
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov r15, rdx mov ebp, esi mov rbx, rdi lea r13, [rsp+0C8h+var_90] mov [r13-10h], r13 lea rsi, aInvalidIterato; "invalid_iterator" lea rdx, aInvalidIterato+10h; "" lea rdi, [rsp+0C8h+var_A0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0C8h+var_80]; int lea rsi, [rsp+0C8h+var_A0]; int mov edx, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea r14, [rsp+0C8h+var_50] mov [r14-10h], r14 xor eax, eax mov [r14-8], rax mov [r14], al lea r12, [rsp+0C8h+var_B0] mov [r12-10h], r12 mov [r12-8], rax mov [r12], al mov rsi, [r15+8] add rsi, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rsi, qword ptr [rsp+0C8h+var_80] mov rdx, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [rsp+0C8h+var_60] mov rdx, [rsp+0C8h+var_58] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [r15] mov rdx, [r15+8] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+0C8h+var_60]; void * cmp rdi, r14 jz short loc_90B47 mov rsi, [rsp+0C8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_90B47: lea rax, [rsp+0C8h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_90B62 mov rsi, [rsp+0C8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_90B62: mov rdi, [rsp+0C8h+var_A0]; void * cmp rdi, r13 jz short loc_90B79 mov rsi, [rsp+0C8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_90B79: mov rdx, [rsp+0C8h+var_C0]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*) lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator add rax, 10h mov [rbx], rax mov rdi, [rsp+0C8h+var_C0]; void * cmp rdi, r12 jz short loc_90BAD mov rsi, [rsp+0C8h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_90BAD: mov rax, rbx add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_0] cmp rdi, r12 jz short loc_90C3B mov rsi, [rsp+arg_10] jmp short loc_90C33 mov rbx, rax jmp short loc_90C24 mov rbx, rax jmp short loc_90C3B mov rbx, rdx mov r15, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_90BFD mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_90BFD: lea rdi, [rsp+arg_60] lea rdx, [rsp+arg_40] lea r12, [rsp+arg_80] mov rsi, r14 mov rcx, r15 mov r8d, ebx mov r9, r12 call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK__cold_1 mov rbx, [r12] loc_90C24: mov rdi, [rsp+arg_20]; void * cmp rdi, r13 jz short loc_90C3B mov rsi, [rsp+arg_30] loc_90C33: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_90C3B: mov rdi, rbx call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( nlohmann::json_abi_v3_11_3::detail::exception *this, int a2, _QWORD *a3) { char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF _QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF _QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF int v9[2]; // [rsp+48h] [rbp-80h] BYREF long long v10; // [rsp+50h] [rbp-78h] long long v11; // [rsp+58h] [rbp-70h] BYREF void *v12; // [rsp+68h] [rbp-60h] long long v13; // [rsp+70h] [rbp-58h] _QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF v7[0] = v8; std::string::_M_construct<char const*>((long long)v7, "invalid_iterator", (long long)""); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2); v12 = v14; v13 = 0LL; LOBYTE(v14[0]) = 0; v5[0] = (char *)v6; v5[1] = 0LL; LOBYTE(v6[0]) = 0; std::string::reserve(v5, v10 + a3[1]); std::string::_M_append(v5, *(_QWORD *)v9, v10); std::string::_M_append(v5, v12, v13); std::string::_M_append(v5, *a3, a3[1]); if ( v12 != v14 ) operator delete(v12, v14[0] + 1LL); if ( *(long long **)v9 != &v11 ) operator delete(*(void **)v9, v11 + 1); if ( v7[0] != v8 ) operator delete(v7[0], v8[0] + 1LL); nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]); *(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator + 2; if ( (_QWORD *)v5[0] != v6 ) operator delete(v5[0], v6[0] + 1LL); return this; }
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R15,RDX MOV EBP,ESI MOV RBX,RDI LEA R13,[RSP + 0x38] MOV qword ptr [R13 + -0x10],R13 LAB_00190a96: LEA RSI,[0x1f0312] LEA RDX,[0x1f0322] LEA RDI,[RSP + 0x28] CALL 0x001261e8 LAB_00190aae: LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x28] MOV EDX,EBP CALL 0x0015c75a LEA R14,[RSP + 0x78] MOV qword ptr [R14 + -0x10],R14 XOR EAX,EAX MOV qword ptr [R14 + -0x8],RAX MOV byte ptr [R14],AL LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 MOV qword ptr [R12 + -0x8],RAX MOV byte ptr [R12],AL MOV RSI,qword ptr [R15 + 0x8] ADD RSI,qword ptr [RSP + 0x50] LAB_00190aed: LEA RDI,[RSP + 0x8] CALL 0x0011bff0 MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] LEA RDI,[RSP + 0x8] CALL 0x0011b2b0 MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] LEA RDI,[RSP + 0x8] CALL 0x0011b2b0 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] LEA RDI,[RSP + 0x8] CALL 0x0011b2b0 MOV RDI,qword ptr [RSP + 0x68] CMP RDI,R14 JZ 0x00190b47 MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x0011ba60 LAB_00190b47: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00190b62 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0011ba60 LAB_00190b62: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R13 JZ 0x00190b79 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011ba60 LAB_00190b79: MOV RDX,qword ptr [RSP + 0x8] LAB_00190b7e: MOV RDI,RBX MOV ESI,EBP CALL 0x0015c956 LAB_00190b88: LEA RAX,[0x22df20] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00190bad MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011ba60 LAB_00190bad: MOV RAX,RBX ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
exception * _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (exception *param_1,int param_2,ulong *param_3) { char *local_c0; int8 local_b8; char local_b0; int7 uStack_af; long *local_a0 [2]; long local_90 [2]; long *local_80 [2]; long local_70 [2]; int1 *local_60; int8 local_58; int1 local_50; int7 uStack_4f; /* try { // try from 00190a96 to 00190aad has its CatchHandler @ 00190bdb */ local_a0[0] = local_90; std::__cxx11::string::_M_construct<char_const*>(local_a0,"invalid_iterator",""); /* try { // try from 00190aae to 00190abe has its CatchHandler @ 00190bd6 */ nlohmann::json_abi_v3_11_3::detail::exception::name ((exception *)local_80,(string *)local_a0,param_2); local_58 = 0; local_50 = 0; local_b8 = 0; local_b0 = '\0'; /* try { // try from 00190aed to 00190b2f has its CatchHandler @ 00190be0 */ local_c0 = &local_b0; local_60 = &local_50; std::__cxx11::string::reserve((ulong)&local_c0); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60); std::__cxx11::string::_M_append((char *)&local_c0,*param_3); if (local_60 != &local_50) { operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1); } if (local_80[0] != local_70) { operator_delete(local_80[0],local_70[0] + 1); } if (local_a0[0] != local_90) { operator_delete(local_a0[0],local_90[0] + 1); } /* try { // try from 00190b7e to 00190b87 has its CatchHandler @ 00190bc2 */ nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0); *(int ***)param_1 = &PTR__exception_0022df30; if (local_c0 != &local_b0) { operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1); } return param_1; }
34,042
translog_purge_at_flush
eloqsql/storage/maria/ma_loghandler.c
my_bool translog_purge_at_flush() { uint32 i, min_file; int rc= 0; DBUG_ENTER("translog_purge_at_flush"); DBUG_ASSERT(translog_status == TRANSLOG_OK || translog_status == TRANSLOG_READONLY); if (unlikely(translog_status == TRANSLOG_READONLY)) { DBUG_PRINT("info", ("The log is read only => exit")); DBUG_RETURN(0); } if (log_purge_type != TRANSLOG_PURGE_ONDEMAND) { DBUG_PRINT("info", ("It is not \"at_flush\" => exit")); DBUG_RETURN(0); } mysql_mutex_lock(&log_descriptor.purger_lock); if (unlikely(log_descriptor.min_need_file == 0 || log_purge_disabled)) { DBUG_PRINT("info", ("No info about min need file => exit")); mysql_mutex_unlock(&log_descriptor.purger_lock); DBUG_RETURN(0); } min_file= translog_first_file(translog_get_horizon(), 1); DBUG_ASSERT(min_file != 0); /* log is already started */ for(i= min_file; i < log_descriptor.min_need_file && rc == 0; i++) { char path[FN_REFLEN], *file_name; DBUG_PRINT("info", ("purge file %lu\n", (ulong) i)); file_name= translog_filename_by_fileno(i, path); rc= MY_TEST(mysql_file_delete(key_file_translog, file_name, MYF(MY_WME))); } mysql_mutex_unlock(&log_descriptor.purger_lock); DBUG_RETURN(rc); }
O0
c
translog_purge_at_flush: pushq %rbp movq %rsp, %rbp subq $0x230, %rsp # imm = 0x230 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movl $0x0, -0x220(%rbp) jmp 0x52f74 cmpl $0x2, 0x430185(%rip) # 0x483100 sete %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x52fa8 jmp 0x52f98 jmp 0x52f9a jmp 0x52f9c movb $0x0, -0x211(%rbp) jmp 0x53129 cmpq $0x2, 0x430138(%rip) # 0x4830e8 je 0x52fc4 jmp 0x52fb4 jmp 0x52fb6 jmp 0x52fb8 movb $0x0, -0x211(%rbp) jmp 0x53129 leaq 0x431345(%rip), %rdi # 0x484310 addq $0x800e80, %rdi # imm = 0x800E80 leaq 0x107578(%rip), %rsi # 0x15a551 movl $0x2234, %edx # imm = 0x2234 callq 0x4b220 movb $0x1, %al cmpl $0x0, 0xc3219c(%rip) # 0xc85188 movb %al, -0x229(%rbp) je 0x53004 cmpl $0x0, 0x4300e5(%rip) # 0x4830e0 setne %al movb %al, -0x229(%rbp) movb -0x229(%rbp), %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x53045 jmp 0x53024 jmp 0x53026 leaq 0x4312e3(%rip), %rdi # 0x484310 addq $0x800e80, %rdi # imm = 0x800E80 callq 0x4b290 movb $0x0, -0x211(%rbp) jmp 0x53129 callq 0x500c0 movq %rax, %rdi movl $0x1, %esi callq 0x4d400 movl %eax, -0x21c(%rbp) jmp 0x5305f movl -0x21c(%rbp), %eax movl %eax, -0x218(%rbp) movl -0x218(%rbp), %ecx xorl %eax, %eax cmpl 0xc3210f(%rip), %ecx # 0xc85188 movb %al, -0x22a(%rbp) jae 0x53091 cmpl $0x0, -0x220(%rbp) sete %al movb %al, -0x22a(%rbp) movb -0x22a(%rbp), %al testb $0x1, %al jne 0x5309d jmp 0x5310a jmp 0x5309f jmp 0x530a1 movl -0x218(%rbp), %edi leaq -0x210(%rbp), %rsi callq 0x4ad20 movq %rax, -0x228(%rbp) leaq 0x42fba3(%rip), %rax # 0x482c64 movl (%rax), %edi movq -0x228(%rbp), %rcx leaq 0x107480(%rip), %rsi # 0x15a551 movl $0x2245, %edx # imm = 0x2245 movl $0x10, %r8d callq 0x52e70 movl %eax, %edx xorl %eax, %eax movl $0x1, %ecx cmpl $0x0, %edx cmovnel %ecx, %eax movl %eax, -0x220(%rbp) movl -0x218(%rbp), %eax addl $0x1, %eax movl %eax, -0x218(%rbp) jmp 0x5306b leaq 0x4311ff(%rip), %rdi # 0x484310 addq $0x800e80, %rdi # imm = 0x800E80 callq 0x4b290 movl -0x220(%rbp), %eax movb %al, -0x211(%rbp) movb -0x211(%rbp), %al movb %al, -0x22b(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x53156 movb -0x22b(%rbp), %al addq $0x230, %rsp # imm = 0x230 popq %rbp retq callq 0x2a270 nopl (%rax,%rax)
translog_purge_at_flush: push rbp mov rbp, rsp sub rsp, 230h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_220], 0 jmp short $+2 loc_52F74: cmp cs:translog_status, 2 setz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_52FA8 jmp short $+2 loc_52F98: jmp short $+2 loc_52F9A: jmp short $+2 loc_52F9C: mov [rbp+var_211], 0 jmp loc_53129 loc_52FA8: cmp cs:log_purge_type, 2 jz short loc_52FC4 jmp short $+2 loc_52FB4: jmp short $+2 loc_52FB6: jmp short $+2 loc_52FB8: mov [rbp+var_211], 0 jmp loc_53129 loc_52FC4: lea rdi, log_descriptor add rdi, 800E80h lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 2234h call inline_mysql_mutex_lock_7 mov al, 1 cmp cs:dword_C85188, 0 mov [rbp+var_229], al jz short loc_53004 cmp cs:log_purge_disabled, 0 setnz al mov [rbp+var_229], al loc_53004: mov al, [rbp+var_229] and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_53045 jmp short $+2 loc_53024: jmp short $+2 loc_53026: lea rdi, log_descriptor add rdi, 800E80h call inline_mysql_mutex_unlock_7 mov [rbp+var_211], 0 jmp loc_53129 loc_53045: call translog_get_horizon mov rdi, rax mov esi, 1 call translog_first_file mov [rbp+var_21C], eax jmp short $+2 loc_5305F: mov eax, [rbp+var_21C] mov [rbp+var_218], eax loc_5306B: mov ecx, [rbp+var_218] xor eax, eax cmp ecx, cs:dword_C85188 mov [rbp+var_22A], al jnb short loc_53091 cmp [rbp+var_220], 0 setz al mov [rbp+var_22A], al loc_53091: mov al, [rbp+var_22A] test al, 1 jnz short loc_5309D jmp short loc_5310A loc_5309D: jmp short $+2 loc_5309F: jmp short $+2 loc_530A1: mov edi, [rbp+var_218] lea rsi, [rbp+var_210] call translog_filename_by_fileno mov [rbp+var_228], rax lea rax, key_file_translog mov edi, [rax] mov rcx, [rbp+var_228] lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 2245h mov r8d, 10h call inline_mysql_file_delete_0 mov edx, eax xor eax, eax mov ecx, 1 cmp edx, 0 cmovnz eax, ecx mov [rbp+var_220], eax mov eax, [rbp+var_218] add eax, 1 mov [rbp+var_218], eax jmp loc_5306B loc_5310A: lea rdi, log_descriptor add rdi, 800E80h call inline_mysql_mutex_unlock_7 mov eax, [rbp+var_220] mov [rbp+var_211], al loc_53129: mov al, [rbp+var_211] mov [rbp+var_22B], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_53156 mov al, [rbp+var_22B] add rsp, 230h pop rbp retn loc_53156: call ___stack_chk_fail
bool translog_purge_at_flush() { long long horizon; // rax long long v1; // rdx int v2; // r8d int v3; // r9d bool v5; // [rsp+6h] [rbp-22Ah] bool v6; // [rsp+7h] [rbp-229h] long long v7; // [rsp+8h] [rbp-228h] BOOL v8; // [rsp+10h] [rbp-220h] unsigned int i; // [rsp+18h] [rbp-218h] _BYTE v11[520]; // [rsp+20h] [rbp-210h] BYREF unsigned long long v12; // [rsp+228h] [rbp-8h] v12 = __readfsqword(0x28u); v8 = 0; if ( translog_status == 2 ) return 0; if ( log_purge_type != 2 ) return 0; inline_mysql_mutex_lock_7( (long long)&log_descriptor[1049040], (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x2234u); v6 = 1; if ( dword_C85188 ) v6 = log_purge_disabled != 0; if ( v6 ) { inline_mysql_mutex_unlock_7((long long)&log_descriptor[1049040]); return 0; } else { horizon = translog_get_horizon(); for ( i = translog_first_file(horizon, 1); ; ++i ) { v5 = 0; if ( i < dword_C85188 ) v5 = !v8; if ( !v5 ) break; v7 = translog_filename_by_fileno(i, (long long)v11, v1, i, v2, v3); v1 = (unsigned int)inline_mysql_file_delete_0( key_file_translog, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x2245u, v7, 16LL); v8 = v1 != 0; } inline_mysql_mutex_unlock_7((long long)&log_descriptor[1049040]); return v8; } }
translog_purge_at_flush: PUSH RBP MOV RBP,RSP SUB RSP,0x230 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV dword ptr [RBP + -0x220],0x0 JMP 0x00152f74 LAB_00152f74: CMP dword ptr [0x00583100],0x2 SETZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00152fa8 JMP 0x00152f98 LAB_00152f98: JMP 0x00152f9a LAB_00152f9a: JMP 0x00152f9c LAB_00152f9c: MOV byte ptr [RBP + -0x211],0x0 JMP 0x00153129 LAB_00152fa8: CMP qword ptr [0x005830e8],0x2 JZ 0x00152fc4 JMP 0x00152fb4 LAB_00152fb4: JMP 0x00152fb6 LAB_00152fb6: JMP 0x00152fb8 LAB_00152fb8: MOV byte ptr [RBP + -0x211],0x0 JMP 0x00153129 LAB_00152fc4: LEA RDI,[0x584310] ADD RDI,0x800e80 LEA RSI,[0x25a551] MOV EDX,0x2234 CALL 0x0014b220 MOV AL,0x1 CMP dword ptr [0x00d85188],0x0 MOV byte ptr [RBP + -0x229],AL JZ 0x00153004 CMP dword ptr [0x005830e0],0x0 SETNZ AL MOV byte ptr [RBP + -0x229],AL LAB_00153004: MOV AL,byte ptr [RBP + -0x229] AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00153045 JMP 0x00153024 LAB_00153024: JMP 0x00153026 LAB_00153026: LEA RDI,[0x584310] ADD RDI,0x800e80 CALL 0x0014b290 MOV byte ptr [RBP + -0x211],0x0 JMP 0x00153129 LAB_00153045: CALL 0x001500c0 MOV RDI,RAX MOV ESI,0x1 CALL 0x0014d400 MOV dword ptr [RBP + -0x21c],EAX JMP 0x0015305f LAB_0015305f: MOV EAX,dword ptr [RBP + -0x21c] MOV dword ptr [RBP + -0x218],EAX LAB_0015306b: MOV ECX,dword ptr [RBP + -0x218] XOR EAX,EAX CMP ECX,dword ptr [0x00d85188] MOV byte ptr [RBP + -0x22a],AL JNC 0x00153091 CMP dword ptr [RBP + -0x220],0x0 SETZ AL MOV byte ptr [RBP + -0x22a],AL LAB_00153091: MOV AL,byte ptr [RBP + -0x22a] TEST AL,0x1 JNZ 0x0015309d JMP 0x0015310a LAB_0015309d: JMP 0x0015309f LAB_0015309f: JMP 0x001530a1 LAB_001530a1: MOV EDI,dword ptr [RBP + -0x218] LEA RSI,[RBP + -0x210] CALL 0x0014ad20 MOV qword ptr [RBP + -0x228],RAX LEA RAX,[0x582c64] MOV EDI,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x228] LEA RSI,[0x25a551] MOV EDX,0x2245 MOV R8D,0x10 CALL 0x00152e70 MOV EDX,EAX XOR EAX,EAX MOV ECX,0x1 CMP EDX,0x0 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x220],EAX MOV EAX,dword ptr [RBP + -0x218] ADD EAX,0x1 MOV dword ptr [RBP + -0x218],EAX JMP 0x0015306b LAB_0015310a: LEA RDI,[0x584310] ADD RDI,0x800e80 CALL 0x0014b290 MOV EAX,dword ptr [RBP + -0x220] MOV byte ptr [RBP + -0x211],AL LAB_00153129: MOV AL,byte ptr [RBP + -0x211] MOV byte ptr [RBP + -0x22b],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00153156 MOV AL,byte ptr [RBP + -0x22b] ADD RSP,0x230 POP RBP RET LAB_00153156: CALL 0x0012a270
int8 translog_purge_at_flush(void) { int iVar1; int8 uVar2; long in_FS_OFFSET; uint local_220; bool local_219; int1 local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_219 = false; if (translog_status == 2) { local_219 = false; } else if (log_purge_type == 2) { inline_mysql_mutex_lock (&DAT_00d85190, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",0x2234); if (DAT_00d85188 == 0 || log_purge_disabled != 0) { inline_mysql_mutex_unlock(&DAT_00d85190); local_219 = false; } else { uVar2 = translog_get_horizon(); for (local_220 = translog_first_file(uVar2,1); local_220 < DAT_00d85188 && !local_219; local_220 = local_220 + 1) { uVar2 = translog_filename_by_fileno(local_220,local_218); iVar1 = inline_mysql_file_delete (key_file_translog, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x2245,uVar2,0x10); local_219 = iVar1 != 0; } inline_mysql_mutex_unlock(&DAT_00d85190); } } else { local_219 = false; } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_219); } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
34,043
testing::internal::FilePath::RemoveTrailingPathSeparator() const
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-filepath.cc
FilePath FilePath::RemoveTrailingPathSeparator() const { return IsDirectory() ? FilePath(pathname_.substr(0, pathname_.length() - 1)) : *this; }
O0
cpp
testing::internal::FilePath::RemoveTrailingPathSeparator() const: subq $0x68, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0x60(%rsp) movq %rsi, 0x58(%rsp) movq 0x58(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0xb7460 movb $0x0, 0x37(%rsp) testb $0x1, %al jne 0xb7135 jmp 0xb7173 movq 0x18(%rsp), %rdi callq 0x1b820 movq 0x18(%rsp), %rsi movq %rax, %rcx decq %rcx xorl %eax, %eax movl %eax, %edx leaq 0x38(%rsp), %rdi movq %rdi, (%rsp) callq 0x392f0 movq 0x8(%rsp), %rdi movq (%rsp), %rsi movb $0x1, 0x37(%rsp) callq 0xe3380 jmp 0xb7171 jmp 0xb7186 movq 0x18(%rsp), %rsi movq 0x8(%rsp), %rdi callq 0xe33d0 jmp 0xb7184 jmp 0xb7186 testb $0x1, 0x37(%rsp) jne 0xb718f jmp 0xb7199 leaq 0x38(%rsp), %rdi callq 0x1aac0 movq 0x10(%rsp), %rax addq $0x68, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x28(%rsp) movl %eax, 0x24(%rsp) testb $0x1, 0x37(%rsp) jne 0xb71ba jmp 0xb71c4 leaq 0x38(%rsp), %rdi callq 0x1aac0 jmp 0xb71c6 movq 0x28(%rsp), %rdi callq 0x14c80
_ZNK7testing8internal8FilePath27RemoveTrailingPathSeparatorEv: sub rsp, 68h mov [rsp+68h+var_60], rdi mov rax, rdi mov [rsp+68h+var_58], rax mov [rsp+68h+var_8], rdi mov [rsp+68h+var_10], rsi mov rdi, [rsp+68h+var_10]; this mov [rsp+68h+var_50], rdi call _ZNK7testing8internal8FilePath11IsDirectoryEv; testing::internal::FilePath::IsDirectory(void) mov [rsp+68h+var_31], 0 test al, 1 jnz short loc_B7135 jmp short loc_B7173 loc_B7135: mov rdi, [rsp+68h+var_50] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv; std::string::length(void) mov rsi, [rsp+68h+var_50] mov rcx, rax dec rcx xor eax, eax mov edx, eax lea rdi, [rsp+68h+var_30] mov [rsp+68h+var_68], rdi call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) mov rdi, [rsp+68h+var_60] mov rsi, [rsp+68h+var_68] mov [rsp+68h+var_31], 1 call _ZN7testing8internal8FilePathC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::FilePath::FilePath(std::string) jmp short $+2 loc_B7171: jmp short loc_B7186 loc_B7173: mov rsi, [rsp+68h+var_50]; testing::internal::FilePath * mov rdi, [rsp+68h+var_60]; this call _ZN7testing8internal8FilePathC2ERKS1_; testing::internal::FilePath::FilePath(testing::internal::FilePath const&) jmp short $+2 loc_B7184: jmp short $+2 loc_B7186: test [rsp+68h+var_31], 1 jnz short loc_B718F jmp short loc_B7199 loc_B718F: lea rdi, [rsp+68h+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_B7199: mov rax, [rsp+68h+var_58] add rsp, 68h retn mov rcx, rax mov eax, edx mov [rsp+arg_20], rcx mov [rsp+arg_1C], eax test [rsp+arg_2F], 1 jnz short loc_B71BA jmp short loc_B71C4 loc_B71BA: lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_B71C4: jmp short $+2 loc_B71C6: mov rdi, [rsp+arg_20] call __Unwind_Resume
testing::internal::FilePath * testing::internal::FilePath::RemoveTrailingPathSeparator( testing::internal::FilePath *this, testing::internal::FilePath *a2) { long long v2; // rax int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d char v8; // [rsp+37h] [rbp-31h] _BYTE v9[32]; // [rsp+38h] [rbp-30h] BYREF testing::internal::FilePath *v10; // [rsp+58h] [rbp-10h] testing::internal::FilePath *v11; // [rsp+60h] [rbp-8h] v11 = this; v10 = a2; v8 = 0; if ( (testing::internal::FilePath::IsDirectory(a2) & 1) != 0 ) { v2 = std::string::length((long long)a2); std::string::substr(v9, a2, 0LL, v2 - 1); v8 = 1; testing::internal::FilePath::FilePath((_DWORD)this, (unsigned int)v9, v3, v4, v5, v6); } else { testing::internal::FilePath::FilePath(this, a2); } if ( (v8 & 1) != 0 ) std::string::~string(v9); return this; }
RemoveTrailingPathSeparator: SUB RSP,0x68 MOV qword ptr [RSP + 0x8],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x60],RDI MOV qword ptr [RSP + 0x58],RSI MOV RDI,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x18],RDI CALL 0x001b7460 MOV byte ptr [RSP + 0x37],0x0 TEST AL,0x1 JNZ 0x001b7135 JMP 0x001b7173 LAB_001b7135: MOV RDI,qword ptr [RSP + 0x18] CALL 0x0011b820 MOV RSI,qword ptr [RSP + 0x18] MOV RCX,RAX DEC RCX XOR EAX,EAX MOV EDX,EAX LEA RDI,[RSP + 0x38] MOV qword ptr [RSP],RDI CALL 0x001392f0 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP] MOV byte ptr [RSP + 0x37],0x1 LAB_001b716a: CALL 0x001e3380 JMP 0x001b7171 LAB_001b7171: JMP 0x001b7186 LAB_001b7173: MOV RSI,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RSP + 0x8] CALL 0x001e33d0 LAB_001b7182: JMP 0x001b7184 LAB_001b7184: JMP 0x001b7186 LAB_001b7186: TEST byte ptr [RSP + 0x37],0x1 JNZ 0x001b718f JMP 0x001b7199 LAB_001b718f: LEA RDI,[RSP + 0x38] CALL 0x0011aac0 LAB_001b7199: MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0x68 RET
/* testing::internal::FilePath::RemoveTrailingPathSeparator() const */ FilePath * testing::internal::FilePath::RemoveTrailingPathSeparator(void) { ulong uVar1; FilePath *in_RSI; FilePath *in_RDI; string local_30 [48]; uVar1 = IsDirectory(in_RSI); if ((uVar1 & 1) == 0) { FilePath(in_RDI,in_RSI); } else { std::__cxx11::string::length((string *)in_RSI); std::__cxx11::string::substr((ulong)local_30,(ulong)in_RSI); /* try { // try from 001b716a to 001b7181 has its CatchHandler @ 001b71a3 */ FilePath(in_RDI,local_30); std::__cxx11::string::~string(local_30); } return in_RDI; }
34,044
lo0bits
eloqsql/strings/dtoa.c
static int lo0bits(ULong *y) { register int k; register ULong x= *y; if (x & 7) { if (x & 1) return 0; if (x & 2) { *y= x >> 1; return 1; } *y= x >> 2; return 2; } k= 0; if (!(x & 0xffff)) { k= 16; x>>= 16; } if (!(x & 0xff)) { k+= 8; x>>= 8; } if (!(x & 0xf)) { k+= 4; x>>= 4; } if (!(x & 0x3)) { k+= 2; x>>= 2; } if (!(x & 1)) { k++; x>>= 1; if (!x) return 32; } *y= x; return k; }
O0
c
lo0bits: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movl (%rax), %eax movl %eax, -0x18(%rbp) movl -0x18(%rbp), %eax andl $0x7, %eax cmpl $0x0, %eax je 0xa9f8d movl -0x18(%rbp), %eax andl $0x1, %eax cmpl $0x0, %eax je 0xa9f53 movl $0x0, -0x4(%rbp) jmp 0xaa046 movl -0x18(%rbp), %eax andl $0x2, %eax cmpl $0x0, %eax je 0xa9f75 movl -0x18(%rbp), %ecx shrl %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) movl $0x1, -0x4(%rbp) jmp 0xaa046 movl -0x18(%rbp), %ecx shrl $0x2, %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) movl $0x2, -0x4(%rbp) jmp 0xaa046 movl $0x0, -0x14(%rbp) movl -0x18(%rbp), %eax andl $0xffff, %eax # imm = 0xFFFF cmpl $0x0, %eax jne 0xa9fb1 movl $0x10, -0x14(%rbp) movl -0x18(%rbp), %eax shrl $0x10, %eax movl %eax, -0x18(%rbp) movl -0x18(%rbp), %eax andl $0xff, %eax cmpl $0x0, %eax jne 0xa9fd0 movl -0x14(%rbp), %eax addl $0x8, %eax movl %eax, -0x14(%rbp) movl -0x18(%rbp), %eax shrl $0x8, %eax movl %eax, -0x18(%rbp) movl -0x18(%rbp), %eax andl $0xf, %eax cmpl $0x0, %eax jne 0xa9fed movl -0x14(%rbp), %eax addl $0x4, %eax movl %eax, -0x14(%rbp) movl -0x18(%rbp), %eax shrl $0x4, %eax movl %eax, -0x18(%rbp) movl -0x18(%rbp), %eax andl $0x3, %eax cmpl $0x0, %eax jne 0xaa00a movl -0x14(%rbp), %eax addl $0x2, %eax movl %eax, -0x14(%rbp) movl -0x18(%rbp), %eax shrl $0x2, %eax movl %eax, -0x18(%rbp) movl -0x18(%rbp), %eax andl $0x1, %eax cmpl $0x0, %eax jne 0xaa037 movl -0x14(%rbp), %eax addl $0x1, %eax movl %eax, -0x14(%rbp) movl -0x18(%rbp), %eax shrl %eax movl %eax, -0x18(%rbp) cmpl $0x0, -0x18(%rbp) jne 0xaa035 movl $0x20, -0x4(%rbp) jmp 0xaa046 jmp 0xaa037 movl -0x18(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) movl -0x14(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopl (%rax,%rax)
lo0bits: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov eax, [rax] mov [rbp+var_18], eax mov eax, [rbp+var_18] and eax, 7 cmp eax, 0 jz short loc_A9F8D mov eax, [rbp+var_18] and eax, 1 cmp eax, 0 jz short loc_A9F53 mov [rbp+var_4], 0 jmp loc_AA046 loc_A9F53: mov eax, [rbp+var_18] and eax, 2 cmp eax, 0 jz short loc_A9F75 mov ecx, [rbp+var_18] shr ecx, 1 mov rax, [rbp+var_10] mov [rax], ecx mov [rbp+var_4], 1 jmp loc_AA046 loc_A9F75: mov ecx, [rbp+var_18] shr ecx, 2 mov rax, [rbp+var_10] mov [rax], ecx mov [rbp+var_4], 2 jmp loc_AA046 loc_A9F8D: mov [rbp+var_14], 0 mov eax, [rbp+var_18] and eax, 0FFFFh cmp eax, 0 jnz short loc_A9FB1 mov [rbp+var_14], 10h mov eax, [rbp+var_18] shr eax, 10h mov [rbp+var_18], eax loc_A9FB1: mov eax, [rbp+var_18] and eax, 0FFh cmp eax, 0 jnz short loc_A9FD0 mov eax, [rbp+var_14] add eax, 8 mov [rbp+var_14], eax mov eax, [rbp+var_18] shr eax, 8 mov [rbp+var_18], eax loc_A9FD0: mov eax, [rbp+var_18] and eax, 0Fh cmp eax, 0 jnz short loc_A9FED mov eax, [rbp+var_14] add eax, 4 mov [rbp+var_14], eax mov eax, [rbp+var_18] shr eax, 4 mov [rbp+var_18], eax loc_A9FED: mov eax, [rbp+var_18] and eax, 3 cmp eax, 0 jnz short loc_AA00A mov eax, [rbp+var_14] add eax, 2 mov [rbp+var_14], eax mov eax, [rbp+var_18] shr eax, 2 mov [rbp+var_18], eax loc_AA00A: mov eax, [rbp+var_18] and eax, 1 cmp eax, 0 jnz short loc_AA037 mov eax, [rbp+var_14] add eax, 1 mov [rbp+var_14], eax mov eax, [rbp+var_18] shr eax, 1 mov [rbp+var_18], eax cmp [rbp+var_18], 0 jnz short loc_AA035 mov [rbp+var_4], 20h ; ' ' jmp short loc_AA046 loc_AA035: jmp short $+2 loc_AA037: mov ecx, [rbp+var_18] mov rax, [rbp+var_10] mov [rax], ecx mov eax, [rbp+var_14] mov [rbp+var_4], eax loc_AA046: mov eax, [rbp+var_4] pop rbp retn
long long lo0bits(unsigned int *a1) { unsigned int v2; // [rsp+0h] [rbp-18h] unsigned int v3; // [rsp+4h] [rbp-14h] v2 = *a1; if ( (*a1 & 7) != 0 ) { if ( (v2 & 1) != 0 ) { return 0; } else if ( (v2 & 2) != 0 ) { *a1 = v2 >> 1; return 1; } else { *a1 = v2 >> 2; return 2; } } else { v3 = 0; if ( !(_WORD)v2 ) { v3 = 16; v2 >>= 16; } if ( !(_BYTE)v2 ) { v3 += 8; v2 >>= 8; } if ( (v2 & 0xF) == 0 ) { v3 += 4; v2 >>= 4; } if ( (v2 & 3) == 0 ) { v3 += 2; v2 >>= 2; } if ( (v2 & 1) != 0 || (++v3, (v2 >>= 1) != 0) ) { *a1 = v2; return v3; } else { return 32; } } }
lo0bits: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x18],EAX MOV EAX,dword ptr [RBP + -0x18] AND EAX,0x7 CMP EAX,0x0 JZ 0x001a9f8d MOV EAX,dword ptr [RBP + -0x18] AND EAX,0x1 CMP EAX,0x0 JZ 0x001a9f53 MOV dword ptr [RBP + -0x4],0x0 JMP 0x001aa046 LAB_001a9f53: MOV EAX,dword ptr [RBP + -0x18] AND EAX,0x2 CMP EAX,0x0 JZ 0x001a9f75 MOV ECX,dword ptr [RBP + -0x18] SHR ECX,0x1 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX MOV dword ptr [RBP + -0x4],0x1 JMP 0x001aa046 LAB_001a9f75: MOV ECX,dword ptr [RBP + -0x18] SHR ECX,0x2 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX MOV dword ptr [RBP + -0x4],0x2 JMP 0x001aa046 LAB_001a9f8d: MOV dword ptr [RBP + -0x14],0x0 MOV EAX,dword ptr [RBP + -0x18] AND EAX,0xffff CMP EAX,0x0 JNZ 0x001a9fb1 MOV dword ptr [RBP + -0x14],0x10 MOV EAX,dword ptr [RBP + -0x18] SHR EAX,0x10 MOV dword ptr [RBP + -0x18],EAX LAB_001a9fb1: MOV EAX,dword ptr [RBP + -0x18] AND EAX,0xff CMP EAX,0x0 JNZ 0x001a9fd0 MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x8 MOV dword ptr [RBP + -0x14],EAX MOV EAX,dword ptr [RBP + -0x18] SHR EAX,0x8 MOV dword ptr [RBP + -0x18],EAX LAB_001a9fd0: MOV EAX,dword ptr [RBP + -0x18] AND EAX,0xf CMP EAX,0x0 JNZ 0x001a9fed MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x4 MOV dword ptr [RBP + -0x14],EAX MOV EAX,dword ptr [RBP + -0x18] SHR EAX,0x4 MOV dword ptr [RBP + -0x18],EAX LAB_001a9fed: MOV EAX,dword ptr [RBP + -0x18] AND EAX,0x3 CMP EAX,0x0 JNZ 0x001aa00a MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x2 MOV dword ptr [RBP + -0x14],EAX MOV EAX,dword ptr [RBP + -0x18] SHR EAX,0x2 MOV dword ptr [RBP + -0x18],EAX LAB_001aa00a: MOV EAX,dword ptr [RBP + -0x18] AND EAX,0x1 CMP EAX,0x0 JNZ 0x001aa037 MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x1 MOV dword ptr [RBP + -0x14],EAX MOV EAX,dword ptr [RBP + -0x18] SHR EAX,0x1 MOV dword ptr [RBP + -0x18],EAX CMP dword ptr [RBP + -0x18],0x0 JNZ 0x001aa035 MOV dword ptr [RBP + -0x4],0x20 JMP 0x001aa046 LAB_001aa035: JMP 0x001aa037 LAB_001aa037: MOV ECX,dword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x4],EAX LAB_001aa046: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int lo0bits(uint *param_1) { uint local_20; int local_1c; int local_c; local_20 = *param_1; if ((local_20 & 7) == 0) { local_1c = 0; if ((local_20 & 0xffff) == 0) { local_1c = 0x10; local_20 = local_20 >> 0x10; } if ((local_20 & 0xff) == 0) { local_1c = local_1c + 8; local_20 = local_20 >> 8; } if ((local_20 & 0xf) == 0) { local_1c = local_1c + 4; local_20 = local_20 >> 4; } if ((local_20 & 3) == 0) { local_1c = local_1c + 2; local_20 = local_20 >> 2; } if ((local_20 & 1) == 0) { local_1c = local_1c + 1; local_20 = local_20 >> 1; if (local_20 == 0) { return 0x20; } } *param_1 = local_20; local_c = local_1c; } else if ((local_20 & 1) == 0) { if ((local_20 & 2) == 0) { *param_1 = local_20 >> 2; local_c = 2; } else { *param_1 = local_20 >> 1; local_c = 1; } } else { local_c = 0; } return local_c; }
34,045
has_path
eloqsql/mysys/my_getwd.c
my_bool has_path(const char *name) { return MY_TEST(strchr(name, FN_LIBCHAR)) #if FN_LIBCHAR != '/' || MY_TEST(strchr(name, '/')) #endif #ifdef FN_DEVCHAR || MY_TEST(strchr(name, FN_DEVCHAR)) #endif ; }
O3
c
has_path: pushq %rbp movq %rsp, %rbp movl $0x2f, %esi callq 0x24120 testq %rax, %rax setne %al popq %rbp retq nopl (%rax)
has_path: push rbp mov rbp, rsp mov esi, 2Fh ; '/' call _strchr test rax, rax setnz al pop rbp retn
bool has_path(long long a1) { return strchr(a1, 47LL) != 0; }
has_path: PUSH RBP MOV RBP,RSP MOV ESI,0x2f CALL 0x00124120 TEST RAX,RAX SETNZ AL POP RBP RET
bool has_path(char *param_1) { char *pcVar1; pcVar1 = strchr(param_1,0x2f); return pcVar1 != (char *)0x0; }
34,046
common_chat_format_example[abi:cxx11](common_chat_templates const*, bool)
llama.cpp/common/chat.cpp
std::string common_chat_format_example(const struct common_chat_templates * tmpls, bool use_jinja) { common_chat_templates_inputs inputs; inputs.use_jinja = use_jinja; auto add_simple_msg = [&](auto role, auto content) { common_chat_msg msg; msg.role = role; msg.content = content; inputs.messages.push_back(msg); }; add_simple_msg("system", "You are a helpful assistant"); add_simple_msg("user", "Hello"); add_simple_msg("assistant", "Hi there"); add_simple_msg("user", "How are you?"); return common_chat_templates_apply(tmpls, inputs).prompt; }
O3
cpp
common_chat_format_example[abi:cxx11](common_chat_templates const*, bool): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x130, %rsp # imm = 0x130 movq %rsi, %r14 movq %rdi, %rbx xorl %eax, %eax leaq 0x38(%rsp), %r12 movq %rax, -0x18(%r12) xorps %xmm0, %xmm0 movaps %xmm0, -0x28(%r12) movq %r12, -0x10(%r12) movq %rax, -0x8(%r12) movb %al, (%r12) leaq 0x58(%rsp), %r13 movq %r13, -0x10(%r13) movq %rax, -0x8(%r13) movb %al, (%r13) movb $0x1, %al movb %al, 0x10(%r13) movaps %xmm0, 0x18(%r13) movups %xmm0, 0x25(%r13) movb %al, 0x35(%r13) movb %dl, 0x11(%r13) leaq 0x10(%rsp), %rax leaq 0x8(%rsp), %rdi movq %rax, (%rdi) leaq 0x8a620(%rip), %rsi # 0x120bfa leaq 0x8a620(%rip), %rdx # 0x120c01 callq 0x96774 leaq 0x8a5ca(%rip), %rsi # 0x120bb7 leaq 0x8a629(%rip), %rdx # 0x120c1d leaq 0x8(%rsp), %rdi callq 0x96774 leaq 0x8a60e(%rip), %rsi # 0x120c13 leaq 0x8a617(%rip), %rdx # 0x120c23 leaq 0x8(%rsp), %rdi callq 0x96774 leaq 0x8a59a(%rip), %rsi # 0x120bb7 leaq 0x8a608(%rip), %rdx # 0x120c2c leaq 0x8(%rsp), %rdi callq 0x96774 leaq 0x98(%rsp), %rdi leaq 0x10(%rsp), %rdx movq %r14, %rsi callq 0x93d1f leaq 0x10(%rbx), %rdi movq %rdi, (%rbx) leaq 0xb0(%rsp), %r14 movq -0x10(%r14), %rax cmpq %r14, %rax je 0x96674 movq %rax, (%rbx) movq 0xb0(%rsp), %rax movq %rax, 0x10(%rbx) movq 0xa8(%rsp), %r15 jmp 0x96688 movq 0xa8(%rsp), %r15 leaq 0x1(%r15), %rdx movq %r14, %rsi callq 0x210e0 movq %r15, 0x8(%rbx) leaq 0x118(%rsp), %rdi movq %r14, -0x78(%rdi) movq $0x0, -0x70(%rdi) movb $0x0, -0x68(%rdi) callq 0x283f2 leaq 0x100(%rsp), %rdi callq 0x283f2 leaq 0xe8(%rsp), %r15 movq %r15, %rdi callq 0x28a76 movq -0x28(%r15), %rdi leaq 0xd0(%rsp), %rax cmpq %rax, %rdi je 0x966e7 movq 0xd0(%rsp), %rsi incq %rsi callq 0x21170 leaq 0x70(%rsp), %r15 movq 0xa0(%rsp), %rdi cmpq %r14, %rdi je 0x96709 movq 0xb0(%rsp), %rsi incq %rsi callq 0x21170 movq %r15, %rdi callq 0xb18d8 movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x96728 movq 0x58(%rsp), %rsi incq %rsi callq 0x21170 movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x9673f movq 0x38(%rsp), %rsi incq %rsi callq 0x21170 leaq 0x10(%rsp), %rdi callq 0xb11aa movq %rbx, %rax addq $0x130, %rsp # imm = 0x130 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq jmp 0x9675f movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0xb1b00 movq %rbx, %rdi callq 0x21af0
_Z26common_chat_format_exampleB5cxx11PK21common_chat_templatesb: push r15 push r14 push r13 push r12 push rbx sub rsp, 130h mov r14, rsi mov rbx, rdi xor eax, eax lea r12, [rsp+158h+var_120] mov [r12-18h], rax xorps xmm0, xmm0 movaps xmmword ptr [r12-28h], xmm0 mov [r12-10h], r12 mov [r12-8], rax mov [r12], al lea r13, [rsp+158h+var_100] mov [r13-10h], r13 mov [r13-8], rax mov [r13+0], al mov al, 1 mov [r13+10h], al movaps xmmword ptr [r13+18h], xmm0 movups xmmword ptr [r13+25h], xmm0 mov [r13+35h], al mov [r13+11h], dl lea rax, [rsp+158h+var_148] lea rdi, [rsp+158h+var_150] mov [rdi], rax lea rsi, aSystem; "system" lea rdx, aYouAreAHelpful; "You are a helpful assistant" call _ZZ26common_chat_format_exampleB5cxx11PK21common_chat_templatesbENK3$_0clIPKcS5_EEDaT_T0_ lea rsi, aUser; "user" lea rdx, aHello; "Hello" lea rdi, [rsp+158h+var_150] call _ZZ26common_chat_format_exampleB5cxx11PK21common_chat_templatesbENK3$_0clIPKcS5_EEDaT_T0_ lea rsi, aYouAreAHelpful+12h; "assistant" lea rdx, aHiThere; "Hi there" lea rdi, [rsp+158h+var_150] call _ZZ26common_chat_format_exampleB5cxx11PK21common_chat_templatesbENK3$_0clIPKcS5_EEDaT_T0_ lea rsi, aUser; "user" lea rdx, aHowAreYou; "How are you?" lea rdi, [rsp+158h+var_150] call _ZZ26common_chat_format_exampleB5cxx11PK21common_chat_templatesbENK3$_0clIPKcS5_EEDaT_T0_ lea rdi, [rsp+158h+var_C0] lea rdx, [rsp+158h+var_148] mov rsi, r14 call _Z27common_chat_templates_applyPK21common_chat_templatesRK28common_chat_templates_inputs; common_chat_templates_apply(common_chat_templates const*,common_chat_templates_inputs const&) lea rdi, [rbx+10h] mov [rbx], rdi lea r14, [rsp+158h+var_A8] mov rax, [r14-10h] cmp rax, r14 jz short loc_96674 mov [rbx], rax mov rax, [rsp+158h+var_A8] mov [rbx+10h], rax mov r15, [rsp+158h+var_B0] jmp short loc_96688 loc_96674: mov r15, [rsp+158h+var_B0] lea rdx, [r15+1] mov rsi, r14 call _memcpy loc_96688: mov [rbx+8], r15 lea rdi, [rsp+158h+var_40] mov [rdi-78h], r14 mov qword ptr [rdi-70h], 0 mov byte ptr [rdi-68h], 0 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rdi, [rsp+158h+var_58] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea r15, [rsp+158h+var_70] mov rdi, r15 call _ZNSt6vectorI22common_grammar_triggerSaIS0_EED2Ev; std::vector<common_grammar_trigger>::~vector() mov rdi, [r15-28h]; void * lea rax, [rsp+158h+var_88] cmp rdi, rax jz short loc_966E7 mov rsi, [rsp+158h+var_88] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_966E7: lea r15, [rsp+158h+var_E8] mov rdi, [rsp+158h+var_B8]; void * cmp rdi, r14 jz short loc_96709 mov rsi, [rsp+158h+var_A8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_96709: mov rdi, r15 call _ZNSt6vectorI16common_chat_toolSaIS0_EED2Ev; std::vector<common_chat_tool>::~vector() mov rdi, [rsp+158h+var_110]; void * cmp rdi, r13 jz short loc_96728 mov rsi, [rsp+158h+var_100] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_96728: mov rdi, [rsp+158h+var_130]; void * cmp rdi, r12 jz short loc_9673F mov rsi, [rsp+158h+var_120] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9673F: lea rdi, [rsp+158h+var_148] call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector() mov rax, rbx add rsp, 130h pop rbx pop r12 pop r13 pop r14 pop r15 retn jmp short $+2 loc_9675F: mov rbx, rax lea rdi, [rsp+arg_8]; this call _ZN28common_chat_templates_inputsD2Ev; common_chat_templates_inputs::~common_chat_templates_inputs() mov rdi, rbx call __Unwind_Resume
void ** common_chat_format_example[abi:cxx11](void **a1, long long a2, char a3, int a4, int a5, int a6) { int v7; // ecx int v8; // r8d int v9; // r9d int v10; // ecx int v11; // r8d int v12; // r9d int v13; // ecx int v14; // r8d int v15; // r9d _QWORD *v16; // rdi void *v17; // r15 __int128 *v19; // [rsp+8h] [rbp-150h] BYREF __int128 v20; // [rsp+10h] [rbp-148h] BYREF long long v21; // [rsp+20h] [rbp-138h] void *v22; // [rsp+28h] [rbp-130h] long long v23; // [rsp+30h] [rbp-128h] _QWORD v24[2]; // [rsp+38h] [rbp-120h] BYREF void *v25; // [rsp+48h] [rbp-110h] long long v26; // [rsp+50h] [rbp-108h] _QWORD v27[2]; // [rsp+58h] [rbp-100h] BYREF char v28; // [rsp+68h] [rbp-F0h] char v29; // [rsp+69h] [rbp-EFh] _BYTE v30[40]; // [rsp+70h] [rbp-E8h] BYREF char v31[8]; // [rsp+98h] [rbp-C0h] BYREF void *v32; // [rsp+A0h] [rbp-B8h] char *v33; // [rsp+A8h] [rbp-B0h] _QWORD v34[2]; // [rsp+B0h] [rbp-A8h] BYREF long long *v35; // [rsp+C0h] [rbp-98h] long long v36; // [rsp+D0h] [rbp-88h] BYREF char v37[24]; // [rsp+E8h] [rbp-70h] BYREF char v38[24]; // [rsp+100h] [rbp-58h] BYREF char v39[64]; // [rsp+118h] [rbp-40h] BYREF v21 = 0LL; v20 = 0LL; v22 = v24; v23 = 0LL; LOBYTE(v24[0]) = 0; v25 = v27; v26 = 0LL; LOBYTE(v27[0]) = 0; v28 = 1; memset(v30, 0, 29); v30[29] = 1; v29 = a3; v19 = &v20; common_chat_format_example[abi:cxx11](common_chat_templates const*,bool)::$_0::operator()<char const*,char const*>( (unsigned int)&v19, (unsigned int)"system", (unsigned int)"You are a helpful assistant", a4, a5, a6); common_chat_format_example[abi:cxx11](common_chat_templates const*,bool)::$_0::operator()<char const*,char const*>( (unsigned int)&v19, (unsigned int)"user", (unsigned int)"Hello", v7, v8, v9); common_chat_format_example[abi:cxx11](common_chat_templates const*,bool)::$_0::operator()<char const*,char const*>( (unsigned int)&v19, (unsigned int)"assistant", (unsigned int)"Hi there", v10, v11, v12); common_chat_format_example[abi:cxx11](common_chat_templates const*,bool)::$_0::operator()<char const*,char const*>( (unsigned int)&v19, (unsigned int)"user", (unsigned int)"How are you?", v13, v14, v15); common_chat_templates_apply((long long)v31, a2, (long long *)&v20); v16 = a1 + 2; *a1 = a1 + 2; if ( v32 == v34 ) { v17 = v33; memcpy(v16, v34, v33 + 1); } else { *a1 = v32; a1[2] = (void *)v34[0]; v17 = v33; } a1[1] = v17; v32 = v34; v33 = 0LL; LOBYTE(v34[0]) = 0; std::vector<std::string>::~vector((long long)v39); std::vector<std::string>::~vector((long long)v38); std::vector<common_grammar_trigger>::~vector((long long)v37); if ( v35 != &v36 ) operator delete(v35, v36 + 1); if ( v32 != v34 ) operator delete(v32, v34[0] + 1LL); std::vector<common_chat_tool>::~vector(v30); if ( v25 != v27 ) operator delete(v25, v27[0] + 1LL); if ( v22 != v24 ) operator delete(v22, v24[0] + 1LL); std::vector<common_chat_msg>::~vector(&v20); return a1; }
common_chat_format_example[abi:cxx11]: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x130 MOV R14,RSI MOV RBX,RDI XOR EAX,EAX LEA R12,[RSP + 0x38] MOV qword ptr [R12 + -0x18],RAX XORPS XMM0,XMM0 MOVAPS xmmword ptr [R12 + -0x28],XMM0 MOV qword ptr [R12 + -0x10],R12 MOV qword ptr [R12 + -0x8],RAX MOV byte ptr [R12],AL LEA R13,[RSP + 0x58] MOV qword ptr [R13 + -0x10],R13 MOV qword ptr [R13 + -0x8],RAX MOV byte ptr [R13],AL MOV AL,0x1 MOV byte ptr [R13 + 0x10],AL MOVAPS xmmword ptr [R13 + 0x18],XMM0 MOVUPS xmmword ptr [R13 + 0x25],XMM0 MOV byte ptr [R13 + 0x35],AL MOV byte ptr [R13 + 0x11],DL LEA RAX,[RSP + 0x10] LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],RAX LAB_001965d3: LEA RSI,[0x220bfa] LEA RDX,[0x220c01] CALL 0x00196774 LEA RSI,[0x220bb7] LEA RDX,[0x220c1d] LEA RDI,[RSP + 0x8] CALL 0x00196774 LEA RSI,[0x220c13] LEA RDX,[0x220c23] LEA RDI,[RSP + 0x8] CALL 0x00196774 LEA RSI,[0x220bb7] LEA RDX,[0x220c2c] LEA RDI,[RSP + 0x8] CALL 0x00196774 LAB_0019662e: LEA RDI,[RSP + 0x98] LEA RDX,[RSP + 0x10] MOV RSI,R14 CALL 0x00193d1f LAB_00196643: LEA RDI,[RBX + 0x10] MOV qword ptr [RBX],RDI LEA R14,[RSP + 0xb0] MOV RAX,qword ptr [R14 + -0x10] CMP RAX,R14 JZ 0x00196674 MOV qword ptr [RBX],RAX MOV RAX,qword ptr [RSP + 0xb0] MOV qword ptr [RBX + 0x10],RAX MOV R15,qword ptr [RSP + 0xa8] JMP 0x00196688 LAB_00196674: MOV R15,qword ptr [RSP + 0xa8] LEA RDX,[R15 + 0x1] MOV RSI,R14 CALL 0x001210e0 LAB_00196688: MOV qword ptr [RBX + 0x8],R15 LEA RDI,[RSP + 0x118] MOV qword ptr [RDI + -0x78],R14 MOV qword ptr [RDI + -0x70],0x0 MOV byte ptr [RDI + -0x68],0x0 CALL 0x001283f2 LEA RDI,[RSP + 0x100] CALL 0x001283f2 LEA R15,[RSP + 0xe8] MOV RDI,R15 CALL 0x00128a76 MOV RDI,qword ptr [R15 + -0x28] LEA RAX,[RSP + 0xd0] CMP RDI,RAX JZ 0x001966e7 MOV RSI,qword ptr [RSP + 0xd0] INC RSI CALL 0x00121170 LAB_001966e7: LEA R15,[RSP + 0x70] MOV RDI,qword ptr [RSP + 0xa0] CMP RDI,R14 JZ 0x00196709 MOV RSI,qword ptr [RSP + 0xb0] INC RSI CALL 0x00121170 LAB_00196709: MOV RDI,R15 CALL 0x001b18d8 MOV RDI,qword ptr [RSP + 0x48] CMP RDI,R13 JZ 0x00196728 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x00121170 LAB_00196728: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R12 JZ 0x0019673f MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x00121170 LAB_0019673f: LEA RDI,[RSP + 0x10] CALL 0x001b11aa MOV RAX,RBX ADD RSP,0x130 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* common_chat_format_example[abi:cxx11](common_chat_templates const*, bool) */ common_chat_templates * common_chat_format_example_abi_cxx11_(common_chat_templates *param_1,bool param_2) { int7 in_register_00000031; int8 *local_150; int8 local_148; int8 uStack_140; int8 local_138; int1 *local_130; int8 local_128; int1 local_120; int7 uStack_11f; int1 *local_110; int8 local_108; int1 local_100; int7 uStack_ff; int1 local_f0; int8 local_e8; int5 uStack_e0; int3 uStack_db; int5 uStack_d8; int8 uStack_d3; int1 local_cb; common_chat_templates local_c0 [8]; int1 *local_b8; long local_b0; int1 local_a8; int7 uStack_a7; long *local_98; long local_88 [3]; vector<common_grammar_trigger,std::allocator<common_grammar_trigger>> local_70 [24]; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_58 [24]; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_40 [24]; local_138 = 0; local_148 = 0; uStack_140 = 0; local_128 = 0; local_120 = 0; local_108 = 0; local_100 = 0; local_f0 = 1; local_e8 = 0; uStack_e0 = 0; uStack_db = 0; uStack_d8 = 0; uStack_d3 = 0; local_cb = 1; local_150 = &local_148; local_130 = &local_120; local_110 = &local_100; /* try { // try from 001965d3 to 0019662d has its CatchHandler @ 0019675f */ common_chat_format_example[abi:cxx11](common_chat_templates_const*,bool)::$_0::operator() ((__0 *)&local_150,"system","You are a helpful assistant"); common_chat_format_example[abi:cxx11](common_chat_templates_const*,bool)::$_0::operator() ((__0 *)&local_150,"user","Hello"); common_chat_format_example[abi:cxx11](common_chat_templates_const*,bool)::$_0::operator() ((__0 *)&local_150,"assistant","Hi there"); common_chat_format_example[abi:cxx11](common_chat_templates_const*,bool)::$_0::operator() ((__0 *)&local_150,"user","How are you?"); /* try { // try from 0019662e to 00196642 has its CatchHandler @ 0019675d */ common_chat_templates_apply (local_c0,(common_chat_templates_inputs *)CONCAT71(in_register_00000031,param_2)); *(common_chat_templates **)param_1 = param_1 + 0x10; if (local_b8 == &local_a8) { memcpy(param_1 + 0x10,&local_a8,local_b0 + 1); } else { *(int1 **)param_1 = local_b8; *(ulong *)(param_1 + 0x10) = CONCAT71(uStack_a7,local_a8); } *(long *)(param_1 + 8) = local_b0; local_b0 = 0; local_a8 = 0; local_b8 = &local_a8; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_40); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_58); std::vector<common_grammar_trigger,std::allocator<common_grammar_trigger>>::~vector(local_70); if (local_98 != local_88) { operator_delete(local_98,local_88[0] + 1); } if (local_b8 != &local_a8) { operator_delete(local_b8,CONCAT71(uStack_a7,local_a8) + 1); } std::vector<common_chat_tool,std::allocator<common_chat_tool>>::~vector ((vector<common_chat_tool,std::allocator<common_chat_tool>> *)&local_e8); if (local_110 != &local_100) { operator_delete(local_110,CONCAT71(uStack_ff,local_100) + 1); } if (local_130 != &local_120) { operator_delete(local_130,CONCAT71(uStack_11f,local_120) + 1); } std::vector<common_chat_msg,std::allocator<common_chat_msg>>::~vector ((vector<common_chat_msg,std::allocator<common_chat_msg>> *)&local_148); return param_1; }
34,047
google::protobuf::MapValueConstRef::GetBoolValue() const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h
bool GetBoolValue() const { TYPE_CHECK(FieldDescriptor::CPPTYPE_BOOL, "MapValueConstRef::GetBoolValue"); return *reinterpret_cast<bool*>(data_); }
O3
c
google::protobuf::MapValueConstRef::GetBoolValue() const: pushq %r15 pushq %r14 pushq %rbx subq $0x40, %rsp movq %rdi, %rbx callq 0x98410 cmpl $0x7, %eax je 0x9c731 leaq 0xcc848(%rip), %rdx # 0x168ec5 leaq 0x8(%rsp), %r14 movq %r14, %rdi movl $0x3, %esi movl $0x2d9, %ecx # imm = 0x2D9 callq 0x857c2 leaq 0xcc88f(%rip), %rsi # 0x168f2a movq %r14, %rdi callq 0x852c0 leaq 0xcce26(%rip), %rsi # 0x1694d0 movq %rax, %rdi callq 0x852c0 leaq 0xcc8b4(%rip), %rsi # 0x168f6d movq %rax, %rdi callq 0x852c0 leaq 0xcc8bb(%rip), %rsi # 0x168f83 movq %rax, %rdi callq 0x852c0 leaq 0x16feb9(%rip), %r15 # 0x20c590 movq 0x38(%r15), %rsi movq %rax, %rdi callq 0x852c0 leaq 0xcf975(%rip), %rsi # 0x16c05f movq %rax, %rdi callq 0x852c0 leaq 0xcc898(%rip), %rsi # 0x168f91 movq %rax, %rdi callq 0x852c0 movq %rax, %r14 movq %rbx, %rdi callq 0x98410 movl %eax, %eax movq (%r15,%rax,8), %rsi movq %r14, %rdi callq 0x852c0 leaq 0x7(%rsp), %rdi movq %rax, %rsi callq 0x8539a leaq 0x8(%rsp), %rdi callq 0x857e0 movq (%rbx), %rax movb (%rax), %al addq $0x40, %rsp popq %rbx popq %r14 popq %r15 retq jmp 0x9c742 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x857e0 movq %rbx, %rdi callq 0x2e220 nop
_ZNK6google8protobuf16MapValueConstRef12GetBoolValueEv: push r15 push r14 push rbx sub rsp, 40h mov rbx, rdi call _ZNK6google8protobuf16MapValueConstRef4typeEv; google::protobuf::MapValueConstRef::type(void) cmp eax, 7 jz loc_9C731 lea rdx, aWorkspaceLlm4b_22; "/workspace/llm4binary/github2025/aimrt_"... lea r14, [rsp+58h+var_50] mov rdi, r14 mov esi, 3 mov ecx, 2D9h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) lea rsi, aProtocolBuffer_0; "Protocol Buffer map usage error:\n" mov rdi, r14 call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aMapvalueconstr_6; "MapValueConstRef::GetBoolValue" mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aTypeDoesNotMat; " type does not match\n" mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aExpected; " Expected : " mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea r15, _ZN6google8protobuf15FieldDescriptor14kCppTypeToNameE; google::protobuf::FieldDescriptor::kCppTypeToName mov rsi, [r15+38h] mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aSyntax0+0Fh; "\n" mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aActual_0; " Actual : " mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov r14, rax mov rdi, rbx; this call _ZNK6google8protobuf16MapValueConstRef4typeEv; google::protobuf::MapValueConstRef::type(void) mov eax, eax mov rsi, [r15+rax*8] mov rdi, r14 call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rdi, [rsp+58h+var_51] mov rsi, rax call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) lea rdi, [rsp+58h+var_50]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_9C731: mov rax, [rbx] mov al, [rax] add rsp, 40h pop rbx pop r14 pop r15 retn jmp short $+2 loc_9C742: mov rbx, rax lea rdi, [rsp+arg_0]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() mov rdi, rbx call __Unwind_Resume
char google::protobuf::MapValueConstRef::GetBoolValue(google::protobuf::MapValueConstRef *this) { long long v1; // rax long long v2; // rax long long v3; // rax long long v4; // rax long long v5; // rax long long v6; // rax long long v7; // r14 unsigned int v8; // eax google::protobuf::internal::LogMessage *v9; // rax char v11; // [rsp+7h] [rbp-51h] BYREF _BYTE v12[80]; // [rsp+8h] [rbp-50h] BYREF if ( (unsigned int)google::protobuf::MapValueConstRef::type(this) != 7 ) { google::protobuf::internal::LogMessage::LogMessage( (long long)v12, 3, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h", 729); v1 = google::protobuf::internal::LogMessage::operator<<((long long)v12, (long long)"Protocol Buffer map usage error:\n"); v2 = google::protobuf::internal::LogMessage::operator<<(v1, (long long)"MapValueConstRef::GetBoolValue"); v3 = google::protobuf::internal::LogMessage::operator<<(v2, (long long)" type does not match\n"); v4 = google::protobuf::internal::LogMessage::operator<<(v3, (long long)" Expected : "); v5 = google::protobuf::internal::LogMessage::operator<<( v4, (long long)*(&google::protobuf::FieldDescriptor::kCppTypeToName + 7)); v6 = google::protobuf::internal::LogMessage::operator<<(v5, (long long)"\n"); v7 = google::protobuf::internal::LogMessage::operator<<(v6, (long long)" Actual : "); v8 = google::protobuf::MapValueConstRef::type(this); v9 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<( v7, (long long)*(&google::protobuf::FieldDescriptor::kCppTypeToName + v8)); google::protobuf::internal::LogFinisher::operator=((long long)&v11, v9); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v12); } return **(_BYTE **)this; }
GetBoolValue: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x40 MOV RBX,RDI CALL 0x00198410 CMP EAX,0x7 JZ 0x0019c731 LEA RDX,[0x268ec5] LEA R14,[RSP + 0x8] MOV RDI,R14 MOV ESI,0x3 MOV ECX,0x2d9 CALL 0x001857c2 LAB_0019c694: LEA RSI,[0x268f2a] MOV RDI,R14 CALL 0x001852c0 LEA RSI,[0x2694d0] MOV RDI,RAX CALL 0x001852c0 LEA RSI,[0x268f6d] MOV RDI,RAX CALL 0x001852c0 LEA RSI,[0x268f83] MOV RDI,RAX CALL 0x001852c0 LEA R15,[0x30c590] MOV RSI,qword ptr [R15 + 0x38] MOV RDI,RAX CALL 0x001852c0 LEA RSI,[0x26c05f] MOV RDI,RAX CALL 0x001852c0 LEA RSI,[0x268f91] MOV RDI,RAX CALL 0x001852c0 MOV R14,RAX MOV RDI,RBX CALL 0x00198410 MOV EAX,EAX MOV RSI,qword ptr [R15 + RAX*0x8] MOV RDI,R14 CALL 0x001852c0 LAB_0019c71a: LEA RDI,[RSP + 0x7] MOV RSI,RAX CALL 0x0018539a LAB_0019c727: LEA RDI,[RSP + 0x8] CALL 0x001857e0 LAB_0019c731: MOV RAX,qword ptr [RBX] MOV AL,byte ptr [RAX] ADD RSP,0x40 POP RBX POP R14 POP R15 RET
/* google::protobuf::MapValueConstRef::GetBoolValue() const */ int8 __thiscall google::protobuf::MapValueConstRef::GetBoolValue(MapValueConstRef *this) { int iVar1; uint uVar2; LogMessage *pLVar3; LogFinisher local_51; LogMessage local_50 [56]; iVar1 = type(this); if (iVar1 != 7) { internal::LogMessage::LogMessage (local_50,3, "/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h" ,0x2d9); /* try { // try from 0019c694 to 0019c719 has its CatchHandler @ 0019c742 */ pLVar3 = (LogMessage *) internal::LogMessage::operator<<(local_50,"Protocol Buffer map usage error:\n"); pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3,"MapValueConstRef::GetBoolValue") ; pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3," type does not match\n"); pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3," Expected : "); pLVar3 = (LogMessage *) internal::LogMessage::operator<<(pLVar3,(char *)FieldDescriptor::kCppTypeToName._56_8_) ; pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3,"\n"); pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3," Actual : "); uVar2 = type(this); pLVar3 = (LogMessage *) internal::LogMessage::operator<< (pLVar3,*(char **)(FieldDescriptor::kCppTypeToName + (ulong)uVar2 * 8)); /* try { // try from 0019c71a to 0019c726 has its CatchHandler @ 0019c740 */ internal::LogFinisher::operator=(&local_51,pLVar3); internal::LogMessage::~LogMessage(local_50); } return CONCAT71((int7)((ulong)*(int1 **)this >> 8),**(int1 **)this); }
34,048
dump_header_page
eloqsql/storage/maria/ma_loghandler.c
static void dump_header_page(uchar *buff) { LOGHANDLER_FILE_INFO desc; char strbuff[21]; struct tm tmp_tm; time_t header_time; translog_interpret_file_header(&desc, buff); header_time= desc.timestamp/1000000ULL; localtime_r(&header_time, &tmp_tm); printf(" This can be header page:\n" " Timestamp: %04d.%02d.%02d %02d.%02d.%02d (%s)\n" " Aria log version: %lu\n" " Server version: %lu\n" " Server id %lu\n" " Page size %lu\n", tmp_tm.tm_year+1900, tmp_tm.tm_mon+1, tmp_tm.tm_mday, tmp_tm.tm_hour, tmp_tm.tm_min, tmp_tm.tm_sec, llstr(desc.timestamp, strbuff), desc.maria_version, desc.mysql_version, desc.server_id, desc.page_size); if (desc.page_size != TRANSLOG_PAGE_SIZE) printf(" WARNING: page size is not equal compiled in one %lu!!!\n", (ulong) TRANSLOG_PAGE_SIZE); printf(" File number %lu\n" " Max lsn: " LSN_FMT "\n", desc.file_number, LSN_IN_PARTS(desc.max_lsn)); }
O0
c
dump_header_page: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0xf8, %rsp movq %fs:0x28, %rax movq %rax, -0x20(%rbp) movq %rdi, -0x48(%rbp) movq -0x48(%rbp), %rsi leaq -0x80(%rbp), %rdi callq 0x4f8a0 movq -0x78(%rbp), %rax movl $0xf4240, %ecx # imm = 0xF4240 xorl %edx, %edx divq %rcx movq %rax, -0xc0(%rbp) leaq -0xc0(%rbp), %rdi leaq -0xb8(%rbp), %rsi callq 0x2a120 movl -0xa4(%rbp), %eax addl $0x76c, %eax # imm = 0x76C movl %eax, -0xd4(%rbp) movl -0xa8(%rbp), %eax addl $0x1, %eax movl %eax, -0xd0(%rbp) movl -0xac(%rbp), %eax movl %eax, -0xcc(%rbp) movl -0xb0(%rbp), %eax movl %eax, -0xc8(%rbp) movl -0xb4(%rbp), %eax movl %eax, -0xc4(%rbp) movl -0xb8(%rbp), %r15d movq -0x78(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0x14a6e0 movl -0xd4(%rbp), %esi movl -0xd0(%rbp), %edx movl -0xcc(%rbp), %ecx movl -0xc8(%rbp), %r8d movl -0xc4(%rbp), %r9d movq %rax, %r14 movq -0x70(%rbp), %rbx movq -0x68(%rbp), %r11 movq -0x60(%rbp), %r10 movq -0x58(%rbp), %rax leaq 0xf9cea(%rip), %rdi # 0x152092 movl %r15d, (%rsp) movq %r14, 0x8(%rsp) movq %rbx, 0x10(%rsp) movq %r11, 0x18(%rsp) movq %r10, 0x20(%rsp) movq %rax, 0x28(%rsp) movb $0x0, %al callq 0x2a050 cmpq $0x2000, -0x58(%rbp) # imm = 0x2000 je 0x583e9 leaq 0xf9d5a(%rip), %rdi # 0x152137 movl $0x2000, %esi # imm = 0x2000 movb $0x0, %al callq 0x2a050 movq -0x80(%rbp), %rax movq -0x50(%rbp), %rsi movq %rax, %rcx shrq $0x20, %rcx movl %ecx, %edx movl %eax, %ecx leaq 0xf9d72(%rip), %rdi # 0x152175 xorl %eax, %eax callq 0x2a050 movq %fs:0x28, %rax movq -0x20(%rbp), %rcx cmpq %rcx, %rax jne 0x5842a addq $0xf8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq callq 0x2a270 nop
dump_header_page: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 0F8h mov rax, fs:28h mov [rbp+var_20], rax mov [rbp+var_48], rdi mov rsi, [rbp+var_48] lea rdi, [rbp+var_80] call translog_interpret_file_header mov rax, [rbp+var_78] mov ecx, offset my_open xor edx, edx div rcx mov [rbp+var_C0], rax lea rdi, [rbp+var_C0] lea rsi, [rbp+var_B8] call _localtime_r mov eax, [rbp+var_A4] add eax, 76Ch mov [rbp+var_D4], eax mov eax, [rbp+var_A8] add eax, 1 mov [rbp+var_D0], eax mov eax, [rbp+var_AC] mov [rbp+var_CC], eax mov eax, [rbp+var_B0] mov [rbp+var_C8], eax mov eax, [rbp+var_B4] mov [rbp+var_C4], eax mov r15d, [rbp+var_B8] mov rdi, [rbp+var_78] lea rsi, [rbp+var_40] call llstr mov esi, [rbp+var_D4] mov edx, [rbp+var_D0] mov ecx, [rbp+var_CC] mov r8d, [rbp+var_C8] mov r9d, [rbp+var_C4] mov r14, rax mov rbx, [rbp+var_70] mov r11, [rbp+var_68] mov r10, [rbp+var_60] mov rax, [rbp+var_58] lea rdi, aThisCanBeHeade; " This can be header page:\n Timesta"... mov [rsp+110h+var_110], r15d mov [rsp+110h+var_108], r14 mov [rsp+110h+var_100], rbx mov [rsp+110h+var_F8], r11 mov [rsp+110h+var_F0], r10 mov [rsp+110h+var_E8], rax mov al, 0 call _printf cmp [rbp+var_58], 2000h jz short loc_583E9 lea rdi, aWarningPageSiz; " WARNING: page size is not equal c"... mov esi, 2000h mov al, 0 call _printf loc_583E9: mov rax, [rbp+var_80] mov rsi, [rbp+var_50] mov rcx, rax shr rcx, 20h mov edx, ecx mov ecx, eax lea rdi, aFileNumberLuMa; " File number %lu\n Max lsn: (%u,0"... xor eax, eax call _printf mov rax, fs:28h mov rcx, [rbp+var_20] cmp rax, rcx jnz short loc_5842A add rsp, 0F8h pop rbx pop r14 pop r15 pop rbp retn loc_5842A: call ___stack_chk_fail
unsigned long long dump_header_page(long long a1) { int v1; // r15d const char *v2; // rax int v4; // [rsp+3Ch] [rbp-D4h] int v5; // [rsp+40h] [rbp-D0h] int v6; // [rsp+44h] [rbp-CCh] int v7; // [rsp+48h] [rbp-C8h] int v8; // [rsp+4Ch] [rbp-C4h] unsigned long long v9; // [rsp+50h] [rbp-C0h] BYREF _DWORD v10[14]; // [rsp+58h] [rbp-B8h] BYREF unsigned long long v11; // [rsp+90h] [rbp-80h] BYREF unsigned long long v12; // [rsp+98h] [rbp-78h] long long v13; // [rsp+A0h] [rbp-70h] long long v14; // [rsp+A8h] [rbp-68h] long long v15; // [rsp+B0h] [rbp-60h] long long v16; // [rsp+B8h] [rbp-58h] long long v17; // [rsp+C0h] [rbp-50h] long long v18; // [rsp+C8h] [rbp-48h] _BYTE v19[32]; // [rsp+D0h] [rbp-40h] BYREF unsigned long long v20; // [rsp+F0h] [rbp-20h] v20 = __readfsqword(0x28u); v18 = a1; translog_interpret_file_header(&v11, a1); v9 = v12 / (unsigned long long)my_open; localtime_r(&v9, v10, v12 % (unsigned long long)my_open); v4 = v10[5] + 1900; v5 = v10[4] + 1; v6 = v10[3]; v7 = v10[2]; v8 = v10[1]; v1 = v10[0]; v2 = (const char *)llstr(v12, v19); printf( " This can be header page:\n" " Timestamp: %04d.%02d.%02d %02d.%02d.%02d (%s)\n" " Aria log version: %lu\n" " Server version: %lu\n" " Server id %lu\n" " Page size %lu\n", v4, v5, v6, v7, v8, v1, v2, v13, v14, v15, v16); if ( v16 != 0x2000 ) printf(" WARNING: page size is not equal compiled in one %lu!!!\n", 0x2000LL); printf(" File number %lu\n Max lsn: (%u,0x%x)\n", v17, HIDWORD(v11), v11); return __readfsqword(0x28u); }
dump_header_page: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xf8 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x20],RAX MOV qword ptr [RBP + -0x48],RDI MOV RSI,qword ptr [RBP + -0x48] LEA RDI,[RBP + -0x80] CALL 0x0014f8a0 MOV RAX,qword ptr [RBP + -0x78] MOV ECX,0xf4240 XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0xc0],RAX LEA RDI,[RBP + -0xc0] LEA RSI,[RBP + -0xb8] CALL 0x0012a120 MOV EAX,dword ptr [RBP + -0xa4] ADD EAX,0x76c MOV dword ptr [RBP + -0xd4],EAX MOV EAX,dword ptr [RBP + -0xa8] ADD EAX,0x1 MOV dword ptr [RBP + -0xd0],EAX MOV EAX,dword ptr [RBP + -0xac] MOV dword ptr [RBP + -0xcc],EAX MOV EAX,dword ptr [RBP + -0xb0] MOV dword ptr [RBP + -0xc8],EAX MOV EAX,dword ptr [RBP + -0xb4] MOV dword ptr [RBP + -0xc4],EAX MOV R15D,dword ptr [RBP + -0xb8] MOV RDI,qword ptr [RBP + -0x78] LEA RSI,[RBP + -0x40] CALL 0x0024a6e0 MOV ESI,dword ptr [RBP + -0xd4] MOV EDX,dword ptr [RBP + -0xd0] MOV ECX,dword ptr [RBP + -0xcc] MOV R8D,dword ptr [RBP + -0xc8] MOV R9D,dword ptr [RBP + -0xc4] MOV R14,RAX MOV RBX,qword ptr [RBP + -0x70] MOV R11,qword ptr [RBP + -0x68] MOV R10,qword ptr [RBP + -0x60] MOV RAX,qword ptr [RBP + -0x58] LEA RDI,[0x252092] MOV dword ptr [RSP],R15D MOV qword ptr [RSP + 0x8],R14 MOV qword ptr [RSP + 0x10],RBX MOV qword ptr [RSP + 0x18],R11 MOV qword ptr [RSP + 0x20],R10 MOV qword ptr [RSP + 0x28],RAX MOV AL,0x0 CALL 0x0012a050 CMP qword ptr [RBP + -0x58],0x2000 JZ 0x001583e9 LEA RDI,[0x252137] MOV ESI,0x2000 MOV AL,0x0 CALL 0x0012a050 LAB_001583e9: MOV RAX,qword ptr [RBP + -0x80] MOV RSI,qword ptr [RBP + -0x50] MOV RCX,RAX SHR RCX,0x20 MOV EDX,ECX MOV ECX,EAX LEA RDI,[0x252175] XOR EAX,EAX CALL 0x0012a050 MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x20] CMP RAX,RCX JNZ 0x0015842a ADD RSP,0xf8 POP RBX POP R14 POP R15 POP RBP RET LAB_0015842a: CALL 0x0012a270
void dump_header_page(int8 param_1) { int8 uVar1; long in_FS_OFFSET; ulong local_c8; tm local_c0; ulong local_88; ulong local_80; int8 local_78; int8 local_70; int8 local_68; long local_60; int8 local_58; int8 local_50; int1 local_48 [32]; long local_28; local_28 = *(long *)(in_FS_OFFSET + 0x28); local_50 = param_1; translog_interpret_file_header(&local_88,param_1); local_c8 = local_80 / 1000000; localtime_r((time_t *)&local_c8,&local_c0); uVar1 = llstr(local_80,local_48); printf(" This can be header page:\n Timestamp: %04d.%02d.%02d %02d.%02d.%02d (%s)\n Aria log version: %lu\n Server version: %lu\n Server id %lu\n Page size %lu\n" ,(ulong)(local_c0.tm_year + 0x76c),(ulong)(local_c0.tm_mon + 1), (ulong)(uint)local_c0.tm_mday,(ulong)(uint)local_c0.tm_hour,(ulong)(uint)local_c0.tm_min, local_c0.tm_sec,uVar1,local_78,local_70,local_68,local_60); if (local_60 != 0x2000) { printf(" WARNING: page size is not equal compiled in one %lu!!!\n",0x2000); } printf(" File number %lu\n Max lsn: (%u,0x%x)\n",local_58,local_88 >> 0x20, local_88 & 0xffffffff); if (*(long *)(in_FS_OFFSET + 0x28) == local_28) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
34,049
lunasvg::SVGMaskElement::applyMask(lunasvg::SVGRenderState&) const
dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp
void SVGMaskElement::applyMask(SVGRenderState& state) const { if(state.hasCycleReference(this)) return; auto maskImage = Canvas::create(state.currentTransform().mapRect(state.paintBoundingBox())); maskImage->clipRect(maskRect(state.element()), FillRule::NonZero, state.currentTransform()); auto currentTransform = state.currentTransform(); if(m_maskContentUnits.value() == Units::ObjectBoundingBox) { auto bbox = state.fillBoundingBox(); currentTransform.translate(bbox.x, bbox.y); currentTransform.scale(bbox.w, bbox.h); } SVGRenderState newState(this, &state, currentTransform, SVGRenderMode::Painting, maskImage); renderChildren(newState); if(clipper()) clipper()->applyClipMask(newState); if(masker()) { masker()->applyMask(newState); } if(m_mask_type == MaskType::Luminance) maskImage->convertToLuminanceMask(); state->blendCanvas(*maskImage, BlendMode::Dst_In, 1.f); }
O0
cpp
lunasvg::SVGMaskElement::applyMask(lunasvg::SVGRenderState&) const: pushq %rbp movq %rsp, %rbp subq $0x1b0, %rsp # imm = 0x1B0 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rsi movq %rsi, -0xe8(%rbp) movq -0x10(%rbp), %rdi callq 0x4c970 testb $0x1, %al jne 0x1d52d jmp 0x1d532 jmp 0x1d897 movq -0x10(%rbp), %rdi callq 0x20eb0 movq %rax, -0x108(%rbp) movq -0x10(%rbp), %rdi callq 0x21610 movq -0x108(%rbp), %rdi movlpd %xmm0, -0x40(%rbp) movlpd %xmm1, -0x38(%rbp) leaq -0x40(%rbp), %rsi callq 0x11ed0 movlpd %xmm0, -0x30(%rbp) movlpd %xmm1, -0x28(%rbp) leaq -0x20(%rbp), %rdi movq %rdi, -0x100(%rbp) leaq -0x30(%rbp), %rsi callq 0x13650 movq -0x100(%rbp), %rdi callq 0x21940 movq %rax, -0xf8(%rbp) movq -0x10(%rbp), %rdi callq 0x21960 movq %rax, -0xf0(%rbp) jmp 0x1d5a8 movq -0xf0(%rbp), %rsi movq -0xe8(%rbp), %rdi callq 0x1d3c0 movaps %xmm1, -0x130(%rbp) movaps %xmm0, -0x120(%rbp) jmp 0x1d5cb movaps -0x130(%rbp), %xmm0 movaps -0x120(%rbp), %xmm1 movlpd %xmm1, -0x50(%rbp) movlpd %xmm0, -0x48(%rbp) movq -0x10(%rbp), %rdi callq 0x20eb0 movq %rax, -0x138(%rbp) jmp 0x1d5f5 movq -0x138(%rbp), %rcx movq -0xf8(%rbp), %rdi leaq -0x50(%rbp), %rsi xorl %edx, %edx callq 0x13ef0 jmp 0x1d610 movq -0x10(%rbp), %rdi callq 0x20eb0 movq %rax, -0x140(%rbp) jmp 0x1d622 movq -0xe8(%rbp), %rdi movq -0x140(%rbp), %rax movq 0x10(%rax), %rcx movq %rcx, -0x70(%rbp) movups (%rax), %xmm0 movaps %xmm0, -0x80(%rbp) addq $0xe0, %rdi callq 0x215f0 movb %al, -0x141(%rbp) jmp 0x1d653 movb -0x141(%rbp), %al cmpb $0x1, %al jne 0x1d6e1 movq -0x10(%rbp), %rdi callq 0x21650 movaps %xmm1, -0x170(%rbp) movaps %xmm0, -0x160(%rbp) jmp 0x1d67a movaps -0x170(%rbp), %xmm0 movaps -0x160(%rbp), %xmm1 movlpd %xmm1, -0x90(%rbp) movlpd %xmm0, -0x88(%rbp) movss -0x90(%rbp), %xmm0 movss -0x8c(%rbp), %xmm1 leaq -0x80(%rbp), %rdi callq 0x11910 jmp 0x1d6b3 movss -0x88(%rbp), %xmm0 movss -0x84(%rbp), %xmm1 leaq -0x80(%rbp), %rdi callq 0x119b0 jmp 0x1d6ce jmp 0x1d6e1 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) jmp 0x1d8a0 movq -0x10(%rbp), %rax movq %rax, -0x180(%rbp) leaq -0xe0(%rbp), %rdi movq %rdi, -0x178(%rbp) leaq -0x20(%rbp), %rsi callq 0xe750 movq -0xe8(%rbp), %rsi movq -0x180(%rbp), %rdx movq -0x178(%rbp), %r9 leaq -0xd0(%rbp), %rdi leaq -0x80(%rbp), %rcx xorl %r8d, %r8d callq 0xe780 jmp 0x1d72d leaq -0xe0(%rbp), %rdi callq 0xe7f0 movq -0xe8(%rbp), %rdi leaq -0xd0(%rbp), %rsi callq 0x1a060 jmp 0x1d74e movq -0xe8(%rbp), %rdi callq 0x21690 movq %rax, -0x188(%rbp) jmp 0x1d763 movq -0x188(%rbp), %rax cmpq $0x0, %rax je 0x1d7d6 movq -0xe8(%rbp), %rdi callq 0x21690 movq %rax, -0x190(%rbp) jmp 0x1d785 movq -0x190(%rbp), %rdi leaq -0xd0(%rbp), %rsi callq 0x1cac0 jmp 0x1d79a jmp 0x1d7d6 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) leaq -0xe0(%rbp), %rdi callq 0xe7f0 jmp 0x1d8a0 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) leaq -0xd0(%rbp), %rdi callq 0xe810 jmp 0x1d8a0 movq -0xe8(%rbp), %rdi callq 0x21980 movq %rax, -0x198(%rbp) jmp 0x1d7eb movq -0x198(%rbp), %rax cmpq $0x0, %rax je 0x1d824 movq -0xe8(%rbp), %rdi callq 0x21980 movq %rax, -0x1a0(%rbp) jmp 0x1d80d movq -0x1a0(%rbp), %rdi leaq -0xd0(%rbp), %rsi callq 0x1d500 jmp 0x1d822 jmp 0x1d824 movq -0xe8(%rbp), %rax cmpb $0x0, 0xf0(%rax) jne 0x1d849 leaq -0x20(%rbp), %rdi callq 0x21940 movq %rax, %rdi callq 0x142c0 jmp 0x1d847 jmp 0x1d849 movq -0x10(%rbp), %rdi callq 0x20750 movq %rax, -0x1a8(%rbp) jmp 0x1d85b leaq -0x20(%rbp), %rdi callq 0x216b0 movq -0x1a8(%rbp), %rdi movq %rax, %rsi movl $0x6, %edx movss 0x6e84d(%rip), %xmm0 # 0x8c0c8 callq 0x14150 jmp 0x1d882 leaq -0xd0(%rbp), %rdi callq 0xe810 leaq -0x20(%rbp), %rdi callq 0xe7f0 addq $0x1b0, %rsp # imm = 0x1B0 popq %rbp retq leaq -0x20(%rbp), %rdi callq 0xe7f0 movq -0x58(%rbp), %rdi callq 0xb6c0 nopw %cs:(%rax,%rax)
_ZNK7lunasvg14SVGMaskElement9applyMaskERNS_14SVGRenderStateE: push rbp mov rbp, rsp sub rsp, 1B0h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rsi, [rbp+var_8]; lunasvg::SVGElement * mov [rbp+var_E8], rsi mov rdi, [rbp+var_10]; this call _ZNK7lunasvg14SVGRenderState17hasCycleReferenceEPKNS_10SVGElementE; lunasvg::SVGRenderState::hasCycleReference(lunasvg::SVGElement const*) test al, 1 jnz short loc_1D52D jmp short loc_1D532 loc_1D52D: jmp loc_1D897 loc_1D532: mov rdi, [rbp+var_10]; this call _ZNK7lunasvg14SVGRenderState16currentTransformEv; lunasvg::SVGRenderState::currentTransform(void) mov [rbp+var_108], rax mov rdi, [rbp+var_10]; this call _ZNK7lunasvg14SVGRenderState16paintBoundingBoxEv; lunasvg::SVGRenderState::paintBoundingBox(void) mov rdi, [rbp+var_108]; this movlpd [rbp+var_40], xmm0 movlpd [rbp+var_38], xmm1 lea rsi, [rbp+var_40]; lunasvg::Rect * call _ZNK7lunasvg9Transform7mapRectERKNS_4RectE; lunasvg::Transform::mapRect(lunasvg::Rect const&) movlpd [rbp+var_30], xmm0 movlpd [rbp+var_28], xmm1 lea rdi, [rbp+var_20]; this mov [rbp+var_100], rdi lea rsi, [rbp+var_30]; lunasvg::Rect * call _ZN7lunasvg6Canvas6createERKNS_4RectE; lunasvg::Canvas::create(lunasvg::Rect const&) mov rdi, [rbp+var_100] call _ZNKSt19__shared_ptr_accessIN7lunasvg6CanvasELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<lunasvg::Canvas,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov [rbp+var_F8], rax mov rdi, [rbp+var_10]; this call _ZNK7lunasvg14SVGRenderState7elementEv; lunasvg::SVGRenderState::element(void) mov [rbp+var_F0], rax jmp short $+2 loc_1D5A8: mov rsi, [rbp+var_F0]; lunasvg::SVGElement * mov rdi, [rbp+var_E8]; this call _ZNK7lunasvg14SVGMaskElement8maskRectEPKNS_10SVGElementE; lunasvg::SVGMaskElement::maskRect(lunasvg::SVGElement const*) movaps [rbp+var_130], xmm1 movaps [rbp+var_120], xmm0 jmp short $+2 loc_1D5CB: movaps xmm0, [rbp+var_130] movaps xmm1, [rbp+var_120] movlpd [rbp+var_50], xmm1 movlpd [rbp+var_48], xmm0 mov rdi, [rbp+var_10]; this call _ZNK7lunasvg14SVGRenderState16currentTransformEv; lunasvg::SVGRenderState::currentTransform(void) mov [rbp+var_138], rax jmp short $+2 loc_1D5F5: mov rcx, [rbp+var_138] mov rdi, [rbp+var_F8] lea rsi, [rbp+var_50] xor edx, edx call _ZN7lunasvg6Canvas8clipRectERKNS_4RectENS_8FillRuleERKNS_9TransformE; lunasvg::Canvas::clipRect(lunasvg::Rect const&,lunasvg::FillRule,lunasvg::Transform const&) jmp short $+2 loc_1D610: mov rdi, [rbp+var_10]; this call _ZNK7lunasvg14SVGRenderState16currentTransformEv; lunasvg::SVGRenderState::currentTransform(void) mov [rbp+var_140], rax jmp short $+2 loc_1D622: mov rdi, [rbp+var_E8] mov rax, [rbp+var_140] mov rcx, [rax+10h] mov [rbp+var_70], rcx movups xmm0, xmmword ptr [rax] movaps [rbp+var_80], xmm0 add rdi, 0E0h call _ZNK7lunasvg14SVGEnumerationINS_5UnitsEE5valueEv; lunasvg::SVGEnumeration<lunasvg::Units>::value(void) mov [rbp+var_141], al jmp short $+2 loc_1D653: mov al, [rbp+var_141] cmp al, 1 jnz loc_1D6E1 mov rdi, [rbp+var_10]; this call _ZNK7lunasvg14SVGRenderState15fillBoundingBoxEv; lunasvg::SVGRenderState::fillBoundingBox(void) movaps [rbp+var_170], xmm1 movaps [rbp+var_160], xmm0 jmp short $+2 loc_1D67A: movaps xmm0, [rbp+var_170] movaps xmm1, [rbp+var_160] movlpd qword ptr [rbp+var_90], xmm1 movlpd qword ptr [rbp+var_88], xmm0 movss xmm0, [rbp+var_90]; float movss xmm1, [rbp+var_90+4]; float lea rdi, [rbp+var_80]; this call _ZN7lunasvg9Transform9translateEff; lunasvg::Transform::translate(float,float) jmp short $+2 loc_1D6B3: movss xmm0, [rbp+var_88]; float movss xmm1, [rbp+var_88+4]; float lea rdi, [rbp+var_80]; this call _ZN7lunasvg9Transform5scaleEff; lunasvg::Transform::scale(float,float) jmp short $+2 loc_1D6CE: jmp short loc_1D6E1 mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax jmp loc_1D8A0 loc_1D6E1: mov rax, [rbp+var_10] mov [rbp+var_180], rax lea rdi, [rbp+var_E0] mov [rbp+var_178], rdi lea rsi, [rbp+var_20] call _ZNSt10shared_ptrIN7lunasvg6CanvasEEC2ERKS2_; std::shared_ptr<lunasvg::Canvas>::shared_ptr(std::shared_ptr<lunasvg::Canvas> const&) mov rsi, [rbp+var_E8] mov rdx, [rbp+var_180] mov r9, [rbp+var_178] lea rdi, [rbp+var_D0] lea rcx, [rbp+var_80] xor r8d, r8d call _ZN7lunasvg14SVGRenderStateC2EPKNS_10SVGElementEPKS0_RKNS_9TransformENS_13SVGRenderModeESt10shared_ptrINS_6CanvasEE; lunasvg::SVGRenderState::SVGRenderState(lunasvg::SVGElement const*,lunasvg::SVGRenderState const*,lunasvg::Transform const&,lunasvg::SVGRenderMode,std::shared_ptr<lunasvg::Canvas>) jmp short $+2 loc_1D72D: lea rdi, [rbp+var_E0] call _ZNSt10shared_ptrIN7lunasvg6CanvasEED2Ev; std::shared_ptr<lunasvg::Canvas>::~shared_ptr() mov rdi, [rbp+var_E8]; this lea rsi, [rbp+var_D0]; lunasvg::SVGRenderState * call _ZNK7lunasvg10SVGElement14renderChildrenERNS_14SVGRenderStateE; lunasvg::SVGElement::renderChildren(lunasvg::SVGRenderState &) jmp short $+2 loc_1D74E: mov rdi, [rbp+var_E8]; this call _ZNK7lunasvg10SVGElement7clipperEv; lunasvg::SVGElement::clipper(void) mov [rbp+var_188], rax jmp short $+2 loc_1D763: mov rax, [rbp+var_188] cmp rax, 0 jz short loc_1D7D6 mov rdi, [rbp+var_E8]; this call _ZNK7lunasvg10SVGElement7clipperEv; lunasvg::SVGElement::clipper(void) mov [rbp+var_190], rax jmp short $+2 loc_1D785: mov rdi, [rbp+var_190]; this lea rsi, [rbp+var_D0]; lunasvg::SVGRenderState * call _ZNK7lunasvg18SVGClipPathElement13applyClipMaskERNS_14SVGRenderStateE; lunasvg::SVGClipPathElement::applyClipMask(lunasvg::SVGRenderState &) jmp short $+2 loc_1D79A: jmp short loc_1D7D6 mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax lea rdi, [rbp+var_E0] call _ZNSt10shared_ptrIN7lunasvg6CanvasEED2Ev; std::shared_ptr<lunasvg::Canvas>::~shared_ptr() jmp loc_1D8A0 mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax lea rdi, [rbp+var_D0]; this call _ZN7lunasvg14SVGRenderStateD2Ev; lunasvg::SVGRenderState::~SVGRenderState() jmp loc_1D8A0 loc_1D7D6: mov rdi, [rbp+var_E8]; this call _ZNK7lunasvg10SVGElement6maskerEv; lunasvg::SVGElement::masker(void) mov [rbp+var_198], rax jmp short $+2 loc_1D7EB: mov rax, [rbp+var_198] cmp rax, 0 jz short loc_1D824 mov rdi, [rbp+var_E8]; this call _ZNK7lunasvg10SVGElement6maskerEv; lunasvg::SVGElement::masker(void) mov [rbp+var_1A0], rax jmp short $+2 loc_1D80D: mov rdi, [rbp+var_1A0]; this lea rsi, [rbp+var_D0]; lunasvg::SVGRenderState * call _ZNK7lunasvg14SVGMaskElement9applyMaskERNS_14SVGRenderStateE; lunasvg::SVGMaskElement::applyMask(lunasvg::SVGRenderState &) jmp short $+2 loc_1D822: jmp short $+2 loc_1D824: mov rax, [rbp+var_E8] cmp byte ptr [rax+0F0h], 0 jnz short loc_1D849 lea rdi, [rbp+var_20] call _ZNKSt19__shared_ptr_accessIN7lunasvg6CanvasELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<lunasvg::Canvas,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax; this call _ZN7lunasvg6Canvas22convertToLuminanceMaskEv; lunasvg::Canvas::convertToLuminanceMask(void) jmp short $+2 loc_1D847: jmp short $+2 loc_1D849: mov rdi, [rbp+var_10] call _ZNK7lunasvg14SVGRenderStateptEv; lunasvg::SVGRenderState::operator->(void) mov [rbp+var_1A8], rax jmp short $+2 loc_1D85B: lea rdi, [rbp+var_20] call _ZNKSt19__shared_ptr_accessIN7lunasvg6CanvasELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv; std::__shared_ptr_access<lunasvg::Canvas,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(void) mov rdi, [rbp+var_1A8] mov rsi, rax mov edx, 6 movss xmm0, cs:flt_8C0C8 call _ZN7lunasvg6Canvas11blendCanvasERKS0_NS_9BlendModeEf; lunasvg::Canvas::blendCanvas(lunasvg::Canvas const&,lunasvg::BlendMode,float) jmp short $+2 loc_1D882: lea rdi, [rbp+var_D0]; this call _ZN7lunasvg14SVGRenderStateD2Ev; lunasvg::SVGRenderState::~SVGRenderState() lea rdi, [rbp+var_20] call _ZNSt10shared_ptrIN7lunasvg6CanvasEED2Ev; std::shared_ptr<lunasvg::Canvas>::~shared_ptr() loc_1D897: add rsp, 1B0h pop rbp retn loc_1D8A0: lea rdi, [rbp+var_20] call _ZNSt10shared_ptrIN7lunasvg6CanvasEED2Ev; std::shared_ptr<lunasvg::Canvas>::~shared_ptr() mov rdi, [rbp+var_58] call __Unwind_Resume
long long lunasvg::SVGMaskElement::applyMask( lunasvg::SVGMaskElement *this, lunasvg::SVGRenderState *a2, double a3, double a4) { long long result; // rax double v5; // xmm0_8 double v6; // xmm1_8 __int128 v7; // xmm0 lunasvg::Canvas *v8; // rax lunasvg::Canvas *v9; // rax long long v10; // [rsp+8h] [rbp-1A8h] lunasvg::SVGMaskElement *v11; // [rsp+10h] [rbp-1A0h] lunasvg::SVGClipPathElement *v12; // [rsp+20h] [rbp-190h] lunasvg::SVGRenderState *v13; // [rsp+30h] [rbp-180h] long long v14; // [rsp+70h] [rbp-140h] lunasvg::Transform *v15; // [rsp+78h] [rbp-138h] lunasvg::Transform *v17; // [rsp+A8h] [rbp-108h] long long v18; // [rsp+B8h] [rbp-F8h] lunasvg::SVGElement *v19; // [rsp+C0h] [rbp-F0h] _BYTE v20[16]; // [rsp+D0h] [rbp-E0h] BYREF _BYTE v21[64]; // [rsp+E0h] [rbp-D0h] BYREF long long v22; // [rsp+120h] [rbp-90h] double v23; // [rsp+128h] [rbp-88h] __int128 v24; // [rsp+130h] [rbp-80h] BYREF long long v25; // [rsp+140h] [rbp-70h] _QWORD v26[2]; // [rsp+160h] [rbp-50h] BYREF _QWORD v27[2]; // [rsp+170h] [rbp-40h] BYREF _QWORD v28[2]; // [rsp+180h] [rbp-30h] BYREF _BYTE v29[16]; // [rsp+190h] [rbp-20h] BYREF lunasvg::SVGRenderState *v30; // [rsp+1A0h] [rbp-10h] lunasvg::SVGElement *v31; // [rsp+1A8h] [rbp-8h] v31 = this; v30 = a2; result = lunasvg::SVGRenderState::hasCycleReference(a2, this); if ( (result & 1) == 0 ) { v17 = (lunasvg::Transform *)lunasvg::SVGRenderState::currentTransform(v30); lunasvg::SVGRenderState::paintBoundingBox(v30); *(double *)v27 = a3; *(double *)&v27[1] = a4; v5 = lunasvg::Transform::mapRect(v17, (const lunasvg::Rect *)v27); *(double *)v28 = v5; *(double *)&v28[1] = a4; lunasvg::Canvas::create((lunasvg::Canvas *)v29, (const lunasvg::Rect *)v28); v18 = std::__shared_ptr_access<lunasvg::Canvas,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(v29); v19 = (lunasvg::SVGElement *)lunasvg::SVGRenderState::element(v30); v6 = lunasvg::SVGMaskElement::maskRect(this, v19, *(float *)&v5); *(double *)v26 = v6; *(double *)&v26[1] = a4; v15 = (lunasvg::Transform *)lunasvg::SVGRenderState::currentTransform(v30); lunasvg::Canvas::clipRect(v18, (float *)v26, 0, v15); v14 = lunasvg::SVGRenderState::currentTransform(v30); v25 = *(_QWORD *)(v14 + 16); v7 = *(_OWORD *)v14; v24 = *(_OWORD *)v14; if ( (unsigned __int8)lunasvg::SVGEnumeration<lunasvg::Units>::value((char *)this + 224) == 1 ) { lunasvg::SVGRenderState::fillBoundingBox(v30); v22 = v7; v23 = v6; lunasvg::Transform::translate((lunasvg::Transform *)&v24, *(float *)&v7, *((float *)&v7 + 1)); *(_QWORD *)&v7 = LODWORD(v6); *(_QWORD *)&v6 = HIDWORD(v6); lunasvg::Transform::scale((lunasvg::Transform *)&v24, *(float *)&v23, *((float *)&v23 + 1)); } v13 = v30; std::shared_ptr<lunasvg::Canvas>::shared_ptr((long long)v20, (long long)v29); lunasvg::SVGRenderState::SVGRenderState((long long)v21, (long long)this, (long long)v13, &v24, 0); std::shared_ptr<lunasvg::Canvas>::~shared_ptr((long long)v20); lunasvg::SVGElement::renderChildren(this, (lunasvg::SVGRenderState *)v21); if ( lunasvg::SVGElement::clipper(this) ) { v12 = (lunasvg::SVGClipPathElement *)lunasvg::SVGElement::clipper(this); lunasvg::SVGClipPathElement::applyClipMask(v12, (lunasvg::SVGRenderState *)v21, *(double *)&v7, v6); } if ( lunasvg::SVGElement::masker(this) ) { v11 = (lunasvg::SVGMaskElement *)lunasvg::SVGElement::masker(this); lunasvg::SVGMaskElement::applyMask(v11, (lunasvg::SVGRenderState *)v21); } if ( !*((_BYTE *)this + 240) ) { v8 = (lunasvg::Canvas *)std::__shared_ptr_access<lunasvg::Canvas,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(v29); lunasvg::Canvas::convertToLuminanceMask(v8); } v10 = lunasvg::SVGRenderState::operator->(v30); v9 = (lunasvg::Canvas *)std::__shared_ptr_access<lunasvg::Canvas,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(v29); lunasvg::Canvas::blendCanvas(v10, v9, 6u, 1.0); lunasvg::SVGRenderState::~SVGRenderState((lunasvg::SVGRenderState *)v21); return std::shared_ptr<lunasvg::Canvas>::~shared_ptr((long long)v29); } return result; }
applyMask: PUSH RBP MOV RBP,RSP SUB RSP,0x1b0 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RSI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0xe8],RSI MOV RDI,qword ptr [RBP + -0x10] CALL 0x0014c970 TEST AL,0x1 JNZ 0x0011d52d JMP 0x0011d532 LAB_0011d52d: JMP 0x0011d897 LAB_0011d532: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120eb0 MOV qword ptr [RBP + -0x108],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x00121610 MOV RDI,qword ptr [RBP + -0x108] MOVLPD qword ptr [RBP + -0x40],XMM0 MOVLPD qword ptr [RBP + -0x38],XMM1 LEA RSI,[RBP + -0x40] CALL 0x00111ed0 MOVLPD qword ptr [RBP + -0x30],XMM0 MOVLPD qword ptr [RBP + -0x28],XMM1 LEA RDI,[RBP + -0x20] MOV qword ptr [RBP + -0x100],RDI LEA RSI,[RBP + -0x30] CALL 0x00113650 MOV RDI,qword ptr [RBP + -0x100] CALL 0x00121940 MOV qword ptr [RBP + -0xf8],RAX MOV RDI,qword ptr [RBP + -0x10] LAB_0011d59a: CALL 0x00121960 MOV qword ptr [RBP + -0xf0],RAX JMP 0x0011d5a8 LAB_0011d5a8: MOV RSI,qword ptr [RBP + -0xf0] MOV RDI,qword ptr [RBP + -0xe8] CALL 0x0011d3c0 MOVAPS xmmword ptr [RBP + -0x130],XMM1 MOVAPS xmmword ptr [RBP + -0x120],XMM0 JMP 0x0011d5cb LAB_0011d5cb: MOVAPS XMM0,xmmword ptr [RBP + -0x130] MOVAPS XMM1,xmmword ptr [RBP + -0x120] MOVLPD qword ptr [RBP + -0x50],XMM1 MOVLPD qword ptr [RBP + -0x48],XMM0 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120eb0 MOV qword ptr [RBP + -0x138],RAX JMP 0x0011d5f5 LAB_0011d5f5: MOV RCX,qword ptr [RBP + -0x138] MOV RDI,qword ptr [RBP + -0xf8] LEA RSI,[RBP + -0x50] XOR EDX,EDX CALL 0x00113ef0 JMP 0x0011d610 LAB_0011d610: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120eb0 MOV qword ptr [RBP + -0x140],RAX JMP 0x0011d622 LAB_0011d622: MOV RDI,qword ptr [RBP + -0xe8] MOV RAX,qword ptr [RBP + -0x140] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x70],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RBP + -0x80],XMM0 ADD RDI,0xe0 CALL 0x001215f0 MOV byte ptr [RBP + -0x141],AL JMP 0x0011d653 LAB_0011d653: MOV AL,byte ptr [RBP + -0x141] CMP AL,0x1 JNZ 0x0011d6e1 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00121650 MOVAPS xmmword ptr [RBP + -0x170],XMM1 MOVAPS xmmword ptr [RBP + -0x160],XMM0 JMP 0x0011d67a LAB_0011d67a: MOVAPS XMM0,xmmword ptr [RBP + -0x170] MOVAPS XMM1,xmmword ptr [RBP + -0x160] MOVLPD qword ptr [RBP + -0x90],XMM1 MOVLPD qword ptr [RBP + -0x88],XMM0 MOVSS XMM0,dword ptr [RBP + -0x90] MOVSS XMM1,dword ptr [RBP + -0x8c] LEA RDI,[RBP + -0x80] CALL 0x00111910 JMP 0x0011d6b3 LAB_0011d6b3: MOVSS XMM0,dword ptr [RBP + -0x88] MOVSS XMM1,dword ptr [RBP + -0x84] LEA RDI,[RBP + -0x80] CALL 0x001119b0 JMP 0x0011d6ce LAB_0011d6ce: JMP 0x0011d6e1 LAB_0011d6e1: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x180],RAX LEA RDI,[RBP + -0xe0] MOV qword ptr [RBP + -0x178],RDI LEA RSI,[RBP + -0x20] CALL 0x0010e750 MOV RSI,qword ptr [RBP + -0xe8] MOV RDX,qword ptr [RBP + -0x180] MOV R9,qword ptr [RBP + -0x178] LAB_0011d718: LEA RDI,[RBP + -0xd0] LEA RCX,[RBP + -0x80] XOR R8D,R8D CALL 0x0010e780 JMP 0x0011d72d LAB_0011d72d: LEA RDI,[RBP + -0xe0] CALL 0x0010e7f0 MOV RDI,qword ptr [RBP + -0xe8] LAB_0011d740: LEA RSI,[RBP + -0xd0] CALL 0x0011a060 JMP 0x0011d74e LAB_0011d74e: MOV RDI,qword ptr [RBP + -0xe8] CALL 0x00121690 MOV qword ptr [RBP + -0x188],RAX JMP 0x0011d763 LAB_0011d763: MOV RAX,qword ptr [RBP + -0x188] CMP RAX,0x0 JZ 0x0011d7d6 MOV RDI,qword ptr [RBP + -0xe8] CALL 0x00121690 MOV qword ptr [RBP + -0x190],RAX JMP 0x0011d785 LAB_0011d785: MOV RDI,qword ptr [RBP + -0x190] LEA RSI,[RBP + -0xd0] CALL 0x0011cac0 JMP 0x0011d79a LAB_0011d79a: JMP 0x0011d7d6 LAB_0011d7d6: MOV RDI,qword ptr [RBP + -0xe8] CALL 0x00121980 MOV qword ptr [RBP + -0x198],RAX JMP 0x0011d7eb LAB_0011d7eb: MOV RAX,qword ptr [RBP + -0x198] CMP RAX,0x0 JZ 0x0011d824 MOV RDI,qword ptr [RBP + -0xe8] CALL 0x00121980 MOV qword ptr [RBP + -0x1a0],RAX JMP 0x0011d80d LAB_0011d80d: MOV RDI,qword ptr [RBP + -0x1a0] LEA RSI,[RBP + -0xd0] CALL 0x0011d500 JMP 0x0011d822 LAB_0011d822: JMP 0x0011d824 LAB_0011d824: MOV RAX,qword ptr [RBP + -0xe8] CMP byte ptr [RAX + 0xf0],0x0 JNZ 0x0011d849 LEA RDI,[RBP + -0x20] CALL 0x00121940 MOV RDI,RAX CALL 0x001142c0 JMP 0x0011d847 LAB_0011d847: JMP 0x0011d849 LAB_0011d849: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120750 MOV qword ptr [RBP + -0x1a8],RAX JMP 0x0011d85b LAB_0011d85b: LEA RDI,[RBP + -0x20] CALL 0x001216b0 MOV RDI,qword ptr [RBP + -0x1a8] MOV RSI,RAX MOV EDX,0x6 MOVSS XMM0,dword ptr [0x0018c0c8] CALL 0x00114150 LAB_0011d880: JMP 0x0011d882 LAB_0011d882: LEA RDI,[RBP + -0xd0] CALL 0x0010e810 LEA RDI,[RBP + -0x20] CALL 0x0010e7f0 LAB_0011d897: ADD RSP,0x1b0 POP RBP RET
34,050
lunasvg::SVGMaskElement::applyMask(lunasvg::SVGRenderState&) const
dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp
void SVGMaskElement::applyMask(SVGRenderState& state) const { if(state.hasCycleReference(this)) return; auto maskImage = Canvas::create(state.currentTransform().mapRect(state.paintBoundingBox())); maskImage->clipRect(maskRect(state.element()), FillRule::NonZero, state.currentTransform()); auto currentTransform = state.currentTransform(); if(m_maskContentUnits.value() == Units::ObjectBoundingBox) { auto bbox = state.fillBoundingBox(); currentTransform.translate(bbox.x, bbox.y); currentTransform.scale(bbox.w, bbox.h); } SVGRenderState newState(this, &state, currentTransform, SVGRenderMode::Painting, maskImage); renderChildren(newState); if(clipper()) clipper()->applyClipMask(newState); if(masker()) { masker()->applyMask(newState); } if(m_mask_type == MaskType::Luminance) maskImage->convertToLuminanceMask(); state->blendCanvas(*maskImage, BlendMode::Dst_In, 1.f); }
O1
cpp
lunasvg::SVGMaskElement::applyMask(lunasvg::SVGRenderState&) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rsi, %rbx movq %rdi, %r14 movq %rsi, %rdi movq %r14, %rsi callq 0x20d76 testb %al, %al jne 0x12adb leaq 0x10(%rbx), %r15 movq (%rbx), %rdi movq (%rdi), %rax callq *0x68(%rax) movlhps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0] leaq 0x10(%rsp), %rsi movups %xmm0, (%rsi) movq %r15, %rdi callq 0xcd9e movlhps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0] leaq 0x48(%rsp), %rsi movups %xmm0, (%rsi) movq %rsp, %r12 movq %r12, %rdi callq 0xda2e movq (%r12), %r12 movq (%rbx), %rsi movq %r14, %rdi callq 0x12844 movlhps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0] leaq 0x48(%rsp), %rsi movups %xmm0, (%rsi) movq %r12, %rdi xorl %edx, %edx movq %r15, %rcx callq 0xde34 movq 0x10(%r15), %rax movq %rax, 0x20(%rsp) movups (%r15), %xmm0 movaps %xmm0, 0x10(%rsp) cmpb $0x1, 0xe9(%r14) jne 0x12a0f movq (%rbx), %rdi movq (%rdi), %rax callq *0x58(%rax) movaps %xmm1, 0x30(%rsp) movaps %xmm0, %xmm1 shufps $0x55, %xmm0, %xmm1 # xmm1 = xmm1[1,1],xmm0[1,1] leaq 0x10(%rsp), %rdi callq 0xc996 movaps 0x30(%rsp), %xmm0 movaps %xmm0, %xmm1 shufps $0x55, %xmm0, %xmm1 # xmm1 = xmm1[1,1],xmm0[1,1] leaq 0x10(%rsp), %rdi callq 0xc9ea movq (%rsp), %rax movq 0x8(%rsp), %rcx testq %rcx, %rcx je 0x12a32 movq 0x495a4(%rip), %rdx # 0x5bfc8 cmpb $0x0, (%rdx) je 0x12a2e incl 0x8(%rcx) jmp 0x12a32 lock incl 0x8(%rcx) leaq 0x48(%rsp), %rsi movq %r14, (%rsi) movq %rbx, 0x8(%rsi) movaps 0x10(%rsp), %xmm0 movups %xmm0, 0x10(%rsi) movq 0x20(%rsp), %rdx movq %rdx, 0x20(%rsi) movl $0x0, 0x28(%rsi) movq %rax, 0x30(%rsi) movq %rcx, 0x38(%rsi) movq %r14, %rdi callq 0xffc0 movq 0x28(%r14), %rdi testq %rdi, %rdi je 0x12a7a leaq 0x48(%rsp), %rsi callq 0x120fa movq 0x30(%r14), %rdi testq %rdi, %rdi je 0x12a8d leaq 0x48(%rsp), %rsi callq 0x1293a cmpb $0x0, 0xf0(%r14) jne 0x12aa0 movq (%rsp), %rdi callq 0xe086 movq 0x30(%rbx), %rdi movq (%rsp), %rsi movss 0x30644(%rip), %xmm0 # 0x430f4 movl $0x6, %edx callq 0xdfc2 movq 0x80(%rsp), %rdi testq %rdi, %rdi je 0x12acc callq 0xc49a movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x12adb callq 0xc49a addq $0x88, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq jmp 0x12aec movq %rax, %rbx jmp 0x12b06 movq %rax, %rbx movq 0x80(%rsp), %rdi testq %rdi, %rdi je 0x12b06 callq 0xc49a movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x12b15 callq 0xc49a movq %rbx, %rdi callq 0xa5c0 nop
_ZNK7lunasvg14SVGMaskElement9applyMaskERNS_14SVGRenderStateE: push r15 push r14 push r12 push rbx sub rsp, 88h mov rbx, rsi mov r14, rdi mov rdi, rsi; this mov rsi, r14; lunasvg::SVGElement * call _ZNK7lunasvg14SVGRenderState17hasCycleReferenceEPKNS_10SVGElementE; lunasvg::SVGRenderState::hasCycleReference(lunasvg::SVGElement const*) test al, al jnz loc_12ADB lea r15, [rbx+10h] mov rdi, [rbx] mov rax, [rdi] call qword ptr [rax+68h] movlhps xmm0, xmm1 lea rsi, [rsp+0A8h+var_98]; lunasvg::Rect * movups xmmword ptr [rsi], xmm0 mov rdi, r15; this call _ZNK7lunasvg9Transform7mapRectERKNS_4RectE; lunasvg::Transform::mapRect(lunasvg::Rect const&) movlhps xmm0, xmm1 lea rsi, [rsp+0A8h+var_60]; lunasvg::Rect * movups xmmword ptr [rsi], xmm0 mov r12, rsp mov rdi, r12; this call _ZN7lunasvg6Canvas6createERKNS_4RectE; lunasvg::Canvas::create(lunasvg::Rect const&) mov r12, [r12] mov rsi, [rbx]; lunasvg::SVGElement * mov rdi, r14; this call _ZNK7lunasvg14SVGMaskElement8maskRectEPKNS_10SVGElementE; lunasvg::SVGMaskElement::maskRect(lunasvg::SVGElement const*) movlhps xmm0, xmm1 lea rsi, [rsp+0A8h+var_60] movups xmmword ptr [rsi], xmm0 mov rdi, r12 xor edx, edx mov rcx, r15 call _ZN7lunasvg6Canvas8clipRectERKNS_4RectENS_8FillRuleERKNS_9TransformE; lunasvg::Canvas::clipRect(lunasvg::Rect const&,lunasvg::FillRule,lunasvg::Transform const&) mov rax, [r15+10h] mov [rsp+0A8h+var_88], rax movups xmm0, xmmword ptr [r15] movaps [rsp+0A8h+var_98], xmm0 cmp byte ptr [r14+0E9h], 1 jnz short loc_12A0F mov rdi, [rbx] mov rax, [rdi] call qword ptr [rax+58h] movaps xmmword ptr [rsp+0A8h+var_78], xmm1 movaps xmm1, xmm0 shufps xmm1, xmm0, 55h ; 'U'; float lea rdi, [rsp+0A8h+var_98]; this call _ZN7lunasvg9Transform9translateEff; lunasvg::Transform::translate(float,float) movaps xmm0, xmmword ptr [rsp+0A8h+var_78]; float movaps xmm1, xmm0 shufps xmm1, xmm0, 55h ; 'U'; float lea rdi, [rsp+0A8h+var_98]; this call _ZN7lunasvg9Transform5scaleEff; lunasvg::Transform::scale(float,float) loc_12A0F: mov rax, [rsp+0A8h+var_A8] mov rcx, [rsp+0A8h+var_A0] test rcx, rcx jz short loc_12A32 mov rdx, cs:__libc_single_threaded_ptr cmp byte ptr [rdx], 0 jz short loc_12A2E inc dword ptr [rcx+8] jmp short loc_12A32 loc_12A2E: lock inc dword ptr [rcx+8] loc_12A32: lea rsi, [rsp+0A8h+var_60] mov [rsi], r14 mov [rsi+8], rbx movaps xmm0, [rsp+0A8h+var_98] movups xmmword ptr [rsi+10h], xmm0 mov rdx, [rsp+0A8h+var_88] mov [rsi+20h], rdx mov dword ptr [rsi+28h], 0 mov [rsi+30h], rax mov [rsi+38h], rcx mov rdi, r14 call _ZNK7lunasvg10SVGElement14renderChildrenERNS_14SVGRenderStateE; lunasvg::SVGElement::renderChildren(lunasvg::SVGRenderState &) mov rdi, [r14+28h]; this test rdi, rdi jz short loc_12A7A lea rsi, [rsp+0A8h+var_60]; lunasvg::SVGRenderState * call _ZNK7lunasvg18SVGClipPathElement13applyClipMaskERNS_14SVGRenderStateE; lunasvg::SVGClipPathElement::applyClipMask(lunasvg::SVGRenderState &) loc_12A7A: mov rdi, [r14+30h]; this test rdi, rdi jz short loc_12A8D lea rsi, [rsp+0A8h+var_60]; lunasvg::SVGRenderState * call _ZNK7lunasvg14SVGMaskElement9applyMaskERNS_14SVGRenderStateE; lunasvg::SVGMaskElement::applyMask(lunasvg::SVGRenderState &) loc_12A8D: cmp byte ptr [r14+0F0h], 0 jnz short loc_12AA0 mov rdi, [rsp+0A8h+var_A8]; this call _ZN7lunasvg6Canvas22convertToLuminanceMaskEv; lunasvg::Canvas::convertToLuminanceMask(void) loc_12AA0: mov rdi, [rbx+30h] mov rsi, [rsp+0A8h+var_A8] movss xmm0, cs:flt_430F4 mov edx, 6 call _ZN7lunasvg6Canvas11blendCanvasERKS0_NS_9BlendModeEf; lunasvg::Canvas::blendCanvas(lunasvg::Canvas const&,lunasvg::BlendMode,float) mov rdi, [rsp+0A8h+var_28] test rdi, rdi jz short loc_12ACC call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_12ACC: mov rdi, [rsp+0A8h+var_A0] test rdi, rdi jz short loc_12ADB call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_12ADB: add rsp, 88h pop rbx pop r12 pop r14 pop r15 retn jmp short $+2 loc_12AEC: mov rbx, rax jmp short loc_12B06 mov rbx, rax mov rdi, [rsp+arg_78] test rdi, rdi jz short loc_12B06 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_12B06: mov rdi, [rsp+arg_0] test rdi, rdi jz short loc_12B15 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_12B15: mov rdi, rbx call __Unwind_Resume
long long lunasvg::SVGMaskElement::applyMask(__int128 this, __m128 a2, __m128 a3) { long long v3; // rbx long long v4; // r14 long long result; // rax __m128 v6; // xmm0 lunasvg::Canvas *v7; // r12 __m128 v8; // xmm0 lunasvg::Canvas *v9; // rax volatile signed __int32 *v10; // rcx __m128 v11; // xmm0 lunasvg::SVGMaskElement *v12; // rdi lunasvg::Canvas *v13; // [rsp+0h] [rbp-A8h] BYREF volatile signed __int32 *v14; // [rsp+8h] [rbp-A0h] __m128 v15; // [rsp+10h] [rbp-98h] BYREF long long v16; // [rsp+20h] [rbp-88h] __m128 v17; // [rsp+30h] [rbp-78h] __m128 v18[2]; // [rsp+48h] [rbp-60h] BYREF long long v19; // [rsp+68h] [rbp-40h] int v20; // [rsp+70h] [rbp-38h] lunasvg::Canvas *v21; // [rsp+78h] [rbp-30h] volatile signed __int32 *v22; // [rsp+80h] [rbp-28h] v3 = *((_QWORD *)&this + 1); v4 = this; result = lunasvg::SVGRenderState::hasCycleReference( *((lunasvg::SVGRenderState **)&this + 1), (const lunasvg::SVGElement *)this); if ( !(_BYTE)result ) { *(double *)a2.m128_u64 = (*(double ( **)(_QWORD))(***((_QWORD ***)&this + 1) + 104LL))(**((_QWORD **)&this + 1)); v15 = _mm_movelh_ps(a2, a3); v6 = _mm_movelh_ps( (__m128)lunasvg::Transform::mapRect( (lunasvg::Transform *)(*((_QWORD *)&this + 1) + 16LL), (const lunasvg::Rect *)&v15), a3); v18[0] = v6; lunasvg::Canvas::create((lunasvg::Canvas *)&v13, (const lunasvg::Rect *)v18); v7 = v13; v18[0] = _mm_movelh_ps( lunasvg::SVGMaskElement::maskRect( (lunasvg::SVGMaskElement *)this, (const lunasvg::SVGElement *)**((_QWORD **)&this + 1), v6, a3), a3); lunasvg::Canvas::clipRect((long long)v7, v18[0].m128_f32, 0, *((_QWORD *)&this + 1) + 16LL); v16 = *(_QWORD *)(*((_QWORD *)&this + 1) + 32LL); v8 = *(__m128 *)(*((_QWORD *)&this + 1) + 16LL); v15 = v8; if ( *(_BYTE *)(this + 233) == 1 ) { *(double *)v8.m128_u64 = (*(double ( **)(_QWORD))(***((_QWORD ***)&this + 1) + 88LL))(**((_QWORD **)&this + 1)); v17 = a3; lunasvg::Transform::translate((lunasvg::Transform *)&v15, v8.m128_f32[0], _mm_shuffle_ps(v8, v8, 85).m128_f32[0]); a3 = _mm_shuffle_ps(v17, v17, 85); lunasvg::Transform::scale((lunasvg::Transform *)&v15, v17.m128_f32[0], a3.m128_f32[0]); } v9 = v13; v10 = v14; if ( v14 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v14 + 2); else _InterlockedIncrement(v14 + 2); } v18[0] = (__m128)this; v11 = v15; v18[1] = v15; v19 = v16; v20 = 0; v21 = v9; v22 = v10; lunasvg::SVGElement::renderChildren((lunasvg::SVGElement *)this, (lunasvg::SVGRenderState *)v18); *(_QWORD *)&this = *(_QWORD *)(this + 40); if ( (_QWORD)this ) { *((_QWORD *)&this + 1) = v18; lunasvg::SVGClipPathElement::applyClipMask(this, v11, a3); } v12 = *(lunasvg::SVGMaskElement **)(v4 + 48); if ( v12 ) lunasvg::SVGMaskElement::applyMask(v12, (lunasvg::SVGRenderState *)v18); if ( !*(_BYTE *)(v4 + 240) ) lunasvg::Canvas::convertToLuminanceMask(v13); result = lunasvg::Canvas::blendCanvas(*(_QWORD *)(v3 + 48), v13, 6u, 1.0); if ( v22 ) result = std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v22); if ( v14 ) return std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14); } return result; }
applyMask: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x88 MOV RBX,RSI MOV R14,RDI MOV RDI,RSI MOV RSI,R14 CALL 0x00120d76 TEST AL,AL JNZ 0x00112adb LEA R15,[RBX + 0x10] MOV RDI,qword ptr [RBX] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x68] MOVLHPS XMM0,XMM1 LEA RSI,[RSP + 0x10] MOVUPS xmmword ptr [RSI],XMM0 MOV RDI,R15 CALL 0x0010cd9e MOVLHPS XMM0,XMM1 LEA RSI,[RSP + 0x48] MOVUPS xmmword ptr [RSI],XMM0 MOV R12,RSP MOV RDI,R12 CALL 0x0010da2e MOV R12,qword ptr [R12] MOV RSI,qword ptr [RBX] LAB_0011299e: MOV RDI,R14 CALL 0x00112844 MOVLHPS XMM0,XMM1 LEA RSI,[RSP + 0x48] MOVUPS xmmword ptr [RSI],XMM0 MOV RDI,R12 XOR EDX,EDX MOV RCX,R15 CALL 0x0010de34 MOV RAX,qword ptr [R15 + 0x10] MOV qword ptr [RSP + 0x20],RAX MOVUPS XMM0,xmmword ptr [R15] MOVAPS xmmword ptr [RSP + 0x10],XMM0 CMP byte ptr [R14 + 0xe9],0x1 JNZ 0x00112a0f MOV RDI,qword ptr [RBX] MOV RAX,qword ptr [RDI] LAB_001129e0: CALL qword ptr [RAX + 0x58] MOVAPS xmmword ptr [RSP + 0x30],XMM1 MOVAPS XMM1,XMM0 SHUFPS XMM1,XMM0,0x55 LEA RDI,[RSP + 0x10] CALL 0x0010c996 MOVAPS XMM0,xmmword ptr [RSP + 0x30] MOVAPS XMM1,XMM0 SHUFPS XMM1,XMM0,0x55 LEA RDI,[RSP + 0x10] CALL 0x0010c9ea LAB_00112a0f: MOV RAX,qword ptr [RSP] MOV RCX,qword ptr [RSP + 0x8] TEST RCX,RCX JZ 0x00112a32 MOV RDX,qword ptr [0x0015bfc8] CMP byte ptr [RDX],0x0 JZ 0x00112a2e INC dword ptr [RCX + 0x8] JMP 0x00112a32 LAB_00112a2e: INC.LOCK dword ptr [RCX + 0x8] LAB_00112a32: LEA RSI,[RSP + 0x48] MOV qword ptr [RSI],R14 MOV qword ptr [RSI + 0x8],RBX MOVAPS XMM0,xmmword ptr [RSP + 0x10] MOVUPS xmmword ptr [RSI + 0x10],XMM0 MOV RDX,qword ptr [RSP + 0x20] MOV qword ptr [RSI + 0x20],RDX MOV dword ptr [RSI + 0x28],0x0 MOV qword ptr [RSI + 0x30],RAX MOV qword ptr [RSI + 0x38],RCX LAB_00112a5f: MOV RDI,R14 CALL 0x0010ffc0 MOV RDI,qword ptr [R14 + 0x28] TEST RDI,RDI JZ 0x00112a7a LEA RSI,[RSP + 0x48] CALL 0x001120fa LAB_00112a7a: MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JZ 0x00112a8d LEA RSI,[RSP + 0x48] CALL 0x0011293a LAB_00112a8d: CMP byte ptr [R14 + 0xf0],0x0 JNZ 0x00112aa0 MOV RDI,qword ptr [RSP] CALL 0x0010e086 LAB_00112aa0: MOV RDI,qword ptr [RBX + 0x30] MOV RSI,qword ptr [RSP] MOVSS XMM0,dword ptr [0x001430f4] MOV EDX,0x6 CALL 0x0010dfc2 LAB_00112aba: MOV RDI,qword ptr [RSP + 0x80] TEST RDI,RDI JZ 0x00112acc CALL 0x0010c49a LAB_00112acc: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x00112adb CALL 0x0010c49a LAB_00112adb: ADD RSP,0x88 POP RBX POP R12 POP R14 POP R15 RET
34,051
ma_read_rnd_static_record
eloqsql/storage/maria/ma_statrec.c
int _ma_read_rnd_static_record(MARIA_HA *info, uchar *buf, MARIA_RECORD_POS filepos, my_bool skip_deleted_blocks) { int locked,error,cache_read; uint cache_length; MARIA_SHARE *share= info->s; DBUG_ENTER("_ma_read_rnd_static_record"); cache_read=0; cache_length=0; if (info->opt_flag & READ_CACHE_USED) { /* Cache in use */ if (filepos == my_b_tell(&info->rec_cache) && (skip_deleted_blocks || !filepos)) { cache_read=1; /* Read record using cache */ cache_length= (uint) (info->rec_cache.read_end - info->rec_cache.read_pos); } else info->rec_cache.seek_not_done=1; /* Filepos is changed */ } locked=0; if (info->lock_type == F_UNLCK) { if (filepos >= info->state->data_file_length) { /* Test if new records */ if (_ma_readinfo(info,F_RDLCK,0)) DBUG_RETURN(my_errno); locked=1; } else { /* We don't nead new info */ #ifndef UNSAFE_LOCKING if ((! cache_read || share->base.reclength > cache_length) && share->tot_locks == 0) { /* record not in cache */ locked=1; } #else info->tmp_lock_type=F_RDLCK; #endif } } if (filepos >= info->state->data_file_length) { DBUG_PRINT("test",("filepos: %ld (%ld) records: %ld del: %ld", (long) filepos/share->base.reclength, (long) filepos, (long) info->state->records, (long) info->state->del)); fast_ma_writeinfo(info); DBUG_RETURN(my_errno=HA_ERR_END_OF_FILE); } info->cur_row.lastpos= filepos; info->cur_row.nextpos= filepos+share->base.pack_reclength; if (! cache_read) /* No cacheing */ { error= _ma_read_static_record(info, buf, filepos); DBUG_RETURN(error); } /* Read record with cacheing */ error=my_b_read(&info->rec_cache, buf, share->base.reclength); if (info->s->base.pack_reclength != info->s->base.reclength && !error) { uchar tmp[8]; /* Skill fill bytes */ error=my_b_read(&info->rec_cache, tmp, info->s->base.pack_reclength - info->s->base.reclength); } if (locked) _ma_writeinfo(info,0); /* Unlock keyfile */ if (!error) { if (!buf[0]) { /* Record is removed */ DBUG_RETURN(my_errno=HA_ERR_RECORD_DELETED); } /* Found and may be updated */ info->update|= HA_STATE_AKTIV | HA_STATE_KEY_CHANGED; DBUG_RETURN(0); } /* my_errno should be set if rec_cache.error == -1 */ if (info->rec_cache.error != -1 || my_errno == 0) _ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); DBUG_RETURN(my_errno); /* Something wrong (EOF?) */ }
O0
c
ma_read_rnd_static_record: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movb %cl, %al movq %fs:0x28, %rcx movq %rcx, -0x8(%rbp) movq %rdi, -0x20(%rbp) movq %rsi, -0x28(%rbp) movq %rdx, -0x30(%rbp) movb %al, -0x31(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x50(%rbp) movl $0x0, -0x40(%rbp) movl $0x0, -0x44(%rbp) movq -0x20(%rbp), %rax movl 0x61c(%rax), %eax andl $0x2, %eax cmpl $0x0, %eax je 0x73aaa movq -0x30(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x20(%rbp), %rdi addq $0x4b8, %rdi # imm = 0x4B8 callq 0x73cf0 movq %rax, %rcx movq -0x58(%rbp), %rax cmpq %rcx, %rax jne 0x73a9a movsbl -0x31(%rbp), %eax cmpl $0x0, %eax jne 0x73a75 cmpq $0x0, -0x30(%rbp) jne 0x73a9a movl $0x1, -0x40(%rbp) movq -0x20(%rbp), %rax movq 0x4d0(%rax), %rax movq -0x20(%rbp), %rcx movq 0x4c8(%rcx), %rcx subq %rcx, %rax movl %eax, -0x44(%rbp) jmp 0x73aa8 movq -0x20(%rbp), %rax movl $0x1, 0x598(%rax) jmp 0x73aaa movl $0x0, -0x38(%rbp) movq -0x20(%rbp), %rax cmpl $0x2, 0x664(%rax) jne 0x73b2d movq -0x30(%rbp), %rax movq -0x20(%rbp), %rcx movq 0x20(%rcx), %rcx cmpq 0x28(%rcx), %rax jb 0x73afc movq -0x20(%rbp), %rdi xorl %edx, %edx movl %edx, %esi callq 0x35c20 cmpl $0x0, %eax je 0x73af3 jmp 0x73ae4 callq 0xf6090 movl (%rax), %eax movl %eax, -0x14(%rbp) jmp 0x73cc4 movl $0x1, -0x38(%rbp) jmp 0x73b2b cmpl $0x0, -0x40(%rbp) je 0x73b15 movq -0x50(%rbp), %rax movq 0x398(%rax), %rax movl -0x44(%rbp), %ecx cmpq %rcx, %rax jbe 0x73b29 movq -0x50(%rbp), %rax cmpl $0x0, 0x7b8(%rax) jne 0x73b29 movl $0x1, -0x38(%rbp) jmp 0x73b2b jmp 0x73b2d movq -0x30(%rbp), %rax movq -0x20(%rbp), %rcx movq 0x20(%rcx), %rcx cmpq 0x28(%rcx), %rax jb 0x73b77 jmp 0x73b41 jmp 0x73b43 movq -0x20(%rbp), %rax movq (%rax), %rax cmpl $0x0, 0x7b8(%rax) jne 0x73b5e movq -0x20(%rbp), %rdi xorl %esi, %esi callq 0x35c40 jmp 0x73b60 callq 0xf6090 movl $0x89, (%rax) movl $0x89, -0x14(%rbp) jmp 0x73cc4 movq -0x30(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x98(%rax) movq -0x30(%rbp), %rcx movq -0x50(%rbp), %rax addq 0x3a0(%rax), %rcx movq -0x20(%rbp), %rax movq %rcx, 0xa0(%rax) cmpl $0x0, -0x40(%rbp) jne 0x73bc5 movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x30(%rbp), %rdx callq 0x738b0 movl %eax, -0x3c(%rbp) movl -0x3c(%rbp), %eax movl %eax, -0x14(%rbp) jmp 0x73cc4 movq -0x20(%rbp), %rdi addq $0x4b8, %rdi # imm = 0x4B8 movq -0x28(%rbp), %rsi movq -0x50(%rbp), %rax movq 0x398(%rax), %rdx callq 0x73d50 movl %eax, -0x3c(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rax movq 0x3a0(%rax), %rax movq -0x20(%rbp), %rcx movq (%rcx), %rcx cmpq 0x398(%rcx), %rax je 0x73c3e cmpl $0x0, -0x3c(%rbp) jne 0x73c3e movq -0x20(%rbp), %rdi addq $0x4b8, %rdi # imm = 0x4B8 leaq -0x10(%rbp), %rsi movq -0x20(%rbp), %rax movq (%rax), %rax movq 0x3a0(%rax), %rdx movq -0x20(%rbp), %rax movq (%rax), %rax subq 0x398(%rax), %rdx callq 0x73d50 movl %eax, -0x3c(%rbp) cmpl $0x0, -0x38(%rbp) je 0x73c4f movq -0x20(%rbp), %rdi xorl %esi, %esi callq 0x35c40 cmpl $0x0, -0x3c(%rbp) jne 0x73c93 movq -0x28(%rbp), %rax cmpb $0x0, (%rax) jne 0x73c74 jmp 0x73c60 callq 0xf6090 movl $0x86, (%rax) movl $0x86, -0x14(%rbp) jmp 0x73cc4 movq -0x20(%rbp), %rax movl 0x624(%rax), %ecx orl $0x82, %ecx movl %ecx, 0x624(%rax) movl $0x0, -0x14(%rbp) jmp 0x73cc4 movq -0x20(%rbp), %rax cmpl $-0x1, 0x59c(%rax) jne 0x73caa callq 0xf6090 cmpl $0x0, (%rax) jne 0x73cb8 movq -0x20(%rbp), %rdi movl $0x7f, %esi callq 0x33880 jmp 0x73cba callq 0xf6090 movl (%rax), %eax movl %eax, -0x14(%rbp) movl -0x14(%rbp), %eax movl %eax, -0x5c(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x73ce5 movl -0x5c(%rbp), %eax addq $0x60, %rsp popq %rbp retq callq 0x2a270 nopw (%rax,%rax)
_ma_read_rnd_static_record: push rbp mov rbp, rsp sub rsp, 60h mov al, cl mov rcx, fs:28h mov [rbp+var_8], rcx mov [rbp+var_20], rdi mov [rbp+var_28], rsi mov [rbp+var_30], rdx mov [rbp+var_31], al mov rax, [rbp+var_20] mov rax, [rax] mov [rbp+var_50], rax mov [rbp+var_40], 0 mov [rbp+var_44], 0 mov rax, [rbp+var_20] mov eax, [rax+61Ch] and eax, 2 cmp eax, 0 jz short loc_73AAA mov rax, [rbp+var_30] mov [rbp+var_58], rax mov rdi, [rbp+var_20] add rdi, 4B8h call my_b_tell mov rcx, rax mov rax, [rbp+var_58] cmp rax, rcx jnz short loc_73A9A movsx eax, [rbp+var_31] cmp eax, 0 jnz short loc_73A75 cmp [rbp+var_30], 0 jnz short loc_73A9A loc_73A75: mov [rbp+var_40], 1 mov rax, [rbp+var_20] mov rax, [rax+4D0h] mov rcx, [rbp+var_20] mov rcx, [rcx+4C8h] sub rax, rcx mov [rbp+var_44], eax jmp short loc_73AA8 loc_73A9A: mov rax, [rbp+var_20] mov dword ptr [rax+598h], 1 loc_73AA8: jmp short $+2 loc_73AAA: mov [rbp+var_38], 0 mov rax, [rbp+var_20] cmp dword ptr [rax+664h], 2 jnz short loc_73B2D mov rax, [rbp+var_30] mov rcx, [rbp+var_20] mov rcx, [rcx+20h] cmp rax, [rcx+28h] jb short loc_73AFC mov rdi, [rbp+var_20] xor edx, edx mov esi, edx call _ma_readinfo cmp eax, 0 jz short loc_73AF3 jmp short $+2 loc_73AE4: call _my_thread_var mov eax, [rax] mov [rbp+var_14], eax jmp loc_73CC4 loc_73AF3: mov [rbp+var_38], 1 jmp short loc_73B2B loc_73AFC: cmp [rbp+var_40], 0 jz short loc_73B15 mov rax, [rbp+var_50] mov rax, [rax+398h] mov ecx, [rbp+var_44] cmp rax, rcx jbe short loc_73B29 loc_73B15: mov rax, [rbp+var_50] cmp dword ptr [rax+7B8h], 0 jnz short loc_73B29 mov [rbp+var_38], 1 loc_73B29: jmp short $+2 loc_73B2B: jmp short $+2 loc_73B2D: mov rax, [rbp+var_30] mov rcx, [rbp+var_20] mov rcx, [rcx+20h] cmp rax, [rcx+28h] jb short loc_73B77 jmp short $+2 loc_73B41: jmp short $+2 loc_73B43: mov rax, [rbp+var_20] mov rax, [rax] cmp dword ptr [rax+7B8h], 0 jnz short loc_73B5E mov rdi, [rbp+var_20] xor esi, esi call _ma_writeinfo loc_73B5E: jmp short $+2 loc_73B60: call _my_thread_var mov dword ptr [rax], 89h mov [rbp+var_14], 89h jmp loc_73CC4 loc_73B77: mov rcx, [rbp+var_30] mov rax, [rbp+var_20] mov [rax+98h], rcx mov rcx, [rbp+var_30] mov rax, [rbp+var_50] add rcx, [rax+3A0h] mov rax, [rbp+var_20] mov [rax+0A0h], rcx cmp [rbp+var_40], 0 jnz short loc_73BC5 mov rdi, [rbp+var_20] mov rsi, [rbp+var_28] mov rdx, [rbp+var_30] call _ma_read_static_record mov [rbp+var_3C], eax mov eax, [rbp+var_3C] mov [rbp+var_14], eax jmp loc_73CC4 loc_73BC5: mov rdi, [rbp+var_20] add rdi, 4B8h mov rsi, [rbp+var_28] mov rax, [rbp+var_50] mov rdx, [rax+398h] call my_b_read mov [rbp+var_3C], eax mov rax, [rbp+var_20] mov rax, [rax] mov rax, [rax+3A0h] mov rcx, [rbp+var_20] mov rcx, [rcx] cmp rax, [rcx+398h] jz short loc_73C3E cmp [rbp+var_3C], 0 jnz short loc_73C3E mov rdi, [rbp+var_20] add rdi, 4B8h lea rsi, [rbp+var_10] mov rax, [rbp+var_20] mov rax, [rax] mov rdx, [rax+3A0h] mov rax, [rbp+var_20] mov rax, [rax] sub rdx, [rax+398h] call my_b_read mov [rbp+var_3C], eax loc_73C3E: cmp [rbp+var_38], 0 jz short loc_73C4F mov rdi, [rbp+var_20] xor esi, esi call _ma_writeinfo loc_73C4F: cmp [rbp+var_3C], 0 jnz short loc_73C93 mov rax, [rbp+var_28] cmp byte ptr [rax], 0 jnz short loc_73C74 jmp short $+2 loc_73C60: call _my_thread_var mov dword ptr [rax], 86h mov [rbp+var_14], 86h jmp short loc_73CC4 loc_73C74: mov rax, [rbp+var_20] mov ecx, [rax+624h] or ecx, 82h mov [rax+624h], ecx mov [rbp+var_14], 0 jmp short loc_73CC4 loc_73C93: mov rax, [rbp+var_20] cmp dword ptr [rax+59Ch], 0FFFFFFFFh jnz short loc_73CAA call _my_thread_var cmp dword ptr [rax], 0 jnz short loc_73CB8 loc_73CAA: mov rdi, [rbp+var_20] mov esi, 7Fh call _ma_set_fatal_error loc_73CB8: jmp short $+2 loc_73CBA: call _my_thread_var mov eax, [rax] mov [rbp+var_14], eax loc_73CC4: mov eax, [rbp+var_14] mov [rbp+var_5C], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_73CE5 mov eax, [rbp+var_5C] add rsp, 60h pop rbp retn loc_73CE5: call ___stack_chk_fail
long long ma_read_rnd_static_record(long long a1, const char *a2, unsigned long long a3, char a4) { long long v4; // rdi const char *v5; // rsi long long v6; // rdx long long v7; // r8 int v8; // r9d long long v9; // rcx long long v11; // [rsp+10h] [rbp-50h] unsigned int v12; // [rsp+1Ch] [rbp-44h] int v13; // [rsp+20h] [rbp-40h] int v14; // [rsp+24h] [rbp-3Ch] int v15; // [rsp+28h] [rbp-38h] const char *v18; // [rsp+38h] [rbp-28h] long long v19; // [rsp+40h] [rbp-20h] _BYTE v21[8]; // [rsp+50h] [rbp-10h] BYREF unsigned long long v22; // [rsp+58h] [rbp-8h] v22 = __readfsqword(0x28u); v19 = a1; v18 = a2; v11 = *(_QWORD *)a1; v13 = 0; v12 = 0; if ( (*(_DWORD *)(a1 + 1564) & 2) != 0 ) { a1 += 1208LL; if ( a3 == my_b_tell(v19 + 1208) && (a4 || !a3) ) { v13 = 1; v12 = *(_QWORD *)(v19 + 1232) - *(_QWORD *)(v19 + 1224); } else { *(_DWORD *)(v19 + 1432) = 1; } } v15 = 0; if ( *(_DWORD *)(v19 + 1636) == 2 ) { if ( a3 < *(_QWORD *)(*(_QWORD *)(v19 + 32) + 40LL) ) { if ( (!v13 || *(_QWORD *)(v11 + 920) > (unsigned long long)v12) && !*(_DWORD *)(v11 + 1976) ) v15 = 1; } else { a1 = v19; a2 = 0LL; if ( (unsigned int)ma_readinfo() ) return *(unsigned int *)my_thread_var(v19, 0LL); v15 = 1; } } if ( a3 < *(_QWORD *)(*(_QWORD *)(v19 + 32) + 40LL) ) { *(_QWORD *)(v19 + 152) = a3; *(_QWORD *)(v19 + 160) = *(_QWORD *)(v11 + 928) + a3; if ( v13 ) { v4 = v19 + 1208; v5 = v18; v14 = my_b_read(v19 + 1208, v18, *(_QWORD *)(v11 + 920)); v9 = *(_QWORD *)v19; if ( *(_QWORD *)(*(_QWORD *)v19 + 928LL) != *(_QWORD *)(*(_QWORD *)v19 + 920LL) && !v14 ) { v4 = v19 + 1208; v5 = v21; v14 = my_b_read(v19 + 1208, v21, *(_QWORD *)(*(_QWORD *)v19 + 928LL) - *(_QWORD *)(*(_QWORD *)v19 + 920LL)); } if ( v15 ) { v4 = v19; v5 = 0LL; ma_writeinfo((long long *)v19, 0); } if ( v14 ) { if ( *(_DWORD *)(v19 + 1436) != -1 || !*(_DWORD *)my_thread_var(v4, v5) ) { v4 = v19; v5 = (_BYTE *)(&dword_7C + 3); ma_set_fatal_error((_DWORD *)v19, 127, v6, v9, v7, v8); } return *(unsigned int *)my_thread_var(v4, v5); } else if ( *v18 ) { *(_DWORD *)(v19 + 1572) |= 0x82u; return 0; } else { *(_DWORD *)my_thread_var(v4, v5) = 134; return 134; } } else { return (unsigned int)ma_read_static_record(v19, v18, a3); } } else { if ( !*(_DWORD *)(*(_QWORD *)v19 + 1976LL) ) { a1 = v19; a2 = 0LL; ma_writeinfo((long long *)v19, 0); } *(_DWORD *)my_thread_var(a1, a2) = 137; return 137; } }
_ma_read_rnd_static_record: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV AL,CL MOV RCX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RCX MOV qword ptr [RBP + -0x20],RDI MOV qword ptr [RBP + -0x28],RSI MOV qword ptr [RBP + -0x30],RDX MOV byte ptr [RBP + -0x31],AL MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX MOV dword ptr [RBP + -0x40],0x0 MOV dword ptr [RBP + -0x44],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x61c] AND EAX,0x2 CMP EAX,0x0 JZ 0x00173aaa MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x58],RAX MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x4b8 CALL 0x00173cf0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x58] CMP RAX,RCX JNZ 0x00173a9a MOVSX EAX,byte ptr [RBP + -0x31] CMP EAX,0x0 JNZ 0x00173a75 CMP qword ptr [RBP + -0x30],0x0 JNZ 0x00173a9a LAB_00173a75: MOV dword ptr [RBP + -0x40],0x1 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x4d0] MOV RCX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RCX + 0x4c8] SUB RAX,RCX MOV dword ptr [RBP + -0x44],EAX JMP 0x00173aa8 LAB_00173a9a: MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x598],0x1 LAB_00173aa8: JMP 0x00173aaa LAB_00173aaa: MOV dword ptr [RBP + -0x38],0x0 MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX + 0x664],0x2 JNZ 0x00173b2d MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RCX + 0x20] CMP RAX,qword ptr [RCX + 0x28] JC 0x00173afc MOV RDI,qword ptr [RBP + -0x20] XOR EDX,EDX MOV ESI,EDX CALL 0x00135c20 CMP EAX,0x0 JZ 0x00173af3 JMP 0x00173ae4 LAB_00173ae4: CALL 0x001f6090 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x14],EAX JMP 0x00173cc4 LAB_00173af3: MOV dword ptr [RBP + -0x38],0x1 JMP 0x00173b2b LAB_00173afc: CMP dword ptr [RBP + -0x40],0x0 JZ 0x00173b15 MOV RAX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RAX + 0x398] MOV ECX,dword ptr [RBP + -0x44] CMP RAX,RCX JBE 0x00173b29 LAB_00173b15: MOV RAX,qword ptr [RBP + -0x50] CMP dword ptr [RAX + 0x7b8],0x0 JNZ 0x00173b29 MOV dword ptr [RBP + -0x38],0x1 LAB_00173b29: JMP 0x00173b2b LAB_00173b2b: JMP 0x00173b2d LAB_00173b2d: MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RCX + 0x20] CMP RAX,qword ptr [RCX + 0x28] JC 0x00173b77 JMP 0x00173b41 LAB_00173b41: JMP 0x00173b43 LAB_00173b43: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] CMP dword ptr [RAX + 0x7b8],0x0 JNZ 0x00173b5e MOV RDI,qword ptr [RBP + -0x20] XOR ESI,ESI CALL 0x00135c40 LAB_00173b5e: JMP 0x00173b60 LAB_00173b60: CALL 0x001f6090 MOV dword ptr [RAX],0x89 MOV dword ptr [RBP + -0x14],0x89 JMP 0x00173cc4 LAB_00173b77: MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x98],RCX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x50] ADD RCX,qword ptr [RAX + 0x3a0] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0xa0],RCX CMP dword ptr [RBP + -0x40],0x0 JNZ 0x00173bc5 MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x30] CALL 0x001738b0 MOV dword ptr [RBP + -0x3c],EAX MOV EAX,dword ptr [RBP + -0x3c] MOV dword ptr [RBP + -0x14],EAX JMP 0x00173cc4 LAB_00173bc5: MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x4b8 MOV RSI,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RAX + 0x398] CALL 0x00173d50 MOV dword ptr [RBP + -0x3c],EAX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x3a0] MOV RCX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RCX] CMP RAX,qword ptr [RCX + 0x398] JZ 0x00173c3e CMP dword ptr [RBP + -0x3c],0x0 JNZ 0x00173c3e MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x4b8 LEA RSI,[RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x3a0] MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] SUB RDX,qword ptr [RAX + 0x398] CALL 0x00173d50 MOV dword ptr [RBP + -0x3c],EAX LAB_00173c3e: CMP dword ptr [RBP + -0x38],0x0 JZ 0x00173c4f MOV RDI,qword ptr [RBP + -0x20] XOR ESI,ESI CALL 0x00135c40 LAB_00173c4f: CMP dword ptr [RBP + -0x3c],0x0 JNZ 0x00173c93 MOV RAX,qword ptr [RBP + -0x28] CMP byte ptr [RAX],0x0 JNZ 0x00173c74 JMP 0x00173c60 LAB_00173c60: CALL 0x001f6090 MOV dword ptr [RAX],0x86 MOV dword ptr [RBP + -0x14],0x86 JMP 0x00173cc4 LAB_00173c74: MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX + 0x624] OR ECX,0x82 MOV dword ptr [RAX + 0x624],ECX MOV dword ptr [RBP + -0x14],0x0 JMP 0x00173cc4 LAB_00173c93: MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX + 0x59c],-0x1 JNZ 0x00173caa CALL 0x001f6090 CMP dword ptr [RAX],0x0 JNZ 0x00173cb8 LAB_00173caa: MOV RDI,qword ptr [RBP + -0x20] MOV ESI,0x7f CALL 0x00133880 LAB_00173cb8: JMP 0x00173cba LAB_00173cba: CALL 0x001f6090 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x14],EAX LAB_00173cc4: MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x5c],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00173ce5 MOV EAX,dword ptr [RBP + -0x5c] ADD RSP,0x60 POP RBP RET LAB_00173ce5: CALL 0x0012a270
int4 _ma_read_rnd_static_record(long *param_1,char *param_2,ulong param_3,char param_4) { long lVar1; bool bVar2; bool bVar3; int iVar4; ulong uVar5; int4 *puVar6; int *piVar7; long in_FS_OFFSET; uint local_4c; int local_44; int4 local_1c; int1 local_18 [8]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); lVar1 = *param_1; bVar3 = false; local_4c = 0; if ((*(uint *)((long)param_1 + 0x61c) & 2) != 0) { uVar5 = my_b_tell(param_1 + 0x97); if ((param_3 == uVar5) && ((param_4 != '\0' || (param_3 == 0)))) { bVar3 = true; local_4c = (int)param_1[0x9a] - (int)param_1[0x99]; } else { *(int4 *)(param_1 + 0xb3) = 1; } } bVar2 = false; if (*(int *)((long)param_1 + 0x664) == 2) { if (param_3 < *(ulong *)(param_1[4] + 0x28)) { if (((!bVar3) || ((ulong)local_4c < *(ulong *)(lVar1 + 0x398))) && (*(int *)(lVar1 + 0x7b8) == 0)) { bVar2 = true; } } else { iVar4 = _ma_readinfo(param_1,0); if (iVar4 != 0) { puVar6 = (int4 *)_my_thread_var(); local_1c = *puVar6; goto LAB_00173cc4; } bVar2 = true; } } if (param_3 < *(ulong *)(param_1[4] + 0x28)) { param_1[0x13] = param_3; param_1[0x14] = param_3 + *(long *)(lVar1 + 0x3a0); if (bVar3) { local_44 = my_b_read(param_1 + 0x97,param_2,*(int8 *)(lVar1 + 0x398)); if ((*(long *)(*param_1 + 0x3a0) != *(long *)(*param_1 + 0x398)) && (local_44 == 0)) { local_44 = my_b_read(param_1 + 0x97,local_18, *(long *)(*param_1 + 0x3a0) - *(long *)(*param_1 + 0x398)); } if (bVar2) { _ma_writeinfo(param_1,0); } if (local_44 == 0) { if (*param_2 == '\0') { puVar6 = (int4 *)_my_thread_var(); *puVar6 = 0x86; local_1c = 0x86; } else { *(uint *)((long)param_1 + 0x624) = *(uint *)((long)param_1 + 0x624) | 0x82; local_1c = 0; } } else { if ((*(int *)((long)param_1 + 0x59c) != -1) || (piVar7 = (int *)_my_thread_var(), *piVar7 == 0)) { _ma_set_fatal_error(param_1,0x7f); } puVar6 = (int4 *)_my_thread_var(); local_1c = *puVar6; } } else { local_1c = _ma_read_static_record(param_1,param_2,param_3); } } else { if (*(int *)(*param_1 + 0x7b8) == 0) { _ma_writeinfo(param_1,0); } puVar6 = (int4 *)_my_thread_var(); *puVar6 = 0x89; local_1c = 0x89; } LAB_00173cc4: if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_1c; }
34,052
ma_bitmap_reset_cache
eloqsql/storage/maria/ma_bitmap.c
void _ma_bitmap_reset_cache(MARIA_SHARE *share) { MARIA_FILE_BITMAP *bitmap= &share->bitmap; if (bitmap->map) /* If using bitmap */ { /* Forget changes in current bitmap page */ bitmap->changed= 0; /* We can't read a page yet, as in some case we don't have an active page cache yet. Pretend we have a dummy, full and not changed bitmap page in memory. We set bitmap->page to a value so that if we use it in move_to_next_bitmap() it will point to page 0. (This can only happen if writing to a bitmap page fails) */ bitmap->page= ((pgcache_page_no_t) 0) - bitmap->pages_covered; bitmap->used_size= bitmap->total_size= bitmap->max_total_size; bitmap->full_head_size= bitmap->full_tail_size= bitmap->max_total_size; bfill(bitmap->map, share->block_size, 255); #ifndef DBUG_OFF memcpy(bitmap->map + bitmap->block_size, bitmap->map, bitmap->block_size); #endif /* Start scanning for free space from start of file */ share->state.first_bitmap_with_space = 0; } }
O3
c
ma_bitmap_reset_cache: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx movq 0xa18(%rdi), %rdi testq %rdi, %rdi je 0x539d8 movb $0x0, 0xa30(%rbx) xorl %eax, %eax subq 0xb48(%rbx), %rax movq %rax, 0xa20(%rbx) movl 0xb3c(%rbx), %eax movl %eax, 0xb38(%rbx) movl %eax, 0xa34(%rbx) movl %eax, 0xa3c(%rbx) movl %eax, 0xa38(%rbx) movl 0x7bc(%rbx), %edx movl $0xff, %esi callq 0x292a0 movq $0x0, 0xd0(%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
_ma_bitmap_reset_cache: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi mov rdi, [rdi+0A18h] test rdi, rdi jz short loc_539D8 mov byte ptr [rbx+0A30h], 0 xor eax, eax sub rax, [rbx+0B48h] mov [rbx+0A20h], rax mov eax, [rbx+0B3Ch] mov [rbx+0B38h], eax mov [rbx+0A34h], eax mov [rbx+0A3Ch], eax mov [rbx+0A38h], eax mov edx, [rbx+7BCh] mov esi, 0FFh call _memset mov qword ptr [rbx+0D0h], 0 loc_539D8: add rsp, 8 pop rbx pop rbp retn
long long ma_bitmap_reset_cache(long long a1) { long long v2; // rdi int v3; // eax long long result; // rax v2 = *(_QWORD *)(a1 + 2584); if ( v2 ) { *(_BYTE *)(a1 + 2608) = 0; *(_QWORD *)(a1 + 2592) = -*(_QWORD *)(a1 + 2888); v3 = *(_DWORD *)(a1 + 2876); *(_DWORD *)(a1 + 2872) = v3; *(_DWORD *)(a1 + 2612) = v3; *(_DWORD *)(a1 + 2620) = v3; *(_DWORD *)(a1 + 2616) = v3; result = memset(v2, 255LL, *(unsigned int *)(a1 + 1980)); *(_QWORD *)(a1 + 208) = 0LL; } return result; }
_ma_bitmap_reset_cache: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0xa18] TEST RDI,RDI JZ 0x001539d8 MOV byte ptr [RBX + 0xa30],0x0 XOR EAX,EAX SUB RAX,qword ptr [RBX + 0xb48] MOV qword ptr [RBX + 0xa20],RAX MOV EAX,dword ptr [RBX + 0xb3c] MOV dword ptr [RBX + 0xb38],EAX MOV dword ptr [RBX + 0xa34],EAX MOV dword ptr [RBX + 0xa3c],EAX MOV dword ptr [RBX + 0xa38],EAX MOV EDX,dword ptr [RBX + 0x7bc] MOV ESI,0xff CALL 0x001292a0 MOV qword ptr [RBX + 0xd0],0x0 LAB_001539d8: ADD RSP,0x8 POP RBX POP RBP RET
void _ma_bitmap_reset_cache(long param_1) { int4 uVar1; if (*(void **)(param_1 + 0xa18) != (void *)0x0) { *(int1 *)(param_1 + 0xa30) = 0; *(long *)(param_1 + 0xa20) = -*(long *)(param_1 + 0xb48); uVar1 = *(int4 *)(param_1 + 0xb3c); *(int4 *)(param_1 + 0xb38) = uVar1; *(int4 *)(param_1 + 0xa34) = uVar1; *(int4 *)(param_1 + 0xa3c) = uVar1; *(int4 *)(param_1 + 0xa38) = uVar1; memset(*(void **)(param_1 + 0xa18),0xff,(ulong)*(uint *)(param_1 + 0x7bc)); *(int8 *)(param_1 + 0xd0) = 0; } return; }
34,053
ma_unlock_key_del
eloqsql/storage/maria/ma_key_recover.c
void _ma_unlock_key_del(MARIA_HA *info) { DBUG_ASSERT(info->key_del_used); if (info->key_del_used == 1) /* Ignore insert-with-append */ { MARIA_SHARE *share= info->s; mysql_mutex_lock(&share->key_del_lock); share->key_del_used= 0; share->state.key_del= share->key_del_current; mysql_mutex_unlock(&share->key_del_lock); mysql_cond_signal(&share->key_del_cond); } info->key_del_used= 0; }
O0
c
ma_unlock_key_del: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) jmp 0x447ee movq -0x8(%rbp), %rax movzbl 0x67e(%rax), %eax cmpl $0x1, %eax jne 0x44866 movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rdi addq $0x938, %rdi # imm = 0x938 leaq 0x114a54(%rip), %rsi # 0x15926f movl $0x59a, %edx # imm = 0x59A callq 0x42130 movq -0x10(%rbp), %rax movb $0x0, 0x7e9(%rax) movq -0x10(%rbp), %rax movq 0x700(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x120(%rax) movq -0x10(%rbp), %rdi addq $0x938, %rdi # imm = 0x938 callq 0x421a0 movq -0x10(%rbp), %rdi addq $0x980, %rdi # imm = 0x980 callq 0x44880 movq -0x8(%rbp), %rax movb $0x0, 0x67e(%rax) addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
_ma_unlock_key_del: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi jmp short $+2 loc_447EE: mov rax, [rbp+var_8] movzx eax, byte ptr [rax+67Eh] cmp eax, 1 jnz short loc_44866 mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_10], rax mov rdi, [rbp+var_10] add rdi, 938h lea rsi, aWorkspaceLlm4b_7; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 59Ah call inline_mysql_mutex_lock_3 mov rax, [rbp+var_10] mov byte ptr [rax+7E9h], 0 mov rax, [rbp+var_10] mov rcx, [rax+700h] mov rax, [rbp+var_10] mov [rax+120h], rcx mov rdi, [rbp+var_10] add rdi, 938h call inline_mysql_mutex_unlock_3 mov rdi, [rbp+var_10] add rdi, 980h call inline_mysql_cond_signal loc_44866: mov rax, [rbp+var_8] mov byte ptr [rax+67Eh], 0 add rsp, 10h pop rbp retn
long long * ma_unlock_key_del(long long *a1) { long long *result; // rax long long v2; // [rsp+0h] [rbp-10h] if ( *((_BYTE *)a1 + 1662) == 1 ) { v2 = *a1; inline_mysql_mutex_lock_3( *a1 + 2360, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_key_recover.c", 0x59Au); *(_BYTE *)(v2 + 2025) = 0; *(_QWORD *)(v2 + 288) = *(_QWORD *)(v2 + 1792); inline_mysql_mutex_unlock_3(v2 + 2360); inline_mysql_cond_signal(v2 + 2432); } result = a1; *((_BYTE *)a1 + 1662) = 0; return result; }
_ma_unlock_key_del: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI JMP 0x001447ee LAB_001447ee: MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x67e] CMP EAX,0x1 JNZ 0x00144866 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x938 LEA RSI,[0x25926f] MOV EDX,0x59a CALL 0x00142130 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x7e9],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x700] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x120],RCX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x938 CALL 0x001421a0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x980 CALL 0x00144880 LAB_00144866: MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x67e],0x0 ADD RSP,0x10 POP RBP RET
void _ma_unlock_key_del(long *param_1) { long lVar1; if (*(char *)((long)param_1 + 0x67e) == '\x01') { lVar1 = *param_1; inline_mysql_mutex_lock (lVar1 + 0x938, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_key_recover.c",0x59a); *(int1 *)(lVar1 + 0x7e9) = 0; *(int8 *)(lVar1 + 0x120) = *(int8 *)(lVar1 + 0x700); inline_mysql_mutex_unlock(lVar1 + 0x938); inline_mysql_cond_signal(lVar1 + 0x980); } *(int1 *)((long)param_1 + 0x67e) = 0; return; }
34,054
llm_tokenizer_spm_session::tokenize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<int, std::allocator<int>>&)
monkey531[P]llama/src/llama-vocab.cpp
void tokenize(const std::string & text, std::vector<llama_token> & output) { // split string into utf8 chars int index = 0; size_t offs = 0; while (offs < text.size()) { llm_symbol sym; size_t len = unicode_len_utf8(text[offs]); sym.text = text.c_str() + offs; sym.n = std::min(len, text.size() - offs); offs += sym.n; sym.prev = index - 1; sym.next = offs == text.size() ? -1 : index + 1; index++; symbols.emplace_back(sym); } // seed the work queue with all possible 2-character tokens. for (int i = 1; i < (int) symbols.size(); ++i) { try_add_bigram(i - 1, i); } // keep substituting the highest frequency pairs for as long as we can. while (!work_queue.empty()) { auto bigram = work_queue.top(); work_queue.pop(); auto & left_sym = symbols[bigram.left]; auto & right_sym = symbols[bigram.right]; // if one of the symbols already got merged, skip it. if (left_sym.n == 0 || right_sym.n == 0 || left_sym.n + right_sym.n != bigram.size) { continue; } // merge the right sym into the left one left_sym.n += right_sym.n; right_sym.n = 0; //LLAMA_LOG_INFO("left = '%*s' size = %zu\n", (int) left_sym.n, left_sym.text, bigram.size); // remove the right sym from the chain left_sym.next = right_sym.next; if (right_sym.next >= 0) { symbols[right_sym.next].prev = bigram.left; } // find more substitutions try_add_bigram(left_sym.prev, bigram.left); try_add_bigram(bigram.left, left_sym.next); } for (int i = 0; i != -1; i = symbols[i].next) { auto & symbol = symbols[i]; resegment(symbol, output); } }
O1
cpp
llm_tokenizer_spm_session::tokenize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<int, std::allocator<int>>&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %rbx movq %rdi, %r14 cmpq $0x0, 0x8(%rsi) je 0xed956 movq %rsi, %r15 leaq 0x8(%r14), %rax movq %rax, 0x20(%rsp) movl $0x1, %ebp xorl %r12d, %r12d movq %r12, %r13 movq (%r15), %rax movsbl (%rax,%r12), %edi callq 0x6ce30 movq (%r15), %rcx addq %r12, %rcx movq %rcx, 0x10(%rsp) movq 0x8(%r15), %rcx movq %rcx, %r12 subq %r13, %r12 cmpq %rax, %r12 cmovaeq %rax, %r12 movq %r12, 0x18(%rsp) addq %r13, %r12 leal -0x2(%rbp), %eax movl %eax, 0x8(%rsp) cmpq %rcx, %r12 movl %ebp, %eax movl $0xffffffff, %ecx # imm = 0xFFFFFFFF cmovel %ecx, %eax movl %eax, 0xc(%rsp) movq 0x10(%r14), %rsi cmpq 0x18(%r14), %rsi je 0xed93b movq 0x18(%rsp), %rax movq %rax, 0x10(%rsi) movups 0x8(%rsp), %xmm0 movups %xmm0, (%rsi) addq $0x18, 0x10(%r14) jmp 0xed94a movq 0x20(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x65e60 incl %ebp cmpq 0x8(%r15), %r12 jb 0xed8cd movq 0x10(%r14), %rax subq 0x8(%r14), %rax shrq $0x3, %rax imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB cmpl $0x2, %eax jl 0xed99c movl $0x1, %r15d leal -0x1(%r15), %esi movq %r14, %rdi movl %r15d, %edx callq 0x67850 movq 0x10(%r14), %rax subq 0x8(%r14), %rax incl %r15d shrq $0x3, %rax imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB cmpl %eax, %r15d jl 0xed973 movq 0x20(%r14), %rax cmpq 0x28(%r14), %rax je 0xeda47 leaq 0x20(%r14), %r15 movslq (%rax), %r12 movslq 0x4(%rax), %rbp movq 0x10(%rax), %r13 movq %r15, %rdi callq 0x698f0 movq 0x8(%r14), %rax leaq (%r12,%r12,2), %rcx movq 0x10(%rax,%rcx,8), %rsi testq %rsi, %rsi je 0xeda39 leaq (,%rbp,2), %rdx addq %rbp, %rdx leaq (%rax,%rdx,8), %rdx movq 0x10(%rdx), %rdi testq %rdi, %rdi je 0xeda39 addq %rsi, %rdi cmpq %r13, %rdi jne 0xeda39 leaq (%rax,%rcx,8), %r13 movq %rdi, 0x10(%r13) movq $0x0, 0x10(%rdx) movl 0x4(%rdx), %ecx movl %ecx, 0x4(%r13) movslq 0x4(%rdx), %rcx testq %rcx, %rcx js 0xeda1b leaq (%rcx,%rcx,2), %rcx movl %r12d, (%rax,%rcx,8) movl (%r13), %esi movq %r14, %rdi movl %r12d, %edx callq 0x67850 movl 0x4(%r13), %edx movq %r14, %rdi movl %r12d, %esi callq 0x67850 movq 0x20(%r14), %rax cmpq 0x28(%r14), %rax jne 0xed9ae xorl %eax, %eax cltq shlq $0x3, %rax leaq (%rax,%rax,2), %r15 movq 0x8(%r14), %rsi addq %r15, %rsi movq %r14, %rdi movq %rbx, %rdx callq 0x6ae90 movq 0x8(%r14), %rax movl 0x4(%rax,%r15), %eax cmpl $-0x1, %eax jne 0xeda49 addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN25llm_tokenizer_spm_session8tokenizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt6vectorIiSaIiEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdx mov r14, rdi cmp qword ptr [rsi+8], 0 jz loc_ED956 mov r15, rsi lea rax, [r14+8] mov [rsp+58h+var_38], rax mov ebp, 1 xor r12d, r12d loc_ED8CD: mov r13, r12 mov rax, [r15] movsx edi, byte ptr [rax+r12]; char call __Z16unicode_len_utf8c; unicode_len_utf8(char) mov rcx, [r15] add rcx, r12 mov [rsp+58h+var_50+8], rcx; __int64 mov rcx, [r15+8] mov r12, rcx sub r12, r13 cmp r12, rax cmovnb r12, rax mov [rsp+58h+var_40], r12 add r12, r13 lea eax, [rbp-2] mov dword ptr [rsp+58h+var_50], eax; int cmp r12, rcx mov eax, ebp mov ecx, 0FFFFFFFFh cmovz eax, ecx mov dword ptr [rsp+58h+var_50+4], eax mov rsi, [r14+10h] cmp rsi, [r14+18h] jz short loc_ED93B mov rax, [rsp+58h+var_40] mov [rsi+10h], rax movups xmm0, xmmword ptr [rsp+58h+var_50] movups xmmword ptr [rsi], xmm0 add qword ptr [r14+10h], 18h jmp short loc_ED94A loc_ED93B: mov rdi, [rsp+58h+var_38] lea rdx, [rsp+58h+var_50] call __ZNSt6vectorI10llm_symbolSaIS0_EE17_M_realloc_insertIJRS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_; std::vector<llm_symbol>::_M_realloc_insert<llm_symbol&>(__gnu_cxx::__normal_iterator<llm_symbol*,std::vector<llm_symbol>>,llm_symbol&) loc_ED94A: inc ebp cmp r12, [r15+8] jb loc_ED8CD loc_ED956: mov rax, [r14+10h] sub rax, [r14+8] shr rax, 3 imul eax, 0AAAAAAABh cmp eax, 2 jl short loc_ED99C mov r15d, 1 loc_ED973: lea esi, [r15-1]; int mov rdi, r14; this mov edx, r15d; int call __ZN25llm_tokenizer_spm_session14try_add_bigramEii; llm_tokenizer_spm_session::try_add_bigram(int,int) mov rax, [r14+10h] sub rax, [r14+8] inc r15d shr rax, 3 imul eax, 0AAAAAAABh cmp r15d, eax jl short loc_ED973 loc_ED99C: mov rax, [r14+20h] cmp rax, [r14+28h] jz loc_EDA47 lea r15, [r14+20h] loc_ED9AE: movsxd r12, dword ptr [rax] movsxd rbp, dword ptr [rax+4] mov r13, [rax+10h] mov rdi, r15 call __ZNSt14priority_queueI14llm_bigram_spmSt6vectorIS0_SaIS0_EENS0_10comparatorEE3popEv; std::priority_queue<llm_bigram_spm,std::vector<llm_bigram_spm>,llm_bigram_spm::comparator>::pop(void) mov rax, [r14+8] lea rcx, [r12+r12*2] mov rsi, [rax+rcx*8+10h] test rsi, rsi jz short loc_EDA39 lea rdx, ds:0[rbp*2] add rdx, rbp lea rdx, [rax+rdx*8] mov rdi, [rdx+10h] test rdi, rdi jz short loc_EDA39 add rdi, rsi cmp rdi, r13 jnz short loc_EDA39 lea r13, [rax+rcx*8] mov [r13+10h], rdi mov qword ptr [rdx+10h], 0 mov ecx, [rdx+4] mov [r13+4], ecx movsxd rcx, dword ptr [rdx+4] test rcx, rcx js short loc_EDA1B lea rcx, [rcx+rcx*2] mov [rax+rcx*8], r12d loc_EDA1B: mov esi, [r13+0]; int mov rdi, r14; this mov edx, r12d; int call __ZN25llm_tokenizer_spm_session14try_add_bigramEii; llm_tokenizer_spm_session::try_add_bigram(int,int) mov edx, [r13+4]; int mov rdi, r14; this mov esi, r12d; int call __ZN25llm_tokenizer_spm_session14try_add_bigramEii; llm_tokenizer_spm_session::try_add_bigram(int,int) loc_EDA39: mov rax, [r14+20h] cmp rax, [r14+28h] jnz loc_ED9AE loc_EDA47: xor eax, eax loc_EDA49: cdqe shl rax, 3 lea r15, [rax+rax*2] mov rsi, [r14+8] add rsi, r15; int mov rdi, r14; int mov rdx, rbx; int call __ZN25llm_tokenizer_spm_session9resegmentER10llm_symbolRSt6vectorIiSaIiEE; llm_tokenizer_spm_session::resegment(llm_symbol &,std::vector<int> &) mov rax, [r14+8] mov eax, [rax+r15+4] cmp eax, 0FFFFFFFFh jnz short loc_EDA49 add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long llm_tokenizer_spm_session::tokenize( llm_tokenizer_spm_session *a1, _QWORD *a2, int a3, int a4, int a5, int a6) { int v9; // ebp unsigned long long v10; // r12 unsigned long long v11; // r13 unsigned long long v12; // rax long long v13; // rcx unsigned long long v14; // r12 bool v15; // zf int v16; // eax long long v17; // rsi int v18; // r15d int *i; // rax long long v20; // r12 long long v21; // rbp long long v22; // r13 long long v23; // rax long long v24; // rsi long long v25; // rdx long long v26; // rdi long long v27; // rdi long long v28; // r13 long long v29; // rcx long long result; // rax long long v31; // r15 void *v32; // [rsp+0h] [rbp-58h] long long v33[2]; // [rsp+8h] [rbp-50h] BYREF unsigned long long v34; // [rsp+18h] [rbp-40h] _QWORD *v35; // [rsp+20h] [rbp-38h] if ( a2[1] ) { v35 = (_QWORD *)((char *)a1 + 8); v9 = 1; v10 = 0LL; do { v11 = v10; v12 = unicode_len_utf8(*(_BYTE *)(*a2 + v10)); v33[1] = v10 + *a2; v13 = a2[1]; v14 = v13 - v10; if ( v14 >= v12 ) v14 = v12; v34 = v14; v10 = v11 + v14; LODWORD(v33[0]) = v9 - 2; v15 = v10 == v13; v16 = v9; a4 = -1; if ( v15 ) v16 = -1; HIDWORD(v33[0]) = v16; v17 = *((_QWORD *)a1 + 2); if ( v17 == *((_QWORD *)a1 + 3) ) { std::vector<llm_symbol>::_M_realloc_insert<llm_symbol&>(v35, v17, v33); } else { *(_QWORD *)(v17 + 16) = v34; *(_OWORD *)v17 = *(_OWORD *)v33; *((_QWORD *)a1 + 2) += 24LL; } ++v9; } while ( v10 < a2[1] ); } if ( (int)(-1431655765 * ((*((_QWORD *)a1 + 2) - *((_QWORD *)a1 + 1)) >> 3)) >= 2 ) { v18 = 1; do { llm_tokenizer_spm_session::try_add_bigram(a1, v18 - 1, v18); ++v18; } while ( v18 < (int)(-1431655765 * ((*((_QWORD *)a1 + 2) - *((_QWORD *)a1 + 1)) >> 3)) ); } for ( i = (int *)*((_QWORD *)a1 + 4); i != *((int **)a1 + 5); i = (int *)*((_QWORD *)a1 + 4) ) { v20 = *i; v21 = i[1]; v22 = *((_QWORD *)i + 2); std::priority_queue<llm_bigram_spm,std::vector<llm_bigram_spm>,llm_bigram_spm::comparator>::pop((char *)a1 + 32); v23 = *((_QWORD *)a1 + 1); a4 = 3 * v20; v24 = *(_QWORD *)(v23 + 24 * v20 + 16); if ( v24 ) { v25 = v23 + 24 * v21; v26 = *(_QWORD *)(v25 + 16); if ( v26 ) { v27 = v24 + v26; if ( v27 == v22 ) { v28 = v23 + 24 * v20; *(_QWORD *)(v28 + 16) = v27; *(_QWORD *)(v25 + 16) = 0LL; *(_DWORD *)(v28 + 4) = *(_DWORD *)(v25 + 4); v29 = *(int *)(v25 + 4); if ( v29 >= 0 ) *(_DWORD *)(v23 + 24 * v29) = v20; llm_tokenizer_spm_session::try_add_bigram(a1, *(_DWORD *)v28, v20); llm_tokenizer_spm_session::try_add_bigram(a1, v20, *(_DWORD *)(v28 + 4)); } } } } LODWORD(result) = 0; do { v31 = 24LL * (int)result; llm_tokenizer_spm_session::resegment((int)a1, v31 + *((_DWORD *)a1 + 2), a3, a4, a5, a6, v32, v33[0], v33[1]); result = *(unsigned int *)(*((_QWORD *)a1 + 1) + v31 + 4); } while ( (_DWORD)result != -1 ); return result; }
tokenize: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDX MOV R14,RDI CMP qword ptr [RSI + 0x8],0x0 JZ 0x001ed956 MOV R15,RSI LEA RAX,[R14 + 0x8] MOV qword ptr [RSP + 0x20],RAX MOV EBP,0x1 XOR R12D,R12D LAB_001ed8cd: MOV R13,R12 MOV RAX,qword ptr [R15] MOVSX EDI,byte ptr [RAX + R12*0x1] CALL 0x0016ce30 MOV RCX,qword ptr [R15] ADD RCX,R12 MOV qword ptr [RSP + 0x10],RCX MOV RCX,qword ptr [R15 + 0x8] MOV R12,RCX SUB R12,R13 CMP R12,RAX CMOVNC R12,RAX MOV qword ptr [RSP + 0x18],R12 ADD R12,R13 LEA EAX,[RBP + -0x2] MOV dword ptr [RSP + 0x8],EAX CMP R12,RCX MOV EAX,EBP MOV ECX,0xffffffff CMOVZ EAX,ECX MOV dword ptr [RSP + 0xc],EAX MOV RSI,qword ptr [R14 + 0x10] CMP RSI,qword ptr [R14 + 0x18] JZ 0x001ed93b MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSI + 0x10],RAX MOVUPS XMM0,xmmword ptr [RSP + 0x8] MOVUPS xmmword ptr [RSI],XMM0 ADD qword ptr [R14 + 0x10],0x18 JMP 0x001ed94a LAB_001ed93b: MOV RDI,qword ptr [RSP + 0x20] LEA RDX,[RSP + 0x8] CALL 0x00165e60 LAB_001ed94a: INC EBP CMP R12,qword ptr [R15 + 0x8] JC 0x001ed8cd LAB_001ed956: MOV RAX,qword ptr [R14 + 0x10] SUB RAX,qword ptr [R14 + 0x8] SHR RAX,0x3 IMUL EAX,EAX,-0x55555555 CMP EAX,0x2 JL 0x001ed99c MOV R15D,0x1 LAB_001ed973: LEA ESI,[R15 + -0x1] MOV RDI,R14 MOV EDX,R15D CALL 0x00167850 MOV RAX,qword ptr [R14 + 0x10] SUB RAX,qword ptr [R14 + 0x8] INC R15D SHR RAX,0x3 IMUL EAX,EAX,-0x55555555 CMP R15D,EAX JL 0x001ed973 LAB_001ed99c: MOV RAX,qword ptr [R14 + 0x20] CMP RAX,qword ptr [R14 + 0x28] JZ 0x001eda47 LEA R15,[R14 + 0x20] LAB_001ed9ae: MOVSXD R12,dword ptr [RAX] MOVSXD RBP,dword ptr [RAX + 0x4] MOV R13,qword ptr [RAX + 0x10] MOV RDI,R15 CALL 0x001698f0 MOV RAX,qword ptr [R14 + 0x8] LEA RCX,[R12 + R12*0x2] MOV RSI,qword ptr [RAX + RCX*0x8 + 0x10] TEST RSI,RSI JZ 0x001eda39 LEA RDX,[RBP*0x2] ADD RDX,RBP LEA RDX,[RAX + RDX*0x8] MOV RDI,qword ptr [RDX + 0x10] TEST RDI,RDI JZ 0x001eda39 ADD RDI,RSI CMP RDI,R13 JNZ 0x001eda39 LEA R13,[RAX + RCX*0x8] MOV qword ptr [R13 + 0x10],RDI MOV qword ptr [RDX + 0x10],0x0 MOV ECX,dword ptr [RDX + 0x4] MOV dword ptr [R13 + 0x4],ECX MOVSXD RCX,dword ptr [RDX + 0x4] TEST RCX,RCX JS 0x001eda1b LEA RCX,[RCX + RCX*0x2] MOV dword ptr [RAX + RCX*0x8],R12D LAB_001eda1b: MOV ESI,dword ptr [R13] MOV RDI,R14 MOV EDX,R12D CALL 0x00167850 MOV EDX,dword ptr [R13 + 0x4] MOV RDI,R14 MOV ESI,R12D CALL 0x00167850 LAB_001eda39: MOV RAX,qword ptr [R14 + 0x20] CMP RAX,qword ptr [R14 + 0x28] JNZ 0x001ed9ae LAB_001eda47: XOR EAX,EAX LAB_001eda49: CDQE SHL RAX,0x3 LEA R15,[RAX + RAX*0x2] MOV RSI,qword ptr [R14 + 0x8] ADD RSI,R15 MOV RDI,R14 MOV RDX,RBX CALL 0x0016ae90 MOV RAX,qword ptr [R14 + 0x8] MOV EAX,dword ptr [RAX + R15*0x1 + 0x4] CMP EAX,-0x1 JNZ 0x001eda49 ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* llm_tokenizer_spm_session::tokenize(std::__cxx11::string const&, std::vector<int, std::allocator<int> >&) */ void __thiscall llm_tokenizer_spm_session::tokenize(llm_tokenizer_spm_session *this,string *param_1,vector *param_2) { long lVar1; int8 *puVar2; long lVar3; long lVar4; int iVar5; ulong uVar6; int *piVar7; int iVar8; long lVar9; ulong uVar10; int local_50; int iStack_4c; long lStack_48; ulong local_40; llm_tokenizer_spm_session *local_38; if (*(long *)(param_1 + 8) != 0) { local_38 = this + 8; iVar8 = 1; uVar10 = 0; do { uVar6 = unicode_len_utf8(*(char *)(*(long *)param_1 + uVar10)); lStack_48 = *(long *)param_1 + uVar10; local_40 = *(ulong *)(param_1 + 8) - uVar10; if (uVar6 <= local_40) { local_40 = uVar6; } uVar10 = local_40 + uVar10; local_50 = iVar8 + -2; iStack_4c = iVar8; if (uVar10 == *(ulong *)(param_1 + 8)) { iStack_4c = -1; } puVar2 = *(int8 **)(this + 0x10); if (puVar2 == *(int8 **)(this + 0x18)) { std::vector<llm_symbol,std::allocator<llm_symbol>>::_M_realloc_insert<llm_symbol&> ((vector<llm_symbol,std::allocator<llm_symbol>> *)local_38,puVar2,&local_50); } else { puVar2[2] = local_40; *puVar2 = CONCAT44(iStack_4c,local_50); puVar2[1] = lStack_48; *(long *)(this + 0x10) = *(long *)(this + 0x10) + 0x18; } iVar8 = iVar8 + 1; } while (uVar10 < *(ulong *)(param_1 + 8)); } if (1 < (int)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3) * -0x55555555) { iVar8 = 1; do { try_add_bigram(this,iVar8 + -1,iVar8); iVar8 = iVar8 + 1; iVar5 = (int)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3); } while (SBORROW4(iVar8,iVar5 * -0x55555555) != iVar8 + iVar5 * 0x55555555 < 0); } piVar7 = *(int **)(this + 0x20); if (piVar7 != *(int **)(this + 0x28)) { do { iVar8 = *piVar7; iVar5 = piVar7[1]; lVar3 = *(long *)(piVar7 + 4); std:: priority_queue<llm_bigram_spm,std::vector<llm_bigram_spm,std::allocator<llm_bigram_spm>>,llm_bigram_spm::comparator> ::pop((priority_queue<llm_bigram_spm,std::vector<llm_bigram_spm,std::allocator<llm_bigram_spm>>,llm_bigram_spm::comparator> *)(this + 0x20)); lVar4 = *(long *)(this + 8); lVar9 = *(long *)(lVar4 + 0x10 + (long)iVar8 * 0x18); if (lVar9 != 0) { lVar1 = lVar4 + (long)iVar5 * 0x18; if ((*(long *)(lVar1 + 0x10) != 0) && (lVar9 = *(long *)(lVar1 + 0x10) + lVar9, lVar9 == lVar3)) { piVar7 = (int *)(lVar4 + (long)iVar8 * 0x18); *(long *)(piVar7 + 4) = lVar9; *(int8 *)(lVar1 + 0x10) = 0; piVar7[1] = *(int *)(lVar1 + 4); if (-1 < (long)*(int *)(lVar1 + 4)) { *(int *)(lVar4 + (long)*(int *)(lVar1 + 4) * 0x18) = iVar8; } try_add_bigram(this,*piVar7,iVar8); try_add_bigram(this,iVar8,piVar7[1]); } } piVar7 = *(int **)(this + 0x20); } while (piVar7 != *(int **)(this + 0x28)); } iVar8 = 0; do { resegment(this,(llm_symbol *)(*(long *)(this + 8) + (long)iVar8 * 0x18),param_2); iVar8 = *(int *)(*(long *)(this + 8) + 4 + (long)iVar8 * 0x18); } while (iVar8 != -1); return; }
34,055
unpack_filename
eloqsql/mysys/mf_pack.c
size_t unpack_filename(char * to, const char *from) { size_t length, n_length, buff_length; char buff[FN_REFLEN + 1]; DBUG_ENTER("unpack_filename"); length=dirname_part(buff, from, &buff_length);/* copy & convert dirname */ n_length=unpack_dirname(buff,buff); if (n_length+strlen(from+length) < FN_REFLEN) { (void) strmov(buff+n_length,from+length); length= system_filename(to,buff); /* Fix to usably filename */ } else length= system_filename(to,from); /* Fix to usably filename */ DBUG_RETURN(length); }
O3
c
unpack_filename: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x220, %rsp # imm = 0x220 movq %rsi, %r14 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x28(%rbp) leaq -0x230(%rbp), %r12 leaq -0x238(%rbp), %rdx movq %r12, %rdi callq 0x44ce9 movq %rax, %r15 movq %r12, %rdi movq %r12, %rsi callq 0x4b156 movq %rax, %r12 addq %r14, %r15 movq %r15, %rdi callq 0x26150 addq %r12, %rax cmpq $0x1ff, %rax # imm = 0x1FF ja 0x4b378 leaq (%r12,%rbp), %rdi addq $-0x230, %rdi # imm = 0xFDD0 movq %r15, %rsi callq 0x262f0 leaq -0x230(%rbp), %rsi movl $0x1ff, %edx # imm = 0x1FF movq %rbx, %rdi jmp 0x4b383 movl $0x1ff, %edx # imm = 0x1FF movq %rbx, %rdi movq %r14, %rsi callq 0x79f68 movq %fs:0x28, %rcx cmpq -0x28(%rbp), %rcx jne 0x4b3aa subq %rbx, %rax addq $0x220, %rsp # imm = 0x220 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x263a0 nop
unpack_filename: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 220h mov r14, rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_28], rax lea r12, [rbp+var_230] lea rdx, [rbp+var_238] mov rdi, r12 call dirname_part mov r15, rax mov rdi, r12 mov rsi, r12 call unpack_dirname mov r12, rax add r15, r14 mov rdi, r15 call _strlen add rax, r12 cmp rax, 1FFh ja short loc_4B378 lea rdi, [r12+rbp] add rdi, 0FFFFFFFFFFFFFDD0h mov rsi, r15 call _strcpy lea rsi, [rbp+var_230] mov edx, 1FFh mov rdi, rbx jmp short loc_4B383 loc_4B378: mov edx, 1FFh mov rdi, rbx mov rsi, r14 loc_4B383: call strmake mov rcx, fs:28h cmp rcx, [rbp+var_28] jnz short loc_4B3AA sub rax, rbx add rsp, 220h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_4B3AA: call ___stack_chk_fail
long long unpack_filename(long long a1, _BYTE *a2) { long long v2; // r15 long long v3; // r12 _BYTE *v4; // r15 long long v6; // [rsp+8h] [rbp-238h] BYREF _BYTE v7[520]; // [rsp+10h] [rbp-230h] BYREF unsigned long long v8; // [rsp+218h] [rbp-28h] v8 = __readfsqword(0x28u); v2 = dirname_part((long long)v7, a2, &v6); v3 = unpack_dirname((long long)v7, v7); v4 = &a2[v2]; if ( (unsigned long long)(v3 + strlen(v4)) <= 0x1FF ) { strcpy(&v7[v3], v4); a2 = v7; } return strmake(a1, a2, 511LL) - a1; }
unpack_filename: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x220 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX LEA R12,[RBP + -0x230] LEA RDX,[RBP + -0x238] MOV RDI,R12 CALL 0x00144ce9 MOV R15,RAX MOV RDI,R12 MOV RSI,R12 CALL 0x0014b156 MOV R12,RAX ADD R15,R14 MOV RDI,R15 CALL 0x00126150 ADD RAX,R12 CMP RAX,0x1ff JA 0x0014b378 LEA RDI,[R12 + RBP*0x1] ADD RDI,-0x230 MOV RSI,R15 CALL 0x001262f0 LEA RSI,[RBP + -0x230] MOV EDX,0x1ff MOV RDI,RBX JMP 0x0014b383 LAB_0014b378: MOV EDX,0x1ff MOV RDI,RBX MOV RSI,R14 LAB_0014b383: CALL 0x00179f68 MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x28] JNZ 0x0014b3aa SUB RAX,RBX ADD RSP,0x220 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0014b3aa: CALL 0x001263a0
long unpack_filename(long param_1,char *param_2) { long lVar1; long lVar2; size_t sVar3; long in_FS_OFFSET; int1 local_240 [8]; char local_238 [520]; long local_30; local_30 = *(long *)(in_FS_OFFSET + 0x28); lVar1 = dirname_part(local_238,param_2,local_240); lVar2 = unpack_dirname(local_238,local_238); sVar3 = strlen(param_2 + lVar1); if (sVar3 + lVar2 < 0x200) { strcpy(local_238 + lVar2,param_2 + lVar1); param_2 = local_238; } lVar1 = strmake(param_1,param_2,0x1ff); if (*(long *)(in_FS_OFFSET + 0x28) != local_30) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return lVar1 - param_1; }
34,056
w_search
eloqsql/storage/maria/ma_write.c
static int w_search(register MARIA_HA *info, uint32 comp_flag, MARIA_KEY *key, my_off_t page_pos, MARIA_PAGE *father_page, uchar *father_keypos, my_bool insert_last) { int error,flag; uchar *temp_buff,*keypos,*keybuff; my_bool was_last_key, buff_alloced; my_off_t next_page, dup_key_pos; MARIA_SHARE *share= info->s; MARIA_KEYDEF *keyinfo= key->keyinfo; MARIA_PAGE page; DBUG_ENTER("w_search"); DBUG_PRINT("enter", ("page: %lu", (ulong) (page_pos/keyinfo->block_length))); alloc_on_stack(*info->stack_end_ptr, temp_buff, buff_alloced, (keyinfo->block_length + keyinfo->max_store_length*3)); if (!temp_buff) DBUG_RETURN(1); keybuff= temp_buff + (keyinfo->block_length + keyinfo->max_store_length*2); if (_ma_fetch_keypage(&page, info, keyinfo, page_pos, PAGECACHE_LOCK_WRITE, DFLT_INIT_HITS, temp_buff, 0)) goto err; flag= (*keyinfo->bin_search)(key, &page, comp_flag, &keypos, keybuff, &was_last_key); if (flag == 0) { MARIA_KEY tmp_key; /* get position to record with duplicated key */ tmp_key.keyinfo= keyinfo; tmp_key.data= keybuff; if ((*keyinfo->get_key)(&tmp_key, page.flag, page.node, &keypos)) dup_key_pos= _ma_row_pos_from_key(&tmp_key); else dup_key_pos= HA_OFFSET_ERROR; if (keyinfo->flag & HA_FULLTEXT) { uint off; int subkeys; get_key_full_length_rdonly(off, keybuff); subkeys=ft_sintXkorr(keybuff+off); comp_flag=SEARCH_SAME; if (subkeys >= 0) { /* normal word, one-level tree structure */ flag=(*keyinfo->bin_search)(key, &page, comp_flag, &keypos, keybuff, &was_last_key); } else { /* popular word. two-level tree. going down */ my_off_t root= dup_key_pos; MARIA_KEY subkey; get_key_full_length_rdonly(off, key->data); subkey.keyinfo= keyinfo= &share->ft2_keyinfo; subkey.data= key->data + off; subkey.data_length= key->data_length - off; subkey.ref_length= key->ref_length; subkey.flag= key->flag; /* we'll modify key entry 'in vivo' */ keypos-= keyinfo->keylength + page.node; error= _ma_ck_real_write_btree(info, &subkey, &root, comp_flag); _ma_dpointer(share, keypos+HA_FT_WLEN, root); subkeys--; /* should there be underflow protection ? */ DBUG_ASSERT(subkeys < 0); ft_intXstore(keypos, subkeys); if (!error) { page_mark_changed(info, &page); if (_ma_write_keypage(&page, PAGECACHE_LOCK_LEFT_WRITELOCKED, DFLT_INIT_HITS)) goto err; } stack_alloc_free(temp_buff, buff_alloced); DBUG_RETURN(error); } } else /* not HA_FULLTEXT, normal HA_NOSAME key */ { /* TODO When the index will support true versioning - with multiple identical values in the UNIQUE index, invisible to each other - the following should be changed to "continue inserting keys, at the end (of the row or statement) wait". We need to wait on *all* unique conflicts at once, not one-at-a-time, because we need to know all blockers in advance, otherwise we'll have incomplete wait-for graph. */ /* transaction that has inserted the conflicting key may be in progress. the caller will wait for it to be committed or aborted. */ info->dup_key_trid= _ma_trid_from_key(&tmp_key); info->dup_key_pos= dup_key_pos; my_errno= HA_ERR_FOUND_DUPP_KEY; DBUG_PRINT("warning", ("Duplicate key. dup_key_trid: %lu pos %lu visible: %d", (ulong) info->dup_key_trid, (ulong) info->dup_key_pos, info->trn ? trnman_can_read_from(info->trn, info->dup_key_trid) : 2)); goto err; } } if (flag == MARIA_FOUND_WRONG_KEY) { my_errno= HA_ERR_CRASHED; goto err; } if (!was_last_key) insert_last=0; next_page= _ma_kpos(page.node, keypos); if (next_page == HA_OFFSET_ERROR || (error= w_search(info, comp_flag, key, next_page, &page, keypos, insert_last)) > 0) { error= _ma_insert(info, key, &page, keypos, keybuff, father_page, father_keypos, insert_last); if (error < 0) goto err; page_mark_changed(info, &page); if (_ma_write_keypage(&page, PAGECACHE_LOCK_LEFT_WRITELOCKED, DFLT_INIT_HITS)) goto err; } stack_alloc_free(temp_buff, buff_alloced); DBUG_RETURN(error); err: stack_alloc_free(temp_buff, buff_alloced); DBUG_PRINT("exit",("Error: %d",my_errno)); DBUG_RETURN(-1); }
O3
c
w_search: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp movq %r9, -0x68(%rbp) movq %r8, -0x60(%rbp) movq %rcx, %r12 movl %esi, -0x48(%rbp) movq %rdi, %r14 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq (%rdi), %rax movq %rax, -0x58(%rbp) movq %rdx, -0x70(%rbp) movq 0x8(%rdx), %r13 movzwl 0xa6(%r13), %r15d movzwl 0xb0(%r13), %ebx leaq (%rbx,%rbx,2), %rsi addq %r15, %rsi leaq -0xb0(%rbp), %rcx movq %rsi, (%rcx) movq 0x78(%rdi), %rax movq (%rax), %rax subq %rcx, %rax subq %rsi, %rax jbe 0x64b1d cmpq $0x10000, %rax # imm = 0x10000 ja 0x64b07 cmpl $0x1000, %esi # imm = 0x1000 jb 0x64b1d cmpq $0x8001, %rax # imm = 0x8001 jb 0x64b1d movq %rsp, %rax addl $0xf, %esi andl $-0x10, %esi subq %rsi, %rax movq %rax, %rsp movb $0x1, %cl movl %ecx, -0x44(%rbp) jmp 0x64b49 movl $0x10010, %edx # imm = 0x10010 xorl %edi, %edi callq 0x9fd89 testq %rax, %rax je 0x64bd3 movzwl 0xa6(%r13), %r15d movzwl 0xb0(%r13), %ebx movl $0x0, -0x44(%rbp) leaq -0xb0(%rbp), %rdi movq %r14, %rsi movq %r13, %rdx movq %r12, %rcx movl $0x4, %r8d movl $0x3, %r9d pushq $0x0 movq %rax, -0x50(%rbp) pushq %rax callq 0x58ed6 addq $0x10, %rsp testb %al, %al je 0x64b90 movl $0xffffffff, %r13d # imm = 0xFFFFFFFF cmpb $0x0, -0x44(%rbp) jne 0x64bd9 movq -0x50(%rbp), %rdi callq 0x9ffb6 jmp 0x64bd9 leaq (%r15,%rbx,2), %r12 addq -0x50(%rbp), %r12 leaq -0xb0(%rbp), %rsi leaq -0x40(%rbp), %rcx leaq -0x31(%rbp), %r9 movq -0x70(%rbp), %r15 movq %r15, %rdi movl -0x48(%rbp), %edx movq %r12, %r8 callq *0xd8(%r13) testl %eax, %eax je 0x64bfe cmpl $0x7fffffff, %eax # imm = 0x7FFFFFFF jne 0x64c3f callq 0xa1afa movl $0x7e, (%rax) jmp 0x64b79 movl $0x1, %r13d movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x64ec3 movl %r13d, %eax leaq -0x28(%rbp), %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq -0xd0(%rbp), %rdi movq %r13, 0x8(%rdi) movq %r12, (%rdi) movl -0x88(%rbp), %edx movl -0x84(%rbp), %esi leaq -0x40(%rbp), %rcx callq *0xe0(%r13) testl %eax, %eax je 0x64cf4 leaq -0xd0(%rbp), %rdi callq 0x5704c movq %rax, %rbx jmp 0x64cfb xorl %eax, %eax cmpb $0x0, -0x31(%rbp) movzbl 0x10(%rbp), %ebx cmovel %eax, %ebx movl -0x88(%rbp), %edi movq -0x40(%rbp), %rsi callq 0x56ee7 movsbl %bl, %ebx cmpq $-0x1, %rax je 0x64c91 movq -0x40(%rbp), %r9 subq $0x8, %rsp leaq -0xb0(%rbp), %r8 movq %r14, %rdi movl -0x48(%rbp), %esi movq %r15, %rdx movq %rax, %rcx pushq %rbx callq 0x64a7e addq $0x10, %rsp testl %eax, %eax jle 0x64d41 movq -0x40(%rbp), %rcx leaq -0xb0(%rbp), %rdx movq %r14, %rdi movq %r15, %rsi movq %r12, %r8 movq -0x60(%rbp), %r9 pushq %rbx pushq -0x68(%rbp) callq 0x651af addq $0x10, %rsp testl %eax, %eax js 0x64b79 movl %eax, %r13d movq 0x2e8(%r14), %rax leaq -0xb0(%rbp), %rdi movl 0x30(%rdi), %ecx leaq (%rcx,%rcx,2), %rcx movb $0x1, 0x10(%rax,%rcx,8) movl $0x2, %esi movl $0x3, %edx callq 0x59015 testb %al, %al jne 0x64b79 jmp 0x64d44 movq $-0x1, %rbx testb $-0x80, 0xa2(%r13) jne 0x64d2f leaq -0xd0(%rbp), %rdi callq 0x57104 movq %rax, 0x430(%r14) movq %rbx, 0x428(%r14) callq 0xa1afa movl $0x79, (%rax) jmp 0x64b79 movzbl (%r12), %eax cmpq $0xff, %rax je 0x64d57 incq %rax jmp 0x64d68 movl %eax, %r13d cmpb $0x0, -0x44(%rbp) movq -0x50(%rbp), %rdi je 0x64b89 jmp 0x64bd9 movzwl 0x1(%r12), %eax rolw $0x8, %ax movzwl %ax, %eax addq $0x3, %rax movzbl (%r12,%rax), %ecx shll $0x18, %ecx js 0x64d9f leaq -0xb0(%rbp), %rsi movl $0x4, -0x48(%rbp) leaq -0x40(%rbp), %rcx leaq -0x31(%rbp), %r9 movq %r15, %rdi movl $0x4, %edx movq %r12, %r8 callq *0xd8(%r13) jmp 0x64bbf movzwl 0x2(%r12,%rax), %edx rolw $0x8, %dx movzwl %dx, %edx movzbl 0x1(%r12,%rax), %r13d shll $0x10, %r13d orl %edx, %r13d orl %ecx, %r13d movq %rbx, -0x78(%rbp) movq (%r15), %rax movzbl (%rax), %ecx cmpl $0xff, %ecx je 0x64dd2 incl %ecx jmp 0x64de0 movzwl 0x1(%rax), %ecx rolw $0x8, %cx movzwl %cx, %ecx addl $0x3, %ecx movq -0x58(%rbp), %rbx leaq 0x458(%rbx), %rdx leaq -0xf0(%rbp), %rsi movq %rdx, 0x8(%rsi) movl %ecx, %edx addq %rdx, %rax movq %rax, (%rsi) movl 0x10(%r15), %eax subl %ecx, %eax movl %eax, 0x10(%rsi) movq 0x14(%r15), %rax movq %rax, 0x14(%rsi) movzwl 0x502(%rbx), %eax addl -0x88(%rbp), %eax subq %rax, -0x40(%rbp) leaq -0x78(%rbp), %r12 movq %r14, %rdi movq %r12, %rdx movl $0x4, %ecx callq 0x64a20 movl %eax, %r15d movq -0x40(%rbp), %rsi addq $0x4, %rsi movq (%r12), %rdx movq %rbx, %rdi callq 0x57230 movl %r13d, %edx decl %edx movq -0x40(%rbp), %rax movb %dl, 0x3(%rax) movq -0x40(%rbp), %rax movb %dh, 0x2(%rax) movl %edx, %eax shrl $0x10, %eax movq -0x40(%rbp), %rcx movb %al, 0x1(%rcx) shrl $0x18, %edx movq -0x40(%rbp), %rax movb %dl, (%rax) testb %r15b, %r15b je 0x64e90 cmpb $0x0, -0x44(%rbp) jne 0x64e87 movq -0x50(%rbp), %rdi callq 0x9ffb6 movzbl %r15b, %r13d jmp 0x64bd9 movq 0x2e8(%r14), %rax leaq -0xb0(%rbp), %rdi movl 0x30(%rdi), %ecx leaq (%rcx,%rcx,2), %rcx movb $0x1, 0x10(%rax,%rcx,8) movl $0x2, %esi movl $0x3, %edx callq 0x59015 testb %al, %al jne 0x64b79 jmp 0x64e78 callq 0x29270
w_search: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 0C8h mov [rbp+var_68], r9 mov [rbp+var_60], r8 mov r12, rcx mov [rbp+var_48], esi mov r14, rdi mov rax, fs:28h mov [rbp+var_30], rax mov rax, [rdi] mov [rbp+var_58], rax mov [rbp+var_70], rdx mov r13, [rdx+8] movzx r15d, word ptr [r13+0A6h] movzx ebx, word ptr [r13+0B0h] lea rsi, [rbx+rbx*2] add rsi, r15 lea rcx, [rbp+var_B0] mov [rcx], rsi mov rax, [rdi+78h] mov rax, [rax] sub rax, rcx sub rax, rsi jbe short loc_64B1D cmp rax, offset stru_10000 ja short loc_64B07 cmp esi, 1000h jb short loc_64B1D cmp rax, 8001h jb short loc_64B1D loc_64B07: mov rax, rsp add esi, 0Fh and esi, 0FFFFFFF0h sub rax, rsi mov rsp, rax mov cl, 1 mov [rbp+var_44], ecx jmp short loc_64B49 loc_64B1D: mov edx, 10010h xor edi, edi call my_malloc test rax, rax jz loc_64BD3 movzx r15d, word ptr [r13+0A6h] movzx ebx, word ptr [r13+0B0h] mov [rbp+var_44], 0 loc_64B49: lea rdi, [rbp+var_B0] mov rsi, r14 mov rdx, r13 mov rcx, r12 mov r8d, 4 mov r9d, 3 push 0 mov [rbp+var_50], rax push rax call _ma_fetch_keypage add rsp, 10h test al, al jz short loc_64B90 loc_64B79: mov r13d, 0FFFFFFFFh cmp byte ptr [rbp+var_44], 0 jnz short loc_64BD9 mov rdi, [rbp+var_50] loc_64B89: call my_free jmp short loc_64BD9 loc_64B90: lea r12, [r15+rbx*2] add r12, [rbp+var_50] lea rsi, [rbp+var_B0] lea rcx, [rbp+var_40] lea r9, [rbp+var_31] mov r15, [rbp+var_70] mov rdi, r15 mov edx, [rbp+var_48] mov r8, r12 call qword ptr [r13+0D8h] test eax, eax jz short loc_64BFE loc_64BBF: cmp eax, 7FFFFFFFh jnz short loc_64C3F call _my_thread_var mov dword ptr [rax], 7Eh ; '~' jmp short loc_64B79 loc_64BD3: mov r13d, 1 loc_64BD9: mov rax, fs:28h cmp rax, [rbp+var_30] jnz loc_64EC3 mov eax, r13d lea rsp, [rbp-28h] pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_64BFE: lea rdi, [rbp+var_D0] mov [rdi+8], r13 mov [rdi], r12 mov edx, [rbp+var_88] mov esi, [rbp+var_84] lea rcx, [rbp+var_40] call qword ptr [r13+0E0h] test eax, eax jz loc_64CF4 lea rdi, [rbp+var_D0] call _ma_row_pos_from_key mov rbx, rax jmp loc_64CFB loc_64C3F: xor eax, eax cmp [rbp+var_31], 0 movzx ebx, [rbp+arg_0] cmovz ebx, eax mov edi, [rbp+var_88] mov rsi, [rbp+var_40] call _ma_kpos movsx ebx, bl cmp rax, 0FFFFFFFFFFFFFFFFh jz short loc_64C91 mov r9, [rbp+var_40] sub rsp, 8 lea r8, [rbp+var_B0] mov rdi, r14 mov esi, [rbp+var_48] mov rdx, r15 mov rcx, rax push rbx call w_search add rsp, 10h test eax, eax jle loc_64D41 loc_64C91: mov rcx, [rbp+var_40] lea rdx, [rbp+var_B0] mov rdi, r14 mov rsi, r15 mov r8, r12 mov r9, [rbp+var_60] push rbx push [rbp+var_68] call _ma_insert add rsp, 10h test eax, eax js loc_64B79 mov r13d, eax mov rax, [r14+2E8h] lea rdi, [rbp+var_B0] mov ecx, [rdi+30h] lea rcx, [rcx+rcx*2] mov byte ptr [rax+rcx*8+10h], 1 mov esi, 2 mov edx, 3 call _ma_write_keypage test al, al jnz loc_64B79 jmp short loc_64D44 loc_64CF4: mov rbx, 0FFFFFFFFFFFFFFFFh loc_64CFB: test byte ptr [r13+0A2h], 80h jnz short loc_64D2F lea rdi, [rbp+var_D0] call _ma_trid_from_key mov [r14+430h], rax mov [r14+428h], rbx call _my_thread_var mov dword ptr [rax], 79h ; 'y' jmp loc_64B79 loc_64D2F: movzx eax, byte ptr [r12] cmp rax, 0FFh jz short loc_64D57 inc rax jmp short loc_64D68 loc_64D41: mov r13d, eax loc_64D44: cmp byte ptr [rbp+var_44], 0 mov rdi, [rbp+var_50] jz loc_64B89 jmp loc_64BD9 loc_64D57: movzx eax, word ptr [r12+1] rol ax, 8 movzx eax, ax add rax, 3 loc_64D68: movzx ecx, byte ptr [r12+rax] shl ecx, 18h js short loc_64D9F lea rsi, [rbp+var_B0] mov [rbp+var_48], 4 lea rcx, [rbp+var_40] lea r9, [rbp+var_31] mov rdi, r15 mov edx, 4 mov r8, r12 call qword ptr [r13+0D8h] jmp loc_64BBF loc_64D9F: movzx edx, word ptr [r12+rax+2] rol dx, 8 movzx edx, dx movzx r13d, byte ptr [r12+rax+1] shl r13d, 10h or r13d, edx or r13d, ecx mov [rbp+var_78], rbx mov rax, [r15] movzx ecx, byte ptr [rax] cmp ecx, 0FFh jz short loc_64DD2 inc ecx jmp short loc_64DE0 loc_64DD2: movzx ecx, word ptr [rax+1] rol cx, 8 movzx ecx, cx add ecx, 3 loc_64DE0: mov rbx, [rbp+var_58] lea rdx, [rbx+458h] lea rsi, [rbp+var_F0] mov [rsi+8], rdx mov edx, ecx add rax, rdx mov [rsi], rax mov eax, [r15+10h] sub eax, ecx mov [rsi+10h], eax mov rax, [r15+14h] mov [rsi+14h], rax movzx eax, word ptr [rbx+502h] add eax, [rbp+var_88] sub [rbp+var_40], rax lea r12, [rbp+var_78] mov rdi, r14 mov rdx, r12 mov ecx, 4 call _ma_ck_real_write_btree mov r15d, eax mov rsi, [rbp+var_40] add rsi, 4 mov rdx, [r12] mov rdi, rbx call _ma_dpointer mov edx, r13d dec edx mov rax, [rbp+var_40] mov [rax+3], dl mov rax, [rbp+var_40] mov [rax+2], dh mov eax, edx shr eax, 10h mov rcx, [rbp+var_40] mov [rcx+1], al shr edx, 18h mov rax, [rbp+var_40] mov [rax], dl test r15b, r15b jz short loc_64E90 loc_64E78: cmp byte ptr [rbp+var_44], 0 jnz short loc_64E87 mov rdi, [rbp+var_50] call my_free loc_64E87: movzx r13d, r15b jmp loc_64BD9 loc_64E90: mov rax, [r14+2E8h] lea rdi, [rbp+var_B0] mov ecx, [rdi+30h] lea rcx, [rcx+rcx*2] mov byte ptr [rax+rcx*8+10h], 1 mov esi, 2 mov edx, 3 call _ma_write_keypage test al, al jnz loc_64B79 jmp short loc_64E78 loc_64EC3: call ___stack_chk_fail
long long w_search( long long a1, unsigned int a2, unsigned __int8 **a3, unsigned long long a4, long long a5, long long a6, char a7) { long long v9; // r13 long long v10; // r15 long long v11; // rbx long long *v12; // rsi long long **v13; // rcx unsigned long long v14; // rax bool v15; // cc unsigned long long v16; // rax char *v17; // rax unsigned int v18; // r13d char *v19; // rdi unsigned __int8 *v20; // r12 unsigned __int8 **v21; // r15 unsigned __int8 **v22; // rdi int v23; // eax const char *v25; // rsi long long v26; // rbx long long v28; // rax int v29; // eax int v30; // eax long long v31; // rax long long v32; // rax int v33; // r13d unsigned __int8 *v34; // rax int v35; // ecx unsigned int v36; // ecx long long v37; // rbx bool v38; // r15 _QWORD v39[2]; // [rsp+0h] [rbp-F0h] BYREF unsigned int v40; // [rsp+10h] [rbp-E0h] long long v41; // [rsp+14h] [rbp-DCh] long long v42[4]; // [rsp+20h] [rbp-D0h] BYREF long long *v43[5]; // [rsp+40h] [rbp-B0h] BYREF unsigned int v44; // [rsp+68h] [rbp-88h] unsigned int v45; // [rsp+6Ch] [rbp-84h] unsigned int v46; // [rsp+70h] [rbp-80h] long long v47; // [rsp+78h] [rbp-78h] BYREF unsigned __int8 **v48; // [rsp+80h] [rbp-70h] long long v49; // [rsp+88h] [rbp-68h] long long v50; // [rsp+90h] [rbp-60h] long long v51; // [rsp+98h] [rbp-58h] char *v52; // [rsp+A0h] [rbp-50h] unsigned int v53; // [rsp+A8h] [rbp-48h] int v54; // [rsp+ACh] [rbp-44h] _BYTE *v55; // [rsp+B0h] [rbp-40h] BYREF char v56; // [rsp+BFh] [rbp-31h] BYREF unsigned long long v57; // [rsp+C0h] [rbp-30h] v49 = a6; v50 = a5; v53 = a2; v57 = __readfsqword(0x28u); v51 = *(_QWORD *)a1; v48 = a3; v9 = (long long)a3[1]; v10 = *(unsigned __int16 *)(v9 + 166); v11 = *(unsigned __int16 *)(v9 + 176); v12 = (long long *)(v10 + 3 * v11); v13 = v43; v43[0] = v12; v14 = **(_QWORD **)(a1 + 120) - (_QWORD)v43; v15 = v14 <= (unsigned long long)v12; v16 = v14 - (_QWORD)v12; if ( v15 || v16 <= (unsigned long long)&stru_10000 && ((unsigned int)v12 < 0x1000 || v16 < 0x8001) ) { v17 = (char *)my_malloc(0LL, v12, 65552LL); if ( !v17 ) return 1; v10 = *(unsigned __int16 *)(v9 + 166); v11 = *(unsigned __int16 *)(v9 + 176); v54 = 0; } else { v17 = (char *)v39 - (((_DWORD)v12 + 15) & 0xFFFFFFF0); LOBYTE(v13) = 1; v54 = (int)v13; } v52 = v17; if ( ma_fetch_keypage((long long)v43, a1, v9, a4, 4u, 3, (long long)v17) ) goto LABEL_9; v20 = (unsigned __int8 *)&v52[2 * v11 + v10]; v21 = v48; v22 = v48; v23 = (*(long long ( **)(unsigned __int8 **, long long **, _QWORD, _BYTE **, unsigned __int8 *, char *))(v9 + 216))( v48, v43, v53, &v55, v20, &v56); if ( v23 ) { LABEL_13: if ( v23 == 0x7FFFFFFF ) { *(_DWORD *)my_thread_var(v22, (const char *)v43) = 126; goto LABEL_9; } if ( !v56 ) a7 = 0; v28 = ma_kpos(v44, (long long)v55); if ( v28 == -1 || (v29 = w_search(a1, v53, (_DWORD)v21, v28, (unsigned int)v43, (_DWORD)v55, a7), v29 > 0) ) { v30 = ma_insert(a1, (_DWORD)v21, (unsigned int)v43, (_DWORD)v55, (_DWORD)v20, v50, v49, a7); if ( v30 < 0 ) goto LABEL_9; v18 = v30; *(_BYTE *)(*(_QWORD *)(a1 + 744) + 24LL * v46 + 16) = 1; if ( (unsigned __int8)ma_write_keypage(v43, 2u, 3) ) goto LABEL_9; } else { v18 = v29; } v19 = v52; if ( (_BYTE)v54 ) return v18; goto LABEL_11; } v42[1] = v9; v42[0] = (long long)v20; v25 = (const char *)v45; if ( (*(unsigned int ( **)(long long *, _QWORD, _QWORD, _BYTE **))(v9 + 224))(v42, v45, v44, &v55) ) v26 = ma_row_pos_from_key(v42); else v26 = -1LL; if ( *(char *)(v9 + 162) >= 0 ) { *(_QWORD *)(a1 + 1072) = ma_trid_from_key((long long)v42); *(_QWORD *)(a1 + 1064) = v26; *(_DWORD *)my_thread_var(v42, v25) = 121; goto LABEL_9; } v31 = *v20; if ( v31 == 255 ) v32 = (unsigned __int16)__ROL2__(*(_WORD *)(v20 + 1), 8) + 3LL; else v32 = v31 + 1; if ( (v20[v32] & 0x80) == 0 ) { v53 = 4; v22 = v21; v23 = (*(long long ( **)(unsigned __int8 **, long long **, long long, _BYTE **, unsigned __int8 *, char *))(v9 + 216))( v21, v43, 4LL, &v55, v20, &v56); goto LABEL_13; } v33 = (v20[v32] << 24) | (unsigned __int16)__ROL2__(*(_WORD *)&v20[v32 + 2], 8) | (v20[v32 + 1] << 16); v47 = v26; v34 = *v21; v35 = **v21; if ( v35 == 255 ) v36 = (unsigned __int16)__ROL2__(*(_WORD *)(v34 + 1), 8) + 3; else v36 = v35 + 1; v37 = v51; v39[1] = v51 + 1112; v39[0] = &v34[v36]; v40 = *((_DWORD *)v21 + 4) - v36; v41 = *(long long *)((char *)v21 + 20); v55 += -v44 - *(unsigned __int16 *)(v51 + 1282); v38 = ma_ck_real_write_btree(a1, (long long)v39, &v47, 4); ma_dpointer(v37, (long long)(v55 + 4), v47); v55[3] = v33 - 1; v55[2] = (unsigned __int16)(v33 - 1) >> 8; v55[1] = (unsigned int)(v33 - 1) >> 16; *v55 = (unsigned int)(v33 - 1) >> 24; if ( v38 || (*(_BYTE *)(*(_QWORD *)(a1 + 744) + 24LL * v46 + 16) = 1, !(unsigned __int8)ma_write_keypage(v43, 2u, 3)) ) { if ( !(_BYTE)v54 ) my_free(v52); return v38; } LABEL_9: v18 = -1; if ( !(_BYTE)v54 ) { v19 = v52; LABEL_11: my_free(v19); } return v18; }
w_search: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 MOV qword ptr [RBP + -0x68],R9 MOV qword ptr [RBP + -0x60],R8 MOV R12,RCX MOV dword ptr [RBP + -0x48],ESI MOV R14,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RDI] MOV qword ptr [RBP + -0x58],RAX MOV qword ptr [RBP + -0x70],RDX MOV R13,qword ptr [RDX + 0x8] MOVZX R15D,word ptr [R13 + 0xa6] MOVZX EBX,word ptr [R13 + 0xb0] LEA RSI,[RBX + RBX*0x2] ADD RSI,R15 LEA RCX,[RBP + -0xb0] MOV qword ptr [RCX],RSI MOV RAX,qword ptr [RDI + 0x78] MOV RAX,qword ptr [RAX] SUB RAX,RCX SUB RAX,RSI JBE 0x00164b1d CMP RAX,0x10000 JA 0x00164b07 CMP ESI,0x1000 JC 0x00164b1d CMP RAX,0x8001 JC 0x00164b1d LAB_00164b07: MOV RAX,RSP ADD ESI,0xf AND ESI,0xfffffff0 SUB RAX,RSI MOV RSP,RAX MOV CL,0x1 MOV dword ptr [RBP + -0x44],ECX JMP 0x00164b49 LAB_00164b1d: MOV EDX,0x10010 XOR EDI,EDI CALL 0x0019fd89 TEST RAX,RAX JZ 0x00164bd3 MOVZX R15D,word ptr [R13 + 0xa6] MOVZX EBX,word ptr [R13 + 0xb0] MOV dword ptr [RBP + -0x44],0x0 LAB_00164b49: LEA RDI,[RBP + -0xb0] MOV RSI,R14 MOV RDX,R13 MOV RCX,R12 MOV R8D,0x4 MOV R9D,0x3 PUSH 0x0 MOV qword ptr [RBP + -0x50],RAX PUSH RAX CALL 0x00158ed6 ADD RSP,0x10 TEST AL,AL JZ 0x00164b90 LAB_00164b79: MOV R13D,0xffffffff CMP byte ptr [RBP + -0x44],0x0 JNZ 0x00164bd9 MOV RDI,qword ptr [RBP + -0x50] LAB_00164b89: CALL 0x0019ffb6 JMP 0x00164bd9 LAB_00164b90: LEA R12,[R15 + RBX*0x2] ADD R12,qword ptr [RBP + -0x50] LEA RSI,[RBP + -0xb0] LEA RCX,[RBP + -0x40] LEA R9,[RBP + -0x31] MOV R15,qword ptr [RBP + -0x70] MOV RDI,R15 MOV EDX,dword ptr [RBP + -0x48] MOV R8,R12 CALL qword ptr [R13 + 0xd8] TEST EAX,EAX JZ 0x00164bfe LAB_00164bbf: CMP EAX,0x7fffffff JNZ 0x00164c3f CALL 0x001a1afa MOV dword ptr [RAX],0x7e JMP 0x00164b79 LAB_00164bd3: MOV R13D,0x1 LAB_00164bd9: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x00164ec3 MOV EAX,R13D LEA RSP,[RBP + -0x28] POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00164bfe: LEA RDI,[RBP + -0xd0] MOV qword ptr [RDI + 0x8],R13 MOV qword ptr [RDI],R12 MOV EDX,dword ptr [RBP + -0x88] MOV ESI,dword ptr [RBP + -0x84] LEA RCX,[RBP + -0x40] CALL qword ptr [R13 + 0xe0] TEST EAX,EAX JZ 0x00164cf4 LEA RDI,[RBP + -0xd0] CALL 0x0015704c MOV RBX,RAX JMP 0x00164cfb LAB_00164c3f: XOR EAX,EAX CMP byte ptr [RBP + -0x31],0x0 MOVZX EBX,byte ptr [RBP + 0x10] CMOVZ EBX,EAX MOV EDI,dword ptr [RBP + -0x88] MOV RSI,qword ptr [RBP + -0x40] CALL 0x00156ee7 MOVSX EBX,BL CMP RAX,-0x1 JZ 0x00164c91 MOV R9,qword ptr [RBP + -0x40] SUB RSP,0x8 LEA R8,[RBP + -0xb0] MOV RDI,R14 MOV ESI,dword ptr [RBP + -0x48] MOV RDX,R15 MOV RCX,RAX PUSH RBX CALL 0x00164a7e ADD RSP,0x10 TEST EAX,EAX JLE 0x00164d41 LAB_00164c91: MOV RCX,qword ptr [RBP + -0x40] LEA RDX,[RBP + -0xb0] MOV RDI,R14 MOV RSI,R15 MOV R8,R12 MOV R9,qword ptr [RBP + -0x60] PUSH RBX PUSH qword ptr [RBP + -0x68] CALL 0x001651af ADD RSP,0x10 TEST EAX,EAX JS 0x00164b79 MOV R13D,EAX MOV RAX,qword ptr [R14 + 0x2e8] LEA RDI,[RBP + -0xb0] MOV ECX,dword ptr [RDI + 0x30] LEA RCX,[RCX + RCX*0x2] MOV byte ptr [RAX + RCX*0x8 + 0x10],0x1 MOV ESI,0x2 MOV EDX,0x3 CALL 0x00159015 TEST AL,AL JNZ 0x00164b79 JMP 0x00164d44 LAB_00164cf4: MOV RBX,-0x1 LAB_00164cfb: TEST byte ptr [R13 + 0xa2],0x80 JNZ 0x00164d2f LEA RDI,[RBP + -0xd0] CALL 0x00157104 MOV qword ptr [R14 + 0x430],RAX MOV qword ptr [R14 + 0x428],RBX CALL 0x001a1afa MOV dword ptr [RAX],0x79 JMP 0x00164b79 LAB_00164d2f: MOVZX EAX,byte ptr [R12] CMP RAX,0xff JZ 0x00164d57 INC RAX JMP 0x00164d68 LAB_00164d41: MOV R13D,EAX LAB_00164d44: CMP byte ptr [RBP + -0x44],0x0 MOV RDI,qword ptr [RBP + -0x50] JZ 0x00164b89 JMP 0x00164bd9 LAB_00164d57: MOVZX EAX,word ptr [R12 + 0x1] ROL AX,0x8 MOVZX EAX,AX ADD RAX,0x3 LAB_00164d68: MOVZX ECX,byte ptr [R12 + RAX*0x1] SHL ECX,0x18 JS 0x00164d9f LEA RSI,[RBP + -0xb0] MOV dword ptr [RBP + -0x48],0x4 LEA RCX,[RBP + -0x40] LEA R9,[RBP + -0x31] MOV RDI,R15 MOV EDX,0x4 MOV R8,R12 CALL qword ptr [R13 + 0xd8] JMP 0x00164bbf LAB_00164d9f: MOVZX EDX,word ptr [R12 + RAX*0x1 + 0x2] ROL DX,0x8 MOVZX EDX,DX MOVZX R13D,byte ptr [R12 + RAX*0x1 + 0x1] SHL R13D,0x10 OR R13D,EDX OR R13D,ECX MOV qword ptr [RBP + -0x78],RBX MOV RAX,qword ptr [R15] MOVZX ECX,byte ptr [RAX] CMP ECX,0xff JZ 0x00164dd2 INC ECX JMP 0x00164de0 LAB_00164dd2: MOVZX ECX,word ptr [RAX + 0x1] ROL CX,0x8 MOVZX ECX,CX ADD ECX,0x3 LAB_00164de0: MOV RBX,qword ptr [RBP + -0x58] LEA RDX,[RBX + 0x458] LEA RSI,[RBP + -0xf0] MOV qword ptr [RSI + 0x8],RDX MOV EDX,ECX ADD RAX,RDX MOV qword ptr [RSI],RAX MOV EAX,dword ptr [R15 + 0x10] SUB EAX,ECX MOV dword ptr [RSI + 0x10],EAX MOV RAX,qword ptr [R15 + 0x14] MOV qword ptr [RSI + 0x14],RAX MOVZX EAX,word ptr [RBX + 0x502] ADD EAX,dword ptr [RBP + -0x88] SUB qword ptr [RBP + -0x40],RAX LEA R12,[RBP + -0x78] MOV RDI,R14 MOV RDX,R12 MOV ECX,0x4 CALL 0x00164a20 MOV R15D,EAX MOV RSI,qword ptr [RBP + -0x40] ADD RSI,0x4 MOV RDX,qword ptr [R12] MOV RDI,RBX CALL 0x00157230 MOV EDX,R13D DEC EDX MOV RAX,qword ptr [RBP + -0x40] MOV byte ptr [RAX + 0x3],DL MOV RAX,qword ptr [RBP + -0x40] MOV byte ptr [RAX + 0x2],DH MOV EAX,EDX SHR EAX,0x10 MOV RCX,qword ptr [RBP + -0x40] MOV byte ptr [RCX + 0x1],AL SHR EDX,0x18 MOV RAX,qword ptr [RBP + -0x40] MOV byte ptr [RAX],DL TEST R15B,R15B JZ 0x00164e90 LAB_00164e78: CMP byte ptr [RBP + -0x44],0x0 JNZ 0x00164e87 MOV RDI,qword ptr [RBP + -0x50] CALL 0x0019ffb6 LAB_00164e87: MOVZX R13D,R15B JMP 0x00164bd9 LAB_00164e90: MOV RAX,qword ptr [R14 + 0x2e8] LEA RDI,[RBP + -0xb0] MOV ECX,dword ptr [RDI + 0x30] LEA RCX,[RCX + RCX*0x2] MOV byte ptr [RAX + RCX*0x8 + 0x10],0x1 MOV ESI,0x2 MOV EDX,0x3 CALL 0x00159015 TEST AL,AL JNZ 0x00164b79 JMP 0x00164e78 LAB_00164ec3: CALL 0x00129270
uint w_search(long *param_1,int4 param_2,int8 *param_3,int8 param_4, int8 param_5,int8 param_6,char param_7) { byte bVar1; byte bVar2; ushort uVar3; code *pcVar4; int8 *puVar5; int8 uVar6; long lVar7; int4 uVar8; char cVar9; byte bVar10; int iVar11; int iVar12; uint uVar13; ulong uVar14; ulong uVar15; int4 *puVar16; long lVar17; long lVar18; long lVar19; ulong uVar20; byte **ppbVar21; int1 *puVar22; byte *pbVar23; ulong uVar24; long in_FS_OFFSET; byte *local_f8; long local_f0; int local_e8; int8 local_e4; byte *local_d8; long local_d0; ulong local_b8 [5]; int local_90; int4 local_8c; uint local_88; long local_80; int8 *local_78; int8 local_70; int8 local_68; long local_60; int1 *local_58; int4 local_50; int4 local_4c; int1 *local_48; char local_39; long local_38; ppbVar21 = &local_f8; local_38 = *(long *)(in_FS_OFFSET + 0x28); local_60 = *param_1; lVar18 = param_3[1]; uVar24 = (ulong)*(ushort *)(lVar18 + 0xa6); uVar20 = (ulong)*(ushort *)(lVar18 + 0xb0); local_b8[0] = uVar20 * 3 + uVar24; uVar14 = *(long *)param_1[0xf] - (long)local_b8; uVar15 = uVar14 - local_b8[0]; local_78 = param_3; local_70 = param_6; local_68 = param_5; local_50 = param_2; if ((local_b8[0] < uVar14) && ((0x10000 < uVar15 || ((0xfff < (uint)local_b8[0] && (0x8000 < uVar15)))))) { puVar22 = (int1 *)((long)&local_f8 - (ulong)((uint)local_b8[0] + 0xf & 0xfffffff0)); local_4c = (int4)CONCAT71((int7)((ulong)local_b8 >> 8),1); ppbVar21 = (byte **)puVar22; } else { puVar22 = (int1 *)my_malloc(0,local_b8[0],0x10010); if (puVar22 == (int1 *)0x0) { uVar13 = 1; goto LAB_00164bd9; } uVar24 = (ulong)*(ushort *)(lVar18 + 0xa6); uVar20 = (ulong)*(ushort *)(lVar18 + 0xb0); local_4c = 0; ppbVar21 = &local_f8; } *(int8 *)((long)ppbVar21 + -8) = 0; local_58 = puVar22; *(int1 **)((long)ppbVar21 + -0x10) = puVar22; *(int8 *)((long)ppbVar21 + -0x18) = 0x164b71; cVar9 = _ma_fetch_keypage(local_b8,param_1,lVar18,param_4,4,3); uVar8 = local_50; puVar5 = local_78; if (cVar9 == '\0') { pbVar23 = local_58 + uVar24 + uVar20 * 2; pcVar4 = *(code **)(lVar18 + 0xd8); *(int8 *)((long)ppbVar21 + -8) = 0x164bbb; iVar11 = (*pcVar4)(puVar5,local_b8,uVar8,&local_48,pbVar23,&local_39); iVar12 = local_90; if (iVar11 == 0) { pcVar4 = *(code **)(lVar18 + 0xe0); local_d8 = pbVar23; local_d0 = lVar18; *(int8 *)((long)ppbVar21 + -8) = 0x164c23; iVar12 = (*pcVar4)(&local_d8,local_8c,iVar12,&local_48); if (iVar12 == 0) { lVar17 = -1; } else { *(int8 *)((long)ppbVar21 + -8) = 0x164c37; lVar17 = _ma_row_pos_from_key(&local_d8); } lVar7 = local_60; if ((*(byte *)(lVar18 + 0xa2) & 0x80) == 0) { *(int8 *)((long)ppbVar21 + -8) = 0x164d11; lVar18 = _ma_trid_from_key(&local_d8); param_1[0x86] = lVar18; param_1[0x85] = lVar17; *(int8 *)((long)ppbVar21 + -8) = 0x164d24; puVar16 = (int4 *)_my_thread_var(); *puVar16 = 0x79; goto LAB_00164b79; } if ((ulong)*pbVar23 == 0xff) { lVar19 = (ulong)(ushort)(*(ushort *)(pbVar23 + 1) << 8 | *(ushort *)(pbVar23 + 1) >> 8) + 3; } else { lVar19 = (ulong)*pbVar23 + 1; } bVar1 = pbVar23[lVar19]; if ((int)((uint)bVar1 << 0x18) < 0) { uVar3 = *(ushort *)(pbVar23 + lVar19 + 2); bVar2 = pbVar23[lVar19 + 1]; local_f8 = (byte *)*puVar5; if (*local_f8 == 0xff) { uVar13 = (ushort)(*(ushort *)(local_f8 + 1) << 8 | *(ushort *)(local_f8 + 1) >> 8) + 3; } else { uVar13 = *local_f8 + 1; } local_f0 = local_60 + 0x458; local_f8 = local_f8 + uVar13; local_e8 = *(int *)(puVar5 + 2) - uVar13; local_e4 = *(int8 *)((long)puVar5 + 0x14); local_48 = local_48 + -(ulong)((uint)*(ushort *)(local_60 + 0x502) + local_90); local_80 = lVar17; *(int8 *)((long)ppbVar21 + -8) = 0x164e34; bVar10 = _ma_ck_real_write_btree(param_1,&local_f8,&local_80,4); lVar18 = local_80; puVar22 = local_48 + 4; *(int8 *)((long)ppbVar21 + -8) = 0x164e4b; _ma_dpointer(lVar7,puVar22,lVar18); iVar12 = CONCAT13(bVar1,CONCAT12(bVar2,uVar3 << 8 | uVar3 >> 8)) + -1; local_48[3] = (char)iVar12; local_48[2] = (char)((uint)iVar12 >> 8); local_48[1] = (char)((uint)iVar12 >> 0x10); *local_48 = (char)((uint)iVar12 >> 0x18); if (bVar10 == 0) { *(int1 *)(param_1[0x5d] + 0x10 + (ulong)local_88 * 0x18) = 1; *(int8 *)((long)ppbVar21 + -8) = 0x164eb9; cVar9 = _ma_write_keypage(local_b8,2,3); if (cVar9 != '\0') goto LAB_00164b79; } puVar22 = local_58; if ((char)local_4c == '\0') { *(int8 *)((long)ppbVar21 + -8) = 0x164e87; my_free(puVar22); } uVar13 = (uint)bVar10; goto LAB_00164bd9; } local_50 = 4; pcVar4 = *(code **)(lVar18 + 0xd8); *(int8 *)((long)ppbVar21 + -8) = 0x164d9a; iVar11 = (*pcVar4)(puVar5,local_b8,4,&local_48,pbVar23,&local_39); } puVar22 = local_48; if (iVar11 == 0x7fffffff) { *(int8 *)((long)ppbVar21 + -8) = 0x164bcb; puVar16 = (int4 *)_my_thread_var(); *puVar16 = 0x7e; goto LAB_00164b79; } if (local_39 == '\0') { param_7 = '\0'; } *(int8 *)((long)ppbVar21 + -8) = 0x164c5b; lVar18 = _ma_kpos(local_90,puVar22); puVar22 = local_48; uVar8 = local_50; if (lVar18 == -1) { LAB_00164c91: puVar22 = local_48; uVar6 = local_68; *(ulong *)((long)ppbVar21 + -8) = (ulong)(uint)(int)param_7; *(int8 *)((long)ppbVar21 + -0x10) = local_70; *(int8 *)((long)ppbVar21 + -0x18) = 0x164cb2; uVar13 = _ma_insert(param_1,puVar5,local_b8,puVar22,pbVar23,uVar6); if (-1 < (int)uVar13) { *(int1 *)(param_1[0x5d] + 0x10 + (ulong)local_88 * 0x18) = 1; *(int8 *)((long)ppbVar21 + -8) = 0x164cea; cVar9 = _ma_write_keypage(local_b8,2,3); if (cVar9 == '\0') goto LAB_00164d44; } goto LAB_00164b79; } *(ulong *)((long)ppbVar21 + -0x10) = (ulong)(uint)(int)param_7; *(int8 *)((long)ppbVar21 + -0x18) = 0x164c85; uVar13 = w_search(param_1,uVar8,puVar5,lVar18,local_b8,puVar22); if (0 < (int)uVar13) goto LAB_00164c91; LAB_00164d44: puVar22 = local_58; } else { LAB_00164b79: uVar13 = 0xffffffff; puVar22 = local_58; } local_58 = puVar22; if ((char)local_4c == '\0') { *(int8 *)((long)ppbVar21 + -8) = 0x164b8e; my_free(puVar22); } LAB_00164bd9: if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return uVar13; } /* WARNING: Subroutine does not return */ *(code **)((long)ppbVar21 + -8) = _ma_enlarge_root; __stack_chk_fail(); }
34,057
YAML::Node::EnsureNodeExists() const
aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/impl.h
inline void Node::EnsureNodeExists() const { if (!m_isValid) throw InvalidNode(m_invalidKey); if (!m_pNode) { m_pMemory.reset(new detail::memory_holder); m_pNode = &m_pMemory->create_node(); m_pNode->set_null(); } }
O3
c
YAML::Node::EnsureNodeExists() const: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx cmpb $0x0, (%rdi) je 0x4a55a cmpq $0x0, 0x38(%rbx) je 0x4a4d9 addq $0x8, %rsp popq %rbx popq %r14 retq movl $0x10, %edi callq 0x2d270 movq %rax, %r14 movl $0x30, %edi callq 0x2d270 movq %rax, %rcx addq $0x8, %rcx xorps %xmm0, %xmm0 movups %xmm0, (%rax) xorl %edx, %edx movq %rdx, 0x10(%rax) movq %rcx, 0x18(%rax) movq %rcx, 0x20(%rax) movq %rdx, 0x28(%rax) movq %rax, (%r14) movq %r14, %rdi addq $0x8, %rdi movq %rax, %rsi callq 0x4a72c leaq 0x28(%rbx), %rdi movq %r14, %rsi callq 0x4a622 movq 0x28(%rbx), %rax movq (%rax), %rdi callq 0x608ee movq %rax, %r14 movq %rax, 0x38(%rbx) movq %rax, %rdi callq 0x4a856 movq (%r14), %rax movq (%rax), %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x611c6 movl $0x40, %edi callq 0x2c800 movq %rax, %r14 addq $0x8, %rbx movq %rax, %rdi movq %rbx, %rsi callq 0x47084 leaq 0x1bf05b(%rip), %rsi # 0x2095d8 leaq 0x161a8(%rip), %rdx # 0x6072c movq %r14, %rdi callq 0x2e0f0 movq %rax, %rbx movq %r14, %rdi callq 0x2cc80 jmp 0x4a5a9 movq %rax, %rbx movl $0x10, %esi movq %r14, %rdi callq 0x2d2d0 movq %rbx, %rdi callq 0x2e220 nop
_ZNK4YAML4Node16EnsureNodeExistsEv: push r14 push rbx push rax mov rbx, rdi cmp byte ptr [rdi], 0 jz loc_4A55A cmp qword ptr [rbx+38h], 0 jz short loc_4A4D9 add rsp, 8 pop rbx pop r14 retn loc_4A4D9: mov edi, 10h; unsigned __int64 call __Znwm; operator new(ulong) mov r14, rax mov edi, 30h ; '0'; unsigned __int64 call __Znwm; operator new(ulong) mov rcx, rax add rcx, 8 xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 xor edx, edx mov [rax+10h], rdx mov [rax+18h], rcx mov [rax+20h], rcx mov [rax+28h], rdx mov [r14], rax mov rdi, r14 add rdi, 8 mov rsi, rax call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IPN4YAML6detail6memoryEEET_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<YAML::detail::memory *>(YAML::detail::memory *) lea rdi, [rbx+28h] mov rsi, r14 call _ZNSt12__shared_ptrIN4YAML6detail13memory_holderELN9__gnu_cxx12_Lock_policyE2EE5resetIS2_EENSt9enable_ifIXsr21__sp_is_constructibleIS2_T_EE5valueEvE4typeEPS8_ mov rax, [rbx+28h] mov rdi, [rax]; this call _ZN4YAML6detail6memory11create_nodeEv; YAML::detail::memory::create_node(void) mov r14, rax mov [rbx+38h], rax mov rdi, rax; this call _ZN4YAML6detail4node12mark_definedEv; YAML::detail::node::mark_defined(void) mov rax, [r14] mov rdi, [rax]; this add rsp, 8 pop rbx pop r14 jmp _ZN4YAML6detail9node_data8set_nullEv; YAML::detail::node_data::set_null(void) loc_4A55A: mov edi, 40h ; '@'; thrown_size call ___cxa_allocate_exception mov r14, rax add rbx, 8 mov rdi, rax mov rsi, rbx call _ZN4YAML11InvalidNodeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::InvalidNode::InvalidNode(std::string const&) lea rsi, _ZTIN4YAML11InvalidNodeE; lptinfo lea rdx, _ZN4YAML9ExceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_4A5A9 mov rbx, rax mov esi, 10h; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) loc_4A5A9: mov rdi, rbx call __Unwind_Resume
long long YAML::Node::EnsureNodeExists(YAML::detail::memory ***this) { _QWORD *v1; // r14 long long v2; // rax YAML::detail::node *node; // r14 long long result; // rax void *exception; // r14 int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d if ( !*(_BYTE *)this ) { exception = __cxa_allocate_exception(0x40uLL); YAML::InvalidNode::InvalidNode((_DWORD)exception, (_DWORD)this + 8, v6, v7, v8, v9); __cxa_throw(exception, (struct type_info *)&`typeinfo for'YAML::InvalidNode, YAML::Exception::~Exception); } if ( !this[7] ) { v1 = (_QWORD *)operator new(0x10uLL); v2 = operator new(0x30uLL); *(_OWORD *)v2 = 0LL; *(_QWORD *)(v2 + 16) = 0LL; *(_QWORD *)(v2 + 24) = v2 + 8; *(_QWORD *)(v2 + 32) = v2 + 8; *(_QWORD *)(v2 + 40) = 0LL; *v1 = v2; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<YAML::detail::memory *>(v1 + 1, v2); std::__shared_ptr<YAML::detail::memory_holder,(__gnu_cxx::_Lock_policy)2>::reset<YAML::detail::memory_holder>( this + 5, v1); node = (YAML::detail::node *)YAML::detail::memory::create_node(*this[5]); this[7] = (YAML::detail::memory **)node; YAML::detail::node::mark_defined(node); return YAML::detail::node_data::set_null(**(YAML::detail::node_data ***)node); } return result; }
EnsureNodeExists: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CMP byte ptr [RDI],0x0 JZ 0x0014a55a CMP qword ptr [RBX + 0x38],0x0 JZ 0x0014a4d9 ADD RSP,0x8 POP RBX POP R14 RET LAB_0014a4d9: MOV EDI,0x10 CALL 0x0012d270 MOV R14,RAX LAB_0014a4e6: MOV EDI,0x30 CALL 0x0012d270 MOV RCX,RAX ADD RCX,0x8 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 XOR EDX,EDX MOV qword ptr [RAX + 0x10],RDX MOV qword ptr [RAX + 0x18],RCX MOV qword ptr [RAX + 0x20],RCX MOV qword ptr [RAX + 0x28],RDX MOV qword ptr [R14],RAX MOV RDI,R14 ADD RDI,0x8 MOV RSI,RAX CALL 0x0014a72c LAB_0014a521: LEA RDI,[RBX + 0x28] MOV RSI,R14 CALL 0x0014a622 MOV RAX,qword ptr [RBX + 0x28] MOV RDI,qword ptr [RAX] CALL 0x001608ee MOV R14,RAX MOV qword ptr [RBX + 0x38],RAX MOV RDI,RAX CALL 0x0014a856 MOV RAX,qword ptr [R14] MOV RDI,qword ptr [RAX] ADD RSP,0x8 POP RBX POP R14 JMP 0x001611c6 LAB_0014a55a: MOV EDI,0x40 CALL 0x0012c800 MOV R14,RAX ADD RBX,0x8 LAB_0014a56b: MOV RDI,RAX MOV RSI,RBX CALL 0x00147084 LAB_0014a576: LEA RSI,[0x3095d8] LEA RDX,[0x16072c] MOV RDI,R14 CALL 0x0012e0f0
/* YAML::Node::EnsureNodeExists() const */ void __thiscall YAML::Node::EnsureNodeExists(Node *this) { memory_holder *pmVar1; memory *pmVar2; node *this_00; InvalidNode *this_01; if (*this == (Node)0x0) { this_01 = (InvalidNode *)__cxa_allocate_exception(0x40); /* try { // try from 0014a56b to 0014a575 has its CatchHandler @ 0014a58c */ InvalidNode::InvalidNode(this_01,(string *)(this + 8)); /* WARNING: Subroutine does not return */ __cxa_throw(this_01,&InvalidNode::typeinfo,BadInsert::~BadInsert); } if (*(long *)(this + 0x38) != 0) { return; } pmVar1 = (memory_holder *)operator_new(0x10); /* try { // try from 0014a4e6 to 0014a520 has its CatchHandler @ 0014a599 */ pmVar2 = (memory *)operator_new(0x30); *(int8 *)pmVar2 = 0; *(int8 *)(pmVar2 + 8) = 0; *(int8 *)(pmVar2 + 0x10) = 0; *(memory **)(pmVar2 + 0x18) = pmVar2 + 8; *(memory **)(pmVar2 + 0x20) = pmVar2 + 8; *(int8 *)(pmVar2 + 0x28) = 0; *(memory **)pmVar1 = pmVar2; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<YAML::detail::memory*> ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(pmVar1 + 8),pmVar2); std::__shared_ptr<YAML::detail::memory_holder,(__gnu_cxx::_Lock_policy)2>:: reset<YAML::detail::memory_holder> ((__shared_ptr<YAML::detail::memory_holder,(__gnu_cxx::_Lock_policy)2> *)(this + 0x28), pmVar1); this_00 = (node *)detail::memory::create_node((memory *)**(int8 **)(this + 0x28)); *(node **)(this + 0x38) = this_00; detail::node::mark_defined(this_00); detail::node_data::set_null((node_data *)**(int8 **)this_00); return; }
34,058
check_mb_ujis
eloqsql/libmariadb/libmariadb/ma_charset.c
static unsigned int check_mb_ujis(const char *start, const char *end) { if (*(uchar*)start < 0x80) { return 0; /* invalid ujis character */ } if (valid_ujis(*(start)) && valid_ujis(*((start)+1))) { return 2; } if (valid_ujis_ss2(*(start)) && valid_ujis_kata(*((start)+1))) { return 2; } if (valid_ujis_ss3(*(start)) && (end-start) > 2 && valid_ujis(*((start)+1)) && valid_ujis(*((start)+2))) { return 3; } return 0; }
O0
c
check_mb_ujis: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movzbl (%rax), %eax cmpl $0x80, %eax jge 0x43086 movl $0x0, -0x4(%rbp) jmp 0x431ba movq -0x10(%rbp), %rax movsbl (%rax), %ecx andl $0xff, %ecx movl $0xa1, %eax cmpl %ecx, %eax jg 0x430e6 movq -0x10(%rbp), %rax movsbl (%rax), %eax andl $0xff, %eax cmpl $0xfe, %eax jg 0x430e6 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %ecx andl $0xff, %ecx movl $0xa1, %eax cmpl %ecx, %eax jg 0x430e6 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %eax andl $0xff, %eax cmpl $0xfe, %eax jg 0x430e6 movl $0x2, -0x4(%rbp) jmp 0x431ba movq -0x10(%rbp), %rax movsbl (%rax), %eax andl $0xff, %eax cmpl $0x8e, %eax jne 0x43130 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %ecx andl $0xff, %ecx movl $0xa1, %eax cmpl %ecx, %eax jg 0x43130 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %eax andl $0xff, %eax cmpl $0xdf, %eax jg 0x43130 movl $0x2, -0x4(%rbp) jmp 0x431ba movq -0x10(%rbp), %rax movsbl (%rax), %eax andl $0xff, %eax cmpl $0x8f, %eax jne 0x431b3 movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx subq %rcx, %rax cmpq $0x2, %rax jle 0x431b3 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %ecx andl $0xff, %ecx movl $0xa1, %eax cmpl %ecx, %eax jg 0x431b3 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %eax andl $0xff, %eax cmpl $0xfe, %eax jg 0x431b3 movq -0x10(%rbp), %rax movsbl 0x2(%rax), %ecx andl $0xff, %ecx movl $0xa1, %eax cmpl %ecx, %eax jg 0x431b3 movq -0x10(%rbp), %rax movsbl 0x2(%rax), %eax andl $0xff, %eax cmpl $0xfe, %eax jg 0x431b3 movl $0x3, -0x4(%rbp) jmp 0x431ba movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nop
check_mb_ujis: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] movzx eax, byte ptr [rax] cmp eax, 80h jge short loc_43086 mov [rbp+var_4], 0 jmp loc_431BA loc_43086: mov rax, [rbp+var_10] movsx ecx, byte ptr [rax] and ecx, 0FFh mov eax, 0A1h cmp eax, ecx jg short loc_430E6 mov rax, [rbp+var_10] movsx eax, byte ptr [rax] and eax, 0FFh cmp eax, 0FEh jg short loc_430E6 mov rax, [rbp+var_10] movsx ecx, byte ptr [rax+1] and ecx, 0FFh mov eax, 0A1h cmp eax, ecx jg short loc_430E6 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+1] and eax, 0FFh cmp eax, 0FEh jg short loc_430E6 mov [rbp+var_4], 2 jmp loc_431BA loc_430E6: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] and eax, 0FFh cmp eax, 8Eh jnz short loc_43130 mov rax, [rbp+var_10] movsx ecx, byte ptr [rax+1] and ecx, 0FFh mov eax, 0A1h cmp eax, ecx jg short loc_43130 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+1] and eax, 0FFh cmp eax, 0DFh jg short loc_43130 mov [rbp+var_4], 2 jmp loc_431BA loc_43130: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] and eax, 0FFh cmp eax, 8Fh jnz short loc_431B3 mov rax, [rbp+var_18] mov rcx, [rbp+var_10] sub rax, rcx cmp rax, 2 jle short loc_431B3 mov rax, [rbp+var_10] movsx ecx, byte ptr [rax+1] and ecx, 0FFh mov eax, 0A1h cmp eax, ecx jg short loc_431B3 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+1] and eax, 0FFh cmp eax, 0FEh jg short loc_431B3 mov rax, [rbp+var_10] movsx ecx, byte ptr [rax+2] and ecx, 0FFh mov eax, 0A1h cmp eax, ecx jg short loc_431B3 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+2] and eax, 0FFh cmp eax, 0FEh jg short loc_431B3 mov [rbp+var_4], 3 jmp short loc_431BA loc_431B3: mov [rbp+var_4], 0 loc_431BA: mov eax, [rbp+var_4] pop rbp retn
long long check_mb_ujis(unsigned __int8 *a1, long long a2) { if ( *a1 >= 0x80u ) { if ( *a1 < 0xA1u || *a1 == 255 || a1[1] < 0xA1u || a1[1] == 255 ) { if ( *a1 == 142 && a1[1] >= 0xA1u && a1[1] <= 0xDFu ) { return 2; } else if ( *a1 != 143 || a2 - (long long)a1 <= 2 || a1[1] < 0xA1u || a1[1] == 255 || a1[2] < 0xA1u || a1[2] == 255 ) { return 0; } else { return 3; } } else { return 2; } } else { return 0; } }
check_mb_ujis: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX] CMP EAX,0x80 JGE 0x00143086 MOV dword ptr [RBP + -0x4],0x0 JMP 0x001431ba LAB_00143086: MOV RAX,qword ptr [RBP + -0x10] MOVSX ECX,byte ptr [RAX] AND ECX,0xff MOV EAX,0xa1 CMP EAX,ECX JG 0x001430e6 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] AND EAX,0xff CMP EAX,0xfe JG 0x001430e6 MOV RAX,qword ptr [RBP + -0x10] MOVSX ECX,byte ptr [RAX + 0x1] AND ECX,0xff MOV EAX,0xa1 CMP EAX,ECX JG 0x001430e6 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x1] AND EAX,0xff CMP EAX,0xfe JG 0x001430e6 MOV dword ptr [RBP + -0x4],0x2 JMP 0x001431ba LAB_001430e6: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] AND EAX,0xff CMP EAX,0x8e JNZ 0x00143130 MOV RAX,qword ptr [RBP + -0x10] MOVSX ECX,byte ptr [RAX + 0x1] AND ECX,0xff MOV EAX,0xa1 CMP EAX,ECX JG 0x00143130 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x1] AND EAX,0xff CMP EAX,0xdf JG 0x00143130 MOV dword ptr [RBP + -0x4],0x2 JMP 0x001431ba LAB_00143130: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] AND EAX,0xff CMP EAX,0x8f JNZ 0x001431b3 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,RCX CMP RAX,0x2 JLE 0x001431b3 MOV RAX,qword ptr [RBP + -0x10] MOVSX ECX,byte ptr [RAX + 0x1] AND ECX,0xff MOV EAX,0xa1 CMP EAX,ECX JG 0x001431b3 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x1] AND EAX,0xff CMP EAX,0xfe JG 0x001431b3 MOV RAX,qword ptr [RBP + -0x10] MOVSX ECX,byte ptr [RAX + 0x2] AND ECX,0xff MOV EAX,0xa1 CMP EAX,ECX JG 0x001431b3 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x2] AND EAX,0xff CMP EAX,0xfe JG 0x001431b3 MOV dword ptr [RBP + -0x4],0x3 JMP 0x001431ba LAB_001431b3: MOV dword ptr [RBP + -0x4],0x0 LAB_001431ba: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 check_mb_ujis(byte *param_1,long param_2) { int4 local_c; if (*param_1 < 0x80) { local_c = 0; } else if ((((*param_1 < 0xa1) || (0xfe < *param_1)) || (param_1[1] < 0xa1)) || (0xfe < param_1[1])) { if (((*param_1 == 0x8e) && (0xa0 < param_1[1])) && (param_1[1] < 0xe0)) { local_c = 2; } else if (((*param_1 == 0x8f) && (2 < param_2 - (long)param_1)) && ((0xa0 < param_1[1] && (((param_1[1] < 0xff && (0xa0 < param_1[2])) && (param_1[2] < 0xff)))))) { local_c = 3; } else { local_c = 0; } } else { local_c = 2; } return local_c; }
34,059
minja::Value::operator-() const
monkey531[P]llama/common/minja.hpp
Value operator-() const { if (is_number_integer()) return -get<int64_t>(); else return -get<double>(); }
O3
cpp
minja::Value::operator-() const: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movb 0x40(%rsi), %al addb $-0x5, %al leaq 0x40(%rdi), %r14 movq %rsi, %rdi cmpb $0x1, %al ja 0x8bc58 callq 0x8be1a negq %rax xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movups %xmm0, 0x10(%rbx) movups %xmm0, 0x20(%rbx) movups %xmm0, 0x30(%rbx) movups %xmm0, 0x40(%rbx) movq %r14, %rdi movq %rax, %rsi callq 0x733e0 jmp 0x8bc82 callq 0x8bf64 xorps 0x67d8c(%rip), %xmm0 # 0xf39f0 xorps %xmm1, %xmm1 movups %xmm1, (%rbx) movups %xmm1, 0x10(%rbx) movups %xmm1, 0x20(%rbx) movups %xmm1, 0x30(%rbx) movups %xmm1, 0x40(%rbx) movq %r14, %rdi callq 0x729a8 movq %r14, %rdi movl $0x1, %esi callq 0x6b800 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZNK5minja5ValuengEv: push r14 push rbx push rax mov rbx, rdi mov al, [rsi+40h] add al, 0FBh lea r14, [rdi+40h] mov rdi, rsi cmp al, 1 ja short loc_8BC58 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) neg rax xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 movups xmmword ptr [rbx+10h], xmm0 movups xmmword ptr [rbx+20h], xmm0 movups xmmword ptr [rbx+30h], xmm0 movups xmmword ptr [rbx+40h], xmm0 mov rdi, r14 mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) jmp short loc_8BC82 loc_8BC58: call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) xorps xmm0, cs:xmmword_F39F0 xorps xmm1, xmm1 movups xmmword ptr [rbx], xmm1 movups xmmword ptr [rbx+10h], xmm1 movups xmmword ptr [rbx+20h], xmm1 movups xmmword ptr [rbx+30h], xmm1 movups xmmword ptr [rbx+40h], xmm1 mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t) loc_8BC82: 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) mov rax, rbx add rsp, 8 pop rbx pop r14 retn
_OWORD * minja::Value::operator-(_OWORD *a1, long long a2) { unsigned __int8 *v2; // r14 long long v3; // rax double v4; // xmm0_8 v2 = (unsigned __int8 *)(a1 + 4); if ( (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 1u ) { v4 = minja::Value::get<double>(a2); *a1 = 0LL; a1[1] = 0LL; a1[2] = 0LL; a1[3] = 0LL; a1[4] = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( v2, -v4); } else { v3 = minja::Value::get<long>(a2); *a1 = 0LL; a1[1] = 0LL; a1[2] = 0LL; a1[3] = 0LL; a1[4] = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( v2, -v3); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v2); return a1; }
operator-: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] ADD AL,0xfb LEA R14,[RDI + 0x40] MOV RDI,RSI CMP AL,0x1 JA 0x0018bc58 CALL 0x0018be1a NEG RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOVUPS xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOV RSI,RAX CALL 0x001733e0 JMP 0x0018bc82 LAB_0018bc58: CALL 0x0018bf64 XORPS XMM0,xmmword ptr [0x001f39f0] XORPS XMM1,XMM1 MOVUPS xmmword ptr [RBX],XMM1 MOVUPS xmmword ptr [RBX + 0x10],XMM1 MOVUPS xmmword ptr [RBX + 0x20],XMM1 MOVUPS xmmword ptr [RBX + 0x30],XMM1 MOVUPS xmmword ptr [RBX + 0x40],XMM1 MOV RDI,R14 CALL 0x001729a8 LAB_0018bc82: MOV RDI,R14 MOV ESI,0x1 CALL 0x0016b800 MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* minja::Value::TEMPNAMEPLACEHOLDERVALUE() const */ Value * __thiscall minja::Value::operator-(Value *this) { Value *pVVar1; double dVar2; long lVar3; Value *in_RSI; uint uVar4; pVVar1 = this + 0x40; if ((byte)((char)in_RSI[0x40] - 5U) < 2) { lVar3 = get<long>(in_RSI); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (pVVar1,-lVar3); } else { dVar2 = get<double>(in_RSI); uVar4 = SUB84(dVar2,0) ^ _DAT_001f39f0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (uVar4,pVVar1); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(pVVar1,0)); return this; }
34,060
JS_DefinePropertyValueStr
bluesky950520[P]quickjs/quickjs.c
int JS_DefinePropertyValueStr(JSContext *ctx, JSValue this_obj, const char *prop, JSValue val, int flags) { JSAtom atom; int ret; atom = JS_NewAtom(ctx, prop); ret = JS_DefinePropertyValue(ctx, this_obj, atom, val, flags); JS_FreeAtom(ctx, atom); return ret; }
O1
c
JS_DefinePropertyValueStr: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r9, %rbx movq %r8, %r14 movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %r13 movq %rdi, %rbp movq %rcx, %rdi callq 0xe240 movq %rbp, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x1f1ac movl %eax, %r15d movl 0x40(%rsp), %eax movl %eax, (%rsp) movq %rbp, %rdi movq %r13, %rsi movq %r12, %rdx movl %r15d, %ecx movq %r14, %r8 movq %rbx, %r9 callq 0x25ea7 movl %eax, %ebx movq %rbp, %rdi movl %r15d, %esi callq 0x1fbc4 movl %ebx, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
JS_DefinePropertyValueStr: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, r9 mov r14, r8 mov r15, rcx mov r12, rdx mov r13, rsi mov rbp, rdi mov rdi, rcx call _strlen mov rdi, rbp mov rsi, r15 mov rdx, rax call JS_NewAtomLen mov r15d, eax mov eax, [rsp+38h+arg_0] mov [rsp+38h+var_38], eax mov rdi, rbp mov rsi, r13 mov rdx, r12 mov ecx, r15d mov r8, r14 mov r9, rbx call JS_DefinePropertyValue mov ebx, eax mov rdi, rbp mov esi, r15d call JS_FreeAtom mov eax, ebx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long JS_DefinePropertyValueStr( long long a1, unsigned long long a2, long long a3, unsigned __int8 *a4, _DWORD *a5, long long a6, double a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14, int a15) { unsigned __int8 *v17; // r15 long long v19; // rax __m128 v20; // xmm4 __m128 v21; // xmm5 v17 = a4; v19 = strlen(a4); LODWORD(v17) = JS_NewAtomLen(a1, v17, v19); LODWORD(a6) = JS_DefinePropertyValue(a1, a2, a3, (unsigned int)v17, a5, a6, a7, a8, a9, a10, v20, v21, a13, a14, a15); JS_FreeAtom(a1, (int)v17); return (unsigned int)a6; }
JS_DefinePropertyValueStr: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,R9 MOV R14,R8 MOV R15,RCX MOV R12,RDX MOV R13,RSI MOV RBP,RDI MOV RDI,RCX CALL 0x0010e240 MOV RDI,RBP MOV RSI,R15 MOV RDX,RAX CALL 0x0011f1ac MOV R15D,EAX MOV EAX,dword ptr [RSP + 0x40] MOV dword ptr [RSP],EAX MOV RDI,RBP MOV RSI,R13 MOV RDX,R12 MOV ECX,R15D MOV R8,R14 MOV R9,RBX CALL 0x00125ea7 MOV EBX,EAX MOV RDI,RBP MOV ESI,R15D CALL 0x0011fbc4 MOV EAX,EBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int4 JS_DefinePropertyValueStr (int8 param_1,int8 param_2,int8 param_3,char *param_4,int8 param_5 ,int8 param_6,int4 param_7) { int4 uVar1; int4 uVar2; int8 in_RAX; size_t sVar3; uVar2 = (int4)((ulong)in_RAX >> 0x20); sVar3 = strlen(param_4); uVar1 = JS_NewAtomLen(param_1,param_4,sVar3); uVar2 = JS_DefinePropertyValue (param_1,param_2,param_3,uVar1,param_5,param_6,CONCAT44(uVar2,param_7)); JS_FreeAtom(param_1,uVar1); return uVar2; }
34,061
JS_DefinePropertyValueStr
bluesky950520[P]quickjs/quickjs.c
int JS_DefinePropertyValueStr(JSContext *ctx, JSValue this_obj, const char *prop, JSValue val, int flags) { JSAtom atom; int ret; atom = JS_NewAtom(ctx, prop); ret = JS_DefinePropertyValue(ctx, this_obj, atom, val, flags); JS_FreeAtom(ctx, atom); return ret; }
O3
c
JS_DefinePropertyValueStr: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r9, %rbx movq %r8, %r14 movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %r13 movq %rdi, %rbp movq %rcx, %rdi callq 0xe240 movq %rbp, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x1f8ef movl %eax, %r15d movl 0x40(%rsp), %eax movl %eax, (%rsp) movq %rbp, %rdi movq %r13, %rsi movq %r12, %rdx movl %r15d, %ecx movq %r14, %r8 movq %rbx, %r9 callq 0x26541 movl %eax, %ebx movq %rbp, %rdi movl %r15d, %esi callq 0x202f5 movl %ebx, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
JS_DefinePropertyValueStr: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, r9 mov r14, r8 mov r15, rcx mov r12, rdx mov r13, rsi mov rbp, rdi mov rdi, rcx call _strlen mov rdi, rbp mov rsi, r15 mov rdx, rax call JS_NewAtomLen mov r15d, eax mov eax, [rsp+38h+arg_0] mov [rsp+38h+var_38], eax mov rdi, rbp mov rsi, r13 mov rdx, r12 mov ecx, r15d mov r8, r14 mov r9, rbx call JS_DefinePropertyValue mov ebx, eax mov rdi, rbp mov esi, r15d call JS_FreeAtom mov eax, ebx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long JS_DefinePropertyValueStr( long long a1, long long a2, long long a3, unsigned __int8 *a4, int *a5, long long a6, double a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14, int a15) { unsigned __int8 *v17; // r15 long long v19; // rax __m128 v20; // xmm4 __m128 v21; // xmm5 v17 = a4; v19 = strlen(a4); LODWORD(v17) = JS_NewAtomLen(a1, v17, v19); LODWORD(a6) = JS_DefinePropertyValue(a1, a2, a3, (unsigned int)v17, a5, a6, a7, a8, a9, a10, v20, v21, a13, a14, a15); JS_FreeAtom(a1, (int)v17); return (unsigned int)a6; }
JS_DefinePropertyValueStr: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,R9 MOV R14,R8 MOV R15,RCX MOV R12,RDX MOV R13,RSI MOV RBP,RDI MOV RDI,RCX CALL 0x0010e240 MOV RDI,RBP MOV RSI,R15 MOV RDX,RAX CALL 0x0011f8ef MOV R15D,EAX MOV EAX,dword ptr [RSP + 0x40] MOV dword ptr [RSP],EAX MOV RDI,RBP MOV RSI,R13 MOV RDX,R12 MOV ECX,R15D MOV R8,R14 MOV R9,RBX CALL 0x00126541 MOV EBX,EAX MOV RDI,RBP MOV ESI,R15D CALL 0x001202f5 MOV EAX,EBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int4 JS_DefinePropertyValueStr (int8 param_1,int8 param_2,int8 param_3,char *param_4,int8 param_5 ,int8 param_6,int4 param_7) { int4 uVar1; int4 uVar2; int8 in_RAX; size_t sVar3; uVar2 = (int4)((ulong)in_RAX >> 0x20); sVar3 = strlen(param_4); uVar1 = JS_NewAtomLen(param_1,param_4,sVar3); uVar2 = JS_DefinePropertyValue (param_1,param_2,param_3,uVar1,param_5,param_6,CONCAT44(uVar2,param_7)); JS_FreeAtom(param_1,uVar1); return uVar2; }
34,062
stbi_zlib_decode_malloc_guesssize_headerflag
7CodeWizard[P]stablediffusion/thirdparty/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; } }
O1
c
stbi_zlib_decode_malloc_guesssize_headerflag: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1000, %rsp # imm = 0x1000 movl %r8d, %ebp movq %rcx, %rbx movl %edx, %r14d movl %esi, %r12d movq %rdi, %r15 movslq %edx, %rdi callq 0xa7c0 testq %rax, %rax je 0x1ba33 movq %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 0x1afae testl %eax, %eax je 0x1ba29 testq %rbx, %rbx je 0x1ba22 movl 0x18(%rsp), %eax subl 0x20(%rsp), %eax movl %eax, (%rbx) movq 0x20(%rsp), %rax jmp 0x1ba35 movq 0x20(%rsp), %rdi callq 0xa700 xorl %eax, %eax addq $0x1000, %rsp # imm = 0x1000 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
stbi_zlib_decode_malloc_guesssize_headerflag: push rbp push r15 push r14 push r12 push rbx sub rsp, 1000h 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_1BA33 mov rdi, rsp 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_1BA29 test rbx, rbx jz short loc_1BA22 mov eax, [rsp+1028h+var_1010] sub eax, dword ptr [rsp+1028h+var_1008] mov [rbx], eax loc_1BA22: mov rax, [rsp+1028h+var_1008] jmp short loc_1BA35 loc_1BA29: mov rdi, [rsp+1028h+var_1008] call _free loc_1BA33: xor eax, eax loc_1BA35: add rsp, 1000h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long stbi_zlib_decode_malloc_guesssize_headerflag( unsigned __int8 *a1, int a2, int a3, _DWORD *a4, int a5) { unsigned __int8 *v8; // rax unsigned __int8 *v10[3]; // [rsp+0h] [rbp-1028h] BYREF int v11; // [rsp+18h] [rbp-1010h] long long v12; // [rsp+20h] [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; } if ( a4 ) *a4 = v11 - v12; return v12; }
34,063
stbi_zlib_decode_malloc_guesssize_headerflag
7CodeWizard[P]stablediffusion/thirdparty/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; } }
O2
c
stbi_zlib_decode_malloc_guesssize_headerflag: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1000, %rsp # imm = 0x1000 movl %r8d, %ebp movq %rcx, %rbx movl %edx, %r14d movl %esi, %r12d movq %rdi, %r15 movslq %edx, %rdi callq 0xa7e0 testq %rax, %rax je 0xd005 movq %rsp, %rdi movq %r15, (%rdi) movslq %r12d, %rcx addq %r15, %rcx movq %rcx, 0x8(%rdi) pushq $0x1 popq %rcx movq %rax, %rsi movl %r14d, %edx movl %ebp, %r8d callq 0xc9ef testl %eax, %eax je 0xcffb testq %rbx, %rbx je 0xd017 movl 0x18(%rsp), %ecx movq 0x20(%rsp), %rax subl %eax, %ecx movl %ecx, (%rbx) jmp 0xd007 movq 0x20(%rsp), %rdi callq 0xa710 xorl %eax, %eax addq $0x1000, %rsp # imm = 0x1000 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq 0x20(%rsp), %rax jmp 0xd007
stbi_zlib_decode_malloc_guesssize_headerflag: push rbp push r15 push r14 push r12 push rbx sub rsp, 1000h 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_D005 mov rdi, rsp mov [rdi], r15 movsxd rcx, r12d add rcx, r15 mov [rdi+8], rcx push 1 pop rcx mov rsi, rax mov edx, r14d mov r8d, ebp call _ZL13stbi__do_zlibP10stbi__zbufPciii; stbi__do_zlib(stbi__zbuf *,char *,int,int,int) test eax, eax jz short loc_CFFB test rbx, rbx jz short loc_D017 mov ecx, [rsp+1028h+var_1010] mov rax, [rsp+1028h+var_1008] sub ecx, eax mov [rbx], ecx jmp short loc_D007 loc_CFFB: mov rdi, [rsp+1028h+var_1008] call _free loc_D005: xor eax, eax loc_D007: add rsp, 1000h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_D017: mov rax, [rsp+1028h+var_1008] jmp short loc_D007
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[3]; // [rsp+0h] [rbp-1028h] BYREF int v11; // [rsp+18h] [rbp-1010h] long long v12; // [rsp+20h] [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,0x1000 MOV EBP,R8D MOV RBX,RCX MOV R14D,EDX MOV R12D,ESI MOV R15,RDI MOVSXD RDI,EDX CALL 0x0010a7e0 TEST RAX,RAX JZ 0x0010d005 MOV RDI,RSP MOV qword ptr [RDI],R15 MOVSXD RCX,R12D ADD RCX,R15 MOV qword ptr [RDI + 0x8],RCX PUSH 0x1 POP RCX MOV RSI,RAX MOV EDX,R14D MOV R8D,EBP CALL 0x0010c9ef TEST EAX,EAX JZ 0x0010cffb TEST RBX,RBX JZ 0x0010d017 MOV ECX,dword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x20] SUB ECX,EAX MOV dword ptr [RBX],ECX JMP 0x0010d007 LAB_0010cffb: MOV RDI,qword ptr [RSP + 0x20] CALL 0x0010a710 LAB_0010d005: XOR EAX,EAX LAB_0010d007: ADD RSP,0x1000 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0010d017: MOV RAX,qword ptr [RSP + 0x20] JMP 0x0010d007
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_1028; long local_1020; int local_1010; void *local_1008; pcVar2 = (char *)malloc((long)param_3); if (pcVar2 != (char *)0x0) { local_1020 = param_2 + param_1; local_1028 = param_1; iVar1 = stbi__do_zlib((stbi__zbuf *)&local_1028,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; }
34,064
stbi_zlib_decode_malloc_guesssize_headerflag
7CodeWizard[P]stablediffusion/thirdparty/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 $0x1000, %rsp # imm = 0x1000 movl %r8d, %ebp movq %rcx, %rbx movl %edx, %r14d movl %esi, %r12d movq %rdi, %r15 movslq %edx, %rdi callq 0xa7b0 testq %rax, %rax je 0x1b4bd movq %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 0x1aa57 testl %eax, %eax je 0x1b4b3 testq %rbx, %rbx je 0x1b4cf movl 0x18(%rsp), %ecx movq 0x20(%rsp), %rax subl %eax, %ecx movl %ecx, (%rbx) jmp 0x1b4bf movq 0x20(%rsp), %rdi callq 0xa6f0 xorl %eax, %eax addq $0x1000, %rsp # imm = 0x1000 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq 0x20(%rsp), %rax jmp 0x1b4bf
stbi_zlib_decode_malloc_guesssize_headerflag: push rbp push r15 push r14 push r12 push rbx sub rsp, 1000h 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_1B4BD mov rdi, rsp 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_1B4B3 test rbx, rbx jz short loc_1B4CF mov ecx, [rsp+1028h+var_1010] mov rax, [rsp+1028h+var_1008] sub ecx, eax mov [rbx], ecx jmp short loc_1B4BF loc_1B4B3: mov rdi, [rsp+1028h+var_1008] call _free loc_1B4BD: xor eax, eax loc_1B4BF: add rsp, 1000h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_1B4CF: mov rax, [rsp+1028h+var_1008] jmp short loc_1B4BF
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[3]; // [rsp+0h] [rbp-1028h] BYREF int v11; // [rsp+18h] [rbp-1010h] long long v12; // [rsp+20h] [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; }
34,065
rak_record_new
fabiosvm[P]rak/src/record.c
RakRecord *rak_record_new(RakError *err) { RakRecord *rec = rak_memory_alloc(sizeof(*rec), err); if (!rak_is_ok(err)) return NULL; rak_record_init(rec, err); if (rak_is_ok(err)) return rec; rak_memory_free(rec); return NULL; }
O2
c
rak_record_new: pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 pushq $0x18 popq %rdi movq %r14, %rsi callq 0x5f24 cmpb $0x1, (%r14) jne 0x6203 movq %rax, %rbx movq %rax, %rdi movq %r14, %rsi callq 0x6074 cmpb $0x0, (%r14) jne 0x6205 movq %rbx, %rdi callq 0x5f84 xorl %ebx, %ebx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
rak_record_new: push r14 push rbx push rax mov r14, rdi push 18h pop rdi mov rsi, r14 call rak_memory_alloc cmp byte ptr [r14], 1 jnz short loc_6203 mov rbx, rax mov rdi, rax mov rsi, r14 call rak_record_init cmp byte ptr [r14], 0 jnz short loc_6205 mov rdi, rbx call rak_memory_free loc_6203: xor ebx, ebx loc_6205: mov rax, rbx add rsp, 8 pop rbx pop r14 retn
long long rak_record_new( _BYTE *a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, double a6, double a7, __m128 a8, __m128 a9) { long long v9; // rax double v10; // xmm4_8 double v11; // xmm5_8 long long v12; // rbx v9 = rak_memory_alloc(a2, a3, a4, a5, a6, a7, a8, a9, 24LL, (long long)a1); if ( *a1 != 1 ) return 0LL; v12 = v9; rak_record_init(v9, a1, a2, a3, a4, a5, v10, v11, a8, a9); if ( !*a1 ) { rak_memory_free(v12); return 0LL; } return v12; }
rak_record_new: PUSH R14 PUSH RBX PUSH RAX MOV R14,RDI PUSH 0x18 POP RDI MOV RSI,R14 CALL 0x00105f24 CMP byte ptr [R14],0x1 JNZ 0x00106203 MOV RBX,RAX MOV RDI,RAX MOV RSI,R14 CALL 0x00106074 CMP byte ptr [R14],0x0 JNZ 0x00106205 MOV RDI,RBX CALL 0x00105f84 LAB_00106203: XOR EBX,EBX LAB_00106205: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
void * rak_record_new(char *param_1) { void *__ptr; __ptr = (void *)rak_memory_alloc(0x18,param_1); if (*param_1 == '\x01') { rak_record_init(__ptr,param_1); if (*param_1 != '\0') { return __ptr; } rak_memory_free(__ptr); } return (void *)0x0; }
34,066
JS_ReadArrayBuffer
bluesky950520[P]quickjs/quickjs.c
static JSValue JS_ReadArrayBuffer(BCReaderState *s) { JSContext *ctx = s->ctx; uint32_t byte_length, max_byte_length; uint64_t max_byte_length_u64, *pmax_byte_length = NULL; JSValue obj; if (bc_get_leb128(s, &byte_length)) return JS_EXCEPTION; if (bc_get_leb128(s, &max_byte_length)) return JS_EXCEPTION; if (max_byte_length < byte_length) return JS_ThrowTypeError(ctx, "invalid array buffer"); if (max_byte_length != UINT32_MAX) { max_byte_length_u64 = max_byte_length; pmax_byte_length = &max_byte_length_u64; } if (unlikely(s->buf_end - s->ptr < byte_length)) { bc_read_error_end(s); return JS_EXCEPTION; } // makes a copy of the input obj = js_array_buffer_constructor3(ctx, JS_UNDEFINED, byte_length, pmax_byte_length, JS_CLASS_ARRAY_BUFFER, (uint8_t*)s->ptr, js_array_buffer_free, NULL, /*alloc_flag*/TRUE); if (JS_IsException(obj)) goto fail; if (BC_add_object_ref(s, obj)) goto fail; s->ptr += byte_length; return obj; fail: JS_FreeValue(ctx, obj); return JS_EXCEPTION; }
O1
c
JS_ReadArrayBuffer: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %r15 movq (%rdi), %r14 leaq 0xc(%rsp), %rsi callq 0x45a75 movl $0x6, %ebx testl %eax, %eax jne 0x46946 leaq 0x8(%rsp), %rsi movq %r15, %rdi callq 0x45a75 testl %eax, %eax je 0x46963 xorl %r15d, %r15d xorl %eax, %eax orq %rax, %r15 movq %r15, %rax movq %rbx, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl 0x8(%rsp), %eax movl 0xc(%rsp), %r12d cmpl %r12d, %eax jae 0x46987 leaq 0x59090(%rip), %rsi # 0x9fa08 xorl %r15d, %r15d movq %r14, %rdi xorl %eax, %eax callq 0x22567 jmp 0x46949 cmpl $-0x1, %eax je 0x46996 leaq 0x10(%rsp), %r8 movq %rax, (%r8) jmp 0x46999 xorl %r8d, %r8d movq 0x10(%r15), %rax movq 0x18(%r15), %rcx subq %rax, %rcx cmpq %r12, %rcx jl 0x46a21 leaq -0xdaf7(%rip), %r10 # 0x38eb9 movl $0x3, %edx movq %r14, %rdi xorl %esi, %esi movq %r12, %rcx movl $0x13, %r9d pushq $0x1 pushq $0x0 pushq %r10 pushq %rax callq 0x38c19 addq $0x20, %rsp movq %rax, %rbp movq %rdx, %r13 cmpl $0x6, %r13d je 0x469ee movq %r15, %rdi movq %rbp, %rsi callq 0x47091 testl %eax, %eax je 0x46a02 movq 0x18(%r14), %rdi movq %rbp, %rsi movq %r13, %rdx callq 0x1d8c6 jmp 0x46946 addq %r12, 0x10(%r15) movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 movq %rbp, %rax andq %rcx, %rax movl %ebp, %r15d movq %r13, %rbx jmp 0x4694b movq %r15, %rdi callq 0x134f4 jmp 0x46946
JS_ReadArrayBuffer: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15, rdi mov r14, [rdi] lea rsi, [rsp+48h+var_3C] call bc_get_leb128 mov ebx, 6 test eax, eax jnz short loc_46946 lea rsi, [rsp+48h+var_40] mov rdi, r15 call bc_get_leb128 test eax, eax jz short loc_46963 loc_46946: xor r15d, r15d loc_46949: xor eax, eax loc_4694B: or r15, rax mov rax, r15 mov rdx, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_46963: mov eax, [rsp+48h+var_40] mov r12d, [rsp+48h+var_3C] cmp eax, r12d jnb short loc_46987 lea rsi, aInvalidArrayBu_0; "invalid array buffer" xor r15d, r15d mov rdi, r14 xor eax, eax call JS_ThrowTypeError jmp short loc_46949 loc_46987: cmp eax, 0FFFFFFFFh jz short loc_46996 lea r8, [rsp+48h+var_38] mov [r8], rax jmp short loc_46999 loc_46996: xor r8d, r8d loc_46999: mov rax, [r15+10h] mov rcx, [r15+18h] sub rcx, rax cmp rcx, r12 jl short loc_46A21 lea r10, js_array_buffer_free mov edx, 3 mov rdi, r14 xor esi, esi mov rcx, r12 mov r9d, 13h push 1 push 0 push r10 push rax call js_array_buffer_constructor3 add rsp, 20h mov rbp, rax mov r13, rdx cmp r13d, 6 jz short loc_469EE mov rdi, r15 mov rsi, rbp call BC_add_object_ref1 test eax, eax jz short loc_46A02 loc_469EE: mov rdi, [r14+18h] mov rsi, rbp mov rdx, r13 call JS_FreeValueRT jmp loc_46946 loc_46A02: add [r15+10h], r12 mov rcx, 0FFFFFFFF00000000h mov rax, rbp and rax, rcx mov r15d, ebp mov rbx, r13 jmp loc_4694B loc_46A21: mov rdi, r15 call JS_ReadArrayBuffer_cold_1 jmp loc_46946
unsigned long long JS_ReadArrayBuffer( 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, int a12, unsigned long long a13) { long long v13; // r14 long long v14; // rdx int v15; // ecx unsigned long long v16; // r8 long long v17; // rdx long long v18; // rcx long long v19; // r8 long long v20; // r9 __m128 v21; // xmm4 __m128 v22; // xmm5 long long v23; // r15 unsigned long long v24; // rax long long v26; // r12 int *v27; // r8 long long v28; // rax long long v29; // rcx unsigned long long v30; // rax unsigned long long v31; // rbp long long v32; // rdx long long v33; // r13 char v34; // [rsp+0h] [rbp-48h] unsigned int v35; // [rsp+8h] [rbp-40h] BYREF unsigned int v36; // [rsp+Ch] [rbp-3Ch] BYREF long long v37; // [rsp+10h] [rbp-38h] BYREF v13 = *a1; if ( !(unsigned int)bc_get_leb128((long long)a1, &v36, a11, a12, a13) && !(unsigned int)bc_get_leb128((long long)a1, &v35, v14, v15, v16) ) { v26 = v36; if ( v35 < v36 ) { v23 = 0LL; JS_ThrowTypeError(v13, (long long)"invalid array buffer", v17, v18, v19, v20, a2, a3, a4, a5, v21, v22, a8, a9, v34); goto LABEL_4; } if ( v35 == -1 ) { v27 = 0LL; } else { v27 = (int *)&v37; v37 = v35; } v28 = a1[2]; v29 = a1[3] - v28; if ( v29 < v36 ) { JS_ReadArrayBuffer_cold_1((long long)a1, (long long)&v35, v17, v29, (int)v27, v20); } else { v30 = js_array_buffer_constructor3( v13, 0LL, 3LL, v36, v27, 19LL, a2, a3, a4, a5, v21, v22, a8, a9, v28, (long long ( *)())js_array_buffer_free, 0LL, 1); v31 = v30; v33 = v32; if ( (_DWORD)v32 != 6 && !(unsigned int)BC_add_object_ref1(a1, v30) ) { a1[2] += v26; v24 = v31 & 0xFFFFFFFF00000000LL; v23 = (unsigned int)v31; return v24 | v23; } JS_FreeValueRT(*(_QWORD *)(v13 + 24), (_DWORD *)v31, v33); } } v23 = 0LL; LABEL_4: v24 = 0LL; return v24 | v23; }
JS_ReadArrayBuffer: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15,RDI MOV R14,qword ptr [RDI] LEA RSI,[RSP + 0xc] CALL 0x00145a75 MOV EBX,0x6 TEST EAX,EAX JNZ 0x00146946 LEA RSI,[RSP + 0x8] MOV RDI,R15 CALL 0x00145a75 TEST EAX,EAX JZ 0x00146963 LAB_00146946: XOR R15D,R15D LAB_00146949: XOR EAX,EAX LAB_0014694b: OR R15,RAX MOV RAX,R15 MOV RDX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00146963: MOV EAX,dword ptr [RSP + 0x8] MOV R12D,dword ptr [RSP + 0xc] CMP EAX,R12D JNC 0x00146987 LEA RSI,[0x19fa08] XOR R15D,R15D MOV RDI,R14 XOR EAX,EAX CALL 0x00122567 JMP 0x00146949 LAB_00146987: CMP EAX,-0x1 JZ 0x00146996 LEA R8,[RSP + 0x10] MOV qword ptr [R8],RAX JMP 0x00146999 LAB_00146996: XOR R8D,R8D LAB_00146999: MOV RAX,qword ptr [R15 + 0x10] MOV RCX,qword ptr [R15 + 0x18] SUB RCX,RAX CMP RCX,R12 JL 0x00146a21 LEA R10,[0x138eb9] MOV EDX,0x3 MOV RDI,R14 XOR ESI,ESI MOV RCX,R12 MOV R9D,0x13 PUSH 0x1 PUSH 0x0 PUSH R10 PUSH RAX CALL 0x00138c19 ADD RSP,0x20 MOV RBP,RAX MOV R13,RDX CMP R13D,0x6 JZ 0x001469ee MOV RDI,R15 MOV RSI,RBP CALL 0x00147091 TEST EAX,EAX JZ 0x00146a02 LAB_001469ee: MOV RDI,qword ptr [R14 + 0x18] MOV RSI,RBP MOV RDX,R13 CALL 0x0011d8c6 JMP 0x00146946 LAB_00146a02: ADD qword ptr [R15 + 0x10],R12 MOV RCX,-0x100000000 MOV RAX,RBP AND RAX,RCX MOV R15D,EBP MOV RBX,R13 JMP 0x0014694b LAB_00146a21: MOV RDI,R15 CALL 0x001134f4 JMP 0x00146946
int1 [16] JS_ReadArrayBuffer(long *param_1) { long lVar1; int iVar2; ulong uVar3; int8 uVar4; ulong *puVar5; ulong uVar6; int1 auVar7 [16]; uint local_40; uint local_3c; ulong local_38; lVar1 = *param_1; iVar2 = bc_get_leb128(param_1,&local_3c); if ((iVar2 == 0) && (iVar2 = bc_get_leb128(param_1,&local_40), iVar2 == 0)) { uVar3 = (ulong)local_3c; if (local_40 < local_3c) { JS_ThrowTypeError(lVar1,"invalid array buffer"); } else { if (local_40 == 0xffffffff) { puVar5 = (ulong *)0x0; } else { puVar5 = &local_38; local_38 = (ulong)local_40; } if (param_1[3] - param_1[2] < (long)uVar3) { JS_ReadArrayBuffer_cold_1(param_1); } else { auVar7 = js_array_buffer_constructor3 (lVar1,0,3,uVar3,puVar5,0x13,param_1[2],js_array_buffer_free,0,1); uVar4 = auVar7._8_8_; uVar6 = auVar7._0_8_; if ((auVar7._8_4_ != 6) && (iVar2 = BC_add_object_ref1(param_1,uVar6), iVar2 == 0)) { param_1[2] = param_1[2] + uVar3; uVar3 = uVar6 & 0xffffffff00000000; uVar6 = uVar6 & 0xffffffff; goto LAB_0014694b; } JS_FreeValueRT(*(int8 *)(lVar1 + 0x18),uVar6,uVar4); } } } uVar6 = 0; uVar3 = 0; uVar4 = 6; LAB_0014694b: auVar7._8_8_ = uVar4; auVar7._0_8_ = uVar6 | uVar3; return auVar7; }
34,067
JS_AtomSymbolHasDescription
bluesky950520[P]quickjs/quickjs.c
static BOOL JS_AtomSymbolHasDescription(JSContext *ctx, JSAtom v) { JSRuntime *rt; JSAtomStruct *p; rt = ctx->rt; if (__JS_AtomIsTaggedInt(v)) return FALSE; p = rt->atom_array[v]; return (((p->atom_type == JS_ATOM_TYPE_SYMBOL && p->hash == JS_ATOM_HASH_SYMBOL) || p->atom_type == JS_ATOM_TYPE_GLOBAL_SYMBOL) && !(p->len == 0 && p->is_wide_char != 0)); }
O0
c
JS_AtomSymbolHasDescription: subq $0x38, %rsp movq %rdi, 0x28(%rsp) movl %esi, 0x24(%rsp) movq 0x28(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0x18(%rsp) movl 0x24(%rsp), %edi callq 0x34e00 cmpl $0x0, %eax je 0x6e5f6 movl $0x0, 0x34(%rsp) jmp 0x6e6a5 movq 0x18(%rsp), %rax movq 0x68(%rax), %rax movl 0x24(%rsp), %ecx movq (%rax,%rcx,8), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax movq 0x4(%rax), %rax shrq $0x3e, %rax movzbl %al, %eax cmpl $0x3, %eax jne 0x6e639 movq 0x10(%rsp), %rax movq 0x4(%rax), %rax shrq $0x20, %rax andq $0x3fffffff, %rax # imm = 0x3FFFFFFF cmpl $0x0, %eax je 0x6e654 movq 0x10(%rsp), %rax movq 0x4(%rax), %rax shrq $0x3e, %rax movzbl %al, %ecx xorl %eax, %eax cmpl $0x2, %ecx movb %al, 0xf(%rsp) jne 0x6e698 movq 0x10(%rsp), %rax movq 0x4(%rax), %rax andq $0x7fffffff, %rax # imm = 0x7FFFFFFF movl %eax, %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, 0xe(%rsp) jne 0x6e68e movq 0x10(%rsp), %rax movq 0x4(%rax), %rax shrq $0x1f, %rax andq $0x1, %rax movzbl %al, %eax cmpl $0x0, %eax setne %al movb %al, 0xe(%rsp) movb 0xe(%rsp), %al xorb $-0x1, %al movb %al, 0xf(%rsp) movb 0xf(%rsp), %al andb $0x1, %al movzbl %al, %eax movl %eax, 0x34(%rsp) movl 0x34(%rsp), %eax addq $0x38, %rsp retq nop
JS_AtomSymbolHasDescription: sub rsp, 38h mov [rsp+38h+var_10], rdi mov [rsp+38h+var_14], esi mov rax, [rsp+38h+var_10] mov rax, [rax+18h] mov [rsp+38h+var_20], rax mov edi, [rsp+38h+var_14] call __JS_AtomIsTaggedInt cmp eax, 0 jz short loc_6E5F6 mov [rsp+38h+var_4], 0 jmp loc_6E6A5 loc_6E5F6: mov rax, [rsp+38h+var_20] mov rax, [rax+68h] mov ecx, [rsp+38h+var_14] mov rax, [rax+rcx*8] mov [rsp+38h+var_28], rax mov rax, [rsp+38h+var_28] mov rax, [rax+4] shr rax, 3Eh movzx eax, al cmp eax, 3 jnz short loc_6E639 mov rax, [rsp+38h+var_28] mov rax, [rax+4] shr rax, 20h and rax, 3FFFFFFFh cmp eax, 0 jz short loc_6E654 loc_6E639: mov rax, [rsp+38h+var_28] mov rax, [rax+4] shr rax, 3Eh movzx ecx, al xor eax, eax cmp ecx, 2 mov [rsp+38h+var_29], al jnz short loc_6E698 loc_6E654: mov rax, [rsp+38h+var_28] mov rax, [rax+4] and rax, 7FFFFFFFh mov ecx, eax xor eax, eax cmp ecx, 0 mov [rsp+38h+var_2A], al jnz short loc_6E68E mov rax, [rsp+38h+var_28] mov rax, [rax+4] shr rax, 1Fh and rax, 1 movzx eax, al cmp eax, 0 setnz al mov [rsp+38h+var_2A], al loc_6E68E: mov al, [rsp+38h+var_2A] xor al, 0FFh mov [rsp+38h+var_29], al loc_6E698: mov al, [rsp+38h+var_29] and al, 1 movzx eax, al mov [rsp+38h+var_4], eax loc_6E6A5: mov eax, [rsp+38h+var_4] add rsp, 38h retn
long long JS_AtomSymbolHasDescription(long long a1, unsigned int a2) { char v3; // [rsp+Eh] [rbp-2Ah] char v4; // [rsp+Fh] [rbp-29h] long long v5; // [rsp+10h] [rbp-28h] long long v6; // [rsp+18h] [rbp-20h] v6 = *(_QWORD *)(a1 + 24); if ( _JS_AtomIsTaggedInt(a2) ) { return 0; } else { v5 = *(_QWORD *)(*(_QWORD *)(v6 + 104) + 8LL * a2); if ( *(_QWORD *)(v5 + 4) >> 62 == 3 && (*(_QWORD *)(v5 + 4) & 0x3FFFFFFF00000000LL) == 0 || (v4 = 0, *(_QWORD *)(v5 + 4) >> 62 == 2) ) { v3 = 0; if ( (*(_DWORD *)(v5 + 4) & 0x7FFFFFFF) == 0 ) v3 = (*(_QWORD *)(v5 + 4) & 0x80000000LL) != 0; v4 = ~v3; } return v4 & 1; } }
JS_AtomSymbolHasDescription: SUB RSP,0x38 MOV qword ptr [RSP + 0x28],RDI MOV dword ptr [RSP + 0x24],ESI MOV RAX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x18],RAX MOV EDI,dword ptr [RSP + 0x24] CALL 0x00134e00 CMP EAX,0x0 JZ 0x0016e5f6 MOV dword ptr [RSP + 0x34],0x0 JMP 0x0016e6a5 LAB_0016e5f6: MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x68] MOV ECX,dword ptr [RSP + 0x24] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x4] SHR RAX,0x3e MOVZX EAX,AL CMP EAX,0x3 JNZ 0x0016e639 MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x4] SHR RAX,0x20 AND RAX,0x3fffffff CMP EAX,0x0 JZ 0x0016e654 LAB_0016e639: MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x4] SHR RAX,0x3e MOVZX ECX,AL XOR EAX,EAX CMP ECX,0x2 MOV byte ptr [RSP + 0xf],AL JNZ 0x0016e698 LAB_0016e654: MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x4] AND RAX,0x7fffffff MOV ECX,EAX XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RSP + 0xe],AL JNZ 0x0016e68e MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x4] SHR RAX,0x1f AND RAX,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL MOV byte ptr [RSP + 0xe],AL LAB_0016e68e: MOV AL,byte ptr [RSP + 0xe] XOR AL,0xff MOV byte ptr [RSP + 0xf],AL LAB_0016e698: MOV AL,byte ptr [RSP + 0xf] AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RSP + 0x34],EAX LAB_0016e6a5: MOV EAX,dword ptr [RSP + 0x34] ADD RSP,0x38 RET
byte JS_AtomSymbolHasDescription(long param_1,uint param_2) { long lVar1; int iVar2; bool local_2a; byte local_29; lVar1 = *(long *)(param_1 + 0x18); iVar2 = __JS_AtomIsTaggedInt(param_2); if (iVar2 == 0) { lVar1 = *(long *)(*(long *)(lVar1 + 0x68) + (ulong)param_2 * 8); if ((((uint)((ulong)*(int8 *)(lVar1 + 4) >> 0x3e) == 3) && ((*(ulong *)(lVar1 + 4) >> 0x20 & 0x3fffffff) == 0)) || (local_29 = 0, (uint)((ulong)*(int8 *)(lVar1 + 4) >> 0x3e) == 2)) { local_2a = false; if ((*(ulong *)(lVar1 + 4) & 0x7fffffff) == 0) { local_2a = (*(ulong *)(lVar1 + 4) >> 0x1f & 1) != 0; } local_29 = local_2a ^ 0xff; } local_29 = local_29 & 1; } else { local_29 = 0; } return local_29; }
34,068
string_get_sortable_timestamp[abi:cxx11]()
monkey531[P]llama/common/common.cpp
std::string string_get_sortable_timestamp() { using clock = std::chrono::system_clock; const clock::time_point current_time = clock::now(); const time_t as_time_t = clock::to_time_t(current_time); char timestamp_no_ns[100]; std::strftime(timestamp_no_ns, 100, "%Y_%m_%d-%H_%M_%S", std::localtime(&as_time_t)); const int64_t ns = std::chrono::duration_cast<std::chrono::nanoseconds>( current_time.time_since_epoch() % 1000000000).count(); char timestamp_ns[11]; snprintf(timestamp_ns, 11, "%09" PRId64, ns); return std::string(timestamp_no_ns) + "." + std::string(timestamp_ns); }
O3
cpp
string_get_sortable_timestamp[abi:cxx11](): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf0, %rsp movq %rdi, %rbx callq 0x1a090 movq %rax, %r14 movabsq $0x112e0be826d694b3, %rcx # imm = 0x112E0BE826D694B3 imulq %rcx movq %rdx, %r12 movq %rdx, %rax shrq $0x3f, %rax sarq $0x1a, %r12 addq %rax, %r12 leaq 0x78(%rsp), %rdi movq %r12, (%rdi) callq 0x1a680 leaq 0x7c1ce(%rip), %rdx # 0xedd07 leaq 0x80(%rsp), %r15 movl $0x64, %esi movq %r15, %rdi movq %rax, %rcx callq 0x1a700 imulq $0x3b9aca00, %r12, %rax # imm = 0x3B9ACA00 subq %rax, %r14 leaq 0x7c1b7(%rip), %rdx # 0xedd19 leaq 0x4d(%rsp), %rdi movl $0xb, %esi movq %r14, %rcx xorl %eax, %eax callq 0x1adc0 leaq 0x68(%rsp), %r12 movq %r12, -0x10(%r12) movq %r15, %rdi callq 0x1a3d0 leaq (%rsp,%rax), %rdx addq $0x80, %rdx leaq 0x58(%rsp), %r14 movq %r14, %rdi movq %r15, %rsi callq 0x21b26 leaq 0x77767(%rip), %rsi # 0xe9311 movq %r14, %rdi callq 0x1b0d0 leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x71bd9 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x71be0 movups (%rcx), %xmm0 movups %xmm0, (%r15) movq 0x8(%rax), %rdx movq %rdx, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x38(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x4d(%rsp), %r14 movq %r14, %rdi callq 0x1a3d0 leaq (%rsp,%rax), %rdx addq $0x4d, %rdx leaq 0x28(%rsp), %rdi movq %r14, %rsi callq 0x21b26 movq 0x8(%rsp), %rcx movq 0x10(%rsp), %r8 movq 0x30(%rsp), %rdx leaq (%rdx,%r8), %rax movl $0xf, %edi cmpq %r15, %rcx je 0x71c45 movq 0x18(%rsp), %rdi movq 0x28(%rsp), %rsi cmpq %rdi, %rax jbe 0x71c63 movl $0xf, %edi cmpq %r13, %rsi je 0x71c5e movq 0x38(%rsp), %rdi cmpq %rdi, %rax jbe 0x71c6f leaq 0x8(%rsp), %rdi callq 0x1a250 jmp 0x71c7d leaq 0x28(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x1a9c0 leaq 0x10(%rbx), %rdx movq %rdx, (%rbx) movq (%rax), %rsi leaq 0x10(%rax), %rcx cmpq %rcx, %rsi je 0x71c9c movq %rsi, (%rbx) movq (%rcx), %rdx movq %rdx, 0x10(%rbx) jmp 0x71ca2 movups (%rcx), %xmm0 movups %xmm0, (%rdx) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x8(%rbx) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x71cd5 movq 0x38(%rsp), %rsi incq %rsi callq 0x1a8c0 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x71cec movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8c0 movq 0x58(%rsp), %rdi cmpq %r12, %rdi je 0x71d03 movq 0x68(%rsp), %rsi incq %rsi callq 0x1a8c0 movq %rbx, %rax addq $0xf0, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x71d36 movq 0x38(%rsp), %rsi incq %rsi callq 0x1a8c0 jmp 0x71d36 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x71d52 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8c0 jmp 0x71d52 movq %rax, %rbx movq 0x58(%rsp), %rdi cmpq %r12, %rdi je 0x71d69 movq 0x68(%rsp), %rsi incq %rsi callq 0x1a8c0 movq %rbx, %rdi callq 0x1af80
_Z29string_get_sortable_timestampB5cxx11v: push r15 push r14 push r13 push r12 push rbx sub rsp, 0F0h mov rbx, rdi call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void) mov r14, rax mov rcx, 112E0BE826D694B3h imul rcx mov r12, rdx mov rax, rdx shr rax, 3Fh sar r12, 1Ah add r12, rax lea rdi, [rsp+118h+var_A0] mov [rdi], r12 call _localtime lea rdx, aYMDHMS; "%Y_%m_%d-%H_%M_%S" lea r15, [rsp+118h+var_98] mov esi, 64h ; 'd' mov rdi, r15 mov rcx, rax call _strftime imul rax, r12, 3B9ACA00h sub r14, rax lea rdx, a09ld; "%09ld" lea rdi, [rsp+118h+var_CB] mov esi, 0Bh mov rcx, r14 xor eax, eax call _snprintf lea r12, [rsp+118h+var_B0] mov [r12-10h], r12 mov rdi, r15 call _strlen lea rdx, [rsp+rax+118h+var_118] add rdx, 80h lea r14, [rsp+118h+var_C0] mov rdi, r14 mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rsi, aN0N1+8; "." mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r15, [rsp+118h+var_100] mov [r15-10h], r15 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_71BD9 mov [rsp+118h+var_110], rdx mov rdx, [rcx] mov [rsp+118h+var_100], rdx jmp short loc_71BE0 loc_71BD9: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r15], xmm0 loc_71BE0: mov rdx, [rax+8] mov [rsp+118h+var_108], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea r13, [rsp+118h+var_E0] mov [r13-10h], r13 lea r14, [rsp+118h+var_CB] mov rdi, r14 call _strlen lea rdx, [rsp+rax+118h+var_118] add rdx, 4Dh ; 'M' lea rdi, [rsp+118h+var_F0] mov rsi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rcx, [rsp+118h+var_110] mov r8, [rsp+118h+var_108] mov rdx, [rsp+118h+var_E8] lea rax, [rdx+r8] mov edi, 0Fh cmp rcx, r15 jz short loc_71C45 mov rdi, [rsp+118h+var_100] loc_71C45: mov rsi, [rsp+118h+var_F0] cmp rax, rdi jbe short loc_71C63 mov edi, 0Fh cmp rsi, r13 jz short loc_71C5E mov rdi, [rsp+118h+var_E0] loc_71C5E: cmp rax, rdi jbe short loc_71C6F loc_71C63: lea rdi, [rsp+118h+var_110] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) jmp short loc_71C7D loc_71C6F: lea rdi, [rsp+118h+var_F0] xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) loc_71C7D: lea rdx, [rbx+10h] mov [rbx], rdx mov rsi, [rax] lea rcx, [rax+10h] cmp rsi, rcx jz short loc_71C9C mov [rbx], rsi mov rdx, [rcx] mov [rbx+10h], rdx jmp short loc_71CA2 loc_71C9C: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rdx], xmm0 loc_71CA2: mov rdx, rax add rdx, 8 mov rsi, [rax+8] mov [rbx+8], rsi mov [rax], rcx mov qword ptr [rdx], 0 mov byte ptr [rcx], 0 mov rdi, [rsp+118h+var_F0]; void * cmp rdi, r13 jz short loc_71CD5 mov rsi, [rsp+118h+var_E0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_71CD5: mov rdi, [rsp+118h+var_110]; void * cmp rdi, r15 jz short loc_71CEC mov rsi, [rsp+118h+var_100] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_71CEC: mov rdi, [rsp+118h+var_C0]; void * cmp rdi, r12 jz short loc_71D03 mov rsi, [rsp+118h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_71D03: mov rax, rbx add rsp, 0F0h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+arg_20]; void * cmp rdi, r13 jz short loc_71D36 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_71D36 mov rbx, rax loc_71D36: mov rdi, [rsp+arg_0]; void * cmp rdi, r15 jz short loc_71D52 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_71D52 mov rbx, rax loc_71D52: mov rdi, [rsp+arg_50]; void * cmp rdi, r12 jz short loc_71D69 mov rsi, [rsp+arg_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_71D69: mov rdi, rbx call __Unwind_Resume
long long string_get_sortable_timestamp[abi:cxx11](long long a1) { long long v2; // r14 long long v3; // rax long long v4; // rax long long v5; // rax __int128 *v6; // rcx long long v7; // rax unsigned long long v8; // rax unsigned long long v9; // rdi unsigned long long v10; // rdi _QWORD *v11; // rax _OWORD *v12; // rcx void *v14; // [rsp+8h] [rbp-110h] BYREF long long v15; // [rsp+10h] [rbp-108h] __int128 v16; // [rsp+18h] [rbp-100h] BYREF void *v17; // [rsp+28h] [rbp-F0h] BYREF long long v18; // [rsp+30h] [rbp-E8h] _QWORD v19[2]; // [rsp+38h] [rbp-E0h] BYREF _BYTE v20[11]; // [rsp+4Dh] [rbp-CBh] BYREF void *v21[2]; // [rsp+58h] [rbp-C0h] BYREF _QWORD v22[3]; // [rsp+68h] [rbp-B0h] BYREF _BYTE v23[152]; // [rsp+80h] [rbp-98h] BYREF v2 = std::chrono::_V2::system_clock::now((std::chrono::_V2::system_clock *)a1); v22[2] = v2 / 1000000000; v3 = localtime(); strftime(v23, 100LL, "%Y_%m_%d-%H_%M_%S", v3); snprintf(v20, 11LL, "%09ld", v2 % 1000000000); v21[0] = v22; v4 = strlen(v23); std::string::_M_construct<char const*>((long long)v21, v23, (long long)&v23[v4]); v5 = std::string::append(v21, "."); v14 = &v16; v6 = (__int128 *)(v5 + 16); if ( *(_QWORD *)v5 == v5 + 16 ) { v16 = *v6; } else { v14 = *(void **)v5; *(_QWORD *)&v16 = *(_QWORD *)v6; } v15 = *(_QWORD *)(v5 + 8); *(_QWORD *)v5 = v6; *(_QWORD *)(v5 + 8) = 0LL; *(_BYTE *)(v5 + 16) = 0; v17 = v19; v7 = strlen(v20); std::string::_M_construct<char const*>((long long)&v17, v20, (long long)&v20[v7]); v8 = v18 + v15; v9 = 15LL; if ( v14 != &v16 ) v9 = v16; if ( v8 <= v9 ) goto LABEL_10; v10 = 15LL; if ( v17 != v19 ) v10 = v19[0]; if ( v8 <= v10 ) v11 = (_QWORD *)std::string::replace(&v17, 0LL, 0LL, v14, v15); else LABEL_10: v11 = (_QWORD *)std::string::_M_append(&v14, v17, v18); *(_QWORD *)a1 = a1 + 16; v12 = v11 + 2; if ( (_QWORD *)*v11 == v11 + 2 ) { *(_OWORD *)(a1 + 16) = *v12; } else { *(_QWORD *)a1 = *v11; *(_QWORD *)(a1 + 16) = *(_QWORD *)v12; } *(_QWORD *)(a1 + 8) = v11[1]; *v11 = v12; v11[1] = 0LL; *(_BYTE *)v12 = 0; if ( v17 != v19 ) operator delete(v17, v19[0] + 1LL); if ( v14 != &v16 ) operator delete(v14, v16 + 1); if ( v21[0] != v22 ) operator delete(v21[0], v22[0] + 1LL); return a1; }
string_get_sortable_timestamp[abi:cxx11]: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xf0 MOV RBX,RDI CALL 0x0011a090 MOV R14,RAX MOV RCX,0x112e0be826d694b3 IMUL RCX MOV R12,RDX MOV RAX,RDX SHR RAX,0x3f SAR R12,0x1a ADD R12,RAX LEA RDI,[RSP + 0x78] MOV qword ptr [RDI],R12 CALL 0x0011a680 LEA RDX,[0x1edd07] LEA R15,[RSP + 0x80] MOV ESI,0x64 MOV RDI,R15 MOV RCX,RAX CALL 0x0011a700 IMUL RAX,R12,0x3b9aca00 SUB R14,RAX LEA RDX,[0x1edd19] LEA RDI,[RSP + 0x4d] MOV ESI,0xb MOV RCX,R14 XOR EAX,EAX CALL 0x0011adc0 LEA R12,[RSP + 0x68] MOV qword ptr [R12 + -0x10],R12 MOV RDI,R15 CALL 0x0011a3d0 LEA RDX,[RSP + RAX*0x1] ADD RDX,0x80 LEA R14,[RSP + 0x58] MOV RDI,R14 MOV RSI,R15 CALL 0x00121b26 LAB_00171ba3: LEA RSI,[0x1e9311] MOV RDI,R14 CALL 0x0011b0d0 LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x00171bd9 MOV qword ptr [RSP + 0x8],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RDX JMP 0x00171be0 LAB_00171bd9: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R15],XMM0 LAB_00171be0: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LEA R13,[RSP + 0x38] MOV qword ptr [R13 + -0x10],R13 LEA R14,[RSP + 0x4d] MOV RDI,R14 CALL 0x0011a3d0 LEA RDX,[RSP + RAX*0x1] ADD RDX,0x4d LAB_00171c16: LEA RDI,[RSP + 0x28] MOV RSI,R14 CALL 0x00121b26 MOV RCX,qword ptr [RSP + 0x8] MOV R8,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x30] LEA RAX,[RDX + R8*0x1] MOV EDI,0xf CMP RCX,R15 JZ 0x00171c45 MOV RDI,qword ptr [RSP + 0x18] LAB_00171c45: MOV RSI,qword ptr [RSP + 0x28] CMP RAX,RDI JBE 0x00171c63 MOV EDI,0xf CMP RSI,R13 JZ 0x00171c5e MOV RDI,qword ptr [RSP + 0x38] LAB_00171c5e: CMP RAX,RDI JBE 0x00171c6f LAB_00171c63: LEA RDI,[RSP + 0x8] CALL 0x0011a250 JMP 0x00171c7d LAB_00171c6f: LEA RDI,[RSP + 0x28] XOR ESI,ESI XOR EDX,EDX CALL 0x0011a9c0 LAB_00171c7d: LEA RDX,[RBX + 0x10] MOV qword ptr [RBX],RDX MOV RSI,qword ptr [RAX] LEA RCX,[RAX + 0x10] CMP RSI,RCX JZ 0x00171c9c MOV qword ptr [RBX],RSI MOV RDX,qword ptr [RCX] MOV qword ptr [RBX + 0x10],RDX JMP 0x00171ca2 LAB_00171c9c: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RDX],XMM0 LAB_00171ca2: MOV RDX,RAX ADD RDX,0x8 MOV RSI,qword ptr [RAX + 0x8] MOV qword ptr [RBX + 0x8],RSI MOV qword ptr [RAX],RCX MOV qword ptr [RDX],0x0 MOV byte ptr [RCX],0x0 MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R13 JZ 0x00171cd5 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011a8c0 LAB_00171cd5: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R15 JZ 0x00171cec MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011a8c0 LAB_00171cec: MOV RDI,qword ptr [RSP + 0x58] CMP RDI,R12 JZ 0x00171d03 MOV RSI,qword ptr [RSP + 0x68] INC RSI CALL 0x0011a8c0 LAB_00171d03: MOV RAX,RBX ADD RSP,0xf0 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* string_get_sortable_timestamp[abi:cxx11]() */ void string_get_sortable_timestamp_abi_cxx11_(void) { int8 *puVar1; int8 uVar2; long lVar3; tm *__tp; size_t sVar4; long *plVar5; int8 *puVar6; ulong *puVar7; int8 *in_RDI; ulong uVar8; ulong *local_110; long local_108; ulong local_100; long lStack_f8; ulong *local_f0; long local_e8; ulong local_e0 [2]; char local_cb [11]; long *local_c0 [2]; long local_b0 [2]; long local_a0; char local_98 [112]; lVar3 = std::chrono::_V2::system_clock::now(); local_a0 = lVar3 / 1000000000; __tp = localtime(&local_a0); strftime(local_98,100,"%Y_%m_%d-%H_%M_%S",__tp); snprintf(local_cb,0xb,"%09ld",lVar3 % 1000000000); local_c0[0] = local_b0; sVar4 = strlen(local_98); std::__cxx11::string::_M_construct<char_const*>(local_c0,local_98,local_98 + sVar4); /* try { // try from 00171ba3 to 00171bb1 has its CatchHandler @ 00171d4f */ plVar5 = (long *)std::__cxx11::string::append((char *)local_c0); puVar7 = (ulong *)(plVar5 + 2); if ((ulong *)*plVar5 == puVar7) { local_100 = *puVar7; lStack_f8 = plVar5[3]; local_110 = &local_100; } else { local_100 = *puVar7; local_110 = (ulong *)*plVar5; } local_108 = plVar5[1]; *plVar5 = (long)puVar7; plVar5[1] = 0; *(int1 *)(plVar5 + 2) = 0; local_f0 = local_e0; sVar4 = strlen(local_cb); /* try { // try from 00171c16 to 00171c22 has its CatchHandler @ 00171d33 */ std::__cxx11::string::_M_construct<char_const*>(&local_f0,local_cb,local_cb + sVar4); uVar8 = 0xf; if (local_110 != &local_100) { uVar8 = local_100; } if (uVar8 < (ulong)(local_e8 + local_108)) { uVar8 = 0xf; if (local_f0 != local_e0) { uVar8 = local_e0[0]; } if ((ulong)(local_e8 + local_108) <= uVar8) { puVar6 = (int8 *) std::__cxx11::string::replace((ulong)&local_f0,0,(char *)0x0,(ulong)local_110); goto LAB_00171c7d; } } /* try { // try from 00171c63 to 00171c7c has its CatchHandler @ 00171d17 */ puVar6 = (int8 *)std::__cxx11::string::_M_append((char *)&local_110,(ulong)local_f0); LAB_00171c7d: *in_RDI = in_RDI + 2; puVar1 = puVar6 + 2; if ((int8 *)*puVar6 == puVar1) { uVar2 = puVar6[3]; in_RDI[2] = *puVar1; in_RDI[3] = uVar2; } else { *in_RDI = (int8 *)*puVar6; in_RDI[2] = *puVar1; } in_RDI[1] = puVar6[1]; *puVar6 = puVar1; puVar6[1] = 0; *(int1 *)puVar1 = 0; if (local_f0 != local_e0) { operator_delete(local_f0,local_e0[0] + 1); } if (local_110 != &local_100) { operator_delete(local_110,local_100 + 1); } if (local_c0[0] != local_b0) { operator_delete(local_c0[0],local_b0[0] + 1); } return; }
34,069
end_server
eloqsql/libmariadb/libmariadb/mariadb_lib.c
static void end_server(MYSQL *mysql) { /* if net->error 2 and reconnect is activated, we need to inform connection handler */ if (mysql->net.pvio != 0) { ma_pvio_close(mysql->net.pvio); mysql->net.pvio= 0; /* Marker */ } ma_net_end(&mysql->net); free_old_query(mysql); return; }
O3
c
end_server: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx movq (%rdi), %rdi testq %rdi, %rdi je 0x187b7 callq 0x20687 movq $0x0, (%rbx) movq %rbx, %rdi callq 0x341af movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %rbp jmp 0x1d48a
end_server: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi mov rdi, [rdi] test rdi, rdi jz short loc_187B7 call ma_pvio_close mov qword ptr [rbx], 0 loc_187B7: mov rdi, rbx call ma_net_end mov rdi, rbx add rsp, 8 pop rbx pop rbp jmp free_old_query
long long end_server(long long *a1) { long long v2; // rdi v2 = *a1; if ( v2 ) { ma_pvio_close(v2); *a1 = 0LL; } ma_net_end(a1); return free_old_query(a1); }
end_server: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI MOV RDI,qword ptr [RDI] TEST RDI,RDI JZ 0x001187b7 CALL 0x00120687 MOV qword ptr [RBX],0x0 LAB_001187b7: MOV RDI,RBX CALL 0x001341af MOV RDI,RBX ADD RSP,0x8 POP RBX POP RBP JMP 0x0011d48a
void end_server(long *param_1) { if (*param_1 != 0) { ma_pvio_close(); *param_1 = 0; } ma_net_end(param_1); free_old_query(param_1); return; }
34,070
my_strntoul_mb2_or_mb4
eloqsql/strings/ctype-ucs2.c
static ulong my_strntoul_mb2_or_mb4(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative= 0; int overflow; int cnv; my_wc_t wc; my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc; register unsigned int cutlim; register uint32 cutoff; register uint32 res; register const uchar *s= (const uchar*) nptr; register const uchar *e= (const uchar*) nptr + l; const uchar *save; *err= 0; do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { switch (wc) { case ' ' : break; case '\t': break; case '-' : negative= !negative; break; case '+' : break; default : goto bs; } } else /* No more characters or bad multibyte sequence */ { if (endptr !=NULL ) *endptr= (char*)s; err[0]= (cnv == MY_CS_ILSEQ) ? EILSEQ : EDOM; return 0; } s+= cnv; } while (1); bs: overflow= 0; res= 0; save= s; cutoff= ((uint32)~0L) / (uint32) base; cutlim= (uint) (((uint32)~0L) % (uint32) base); do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { s+= cnv; if (wc >= '0' && wc <= '9') wc-= '0'; else if (wc >= 'A' && wc <= 'Z') wc= wc - 'A' + 10; else if (wc >= 'a' && wc <= 'z') wc= wc - 'a' + 10; else break; if ((int) wc >= base) break; if (res > cutoff || (res == cutoff && wc > cutlim)) overflow = 1; else { res*= (uint32) base; res+= wc; } } else if (cnv == MY_CS_ILSEQ) { if (endptr != NULL ) *endptr= (char*)s; err[0]= EILSEQ; return 0; } else { /* No more characters */ break; } } while(1); if (endptr != NULL) *endptr= (char *) s; if (s == save) { err[0]= EDOM; return 0L; } if (overflow) { err[0]= (ERANGE); return (~(uint32) 0); } return (negative ? -((long) res) : (long) res); }
O0
c
my_strntoul_mb2_or_mb4: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movl $0x0, -0x3c(%rbp) movq -0x10(%rbp), %rax movq 0xb8(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x58(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x70(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x78(%rbp) movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x58(%rbp), %rax movq -0x10(%rbp), %rdi movq -0x70(%rbp), %rdx movq -0x78(%rbp), %rcx leaq -0x50(%rbp), %rsi callq *%rax movl %eax, -0x44(%rbp) cmpl $0x0, %eax jle 0x8e6b1 movq -0x50(%rbp), %rax addq $-0x9, %rax movq %rax, -0x88(%rbp) subq $0x24, %rax ja 0x8e6ad movq -0x88(%rbp), %rax leaq 0x158559(%rip), %rcx # 0x1e6be4 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax jmp 0x8e6af jmp 0x8e6af cmpl $0x0, -0x3c(%rbp) setne %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x3c(%rbp) jmp 0x8e6af jmp 0x8e6af jmp 0x8e708 jmp 0x8e6e9 cmpq $0x0, -0x30(%rbp) je 0x8e6c3 movq -0x70(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movl -0x44(%rbp), %edx movl $0x21, %ecx movl $0x54, %eax cmpl $0x0, %edx cmovel %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, (%rax) movq $0x0, -0x8(%rbp) jmp 0x8e8d1 movl -0x44(%rbp), %ecx movq -0x70(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x70(%rbp) movb $0x1, %al testb $0x1, %al jne 0x8e64a jmp 0x8e706 jmp 0x8e708 movl $0x0, -0x40(%rbp) movl $0x0, -0x64(%rbp) movq -0x70(%rbp), %rax movq %rax, -0x80(%rbp) movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x24(%rbp) movl %eax, -0x60(%rbp) movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x24(%rbp) movl %edx, -0x5c(%rbp) movq -0x58(%rbp), %rax movq -0x10(%rbp), %rdi movq -0x70(%rbp), %rdx movq -0x78(%rbp), %rcx leaq -0x50(%rbp), %rsi callq *%rax movl %eax, -0x44(%rbp) cmpl $0x0, %eax jle 0x8e819 movl -0x44(%rbp), %ecx movq -0x70(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x70(%rbp) cmpq $0x30, -0x50(%rbp) jb 0x8e787 cmpq $0x39, -0x50(%rbp) ja 0x8e787 movq -0x50(%rbp), %rax subq $0x30, %rax movq %rax, -0x50(%rbp) jmp 0x8e7d0 cmpq $0x41, -0x50(%rbp) jb 0x8e7a7 cmpq $0x5a, -0x50(%rbp) ja 0x8e7a7 movq -0x50(%rbp), %rax subq $0x41, %rax addq $0xa, %rax movq %rax, -0x50(%rbp) jmp 0x8e7ce cmpq $0x61, -0x50(%rbp) jb 0x8e7c7 cmpq $0x7a, -0x50(%rbp) ja 0x8e7c7 movq -0x50(%rbp), %rax subq $0x61, %rax addq $0xa, %rax movq %rax, -0x50(%rbp) jmp 0x8e7cc jmp 0x8e858 jmp 0x8e7ce jmp 0x8e7d0 movq -0x50(%rbp), %rax cmpl -0x24(%rbp), %eax jl 0x8e7db jmp 0x8e858 movl -0x64(%rbp), %eax cmpl -0x60(%rbp), %eax ja 0x8e7f7 movl -0x64(%rbp), %eax cmpl -0x60(%rbp), %eax jne 0x8e800 movq -0x50(%rbp), %rax movl -0x5c(%rbp), %ecx cmpq %rcx, %rax jbe 0x8e800 movl $0x1, -0x40(%rbp) jmp 0x8e817 movl -0x24(%rbp), %eax imull -0x64(%rbp), %eax movl %eax, -0x64(%rbp) movq -0x50(%rbp), %rcx movl -0x64(%rbp), %eax addq %rcx, %rax movl %eax, -0x64(%rbp) jmp 0x8e84a cmpl $0x0, -0x44(%rbp) jne 0x8e848 cmpq $0x0, -0x30(%rbp) je 0x8e831 movq -0x70(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rax movl $0x54, (%rax) movq $0x0, -0x8(%rbp) jmp 0x8e8d1 jmp 0x8e858 jmp 0x8e84c movb $0x1, %al testb $0x1, %al jne 0x8e738 jmp 0x8e858 cmpq $0x0, -0x30(%rbp) je 0x8e86a movq -0x70(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movq -0x70(%rbp), %rax cmpq -0x80(%rbp), %rax jne 0x8e888 movq -0x38(%rbp), %rax movl $0x21, (%rax) movq $0x0, -0x8(%rbp) jmp 0x8e8d1 cmpl $0x0, -0x40(%rbp) je 0x8e8a3 movq -0x38(%rbp), %rax movl $0x22, (%rax) movl $0xffffffff, %eax # imm = 0xFFFFFFFF movq %rax, -0x8(%rbp) jmp 0x8e8d1 cmpl $0x0, -0x3c(%rbp) je 0x8e8bc movl -0x64(%rbp), %eax movl %eax, %ecx xorl %eax, %eax subq %rcx, %rax movq %rax, -0x90(%rbp) jmp 0x8e8c6 movl -0x64(%rbp), %eax movq %rax, -0x90(%rbp) movq -0x90(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x90, %rsp popq %rbp retq nop
my_strntoul_mb2_or_mb4: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov [rbp+var_3C], 0 mov rax, [rbp+var_10] mov rax, [rax+0B8h] mov rax, [rax+28h] mov [rbp+var_58], rax mov rax, [rbp+var_18] mov [rbp+var_70], rax mov rax, [rbp+var_18] add rax, [rbp+var_20] mov [rbp+var_78], rax mov rax, [rbp+var_38] mov dword ptr [rax], 0 loc_8E64A: mov rax, [rbp+var_58] mov rdi, [rbp+var_10] mov rdx, [rbp+var_70] mov rcx, [rbp+var_78] lea rsi, [rbp+var_50] call rax mov [rbp+var_44], eax cmp eax, 0 jle short loc_8E6B1 mov rax, [rbp+var_50] add rax, 0FFFFFFFFFFFFFFF7h; switch 37 cases mov [rbp+var_88], rax sub rax, 24h ja short def_8E692; jumptable 000000000008E692 default case, cases 10-31,33-42,44 mov rax, [rbp+var_88] lea rcx, jpt_8E692 movsxd rax, ds:(jpt_8E692 - 1E6BE4h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_8E694: jmp short loc_8E6AF; jumptable 000000000008E692 case 32 loc_8E696: jmp short loc_8E6AF; jumptable 000000000008E692 case 9 loc_8E698: cmp [rbp+var_3C], 0; jumptable 000000000008E692 case 45 setnz al xor al, 0FFh and al, 1 movzx eax, al mov [rbp+var_3C], eax jmp short loc_8E6AF loc_8E6AB: jmp short loc_8E6AF; jumptable 000000000008E692 case 43 def_8E692: jmp short loc_8E708; jumptable 000000000008E692 default case, cases 10-31,33-42,44 loc_8E6AF: jmp short loc_8E6E9 loc_8E6B1: cmp [rbp+var_30], 0 jz short loc_8E6C3 mov rcx, [rbp+var_70] mov rax, [rbp+var_30] mov [rax], rcx loc_8E6C3: mov edx, [rbp+var_44] mov ecx, 21h ; '!' mov eax, 54h ; 'T' cmp edx, 0 cmovz ecx, eax mov rax, [rbp+var_38] mov [rax], ecx mov [rbp+var_8], 0 jmp loc_8E8D1 loc_8E6E9: mov ecx, [rbp+var_44] mov rax, [rbp+var_70] movsxd rcx, ecx add rax, rcx mov [rbp+var_70], rax mov al, 1 test al, 1 jnz loc_8E64A jmp short $+2 loc_8E706: jmp short $+2 loc_8E708: mov [rbp+var_40], 0 mov [rbp+var_64], 0 mov rax, [rbp+var_70] mov [rbp+var_80], rax mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_24] mov [rbp+var_60], eax mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_24] mov [rbp+var_5C], edx loc_8E738: mov rax, [rbp+var_58] mov rdi, [rbp+var_10] mov rdx, [rbp+var_70] mov rcx, [rbp+var_78] lea rsi, [rbp+var_50] call rax mov [rbp+var_44], eax cmp eax, 0 jle loc_8E819 mov ecx, [rbp+var_44] mov rax, [rbp+var_70] movsxd rcx, ecx add rax, rcx mov [rbp+var_70], rax cmp [rbp+var_50], 30h ; '0' jb short loc_8E787 cmp [rbp+var_50], 39h ; '9' ja short loc_8E787 mov rax, [rbp+var_50] sub rax, 30h ; '0' mov [rbp+var_50], rax jmp short loc_8E7D0 loc_8E787: cmp [rbp+var_50], 41h ; 'A' jb short loc_8E7A7 cmp [rbp+var_50], 5Ah ; 'Z' ja short loc_8E7A7 mov rax, [rbp+var_50] sub rax, 41h ; 'A' add rax, 0Ah mov [rbp+var_50], rax jmp short loc_8E7CE loc_8E7A7: cmp [rbp+var_50], 61h ; 'a' jb short loc_8E7C7 cmp [rbp+var_50], 7Ah ; 'z' ja short loc_8E7C7 mov rax, [rbp+var_50] sub rax, 61h ; 'a' add rax, 0Ah mov [rbp+var_50], rax jmp short loc_8E7CC loc_8E7C7: jmp loc_8E858 loc_8E7CC: jmp short $+2 loc_8E7CE: jmp short $+2 loc_8E7D0: mov rax, [rbp+var_50] cmp eax, [rbp+var_24] jl short loc_8E7DB jmp short loc_8E858 loc_8E7DB: mov eax, [rbp+var_64] cmp eax, [rbp+var_60] ja short loc_8E7F7 mov eax, [rbp+var_64] cmp eax, [rbp+var_60] jnz short loc_8E800 mov rax, [rbp+var_50] mov ecx, [rbp+var_5C] cmp rax, rcx jbe short loc_8E800 loc_8E7F7: mov [rbp+var_40], 1 jmp short loc_8E817 loc_8E800: mov eax, [rbp+var_24] imul eax, [rbp+var_64] mov [rbp+var_64], eax mov rcx, [rbp+var_50] mov eax, [rbp+var_64] add rax, rcx mov [rbp+var_64], eax loc_8E817: jmp short loc_8E84A loc_8E819: cmp [rbp+var_44], 0 jnz short loc_8E848 cmp [rbp+var_30], 0 jz short loc_8E831 mov rcx, [rbp+var_70] mov rax, [rbp+var_30] mov [rax], rcx loc_8E831: mov rax, [rbp+var_38] mov dword ptr [rax], 54h ; 'T' mov [rbp+var_8], 0 jmp loc_8E8D1 loc_8E848: jmp short loc_8E858 loc_8E84A: jmp short $+2 loc_8E84C: mov al, 1 test al, 1 jnz loc_8E738 jmp short $+2 loc_8E858: cmp [rbp+var_30], 0 jz short loc_8E86A mov rcx, [rbp+var_70] mov rax, [rbp+var_30] mov [rax], rcx loc_8E86A: mov rax, [rbp+var_70] cmp rax, [rbp+var_80] jnz short loc_8E888 mov rax, [rbp+var_38] mov dword ptr [rax], 21h ; '!' mov [rbp+var_8], 0 jmp short loc_8E8D1 loc_8E888: cmp [rbp+var_40], 0 jz short loc_8E8A3 mov rax, [rbp+var_38] mov dword ptr [rax], 22h ; '"' mov eax, 0FFFFFFFFh mov [rbp+var_8], rax jmp short loc_8E8D1 loc_8E8A3: cmp [rbp+var_3C], 0 jz short loc_8E8BC mov eax, [rbp+var_64] mov ecx, eax xor eax, eax sub rax, rcx mov [rbp+var_90], rax jmp short loc_8E8C6 loc_8E8BC: mov eax, [rbp+var_64] mov [rbp+var_90], rax loc_8E8C6: mov rax, [rbp+var_90] mov [rbp+var_8], rax loc_8E8D1: mov rax, [rbp+var_8] add rsp, 90h pop rbp retn
long long my_strntoul_mb2_or_mb4(long long a1, long long a2, long long a3, unsigned int a4, _QWORD *a5, int *a6) { int v6; // ecx long long v9; // [rsp+10h] [rbp-80h] long long v10; // [rsp+18h] [rbp-78h] long long v11; // [rsp+20h] [rbp-70h] unsigned int v12; // [rsp+2Ch] [rbp-64h] unsigned int v13; // [rsp+30h] [rbp-60h] unsigned int v14; // [rsp+34h] [rbp-5Ch] long long ( *v15)(long long, unsigned long long *, long long, long long); // [rsp+38h] [rbp-58h] unsigned long long v16; // [rsp+40h] [rbp-50h] BYREF int v17; // [rsp+4Ch] [rbp-44h] int v18; // [rsp+50h] [rbp-40h] BOOL v19; // [rsp+54h] [rbp-3Ch] int *v20; // [rsp+58h] [rbp-38h] _QWORD *v21; // [rsp+60h] [rbp-30h] unsigned int v22; // [rsp+6Ch] [rbp-24h] long long v23; // [rsp+70h] [rbp-20h] long long v24; // [rsp+78h] [rbp-18h] long long v25; // [rsp+80h] [rbp-10h] v25 = a1; v24 = a2; v23 = a3; v22 = a4; v21 = a5; v20 = a6; v19 = 0; v15 = *(long long ( **)(long long, unsigned long long *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL); v11 = a2; v10 = a3 + a2; *a6 = 0; while ( 2 ) { v17 = v15(v25, &v16, v11, v10); if ( v17 <= 0 ) { if ( v21 ) *v21 = v11; v6 = 33; if ( !v17 ) v6 = 84; *v20 = v6; return 0LL; } else { switch ( v16 ) { case 9uLL: case 0x20uLL: case 0x2BuLL: goto LABEL_10; case 0x2DuLL: v19 = !v19; LABEL_10: v11 += v17; continue; default: v18 = 0; v12 = 0; v9 = v11; v13 = 0xFFFFFFFF / v22; v14 = 0xFFFFFFFF % v22; break; } while ( 1 ) { v17 = v15(v25, &v16, v11, v10); if ( v17 <= 0 ) break; v11 += v17; if ( v16 < 0x30 || v16 > 0x39 ) { if ( v16 < 0x41 || v16 > 0x5A ) { if ( v16 < 0x61 || v16 > 0x7A ) goto LABEL_33; v16 = v16 - 97 + 10; } else { v16 = v16 - 65 + 10; } } else { v16 -= 48LL; } if ( (int)v16 >= (int)v22 ) goto LABEL_33; if ( v12 > v13 || v12 == v13 && v16 > v14 ) v18 = 1; else v12 = v16 + v12 * v22; } if ( v17 ) { LABEL_33: if ( v21 ) *v21 = v11; if ( v11 == v9 ) { *v20 = 33; return 0LL; } else if ( v18 ) { *v20 = 34; return 0xFFFFFFFFLL; } else if ( v19 ) { return -(long long)v12; } else { return v12; } } if ( v21 ) *v21 = v11; *v20 = 84; return 0LL; } } }
my_strntoul_mb2_or_mb4: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV dword ptr [RBP + -0x3c],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x78],RAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 LAB_0018e64a: MOV RAX,qword ptr [RBP + -0x58] MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x70] MOV RCX,qword ptr [RBP + -0x78] LEA RSI,[RBP + -0x50] CALL RAX MOV dword ptr [RBP + -0x44],EAX CMP EAX,0x0 JLE 0x0018e6b1 MOV RAX,qword ptr [RBP + -0x50] ADD RAX,-0x9 MOV qword ptr [RBP + -0x88],RAX SUB RAX,0x24 JA 0x0018e6ad MOV RAX,qword ptr [RBP + -0x88] LEA RCX,[0x2e6be4] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_20: JMP 0x0018e6af caseD_9: JMP 0x0018e6af caseD_2d: CMP dword ptr [RBP + -0x3c],0x0 SETNZ AL XOR AL,0xff AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RBP + -0x3c],EAX JMP 0x0018e6af caseD_2b: JMP 0x0018e6af caseD_a: JMP 0x0018e708 LAB_0018e6af: JMP 0x0018e6e9 LAB_0018e6b1: CMP qword ptr [RBP + -0x30],0x0 JZ 0x0018e6c3 MOV RCX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_0018e6c3: MOV EDX,dword ptr [RBP + -0x44] MOV ECX,0x21 MOV EAX,0x54 CMP EDX,0x0 CMOVZ ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX MOV qword ptr [RBP + -0x8],0x0 JMP 0x0018e8d1 LAB_0018e6e9: MOV ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x70] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x70],RAX MOV AL,0x1 TEST AL,0x1 JNZ 0x0018e64a JMP 0x0018e706 LAB_0018e706: JMP 0x0018e708 LAB_0018e708: MOV dword ptr [RBP + -0x40],0x0 MOV dword ptr [RBP + -0x64],0x0 MOV RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x80],RAX MOV EAX,0xffffffff XOR EDX,EDX DIV dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x60],EAX MOV EAX,0xffffffff XOR EDX,EDX DIV dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x5c],EDX LAB_0018e738: MOV RAX,qword ptr [RBP + -0x58] MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x70] MOV RCX,qword ptr [RBP + -0x78] LEA RSI,[RBP + -0x50] CALL RAX MOV dword ptr [RBP + -0x44],EAX CMP EAX,0x0 JLE 0x0018e819 MOV ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x70] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x70],RAX CMP qword ptr [RBP + -0x50],0x30 JC 0x0018e787 CMP qword ptr [RBP + -0x50],0x39 JA 0x0018e787 MOV RAX,qword ptr [RBP + -0x50] SUB RAX,0x30 MOV qword ptr [RBP + -0x50],RAX JMP 0x0018e7d0 LAB_0018e787: CMP qword ptr [RBP + -0x50],0x41 JC 0x0018e7a7 CMP qword ptr [RBP + -0x50],0x5a JA 0x0018e7a7 MOV RAX,qword ptr [RBP + -0x50] SUB RAX,0x41 ADD RAX,0xa MOV qword ptr [RBP + -0x50],RAX JMP 0x0018e7ce LAB_0018e7a7: CMP qword ptr [RBP + -0x50],0x61 JC 0x0018e7c7 CMP qword ptr [RBP + -0x50],0x7a JA 0x0018e7c7 MOV RAX,qword ptr [RBP + -0x50] SUB RAX,0x61 ADD RAX,0xa MOV qword ptr [RBP + -0x50],RAX JMP 0x0018e7cc LAB_0018e7c7: JMP 0x0018e858 LAB_0018e7cc: JMP 0x0018e7ce LAB_0018e7ce: JMP 0x0018e7d0 LAB_0018e7d0: MOV RAX,qword ptr [RBP + -0x50] CMP EAX,dword ptr [RBP + -0x24] JL 0x0018e7db JMP 0x0018e858 LAB_0018e7db: MOV EAX,dword ptr [RBP + -0x64] CMP EAX,dword ptr [RBP + -0x60] JA 0x0018e7f7 MOV EAX,dword ptr [RBP + -0x64] CMP EAX,dword ptr [RBP + -0x60] JNZ 0x0018e800 MOV RAX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x5c] CMP RAX,RCX JBE 0x0018e800 LAB_0018e7f7: MOV dword ptr [RBP + -0x40],0x1 JMP 0x0018e817 LAB_0018e800: MOV EAX,dword ptr [RBP + -0x24] IMUL EAX,dword ptr [RBP + -0x64] MOV dword ptr [RBP + -0x64],EAX MOV RCX,qword ptr [RBP + -0x50] MOV EAX,dword ptr [RBP + -0x64] ADD RAX,RCX MOV dword ptr [RBP + -0x64],EAX LAB_0018e817: JMP 0x0018e84a LAB_0018e819: CMP dword ptr [RBP + -0x44],0x0 JNZ 0x0018e848 CMP qword ptr [RBP + -0x30],0x0 JZ 0x0018e831 MOV RCX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_0018e831: MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x54 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0018e8d1 LAB_0018e848: JMP 0x0018e858 LAB_0018e84a: JMP 0x0018e84c LAB_0018e84c: MOV AL,0x1 TEST AL,0x1 JNZ 0x0018e738 JMP 0x0018e858 LAB_0018e858: CMP qword ptr [RBP + -0x30],0x0 JZ 0x0018e86a MOV RCX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_0018e86a: MOV RAX,qword ptr [RBP + -0x70] CMP RAX,qword ptr [RBP + -0x80] JNZ 0x0018e888 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x21 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0018e8d1 LAB_0018e888: CMP dword ptr [RBP + -0x40],0x0 JZ 0x0018e8a3 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x22 MOV EAX,0xffffffff MOV qword ptr [RBP + -0x8],RAX JMP 0x0018e8d1 LAB_0018e8a3: CMP dword ptr [RBP + -0x3c],0x0 JZ 0x0018e8bc MOV EAX,dword ptr [RBP + -0x64] MOV ECX,EAX XOR EAX,EAX SUB RAX,RCX MOV qword ptr [RBP + -0x90],RAX JMP 0x0018e8c6 LAB_0018e8bc: MOV EAX,dword ptr [RBP + -0x64] MOV qword ptr [RBP + -0x90],RAX LAB_0018e8c6: MOV RAX,qword ptr [RBP + -0x90] MOV qword ptr [RBP + -0x8],RAX LAB_0018e8d1: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x90 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x0018e704) */ /* WARNING: Removing unreachable block (ram,0x0018e856) */ ulong my_strntoul_mb2_or_mb4 (long param_1,long param_2,long param_3,uint param_4,long *param_5, int4 *param_6) { code *pcVar1; ulong uVar2; long lVar3; uint uVar4; int4 uVar5; ulong local_98; long local_78; uint local_6c; ulong local_58; int local_4c; int local_48; uint local_44; int4 *local_40; long *local_38; uint local_2c; long local_28; long local_20; long local_18; ulong local_10; local_44 = 0; pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); *param_6 = 0; local_78 = param_2; local_40 = param_6; local_38 = param_5; local_2c = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; do { lVar3 = local_78; local_4c = (*pcVar1)(local_18,&local_58,local_78,param_2 + param_3); if (local_4c < 1) { if (local_38 != (long *)0x0) { *local_38 = local_78; } uVar5 = 0x21; if (local_4c == 0) { uVar5 = 0x54; } *local_40 = uVar5; return 0; } switch(local_58) { case 9: break; default: local_48 = 0; local_6c = 0; uVar4 = (uint)(0xffffffff / (ulong)local_2c); uVar2 = (ulong)local_2c; goto LAB_0018e738; case 0x20: break; case 0x2b: break; case 0x2d: local_44 = (uint)((local_44 != 0 ^ 0xffU) & 1); } local_78 = local_78 + local_4c; } while( true ); LAB_0018e738: local_4c = (*pcVar1)(local_18,&local_58,local_78,param_2 + param_3); if (local_4c < 1) { if (local_4c == 0) { if (local_38 != (long *)0x0) { *local_38 = local_78; } *local_40 = 0x54; local_10 = 0; } else { LAB_0018e858: if (local_38 != (long *)0x0) { *local_38 = local_78; } if (local_78 == lVar3) { *local_40 = 0x21; local_10 = 0; } else if (local_48 == 0) { if (local_44 == 0) { local_98 = (ulong)local_6c; } else { local_98 = -(ulong)local_6c; } local_10 = local_98; } else { *local_40 = 0x22; local_10 = 0xffffffff; } } return local_10; } local_78 = local_78 + local_4c; if ((local_58 < 0x30) || (0x39 < local_58)) { if ((local_58 < 0x41) || (0x5a < local_58)) { if ((local_58 < 0x61) || (0x7a < local_58)) goto LAB_0018e858; local_58 = local_58 - 0x57; } else { local_58 = local_58 - 0x37; } } else { local_58 = local_58 - 0x30; } if ((int)local_2c <= (int)local_58) goto LAB_0018e858; if ((uVar4 < local_6c) || ((local_6c == uVar4 && (0xffffffffU % uVar2 < local_58)))) { local_48 = 1; } else { local_6c = local_2c * local_6c + (int)local_58; } goto LAB_0018e738; }
34,071
my_strntoul_mb2_or_mb4
eloqsql/strings/ctype-ucs2.c
static ulong my_strntoul_mb2_or_mb4(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative= 0; int overflow; int cnv; my_wc_t wc; my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc; register unsigned int cutlim; register uint32 cutoff; register uint32 res; register const uchar *s= (const uchar*) nptr; register const uchar *e= (const uchar*) nptr + l; const uchar *save; *err= 0; do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { switch (wc) { case ' ' : break; case '\t': break; case '-' : negative= !negative; break; case '+' : break; default : goto bs; } } else /* No more characters or bad multibyte sequence */ { if (endptr !=NULL ) *endptr= (char*)s; err[0]= (cnv == MY_CS_ILSEQ) ? EILSEQ : EDOM; return 0; } s+= cnv; } while (1); bs: overflow= 0; res= 0; save= s; cutoff= ((uint32)~0L) / (uint32) base; cutlim= (uint) (((uint32)~0L) % (uint32) base); do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { s+= cnv; if (wc >= '0' && wc <= '9') wc-= '0'; else if (wc >= 'A' && wc <= 'Z') wc= wc - 'A' + 10; else if (wc >= 'a' && wc <= 'z') wc= wc - 'a' + 10; else break; if ((int) wc >= base) break; if (res > cutoff || (res == cutoff && wc > cutlim)) overflow = 1; else { res*= (uint32) base; res+= wc; } } else if (cnv == MY_CS_ILSEQ) { if (endptr != NULL ) *endptr= (char*)s; err[0]= EILSEQ; return 0; } else { /* No more characters */ break; } } while(1); if (endptr != NULL) *endptr= (char *) s; if (s == save) { err[0]= EDOM; return 0L; } if (overflow) { err[0]= (ERANGE); return (~(uint32) 0); } return (negative ? -((long) res) : (long) res); }
O3
c
my_strntoul_mb2_or_mb4: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %r8, -0x40(%rbp) movl %ecx, -0x34(%rbp) movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %r14 movq 0xb8(%rdi), %rax movq 0x28(%rax), %r12 addq %rsi, %r13 movq %r9, -0x50(%rbp) movl $0x0, (%r9) leaq -0x30(%rbp), %rsi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jle 0x66931 movl $0x0, -0x38(%rbp) leaq -0x30(%rbp), %rbx movq -0x30(%rbp), %rcx cmpq $0x2a, %rcx jg 0x66901 cmpq $0x9, %rcx je 0x66919 cmpq $0x20, %rcx je 0x66919 jmp 0x66963 cmpq $0x2b, %rcx je 0x66919 cmpq $0x2d, %rcx jne 0x66963 xorl %ecx, %ecx cmpl $0x0, -0x38(%rbp) sete %cl movl %ecx, -0x38(%rbp) movl %eax, %eax addq %rax, %r15 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jg 0x668e9 movq -0x40(%rbp), %rcx testq %rcx, %rcx je 0x6693d movq %r15, (%rcx) testl %eax, %eax movl $0x54, %eax movl $0x21, %ecx cmovel %eax, %ecx movq -0x50(%rbp), %rax movl %ecx, (%rax) xorl %eax, %eax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x34(%rbp) movl %edx, %ebx movl %eax, -0x44(%rbp) leaq -0x30(%rbp), %rsi movq %r14, %rdi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jle 0x66a27 movq %r12, -0x68(%rbp) movl %ebx, %ecx movq %rcx, -0x60(%rbp) xorl %ecx, %ecx movq %r15, %rbx xorl %edi, %edi movq %rbx, %rsi movl %eax, %ebx addq %rsi, %rbx movq -0x30(%rbp), %rsi leaq -0x30(%rsi), %rax cmpq $0x9, %rax ja 0x669b7 movq %rax, -0x30(%rbp) jmp 0x669dc leaq -0x41(%rsi), %rax cmpq $0x19, %rax ja 0x669c7 addq $-0x37, %rsi jmp 0x669d5 leaq -0x61(%rsi), %rax cmpq $0x19, %rax ja 0x66a38 addq $-0x57, %rsi movq %rsi, -0x30(%rbp) movq %rsi, %rax cmpl -0x34(%rbp), %eax jge 0x66a38 movl $0x1, %esi cmpl -0x44(%rbp), %ecx ja 0x669ff jne 0x669f7 movl -0x44(%rbp), %r12d cmpq -0x60(%rbp), %rax ja 0x66a02 imull -0x34(%rbp), %ecx addl %eax, %ecx movl %edi, %esi movl %ecx, %r12d movl %esi, -0x54(%rbp) movq %r14, %rdi leaq -0x30(%rbp), %rsi movq %rbx, %rdx movq %r13, %rcx callq *-0x68(%rbp) movl -0x54(%rbp), %esi movl %r12d, %ecx movl %esi, %edi testl %eax, %eax jg 0x6699b jmp 0x66a2f xorl %r12d, %r12d movq %r15, %rbx xorl %esi, %esi testl %eax, %eax je 0x66a70 movl %esi, %edi movl %r12d, %ecx movq -0x40(%rbp), %rax testq %rax, %rax je 0x66a44 movq %rbx, (%rax) cmpq %r15, %rbx je 0x66a61 testl %edi, %edi je 0x66a8b movq -0x50(%rbp), %rax movl $0x22, (%rax) movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0x66954 movq -0x50(%rbp), %rax movl $0x21, (%rax) jmp 0x66952 movq -0x40(%rbp), %rax testq %rax, %rax je 0x66a7c movq %rbx, (%rax) movq -0x50(%rbp), %rax movl $0x54, (%rax) jmp 0x66952 movl %ecx, %ecx movq %rcx, %rax negq %rax cmpl $0x0, -0x38(%rbp) cmoveq %rcx, %rax jmp 0x66954
my_strntoul_mb2_or_mb4: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov [rbp+var_40], r8 mov [rbp+var_34], ecx mov r13, rdx mov r15, rsi mov r14, rdi mov rax, [rdi+0B8h] mov r12, [rax+28h] add r13, rsi mov [rbp+var_50], r9 mov dword ptr [r9], 0 lea rsi, [rbp+var_30] mov rdx, r15 mov rcx, r13 call r12 test eax, eax jle short loc_66931 mov [rbp+var_38], 0 lea rbx, [rbp+var_30] loc_668E9: mov rcx, [rbp+var_30] cmp rcx, 2Ah ; '*' jg short loc_66901 cmp rcx, 9 jz short loc_66919 cmp rcx, 20h ; ' ' jz short loc_66919 jmp short loc_66963 loc_66901: cmp rcx, 2Bh ; '+' jz short loc_66919 cmp rcx, 2Dh ; '-' jnz short loc_66963 xor ecx, ecx cmp [rbp+var_38], 0 setz cl mov [rbp+var_38], ecx loc_66919: mov eax, eax add r15, rax mov rdi, r14 mov rsi, rbx mov rdx, r15 mov rcx, r13 call r12 test eax, eax jg short loc_668E9 loc_66931: mov rcx, [rbp+var_40] test rcx, rcx jz short loc_6693D mov [rcx], r15 loc_6693D: test eax, eax mov eax, 54h ; 'T' mov ecx, 21h ; '!' cmovz ecx, eax mov rax, [rbp+var_50] mov [rax], ecx loc_66952: xor eax, eax loc_66954: add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_66963: mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_34] mov ebx, edx mov [rbp+var_44], eax lea rsi, [rbp+var_30] mov rdi, r14 mov rdx, r15 mov rcx, r13 call r12 test eax, eax jle loc_66A27 mov [rbp+var_68], r12 mov ecx, ebx mov [rbp+var_60], rcx xor ecx, ecx mov rbx, r15 xor edi, edi loc_6699B: mov rsi, rbx mov ebx, eax add rbx, rsi mov rsi, [rbp+var_30] lea rax, [rsi-30h] cmp rax, 9 ja short loc_669B7 mov [rbp+var_30], rax jmp short loc_669DC loc_669B7: lea rax, [rsi-41h] cmp rax, 19h ja short loc_669C7 add rsi, 0FFFFFFFFFFFFFFC9h jmp short loc_669D5 loc_669C7: lea rax, [rsi-61h] cmp rax, 19h ja short loc_66A38 add rsi, 0FFFFFFFFFFFFFFA9h loc_669D5: mov [rbp+var_30], rsi mov rax, rsi loc_669DC: cmp eax, [rbp+var_34] jge short loc_66A38 mov esi, 1 cmp ecx, [rbp+var_44] ja short loc_669FF jnz short loc_669F7 mov r12d, [rbp+var_44] cmp rax, [rbp+var_60] ja short loc_66A02 loc_669F7: imul ecx, [rbp+var_34] add ecx, eax mov esi, edi loc_669FF: mov r12d, ecx loc_66A02: mov [rbp+var_54], esi mov rdi, r14 lea rsi, [rbp+var_30] mov rdx, rbx mov rcx, r13 call [rbp+var_68] mov esi, [rbp+var_54] mov ecx, r12d mov edi, esi test eax, eax jg loc_6699B jmp short loc_66A2F loc_66A27: xor r12d, r12d mov rbx, r15 xor esi, esi loc_66A2F: test eax, eax jz short loc_66A70 mov edi, esi mov ecx, r12d loc_66A38: mov rax, [rbp+var_40] test rax, rax jz short loc_66A44 mov [rax], rbx loc_66A44: cmp rbx, r15 jz short loc_66A61 test edi, edi jz short loc_66A8B mov rax, [rbp+var_50] mov dword ptr [rax], 22h ; '"' mov eax, 0FFFFFFFFh jmp loc_66954 loc_66A61: mov rax, [rbp+var_50] mov dword ptr [rax], 21h ; '!' jmp loc_66952 loc_66A70: mov rax, [rbp+var_40] test rax, rax jz short loc_66A7C mov [rax], rbx loc_66A7C: mov rax, [rbp+var_50] mov dword ptr [rax], 54h ; 'T' jmp loc_66952 loc_66A8B: mov ecx, ecx mov rax, rcx neg rax cmp [rbp+var_38], 0 cmovz rax, rcx jmp loc_66954
long long my_strntoul_mb2_or_mb4(long long a1, long long a2, long long a3, unsigned int a4, _QWORD *a5, int *a6) { long long v6; // r15 long long ( *v8)(long long, _QWORD *, long long, long long); // r12 long long v9; // r13 int v10; // eax int v11; // ecx long long result; // rax int v13; // eax unsigned int v14; // ecx long long v15; // rbx int v16; // edi unsigned long long v17; // rax long long v18; // rsi int v19; // esi unsigned int v20; // r12d long long ( *v21)(long long, _QWORD *, long long, long long); // [rsp+8h] [rbp-68h] unsigned int v23; // [rsp+2Ch] [rbp-44h] BOOL v25; // [rsp+38h] [rbp-38h] _QWORD v27[6]; // [rsp+40h] [rbp-30h] BYREF v6 = a2; v8 = *(long long ( **)(long long, _QWORD *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL); v9 = a2 + a3; *a6 = 0; v10 = v8(a1, v27, a2, a2 + a3); if ( v10 <= 0 ) { LABEL_11: if ( a5 ) *a5 = v6; v11 = 33; if ( !v10 ) v11 = 84; *a6 = v11; return 0LL; } v25 = 0; while ( 1 ) { if ( v27[0] > 42LL ) { if ( v27[0] != 43LL ) { if ( v27[0] != 45LL ) break; v25 = !v25; } goto LABEL_10; } if ( v27[0] != 9LL && v27[0] != 32LL ) break; LABEL_10: v6 += (unsigned int)v10; v10 = v8(a1, v27, v6, v9); if ( v10 <= 0 ) goto LABEL_11; } v23 = 0xFFFFFFFF / a4; v13 = v8(a1, v27, v6, v9); if ( v13 > 0 ) { v21 = v8; v14 = 0; v15 = v6; v16 = 0; while ( 1 ) { v15 += (unsigned int)v13; v17 = v27[0] - 48LL; if ( (unsigned long long)(v27[0] - 48LL) > 9 ) { if ( (unsigned long long)(v27[0] - 65LL) > 0x19 ) { if ( (unsigned long long)(v27[0] - 97LL) > 0x19 ) goto LABEL_37; v18 = v27[0] - 87LL; } else { v18 = v27[0] - 55LL; } v27[0] = v18; v17 = v18; } else { v27[0] -= 48LL; } if ( (int)v17 >= (int)a4 ) goto LABEL_37; v19 = 1; if ( v14 <= v23 ) { if ( v14 == v23 ) { v20 = 0xFFFFFFFF / a4; if ( v17 > 0xFFFFFFFF % a4 ) goto LABEL_32; } v14 = v17 + a4 * v14; v19 = v16; } v20 = v14; LABEL_32: v13 = v21(a1, v27, v15, v9); v14 = v20; v16 = v19; if ( v13 <= 0 ) goto LABEL_35; } } v20 = 0; v15 = v6; v19 = 0; LABEL_35: if ( !v13 ) { if ( a5 ) *a5 = v15; *a6 = 84; return 0LL; } v16 = v19; v14 = v20; LABEL_37: if ( a5 ) *a5 = v15; if ( v15 == v6 ) { *a6 = 33; return 0LL; } if ( v16 ) { *a6 = 34; return 0xFFFFFFFFLL; } else { result = -(long long)v14; if ( !v25 ) return v14; } return result; }
my_strntoul_mb2_or_mb4: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV qword ptr [RBP + -0x40],R8 MOV dword ptr [RBP + -0x34],ECX MOV R13,RDX MOV R15,RSI MOV R14,RDI MOV RAX,qword ptr [RDI + 0xb8] MOV R12,qword ptr [RAX + 0x28] ADD R13,RSI MOV qword ptr [RBP + -0x50],R9 MOV dword ptr [R9],0x0 LEA RSI,[RBP + -0x30] MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JLE 0x00166931 MOV dword ptr [RBP + -0x38],0x0 LEA RBX,[RBP + -0x30] LAB_001668e9: MOV RCX,qword ptr [RBP + -0x30] CMP RCX,0x2a JG 0x00166901 CMP RCX,0x9 JZ 0x00166919 CMP RCX,0x20 JZ 0x00166919 JMP 0x00166963 LAB_00166901: CMP RCX,0x2b JZ 0x00166919 CMP RCX,0x2d JNZ 0x00166963 XOR ECX,ECX CMP dword ptr [RBP + -0x38],0x0 SETZ CL MOV dword ptr [RBP + -0x38],ECX LAB_00166919: MOV EAX,EAX ADD R15,RAX MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JG 0x001668e9 LAB_00166931: MOV RCX,qword ptr [RBP + -0x40] TEST RCX,RCX JZ 0x0016693d MOV qword ptr [RCX],R15 LAB_0016693d: TEST EAX,EAX MOV EAX,0x54 MOV ECX,0x21 CMOVZ ECX,EAX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],ECX LAB_00166952: XOR EAX,EAX LAB_00166954: ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00166963: MOV EAX,0xffffffff XOR EDX,EDX DIV dword ptr [RBP + -0x34] MOV EBX,EDX MOV dword ptr [RBP + -0x44],EAX LEA RSI,[RBP + -0x30] MOV RDI,R14 MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JLE 0x00166a27 MOV qword ptr [RBP + -0x68],R12 MOV ECX,EBX MOV qword ptr [RBP + -0x60],RCX XOR ECX,ECX MOV RBX,R15 XOR EDI,EDI LAB_0016699b: MOV RSI,RBX MOV EBX,EAX ADD RBX,RSI MOV RSI,qword ptr [RBP + -0x30] LEA RAX,[RSI + -0x30] CMP RAX,0x9 JA 0x001669b7 MOV qword ptr [RBP + -0x30],RAX JMP 0x001669dc LAB_001669b7: LEA RAX,[RSI + -0x41] CMP RAX,0x19 JA 0x001669c7 ADD RSI,-0x37 JMP 0x001669d5 LAB_001669c7: LEA RAX,[RSI + -0x61] CMP RAX,0x19 JA 0x00166a38 ADD RSI,-0x57 LAB_001669d5: MOV qword ptr [RBP + -0x30],RSI MOV RAX,RSI LAB_001669dc: CMP EAX,dword ptr [RBP + -0x34] JGE 0x00166a38 MOV ESI,0x1 CMP ECX,dword ptr [RBP + -0x44] JA 0x001669ff JNZ 0x001669f7 MOV R12D,dword ptr [RBP + -0x44] CMP RAX,qword ptr [RBP + -0x60] JA 0x00166a02 LAB_001669f7: IMUL ECX,dword ptr [RBP + -0x34] ADD ECX,EAX MOV ESI,EDI LAB_001669ff: MOV R12D,ECX LAB_00166a02: MOV dword ptr [RBP + -0x54],ESI MOV RDI,R14 LEA RSI,[RBP + -0x30] MOV RDX,RBX MOV RCX,R13 CALL qword ptr [RBP + -0x68] MOV ESI,dword ptr [RBP + -0x54] MOV ECX,R12D MOV EDI,ESI TEST EAX,EAX JG 0x0016699b JMP 0x00166a2f LAB_00166a27: XOR R12D,R12D MOV RBX,R15 XOR ESI,ESI LAB_00166a2f: TEST EAX,EAX JZ 0x00166a70 MOV EDI,ESI MOV ECX,R12D LAB_00166a38: MOV RAX,qword ptr [RBP + -0x40] TEST RAX,RAX JZ 0x00166a44 MOV qword ptr [RAX],RBX LAB_00166a44: CMP RBX,R15 JZ 0x00166a61 TEST EDI,EDI JZ 0x00166a8b MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x22 MOV EAX,0xffffffff JMP 0x00166954 LAB_00166a61: MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x21 JMP 0x00166952 LAB_00166a70: MOV RAX,qword ptr [RBP + -0x40] TEST RAX,RAX JZ 0x00166a7c MOV qword ptr [RAX],RBX LAB_00166a7c: MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x54 JMP 0x00166952 LAB_00166a8b: MOV ECX,ECX MOV RAX,RCX NEG RAX CMP dword ptr [RBP + -0x38],0x0 CMOVZ RAX,RCX JMP 0x00166954
ulong my_strntoul_mb2_or_mb4 (long param_1,long param_2,long param_3,uint param_4,long *param_5, int4 *param_6) { code *pcVar1; bool bVar2; bool bVar3; bool bVar4; uint uVar5; uint uVar6; int4 uVar7; uint uVar8; long lVar9; ulong uVar10; ulong local_38; pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); param_3 = param_3 + param_2; *param_6 = 0; uVar5 = (*pcVar1)(param_1,&local_38,param_2,param_3); if (0 < (int)uVar5) { bVar2 = false; do { if ((long)local_38 < 0x2b) { if ((local_38 != 9) && (local_38 != 0x20)) { LAB_00166963: uVar5 = (uint)(0xffffffff / (ulong)param_4); uVar6 = (*pcVar1)(param_1,&local_38,param_2,param_3); lVar9 = param_2; if ((int)uVar6 < 1) { uVar8 = 0; bVar3 = false; goto LAB_00166a2f; } uVar8 = 0; bVar3 = false; goto LAB_0016699b; } } else if (local_38 != 0x2b) { if (local_38 != 0x2d) goto LAB_00166963; bVar2 = !bVar2; } param_2 = param_2 + (ulong)uVar5; uVar5 = (*pcVar1)(param_1,&local_38,param_2,param_3); } while (0 < (int)uVar5); } if (param_5 != (long *)0x0) { *param_5 = param_2; } uVar7 = 0x21; if (uVar5 == 0) { uVar7 = 0x54; } *param_6 = uVar7; return 0; while( true ) { if ((int)param_4 <= (int)uVar10) goto LAB_00166a38; uVar6 = uVar8; bVar4 = true; if ((uVar8 <= uVar5) && ((uVar8 != uVar5 || (uVar6 = uVar5, uVar10 <= 0xffffffffU % (ulong)param_4)))) { uVar6 = uVar8 * param_4 + (int)uVar10; bVar4 = bVar3; } bVar3 = bVar4; uVar8 = uVar6; local_38 = uVar10; uVar6 = (*pcVar1)(param_1,&local_38,lVar9,param_3); if ((int)uVar6 < 1) break; LAB_0016699b: lVar9 = (ulong)uVar6 + lVar9; uVar10 = local_38 - 0x30; if (9 < uVar10) { if (local_38 - 0x41 < 0x1a) { uVar10 = local_38 - 0x37; } else { if (0x19 < local_38 - 0x61) goto LAB_00166a38; uVar10 = local_38 - 0x57; } } } LAB_00166a2f: if (uVar6 == 0) { if (param_5 != (long *)0x0) { *param_5 = lVar9; } *param_6 = 0x54; } else { LAB_00166a38: if (param_5 != (long *)0x0) { *param_5 = lVar9; } if (lVar9 != param_2) { if (bVar3) { *param_6 = 0x22; return 0xffffffff; } if (!bVar2) { return (ulong)uVar8; } return -(ulong)uVar8; } *param_6 = 0x21; } return 0; }
34,072
my_numcells_sjis
eloqsql/strings/ctype-sjis.c
static size_t my_numcells_sjis(CHARSET_INFO *cs __attribute__((unused)), const char *str, const char *str_end) { size_t clen; const uchar *b= (const uchar *) str; const uchar *e= (const uchar *) str_end; for (clen= 0; b < e; ) { if (*b >= 0xA1 && *b <= 0xDF) { clen++; b++; } else if (*b > 0x7F) { clen+= 2; b+= 2; } else { clen++; b++; } } return clen; }
O0
c
my_numcells_sjis: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq $0x0, -0x20(%rbp) movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax jae 0x963dd movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0xa1, %eax jl 0x96398 movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0xdf, %eax jg 0x96398 movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x963d8 movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0x7f, %eax jle 0x963be movq -0x20(%rbp), %rax addq $0x2, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) jmp 0x963d6 movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x963d8 jmp 0x96358 movq -0x20(%rbp), %rax popq %rbp retq nopw %cs:(%rax,%rax)
my_numcells_sjis: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_18] mov [rbp+var_30], rax mov [rbp+var_20], 0 loc_96358: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jnb short loc_963DD mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 0A1h jl short loc_96398 mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 0DFh jg short loc_96398 mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax jmp short loc_963D8 loc_96398: mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 7Fh jle short loc_963BE mov rax, [rbp+var_20] add rax, 2 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax jmp short loc_963D6 loc_963BE: mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax loc_963D6: jmp short $+2 loc_963D8: jmp loc_96358 loc_963DD: mov rax, [rbp+var_20] pop rbp retn
long long my_numcells_sjis(long long a1, unsigned __int8 *a2, unsigned long long a3) { long long v5; // [rsp+10h] [rbp-20h] v5 = 0LL; while ( (unsigned long long)a2 < a3 ) { if ( *a2 < 0xA1u || *a2 > 0xDFu ) { if ( *a2 <= 0x7Fu ) { ++v5; ++a2; } else { v5 += 2LL; a2 += 2; } } else { ++v5; ++a2; } } return v5; }
my_numcells_sjis: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [RBP + -0x20],0x0 LAB_00196358: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JNC 0x001963dd MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0xa1 JL 0x00196398 MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0xdf JG 0x00196398 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x001963d8 LAB_00196398: MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x7f JLE 0x001963be MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX JMP 0x001963d6 LAB_001963be: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX LAB_001963d6: JMP 0x001963d8 LAB_001963d8: JMP 0x00196358 LAB_001963dd: MOV RAX,qword ptr [RBP + -0x20] POP RBP RET
long my_numcells_sjis(int8 param_1,byte *param_2,byte *param_3) { byte *local_30; long local_28; local_28 = 0; local_30 = param_2; while (local_30 < param_3) { if ((*local_30 < 0xa1) || (0xdf < *local_30)) { if (*local_30 < 0x80) { local_28 = local_28 + 1; local_30 = local_30 + 1; } else { local_28 = local_28 + 2; local_30 = local_30 + 2; } } else { local_28 = local_28 + 1; local_30 = local_30 + 1; } } return local_28; }
34,073
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const
monkey531[P]llama/common/json.hpp
const_reference at(KeyType && key) const { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return it->second; }
O0
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const: subq $0xc8, %rsp movq %rdi, 0xc0(%rsp) movq %rsi, 0xb8(%rsp) movq 0xc0(%rsp), %rdi movq %rdi, 0x20(%rsp) callq 0xb7ae0 xorb $-0x1, %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0x169978 jmp 0x169a54 movb $0x1, 0x83(%rsp) movl $0x20, %edi callq 0x5a710 movq 0x20(%rsp), %rdi movq %rax, 0x18(%rsp) callq 0xbe8b0 movq %rax, 0x90(%rsp) leaq 0xafcd9(%rip), %rsi # 0x219681 leaq 0x98(%rsp), %rdi leaq 0x90(%rsp), %rdx callq 0x1714d0 jmp 0x1699bf movq 0x20(%rsp), %rcx movq 0x18(%rsp), %rdi movl $0x130, %esi # imm = 0x130 leaq 0x98(%rsp), %rdx callq 0x11a310 jmp 0x1699dd movq 0x18(%rsp), %rdi movb $0x0, 0x83(%rsp) leaq 0x13e387(%rip), %rsi # 0x2a7d78 leaq -0xab098(%rip), %rdx # 0xbe960 callq 0x5abb0 jmp 0x169bd1 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x88(%rsp) movl %eax, 0x84(%rsp) jmp 0x169a39 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x88(%rsp) movl %eax, 0x84(%rsp) leaq 0x98(%rsp), %rdi callq 0x5b6f8 testb $0x1, 0x83(%rsp) jne 0x169a45 jmp 0x169a4f movq 0x18(%rsp), %rdi callq 0x5b0e0 jmp 0x169bc4 movq 0x20(%rsp), %rax movq 0x8(%rax), %rdi movq 0xb8(%rsp), %rsi callq 0x1733f0 movq %rax, %rcx movq 0x20(%rsp), %rax movq %rcx, 0x78(%rsp) movq 0x8(%rax), %rdi callq 0xbd2e0 movq %rax, 0x70(%rsp) leaq 0x78(%rsp), %rdi leaq 0x70(%rsp), %rsi callq 0xbe280 testb $0x1, %al jne 0x169a9d jmp 0x169bae movb $0x1, 0x2e(%rsp) movl $0x20, %edi callq 0x5a710 movq %rax, (%rsp) movq 0xb8(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0x2f(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x5b260 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx leaq 0x30(%rsp), %rdi callq 0x66cc0 jmp 0x169ae2 leaq 0xafbc8(%rip), %rsi # 0x2196b1 leaq 0xafbc7(%rip), %rcx # 0x2196b7 leaq 0x50(%rsp), %rdi leaq 0x30(%rsp), %rdx callq 0x1726f0 jmp 0x169b01 movq 0x20(%rsp), %rcx movq (%rsp), %rdi movl $0x193, %esi # imm = 0x193 leaq 0x50(%rsp), %rdx callq 0x1735e0 jmp 0x169b1b movq (%rsp), %rdi movb $0x0, 0x2e(%rsp) leaq 0x13e1cd(%rip), %rsi # 0x2a7cf8 leaq -0xb2ef2(%rip), %rdx # 0xb6c40 callq 0x5abb0 jmp 0x169bd1 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x88(%rsp) movl %eax, 0x84(%rsp) jmp 0x169b90 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x88(%rsp) movl %eax, 0x84(%rsp) jmp 0x169b86 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x88(%rsp) movl %eax, 0x84(%rsp) leaq 0x50(%rsp), %rdi callq 0x5b6f8 leaq 0x30(%rsp), %rdi callq 0x5b6f8 leaq 0x2f(%rsp), %rdi callq 0x5b6d0 testb $0x1, 0x2e(%rsp) jne 0x169ba3 jmp 0x169bac movq (%rsp), %rdi callq 0x5b0e0 jmp 0x169bc4 leaq 0x78(%rsp), %rdi callq 0xbe480 addq $0x20, %rax addq $0xc8, %rsp retq movq 0x88(%rsp), %rdi callq 0x5ac70 nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: sub rsp, 0C8h mov [rsp+0C8h+var_8], rdi mov qword ptr [rsp+0C8h+var_10], rsi mov rdi, [rsp+0C8h+var_8] mov [rsp+0C8h+var_A8], rdi; int call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void) xor al, 0FFh xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_169978 jmp loc_169A54 loc_169978: mov [rsp+0C8h+var_45], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rdi, [rsp+0C8h+var_A8] mov [rsp+0C8h+var_B0], rax; char call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) mov qword ptr [rsp+0C8h+var_38], rax; char lea rsi, aCannotUseAtWit; "cannot use at() with " lea rdi, [rsp+0C8h+var_30]; int lea rdx, [rsp+0C8h+var_38]; int call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) jmp short $+2 loc_1699BF: mov rcx, [rsp+0C8h+var_A8] mov rdi, [rsp+0C8h+var_B0]; int mov esi, 130h lea rdx, [rsp+0C8h+var_30] call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ jmp short $+2 loc_1699DD: mov rdi, [rsp+0C8h+var_B0]; void * mov [rsp+0C8h+var_45], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *) call ___cxa_throw jmp loc_169BD1 mov rcx, rax mov eax, edx mov [rsp+arg_80], rcx mov [rsp+arg_7C], eax jmp short loc_169A39 mov rcx, rax mov eax, edx mov [rsp+arg_80], rcx mov [rsp+arg_7C], eax lea rdi, [rsp+arg_90]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_169A39: test [rsp+arg_7B], 1 jnz short loc_169A45 jmp short loc_169A4F loc_169A45: mov rdi, [rsp+arg_10]; void * call ___cxa_free_exception loc_169A4F: jmp loc_169BC4 loc_169A54: mov rax, [rsp+0C8h+var_A8] mov rdi, [rax+8] mov rsi, qword ptr [rsp+0C8h+var_10] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA9_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ mov rcx, rax mov rax, [rsp+0C8h+var_A8] mov qword ptr [rsp+0C8h+var_50], rcx; int mov rdi, [rax+8] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov qword ptr [rsp+0C8h+var_58], rax; char lea rdi, [rsp+0C8h+var_50] lea rsi, [rsp+0C8h+var_58] call _ZN9__gnu_cxxeqIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator==<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&) test al, 1 jnz short loc_169A9D jmp loc_169BAE loc_169A9D: mov [rsp+0C8h+var_9A], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+0C8h+var_C8], rax; int mov rax, qword ptr [rsp+0C8h+var_10] mov qword ptr [rsp+0C8h+var_C0], rax; int lea rdi, [rsp+0C8h+var_99] mov qword ptr [rsp+0C8h+var_B8], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rsi, qword ptr [rsp+0C8h+var_C0] mov rdx, qword ptr [rsp+0C8h+var_B8] lea rdi, [rsp+0C8h+var_99+1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_169AE2: lea rsi, aKey; "key '" lea rcx, aNotFound; "' not found" lea rdi, [rsp+0C8h+var_78]; int lea rdx, [rsp+0C8h+var_99+1]; int call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) jmp short $+2 loc_169B01: mov rcx, [rsp+0C8h+var_A8] mov rdi, [rsp+0C8h+var_C8]; int mov esi, 193h lea rdx, [rsp+0C8h+var_78] call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ jmp short $+2 loc_169B1B: mov rdi, [rsp+0C8h+var_C8]; void * mov [rsp+0C8h+var_9A], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeD2Ev; void (*)(void *) call ___cxa_throw jmp loc_169BD1 mov rcx, rax mov eax, edx mov [rsp+arg_80], rcx mov [rsp+arg_7C], eax jmp short loc_169B90 mov rcx, rax mov eax, edx mov [rsp+arg_80], rcx mov [rsp+arg_7C], eax jmp short loc_169B86 mov rcx, rax mov eax, edx mov [rsp+arg_80], rcx mov [rsp+arg_7C], eax lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_169B86: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_169B90: lea rdi, [rsp+arg_27] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rsp+arg_26], 1 jnz short loc_169BA3 jmp short loc_169BAC loc_169BA3: mov rdi, [rsp+0]; void * call ___cxa_free_exception loc_169BAC: jmp short loc_169BC4 loc_169BAE: lea rdi, [rsp+0C8h+var_50] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator->(void) add rax, 20h ; ' ' add rsp, 0C8h retn loc_169BC4: mov rdi, [rsp+arg_80] call __Unwind_Resume loc_169BD1: nop word ptr [rax+rax+00000000h] nop dword ptr [rax+rax+00h]
long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( long long a1, long long a2) { int v2; // ecx int v3; // r8d int v4; // r9d int v5; // r8d int v6; // r9d int v8; // [rsp+0h] [rbp-C8h] void *v9; // [rsp+0h] [rbp-C8h] int v10; // [rsp+0h] [rbp-C8h] void *v11; // [rsp+0h] [rbp-C8h] void *v12; // [rsp+8h] [rbp-C0h] long long v13; // [rsp+8h] [rbp-C0h] int v14; // [rsp+8h] [rbp-C0h] int v15; // [rsp+10h] [rbp-B8h] int v16; // [rsp+10h] [rbp-B8h] int v17; // [rsp+18h] [rbp-B0h] void *exception; // [rsp+18h] [rbp-B0h] nlohmann::json_abi_v3_11_3::detail::type_error *v19; // [rsp+18h] [rbp-B0h] char v20; // [rsp+18h] [rbp-B0h] int v21; // [rsp+20h] [rbp-A8h] int v22; // [rsp+28h] [rbp-A0h] char v23; // [rsp+2Fh] [rbp-99h] BYREF int v24[4]; // [rsp+30h] [rbp-98h] BYREF long long v25; // [rsp+40h] [rbp-88h] int v26; // [rsp+48h] [rbp-80h] int v27[8]; // [rsp+50h] [rbp-78h] BYREF char v28[8]; // [rsp+70h] [rbp-58h] BYREF int v29[2]; // [rsp+78h] [rbp-50h] BYREF int v30; // [rsp+80h] [rbp-48h] int v31; // [rsp+88h] [rbp-40h] char v32[8]; // [rsp+90h] [rbp-38h] BYREF int v33[8]; // [rsp+98h] [rbp-30h] BYREF int v34[2]; // [rsp+B8h] [rbp-10h] long long v35; // [rsp+C0h] [rbp-8h] v35 = a1; *(_QWORD *)v34 = a2; if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object((_BYTE *)a1) ) { exception = __cxa_allocate_exception(0x20uLL); *(_QWORD *)v32 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((_BYTE *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>( (int)v33, (int)"cannot use at() with ", (int)v32, v2, v3, v4, v8, v12, v15, (long long)exception); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( v19, 304, (long long)v33, a1); HIBYTE(v30) = 0; __cxa_throw( v19, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::type_error::~type_error); } *(_QWORD *)v29 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA9_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_( *(_QWORD *)(a1 + 8), *(_QWORD *)v34); *(_QWORD *)v28 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(*(_QWORD *)(a1 + 8)); if ( __gnu_cxx::operator==<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>( (long long)v29, (long long)v28) ) { v9 = __cxa_allocate_exception(0x20uLL); v13 = *(_QWORD *)v34; std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>((long long)v24, v13, (long long)&v23); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( (int)v27, (int)"key '", (int)v24, (int)"' not found", v5, v6, v9, v13, (int)&v23, v17, a1); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( v10, v10, v14, v16, v20, v21, v22, v24[0], v24[2], v25, v26, v27[0], v27[2], v27[4], v27[6], v28[0], v29[0], v30, v31, v32[0]); __cxa_throw( v11, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::out_of_range::~out_of_range); } return __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator->((long long)v29) + 32; }
34,074
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const
monkey531[P]llama/common/json.hpp
const_reference at(KeyType && key) const { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return it->second; }
O2
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rdi, %r14 cmpb $0x1, (%rdi) jne 0x81fe7 movq %rsi, %r15 movq 0x8(%r14), %rdi callq 0x81408 movq 0x8(%r14), %rcx cmpq 0x8(%rcx), %rax je 0x82045 addq $0x20, %rax addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x234b0 movq %rax, %rbx movq %r14, %rdi callq 0x469c8 leaq 0x28(%rsp), %rdx movq %rax, (%rdx) leaq 0x36c6d(%rip), %rsi # 0xb8c76 leaq 0x8(%rsp), %rdi callq 0x80e33 movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x130, %esi # imm = 0x130 movq %r14, %rcx callq 0x664d0 xorl %ebp, %ebp leaq 0x7df04(%rip), %rsi # 0xfff38 leaq -0x3eae3(%rip), %rdx # 0x43558 movq %rbx, %rdi callq 0x24050 jmp 0x820af pushq $0x20 popq %rdi callq 0x234b0 movq %rax, %rbx leaq 0x28(%rsp), %rdi leaq 0x7(%rsp), %rdx movq %r15, %rsi callq 0x29c20 leaq 0x36c3d(%rip), %rsi # 0xb8ca6 leaq 0x36c3c(%rip), %rcx # 0xb8cac leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rdx callq 0x8143d movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x193, %esi # imm = 0x193 movq %r14, %rcx callq 0x818a8 xorl %ebp, %ebp leaq 0x7de18(%rip), %rsi # 0xffeb8 leaq -0x3eb4f(%rip), %rdx # 0x43558 movq %rbx, %rdi callq 0x24050 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x24348 jmp 0x820c4 movq %rax, %r14 movb $0x1, %bpl leaq 0x28(%rsp), %rdi jmp 0x820d5 jmp 0x820e1 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x24348 testb %bpl, %bpl jne 0x820e4 jmp 0x820ec movq %rax, %r14 movq %rbx, %rdi callq 0x236f0 movq %r14, %rdi callq 0x240e0
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: push rbp; char push r15; int push r14; int push rbx; int sub rsp, 48h mov r14, rdi cmp byte ptr [rdi], 1 jnz short loc_81FE7 mov r15, rsi mov rdi, [r14+8] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA8_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ mov rcx, [r14+8] cmp rax, [rcx+8] jz short loc_82045 add rax, 20h ; ' ' add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_81FE7: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+68h+var_40] mov [rdx], rax lea rsi, aCannotUseAtWit; "cannot use at() with " lea rdi, [rsp+68h+var_60] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) mov bpl, 1 lea rdx, [rsp+68h+var_60] mov rdi, rbx; this mov esi, 130h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_820AF loc_82045: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+68h+var_40] lea rdx, [rsp+68h+var_61] mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aKey; "key '" lea rcx, aNotFound; "' not found" lea rdi, [rsp+68h+var_60] lea rdx, [rsp+68h+var_40] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) mov bpl, 1 lea rdx, [rsp+68h+var_60] mov rdi, rbx; this mov esi, 193h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_820AF: mov r14, rax lea rdi, [rsp+68h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_820C4 mov r14, rax mov bpl, 1 loc_820C4: lea rdi, [rsp+68h+var_40] jmp short loc_820D5 jmp short loc_820E1 mov r14, rax lea rdi, [rsp+68h+var_60]; void * loc_820D5: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_820E4 jmp short loc_820EC loc_820E1: mov r14, rax loc_820E4: mov rdi, rbx; void * call ___cxa_free_exception loc_820EC: mov rdi, r14 call __Unwind_Resume
long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( long long a1, long long a2) { long long v2; // rax nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx nlohmann::json_abi_v3_11_3::detail::out_of_range *v5; // rbx _BYTE v6[32]; // [rsp+8h] [rbp-60h] BYREF _QWORD v7[8]; // [rsp+28h] [rbp-40h] BYREF if ( *(_BYTE *)a1 != 1 ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v7[0] = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>( (long long)v6, (long long)"cannot use at() with ", v7); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 304, (long long)v6); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v2 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA8_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(*(long long **)(a1 + 8)); if ( v2 == *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) ) { v5 = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); std::string::basic_string<std::allocator<char>>(v7, a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( (long long)v6, (long long)"key '", (long long)v7, (long long)"' not found"); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( v5, 403, (long long)v6); __cxa_throw( v5, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return v2 + 32; }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV R14,RDI CMP byte ptr [RDI],0x1 JNZ 0x00181fe7 MOV R15,RSI MOV RDI,qword ptr [R14 + 0x8] CALL 0x00181408 MOV RCX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [RCX + 0x8] JZ 0x00182045 ADD RAX,0x20 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_00181fe7: PUSH 0x20 POP RDI CALL 0x001234b0 MOV RBX,RAX MOV RDI,R14 CALL 0x001469c8 LEA RDX,[RSP + 0x28] MOV qword ptr [RDX],RAX LAB_00182002: LEA RSI,[0x1b8c76] LEA RDI,[RSP + 0x8] CALL 0x00180e33 MOV BPL,0x1 LAB_00182016: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x130 MOV RCX,R14 CALL 0x001664d0 XOR EBP,EBP LEA RSI,[0x1fff38] LEA RDX,[0x143558] MOV RDI,RBX CALL 0x00124050 LAB_00182045: PUSH 0x20 POP RDI CALL 0x001234b0 MOV RBX,RAX LAB_00182050: LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x7] MOV RSI,R15 CALL 0x00129c20 LAB_00182062: LEA RSI,[0x1b8ca6] LEA RCX,[0x1b8cac] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x28] CALL 0x0018143d MOV BPL,0x1 LAB_00182082: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x193 MOV RCX,R14 CALL 0x001818a8 XOR EBP,EBP LEA RSI,[0x1ffeb8] LEA RDX,[0x143558] MOV RDI,RBX CALL 0x00124050
long _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,char *param_2) { long lVar1; int8 uVar2; allocator local_61; detail local_60 [32]; char *local_40 [4]; if (*param_1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { uVar2 = __cxa_allocate_exception(0x20); local_40[0] = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 00182002 to 00182012 has its CatchHandler @ 001820e1 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*> (local_60,"cannot use at() with ",local_40); /* try { // try from 00182016 to 00182042 has its CatchHandler @ 001820cd */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x130,local_60,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } lVar1 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA8_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ (*(int8 *)(param_1 + 8)); if (lVar1 != *(long *)(*(long *)(param_1 + 8) + 8)) { return lVar1 + 0x20; } uVar2 = __cxa_allocate_exception(0x20); /* try { // try from 00182050 to 00182061 has its CatchHandler @ 001820cb */ std::__cxx11::string::string<std::allocator<char>>((string *)local_40,param_2,&local_61); /* try { // try from 00182062 to 0018207e has its CatchHandler @ 001820be */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (local_60,"key \'",(string *)local_40,"\' not found"); /* try { // try from 00182082 to 001820ae has its CatchHandler @ 001820af */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x193,local_60,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); }
34,075
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const
monkey531[P]llama/common/json.hpp
const_reference at(KeyType && key) const { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return it->second; }
O3
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 cmpb $0x1, (%rdi) jne 0xb08f7 movq %rsi, %r15 movq 0x8(%r14), %r12 movq (%r12), %rbx movq 0x8(%r12), %rax cmpq %rax, %rbx je 0xb08e1 movq %rbx, %rdi movq %r15, %rsi callq 0x1b210 testl %eax, %eax je 0xb08d6 addq $0x30, %rbx movq 0x8(%r12), %rax cmpq %rax, %rbx jne 0xb08b7 jmp 0xb08d9 movq %rbx, %rax movq 0x8(%r14), %rcx movq 0x8(%rcx), %rbx cmpq %rbx, %rax je 0xb0955 addq $0x20, %rax addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x1b480 movq %rax, %rbx movq %r14, %rdi callq 0x63c50 movq %rsp, %rdx movq %rax, (%rdx) leaq 0x4536d(%rip), %rsi # 0xf5c86 leaq 0x20(%rsp), %rdi callq 0xaf7c3 movb $0x1, %bpl leaq 0x20(%rsp), %rdx movq %rbx, %rdi movl $0x130, %esi # imm = 0x130 movq %r14, %rcx callq 0x8b128 xorl %ebp, %ebp leaq 0x7e604(%rip), %rsi # 0x12ef48 leaq -0x50ac5(%rip), %rdx # 0x5fe86 movq %rbx, %rdi callq 0x1c040 jmp 0xb09ce movl $0x20, %edi callq 0x1b480 movq %rax, %rbx leaq 0x10(%rsp), %r12 movq %r12, -0x10(%r12) movq %r15, %rdi callq 0x1b410 leaq (%rax,%r15), %rdx movq %rsp, %rdi movq %r15, %rsi callq 0x2695a leaq 0x4532c(%rip), %rsi # 0xf5cb6 leaq 0x4532b(%rip), %rcx # 0xf5cbc leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0xafda0 movb $0x1, %bpl leaq 0x20(%rsp), %rdx movq %rbx, %rdi movl $0x193, %esi # imm = 0x193 movq %r14, %rcx callq 0xb0118 xorl %ebp, %ebp leaq 0x7e509(%rip), %rsi # 0x12eec8 leaq -0x50b40(%rip), %rdx # 0x5fe86 movq %rbx, %rdi callq 0x1c040 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xb09ec movq 0x30(%rsp), %rsi incq %rsi callq 0x1b930 movq (%rsp), %rdi cmpq %r12, %rdi je 0xb0a37 movq 0x10(%rsp), %rsi jmp 0xb0a2f movq %rax, %r14 movq (%rsp), %rdi cmpq %r12, %rdi je 0xb0a41 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b930 jmp 0xb0a41 jmp 0xb0a3e movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xb0a37 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b930 testb %bpl, %bpl jne 0xb0a41 jmp 0xb0a49 movq %rax, %r14 movq %rbx, %rdi callq 0x1b6c0 movq %r14, %rdi callq 0x1c0d0 nop
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: push rbp; char push r15; int push r14; int push r12; int push rbx; char sub rsp, 40h mov r14, rdi cmp byte ptr [rdi], 1 jnz short loc_B08F7 mov r15, rsi mov r12, [r14+8] mov rbx, [r12] mov rax, [r12+8] cmp rbx, rax jz short loc_B08E1 loc_B08B7: mov rdi, rbx mov rsi, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_B08D6 add rbx, 30h ; '0' mov rax, [r12+8] cmp rbx, rax jnz short loc_B08B7 jmp short loc_B08D9 loc_B08D6: mov rax, rbx loc_B08D9: mov rcx, [r14+8] mov rbx, [rcx+8] loc_B08E1: cmp rax, rbx jz short loc_B0955 add rax, 20h ; ' ' add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_B08F7: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) mov rdx, rsp mov [rdx], rax lea rsi, aCannotUseAtWit; "cannot use at() with " lea rdi, [rsp+68h+var_48] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) mov bpl, 1 lea rdx, [rsp+68h+var_48] mov rdi, rbx; this mov esi, 130h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_B09CE loc_B0955: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r12, [rsp+68h+var_58] mov [r12-10h], r12 mov rdi, r15 call _strlen lea rdx, [rax+r15] mov rdi, rsp mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rsi, aKey; "key '" lea rcx, aNotFound; "' not found" lea rdi, [rsp+68h+var_48] mov rdx, rsp call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) mov bpl, 1 lea rdx, [rsp+68h+var_48] mov rdi, rbx; this mov esi, 193h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_B09CE: mov r14, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_B09EC mov rsi, [rsp+68h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B09EC: mov rdi, [rsp+68h+var_68] cmp rdi, r12 jz short loc_B0A37 mov rsi, [rsp+68h+var_58] jmp short loc_B0A2F mov r14, rax mov rdi, [rsp+68h+var_68]; void * cmp rdi, r12 jz short loc_B0A41 mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_B0A41 jmp short loc_B0A3E mov r14, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_B0A37 mov rsi, [rsp+68h+var_38] loc_B0A2F: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B0A37: test bpl, bpl jnz short loc_B0A41 jmp short loc_B0A49 loc_B0A3E: mov r14, rax loc_B0A41: mov rdi, rbx; void * call ___cxa_free_exception loc_B0A49: mov rdi, r14 call __Unwind_Resume
long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( long long a1, _BYTE *a2) { long long *v2; // r12 long long v3; // rbx long long v4; // rax nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx nlohmann::json_abi_v3_11_3::detail::exception *v7; // rbx long long v8; // rax void *v9[2]; // [rsp+0h] [rbp-68h] BYREF long long v10; // [rsp+10h] [rbp-58h] BYREF _QWORD v11[2]; // [rsp+20h] [rbp-48h] BYREF if ( *(_BYTE *)a1 != 1 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v9[0] = (void *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>( (long long)v11, (long long)"cannot use at() with ", v9); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 304, v11); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v2 = *(long long **)(a1 + 8); v3 = *v2; v4 = v2[1]; if ( *v2 != v4 ) { while ( (unsigned int)std::string::compare(v3, a2) ) { v3 += 48LL; v4 = v2[1]; if ( v3 == v4 ) goto LABEL_7; } v4 = v3; LABEL_7: v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL); } if ( v4 == v3 ) { v7 = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v9[0] = &v10; v8 = strlen(a2); std::string::_M_construct<char const*>((long long)v9, a2, (long long)&a2[v8]); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( (long long)v11, (long long)"key '", v9, (long long)"' not found"); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( v7, 403, v11); __cxa_throw( v7, (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 v4 + 32; }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV R14,RDI CMP byte ptr [RDI],0x1 JNZ 0x001b08f7 MOV R15,RSI MOV R12,qword ptr [R14 + 0x8] MOV RBX,qword ptr [R12] MOV RAX,qword ptr [R12 + 0x8] CMP RBX,RAX JZ 0x001b08e1 LAB_001b08b7: MOV RDI,RBX MOV RSI,R15 CALL 0x0011b210 TEST EAX,EAX JZ 0x001b08d6 ADD RBX,0x30 MOV RAX,qword ptr [R12 + 0x8] CMP RBX,RAX JNZ 0x001b08b7 JMP 0x001b08d9 LAB_001b08d6: MOV RAX,RBX LAB_001b08d9: MOV RCX,qword ptr [R14 + 0x8] MOV RBX,qword ptr [RCX + 0x8] LAB_001b08e1: CMP RAX,RBX JZ 0x001b0955 ADD RAX,0x20 ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001b08f7: MOV EDI,0x20 CALL 0x0011b480 MOV RBX,RAX MOV RDI,R14 CALL 0x00163c50 MOV RDX,RSP MOV qword ptr [RDX],RAX LAB_001b0912: LEA RSI,[0x1f5c86] LEA RDI,[RSP + 0x20] CALL 0x001af7c3 MOV BPL,0x1 LAB_001b0926: LEA RDX,[RSP + 0x20] MOV RDI,RBX MOV ESI,0x130 MOV RCX,R14 CALL 0x0018b128 XOR EBP,EBP LEA RSI,[0x22ef48] LEA RDX,[0x15fe86] MOV RDI,RBX CALL 0x0011c040 LAB_001b0955: MOV EDI,0x20 CALL 0x0011b480 MOV RBX,RAX LEA R12,[RSP + 0x10] MOV qword ptr [R12 + -0x10],R12 MOV RDI,R15 CALL 0x0011b410 LEA RDX,[RAX + R15*0x1] LAB_001b0978: MOV RDI,RSP MOV RSI,R15 CALL 0x0012695a LAB_001b0983: LEA RSI,[0x1f5cb6] LEA RCX,[0x1f5cbc] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x001afda0 MOV BPL,0x1 LAB_001b09a1: LEA RDX,[RSP + 0x20] MOV RDI,RBX MOV ESI,0x193 MOV RCX,R14 CALL 0x001b0118 XOR EBP,EBP LEA RSI,[0x22eec8] LEA RDX,[0x15fe86] MOV RDI,RBX CALL 0x0011c040
char * _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,char *param_2) { long *plVar1; int iVar2; char *pcVar3; int8 uVar4; size_t sVar5; char *pcVar6; char *local_68 [2]; char local_58 [16]; detail local_48 [32]; if (*param_1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { uVar4 = __cxa_allocate_exception(0x20); local_68[0] = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 001b0912 to 001b0922 has its CatchHandler @ 001b0a3e */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*> (local_48,"cannot use at() with ",local_68); /* try { // try from 001b0926 to 001b0952 has its CatchHandler @ 001b0a19 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar4,0x130,local_48,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } plVar1 = *(long **)(param_1 + 8); pcVar6 = (char *)*plVar1; pcVar3 = (char *)plVar1[1]; if (pcVar6 != pcVar3) { do { pcVar3 = pcVar6; iVar2 = std::__cxx11::string::compare(pcVar3); if (iVar2 == 0) break; pcVar6 = pcVar3 + 0x30; pcVar3 = (char *)plVar1[1]; } while (pcVar6 != pcVar3); pcVar6 = *(char **)(*(long *)(param_1 + 8) + 8); } if (pcVar3 == pcVar6) { uVar4 = __cxa_allocate_exception(0x20); local_68[0] = local_58; sVar5 = strlen(param_2); /* try { // try from 001b0978 to 001b0982 has its CatchHandler @ 001b0a17 */ std::__cxx11::string::_M_construct<char_const*>(local_68,param_2,param_2 + sVar5); /* try { // try from 001b0983 to 001b099d has its CatchHandler @ 001b09fc */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (local_48,"key \'",(string *)local_68,"\' not found"); /* try { // try from 001b09a1 to 001b09cd has its CatchHandler @ 001b09ce */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar4,0x193,local_48,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return pcVar3 + 0x20; }
34,076
rw_pr_unlock
eloqsql/mysys/thr_rwlock.c
int rw_pr_unlock(rw_pr_lock_t *rwlock) { if (rwlock->active_writer) { /* We are unlocking wr-lock. */ #ifdef SAFE_MUTEX rwlock->writer_thread= 0; #endif rwlock->active_writer= FALSE; if (rwlock->writers_waiting_readers) { /* Avoid expensive cond signal in case when there is no contention or it is wr-only. Note that from view point of performance it would be better to signal on the condition variable after unlocking mutex (as it reduces number of contex switches). Unfortunately this would mean that such rwlock can't be safely used by MDL subsystem, which relies on the fact that it is OK to destroy rwlock once it is in unlocked state. */ pthread_cond_signal(&rwlock->no_active_readers); } pthread_mutex_unlock(&rwlock->lock); } else { /* We are unlocking rd-lock. */ pthread_mutex_lock(&rwlock->lock); rwlock->active_readers--; if (rwlock->active_readers == 0 && rwlock->writers_waiting_readers) { /* If we are last reader and there are waiting writers wake them up. */ pthread_cond_signal(&rwlock->no_active_readers); } pthread_mutex_unlock(&rwlock->lock); } return 0; }
O0
c
rw_pr_unlock: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpb $0x0, 0x60(%rax) je 0x27dd0 movq -0x8(%rbp), %rax movb $0x0, 0x60(%rax) movq -0x8(%rbp), %rax cmpl $0x0, 0x5c(%rax) je 0x27dc5 movq -0x8(%rbp), %rdi addq $0x28, %rdi callq 0x24030 movq -0x8(%rbp), %rdi callq 0x24240 jmp 0x27e10 movq -0x8(%rbp), %rdi callq 0x244e0 movq -0x8(%rbp), %rax movl 0x58(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x58(%rax) movq -0x8(%rbp), %rax cmpl $0x0, 0x58(%rax) jne 0x27e07 movq -0x8(%rbp), %rax cmpl $0x0, 0x5c(%rax) je 0x27e07 movq -0x8(%rbp), %rdi addq $0x28, %rdi callq 0x24030 movq -0x8(%rbp), %rdi callq 0x24240 xorl %eax, %eax addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
rw_pr_unlock: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp byte ptr [rax+60h], 0 jz short loc_27DD0 mov rax, [rbp+var_8] mov byte ptr [rax+60h], 0 mov rax, [rbp+var_8] cmp dword ptr [rax+5Ch], 0 jz short loc_27DC5 mov rdi, [rbp+var_8] add rdi, 28h ; '(' call _pthread_cond_signal loc_27DC5: mov rdi, [rbp+var_8] call _pthread_mutex_unlock jmp short loc_27E10 loc_27DD0: mov rdi, [rbp+var_8] call _pthread_mutex_lock mov rax, [rbp+var_8] mov ecx, [rax+58h] add ecx, 0FFFFFFFFh mov [rax+58h], ecx mov rax, [rbp+var_8] cmp dword ptr [rax+58h], 0 jnz short loc_27E07 mov rax, [rbp+var_8] cmp dword ptr [rax+5Ch], 0 jz short loc_27E07 mov rdi, [rbp+var_8] add rdi, 28h ; '(' call _pthread_cond_signal loc_27E07: mov rdi, [rbp+var_8] call _pthread_mutex_unlock loc_27E10: xor eax, eax add rsp, 10h pop rbp retn
long long rw_pr_unlock(long long a1) { if ( *(_BYTE *)(a1 + 96) ) { *(_BYTE *)(a1 + 96) = 0; if ( *(_DWORD *)(a1 + 92) ) pthread_cond_signal(a1 + 40); } else { pthread_mutex_lock(a1); if ( !--*(_DWORD *)(a1 + 88) && *(_DWORD *)(a1 + 92) ) pthread_cond_signal(a1 + 40); } pthread_mutex_unlock(a1); return 0LL; }
rw_pr_unlock: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x60],0x0 JZ 0x00127dd0 MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x60],0x0 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x5c],0x0 JZ 0x00127dc5 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x28 CALL 0x00124030 LAB_00127dc5: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00124240 JMP 0x00127e10 LAB_00127dd0: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001244e0 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x58] ADD ECX,-0x1 MOV dword ptr [RAX + 0x58],ECX MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x58],0x0 JNZ 0x00127e07 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x5c],0x0 JZ 0x00127e07 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x28 CALL 0x00124030 LAB_00127e07: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00124240 LAB_00127e10: XOR EAX,EAX ADD RSP,0x10 POP RBP RET
int8 rw_pr_unlock(pthread_mutex_t *param_1) { if (*(char *)((long)param_1 + 0x60) == '\0') { pthread_mutex_lock(param_1); *(int *)((long)param_1 + 0x58) = *(int *)((long)param_1 + 0x58) + -1; if ((*(int *)((long)param_1 + 0x58) == 0) && (*(int *)((long)param_1 + 0x5c) != 0)) { pthread_cond_signal((pthread_cond_t *)(param_1 + 1)); } pthread_mutex_unlock(param_1); } else { *(int1 *)((long)param_1 + 0x60) = 0; if (*(int *)((long)param_1 + 0x5c) != 0) { pthread_cond_signal((pthread_cond_t *)(param_1 + 1)); } pthread_mutex_unlock(param_1); } return 0; }
34,077
my_well_formed_char_length_ucs2
eloqsql/strings/ctype-ucs2.c
static size_t my_well_formed_char_length_ucs2(CHARSET_INFO *cs __attribute__((unused)), const char *b, const char *e, size_t nchars, MY_STRCOPY_STATUS *status) { size_t length= e - b; if (nchars * 2 <= length) { status->m_well_formed_error_pos= NULL; status->m_source_end_pos= b + (nchars * 2); return nchars; } if (length % 2) { status->m_well_formed_error_pos= status->m_source_end_pos= e - 1; } else { status->m_well_formed_error_pos= NULL; status->m_source_end_pos= e; } return length / 2; }
O3
c
my_well_formed_char_length_ucs2: pushq %rbp movq %rsp, %rbp movq %rcx, %rax movq %rdx, %rcx subq %rsi, %rcx leaq (%rax,%rax), %rdi cmpq %rcx, %rdi jbe 0xc4c3b movl %ecx, %eax andl $0x1, %eax movq %rax, %rsi negq %rsi leaq -0x1(%rdx), %rdi andq %rdi, %rsi testq %rax, %rax cmoveq %rdx, %rdi movq %rsi, 0x8(%r8) movq %rdi, (%r8) shrq %rcx movq %rcx, %rax jmp 0xc4c49 movq $0x0, 0x8(%r8) addq %rdi, %rsi movq %rsi, (%r8) popq %rbp retq
my_well_formed_char_length_ucs2: push rbp mov rbp, rsp mov rax, rcx mov rcx, rdx sub rcx, rsi lea rdi, [rax+rax] cmp rdi, rcx jbe short loc_C4C3B mov eax, ecx and eax, 1 mov rsi, rax neg rsi lea rdi, [rdx-1] and rsi, rdi test rax, rax cmovz rdi, rdx mov [r8+8], rsi mov [r8], rdi shr rcx, 1 mov rax, rcx jmp short loc_C4C49 loc_C4C3B: mov qword ptr [r8+8], 0 add rsi, rdi mov [r8], rsi loc_C4C49: pop rbp retn
unsigned long long my_well_formed_char_length_ucs2( long long a1, long long a2, long long a3, unsigned long long a4, _QWORD *a5) { unsigned long long result; // rax unsigned long long v6; // rcx long long v7; // rdi result = a4; v6 = a3 - a2; if ( 2 * result <= a3 - a2 ) { a5[1] = 0LL; *a5 = 2 * result + a2; } else { v7 = a3 - 1; if ( (v6 & 1) == 0 ) v7 = a3; a5[1] = (a3 - 1) & -(long long)(v6 & 1); *a5 = v7; return v6 >> 1; } return result; }
my_well_formed_char_length_ucs2: PUSH RBP MOV RBP,RSP MOV RAX,RCX MOV RCX,RDX SUB RCX,RSI LEA RDI,[RAX + RAX*0x1] CMP RDI,RCX JBE 0x001c4c3b MOV EAX,ECX AND EAX,0x1 MOV RSI,RAX NEG RSI LEA RDI,[RDX + -0x1] AND RSI,RDI TEST RAX,RAX CMOVZ RDI,RDX MOV qword ptr [R8 + 0x8],RSI MOV qword ptr [R8],RDI SHR RCX,0x1 MOV RAX,RCX JMP 0x001c4c49 LAB_001c4c3b: MOV qword ptr [R8 + 0x8],0x0 ADD RSI,RDI MOV qword ptr [R8],RSI LAB_001c4c49: POP RBP RET
ulong my_well_formed_char_length_ucs2 (int8 param_1,long param_2,ulong param_3,ulong param_4,ulong *param_5) { ulong uVar1; ulong uVar2; ulong uVar3; uVar2 = param_3 - param_2; if (uVar2 < param_4 * 2) { uVar1 = (ulong)((uint)uVar2 & 1); uVar3 = param_3 - 1; if (uVar1 == 0) { uVar3 = param_3; } param_5[1] = -uVar1 & param_3 - 1; *param_5 = uVar3; param_4 = uVar2 >> 1; } else { param_5[1] = 0; *param_5 = param_2 + param_4 * 2; } return param_4; }
34,078
my_uca_previous_context_find
eloqsql/strings/ctype-uca.c
static const MY_CONTRACTION * my_uca_previous_context_find(my_uca_scanner *scanner, my_wc_t wc0, my_wc_t wc1) { const MY_CONTRACTIONS *list= &scanner->level->contractions; MY_CONTRACTION *c, *last; for (c= list->item, last= c + list->nitems; c < last; c++) { if (c->with_context && wc0 == c->ch[0] && wc1 == c->ch[1]) { scanner->wbeg= c->weight + 1; return c; } } return NULL; }
O0
c
my_uca_previous_context_find: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax addq $0x18, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq -0x28(%rbp), %rcx imulq $0x58, (%rcx), %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax cmpq -0x38(%rbp), %rax jae 0x8619e movq -0x30(%rbp), %rax movsbl 0x52(%rax), %eax cmpl $0x0, %eax je 0x8618e movq -0x18(%rbp), %rax movq -0x30(%rbp), %rcx cmpq (%rcx), %rax jne 0x8618e movq -0x20(%rbp), %rax movq -0x30(%rbp), %rcx cmpq 0x8(%rcx), %rax jne 0x8618e movq -0x30(%rbp), %rcx addq $0x30, %rcx addq $0x2, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x861a6 jmp 0x86190 movq -0x30(%rbp), %rax addq $0x58, %rax movq %rax, -0x30(%rbp) jmp 0x8613f movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nopl (%rax)
my_uca_previous_context_find: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax+18h] add rax, 18h mov [rbp+var_28], rax mov rax, [rbp+var_28] mov rax, [rax+8] mov [rbp+var_30], rax mov rax, [rbp+var_30] mov rcx, [rbp+var_28] imul rcx, [rcx], 58h ; 'X' add rax, rcx mov [rbp+var_38], rax loc_8613F: mov rax, [rbp+var_30] cmp rax, [rbp+var_38] jnb short loc_8619E mov rax, [rbp+var_30] movsx eax, byte ptr [rax+52h] cmp eax, 0 jz short loc_8618E mov rax, [rbp+var_18] mov rcx, [rbp+var_30] cmp rax, [rcx] jnz short loc_8618E mov rax, [rbp+var_20] mov rcx, [rbp+var_30] cmp rax, [rcx+8] jnz short loc_8618E mov rcx, [rbp+var_30] add rcx, 30h ; '0' add rcx, 2 mov rax, [rbp+var_10] mov [rax], rcx mov rax, [rbp+var_30] mov [rbp+var_8], rax jmp short loc_861A6 loc_8618E: jmp short $+2 loc_86190: mov rax, [rbp+var_30] add rax, 58h ; 'X' mov [rbp+var_30], rax jmp short loc_8613F loc_8619E: mov [rbp+var_8], 0 loc_861A6: mov rax, [rbp+var_8] pop rbp retn
unsigned long long my_uca_previous_context_find(_QWORD *a1, long long a2, long long a3) { unsigned long long v4; // [rsp+0h] [rbp-38h] unsigned long long v5; // [rsp+8h] [rbp-30h] v5 = *(_QWORD *)(a1[3] + 32LL); v4 = 88LL * *(_QWORD *)(a1[3] + 24LL) + v5; while ( v5 < v4 ) { if ( *(_BYTE *)(v5 + 82) && a2 == *(_QWORD *)v5 && a3 == *(_QWORD *)(v5 + 8) ) { *a1 = v5 + 50; return v5; } v5 += 88LL; } return 0LL; }
my_uca_previous_context_find: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] ADD RAX,0x18 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x28] IMUL RCX,qword ptr [RCX],0x58 ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX LAB_0018613f: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x38] JNC 0x0018619e MOV RAX,qword ptr [RBP + -0x30] MOVSX EAX,byte ptr [RAX + 0x52] CMP EAX,0x0 JZ 0x0018618e MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RCX] JNZ 0x0018618e MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RCX + 0x8] JNZ 0x0018618e MOV RCX,qword ptr [RBP + -0x30] ADD RCX,0x30 ADD RCX,0x2 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX JMP 0x001861a6 LAB_0018618e: JMP 0x00186190 LAB_00186190: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x58 MOV qword ptr [RBP + -0x30],RAX JMP 0x0018613f LAB_0018619e: MOV qword ptr [RBP + -0x8],0x0 LAB_001861a6: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
long * my_uca_previous_context_find(long *param_1,long param_2,long param_3) { long *plVar1; long *local_38; local_38 = *(long **)(param_1[3] + 0x20); plVar1 = local_38 + *(long *)(param_1[3] + 0x18) * 0xb; while( true ) { if (plVar1 <= local_38) { return (long *)0x0; } if (((*(char *)((long)local_38 + 0x52) != '\0') && (param_2 == *local_38)) && (param_3 == local_38[1])) break; local_38 = local_38 + 0xb; } *param_1 = (long)local_38 + 0x32; return local_38; }
34,079
JS_WriteSharedArrayBuffer
bluesky950520[P]quickjs/quickjs.c
static int JS_WriteSharedArrayBuffer(BCWriterState *s, JSValue obj) { JSObject *p = JS_VALUE_GET_OBJ(obj); JSArrayBuffer *abuf = p->u.array_buffer; assert(!abuf->detached); /* SharedArrayBuffer are never detached */ bc_put_u8(s, BC_TAG_SHARED_ARRAY_BUFFER); bc_put_leb128(s, abuf->byte_length); bc_put_leb128(s, abuf->max_byte_length); bc_put_u64(s, (uintptr_t)abuf->data); if (js_resize_array(s->ctx, (void **)&s->sab_tab, sizeof(s->sab_tab[0]), &s->sab_tab_size, s->sab_tab_len + 1)) return -1; /* keep the SAB pointer so that the user can clone it or free it */ s->sab_tab[s->sab_tab_len++] = abuf->data; return 0; }
O0
c
JS_WriteSharedArrayBuffer: subq $0x38, %rsp movq %rsi, 0x20(%rsp) movq %rdx, 0x28(%rsp) movq %rdi, 0x18(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax movq 0x30(%rax), %rax movq %rax, 0x8(%rsp) movq 0x18(%rsp), %rdi movl $0x10, %esi callq 0x7de90 movq 0x18(%rsp), %rdi movq 0x8(%rsp), %rax movl (%rax), %esi callq 0x7ea20 movq 0x18(%rsp), %rdi movq 0x8(%rsp), %rax movl 0x4(%rax), %esi callq 0x7ea20 movq 0x18(%rsp), %rdi movq 0x8(%rsp), %rax movq 0x10(%rax), %rsi callq 0x7def0 movq 0x18(%rsp), %rax movq (%rax), %rdi movq 0x18(%rsp), %rsi addq $0x60, %rsi movq 0x18(%rsp), %rcx addq $0x6c, %rcx movq 0x18(%rsp), %rax movl 0x68(%rax), %r8d addl $0x1, %r8d movl $0x8, %edx callq 0x79430 cmpl $0x0, %eax je 0x7f0d0 movl $0xffffffff, 0x34(%rsp) # imm = 0xFFFFFFFF jmp 0x7f101 movq 0x8(%rsp), %rax movq 0x10(%rax), %rdx movq 0x18(%rsp), %rax movq 0x60(%rax), %rax movq 0x18(%rsp), %rsi movl 0x68(%rsi), %ecx movl %ecx, %edi addl $0x1, %edi movl %edi, 0x68(%rsi) movslq %ecx, %rcx movq %rdx, (%rax,%rcx,8) movl $0x0, 0x34(%rsp) movl 0x34(%rsp), %eax addq $0x38, %rsp retq nopw (%rax,%rax)
JS_WriteSharedArrayBuffer: sub rsp, 38h mov [rsp+38h+var_18], rsi mov [rsp+38h+var_10], rdx mov [rsp+38h+var_20], rdi mov rax, [rsp+38h+var_18] mov [rsp+38h+var_28], rax mov rax, [rsp+38h+var_28] mov rax, [rax+30h] mov [rsp+38h+var_30], rax mov rdi, [rsp+38h+var_20] mov esi, 10h call bc_put_u8 mov rdi, [rsp+38h+var_20] mov rax, [rsp+38h+var_30] mov esi, [rax] call bc_put_leb128 mov rdi, [rsp+38h+var_20] mov rax, [rsp+38h+var_30] mov esi, [rax+4] call bc_put_leb128 mov rdi, [rsp+38h+var_20] mov rax, [rsp+38h+var_30] mov rsi, [rax+10h] call bc_put_u64 mov rax, [rsp+38h+var_20] mov rdi, [rax] mov rsi, [rsp+38h+var_20] add rsi, 60h ; '`' mov rcx, [rsp+38h+var_20] add rcx, 6Ch ; 'l' mov rax, [rsp+38h+var_20] mov r8d, [rax+68h] add r8d, 1 mov edx, 8 call js_resize_array cmp eax, 0 jz short loc_7F0D0 mov [rsp+38h+var_4], 0FFFFFFFFh jmp short loc_7F101 loc_7F0D0: mov rax, [rsp+38h+var_30] mov rdx, [rax+10h] mov rax, [rsp+38h+var_20] mov rax, [rax+60h] mov rsi, [rsp+38h+var_20] mov ecx, [rsi+68h] mov edi, ecx add edi, 1 mov [rsi+68h], edi movsxd rcx, ecx mov [rax+rcx*8], rdx mov [rsp+38h+var_4], 0 loc_7F101: mov eax, [rsp+38h+var_4] add rsp, 38h retn
long long JS_WriteSharedArrayBuffer(long long a1, long long a2) { long long v2; // rdx long long v3; // rax int v4; // ecx long long v6; // [rsp+8h] [rbp-30h] v6 = *(_QWORD *)(a2 + 48); bc_put_u8(a1, 16); bc_put_leb128(a1, *(_DWORD *)v6); bc_put_leb128(a1, *(_DWORD *)(v6 + 4)); bc_put_u64(a1, *(_QWORD *)(v6 + 16)); if ( (unsigned int)js_resize_array(*(_QWORD *)a1, a1 + 96, 8u, (_DWORD *)(a1 + 108), *(_DWORD *)(a1 + 104) + 1) ) { return (unsigned int)-1; } else { v2 = *(_QWORD *)(v6 + 16); v3 = *(_QWORD *)(a1 + 96); v4 = *(_DWORD *)(a1 + 104); *(_DWORD *)(a1 + 104) = v4 + 1; *(_QWORD *)(v3 + 8LL * v4) = v2; return 0; } }
JS_WriteSharedArrayBuffer: SUB RSP,0x38 MOV qword ptr [RSP + 0x20],RSI MOV qword ptr [RSP + 0x28],RDX MOV qword ptr [RSP + 0x18],RDI MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x18] MOV ESI,0x10 CALL 0x0017de90 MOV RDI,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x8] MOV ESI,dword ptr [RAX] CALL 0x0017ea20 MOV RDI,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x8] MOV ESI,dword ptr [RAX + 0x4] CALL 0x0017ea20 MOV RDI,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RAX + 0x10] CALL 0x0017def0 MOV RAX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RSP + 0x18] ADD RSI,0x60 MOV RCX,qword ptr [RSP + 0x18] ADD RCX,0x6c MOV RAX,qword ptr [RSP + 0x18] MOV R8D,dword ptr [RAX + 0x68] ADD R8D,0x1 MOV EDX,0x8 CALL 0x00179430 CMP EAX,0x0 JZ 0x0017f0d0 MOV dword ptr [RSP + 0x34],0xffffffff JMP 0x0017f101 LAB_0017f0d0: MOV RAX,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x60] MOV RSI,qword ptr [RSP + 0x18] MOV ECX,dword ptr [RSI + 0x68] MOV EDI,ECX ADD EDI,0x1 MOV dword ptr [RSI + 0x68],EDI MOVSXD RCX,ECX MOV qword ptr [RAX + RCX*0x8],RDX MOV dword ptr [RSP + 0x34],0x0 LAB_0017f101: MOV EAX,dword ptr [RSP + 0x34] ADD RSP,0x38 RET
int4 JS_WriteSharedArrayBuffer(int8 *param_1,long param_2) { int4 *puVar1; int8 uVar2; int iVar3; int4 local_4; puVar1 = *(int4 **)(param_2 + 0x30); bc_put_u8(param_1,0x10); bc_put_leb128(param_1,*puVar1); bc_put_leb128(param_1,puVar1[1]); bc_put_u64(param_1,*(int8 *)(puVar1 + 4)); iVar3 = js_resize_array(*param_1,param_1 + 0xc,8,(long)param_1 + 0x6c,*(int *)(param_1 + 0xd) + 1) ; if (iVar3 == 0) { uVar2 = *(int8 *)(puVar1 + 4); iVar3 = *(int *)(param_1 + 0xd); *(int *)(param_1 + 0xd) = iVar3 + 1; *(int8 *)(param_1[0xc] + (long)iVar3 * 8) = uVar2; local_4 = 0; } else { local_4 = 0xffffffff; } return local_4; }
34,080
JS_WriteSharedArrayBuffer
bluesky950520[P]quickjs/quickjs.c
static int JS_WriteSharedArrayBuffer(BCWriterState *s, JSValue obj) { JSObject *p = JS_VALUE_GET_OBJ(obj); JSArrayBuffer *abuf = p->u.array_buffer; assert(!abuf->detached); /* SharedArrayBuffer are never detached */ bc_put_u8(s, BC_TAG_SHARED_ARRAY_BUFFER); bc_put_leb128(s, abuf->byte_length); bc_put_leb128(s, abuf->max_byte_length); bc_put_u64(s, (uintptr_t)abuf->data); if (js_resize_array(s->ctx, (void **)&s->sab_tab, sizeof(s->sab_tab[0]), &s->sab_tab_size, s->sab_tab_len + 1)) return -1; /* keep the SAB pointer so that the user can clone it or free it */ s->sab_tab[s->sab_tab_len++] = abuf->data; return 0; }
O1
c
JS_WriteSharedArrayBuffer: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq 0x30(%rsi), %r15 leaq 0x8(%rdi), %r14 movq %r14, %rdi movl $0x10, %esi callq 0x1f52c movl (%r15), %esi movq %r14, %rdi callq 0x498b0 movl 0x4(%r15), %esi movq %r14, %rdi callq 0x498b0 movq 0x10(%r15), %rax leaq 0x8(%rsp), %rsi movq %rax, (%rsi) movl $0x8, %edx movq %r14, %rdi callq 0x1f47e movl 0x68(%rbx), %r8d cmpl %r8d, 0x6c(%rbx) jle 0x497d0 movq 0x10(%r15), %rax movq 0x60(%rbx), %rcx movslq 0x68(%rbx), %rdx leal 0x1(%rdx), %esi movl %esi, 0x68(%rbx) movq %rax, (%rcx,%rdx,8) xorl %eax, %eax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq leaq 0x60(%rbx), %rsi leaq 0x6c(%rbx), %rcx incl %r8d movq (%rbx), %rdi movl $0x8, %edx callq 0x4754b movl %eax, %ecx movl $0xffffffff, %eax # imm = 0xFFFFFFFF testl %ecx, %ecx jne 0x497c6 jmp 0x497ae
JS_WriteSharedArrayBuffer: push r15 push r14 push rbx sub rsp, 10h mov rbx, rdi mov r15, [rsi+30h] lea r14, [rdi+8] mov rdi, r14 mov esi, 10h call dbuf_putc mov esi, [r15] mov rdi, r14 call dbuf_put_leb128 mov esi, [r15+4] mov rdi, r14 call dbuf_put_leb128 mov rax, [r15+10h] lea rsi, [rsp+28h+var_20] mov [rsi], rax mov edx, 8 mov rdi, r14 call dbuf_put mov r8d, [rbx+68h] cmp [rbx+6Ch], r8d jle short loc_497D0 loc_497AE: mov rax, [r15+10h] mov rcx, [rbx+60h] movsxd rdx, dword ptr [rbx+68h] lea esi, [rdx+1] mov [rbx+68h], esi mov [rcx+rdx*8], rax xor eax, eax loc_497C6: add rsp, 10h pop rbx pop r14 pop r15 retn loc_497D0: lea rsi, [rbx+60h] lea rcx, [rbx+6Ch] inc r8d mov rdi, [rbx] mov edx, 8 call js_realloc_array mov ecx, eax mov eax, 0FFFFFFFFh test ecx, ecx jnz short loc_497C6 jmp short loc_497AE
long long JS_WriteSharedArrayBuffer(long long a1, long long a2) { unsigned int *v2; // r15 int v3; // r8d long long v4; // rax long long v5; // rcx long long v6; // rdx long long result; // rax int v8; // ecx _QWORD v9[4]; // [rsp+8h] [rbp-20h] BYREF v2 = *(unsigned int **)(a2 + 48); dbuf_putc((_QWORD *)(a1 + 8), 16); dbuf_put_leb128(a1 + 8, *v2); dbuf_put_leb128(a1 + 8, v2[1]); v9[0] = *((_QWORD *)v2 + 2); dbuf_put((_QWORD *)(a1 + 8), (long long)v9, 8LL); v3 = *(_DWORD *)(a1 + 104); if ( *(_DWORD *)(a1 + 108) > v3 || (v8 = js_realloc_array(*(_QWORD *)a1, (long long *)(a1 + 96), 8u, (_DWORD *)(a1 + 108), v3 + 1), result = 0xFFFFFFFFLL, !v8) ) { v4 = *((_QWORD *)v2 + 2); v5 = *(_QWORD *)(a1 + 96); v6 = *(int *)(a1 + 104); *(_DWORD *)(a1 + 104) = v6 + 1; *(_QWORD *)(v5 + 8 * v6) = v4; return 0LL; } return result; }
JS_WriteSharedArrayBuffer: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV R15,qword ptr [RSI + 0x30] LEA R14,[RDI + 0x8] MOV RDI,R14 MOV ESI,0x10 CALL 0x0011f52c MOV ESI,dword ptr [R15] MOV RDI,R14 CALL 0x001498b0 MOV ESI,dword ptr [R15 + 0x4] MOV RDI,R14 CALL 0x001498b0 MOV RAX,qword ptr [R15 + 0x10] LEA RSI,[RSP + 0x8] MOV qword ptr [RSI],RAX MOV EDX,0x8 MOV RDI,R14 CALL 0x0011f47e MOV R8D,dword ptr [RBX + 0x68] CMP dword ptr [RBX + 0x6c],R8D JLE 0x001497d0 LAB_001497ae: MOV RAX,qword ptr [R15 + 0x10] MOV RCX,qword ptr [RBX + 0x60] MOVSXD RDX,dword ptr [RBX + 0x68] LEA ESI,[RDX + 0x1] MOV dword ptr [RBX + 0x68],ESI MOV qword ptr [RCX + RDX*0x8],RAX XOR EAX,EAX LAB_001497c6: ADD RSP,0x10 POP RBX POP R14 POP R15 RET LAB_001497d0: LEA RSI,[RBX + 0x60] LEA RCX,[RBX + 0x6c] INC R8D MOV RDI,qword ptr [RBX] MOV EDX,0x8 CALL 0x0014754b MOV ECX,EAX MOV EAX,0xffffffff TEST ECX,ECX JNZ 0x001497c6 JMP 0x001497ae
int8 JS_WriteSharedArrayBuffer(int8 *param_1,long param_2) { int8 *puVar1; int4 *puVar2; int8 uVar3; int iVar4; int8 local_20; puVar2 = *(int4 **)(param_2 + 0x30); puVar1 = param_1 + 1; dbuf_putc(puVar1,0x10); dbuf_put_leb128(puVar1,*puVar2); dbuf_put_leb128(puVar1,puVar2[1]); local_20 = *(int8 *)(puVar2 + 4); dbuf_put(puVar1,&local_20,8); if ((*(int *)((long)param_1 + 0x6c) <= *(int *)(param_1 + 0xd)) && (iVar4 = js_realloc_array(*param_1,param_1 + 0xc,8,(long)param_1 + 0x6c, *(int *)(param_1 + 0xd) + 1), iVar4 != 0)) { return 0xffffffff; } uVar3 = *(int8 *)(puVar2 + 4); iVar4 = *(int *)(param_1 + 0xd); *(int *)(param_1 + 0xd) = iVar4 + 1; *(int8 *)(param_1[0xc] + (long)iVar4 * 8) = uVar3; return 0; }
34,081
void fmt::v10::detail::buffer<char>::append<char>(char const*, char const*)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
void buffer<T>::append(const U* begin, const U* end) { while (begin != end) { auto count = to_unsigned(end - begin); try_reserve(size_ + count); auto free_cap = capacity_ - size_; if (free_cap < count) count = free_cap; std::uninitialized_copy_n(begin, count, ptr_ + size_); size_ += count; begin += count; } }
O0
c
void fmt::v10::detail::buffer<char>::append<char>(char const*, char const*): subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq %rdx, 0x20(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x28(%rsp), %rax cmpq 0x20(%rsp), %rax je 0xa0641 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rax subq %rax, %rdi callq 0xa0650 movq 0x8(%rsp), %rdi movq %rax, 0x18(%rsp) movq 0x10(%rdi), %rsi addq 0x18(%rsp), %rsi callq 0xa0430 movq 0x8(%rsp), %rcx movq 0x18(%rcx), %rax subq 0x10(%rcx), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax cmpq 0x18(%rsp), %rax jae 0xa05ff movq 0x10(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x8(%rsp), %rax movq 0x28(%rsp), %rdi movq 0x18(%rsp), %rsi movq 0x8(%rax), %rdx addq 0x10(%rax), %rdx callq 0x921a0 movq 0x8(%rsp), %rax movq 0x18(%rsp), %rcx addq 0x10(%rax), %rcx movq %rcx, 0x10(%rax) movq 0x18(%rsp), %rax addq 0x28(%rsp), %rax movq %rax, 0x28(%rsp) jmp 0xa059d addq $0x38, %rsp retq nopw %cs:(%rax,%rax)
_ZN3fmt3v106detail6bufferIcE6appendIcEEvPKT_S7_: sub rsp, 38h mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov [rsp+38h+var_18], rdx mov rax, [rsp+38h+var_8] mov [rsp+38h+var_30], rax loc_A059D: mov rax, [rsp+38h+var_10] cmp rax, [rsp+38h+var_18] jz loc_A0641 mov rdi, [rsp+38h+var_18] mov rax, [rsp+38h+var_10] sub rdi, rax call _ZN3fmt3v106detail11to_unsignedIlEENSt13make_unsignedIT_E4typeES4_; fmt::v10::detail::to_unsigned<long>(long) mov rdi, [rsp+38h+var_30] mov [rsp+38h+var_20], rax mov rsi, [rdi+10h] add rsi, [rsp+38h+var_20] call _ZN3fmt3v106detail6bufferIcE11try_reserveEm; fmt::v10::detail::buffer<char>::try_reserve(ulong) mov rcx, [rsp+38h+var_30] mov rax, [rcx+18h] sub rax, [rcx+10h] mov [rsp+38h+var_28], rax mov rax, [rsp+38h+var_28] cmp rax, [rsp+38h+var_20] jnb short loc_A05FF mov rax, [rsp+38h+var_28] mov [rsp+38h+var_20], rax loc_A05FF: mov rax, [rsp+38h+var_30] mov rdi, [rsp+38h+var_10] mov rsi, [rsp+38h+var_20] mov rdx, [rax+8] add rdx, [rax+10h] call __ZSt20uninitialized_copy_nIPKcmPcET1_T_T0_S3_; std::uninitialized_copy_n<char const*,ulong,char *>(char const*,ulong,char *) mov rax, [rsp+38h+var_30] mov rcx, [rsp+38h+var_20] add rcx, [rax+10h] mov [rax+10h], rcx mov rax, [rsp+38h+var_20] add rax, [rsp+38h+var_10] mov [rsp+38h+var_10], rax jmp loc_A059D loc_A0641: add rsp, 38h retn
long long fmt::v10::detail::buffer<char>::append<char>(_QWORD *a1, long long a2, long long a3) { long long result; // rax unsigned long long v4; // [rsp+18h] [rbp-20h] while ( 1 ) { result = a2; if ( a2 == a3 ) break; v4 = fmt::v10::detail::to_unsigned<long>(a3 - a2); fmt::v10::detail::buffer<char>::try_reserve((long long)a1, v4 + a1[2]); if ( a1[3] - a1[2] < v4 ) v4 = a1[3] - a1[2]; std::uninitialized_copy_n<char const*,unsigned long,char *>(a2, v4, a1[2] + a1[1]); a1[2] += v4; a2 += v4; } return result; }
append<char>: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x20],RDX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x8],RAX LAB_001a059d: MOV RAX,qword ptr [RSP + 0x28] CMP RAX,qword ptr [RSP + 0x20] JZ 0x001a0641 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x28] SUB RDI,RAX CALL 0x001a0650 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x18],RAX MOV RSI,qword ptr [RDI + 0x10] ADD RSI,qword ptr [RSP + 0x18] CALL 0x001a0430 MOV RCX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RCX + 0x18] SUB RAX,qword ptr [RCX + 0x10] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x10] CMP RAX,qword ptr [RSP + 0x18] JNC 0x001a05ff MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x18],RAX LAB_001a05ff: MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RAX + 0x8] ADD RDX,qword ptr [RAX + 0x10] CALL 0x001921a0 MOV RAX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RSP + 0x18] ADD RCX,qword ptr [RAX + 0x10] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RSP + 0x18] ADD RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x28],RAX JMP 0x001a059d LAB_001a0641: ADD RSP,0x38 RET
/* void fmt::v10::detail::buffer<char>::append<char>(char const*, char const*) */ void __thiscall fmt::v10::detail::buffer<char>::append<char>(buffer<char> *this,char *param_1,char *param_2) { ulong local_20; char *local_10; for (local_10 = param_1; local_10 != param_2; local_10 = local_10 + local_20) { local_20 = to_unsigned<long>((long)param_2 - (long)local_10); try_reserve(this,*(long *)(this + 0x10) + local_20); if ((ulong)(*(long *)(this + 0x18) - *(long *)(this + 0x10)) < local_20) { local_20 = *(long *)(this + 0x18) - *(long *)(this + 0x10); } std::uninitialized_copy_n<char_const*,unsigned_long,char*> (local_10,local_20,(char *)(*(long *)(this + 8) + *(long *)(this + 0x10))); *(ulong *)(this + 0x10) = local_20 + *(long *)(this + 0x10); } return; }
34,082
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>::size() const
monkey531[P]llama/common/json.hpp
size_type size() const noexcept { switch (m_data.m_type) { case value_t::null: { // null values are empty return 0; } case value_t::array: { // delegate call to array_t::size() return m_data.m_value.array->size(); } case value_t::object: { // delegate call to object_t::size() return m_data.m_value.object->size(); } case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: { // all other types have size 1 return 1; } } }
O0
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::size() const: subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x8(%rsp) movzbl (%rax), %eax movq %rax, 0x10(%rsp) subq $0x9, %rax ja 0xb6e7d movq 0x10(%rsp), %rax leaq 0x156fc7(%rip), %rcx # 0x20de04 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq $0x0, 0x20(%rsp) jmp 0xb6e86 movq 0x8(%rsp), %rax movq 0x8(%rax), %rdi callq 0xb6310 movq %rax, 0x20(%rsp) jmp 0xb6e86 movq 0x8(%rsp), %rax movq 0x8(%rax), %rdi callq 0xb6f10 movq %rax, 0x20(%rsp) jmp 0xb6e86 jmp 0xb6e7d movq $0x1, 0x20(%rsp) movq 0x20(%rsp), %rax addq $0x28, %rsp retq
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv: sub rsp, 28h mov [rsp+28h+var_10], rdi mov rax, [rsp+28h+var_10] mov [rsp+28h+var_20], rax movzx eax, byte ptr [rax] mov [rsp+28h+var_18], rax sub rax, 9; switch 10 cases ja short def_B6E44; jumptable 00000000000B6E44 default case mov rax, [rsp+28h+var_18] lea rcx, jpt_B6E44 movsxd rax, ds:(jpt_B6E44 - 20DE04h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_B6E46: mov [rsp+28h+var_8], 0; jumptable 00000000000B6E44 case 0 jmp short loc_B6E86 loc_B6E51: mov rax, [rsp+28h+var_20]; jumptable 00000000000B6E44 case 2 mov rdi, [rax+8] call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::size(void) mov [rsp+28h+var_8], rax jmp short loc_B6E86 loc_B6E66: mov rax, [rsp+28h+var_20]; jumptable 00000000000B6E44 case 1 mov rdi, [rax+8] call _ZNKSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE4sizeEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::size(void) mov [rsp+28h+var_8], rax jmp short loc_B6E86 loc_B6E7B: jmp short $+2; jumptable 00000000000B6E44 cases 3-9 def_B6E44: mov [rsp+28h+var_8], 1; jumptable 00000000000B6E44 default case loc_B6E86: mov rax, [rsp+28h+var_8] add rsp, 28h retn
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::size( long long a1) { long long v2; // [rsp+20h] [rbp-8h] switch ( *(_BYTE *)a1 ) { case 0: v2 = 0LL; break; case 1: v2 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::size(*(_QWORD *)(a1 + 8)); break; case 2: v2 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::size(*(_QWORD **)(a1 + 8)); break; default: v2 = 1LL; break; } return v2; }
size: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RDI MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x8],RAX MOVZX EAX,byte ptr [RAX] MOV qword ptr [RSP + 0x10],RAX SUB RAX,0x9 JA 0x001b6e7d MOV RAX,qword ptr [RSP + 0x10] LEA RCX,[0x30de04] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: MOV qword ptr [RSP + 0x20],0x0 JMP 0x001b6e86 caseD_2: MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x8] CALL 0x001b6310 MOV qword ptr [RSP + 0x20],RAX JMP 0x001b6e86 caseD_1: MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x8] CALL 0x001b6f10 MOV qword ptr [RSP + 0x20],RAX JMP 0x001b6e86 caseD_3: JMP 0x001b6e7d default: MOV qword ptr [RSP + 0x20],0x1 LAB_001b6e86: MOV RAX,qword ptr [RSP + 0x20] ADD RSP,0x28 RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::size() const */ int8 __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::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> *this) { int8 local_8; switch(*this) { case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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: local_8 = 0; break; case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1: local_8 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::size(*(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)(this + 8)); break; case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2: local_8 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::size(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(this + 8)); break; case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x3: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x4: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x5: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x6: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x7: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x8: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x9: default: local_8 = 1; } return local_8; }
34,083
LefDefParser::defwDefaultCap(int, double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
int defwDefaultCap(int pins, double cap) { defwFunc = DEFW_DEFAULTCAP; // Current function of writer if (!defwFile) return DEFW_UNINITIALIZED; if (defwState != DEFW_DEFAULTCAP_START && defwState != DEFW_DEFAULTCAP) return DEFW_BAD_ORDER; fprintf(defwFile, " MINPINS %d WIRECAP %f ;\n", pins, cap); defwLines++; defwCounter--; defwState = DEFW_DEFAULTCAP; return DEFW_OK; }
O0
cpp
LefDefParser::defwDefaultCap(int, double): subq $0x18, %rsp movl %edi, 0x10(%rsp) movsd %xmm0, 0x8(%rsp) leaq 0x18743(%rip), %rax # 0x2b168 movl $0x14, (%rax) leaq 0x18726(%rip), %rax # 0x2b158 cmpq $0x0, (%rax) jne 0x12a45 movl $0x1, 0x14(%rsp) jmp 0x12ac8 leaq 0x18718(%rip), %rax # 0x2b164 cmpl $0x13, (%rax) je 0x12a67 leaq 0x1870c(%rip), %rax # 0x2b164 cmpl $0x14, (%rax) je 0x12a67 movl $0x2, 0x14(%rsp) jmp 0x12ac8 leaq 0x186ea(%rip), %rax # 0x2b158 movq (%rax), %rdi movl 0x10(%rsp), %edx movsd 0x8(%rsp), %xmm0 leaq 0x11723(%rip), %rsi # 0x241a5 movb $0x1, %al callq 0x10f0 leaq 0x186d0(%rip), %rax # 0x2b160 movl (%rax), %ecx addl $0x1, %ecx leaq 0x186c4(%rip), %rax # 0x2b160 movl %ecx, (%rax) leaq 0x186d3(%rip), %rax # 0x2b178 movl (%rax), %ecx addl $-0x1, %ecx leaq 0x186c7(%rip), %rax # 0x2b178 movl %ecx, (%rax) leaq 0x186aa(%rip), %rax # 0x2b164 movl $0x14, (%rax) movl $0x0, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser14defwDefaultCapEid: sub rsp, 18h mov [rsp+18h+var_8], edi movsd [rsp+18h+var_10], xmm0 lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc mov dword ptr [rax], 14h lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile cmp qword ptr [rax], 0 jnz short loc_12A45 mov [rsp+18h+var_4], 1 jmp loc_12AC8 loc_12A45: lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState cmp dword ptr [rax], 13h jz short loc_12A67 lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState cmp dword ptr [rax], 14h jz short loc_12A67 mov [rsp+18h+var_4], 2 jmp short loc_12AC8 loc_12A67: lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile mov rdi, [rax] mov edx, [rsp+18h+var_8] movsd xmm0, [rsp+18h+var_10] lea rsi, aMinpinsDWireca; " MINPINS %d WIRECAP %f ;\n" mov al, 1 call _fprintf lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines mov [rax], ecx lea rax, _ZN12LefDefParser11defwCounterE; LefDefParser::defwCounter mov ecx, [rax] add ecx, 0FFFFFFFFh lea rax, _ZN12LefDefParser11defwCounterE; LefDefParser::defwCounter mov [rax], ecx lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState mov dword ptr [rax], 14h mov [rsp+18h+var_4], 0 loc_12AC8: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long LefDefParser::defwDefaultCap(LefDefParser *this, double a2) { LefDefParser::defwFunc = 20; if ( LefDefParser::defwFile ) { if ( LefDefParser::defwState == 19 || LefDefParser::defwState == 20 ) { fprintf(LefDefParser::defwFile, " MINPINS %d WIRECAP %f ;\n", (_DWORD)this, a2); ++LefDefParser::defwLines; --LefDefParser::defwCounter; LefDefParser::defwState = 20; return 0; } else { return 2; } } else { return 1; } }
defwDefaultCap: SUB RSP,0x18 MOV dword ptr [RSP + 0x10],EDI MOVSD qword ptr [RSP + 0x8],XMM0 LEA RAX,[0x12b168] MOV dword ptr [RAX],0x14 LEA RAX,[0x12b158] CMP qword ptr [RAX],0x0 JNZ 0x00112a45 MOV dword ptr [RSP + 0x14],0x1 JMP 0x00112ac8 LAB_00112a45: LEA RAX,[0x12b164] CMP dword ptr [RAX],0x13 JZ 0x00112a67 LEA RAX,[0x12b164] CMP dword ptr [RAX],0x14 JZ 0x00112a67 MOV dword ptr [RSP + 0x14],0x2 JMP 0x00112ac8 LAB_00112a67: LEA RAX,[0x12b158] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RSP + 0x10] MOVSD XMM0,qword ptr [RSP + 0x8] LEA RSI,[0x1241a5] MOV AL,0x1 CALL 0x001010f0 LEA RAX,[0x12b160] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x12b160] MOV dword ptr [RAX],ECX LEA RAX,[0x12b178] MOV ECX,dword ptr [RAX] ADD ECX,-0x1 LEA RAX,[0x12b178] MOV dword ptr [RAX],ECX LEA RAX,[0x12b164] MOV dword ptr [RAX],0x14 MOV dword ptr [RSP + 0x14],0x0 LAB_00112ac8: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
/* LefDefParser::defwDefaultCap(int, double) */ int4 LefDefParser::defwDefaultCap(int param_1,double param_2) { int4 local_4; defwFunc = 0x14; if (defwFile == (FILE *)0x0) { local_4 = 1; } else if ((defwState == 0x13) || (defwState == 0x14)) { fprintf(defwFile," MINPINS %d WIRECAP %f ;\n",param_2,(ulong)(uint)param_1); defwLines = defwLines + 1; defwCounter = defwCounter + -1; defwState = 0x14; local_4 = 0; } else { local_4 = 2; } return local_4; }
34,084
LefDefParser::defwDefaultCap(int, double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
int defwDefaultCap(int pins, double cap) { defwFunc = DEFW_DEFAULTCAP; // Current function of writer if (!defwFile) return DEFW_UNINITIALIZED; if (defwState != DEFW_DEFAULTCAP_START && defwState != DEFW_DEFAULTCAP) return DEFW_BAD_ORDER; fprintf(defwFile, " MINPINS %d WIRECAP %f ;\n", pins, cap); defwLines++; defwCounter--; defwState = DEFW_DEFAULTCAP; return DEFW_OK; }
O3
cpp
LefDefParser::defwDefaultCap(int, double): pushq %rbx movl %edi, %edx leaq 0x1584d(%rip), %rax # 0x1e178 movl $0x14, (%rax) leaq 0x15830(%rip), %rax # 0x1e168 movq (%rax), %rdi testq %rdi, %rdi je 0x8980 leaq 0x1582d(%rip), %rbx # 0x1e174 movl (%rbx), %ecx addl $-0x15, %ecx movl $0x2, %eax cmpl $-0x2, %ecx jb 0x8985 leaq 0xc987(%rip), %rsi # 0x152e4 movb $0x1, %al callq 0x10e0 leaq 0x15805(%rip), %rax # 0x1e170 incl (%rax) leaq 0x15814(%rip), %rax # 0x1e188 decl (%rax) movl $0x14, (%rbx) xorl %eax, %eax jmp 0x8985 movl $0x1, %eax popq %rbx retq
_ZN12LefDefParser14defwDefaultCapEid: push rbx mov edx, edi lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc mov dword ptr [rax], 14h lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile mov rdi, [rax] test rdi, rdi jz short loc_8980 lea rbx, _ZN12LefDefParser9defwStateE; LefDefParser::defwState mov ecx, [rbx] add ecx, 0FFFFFFEBh mov eax, 2 cmp ecx, 0FFFFFFFEh jb short loc_8985 lea rsi, aMinpinsDWireca; " MINPINS %d WIRECAP %f ;\n" mov al, 1 call _fprintf lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines inc dword ptr [rax] lea rax, _ZN12LefDefParser11defwCounterE; LefDefParser::defwCounter dec dword ptr [rax] mov dword ptr [rbx], 14h xor eax, eax jmp short loc_8985 loc_8980: mov eax, 1 loc_8985: pop rbx retn
long long LefDefParser::defwDefaultCap(LefDefParser *this, double a2) { long long result; // rax LefDefParser::defwFunc = 20; if ( !LefDefParser::defwFile ) return 1LL; result = 2LL; if ( (unsigned int)(LefDefParser::defwState - 21) >= 0xFFFFFFFE ) { fprintf(LefDefParser::defwFile, " MINPINS %d WIRECAP %f ;\n", (_DWORD)this, a2); ++LefDefParser::defwLines; --LefDefParser::defwCounter; LefDefParser::defwState = 20; return 0LL; } return result; }
defwDefaultCap: PUSH RBX MOV EDX,EDI LEA RAX,[0x11e178] MOV dword ptr [RAX],0x14 LEA RAX,[0x11e168] MOV RDI,qword ptr [RAX] TEST RDI,RDI JZ 0x00108980 LEA RBX,[0x11e174] MOV ECX,dword ptr [RBX] ADD ECX,-0x15 MOV EAX,0x2 CMP ECX,-0x2 JC 0x00108985 LEA RSI,[0x1152e4] MOV AL,0x1 CALL 0x001010e0 LEA RAX,[0x11e170] INC dword ptr [RAX] LEA RAX,[0x11e188] DEC dword ptr [RAX] MOV dword ptr [RBX],0x14 XOR EAX,EAX JMP 0x00108985 LAB_00108980: MOV EAX,0x1 LAB_00108985: POP RBX RET
/* LefDefParser::defwDefaultCap(int, double) */ int8 LefDefParser::defwDefaultCap(int param_1,double param_2) { int8 uVar1; defwFunc = 0x14; if (defwFile == (FILE *)0x0) { uVar1 = 1; } else { uVar1 = 2; if (0xfffffffd < defwState - 0x15U) { fprintf(defwFile," MINPINS %d WIRECAP %f ;\n",param_1); defwLines = defwLines + 1; defwCounter = defwCounter + -1; defwState = 0x14; uVar1 = 0; } } return uVar1; }
34,085
coro::detail::when_all_task_promise<void>::unhandled_exception()
AlayaLite/build_O3/_deps/libcoro-src/include/coro/when_all.hpp
auto unhandled_exception() noexcept -> void { m_exception_ptr = std::current_exception(); }
O3
cpp
coro::detail::when_all_task_promise<void>::unhandled_exception(): pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x32e0 movq (%r14), %rax movq $0x0, (%r14) movq 0x8(%rbx), %rcx movq %rcx, 0x10(%rsp) movq %rax, 0x8(%rbx) testq %rcx, %rcx je 0x530b leaq 0x10(%rsp), %rdi callq 0x3270 cmpq $0x0, 0x8(%rsp) je 0x530b leaq 0x8(%rsp), %rdi callq 0x3270 addq $0x18, %rsp popq %rbx popq %r14 retq nop
_ZN4coro6detail21when_all_task_promiseIvE19unhandled_exceptionEv: push r14 push rbx sub rsp, 18h mov rbx, rdi lea r14, [rsp+28h+var_20] mov rdi, r14 call __ZSt17current_exceptionv; std::current_exception(void) mov rax, [r14] mov qword ptr [r14], 0 mov rcx, [rbx+8] mov [rsp+28h+var_18], rcx mov [rbx+8], rax test rcx, rcx jz short loc_530B lea rdi, [rsp+28h+var_18]; this call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void) cmp [rsp+28h+var_20], 0 jz short loc_530B lea rdi, [rsp+28h+var_20]; this call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void) loc_530B: add rsp, 18h pop rbx pop r14 retn
long long coro::detail::when_all_task_promise<void>::unhandled_exception(long long a1) { long long result; // rax long long v2; // rcx long long v3; // [rsp+8h] [rbp-20h] BYREF _QWORD v4[3]; // [rsp+10h] [rbp-18h] BYREF std::current_exception(); result = v3; v3 = 0LL; v4[0] = *(_QWORD *)(a1 + 8); v2 = v4[0]; *(_QWORD *)(a1 + 8) = result; if ( v2 ) { result = std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)v4); if ( v3 ) return std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)&v3); } return result; }
unhandled_exception: PUSH R14 PUSH RBX SUB RSP,0x18 MOV RBX,RDI LEA R14,[RSP + 0x8] MOV RDI,R14 CALL 0x001032e0 MOV RAX,qword ptr [R14] MOV qword ptr [R14],0x0 MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RSP + 0x10],RCX MOV qword ptr [RBX + 0x8],RAX TEST RCX,RCX JZ 0x0010530b LEA RDI,[RSP + 0x10] CALL 0x00103270 CMP qword ptr [RSP + 0x8],0x0 JZ 0x0010530b LEA RDI,[RSP + 0x8] CALL 0x00103270 LAB_0010530b: ADD RSP,0x18 POP RBX POP R14 RET
/* WARNING: Removing unreachable block (ram,0x00105301) */ /* coro::detail::when_all_task_promise<void>::unhandled_exception() */ void __thiscall coro::detail::when_all_task_promise<void>::unhandled_exception(when_all_task_promise<void> *this) { long lVar1; int8 local_20; std::current_exception(); lVar1 = *(long *)(this + 8); *(int8 *)(this + 8) = local_20; if (lVar1 != 0) { std::__exception_ptr::exception_ptr::_M_release(); } return; }
34,086
js_os_rename
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_os_rename(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { const char *oldpath, *newpath; int ret; oldpath = JS_ToCString(ctx, argv[0]); if (!oldpath) return JS_EXCEPTION; newpath = JS_ToCString(ctx, argv[1]); if (!newpath) { JS_FreeCString(ctx, oldpath); return JS_EXCEPTION; } ret = js_get_errno(rename(oldpath, newpath)); JS_FreeCString(ctx, oldpath); JS_FreeCString(ctx, newpath); return JS_NewInt32(ctx, ret); }
O2
c
js_os_rename: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %r8, %r12 movq %rdi, %rbx movq (%r8), %rsi movq 0x8(%r8), %rdx callq 0x1561c pushq $0x6 popq %r14 testq %rax, %rax je 0x175bd movq %rax, %r15 movq 0x10(%r12), %rsi movq 0x18(%r12), %rdx movq %rbx, %rdi callq 0x1561c testq %rax, %rax je 0x175b2 movq %rax, %r12 movq %r15, %rdi movq %rax, %rsi callq 0xe8a0 movslq %eax, %rdi callq 0x14f5b movq %rax, %r14 movq %rbx, %rdi movq %r15, %rsi callq 0x1ec07 movq %rbx, %rdi movq %r12, %rsi callq 0x1ec07 movl %r14d, %eax xorl %r14d, %r14d jmp 0x175bf movq %rbx, %rdi movq %r15, %rsi callq 0x1ec07 xorl %eax, %eax movq %r14, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
js_os_rename: push r15 push r14 push r12 push rbx push rax mov r12, r8 mov rbx, rdi mov rsi, [r8] mov rdx, [r8+8] call JS_ToCString_0 push 6 pop r14 test rax, rax jz short loc_175BD mov r15, rax mov rsi, [r12+10h] mov rdx, [r12+18h] mov rdi, rbx call JS_ToCString_0 test rax, rax jz short loc_175B2 mov r12, rax mov rdi, r15 mov rsi, rax call _rename movsxd rdi, eax call js_get_errno mov r14, rax mov rdi, rbx mov rsi, r15 call JS_FreeCString mov rdi, rbx mov rsi, r12 call JS_FreeCString mov eax, r14d xor r14d, r14d jmp short loc_175BF loc_175B2: mov rdi, rbx mov rsi, r15 call JS_FreeCString loc_175BD: xor eax, eax loc_175BF: mov rdx, r14 add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long js_os_rename(long long a1, long long a2, long long a3, long long a4, long long *a5) { long long v6; // rax long long v7; // r15 long long v8; // rax long long v9; // r12 int v10; // eax unsigned int errno; // r14d v6 = JS_ToCString_0(a1, *a5, a5[1]); if ( v6 ) { v7 = v6; v8 = JS_ToCString_0(a1, a5[2], a5[3]); if ( v8 ) { v9 = v8; v10 = rename(v7, v8); errno = js_get_errno(v10); JS_FreeCString(a1, v7); JS_FreeCString(a1, v9); return errno; } JS_FreeCString(a1, v7); } return 0LL; }
js_os_rename: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R12,R8 MOV RBX,RDI MOV RSI,qword ptr [R8] MOV RDX,qword ptr [R8 + 0x8] CALL 0x0011561c PUSH 0x6 POP R14 TEST RAX,RAX JZ 0x001175bd MOV R15,RAX MOV RSI,qword ptr [R12 + 0x10] MOV RDX,qword ptr [R12 + 0x18] MOV RDI,RBX CALL 0x0011561c TEST RAX,RAX JZ 0x001175b2 MOV R12,RAX MOV RDI,R15 MOV RSI,RAX CALL 0x0010e8a0 MOVSXD RDI,EAX CALL 0x00114f5b MOV R14,RAX MOV RDI,RBX MOV RSI,R15 CALL 0x0011ec07 MOV RDI,RBX MOV RSI,R12 CALL 0x0011ec07 MOV EAX,R14D XOR R14D,R14D JMP 0x001175bf LAB_001175b2: MOV RDI,RBX MOV RSI,R15 CALL 0x0011ec07 LAB_001175bd: XOR EAX,EAX LAB_001175bf: MOV RDX,R14 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
int4 js_os_rename(int8 param_1) { int iVar1; int4 uVar2; char *__old; char *__new; int8 *in_R8; __old = (char *)JS_ToCString(param_1,*in_R8,in_R8[1]); if (__old != (char *)0x0) { __new = (char *)JS_ToCString(param_1,in_R8[2],in_R8[3]); if (__new != (char *)0x0) { iVar1 = rename(__old,__new); uVar2 = js_get_errno((long)iVar1); JS_FreeCString(param_1,__old); JS_FreeCString(param_1,__new); return uVar2; } JS_FreeCString(param_1,__old); } return 0; }
34,087
my_uca_coll_init_utf8mb3
eloqsql/strings/ctype-uca.c
static my_bool my_uca_coll_init_utf8mb3(struct charset_info_st *cs, MY_CHARSET_LOADER *loader) { if (my_coll_init_uca(cs, loader)) return TRUE; if (my_uca_collation_can_optimize_no_contractions(cs)) my_uca_handler_map(cs, &my_uca_package_utf8mb3, &my_uca_package_no_contractions_utf8mb3); return FALSE; }
O0
c
my_uca_coll_init_utf8mb3: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x5d7b0 cmpb $0x0, %al je 0x5ec47 movb $0x1, -0x1(%rbp) jmp 0x5ec6f movq -0x10(%rbp), %rdi callq 0x697a0 cmpb $0x0, %al je 0x5ec6b movq -0x10(%rbp), %rdi leaq 0x27c2f1(%rip), %rsi # 0x2daf50 leaq 0x27c30a(%rip), %rdx # 0x2daf70 callq 0x69800 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
my_uca_coll_init_utf8mb3: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call my_coll_init_uca cmp al, 0 jz short loc_5EC47 mov [rbp+var_1], 1 jmp short loc_5EC6F loc_5EC47: mov rdi, [rbp+var_10] call my_uca_collation_can_optimize_no_contractions cmp al, 0 jz short loc_5EC6B mov rdi, [rbp+var_10] lea rsi, my_uca_package_utf8mb3 lea rdx, my_uca_package_no_contractions_utf8mb3 call my_uca_handler_map loc_5EC6B: mov [rbp+var_1], 0 loc_5EC6F: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char my_uca_coll_init_utf8mb3(long long a1, long long a2) { if ( (unsigned __int8)my_coll_init_uca(a1, a2) ) return 1; if ( (unsigned __int8)my_uca_collation_can_optimize_no_contractions(a1) ) my_uca_handler_map(a1, my_uca_package_utf8mb3, my_uca_package_no_contractions_utf8mb3); return 0; }
my_uca_coll_init_utf8mb3: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x0015d7b0 CMP AL,0x0 JZ 0x0015ec47 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0015ec6f LAB_0015ec47: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001697a0 CMP AL,0x0 JZ 0x0015ec6b MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x3daf50] LEA RDX,[0x3daf70] CALL 0x00169800 LAB_0015ec6b: MOV byte ptr [RBP + -0x1],0x0 LAB_0015ec6f: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int1 my_uca_coll_init_utf8mb3(int8 param_1,int8 param_2) { char cVar1; int1 local_9; cVar1 = my_coll_init_uca(param_1,param_2); if (cVar1 == '\0') { cVar1 = my_uca_collation_can_optimize_no_contractions(param_1); if (cVar1 != '\0') { my_uca_handler_map(param_1,my_uca_package_utf8mb3,my_uca_package_no_contractions_utf8mb3); } local_9 = 0; } else { local_9 = 1; } return local_9; }
34,088
my_char_weight_put
eloqsql/strings/ctype-uca.c
static my_bool my_char_weight_put(MY_UCA_WEIGHT_LEVEL *dst, uint16 *to, size_t to_length, size_t *nweights, my_wc_t *str, size_t len) { size_t count; int rc= FALSE; if (!to_length) { *nweights= 0; return len > 0; } to_length--; /* Without trailing zero */ for (count= 0; len; ) { size_t chlen; const uint16 *from= NULL; uint16 implicit_weights[3]; for (chlen= len; chlen > 1; chlen--) { const MY_CONTRACTION *cnt; if (chlen <= MY_UCA_MAX_CONTRACTION && (cnt= my_uca_contraction_find(&dst->contractions, str, chlen))) { from= cnt->weight; str+= chlen; len-= chlen; break; } } if (!from) { from= my_char_weight_addr(dst, *str); if (!from) { from= implicit_weights; my_uca_implicit_weight_put(implicit_weights, *str, dst->levelno); } str++; len--; } for ( ; from && *from && count < to_length; ) { *to++= *from++; count++; } if (count == to_length && from && * from) rc= TRUE; /* All weights did not fit */ } *to= 0; *nweights= count; return rc; }
O3
c
my_char_weight_put: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %r8, -0x30(%rbp) testq %rdx, %rdx je 0x605b8 movq %rcx, -0x68(%rbp) testq %r9, %r9 je 0x605c7 movq %rdi, -0x60(%rbp) decq %rdx xorl %ecx, %ecx xorl %r13d, %r13d movq %rdx, -0x48(%rbp) movq %rcx, -0x50(%rbp) movq %rsi, -0x58(%rbp) movq %r9, -0x40(%rbp) cmpq $0x2, %r9 jb 0x6049c movq -0x40(%rbp), %rbx leaq (,%rbx,8), %r12 cmpq $0x6, %rbx ja 0x6048f movq -0x60(%rbp), %rax movq 0x18(%rax), %rax testq %rax, %rax jle 0x6048f movq -0x60(%rbp), %rcx movq 0x20(%rcx), %r15 imulq $0x58, %rax, %r14 addq %r15, %r14 leaq (,%rbx,8), %rax movq %rax, -0x70(%rbp) cmpq $0x6, %rbx je 0x60467 cmpq $0x0, (%r15,%r12) jne 0x60486 cmpb $0x0, 0x52(%r15) jne 0x60486 movq %r15, %rdi movq -0x30(%rbp), %rsi movq -0x70(%rbp), %rdx callq 0x26350 testl %eax, %eax je 0x6053f addq $0x58, %r15 cmpq %r14, %r15 jb 0x6045a decq %rbx addq $-0x8, %r12 cmpq $0x1, %rbx ja 0x6042c movq -0x30(%rbp), %rax movq (%rax), %rax movl %eax, %ecx movq -0x60(%rbp), %rsi cmpq %rcx, (%rsi) jb 0x604d4 movq 0x10(%rsi), %rcx movl %eax, %edx shrl $0x8, %edx movq (%rcx,%rdx,8), %rcx testq %rcx, %rcx je 0x604d4 movzbl %al, %eax movq 0x8(%rsi), %rsi movzbl (%rsi,%rdx), %edx imull %eax, %edx leaq (%rcx,%rdx,2), %r15 jmp 0x60525 leaq -0x3400(%rax), %rcx leaq -0x4e00(%rax), %rdx xorl %esi, %esi cmpq $0x51a6, %rdx # imm = 0x51A6 setae %sil shll $0x7, %esi orl $0xfffffb40, %esi # imm = 0xFFFFFB40 cmpq $0x19b6, %rcx # imm = 0x19B6 movl $0xfb80, %ecx # imm = 0xFB80 cmovbl %ecx, %esi movl %eax, %ecx shrl $0xf, %ecx addl %esi, %ecx movw %cx, -0x36(%rbp) orl $0x8000, %eax # imm = 0x8000 movw %ax, -0x34(%rbp) movw $0x0, -0x32(%rbp) leaq -0x36(%rbp), %r15 movq -0x58(%rbp), %rsi movq -0x40(%rbp), %r9 movq -0x50(%rbp), %rdi movq -0x48(%rbp), %rdx addq $0x8, -0x30(%rbp) decq %r9 jmp 0x60562 addq $0x30, %r15 movq -0x30(%rbp), %rax leaq (%rax,%rbx,8), %rax movq %rax, -0x30(%rbp) movq -0x40(%rbp), %r9 subq %rbx, %r9 movq -0x58(%rbp), %rsi movq -0x50(%rbp), %rdi movq -0x48(%rbp), %rdx movzwl (%r15), %eax testw %ax, %ax sete %cl cmpq %rdx, %r13 setae %r8b orb %cl, %r8b jne 0x60598 addq $0x2, %r15 movw %ax, (%rsi) addq $0x2, %rsi incq %r13 movzwl (%r15), %eax testw %ax, %ax je 0x60598 addq $0x2, %r15 cmpq %rdx, %r13 jb 0x6057c testw %ax, %ax movzbl %dil, %eax movl $0x1, %ecx cmovel %eax, %ecx cmpq %rdx, %r13 cmovnel %eax, %ecx testq %r9, %r9 jne 0x6040e jmp 0x605cc movq $0x0, (%rcx) testq %r9, %r9 setne %cl jmp 0x605d8 xorl %r13d, %r13d xorl %ecx, %ecx movw $0x0, (%rsi) movq -0x68(%rbp), %rax movq %r13, (%rax) movl %ecx, %eax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_char_weight_put: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov [rbp+var_30], r8 test rdx, rdx jz loc_605B8 mov [rbp+var_68], rcx test r9, r9 jz loc_605C7 mov [rbp+var_60], rdi dec rdx xor ecx, ecx xor r13d, r13d mov [rbp+var_48], rdx loc_6040E: mov [rbp+var_50], rcx mov [rbp+var_58], rsi mov [rbp+var_40], r9 cmp r9, 2 jb short loc_6049C mov rbx, [rbp+var_40] lea r12, ds:0[rbx*8] loc_6042C: cmp rbx, 6 ja short loc_6048F mov rax, [rbp+var_60] mov rax, [rax+18h] test rax, rax jle short loc_6048F mov rcx, [rbp+var_60] mov r15, [rcx+20h] imul r14, rax, 58h ; 'X' add r14, r15 lea rax, ds:0[rbx*8] mov [rbp+var_70], rax loc_6045A: cmp rbx, 6 jz short loc_60467 cmp qword ptr [r15+r12], 0 jnz short loc_60486 loc_60467: cmp byte ptr [r15+52h], 0 jnz short loc_60486 mov rdi, r15 mov rsi, [rbp+var_30] mov rdx, [rbp+var_70] call _bcmp test eax, eax jz loc_6053F loc_60486: add r15, 58h ; 'X' cmp r15, r14 jb short loc_6045A loc_6048F: dec rbx add r12, 0FFFFFFFFFFFFFFF8h cmp rbx, 1 ja short loc_6042C loc_6049C: mov rax, [rbp+var_30] mov rax, [rax] mov ecx, eax mov rsi, [rbp+var_60] cmp [rsi], rcx jb short loc_604D4 mov rcx, [rsi+10h] mov edx, eax shr edx, 8 mov rcx, [rcx+rdx*8] test rcx, rcx jz short loc_604D4 movzx eax, al mov rsi, [rsi+8] movzx edx, byte ptr [rsi+rdx] imul edx, eax lea r15, [rcx+rdx*2] jmp short loc_60525 loc_604D4: lea rcx, [rax-3400h] lea rdx, [rax-4E00h] xor esi, esi cmp rdx, 51A6h setnb sil shl esi, 7 or esi, 0FFFFFB40h cmp rcx, 19B6h mov ecx, 0FB80h cmovb esi, ecx mov ecx, eax shr ecx, 0Fh add ecx, esi mov [rbp+var_36], cx or eax, 8000h mov [rbp+var_34], ax mov [rbp+var_32], 0 lea r15, [rbp+var_36] loc_60525: mov rsi, [rbp+var_58] mov r9, [rbp+var_40] mov rdi, [rbp+var_50] mov rdx, [rbp+var_48] add [rbp+var_30], 8 dec r9 jmp short loc_60562 loc_6053F: add r15, 30h ; '0' mov rax, [rbp+var_30] lea rax, [rax+rbx*8] mov [rbp+var_30], rax mov r9, [rbp+var_40] sub r9, rbx mov rsi, [rbp+var_58] mov rdi, [rbp+var_50] mov rdx, [rbp+var_48] loc_60562: movzx eax, word ptr [r15] test ax, ax setz cl cmp r13, rdx setnb r8b or r8b, cl jnz short loc_60598 add r15, 2 loc_6057C: mov [rsi], ax add rsi, 2 inc r13 movzx eax, word ptr [r15] test ax, ax jz short loc_60598 add r15, 2 cmp r13, rdx jb short loc_6057C loc_60598: test ax, ax movzx eax, dil mov ecx, 1 cmovz ecx, eax cmp r13, rdx cmovnz ecx, eax test r9, r9 jnz loc_6040E jmp short loc_605CC loc_605B8: mov qword ptr [rcx], 0 test r9, r9 setnz cl jmp short loc_605D8 loc_605C7: xor r13d, r13d xor ecx, ecx loc_605CC: mov word ptr [rsi], 0 mov rax, [rbp+var_68] mov [rax], r13 loc_605D8: mov eax, ecx add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_char_weight_put( _QWORD *a1, _WORD *a2, long long a3, unsigned long long *a4, long long *a5, unsigned long long a6) { unsigned long long v6; // r13 unsigned long long v7; // rbx long long v8; // r12 long long v9; // rax unsigned long long v10; // r15 unsigned long long v11; // r14 long long v12; // rax long long v13; // rdx long long v14; // rcx __int16 *v15; // r15 __int16 v16; // si unsigned __int8 v17; // di unsigned long long v18; // rdx __int16 v19; // ax __int16 *v20; // r15 unsigned long long *v22; // [rsp+8h] [rbp-68h] _WORD *v24; // [rsp+18h] [rbp-58h] unsigned __int8 v25; // [rsp+20h] [rbp-50h] unsigned long long v26; // [rsp+28h] [rbp-48h] unsigned long long v27; // [rsp+30h] [rbp-40h] _WORD v28[3]; // [rsp+3Ah] [rbp-36h] BYREF long long *v29; // [rsp+40h] [rbp-30h] v29 = a5; if ( a3 ) { v22 = a4; if ( a6 ) { LOBYTE(a4) = 0; v6 = 0LL; v26 = a3 - 1; do { v25 = (unsigned __int8)a4; v24 = a2; v27 = a6; if ( a6 < 2 ) { LABEL_15: v12 = *v29; if ( *a1 >= (unsigned long long)(unsigned int)*v29 && (v13 = (unsigned int)v12 >> 8, (v14 = *(_QWORD *)(a1[2] + 8 * v13)) != 0) ) { v15 = (__int16 *)(v14 + 2LL * (unsigned __int8)v12 * (unsigned int)*(unsigned __int8 *)(a1[1] + v13)); } else { v16 = (((unsigned long long)(v12 - 19968) >= 0x51A6) << 7) | 0xFB40; if ( (unsigned long long)(v12 - 13312) < 0x19B6 ) v16 = -1152; v28[0] = v16 + ((unsigned int)v12 >> 15); v28[1] = v12 | 0x8000; v28[2] = 0; v15 = v28; } a2 = v24; v17 = v25; v18 = v26; ++v29; a6 = v27 - 1; } else { v7 = a6; v8 = 8 * a6; while ( 1 ) { if ( v7 <= 6 ) { v9 = a1[3]; if ( v9 > 0 ) break; } LABEL_14: --v7; v8 -= 8LL; if ( v7 <= 1 ) goto LABEL_15; } v10 = a1[4]; v11 = v10 + 88 * v9; while ( v7 != 6 && *(_QWORD *)(v10 + v8) || *(_BYTE *)(v10 + 82) || (unsigned int)bcmp(v10, v29) ) { v10 += 88LL; if ( v10 >= v11 ) goto LABEL_14; } v15 = (__int16 *)(v10 + 48); v29 += v7; a6 = v27 - v7; v17 = v25; v18 = v26; } v19 = *v15; if ( *v15 != 0 && v6 < v18 ) { v20 = v15 + 1; do { *a2++ = v19; ++v6; v19 = *v20; if ( !*v20 ) break; ++v20; } while ( v6 < v18 ); } LODWORD(a4) = 1; if ( !v19 ) LODWORD(a4) = v17; if ( v6 != v18 ) LODWORD(a4) = v17; } while ( a6 ); } else { v6 = 0LL; LODWORD(a4) = 0; } *a2 = 0; *v22 = v6; } else { *a4 = 0LL; LOBYTE(a4) = a6 != 0; } return (unsigned int)a4; }
my_char_weight_put: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV qword ptr [RBP + -0x30],R8 TEST RDX,RDX JZ 0x001605b8 MOV qword ptr [RBP + -0x68],RCX TEST R9,R9 JZ 0x001605c7 MOV qword ptr [RBP + -0x60],RDI DEC RDX XOR ECX,ECX XOR R13D,R13D MOV qword ptr [RBP + -0x48],RDX LAB_0016040e: MOV qword ptr [RBP + -0x50],RCX MOV qword ptr [RBP + -0x58],RSI MOV qword ptr [RBP + -0x40],R9 CMP R9,0x2 JC 0x0016049c MOV RBX,qword ptr [RBP + -0x40] LEA R12,[RBX*0x8] LAB_0016042c: CMP RBX,0x6 JA 0x0016048f MOV RAX,qword ptr [RBP + -0x60] MOV RAX,qword ptr [RAX + 0x18] TEST RAX,RAX JLE 0x0016048f MOV RCX,qword ptr [RBP + -0x60] MOV R15,qword ptr [RCX + 0x20] IMUL R14,RAX,0x58 ADD R14,R15 LEA RAX,[RBX*0x8] MOV qword ptr [RBP + -0x70],RAX LAB_0016045a: CMP RBX,0x6 JZ 0x00160467 CMP qword ptr [R15 + R12*0x1],0x0 JNZ 0x00160486 LAB_00160467: CMP byte ptr [R15 + 0x52],0x0 JNZ 0x00160486 MOV RDI,R15 MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x70] CALL 0x00126350 TEST EAX,EAX JZ 0x0016053f LAB_00160486: ADD R15,0x58 CMP R15,R14 JC 0x0016045a LAB_0016048f: DEC RBX ADD R12,-0x8 CMP RBX,0x1 JA 0x0016042c LAB_0016049c: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV ECX,EAX MOV RSI,qword ptr [RBP + -0x60] CMP qword ptr [RSI],RCX JC 0x001604d4 MOV RCX,qword ptr [RSI + 0x10] MOV EDX,EAX SHR EDX,0x8 MOV RCX,qword ptr [RCX + RDX*0x8] TEST RCX,RCX JZ 0x001604d4 MOVZX EAX,AL MOV RSI,qword ptr [RSI + 0x8] MOVZX EDX,byte ptr [RSI + RDX*0x1] IMUL EDX,EAX LEA R15,[RCX + RDX*0x2] JMP 0x00160525 LAB_001604d4: LEA RCX,[RAX + -0x3400] LEA RDX,[RAX + -0x4e00] XOR ESI,ESI CMP RDX,0x51a6 SETNC SIL SHL ESI,0x7 OR ESI,0xfffffb40 CMP RCX,0x19b6 MOV ECX,0xfb80 CMOVC ESI,ECX MOV ECX,EAX SHR ECX,0xf ADD ECX,ESI MOV word ptr [RBP + -0x36],CX OR EAX,0x8000 MOV word ptr [RBP + -0x34],AX MOV word ptr [RBP + -0x32],0x0 LEA R15,[RBP + -0x36] LAB_00160525: MOV RSI,qword ptr [RBP + -0x58] MOV R9,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x48] ADD qword ptr [RBP + -0x30],0x8 DEC R9 JMP 0x00160562 LAB_0016053f: ADD R15,0x30 MOV RAX,qword ptr [RBP + -0x30] LEA RAX,[RAX + RBX*0x8] MOV qword ptr [RBP + -0x30],RAX MOV R9,qword ptr [RBP + -0x40] SUB R9,RBX MOV RSI,qword ptr [RBP + -0x58] MOV RDI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x48] LAB_00160562: MOVZX EAX,word ptr [R15] TEST AX,AX SETZ CL CMP R13,RDX SETNC R8B OR R8B,CL JNZ 0x00160598 ADD R15,0x2 LAB_0016057c: MOV word ptr [RSI],AX ADD RSI,0x2 INC R13 MOVZX EAX,word ptr [R15] TEST AX,AX JZ 0x00160598 ADD R15,0x2 CMP R13,RDX JC 0x0016057c LAB_00160598: TEST AX,AX MOVZX EAX,DIL MOV ECX,0x1 CMOVZ ECX,EAX CMP R13,RDX CMOVNZ ECX,EAX TEST R9,R9 JNZ 0x0016040e JMP 0x001605cc LAB_001605b8: MOV qword ptr [RCX],0x0 TEST R9,R9 SETNZ CL JMP 0x001605d8 LAB_001605c7: XOR R13D,R13D XOR ECX,ECX LAB_001605cc: MOV word ptr [RSI],0x0 MOV RAX,qword ptr [RBP + -0x68] MOV qword ptr [RAX],R13 LAB_001605d8: MOV EAX,ECX ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
ulong my_char_weight_put(ulong *param_1,short *param_2,long param_3,ulong *param_4,ulong *param_5, ulong param_6) { ushort uVar1; short sVar2; int iVar3; ulong uVar4; ulong uVar5; ulong uVar6; ulong uVar7; long lVar8; ulong uVar9; void *pvVar10; void *__s1; short *psVar11; short local_3e; ushort local_3c; int2 local_3a; ulong *local_38; if (param_3 == 0) { *param_4 = 0; uVar7 = CONCAT71((int7)((ulong)param_4 >> 8),param_6 != 0); } else { if (param_6 == 0) { uVar9 = 0; uVar7 = 0; } else { uVar5 = param_3 - 1; uVar9 = 0; uVar4 = 0; local_38 = param_5; do { if (1 < param_6) { lVar8 = param_6 * 8; uVar7 = param_6; do { if ((uVar7 < 7) && (0 < (long)param_1[3])) { __s1 = (void *)param_1[4]; pvVar10 = (void *)(param_1[3] * 0x58 + (long)__s1); do { if ((((uVar7 == 6) || (*(long *)((long)__s1 + lVar8) == 0)) && (*(char *)((long)__s1 + 0x52) == '\0')) && (iVar3 = bcmp(__s1,local_38,uVar7 * 8), iVar3 == 0)) { psVar11 = (short *)((long)__s1 + 0x30); local_38 = local_38 + uVar7; param_6 = param_6 - uVar7; goto LAB_00160562; } __s1 = (void *)((long)__s1 + 0x58); } while (__s1 < pvVar10); } uVar7 = uVar7 - 1; lVar8 = lVar8 + -8; } while (1 < uVar7); } uVar7 = *local_38; if (*param_1 < (uVar7 & 0xffffffff)) { LAB_001604d4: uVar1 = (ushort)(0x51a5 < uVar7 - 0x4e00) << 7 | 0xfb40; if (uVar7 - 0x3400 < 0x19b6) { uVar1 = 0xfb80; } local_3e = (short)(uVar7 >> 0xf) + uVar1; local_3c = (ushort)uVar7 | 0x8000; local_3a = 0; psVar11 = &local_3e; } else { uVar6 = uVar7 >> 8 & 0xffffff; lVar8 = *(long *)(param_1[2] + uVar6 * 8); if (lVar8 == 0) goto LAB_001604d4; psVar11 = (short *)(lVar8 + (ulong)((uint)*(byte *)(param_1[1] + uVar6) * ((uint)uVar7 & 0xff)) * 2); } local_38 = local_38 + 1; param_6 = param_6 - 1; LAB_00160562: sVar2 = *psVar11; if (uVar9 < uVar5 && sVar2 != 0) { do { psVar11 = psVar11 + 1; *param_2 = sVar2; param_2 = param_2 + 1; uVar9 = uVar9 + 1; sVar2 = *psVar11; if (sVar2 == 0) break; } while (uVar9 < uVar5); } uVar7 = 1; if (sVar2 == 0) { uVar7 = uVar4; } if (uVar9 != uVar5) { uVar7 = uVar4; } uVar4 = uVar7; } while (param_6 != 0); } *param_2 = 0; *param_4 = uVar9; } return uVar7 & 0xffffffff; }
34,089
tailoring_append_abbreviation
eloqsql/strings/ctype.c
static int tailoring_append_abbreviation(MY_XML_PARSER *st, const char *fmt, size_t len, const char *attr) { size_t clen; const char *attrend= attr + len; my_wc_t wc; for ( ; (clen= scan_one_character(attr, attrend, &wc)) > 0; attr+= clen) { DBUG_ASSERT(attr < attrend); if (tailoring_append(st, fmt, clen, attr) != MY_XML_OK) return MY_XML_ERROR; } return MY_XML_OK; }
O0
c
tailoring_append_abbreviation: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x28(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x28(%rbp), %rdi movq -0x38(%rbp), %rsi leaq -0x40(%rbp), %rdx callq 0xc1770 movq %rax, -0x30(%rbp) cmpq $0x0, %rax jbe 0xc1756 jmp 0xc1721 jmp 0xc1723 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x30(%rbp), %rdx movq -0x28(%rbp), %rcx callq 0xc1210 cmpl $0x0, %eax je 0xc1746 movl $0x1, -0x4(%rbp) jmp 0xc175d jmp 0xc1748 movq -0x30(%rbp), %rax addq -0x28(%rbp), %rax movq %rax, -0x28(%rbp) jmp 0xc1704 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
tailoring_append_abbreviation: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_28] add rax, [rbp+var_20] mov [rbp+var_38], rax loc_C1704: mov rdi, [rbp+var_28] mov rsi, [rbp+var_38] lea rdx, [rbp+var_40] call scan_one_character mov [rbp+var_30], rax cmp rax, 0 jbe short loc_C1756 jmp short $+2 loc_C1721: jmp short $+2 loc_C1723: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_30] mov rcx, [rbp+var_28] call tailoring_append cmp eax, 0 jz short loc_C1746 mov [rbp+var_4], 1 jmp short loc_C175D loc_C1746: jmp short $+2 loc_C1748: mov rax, [rbp+var_30] add rax, [rbp+var_28] mov [rbp+var_28], rax jmp short loc_C1704 loc_C1756: mov [rbp+var_4], 0 loc_C175D: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long tailoring_append_abbreviation(long long a1, const char *a2, long long a3, long long a4) { _BYTE v5[8]; // [rsp+0h] [rbp-40h] BYREF long long v6; // [rsp+8h] [rbp-38h] long long v7; // [rsp+10h] [rbp-30h] long long v8; // [rsp+18h] [rbp-28h] long long v9; // [rsp+20h] [rbp-20h] const char *v10; // [rsp+28h] [rbp-18h] long long v11; // [rsp+30h] [rbp-10h] v11 = a1; v10 = a2; v9 = a3; v8 = a4; v6 = a3 + a4; while ( 1 ) { v7 = scan_one_character(v8, v6, v5); if ( !v7 ) break; if ( (unsigned int)tailoring_append(v11, v10, v7, v8) ) return 1; v8 += v7; } return 0; }
tailoring_append_abbreviation: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x38],RAX LAB_001c1704: MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x38] LEA RDX,[RBP + -0x40] CALL 0x001c1770 MOV qword ptr [RBP + -0x30],RAX CMP RAX,0x0 JBE 0x001c1756 JMP 0x001c1721 LAB_001c1721: JMP 0x001c1723 LAB_001c1723: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x28] CALL 0x001c1210 CMP EAX,0x0 JZ 0x001c1746 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001c175d LAB_001c1746: JMP 0x001c1748 LAB_001c1748: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x28],RAX JMP 0x001c1704 LAB_001c1756: MOV dword ptr [RBP + -0x4],0x0 LAB_001c175d: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
int4 tailoring_append_abbreviation(int8 param_1,int8 param_2,long param_3,long param_4) { int iVar1; int1 local_48 [8]; long local_40; long local_38; long local_30; long local_28; int8 local_20; int8 local_18; local_40 = param_4 + param_3; local_30 = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; while( true ) { local_38 = scan_one_character(local_30,local_40,local_48); if (local_38 == 0) { return 0; } iVar1 = tailoring_append(local_18,local_20,local_38,local_30); if (iVar1 != 0) break; local_30 = local_38 + local_30; } return 1; }
34,090
js_bigint_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_bigint_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { if (!JS_IsUndefined(new_target)) return JS_ThrowTypeError(ctx, "not a constructor"); return JS_ToBigIntCtorFree(ctx, js_dup(argv[0])); }
O1
c
js_bigint_constructor: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdi, %r15 cmpl $0x3, %edx jne 0x37c22 movq (%r8), %rbp movq 0x8(%r8), %r14 movq %rbp, 0x20(%rsp) cmpl $-0x9, %r14d jb 0x37be7 movq 0x20(%rsp), %rax incl (%rax) movq %rbp, %rbx shrq $0x20, %rbx cmpl $-0x1, %r14d jne 0x37c41 shlq $0x20, %rbx movl %ebp, %esi orq %rbx, %rsi movq %r15, %rdi movq %r14, %rdx movl $0x1, %ecx callq 0x3dfd7 movq %rax, %rbp movq %rdx, %r14 movq %rax, %rbx shrq $0x20, %rbx cmpl $0x6, %r14d jne 0x37bee jmp 0x37c8a leaq 0x67ab7(%rip), %rsi # 0x9f6e0 xorl %r12d, %r12d movq %r15, %rdi xorl %eax, %eax callq 0x22567 movl $0x6, %r14d jmp 0x37d5d testl %r14d, %r14d js 0x37c59 cmpl $0x2, %r14d jae 0x37c96 movslq %ebp, %rsi movq %r15, %rdi callq 0x28376 jmp 0x37c7d cmpl $-0x9, %r14d je 0x37c8a cmpl $-0x7, %r14d jne 0x37d29 shlq $0x20, %rbx movl %ebp, %esi orq %rbx, %rsi movq %r15, %rdi movq %r14, %rdx callq 0x3e510 movq %rax, %rbp movq %rdx, %r14 movq %rax, %rbx shrq $0x20, %rbx shlq $0x20, %rbx movl %ebp, %r12d jmp 0x37d5a cmpl $0x7, %r14d jne 0x37d29 movabsq $0x7ffffffffffffffd, %r12 # imm = 0x7FFFFFFFFFFFFFFD movq %rbx, %rax shlq $0x20, %rax movl %ebp, %r13d orq %rax, %r13 leaq 0x20(%rsp), %rsi movq %r15, %rdi movq %r13, %rdx movq %r14, %rcx callq 0x430ad movq %rax, 0x18(%rsp) cmpq %r12, 0x10(%rax) jle 0x37d8d movq 0x18(%r15), %rdi movq %r13, %rsi movq %r14, %rdx callq 0x1d8c6 leaq 0x69b59(%rip), %rsi # 0xa1848 xorl %ebp, %ebp movq %r15, %rdi xorl %eax, %eax callq 0x20add movl $0x6, %r14d xorl %ebx, %ebx movb $0x1, %r15b movq 0x18(%rsp), %rcx leaq 0x20(%rsp), %rax cmpq %rax, %rcx je 0x37d72 testb %r15b, %r15b jne 0x37c8a movl $0x6, %r14d xorl %r12d, %r12d jmp 0x37d58 shlq $0x20, %rbx movl %ebp, %esi orq %rbx, %rsi movq 0x18(%r15), %rdi movq %r14, %rdx callq 0x1d8c6 leaq 0x6748f(%rip), %rsi # 0x9f1d4 xorl %r12d, %r12d movq %r15, %rdi xorl %eax, %eax callq 0x22567 movl $0x6, %r14d xorl %ebx, %ebx orq %rbx, %r12 movq %r12, %rax movq %r14, %rdx addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq (%rcx), %rax testq %rax, %rax je 0x37d15 movq 0x20(%rcx), %rsi testq %rsi, %rsi je 0x37d15 movq (%rax), %rdi xorl %edx, %edx callq *0x8(%rax) jmp 0x37d15 movq %r15, %rdi callq 0xfecd movq %rdx, 0x10(%rsp) movl %edx, %ecx movq %rcx, (%rsp) cmpq $0x6, %rcx jne 0x37dba movq 0x18(%r15), %rdi movq %r13, %rsi movq %r14, %rdx callq 0x1d8c6 jmp 0x37e70 leaq 0x8(%rax), %rbx movq %rbx, %rdi movq %rax, %rbp movq 0x18(%rsp), %rsi callq 0x84c8d movl %eax, 0xc(%rsp) movq %rbx, %rdi movl $0x1, %esi callq 0x87b16 movl %eax, %ebx orl 0xc(%rsp), %ebx movq 0x18(%r15), %rdi movq %r13, %rsi movq %r14, %rdx callq 0x1d8c6 testb $0x20, %bl jne 0x37e29 testb $0x10, %bl movq 0x10(%rsp), %r14 jne 0x37e46 cmpq $-0x9, %r14 jne 0x37e20 addq $0x3, %r12 cmpq %r12, 0x18(%rbp) jne 0x37e20 cmpl $0x0, 0x10(%rbp) je 0x37e20 movl $0x0, 0x10(%rbp) movq %rbp, %rbx shrq $0x20, %rbx jmp 0x37e70 movq 0x18(%r15), %rdi movq %rbp, %rsi movq 0x10(%rsp), %rdx callq 0x1d8c6 movq %r15, %rdi callq 0x1cb63 xorl %ebp, %ebp jmp 0x37e68 movq 0x18(%r15), %rdi movq %rbp, %rsi movq %r14, %rdx callq 0x1d8c6 leaq 0x69a15(%rip), %rsi # 0xa1871 xorl %ebp, %ebp movq %r15, %rdi xorl %eax, %eax callq 0x20add movl $0x6, %r14d xorl %ebx, %ebx movq (%rsp), %rax cmpl $0x6, %eax jne 0x37d03 xorl %r15d, %r15d jmp 0x37d15
js_bigint_constructor: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r15, rdi cmp edx, 3 jnz short loc_37C22 mov rbp, [r8] mov r14, [r8+8] mov [rsp+78h+var_58], rbp cmp r14d, 0FFFFFFF7h jb short loc_37BE7 mov rax, [rsp+78h+var_58] inc dword ptr [rax] loc_37BE7: mov rbx, rbp shr rbx, 20h loc_37BEE: cmp r14d, 0FFFFFFFFh jnz short loc_37C41 shl rbx, 20h mov esi, ebp or rsi, rbx mov rdi, r15 mov rdx, r14 mov ecx, 1 call JS_ToPrimitiveFree mov rbp, rax mov r14, rdx mov rbx, rax shr rbx, 20h cmp r14d, 6 jnz short loc_37BEE jmp short loc_37C8A loc_37C22: lea rsi, aNotAConstructo; "not a constructor" xor r12d, r12d mov rdi, r15 xor eax, eax call JS_ThrowTypeError mov r14d, 6 jmp loc_37D5D loc_37C41: test r14d, r14d js short loc_37C59 cmp r14d, 2 jnb short loc_37C96 movsxd rsi, ebp mov rdi, r15 call JS_NewBigInt64 jmp short loc_37C7D loc_37C59: cmp r14d, 0FFFFFFF7h jz short loc_37C8A cmp r14d, 0FFFFFFF9h jnz loc_37D29 shl rbx, 20h mov esi, ebp or rsi, rbx mov rdi, r15 mov rdx, r14 call JS_StringToBigIntErr loc_37C7D: mov rbp, rax mov r14, rdx mov rbx, rax shr rbx, 20h loc_37C8A: shl rbx, 20h mov r12d, ebp jmp loc_37D5A loc_37C96: cmp r14d, 7 jnz loc_37D29 mov r12, 7FFFFFFFFFFFFFFDh mov rax, rbx shl rax, 20h mov r13d, ebp or r13, rax lea rsi, [rsp+78h+var_58] mov rdi, r15 mov rdx, r13 mov rcx, r14 call JS_ToBigInt1 mov [rsp+78h+var_60], rax cmp [rax+10h], r12 jle loc_37D8D mov rdi, [r15+18h] mov rsi, r13 mov rdx, r14 call JS_FreeValueRT lea rsi, aCannotConvertN; "cannot convert NaN or Infinity to BigIn"... xor ebp, ebp mov rdi, r15 xor eax, eax call JS_ThrowRangeError mov r14d, 6 xor ebx, ebx loc_37D03: mov r15b, 1 mov rcx, [rsp+78h+var_60] lea rax, [rsp+78h+var_58] cmp rcx, rax jz short loc_37D72 loc_37D15: test r15b, r15b jnz loc_37C8A mov r14d, 6 xor r12d, r12d jmp short loc_37D58 loc_37D29: shl rbx, 20h mov esi, ebp or rsi, rbx mov rdi, [r15+18h] mov rdx, r14 call JS_FreeValueRT lea rsi, aCannotConvertT; "cannot convert to BigInt" xor r12d, r12d mov rdi, r15 xor eax, eax call JS_ThrowTypeError mov r14d, 6 loc_37D58: xor ebx, ebx loc_37D5A: or r12, rbx loc_37D5D: mov rax, r12 mov rdx, r14 add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_37D72: mov rax, [rcx] test rax, rax jz short loc_37D15 mov rsi, [rcx+20h] test rsi, rsi jz short loc_37D15 mov rdi, [rax] xor edx, edx call qword ptr [rax+8] jmp short loc_37D15 loc_37D8D: mov rdi, r15 call JS_NewBigInt mov [rsp+78h+var_68], rdx mov ecx, edx mov [rsp+78h+var_78], rcx cmp rcx, 6 jnz short loc_37DBA mov rdi, [r15+18h] mov rsi, r13 mov rdx, r14 call JS_FreeValueRT jmp loc_37E70 loc_37DBA: lea rbx, [rax+8] mov rdi, rbx mov rbp, rax mov rsi, [rsp+78h+var_60] call bf_set mov [rsp+78h+var_6C], eax mov rdi, rbx mov esi, 1 call bf_rint mov ebx, eax or ebx, [rsp+78h+var_6C] mov rdi, [r15+18h] mov rsi, r13 mov rdx, r14 call JS_FreeValueRT test bl, 20h jnz short loc_37E29 test bl, 10h mov r14, [rsp+78h+var_68] jnz short loc_37E46 cmp r14, 0FFFFFFFFFFFFFFF7h jnz short loc_37E20 add r12, 3 cmp [rbp+18h], r12 jnz short loc_37E20 cmp dword ptr [rbp+10h], 0 jz short loc_37E20 mov dword ptr [rbp+10h], 0 loc_37E20: mov rbx, rbp shr rbx, 20h jmp short loc_37E70 loc_37E29: mov rdi, [r15+18h] mov rsi, rbp mov rdx, [rsp+78h+var_68] call JS_FreeValueRT mov rdi, r15 call JS_ThrowOutOfMemory xor ebp, ebp jmp short loc_37E68 loc_37E46: mov rdi, [r15+18h] mov rsi, rbp mov rdx, r14 call JS_FreeValueRT lea rsi, aCannotConvertT_0; "cannot convert to BigInt: not an intege"... xor ebp, ebp mov rdi, r15 xor eax, eax call JS_ThrowRangeError loc_37E68: mov r14d, 6 xor ebx, ebx loc_37E70: mov rax, [rsp+78h+var_78] cmp eax, 6 jnz loc_37D03 xor r15d, r15d jmp loc_37D15
unsigned long long js_bigint_constructor( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, unsigned long long *a13, long long a14) { unsigned long long v14; // rbp long long v15; // r14 unsigned long long v16; // rbx long long v17; // rdx long long v18; // r12 unsigned long long v19; // rax unsigned long long v20; // rbx long long v21; // r12 _DWORD *v22; // r13 long long v23; // rdx long long v24; // rcx long long v25; // r8 long long v26; // r9 __m128 v27; // xmm4 __m128 v28; // xmm5 char v29; // r15 long long v30; // rdx long long v31; // rcx long long v32; // r8 long long v33; // r9 __m128 v34; // xmm4 __m128 v35; // xmm5 long long v37; // rsi _DWORD *v38; // rax long long v39; // rdx _DWORD *v40; // rbx char v41; // bl int v42; // edx int v43; // ecx int v44; // r8d int v45; // r9d long long v46; // rdx long long v47; // rcx long long v48; // r8 long long v49; // r9 __m128 v50; // xmm4 __m128 v51; // xmm5 char v52; // [rsp+0h] [rbp-78h] int v53; // [rsp+0h] [rbp-78h] char v54; // [rsp+Ch] [rbp-6Ch] long long v55; // [rsp+10h] [rbp-68h] long long *v56; // [rsp+18h] [rbp-60h] _QWORD v57[11]; // [rsp+20h] [rbp-58h] BYREF if ( (_DWORD)a11 != 3 ) { v18 = 0LL; JS_ThrowTypeError( a1, (long long)"not a constructor", a11, a12, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, v52); return v18; } v14 = *a13; v15 = a13[1]; v57[0] = *a13; if ( (unsigned int)v15 >= 0xFFFFFFF7 ) ++*(_DWORD *)v57[0]; v16 = HIDWORD(v14); while ( (_DWORD)v15 == -1 ) { v14 = JS_ToPrimitiveFree(a1, (v16 << 32) | (unsigned int)v14, v15, 1LL); v15 = v17; v16 = HIDWORD(v14); if ( (_DWORD)v17 == 6 ) goto LABEL_16; } if ( (int)v15 < 0 ) { if ( (_DWORD)v15 == -9 ) { LABEL_16: v20 = v16 << 32; v21 = (unsigned int)v14; return v20 | v21; } if ( (_DWORD)v15 == -7 ) { v19 = JS_StringToBigIntErr(a1, (v16 << 32) | (unsigned int)v14, v15); goto LABEL_15; } } else { if ( (unsigned int)v15 < 2 ) { v19 = (unsigned long long)JS_NewBigInt64(a1, (int)v14); LABEL_15: LODWORD(v14) = v19; v16 = HIDWORD(v19); goto LABEL_16; } if ( (_DWORD)v15 == 7 ) { v22 = (_DWORD *)((v16 << 32) | (unsigned int)v14); v56 = (long long *)JS_ToBigInt1(a1, v57, v22, v15); if ( v56[2] > 0x7FFFFFFFFFFFFFFDLL ) { JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)((v16 << 32) | (unsigned int)v14), v15); LODWORD(v14) = 0; JS_ThrowRangeError( a1, (long long)"cannot convert NaN or Infinity to BigInt", v23, v24, v25, v26, a2, a3, a4, a5, v27, v28, a8, a9, v52); v16 = 0LL; goto LABEL_20; } v38 = JS_NewBigInt(a1); v55 = v39; v53 = v39; if ( (unsigned int)v39 == 6LL ) { JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)((v16 << 32) | (unsigned int)v14), v15); goto LABEL_42; } v40 = v38 + 2; v14 = (unsigned long long)v38; v54 = bf_set(v38 + 2, v56); v41 = v54 | bf_rint(v40, 1LL); JS_FreeValueRT(*(_QWORD *)(a1 + 24), v22, v15); if ( (v41 & 0x20) != 0 ) { JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v14, v55); JS_ThrowOutOfMemory(a1, v14, v42, v43, v44, v45); LODWORD(v14) = 0; } else { if ( (v41 & 0x10) == 0 ) { if ( v55 == -9 && *(_QWORD *)(v14 + 24) == 0x8000000000000000LL && *(_DWORD *)(v14 + 16) ) *(_DWORD *)(v14 + 16) = 0; v16 = HIDWORD(v14); LABEL_42: if ( v53 == 6 ) { v29 = 0; LABEL_21: if ( v29 ) goto LABEL_16; v21 = 0LL; goto LABEL_24; } LABEL_20: v29 = 1; if ( v56 == v57 ) { if ( *v56 ) { v37 = v56[4]; if ( v37 ) (*(void ( **)(_QWORD, long long, _QWORD))(*v56 + 8))(*(_QWORD *)*v56, v37, 0LL); } } goto LABEL_21; } JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v14, v55); LODWORD(v14) = 0; JS_ThrowRangeError( a1, (long long)"cannot convert to BigInt: not an integer", v46, v47, v48, v49, a2, a3, a4, a5, v50, v51, a8, a9, v53); } v16 = 0LL; goto LABEL_42; } } JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)((v16 << 32) | (unsigned int)v14), v15); v21 = 0LL; JS_ThrowTypeError(a1, (long long)"cannot convert to BigInt", v30, v31, v32, v33, a2, a3, a4, a5, v34, v35, a8, a9, v52); LABEL_24: v20 = 0LL; return v20 | v21; }
34,091
js_bigint_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_bigint_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { if (!JS_IsUndefined(new_target)) return JS_ThrowTypeError(ctx, "not a constructor"); return JS_ToBigIntCtorFree(ctx, js_dup(argv[0])); }
O2
c
js_bigint_constructor: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdi, %r14 cmpl $0x3, %edx jne 0x310d9 movq (%r8), %r13 movq 0x8(%r8), %rbx cmpl $-0x9, %ebx jb 0x31088 incl (%r13) movq %r13, %r15 shrq $0x20, %r15 leaq 0x52a4a(%rip), %r12 # 0x83ae0 leal 0x9(%rbx), %eax movl %r13d, %ebp cmpl $0xa, %eax ja 0x31105 movslq (%r12,%rax,4), %rax addq %r12, %rax jmpq *%rax shlq $0x20, %r15 orq %r15, %rbp movq %r14, %rdi movq %rbp, %rsi movq %rbx, %rdx pushq $0x1 popq %rcx callq 0x366ee movq %rax, %r13 movq %rdx, %rbx movq %rax, %r15 shrq $0x20, %r15 cmpl $0x6, %ebx jne 0x31096 jmp 0x311bf leaq 0x55550(%rip), %rsi # 0x86630 xorl %r12d, %r12d movq %r14, %rdi xorl %eax, %eax callq 0x1c64d pushq $0x6 popq %rbx jmp 0x311c9 movslq %r13d, %rsi movq %r14, %rdi callq 0x21d56 jmp 0x311b2 cmpl $0x7, %ebx jne 0x3116c shlq $0x20, %r15 orq %r15, %rbp leaq 0x10(%rsp), %r12 movq %r14, %rdi movq %r12, %rsi movq %rbp, %rdx movq %rbx, %rcx callq 0x3abb3 movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE movq %rax, (%rsp) cmpq %rcx, 0x10(%rax) jl 0x311de movq %r14, %rdi movq %rbp, %rsi movq %rbx, %rdx callq 0x1801e leaq 0x5762e(%rip), %rsi # 0x88782 xorl %r13d, %r13d movq %r14, %rdi xorl %eax, %eax callq 0x1acb3 pushq $0x6 popq %rbx xorl %r15d, %r15d jmp 0x312ae shlq $0x20, %r15 orq %r15, %rbp movq %r14, %rdi movq %rbp, %rsi movq %rbx, %rdx callq 0x1801e leaq 0x54f9c(%rip), %rsi # 0x86124 xorl %r12d, %r12d movq %r14, %rdi xorl %eax, %eax callq 0x1c64d pushq $0x6 popq %rbx xorl %r15d, %r15d jmp 0x311c6 shlq $0x20, %r15 orq %r15, %rbp movq %r14, %rdi movq %rbp, %rsi movq %rbx, %rdx callq 0x36b1f movq %rax, %r13 movq %rdx, %rbx movq %rax, %r15 shrq $0x20, %r15 shlq $0x20, %r15 movl %r13d, %r12d orq %r15, %r12 movq %r12, %rax movq %rbx, %rdx addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r14, %rdi callq 0x21db5 movq %rdx, %r15 cmpl $0x6, %r15d jne 0x31205 movq %r14, %rdi movq %rbp, %rsi movq %rbx, %rdx callq 0x1801e pushq $0x6 popq %rbx xorl %r12d, %r12d jmp 0x31198 movq %rax, %r13 movq %rax, %r12 addq $0x8, %r12 movq %r12, %rdi movq (%rsp), %rsi callq 0x6f666 movl %eax, 0xc(%rsp) pushq $0x1 popq %rsi movq %r12, %rdi callq 0x71c3d movl %eax, %r12d orl 0xc(%rsp), %r12d movq %r14, %rdi movq %rbp, %rsi movq %rbx, %rdx callq 0x1801e testb $0x20, %r12b jne 0x31266 testb $0x10, %r12b jne 0x31281 movq %r13, %rdi movq %r15, %rsi callq 0x372ab movq %rax, %r13 movq %rdx, %rbx movq %rax, %r15 shrq $0x20, %r15 jmp 0x312a9 movq %r14, %rdi movq %r13, %rsi movq %r15, %rdx callq 0x1801e movq %r14, %rdi callq 0x171e0 xorl %r13d, %r13d jmp 0x312a3 movq %r14, %rdi movq %r13, %rsi movq %r15, %rdx callq 0x1801e leaq 0x57515(%rip), %rsi # 0x887ab xorl %r13d, %r13d movq %r14, %rdi xorl %eax, %eax callq 0x1acb3 pushq $0x6 popq %rbx xorl %r15d, %r15d leaq 0x10(%rsp), %r12 movq (%rsp), %rdi cmpq %r12, %rdi jne 0x311bf callq 0x352f0 jmp 0x311bf
js_bigint_constructor: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r14, rdi cmp edx, 3 jnz short loc_310D9 mov r13, [r8] mov rbx, [r8+8] cmp ebx, 0FFFFFFF7h jb short loc_31088 inc dword ptr [r13+0] loc_31088: mov r15, r13 shr r15, 20h lea r12, jpt_310A8 loc_31096: lea eax, [rbx+9]; switch 11 cases mov ebp, r13d cmp eax, 0Ah ja short def_310A8; jumptable 00000000000310A8 default case movsxd rax, ds:(jpt_310A8 - 83AE0h)[r12+rax*4] add rax, r12 jmp rax; switch jump loc_310AA: shl r15, 20h; jumptable 00000000000310A8 case -1 or rbp, r15 mov rdi, r14 mov rsi, rbp mov rdx, rbx push 1 pop rcx call JS_ToPrimitiveFree mov r13, rax mov rbx, rdx mov r15, rax shr r15, 20h cmp ebx, 6 jnz short loc_31096 jmp loc_311BF; jumptable 00000000000310A8 case -9 loc_310D9: lea rsi, aNotAConstructo; "not a constructor" xor r12d, r12d mov rdi, r14 xor eax, eax call JS_ThrowTypeError push 6 pop rbx jmp loc_311C9 loc_310F5: movsxd rsi, r13d; jumptable 00000000000310A8 cases 0,1 mov rdi, r14 call JS_NewBigInt64 jmp loc_311B2 def_310A8: cmp ebx, 7; jumptable 00000000000310A8 default case jnz short loc_3116C; jumptable 00000000000310A8 cases -8,-6--2 shl r15, 20h or rbp, r15 lea r12, [rsp+68h+var_58] mov rdi, r14 mov rsi, r12 mov rdx, rbp mov rcx, rbx call JS_ToBigInt1 mov rcx, 7FFFFFFFFFFFFFFEh mov [rsp+68h+var_68], rax cmp [rax+10h], rcx jl loc_311DE mov rdi, r14 mov rsi, rbp mov rdx, rbx call JS_FreeValue lea rsi, aCannotConvertN; "cannot convert NaN or Infinity to BigIn"... xor r13d, r13d mov rdi, r14 xor eax, eax call JS_ThrowRangeError push 6 pop rbx xor r15d, r15d jmp loc_312AE loc_3116C: shl r15, 20h; jumptable 00000000000310A8 cases -8,-6--2 or rbp, r15 mov rdi, r14 mov rsi, rbp mov rdx, rbx call JS_FreeValue lea rsi, aCannotConvertT; "cannot convert to BigInt" xor r12d, r12d mov rdi, r14 xor eax, eax call JS_ThrowTypeError push 6 pop rbx loc_31198: xor r15d, r15d jmp short loc_311C6 loc_3119D: shl r15, 20h; jumptable 00000000000310A8 case -7 or rbp, r15 mov rdi, r14 mov rsi, rbp mov rdx, rbx call JS_StringToBigIntErr loc_311B2: mov r13, rax mov rbx, rdx mov r15, rax shr r15, 20h loc_311BF: shl r15, 20h; jumptable 00000000000310A8 case -9 mov r12d, r13d loc_311C6: or r12, r15 loc_311C9: mov rax, r12 mov rdx, rbx add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_311DE: mov rdi, r14 call JS_NewBigInt mov r15, rdx cmp r15d, 6 jnz short loc_31205 mov rdi, r14 mov rsi, rbp mov rdx, rbx call JS_FreeValue push 6 pop rbx xor r12d, r12d jmp short loc_31198 loc_31205: mov r13, rax mov r12, rax add r12, 8 mov rdi, r12 mov rsi, [rsp+68h+var_68] call bf_set mov [rsp+68h+var_5C], eax push 1 pop rsi mov rdi, r12 call bf_rint mov r12d, eax or r12d, [rsp+68h+var_5C] mov rdi, r14 mov rsi, rbp mov rdx, rbx call JS_FreeValue test r12b, 20h jnz short loc_31266 test r12b, 10h jnz short loc_31281 mov rdi, r13 mov rsi, r15 call JS_CompactBigInt1 mov r13, rax mov rbx, rdx mov r15, rax shr r15, 20h jmp short loc_312A9 loc_31266: mov rdi, r14 mov rsi, r13 mov rdx, r15 call JS_FreeValue mov rdi, r14 call JS_ThrowOutOfMemory xor r13d, r13d jmp short loc_312A3 loc_31281: mov rdi, r14 mov rsi, r13 mov rdx, r15 call JS_FreeValue lea rsi, aCannotConvertT_0; "cannot convert to BigInt: not an intege"... xor r13d, r13d mov rdi, r14 xor eax, eax call JS_ThrowRangeError loc_312A3: push 6 pop rbx xor r15d, r15d loc_312A9: lea r12, [rsp+68h+var_58] loc_312AE: mov rdi, [rsp+68h+var_68] cmp rdi, r12 jnz loc_311BF; jumptable 00000000000310A8 case -9 call bf_delete jmp loc_311BF; jumptable 00000000000310A8 case -9
unsigned long long js_bigint_constructor( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, unsigned long long *a13, long long a14) { unsigned long long v14; // r13 long long v15; // rbx unsigned long long v16; // r15 long long v17; // rdx long long v18; // r12 unsigned long long v19; // rax long long v20; // rbp long long v21; // rdx long long v22; // rcx long long v23; // r8 long long v24; // r9 __m128 v25; // xmm4 __m128 v26; // xmm5 long long v27; // r12 long long v28; // rdx long long v29; // rcx long long v30; // r8 long long v31; // r9 __m128 v32; // xmm4 __m128 v33; // xmm5 unsigned long long v34; // r15 _DWORD *v36; // rax long long v37; // rdx long long v38; // r15 _DWORD *v39; // r12 int v40; // r12d unsigned long long v41; // rax int v42; // edx int v43; // ecx int v44; // r8d int v45; // r9d long long v46; // rdx long long v47; // rcx long long v48; // r8 long long v49; // r9 __m128 v50; // xmm4 __m128 v51; // xmm5 char v52; // [rsp+0h] [rbp-68h] long long v53; // [rsp+0h] [rbp-68h] int v54; // [rsp+Ch] [rbp-5Ch] _BYTE v55[88]; // [rsp+10h] [rbp-58h] BYREF if ( (_DWORD)a11 != 3 ) { v18 = 0LL; JS_ThrowTypeError( a1, (long long)"not a constructor", a11, a12, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, v52); return v18; } v14 = *a13; v15 = a13[1]; if ( (unsigned int)v15 >= 0xFFFFFFF7 ) ++*(_DWORD *)v14; v16 = HIDWORD(v14); while ( 2 ) { switch ( (int)v15 ) { case -9: goto LABEL_17; case -8: case -6: case -5: case -4: case -3: case -2: goto LABEL_13; case -7: v19 = JS_StringToBigIntErr(a1, (v16 << 32) | (unsigned int)v14, v15); goto LABEL_16; case -1: v14 = JS_ToPrimitiveFree(a1, (v16 << 32) | (unsigned int)v14, v15, 1LL); v15 = v17; v16 = HIDWORD(v14); if ( (_DWORD)v17 != 6 ) continue; goto LABEL_17; case 0: case 1: v19 = JS_NewBigInt64(a1, (int)v14); LABEL_16: LODWORD(v14) = v19; v16 = HIDWORD(v19); goto LABEL_17; default: if ( (_DWORD)v15 != 7 ) { LABEL_13: JS_FreeValue(a1, (v16 << 32) | (unsigned int)v14, v15); v27 = 0LL; JS_ThrowTypeError( a1, (long long)"cannot convert to BigInt", v28, v29, v30, v31, a2, a3, a4, a5, v32, v33, a8, a9, v52); LABEL_14: v34 = 0LL; return v34 | v27; } v20 = (v16 << 32) | (unsigned int)v14; v53 = JS_ToBigInt1(a1, v55, v20, v15); if ( *(long long *)(v53 + 16) >= 0x7FFFFFFFFFFFFFFELL ) { JS_FreeValue(a1, v20, v15); LODWORD(v14) = 0; JS_ThrowRangeError( a1, (long long)"cannot convert NaN or Infinity to BigInt", v21, v22, v23, v24, a2, a3, a4, a5, v25, v26, a8, a9, v53); v16 = 0LL; goto LABEL_28; } v36 = JS_NewBigInt(a1); v38 = v37; if ( (_DWORD)v37 == 6 ) { JS_FreeValue(a1, v20, v15); v27 = 0LL; goto LABEL_14; } v14 = (unsigned long long)v36; v39 = v36 + 2; v54 = bf_set(v36 + 2, v53); v40 = v54 | bf_rint(v39, 1LL); JS_FreeValue(a1, v20, v15); if ( (v40 & 0x20) != 0 ) { JS_FreeValue(a1, v14, v38); JS_ThrowOutOfMemory(a1, v14, v42, v43, v44, v45); LODWORD(v14) = 0; } else { if ( (v40 & 0x10) == 0 ) { v41 = JS_CompactBigInt1(v14, v38); LODWORD(v14) = v41; v16 = HIDWORD(v41); goto LABEL_28; } JS_FreeValue(a1, v14, v38); LODWORD(v14) = 0; JS_ThrowRangeError( a1, (long long)"cannot convert to BigInt: not an integer", v46, v47, v48, v49, a2, a3, a4, a5, v50, v51, a8, a9, v53); } v16 = 0LL; LABEL_28: if ( (_BYTE *)v53 == v55 ) bf_delete(v53); LABEL_17: v34 = v16 << 32; v27 = (unsigned int)v14; return v34 | v27; } } }
js_bigint_constructor: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,RDI CMP EDX,0x3 JNZ 0x001310d9 MOV R13,qword ptr [R8] MOV RBX,qword ptr [R8 + 0x8] CMP EBX,-0x9 JC 0x00131088 INC dword ptr [R13] LAB_00131088: MOV R15,R13 SHR R15,0x20 LEA R12,[0x183ae0] LAB_00131096: LEA EAX,[RBX + 0x9] MOV EBP,R13D CMP EAX,0xa JA 0x00131105 MOVSXD RAX,dword ptr [R12 + RAX*0x4] ADD RAX,R12 switchD: JMP RAX caseD_ffffffff: SHL R15,0x20 OR RBP,R15 MOV RDI,R14 MOV RSI,RBP MOV RDX,RBX PUSH 0x1 POP RCX CALL 0x001366ee MOV R13,RAX MOV RBX,RDX MOV R15,RAX SHR R15,0x20 CMP EBX,0x6 JNZ 0x00131096 JMP 0x001311bf LAB_001310d9: LEA RSI,[0x186630] XOR R12D,R12D MOV RDI,R14 XOR EAX,EAX CALL 0x0011c64d PUSH 0x6 POP RBX JMP 0x001311c9 caseD_0: MOVSXD RSI,R13D MOV RDI,R14 CALL 0x00121d56 JMP 0x001311b2 default: CMP EBX,0x7 JNZ 0x0013116c SHL R15,0x20 OR RBP,R15 LEA R12,[RSP + 0x10] MOV RDI,R14 MOV RSI,R12 MOV RDX,RBP MOV RCX,RBX CALL 0x0013abb3 MOV RCX,0x7ffffffffffffffe MOV qword ptr [RSP],RAX CMP qword ptr [RAX + 0x10],RCX JL 0x001311de MOV RDI,R14 MOV RSI,RBP MOV RDX,RBX CALL 0x0011801e LEA RSI,[0x188782] XOR R13D,R13D MOV RDI,R14 XOR EAX,EAX CALL 0x0011acb3 PUSH 0x6 POP RBX XOR R15D,R15D JMP 0x001312ae caseD_fffffff8: SHL R15,0x20 OR RBP,R15 MOV RDI,R14 MOV RSI,RBP MOV RDX,RBX CALL 0x0011801e LEA RSI,[0x186124] XOR R12D,R12D MOV RDI,R14 XOR EAX,EAX CALL 0x0011c64d PUSH 0x6 POP RBX LAB_00131198: XOR R15D,R15D JMP 0x001311c6 caseD_fffffff9: SHL R15,0x20 OR RBP,R15 MOV RDI,R14 MOV RSI,RBP MOV RDX,RBX CALL 0x00136b1f LAB_001311b2: MOV R13,RAX MOV RBX,RDX MOV R15,RAX SHR R15,0x20 caseD_fffffff7: SHL R15,0x20 MOV R12D,R13D LAB_001311c6: OR R12,R15 LAB_001311c9: MOV RAX,R12 MOV RDX,RBX ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001311de: MOV RDI,R14 CALL 0x00121db5 MOV R15,RDX CMP R15D,0x6 JNZ 0x00131205 MOV RDI,R14 MOV RSI,RBP MOV RDX,RBX CALL 0x0011801e PUSH 0x6 POP RBX XOR R12D,R12D JMP 0x00131198 LAB_00131205: MOV R13,RAX MOV R12,RAX ADD R12,0x8 MOV RDI,R12 MOV RSI,qword ptr [RSP] CALL 0x0016f666 MOV dword ptr [RSP + 0xc],EAX PUSH 0x1 POP RSI MOV RDI,R12 CALL 0x00171c3d MOV R12D,EAX OR R12D,dword ptr [RSP + 0xc] MOV RDI,R14 MOV RSI,RBP MOV RDX,RBX CALL 0x0011801e TEST R12B,0x20 JNZ 0x00131266 TEST R12B,0x10 JNZ 0x00131281 MOV RDI,R13 MOV RSI,R15 CALL 0x001372ab MOV R13,RAX MOV RBX,RDX MOV R15,RAX SHR R15,0x20 JMP 0x001312a9 LAB_00131266: MOV RDI,R14 MOV RSI,R13 MOV RDX,R15 CALL 0x0011801e MOV RDI,R14 CALL 0x001171e0 XOR R13D,R13D JMP 0x001312a3 LAB_00131281: MOV RDI,R14 MOV RSI,R13 MOV RDX,R15 CALL 0x0011801e LEA RSI,[0x1887ab] XOR R13D,R13D MOV RDI,R14 XOR EAX,EAX CALL 0x0011acb3 LAB_001312a3: PUSH 0x6 POP RBX XOR R15D,R15D LAB_001312a9: LEA R12,[RSP + 0x10] LAB_001312ae: MOV RDI,qword ptr [RSP] CMP RDI,R12 JNZ 0x001311bf CALL 0x001352f0 JMP 0x001311bf
int1 [16] js_bigint_constructor (int8 param_1,int8 param_2,int param_3,int8 param_4, int1 (*param_5) [16]) { int *piVar1; uint uVar2; uint uVar3; int1 *puVar4; int8 uVar7; ulong uVar8; ulong uVar9; int1 auVar10 [16]; int1 local_58 [40]; long lVar5; int8 uVar6; if (param_3 == 3) { piVar1 = *(int **)*param_5; auVar10 = *param_5; if (0xfffffff6 < (uint)*(int8 *)(*param_5 + 8)) { *piVar1 = *piVar1 + 1; } uVar9 = (ulong)piVar1 >> 0x20; LAB_00131096: uVar7 = auVar10._8_8_; uVar8 = auVar10._0_8_ & 0xffffffff; switch(auVar10._8_4_) { case 0: case 1: auVar10 = JS_NewBigInt64(param_1,(long)auVar10._0_4_); LAB_001311b2: uVar9 = auVar10._0_8_ >> 0x20; case -9: goto switchD_001310a8_caseD_fffffff7; case -8: case -6: case -5: case -4: case -3: case -2: switchD_001310a8_caseD_fffffff8: JS_FreeValue(param_1,uVar8 | uVar9 << 0x20,uVar7); JS_ThrowTypeError(param_1,"cannot convert to BigInt"); break; case -7: auVar10 = JS_StringToBigIntErr(param_1,uVar8 | uVar9 << 0x20,uVar7); goto LAB_001311b2; case -1: goto switchD_001310a8_caseD_ffffffff; default: if (auVar10._8_4_ != 7) goto switchD_001310a8_caseD_fffffff8; uVar8 = uVar8 | uVar9 << 0x20; puVar4 = (int1 *)JS_ToBigInt1(param_1,local_58,uVar8,uVar7); if (0x7ffffffffffffffd < *(long *)(puVar4 + 0x10)) { JS_FreeValue(param_1,uVar8,uVar7); JS_ThrowRangeError(param_1,"cannot convert NaN or Infinity to BigInt"); auVar10 = ZEXT816(6) << 0x40; uVar9 = 0; LAB_001312ae: if (puVar4 == local_58) { bf_delete(); } goto switchD_001310a8_caseD_fffffff7; } auVar10 = JS_NewBigInt(param_1); uVar6 = auVar10._8_8_; lVar5 = auVar10._0_8_; if (auVar10._8_4_ != 6) { uVar2 = bf_set(lVar5 + 8,puVar4); uVar3 = bf_rint(lVar5 + 8,1); JS_FreeValue(param_1,uVar8,uVar7); if (((uVar3 | uVar2) & 0x20) == 0) { if (((uVar3 | uVar2) & 0x10) == 0) { auVar10 = JS_CompactBigInt1(lVar5,uVar6); uVar9 = auVar10._0_8_ >> 0x20; goto LAB_001312ae; } JS_FreeValue(param_1,lVar5,uVar6); JS_ThrowRangeError(param_1,"cannot convert to BigInt: not an integer"); } else { JS_FreeValue(param_1,lVar5,uVar6); JS_ThrowOutOfMemory(param_1); } auVar10 = ZEXT816(6) << 0x40; uVar9 = 0; goto LAB_001312ae; } JS_FreeValue(param_1,uVar8,uVar7); } uVar7 = 6; uVar8 = 0; uVar9 = 0; goto LAB_001311c6; } uVar8 = 0; JS_ThrowTypeError(param_1,"not a constructor"); uVar7 = 6; LAB_001311c9: auVar10._8_8_ = uVar7; auVar10._0_8_ = uVar8; return auVar10; switchD_001310a8_caseD_ffffffff: auVar10 = JS_ToPrimitiveFree(param_1,uVar8 | uVar9 << 0x20,uVar7,1); uVar9 = auVar10._0_8_ >> 0x20; if (auVar10._8_4_ == 6) goto switchD_001310a8_caseD_fffffff7; goto LAB_00131096; switchD_001310a8_caseD_fffffff7: uVar7 = auVar10._8_8_; uVar9 = uVar9 << 0x20; uVar8 = auVar10._0_8_ & 0xffffffff; LAB_001311c6: uVar8 = uVar8 | uVar9; goto LAB_001311c9; }
34,092
lf_hash_insert
eloqsql/mysys/lf_hash.cc
int lf_hash_insert(LF_HASH *hash, LF_PINS *pins, const void *data) { int csize, bucket, hashnr; LF_SLIST *node, **el; node= (LF_SLIST *)lf_alloc_new(pins); if (unlikely(!node)) return -1; hash->initializer(hash, node + 1, data); node->key= hash_key(hash, (uchar *)(node+1), &node->keylen); hashnr= hash->hash_function(hash->charset, node->key, node->keylen) & INT_MAX32; bucket= hashnr % hash->size; el= (LF_SLIST **)lf_dynarray_lvalue(&hash->array, bucket); if (unlikely(!el)) return -1; if (*el == NULL && unlikely(initialize_bucket(hash, el, bucket, pins))) return -1; node->hashnr= my_reverse_bits(hashnr) | 1; /* normal node */ if (l_insert(el, hash->charset, node, pins, hash->flags)) { lf_alloc_free(pins, node); return 1; } csize= hash->size; if ((my_atomic_add32(&hash->count, 1)+1.0) / csize > MAX_LOAD) my_atomic_cas32(&hash->size, &csize, csize*2); return 0; }
O0
cpp
lf_hash_insert: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x18(%rbp), %rdi callq 0xfc940 movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) setne %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0xfd571 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xfd73d movq -0x10(%rbp), %rax movq 0x98(%rax), %rax movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi addq $0x20, %rsi movq -0x20(%rbp), %rdx callq *%rax movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi addq $0x20, %rsi movq -0x38(%rbp), %rdx addq $0x10, %rdx callq 0xfd750 movq %rax, %rcx movq -0x38(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x10(%rbp), %rax movq 0xa0(%rax), %rax movq -0x10(%rbp), %rcx movq 0xa8(%rcx), %rdi movq -0x38(%rbp), %rcx movq 0x8(%rcx), %rsi movq -0x38(%rbp), %rcx movq 0x10(%rcx), %rdx callq *%rax movl %eax, %eax andq $0x7fffffff, %rax # imm = 0x7FFFFFFF movl %eax, -0x2c(%rbp) movl -0x2c(%rbp), %eax movq -0x10(%rbp), %rcx movl 0xc0(%rcx), %ecx cltd idivl %ecx movl %edx, -0x28(%rbp) movq -0x10(%rbp), %rdi movl -0x28(%rbp), %esi callq 0xfcd90 movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) setne %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0xfd628 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xfd73d movq -0x40(%rbp), %rax cmpq $0x0, (%rax) jne 0xfd657 movq -0x10(%rbp), %rdi movq -0x40(%rbp), %rsi movl -0x28(%rbp), %edx movq -0x18(%rbp), %rcx callq 0xfd7d0 cmpl $0x0, %eax je 0xfd657 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xfd73d movl -0x2c(%rbp), %edi callq 0xfd950 movl %eax, %ecx orl $0x1, %ecx movq -0x38(%rbp), %rax movl %ecx, 0x18(%rax) movq -0x40(%rbp), %rdi movq -0x10(%rbp), %rax movq 0xa8(%rax), %rsi movq -0x38(%rbp), %rdx movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movl 0xbc(%rax), %r8d callq 0xfd9d0 cmpq $0x0, %rax je 0xfd6b1 movq -0x18(%rbp), %rdi movq -0x38(%rbp), %rsi callq 0xfc740 movl $0x1, -0x4(%rbp) jmp 0xfd73d movq -0x10(%rbp), %rax movl 0xc0(%rax), %eax movl %eax, -0x24(%rbp) movq -0x10(%rbp), %rcx movl $0x1, -0x44(%rbp) movl -0x44(%rbp), %eax lock xaddl %eax, 0xc4(%rcx) movl %eax, -0x48(%rbp) cvtsi2sdl -0x48(%rbp), %xmm0 movsd 0x5b574(%rip), %xmm1 # 0x158c58 addsd %xmm1, %xmm0 cvtsi2sdl -0x24(%rbp), %xmm1 divsd %xmm1, %xmm0 movsd 0x5b55f(%rip), %xmm1 # 0x158c58 ucomisd %xmm1, %xmm0 jbe 0xfd736 movq -0x10(%rbp), %rcx movl -0x24(%rbp), %eax addl %eax, %eax movl %eax, -0x4c(%rbp) movl -0x24(%rbp), %eax movl -0x4c(%rbp), %edx lock cmpxchgl %edx, 0xc0(%rcx) movl %eax, %ecx sete %al movb %al, -0x55(%rbp) movl %ecx, -0x54(%rbp) testb $0x1, %al jne 0xfd72e movl -0x54(%rbp), %eax movl %eax, -0x24(%rbp) movb -0x55(%rbp), %al andb $0x1, %al movb %al, -0x4d(%rbp) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
lf_hash_insert: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rdi, [rbp+var_18] call lf_alloc_new mov [rbp+var_38], rax cmp [rbp+var_38], 0 setnz al xor al, 0FFh and al, 1 movzx eax, al cmp eax, 0 jz short loc_FD571 mov [rbp+var_4], 0FFFFFFFFh jmp loc_FD73D loc_FD571: mov rax, [rbp+var_10] mov rax, [rax+98h] mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] add rsi, 20h ; ' ' mov rdx, [rbp+var_20] call rax mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] add rsi, 20h ; ' ' mov rdx, [rbp+var_38] add rdx, 10h call _ZL8hash_keyPK10st_lf_hashPKhPm; hash_key(st_lf_hash const*,uchar const*,ulong *) mov rcx, rax mov rax, [rbp+var_38] mov [rax+8], rcx mov rax, [rbp+var_10] mov rax, [rax+0A0h] mov rcx, [rbp+var_10] mov rdi, [rcx+0A8h] mov rcx, [rbp+var_38] mov rsi, [rcx+8] mov rcx, [rbp+var_38] mov rdx, [rcx+10h] call rax mov eax, eax and rax, 7FFFFFFFh mov [rbp+var_2C], eax mov eax, [rbp+var_2C] mov rcx, [rbp+var_10] mov ecx, [rcx+0C0h] cdq idiv ecx mov [rbp+var_28], edx mov rdi, [rbp+var_10] mov esi, [rbp+var_28] call lf_dynarray_lvalue mov [rbp+var_40], rax cmp [rbp+var_40], 0 setnz al xor al, 0FFh and al, 1 movzx eax, al cmp eax, 0 jz short loc_FD628 mov [rbp+var_4], 0FFFFFFFFh jmp loc_FD73D loc_FD628: mov rax, [rbp+var_40] cmp qword ptr [rax], 0 jnz short loc_FD657 mov rdi, [rbp+var_10] mov rsi, [rbp+var_40] mov edx, [rbp+var_28] mov rcx, [rbp+var_18] call _ZL17initialize_bucketP10st_lf_hashPP8LF_SLISTjP7LF_PINS; initialize_bucket(st_lf_hash *,LF_SLIST **,uint,LF_PINS *) cmp eax, 0 jz short loc_FD657 mov [rbp+var_4], 0FFFFFFFFh jmp loc_FD73D loc_FD657: mov edi, [rbp+var_2C]; unsigned int call _ZL15my_reverse_bitsj; my_reverse_bits(uint) mov ecx, eax or ecx, 1 mov rax, [rbp+var_38] mov [rax+18h], ecx mov rdi, [rbp+var_40] mov rax, [rbp+var_10] mov rsi, [rax+0A8h] mov rdx, [rbp+var_38] mov rcx, [rbp+var_18] mov rax, [rbp+var_10] mov r8d, [rax+0BCh] call _ZL8l_insertPP8LF_SLISTPK15charset_info_stS0_P7LF_PINSj; l_insert(LF_SLIST **,charset_info_st const*,LF_SLIST *,LF_PINS *,uint) cmp rax, 0 jz short loc_FD6B1 mov rdi, [rbp+var_18] mov rsi, [rbp+var_38] call lf_pinbox_free mov [rbp+var_4], 1 jmp loc_FD73D loc_FD6B1: mov rax, [rbp+var_10] mov eax, [rax+0C0h] mov [rbp+var_24], eax mov rcx, [rbp+var_10] mov [rbp+var_44], 1 mov eax, [rbp+var_44] lock xadd [rcx+0C4h], eax mov [rbp+var_48], eax cvtsi2sd xmm0, [rbp+var_48] movsd xmm1, cs:qword_158C58 addsd xmm0, xmm1 cvtsi2sd xmm1, [rbp+var_24] divsd xmm0, xmm1 movsd xmm1, cs:qword_158C58 ucomisd xmm0, xmm1 jbe short loc_FD736 mov rcx, [rbp+var_10] mov eax, [rbp+var_24] add eax, eax mov [rbp+var_4C], eax mov eax, [rbp+var_24] mov edx, [rbp+var_4C] lock cmpxchg [rcx+0C0h], edx mov ecx, eax setz al mov [rbp+var_55], al mov [rbp+var_54], ecx test al, 1 jnz short loc_FD72E mov eax, [rbp+var_54] mov [rbp+var_24], eax loc_FD72E: mov al, [rbp+var_55] and al, 1 mov [rbp+var_4D], al loc_FD736: mov [rbp+var_4], 0 loc_FD73D: mov eax, [rbp+var_4] add rsp, 60h pop rbp retn
long long lf_hash_insert(long long a1, long long a2, long long a3) { _QWORD *v4; // [rsp+20h] [rbp-40h] long long v5; // [rsp+28h] [rbp-38h] signed int v6; // [rsp+34h] [rbp-2Ch] unsigned int v7; // [rsp+38h] [rbp-28h] signed __int32 v8; // [rsp+3Ch] [rbp-24h] v5 = lf_alloc_new(a2); if ( v5 ) { (*(void ( **)(long long, long long, long long))(a1 + 152))(a1, v5 + 32, a3); *(_QWORD *)(v5 + 8) = hash_key(a1, v5 + 32, v5 + 16); v6 = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(a1 + 160))( *(_QWORD *)(a1 + 168), *(_QWORD *)(v5 + 8), *(_QWORD *)(v5 + 16)) & 0x7FFFFFFF; v7 = v6 % *(_DWORD *)(a1 + 192); v4 = (_QWORD *)lf_dynarray_lvalue(a1, v7); if ( v4 ) { if ( *v4 || !(unsigned int)initialize_bucket(a1, v4, v7, a2) ) { *(_DWORD *)(v5 + 24) = my_reverse_bits(v6) | 1; if ( l_insert(v4, *(_QWORD *)(a1 + 168), v5, a2, *(unsigned int *)(a1 + 188)) ) { lf_pinbox_free(a2, (const char *)v5); return 1; } else { v8 = *(_DWORD *)(a1 + 192); if ( ((double)_InterlockedExchangeAdd((volatile signed __int32 *)(a1 + 196), 1u) + 1.0) / (double)v8 > 1.0 ) _InterlockedCompareExchange((volatile signed __int32 *)(a1 + 192), 2 * v8, v8); return 0; } } else { return (unsigned int)-1; } } else { return (unsigned int)-1; } } else { return (unsigned int)-1; } }
lf_hash_insert: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RDI,qword ptr [RBP + -0x18] CALL 0x001fc940 MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],0x0 SETNZ AL XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x001fd571 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001fd73d LAB_001fd571: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x98] MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] ADD RSI,0x20 MOV RDX,qword ptr [RBP + -0x20] CALL RAX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] ADD RSI,0x20 MOV RDX,qword ptr [RBP + -0x38] ADD RDX,0x10 CALL 0x001fd750 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xa0] MOV RCX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RCX + 0x8] MOV RCX,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RCX + 0x10] CALL RAX MOV EAX,EAX AND RAX,0x7fffffff MOV dword ptr [RBP + -0x2c],EAX MOV EAX,dword ptr [RBP + -0x2c] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0xc0] CDQ IDIV ECX MOV dword ptr [RBP + -0x28],EDX MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x28] CALL 0x001fcd90 MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],0x0 SETNZ AL XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x001fd628 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001fd73d LAB_001fd628: MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RAX],0x0 JNZ 0x001fd657 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x40] MOV EDX,dword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x18] CALL 0x001fd7d0 CMP EAX,0x0 JZ 0x001fd657 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001fd73d LAB_001fd657: MOV EDI,dword ptr [RBP + -0x2c] CALL 0x001fd950 MOV ECX,EAX OR ECX,0x1 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x18],ECX MOV RDI,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0xa8] MOV RDX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV R8D,dword ptr [RAX + 0xbc] CALL 0x001fd9d0 CMP RAX,0x0 JZ 0x001fd6b1 MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x38] CALL 0x001fc740 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001fd73d LAB_001fd6b1: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0xc0] MOV dword ptr [RBP + -0x24],EAX MOV RCX,qword ptr [RBP + -0x10] MOV dword ptr [RBP + -0x44],0x1 MOV EAX,dword ptr [RBP + -0x44] XADD.LOCK dword ptr [RCX + 0xc4],EAX MOV dword ptr [RBP + -0x48],EAX CVTSI2SD XMM0,dword ptr [RBP + -0x48] MOVSD XMM1,qword ptr [0x00258c58] ADDSD XMM0,XMM1 CVTSI2SD XMM1,dword ptr [RBP + -0x24] DIVSD XMM0,XMM1 MOVSD XMM1,qword ptr [0x00258c58] UCOMISD XMM0,XMM1 JBE 0x001fd736 MOV RCX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x24] ADD EAX,EAX MOV dword ptr [RBP + -0x4c],EAX MOV EAX,dword ptr [RBP + -0x24] MOV EDX,dword ptr [RBP + -0x4c] CMPXCHG.LOCK dword ptr [RCX + 0xc0],EDX MOV ECX,EAX SETZ AL MOV byte ptr [RBP + -0x55],AL MOV dword ptr [RBP + -0x54],ECX TEST AL,0x1 JNZ 0x001fd72e MOV EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x24],EAX LAB_001fd72e: MOV AL,byte ptr [RBP + -0x55] AND AL,0x1 MOV byte ptr [RBP + -0x4d],AL LAB_001fd736: MOV dword ptr [RBP + -0x4],0x0 LAB_001fd73d: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x60 POP RBP RET
int4 lf_hash_insert(st_lf_hash *param_1,LF_PINS *param_2,int8 param_3) { st_lf_hash *psVar1; int iVar2; uint uVar3; int iVar4; LF_SLIST *pLVar5; int8 uVar6; LF_SLIST **ppLVar7; long lVar8; uint uVar9; int4 local_c; pLVar5 = (LF_SLIST *)lf_alloc_new(param_2); if (pLVar5 == (LF_SLIST *)0x0) { local_c = 0xffffffff; } else { (**(code **)(param_1 + 0x98))(param_1,pLVar5 + 0x20,param_3); uVar6 = hash_key(param_1,(uchar *)(pLVar5 + 0x20),(ulong *)(pLVar5 + 0x10)); *(int8 *)(pLVar5 + 8) = uVar6; uVar3 = (**(code **)(param_1 + 0xa0)) (*(int8 *)(param_1 + 0xa8),*(int8 *)(pLVar5 + 8), *(int8 *)(pLVar5 + 0x10)); uVar9 = (int)(uVar3 & 0x7fffffff) % *(int *)(param_1 + 0xc0); ppLVar7 = (LF_SLIST **)lf_dynarray_lvalue(param_1,uVar9); if (ppLVar7 == (LF_SLIST **)0x0) { local_c = 0xffffffff; } else if ((*ppLVar7 == (LF_SLIST *)0x0) && (iVar4 = initialize_bucket(param_1,ppLVar7,uVar9,param_2), iVar4 != 0)) { local_c = 0xffffffff; } else { uVar3 = my_reverse_bits(uVar3 & 0x7fffffff); *(uint *)(pLVar5 + 0x18) = uVar3 | 1; lVar8 = l_insert(ppLVar7,*(charset_info_st **)(param_1 + 0xa8),pLVar5,param_2, *(uint *)(param_1 + 0xbc)); if (lVar8 == 0) { iVar2 = *(int *)(param_1 + 0xc0); LOCK(); psVar1 = param_1 + 0xc4; iVar4 = *(int *)psVar1; *(int *)psVar1 = *(int *)psVar1 + 1; UNLOCK(); if (DAT_00258c58 < ((double)iVar4 + DAT_00258c58) / (double)iVar2) { LOCK(); if (iVar2 == *(int *)(param_1 + 0xc0)) { *(int *)(param_1 + 0xc0) = iVar2 * 2; } UNLOCK(); } local_c = 0; } else { lf_pinbox_free(param_2,pLVar5); local_c = 1; } } } return local_c; }
34,093
bitmap_get_first
eloqsql/mysys/my_bitmap.c
uint bitmap_get_first(const MY_BITMAP *map) { uchar *byte_ptr; uint i,j,k; my_bitmap_map *data_ptr, *end= map->last_word_ptr; DBUG_ASSERT(map->bitmap); data_ptr= map->bitmap; *map->last_word_ptr|= map->last_word_mask; for (i=0; data_ptr < end; data_ptr++, i++) if (*data_ptr != 0xFFFFFFFF) goto found; if ((*data_ptr | map->last_word_mask) == 0xFFFFFFFF) return MY_BIT_NONE; found: byte_ptr= (uchar*)data_ptr; for (j=0; ; j++, byte_ptr++) { if (*byte_ptr != 0xFF) { for (k=0; ; k++) { if (!(*byte_ptr & (1 << k))) return (i*32) + (j*8) + k; } } } DBUG_ASSERT(0); return MY_BIT_NONE; /* Impossible */ }
O0
c
bitmap_get_first: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x38(%rbp) jmp 0xee076 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movl 0x18(%rax), %ecx movq -0x10(%rbp), %rax movq 0x8(%rax), %rax orl (%rax), %ecx movl %ecx, (%rax) movl $0x0, -0x1c(%rbp) movq -0x30(%rbp), %rax cmpq -0x38(%rbp), %rax jae 0xee0c9 movq -0x30(%rbp), %rax cmpl $-0x1, (%rax) je 0xee0b0 jmp 0xee0e6 jmp 0xee0b2 movq -0x30(%rbp), %rax addq $0x4, %rax movq %rax, -0x30(%rbp) movl -0x1c(%rbp), %eax addl $0x1, %eax movl %eax, -0x1c(%rbp) jmp 0xee09b movq -0x30(%rbp), %rax movl (%rax), %eax movq -0x10(%rbp), %rcx orl 0x18(%rcx), %eax cmpl $-0x1, %eax jne 0xee0e4 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xee160 jmp 0xee0e6 movq -0x30(%rbp), %rax movq %rax, -0x18(%rbp) movl $0x0, -0x20(%rbp) movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0xff, %eax je 0xee147 movl $0x0, -0x24(%rbp) movq -0x18(%rbp), %rax movzbl (%rax), %eax movl -0x24(%rbp), %ecx movl $0x1, %edx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0x0, %eax jne 0xee13a movl -0x1c(%rbp), %eax shll $0x5, %eax movl -0x20(%rbp), %ecx shll $0x3, %ecx addl %ecx, %eax addl -0x24(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0xee160 jmp 0xee13c movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0xee10a jmp 0xee149 movl -0x20(%rbp), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0xee0f5 movl -0x4(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
bitmap_get_first: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_38], rax jmp short $+2 loc_EE076: mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_30], rax mov rax, [rbp+var_10] mov ecx, [rax+18h] mov rax, [rbp+var_10] mov rax, [rax+8] or ecx, [rax] mov [rax], ecx mov [rbp+var_1C], 0 loc_EE09B: mov rax, [rbp+var_30] cmp rax, [rbp+var_38] jnb short loc_EE0C9 mov rax, [rbp+var_30] cmp dword ptr [rax], 0FFFFFFFFh jz short loc_EE0B0 jmp short loc_EE0E6 loc_EE0B0: jmp short $+2 loc_EE0B2: mov rax, [rbp+var_30] add rax, 4 mov [rbp+var_30], rax mov eax, [rbp+var_1C] add eax, 1 mov [rbp+var_1C], eax jmp short loc_EE09B loc_EE0C9: mov rax, [rbp+var_30] mov eax, [rax] mov rcx, [rbp+var_10] or eax, [rcx+18h] cmp eax, 0FFFFFFFFh jnz short loc_EE0E4 mov [rbp+var_4], 0FFFFFFFFh jmp short loc_EE160 loc_EE0E4: jmp short $+2 loc_EE0E6: mov rax, [rbp+var_30] mov [rbp+var_18], rax mov [rbp+var_20], 0 loc_EE0F5: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 0FFh jz short loc_EE147 mov [rbp+var_24], 0 loc_EE10A: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] mov ecx, [rbp+var_24] mov edx, 1 shl edx, cl mov ecx, edx and eax, ecx cmp eax, 0 jnz short loc_EE13A mov eax, [rbp+var_1C] shl eax, 5 mov ecx, [rbp+var_20] shl ecx, 3 add eax, ecx add eax, [rbp+var_24] mov [rbp+var_4], eax jmp short loc_EE160 loc_EE13A: jmp short $+2 loc_EE13C: mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp short loc_EE10A loc_EE147: jmp short $+2 loc_EE149: mov eax, [rbp+var_20] add eax, 1 mov [rbp+var_20], eax mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_EE0F5 loc_EE160: mov eax, [rbp+var_4] pop rbp retn
long long bitmap_get_first(long long a1) { unsigned __int8 *v2; // [rsp+0h] [rbp-38h] unsigned __int8 *v3; // [rsp+8h] [rbp-30h] int i; // [rsp+14h] [rbp-24h] int v5; // [rsp+18h] [rbp-20h] int v6; // [rsp+1Ch] [rbp-1Ch] unsigned __int8 *v7; // [rsp+20h] [rbp-18h] v2 = *(unsigned __int8 **)(a1 + 8); v3 = *(unsigned __int8 **)a1; *(_DWORD *)v2 |= *(_DWORD *)(a1 + 24); v6 = 0; while ( v3 < v2 ) { if ( *(_DWORD *)v3 != -1 ) goto LABEL_7; v3 += 4; ++v6; } if ( (*(_DWORD *)(a1 + 24) | *(_DWORD *)v3) == -1 ) return (unsigned int)-1; LABEL_7: v7 = v3; v5 = 0; while ( *v7 == 255 ) { ++v5; ++v7; } for ( i = 0; ((1 << i) & *v7) != 0; ++i ) ; return (unsigned int)(i + 8 * v5 + 32 * v6); }
bitmap_get_first: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x38],RAX JMP 0x001ee076 LAB_001ee076: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] OR ECX,dword ptr [RAX] MOV dword ptr [RAX],ECX MOV dword ptr [RBP + -0x1c],0x0 LAB_001ee09b: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x38] JNC 0x001ee0c9 MOV RAX,qword ptr [RBP + -0x30] CMP dword ptr [RAX],-0x1 JZ 0x001ee0b0 JMP 0x001ee0e6 LAB_001ee0b0: JMP 0x001ee0b2 LAB_001ee0b2: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x4 MOV qword ptr [RBP + -0x30],RAX MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX JMP 0x001ee09b LAB_001ee0c9: MOV RAX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x10] OR EAX,dword ptr [RCX + 0x18] CMP EAX,-0x1 JNZ 0x001ee0e4 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001ee160 LAB_001ee0e4: JMP 0x001ee0e6 LAB_001ee0e6: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x18],RAX MOV dword ptr [RBP + -0x20],0x0 LAB_001ee0f5: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0xff JZ 0x001ee147 MOV dword ptr [RBP + -0x24],0x0 LAB_001ee10a: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] MOV ECX,dword ptr [RBP + -0x24] MOV EDX,0x1 SHL EDX,CL MOV ECX,EDX AND EAX,ECX CMP EAX,0x0 JNZ 0x001ee13a MOV EAX,dword ptr [RBP + -0x1c] SHL EAX,0x5 MOV ECX,dword ptr [RBP + -0x20] SHL ECX,0x3 ADD EAX,ECX ADD EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4],EAX JMP 0x001ee160 LAB_001ee13a: JMP 0x001ee13c LAB_001ee13c: MOV EAX,dword ptr [RBP + -0x24] ADD EAX,0x1 MOV dword ptr [RBP + -0x24],EAX JMP 0x001ee10a LAB_001ee147: JMP 0x001ee149 LAB_001ee149: MOV EAX,dword ptr [RBP + -0x20] ADD EAX,0x1 MOV dword ptr [RBP + -0x20],EAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x001ee0f5 LAB_001ee160: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int bitmap_get_first(int8 *param_1) { uint *puVar1; uint *local_38; int local_2c; int local_28; int local_24; uint *local_20; int local_c; puVar1 = (uint *)param_1[1]; local_38 = (uint *)*param_1; *(uint *)param_1[1] = *(uint *)(param_1 + 3) | *(uint *)param_1[1]; local_24 = 0; for (; local_38 < puVar1; local_38 = local_38 + 1) { if (*local_38 != 0xffffffff) goto LAB_001ee0e6; local_24 = local_24 + 1; } if ((*local_38 | *(uint *)(param_1 + 3)) == 0xffffffff) { local_c = -1; } else { LAB_001ee0e6: local_28 = 0; for (local_20 = local_38; (byte)*local_20 == 0xff; local_20 = (uint *)((long)local_20 + 1)) { local_28 = local_28 + 1; } local_2c = 0; while (((uint)(byte)*local_20 & 1 << ((byte)local_2c & 0x1f)) != 0) { local_2c = local_2c + 1; } local_c = local_24 * 0x20 + local_28 * 8 + local_2c; } return local_c; }
34,094
write_hook_for_undo_row_insert
eloqsql/storage/maria/ma_blockrec.c
my_bool write_hook_for_undo_row_insert(enum translog_record_type type __attribute__ ((unused)), TRN *trn, MARIA_HA *tbl_info, LSN *lsn, void *hook_arg) { MARIA_SHARE *share= tbl_info->s; share->state.state.records++; share->state.state.checksum+= *(ha_checksum *)hook_arg; return write_hook_for_undo(type, trn, tbl_info, lsn, hook_arg); }
O3
c
write_hook_for_undo_row_insert: pushq %rbp movq %rsp, %rbp movq (%rdx), %rax incq 0x18(%rax) movl (%r8), %edx addl %edx, 0x48(%rax) movq (%rcx), %rax movq %rax, 0x98(%rsi) movq 0xa0(%rsi), %rcx movq %rcx, %rdx shlq $0x8, %rdx je 0x5e9d5 xorl %eax, %eax popq %rbp retq orq %rax, %rcx movq %rcx, 0xa0(%rsi) jmp 0x5e9d1
write_hook_for_undo_row_insert: push rbp mov rbp, rsp mov rax, [rdx] inc qword ptr [rax+18h] mov edx, [r8] add [rax+48h], edx mov rax, [rcx] mov [rsi+98h], rax mov rcx, [rsi+0A0h] mov rdx, rcx shl rdx, 8 jz short loc_5E9D5 loc_5E9D1: xor eax, eax pop rbp retn loc_5E9D5: or rcx, rax mov [rsi+0A0h], rcx jmp short loc_5E9D1
long long write_hook_for_undo_row_insert(long long a1, long long a2, long long *a3, long long *a4, _DWORD *a5) { long long v5; // rax long long v6; // rax v5 = *a3; ++*(_QWORD *)(v5 + 24); *(_DWORD *)(v5 + 72) += *a5; v6 = *a4; *(_QWORD *)(a2 + 152) = *a4; if ( !(*(_QWORD *)(a2 + 160) << 8) ) *(_QWORD *)(a2 + 160) |= v6; return 0LL; }
write_hook_for_undo_row_insert: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDX] INC qword ptr [RAX + 0x18] MOV EDX,dword ptr [R8] ADD dword ptr [RAX + 0x48],EDX MOV RAX,qword ptr [RCX] MOV qword ptr [RSI + 0x98],RAX MOV RCX,qword ptr [RSI + 0xa0] MOV RDX,RCX SHL RDX,0x8 JZ 0x0015e9d5 LAB_0015e9d1: XOR EAX,EAX POP RBP RET LAB_0015e9d5: OR RCX,RAX MOV qword ptr [RSI + 0xa0],RCX JMP 0x0015e9d1
int8 write_hook_for_undo_row_insert (int8 param_1,long param_2,long *param_3,ulong *param_4,int *param_5) { long *plVar1; int *piVar2; long lVar3; ulong uVar4; lVar3 = *param_3; plVar1 = (long *)(lVar3 + 0x18); *plVar1 = *plVar1 + 1; piVar2 = (int *)(lVar3 + 0x48); *piVar2 = *piVar2 + *param_5; uVar4 = *param_4; *(ulong *)(param_2 + 0x98) = uVar4; if ((*(ulong *)(param_2 + 0xa0) & 0xffffffffffffff) == 0) { *(ulong *)(param_2 + 0xa0) = *(ulong *)(param_2 + 0xa0) | uVar4; } return 0; }
34,095
init_io_cache_ext
eloqsql/mysys/mf_iocache.c
int init_io_cache_ext(IO_CACHE *info, File file, size_t cachesize, enum cache_type type, my_off_t seek_offset, pbool use_async_io, myf cache_myflags, PSI_file_key file_key __attribute__((unused))) { size_t min_cache; my_off_t pos; my_off_t end_of_file= ~(my_off_t) 0; DBUG_ENTER("init_io_cache_ext"); DBUG_PRINT("enter",("cache:%p type: %d pos: %llu", info, (int) type, (ulonglong) seek_offset)); info->file= file; info->type= TYPE_NOT_SET; /* Don't set it until mutex are created */ info->pos_in_file= seek_offset; info->alloced_buffer = 0; info->buffer=0; info->seek_not_done= 0; info->next_file_user= NULL; if (file >= 0) { DBUG_ASSERT(!(cache_myflags & MY_ENCRYPT)); pos= mysql_file_tell(file, MYF(0)); if ((pos == (my_off_t) -1) && (my_errno == ESPIPE)) { /* This kind of object doesn't support seek() or tell(). Don't set a seek_not_done that will make us again try to seek() later and fail. Additionally, if we're supposed to start somewhere other than the the beginning of whatever this file is, then somebody made a bad assumption. */ DBUG_ASSERT(seek_offset == 0); } else info->seek_not_done= MY_TEST(seek_offset != pos); } else if (type == WRITE_CACHE && _my_b_encr_read) { cache_myflags|= MY_ENCRYPT; DBUG_ASSERT(seek_offset == 0); } info->disk_writes= 0; info->share=0; if (!cachesize && !(cachesize= my_default_record_cache_size)) DBUG_RETURN(1); /* No cache requested */ min_cache=use_async_io ? IO_SIZE*4 : IO_SIZE*2; if (type == READ_CACHE || type == SEQ_READ_APPEND) { /* Assume file isn't growing */ DBUG_ASSERT(!(cache_myflags & MY_ENCRYPT)); if (!(cache_myflags & MY_DONT_CHECK_FILESIZE)) { /* Calculate end of file to avoid allocating oversized buffers */ end_of_file= mysql_file_seek(file, 0L, MY_SEEK_END, MYF(0)); /* Need to reset seek_not_done now that we just did a seek. */ info->seek_not_done= end_of_file == seek_offset ? 0 : 1; if (end_of_file < seek_offset) end_of_file=seek_offset; /* Trim cache size if the file is very small */ if ((my_off_t) cachesize > end_of_file-seek_offset+IO_SIZE*2-1) { cachesize= (size_t) (end_of_file-seek_offset)+IO_SIZE*2-1; use_async_io=0; /* No need to use async */ } } } cache_myflags &= ~MY_DONT_CHECK_FILESIZE; if (type != READ_NET) { /* Retry allocating memory in smaller blocks until we get one */ cachesize= ((cachesize + min_cache-1) & ~(min_cache-1)); for (;;) { size_t buffer_block; /* Unset MY_WAIT_IF_FULL bit if it is set, to prevent conflict with MY_ZEROFILL. */ myf flags= (myf) (cache_myflags & ~(MY_WME | MY_WAIT_IF_FULL)); if (cachesize < min_cache) cachesize = min_cache; buffer_block= cachesize; if (type == SEQ_READ_APPEND) buffer_block *= 2; else if (cache_myflags & MY_ENCRYPT) buffer_block= 2*(buffer_block + MY_AES_BLOCK_SIZE) + sizeof(IO_CACHE_CRYPT); if (cachesize == min_cache) flags|= (myf) MY_WME; if ((info->buffer= (uchar*) my_malloc(key_memory_IO_CACHE, buffer_block, flags)) != 0) { if (type == SEQ_READ_APPEND) info->write_buffer= info->buffer + cachesize; else info->write_buffer= info->buffer; info->alloced_buffer= buffer_block; break; /* Enough memory found */ } if (cachesize == min_cache) DBUG_RETURN(2); /* Can't alloc cache */ /* Try with less memory */ cachesize= (cachesize*3/4 & ~(min_cache-1)); } } DBUG_PRINT("info",("init_io_cache_ext: cachesize = %lu", (ulong) cachesize)); info->read_length=info->buffer_length=cachesize; info->myflags=cache_myflags & ~(MY_NABP | MY_FNABP); info->request_pos= info->read_pos= info->write_pos = info->buffer; if (type == SEQ_READ_APPEND) { info->append_read_pos = info->write_pos = info->write_buffer; info->write_end = info->write_buffer + info->buffer_length; mysql_mutex_init(key_IO_CACHE_append_buffer_lock, &info->append_buffer_lock, MY_MUTEX_INIT_FAST); } #if defined(SAFE_MUTEX) else { /* Clear mutex so that safe_mutex will notice that it's not initialized */ bzero((char*) &info->append_buffer_lock, sizeof(info->append_buffer_lock)); } #endif if (type == WRITE_CACHE) info->write_end= info->buffer+info->buffer_length- (seek_offset & (IO_SIZE-1)); else info->read_end=info->buffer; /* Nothing in cache */ /* End_of_file may be changed by user later */ info->end_of_file= end_of_file; info->error=0; info->type= type; init_functions(info); DBUG_RETURN(0); }
O3
c
init_io_cache_ext: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rdx, %rbx movl %esi, %r15d movq %rdi, %r12 movq 0x10(%rbp), %r13 movl %esi, 0xd4(%rdi) xorl %eax, %eax movl %eax, 0xb0(%rdi) movq %r8, -0x48(%rbp) movq %r8, (%rdi) movq %rax, 0x100(%rdi) movq %rax, 0x20(%rdi) movl %eax, 0xe0(%rdi) movq %rax, 0xd8(%rdi) testl %esi, %esi movl %ecx, -0x2c(%rbp) js 0x94be6 movl %r9d, %r14d leaq 0x2f1489(%rip), %rax # 0x386010 movq (%rax), %rax leaq -0xb0(%rbp), %rdi movl %r15d, %esi movl $0x9, %edx callq *0x158(%rax) testq %rax, %rax jne 0x94ecb movl %r15d, %edi xorl %esi, %esi callq 0xa0b94 movq %rax, %r13 cmpq $-0x1, %r13 movl %r14d, %r9d jne 0x94bcb callq 0xa1ab2 movl %r14d, %r9d cmpl $0x1d, (%rax) je 0x94bdc xorl %eax, %eax cmpq -0x48(%rbp), %r13 setne %al movl %eax, 0xe0(%r12) movq 0x10(%rbp), %r13 movl -0x2c(%rbp), %r14d jmp 0x94c07 movl %ecx, %r14d leaq 0xb72a88(%rip), %rax # 0xc07678 movq %r13, %rcx orq $0x40, %rcx cmpq $0x0, (%rax) cmoveq %r13, %rcx cmpl $0x2, %r14d cmoveq %rcx, %r13 xorl %eax, %eax movq %rax, 0xb8(%r12) movq %rax, 0x98(%r12) testq %rbx, %rbx jne 0x94c31 leaq 0x2f0efb(%rip), %rax # 0x385b20 movq (%rax), %rbx testq %rbx, %rbx je 0x94eb4 movq %r12, -0x40(%rbp) xorl %r12d, %r12d testb %r9b, %r9b setne %cl sete %dl movq $-0x1, -0x60(%rbp) cmpl $0x1, %r14d je 0x94c74 cmpl $0x3, %r14d je 0x94c74 cmpl $0x5, %r14d jne 0x94cf3 movq -0x40(%rbp), %r12 movq 0x20(%r12), %rax movq $-0x1, %r15 jmp 0x94dc1 testb %r13b, %r13b movq %r13, -0x38(%rbp) js 0x94cf7 movb %dl, -0x50(%rbp) movb %cl, -0x58(%rbp) leaq 0x2f1386(%rip), %rax # 0x386010 movq (%rax), %rax leaq -0xb0(%rbp), %rdi movl %r15d, %esi movl $0x8, %edx callq *0x158(%rax) testq %rax, %rax jne 0x94ee6 movl %r15d, %edi xorl %esi, %esi movl $0x2, %edx xorl %ecx, %ecx callq 0xa0b30 xorl %esi, %esi movq -0x48(%rbp), %rdx cmpq %rdx, %rax cmovbeq %rdx, %rax setne %sil movq -0x40(%rbp), %rcx movl %esi, 0xe0(%rcx) movq %rax, -0x60(%rbp) subq %rdx, %rax addq $0x1fff, %rax # imm = 0x1FFF cmpq %rax, %rbx cmovaeq %rax, %rbx movb -0x58(%rbp), %cl movb -0x50(%rbp), %dl jmp 0x94cf7 movq %r13, -0x38(%rbp) xorl %eax, %eax movb %dl, %al shll $0xd, %eax orq $-0x4000, %rax # imm = 0xC000 movq %rax, -0x58(%rbp) movb %cl, %r12b shll $0xd, %r12d addq $0x2000, %r12 # imm = 0x2000 leaq (%r12,%rbx), %r13 decq %r13 movq -0x38(%rbp), %r14 andl $0xffffff4f, %r14d # imm = 0xFFFFFF4F leaq 0x10(%r14), %rax movq %rax, -0x50(%rbp) andq -0x58(%rbp), %r13 cmpq %r12, %r13 movq %r12, %rbx cmovaq %r13, %rbx cmpl $0x3, -0x2c(%rbp) jne 0x94d4a leaq (%rbx,%rbx), %r15 jmp 0x94d5b movq %rbx, %r15 testb $0x40, -0x38(%rbp) je 0x94d5b leaq 0x48(,%rbx,2), %r15 cmpq %r13, %r12 movq -0x50(%rbp), %rdx cmovbq %r14, %rdx leaq 0xb73487(%rip), %rax # 0xc081f4 movl (%rax), %edi movq %r15, %rsi callq 0x9fd41 movq -0x40(%rbp), %rcx movq %rax, 0x20(%rcx) testq %rax, %rax jne 0x94d97 cmpq %r13, %r12 jae 0x94e64 leaq (%rbx,%rbx,2), %r13 shrq $0x2, %r13 jmp 0x94d30 xorl %ecx, %ecx movl -0x2c(%rbp), %r14d cmpl $0x3, %r14d cmoveq %rbx, %rcx addq %rax, %rcx movq -0x40(%rbp), %r12 movq %rcx, 0x30(%r12) movq %r15, 0x100(%r12) movq -0x38(%rbp), %r13 movq -0x60(%rbp), %r15 andl $0xffffff79, %r13d # imm = 0xFFFFFF79 movq %rbx, 0xe8(%r12) movq %rbx, 0xf0(%r12) movq %r13, 0xf8(%r12) movq %rax, 0x40(%r12) movq %rax, 0x10(%r12) movq %rax, 0x28(%r12) cmpl $0x3, %r14d jne 0x94e6b movq 0x30(%r12), %rax movq %rax, 0x40(%r12) movq %rax, 0x38(%r12) addq %rax, %rbx movq %rbx, 0x48(%r12) leaq 0xb72a41(%rip), %rax # 0xc07854 movl (%rax), %edi movq %r15, %rbx leaq 0x50(%r12), %r15 leaq 0x2f11ec(%rip), %rax # 0x386010 movq (%rax), %rax movq %r15, %rsi callq *0x40(%rax) movq %rax, 0x90(%r12) movq %r15, 0x88(%r12) xorps %xmm0, %xmm0 movups %xmm0, 0x78(%r12) leaq 0xb73723(%rip), %rsi # 0xc08570 movq %r15, %rdi movq %rbx, %r15 callq 0x29320 movq 0x20(%r12), %rax movl $0x18, %ecx jmp 0x94e8b movl $0x2, %eax jmp 0x94eb9 movl $0x18, %ecx cmpl $0x2, %r14d jne 0x94e8b addq %rbx, %rax movq -0x48(%rbp), %rcx andl $0xfff, %ecx # imm = 0xFFF subq %rcx, %rax movl $0x48, %ecx movq %rax, (%r12,%rcx) movq %r15, 0x8(%r12) movl $0x0, 0xe4(%r12) movl %r14d, 0xb0(%r12) movq %r12, %rdi callq 0x94f03 xorl %eax, %eax jmp 0x94eb9 movl $0x1, %eax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq -0x68(%rbp), %r13 movq %rax, %rdi movl %r15d, %esi movq %r13, %rdx callq 0x2e8f8 movq (%r13), %r13 jmp 0x94bb5 leaq -0x68(%rbp), %rcx movq %rax, %rdi movl %r15d, %esi movq %rcx, %r15 movq %rcx, %rdx callq 0x2e950 movq (%r15), %rax jmp 0x94cbc
init_io_cache_ext: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov rbx, rdx mov r15d, esi mov r12, rdi mov r13, [rbp+arg_0] mov [rdi+0D4h], esi xor eax, eax mov [rdi+0B0h], eax mov [rbp+var_48], r8 mov [rdi], r8 mov [rdi+100h], rax mov [rdi+20h], rax mov [rdi+0E0h], eax mov [rdi+0D8h], rax test esi, esi mov [rbp+var_2C], ecx js short loc_94BE6 mov r14d, r9d lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_B0] mov esi, r15d mov edx, 9 call qword ptr [rax+158h] test rax, rax jnz loc_94ECB mov edi, r15d xor esi, esi call my_tell mov r13, rax loc_94BB5: cmp r13, 0FFFFFFFFFFFFFFFFh mov r9d, r14d jnz short loc_94BCB call _my_thread_var mov r9d, r14d cmp dword ptr [rax], 1Dh jz short loc_94BDC loc_94BCB: xor eax, eax cmp r13, [rbp+var_48] setnz al mov [r12+0E0h], eax loc_94BDC: mov r13, [rbp+arg_0] mov r14d, [rbp+var_2C] jmp short loc_94C07 loc_94BE6: mov r14d, ecx lea rax, _my_b_encr_read mov rcx, r13 or rcx, 40h cmp qword ptr [rax], 0 cmovz rcx, r13 cmp r14d, 2 cmovz r13, rcx loc_94C07: xor eax, eax mov [r12+0B8h], rax mov [r12+98h], rax test rbx, rbx jnz short loc_94C31 lea rax, my_default_record_cache_size mov rbx, [rax] test rbx, rbx jz loc_94EB4 loc_94C31: mov [rbp+var_40], r12 xor r12d, r12d test r9b, r9b setnz cl setz dl mov [rbp+var_60], 0FFFFFFFFFFFFFFFFh cmp r14d, 1 jz short loc_94C74 cmp r14d, 3 jz short loc_94C74 cmp r14d, 5 jnz loc_94CF3 mov r12, [rbp+var_40] mov rax, [r12+20h] mov r15, 0FFFFFFFFFFFFFFFFh jmp loc_94DC1 loc_94C74: test r13b, r13b mov [rbp+var_38], r13 js short loc_94CF7 mov byte ptr [rbp+var_50], dl mov byte ptr [rbp+var_58], cl lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_B0] mov esi, r15d mov edx, 8 call qword ptr [rax+158h] test rax, rax jnz loc_94EE6 mov edi, r15d xor esi, esi mov edx, 2 xor ecx, ecx call my_seek loc_94CBC: xor esi, esi mov rdx, [rbp+var_48] cmp rax, rdx cmovbe rax, rdx setnz sil mov rcx, [rbp+var_40] mov [rcx+0E0h], esi mov [rbp+var_60], rax sub rax, rdx add rax, 1FFFh cmp rbx, rax cmovnb rbx, rax mov cl, byte ptr [rbp+var_58] mov dl, byte ptr [rbp+var_50] jmp short loc_94CF7 loc_94CF3: mov [rbp+var_38], r13 loc_94CF7: xor eax, eax mov al, dl shl eax, 0Dh or rax, 0FFFFFFFFFFFFC000h mov [rbp+var_58], rax mov r12b, cl shl r12d, 0Dh add r12, 2000h lea r13, [r12+rbx] dec r13 mov r14, [rbp+var_38] and r14d, 0FFFFFF4Fh lea rax, [r14+10h] mov [rbp+var_50], rax loc_94D30: and r13, [rbp+var_58] cmp r13, r12 mov rbx, r12 cmova rbx, r13 cmp [rbp+var_2C], 3 jnz short loc_94D4A lea r15, [rbx+rbx] jmp short loc_94D5B loc_94D4A: mov r15, rbx test byte ptr [rbp+var_38], 40h jz short loc_94D5B lea r15, ds:48h[rbx*2] loc_94D5B: cmp r12, r13 mov rdx, [rbp+var_50] cmovb rdx, r14 lea rax, key_memory_IO_CACHE mov edi, [rax] mov rsi, r15 call my_malloc mov rcx, [rbp+var_40] mov [rcx+20h], rax test rax, rax jnz short loc_94D97 cmp r12, r13 jnb loc_94E64 lea r13, [rbx+rbx*2] shr r13, 2 jmp short loc_94D30 loc_94D97: xor ecx, ecx mov r14d, [rbp+var_2C] cmp r14d, 3 cmovz rcx, rbx add rcx, rax mov r12, [rbp+var_40] mov [r12+30h], rcx mov [r12+100h], r15 mov r13, [rbp+var_38] mov r15, [rbp+var_60] loc_94DC1: and r13d, 0FFFFFF79h mov [r12+0E8h], rbx mov [r12+0F0h], rbx mov [r12+0F8h], r13 mov [r12+40h], rax mov [r12+10h], rax mov [r12+28h], rax cmp r14d, 3 jnz short loc_94E6B mov rax, [r12+30h] mov [r12+40h], rax mov [r12+38h], rax add rbx, rax mov [r12+48h], rbx lea rax, key_IO_CACHE_append_buffer_lock mov edi, [rax] mov rbx, r15 lea r15, [r12+50h] lea rax, PSI_server mov rax, [rax] mov rsi, r15 call qword ptr [rax+40h] mov [r12+90h], rax mov [r12+88h], r15 xorps xmm0, xmm0 movups xmmword ptr [r12+78h], xmm0 lea rsi, my_fast_mutexattr mov rdi, r15 mov r15, rbx call _pthread_mutex_init mov rax, [r12+20h] mov ecx, 18h jmp short loc_94E8B loc_94E64: mov eax, 2 jmp short loc_94EB9 loc_94E6B: mov ecx, 18h cmp r14d, 2 jnz short loc_94E8B add rax, rbx mov rcx, [rbp+var_48] and ecx, 0FFFh sub rax, rcx mov ecx, 48h ; 'H' loc_94E8B: mov [r12+rcx], rax mov [r12+8], r15 mov dword ptr [r12+0E4h], 0 mov [r12+0B0h], r14d mov rdi, r12 call init_functions xor eax, eax jmp short loc_94EB9 loc_94EB4: mov eax, 1 loc_94EB9: add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_94ECB: lea r13, [rbp+var_68] mov rdi, rax mov esi, r15d mov rdx, r13 call init_io_cache_ext_cold_1 mov r13, [r13+0] jmp loc_94BB5 loc_94EE6: lea rcx, [rbp+var_68] mov rdi, rax mov esi, r15d mov r15, rcx mov rdx, rcx call init_io_cache_ext_cold_2 mov rax, [r15] jmp loc_94CBC
long long init_io_cache_ext( long long a1, unsigned int a2, unsigned long long a3, int a4, unsigned long long a5, char a6, long long a7) { unsigned long long v7; // rbx long long v9; // r13 char v10; // r14 long long v11; // rax long long v12; // rdi long long v13; // rcx long long v14; // r13 _DWORD *v15; // rax int v16; // r14d int v17; // r12d long long v18; // r12 long long v19; // rax long long v20; // r15 long long v21; // rax unsigned long long v22; // rax int v23; // esi unsigned long long v24; // rdx bool v25; // zf unsigned long long v26; // rax unsigned long long v27; // r12 unsigned long long v28; // r13 long long v29; // r14 unsigned long long v30; // r13 long long v31; // r15 long long v32; // rdx unsigned long long v33; // rcx long long v34; // rax long long v35; // rcx _BYTE v37[72]; // [rsp+0h] [rbp-B0h] BYREF unsigned long long v38; // [rsp+48h] [rbp-68h] BYREF long long v39; // [rsp+50h] [rbp-60h] unsigned long long v40; // [rsp+58h] [rbp-58h] long long v41; // [rsp+60h] [rbp-50h] unsigned long long v42; // [rsp+68h] [rbp-48h] long long v43; // [rsp+70h] [rbp-40h] long long v44; // [rsp+78h] [rbp-38h] int v45; // [rsp+84h] [rbp-2Ch] v7 = a3; v9 = a7; *(_DWORD *)(a1 + 212) = a2; *(_DWORD *)(a1 + 176) = 0; v42 = a5; *(_QWORD *)a1 = a5; *(_QWORD *)(a1 + 256) = 0LL; *(_QWORD *)(a1 + 32) = 0LL; *(_DWORD *)(a1 + 224) = 0; *(_QWORD *)(a1 + 216) = 0LL; v45 = a4; if ( (a2 & 0x80000000) != 0 ) { v16 = a4; v13 = a7 | 0x40; if ( !my_b_encr_read ) v13 = a7; if ( v16 == 2 ) v9 = v13; } else { v10 = a6; v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v37, a2, 9LL); if ( v11 ) { v12 = v11; init_io_cache_ext_cold_1(v11, a2, &v38); v14 = v38; } else { v12 = a2; v14 = my_tell(a2, 0LL); } a6 = v10; if ( v14 != -1 || (v15 = (_DWORD *)my_thread_var(v12), a6 = v10, *v15 != 29) ) *(_DWORD *)(a1 + 224) = v14 != v42; v9 = a7; v16 = v45; } *(_QWORD *)(a1 + 184) = 0LL; *(_QWORD *)(a1 + 152) = 0LL; if ( !v7 ) { v7 = my_default_record_cache_size; if ( !my_default_record_cache_size ) return 1LL; } v43 = a1; v17 = 0; LOBYTE(v13) = a6 != 0; LOBYTE(a3) = a6 == 0; v39 = -1LL; if ( v16 == 1 || v16 == 3 ) { v44 = v9; if ( (v9 & 0x80u) == 0LL ) { LOBYTE(v41) = a6 == 0; LOBYTE(v40) = a6 != 0; v21 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v37, a2, 8LL); if ( v21 ) { init_io_cache_ext_cold_2(v21, a2, &v38); v22 = v38; } else { v22 = my_seek(a2, 0LL, 2LL, 0LL); } v23 = 0; v24 = v42; v25 = v22 == v42; if ( v22 <= v42 ) v22 = v42; LOBYTE(v23) = !v25; *(_DWORD *)(v43 + 224) = v23; v39 = v22; v26 = v22 - v24 + 0x1FFF; if ( v7 >= v26 ) v7 = v26; LOBYTE(v13) = v40; LOBYTE(a3) = v41; } LABEL_27: v40 = ((unsigned __int8)a3 << 13) | 0xFFFFFFFFFFFFC000LL; LOBYTE(v17) = v13; v27 = (unsigned int)(v17 << 13) + 0x2000LL; v28 = v27 + v7 - 1; v29 = (unsigned int)v44 & 0xFFFFFF4F; v41 = v29 + 16; while ( 1 ) { v30 = v40 & v28; v7 = v27; if ( v30 > v27 ) v7 = v30; if ( v45 == 3 ) { v31 = 2 * v7; } else { v31 = v7; if ( (v44 & 0x40) != 0 ) v31 = 2 * v7 + 72; } v32 = v41; if ( v27 < v30 ) v32 = v29; v19 = my_malloc(key_memory_IO_CACHE, v31, v32); *(_QWORD *)(v43 + 32) = v19; if ( v19 ) break; if ( v27 >= v30 ) return 2LL; v28 = (3 * v7) >> 2; } v33 = 0LL; v16 = v45; if ( v45 == 3 ) v33 = v7; v13 = v19 + v33; v18 = v43; *(_QWORD *)(v43 + 48) = v13; *(_QWORD *)(v18 + 256) = v31; LODWORD(v9) = v44; v20 = v39; goto LABEL_42; } if ( v16 != 5 ) { v44 = v9; goto LABEL_27; } v18 = v43; v19 = *(_QWORD *)(v43 + 32); v20 = -1LL; LABEL_42: *(_QWORD *)(v18 + 232) = v7; *(_QWORD *)(v18 + 240) = v7; *(_QWORD *)(v18 + 248) = (unsigned int)v9 & 0xFFFFFF79; *(_QWORD *)(v18 + 64) = v19; *(_QWORD *)(v18 + 16) = v19; *(_QWORD *)(v18 + 40) = v19; if ( v16 == 3 ) { v34 = *(_QWORD *)(v18 + 48); *(_QWORD *)(v18 + 64) = v34; *(_QWORD *)(v18 + 56) = v34; *(_QWORD *)(v18 + 72) = v34 + v7; *(_QWORD *)(v18 + 144) = ((long long ( *)(_QWORD, long long, unsigned long long, long long))PSI_server[8])( key_IO_CACHE_append_buffer_lock, v18 + 80, a3, v13); *(_QWORD *)(v18 + 136) = v18 + 80; *(_OWORD *)(v18 + 120) = 0LL; pthread_mutex_init(v18 + 80, &my_fast_mutexattr); v19 = *(_QWORD *)(v18 + 32); v35 = 24LL; } else { v35 = 24LL; if ( v16 == 2 ) { v19 = v7 + v19 - (v42 & 0xFFF); v35 = 72LL; } } *(_QWORD *)(v18 + v35) = v19; *(_QWORD *)(v18 + 8) = v20; *(_DWORD *)(v18 + 228) = 0; *(_DWORD *)(v18 + 176) = v16; init_functions(v18); return 0LL; }
init_io_cache_ext: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV RBX,RDX MOV R15D,ESI MOV R12,RDI MOV R13,qword ptr [RBP + 0x10] MOV dword ptr [RDI + 0xd4],ESI XOR EAX,EAX MOV dword ptr [RDI + 0xb0],EAX MOV qword ptr [RBP + -0x48],R8 MOV qword ptr [RDI],R8 MOV qword ptr [RDI + 0x100],RAX MOV qword ptr [RDI + 0x20],RAX MOV dword ptr [RDI + 0xe0],EAX MOV qword ptr [RDI + 0xd8],RAX TEST ESI,ESI MOV dword ptr [RBP + -0x2c],ECX JS 0x00194be6 MOV R14D,R9D LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0xb0] MOV ESI,R15D MOV EDX,0x9 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x00194ecb MOV EDI,R15D XOR ESI,ESI CALL 0x001a0b94 MOV R13,RAX LAB_00194bb5: CMP R13,-0x1 MOV R9D,R14D JNZ 0x00194bcb CALL 0x001a1ab2 MOV R9D,R14D CMP dword ptr [RAX],0x1d JZ 0x00194bdc LAB_00194bcb: XOR EAX,EAX CMP R13,qword ptr [RBP + -0x48] SETNZ AL MOV dword ptr [R12 + 0xe0],EAX LAB_00194bdc: MOV R13,qword ptr [RBP + 0x10] MOV R14D,dword ptr [RBP + -0x2c] JMP 0x00194c07 LAB_00194be6: MOV R14D,ECX LEA RAX,[0xd07678] MOV RCX,R13 OR RCX,0x40 CMP qword ptr [RAX],0x0 CMOVZ RCX,R13 CMP R14D,0x2 CMOVZ R13,RCX LAB_00194c07: XOR EAX,EAX MOV qword ptr [R12 + 0xb8],RAX MOV qword ptr [R12 + 0x98],RAX TEST RBX,RBX JNZ 0x00194c31 LEA RAX,[0x485b20] MOV RBX,qword ptr [RAX] TEST RBX,RBX JZ 0x00194eb4 LAB_00194c31: MOV qword ptr [RBP + -0x40],R12 XOR R12D,R12D TEST R9B,R9B SETNZ CL SETZ DL MOV qword ptr [RBP + -0x60],-0x1 CMP R14D,0x1 JZ 0x00194c74 CMP R14D,0x3 JZ 0x00194c74 CMP R14D,0x5 JNZ 0x00194cf3 MOV R12,qword ptr [RBP + -0x40] MOV RAX,qword ptr [R12 + 0x20] MOV R15,-0x1 JMP 0x00194dc1 LAB_00194c74: TEST R13B,R13B MOV qword ptr [RBP + -0x38],R13 JS 0x00194cf7 MOV byte ptr [RBP + -0x50],DL MOV byte ptr [RBP + -0x58],CL LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0xb0] MOV ESI,R15D MOV EDX,0x8 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x00194ee6 MOV EDI,R15D XOR ESI,ESI MOV EDX,0x2 XOR ECX,ECX CALL 0x001a0b30 LAB_00194cbc: XOR ESI,ESI MOV RDX,qword ptr [RBP + -0x48] CMP RAX,RDX CMOVBE RAX,RDX SETNZ SIL MOV RCX,qword ptr [RBP + -0x40] MOV dword ptr [RCX + 0xe0],ESI MOV qword ptr [RBP + -0x60],RAX SUB RAX,RDX ADD RAX,0x1fff CMP RBX,RAX CMOVNC RBX,RAX MOV CL,byte ptr [RBP + -0x58] MOV DL,byte ptr [RBP + -0x50] JMP 0x00194cf7 LAB_00194cf3: MOV qword ptr [RBP + -0x38],R13 LAB_00194cf7: XOR EAX,EAX MOV AL,DL SHL EAX,0xd OR RAX,-0x4000 MOV qword ptr [RBP + -0x58],RAX MOV R12B,CL SHL R12D,0xd ADD R12,0x2000 LEA R13,[R12 + RBX*0x1] DEC R13 MOV R14,qword ptr [RBP + -0x38] AND R14D,0xffffff4f LEA RAX,[R14 + 0x10] MOV qword ptr [RBP + -0x50],RAX LAB_00194d30: AND R13,qword ptr [RBP + -0x58] CMP R13,R12 MOV RBX,R12 CMOVA RBX,R13 CMP dword ptr [RBP + -0x2c],0x3 JNZ 0x00194d4a LEA R15,[RBX + RBX*0x1] JMP 0x00194d5b LAB_00194d4a: MOV R15,RBX TEST byte ptr [RBP + -0x38],0x40 JZ 0x00194d5b LEA R15,[0x48 + RBX*0x2] LAB_00194d5b: CMP R12,R13 MOV RDX,qword ptr [RBP + -0x50] CMOVC RDX,R14 LEA RAX,[0xd081f4] MOV EDI,dword ptr [RAX] MOV RSI,R15 CALL 0x0019fd41 MOV RCX,qword ptr [RBP + -0x40] MOV qword ptr [RCX + 0x20],RAX TEST RAX,RAX JNZ 0x00194d97 CMP R12,R13 JNC 0x00194e64 LEA R13,[RBX + RBX*0x2] SHR R13,0x2 JMP 0x00194d30 LAB_00194d97: XOR ECX,ECX MOV R14D,dword ptr [RBP + -0x2c] CMP R14D,0x3 CMOVZ RCX,RBX ADD RCX,RAX MOV R12,qword ptr [RBP + -0x40] MOV qword ptr [R12 + 0x30],RCX MOV qword ptr [R12 + 0x100],R15 MOV R13,qword ptr [RBP + -0x38] MOV R15,qword ptr [RBP + -0x60] LAB_00194dc1: AND R13D,0xffffff79 MOV qword ptr [R12 + 0xe8],RBX MOV qword ptr [R12 + 0xf0],RBX MOV qword ptr [R12 + 0xf8],R13 MOV qword ptr [R12 + 0x40],RAX MOV qword ptr [R12 + 0x10],RAX MOV qword ptr [R12 + 0x28],RAX CMP R14D,0x3 JNZ 0x00194e6b MOV RAX,qword ptr [R12 + 0x30] MOV qword ptr [R12 + 0x40],RAX MOV qword ptr [R12 + 0x38],RAX ADD RBX,RAX MOV qword ptr [R12 + 0x48],RBX LEA RAX,[0xd07854] MOV EDI,dword ptr [RAX] MOV RBX,R15 LEA R15,[R12 + 0x50] LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] MOV RSI,R15 CALL qword ptr [RAX + 0x40] MOV qword ptr [R12 + 0x90],RAX MOV qword ptr [R12 + 0x88],R15 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R12 + 0x78],XMM0 LEA RSI,[0xd08570] MOV RDI,R15 MOV R15,RBX CALL 0x00129320 MOV RAX,qword ptr [R12 + 0x20] MOV ECX,0x18 JMP 0x00194e8b LAB_00194e64: MOV EAX,0x2 JMP 0x00194eb9 LAB_00194e6b: MOV ECX,0x18 CMP R14D,0x2 JNZ 0x00194e8b ADD RAX,RBX MOV RCX,qword ptr [RBP + -0x48] AND ECX,0xfff SUB RAX,RCX MOV ECX,0x48 LAB_00194e8b: MOV qword ptr [R12 + RCX*0x1],RAX MOV qword ptr [R12 + 0x8],R15 MOV dword ptr [R12 + 0xe4],0x0 MOV dword ptr [R12 + 0xb0],R14D MOV RDI,R12 CALL 0x00194f03 XOR EAX,EAX JMP 0x00194eb9 LAB_00194eb4: MOV EAX,0x1 LAB_00194eb9: ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00194ecb: LEA R13,[RBP + -0x68] MOV RDI,RAX MOV ESI,R15D MOV RDX,R13 CALL 0x0012e8f8 MOV R13,qword ptr [R13] JMP 0x00194bb5 LAB_00194ee6: LEA RCX,[RBP + -0x68] MOV RDI,RAX MOV ESI,R15D MOV R15,RCX MOV RDX,RCX CALL 0x0012e950 MOV RAX,qword ptr [R15] JMP 0x00194cbc
int8 init_io_cache_ext(ulong *param_1,int param_2,ulong param_3,int param_4,ulong param_5,char param_6, ulong param_7) { pthread_mutex_t *__mutex; ulong *puVar1; int iVar2; long lVar3; ulong uVar4; int *piVar5; int8 uVar6; uint uVar7; uint uVar8; ulong uVar9; ulong uVar10; ulong uVar11; ulong uVar12; bool bVar13; int1 local_b8 [72]; ulong local_70; ulong local_68; ulong local_60; ulong local_58; ulong local_50; ulong *local_48; ulong local_40; int local_34; *(int *)((long)param_1 + 0xd4) = param_2; *(int4 *)(param_1 + 0x16) = 0; *param_1 = param_5; param_1[0x20] = 0; param_1[4] = 0; *(int4 *)(param_1 + 0x1c) = 0; param_1[0x1b] = 0; local_50 = param_5; local_34 = param_4; if (param_2 < 0) { uVar4 = param_7 | 0x40; if (_my_b_encr_read == 0) { uVar4 = param_7; } if (param_4 == 2) { param_7 = uVar4; } } else { lVar3 = (**(code **)(PSI_server + 0x158))(local_b8,param_2,9); if (lVar3 == 0) { uVar4 = my_tell(param_2,0); } else { init_io_cache_ext_cold_1(lVar3,param_2,&local_70); uVar4 = local_70; } if ((uVar4 != 0xffffffffffffffff) || (piVar5 = (int *)_my_thread_var(), *piVar5 != 0x1d)) { *(uint *)(param_1 + 0x1c) = (uint)(uVar4 != local_50); } } param_1[0x17] = 0; param_1[0x13] = 0; if ((param_3 == 0) && (param_3 = my_default_record_cache_size, my_default_record_cache_size == 0)) { uVar6 = 1; } else { bVar13 = param_6 == '\0'; uVar7 = (uint)!bVar13; uVar8 = (uint)bVar13; local_68 = 0xffffffffffffffff; local_48 = param_1; if ((local_34 == 1) || (local_34 == 3)) { uVar4 = param_7; if (-1 < (char)param_7) { local_58 = CONCAT71(local_58._1_7_,bVar13); local_60 = CONCAT71(local_60._1_7_,!bVar13); local_40 = param_7; lVar3 = (**(code **)(PSI_server + 0x158))(local_b8,param_2,8); if (lVar3 == 0) { local_70 = my_seek(param_2,0,2,0); } else { init_io_cache_ext_cold_2(lVar3,param_2,&local_70); } local_68 = local_70; if (local_70 <= local_50) { local_68 = local_50; } *(uint *)(local_48 + 0x1c) = (uint)(local_70 != local_50); uVar4 = (local_68 - local_50) + 0x1fff; if (uVar4 <= param_3) { param_3 = uVar4; } uVar7 = (uint)local_60 & 0xff; uVar8 = (uint)local_58 & 0xff; uVar4 = local_40; } } else { uVar4 = param_7; if (local_34 == 5) { uVar4 = param_1[4]; LAB_00194dc1: iVar2 = local_34; puVar1 = local_48; uVar9 = local_68; local_48[0x1d] = param_3; local_48[0x1e] = param_3; local_48[0x1f] = (ulong)((uint)param_7 & 0xffffff79); local_48[8] = uVar4; local_48[2] = uVar4; local_48[5] = uVar4; if (local_34 == 3) { uVar4 = local_48[6]; local_48[8] = uVar4; local_48[7] = uVar4; local_48[9] = param_3 + uVar4; __mutex = (pthread_mutex_t *)(local_48 + 10); uVar4 = (**(code **)(PSI_server + 0x40))(key_IO_CACHE_append_buffer_lock,__mutex); puVar1[0x12] = uVar4; puVar1[0x11] = (ulong)__mutex; puVar1[0xf] = 0; puVar1[0x10] = 0; pthread_mutex_init(__mutex,(pthread_mutexattr_t *)&my_fast_mutexattr); uVar4 = puVar1[4]; lVar3 = 0x18; } else { lVar3 = 0x18; if (local_34 == 2) { uVar4 = (uVar4 + param_3) - (ulong)((uint)local_50 & 0xfff); lVar3 = 0x48; } } *(ulong *)((long)puVar1 + lVar3) = uVar4; puVar1[1] = uVar9; *(int4 *)((long)puVar1 + 0xe4) = 0; *(int *)(puVar1 + 0x16) = iVar2; init_functions(puVar1); return 0; } } local_40 = uVar4; local_60 = (ulong)(uVar8 << 0xd) | 0xffffffffffffc000; uVar9 = (ulong)(uVar7 << 0xd) + 0x2000; uVar10 = (uVar9 + param_3) - 1; uVar11 = (ulong)((uint)local_40 & 0xffffff4f); local_58 = uVar11 + 0x10; while( true ) { uVar10 = uVar10 & local_60; param_3 = uVar9; if (uVar9 < uVar10) { param_3 = uVar10; } if (local_34 == 3) { uVar12 = param_3 * 2; } else { uVar12 = param_3; if ((local_40 & 0x40) != 0) { uVar12 = param_3 * 2 + 0x48; } } uVar4 = local_58; if (uVar9 < uVar10) { uVar4 = uVar11; } uVar4 = my_malloc(key_memory_IO_CACHE,uVar12,uVar4); local_48[4] = uVar4; if (uVar4 != 0) { uVar9 = 0; if (local_34 == 3) { uVar9 = param_3; } local_48[6] = uVar9 + uVar4; local_48[0x20] = uVar12; param_7 = local_40; goto LAB_00194dc1; } if (uVar10 <= uVar9) break; uVar10 = param_3 * 3 >> 2; } uVar6 = 2; } return uVar6; }
34,096
testing::internal::UniversalPrinter<int>::Print(int const&, std::ostream*)
AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/gtest-printers.h
static void Print(const T& value, ::std::ostream* os) { // By default, ::testing::internal::PrintTo() is used for printing // the value. // // Thanks to Koenig look-up, if T is a class and has its own // PrintTo() function defined in its namespace, that function will // be visible here. Since it is more specific than the generic ones // in ::testing::internal, it will be picked by the compiler in the // following statement - exactly what we want. PrintTo(value, os); }
O0
c
testing::internal::UniversalPrinter<int>::Print(int const&, std::ostream*): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq %rsi, 0x8(%rsp) movq 0x10(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0x21930 addq $0x18, %rsp retq nopw %cs:(%rax,%rax) nopl (%rax)
_ZN7testing8internal16UniversalPrinterIiE5PrintERKiPSo: sub rsp, 18h mov [rsp+18h+var_8], rdi mov [rsp+18h+var_10], rsi mov rdi, [rsp+18h+var_8] mov rsi, [rsp+18h+var_10] call _ZN7testing8internal7PrintToIiEEvRKT_PSo; testing::internal::PrintTo<int>(int const&,std::ostream *) add rsp, 18h retn
long long testing::internal::UniversalPrinter<int>::Print(long long a1, long long a2) { return testing::internal::PrintTo<int>(a1, a2); }
Print: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV qword ptr [RSP + 0x8],RSI MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x8] CALL 0x00121930 ADD RSP,0x18 RET
/* testing::internal::UniversalPrinter<int>::Print(int const&, std::ostream*) */ void testing::internal::UniversalPrinter<int>::Print(int *param_1,ostream *param_2) { PrintTo<int>(param_1,param_2); return; }
34,097
LefDefParser::defiPath::addVia(char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiPath.cpp
void defiPath::addVia(const char* l) { int len = strlen(l)+1; if (numUsed_ == numAllocated_) bumpSize(numAllocated_ * 2); keys_[numUsed_] = 'V'; data_[numUsed_] = malloc(len); strcpy((char*)(data_[numUsed_]), defData->DEFCASE(l)); (numUsed_)++; }
O0
cpp
LefDefParser::defiPath::addVia(char const*): subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x18(%rsp), %rdi callq 0x70e0 movq 0x8(%rsp), %rcx addq $0x1, %rax movl %eax, 0x14(%rsp) movl 0x10(%rcx), %eax cmpl 0x14(%rcx), %eax jne 0x1b3e6 movq 0x8(%rsp), %rdi movl 0x14(%rdi), %esi shll %esi callq 0x1a7d0 movq 0x8(%rsp), %rcx movq (%rcx), %rax movslq 0x10(%rcx), %rcx movl $0x56, (%rax,%rcx,4) movslq 0x14(%rsp), %rdi callq 0x72d0 movq %rax, %rsi movq 0x8(%rsp), %rax movq 0x8(%rax), %rcx movslq 0x10(%rax), %rdx movq %rsi, (%rcx,%rdx,8) movq 0x8(%rax), %rcx movslq 0x10(%rax), %rdx movq (%rcx,%rdx,8), %rcx movq %rcx, (%rsp) movq 0x40(%rax), %rdi movq 0x18(%rsp), %rsi callq 0x27ed0 movq (%rsp), %rdi movq %rax, %rsi callq 0x7220 movq 0x8(%rsp), %rax movl 0x10(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x10(%rax) addq $0x28, %rsp retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser8defiPath6addViaEPKc: sub rsp, 28h mov [rsp+28h+var_8], rdi mov [rsp+28h+var_10], rsi mov rax, [rsp+28h+var_8] mov [rsp+28h+var_20], rax mov rdi, [rsp+28h+var_10] call _strlen mov rcx, [rsp+28h+var_20] add rax, 1 mov [rsp+28h+var_14], eax mov eax, [rcx+10h] cmp eax, [rcx+14h] jnz short loc_1B3E6 mov rdi, [rsp+28h+var_20]; this mov esi, [rdi+14h] shl esi, 1; int call _ZN12LefDefParser8defiPath8bumpSizeEi; LefDefParser::defiPath::bumpSize(int) loc_1B3E6: mov rcx, [rsp+28h+var_20] mov rax, [rcx] movsxd rcx, dword ptr [rcx+10h] mov dword ptr [rax+rcx*4], 56h ; 'V' movsxd rdi, [rsp+28h+var_14] call _malloc mov rsi, rax mov rax, [rsp+28h+var_20] mov rcx, [rax+8] movsxd rdx, dword ptr [rax+10h] mov [rcx+rdx*8], rsi mov rcx, [rax+8] movsxd rdx, dword ptr [rax+10h] mov rcx, [rcx+rdx*8] mov [rsp+28h+var_28], rcx mov rdi, [rax+40h]; this mov rsi, [rsp+28h+var_10]; char * call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*) mov rdi, [rsp+28h+var_28] mov rsi, rax call _strcpy mov rax, [rsp+28h+var_20] mov ecx, [rax+10h] add ecx, 1 mov [rax+10h], ecx add rsp, 28h retn
LefDefParser::defrData ** LefDefParser::defiPath::addVia(LefDefParser::defrData **this, const char *a2) { long long v2; // rax long long v3; // rdx LefDefParser::defrData **result; // rax long long v5; // [rsp+0h] [rbp-28h] int v6; // [rsp+14h] [rbp-14h] v6 = strlen(a2) + 1; if ( *((_DWORD *)this + 4) == *((_DWORD *)this + 5) ) LefDefParser::defiPath::bumpSize((LefDefParser::defiPath *)this, 2 * *((_DWORD *)this + 5)); *((_DWORD *)*this + *((int *)this + 4)) = 86; *((_QWORD *)this[1] + *((int *)this + 4)) = malloc(v6); v5 = *((_QWORD *)this[1] + *((int *)this + 4)); v2 = LefDefParser::defrData::DEFCASE(this[8], a2); strcpy(v5, v2, v3); result = this; ++*((_DWORD *)this + 4); return result; }
addVia: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x18] CALL 0x001070e0 MOV RCX,qword ptr [RSP + 0x8] ADD RAX,0x1 MOV dword ptr [RSP + 0x14],EAX MOV EAX,dword ptr [RCX + 0x10] CMP EAX,dword ptr [RCX + 0x14] JNZ 0x0011b3e6 MOV RDI,qword ptr [RSP + 0x8] MOV ESI,dword ptr [RDI + 0x14] SHL ESI,0x1 CALL 0x0011a7d0 LAB_0011b3e6: MOV RCX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RCX] MOVSXD RCX,dword ptr [RCX + 0x10] MOV dword ptr [RAX + RCX*0x4],0x56 MOVSXD RDI,dword ptr [RSP + 0x14] CALL 0x001072d0 MOV RSI,RAX MOV RAX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RAX + 0x8] MOVSXD RDX,dword ptr [RAX + 0x10] MOV qword ptr [RCX + RDX*0x8],RSI MOV RCX,qword ptr [RAX + 0x8] MOVSXD RDX,dword ptr [RAX + 0x10] MOV RCX,qword ptr [RCX + RDX*0x8] MOV qword ptr [RSP],RCX MOV RDI,qword ptr [RAX + 0x40] MOV RSI,qword ptr [RSP + 0x18] CALL 0x00127ed0 MOV RDI,qword ptr [RSP] MOV RSI,RAX CALL 0x00107220 MOV RAX,qword ptr [RSP + 0x8] MOV ECX,dword ptr [RAX + 0x10] ADD ECX,0x1 MOV dword ptr [RAX + 0x10],ECX ADD RSP,0x28 RET
/* LefDefParser::defiPath::addVia(char const*) */ void __thiscall LefDefParser::defiPath::addVia(defiPath *this,char *param_1) { char *__dest; size_t sVar1; void *pvVar2; char *__src; sVar1 = strlen(param_1); if (*(int *)(this + 0x10) == *(int *)(this + 0x14)) { bumpSize(this,*(int *)(this + 0x14) << 1); } *(int4 *)(*(long *)this + (long)*(int *)(this + 0x10) * 4) = 0x56; pvVar2 = malloc((long)((int)sVar1 + 1)); *(void **)(*(long *)(this + 8) + (long)*(int *)(this + 0x10) * 8) = pvVar2; __dest = *(char **)(*(long *)(this + 8) + (long)*(int *)(this + 0x10) * 8); __src = (char *)defrData::DEFCASE(*(defrData **)(this + 0x40),param_1); strcpy(__dest,__src); *(int *)(this + 0x10) = *(int *)(this + 0x10) + 1; return; }
34,098
my_copy_fix_mb
eloqsql/strings/ctype-mb.c
size_t my_copy_fix_mb(CHARSET_INFO *cs, char *dst, size_t dst_length, const char *src, size_t src_length, size_t nchars, MY_STRCOPY_STATUS *status) { size_t well_formed_nchars; size_t well_formed_length; size_t fixed_length; size_t min_length= MY_MIN(src_length, dst_length); well_formed_nchars= my_ci_well_formed_char_length(cs, src, src + min_length, nchars, status); DBUG_ASSERT(well_formed_nchars <= nchars); well_formed_length= status->m_source_end_pos - src; if (well_formed_length) memmove(dst, src, well_formed_length); if (!status->m_well_formed_error_pos) return well_formed_length; fixed_length= my_append_fix_badly_formed_tail(cs, dst + well_formed_length, dst + dst_length, src + well_formed_length, src + src_length, nchars - well_formed_nchars, status); return well_formed_length + fixed_length; }
O3
c
my_copy_fix_mb: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %r13 movq 0x10(%rbp), %rbx cmpq %rdx, %r8 movq %r8, -0x58(%rbp) cmovbq %r8, %rdx addq %rcx, %rdx movq 0xb8(%rdi), %rax movq %rdi, -0x40(%rbp) movq %rcx, %rsi movq %r9, -0x30(%rbp) movq %r9, %rcx movq %rbx, %r8 callq *0xc8(%rax) movq %rax, %r14 movq (%rbx), %rbx subq %r15, %rbx je 0xb331d movq %r13, %rdi movq %r15, %rsi movq %rbx, %rdx callq 0x29120 movq 0x10(%rbp), %rax cmpq $0x0, 0x8(%rax) je 0xb340c leaq (%rbx,%r13), %rax movq %rbx, -0x50(%rbp) addq %r15, %rbx movq -0x30(%rbp), %rcx cmpq %r14, %rcx movq %rax, -0x48(%rbp) je 0xb33f2 addq %r12, %r13 movq %r13, -0x38(%rbp) addq -0x58(%rbp), %r15 subq %rcx, %r14 movq %rax, %r13 movq %r15, -0x30(%rbp) movq -0x40(%rbp), %rdi movq 0xb8(%rdi), %rax movq %rbx, %rsi movq %r15, %rdx callq *0xc0(%rax) testl %eax, %eax jle 0xb3398 movl %eax, %r15d leaq (%r15,%r13), %r12 cmpq -0x38(%rbp), %r12 ja 0xb33f7 movq %r13, %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x29080 movq %r12, %r13 jmp 0xb33e0 setne %al cmpq %r15, %rbx setae %cl testb %al, %cl jne 0xb33f7 movq 0x10(%rbp), %rax cmpq $0x0, 0x8(%rax) jne 0xb33b4 movq %rbx, 0x8(%rax) movq -0x40(%rbp), %rdi movq 0xb8(%rdi), %rax movl $0x3f, %esi movq %r13, %rdx movq -0x38(%rbp), %rcx callq *0x30(%rax) testl %eax, %eax jle 0xb33f7 movl %eax, %eax addq %rax, %r13 movl $0x1, %r15d movq %r13, %r12 addq %r15, %rbx incq %r14 movq -0x30(%rbp), %r15 jne 0xb335d jmp 0xb33fa movq %rax, %r12 jmp 0xb33fa movq %r13, %r12 movq 0x10(%rbp), %rax movq %rbx, (%rax) movq -0x50(%rbp), %rbx subq -0x48(%rbp), %rbx addq %r12, %rbx movq %rbx, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_copy_fix_mb: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r15, rcx mov r12, rdx mov r13, rsi mov rbx, [rbp+arg_0] cmp r8, rdx mov [rbp+var_58], r8 cmovb rdx, r8 add rdx, rcx mov rax, [rdi+0B8h] mov [rbp+var_40], rdi mov rsi, rcx mov [rbp+var_30], r9 mov rcx, r9 mov r8, rbx call qword ptr [rax+0C8h] mov r14, rax mov rbx, [rbx] sub rbx, r15 jz short loc_B331D mov rdi, r13 mov rsi, r15 mov rdx, rbx call _memmove loc_B331D: mov rax, [rbp+arg_0] cmp qword ptr [rax+8], 0 jz loc_B340C lea rax, [rbx+r13] mov [rbp+var_50], rbx add rbx, r15 mov rcx, [rbp+var_30] cmp rcx, r14 mov [rbp+var_48], rax jz loc_B33F2 add r13, r12 mov [rbp+var_38], r13 add r15, [rbp+var_58] sub r14, rcx mov r13, rax mov [rbp+var_30], r15 loc_B335D: mov rdi, [rbp+var_40] mov rax, [rdi+0B8h] mov rsi, rbx mov rdx, r15 call qword ptr [rax+0C0h] test eax, eax jle short loc_B3398 mov r15d, eax lea r12, [r15+r13] cmp r12, [rbp+var_38] ja short loc_B33F7 mov rdi, r13 mov rsi, rbx mov rdx, r15 call _memcpy mov r13, r12 jmp short loc_B33E0 loc_B3398: setnz al cmp rbx, r15 setnb cl test cl, al jnz short loc_B33F7 mov rax, [rbp+arg_0] cmp qword ptr [rax+8], 0 jnz short loc_B33B4 mov [rax+8], rbx loc_B33B4: mov rdi, [rbp+var_40] mov rax, [rdi+0B8h] mov esi, 3Fh ; '?' mov rdx, r13 mov rcx, [rbp+var_38] call qword ptr [rax+30h] test eax, eax jle short loc_B33F7 mov eax, eax add r13, rax mov r15d, 1 mov r12, r13 loc_B33E0: add rbx, r15 inc r14 mov r15, [rbp+var_30] jnz loc_B335D jmp short loc_B33FA loc_B33F2: mov r12, rax jmp short loc_B33FA loc_B33F7: mov r12, r13 loc_B33FA: mov rax, [rbp+arg_0] mov [rax], rbx mov rbx, [rbp+var_50] sub rbx, [rbp+var_48] add rbx, r12 loc_B340C: mov rax, rbx add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long my_copy_fix_mb( long long a1, long long a2, unsigned long long a3, long long a4, unsigned long long a5, long long a6, unsigned long long *a7) { unsigned long long v8; // r12 long long v9; // r14 long long v10; // rbx unsigned long long v11; // rax unsigned long long v12; // rbx unsigned long long v13; // r15 long long v14; // r14 long long v15; // r13 unsigned int v16; // eax long long v17; // r15 unsigned long long v18; // r12 int v19; // eax long long v22; // [rsp+10h] [rbp-50h] unsigned long long v23; // [rsp+18h] [rbp-48h] unsigned long long v24; // [rsp+28h] [rbp-38h] unsigned long long v26; // [rsp+30h] [rbp-30h] v8 = a3; if ( a5 < a3 ) a3 = a5; v9 = (*(long long ( **)(long long, long long, unsigned long long, long long, unsigned long long *))(*(_QWORD *)(a1 + 184) + 200LL))( a1, a4, a4 + a3, a6, a7); v10 = *a7 - a4; if ( v10 ) memmove(a2, a4, v10); if ( !a7[1] ) return v10; v11 = v10 + a2; v22 = v10; v12 = a4 + v10; v23 = v11; if ( a6 == v9 ) { v18 = v11; goto LABEL_20; } v24 = v8 + a2; v13 = a5 + a4; v14 = v9 - a6; v15 = v11; v26 = v13; while ( 1 ) { v16 = (*(long long ( **)(long long, unsigned long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 192LL))( a1, v12, v13); if ( (int)v16 <= 0 ) break; v17 = v16; v18 = v16 + v15; if ( v18 > v24 ) goto LABEL_19; memcpy(v15, v12, v16); v15 = v18; LABEL_16: v12 += v17; ++v14; v13 = v26; if ( !v14 ) goto LABEL_20; } if ( v16 == 0 || v12 < v13 ) { if ( !a7[1] ) a7[1] = v12; v19 = (*(long long ( **)(long long, long long, long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))( a1, 63LL, v15, v24); if ( v19 > 0 ) { v15 += (unsigned int)v19; v17 = 1LL; v18 = v15; goto LABEL_16; } } LABEL_19: v18 = v15; LABEL_20: *a7 = v12; return v18 + v22 - v23; }
my_copy_fix_mb: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R15,RCX MOV R12,RDX MOV R13,RSI MOV RBX,qword ptr [RBP + 0x10] CMP R8,RDX MOV qword ptr [RBP + -0x58],R8 CMOVC RDX,R8 ADD RDX,RCX MOV RAX,qword ptr [RDI + 0xb8] MOV qword ptr [RBP + -0x40],RDI MOV RSI,RCX MOV qword ptr [RBP + -0x30],R9 MOV RCX,R9 MOV R8,RBX CALL qword ptr [RAX + 0xc8] MOV R14,RAX MOV RBX,qword ptr [RBX] SUB RBX,R15 JZ 0x001b331d MOV RDI,R13 MOV RSI,R15 MOV RDX,RBX CALL 0x00129120 LAB_001b331d: MOV RAX,qword ptr [RBP + 0x10] CMP qword ptr [RAX + 0x8],0x0 JZ 0x001b340c LEA RAX,[RBX + R13*0x1] MOV qword ptr [RBP + -0x50],RBX ADD RBX,R15 MOV RCX,qword ptr [RBP + -0x30] CMP RCX,R14 MOV qword ptr [RBP + -0x48],RAX JZ 0x001b33f2 ADD R13,R12 MOV qword ptr [RBP + -0x38],R13 ADD R15,qword ptr [RBP + -0x58] SUB R14,RCX MOV R13,RAX MOV qword ptr [RBP + -0x30],R15 LAB_001b335d: MOV RDI,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RDI + 0xb8] MOV RSI,RBX MOV RDX,R15 CALL qword ptr [RAX + 0xc0] TEST EAX,EAX JLE 0x001b3398 MOV R15D,EAX LEA R12,[R15 + R13*0x1] CMP R12,qword ptr [RBP + -0x38] JA 0x001b33f7 MOV RDI,R13 MOV RSI,RBX MOV RDX,R15 CALL 0x00129080 MOV R13,R12 JMP 0x001b33e0 LAB_001b3398: SETNZ AL CMP RBX,R15 SETNC CL TEST CL,AL JNZ 0x001b33f7 MOV RAX,qword ptr [RBP + 0x10] CMP qword ptr [RAX + 0x8],0x0 JNZ 0x001b33b4 MOV qword ptr [RAX + 0x8],RBX LAB_001b33b4: MOV RDI,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RDI + 0xb8] MOV ESI,0x3f MOV RDX,R13 MOV RCX,qword ptr [RBP + -0x38] CALL qword ptr [RAX + 0x30] TEST EAX,EAX JLE 0x001b33f7 MOV EAX,EAX ADD R13,RAX MOV R15D,0x1 MOV R12,R13 LAB_001b33e0: ADD RBX,R15 INC R14 MOV R15,qword ptr [RBP + -0x30] JNZ 0x001b335d JMP 0x001b33fa LAB_001b33f2: MOV R12,RAX JMP 0x001b33fa LAB_001b33f7: MOV R12,R13 LAB_001b33fa: MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RAX],RBX MOV RBX,qword ptr [RBP + -0x50] SUB RBX,qword ptr [RBP + -0x48] ADD RBX,R12 LAB_001b340c: MOV RAX,RBX ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
size_t my_copy_fix_mb(long param_1,void *param_2,ulong param_3,void *param_4,ulong param_5, long param_6,long *param_7) { void *pvVar1; uint uVar2; long lVar3; size_t __n; void *__src; void *__dest; ulong uVar4; uVar4 = param_3; if (param_5 < param_3) { uVar4 = param_5; } lVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 200)) (param_1,param_4,uVar4 + (long)param_4,param_6,param_7); __n = *param_7 - (long)param_4; if (__n != 0) { memmove(param_2,param_4,__n); } if (param_7[1] != 0) { pvVar1 = (void *)(__n + (long)param_2); __src = (void *)(__n + (long)param_4); __dest = pvVar1; if (param_6 != lVar3) { lVar3 = lVar3 - param_6; do { uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0)) (param_1,__src,(void *)((long)param_4 + param_5)); if ((int)uVar2 < 1) { if ((void *)((long)param_4 + param_5) <= __src && uVar2 != 0) break; if (param_7[1] == 0) { param_7[1] = (long)__src; } uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30)) (param_1,0x3f,__dest,(void *)((long)param_2 + param_3)); if ((int)uVar2 < 1) break; __dest = (void *)((long)__dest + (ulong)uVar2); uVar4 = 1; } else { uVar4 = (ulong)uVar2; if ((void *)((long)param_2 + param_3) < (void *)(uVar4 + (long)__dest)) break; memcpy(__dest,__src,uVar4); __dest = (void *)(uVar4 + (long)__dest); } __src = (void *)((long)__src + uVar4); lVar3 = lVar3 + 1; } while (lVar3 != 0); } *param_7 = (long)__src; __n = (__n - (long)pvVar1) + (long)__dest; } return __n; }
34,099
ggml_sub_impl
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
static struct ggml_tensor * ggml_sub_impl( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, bool inplace) { GGML_ASSERT(ggml_can_repeat(b, a)); struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); result->op = GGML_OP_SUB; result->src[0] = a; result->src[1] = b; return result; }
O1
c
ggml_sub_impl: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %ecx, %ebp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movq %rdx, %rdi callq 0x185d0 testb %al, %al je 0x1c38d testb %bpl, %bpl je 0x1c353 movq %r15, %rdi movq %r14, %rsi callq 0x17260 jmp 0x1c36d movl (%r14), %esi leaq 0x10(%r14), %rcx movq %r15, %rdi movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x1b871 movl $0x5, 0x50(%rax) movq %r14, 0x98(%rax) movq %rbx, 0xa0(%rax) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x301db(%rip), %rdi # 0x4c56f leaq 0x30226(%rip), %rdx # 0x4c5c1 leaq 0x3043e(%rip), %rcx # 0x4c7e0 movl $0x7c6, %esi # imm = 0x7C6 xorl %eax, %eax callq 0x18ce0
ggml_sub_impl: push rbp push r15 push r14 push rbx push rax mov ebp, ecx mov rbx, rdx mov r14, rsi mov r15, rdi mov rdi, rdx call _ggml_can_repeat test al, al jz short loc_1C38D test bpl, bpl jz short loc_1C353 mov rdi, r15 mov rsi, r14 call _ggml_view_tensor jmp short loc_1C36D loc_1C353: mov esi, [r14] lea rcx, [r14+10h] mov rdi, r15 mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl loc_1C36D: mov dword ptr [rax+50h], 5 mov [rax+98h], r14 mov [rax+0A0h], rbx add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_1C38D: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlCanRepeatB; "ggml_can_repeat(b, a)" mov esi, 7C6h xor eax, eax call _ggml_abort
long long ggml_sub_impl(long long a1, long long *a2, _QWORD *a3, char a4, double a5) { int v7; // r8d int v8; // r9d long long result; // rax if ( !ggml_can_repeat(a3, a2) ) ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 1990, (unsigned int)"GGML_ASSERT(%s) failed", (unsigned int)"ggml_can_repeat(b, a)", v7, v8); if ( a4 ) result = ggml_view_tensor(a1, (long long)a2, a5); else result = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4, a2 + 2, 0LL, 0LL, a5); *(_DWORD *)(result + 80) = 5; *(_QWORD *)(result + 152) = a2; *(_QWORD *)(result + 160) = a3; return result; }
ggml_sub_impl: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV EBP,ECX MOV RBX,RDX MOV R14,RSI MOV R15,RDI MOV RDI,RDX CALL 0x001185d0 TEST AL,AL JZ 0x0011c38d TEST BPL,BPL JZ 0x0011c353 MOV RDI,R15 MOV RSI,R14 CALL 0x00117260 JMP 0x0011c36d LAB_0011c353: MOV ESI,dword ptr [R14] LEA RCX,[R14 + 0x10] MOV RDI,R15 MOV EDX,0x4 XOR R8D,R8D XOR R9D,R9D CALL 0x0011b871 LAB_0011c36d: MOV dword ptr [RAX + 0x50],0x5 MOV qword ptr [RAX + 0x98],R14 MOV qword ptr [RAX + 0xa0],RBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_0011c38d: LEA RDI,[0x14c56f] LEA RDX,[0x14c5c1] LEA RCX,[0x14c7e0] MOV ESI,0x7c6 XOR EAX,EAX CALL 0x00118ce0
void ggml_sub_impl(int8 param_1,int4 *param_2,int8 param_3,char param_4) { char cVar1; long lVar2; cVar1 = ggml_can_repeat(param_3); if (cVar1 != '\0') { if (param_4 == '\0') { lVar2 = ggml_new_tensor_impl(param_1,*param_2,4,param_2 + 4,0,0); } else { lVar2 = ggml_view_tensor(param_1,param_2); } *(int4 *)(lVar2 + 0x50) = 5; *(int4 **)(lVar2 + 0x98) = param_2; *(int8 *)(lVar2 + 0xa0) = param_3; return; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 0x7c6,"GGML_ASSERT(%s) failed","ggml_can_repeat(b, a)"); }