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
17,600
lunasvg::SVGPreserveAspectRatio::getClipRect(lunasvg::Rect const&, lunasvg::Size const&) const
dmazzella[P]pylunasvg/lunasvg/source/graphics.h
constexpr bool isEmpty() const { return w <= 0.f || h <= 0.f; }
O1
c
lunasvg::SVGPreserveAspectRatio::getClipRect(lunasvg::Rect const&, lunasvg::Size const&) const: movss 0x8(%rsi), %xmm7 xorps %xmm0, %xmm0 ucomiss %xmm7, %xmm0 jae 0x2039b movss 0xc(%rsi), %xmm5 ucomiss %xmm5, %xmm0 jae 0x2039b movss (%rdx), %xmm1 ucomiss %xmm1, %xmm0 jae 0x2039b movss 0x4(%rdx), %xmm2 ucomiss %xmm2, %xmm0 jae 0x2039b movaps %xmm1, %xmm3 divss %xmm7, %xmm3 movaps %xmm2, %xmm6 divss %xmm5, %xmm6 movl 0xc(%rdi), %eax testl %eax, %eax je 0x202d9 cmpl $0x0, 0x10(%rdi) je 0x202e7 maxss %xmm3, %xmm6 jmp 0x202eb movss (%rsi), %xmm0 movss 0x4(%rsi), %xmm4 jmp 0x2038c minss %xmm3, %xmm6 movaps %xmm6, %xmm3 movss (%rsi), %xmm0 movss 0x4(%rsi), %xmm4 movaps 0x22e02(%rip), %xmm6 # 0x43100 xorps %xmm6, %xmm0 mulss %xmm3, %xmm0 xorps %xmm6, %xmm4 cmpl $0x9, %eax ja 0x20347 mulss %xmm3, %xmm7 movl $0x124, %ecx # imm = 0x124 btl %eax, %ecx jb 0x20330 movl $0x248, %ecx # imm = 0x248 btl %eax, %ecx jae 0x20347 movaps %xmm1, %xmm8 subss %xmm7, %xmm8 jmp 0x20342 movaps %xmm1, %xmm8 subss %xmm7, %xmm8 mulss 0x2350a(%rip), %xmm8 # 0x4384c addss %xmm8, %xmm0 mulss %xmm3, %xmm4 mulss %xmm3, %xmm5 leal -0x7(%rax), %ecx cmpl $0x3, %ecx jb 0x20370 addl $-0x4, %eax cmpl $0x2, %eax ja 0x2037b movaps %xmm2, %xmm7 subss %xmm5, %xmm7 mulss 0x234de(%rip), %xmm7 # 0x4384c jmp 0x20377 movaps %xmm2, %xmm7 subss %xmm5, %xmm7 addss %xmm7, %xmm4 xorps %xmm6, %xmm0 divss %xmm3, %xmm0 xorps %xmm6, %xmm4 divss %xmm3, %xmm4 movaps %xmm3, %xmm6 unpcklps %xmm4, %xmm0 # xmm0 = xmm0[0],xmm4[0],xmm0[1],xmm4[1] divss %xmm3, %xmm1 divss %xmm6, %xmm2 unpcklps %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1] retq pushq %rax leaq 0x23f17(%rip), %rdi # 0x442ba leaq 0x23f42(%rip), %rsi # 0x442ec leaq 0x23f98(%rip), %rcx # 0x44349 movl $0x20d, %edx # imm = 0x20D callq 0xa200 nop
_ZNK7lunasvg22SVGPreserveAspectRatio11getClipRectERKNS_4RectERKNS_4SizeE: movss xmm7, dword ptr [rsi+8] xorps xmm0, xmm0 ucomiss xmm0, xmm7 jnb loc_2039B movss xmm5, dword ptr [rsi+0Ch] ucomiss xmm0, xmm5 jnb loc_2039B movss xmm1, dword ptr [rdx] ucomiss xmm0, xmm1 jnb loc_2039B movss xmm2, dword ptr [rdx+4] ucomiss xmm0, xmm2 jnb loc_2039B movaps xmm3, xmm1 divss xmm3, xmm7 movaps xmm6, xmm2 divss xmm6, xmm5 mov eax, [rdi+0Ch] test eax, eax jz short loc_202D9 cmp dword ptr [rdi+10h], 0 jz short loc_202E7 maxss xmm6, xmm3 jmp short loc_202EB loc_202D9: movss xmm0, dword ptr [rsi] movss xmm4, dword ptr [rsi+4] jmp loc_2038C loc_202E7: minss xmm6, xmm3 loc_202EB: movaps xmm3, xmm6 movss xmm0, dword ptr [rsi] movss xmm4, dword ptr [rsi+4] movaps xmm6, cs:xmmword_43100 xorps xmm0, xmm6 mulss xmm0, xmm3 xorps xmm4, xmm6 cmp eax, 9 ja short loc_20347 mulss xmm7, xmm3 mov ecx, 124h bt ecx, eax jb short loc_20330 mov ecx, 248h bt ecx, eax jnb short loc_20347 movaps xmm8, xmm1 subss xmm8, xmm7 jmp short loc_20342 loc_20330: movaps xmm8, xmm1 subss xmm8, xmm7 mulss xmm8, cs:dword_4384C loc_20342: addss xmm0, xmm8 loc_20347: mulss xmm4, xmm3 mulss xmm5, xmm3 lea ecx, [rax-7] cmp ecx, 3 jb short loc_20370 add eax, 0FFFFFFFCh cmp eax, 2 ja short loc_2037B movaps xmm7, xmm2 subss xmm7, xmm5 mulss xmm7, cs:dword_4384C jmp short loc_20377 loc_20370: movaps xmm7, xmm2 subss xmm7, xmm5 loc_20377: addss xmm4, xmm7 loc_2037B: xorps xmm0, xmm6 divss xmm0, xmm3 xorps xmm4, xmm6 divss xmm4, xmm3 movaps xmm6, xmm3 loc_2038C: unpcklps xmm0, xmm4 divss xmm1, xmm3 divss xmm2, xmm6 unpcklps xmm1, xmm2 retn loc_2039B: push rax lea rdi, aViewboxrectIse; "!viewBoxRect.isEmpty() && !viewportSize"... lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rcx, aRectLunasvgSvg; "Rect lunasvg::SVGPreserveAspectRatio::g"... mov edx, 20Dh call ___assert_fail
__m128 lunasvg::SVGPreserveAspectRatio::getClipRect(long long a1, float *a2, float *a3) { float v3; // xmm7_4 float v4; // xmm5_4 float v5; // xmm1_4 float v6; // xmm2_4 float v7; // xmm3_4 float v8; // xmm6_4 unsigned int v9; // eax float v10; // xmm6_4 __m128 v11; // xmm0 __m128 v12; // xmm4 __m128 v13; // xmm0 __m128 v14; // xmm4 float v15; // xmm7_4 int v16; // ecx int v17; // ecx float v18; // xmm8_4 float v19; // xmm5_4 float v20; // xmm7_4 v3 = a2[2]; if ( v3 <= 0.0 || (v4 = a2[3], v4 <= 0.0) || (v5 = *a3, *a3 <= 0.0) || (v6 = a3[1], v6 <= 0.0) ) __assert_fail( "!viewBoxRect.isEmpty() && !viewportSize.isEmpty()", "/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/source/svgproperty.cpp", 525LL, "Rect lunasvg::SVGPreserveAspectRatio::getClipRect(const Rect &, const Size &) const"); v7 = v5 / v3; v8 = v6 / v4; v9 = *(_DWORD *)(a1 + 12); if ( v9 ) { if ( *(_DWORD *)(a1 + 16) ) v10 = fmaxf(v8, v7); else v10 = fminf(v8, v7); v13 = _mm_xor_ps((__m128)*(unsigned int *)a2, (__m128)xmmword_43100); v13.m128_f32[0] = v13.m128_f32[0] * v10; v14 = _mm_xor_ps((__m128)*((unsigned int *)a2 + 1), (__m128)xmmword_43100); if ( v9 <= 9 ) { v15 = v3 * v10; v16 = 292; if ( _bittest(&v16, v9) ) { v18 = (float)(v5 - v15) * 0.5; } else { v17 = 584; if ( !_bittest(&v17, v9) ) goto LABEL_16; v18 = v5 - v15; } v13.m128_f32[0] = v13.m128_f32[0] + v18; } LABEL_16: v14.m128_f32[0] = v14.m128_f32[0] * v10; v19 = v4 * v10; if ( v9 - 7 < 3 ) { v20 = v6 - v19; } else { if ( v9 - 4 > 2 ) { LABEL_21: v11 = _mm_xor_ps(v13, (__m128)xmmword_43100); v11.m128_f32[0] = v11.m128_f32[0] / v10; v12 = _mm_xor_ps(v14, (__m128)xmmword_43100); v12.m128_f32[0] = v12.m128_f32[0] / v10; return _mm_unpacklo_ps(v11, v12); } v20 = (float)(v6 - v19) * 0.5; } v14.m128_f32[0] = v14.m128_f32[0] + v20; goto LABEL_21; } v11 = (__m128)*(unsigned int *)a2; v12 = (__m128)*((unsigned int *)a2 + 1); return _mm_unpacklo_ps(v11, v12); }
getClipRect: MOVSS XMM7,dword ptr [RSI + 0x8] XORPS XMM0,XMM0 UCOMISS XMM0,XMM7 JNC 0x0012039b MOVSS XMM5,dword ptr [RSI + 0xc] UCOMISS XMM0,XMM5 JNC 0x0012039b MOVSS XMM1,dword ptr [RDX] UCOMISS XMM0,XMM1 JNC 0x0012039b MOVSS XMM2,dword ptr [RDX + 0x4] UCOMISS XMM0,XMM2 JNC 0x0012039b MOVAPS XMM3,XMM1 DIVSS XMM3,XMM7 MOVAPS XMM6,XMM2 DIVSS XMM6,XMM5 MOV EAX,dword ptr [RDI + 0xc] TEST EAX,EAX JZ 0x001202d9 CMP dword ptr [RDI + 0x10],0x0 JZ 0x001202e7 MAXSS XMM6,XMM3 JMP 0x001202eb LAB_001202d9: MOVSS XMM0,dword ptr [RSI] MOVSS XMM4,dword ptr [RSI + 0x4] JMP 0x0012038c LAB_001202e7: MINSS XMM6,XMM3 LAB_001202eb: MOVAPS XMM3,XMM6 MOVSS XMM0,dword ptr [RSI] MOVSS XMM4,dword ptr [RSI + 0x4] MOVAPS XMM6,xmmword ptr [0x00143100] XORPS XMM0,XMM6 MULSS XMM0,XMM3 XORPS XMM4,XMM6 CMP EAX,0x9 JA 0x00120347 MULSS XMM7,XMM3 MOV ECX,0x124 BT ECX,EAX JC 0x00120330 MOV ECX,0x248 BT ECX,EAX JNC 0x00120347 MOVAPS XMM8,XMM1 SUBSS XMM8,XMM7 JMP 0x00120342 LAB_00120330: MOVAPS XMM8,XMM1 SUBSS XMM8,XMM7 MULSS XMM8,dword ptr [0x0014384c] LAB_00120342: ADDSS XMM0,XMM8 LAB_00120347: MULSS XMM4,XMM3 MULSS XMM5,XMM3 LEA ECX,[RAX + -0x7] CMP ECX,0x3 JC 0x00120370 ADD EAX,-0x4 CMP EAX,0x2 JA 0x0012037b MOVAPS XMM7,XMM2 SUBSS XMM7,XMM5 MULSS XMM7,dword ptr [0x0014384c] JMP 0x00120377 LAB_00120370: MOVAPS XMM7,XMM2 SUBSS XMM7,XMM5 LAB_00120377: ADDSS XMM4,XMM7 LAB_0012037b: XORPS XMM0,XMM6 DIVSS XMM0,XMM3 XORPS XMM4,XMM6 DIVSS XMM4,XMM3 MOVAPS XMM6,XMM3 LAB_0012038c: UNPCKLPS XMM0,XMM4 DIVSS XMM1,XMM3 DIVSS XMM2,XMM6 UNPCKLPS XMM1,XMM2 RET LAB_0012039b: PUSH RAX LEA RDI,[0x1442ba] LEA RSI,[0x1442ec] LEA RCX,[0x144349] MOV EDX,0x20d CALL 0x0010a200
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* lunasvg::SVGPreserveAspectRatio::getClipRect(lunasvg::Rect const&, lunasvg::Size const&) const */ int8 __thiscall lunasvg::SVGPreserveAspectRatio::getClipRect (SVGPreserveAspectRatio *this,Rect *param_1,Size *param_2) { float fVar1; uint uVar2; float fVar3; float fVar4; float fVar5; float fVar6; float fVar7; fVar3 = *(float *)(param_1 + 8); if ((((fVar3 <= 0.0) || (fVar1 = *(float *)(param_1 + 0xc), fVar1 <= 0.0)) || (fVar7 = *(float *)param_2, fVar7 <= 0.0)) || (fVar6 = *(float *)(param_2 + 4), fVar6 <= 0.0)) { /* WARNING: Subroutine does not return */ __assert_fail("!viewBoxRect.isEmpty() && !viewportSize.isEmpty()", "/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/source/svgproperty.cpp" ,0x20d, "Rect lunasvg::SVGPreserveAspectRatio::getClipRect(const Rect &, const Size &) const" ); } fVar4 = fVar7 / fVar3; fVar5 = fVar6 / fVar1; uVar2 = *(uint *)(this + 0xc); if (uVar2 == 0) { fVar3 = *(float *)param_1; fVar5 = *(float *)(param_1 + 4); goto LAB_0012038c; } if (*(int *)(this + 0x10) == 0) { if (fVar4 <= fVar5) { fVar5 = fVar4; } } else if (fVar5 <= fVar4) { fVar5 = fVar4; } fVar4 = (float)(*(uint *)param_1 ^ _DAT_00143100) * fVar5; if (uVar2 < 10) { if ((0x124U >> (uVar2 & 0x1f) & 1) == 0) { if ((0x248U >> (uVar2 & 0x1f) & 1) == 0) goto LAB_00120347; fVar7 = fVar7 - fVar3 * fVar5; } else { fVar7 = (fVar7 - fVar3 * fVar5) * DAT_0014384c; } fVar4 = fVar4 + fVar7; } LAB_00120347: fVar7 = (float)(*(uint *)(param_1 + 4) ^ _DAT_00143100) * fVar5; if (uVar2 - 7 < 3) { fVar6 = fVar6 - fVar1 * fVar5; LAB_00120377: fVar7 = fVar7 + fVar6; } else if (uVar2 - 4 < 3) { fVar6 = (fVar6 - fVar1 * fVar5) * DAT_0014384c; goto LAB_00120377; } fVar3 = (float)((uint)fVar4 ^ _DAT_00143100) / fVar5; fVar5 = (float)((uint)fVar7 ^ _DAT_00143100) / fVar5; LAB_0012038c: return CONCAT44(fVar5,fVar3); }
17,601
lshift
eloqsql/libmariadb/libmariadb/ma_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 0x36fcb movl -0x20(%rbp), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) movl -0x1c(%rbp), %eax shll %eax movl %eax, -0x1c(%rbp) jmp 0x36fb0 movl -0x20(%rbp), %edi movq -0x18(%rbp), %rsi callq 0x37320 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 0x37015 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 0x36fed 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 0x370b4 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 0x37057 movl -0x4c(%rbp), %eax movq -0x40(%rbp), %rcx movl %eax, (%rcx) cmpl $0x0, %eax je 0x370b2 movl -0x28(%rbp), %eax addl $0x1, %eax movl %eax, -0x28(%rbp) jmp 0x370e4 jmp 0x370b6 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 0x370b6 jmp 0x370e4 movl -0x28(%rbp), %ecx subl $0x1, %ecx movq -0x30(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x36e20 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_36FB0: mov eax, [rbp+var_28] cmp eax, [rbp+var_1C] jle short loc_36FCB 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_36FB0 loc_36FCB: 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_36FED: mov eax, [rbp+var_1C] cmp eax, [rbp+var_24] jge short loc_37015 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_36FED loc_37015: 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_370B4 mov eax, 20h ; ' ' sub eax, [rbp+var_C] mov [rbp+var_20], eax mov [rbp+var_4C], 0 loc_37057: 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_37057 mov eax, [rbp+var_4C] mov rcx, [rbp+var_40] mov [rcx], eax cmp eax, 0 jz short loc_370B2 mov eax, [rbp+var_28] add eax, 1 mov [rbp+var_28], eax loc_370B2: jmp short loc_370E4 loc_370B4: jmp short $+2 loc_370B6: 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_370B6 jmp short $+2 loc_370E4: 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] unsigned 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, 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_00136fb0: MOV EAX,dword ptr [RBP + -0x28] CMP EAX,dword ptr [RBP + -0x1c] JLE 0x00136fcb 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 0x00136fb0 LAB_00136fcb: MOV EDI,dword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00137320 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_00136fed: MOV EAX,dword ptr [RBP + -0x1c] CMP EAX,dword ptr [RBP + -0x24] JGE 0x00137015 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 0x00136fed LAB_00137015: 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 0x001370b4 MOV EAX,0x20 SUB EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0x20],EAX MOV dword ptr [RBP + -0x4c],0x0 LAB_00137057: 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 0x00137057 MOV EAX,dword ptr [RBP + -0x4c] MOV RCX,qword ptr [RBP + -0x40] MOV dword ptr [RCX],EAX CMP EAX,0x0 JZ 0x001370b2 MOV EAX,dword ptr [RBP + -0x28] ADD EAX,0x1 MOV dword ptr [RBP + -0x28],EAX LAB_001370b2: JMP 0x001370e4 LAB_001370b4: JMP 0x001370b6 LAB_001370b6: 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 0x001370b6 JMP 0x001370e4 LAB_001370e4: 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 0x00136e20 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; }
17,602
foreach_function(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, std::function<void (nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)> const&)
llama.cpp/common/chat.cpp
static void foreach_function(const json & tools, const std::function<void(const json &)> & fn) { for (const auto & tool : tools) { if (!tool.contains("type") || tool.at("type") != "function" || !tool.contains("function")) { LOG_INF("Skipping tool without function: %s", tool.dump(2).c_str()); continue; } fn(tool); } }
O3
cpp
foreach_function(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, std::function<void (nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rsi, (%rsp) movq %rdi, %r14 leaq 0x48(%rsp), %r15 movq %rdi, (%r15) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r15) movabsq $-0x8000000000000000, %rbx # imm = 0x8000000000000000 movq %rbx, 0x18(%r15) movq %r15, %rdi callq 0xd0484 leaq 0x28(%rsp), %r12 movq %r14, (%r12) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r12) movq %rbx, 0x18(%r12) movq %r12, %rdi callq 0xd04f6 movq %r15, %rdi movq %r12, %rsi callq 0xce702 testb %al, %al jne 0x9cf1d leaq 0x48(%rsp), %r14 leaq 0x7e9ee(%rip), %r15 # 0x11b81f leaq 0xc6ad8(%rip), %r12 # 0x163910 leaq 0x28(%rsp), %r13 movq %r14, %rdi callq 0xaf5e2 movq %rax, %rbp movq %rax, %rdi movq %r15, %rsi callq 0xaf81e testb %al, %al je 0x9ce9f movq %rbp, %rdi movq %r15, %rsi callq 0xaf880 movq %rax, %rdi leaq 0x7e8fa(%rip), %rsi # 0x11b766 callq 0xafccb testb %al, %al jne 0x9ce9f movq %rbp, %rdi leaq 0x7e8e7(%rip), %rsi # 0x11b766 callq 0xb0002 testb %al, %al je 0x9ce9f movq (%rsp), %rdi cmpq $0x0, 0x10(%rdi) je 0x9cf2c movq %rbp, %rsi callq *0x18(%rdi) jmp 0x9cf02 cmpl $0x0, (%r12) js 0x9cf02 callq 0x10cf37 movq %rax, %rbx leaq 0x8(%rsp), %rdi movq %rbp, %rsi movl $0x2, %edx movl $0x20, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq 0xaf466 movq 0x8(%rsp), %rcx movq %rbx, %rdi movl $0x2, %esi leaq 0x8285e(%rip), %rdx # 0x11f73d xorl %eax, %eax callq 0x10cfd4 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x9cf02 movq 0x18(%rsp), %rsi incq %rsi callq 0x20180 movq %r14, %rdi callq 0xafd7c movq %r14, %rdi movq %r13, %rsi callq 0xce702 testb %al, %al je 0x9ce3d addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x212e0 movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x9cf50 movq 0x18(%rsp), %rsi incq %rsi callq 0x20180 movq %rbx, %rdi callq 0x20af0
_ZL16foreach_functionRKN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEERKSt8functionIFvSF_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov [rsp+98h+var_98], rsi mov r14, rdi lea r15, [rsp+98h+var_50] mov [r15], rdi xorps xmm0, xmm0 movups xmmword ptr [r15+8], xmm0 mov rbx, 8000000000000000h mov [r15+18h], rbx mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9set_beginEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::set_begin(void) lea r12, [rsp+98h+var_70] mov [r12], r14 xorps xmm0, xmm0 movups xmmword ptr [r12+8], xmm0 mov [r12+18h], rbx mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::set_end(void) mov rdi, r15 mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jnz loc_9CF1D lea r14, [rsp+98h+var_50] lea r15, aUnknownBufferT+0Fh; "type" lea r12, common_log_verbosity_thold lea r13, [rsp+98h+var_70] loc_9CE3D: mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov rbp, rax mov rdi, rax mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ test al, al jz short loc_9CE9F mov rdi, rbp mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ mov rdi, rax lea rsi, aFailedToFindRp_0+1Eh; "function" call _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_ test al, al jnz short loc_9CE9F mov rdi, rbp lea rsi, aFailedToFindRp_0+1Eh; "function" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ test al, al jz short loc_9CE9F mov rdi, [rsp+98h+var_98] cmp qword ptr [rdi+10h], 0 jz loc_9CF2C mov rsi, rbp call qword ptr [rdi+18h] jmp short loc_9CF02 loc_9CE9F: cmp dword ptr [r12], 0 js short loc_9CF02 call _Z15common_log_mainv; common_log_main(void) mov rbx, rax lea rdi, [rsp+98h+var_90] mov rsi, rbp mov edx, 2 mov ecx, 20h ; ' ' xor r8d, r8d xor r9d, r9d call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t) mov rcx, [rsp+98h+var_90] mov rdi, rbx mov esi, 2 lea rdx, aSkippingToolWi; "Skipping tool without function: %s" xor eax, eax call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...) mov rdi, [rsp+98h+var_90]; void * lea rax, [rsp+98h+var_80] cmp rdi, rax jz short loc_9CF02 mov rsi, [rsp+98h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9CF02: mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void) mov rdi, r14 mov rsi, r13 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jz loc_9CE3D loc_9CF1D: add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_9CF2C: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) mov rbx, rax mov rdi, [rsp+98h+var_90]; void * lea rax, [rsp+98h+var_80] cmp rdi, rax jz short loc_9CF50 mov rsi, [rsp+98h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9CF50: mov rdi, rbx call __Unwind_Resume
long long foreach_function(long long a1, long long a2) { long long result; // rax long long v3; // rbp long long v4; // rax int v5; // ebx int v6; // r8d int v7; // r9d void *v8; // [rsp+8h] [rbp-90h] BYREF long long v9; // [rsp+18h] [rbp-80h] BYREF long long v10; // [rsp+28h] [rbp-70h] BYREF __int128 v11; // [rsp+30h] [rbp-68h] unsigned long long v12; // [rsp+40h] [rbp-58h] long long v13; // [rsp+48h] [rbp-50h] BYREF __int128 v14; // [rsp+50h] [rbp-48h] unsigned long long v15; // [rsp+60h] [rbp-38h] v13 = a1; v14 = 0LL; v15 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_begin(&v13); v10 = a1; v11 = 0LL; v12 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_end(&v10); for ( result = ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v13, &v10); !(_BYTE)result; result = ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v13, &v10) ) { v3 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v13); if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_( v3, "type") && (v4 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( v3, "type"), !(unsigned __int8)ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_( v4, "function")) && (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_( v3, "function") ) { if ( !*(_QWORD *)(a2 + 16) ) std::__throw_bad_function_call(); (*(void ( **)(long long, long long))(a2 + 24))(a2, v3); } else if ( common_log_verbosity_thold >= 0 ) { v5 = common_log_main(); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump( (unsigned int)&v8, v3, 2, 32, 0, 0); common_log_add(v5, 2, (unsigned int)"Skipping tool without function: %s", (_DWORD)v8, v6, v7); if ( v8 != &v9 ) operator delete(v8, v9 + 1); } nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(&v13); } return result; }
foreach_function: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV qword ptr [RSP],RSI MOV R14,RDI LEA R15,[RSP + 0x48] MOV qword ptr [R15],RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [R15 + 0x8],XMM0 MOV RBX,-0x8000000000000000 MOV qword ptr [R15 + 0x18],RBX MOV RDI,R15 CALL 0x001d0484 LEA R12,[RSP + 0x28] MOV qword ptr [R12],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R12 + 0x8],XMM0 MOV qword ptr [R12 + 0x18],RBX MOV RDI,R12 CALL 0x001d04f6 MOV RDI,R15 MOV RSI,R12 CALL 0x001ce702 TEST AL,AL JNZ 0x0019cf1d LEA R14,[RSP + 0x48] LEA R15,[0x21b81f] LEA R12,[0x263910] LEA R13,[RSP + 0x28] LAB_0019ce3d: MOV RDI,R14 CALL 0x001af5e2 MOV RBP,RAX MOV RDI,RAX MOV RSI,R15 CALL 0x001af81e TEST AL,AL JZ 0x0019ce9f MOV RDI,RBP MOV RSI,R15 CALL 0x001af880 MOV RDI,RAX LEA RSI,[0x21b766] CALL 0x001afccb TEST AL,AL JNZ 0x0019ce9f MOV RDI,RBP LEA RSI,[0x21b766] CALL 0x001b0002 TEST AL,AL JZ 0x0019ce9f MOV RDI,qword ptr [RSP] CMP qword ptr [RDI + 0x10],0x0 JZ 0x0019cf2c MOV RSI,RBP CALL qword ptr [RDI + 0x18] JMP 0x0019cf02 LAB_0019ce9f: CMP dword ptr [R12],0x0 JS 0x0019cf02 CALL 0x0020cf37 MOV RBX,RAX LEA RDI,[RSP + 0x8] MOV RSI,RBP MOV EDX,0x2 MOV ECX,0x20 XOR R8D,R8D XOR R9D,R9D CALL 0x001af466 MOV RCX,qword ptr [RSP + 0x8] LAB_0019ced0: MOV RDI,RBX MOV ESI,0x2 LEA RDX,[0x21f73d] XOR EAX,EAX CALL 0x0020cfd4 LAB_0019cee6: MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x0019cf02 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00120180 LAB_0019cf02: MOV RDI,R14 CALL 0x001afd7c MOV RDI,R14 MOV RSI,R13 CALL 0x001ce702 TEST AL,AL JZ 0x0019ce3d LAB_0019cf1d: ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0019cf2c: CALL 0x001212e0
/* foreach_function(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, std::function<void (nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&)> const&) */ void foreach_function(basic_json *param_1,function *param_2) { char cVar1; int8 uVar2; int8 uVar3; long *local_90 [2]; long local_80 [2]; basic_json *local_70; int8 local_68; int8 uStack_60; int8 local_58; basic_json *local_50; int8 local_48; int8 uStack_40; int8 local_38; local_48 = 0; uStack_40 = 0; local_38 = 0x8000000000000000; local_50 = param_1; nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::set_begin((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_50); local_68 = 0; uStack_60 = 0; local_58 = 0x8000000000000000; local_70 = param_1; nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::set_end((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_70); cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_50, (iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_70); if (cVar1 == '\0') { do { uVar2 = nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_50); cVar1 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ (uVar2,"type"); if (cVar1 == '\0') { LAB_0019ce9f: if (-1 < common_log_verbosity_thold) { uVar3 = common_log_main(); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::dump(local_90,uVar2,2,0x20,0,0); /* try { // try from 0019ced0 to 0019cee5 has its CatchHandler @ 0019cf31 */ common_log_add(uVar3,2,"Skipping tool without function: %s",local_90[0]); if (local_90[0] != local_80) { operator_delete(local_90[0],local_80[0] + 1); } } } else { uVar3 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (uVar2,"type"); cVar1 = _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_ (uVar3,"function"); if (cVar1 != '\0') goto LAB_0019ce9f; cVar1 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ (uVar2,"function"); if (cVar1 == '\0') goto LAB_0019ce9f; if (*(long *)(param_2 + 0x10) == 0) { /* WARNING: Subroutine does not return */ std::__throw_bad_function_call(); } (**(code **)(param_2 + 0x18))(param_2,uVar2); } nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_50); cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_50,&local_70); } while (cVar1 == '\0'); } return; }
17,603
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator->() const
monkey531[P]llama/common/json.hpp
pointer operator->() const { JSON_ASSERT(m_object != nullptr); switch (m_object->m_data.m_type) { case value_t::object: { JSON_ASSERT(m_it.object_iterator != m_object->m_data.m_value.object->end()); return &(m_it.object_iterator->second); } case value_t::array: { JSON_ASSERT(m_it.array_iterator != m_object->m_data.m_value.array->end()); return &*m_it.array_iterator; } case value_t::null: case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: { if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin())) { return m_object; } JSON_THROW(invalid_iterator::create(214, "cannot get value", m_object)); } } }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator->() const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp movq (%rdi), %rax testq %rax, %rax je 0x5d4ed movq %rdi, %r14 movzbl (%rax), %ecx cmpl $0x2, %ecx je 0x5d450 cmpl $0x1, %ecx jne 0x5d47d movq 0x8(%rax), %rcx movq 0x8(%r14), %rax cmpq 0x8(%rcx), %rax je 0x5d509 addq $0x20, %rax jmp 0x5d484 movq 0x8(%rax), %rcx movq 0x10(%r14), %rax cmpq 0x8(%rcx), %rax jne 0x5d484 leaq 0x8d9ee(%rip), %rdi # 0xeae53 leaq 0x87e4f(%rip), %rdx # 0xe52bb leaq 0x8ea6f(%rip), %rcx # 0xebee2 movl $0x3397, %esi # imm = 0x3397 jmp 0x5d523 cmpq $0x0, 0x18(%r14) jne 0x5d48f addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x1a430 movq %rax, %rbx leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x8ea73(%rip), %rsi # 0xebf1f leaq 0x8ea7c(%rip), %rdx # 0xebf2f leaq 0x8(%rsp), %rdi callq 0x21b26 movq (%r14), %rcx movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0xd6, %esi callq 0x5e3d4 xorl %ebp, %ebp leaq 0xcba3a(%rip), %rsi # 0x128f18 leaq -0x2a1b(%rip), %rdx # 0x5aaca movq %rbx, %rdi callq 0x1aef0 leaq 0x8d95f(%rip), %rdi # 0xeae53 leaq 0x87dc0(%rip), %rdx # 0xe52bb leaq 0x92c0b(%rip), %rcx # 0xf010d movl $0x338b, %esi # imm = 0x338B jmp 0x5d523 leaq 0x8d943(%rip), %rdi # 0xeae53 leaq 0x87da4(%rip), %rdx # 0xe52bb leaq 0x8e985(%rip), %rcx # 0xebea3 movl $0x3391, %esi # imm = 0x3391 xorl %eax, %eax callq 0x1ae80 movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x5d544 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8c0 testb %bpl, %bpl jne 0x5d54e jmp 0x5d556 movq %rax, %r14 movq %rbx, %rdi callq 0x1a660 movq %r14, %rdi callq 0x1af80
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv: push rbp; char push r15; int push r14; __int64 push rbx; int sub rsp, 28h mov rax, [rdi] test rax, rax jz loc_5D4ED mov r14, rdi movzx ecx, byte ptr [rax] cmp ecx, 2 jz short loc_5D450 cmp ecx, 1 jnz short loc_5D47D mov rcx, [rax+8] mov rax, [r14+8] cmp rax, [rcx+8] jz loc_5D509 add rax, 20h ; ' ' jmp short loc_5D484 loc_5D450: mov rcx, [rax+8] mov rax, [r14+10h] cmp rax, [rcx+8] jnz short loc_5D484 lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMItArrayIterat; "m_it.array_iterator != m_object->m_data"... mov esi, 3397h jmp loc_5D523 loc_5D47D: cmp qword ptr [r14+18h], 0 jnz short loc_5D48F loc_5D484: add rsp, 28h pop rbx pop r14 pop r15 pop rbp retn loc_5D48F: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r15, [rsp+48h+var_30] mov [r15-10h], r15 lea rsi, aCannotGetValue; "cannot get value" lea rdx, aCannotGetValue+10h; "" lea rdi, [rsp+48h+var_40] 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, [r14] mov bpl, 1 lea rdx, [rsp+48h+var_40] mov rdi, rbx; this mov esi, 0D6h; int call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_5D4ED: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAnchorMObjectN+7; "m_object != nullptr" mov esi, 338Bh jmp short loc_5D523 loc_5D509: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMItObjectItera; "m_it.object_iterator != m_object->m_dat"... mov esi, 3391h loc_5D523: xor eax, eax call _ggml_abort mov r14, rax mov rdi, [rsp+48h+var_40]; void * cmp rdi, r15 jz short loc_5D544 mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5D544: test bpl, bpl jnz short loc_5D54E jmp short loc_5D556 mov r14, rax loc_5D54E: mov rdi, rbx; void * call ___cxa_free_exception loc_5D556: mov rdi, r14 call __Unwind_Resume
operator->: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x28 MOV RAX,qword ptr [RDI] TEST RAX,RAX JZ 0x0015d4ed MOV R14,RDI MOVZX ECX,byte ptr [RAX] CMP ECX,0x2 JZ 0x0015d450 CMP ECX,0x1 JNZ 0x0015d47d MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [RCX + 0x8] JZ 0x0015d509 ADD RAX,0x20 JMP 0x0015d484 LAB_0015d450: MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [R14 + 0x10] CMP RAX,qword ptr [RCX + 0x8] JNZ 0x0015d484 LEA RDI,[0x1eae53] LEA RDX,[0x1e52bb] LEA RCX,[0x1ebee2] MOV ESI,0x3397 JMP 0x0015d523 LAB_0015d47d: CMP qword ptr [R14 + 0x18],0x0 JNZ 0x0015d48f LAB_0015d484: ADD RSP,0x28 POP RBX POP R14 POP R15 POP RBP RET LAB_0015d48f: MOV EDI,0x20 CALL 0x0011a430 MOV RBX,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 LAB_0015d4a5: LEA RSI,[0x1ebf1f] LEA RDX,[0x1ebf2f] LEA RDI,[RSP + 0x8] CALL 0x00121b26 MOV RCX,qword ptr [R14] MOV BPL,0x1 LAB_0015d4c3: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0xd6 CALL 0x0015e3d4 XOR EBP,EBP LEA RSI,[0x228f18] LEA RDX,[0x15aaca] MOV RDI,RBX CALL 0x0011aef0 LAB_0015d4ed: LEA RDI,[0x1eae53] LEA RDX,[0x1e52bb] LEA RCX,[0x1f010d] MOV ESI,0x338b JMP 0x0015d523 LAB_0015d509: LEA RDI,[0x1eae53] LEA RDX,[0x1e52bb] LEA RCX,[0x1ebea3] MOV ESI,0x3391 LAB_0015d523: XOR EAX,EAX CALL 0x0011ae80
/* nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::TEMPNAMEPLACEHOLDERVALUE() const */ char * __thiscall nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::operator->(iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this) { long *plVar1; char *pcVar2; int8 uVar3; int1 *local_40 [2]; int1 local_30 [16]; pcVar2 = *(char **)this; if (pcVar2 == (char *)0x0) { pcVar2 = "m_object != nullptr"; uVar3 = 0x338b; LAB_0015d523: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3, "GGML_ASSERT(%s) failed",pcVar2); } if (*pcVar2 == '\x02') { plVar1 = (long *)(pcVar2 + 8); pcVar2 = *(char **)(this + 0x10); if (pcVar2 == *(char **)(*plVar1 + 8)) { pcVar2 = "m_it.array_iterator != m_object->m_data.m_value.array->end()"; uVar3 = 0x3397; goto LAB_0015d523; } } else if (*pcVar2 == '\x01') { if (*(long *)(this + 8) == *(long *)(*(long *)(pcVar2 + 8) + 8)) { pcVar2 = "m_it.object_iterator != m_object->m_data.m_value.object->end()"; uVar3 = 0x3391; goto LAB_0015d523; } pcVar2 = (char *)(*(long *)(this + 8) + 0x20); } else if (*(long *)(this + 0x18) != 0) { uVar3 = __cxa_allocate_exception(0x20); local_40[0] = local_30; /* try { // try from 0015d4a5 to 0015d4bc has its CatchHandler @ 0015d54b */ std::__cxx11::string::_M_construct<char_const*>(local_40,"cannot get value",""); /* try { // try from 0015d4c3 to 0015d4ec has its CatchHandler @ 0015d52a */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar3,0xd6,local_40,*(int8 *)this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&invalid_iterator::typeinfo,exception::~exception); } return pcVar2; }
17,604
get_rlp_field
corpus-core[P]colibri-stateless/src/chains/eth/verifier/eth_tx.c
static bytes_t get_rlp_field(verify_ctx_t* ctx, bytes_t rlp_list, const rlp_type_defs_t* defs, const char* field_name, rlp_type_t expected_type) { bytes_t result_bytes = NULL_BYTES; for (int i = 0; i < defs->len; i++) { if (strcmp(defs->defs[i].name, field_name)) continue; rlp_type_t decoded_type = rlp_decode(&rlp_list, i, &result_bytes); // Check if decoded type matches expected type if (decoded_type != expected_type) { char err_buf[120]; if (decoded_type <= RLP_SUCCESS) { // Includes RLP_SUCCESS, RLP_OUT_OF_RANGE, RLP_NOT_FOUND snprintf(err_buf, sizeof(err_buf), "RLP decode failed or type mismatch for field '%s': expected type %d, decode result %d", field_name, expected_type, decoded_type); } else { // Decoded type is RLP_ITEM or RLP_LIST but not the expected one snprintf(err_buf, sizeof(err_buf), "RLP type mismatch for field '%s': expected %d, got %d", field_name, expected_type, decoded_type); } c4_state_add_error(&ctx->state, err_buf); return NULL_BYTES; // Return NULL_BYTES on error } // Success return result_bytes; } return NULL_BYTES; // Return NULL_BYTES on error }
O0
c
get_rlp_field: pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movl %esi, -0x20(%rbp) movq %rdx, -0x18(%rbp) movq %rdi, -0x28(%rbp) movq %rcx, -0x30(%rbp) movq %r8, -0x38(%rbp) movl %r9d, -0x3c(%rbp) leaq -0x50(%rbp), %rdi xorl %esi, %esi movl $0x10, %edx callq 0x23140 movl $0x0, -0x54(%rbp) movl -0x54(%rbp), %eax movq -0x30(%rbp), %rcx cmpl 0x8(%rcx), %eax jae 0x317d5 movq -0x30(%rbp), %rax movq (%rax), %rax movslq -0x54(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rdi movq -0x38(%rbp), %rsi callq 0x23320 cmpl $0x0, %eax je 0x31721 jmp 0x317c7 movl -0x54(%rbp), %esi leaq -0x20(%rbp), %rdi leaq -0x50(%rbp), %rdx callq 0x34c30 movl %eax, -0x58(%rbp) movl -0x58(%rbp), %eax cmpl -0x3c(%rbp), %eax je 0x317b5 cmpl $0x0, -0x58(%rbp) jg 0x3176a leaq -0xd0(%rbp), %rdi movq -0x38(%rbp), %rcx movl -0x3c(%rbp), %r8d movl -0x58(%rbp), %r9d movl $0x78, %esi leaq 0xaa336(%rip), %rdx # 0xdba97 movb $0x0, %al callq 0x233b0 jmp 0x31790 leaq -0xd0(%rbp), %rdi movq -0x38(%rbp), %rcx movl -0x3c(%rbp), %r8d movl -0x58(%rbp), %r9d movl $0x78, %esi leaq 0xaa364(%rip), %rdx # 0xdbaed movb $0x0, %al callq 0x233b0 movq -0x28(%rbp), %rdi addq $0x70, %rdi leaq -0xd0(%rbp), %rsi callq 0xa6370 movl $0x0, -0x10(%rbp) movq $0x0, -0x8(%rbp) jmp 0x317e4 movq -0x50(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x48(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x317e4 movl -0x54(%rbp), %eax addl $0x1, %eax movl %eax, -0x54(%rbp) jmp 0x316e9 movl $0x0, -0x10(%rbp) movq $0x0, -0x8(%rbp) movl -0x10(%rbp), %eax movq -0x8(%rbp), %rdx addq $0xd0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
get_rlp_field: push rbp mov rbp, rsp sub rsp, 0D0h mov [rbp+var_20], esi mov [rbp+var_18], rdx mov [rbp+var_28], rdi mov [rbp+var_30], rcx mov [rbp+var_38], r8 mov [rbp+var_3C], r9d lea rdi, [rbp+var_50] xor esi, esi mov edx, 10h call _memset mov [rbp+var_54], 0 loc_316E9: mov eax, [rbp+var_54] mov rcx, [rbp+var_30] cmp eax, [rcx+8] jnb loc_317D5 mov rax, [rbp+var_30] mov rax, [rax] movsxd rcx, [rbp+var_54] shl rcx, 4 add rax, rcx mov rdi, [rax] mov rsi, [rbp+var_38] call _strcmp cmp eax, 0 jz short loc_31721 jmp loc_317C7 loc_31721: mov esi, [rbp+var_54] lea rdi, [rbp+var_20] lea rdx, [rbp+var_50] call rlp_decode mov [rbp+var_58], eax mov eax, [rbp+var_58] cmp eax, [rbp+var_3C] jz short loc_317B5 cmp [rbp+var_58], 0 jg short loc_3176A lea rdi, [rbp+var_D0] mov rcx, [rbp+var_38] mov r8d, [rbp+var_3C] mov r9d, [rbp+var_58] mov esi, 78h ; 'x' lea rdx, aRlpDecodeFaile; "RLP decode failed or type mismatch for "... mov al, 0 call _snprintf jmp short loc_31790 loc_3176A: lea rdi, [rbp+var_D0] mov rcx, [rbp+var_38] mov r8d, [rbp+var_3C] mov r9d, [rbp+var_58] mov esi, 78h ; 'x' lea rdx, aRlpTypeMismatc; "RLP type mismatch for field '%s': expec"... mov al, 0 call _snprintf loc_31790: mov rdi, [rbp+var_28] add rdi, 70h ; 'p' lea rsi, [rbp+var_D0] call c4_state_add_error mov dword ptr [rbp+var_10], 0 mov [rbp+var_8], 0 jmp short loc_317E4 loc_317B5: mov rax, [rbp+var_50] mov [rbp+var_10], rax mov rax, [rbp+var_48] mov [rbp+var_8], rax jmp short loc_317E4 loc_317C7: mov eax, [rbp+var_54] add eax, 1 mov [rbp+var_54], eax jmp loc_316E9 loc_317D5: mov dword ptr [rbp+var_10], 0 mov [rbp+var_8], 0 loc_317E4: mov eax, dword ptr [rbp+var_10] mov rdx, [rbp+var_8] add rsp, 0D0h pop rbp retn
long long get_rlp_field(long long a1, int a2, long long a3, long long a4, const char *a5, int a6) { _BYTE v7[120]; // [rsp+0h] [rbp-D0h] BYREF int v8; // [rsp+78h] [rbp-58h] unsigned int i; // [rsp+7Ch] [rbp-54h] _QWORD v10[2]; // [rsp+80h] [rbp-50h] BYREF int v11; // [rsp+94h] [rbp-3Ch] const char *v12; // [rsp+98h] [rbp-38h] long long v13; // [rsp+A0h] [rbp-30h] long long v14; // [rsp+A8h] [rbp-28h] int v15; // [rsp+B0h] [rbp-20h] BYREF long long v16; // [rsp+B8h] [rbp-18h] long long v17; // [rsp+C0h] [rbp-10h] long long v18; // [rsp+C8h] [rbp-8h] v15 = a2; v16 = a3; v14 = a1; v13 = a4; v12 = a5; v11 = a6; memset(v10, 0LL, sizeof(v10)); for ( i = 0; ; ++i ) { if ( i >= *(_DWORD *)(v13 + 8) ) { LODWORD(v17) = 0; v18 = 0LL; return (unsigned int)v17; } if ( !(unsigned int)strcmp(*(_QWORD *)(16LL * (int)i + *(_QWORD *)v13), v12) ) break; } v8 = rlp_decode(&v15, i); if ( v8 == v11 ) { v17 = v10[0]; v18 = v10[1]; } else { if ( v8 > 0 ) snprintf(v7, 120LL, "RLP type mismatch for field '%s': expected %d, got %d", v12, v11, v8); else snprintf( v7, 120LL, "RLP decode failed or type mismatch for field '%s': expected type %d, decode result %d", v12, v11, v8); c4_state_add_error(v14 + 112, v7); LODWORD(v17) = 0; v18 = 0LL; } return (unsigned int)v17; }
get_rlp_field: PUSH RBP MOV RBP,RSP SUB RSP,0xd0 MOV dword ptr [RBP + -0x20],ESI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x28],RDI MOV qword ptr [RBP + -0x30],RCX MOV qword ptr [RBP + -0x38],R8 MOV dword ptr [RBP + -0x3c],R9D LEA RDI,[RBP + -0x50] XOR ESI,ESI MOV EDX,0x10 CALL 0x00123140 MOV dword ptr [RBP + -0x54],0x0 LAB_001316e9: MOV EAX,dword ptr [RBP + -0x54] MOV RCX,qword ptr [RBP + -0x30] CMP EAX,dword ptr [RCX + 0x8] JNC 0x001317d5 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x54] SHL RCX,0x4 ADD RAX,RCX MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x38] CALL 0x00123320 CMP EAX,0x0 JZ 0x00131721 JMP 0x001317c7 LAB_00131721: MOV ESI,dword ptr [RBP + -0x54] LEA RDI,[RBP + -0x20] LEA RDX,[RBP + -0x50] CALL 0x00134c30 MOV dword ptr [RBP + -0x58],EAX MOV EAX,dword ptr [RBP + -0x58] CMP EAX,dword ptr [RBP + -0x3c] JZ 0x001317b5 CMP dword ptr [RBP + -0x58],0x0 JG 0x0013176a LEA RDI,[RBP + -0xd0] MOV RCX,qword ptr [RBP + -0x38] MOV R8D,dword ptr [RBP + -0x3c] MOV R9D,dword ptr [RBP + -0x58] MOV ESI,0x78 LEA RDX,[0x1dba97] MOV AL,0x0 CALL 0x001233b0 JMP 0x00131790 LAB_0013176a: LEA RDI,[RBP + -0xd0] MOV RCX,qword ptr [RBP + -0x38] MOV R8D,dword ptr [RBP + -0x3c] MOV R9D,dword ptr [RBP + -0x58] MOV ESI,0x78 LEA RDX,[0x1dbaed] MOV AL,0x0 CALL 0x001233b0 LAB_00131790: MOV RDI,qword ptr [RBP + -0x28] ADD RDI,0x70 LEA RSI,[RBP + -0xd0] CALL 0x001a6370 MOV dword ptr [RBP + -0x10],0x0 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001317e4 LAB_001317b5: MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x8],RAX JMP 0x001317e4 LAB_001317c7: MOV EAX,dword ptr [RBP + -0x54] ADD EAX,0x1 MOV dword ptr [RBP + -0x54],EAX JMP 0x001316e9 LAB_001317d5: MOV dword ptr [RBP + -0x10],0x0 MOV qword ptr [RBP + -0x8],0x0 LAB_001317e4: MOV EAX,dword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x8] ADD RSP,0xd0 POP RBP RET
int1 [16] get_rlp_field(long param_1,int4 param_2,int8 param_3,long *param_4,char *param_5, uint param_6) { int iVar1; int1 auVar2 [16]; char local_d8 [120]; uint local_60; uint local_5c; ulong local_58; int8 local_50; uint local_44; char *local_40; long *local_38; long local_30; int4 local_28 [2]; int8 local_20; ulong local_18; int8 local_10; local_44 = param_6; local_40 = param_5; local_38 = param_4; local_30 = param_1; local_28[0] = param_2; local_20 = param_3; memset(&local_58,0,0x10); local_5c = 0; do { if (*(uint *)(local_38 + 1) <= local_5c) { local_18 = 0; local_10 = 0; LAB_001317e4: auVar2._0_8_ = local_18 & 0xffffffff; auVar2._8_8_ = local_10; return auVar2; } iVar1 = strcmp(*(char **)(*local_38 + (long)(int)local_5c * 0x10),local_40); if (iVar1 == 0) { local_60 = rlp_decode(local_28,local_5c,&local_58); if (local_60 == local_44) { local_18 = local_58; local_10 = local_50; } else { if ((int)local_60 < 1) { snprintf(local_d8,0x78, "RLP decode failed or type mismatch for field \'%s\': expected type %d, decode result %d" ,local_40,(ulong)local_44,(ulong)local_60); } else { snprintf(local_d8,0x78,"RLP type mismatch for field \'%s\': expected %d, got %d",local_40, (ulong)local_44,(ulong)local_60); } c4_state_add_error(local_30 + 0x70,local_d8); local_18 = 0; local_10 = 0; } goto LAB_001317e4; } local_5c = local_5c + 1; } while( true ); }
17,605
verify_col_data
eloqsql/libmariadb/unittest/libmariadb/my_test.h
int verify_col_data(MYSQL *mysql, const char *table, const char *col, const char *exp_data) { static char query[MAX_TEST_QUERY_LENGTH]; MYSQL_RES *result; MYSQL_ROW row; int rc; if (table && col) { sprintf(query, "SELECT %s FROM %s LIMIT 1", col, table); rc= mysql_query(mysql, query); check_mysql_rc(rc, mysql); } result= mysql_use_result(mysql); FAIL_IF(!result, "Invalid result set"); if (!(row= mysql_fetch_row(result)) || !row[0]) { diag("Failed to get the result"); goto error; } if(strcmp(row[0], exp_data)) { diag("Expected %s, got %s", exp_data, row[0]); goto error; } mysql_free_result(result); return OK; error: mysql_free_result(result); return FAIL; }
O3
c
verify_col_data: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rcx, %rbx movq %rdi, %r15 testq %rsi, %rsi sete %al testq %rdx, %rdx sete %cl orb %al, %cl jne 0x13ccb movq %rdx, %r8 movq %rsi, %r9 leaq 0x3e8b3(%rip), %r12 # 0x52510 leaq 0x274cf(%rip), %rcx # 0x3b133 movl $0x1, %r14d movl $0x12c, %edx # imm = 0x12C movq %r12, %rdi movl $0x1, %esi xorl %eax, %eax callq 0x132a0 movq %r15, %rdi movq %r12, %rsi callq 0x21299 testl %eax, %eax je 0x13ccb movl %eax, %r12d movq %r15, %rdi callq 0x23312 movq %rax, %rbx movq %r15, %rdi callq 0x232fd leaq 0x274a3(%rip), %rdi # 0x3b14d leaq 0x2737f(%rip), %r8 # 0x3b030 movl %r12d, %esi movq %rbx, %rdx movl %eax, %ecx movl $0x17f, %r9d # imm = 0x17F xorl %eax, %eax callq 0x1bb8f jmp 0x13d54 movq %r15, %rdi callq 0x206c8 testq %rax, %rax je 0x13d2d movq %rax, %r14 movq %rax, %rdi callq 0x22394 testq %rax, %rax je 0x13d15 movq (%rax), %r15 testq %r15, %r15 je 0x13d15 movq %r15, %rdi movq %rbx, %rsi callq 0x13670 testl %eax, %eax je 0x13d60 leaq 0x27495(%rip), %rdi # 0x3b19b movq %rbx, %rsi movq %r15, %rdx xorl %eax, %eax callq 0x1bb8f jmp 0x13d23 leaq 0x27466(%rip), %rdi # 0x3b182 xorl %eax, %eax callq 0x1bb8f movq %r14, %rdi callq 0x1cf46 jmp 0x13d4e leaq 0x272d4(%rip), %rdi # 0x3b008 leaq 0x27434(%rip), %rsi # 0x3b16f leaq 0x272ee(%rip), %rdx # 0x3b030 movl $0x182, %ecx # imm = 0x182 xorl %eax, %eax callq 0x1bb8f movl $0x1, %r14d movl %r14d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %r14, %rdi callq 0x1cf46 xorl %r14d, %r14d jmp 0x13d54
verify_col_data: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, rcx mov r15, rdi test rsi, rsi setz al test rdx, rdx setz cl or cl, al jnz short loc_13CCB mov r8, rdx mov r9, rsi lea r12, verify_col_data_query lea rcx, aSelectSFromSLi; "SELECT %s FROM %s LIMIT 1" mov r14d, 1 mov edx, 12Ch mov rdi, r12 mov esi, 1 xor eax, eax call ___sprintf_chk mov rdi, r15 mov rsi, r12 call mysql_query test eax, eax jz short loc_13CCB mov r12d, eax mov rdi, r15 call mysql_error mov rbx, rax mov rdi, r15 call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r12d mov rdx, rbx mov ecx, eax mov r9d, 17Fh xor eax, eax call diag jmp loc_13D54 loc_13CCB: mov rdi, r15 call mysql_use_result test rax, rax jz short loc_13D2D mov r14, rax mov rdi, rax call mysql_fetch_row test rax, rax jz short loc_13D15 mov r15, [rax] test r15, r15 jz short loc_13D15 mov rdi, r15 mov rsi, rbx call _strcmp test eax, eax jz short loc_13D60 lea rdi, aExpectedSGotS; "Expected %s, got %s" mov rsi, rbx mov rdx, r15 xor eax, eax call diag jmp short loc_13D23 loc_13D15: lea rdi, aFailedToGetThe; "Failed to get the result" xor eax, eax call diag loc_13D23: mov rdi, r14 call mysql_free_result jmp short loc_13D4E loc_13D2D: lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aInvalidResultS; "Invalid result set" lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 182h xor eax, eax call diag loc_13D4E: mov r14d, 1 loc_13D54: mov eax, r14d pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_13D60: mov rdi, r14 call mysql_free_result xor r14d, r14d jmp short loc_13D54
long long verify_col_data(long long a1, const char *a2, const char *a3, long long a4) { unsigned int v5; // r14d int v6; // eax int v7; // r12d int v8; // ebx int v9; // eax long long v10; // rax int v11; // r8d int v12; // r9d long long v13; // r14 _QWORD *row; // rax int v15; // edx int v16; // ecx int v17; // r8d int v18; // r9d long long v19; // r15 int v20; // ecx int v21; // r8d int v22; // r9d if ( a2 == 0LL || a3 == 0LL || (v5 = 1, __sprintf_chk(&verify_col_data_query, 1LL, 300LL, "SELECT %s FROM %s LIMIT 1", a3, a2), a2 = (const char *)&verify_col_data_query, (v6 = mysql_query(a1, &verify_col_data_query)) == 0) ) { v10 = mysql_use_result(a1); if ( v10 ) { v13 = v10; row = (_QWORD *)mysql_fetch_row(v10); if ( row && (v19 = *row) != 0 ) { if ( !(unsigned int)strcmp(*row, a4) ) { mysql_free_result(v13); return 0; } diag((unsigned int)"Expected %s, got %s", a4, v19, v20, v21, v22); } else { diag((unsigned int)"Failed to get the result", (_DWORD)a2, v15, v16, v17, v18); } mysql_free_result(v13); } else { diag( (unsigned int)"Error: %s (%s: %d)", (unsigned int)"Invalid result set", (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h", 386, v11, v12); } return 1; } else { v7 = v6; v8 = mysql_error(a1); v9 = mysql_errno(a1); diag( (unsigned int)"Error (%d): %s (%d) in %s line %d", v7, v8, v9, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h", 383); } return v5; }
verify_col_data: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RCX MOV R15,RDI TEST RSI,RSI SETZ AL TEST RDX,RDX SETZ CL OR CL,AL JNZ 0x00113ccb MOV R8,RDX MOV R9,RSI LEA R12,[0x152510] LEA RCX,[0x13b133] MOV R14D,0x1 MOV EDX,0x12c MOV RDI,R12 MOV ESI,0x1 XOR EAX,EAX CALL 0x001132a0 MOV RDI,R15 MOV RSI,R12 CALL 0x00121299 TEST EAX,EAX JZ 0x00113ccb MOV R12D,EAX MOV RDI,R15 CALL 0x00123312 MOV RBX,RAX MOV RDI,R15 CALL 0x001232fd LEA RDI,[0x13b14d] LEA R8,[0x13b030] MOV ESI,R12D MOV RDX,RBX MOV ECX,EAX MOV R9D,0x17f XOR EAX,EAX CALL 0x0011bb8f JMP 0x00113d54 LAB_00113ccb: MOV RDI,R15 CALL 0x001206c8 TEST RAX,RAX JZ 0x00113d2d MOV R14,RAX MOV RDI,RAX CALL 0x00122394 TEST RAX,RAX JZ 0x00113d15 MOV R15,qword ptr [RAX] TEST R15,R15 JZ 0x00113d15 MOV RDI,R15 MOV RSI,RBX CALL 0x00113670 TEST EAX,EAX JZ 0x00113d60 LEA RDI,[0x13b19b] MOV RSI,RBX MOV RDX,R15 XOR EAX,EAX CALL 0x0011bb8f JMP 0x00113d23 LAB_00113d15: LEA RDI,[0x13b182] XOR EAX,EAX CALL 0x0011bb8f LAB_00113d23: MOV RDI,R14 CALL 0x0011cf46 JMP 0x00113d4e LAB_00113d2d: LEA RDI,[0x13b008] LEA RSI,[0x13b16f] LEA RDX,[0x13b030] MOV ECX,0x182 XOR EAX,EAX CALL 0x0011bb8f LAB_00113d4e: MOV R14D,0x1 LAB_00113d54: MOV EAX,R14D POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00113d60: MOV RDI,R14 CALL 0x0011cf46 XOR R14D,R14D JMP 0x00113d54
int8 verify_col_data(int8 param_1,long param_2,long param_3,char *param_4) { char *__s1; int iVar1; int4 uVar2; int8 uVar3; long lVar4; int8 *puVar5; if (param_3 != 0 && param_2 != 0) { __sprintf_chk(verify_col_data_query,1,300,"SELECT %s FROM %s LIMIT 1",param_3,param_2); iVar1 = mysql_query(param_1,verify_col_data_query); if (iVar1 != 0) { uVar3 = mysql_error(param_1); uVar2 = mysql_errno(param_1); diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar3,uVar2, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x17f ); return 1; } } lVar4 = mysql_use_result(param_1); if (lVar4 == 0) { diag("Error: %s (%s: %d)","Invalid result set", "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x182); } else { puVar5 = (int8 *)mysql_fetch_row(lVar4); if ((puVar5 == (int8 *)0x0) || (__s1 = (char *)*puVar5, __s1 == (char *)0x0)) { diag("Failed to get the result"); } else { iVar1 = strcmp(__s1,param_4); if (iVar1 == 0) { mysql_free_result(lVar4); return 0; } diag("Expected %s, got %s",param_4,__s1); } mysql_free_result(lVar4); } return 1; }
17,606
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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>, bool, nlohmann::json_abi_v3_11_3::detail::value_t)
monkey531[P]llama/common/json.hpp
basic_json(initializer_list_t init, bool type_deduction = true, value_t manual_type = value_t::array) { // check if each element is an array with two elements whose first // element is a string bool is_an_object = std::all_of(init.begin(), init.end(), [](const detail::json_ref<basic_json>& element_ref) { // The cast is to ensure op[size_type] is called, bearing in mind size_type may not be int; // (many string types can be constructed from 0 via its null-pointer guise, so we get a // broken call to op[key_type], the wrong semantics and a 4804 warning on Windows) return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[static_cast<size_type>(0)].is_string(); }); // adjust type if type deduction is not wanted if (!type_deduction) { // if array is wanted, do not create an object though possible if (manual_type == value_t::array) { is_an_object = false; } // if object is wanted but impossible, throw an exception if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object)) { JSON_THROW(type_error::create(301, "cannot create object from initializer list", nullptr)); } } if (is_an_object) { // the initializer list is a list of pairs -> create object m_data.m_type = value_t::object; m_data.m_value = value_t::object; for (auto& element_ref : init) { auto element = element_ref.moved_or_copied(); m_data.m_value.object->emplace( std::move(*((*element.m_data.m_value.array)[0].m_data.m_value.string)), std::move((*element.m_data.m_value.array)[1])); } } else { // the initializer list describes an array -> create array m_data.m_type = value_t::array; m_data.m_value.array = create<array_t>(init.begin(), init.end()); } set_parents(); assert_invariant(); }
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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>, bool, nlohmann::json_abi_v3_11_3::detail::value_t): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movl %r8d, %ebp movl %ecx, %r12d movq %rsi, %r14 movq %rdi, %rbx imulq $0x18, %rdx, %r13 leaq (%rsi,%r13), %r15 xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movq %rsi, %rdi movq %r15, %rsi callq 0x78a38 testb %r12b, %r12b jne 0x5d34e cmpb $0x2, %bpl setne %cl cmpb $0x1, %bpl setne %dl orb %al, %dl je 0x5d3d2 andb %cl, %al testb %al, %al je 0x5d39e movb $0x1, (%rbx) callq 0x3e404 movq %rax, 0x8(%rbx) leaq 0x8(%rsp), %r15 testq %r13, %r13 je 0x5d3b8 movq %r15, %rdi movq %r14, %rsi callq 0x78b30 movq 0x8(%rbx), %rdi movq 0x10(%rsp), %rax movq (%rax), %rdx movq 0x8(%rdx), %rsi addq $0x10, %rdx callq 0x44322 movq %r15, %rdi callq 0x3de32 addq $0x18, %r14 addq $-0x18, %r13 jmp 0x5d363 movb $0x2, (%rbx) leaq 0x8(%rsp), %rdi movq %r14, (%rdi) movq %rsp, %rsi movq %r15, (%rsi) callq 0x78b52 movq %rax, 0x8(%rbx) pushq $0x1 popq %rsi movq %rbx, %rdi callq 0x3e30c addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x23450 movq %rax, %r14 leaq 0x57891(%rip), %rsi # 0xb4c75 leaq 0x8(%rsp), %rdi movq %rsp, %rdx callq 0x27c44 movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %r14, %rdi movl $0x12d, %esi # imm = 0x12D xorl %ecx, %ecx callq 0x78a4a xorl %ebp, %ebp leaq 0x9eb37(%rip), %rsi # 0xfbf48 leaq -0x1ca9a(%rip), %rdx # 0x4097e movq %r14, %rdi callq 0x23f20 jmp 0x5d426 jmp 0x5d426 jmp 0x5d426 movq %rax, %r15 jmp 0x5d459 movq %rax, %r15 leaq 0x8(%rsp), %rdi callq 0x3de32 jmp 0x5d459 movq %rax, %r15 leaq 0x8(%rsp), %rdi callq 0x241f8 testb %bpl, %bpl jne 0x5d451 jmp 0x5d459 movq %rax, %r15 movq %r14, %rdi callq 0x23690 movq %rbx, %rdi callq 0x42fee movq %r15, %rdi callq 0x23fb0 nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE: push rbp; int push r15; char push r14; int push r13; int push r12; int push rbx; char sub rsp, 28h mov ebp, r8d mov r12d, ecx mov r14, rsi mov rbx, rdi imul r13, rdx, 18h lea r15, [rsi+r13] xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 mov rdi, rsi mov rsi, r15 call _ZSt6all_ofIPKN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEZNSG_C1ESt16initializer_listISH_EbNS2_7value_tEEUlRSI_E_EbT_SP_T0_; std::all_of<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> 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::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)#1}>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> 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::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)#1}) test r12b, r12b jnz short loc_5D34E cmp bpl, 2 setnz cl cmp bpl, 1 setnz dl or dl, al jz loc_5D3D2 and al, cl loc_5D34E: test al, al jz short loc_5D39E mov byte ptr [rbx], 1 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createINS2_IS9_SD_St4lessIvESaISt4pairIKS9_SD_EEEEJEEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>() mov [rbx+8], rax lea r15, [rsp+58h+var_50] loc_5D363: test r13, r13 jz short loc_5D3B8 mov rdi, r15 mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void) mov rdi, [rbx+8] mov rax, [rsp+58h+var_48] mov rdx, [rax] mov rsi, [rdx+8] add rdx, 10h call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::emplace(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>&&) mov rdi, r15 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() add r14, 18h add r13, 0FFFFFFFFFFFFFFE8h jmp short loc_5D363 loc_5D39E: mov byte ptr [rbx], 2 lea rdi, [rsp+58h+var_50] mov [rdi], r14 mov rsi, rsp mov [rsi], r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJPKNS0_6detail8json_refISD_EESL_EEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const* &&) mov [rbx+8], rax loc_5D3B8: push 1 pop rsi mov rdi, rbx 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) add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_5D3D2: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aCannotCreateOb; "cannot create object from initializer l"... lea rdi, [rsp+58h+var_50] mov rdx, rsp call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov bpl, 1 lea rdx, [rsp+58h+var_50] mov rdi, r14; this mov esi, 12Dh; int xor ecx, ecx call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short loc_5D426 jmp short loc_5D426 jmp short $+2 loc_5D426: mov r15, rax jmp short loc_5D459 mov r15, 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() jmp short loc_5D459 mov r15, rax lea rdi, [rsp+58h+var_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_5D451 jmp short loc_5D459 mov r15, rax loc_5D451: mov rdi, r14; void * call ___cxa_free_exception loc_5D459: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, r15 call __Unwind_Resume
basic_json: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV EBP,R8D MOV R12D,ECX MOV R14,RSI MOV RBX,RDI IMUL R13,RDX,0x18 LEA R15,[RSI + R13*0x1] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 LAB_0015d326: MOV RDI,RSI MOV RSI,R15 CALL 0x00178a38 TEST R12B,R12B JNZ 0x0015d34e CMP BPL,0x2 SETNZ CL CMP BPL,0x1 SETNZ DL OR DL,AL JZ 0x0015d3d2 AND AL,CL LAB_0015d34e: TEST AL,AL JZ 0x0015d39e MOV byte ptr [RBX],0x1 LAB_0015d355: CALL 0x0013e404 MOV qword ptr [RBX + 0x8],RAX LEA R15,[RSP + 0x8] LAB_0015d363: TEST R13,R13 JZ 0x0015d3b8 LAB_0015d368: MOV RDI,R15 MOV RSI,R14 CALL 0x00178b30 MOV RDI,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RAX] MOV RSI,qword ptr [RDX + 0x8] ADD RDX,0x10 LAB_0015d387: CALL 0x00144322 MOV RDI,R15 CALL 0x0013de32 ADD R14,0x18 ADD R13,-0x18 JMP 0x0015d363 LAB_0015d39e: MOV byte ptr [RBX],0x2 LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],R14 MOV RSI,RSP MOV qword ptr [RSI],R15 LAB_0015d3af: CALL 0x00178b52 LAB_0015d3b4: MOV qword ptr [RBX + 0x8],RAX LAB_0015d3b8: PUSH 0x1 POP RSI MOV RDI,RBX CALL 0x0013e30c ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0015d3d2: PUSH 0x20 POP RDI CALL 0x00123450 MOV R14,RAX LAB_0015d3dd: LEA RSI,[0x1b4c75] LEA RDI,[RSP + 0x8] MOV RDX,RSP CALL 0x00127c44 MOV BPL,0x1 LAB_0015d3f4: LEA RDX,[RSP + 0x8] MOV RDI,R14 MOV ESI,0x12d XOR ECX,ECX CALL 0x00178a4a XOR EBP,EBP LEA RSI,[0x1fbf48] LEA RDX,[0x14097e] MOV RDI,R14 CALL 0x00123f20
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > >, bool, nlohmann::json_abi_v3_11_3::detail::value_t) */ void nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(int8 *param_1,json_ref *param_2,long param_3,char param_4,char param_5) { bool bVar1; ordered_map *poVar2; vector *pvVar3; int8 uVar4; json_ref *local_58; json_ref *local_50; long *local_48; param_3 = param_3 * 0x18; *param_1 = 0; param_1[1] = 0; /* try { // try from 0015d326 to 0015d330 has its CatchHandler @ 0015d424 */ bVar1 = std:: all_of<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>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>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::_lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const&)_1_> (param_2,param_2 + param_3); if (param_4 == '\0') { if (param_5 == '\x01' && !bVar1) { uVar4 = __cxa_allocate_exception(0x20); /* try { // try from 0015d3dd to 0015d3f0 has its CatchHandler @ 0015d44e */ std::__cxx11::string::string<std::allocator<char>> ((string *)&local_50,"cannot create object from initializer list", (allocator *)&local_58); /* try { // try from 0015d3f4 to 0015d41f has its CatchHandler @ 0015d43a */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (uVar4,0x12d,&local_50,0); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&detail::type_error::typeinfo,detail::exception::~exception); } bVar1 = bVar1 && param_5 != '\x02'; } if (bVar1 == false) { *(int1 *)param_1 = 2; local_58 = param_2 + param_3; local_50 = param_2; /* try { // try from 0015d3af to 0015d3b3 has its CatchHandler @ 0015d420 */ pvVar3 = create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const*> (&local_50,&local_58); param_1[1] = pvVar3; } else { *(int1 *)param_1 = 1; /* try { // try from 0015d355 to 0015d359 has its CatchHandler @ 0015d422 */ poVar2 = create<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> (); param_1[1] = poVar2; for (; param_3 != 0; param_3 = param_3 + -0x18) { /* try { // try from 0015d368 to 0015d372 has its CatchHandler @ 0015d426 */ detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::moved_or_copied(); /* try { // try from 0015d387 to 0015d38b has its CatchHandler @ 0015d42b */ ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::emplace((ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)param_1[1],*(string **)(*local_48 + 8),(basic_json *)(*local_48 + 0x10)); ~basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); } } assert_invariant(SUB81(param_1,0)); return; }
17,607
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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>, bool, nlohmann::json_abi_v3_11_3::detail::value_t)
monkey531[P]llama/common/json.hpp
basic_json(initializer_list_t init, bool type_deduction = true, value_t manual_type = value_t::array) { // check if each element is an array with two elements whose first // element is a string bool is_an_object = std::all_of(init.begin(), init.end(), [](const detail::json_ref<basic_json>& element_ref) { // The cast is to ensure op[size_type] is called, bearing in mind size_type may not be int; // (many string types can be constructed from 0 via its null-pointer guise, so we get a // broken call to op[key_type], the wrong semantics and a 4804 warning on Windows) return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[static_cast<size_type>(0)].is_string(); }); // adjust type if type deduction is not wanted if (!type_deduction) { // if array is wanted, do not create an object though possible if (manual_type == value_t::array) { is_an_object = false; } // if object is wanted but impossible, throw an exception if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object)) { JSON_THROW(type_error::create(301, "cannot create object from initializer list", nullptr)); } } if (is_an_object) { // the initializer list is a list of pairs -> create object m_data.m_type = value_t::object; m_data.m_value = value_t::object; for (auto& element_ref : init) { auto element = element_ref.moved_or_copied(); m_data.m_value.object->emplace( std::move(*((*element.m_data.m_value.array)[0].m_data.m_value.string)), std::move((*element.m_data.m_value.array)[1])); } } else { // the initializer list describes an array -> create array m_data.m_type = value_t::array; m_data.m_value.array = create<array_t>(init.begin(), init.end()); } set_parents(); assert_invariant(); }
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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>, bool, nlohmann::json_abi_v3_11_3::detail::value_t): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movl %r8d, %ebp movl %ecx, %r13d movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx leaq (%rdx,%rdx,2), %rax leaq (%rsi,%rax,8), %r12 xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movq %rsi, %rdi movq %r12, %rsi callq 0xa1b90 cmpq %r12, %rax sete %cl testb %r13b, %r13b jne 0x7f5bb cmpq %r12, %rax sete %al cmpb $0x2, %bpl setne %cl cmpb $0x1, %bpl setne %dl orb %al, %dl je 0x7f666 andb %al, %cl testb %cl, %cl je 0x7f630 movb $0x1, (%rbx) movl $0x20, %edi callq 0x1a8b0 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) movq %rax, 0x8(%rbx) testq %r15, %r15 je 0x7f64a shlq $0x3, %r15 leaq (%r15,%r15,2), %r12 movq %rsp, %r15 movq %r15, %rdi movq %r14, %rsi callq 0xa1aea movq 0x8(%rbx), %rdi movq 0x8(%rsp), %rax movq (%rax), %rdx movq 0x8(%rdx), %rsi addq $0x10, %rdx callq 0x5fd56 movq %r15, %rdi xorl %esi, %esi callq 0x59184 movq %r15, %rdi callq 0x5e672 addq $0x18, %r14 addq $-0x18, %r12 jne 0x7f5ee jmp 0x7f64a movb $0x2, (%rbx) movq %rsp, %rdi movq %r14, (%rdi) leaq 0x20(%rsp), %rsi movq %r12, (%rsi) callq 0xa1b3c movq %rax, 0x8(%rbx) movq %rbx, %rdi movl $0x1, %esi callq 0x59184 addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x1a430 movq %rax, %r14 leaq 0x10(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x71651(%rip), %rsi # 0xf0cd5 leaq 0x71674(%rip), %rdx # 0xf0cff movq %rsp, %rdi callq 0x224a4 movb $0x1, %bpl movq %rsp, %rdx movq %r14, %rdi movl $0x12d, %esi # imm = 0x12D xorl %ecx, %ecx callq 0xa191a xorl %ebp, %ebp leaq 0xaa8a7(%rip), %rsi # 0x129f58 leaq -0x23db6(%rip), %rdx # 0x5b902 movq %r14, %rdi callq 0x1af20 jmp 0x7f6c6 jmp 0x7f6c6 jmp 0x7f6c6 movq %rax, %r15 jmp 0x7f710 movq %rax, %r15 movq %rsp, %r14 movq %r14, %rdi xorl %esi, %esi callq 0x59184 movq %r14, %rdi callq 0x5e672 jmp 0x7f710 movq %rax, %r15 movq (%rsp), %rdi cmpq %r12, %rdi je 0x7f6fe movq 0x10(%rsp), %rsi incq %rsi callq 0x1a8e0 testb %bpl, %bpl jne 0x7f708 jmp 0x7f710 movq %rax, %r15 movq %r14, %rdi callq 0x1a670 movq %rbx, %rdi callq 0x5e672 movq %r15, %rdi callq 0x1afb0
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE: push rbp; int push r15; int push r14; char push r13; int push r12; __int64 push rbx; int sub rsp, 28h mov ebp, r8d mov r13d, ecx mov r15, rdx mov r14, rsi mov rbx, rdi lea rax, [rdx+rdx*2] lea r12, [rsi+rax*8] xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 mov rdi, rsi mov rsi, r12 call _ZSt9__find_ifIPKN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEN9__gnu_cxx5__ops12_Iter_negateIZNSG_C1ESt16initializer_listISH_EbNS2_7value_tEEUlRSI_E_EEET_ST_ST_T0_St26random_access_iterator_tag; std::__find_if<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,__gnu_cxx::__ops::_Iter_negate<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)#1}>>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,__gnu_cxx::__ops::_Iter_negate<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)#1}>,std::random_access_iterator_tag) cmp rax, r12 setz cl test r13b, r13b jnz short loc_7F5BB cmp rax, r12 setz al cmp bpl, 2 setnz cl cmp bpl, 1 setnz dl or dl, al jz loc_7F666 and cl, al loc_7F5BB: test cl, cl jz short loc_7F630 mov byte ptr [rbx], 1 mov edi, 20h ; ' '; unsigned __int64 call __Znwm; operator new(ulong) xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 mov qword ptr [rax+10h], 0 mov [rbx+8], rax test r15, r15 jz short loc_7F64A shl r15, 3 lea r12, [r15+r15*2] mov r15, rsp loc_7F5EE: mov rdi, r15 mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void) mov rdi, [rbx+8] mov rax, [rsp+58h+var_50] mov rdx, [rax] mov rsi, [rdx+8] add rdx, 10h call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::emplace(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>&&) mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r14, 18h add r12, 0FFFFFFFFFFFFFFE8h jnz short loc_7F5EE jmp short loc_7F64A loc_7F630: mov byte ptr [rbx], 2 mov rdi, rsp mov [rdi], r14 lea rsi, [rsp+58h+var_38] mov [rsi], r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJPKNS0_6detail8json_refISD_EESL_EEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const* &&) mov [rbx+8], rax loc_7F64A: mov rdi, rbx mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7F666: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov r14, rax lea r12, [rsp+58h+var_48] mov [r12-10h], r12 lea rsi, aCannotCreateOb; "cannot create object from initializer l"... lea rdx, aCannotCreateOb+2Ah; "" mov rdi, rsp call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov bpl, 1 mov rdx, rsp mov rdi, r14; this mov esi, 12Dh; int xor ecx, ecx call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short loc_7F6C6 jmp short loc_7F6C6 jmp short $+2 loc_7F6C6: mov r15, rax jmp short loc_7F710 mov r15, rax mov r14, rsp mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_7F710 mov r15, rax mov rdi, [rsp+58h+var_58]; void * cmp rdi, r12 jz short loc_7F6FE mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7F6FE: test bpl, bpl jnz short loc_7F708 jmp short loc_7F710 mov r15, rax loc_7F708: mov rdi, r14; void * call ___cxa_free_exception loc_7F710: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, r15 call __Unwind_Resume
basic_json: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV EBP,R8D MOV R13D,ECX MOV R15,RDX MOV R14,RSI MOV RBX,RDI LEA RAX,[RDX + RDX*0x2] LEA R12,[RSI + RAX*0x8] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 LAB_0017f587: MOV RDI,RSI MOV RSI,R12 CALL 0x001a1b90 CMP RAX,R12 SETZ CL TEST R13B,R13B JNZ 0x0017f5bb CMP RAX,R12 SETZ AL CMP BPL,0x2 SETNZ CL CMP BPL,0x1 SETNZ DL OR DL,AL JZ 0x0017f666 AND CL,AL LAB_0017f5bb: TEST CL,CL JZ 0x0017f630 MOV byte ptr [RBX],0x1 LAB_0017f5c2: MOV EDI,0x20 CALL 0x0011a8b0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x10],0x0 MOV qword ptr [RBX + 0x8],RAX TEST R15,R15 JZ 0x0017f64a SHL R15,0x3 LEA R12,[R15 + R15*0x2] MOV R15,RSP LAB_0017f5ee: MOV RDI,R15 MOV RSI,R14 CALL 0x001a1aea MOV RDI,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RAX] MOV RSI,qword ptr [RDX + 0x8] ADD RDX,0x10 LAB_0017f60d: CALL 0x0015fd56 MOV RDI,R15 XOR ESI,ESI CALL 0x00159184 MOV RDI,R15 CALL 0x0015e672 ADD R14,0x18 ADD R12,-0x18 JNZ 0x0017f5ee JMP 0x0017f64a LAB_0017f630: MOV byte ptr [RBX],0x2 MOV RDI,RSP MOV qword ptr [RDI],R14 LEA RSI,[RSP + 0x20] MOV qword ptr [RSI],R12 LAB_0017f641: CALL 0x001a1b3c LAB_0017f646: MOV qword ptr [RBX + 0x8],RAX LAB_0017f64a: MOV RDI,RBX MOV ESI,0x1 CALL 0x00159184 ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017f666: MOV EDI,0x20 CALL 0x0011a430 MOV R14,RAX LEA R12,[RSP + 0x10] MOV qword ptr [R12 + -0x10],R12 LAB_0017f67d: LEA RSI,[0x1f0cd5] LEA RDX,[0x1f0cff] MOV RDI,RSP CALL 0x001224a4 MOV BPL,0x1 LAB_0017f696: MOV RDX,RSP MOV RDI,R14 MOV ESI,0x12d XOR ECX,ECX CALL 0x001a191a XOR EBP,EBP LEA RSI,[0x229f58] LEA RDX,[0x15b902] MOV RDI,R14 CALL 0x0011af20
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > >, bool, nlohmann::json_abi_v3_11_3::detail::value_t) */ void nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(int8 *param_1,json_ref *param_2,long param_3,char param_4,char param_5) { json_ref *pjVar1; json_ref *pjVar2; int8 *puVar3; vector *pvVar4; int8 uVar5; bool bVar6; json_ref *local_58; long *local_50; json_ref local_48 [16]; json_ref *local_38; pjVar1 = param_2 + param_3 * 0x18; *param_1 = 0; param_1[1] = 0; /* try { // try from 0017f587 to 0017f591 has its CatchHandler @ 0017f6c4 */ pjVar2 = std:: __find_if<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const*,__gnu_cxx::__ops::_Iter_negate<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>::_Iter_negate(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::_lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const&)_1_>> (param_2,pjVar1); bVar6 = pjVar2 == pjVar1; if (param_4 == '\0') { if (param_5 == '\x01' && pjVar2 != pjVar1) { uVar5 = __cxa_allocate_exception(0x20); local_58 = local_48; /* try { // try from 0017f67d to 0017f692 has its CatchHandler @ 0017f705 */ std::__cxx11::string::_M_construct<char_const*> (&local_58,"cannot create object from initializer list",""); /* try { // try from 0017f696 to 0017f6bf has its CatchHandler @ 0017f6e5 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (uVar5,0x12d,&local_58,0); /* WARNING: Subroutine does not return */ __cxa_throw(uVar5,&detail::type_error::typeinfo,detail::exception::~exception); } bVar6 = param_5 != '\x02' && pjVar2 == pjVar1; } if (bVar6) { *(int1 *)param_1 = 1; /* try { // try from 0017f5c2 to 0017f5cb has its CatchHandler @ 0017f6c2 */ puVar3 = (int8 *)operator_new(0x20); *puVar3 = 0; puVar3[1] = 0; puVar3[2] = 0; param_1[1] = puVar3; if (param_3 != 0) { param_3 = param_3 * 0x18; do { /* try { // try from 0017f5ee to 0017f5f8 has its CatchHandler @ 0017f6c6 */ detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::moved_or_copied(); /* try { // try from 0017f60d to 0017f611 has its CatchHandler @ 0017f6cb */ ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::emplace((ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)param_1[1],*(string **)(*local_50 + 8),(basic_json *)(*local_50 + 0x10)); assert_invariant(SUB81(&local_58,0)); data::~data((data *)&local_58); param_3 = param_3 + -0x18; } while (param_3 != 0); } } else { *(int1 *)param_1 = 2; local_58 = param_2; local_38 = pjVar1; /* try { // try from 0017f641 to 0017f645 has its CatchHandler @ 0017f6c0 */ pvVar4 = create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const*> (&local_58,&local_38); param_1[1] = pvVar4; } assert_invariant(SUB81(param_1,0)); return; }
17,608
resize_simple_key_cache
eloqsql/mysys/mf_keycache.c
static int resize_simple_key_cache(SIMPLE_KEY_CACHE_CB *keycache, uint key_cache_block_size, size_t use_mem, uint division_limit, uint age_threshold, uint changed_blocks_hash_size) { int blocks= 0; DBUG_ENTER("resize_simple_key_cache"); DBUG_ASSERT(keycache->key_cache_inited); /* Note that the cache_lock mutex and the resize_queue are left untouched. We do not lose the cache_lock and will release it only at the end of this function. */ if (prepare_resize_simple_key_cache(keycache, 0)) goto finish; /* The following will work even if use_mem is 0 */ blocks= init_simple_key_cache(keycache, key_cache_block_size, use_mem, division_limit, age_threshold, changed_blocks_hash_size); finish: finish_resize_simple_key_cache(keycache); DBUG_RETURN(blocks); }
O0
c
resize_simple_key_cache: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movl %r8d, -0x20(%rbp) movl %r9d, -0x24(%rbp) movl $0x0, -0x28(%rbp) jmp 0xedb87 movq -0x8(%rbp), %rdi xorl %esi, %esi callq 0xee900 cmpl $0x0, %eax je 0xedb99 jmp 0xedbb7 movq -0x8(%rbp), %rdi movl -0xc(%rbp), %esi movq -0x18(%rbp), %rdx movl -0x1c(%rbp), %ecx movl -0x20(%rbp), %r8d movl -0x24(%rbp), %r9d callq 0xed530 movl %eax, -0x28(%rbp) movq -0x8(%rbp), %rdi callq 0xeea20 movl -0x28(%rbp), %eax movl %eax, -0x2c(%rbp) movl -0x2c(%rbp), %eax addq $0x30, %rsp popq %rbp retq nop
resize_simple_key_cache: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx mov [rbp+var_20], r8d mov [rbp+var_24], r9d mov [rbp+var_28], 0 jmp short $+2 loc_EDB87: mov rdi, [rbp+var_8] xor esi, esi call prepare_resize_simple_key_cache cmp eax, 0 jz short loc_EDB99 jmp short loc_EDBB7 loc_EDB99: mov rdi, [rbp+var_8] mov esi, [rbp+var_C] mov rdx, [rbp+var_18] mov ecx, [rbp+var_1C] mov r8d, [rbp+var_20] mov r9d, [rbp+var_24] call init_simple_key_cache mov [rbp+var_28], eax loc_EDBB7: mov rdi, [rbp+var_8] call finish_resize_simple_key_cache mov eax, [rbp+var_28] mov [rbp+var_2C], eax mov eax, [rbp+var_2C] add rsp, 30h pop rbp retn
long long resize_simple_key_cache( long long a1, unsigned int a2, unsigned long long a3, unsigned int a4, unsigned int a5, unsigned int a6) { unsigned int inited; // [rsp+8h] [rbp-28h] inited = 0; if ( !(unsigned int)prepare_resize_simple_key_cache(a1, 0LL) ) inited = init_simple_key_cache(a1, a2, a3, a4, a5, a6); finish_resize_simple_key_cache(a1); return inited; }
resize_simple_key_cache: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV dword ptr [RBP + -0x20],R8D MOV dword ptr [RBP + -0x24],R9D MOV dword ptr [RBP + -0x28],0x0 JMP 0x001edb87 LAB_001edb87: MOV RDI,qword ptr [RBP + -0x8] XOR ESI,ESI CALL 0x001ee900 CMP EAX,0x0 JZ 0x001edb99 JMP 0x001edbb7 LAB_001edb99: MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0xc] MOV RDX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x1c] MOV R8D,dword ptr [RBP + -0x20] MOV R9D,dword ptr [RBP + -0x24] CALL 0x001ed530 MOV dword ptr [RBP + -0x28],EAX LAB_001edbb7: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001eea20 MOV EAX,dword ptr [RBP + -0x28] MOV dword ptr [RBP + -0x2c],EAX MOV EAX,dword ptr [RBP + -0x2c] ADD RSP,0x30 POP RBP RET
int4 resize_simple_key_cache (int8 param_1,int4 param_2,int8 param_3,int4 param_4, int4 param_5,int4 param_6) { int iVar1; int4 local_30; local_30 = 0; iVar1 = prepare_resize_simple_key_cache(param_1,0); if (iVar1 == 0) { local_30 = init_simple_key_cache(param_1,param_2,param_3,param_4,param_5,param_6); } finish_resize_simple_key_cache(param_1); return local_30; }
17,609
my_hash_first_from_hash_value
eloqsql/mysys/hash.c
uchar* my_hash_first_from_hash_value(const HASH *hash, my_hash_value_type hash_value, const uchar *key, size_t length, HASH_SEARCH_STATE *current_record) { HASH_LINK *pos; DBUG_ENTER("my_hash_first_from_hash_value"); if (hash->records) { uint flag= 1; uint idx= my_hash_mask(hash_value, hash->blength, hash->records); do { pos= dynamic_element(&hash->array,idx,HASH_LINK*); if (!hashcmp(hash,pos,key,length)) { DBUG_PRINT("exit",("found key at %d",idx)); *current_record= idx; DBUG_RETURN (pos->data); } if (flag) { flag=0; /* Reset flag */ if (my_hash_rec_mask(pos, hash->blength, hash->records) != idx) break; /* Wrong link */ } } while ((idx=pos->next) != NO_RECORD); } *current_record= NO_RECORD; DBUG_RETURN(0); }
O0
c
my_hash_first_from_hash_value: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq -0x10(%rbp), %rax cmpq $0x0, 0x18(%rax) je 0xe253c movl $0x1, -0x3c(%rbp) movl -0x14(%rbp), %edi movq -0x10(%rbp), %rax movq 0x10(%rax), %rsi movq -0x10(%rbp), %rax movq 0x18(%rax), %rdx callq 0xe2560 movl %eax, -0x40(%rbp) movq -0x10(%rbp), %rax movq 0x28(%rax), %rax movl -0x40(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x28(%rbp), %rcx callq 0xe25b0 cmpl $0x0, %eax jne 0xe24f7 jmp 0xe24de jmp 0xe24e0 movl -0x40(%rbp), %ecx movq -0x30(%rbp), %rax movl %ecx, (%rax) movq -0x38(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x8(%rbp) jmp 0xe254e cmpl $0x0, -0x3c(%rbp) je 0xe2526 movl $0x0, -0x3c(%rbp) movq -0x38(%rbp), %rdi movq -0x10(%rbp), %rax movq 0x10(%rax), %rsi movq -0x10(%rbp), %rax movq 0x18(%rax), %rdx callq 0xe2650 cmpl -0x40(%rbp), %eax je 0xe2524 jmp 0xe253a jmp 0xe2526 jmp 0xe2528 movq -0x38(%rbp), %rax movl (%rax), %eax movl %eax, -0x40(%rbp) cmpl $-0x1, %eax jne 0xe24ac jmp 0xe253c movq -0x30(%rbp), %rax movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopl (%rax,%rax)
my_hash_first_from_hash_value: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov rax, [rbp+var_10] cmp qword ptr [rax+18h], 0 jz loc_E253C mov [rbp+var_3C], 1 mov edi, [rbp+var_14] mov rax, [rbp+var_10] mov rsi, [rax+10h] mov rax, [rbp+var_10] mov rdx, [rax+18h] call my_hash_mask mov [rbp+var_40], eax loc_E24AC: mov rax, [rbp+var_10] mov rax, [rax+28h] mov ecx, [rbp+var_40] shl rcx, 4 add rax, rcx mov [rbp+var_38], rax mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] mov rdx, [rbp+var_20] mov rcx, [rbp+var_28] call hashcmp cmp eax, 0 jnz short loc_E24F7 jmp short $+2 loc_E24DE: jmp short $+2 loc_E24E0: mov ecx, [rbp+var_40] mov rax, [rbp+var_30] mov [rax], ecx mov rax, [rbp+var_38] mov rax, [rax+8] mov [rbp+var_8], rax jmp short loc_E254E loc_E24F7: cmp [rbp+var_3C], 0 jz short loc_E2526 mov [rbp+var_3C], 0 mov rdi, [rbp+var_38] mov rax, [rbp+var_10] mov rsi, [rax+10h] mov rax, [rbp+var_10] mov rdx, [rax+18h] call my_hash_rec_mask cmp eax, [rbp+var_40] jz short loc_E2524 jmp short loc_E253A loc_E2524: jmp short $+2 loc_E2526: jmp short $+2 loc_E2528: mov rax, [rbp+var_38] mov eax, [rax] mov [rbp+var_40], eax cmp eax, 0FFFFFFFFh jnz loc_E24AC loc_E253A: jmp short $+2 loc_E253C: mov rax, [rbp+var_30] mov dword ptr [rax], 0FFFFFFFFh mov [rbp+var_8], 0 loc_E254E: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
long long my_hash_first_from_hash_value(_QWORD *a1, unsigned int a2, long long a3, long long a4, unsigned int *a5) { unsigned int v6; // [rsp+0h] [rbp-40h] int v7; // [rsp+4h] [rbp-3Ch] long long v8; // [rsp+8h] [rbp-38h] if ( a1[3] ) { v7 = 1; v6 = my_hash_mask(a2, a1[2], a1[3]); while ( 1 ) { v8 = 16LL * v6 + a1[5]; if ( !(unsigned int)hashcmp(a1, v8, a3, a4) ) break; if ( !v7 || (v7 = 0, (unsigned int)my_hash_rec_mask(v8, a1[2], a1[3]) == v6) ) { v6 = *(_DWORD *)v8; if ( *(_DWORD *)v8 != -1 ) continue; } goto LABEL_8; } *a5 = v6; return *(_QWORD *)(v8 + 8); } else { LABEL_8: *a5 = -1; return 0LL; } }
my_hash_first_from_hash_value: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x18],0x0 JZ 0x001e253c MOV dword ptr [RBP + -0x3c],0x1 MOV EDI,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x18] CALL 0x001e2560 MOV dword ptr [RBP + -0x40],EAX LAB_001e24ac: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x28] MOV ECX,dword ptr [RBP + -0x40] SHL RCX,0x4 ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x28] CALL 0x001e25b0 CMP EAX,0x0 JNZ 0x001e24f7 JMP 0x001e24de LAB_001e24de: JMP 0x001e24e0 LAB_001e24e0: MOV ECX,dword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x8],RAX JMP 0x001e254e LAB_001e24f7: CMP dword ptr [RBP + -0x3c],0x0 JZ 0x001e2526 MOV dword ptr [RBP + -0x3c],0x0 MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x18] CALL 0x001e2650 CMP EAX,dword ptr [RBP + -0x40] JZ 0x001e2524 JMP 0x001e253a LAB_001e2524: JMP 0x001e2526 LAB_001e2526: JMP 0x001e2528 LAB_001e2528: MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x40],EAX CMP EAX,-0x1 JNZ 0x001e24ac LAB_001e253a: JMP 0x001e253c LAB_001e253c: MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RAX],0xffffffff MOV qword ptr [RBP + -0x8],0x0 LAB_001e254e: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
int8 my_hash_first_from_hash_value (long param_1,int4 param_2,int8 param_3,int8 param_4,uint *param_5) { bool bVar1; int iVar2; uint uVar3; uint *puVar4; uint local_48; if (*(long *)(param_1 + 0x18) != 0) { bVar1 = true; local_48 = my_hash_mask(param_2,*(int8 *)(param_1 + 0x10),*(int8 *)(param_1 + 0x18)) ; do { puVar4 = (uint *)(*(long *)(param_1 + 0x28) + (ulong)local_48 * 0x10); iVar2 = hashcmp(param_1,puVar4,param_3,param_4); if (iVar2 == 0) { *param_5 = local_48; return *(int8 *)(puVar4 + 2); } if (bVar1) { bVar1 = false; uVar3 = my_hash_rec_mask(puVar4,*(int8 *)(param_1 + 0x10), *(int8 *)(param_1 + 0x18)); if (uVar3 != local_48) break; } local_48 = *puVar4; } while (local_48 != 0xffffffff); } *param_5 = 0xffffffff; return 0; }
17,610
my_caseup_utf32
eloqsql/strings/ctype-ucs2.c
static size_t my_caseup_utf32(CHARSET_INFO *cs, const char *src, size_t srclen, char *dst, size_t dstlen) { my_wc_t wc; int res; const char *srcend= src + srclen; char *dstend= dst + dstlen; MY_UNICASE_INFO *uni_plane= cs->caseinfo; DBUG_ASSERT(srclen <= dstlen); while ((src < srcend) && (res= my_utf32_uni(cs, &wc, (uchar *)src, (uchar*) srcend)) > 0) { my_toupper_utf32(uni_plane, &wc); if (res != my_uni_utf32(cs, wc, (uchar*) dst, (uchar*) dstend)) break; src+= res; dst+= res; } return srclen; }
O0
c
my_caseup_utf32: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x20(%rbp), %rax addq -0x28(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x8(%rbp), %rax movq 0x78(%rax), %rax movq %rax, -0x50(%rbp) jmp 0x64642 jmp 0x64644 movq -0x10(%rbp), %rcx xorl %eax, %eax cmpq -0x40(%rbp), %rcx movb %al, -0x51(%rbp) jae 0x64674 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rdx movq -0x40(%rbp), %rcx leaq -0x30(%rbp), %rsi callq 0x64520 movl %eax, -0x34(%rbp) cmpl $0x0, %eax setg %al movb %al, -0x51(%rbp) movb -0x51(%rbp), %al testb $0x1, %al jne 0x6467d jmp 0x646d7 movq -0x50(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0x68810 movl -0x34(%rbp), %eax movl %eax, -0x58(%rbp) movq -0x8(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x48(%rbp), %rcx callq 0x64550 movl %eax, %ecx movl -0x58(%rbp), %eax cmpl %ecx, %eax je 0x646b0 jmp 0x646d7 movl -0x34(%rbp), %ecx movq -0x10(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) movl -0x34(%rbp), %ecx movq -0x20(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) jmp 0x64644 movq -0x18(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_caseup_utf32: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_40], rax mov rax, [rbp+var_20] add rax, [rbp+var_28] mov [rbp+var_48], rax mov rax, [rbp+var_8] mov rax, [rax+78h] mov [rbp+var_50], rax jmp short $+2 loc_64642: jmp short $+2 loc_64644: mov rcx, [rbp+var_10] xor eax, eax cmp rcx, [rbp+var_40] mov [rbp+var_51], al jnb short loc_64674 mov rdi, [rbp+var_8] mov rdx, [rbp+var_10] mov rcx, [rbp+var_40] lea rsi, [rbp+var_30] call my_utf32_uni mov [rbp+var_34], eax cmp eax, 0 setnle al mov [rbp+var_51], al loc_64674: mov al, [rbp+var_51] test al, 1 jnz short loc_6467D jmp short loc_646D7 loc_6467D: mov rdi, [rbp+var_50] lea rsi, [rbp+var_30] call my_toupper_utf32 mov eax, [rbp+var_34] mov [rbp+var_58], eax mov rdi, [rbp+var_8] mov rsi, [rbp+var_30] mov rdx, [rbp+var_20] mov rcx, [rbp+var_48] call my_uni_utf32 mov ecx, eax mov eax, [rbp+var_58] cmp eax, ecx jz short loc_646B0 jmp short loc_646D7 loc_646B0: mov ecx, [rbp+var_34] mov rax, [rbp+var_10] movsxd rcx, ecx add rax, rcx mov [rbp+var_10], rax mov ecx, [rbp+var_34] mov rax, [rbp+var_20] movsxd rcx, ecx add rax, rcx mov [rbp+var_20], rax jmp loc_64644 loc_646D7: mov rax, [rbp+var_18] add rsp, 60h pop rbp retn
long long my_caseup_utf32(long long a1, unsigned long long a2, long long a3, _BYTE *a4, long long a5, long long a6) { bool v7; // [rsp+Fh] [rbp-51h] long long v8; // [rsp+10h] [rbp-50h] unsigned long long v9; // [rsp+18h] [rbp-48h] unsigned long long v10; // [rsp+20h] [rbp-40h] int v11; // [rsp+2Ch] [rbp-34h] unsigned long long v12[2]; // [rsp+30h] [rbp-30h] BYREF _BYTE *v13; // [rsp+40h] [rbp-20h] long long v14; // [rsp+48h] [rbp-18h] unsigned long long v15; // [rsp+50h] [rbp-10h] long long v16; // [rsp+58h] [rbp-8h] v16 = a1; v15 = a2; v14 = a3; v13 = a4; v12[1] = a5; v10 = a3 + a2; v9 = (unsigned long long)&a4[a5]; v8 = *(_QWORD *)(a1 + 120); while ( 1 ) { v7 = 0; if ( v15 < v10 ) { v11 = my_utf32_uni(v16, (long long)v12, v15, v10, a5, a6); v7 = v11 > 0; } if ( !v7 ) break; my_toupper_utf32(v8, v12); if ( v11 != (unsigned int)my_uni_utf32(v16, v12[0], v13, v9) ) break; v15 += v11; v13 += v11; } return v14; }
my_caseup_utf32: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x78] MOV qword ptr [RBP + -0x50],RAX JMP 0x00164642 LAB_00164642: JMP 0x00164644 LAB_00164644: MOV RCX,qword ptr [RBP + -0x10] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x40] MOV byte ptr [RBP + -0x51],AL JNC 0x00164674 MOV RDI,qword ptr [RBP + -0x8] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x40] LEA RSI,[RBP + -0x30] CALL 0x00164520 MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 SETG AL MOV byte ptr [RBP + -0x51],AL LAB_00164674: MOV AL,byte ptr [RBP + -0x51] TEST AL,0x1 JNZ 0x0016467d JMP 0x001646d7 LAB_0016467d: MOV RDI,qword ptr [RBP + -0x50] LEA RSI,[RBP + -0x30] CALL 0x00168810 MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x58],EAX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x48] CALL 0x00164550 MOV ECX,EAX MOV EAX,dword ptr [RBP + -0x58] CMP EAX,ECX JZ 0x001646b0 JMP 0x001646d7 LAB_001646b0: MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX JMP 0x00164644 LAB_001646d7: MOV RAX,qword ptr [RBP + -0x18] ADD RSP,0x60 POP RBP RET
long my_caseup_utf32(long param_1,ulong param_2,long param_3,long param_4,long param_5) { int8 uVar1; bool bVar2; int iVar3; int local_3c; int8 local_38; long local_30; long local_28; long local_20; ulong local_18; long local_10; uVar1 = *(int8 *)(param_1 + 0x78); local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; while( true ) { bVar2 = false; if (local_18 < param_2 + param_3) { local_3c = my_utf32_uni(local_10,&local_38,local_18,param_2 + param_3); bVar2 = 0 < local_3c; } if (!bVar2) break; my_toupper_utf32(uVar1,&local_38); iVar3 = my_uni_utf32(local_10,local_38,local_28,param_4 + param_5); if (local_3c != iVar3) { return local_20; } local_18 = local_18 + (long)local_3c; local_28 = local_28 + local_3c; } return local_20; }
17,611
stbi__mad3sizes_valid
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image.h
static int stbi__mad3sizes_valid(int a, int b, int c, int add) { return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a*b, c) && stbi__addsizes_valid(a*b*c, add); }
O1
c
stbi__mad3sizes_valid: xorl %r9d, %r9d movl %esi, %eax orl %edi, %eax js 0x169ce movl %edx, %r8d testl %esi, %esi je 0x16995 xorl %r9d, %r9d movl $0x7fffffff, %eax # imm = 0x7FFFFFFF xorl %edx, %edx divl %esi cmpl %edi, %eax jl 0x169ce imull %edi, %esi movl %esi, %eax orl %r8d, %eax movl $0x0, %r9d js 0x169ce testl %r8d, %r8d je 0x169bb xorl %r9d, %r9d movl $0x7fffffff, %eax # imm = 0x7FFFFFFF xorl %edx, %edx divl %r8d cmpl %esi, %eax jl 0x169ce imull %r8d, %esi xorl $0x7fffffff, %ecx # imm = 0x7FFFFFFF xorl %r9d, %r9d cmpl %esi, %ecx setge %r9b movl %r9d, %eax retq
stbi__mad3sizes_valid: xor r9d, r9d mov eax, esi or eax, edi js short loc_169CE mov r8d, edx test esi, esi jz short loc_16995 xor r9d, r9d mov eax, 7FFFFFFFh xor edx, edx div esi cmp eax, edi jl short loc_169CE loc_16995: imul esi, edi mov eax, esi or eax, r8d mov r9d, 0 js short loc_169CE test r8d, r8d jz short loc_169BB xor r9d, r9d mov eax, 7FFFFFFFh xor edx, edx div r8d cmp eax, esi jl short loc_169CE loc_169BB: imul esi, r8d xor ecx, 7FFFFFFFh xor r9d, r9d cmp ecx, esi setnl r9b loc_169CE: mov eax, r9d retn
long long stbi__mad3sizes_valid(signed int a1, unsigned int a2, unsigned int a3, int a4) { unsigned int v4; // r9d int v5; // esi v4 = 0; if ( ((a1 | a2) & 0x80000000) == 0 ) { if ( !a2 || (v4 = 0, (int)(0x7FFFFFFF / a2) >= a1) ) { v5 = a1 * a2; v4 = 0; if ( ((a3 | v5) & 0x80000000) == 0 ) { if ( !a3 ) return (a4 ^ 0x7FFFFFFF) >= (int)(a3 * v5); v4 = 0; if ( (int)(0x7FFFFFFF / a3) >= v5 ) return (a4 ^ 0x7FFFFFFF) >= (int)(a3 * v5); } } } return v4; }
stbi__mad3sizes_valid: XOR R9D,R9D MOV EAX,ESI OR EAX,EDI JS 0x001169ce MOV R8D,EDX TEST ESI,ESI JZ 0x00116995 XOR R9D,R9D MOV EAX,0x7fffffff XOR EDX,EDX DIV ESI CMP EAX,EDI JL 0x001169ce LAB_00116995: IMUL ESI,EDI MOV EAX,ESI OR EAX,R8D MOV R9D,0x0 JS 0x001169ce TEST R8D,R8D JZ 0x001169bb XOR R9D,R9D MOV EAX,0x7fffffff XOR EDX,EDX DIV R8D CMP EAX,ESI JL 0x001169ce LAB_001169bb: IMUL ESI,R8D XOR ECX,0x7fffffff XOR R9D,R9D CMP ECX,ESI SETGE R9B LAB_001169ce: MOV EAX,R9D RET
int1 [16] stbi__mad3sizes_valid(uint param_1,uint param_2,ulong param_3,uint param_4) { ulong uVar1; uint uVar2; ulong uVar3; int1 auVar4 [16]; uVar3 = 0; uVar1 = param_3; if (-1 < (int)(param_2 | param_1)) { if (param_2 != 0) { uVar3 = 0; uVar1 = 0x7fffffff % (ulong)param_2; if ((int)(0x7fffffff / (ulong)param_2) < (int)param_1) goto LAB_001169ce; } param_2 = param_2 * param_1; uVar2 = (uint)param_3; uVar3 = 0; if (-1 < (int)(param_2 | uVar2)) { if (uVar2 != 0) { uVar3 = 0; uVar1 = 0x7fffffff % (param_3 & 0xffffffff); if ((int)(0x7fffffff / (param_3 & 0xffffffff)) < (int)param_2) goto LAB_001169ce; } uVar3 = (ulong)((int)(param_2 * uVar2) <= (int)(param_4 ^ 0x7fffffff)); } } LAB_001169ce: auVar4._8_8_ = uVar1; auVar4._0_8_ = uVar3; return auVar4; }
17,612
mthd_stmt_flush_unbuffered
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
void mthd_stmt_flush_unbuffered(MYSQL_STMT *stmt) { ulong packet_len; int in_resultset= stmt->state > MYSQL_STMT_EXECUTED && stmt->state < MYSQL_STMT_FETCH_DONE; while ((packet_len = ma_net_safe_read(stmt->mysql)) != packet_error) { uchar *pos= stmt->mysql->net.read_pos; if (!in_resultset && *pos == 0) /* OK */ { pos++; net_field_length(&pos); net_field_length(&pos); stmt->mysql->server_status= uint2korr(pos); goto end; } if (packet_len < 8 && *pos == 254) /* EOF */ { if (mariadb_connection(stmt->mysql)) { stmt->mysql->server_status= uint2korr(pos + 3); if (in_resultset) goto end; in_resultset= 1; } else goto end; } } end: stmt->state= MYSQL_STMT_FETCH_DONE; }
O3
c
mthd_stmt_flush_unbuffered: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movl 0x50(%rdi), %r12d movq 0x38(%rdi), %rdi callq 0x18533 movl $0xffffffff, %r14d # imm = 0xFFFFFFFF cmpq %r14, %rax je 0x217e2 addl $-0x3, %r12d xorl %r15d, %r15d cmpl $0x3, %r12d setb %r15b movq 0x38(%rbx), %rdi movq 0x20(%rdi), %r12 testl %r15d, %r15d jne 0x21777 cmpb $0x0, (%r12) je 0x217b8 cmpq $0x7, %rax ja 0x217ac cmpb $-0x2, (%r12) jne 0x217ac callq 0x188cf testb %al, %al je 0x217e2 movzwl 0x3(%r12), %eax movq 0x38(%rbx), %rcx movl %eax, 0x380(%rcx) testl %r15d, %r15d jne 0x217e2 movq 0x38(%rbx), %rdi movl $0x1, %r15d callq 0x18533 cmpq %r14, %rax jne 0x21763 jmp 0x217e2 incq %r12 leaq -0x28(%rbp), %r14 movq %r12, (%r14) movq %r14, %rdi callq 0x18911 movq %r14, %rdi callq 0x18911 movq (%r14), %rax movzwl (%rax), %eax movq 0x38(%rbx), %rcx movl %eax, 0x380(%rcx) movl $0x6, 0x50(%rbx) addq $0x10, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
mthd_stmt_flush_unbuffered: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 10h mov rbx, rdi mov r12d, [rdi+50h] mov rdi, [rdi+38h] call ma_net_safe_read mov r14d, 0FFFFFFFFh cmp rax, r14 jz loc_217E2 add r12d, 0FFFFFFFDh xor r15d, r15d cmp r12d, 3 setb r15b loc_21763: mov rdi, [rbx+38h] mov r12, [rdi+20h] test r15d, r15d jnz short loc_21777 cmp byte ptr [r12], 0 jz short loc_217B8 loc_21777: cmp rax, 7 ja short loc_217AC cmp byte ptr [r12], 0FEh jnz short loc_217AC call mariadb_connection test al, al jz short loc_217E2 movzx eax, word ptr [r12+3] mov rcx, [rbx+38h] mov [rcx+380h], eax test r15d, r15d jnz short loc_217E2 mov rdi, [rbx+38h] mov r15d, 1 loc_217AC: call ma_net_safe_read cmp rax, r14 jnz short loc_21763 jmp short loc_217E2 loc_217B8: inc r12 lea r14, [rbp+var_28] mov [r14], r12 mov rdi, r14 call net_field_length mov rdi, r14 call net_field_length mov rax, [r14] movzx eax, word ptr [rax] mov rcx, [rbx+38h] mov [rcx+380h], eax loc_217E2: mov dword ptr [rbx+50h], 6 add rsp, 10h pop rbx pop r12 pop r14 pop r15 pop rbp retn
char mthd_stmt_flush_unbuffered(long long a1, long long a2, long long a3, long long a4, unsigned long long a5, int a6) { int v7; // r12d unsigned long long v8; // rax long long v9; // rdx long long v10; // rcx unsigned long long v11; // r8 int v12; // r9d BOOL v13; // r15d long long v14; // rdi long long v15; // r12 unsigned __int8 *v17[5]; // [rsp+8h] [rbp-28h] BYREF v7 = *(_DWORD *)(a1 + 80); v8 = ma_net_safe_read(*(_QWORD *)(a1 + 56), a2, a3, a4, a5, a6); if ( v8 != 0xFFFFFFFF ) { v13 = (unsigned int)(v7 - 3) < 3; while ( 1 ) { v14 = *(_QWORD *)(a1 + 56); v15 = *(_QWORD *)(v14 + 32); if ( !v13 && !*(_BYTE *)v15 ) break; if ( v8 <= 7 && *(_BYTE *)v15 == 0xFE ) { LOBYTE(v8) = mariadb_connection(v14); if ( !(_BYTE)v8 ) goto LABEL_13; LODWORD(v8) = *(unsigned __int16 *)(v15 + 3); v10 = *(_QWORD *)(a1 + 56); *(_DWORD *)(v10 + 896) = v8; if ( v13 ) goto LABEL_13; v14 = *(_QWORD *)(a1 + 56); v13 = 1; } v8 = ma_net_safe_read(v14, a2, v9, v10, v11, v12); if ( v8 == 0xFFFFFFFF ) goto LABEL_13; } v17[0] = (unsigned __int8 *)(v15 + 1); net_field_length(v17); net_field_length(v17); LODWORD(v8) = *(unsigned __int16 *)v17[0]; *(_DWORD *)(*(_QWORD *)(a1 + 56) + 896LL) = v8; } LABEL_13: *(_DWORD *)(a1 + 80) = 6; return v8; }
mthd_stmt_flush_unbuffered: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV R12D,dword ptr [RDI + 0x50] MOV RDI,qword ptr [RDI + 0x38] CALL 0x00118533 MOV R14D,0xffffffff CMP RAX,R14 JZ 0x001217e2 ADD R12D,-0x3 XOR R15D,R15D CMP R12D,0x3 SETC R15B LAB_00121763: MOV RDI,qword ptr [RBX + 0x38] MOV R12,qword ptr [RDI + 0x20] TEST R15D,R15D JNZ 0x00121777 CMP byte ptr [R12],0x0 JZ 0x001217b8 LAB_00121777: CMP RAX,0x7 JA 0x001217ac CMP byte ptr [R12],0xfe JNZ 0x001217ac CALL 0x001188cf TEST AL,AL JZ 0x001217e2 MOVZX EAX,word ptr [R12 + 0x3] MOV RCX,qword ptr [RBX + 0x38] MOV dword ptr [RCX + 0x380],EAX TEST R15D,R15D JNZ 0x001217e2 MOV RDI,qword ptr [RBX + 0x38] MOV R15D,0x1 LAB_001217ac: CALL 0x00118533 CMP RAX,R14 JNZ 0x00121763 JMP 0x001217e2 LAB_001217b8: INC R12 LEA R14,[RBP + -0x28] MOV qword ptr [R14],R12 MOV RDI,R14 CALL 0x00118911 MOV RDI,R14 CALL 0x00118911 MOV RAX,qword ptr [R14] MOVZX EAX,word ptr [RAX] MOV RCX,qword ptr [RBX + 0x38] MOV dword ptr [RCX + 0x380],EAX LAB_001217e2: MOV dword ptr [RBX + 0x50],0x6 ADD RSP,0x10 POP RBX POP R12 POP R14 POP R15 POP RBP RET
void mthd_stmt_flush_unbuffered(long param_1) { int iVar1; char *pcVar2; char cVar3; ulong uVar4; long lVar5; bool bVar6; ushort *local_30; iVar1 = *(int *)(param_1 + 0x50); uVar4 = ma_net_safe_read(*(int8 *)(param_1 + 0x38)); if (uVar4 != 0xffffffff) { bVar6 = iVar1 - 3U < 3; while( true ) { lVar5 = *(long *)(param_1 + 0x38); pcVar2 = *(char **)(lVar5 + 0x20); if ((!bVar6) && (*pcVar2 == '\0')) break; if ((uVar4 < 8) && (*pcVar2 == -2)) { cVar3 = mariadb_connection(); if ((cVar3 == '\0') || (*(uint *)(*(long *)(param_1 + 0x38) + 0x380) = (uint)*(ushort *)(pcVar2 + 3), bVar6)) goto LAB_001217e2; lVar5 = *(long *)(param_1 + 0x38); bVar6 = true; } uVar4 = ma_net_safe_read(lVar5); if (uVar4 == 0xffffffff) goto LAB_001217e2; } local_30 = (ushort *)(pcVar2 + 1); net_field_length(&local_30); net_field_length(&local_30); *(uint *)(*(long *)(param_1 + 0x38) + 0x380) = (uint)*local_30; } LAB_001217e2: *(int4 *)(param_1 + 0x50) = 6; return; }
17,613
(anonymous namespace)::tinyBLAS_Q0_AVX<block_q4_0, block_q8_0, float>::mnpack(long, long, long, long)
monkey531[P]llama/ggml/src/ggml-cpu/llamafile/sgemm.cpp
void mnpack(int64_t m0, int64_t m, int64_t n0, int64_t n) { int64_t mc, nc, mp, np; switch ((MIN(m - m0, 4) << 4) | MIN(n - n0, 4)) { #if VECTOR_REGISTERS == 32 case 0x44: mc = 4; nc = 4; #if defined(__AVX2__) && defined(__F16C__) gemm4xN<4>(m0, m, n0, n); #else gemm<4, 4>(m0, m, n0, n); #endif break; case 0x43: mc = 4; nc = 3; #if defined(__AVX2__) && defined(__F16C__) gemm4xN<3>(m0, m, n0, n); #else gemm<4, 3>(m0, m, n0, n); #endif break; case 0x34: mc = 3; nc = 4; #if defined(__AVX2__) && defined(__F16C__) gemmMx4<3>(m0, m, n0, n); #else gemm<3, 4>(m0, m, n0, n); #endif break; case 0x33: mc = 3; nc = 3; gemm<3, 3>(m0, m, n0, n); break; case 0x42: mc = 4; nc = 2; #if defined(__AVX2__) && defined(__F16C__) gemm4xN<2>(m0, m, n0, n); #else gemm<4, 2>(m0, m, n0, n); #endif break; case 0x24: mc = 2; nc = 4; #if defined(__AVX2__) && defined(__F16C__) gemmMx4<2>(m0, m, n0, n); #else gemm<2, 4>(m0, m, n0, n); #endif break; #else case 0x44: case 0x43: case 0x42: mc = 4; nc = 2; #if defined(__AVX2__) && defined(__F16C__) gemm4xN<2>(m0, m, n0, n); #else gemm<4, 2>(m0, m, n0, n); #endif break; case 0x34: case 0x24: mc = 2; nc = 4; #if defined(__AVX2__) && defined(__F16C__) gemmMx4<2>(m0, m, n0, n); #else gemm<2, 4>(m0, m, n0, n); #endif break; case 0x33: #endif case 0x32: mc = 3; nc = 2; gemm<3, 2>(m0, m, n0, n); break; case 0x23: mc = 2; nc = 3; gemm<2, 3>(m0, m, n0, n); break; case 0x41: mc = 4; nc = 1; #if defined(__AVX2__) && defined(__F16C__) gemm4xN<1>(m0, m, n0, n); #else gemm<4, 1>(m0, m, n0, n); #endif break; case 0x22: mc = 2; nc = 2; gemm<2, 2>(m0, m, n0, n); break; case 0x14: mc = 1; nc = 4; #if defined(__AVX2__) && defined(__F16C__) gemmMx4<1>(m0, m, n0, n); #else gemm<1, 4>(m0, m, n0, n); #endif break; case 0x31: mc = 3; nc = 1; gemm<3, 1>(m0, m, n0, n); break; case 0x13: mc = 1; nc = 3; gemm<1, 3>(m0, m, n0, n); break; case 0x21: mc = 2; nc = 1; gemm<2, 1>(m0, m, n0, n); break; case 0x12: mc = 1; nc = 2; gemm<1, 2>(m0, m, n0, n); break; case 0x11: mc = 1; nc = 1; gemm<1, 1>(m0, m, n0, n); break; default: return; } mp = m0 + (m - m0) / mc * mc; np = n0 + (n - n0) / nc * nc; mnpack(mp, m, n0, np); mnpack(m0, m, np, n); }
O0
cpp
(anonymous namespace)::tinyBLAS_Q0_AVX<block_q4_0, block_q8_0, float>::mnpack(long, long, long, long): subq $0x88, %rsp movq %rdi, 0x80(%rsp) movq %rsi, 0x78(%rsp) movq %rdx, 0x70(%rsp) movq %rcx, 0x68(%rsp) movq %r8, 0x60(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x70(%rsp), %rax subq 0x78(%rsp), %rax cmpq $0x4, %rax jge 0x926e1 movq 0x70(%rsp), %rax subq 0x78(%rsp), %rax movq %rax, 0x30(%rsp) jmp 0x926ed movl $0x4, %eax movq %rax, 0x30(%rsp) jmp 0x926ed movq 0x30(%rsp), %rax shlq $0x4, %rax movq %rax, 0x28(%rsp) movq 0x60(%rsp), %rax subq 0x68(%rsp), %rax cmpq $0x4, %rax jge 0x9271c movq 0x60(%rsp), %rax subq 0x68(%rsp), %rax movq %rax, 0x20(%rsp) jmp 0x92728 movl $0x4, %eax movq %rax, 0x20(%rsp) jmp 0x92728 movq 0x28(%rsp), %rax movq 0x20(%rsp), %rcx orq %rcx, %rax addq $-0x11, %rax movq %rax, 0x18(%rsp) subq $0x33, %rax ja 0x92aa4 movq 0x18(%rsp), %rax leaq 0x29b78(%rip), %rcx # 0xbc2cc movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x38(%rsp), %rdi movq $0x4, 0x58(%rsp) movq $0x4, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x92b50 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x4, 0x58(%rsp) movq $0x3, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x93600 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x3, 0x58(%rsp) movq $0x4, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x940b0 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x3, 0x58(%rsp) movq $0x3, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x94dd0 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x4, 0x58(%rsp) movq $0x2, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x954c0 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x2, 0x58(%rsp) movq $0x4, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x95f70 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x3, 0x58(%rsp) movq $0x2, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x96c90 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x2, 0x58(%rsp) movq $0x3, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x97380 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x4, 0x58(%rsp) movq $0x1, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x97a80 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x2, 0x58(%rsp) movq $0x2, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x98530 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x1, 0x58(%rsp) movq $0x4, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x98c30 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x3, 0x58(%rsp) movq $0x1, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x99940 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x1, 0x58(%rsp) movq $0x3, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x9a030 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x2, 0x58(%rsp) movq $0x1, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x9a730 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x1, 0x58(%rsp) movq $0x2, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x9ae30 jmp 0x92aa9 movq 0x38(%rsp), %rdi movq $0x1, 0x58(%rsp) movq $0x1, 0x50(%rsp) movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x9b530 jmp 0x92aa9 jmp 0x92b47 movq 0x38(%rsp), %rdi movq 0x78(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x70(%rsp), %rax subq 0x78(%rsp), %rax cqto idivq 0x58(%rsp) movq %rax, %rcx movq 0x8(%rsp), %rax imulq 0x58(%rsp), %rcx addq %rcx, %rax movq %rax, 0x48(%rsp) movq 0x68(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x60(%rsp), %rax subq 0x68(%rsp), %rax cqto idivq 0x50(%rsp) movq %rax, %rcx movq 0x10(%rsp), %rax imulq 0x50(%rsp), %rcx addq %rcx, %rax movq %rax, 0x40(%rsp) movq 0x48(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x40(%rsp), %r8 callq 0x92690 movq 0x38(%rsp), %rdi movq 0x78(%rsp), %rsi movq 0x70(%rsp), %rdx movq 0x40(%rsp), %rcx movq 0x60(%rsp), %r8 callq 0x92690 addq $0x88, %rsp retq nop
_ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE6mnpackEllll: sub rsp, 88h mov [rsp+88h+var_8], rdi mov [rsp+88h+var_10], rsi mov [rsp+88h+var_18], rdx mov [rsp+88h+var_20], rcx mov [rsp+88h+var_28], r8 mov rax, [rsp+88h+var_8] mov [rsp+88h+var_50], rax mov rax, [rsp+88h+var_18] sub rax, [rsp+88h+var_10] cmp rax, 4 jge short loc_926E1 mov rax, [rsp+88h+var_18] sub rax, [rsp+88h+var_10] mov [rsp+88h+var_58], rax jmp short loc_926ED loc_926E1: mov eax, 4 mov [rsp+88h+var_58], rax jmp short $+2 loc_926ED: mov rax, [rsp+88h+var_58] shl rax, 4 mov [rsp+88h+var_60], rax mov rax, [rsp+88h+var_28] sub rax, [rsp+88h+var_20] cmp rax, 4 jge short loc_9271C mov rax, [rsp+88h+var_28] sub rax, [rsp+88h+var_20] mov [rsp+88h+var_68], rax jmp short loc_92728 loc_9271C: mov eax, 4 mov [rsp+88h+var_68], rax jmp short $+2 loc_92728: mov rax, [rsp+88h+var_60] mov rcx, [rsp+88h+var_68] or rax, rcx add rax, 0FFFFFFFFFFFFFFEFh; switch 52 cases mov [rsp+88h+var_70], rax sub rax, 33h ja def_9275B; jumptable 000000000009275B default case, cases 21-32,37-48,53-64 mov rax, [rsp+88h+var_70] lea rcx, jpt_9275B movsxd rax, ds:(jpt_9275B - 0BC2CCh)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_9275D: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 68 mov [rsp+88h+var_30], 4 mov [rsp+88h+var_38], 4 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE7gemm4xNILi4EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm4xN<4>(long,long,long,long) jmp loc_92AA9 loc_92792: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 67 mov [rsp+88h+var_30], 4 mov [rsp+88h+var_38], 3 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE7gemm4xNILi3EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm4xN<3>(long,long,long,long) jmp loc_92AA9 loc_927C7: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 52 mov [rsp+88h+var_30], 3 mov [rsp+88h+var_38], 4 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE7gemmMx4ILi3EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemmMx4<3>(long,long,long,long) jmp loc_92AA9 loc_927FC: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 51 mov [rsp+88h+var_30], 3 mov [rsp+88h+var_38], 3 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE4gemmILi3ELi3EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<3,3>(long,long,long,long) jmp loc_92AA9 loc_92831: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 66 mov [rsp+88h+var_30], 4 mov [rsp+88h+var_38], 2 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE7gemm4xNILi2EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm4xN<2>(long,long,long,long) jmp loc_92AA9 loc_92866: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 36 mov [rsp+88h+var_30], 2 mov [rsp+88h+var_38], 4 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE7gemmMx4ILi2EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemmMx4<2>(long,long,long,long) jmp loc_92AA9 loc_9289B: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 50 mov [rsp+88h+var_30], 3 mov [rsp+88h+var_38], 2 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE4gemmILi3ELi2EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<3,2>(long,long,long,long) jmp loc_92AA9 loc_928D0: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 35 mov [rsp+88h+var_30], 2 mov [rsp+88h+var_38], 3 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE4gemmILi2ELi3EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<2,3>(long,long,long,long) jmp loc_92AA9 loc_92905: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 65 mov [rsp+88h+var_30], 4 mov [rsp+88h+var_38], 1 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE7gemm4xNILi1EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm4xN<1>(long,long,long,long) jmp loc_92AA9 loc_9293A: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 34 mov [rsp+88h+var_30], 2 mov [rsp+88h+var_38], 2 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE4gemmILi2ELi2EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<2,2>(long,long,long,long) jmp loc_92AA9 loc_9296F: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 20 mov [rsp+88h+var_30], 1 mov [rsp+88h+var_38], 4 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE7gemmMx4ILi1EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemmMx4<1>(long,long,long,long) jmp loc_92AA9 loc_929A4: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 49 mov [rsp+88h+var_30], 3 mov [rsp+88h+var_38], 1 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE4gemmILi3ELi1EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<3,1>(long,long,long,long) jmp loc_92AA9 loc_929D9: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 19 mov [rsp+88h+var_30], 1 mov [rsp+88h+var_38], 3 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE4gemmILi1ELi3EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<1,3>(long,long,long,long) jmp loc_92AA9 loc_92A0E: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 33 mov [rsp+88h+var_30], 2 mov [rsp+88h+var_38], 1 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE4gemmILi2ELi1EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<2,1>(long,long,long,long) jmp short loc_92AA9 loc_92A40: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 18 mov [rsp+88h+var_30], 1 mov [rsp+88h+var_38], 2 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE4gemmILi1ELi2EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<1,2>(long,long,long,long) jmp short loc_92AA9 loc_92A72: mov rdi, [rsp+88h+var_50]; jumptable 000000000009275B case 17 mov [rsp+88h+var_30], 1 mov [rsp+88h+var_38], 1 mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE4gemmILi1ELi1EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<1,1>(long,long,long,long) jmp short loc_92AA9 def_9275B: jmp loc_92B47; jumptable 000000000009275B default case, cases 21-32,37-48,53-64 loc_92AA9: mov rdi, [rsp+88h+var_50] mov rax, [rsp+88h+var_10] mov [rsp+88h+var_80], rax mov rax, [rsp+88h+var_18] sub rax, [rsp+88h+var_10] cqo idiv [rsp+88h+var_30] mov rcx, rax mov rax, [rsp+88h+var_80] imul rcx, [rsp+88h+var_30] add rax, rcx mov [rsp+88h+var_40], rax mov rax, [rsp+88h+var_20] mov [rsp+88h+var_78], rax mov rax, [rsp+88h+var_28] sub rax, [rsp+88h+var_20] cqo idiv [rsp+88h+var_38] mov rcx, rax mov rax, [rsp+88h+var_78] imul rcx, [rsp+88h+var_38] add rax, rcx mov [rsp+88h+var_48], rax mov rsi, [rsp+88h+var_40] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_20] mov r8, [rsp+88h+var_48] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE6mnpackEllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::mnpack(long,long,long,long) mov rdi, [rsp+88h+var_50] mov rsi, [rsp+88h+var_10] mov rdx, [rsp+88h+var_18] mov rcx, [rsp+88h+var_48] mov r8, [rsp+88h+var_28] call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q4_010block_q8_0fE6mnpackEllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::mnpack(long,long,long,long) loc_92B47: add rsp, 88h retn
long long `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::mnpack( long long a1, long long a2, long long a3, long long a4, long long a5) { long long result; // rax long long v6; // r9 long long v7; // r9 long long v8; // [rsp+20h] [rbp-68h] long long v9; // [rsp+28h] [rbp-60h] long long v10; // [rsp+30h] [rbp-58h] long long v11; // [rsp+50h] [rbp-38h] long long v12; // [rsp+58h] [rbp-30h] if ( a3 - a2 >= 4 ) v10 = 4LL; else v10 = a3 - a2; v9 = 16 * v10; if ( a5 - a4 >= 4 ) v8 = 4LL; else v8 = a5 - a4; result = (v8 | v9) - 17; switch ( v8 | v9 ) { case 0x11LL: v12 = 1LL; v11 = 1LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<1,1>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x12LL: v12 = 1LL; v11 = 2LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<1,2>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x13LL: v12 = 1LL; v11 = 3LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<1,3>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x14LL: v12 = 1LL; v11 = 4LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemmMx4<1>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x21LL: v12 = 2LL; v11 = 1LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<2,1>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x22LL: v12 = 2LL; v11 = 2LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<2,2>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x23LL: v12 = 2LL; v11 = 3LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<2,3>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x24LL: v12 = 2LL; v11 = 4LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemmMx4<2>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x31LL: v12 = 3LL; v11 = 1LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<3,1>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x32LL: v12 = 3LL; v11 = 2LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<3,2>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x33LL: v12 = 3LL; v11 = 3LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm<3,3>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x34LL: v12 = 3LL; v11 = 4LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemmMx4<3>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x41LL: v12 = 4LL; v11 = 1LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm4xN<1>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x42LL: v12 = 4LL; v11 = 2LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm4xN<2>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x43LL: v12 = 4LL; v11 = 3LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm4xN<3>(a1, a2, a3, a4, a5); goto LABEL_24; case 0x44LL: v12 = 4LL; v11 = 4LL; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::gemm4xN<4>(a1, a2, a3, a4, a5); LABEL_24: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::mnpack( a1, v12 * ((a3 - a2) / v12) + a2, a3, a4, v11 * ((a5 - a4) / v11) + a4, v6); result = `anonymous namespace'::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::mnpack( a1, a2, a3, v11 * ((a5 - a4) / v11) + a4, a5, v7); break; default: return result; } return result; }
mnpack: SUB RSP,0x88 MOV qword ptr [RSP + 0x80],RDI MOV qword ptr [RSP + 0x78],RSI MOV qword ptr [RSP + 0x70],RDX MOV qword ptr [RSP + 0x68],RCX MOV qword ptr [RSP + 0x60],R8 MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x70] SUB RAX,qword ptr [RSP + 0x78] CMP RAX,0x4 JGE 0x001926e1 MOV RAX,qword ptr [RSP + 0x70] SUB RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x30],RAX JMP 0x001926ed LAB_001926e1: MOV EAX,0x4 MOV qword ptr [RSP + 0x30],RAX JMP 0x001926ed LAB_001926ed: MOV RAX,qword ptr [RSP + 0x30] SHL RAX,0x4 MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x60] SUB RAX,qword ptr [RSP + 0x68] CMP RAX,0x4 JGE 0x0019271c MOV RAX,qword ptr [RSP + 0x60] SUB RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x20],RAX JMP 0x00192728 LAB_0019271c: MOV EAX,0x4 MOV qword ptr [RSP + 0x20],RAX JMP 0x00192728 LAB_00192728: MOV RAX,qword ptr [RSP + 0x28] MOV RCX,qword ptr [RSP + 0x20] OR RAX,RCX ADD RAX,-0x11 MOV qword ptr [RSP + 0x18],RAX SUB RAX,0x33 JA 0x00192aa4 MOV RAX,qword ptr [RSP + 0x18] LEA RCX,[0x1bc2cc] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_44: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x4 MOV qword ptr [RSP + 0x50],0x4 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x00192b50 JMP 0x00192aa9 caseD_43: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x4 MOV qword ptr [RSP + 0x50],0x3 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x00193600 JMP 0x00192aa9 caseD_34: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x3 MOV qword ptr [RSP + 0x50],0x4 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x001940b0 JMP 0x00192aa9 caseD_33: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x3 MOV qword ptr [RSP + 0x50],0x3 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x00194dd0 JMP 0x00192aa9 caseD_42: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x4 MOV qword ptr [RSP + 0x50],0x2 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x001954c0 JMP 0x00192aa9 caseD_24: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x2 MOV qword ptr [RSP + 0x50],0x4 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x00195f70 JMP 0x00192aa9 caseD_32: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x3 MOV qword ptr [RSP + 0x50],0x2 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x00196c90 JMP 0x00192aa9 caseD_23: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x2 MOV qword ptr [RSP + 0x50],0x3 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x00197380 JMP 0x00192aa9 caseD_41: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x4 MOV qword ptr [RSP + 0x50],0x1 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x00197a80 JMP 0x00192aa9 caseD_22: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x2 MOV qword ptr [RSP + 0x50],0x2 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x00198530 JMP 0x00192aa9 caseD_14: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x1 MOV qword ptr [RSP + 0x50],0x4 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x00198c30 JMP 0x00192aa9 caseD_31: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x3 MOV qword ptr [RSP + 0x50],0x1 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x00199940 JMP 0x00192aa9 caseD_13: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x1 MOV qword ptr [RSP + 0x50],0x3 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x0019a030 JMP 0x00192aa9 caseD_21: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x2 MOV qword ptr [RSP + 0x50],0x1 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x0019a730 JMP 0x00192aa9 caseD_12: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x1 MOV qword ptr [RSP + 0x50],0x2 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x0019ae30 JMP 0x00192aa9 caseD_11: MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],0x1 MOV qword ptr [RSP + 0x50],0x1 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x60] CALL 0x0019b530 JMP 0x00192aa9 caseD_15: JMP 0x00192b47 LAB_00192aa9: MOV RDI,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x70] SUB RAX,qword ptr [RSP + 0x78] CQO IDIV qword ptr [RSP + 0x58] MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] IMUL RCX,qword ptr [RSP + 0x58] ADD RAX,RCX MOV qword ptr [RSP + 0x48],RAX MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x60] SUB RAX,qword ptr [RSP + 0x68] CQO IDIV qword ptr [RSP + 0x50] MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] IMUL RCX,qword ptr [RSP + 0x50] ADD RAX,RCX MOV qword ptr [RSP + 0x40],RAX MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] MOV R8,qword ptr [RSP + 0x40] CALL 0x00192690 MOV RDI,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x40] MOV R8,qword ptr [RSP + 0x60] CALL 0x00192690 LAB_00192b47: ADD RSP,0x88 RET
/* (anonymous namespace)::tinyBLAS_Q0_AVX<block_q4_0, block_q8_0, float>::mnpack(long, long, long, long) */ void __thiscall (anonymous_namespace)::tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float>::mnpack (tinyBLAS_Q0_AVX<block_q4_0,block_q8_0,float> *this,long param_1,long param_2,long param_3 ,long param_4) { long lVar1; ulong local_68; long local_58; long local_38; long local_30; if (param_2 - param_1 < 4) { local_58 = param_2 - param_1; } else { local_58 = 4; } if (param_4 - param_3 < 4) { local_68 = param_4 - param_3; } else { local_68 = 4; } switch(local_58 << 4 | local_68) { case 0x11: local_30 = 1; local_38 = 1; gemm<1,1>(this,param_1,param_2,param_3,param_4); break; case 0x12: local_30 = 1; local_38 = 2; gemm<1,2>(this,param_1,param_2,param_3,param_4); break; case 0x13: local_30 = 1; local_38 = 3; gemm<1,3>(this,param_1,param_2,param_3,param_4); break; case 0x14: local_30 = 1; local_38 = 4; gemmMx4<1>(this,param_1,param_2,param_3,param_4); break; default: return; case 0x21: local_30 = 2; local_38 = 1; gemm<2,1>(this,param_1,param_2,param_3,param_4); break; case 0x22: local_30 = 2; local_38 = 2; gemm<2,2>(this,param_1,param_2,param_3,param_4); break; case 0x23: local_30 = 2; local_38 = 3; gemm<2,3>(this,param_1,param_2,param_3,param_4); break; case 0x24: local_30 = 2; local_38 = 4; gemmMx4<2>(this,param_1,param_2,param_3,param_4); break; case 0x31: local_30 = 3; local_38 = 1; gemm<3,1>(this,param_1,param_2,param_3,param_4); break; case 0x32: local_30 = 3; local_38 = 2; gemm<3,2>(this,param_1,param_2,param_3,param_4); break; case 0x33: local_30 = 3; local_38 = 3; gemm<3,3>(this,param_1,param_2,param_3,param_4); break; case 0x34: local_30 = 3; local_38 = 4; gemmMx4<3>(this,param_1,param_2,param_3,param_4); break; case 0x41: local_30 = 4; local_38 = 1; gemm4xN<1>(this,param_1,param_2,param_3,param_4); break; case 0x42: local_30 = 4; local_38 = 2; gemm4xN<2>(this,param_1,param_2,param_3,param_4); break; case 0x43: local_30 = 4; local_38 = 3; gemm4xN<3>(this,param_1,param_2,param_3,param_4); break; case 0x44: local_30 = 4; local_38 = 4; gemm4xN<4>(this,param_1,param_2,param_3,param_4); } lVar1 = param_3 + ((param_4 - param_3) / local_38) * local_38; mnpack(this,param_1 + ((param_2 - param_1) / local_30) * local_30,param_2,param_3,lVar1); mnpack(this,param_1,param_2,lVar1,param_4); return; }
17,614
(anonymous namespace)::tinyBLAS_Q0_AVX<block_q4_0, block_q8_0, float>::mnpack(long, long, long, long)
monkey531[P]llama/ggml/src/ggml-cpu/llamafile/sgemm.cpp
void mnpack(int64_t m0, int64_t m, int64_t n0, int64_t n) { int64_t mc, nc, mp, np; switch ((MIN(m - m0, 4) << 4) | MIN(n - n0, 4)) { #if VECTOR_REGISTERS == 32 case 0x44: mc = 4; nc = 4; #if defined(__AVX2__) && defined(__F16C__) gemm4xN<4>(m0, m, n0, n); #else gemm<4, 4>(m0, m, n0, n); #endif break; case 0x43: mc = 4; nc = 3; #if defined(__AVX2__) && defined(__F16C__) gemm4xN<3>(m0, m, n0, n); #else gemm<4, 3>(m0, m, n0, n); #endif break; case 0x34: mc = 3; nc = 4; #if defined(__AVX2__) && defined(__F16C__) gemmMx4<3>(m0, m, n0, n); #else gemm<3, 4>(m0, m, n0, n); #endif break; case 0x33: mc = 3; nc = 3; gemm<3, 3>(m0, m, n0, n); break; case 0x42: mc = 4; nc = 2; #if defined(__AVX2__) && defined(__F16C__) gemm4xN<2>(m0, m, n0, n); #else gemm<4, 2>(m0, m, n0, n); #endif break; case 0x24: mc = 2; nc = 4; #if defined(__AVX2__) && defined(__F16C__) gemmMx4<2>(m0, m, n0, n); #else gemm<2, 4>(m0, m, n0, n); #endif break; #else case 0x44: case 0x43: case 0x42: mc = 4; nc = 2; #if defined(__AVX2__) && defined(__F16C__) gemm4xN<2>(m0, m, n0, n); #else gemm<4, 2>(m0, m, n0, n); #endif break; case 0x34: case 0x24: mc = 2; nc = 4; #if defined(__AVX2__) && defined(__F16C__) gemmMx4<2>(m0, m, n0, n); #else gemm<2, 4>(m0, m, n0, n); #endif break; case 0x33: #endif case 0x32: mc = 3; nc = 2; gemm<3, 2>(m0, m, n0, n); break; case 0x23: mc = 2; nc = 3; gemm<2, 3>(m0, m, n0, n); break; case 0x41: mc = 4; nc = 1; #if defined(__AVX2__) && defined(__F16C__) gemm4xN<1>(m0, m, n0, n); #else gemm<4, 1>(m0, m, n0, n); #endif break; case 0x22: mc = 2; nc = 2; gemm<2, 2>(m0, m, n0, n); break; case 0x14: mc = 1; nc = 4; #if defined(__AVX2__) && defined(__F16C__) gemmMx4<1>(m0, m, n0, n); #else gemm<1, 4>(m0, m, n0, n); #endif break; case 0x31: mc = 3; nc = 1; gemm<3, 1>(m0, m, n0, n); break; case 0x13: mc = 1; nc = 3; gemm<1, 3>(m0, m, n0, n); break; case 0x21: mc = 2; nc = 1; gemm<2, 1>(m0, m, n0, n); break; case 0x12: mc = 1; nc = 2; gemm<1, 2>(m0, m, n0, n); break; case 0x11: mc = 1; nc = 1; gemm<1, 1>(m0, m, n0, n); break; default: return; } mp = m0 + (m - m0) / mc * mc; np = n0 + (n - n0) / nc * nc; mnpack(mp, m, n0, np); mnpack(m0, m, np, n); }
O3
cpp
(anonymous namespace)::tinyBLAS_Q0_AVX<block_q4_0, block_q8_0, float>::mnpack(long, long, long, long): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r8, %r15 movq %rcx, %rbp movq %rdx, %r14 movq %rdi, %r12 movq %rdx, %rax movq %rsi, 0x8(%rsp) subq %rsi, %rax cmpq $0x4, %rax movl $0x4, %r13d movq %rax, 0x10(%rsp) cmovlq %rax, %r13 shlq $0x4, %r13 movq %r15, %rbx subq %rbp, %rbx cmpq $0x4, %rbx movl $0x4, %eax cmovlq %rbx, %rax orq %r13, %rax leaq -0x11(%rax), %rcx cmpq $0x13, %rcx jbe 0x4c86c addq $-0x31, %rax cmpq $0x13, %rax ja 0x4cab0 leaq 0x11af5(%rip), %rcx # 0x5e338 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4f292 movl $0x3, %ecx jmp 0x4ca2d leaq 0x11a75(%rip), %rdx # 0x5e2e8 movslq (%rdx,%rcx,4), %rax addq %rdx, %rax jmpq *%rax movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4fc0c movl $0x1, %esi movl $0x1, %ecx jmp 0x4ca76 movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4ec70 movl $0x2, %esi movl $0x2, %ecx jmp 0x4ca76 movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4ef58 movl $0x1, %ecx jmp 0x4c9c1 movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4deae movl $0x2, %ecx jmp 0x4c9c1 movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4f4da movl $0x1, %ecx jmp 0x4ca71 movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4f72a movl $0x2, %ecx jmp 0x4ca2d movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4f99c movl $0x1, %ecx jmp 0x4ca4f movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4e5b2 movl $0x2, %ecx jmp 0x4ca71 movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4da12 movl $0x4, %ecx jmp 0x4ca4f movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4d39c movl $0x3, %ecx movl $0x4, %esi jmp 0x4ca76 movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4cac0 movl $0x4, %esi movl $0x4, %ecx jmp 0x4ca76 movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4d762 movl $0x3, %esi movl $0x3, %ecx jmp 0x4ca76 movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4e8ac movl $0x4, %ecx movl $0x1, %esi jmp 0x4ca76 movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4e2d4 movl $0x3, %ecx movl $0x2, %esi jmp 0x4ca76 movq %r12, %rdi movq 0x8(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx movq %r15, %r8 callq 0x4cf36 movl $0x4, %ecx movl $0x3, %esi movq 0x10(%rsp), %rax cqto idivq %rcx movq %rdx, %rcx movq %rbx, %rax cqto idivq %rsi movq %r14, %rsi subq %rcx, %rsi subq %rdx, %rbx addq %rbp, %rbx movq %r12, %rdi movq %r14, %rdx movq %rbp, %rcx movq %rbx, %r8 callq 0x4c7d2 movq %rbx, %rbp jmp 0x4c80e addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE6mnpackEllll: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15, r8 mov rbp, rcx mov r14, rdx mov r12, rdi mov rax, rdx mov [rsp+48h+var_40], rsi sub rax, rsi cmp rax, 4 mov r13d, 4 mov [rsp+48h+var_38], rax cmovl r13, rax shl r13, 4 loc_4C80E: mov rbx, r15 sub rbx, rbp cmp rbx, 4 mov eax, 4 cmovl rax, rbx or rax, r13 lea rcx, [rax-11h]; switch 20 cases cmp rcx, 13h jbe short loc_4C86C def_4C87A: add rax, 0FFFFFFFFFFFFFFCFh; jumptable 000000000004C87A default case cmp rax, 13h ja def_4C84A; jumptable 000000000004C84A default case, cases 53-64 lea rcx, jpt_4C84A movsxd rax, ds:(jpt_4C84A - 5E338h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_4C84C: mov rdi, r12; jumptable 000000000004C84A case 49 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE4gemmILi3ELi1EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<3,1>(long,long,long,long) mov ecx, 3 jmp loc_4CA2D loc_4C86C: lea rdx, jpt_4C87A movsxd rax, ds:(jpt_4C87A - 5E2E8h)[rdx+rcx*4] add rax, rdx jmp rax; switch jump loc_4C87C: mov rdi, r12; jumptable 000000000004C87A case 17 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE4gemmILi1ELi1EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<1,1>(long,long,long,long) mov esi, 1 mov ecx, 1 jmp loc_4CA76 loc_4C8A1: mov rdi, r12; jumptable 000000000004C87A case 34 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE4gemmILi2ELi2EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<2,2>(long,long,long,long) mov esi, 2 mov ecx, 2 jmp loc_4CA76 loc_4C8C6: mov rdi, r12; jumptable 000000000004C87A case 20 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE7gemmMx4ILi1EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemmMx4<1>(long,long,long,long) mov ecx, 1 jmp loc_4C9C1 loc_4C8E6: mov rdi, r12; jumptable 000000000004C87A case 36 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE7gemmMx4ILi2EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemmMx4<2>(long,long,long,long) mov ecx, 2 jmp loc_4C9C1 loc_4C906: mov rdi, r12; jumptable 000000000004C87A case 19 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE4gemmILi1ELi3EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<1,3>(long,long,long,long) mov ecx, 1 jmp loc_4CA71 loc_4C926: mov rdi, r12; jumptable 000000000004C87A case 33 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE4gemmILi2ELi1EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<2,1>(long,long,long,long) mov ecx, 2 jmp loc_4CA2D loc_4C946: mov rdi, r12; jumptable 000000000004C87A case 18 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE4gemmILi1ELi2EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<1,2>(long,long,long,long) mov ecx, 1 jmp loc_4CA4F loc_4C966: mov rdi, r12; jumptable 000000000004C87A case 35 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE4gemmILi2ELi3EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<2,3>(long,long,long,long) mov ecx, 2 jmp loc_4CA71 loc_4C986: mov rdi, r12; jumptable 000000000004C84A case 66 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE7gemm4xNILi2EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm4xN<2>(long,long,long,long) mov ecx, 4 jmp loc_4CA4F loc_4C9A6: mov rdi, r12; jumptable 000000000004C84A case 52 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE7gemmMx4ILi3EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemmMx4<3>(long,long,long,long) mov ecx, 3 loc_4C9C1: mov esi, 4 jmp loc_4CA76 loc_4C9CB: mov rdi, r12; jumptable 000000000004C84A case 68 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE7gemm4xNILi4EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm4xN<4>(long,long,long,long) mov esi, 4 mov ecx, 4 jmp loc_4CA76 loc_4C9F0: mov rdi, r12; jumptable 000000000004C84A case 51 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE4gemmILi3ELi3EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<3,3>(long,long,long,long) mov esi, 3 mov ecx, 3 jmp short loc_4CA76 loc_4CA12: mov rdi, r12; jumptable 000000000004C84A case 65 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE7gemm4xNILi1EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm4xN<1>(long,long,long,long) mov ecx, 4 loc_4CA2D: mov esi, 1 jmp short loc_4CA76 loc_4CA34: mov rdi, r12; jumptable 000000000004C84A case 50 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE4gemmILi3ELi2EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<3,2>(long,long,long,long) mov ecx, 3 loc_4CA4F: mov esi, 2 jmp short loc_4CA76 loc_4CA56: mov rdi, r12; jumptable 000000000004C84A case 67 mov rsi, [rsp+48h+var_40] mov rdx, r14 mov rcx, rbp mov r8, r15 call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE7gemm4xNILi3EEEvllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm4xN<3>(long,long,long,long) mov ecx, 4 loc_4CA71: mov esi, 3 loc_4CA76: mov rax, [rsp+48h+var_38] cqo idiv rcx mov rcx, rdx mov rax, rbx cqo idiv rsi mov rsi, r14 sub rsi, rcx sub rbx, rdx add rbx, rbp mov rdi, r12 mov rdx, r14 mov rcx, rbp mov r8, rbx call _ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI10block_q5_010block_q8_0fE6mnpackEllll; `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::mnpack(long,long,long,long) mov rbp, rbx jmp loc_4C80E def_4C84A: add rsp, 18h; jumptable 000000000004C84A default case, cases 53-64 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::mnpack( long long a1, long long a2, long long a3, long long a4, long long a5) { long long v8; // r13 long long v9; // r13 long long v10; // rax long long result; // rax long long v12; // r9 long long v13; // rcx long long v14; // rsi long long v15; // [rsp+0h] [rbp-48h] long long v16; // [rsp+8h] [rbp-40h] long long v17; // [rsp+10h] [rbp-38h] long long v18; // [rsp+18h] [rbp-30h] long long v19; // [rsp+20h] [rbp-28h] long long v20; // [rsp+28h] [rbp-20h] long long v21; // [rsp+30h] [rbp-18h] long long v22; // [rsp+38h] [rbp-10h] v16 = a2; v8 = 4LL; v17 = a3 - a2; if ( a3 - a2 < 4 ) v8 = a3 - a2; v9 = 16 * v8; while ( 1 ) { v10 = 4LL; if ( a5 - a4 < 4 ) v10 = a5 - a4; result = v9 | v10; switch ( result ) { case 17LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<1,1>(a1, v16, a3, a4, a5); v14 = 1LL; v13 = 1LL; break; case 18LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<1,2>(a1, v16, a3, a4, a5); v13 = 1LL; LABEL_26: v14 = 2LL; break; case 19LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<1,3>(a1, v16, a3, a4, a5); v13 = 1LL; goto LABEL_28; case 20LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemmMx4<1>(a1, v16, a3, a4, a5); v13 = 1LL; goto LABEL_20; case 21LL: case 22LL: case 23LL: case 24LL: case 25LL: case 26LL: case 27LL: case 28LL: case 29LL: case 30LL: case 31LL: case 32LL: return result; case 33LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<2,1>(a1, v16, a3, a4, a5); v13 = 2LL; LABEL_24: v14 = 1LL; break; case 34LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<2,2>(a1, v16, a3, a4, a5); v14 = 2LL; v13 = 2LL; break; case 35LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<2,3>(a1, v16, a3, a4, a5); v13 = 2LL; LABEL_28: v14 = 3LL; break; case 36LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemmMx4<2>(a1, v16, a3, a4, a5); v13 = 2LL; LABEL_20: v14 = 4LL; break; default: result -= 49LL; switch ( result ) { case 0LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<3,1>(a1, v16, a3, a4, a5); v13 = 3LL; goto LABEL_24; case 1LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<3,2>(a1, v16, a3, a4, a5); v13 = 3LL; goto LABEL_26; case 2LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm<3,3>(a1, v16, a3, a4, a5); v14 = 3LL; v13 = 3LL; goto LABEL_29; case 3LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemmMx4<3>(a1, v16, a3, a4, a5); v13 = 3LL; goto LABEL_20; case 16LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm4xN<1>(a1, v16, a3, a4, a5); v13 = 4LL; goto LABEL_24; case 17LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm4xN<2>(a1, v16, a3, a4, a5); v13 = 4LL; goto LABEL_26; case 18LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm4xN<3>(a1, v16, a3, a4, a5); v13 = 4LL; goto LABEL_28; case 19LL: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::gemm4xN<4>(a1, v16, a3, a4, a5); v14 = 4LL; v13 = 4LL; goto LABEL_29; default: return result; } return result; } LABEL_29: `anonymous namespace'::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::mnpack( a1, a3 - v17 % v13, a3, a4, a5 - (a5 - a4) % v14, v12, v15, v16, v17, v18, v19, v20, v21, v22); a4 = a5 - (a5 - a4) % v14; } }
mnpack: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15,R8 MOV RBP,RCX MOV R14,RDX MOV R12,RDI MOV RAX,RDX MOV qword ptr [RSP + 0x8],RSI SUB RAX,RSI CMP RAX,0x4 MOV R13D,0x4 MOV qword ptr [RSP + 0x10],RAX CMOVL R13,RAX SHL R13,0x4 LAB_0014c80e: MOV RBX,R15 SUB RBX,RBP CMP RBX,0x4 MOV EAX,0x4 CMOVL RAX,RBX OR RAX,R13 LEA RCX,[RAX + -0x11] CMP RCX,0x13 JBE 0x0014c86c default: ADD RAX,-0x31 CMP RAX,0x13 JA 0x0014cab0 LEA RCX,[0x15e338] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_31: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014f292 MOV ECX,0x3 JMP 0x0014ca2d LAB_0014c86c: LEA RDX,[0x15e2e8] MOVSXD RAX,dword ptr [RDX + RCX*0x4] ADD RAX,RDX switchD: JMP RAX caseD_11: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014fc0c MOV ESI,0x1 MOV ECX,0x1 JMP 0x0014ca76 caseD_22: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014ec70 MOV ESI,0x2 MOV ECX,0x2 JMP 0x0014ca76 caseD_14: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014ef58 MOV ECX,0x1 JMP 0x0014c9c1 caseD_24: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014deae MOV ECX,0x2 JMP 0x0014c9c1 caseD_13: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014f4da MOV ECX,0x1 JMP 0x0014ca71 caseD_21: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014f72a MOV ECX,0x2 JMP 0x0014ca2d caseD_12: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014f99c MOV ECX,0x1 JMP 0x0014ca4f caseD_23: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014e5b2 MOV ECX,0x2 JMP 0x0014ca71 caseD_42: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014da12 MOV ECX,0x4 JMP 0x0014ca4f caseD_34: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014d39c MOV ECX,0x3 LAB_0014c9c1: MOV ESI,0x4 JMP 0x0014ca76 caseD_44: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014cac0 MOV ESI,0x4 MOV ECX,0x4 JMP 0x0014ca76 caseD_33: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014d762 MOV ESI,0x3 MOV ECX,0x3 JMP 0x0014ca76 caseD_41: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014e8ac MOV ECX,0x4 LAB_0014ca2d: MOV ESI,0x1 JMP 0x0014ca76 caseD_32: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014e2d4 MOV ECX,0x3 LAB_0014ca4f: MOV ESI,0x2 JMP 0x0014ca76 caseD_43: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,R14 MOV RCX,RBP MOV R8,R15 CALL 0x0014cf36 MOV ECX,0x4 LAB_0014ca71: MOV ESI,0x3 LAB_0014ca76: MOV RAX,qword ptr [RSP + 0x10] CQO IDIV RCX MOV RCX,RDX MOV RAX,RBX CQO IDIV RSI MOV RSI,R14 SUB RSI,RCX SUB RBX,RDX ADD RBX,RBP MOV RDI,R12 MOV RDX,R14 MOV RCX,RBP MOV R8,RBX CALL 0x0014c7d2 MOV RBP,RBX JMP 0x0014c80e caseD_35: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* (anonymous namespace)::tinyBLAS_Q0_AVX<block_q5_0, block_q8_0, float>::mnpack(long, long, long, long) */ void __thiscall (anonymous_namespace)::tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float>::mnpack (tinyBLAS_Q0_AVX<block_q5_0,block_q8_0,float> *this,long param_1,long param_2,long param_3 ,long param_4) { long lVar1; ulong uVar2; long lVar3; ulong uVar4; long lVar5; long lVar6; lVar1 = param_2 - param_1; lVar6 = 4; if (lVar1 < 4) { lVar6 = lVar1; } do { uVar4 = param_4 - param_3; uVar2 = 4; if ((long)uVar4 < 4) { uVar2 = uVar4; } uVar2 = uVar2 | lVar6 << 4; switch(uVar2) { case 0x11: gemm<1,1>(this,param_1,param_2,param_3,param_4); lVar5 = 1; lVar3 = 1; break; case 0x12: gemm<1,2>(this,param_1,param_2,param_3,param_4); lVar3 = 1; goto LAB_0014ca4f; case 0x13: gemm<1,3>(this,param_1,param_2,param_3,param_4); lVar3 = 1; goto LAB_0014ca71; case 0x14: gemmMx4<1>(this,param_1,param_2,param_3,param_4); lVar3 = 1; goto LAB_0014c9c1; case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1a: case 0x1b: case 0x1c: case 0x1d: case 0x1e: case 0x1f: case 0x20: switchD_0014c84a_caseD_35: return; case 0x21: gemm<2,1>(this,param_1,param_2,param_3,param_4); lVar3 = 2; goto LAB_0014ca2d; case 0x22: gemm<2,2>(this,param_1,param_2,param_3,param_4); lVar5 = 2; lVar3 = 2; break; case 0x23: gemm<2,3>(this,param_1,param_2,param_3,param_4); lVar3 = 2; LAB_0014ca71: lVar5 = 3; break; case 0x24: gemmMx4<2>(this,param_1,param_2,param_3,param_4); lVar3 = 2; LAB_0014c9c1: lVar5 = 4; break; default: switch(uVar2) { case 0x31: gemm<3,1>(this,param_1,param_2,param_3,param_4); lVar3 = 3; goto LAB_0014ca2d; case 0x32: gemm<3,2>(this,param_1,param_2,param_3,param_4); lVar3 = 3; goto LAB_0014ca4f; case 0x33: gemm<3,3>(this,param_1,param_2,param_3,param_4); lVar5 = 3; lVar3 = 3; break; case 0x34: gemmMx4<3>(this,param_1,param_2,param_3,param_4); lVar3 = 3; goto LAB_0014c9c1; default: goto switchD_0014c84a_caseD_35; case 0x41: gemm4xN<1>(this,param_1,param_2,param_3,param_4); lVar3 = 4; LAB_0014ca2d: lVar5 = 1; break; case 0x42: gemm4xN<2>(this,param_1,param_2,param_3,param_4); lVar3 = 4; LAB_0014ca4f: lVar5 = 2; break; case 0x43: gemm4xN<3>(this,param_1,param_2,param_3,param_4); lVar3 = 4; goto LAB_0014ca71; case 0x44: gemm4xN<4>(this,param_1,param_2,param_3,param_4); lVar5 = 4; lVar3 = 4; } } lVar5 = (uVar4 - (long)uVar4 % lVar5) + param_3; mnpack(this,param_2 - lVar1 % lVar3,param_2,param_3,lVar5); param_3 = lVar5; } while( true ); }
17,615
httplib::make_basic_authentication_header(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
hkr04[P]cpp-mcp/common/httplib.h
inline std::pair<std::string, std::string> make_basic_authentication_header(const std::string &username, const std::string &password, bool is_proxy) { auto field = "Basic " + detail::base64_encode(username + ":" + password); auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; return std::make_pair(key, std::move(field)); }
O0
c
httplib::make_basic_authentication_header(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool): subq $0xf8, %rsp movq %rdi, (%rsp) movb %cl, %al movq %rdi, %rcx movq %rcx, 0x8(%rsp) movq %rdi, 0xf0(%rsp) movq %rsi, 0xe8(%rsp) movq %rdx, 0xe0(%rsp) andb $0x1, %al movb %al, 0xdf(%rsp) movq 0xe8(%rsp), %rsi leaq 0x3b70c(%rip), %rdx # 0xcf0b1 leaq 0x58(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x2a9b0 movq 0x10(%rsp), %rsi movq 0xe0(%rsp), %rdx leaq 0x78(%rsp), %rdi callq 0x293d0 jmp 0x939cd leaq 0x98(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x94590 jmp 0x939e1 leaq 0x3fb20(%rip), %rsi # 0xd3508 leaq 0xb8(%rsp), %rdi leaq 0x98(%rsp), %rdx callq 0x225c0 jmp 0x939ff leaq 0x98(%rsp), %rdi callq 0xbfb0 leaq 0x78(%rsp), %rdi callq 0xbfb0 leaq 0x58(%rsp), %rdi callq 0xbfb0 movb 0xdf(%rsp), %dl leaq 0x3fac6(%rip), %rcx # 0xd34f4 leaq 0x3fac5(%rip), %rax # 0xd34fa testb $0x1, %dl cmovneq %rcx, %rax movq %rax, 0x40(%rsp) leaq 0x18(%rsp), %rdi leaq 0x40(%rsp), %rsi leaq 0xb8(%rsp), %rdx callq 0x94740 jmp 0x93a5a movq (%rsp), %rdi leaq 0x18(%rsp), %rsi callq 0x94780 jmp 0x93a6a leaq 0x18(%rsp), %rdi callq 0x94820 leaq 0xb8(%rsp), %rdi callq 0xbfb0 movq 0x8(%rsp), %rax addq $0xf8, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) jmp 0x93ad3 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) jmp 0x93ac9 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) leaq 0x98(%rsp), %rdi callq 0xbfb0 leaq 0x78(%rsp), %rdi callq 0xbfb0 leaq 0x58(%rsp), %rdi callq 0xbfb0 jmp 0x93b14 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) jmp 0x93b07 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) leaq 0x18(%rsp), %rdi callq 0x94820 leaq 0xb8(%rsp), %rdi callq 0xbfb0 movq 0x50(%rsp), %rdi callq 0xbe10 nop
_ZN7httplib32make_basic_authentication_headerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_b: sub rsp, 0F8h mov qword ptr [rsp+0F8h+var_F8], rdi; int mov al, cl mov rcx, rdi; int mov [rsp+0F8h+var_F0], rcx; void * mov [rsp+0F8h+var_8], rdi mov qword ptr [rsp+0F8h+var_10], rsi mov [rsp+0F8h+var_18], rdx and al, 1 mov [rsp+0F8h+var_19], al mov rsi, qword ptr [rsp+0F8h+var_10]; int lea rdx, aSubtype_0+0Bh; int lea rdi, [rsp+0F8h+var_A0]; int mov qword ptr [rsp+0F8h+var_E8], rdi; int call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*) mov rsi, qword ptr [rsp+0F8h+var_E8] mov rdx, [rsp+0F8h+var_18] lea rdi, [rsp+0F8h+var_80] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&) jmp short $+2 loc_939CD: lea rdi, [rsp+0F8h+var_60]; int lea rsi, [rsp+0F8h+var_80]; int call _ZN7httplib6detail13base64_encodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; httplib::detail::base64_encode(std::string const&) jmp short $+2 loc_939E1: lea rsi, aBasic; "Basic " lea rdi, [rsp+0F8h+var_40] lea rdx, [rsp+0F8h+var_60] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) jmp short $+2 loc_939FF: lea rdi, [rsp+0F8h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0F8h+var_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0F8h+var_A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov dl, [rsp+0F8h+var_19] lea rcx, aProxyAuthoriza; "Proxy-Authorization" lea rax, aProxyAuthoriza+6; "Authorization" test dl, 1 cmovnz rax, rcx mov [rsp+0F8h+var_B8], rax lea rdi, [rsp+0F8h+var_E0] lea rsi, [rsp+0F8h+var_B8] lea rdx, [rsp+0F8h+var_40] call _ZSt9make_pairIRPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSA_INSB_IT0_E4typeEE6__typeEEOSC_OSH_; std::make_pair<char const*&,std::string>(char const*&&&,std::string&&) jmp short $+2 loc_93A5A: mov rdi, qword ptr [rsp+0F8h+var_F8] lea rsi, [rsp+0F8h+var_E0] call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EC2IPKcS5_TnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairISB_SC_EEclsr6_PCCFPISB_SC_EE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOS_ISB_SC_E jmp short $+2 loc_93A6A: lea rdi, [rsp+0F8h+var_E0] call _ZNSt4pairIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::pair<char const*,std::string>::~pair() lea rdi, [rsp+0F8h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rax, [rsp+0F8h+var_F0] add rsp, 0F8h retn mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax jmp short loc_93AD3 mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax jmp short loc_93AC9 mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax lea rdi, [rsp+arg_90]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_93AC9: lea rdi, [rsp+arg_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_93AD3: lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_93B14 mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax jmp short loc_93B07 mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax lea rdi, [rsp+arg_10] call _ZNSt4pairIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::pair<char const*,std::string>::~pair() loc_93B07: lea rdi, [rsp+arg_B0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_93B14: mov rdi, [rsp+arg_48] call __Unwind_Resume
void * httplib::make_basic_authentication_header(void *a1, long long a2, long long a3, char a4) { int v4; // edx int v5; // ecx int v6; // r8d int v7; // r9d char *v8; // rax int v9; // edx int v10; // ecx int v11; // r8d int v12; // r9d int v14; // [rsp+0h] [rbp-F8h] int v15; // [rsp+8h] [rbp-F0h] void *v16; // [rsp+8h] [rbp-F0h] int v17; // [rsp+10h] [rbp-E8h] int v18; // [rsp+18h] [rbp-E0h] BYREF long long v19; // [rsp+20h] [rbp-D8h] int v20; // [rsp+28h] [rbp-D0h] int v21; // [rsp+30h] [rbp-C8h] int v22; // [rsp+38h] [rbp-C0h] char *v23; // [rsp+40h] [rbp-B8h] BYREF int v24[8]; // [rsp+58h] [rbp-A0h] BYREF int v25[8]; // [rsp+78h] [rbp-80h] BYREF int v26[8]; // [rsp+98h] [rbp-60h] BYREF _BYTE v27[39]; // [rsp+B8h] [rbp-40h] BYREF char v28; // [rsp+DFh] [rbp-19h] long long v29; // [rsp+E0h] [rbp-18h] int v30[2]; // [rsp+E8h] [rbp-10h] void *v31; // [rsp+F0h] [rbp-8h] v31 = a1; *(_QWORD *)v30 = a2; v29 = a3; v28 = a4 & 1; std::operator+<char>((long long)v24, a2, (long long)":"); std::operator+<char>((long long)v25, (long long)v24, v29); httplib::detail::base64_encode( (int)v26, (int)v25, v4, v5, v6, v7, (int)a1, a1, (int)v24, v18, v19, v20, v21, v22, (long long)v23); std::operator+<char>((long long)v27, (long long)"Basic ", (long long)v26); std::string::~string(v26); std::string::~string(v25); std::string::~string(v24); v8 = "Authorization"; if ( (v28 & 1) != 0 ) v8 = "Proxy-Authorization"; v23 = v8; std::make_pair<char const*&,std::string>(&v18, &v23, v27); ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EC2IPKcS5_TnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairISB_SC_EEclsr6_PCCFPISB_SC_EE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOS_ISB_SC_E( v14, (unsigned int)&v18, v9, v10, v11, v12, v14, v15, v17, v18, v19, v20); std::pair<char const*,std::string>::~pair(&v18); std::string::~string(v27); return v16; }
make_basic_authentication_header: SUB RSP,0xf8 MOV qword ptr [RSP],RDI MOV AL,CL MOV RCX,RDI MOV qword ptr [RSP + 0x8],RCX MOV qword ptr [RSP + 0xf0],RDI MOV qword ptr [RSP + 0xe8],RSI MOV qword ptr [RSP + 0xe0],RDX AND AL,0x1 MOV byte ptr [RSP + 0xdf],AL MOV RSI,qword ptr [RSP + 0xe8] LEA RDX,[0x1cf0b1] LEA RDI,[RSP + 0x58] MOV qword ptr [RSP + 0x10],RDI CALL 0x0012a9b0 MOV RSI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0xe0] LAB_001939c1: LEA RDI,[RSP + 0x78] CALL 0x001293d0 JMP 0x001939cd LAB_001939cd: LEA RDI,[RSP + 0x98] LEA RSI,[RSP + 0x78] CALL 0x00194590 JMP 0x001939e1 LAB_001939e1: LEA RSI,[0x1d3508] LEA RDI,[RSP + 0xb8] LEA RDX,[RSP + 0x98] CALL 0x001225c0 JMP 0x001939ff LAB_001939ff: LEA RDI,[RSP + 0x98] CALL 0x0010bfb0 LEA RDI,[RSP + 0x78] CALL 0x0010bfb0 LEA RDI,[RSP + 0x58] CALL 0x0010bfb0 MOV DL,byte ptr [RSP + 0xdf] LEA RCX,[0x1d34f4] LEA RAX,[0x1d34fa] TEST DL,0x1 CMOVNZ RAX,RCX MOV qword ptr [RSP + 0x40],RAX LAB_00193a41: LEA RDI,[RSP + 0x18] LEA RSI,[RSP + 0x40] LEA RDX,[RSP + 0xb8] CALL 0x00194740 JMP 0x00193a5a LAB_00193a5a: MOV RDI,qword ptr [RSP] LEA RSI,[RSP + 0x18] CALL 0x00194780 LAB_00193a68: JMP 0x00193a6a LAB_00193a6a: LEA RDI,[RSP + 0x18] CALL 0x00194820 LEA RDI,[RSP + 0xb8] CALL 0x0010bfb0 MOV RAX,qword ptr [RSP + 0x8] ADD RSP,0xf8 RET
/* httplib::make_basic_authentication_header(std::__cxx11::string const&, std::__cxx11::string const&, bool) */ httplib * __thiscall httplib::make_basic_authentication_header (httplib *this,string *param_1,string *param_2,bool param_3) { pair<char_const*,std::__cxx11::string> local_e0 [40]; char *local_b8 [3]; string local_a0 [32]; string local_80 [32]; detail local_60 [32]; string local_40 [39]; byte local_19; string *local_18; string *local_10; httplib *local_8; local_19 = param_3; local_18 = param_2; local_10 = param_1; local_8 = this; std::operator+(local_a0,(char *)param_1); /* try { // try from 001939c1 to 001939ca has its CatchHandler @ 00193a8e */ std::operator+(local_80,local_a0); /* try { // try from 001939cd to 001939de has its CatchHandler @ 00193a9e */ detail::base64_encode(local_60,local_80); /* try { // try from 001939e1 to 001939fc has its CatchHandler @ 00193aae */ std::operator+((char *)local_40,(string *)"Basic "); std::__cxx11::string::~string((string *)local_60); std::__cxx11::string::~string(local_80); std::__cxx11::string::~string(local_a0); local_b8[0] = "Authorization"; if ((local_19 & 1) != 0) { local_b8[0] = "Proxy-Authorization"; } /* try { // try from 00193a41 to 00193a57 has its CatchHandler @ 00193adf */ std::make_pair<char_const*&,std::__cxx11::string>((char **)local_e0,(string *)local_b8); /* try { // try from 00193a5a to 00193a67 has its CatchHandler @ 00193aef */ _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EC2IPKcS5_TnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairISB_SC_EEclsr6_PCCFPISB_SC_EE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOS_ISB_SC_E (this,local_e0); std::pair<char_const*,std::__cxx11::string>::~pair(local_e0); std::__cxx11::string::~string(local_40); return this; }
17,616
httplib::make_basic_authentication_header(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
hkr04[P]cpp-mcp/common/httplib.h
inline std::pair<std::string, std::string> make_basic_authentication_header(const std::string &username, const std::string &password, bool is_proxy) { auto field = "Basic " + detail::base64_encode(username + ":" + password); auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; return std::make_pair(key, std::move(field)); }
O1
c
httplib::make_basic_authentication_header(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x90, %rsp movl %ecx, %ebp movq %rdx, %r14 movq %rdi, %rbx leaq 0x60(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rsi), %rax movq 0x8(%rsi), %rdx addq %rax, %rdx leaq 0x50(%rsp), %r15 movq %r15, %rdi movq %rax, %rsi callq 0xbbf2 leaq 0x24edf(%rip), %rsi # 0x42487 movq %r15, %rdi callq 0x8a20 movq (%r14), %rsi movq 0x8(%r14), %rdx leaq 0x50(%rsp), %rdi callq 0x8150 leaq 0x80(%rsp), %r15 movq %r15, -0x10(%r15) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x1d5ee movq %rdx, 0x70(%rsp) movq (%rcx), %rdx movq %rdx, 0x80(%rsp) jmp 0x1d5f5 movups (%rcx), %xmm0 movups %xmm0, (%r15) movq 0x8(%rax), %rdx leaq 0x70(%rsp), %rsi movq %rdx, 0x8(%rsi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x28(%rsp), %rdi callq 0x1df0f leaq 0x269df(%rip), %rcx # 0x44001 leaq 0x28(%rsp), %rdi movl $0x6, %r8d xorl %esi, %esi xorl %edx, %edx callq 0x8610 leaq 0x18(%rsp), %r14 movq %r14, -0x10(%r14) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x1d65d movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x1d664 movups (%rcx), %xmm0 movups %xmm0, (%r14) movq 0x8(%rax), %rdx movq %rdx, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x1d697 movq 0x38(%rsp), %rsi incq %rsi callq 0x8580 movq 0x70(%rsp), %rdi cmpq %r15, %rdi je 0x1d6b1 movq 0x80(%rsp), %rsi incq %rsi callq 0x8580 movq 0x50(%rsp), %rdi cmpq %r12, %rdi je 0x1d6c8 movq 0x60(%rsp), %rsi incq %rsi callq 0x8580 leaq 0x2691e(%rip), %rax # 0x43fed leaq 0x2691d(%rip), %rsi # 0x43ff3 testb %bpl, %bpl cmovneq %rax, %rsi leaq 0x40(%rsp), %r15 movq %rsi, -0x18(%r15) movq %r15, -0x10(%r15) movq 0x8(%rsp), %rax cmpq %r14, %rax je 0x1d705 movq %rax, 0x30(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x40(%rsp) jmp 0x1d70d movups (%r14), %xmm0 movups %xmm0, (%r15) movq 0x10(%rsp), %rax movq %rax, 0x38(%rsp) movq %r14, 0x8(%rsp) movq $0x0, 0x10(%rsp) movb $0x0, 0x18(%rsp) leaq 0x70(%rsp), %rdx movq %rbx, %rdi callq 0xae38 leaq 0x30(%rbx), %rax movq %rax, 0x20(%rbx) movq 0x30(%rsp), %rcx cmpq %r15, %rcx je 0x1d758 movq %rcx, 0x20(%rbx) movq 0x40(%rsp), %rax movq %rax, 0x30(%rbx) jmp 0x1d75f movups (%r15), %xmm0 movups %xmm0, (%rax) movq 0x38(%rsp), %rax movq %rax, 0x28(%rbx) movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x1d77f movq 0x18(%rsp), %rsi incq %rsi callq 0x8580 movq %rbx, %rax addq $0x90, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x30(%rsp), %rdi cmpq %r15, %rdi je 0x1d7ac movq 0x40(%rsp), %rsi incq %rsi callq 0x8580 movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x1d818 movq 0x18(%rsp), %rsi jmp 0x1d810 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x1d7e0 movq 0x38(%rsp), %rsi incq %rsi callq 0x8580 jmp 0x1d7e0 movq %rax, %rbx movq 0x70(%rsp), %rdi cmpq %r15, %rdi je 0x1d801 movq 0x80(%rsp), %rsi incq %rsi callq 0x8580 jmp 0x1d801 jmp 0x1d7fe movq %rax, %rbx movq 0x50(%rsp), %rdi cmpq %r12, %rdi je 0x1d818 movq 0x60(%rsp), %rsi incq %rsi callq 0x8580 movq %rbx, %rdi callq 0x8960
_ZN7httplib32make_basic_authentication_headerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_b: push rbp push r15 push r14 push r12 push rbx sub rsp, 90h mov ebp, ecx mov r14, rdx mov rbx, rdi lea r12, [rsp+0B8h+var_58] mov [r12-10h], r12 mov rax, [rsi] mov rdx, [rsi+8] add rdx, rax lea r15, [rsp+0B8h+var_68] mov rdi, r15 mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rsi, aSubtype_0+0Bh; ":" mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r14] mov rdx, [r14+8] lea rdi, [rsp+0B8h+var_68] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) lea r15, [rsp+0B8h+var_38] mov [r15-10h], r15 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_1D5EE mov [rsp+0B8h+var_48], rdx mov rdx, [rcx] mov [rsp+0B8h+var_38], rdx jmp short loc_1D5F5 loc_1D5EE: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r15], xmm0 loc_1D5F5: mov rdx, [rax+8] lea rsi, [rsp+0B8h+var_48] mov [rsi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rdi, [rsp+0B8h+var_90] call _ZN7httplib6detail13base64_encodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; httplib::detail::base64_encode(std::string const&) lea rcx, aBasic; "Basic " lea rdi, [rsp+0B8h+var_90] mov r8d, 6 xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) lea r14, [rsp+0B8h+var_A0] mov [r14-10h], r14 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_1D65D mov [rsp+0B8h+var_B0], rdx mov rdx, [rcx] mov [rsp+0B8h+var_A0], rdx jmp short loc_1D664 loc_1D65D: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r14], xmm0 loc_1D664: mov rdx, [rax+8] mov [rsp+0B8h+var_A8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rax, [rsp+0B8h+var_80] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_1D697 mov rsi, [rsp+0B8h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D697: mov rdi, [rsp+0B8h+var_48]; void * cmp rdi, r15 jz short loc_1D6B1 mov rsi, [rsp+0B8h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D6B1: mov rdi, [rsp+0B8h+var_68]; void * cmp rdi, r12 jz short loc_1D6C8 mov rsi, [rsp+0B8h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D6C8: lea rax, aProxyAuthoriza; "Proxy-Authorization" lea rsi, aProxyAuthoriza+6; "Authorization" test bpl, bpl cmovnz rsi, rax lea r15, [rsp+0B8h+var_78] mov [r15-18h], rsi mov [r15-10h], r15 mov rax, [rsp+0B8h+var_B0] cmp rax, r14 jz short loc_1D705 mov [rsp+0B8h+var_88], rax mov rax, [rsp+0B8h+var_A0] mov [rsp+0B8h+var_78], rax jmp short loc_1D70D loc_1D705: movups xmm0, xmmword ptr [r14] movups xmmword ptr [r15], xmm0 loc_1D70D: mov rax, [rsp+0B8h+var_A8] mov [rsp+0B8h+var_80], rax mov [rsp+0B8h+var_B0], r14 mov [rsp+0B8h+var_A8], 0 mov byte ptr [rsp+0B8h+var_A0], 0 lea rdx, [rsp+0B8h+var_48] mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rax, [rbx+30h] mov [rbx+20h], rax mov rcx, [rsp+0B8h+var_88] cmp rcx, r15 jz short loc_1D758 mov [rbx+20h], rcx mov rax, [rsp+0B8h+var_78] mov [rbx+30h], rax jmp short loc_1D75F loc_1D758: movups xmm0, xmmword ptr [r15] movups xmmword ptr [rax], xmm0 loc_1D75F: mov rax, [rsp+0B8h+var_80] mov [rbx+28h], rax mov rdi, [rsp+0B8h+var_B0]; void * cmp rdi, r14 jz short loc_1D77F mov rsi, [rsp+0B8h+var_A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D77F: mov rax, rbx add rsp, 90h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_28]; void * cmp rdi, r15 jz short loc_1D7AC mov rsi, [rsp+arg_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D7AC: mov rdi, [rsp+arg_0] cmp rdi, r14 jz short loc_1D818 mov rsi, [rsp+arg_10] jmp short loc_1D810 mov rbx, rax lea rax, [rsp+arg_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_1D7E0 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_1D7E0 mov rbx, rax loc_1D7E0: mov rdi, [rsp+arg_68]; void * cmp rdi, r15 jz short loc_1D801 mov rsi, [rsp+arg_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_1D801 jmp short $+2 loc_1D7FE: mov rbx, rax loc_1D801: mov rdi, [rsp+arg_48]; void * cmp rdi, r12 jz short loc_1D818 mov rsi, [rsp+arg_58] loc_1D810: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D818: mov rdi, rbx call __Unwind_Resume
long long httplib::make_basic_authentication_header(long long a1, long long a2, _QWORD *a3, char a4) { long long v6; // rax _OWORD *v7; // rcx long long v8; // rax __int128 *v9; // rcx char *v10; // rsi __int128 *v12; // [rsp+8h] [rbp-B0h] long long v13; // [rsp+10h] [rbp-A8h] __int128 v14; // [rsp+18h] [rbp-A0h] BYREF char *v15; // [rsp+28h] [rbp-90h] BYREF __int128 *v16; // [rsp+30h] [rbp-88h] long long v17; // [rsp+38h] [rbp-80h] BYREF __int128 v18; // [rsp+40h] [rbp-78h] BYREF void *v19[2]; // [rsp+50h] [rbp-68h] BYREF _QWORD v20[2]; // [rsp+60h] [rbp-58h] BYREF void *v21; // [rsp+70h] [rbp-48h] long long v22; // [rsp+78h] [rbp-40h] _OWORD v23[3]; // [rsp+80h] [rbp-38h] BYREF v19[0] = v20; std::string::_M_construct<char *>(v19, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8)); std::string::append(v19, ":"); v6 = std::string::_M_append(v19, *a3, a3[1]); v21 = v23; v7 = (_OWORD *)(v6 + 16); if ( *(_QWORD *)v6 == v6 + 16 ) { v23[0] = *v7; } else { v21 = *(void **)v6; *(_QWORD *)&v23[0] = *(_QWORD *)v7; } v22 = *(_QWORD *)(v6 + 8); *(_QWORD *)v6 = v7; *(_QWORD *)(v6 + 8) = 0LL; *(_BYTE *)(v6 + 16) = 0; httplib::detail::base64_encode(&v15); v8 = std::string::replace(&v15, 0LL, 0LL); v12 = &v14; v9 = (__int128 *)(v8 + 16); if ( *(_QWORD *)v8 == v8 + 16 ) { v14 = *v9; } else { v12 = *(__int128 **)v8; *(_QWORD *)&v14 = *(_QWORD *)v9; } v13 = *(_QWORD *)(v8 + 8); *(_QWORD *)v8 = v9; *(_QWORD *)(v8 + 8) = 0LL; *(_BYTE *)(v8 + 16) = 0; if ( v15 != (char *)&v17 ) operator delete(v15, v17 + 1); if ( v21 != v23 ) operator delete(v21, *(_QWORD *)&v23[0] + 1LL); if ( v19[0] != v20 ) operator delete(v19[0], v20[0] + 1LL); v10 = "Authorization"; if ( a4 ) v10 = "Proxy-Authorization"; v15 = v10; v16 = &v18; if ( v12 == &v14 ) { v18 = v14; } else { v16 = v12; *(_QWORD *)&v18 = v14; } v17 = v13; LOBYTE(v14) = 0; std::string::basic_string<std::allocator<char>>((_QWORD *)a1, (long long)v10); *(_QWORD *)(a1 + 32) = a1 + 48; if ( v16 == &v18 ) { *(_OWORD *)(a1 + 48) = v18; } else { *(_QWORD *)(a1 + 32) = v16; *(_QWORD *)(a1 + 48) = v18; } *(_QWORD *)(a1 + 40) = v17; return a1; }
make_basic_authentication_header: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x90 MOV EBP,ECX MOV R14,RDX MOV RBX,RDI LEA R12,[RSP + 0x60] MOV qword ptr [R12 + -0x10],R12 MOV RAX,qword ptr [RSI] MOV RDX,qword ptr [RSI + 0x8] ADD RDX,RAX LEA R15,[RSP + 0x50] MOV RDI,R15 MOV RSI,RAX CALL 0x0010bbf2 LAB_0011d5a1: LEA RSI,[0x142487] MOV RDI,R15 CALL 0x00108a20 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] LAB_0011d5b7: LEA RDI,[RSP + 0x50] CALL 0x00108150 LEA R15,[RSP + 0x80] MOV qword ptr [R15 + -0x10],R15 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x0011d5ee MOV qword ptr [RSP + 0x70],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x80],RDX JMP 0x0011d5f5 LAB_0011d5ee: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R15],XMM0 LAB_0011d5f5: MOV RDX,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x70] MOV qword ptr [RSI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_0011d611: LEA RDI,[RSP + 0x28] CALL 0x0011df0f LAB_0011d61b: LEA RCX,[0x144001] LEA RDI,[RSP + 0x28] MOV R8D,0x6 XOR ESI,ESI XOR EDX,EDX CALL 0x00108610 LEA R14,[RSP + 0x18] MOV qword ptr [R14 + -0x10],R14 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x0011d65d MOV qword ptr [RSP + 0x8],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RDX JMP 0x0011d664 LAB_0011d65d: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R14],XMM0 LAB_0011d664: 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 RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0011d697 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x00108580 LAB_0011d697: MOV RDI,qword ptr [RSP + 0x70] CMP RDI,R15 JZ 0x0011d6b1 MOV RSI,qword ptr [RSP + 0x80] INC RSI CALL 0x00108580 LAB_0011d6b1: MOV RDI,qword ptr [RSP + 0x50] CMP RDI,R12 JZ 0x0011d6c8 MOV RSI,qword ptr [RSP + 0x60] INC RSI CALL 0x00108580 LAB_0011d6c8: LEA RAX,[0x143fed] LEA RSI,[0x143ff3] TEST BPL,BPL CMOVNZ RSI,RAX LEA R15,[RSP + 0x40] MOV qword ptr [R15 + -0x18],RSI MOV qword ptr [R15 + -0x10],R15 MOV RAX,qword ptr [RSP + 0x8] CMP RAX,R14 JZ 0x0011d705 MOV qword ptr [RSP + 0x30],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x40],RAX JMP 0x0011d70d LAB_0011d705: MOVUPS XMM0,xmmword ptr [R14] MOVUPS xmmword ptr [R15],XMM0 LAB_0011d70d: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x8],R14 MOV qword ptr [RSP + 0x10],0x0 MOV byte ptr [RSP + 0x18],0x0 LAB_0011d72a: LEA RDX,[RSP + 0x70] MOV RDI,RBX CALL 0x0010ae38 LAB_0011d737: LEA RAX,[RBX + 0x30] MOV qword ptr [RBX + 0x20],RAX MOV RCX,qword ptr [RSP + 0x30] CMP RCX,R15 JZ 0x0011d758 MOV qword ptr [RBX + 0x20],RCX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RBX + 0x30],RAX JMP 0x0011d75f LAB_0011d758: MOVUPS XMM0,xmmword ptr [R15] MOVUPS xmmword ptr [RAX],XMM0 LAB_0011d75f: MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RBX + 0x28],RAX MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R14 JZ 0x0011d77f MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00108580 LAB_0011d77f: MOV RAX,RBX ADD RSP,0x90 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x0011d772) */ /* httplib::make_basic_authentication_header(std::__cxx11::string const&, std::__cxx11::string const&, bool) */ httplib * __thiscall httplib::make_basic_authentication_header (httplib *this,string *param_1,string *param_2,bool param_3) { long lVar1; long *plVar2; long *plVar3; ulong *puVar4; ulong *local_b0; ulong local_a0; long lStack_98; long *local_90; ulong *local_88; long local_80; ulong local_78; long lStack_70; long *local_68 [2]; long local_58 [2]; long *local_48; long local_40; long local_38; long lStack_30; local_68[0] = local_58; std::__cxx11::string::_M_construct<char*> (local_68,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1); /* try { // try from 0011d5a1 to 0011d5af has its CatchHandler @ 0011d7fe */ std::__cxx11::string::append((char *)local_68); /* try { // try from 0011d5b7 to 0011d5c0 has its CatchHandler @ 0011d7fc */ plVar2 = (long *)std::__cxx11::string::_M_append((char *)local_68,*(ulong *)param_2); plVar3 = plVar2 + 2; if ((long *)*plVar2 == plVar3) { local_38 = *plVar3; lStack_30 = plVar2[3]; local_48 = &local_38; } else { local_38 = *plVar3; local_48 = (long *)*plVar2; } local_40 = plVar2[1]; *plVar2 = (long)plVar3; plVar2[1] = 0; *(int1 *)(plVar2 + 2) = 0; /* try { // try from 0011d611 to 0011d61a has its CatchHandler @ 0011d7dd */ detail::base64_encode((detail *)&local_90,(string *)&local_48); /* try { // try from 0011d61b to 0011d635 has its CatchHandler @ 0011d7bd */ plVar2 = (long *)std::__cxx11::string::replace((ulong)&local_90,0,(char *)0x0,0x144001); puVar4 = (ulong *)(plVar2 + 2); if ((ulong *)*plVar2 == puVar4) { local_a0 = *puVar4; lStack_98 = plVar2[3]; local_b0 = &local_a0; } else { local_a0 = *puVar4; local_b0 = (ulong *)*plVar2; } lVar1 = plVar2[1]; *plVar2 = (long)puVar4; plVar2[1] = 0; *(int1 *)(plVar2 + 2) = 0; if (local_90 != &local_80) { operator_delete(local_90,local_80 + 1); } if (local_48 != &local_38) { operator_delete(local_48,local_38 + 1); } if (local_68[0] != local_58) { operator_delete(local_68[0],local_58[0] + 1); } local_90 = (long *)0x143ff3; if (param_3) { local_90 = (long *)0x143fed; } if (local_b0 == &local_a0) { lStack_70 = lStack_98; local_88 = &local_78; } else { local_88 = local_b0; } local_78 = local_a0; local_a0 = local_a0 & 0xffffffffffffff00; /* try { // try from 0011d72a to 0011d736 has its CatchHandler @ 0011d792 */ local_80 = lVar1; std::__cxx11::string::string<std::allocator<char>> ((string *)this,(char *)local_90,(allocator *)&local_48); *(httplib **)(this + 0x20) = this + 0x30; if (local_88 == &local_78) { *(ulong *)(this + 0x30) = local_78; *(long *)(this + 0x38) = lStack_70; } else { *(ulong **)(this + 0x20) = local_88; *(ulong *)(this + 0x30) = local_78; } *(long *)(this + 0x28) = local_80; return this; }
17,617
is_num_string
bluesky950520[P]quickjs/quickjs.c
static inline BOOL is_num_string(uint32_t *pval, const JSString *p) { uint32_t n; uint64_t n64; int c, i, len; len = p->len; if (len == 0 || len > 10) return FALSE; c = string_get(p, 0); if (is_num(c)) { if (c == '0') { if (len != 1) return FALSE; n = 0; } else { n = c - '0'; for(i = 1; i < len; i++) { c = string_get(p, i); if (!is_num(c)) return FALSE; n64 = (uint64_t)n * 10 + (c - '0'); if ((n64 >> 32) != 0) return FALSE; n = n64; } } *pval = n; return TRUE; } else { return FALSE; } }
O2
c
is_num_string: movq 0x4(%rsi), %rcx movl %ecx, %r8d andl $0x7fffffff, %r8d # imm = 0x7FFFFFFF leal -0xb(%r8), %edx xorl %eax, %eax cmpl $-0xa, %edx jb 0x346e3 testl %ecx, %ecx js 0x34670 movzbl 0x18(%rsi), %r9d jmp 0x34675 movzwl 0x18(%rsi), %r9d leal -0x30(%r9), %edx cmpl $0x9, %edx ja 0x346e3 cmpl $0x30, %r9d jne 0x34697 xorl %edx, %edx movl $0x0, %eax cmpl $0x1, %r8d jne 0x346e3 movl %edx, (%rdi) pushq $0x1 popq %rax retq movl %ecx, %r8d andl $0x7fffffff, %r8d # imm = 0x7FFFFFFF xorl %r10d, %r10d xorl %eax, %eax leaq 0x1(%r10), %r9 cmpq %r8, %r9 jae 0x34691 testl %ecx, %ecx js 0x346bb movzbl 0x19(%rsi,%r10), %r10d jmp 0x346c1 movzwl 0x1a(%rsi,%r10,2), %r10d addl $-0x30, %r10d cmpl $0x9, %r10d ja 0x346e3 movl %edx, %edx imulq $0xa, %rdx, %r11 movl %r10d, %edx addq %r11, %rdx movq %rdx, %r10 shrq $0x20, %r10 movq %r9, %r10 je 0x346a6 retq
is_num_string: mov rcx, [rsi+4] mov r8d, ecx and r8d, 7FFFFFFFh lea edx, [r8-0Bh] xor eax, eax cmp edx, 0FFFFFFF6h jb short locret_346E3 test ecx, ecx js short loc_34670 movzx r9d, byte ptr [rsi+18h] jmp short loc_34675 loc_34670: movzx r9d, word ptr [rsi+18h] loc_34675: lea edx, [r9-30h] cmp edx, 9 ja short locret_346E3 cmp r9d, 30h ; '0' jnz short loc_34697 xor edx, edx mov eax, 0 cmp r8d, 1 jnz short locret_346E3 loc_34691: mov [rdi], edx push 1 pop rax retn loc_34697: mov r8d, ecx and r8d, 7FFFFFFFh xor r10d, r10d xor eax, eax loc_346A6: lea r9, [r10+1] cmp r9, r8 jnb short loc_34691 test ecx, ecx js short loc_346BB movzx r10d, byte ptr [rsi+r10+19h] jmp short loc_346C1 loc_346BB: movzx r10d, word ptr [rsi+r10*2+1Ah] loc_346C1: add r10d, 0FFFFFFD0h cmp r10d, 9 ja short locret_346E3 mov edx, edx imul r11, rdx, 0Ah mov edx, r10d add rdx, r11 mov r10, rdx shr r10, 20h mov r10, r9 jz short loc_346A6 locret_346E3: retn
long long is_num_string(_DWORD *a1, long long a2) { long long v2; // rcx long long result; // rax int v4; // r9d unsigned long long v5; // rdx long long v6; // r10 long long v7; // r9 int v8; // r10d unsigned int v9; // r10d v2 = *(_QWORD *)(a2 + 4); result = 0LL; if ( ((unsigned int)v2 & 0x7FFFFFFF) - 11 >= 0xFFFFFFF6 ) { v4 = (int)v2 < 0 ? *(unsigned __int16 *)(a2 + 24) : *(unsigned __int8 *)(a2 + 24); LODWORD(v5) = v4 - 48; if ( (unsigned int)(v4 - 48) <= 9 ) { if ( v4 == 48 ) { LODWORD(v5) = 0; result = 0LL; if ( (v2 & 0x7FFFFFFF) != 1 ) return result; } else { v6 = 0LL; result = 0LL; while ( 1 ) { v7 = v6 + 1; if ( v6 + 1 >= (unsigned long long)(v2 & 0x7FFFFFFF) ) break; if ( (int)v2 < 0 ) v8 = *(unsigned __int16 *)(a2 + 2 * v6 + 26); else v8 = *(unsigned __int8 *)(a2 + v6 + 25); v9 = v8 - 48; if ( v9 <= 9 ) { v5 = 10LL * (unsigned int)v5 + v9; v6 = v7; if ( !HIDWORD(v5) ) continue; } return result; } } *a1 = v5; return 1LL; } } return result; }
is_num_string: MOV RCX,qword ptr [RSI + 0x4] MOV R8D,ECX AND R8D,0x7fffffff LEA EDX,[R8 + -0xb] XOR EAX,EAX CMP EDX,-0xa JC 0x001346e3 TEST ECX,ECX JS 0x00134670 MOVZX R9D,byte ptr [RSI + 0x18] JMP 0x00134675 LAB_00134670: MOVZX R9D,word ptr [RSI + 0x18] LAB_00134675: LEA EDX,[R9 + -0x30] CMP EDX,0x9 JA 0x001346e3 CMP R9D,0x30 JNZ 0x00134697 XOR EDX,EDX MOV EAX,0x0 CMP R8D,0x1 JNZ 0x001346e3 LAB_00134691: MOV dword ptr [RDI],EDX PUSH 0x1 POP RAX RET LAB_00134697: MOV R8D,ECX AND R8D,0x7fffffff XOR R10D,R10D XOR EAX,EAX LAB_001346a6: LEA R9,[R10 + 0x1] CMP R9,R8 JNC 0x00134691 TEST ECX,ECX JS 0x001346bb MOVZX R10D,byte ptr [RSI + R10*0x1 + 0x19] JMP 0x001346c1 LAB_001346bb: MOVZX R10D,word ptr [RSI + R10*0x2 + 0x1a] LAB_001346c1: ADD R10D,-0x30 CMP R10D,0x9 JA 0x001346e3 MOV EDX,EDX IMUL R11,RDX,0xa MOV EDX,R10D ADD RDX,R11 MOV R10,RDX SHR R10,0x20 MOV R10,R9 JZ 0x001346a6 LAB_001346e3: RET
int8 is_num_string(int4 *param_1,long param_2) { uint uVar1; int4 uVar2; ulong uVar3; uint uVar4; ulong uVar5; uVar1 = (uint)*(int8 *)(param_2 + 4); if (0xfffffff5 < (uVar1 & 0x7fffffff) - 0xb) { if ((int)uVar1 < 0) { uVar4 = (uint)*(ushort *)(param_2 + 0x18); } else { uVar4 = (uint)*(byte *)(param_2 + 0x18); } uVar3 = (ulong)(uVar4 - 0x30); if (uVar4 - 0x30 < 10) { if (uVar4 == 0x30) { uVar2 = 0; if ((uVar1 & 0x7fffffff) == 1) { LAB_00134691: *param_1 = uVar2; return 1; } } else { uVar5 = 0; do { uVar2 = (int4)uVar3; if ((ulong)(uVar1 & 0x7fffffff) <= uVar5 + 1) goto LAB_00134691; if ((int)uVar1 < 0) { uVar4 = (uint)*(ushort *)(param_2 + 0x1a + uVar5 * 2); } else { uVar4 = (uint)*(byte *)(param_2 + 0x19 + uVar5); } } while ((uVar4 - 0x30 < 10) && (uVar3 = (ulong)(uVar4 - 0x30) + (uVar3 & 0xffffffff) * 10, uVar5 = uVar5 + 1, uVar3 >> 0x20 == 0)); } } } return 0; }
17,618
JS_DefinePropertyGetSet
bluesky950520[P]quickjs/quickjs.c
int JS_DefinePropertyGetSet(JSContext *ctx, JSValue this_obj, JSAtom prop, JSValue getter, JSValue setter, int flags) { int ret; ret = JS_DefineProperty(ctx, this_obj, prop, JS_UNDEFINED, getter, setter, flags | JS_PROP_HAS_GET | JS_PROP_HAS_SET | JS_PROP_HAS_CONFIGURABLE | JS_PROP_HAS_ENUMERABLE); JS_FreeValue(ctx, getter); JS_FreeValue(ctx, setter); return ret; }
O1
c
JS_DefinePropertyGetSet: pushq %rbp pushq %rbx subq $0x38, %rsp movq %rdi, %rbx movq %r8, 0x28(%rsp) movq %r9, 0x30(%rsp) movl $0x1d00, %eax # imm = 0x1D00 orl 0x60(%rsp), %eax movaps 0x50(%rsp), %xmm0 movups %xmm0, 0x10(%rsp) movups 0x28(%rsp), %xmm0 movups %xmm0, (%rsp) movl %eax, 0x20(%rsp) movl $0x3, %r9d xorl %r8d, %r8d callq 0x254b9 movl %eax, %ebp movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx movq 0x18(%rbx), %rdi callq 0x1d8c6 movq 0x50(%rsp), %rsi movq 0x58(%rsp), %rdx movq 0x18(%rbx), %rdi callq 0x1d8c6 movl %ebp, %eax addq $0x38, %rsp popq %rbx popq %rbp retq
JS_DefinePropertyGetSet: push rbp push rbx sub rsp, 38h mov rbx, rdi mov qword ptr [rsp+48h+var_20], r8 mov qword ptr [rsp+48h+var_20+8], r9 mov eax, 1D00h or eax, [rsp+48h+arg_10] movaps xmm0, [rsp+48h+arg_0] movups [rsp+48h+var_38], xmm0 movups xmm0, [rsp+48h+var_20] movups [rsp+48h+var_48], xmm0 mov [rsp+48h+var_28], eax mov r9d, 3 xor r8d, r8d call JS_DefineProperty mov ebp, eax mov rsi, qword ptr [rsp+48h+var_20] mov rdx, qword ptr [rsp+48h+var_20+8] mov rdi, [rbx+18h] call JS_FreeValueRT mov rsi, qword ptr [rsp+48h+arg_0] mov rdx, qword ptr [rsp+48h+arg_0+8] mov rdi, [rbx+18h] call JS_FreeValueRT mov eax, ebp add rsp, 38h pop rbx pop rbp retn
long long JS_DefinePropertyGetSet( long long a1, unsigned long long a2, long long a3, long long a4, _DWORD *a5, long long a6, double a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, __int128 a15, int a16) { unsigned int v16; // ebp __m128 v18; // [rsp+28h] [rbp-20h] v18.m128_u64[0] = (unsigned long long)a5; v18.m128_u64[1] = a6; v16 = JS_DefineProperty( a1, a2, a3, a4, 0LL, 3LL, v18, a8, a9, a10, a11, a12, a13, a14, a5, a6, (_DWORD *)a15, *((long long *)&a15 + 1), a16 | 0x1D00u); JS_FreeValueRT(*(_QWORD *)(a1 + 24), v18.m128_u64[0], v18.m128_i64[1]); JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)a15, *((long long *)&a15 + 1)); return v16; }
JS_DefinePropertyGetSet: PUSH RBP PUSH RBX SUB RSP,0x38 MOV RBX,RDI MOV qword ptr [RSP + 0x28],R8 MOV qword ptr [RSP + 0x30],R9 MOV EAX,0x1d00 OR EAX,dword ptr [RSP + 0x60] MOVAPS XMM0,xmmword ptr [RSP + 0x50] MOVUPS xmmword ptr [RSP + 0x10],XMM0 MOVUPS XMM0,xmmword ptr [RSP + 0x28] MOVUPS xmmword ptr [RSP],XMM0 MOV dword ptr [RSP + 0x20],EAX MOV R9D,0x3 XOR R8D,R8D CALL 0x001254b9 MOV EBP,EAX MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] MOV RDI,qword ptr [RBX + 0x18] CALL 0x0011d8c6 MOV RSI,qword ptr [RSP + 0x50] MOV RDX,qword ptr [RSP + 0x58] MOV RDI,qword ptr [RBX + 0x18] CALL 0x0011d8c6 MOV EAX,EBP ADD RSP,0x38 POP RBX POP RBP RET
int4 JS_DefinePropertyGetSet(long param_1) { int4 uVar1; int8 in_R8; int8 in_R9; int8 in_stack_00000008; int8 in_stack_00000010; uVar1 = JS_DefineProperty(); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),in_R8,in_R9); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),in_stack_00000008,in_stack_00000010); return uVar1; }
17,619
write_tail
eloqsql/storage/maria/ma_blockrec.c
static my_bool write_tail(MARIA_HA *info, MARIA_BITMAP_BLOCK *block, uchar *row_part, uint org_length) { MARIA_SHARE *share= info->s; MARIA_PINNED_PAGE page_link; uint block_size= share->block_size, empty_space, length= org_length; struct st_row_pos_info row_pos; my_off_t position; my_bool res, block_is_read; DBUG_ENTER("write_tail"); DBUG_PRINT("enter", ("page: %lu length: %u", (ulong) block->page, length)); info->keyread_buff_used= 1; /* Don't allocate smaller block than MIN_TAIL_SIZE (we want to give rows some place to grow in the future) */ if (length < MIN_TAIL_SIZE) length= MIN_TAIL_SIZE; if (block->page_count == TAIL_PAGE_COUNT_MARKER) { /* Create new tail page will be pinned & locked by get_head_or_tail_page */ if (get_head_or_tail_page(info, block, info->keyread_buff, length, TAIL_PAGE, PAGECACHE_LOCK_WRITE, &row_pos)) DBUG_RETURN(1); } else { /* Write tail on predefined row position */ if (get_rowpos_in_head_or_tail_page(info, block, info->keyread_buff, length, TAIL_PAGE, PAGECACHE_LOCK_WRITE, block->page_count & ~TAIL_BIT, &row_pos)) DBUG_RETURN(1); } DBUG_PRINT("info", ("tailid: %lu (%lu:%u)", (ulong) ma_recordpos(block->page, row_pos.rownr), (ulong) block->page, row_pos.rownr)); block_is_read= block->org_bitmap_value != 0; memcpy(row_pos.data, row_part, org_length); if (share->now_transactional) { /* Log changes in tail block */ uchar log_data[FILEID_STORE_SIZE + PAGE_STORE_SIZE + DIRPOS_STORE_SIZE]; LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 2]; LSN lsn; /* Log REDO changes of tail page Note that we have to log length, not org_length, to be sure that REDO, which doesn't use write_tail, also creates a block of at least MIN_TAIL_SIZE */ page_store(log_data + FILEID_STORE_SIZE, block->page); dirpos_store(log_data + FILEID_STORE_SIZE + PAGE_STORE_SIZE, row_pos.rownr); log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data; log_array[TRANSLOG_INTERNAL_PARTS + 0].length= sizeof(log_data); log_array[TRANSLOG_INTERNAL_PARTS + 1].str= row_pos.data; log_array[TRANSLOG_INTERNAL_PARTS + 1].length= length; if (translog_write_record(&lsn, (block_is_read ? LOGREC_REDO_INSERT_ROW_TAIL : LOGREC_REDO_NEW_ROW_TAIL), info->trn, info, (translog_size_t) (sizeof(log_data) + length), TRANSLOG_INTERNAL_PARTS + 2, log_array, log_data, NULL)) DBUG_RETURN(1); } int2store(row_pos.dir + 2, length); empty_space= row_pos.empty_space - length; int2store(row_pos.buff + EMPTY_SPACE_OFFSET, empty_space); block->page_count= row_pos.rownr + TAIL_BIT; /* If there is less directory entries free than number of possible tails we can write for a row, we mark the page full to ensure that we don't during _ma_bitmap_find_place() allocate more entries on the tail page than it can hold */ block->empty_space= (enough_free_entries(row_pos.buff, share->block_size, 1 + share->base.blobs) ? empty_space : 0); /* Keep BLOCKUSED_USE_ORG_BITMAP */ block->used|= BLOCKUSED_USED | BLOCKUSED_TAIL; if (block_is_read) { /* Current page link is last element in pinned_pages */ MARIA_PINNED_PAGE *page_link; page_link= dynamic_element(&info->pinned_pages, info->pinned_pages.elements-1, MARIA_PINNED_PAGE*); pagecache_unlock_by_link(share->pagecache, page_link->link, PAGECACHE_LOCK_WRITE_TO_READ, PAGECACHE_PIN_LEFT_PINNED, LSN_IMPOSSIBLE, LSN_IMPOSSIBLE, 1, FALSE); DBUG_ASSERT(page_link->changed); page_link->unlock= PAGECACHE_LOCK_READ_UNLOCK; res= 0; } else { if (!(res= pagecache_write(share->pagecache, &info->dfile, block->page, 0, row_pos.buff,share->page_type, PAGECACHE_LOCK_READ, PAGECACHE_PIN, PAGECACHE_WRITE_DELAY, &page_link.link, LSN_IMPOSSIBLE))) { DBUG_ASSERT(page_link.link); page_link.unlock= PAGECACHE_LOCK_READ_UNLOCK; page_link.changed= 1; push_dynamic(&info->pinned_pages, (void*) &page_link); } /* Increase data file size, if extended */ position= (my_off_t) block->page * block_size; if (share->state.state.data_file_length <= position) { /* We are modifying a state member before writing the UNDO; this is a WAL violation. But for data_file_length this is ok, as long as we change data_file_length after writing any log record (FILE_ID/REDO/UNDO) (see collect_tables()). */ _ma_set_share_data_file_length(share, position + block_size); } } DBUG_RETURN(res); }
O3
c
write_tail: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movl %ecx, %ebx movq %rdx, -0x60(%rbp) movq %rsi, %r14 movq %rdi, %r15 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq (%rdi), %rax movq %rax, -0x50(%rbp) movl 0x7bc(%rax), %eax movq %rax, -0x58(%rbp) cmpl $0x21, %ecx movl $0x20, %r12d cmovael %ecx, %r12d movb $0x1, 0x685(%rdi) movl 0x8(%rsi), %r9d movq 0x380(%rdi), %rdx cmpl $0xffff, %r9d # imm = 0xFFFF jne 0x519d6 leaq -0x88(%rbp), %r9 movq %r15, %rdi movq %r14, %rsi movl %r12d, %ecx movl $0x2, %r8d callq 0x5155c jmp 0x51a01 andl $0xffff7fff, %r9d # imm = 0xFFFF7FFF subq $0x8, %rsp leaq -0x88(%rbp), %rax movq %r15, %rdi movq %r14, %rsi movl %r12d, %ecx movl $0x2, %r8d pushq %rax callq 0x4f7b5 addq $0x10, %rsp movb $0x1, %r13b testb %al, %al je 0x51a30 movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x51c56 movl %r13d, %eax addq $0xa8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r14, -0x48(%rbp) movb 0x15(%r14), %r14b movq -0x80(%rbp), %r13 movl %ebx, %edx movq %r13, %rdi movq -0x60(%rbp), %rsi callq 0x29080 movq -0x50(%rbp), %rax cmpb $0x0, 0x7e7(%rax) movb %r14b, -0x39(%rbp) je 0x51adf xorl %ecx, %ecx testb %r14b, %r14b sete %cl movq -0x48(%rbp), %r14 movq (%r14), %rdx leaq -0x38(%rbp), %rax movl %edx, 0x2(%rax) shrq $0x20, %rdx movb %dl, 0x6(%rax) movl -0x6c(%rbp), %ebx movb %bl, 0x7(%rax) leaq -0xd0(%rbp), %r10 movq %rax, 0x20(%r10) movq $0x8, 0x28(%r10) movq %r13, 0x30(%r10) movl %r12d, %edx movq %rdx, 0x38(%r10) leal 0x2(,%rcx,2), %esi movq 0x8(%r15), %rdx leal 0x8(%r12), %r8d subq $0x8, %rsp leaq -0x90(%rbp), %rdi movq %r15, %rcx movl $0x4, %r9d pushq $0x0 pushq %rax pushq %r10 callq 0x29c54 addq $0x20, %rsp movb $0x1, %r13b testb %al, %al jne 0x51a08 jmp 0x51ae6 movl -0x6c(%rbp), %ebx movq -0x48(%rbp), %r14 movq -0x78(%rbp), %rax movw %r12w, 0x2(%rax) movl -0x68(%rbp), %eax subl %r12d, %eax movq -0x88(%rbp), %r8 movw %ax, 0xa(%r8) addl $0x8000, %ebx # imm = 0x8000 movl %ebx, 0x8(%r14) movq -0x50(%rbp), %r12 movl 0x3f0(%r12), %ecx movzbl 0x8(%r8), %edx addl %edx, %ecx incl %ecx cmpl $0x100, %ecx # imm = 0x100 jae 0x51b2e movb -0x39(%rbp), %r9b jmp 0x51b69 movb 0x9(%r8), %dl cmpb $-0x1, %dl movb -0x39(%rbp), %r9b je 0x51b67 movl 0x7bc(%r12), %esi addl $0xffffff01, %ecx # imm = 0xFFFFFF01 addq %r8, %rsi addq $-0x5, %rsi decl %ecx je 0x51b69 movzbl %dl, %edx shll $0x2, %edx movq %rsi, %rdi subq %rdx, %rdi movb (%rdi), %dl cmpb $-0x1, %dl jne 0x51b50 xorl %eax, %eax orb $0x5, 0x14(%r14) movl %eax, 0xc(%r14) testb %r9b, %r9b je 0x51bc2 movq 0x2e8(%r15), %rbx movl 0x2f0(%r15), %eax decl %eax leaq (%rax,%rax,2), %r14 movq 0x600(%r12), %rdi movq (%rbx,%r14,8), %rsi xorl %r13d, %r13d movl $0x7, %edx xorl %ecx, %ecx xorl %r8d, %r8d xorl %r9d, %r9d pushq $0x0 pushq $0x1 callq 0x3af9d addq $0x10, %rsp movl $0x5, 0x8(%rbx,%r14,8) jmp 0x51a08 movq 0x600(%r12), %rdi leaq 0x470(%r15), %rsi movq (%r14), %rdx movl 0x7d4(%r12), %r9d movl 0x80(%rdi), %eax subq $0x8, %rsp xorl %r10d, %r10d leaq -0xd0(%rbp), %r11 xorl %ecx, %ecx pushq %rax pushq %r10 pushq $0x0 pushq %r11 pushq %r10 pushq $0x2 pushq $0x3 callq 0x3c6e6 addq $0x40, %rsp movl %eax, %r13d testb %al, %al jne 0x51c30 leaq -0xd0(%rbp), %rsi movl $0x5, 0x8(%rsi) movb $0x1, 0x10(%rsi) addq $0x2e8, %r15 # imm = 0x2E8 movq %r15, %rdi callq 0x91b92 movq (%r14), %rsi movq -0x58(%rbp), %rax imulq %rax, %rsi cmpq %rsi, 0x40(%r12) ja 0x51a08 addq %rax, %rsi movq %r12, %rdi callq 0x4387c jmp 0x51a08 callq 0x29260
write_tail: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 0A8h mov ebx, ecx mov [rbp+var_60], rdx mov r14, rsi mov r15, rdi mov rax, fs:28h mov [rbp+var_30], rax mov rax, [rdi] mov [rbp+var_50], rax mov eax, [rax+7BCh] mov [rbp+var_58], rax cmp ecx, 21h ; '!' mov r12d, 20h ; ' ' cmovnb r12d, ecx mov byte ptr [rdi+685h], 1 mov r9d, [rsi+8] mov rdx, [rdi+380h] cmp r9d, 0FFFFh jnz short loc_519D6 lea r9, [rbp+var_88] mov rdi, r15 mov rsi, r14 mov ecx, r12d mov r8d, 2 call get_head_or_tail_page jmp short loc_51A01 loc_519D6: and r9d, 0FFFF7FFFh sub rsp, 8 lea rax, [rbp+var_88] mov rdi, r15 mov rsi, r14 mov ecx, r12d mov r8d, 2 push rax call get_rowpos_in_head_or_tail_page add rsp, 10h loc_51A01: mov r13b, 1 test al, al jz short loc_51A30 loc_51A08: mov rax, fs:28h cmp rax, [rbp+var_30] jnz loc_51C56 mov eax, r13d add rsp, 0A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_51A30: mov [rbp+var_48], r14 mov r14b, [r14+15h] mov r13, [rbp+var_80] mov edx, ebx mov rdi, r13 mov rsi, [rbp+var_60] call _memcpy mov rax, [rbp+var_50] cmp byte ptr [rax+7E7h], 0 mov [rbp+var_39], r14b jz loc_51ADF xor ecx, ecx test r14b, r14b setz cl mov r14, [rbp+var_48] mov rdx, [r14] lea rax, [rbp+var_38] mov [rax+2], edx shr rdx, 20h mov [rax+6], dl mov ebx, [rbp+var_6C] mov [rax+7], bl lea r10, [rbp+var_D0] mov [r10+20h], rax mov qword ptr [r10+28h], 8 mov [r10+30h], r13 mov edx, r12d mov [r10+38h], rdx lea esi, ds:2[rcx*2] mov rdx, [r15+8] lea r8d, [r12+8] sub rsp, 8 lea rdi, [rbp+var_90] mov rcx, r15 mov r9d, 4 push 0 push rax push r10 call translog_write_record add rsp, 20h mov r13b, 1 test al, al jnz loc_51A08 jmp short loc_51AE6 loc_51ADF: mov ebx, [rbp+var_6C] mov r14, [rbp+var_48] loc_51AE6: mov rax, [rbp+var_78] mov [rax+2], r12w mov eax, [rbp+var_68] sub eax, r12d mov r8, [rbp+var_88] mov [r8+0Ah], ax add ebx, 8000h mov [r14+8], ebx mov r12, [rbp+var_50] mov ecx, [r12+3F0h] movzx edx, byte ptr [r8+8] add ecx, edx inc ecx cmp ecx, 100h jnb short loc_51B2E mov r9b, [rbp+var_39] jmp short loc_51B69 loc_51B2E: mov dl, [r8+9] cmp dl, 0FFh mov r9b, [rbp+var_39] jz short loc_51B67 mov esi, [r12+7BCh] add ecx, 0FFFFFF01h add rsi, r8 add rsi, 0FFFFFFFFFFFFFFFBh loc_51B50: dec ecx jz short loc_51B69 movzx edx, dl shl edx, 2 mov rdi, rsi sub rdi, rdx mov dl, [rdi] cmp dl, 0FFh jnz short loc_51B50 loc_51B67: xor eax, eax loc_51B69: or byte ptr [r14+14h], 5 mov [r14+0Ch], eax test r9b, r9b jz short loc_51BC2 mov rbx, [r15+2E8h] mov eax, [r15+2F0h] dec eax lea r14, [rax+rax*2] mov rdi, [r12+600h] mov rsi, [rbx+r14*8] xor r13d, r13d mov edx, 7 xor ecx, ecx xor r8d, r8d xor r9d, r9d push 0 push 1 call pagecache_unlock_by_link add rsp, 10h mov dword ptr [rbx+r14*8+8], 5 jmp loc_51A08 loc_51BC2: mov rdi, [r12+600h] lea rsi, [r15+470h] mov rdx, [r14] mov r9d, [r12+7D4h] mov eax, [rdi+80h] sub rsp, 8 xor r10d, r10d lea r11, [rbp+var_D0] xor ecx, ecx push rax push r10 push 0 push r11 push r10 push 2 push 3 call pagecache_write_part add rsp, 40h mov r13d, eax test al, al jnz short loc_51C30 lea rsi, [rbp+var_D0] mov dword ptr [rsi+8], 5 mov byte ptr [rsi+10h], 1 add r15, 2E8h mov rdi, r15 call insert_dynamic loc_51C30: mov rsi, [r14] mov rax, [rbp+var_58] imul rsi, rax cmp [r12+40h], rsi ja loc_51A08 add rsi, rax mov rdi, r12 call _ma_set_share_data_file_length jmp loc_51A08 loc_51C56: call ___stack_chk_fail
long long write_tail(long long a1, long long a2, long long a3, unsigned int a4) { long long v4; // r13 unsigned int v6; // r12d int v7; // r9d _BYTE *v8; // rdx char head_or_tail_page; // al char v11; // r14 bool v12; // zf BOOL v13; // ecx _QWORD *v14; // r14 long long v15; // rdx int v16; // ebx int v17; // eax char *v18; // r8 long long v19; // r12 char v20; // r9 unsigned __int8 v21; // dl int v22; // ecx long long v23; // rbx long long v24; // rax long long v25; // r14 unsigned long long v26; // rsi __int128 v27; // [rsp+0h] [rbp-D0h] BYREF char v28; // [rsp+10h] [rbp-C0h] __int16 *v29; // [rsp+20h] [rbp-B0h] long long v30; // [rsp+28h] [rbp-A8h] long long v31; // [rsp+30h] [rbp-A0h] long long v32; // [rsp+38h] [rbp-98h] char v33[8]; // [rsp+40h] [rbp-90h] BYREF long long v34; // [rsp+48h] [rbp-88h] BYREF long long v35; // [rsp+50h] [rbp-80h] long long v36; // [rsp+58h] [rbp-78h] int v37; // [rsp+64h] [rbp-6Ch] int v38; // [rsp+68h] [rbp-68h] long long v39; // [rsp+70h] [rbp-60h] long long v40; // [rsp+78h] [rbp-58h] long long v41; // [rsp+80h] [rbp-50h] _QWORD *v42; // [rsp+88h] [rbp-48h] char v43; // [rsp+97h] [rbp-39h] __int16 v44; // [rsp+98h] [rbp-38h] BYREF int v45; // [rsp+9Ah] [rbp-36h] char v46; // [rsp+9Eh] [rbp-32h] char v47; // [rsp+9Fh] [rbp-31h] unsigned long long v48; // [rsp+A0h] [rbp-30h] v39 = a3; v48 = __readfsqword(0x28u); v41 = *(_QWORD *)a1; v40 = *(unsigned int *)(v41 + 1980); v6 = 32; if ( a4 >= 0x21 ) v6 = a4; *(_BYTE *)(a1 + 1669) = 1; v7 = *(_DWORD *)(a2 + 8); v8 = *(_BYTE **)(a1 + 896); if ( v7 == 0xFFFF ) head_or_tail_page = get_head_or_tail_page((long long *)a1, a2, v8, v6, 2, (long long)&v34); else head_or_tail_page = get_rowpos_in_head_or_tail_page((long long *)a1, a2, v8, v6, 2, v7 & 0xFFFF7FFF, (long long)&v34); LOBYTE(v4) = 1; if ( !head_or_tail_page ) { v42 = (_QWORD *)a2; v11 = *(_BYTE *)(a2 + 21); v4 = v35; memcpy(v35, v39, a4); v12 = *(_BYTE *)(v41 + 2023) == 0; v43 = v11; if ( v12 ) { v16 = v37; v14 = v42; } else { v13 = v11 == 0; v14 = v42; v15 = *v42; v45 = *v42; v46 = BYTE4(v15); v16 = v37; v47 = v37; v29 = &v44; v30 = 8LL; v31 = v4; v32 = v6; LOBYTE(v4) = 1; if ( (unsigned __int8)translog_write_record( (unsigned long long)v33, (_WORD *)(unsigned int)(2 * v13 + 2), *(_QWORD *)(a1 + 8), (_QWORD *)a1, v6 + 8, 4, &v27, &v44, 0LL) ) return (unsigned int)v4; } *(_WORD *)(v36 + 2) = v6; v17 = v38 - v6; v18 = (char *)v34; *(_WORD *)(v34 + 10) = v38 - v6; *((_DWORD *)v14 + 2) = v16 + 0x8000; v19 = v41; if ( (unsigned int)(unsigned __int8)v18[8] + *(_DWORD *)(v41 + 1008) + 1 >= 0x100 ) { v21 = v18[9]; v20 = v43; if ( v21 == 0xFF ) { LABEL_18: v17 = 0; } else { v22 = (unsigned __int8)v18[8] + *(_DWORD *)(v41 + 1008) - 254; while ( --v22 ) { v21 = v18[*(unsigned int *)(v41 + 1980) - 5 + -4 * v21]; if ( v21 == 0xFF ) goto LABEL_18; } } } else { v20 = v43; } *((_BYTE *)v14 + 20) |= 5u; *((_DWORD *)v14 + 3) = v17; if ( v20 ) { v23 = *(_QWORD *)(a1 + 744); v24 = (unsigned int)(*(_DWORD *)(a1 + 752) - 1); v25 = 3 * v24; LODWORD(v4) = 0; pagecache_unlock_by_link(*(_QWORD *)(v19 + 1536), *(_QWORD *)(v23 + 24 * v24), 7, 0, 0LL, 0LL, 1); *(_DWORD *)(v23 + 8 * v25 + 8) = 5; } else { LODWORD(v4) = pagecache_write_part( *(__m128i **)(v19 + 1536), (char *)(a1 + 1136), *v14, 0, v18, *(_DWORD *)(v19 + 2004), 3u, 2u, 0, &v27, 0LL, 0, *(_DWORD *)(*(_QWORD *)(v19 + 1536) + 128LL)); if ( !(_BYTE)v4 ) { DWORD2(v27) = 5; v28 = 1; insert_dynamic(a1 + 744, &v27); } v26 = v40 * *v14; if ( *(_QWORD *)(v19 + 64) <= v26 ) ma_set_share_data_file_length(v19, v40 + v26); } } return (unsigned int)v4; }
write_tail: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xa8 MOV EBX,ECX MOV qword ptr [RBP + -0x60],RDX MOV R14,RSI MOV R15,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RDI] MOV qword ptr [RBP + -0x50],RAX MOV EAX,dword ptr [RAX + 0x7bc] MOV qword ptr [RBP + -0x58],RAX CMP ECX,0x21 MOV R12D,0x20 CMOVNC R12D,ECX MOV byte ptr [RDI + 0x685],0x1 MOV R9D,dword ptr [RSI + 0x8] MOV RDX,qword ptr [RDI + 0x380] CMP R9D,0xffff JNZ 0x001519d6 LEA R9,[RBP + -0x88] MOV RDI,R15 MOV RSI,R14 MOV ECX,R12D MOV R8D,0x2 CALL 0x0015155c JMP 0x00151a01 LAB_001519d6: AND R9D,0xffff7fff SUB RSP,0x8 LEA RAX,[RBP + -0x88] MOV RDI,R15 MOV RSI,R14 MOV ECX,R12D MOV R8D,0x2 PUSH RAX CALL 0x0014f7b5 ADD RSP,0x10 LAB_00151a01: MOV R13B,0x1 TEST AL,AL JZ 0x00151a30 LAB_00151a08: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x00151c56 MOV EAX,R13D ADD RSP,0xa8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00151a30: MOV qword ptr [RBP + -0x48],R14 MOV R14B,byte ptr [R14 + 0x15] MOV R13,qword ptr [RBP + -0x80] MOV EDX,EBX MOV RDI,R13 MOV RSI,qword ptr [RBP + -0x60] CALL 0x00129080 MOV RAX,qword ptr [RBP + -0x50] CMP byte ptr [RAX + 0x7e7],0x0 MOV byte ptr [RBP + -0x39],R14B JZ 0x00151adf XOR ECX,ECX TEST R14B,R14B SETZ CL MOV R14,qword ptr [RBP + -0x48] MOV RDX,qword ptr [R14] LEA RAX,[RBP + -0x38] MOV dword ptr [RAX + 0x2],EDX SHR RDX,0x20 MOV byte ptr [RAX + 0x6],DL MOV EBX,dword ptr [RBP + -0x6c] MOV byte ptr [RAX + 0x7],BL LEA R10,[RBP + -0xd0] MOV qword ptr [R10 + 0x20],RAX MOV qword ptr [R10 + 0x28],0x8 MOV qword ptr [R10 + 0x30],R13 MOV EDX,R12D MOV qword ptr [R10 + 0x38],RDX LEA ESI,[0x2 + RCX*0x2] MOV RDX,qword ptr [R15 + 0x8] LEA R8D,[R12 + 0x8] SUB RSP,0x8 LEA RDI,[RBP + -0x90] MOV RCX,R15 MOV R9D,0x4 PUSH 0x0 PUSH RAX PUSH R10 CALL 0x00129c54 ADD RSP,0x20 MOV R13B,0x1 TEST AL,AL JNZ 0x00151a08 JMP 0x00151ae6 LAB_00151adf: MOV EBX,dword ptr [RBP + -0x6c] MOV R14,qword ptr [RBP + -0x48] LAB_00151ae6: MOV RAX,qword ptr [RBP + -0x78] MOV word ptr [RAX + 0x2],R12W MOV EAX,dword ptr [RBP + -0x68] SUB EAX,R12D MOV R8,qword ptr [RBP + -0x88] MOV word ptr [R8 + 0xa],AX ADD EBX,0x8000 MOV dword ptr [R14 + 0x8],EBX MOV R12,qword ptr [RBP + -0x50] MOV ECX,dword ptr [R12 + 0x3f0] MOVZX EDX,byte ptr [R8 + 0x8] ADD ECX,EDX INC ECX CMP ECX,0x100 JNC 0x00151b2e MOV R9B,byte ptr [RBP + -0x39] JMP 0x00151b69 LAB_00151b2e: MOV DL,byte ptr [R8 + 0x9] CMP DL,0xff MOV R9B,byte ptr [RBP + -0x39] JZ 0x00151b67 MOV ESI,dword ptr [R12 + 0x7bc] ADD ECX,0xffffff01 ADD RSI,R8 ADD RSI,-0x5 LAB_00151b50: DEC ECX JZ 0x00151b69 MOVZX EDX,DL SHL EDX,0x2 MOV RDI,RSI SUB RDI,RDX MOV DL,byte ptr [RDI] CMP DL,0xff JNZ 0x00151b50 LAB_00151b67: XOR EAX,EAX LAB_00151b69: OR byte ptr [R14 + 0x14],0x5 MOV dword ptr [R14 + 0xc],EAX TEST R9B,R9B JZ 0x00151bc2 MOV RBX,qword ptr [R15 + 0x2e8] MOV EAX,dword ptr [R15 + 0x2f0] DEC EAX LEA R14,[RAX + RAX*0x2] MOV RDI,qword ptr [R12 + 0x600] MOV RSI,qword ptr [RBX + R14*0x8] XOR R13D,R13D MOV EDX,0x7 XOR ECX,ECX XOR R8D,R8D XOR R9D,R9D PUSH 0x0 PUSH 0x1 CALL 0x0013af9d ADD RSP,0x10 MOV dword ptr [RBX + R14*0x8 + 0x8],0x5 JMP 0x00151a08 LAB_00151bc2: MOV RDI,qword ptr [R12 + 0x600] LEA RSI,[R15 + 0x470] MOV RDX,qword ptr [R14] MOV R9D,dword ptr [R12 + 0x7d4] MOV EAX,dword ptr [RDI + 0x80] SUB RSP,0x8 XOR R10D,R10D LEA R11,[RBP + -0xd0] XOR ECX,ECX PUSH RAX PUSH R10 PUSH 0x0 PUSH R11 PUSH R10 PUSH 0x2 PUSH 0x3 CALL 0x0013c6e6 ADD RSP,0x40 MOV R13D,EAX TEST AL,AL JNZ 0x00151c30 LEA RSI,[RBP + -0xd0] MOV dword ptr [RSI + 0x8],0x5 MOV byte ptr [RSI + 0x10],0x1 ADD R15,0x2e8 MOV RDI,R15 CALL 0x00191b92 LAB_00151c30: MOV RSI,qword ptr [R14] MOV RAX,qword ptr [RBP + -0x58] IMUL RSI,RAX CMP qword ptr [R12 + 0x40],RSI JA 0x00151a08 ADD RSI,RAX MOV RDI,R12 CALL 0x0014387c JMP 0x00151a08 LAB_00151c56: CALL 0x00129260
ulong write_tail(long *param_1,long *param_2,void *param_3,uint param_4) { long lVar1; long *plVar2; char cVar3; uint uVar4; int iVar5; byte bVar6; ulong uVar7; int8 unaff_R13; ulong uVar8; long in_FS_OFFSET; int1 local_d8 [8]; int4 local_d0; int1 local_c8; int1 *local_b8; int8 local_b0; void *local_a8; ulong local_a0; int1 local_98 [8]; long local_90; void *local_88; long local_80; int local_74; int local_70; void *local_68; ulong local_60; long local_58; long *local_50; char local_41; int1 local_40 [2]; int4 local_3e; int1 local_3a; int1 local_39; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); local_58 = *param_1; local_60 = (ulong)*(uint *)(local_58 + 0x7bc); uVar7 = 0x20; if (0x20 < param_4) { uVar7 = (ulong)param_4; } *(int1 *)((long)param_1 + 0x685) = 1; local_68 = param_3; if (*(uint *)(param_2 + 1) == 0xffff) { cVar3 = get_head_or_tail_page(param_1,param_2,param_1[0x70],uVar7,2,&local_90); } else { cVar3 = get_rowpos_in_head_or_tail_page (param_1,param_2,param_1[0x70],uVar7,2,*(uint *)(param_2 + 1) & 0xffff7fff, &local_90); } uVar8 = CONCAT71((int7)((ulong)unaff_R13 >> 8),1); if (cVar3 == '\0') { cVar3 = *(char *)((long)param_2 + 0x15); local_50 = param_2; memcpy(local_88,local_68,(ulong)param_4); plVar2 = local_50; local_41 = cVar3; if (*(char *)(local_58 + 0x7e7) != '\0') { local_b8 = local_40; local_3e = (int4)*local_50; local_3a = (int1)((ulong)*local_50 >> 0x20); local_39 = (int1)local_74; local_b0 = 8; local_a8 = local_88; local_a0 = uVar7; cVar3 = translog_write_record (local_98,(cVar3 == '\0') * '\x02' + '\x02',param_1[1],param_1, (int)uVar7 + 8,4,local_d8,local_b8,0); uVar8 = CONCAT71((int7)((ulong)local_88 >> 8),1); if (cVar3 != '\0') goto LAB_00151a08; } lVar1 = local_58; *(short *)(local_80 + 2) = (short)uVar7; local_70 = local_70 - (int)uVar7; *(short *)(local_90 + 10) = (short)local_70; *(int *)(plVar2 + 1) = local_74 + 0x8000; iVar5 = *(int *)(local_58 + 0x3f0) + (uint)*(byte *)(local_90 + 8); if (0xff < iVar5 + 1U) { bVar6 = *(byte *)(local_90 + 9); if (bVar6 != 0xff) { iVar5 = iVar5 + -0xfe; do { iVar5 = iVar5 + -1; if (iVar5 == 0) goto LAB_00151b69; bVar6 = *(byte *)((ulong)*(uint *)(local_58 + 0x7bc) + local_90 + -5 + (ulong)bVar6 * -4); } while (bVar6 != 0xff); } local_70 = 0; } LAB_00151b69: *(byte *)((long)plVar2 + 0x14) = *(byte *)((long)plVar2 + 0x14) | 5; *(int *)((long)plVar2 + 0xc) = local_70; if (local_41 == '\0') { uVar4 = pagecache_write_part (*(long *)(local_58 + 0x600),param_1 + 0x8e,*plVar2,0,local_90, *(int4 *)(local_58 + 0x7d4),3,2,0,local_d8,0,0, *(int4 *)(*(long *)(local_58 + 0x600) + 0x80)); uVar8 = (ulong)uVar4; if ((char)uVar4 == '\0') { local_d0 = 5; local_c8 = 1; insert_dynamic(param_1 + 0x5d); } if (*(ulong *)(lVar1 + 0x40) <= *plVar2 * local_60) { _ma_set_share_data_file_length(lVar1,*plVar2 * local_60 + local_60); } } else { lVar1 = param_1[0x5d]; uVar7 = (ulong)((int)param_1[0x5e] - 1); uVar8 = 0; pagecache_unlock_by_link (*(int8 *)(local_58 + 0x600),*(int8 *)(lVar1 + uVar7 * 0x18),7,0,0,0,1,0 ); *(int4 *)(lVar1 + 8 + uVar7 * 0x18) = 5; } } LAB_00151a08: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return uVar8 & 0xffffffff; }
17,620
change_pagecache_param
eloqsql/storage/maria/ma_pagecache.c
void change_pagecache_param(PAGECACHE *pagecache, uint division_limit, uint age_threshold) { DBUG_ENTER("change_pagecache_param"); pagecache_pthread_mutex_lock(&pagecache->cache_lock); if (division_limit) pagecache->min_warm_blocks= (pagecache->disk_blocks * division_limit / 100 + 1); if (age_threshold) pagecache->age_threshold= (pagecache->disk_blocks * age_threshold / 100); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); DBUG_VOID_RETURN; }
O3
c
change_pagecache_param: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %edx, %r15d movl %esi, %r12d movq %rdi, %r14 leaq 0xc8(%rdi), %rbx cmpq $0x0, 0x108(%rdi) jne 0x31538 movq %rbx, %rdi callq 0x29220 movabsq $-0x5c28f5c28f5c28f5, %rsi # imm = 0xA3D70A3D70A3D70B testl %r12d, %r12d je 0x314f4 movl %r12d, %ecx imulq 0x40(%r14), %rcx movq %rcx, %rax imulq %rsi addq %rcx, %rdx movq %rdx, %rax shrq $0x3f, %rax sarq $0x6, %rdx addq %rdx, %rax incq %rax movq %rax, 0x8(%r14) testl %r15d, %r15d je 0x3151c movl %r15d, %ecx imulq 0x40(%r14), %rcx movq %rcx, %rax imulq %rsi addq %rcx, %rdx movq %rdx, %rax shrq $0x3f, %rax sarq $0x6, %rdx addq %rax, %rdx movq %rdx, 0x10(%r14) movq 0x108(%r14), %rdi testq %rdi, %rdi jne 0x31551 movq %rbx, %rdi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp 0x291e0 leaq 0xa8073(%rip), %rsi # 0xd95b2 movq %rbx, %rdi movl $0x46d, %edx # imm = 0x46D callq 0x2eb8f jmp 0x314bf leaq 0x354ab8(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x31528
change_pagecache_param: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r15d, edx mov r12d, esi mov r14, rdi lea rbx, [rdi+0C8h] cmp qword ptr [rdi+108h], 0 jnz loc_31538 mov rdi, rbx call _pthread_mutex_lock loc_314BF: mov rsi, 0A3D70A3D70A3D70Bh test r12d, r12d jz short loc_314F4 mov ecx, r12d imul rcx, [r14+40h] mov rax, rcx imul rsi add rdx, rcx mov rax, rdx shr rax, 3Fh sar rdx, 6 add rax, rdx inc rax mov [r14+8], rax loc_314F4: test r15d, r15d jz short loc_3151C mov ecx, r15d imul rcx, [r14+40h] mov rax, rcx imul rsi add rdx, rcx mov rax, rdx shr rax, 3Fh sar rdx, 6 add rdx, rax mov [r14+10h], rdx loc_3151C: mov rdi, [r14+108h] test rdi, rdi jnz short loc_31551 loc_31528: mov rdi, rbx pop rbx pop r12 pop r14 pop r15 pop rbp jmp _pthread_mutex_unlock loc_31538: lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rbx mov edx, 46Dh call psi_mutex_lock jmp loc_314BF loc_31551: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_31528
long long change_pagecache_param(_QWORD *a1, unsigned int a2, unsigned int a3) { _QWORD *v4; // rbx long long v5; // rdi v4 = a1 + 25; if ( a1[33] ) psi_mutex_lock( (long long)(a1 + 25), (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x46Du); else pthread_mutex_lock(a1 + 25); if ( a2 ) a1[1] = a1[8] * a2 / 100LL + 1; if ( a3 ) a1[2] = a1[8] * a3 / 100LL; v5 = a1[33]; if ( v5 ) ((void ( *)(long long, unsigned long long))PSI_server[44])(v5, 0xA3D70A3D70A3D70BLL); return pthread_mutex_unlock(v4); }
change_pagecache_param: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R15D,EDX MOV R12D,ESI MOV R14,RDI LEA RBX,[RDI + 0xc8] CMP qword ptr [RDI + 0x108],0x0 JNZ 0x00131538 MOV RDI,RBX CALL 0x00129220 LAB_001314bf: MOV RSI,-0x5c28f5c28f5c28f5 TEST R12D,R12D JZ 0x001314f4 MOV ECX,R12D IMUL RCX,qword ptr [R14 + 0x40] MOV RAX,RCX IMUL RSI ADD RDX,RCX MOV RAX,RDX SHR RAX,0x3f SAR RDX,0x6 ADD RAX,RDX INC RAX MOV qword ptr [R14 + 0x8],RAX LAB_001314f4: TEST R15D,R15D JZ 0x0013151c MOV ECX,R15D IMUL RCX,qword ptr [R14 + 0x40] MOV RAX,RCX IMUL RSI ADD RDX,RCX MOV RAX,RDX SHR RAX,0x3f SAR RDX,0x6 ADD RDX,RAX MOV qword ptr [R14 + 0x10],RDX LAB_0013151c: MOV RDI,qword ptr [R14 + 0x108] TEST RDI,RDI JNZ 0x00131551 LAB_00131528: MOV RDI,RBX POP RBX POP R12 POP R14 POP R15 POP RBP JMP 0x001291e0 LAB_00131538: LEA RSI,[0x1d95b2] MOV RDI,RBX MOV EDX,0x46d CALL 0x0012eb8f JMP 0x001314bf LAB_00131551: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00131528
void change_pagecache_param(long param_1,uint param_2,uint param_3) { pthread_mutex_t *__mutex; __mutex = (pthread_mutex_t *)(param_1 + 200); if (*(long *)(param_1 + 0x108) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x46d); } if (param_2 != 0) { *(long *)(param_1 + 8) = (long)((ulong)param_2 * *(long *)(param_1 + 0x40)) / 100 + 1; } if (param_3 != 0) { *(long *)(param_1 + 0x10) = (long)((ulong)param_3 * *(long *)(param_1 + 0x40)) / 100; } if (*(long *)(param_1 + 0x108) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); return; }
17,621
my_caseup_str_utf8mb3
eloqsql/strings/ctype-utf8.c
static size_t my_caseup_str_utf8mb3(CHARSET_INFO *cs, char *src) { my_wc_t wc; int srcres, dstres; char *dst= src, *dst0= src; MY_UNICASE_INFO *uni_plane= cs->caseinfo; DBUG_ASSERT(cs->caseup_multiply == 1); while (*src && (srcres= my_utf8mb3_uni_no_range(cs, &wc, (uchar *) src)) > 0) { my_toupper_utf8mb3(uni_plane, &wc); if ((dstres= my_uni_utf8mb3_no_range(cs, wc, (uchar*) dst)) <= 0) break; src+= srcres; dst+= dstres; } *dst= '\0'; return (size_t) (dst - dst0); }
O0
c
my_caseup_str_utf8mb3: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x8(%rbp), %rax movq 0x78(%rax), %rax movq %rax, -0x38(%rbp) jmp 0x6523e jmp 0x65240 movq -0x10(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x39(%rbp) je 0x6526e movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rdx leaq -0x18(%rbp), %rsi callq 0x660a0 movl %eax, -0x1c(%rbp) cmpl $0x0, %eax setg %al movb %al, -0x39(%rbp) movb -0x39(%rbp), %al testb $0x1, %al jne 0x65277 jmp 0x652c6 movq -0x38(%rbp), %rdi leaq -0x18(%rbp), %rsi callq 0x66200 movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x28(%rbp), %rdx callq 0x66260 movl %eax, -0x20(%rbp) cmpl $0x0, %eax jg 0x6529f jmp 0x652c6 movl -0x1c(%rbp), %ecx movq -0x10(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) movl -0x20(%rbp), %ecx movq -0x28(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) jmp 0x65240 movq -0x28(%rbp), %rax movb $0x0, (%rax) movq -0x28(%rbp), %rax movq -0x30(%rbp), %rcx subq %rcx, %rax addq $0x40, %rsp popq %rbp retq nop
my_caseup_str_utf8mb3: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_10] mov [rbp+var_30], rax mov rax, [rbp+var_8] mov rax, [rax+78h] mov [rbp+var_38], rax jmp short $+2 loc_6523E: jmp short $+2 loc_65240: mov rax, [rbp+var_10] movsx ecx, byte ptr [rax] xor eax, eax cmp ecx, 0 mov [rbp+var_39], al jz short loc_6526E mov rdi, [rbp+var_8] mov rdx, [rbp+var_10] lea rsi, [rbp+var_18] call my_utf8mb3_uni_no_range mov [rbp+var_1C], eax cmp eax, 0 setnle al mov [rbp+var_39], al loc_6526E: mov al, [rbp+var_39] test al, 1 jnz short loc_65277 jmp short loc_652C6 loc_65277: mov rdi, [rbp+var_38] lea rsi, [rbp+var_18] call my_toupper_utf8mb3 mov rdi, [rbp+var_8] mov rsi, [rbp+var_18] mov rdx, [rbp+var_28] call my_uni_utf8mb3_no_range mov [rbp+var_20], eax cmp eax, 0 jg short loc_6529F jmp short loc_652C6 loc_6529F: mov ecx, [rbp+var_1C] mov rax, [rbp+var_10] movsxd rcx, ecx add rax, rcx mov [rbp+var_10], rax mov ecx, [rbp+var_20] mov rax, [rbp+var_28] movsxd rcx, ecx add rax, rcx mov [rbp+var_28], rax jmp loc_65240 loc_652C6: mov rax, [rbp+var_28] mov byte ptr [rax], 0 mov rax, [rbp+var_28] mov rcx, [rbp+var_30] sub rax, rcx add rsp, 40h pop rbp retn
_BYTE * my_caseup_str_utf8mb3(long long a1, _BYTE *a2) { bool v3; // [rsp+7h] [rbp-39h] long long v4; // [rsp+8h] [rbp-38h] _BYTE *v5; // [rsp+18h] [rbp-28h] int v6; // [rsp+20h] [rbp-20h] int v7; // [rsp+24h] [rbp-1Ch] long long v8; // [rsp+28h] [rbp-18h] BYREF _BYTE *v9; // [rsp+30h] [rbp-10h] long long v10; // [rsp+38h] [rbp-8h] v10 = a1; v9 = a2; v5 = a2; v4 = *(_QWORD *)(a1 + 120); while ( 1 ) { v3 = 0; if ( *v9 ) { v7 = my_utf8mb3_uni_no_range(v10, &v8, v9); v3 = v7 > 0; } if ( !v3 ) break; my_toupper_utf8mb3(v4, &v8); v6 = my_uni_utf8mb3_no_range(v10, v8, v5); if ( v6 <= 0 ) break; v9 += v7; v5 += v6; } *v5 = 0; return (_BYTE *)(v5 - a2); }
my_caseup_str_utf8mb3: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x78] MOV qword ptr [RBP + -0x38],RAX JMP 0x0016523e LAB_0016523e: JMP 0x00165240 LAB_00165240: MOV RAX,qword ptr [RBP + -0x10] MOVSX ECX,byte ptr [RAX] XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x39],AL JZ 0x0016526e MOV RDI,qword ptr [RBP + -0x8] MOV RDX,qword ptr [RBP + -0x10] LEA RSI,[RBP + -0x18] CALL 0x001660a0 MOV dword ptr [RBP + -0x1c],EAX CMP EAX,0x0 SETG AL MOV byte ptr [RBP + -0x39],AL LAB_0016526e: MOV AL,byte ptr [RBP + -0x39] TEST AL,0x1 JNZ 0x00165277 JMP 0x001652c6 LAB_00165277: MOV RDI,qword ptr [RBP + -0x38] LEA RSI,[RBP + -0x18] CALL 0x00166200 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x28] CALL 0x00166260 MOV dword ptr [RBP + -0x20],EAX CMP EAX,0x0 JG 0x0016529f JMP 0x001652c6 LAB_0016529f: MOV ECX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX MOV ECX,dword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX JMP 0x00165240 LAB_001652c6: MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] SUB RAX,RCX ADD RSP,0x40 POP RBP RET
long my_caseup_str_utf8mb3(long param_1,char *param_2) { int8 uVar1; bool bVar2; int iVar3; char *local_30; int local_24; int8 local_20; char *local_18; long local_10; uVar1 = *(int8 *)(param_1 + 0x78); local_30 = param_2; local_18 = param_2; local_10 = param_1; while( true ) { bVar2 = false; if (*local_18 != '\0') { local_24 = my_utf8mb3_uni_no_range(local_10,&local_20,local_18); bVar2 = 0 < local_24; } if (!bVar2) break; my_toupper_utf8mb3(uVar1,&local_20); iVar3 = my_uni_utf8mb3_no_range(local_10,local_20,local_30); if (iVar3 < 1) break; local_18 = local_18 + local_24; local_30 = local_30 + iVar3; } *local_30 = '\0'; return (long)local_30 - (long)param_2; }
17,622
my_caseup_str_utf8mb3
eloqsql/strings/ctype-utf8.c
static size_t my_caseup_str_utf8mb3(CHARSET_INFO *cs, char *src) { my_wc_t wc; int srcres, dstres; char *dst= src, *dst0= src; MY_UNICASE_INFO *uni_plane= cs->caseinfo; DBUG_ASSERT(cs->caseup_multiply == 1); while (*src && (srcres= my_utf8mb3_uni_no_range(cs, &wc, (uchar *) src)) > 0) { my_toupper_utf8mb3(uni_plane, &wc); if ((dstres= my_uni_utf8mb3_no_range(cs, wc, (uchar*) dst)) <= 0) break; src+= srcres; dst+= dstres; } *dst= '\0'; return (size_t) (dst - dst0); }
O3
c
my_caseup_str_utf8mb3: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx cmpb $0x0, (%rsi) movq %rsi, %r14 je 0x4f07b movq 0x78(%rdi), %r13 leaq -0x30(%rbp), %r15 movq %rbx, %r12 movq %rbx, %r14 movq %r15, %rdi movq %r12, %rsi callq 0x4f954 testl %eax, %eax je 0x4f07b movq 0x8(%r13), %rdx movq -0x30(%rbp), %rcx movzbl %ch, %esi movq (%rdx,%rsi,8), %rdx testq %rdx, %rdx je 0x4f00a movzbl %cl, %ecx leaq (%rcx,%rcx,2), %rcx movl (%rdx,%rcx,4), %ecx movq %rcx, -0x30(%rbp) movl $0x1, %edx cmpq $0x80, %rcx jb 0x4f064 movl $0x2, %edx cmpq $0x800, %rcx # imm = 0x800 jb 0x4f04b cmpq $0xffff, %rcx # imm = 0xFFFF ja 0x4f07b movl %ecx, %edx andb $0x3f, %dl orb $-0x80, %dl movb %dl, 0x2(%r14) shrq $0x6, %rcx orq $0x800, %rcx # imm = 0x800 movl $0x3, %edx movl %ecx, %esi andb $0x3f, %sil orb $-0x80, %sil movb %sil, 0x1(%r14) shrq $0x6, %rcx orq $0xc0, %rcx movb %cl, (%r14) movl %eax, %eax addq %rdx, %r14 cmpb $0x0, (%r12,%rax) leaq (%r12,%rax), %r12 jne 0x4efd5 movb $0x0, (%r14) subq %rbx, %r14 movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_caseup_str_utf8mb3: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi cmp byte ptr [rsi], 0 mov r14, rsi jz loc_4F07B mov r13, [rdi+78h] lea r15, [rbp+var_30] mov r12, rbx mov r14, rbx loc_4EFD5: mov rdi, r15 mov rsi, r12 call my_utf8mb3_uni_no_range test eax, eax jz loc_4F07B mov rdx, [r13+8] mov rcx, [rbp+var_30] movzx esi, ch mov rdx, [rdx+rsi*8] test rdx, rdx jz short loc_4F00A movzx ecx, cl lea rcx, [rcx+rcx*2] mov ecx, [rdx+rcx*4] mov [rbp+var_30], rcx loc_4F00A: mov edx, 1 cmp rcx, 80h jb short loc_4F064 mov edx, 2 cmp rcx, 800h jb short loc_4F04B cmp rcx, 0FFFFh ja short loc_4F07B mov edx, ecx and dl, 3Fh or dl, 80h mov [r14+2], dl shr rcx, 6 or rcx, 800h mov edx, 3 loc_4F04B: mov esi, ecx and sil, 3Fh or sil, 80h mov [r14+1], sil shr rcx, 6 or rcx, 0C0h loc_4F064: mov [r14], cl mov eax, eax add r14, rdx cmp byte ptr [r12+rax], 0 lea r12, [r12+rax] jnz loc_4EFD5 loc_4F07B: mov byte ptr [r14], 0 sub r14, rbx mov rax, r14 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_caseup_str_utf8mb3(long long a1, _BYTE *a2) { unsigned long long v2; // rax _BYTE *v3; // r14 long long v4; // r13 _BYTE *v5; // r12 unsigned int v6; // eax unsigned long long v7; // rcx long long v8; // rdx long long v9; // rdx bool v10; // zf unsigned long long v12; // [rsp+0h] [rbp-30h] BYREF v12 = v2; v3 = a2; if ( *a2 ) { v4 = *(_QWORD *)(a1 + 120); v5 = a2; v3 = a2; do { v6 = my_utf8mb3_uni_no_range(&v12, v5); if ( !v6 ) break; v7 = v12; v8 = *(_QWORD *)(*(_QWORD *)(v4 + 8) + 8LL * BYTE1(v12)); if ( v8 ) { v7 = *(unsigned int *)(v8 + 12LL * (unsigned __int8)v12); v12 = v7; } v9 = 1LL; if ( v7 >= 0x80 ) { v9 = 2LL; if ( v7 >= 0x800 ) { if ( v7 > 0xFFFF ) break; v3[2] = v7 & 0x3F | 0x80; v7 = (v7 >> 6) | 0x800; v9 = 3LL; } v3[1] = v7 & 0x3F | 0x80; v7 = (v7 >> 6) | 0xC0; } *v3 = v7; v3 += v9; v10 = v5[v6] == 0; v5 += v6; } while ( !v10 ); } *v3 = 0; return v3 - a2; }
my_caseup_str_utf8mb3: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI CMP byte ptr [RSI],0x0 MOV R14,RSI JZ 0x0014f07b MOV R13,qword ptr [RDI + 0x78] LEA R15,[RBP + -0x30] MOV R12,RBX MOV R14,RBX LAB_0014efd5: MOV RDI,R15 MOV RSI,R12 CALL 0x0014f954 TEST EAX,EAX JZ 0x0014f07b MOV RDX,qword ptr [R13 + 0x8] MOV RCX,qword ptr [RBP + -0x30] MOVZX ESI,CH MOV RDX,qword ptr [RDX + RSI*0x8] TEST RDX,RDX JZ 0x0014f00a MOVZX ECX,CL LEA RCX,[RCX + RCX*0x2] MOV ECX,dword ptr [RDX + RCX*0x4] MOV qword ptr [RBP + -0x30],RCX LAB_0014f00a: MOV EDX,0x1 CMP RCX,0x80 JC 0x0014f064 MOV EDX,0x2 CMP RCX,0x800 JC 0x0014f04b CMP RCX,0xffff JA 0x0014f07b MOV EDX,ECX AND DL,0x3f OR DL,0x80 MOV byte ptr [R14 + 0x2],DL SHR RCX,0x6 OR RCX,0x800 MOV EDX,0x3 LAB_0014f04b: MOV ESI,ECX AND SIL,0x3f OR SIL,0x80 MOV byte ptr [R14 + 0x1],SIL SHR RCX,0x6 OR RCX,0xc0 LAB_0014f064: MOV byte ptr [R14],CL MOV EAX,EAX ADD R14,RDX CMP byte ptr [R12 + RAX*0x1],0x0 LEA R12,[R12 + RAX*0x1] JNZ 0x0014efd5 LAB_0014f07b: MOV byte ptr [R14],0x0 SUB R14,RBX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_caseup_str_utf8mb3(long param_1,char *param_2) { char *pcVar1; long lVar2; uint uVar3; ulong in_RAX; ulong uVar4; long lVar5; char *pcVar6; char *pcVar7; ulong local_38; pcVar7 = param_2; if (*param_2 != '\0') { lVar2 = *(long *)(param_1 + 0x78); pcVar6 = param_2; local_38 = in_RAX; do { uVar3 = my_utf8mb3_uni_no_range(&local_38,pcVar6); if (uVar3 == 0) break; lVar5 = *(long *)(*(long *)(lVar2 + 8) + (local_38 >> 8 & 0xff) * 8); if (lVar5 != 0) { local_38 = (ulong)*(uint *)(lVar5 + (local_38 & 0xff) * 0xc); } lVar5 = 1; uVar4 = local_38; if (0x7f < local_38) { lVar5 = 2; if (0x7ff < local_38) { if (0xffff < local_38) break; pcVar7[2] = (byte)local_38 & 0x3f | 0x80; uVar4 = local_38 >> 6 | 0x800; lVar5 = 3; } pcVar7[1] = (byte)uVar4 & 0x3f | 0x80; uVar4 = uVar4 >> 6 | 0xc0; } *pcVar7 = (char)uVar4; pcVar7 = pcVar7 + lVar5; pcVar1 = pcVar6 + uVar3; pcVar6 = pcVar6 + uVar3; } while (*pcVar1 != '\0'); } *pcVar7 = '\0'; return (long)pcVar7 - (long)param_2; }
17,623
mariadb_compression_algorithm_str
eloqsql/libmariadb/libmariadb/ma_compress.c
const char *_mariadb_compression_algorithm_str(enum enum_ma_compression_algorithm algorithm) { switch(algorithm) { case COMPRESSION_NONE: case COMPRESSION_ZLIB: case COMPRESSION_ZSTD: return compression_algorithms[algorithm] ; default: return compression_algorithms[COMPRESSION_UNKNOWN]; } }
O0
c
mariadb_compression_algorithm_str: pushq %rbp movq %rsp, %rbp movl %edi, -0xc(%rbp) movl -0xc(%rbp), %eax subl $0x2, %eax ja 0x3f8f7 jmp 0x3f8e1 movl -0xc(%rbp), %eax movl %eax, %ecx leaq 0x40313(%rip), %rax # 0x7fc00 movq (%rax,%rcx,8), %rax movq %rax, -0x8(%rbp) jmp 0x3f906 leaq 0x40302(%rip), %rax # 0x7fc00 movq 0x18(%rax), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nopl (%rax)
_mariadb_compression_algorithm_str: push rbp mov rbp, rsp mov [rbp+var_C], edi mov eax, [rbp+var_C] sub eax, 2 ja short loc_3F8F7 jmp short $+2 loc_3F8E1: mov eax, [rbp+var_C] mov ecx, eax lea rax, compression_algorithms mov rax, [rax+rcx*8] mov [rbp+var_8], rax jmp short loc_3F906 loc_3F8F7: lea rax, compression_algorithms mov rax, [rax+18h] mov [rbp+var_8], rax loc_3F906: mov rax, [rbp+var_8] pop rbp retn
char * mariadb_compression_algorithm_str(unsigned int a1) { if ( a1 > 2 ) return compression_algorithms[3]; else return compression_algorithms[a1]; }
_mariadb_compression_algorithm_str: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0xc],EDI MOV EAX,dword ptr [RBP + -0xc] SUB EAX,0x2 JA 0x0013f8f7 JMP 0x0013f8e1 LAB_0013f8e1: MOV EAX,dword ptr [RBP + -0xc] MOV ECX,EAX LEA RAX,[0x17fc00] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x8],RAX JMP 0x0013f906 LAB_0013f8f7: LEA RAX,[0x17fc00] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x8],RAX LAB_0013f906: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
int8 _mariadb_compression_algorithm_str(uint param_1) { int8 local_10; if (param_1 < 3) { local_10 = *(int8 *)(compression_algorithms + (ulong)param_1 * 8); } else { local_10 = compression_algorithms._24_8_; } return local_10; }
17,624
translog_get_horizon
eloqsql/storage/maria/ma_loghandler.c
TRANSLOG_ADDRESS translog_get_horizon() { TRANSLOG_ADDRESS res; DBUG_ASSERT(translog_status == TRANSLOG_OK || translog_status == TRANSLOG_READONLY); translog_lock(); res= log_descriptor.horizon; translog_unlock(); return res; }
O0
c
translog_get_horizon: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp jmp 0x8ee5a callq 0x8a380 movq 0xbfa202(%rip), %rax # 0xc89068 movq %rax, -0x8(%rbp) callq 0x8a470 movq -0x8(%rbp), %rax addq $0x10, %rsp popq %rbp retq nopl (%rax)
translog_get_horizon: push rbp mov rbp, rsp sub rsp, 10h jmp short $+2 loc_8EE5A: call translog_lock mov rax, cs:qword_C89068 mov [rbp+var_8], rax call translog_unlock mov rax, [rbp+var_8] add rsp, 10h pop rbp retn
long long translog_get_horizon() { long long v1; // [rsp+8h] [rbp-8h] translog_lock(); v1 = qword_C89068; translog_unlock(); return v1; }
translog_get_horizon: PUSH RBP MOV RBP,RSP SUB RSP,0x10 JMP 0x0018ee5a LAB_0018ee5a: CALL 0x0018a380 MOV RAX,qword ptr [0x00d89068] MOV qword ptr [RBP + -0x8],RAX CALL 0x0018a470 MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x10 POP RBP RET
int8 translog_get_horizon(void) { int8 uVar1; translog_lock(); uVar1 = DAT_00d89068; translog_unlock(); return uVar1; }
17,625
ma_read_cache
eloqsql/storage/maria/ma_cache.c
my_bool _ma_read_cache(MARIA_HA *handler, IO_CACHE *info, uchar *buff, my_off_t pos, size_t length, uint flag) { size_t read_length,in_buff_length; my_off_t offset; uchar *in_buff_pos; DBUG_ENTER("_ma_read_cache"); DBUG_ASSERT(!(info->myflags & MY_ENCRYPT)); if (unlikely(pos >= info->end_of_file) && (flag & READING_HEADER)) DBUG_RETURN(-1); if (pos < info->pos_in_file) { read_length=length; if ((my_off_t) read_length > (my_off_t) (info->pos_in_file-pos)) read_length=(uint) (info->pos_in_file-pos); info->seek_not_done=1; if (mysql_file_pread(info->file,buff,read_length,pos,MYF(MY_NABP))) DBUG_RETURN(1); if (!(length-=read_length)) DBUG_RETURN(0); pos+=read_length; buff+=read_length; } if (pos >= info->pos_in_file && (offset= (my_off_t) (pos - info->pos_in_file)) < (my_off_t) (info->read_end - info->request_pos)) { in_buff_pos=info->request_pos+(uint) offset; in_buff_length= MY_MIN(length,(size_t) (info->read_end-in_buff_pos)); memcpy(buff,info->request_pos+(uint) offset,(size_t) in_buff_length); if (!(length-=in_buff_length)) DBUG_RETURN(0); pos+=in_buff_length; buff+=in_buff_length; } else in_buff_length=0; if (flag & READING_NEXT) { if (pos != (info->pos_in_file + (uint) (info->read_end - info->request_pos))) { info->pos_in_file=pos; /* Force start here */ info->read_pos=info->read_end=info->request_pos; /* Everything used */ info->seek_not_done=1; } else info->read_pos=info->read_end; /* All block used */ if (!_my_b_read(info,buff,length)) DBUG_RETURN(0); read_length=info->error; } else { info->seek_not_done=1; if ((read_length=mysql_file_pread(info->file,buff,length,pos,MYF(0))) == length) DBUG_RETURN(0); } if (!(flag & READING_HEADER) || (int) read_length == -1 || read_length+in_buff_length < 3) { if ((flag & READING_HEADER) && read_length + in_buff_length == 0) DBUG_RETURN(-1); /* End of file */ DBUG_PRINT("error", ("Error %d reading next-multi-part block (Got %d of %d bytes)", my_errno, (int) read_length, (int) length)); if (!my_errno || my_errno == HA_ERR_FILE_TOO_SHORT) { if (!handler->in_check_table) _ma_set_fatal_error(handler, HA_ERR_FILE_TOO_SHORT); if (!my_errno) my_errno= HA_ERR_WRONG_IN_RECORD; } DBUG_RETURN(1); } bzero(buff+read_length,MARIA_BLOCK_INFO_HEADER_LENGTH - in_buff_length - read_length); DBUG_RETURN(0); }
O3
c
ma_read_cache: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movl %r9d, -0x2c(%rbp) movq %rcx, %r13 movq %rdx, %r12 movq %rsi, %rbx movq %rdi, -0x50(%rbp) cmpq %rcx, 0x8(%rsi) jbe 0x8f9a1 movq (%rbx), %rax movq %rax, %rcx subq %r13, %rcx jbe 0x8f80e cmpq %r8, %rcx movl %ecx, %r15d movq %r8, -0x48(%rbp) cmovaeq %r8, %r15 movl $0x1, 0xe0(%rbx) movl 0xd4(%rbx), %r14d leaq 0x32945f(%rip), %rax # 0x3b8c08 movq (%rax), %rax leaq -0x98(%rbp), %rdi movl %r14d, %esi movl $0x6, %edx callq *0x158(%rax) testq %rax, %rax movq %r12, -0x38(%rbp) jne 0x8f9b0 movl $0x4, %r8d movl %r14d, %edi movq %r12, %rsi movq %r15, %rdx movq %r13, %rcx callq 0xc437c movq %rax, %r12 movb $0x1, %r14b testq %r12, %r12 movq -0x38(%rbp), %r12 movq -0x48(%rbp), %r8 jne 0x8f933 subq %r15, %r8 je 0x8f930 addq %r15, %r13 addq %r15, %r12 movq (%rbx), %rax movq %r13, %rcx subq %rax, %rcx jb 0x8f85a movq 0x18(%rbx), %r15 movq 0x28(%rbx), %rsi movq %r15, %rax subq %rsi, %rax cmpq %rax, %rcx jae 0x8f85a movl %ecx, %eax addq %rax, %rsi subq %rsi, %r15 cmpq %r15, %r8 cmovbq %r8, %r15 movq %r12, %rdi movq %r15, %rdx movq %r8, %r14 callq 0x2b0b0 movq %r14, %r8 subq %r15, %r8 je 0x8f930 addq %r15, %r13 addq %r15, %r12 jmp 0x8f85d xorl %r15d, %r15d testb $0x1, -0x2c(%rbp) jne 0x8f8ba movq %r8, %r14 movl $0x1, 0xe0(%rbx) movl 0xd4(%rbx), %ebx leaq 0x32938b(%rip), %rax # 0x3b8c08 movq (%rax), %rax leaq -0x98(%rbp), %rdi movl %ebx, %esi movl $0x6, %edx callq *0x158(%rax) testq %rax, %rax jne 0x8fa15 movl %ebx, %edi movq %r12, %rsi movq %r14, %rdx movq %r13, %rcx xorl %r8d, %r8d callq 0xc437c movq %rax, %rbx cmpq %r14, %rbx jne 0x8f8ff jmp 0x8f930 movq 0x18(%rbx), %rcx movq 0x28(%rbx), %rax movl %ecx, %edx subl %eax, %edx addq (%rbx), %rdx cmpq %rdx, %r13 je 0x8f8e2 movq %r13, (%rbx) movq %rax, 0x18(%rbx) movl $0x1, 0xe0(%rbx) movq %rax, %rcx movq %rcx, 0x10(%rbx) movq %rbx, %rdi movq %r12, %rsi movq %r8, %rdx callq 0xb584a testl %eax, %eax je 0x8f930 movslq 0xe4(%rbx), %rbx testb $0x2, -0x2c(%rbp) je 0x8f945 movl %ebx, %eax cmpl $-0x1, %eax je 0x8f945 leaq (%rbx,%r15), %rax cmpq $0x2, %rax jbe 0x8f945 addq %rbx, %r12 movl $0x14, %edx subq %rax, %rdx xorl %r14d, %r14d movq %r12, %rdi xorl %esi, %esi callq 0x2b2f0 jmp 0x8f933 xorl %r14d, %r14d movl %r14d, %eax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq testb $0x2, -0x2c(%rbp) je 0x8f956 negq %r15 movb $-0x1, %r14b cmpq %r15, %rbx je 0x8f933 callq 0xc5c9a cmpl $0x0, (%rax) je 0x8f970 callq 0xc5c9a movb $0x1, %r14b cmpl $0xaf, (%rax) jne 0x8f933 movq -0x50(%rbp), %rdi cmpb $0x0, 0x683(%rdi) jne 0x8f987 movl $0xaf, %esi callq 0x3dca8 callq 0xc5c9a movb $0x1, %r14b cmpl $0x0, (%rax) jne 0x8f933 callq 0xc5c9a movl $0x7f, (%rax) jmp 0x8f933 movb $-0x1, %r14b testb $0x2, -0x2c(%rbp) je 0x8f774 jmp 0x8f933 movq %rax, %rcx leaq 0x32924e(%rip), %rax # 0x3b8c08 movq (%rax), %rax leaq 0x77b02(%rip), %rdx # 0x1074c6 movq %rcx, -0x40(%rbp) movq %rcx, %rdi movq %r15, %rsi movl $0x38, %ecx callq *0x210(%rax) movl $0x4, %r8d movl %r14d, %edi movq %r12, %rsi movq %r15, %rdx movq %r13, %rcx callq 0xc437c movq %rax, %r12 xorl %esi, %esi testq %rax, %rax cmoveq %r15, %rsi leaq 0x329205(%rip), %rax # 0x3b8c08 movq (%rax), %rax movq -0x40(%rbp), %rdi callq *0x218(%rax) jmp 0x8f7e8 movq %rax, %rcx leaq 0x3291e9(%rip), %rax # 0x3b8c08 movq (%rax), %rax leaq 0x77a9d(%rip), %rdx # 0x1074c6 movq %rcx, -0x38(%rbp) movq %rcx, %rdi movq %r14, %rsi movl $0x5f, %ecx callq *0x210(%rax) movl %ebx, %edi movq %r12, %rsi movq %r14, %rdx movq %r13, %rcx xorl %r8d, %r8d callq 0xc437c movq %rax, %rbx cmpq $-0x1, %rax movl $0x0, %esi cmovneq %rax, %rsi leaq 0x3291a0(%rip), %rax # 0x3b8c08 movq (%rax), %rax movq -0x38(%rbp), %rdi callq *0x218(%rax) jmp 0x8f8b3 nop
_ma_read_cache: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov [rbp+var_2C], r9d mov r13, rcx mov r12, rdx mov rbx, rsi mov [rbp+var_50], rdi cmp [rsi+8], rcx jbe loc_8F9A1 loc_8F774: mov rax, [rbx] mov rcx, rax sub rcx, r13 jbe loc_8F80E cmp rcx, r8 mov r15d, ecx mov [rbp+var_48], r8 cmovnb r15, r8 mov dword ptr [rbx+0E0h], 1 mov r14d, [rbx+0D4h] lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_98] mov esi, r14d mov edx, 6 call qword ptr [rax+158h] test rax, rax mov [rbp+var_38], r12 jnz loc_8F9B0 mov r8d, 4 mov edi, r14d mov rsi, r12 mov rdx, r15 mov rcx, r13 call my_pread mov r12, rax loc_8F7E8: mov r14b, 1 test r12, r12 mov r12, [rbp+var_38] mov r8, [rbp+var_48] jnz loc_8F933 sub r8, r15 jz loc_8F930 add r13, r15 add r12, r15 mov rax, [rbx] loc_8F80E: mov rcx, r13 sub rcx, rax jb short loc_8F85A mov r15, [rbx+18h] mov rsi, [rbx+28h] mov rax, r15 sub rax, rsi cmp rcx, rax jnb short loc_8F85A mov eax, ecx add rsi, rax sub r15, rsi cmp r8, r15 cmovb r15, r8 mov rdi, r12 mov rdx, r15 mov r14, r8 call _memcpy mov r8, r14 sub r8, r15 jz loc_8F930 add r13, r15 add r12, r15 jmp short loc_8F85D loc_8F85A: xor r15d, r15d loc_8F85D: test byte ptr [rbp+var_2C], 1 jnz short loc_8F8BA mov r14, r8 mov dword ptr [rbx+0E0h], 1 mov ebx, [rbx+0D4h] lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_98] mov esi, ebx mov edx, 6 call qword ptr [rax+158h] test rax, rax jnz loc_8FA15 mov edi, ebx mov rsi, r12 mov rdx, r14 mov rcx, r13 xor r8d, r8d call my_pread mov rbx, rax loc_8F8B3: cmp rbx, r14 jnz short loc_8F8FF jmp short loc_8F930 loc_8F8BA: mov rcx, [rbx+18h] mov rax, [rbx+28h] mov edx, ecx sub edx, eax add rdx, [rbx] cmp r13, rdx jz short loc_8F8E2 mov [rbx], r13 mov [rbx+18h], rax mov dword ptr [rbx+0E0h], 1 mov rcx, rax loc_8F8E2: mov [rbx+10h], rcx mov rdi, rbx mov rsi, r12 mov rdx, r8 call _my_b_read test eax, eax jz short loc_8F930 movsxd rbx, dword ptr [rbx+0E4h] loc_8F8FF: test byte ptr [rbp+var_2C], 2 jz short loc_8F945 mov eax, ebx cmp eax, 0FFFFFFFFh jz short loc_8F945 lea rax, [rbx+r15] cmp rax, 2 jbe short loc_8F945 add r12, rbx mov edx, 14h sub rdx, rax xor r14d, r14d mov rdi, r12 xor esi, esi call _memset jmp short loc_8F933 loc_8F930: xor r14d, r14d loc_8F933: mov eax, r14d add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_8F945: test byte ptr [rbp+var_2C], 2 jz short loc_8F956 neg r15 mov r14b, 0FFh cmp rbx, r15 jz short loc_8F933 loc_8F956: call _my_thread_var cmp dword ptr [rax], 0 jz short loc_8F970 call _my_thread_var mov r14b, 1 cmp dword ptr [rax], 0AFh jnz short loc_8F933 loc_8F970: mov rdi, [rbp+var_50] cmp byte ptr [rdi+683h], 0 jnz short loc_8F987 mov esi, 0AFh call _ma_set_fatal_error loc_8F987: call _my_thread_var mov r14b, 1 cmp dword ptr [rax], 0 jnz short loc_8F933 call _my_thread_var mov dword ptr [rax], 7Fh jmp short loc_8F933 loc_8F9A1: mov r14b, 0FFh test byte ptr [rbp+var_2C], 2 jz loc_8F774 jmp short loc_8F933 loc_8F9B0: mov rcx, rax lea rax, PSI_server mov rax, [rax] lea rdx, aWorkspaceLlm4b_43; "/workspace/llm4binary/github2025/eloqsq"... mov [rbp+var_40], rcx mov rdi, rcx mov rsi, r15 mov ecx, 38h ; '8' call qword ptr [rax+210h] mov r8d, 4 mov edi, r14d mov rsi, r12 mov rdx, r15 mov rcx, r13 call my_pread mov r12, rax xor esi, esi test rax, rax cmovz rsi, r15 lea rax, PSI_server mov rax, [rax] mov rdi, [rbp+var_40] call qword ptr [rax+218h] jmp loc_8F7E8 loc_8FA15: mov rcx, rax lea rax, PSI_server mov rax, [rax] lea rdx, aWorkspaceLlm4b_43; "/workspace/llm4binary/github2025/eloqsq"... mov [rbp+var_38], rcx mov rdi, rcx mov rsi, r14 mov ecx, 5Fh ; '_' call qword ptr [rax+210h] mov edi, ebx mov rsi, r12 mov rdx, r14 mov rcx, r13 xor r8d, r8d call my_pread mov rbx, rax cmp rax, 0FFFFFFFFFFFFFFFFh mov esi, 0 cmovnz rsi, rax lea rax, PSI_server mov rax, [rax] mov rdi, [rbp+var_38] call qword ptr [rax+218h] jmp loc_8F8B3
long long ma_read_cache(_DWORD *a1, long long *a2, long long a3, unsigned long long a4, unsigned long long a5, int a6) { unsigned long long v6; // r14 unsigned long long v7; // r13 unsigned long long v10; // rax unsigned long long v11; // rcx unsigned long long v12; // r15 long long v13; // rax long long v14; // r12 unsigned long long v15; // rcx long long v16; // rsi long long v17; // rsi unsigned long long v18; // r15 unsigned int v19; // ebx long long v20; // rax long long v21; // rdi long long v22; // rbx long long v23; // rcx long long v24; // rax long long v26; // rdx long long v27; // rcx long long v28; // r8 int v29; // r9d _DWORD *v30; // rdi unsigned long long v31; // rsi long long v32; // rax long long v33; // rsi _BYTE v34[72]; // [rsp+8h] [rbp-98h] BYREF _DWORD *v35; // [rsp+50h] [rbp-50h] unsigned long long v36; // [rsp+58h] [rbp-48h] long long v37; // [rsp+60h] [rbp-40h] long long v38; // [rsp+68h] [rbp-38h] int v39; // [rsp+74h] [rbp-2Ch] v39 = a6; v7 = a4; v35 = a1; if ( a2[1] <= a4 ) { LOBYTE(v6) = -1; if ( (v39 & 2) != 0 ) return (unsigned int)v6; } v10 = *a2; v11 = *a2 - a4; if ( *a2 > v7 ) { v12 = (unsigned int)v11; v36 = a5; if ( v11 >= a5 ) v12 = a5; *((_DWORD *)a2 + 56) = 1; LODWORD(v6) = *((_DWORD *)a2 + 53); v13 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v34, (unsigned int)v6, 6LL); v38 = a3; if ( v13 ) { v37 = v13; ((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])( v13, v12, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_cache.c", 56LL); v14 = my_pread((unsigned int)v6, a3, v12, v7, 4LL); v31 = 0LL; if ( !v14 ) v31 = v12; ((void ( *)(long long, unsigned long long))PSI_server[67])(v37, v31); } else { v14 = my_pread((unsigned int)v6, a3, v12, v7, 4LL); } LOBYTE(v6) = 1; if ( v14 ) return (unsigned int)v6; a5 = v36 - v12; if ( v36 == v12 ) { LABEL_30: LODWORD(v6) = 0; return (unsigned int)v6; } v7 += v12; a3 = v12 + v38; v10 = *a2; } v15 = v7 - v10; if ( v7 < v10 || (v16 = a2[5], v15 >= a2[3] - v16) ) { v18 = 0LL; } else { v17 = (unsigned int)v15 + v16; v18 = a2[3] - v17; if ( a5 < v18 ) v18 = a5; v6 = a5; memcpy(a3, v17, v18); a5 = v6 - v18; if ( v6 == v18 ) goto LABEL_30; v7 += v18; a3 += v18; } if ( (v39 & 1) != 0 ) { v23 = a2[3]; v24 = a2[5]; if ( v7 != *a2 + (unsigned int)(v23 - v24) ) { *a2 = v7; a2[3] = v24; *((_DWORD *)a2 + 56) = 1; v23 = v24; } a2[2] = v23; v21 = (long long)a2; if ( !(unsigned int)my_b_read(a2, a3, a5) ) goto LABEL_30; v22 = *((int *)a2 + 57); } else { v6 = a5; *((_DWORD *)a2 + 56) = 1; v19 = *((_DWORD *)a2 + 53); v20 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v34, v19, 6LL); if ( v20 ) { v38 = v20; ((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])( v20, v6, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_cache.c", 95LL); v32 = my_pread(v19, a3, v6, v7, 0LL); v22 = v32; v33 = 0LL; if ( v32 != -1 ) v33 = v32; v21 = v38; ((void ( *)(long long, long long))PSI_server[67])(v38, v33); } else { v21 = v19; v22 = my_pread(v19, a3, v6, v7, 0LL); } if ( v22 == v6 ) goto LABEL_30; } if ( (v39 & 2) == 0 || (_DWORD)v22 == -1 || v22 + v18 <= 2 ) { if ( (v39 & 2) == 0 || (LOBYTE(v6) = -1, v22 != -(long long)v18) ) { if ( !*(_DWORD *)my_thread_var(v21) || (LOBYTE(v6) = 1, *(_DWORD *)my_thread_var(v21) == 175) ) { v30 = v35; if ( !*((_BYTE *)v35 + 1667) ) ma_set_fatal_error(v35, 175, v26, v27, v28, v29); LOBYTE(v6) = 1; if ( !*(_DWORD *)my_thread_var(v30) ) *(_DWORD *)my_thread_var(v30) = 127; } } } else { LODWORD(v6) = 0; memset(v22 + a3, 0LL, 20 - (v22 + v18)); } return (unsigned int)v6; }
_ma_read_cache: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV dword ptr [RBP + -0x2c],R9D MOV R13,RCX MOV R12,RDX MOV RBX,RSI MOV qword ptr [RBP + -0x50],RDI CMP qword ptr [RSI + 0x8],RCX JBE 0x0018f9a1 LAB_0018f774: MOV RAX,qword ptr [RBX] MOV RCX,RAX SUB RCX,R13 JBE 0x0018f80e CMP RCX,R8 MOV R15D,ECX MOV qword ptr [RBP + -0x48],R8 CMOVNC R15,R8 MOV dword ptr [RBX + 0xe0],0x1 MOV R14D,dword ptr [RBX + 0xd4] LEA RAX,[0x4b8c08] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x98] MOV ESI,R14D MOV EDX,0x6 CALL qword ptr [RAX + 0x158] TEST RAX,RAX MOV qword ptr [RBP + -0x38],R12 JNZ 0x0018f9b0 MOV R8D,0x4 MOV EDI,R14D MOV RSI,R12 MOV RDX,R15 MOV RCX,R13 CALL 0x001c437c MOV R12,RAX LAB_0018f7e8: MOV R14B,0x1 TEST R12,R12 MOV R12,qword ptr [RBP + -0x38] MOV R8,qword ptr [RBP + -0x48] JNZ 0x0018f933 SUB R8,R15 JZ 0x0018f930 ADD R13,R15 ADD R12,R15 MOV RAX,qword ptr [RBX] LAB_0018f80e: MOV RCX,R13 SUB RCX,RAX JC 0x0018f85a MOV R15,qword ptr [RBX + 0x18] MOV RSI,qword ptr [RBX + 0x28] MOV RAX,R15 SUB RAX,RSI CMP RCX,RAX JNC 0x0018f85a MOV EAX,ECX ADD RSI,RAX SUB R15,RSI CMP R8,R15 CMOVC R15,R8 MOV RDI,R12 MOV RDX,R15 MOV R14,R8 CALL 0x0012b0b0 MOV R8,R14 SUB R8,R15 JZ 0x0018f930 ADD R13,R15 ADD R12,R15 JMP 0x0018f85d LAB_0018f85a: XOR R15D,R15D LAB_0018f85d: TEST byte ptr [RBP + -0x2c],0x1 JNZ 0x0018f8ba MOV R14,R8 MOV dword ptr [RBX + 0xe0],0x1 MOV EBX,dword ptr [RBX + 0xd4] LEA RAX,[0x4b8c08] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x98] MOV ESI,EBX MOV EDX,0x6 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0018fa15 MOV EDI,EBX MOV RSI,R12 MOV RDX,R14 MOV RCX,R13 XOR R8D,R8D CALL 0x001c437c MOV RBX,RAX LAB_0018f8b3: CMP RBX,R14 JNZ 0x0018f8ff JMP 0x0018f930 LAB_0018f8ba: MOV RCX,qword ptr [RBX + 0x18] MOV RAX,qword ptr [RBX + 0x28] MOV EDX,ECX SUB EDX,EAX ADD RDX,qword ptr [RBX] CMP R13,RDX JZ 0x0018f8e2 MOV qword ptr [RBX],R13 MOV qword ptr [RBX + 0x18],RAX MOV dword ptr [RBX + 0xe0],0x1 MOV RCX,RAX LAB_0018f8e2: MOV qword ptr [RBX + 0x10],RCX MOV RDI,RBX MOV RSI,R12 MOV RDX,R8 CALL 0x001b584a TEST EAX,EAX JZ 0x0018f930 MOVSXD RBX,dword ptr [RBX + 0xe4] LAB_0018f8ff: TEST byte ptr [RBP + -0x2c],0x2 JZ 0x0018f945 MOV EAX,EBX CMP EAX,-0x1 JZ 0x0018f945 LEA RAX,[RBX + R15*0x1] CMP RAX,0x2 JBE 0x0018f945 ADD R12,RBX MOV EDX,0x14 SUB RDX,RAX XOR R14D,R14D MOV RDI,R12 XOR ESI,ESI CALL 0x0012b2f0 JMP 0x0018f933 LAB_0018f930: XOR R14D,R14D LAB_0018f933: MOV EAX,R14D ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0018f945: TEST byte ptr [RBP + -0x2c],0x2 JZ 0x0018f956 NEG R15 MOV R14B,0xff CMP RBX,R15 JZ 0x0018f933 LAB_0018f956: CALL 0x001c5c9a CMP dword ptr [RAX],0x0 JZ 0x0018f970 CALL 0x001c5c9a MOV R14B,0x1 CMP dword ptr [RAX],0xaf JNZ 0x0018f933 LAB_0018f970: MOV RDI,qword ptr [RBP + -0x50] CMP byte ptr [RDI + 0x683],0x0 JNZ 0x0018f987 MOV ESI,0xaf CALL 0x0013dca8 LAB_0018f987: CALL 0x001c5c9a MOV R14B,0x1 CMP dword ptr [RAX],0x0 JNZ 0x0018f933 CALL 0x001c5c9a MOV dword ptr [RAX],0x7f JMP 0x0018f933 LAB_0018f9a1: MOV R14B,0xff TEST byte ptr [RBP + -0x2c],0x2 JZ 0x0018f774 JMP 0x0018f933 LAB_0018f9b0: MOV RCX,RAX LEA RAX,[0x4b8c08] MOV RAX,qword ptr [RAX] LEA RDX,[0x2074c6] MOV qword ptr [RBP + -0x40],RCX MOV RDI,RCX MOV RSI,R15 MOV ECX,0x38 CALL qword ptr [RAX + 0x210] MOV R8D,0x4 MOV EDI,R14D MOV RSI,R12 MOV RDX,R15 MOV RCX,R13 CALL 0x001c437c MOV R12,RAX XOR ESI,ESI TEST RAX,RAX CMOVZ RSI,R15 LEA RAX,[0x4b8c08] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RBP + -0x40] CALL qword ptr [RAX + 0x218] JMP 0x0018f7e8 LAB_0018fa15: MOV RCX,RAX LEA RAX,[0x4b8c08] MOV RAX,qword ptr [RAX] LEA RDX,[0x2074c6] MOV qword ptr [RBP + -0x38],RCX MOV RDI,RCX MOV RSI,R14 MOV ECX,0x5f CALL qword ptr [RAX + 0x210] MOV EDI,EBX MOV RSI,R12 MOV RDX,R14 MOV RCX,R13 XOR R8D,R8D CALL 0x001c437c MOV RBX,RAX CMP RAX,-0x1 MOV ESI,0x0 CMOVNZ RSI,RAX LEA RAX,[0x4b8c08] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RBP + -0x38] CALL qword ptr [RAX + 0x218] JMP 0x0018f8b3
ulong _ma_read_cache(long param_1,ulong *param_2,void *param_3,ulong param_4,ulong param_5, uint param_6) { int4 uVar1; int iVar2; long lVar3; ulong uVar4; ulong uVar5; int *piVar6; int4 *puVar7; ulong uVar8; ulong uVar9; void *pvVar10; ulong unaff_R14; int1 local_a0 [72]; long local_58; ulong local_50; long local_48; void *local_40; uint local_34; if ((param_2[1] <= param_4) && (unaff_R14 = CONCAT71((int7)(unaff_R14 >> 8),0xff), (param_6 & 2) != 0)) goto LAB_0018f933; uVar4 = *param_2; uVar8 = uVar4 - param_4; local_58 = param_1; local_34 = param_6; if (uVar4 < param_4 || uVar8 == 0) { LAB_0018f80e: if (param_4 < uVar4) { LAB_0018f85a: uVar8 = 0; uVar4 = param_5; } else { if (param_2[3] - param_2[5] <= param_4 - uVar4) goto LAB_0018f85a; pvVar10 = (void *)(param_2[5] + (param_4 - uVar4 & 0xffffffff)); uVar8 = param_2[3] - (long)pvVar10; if (param_5 < uVar8) { uVar8 = param_5; } memcpy(param_3,pvVar10,uVar8); if (param_5 - uVar8 == 0) goto LAB_0018f930; param_4 = param_4 + uVar8; param_3 = (void *)((long)param_3 + uVar8); uVar4 = param_5 - uVar8; unaff_R14 = param_5; } if ((local_34 & 1) == 0) { *(int4 *)(param_2 + 0x1c) = 1; uVar1 = *(int4 *)((long)param_2 + 0xd4); pvVar10 = (void *)(**(code **)(PSI_server + 0x158))(local_a0,uVar1,6); if (pvVar10 == (void *)0x0) { uVar5 = my_pread(uVar1,param_3,uVar4,param_4,0); } else { local_40 = pvVar10; (**(code **)(PSI_server + 0x210)) (pvVar10,uVar4,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_cache.c" ,0x5f); uVar5 = my_pread(uVar1,param_3,uVar4,param_4,0); (**(code **)(PSI_server + 0x218))(local_40); } unaff_R14 = uVar4; if (uVar5 != uVar4) { LAB_0018f8ff: if ((((local_34 & 2) == 0) || ((int)uVar5 == -1)) || (uVar5 + uVar8 < 3)) { if (((local_34 & 2) == 0) || (unaff_R14 = CONCAT71((int7)(unaff_R14 >> 8),0xff), uVar5 != -uVar8)) { piVar6 = (int *)_my_thread_var(); if (*piVar6 != 0) { piVar6 = (int *)_my_thread_var(); unaff_R14 = CONCAT71((int7)(unaff_R14 >> 8),1); if (*piVar6 != 0xaf) goto LAB_0018f933; } if (*(char *)(local_58 + 0x683) == '\0') { _ma_set_fatal_error(local_58,0xaf); } piVar6 = (int *)_my_thread_var(); unaff_R14 = CONCAT71((int7)(unaff_R14 >> 8),1); if (*piVar6 == 0) { puVar7 = (int4 *)_my_thread_var(); *puVar7 = 0x7f; } } } else { unaff_R14 = 0; memset((void *)((long)param_3 + uVar5),0,0x14 - (uVar5 + uVar8)); } goto LAB_0018f933; } } else { uVar5 = param_2[5]; uVar9 = param_2[3]; if (param_4 != (ulong)(uint)((int)param_2[3] - (int)uVar5) + *param_2) { *param_2 = param_4; param_2[3] = uVar5; *(int4 *)(param_2 + 0x1c) = 1; uVar9 = uVar5; } param_2[2] = uVar9; iVar2 = _my_b_read(param_2,param_3,uVar4); if (iVar2 != 0) { uVar5 = (ulong)*(int *)((long)param_2 + 0xe4); goto LAB_0018f8ff; } } } else { uVar4 = uVar8 & 0xffffffff; if (param_5 <= uVar8) { uVar4 = param_5; } *(int4 *)(param_2 + 0x1c) = 1; uVar1 = *(int4 *)((long)param_2 + 0xd4); local_50 = param_5; lVar3 = (**(code **)(PSI_server + 0x158))(local_a0,uVar1,6); local_40 = param_3; if (lVar3 == 0) { lVar3 = my_pread(uVar1,param_3,uVar4,param_4,4); } else { local_48 = lVar3; (**(code **)(PSI_server + 0x210)) (lVar3,uVar4,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_cache.c", 0x38); lVar3 = my_pread(uVar1,param_3,uVar4,param_4,4); uVar8 = 0; if (lVar3 == 0) { uVar8 = uVar4; } (**(code **)(PSI_server + 0x218))(local_48,uVar8); } unaff_R14 = CONCAT71((uint7)(uint3)((uint)uVar1 >> 8),1); if (lVar3 != 0) goto LAB_0018f933; param_5 = local_50 - uVar4; if (param_5 != 0) { param_4 = param_4 + uVar4; param_3 = (void *)((long)local_40 + uVar4); uVar4 = *param_2; goto LAB_0018f80e; } } LAB_0018f930: unaff_R14 = 0; LAB_0018f933: return unaff_R14 & 0xffffffff; }
17,626
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
hkr04[P]cpp-mcp/common/json.hpp
const_reference operator[](const typename object_t::key_type& key) const { // const operator[] only works for objects if (JSON_HEDLEY_LIKELY(is_object())) { auto it = m_data.m_value.object->find(key); JSON_ASSERT(it != m_data.m_value.object->end()); return it->second; } JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this)); }
O0
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const: subq $0x68, %rsp movq %rdi, 0x60(%rsp) movq %rsi, 0x58(%rsp) movq 0x60(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x6b800 xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0xa61b7 jmp 0xa61e2 movq 0x10(%rsp), %rax movq 0x8(%rax), %rdi movq 0x58(%rsp), %rsi callq 0xa62a0 movq %rax, 0x50(%rsp) leaq 0x50(%rsp), %rdi callq 0x72130 addq $0x20, %rax addq $0x68, %rsp retq movb $0x1, 0x1b(%rsp) movl $0x20, %edi callq 0xb3d0 movq 0x10(%rsp), %rdi movq %rax, 0x8(%rsp) callq 0x11b00 movq %rax, 0x28(%rsp) leaq 0x28e32(%rip), %rsi # 0xcf03e leaq 0x30(%rsp), %rdi leaq 0x28(%rsp), %rdx callq 0x738b0 jmp 0xa621d movq 0x10(%rsp), %rcx movq 0x8(%rsp), %rdi movl $0x131, %esi # imm = 0x131 leaq 0x30(%rsp), %rdx callq 0x118a0 jmp 0xa6238 movq 0x8(%rsp), %rdi movb $0x0, 0x1b(%rsp) leaq 0x73d4f(%rip), %rsi # 0x119f98 leaq -0x946a0(%rip), %rdx # 0x11bb0 callq 0xbd90 jmp 0xa629e movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) jmp 0xa627f movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) leaq 0x30(%rsp), %rdi callq 0xbfb0 testb $0x1, 0x1b(%rsp) jne 0xa6288 jmp 0xa6292 movq 0x8(%rsp), %rdi callq 0xb5f0 jmp 0xa6294 movq 0x20(%rsp), %rdi callq 0xbe10 nop
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixERKS9_: sub rsp, 68h mov qword ptr [rsp+68h+var_8], rdi; int mov qword ptr [rsp+68h+var_10], rsi; int mov rdi, qword ptr [rsp+68h+var_8] mov qword ptr [rsp+68h+var_58], 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 test al, 1 jnz short loc_A61B7 jmp short loc_A61E2 loc_A61B7: mov rax, qword ptr [rsp+68h+var_58] mov rdi, [rax+8] mov rsi, qword ptr [rsp+68h+var_10] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findERSH_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::find(std::string const&) mov [rsp+68h+var_18], rax lea rdi, [rsp+68h+var_18] 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, 68h retn loc_A61E2: mov [rsp+68h+var_4D], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rdi, qword ptr [rsp+68h+var_58] mov [rsp+68h+var_60], rax; int call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) mov qword ptr [rsp+68h+var_40], rax; int lea rsi, aCannotUseOpera_0; "cannot use operator[] with a string arg"... lea rdi, [rsp+68h+var_38]; int lea rdx, [rsp+68h+var_40]; int call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA51_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[51],char const*>(char const(&)[51],char const* &&) jmp short $+2 loc_A621D: mov rcx, qword ptr [rsp+68h+var_58] mov rdi, [rsp+68h+var_60]; int mov esi, 131h lea rdx, [rsp+68h+var_38] 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_A6238: mov rdi, [rsp+68h+var_60]; void * mov [rsp+68h+var_4D], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *) call ___cxa_throw
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]( long long a1, long long a2) { void *exception; // [rsp+8h] [rbp-60h] int v4[2]; // [rsp+28h] [rbp-40h] BYREF int v5[8]; // [rsp+30h] [rbp-38h] BYREF long long v6; // [rsp+50h] [rbp-18h] BYREF int v7[2]; // [rsp+58h] [rbp-10h] int v8[2]; // [rsp+60h] [rbp-8h] *(_QWORD *)v8 = a1; *(_QWORD *)v7 = 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 *)v4 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((_BYTE *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[51],char const*>( (long long)v5, (long long)"cannot use operator[] with a string argument with ", (nlohmann::json_abi_v3_11_3::detail **)v4); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( (long long)exception, 305LL, (long long)v5, a1); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::type_error::~type_error); } v6 = nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::find( *(_QWORD *)(a1 + 8), *(_QWORD *)v7); 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)&v6) + 32; }
operator[]: SUB RSP,0x68 MOV qword ptr [RSP + 0x60],RDI MOV qword ptr [RSP + 0x58],RSI MOV RDI,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x10],RDI CALL 0x0016b800 XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001a61b7 JMP 0x001a61e2 LAB_001a61b7: MOV RAX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RAX + 0x8] MOV RSI,qword ptr [RSP + 0x58] CALL 0x001a62a0 MOV qword ptr [RSP + 0x50],RAX LEA RDI,[RSP + 0x50] CALL 0x00172130 ADD RAX,0x20 ADD RSP,0x68 RET LAB_001a61e2: MOV byte ptr [RSP + 0x1b],0x1 MOV EDI,0x20 CALL 0x0010b3d0 MOV RDI,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x8],RAX CALL 0x00111b00 MOV qword ptr [RSP + 0x28],RAX LAB_001a6205: LEA RSI,[0x1cf03e] LEA RDI,[RSP + 0x30] LEA RDX,[RSP + 0x28] CALL 0x001738b0 JMP 0x001a621d LAB_001a621d: MOV RCX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RSP + 0x8] MOV ESI,0x131 LEA RDX,[RSP + 0x30] CALL 0x001118a0 JMP 0x001a6238 LAB_001a6238: MOV RDI,qword ptr [RSP + 0x8] MOV byte ptr [RSP + 0x1b],0x0 LEA RSI,[0x219f98] LEA RDX,[0x111bb0] CALL 0x0010bd90
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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[](std::__cxx11::string const&) const */ long __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[](basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,string *param_1) { byte bVar1; long lVar2; int8 uVar3; char *local_40; detail local_38 [32]; int8 local_18; string *local_10; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *local_8; local_10 = param_1; local_8 = this; bVar1 = is_object(this); if ((bVar1 & 1) == 0) { uVar3 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name(this); /* try { // try from 001a6205 to 001a621a has its CatchHandler @ 001a6257 */ detail::concat<std::__cxx11::string,char_const(&)[51],char_const*> (local_38,"cannot use operator[] with a string argument with ",&local_40); /* try { // try from 001a621d to 001a6254 has its CatchHandler @ 001a6267 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar3,0x131,local_38,this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&detail::type_error::typeinfo,detail::type_error::~type_error); } local_18 = ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::find(*(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)(this + 8),local_10); lVar2 = __gnu_cxx:: __normal_iterator<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::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>>>>> ::operator->((__normal_iterator<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::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>>>>> *)&local_18); return lVar2 + 0x20; }
17,627
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
hkr04[P]cpp-mcp/common/json.hpp
const_reference operator[](const typename object_t::key_type& key) const { // const operator[] only works for objects if (JSON_HEDLEY_LIKELY(is_object())) { auto it = m_data.m_value.object->find(key); JSON_ASSERT(it != m_data.m_value.object->end()); return it->second; } JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this)); }
O1
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const: pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 cmpb $0x1, (%rdi) jne 0x338b0 movq 0x8(%r14), %rdi callq 0x3394a addq $0x20, %rax addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x20, %edi callq 0x8280 movq %rax, %rbx movq %r14, %rdi callq 0xb6b4 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0xeb40(%rip), %rsi # 0x42414 leaq 0x10(%rsp), %rdi callq 0xd5c9 movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x131, %esi # imm = 0x131 movq %r14, %rcx callq 0xb460 xorl %ebp, %ebp leaq 0x288e1(%rip), %rsi # 0x5c1e0 leaq -0x26fd2(%rip), %rdx # 0xc934 movq %rbx, %rdi callq 0x8900 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x33934 movq 0x20(%rsp), %rsi incq %rsi callq 0x8580 jmp 0x33934 movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x33941 movq %rbx, %rdi callq 0x83e0 movq %r14, %rdi callq 0x8960 nop
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixERKS9_: push rbp; char push r14; int push rbx; __int64 sub rsp, 30h mov r14, rdi cmp byte ptr [rdi], 1 jnz short loc_338B0 mov rdi, [r14+8] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findERSH_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::find(std::string const&) add rax, 20h ; ' ' add rsp, 30h pop rbx pop r14 pop rbp retn loc_338B0: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aCannotUseOpera_0; "cannot use operator[] with a string arg"... lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA51_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[51],char const*>(char const(&)[51],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 131h; 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 mov r14, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_33934 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_33934 mov r14, rax mov bpl, 1 loc_33934: test bpl, bpl jz short loc_33941 mov rdi, rbx; void * call ___cxa_free_exception loc_33941: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]( long long a1) { nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx const char *v3; // [rsp+8h] [rbp-40h] BYREF _QWORD v4[2]; // [rsp+10h] [rbp-38h] BYREF if ( *(_BYTE *)a1 != 1 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); 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>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[51],char const*>( (long long)v4, (long long)"cannot use operator[] with a string argument with ", &v3); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 305, v4); __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); } return nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::find(*(_QWORD *)(a1 + 8)) + 32; }
operator[]: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI CMP byte ptr [RDI],0x1 JNZ 0x001338b0 MOV RDI,qword ptr [R14 + 0x8] CALL 0x0013394a ADD RAX,0x20 ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_001338b0: MOV EDI,0x20 CALL 0x00108280 MOV RBX,RAX MOV RDI,R14 CALL 0x0010b6b4 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_001338cd: LEA RSI,[0x142414] LEA RDI,[RSP + 0x10] CALL 0x0010d5c9 MOV BPL,0x1 LAB_001338e1: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x131 MOV RCX,R14 CALL 0x0010b460 XOR EBP,EBP LEA RSI,[0x15c1e0] LEA RDX,[0x10c934] MOV RDI,RBX CALL 0x00108900
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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[](std::__cxx11::string const&) const */ long __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[](basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,string *param_1) { long lVar1; int8 uVar2; char *local_40; detail local_38 [32]; if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { lVar1 = ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::find(*(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)(this + 8),param_1); return lVar1 + 0x20; } uVar2 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name(this); /* try { // try from 001338cd to 001338dd has its CatchHandler @ 0013392e */ detail::concat<std::__cxx11::string,char_const(&)[51],char_const*> (local_38,"cannot use operator[] with a string argument with ",&local_40); /* try { // try from 001338e1 to 0013390d has its CatchHandler @ 0013390e */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x131,local_38,this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception); }
17,628
rtree_fill_reinsert_list
eloqsql/storage/myisam/rt_index.c
static int rtree_fill_reinsert_list(stPageList *ReinsertList, my_off_t page, int level) { DBUG_ENTER("rtree_fill_reinsert_list"); DBUG_PRINT("rtree", ("page: %lu level: %d", (ulong) page, level)); if (ReinsertList->n_pages == ReinsertList->m_pages) { ReinsertList->m_pages += REINSERT_BUFFER_INC; if (!(ReinsertList->pages = (stPageLevel*) my_realloc(mi_key_memory_stPageList_pages, (uchar*)ReinsertList->pages, ReinsertList->m_pages * sizeof(stPageLevel), MYF(MY_ALLOW_ZERO_PTR)))) goto err1; } /* save page to ReinsertList */ ReinsertList->pages[ReinsertList->n_pages].offs = page; ReinsertList->pages[ReinsertList->n_pages].level = level; ReinsertList->n_pages++; DBUG_RETURN(0); err1: DBUG_RETURN(-1); /* purecov: inspected */ }
O0
c
rtree_fill_reinsert_list: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) jmp 0xd2645 movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x10(%rbp), %rcx cmpq 0x8(%rcx), %rax jne 0xd269f movq -0x10(%rbp), %rax movq 0x8(%rax), %rcx addq $0xa, %rcx movq %rcx, 0x8(%rax) leaq 0xbb3187(%rip), %rax # 0xc857f4 movl (%rax), %edi movq -0x10(%rbp), %rax movq 0x10(%rax), %rsi movq -0x10(%rbp), %rax movq 0x8(%rax), %rdx shlq $0x4, %rdx movl $0x40, %ecx callq 0xfb560 movq -0x10(%rbp), %rcx movq %rax, 0x10(%rcx) cmpq $0x0, %rax jne 0xd269d jmp 0xd26ef jmp 0xd269f movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq -0x10(%rbp), %rdx movq (%rdx), %rdx shlq $0x4, %rdx addq %rdx, %rax movq %rcx, 0x8(%rax) movl -0x1c(%rbp), %ecx movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq -0x10(%rbp), %rdx movq (%rdx), %rdx shlq $0x4, %rdx addq %rdx, %rax movl %ecx, (%rax) movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x1, %rcx movq %rcx, (%rax) movl $0x0, -0x4(%rbp) jmp 0xd26f8 jmp 0xd26f1 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
rtree_fill_reinsert_list: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx jmp short $+2 loc_D2645: mov rax, [rbp+var_10] mov rax, [rax] mov rcx, [rbp+var_10] cmp rax, [rcx+8] jnz short loc_D269F mov rax, [rbp+var_10] mov rcx, [rax+8] add rcx, 0Ah mov [rax+8], rcx lea rax, mi_key_memory_stPageList_pages mov edi, [rax] mov rax, [rbp+var_10] mov rsi, [rax+10h] mov rax, [rbp+var_10] mov rdx, [rax+8] shl rdx, 4 mov ecx, 40h ; '@' call my_realloc mov rcx, [rbp+var_10] mov [rcx+10h], rax cmp rax, 0 jnz short loc_D269D jmp short loc_D26EF loc_D269D: jmp short $+2 loc_D269F: mov rcx, [rbp+var_18] mov rax, [rbp+var_10] mov rax, [rax+10h] mov rdx, [rbp+var_10] mov rdx, [rdx] shl rdx, 4 add rax, rdx mov [rax+8], rcx mov ecx, [rbp+var_1C] mov rax, [rbp+var_10] mov rax, [rax+10h] mov rdx, [rbp+var_10] mov rdx, [rdx] shl rdx, 4 add rax, rdx mov [rax], ecx mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 1 mov [rax], rcx mov [rbp+var_4], 0 jmp short loc_D26F8 loc_D26EF: jmp short $+2 loc_D26F1: mov [rbp+var_4], 0FFFFFFFFh loc_D26F8: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long rtree_fill_reinsert_list(_QWORD *a1, long long a2, int a3) { long long v3; // rax if ( *a1 == a1[1] && (a1[1] += 10LL, v3 = my_realloc(mi_key_memory_stPageList_pages, a1[2], 16LL * a1[1], 64LL), (a1[2] = v3) == 0LL) ) { return (unsigned int)-1; } else { *(_QWORD *)(16LL * *a1 + a1[2] + 8) = a2; *(_DWORD *)(16LL * (*a1)++ + a1[2]) = a3; return 0; } }
rtree_fill_reinsert_list: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX JMP 0x001d2645 LAB_001d2645: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x8] JNZ 0x001d269f MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x8] ADD RCX,0xa MOV qword ptr [RAX + 0x8],RCX LEA RAX,[0xd857f4] MOV EDI,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x8] SHL RDX,0x4 MOV ECX,0x40 CALL 0x001fb560 MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX + 0x10],RAX CMP RAX,0x0 JNZ 0x001d269d JMP 0x001d26ef LAB_001d269d: JMP 0x001d269f LAB_001d269f: MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV RDX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RDX] SHL RDX,0x4 ADD RAX,RDX MOV qword ptr [RAX + 0x8],RCX MOV ECX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV RDX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RDX] SHL RDX,0x4 ADD RAX,RDX MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x1 MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x0 JMP 0x001d26f8 LAB_001d26ef: JMP 0x001d26f1 LAB_001d26f1: MOV dword ptr [RBP + -0x4],0xffffffff LAB_001d26f8: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int4 rtree_fill_reinsert_list(long *param_1,int8 param_2,int4 param_3) { long lVar1; if (*param_1 == param_1[1]) { param_1[1] = param_1[1] + 10; lVar1 = my_realloc(mi_key_memory_stPageList_pages,param_1[2],param_1[1] << 4,0x40); param_1[2] = lVar1; if (lVar1 == 0) { return 0xffffffff; } } *(int8 *)(param_1[2] + *param_1 * 0x10 + 8) = param_2; *(int4 *)(param_1[2] + *param_1 * 0x10) = param_3; *param_1 = *param_1 + 1; return 0; }
17,629
PAIRING_Commit
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/aggregate.c
static void PAIRING_Commit(PAIRING *ctx) { unsigned int n; if ((n = ctx->nelems) != 0) { if (ctx->ctrl & AGGR_GT_SET) { vec384fp12 GT; miller_loop_n(GT, ctx->Q, ctx->P, n); mul_fp12(ctx->GT, ctx->GT, GT); } else { miller_loop_n(ctx->GT, ctx->Q, ctx->P, n); ctx->ctrl |= AGGR_GT_SET; } ctx->nelems = 0; } }
O0
c
PAIRING_Commit: pushq %rbp movq %rsp, %rbp subq $0x250, %rsp # imm = 0x250 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movl 0x4(%rax), %eax movl %eax, -0xc(%rbp) cmpl $0x0, %eax je 0xb1793 movq -0x8(%rbp), %rax movl (%rax), %eax andl $0x20, %eax cmpl $0x0, %eax je 0xb1755 leaq -0x250(%rbp), %rdi movq -0x8(%rbp), %rsi addq $0x378, %rsi # imm = 0x378 movq -0x8(%rbp), %rdx addq $0x978, %rdx # imm = 0x978 movl -0xc(%rbp), %eax movl %eax, %ecx callq 0xaf7b0 movq -0x8(%rbp), %rdi addq $0x18, %rdi movq -0x8(%rbp), %rsi addq $0x18, %rsi leaq -0x250(%rbp), %rdx callq 0xaee90 jmp 0xb1788 movq -0x8(%rbp), %rdi addq $0x18, %rdi movq -0x8(%rbp), %rsi addq $0x378, %rsi # imm = 0x378 movq -0x8(%rbp), %rdx addq $0x978, %rdx # imm = 0x978 movl -0xc(%rbp), %eax movl %eax, %ecx callq 0xaf7b0 movq -0x8(%rbp), %rax movl (%rax), %ecx orl $0x20, %ecx movl %ecx, (%rax) movq -0x8(%rbp), %rax movl $0x0, 0x4(%rax) addq $0x250, %rsp # imm = 0x250 popq %rbp retq nopl (%rax)
PAIRING_Commit: push rbp mov rbp, rsp sub rsp, 250h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov eax, [rax+4] mov [rbp+var_C], eax cmp eax, 0 jz loc_B1793 mov rax, [rbp+var_8] mov eax, [rax] and eax, 20h cmp eax, 0 jz short loc_B1755 lea rdi, [rbp+var_250] mov rsi, [rbp+var_8] add rsi, 378h mov rdx, [rbp+var_8] add rdx, 978h mov eax, [rbp+var_C] mov ecx, eax call miller_loop_n mov rdi, [rbp+var_8] add rdi, 18h mov rsi, [rbp+var_8] add rsi, 18h lea rdx, [rbp+var_250] call mul_fp12 jmp short loc_B1788 loc_B1755: mov rdi, [rbp+var_8] add rdi, 18h mov rsi, [rbp+var_8] add rsi, 378h mov rdx, [rbp+var_8] add rdx, 978h mov eax, [rbp+var_C] mov ecx, eax call miller_loop_n mov rax, [rbp+var_8] mov ecx, [rax] or ecx, 20h mov [rax], ecx loc_B1788: mov rax, [rbp+var_8] mov dword ptr [rax+4], 0 loc_B1793: add rsp, 250h pop rbp retn
unsigned long long PAIRING_Commit(_DWORD *a1) { unsigned long long result; // rax _BYTE v2[580]; // [rsp+0h] [rbp-250h] BYREF unsigned int v3; // [rsp+244h] [rbp-Ch] _DWORD *v4; // [rsp+248h] [rbp-8h] v4 = a1; result = (unsigned int)a1[1]; v3 = result; if ( (_DWORD)result ) { if ( (*v4 & 0x20) != 0 ) { miller_loop_n((long long)v2, (long long)(v4 + 222), (long long)(v4 + 606), v3); mul_fp12((long long)(v4 + 6), (long long)(v4 + 6), (long long)v2); } else { miller_loop_n((long long)(v4 + 6), (long long)(v4 + 222), (long long)(v4 + 606), v3); *v4 |= 0x20u; } result = (unsigned long long)v4; v4[1] = 0; } return result; }
PAIRING_Commit: PUSH RBP MOV RBP,RSP SUB RSP,0x250 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RBP + -0xc],EAX CMP EAX,0x0 JZ 0x001b1793 MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX] AND EAX,0x20 CMP EAX,0x0 JZ 0x001b1755 LEA RDI,[RBP + -0x250] MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0x378 MOV RDX,qword ptr [RBP + -0x8] ADD RDX,0x978 MOV EAX,dword ptr [RBP + -0xc] MOV ECX,EAX CALL 0x001af7b0 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x18 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0x18 LEA RDX,[RBP + -0x250] CALL 0x001aee90 JMP 0x001b1788 LAB_001b1755: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x18 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0x378 MOV RDX,qword ptr [RBP + -0x8] ADD RDX,0x978 MOV EAX,dword ptr [RBP + -0xc] MOV ECX,EAX CALL 0x001af7b0 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX] OR ECX,0x20 MOV dword ptr [RAX],ECX LAB_001b1788: MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x4],0x0 LAB_001b1793: ADD RSP,0x250 POP RBP RET
void PAIRING_Commit(uint *param_1) { int1 local_258 [580]; uint local_14; uint *local_10; local_14 = param_1[1]; if (local_14 != 0) { local_10 = param_1; if ((*param_1 & 0x20) == 0) { miller_loop_n(param_1 + 6,param_1 + 0xde,param_1 + 0x25e,local_14); *local_10 = *local_10 | 0x20; } else { miller_loop_n(local_258,param_1 + 0xde,param_1 + 0x25e,local_14); mul_fp12(local_10 + 6,local_10 + 6,local_258); } local_10[1] = 0; } return; }
17,630
testing::internal::CharFormat testing::internal::PrintAsCharLiteralTo<unsigned char>(unsigned char, std::ostream*)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-printers.cc
static CharFormat PrintAsCharLiteralTo(Char c, ostream* os) { const char32_t u_c = ToChar32(c); switch (u_c) { case L'\0': *os << "\\0"; break; case L'\'': *os << "\\'"; break; case L'\\': *os << "\\\\"; break; case L'\a': *os << "\\a"; break; case L'\b': *os << "\\b"; break; case L'\f': *os << "\\f"; break; case L'\n': *os << "\\n"; break; case L'\r': *os << "\\r"; break; case L'\t': *os << "\\t"; break; case L'\v': *os << "\\v"; break; default: if (IsPrintableAscii(u_c)) { *os << static_cast<char>(c); return kAsIs; } else { ostream::fmtflags flags = os->flags(); *os << "\\x" << std::hex << std::uppercase << static_cast<int>(u_c); os->flags(flags); return kHexEscape; } } return kSpecialEscape; }
O0
cpp
testing::internal::CharFormat testing::internal::PrintAsCharLiteralTo<unsigned char>(unsigned char, std::ostream*): subq $0x28, %rsp movl %edi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movl 0x20(%rsp), %edi callq 0xdeb90 movl %eax, 0x14(%rsp) movl 0x14(%rsp), %eax movq %rax, 0x8(%rsp) subq $0x5c, %rax ja 0xdeade movq 0x8(%rsp), %rax leaq 0x32a9b(%rip), %rcx # 0x111494 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x18(%rsp), %rdi leaq 0x34a9c(%rip), %rsi # 0x1134aa callq 0x146a0 jmp 0xdeb77 movq 0x18(%rsp), %rdi leaq 0x363e8(%rip), %rsi # 0x114e0c callq 0x146a0 jmp 0xdeb77 movq 0x18(%rsp), %rdi leaq 0x363d5(%rip), %rsi # 0x114e0f callq 0x146a0 jmp 0xdeb77 movq 0x18(%rsp), %rdi leaq 0x363c2(%rip), %rsi # 0x114e12 callq 0x146a0 jmp 0xdeb77 movq 0x18(%rsp), %rdi leaq 0x35396(%rip), %rsi # 0x113dfc callq 0x146a0 jmp 0xdeb77 movq 0x18(%rsp), %rdi leaq 0x35389(%rip), %rsi # 0x113e05 callq 0x146a0 jmp 0xdeb77 movq 0x18(%rsp), %rdi leaq 0x35370(%rip), %rsi # 0x113e02 callq 0x146a0 jmp 0xdeb77 movq 0x18(%rsp), %rdi leaq 0x35360(%rip), %rsi # 0x113e08 callq 0x146a0 jmp 0xdeb77 movq 0x18(%rsp), %rdi leaq 0x35341(%rip), %rsi # 0x113dff callq 0x146a0 jmp 0xdeb77 movq 0x18(%rsp), %rdi leaq 0x36341(%rip), %rsi # 0x114e15 callq 0x146a0 jmp 0xdeb77 movl 0x14(%rsp), %edi callq 0xfc0a0 testb $0x1, %al jne 0xdeaed jmp 0xdeb08 movq 0x18(%rsp), %rdi movl 0x20(%rsp), %eax movsbl %al, %esi callq 0x147f0 movl $0x0, 0x24(%rsp) jmp 0xdeb7f movq 0x18(%rsp), %rdi movq (%rdi), %rax addq -0x18(%rax), %rdi callq 0xfc0d0 movl %eax, 0x10(%rsp) movq 0x18(%rsp), %rdi leaq 0x362ef(%rip), %rsi # 0x114e18 callq 0x146a0 movq %rax, %rdi leaq 0x5a38(%rip), %rsi # 0xe4570 callq 0x14210 movq %rax, %rdi leaq 0x5a49(%rip), %rsi # 0xe4590 callq 0x14210 movq %rax, %rdi movl 0x14(%rsp), %esi callq 0x14c50 movq 0x18(%rsp), %rdi movq (%rdi), %rax addq -0x18(%rax), %rdi movl 0x10(%rsp), %esi callq 0xfc0e0 movl $0x1, 0x24(%rsp) jmp 0xdeb7f movl $0x2, 0x24(%rsp) movl 0x24(%rsp), %eax addq $0x28, %rsp retq nopl (%rax,%rax)
_ZN7testing8internalL20PrintAsCharLiteralToIDiEENS0_10CharFormatET_PSo: sub rsp, 28h mov [rsp+28h+var_8], edi mov [rsp+28h+var_10], rsi mov edi, [rsp+28h+var_8] call _ZN7testing12_GLOBAL__N_18ToChar32IDiEEDiT_; testing::`anonymous namespace'::ToChar32<char32_t>(char32_t) mov [rsp+28h+var_14], eax mov eax, [rsp+28h+var_14] mov [rsp+28h+var_20], rax sub rax, 5Ch; switch 93 cases ja def_DEA00; jumptable 00000000000DEA00 default case, cases 1-6,14-38,40-91 mov rax, [rsp+28h+var_20] lea rcx, jpt_DEA00 movsxd rax, ds:(jpt_DEA00 - 111494h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_DEA02: mov rdi, [rsp+28h+var_10]; jumptable 00000000000DEA00 case 0 lea rsi, a0; "\\0" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp loc_DEB77 loc_DEA18: mov rdi, [rsp+28h+var_10]; jumptable 00000000000DEA00 case 39 lea rsi, asc_114E0C; "\\'" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp loc_DEB77 loc_DEA2E: mov rdi, [rsp+28h+var_10]; jumptable 00000000000DEA00 case 92 lea rsi, asc_114E0F; "\\\\" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp loc_DEB77 loc_DEA44: mov rdi, [rsp+28h+var_10]; jumptable 00000000000DEA00 case 7 lea rsi, aA; "\\a" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp loc_DEB77 loc_DEA5A: mov rdi, [rsp+28h+var_10]; jumptable 00000000000DEA00 case 8 lea rsi, aB; "\\b" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp loc_DEB77 loc_DEA70: mov rdi, [rsp+28h+var_10]; jumptable 00000000000DEA00 case 12 lea rsi, asc_113E05; "\\f" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp loc_DEB77 loc_DEA86: mov rdi, [rsp+28h+var_10]; jumptable 00000000000DEA00 case 10 lea rsi, aN; "\\n" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp loc_DEB77 loc_DEA9C: mov rdi, [rsp+28h+var_10]; jumptable 00000000000DEA00 case 13 lea rsi, aR; "\\r" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp loc_DEB77 loc_DEAB2: mov rdi, [rsp+28h+var_10]; jumptable 00000000000DEA00 case 9 lea rsi, aT; "\\t" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp loc_DEB77 loc_DEAC8: mov rdi, [rsp+28h+var_10]; jumptable 00000000000DEA00 case 11 lea rsi, aV; "\\v" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp loc_DEB77 def_DEA00: mov edi, [rsp+28h+var_14]; jumptable 00000000000DEA00 default case, cases 1-6,14-38,40-91 call _ZN7testing8internal16IsPrintableAsciiEDi; testing::internal::IsPrintableAscii(char32_t) test al, 1 jnz short loc_DEAED jmp short loc_DEB08 loc_DEAED: mov rdi, [rsp+28h+var_10] mov eax, [rsp+28h+var_8] movsx esi, al call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rsp+28h+var_4], 0 jmp short loc_DEB7F loc_DEB08: mov rdi, [rsp+28h+var_10] mov rax, [rdi] add rdi, [rax-18h]; this call _ZNKSt8ios_base5flagsEv; std::ios_base::flags(void) mov [rsp+28h+var_18], eax mov rdi, [rsp+28h+var_10] lea rsi, asc_114E18; "\\x" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rdi, rax lea rsi, _ZSt3hexRSt8ios_base; std::hex(std::ios_base &) call __ZNSolsEPFRSt8ios_baseS0_E; std::ostream::operator<<(std::ios_base & (*)(std::ios_base &)) mov rdi, rax lea rsi, _ZSt9uppercaseRSt8ios_base; std::uppercase(std::ios_base &) call __ZNSolsEPFRSt8ios_baseS0_E; std::ostream::operator<<(std::ios_base & (*)(std::ios_base &)) mov rdi, rax mov esi, [rsp+28h+var_14] call __ZNSolsEi; std::ostream::operator<<(int) mov rdi, [rsp+28h+var_10] mov rax, [rdi] add rdi, [rax-18h] mov esi, [rsp+28h+var_18] call _ZNSt8ios_base5flagsESt13_Ios_Fmtflags; std::ios_base::flags(std::_Ios_Fmtflags) mov [rsp+28h+var_4], 1 jmp short loc_DEB7F loc_DEB77: mov [rsp+28h+var_4], 2 loc_DEB7F: mov eax, [rsp+28h+var_4] add rsp, 28h retn
long long testing::internal::PrintAsCharLiteralTo<char32_t>(unsigned int a1, _QWORD *a2) { long long v2; // rax long long v3; // rax long long v4; // rax unsigned int v6; // [rsp+10h] [rbp-18h] unsigned int v7; // [rsp+14h] [rbp-14h] unsigned int v8; // [rsp+24h] [rbp-4h] v7 = testing::`anonymous namespace'::ToChar32<char32_t>(a1); switch ( v7 ) { case 0u: std::operator<<<std::char_traits<char>>(a2, "\\0"); goto LABEL_15; case 7u: std::operator<<<std::char_traits<char>>(a2, "\\a"); goto LABEL_15; case 8u: std::operator<<<std::char_traits<char>>(a2, "\\b"); goto LABEL_15; case 9u: std::operator<<<std::char_traits<char>>(a2, "\\t"); goto LABEL_15; case 0xAu: std::operator<<<std::char_traits<char>>(a2, "\\n"); goto LABEL_15; case 0xBu: std::operator<<<std::char_traits<char>>(a2, "\\v"); goto LABEL_15; case 0xCu: std::operator<<<std::char_traits<char>>(a2, "\\f"); goto LABEL_15; case 0xDu: std::operator<<<std::char_traits<char>>(a2, "\\r"); goto LABEL_15; case 0x27u: std::operator<<<std::char_traits<char>>(a2, "\\'"); goto LABEL_15; case 0x5Cu: std::operator<<<std::char_traits<char>>(a2, "\\\\"); LABEL_15: v8 = 2; break; default: if ( (testing::internal::IsPrintableAscii(v7) & 1) != 0 ) { std::operator<<<std::char_traits<char>>(a2, (unsigned int)(char)a1); v8 = 0; } else { v6 = std::ios_base::flags((std::ios_base *)((char *)a2 + *(_QWORD *)(*a2 - 24LL))); v2 = std::operator<<<std::char_traits<char>>(a2, "\\x"); v3 = std::ostream::operator<<(v2, std::hex); v4 = std::ostream::operator<<(v3, std::uppercase); std::ostream::operator<<(v4, v7); std::ios_base::flags((char *)a2 + *(_QWORD *)(*a2 - 24LL), v6); v8 = 1; } break; } return v8; }
PrintAsCharLiteralTo<char32_t>: SUB RSP,0x28 MOV dword ptr [RSP + 0x20],EDI MOV qword ptr [RSP + 0x18],RSI MOV EDI,dword ptr [RSP + 0x20] CALL 0x001deb90 MOV dword ptr [RSP + 0x14],EAX MOV EAX,dword ptr [RSP + 0x14] MOV qword ptr [RSP + 0x8],RAX SUB RAX,0x5c JA 0x001deade MOV RAX,qword ptr [RSP + 0x8] LEA RCX,[0x211494] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x2134aa] CALL 0x001146a0 JMP 0x001deb77 caseD_27: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x214e0c] CALL 0x001146a0 JMP 0x001deb77 caseD_5c: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x214e0f] CALL 0x001146a0 JMP 0x001deb77 caseD_7: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x214e12] CALL 0x001146a0 JMP 0x001deb77 caseD_8: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x213dfc] CALL 0x001146a0 JMP 0x001deb77 caseD_c: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x213e05] CALL 0x001146a0 JMP 0x001deb77 caseD_a: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x213e02] CALL 0x001146a0 JMP 0x001deb77 caseD_d: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x213e08] CALL 0x001146a0 JMP 0x001deb77 caseD_9: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x213dff] CALL 0x001146a0 JMP 0x001deb77 caseD_b: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x214e15] CALL 0x001146a0 JMP 0x001deb77 caseD_1: MOV EDI,dword ptr [RSP + 0x14] CALL 0x001fc0a0 TEST AL,0x1 JNZ 0x001deaed JMP 0x001deb08 LAB_001deaed: MOV RDI,qword ptr [RSP + 0x18] MOV EAX,dword ptr [RSP + 0x20] MOVSX ESI,AL CALL 0x001147f0 MOV dword ptr [RSP + 0x24],0x0 JMP 0x001deb7f LAB_001deb08: MOV RDI,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RDI] ADD RDI,qword ptr [RAX + -0x18] CALL 0x001fc0d0 MOV dword ptr [RSP + 0x10],EAX MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x214e18] CALL 0x001146a0 MOV RDI,RAX LEA RSI,[0x1e4570] CALL 0x00114210 MOV RDI,RAX LEA RSI,[0x1e4590] CALL 0x00114210 MOV RDI,RAX MOV ESI,dword ptr [RSP + 0x14] CALL 0x00114c50 MOV RDI,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RDI] ADD RDI,qword ptr [RAX + -0x18] MOV ESI,dword ptr [RSP + 0x10] CALL 0x001fc0e0 MOV dword ptr [RSP + 0x24],0x1 JMP 0x001deb7f LAB_001deb77: MOV dword ptr [RSP + 0x24],0x2 LAB_001deb7f: MOV EAX,dword ptr [RSP + 0x24] ADD RSP,0x28 RET
/* testing::internal::CharFormat testing::internal::PrintAsCharLiteralTo<char32_t>(char32_t, std::ostream*) */ int4 testing::internal::PrintAsCharLiteralTo<char32_t>(wchar32 param_1,ostream *param_2) { wchar32 wVar1; int4 uVar2; ulong uVar3; ostream *poVar4; wVar1 = testing::(anonymous_namespace)::ToChar32<char32_t>(param_1); switch(wVar1) { case L'\0': std::operator<<(param_2,"\\0"); break; default: uVar3 = IsPrintableAscii(wVar1); if ((uVar3 & 1) == 0) { uVar2 = std::ios_base::flags((ios_base *)(param_2 + *(long *)(*(long *)param_2 + -0x18))); poVar4 = std::operator<<(param_2,"\\x"); poVar4 = (ostream *)std::ostream::operator<<(poVar4,std::hex); poVar4 = (ostream *)std::ostream::operator<<(poVar4,std::uppercase); std::ostream::operator<<(poVar4,wVar1); std::ios_base::flags((ios_base *)(param_2 + *(long *)(*(long *)param_2 + -0x18)),uVar2); return 1; } std::operator<<(param_2,(char)param_1); return 0; case L'\a': std::operator<<(param_2,"\\a"); break; case L'\b': std::operator<<(param_2,"\\b"); break; case L'\t': std::operator<<(param_2,"\\t"); break; case L'\n': std::operator<<(param_2,"\\n"); break; case L'\v': std::operator<<(param_2,"\\v"); break; case L'\f': std::operator<<(param_2,"\\f"); break; case L'\r': std::operator<<(param_2,"\\r"); break; case L'\'': std::operator<<(param_2,"\\\'"); break; case L'\\': std::operator<<(param_2,"\\\\"); } return 2; }
17,631
google::protobuf::compiler::java::ImmutableMessageLiteGenerator::GenerateKotlinMembers(google::protobuf::io::Printer*) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/message_lite.cc
void ImmutableMessageLiteGenerator::GenerateKotlinMembers( io::Printer* printer) const { printer->Print( "@kotlin.jvm.JvmName(\"-initialize$camelcase_name$\")\n" "public inline fun $camelcase_name$(block: $message_kt$.Dsl.() -> " "kotlin.Unit): " "$message$ =\n" " $message_kt$.Dsl._create($message$.newBuilder()).apply { block() " "}._build()\n", "camelcase_name", name_resolver_->GetKotlinFactoryName(descriptor_), "message_kt", name_resolver_->GetKotlinExtensionsClassName(descriptor_), "message", name_resolver_->GetClassName(descriptor_, true)); printer->Print("public object $name$Kt {\n", "name", descriptor_->name()); printer->Indent(); GenerateKotlinDsl(printer); for (int i = 0; i < descriptor_->nested_type_count(); i++) { if (IsMapEntry(descriptor_->nested_type(i))) continue; ImmutableMessageLiteGenerator(descriptor_->nested_type(i), context_) .GenerateKotlinMembers(printer); } printer->Outdent(); printer->Print("}\n"); }
O0
cpp
google::protobuf::compiler::java::ImmutableMessageLiteGenerator::GenerateKotlinMembers(google::protobuf::io::Printer*) const: subq $0x138, %rsp # imm = 0x138 movq %rdi, 0x130(%rsp) movq %rsi, 0x128(%rsp) movq 0x130(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x128(%rsp), %rcx movq %rcx, 0x30(%rsp) movq 0x8(%rax), %rdx movq 0x48(%rax), %rsi leaq 0x108(%rsp), %rdi callq 0x7d5e0 movq 0x38(%rsp), %rax movq 0x8(%rax), %rdx movq 0x48(%rax), %rsi leaq 0xe8(%rsp), %rdi callq 0x7d800 jmp 0x1622c2 movq 0x38(%rsp), %rax movq 0x8(%rax), %rdx movq 0x48(%rax), %rsi leaq 0xb8(%rsp), %rdi movl $0x1, %ecx callq 0x7c9c0 jmp 0x1622e3 movq 0x30(%rsp), %rdi movq %rsp, %rax leaq 0xb8(%rsp), %rcx movq %rcx, 0x8(%rax) leaq 0x27f530(%rip), %rcx # 0x3e182e movq %rcx, (%rax) leaq 0x26ac2d(%rip), %rsi # 0x3ccf35 leaq 0x26ad03(%rip), %rdx # 0x3cd012 leaq 0x26ad0b(%rip), %r8 # 0x3cd021 leaq 0x108(%rsp), %rcx leaq 0xe8(%rsp), %r9 callq 0x155900 jmp 0x16232d leaq 0xb8(%rsp), %rdi callq 0x21cc8 leaq 0xe8(%rsp), %rdi callq 0x21cc8 leaq 0x108(%rsp), %rdi callq 0x21cc8 movq 0x38(%rsp), %rax movq 0x128(%rsp), %rcx movq %rcx, 0x28(%rsp) movq 0x8(%rax), %rdi callq 0x58140 movq 0x28(%rsp), %rdi movq %rax, %rcx leaq 0x26acae(%rip), %rsi # 0x3cd02c leaq 0x253838(%rip), %rdx # 0x3b5bbd callq 0xa0140 movq 0x128(%rsp), %rdi callq 0x323ec0 movq 0x38(%rsp), %rdi movq 0x128(%rsp), %rsi movq (%rdi), %rax callq *0x38(%rax) movl $0x0, 0xb4(%rsp) movq 0x38(%rsp), %rax movl 0xb4(%rsp), %ecx movl %ecx, 0x24(%rsp) movq 0x8(%rax), %rdi callq 0x3cb40 movl %eax, %ecx movl 0x24(%rsp), %eax cmpl %ecx, %eax jge 0x1624f4 movq 0x38(%rsp), %rax movq 0x8(%rax), %rdi movl 0xb4(%rsp), %esi callq 0x3cb50 movq %rax, %rdi callq 0x154df0 testb $0x1, %al jne 0x1623ff jmp 0x162470 jmp 0x1624be movq %rax, %rcx movl %edx, %eax movq %rcx, 0xe0(%rsp) movl %eax, 0xdc(%rsp) jmp 0x16245e movq %rax, %rcx movl %edx, %eax movq %rcx, 0xe0(%rsp) movl %eax, 0xdc(%rsp) jmp 0x162451 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xe0(%rsp) movl %eax, 0xdc(%rsp) leaq 0xb8(%rsp), %rdi callq 0x21cc8 leaq 0xe8(%rsp), %rdi callq 0x21cc8 leaq 0x108(%rsp), %rdi callq 0x21cc8 jmp 0x16251d movq 0x38(%rsp), %rax movq 0x8(%rax), %rdi movl 0xb4(%rsp), %esi callq 0x3cb50 movq %rax, %rsi movq 0x38(%rsp), %rax movq 0x40(%rax), %rdx leaq 0x40(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0x15e170 movq 0x18(%rsp), %rdi movq 0x128(%rsp), %rsi callq 0x162260 jmp 0x1624b4 leaq 0x40(%rsp), %rdi callq 0x15e490 movl 0xb4(%rsp), %eax addl $0x1, %eax movl %eax, 0xb4(%rsp) jmp 0x1623b5 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xe0(%rsp) movl %eax, 0xdc(%rsp) leaq 0x40(%rsp), %rdi callq 0x15e490 jmp 0x16251d movq 0x128(%rsp), %rdi callq 0x323ee0 movq 0x128(%rsp), %rdi leaq 0x28ecf1(%rip), %rsi # 0x3f1201 callq 0x39230 addq $0x138, %rsp # imm = 0x138 retq movq 0xe0(%rsp), %rdi callq 0x21700 nopw (%rax,%rax)
_ZNK6google8protobuf8compiler4java29ImmutableMessageLiteGenerator21GenerateKotlinMembersEPNS0_2io7PrinterE: sub rsp, 138h mov qword ptr [rsp+138h+var_8], rdi mov [rsp+138h+var_10], rsi mov rax, qword ptr [rsp+138h+var_8] mov qword ptr [rsp+138h+var_100], rax; char mov rcx, [rsp+138h+var_10] mov [rsp+138h+var_108], rcx; __int64 mov rdx, [rax+8] mov rsi, [rax+48h] lea rdi, [rsp+138h+var_30]; int call _ZN6google8protobuf8compiler4java17ClassNameResolver20GetKotlinFactoryNameB5cxx11EPKNS0_10DescriptorE; google::protobuf::compiler::java::ClassNameResolver::GetKotlinFactoryName(google::protobuf::Descriptor const*) mov rax, qword ptr [rsp+138h+var_100] mov rdx, [rax+8]; int mov rsi, [rax+48h]; __int64 lea rdi, [rsp+138h+var_50]; void * call _ZN6google8protobuf8compiler4java17ClassNameResolver28GetKotlinExtensionsClassNameB5cxx11EPKNS0_10DescriptorE; google::protobuf::compiler::java::ClassNameResolver::GetKotlinExtensionsClassName(google::protobuf::Descriptor const*) jmp short $+2 loc_1622C2: mov rax, qword ptr [rsp+138h+var_100] mov rdx, [rax+8]; int mov rsi, [rax+48h]; int lea rdi, [rsp+138h+var_84+4]; int mov ecx, 1 call _ZN6google8protobuf8compiler4java17ClassNameResolver12GetClassNameB5cxx11EPKNS0_10DescriptorEb; google::protobuf::compiler::java::ClassNameResolver::GetClassName(google::protobuf::Descriptor const*,bool) jmp short $+2 loc_1622E3: mov rdi, [rsp+138h+var_108] mov rax, rsp lea rcx, [rsp+138h+var_84+4] mov [rax+8], rcx lea rcx, aClearOneofCase+11h; "message" mov [rax], rcx lea rsi, aKotlinJvmJvmna; "@kotlin.jvm.JvmName(\"-initialize$camel"... lea rdx, aCamelcaseName; "camelcase_name" lea r8, aMessageKt; "message_kt" lea rcx, [rsp+138h+var_30] lea r9, [rsp+138h+var_50] call _ZN6google8protobuf2io7Printer5PrintIJA15_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA11_cSA_A8_cSA_EEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [15],std::string,char [11],std::string,char [8],std::string>(char const*,char [15],std::string,char [11],std::string,char [8],std::string const&) jmp short $+2 loc_16232D: lea rdi, [rsp+138h+var_84+4]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+138h+var_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+138h+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rax, qword ptr [rsp+138h+var_100] mov rcx, [rsp+138h+var_10] mov qword ptr [rsp+138h+var_110], rcx; int mov rdi, [rax+8] call _ZNK6google8protobuf10Descriptor4nameB5cxx11Ev; google::protobuf::Descriptor::name(void) mov rdi, qword ptr [rsp+138h+var_110] mov rcx, rax lea rsi, aPublicObjectNa; "public object $name$Kt {\n" lea rdx, aGoogleProtobuf_24+34h; "name" call _ZN6google8protobuf2io7Printer5PrintIJA5_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [5],std::string>(char const*,char [5],std::string const&) mov rdi, [rsp+138h+var_10]; this call _ZN6google8protobuf2io7Printer6IndentEv; google::protobuf::io::Printer::Indent(void) mov rdi, qword ptr [rsp+138h+var_100] mov rsi, [rsp+138h+var_10] mov rax, [rdi] call qword ptr [rax+38h] mov dword ptr [rsp+138h+var_84], 0 loc_1623B5: mov rax, qword ptr [rsp+138h+var_100] mov ecx, dword ptr [rsp+138h+var_84] mov [rsp+138h+var_114], ecx mov rdi, [rax+8]; this call _ZNK6google8protobuf10Descriptor17nested_type_countEv; google::protobuf::Descriptor::nested_type_count(void) mov ecx, eax mov eax, [rsp+138h+var_114] cmp eax, ecx jge loc_1624F4 mov rax, qword ptr [rsp+138h+var_100] mov rdi, [rax+8]; this mov esi, dword ptr [rsp+138h+var_84]; google::protobuf::Descriptor * call _ZNK6google8protobuf10Descriptor11nested_typeEi; google::protobuf::Descriptor::nested_type(int) mov rdi, rax; this call _ZN6google8protobuf8compiler4java10IsMapEntryEPKNS0_10DescriptorE; google::protobuf::compiler::java::IsMapEntry(google::protobuf::Descriptor const*) test al, 1 jnz short loc_1623FF jmp short loc_162470 loc_1623FF: jmp loc_1624BE mov rcx, rax mov eax, edx mov [rsp+arg_D8], rcx mov [rsp+arg_D4], eax jmp short loc_16245E mov rcx, rax mov eax, edx mov [rsp+arg_D8], rcx mov [rsp+arg_D4], eax jmp short loc_162451 mov rcx, rax mov eax, edx mov [rsp+arg_D8], rcx mov [rsp+arg_D4], eax lea rdi, [rsp+arg_B0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_162451: lea rdi, [rsp+arg_E0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_16245E: lea rdi, [rsp+arg_100]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_16251D loc_162470: mov rax, qword ptr [rsp+138h+var_100] mov rdi, [rax+8]; this mov esi, dword ptr [rsp+138h+var_84]; int call _ZNK6google8protobuf10Descriptor11nested_typeEi; google::protobuf::Descriptor::nested_type(int) mov rsi, rax; google::protobuf::Descriptor * mov rax, qword ptr [rsp+138h+var_100] mov rdx, [rax+40h]; google::protobuf::compiler::java::Context * lea rdi, [rsp+138h+var_F8]; this mov [rsp+138h+var_120], rdi; int call _ZN6google8protobuf8compiler4java29ImmutableMessageLiteGeneratorC2EPKNS0_10DescriptorEPNS2_7ContextE; google::protobuf::compiler::java::ImmutableMessageLiteGenerator::ImmutableMessageLiteGenerator(google::protobuf::Descriptor const*,google::protobuf::compiler::java::Context *) mov rdi, [rsp+138h+var_120]; this mov rsi, [rsp+138h+var_10]; google::protobuf::io::Printer * call _ZNK6google8protobuf8compiler4java29ImmutableMessageLiteGenerator21GenerateKotlinMembersEPNS0_2io7PrinterE; google::protobuf::compiler::java::ImmutableMessageLiteGenerator::GenerateKotlinMembers(google::protobuf::io::Printer *) jmp short $+2 loc_1624B4: lea rdi, [rsp+138h+var_F8]; this call _ZN6google8protobuf8compiler4java29ImmutableMessageLiteGeneratorD2Ev; google::protobuf::compiler::java::ImmutableMessageLiteGenerator::~ImmutableMessageLiteGenerator() loc_1624BE: mov eax, dword ptr [rsp+138h+var_84] add eax, 1 mov dword ptr [rsp+138h+var_84], eax jmp loc_1623B5 mov rcx, rax mov eax, edx mov [rsp+arg_D8], rcx mov [rsp+arg_D4], eax lea rdi, [rsp+arg_38]; this call _ZN6google8protobuf8compiler4java29ImmutableMessageLiteGeneratorD2Ev; google::protobuf::compiler::java::ImmutableMessageLiteGenerator::~ImmutableMessageLiteGenerator() jmp short loc_16251D loc_1624F4: mov rdi, [rsp+138h+var_10]; this call _ZN6google8protobuf2io7Printer7OutdentEv; google::protobuf::io::Printer::Outdent(void) mov rdi, [rsp+138h+var_10] lea rsi, aIfOtherHasCapi_1+6Dh; "}\n" call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_ add rsp, 138h retn loc_16251D: mov rdi, [rsp+arg_D8] call __Unwind_Resume
long long google::protobuf::compiler::java::ImmutableMessageLiteGenerator::GenerateKotlinMembers( google::protobuf::compiler::java::ImmutableMessageLiteGenerator *this, google::protobuf::io::Printer *a2) { long long v2; // rax const google::protobuf::Descriptor *v3; // rsi google::protobuf::compiler::java *v4; // rax const google::protobuf::Descriptor *v5; // rax int v7; // [rsp+24h] [rbp-114h] google::protobuf::io::Printer *v8; // [rsp+28h] [rbp-110h] int v10[29]; // [rsp+40h] [rbp-F8h] BYREF unsigned int i; // [rsp+B4h] [rbp-84h] _BYTE v12[48]; // [rsp+B8h] [rbp-80h] BYREF _BYTE v13[32]; // [rsp+E8h] [rbp-50h] BYREF int v14[8]; // [rsp+108h] [rbp-30h] BYREF google::protobuf::io::Printer *v15; // [rsp+128h] [rbp-10h] char v16[8]; // [rsp+130h] [rbp-8h] *(_QWORD *)v16 = this; v15 = a2; google::protobuf::compiler::java::ClassNameResolver::GetKotlinFactoryName[abi:cxx11]( (long long)v14, *((_QWORD *)this + 9), *((_QWORD *)this + 1)); google::protobuf::compiler::java::ClassNameResolver::GetKotlinExtensionsClassName[abi:cxx11]( v13, *((_QWORD *)this + 9), *((_QWORD *)this + 1)); google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11]( (int)v12, *((_QWORD *)this + 9), *((_QWORD *)this + 1)); google::protobuf::io::Printer::Print<char [15],std::string,char [11],std::string,char [8],std::string>( (long long)a2, (long long)"@kotlin.jvm.JvmName(\"-initialize$camelcase_name$\")\n" "public inline fun $camelcase_name$(block: $message_kt$.Dsl.() -> kotlin.Unit): $message$ =\n" " $message_kt$.Dsl._create($message$.newBuilder()).apply { block() }._build()\n", (long long)"camelcase_name", (long long)v14, (long long)"message_kt", (long long)v13, (long long)"message", (long long)v12); std::string::~string(v12); std::string::~string(v13); std::string::~string(v14); v8 = v15; v2 = google::protobuf::Descriptor::name[abi:cxx11](*((_QWORD *)this + 1)); google::protobuf::io::Printer::Print<char [5],std::string>( (long long)v8, (long long)"public object $name$Kt {\n", "name", v2); google::protobuf::io::Printer::Indent(v15); (*(void ( **)(google::protobuf::compiler::java::ImmutableMessageLiteGenerator *, google::protobuf::io::Printer *))(*(_QWORD *)this + 56LL))( this, v15); for ( i = 0; ; ++i ) { v7 = i; if ( v7 >= (int)google::protobuf::Descriptor::nested_type_count(*((google::protobuf::Descriptor **)this + 1)) ) break; v3 = (const google::protobuf::Descriptor *)i; v4 = (google::protobuf::compiler::java *)google::protobuf::Descriptor::nested_type( *((google::protobuf::Descriptor **)this + 1), i); if ( (google::protobuf::compiler::java::IsMapEntry(v4, v3) & 1) == 0 ) { v5 = (const google::protobuf::Descriptor *)google::protobuf::Descriptor::nested_type( *((google::protobuf::Descriptor **)this + 1), i); google::protobuf::compiler::java::ImmutableMessageLiteGenerator::ImmutableMessageLiteGenerator( (google::protobuf::Descriptor **)v10, v5, *((google::protobuf::compiler::java::Context **)this + 8)); google::protobuf::compiler::java::ImmutableMessageLiteGenerator::GenerateKotlinMembers( (google::protobuf::compiler::java::ImmutableMessageLiteGenerator *)v10, v15); google::protobuf::compiler::java::ImmutableMessageLiteGenerator::~ImmutableMessageLiteGenerator((google::protobuf::compiler::java::ImmutableMessageLiteGenerator *)v10); } } google::protobuf::io::Printer::Outdent(v15); return google::protobuf::io::Printer::Print<>((long long)v15, (long long)"}\n"); }
_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC2IRPSt13_Rb_tree_nodeIPKN6google8protobuf8compiler3SCCEERS1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISG_SH_EEEbE4typeELb1EEEOSG_OSH_: MOV qword ptr [RSP + -0x8],RDI MOV qword ptr [RSP + -0x10],RSI MOV qword ptr [RSP + -0x18],RDX MOV RAX,qword ptr [RSP + -0x8] MOV RCX,qword ptr [RSP + -0x10] MOV RCX,qword ptr [RCX] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RSP + -0x18] MOV RCX,qword ptr [RCX] MOV qword ptr [RAX + 0x8],RCX RET
void _ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC2IRPSt13_Rb_tree_nodeIPKN6google8protobuf8compiler3SCCEERS1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISG_SH_EEEbE4typeELb1EEEOSG_OSH_ (int8 *param_1,int8 *param_2,int8 *param_3) { *param_1 = *param_2; param_1[1] = *param_3; return; }
17,632
my_error_register
eloqsql/mysys/my_error.c
int my_error_register(const char** (*get_errmsgs)(int error), uint first, uint last) { struct my_err_head *meh_p; struct my_err_head **search_meh_pp; /* Allocate a new header structure. */ if (! (meh_p= (struct my_err_head*) my_malloc(key_memory_my_err_head, sizeof(struct my_err_head), MYF(MY_WME)))) return 1; meh_p->get_errmsgs= get_errmsgs; meh_p->meh_first= first; meh_p->meh_last= last; /* Search for the right position in the list. */ for (search_meh_pp= &my_errmsgs_list; *search_meh_pp; search_meh_pp= &(*search_meh_pp)->meh_next) { if ((*search_meh_pp)->meh_last > first) break; } /* Error numbers must be unique. No overlapping is allowed. */ if (*search_meh_pp && ((*search_meh_pp)->meh_first <= last)) { my_free(meh_p); return 1; } /* Insert header into the chain. */ meh_p->meh_next= *search_meh_pp; *search_meh_pp= meh_p; return 0; }
O3
c
my_error_register: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %edx, %r14d movl %esi, %r15d movq %rdi, %r12 leaq 0x34ca4e(%rip), %rax # 0x3799d0 movl (%rax), %edi movl $0x18, %esi movl $0x10, %edx callq 0x300d9 movl $0x1, %ebx testq %rax, %rax je 0x2cfd9 movq %r12, 0x8(%rax) movl %r15d, 0x10(%rax) movl %r14d, 0x14(%rax) leaq 0x2cd338(%rip), %rcx # 0x2fa2e8 movq %rcx, %rdx movq (%rcx), %rcx testq %rcx, %rcx je 0x2cfc7 cmpl %r15d, 0x14(%rcx) jbe 0x2cfb0 cmpl %r14d, 0x10(%rcx) jbe 0x2cfd1 movq %rcx, (%rax) movq %rax, (%rdx) xorl %ebx, %ebx jmp 0x2cfd9 movq %rax, %rdi callq 0x30306 movl %ebx, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
my_error_register: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r14d, edx mov r15d, esi mov r12, rdi lea rax, key_memory_my_err_head mov edi, [rax] mov esi, 18h mov edx, 10h call my_malloc mov ebx, 1 test rax, rax jz short loc_2CFD9 mov [rax+8], r12 mov [rax+10h], r15d mov [rax+14h], r14d lea rcx, my_errmsgs_list loc_2CFB0: mov rdx, rcx mov rcx, [rcx] test rcx, rcx jz short loc_2CFC7 cmp [rcx+14h], r15d jbe short loc_2CFB0 cmp [rcx+10h], r14d jbe short loc_2CFD1 loc_2CFC7: mov [rax], rcx mov [rdx], rax xor ebx, ebx jmp short loc_2CFD9 loc_2CFD1: mov rdi, rax call my_free loc_2CFD9: mov eax, ebx pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long my_error_register(long long a1, unsigned int a2, unsigned int a3) { long long v4; // rax unsigned int v5; // ebx long long **v6; // rcx _QWORD *v7; // rdx v4 = my_malloc(key_memory_my_err_head, 24LL); v5 = 1; if ( v4 ) { *(_QWORD *)(v4 + 8) = a1; *(_DWORD *)(v4 + 16) = a2; *(_DWORD *)(v4 + 20) = a3; v6 = &my_errmsgs_list; do { v7 = v6; v6 = (long long **)*v6; if ( !v6 ) goto LABEL_6; } while ( *((_DWORD *)v6 + 5) <= a2 ); if ( *((_DWORD *)v6 + 4) > a3 ) { LABEL_6: *(_QWORD *)v4 = v6; *v7 = v4; return 0; } my_free(v4); } return v5; }
my_error_register: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14D,EDX MOV R15D,ESI MOV R12,RDI LEA RAX,[0x4799d0] MOV EDI,dword ptr [RAX] MOV ESI,0x18 MOV EDX,0x10 CALL 0x001300d9 MOV EBX,0x1 TEST RAX,RAX JZ 0x0012cfd9 MOV qword ptr [RAX + 0x8],R12 MOV dword ptr [RAX + 0x10],R15D MOV dword ptr [RAX + 0x14],R14D LEA RCX,[0x3fa2e8] LAB_0012cfb0: MOV RDX,RCX MOV RCX,qword ptr [RCX] TEST RCX,RCX JZ 0x0012cfc7 CMP dword ptr [RCX + 0x14],R15D JBE 0x0012cfb0 CMP dword ptr [RCX + 0x10],R14D JBE 0x0012cfd1 LAB_0012cfc7: MOV qword ptr [RAX],RCX MOV qword ptr [RDX],RAX XOR EBX,EBX JMP 0x0012cfd9 LAB_0012cfd1: MOV RDI,RAX CALL 0x00130306 LAB_0012cfd9: MOV EAX,EBX POP RBX POP R12 POP R14 POP R15 POP RBP RET
int8 my_error_register(long param_1,uint param_2,uint param_3) { int **ppuVar1; long *plVar2; int **ppuVar3; int8 uVar4; plVar2 = (long *)my_malloc(key_memory_my_err_head,0x18,0x10); uVar4 = 1; if (plVar2 != (long *)0x0) { plVar2[1] = param_1; *(uint *)(plVar2 + 2) = param_2; *(uint *)((long)plVar2 + 0x14) = param_3; ppuVar1 = &my_errmsgs_list; do { ppuVar3 = ppuVar1; ppuVar1 = (int **)*ppuVar3; if (ppuVar1 == (int **)0x0) goto LAB_0012cfc7; } while (*(uint *)((long)ppuVar1 + 0x14) <= param_2); if (param_3 < *(uint *)(ppuVar1 + 2)) { LAB_0012cfc7: *plVar2 = (long)ppuVar1; *ppuVar3 = (int *)plVar2; uVar4 = 0; } else { my_free(plVar2); } } return uVar4; }
17,633
check_and_set_lsn
eloqsql/storage/maria/ma_pagecache.c
static void check_and_set_lsn(PAGECACHE *pagecache, LSN lsn, PAGECACHE_BLOCK_LINK *block) { LSN old; DBUG_ENTER("check_and_set_lsn"); /* In recovery, we can _ma_unpin_all_pages() to put a LSN on page, though page would be PAGECACHE_PLAIN_PAGE (transactionality temporarily disabled to not log REDOs). */ DBUG_ASSERT((block->type == PAGECACHE_LSN_PAGE) || maria_in_recovery); old= lsn_korr(block->buffer); DBUG_PRINT("info", ("old lsn: " LSN_FMT " new lsn: " LSN_FMT, LSN_IN_PARTS(old), LSN_IN_PARTS(lsn))); if (cmp_translog_addr(lsn, old) > 0) { DBUG_ASSERT(block->type != PAGECACHE_READ_UNKNOWN_PAGE); lsn_store(block->buffer, lsn); /* we stored LSN in page so we dirtied it */ if (!(block->status & PCBLOCK_CHANGED)) link_to_changed_list(pagecache, block); } DBUG_VOID_RETURN; }
O0
c
check_and_set_lsn: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) jmp 0x63ac6 movq -0x18(%rbp), %rax movq 0x30(%rax), %rax movzbl (%rax), %eax movq -0x18(%rbp), %rcx movq 0x30(%rcx), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movq 0x30(%rcx), %rcx movzbl 0x2(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax shlq $0x20, %rax movq -0x18(%rbp), %rcx movq 0x30(%rcx), %rcx movl 0x3(%rcx), %ecx orq %rcx, %rax movq %rax, -0x20(%rbp) jmp 0x63b0d movq -0x10(%rbp), %rax subq -0x20(%rbp), %rax cmpq $0x0, %rax jle 0x63bb4 jmp 0x63b21 jmp 0x63b23 jmp 0x63b25 jmp 0x63b27 movq -0x10(%rbp), %rax sarq $0x20, %rax movb %al, %cl movq -0x18(%rbp), %rax movq 0x30(%rax), %rax movb %cl, (%rax) movq -0x10(%rbp), %rax sarq $0x20, %rax shrl $0x8, %eax movb %al, %cl movq -0x18(%rbp), %rax movq 0x30(%rax), %rax movb %cl, 0x1(%rax) movq -0x10(%rbp), %rax sarq $0x20, %rax shrl $0x10, %eax movb %al, %cl movq -0x18(%rbp), %rax movq 0x30(%rax), %rax movb %cl, 0x2(%rax) jmp 0x63b6d movq -0x18(%rbp), %rax movq 0x30(%rax), %rax addq $0x3, %rax movq %rax, -0x28(%rbp) movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF andq -0x10(%rbp), %rax movl %eax, %ecx movq -0x28(%rbp), %rax movl %ecx, (%rax) jmp 0x63b95 movq -0x18(%rbp), %rax movzwl 0x74(%rax), %eax andl $0x20, %eax cmpl $0x0, %eax jne 0x63bb2 movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x63bc0 jmp 0x63bb4 jmp 0x63bb6 jmp 0x63bb8 addq $0x30, %rsp popq %rbp retq nop
check_and_set_lsn: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx jmp short $+2 loc_63AC6: mov rax, [rbp+var_18] mov rax, [rax+30h] movzx eax, byte ptr [rax] mov rcx, [rbp+var_18] mov rcx, [rcx+30h] movzx ecx, byte ptr [rcx+1] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_18] mov rcx, [rcx+30h] movzx ecx, byte ptr [rcx+2] shl ecx, 10h or eax, ecx mov eax, eax shl rax, 20h mov rcx, [rbp+var_18] mov rcx, [rcx+30h] mov ecx, [rcx+3] or rax, rcx mov [rbp+var_20], rax jmp short $+2 loc_63B0D: mov rax, [rbp+var_10] sub rax, [rbp+var_20] cmp rax, 0 jle loc_63BB4 jmp short $+2 loc_63B21: jmp short $+2 loc_63B23: jmp short $+2 loc_63B25: jmp short $+2 loc_63B27: mov rax, [rbp+var_10] sar rax, 20h mov cl, al mov rax, [rbp+var_18] mov rax, [rax+30h] mov [rax], cl mov rax, [rbp+var_10] sar rax, 20h shr eax, 8 mov cl, al mov rax, [rbp+var_18] mov rax, [rax+30h] mov [rax+1], cl mov rax, [rbp+var_10] sar rax, 20h shr eax, 10h mov cl, al mov rax, [rbp+var_18] mov rax, [rax+30h] mov [rax+2], cl jmp short $+2 loc_63B6D: mov rax, [rbp+var_18] mov rax, [rax+30h] add rax, 3 mov [rbp+var_28], rax mov rax, 0FFFFFFFFh and rax, [rbp+var_10] mov ecx, eax mov rax, [rbp+var_28] mov [rax], ecx jmp short $+2 loc_63B95: mov rax, [rbp+var_18] movzx eax, word ptr [rax+74h] and eax, 20h cmp eax, 0 jnz short loc_63BB2 mov rdi, [rbp+var_8] mov rsi, [rbp+var_18] call link_to_changed_list loc_63BB2: jmp short $+2 loc_63BB4: jmp short $+2 loc_63BB6: jmp short $+2 loc_63BB8: add rsp, 30h pop rbp retn
long long check_and_set_lsn(long long a1, long long a2, long long a3) { long long result; // rax result = a2 - (*(unsigned int *)(*(_QWORD *)(a3 + 48) + 3LL) | ((unsigned long long)((*(unsigned __int8 *)(*(_QWORD *)(a3 + 48) + 2LL) << 16) | (unsigned int)**(unsigned __int16 **)(a3 + 48)) << 32)); if ( result > 0 ) { **(_WORD **)(a3 + 48) = WORD2(a2); *(_BYTE *)(*(_QWORD *)(a3 + 48) + 2LL) = BYTE6(a2); *(_DWORD *)(*(_QWORD *)(a3 + 48) + 3LL) = a2; result = *(_WORD *)(a3 + 116) & 0x20; if ( !(_DWORD)result ) return link_to_changed_list(a1, a3); } return result; }
check_and_set_lsn: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX JMP 0x00163ac6 LAB_00163ac6: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x30] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RCX + 0x30] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RCX + 0x30] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x10 OR EAX,ECX MOV EAX,EAX SHL RAX,0x20 MOV RCX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RCX + 0x30] MOV ECX,dword ptr [RCX + 0x3] OR RAX,RCX MOV qword ptr [RBP + -0x20],RAX JMP 0x00163b0d LAB_00163b0d: MOV RAX,qword ptr [RBP + -0x10] SUB RAX,qword ptr [RBP + -0x20] CMP RAX,0x0 JLE 0x00163bb4 JMP 0x00163b21 LAB_00163b21: JMP 0x00163b23 LAB_00163b23: JMP 0x00163b25 LAB_00163b25: JMP 0x00163b27 LAB_00163b27: MOV RAX,qword ptr [RBP + -0x10] SAR RAX,0x20 MOV CL,AL MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x30] MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x10] SAR RAX,0x20 SHR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x30] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x10] SAR RAX,0x20 SHR EAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x30] MOV byte ptr [RAX + 0x2],CL JMP 0x00163b6d LAB_00163b6d: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x30] ADD RAX,0x3 MOV qword ptr [RBP + -0x28],RAX MOV RAX,0xffffffff AND RAX,qword ptr [RBP + -0x10] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX],ECX JMP 0x00163b95 LAB_00163b95: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX + 0x74] AND EAX,0x20 CMP EAX,0x0 JNZ 0x00163bb2 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00163bc0 LAB_00163bb2: JMP 0x00163bb4 LAB_00163bb4: JMP 0x00163bb6 LAB_00163bb6: JMP 0x00163bb8 LAB_00163bb8: ADD RSP,0x30 POP RBP RET
void check_and_set_lsn(int8 param_1,long param_2,long param_3) { if (0 < (long)(param_2 - (ulong)CONCAT34(CONCAT12(*(int1 *)(*(long *)(param_3 + 0x30) + 2), CONCAT11(*(int1 *)(*(long *)(param_3 + 0x30) + 1), **(int1 **)(param_3 + 0x30))), *(int4 *)(*(long *)(param_3 + 0x30) + 3)))) { **(int1 **)(param_3 + 0x30) = (char)((ulong)param_2 >> 0x20); *(char *)(*(long *)(param_3 + 0x30) + 1) = (char)((ulong)param_2 >> 0x28); *(char *)(*(long *)(param_3 + 0x30) + 2) = (char)((ulong)param_2 >> 0x30); *(int *)(*(long *)(param_3 + 0x30) + 3) = (int)param_2; if ((*(ushort *)(param_3 + 0x74) & 0x20) == 0) { link_to_changed_list(param_1,param_3); } } return; }
17,634
cpu_get_num_physical_cores()
monkey531[P]llama/common/common.cpp
std::string string_from(bool value) { return value ? "true" : "false"; }
O1
cpp
cpu_get_num_physical_cores(): pushq %rbx movq %rdi, %rbx leaq 0x7637f(%rip), %rcx # 0xe9aba leaq 0x79061(%rip), %rax # 0xec7a3 testl %esi, %esi cmovneq %rcx, %rax leaq 0x10(%rdi), %rcx movq %rcx, (%rdi) movl %esi, %edx xorq $0x5, %rdx addq %rax, %rdx movq %rax, %rsi callq 0x23580 movq %rbx, %rax popq %rbx retq
_Z11string_fromB5cxx11b: push rbx mov rbx, rdi lea rcx, aTrue; "true" lea rax, aAdvancedOption+0ABh; "false" test esi, esi cmovnz rax, rcx lea rcx, [rdi+10h] mov [rdi], rcx mov edx, esi xor rdx, 5 add rdx, rax mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rax, rbx pop rbx retn
_QWORD * string_from[abi:cxx11](_QWORD *a1, unsigned int a2) { char *v2; // rax v2 = "false"; if ( a2 ) v2 = "true"; *a1 = a1 + 2; std::string::_M_construct<char const*>(a1, v2, (long long)&v2[a2 ^ 5LL]); return a1; }
string_from[abi:cxx11]: PUSH RBX MOV RBX,RDI LEA RCX,[0x1e9aba] LEA RAX,[0x1ec7a3] TEST ESI,ESI CMOVNZ RAX,RCX LEA RCX,[RDI + 0x10] MOV qword ptr [RDI],RCX MOV EDX,ESI XOR RDX,0x5 ADD RDX,RAX MOV RSI,RAX CALL 0x00123580 MOV RAX,RBX POP RBX RET
/* string_from[abi:cxx11](bool) */ int8 string_from_abi_cxx11_(bool param_1) { char *pcVar1; uint in_ESI; int7 in_register_00000039; pcVar1 = "false"; if (in_ESI != 0) { pcVar1 = "true"; } *(long *)CONCAT71(in_register_00000039,param_1) = CONCAT71(in_register_00000039,param_1) + 0x10; std::__cxx11::string::_M_construct<char_const*>(param_1,pcVar1,pcVar1 + ((ulong)in_ESI ^ 5)); return CONCAT71(in_register_00000039,param_1); }
17,635
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool)
llama.cpp/common/./json.hpp
json_sax_dom_callback_parser(BasicJsonType& r, const parser_callback_t cb, const bool allow_exceptions_ = true) : root(r), callback(cb), allow_exceptions(allow_exceptions_) { keep_stack.push_back(true); }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %ecx, %ebp movq %rdi, %rbx movq %rsi, (%rdi) leaq 0x20(%rdi), %r14 leaq 0x80(%rdi), %r12 xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) movups %xmm0, 0x18(%rdi) movups %xmm0, 0x28(%rdi) movups %xmm0, 0x38(%rdi) movups %xmm0, 0x48(%rdi) movups %xmm0, 0x58(%rdi) movups %xmm0, 0x68(%rdi) movb $0x0, 0x78(%rdi) movq %r12, %rdi movq %rdx, %rsi callq 0x27114 movb %bpl, 0xa0(%rbx) leaq 0xa8(%rbx), %r13 movb $0x9, 0xa8(%rbx) movq $0x0, 0xb0(%rbx) movq %r14, %rdi movl $0x1, %esi callq 0x2a0d8 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r15 movq %r13, %rdi callq 0x2bbb6 movq 0x90(%rbx), %rax testq %rax, %rax je 0x27fe9 movq %r12, %rdi movq %r12, %rsi movl $0x3, %edx callq *%rax jmp 0x27fe9 jmp 0x28010 movq %rax, %r15 leaq 0x48(%rbx), %rdi callq 0x2a2e0 movq %r14, %rdi callq 0x2a2e0 leaq 0x8(%rbx), %rdi movq %rbx, %rsi callq 0x1e335 movq %r15, %rdi callq 0x1d8e0 jmp 0x28010 movq %rax, %rdi callq 0x232f3
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, ecx mov rbx, rdi mov [rdi], rsi lea r14, [rdi+20h] lea r12, [rdi+80h] xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 movups xmmword ptr [rdi+18h], xmm0 movups xmmword ptr [rdi+28h], xmm0 movups xmmword ptr [rdi+38h], xmm0 movups xmmword ptr [rdi+48h], xmm0 movups xmmword ptr [rdi+58h], xmm0 movups xmmword ptr [rdi+68h], xmm0 mov byte ptr [rdi+78h], 0 mov rdi, r12 mov rsi, rdx call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&) mov [rbx+0A0h], bpl lea r13, [rbx+0A8h] mov byte ptr [rbx+0A8h], 9 mov qword ptr [rbx+0B0h], 0 mov rdi, r14 mov esi, 1 call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r15, rax mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rax, [rbx+90h] test rax, rax jz short loc_27FE9 mov rdi, r12 mov rsi, r12 mov edx, 3 call rax jmp short loc_27FE9 jmp short loc_28010 mov r15, rax loc_27FE9: lea rdi, [rbx+48h] call _ZNSt13_Bvector_baseISaIbEE13_M_deallocateEv; std::_Bvector_base<std::allocator<bool>>::_M_deallocate(void) mov rdi, r14 call _ZNSt13_Bvector_baseISaIbEE13_M_deallocateEv; std::_Bvector_base<std::allocator<bool>>::_M_deallocate(void) lea rdi, [rbx+8] mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb_cold_1; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool) [clone] mov rdi, r15 call __Unwind_Resume jmp short $+2 loc_28010: mov rdi, rax call __clang_call_terminate
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_sax_dom_callback_parser( long long a1, long long a2, long long a3, char a4) { *(_QWORD *)a1 = a2; *(_OWORD *)(a1 + 8) = 0LL; *(_OWORD *)(a1 + 24) = 0LL; *(_OWORD *)(a1 + 40) = 0LL; *(_OWORD *)(a1 + 56) = 0LL; *(_OWORD *)(a1 + 72) = 0LL; *(_OWORD *)(a1 + 88) = 0LL; *(_OWORD *)(a1 + 104) = 0LL; *(_BYTE *)(a1 + 120) = 0; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function( (_OWORD *)(a1 + 128), a3); *(_BYTE *)(a1 + 160) = a4; *(_BYTE *)(a1 + 168) = 9; *(_QWORD *)(a1 + 176) = 0LL; return std::vector<bool>::push_back(a1 + 32, 1LL); }
json_sax_dom_callback_parser: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBP,ECX MOV RBX,RDI MOV qword ptr [RDI],RSI LEA R14,[RDI + 0x20] LEA R12,[RDI + 0x80] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 MOVUPS xmmword ptr [RDI + 0x18],XMM0 MOVUPS xmmword ptr [RDI + 0x28],XMM0 MOVUPS xmmword ptr [RDI + 0x38],XMM0 MOVUPS xmmword ptr [RDI + 0x48],XMM0 MOVUPS xmmword ptr [RDI + 0x58],XMM0 MOVUPS xmmword ptr [RDI + 0x68],XMM0 MOV byte ptr [RDI + 0x78],0x0 LAB_00127f77: MOV RDI,R12 MOV RSI,RDX CALL 0x00127114 MOV byte ptr [RBX + 0xa0],BPL LEA R13,[RBX + 0xa8] MOV byte ptr [RBX + 0xa8],0x9 MOV qword ptr [RBX + 0xb0],0x0 LAB_00127fa2: MOV RDI,R14 MOV ESI,0x1 CALL 0x0012a0d8 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&)>, bool) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_sax_dom_callback_parser (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,int8 param_1,function *param_3, json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> param_4) { *(int8 *)this = param_1; *(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; *(int8 *)(this + 0x50) = 0; *(int8 *)(this + 0x58) = 0; *(int8 *)(this + 0x60) = 0; *(int8 *)(this + 0x68) = 0; *(int8 *)(this + 0x70) = 0; this[0x78] = (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> )0x0; /* try { // try from 00127f77 to 00127f81 has its CatchHandler @ 00127fe6 */ std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::function((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> *)(this + 0x80),param_3); this[0xa0] = param_4; this[0xa8] = (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> )0x9; *(int8 *)(this + 0xb0) = 0; /* try { // try from 00127fa2 to 00127fae has its CatchHandler @ 00127fbe */ std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x20),true); return; }
17,636
minja::Value::Value(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/minja.hpp
Value(const json & v) { if (v.is_object()) { auto object = std::make_shared<ObjectType>(); for (auto it = v.begin(); it != v.end(); ++it) { (*object)[it.key()] = it.value(); } object_ = std::move(object); } else if (v.is_array()) { auto array = std::make_shared<ArrayType>(); for (const auto& item : v) { array->push_back(Value(item)); } array_ = array; } else { primitive_ = v; } }
O3
cpp
minja::Value::Value(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 $0xc8, %rsp movq %rsi, %r15 leaq 0x40(%rdi), %r14 movq $0x0, 0x48(%rdi) xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movups %xmm0, 0x10(%rdi) movups %xmm0, 0x20(%rdi) movups %xmm0, 0x30(%rdi) movq %rdi, (%rsp) movb $0x0, 0x40(%rdi) movq %r14, %rdi movl $0x1, %esi callq 0x284e2 movq %r14, %rdi movl $0x1, %esi callq 0x284e2 movzbl (%r15), %eax cmpl $0x2, %eax je 0x70725 cmpl $0x1, %eax jne 0x7087a movq %r14, 0x8(%rsp) movl $0x30, %edi callq 0x196a0 movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000 movabsq $0x100000001, %rcx # imm = 0x100000001 movq %rcx, 0x8(%rax) leaq 0x79fc8(%rip), %rcx # 0xea5b8 addq $0x10, %rcx movq %rcx, (%rax) movq %rax, %r13 addq $0x10, %r13 xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movq %rax, 0x10(%rsp) movq $0x0, 0x20(%rax) leaq 0x88(%rsp), %rbp movq %r15, (%rbp) movups %xmm0, 0x8(%rbp) movq %rdx, 0x18(%rbp) movq %rbp, %rdi callq 0x4cc14 leaq 0x30(%rsp), %rbx leaq 0x68(%rsp), %r14 leaq 0x28(%rsp), %r12 movq %r15, 0x28(%rsp) xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x40(%rsp) movq %r12, %rdi callq 0x4cc86 movq %rbp, %rdi movq %r12, %rsi callq 0x4ccec testb %al, %al jne 0x708cd movq %rbp, %rdi callq 0x490a2 movq %r12, %rdi movq %rax, %rsi callq 0x70558 movq %rbp, %rdi callq 0x4db8e movq %r13, %rdi movq %rax, %rsi callq 0x709ac movq %rax, %rdi movq %r12, %rsi callq 0x70aa8 movq %r14, %rdi xorl %esi, %esi callq 0x284e2 movq %r14, %rdi callq 0x2d98e movq 0x60(%rsp), %rdi testq %rdi, %rdi je 0x706c4 callq 0x4200c movq 0x50(%rsp), %rdi testq %rdi, %rdi je 0x706d3 callq 0x4200c movq 0x40(%rsp), %rdi testq %rdi, %rdi je 0x706e2 callq 0x4200c movq 0x30(%rsp), %rdi testq %rdi, %rdi je 0x70718 movq 0x7b89d(%rip), %rax # 0xebf90 cmpb $0x0, (%rax) je 0x70703 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x7070d movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x70718 movq (%rdi), %rax callq *0x18(%rax) movq %rbp, %rdi callq 0x49264 jmp 0x7063d movq %r14, 0x8(%rsp) movl $0x28, %edi callq 0x196a0 leaq 0x20(%rsp), %rdx movabsq $0x100000001, %rcx # imm = 0x100000001 movq %rcx, 0x8(%rax) leaq 0x79eba(%rip), %rcx # 0xea608 addq $0x10, %rcx movq %rcx, (%rax) movq %rax, %rcx addq $0x10, %rcx xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movq $0x0, 0x20(%rax) movq %rax, (%rdx) movq %rcx, -0x8(%rdx) leaq 0x88(%rsp), %r14 movq %r15, (%r14) movups %xmm0, 0x8(%r14) movabsq $-0x8000000000000000, %rbx # imm = 0x8000000000000000 movq %rbx, 0x18(%r14) movq %r14, %rdi callq 0x4cc14 leaq 0xa8(%rsp), %r13 movq %r15, (%r13) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r13) movq %rbx, 0x18(%r13) movq %r13, %rdi callq 0x4cc86 leaq 0x68(%rsp), %r15 leaq 0x28(%rsp), %rbp movq 0x7b7c7(%rip), %rbx # 0xebf90 movq %r14, %rdi movq %r13, %rsi callq 0x4ccec testb %al, %al jne 0x708ab movq %r14, %rdi callq 0x490a2 movq 0x18(%rsp), %r12 movq %rbp, %rdi movq %rax, %rsi callq 0x70558 movq %r12, %rdi movq %rbp, %rsi callq 0x71316 movq %r15, %rdi xorl %esi, %esi callq 0x284e2 movq %r15, %rdi callq 0x2d98e movq 0x60(%rsp), %rdi testq %rdi, %rdi je 0x70820 callq 0x4200c movq 0x50(%rsp), %rdi testq %rdi, %rdi je 0x7082f callq 0x4200c movq 0x40(%rsp), %rdi testq %rdi, %rdi je 0x7083e callq 0x4200c movq 0x30(%rsp), %rdi testq %rdi, %rdi je 0x7086d cmpb $0x0, (%rbx) je 0x70858 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x70862 movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x7086d movq (%rdi), %rax callq *0x18(%rax) movq %r14, %rdi callq 0x49264 jmp 0x707c9 leaq 0x78(%rsp), %rdi movq %r15, %rsi callq 0x2d4c2 leaq 0x78(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x2ac70 movq %rbx, %rdi xorl %esi, %esi callq 0x284e2 movq %rbx, %rdi callq 0x2d98e jmp 0x708ec movq 0x18(%rsp), %rax movq (%rsp), %rdi movq %rax, 0x10(%rdi) addq $0x18, %rdi leaq 0x20(%rsp), %rsi callq 0x71580 movq 0x20(%rsp), %rdi jmp 0x708e2 movq (%rsp), %rax movq %r13, 0x20(%rax) movq 0x28(%rax), %rdi movq 0x10(%rsp), %rcx movq %rcx, 0x28(%rax) testq %rdi, %rdi je 0x708ec callq 0x4200c addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r14, 0x8(%rsp) jmp 0x70907 jmp 0x70907 movq %rax, %r14 jmp 0x7094e jmp 0x70923 jmp 0x7093c movq %rax, %r14 leaq 0x28(%rsp), %rdi callq 0x6a8e4 jmp 0x7093f jmp 0x7093c jmp 0x70923 movq %rax, %r14 jmp 0x70935 movq %rax, %r14 leaq 0x28(%rsp), %rdi callq 0x6a8e4 movq 0x10(%rsp), %rdi jmp 0x70949 movq %rax, %r14 movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0x7094e callq 0x4200c movq 0x8(%rsp), %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x284e2 movq %rbx, %rdi callq 0x2d98e movq (%rsp), %rax movq 0x38(%rax), %rdi testq %rdi, %rdi je 0x70977 callq 0x4200c movq (%rsp), %rax movq 0x28(%rax), %rdi testq %rdi, %rdi je 0x70989 callq 0x4200c movq (%rsp), %rax movq 0x18(%rax), %rdi testq %rdi, %rdi je 0x7099b callq 0x4200c movq (%rsp), %rdi callq 0x6b9a2 movq %r14, %rdi callq 0x19be0
_ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0C8h mov r15, rsi lea r14, [rdi+40h] mov qword ptr [rdi+48h], 0 xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 movups xmmword ptr [rdi+10h], xmm0 movups xmmword ptr [rdi+20h], xmm0 movups xmmword ptr [rdi+30h], xmm0 mov [rsp+0F8h+var_F8], rdi mov byte ptr [rdi+40h], 0 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 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) movzx eax, byte ptr [r15] cmp eax, 2 jz loc_70725 cmp eax, 1 jnz loc_7087A mov [rsp+0F8h+var_F0], r14 mov edi, 30h ; '0'; unsigned __int64 call __Znwm; operator new(ulong) mov rdx, 8000000000000000h mov rcx, 100000001h mov [rax+8], rcx lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEESaISN_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2> add rcx, 10h mov [rax], rcx mov r13, rax add r13, 10h xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 mov [rsp+0F8h+var_E8], rax mov qword ptr [rax+20h], 0 lea rbp, [rsp+0F8h+var_70] mov [rbp+0], r15 movups xmmword ptr [rbp+8], xmm0 mov [rbp+18h], rdx mov rdi, rbp call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9set_beginEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::set_begin(void) lea rbx, [rsp+0F8h+var_C8] lea r14, [rsp+0F8h+var_90] lea r12, [rsp+0F8h+var_D0] loc_7063D: mov [rsp+0F8h+var_D0], r15 xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 mov rax, 8000000000000000h mov [rsp+0F8h+var_B8], rax mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::set_end(void) mov rdi, rbp mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jnz loc_708CD mov rdi, rbp call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov rdi, r12 mov rsi, rax call _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE; minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rdi, rbp call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE3keyEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::key(void) mov rdi, r13 mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_ mov rdi, rax mov rsi, r12 call _ZN5minja5ValueaSEOS0_; minja::Value::operator=(minja::Value&&) 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, [rsp+0F8h+var_98] test rdi, rdi jz short loc_706C4 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_706C4: mov rdi, [rsp+0F8h+var_A8] test rdi, rdi jz short loc_706D3 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_706D3: mov rdi, [rsp+0F8h+var_B8] test rdi, rdi jz short loc_706E2 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_706E2: mov rdi, [rsp+0F8h+var_C8] test rdi, rdi jz short loc_70718 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_70703 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_7070D loc_70703: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_7070D: cmp eax, 1 jnz short loc_70718 mov rax, [rdi] call qword ptr [rax+18h] loc_70718: mov rdi, rbp call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void) jmp loc_7063D loc_70725: mov [rsp+0F8h+var_F0], r14 mov edi, 28h ; '('; unsigned __int64 call __Znwm; operator new(ulong) lea rdx, [rsp+0F8h+var_D8] mov rcx, 100000001h mov [rax+8], rcx lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceISt6vectorIN5minja5ValueESaIS2_EESaIS4_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<std::vector<minja::Value>,std::allocator<std::vector<minja::Value>>,(__gnu_cxx::_Lock_policy)2> add rcx, 10h mov [rax], rcx mov rcx, rax add rcx, 10h xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 mov qword ptr [rax+20h], 0 mov [rdx], rax mov [rdx-8], rcx lea r14, [rsp+0F8h+var_70] mov [r14], r15 movups xmmword ptr [r14+8], xmm0 mov rbx, 8000000000000000h mov [r14+18h], rbx mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9set_beginEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::set_begin(void) lea r13, [rsp+0F8h+var_50] mov [r13+0], r15 xorps xmm0, xmm0 movups xmmword ptr [r13+8], xmm0 mov [r13+18h], rbx mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::set_end(void) lea r15, [rsp+0F8h+var_90] lea rbp, [rsp+0F8h+var_D0] mov rbx, cs:__libc_single_threaded_ptr loc_707C9: mov rdi, r14 mov rsi, r13 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jnz loc_708AB mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov r12, [rsp+0F8h+var_E0] mov rdi, rbp mov rsi, rax call _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE; minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rdi, r12 mov rsi, rbp call _ZNSt6vectorIN5minja5ValueESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<minja::Value>::emplace_back<minja::Value>(minja::Value &&) 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 rdi, [rsp+0F8h+var_98] test rdi, rdi jz short loc_70820 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_70820: mov rdi, [rsp+0F8h+var_A8] test rdi, rdi jz short loc_7082F call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_7082F: mov rdi, [rsp+0F8h+var_B8] test rdi, rdi jz short loc_7083E call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_7083E: mov rdi, [rsp+0F8h+var_C8] test rdi, rdi jz short loc_7086D cmp byte ptr [rbx], 0 jz short loc_70858 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_70862 loc_70858: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_70862: cmp eax, 1 jnz short loc_7086D mov rax, [rdi] call qword ptr [rax+18h] loc_7086D: mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void) jmp loc_707C9 loc_7087A: lea rdi, [rsp+0F8h+var_80] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) lea rbx, [rsp+0F8h+var_80] mov rdi, r14 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_708EC loc_708AB: mov rax, [rsp+0F8h+var_E0] mov rdi, [rsp+0F8h+var_F8] mov [rdi+10h], rax add rdi, 18h lea rsi, [rsp+0F8h+var_D8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&) mov rdi, [rsp+0F8h+var_D8] jmp short loc_708E2 loc_708CD: mov rax, [rsp+0F8h+var_F8] mov [rax+20h], r13 mov rdi, [rax+28h] mov rcx, [rsp+0F8h+var_E8] mov [rax+28h], rcx loc_708E2: test rdi, rdi jz short loc_708EC call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_708EC: add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov [rsp+arg_0], r14 jmp short loc_70907 jmp short $+2 loc_70907: mov r14, rax jmp short loc_7094E jmp short loc_70923 jmp short loc_7093C mov r14, rax lea rdi, [rsp+arg_20]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() jmp short loc_7093F jmp short loc_7093C jmp short $+2 loc_70923: mov r14, rax jmp short loc_70935 mov r14, rax lea rdi, [rsp+arg_20]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_70935: mov rdi, [rsp+arg_8] jmp short loc_70949 loc_7093C: mov r14, rax loc_7093F: mov rdi, [rsp+arg_18] test rdi, rdi jz short loc_7094E loc_70949: call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_7094E: mov rbx, [rsp+arg_0] mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rax, [rsp+0] mov rdi, [rax+38h] test rdi, rdi jz short loc_70977 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_70977: mov rax, [rsp+0] mov rdi, [rax+28h] test rdi, rdi jz short loc_70989 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_70989: mov rax, [rsp+0] mov rdi, [rax+18h] test rdi, rdi jz short loc_7099B call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_7099B: mov rdi, [rsp+0] call _ZNSt23enable_shared_from_thisIN5minja5ValueEED2Ev; std::enable_shared_from_this<minja::Value>::~enable_shared_from_this() mov rdi, r14 call __Unwind_Resume
long long minja::Value::Value(long long a1, unsigned __int8 *a2) { int v2; // eax long long v3; // rax long long v4; // r13 int v5; // eax int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d long long v10; // rax long long v11; // rax long long v12; // rdi signed __int32 v13; // eax long long v14; // rax int v15; // eax int v16; // edx int v17; // ecx int v18; // r8d int v19; // r9d long long v20; // rdi signed __int32 v21; // eax long long result; // rax volatile signed __int32 *v23; // rdi long long v25; // [rsp+10h] [rbp-E8h] long long v26; // [rsp+18h] [rbp-E0h] volatile signed __int32 *v27; // [rsp+20h] [rbp-D8h] BYREF unsigned __int8 *v28; // [rsp+28h] [rbp-D0h] BYREF __int128 v29; // [rsp+30h] [rbp-C8h] volatile signed __int32 *v30; // [rsp+40h] [rbp-B8h] volatile signed __int32 *v31; // [rsp+50h] [rbp-A8h] volatile signed __int32 *v32; // [rsp+60h] [rbp-98h] char v33[16]; // [rsp+68h] [rbp-90h] BYREF unsigned __int8 v34[16]; // [rsp+78h] [rbp-80h] BYREF unsigned __int8 *v35; // [rsp+88h] [rbp-70h] BYREF __int128 v36; // [rsp+90h] [rbp-68h] unsigned long long v37; // [rsp+A0h] [rbp-58h] unsigned __int8 *v38; // [rsp+A8h] [rbp-50h] BYREF __int128 v39; // [rsp+B0h] [rbp-48h] unsigned long long v40; // [rsp+C0h] [rbp-38h] *(_QWORD *)(a1 + 72) = 0LL; *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_BYTE *)(a1 + 64) = 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>::assert_invariant((char *)(a1 + 64)); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64)); v2 = *a2; if ( v2 == 2 ) { v14 = operator new(0x28uLL); *(_QWORD *)(v14 + 8) = 0x100000001LL; *(_QWORD *)v14 = &`vtable for'std::_Sp_counted_ptr_inplace<std::vector<minja::Value>,std::allocator<std::vector<minja::Value>>,(__gnu_cxx::_Lock_policy)2> + 2; *(_OWORD *)(v14 + 16) = 0LL; *(_QWORD *)(v14 + 32) = 0LL; v27 = (volatile signed __int32 *)v14; v26 = v14 + 16; v35 = a2; v36 = 0LL; v37 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_begin(&v35); v38 = a2; v39 = 0LL; v40 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_end(&v38); while ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v35, &v38) ) { v15 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v35); minja::Value::Value((unsigned int)&v28, v15, v16, v17, v18, v19); std::vector<minja::Value>::emplace_back<minja::Value>(v26, &v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v33); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v33); if ( v32 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v32); if ( v31 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v31); if ( v30 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v30); v20 = v29; if ( (_QWORD)v29 ) { if ( _libc_single_threaded ) { v21 = *(_DWORD *)(v29 + 12); *(_DWORD *)(v29 + 12) = v21 - 1; } else { v21 = _InterlockedExchangeAdd((volatile signed __int32 *)(v29 + 12), 0xFFFFFFFF); } if ( v21 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v20 + 24LL))(v20, 0LL); } nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(&v35); } *(_QWORD *)(a1 + 16) = v26; result = std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(a1 + 24, &v27); v23 = v27; } else { if ( v2 != 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( v34, a2); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( a1 + 64, (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>::assert_invariant((char *)v34); return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v34); } v3 = operator new(0x30uLL); *(_QWORD *)(v3 + 8) = 0x100000001LL; *(_QWORD *)v3 = &`vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2> + 2; v4 = v3 + 16; *(_OWORD *)(v3 + 16) = 0LL; v25 = v3; *(_QWORD *)(v3 + 32) = 0LL; v35 = a2; v36 = 0LL; v37 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_begin(&v35); while ( 1 ) { v28 = a2; v29 = 0LL; v30 = (volatile signed __int32 *)0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_end(&v28); if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v35, &v28) ) break; v5 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v35); minja::Value::Value((unsigned int)&v28, v5, v6, v7, v8, v9); v10 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::key(&v35); v11 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_( v4, v10); minja::Value::operator=(v11, &v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v33); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v33); if ( v32 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v32); if ( v31 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v31); if ( v30 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v30); v12 = v29; if ( (_QWORD)v29 ) { if ( _libc_single_threaded ) { v13 = *(_DWORD *)(v29 + 12); *(_DWORD *)(v29 + 12) = v13 - 1; } else { v13 = _InterlockedExchangeAdd((volatile signed __int32 *)(v29 + 12), 0xFFFFFFFF); } if ( v13 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v12 + 24LL))(v12, 0LL); } nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(&v35); } result = a1; *(_QWORD *)(a1 + 32) = v4; v23 = *(volatile signed __int32 **)(a1 + 40); *(_QWORD *)(a1 + 40) = v25; } if ( v23 ) return std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v23); return result; }
Value: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 MOV R15,RSI LEA R14,[RDI + 0x40] MOV qword ptr [RDI + 0x48],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOVUPS xmmword ptr [RDI + 0x10],XMM0 MOVUPS xmmword ptr [RDI + 0x20],XMM0 MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOV qword ptr [RSP],RDI MOV byte ptr [RDI + 0x40],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x001284e2 MOV RDI,R14 MOV ESI,0x1 CALL 0x001284e2 MOVZX EAX,byte ptr [R15] CMP EAX,0x2 JZ 0x00170725 CMP EAX,0x1 JNZ 0x0017087a LAB_001705c2: MOV qword ptr [RSP + 0x8],R14 MOV EDI,0x30 CALL 0x001196a0 MOV RDX,-0x8000000000000000 MOV RCX,0x100000001 MOV qword ptr [RAX + 0x8],RCX LEA RCX,[0x1ea5b8] ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV R13,RAX ADD R13,0x10 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RAX + 0x20],0x0 LEA RBP,[RSP + 0x88] MOV qword ptr [RBP],R15 MOVUPS xmmword ptr [RBP + 0x8],XMM0 MOV qword ptr [RBP + 0x18],RDX MOV RDI,RBP CALL 0x0014cc14 LEA RBX,[RSP + 0x30] LEA R14,[RSP + 0x68] LEA R12,[RSP + 0x28] LAB_0017063d: MOV qword ptr [RSP + 0x28],R15 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOV RAX,-0x8000000000000000 MOV qword ptr [RSP + 0x40],RAX MOV RDI,R12 CALL 0x0014cc86 LAB_0017065f: MOV RDI,RBP MOV RSI,R12 CALL 0x0014ccec TEST AL,AL JNZ 0x001708cd LAB_00170672: MOV RDI,RBP CALL 0x001490a2 MOV RDI,R12 MOV RSI,RAX CALL 0x00170558 LAB_00170685: MOV RDI,RBP CALL 0x0014db8e MOV RDI,R13 MOV RSI,RAX CALL 0x001709ac LAB_00170698: MOV RDI,RAX MOV RSI,R12 CALL 0x00170aa8 MOV RDI,R14 XOR ESI,ESI CALL 0x001284e2 MOV RDI,R14 CALL 0x0012d98e MOV RDI,qword ptr [RSP + 0x60] TEST RDI,RDI JZ 0x001706c4 CALL 0x0014200c LAB_001706c4: MOV RDI,qword ptr [RSP + 0x50] TEST RDI,RDI JZ 0x001706d3 CALL 0x0014200c LAB_001706d3: MOV RDI,qword ptr [RSP + 0x40] TEST RDI,RDI JZ 0x001706e2 CALL 0x0014200c LAB_001706e2: MOV RDI,qword ptr [RSP + 0x30] TEST RDI,RDI JZ 0x00170718 MOV RAX,qword ptr [0x001ebf90] CMP byte ptr [RAX],0x0 JZ 0x00170703 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x0017070d LAB_00170703: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_0017070d: CMP EAX,0x1 JNZ 0x00170718 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_00170718: MOV RDI,RBP CALL 0x00149264 JMP 0x0017063d LAB_00170725: MOV qword ptr [RSP + 0x8],R14 MOV EDI,0x28 CALL 0x001196a0 LEA RDX,[RSP + 0x20] MOV RCX,0x100000001 MOV qword ptr [RAX + 0x8],RCX LEA RCX,[0x1ea608] ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV RCX,RAX ADD RCX,0x10 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOV qword ptr [RAX + 0x20],0x0 MOV qword ptr [RDX],RAX MOV qword ptr [RDX + -0x8],RCX LEA R14,[RSP + 0x88] MOV qword ptr [R14],R15 MOVUPS xmmword ptr [R14 + 0x8],XMM0 MOV RBX,-0x8000000000000000 MOV qword ptr [R14 + 0x18],RBX MOV RDI,R14 CALL 0x0014cc14 LEA R13,[RSP + 0xa8] MOV qword ptr [R13],R15 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R13 + 0x8],XMM0 MOV qword ptr [R13 + 0x18],RBX MOV RDI,R13 CALL 0x0014cc86 LEA R15,[RSP + 0x68] LEA RBP,[RSP + 0x28] MOV RBX,qword ptr [0x001ebf90] LAB_001707c9: MOV RDI,R14 MOV RSI,R13 CALL 0x0014ccec TEST AL,AL JNZ 0x001708ab LAB_001707dc: MOV RDI,R14 CALL 0x001490a2 MOV R12,qword ptr [RSP + 0x18] LAB_001707e9: MOV RDI,RBP MOV RSI,RAX CALL 0x00170558 LAB_001707f4: MOV RDI,R12 MOV RSI,RBP CALL 0x00171316 LAB_001707ff: MOV RDI,R15 XOR ESI,ESI CALL 0x001284e2 MOV RDI,R15 CALL 0x0012d98e MOV RDI,qword ptr [RSP + 0x60] TEST RDI,RDI JZ 0x00170820 CALL 0x0014200c LAB_00170820: MOV RDI,qword ptr [RSP + 0x50] TEST RDI,RDI JZ 0x0017082f CALL 0x0014200c LAB_0017082f: MOV RDI,qword ptr [RSP + 0x40] TEST RDI,RDI JZ 0x0017083e CALL 0x0014200c LAB_0017083e: MOV RDI,qword ptr [RSP + 0x30] TEST RDI,RDI JZ 0x0017086d CMP byte ptr [RBX],0x0 JZ 0x00170858 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x00170862 LAB_00170858: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_00170862: CMP EAX,0x1 JNZ 0x0017086d MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_0017086d: MOV RDI,R14 CALL 0x00149264 JMP 0x001707c9 LAB_0017087a: LEA RDI,[RSP + 0x78] MOV RSI,R15 CALL 0x0012d4c2 LAB_00170887: LEA RBX,[RSP + 0x78] MOV RDI,R14 MOV RSI,RBX CALL 0x0012ac70 MOV RDI,RBX XOR ESI,ESI CALL 0x001284e2 MOV RDI,RBX CALL 0x0012d98e JMP 0x001708ec LAB_001708ab: MOV RAX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RSP] MOV qword ptr [RDI + 0x10],RAX ADD RDI,0x18 LEA RSI,[RSP + 0x20] CALL 0x00171580 MOV RDI,qword ptr [RSP + 0x20] JMP 0x001708e2 LAB_001708cd: MOV RAX,qword ptr [RSP] MOV qword ptr [RAX + 0x20],R13 MOV RDI,qword ptr [RAX + 0x28] MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x28],RCX LAB_001708e2: TEST RDI,RDI JZ 0x001708ec CALL 0x0014200c LAB_001708ec: ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&) */ void __thiscall minja::Value::Value(Value *this,basic_json *param_1) { int *piVar1; int *puVar2; char cVar3; int iVar4; int8 *puVar5; basic_json *pbVar6; int8 uVar7; Value *this_00; vector<minja::Value,std::allocator<minja::Value>> *this_01; bool bVar8; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_02; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_d8; basic_json *local_d0; long *local_c8; int8 uStack_c0; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_b8; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_a8; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_98; data local_90 [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_80 [16]; basic_json *local_70; int8 local_68; int8 uStack_60; int8 local_58; basic_json *local_50; int8 local_48; int8 uStack_40; int8 local_38; *(int8 *)(this + 0x48) = 0; *(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; this[0x40] = (Value)0x0; bVar8 = SUB81((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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),0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar8); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar8); local_70 = param_1; if (*param_1 == (basic_json)0x2) { /* try { // try from 00170725 to 00170733 has its CatchHandler @ 00170905 */ local_d8 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)operator_new(0x28); *(int8 *)(local_d8 + 8) = 0x100000001; *(int ***)local_d8 = &PTR___Sp_counted_ptr_inplace_001ea618; this_01 = (vector<minja::Value,std::allocator<minja::Value>> *)(local_d8 + 0x10); *(int8 *)(local_d8 + 0x10) = 0; *(int8 *)(local_d8 + 0x18) = 0; *(int8 *)(local_d8 + 0x20) = 0; local_68 = 0; uStack_60 = 0; local_58 = 0x8000000000000000; nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::set_begin((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_70); local_48 = 0; uStack_40 = 0; local_38 = 0x8000000000000000; local_50 = param_1; nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::set_end((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_50); puVar2 = PTR___libc_single_threaded_001ebf90; /* try { // try from 001707c9 to 001707d3 has its CatchHandler @ 0017093c */ while (cVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_70, (iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_50), cVar3 == '\0') { /* try { // try from 001707dc to 001707e3 has its CatchHandler @ 0017091f */ pbVar6 = (basic_json *) nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_70); /* try { // try from 001707e9 to 001707f3 has its CatchHandler @ 0017090e */ Value((Value *)&local_d0,pbVar6); /* try { // try from 001707f4 to 001707fe has its CatchHandler @ 00170910 */ std::vector<minja::Value,std::allocator<minja::Value>>::emplace_back<minja::Value> (this_01,(Value *)&local_d0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_90,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_90); if (local_98 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_98); } if (local_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_a8); } if (local_b8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_b8); } if (local_c8 != (long *)0x0) { if (*puVar2 == '\0') { LOCK(); piVar1 = (int *)((long)local_c8 + 0xc); iVar4 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar4 = *(int *)((long)local_c8 + 0xc); *(int *)((long)local_c8 + 0xc) = iVar4 + -1; } if (iVar4 == 1) { (**(code **)(*local_c8 + 0x18))(); } } /* try { // try from 0017086d to 00170874 has its CatchHandler @ 0017093c */ nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_70); } *(vector<minja::Value,std::allocator<minja::Value>> **)(this + 0x10) = this_01; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator= ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(this + 0x18), (__shared_count *)&local_d8); this_02 = local_d8; } else { if (*param_1 != (basic_json)0x1) { /* try { // try from 0017087a to 00170886 has its CatchHandler @ 001708fe */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_80,param_1); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::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 + 0x40),(data *)local_80); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_80,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_80); return; } /* try { // try from 001705c2 to 001705d0 has its CatchHandler @ 00170907 */ puVar5 = (int8 *)operator_new(0x30); puVar5[1] = 0x100000001; *puVar5 = &PTR___Sp_counted_ptr_inplace_001ea5c8; puVar5[2] = 0; puVar5[3] = 0; puVar5[4] = 0; local_68 = 0; uStack_60 = 0; local_58 = 0x8000000000000000; nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::set_begin((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_70); while( true ) { local_c8 = (long *)0x0; uStack_c0 = 0; local_b8 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x8000000000000000; local_d0 = param_1; nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::set_end((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_d0); /* try { // try from 0017065f to 00170669 has its CatchHandler @ 00170921 */ cVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_70, (iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_d0); if (cVar3 != '\0') break; /* try { // try from 00170672 to 00170684 has its CatchHandler @ 00170923 */ pbVar6 = (basic_json *) nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_70); Value((Value *)&local_d0,pbVar6); /* try { // try from 00170685 to 00170697 has its CatchHandler @ 00170928 */ uVar7 = nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::key((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_70); this_00 = (Value *)_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_ (puVar5 + 2,uVar7); operator=(this_00,(Value *)&local_d0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_90,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_90); if (local_98 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_98); } if (local_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_a8); } if (local_b8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_b8); } if (local_c8 != (long *)0x0) { if (*PTR___libc_single_threaded_001ebf90 == '\0') { LOCK(); piVar1 = (int *)((long)local_c8 + 0xc); iVar4 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar4 = *(int *)((long)local_c8 + 0xc); *(int *)((long)local_c8 + 0xc) = iVar4 + -1; } if (iVar4 == 1) { (**(code **)(*local_c8 + 0x18))(); } } /* try { // try from 00170718 to 0017071f has its CatchHandler @ 0017090c */ nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_70); } *(int8 **)(this + 0x20) = puVar5 + 2; this_02 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28); *(int8 **)(this + 0x28) = puVar5; } if (this_02 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_02); } return; }
17,637
inline_mysql_file_chsize
eloqsql/include/mysql/psi/mysql_file.h
static inline int inline_mysql_file_chsize( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, my_off_t newlength, int filler, myf flags) { int result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_CHSIZE); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_wait)(locker, (size_t) newlength, src_file, src_line); result= my_chsize(file, newlength, filler, flags); PSI_FILE_CALL(end_file_wait)(locker, (size_t) newlength); return result; } #endif result= my_chsize(file, newlength, filler, flags); return result; }
O0
c
inline_mysql_file_chsize: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq %r9, -0x30(%rbp) leaq 0x233700(%rip), %rax # 0x2bf098 movq (%rax), %rax movq 0x158(%rax), %rax movl -0x18(%rbp), %esi leaq -0x88(%rbp), %rdi movl $0xd, %edx callq *%rax movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%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 0x8ba32 leaq 0x2336ba(%rip), %rax # 0x2bf098 movq (%rax), %rax movq 0x210(%rax), %rax movq -0x40(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x10(%rbp), %rdx movl -0x14(%rbp), %ecx callq *%rax movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movl -0x24(%rbp), %edx movq -0x30(%rbp), %rcx callq 0xeeaa0 movl %eax, -0x34(%rbp) leaq 0x233682(%rip), %rax # 0x2bf098 movq (%rax), %rax movq 0x218(%rax), %rax movq -0x40(%rbp), %rdi movq -0x20(%rbp), %rsi callq *%rax movl -0x34(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x8ba4e movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movl -0x24(%rbp), %edx movq -0x30(%rbp), %rcx callq 0xeeaa0 movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x90, %rsp popq %rbp retq nopw (%rax,%rax)
inline_mysql_file_chsize_2: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_20], rcx mov [rbp+var_24], r8d mov [rbp+var_30], r9 lea rax, PSI_server mov rax, [rax] mov rax, [rax+158h] mov esi, [rbp+var_18] lea rdi, [rbp+var_88] mov edx, 0Dh call rax mov [rbp+var_40], rax cmp [rbp+var_40], 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_8BA32 lea rax, PSI_server mov rax, [rax] mov rax, [rax+210h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_20] mov rdx, [rbp+var_10] mov ecx, [rbp+var_14] call rax mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov edx, [rbp+var_24] mov rcx, [rbp+var_30] call my_chsize mov [rbp+var_34], eax lea rax, PSI_server mov rax, [rax] mov rax, [rax+218h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_20] call rax mov eax, [rbp+var_34] mov [rbp+var_4], eax jmp short loc_8BA4E loc_8BA32: mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov edx, [rbp+var_24] mov rcx, [rbp+var_30] call my_chsize mov [rbp+var_34], eax mov eax, [rbp+var_34] mov [rbp+var_4], eax loc_8BA4E: mov eax, [rbp+var_4] add rsp, 90h pop rbp retn
long long inline_mysql_file_chsize_2( long long a1, unsigned int a2, unsigned int a3, long long a4, unsigned int a5, long long a6) { _BYTE v7[72]; // [rsp+8h] [rbp-88h] BYREF long long v8; // [rsp+50h] [rbp-40h] unsigned int v9; // [rsp+5Ch] [rbp-34h] long long v10; // [rsp+60h] [rbp-30h] unsigned int v11; // [rsp+6Ch] [rbp-24h] long long v12; // [rsp+70h] [rbp-20h] unsigned int v13; // [rsp+78h] [rbp-18h] unsigned int v14; // [rsp+7Ch] [rbp-14h] long long v15; // [rsp+80h] [rbp-10h] v15 = a1; v14 = a2; v13 = a3; v12 = a4; v11 = a5; v10 = a6; v8 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v7, a3, 13LL); if ( v8 ) { ((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v8, v12, v15, v14); v9 = my_chsize(v13, v12, v11, v10); ((void ( *)(long long, long long))PSI_server[67])(v8, v12); } else { return (unsigned int)my_chsize(v13, v12, v11, v10); } return v9; }
inline_mysql_file_chsize: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV qword ptr [RBP + -0x20],RCX MOV dword ptr [RBP + -0x24],R8D MOV qword ptr [RBP + -0x30],R9 LEA RAX,[0x3bf098] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x158] MOV ESI,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x88] MOV EDX,0xd CALL RAX MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],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 0x0018ba32 LEA RAX,[0x3bf098] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x210] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x14] CALL RAX MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV EDX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x30] CALL 0x001eeaa0 MOV dword ptr [RBP + -0x34],EAX LEA RAX,[0x3bf098] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x20] CALL RAX MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x4],EAX JMP 0x0018ba4e LAB_0018ba32: MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV EDX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x30] CALL 0x001eeaa0 MOV dword ptr [RBP + -0x34],EAX MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x4],EAX LAB_0018ba4e: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x90 POP RBP RET
int4 inline_mysql_file_chsize (int8 param_1,int4 param_2,int4 param_3,int8 param_4, int4 param_5,int8 param_6) { int1 local_90 [72]; long local_48; int4 local_3c; int8 local_38; int4 local_2c; int8 local_28; int4 local_20; int4 local_1c; int8 local_18; int4 local_c; local_38 = param_6; local_2c = param_5; local_28 = param_4; local_20 = param_3; local_1c = param_2; local_18 = param_1; local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,0xd); if (local_48 == 0) { local_c = my_chsize(local_20,local_28,local_2c,local_38); } else { (**(code **)(PSI_server + 0x210))(local_48,local_28,local_18,local_1c); local_3c = my_chsize(local_20,local_28,local_2c,local_38); (**(code **)(PSI_server + 0x218))(local_48,local_28); local_c = local_3c; } return local_c; }
17,638
js_cond_wait
bluesky950520[P]quickjs/cutils.c
void js_cond_wait(js_cond_t *cond, js_mutex_t *mutex) { #if defined(__APPLE__) && defined(__MACH__) int r; errno = 0; r = pthread_cond_wait(cond, mutex); /* Workaround for a bug in OS X at least up to 13.6 * See https://github.com/libuv/libuv/issues/4165 */ if (r == EINVAL && errno == EBUSY) return; if (r) abort(); #else if (pthread_cond_wait(cond, mutex)) abort(); #endif }
O0
c
js_cond_wait: subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq %rsi, 0x8(%rsp) movq 0x10(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0xe210 cmpl $0x0, %eax je 0x27357 callq 0xe090 addq $0x18, %rsp retq nopl (%rax)
js_cond_wait: 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 _pthread_cond_wait cmp eax, 0 jz short loc_27357 call _abort loc_27357: add rsp, 18h retn
long long js_cond_wait(long long a1, long long a2) { long long result; // rax result = pthread_cond_wait(a1, a2); if ( (_DWORD)result ) abort(); return result; }
js_cond_wait: 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 0x0010e210 CMP EAX,0x0 JZ 0x00127357 CALL 0x0010e090 LAB_00127357: ADD RSP,0x18 RET
void js_cond_wait(pthread_cond_t *param_1,pthread_mutex_t *param_2) { int iVar1; iVar1 = pthread_cond_wait(param_1,param_2); if (iVar1 != 0) { /* WARNING: Subroutine does not return */ abort(); } return; }
17,639
js_cond_wait
bluesky950520[P]quickjs/cutils.c
void js_cond_wait(js_cond_t *cond, js_mutex_t *mutex) { #if defined(__APPLE__) && defined(__MACH__) int r; errno = 0; r = pthread_cond_wait(cond, mutex); /* Workaround for a bug in OS X at least up to 13.6 * See https://github.com/libuv/libuv/issues/4165 */ if (r == EINVAL && errno == EBUSY) return; if (r) abort(); #else if (pthread_cond_wait(cond, mutex)) abort(); #endif }
O2
c
js_cond_wait: pushq %rax callq 0xe230 testl %eax, %eax jne 0x1a9fb popq %rax retq callq 0xe090
js_cond_wait: push rax call _pthread_cond_wait test eax, eax jnz short loc_1A9FB pop rax retn loc_1A9FB: call _abort
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> js_cond_wait() { if ( (unsigned int)pthread_cond_wait() ) abort(); }
js_cond_wait: PUSH RAX CALL 0x0010e230 TEST EAX,EAX JNZ 0x0011a9fb POP RAX RET LAB_0011a9fb: CALL 0x0010e090
int8 js_cond_wait(pthread_cond_t *param_1,pthread_mutex_t *param_2) { int iVar1; int8 in_RAX; iVar1 = pthread_cond_wait(param_1,param_2); if (iVar1 == 0) { return in_RAX; } /* WARNING: Subroutine does not return */ abort(); }
17,640
js_not_slow
bluesky950520[P]quickjs/quickjs.c
static no_inline int js_not_slow(JSContext *ctx, JSValue *sp) { JSValue op1; op1 = JS_ToNumericFree(ctx, sp[-1]); if (JS_IsException(op1)) goto exception; if (JS_VALUE_GET_TAG(op1) == JS_TAG_BIG_INT) { if (js_unary_arith_bigint(ctx, sp - 1, OP_not, op1)) goto exception; } else { int32_t v1; if (unlikely(JS_ToInt32Free(ctx, &v1, op1))) goto exception; sp[-1] = js_int32(~v1); } return 0; exception: sp[-1] = JS_UNDEFINED; return -1; }
O1
c
js_not_slow: pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq -0x10(%rsi), %rsi movq -0x8(%rbx), %rdx movl $0x1, %ecx callq 0x42b20 movq %rdx, %r8 cmpl $0x6, %r8d je 0x40cfb cmpl $-0x9, %r8d jne 0x40d11 leaq -0x10(%rbx), %rsi movq %r14, %rdi movl $0x95, %edx movq %rax, %rcx callq 0x42d24 testl %eax, %eax je 0x40d3a movl $0x0, -0x10(%rbx) movq $0x3, -0x8(%rbx) movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0x40d3c leaq 0x4(%rsp), %rsi movq %r14, %rdi movq %rax, %rdx movq %r8, %rcx callq 0x279c3 testl %eax, %eax jne 0x40cfb movl 0x4(%rsp), %eax notl %eax movq %rax, -0x10(%rbx) movq $0x0, -0x8(%rbx) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 retq
js_not_slow: push r14 push rbx push rax mov rbx, rsi mov r14, rdi mov rsi, [rsi-10h] mov rdx, [rbx-8] mov ecx, 1 call JS_ToNumberHintFree mov r8, rdx cmp r8d, 6 jz short loc_40CFB cmp r8d, 0FFFFFFF7h jnz short loc_40D11 lea rsi, [rbx-10h] mov rdi, r14 mov edx, 95h mov rcx, rax call js_unary_arith_bigint test eax, eax jz short loc_40D3A loc_40CFB: mov dword ptr [rbx-10h], 0 mov qword ptr [rbx-8], 3 mov eax, 0FFFFFFFFh jmp short loc_40D3C loc_40D11: lea rsi, [rsp+18h+var_14] mov rdi, r14 mov rdx, rax mov rcx, r8 call JS_ToInt32Free test eax, eax jnz short loc_40CFB mov eax, [rsp+18h+var_14] not eax mov [rbx-10h], rax mov qword ptr [rbx-8], 0 loc_40D3A: xor eax, eax loc_40D3C: add rsp, 8 pop rbx pop r14 retn
long long js_not_slow(long long a1, long long a2) { long long v2; // rax unsigned long long v3; // rax long long v4; // rdx int v6[5]; // [rsp+0h] [rbp-14h] BYREF v6[0] = HIDWORD(v2); v3 = JS_ToNumberHintFree(a1, *(_QWORD *)(a2 - 16), *(_QWORD *)(a2 - 8), 1LL); if ( (_DWORD)v4 == 6 ) goto LABEL_4; if ( (_DWORD)v4 == -9 ) { if ( (unsigned int)js_unary_arith_bigint(a1, a2 - 16, 149LL, v3) ) { LABEL_4: *(_DWORD *)(a2 - 16) = 0; *(_QWORD *)(a2 - 8) = 3LL; return 0xFFFFFFFFLL; } } else { if ( (unsigned int)JS_ToInt32Free(a1, v6, v3, v4) ) goto LABEL_4; *(_QWORD *)(a2 - 16) = (unsigned int)~v6[0]; *(_QWORD *)(a2 - 8) = 0LL; } return 0LL; }
js_not_slow: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RSI,qword ptr [RSI + -0x10] MOV RDX,qword ptr [RBX + -0x8] MOV ECX,0x1 CALL 0x00142b20 MOV R8,RDX CMP R8D,0x6 JZ 0x00140cfb CMP R8D,-0x9 JNZ 0x00140d11 LEA RSI,[RBX + -0x10] MOV RDI,R14 MOV EDX,0x95 MOV RCX,RAX CALL 0x00142d24 TEST EAX,EAX JZ 0x00140d3a LAB_00140cfb: MOV dword ptr [RBX + -0x10],0x0 MOV qword ptr [RBX + -0x8],0x3 MOV EAX,0xffffffff JMP 0x00140d3c LAB_00140d11: LEA RSI,[RSP + 0x4] MOV RDI,R14 MOV RDX,RAX MOV RCX,R8 CALL 0x001279c3 TEST EAX,EAX JNZ 0x00140cfb MOV EAX,dword ptr [RSP + 0x4] NOT EAX MOV qword ptr [RBX + -0x10],RAX MOV qword ptr [RBX + -0x8],0x0 LAB_00140d3a: XOR EAX,EAX LAB_00140d3c: ADD RSP,0x8 POP RBX POP R14 RET
int8 js_not_slow(int8 param_1,long param_2) { int iVar1; int8 in_RAX; int1 auVar2 [16]; uint local_14; local_14 = (uint)((ulong)in_RAX >> 0x20); auVar2 = JS_ToNumberHintFree(param_1,*(int8 *)(param_2 + -0x10), *(int8 *)(param_2 + -8),1); if (auVar2._8_4_ != 6) { if (auVar2._8_4_ == -9) { iVar1 = js_unary_arith_bigint(param_1,param_2 + -0x10,0x95,auVar2._0_8_); if (iVar1 == 0) { return 0; } } else { iVar1 = JS_ToInt32Free(param_1,&local_14,auVar2._0_8_,auVar2._8_8_); if (iVar1 == 0) { *(ulong *)(param_2 + -0x10) = (ulong)~local_14; *(int8 *)(param_2 + -8) = 0; return 0; } } } *(int4 *)(param_2 + -0x10) = 0; *(int8 *)(param_2 + -8) = 3; return 0xffffffff; }
17,641
js_not_slow
bluesky950520[P]quickjs/quickjs.c
static no_inline int js_not_slow(JSContext *ctx, JSValue *sp) { JSValue op1; op1 = JS_ToNumericFree(ctx, sp[-1]); if (JS_IsException(op1)) goto exception; if (JS_VALUE_GET_TAG(op1) == JS_TAG_BIG_INT) { if (js_unary_arith_bigint(ctx, sp - 1, OP_not, op1)) goto exception; } else { int32_t v1; if (unlikely(JS_ToInt32Free(ctx, &v1, op1))) goto exception; sp[-1] = js_int32(~v1); } return 0; exception: sp[-1] = JS_UNDEFINED; return -1; }
O2
c
js_not_slow: pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq -0x10(%rsi), %rsi movq -0x8(%rbx), %rdx callq 0x3a3be movq %rdx, %r8 cmpl $0x6, %r8d je 0x38c6d cmpl $-0x9, %r8d jne 0x38c7e leaq -0x10(%rbx), %rsi movq %r14, %rdi movl $0x95, %edx movq %rax, %rcx callq 0x3a8e6 testl %eax, %eax je 0x38ca4 andl $0x0, -0x10(%rbx) movq $0x3, -0x8(%rbx) pushq $-0x1 popq %rax jmp 0x38ca6 leaq 0x4(%rsp), %rsi movq %r14, %rdi movq %rax, %rdx movq %r8, %rcx callq 0x215e0 testl %eax, %eax jne 0x38c6d movl 0x4(%rsp), %eax notl %eax movq %rax, -0x10(%rbx) andq $0x0, -0x8(%rbx) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 retq
js_not_slow: push r14 push rbx push rax mov rbx, rsi mov r14, rdi mov rsi, [rsi-10h] mov rdx, [rbx-8] call JS_ToNumericFree mov r8, rdx cmp r8d, 6 jz short loc_38C6D cmp r8d, 0FFFFFFF7h jnz short loc_38C7E lea rsi, [rbx-10h] mov rdi, r14 mov edx, 95h mov rcx, rax call js_unary_arith_bigint test eax, eax jz short loc_38CA4 loc_38C6D: and dword ptr [rbx-10h], 0 mov qword ptr [rbx-8], 3 push 0FFFFFFFFFFFFFFFFh pop rax jmp short loc_38CA6 loc_38C7E: lea rsi, [rsp+18h+var_14] mov rdi, r14 mov rdx, rax mov rcx, r8 call JS_ToInt32Free test eax, eax jnz short loc_38C6D mov eax, [rsp+18h+var_14] not eax mov [rbx-10h], rax and qword ptr [rbx-8], 0 loc_38CA4: xor eax, eax loc_38CA6: add rsp, 8 pop rbx pop r14 retn
long long js_not_slow(long long a1, long long a2) { long long v2; // rax unsigned long long v3; // rax long long v4; // rdx _DWORD v6[5]; // [rsp+0h] [rbp-14h] BYREF v6[0] = HIDWORD(v2); v3 = JS_ToNumericFree(a1, *(_QWORD *)(a2 - 16)); if ( (_DWORD)v4 == 6 ) goto LABEL_4; if ( (_DWORD)v4 == -9 ) { if ( (unsigned int)js_unary_arith_bigint(a1, a2 - 16, 149LL, v3) ) { LABEL_4: *(_DWORD *)(a2 - 16) = 0; *(_QWORD *)(a2 - 8) = 3LL; return -1LL; } } else { if ( (unsigned int)JS_ToInt32Free(a1, v6, v3, v4) ) goto LABEL_4; *(_QWORD *)(a2 - 16) = (unsigned int)~v6[0]; *(_QWORD *)(a2 - 8) = 0LL; } return 0LL; }
js_not_slow: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RSI,qword ptr [RSI + -0x10] MOV RDX,qword ptr [RBX + -0x8] CALL 0x0013a3be MOV R8,RDX CMP R8D,0x6 JZ 0x00138c6d CMP R8D,-0x9 JNZ 0x00138c7e LEA RSI,[RBX + -0x10] MOV RDI,R14 MOV EDX,0x95 MOV RCX,RAX CALL 0x0013a8e6 TEST EAX,EAX JZ 0x00138ca4 LAB_00138c6d: AND dword ptr [RBX + -0x10],0x0 MOV qword ptr [RBX + -0x8],0x3 PUSH -0x1 POP RAX JMP 0x00138ca6 LAB_00138c7e: LEA RSI,[RSP + 0x4] MOV RDI,R14 MOV RDX,RAX MOV RCX,R8 CALL 0x001215e0 TEST EAX,EAX JNZ 0x00138c6d MOV EAX,dword ptr [RSP + 0x4] NOT EAX MOV qword ptr [RBX + -0x10],RAX AND qword ptr [RBX + -0x8],0x0 LAB_00138ca4: XOR EAX,EAX LAB_00138ca6: ADD RSP,0x8 POP RBX POP R14 RET
int8 js_not_slow(int8 param_1,long param_2) { int iVar1; int8 in_RAX; int1 auVar2 [16]; uint local_14; local_14 = (uint)((ulong)in_RAX >> 0x20); auVar2 = JS_ToNumericFree(param_1,*(int8 *)(param_2 + -0x10),*(int8 *)(param_2 + -8)); if (auVar2._8_4_ != 6) { if (auVar2._8_4_ == -9) { iVar1 = js_unary_arith_bigint(param_1,param_2 + -0x10,0x95,auVar2._0_8_); if (iVar1 == 0) { return 0; } } else { iVar1 = JS_ToInt32Free(param_1,&local_14,auVar2._0_8_,auVar2._8_8_); if (iVar1 == 0) { *(ulong *)(param_2 + -0x10) = (ulong)~local_14; *(int8 *)(param_2 + -8) = 0; return 0; } } } *(int4 *)(param_2 + -0x10) = 0; *(int8 *)(param_2 + -8) = 3; return 0xffffffffffffffff; }
17,642
strlength
eloqsql/mysys/mf_format.c
size_t strlength(const char *str) { reg1 const char * pos; reg2 const char * found; DBUG_ENTER("strlength"); pos= found= str; while (*pos) { if (*pos != ' ') { while (*++pos && *pos != ' ') {}; if (!*pos) { found=pos; /* String ends here */ break; } } found=pos; while (*++pos == ' ') {}; } DBUG_RETURN((size_t) (found - str)); }
O3
c
strlength: pushq %rbp movq %rsp, %rbp movb (%rdi), %dl movq %rdi, %rax movq %rdi, %rcx cmpb $0x20, %dl je 0x9464d movzbl %dl, %edx testl %edx, %edx je 0x94666 movzbl 0x1(%rcx), %eax incq %rcx testl %eax, %eax je 0x94663 cmpl $0x20, %eax jne 0x9463d movq %rcx, %rsi movb 0x1(%rsi), %dl incq %rsi cmpb $0x20, %dl je 0x94650 movq %rcx, %rax movq %rsi, %rcx jmp 0x94631 movq %rcx, %rax subq %rdi, %rax popq %rbp retq nop
strlength: push rbp mov rbp, rsp mov dl, [rdi] mov rax, rdi mov rcx, rdi loc_94631: cmp dl, 20h ; ' ' jz short loc_9464D movzx edx, dl test edx, edx jz short loc_94666 loc_9463D: movzx eax, byte ptr [rcx+1] inc rcx test eax, eax jz short loc_94663 cmp eax, 20h ; ' ' jnz short loc_9463D loc_9464D: mov rsi, rcx loc_94650: mov dl, [rsi+1] inc rsi cmp dl, 20h ; ' ' jz short loc_94650 mov rax, rcx mov rcx, rsi jmp short loc_94631 loc_94663: mov rax, rcx loc_94666: sub rax, rdi pop rbp retn
long long strlength(_BYTE *a1) { char v1; // dl _BYTE *v2; // rax _BYTE *v3; // rcx int v4; // eax _BYTE *v5; // rsi v1 = *a1; v2 = a1; v3 = a1; while ( v1 == 32 ) { LABEL_6: v5 = v3; do v1 = *++v5; while ( v1 == 32 ); v2 = v3; v3 = v5; } if ( v1 ) { while ( 1 ) { v4 = (unsigned __int8)*++v3; if ( !v4 ) break; if ( v4 == 32 ) goto LABEL_6; } v2 = v3; } return v2 - a1; }
strlength: PUSH RBP MOV RBP,RSP MOV DL,byte ptr [RDI] MOV RAX,RDI MOV RCX,RDI LAB_00194631: CMP DL,0x20 JZ 0x0019464d MOVZX EDX,DL TEST EDX,EDX JZ 0x00194666 LAB_0019463d: MOVZX EAX,byte ptr [RCX + 0x1] INC RCX TEST EAX,EAX JZ 0x00194663 CMP EAX,0x20 JNZ 0x0019463d LAB_0019464d: MOV RSI,RCX LAB_00194650: MOV DL,byte ptr [RSI + 0x1] INC RSI CMP DL,0x20 JZ 0x00194650 MOV RAX,RCX MOV RCX,RSI JMP 0x00194631 LAB_00194663: MOV RAX,RCX LAB_00194666: SUB RAX,RDI POP RBP RET
long strlength(char *param_1) { char *pcVar1; char *pcVar2; char *pcVar3; char cVar4; char *pcVar5; cVar4 = *param_1; pcVar3 = param_1; pcVar5 = param_1; do { pcVar2 = pcVar5; if (cVar4 != ' ') { if (cVar4 == '\0') { LAB_00194666: return (long)pcVar3 - (long)param_1; } do { pcVar1 = pcVar5 + 1; pcVar3 = pcVar5 + 1; if (*pcVar1 == '\0') goto LAB_00194666; pcVar5 = pcVar3; pcVar2 = pcVar3; } while (*pcVar1 != ' '); } do { pcVar3 = pcVar2; cVar4 = pcVar5[1]; pcVar5 = pcVar5 + 1; pcVar2 = pcVar3; } while (cVar4 == ' '); } while( true ); }
17,643
google::protobuf::(anonymous namespace)::OptionsToInterpret::~OptionsToInterpret()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
OptionsToInterpret(const std::string& ns, const std::string& el, const std::vector<int>& path, const Message* orig_opt, Message* opt) : name_scope(ns), element_name(el), element_path(path), original_options(orig_opt), options(opt) {}
O3
cpp
google::protobuf::(anonymous namespace)::OptionsToInterpret::~OptionsToInterpret(): pushq %rbx movq %rdi, %rbx movq 0x40(%rdi), %rdi testq %rdi, %rdi je 0x3d3d6 callq 0xf330 movq 0x20(%rbx), %rdi leaq 0x30(%rbx), %rax cmpq %rax, %rdi je 0x3d3e8 callq 0xf330 movq (%rbx), %rdi addq $0x10, %rbx cmpq %rbx, %rdi je 0x3d3fa popq %rbx jmp 0xf330 popq %rbx retq
_ZN6google8protobuf12_GLOBAL__N_118OptionsToInterpretD2Ev: push rbx mov rbx, rdi mov rdi, [rdi+40h]; void * test rdi, rdi jz short loc_3D3D6 call __ZdlPv; operator delete(void *) loc_3D3D6: mov rdi, [rbx+20h]; void * lea rax, [rbx+30h] cmp rdi, rax jz short loc_3D3E8 call __ZdlPv; operator delete(void *) loc_3D3E8: mov rdi, [rbx]; void * add rbx, 10h cmp rdi, rbx jz short loc_3D3FA pop rbx jmp __ZdlPv; operator delete(void *) loc_3D3FA: pop rbx retn
void google::protobuf::`anonymous namespace'::OptionsToInterpret::~OptionsToInterpret( google::protobuf::_anonymous_namespace_::OptionsToInterpret *this) { void *v2; // rdi char *v3; // rdi v2 = (void *)*((_QWORD *)this + 8); if ( v2 ) operator delete(v2); v3 = (char *)*((_QWORD *)this + 4); if ( v3 != (char *)this + 48 ) operator delete(v3); if ( *(google::protobuf::_anonymous_namespace_::OptionsToInterpret **)this != (google::protobuf::_anonymous_namespace_::OptionsToInterpret *)((char *)this + 16) ) operator delete(*(void **)this); }
~OptionsToInterpret: PUSH RBX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x40] TEST RDI,RDI JZ 0x0013d3d6 CALL 0x0010f330 LAB_0013d3d6: MOV RDI,qword ptr [RBX + 0x20] LEA RAX,[RBX + 0x30] CMP RDI,RAX JZ 0x0013d3e8 CALL 0x0010f330 LAB_0013d3e8: MOV RDI,qword ptr [RBX] ADD RBX,0x10 CMP RDI,RBX JZ 0x0013d3fa POP RBX JMP 0x0010f330 LAB_0013d3fa: POP RBX RET
/* google::protobuf::(anonymous namespace)::OptionsToInterpret::~OptionsToInterpret() */ void __thiscall google::protobuf::(anonymous_namespace)::OptionsToInterpret::~OptionsToInterpret (OptionsToInterpret *this) { if (*(void **)(this + 0x40) != (void *)0x0) { operator_delete(*(void **)(this + 0x40)); } if (*(OptionsToInterpret **)(this + 0x20) != this + 0x30) { operator_delete(*(OptionsToInterpret **)(this + 0x20)); } if (*(OptionsToInterpret **)this != this + 0x10) { operator_delete(*(OptionsToInterpret **)this); return; } return; }
17,644
update_backward_delete_link
eloqsql/storage/myisam/mi_dynrec.c
static int update_backward_delete_link(MI_INFO *info, my_off_t delete_block, my_off_t filepos) { MI_BLOCK_INFO block_info; DBUG_ENTER("update_backward_delete_link"); if (delete_block != HA_OFFSET_ERROR) { block_info.second_read=0; if (_mi_get_block_info(&block_info,info->dfile,delete_block) & BLOCK_DELETED) { uchar buff[8]; mi_sizestore(buff,filepos); if (info->s->file_write(info,buff, 8, delete_block+12, MYF(MY_NABP))) DBUG_RETURN(1); /* Error on write */ } else { my_errno=HA_ERR_WRONG_IN_RECORD; DBUG_RETURN(1); /* Wrong delete link */ } } DBUG_RETURN(0); }
O3
c
update_backward_delete_link: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x68, %rsp movq %fs:0x28, %rax movq %rax, -0x20(%rbp) cmpq $-0x1, %rsi je 0x7ec78 movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r14 leaq -0x78(%rbp), %rdi movl $0x0, 0x50(%rdi) movl 0x1c0(%r14), %esi movq %rbx, %rdx callq 0x7e6e3 testb $0x4, %al jne 0x7ec43 callq 0xa7c22 movl $0x7f, (%rax) movl $0x1, %eax jmp 0x7ec7a bswapq %r15 leaq -0x80(%rbp), %rsi movq %r15, (%rsi) movq (%r14), %rax addq $0xc, %rbx movl $0x8, %edx movl $0x4, %r8d movq %r14, %rdi movq %rbx, %rcx callq *0x2e8(%rax) movq %rax, %rcx movl $0x1, %eax testq %rcx, %rcx jne 0x7ec7a xorl %eax, %eax movq %fs:0x28, %rcx cmpq -0x20(%rbp), %rcx jne 0x7ec94 addq $0x68, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq callq 0x29220
update_backward_delete_link_0: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 68h mov rax, fs:28h mov [rbp+var_20], rax cmp rsi, 0FFFFFFFFFFFFFFFFh jz short loc_7EC78 mov r15, rdx mov rbx, rsi mov r14, rdi lea rdi, [rbp+var_78] mov dword ptr [rdi+50h], 0 mov esi, [r14+1C0h] mov rdx, rbx call _mi_get_block_info test al, 4 jnz short loc_7EC43 call _my_thread_var mov dword ptr [rax], 7Fh mov eax, 1 jmp short loc_7EC7A loc_7EC43: bswap r15 lea rsi, [rbp+var_80] mov [rsi], r15 mov rax, [r14] add rbx, 0Ch mov edx, 8 mov r8d, 4 mov rdi, r14 mov rcx, rbx call qword ptr [rax+2E8h] mov rcx, rax mov eax, 1 test rcx, rcx jnz short loc_7EC7A loc_7EC78: xor eax, eax loc_7EC7A: mov rcx, fs:28h cmp rcx, [rbp+var_20] jnz short loc_7EC94 add rsp, 68h pop rbx pop r14 pop r15 pop rbp retn loc_7EC94: call ___stack_chk_fail
long long update_backward_delete_link_0(unsigned int *a1, long long a2, unsigned long long a3) { unsigned long long v5; // rsi long long result; // rax long long v7; // rcx unsigned long long v8; // [rsp+0h] [rbp-80h] BYREF _BYTE v9[80]; // [rsp+8h] [rbp-78h] BYREF int v10; // [rsp+58h] [rbp-28h] unsigned long long v11; // [rsp+60h] [rbp-20h] v11 = __readfsqword(0x28u); if ( a2 == -1 ) return 0LL; v10 = 0; v5 = a1[112]; if ( (mi_get_block_info((long long)v9, v5, a2) & 4) == 0 ) { *(_DWORD *)my_thread_var(v9, (const char *)v5) = 127; return 1LL; } v8 = _byteswap_uint64(a3); v7 = (*(long long ( **)(unsigned int *, unsigned long long *, long long, long long, long long))(*(_QWORD *)a1 + 744LL))( a1, &v8, 8LL, a2 + 12, 4LL); result = 1LL; if ( !v7 ) return 0LL; return result; }
update_backward_delete_link: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x68 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x20],RAX CMP RSI,-0x1 JZ 0x0017ec78 MOV R15,RDX MOV RBX,RSI MOV R14,RDI LEA RDI,[RBP + -0x78] MOV dword ptr [RDI + 0x50],0x0 MOV ESI,dword ptr [R14 + 0x1c0] MOV RDX,RBX CALL 0x0017e6e3 TEST AL,0x4 JNZ 0x0017ec43 CALL 0x001a7c22 MOV dword ptr [RAX],0x7f MOV EAX,0x1 JMP 0x0017ec7a LAB_0017ec43: BSWAP R15 LEA RSI,[RBP + -0x80] MOV qword ptr [RSI],R15 MOV RAX,qword ptr [R14] ADD RBX,0xc MOV EDX,0x8 MOV R8D,0x4 MOV RDI,R14 MOV RCX,RBX CALL qword ptr [RAX + 0x2e8] MOV RCX,RAX MOV EAX,0x1 TEST RCX,RCX JNZ 0x0017ec7a LAB_0017ec78: XOR EAX,EAX LAB_0017ec7a: MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x20] JNZ 0x0017ec94 ADD RSP,0x68 POP RBX POP R14 POP R15 POP RBP RET LAB_0017ec94: CALL 0x00129220
int8 update_backward_delete_link(long *param_1,long param_2,ulong param_3) { ulong uVar1; int4 *puVar2; int8 uVar3; long lVar4; long in_FS_OFFSET; ulong local_88; int1 local_80 [80]; int4 local_30; long local_28; local_28 = *(long *)(in_FS_OFFSET + 0x28); if (param_2 != -1) { local_30 = 0; uVar1 = _mi_get_block_info(local_80,(int)param_1[0x38],param_2); if ((uVar1 & 4) == 0) { puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7f; uVar3 = 1; goto LAB_0017ec7a; } local_88 = param_3 >> 0x38 | (param_3 & 0xff000000000000) >> 0x28 | (param_3 & 0xff0000000000) >> 0x18 | (param_3 & 0xff00000000) >> 8 | (param_3 & 0xff000000) << 8 | (param_3 & 0xff0000) << 0x18 | (param_3 & 0xff00) << 0x28 | param_3 << 0x38; lVar4 = (**(code **)(*param_1 + 0x2e8))(param_1,&local_88,8,param_2 + 0xc,4); uVar3 = 1; if (lVar4 != 0) goto LAB_0017ec7a; } uVar3 = 0; LAB_0017ec7a: if (*(long *)(in_FS_OFFSET + 0x28) == local_28) { return uVar3; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
17,645
google::protobuf::internal::ExtensionSet::GetRepeatedString[abi:cxx11](int, int) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc
const std::string& ExtensionSet::GetRepeatedString(int number, int index) const { const Extension* extension = FindOrNull(number); GOOGLE_CHECK(extension != nullptr) << "Index out-of-bounds (field is empty)."; GOOGLE_DCHECK_TYPE(*extension, REPEATED_FIELD, STRING); return extension->repeated_string_value->Get(index); }
O0
cpp
google::protobuf::internal::ExtensionSet::GetRepeatedString[abi:cxx11](int, int) const: subq $0x128, %rsp # imm = 0x128 movq %rdi, 0x120(%rsp) movl %esi, 0x11c(%rsp) movl %edx, 0x118(%rsp) movq 0x120(%rsp), %rdi movl 0x11c(%rsp), %esi callq 0x382e90 movq %rax, 0x110(%rsp) movq 0x110(%rsp), %rax movb $0x0, 0xd7(%rsp) cmpq $0x0, %rax je 0x391451 jmp 0x3914c2 leaq 0x78354(%rip), %rdx # 0x4097ac leaq 0xd8(%rsp), %rdi movq %rdi, 0x30(%rsp) movl $0x3, %esi movl $0x23b, %ecx # imm = 0x23B callq 0x219560 movq 0x30(%rsp), %rdi movb $0x1, 0xd7(%rsp) leaq 0x7865c(%rip), %rsi # 0x409ae4 callq 0x218e20 movq %rax, 0x38(%rsp) jmp 0x391494 movq 0x38(%rsp), %rdi leaq 0x78669(%rip), %rsi # 0x409b09 callq 0x218e20 movq %rax, 0x28(%rsp) jmp 0x3914ac movq 0x28(%rsp), %rsi leaq 0xc3(%rsp), %rdi callq 0x218fd0 jmp 0x3914c0 jmp 0x3914c2 testb $0x1, 0xd7(%rsp) jne 0x3914ce jmp 0x3914db leaq 0xd8(%rsp), %rdi callq 0x2195a0 jmp 0x3914dd xorl %eax, %eax testb $0x1, %al jne 0x3914e8 jmp 0x3915ea movq 0x110(%rsp), %rax movb 0x9(%rax), %dl movl $0x1, %eax xorl %ecx, %ecx testb $0x1, %dl cmovnel %ecx, %eax movb $0x0, 0x87(%rsp) cmpl $0x0, %eax jne 0x39150f jmp 0x391568 leaq 0x78296(%rip), %rdx # 0x4097ac leaq 0x88(%rsp), %rdi movq %rdi, 0x18(%rsp) movl $0x3, %esi movl $0x23c, %ecx # imm = 0x23C callq 0x219560 movq 0x18(%rsp), %rdi movb $0x1, 0x87(%rsp) leaq 0x785e9(%rip), %rsi # 0x409b2f callq 0x218e20 movq %rax, 0x20(%rsp) jmp 0x391552 movq 0x20(%rsp), %rsi leaq 0x86(%rsp), %rdi callq 0x218fd0 jmp 0x391566 jmp 0x391568 testb $0x1, 0x87(%rsp) jne 0x391574 jmp 0x391581 leaq 0x88(%rsp), %rdi callq 0x2195a0 jmp 0x3914dd movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc8(%rsp) movl %eax, 0xc4(%rsp) testb $0x1, 0xd7(%rsp) jne 0x3915a6 jmp 0x3915b3 leaq 0xd8(%rsp), %rdi callq 0x2195a0 jmp 0x3916c4 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc8(%rsp) movl %eax, 0xc4(%rsp) testb $0x1, 0x87(%rsp) jne 0x3915d8 jmp 0x3915e5 leaq 0x88(%rsp), %rdi callq 0x2195a0 jmp 0x3916c4 jmp 0x3915ec xorl %eax, %eax testb $0x1, %al jne 0x3915f7 jmp 0x3916a5 movq 0x110(%rsp), %rax movzbl 0x8(%rax), %edi callq 0x383920 movb $0x0, 0x47(%rsp) cmpl $0x9, %eax jne 0x391614 jmp 0x391664 leaq 0x78191(%rip), %rdx # 0x4097ac leaq 0x48(%rsp), %rdi movq %rdi, 0x8(%rsp) movl $0x3, %esi movl $0x23c, %ecx # imm = 0x23C callq 0x219560 movq 0x8(%rsp), %rdi movb $0x1, 0x47(%rsp) leaq 0x789f5(%rip), %rsi # 0x40a03a callq 0x218e20 movq %rax, 0x10(%rsp) jmp 0x391651 movq 0x10(%rsp), %rsi leaq 0x46(%rsp), %rdi callq 0x218fd0 jmp 0x391662 jmp 0x391664 testb $0x1, 0x47(%rsp) jne 0x39166d jmp 0x391677 leaq 0x48(%rsp), %rdi callq 0x2195a0 jmp 0x3915ec movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc8(%rsp) movl %eax, 0xc4(%rsp) testb $0x1, 0x47(%rsp) jne 0x391699 jmp 0x3916a3 leaq 0x48(%rsp), %rdi callq 0x2195a0 jmp 0x3916c4 movq 0x110(%rsp), %rax movq (%rax), %rdi movl 0x118(%rsp), %esi callq 0x211a50 addq $0x128, %rsp # imm = 0x128 retq movq 0xc8(%rsp), %rdi callq 0x21700 nopw %cs:(%rax,%rax)
_ZNK6google8protobuf8internal12ExtensionSet17GetRepeatedStringB5cxx11Eii: sub rsp, 128h mov [rsp+128h+var_8], rdi mov dword ptr [rsp+128h+var_C], esi mov [rsp+128h+var_10], edx mov rdi, [rsp+128h+var_8]; this mov esi, dword ptr [rsp+128h+var_C]; unsigned __int8 call _ZNK6google8protobuf8internal12ExtensionSet10FindOrNullEi; google::protobuf::internal::ExtensionSet::FindOrNull(int) mov [rsp+128h+var_18], rax mov rax, [rsp+128h+var_18] mov [rsp+128h+var_51], 0 cmp rax, 0 jz short loc_391451 jmp short loc_3914C2 loc_391451: lea rdx, aWorkspaceLlm4b_106; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+128h+var_50] mov [rsp+128h+var_F8], rdi mov esi, 3 mov ecx, 23Bh call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+128h+var_F8] mov [rsp+128h+var_51], 1 lea rsi, aCheckFailedExt_5; "CHECK failed: extension != nullptr: " call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+128h+var_F0], rax jmp short $+2 loc_391494: mov rdi, [rsp+128h+var_F0] lea rsi, aIndexOutOfBoun; "Index out-of-bounds (field is empty)." call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+128h+var_100], rax jmp short $+2 loc_3914AC: mov rsi, [rsp+128h+var_100] lea rdi, [rsp+128h+var_65] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_3914C0: jmp short $+2 loc_3914C2: test [rsp+128h+var_51], 1 jnz short loc_3914CE jmp short loc_3914DB loc_3914CE: lea rdi, [rsp+128h+var_50]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_3914DB: jmp short $+2 loc_3914DD: xor eax, eax test al, 1 jnz short loc_3914E8 jmp loc_3915EA loc_3914E8: mov rax, [rsp+128h+var_18] mov dl, [rax+9] mov eax, 1 xor ecx, ecx test dl, 1 cmovnz eax, ecx mov [rsp+128h+var_A1], 0 cmp eax, 0 jnz short loc_39150F jmp short loc_391568 loc_39150F: lea rdx, aWorkspaceLlm4b_106; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+128h+var_A0] mov [rsp+128h+var_110], rdi mov esi, 3 mov ecx, 23Ch call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+128h+var_110] mov [rsp+128h+var_A1], 1 lea rsi, aCheckFailedExt_6; "CHECK failed: ((*extension).is_repeated"... call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+128h+var_108], rax jmp short $+2 loc_391552: mov rsi, [rsp+128h+var_108] lea rdi, [rsp+128h+var_A2] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_391566: jmp short $+2 loc_391568: test [rsp+128h+var_A1], 1 jnz short loc_391574 jmp short loc_391581 loc_391574: lea rdi, [rsp+128h+var_A0]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_391581: jmp loc_3914DD mov rcx, rax mov eax, edx mov [rsp+arg_C0], rcx mov [rsp+arg_BC], eax test [rsp+arg_CF], 1 jnz short loc_3915A6 jmp short loc_3915B3 loc_3915A6: lea rdi, [rsp+arg_D0]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_3915B3: jmp loc_3916C4 mov rcx, rax mov eax, edx mov [rsp+arg_C0], rcx mov [rsp+arg_BC], eax test [rsp+arg_7F], 1 jnz short loc_3915D8 jmp short loc_3915E5 loc_3915D8: lea rdi, [rsp+arg_80]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_3915E5: jmp loc_3916C4 loc_3915EA: jmp short $+2 loc_3915EC: xor eax, eax test al, 1 jnz short loc_3915F7 jmp loc_3916A5 loc_3915F7: mov rax, [rsp+128h+var_18] movzx edi, byte ptr [rax+8]; this call _ZN6google8protobuf8internal12_GLOBAL__N_18cpp_typeEh; google::protobuf::internal::`anonymous namespace'::cpp_type(uchar) mov [rsp+128h+var_E1], 0 cmp eax, 9 jnz short loc_391614 jmp short loc_391664 loc_391614: lea rdx, aWorkspaceLlm4b_106; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+128h+var_E0] mov [rsp+128h+var_120], rdi mov esi, 3 mov ecx, 23Ch call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+128h+var_120] mov [rsp+128h+var_E1], 1 lea rsi, aCheckFailedCpp_17; "CHECK failed: (cpp_type((*extension).ty"... call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+128h+var_118], rax jmp short $+2 loc_391651: mov rsi, [rsp+128h+var_118] lea rdi, [rsp+128h+var_E2] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_391662: jmp short $+2 loc_391664: test [rsp+128h+var_E1], 1 jnz short loc_39166D jmp short loc_391677 loc_39166D: lea rdi, [rsp+128h+var_E0]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_391677: jmp loc_3915EC mov rcx, rax mov eax, edx mov [rsp+arg_C0], rcx mov [rsp+arg_BC], eax test [rsp+arg_3F], 1 jnz short loc_391699 jmp short loc_3916A3 loc_391699: lea rdi, [rsp+arg_40]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_3916A3: jmp short loc_3916C4 loc_3916A5: mov rax, [rsp+128h+var_18] mov rdi, [rax] mov esi, [rsp+128h+var_10] call _ZNK6google8protobuf16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3GetEi; google::protobuf::RepeatedPtrField<std::string>::Get(int) add rsp, 128h retn loc_3916C4: mov rdi, [rsp+arg_C0] call __Unwind_Resume
long long google::protobuf::internal::ExtensionSet::GetRepeatedString[abi:cxx11]( google::protobuf::internal::ExtensionSet *a1, int a2, unsigned int a3) { google::protobuf::internal::LogMessage *v4; // [rsp+28h] [rbp-100h] long long v5; // [rsp+38h] [rbp-F0h] _BYTE v6[20]; // [rsp+C3h] [rbp-65h] BYREF char v7; // [rsp+D7h] [rbp-51h] _BYTE v8[56]; // [rsp+D8h] [rbp-50h] BYREF _DWORD *v9; // [rsp+110h] [rbp-18h] unsigned int v10; // [rsp+118h] [rbp-10h] unsigned __int8 v11[4]; // [rsp+11Ch] [rbp-Ch] google::protobuf::internal::ExtensionSet *v12; // [rsp+120h] [rbp-8h] v12 = a1; *(_DWORD *)v11 = a2; v10 = a3; v9 = google::protobuf::internal::ExtensionSet::FindOrNull(a1, a2); v7 = 0; if ( !v9 ) { google::protobuf::internal::LogMessage::LogMessage( (long long)v8, 3, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc", 571); v7 = 1; v5 = google::protobuf::internal::LogMessage::operator<<( (long long)v8, (long long)"CHECK failed: extension != nullptr: "); v4 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<( v5, (long long)"Index out-of-bounds (field is empty)."); google::protobuf::internal::LogFinisher::operator=((long long)v6, v4); } if ( (v7 & 1) != 0 ) google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v8); return google::protobuf::RepeatedPtrField<std::string>::Get(*(_QWORD *)v9, v10); }
_M_next: MOV qword ptr [RSP + -0x8],RDI MOV RAX,qword ptr [RSP + -0x8] MOV RAX,qword ptr [RAX] RET
/* std::__detail::_Hash_node<std::pair<std::pair<void const*, google::protobuf::stringpiece_internal::StringPiece> const, google::protobuf::FieldDescriptor const*>, true>::_M_next() const */ int8 __thiscall std::__detail:: _Hash_node<std::pair<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>const,google::protobuf::FieldDescriptor_const*>,true> ::_M_next(_Hash_node<std::pair<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>const,google::protobuf::FieldDescriptor_const*>,true> *this) { return *(int8 *)this; }
17,646
google::protobuf::internal::ExtensionSet::GetRepeatedString[abi:cxx11](int, int) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc
const std::string& ExtensionSet::GetRepeatedString(int number, int index) const { const Extension* extension = FindOrNull(number); GOOGLE_CHECK(extension != nullptr) << "Index out-of-bounds (field is empty)."; GOOGLE_DCHECK_TYPE(*extension, REPEATED_FIELD, STRING); return extension->repeated_string_value->Get(index); }
O3
cpp
google::protobuf::internal::ExtensionSet::GetRepeatedString[abi:cxx11](int, int) const: pushq %r15 pushq %r14 pushq %rbx subq $0x40, %rsp movl %edx, %ebx callq 0x19085e movq %rax, %r14 testq %rax, %rax jne 0x1928cd leaq 0x6498b(%rip), %rdx # 0x1f720c leaq 0x8(%rsp), %r15 movq %r15, %rdi movl $0x3, %esi movl $0x23b, %ecx # imm = 0x23B callq 0x1072ba leaq 0x64b82(%rip), %rsi # 0x1f7421 movq %r15, %rdi callq 0x106db8 leaq 0x64b98(%rip), %rsi # 0x1f7446 movq %rax, %rdi callq 0x106db8 leaq 0x7(%rsp), %rdi movq %rax, %rsi callq 0x106e92 leaq 0x8(%rsp), %rdi callq 0x1072d8 movq (%r14), %rax movq 0x10(%rax), %rax movslq %ebx, %rcx movq 0x8(%rax,%rcx,8), %rax addq $0x40, %rsp popq %rbx popq %r14 popq %r15 retq jmp 0x1928e8 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x1072d8 movq %rbx, %rdi callq 0x1f860 nop
_ZNK6google8protobuf8internal12ExtensionSet17GetRepeatedStringB5cxx11Eii: push r15 push r14 push rbx sub rsp, 40h mov ebx, edx call _ZNK6google8protobuf8internal12ExtensionSet10FindOrNullEi; google::protobuf::internal::ExtensionSet::FindOrNull(int) mov r14, rax test rax, rax jnz short loc_1928CD lea rdx, aWorkspaceLlm4b_80; "/workspace/llm4binary/github2025/aimrt_"... lea r15, [rsp+58h+var_50] mov rdi, r15 mov esi, 3 mov ecx, 23Bh call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) lea rsi, aCheckFailedExt_0; "CHECK failed: extension != nullptr: " mov rdi, r15 call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aIndexOutOfBoun; "Index out-of-bounds (field is empty)." mov rdi, rax 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_1928CD: mov rax, [r14] mov rax, [rax+10h] movsxd rcx, ebx mov rax, [rax+rcx*8+8] add rsp, 40h pop rbx pop r14 pop r15 retn jmp short $+2 loc_1928E8: mov rbx, rax lea rdi, [rsp+arg_0]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() mov rdi, rbx call __Unwind_Resume
long long google::protobuf::internal::ExtensionSet::GetRepeatedString[abi:cxx11]( google::protobuf::internal::ExtensionSet *a1, int a2, int a3) { long long v4; // r14 long long v5; // rax google::protobuf::internal::LogMessage *v6; // rax char v8; // [rsp+7h] [rbp-51h] BYREF _BYTE v9[80]; // [rsp+8h] [rbp-50h] BYREF v4 = google::protobuf::internal::ExtensionSet::FindOrNull(a1, a2); if ( !v4 ) { google::protobuf::internal::LogMessage::LogMessage( (long long)v9, 3, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc", 571); v5 = google::protobuf::internal::LogMessage::operator<<( (long long)v9, (long long)"CHECK failed: extension != nullptr: "); v6 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<( v5, (long long)"Index out-of-bounds (field is empty)."); google::protobuf::internal::LogFinisher::operator=((long long)&v8, v6); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v9); } return *(_QWORD *)(*(_QWORD *)(*(_QWORD *)v4 + 16LL) + 8LL * a3 + 8); }
17,647
ggml_compute_forward_hardsigmoid
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c
static void ggml_compute_forward_hardsigmoid( const struct ggml_compute_params * params, struct ggml_tensor * dst) { const struct ggml_tensor * src0 = dst->src[0]; switch (src0->type) { case GGML_TYPE_F32: { ggml_compute_forward_hardsigmoid_f32(params, dst); } break; default: { GGML_ABORT("fatal error"); } } }
O0
c
ggml_compute_forward_hardsigmoid: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x98(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movl (%rax), %eax testl %eax, %eax jne 0x390ba jmp 0x390ab movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x3abe0 jmp 0x390d4 leaq 0x3aaa1(%rip), %rdi # 0x73b62 movl $0x1aae, %esi # imm = 0x1AAE leaq 0x3acf0(%rip), %rdx # 0x73dbd movb $0x0, %al callq 0xe270 addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
ggml_compute_forward_hardsigmoid: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov rax, [rax+98h] mov [rbp+var_18], rax mov rax, [rbp+var_18] mov eax, [rax] test eax, eax jnz short loc_390BA jmp short $+2 loc_390AB: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call ggml_compute_forward_hardsigmoid_f32 jmp short loc_390D4 loc_390BA: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 1AAEh lea rdx, aFatalError; "fatal error" mov al, 0 call _ggml_abort loc_390D4: add rsp, 20h pop rbp retn
double ggml_compute_forward_hardsigmoid(long long a1, long long a2) { double result; // xmm0_8 if ( **(_DWORD **)(a2 + 152) ) return ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 6830LL, "fatal error"); ggml_compute_forward_hardsigmoid_f32(a1, a2); return result; }
ggml_compute_forward_hardsigmoid: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x98] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX] TEST EAX,EAX JNZ 0x001390ba JMP 0x001390ab LAB_001390ab: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x0013abe0 JMP 0x001390d4 LAB_001390ba: LEA RDI,[0x173b62] MOV ESI,0x1aae LEA RDX,[0x173dbd] MOV AL,0x0 CALL 0x0010e270 LAB_001390d4: ADD RSP,0x20 POP RBP RET
void ggml_compute_forward_hardsigmoid(int8 param_1,long param_2) { if (**(int **)(param_2 + 0x98) == 0) { ggml_compute_forward_hardsigmoid_f32(param_1,param_2); } else { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x1aae,"fatal error"); } return; }
17,648
nglog::tools::ReadFromOffset(int, void*, unsigned long, unsigned long)
ng-log[P]ng-log/src/symbolize.cc
static ssize_t ReadFromOffset(const int fd, void* buf, const size_t count, const size_t offset) { NGLOG_SAFE_ASSERT(fd >= 0); NGLOG_SAFE_ASSERT(count <= static_cast<size_t>(std::numeric_limits<ssize_t>::max())); char* buf0 = reinterpret_cast<char*>(buf); size_t num_bytes = 0; while (num_bytes < count) { ssize_t len = FailureRetry([fd, p = buf0 + num_bytes, n = count - num_bytes, m = static_cast<off_t>(offset + num_bytes)] { return pread(fd, p, n, m); }); if (len < 0) { // There was an error other than EINTR. return -1; } if (len == 0) { // Reached EOF. break; } num_bytes += static_cast<size_t>(len); } NGLOG_SAFE_ASSERT(num_bytes <= count); return static_cast<ssize_t>(num_bytes); }
O2
cpp
nglog::tools::ReadFromOffset(int, void*, unsigned long, unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp testl %edi, %edi js 0x1c161 testq %rdx, %rdx js 0x1c161 movl %edi, %ebp xorl %r12d, %r12d movq %rdx, 0x10(%rsp) movq %rsi, 0x8(%rsp) movq %rdx, %r13 subq %r12, %r13 jbe 0x1c159 leaq (%rsi,%r12), %r14 movq %rcx, %rbx leaq (%r12,%rcx), %r15 movl %ebp, %edi movq %r14, %rsi movq %r13, %rdx movq %r15, %rcx callq 0x76e0 cmpq $-0x1, %rax jne 0x1c126 callq 0x7040 cmpl $0x4, (%rax) je 0x1c104 jmp 0x1c166 xorl %ecx, %ecx testq %rax, %rax sete %cl leal (%rcx,%rcx,2), %edi movl $0x0, %ecx cmovleq %rcx, %rax pushq $0x1 popq %rcx cmovsl %ecx, %edi addq %rax, %r12 testl %edi, %edi movq %rbx, %rcx movq 0x10(%rsp), %rdx movq 0x8(%rsp), %rsi je 0x1c0f1 cmpl $0x3, %edi jne 0x1c166 movq %r12, %rax cmpq %rdx, %r12 jbe 0x1c169 callq 0x7310 pushq $-0x1 popq %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN5nglog5toolsL14ReadFromOffsetEiPvmm: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h test edi, edi js loc_1C161 test rdx, rdx js short loc_1C161 mov ebp, edi xor r12d, r12d mov [rsp+48h+var_38], rdx mov [rsp+48h+var_40], rsi loc_1C0F1: mov r13, rdx sub r13, r12 jbe short loc_1C159 lea r14, [rsi+r12] mov rbx, rcx lea r15, [r12+rcx] loc_1C104: mov edi, ebp mov rsi, r14 mov rdx, r13 mov rcx, r15 call _pread cmp rax, 0FFFFFFFFFFFFFFFFh jnz short loc_1C126 call ___errno_location cmp dword ptr [rax], 4 jz short loc_1C104 jmp short loc_1C166 loc_1C126: xor ecx, ecx test rax, rax setz cl lea edi, [rcx+rcx*2] mov ecx, 0 cmovle rax, rcx push 1 pop rcx cmovs edi, ecx add r12, rax test edi, edi mov rcx, rbx mov rdx, [rsp+48h+var_38] mov rsi, [rsp+48h+var_40] jz short loc_1C0F1 cmp edi, 3 jnz short loc_1C166 loc_1C159: mov rax, r12 cmp r12, rdx jbe short loc_1C169 loc_1C161: call _abort loc_1C166: push 0FFFFFFFFFFFFFFFFh pop rax loc_1C169: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long nglog::tools::ReadFromOffset(unsigned long long this, long long a2, char *a3, long long a4) { unsigned int v4; // ebp unsigned long long v5; // r12 char *v6; // r13 long long v7; // rbx long long v8; // r15 long long v9; // rax bool v10; // sf unsigned long long result; // rax long long v12; // [rsp+8h] [rbp-40h] char *v13; // [rsp+10h] [rbp-38h] if ( (this & 0x80000000) != 0LL || (long long)a3 < 0 ) LABEL_16: abort(this); v4 = this; v5 = 0LL; v13 = a3; v12 = a2; do { v6 = &a3[-v5]; if ( (unsigned long long)a3 <= v5 ) goto LABEL_15; v7 = a4; v8 = v5 + a4; while ( 1 ) { v9 = pread(v4, a2 + v5, v6, v8); if ( v9 != -1 ) break; if ( *(_DWORD *)__errno_location(v4) != 4 ) return -1LL; } v10 = v9 < 0; this = 3 * (unsigned int)(v9 == 0); if ( v9 <= 0 ) v9 = 0LL; if ( v10 ) this = 1LL; v5 += v9; a4 = v7; a3 = v13; a2 = v12; } while ( !(_DWORD)this ); if ( (_DWORD)this != 3 ) return -1LL; LABEL_15: result = v5; if ( v5 > (unsigned long long)a3 ) goto LABEL_16; return result; }
ReadFromOffset: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 TEST EDI,EDI JS 0x0011c161 TEST RDX,RDX JS 0x0011c161 MOV EBP,EDI XOR R12D,R12D MOV qword ptr [RSP + 0x10],RDX MOV qword ptr [RSP + 0x8],RSI LAB_0011c0f1: MOV R13,RDX SUB R13,R12 JBE 0x0011c159 LEA R14,[RSI + R12*0x1] MOV RBX,RCX LEA R15,[R12 + RCX*0x1] LAB_0011c104: MOV EDI,EBP MOV RSI,R14 MOV RDX,R13 MOV RCX,R15 CALL 0x001076e0 CMP RAX,-0x1 JNZ 0x0011c126 CALL 0x00107040 CMP dword ptr [RAX],0x4 JZ 0x0011c104 JMP 0x0011c166 LAB_0011c126: XOR ECX,ECX TEST RAX,RAX SETZ CL LEA EDI,[RCX + RCX*0x2] MOV ECX,0x0 CMOVLE RAX,RCX PUSH 0x1 POP RCX CMOVS EDI,ECX ADD R12,RAX TEST EDI,EDI MOV RCX,RBX MOV RDX,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x8] JZ 0x0011c0f1 CMP EDI,0x3 JNZ 0x0011c166 LAB_0011c159: MOV RAX,R12 CMP R12,RDX JBE 0x0011c169 LAB_0011c161: CALL 0x00107310 LAB_0011c166: PUSH -0x1 POP RAX LAB_0011c169: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nglog::tools::ReadFromOffset(int, void*, unsigned long, unsigned long) */ ulong nglog::tools::ReadFromOffset(int param_1,void *param_2,ulong param_3,ulong param_4) { long lVar1; int *piVar2; char cVar3; ulong uVar4; bool bVar5; if ((-1 < param_1) && (-1 < (long)param_3)) { uVar4 = 0; do { if (param_3 < uVar4 || param_3 - uVar4 == 0) goto LAB_0011c159; while (lVar1 = pread(param_1,(void *)((long)param_2 + uVar4),param_3 - uVar4,uVar4 + param_4), lVar1 == -1) { piVar2 = __errno_location(); if (*piVar2 != 4) goto LAB_0011c166; } bVar5 = lVar1 < 0; cVar3 = (lVar1 == 0) * '\x03'; if (lVar1 < 1) { lVar1 = 0; } if (bVar5) { cVar3 = '\x01'; } uVar4 = uVar4 + lVar1; } while (cVar3 == '\0'); if (cVar3 == '\x03') { LAB_0011c159: if (param_3 < uVar4) goto LAB_0011c161; } else { LAB_0011c166: uVar4 = 0xffffffffffffffff; } return uVar4; } LAB_0011c161: /* WARNING: Subroutine does not return */ abort(); }
17,649
nglog::tools::ReadFromOffset(int, void*, unsigned long, unsigned long)
ng-log[P]ng-log/src/symbolize.cc
static ssize_t ReadFromOffset(const int fd, void* buf, const size_t count, const size_t offset) { NGLOG_SAFE_ASSERT(fd >= 0); NGLOG_SAFE_ASSERT(count <= static_cast<size_t>(std::numeric_limits<ssize_t>::max())); char* buf0 = reinterpret_cast<char*>(buf); size_t num_bytes = 0; while (num_bytes < count) { ssize_t len = FailureRetry([fd, p = buf0 + num_bytes, n = count - num_bytes, m = static_cast<off_t>(offset + num_bytes)] { return pread(fd, p, n, m); }); if (len < 0) { // There was an error other than EINTR. return -1; } if (len == 0) { // Reached EOF. break; } num_bytes += static_cast<size_t>(len); } NGLOG_SAFE_ASSERT(num_bytes <= count); return static_cast<ssize_t>(num_bytes); }
O3
cpp
nglog::tools::ReadFromOffset(int, void*, unsigned long, unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp testl %edi, %edi js 0x20686 testq %rdx, %rdx js 0x20686 movl %edi, %ebp xorl %r14d, %r14d movq %rdx, 0x10(%rsp) movq %rsi, 0x8(%rsp) movq %rdx, %r13 subq %r14, %r13 jbe 0x20681 leaq (%rsi,%r14), %r15 movq %rcx, %rbx leaq (%r14,%rcx), %r12 movl %ebp, %edi movq %r15, %rsi movq %r13, %rdx movq %r12, %rcx callq 0x7670 cmpq $-0x1, %rax jne 0x2064c callq 0x7040 cmpl $0x4, (%rax) je 0x2062a jmp 0x2068b xorl %ecx, %ecx testq %rax, %rax sete %cl leal (%rcx,%rcx,2), %edi movl $0x0, %ecx cmovleq %rcx, %rax movl $0x1, %ecx cmovsl %ecx, %edi addq %rax, %r14 testl %edi, %edi movq %rbx, %rcx movq 0x10(%rsp), %rdx movq 0x8(%rsp), %rsi je 0x20617 cmpl $0x3, %edi jne 0x2068b cmpq %rdx, %r14 jbe 0x20692 callq 0x72b0 movq $-0x1, %r14 movq %r14, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN5nglog5toolsL14ReadFromOffsetEiPvmm: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h test edi, edi js loc_20686 test rdx, rdx js short loc_20686 mov ebp, edi xor r14d, r14d mov [rsp+48h+var_38], rdx mov [rsp+48h+var_40], rsi loc_20617: mov r13, rdx sub r13, r14 jbe short loc_20681 lea r15, [rsi+r14] mov rbx, rcx lea r12, [r14+rcx] loc_2062A: mov edi, ebp mov rsi, r15 mov rdx, r13 mov rcx, r12 call _pread cmp rax, 0FFFFFFFFFFFFFFFFh jnz short loc_2064C call ___errno_location cmp dword ptr [rax], 4 jz short loc_2062A jmp short loc_2068B loc_2064C: xor ecx, ecx test rax, rax setz cl lea edi, [rcx+rcx*2] mov ecx, 0 cmovle rax, rcx mov ecx, 1 cmovs edi, ecx add r14, rax test edi, edi mov rcx, rbx mov rdx, [rsp+48h+var_38] mov rsi, [rsp+48h+var_40] jz short loc_20617 cmp edi, 3 jnz short loc_2068B loc_20681: cmp r14, rdx jbe short loc_20692 loc_20686: call _abort loc_2068B: mov r14, 0FFFFFFFFFFFFFFFFh loc_20692: mov rax, r14 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long nglog::tools::ReadFromOffset(unsigned long long this, long long a2, char *a3, long long a4) { unsigned int v4; // ebp unsigned long long v5; // r14 char *v6; // r13 long long v7; // rbx long long v8; // r12 long long v9; // rax bool v10; // sf long long v12; // [rsp+8h] [rbp-40h] char *v13; // [rsp+10h] [rbp-38h] if ( (this & 0x80000000) != 0LL || (long long)a3 < 0 ) LABEL_16: abort(this); v4 = this; v5 = 0LL; v13 = a3; v12 = a2; do { v6 = &a3[-v5]; if ( (unsigned long long)a3 <= v5 ) goto LABEL_15; v7 = a4; v8 = v5 + a4; while ( 1 ) { v9 = pread(v4, a2 + v5, v6, v8); if ( v9 != -1 ) break; if ( *(_DWORD *)__errno_location(v4) != 4 ) return -1LL; } v10 = v9 < 0; this = 3 * (unsigned int)(v9 == 0); if ( v9 <= 0 ) v9 = 0LL; if ( v10 ) this = 1LL; v5 += v9; a4 = v7; a3 = v13; a2 = v12; } while ( !(_DWORD)this ); if ( (_DWORD)this != 3 ) return -1LL; LABEL_15: if ( v5 > (unsigned long long)a3 ) goto LABEL_16; return v5; }
ReadFromOffset: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 TEST EDI,EDI JS 0x00120686 TEST RDX,RDX JS 0x00120686 MOV EBP,EDI XOR R14D,R14D MOV qword ptr [RSP + 0x10],RDX MOV qword ptr [RSP + 0x8],RSI LAB_00120617: MOV R13,RDX SUB R13,R14 JBE 0x00120681 LEA R15,[RSI + R14*0x1] MOV RBX,RCX LEA R12,[R14 + RCX*0x1] LAB_0012062a: MOV EDI,EBP MOV RSI,R15 MOV RDX,R13 MOV RCX,R12 CALL 0x00107670 CMP RAX,-0x1 JNZ 0x0012064c CALL 0x00107040 CMP dword ptr [RAX],0x4 JZ 0x0012062a JMP 0x0012068b LAB_0012064c: XOR ECX,ECX TEST RAX,RAX SETZ CL LEA EDI,[RCX + RCX*0x2] MOV ECX,0x0 CMOVLE RAX,RCX MOV ECX,0x1 CMOVS EDI,ECX ADD R14,RAX TEST EDI,EDI MOV RCX,RBX MOV RDX,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x8] JZ 0x00120617 CMP EDI,0x3 JNZ 0x0012068b LAB_00120681: CMP R14,RDX JBE 0x00120692 LAB_00120686: CALL 0x001072b0 LAB_0012068b: MOV R14,-0x1 LAB_00120692: MOV RAX,R14 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nglog::tools::ReadFromOffset(int, void*, unsigned long, unsigned long) */ ulong nglog::tools::ReadFromOffset(int param_1,void *param_2,ulong param_3,ulong param_4) { char cVar1; long lVar2; int *piVar3; ulong uVar4; bool bVar5; bool bVar6; if ((-1 < param_1) && (-1 < (long)param_3)) { uVar4 = 0; do { if (param_3 < uVar4 || param_3 - uVar4 == 0) goto LAB_00120681; while (lVar2 = pread(param_1,(void *)((long)param_2 + uVar4),param_3 - uVar4,uVar4 + param_4), lVar2 == -1) { piVar3 = __errno_location(); if (*piVar3 != 4) goto LAB_0012068b; } bVar6 = lVar2 < 0; bVar5 = lVar2 == 0; if (lVar2 < 1) { lVar2 = 0; } cVar1 = bVar5 * '\x03'; if (bVar6) { cVar1 = '\x01'; } uVar4 = uVar4 + lVar2; } while (cVar1 == '\0'); if (cVar1 == '\x03') { LAB_00120681: if (param_3 < uVar4) goto LAB_00120686; } else { LAB_0012068b: uVar4 = 0xffffffffffffffff; } return uVar4; } LAB_00120686: /* WARNING: Subroutine does not return */ abort(); }
17,650
machine_state_add_deferred
qoraal-tictactoe/build_O0/_deps/qoraal_engine-src/src/tool/machine.c
bool machine_state_add_deferred (STATEMACHINE_STATE_T* state, STATE_DATA_T value ) { if (!state) return 0 ; uint32_t start = state->events + state->deferred++ ; uint32_t count = state->entry + state->exit + state->action ; if (count) _shift_data(state, start, count) ; state->data[start] = value ; state->size += sizeof(STATE_DATA_T) ; return 1 ; }
O0
c
machine_state_add_deferred: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %esi, -0x5(%rbp) movq %rdi, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) jne 0xb69c movb $0x0, -0x1(%rbp) jmp 0xb712 movq -0x10(%rbp), %rax movzbl 0x24(%rax), %eax movq -0x10(%rbp), %rdx movb 0x25(%rdx), %cl movb %cl, %sil addb $0x1, %sil movb %sil, 0x25(%rdx) movzbl %cl, %ecx addl %ecx, %eax movl %eax, -0x14(%rbp) movq -0x10(%rbp), %rax movzbl 0x26(%rax), %eax movq -0x10(%rbp), %rcx movzbl 0x27(%rcx), %ecx addl %ecx, %eax movq -0x10(%rbp), %rcx movzbl 0x28(%rcx), %ecx addl %ecx, %eax movl %eax, -0x18(%rbp) cmpl $0x0, -0x18(%rbp) je 0xb6f2 movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi movl -0x18(%rbp), %edx callq 0xb580 movq -0x10(%rbp), %rax movl -0x14(%rbp), %ecx movl -0x5(%rbp), %edx movl %edx, 0x2a(%rax,%rcx,4) movq -0x10(%rbp), %rax movzwl (%rax), %ecx addq $0x4, %rcx movw %cx, (%rax) movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x20, %rsp popq %rbp retq nopl (%rax)
machine_state_add_deferred: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_5], esi mov [rbp+var_10], rdi cmp [rbp+var_10], 0 jnz short loc_B69C mov [rbp+var_1], 0 jmp short loc_B712 loc_B69C: mov rax, [rbp+var_10] movzx eax, byte ptr [rax+24h] mov rdx, [rbp+var_10] mov cl, [rdx+25h] mov sil, cl add sil, 1 mov [rdx+25h], sil movzx ecx, cl add eax, ecx mov [rbp+var_14], eax mov rax, [rbp+var_10] movzx eax, byte ptr [rax+26h] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx+27h] add eax, ecx mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx+28h] add eax, ecx mov [rbp+var_18], eax cmp [rbp+var_18], 0 jz short loc_B6F2 mov rdi, [rbp+var_10] mov esi, [rbp+var_14] mov edx, [rbp+var_18] call _shift_data loc_B6F2: mov rax, [rbp+var_10] mov ecx, [rbp+var_14] mov edx, [rbp+var_5] mov [rax+rcx*4+2Ah], edx mov rax, [rbp+var_10] movzx ecx, word ptr [rax] add rcx, 4 mov [rax], cx mov [rbp+var_1], 1 loc_B712: mov al, [rbp+var_1] and al, 1 add rsp, 20h pop rbp retn
char machine_state_add_deferred(long long a1, int a2) { int v2; // eax unsigned __int8 v3; // cl int v5; // [rsp+8h] [rbp-18h] unsigned int v6; // [rsp+Ch] [rbp-14h] if ( !a1 ) return 0; v2 = *(unsigned __int8 *)(a1 + 36); v3 = *(_BYTE *)(a1 + 37); *(_BYTE *)(a1 + 37) = v3 + 1; v6 = v3 + v2; v5 = *(unsigned __int8 *)(a1 + 40) + *(unsigned __int8 *)(a1 + 39) + *(unsigned __int8 *)(a1 + 38); if ( v5 ) shift_data(a1, v6, v5); *(_DWORD *)(a1 + 4LL * v6 + 42) = a2; *(_WORD *)a1 += 4; return 1; }
machine_state_add_deferred: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0x5],ESI MOV qword ptr [RBP + -0x10],RDI CMP qword ptr [RBP + -0x10],0x0 JNZ 0x0010b69c MOV byte ptr [RBP + -0x1],0x0 JMP 0x0010b712 LAB_0010b69c: MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x24] MOV RDX,qword ptr [RBP + -0x10] MOV CL,byte ptr [RDX + 0x25] MOV SIL,CL ADD SIL,0x1 MOV byte ptr [RDX + 0x25],SIL MOVZX ECX,CL ADD EAX,ECX MOV dword ptr [RBP + -0x14],EAX MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x26] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX + 0x27] ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX + 0x28] ADD EAX,ECX MOV dword ptr [RBP + -0x18],EAX CMP dword ptr [RBP + -0x18],0x0 JZ 0x0010b6f2 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] MOV EDX,dword ptr [RBP + -0x18] CALL 0x0010b580 LAB_0010b6f2: MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x14] MOV EDX,dword ptr [RBP + -0x5] MOV dword ptr [RAX + RCX*0x4 + 0x2a],EDX MOV RAX,qword ptr [RBP + -0x10] MOVZX ECX,word ptr [RAX] ADD RCX,0x4 MOV word ptr [RAX],CX MOV byte ptr [RBP + -0x1],0x1 LAB_0010b712: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x20 POP RBP RET
int1 machine_state_add_deferred(short *param_1,int4 param_2) { byte bVar1; uint uVar2; int iVar3; int1 local_9; if (param_1 == (short *)0x0) { local_9 = 0; } else { bVar1 = *(byte *)((long)param_1 + 0x25); *(byte *)((long)param_1 + 0x25) = bVar1 + 1; uVar2 = (uint)*(byte *)(param_1 + 0x12) + (uint)bVar1; iVar3 = (uint)*(byte *)(param_1 + 0x13) + (uint)*(byte *)((long)param_1 + 0x27) + (uint)*(byte *)(param_1 + 0x14); if (iVar3 != 0) { _shift_data(param_1,uVar2,iVar3); } *(int4 *)(param_1 + (ulong)uVar2 * 2 + 0x15) = param_2; *param_1 = *param_1 + 4; local_9 = 1; } return local_9; }
17,651
js_regexp_test
bluesky950520[P]quickjs/quickjs.c
static JSValue js_regexp_test(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue val; BOOL ret; val = JS_RegExpExec(ctx, this_val, argv[0]); if (JS_IsException(val)) return JS_EXCEPTION; ret = !JS_IsNull(val); JS_FreeValue(ctx, val); return js_bool(ret); }
O1
c
js_regexp_test: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq (%r8), %rcx movq 0x8(%r8), %r8 callq 0x4f7bd movl %edx, %ecx cmpq $0x6, %rcx jne 0x4d007 movl $0x6, %edx xorl %r14d, %r14d jmp 0x4d022 xorl %r14d, %r14d cmpl $0x2, %ecx setne %r14b movq 0x18(%rbx), %rdi movq %rax, %rsi callq 0x21922 movl $0x1, %edx movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
js_regexp_test: push r14 push rbx push rax mov rbx, rdi mov rcx, [r8] mov r8, [r8+8] call JS_RegExpExec mov ecx, edx cmp rcx, 6 jnz short loc_4D007 mov edx, 6 xor r14d, r14d jmp short loc_4D022 loc_4D007: xor r14d, r14d cmp ecx, 2 setnz r14b mov rdi, [rbx+18h] mov rsi, rax call JS_FreeValueRT mov edx, 1 loc_4D022: mov rax, r14 add rsp, 8 pop rbx pop r14 retn
_BOOL8 js_regexp_test(long long a1, long long a2, long long a3, long long a4, _QWORD *a5) { _DWORD *v5; // rax long long v6; // rdx _BOOL8 v7; // r14 v5 = (_DWORD *)JS_RegExpExec(a1, a2, a3, *a5, a5[1]); if ( (unsigned int)v6 == 6LL ) return 0LL; v7 = (_DWORD)v6 != 2; JS_FreeValueRT(*(_QWORD *)(a1 + 24), v5, v6); return v7; }
js_regexp_test: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV RCX,qword ptr [R8] MOV R8,qword ptr [R8 + 0x8] CALL 0x0014f7bd MOV ECX,EDX CMP RCX,0x6 JNZ 0x0014d007 MOV EDX,0x6 XOR R14D,R14D JMP 0x0014d022 LAB_0014d007: XOR R14D,R14D CMP ECX,0x2 SETNZ R14B MOV RDI,qword ptr [RBX + 0x18] MOV RSI,RAX CALL 0x00121922 MOV EDX,0x1 LAB_0014d022: MOV RAX,R14 ADD RSP,0x8 POP RBX POP R14 RET
bool js_regexp_test(long param_1) { bool bVar1; int1 auVar2 [16]; auVar2 = JS_RegExpExec(); bVar1 = (auVar2._8_8_ & 0xffffffff) != 6; if (bVar1) { JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar2._0_8_); } return bVar1 && auVar2._8_4_ != 2; }
17,652
js_regexp_test
bluesky950520[P]quickjs/quickjs.c
static JSValue js_regexp_test(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue val; BOOL ret; val = JS_RegExpExec(ctx, this_val, argv[0]); if (JS_IsException(val)) return JS_EXCEPTION; ret = !JS_IsNull(val); JS_FreeValue(ctx, val); return js_bool(ret); }
O3
c
js_regexp_test: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq (%r8), %rcx movq 0x8(%r8), %r8 callq 0x5169b movl %edx, %r14d cmpq $0x6, %r14 jne 0x4ecdd movl $0x6, %edx xorl %eax, %eax jmp 0x4ed08 cmpl $-0x9, %edx jb 0x4ecfa movq 0x18(%rbx), %rdi movl (%rax), %ecx leal -0x1(%rcx), %esi movl %esi, (%rax) cmpl $0x1, %ecx jg 0x4ecfa movq %rax, %rsi callq 0x259d8 xorl %eax, %eax cmpl $0x2, %r14d setne %al movl $0x1, %edx addq $0x8, %rsp popq %rbx popq %r14 retq
js_regexp_test: push r14 push rbx push rax mov rbx, rdi mov rcx, [r8] mov r8, [r8+8] call JS_RegExpExec mov r14d, edx cmp r14, 6 jnz short loc_4ECDD mov edx, 6 xor eax, eax jmp short loc_4ED08 loc_4ECDD: cmp edx, 0FFFFFFF7h jb short loc_4ECFA mov rdi, [rbx+18h] mov ecx, [rax] lea esi, [rcx-1] mov [rax], esi cmp ecx, 1 jg short loc_4ECFA mov rsi, rax call js_free_value_rt loc_4ECFA: xor eax, eax cmp r14d, 2 setnz al mov edx, 1 loc_4ED08: add rsp, 8 pop rbx pop r14 retn
_BOOL8 js_regexp_test(long long a1, long long a2, long long a3, long long a4, _QWORD *a5) { _QWORD *v5; // rax long long v6; // rdx long long v7; // r8 long long v8; // r9 int v9; // r14d long long v11; // rdi long long v12; // rcx v5 = (_QWORD *)JS_RegExpExec(a1, a2, a3, *a5, a5[1]); v9 = v6; if ( (unsigned int)v6 == 6LL ) return 0LL; if ( (unsigned int)v6 >= 0xFFFFFFF7 ) { v11 = *(_QWORD *)(a1 + 24); v12 = *(unsigned int *)v5; *(_DWORD *)v5 = v12 - 1; if ( (int)v12 <= 1 ) js_free_value_rt(v11, v5, v6, v12, v7, v8); } return v9 != 2; }
js_regexp_test: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV RCX,qword ptr [R8] MOV R8,qword ptr [R8 + 0x8] CALL 0x0015169b MOV R14D,EDX CMP R14,0x6 JNZ 0x0014ecdd MOV EDX,0x6 XOR EAX,EAX JMP 0x0014ed08 LAB_0014ecdd: CMP EDX,-0x9 JC 0x0014ecfa MOV RDI,qword ptr [RBX + 0x18] MOV ECX,dword ptr [RAX] LEA ESI,[RCX + -0x1] MOV dword ptr [RAX],ESI CMP ECX,0x1 JG 0x0014ecfa MOV RSI,RAX CALL 0x001259d8 LAB_0014ecfa: XOR EAX,EAX CMP R14D,0x2 SETNZ AL MOV EDX,0x1 LAB_0014ed08: ADD RSP,0x8 POP RBX POP R14 RET
bool js_regexp_test(long param_1) { int iVar1; int8 uVar2; int *piVar3; bool bVar4; int1 auVar5 [16]; auVar5 = JS_RegExpExec(); piVar3 = auVar5._0_8_; if ((auVar5._8_8_ & 0xffffffff) == 6) { bVar4 = false; } else { if (0xfffffff6 < auVar5._8_4_) { uVar2 = *(int8 *)(param_1 + 0x18); iVar1 = *piVar3; *piVar3 = iVar1 + -1; if (iVar1 < 2) { js_free_value_rt(uVar2,piVar3); } } bVar4 = auVar5._8_4_ != 2; } return bVar4; }
17,653
my_rw_unlock
eloqsql/mysys/thr_rwlock.c
int my_rw_unlock(my_rw_lock_t *rwp) { DBUG_PRINT("rw_unlock", ("state: %d waiters: %d", rwp->state, rwp->waiters)); pthread_mutex_lock(&rwp->lock); DBUG_ASSERT(rwp->state != 0); if (rwp->state == -1) /* writer releasing */ { my_rw_lock_assert_write_owner(rwp); rwp->state= 0; /* mark as available */ #ifdef SAFE_MUTEX rwp->write_thread= 0; #endif if ( rwp->waiters ) /* writers queued */ pthread_cond_signal( &rwp->writers ); else pthread_cond_broadcast( &rwp->readers ); } else { if ( --rwp->state == 0 && /* no more readers */ rwp->waiters) pthread_cond_signal( &rwp->writers ); } pthread_mutex_unlock( &rwp->lock ); return(0); }
O0
c
my_rw_unlock: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) jmp 0x3a0ce movq -0x8(%rbp), %rdi callq 0x254c0 jmp 0x3a0d9 movq -0x8(%rbp), %rax cmpl $-0x1, 0x88(%rax) jne 0x3a11f movq -0x8(%rbp), %rax movl $0x0, 0x88(%rax) movq -0x8(%rbp), %rax cmpl $0x0, 0x8c(%rax) je 0x3a110 movq -0x8(%rbp), %rdi addq $0x58, %rdi callq 0x25030 jmp 0x3a11d movq -0x8(%rbp), %rdi addq $0x28, %rdi callq 0x25100 jmp 0x3a153 movq -0x8(%rbp), %rcx movl 0x88(%rcx), %eax addl $-0x1, %eax movl %eax, 0x88(%rcx) cmpl $0x0, %eax jne 0x3a151 movq -0x8(%rbp), %rax cmpl $0x0, 0x8c(%rax) je 0x3a151 movq -0x8(%rbp), %rdi addq $0x58, %rdi callq 0x25030 jmp 0x3a153 movq -0x8(%rbp), %rdi callq 0x25240 xorl %eax, %eax addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_rw_unlock: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi jmp short $+2 loc_3A0CE: mov rdi, [rbp+var_8] call _pthread_mutex_lock jmp short $+2 loc_3A0D9: mov rax, [rbp+var_8] cmp dword ptr [rax+88h], 0FFFFFFFFh jnz short loc_3A11F mov rax, [rbp+var_8] mov dword ptr [rax+88h], 0 mov rax, [rbp+var_8] cmp dword ptr [rax+8Ch], 0 jz short loc_3A110 mov rdi, [rbp+var_8] add rdi, 58h ; 'X' call _pthread_cond_signal jmp short loc_3A11D loc_3A110: mov rdi, [rbp+var_8] add rdi, 28h ; '(' call _pthread_cond_broadcast loc_3A11D: jmp short loc_3A153 loc_3A11F: mov rcx, [rbp+var_8] mov eax, [rcx+88h] add eax, 0FFFFFFFFh mov [rcx+88h], eax cmp eax, 0 jnz short loc_3A151 mov rax, [rbp+var_8] cmp dword ptr [rax+8Ch], 0 jz short loc_3A151 mov rdi, [rbp+var_8] add rdi, 58h ; 'X' call _pthread_cond_signal loc_3A151: jmp short $+2 loc_3A153: mov rdi, [rbp+var_8] call _pthread_mutex_unlock xor eax, eax add rsp, 10h pop rbp retn
long long my_rw_unlock(long long a1) { int v1; // eax pthread_mutex_lock(a1); if ( *(_DWORD *)(a1 + 136) == -1 ) { *(_DWORD *)(a1 + 136) = 0; if ( !*(_DWORD *)(a1 + 140) ) { pthread_cond_broadcast(a1 + 40); goto LABEL_7; } LABEL_6: pthread_cond_signal(a1 + 88); goto LABEL_7; } v1 = *(_DWORD *)(a1 + 136) - 1; *(_DWORD *)(a1 + 136) = v1; if ( !v1 && *(_DWORD *)(a1 + 140) ) goto LABEL_6; LABEL_7: pthread_mutex_unlock(a1); return 0LL; }
my_rw_unlock: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI JMP 0x0013a0ce LAB_0013a0ce: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001254c0 JMP 0x0013a0d9 LAB_0013a0d9: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x88],-0x1 JNZ 0x0013a11f MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x88],0x0 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x8c],0x0 JZ 0x0013a110 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x58 CALL 0x00125030 JMP 0x0013a11d LAB_0013a110: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x28 CALL 0x00125100 LAB_0013a11d: JMP 0x0013a153 LAB_0013a11f: MOV RCX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RCX + 0x88] ADD EAX,-0x1 MOV dword ptr [RCX + 0x88],EAX CMP EAX,0x0 JNZ 0x0013a151 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x8c],0x0 JZ 0x0013a151 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x58 CALL 0x00125030 LAB_0013a151: JMP 0x0013a153 LAB_0013a153: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00125240 XOR EAX,EAX ADD RSP,0x10 POP RBP RET
int8 my_rw_unlock(pthread_mutex_t *param_1) { int iVar1; pthread_mutex_lock(param_1); if (*(int *)((long)param_1 + 0x88) == -1) { *(int4 *)((long)param_1 + 0x88) = 0; if (*(int *)((long)param_1 + 0x8c) == 0) { pthread_cond_broadcast((pthread_cond_t *)(param_1 + 1)); } else { pthread_cond_signal((pthread_cond_t *)((long)param_1 + 0x58)); } } else { iVar1 = *(int *)((long)param_1 + 0x88) + -1; *(int *)((long)param_1 + 0x88) = iVar1; if ((iVar1 == 0) && (*(int *)((long)param_1 + 0x8c) != 0)) { pthread_cond_signal((pthread_cond_t *)((long)param_1 + 0x58)); } } pthread_mutex_unlock(param_1); return 0; }
17,654
my_rw_unlock
eloqsql/mysys/thr_rwlock.c
int my_rw_unlock(my_rw_lock_t *rwp) { DBUG_PRINT("rw_unlock", ("state: %d waiters: %d", rwp->state, rwp->waiters)); pthread_mutex_lock(&rwp->lock); DBUG_ASSERT(rwp->state != 0); if (rwp->state == -1) /* writer releasing */ { my_rw_lock_assert_write_owner(rwp); rwp->state= 0; /* mark as available */ #ifdef SAFE_MUTEX rwp->write_thread= 0; #endif if ( rwp->waiters ) /* writers queued */ pthread_cond_signal( &rwp->writers ); else pthread_cond_broadcast( &rwp->readers ); } else { if ( --rwp->state == 0 && /* no more readers */ rwp->waiters) pthread_cond_signal( &rwp->writers ); } pthread_mutex_unlock( &rwp->lock ); return(0); }
O3
c
my_rw_unlock: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx callq 0x24510 movl 0x88(%rbx), %eax cmpl $-0x1, %eax je 0x320b4 decl %eax movl %eax, 0x88(%rbx) jne 0x320db cmpl $0x0, 0x8c(%rbx) jne 0x320c7 jmp 0x320db movl $0x0, 0x88(%rbx) cmpl $0x0, 0x8c(%rbx) je 0x320d2 leaq 0x58(%rbx), %rdi callq 0x24040 jmp 0x320db leaq 0x28(%rbx), %rdi callq 0x24110 movq %rbx, %rdi callq 0x24260 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %rbp retq
my_rw_unlock: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi call _pthread_mutex_lock mov eax, [rbx+88h] cmp eax, 0FFFFFFFFh jz short loc_320B4 dec eax mov [rbx+88h], eax jnz short loc_320DB cmp dword ptr [rbx+8Ch], 0 jnz short loc_320C7 jmp short loc_320DB loc_320B4: mov dword ptr [rbx+88h], 0 cmp dword ptr [rbx+8Ch], 0 jz short loc_320D2 loc_320C7: lea rdi, [rbx+58h] call _pthread_cond_signal jmp short loc_320DB loc_320D2: lea rdi, [rbx+28h] call _pthread_cond_broadcast loc_320DB: mov rdi, rbx call _pthread_mutex_unlock xor eax, eax add rsp, 8 pop rbx pop rbp retn
long long my_rw_unlock(long long a1) { int v1; // eax int v2; // eax pthread_mutex_lock(a1); v1 = *(_DWORD *)(a1 + 136); if ( v1 == -1 ) { *(_DWORD *)(a1 + 136) = 0; if ( !*(_DWORD *)(a1 + 140) ) { pthread_cond_broadcast(a1 + 40); goto LABEL_8; } goto LABEL_6; } v2 = v1 - 1; *(_DWORD *)(a1 + 136) = v2; if ( !v2 && *(_DWORD *)(a1 + 140) ) LABEL_6: pthread_cond_signal(a1 + 88); LABEL_8: pthread_mutex_unlock(a1); return 0LL; }
my_rw_unlock: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x00124510 MOV EAX,dword ptr [RBX + 0x88] CMP EAX,-0x1 JZ 0x001320b4 DEC EAX MOV dword ptr [RBX + 0x88],EAX JNZ 0x001320db CMP dword ptr [RBX + 0x8c],0x0 JNZ 0x001320c7 JMP 0x001320db LAB_001320b4: MOV dword ptr [RBX + 0x88],0x0 CMP dword ptr [RBX + 0x8c],0x0 JZ 0x001320d2 LAB_001320c7: LEA RDI,[RBX + 0x58] CALL 0x00124040 JMP 0x001320db LAB_001320d2: LEA RDI,[RBX + 0x28] CALL 0x00124110 LAB_001320db: MOV RDI,RBX CALL 0x00124260 XOR EAX,EAX ADD RSP,0x8 POP RBX POP RBP RET
int8 my_rw_unlock(pthread_mutex_t *param_1) { int iVar1; pthread_mutex_lock(param_1); if (*(int *)((long)param_1 + 0x88) == -1) { *(int4 *)((long)param_1 + 0x88) = 0; if (*(int *)((long)param_1 + 0x8c) == 0) { pthread_cond_broadcast((pthread_cond_t *)(param_1 + 1)); goto LAB_001320db; } } else { iVar1 = *(int *)((long)param_1 + 0x88) + -1; *(int *)((long)param_1 + 0x88) = iVar1; if ((iVar1 != 0) || (*(int *)((long)param_1 + 0x8c) == 0)) goto LAB_001320db; } pthread_cond_signal((pthread_cond_t *)((long)param_1 + 0x58)); LAB_001320db: pthread_mutex_unlock(param_1); return 0; }
17,655
minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const
monkey531[P]llama/common/./minja.hpp
std::unique_ptr<std::string> parseString() { auto doParse = [&](char quote) -> std::unique_ptr<std::string> { if (it == end || *it != quote) return nullptr; std::string result; bool escape = false; for (++it; it != end; ++it) { if (escape) { escape = false; switch (*it) { case 'n': result += '\n'; break; case 'r': result += '\r'; break; case 't': result += '\t'; break; case 'b': result += '\b'; break; case 'f': result += '\f'; break; case '\\': result += '\\'; break; default: if (*it == quote) { result += quote; } else { result += *it; } break; } } else if (*it == '\\') { escape = true; } else if (*it == quote) { ++it; return std::make_unique<std::string>(std::move(result)); } else { result += *it; } } return nullptr; }; consumeSpaces(); if (it == end) return nullptr; if (*it == '"') return doParse('"'); if (*it == '\'') return doParse('\''); return nullptr; }
O0
cpp
minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const: subq $0x78, %rsp movq %rdi, 0x10(%rsp) movb %dl, %al movq %rdi, %rcx movq %rcx, 0x18(%rsp) movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movb %al, 0x67(%rsp) movq 0x68(%rsp), %rax movq (%rax), %rsi movq %rsi, 0x20(%rsp) movq %rsi, %rdi addq $0x20, %rdi addq $0x18, %rsi callq 0x9d2b0 testb $0x1, %al jne 0xacafc movq 0x20(%rsp), %rdi addq $0x20, %rdi callq 0x9b390 movsbl (%rax), %eax movsbl 0x67(%rsp), %ecx cmpl %ecx, %eax je 0xacb0f movq 0x10(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0xaca60 jmp 0xacd36 leaq 0x40(%rsp), %rdi callq 0x504a0 movq 0x20(%rsp), %rdi movb $0x0, 0x3f(%rsp) addq $0x20, %rdi callq 0x9b3a0 movq 0x20(%rsp), %rsi movq %rsi, %rdi addq $0x20, %rdi addq $0x18, %rsi callq 0x76d70 testb $0x1, %al jne 0xacb4a jmp 0xacd16 testb $0x1, 0x3f(%rsp) je 0xacc7e movq 0x20(%rsp), %rdi movb $0x0, 0x3f(%rsp) addq $0x20, %rdi callq 0x9b390 movsbl (%rax), %eax addl $-0x5c, %eax movl %eax, %ecx movq %rcx, 0x8(%rsp) subl $0x18, %eax ja 0xacc2b movq 0x8(%rsp), %rax leaq 0x1156b6(%rip), %rcx # 0x1c2240 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x40(%rsp), %rdi movl $0xa, %esi callq 0x50a00 jmp 0xacba4 jmp 0xacc79 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) leaq 0x40(%rsp), %rdi callq 0x510c0 jmp 0xacd40 leaq 0x40(%rsp), %rdi movl $0xd, %esi callq 0x50a00 jmp 0xacbd7 jmp 0xacc79 leaq 0x40(%rsp), %rdi movl $0x9, %esi callq 0x50a00 jmp 0xacbed jmp 0xacc79 leaq 0x40(%rsp), %rdi movl $0x8, %esi callq 0x50a00 jmp 0xacc03 jmp 0xacc79 leaq 0x40(%rsp), %rdi movl $0xc, %esi callq 0x50a00 jmp 0xacc16 jmp 0xacc79 leaq 0x40(%rsp), %rdi movl $0x5c, %esi callq 0x50a00 jmp 0xacc29 jmp 0xacc79 movq 0x20(%rsp), %rdi addq $0x20, %rdi callq 0x9b390 movsbl (%rax), %eax movsbl 0x67(%rsp), %ecx cmpl %ecx, %eax jne 0xacc58 movsbl 0x67(%rsp), %esi leaq 0x40(%rsp), %rdi callq 0x50a00 jmp 0xacc56 jmp 0xacc77 movq 0x20(%rsp), %rdi addq $0x20, %rdi callq 0x9b390 movsbl (%rax), %esi leaq 0x40(%rsp), %rdi callq 0x50a00 jmp 0xacc75 jmp 0xacc77 jmp 0xacc79 jmp 0xacd01 movq 0x20(%rsp), %rdi addq $0x20, %rdi callq 0x9b390 movsbl (%rax), %eax cmpl $0x5c, %eax jne 0xacc9b movb $0x1, 0x3f(%rsp) jmp 0xaccff movq 0x20(%rsp), %rdi addq $0x20, %rdi callq 0x9b390 movsbl (%rax), %eax movsbl 0x67(%rsp), %ecx cmpl %ecx, %eax jne 0xaccde movq 0x20(%rsp), %rdi addq $0x20, %rdi callq 0x9b3a0 movq 0x10(%rsp), %rdi leaq 0x40(%rsp), %rsi callq 0xace00 jmp 0xaccd4 movl $0x1, 0x28(%rsp) jmp 0xacd2c movq 0x20(%rsp), %rdi addq $0x20, %rdi callq 0x9b390 movsbl (%rax), %esi leaq 0x40(%rsp), %rdi callq 0x50a00 jmp 0xaccfb jmp 0xaccfd jmp 0xaccff jmp 0xacd01 jmp 0xacd03 movq 0x20(%rsp), %rdi addq $0x20, %rdi callq 0x9b3a0 jmp 0xacb2c movq 0x10(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0xaca60 movl $0x1, 0x28(%rsp) leaq 0x40(%rsp), %rdi callq 0x510c0 movq 0x18(%rsp), %rax addq $0x78, %rsp retq movq 0x30(%rsp), %rdi callq 0x50940 nopw (%rax,%rax)
_ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec: sub rsp, 78h mov [rsp+78h+var_68], rdi mov al, dl mov rcx, rdi mov [rsp+78h+var_60], rcx mov [rsp+78h+var_8], rdi mov [rsp+78h+var_10], rsi mov [rsp+78h+var_11], al mov rax, [rsp+78h+var_10] mov rsi, [rax] mov [rsp+78h+var_58], rsi mov rdi, rsi add rdi, 20h ; ' ' add rsi, 18h call _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_; __gnu_cxx::operator==<char const*,std::string>(__gnu_cxx::__normal_iterator<char const*,std::string> const&,__gnu_cxx::__normal_iterator<char const*,std::string> const&) test al, 1 jnz short loc_ACAFC mov rdi, [rsp+78h+var_58] add rdi, 20h ; ' ' call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) movsx eax, byte ptr [rax] movsx ecx, [rsp+78h+var_11] cmp eax, ecx jz short loc_ACB0F loc_ACAFC: mov rdi, [rsp+78h+var_68] xor eax, eax mov esi, eax call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2IS7_vEEDn; std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(decltype(nullptr)) jmp loc_ACD36 loc_ACB0F: lea rdi, [rsp+78h+var_38] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov rdi, [rsp+78h+var_58] mov [rsp+78h+var_39], 0 add rdi, 20h ; ' ' call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void) loc_ACB2C: mov rsi, [rsp+78h+var_58] mov rdi, rsi add rdi, 20h ; ' ' add rsi, 18h call _ZN9__gnu_cxxneIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_; __gnu_cxx::operator!=<char const*,std::string>(__gnu_cxx::__normal_iterator<char const*,std::string> const&,__gnu_cxx::__normal_iterator<char const*,std::string> const&) test al, 1 jnz short loc_ACB4A jmp loc_ACD16 loc_ACB4A: test [rsp+78h+var_39], 1 jz loc_ACC7E mov rdi, [rsp+78h+var_58] mov [rsp+78h+var_39], 0 add rdi, 20h ; ' ' call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) movsx eax, byte ptr [rax] add eax, 0FFFFFFA4h; switch 25 cases mov ecx, eax mov [rsp+78h+var_70], rcx sub eax, 18h ja def_ACB91; jumptable 00000000000ACB91 default case, cases 93-97,99-101,103-109,111-113,115 mov rax, [rsp+78h+var_70] lea rcx, jpt_ACB91 movsxd rax, ds:(jpt_ACB91 - 1C2240h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_ACB93: lea rdi, [rsp+78h+var_38]; jumptable 00000000000ACB91 case 110 mov esi, 0Ah call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char) jmp short $+2 loc_ACBA4: jmp loc_ACC79 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax lea rdi, [rsp+arg_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_ACD40 loc_ACBC6: lea rdi, [rsp+78h+var_38]; jumptable 00000000000ACB91 case 114 mov esi, 0Dh call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char) jmp short $+2 loc_ACBD7: jmp loc_ACC79 loc_ACBDC: lea rdi, [rsp+78h+var_38]; jumptable 00000000000ACB91 case 116 mov esi, 9 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char) jmp short $+2 loc_ACBED: jmp loc_ACC79 loc_ACBF2: lea rdi, [rsp+78h+var_38]; jumptable 00000000000ACB91 case 98 mov esi, 8 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char) jmp short $+2 loc_ACC03: jmp short loc_ACC79 loc_ACC05: lea rdi, [rsp+78h+var_38]; jumptable 00000000000ACB91 case 102 mov esi, 0Ch call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char) jmp short $+2 loc_ACC16: jmp short loc_ACC79 loc_ACC18: lea rdi, [rsp+78h+var_38]; jumptable 00000000000ACB91 case 92 mov esi, 5Ch ; '\' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char) jmp short $+2 loc_ACC29: jmp short loc_ACC79 def_ACB91: mov rdi, [rsp+78h+var_58]; jumptable 00000000000ACB91 default case, cases 93-97,99-101,103-109,111-113,115 add rdi, 20h ; ' ' call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) movsx eax, byte ptr [rax] movsx ecx, [rsp+78h+var_11] cmp eax, ecx jnz short loc_ACC58 movsx esi, [rsp+78h+var_11] lea rdi, [rsp+78h+var_38] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char) jmp short $+2 loc_ACC56: jmp short loc_ACC77 loc_ACC58: mov rdi, [rsp+78h+var_58] add rdi, 20h ; ' ' call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) movsx esi, byte ptr [rax] lea rdi, [rsp+78h+var_38] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char) jmp short $+2 loc_ACC75: jmp short $+2 loc_ACC77: jmp short $+2 loc_ACC79: jmp loc_ACD01 loc_ACC7E: mov rdi, [rsp+78h+var_58] add rdi, 20h ; ' ' call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) movsx eax, byte ptr [rax] cmp eax, 5Ch ; '\' jnz short loc_ACC9B mov [rsp+78h+var_39], 1 jmp short loc_ACCFF loc_ACC9B: mov rdi, [rsp+78h+var_58] add rdi, 20h ; ' ' call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) movsx eax, byte ptr [rax] movsx ecx, [rsp+78h+var_11] cmp eax, ecx jnz short loc_ACCDE mov rdi, [rsp+78h+var_58] add rdi, 20h ; ' ' call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void) mov rdi, [rsp+78h+var_68] lea rsi, [rsp+78h+var_38] call _ZSt11make_uniqueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS5_EENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::string,std::string>(std::string &&) jmp short $+2 loc_ACCD4: mov [rsp+78h+var_50], 1 jmp short loc_ACD2C loc_ACCDE: mov rdi, [rsp+78h+var_58] add rdi, 20h ; ' ' call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) movsx esi, byte ptr [rax] lea rdi, [rsp+78h+var_38] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char) jmp short $+2 loc_ACCFB: jmp short $+2 loc_ACCFD: jmp short $+2 loc_ACCFF: jmp short $+2 loc_ACD01: jmp short $+2 loc_ACD03: mov rdi, [rsp+78h+var_58] add rdi, 20h ; ' ' call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void) jmp loc_ACB2C loc_ACD16: mov rdi, [rsp+78h+var_68] xor eax, eax mov esi, eax call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2IS7_vEEDn; std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(decltype(nullptr)) mov [rsp+78h+var_50], 1 loc_ACD2C: lea rdi, [rsp+78h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_ACD36: mov rax, [rsp+78h+var_60] add rsp, 78h retn loc_ACD40: mov rdi, [rsp+arg_28] call __Unwind_Resume
long long minja::Parser::parseString[abi:cxx11](void)::{lambda(char)#1}::operator()[abi:cxx11]( long long a1, _QWORD *a2, char a3) { char *v3; // rax char *v4; // rax char *v5; // rax long long v7; // [rsp+20h] [rbp-58h] char v8; // [rsp+3Fh] [rbp-39h] _BYTE v9[39]; // [rsp+40h] [rbp-38h] BYREF char v10; // [rsp+67h] [rbp-11h] _QWORD *v11; // [rsp+68h] [rbp-10h] long long v12; // [rsp+70h] [rbp-8h] v12 = a1; v11 = a2; v10 = a3; v7 = *a2; if ( !__gnu_cxx::operator==<char const*,std::string>(*a2 + 32LL, *a2 + 24LL) && *(char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32) == v10 ) { std::string::basic_string(v9); v8 = 0; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++((_QWORD *)(v7 + 32)); while ( __gnu_cxx::operator!=<char const*,std::string>(v7 + 32, v7 + 24) ) { if ( (v8 & 1) != 0 ) { v8 = 0; switch ( *(_BYTE *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32) ) { case '\\': std::string::operator+=(v9, 92LL); break; case 'b': std::string::operator+=(v9, 8LL); break; case 'f': std::string::operator+=(v9, 12LL); break; case 'n': std::string::operator+=(v9, 10LL); break; case 'r': std::string::operator+=(v9, 13LL); break; case 't': std::string::operator+=(v9, 9LL); break; default: v3 = (char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32); if ( *v3 != v10 ) goto LABEL_21; std::string::operator+=(v9, (unsigned int)v10); break; } } else if ( *(_BYTE *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32) == 92 ) { v8 = 1; } else { v4 = (char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32); if ( *v4 == v10 ) { __gnu_cxx::__normal_iterator<char const*,std::string>::operator++((_QWORD *)(v7 + 32)); std::make_unique<std::string,std::string>(a1, v9); goto LABEL_24; } LABEL_21: v5 = (char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32); std::string::operator+=(v9, (unsigned int)*v5); } __gnu_cxx::__normal_iterator<char const*,std::string>::operator++((_QWORD *)(v7 + 32)); } std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(a1); LABEL_24: std::string::~string(v9); } else { std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(a1); } return a1; }
_M_create<format_literal(std::__cxx11::string_const&)::$_0_const&>: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RDI MOV qword ptr [RSP],RSI MOV RDI,qword ptr [RSP + 0x8] CALL 0x0018ab80 ADD RSP,0x18 RET
/* void std::_Function_base::_Base_manager<format_literal(std::__cxx11::string const&)::$_0>::_M_create<format_literal(std::__cxx11::string const&)::$_0 const&>(std::_Any_data&, format_literal(std::__cxx11::string const&)::$_0 const&, std::integral_constant<bool, true>) */ void std::_Function_base::_Base_manager<format_literal(std::__cxx11::string_const&)::$_0>:: _M_create<format_literal(std::__cxx11::string_const&)::__0_const&>(_Any_data *param_1) { _Any_data::_M_access(param_1); return; }
17,656
minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const
monkey531[P]llama/common/./minja.hpp
std::unique_ptr<std::string> parseString() { auto doParse = [&](char quote) -> std::unique_ptr<std::string> { if (it == end || *it != quote) return nullptr; std::string result; bool escape = false; for (++it; it != end; ++it) { if (escape) { escape = false; switch (*it) { case 'n': result += '\n'; break; case 'r': result += '\r'; break; case 't': result += '\t'; break; case 'b': result += '\b'; break; case 'f': result += '\f'; break; case '\\': result += '\\'; break; default: if (*it == quote) { result += quote; } else { result += *it; } break; } } else if (*it == '\\') { escape = true; } else if (*it == quote) { ++it; return std::make_unique<std::string>(std::move(result)); } else { result += *it; } } return nullptr; }; consumeSpaces(); if (it == end) return nullptr; if (*it == '"') return doParse('"'); if (*it == '\'') return doParse('\''); return nullptr; }
O2
cpp
minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq (%rsi), %r15 movq 0x18(%r15), %rcx movq 0x20(%r15), %rax cmpq %rcx, %rax je 0x40237 movl %edx, %ebp cmpb %bpl, (%rax) jne 0x40237 leaq 0x18(%rsp), %rdx movq %rdx, -0x10(%rdx) andq $0x0, -0x8(%rdx) movb $0x0, (%rdx) xorl %edx, %edx movl $0x1a29, %r12d # imm = 0x1A29 leaq 0x50740(%rip), %r13 # 0x90920 leaq 0x8(%rsp), %r14 leaq 0x1(%rax), %rsi movq %rsi, 0x20(%r15) cmpq %rcx, %rsi je 0x4023d movb (%rsi), %cl testb $0x1, %dl je 0x40214 movsbl %cl, %eax addl $-0x5c, %eax rorl %eax cmpl $0xc, %eax ja 0x40220 btl %eax, %r12d jae 0x40220 movl %eax, %eax movb (%rax,%r13), %cl jmp 0x40220 movb $0x1, %dl cmpb $0x5c, %cl je 0x4022d cmpb %bpl, %cl je 0x4025d movsbl %cl, %esi movq %r14, %rdi callq 0x205c0 xorl %edx, %edx movq 0x18(%r15), %rcx movq 0x20(%r15), %rax jmp 0x401e5 andq $0x0, (%rbx) jmp 0x4024b andq $0x0, (%rbx) leaq 0x8(%rsp), %rdi callq 0x20d78 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq addq $0x2, %rax movq %rax, 0x20(%r15) leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x4028b jmp 0x40241 jmp 0x40276 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x20d78 movq %rbx, %rdi callq 0x20b90
_ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi mov r15, [rsi] mov rcx, [r15+18h] mov rax, [r15+20h] cmp rax, rcx jz short loc_40237 mov ebp, edx cmp [rax], bpl jnz short loc_40237 lea rdx, [rsp+58h+var_40] mov [rdx-10h], rdx and qword ptr [rdx-8], 0 mov byte ptr [rdx], 0 xor edx, edx mov r12d, 1A29h lea r13, unk_90920 lea r14, [rsp+58h+var_50] loc_401E5: lea rsi, [rax+1] mov [r15+20h], rsi cmp rsi, rcx jz short loc_4023D mov cl, [rsi] test dl, 1 jz short loc_40214 movsx eax, cl add eax, 0FFFFFFA4h ror eax, 1 cmp eax, 0Ch ja short loc_40220 bt r12d, eax jnb short loc_40220 mov eax, eax mov cl, [rax+r13] jmp short loc_40220 loc_40214: mov dl, 1 cmp cl, 5Ch ; '\' jz short loc_4022D cmp cl, bpl jz short loc_4025D loc_40220: movsx esi, cl mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) xor edx, edx loc_4022D: mov rcx, [r15+18h] mov rax, [r15+20h] jmp short loc_401E5 loc_40237: and qword ptr [rbx], 0 jmp short loc_4024B loc_4023D: and qword ptr [rbx], 0 loc_40241: lea rdi, [rsp+58h+var_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_4024B: mov rax, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_4025D: add rax, 2 mov [r15+20h], rax lea rsi, [rsp+58h+var_50] mov rdi, rbx call _ZSt11make_uniqueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS5_EENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::string,std::string>(std::string &&) jmp short loc_40241 jmp short $+2 loc_40276: mov rbx, rax lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
_QWORD * minja::Parser::parseString[abi:cxx11](void)::{lambda(char)#1}::operator()[abi:cxx11]( _QWORD *a1, long long *a2, char a3) { long long v3; // r15 _BYTE *v4; // rcx _BYTE *v5; // rax long long v7; // rdx int v8; // r12d char v9; // cl unsigned int v10; // eax _QWORD v12[2]; // [rsp+8h] [rbp-50h] BYREF char v13; // [rsp+18h] [rbp-40h] BYREF v3 = *a2; v4 = *(_BYTE **)(*a2 + 24); v5 = *(_BYTE **)(*a2 + 32); if ( v5 == v4 || *v5 != a3 ) { *a1 = 0LL; return a1; } v12[0] = &v13; v12[1] = 0LL; v13 = 0; v7 = 0LL; v8 = 6697; while ( 1 ) { *(_QWORD *)(v3 + 32) = v5 + 1; if ( v5 + 1 == v4 ) { *a1 = 0LL; goto LABEL_15; } v9 = v5[1]; if ( (v7 & 1) != 0 ) { v10 = __ROR4__(v9 - 92, 1); if ( v10 <= 0xC ) { if ( _bittest(&v8, v10) ) v9 = byte_90920[v10]; } goto LABEL_11; } LOBYTE(v7) = 1; if ( v9 == 92 ) goto LABEL_12; if ( v9 == a3 ) break; LABEL_11: std::string::push_back(v12, (unsigned int)v9); v7 = 0LL; LABEL_12: v4 = *(_BYTE **)(v3 + 24); v5 = *(_BYTE **)(v3 + 32); } *(_QWORD *)(v3 + 32) = v5 + 2; std::make_unique<std::string,std::string>(a1, v12, v7); LABEL_15: std::string::~string(v12); return a1; }
17,657
minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const
monkey531[P]llama/common/./minja.hpp
std::unique_ptr<std::string> parseString() { auto doParse = [&](char quote) -> std::unique_ptr<std::string> { if (it == end || *it != quote) return nullptr; std::string result; bool escape = false; for (++it; it != end; ++it) { if (escape) { escape = false; switch (*it) { case 'n': result += '\n'; break; case 'r': result += '\r'; break; case 't': result += '\t'; break; case 'b': result += '\b'; break; case 'f': result += '\f'; break; case '\\': result += '\\'; break; default: if (*it == quote) { result += quote; } else { result += *it; } break; } } else if (*it == '\\') { escape = true; } else if (*it == quote) { ++it; return std::make_unique<std::string>(std::move(result)); } else { result += *it; } } return nullptr; }; consumeSpaces(); if (it == end) return nullptr; if (*it == '"') return doParse('"'); if (*it == '\'') return doParse('\''); return nullptr; }
O3
cpp
minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq (%rsi), %r12 movq 0x18(%r12), %rcx movq 0x20(%r12), %rax cmpq %rcx, %rax je 0x43f75 movl %edx, %ebp cmpb %bpl, (%rax) jne 0x43f75 leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq $0x0, -0x8(%r15) movb $0x0, (%r15) leaq 0x1(%rax), %rdx movq %rdx, 0x20(%r12) cmpq %rcx, %rdx je 0x43f8e xorl %edx, %edx movl $0x1a29, %r13d # imm = 0x1A29 leaq 0x8(%rsp), %r14 movb 0x1(%rax), %cl testb $0x1, %dl je 0x43f27 movsbl %cl, %eax addl $-0x5c, %eax rorl %eax cmpl $0xc, %eax ja 0x43f33 btl %eax, %r13d jae 0x43f33 movl %eax, %eax leaq 0x79df2(%rip), %rcx # 0xbdd14 movb (%rax,%rcx), %cl jmp 0x43f33 movb $0x1, %dl cmpb $0x5c, %cl je 0x43f40 cmpb %bpl, %cl je 0x43f92 movsbl %cl, %esi movq %r14, %rdi callq 0x185a0 xorl %edx, %edx movq 0x20(%r12), %rax leaq 0x1(%rax), %rcx movq %rcx, 0x20(%r12) cmpq 0x18(%r12), %rcx jne 0x43efe movq 0x8(%rsp), %rdi movq $0x0, (%rbx) cmpq %r15, %rdi je 0x43f7c movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x43f7c movq $0x0, (%rbx) movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq xorl %eax, %eax jmp 0x43fd7 addq $0x2, %rax movq %rax, 0x20(%r12) movl $0x20, %edi callq 0x18690 movq %rax, %rcx addq $0x10, %rcx movq %rcx, (%rax) movq 0x8(%rsp), %rdx cmpq %r15, %rdx je 0x43fc7 movq %rdx, (%rax) movq 0x18(%rsp), %rcx movq %rcx, 0x10(%rax) jmp 0x43fce movups (%r15), %xmm0 movups %xmm0, (%rcx) movq 0x10(%rsp), %rcx movq %rcx, 0x8(%rax) movq %rax, (%rbx) jmp 0x43f7c jmp 0x43fde movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x43ff8 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 movq %rbx, %rdi callq 0x18b90
_ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi mov r12, [rsi] mov rcx, [r12+18h] mov rax, [r12+20h] cmp rax, rcx jz loc_43F75 mov ebp, edx cmp [rax], bpl jnz loc_43F75 lea r15, [rsp+58h+var_40] mov [r15-10h], r15 mov qword ptr [r15-8], 0 mov byte ptr [r15], 0 lea rdx, [rax+1] mov [r12+20h], rdx cmp rdx, rcx jz loc_43F8E xor edx, edx mov r13d, 1A29h lea r14, [rsp+58h+var_50] loc_43EFE: mov cl, [rax+1] test dl, 1 jz short loc_43F27 movsx eax, cl add eax, 0FFFFFFA4h ror eax, 1 cmp eax, 0Ch ja short loc_43F33 bt r13d, eax jnb short loc_43F33 mov eax, eax lea rcx, unk_BDD14 mov cl, [rax+rcx] jmp short loc_43F33 loc_43F27: mov dl, 1 cmp cl, 5Ch ; '\' jz short loc_43F40 cmp cl, bpl jz short loc_43F92 loc_43F33: movsx esi, cl mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) xor edx, edx loc_43F40: mov rax, [r12+20h] lea rcx, [rax+1] mov [r12+20h], rcx cmp rcx, [r12+18h] jnz short loc_43EFE mov rdi, [rsp+58h+var_50]; void * mov qword ptr [rbx], 0 cmp rdi, r15 jz short loc_43F7C mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_43F7C loc_43F75: mov qword ptr [rbx], 0 loc_43F7C: mov rax, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_43F8E: xor eax, eax jmp short loc_43FD7 loc_43F92: add rax, 2 mov [r12+20h], rax mov edi, 20h ; ' '; unsigned __int64 call __Znwm; operator new(ulong) mov rcx, rax add rcx, 10h mov [rax], rcx mov rdx, [rsp+58h+var_50] cmp rdx, r15 jz short loc_43FC7 mov [rax], rdx mov rcx, [rsp+58h+var_40] mov [rax+10h], rcx jmp short loc_43FCE loc_43FC7: movups xmm0, xmmword ptr [r15] movups xmmword ptr [rcx], xmm0 loc_43FCE: mov rcx, [rsp+58h+var_48] mov [rax+8], rcx loc_43FD7: mov [rbx], rax jmp short loc_43F7C jmp short $+2 loc_43FDE: mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r15 jz short loc_43FF8 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_43FF8: mov rdi, rbx call __Unwind_Resume
_QWORD * minja::Parser::parseString[abi:cxx11](void)::{lambda(char)#1}::operator()[abi:cxx11]( _QWORD *a1, long long *a2, char a3) { long long v4; // r12 _BYTE *v5; // rcx _BYTE *v6; // rax char v8; // dl int v9; // r13d char v10; // cl unsigned int v11; // eax _OWORD *v12; // rdi long long v14; // rax void *v15; // [rsp+8h] [rbp-50h] BYREF long long v16; // [rsp+10h] [rbp-48h] _OWORD v17[4]; // [rsp+18h] [rbp-40h] BYREF v4 = *a2; v5 = *(_BYTE **)(*a2 + 24); v6 = *(_BYTE **)(*a2 + 32); if ( v6 == v5 || *v6 != a3 ) { *a1 = 0LL; return a1; } v15 = v17; v16 = 0LL; LOBYTE(v17[0]) = 0; *(_QWORD *)(v4 + 32) = v6 + 1; if ( v6 + 1 == v5 ) { v14 = 0LL; goto LABEL_22; } v8 = 0; v9 = 6697; while ( 1 ) { v10 = v6[1]; if ( (v8 & 1) != 0 ) { v11 = __ROR4__(v10 - 92, 1); if ( v11 <= 0xC && _bittest(&v9, v11) ) v10 = byte_BDD14[v11]; goto LABEL_11; } v8 = 1; if ( v10 != 92 ) break; LABEL_12: v6 = *(_BYTE **)(v4 + 32); *(_QWORD *)(v4 + 32) = v6 + 1; if ( v6 + 1 == *(_BYTE **)(v4 + 24) ) { v12 = v15; *a1 = 0LL; if ( v12 != v17 ) operator delete(v12, *(_QWORD *)&v17[0] + 1LL); return a1; } } if ( v10 != a3 ) { LABEL_11: std::string::push_back(&v15, (unsigned int)v10); v8 = 0; goto LABEL_12; } *(_QWORD *)(v4 + 32) = v6 + 2; v14 = operator new(0x20uLL); *(_QWORD *)v14 = v14 + 16; if ( v15 == v17 ) { *(_OWORD *)(v14 + 16) = v17[0]; } else { *(_QWORD *)v14 = v15; *(_QWORD *)(v14 + 16) = *(_QWORD *)&v17[0]; } *(_QWORD *)(v14 + 8) = v16; LABEL_22: *a1 = v14; return a1; }
operator()[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV R12,qword ptr [RSI] MOV RCX,qword ptr [R12 + 0x18] MOV RAX,qword ptr [R12 + 0x20] CMP RAX,RCX JZ 0x00143f75 MOV EBP,EDX CMP byte ptr [RAX],BPL JNZ 0x00143f75 LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],0x0 MOV byte ptr [R15],0x0 LEA RDX,[RAX + 0x1] MOV qword ptr [R12 + 0x20],RDX CMP RDX,RCX JZ 0x00143f8e XOR EDX,EDX MOV R13D,0x1a29 LEA R14,[RSP + 0x8] LAB_00143efe: MOV CL,byte ptr [RAX + 0x1] TEST DL,0x1 JZ 0x00143f27 MOVSX EAX,CL ADD EAX,-0x5c ROR EAX,0x1 CMP EAX,0xc JA 0x00143f33 BT R13D,EAX JNC 0x00143f33 MOV EAX,EAX LEA RCX,[0x1bdd14] MOV CL,byte ptr [RAX + RCX*0x1] JMP 0x00143f33 LAB_00143f27: MOV DL,0x1 CMP CL,0x5c JZ 0x00143f40 CMP CL,BPL JZ 0x00143f92 LAB_00143f33: MOVSX ESI,CL MOV RDI,R14 CALL 0x001185a0 XOR EDX,EDX LAB_00143f40: MOV RAX,qword ptr [R12 + 0x20] LEA RCX,[RAX + 0x1] MOV qword ptr [R12 + 0x20],RCX CMP RCX,qword ptr [R12 + 0x18] JNZ 0x00143efe MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RBX],0x0 CMP RDI,R15 JZ 0x00143f7c MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 JMP 0x00143f7c LAB_00143f75: MOV qword ptr [RBX],0x0 LAB_00143f7c: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00143f8e: XOR EAX,EAX JMP 0x00143fd7 LAB_00143f92: ADD RAX,0x2 MOV qword ptr [R12 + 0x20],RAX LAB_00143f9b: MOV EDI,0x20 CALL 0x00118690 LAB_00143fa5: MOV RCX,RAX ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV RDX,qword ptr [RSP + 0x8] CMP RDX,R15 JZ 0x00143fc7 MOV qword ptr [RAX],RDX MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x10],RCX JMP 0x00143fce LAB_00143fc7: MOVUPS XMM0,xmmword ptr [R15] MOVUPS xmmword ptr [RCX],XMM0 LAB_00143fce: MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x8],RCX LAB_00143fd7: MOV qword ptr [RBX],RAX JMP 0x00143f7c
/* operator()[abi:cxx11](char) const */ int8 * minja::Parser::parseString[abi:cxx11]()::{lambda(char)#1}::operator()[abi_cxx11_(char param_1) { long lVar1; char *pcVar2; int8 *puVar3; char in_DL; bool bVar4; long *in_RSI; int7 in_register_00000039; int8 *puVar5; int1 *local_50; int8 local_48; int1 local_40; int7 uStack_3f; int8 uStack_38; puVar5 = (int8 *)CONCAT71(in_register_00000039,param_1); lVar1 = *in_RSI; pcVar2 = *(char **)(lVar1 + 0x20); if ((pcVar2 == *(char **)(lVar1 + 0x18)) || (*pcVar2 != in_DL)) { *puVar5 = 0; } else { local_48 = 0; local_40 = 0; *(char **)(lVar1 + 0x20) = pcVar2 + 1; if (pcVar2 + 1 == *(char **)(lVar1 + 0x18)) { puVar3 = (int8 *)0x0; LAB_00143fd7: *puVar5 = puVar3; } else { bVar4 = false; local_50 = &local_40; do { if (bVar4) { LAB_00143f33: /* try { // try from 00143f33 to 00143f3d has its CatchHandler @ 00143fde */ std::__cxx11::string::push_back((char)&local_50); bVar4 = false; } else { bVar4 = true; if (pcVar2[1] != '\\') { if (pcVar2[1] != in_DL) goto LAB_00143f33; *(char **)(lVar1 + 0x20) = pcVar2 + 2; /* try { // try from 00143f9b to 00143fa4 has its CatchHandler @ 00143fdc */ puVar3 = (int8 *)operator_new(0x20); *puVar3 = puVar3 + 2; if (local_50 == &local_40) { puVar3[2] = CONCAT71(uStack_3f,local_40); puVar3[3] = uStack_38; } else { *puVar3 = local_50; puVar3[2] = CONCAT71(uStack_3f,local_40); } puVar3[1] = local_48; goto LAB_00143fd7; } } pcVar2 = *(char **)(lVar1 + 0x20); *(char **)(lVar1 + 0x20) = pcVar2 + 1; } while (pcVar2 + 1 != *(char **)(lVar1 + 0x18)); *puVar5 = 0; if (local_50 != &local_40) { operator_delete(local_50,CONCAT71(uStack_3f,local_40) + 1); } } } return puVar5; }
17,658
ma_check_print_error
eloqsql/storage/maria/ma_check_standalone.h
void _ma_check_print_error(HA_CHECK *param, const char *fmt,...) { va_list args; DBUG_ENTER("_ma_check_print_error"); DBUG_PRINT("enter", ("format: %s", fmt)); fflush(stdout); if (!param->warning_printed && !param->error_printed) { if (param->testflag & T_SILENT) fprintf(stderr,"%s: Aria file %s\n",my_progname_short,param->isam_file_name); param->out_flag|= O_DATA_LOST; } param->error_printed++; va_start(args,fmt); fprintf(stderr,"%s: error: ",my_progname_short); vfprintf(stderr, fmt, args); fputc('\n',stderr); fflush(stderr); va_end(args); DBUG_VOID_RETURN; }
O3
c
ma_check_print_error: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0xc8, %rsp movq %rsi, %rbx movq %rdi, %r14 movq %rdx, -0xd0(%rbp) movq %rcx, -0xc8(%rbp) movq %r8, -0xc0(%rbp) movq %r9, -0xb8(%rbp) testb %al, %al je 0x27de9 movaps %xmm0, -0xb0(%rbp) movaps %xmm1, -0xa0(%rbp) movaps %xmm2, -0x90(%rbp) movaps %xmm3, -0x80(%rbp) movaps %xmm4, -0x70(%rbp) movaps %xmm5, -0x60(%rbp) movaps %xmm6, -0x50(%rbp) movaps %xmm7, -0x40(%rbp) movq 0x33e1b8(%rip), %rax # 0x365fa8 movq (%rax), %rdi callq 0x27490 cmpb $0x0, 0x209a2(%r14) jne 0x27e43 cmpl $0x0, 0x2096c(%r14) jne 0x27e43 testb $0x40, 0xb12(%r14) je 0x27e3b movq 0x33e193(%rip), %rax # 0x365fb0 movq (%rax), %rdi leaq 0xbc0e91(%rip), %rax # 0xbe8cb8 movq (%rax), %rdx movq (%r14), %rcx leaq 0x9521a(%rip), %rsi # 0xbd04e xorl %eax, %eax callq 0x271d0 orb $0x4, 0x20968(%r14) incl 0x2096c(%r14) leaq -0xe0(%rbp), %rax leaq -0x30(%rbp), %r14 movq %rax, 0x10(%r14) leaq 0x10(%rbp), %rax movq %rax, 0x8(%r14) movabsq $0x3000000010, %rax # imm = 0x3000000010 movq %rax, (%r14) movq 0x33e13b(%rip), %r15 # 0x365fb0 movq (%r15), %rdi leaq 0xbc0e39(%rip), %rax # 0xbe8cb8 movq (%rax), %rdx leaq 0x951e5(%rip), %rsi # 0xbd06e xorl %eax, %eax callq 0x271d0 movq (%r15), %rdi pushq $0x1 popq %rsi movq %rbx, %rdx movq %r14, %rcx callq 0x278a0 movq (%r15), %rsi pushq $0xa popq %rdi callq 0x277e0 movq (%r15), %rdi callq 0x27490 addq $0xc8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
_ma_check_print_error: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 0C8h mov rbx, rsi mov r14, rdi mov [rbp+var_D0], rdx mov [rbp+var_C8], rcx mov [rbp+var_C0], r8 mov [rbp+var_B8], r9 test al, al jz short loc_27DE9 movaps [rbp+var_B0], xmm0 movaps [rbp+var_A0], xmm1 movaps [rbp+var_90], xmm2 movaps [rbp+var_80], xmm3 movaps [rbp+var_70], xmm4 movaps [rbp+var_60], xmm5 movaps [rbp+var_50], xmm6 movaps [rbp+var_40], xmm7 loc_27DE9: mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush cmp byte ptr [r14+209A2h], 0 jnz short loc_27E43 cmp dword ptr [r14+2096Ch], 0 jnz short loc_27E43 test byte ptr [r14+0B12h], 40h jz short loc_27E3B mov rax, cs:stderr_ptr mov rdi, [rax] lea rax, my_progname_short mov rdx, [rax] mov rcx, [r14] lea rsi, aSAriaFileS; "%s: Aria file %s\n" xor eax, eax call _fprintf loc_27E3B: or byte ptr [r14+20968h], 4 loc_27E43: inc dword ptr [r14+2096Ch] lea rax, [rbp+var_E0] lea r14, [rbp+var_30] mov [r14+10h], rax lea rax, [rbp+arg_0] mov [r14+8], rax mov rax, 3000000010h mov [r14], rax mov r15, cs:stderr_ptr mov rdi, [r15] lea rax, my_progname_short mov rdx, [rax] lea rsi, aSError; "%s: error: " xor eax, eax call _fprintf mov rdi, [r15] push 1 pop rsi mov rdx, rbx mov rcx, r14 call ___vfprintf_chk mov rsi, [r15] push 0Ah pop rdi call _fputc mov rdi, [r15] call _fflush add rsp, 0C8h pop rbx pop r14 pop r15 pop rbp retn
long long ma_check_print_error(long long a1, long long a2, ...) { va_list va; // [rsp+B0h] [rbp-30h] BYREF fflush(stdout); if ( !*(_BYTE *)(a1 + 133538) && !*(_DWORD *)(a1 + 133484) ) { if ( (*(_BYTE *)(a1 + 2834) & 0x40) != 0 ) fprintf(stderr, "%s: Aria file %s\n", my_progname_short, *(const char **)a1); *(_BYTE *)(a1 + 133480) |= 4u; } ++*(_DWORD *)(a1 + 133484); va_start(va, a2); fprintf(stderr, "%s: error: ", my_progname_short); __vfprintf_chk(stderr, 1LL, a2, va); fputc(10LL, stderr); return fflush(stderr); }
_ma_check_print_error: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xc8 MOV RBX,RSI MOV R14,RDI MOV qword ptr [RBP + -0xd0],RDX MOV qword ptr [RBP + -0xc8],RCX MOV qword ptr [RBP + -0xc0],R8 MOV qword ptr [RBP + -0xb8],R9 TEST AL,AL JZ 0x00127de9 MOVAPS xmmword ptr [RBP + -0xb0],XMM0 MOVAPS xmmword ptr [RBP + -0xa0],XMM1 MOVAPS xmmword ptr [RBP + -0x90],XMM2 MOVAPS xmmword ptr [RBP + -0x80],XMM3 MOVAPS xmmword ptr [RBP + -0x70],XMM4 MOVAPS xmmword ptr [RBP + -0x60],XMM5 MOVAPS xmmword ptr [RBP + -0x50],XMM6 MOVAPS xmmword ptr [RBP + -0x40],XMM7 LAB_00127de9: MOV RAX,qword ptr [0x00465fa8] MOV RDI,qword ptr [RAX] CALL 0x00127490 CMP byte ptr [R14 + 0x209a2],0x0 JNZ 0x00127e43 CMP dword ptr [R14 + 0x2096c],0x0 JNZ 0x00127e43 TEST byte ptr [R14 + 0xb12],0x40 JZ 0x00127e3b MOV RAX,qword ptr [0x00465fb0] MOV RDI,qword ptr [RAX] LEA RAX,[0xce8cb8] MOV RDX,qword ptr [RAX] MOV RCX,qword ptr [R14] LEA RSI,[0x1bd04e] XOR EAX,EAX CALL 0x001271d0 LAB_00127e3b: OR byte ptr [R14 + 0x20968],0x4 LAB_00127e43: INC dword ptr [R14 + 0x2096c] LEA RAX,[RBP + -0xe0] LEA R14,[RBP + -0x30] MOV qword ptr [R14 + 0x10],RAX LEA RAX,[RBP + 0x10] MOV qword ptr [R14 + 0x8],RAX MOV RAX,0x3000000010 MOV qword ptr [R14],RAX MOV R15,qword ptr [0x00465fb0] MOV RDI,qword ptr [R15] LEA RAX,[0xce8cb8] MOV RDX,qword ptr [RAX] LEA RSI,[0x1bd06e] XOR EAX,EAX CALL 0x001271d0 MOV RDI,qword ptr [R15] PUSH 0x1 POP RSI MOV RDX,RBX MOV RCX,R14 CALL 0x001278a0 MOV RSI,qword ptr [R15] PUSH 0xa POP RDI CALL 0x001277e0 MOV RDI,qword ptr [R15] CALL 0x00127490 ADD RSP,0xc8 POP RBX POP R14 POP R15 POP RBP RET
void _ma_check_print_error (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 *param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { int *puVar1; char in_AL; int1 local_e8 [16]; int8 local_d8; int8 local_d0; int8 local_c8; int8 local_c0; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int8 local_38; int1 *local_30; int1 *local_28; if (in_AL != '\0') { local_b8 = param_1; local_a8 = param_2; local_98 = param_3; local_88 = param_4; local_78 = param_5; local_68 = param_6; local_58 = param_7; local_48 = param_8; } local_d8 = param_11; local_d0 = param_12; local_c8 = param_13; local_c0 = param_14; fflush(*(FILE **)PTR_stdout_00465fa8); if ((*(char *)((long)param_9 + 0x209a2) == '\0') && (*(int *)((long)param_9 + 0x2096c) == 0)) { if ((*(byte *)((long)param_9 + 0xb12) & 0x40) != 0) { fprintf(*(FILE **)PTR_stderr_00465fb0,"%s: Aria file %s\n",my_progname_short,*param_9); } *(byte *)(param_9 + 0x412d) = *(byte *)(param_9 + 0x412d) | 4; } *(int *)((long)param_9 + 0x2096c) = *(int *)((long)param_9 + 0x2096c) + 1; puVar1 = PTR_stderr_00465fb0; local_28 = local_e8; local_30 = &stack0x00000008; local_38 = 0x3000000010; fprintf(*(FILE **)PTR_stderr_00465fb0,"%s: error: ",my_progname_short); __vfprintf_chk(*(int8 *)puVar1,1,param_10,&local_38); fputc(10,*(FILE **)puVar1); fflush(*(FILE **)puVar1); return; }
17,659
LefDefParser::defiSubnet::setType(char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiNet.cpp
void defiSubnet::setType(const char* typ) { if (*typ == 'F') { isFixed_ = 1; } else if (*typ == 'C') { isCover_ = 1; } else if (*typ == 'R') { isRouted_ = 1; } else { // Silently do nothing with bad input. } }
O0
cpp
LefDefParser::defiSubnet::setType(char const*): movq %rdi, -0x8(%rsp) movq %rsi, -0x10(%rsp) movq -0x8(%rsp), %rax movq %rax, -0x18(%rsp) movq -0x10(%rsp), %rax movsbl (%rax), %eax cmpl $0x46, %eax jne 0x3771c movq -0x18(%rsp), %rax movb $0x1, 0x38(%rax) jmp 0x37752 movq -0x10(%rsp), %rax movsbl (%rax), %eax cmpl $0x43, %eax jne 0x37734 movq -0x18(%rsp), %rax movb $0x1, 0x3a(%rax) jmp 0x37750 movq -0x10(%rsp), %rax movsbl (%rax), %eax cmpl $0x52, %eax jne 0x3774c movq -0x18(%rsp), %rax movb $0x1, 0x39(%rax) jmp 0x3774e jmp 0x3774e jmp 0x37750 jmp 0x37752 retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser10defiSubnet7setTypeEPKc: mov [rsp+var_8], rdi mov [rsp+var_10], rsi mov rax, [rsp+var_8] mov [rsp+var_18], rax mov rax, [rsp+var_10] movsx eax, byte ptr [rax] cmp eax, 46h ; 'F' jnz short loc_3771C mov rax, [rsp+var_18] mov byte ptr [rax+38h], 1 jmp short locret_37752 loc_3771C: mov rax, [rsp+var_10] movsx eax, byte ptr [rax] cmp eax, 43h ; 'C' jnz short loc_37734 mov rax, [rsp+var_18] mov byte ptr [rax+3Ah], 1 jmp short loc_37750 loc_37734: mov rax, [rsp+var_10] movsx eax, byte ptr [rax] cmp eax, 52h ; 'R' jnz short loc_3774C mov rax, [rsp+var_18] mov byte ptr [rax+39h], 1 jmp short loc_3774E loc_3774C: jmp short $+2 loc_3774E: jmp short $+2 loc_37750: jmp short $+2 locret_37752: retn
long long LefDefParser::defiSubnet::setType(LefDefParser::defiSubnet *this, const char *a2) { long long result; // rax if ( *a2 == 70 ) { result = (long long)this; *((_BYTE *)this + 56) = 1; } else if ( *a2 == 67 ) { result = (long long)this; *((_BYTE *)this + 58) = 1; } else { result = (unsigned int)*a2; if ( (_DWORD)result == 82 ) { result = (long long)this; *((_BYTE *)this + 57) = 1; } } return result; }
setType: MOV qword ptr [RSP + -0x8],RDI MOV qword ptr [RSP + -0x10],RSI MOV RAX,qword ptr [RSP + -0x8] MOV qword ptr [RSP + -0x18],RAX MOV RAX,qword ptr [RSP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x46 JNZ 0x0013771c MOV RAX,qword ptr [RSP + -0x18] MOV byte ptr [RAX + 0x38],0x1 JMP 0x00137752 LAB_0013771c: MOV RAX,qword ptr [RSP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x43 JNZ 0x00137734 MOV RAX,qword ptr [RSP + -0x18] MOV byte ptr [RAX + 0x3a],0x1 JMP 0x00137750 LAB_00137734: MOV RAX,qword ptr [RSP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x52 JNZ 0x0013774c MOV RAX,qword ptr [RSP + -0x18] MOV byte ptr [RAX + 0x39],0x1 JMP 0x0013774e LAB_0013774c: JMP 0x0013774e LAB_0013774e: JMP 0x00137750 LAB_00137750: JMP 0x00137752 LAB_00137752: RET
/* LefDefParser::defiSubnet::setType(char const*) */ void __thiscall LefDefParser::defiSubnet::setType(defiSubnet *this,char *param_1) { if (*param_1 == 'F') { this[0x38] = (defiSubnet)0x1; } else if (*param_1 == 'C') { this[0x3a] = (defiSubnet)0x1; } else if (*param_1 == 'R') { this[0x39] = (defiSubnet)0x1; } return; }
17,660
LefDefParser::defiSubnet::setType(char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiNet.cpp
void defiSubnet::setType(const char* typ) { if (*typ == 'F') { isFixed_ = 1; } else if (*typ == 'C') { isCover_ = 1; } else if (*typ == 'R') { isRouted_ = 1; } else { // Silently do nothing with bad input. } }
O3
cpp
LefDefParser::defiSubnet::setType(char const*): movzbl (%rsi), %eax cmpl $0x43, %eax je 0x22d50 cmpl $0x52, %eax je 0x22d4b cmpl $0x46, %eax jne 0x22d4f movb $0x1, 0x38(%rdi) retq movb $0x1, 0x39(%rdi) retq movb $0x1, 0x3a(%rdi) retq nop
_ZN12LefDefParser10defiSubnet7setTypeEPKc: movzx eax, byte ptr [rsi] cmp eax, 43h ; 'C' jz short loc_22D50 cmp eax, 52h ; 'R' jz short loc_22D4B cmp eax, 46h ; 'F' jnz short locret_22D4F mov byte ptr [rdi+38h], 1 retn loc_22D4B: mov byte ptr [rdi+39h], 1 locret_22D4F: retn loc_22D50: mov byte ptr [rdi+3Ah], 1 retn
long long LefDefParser::defiSubnet::setType(LefDefParser::defiSubnet *this, const char *a2) { long long result; // rax result = *(unsigned __int8 *)a2; switch ( (_DWORD)result ) { case 'C': *((_BYTE *)this + 58) = 1; break; case 'R': *((_BYTE *)this + 57) = 1; break; case 'F': *((_BYTE *)this + 56) = 1; break; } return result; }
setType: MOVZX EAX,byte ptr [RSI] CMP EAX,0x43 JZ 0x00122d50 CMP EAX,0x52 JZ 0x00122d4b CMP EAX,0x46 JNZ 0x00122d4f MOV byte ptr [RDI + 0x38],0x1 RET LAB_00122d4b: MOV byte ptr [RDI + 0x39],0x1 LAB_00122d4f: RET LAB_00122d50: MOV byte ptr [RDI + 0x3a],0x1 RET
/* LefDefParser::defiSubnet::setType(char const*) */ void __thiscall LefDefParser::defiSubnet::setType(defiSubnet *this,char *param_1) { char cVar1; cVar1 = *param_1; if (cVar1 == 'C') { this[0x3a] = (defiSubnet)0x1; return; } if (cVar1 == 'R') { this[0x39] = (defiSubnet)0x1; } else if (cVar1 == 'F') { this[0x38] = (defiSubnet)0x1; return; } return; }
17,661
minja::ForNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/minja.hpp
void do_render(std::ostringstream & out, const std::shared_ptr<Context> & context) const override { // https://jinja.palletsprojects.com/en/3.0.x/templates/#for if (!iterable) throw std::runtime_error("ForNode.iterable is null"); if (!body) throw std::runtime_error("ForNode.body is null"); auto iterable_value = iterable->evaluate(context); Value::CallableType loop_function; std::function<void(Value&)> visit = [&](Value& iter) { auto filtered_items = Value::array(); if (!iter.is_null()) { if (!iterable_value.is_iterable()) { throw std::runtime_error("For loop iterable must be iterable: " + iterable_value.dump()); } iterable_value.for_each([&](Value & item) { destructuring_assign(var_names, context, item); if (!condition || condition->evaluate(context).to_bool()) { filtered_items.push_back(item); } }); } if (filtered_items.empty()) { if (else_body) { else_body->render(out, context); } } else { auto loop = recursive ? Value::callable(loop_function) : Value::object(); loop.set("length", (int64_t) filtered_items.size()); size_t cycle_index = 0; loop.set("cycle", Value::callable([&](const std::shared_ptr<Context> &, ArgumentsValue & args) { if (args.args.empty() || !args.kwargs.empty()) { throw std::runtime_error("cycle() expects at least 1 positional argument and no named arg"); } auto item = args.args[cycle_index]; cycle_index = (cycle_index + 1) % args.args.size(); return item; })); auto loop_context = Context::make(Value::object(), context); loop_context->set("loop", loop); for (size_t i = 0, n = filtered_items.size(); i < n; ++i) { auto & item = filtered_items.at(i); destructuring_assign(var_names, loop_context, item); loop.set("index", (int64_t) i + 1); loop.set("index0", (int64_t) i); loop.set("revindex", (int64_t) (n - i)); loop.set("revindex0", (int64_t) (n - i - 1)); loop.set("length", (int64_t) n); loop.set("first", i == 0); loop.set("last", i == (n - 1)); loop.set("previtem", i > 0 ? filtered_items.at(i - 1) : Value()); loop.set("nextitem", i < n - 1 ? filtered_items.at(i + 1) : Value()); try { body->render(out, loop_context); } catch (const LoopControlException & e) { if (e.control_type == LoopControlType::Break) break; if (e.control_type == LoopControlType::Continue) continue; } } } }; if (recursive) { loop_function = [&](const std::shared_ptr<Context> &, ArgumentsValue & args) { if (args.args.size() != 1 || !args.kwargs.empty() || !args.args[0].is_array()) { throw std::runtime_error("loop() expects exactly 1 positional iterable argument"); } auto & items = args.args[0]; visit(items); return Value(); }; } visit(iterable_value); }
O3
cpp
minja::ForNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rsi, %r14 movq 0x38(%rdi), %rsi testq %rsi, %rsi je 0x9e3d6 movq %rdi, %rbx cmpq $0x0, 0x58(%rdi) je 0x9e3f4 movq %rdx, %r15 leaq 0x48(%rsp), %r12 movq %r12, %rdi callq 0x89ab4 xorps %xmm0, %xmm0 movaps %xmm0, 0x30(%rsp) movaps %xmm0, 0x20(%rsp) movq $0x0, 0x8(%rsp) movl $0x28, %edi callq 0x1ba40 movq %r12, (%rax) movq %rbx, 0x8(%rax) movq %r15, 0x10(%rax) movq %r14, 0x18(%rax) leaq 0x20(%rsp), %rcx movq %rcx, 0x20(%rax) movq %rax, (%rsp) leaq 0x323(%rip), %rax # 0x9e5f8 movq %rax, 0x18(%rsp) leaq 0x31f(%rip), %rcx # 0x9e600 movq %rcx, 0x10(%rsp) cmpb $0x0, 0x68(%rbx) je 0x9e311 movq %rsp, %rbx leaq 0x40(%rsp), %rsi movq %rbx, (%rsi) leaq 0x20(%rsp), %rdi callq 0x9e582 cmpq $0x0, 0x10(%rbx) je 0x9e426 movq 0x18(%rsp), %rax movq %rsp, %rdi leaq 0x48(%rsp), %rsi callq *%rax movq 0x10(%rsp), %rax testq %rax, %rax je 0x9e332 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x30(%rsp), %rax testq %rax, %rax je 0x9e34b leaq 0x20(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0x88(%rsp), %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x5c5ee movq %rbx, %rdi callq 0x61a6a movq -0x8(%rbx), %rdi testq %rdi, %rdi je 0x9e373 callq 0x7140a movq 0x70(%rsp), %rdi testq %rdi, %rdi je 0x9e382 callq 0x7140a movq 0x60(%rsp), %rdi testq %rdi, %rdi je 0x9e391 callq 0x7140a movq 0x50(%rsp), %rdi testq %rdi, %rdi je 0x9e3c7 movq 0x91bd6(%rip), %rax # 0x12ff78 cmpb $0x0, (%rax) je 0x9e3b2 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x9e3bc movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x9e3c7 movq (%rdi), %rax callq *0x18(%rax) addq $0x98, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movl $0x10, %edi callq 0x1b4d0 movq %rax, %r14 leaq 0x55b0f(%rip), %rsi # 0xf3ef9 movq %rax, %rdi callq 0x1b370 jmp 0x9e410 movl $0x10, %edi callq 0x1b4d0 movq %rax, %r14 leaq 0x55b0a(%rip), %rsi # 0xf3f12 movq %rax, %rdi callq 0x1b370 movq 0x91bd1(%rip), %rsi # 0x12ffe8 movq 0x91b32(%rip), %rdx # 0x12ff50 movq %r14, %rdi callq 0x1c1c0 callq 0x1b360 jmp 0x9e42d movq %rax, %rbx movq %r14, %rdi callq 0x1b760 jmp 0x9e480 jmp 0x9e48a jmp 0x9e48a movq %rax, %rbx jmp 0x9e45d movq %rax, %rbx movq 0x10(%rsp), %rax testq %rax, %rax je 0x9e45d movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x30(%rsp), %rax testq %rax, %rax je 0x9e476 leaq 0x20(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0x48(%rsp), %rdi callq 0x89da6 movq %rbx, %rdi callq 0x1c250 jmp 0x9e48a movq %rax, %rdi callq 0x2445b
_ZNK5minja7ForNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE: push r15 push r14 push r12 push rbx sub rsp, 98h mov r14, rsi mov rsi, [rdi+38h] test rsi, rsi jz loc_9E3D6 mov rbx, rdi cmp qword ptr [rdi+58h], 0 jz loc_9E3F4 mov r15, rdx lea r12, [rsp+0B8h+var_70] mov rdi, r12 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) xorps xmm0, xmm0 movaps [rsp+0B8h+var_88], xmm0 movaps [rsp+0B8h+var_98], xmm0 mov [rsp+0B8h+var_B0], 0 mov edi, 28h ; '('; unsigned __int64 call __Znwm; operator new(ulong) mov [rax], r12 mov [rax+8], rbx mov [rax+10h], r15 mov [rax+18h], r14 lea rcx, [rsp+0B8h+var_98] mov [rax+20h], rcx mov [rsp+0B8h+var_B8], rax lea rax, _ZNSt17_Function_handlerIFvRN5minja5ValueEEZNKS0_7ForNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS0_7ContextEEEUlS2_E_E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(minja::Value &),minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(minja::Value &)#1}>::_M_invoke(std::_Any_data const&,minja::Value &) mov [rsp+0B8h+var_A0], rax lea rcx, _ZNSt17_Function_handlerIFvRN5minja5ValueEEZNKS0_7ForNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS0_7ContextEEEUlS2_E_E10_M_managerERSt9_Any_dataRKSJ_St18_Manager_operation; std::_Function_handler<void ()(minja::Value &),minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(minja::Value &)#1}>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rsp+0B8h+var_A8], rcx cmp byte ptr [rbx+68h], 0 jz short loc_9E311 mov rbx, rsp lea rsi, [rsp+0B8h+var_78] mov [rsi], rbx lea rdi, [rsp+0B8h+var_98] call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEEaSIZNKS0_7ForNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEES6_EUlS6_S8_E_EENSt9enable_ifIXsrNSA_9_CallableIT_NSL_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISN_E4typeEE4typeESA_EE5valueESt5decayISN_EE4type4typeESt15__invoke_resultIRSY_JS6_S8_EEEE5valueERSA_E4typeEOSN_ cmp qword ptr [rbx+10h], 0 jz loc_9E426 mov rax, [rsp+0B8h+var_A0] loc_9E311: mov rdi, rsp lea rsi, [rsp+0B8h+var_70] call rax ; std::_Function_handler<void ()(minja::Value &),minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(minja::Value &)#1}>::_M_invoke(std::_Any_data const&,minja::Value &); std::_Function_handler<void ()(minja::Value &),minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(minja::Value &)#1}>::_M_invoke(std::_Any_data const&,minja::Value &) mov rax, [rsp+0B8h+var_A8] test rax, rax jz short loc_9E332 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_9E332: mov rax, qword ptr [rsp+0B8h+var_88] test rax, rax jz short loc_9E34B lea rdi, [rsp+0B8h+var_98] mov rsi, rdi mov edx, 3 call rax loc_9E34B: lea rbx, [rsp+0B8h+var_30] mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, [rbx-8] test rdi, rdi jz short loc_9E373 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9E373: mov rdi, [rsp+0B8h+var_48] test rdi, rdi jz short loc_9E382 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9E382: mov rdi, [rsp+0B8h+var_58] test rdi, rdi jz short loc_9E391 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9E391: mov rdi, [rsp+0B8h+var_68] test rdi, rdi jz short loc_9E3C7 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_9E3B2 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_9E3BC loc_9E3B2: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_9E3BC: cmp eax, 1 jnz short loc_9E3C7 mov rax, [rdi] call qword ptr [rax+18h] loc_9E3C7: add rsp, 98h pop rbx pop r12 pop r14 pop r15 retn loc_9E3D6: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aFornodeIterabl; "ForNode.iterable is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short loc_9E410 loc_9E3F4: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aFornodeBodyIsN; "ForNode.body is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) loc_9E410: mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_9E426: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) jmp short $+2 loc_9E42D: mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_9E480 jmp short loc_9E48A jmp short loc_9E48A mov rbx, rax jmp short loc_9E45D mov rbx, rax mov rax, [rsp+0B8h+var_A8] test rax, rax jz short loc_9E45D mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_9E45D: mov rax, qword ptr [rsp+0B8h+var_88] test rax, rax jz short loc_9E476 lea rdi, [rsp+0B8h+var_98] mov rsi, rdi mov edx, 3 call rax loc_9E476: lea rdi, [rsp+0B8h+var_70]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_9E480: mov rdi, rbx call __Unwind_Resume jmp short $+2 loc_9E48A: mov rdi, rax call __clang_call_terminate
long long minja::ForNode::do_render(long long a1, long long a2, long long a3) { void (***v4)(void); // rsi _QWORD *v6; // rax void ( *v7)(_QWORD *, _BYTE *); // rax long long result; // rax long long v9; // rdi std::runtime_error *exception; // r14 _QWORD v11[2]; // [rsp+0h] [rbp-B8h] BYREF long long ( *v12)(); // [rsp+10h] [rbp-A8h] void ( *v13)(_QWORD *, _BYTE *); // [rsp+18h] [rbp-A0h] __int128 v14; // [rsp+20h] [rbp-98h] BYREF __int128 v15; // [rsp+30h] [rbp-88h] _QWORD *v16; // [rsp+40h] [rbp-78h] _BYTE v17[8]; // [rsp+48h] [rbp-70h] BYREF long long v18; // [rsp+50h] [rbp-68h] volatile signed __int32 *v19; // [rsp+60h] [rbp-58h] volatile signed __int32 *v20; // [rsp+70h] [rbp-48h] volatile signed __int32 *v21; // [rsp+80h] [rbp-38h] char v22[48]; // [rsp+88h] [rbp-30h] BYREF v4 = *(void (****)(void))(a1 + 56); if ( !v4 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "ForNode.iterable is null"); goto LABEL_25; } if ( !*(_QWORD *)(a1 + 88) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "ForNode.body is null"); LABEL_25: __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Expression::evaluate((long long)v17, v4); v15 = 0LL; v14 = 0LL; v11[1] = 0LL; v6 = (_QWORD *)operator new(0x28uLL); *v6 = v17; v6[1] = a1; v6[2] = a3; v6[3] = a2; v6[4] = &v14; v11[0] = v6; v7 = (void ( *)(_QWORD *, _BYTE *))std::_Function_handler<void ()(minja::Value &),minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(minja::Value &)#1}>::_M_invoke; v13 = (void ( *)(_QWORD *, _BYTE *))std::_Function_handler<void ()(minja::Value &),minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(minja::Value &)#1}>::_M_invoke; v12 = std::_Function_handler<void ()(minja::Value &),minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(minja::Value &)#1}>::_M_manager; if ( *(_BYTE *)(a1 + 104) ) { v16 = v11; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::operator=<minja::ForNode::do_render(std::ostringstream &,std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1}>(&v14); if ( !v12 ) std::__throw_bad_function_call(); v7 = v13; } v7(v11, v17); if ( v12 ) ((void ( *)(_QWORD *, _QWORD *, long long))v12)(v11, v11, 3LL); if ( (_QWORD)v15 ) ((void ( *)(__int128 *, __int128 *, long long))v15)(&v14, &v14, 3LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v22); result = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v22); if ( v21 ) result = std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v21); if ( v20 ) result = std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v20); if ( v19 ) result = std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v19); v9 = v18; if ( v18 ) { if ( _libc_single_threaded ) { result = *(unsigned int *)(v18 + 12); *(_DWORD *)(v18 + 12) = result - 1; } else { result = (unsigned int)_InterlockedExchangeAdd((volatile signed __int32 *)(v18 + 12), 0xFFFFFFFF); } if ( (_DWORD)result == 1 ) return (*(long long ( **)(long long, _QWORD))(*(_QWORD *)v9 + 24LL))(v9, 0LL); } return result; }
do_render: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R14,RSI MOV RSI,qword ptr [RDI + 0x38] TEST RSI,RSI JZ 0x0019e3d6 MOV RBX,RDI CMP qword ptr [RDI + 0x58],0x0 JZ 0x0019e3f4 MOV R15,RDX LEA R12,[RSP + 0x48] MOV RDI,R12 CALL 0x00189ab4 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x30],XMM0 MOVAPS xmmword ptr [RSP + 0x20],XMM0 MOV qword ptr [RSP + 0x8],0x0 LAB_0019e2a8: MOV EDI,0x28 CALL 0x0011ba40 MOV qword ptr [RAX],R12 MOV qword ptr [RAX + 0x8],RBX MOV qword ptr [RAX + 0x10],R15 MOV qword ptr [RAX + 0x18],R14 LEA RCX,[RSP + 0x20] MOV qword ptr [RAX + 0x20],RCX MOV qword ptr [RSP],RAX LEA RAX,[0x19e5f8] MOV qword ptr [RSP + 0x18],RAX LEA RCX,[0x19e600] MOV qword ptr [RSP + 0x10],RCX CMP byte ptr [RBX + 0x68],0x0 JZ 0x0019e311 MOV RBX,RSP LEA RSI,[RSP + 0x40] MOV qword ptr [RSI],RBX LEA RDI,[RSP + 0x20] CALL 0x0019e582 CMP qword ptr [RBX + 0x10],0x0 JZ 0x0019e426 MOV RAX,qword ptr [RSP + 0x18] LAB_0019e311: MOV RDI,RSP LEA RSI,[RSP + 0x48] CALL RAX MOV RAX,qword ptr [RSP + 0x10] TEST RAX,RAX JZ 0x0019e332 LAB_0019e325: MOV RDI,RSP MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_0019e332: MOV RAX,qword ptr [RSP + 0x30] TEST RAX,RAX JZ 0x0019e34b LAB_0019e33c: LEA RDI,[RSP + 0x20] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_0019e34b: LEA RBX,[RSP + 0x88] MOV RDI,RBX XOR ESI,ESI CALL 0x0015c5ee MOV RDI,RBX CALL 0x00161a6a MOV RDI,qword ptr [RBX + -0x8] TEST RDI,RDI JZ 0x0019e373 CALL 0x0017140a LAB_0019e373: MOV RDI,qword ptr [RSP + 0x70] TEST RDI,RDI JZ 0x0019e382 CALL 0x0017140a LAB_0019e382: MOV RDI,qword ptr [RSP + 0x60] TEST RDI,RDI JZ 0x0019e391 CALL 0x0017140a LAB_0019e391: MOV RDI,qword ptr [RSP + 0x50] TEST RDI,RDI JZ 0x0019e3c7 MOV RAX,qword ptr [0x0022ff78] CMP byte ptr [RAX],0x0 JZ 0x0019e3b2 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x0019e3bc LAB_0019e3b2: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_0019e3bc: CMP EAX,0x1 JNZ 0x0019e3c7 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_0019e3c7: ADD RSP,0x98 POP RBX POP R12 POP R14 POP R15 RET LAB_0019e3d6: MOV EDI,0x10 CALL 0x0011b4d0 MOV R14,RAX LAB_0019e3e3: LEA RSI,[0x1f3ef9] MOV RDI,RAX CALL 0x0011b370 LAB_0019e3f2: JMP 0x0019e410 LAB_0019e3f4: MOV EDI,0x10 CALL 0x0011b4d0 MOV R14,RAX LAB_0019e401: LEA RSI,[0x1f3f12] MOV RDI,RAX CALL 0x0011b370 LAB_0019e410: MOV RSI,qword ptr [0x0022ffe8] MOV RDX,qword ptr [0x0022ff50] MOV RDI,R14 CALL 0x0011c1c0 LAB_0019e426: CALL 0x0011b360
/* minja::ForNode::do_render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context> const&) const */ void __thiscall minja::ForNode::do_render(ForNode *this,ostringstream *param_1,shared_ptr *param_2) { int *piVar1; int iVar2; runtime_error *this_00; int8 *local_b8; int8 local_b0; code *local_a8; code *local_a0; int8 local_98; int8 uStack_90; code *local_88; int8 uStack_80; int1 *local_78; Expression local_70 [8]; long *local_68; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_38; data local_30 [16]; if (*(shared_ptr **)(this + 0x38) == (shared_ptr *)0x0) { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0019e3e3 to 0019e3f1 has its CatchHandler @ 0019e42d */ std::runtime_error::runtime_error(this_00,"ForNode.iterable is null"); } else { if (*(long *)(this + 0x58) != 0) { Expression::evaluate(local_70,*(shared_ptr **)(this + 0x38)); local_88 = (code *)0x0; uStack_80 = 0; local_98 = 0; uStack_90 = 0; local_b0 = 0; /* try { // try from 0019e2a8 to 0019e2b1 has its CatchHandler @ 0019e43e */ local_b8 = (int8 *)operator_new(0x28); *local_b8 = local_70; local_b8[1] = this; local_b8[2] = param_2; local_b8[3] = param_1; local_b8[4] = &local_98; local_a0 = std:: _Function_handler<void(minja::Value&),minja::ForNode::do_render(std::__cxx11::ostringstream&,std::shared_ptr<minja::Context>const&)const::{lambda(minja::Value&)#1}> ::_M_invoke; local_a8 = std:: _Function_handler<void(minja::Value&),minja::ForNode::do_render(std::__cxx11::ostringstream&,std::shared_ptr<minja::Context>const&)const::{lambda(minja::Value&)#1}> ::_M_manager; if ((this[0x68] != (ForNode)0x0) && (local_78 = (int1 *)&local_b8, std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>:: operator=((function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)> *)&local_98, (_lambda_std__shared_ptr<minja::Context>_const__minja__ArgumentsValue___1_ *) &local_78), local_a8 == (code *)0x0)) { /* WARNING: Subroutine does not return */ /* try { // try from 0019e426 to 0019e42a has its CatchHandler @ 0019e443 */ std::__throw_bad_function_call(); } /* try { // try from 0019e311 to 0019e31a has its CatchHandler @ 0019e443 */ (*local_a0)(&local_b8,local_70); if (local_a8 != (code *)0x0) { /* try { // try from 0019e325 to 0019e331 has its CatchHandler @ 0019e43c */ (*local_a8)(&local_b8,&local_b8,3); } if (local_88 != (code *)0x0) { /* try { // try from 0019e33c to 0019e34a has its CatchHandler @ 0019e43a */ (*local_88)(&local_98,&local_98,3); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_30,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_30); if (local_38 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_38); } if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48); } if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58); } if (local_68 != (long *)0x0) { if (*PTR___libc_single_threaded_0022ff78 == '\0') { LOCK(); piVar1 = (int *)((long)local_68 + 0xc); iVar2 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar2 = *(int *)((long)local_68 + 0xc); *(int *)((long)local_68 + 0xc) = iVar2 + -1; } if (iVar2 == 1) { (**(code **)(*local_68 + 0x18))(); } } return; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0019e401 to 0019e40f has its CatchHandler @ 0019e42b */ std::runtime_error::runtime_error(this_00,"ForNode.body is null"); } /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_0022ffe8,PTR__runtime_error_0022ff50); }
17,662
getopt_double
eloqsql/mysys/my_getopt.c
static double getopt_double(char *arg, const struct my_option *optp, int *err) { double num; int error; char *end= arg + 1000; /* Big enough as *arg is \0 terminated */ num= my_strtod(arg, &end, &error); if (end[0] != 0 || error) { my_getopt_error_reporter(ERROR_LEVEL, "Invalid decimal value for option '%s'\n", optp->name); *err= EXIT_ARGUMENT_INVALID; return 0.0; } return getopt_double_limit_value(num, optp, NULL); }
O0
c
getopt_double: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax addq $0x3e8, %rax # imm = 0x3E8 movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rdi leaq -0x38(%rbp), %rsi leaq -0x2c(%rbp), %rdx callq 0x771a0 movsd %xmm0, -0x28(%rbp) movq -0x38(%rbp), %rax movsbl (%rax), %eax cmpl $0x0, %eax jne 0x2994a cmpl $0x0, -0x2c(%rbp) je 0x2997c leaq 0x1ac8ef(%rip), %rax # 0x1d6240 movq (%rax), %rcx movq -0x18(%rbp), %rax movq (%rax), %rdx xorl %edi, %edi leaq 0x57131(%rip), %rsi # 0x80a95 movb $0x0, %al callq *%rcx movq -0x20(%rbp), %rax movl $0xd, (%rax) xorps %xmm0, %xmm0 movsd %xmm0, -0x8(%rbp) jmp 0x29993 movsd -0x28(%rbp), %xmm0 movq -0x18(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x28820 movsd %xmm0, -0x8(%rbp) movsd -0x8(%rbp), %xmm0 addq $0x40, %rsp popq %rbp retq nop
getopt_double: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] add rax, 3E8h mov [rbp+var_38], rax mov rdi, [rbp+var_10] lea rsi, [rbp+var_38] lea rdx, [rbp+var_2C] call my_strtod movsd [rbp+var_28], xmm0 mov rax, [rbp+var_38] movsx eax, byte ptr [rax] cmp eax, 0 jnz short loc_2994A cmp [rbp+var_2C], 0 jz short loc_2997C loc_2994A: lea rax, my_getopt_error_reporter mov rcx, [rax] mov rax, [rbp+var_18] mov rdx, [rax] xor edi, edi lea rsi, aInvalidDecimal; "Invalid decimal value for option '%s'\n" mov al, 0 call rcx mov rax, [rbp+var_20] mov dword ptr [rax], 0Dh xorps xmm0, xmm0 movsd [rbp+var_8], xmm0 jmp short loc_29993 loc_2997C: movsd xmm0, [rbp+var_28] mov rdi, [rbp+var_18] xor eax, eax mov esi, eax call getopt_double_limit_value movsd [rbp+var_8], xmm0 loc_29993: movsd xmm0, [rbp+var_8] add rsp, 40h pop rbp retn
double getopt_double(long long a1, const char **a2, _DWORD *a3) { _BYTE *v4; // [rsp+8h] [rbp-38h] BYREF int v5; // [rsp+14h] [rbp-2Ch] BYREF double v6; // [rsp+18h] [rbp-28h] _DWORD *v7; // [rsp+20h] [rbp-20h] const char **v8; // [rsp+28h] [rbp-18h] long long v9; // [rsp+30h] [rbp-10h] v9 = a1; v8 = a2; v7 = a3; v4 = (_BYTE *)(a1 + 1000); v6 = my_strtod(a1, &v4, &v5); if ( !*v4 && !v5 ) return getopt_double_limit_value(v8, 0LL, v6); my_getopt_error_reporter(0, (long long)"Invalid decimal value for option '%s'\n", *v8); *v7 = 13; return 0.0; }
getopt_double: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x3e8 MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[RBP + -0x38] LEA RDX,[RBP + -0x2c] CALL 0x001771a0 MOVSD qword ptr [RBP + -0x28],XMM0 MOV RAX,qword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JNZ 0x0012994a CMP dword ptr [RBP + -0x2c],0x0 JZ 0x0012997c LAB_0012994a: LEA RAX,[0x2d6240] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RAX] XOR EDI,EDI LEA RSI,[0x180a95] MOV AL,0x0 CALL RCX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0xd XORPS XMM0,XMM0 MOVSD qword ptr [RBP + -0x8],XMM0 JMP 0x00129993 LAB_0012997c: MOVSD XMM0,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RBP + -0x18] XOR EAX,EAX MOV ESI,EAX CALL 0x00128820 MOVSD qword ptr [RBP + -0x8],XMM0 LAB_00129993: MOVSD XMM0,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
int8 getopt_double(long param_1,int8 *param_2,int4 *param_3) { char *local_40; int local_34; int8 local_30; int4 *local_28; int8 *local_20; long local_18; int8 local_10; local_40 = (char *)(param_1 + 1000); local_28 = param_3; local_20 = param_2; local_18 = param_1; local_30 = my_strtod(param_1,&local_40,&local_34); if ((*local_40 == '\0') && (local_34 == 0)) { local_10 = getopt_double_limit_value(local_30,local_20,0); } else { (*(code *)my_getopt_error_reporter)(0,"Invalid decimal value for option \'%s\'\n",*local_20); *local_28 = 0xd; local_10 = 0; } return local_10; }
17,663
Cache::printInfo(bool)
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp
void Cache::printInfo(bool verbose) { printf("---------- Cache Info -----------\n"); printf("Cache Size: %d bytes\n", this->policy.cacheSize); printf("Block Size: %d bytes\n", this->policy.blockSize); printf("Block Num: %d\n", this->policy.blockNum); printf("Associativiy: %d\n", this->policy.associativity); printf("Hit Latency: %d\n", this->policy.hitLatency); printf("Miss Latency: %d\n", this->policy.missLatency); if (verbose) { for (int j = 0; j < this->blocks.size(); ++j) { const Block &b = this->blocks[j]; printf("Block %d: tag 0x%x id %d %s %s (last ref %d)\n", j, b.tag, b.id, b.valid ? "valid" : "invalid", b.modified ? "modified" : "unmodified", b.lastReference); // printf("Data: "); // for (uint8_t d : b.data) // printf("%d ", d); // printf("\n"); } } }
O0
cpp
Cache::printInfo(bool): subq $0x38, %rsp movb %sil, %al movq %rdi, 0x30(%rsp) andb $0x1, %al movb %al, 0x2f(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x18(%rsp) leaq 0x3278(%rip), %rdi # 0x82bb movb $0x0, %al callq 0x2040 movq 0x18(%rsp), %rax movl 0x38(%rax), %esi leaq 0x3285(%rip), %rdi # 0x82de movb $0x0, %al callq 0x2040 movq 0x18(%rsp), %rax movl 0x3c(%rax), %esi leaq 0x3285(%rip), %rdi # 0x82f4 movb $0x0, %al callq 0x2040 movq 0x18(%rsp), %rax movl 0x40(%rax), %esi leaq 0x3285(%rip), %rdi # 0x830a movb $0x0, %al callq 0x2040 movq 0x18(%rsp), %rax movl 0x44(%rax), %esi leaq 0x327e(%rip), %rdi # 0x8319 movb $0x0, %al callq 0x2040 movq 0x18(%rsp), %rax movl 0x48(%rax), %esi leaq 0x327a(%rip), %rdi # 0x832b movb $0x0, %al callq 0x2040 movq 0x18(%rsp), %rax movl 0x4c(%rax), %esi leaq 0x3275(%rip), %rdi # 0x833c movb $0x0, %al callq 0x2040 testb $0x1, 0x2f(%rsp) je 0x519e movl $0x0, 0x28(%rsp) movq 0x18(%rsp), %rdi movslq 0x28(%rsp), %rax movq %rax, 0x10(%rsp) addq $0x50, %rdi callq 0x5750 movq %rax, %rcx movq 0x10(%rsp), %rax cmpq %rcx, %rax jae 0x519c movq 0x18(%rsp), %rdi addq $0x50, %rdi movslq 0x28(%rsp), %rsi callq 0x5710 movq %rax, 0x20(%rsp) movl 0x28(%rsp), %esi movq 0x20(%rsp), %rax movl 0x4(%rax), %edx movq 0x20(%rsp), %rax movl 0x8(%rax), %ecx movq 0x20(%rsp), %rax movb (%rax), %dil leaq 0x3237(%rip), %r8 # 0x837c leaq 0x3232(%rip), %rax # 0x837e testb $0x1, %dil cmovneq %rax, %r8 movq 0x20(%rsp), %rax movb 0x1(%rax), %dil leaq 0x3220(%rip), %r9 # 0x8384 leaq 0x321b(%rip), %rax # 0x8386 testb $0x1, %dil cmovneq %rax, %r9 movq 0x20(%rsp), %rax movl 0x10(%rax), %eax leaq 0x31cc(%rip), %rdi # 0x834e movl %eax, (%rsp) movb $0x0, %al callq 0x2040 movl 0x28(%rsp), %eax addl $0x1, %eax movl %eax, 0x28(%rsp) jmp 0x50e1 jmp 0x519e addq $0x38, %rsp retq nopw %cs:(%rax,%rax)
_ZN5Cache9printInfoEb: sub rsp, 38h mov al, sil mov [rsp+38h+var_8], rdi and al, 1 mov [rsp+38h+var_9], al mov rax, [rsp+38h+var_8] mov [rsp+38h+var_20], rax lea rdi, aCacheInfo; "---------- Cache Info -----------\n" mov al, 0 call _printf mov rax, [rsp+38h+var_20] mov esi, [rax+38h] lea rdi, aCacheSizeDByte; "Cache Size: %d bytes\n" mov al, 0 call _printf mov rax, [rsp+38h+var_20] mov esi, [rax+3Ch] lea rdi, aBlockSizeDByte; "Block Size: %d bytes\n" mov al, 0 call _printf mov rax, [rsp+38h+var_20] mov esi, [rax+40h] lea rdi, aBlockNumD; "Block Num: %d\n" mov al, 0 call _printf mov rax, [rsp+38h+var_20] mov esi, [rax+44h] lea rdi, aAssociativiyD; "Associativiy: %d\n" mov al, 0 call _printf mov rax, [rsp+38h+var_20] mov esi, [rax+48h] lea rdi, aHitLatencyD; "Hit Latency: %d\n" mov al, 0 call _printf mov rax, [rsp+38h+var_20] mov esi, [rax+4Ch] lea rdi, aMissLatencyD; "Miss Latency: %d\n" mov al, 0 call _printf test [rsp+38h+var_9], 1 jz loc_519E mov [rsp+38h+var_10], 0 loc_50E1: mov rdi, [rsp+38h+var_20] movsxd rax, [rsp+38h+var_10] mov [rsp+38h+var_28], rax add rdi, 50h ; 'P' call _ZNKSt6vectorIN5Cache5BlockESaIS1_EE4sizeEv; std::vector<Cache::Block>::size(void) mov rcx, rax mov rax, [rsp+38h+var_28] cmp rax, rcx jnb loc_519C mov rdi, [rsp+38h+var_20] add rdi, 50h ; 'P' movsxd rsi, [rsp+38h+var_10] call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov [rsp+38h+var_18], rax mov esi, [rsp+38h+var_10] mov rax, [rsp+38h+var_18] mov edx, [rax+4] mov rax, [rsp+38h+var_18] mov ecx, [rax+8] mov rax, [rsp+38h+var_18] mov dil, [rax] lea r8, aInvalid; "invalid" lea rax, aInvalid+2; "valid" test dil, 1 cmovnz r8, rax mov rax, [rsp+38h+var_18] mov dil, [rax+1] lea r9, aUnmodified; "unmodified" lea rax, aUnmodified+2; "modified" test dil, 1 cmovnz r9, rax mov rax, [rsp+38h+var_18] mov eax, [rax+10h] lea rdi, aBlockDTag0xXId; "Block %d: tag 0x%x id %d %s %s (last re"... mov [rsp+38h+var_38], eax mov al, 0 call _printf mov eax, [rsp+38h+var_10] add eax, 1 mov [rsp+38h+var_10], eax jmp loc_50E1 loc_519C: jmp short $+2 loc_519E: add rsp, 38h retn
long long Cache::printInfo(Cache *this, char a2) { long long result; // rax unsigned long long v3; // rcx const char *v4; // r8 const char *v5; // r9 long long v6; // [rsp+20h] [rbp-18h] int i; // [rsp+28h] [rbp-10h] printf("---------- Cache Info -----------\n"); printf("Cache Size: %d bytes\n", *((_DWORD *)this + 14)); printf("Block Size: %d bytes\n", *((_DWORD *)this + 15)); printf("Block Num: %d\n", *((_DWORD *)this + 16)); printf("Associativiy: %d\n", *((_DWORD *)this + 17)); printf("Hit Latency: %d\n", *((_DWORD *)this + 18)); result = printf("Miss Latency: %d\n", *((_DWORD *)this + 19)); if ( (a2 & 1) != 0 ) { for ( i = 0; ; ++i ) { v3 = std::vector<Cache::Block>::size((char *)this + 80); result = i; if ( i >= v3 ) break; v6 = std::vector<Cache::Block>::operator[]((char *)this + 80, i); v4 = "invalid"; if ( (*(_BYTE *)v6 & 1) != 0 ) v4 = "valid"; v5 = "unmodified"; if ( (*(_BYTE *)(v6 + 1) & 1) != 0 ) v5 = "modified"; printf( "Block %d: tag 0x%x id %d %s %s (last ref %d)\n", i, *(_DWORD *)(v6 + 4), *(_DWORD *)(v6 + 8), v4, v5, *(_DWORD *)(v6 + 16)); } } return result; }
printInfo: SUB RSP,0x38 MOV AL,SIL MOV qword ptr [RSP + 0x30],RDI AND AL,0x1 MOV byte ptr [RSP + 0x2f],AL MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x18],RAX LEA RDI,[0x1082bb] MOV AL,0x0 CALL 0x00102040 MOV RAX,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RAX + 0x38] LEA RDI,[0x1082de] MOV AL,0x0 CALL 0x00102040 MOV RAX,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RAX + 0x3c] LEA RDI,[0x1082f4] MOV AL,0x0 CALL 0x00102040 MOV RAX,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RAX + 0x40] LEA RDI,[0x10830a] MOV AL,0x0 CALL 0x00102040 MOV RAX,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RAX + 0x44] LEA RDI,[0x108319] MOV AL,0x0 CALL 0x00102040 MOV RAX,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RAX + 0x48] LEA RDI,[0x10832b] MOV AL,0x0 CALL 0x00102040 MOV RAX,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RAX + 0x4c] LEA RDI,[0x10833c] MOV AL,0x0 CALL 0x00102040 TEST byte ptr [RSP + 0x2f],0x1 JZ 0x0010519e MOV dword ptr [RSP + 0x28],0x0 LAB_001050e1: MOV RDI,qword ptr [RSP + 0x18] MOVSXD RAX,dword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x10],RAX ADD RDI,0x50 CALL 0x00105750 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] CMP RAX,RCX JNC 0x0010519c MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x50 MOVSXD RSI,dword ptr [RSP + 0x28] CALL 0x00105710 MOV qword ptr [RSP + 0x20],RAX MOV ESI,dword ptr [RSP + 0x28] MOV RAX,qword ptr [RSP + 0x20] MOV EDX,dword ptr [RAX + 0x4] MOV RAX,qword ptr [RSP + 0x20] MOV ECX,dword ptr [RAX + 0x8] MOV RAX,qword ptr [RSP + 0x20] MOV DIL,byte ptr [RAX] LEA R8,[0x10837c] LEA RAX,[0x10837e] TEST DIL,0x1 CMOVNZ R8,RAX MOV RAX,qword ptr [RSP + 0x20] MOV DIL,byte ptr [RAX + 0x1] LEA R9,[0x108384] LEA RAX,[0x108386] TEST DIL,0x1 CMOVNZ R9,RAX MOV RAX,qword ptr [RSP + 0x20] MOV EAX,dword ptr [RAX + 0x10] LEA RDI,[0x10834e] MOV dword ptr [RSP],EAX MOV AL,0x0 CALL 0x00102040 MOV EAX,dword ptr [RSP + 0x28] ADD EAX,0x1 MOV dword ptr [RSP + 0x28],EAX JMP 0x001050e1 LAB_0010519c: JMP 0x0010519e LAB_0010519e: ADD RSP,0x38 RET
/* Cache::printInfo(bool) */ void __thiscall Cache::printInfo(Cache *this,bool param_1) { ulong uVar1; byte *pbVar2; char *pcVar3; char *pcVar4; uint local_10; printf("---------- Cache Info -----------\n"); printf("Cache Size: %d bytes\n",(ulong)*(uint *)(this + 0x38)); printf("Block Size: %d bytes\n",(ulong)*(uint *)(this + 0x3c)); printf("Block Num: %d\n",(ulong)*(uint *)(this + 0x40)); printf("Associativiy: %d\n",(ulong)*(uint *)(this + 0x44)); printf("Hit Latency: %d\n",(ulong)*(uint *)(this + 0x48)); printf("Miss Latency: %d\n",(ulong)*(uint *)(this + 0x4c)); if (param_1) { for (local_10 = 0; uVar1 = std::vector<Cache::Block,std::allocator<Cache::Block>>::size ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x50)), (ulong)(long)(int)local_10 < uVar1; local_10 = local_10 + 1) { pbVar2 = (byte *)std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x50) ,(long)(int)local_10); pcVar3 = "invalid"; if ((*pbVar2 & 1) != 0) { pcVar3 = "valid"; } pcVar4 = "unmodified"; if ((pbVar2[1] & 1) != 0) { pcVar4 = "modified"; } printf("Block %d: tag 0x%x id %d %s %s (last ref %d)\n",(ulong)local_10, (ulong)*(uint *)(pbVar2 + 4),(ulong)*(uint *)(pbVar2 + 8),pcVar3,pcVar4, *(int4 *)(pbVar2 + 0x10)); } } return; }
17,664
Cache::printInfo(bool)
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp
void Cache::printInfo(bool verbose) { printf("---------- Cache Info -----------\n"); printf("Cache Size: %d bytes\n", this->policy.cacheSize); printf("Block Size: %d bytes\n", this->policy.blockSize); printf("Block Num: %d\n", this->policy.blockNum); printf("Associativiy: %d\n", this->policy.associativity); printf("Hit Latency: %d\n", this->policy.hitLatency); printf("Miss Latency: %d\n", this->policy.missLatency); if (verbose) { for (int j = 0; j < this->blocks.size(); ++j) { const Block &b = this->blocks[j]; printf("Block %d: tag 0x%x id %d %s %s (last ref %d)\n", j, b.tag, b.id, b.valid ? "valid" : "invalid", b.modified ? "modified" : "unmodified", b.lastReference); // printf("Data: "); // for (uint8_t d : b.data) // printf("%d ", d); // printf("\n"); } } }
O1
cpp
Cache::printInfo(bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %esi, %ebp movq %rdi, %rbx leaq 0x15ee(%rip), %rdi # 0x54e1 callq 0x2260 movl 0x38(%rbx), %esi leaq 0x1411(%rip), %rdi # 0x5313 xorl %eax, %eax callq 0x2040 movl 0x3c(%rbx), %esi leaq 0x1416(%rip), %rdi # 0x5329 xorl %eax, %eax callq 0x2040 movl 0x40(%rbx), %esi leaq 0x141b(%rip), %rdi # 0x533f xorl %eax, %eax callq 0x2040 movl 0x44(%rbx), %esi leaq 0x1419(%rip), %rdi # 0x534e xorl %eax, %eax callq 0x2040 movl 0x48(%rbx), %esi leaq 0x141a(%rip), %rdi # 0x5360 xorl %eax, %eax callq 0x2040 movl 0x4c(%rbx), %esi leaq 0x141a(%rip), %rdi # 0x5371 xorl %eax, %eax callq 0x2040 testl %ebp, %ebp je 0x3ff5 movq 0x50(%rbx), %rax cmpq %rax, 0x58(%rbx) je 0x3ff5 leaq 0x143e(%rip), %r12 # 0x53b9 leaq 0x1401(%rip), %r14 # 0x5383 movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB xorl %ebp, %ebp xorl %r15d, %r15d movl 0x4(%rax,%rbp), %edx movl 0x8(%rax,%rbp), %ecx cmpb $0x0, (%rax,%rbp) leaq 0x140d(%rip), %r8 # 0x53b1 leaq 0x1408(%rip), %rsi # 0x53b3 cmovneq %rsi, %r8 cmpb $0x0, 0x1(%rax,%rbp) movq %r12, %r9 leaq 0x13fd(%rip), %rsi # 0x53bb cmovneq %rsi, %r9 movl 0x10(%rax,%rbp), %eax movl %eax, (%rsp) movq %r14, %rdi movl %r15d, %esi xorl %eax, %eax callq 0x2040 incq %r15 movq 0x50(%rbx), %rax movq 0x58(%rbx), %rcx subq %rax, %rcx sarq $0x4, %rcx imulq %r13, %rcx addq $0x30, %rbp cmpq %r15, %rcx ja 0x3f91 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN5Cache9printInfoEb: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, esi mov rbx, rdi lea rdi, aCacheInfo; "---------- Cache Info -----------" call _puts mov esi, [rbx+38h] lea rdi, aCacheSizeDByte; "Cache Size: %d bytes\n" xor eax, eax call _printf mov esi, [rbx+3Ch] lea rdi, aBlockSizeDByte; "Block Size: %d bytes\n" xor eax, eax call _printf mov esi, [rbx+40h] lea rdi, aBlockNumD; "Block Num: %d\n" xor eax, eax call _printf mov esi, [rbx+44h] lea rdi, aAssociativiyD; "Associativiy: %d\n" xor eax, eax call _printf mov esi, [rbx+48h] lea rdi, aHitLatencyD; "Hit Latency: %d\n" xor eax, eax call _printf mov esi, [rbx+4Ch] lea rdi, aMissLatencyD; "Miss Latency: %d\n" xor eax, eax call _printf test ebp, ebp jz loc_3FF5 mov rax, [rbx+50h] cmp [rbx+58h], rax jz loc_3FF5 lea r12, aUnmodified; "unmodified" lea r14, aBlockDTag0xXId; "Block %d: tag 0x%x id %d %s %s (last re"... mov r13, 0AAAAAAAAAAAAAAABh xor ebp, ebp xor r15d, r15d loc_3F91: mov edx, [rax+rbp+4] mov ecx, [rax+rbp+8] cmp byte ptr [rax+rbp], 0 lea r8, aInvalid; "invalid" lea rsi, aInvalid+2; "valid" cmovnz r8, rsi cmp byte ptr [rax+rbp+1], 0 mov r9, r12 lea rsi, aUnmodified+2; "modified" cmovnz r9, rsi mov eax, [rax+rbp+10h] mov [rsp+38h+var_38], eax mov rdi, r14 mov esi, r15d xor eax, eax call _printf inc r15 mov rax, [rbx+50h] mov rcx, [rbx+58h] sub rcx, rax sar rcx, 4 imul rcx, r13 add rbp, 30h ; '0' cmp rcx, r15 ja short loc_3F91 loc_3FF5: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long Cache::printInfo(Cache *this, long long a2, long long a3) { long long result; // rax long long v4; // rbp unsigned long long v5; // r15 const char *v6; // r8 const char *v7; // r9 puts("---------- Cache Info -----------", a2, a3); printf("Cache Size: %d bytes\n", *((_DWORD *)this + 14)); printf("Block Size: %d bytes\n", *((_DWORD *)this + 15)); printf("Block Num: %d\n", *((_DWORD *)this + 16)); printf("Associativiy: %d\n", *((_DWORD *)this + 17)); printf("Hit Latency: %d\n", *((_DWORD *)this + 18)); result = printf("Miss Latency: %d\n", *((_DWORD *)this + 19)); if ( (_DWORD)a2 ) { result = *((_QWORD *)this + 10); if ( *((_QWORD *)this + 11) != result ) { v4 = 0LL; v5 = 0LL; do { v6 = "invalid"; if ( *(_BYTE *)(result + v4) ) v6 = "valid"; v7 = "unmodified"; if ( *(_BYTE *)(result + v4 + 1) ) v7 = "modified"; printf( "Block %d: tag 0x%x id %d %s %s (last ref %d)\n", v5++, *(_DWORD *)(result + v4 + 4), *(_DWORD *)(result + v4 + 8), v6, v7, *(_DWORD *)(result + v4 + 16)); result = *((_QWORD *)this + 10); v4 += 48LL; } while ( 0xAAAAAAAAAAAAAAABLL * ((*((_QWORD *)this + 11) - result) >> 4) > v5 ); } } return result; }
printInfo: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBP,ESI MOV RBX,RDI LEA RDI,[0x1054e1] CALL 0x00102260 MOV ESI,dword ptr [RBX + 0x38] LEA RDI,[0x105313] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x3c] LEA RDI,[0x105329] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x40] LEA RDI,[0x10533f] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x44] LEA RDI,[0x10534e] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x48] LEA RDI,[0x105360] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x4c] LEA RDI,[0x105371] XOR EAX,EAX CALL 0x00102040 TEST EBP,EBP JZ 0x00103ff5 MOV RAX,qword ptr [RBX + 0x50] CMP qword ptr [RBX + 0x58],RAX JZ 0x00103ff5 LEA R12,[0x1053b9] LEA R14,[0x105383] MOV R13,-0x5555555555555555 XOR EBP,EBP XOR R15D,R15D LAB_00103f91: MOV EDX,dword ptr [RAX + RBP*0x1 + 0x4] MOV ECX,dword ptr [RAX + RBP*0x1 + 0x8] CMP byte ptr [RAX + RBP*0x1],0x0 LEA R8,[0x1053b1] LEA RSI,[0x1053b3] CMOVNZ R8,RSI CMP byte ptr [RAX + RBP*0x1 + 0x1],0x0 MOV R9,R12 LEA RSI,[0x1053bb] CMOVNZ R9,RSI MOV EAX,dword ptr [RAX + RBP*0x1 + 0x10] MOV dword ptr [RSP],EAX MOV RDI,R14 MOV ESI,R15D XOR EAX,EAX CALL 0x00102040 INC R15 MOV RAX,qword ptr [RBX + 0x50] MOV RCX,qword ptr [RBX + 0x58] SUB RCX,RAX SAR RCX,0x4 IMUL RCX,R13 ADD RBP,0x30 CMP RCX,R15 JA 0x00103f91 LAB_00103ff5: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Cache::printInfo(bool) */ void __thiscall Cache::printInfo(Cache *this,bool param_1) { int8 in_RAX; long lVar1; ulong uVar2; long lVar3; int7 in_register_00000031; char *pcVar4; char *pcVar5; ulong uVar6; puts("---------- Cache Info -----------"); printf("Cache Size: %d bytes\n",(ulong)*(uint *)(this + 0x38)); printf("Block Size: %d bytes\n",(ulong)*(uint *)(this + 0x3c)); printf("Block Num: %d\n",(ulong)*(uint *)(this + 0x40)); printf("Associativiy: %d\n",(ulong)*(uint *)(this + 0x44)); printf("Hit Latency: %d\n",(ulong)*(uint *)(this + 0x48)); printf("Miss Latency: %d\n",(ulong)*(uint *)(this + 0x4c)); if (((int)CONCAT71(in_register_00000031,param_1) != 0) && (lVar1 = *(long *)(this + 0x50), *(long *)(this + 0x58) != lVar1)) { lVar3 = 0; uVar6 = 0; do { pcVar4 = "invalid"; if (*(char *)(lVar1 + lVar3) != '\0') { pcVar4 = "valid"; } pcVar5 = "unmodified"; if (*(char *)(lVar1 + 1 + lVar3) != '\0') { pcVar5 = "modified"; } in_RAX = CONCAT44((int)((ulong)in_RAX >> 0x20),*(int4 *)(lVar1 + 0x10 + lVar3)); printf("Block %d: tag 0x%x id %d %s %s (last ref %d)\n",uVar6 & 0xffffffff, (ulong)*(uint *)(lVar1 + 4 + lVar3),(ulong)*(uint *)(lVar1 + 8 + lVar3),pcVar4,pcVar5, in_RAX); uVar6 = uVar6 + 1; lVar1 = *(long *)(this + 0x50); uVar2 = (*(long *)(this + 0x58) - lVar1 >> 4) * -0x5555555555555555; lVar3 = lVar3 + 0x30; } while (uVar6 <= uVar2 && uVar2 - uVar6 != 0); } return; }
17,665
Cache::printInfo(bool)
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp
void Cache::printInfo(bool verbose) { printf("---------- Cache Info -----------\n"); printf("Cache Size: %d bytes\n", this->policy.cacheSize); printf("Block Size: %d bytes\n", this->policy.blockSize); printf("Block Num: %d\n", this->policy.blockNum); printf("Associativiy: %d\n", this->policy.associativity); printf("Hit Latency: %d\n", this->policy.hitLatency); printf("Miss Latency: %d\n", this->policy.missLatency); if (verbose) { for (int j = 0; j < this->blocks.size(); ++j) { const Block &b = this->blocks[j]; printf("Block %d: tag 0x%x id %d %s %s (last ref %d)\n", j, b.tag, b.id, b.valid ? "valid" : "invalid", b.modified ? "modified" : "unmodified", b.lastReference); // printf("Data: "); // for (uint8_t d : b.data) // printf("%d ", d); // printf("\n"); } } }
O2
cpp
Cache::printInfo(bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %esi, %ebp movq %rdi, %rbx leaq 0x19e1(%rip), %rdi # 0x54ce callq 0x2240 movl 0x38(%rbx), %esi leaq 0x1804(%rip), %rdi # 0x5300 xorl %eax, %eax callq 0x2040 movl 0x3c(%rbx), %esi leaq 0x1809(%rip), %rdi # 0x5316 xorl %eax, %eax callq 0x2040 movl 0x40(%rbx), %esi leaq 0x180e(%rip), %rdi # 0x532c xorl %eax, %eax callq 0x2040 movl 0x44(%rbx), %esi leaq 0x180c(%rip), %rdi # 0x533b xorl %eax, %eax callq 0x2040 movl 0x48(%rbx), %esi leaq 0x180d(%rip), %rdi # 0x534d xorl %eax, %eax callq 0x2040 movl 0x4c(%rbx), %esi leaq 0x180d(%rip), %rdi # 0x535e xorl %eax, %eax callq 0x2040 testl %ebp, %ebp je 0x3bd5 leaq 0x1845(%rip), %r13 # 0x53a8 leaq 0x183c(%rip), %r12 # 0x53a6 leaq 0x17ff(%rip), %r14 # 0x5370 xorl %ebp, %ebp xorl %r15d, %r15d movq 0x50(%rbx), %rsi movq 0x58(%rbx), %rax subq %rsi, %rax cqto pushq $0x30 popq %rcx idivq %rcx cmpq %r15, %rax jbe 0x3bd5 movl 0x4(%rsi,%rbp), %edx movl 0x8(%rsi,%rbp), %ecx cmpb $0x0, (%rsi,%rbp) leaq 0x17fd(%rip), %r8 # 0x539e leaq 0x17f8(%rip), %rax # 0x53a0 cmovneq %rax, %r8 cmpb $0x0, 0x1(%rsi,%rbp) movq %r12, %r9 cmovneq %r13, %r9 movl 0x10(%rsi,%rbp), %eax movl %eax, (%rsp) movq %r14, %rdi movl %r15d, %esi xorl %eax, %eax callq 0x2040 incq %r15 addq $0x30, %rbp jmp 0x3b76 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN5Cache9printInfoEb: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, esi mov rbx, rdi lea rdi, aCacheInfo; "---------- Cache Info -----------" call _puts mov esi, [rbx+38h] lea rdi, aCacheSizeDByte; "Cache Size: %d bytes\n" xor eax, eax call _printf mov esi, [rbx+3Ch] lea rdi, aBlockSizeDByte; "Block Size: %d bytes\n" xor eax, eax call _printf mov esi, [rbx+40h] lea rdi, aBlockNumD; "Block Num: %d\n" xor eax, eax call _printf mov esi, [rbx+44h] lea rdi, aAssociativiyD; "Associativiy: %d\n" xor eax, eax call _printf mov esi, [rbx+48h] lea rdi, aHitLatencyD; "Hit Latency: %d\n" xor eax, eax call _printf mov esi, [rbx+4Ch] lea rdi, aMissLatencyD; "Miss Latency: %d\n" xor eax, eax call _printf test ebp, ebp jz short loc_3BD5 lea r13, aUnmodified+2; "modified" lea r12, aUnmodified; "unmodified" lea r14, aBlockDTag0xXId; "Block %d: tag 0x%x id %d %s %s (last re"... xor ebp, ebp xor r15d, r15d loc_3B76: mov rsi, [rbx+50h] mov rax, [rbx+58h] sub rax, rsi cqo push 30h ; '0' pop rcx idiv rcx cmp rax, r15 jbe short loc_3BD5 mov edx, [rsi+rbp+4] mov ecx, [rsi+rbp+8] cmp byte ptr [rsi+rbp], 0 lea r8, aInvalid; "invalid" lea rax, aInvalid+2; "valid" cmovnz r8, rax cmp byte ptr [rsi+rbp+1], 0 mov r9, r12 cmovnz r9, r13 mov eax, [rsi+rbp+10h] mov [rsp+38h+var_38], eax mov rdi, r14 mov esi, r15d xor eax, eax call _printf inc r15 add rbp, 30h ; '0' jmp short loc_3B76 loc_3BD5: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long Cache::printInfo(Cache *this, int a2) { unsigned long long result; // rax long long v3; // rbp unsigned long long i; // r15 long long v5; // rsi const char *v6; // r8 const char *v7; // r9 puts("---------- Cache Info -----------"); printf("Cache Size: %d bytes\n", *((_DWORD *)this + 14)); printf("Block Size: %d bytes\n", *((_DWORD *)this + 15)); printf("Block Num: %d\n", *((_DWORD *)this + 16)); printf("Associativiy: %d\n", *((_DWORD *)this + 17)); printf("Hit Latency: %d\n", *((_DWORD *)this + 18)); result = printf("Miss Latency: %d\n", *((_DWORD *)this + 19)); if ( a2 ) { v3 = 0LL; for ( i = 0LL; ; ++i ) { v5 = *((_QWORD *)this + 10); result = (*((_QWORD *)this + 11) - v5) / 48; if ( result <= i ) break; v6 = "invalid"; if ( *(_BYTE *)(v5 + v3) ) v6 = "valid"; v7 = "unmodified"; if ( *(_BYTE *)(v5 + v3 + 1) ) v7 = "modified"; printf( "Block %d: tag 0x%x id %d %s %s (last ref %d)\n", i, *(_DWORD *)(v5 + v3 + 4), *(_DWORD *)(v5 + v3 + 8), v6, v7, *(_DWORD *)(v5 + v3 + 16)); v3 += 48LL; } } return result; }
printInfo: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBP,ESI MOV RBX,RDI LEA RDI,[0x1054ce] CALL 0x00102240 MOV ESI,dword ptr [RBX + 0x38] LEA RDI,[0x105300] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x3c] LEA RDI,[0x105316] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x40] LEA RDI,[0x10532c] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x44] LEA RDI,[0x10533b] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x48] LEA RDI,[0x10534d] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x4c] LEA RDI,[0x10535e] XOR EAX,EAX CALL 0x00102040 TEST EBP,EBP JZ 0x00103bd5 LEA R13,[0x1053a8] LEA R12,[0x1053a6] LEA R14,[0x105370] XOR EBP,EBP XOR R15D,R15D LAB_00103b76: MOV RSI,qword ptr [RBX + 0x50] MOV RAX,qword ptr [RBX + 0x58] SUB RAX,RSI CQO PUSH 0x30 POP RCX IDIV RCX CMP RAX,R15 JBE 0x00103bd5 MOV EDX,dword ptr [RSI + RBP*0x1 + 0x4] MOV ECX,dword ptr [RSI + RBP*0x1 + 0x8] CMP byte ptr [RSI + RBP*0x1],0x0 LEA R8,[0x10539e] LEA RAX,[0x1053a0] CMOVNZ R8,RAX CMP byte ptr [RSI + RBP*0x1 + 0x1],0x0 MOV R9,R12 CMOVNZ R9,R13 MOV EAX,dword ptr [RSI + RBP*0x1 + 0x10] MOV dword ptr [RSP],EAX MOV RDI,R14 MOV ESI,R15D XOR EAX,EAX CALL 0x00102040 INC R15 ADD RBP,0x30 JMP 0x00103b76 LAB_00103bd5: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Cache::printInfo(bool) */ void __thiscall Cache::printInfo(Cache *this,bool param_1) { long lVar1; int8 in_RAX; long lVar2; int7 in_register_00000031; char *pcVar3; char *pcVar4; ulong uVar5; puts("---------- Cache Info -----------"); printf("Cache Size: %d bytes\n",(ulong)*(uint *)(this + 0x38)); printf("Block Size: %d bytes\n",(ulong)*(uint *)(this + 0x3c)); printf("Block Num: %d\n",(ulong)*(uint *)(this + 0x40)); printf("Associativiy: %d\n",(ulong)*(uint *)(this + 0x44)); printf("Hit Latency: %d\n",(ulong)*(uint *)(this + 0x48)); printf("Miss Latency: %d\n",(ulong)*(uint *)(this + 0x4c)); if ((int)CONCAT71(in_register_00000031,param_1) != 0) { lVar2 = 0; uVar5 = 0; while( true ) { lVar1 = *(long *)(this + 0x50); if ((ulong)((*(long *)(this + 0x58) - lVar1) / 0x30) <= uVar5) break; pcVar3 = "invalid"; if (*(char *)(lVar1 + lVar2) != '\0') { pcVar3 = "valid"; } pcVar4 = "unmodified"; if (*(char *)(lVar1 + 1 + lVar2) != '\0') { pcVar4 = "modified"; } in_RAX = CONCAT44((int)((ulong)in_RAX >> 0x20),*(int4 *)(lVar1 + 0x10 + lVar2)); printf("Block %d: tag 0x%x id %d %s %s (last ref %d)\n",uVar5 & 0xffffffff, (ulong)*(uint *)(lVar1 + 4 + lVar2),(ulong)*(uint *)(lVar1 + 8 + lVar2),pcVar3,pcVar4, in_RAX); uVar5 = uVar5 + 1; lVar2 = lVar2 + 0x30; } } return; }
17,666
Cache::printInfo(bool)
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp
void Cache::printInfo(bool verbose) { printf("---------- Cache Info -----------\n"); printf("Cache Size: %d bytes\n", this->policy.cacheSize); printf("Block Size: %d bytes\n", this->policy.blockSize); printf("Block Num: %d\n", this->policy.blockNum); printf("Associativiy: %d\n", this->policy.associativity); printf("Hit Latency: %d\n", this->policy.hitLatency); printf("Miss Latency: %d\n", this->policy.missLatency); if (verbose) { for (int j = 0; j < this->blocks.size(); ++j) { const Block &b = this->blocks[j]; printf("Block %d: tag 0x%x id %d %s %s (last ref %d)\n", j, b.tag, b.id, b.valid ? "valid" : "invalid", b.modified ? "modified" : "unmodified", b.lastReference); // printf("Data: "); // for (uint8_t d : b.data) // printf("%d ", d); // printf("\n"); } } }
O3
cpp
Cache::printInfo(bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %esi, %ebp movq %rdi, %rbx leaq 0x16f8(%rip), %rdi # 0x54e1 callq 0x2260 movl 0x38(%rbx), %esi leaq 0x151b(%rip), %rdi # 0x5313 xorl %eax, %eax callq 0x2040 movl 0x3c(%rbx), %esi leaq 0x1520(%rip), %rdi # 0x5329 xorl %eax, %eax callq 0x2040 movl 0x40(%rbx), %esi leaq 0x1525(%rip), %rdi # 0x533f xorl %eax, %eax callq 0x2040 movl 0x44(%rbx), %esi leaq 0x1523(%rip), %rdi # 0x534e xorl %eax, %eax callq 0x2040 movl 0x48(%rbx), %esi leaq 0x1524(%rip), %rdi # 0x5360 xorl %eax, %eax callq 0x2040 movl 0x4c(%rbx), %esi leaq 0x1524(%rip), %rdi # 0x5371 xorl %eax, %eax callq 0x2040 testl %ebp, %ebp je 0x3eeb movq 0x50(%rbx), %rax cmpq %rax, 0x58(%rbx) je 0x3eeb leaq 0x1548(%rip), %r12 # 0x53b9 leaq 0x150b(%rip), %r14 # 0x5383 movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB xorl %ebp, %ebp xorl %r15d, %r15d movl 0x4(%rax,%rbp), %edx movl 0x8(%rax,%rbp), %ecx cmpb $0x0, (%rax,%rbp) leaq 0x1517(%rip), %r8 # 0x53b1 leaq 0x1512(%rip), %rsi # 0x53b3 cmovneq %rsi, %r8 cmpb $0x0, 0x1(%rax,%rbp) movq %r12, %r9 leaq 0x1507(%rip), %rsi # 0x53bb cmovneq %rsi, %r9 movl 0x10(%rax,%rbp), %eax movl %eax, (%rsp) movq %r14, %rdi movl %r15d, %esi xorl %eax, %eax callq 0x2040 incq %r15 movq 0x50(%rbx), %rax movq 0x58(%rbx), %rcx subq %rax, %rcx sarq $0x4, %rcx imulq %r13, %rcx addq $0x30, %rbp cmpq %r15, %rcx ja 0x3e87 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN5Cache9printInfoEb: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, esi mov rbx, rdi lea rdi, aCacheInfo; "---------- Cache Info -----------" call _puts mov esi, [rbx+38h] lea rdi, aCacheSizeDByte; "Cache Size: %d bytes\n" xor eax, eax call _printf mov esi, [rbx+3Ch] lea rdi, aBlockSizeDByte; "Block Size: %d bytes\n" xor eax, eax call _printf mov esi, [rbx+40h] lea rdi, aBlockNumD; "Block Num: %d\n" xor eax, eax call _printf mov esi, [rbx+44h] lea rdi, aAssociativiyD; "Associativiy: %d\n" xor eax, eax call _printf mov esi, [rbx+48h] lea rdi, aHitLatencyD; "Hit Latency: %d\n" xor eax, eax call _printf mov esi, [rbx+4Ch] lea rdi, aMissLatencyD; "Miss Latency: %d\n" xor eax, eax call _printf test ebp, ebp jz loc_3EEB mov rax, [rbx+50h] cmp [rbx+58h], rax jz loc_3EEB lea r12, aUnmodified; "unmodified" lea r14, aBlockDTag0xXId; "Block %d: tag 0x%x id %d %s %s (last re"... mov r13, 0AAAAAAAAAAAAAAABh xor ebp, ebp xor r15d, r15d loc_3E87: mov edx, [rax+rbp+4] mov ecx, [rax+rbp+8] cmp byte ptr [rax+rbp], 0 lea r8, aInvalid; "invalid" lea rsi, aInvalid+2; "valid" cmovnz r8, rsi cmp byte ptr [rax+rbp+1], 0 mov r9, r12 lea rsi, aUnmodified+2; "modified" cmovnz r9, rsi mov eax, [rax+rbp+10h] mov [rsp+38h+var_38], eax mov rdi, r14 mov esi, r15d xor eax, eax call _printf inc r15 mov rax, [rbx+50h] mov rcx, [rbx+58h] sub rcx, rax sar rcx, 4 imul rcx, r13 add rbp, 30h ; '0' cmp rcx, r15 ja short loc_3E87 loc_3EEB: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long Cache::printInfo(Cache *this, long long a2, long long a3) { long long result; // rax long long v4; // rbp unsigned long long v5; // r15 const char *v6; // r8 const char *v7; // r9 puts("---------- Cache Info -----------", a2, a3); printf("Cache Size: %d bytes\n", *((_DWORD *)this + 14)); printf("Block Size: %d bytes\n", *((_DWORD *)this + 15)); printf("Block Num: %d\n", *((_DWORD *)this + 16)); printf("Associativiy: %d\n", *((_DWORD *)this + 17)); printf("Hit Latency: %d\n", *((_DWORD *)this + 18)); result = printf("Miss Latency: %d\n", *((_DWORD *)this + 19)); if ( (_DWORD)a2 ) { result = *((_QWORD *)this + 10); if ( *((_QWORD *)this + 11) != result ) { v4 = 0LL; v5 = 0LL; do { v6 = "invalid"; if ( *(_BYTE *)(result + v4) ) v6 = "valid"; v7 = "unmodified"; if ( *(_BYTE *)(result + v4 + 1) ) v7 = "modified"; printf( "Block %d: tag 0x%x id %d %s %s (last ref %d)\n", v5++, *(_DWORD *)(result + v4 + 4), *(_DWORD *)(result + v4 + 8), v6, v7, *(_DWORD *)(result + v4 + 16)); result = *((_QWORD *)this + 10); v4 += 48LL; } while ( 0xAAAAAAAAAAAAAAABLL * ((*((_QWORD *)this + 11) - result) >> 4) > v5 ); } } return result; }
printInfo: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBP,ESI MOV RBX,RDI LEA RDI,[0x1054e1] CALL 0x00102260 MOV ESI,dword ptr [RBX + 0x38] LEA RDI,[0x105313] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x3c] LEA RDI,[0x105329] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x40] LEA RDI,[0x10533f] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x44] LEA RDI,[0x10534e] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x48] LEA RDI,[0x105360] XOR EAX,EAX CALL 0x00102040 MOV ESI,dword ptr [RBX + 0x4c] LEA RDI,[0x105371] XOR EAX,EAX CALL 0x00102040 TEST EBP,EBP JZ 0x00103eeb MOV RAX,qword ptr [RBX + 0x50] CMP qword ptr [RBX + 0x58],RAX JZ 0x00103eeb LEA R12,[0x1053b9] LEA R14,[0x105383] MOV R13,-0x5555555555555555 XOR EBP,EBP XOR R15D,R15D LAB_00103e87: MOV EDX,dword ptr [RAX + RBP*0x1 + 0x4] MOV ECX,dword ptr [RAX + RBP*0x1 + 0x8] CMP byte ptr [RAX + RBP*0x1],0x0 LEA R8,[0x1053b1] LEA RSI,[0x1053b3] CMOVNZ R8,RSI CMP byte ptr [RAX + RBP*0x1 + 0x1],0x0 MOV R9,R12 LEA RSI,[0x1053bb] CMOVNZ R9,RSI MOV EAX,dword ptr [RAX + RBP*0x1 + 0x10] MOV dword ptr [RSP],EAX MOV RDI,R14 MOV ESI,R15D XOR EAX,EAX CALL 0x00102040 INC R15 MOV RAX,qword ptr [RBX + 0x50] MOV RCX,qword ptr [RBX + 0x58] SUB RCX,RAX SAR RCX,0x4 IMUL RCX,R13 ADD RBP,0x30 CMP RCX,R15 JA 0x00103e87 LAB_00103eeb: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Cache::printInfo(bool) */ void __thiscall Cache::printInfo(Cache *this,bool param_1) { int8 in_RAX; long lVar1; ulong uVar2; long lVar3; int7 in_register_00000031; char *pcVar4; char *pcVar5; ulong uVar6; puts("---------- Cache Info -----------"); printf("Cache Size: %d bytes\n",(ulong)*(uint *)(this + 0x38)); printf("Block Size: %d bytes\n",(ulong)*(uint *)(this + 0x3c)); printf("Block Num: %d\n",(ulong)*(uint *)(this + 0x40)); printf("Associativiy: %d\n",(ulong)*(uint *)(this + 0x44)); printf("Hit Latency: %d\n",(ulong)*(uint *)(this + 0x48)); printf("Miss Latency: %d\n",(ulong)*(uint *)(this + 0x4c)); if (((int)CONCAT71(in_register_00000031,param_1) != 0) && (lVar1 = *(long *)(this + 0x50), *(long *)(this + 0x58) != lVar1)) { lVar3 = 0; uVar6 = 0; do { pcVar4 = "invalid"; if (*(char *)(lVar1 + lVar3) != '\0') { pcVar4 = "valid"; } pcVar5 = "unmodified"; if (*(char *)(lVar1 + 1 + lVar3) != '\0') { pcVar5 = "modified"; } in_RAX = CONCAT44((int)((ulong)in_RAX >> 0x20),*(int4 *)(lVar1 + 0x10 + lVar3)); printf("Block %d: tag 0x%x id %d %s %s (last ref %d)\n",uVar6 & 0xffffffff, (ulong)*(uint *)(lVar1 + 4 + lVar3),(ulong)*(uint *)(lVar1 + 8 + lVar3),pcVar4,pcVar5, in_RAX); uVar6 = uVar6 + 1; lVar1 = *(long *)(this + 0x50); uVar2 = (*(long *)(this + 0x58) - lVar1 >> 4) * -0x5555555555555555; lVar3 = lVar3 + 0x30; } while (uVar6 <= uVar2 && uVar2 - uVar6 != 0); } return; }
17,667
google::protobuf::internal::EpsCopyInputStream::InitFrom(google::protobuf::io::ZeroCopyInputStream*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/parse_context.cc
const char* EpsCopyInputStream::InitFrom(io::ZeroCopyInputStream* zcis) { zcis_ = zcis; const void* data; int size; limit_ = INT_MAX; if (zcis->Next(&data, &size)) { overall_limit_ -= size; if (size > kSlopBytes) { auto ptr = static_cast<const char*>(data); limit_ -= size - kSlopBytes; limit_end_ = buffer_end_ = ptr + size - kSlopBytes; next_chunk_ = buffer_; if (aliasing_ == kOnPatch) aliasing_ = kNoDelta; return ptr; } else { limit_end_ = buffer_end_ = buffer_ + kSlopBytes; next_chunk_ = buffer_; auto ptr = buffer_ + 2 * kSlopBytes - size; std::memcpy(ptr, data, size); return ptr; } } overall_limit_ = 0; next_chunk_ = nullptr; size_ = 0; limit_end_ = buffer_end_ = buffer_; return buffer_; }
O3
cpp
google::protobuf::internal::EpsCopyInputStream::InitFrom(google::protobuf::io::ZeroCopyInputStream*): pushq %rbx subq $0x10, %rsp movq %rsi, %rax movq %rdi, %rbx movq %rsi, 0x20(%rdi) movl $0x7fffffff, 0x1c(%rdi) # imm = 0x7FFFFFFF movq (%rsi), %rcx leaq 0x8(%rsp), %rsi leaq 0x4(%rsp), %rdx movq %rax, %rdi callq *0x10(%rcx) testb %al, %al je 0x9efbb movslq 0x4(%rsp), %rdx subl %edx, 0x54(%rbx) cmpq $0x11, %rdx jl 0x9efd8 movq 0x8(%rsp), %rax movl 0x1c(%rbx), %ecx subl %edx, %ecx addl $0x10, %ecx movl %ecx, 0x1c(%rbx) leaq (%rax,%rdx), %rcx addq $-0x10, %rcx movq %rcx, 0x8(%rbx) movq %rcx, (%rbx) leaq 0x28(%rbx), %rcx movq %rcx, 0x10(%rbx) cmpq $0x1, 0x48(%rbx) jne 0x9f002 movq $0x2, 0x48(%rbx) jmp 0x9f002 xorl %eax, %eax movl %eax, 0x54(%rbx) movq $0x0, 0x10(%rbx) movl %eax, 0x18(%rbx) leaq 0x28(%rbx), %rax movq %rax, 0x8(%rbx) movq %rax, (%rbx) jmp 0x9f002 leaq 0x28(%rbx), %rax leaq 0x38(%rbx), %rcx movq %rcx, 0x8(%rbx) movq %rcx, (%rbx) movq %rax, 0x10(%rbx) subq %rdx, %rbx addq $0x48, %rbx movq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0xf2f0 movq %rbx, %rax addq $0x10, %rsp popq %rbx retq
_ZN6google8protobuf8internal18EpsCopyInputStream8InitFromEPNS0_2io19ZeroCopyInputStreamE: push rbx sub rsp, 10h mov rax, rsi mov rbx, rdi mov [rdi+20h], rsi mov dword ptr [rdi+1Ch], 7FFFFFFFh mov rcx, [rsi] lea rsi, [rsp+18h+var_10] lea rdx, [rsp+18h+var_14] mov rdi, rax call qword ptr [rcx+10h] test al, al jz short loc_9EFBB movsxd rdx, [rsp+18h+var_14] sub [rbx+54h], edx cmp rdx, 11h jl short loc_9EFD8 mov rax, [rsp+18h+var_10] mov ecx, [rbx+1Ch] sub ecx, edx add ecx, 10h mov [rbx+1Ch], ecx lea rcx, [rax+rdx] add rcx, 0FFFFFFFFFFFFFFF0h mov [rbx+8], rcx mov [rbx], rcx lea rcx, [rbx+28h] mov [rbx+10h], rcx cmp qword ptr [rbx+48h], 1 jnz short loc_9F002 mov qword ptr [rbx+48h], 2 jmp short loc_9F002 loc_9EFBB: xor eax, eax mov [rbx+54h], eax mov qword ptr [rbx+10h], 0 mov [rbx+18h], eax lea rax, [rbx+28h] mov [rbx+8], rax mov [rbx], rax jmp short loc_9F002 loc_9EFD8: lea rax, [rbx+28h] lea rcx, [rbx+38h] mov [rbx+8], rcx mov [rbx], rcx mov [rbx+10h], rax sub rbx, rdx add rbx, 48h ; 'H' mov rsi, [rsp+18h+var_10] mov rdi, rbx call _memcpy mov rax, rbx loc_9F002: add rsp, 10h pop rbx retn
char * google::protobuf::internal::EpsCopyInputStream::InitFrom( google::protobuf::internal::EpsCopyInputStream *this, google::protobuf::io::ZeroCopyInputStream *a2) { long long v2; // rdx char *result; // rax long long v4; // rcx char *v5; // rbx int v6; // [rsp+4h] [rbp-14h] BYREF long long v7; // [rsp+8h] [rbp-10h] BYREF *((_QWORD *)this + 4) = a2; *((_DWORD *)this + 7) = 0x7FFFFFFF; if ( (*(unsigned __int8 ( **)(google::protobuf::io::ZeroCopyInputStream *, long long *, int *))(*(_QWORD *)a2 + 16LL))( a2, &v7, &v6) ) { v2 = v6; *((_DWORD *)this + 21) -= v6; if ( v2 < 17 ) { *((_QWORD *)this + 1) = (char *)this + 56; *(_QWORD *)this = (char *)this + 56; *((_QWORD *)this + 2) = (char *)this + 40; v5 = (char *)this - v2 + 72; memcpy(v5); return v5; } else { result = (char *)v7; *((_DWORD *)this + 7) = *((_DWORD *)this + 7) - v2 + 16; v4 = (long long)&result[v2 - 16]; *((_QWORD *)this + 1) = v4; *(_QWORD *)this = v4; *((_QWORD *)this + 2) = (char *)this + 40; if ( *((_QWORD *)this + 9) == 1LL ) *((_QWORD *)this + 9) = 2LL; } } else { *((_DWORD *)this + 21) = 0; *((_QWORD *)this + 2) = 0LL; *((_DWORD *)this + 6) = 0; result = (char *)this + 40; *((_QWORD *)this + 1) = (char *)this + 40; *(_QWORD *)this = (char *)this + 40; } return result; }
InitFrom: PUSH RBX SUB RSP,0x10 MOV RAX,RSI MOV RBX,RDI MOV qword ptr [RDI + 0x20],RSI MOV dword ptr [RDI + 0x1c],0x7fffffff MOV RCX,qword ptr [RSI] LEA RSI,[RSP + 0x8] LEA RDX,[RSP + 0x4] MOV RDI,RAX CALL qword ptr [RCX + 0x10] TEST AL,AL JZ 0x0019efbb MOVSXD RDX,dword ptr [RSP + 0x4] SUB dword ptr [RBX + 0x54],EDX CMP RDX,0x11 JL 0x0019efd8 MOV RAX,qword ptr [RSP + 0x8] MOV ECX,dword ptr [RBX + 0x1c] SUB ECX,EDX ADD ECX,0x10 MOV dword ptr [RBX + 0x1c],ECX LEA RCX,[RAX + RDX*0x1] ADD RCX,-0x10 MOV qword ptr [RBX + 0x8],RCX MOV qword ptr [RBX],RCX LEA RCX,[RBX + 0x28] MOV qword ptr [RBX + 0x10],RCX CMP qword ptr [RBX + 0x48],0x1 JNZ 0x0019f002 MOV qword ptr [RBX + 0x48],0x2 JMP 0x0019f002 LAB_0019efbb: XOR EAX,EAX MOV dword ptr [RBX + 0x54],EAX MOV qword ptr [RBX + 0x10],0x0 MOV dword ptr [RBX + 0x18],EAX LEA RAX,[RBX + 0x28] MOV qword ptr [RBX + 0x8],RAX MOV qword ptr [RBX],RAX JMP 0x0019f002 LAB_0019efd8: LEA RAX,[RBX + 0x28] LEA RCX,[RBX + 0x38] MOV qword ptr [RBX + 0x8],RCX MOV qword ptr [RBX],RCX MOV qword ptr [RBX + 0x10],RAX SUB RBX,RDX ADD RBX,0x48 MOV RSI,qword ptr [RSP + 0x8] MOV RDI,RBX CALL 0x0010f2f0 MOV RAX,RBX LAB_0019f002: ADD RSP,0x10 POP RBX RET
/* google::protobuf::internal::EpsCopyInputStream::InitFrom(google::protobuf::io::ZeroCopyInputStream*) */ EpsCopyInputStream * __thiscall google::protobuf::internal::EpsCopyInputStream::InitFrom (EpsCopyInputStream *this,ZeroCopyInputStream *param_1) { char cVar1; size_t __n; EpsCopyInputStream *__dest; int local_14; EpsCopyInputStream *local_10; *(ZeroCopyInputStream **)(this + 0x20) = param_1; *(int4 *)(this + 0x1c) = 0x7fffffff; cVar1 = (**(code **)(*(long *)param_1 + 0x10))(param_1,&local_10,&local_14); if (cVar1 == '\0') { *(int4 *)(this + 0x54) = 0; *(int8 *)(this + 0x10) = 0; *(int4 *)(this + 0x18) = 0; __dest = this + 0x28; *(EpsCopyInputStream **)(this + 8) = __dest; *(EpsCopyInputStream **)this = __dest; } else { __n = (size_t)local_14; *(int *)(this + 0x54) = *(int *)(this + 0x54) - local_14; if ((long)__n < 0x11) { *(EpsCopyInputStream **)(this + 8) = this + 0x38; *(EpsCopyInputStream **)this = this + 0x38; *(EpsCopyInputStream **)(this + 0x10) = this + 0x28; __dest = this + (0x48 - __n); memcpy(__dest,local_10,__n); } else { *(int *)(this + 0x1c) = (*(int *)(this + 0x1c) - local_14) + 0x10; *(EpsCopyInputStream **)(this + 8) = local_10 + (__n - 0x10); *(EpsCopyInputStream **)this = local_10 + (__n - 0x10); *(EpsCopyInputStream **)(this + 0x10) = this + 0x28; __dest = local_10; if (*(long *)(this + 0x48) == 1) { *(int8 *)(this + 0x48) = 2; } } } return __dest; }
17,668
maria_page_filler_set_normal
eloqsql/storage/maria/ma_pagecrc.c
my_bool maria_page_filler_set_normal(PAGECACHE_IO_HOOK_ARGS *args) { uchar *page= args->page; #ifdef DBUG_ASSERT_EXISTS pgcache_page_no_t page_no= args->pageno; #endif MARIA_SHARE *share= (MARIA_SHARE *)args->data; DBUG_ENTER("maria_page_filler_set_normal"); DBUG_ASSERT(page_no != 0); /* Catches some simple bugs */ int4store_aligned(page + share->block_size - CRC_SIZE, MARIA_NO_CRC_NORMAL_PAGE); DBUG_RETURN(0); }
O3
c
maria_page_filler_set_normal: pushq %rbp movq %rsp, %rbp movq (%rdi), %rax movq 0x10(%rdi), %rcx movl 0x7bc(%rcx), %ecx movl $0xffffffff, -0x4(%rax,%rcx) # imm = 0xFFFFFFFF xorl %eax, %eax popq %rbp retq
maria_page_filler_set_normal: push rbp mov rbp, rsp mov rax, [rdi] mov rcx, [rdi+10h] mov ecx, [rcx+7BCh] mov dword ptr [rax+rcx-4], 0FFFFFFFFh xor eax, eax pop rbp retn
long long maria_page_filler_set_normal(_QWORD *a1) { *(_DWORD *)(*a1 + *(unsigned int *)(a1[2] + 1980LL) - 4LL) = -1; return 0LL; }
maria_page_filler_set_normal: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI] MOV RCX,qword ptr [RDI + 0x10] MOV ECX,dword ptr [RCX + 0x7bc] MOV dword ptr [RAX + RCX*0x1 + -0x4],0xffffffff XOR EAX,EAX POP RBP RET
int8 maria_page_filler_set_normal(long *param_1) { *(int4 *)(*param_1 + -4 + (ulong)*(uint *)(param_1[2] + 0x7bc)) = 0xffffffff; return 0; }
17,669
ggml_gallocr_free
7CodeWizard[P]stablediffusion/ggml/src/ggml-alloc.c
void ggml_gallocr_free(ggml_gallocr_t galloc) { if (galloc == NULL) { return; } if (galloc->hash_set.keys != NULL) { free(galloc->hash_set.keys); } if (galloc->hash_values != NULL) { free(galloc->hash_values); } if (galloc->hash_allocs != NULL) { free(galloc->hash_allocs); } if (galloc->parse_seq != NULL) { free(galloc->parse_seq); } free(galloc); }
O1
c
ggml_gallocr_free: testq %rdi, %rdi je 0xb31bb pushq %rbx movq %rdi, %rbx movq 0x10(%rdi), %rdi testq %rdi, %rdi je 0xb3188 callq 0xa700 movq 0x18(%rbx), %rdi testq %rdi, %rdi je 0xb3196 callq 0xa700 movq 0x28(%rbx), %rdi testq %rdi, %rdi je 0xb31a4 callq 0xa700 movq 0x30(%rbx), %rdi testq %rdi, %rdi je 0xb31b2 callq 0xa700 movq %rbx, %rdi popq %rbx jmp 0xa700 retq
ggml_gallocr_free: test rdi, rdi jz short locret_B31BB push rbx mov rbx, rdi mov rdi, [rdi+10h] test rdi, rdi jz short loc_B3188 call _free loc_B3188: mov rdi, [rbx+18h] test rdi, rdi jz short loc_B3196 call _free loc_B3196: mov rdi, [rbx+28h] test rdi, rdi jz short loc_B31A4 call _free loc_B31A4: mov rdi, [rbx+30h] test rdi, rdi jz short loc_B31B2 call _free loc_B31B2: mov rdi, rbx pop rbx jmp _free locret_B31BB: retn
long long ggml_gallocr_free(_QWORD *a1) { long long v2; // rdi long long v3; // rdi long long v4; // rdi long long v5; // rdi long long result; // rax if ( a1 ) { v2 = a1[2]; if ( v2 ) free(v2); v3 = a1[3]; if ( v3 ) free(v3); v4 = a1[5]; if ( v4 ) free(v4); v5 = a1[6]; if ( v5 ) free(v5); return free(a1); } return result; }
17,670
ggml_gallocr_free
7CodeWizard[P]stablediffusion/ggml/src/ggml-alloc.c
void ggml_gallocr_free(ggml_gallocr_t galloc) { if (galloc == NULL) { return; } if (galloc->hash_set.keys != NULL) { free(galloc->hash_set.keys); } if (galloc->hash_values != NULL) { free(galloc->hash_values); } if (galloc->hash_allocs != NULL) { free(galloc->hash_allocs); } if (galloc->parse_seq != NULL) { free(galloc->parse_seq); } free(galloc); }
O2
c
ggml_gallocr_free: testq %rdi, %rdi je 0x8f097 pushq %rbx movq %rdi, %rbx movq 0x10(%rdi), %rdi callq 0xa710 movq 0x18(%rbx), %rdi callq 0xa710 movq 0x28(%rbx), %rdi callq 0xa710 movq 0x30(%rbx), %rdi callq 0xa710 movq %rbx, %rdi popq %rbx jmp 0xa710 retq
ggml_gallocr_free: test rdi, rdi jz short locret_8F097 push rbx mov rbx, rdi mov rdi, [rdi+10h] call _free mov rdi, [rbx+18h] call _free mov rdi, [rbx+28h] call _free mov rdi, [rbx+30h] call _free mov rdi, rbx pop rbx jmp _free locret_8F097: retn
long long ggml_gallocr_free(_QWORD *a1) { long long result; // rax if ( a1 ) { free(a1[2]); free(a1[3]); free(a1[5]); free(a1[6]); return free(a1); } return result; }
ggml_gallocr_free: TEST RDI,RDI JZ 0x0018f097 PUSH RBX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x10] CALL 0x0010a710 MOV RDI,qword ptr [RBX + 0x18] CALL 0x0010a710 MOV RDI,qword ptr [RBX + 0x28] CALL 0x0010a710 MOV RDI,qword ptr [RBX + 0x30] CALL 0x0010a710 MOV RDI,RBX POP RBX JMP 0x0010a710 LAB_0018f097: RET
void ggml_gallocr_free(void *param_1) { if (param_1 != (void *)0x0) { free(*(void **)((long)param_1 + 0x10)); free(*(void **)((long)param_1 + 0x18)); free(*(void **)((long)param_1 + 0x28)); free(*(void **)((long)param_1 + 0x30)); free(param_1); return; } return; }
17,671
ggml_gallocr_free
7CodeWizard[P]stablediffusion/ggml/src/ggml-alloc.c
void ggml_gallocr_free(ggml_gallocr_t galloc) { if (galloc == NULL) { return; } if (galloc->hash_set.keys != NULL) { free(galloc->hash_set.keys); } if (galloc->hash_values != NULL) { free(galloc->hash_values); } if (galloc->hash_allocs != NULL) { free(galloc->hash_allocs); } if (galloc->parse_seq != NULL) { free(galloc->parse_seq); } free(galloc); }
O3
c
ggml_gallocr_free: testq %rdi, %rdi je 0xb1e4a pushq %rbx movq %rdi, %rbx movq 0x10(%rdi), %rdi testq %rdi, %rdi je 0xb1e17 callq 0xa6f0 movq 0x18(%rbx), %rdi testq %rdi, %rdi je 0xb1e25 callq 0xa6f0 movq 0x28(%rbx), %rdi testq %rdi, %rdi je 0xb1e33 callq 0xa6f0 movq 0x30(%rbx), %rdi testq %rdi, %rdi je 0xb1e41 callq 0xa6f0 movq %rbx, %rdi popq %rbx jmp 0xa6f0 retq
ggml_gallocr_free: test rdi, rdi jz short locret_B1E4A push rbx mov rbx, rdi mov rdi, [rdi+10h] test rdi, rdi jz short loc_B1E17 call _free loc_B1E17: mov rdi, [rbx+18h] test rdi, rdi jz short loc_B1E25 call _free loc_B1E25: mov rdi, [rbx+28h] test rdi, rdi jz short loc_B1E33 call _free loc_B1E33: mov rdi, [rbx+30h] test rdi, rdi jz short loc_B1E41 call _free loc_B1E41: mov rdi, rbx pop rbx jmp _free locret_B1E4A: retn
long long ggml_gallocr_free(_QWORD *a1) { long long v2; // rdi long long v3; // rdi long long v4; // rdi long long v5; // rdi long long result; // rax if ( a1 ) { v2 = a1[2]; if ( v2 ) free(v2); v3 = a1[3]; if ( v3 ) free(v3); v4 = a1[5]; if ( v4 ) free(v4); v5 = a1[6]; if ( v5 ) free(v5); return free(a1); } return result; }
17,672
end_io_cache
eloqsql/mysys/mf_iocache.c
int end_io_cache(IO_CACHE *info) { int error=0; DBUG_ENTER("end_io_cache"); DBUG_PRINT("enter",("cache: %p", info)); /* Every thread must call remove_io_thread(). The last one destroys the share elements. */ DBUG_ASSERT(!info->share || !info->share->total_threads); if (info->alloced_buffer) { info->alloced_buffer=0; if (info->file != -1) /* File doesn't exist */ error= my_b_flush_io_cache(info,1); my_free(info->buffer); info->buffer=info->read_pos=(uchar*) 0; } if (info->type == SEQ_READ_APPEND) { /* Destroy allocated mutex */ mysql_mutex_destroy(&info->append_buffer_lock); } info->share= 0; info->type= TYPE_NOT_SET; /* Ensure that flush_io_cache() does nothing */ info->write_end= 0; /* Ensure that my_b_write() fails */ info->write_function= 0; /* my_b_write will crash if used */ DBUG_RETURN(error); }
O3
c
end_io_cache: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx cmpq $0x0, 0x100(%rdi) je 0x9b338 movq $0x0, 0x100(%rbx) cmpl $-0x1, 0xd4(%rbx) je 0x9b33d movq %rbx, %rdi movl $0x1, %esi callq 0x9a355 movl %eax, %r14d jmp 0x9b340 xorl %r14d, %r14d jmp 0x9b353 xorl %r14d, %r14d movq 0x20(%rbx), %rdi callq 0xa71c6 xorl %eax, %eax movq %rax, 0x10(%rbx) movq %rax, 0x20(%rbx) cmpl $0x3, 0xb0(%rbx) jne 0x9b38c leaq 0x50(%rbx), %r15 movq 0x90(%rbx), %rdi testq %rdi, %rdi je 0x9b384 leaq 0x2f5b65(%rip), %rax # 0x390ed8 movq (%rax), %rax callq *0x48(%rax) movq $0x0, 0x90(%rbx) movq %r15, %rdi callq 0x2a0e0 xorl %eax, %eax movq %rax, 0x98(%rbx) movl $0x0, 0xb0(%rbx) movq %rax, 0x48(%rbx) movq %rax, 0xa8(%rbx) movl %r14d, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
end_io_cache: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi cmp qword ptr [rdi+100h], 0 jz short loc_9B338 mov qword ptr [rbx+100h], 0 cmp dword ptr [rbx+0D4h], 0FFFFFFFFh jz short loc_9B33D mov rdi, rbx mov esi, 1 call my_b_flush_io_cache mov r14d, eax jmp short loc_9B340 loc_9B338: xor r14d, r14d jmp short loc_9B353 loc_9B33D: xor r14d, r14d loc_9B340: mov rdi, [rbx+20h] call my_free xor eax, eax mov [rbx+10h], rax mov [rbx+20h], rax loc_9B353: cmp dword ptr [rbx+0B0h], 3 jnz short loc_9B38C lea r15, [rbx+50h] mov rdi, [rbx+90h] test rdi, rdi jz short loc_9B384 lea rax, PSI_server mov rax, [rax] call qword ptr [rax+48h] mov qword ptr [rbx+90h], 0 loc_9B384: mov rdi, r15 call _pthread_mutex_destroy loc_9B38C: xor eax, eax mov [rbx+98h], rax mov dword ptr [rbx+0B0h], 0 mov [rbx+48h], rax mov [rbx+0A8h], rax mov eax, r14d add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long end_io_cache(long long a1) { unsigned int v2; // r14d long long v3; // rdi if ( *(_QWORD *)(a1 + 256) ) { *(_QWORD *)(a1 + 256) = 0LL; if ( *(_DWORD *)(a1 + 212) == -1 ) v2 = 0; else v2 = my_b_flush_io_cache((long long *)a1, 1); my_free(*(_QWORD *)(a1 + 32)); *(_QWORD *)(a1 + 16) = 0LL; *(_QWORD *)(a1 + 32) = 0LL; } else { v2 = 0; } if ( *(_DWORD *)(a1 + 176) == 3 ) { v3 = *(_QWORD *)(a1 + 144); if ( v3 ) { ((void ( *)(long long))PSI_server[9])(v3); *(_QWORD *)(a1 + 144) = 0LL; } pthread_mutex_destroy(a1 + 80); } *(_QWORD *)(a1 + 152) = 0LL; *(_DWORD *)(a1 + 176) = 0; *(_QWORD *)(a1 + 72) = 0LL; *(_QWORD *)(a1 + 168) = 0LL; return v2; }
end_io_cache: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CMP qword ptr [RDI + 0x100],0x0 JZ 0x0019b338 MOV qword ptr [RBX + 0x100],0x0 CMP dword ptr [RBX + 0xd4],-0x1 JZ 0x0019b33d MOV RDI,RBX MOV ESI,0x1 CALL 0x0019a355 MOV R14D,EAX JMP 0x0019b340 LAB_0019b338: XOR R14D,R14D JMP 0x0019b353 LAB_0019b33d: XOR R14D,R14D LAB_0019b340: MOV RDI,qword ptr [RBX + 0x20] CALL 0x001a71c6 XOR EAX,EAX MOV qword ptr [RBX + 0x10],RAX MOV qword ptr [RBX + 0x20],RAX LAB_0019b353: CMP dword ptr [RBX + 0xb0],0x3 JNZ 0x0019b38c LEA R15,[RBX + 0x50] MOV RDI,qword ptr [RBX + 0x90] TEST RDI,RDI JZ 0x0019b384 LEA RAX,[0x490ed8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x48] MOV qword ptr [RBX + 0x90],0x0 LAB_0019b384: MOV RDI,R15 CALL 0x0012a0e0 LAB_0019b38c: XOR EAX,EAX MOV qword ptr [RBX + 0x98],RAX MOV dword ptr [RBX + 0xb0],0x0 MOV qword ptr [RBX + 0x48],RAX MOV qword ptr [RBX + 0xa8],RAX MOV EAX,R14D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int4 end_io_cache(long param_1) { int4 uVar1; if (*(long *)(param_1 + 0x100) == 0) { uVar1 = 0; } else { *(int8 *)(param_1 + 0x100) = 0; if (*(int *)(param_1 + 0xd4) == -1) { uVar1 = 0; } else { uVar1 = my_b_flush_io_cache(param_1,1); } my_free(*(int8 *)(param_1 + 0x20)); *(int8 *)(param_1 + 0x10) = 0; *(int8 *)(param_1 + 0x20) = 0; } if (*(int *)(param_1 + 0xb0) == 3) { if (*(long *)(param_1 + 0x90) != 0) { (**(code **)(PSI_server + 0x48))(); *(int8 *)(param_1 + 0x90) = 0; } pthread_mutex_destroy((pthread_mutex_t *)(param_1 + 0x50)); } *(int8 *)(param_1 + 0x98) = 0; *(int4 *)(param_1 + 0xb0) = 0; *(int8 *)(param_1 + 0x48) = 0; *(int8 *)(param_1 + 0xa8) = 0; return uVar1; }
17,673
httplib::detail::MultipartFormDataParser::set_boundary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&)
hkr04[P]cpp-mcp/common/httplib.h
void set_boundary(std::string &&boundary) { boundary_ = boundary; dash_boundary_crlf_ = dash_ + boundary_ + crlf_; crlf_dash_boundary_ = crlf_ + dash_ + boundary_; }
O1
c
httplib::detail::MultipartFormDataParser::set_boundary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rdi, %rbx leaq 0x40(%rdi), %r14 movq %r14, %rdi callq 0xa350 movq %rsp, %r15 movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx callq 0x3a241 movq 0x20(%rbx), %rsi movq 0x28(%rbx), %rdx movq %r15, %rdi callq 0xa1c0 leaq 0x30(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x3b20d movq %rdx, 0x20(%rsp) movq (%rcx), %rdx movq %rdx, 0x30(%rsp) jmp 0x3b215 movups (%rcx), %xmm0 movups %xmm0, (%r12) movq 0x8(%rax), %rdx leaq 0x20(%rsp), %r14 movq %rdx, 0x8(%r14) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x60(%rbx), %rdi movq %r14, %rsi callq 0xa740 movq (%r14), %rdi cmpq %r12, %rdi je 0x3b252 movq 0x30(%rsp), %rsi incq %rsi callq 0xa630 leaq 0x20(%rbx), %r14 leaq 0x10(%rsp), %r13 movq -0x10(%r13), %rdi cmpq %r13, %rdi je 0x3b271 movq 0x10(%rsp), %rsi incq %rsi callq 0xa630 movq %rsp, %r15 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x3a241 movq 0x40(%rbx), %rsi movq 0x48(%rbx), %rdx movq %r15, %rdi callq 0xa1c0 movq %r12, 0x20(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x3b2b5 movq %rdx, 0x20(%rsp) movq (%rcx), %rdx movq %rdx, 0x30(%rsp) jmp 0x3b2bd movups (%rcx), %xmm0 movups %xmm0, (%r12) movq 0x8(%rax), %rdx leaq 0x20(%rsp), %r14 movq %rdx, 0x8(%r14) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) subq $-0x80, %rbx movq %rbx, %rdi movq %r14, %rsi callq 0xa740 movq (%r14), %rdi cmpq %r12, %rdi je 0x3b2fd movq 0x30(%rsp), %rsi incq %rsi callq 0xa630 movq (%rsp), %rdi cmpq %r13, %rdi je 0x3b313 movq 0x10(%rsp), %rsi incq %rsi callq 0xa630 addq $0x40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx movq (%rsp), %rdi cmpq %r13, %rdi jne 0x3b340 jmp 0x3b34d movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3b34d movq 0x10(%rsp), %rsi incq %rsi callq 0xa630 movq %rbx, %rdi callq 0xaa60 nop
_ZN7httplib6detail23MultipartFormDataParser12set_boundaryEONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r15 push r14 push r13 push r12 push rbx sub rsp, 40h mov rbx, rdi lea r14, [rdi+40h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) mov r15, rsp mov rdi, r15 mov rsi, rbx mov rdx, r14 call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_; std::operator+<char>(std::string const&,std::string const&) mov rsi, [rbx+20h] mov rdx, [rbx+28h] mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) lea r12, [rsp+68h+var_38] mov [r12-10h], r12 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_3B20D mov [rsp+68h+var_48], rdx mov rdx, [rcx] mov [rsp+68h+var_38], rdx jmp short loc_3B215 loc_3B20D: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r12], xmm0 loc_3B215: mov rdx, [rax+8] lea r14, [rsp+68h+var_48] mov [r14+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rdi, [rbx+60h] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [r14]; void * cmp rdi, r12 jz short loc_3B252 mov rsi, [rsp+68h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3B252: lea r14, [rbx+20h] lea r13, [rsp+68h+var_58] mov rdi, [r13-10h]; void * cmp rdi, r13 jz short loc_3B271 mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3B271: mov r15, rsp mov rdi, r15 mov rsi, r14 mov rdx, rbx call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_; std::operator+<char>(std::string const&,std::string const&) mov rsi, [rbx+40h] mov rdx, [rbx+48h] mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov [rsp+68h+var_48], r12 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_3B2B5 mov [rsp+68h+var_48], rdx mov rdx, [rcx] mov [rsp+68h+var_38], rdx jmp short loc_3B2BD loc_3B2B5: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r12], xmm0 loc_3B2BD: mov rdx, [rax+8] lea r14, [rsp+68h+var_48] mov [r14+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 sub rbx, 0FFFFFFFFFFFFFF80h mov rdi, rbx mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [r14]; void * cmp rdi, r12 jz short loc_3B2FD mov rsi, [rsp+68h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3B2FD: mov rdi, [rsp+68h+var_68]; void * cmp rdi, r13 jz short loc_3B313 mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3B313: add rsp, 40h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+0] cmp rdi, r13 jnz short loc_3B340 jmp short loc_3B34D mov rbx, rax lea rax, [rsp+arg_8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3B34D loc_3B340: mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3B34D: mov rdi, rbx call __Unwind_Resume
void httplib::detail::MultipartFormDataParser::set_boundary(_QWORD *a1, long long a2) { long long v2; // rax _OWORD *v3; // rcx long long v4; // rax _OWORD *v5; // rcx void *v6[2]; // [rsp+0h] [rbp-68h] BYREF _QWORD v7[2]; // [rsp+10h] [rbp-58h] BYREF _OWORD *v8; // [rsp+20h] [rbp-48h] BYREF long long v9; // [rsp+28h] [rbp-40h] _OWORD v10[3]; // [rsp+30h] [rbp-38h] BYREF std::string::_M_assign(a1 + 8, a2); std::operator+<char>(v6, (long long)a1, a1 + 8); v2 = std::string::_M_append(v6, a1[4], a1[5]); v8 = v10; v3 = (_OWORD *)(v2 + 16); if ( *(_QWORD *)v2 == v2 + 16 ) { v10[0] = *v3; } else { v8 = *(_OWORD **)v2; *(_QWORD *)&v10[0] = *(_QWORD *)v3; } v9 = *(_QWORD *)(v2 + 8); *(_QWORD *)v2 = v3; *(_QWORD *)(v2 + 8) = 0LL; *(_BYTE *)(v2 + 16) = 0; std::string::operator=(a1 + 12, &v8); if ( v8 != v10 ) operator delete(v8, *(_QWORD *)&v10[0] + 1LL); if ( v6[0] != v7 ) operator delete(v6[0], v7[0] + 1LL); std::operator+<char>(v6, (long long)(a1 + 4), a1); v4 = std::string::_M_append(v6, a1[8], a1[9]); v8 = v10; v5 = (_OWORD *)(v4 + 16); if ( *(_QWORD *)v4 == v4 + 16 ) { v10[0] = *v5; } else { v8 = *(_OWORD **)v4; *(_QWORD *)&v10[0] = *(_QWORD *)v5; } v9 = *(_QWORD *)(v4 + 8); *(_QWORD *)v4 = v5; *(_QWORD *)(v4 + 8) = 0LL; *(_BYTE *)(v4 + 16) = 0; std::string::operator=(a1 + 16, &v8); if ( v8 != v10 ) operator delete(v8, *(_QWORD *)&v10[0] + 1LL); if ( v6[0] != v7 ) operator delete(v6[0], v7[0] + 1LL); }
set_boundary: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x40 MOV RBX,RDI LEA R14,[RDI + 0x40] MOV RDI,R14 CALL 0x0010a350 MOV R15,RSP MOV RDI,R15 MOV RSI,RBX MOV RDX,R14 CALL 0x0013a241 MOV RSI,qword ptr [RBX + 0x20] MOV RDX,qword ptr [RBX + 0x28] LAB_0013b1dd: MOV RDI,R15 CALL 0x0010a1c0 LAB_0013b1e5: LEA R12,[RSP + 0x30] MOV qword ptr [R12 + -0x10],R12 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x0013b20d MOV qword ptr [RSP + 0x20],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x30],RDX JMP 0x0013b215 LAB_0013b20d: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R12],XMM0 LAB_0013b215: MOV RDX,qword ptr [RAX + 0x8] LEA R14,[RSP + 0x20] MOV qword ptr [R14 + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LEA RDI,[RBX + 0x60] MOV RSI,R14 CALL 0x0010a740 MOV RDI,qword ptr [R14] CMP RDI,R12 JZ 0x0013b252 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0010a630 LAB_0013b252: LEA R14,[RBX + 0x20] LEA R13,[RSP + 0x10] MOV RDI,qword ptr [R13 + -0x10] CMP RDI,R13 JZ 0x0013b271 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0010a630 LAB_0013b271: MOV R15,RSP MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0013a241 MOV RSI,qword ptr [RBX + 0x40] MOV RDX,qword ptr [RBX + 0x48] LAB_0013b28a: MOV RDI,R15 CALL 0x0010a1c0 LAB_0013b292: MOV qword ptr [RSP + 0x20],R12 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x0013b2b5 MOV qword ptr [RSP + 0x20],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x30],RDX JMP 0x0013b2bd LAB_0013b2b5: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R12],XMM0 LAB_0013b2bd: MOV RDX,qword ptr [RAX + 0x8] LEA R14,[RSP + 0x20] MOV qword ptr [R14 + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 SUB RBX,-0x80 MOV RDI,RBX MOV RSI,R14 CALL 0x0010a740 MOV RDI,qword ptr [R14] CMP RDI,R12 JZ 0x0013b2fd MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0010a630 LAB_0013b2fd: MOV RDI,qword ptr [RSP] CMP RDI,R13 JZ 0x0013b313 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0010a630 LAB_0013b313: ADD RSP,0x40 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* httplib::detail::MultipartFormDataParser::set_boundary(std::__cxx11::string&&) */ void httplib::detail::MultipartFormDataParser::set_boundary(string *param_1) { long *plVar1; long *plVar2; long *local_68 [2]; long local_58 [2]; long *local_48; long local_40; long local_38; long lStack_30; std::__cxx11::string::_M_assign(param_1 + 0x40); std::operator+((string *)local_68,param_1); /* try { // try from 0013b1dd to 0013b1e4 has its CatchHandler @ 0013b32f */ plVar1 = (long *)std::__cxx11::string::_M_append((char *)local_68,*(ulong *)(param_1 + 0x20)); plVar2 = plVar1 + 2; if ((long *)*plVar1 == plVar2) { local_38 = *plVar2; lStack_30 = plVar1[3]; local_48 = &local_38; } else { local_38 = *plVar2; local_48 = (long *)*plVar1; } local_40 = plVar1[1]; *plVar1 = (long)plVar2; plVar1[1] = 0; *(int1 *)(plVar1 + 2) = 0; std::__cxx11::string::operator=(param_1 + 0x60,(string *)&local_48); if (local_48 != &local_38) { operator_delete(local_48,local_38 + 1); } if (local_68[0] != local_58) { operator_delete(local_68[0],local_58[0] + 1); } std::operator+((string *)local_68,param_1 + 0x20); /* try { // try from 0013b28a to 0013b291 has its CatchHandler @ 0013b321 */ plVar1 = (long *)std::__cxx11::string::_M_append((char *)local_68,*(ulong *)(param_1 + 0x40)); plVar2 = plVar1 + 2; if ((long *)*plVar1 == plVar2) { local_38 = *plVar2; lStack_30 = plVar1[3]; local_48 = &local_38; } else { local_38 = *plVar2; local_48 = (long *)*plVar1; } local_40 = plVar1[1]; *plVar1 = (long)plVar2; plVar1[1] = 0; *(int1 *)(plVar1 + 2) = 0; std::__cxx11::string::operator=(param_1 + 0x80,(string *)&local_48); if (local_48 != &local_38) { operator_delete(local_48,local_38 + 1); } if (local_68[0] != local_58) { operator_delete(local_68[0],local_58[0] + 1); } return; }
17,674
trnman_init_tmp_trn_for_logging_trid
eloqsql/storage/maria/trnman.c
void trnman_init_tmp_trn_for_logging_trid(TRN *trn) { *trn= dummy_transaction_object; /* Avoid logging short_id */ trn->short_id= 1; /* Trid gets logged in translog_write_record */ trn->first_undo_lsn= 0; /* Get next free trid */ trn->trid= trnman_get_min_safe_trid(); }
O3
c
trnman_init_tmp_trn_for_logging_trid: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x3e3d0f(%rip), %rsi # 0x4253d0 movl $0xb0, %edx callq 0x2a0b0 movw $0x1, 0xac(%rbx) movq $0x0, 0xa0(%rbx) callq 0x41bcb movq %rax, 0x78(%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
trnman_init_tmp_trn_for_logging_trid: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi lea rsi, dummy_transaction_object mov edx, 0B0h call _memcpy mov word ptr [rbx+0ACh], 1 mov qword ptr [rbx+0A0h], 0 call trnman_get_min_safe_trid mov [rbx+78h], rax add rsp, 8 pop rbx pop rbp retn
long long trnman_init_tmp_trn_for_logging_trid(long long a1) { long long result; // rax memcpy(a1, dummy_transaction_object, 176LL); *(_WORD *)(a1 + 172) = 1; *(_QWORD *)(a1 + 160) = 0LL; result = trnman_get_min_safe_trid(a1); *(_QWORD *)(a1 + 120) = result; return result; }
trnman_init_tmp_trn_for_logging_trid: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI LEA RSI,[0x5253d0] MOV EDX,0xb0 CALL 0x0012a0b0 MOV word ptr [RBX + 0xac],0x1 MOV qword ptr [RBX + 0xa0],0x0 CALL 0x00141bcb MOV qword ptr [RBX + 0x78],RAX ADD RSP,0x8 POP RBX POP RBP RET
void trnman_init_tmp_trn_for_logging_trid(void *param_1) { int8 uVar1; memcpy(param_1,dummy_transaction_object,0xb0); *(int2 *)((long)param_1 + 0xac) = 1; *(int8 *)((long)param_1 + 0xa0) = 0; uVar1 = trnman_get_min_safe_trid(); *(int8 *)((long)param_1 + 0x78) = uVar1; return; }
17,675
my_coll_parser_scan_shift_sequence
eloqsql/strings/ctype-uca.c
static int my_coll_parser_scan_shift_sequence(MY_COLL_RULE_PARSER *p) { MY_COLL_RULE before_extend; memset(&p->rule.curr, 0, sizeof(p->rule.curr)); /* Scan single shift character or contraction */ if (!my_coll_parser_scan_character_list(p, p->rule.curr, MY_UCA_MAX_CONTRACTION, "Contraction")) return 0; before_extend= p->rule; /* Remember the part before "/" */ /* Append the part after "/" as expansion */ if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_EXTEND) { my_coll_parser_scan(p); if (!my_coll_parser_scan_character_list(p, p->rule.base, MY_UCA_MAX_EXPANSION, "Expansion")) return 0; } else if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_CONTEXT) { /* We support 2-character long context sequences only: one character is the previous context, plus the current character. It's OK as Unicode's CLDR does not have longer examples. */ my_coll_parser_scan(p); p->rule.with_context= TRUE; if (!my_coll_parser_scan_character_list(p, p->rule.curr + 1, 1, "context")) return 0; } /* Add rule to the rule list */ if (my_coll_rules_add(p->rules, &p->rule)) return 0; p->rule= before_extend; /* Restore to the state before "/" */ return 1; }
O3
c
my_coll_parser_scan_shift_sequence: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0xa8, %rsp movq %rdi, %r15 leaq 0xa0(%rdi), %rsi xorps %xmm0, %xmm0 movups %xmm0, 0xc0(%rdi) movups %xmm0, 0xb0(%rdi) movups %xmm0, 0xa0(%rdi) leaq 0x2035f(%rip), %rcx # 0x836e4 movl $0x6, %edx callq 0x634dd xorl %r14d, %r14d testl %eax, %eax je 0x634cc leaq 0x50(%r15), %rbx leaq -0xb8(%rbp), %rdi movl $0xa0, %edx movq %rbx, %rsi callq 0x26290 movl (%r15), %eax cmpl $0x9, %eax je 0x633fb cmpl $0x8, %eax jne 0x6344a leaq 0x28(%r15), %rdi movq 0x48(%r15), %rax movq %rax, 0x20(%r15) movups 0x28(%r15), %xmm0 movups 0x38(%r15), %xmm1 movups %xmm1, 0x10(%r15) movups %xmm0, (%r15) callq 0x62fe3 leaq 0x2012a(%rip), %rcx # 0x83518 movl $0xa, %edx movq %r15, %rdi movq %rbx, %rsi jmp 0x6343d leaq 0x28(%r15), %rdi movq 0x48(%r15), %rax movq %rax, 0x20(%r15) movups 0x28(%r15), %xmm0 movups 0x38(%r15), %xmm1 movups %xmm1, 0x10(%r15) movups %xmm0, (%r15) callq 0x62fe3 movb $0x1, 0xe8(%r15) leaq 0xa8(%r15), %rsi leaq 0x20ded(%rip), %rcx # 0x84222 movl $0x1, %edx movq %r15, %rdi callq 0x634dd testl %eax, %eax je 0x634cc movq 0xf0(%r15), %r15 movq 0x10(%r15), %rcx cmpq 0x18(%r15), %rcx jae 0x63461 movq 0x20(%r15), %rax jmp 0x63492 movq 0x20(%r15), %rdi movq 0x28(%r15), %rax movq 0x90(%rax), %rax addq $0x81, %rcx movq %rcx, 0x18(%r15) shlq $0x5, %rcx leaq (%rcx,%rcx,4), %rsi callq *%rax movq %rax, 0x20(%r15) testq %rax, %rax je 0x634cc movq 0x10(%r15), %rcx leaq 0x1(%rcx), %rdx movq %rdx, 0x10(%r15) leaq (%rcx,%rcx,4), %rdi shlq $0x5, %rdi addq %rax, %rdi movl $0xa0, %edx movq %rbx, %rsi callq 0x26290 leaq -0xb8(%rbp), %rsi movl $0xa0, %edx movq %rbx, %rdi callq 0x26290 movl $0x1, %r14d movl %r14d, %eax addq $0xa8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
my_coll_parser_scan_shift_sequence: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 0A8h mov r15, rdi lea rsi, [rdi+0A0h] xorps xmm0, xmm0 movups xmmword ptr [rdi+0C0h], xmm0 movups xmmword ptr [rdi+0B0h], xmm0 movups xmmword ptr [rdi+0A0h], xmm0 lea rcx, aContraction; "Contraction" mov edx, 6 call my_coll_parser_scan_character_list xor r14d, r14d test eax, eax jz loc_634CC lea rbx, [r15+50h] lea rdi, [rbp+var_B8] mov edx, 0A0h mov rsi, rbx call _memcpy mov eax, [r15] cmp eax, 9 jz short loc_633FB cmp eax, 8 jnz loc_6344A lea rdi, [r15+28h] mov rax, [r15+48h] mov [r15+20h], rax movups xmm0, xmmword ptr [r15+28h] movups xmm1, xmmword ptr [r15+38h] movups xmmword ptr [r15+10h], xmm1 movups xmmword ptr [r15], xmm0 call my_coll_lexem_next lea rcx, aExpansion; "Expansion" mov edx, 0Ah mov rdi, r15 mov rsi, rbx jmp short loc_6343D loc_633FB: lea rdi, [r15+28h] mov rax, [r15+48h] mov [r15+20h], rax movups xmm0, xmmword ptr [r15+28h] movups xmm1, xmmword ptr [r15+38h] movups xmmword ptr [r15+10h], xmm1 movups xmmword ptr [r15], xmm0 call my_coll_lexem_next mov byte ptr [r15+0E8h], 1 lea rsi, [r15+0A8h] lea rcx, aCharsetsCharse_52+23h; "context" mov edx, 1 mov rdi, r15 loc_6343D: call my_coll_parser_scan_character_list test eax, eax jz loc_634CC loc_6344A: mov r15, [r15+0F0h] mov rcx, [r15+10h] cmp rcx, [r15+18h] jnb short loc_63461 mov rax, [r15+20h] jmp short loc_63492 loc_63461: mov rdi, [r15+20h] mov rax, [r15+28h] mov rax, [rax+90h] add rcx, 81h mov [r15+18h], rcx shl rcx, 5 lea rsi, [rcx+rcx*4] call rax mov [r15+20h], rax test rax, rax jz short loc_634CC mov rcx, [r15+10h] loc_63492: lea rdx, [rcx+1] mov [r15+10h], rdx lea rdi, [rcx+rcx*4] shl rdi, 5 add rdi, rax mov edx, 0A0h mov rsi, rbx call _memcpy lea rsi, [rbp+var_B8] mov edx, 0A0h mov rdi, rbx call _memcpy mov r14d, 1 loc_634CC: mov eax, r14d add rsp, 0A8h pop rbx pop r14 pop r15 pop rbp retn
long long my_coll_parser_scan_shift_sequence(long long a1) { unsigned int v1; // r14d long long v2; // rbx __int128 v3; // xmm0 char *v4; // rcx long long v5; // rdx long long v6; // rsi __int128 v7; // xmm0 _QWORD *v8; // r15 unsigned long long v9; // rcx long long v10; // rax long long v11; // rdi long long ( *v12)(long long, long long); // rax unsigned long long v13; // rcx _BYTE v15[184]; // [rsp+8h] [rbp-B8h] BYREF *(_OWORD *)(a1 + 192) = 0LL; *(_OWORD *)(a1 + 176) = 0LL; *(_OWORD *)(a1 + 160) = 0LL; v1 = 0; if ( !(unsigned int)my_coll_parser_scan_character_list(a1, a1 + 160, 6LL, "Contraction") ) return v1; v2 = a1 + 80; memcpy(v15, a1 + 80, 160LL); if ( *(_DWORD *)a1 == 9 ) { *(_QWORD *)(a1 + 32) = *(_QWORD *)(a1 + 72); v7 = *(_OWORD *)(a1 + 40); *(_OWORD *)(a1 + 16) = *(_OWORD *)(a1 + 56); *(_OWORD *)a1 = v7; my_coll_lexem_next(a1 + 40); *(_BYTE *)(a1 + 232) = 1; v6 = a1 + 168; v4 = "context"; v5 = 1LL; LABEL_6: if ( !(unsigned int)my_coll_parser_scan_character_list(a1, v6, v5, v4) ) return v1; goto LABEL_7; } if ( *(_DWORD *)a1 == 8 ) { *(_QWORD *)(a1 + 32) = *(_QWORD *)(a1 + 72); v3 = *(_OWORD *)(a1 + 40); *(_OWORD *)(a1 + 16) = *(_OWORD *)(a1 + 56); *(_OWORD *)a1 = v3; my_coll_lexem_next(a1 + 40); v4 = "Expansion"; v5 = 10LL; v6 = a1 + 80; goto LABEL_6; } LABEL_7: v8 = *(_QWORD **)(a1 + 240); v9 = v8[2]; if ( v9 < v8[3] ) { v10 = v8[4]; LABEL_11: v8[2] = v9 + 1; memcpy(v10 + 160 * v9, v2, 160LL); memcpy(v2, v15, 160LL); return 1; } v11 = v8[4]; v12 = *(long long ( **)(long long, long long))(v8[5] + 144LL); v13 = v9 + 129; v8[3] = v13; v10 = v12(v11, 160 * v13); v8[4] = v10; if ( v10 ) { v9 = v8[2]; goto LABEL_11; } return v1; }
my_coll_parser_scan_shift_sequence: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xa8 MOV R15,RDI LEA RSI,[RDI + 0xa0] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0xc0],XMM0 MOVUPS xmmword ptr [RDI + 0xb0],XMM0 MOVUPS xmmword ptr [RDI + 0xa0],XMM0 LEA RCX,[0x1836e4] MOV EDX,0x6 CALL 0x001634dd XOR R14D,R14D TEST EAX,EAX JZ 0x001634cc LEA RBX,[R15 + 0x50] LEA RDI,[RBP + -0xb8] MOV EDX,0xa0 MOV RSI,RBX CALL 0x00126290 MOV EAX,dword ptr [R15] CMP EAX,0x9 JZ 0x001633fb CMP EAX,0x8 JNZ 0x0016344a LEA RDI,[R15 + 0x28] MOV RAX,qword ptr [R15 + 0x48] MOV qword ptr [R15 + 0x20],RAX MOVUPS XMM0,xmmword ptr [R15 + 0x28] MOVUPS XMM1,xmmword ptr [R15 + 0x38] MOVUPS xmmword ptr [R15 + 0x10],XMM1 MOVUPS xmmword ptr [R15],XMM0 CALL 0x00162fe3 LEA RCX,[0x183518] MOV EDX,0xa MOV RDI,R15 MOV RSI,RBX JMP 0x0016343d LAB_001633fb: LEA RDI,[R15 + 0x28] MOV RAX,qword ptr [R15 + 0x48] MOV qword ptr [R15 + 0x20],RAX MOVUPS XMM0,xmmword ptr [R15 + 0x28] MOVUPS XMM1,xmmword ptr [R15 + 0x38] MOVUPS xmmword ptr [R15 + 0x10],XMM1 MOVUPS xmmword ptr [R15],XMM0 CALL 0x00162fe3 MOV byte ptr [R15 + 0xe8],0x1 LEA RSI,[R15 + 0xa8] LEA RCX,[0x184222] MOV EDX,0x1 MOV RDI,R15 LAB_0016343d: CALL 0x001634dd TEST EAX,EAX JZ 0x001634cc LAB_0016344a: MOV R15,qword ptr [R15 + 0xf0] MOV RCX,qword ptr [R15 + 0x10] CMP RCX,qword ptr [R15 + 0x18] JNC 0x00163461 MOV RAX,qword ptr [R15 + 0x20] JMP 0x00163492 LAB_00163461: MOV RDI,qword ptr [R15 + 0x20] MOV RAX,qword ptr [R15 + 0x28] MOV RAX,qword ptr [RAX + 0x90] ADD RCX,0x81 MOV qword ptr [R15 + 0x18],RCX SHL RCX,0x5 LEA RSI,[RCX + RCX*0x4] CALL RAX MOV qword ptr [R15 + 0x20],RAX TEST RAX,RAX JZ 0x001634cc MOV RCX,qword ptr [R15 + 0x10] LAB_00163492: LEA RDX,[RCX + 0x1] MOV qword ptr [R15 + 0x10],RDX LEA RDI,[RCX + RCX*0x4] SHL RDI,0x5 ADD RDI,RAX MOV EDX,0xa0 MOV RSI,RBX CALL 0x00126290 LEA RSI,[RBP + -0xb8] MOV EDX,0xa0 MOV RDI,RBX CALL 0x00126290 MOV R14D,0x1 LAB_001634cc: MOV EAX,R14D ADD RSP,0xa8 POP RBX POP R14 POP R15 POP RBP RET
int8 my_coll_parser_scan_shift_sequence(int *param_1) { int *__src; long lVar1; code *pcVar2; int iVar3; long lVar4; char *pcVar5; ulong uVar6; int8 uVar7; int *piVar8; int1 local_c0 [160]; param_1[0x30] = 0; param_1[0x31] = 0; param_1[0x32] = 0; param_1[0x33] = 0; param_1[0x2c] = 0; param_1[0x2d] = 0; param_1[0x2e] = 0; param_1[0x2f] = 0; param_1[0x28] = 0; param_1[0x29] = 0; param_1[0x2a] = 0; param_1[0x2b] = 0; iVar3 = my_coll_parser_scan_character_list(param_1,param_1 + 0x28,6,"Contraction"); if (iVar3 == 0) { return 0; } __src = param_1 + 0x14; memcpy(local_c0,__src,0xa0); if (*param_1 == 9) { *(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); *(int1 *)(param_1 + 0x3a) = 1; piVar8 = param_1 + 0x2a; pcVar5 = "context"; uVar7 = 1; } else { if (*param_1 != 8) goto LAB_0016344a; *(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); pcVar5 = "Expansion"; uVar7 = 10; piVar8 = __src; } iVar3 = my_coll_parser_scan_character_list(param_1,piVar8,uVar7,pcVar5); if (iVar3 == 0) { return 0; } LAB_0016344a: lVar1 = *(long *)(param_1 + 0x3c); uVar6 = *(ulong *)(lVar1 + 0x10); if (uVar6 < *(ulong *)(lVar1 + 0x18)) { lVar4 = *(long *)(lVar1 + 0x20); } else { pcVar2 = *(code **)(*(long *)(lVar1 + 0x28) + 0x90); *(ulong *)(lVar1 + 0x18) = uVar6 + 0x81; lVar4 = (*pcVar2)(*(int8 *)(lVar1 + 0x20),(uVar6 + 0x81) * 0xa0); *(long *)(lVar1 + 0x20) = lVar4; if (lVar4 == 0) { return 0; } uVar6 = *(ulong *)(lVar1 + 0x10); } *(ulong *)(lVar1 + 0x10) = uVar6 + 1; memcpy((void *)(uVar6 * 0xa0 + lVar4),__src,0xa0); memcpy(__src,local_c0,0xa0); return 1; }
17,676
kv_cache_type_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/arg.cpp
static ggml_type kv_cache_type_from_str(const std::string & s) { for (const auto & type : kv_cache_types) { if (ggml_type_name(type) == s) { return type; } } throw std::runtime_error("Unsupported cache type: " + s); }
O3
cpp
kv_cache_type_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %r14 movq 0xdc23c(%rip), %rbx # 0x12cd68 movq 0xdc23d(%rip), %r15 # 0x12cd70 cmpq %r15, %rbx je 0x50b61 movl (%rbx), %edi callq 0x1a850 movq %r14, %rdi movq %rax, %rsi callq 0x1a220 testl %eax, %eax je 0x50b54 addq $0x4, %rbx jmp 0x50b33 movl (%rbx), %eax addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x1a450 movq %rax, %rbx leaq 0x9cce3(%rip), %rsi # 0xed858 leaq 0x8(%rsp), %rdi movq %r14, %rdx callq 0x22151 movb $0x1, %bpl leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x1ae30 xorl %ebp, %ebp movq 0xdb455(%rip), %rsi # 0x12bff0 movq 0xdb3be(%rip), %rdx # 0x12bf60 movq %rbx, %rdi callq 0x1af30 movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x50bc8 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8f0 testb %bpl, %bpl jne 0x50bd2 jmp 0x50bda movq %rax, %r14 movq %rbx, %rdi callq 0x1a690 movq %r14, %rdi callq 0x1afb0
_ZL22kv_cache_type_from_strRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push rbx sub rsp, 28h mov r14, rdi mov rbx, cs:_ZL14kv_cache_types; kv_cache_types mov r15, cs:qword_12CD70 loc_50B33: cmp rbx, r15 jz short loc_50B61 mov edi, [rbx] call _ggml_type_name mov rdi, r14 mov rsi, rax call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_50B54 add rbx, 4 jmp short loc_50B33 loc_50B54: mov eax, [rbx] add rsp, 28h pop rbx pop r14 pop r15 pop rbp retn loc_50B61: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aUnsupportedCac; "Unsupported cache type: " lea rdi, [rsp+48h+var_40] mov rdx, r14 call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) mov bpl, 1 lea rsi, [rsp+48h+var_40] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+48h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_50BC8 mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_50BC8: test bpl, bpl jnz short loc_50BD2 jmp short loc_50BDA mov r14, rax loc_50BD2: mov rdi, rbx; void * call ___cxa_free_exception loc_50BDA: mov rdi, r14 call __Unwind_Resume
long long kv_cache_type_from_str(_QWORD *a1) { unsigned int *v1; // rbx long long v2; // r15 long long v3; // rax void *exception; // rbx _BYTE v6[16]; // [rsp+8h] [rbp-40h] BYREF v1 = (unsigned int *)kv_cache_types; v2 = qword_12CD70; while ( 1 ) { if ( v1 == (unsigned int *)v2 ) { exception = __cxa_allocate_exception(0x10uLL); std::operator+<char>((long long)v6, (long long)"Unsupported cache type: ", a1); std::runtime_error::runtime_error(exception, v6); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v3 = ggml_type_name(*v1); if ( !(unsigned int)std::string::compare(a1, v3) ) break; ++v1; } return *v1; }
kv_cache_type_from_str: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x28 MOV R14,RDI MOV RBX,qword ptr [0x0022cd68] MOV R15,qword ptr [0x0022cd70] LAB_00150b33: CMP RBX,R15 JZ 0x00150b61 MOV EDI,dword ptr [RBX] CALL 0x0011a850 MOV RDI,R14 MOV RSI,RAX CALL 0x0011a220 TEST EAX,EAX JZ 0x00150b54 ADD RBX,0x4 JMP 0x00150b33 LAB_00150b54: MOV EAX,dword ptr [RBX] ADD RSP,0x28 POP RBX POP R14 POP R15 POP RBP RET LAB_00150b61: MOV EDI,0x10 CALL 0x0011a450 MOV RBX,RAX LAB_00150b6e: LEA RSI,[0x1ed858] LEA RDI,[RSP + 0x8] MOV RDX,R14 CALL 0x00122151 MOV BPL,0x1 LAB_00150b85: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x0011ae30 XOR EBP,EBP MOV RSI,qword ptr [0x0022bff0] MOV RDX,qword ptr [0x0022bf60] MOV RDI,RBX CALL 0x0011af30
/* kv_cache_type_from_str(std::__cxx11::string const&) */ int4 kv_cache_type_from_str(string *param_1) { int4 *puVar1; int iVar2; runtime_error *this; int4 *puVar3; string local_40 [32]; puVar1 = DAT_0022cd70; puVar3 = kv_cache_types; while( true ) { if (puVar3 == puVar1) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00150b6e to 00150b81 has its CatchHandler @ 00150bcf */ std::operator+((char *)local_40,(string *)"Unsupported cache type: "); /* try { // try from 00150b85 to 00150ba9 has its CatchHandler @ 00150baa */ std::runtime_error::runtime_error(this,local_40); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60); } ggml_type_name(*puVar3); iVar2 = std::__cxx11::string::compare((char *)param_1); if (iVar2 == 0) break; puVar3 = puVar3 + 1; } return *puVar3; }
17,677
Catch::handleExceptionMatchExpr(Catch::AssertionHandler&, Catch::Matchers::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&)
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
void handleExceptionMatchExpr( AssertionHandler& handler, StringMatcher const& matcher ) { std::string exceptionMessage = Catch::translateActiveException(); MatchExpr<std::string, StringMatcher const&> expr( CATCH_MOVE(exceptionMessage), matcher ); handler.handleExpr( expr ); }
O3
cpp
Catch::handleExceptionMatchExpr(Catch::AssertionHandler&, Catch::Matchers::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&): pushq %r15 pushq %r14 pushq %rbx subq $0x40, %rsp movq %rsi, %r14 movq %rdi, %rbx callq 0x735c6 movq (%rax), %rcx movq %rax, %rdi callq *0x28(%rcx) movq (%rax), %rcx movq %rsp, %r15 movq %r15, %rdi movq %rax, %rsi callq *0x10(%rcx) movq (%r14), %rax movq %r14, %rdi movq %r15, %rsi callq *0x18(%rax) leaq 0x20(%rsp), %rdx movb $0x1, 0x8(%rdx) movb %al, 0x9(%rdx) leaq 0xd7d4d(%rip), %rax # 0x130ff0 addq $0x10, %rax movq %rax, (%rdx) movq %r15, 0x10(%rdx) movq %r14, 0x18(%rdx) movq 0x40(%rbx), %rdi leaq 0x38(%rbx), %rcx movq (%rdi), %rax movq %rbx, %rsi callq *0x78(%rax) leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x592de movq 0x10(%rsp), %rsi incq %rsi callq 0x17150 addq $0x40, %rsp popq %rbx popq %r14 popq %r15 retq jmp 0x592ea movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x59308 movq 0x10(%rsp), %rsi incq %rsi callq 0x17150 movq %rbx, %rdi callq 0x17740
_ZN5Catch24handleExceptionMatchExprERNS_16AssertionHandlerERKNS_8Matchers11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE: push r15 push r14 push rbx sub rsp, 40h mov r14, rsi mov rbx, rdi call _ZN5Catch9SingletonINS_12_GLOBAL__N_111RegistryHubENS_12IRegistryHubENS_19IMutableRegistryHubEE11getInternalEv; Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(void) mov rcx, [rax] mov rdi, rax call qword ptr [rcx+28h] mov rcx, [rax] mov r15, rsp mov rdi, r15 mov rsi, rax call qword ptr [rcx+10h] mov rax, [r14] mov rdi, r14 mov rsi, r15 call qword ptr [rax+18h] lea rdx, [rsp+58h+var_38] mov byte ptr [rdx+8], 1 mov [rdx+9], al lea rax, _ZTVN5Catch9MatchExprINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8Matchers11MatcherBaseIS6_EEEE; `vtable for'Catch::MatchExpr<std::string,Catch::Matchers::MatcherBase<std::string> const&> add rax, 10h mov [rdx], rax mov [rdx+10h], r15 mov [rdx+18h], r14 mov rdi, [rbx+40h] lea rcx, [rbx+38h] mov rax, [rdi] mov rsi, rbx call qword ptr [rax+78h] lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_592DE mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_592DE: add rsp, 40h pop rbx pop r14 pop r15 retn jmp short $+2 loc_592EA: mov rbx, rax lea rax, [rsp+arg_8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_59308 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_59308: mov rdi, rbx call __Unwind_Resume
void Catch::handleExceptionMatchExpr(long long a1, long long a2) { long long Internal; // rax long long v3; // rax char v4; // al void *v5[2]; // [rsp+0h] [rbp-58h] BYREF long long v6; // [rsp+10h] [rbp-48h] BYREF long long *v7; // [rsp+20h] [rbp-38h] BYREF char v8; // [rsp+28h] [rbp-30h] char v9; // [rsp+29h] [rbp-2Fh] void **v10; // [rsp+30h] [rbp-28h] long long v11; // [rsp+38h] [rbp-20h] Internal = Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(a1); v3 = (*(long long ( **)(long long))(*(_QWORD *)Internal + 40LL))(Internal); (*(void ( **)(void **, long long))(*(_QWORD *)v3 + 16LL))(v5, v3); v4 = (*(long long ( **)(long long, void **))(*(_QWORD *)a2 + 24LL))(a2, v5); v8 = 1; v9 = v4; v7 = &`vtable for'Catch::MatchExpr<std::string,Catch::Matchers::MatcherBase<std::string> const&> + 2; v10 = v5; v11 = a2; (*(void ( **)(_QWORD, long long, long long **, long long))(**(_QWORD **)(a1 + 64) + 120LL))( *(_QWORD *)(a1 + 64), a1, &v7, a1 + 56); if ( v5[0] != &v6 ) operator delete(v5[0], v6 + 1); }
handleExceptionMatchExpr: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x40 MOV R14,RSI MOV RBX,RDI CALL 0x001735c6 MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x28] MOV RCX,qword ptr [RAX] MOV R15,RSP MOV RDI,R15 MOV RSI,RAX CALL qword ptr [RCX + 0x10] MOV RAX,qword ptr [R14] LAB_00159287: MOV RDI,R14 MOV RSI,R15 CALL qword ptr [RAX + 0x18] LEA RDX,[RSP + 0x20] MOV byte ptr [RDX + 0x8],0x1 MOV byte ptr [RDX + 0x9],AL LEA RAX,[0x230ff0] ADD RAX,0x10 MOV qword ptr [RDX],RAX MOV qword ptr [RDX + 0x10],R15 MOV qword ptr [RDX + 0x18],R14 MOV RDI,qword ptr [RBX + 0x40] LEA RCX,[RBX + 0x38] MOV RAX,qword ptr [RDI] LAB_001592bd: MOV RSI,RBX CALL qword ptr [RAX + 0x78] LAB_001592c3: LEA RAX,[RSP + 0x10] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001592de MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00117150 LAB_001592de: ADD RSP,0x40 POP RBX POP R14 POP R15 RET
/* Catch::handleExceptionMatchExpr(Catch::AssertionHandler&, Catch::Matchers::MatcherBase<std::__cxx11::string > const&) */ void Catch::handleExceptionMatchExpr(AssertionHandler *param_1,MatcherBase *param_2) { long *plVar1; long *local_58 [2]; long local_48 [2]; int **local_38; int1 local_30; int1 local_2f; int1 *local_28; MatcherBase *local_20; plVar1 = (long *)Singleton<Catch::(anonymous_namespace)::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub> ::getInternal(); plVar1 = (long *)(**(code **)(*plVar1 + 0x28))(plVar1); (**(code **)(*plVar1 + 0x10))(local_58,plVar1); /* try { // try from 00159287 to 0015928f has its CatchHandler @ 001592ea */ local_2f = (**(code **)(*(long *)param_2 + 0x18))(param_2,local_58); local_30 = 1; local_38 = &PTR_streamReconstructedExpression_00231000; /* try { // try from 001592bd to 001592c2 has its CatchHandler @ 001592e8 */ local_28 = (int1 *)local_58; local_20 = param_2; (**(code **)(**(long **)(param_1 + 0x40) + 0x78)) (*(long **)(param_1 + 0x40),param_1,&local_38,param_1 + 0x38); if (local_58[0] != local_48) { operator_delete(local_58[0],local_48[0] + 1); } return; }
17,678
tinyxml2::XMLPrinter::PushText(char const*, bool)
aimrt_mujoco_sim/_deps/tinyxml2-src/tinyxml2.cpp
void XMLPrinter::PushText( const char* text, bool cdata ) { _textDepth = _depth-1; SealElementIfJustOpened(); if ( cdata ) { Write( "<![CDATA[" ); Write( text ); Write( "]]>" ); } else { PrintString( text, true ); } }
O3
cpp
tinyxml2::XMLPrinter::PushText(char const*, bool): pushq %rbp pushq %r14 pushq %rbx movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movl 0x80(%rdi), %eax decl %eax movl %eax, 0x84(%rdi) cmpb $0x1, 0x8(%rdi) jne 0x1bbeb8 movb $0x0, 0x8(%rbx) movq (%rbx), %rax movq %rbx, %rdi movl $0x3e, %esi callq *0x78(%rax) testb %bpl, %bpl je 0x1bbf05 movq (%rbx), %rax leaq 0x35912(%rip), %rsi # 0x1f17d9 movl $0x9, %edx movq %rbx, %rdi callq *0x70(%rax) movq %r14, %rdi callq 0x2de60 movq (%rbx), %rcx movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx callq *0x70(%rcx) movq (%rbx), %rax movq 0x70(%rax), %rax leaq 0x3591a(%rip), %rsi # 0x1f1811 movl $0x3, %edx movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmpq *%rax movq %rbx, %rdi movq %r14, %rsi movl $0x1, %edx popq %rbx popq %r14 popq %rbp jmp 0x30490 nop
_ZN8tinyxml210XMLPrinter8PushTextEPKcb: push rbp push r14 push rbx mov ebp, edx mov r14, rsi mov rbx, rdi mov eax, [rdi+80h] dec eax mov [rdi+84h], eax cmp byte ptr [rdi+8], 1 jnz short loc_1BBEB8 mov byte ptr [rbx+8], 0 mov rax, [rbx] mov rdi, rbx mov esi, 3Eh ; '>' call qword ptr [rax+78h] loc_1BBEB8: test bpl, bpl jz short loc_1BBF05 mov rax, [rbx] lea rsi, aCdata; "<![CDATA[" mov edx, 9 mov rdi, rbx call qword ptr [rax+70h] mov rdi, r14 call _strlen mov rcx, [rbx] mov rdi, rbx mov rsi, r14 mov rdx, rax call qword ptr [rcx+70h] mov rax, [rbx] mov rax, [rax+70h] lea rsi, asc_1F1811; "]]>" mov edx, 3 mov rdi, rbx pop rbx pop r14 pop rbp jmp rax loc_1BBF05: mov rdi, rbx; this mov rsi, r14; char * mov edx, 1; bool pop rbx pop r14 pop rbp jmp __ZN8tinyxml210XMLPrinter11PrintStringEPKcb; tinyxml2::XMLPrinter::PrintString(char const*,bool)
long long tinyxml2::XMLPrinter::PushText(tinyxml2::XMLPrinter *this, const char *a2, char a3) { long long v4; // rax *((_DWORD *)this + 33) = *((_DWORD *)this + 32) - 1; if ( *((_BYTE *)this + 8) == 1 ) { *((_BYTE *)this + 8) = 0; (*(void ( **)(tinyxml2::XMLPrinter *, long long))(*(_QWORD *)this + 120LL))(this, 62LL); } if ( !a3 ) return tinyxml2::XMLPrinter::PrintString(this, a2, 1); (*(void ( **)(tinyxml2::XMLPrinter *, const char *, long long))(*(_QWORD *)this + 112LL))( this, "<![CDATA[", 9LL); v4 = strlen(a2); (*(void ( **)(tinyxml2::XMLPrinter *, const char *, long long))(*(_QWORD *)this + 112LL))(this, a2, v4); return (*(long long ( **)(tinyxml2::XMLPrinter *, const char *, long long))(*(_QWORD *)this + 112LL))( this, "]]>", 3LL); }
_M_insert_unique_node: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RCX MOV R15,RDX MOV R12,RSI MOV R14,RDI ADD RDI,0x20 MOV RAX,qword ptr [R14 + 0x28] MOV qword ptr [RSP],RAX MOV RSI,qword ptr [R14 + 0x8] MOV RDX,qword ptr [R14 + 0x18] MOV RCX,R8 CALL 0x0012e8c0 TEST AL,0x1 JZ 0x001bbed7 MOV RAX,RSP MOV RDI,R14 MOV RSI,RDX MOV RDX,RAX CALL 0x001bc08a MOV RAX,R15 XOR EDX,EDX DIV qword ptr [R14 + 0x8] MOV R12,RDX LAB_001bbed7: MOV qword ptr [RBX + 0x60],R15 MOV RDI,R14 MOV RSI,R12 MOV RDX,RBX CALL 0x001bc0ce INC qword ptr [R14 + 0x18] MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* std::_Hashtable<std::__cxx11::string, std::pair<std::__cxx11::string const, std::unordered_set<mjCAsset*, std::hash<mjCAsset*>, std::equal_to<mjCAsset*>, std::allocator<mjCAsset*> > >, std::allocator<std::pair<std::__cxx11::string const, std::unordered_set<mjCAsset*, std::hash<mjCAsset*>, std::equal_to<mjCAsset*>, std::allocator<mjCAsset*> > > >, std::__detail::_Select1st, std::equal_to<std::__cxx11::string >, std::hash<std::__cxx11::string >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::_M_insert_unique_node(unsigned long, unsigned long, std::__detail::_Hash_node<std::pair<std::__cxx11::string const, std::unordered_set<mjCAsset*, std::hash<mjCAsset*>, std::equal_to<mjCAsset*>, std::allocator<mjCAsset*> > >, true>*, unsigned long) */ ulong std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::unordered_set<mjCAsset*,std::hash<mjCAsset*>,std::equal_to<mjCAsset*>,std::allocator<mjCAsset*>>>,std::allocator<std::pair<std::__cxx11::string_const,std::unordered_set<mjCAsset*,std::hash<mjCAsset*>,std::equal_to<mjCAsset*>,std::allocator<mjCAsset*>>>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::_M_insert_unique_node(ulong param_1,ulong param_2,_Hash_node *param_3,ulong param_4) { int1 auVar1 [16]; auVar1 = std::__detail::_Prime_rehash_policy::_M_need_rehash (param_1 + 0x20,*(ulong *)(param_1 + 8),*(ulong *)(param_1 + 0x18)); if ((auVar1 & (int1 [16])0x1) != (int1 [16])0x0) { _M_rehash(param_1,auVar1._8_8_); param_2 = (ulong)param_3 % *(ulong *)(param_1 + 8); } *(_Hash_node **)(param_4 + 0x60) = param_3; _M_insert_bucket_begin ((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::unordered_set<mjCAsset*,std::hash<mjCAsset*>,std::equal_to<mjCAsset*>,std::allocator<mjCAsset*>>>,std::allocator<std::pair<std::__cxx11::string_const,std::unordered_set<mjCAsset*,std::hash<mjCAsset*>,std::equal_to<mjCAsset*>,std::allocator<mjCAsset*>>>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> *)param_1,param_2,(_Hash_node *)param_4); *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1; return param_4; }
17,679
patricia_create_merkle_proof
corpus-core[P]colibri-stateless/src/chains/eth/verifier/patricia_trie.c
INTERNAL ssz_ob_t patricia_create_merkle_proof(node_t* root, bytes_t path) { ssz_def_t def = SSZ_LIST("bytes", ssz_bytes_list, 1024); ssz_builder_t builder = {0}; buffer_t buf = {0}; nibbles_t nibbles = path_to_nibbles(path, false); int offset = 0; int len = 0; builder.def = &def; while (root && offset <= nibbles.len) { // add the node if (root->hash_len >= 32) node_update_hash(root, false, &builder); len++; if (offset == nibbles.len) break; if (root->type == NODE_TYPE_BRANCH) { root = root->values.branch.children[nibbles.data[offset]]; offset++; } else if (root->type == NODE_TYPE_LEAF) break; else { nibbles_t remaining = remaining_nibbles(nibbles, offset); int leaf_nibble_len; int same = nibble_cmp(remaining, root->values.leaf.path, &leaf_nibble_len); root = root->values.extension.child; offset += same; } } safe_free(nibbles.data); // fix offsets in builder for (int i = 0; i < len; i++) uint32_to_le(builder.fixed.data.data + i * 4, uint32_from_le(builder.fixed.data.data + i * 4) + len * 4); return ssz_builder_to_bytes(&builder); }
O0
c
patricia_create_merkle_proof: pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0xd0(%rbp) movq %rdi, -0xc8(%rbp) movl %edx, -0x10(%rbp) movq %rcx, -0x8(%rbp) movq %rsi, -0x18(%rbp) movq 0xf0f15(%rip), %rax # 0x125ed0 movq %rax, -0x38(%rbp) movq 0xf0f12(%rip), %rax # 0x125ed8 movq %rax, -0x30(%rbp) movq 0xf0f0f(%rip), %rax # 0x125ee0 movq %rax, -0x28(%rbp) movq 0xf0f0c(%rip), %rax # 0x125ee8 movq %rax, -0x20(%rbp) leaq -0x70(%rbp), %rdi xorl %esi, %esi movl $0x38, %edx callq 0x231c0 leaq -0x88(%rbp), %rdi xorl %esi, %esi movl $0x18, %edx callq 0x231c0 movl -0x10(%rbp), %edi movq -0x8(%rbp), %rsi xorl %edx, %edx callq 0x34670 movl %eax, -0x98(%rbp) movq %rdx, -0x90(%rbp) movl $0x0, -0x9c(%rbp) movl $0x0, -0xa0(%rbp) leaq -0x38(%rbp), %rax movq %rax, -0x70(%rbp) xorl %eax, %eax cmpq $0x0, -0x18(%rbp) movb %al, -0xd1(%rbp) je 0x3505e movl -0x9c(%rbp), %eax cmpl -0x98(%rbp), %eax setbe %al movb %al, -0xd1(%rbp) movb -0xd1(%rbp), %al testb $0x1, %al jne 0x3506d jmp 0x35162 movq -0x18(%rbp), %rax cmpl $0x20, 0x20(%rax) jb 0x35086 movq -0x18(%rbp), %rdi xorl %esi, %esi leaq -0x70(%rbp), %rdx callq 0x34880 movl -0xa0(%rbp), %eax addl $0x1, %eax movl %eax, -0xa0(%rbp) movl -0x9c(%rbp), %eax cmpl -0x98(%rbp), %eax jne 0x350a8 jmp 0x35162 movq -0x18(%rbp), %rax cmpl $0x2, 0x30(%rax) jne 0x350e2 movq -0x18(%rbp), %rax movq -0x90(%rbp), %rcx movslq -0x9c(%rbp), %rdx movzbl (%rcx,%rdx), %ecx movq 0x38(%rax,%rcx,8), %rax movq %rax, -0x18(%rbp) movl -0x9c(%rbp), %eax addl $0x1, %eax movl %eax, -0x9c(%rbp) jmp 0x3515d movq -0x18(%rbp), %rax cmpl $0x0, 0x30(%rax) jne 0x350ee jmp 0x35162 movl -0x9c(%rbp), %edx movl -0x98(%rbp), %edi movq -0x90(%rbp), %rsi callq 0x35210 movl %eax, -0xb0(%rbp) movq %rdx, -0xa8(%rbp) movq -0x18(%rbp), %rax movl -0xb0(%rbp), %edi movq -0xa8(%rbp), %rsi movl 0x38(%rax), %edx movq 0x40(%rax), %rcx leaq -0xb4(%rbp), %r8 callq 0x35240 movl %eax, -0xb8(%rbp) movq -0x18(%rbp), %rax movq 0x48(%rax), %rax movq %rax, -0x18(%rbp) movl -0xb8(%rbp), %eax addl -0x9c(%rbp), %eax movl %eax, -0x9c(%rbp) jmp 0x3515d jmp 0x3503a movq -0x90(%rbp), %rdi callq 0x9dbf0 movl $0x0, -0xbc(%rbp) movl -0xbc(%rbp), %eax cmpl -0xa0(%rbp), %eax jge 0x351e1 movq -0x60(%rbp), %rax movl -0xbc(%rbp), %ecx shll $0x2, %ecx movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0xe0(%rbp) movq -0x60(%rbp), %rdi movl -0xbc(%rbp), %eax shll $0x2, %eax cltq addq %rax, %rdi callq 0x9dc10 movq -0xe0(%rbp), %rdi movl %eax, %esi movl -0xa0(%rbp), %eax shll $0x2, %eax addl %eax, %esi callq 0x9df40 movl -0xbc(%rbp), %eax addl $0x1, %eax movl %eax, -0xbc(%rbp) jmp 0x35178 movq -0xd0(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0xa3b70 movq -0xc8(%rbp), %rax addq $0xe0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
patricia_create_merkle_proof: push rbp mov rbp, rsp sub rsp, 0E0h mov [rbp+var_D0], rdi mov [rbp+var_C8], rdi mov [rbp+var_10], edx mov [rbp+var_8], rcx mov [rbp+var_18], rsi mov rax, cs:off_125ED0; "bytes" mov [rbp+var_38], rax mov rax, cs:qword_125ED8 mov [rbp+var_30], rax mov rax, cs:off_125EE0 mov [rbp+var_28], rax mov rax, cs:qword_125EE8 mov [rbp+var_20], rax lea rdi, [rbp+var_70] xor esi, esi mov edx, 38h ; '8' call _memset lea rdi, [rbp+var_88] xor esi, esi mov edx, 18h call _memset mov edi, [rbp+var_10] mov rsi, [rbp+var_8] xor edx, edx call path_to_nibbles mov [rbp+var_98], eax mov [rbp+var_90], rdx mov [rbp+var_9C], 0 mov [rbp+var_A0], 0 lea rax, [rbp+var_38] mov [rbp+var_70], rax loc_3503A: xor eax, eax cmp [rbp+var_18], 0 mov [rbp+var_D1], al jz short loc_3505E mov eax, [rbp+var_9C] cmp eax, [rbp+var_98] setbe al mov [rbp+var_D1], al loc_3505E: mov al, [rbp+var_D1] test al, 1 jnz short loc_3506D jmp loc_35162 loc_3506D: mov rax, [rbp+var_18] cmp dword ptr [rax+20h], 20h ; ' ' jb short loc_35086 mov rdi, [rbp+var_18] xor esi, esi lea rdx, [rbp+var_70] call node_update_hash loc_35086: mov eax, [rbp+var_A0] add eax, 1 mov [rbp+var_A0], eax mov eax, [rbp+var_9C] cmp eax, [rbp+var_98] jnz short loc_350A8 jmp loc_35162 loc_350A8: mov rax, [rbp+var_18] cmp dword ptr [rax+30h], 2 jnz short loc_350E2 mov rax, [rbp+var_18] mov rcx, [rbp+var_90] movsxd rdx, [rbp+var_9C] movzx ecx, byte ptr [rcx+rdx] mov rax, [rax+rcx*8+38h] mov [rbp+var_18], rax mov eax, [rbp+var_9C] add eax, 1 mov [rbp+var_9C], eax jmp short loc_3515D loc_350E2: mov rax, [rbp+var_18] cmp dword ptr [rax+30h], 0 jnz short loc_350EE jmp short loc_35162 loc_350EE: mov edx, [rbp+var_9C] mov edi, [rbp+var_98] mov rsi, [rbp+var_90] call remaining_nibbles mov [rbp+var_B0], eax mov [rbp+var_A8], rdx mov rax, [rbp+var_18] mov edi, [rbp+var_B0] mov rsi, [rbp+var_A8] mov edx, [rax+38h] mov rcx, [rax+40h] lea r8, [rbp+var_B4] call nibble_cmp mov [rbp+var_B8], eax mov rax, [rbp+var_18] mov rax, [rax+48h] mov [rbp+var_18], rax mov eax, [rbp+var_B8] add eax, [rbp+var_9C] mov [rbp+var_9C], eax jmp short $+2 loc_3515D: jmp loc_3503A loc_35162: mov rdi, [rbp+var_90] call safe_free mov [rbp+var_BC], 0 loc_35178: mov eax, [rbp+var_BC] cmp eax, [rbp+var_A0] jge short loc_351E1 mov rax, [rbp+var_60] mov ecx, [rbp+var_BC] shl ecx, 2 movsxd rcx, ecx add rax, rcx mov [rbp+var_E0], rax mov rdi, [rbp+var_60] mov eax, [rbp+var_BC] shl eax, 2 cdqe add rdi, rax call uint32_from_le mov rdi, [rbp+var_E0] mov esi, eax mov eax, [rbp+var_A0] shl eax, 2 add esi, eax call uint32_to_le mov eax, [rbp+var_BC] add eax, 1 mov [rbp+var_BC], eax jmp short loc_35178 loc_351E1: mov rdi, [rbp+var_D0] lea rsi, [rbp+var_70] call ssz_builder_to_bytes mov rax, [rbp+var_C8] add rsp, 0E0h pop rbp retn
long long patricia_create_merkle_proof(long long a1, long long a2, int a3, _BYTE *a4) { long long v4; // rdx long long v5; // rdx int v6; // eax long long v8; // [rsp+0h] [rbp-E0h] bool v9; // [rsp+Fh] [rbp-D1h] int i; // [rsp+24h] [rbp-BCh] int v11; // [rsp+28h] [rbp-B8h] _BYTE v12[4]; // [rsp+2Ch] [rbp-B4h] BYREF unsigned int v13; // [rsp+30h] [rbp-B0h] long long v14; // [rsp+38h] [rbp-A8h] int v15; // [rsp+40h] [rbp-A0h] unsigned int v16; // [rsp+44h] [rbp-9Ch] unsigned int v17; // [rsp+48h] [rbp-98h] long long v18; // [rsp+50h] [rbp-90h] _BYTE v19[24]; // [rsp+58h] [rbp-88h] BYREF _QWORD v20[7]; // [rsp+70h] [rbp-70h] BYREF _QWORD v21[4]; // [rsp+A8h] [rbp-38h] BYREF long long v22; // [rsp+C8h] [rbp-18h] int v23; // [rsp+D0h] [rbp-10h] _BYTE *v24; // [rsp+D8h] [rbp-8h] v23 = a3; v24 = a4; v22 = a2; v21[0] = "bytes"; v21[1] = &byte_4; v21[2] = &ssz_bytes_list; v21[3] = &elf_gnu_hash_bucket[14]; memset(v20, 0LL, sizeof(v20)); memset(v19, 0LL, sizeof(v19)); v17 = path_to_nibbles(v23, v24, 0); v18 = v4; v16 = 0; v15 = 0; v20[0] = v21; while ( 1 ) { v9 = 0; if ( v22 ) v9 = v16 <= v17; if ( !v9 ) break; if ( *(_DWORD *)(v22 + 32) >= 0x20u ) node_update_hash(v22, 0, (long long)v20); ++v15; if ( v16 == v17 ) break; if ( *(_DWORD *)(v22 + 48) == 2 ) { v22 = *(_QWORD *)(v22 + 8LL * *(unsigned __int8 *)(v18 + (int)v16++) + 56); } else { if ( !*(_DWORD *)(v22 + 48) ) break; v13 = remaining_nibbles(v17, v18, v16); v14 = v5; v11 = nibble_cmp(v13, v5, *(unsigned int *)(v22 + 56), *(_QWORD *)(v22 + 64), v12); v22 = *(_QWORD *)(v22 + 72); v16 += v11; } } safe_free(v18); for ( i = 0; i < v15; ++i ) { v8 = 4 * i + v20[2]; v6 = uint32_from_le(v8); uint32_to_le(v8, (unsigned int)(4 * v15 + v6)); } ssz_builder_to_bytes(a1, v20); return a1; }
patricia_create_merkle_proof: PUSH RBP MOV RBP,RSP SUB RSP,0xe0 MOV qword ptr [RBP + -0xd0],RDI MOV qword ptr [RBP + -0xc8],RDI MOV dword ptr [RBP + -0x10],EDX MOV qword ptr [RBP + -0x8],RCX MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [0x00225ed0] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [0x00225ed8] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [0x00225ee0] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [0x00225ee8] MOV qword ptr [RBP + -0x20],RAX LEA RDI,[RBP + -0x70] XOR ESI,ESI MOV EDX,0x38 CALL 0x001231c0 LEA RDI,[RBP + -0x88] XOR ESI,ESI MOV EDX,0x18 CALL 0x001231c0 MOV EDI,dword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x8] XOR EDX,EDX CALL 0x00134670 MOV dword ptr [RBP + -0x98],EAX MOV qword ptr [RBP + -0x90],RDX MOV dword ptr [RBP + -0x9c],0x0 MOV dword ptr [RBP + -0xa0],0x0 LEA RAX,[RBP + -0x38] MOV qword ptr [RBP + -0x70],RAX LAB_0013503a: XOR EAX,EAX CMP qword ptr [RBP + -0x18],0x0 MOV byte ptr [RBP + -0xd1],AL JZ 0x0013505e MOV EAX,dword ptr [RBP + -0x9c] CMP EAX,dword ptr [RBP + -0x98] SETBE AL MOV byte ptr [RBP + -0xd1],AL LAB_0013505e: MOV AL,byte ptr [RBP + -0xd1] TEST AL,0x1 JNZ 0x0013506d JMP 0x00135162 LAB_0013506d: MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x20],0x20 JC 0x00135086 MOV RDI,qword ptr [RBP + -0x18] XOR ESI,ESI LEA RDX,[RBP + -0x70] CALL 0x00134880 LAB_00135086: MOV EAX,dword ptr [RBP + -0xa0] ADD EAX,0x1 MOV dword ptr [RBP + -0xa0],EAX MOV EAX,dword ptr [RBP + -0x9c] CMP EAX,dword ptr [RBP + -0x98] JNZ 0x001350a8 JMP 0x00135162 LAB_001350a8: MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x30],0x2 JNZ 0x001350e2 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x90] MOVSXD RDX,dword ptr [RBP + -0x9c] MOVZX ECX,byte ptr [RCX + RDX*0x1] MOV RAX,qword ptr [RAX + RCX*0x8 + 0x38] MOV qword ptr [RBP + -0x18],RAX MOV EAX,dword ptr [RBP + -0x9c] ADD EAX,0x1 MOV dword ptr [RBP + -0x9c],EAX JMP 0x0013515d LAB_001350e2: MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x30],0x0 JNZ 0x001350ee JMP 0x00135162 LAB_001350ee: MOV EDX,dword ptr [RBP + -0x9c] MOV EDI,dword ptr [RBP + -0x98] MOV RSI,qword ptr [RBP + -0x90] CALL 0x00135210 MOV dword ptr [RBP + -0xb0],EAX MOV qword ptr [RBP + -0xa8],RDX MOV RAX,qword ptr [RBP + -0x18] MOV EDI,dword ptr [RBP + -0xb0] MOV RSI,qword ptr [RBP + -0xa8] MOV EDX,dword ptr [RAX + 0x38] MOV RCX,qword ptr [RAX + 0x40] LEA R8,[RBP + -0xb4] CALL 0x00135240 MOV dword ptr [RBP + -0xb8],EAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RBP + -0x18],RAX MOV EAX,dword ptr [RBP + -0xb8] ADD EAX,dword ptr [RBP + -0x9c] MOV dword ptr [RBP + -0x9c],EAX JMP 0x0013515d LAB_0013515d: JMP 0x0013503a LAB_00135162: MOV RDI,qword ptr [RBP + -0x90] CALL 0x0019dbf0 MOV dword ptr [RBP + -0xbc],0x0 LAB_00135178: MOV EAX,dword ptr [RBP + -0xbc] CMP EAX,dword ptr [RBP + -0xa0] JGE 0x001351e1 MOV RAX,qword ptr [RBP + -0x60] MOV ECX,dword ptr [RBP + -0xbc] SHL ECX,0x2 MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0xe0],RAX MOV RDI,qword ptr [RBP + -0x60] MOV EAX,dword ptr [RBP + -0xbc] SHL EAX,0x2 CDQE ADD RDI,RAX CALL 0x0019dc10 MOV RDI,qword ptr [RBP + -0xe0] MOV ESI,EAX MOV EAX,dword ptr [RBP + -0xa0] SHL EAX,0x2 ADD ESI,EAX CALL 0x0019df40 MOV EAX,dword ptr [RBP + -0xbc] ADD EAX,0x1 MOV dword ptr [RBP + -0xbc],EAX JMP 0x00135178 LAB_001351e1: MOV RDI,qword ptr [RBP + -0xd0] LEA RSI,[RBP + -0x70] CALL 0x001a3b70 MOV RAX,qword ptr [RBP + -0xc8] ADD RSP,0xe0 POP RBP RET
int8 patricia_create_merkle_proof(int8 param_1,long param_2,int4 param_3,int8 param_4) { int iVar1; long lVar2; long extraout_RDX; int8 extraout_RDX_00; int local_c4; int1 local_bc [4]; int4 local_b8; int8 local_b0; int local_a8; uint local_a4; uint local_a0; long local_98; int1 local_90 [24]; int **local_78 [2]; long local_68; int *local_40; int8 local_38; int *local_30; int8 local_28; long local_20; int4 local_18; int8 local_10; local_40 = PTR_s_bytes_00225ed0; local_38 = DAT_00225ed8; local_30 = PTR_ssz_bytes_list_00225ee0; local_28 = DAT_00225ee8; local_20 = param_2; local_18 = param_3; local_10 = param_4; memset(local_78,0,0x38); memset(local_90,0,0x18); local_a0 = path_to_nibbles(local_18,local_10,0); local_a4 = 0; local_a8 = 0; local_78[0] = &local_40; local_98 = extraout_RDX; while (local_20 != 0 && local_a4 <= local_a0) { if (0x1f < *(uint *)(local_20 + 0x20)) { node_update_hash(local_20,0,local_78); } local_a8 = local_a8 + 1; if (local_a4 == local_a0) break; if (*(int *)(local_20 + 0x30) == 2) { local_20 = *(long *)(local_20 + 0x38 + (ulong)*(byte *)(local_98 + (int)local_a4) * 8); local_a4 = local_a4 + 1; } else { if (*(int *)(local_20 + 0x30) == 0) break; local_b8 = remaining_nibbles(local_a0,local_98,local_a4); local_b0 = extraout_RDX_00; iVar1 = nibble_cmp(local_b8,extraout_RDX_00,*(int4 *)(local_20 + 0x38), *(int8 *)(local_20 + 0x40),local_bc); local_20 = *(long *)(local_20 + 0x48); local_a4 = iVar1 + local_a4; } } safe_free(local_98); for (local_c4 = 0; local_c4 < local_a8; local_c4 = local_c4 + 1) { lVar2 = local_68 + (local_c4 << 2); iVar1 = uint32_from_le(local_68 + (local_c4 << 2)); uint32_to_le(lVar2,iVar1 + local_a8 * 4); } ssz_builder_to_bytes(param_1,local_78); return param_1; }
17,680
patricia_create_merkle_proof
corpus-core[P]colibri-stateless/src/chains/eth/verifier/patricia_trie.c
INTERNAL ssz_ob_t patricia_create_merkle_proof(node_t* root, bytes_t path) { ssz_def_t def = SSZ_LIST("bytes", ssz_bytes_list, 1024); ssz_builder_t builder = {0}; buffer_t buf = {0}; nibbles_t nibbles = path_to_nibbles(path, false); int offset = 0; int len = 0; builder.def = &def; while (root && offset <= nibbles.len) { // add the node if (root->hash_len >= 32) node_update_hash(root, false, &builder); len++; if (offset == nibbles.len) break; if (root->type == NODE_TYPE_BRANCH) { root = root->values.branch.children[nibbles.data[offset]]; offset++; } else if (root->type == NODE_TYPE_LEAF) break; else { nibbles_t remaining = remaining_nibbles(nibbles, offset); int leaf_nibble_len; int same = nibble_cmp(remaining, root->values.leaf.path, &leaf_nibble_len); root = root->values.extension.child; offset += same; } } safe_free(nibbles.data); // fix offsets in builder for (int i = 0; i < len; i++) uint32_to_le(builder.fixed.data.data + i * 4, uint32_from_le(builder.fixed.data.data + i * 4) + len * 4); return ssz_builder_to_bytes(&builder); }
O2
c
patricia_create_merkle_proof: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rsi, %r14 movq %rdi, 0x8(%rsp) movups 0x7ba18(%rip), %xmm0 # 0xa9040 leaq 0x50(%rsp), %r13 movaps %xmm0, 0x10(%r13) movups 0x7b9f7(%rip), %xmm0 # 0xa9030 movaps %xmm0, (%r13) xorps %xmm0, %xmm0 leaq 0x18(%rsp), %r12 movups %xmm0, 0x28(%r12) movups %xmm0, 0x18(%r12) movups %xmm0, 0x8(%r12) xorl %ebx, %ebx movl %edx, %edi movq %rcx, %rsi xorl %edx, %edx callq 0x2d3bb movl %eax, %ebp movq %rdx, %r15 movq %r13, (%r12) xorl %r13d, %r13d testq %r14, %r14 je 0x2d6db cmpl %r13d, %ebp jb 0x2d6db cmpl $0x20, 0x20(%r14) jb 0x2d690 movq %r14, %rdi xorl %esi, %esi movq %r12, %rdx callq 0x2d4d9 movl %ebp, %edi subl %r13d, %edi je 0x2d6d9 movl 0x30(%r14), %eax cmpl $0x2, %eax je 0x2d6c5 testl %eax, %eax je 0x2d6d9 movl %r13d, %esi addq %r15, %rsi movl 0x38(%r14), %edx movq 0x40(%r14), %rcx leaq 0x14(%rsp), %r8 callq 0x2d73a movq 0x48(%r14), %r14 addl %eax, %r13d jmp 0x2d6d5 movslq %r13d, %rax movzbl (%r15,%rax), %eax movq 0x38(%r14,%rax,8), %r14 incl %r13d incl %ebx jmp 0x2d672 incl %ebx movq %r15, %rdi callq 0x4aff8 movl %ebx, %r15d shll $0x2, %ebx shlq $0x2, %r15 xorl %r12d, %r12d cmpq %r12, %r15 je 0x2d716 movq 0x28(%rsp), %r14 addq %r12, %r14 movq %r14, %rdi callq 0x4affd leal (%rax,%rbx), %esi movq %r14, %rdi callq 0x4b01a addq $0x4, %r12 jmp 0x2d6f0 leaq 0x18(%rsp), %rsi movq 0x8(%rsp), %rbx movq %rbx, %rdi callq 0x4e3c1 movq %rbx, %rax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
patricia_create_merkle_proof: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov r14, rsi mov [rsp+0A8h+var_A0], rdi movups xmm0, xmmword ptr cs:off_A9040 lea r13, [rsp+0A8h+var_58] movaps xmmword ptr [r13+10h], xmm0 movups xmm0, xmmword ptr cs:off_A9030; "bytes" movaps xmmword ptr [r13+0], xmm0 xorps xmm0, xmm0 lea r12, [rsp+0A8h+var_90] movups xmmword ptr [r12+28h], xmm0 movups xmmword ptr [r12+18h], xmm0 movups xmmword ptr [r12+8], xmm0 xor ebx, ebx mov edi, edx mov rsi, rcx xor edx, edx call path_to_nibbles mov ebp, eax mov r15, rdx mov [r12], r13 xor r13d, r13d loc_2D672: test r14, r14 jz short loc_2D6DB cmp ebp, r13d jb short loc_2D6DB cmp dword ptr [r14+20h], 20h ; ' ' jb short loc_2D690 mov rdi, r14 xor esi, esi mov rdx, r12 call node_update_hash loc_2D690: mov edi, ebp sub edi, r13d jz short loc_2D6D9 mov eax, [r14+30h] cmp eax, 2 jz short loc_2D6C5 test eax, eax jz short loc_2D6D9 mov esi, r13d add rsi, r15 mov edx, [r14+38h] mov rcx, [r14+40h] lea r8, [rsp+0A8h+var_94] call nibble_cmp mov r14, [r14+48h] add r13d, eax jmp short loc_2D6D5 loc_2D6C5: movsxd rax, r13d movzx eax, byte ptr [r15+rax] mov r14, [r14+rax*8+38h] inc r13d loc_2D6D5: inc ebx jmp short loc_2D672 loc_2D6D9: inc ebx loc_2D6DB: mov rdi, r15 call safe_free mov r15d, ebx shl ebx, 2 shl r15, 2 xor r12d, r12d loc_2D6F0: cmp r15, r12 jz short loc_2D716 mov r14, [rsp+0A8h+var_80] add r14, r12 mov rdi, r14 call uint32_from_le lea esi, [rax+rbx] mov rdi, r14 call uint32_to_le add r12, 4 jmp short loc_2D6F0 loc_2D716: lea rsi, [rsp+0A8h+var_90] mov rbx, [rsp+0A8h+var_A0] mov rdi, rbx call ssz_builder_to_bytes mov rax, rbx add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long patricia_create_merkle_proof(long long a1, long long a2, int a3, _BYTE *a4) { unsigned int v5; // ebx unsigned int v6; // ebp long long v7; // rdx long long v8; // r15 unsigned int v9; // r13d int v10; // eax int v11; // eax long long v12; // r15 int v13; // ebx long long v14; // r15 long long i; // r12 long long v16; // r14 int v17; // eax _BYTE v19[4]; // [rsp+14h] [rbp-94h] BYREF _OWORD *v20; // [rsp+18h] [rbp-90h] BYREF __int128 v21; // [rsp+20h] [rbp-88h] __int128 v22; // [rsp+30h] [rbp-78h] __int128 v23; // [rsp+40h] [rbp-68h] _OWORD v24[5]; // [rsp+50h] [rbp-58h] BYREF v24[1] = *(_OWORD *)&off_A9040; v24[0] = *(_OWORD *)&off_A9030; v23 = 0LL; v22 = 0LL; v21 = 0LL; v5 = 0; v6 = path_to_nibbles(a3, a4, 0); v8 = v7; v20 = v24; v9 = 0; while ( a2 && v6 >= v9 ) { if ( *(_DWORD *)(a2 + 32) >= 0x20u ) node_update_hash(a2, 0, (long long)&v20); if ( v6 == v9 ) { LABEL_12: ++v5; break; } v10 = *(_DWORD *)(a2 + 48); if ( v10 == 2 ) { a2 = *(_QWORD *)(a2 + 8LL * *(unsigned __int8 *)(v8 + (int)v9++) + 56); } else { if ( !v10 ) goto LABEL_12; v11 = nibble_cmp(v6 - v9, v8 + v9, *(unsigned int *)(a2 + 56), *(_QWORD *)(a2 + 64), v19); a2 = *(_QWORD *)(a2 + 72); v9 += v11; } ++v5; } safe_free(v8); v12 = v5; v13 = 4 * v5; v14 = 4 * v12; for ( i = 0LL; v14 != i; i += 4LL ) { v16 = i + *((_QWORD *)&v21 + 1); v17 = uint32_from_le(i + *((_QWORD *)&v21 + 1)); uint32_to_le(v16, (unsigned int)(v17 + v13)); } ssz_builder_to_bytes(a1, &v20); return a1; }
patricia_create_merkle_proof: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV R14,RSI MOV qword ptr [RSP + 0x8],RDI MOVUPS XMM0,xmmword ptr [0x001a9040] LEA R13,[RSP + 0x50] MOVAPS xmmword ptr [R13 + 0x10],XMM0 MOVUPS XMM0,xmmword ptr [0x001a9030] MOVAPS xmmword ptr [R13],XMM0 XORPS XMM0,XMM0 LEA R12,[RSP + 0x18] MOVUPS xmmword ptr [R12 + 0x28],XMM0 MOVUPS xmmword ptr [R12 + 0x18],XMM0 MOVUPS xmmword ptr [R12 + 0x8],XMM0 XOR EBX,EBX MOV EDI,EDX MOV RSI,RCX XOR EDX,EDX CALL 0x0012d3bb MOV EBP,EAX MOV R15,RDX MOV qword ptr [R12],R13 XOR R13D,R13D LAB_0012d672: TEST R14,R14 JZ 0x0012d6db CMP EBP,R13D JC 0x0012d6db CMP dword ptr [R14 + 0x20],0x20 JC 0x0012d690 MOV RDI,R14 XOR ESI,ESI MOV RDX,R12 CALL 0x0012d4d9 LAB_0012d690: MOV EDI,EBP SUB EDI,R13D JZ 0x0012d6d9 MOV EAX,dword ptr [R14 + 0x30] CMP EAX,0x2 JZ 0x0012d6c5 TEST EAX,EAX JZ 0x0012d6d9 MOV ESI,R13D ADD RSI,R15 MOV EDX,dword ptr [R14 + 0x38] MOV RCX,qword ptr [R14 + 0x40] LEA R8,[RSP + 0x14] CALL 0x0012d73a MOV R14,qword ptr [R14 + 0x48] ADD R13D,EAX JMP 0x0012d6d5 LAB_0012d6c5: MOVSXD RAX,R13D MOVZX EAX,byte ptr [R15 + RAX*0x1] MOV R14,qword ptr [R14 + RAX*0x8 + 0x38] INC R13D LAB_0012d6d5: INC EBX JMP 0x0012d672 LAB_0012d6d9: INC EBX LAB_0012d6db: MOV RDI,R15 CALL 0x0014aff8 MOV R15D,EBX SHL EBX,0x2 SHL R15,0x2 XOR R12D,R12D LAB_0012d6f0: CMP R15,R12 JZ 0x0012d716 MOV R14,qword ptr [RSP + 0x28] ADD R14,R12 MOV RDI,R14 CALL 0x0014affd LEA ESI,[RAX + RBX*0x1] MOV RDI,R14 CALL 0x0014b01a ADD R12,0x4 JMP 0x0012d6f0 LAB_0012d716: LEA RSI,[RSP + 0x18] MOV RBX,qword ptr [RSP + 0x8] MOV RDI,RBX CALL 0x0014e3c1 MOV RAX,RBX ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int8 patricia_create_merkle_proof(int8 param_1,long param_2,int4 param_3,int8 param_4) { uint uVar1; int iVar2; long extraout_RDX; uint uVar3; long lVar4; uint uVar5; long lVar6; int1 local_94 [4]; int **local_90; int8 local_88; long lStack_80; int8 local_78; int8 uStack_70; int8 local_68; int8 uStack_60; int *local_58; int8 uStack_50; int *local_48; int8 uStack_40; local_48 = PTR_ssz_bytes_list_001a9040; uStack_40 = _UNK_001a9048; local_58 = PTR_s_bytes_001a9030; uStack_50 = _UNK_001a9038; local_68 = 0; uStack_60 = 0; local_78 = 0; uStack_70 = 0; local_88 = 0; lStack_80 = 0; uVar3 = 0; uVar1 = path_to_nibbles(param_3,param_4,0); uVar5 = 0; local_90 = &local_58; while( true ) { if ((param_2 == 0) || (uVar1 < uVar5)) goto LAB_0012d6db; if (0x1f < *(uint *)(param_2 + 0x20)) { node_update_hash(param_2,0,&local_90); } if (uVar1 - uVar5 == 0) break; if (*(int *)(param_2 + 0x30) == 2) { param_2 = *(long *)(param_2 + 0x38 + (ulong)*(byte *)(extraout_RDX + (int)uVar5) * 8); uVar5 = uVar5 + 1; } else { if (*(int *)(param_2 + 0x30) == 0) break; iVar2 = nibble_cmp(uVar1 - uVar5,(ulong)uVar5 + extraout_RDX,*(int4 *)(param_2 + 0x38), *(int8 *)(param_2 + 0x40),local_94); param_2 = *(long *)(param_2 + 0x48); uVar5 = uVar5 + iVar2; } uVar3 = uVar3 + 1; } uVar3 = uVar3 + 1; LAB_0012d6db: safe_free(extraout_RDX); for (lVar4 = 0; (ulong)uVar3 << 2 != lVar4; lVar4 = lVar4 + 4) { lVar6 = lStack_80 + lVar4; iVar2 = uint32_from_le(lVar6); uint32_to_le(lVar6,iVar2 + uVar3 * 4); } ssz_builder_to_bytes(param_1,&local_90); return param_1; }
17,681
nglog::GetCapturedTestOutput[abi:cxx11](int)
ng-log[P]ng-log/src/googletest.h
static inline string GetCapturedTestOutput(int fd) { CHECK((fd == fileno(stdout)) || (fd == fileno(stderr))); std::unique_ptr<CapturedStream> cap = std::move(s_captured_streams.at(fd)); s_captured_streams.erase(fd); CHECK(cap) << ": did you forget CaptureTestStdout() or CaptureTestStderr()?"; // Make sure everything is flushed. cap->StopCapture(); // Read the captured file. std::unique_ptr<FILE> file{fopen(cap->filename().c_str(), "r")}; const string content = ReadEntireFile(file.get()); file.reset(); return content; }
O0
c
nglog::GetCapturedTestOutput[abi:cxx11](int): pushq %rbp movq %rsp, %rbp subq $0x180, %rsp # imm = 0x180 movq %rdi, -0x120(%rbp) movq %rdi, %rax movq %rax, -0x118(%rbp) movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl -0xc(%rbp), %eax movl %eax, -0x110(%rbp) movq 0x6acfd(%rip), %rax # 0x76f30 movq (%rax), %rdi callq 0x9770 movl -0x110(%rbp), %ecx movl %eax, %edx movb $0x0, -0x71(%rbp) movb $0x1, %al cmpl %edx, %ecx movb %al, -0x10a(%rbp) je 0xc27e movl -0xc(%rbp), %eax movl %eax, -0x124(%rbp) movq 0x6ad4d(%rip), %rax # 0x76fb0 movq (%rax), %rdi callq 0x9770 movl %eax, %ecx movl -0x124(%rbp), %eax cmpl %ecx, %eax sete %al movb %al, -0x10a(%rbp) movb -0x10a(%rbp), %al xorb $-0x1, %al testb $0x1, %al jne 0xc28c jmp 0xc2ed leaq 0x44ee0(%rip), %rsi # 0x51173 leaq -0x70(%rbp), %rdi movq %rdi, -0x138(%rbp) movl $0x190, %edx # imm = 0x190 callq 0x18dc0 movq -0x138(%rbp), %rdi movb $0x1, -0x71(%rbp) callq 0x148f0 movq %rax, -0x130(%rbp) jmp 0xc2c1 movq -0x130(%rbp), %rdi leaq 0x44eed(%rip), %rsi # 0x511bc callq 0x9700 movq %rax, -0x140(%rbp) jmp 0xc2dd movq -0x140(%rbp), %rsi leaq -0xd(%rbp), %rdi callq 0xec70 testb $0x1, -0x71(%rbp) jne 0xc2f5 jmp 0xc31c leaq -0x70(%rbp), %rdi callq 0x18e30 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) testb $0x1, -0x71(%rbp) jne 0xc416 jmp 0xc421 leaq 0x6b92d(%rip), %rdi # 0x77c50 movq %rdi, -0x150(%rbp) leaq -0xc(%rbp), %rsi movq %rsi, -0x148(%rbp) callq 0x10850 movq %rax, %rsi leaq -0x90(%rbp), %rdi callq 0x108f0 movq -0x150(%rbp), %rdi movq -0x148(%rbp), %rsi callq 0x10920 jmp 0xc35e leaq -0x90(%rbp), %rdi callq 0x10950 xorb $-0x1, %al movb $0x0, -0xf9(%rbp) testb $0x1, %al jne 0xc37c jmp 0xc3fd leaq 0x44df0(%rip), %rsi # 0x51173 leaq -0xf8(%rbp), %rdi movl $0x193, %edx # imm = 0x193 callq 0x18dc0 jmp 0xc396 movb $0x1, -0xf9(%rbp) leaq -0xf8(%rbp), %rdi callq 0x148f0 movq %rax, -0x158(%rbp) jmp 0xc3b2 movq -0x158(%rbp), %rdi leaq 0x44f44(%rip), %rsi # 0x51304 callq 0x9700 movq %rax, -0x160(%rbp) jmp 0xc3ce movq -0x160(%rbp), %rdi leaq 0x44f3b(%rip), %rsi # 0x51317 callq 0x9700 movq %rax, -0x168(%rbp) jmp 0xc3ea movq -0x168(%rbp), %rsi leaq -0x91(%rbp), %rdi callq 0xec70 testb $0x1, -0xf9(%rbp) jne 0xc408 jmp 0xc45b leaq -0xf8(%rbp), %rdi callq 0x18e30 jmp 0xc416 leaq -0x70(%rbp), %rdi callq 0x18e30 jmp 0xc421 jmp 0xc57f movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) jmp 0xc573 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) testb $0x1, -0xf9(%rbp) jne 0xc512 jmp 0xc520 leaq -0x90(%rbp), %rdi callq 0x10980 movq %rax, %rdi callq 0x109a0 jmp 0xc471 leaq -0x90(%rbp), %rdi callq 0x10980 movq %rax, %rdi callq 0x10ac0 movq %rax, -0x170(%rbp) jmp 0xc48e movq -0x170(%rbp), %rdi callq 0x92b0 movq %rax, %rdi leaq 0x450e0(%rip), %rsi # 0x51584 callq 0x98c0 movq %rax, -0x178(%rbp) jmp 0xc4b2 movq -0x178(%rbp), %rsi leaq -0x108(%rbp), %rdi movq %rdi, -0x180(%rbp) callq 0x10ae0 movq -0x180(%rbp), %rdi movb $0x0, -0x109(%rbp) callq 0x10b10 movq -0x120(%rbp), %rdi movq %rax, %rsi callq 0xc590 jmp 0xc4f0 leaq -0x108(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x10b40 movb $0x1, -0x109(%rbp) testb $0x1, -0x109(%rbp) jne 0xc54b jmp 0xc53f leaq -0xf8(%rbp), %rdi callq 0x18e30 jmp 0xc520 jmp 0xc573 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) leaq -0x108(%rbp), %rdi callq 0x10b70 jmp 0xc573 movq -0x120(%rbp), %rdi callq 0x9ee8 leaq -0x108(%rbp), %rdi callq 0x10b70 leaq -0x90(%rbp), %rdi callq 0xdbe0 movq -0x118(%rbp), %rax addq $0x180, %rsp # imm = 0x180 popq %rbp retq leaq -0x90(%rbp), %rdi callq 0xdbe0 movq -0x80(%rbp), %rdi callq 0x9d40 movq %rax, %rdi callq 0xcb90
_ZN5nglogL21GetCapturedTestOutputB5cxx11Ei: push rbp mov rbp, rsp sub rsp, 180h mov [rbp+var_120], rdi mov rax, rdi mov [rbp+var_118], rax mov [rbp+var_8], rdi mov [rbp+var_C], esi mov eax, [rbp+var_C] mov [rbp+var_110], eax mov rax, cs:stdout_ptr mov rdi, [rax] call _fileno mov ecx, [rbp+var_110] mov edx, eax mov [rbp+var_71], 0 mov al, 1 cmp ecx, edx mov [rbp+var_10A], al jz short loc_C27E mov eax, [rbp+var_C] mov [rbp+var_124], eax mov rax, cs:stderr_ptr mov rdi, [rax] call _fileno mov ecx, eax mov eax, [rbp+var_124] cmp eax, ecx setz al mov [rbp+var_10A], al loc_C27E: mov al, [rbp+var_10A] xor al, 0FFh test al, 1 jnz short loc_C28C jmp short loc_C2ED loc_C28C: lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rbp+var_70]; this mov [rbp+var_138], rdi mov edx, 190h; int call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int) mov rdi, [rbp+var_138]; this mov [rbp+var_71], 1 call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void) mov [rbp+var_130], rax jmp short $+2 loc_C2C1: mov rdi, [rbp+var_130] lea rsi, aCheckFailedFdF; "Check failed: (fd == fileno(stdout)) ||"... call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_140], rax jmp short $+2 loc_C2DD: mov rsi, [rbp+var_140] lea rdi, [rbp+var_D] call _ZNK5nglog8internal17LogMessageVoidifyanERSo; nglog::internal::LogMessageVoidify::operator&(std::ostream &) loc_C2ED: test [rbp+var_71], 1 jnz short loc_C2F5 jmp short loc_C31C loc_C2F5: lea rdi, [rbp+var_70]; this call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal() mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax test [rbp+var_71], 1 jnz loc_C416 jmp loc_C421 loc_C31C: lea rdi, _ZN5nglogL18s_captured_streamsE; nglog::s_captured_streams mov [rbp+var_150], rdi lea rsi, [rbp+var_C] mov [rbp+var_148], rsi call _ZNSt3mapIiSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS2_EESt4lessIiESaISt4pairIKiS5_EEE2atERS9_; std::map<int,std::unique_ptr<nglog::CapturedStream>>::at(int const&) mov rsi, rax lea rdi, [rbp+var_90] call _ZNSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS1_EEC2EOS4_; std::unique_ptr<nglog::CapturedStream>::unique_ptr(std::unique_ptr<nglog::CapturedStream>&&) mov rdi, [rbp+var_150] mov rsi, [rbp+var_148] call _ZNSt3mapIiSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS2_EESt4lessIiESaISt4pairIKiS5_EEE5eraseERS9_; std::map<int,std::unique_ptr<nglog::CapturedStream>>::erase(int const&) jmp short $+2 loc_C35E: lea rdi, [rbp+var_90] call _ZNKSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS1_EEcvbEv; std::unique_ptr<nglog::CapturedStream>::operator bool(void) xor al, 0FFh mov [rbp+var_F9], 0 test al, 1 jnz short loc_C37C jmp loc_C3FD loc_C37C: lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rbp+var_F8]; this mov edx, 193h; int call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int) jmp short $+2 loc_C396: mov [rbp+var_F9], 1 lea rdi, [rbp+var_F8]; this call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void) mov [rbp+var_158], rax jmp short $+2 loc_C3B2: mov rdi, [rbp+var_158] lea rsi, aCheckFailedCap; "Check failed: cap " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_160], rax jmp short $+2 loc_C3CE: mov rdi, [rbp+var_160] lea rsi, aDidYouForgetCa; ": did you forget CaptureTestStdout() or"... call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_168], rax jmp short $+2 loc_C3EA: mov rsi, [rbp+var_168] lea rdi, [rbp+var_91] call _ZNK5nglog8internal17LogMessageVoidifyanERSo; nglog::internal::LogMessageVoidify::operator&(std::ostream &) loc_C3FD: test [rbp+var_F9], 1 jnz short loc_C408 jmp short loc_C45B loc_C408: lea rdi, [rbp+var_F8]; this call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal() jmp short $+2 loc_C416: lea rdi, [rbp+var_70]; this call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal() jmp short $+2 loc_C421: jmp loc_C57F mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax jmp loc_C573 mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax test [rbp+var_F9], 1 jnz loc_C512 jmp loc_C520 loc_C45B: lea rdi, [rbp+var_90] call _ZNKSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS1_EEptEv; std::unique_ptr<nglog::CapturedStream>::operator->(void) mov rdi, rax; this call _ZN5nglog14CapturedStream11StopCaptureEv; nglog::CapturedStream::StopCapture(void) jmp short $+2 loc_C471: lea rdi, [rbp+var_90] call _ZNKSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS1_EEptEv; std::unique_ptr<nglog::CapturedStream>::operator->(void) mov rdi, rax call _ZNK5nglog14CapturedStream8filenameB5cxx11Ev; nglog::CapturedStream::filename(void) mov [rbp+var_170], rax jmp short $+2 loc_C48E: mov rdi, [rbp+var_170] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rdi, rax lea rsi, aNglogLogFileHe+14h; "r" call _fopen mov [rbp+var_178], rax jmp short $+2 loc_C4B2: mov rsi, [rbp+var_178] lea rdi, [rbp+var_108] mov [rbp+var_180], rdi call _ZNSt10unique_ptrI8_IO_FILESt14default_deleteIS0_EEC2IS2_vEEPS0_; std::unique_ptr<_IO_FILE>::unique_ptr<std::default_delete<_IO_FILE>,void>(_IO_FILE*) mov rdi, [rbp+var_180] mov [rbp+var_109], 0 call _ZNKSt10unique_ptrI8_IO_FILESt14default_deleteIS0_EE3getEv; std::unique_ptr<_IO_FILE>::get(void) mov rdi, [rbp+var_120] mov rsi, rax call _ZN5nglogL14ReadEntireFileB5cxx11EP8_IO_FILE; nglog::ReadEntireFile(_IO_FILE *) jmp short $+2 loc_C4F0: lea rdi, [rbp+var_108] xor eax, eax mov esi, eax call _ZNSt10unique_ptrI8_IO_FILESt14default_deleteIS0_EE5resetEPS0_; std::unique_ptr<_IO_FILE>::reset(_IO_FILE*) mov [rbp+var_109], 1 test [rbp+var_109], 1 jnz short loc_C54B jmp short loc_C53F loc_C512: lea rdi, [rbp+var_F8]; this call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal() jmp short $+2 loc_C520: jmp short loc_C573 mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax lea rdi, [rbp+var_108] call _ZNSt10unique_ptrI8_IO_FILESt14default_deleteIS0_EED2Ev; std::unique_ptr<_IO_FILE>::~unique_ptr() jmp short loc_C573 loc_C53F: mov rdi, [rbp+var_120]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_C54B: lea rdi, [rbp+var_108] call _ZNSt10unique_ptrI8_IO_FILESt14default_deleteIS0_EED2Ev; std::unique_ptr<_IO_FILE>::~unique_ptr() lea rdi, [rbp+var_90] call _ZNSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS1_EED2Ev; std::unique_ptr<nglog::CapturedStream>::~unique_ptr() mov rax, [rbp+var_118] add rsp, 180h pop rbp retn loc_C573: lea rdi, [rbp+var_90] call _ZNSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS1_EED2Ev; std::unique_ptr<nglog::CapturedStream>::~unique_ptr() loc_C57F: mov rdi, [rbp+var_80] call __Unwind_Resume mov rdi, rax call __clang_call_terminate
long long nglog::GetCapturedTestOutput[abi:cxx11](long long a1, int a2) { long long v2; // rax long long v3; // rsi nglog::CapturedStream *v4; // rax long long v5; // rax long long v6; // rax long long v7; // rax long long v9; // [rsp+8h] [rbp-178h] long long v10; // [rsp+10h] [rbp-170h] long long v11; // [rsp+20h] [rbp-160h] long long v12; // [rsp+28h] [rbp-158h] long long v13; // [rsp+40h] [rbp-140h] long long v14; // [rsp+50h] [rbp-130h] bool v15; // [rsp+76h] [rbp-10Ah] _BYTE v16[15]; // [rsp+78h] [rbp-108h] BYREF char v17; // [rsp+87h] [rbp-F9h] _BYTE v18[103]; // [rsp+88h] [rbp-F8h] BYREF char v19; // [rsp+EFh] [rbp-91h] BYREF _BYTE v20[12]; // [rsp+F0h] [rbp-90h] BYREF char v21; // [rsp+10Fh] [rbp-71h] _BYTE v22[99]; // [rsp+110h] [rbp-70h] BYREF char v23; // [rsp+173h] [rbp-Dh] BYREF int v24; // [rsp+174h] [rbp-Ch] BYREF long long v25; // [rsp+178h] [rbp-8h] v25 = a1; v24 = a2; v21 = 0; v15 = 1; if ( a2 != (unsigned int)fileno(stdout) ) v15 = v24 == (unsigned int)fileno(stderr); if ( !v15 ) { nglog::LogMessageFatal::LogMessageFatal( (nglog::LogMessageFatal *)v22, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h", 400); v21 = 1; v14 = nglog::LogMessage::stream((nglog::LogMessage *)v22); v13 = std::operator<<<std::char_traits<char>>( v14, "Check failed: (fd == fileno(stdout)) || (fd == fileno(stderr)) "); nglog::internal::LogMessageVoidify::operator&(&v23, v13); } if ( (v21 & 1) != 0 ) nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v22); v2 = std::map<int,std::unique_ptr<nglog::CapturedStream>>::at(); std::unique_ptr<nglog::CapturedStream>::unique_ptr(v20, v2); std::map<int,std::unique_ptr<nglog::CapturedStream>>::erase(&nglog::s_captured_streams, &v24); v17 = 0; if ( (std::unique_ptr<nglog::CapturedStream>::operator bool(v20) & 1) == 0 ) { nglog::LogMessageFatal::LogMessageFatal( (nglog::LogMessageFatal *)v18, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h", 403); v17 = 1; v12 = nglog::LogMessage::stream((nglog::LogMessage *)v18); v11 = std::operator<<<std::char_traits<char>>(v12, "Check failed: cap "); v3 = std::operator<<<std::char_traits<char>>(v11, ": did you forget CaptureTestStdout() or CaptureTestStderr()?"); nglog::internal::LogMessageVoidify::operator&(&v19, v3); } if ( (v17 & 1) != 0 ) nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v18); v4 = (nglog::CapturedStream *)std::unique_ptr<nglog::CapturedStream>::operator->(v20); nglog::CapturedStream::StopCapture(v4); v5 = std::unique_ptr<nglog::CapturedStream>::operator->(v20); v10 = nglog::CapturedStream::filename[abi:cxx11](v5); v6 = std::string::c_str(v10); v9 = fopen(v6, "r"); std::unique_ptr<_IO_FILE>::unique_ptr<std::default_delete<_IO_FILE>,void>(v16, v9); v7 = std::unique_ptr<_IO_FILE>::get(v16); nglog::ReadEntireFile[abi:cxx11](a1, v7); std::unique_ptr<_IO_FILE>::reset(v16, 0LL); std::unique_ptr<_IO_FILE>::~unique_ptr(v16); std::unique_ptr<nglog::CapturedStream>::~unique_ptr(v20); return a1; }
GetCapturedTestOutput[abi:cxx11]: PUSH RBP MOV RBP,RSP SUB RSP,0x180 MOV qword ptr [RBP + -0x120],RDI MOV RAX,RDI MOV qword ptr [RBP + -0x118],RAX MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0x110],EAX MOV RAX,qword ptr [0x00176f30] MOV RDI,qword ptr [RAX] CALL 0x00109770 MOV ECX,dword ptr [RBP + -0x110] MOV EDX,EAX MOV byte ptr [RBP + -0x71],0x0 MOV AL,0x1 CMP ECX,EDX MOV byte ptr [RBP + -0x10a],AL JZ 0x0010c27e MOV EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0x124],EAX MOV RAX,qword ptr [0x00176fb0] MOV RDI,qword ptr [RAX] CALL 0x00109770 MOV ECX,EAX MOV EAX,dword ptr [RBP + -0x124] CMP EAX,ECX SETZ AL MOV byte ptr [RBP + -0x10a],AL LAB_0010c27e: MOV AL,byte ptr [RBP + -0x10a] XOR AL,0xff TEST AL,0x1 JNZ 0x0010c28c JMP 0x0010c2ed LAB_0010c28c: LEA RSI,[0x151173] LEA RDI,[RBP + -0x70] MOV qword ptr [RBP + -0x138],RDI MOV EDX,0x190 CALL 0x00118dc0 MOV RDI,qword ptr [RBP + -0x138] MOV byte ptr [RBP + -0x71],0x1 LAB_0010c2b3: CALL 0x001148f0 MOV qword ptr [RBP + -0x130],RAX JMP 0x0010c2c1 LAB_0010c2c1: MOV RDI,qword ptr [RBP + -0x130] LEA RSI,[0x1511bc] CALL 0x00109700 LAB_0010c2d4: MOV qword ptr [RBP + -0x140],RAX JMP 0x0010c2dd LAB_0010c2dd: MOV RSI,qword ptr [RBP + -0x140] LEA RDI,[RBP + -0xd] CALL 0x0010ec70 LAB_0010c2ed: TEST byte ptr [RBP + -0x71],0x1 JNZ 0x0010c2f5 JMP 0x0010c31c LAB_0010c2f5: LEA RDI,[RBP + -0x70] CALL 0x00118e30 LAB_0010c2fe: MOV RCX,RAX MOV EAX,EDX MOV qword ptr [RBP + -0x80],RCX MOV dword ptr [RBP + -0x84],EAX TEST byte ptr [RBP + -0x71],0x1 JNZ 0x0010c416 JMP 0x0010c421 LAB_0010c31c: LEA RDI,[0x177c50] MOV qword ptr [RBP + -0x150],RDI LEA RSI,[RBP + -0xc] MOV qword ptr [RBP + -0x148],RSI CALL 0x00110850 MOV RSI,RAX LEA RDI,[RBP + -0x90] CALL 0x001108f0 MOV RDI,qword ptr [RBP + -0x150] MOV RSI,qword ptr [RBP + -0x148] LAB_0010c357: CALL 0x00110920 JMP 0x0010c35e LAB_0010c35e: LEA RDI,[RBP + -0x90] CALL 0x00110950 XOR AL,0xff MOV byte ptr [RBP + -0xf9],0x0 TEST AL,0x1 JNZ 0x0010c37c JMP 0x0010c3fd LAB_0010c37c: LEA RSI,[0x151173] LEA RDI,[RBP + -0xf8] MOV EDX,0x193 CALL 0x00118dc0 JMP 0x0010c396 LAB_0010c396: MOV byte ptr [RBP + -0xf9],0x1 LAB_0010c39d: LEA RDI,[RBP + -0xf8] CALL 0x001148f0 MOV qword ptr [RBP + -0x158],RAX JMP 0x0010c3b2 LAB_0010c3b2: MOV RDI,qword ptr [RBP + -0x158] LEA RSI,[0x151304] CALL 0x00109700 MOV qword ptr [RBP + -0x160],RAX JMP 0x0010c3ce LAB_0010c3ce: MOV RDI,qword ptr [RBP + -0x160] LEA RSI,[0x151317] CALL 0x00109700 MOV qword ptr [RBP + -0x168],RAX JMP 0x0010c3ea LAB_0010c3ea: MOV RSI,qword ptr [RBP + -0x168] LEA RDI,[RBP + -0x91] CALL 0x0010ec70 LAB_0010c3fd: TEST byte ptr [RBP + -0xf9],0x1 JNZ 0x0010c408 JMP 0x0010c45b LAB_0010c408: LEA RDI,[RBP + -0xf8] CALL 0x00118e30 JMP 0x0010c416 LAB_0010c416: LEA RDI,[RBP + -0x70] CALL 0x00118e30 JMP 0x0010c421 LAB_0010c421: JMP 0x0010c57f LAB_0010c45b: LEA RDI,[RBP + -0x90] CALL 0x00110980 MOV RDI,RAX LAB_0010c46a: CALL 0x001109a0 JMP 0x0010c471 LAB_0010c471: LEA RDI,[RBP + -0x90] CALL 0x00110980 MOV RDI,RAX CALL 0x00110ac0 MOV qword ptr [RBP + -0x170],RAX JMP 0x0010c48e LAB_0010c48e: MOV RDI,qword ptr [RBP + -0x170] CALL 0x001092b0 MOV RDI,RAX LEA RSI,[0x151584] CALL 0x001098c0 MOV qword ptr [RBP + -0x178],RAX JMP 0x0010c4b2 LAB_0010c4b2: MOV RSI,qword ptr [RBP + -0x178] LEA RDI,[RBP + -0x108] MOV qword ptr [RBP + -0x180],RDI CALL 0x00110ae0 MOV RDI,qword ptr [RBP + -0x180] MOV byte ptr [RBP + -0x109],0x0 CALL 0x00110b10 MOV RDI,qword ptr [RBP + -0x120] MOV RSI,RAX LAB_0010c4e9: CALL 0x0010c590 JMP 0x0010c4f0 LAB_0010c4f0: LEA RDI,[RBP + -0x108] XOR EAX,EAX MOV ESI,EAX CALL 0x00110b40 MOV byte ptr [RBP + -0x109],0x1 TEST byte ptr [RBP + -0x109],0x1 JNZ 0x0010c54b JMP 0x0010c53f LAB_0010c53f: MOV RDI,qword ptr [RBP + -0x120] CALL 0x00109ee8 LAB_0010c54b: LEA RDI,[RBP + -0x108] CALL 0x00110b70 LEA RDI,[RBP + -0x90] CALL 0x0010dbe0 MOV RAX,qword ptr [RBP + -0x118] ADD RSP,0x180 POP RBP RET LAB_0010c57f: MOV RDI,qword ptr [RBP + -0x80] CALL 0x00109d40
/* WARNING: Removing unreachable block (ram,0x0010c510) */ /* nglog::GetCapturedTestOutput[abi:cxx11](int) */ nglog * __thiscall nglog::GetCapturedTestOutput_abi_cxx11_(nglog *this,int param_1) { int iVar1; int iVar2; unique_ptr *puVar3; ostream *poVar4; CapturedStream *pCVar5; char *__filename; FILE *pFVar6; _IO_FILE *p_Var7; bool bVar8; int1 auVar9 [12]; unique_ptr<_IO_FILE,std::default_delete<_IO_FILE>> local_110 [15]; byte local_101; LogMessageFatal local_100 [103]; LogMessageVoidify local_99; unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>> local_98 [12]; int4 local_8c; int8 local_88; byte local_79; LogMessageFatal local_78 [99]; LogMessageVoidify local_15; int local_14; nglog *local_10; local_14 = param_1; local_10 = this; iVar2 = fileno(*(FILE **)PTR_stdout_00176f30); iVar1 = local_14; local_79 = 0; bVar8 = true; if (param_1 != iVar2) { iVar2 = fileno(*(FILE **)PTR_stderr_00176fb0); bVar8 = iVar1 == iVar2; } if (!bVar8) { LogMessageFatal::LogMessageFatal (local_78,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h", 400); local_79 = 1; /* try { // try from 0010c2b3 to 0010c2d3 has its CatchHandler @ 0010c2fe */ poVar4 = (ostream *)LogMessage::stream((LogMessage *)local_78); poVar4 = std::operator<<(poVar4, "Check failed: (fd == fileno(stdout)) || (fd == fileno(stderr)) "); internal::LogMessageVoidify::operator&(&local_15,poVar4); } if ((local_79 & 1) == 0) { puVar3 = (unique_ptr *) std:: map<int,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>> ::at((map<int,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>> *)s_captured_streams,&local_14); std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>::unique_ptr (local_98,puVar3); /* try { // try from 0010c357 to 0010c393 has its CatchHandler @ 0010c426 */ std:: map<int,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>> ::erase((map<int,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>> *)s_captured_streams,&local_14); bVar8 = std::unique_ptr::operator_cast_to_bool((unique_ptr *)local_98); local_101 = 0; if (((bVar8 ^ 0xffU) & 1) != 0) { LogMessageFatal::LogMessageFatal (local_100, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",0x193); local_101 = 1; /* try { // try from 0010c39d to 0010c3e0 has its CatchHandler @ 0010c43a */ poVar4 = (ostream *)LogMessage::stream((LogMessage *)local_100); poVar4 = std::operator<<(poVar4,"Check failed: cap "); poVar4 = std::operator<<(poVar4,": did you forget CaptureTestStdout() or CaptureTestStderr()?" ); internal::LogMessageVoidify::operator&(&local_99,poVar4); } if ((local_101 & 1) == 0) { pCVar5 = (CapturedStream *) std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>:: operator->(local_98); /* try { // try from 0010c46a to 0010c4a8 has its CatchHandler @ 0010c426 */ CapturedStream::StopCapture(pCVar5); pCVar5 = (CapturedStream *) std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>:: operator->(local_98); CapturedStream::filename_abi_cxx11_(pCVar5); __filename = (char *)std::__cxx11::string::c_str(); pFVar6 = fopen(__filename,"r"); std::unique_ptr<_IO_FILE,std::default_delete<_IO_FILE>>:: unique_ptr<std::default_delete<_IO_FILE>,void>(local_110,pFVar6); p_Var7 = (_IO_FILE *)std::unique_ptr<_IO_FILE,std::default_delete<_IO_FILE>>::get(local_110); /* try { // try from 0010c4e9 to 0010c4ed has its CatchHandler @ 0010c522 */ ReadEntireFile_abi_cxx11_(this,p_Var7); std::unique_ptr<_IO_FILE,std::default_delete<_IO_FILE>>::reset(local_110,(_IO_FILE *)0x0); std::unique_ptr<_IO_FILE,std::default_delete<_IO_FILE>>::~unique_ptr(local_110); std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>::~unique_ptr (local_98); return this; } /* try { // try from 0010c408 to 0010c413 has its CatchHandler @ 0010c426 */ LogMessageFatal::~LogMessageFatal(local_100); auVar9._8_4_ = local_8c; auVar9._0_8_ = local_88; } else { auVar9 = LogMessageFatal::~LogMessageFatal(local_78); /* catch(type#1 @ 00000000) { ... } // from try @ 0010c2b3 with catch @ 0010c2fe */ if ((local_79 & 1) == 0) goto LAB_0010c421; } /* try { // try from 0010c416 to 0010c41e has its CatchHandler @ 0010c588 */ local_8c = auVar9._8_4_; local_88 = auVar9._0_8_; LogMessageFatal::~LogMessageFatal(local_78); auVar9._8_4_ = local_8c; auVar9._0_8_ = local_88; LAB_0010c421: local_8c = auVar9._8_4_; local_88 = auVar9._0_8_; /* WARNING: Subroutine does not return */ _Unwind_Resume(local_88); }
17,682
unreg_request
eloqsql/mysys/mf_keycache.c
static void unreg_request(SIMPLE_KEY_CACHE_CB *keycache, BLOCK_LINK *block, int at_end) { DBUG_ASSERT(block->status & (BLOCK_READ | BLOCK_IN_USE)); DBUG_ASSERT(block->hash_link); /*backptr to block NULL from free_block()*/ DBUG_ASSERT(block->requests); DBUG_ASSERT(block->prev_changed && *block->prev_changed == block); DBUG_ASSERT(!block->next_used); DBUG_ASSERT(!block->prev_used); /* Unregister the request, but do not link erroneous blocks into the LRU ring. */ if (!--block->requests && !(block->status & BLOCK_ERROR)) { my_bool hot; if (block->hits_left) block->hits_left--; hot= !block->hits_left && at_end && keycache->warm_blocks > keycache->min_warm_blocks; if (hot) { if (block->temperature == BLOCK_WARM) keycache->warm_blocks--; block->temperature= BLOCK_HOT; KEYCACHE_DBUG_PRINT("unreg_request", ("#warm_blocks: %lu", keycache->warm_blocks)); } link_block(keycache, block, hot, (my_bool)at_end); block->last_hit_time= keycache->keycache_time; keycache->keycache_time++; /* At this place, the block might be in the LRU ring or not. If an evicter was waiting for a block, it was selected for eviction and not linked in the LRU ring. */ /* Check if we should link a hot block to the warm block sub-chain. It is possible that we select the same block as above. But it can also be another block. In any case a block from the LRU ring is selected. In other words it works even if the above block was selected for eviction and not linked in the LRU ring. Since this happens only if the LRU ring is empty, the block selected below would be NULL and the rest of the function skipped. */ block= keycache->used_ins; if (block && keycache->keycache_time - block->last_hit_time > keycache->age_threshold) { unlink_block(keycache, block); link_block(keycache, block, 0, 0); if (block->temperature != BLOCK_WARM) { keycache->warm_blocks++; block->temperature= BLOCK_WARM; } KEYCACHE_DBUG_PRINT("unreg_request", ("#warm_blocks: %lu", keycache->warm_blocks)); } } }
O0
c
unreg_request: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) jmp 0xe4225 jmp 0xe4227 jmp 0xe4229 jmp 0xe422b jmp 0xe422d jmp 0xe422f jmp 0xe4231 jmp 0xe4233 jmp 0xe4235 jmp 0xe4237 jmp 0xe4239 movq -0x10(%rbp), %rcx movl 0x38(%rcx), %eax addl $-0x1, %eax movl %eax, 0x38(%rcx) cmpl $0x0, %eax jne 0xe4397 movq -0x10(%rbp), %rax movl 0x50(%rax), %eax andl $0x1, %eax cmpl $0x0, %eax jne 0xe4397 movq -0x10(%rbp), %rax cmpl $0x0, 0x58(%rax) je 0xe4279 movq -0x10(%rbp), %rax movl 0x58(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x58(%rax) movq -0x10(%rbp), %rcx xorl %eax, %eax cmpl $0x0, 0x58(%rcx) movb %al, -0x16(%rbp) jne 0xe42a9 xorl %eax, %eax cmpl $0x0, -0x14(%rbp) movb %al, -0x16(%rbp) je 0xe42a9 movq -0x8(%rbp), %rax movq 0x68(%rax), %rax movq -0x8(%rbp), %rcx cmpq 0x20(%rcx), %rax seta %al movb %al, -0x16(%rbp) movb -0x16(%rbp), %al andb $0x1, %al movzbl %al, %eax movb %al, -0x15(%rbp) cmpb $0x0, -0x15(%rbp) je 0xe42e3 movq -0x10(%rbp), %rax cmpl $0x1, 0x54(%rax) jne 0xe42d4 movq -0x8(%rbp), %rax movq 0x68(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0x68(%rax) movq -0x10(%rbp), %rax movl $0x2, 0x54(%rax) jmp 0xe42e1 jmp 0xe42e3 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movb -0x15(%rbp), %cl movl -0x14(%rbp), %eax movsbl %cl, %edx movsbl %al, %ecx callq 0xe5800 movq -0x8(%rbp), %rax movq 0x30(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x60(%rax) movq -0x8(%rbp), %rax movq 0x30(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x30(%rax) movq -0x8(%rbp), %rax movq 0xb8(%rax), %rax movq %rax, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) je 0xe4395 movq -0x8(%rbp), %rax movq 0x30(%rax), %rax movq -0x10(%rbp), %rcx subq 0x60(%rcx), %rax movq -0x8(%rbp), %rcx cmpq 0x28(%rcx), %rax jbe 0xe4395 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0xe56d0 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi xorl %ecx, %ecx movl %ecx, %edx callq 0xe5800 movq -0x10(%rbp), %rax cmpl $0x1, 0x54(%rax) je 0xe438f movq -0x8(%rbp), %rax movq 0x68(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x68(%rax) movq -0x10(%rbp), %rax movl $0x1, 0x54(%rax) jmp 0xe4391 jmp 0xe4393 jmp 0xe4395 jmp 0xe4397 addq $0x20, %rsp popq %rbp retq nopl (%rax)
unreg_request_0: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx jmp short $+2 loc_E4225: jmp short $+2 loc_E4227: jmp short $+2 loc_E4229: jmp short $+2 loc_E422B: jmp short $+2 loc_E422D: jmp short $+2 loc_E422F: jmp short $+2 loc_E4231: jmp short $+2 loc_E4233: jmp short $+2 loc_E4235: jmp short $+2 loc_E4237: jmp short $+2 loc_E4239: mov rcx, [rbp+var_10] mov eax, [rcx+38h] add eax, 0FFFFFFFFh mov [rcx+38h], eax cmp eax, 0 jnz loc_E4397 mov rax, [rbp+var_10] mov eax, [rax+50h] and eax, 1 cmp eax, 0 jnz loc_E4397 mov rax, [rbp+var_10] cmp dword ptr [rax+58h], 0 jz short loc_E4279 mov rax, [rbp+var_10] mov ecx, [rax+58h] add ecx, 0FFFFFFFFh mov [rax+58h], ecx loc_E4279: mov rcx, [rbp+var_10] xor eax, eax cmp dword ptr [rcx+58h], 0 mov [rbp+var_16], al jnz short loc_E42A9 xor eax, eax cmp [rbp+var_14], 0 mov [rbp+var_16], al jz short loc_E42A9 mov rax, [rbp+var_8] mov rax, [rax+68h] mov rcx, [rbp+var_8] cmp rax, [rcx+20h] setnbe al mov [rbp+var_16], al loc_E42A9: mov al, [rbp+var_16] and al, 1 movzx eax, al mov [rbp+var_15], al cmp [rbp+var_15], 0 jz short loc_E42E3 mov rax, [rbp+var_10] cmp dword ptr [rax+54h], 1 jnz short loc_E42D4 mov rax, [rbp+var_8] mov rcx, [rax+68h] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+68h], rcx loc_E42D4: mov rax, [rbp+var_10] mov dword ptr [rax+54h], 2 jmp short $+2 loc_E42E1: jmp short $+2 loc_E42E3: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov cl, [rbp+var_15] mov eax, [rbp+var_14] movsx edx, cl movsx ecx, al call link_block_0 mov rax, [rbp+var_8] mov rcx, [rax+30h] mov rax, [rbp+var_10] mov [rax+60h], rcx mov rax, [rbp+var_8] mov rcx, [rax+30h] add rcx, 1 mov [rax+30h], rcx mov rax, [rbp+var_8] mov rax, [rax+0B8h] mov [rbp+var_10], rax cmp [rbp+var_10], 0 jz short loc_E4395 mov rax, [rbp+var_8] mov rax, [rax+30h] mov rcx, [rbp+var_10] sub rax, [rcx+60h] mov rcx, [rbp+var_8] cmp rax, [rcx+28h] jbe short loc_E4395 mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call unlink_block_0 mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] xor ecx, ecx mov edx, ecx call link_block_0 mov rax, [rbp+var_10] cmp dword ptr [rax+54h], 1 jz short loc_E438F mov rax, [rbp+var_8] mov rcx, [rax+68h] add rcx, 1 mov [rax+68h], rcx mov rax, [rbp+var_10] mov dword ptr [rax+54h], 1 loc_E438F: jmp short $+2 loc_E4391: jmp short $+2 loc_E4393: jmp short $+2 loc_E4395: jmp short $+2 loc_E4397: add rsp, 20h pop rbp retn
unsigned long long unreg_request_0(_QWORD *a1, long long a2, int a3) { unsigned long long result; // rax bool v4; // [rsp+Ah] [rbp-16h] unsigned long long v5; // [rsp+10h] [rbp-10h] result = (unsigned int)(*(_DWORD *)(a2 + 56) - 1); *(_DWORD *)(a2 + 56) = result; if ( !(_DWORD)result ) { result = *(_DWORD *)(a2 + 80) & 1; if ( !(_DWORD)result ) { if ( *(_DWORD *)(a2 + 88) ) --*(_DWORD *)(a2 + 88); v4 = 0; if ( !*(_DWORD *)(a2 + 88) ) { v4 = 0; if ( a3 ) v4 = a1[13] > a1[4]; } if ( v4 ) { if ( *(_DWORD *)(a2 + 84) == 1 ) --a1[13]; *(_DWORD *)(a2 + 84) = 2; } link_block_0(a1, a2, v4, (unsigned int)(char)a3); *(_QWORD *)(a2 + 96) = a1[6]++; result = a1[23]; v5 = result; if ( result ) { result = a1[6] - *(_QWORD *)(result + 96); if ( result > a1[5] ) { unlink_block_0(a1, v5); link_block_0(a1, v5, 0LL, 0LL); result = v5; if ( *(_DWORD *)(v5 + 84) != 1 ) { ++a1[13]; result = v5; *(_DWORD *)(v5 + 84) = 1; } } } } } return result; }
unreg_request: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX JMP 0x001e4225 LAB_001e4225: JMP 0x001e4227 LAB_001e4227: JMP 0x001e4229 LAB_001e4229: JMP 0x001e422b LAB_001e422b: JMP 0x001e422d LAB_001e422d: JMP 0x001e422f LAB_001e422f: JMP 0x001e4231 LAB_001e4231: JMP 0x001e4233 LAB_001e4233: JMP 0x001e4235 LAB_001e4235: JMP 0x001e4237 LAB_001e4237: JMP 0x001e4239 LAB_001e4239: MOV RCX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RCX + 0x38] ADD EAX,-0x1 MOV dword ptr [RCX + 0x38],EAX CMP EAX,0x0 JNZ 0x001e4397 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x50] AND EAX,0x1 CMP EAX,0x0 JNZ 0x001e4397 MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x58],0x0 JZ 0x001e4279 MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x58] ADD ECX,-0x1 MOV dword ptr [RAX + 0x58],ECX LAB_001e4279: MOV RCX,qword ptr [RBP + -0x10] XOR EAX,EAX CMP dword ptr [RCX + 0x58],0x0 MOV byte ptr [RBP + -0x16],AL JNZ 0x001e42a9 XOR EAX,EAX CMP dword ptr [RBP + -0x14],0x0 MOV byte ptr [RBP + -0x16],AL JZ 0x001e42a9 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x68] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x20] SETA AL MOV byte ptr [RBP + -0x16],AL LAB_001e42a9: MOV AL,byte ptr [RBP + -0x16] AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x15],AL CMP byte ptr [RBP + -0x15],0x0 JZ 0x001e42e3 MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x54],0x1 JNZ 0x001e42d4 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x68] ADD RCX,-0x1 MOV qword ptr [RAX + 0x68],RCX LAB_001e42d4: MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x54],0x2 JMP 0x001e42e1 LAB_001e42e1: JMP 0x001e42e3 LAB_001e42e3: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV CL,byte ptr [RBP + -0x15] MOV EAX,dword ptr [RBP + -0x14] MOVSX EDX,CL MOVSX ECX,AL CALL 0x001e5800 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x60],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x30] ADD RCX,0x1 MOV qword ptr [RAX + 0x30],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0xb8] MOV qword ptr [RBP + -0x10],RAX CMP qword ptr [RBP + -0x10],0x0 JZ 0x001e4395 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x30] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,qword ptr [RCX + 0x60] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x28] JBE 0x001e4395 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x001e56d0 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] XOR ECX,ECX MOV EDX,ECX CALL 0x001e5800 MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x54],0x1 JZ 0x001e438f MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x68] ADD RCX,0x1 MOV qword ptr [RAX + 0x68],RCX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x54],0x1 LAB_001e438f: JMP 0x001e4391 LAB_001e4391: JMP 0x001e4393 LAB_001e4393: JMP 0x001e4395 LAB_001e4395: JMP 0x001e4397 LAB_001e4397: ADD RSP,0x20 POP RBP RET
void unreg_request(long param_1,long param_2,int param_3) { long lVar1; int iVar2; bool local_1e; iVar2 = *(int *)(param_2 + 0x38) + -1; *(int *)(param_2 + 0x38) = iVar2; if ((iVar2 == 0) && ((*(uint *)(param_2 + 0x50) & 1) == 0)) { if (*(int *)(param_2 + 0x58) != 0) { *(int *)(param_2 + 0x58) = *(int *)(param_2 + 0x58) + -1; } local_1e = false; if ((*(int *)(param_2 + 0x58) == 0) && (local_1e = false, param_3 != 0)) { local_1e = *(ulong *)(param_1 + 0x20) < *(ulong *)(param_1 + 0x68); } if (local_1e != false) { if (*(int *)(param_2 + 0x54) == 1) { *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + -1; } *(int4 *)(param_2 + 0x54) = 2; } link_block(param_1,param_2,local_1e,(int)(char)param_3); *(int8 *)(param_2 + 0x60) = *(int8 *)(param_1 + 0x30); *(long *)(param_1 + 0x30) = *(long *)(param_1 + 0x30) + 1; lVar1 = *(long *)(param_1 + 0xb8); if ((lVar1 != 0) && (*(ulong *)(param_1 + 0x28) < (ulong)(*(long *)(param_1 + 0x30) - *(long *)(lVar1 + 0x60)))) { unlink_block(param_1,lVar1); link_block(param_1,lVar1,0); if (*(int *)(lVar1 + 0x54) != 1) { *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1; *(int4 *)(lVar1 + 0x54) = 1; } } } return; }
17,683
parse_prefixed_json_tool_call_array(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&, unsigned long)
monkey531[P]llama/common/chat.cpp
static common_chat_msg parse_prefixed_json_tool_call_array(const std::string& input, const std::string & prefix, size_t rstrip_prefix = 0) { auto content_end = input.find(prefix); size_t tc_start = std::string::npos; common_chat_msg result; result.role = "assistant"; const auto process_tool_calls = [&](const json & tool_calls) { for (const auto & tool_call : tool_calls) { const auto & arguments = tool_call["arguments"]; result.tool_calls.push_back({ tool_call["name"], arguments.is_string() ? arguments.get<std::string>() : arguments.dump(), tool_call.contains("id") ? tool_call["id"] : "", }); } }; if (content_end == std::string::npos) { result.content = input; } else { tc_start = content_end + prefix.size() - rstrip_prefix; result.content = input.substr(0, content_end); auto tool_calls = json::parse(input.substr(tc_start)); process_tool_calls(tool_calls); } return result; }
O1
cpp
parse_prefixed_json_tool_call_array(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&, unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf8, %rsp movq %rcx, %rbx movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rbp movq (%rdx), %rsi movq 0x8(%rdx), %rcx xorl %r13d, %r13d movq %r14, %rdi xorl %edx, %edx callq 0x1bfd0 movq %rax, %r15 leaq 0x10(%rbp), %rax movq %rax, (%rbp) movq %r13, 0x8(%rbp) movb %r13b, 0x10(%rbp) leaq 0x30(%rbp), %rax movq %rax, 0x20(%rbp) movq %r13, 0x28(%rbp) movb %r13b, 0x30(%rbp) xorps %xmm0, %xmm0 movups %xmm0, 0x40(%rbp) movq %r13, 0x50(%rbp) leaq 0x68(%rbp), %rax movq %rax, 0x58(%rbp) movq %r13, 0x60(%rbp) movb %r13b, 0x68(%rbp) leaq 0xdad4(%rip), %rcx # 0xff4e7 movl $0x9, %r8d movq %rbp, %rdi xorl %esi, %esi xorl %edx, %edx movq %rbp, 0x8(%rsp) callq 0x1bdd0 leaq 0x20(%rbp), %r13 cmpq $-0x1, %r15 je 0xf1b43 movq 0x8(%r12), %r12 leaq 0x40(%rsp), %rdi movq %r14, %rsi xorl %edx, %edx movq %r15, %rcx callq 0x1b940 subq %rbx, %r15 addq %r12, %r15 leaq 0x40(%rsp), %rbx movq %r13, %rdi movq %rbx, %rsi callq 0x1bac0 movq (%rbx), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0xf1a7f movq 0x50(%rsp), %rsi incq %rsi callq 0x1b8f0 leaq 0x40(%rsp), %rdi movq %r14, %rsi movq %r15, %rdx movq $-0x1, %rcx callq 0x1b940 xorps %xmm0, %xmm0 leaq 0xc0(%rsp), %rdx movaps %xmm0, 0x10(%rdx) movaps %xmm0, (%rdx) leaq 0x10(%rsp), %rbx leaq 0x40(%rsp), %rsi movq %rbx, %rdi movl $0x1, %ecx xorl %r8d, %r8d callq 0xb32e6 movq 0xd0(%rsp), %rax testq %rax, %rax je 0xf1ae1 leaq 0xc0(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x40(%rsp), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0xf1afd movq 0x50(%rsp), %rsi incq %rsi callq 0x1b8f0 movabsq $-0x8000000000000000, %r14 # imm = 0x8000000000000000 leaq 0xa0(%rsp), %rdi movq %rbx, %rsi callq 0x9b00a movq %rbx, 0x20(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x28(%rsp) movq %r14, 0x38(%rsp) movzbl 0x10(%rsp), %eax cmpl $0x2, %eax je 0xf1b53 cmpl $0x1, %eax jne 0xf1b5e movq $0x0, 0x28(%rsp) jmp 0xf1b63 movq %r13, %rdi movq %r14, %rsi callq 0x1b4c0 jmp 0xf1d47 movq $0x0, 0x30(%rsp) jmp 0xf1b63 movq %r14, 0x38(%rsp) cmpl $0x2, %eax je 0xf1b7d cmpl $0x1, %eax jne 0xf1b8d movq 0x18(%rsp), %rax movq 0x8(%rax), %rax movq %rax, 0x28(%rsp) jmp 0xf1b96 movq 0x18(%rsp), %rax movq 0x8(%rax), %rax movq %rax, 0x30(%rsp) jmp 0xf1b96 movq $0x1, 0x38(%rsp) leaq 0xa0(%rsp), %rdi leaq 0x20(%rsp), %rsi callq 0x9b0ce testb %al, %al jne 0xf1d3d movq 0x8(%rsp), %rax leaq 0x40(%rax), %r14 leaq 0xa0(%rsp), %r13 leaq 0x40(%rsp), %r12 leaq 0xe8(%rsp), %r15 movq %r13, %rdi callq 0x9ad0e movq %rax, %rbx movq %rax, %rdi leaq 0xecb7(%rip), %rsi # 0x10089a callq 0xb3b5c movq %rax, %rbp movq %rbx, %rdi leaq 0xf241(%rip), %rsi # 0x100e36 callq 0xb3b5c movq %r12, %rdi movq %rax, %rsi callq 0x957e2 cmpb $0x3, (%rbp) jne 0xf1c1a leaq 0x60(%rsp), %rdi movq %rbp, %rsi callq 0x957e2 jmp 0xf1c37 leaq 0x60(%rsp), %rdi movq %rbp, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movl $0x20, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x8d836 movq %rbx, %rdi leaq 0xdd05(%rip), %rsi # 0xff946 callq 0xb3afa testb %al, %al je 0xf1c66 movq %rbx, %rdi leaq 0xdcf2(%rip), %rsi # 0xff946 callq 0xb3b5c movq %r15, %rdi movq %rax, %rsi callq 0x6af50 jmp 0xf1c75 movq %r15, %rdi leaq 0xa02c(%rip), %rsi # 0xfbc9c callq 0xc6a6c leaq 0x80(%rsp), %rdi movq %r15, %rsi callq 0x957e2 movq %r14, %rdi movq %r12, %rsi callq 0xf4900 movq 0x80(%rsp), %rdi leaq 0x90(%rsp), %rax cmpq %rax, %rdi je 0xf1cb5 movq 0x90(%rsp), %rsi incq %rsi callq 0x1b8f0 movq 0x60(%rsp), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi je 0xf1cd1 movq 0x70(%rsp), %rsi incq %rsi callq 0x1b8f0 movq 0x40(%rsp), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0xf1ced movq 0x50(%rsp), %rsi incq %rsi callq 0x1b8f0 movq %r15, %rdi callq 0x6b4b0 movq 0xa0(%rsp), %rax movzbl (%rax), %eax cmpl $0x2, %eax je 0xf1d15 cmpl $0x1, %eax jne 0xf1d20 addq $0x30, 0xa8(%rsp) jmp 0xf1d28 addq $0x10, 0xb0(%rsp) jmp 0xf1d28 incq 0xb8(%rsp) movq %r13, %rdi leaq 0x20(%rsp), %rsi callq 0x9b0ce testb %al, %al je 0xf1bce leaq 0x10(%rsp), %rdi callq 0x6b4b0 movq 0x8(%rsp), %rax addq $0xf8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xf1dba jmp 0xf1dae jmp 0xf1e35 movq %rax, %r14 movq 0xd0(%rsp), %rax testq %rax, %rax je 0xf1d89 leaq 0xc0(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x40(%rsp), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0xf1e42 movq 0x50(%rsp), %rsi incq %rsi callq 0x1b8f0 jmp 0xf1e42 movq %rax, %rdi callq 0x2d543 jmp 0xf1dba jmp 0xf1dba movq %rax, %r14 jmp 0xf1e42 movq %rax, %r14 movb $0x1, %bl jmp 0xf1e13 movq %rax, %r14 movb $0x1, %bl jmp 0xf1ddf movq %rax, %r14 leaq 0x40(%rsp), %rdi callq 0xf4820 xorl %ebx, %ebx leaq 0xe8(%rsp), %rdi callq 0x6b4b0 jmp 0xf1df3 movq %rax, %r14 movb $0x1, %bl testb %bl, %bl je 0xf1e13 movq 0x60(%rsp), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi je 0xf1e13 movq 0x70(%rsp), %rsi incq %rsi callq 0x1b8f0 testb %bl, %bl je 0xf1e38 movq 0x40(%rsp), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0xf1e38 movq 0x50(%rsp), %rsi incq %rsi callq 0x1b8f0 jmp 0xf1e38 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x6b4b0 movq 0x8(%rsp), %rdi callq 0x8c860 movq %r14, %rdi callq 0x1c020
_ZL35parse_prefixed_json_tool_call_arrayRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_m: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0F8h mov rbx, rcx mov r12, rdx mov r14, rsi mov rbp, rdi mov rsi, [rdx] mov rcx, [rdx+8] xor r13d, r13d mov rdi, r14 xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong) mov r15, rax lea rax, [rbp+10h] mov [rbp+0], rax mov [rbp+8], r13 mov [rbp+10h], r13b lea rax, [rbp+30h] mov [rbp+20h], rax mov [rbp+28h], r13 mov [rbp+30h], r13b xorps xmm0, xmm0 movups xmmword ptr [rbp+40h], xmm0 mov [rbp+50h], r13 lea rax, [rbp+68h] mov [rbp+58h], rax mov [rbp+60h], r13 mov [rbp+68h], r13b lea rcx, aYouAreAHelpful+12h; "assistant" mov r8d, 9 mov rdi, rbp xor esi, esi xor edx, edx mov [rsp+128h+var_120], rbp call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) lea r13, [rbp+20h] cmp r15, 0FFFFFFFFFFFFFFFFh jz loc_F1B43 mov r12, [r12+8] lea rdi, [rsp+128h+var_E8] mov rsi, r14 xor edx, edx mov rcx, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) sub r15, rbx add r15, r12 lea rbx, [rsp+128h+var_E8] mov rdi, r13 mov rsi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [rbx]; void * lea rax, [rsp+128h+var_D8] cmp rdi, rax jz short loc_F1A7F mov rsi, [rsp+128h+var_D8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_F1A7F: lea rdi, [rsp+128h+var_E8] mov rsi, r14 mov rdx, r15 mov rcx, 0FFFFFFFFFFFFFFFFh call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) xorps xmm0, xmm0 lea rdx, [rsp+128h+var_68] movaps xmmword ptr [rdx+10h], xmm0 movaps xmmword ptr [rdx], xmm0 lea rbx, [rsp+128h+var_118] lea rsi, [rsp+128h+var_E8] mov rdi, rbx mov ecx, 1 xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parse<std::string>(std::string &&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool) mov rax, [rsp+128h+var_58] test rax, rax jz short loc_F1AE1 lea rdi, [rsp+128h+var_68] mov rsi, rdi mov edx, 3 call rax loc_F1AE1: mov rdi, [rsp+128h+var_E8]; void * lea rax, [rsp+128h+var_D8] cmp rdi, rax jz short loc_F1AFD mov rsi, [rsp+128h+var_D8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_F1AFD: mov r14, 8000000000000000h lea rdi, [rsp+128h+var_88] mov rsi, rbx call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6cbeginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cbegin(void) mov [rsp+128h+var_108], rbx xorps xmm0, xmm0 movups [rsp+128h+var_100], xmm0 mov [rsp+128h+var_F0], r14 movzx eax, [rsp+128h+var_118] cmp eax, 2 jz short loc_F1B53 cmp eax, 1 jnz short loc_F1B5E mov qword ptr [rsp+128h+var_100], 0 jmp short loc_F1B63 loc_F1B43: mov rdi, r13 mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) jmp loc_F1D47 loc_F1B53: mov qword ptr [rsp+128h+var_100+8], 0 jmp short loc_F1B63 loc_F1B5E: mov [rsp+128h+var_F0], r14 loc_F1B63: cmp eax, 2 jz short loc_F1B7D cmp eax, 1 jnz short loc_F1B8D mov rax, [rsp+128h+var_110] mov rax, [rax+8] mov qword ptr [rsp+128h+var_100], rax jmp short loc_F1B96 loc_F1B7D: mov rax, [rsp+128h+var_110] mov rax, [rax+8] mov qword ptr [rsp+128h+var_100+8], rax jmp short loc_F1B96 loc_F1B8D: mov [rsp+128h+var_F0], 1 loc_F1B96: lea rdi, [rsp+128h+var_88] lea rsi, [rsp+128h+var_108] call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jnz loc_F1D3D mov rax, [rsp+128h+var_120] lea r14, [rax+40h] lea r13, [rsp+128h+var_88] lea r12, [rsp+128h+var_E8] lea r15, [rsp+128h+var_40] loc_F1BCE: mov rdi, r13 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov rbx, rax mov rdi, rax lea rsi, aKeywordArgumen+9; "arguments" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *) mov rbp, rax mov rdi, rbx lea rsi, aNamespacedSetO+2Fh; "name" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *) mov rdi, r12 mov rsi, rax call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE cmp byte ptr [rbp+0], 3 jnz short loc_F1C1A lea rdi, [rsp+128h+var_C8] mov rsi, rbp call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE jmp short loc_F1C37 loc_F1C1A: lea rdi, [rsp+128h+var_C8] mov rsi, rbp mov edx, 0FFFFFFFFh mov ecx, 20h ; ' ' xor r8d, r8d xor r9d, r9d call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t) loc_F1C37: mov rdi, rbx lea rsi, aToolCallId+0Ah; "id" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ test al, al jz short loc_F1C66 mov rdi, rbx lea rsi, aToolCallId+0Ah; "id" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *) mov rdi, r15 mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) jmp short loc_F1C75 loc_F1C66: mov rdi, r15 lea rsi, aErrorWhileHand_0+34h; "" call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ loc_F1C75: lea rdi, [rsp+128h+var_A8] mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE mov rdi, r14 mov rsi, r12 call _ZNSt6vectorI16common_tool_callSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::vector<common_tool_call>::emplace_back<common_tool_call>(common_tool_call &&) mov rdi, [rsp+128h+var_A8]; void * lea rax, [rsp+128h+var_98] cmp rdi, rax jz short loc_F1CB5 mov rsi, [rsp+128h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_F1CB5: mov rdi, [rsp+128h+var_C8]; void * lea rax, [rsp+128h+var_B8] cmp rdi, rax jz short loc_F1CD1 mov rsi, [rsp+128h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_F1CD1: mov rdi, [rsp+128h+var_E8]; void * lea rax, [rsp+128h+var_D8] cmp rdi, rax jz short loc_F1CED mov rsi, [rsp+128h+var_D8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_F1CED: 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 rax, [rsp+128h+var_88] movzx eax, byte ptr [rax] cmp eax, 2 jz short loc_F1D15 cmp eax, 1 jnz short loc_F1D20 add [rsp+128h+var_80], 30h ; '0' jmp short loc_F1D28 loc_F1D15: add [rsp+128h+var_78], 10h jmp short loc_F1D28 loc_F1D20: inc [rsp+128h+var_70] loc_F1D28: mov rdi, r13 lea rsi, [rsp+128h+var_108] call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jz loc_F1BCE loc_F1D3D: lea rdi, [rsp+128h+var_118] 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_F1D47: mov rax, [rsp+128h+var_120] add rsp, 0F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_F1DBA jmp short loc_F1DAE jmp loc_F1E35 mov r14, rax mov rax, [rsp+128h+var_58] test rax, rax jz short loc_F1D89 lea rdi, [rsp+128h+var_68] mov rsi, rdi mov edx, 3 call rax loc_F1D89: mov rdi, [rsp+128h+var_E8]; void * lea rax, [rsp+128h+var_D8] cmp rdi, rax jz loc_F1E42 mov rsi, [rsp+128h+var_D8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_F1E42 loc_F1DAE: mov rdi, rax call __clang_call_terminate jmp short loc_F1DBA jmp short $+2 loc_F1DBA: mov r14, rax jmp loc_F1E42 mov r14, rax mov bl, 1 jmp short loc_F1E13 mov r14, rax mov bl, 1 jmp short loc_F1DDF mov r14, rax lea rdi, [rsp+128h+var_E8]; this call _ZN16common_tool_callD2Ev; common_tool_call::~common_tool_call() xor ebx, ebx loc_F1DDF: lea rdi, [rsp+128h+var_40] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_F1DF3 mov r14, rax mov bl, 1 loc_F1DF3: test bl, bl jz short loc_F1E13 mov rdi, [rsp+128h+var_C8]; void * lea rax, [rsp+128h+var_B8] cmp rdi, rax jz short loc_F1E13 mov rsi, [rsp+128h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_F1E13: test bl, bl jz short loc_F1E38 mov rdi, [rsp+128h+var_E8]; void * lea rax, [rsp+128h+var_D8] cmp rdi, rax jz short loc_F1E38 mov rsi, [rsp+128h+var_D8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_F1E38 loc_F1E35: mov r14, rax loc_F1E38: lea rdi, [rsp+128h+var_118] 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_F1E42: mov rdi, [rsp+128h+var_120]; this call _ZN15common_chat_msgD2Ev; common_chat_msg::~common_chat_msg() mov rdi, r14 call __Unwind_Resume
long long parse_prefixed_json_tool_call_array(long long a1, long long a2, _QWORD *a3, long long a4) { long long v6; // r15 long long v7; // r12 long long v8; // r15 long long v9; // rbx _BYTE *v10; // rbp long long v11; // rax unsigned __int8 *v12; // rax int v13; // eax unsigned __int8 v15[8]; // [rsp+10h] [rbp-118h] BYREF long long v16; // [rsp+18h] [rbp-110h] unsigned __int8 *v17; // [rsp+20h] [rbp-108h] BYREF __int128 v18; // [rsp+28h] [rbp-100h] long long v19; // [rsp+38h] [rbp-F0h] void *v20[2]; // [rsp+40h] [rbp-E8h] BYREF _QWORD v21[2]; // [rsp+50h] [rbp-D8h] BYREF void *v22[2]; // [rsp+60h] [rbp-C8h] BYREF long long v23; // [rsp+70h] [rbp-B8h] BYREF void *v24; // [rsp+80h] [rbp-A8h] BYREF long long v25; // [rsp+90h] [rbp-98h] BYREF unsigned __int8 *v26; // [rsp+A0h] [rbp-88h] BYREF long long v27; // [rsp+A8h] [rbp-80h] long long v28; // [rsp+B0h] [rbp-78h] long long v29; // [rsp+B8h] [rbp-70h] __int128 v30; // [rsp+C0h] [rbp-68h] BYREF __int128 v31; // [rsp+D0h] [rbp-58h] unsigned __int8 v32[64]; // [rsp+E8h] [rbp-40h] BYREF v6 = std::string::find(a2, *a3, 0LL, a3[1]); *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; *(_QWORD *)(a1 + 32) = a1 + 48; *(_QWORD *)(a1 + 40) = 0LL; *(_BYTE *)(a1 + 48) = 0; *(_OWORD *)(a1 + 64) = 0LL; *(_QWORD *)(a1 + 80) = 0LL; *(_QWORD *)(a1 + 88) = a1 + 104; *(_QWORD *)(a1 + 96) = 0LL; *(_BYTE *)(a1 + 104) = 0; std::string::_M_replace(a1, 0LL, 0LL, "assistant", 9LL); if ( v6 == -1 ) { std::string::_M_assign(a1 + 32, a2); } else { v7 = a3[1]; std::string::substr(v20, a2, 0LL, v6); v8 = v7 + v6 - a4; std::string::operator=(a1 + 32, v20); if ( v20[0] != v21 ) operator delete(v20[0], v21[0] + 1LL); std::string::substr(v20, a2, v8, -1LL); v31 = 0LL; v30 = 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>::parse<std::string>( (long long)v15, (long long *)v20, (long long)&v30, 1u, 0); if ( (_QWORD)v31 ) ((void ( *)(__int128 *, __int128 *, long long))v31)(&v30, &v30, 3LL); if ( v20[0] != v21 ) operator delete(v20[0], v21[0] + 1LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::cbegin( (long long)&v26, v15); v17 = v15; v18 = 0LL; v19 = 0x8000000000000000LL; if ( v15[0] == 2 ) { *((_QWORD *)&v18 + 1) = 0LL; } else if ( v15[0] == 1 ) { *(_QWORD *)&v18 = 0LL; } else { v19 = 0x8000000000000000LL; } if ( v15[0] == 2 ) { *((_QWORD *)&v18 + 1) = *(_QWORD *)(v16 + 8); } else if ( v15[0] == 1 ) { *(_QWORD *)&v18 = *(_QWORD *)(v16 + 8); } else { v19 = 1LL; } while ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v26, &v17) ) { v9 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v26); v10 = (_BYTE *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>( v9, (long long)"arguments"); v11 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>( v9, (long long)"name"); ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE( (long long)v20, v11); if ( *v10 == 3 ) ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE( (long long)v22, (long long)v10); else nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump( (long long)v22, (long long)v10, -1, 32, 0, 0); if ( ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_( v9, (long long)"id") ) { v12 = (unsigned __int8 *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>( v9, (long long)"id"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( v32, v12); } else { ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_((char *)v32); } ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE( (long long)&v24, (long long)v32); std::vector<common_tool_call>::emplace_back<common_tool_call>(a1 + 64, v20); if ( v24 != &v25 ) operator delete(v24, v25 + 1); if ( v22[0] != &v23 ) operator delete(v22[0], v23 + 1); if ( v20[0] != v21 ) operator delete(v20[0], v21[0] + 1LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v32); v13 = *v26; if ( v13 == 2 ) { v28 += 16LL; } else if ( v13 == 1 ) { v27 += 48LL; } else { ++v29; } } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v15); } return a1; }
parse_prefixed_json_tool_call_array: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xf8 MOV RBX,RCX MOV R12,RDX MOV R14,RSI MOV RBP,RDI MOV RSI,qword ptr [RDX] MOV RCX,qword ptr [RDX + 0x8] XOR R13D,R13D MOV RDI,R14 XOR EDX,EDX CALL 0x0011bfd0 MOV R15,RAX LEA RAX,[RBP + 0x10] MOV qword ptr [RBP],RAX MOV qword ptr [RBP + 0x8],R13 MOV byte ptr [RBP + 0x10],R13B LEA RAX,[RBP + 0x30] MOV qword ptr [RBP + 0x20],RAX MOV qword ptr [RBP + 0x28],R13 MOV byte ptr [RBP + 0x30],R13B XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBP + 0x40],XMM0 MOV qword ptr [RBP + 0x50],R13 LEA RAX,[RBP + 0x68] MOV qword ptr [RBP + 0x58],RAX MOV qword ptr [RBP + 0x60],R13 MOV byte ptr [RBP + 0x68],R13B LAB_001f1a0c: LEA RCX,[0x1ff4e7] MOV R8D,0x9 MOV RDI,RBP XOR ESI,ESI XOR EDX,EDX MOV qword ptr [RSP + 0x8],RBP CALL 0x0011bdd0 LEA R13,[RBP + 0x20] CMP R15,-0x1 JZ 0x001f1b43 MOV R12,qword ptr [R12 + 0x8] LAB_001f1a3d: LEA RDI,[RSP + 0x40] MOV RSI,R14 XOR EDX,EDX MOV RCX,R15 CALL 0x0011b940 SUB R15,RBX ADD R15,R12 LEA RBX,[RSP + 0x40] MOV RDI,R13 MOV RSI,RBX CALL 0x0011bac0 MOV RDI,qword ptr [RBX] LEA RAX,[RSP + 0x50] CMP RDI,RAX JZ 0x001f1a7f MOV RSI,qword ptr [RSP + 0x50] INC RSI CALL 0x0011b8f0 LAB_001f1a7f: LEA RDI,[RSP + 0x40] MOV RSI,R14 MOV RDX,R15 MOV RCX,-0x1 CALL 0x0011b940 XORPS XMM0,XMM0 LEA RDX,[RSP + 0xc0] MOVAPS xmmword ptr [RDX + 0x10],XMM0 MOVAPS xmmword ptr [RDX],XMM0 LAB_001f1aa8: LEA RBX,[RSP + 0x10] LEA RSI,[RSP + 0x40] MOV RDI,RBX MOV ECX,0x1 XOR R8D,R8D CALL 0x001b32e6 MOV RAX,qword ptr [RSP + 0xd0] TEST RAX,RAX JZ 0x001f1ae1 LAB_001f1acf: LEA RDI,[RSP + 0xc0] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001f1ae1: MOV RDI,qword ptr [RSP + 0x40] LEA RAX,[RSP + 0x50] CMP RDI,RAX JZ 0x001f1afd MOV RSI,qword ptr [RSP + 0x50] INC RSI CALL 0x0011b8f0 LAB_001f1afd: MOV R14,-0x8000000000000000 LEA RDI,[RSP + 0xa0] MOV RSI,RBX CALL 0x0019b00a MOV qword ptr [RSP + 0x20],RBX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSP + 0x28],XMM0 MOV qword ptr [RSP + 0x38],R14 MOVZX EAX,byte ptr [RSP + 0x10] CMP EAX,0x2 JZ 0x001f1b53 CMP EAX,0x1 JNZ 0x001f1b5e MOV qword ptr [RSP + 0x28],0x0 JMP 0x001f1b63 LAB_001f1b43: MOV RDI,R13 MOV RSI,R14 CALL 0x0011b4c0 JMP 0x001f1d47 LAB_001f1b53: MOV qword ptr [RSP + 0x30],0x0 JMP 0x001f1b63 LAB_001f1b5e: MOV qword ptr [RSP + 0x38],R14 LAB_001f1b63: CMP EAX,0x2 JZ 0x001f1b7d CMP EAX,0x1 JNZ 0x001f1b8d MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x28],RAX JMP 0x001f1b96 LAB_001f1b7d: MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x30],RAX JMP 0x001f1b96 LAB_001f1b8d: MOV qword ptr [RSP + 0x38],0x1 LAB_001f1b96: LEA RDI,[RSP + 0xa0] LEA RSI,[RSP + 0x20] CALL 0x0019b0ce TEST AL,AL JNZ 0x001f1d3d MOV RAX,qword ptr [RSP + 0x8] LEA R14,[RAX + 0x40] LEA R13,[RSP + 0xa0] LEA R12,[RSP + 0x40] LEA R15,[RSP + 0xe8] LAB_001f1bce: MOV RDI,R13 CALL 0x0019ad0e MOV RBX,RAX MOV RDI,RAX LEA RSI,[0x20089a] CALL 0x001b3b5c MOV RBP,RAX MOV RDI,RBX LEA RSI,[0x200e36] CALL 0x001b3b5c MOV RDI,R12 MOV RSI,RAX CALL 0x001957e2 CMP byte ptr [RBP],0x3 JNZ 0x001f1c1a LAB_001f1c0b: LEA RDI,[RSP + 0x60] MOV RSI,RBP CALL 0x001957e2 JMP 0x001f1c37 LAB_001f1c1a: LEA RDI,[RSP + 0x60] MOV RSI,RBP MOV EDX,0xffffffff MOV ECX,0x20 XOR R8D,R8D XOR R9D,R9D CALL 0x0018d836 LAB_001f1c37: MOV RDI,RBX LEA RSI,[0x1ff946] CALL 0x001b3afa TEST AL,AL JZ 0x001f1c66 MOV RDI,RBX LEA RSI,[0x1ff946] CALL 0x001b3b5c MOV RDI,R15 MOV RSI,RAX CALL 0x0016af50 JMP 0x001f1c75 LAB_001f1c66: MOV RDI,R15 LEA RSI,[0x1fbc9c] CALL 0x001c6a6c LAB_001f1c75: LEA RDI,[RSP + 0x80] MOV RSI,R15 CALL 0x001957e2 LAB_001f1c85: MOV RDI,R14 MOV RSI,R12 CALL 0x001f4900 MOV RDI,qword ptr [RSP + 0x80] LEA RAX,[RSP + 0x90] CMP RDI,RAX JZ 0x001f1cb5 MOV RSI,qword ptr [RSP + 0x90] INC RSI CALL 0x0011b8f0 LAB_001f1cb5: MOV RDI,qword ptr [RSP + 0x60] LEA RAX,[RSP + 0x70] CMP RDI,RAX JZ 0x001f1cd1 MOV RSI,qword ptr [RSP + 0x70] INC RSI CALL 0x0011b8f0 LAB_001f1cd1: MOV RDI,qword ptr [RSP + 0x40] LEA RAX,[RSP + 0x50] CMP RDI,RAX JZ 0x001f1ced MOV RSI,qword ptr [RSP + 0x50] INC RSI CALL 0x0011b8f0 LAB_001f1ced: MOV RDI,R15 CALL 0x0016b4b0 MOV RAX,qword ptr [RSP + 0xa0] MOVZX EAX,byte ptr [RAX] CMP EAX,0x2 JZ 0x001f1d15 CMP EAX,0x1 JNZ 0x001f1d20 ADD qword ptr [RSP + 0xa8],0x30 JMP 0x001f1d28 LAB_001f1d15: ADD qword ptr [RSP + 0xb0],0x10 JMP 0x001f1d28 LAB_001f1d20: INC qword ptr [RSP + 0xb8] LAB_001f1d28: MOV RDI,R13 LEA RSI,[RSP + 0x20] CALL 0x0019b0ce TEST AL,AL JZ 0x001f1bce LAB_001f1d3d: LEA RDI,[RSP + 0x10] CALL 0x0016b4b0 LAB_001f1d47: MOV RAX,qword ptr [RSP + 0x8] ADD RSP,0xf8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* parse_prefixed_json_tool_call_array(std::__cxx11::string const&, std::__cxx11::string const&, unsigned long) */ string * parse_prefixed_json_tool_call_array(string *param_1,string *param_2,ulong param_3) { char cVar1; long lVar2; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this; basic_json *pbVar3; basic_json *pbVar4; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_118 [8]; long local_110; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_108; int8 local_100; int8 uStack_f8; int8 local_f0; long *local_e8 [2]; long local_d8 [2]; long *local_c8 [2]; long local_b8 [2]; long *local_a8 [2]; long local_98 [2]; char *local_88; long local_80; long local_78; long local_70; int8 local_68; int8 uStack_60; code *local_58; int8 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> local_40 [16]; lVar2 = std::__cxx11::string::find((char *)param_2,*(ulong *)param_3,0); *(string **)param_1 = param_1 + 0x10; *(int8 *)(param_1 + 8) = 0; param_1[0x10] = (string)0x0; *(string **)(param_1 + 0x20) = param_1 + 0x30; *(int8 *)(param_1 + 0x28) = 0; param_1[0x30] = (string)0x0; *(int8 *)(param_1 + 0x40) = 0; *(int8 *)(param_1 + 0x48) = 0; *(int8 *)(param_1 + 0x50) = 0; *(string **)(param_1 + 0x58) = param_1 + 0x68; *(int8 *)(param_1 + 0x60) = 0; param_1[0x68] = (string)0x0; /* try { // try from 001f1a0c to 001f1a29 has its CatchHandler @ 001f1dba */ std::__cxx11::string::_M_replace((ulong)param_1,0,(char *)0x0,0x1ff4e7); if (lVar2 == -1) { /* try { // try from 001f1b43 to 001f1b4d has its CatchHandler @ 001f1d5e */ std::__cxx11::string::_M_assign(param_1 + 0x20); } else { /* try { // try from 001f1a3d to 001f1a4e has its CatchHandler @ 001f1db8 */ std::__cxx11::string::substr((ulong)local_e8,(ulong)param_2); std::__cxx11::string::operator=(param_1 + 0x20,(string *)local_e8); if (local_e8[0] != local_d8) { operator_delete(local_e8[0],local_d8[0] + 1); } /* try { // try from 001f1a7f to 001f1a95 has its CatchHandler @ 001f1db6 */ std::__cxx11::string::substr((ulong)local_e8,(ulong)param_2); local_58 = (code *)0x0; uStack_50 = 0; local_68 = 0; uStack_60 = 0; /* try { // try from 001f1aa8 to 001f1ac1 has its CatchHandler @ 001f1d67 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::parse<std::__cxx11::string>(local_118,local_e8,&local_68,1,0); if (local_58 != (code *)0x0) { /* try { // try from 001f1acf to 001f1ae0 has its CatchHandler @ 001f1d60 */ (*local_58)(&local_68,&local_68,3); } if (local_e8[0] != local_d8) { operator_delete(local_e8[0],local_d8[0] + 1); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::cbegin(); local_f0 = 0x8000000000000000; uStack_f8 = 0; local_100 = 0; if (local_118[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> )0x2) { uStack_f8 = *(int8 *)(local_110 + 8); } else if (local_118[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> )0x1) { local_100 = *(int8 *)(local_110 + 8); } else { local_f0 = 1; } /* try { // try from 001f1b96 to 001f1ba7 has its CatchHandler @ 001f1d62 */ local_108 = local_118; cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ (&local_88,&local_108); if (cVar1 == '\0') { do { /* try { // try from 001f1bce to 001f1c04 has its CatchHandler @ 001f1e35 */ this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_88); pbVar3 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const>(this,"arguments"); pbVar4 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const>(this,"name"); _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE ((common_tool_call *)local_e8,pbVar4); if (*pbVar3 == (basic_json)0x3) { /* try { // try from 001f1c0b to 001f1c36 has its CatchHandler @ 001f1dc2 */ _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (local_c8,pbVar3); } else { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::dump(local_c8,pbVar3,0xffffffff,0x20,0,0); } /* try { // try from 001f1c37 to 001f1c74 has its CatchHandler @ 001f1dee */ cVar1 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ (this,"id"); if (cVar1 == '\0') { _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ (local_40,""); } else { pbVar3 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const>(this,"id"); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,pbVar3); } /* try { // try from 001f1c75 to 001f1c84 has its CatchHandler @ 001f1dc9 */ _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (local_a8,local_40); /* try { // try from 001f1c85 to 001f1c8f has its CatchHandler @ 001f1dd0 */ std::vector<common_tool_call,std::allocator<common_tool_call>>:: emplace_back<common_tool_call> ((vector<common_tool_call,std::allocator<common_tool_call>> *)(param_1 + 0x40), (common_tool_call *)local_e8); if (local_a8[0] != local_98) { operator_delete(local_a8[0],local_98[0] + 1); } if (local_c8[0] != local_b8) { operator_delete(local_c8[0],local_b8[0] + 1); } if (local_e8[0] != local_d8) { operator_delete(local_e8[0],local_d8[0] + 1); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_40); if (*local_88 == '\x02') { local_78 = local_78 + 0x10; } else if (*local_88 == '\x01') { local_80 = local_80 + 0x30; } else { local_70 = local_70 + 1; } /* try { // try from 001f1d28 to 001f1d34 has its CatchHandler @ 001f1e35 */ cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_88,&local_108); } while (cVar1 == '\0'); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_118); } return param_1; }
17,684
testing::UnitTest::set_current_test_info(testing::TestInfo*)
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc
void UnitTest::set_current_test_info(TestInfo* a_current_test_info) { internal::MutexLock lock(&mutex_); impl_->set_current_test_info(a_current_test_info); }
O1
cpp
testing::UnitTest::set_current_test_info(testing::TestInfo*): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 leaq 0x8(%rdi), %r15 movq %r15, %rdi callq 0x370dc movq 0x40(%r14), %rax movq %rbx, 0x1e0(%rax) movq %r15, %rdi callq 0x3717a popq %rbx popq %r14 popq %r15 retq movq %rax, %rdi callq 0x326a4
_ZN7testing8UnitTest21set_current_test_infoEPNS_8TestInfoE: push r15 push r14 push rbx mov rbx, rsi mov r14, rdi lea r15, [rdi+8] mov rdi, r15; this call _ZN7testing8internal9MutexBase4LockEv; testing::internal::MutexBase::Lock(void) mov rax, [r14+40h] mov [rax+1E0h], rbx mov rdi, r15; this call _ZN7testing8internal9MutexBase6UnlockEv; testing::internal::MutexBase::Unlock(void) pop rbx pop r14 pop r15 retn mov rdi, rax call __clang_call_terminate
long long testing::UnitTest::set_current_test_info(testing::UnitTest *this, testing::TestInfo *a2) { testing::internal::MutexBase::Lock((testing::UnitTest *)((char *)this + 8)); *(_QWORD *)(*((_QWORD *)this + 8) + 480LL) = a2; return testing::internal::MutexBase::Unlock((testing::UnitTest *)((char *)this + 8)); }
set_current_test_info: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RSI MOV R14,RDI LEA R15,[RDI + 0x8] MOV RDI,R15 CALL 0x001370dc MOV RAX,qword ptr [R14 + 0x40] MOV qword ptr [RAX + 0x1e0],RBX LAB_001216f0: MOV RDI,R15 CALL 0x0013717a POP RBX POP R14 POP R15 RET
/* testing::UnitTest::set_current_test_info(testing::TestInfo*) */ void __thiscall testing::UnitTest::set_current_test_info(UnitTest *this,TestInfo *param_1) { internal::MutexBase::Lock((MutexBase *)(this + 8)); *(TestInfo **)(*(long *)(this + 0x40) + 0x1e0) = param_1; /* try { // try from 001216f0 to 001216f7 has its CatchHandler @ 001216fe */ internal::MutexBase::Unlock((MutexBase *)(this + 8)); return; }
17,685
glfwInitEGL
untodesu[P]riteg/build_O3/_deps/glfw-src/src/egl_context.c
GLFWbool _glfwInitEGL(void) { int i; const char* sonames[] = { #if defined(_GLFW_EGL_LIBRARY) _GLFW_EGL_LIBRARY, #elif defined(_GLFW_WIN32) "libEGL.dll", "EGL.dll", #elif defined(_GLFW_COCOA) "libEGL.dylib", #elif defined(__CYGWIN__) "libEGL-1.so", #else "libEGL.so.1", #endif NULL }; if (_glfw.egl.handle) return GLFW_TRUE; for (i = 0; sonames[i]; i++) { _glfw.egl.handle = _glfw_dlopen(sonames[i]); if (_glfw.egl.handle) break; } if (!_glfw.egl.handle) { _glfwInputError(GLFW_API_UNAVAILABLE, "EGL: Library not found"); return GLFW_FALSE; } _glfw.egl.prefix = (strncmp(sonames[i], "lib", 3) == 0); _glfw.egl.GetConfigAttrib = (PFN_eglGetConfigAttrib) _glfw_dlsym(_glfw.egl.handle, "eglGetConfigAttrib"); _glfw.egl.GetConfigs = (PFN_eglGetConfigs) _glfw_dlsym(_glfw.egl.handle, "eglGetConfigs"); _glfw.egl.GetDisplay = (PFN_eglGetDisplay) _glfw_dlsym(_glfw.egl.handle, "eglGetDisplay"); _glfw.egl.GetError = (PFN_eglGetError) _glfw_dlsym(_glfw.egl.handle, "eglGetError"); _glfw.egl.Initialize = (PFN_eglInitialize) _glfw_dlsym(_glfw.egl.handle, "eglInitialize"); _glfw.egl.Terminate = (PFN_eglTerminate) _glfw_dlsym(_glfw.egl.handle, "eglTerminate"); _glfw.egl.BindAPI = (PFN_eglBindAPI) _glfw_dlsym(_glfw.egl.handle, "eglBindAPI"); _glfw.egl.CreateContext = (PFN_eglCreateContext) _glfw_dlsym(_glfw.egl.handle, "eglCreateContext"); _glfw.egl.DestroySurface = (PFN_eglDestroySurface) _glfw_dlsym(_glfw.egl.handle, "eglDestroySurface"); _glfw.egl.DestroyContext = (PFN_eglDestroyContext) _glfw_dlsym(_glfw.egl.handle, "eglDestroyContext"); _glfw.egl.CreateWindowSurface = (PFN_eglCreateWindowSurface) _glfw_dlsym(_glfw.egl.handle, "eglCreateWindowSurface"); _glfw.egl.MakeCurrent = (PFN_eglMakeCurrent) _glfw_dlsym(_glfw.egl.handle, "eglMakeCurrent"); _glfw.egl.SwapBuffers = (PFN_eglSwapBuffers) _glfw_dlsym(_glfw.egl.handle, "eglSwapBuffers"); _glfw.egl.SwapInterval = (PFN_eglSwapInterval) _glfw_dlsym(_glfw.egl.handle, "eglSwapInterval"); _glfw.egl.QueryString = (PFN_eglQueryString) _glfw_dlsym(_glfw.egl.handle, "eglQueryString"); _glfw.egl.GetProcAddress = (PFN_eglGetProcAddress) _glfw_dlsym(_glfw.egl.handle, "eglGetProcAddress"); if (!_glfw.egl.GetConfigAttrib || !_glfw.egl.GetConfigs || !_glfw.egl.GetDisplay || !_glfw.egl.GetError || !_glfw.egl.Initialize || !_glfw.egl.Terminate || !_glfw.egl.BindAPI || !_glfw.egl.CreateContext || !_glfw.egl.DestroySurface || !_glfw.egl.DestroyContext || !_glfw.egl.CreateWindowSurface || !_glfw.egl.MakeCurrent || !_glfw.egl.SwapBuffers || !_glfw.egl.SwapInterval || !_glfw.egl.QueryString || !_glfw.egl.GetProcAddress) { _glfwInputError(GLFW_PLATFORM_ERROR, "EGL: Failed to load required entry points"); _glfwTerminateEGL(); return GLFW_FALSE; } _glfw.egl.display = eglGetDisplay(_GLFW_EGL_NATIVE_DISPLAY); if (_glfw.egl.display == EGL_NO_DISPLAY) { _glfwInputError(GLFW_API_UNAVAILABLE, "EGL: Failed to get EGL display: %s", getEGLErrorString(eglGetError())); _glfwTerminateEGL(); return GLFW_FALSE; } if (!eglInitialize(_glfw.egl.display, &_glfw.egl.major, &_glfw.egl.minor)) { _glfwInputError(GLFW_API_UNAVAILABLE, "EGL: Failed to initialize EGL: %s", getEGLErrorString(eglGetError())); _glfwTerminateEGL(); return GLFW_FALSE; } _glfw.egl.KHR_create_context = extensionSupportedEGL("EGL_KHR_create_context"); _glfw.egl.KHR_create_context_no_error = extensionSupportedEGL("EGL_KHR_create_context_no_error"); _glfw.egl.KHR_gl_colorspace = extensionSupportedEGL("EGL_KHR_gl_colorspace"); _glfw.egl.KHR_get_all_proc_addresses = extensionSupportedEGL("EGL_KHR_get_all_proc_addresses"); _glfw.egl.KHR_context_flush_control = extensionSupportedEGL("EGL_KHR_context_flush_control"); return GLFW_TRUE; }
O3
c
glfwInitEGL: pushq %r14 pushq %rbx pushq %rax leaq 0x815b9(%rip), %r14 # 0xa8638 movl $0x1, %ebx cmpq $0x0, 0x208c8(%r14) jne 0x2745f leaq 0x6038f(%rip), %rdi # 0x87428 movl $0x1, %esi callq 0xcb30 movq %rax, 0x208c8(%r14) testq %rax, %rax je 0x27363 movl $0x1, 0x208b0(%r14) leaq 0x60386(%rip), %rsi # 0x8744b movq %rax, %rdi callq 0xc820 movq %rax, 0x208d0(%r14) movq 0x208c8(%r14), %rdi leaq 0x6037c(%rip), %rsi # 0x8745e callq 0xc820 movq %rax, 0x208d8(%r14) movq 0x208c8(%r14), %rdi leaq 0x60370(%rip), %rsi # 0x8746c callq 0xc820 movq %rax, 0x208e0(%r14) movq 0x208c8(%r14), %rdi leaq 0x60364(%rip), %rsi # 0x8747a callq 0xc820 movq %rax, 0x208e8(%r14) movq 0x208c8(%r14), %rdi leaq 0x60356(%rip), %rsi # 0x87486 callq 0xc820 movq %rax, 0x208f0(%r14) movq 0x208c8(%r14), %rdi leaq 0x6034a(%rip), %rsi # 0x87494 callq 0xc820 movq %rax, 0x208f8(%r14) movq 0x208c8(%r14), %rdi leaq 0x6033d(%rip), %rsi # 0x874a1 callq 0xc820 movq %rax, 0x20900(%r14) movq 0x208c8(%r14), %rdi leaq 0x6032e(%rip), %rsi # 0x874ac callq 0xc820 movq %rax, 0x20908(%r14) movq 0x208c8(%r14), %rdi leaq 0x60325(%rip), %rsi # 0x874bd callq 0xc820 movq %rax, 0x20910(%r14) movq 0x208c8(%r14), %rdi leaq 0x6031d(%rip), %rsi # 0x874cf callq 0xc820 movq %rax, 0x20918(%r14) movq 0x208c8(%r14), %rdi leaq 0x60315(%rip), %rsi # 0x874e1 callq 0xc820 movq %rax, 0x20920(%r14) movq 0x208c8(%r14), %rdi leaq 0x60312(%rip), %rsi # 0x874f8 callq 0xc820 movq %rax, 0x20928(%r14) movq 0x208c8(%r14), %rdi leaq 0x60307(%rip), %rsi # 0x87507 callq 0xc820 movq %rax, 0x20930(%r14) movq 0x208c8(%r14), %rdi leaq 0x602fc(%rip), %rsi # 0x87516 callq 0xc820 movq %rax, 0x20938(%r14) movq 0x208c8(%r14), %rdi leaq 0x602f2(%rip), %rsi # 0x87526 callq 0xc820 movq %rax, 0x20940(%r14) movq 0x208c8(%r14), %rdi leaq 0x602e7(%rip), %rsi # 0x87535 callq 0xc820 movq %rax, 0x20948(%r14) movdqu 0x208d0(%r14), %xmm7 movdqu 0x208e0(%r14), %xmm0 movdqu 0x208f0(%r14), %xmm6 movdqu 0x20900(%r14), %xmm8 movdqu 0x20920(%r14), %xmm5 movdqu 0x20910(%r14), %xmm4 movdqu 0x20930(%r14), %xmm2 movq %rax, %xmm3 movq 0x20940(%r14), %xmm1 punpcklqdq %xmm3, %xmm1 # xmm1 = xmm1[0],xmm3[0] pxor %xmm3, %xmm3 pcmpeqd %xmm3, %xmm8 pshufd $0xb1, %xmm8, %xmm9 # xmm9 = xmm8[1,0,3,2] pand %xmm8, %xmm9 pcmpeqd %xmm3, %xmm6 pshufd $0xb1, %xmm6, %xmm8 # xmm8 = xmm6[1,0,3,2] pand %xmm6, %xmm8 packssdw %xmm9, %xmm8 movdqa %xmm0, %xmm6 pcmpeqd %xmm3, %xmm6 pshufd $0xb1, %xmm6, %xmm9 # xmm9 = xmm6[1,0,3,2] pand %xmm6, %xmm9 pcmpeqd %xmm3, %xmm7 pshufd $0xb1, %xmm7, %xmm6 # xmm6 = xmm7[1,0,3,2] pand %xmm7, %xmm6 packssdw %xmm9, %xmm6 packssdw %xmm8, %xmm6 pcmpeqd %xmm3, %xmm5 pshufd $0xb1, %xmm5, %xmm7 # xmm7 = xmm5[1,0,3,2] pand %xmm5, %xmm7 pcmpeqd %xmm3, %xmm4 pshufd $0xb1, %xmm4, %xmm5 # xmm5 = xmm4[1,0,3,2] pand %xmm4, %xmm5 packssdw %xmm7, %xmm5 pcmpeqd %xmm3, %xmm2 pshufd $0xb1, %xmm2, %xmm4 # xmm4 = xmm2[1,0,3,2] pand %xmm2, %xmm4 pcmpeqd %xmm3, %xmm1 pshufd $0xb1, %xmm1, %xmm2 # xmm2 = xmm1[1,0,3,2] pand %xmm1, %xmm2 packssdw %xmm2, %xmm4 packssdw %xmm4, %xmm5 packsswb %xmm5, %xmm6 pmovmskb %xmm6, %eax testl %eax, %eax je 0x2737d leaq 0x601f7(%rip), %rsi # 0x87547 xorl %ebx, %ebx movl $0x10008, %edi # imm = 0x10008 xorl %eax, %eax callq 0x18e91 jmp 0x2745a leaq 0x600ca(%rip), %rsi # 0x87434 xorl %ebx, %ebx movl $0x10006, %edi # imm = 0x10006 xorl %eax, %eax callq 0x18e91 jmp 0x2745f movq 0x1fec0(%r14), %rdi movq %xmm0, %rax callq *%rax movq %rax, 0x208a0(%r14) testq %rax, %rax je 0x2741d leaq 0x208a8(%r14), %rsi leaq 0x208ac(%r14), %rdx movq %rax, %rdi callq *0x208f0(%r14) testl %eax, %eax je 0x27434 leaq 0x601f8(%rip), %rdi # 0x875b6 callq 0x274d0 movl %eax, 0x208b4(%r14) leaq 0x601fc(%rip), %rdi # 0x875cd callq 0x274d0 movl %eax, 0x208b8(%r14) leaq 0x60209(%rip), %rdi # 0x875ed callq 0x274d0 movl %eax, 0x208bc(%r14) leaq 0x6020c(%rip), %rdi # 0x87603 callq 0x274d0 movl %eax, 0x208c0(%r14) leaq 0x60218(%rip), %rdi # 0x87622 callq 0x274d0 movl %eax, 0x208c4(%r14) movl $0x1, %ebx jmp 0x2745f callq *0x208e8(%r14) movl %eax, %edi callq 0x274ac leaq 0x6013f(%rip), %rsi # 0x87571 jmp 0x27449 callq *0x208e8(%r14) movl %eax, %edi callq 0x274ac leaq 0x6014b(%rip), %rsi # 0x87594 xorl %ebx, %ebx movl $0x10006, %edi # imm = 0x10006 movq %rax, %rdx xorl %eax, %eax callq 0x18e91 callq 0x27469 movl %ebx, %eax addq $0x8, %rsp popq %rbx popq %r14 retq
_glfwInitEGL: push r14 push rbx push rax lea r14, _glfw mov ebx, 1 cmp qword ptr [r14+208C8h], 0 jnz loc_2745F lea rdi, aLibeglSo1; "libEGL.so.1" mov esi, 1 call _dlopen mov [r14+208C8h], rax test rax, rax jz loc_27363 mov dword ptr ds:loc_208B0[r14], 1 lea rsi, aEglgetconfigat; "eglGetConfigAttrib" mov rdi, rax call _dlsym mov [r14+208D0h], rax mov rdi, [r14+208C8h] lea rsi, aEglgetconfigs; "eglGetConfigs" call _dlsym mov [r14+208D8h], rax mov rdi, [r14+208C8h] lea rsi, aEglgetdisplay; "eglGetDisplay" call _dlsym mov [r14+208E0h], rax mov rdi, [r14+208C8h] lea rsi, aEglgeterror; "eglGetError" call _dlsym mov [r14+208E8h], rax mov rdi, [r14+208C8h] lea rsi, aEglinitialize; "eglInitialize" call _dlsym mov [r14+208F0h], rax mov rdi, [r14+208C8h] lea rsi, aEglterminate; "eglTerminate" call _dlsym mov [r14+208F8h], rax mov rdi, [r14+208C8h] lea rsi, aEglbindapi; "eglBindAPI" call _dlsym mov [r14+20900h], rax mov rdi, [r14+208C8h] lea rsi, aEglcreateconte; "eglCreateContext" call _dlsym mov [r14+20908h], rax mov rdi, [r14+208C8h] lea rsi, aEgldestroysurf; "eglDestroySurface" call _dlsym mov [r14+20910h], rax mov rdi, [r14+208C8h] lea rsi, aEgldestroycont; "eglDestroyContext" call _dlsym mov [r14+20918h], rax mov rdi, [r14+208C8h] lea rsi, aEglcreatewindo; "eglCreateWindowSurface" call _dlsym mov qword ptr ds:loc_20920[r14], rax mov rdi, [r14+208C8h] lea rsi, aEglmakecurrent; "eglMakeCurrent" call _dlsym mov [r14+20928h], rax mov rdi, [r14+208C8h] lea rsi, aEglswapbuffers; "eglSwapBuffers" call _dlsym mov [r14+20930h], rax mov rdi, [r14+208C8h] lea rsi, aEglswapinterva; "eglSwapInterval" call _dlsym mov [r14+20938h], rax mov rdi, [r14+208C8h] lea rsi, aEglquerystring; "eglQueryString" call _dlsym mov [r14+20940h], rax mov rdi, [r14+208C8h] lea rsi, aEglgetprocaddr; "eglGetProcAddress" call _dlsym mov [r14+20948h], rax movdqu xmm7, xmmword ptr [r14+208D0h] movdqu xmm0, xmmword ptr [r14+208E0h] movdqu xmm6, xmmword ptr [r14+208F0h] movdqu xmm8, xmmword ptr [r14+20900h] movdqu xmm5, xmmword ptr ds:loc_20920[r14] movdqu xmm4, xmmword ptr [r14+20910h] movdqu xmm2, xmmword ptr [r14+20930h] movq xmm3, rax movq xmm1, qword ptr [r14+20940h] punpcklqdq xmm1, xmm3 pxor xmm3, xmm3 pcmpeqd xmm8, xmm3 pshufd xmm9, xmm8, 0B1h pand xmm9, xmm8 pcmpeqd xmm6, xmm3 pshufd xmm8, xmm6, 0B1h pand xmm8, xmm6 packssdw xmm8, xmm9 movdqa xmm6, xmm0 pcmpeqd xmm6, xmm3 pshufd xmm9, xmm6, 0B1h pand xmm9, xmm6 pcmpeqd xmm7, xmm3 pshufd xmm6, xmm7, 0B1h pand xmm6, xmm7 packssdw xmm6, xmm9 packssdw xmm6, xmm8 pcmpeqd xmm5, xmm3 pshufd xmm7, xmm5, 0B1h pand xmm7, xmm5 pcmpeqd xmm4, xmm3 pshufd xmm5, xmm4, 0B1h pand xmm5, xmm4 packssdw xmm5, xmm7 pcmpeqd xmm2, xmm3 pshufd xmm4, xmm2, 0B1h pand xmm4, xmm2 pcmpeqd xmm1, xmm3 pshufd xmm2, xmm1, 0B1h pand xmm2, xmm1 packssdw xmm4, xmm2 packssdw xmm5, xmm4 packsswb xmm6, xmm5 pmovmskb eax, xmm6 test eax, eax jz short loc_2737D lea rsi, aEglFailedToLoa; "EGL: Failed to load required entry poin"... xor ebx, ebx mov edi, 10008h xor eax, eax call _glfwInputError jmp loc_2745A loc_27363: lea rsi, aEglLibraryNotF; "EGL: Library not found" xor ebx, ebx mov edi, offset loc_10006 xor eax, eax call _glfwInputError jmp loc_2745F loc_2737D: mov rdi, [r14+1FEC0h] movq rax, xmm0 call rax mov [r14+208A0h], rax test rax, rax jz loc_2741D lea rsi, [r14+208A8h] lea rdx, loc_208AC[r14] mov rdi, rax call qword ptr [r14+208F0h] test eax, eax jz short loc_27434 lea rdi, aEglKhrCreateCo; "EGL_KHR_create_context" call extensionSupportedEGL mov dword ptr ds:loc_208B4[r14], eax lea rdi, aEglKhrCreateCo_0; "EGL_KHR_create_context_no_error" call extensionSupportedEGL mov dword ptr ds:loc_208B8[r14], eax lea rdi, aEglKhrGlColors; "EGL_KHR_gl_colorspace" call extensionSupportedEGL mov [r14+208BCh], eax lea rdi, aEglKhrGetAllPr; "EGL_KHR_get_all_proc_addresses" call extensionSupportedEGL mov [r14+208C0h], eax lea rdi, aEglKhrContextF; "EGL_KHR_context_flush_control" call extensionSupportedEGL mov dword ptr ds:loc_208C4[r14], eax mov ebx, 1 jmp short loc_2745F loc_2741D: call qword ptr [r14+208E8h] mov edi, eax call getEGLErrorString lea rsi, aEglFailedToGet; "EGL: Failed to get EGL display: %s" jmp short loc_27449 loc_27434: call qword ptr [r14+208E8h] mov edi, eax call getEGLErrorString lea rsi, aEglFailedToIni; "EGL: Failed to initialize EGL: %s" loc_27449: xor ebx, ebx mov edi, offset loc_10006 mov rdx, rax xor eax, eax call _glfwInputError loc_2745A: call _glfwTerminateEGL loc_2745F: mov eax, ebx add rsp, 8 pop rbx pop r14 retn
long long glfwInitEGL() { unsigned int v0; // ebx long long v1; // rax long long v2; // rax __m128i v3; // xmm0 __m128i v4; // xmm8 __m128i v5; // xmm6 __m128i v6; // xmm8 __m128i v7; // xmm6 __m128i v8; // xmm7 __m128i v9; // xmm5 __m128i v10; // xmm4 __m128i v11; // xmm2 __m128i v12; // xmm1 void *v13; // rdi long long v14; // rdi long long v15; // rax long long v16; // rdi unsigned int v17; // eax long long EGLErrorString; // rax const char *v19; // rsi unsigned int v20; // eax v0 = 1; if ( !*(_QWORD *)&glfw[33330] ) { v1 = dlopen("libEGL.so.1", 1LL); *(_QWORD *)&glfw[33330] = v1; if ( v1 ) { *(_DWORD *)((char *)&loc_208B0 + (_QWORD)glfw) = 1; *(_QWORD *)&glfw[33332] = dlsym(v1, "eglGetConfigAttrib"); *(_QWORD *)&glfw[33334] = dlsym(*(_QWORD *)&glfw[33330], "eglGetConfigs"); *(_QWORD *)&glfw[33336] = dlsym(*(_QWORD *)&glfw[33330], "eglGetDisplay"); *(_QWORD *)&glfw[33338] = dlsym(*(_QWORD *)&glfw[33330], "eglGetError"); *(_QWORD *)&glfw[33340] = dlsym(*(_QWORD *)&glfw[33330], "eglInitialize"); *(_QWORD *)&glfw[33342] = dlsym(*(_QWORD *)&glfw[33330], "eglTerminate"); *(_QWORD *)&glfw[33344] = dlsym(*(_QWORD *)&glfw[33330], "eglBindAPI"); *(_QWORD *)&glfw[33346] = dlsym(*(_QWORD *)&glfw[33330], "eglCreateContext"); *(_QWORD *)&glfw[33348] = dlsym(*(_QWORD *)&glfw[33330], "eglDestroySurface"); *(_QWORD *)&glfw[33350] = dlsym(*(_QWORD *)&glfw[33330], "eglDestroyContext"); *(_QWORD *)((char *)&loc_20920 + (_QWORD)glfw) = dlsym(*(_QWORD *)&glfw[33330], "eglCreateWindowSurface"); *(_QWORD *)&glfw[33354] = dlsym(*(_QWORD *)&glfw[33330], "eglMakeCurrent"); *(_QWORD *)&glfw[33356] = dlsym(*(_QWORD *)&glfw[33330], "eglSwapBuffers"); *(_QWORD *)&glfw[33358] = dlsym(*(_QWORD *)&glfw[33330], "eglSwapInterval"); *(_QWORD *)&glfw[33360] = dlsym(*(_QWORD *)&glfw[33330], "eglQueryString"); v2 = dlsym(*(_QWORD *)&glfw[33330], "eglGetProcAddress"); *(_QWORD *)&glfw[33362] = v2; v3 = _mm_loadu_si128((const __m128i *)&glfw[33336]); v4 = _mm_cmpeq_epi32(_mm_loadu_si128((const __m128i *)&glfw[33344]), (__m128i)0LL); v5 = _mm_cmpeq_epi32(_mm_loadu_si128((const __m128i *)&glfw[33340]), (__m128i)0LL); v6 = _mm_packs_epi32(_mm_and_si128(_mm_shuffle_epi32(v5, 177), v5), _mm_and_si128(_mm_shuffle_epi32(v4, 177), v4)); v7 = _mm_cmpeq_epi32(v3, (__m128i)0LL); v8 = _mm_cmpeq_epi32(_mm_loadu_si128((const __m128i *)&glfw[33332]), (__m128i)0LL); v9 = _mm_cmpeq_epi32(_mm_loadu_si128((const __m128i *)((char *)&loc_20920 + (_QWORD)glfw)), (__m128i)0LL); v10 = _mm_cmpeq_epi32(_mm_loadu_si128((const __m128i *)&glfw[33348]), (__m128i)0LL); v11 = _mm_cmpeq_epi32(_mm_loadu_si128((const __m128i *)&glfw[33356]), (__m128i)0LL); v12 = _mm_cmpeq_epi32( _mm_unpacklo_epi64(_mm_loadl_epi64((const __m128i *)&glfw[33360]), (__m128i)(unsigned long long)v2), (__m128i)0LL); if ( _mm_movemask_epi8( _mm_packs_epi16( _mm_packs_epi32( _mm_packs_epi32( _mm_and_si128(_mm_shuffle_epi32(v8, 177), v8), _mm_and_si128(_mm_shuffle_epi32(v7, 177), v7)), v6), _mm_packs_epi32( _mm_packs_epi32( _mm_and_si128(_mm_shuffle_epi32(v10, 177), v10), _mm_and_si128(_mm_shuffle_epi32(v9, 177), v9)), _mm_packs_epi32( _mm_and_si128(_mm_shuffle_epi32(v11, 177), v11), _mm_and_si128(_mm_shuffle_epi32(v12, 177), v12))))) ) { v0 = 0; v13 = &loc_10006 + 2; glfwInputError(0x10008u, (long long)"EGL: Failed to load required entry points"); LABEL_12: glfwTerminateEGL(v13); return v0; } v14 = *(_QWORD *)&glfw[32688]; v15 = ((long long ( *)(long long))v3.m128i_i64[0])(v14); *(_QWORD *)&glfw[33320] = v15; if ( v15 ) { v16 = v15; if ( (*(unsigned int ( **)(long long, _DWORD *, char *))&glfw[33340])( v15, &glfw[33322], (char *)&loc_208AC + (_QWORD)glfw) ) { *(_DWORD *)((char *)&loc_208B4 + (_QWORD)glfw) = extensionSupportedEGL("EGL_KHR_create_context"); *(_DWORD *)((char *)&loc_208B8 + (_QWORD)glfw) = extensionSupportedEGL("EGL_KHR_create_context_no_error"); glfw[33327] = extensionSupportedEGL("EGL_KHR_gl_colorspace"); glfw[33328] = extensionSupportedEGL("EGL_KHR_get_all_proc_addresses"); *(_DWORD *)((char *)&loc_208C4 + (_QWORD)glfw) = extensionSupportedEGL("EGL_KHR_context_flush_control"); return 1; } v20 = (*(long long ( **)(long long))&glfw[33338])(v16); EGLErrorString = getEGLErrorString(v20); v19 = "EGL: Failed to initialize EGL: %s"; } else { v17 = (*(long long ( **)(long long))&glfw[33338])(v14); EGLErrorString = getEGLErrorString(v17); v19 = "EGL: Failed to get EGL display: %s"; } v0 = 0; v13 = &loc_10006; glfwInputError((unsigned int)&loc_10006, (long long)v19, EGLErrorString); goto LABEL_12; } v0 = 0; glfwInputError((unsigned int)&loc_10006, (long long)"EGL: Library not found"); } return v0; }
_glfwInitEGL: PUSH R14 PUSH RBX PUSH RAX LEA R14,[0x1a8638] MOV EBX,0x1 CMP qword ptr [R14 + 0x208c8],0x0 JNZ 0x0012745f LEA RDI,[0x187428] MOV ESI,0x1 CALL 0x0010cb30 MOV qword ptr [R14 + 0x208c8],RAX TEST RAX,RAX JZ 0x00127363 MOV dword ptr [R14 + 0x208b0],0x1 LEA RSI,[0x18744b] MOV RDI,RAX CALL 0x0010c820 MOV qword ptr [R14 + 0x208d0],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x18745e] CALL 0x0010c820 MOV qword ptr [R14 + 0x208d8],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x18746c] CALL 0x0010c820 MOV qword ptr [R14 + 0x208e0],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x18747a] CALL 0x0010c820 MOV qword ptr [R14 + 0x208e8],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x187486] CALL 0x0010c820 MOV qword ptr [R14 + 0x208f0],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x187494] CALL 0x0010c820 MOV qword ptr [R14 + 0x208f8],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x1874a1] CALL 0x0010c820 MOV qword ptr [R14 + 0x20900],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x1874ac] CALL 0x0010c820 MOV qword ptr [R14 + 0x20908],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x1874bd] CALL 0x0010c820 MOV qword ptr [R14 + 0x20910],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x1874cf] CALL 0x0010c820 MOV qword ptr [R14 + 0x20918],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x1874e1] CALL 0x0010c820 MOV qword ptr [R14 + 0x20920],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x1874f8] CALL 0x0010c820 MOV qword ptr [R14 + 0x20928],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x187507] CALL 0x0010c820 MOV qword ptr [R14 + 0x20930],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x187516] CALL 0x0010c820 MOV qword ptr [R14 + 0x20938],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x187526] CALL 0x0010c820 MOV qword ptr [R14 + 0x20940],RAX MOV RDI,qword ptr [R14 + 0x208c8] LEA RSI,[0x187535] CALL 0x0010c820 MOV qword ptr [R14 + 0x20948],RAX MOVDQU XMM7,xmmword ptr [R14 + 0x208d0] MOVDQU XMM0,xmmword ptr [R14 + 0x208e0] MOVDQU XMM6,xmmword ptr [R14 + 0x208f0] MOVDQU XMM8,xmmword ptr [R14 + 0x20900] MOVDQU XMM5,xmmword ptr [R14 + 0x20920] MOVDQU XMM4,xmmword ptr [R14 + 0x20910] MOVDQU XMM2,xmmword ptr [R14 + 0x20930] MOVQ XMM3,RAX MOVQ XMM1,qword ptr [R14 + 0x20940] PUNPCKLQDQ XMM1,XMM3 PXOR XMM3,XMM3 PCMPEQD XMM8,XMM3 PSHUFD XMM9,XMM8,0xb1 PAND XMM9,XMM8 PCMPEQD XMM6,XMM3 PSHUFD XMM8,XMM6,0xb1 PAND XMM8,XMM6 PACKSSDW XMM8,XMM9 MOVDQA XMM6,XMM0 PCMPEQD XMM6,XMM3 PSHUFD XMM9,XMM6,0xb1 PAND XMM9,XMM6 PCMPEQD XMM7,XMM3 PSHUFD XMM6,XMM7,0xb1 PAND XMM6,XMM7 PACKSSDW XMM6,XMM9 PACKSSDW XMM6,XMM8 PCMPEQD XMM5,XMM3 PSHUFD XMM7,XMM5,0xb1 PAND XMM7,XMM5 PCMPEQD XMM4,XMM3 PSHUFD XMM5,XMM4,0xb1 PAND XMM5,XMM4 PACKSSDW XMM5,XMM7 PCMPEQD XMM2,XMM3 PSHUFD XMM4,XMM2,0xb1 PAND XMM4,XMM2 PCMPEQD XMM1,XMM3 PSHUFD XMM2,XMM1,0xb1 PAND XMM2,XMM1 PACKSSDW XMM4,XMM2 PACKSSDW XMM5,XMM4 PACKSSWB XMM6,XMM5 PMOVMSKB EAX,XMM6 TEST EAX,EAX JZ 0x0012737d LEA RSI,[0x187547] XOR EBX,EBX MOV EDI,0x10008 XOR EAX,EAX CALL 0x00118e91 JMP 0x0012745a LAB_00127363: LEA RSI,[0x187434] XOR EBX,EBX MOV EDI,0x10006 XOR EAX,EAX CALL 0x00118e91 JMP 0x0012745f LAB_0012737d: MOV RDI,qword ptr [R14 + 0x1fec0] MOVQ RAX,XMM0 CALL RAX MOV qword ptr [R14 + 0x208a0],RAX TEST RAX,RAX JZ 0x0012741d LEA RSI,[R14 + 0x208a8] LEA RDX,[R14 + 0x208ac] MOV RDI,RAX CALL qword ptr [R14 + 0x208f0] TEST EAX,EAX JZ 0x00127434 LEA RDI,[0x1875b6] CALL 0x001274d0 MOV dword ptr [R14 + 0x208b4],EAX LEA RDI,[0x1875cd] CALL 0x001274d0 MOV dword ptr [R14 + 0x208b8],EAX LEA RDI,[0x1875ed] CALL 0x001274d0 MOV dword ptr [R14 + 0x208bc],EAX LEA RDI,[0x187603] CALL 0x001274d0 MOV dword ptr [R14 + 0x208c0],EAX LEA RDI,[0x187622] CALL 0x001274d0 MOV dword ptr [R14 + 0x208c4],EAX MOV EBX,0x1 JMP 0x0012745f LAB_0012741d: CALL qword ptr [R14 + 0x208e8] MOV EDI,EAX CALL 0x001274ac LEA RSI,[0x187571] JMP 0x00127449 LAB_00127434: CALL qword ptr [R14 + 0x208e8] MOV EDI,EAX CALL 0x001274ac LEA RSI,[0x187594] LAB_00127449: XOR EBX,EBX MOV EDI,0x10006 MOV RDX,RAX XOR EAX,EAX CALL 0x00118e91 LAB_0012745a: CALL 0x00127469 LAB_0012745f: MOV EAX,EBX ADD RSP,0x8 POP RBX POP R14 RET
int8 _glfwInitEGL(void) { int iVar1; int4 uVar2; int8 uVar3; char *pcVar4; int1 auVar5 [16]; int1 auVar6 [16]; int1 auVar7 [16]; int1 auVar8 [16]; int1 auVar9 [16]; int1 auVar10 [16]; int1 auVar11 [16]; int1 auVar12 [16]; int1 auVar13 [16]; int1 auVar14 [16]; int1 auVar15 [16]; int1 auVar16 [16]; int1 auVar17 [16]; int1 auVar18 [16]; int1 auVar19 [16]; int1 auVar20 [16]; uVar3 = 1; if (DAT_001c8f00 == 0) { DAT_001c8f00 = dlopen("libEGL.so.1",1); if (DAT_001c8f00 == 0) { uVar3 = 0; _glfwInputError(0x10006,"EGL: Library not found"); } else { DAT_001c8ee8 = 1; DAT_001c8f08 = dlsym(DAT_001c8f00,"eglGetConfigAttrib"); DAT_001c8f10 = dlsym(DAT_001c8f00,"eglGetConfigs"); DAT_001c8f18 = (code *)dlsym(DAT_001c8f00,"eglGetDisplay"); DAT_001c8f20 = (code *)dlsym(DAT_001c8f00,"eglGetError"); DAT_001c8f28 = (code *)dlsym(DAT_001c8f00,"eglInitialize"); DAT_001c8f30 = dlsym(DAT_001c8f00,"eglTerminate"); DAT_001c8f38 = dlsym(DAT_001c8f00,"eglBindAPI"); DAT_001c8f40 = dlsym(DAT_001c8f00,"eglCreateContext"); DAT_001c8f48 = dlsym(DAT_001c8f00,"eglDestroySurface"); DAT_001c8f50 = dlsym(DAT_001c8f00,"eglDestroyContext"); DAT_001c8f58 = dlsym(DAT_001c8f00,"eglCreateWindowSurface"); DAT_001c8f60 = dlsym(DAT_001c8f00,"eglMakeCurrent"); DAT_001c8f68 = dlsym(DAT_001c8f00,"eglSwapBuffers"); DAT_001c8f70 = dlsym(DAT_001c8f00,"eglSwapInterval"); DAT_001c8f78 = dlsym(DAT_001c8f00,"eglQueryString"); DAT_001c8f80 = dlsym(DAT_001c8f00,"eglGetProcAddress"); auVar16._0_4_ = -(uint)((int)DAT_001c8f38 == 0); auVar16._4_4_ = -(uint)(DAT_001c8f38._4_4_ == 0); auVar16._8_4_ = -(uint)((int)DAT_001c8f40 == 0); auVar16._12_4_ = -(uint)(DAT_001c8f40._4_4_ == 0); auVar19._4_4_ = auVar16._0_4_; auVar19._0_4_ = auVar16._4_4_; auVar19._8_4_ = auVar16._12_4_; auVar19._12_4_ = auVar16._8_4_; auVar13._0_4_ = -(uint)((int)DAT_001c8f28 == 0); auVar13._4_4_ = -(uint)(DAT_001c8f28._4_4_ == 0); auVar13._8_4_ = -(uint)((int)DAT_001c8f30 == 0); auVar13._12_4_ = -(uint)(DAT_001c8f30._4_4_ == 0); auVar17._4_4_ = auVar13._0_4_; auVar17._0_4_ = auVar13._4_4_; auVar17._8_4_ = auVar13._12_4_; auVar17._12_4_ = auVar13._8_4_; auVar18 = packssdw(auVar17 & auVar13,auVar19 & auVar16); auVar10._0_4_ = -(uint)((int)DAT_001c8f18 == 0); auVar10._4_4_ = -(uint)((int)((ulong)DAT_001c8f18 >> 0x20) == 0); auVar10._8_4_ = -(uint)((int)DAT_001c8f20 == 0); auVar10._12_4_ = -(uint)((int)((ulong)DAT_001c8f20 >> 0x20) == 0); auVar20._4_4_ = auVar10._0_4_; auVar20._0_4_ = auVar10._4_4_; auVar20._8_4_ = auVar10._12_4_; auVar20._12_4_ = auVar10._8_4_; auVar14._0_4_ = -(uint)((int)DAT_001c8f08 == 0); auVar14._4_4_ = -(uint)(DAT_001c8f08._4_4_ == 0); auVar14._8_4_ = -(uint)((int)DAT_001c8f10 == 0); auVar14._12_4_ = -(uint)(DAT_001c8f10._4_4_ == 0); auVar11._4_4_ = auVar14._0_4_; auVar11._0_4_ = auVar14._4_4_; auVar11._8_4_ = auVar14._12_4_; auVar11._12_4_ = auVar14._8_4_; auVar12 = packssdw(auVar11 & auVar14,auVar20 & auVar10); auVar13 = packssdw(auVar12,auVar18); auVar7._0_4_ = -(uint)((int)DAT_001c8f58 == 0); auVar7._4_4_ = -(uint)(DAT_001c8f58._4_4_ == 0); auVar7._8_4_ = -(uint)((int)DAT_001c8f60 == 0); auVar7._12_4_ = -(uint)(DAT_001c8f60._4_4_ == 0); auVar15._4_4_ = auVar7._0_4_; auVar15._0_4_ = auVar7._4_4_; auVar15._8_4_ = auVar7._12_4_; auVar15._12_4_ = auVar7._8_4_; auVar9._0_4_ = -(uint)((int)DAT_001c8f48 == 0); auVar9._4_4_ = -(uint)(DAT_001c8f48._4_4_ == 0); auVar9._8_4_ = -(uint)((int)DAT_001c8f50 == 0); auVar9._12_4_ = -(uint)(DAT_001c8f50._4_4_ == 0); auVar8._4_4_ = auVar9._0_4_; auVar8._0_4_ = auVar9._4_4_; auVar8._8_4_ = auVar9._12_4_; auVar8._12_4_ = auVar9._8_4_; auVar9 = packssdw(auVar8 & auVar9,auVar15 & auVar7); auVar18._0_4_ = -(uint)((int)DAT_001c8f68 == 0); auVar18._4_4_ = -(uint)(DAT_001c8f68._4_4_ == 0); auVar18._8_4_ = -(uint)((int)DAT_001c8f70 == 0); auVar18._12_4_ = -(uint)(DAT_001c8f70._4_4_ == 0); auVar6._4_4_ = auVar18._0_4_; auVar6._0_4_ = auVar18._4_4_; auVar6._8_4_ = auVar18._12_4_; auVar6._12_4_ = auVar18._8_4_; auVar12._0_4_ = -(uint)((int)DAT_001c8f78 == 0); auVar12._4_4_ = -(uint)((int)((ulong)DAT_001c8f78 >> 0x20) == 0); auVar12._8_4_ = -(uint)((int)DAT_001c8f80 == 0); auVar12._12_4_ = -(uint)((int)((ulong)DAT_001c8f80 >> 0x20) == 0); auVar5._4_4_ = auVar12._0_4_; auVar5._0_4_ = auVar12._4_4_; auVar5._8_4_ = auVar12._12_4_; auVar5._12_4_ = auVar12._8_4_; auVar12 = packssdw(auVar6 & auVar18,auVar5 & auVar12); auVar12 = packssdw(auVar9,auVar12); auVar12 = packsswb(auVar13,auVar12); if ((((((((((((((((auVar12 >> 7 & (int1 [16])0x1) == (int1 [16])0x0 && (auVar12 >> 0xf & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x17 & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x1f & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x27 & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x2f & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x37 & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x3f & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x47 & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x4f & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x57 & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x5f & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x67 & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x6f & (int1 [16])0x1) == (int1 [16])0x0) && (auVar12 >> 0x77 & (int1 [16])0x1) == (int1 [16])0x0) && -1 < auVar12[0xf]) { DAT_001c8ed8 = (*DAT_001c8f18)(DAT_001c84f8); if (DAT_001c8ed8 == 0) { uVar2 = (*DAT_001c8f20)(); uVar3 = getEGLErrorString(uVar2); pcVar4 = "EGL: Failed to get EGL display: %s"; } else { iVar1 = (*DAT_001c8f28)(DAT_001c8ed8,&DAT_001c8ee0,&DAT_001c8ee4); if (iVar1 != 0) { DAT_001c8eec = extensionSupportedEGL("EGL_KHR_create_context"); DAT_001c8ef0 = extensionSupportedEGL("EGL_KHR_create_context_no_error"); DAT_001c8ef4 = extensionSupportedEGL("EGL_KHR_gl_colorspace"); DAT_001c8ef8 = extensionSupportedEGL("EGL_KHR_get_all_proc_addresses"); DAT_001c8efc = extensionSupportedEGL("EGL_KHR_context_flush_control"); return 1; } uVar2 = (*DAT_001c8f20)(); uVar3 = getEGLErrorString(uVar2); pcVar4 = "EGL: Failed to initialize EGL: %s"; } _glfwInputError(0x10006,pcVar4,uVar3); } else { _glfwInputError(0x10008,"EGL: Failed to load required entry points"); } uVar3 = 0; _glfwTerminateEGL(); } } return uVar3; }
17,686
aggregate_thread_stats(PFS_thread*, PFS_account*, PFS_user*, PFS_host*)
eloqsql/storage/perfschema/pfs_instr.cc
void aggregate_thread_stats(PFS_thread *thread, PFS_account *safe_account, PFS_user *safe_user, PFS_host *safe_host) { if (likely(safe_account != NULL)) { safe_account->m_disconnected_count++; } if (safe_user != NULL) { safe_user->m_disconnected_count++; } if (safe_host != NULL) { safe_host->m_disconnected_count++; } /* There is no global table for connections statistics. */ return; }
O3
cpp
aggregate_thread_stats(PFS_thread*, PFS_account*, PFS_user*, PFS_host*): pushq %rbp movq %rsp, %rbp testq %rsi, %rsi je 0x27793 incq 0xaa0(%rsi) testq %rdx, %rdx je 0x2779f incq 0x980(%rdx) testq %rcx, %rcx je 0x277ab incq 0x8f8(%rcx) popq %rbp retq
_Z22aggregate_thread_statsP10PFS_threadP11PFS_accountP8PFS_userP8PFS_host: push rbp mov rbp, rsp test rsi, rsi jz short loc_27793 inc qword ptr [rsi+0AA0h] loc_27793: test rdx, rdx jz short loc_2779F inc qword ptr [rdx+980h] loc_2779F: test rcx, rcx jz short loc_277AB inc qword ptr [rcx+8F8h] loc_277AB: pop rbp retn
void aggregate_thread_stats(PFS_thread *a1, PFS_account *a2, PFS_user *a3, PFS_host *a4) { if ( a2 ) ++*((_QWORD *)a2 + 340); if ( a3 ) ++*((_QWORD *)a3 + 304); if ( a4 ) ++*((_QWORD *)a4 + 287); }
aggregate_thread_stats: PUSH RBP MOV RBP,RSP TEST RSI,RSI JZ 0x00127793 INC qword ptr [RSI + 0xaa0] LAB_00127793: TEST RDX,RDX JZ 0x0012779f INC qword ptr [RDX + 0x980] LAB_0012779f: TEST RCX,RCX JZ 0x001277ab INC qword ptr [RCX + 0x8f8] LAB_001277ab: POP RBP RET
/* aggregate_thread_stats(PFS_thread*, PFS_account*, PFS_user*, PFS_host*) */ void aggregate_thread_stats (PFS_thread *param_1,PFS_account *param_2,PFS_user *param_3,PFS_host *param_4) { if (param_2 != (PFS_account *)0x0) { *(long *)(param_2 + 0xaa0) = *(long *)(param_2 + 0xaa0) + 1; } if (param_3 != (PFS_user *)0x0) { *(long *)(param_3 + 0x980) = *(long *)(param_3 + 0x980) + 1; } if (param_4 != (PFS_host *)0x0) { *(long *)(param_4 + 0x8f8) = *(long *)(param_4 + 0x8f8) + 1; } return; }
17,687
stbi__pic_info(stbi__context*, int*, int*, int*)
monkey531[P]llama/examples/llava/../../common/stb_image.h
static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp) { int act_comp=0,num_packets=0,chained,dummy; stbi__pic_packet packets[10]; if (!x) x = &dummy; if (!y) y = &dummy; if (!comp) comp = &dummy; if (!stbi__pic_is4(s,"\x53\x80\xF6\x34")) { stbi__rewind(s); return 0; } stbi__skip(s, 88); *x = stbi__get16be(s); *y = stbi__get16be(s); if (stbi__at_eof(s)) { stbi__rewind( s); return 0; } if ( (*x) != 0 && (1 << 28) / (*x) < (*y)) { stbi__rewind( s ); return 0; } stbi__skip(s, 8); do { stbi__pic_packet *packet; if (num_packets==sizeof(packets)/sizeof(packets[0])) return 0; packet = &packets[num_packets++]; chained = stbi__get8(s); packet->size = stbi__get8(s); packet->type = stbi__get8(s); packet->channel = stbi__get8(s); act_comp |= packet->channel; if (stbi__at_eof(s)) { stbi__rewind( s ); return 0; } if (packet->size != 8) { stbi__rewind( s ); return 0; } } while (chained); *comp = (act_comp & 0x10 ? 4 : 3); return 1; }
O3
c
stbi__pic_info(stbi__context*, int*, int*, int*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, (%rsp) movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %r14 leaq 0xc7e9d(%rip), %rsi # 0x10b751 callq 0x3fdf7 testl %eax, %eax je 0x4397e cmpq $0x0, 0x10(%r14) je 0x438f7 movq 0xc0(%r14), %rax movq 0xc8(%r14), %rdx movl %edx, %ecx subl %eax, %ecx cmpl $0x57, %ecx jg 0x438fe movq %rdx, 0xc0(%r14) movq 0x28(%r14), %rdi movl $0x58, %esi subl %ecx, %esi callq *0x18(%r14) jmp 0x43909 movq 0xc0(%r14), %rax addq $0x58, %rax movq %rax, 0xc0(%r14) movq %r14, %rdi callq 0x3de05 movl %eax, %ebp testq %r12, %r12 je 0x4391c movl %ebp, (%r12) movq %r14, %rdi callq 0x3de05 testq %r15, %r15 je 0x4392e movl %eax, (%r15) jmp 0x43930 movl %eax, %ebp cmpq $0x0, 0x10(%r14) je 0x4394a movq 0x28(%r14), %rdi callq *0x20(%r14) testl %eax, %eax je 0x4395a cmpl $0x0, 0x30(%r14) je 0x4397e movq 0xc0(%r14), %rax cmpq 0xc8(%r14), %rax jae 0x4397e movl %ebp, %ecx testq %r12, %r12 je 0x43965 movl (%r12), %ecx testl %ecx, %ecx je 0x4399f movl $0x10000000, %eax # imm = 0x10000000 xorl %edx, %edx idivl %ecx testq %r15, %r15 je 0x4397a movl (%r15), %ebp cmpl %ebp, %eax jge 0x4399f movups 0xd0(%r14), %xmm0 movups %xmm0, 0xc0(%r14) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq cmpq $0x0, 0x10(%r14) je 0x439d5 movq 0xc0(%r14), %rax movq 0xc8(%r14), %rdx movl %edx, %ecx subl %eax, %ecx cmpl $0x7, %ecx jg 0x439dc movq %rdx, 0xc0(%r14) movq 0x28(%r14), %rdi movl $0x8, %esi subl %ecx, %esi callq *0x18(%r14) jmp 0x439e7 movq 0xc0(%r14), %rax addq $0x8, %rax movq %rax, 0xc0(%r14) movl $0xb, %r12d xorl %r15d, %r15d decl %r12d je 0x4398e movq 0xc0(%r14), %rax movq 0xc8(%r14), %rcx cmpq %rcx, %rax jb 0x43a29 cmpl $0x0, 0x30(%r14) je 0x43b18 movq %r14, %rdi callq 0x3c5ff movq 0xc0(%r14), %rax movq 0xc8(%r14), %rcx leaq 0x1(%rax), %rdx movq %rdx, 0xc0(%r14) cmpb $0x0, (%rax) sete %r13b movq %rdx, %rax cmpq %rcx, %rax jb 0x43a64 cmpl $0x0, 0x30(%r14) je 0x43b20 movq %r14, %rdi callq 0x3c5ff movq 0xc0(%r14), %rax movq 0xc8(%r14), %rcx leaq 0x1(%rax), %rdx movq %rdx, 0xc0(%r14) cmpb $0x8, (%rax) sete %bl movq %rdx, %rax cmpq %rcx, %rax jb 0x43a9a cmpl $0x0, 0x30(%r14) je 0x43aa4 movq %r14, %rdi callq 0x3c5ff movq 0xc0(%r14), %rax movq 0xc8(%r14), %rcx incq %rax movq %rax, 0xc0(%r14) cmpq %rcx, %rax jb 0x43abf cmpl $0x0, 0x30(%r14) je 0x43b27 movq %r14, %rdi callq 0x3c5ff movq 0xc0(%r14), %rax leaq 0x1(%rax), %rcx movq %rcx, 0xc0(%r14) movzbl (%rax), %ebp movq %rcx, %rax cmpq $0x0, 0x10(%r14) je 0x43af5 movq 0x28(%r14), %rdi callq *0x20(%r14) testl %eax, %eax je 0x43b02 cmpl $0x0, 0x30(%r14) je 0x4397e movq 0xc0(%r14), %rax cmpq 0xc8(%r14), %rax jae 0x4397e testb %bl, %bl je 0x4397e orl %ebp, %r15d testb %r13b, %r13b je 0x439f0 jmp 0x43b2b movb $0x1, %r13b jmp 0x43a3e xorl %ebx, %ebx jmp 0x43a78 xorl %ebp, %ebp jmp 0x43ad0 movl $0x1, %eax movq (%rsp), %rcx testq %rcx, %rcx je 0x43990 andl $0x10, %r15d cmpl $0x1, %r15d movl $0x4, %edx sbbl $0x0, %edx movl %edx, (%rcx) jmp 0x43990
_ZL14stbi__pic_infoP13stbi__contextPiS1_S1_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov [rsp+38h+var_38], rcx mov r15, rdx mov r12, rsi mov r14, rdi lea rsi, unk_10B751 call _ZL13stbi__pic_is4P13stbi__contextPKc; stbi__pic_is4(stbi__context *,char const*) test eax, eax jz loc_4397E cmp qword ptr [r14+10h], 0 jz short loc_438F7 mov rax, [r14+0C0h] mov rdx, [r14+0C8h] mov ecx, edx sub ecx, eax cmp ecx, 57h ; 'W' jg short loc_438FE mov [r14+0C0h], rdx mov rdi, [r14+28h] mov esi, 58h ; 'X' sub esi, ecx call qword ptr [r14+18h] jmp short loc_43909 loc_438F7: mov rax, [r14+0C0h] loc_438FE: add rax, 58h ; 'X' mov [r14+0C0h], rax loc_43909: mov rdi, r14 call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *) mov ebp, eax test r12, r12 jz short loc_4391C mov [r12], ebp loc_4391C: mov rdi, r14 call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *) test r15, r15 jz short loc_4392E mov [r15], eax jmp short loc_43930 loc_4392E: mov ebp, eax loc_43930: cmp qword ptr [r14+10h], 0 jz short loc_4394A mov rdi, [r14+28h] call qword ptr [r14+20h] test eax, eax jz short loc_4395A cmp dword ptr [r14+30h], 0 jz short loc_4397E loc_4394A: mov rax, [r14+0C0h] cmp rax, [r14+0C8h] jnb short loc_4397E loc_4395A: mov ecx, ebp test r12, r12 jz short loc_43965 mov ecx, [r12] loc_43965: test ecx, ecx jz short loc_4399F mov eax, 10000000h xor edx, edx idiv ecx test r15, r15 jz short loc_4397A mov ebp, [r15] loc_4397A: cmp eax, ebp jge short loc_4399F loc_4397E: movups xmm0, xmmword ptr [r14+0D0h] movups xmmword ptr [r14+0C0h], xmm0 loc_4398E: xor eax, eax loc_43990: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_4399F: cmp qword ptr [r14+10h], 0 jz short loc_439D5 mov rax, [r14+0C0h] mov rdx, [r14+0C8h] mov ecx, edx sub ecx, eax cmp ecx, 7 jg short loc_439DC mov [r14+0C0h], rdx mov rdi, [r14+28h] mov esi, 8 sub esi, ecx call qword ptr [r14+18h] jmp short loc_439E7 loc_439D5: mov rax, [r14+0C0h] loc_439DC: add rax, 8 mov [r14+0C0h], rax loc_439E7: mov r12d, 0Bh xor r15d, r15d loc_439F0: dec r12d jz short loc_4398E mov rax, [r14+0C0h] mov rcx, [r14+0C8h] cmp rax, rcx jb short loc_43A29 cmp dword ptr [r14+30h], 0 jz loc_43B18 mov rdi, r14 call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [r14+0C0h] mov rcx, [r14+0C8h] loc_43A29: lea rdx, [rax+1] mov [r14+0C0h], rdx cmp byte ptr [rax], 0 setz r13b mov rax, rdx loc_43A3E: cmp rax, rcx jb short loc_43A64 cmp dword ptr [r14+30h], 0 jz loc_43B20 mov rdi, r14 call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [r14+0C0h] mov rcx, [r14+0C8h] loc_43A64: lea rdx, [rax+1] mov [r14+0C0h], rdx cmp byte ptr [rax], 8 setz bl mov rax, rdx loc_43A78: cmp rax, rcx jb short loc_43A9A cmp dword ptr [r14+30h], 0 jz short loc_43AA4 mov rdi, r14 call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [r14+0C0h] mov rcx, [r14+0C8h] loc_43A9A: inc rax mov [r14+0C0h], rax loc_43AA4: cmp rax, rcx jb short loc_43ABF cmp dword ptr [r14+30h], 0 jz short loc_43B27 mov rdi, r14 call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [r14+0C0h] loc_43ABF: lea rcx, [rax+1] mov [r14+0C0h], rcx movzx ebp, byte ptr [rax] mov rax, rcx loc_43AD0: cmp qword ptr [r14+10h], 0 jz short loc_43AF5 mov rdi, [r14+28h] call qword ptr [r14+20h] test eax, eax jz short loc_43B02 cmp dword ptr [r14+30h], 0 jz loc_4397E mov rax, [r14+0C0h] loc_43AF5: cmp rax, [r14+0C8h] jnb loc_4397E loc_43B02: test bl, bl jz loc_4397E or r15d, ebp test r13b, r13b jz loc_439F0 jmp short loc_43B2B loc_43B18: mov r13b, 1 jmp loc_43A3E loc_43B20: xor ebx, ebx jmp loc_43A78 loc_43B27: xor ebp, ebp jmp short loc_43AD0 loc_43B2B: mov eax, 1 mov rcx, [rsp+38h+var_38] test rcx, rcx jz loc_43990 and r15d, 10h cmp r15d, 1 mov edx, 4 sbb edx, 0 mov [rcx], edx jmp loc_43990
long long stbi__pic_info(long long a1, int *a2, int *a3, _DWORD *a4) { long long v5; // rax int v6; // ecx int v7; // ebp int v8; // eax int v9; // ecx long long result; // rax long long v11; // rax int v12; // ecx int v13; // r12d char v14; // r15 char *v15; // rax unsigned long long v16; // rcx bool v17; // r13 bool v18; // bl char v19; // bp if ( !(unsigned int)stbi__pic_is4(a1, (long long)&unk_10B751) ) goto LABEL_22; if ( !*(_QWORD *)(a1 + 16) ) { v5 = *(_QWORD *)(a1 + 192); goto LABEL_6; } v5 = *(_QWORD *)(a1 + 192); v6 = *(_QWORD *)(a1 + 200) - v5; if ( v6 > 87 ) { LABEL_6: *(_QWORD *)(a1 + 192) = v5 + 88; goto LABEL_7; } *(_QWORD *)(a1 + 192) = *(_QWORD *)(a1 + 200); (*(void ( **)(_QWORD, _QWORD))(a1 + 24))(*(_QWORD *)(a1 + 40), (unsigned int)(88 - v6)); LABEL_7: v7 = stbi__get16be(a1); if ( a2 ) *a2 = v7; v8 = stbi__get16be(a1); if ( a3 ) *a3 = v8; else v7 = v8; if ( !*(_QWORD *)(a1 + 16) ) goto LABEL_15; if ( !(*(unsigned int ( **)(_QWORD))(a1 + 32))(*(_QWORD *)(a1 + 40)) ) goto LABEL_16; if ( *(_DWORD *)(a1 + 48) ) { LABEL_15: if ( *(_QWORD *)(a1 + 192) < *(_QWORD *)(a1 + 200) ) { LABEL_16: v9 = v7; if ( a2 ) v9 = *a2; if ( v9 ) { if ( a3 ) v7 = *a3; if ( 0x10000000 / v9 < v7 ) goto LABEL_22; } if ( *(_QWORD *)(a1 + 16) ) { v11 = *(_QWORD *)(a1 + 192); v12 = *(_QWORD *)(a1 + 200) - v11; if ( v12 <= 7 ) { *(_QWORD *)(a1 + 192) = *(_QWORD *)(a1 + 200); (*(void ( **)(_QWORD, _QWORD))(a1 + 24))(*(_QWORD *)(a1 + 40), (unsigned int)(8 - v12)); LABEL_30: v13 = 11; v14 = 0; while ( 1 ) { if ( !--v13 ) return 0LL; v15 = *(char **)(a1 + 192); v16 = *(_QWORD *)(a1 + 200); if ( (unsigned long long)v15 < v16 ) goto LABEL_35; if ( *(_DWORD *)(a1 + 48) ) break; v17 = 1; LABEL_36: if ( (unsigned long long)v15 < v16 ) goto LABEL_39; if ( *(_DWORD *)(a1 + 48) ) { stbi__refill_buffer(a1); v15 = *(char **)(a1 + 192); v16 = *(_QWORD *)(a1 + 200); LABEL_39: *(_QWORD *)(a1 + 192) = v15 + 1; v18 = *v15++ == 8; goto LABEL_40; } v18 = 0; LABEL_40: if ( (unsigned long long)v15 >= v16 ) { if ( !*(_DWORD *)(a1 + 48) ) goto LABEL_44; stbi__refill_buffer(a1); v15 = *(char **)(a1 + 192); v16 = *(_QWORD *)(a1 + 200); } *(_QWORD *)(a1 + 192) = ++v15; LABEL_44: if ( (unsigned long long)v15 < v16 ) goto LABEL_47; if ( *(_DWORD *)(a1 + 48) ) { stbi__refill_buffer(a1); v15 = *(char **)(a1 + 192); LABEL_47: *(_QWORD *)(a1 + 192) = v15 + 1; v19 = *v15++; goto LABEL_48; } v19 = 0; LABEL_48: if ( !*(_QWORD *)(a1 + 16) ) goto LABEL_52; if ( (*(unsigned int ( **)(_QWORD))(a1 + 32))(*(_QWORD *)(a1 + 40)) ) { if ( !*(_DWORD *)(a1 + 48) ) goto LABEL_22; v15 = *(char **)(a1 + 192); LABEL_52: if ( (unsigned long long)v15 >= *(_QWORD *)(a1 + 200) ) goto LABEL_22; } if ( !v18 ) goto LABEL_22; v14 |= v19; if ( v17 ) { result = 1LL; if ( a4 ) *a4 = ((v14 & 0x10 | 0x400000000uLL) - 1) >> 32; return result; } } stbi__refill_buffer(a1); v15 = *(char **)(a1 + 192); v16 = *(_QWORD *)(a1 + 200); LABEL_35: *(_QWORD *)(a1 + 192) = v15 + 1; v17 = *v15++ == 0; goto LABEL_36; } } else { v11 = *(_QWORD *)(a1 + 192); } *(_QWORD *)(a1 + 192) = v11 + 8; goto LABEL_30; } } LABEL_22: *(_OWORD *)(a1 + 192) = *(_OWORD *)(a1 + 208); return 0LL; }
stbi__pic_info: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV qword ptr [RSP],RCX MOV R15,RDX MOV R12,RSI MOV R14,RDI LEA RSI,[0x20b751] CALL 0x0013fdf7 TEST EAX,EAX JZ 0x0014397e CMP qword ptr [R14 + 0x10],0x0 JZ 0x001438f7 MOV RAX,qword ptr [R14 + 0xc0] MOV RDX,qword ptr [R14 + 0xc8] MOV ECX,EDX SUB ECX,EAX CMP ECX,0x57 JG 0x001438fe MOV qword ptr [R14 + 0xc0],RDX MOV RDI,qword ptr [R14 + 0x28] MOV ESI,0x58 SUB ESI,ECX CALL qword ptr [R14 + 0x18] JMP 0x00143909 LAB_001438f7: MOV RAX,qword ptr [R14 + 0xc0] LAB_001438fe: ADD RAX,0x58 MOV qword ptr [R14 + 0xc0],RAX LAB_00143909: MOV RDI,R14 CALL 0x0013de05 MOV EBP,EAX TEST R12,R12 JZ 0x0014391c MOV dword ptr [R12],EBP LAB_0014391c: MOV RDI,R14 CALL 0x0013de05 TEST R15,R15 JZ 0x0014392e MOV dword ptr [R15],EAX JMP 0x00143930 LAB_0014392e: MOV EBP,EAX LAB_00143930: CMP qword ptr [R14 + 0x10],0x0 JZ 0x0014394a MOV RDI,qword ptr [R14 + 0x28] CALL qword ptr [R14 + 0x20] TEST EAX,EAX JZ 0x0014395a CMP dword ptr [R14 + 0x30],0x0 JZ 0x0014397e LAB_0014394a: MOV RAX,qword ptr [R14 + 0xc0] CMP RAX,qword ptr [R14 + 0xc8] JNC 0x0014397e LAB_0014395a: MOV ECX,EBP TEST R12,R12 JZ 0x00143965 MOV ECX,dword ptr [R12] LAB_00143965: TEST ECX,ECX JZ 0x0014399f MOV EAX,0x10000000 XOR EDX,EDX IDIV ECX TEST R15,R15 JZ 0x0014397a MOV EBP,dword ptr [R15] LAB_0014397a: CMP EAX,EBP JGE 0x0014399f LAB_0014397e: MOVUPS XMM0,xmmword ptr [R14 + 0xd0] MOVUPS xmmword ptr [R14 + 0xc0],XMM0 LAB_0014398e: XOR EAX,EAX LAB_00143990: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0014399f: CMP qword ptr [R14 + 0x10],0x0 JZ 0x001439d5 MOV RAX,qword ptr [R14 + 0xc0] MOV RDX,qword ptr [R14 + 0xc8] MOV ECX,EDX SUB ECX,EAX CMP ECX,0x7 JG 0x001439dc MOV qword ptr [R14 + 0xc0],RDX MOV RDI,qword ptr [R14 + 0x28] MOV ESI,0x8 SUB ESI,ECX CALL qword ptr [R14 + 0x18] JMP 0x001439e7 LAB_001439d5: MOV RAX,qword ptr [R14 + 0xc0] LAB_001439dc: ADD RAX,0x8 MOV qword ptr [R14 + 0xc0],RAX LAB_001439e7: MOV R12D,0xb XOR R15D,R15D LAB_001439f0: DEC R12D JZ 0x0014398e MOV RAX,qword ptr [R14 + 0xc0] MOV RCX,qword ptr [R14 + 0xc8] CMP RAX,RCX JC 0x00143a29 CMP dword ptr [R14 + 0x30],0x0 JZ 0x00143b18 MOV RDI,R14 CALL 0x0013c5ff MOV RAX,qword ptr [R14 + 0xc0] MOV RCX,qword ptr [R14 + 0xc8] LAB_00143a29: LEA RDX,[RAX + 0x1] MOV qword ptr [R14 + 0xc0],RDX CMP byte ptr [RAX],0x0 SETZ R13B MOV RAX,RDX LAB_00143a3e: CMP RAX,RCX JC 0x00143a64 CMP dword ptr [R14 + 0x30],0x0 JZ 0x00143b20 MOV RDI,R14 CALL 0x0013c5ff MOV RAX,qword ptr [R14 + 0xc0] MOV RCX,qword ptr [R14 + 0xc8] LAB_00143a64: LEA RDX,[RAX + 0x1] MOV qword ptr [R14 + 0xc0],RDX CMP byte ptr [RAX],0x8 SETZ BL MOV RAX,RDX LAB_00143a78: CMP RAX,RCX JC 0x00143a9a CMP dword ptr [R14 + 0x30],0x0 JZ 0x00143aa4 MOV RDI,R14 CALL 0x0013c5ff MOV RAX,qword ptr [R14 + 0xc0] MOV RCX,qword ptr [R14 + 0xc8] LAB_00143a9a: INC RAX MOV qword ptr [R14 + 0xc0],RAX LAB_00143aa4: CMP RAX,RCX JC 0x00143abf CMP dword ptr [R14 + 0x30],0x0 JZ 0x00143b27 MOV RDI,R14 CALL 0x0013c5ff MOV RAX,qword ptr [R14 + 0xc0] LAB_00143abf: LEA RCX,[RAX + 0x1] MOV qword ptr [R14 + 0xc0],RCX MOVZX EBP,byte ptr [RAX] MOV RAX,RCX LAB_00143ad0: CMP qword ptr [R14 + 0x10],0x0 JZ 0x00143af5 MOV RDI,qword ptr [R14 + 0x28] CALL qword ptr [R14 + 0x20] TEST EAX,EAX JZ 0x00143b02 CMP dword ptr [R14 + 0x30],0x0 JZ 0x0014397e MOV RAX,qword ptr [R14 + 0xc0] LAB_00143af5: CMP RAX,qword ptr [R14 + 0xc8] JNC 0x0014397e LAB_00143b02: TEST BL,BL JZ 0x0014397e OR R15D,EBP TEST R13B,R13B JZ 0x001439f0 JMP 0x00143b2b LAB_00143b18: MOV R13B,0x1 JMP 0x00143a3e LAB_00143b20: XOR EBX,EBX JMP 0x00143a78 LAB_00143b27: XOR EBP,EBP JMP 0x00143ad0 LAB_00143b2b: MOV EAX,0x1 MOV RCX,qword ptr [RSP] TEST RCX,RCX JZ 0x00143990 AND R15D,0x10 CMP R15D,0x1 MOV EDX,0x4 SBB EDX,0x0 MOV dword ptr [RCX],EDX JMP 0x00143990
/* stbi__pic_info(stbi__context*, int*, int*, int*) */ int8 stbi__pic_info(stbi__context *param_1,int *param_2,int *param_3,int *param_4) { int iVar1; int iVar2; long lVar3; byte *pbVar4; byte *pbVar5; byte bVar6; byte bVar7; bool bVar8; bool bVar9; iVar1 = stbi__pic_is4(param_1,&DAT_0020b751); if (iVar1 == 0) goto LAB_0014397e; if (*(long *)(param_1 + 0x10) == 0) { lVar3 = *(long *)(param_1 + 0xc0); LAB_001438fe: *(long *)(param_1 + 0xc0) = lVar3 + 0x58; } else { lVar3 = *(long *)(param_1 + 0xc0); iVar1 = (int)*(int8 *)(param_1 + 200) - (int)lVar3; if (0x57 < iVar1) goto LAB_001438fe; *(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 200); (**(code **)(param_1 + 0x18))(*(int8 *)(param_1 + 0x28),0x58 - iVar1); } iVar1 = stbi__get16be(param_1); if (param_2 != (int *)0x0) { *param_2 = iVar1; } iVar2 = stbi__get16be(param_1); if (param_3 != (int *)0x0) { *param_3 = iVar2; iVar2 = iVar1; } if (*(long *)(param_1 + 0x10) == 0) { LAB_0014394a: if (*(ulong *)(param_1 + 200) <= *(ulong *)(param_1 + 0xc0)) goto LAB_0014397e; } else { iVar1 = (**(code **)(param_1 + 0x20))(*(int8 *)(param_1 + 0x28)); if (iVar1 != 0) { if (*(int *)(param_1 + 0x30) == 0) goto LAB_0014397e; goto LAB_0014394a; } } iVar1 = iVar2; if (param_2 != (int *)0x0) { iVar1 = *param_2; } if (iVar1 != 0) { if (param_3 != (int *)0x0) { iVar2 = *param_3; } if ((int)(0x10000000 / (long)iVar1) < iVar2) { LAB_0014397e: *(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 0xd0); *(int8 *)(param_1 + 200) = *(int8 *)(param_1 + 0xd8); return 0; } } if (*(long *)(param_1 + 0x10) == 0) { lVar3 = *(long *)(param_1 + 0xc0); } else { lVar3 = *(long *)(param_1 + 0xc0); iVar1 = (int)*(int8 *)(param_1 + 200) - (int)lVar3; if (iVar1 < 8) { *(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 200); (**(code **)(param_1 + 0x18))(*(int8 *)(param_1 + 0x28),8 - iVar1); goto LAB_001439e7; } } *(long *)(param_1 + 0xc0) = lVar3 + 8; LAB_001439e7: iVar1 = 0xb; bVar7 = 0; do { iVar1 = iVar1 + -1; if (iVar1 == 0) { return 0; } pbVar4 = *(byte **)(param_1 + 0xc0); pbVar5 = *(byte **)(param_1 + 200); if (pbVar4 < pbVar5) { LAB_00143a29: *(byte **)(param_1 + 0xc0) = pbVar4 + 1; bVar8 = *pbVar4 == 0; pbVar4 = pbVar4 + 1; } else { if (*(int *)(param_1 + 0x30) != 0) { stbi__refill_buffer(param_1); pbVar4 = *(byte **)(param_1 + 0xc0); pbVar5 = *(byte **)(param_1 + 200); goto LAB_00143a29; } bVar8 = true; } if (pbVar4 < pbVar5) { LAB_00143a64: *(byte **)(param_1 + 0xc0) = pbVar4 + 1; bVar9 = *pbVar4 == 8; pbVar4 = pbVar4 + 1; } else { if (*(int *)(param_1 + 0x30) != 0) { stbi__refill_buffer(param_1); pbVar4 = *(byte **)(param_1 + 0xc0); pbVar5 = *(byte **)(param_1 + 200); goto LAB_00143a64; } bVar9 = false; } if (pbVar4 < pbVar5) { LAB_00143a9a: pbVar4 = pbVar4 + 1; *(byte **)(param_1 + 0xc0) = pbVar4; } else if (*(int *)(param_1 + 0x30) != 0) { stbi__refill_buffer(param_1); pbVar4 = *(byte **)(param_1 + 0xc0); pbVar5 = *(byte **)(param_1 + 200); goto LAB_00143a9a; } if (pbVar4 < pbVar5) { LAB_00143abf: *(byte **)(param_1 + 0xc0) = pbVar4 + 1; bVar6 = *pbVar4; pbVar4 = pbVar4 + 1; } else { if (*(int *)(param_1 + 0x30) != 0) { stbi__refill_buffer(param_1); pbVar4 = *(byte **)(param_1 + 0xc0); goto LAB_00143abf; } bVar6 = 0; } if (*(long *)(param_1 + 0x10) == 0) { LAB_00143af5: if (*(byte **)(param_1 + 200) <= pbVar4) goto LAB_0014397e; } else { iVar2 = (**(code **)(param_1 + 0x20))(*(int8 *)(param_1 + 0x28)); if (iVar2 != 0) { if (*(int *)(param_1 + 0x30) != 0) { pbVar4 = *(byte **)(param_1 + 0xc0); goto LAB_00143af5; } goto LAB_0014397e; } } if (!bVar9) goto LAB_0014397e; bVar7 = bVar7 | bVar6; if (bVar8) { if (param_4 != (int *)0x0) { *param_4 = 4 - (uint)((bVar7 & 0x10) == 0); } return 1; } } while( true ); }
17,688
ma_keydef_read
eloqsql/storage/maria/ma_open.c
uchar *_ma_keydef_read(uchar *ptr, MARIA_KEYDEF *keydef) { keydef->keysegs = (uint) *ptr++; keydef->key_alg = *ptr++; /* Rtree or Btree */ keydef->flag = mi_uint2korr(ptr); ptr+= 2; keydef->block_length = mi_uint2korr(ptr); ptr+= 2; keydef->keylength = mi_uint2korr(ptr); ptr+= 2; keydef->minlength = mi_uint2korr(ptr); ptr+= 2; keydef->maxlength = mi_uint2korr(ptr); ptr+= 2; keydef->version = 0; /* Not saved */ keydef->parser = &ft_default_parser; keydef->ftkey_nr = 0; return ptr; }
O3
c
ma_keydef_read: pushq %rbp movq %rsp, %rbp movzbl (%rdi), %eax movw %ax, 0xa0(%rsi) movb 0x1(%rdi), %al movb %al, 0xa4(%rsi) movzwl 0x2(%rdi), %eax rolw $0x8, %ax movw %ax, 0xa2(%rsi) movzwl 0x4(%rdi), %eax rolw $0x8, %ax movw %ax, 0xa6(%rsi) movzwl 0x6(%rdi), %eax rolw $0x8, %ax movw %ax, 0xaa(%rsi) movzwl 0x8(%rdi), %eax rolw $0x8, %ax movw %ax, 0xac(%rsi) movzwl 0xa(%rdi), %eax rolw $0x8, %ax movw %ax, 0xae(%rsi) leaq 0xc(%rdi), %rax movq $0x0, 0xb8(%rsi) leaq 0x37cfff(%rip), %rcx # 0x3b7e60 movq %rcx, 0xd0(%rsi) popq %rbp retq
_ma_keydef_read: push rbp mov rbp, rsp movzx eax, byte ptr [rdi] mov [rsi+0A0h], ax mov al, [rdi+1] mov [rsi+0A4h], al movzx eax, word ptr [rdi+2] rol ax, 8 mov [rsi+0A2h], ax movzx eax, word ptr [rdi+4] rol ax, 8 mov [rsi+0A6h], ax movzx eax, word ptr [rdi+6] rol ax, 8 mov [rsi+0AAh], ax movzx eax, word ptr [rdi+8] rol ax, 8 mov [rsi+0ACh], ax movzx eax, word ptr [rdi+0Ah] rol ax, 8 mov [rsi+0AEh], ax lea rax, [rdi+0Ch] mov qword ptr [rsi+0B8h], 0 lea rcx, ft_default_parser mov [rsi+0D0h], rcx pop rbp retn
unsigned __int8 * ma_keydef_read(unsigned __int8 *a1, long long a2) { unsigned __int8 *result; // rax *(_WORD *)(a2 + 160) = *a1; *(_BYTE *)(a2 + 164) = a1[1]; *(_WORD *)(a2 + 162) = __ROL2__(*((_WORD *)a1 + 1), 8); *(_WORD *)(a2 + 166) = __ROL2__(*((_WORD *)a1 + 2), 8); *(_WORD *)(a2 + 170) = __ROL2__(*((_WORD *)a1 + 3), 8); *(_WORD *)(a2 + 172) = __ROL2__(*((_WORD *)a1 + 4), 8); *(_WORD *)(a2 + 174) = __ROL2__(*((_WORD *)a1 + 5), 8); result = a1 + 12; *(_QWORD *)(a2 + 184) = 0LL; *(_QWORD *)(a2 + 208) = &ft_default_parser; return result; }
_ma_keydef_read: PUSH RBP MOV RBP,RSP MOVZX EAX,byte ptr [RDI] MOV word ptr [RSI + 0xa0],AX MOV AL,byte ptr [RDI + 0x1] MOV byte ptr [RSI + 0xa4],AL MOVZX EAX,word ptr [RDI + 0x2] ROL AX,0x8 MOV word ptr [RSI + 0xa2],AX MOVZX EAX,word ptr [RDI + 0x4] ROL AX,0x8 MOV word ptr [RSI + 0xa6],AX MOVZX EAX,word ptr [RDI + 0x6] ROL AX,0x8 MOV word ptr [RSI + 0xaa],AX MOVZX EAX,word ptr [RDI + 0x8] ROL AX,0x8 MOV word ptr [RSI + 0xac],AX MOVZX EAX,word ptr [RDI + 0xa] ROL AX,0x8 MOV word ptr [RSI + 0xae],AX LEA RAX,[RDI + 0xc] MOV qword ptr [RSI + 0xb8],0x0 LEA RCX,[0x4b7e60] MOV qword ptr [RSI + 0xd0],RCX POP RBP RET
byte * _ma_keydef_read(byte *param_1,long param_2) { *(ushort *)(param_2 + 0xa0) = (ushort)*param_1; *(byte *)(param_2 + 0xa4) = param_1[1]; *(ushort *)(param_2 + 0xa2) = *(ushort *)(param_1 + 2) << 8 | *(ushort *)(param_1 + 2) >> 8; *(ushort *)(param_2 + 0xa6) = *(ushort *)(param_1 + 4) << 8 | *(ushort *)(param_1 + 4) >> 8; *(ushort *)(param_2 + 0xaa) = *(ushort *)(param_1 + 6) << 8 | *(ushort *)(param_1 + 6) >> 8; *(ushort *)(param_2 + 0xac) = *(ushort *)(param_1 + 8) << 8 | *(ushort *)(param_1 + 8) >> 8; *(ushort *)(param_2 + 0xae) = *(ushort *)(param_1 + 10) << 8 | *(ushort *)(param_1 + 10) >> 8; *(int8 *)(param_2 + 0xb8) = 0; *(int1 **)(param_2 + 0xd0) = ft_default_parser; return param_1 + 0xc; }
17,689
coro::semaphore::release()
AlayaLite/build_O3/_deps/libcoro-src/src/semaphore.cpp
auto semaphore::release() -> void { // It seems like the atomic counter could be incremented, but then resuming a waiter could have // a race between a new acquirer grabbing the just incremented resource value from us. So its // best to check if there are any waiters first, and transfer owernship of the resource thats // being released directly to the waiter to avoid this problem. std::unique_lock lk{m_waiter_mutex}; if (m_acquire_waiters != nullptr) { acquire_operation* to_resume = m_acquire_waiters; m_acquire_waiters = m_acquire_waiters->m_next; lk.unlock(); // This will transfer ownership of the resource to the resumed waiter. to_resume->m_awaiting_coroutine.resume(); } else { // Normally would be release but within a lock use releaxed. m_counter.fetch_add(1, std::memory_order::relaxed); } }
O3
cpp
coro::semaphore::release(): pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx leaq 0x10(%rdi), %rax leaq 0x8(%rsp), %r14 movq %rax, (%r14) movb $0x0, 0x8(%r14) movq %r14, %rdi callq 0x2e99c movb $0x1, 0x8(%r14) movq 0x38(%rbx), %r14 testq %r14, %r14 je 0xc89c1 movq 0x10(%r14), %rax movq %rax, 0x38(%rbx) leaq 0x8(%rsp), %rdi callq 0x2e9d8 movq 0x8(%r14), %rdi callq *(%rdi) jmp 0xc89c6 lock incq 0x8(%rbx) leaq 0x8(%rsp), %rdi callq 0x2e986 addq $0x18, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x2e986 movq %rbx, %rdi callq 0x17740 nop
_ZN4coro9semaphore7releaseEv: push r14 push rbx sub rsp, 18h mov rbx, rdi lea rax, [rdi+10h] lea r14, [rsp+28h+var_20] mov [r14], rax mov byte ptr [r14+8], 0 mov rdi, r14 call _ZNSt11unique_lockISt5mutexE4lockEv; std::unique_lock<std::mutex>::lock(void) mov byte ptr [r14+8], 1 mov r14, [rbx+38h] test r14, r14 jz short loc_C89C1 mov rax, [r14+10h] mov [rbx+38h], rax lea rdi, [rsp+28h+var_20] call _ZNSt11unique_lockISt5mutexE6unlockEv; std::unique_lock<std::mutex>::unlock(void) mov rdi, [r14+8] call qword ptr [rdi] jmp short loc_C89C6 loc_C89C1: lock inc qword ptr [rbx+8] loc_C89C6: lea rdi, [rsp+28h+var_20] call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock() add rsp, 18h pop rbx pop r14 retn mov rbx, rax lea rdi, [rsp+arg_0] call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock() mov rdi, rbx call __Unwind_Resume
long long coro::semaphore::release(coro::semaphore *this) { long long result; // rax long long v2; // r14 long long v3; // [rsp+8h] [rbp-20h] BYREF char v4; // [rsp+10h] [rbp-18h] v3 = (long long)this + 16; v4 = 0; result = std::unique_lock<std::mutex>::lock(&v3); v4 = 1; v2 = *((_QWORD *)this + 7); if ( v2 ) { *((_QWORD *)this + 7) = *(_QWORD *)(v2 + 16); std::unique_lock<std::mutex>::unlock(&v3); result = (**(long long (***)(void))(v2 + 8))(); } else { _InterlockedIncrement64((volatile signed long long *)this + 1); } std::unique_lock<std::mutex>::~unique_lock((long long)&v3); return result; }
release: PUSH R14 PUSH RBX SUB RSP,0x18 MOV RBX,RDI LEA RAX,[RDI + 0x10] LEA R14,[RSP + 0x8] MOV qword ptr [R14],RAX MOV byte ptr [R14 + 0x8],0x0 MOV RDI,R14 CALL 0x0012e99c MOV byte ptr [R14 + 0x8],0x1 MOV R14,qword ptr [RBX + 0x38] TEST R14,R14 JZ 0x001c89c1 MOV RAX,qword ptr [R14 + 0x10] MOV qword ptr [RBX + 0x38],RAX LAB_001c89af: LEA RDI,[RSP + 0x8] CALL 0x0012e9d8 MOV RDI,qword ptr [R14 + 0x8] CALL qword ptr [RDI] LAB_001c89bf: JMP 0x001c89c6 LAB_001c89c1: INC.LOCK qword ptr [RBX + 0x8] LAB_001c89c6: LEA RDI,[RSP + 0x8] CALL 0x0012e986 ADD RSP,0x18 POP RBX POP R14 RET
/* coro::semaphore::release() */ void __thiscall coro::semaphore::release(semaphore *this) { long lVar1; semaphore *local_20; int1 local_18; local_20 = this + 0x10; local_18 = 0; std::unique_lock<std::mutex>::lock((unique_lock<std::mutex> *)&local_20); local_18 = 1; lVar1 = *(long *)(this + 0x38); if (lVar1 == 0) { LOCK(); *(long *)(this + 8) = *(long *)(this + 8) + 1; UNLOCK(); } else { *(int8 *)(this + 0x38) = *(int8 *)(lVar1 + 0x10); /* try { // try from 001c89af to 001c89be has its CatchHandler @ 001c89d8 */ std::unique_lock<std::mutex>::unlock((unique_lock<std::mutex> *)&local_20); (*(code *)**(int8 **)(lVar1 + 8))(); } std::unique_lock<std::mutex>::~unique_lock((unique_lock<std::mutex> *)&local_20); return; }
17,690
SchemaConverter::_not_strings(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
std::string _not_strings(const std::vector<std::string> & strings) { struct TrieNode { std::map<char, TrieNode> children; bool is_end_of_string; TrieNode() : is_end_of_string(false) {} void insert(const std::string & string) { auto node = this; for (char c : string) { node = &node->children[c]; } node->is_end_of_string = true; } }; TrieNode trie; for (const auto & s : strings) { trie.insert(s); } std::string char_rule = _add_primitive("char", PRIMITIVE_RULES.at("char")); std::ostringstream out; out << "[\"] ( "; std::function<void(const TrieNode &)> visit = [&](const TrieNode & node) { std::ostringstream rejects; auto first = true; for (const auto & kv : node.children) { rejects << kv.first; if (first) { first = false; } else { out << " | "; } out << "[" << kv.first << "]"; if (!kv.second.children.empty()) { out << " ("; visit(kv.second); out << ")"; } else if (kv.second.is_end_of_string) { out << " " << char_rule << "+"; } } if (!node.children.empty()) { if (!first) { out << " | "; } out << "[^\"" << rejects.str() << "] " << char_rule << "*"; } }; visit(trie); out << " )"; if (!trie.is_end_of_string) { out << "?"; } out << " [\"] space"; return out.str(); }
O3
cpp
SchemaConverter::_not_strings(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1f8, %rsp # imm = 0x1F8 movq %rsi, %r12 movq %rdi, %rbx leaq 0x50(%rsp), %rax movl $0x0, (%rax) xorl %ecx, %ecx movq %rcx, 0x8(%rax) movq %rax, 0x10(%rax) movq %rax, 0x18(%rax) movq %rcx, 0x20(%rax) movb $0x0, 0x28(%rax) movq (%rdx), %r14 movq 0x8(%rdx), %r13 cmpq %r13, %r14 je 0xa113b leaq 0x48(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0xa18b2 addq $0x20, %r14 cmpq %r13, %r14 jne 0xa1127 leaq 0x90(%rsp), %r13 movq %r13, -0x10(%r13) movl $0x72616863, %eax # imm = 0x72616863 movl %eax, (%r13) movl $0x4, %ecx movq %rcx, -0x8(%r13) xorl %edx, %edx movb %dl, 0x4(%r13) leaq 0x18(%rsp), %rbp movq %rbp, -0x10(%rbp) movl %eax, (%rbp) movq %rcx, -0x8(%rbp) movb %dl, 0x4(%rbp) leaq 0x3c19f(%rip), %rdi # 0xdd318 leaq 0x8(%rsp), %r14 movq %r14, %rsi callq 0xa542e testq %rax, %rax je 0xa1329 addq $0x28, %rax leaq 0x28(%rsp), %r15 leaq 0x80(%rsp), %rdx movq %r15, %rdi movq %r12, %rsi movq %rax, %rcx callq 0x9ff08 movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0xa11c5 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x80(%rsp), %rdi cmpq %r13, %rdi je 0xa11e2 movq 0x90(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x80(%rsp), %rdi callq 0x18880 leaq 0x10a31(%rip), %rsi # 0xb1c27 leaq 0x80(%rsp), %r12 movl $0x6, %edx movq %r12, %rdi callq 0x18770 movq $0x0, 0x10(%rsp) movl $0x18, %edi callq 0x18690 movq %r12, (%rax) movq %r14, 0x8(%rax) movq %r15, 0x10(%rax) movq %rax, 0x8(%rsp) leaq 0x967(%rip), %rcx # 0xa1b9c movq %rcx, 0x20(%rsp) leaq 0x963(%rip), %rcx # 0xa1ba4 movq %rcx, 0x18(%rsp) leaq 0x48(%rsp), %rsi movq %rax, %rdi callq 0xa1bcc leaq 0x10704(%rip), %rsi # 0xb195e leaq 0x80(%rsp), %rdi movl $0x2, %edx callq 0x18770 cmpb $0x0, 0x78(%rsp) jne 0xa128c leaq 0x10812(%rip), %rsi # 0xb1a8c leaq 0x80(%rsp), %rdi movl $0x1, %edx callq 0x18770 leaq 0x1099b(%rip), %rsi # 0xb1c2e leaq 0x80(%rsp), %rdi movl $0xa, %edx callq 0x18770 leaq 0x88(%rsp), %rsi movq %rbx, %rdi callq 0x18a40 movq 0x18(%rsp), %rax testq %rax, %rax je 0xa12ce leaq 0x8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x3acb3(%rip), %rsi # 0xdbf88 leaq 0x80(%rsp), %rdi callq 0x183a0 leaq 0xf0(%rsp), %rdi callq 0x18200 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xa130a movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x48(%rsp), %rdi callq 0xa1ece movq %rbx, %rax addq $0x1f8, %rsp # imm = 0x1F8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x108a1(%rip), %rdi # 0xb1bd1 callq 0x18980 jmp 0xa13d1 jmp 0xa133c movq %rax, %rbx jmp 0xa1393 movq %rax, %rbx jmp 0xa13b4 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0xa1360 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x80(%rsp), %rdi cmpq %r13, %rdi je 0xa13dc movq 0x90(%rsp), %rsi jmp 0xa13c7 movq %rax, %rbx movq 0x18(%rsp), %rax testq %rax, %rax je 0xa1393 leaq 0x8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x3abee(%rip), %rsi # 0xdbf88 leaq 0x80(%rsp), %rdi callq 0x183a0 leaq 0xf0(%rsp), %rdi callq 0x18200 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xa13dc movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0xa13dc movq %rax, %rdi callq 0x29f9b movq %rax, %rbx leaq 0x48(%rsp), %rdi callq 0xa1ece movq %rbx, %rdi callq 0x18ba0
_ZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1F8h mov r12, rsi mov rbx, rdi lea rax, [rsp+228h+var_1D8] mov dword ptr [rax], 0 xor ecx, ecx mov [rax+8], rcx mov [rax+10h], rax mov [rax+18h], rax mov [rax+20h], rcx mov byte ptr [rax+28h], 0 mov r14, [rdx] mov r13, [rdx+8] cmp r14, r13 jz short loc_A113B lea r15, [rsp+228h+var_1E0] loc_A1127: mov rdi, r15 mov rsi, r14 call _ZZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEEN8TrieNode6insertERKS6_; SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode::insert(std::string const&) add r14, 20h ; ' ' cmp r14, r13 jnz short loc_A1127 loc_A113B: lea r13, [rsp+228h+var_198] mov [r13-10h], r13 mov eax, 72616863h mov [r13+0], eax mov ecx, 4 mov [r13-8], rcx xor edx, edx mov [r13+4], dl lea rbp, [rsp+228h+var_210] mov [rbp-10h], rbp mov [rbp+0], eax mov [rbp-8], rcx mov [rbp+4], dl lea rdi, _Z15PRIMITIVE_RULESB5cxx11; PRIMITIVE_RULES lea r14, [rsp+228h+var_220] mov rsi, r14 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_11BuiltinRuleESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&) test rax, rax jz loc_A1329 add rax, 28h ; '(' lea r15, [rsp+228h+var_200] lea rdx, [rsp+228h+var_1A8]; int mov rdi, r15; int mov rsi, r12; int mov rcx, rax; int call _ZN15SchemaConverter14_add_primitiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK11BuiltinRule; SchemaConverter::_add_primitive(std::string const&,BuiltinRule const&) mov rdi, [rsp+228h+var_220]; void * cmp rdi, rbp jz short loc_A11C5 mov rsi, [rsp+228h+var_210] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A11C5: mov rdi, [rsp+228h+var_1A8]; void * cmp rdi, r13 jz short loc_A11E2 mov rsi, [rsp+228h+var_198] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A11E2: lea rdi, [rsp+228h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) lea rsi, asc_B1C27; "[\"] ( " lea r12, [rsp+228h+var_1A8] mov edx, 6 mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov [rsp+228h+var_218], 0 mov edi, 18h; unsigned __int64 call __Znwm; operator new(ulong) mov [rax], r12 mov [rax+8], r14 mov [rax+10h], r15 mov [rsp+228h+var_220], rax lea rcx, _ZNSt17_Function_handlerIFvRKZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE8TrieNodeEZNS0_12_not_stringsESB_EUlSE_E_E9_M_invokeERKSt9_Any_dataSE_; std::_Function_handler<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&),SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}>::_M_invoke(std::_Any_data const&,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&) mov [rsp+228h+var_208], rcx lea rcx, _ZNSt17_Function_handlerIFvRKZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE8TrieNodeEZNS0_12_not_stringsESB_EUlSE_E_E10_M_managerERSt9_Any_dataRKSI_St18_Manager_operation; std::_Function_handler<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&),SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rsp+228h+var_210], rcx lea rsi, [rsp+228h+var_1E0] mov rdi, rax call _ZZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEENKUlRKZNS_12_not_stringsESA_E8TrieNodeE_clESD_; SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}::operator()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&) lea rsi, a09401910201912+50h; " )" lea rdi, [rsp+228h+var_1A8] mov edx, 2 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) cmp [rsp+228h+var_1B0], 0 jnz short loc_A128C lea rsi, asc_B1A89+3; "?" lea rdi, [rsp+228h+var_1A8] mov edx, 1 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_A128C: lea rsi, aSpace_6; " [\"] space" lea rdi, [rsp+228h+var_1A8] mov edx, 0Ah call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, [rsp+228h+var_1A0] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rax, [rsp+228h+var_210] test rax, rax jz short loc_A12CE lea rdi, [rsp+228h+var_220] mov rsi, rdi mov edx, 3 call rax loc_A12CE: mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+228h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+228h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() lea rax, [rsp+228h+var_1F0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_A130A mov rsi, [rsp+228h+var_1F0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A130A: lea rdi, [rsp+228h+var_1E0] call _ZNSt8_Rb_treeIcSt4pairIKcZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEE8TrieNodeESt10_Select1stISF_ESt4lessIcESaISF_EED2Ev; std::_Rb_tree<char,std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>,std::_Select1st<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::~_Rb_tree() mov rax, rbx add rsp, 1F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_A1329: lea rdi, aMapBaseAt; "_Map_base::at" call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*) jmp loc_A13D1 jmp short $+2 loc_A133C: mov rbx, rax jmp short loc_A1393 mov rbx, rax jmp short loc_A13B4 mov rbx, rax mov rdi, [rsp+228h+var_220]; void * cmp rdi, rbp jz short loc_A1360 mov rsi, [rsp+228h+var_210] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A1360: mov rdi, [rsp+228h+var_1A8] cmp rdi, r13 jz short loc_A13DC mov rsi, [rsp+228h+var_198] jmp short loc_A13C7 mov rbx, rax mov rax, [rsp+228h+var_210] test rax, rax jz short loc_A1393 lea rdi, [rsp+228h+var_220] mov rsi, rdi mov edx, 3 call rax loc_A1393: mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+228h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+228h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() loc_A13B4: lea rax, [rsp+228h+var_1F0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_A13DC mov rsi, [rsp+228h+var_1F0] loc_A13C7: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_A13DC loc_A13D1: mov rdi, rax call __clang_call_terminate mov rbx, rax loc_A13DC: lea rdi, [rsp+228h+var_1E0] call _ZNSt8_Rb_treeIcSt4pairIKcZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEE8TrieNodeESt10_Select1stISF_ESt4lessIcESaISF_EED2Ev; std::_Rb_tree<char,std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>,std::_Select1st<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::~_Rb_tree() mov rdi, rbx call __Unwind_Resume
long long SchemaConverter::_not_strings(long long a1, long long a2, long long *a3) { long long v3; // r14 long long v4; // r13 long long v5; // rax void ***v6; // rax void *v8; // [rsp+8h] [rbp-220h] BYREF long long v9; // [rsp+10h] [rbp-218h] _QWORD v10[2]; // [rsp+18h] [rbp-210h] BYREF int v11[4]; // [rsp+28h] [rbp-200h] BYREF long long v12; // [rsp+38h] [rbp-1F0h] BYREF _BYTE v13[8]; // [rsp+48h] [rbp-1E0h] BYREF int v14; // [rsp+50h] [rbp-1D8h] BYREF long long v15; // [rsp+58h] [rbp-1D0h] int *v16; // [rsp+60h] [rbp-1C8h] int *v17; // [rsp+68h] [rbp-1C0h] long long v18; // [rsp+70h] [rbp-1B8h] char v19; // [rsp+78h] [rbp-1B0h] void *v20; // [rsp+80h] [rbp-1A8h] BYREF long long v21; // [rsp+88h] [rbp-1A0h] BYREF char v22[96]; // [rsp+90h] [rbp-198h] BYREF _BYTE v23[312]; // [rsp+F0h] [rbp-138h] BYREF v14 = 0; v15 = 0LL; v16 = &v14; v17 = &v14; v18 = 0LL; v19 = 0; v3 = *a3; v4 = a3[1]; if ( *a3 != v4 ) { do { SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode::insert(v13, v3); v3 += 32LL; } while ( v3 != v4 ); } v20 = v22; strcpy(v22, "char"); v21 = 4LL; v8 = v10; strcpy((char *)v10, "char"); v9 = 4LL; v5 = std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find( PRIMITIVE_RULES[abi:cxx11], &v8); if ( !v5 ) std::__throw_out_of_range("_Map_base::at"); SchemaConverter::_add_primitive((long long)v11, a2, (long long)&v20, (_QWORD *)(v5 + 40)); if ( v8 != v10 ) operator delete(v8, v10[0] + 1LL); if ( v20 != v22 ) operator delete(v20, *(_QWORD *)v22 + 1LL); std::ostringstream::basic_ostringstream(&v20); std::__ostream_insert<char,std::char_traits<char>>(&v20, "[\"] ( ", 6LL); v9 = 0LL; v6 = (void ***)operator new(0x18uLL); *v6 = &v20; v6[1] = &v8; v6[2] = (void **)v11; v8 = v6; v10[1] = std::_Function_handler<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&),SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}>::_M_invoke; v10[0] = std::_Function_handler<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&),SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}>::_M_manager; SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}::operator()( v6, v13); std::__ostream_insert<char,std::char_traits<char>>(&v20, " )", 2LL); if ( !v19 ) std::__ostream_insert<char,std::char_traits<char>>(&v20, "?", 1LL); std::__ostream_insert<char,std::char_traits<char>>(&v20, " [\"] space", 10LL); std::stringbuf::str(a1, &v21); if ( v10[0] ) ((void ( *)(void **, void **, long long))v10[0])(&v8, &v8, 3LL); std::ostringstream::~ostringstream(&v20, &`VTT for'std::ostringstream); std::ios_base::~ios_base((std::ios_base *)v23); if ( *(long long **)v11 != &v12 ) operator delete(*(void **)v11, v12 + 1); std::_Rb_tree<char,std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>,std::_Select1st<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::~_Rb_tree(v13); return a1; }
_not_strings: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1f8 MOV R12,RSI MOV RBX,RDI LEA RAX,[RSP + 0x50] MOV dword ptr [RAX],0x0 XOR ECX,ECX MOV qword ptr [RAX + 0x8],RCX MOV qword ptr [RAX + 0x10],RAX MOV qword ptr [RAX + 0x18],RAX MOV qword ptr [RAX + 0x20],RCX MOV byte ptr [RAX + 0x28],0x0 MOV R14,qword ptr [RDX] MOV R13,qword ptr [RDX + 0x8] CMP R14,R13 JZ 0x001a113b LEA R15,[RSP + 0x48] LAB_001a1127: MOV RDI,R15 MOV RSI,R14 CALL 0x001a18b2 ADD R14,0x20 CMP R14,R13 JNZ 0x001a1127 LAB_001a113b: LEA R13,[RSP + 0x90] MOV qword ptr [R13 + -0x10],R13 MOV EAX,0x72616863 MOV dword ptr [R13],EAX MOV ECX,0x4 MOV qword ptr [R13 + -0x8],RCX XOR EDX,EDX MOV byte ptr [R13 + 0x4],DL LEA RBP,[RSP + 0x18] MOV qword ptr [RBP + -0x10],RBP MOV dword ptr [RBP],EAX MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RBP + 0x4],DL LAB_001a1172: LEA RDI,[0x1dd318] LEA R14,[RSP + 0x8] MOV RSI,R14 CALL 0x001a542e TEST RAX,RAX JZ 0x001a1329 ADD RAX,0x28 LEA R15,[RSP + 0x28] LEA RDX,[RSP + 0x80] MOV RDI,R15 MOV RSI,R12 MOV RCX,RAX CALL 0x0019ff08 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBP JZ 0x001a11c5 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_001a11c5: MOV RDI,qword ptr [RSP + 0x80] CMP RDI,R13 JZ 0x001a11e2 MOV RSI,qword ptr [RSP + 0x90] INC RSI CALL 0x001186a0 LAB_001a11e2: LEA RDI,[RSP + 0x80] CALL 0x00118880 LAB_001a11ef: LEA RSI,[0x1b1c27] LEA R12,[RSP + 0x80] MOV EDX,0x6 MOV RDI,R12 CALL 0x00118770 MOV qword ptr [RSP + 0x10],0x0 LAB_001a1214: MOV EDI,0x18 CALL 0x00118690 MOV qword ptr [RAX],R12 MOV qword ptr [RAX + 0x8],R14 MOV qword ptr [RAX + 0x10],R15 MOV qword ptr [RSP + 0x8],RAX LEA RCX,[0x1a1b9c] MOV qword ptr [RSP + 0x20],RCX LEA RCX,[0x1a1ba4] MOV qword ptr [RSP + 0x18],RCX LAB_001a1246: LEA RSI,[RSP + 0x48] MOV RDI,RAX CALL 0x001a1bcc LEA RSI,[0x1b195e] LEA RDI,[RSP + 0x80] MOV EDX,0x2 CALL 0x00118770 CMP byte ptr [RSP + 0x78],0x0 JNZ 0x001a128c LEA RSI,[0x1b1a8c] LEA RDI,[RSP + 0x80] MOV EDX,0x1 CALL 0x00118770 LAB_001a128c: LEA RSI,[0x1b1c2e] LEA RDI,[RSP + 0x80] MOV EDX,0xa CALL 0x00118770 LEA RSI,[RSP + 0x88] MOV RDI,RBX CALL 0x00118a40 MOV RAX,qword ptr [RSP + 0x18] TEST RAX,RAX JZ 0x001a12ce LAB_001a12bf: LEA RDI,[RSP + 0x8] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001a12ce: MOV RSI,qword ptr [0x001dbf88] LEA RDI,[RSP + 0x80] CALL 0x001183a0 LEA RDI,[RSP + 0xf0] CALL 0x00118200 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001a130a MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001186a0 LAB_001a130a: LEA RDI,[RSP + 0x48] CALL 0x001a1ece MOV RAX,RBX ADD RSP,0x1f8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001a1329: LEA RDI,[0x1b1bd1] CALL 0x00118980 LAB_001a1335: JMP 0x001a13d1 LAB_001a13d1: MOV RDI,RAX CALL 0x00129f9b
/* SchemaConverter::_not_strings(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&) */ vector * SchemaConverter::_not_strings(vector *param_1) { long lVar1; int8 uVar2; long *in_RDX; BuiltinRule *in_RSI; long lVar3; _lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *local_220; int8 local_218; code *local_210; code *local_208; long *local_200 [2]; long local_1f0 [2]; TrieNode local_1e0 [8]; int4 local_1d8 [2]; int8 local_1d0; int4 *local_1c8; int4 *local_1c0; int8 local_1b8; char local_1b0; int4 *local_1a8; int8 local_1a0; int4 local_198; uint uStack_194; ios_base local_138 [264]; local_1c8 = local_1d8; local_1d8[0] = 0; local_1d0 = 0; local_1b8 = 0; local_1b0 = '\0'; lVar3 = *in_RDX; lVar1 = in_RDX[1]; local_1c0 = local_1c8; if (lVar3 != lVar1) { do { /* try { // try from 001a1127 to 001a1131 has its CatchHandler @ 001a13d9 */ _not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&):: TrieNode::insert(std::__cxx11::string_const__(local_1e0,lVar3); lVar3 = lVar3 + 0x20; } while (lVar3 != lVar1); } local_198 = 0x72616863; local_1a0 = 4; uStack_194 = uStack_194 & 0xffffff00; local_218 = 4; local_210 = (code *)CONCAT35(local_210._5_3_,0x72616863); /* try { // try from 001a1172 to 001a11ad has its CatchHandler @ 001a1346 */ local_220 = (_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *)&local_210; local_1a8 = &local_198; lVar3 = std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::find((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> *)PRIMITIVE_RULES_abi_cxx11_,(string *)&local_220); if (lVar3 != 0) { _add_primitive((string *)local_200,in_RSI); if (local_220 != (_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *)&local_210) { operator_delete(local_220,(ulong)(local_210 + 1)); } if (local_1a8 != &local_198) { operator_delete(local_1a8,CONCAT44(uStack_194,local_198) + 1); } /* try { // try from 001a11e2 to 001a11ee has its CatchHandler @ 001a1341 */ std::__cxx11::ostringstream::ostringstream((ostringstream *)&local_1a8); /* try { // try from 001a11ef to 001a120a has its CatchHandler @ 001a133c */ std::__ostream_insert<char,std::char_traits<char>>((ostream *)&local_1a8,"[\"] ( ",6); local_218 = 0; /* try { // try from 001a1214 to 001a121d has its CatchHandler @ 001a133a */ local_220 = (_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *)operator_new(0x18); *(ostream **)local_220 = (ostream *)&local_1a8; *(string **)(local_220 + 8) = (string *)&local_220; *(string **)(local_220 + 0x10) = (string *)local_200; local_208 = std:: _Function_handler<void(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&),SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)#1}> ::_M_invoke; local_210 = std:: _Function_handler<void(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&),SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)#1}> ::_M_manager; /* try { // try from 001a1246 to 001a12b4 has its CatchHandler @ 001a1377 */ _not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&):: {lambda(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)#1} ::operator()(local_220,local_1e0); std::__ostream_insert<char,std::char_traits<char>>((ostream *)&local_1a8," )",2); if (local_1b0 == '\0') { std::__ostream_insert<char,std::char_traits<char>>((ostream *)&local_1a8,"?",1); } std::__ostream_insert<char,std::char_traits<char>>((ostream *)&local_1a8," [\"] space",10); std::__cxx11::stringbuf::str(); if (local_210 != (code *)0x0) { /* try { // try from 001a12bf to 001a12cd has its CatchHandler @ 001a1335 */ (*local_210)(&local_220,&local_220,3); } std::__cxx11::ostringstream::~ostringstream((ostringstream *)&local_1a8); std::ios_base::~ios_base(local_138); if (local_200[0] != local_1f0) { operator_delete(local_200[0],local_1f0[0] + 1); } std:: _Rb_tree<char,std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>,std::_Select1st<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>> ::~_Rb_tree((_Rb_tree<char,std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>,std::_Select1st<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>> *)local_1e0); return param_1; } /* try { // try from 001a1329 to 001a1334 has its CatchHandler @ 001a1346 */ uVar2 = std::__throw_out_of_range("_Map_base::at"); /* catch(type#1 @ 00000000) { ... } // from try @ 001a12bf with catch @ 001a1335 */ /* catch(type#1 @ 00000000) { ... } // from try @ 001a1384 with catch @ 001a13d1 */ /* WARNING: Subroutine does not return */ __clang_call_terminate(uVar2); }
17,691
my_wc_mb_euc_kr
eloqsql/strings/ctype-euc_kr.c
static int my_wc_mb_euc_kr(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { int code; if (s >= e) return MY_CS_TOOSMALL; if ((uint) wc < 0x80) { s[0]= (uchar) wc; return 1; } if (!(code=func_uni_ksc5601_onechar(wc))) return MY_CS_ILUNI; if (s+2>e) return MY_CS_TOOSMALL2; s[0]=code>>8; s[1]=code&0xFF; return 2; }
O0
c
my_wc_mb_euc_kr: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x3944b movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x394c4 movq -0x18(%rbp), %rax cmpl $0x80, %eax jae 0x3946b movq -0x18(%rbp), %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl $0x1, -0x4(%rbp) jmp 0x394c4 movq -0x18(%rbp), %rax movl %eax, %edi callq 0x397f0 movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0x39487 movl $0x0, -0x4(%rbp) jmp 0x394c4 movq -0x20(%rbp), %rax addq $0x2, %rax cmpq -0x28(%rbp), %rax jbe 0x3949e movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A jmp 0x394c4 movl -0x2c(%rbp), %eax sarl $0x8, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl -0x2c(%rbp), %eax andl $0xff, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x1(%rax) movl $0x2, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax)
my_wc_mb_euc_kr: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_3944B mov [rbp+var_4], 0FFFFFF9Bh jmp short loc_394C4 loc_3944B: mov rax, [rbp+var_18] cmp eax, 80h jnb short loc_3946B mov rax, [rbp+var_18] mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov [rbp+var_4], 1 jmp short loc_394C4 loc_3946B: mov rax, [rbp+var_18] mov edi, eax call func_uni_ksc5601_onechar mov [rbp+var_2C], eax cmp eax, 0 jnz short loc_39487 mov [rbp+var_4], 0 jmp short loc_394C4 loc_39487: mov rax, [rbp+var_20] add rax, 2 cmp rax, [rbp+var_28] jbe short loc_3949E mov [rbp+var_4], 0FFFFFF9Ah jmp short loc_394C4 loc_3949E: mov eax, [rbp+var_2C] sar eax, 8 mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov eax, [rbp+var_2C] and eax, 0FFh mov cl, al mov rax, [rbp+var_20] mov [rax+1], cl mov [rbp+var_4], 2 loc_394C4: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long my_wc_mb_euc_kr(long long a1, unsigned int a2, _BYTE *a3, unsigned long long a4) { int v5; // [rsp+4h] [rbp-2Ch] if ( (unsigned long long)a3 < a4 ) { if ( a2 >= 0x80 ) { v5 = func_uni_ksc5601_onechar(a2); if ( v5 ) { if ( (unsigned long long)(a3 + 2) <= a4 ) { *a3 = BYTE1(v5); a3[1] = v5; return 2; } else { return (unsigned int)-102; } } else { return 0; } } else { *a3 = a2; return 1; } } else { return (unsigned int)-101; } }
my_wc_mb_euc_kr: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x0013944b MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x001394c4 LAB_0013944b: MOV RAX,qword ptr [RBP + -0x18] CMP EAX,0x80 JNC 0x0013946b MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x1 JMP 0x001394c4 LAB_0013946b: MOV RAX,qword ptr [RBP + -0x18] MOV EDI,EAX CALL 0x001397f0 MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x00139487 MOV dword ptr [RBP + -0x4],0x0 JMP 0x001394c4 LAB_00139487: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x28] JBE 0x0013949e MOV dword ptr [RBP + -0x4],0xffffff9a JMP 0x001394c4 LAB_0013949e: MOV EAX,dword ptr [RBP + -0x2c] SAR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV EAX,dword ptr [RBP + -0x2c] AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x1],CL MOV dword ptr [RBP + -0x4],0x2 LAB_001394c4: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 my_wc_mb_euc_kr(int8 param_1,uint param_2,int1 *param_3,int1 *param_4) { int iVar1; int4 local_c; if (param_3 < param_4) { if (param_2 < 0x80) { *param_3 = (char)param_2; local_c = 1; } else { iVar1 = func_uni_ksc5601_onechar(param_2); if (iVar1 == 0) { local_c = 0; } else if (param_4 < param_3 + 2) { local_c = 0xffffff9a; } else { *param_3 = (char)((uint)iVar1 >> 8); param_3[1] = (char)iVar1; local_c = 2; } } } else { local_c = 0xffffff9b; } return local_c; }
17,692
mult
eloqsql/strings/dtoa.c
static Bigint *mult(Bigint *a, Bigint *b, Stack_alloc *alloc) { Bigint *c; int k, wa, wb, wc; ULong *x, *xa, *xae, *xb, *xbe, *xc, *xc0; ULong y; ULLong carry, z; if (a->wds < b->wds) { c= a; a= b; b= c; } k= a->k; wa= a->wds; wb= b->wds; wc= wa + wb; if (wc > a->maxwds) k++; c= Balloc(k, alloc); for (x= c->p.x, xa= x + wc; x < xa; x++) *x= 0; xa= a->p.x; xae= xa + wa; xb= b->p.x; xbe= xb + wb; xc0= c->p.x; for (; xb < xbe; xc0++) { if ((y= *xb++)) { x= xa; xc= xc0; carry= 0; do { z= *x++ * (ULLong)y + *xc + carry; carry= z >> 32; *xc++= (ULong) (z & FFFFFFFF); } while (x < xae); *xc= (ULong) carry; } } for (xc0= c->p.x, xc= xc0 + wc; wc > 0 && !*--xc; --wc) ; c->wds= wc; return c; }
O3
c
mult: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r14 movl 0x14(%rdi), %eax cmpl 0x14(%rsi), %eax movq %rsi, %r12 cmovlq %rdi, %r12 cmovlq %rsi, %r14 movslq 0x14(%r14), %rax movslq 0x14(%r12), %r13 movq %rax, -0x30(%rbp) leaq (%rax,%r13), %r15 xorl %edi, %edi cmpl 0xc(%r14), %r15d setg %dil addl 0x8(%r14), %edi movq %rdx, %rsi callq 0x38f30 movq %rax, %rbx movq (%rax), %rdi testl %r15d, %r15d jle 0x39285 leaq (%rdi,%r15,4), %rax leaq 0x4(%rdi), %rcx cmpq %rcx, %rax cmovaq %rax, %rcx movq %rdi, %rdx notq %rdx addq %rcx, %rdx andq $-0x4, %rdx addq $0x4, %rdx xorl %esi, %esi callq 0x25180 movq (%rbx), %rdi testl %r13d, %r13d jle 0x392ed movq (%r14), %rax movq -0x30(%rbp), %rcx leaq (%rax,%rcx,4), %rcx movq (%r12), %rdx leaq (%rdx,%r13,4), %rsi movl (%rdx), %r8d testq %r8, %r8 je 0x392dd xorl %r9d, %r9d xorl %r10d, %r10d leaq (%rax,%r9), %r11 addq $0x4, %r11 movl -0x4(%r11), %r14d imulq %r8, %r14 movl (%rdi,%r9), %r12d addq %r10, %r12 addq %r14, %r12 movq %r12, %r10 shrq $0x20, %r10 movl %r12d, (%rdi,%r9) addq $0x4, %r9 cmpq %rcx, %r11 jb 0x392ab movl %r10d, (%rdi,%r9) addq $0x4, %rdx addq $0x4, %rdi cmpq %rsi, %rdx jb 0x3929d movq (%rbx), %rdi testl %r15d, %r15d jle 0x39313 leaq (%rdi,%r15,4), %rax addq $-0x4, %rax cmpl $0x0, (%rax) jne 0x39313 leal -0x1(%r15), %ecx addq $-0x4, %rax cmpl $0x1, %r15d movl %ecx, %r15d jg 0x392fa xorl %r15d, %r15d movl %r15d, 0x14(%rbx) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
mult: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rdi mov eax, [rdi+14h] cmp eax, [rsi+14h] mov r12, rsi cmovl r12, rdi cmovl r14, rsi movsxd rax, dword ptr [r14+14h] movsxd r13, dword ptr [r12+14h] mov [rbp+var_30], rax lea r15, [rax+r13] xor edi, edi cmp r15d, [r14+0Ch] setnle dil add edi, [r14+8] mov rsi, rdx call Balloc mov rbx, rax mov rdi, [rax] test r15d, r15d jle short loc_39285 lea rax, [rdi+r15*4] lea rcx, [rdi+4] cmp rax, rcx cmova rcx, rax mov rdx, rdi not rdx add rdx, rcx and rdx, 0FFFFFFFFFFFFFFFCh add rdx, 4 xor esi, esi call _memset mov rdi, [rbx] loc_39285: test r13d, r13d jle short loc_392ED mov rax, [r14] mov rcx, [rbp+var_30] lea rcx, [rax+rcx*4] mov rdx, [r12] lea rsi, [rdx+r13*4] loc_3929D: mov r8d, [rdx] test r8, r8 jz short loc_392DD xor r9d, r9d xor r10d, r10d loc_392AB: lea r11, [rax+r9] add r11, 4 mov r14d, [r11-4] imul r14, r8 mov r12d, [rdi+r9] add r12, r10 add r12, r14 mov r10, r12 shr r10, 20h mov [rdi+r9], r12d add r9, 4 cmp r11, rcx jb short loc_392AB mov [rdi+r9], r10d loc_392DD: add rdx, 4 add rdi, 4 cmp rdx, rsi jb short loc_3929D mov rdi, [rbx] loc_392ED: test r15d, r15d jle short loc_39313 lea rax, [rdi+r15*4] add rax, 0FFFFFFFFFFFFFFFCh loc_392FA: cmp dword ptr [rax], 0 jnz short loc_39313 lea ecx, [r15-1] add rax, 0FFFFFFFFFFFFFFFCh cmp r15d, 1 mov r15d, ecx jg short loc_392FA xor r15d, r15d loc_39313: mov [rbx+14h], r15d mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mult(long long *a1, long long *a2, long long a3) { long long *v3; // r14 long long *v4; // r12 long long v5; // r13 long long v6; // r15 long long v7; // rbx long long v8; // rdi long long v9; // rcx long long v10; // rax unsigned long long v11; // rcx _DWORD *v12; // rdx unsigned long long v13; // rsi long long v14; // r8 long long v15; // r9 unsigned long long v16; // r10 unsigned long long v17; // r11 unsigned long long v18; // r12 _DWORD *v19; // rax bool v20; // cc long long v22; // [rsp+0h] [rbp-30h] v3 = a1; v4 = a2; if ( *((_DWORD *)a1 + 5) < *((_DWORD *)a2 + 5) ) { v4 = a1; v3 = a2; } v5 = *((int *)v4 + 5); v22 = *((int *)v3 + 5); v6 = v22 + v5; v7 = Balloc(*((_DWORD *)v3 + 2) + (unsigned int)((int)v22 + (int)v5 > *((_DWORD *)v3 + 3)), a3); v8 = *(_QWORD *)v7; if ( (int)v22 + (int)v5 > 0 ) { v9 = v8 + 4; if ( v8 + 4 * v6 > (unsigned long long)(v8 + 4) ) v9 = v8 + 4 * v6; memset(v8, 0LL, ((v9 + ~v8) & 0xFFFFFFFFFFFFFFFCLL) + 4); v8 = *(_QWORD *)v7; } if ( (int)v5 > 0 ) { v10 = *v3; v11 = *v3 + 4 * v22; v12 = (_DWORD *)*v4; v13 = *v4 + 4 * v5; do { v14 = (unsigned int)*v12; if ( *v12 ) { v15 = 0LL; v16 = 0LL; do { v17 = v10 + v15 + 4; v18 = v14 * *(unsigned int *)(v10 + v15) + v16 + *(unsigned int *)(v8 + v15); v16 = HIDWORD(v18); *(_DWORD *)(v8 + v15) = v18; v15 += 4LL; } while ( v17 < v11 ); *(_DWORD *)(v8 + v15) = HIDWORD(v18); } ++v12; v8 += 4LL; } while ( (unsigned long long)v12 < v13 ); v8 = *(_QWORD *)v7; } if ( (int)v6 > 0 ) { v19 = (_DWORD *)(v8 + 4 * v6 - 4); while ( !*v19 ) { --v19; v20 = (int)v6 <= 1; LODWORD(v6) = v6 - 1; if ( v20 ) { LODWORD(v6) = 0; break; } } } *(_DWORD *)(v7 + 20) = v6; return v7; }
mult: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDI MOV EAX,dword ptr [RDI + 0x14] CMP EAX,dword ptr [RSI + 0x14] MOV R12,RSI CMOVL R12,RDI CMOVL R14,RSI MOVSXD RAX,dword ptr [R14 + 0x14] MOVSXD R13,dword ptr [R12 + 0x14] MOV qword ptr [RBP + -0x30],RAX LEA R15,[RAX + R13*0x1] XOR EDI,EDI CMP R15D,dword ptr [R14 + 0xc] SETG DIL ADD EDI,dword ptr [R14 + 0x8] MOV RSI,RDX CALL 0x00138f30 MOV RBX,RAX MOV RDI,qword ptr [RAX] TEST R15D,R15D JLE 0x00139285 LEA RAX,[RDI + R15*0x4] LEA RCX,[RDI + 0x4] CMP RAX,RCX CMOVA RCX,RAX MOV RDX,RDI NOT RDX ADD RDX,RCX AND RDX,-0x4 ADD RDX,0x4 XOR ESI,ESI CALL 0x00125180 MOV RDI,qword ptr [RBX] LAB_00139285: TEST R13D,R13D JLE 0x001392ed MOV RAX,qword ptr [R14] MOV RCX,qword ptr [RBP + -0x30] LEA RCX,[RAX + RCX*0x4] MOV RDX,qword ptr [R12] LEA RSI,[RDX + R13*0x4] LAB_0013929d: MOV R8D,dword ptr [RDX] TEST R8,R8 JZ 0x001392dd XOR R9D,R9D XOR R10D,R10D LAB_001392ab: LEA R11,[RAX + R9*0x1] ADD R11,0x4 MOV R14D,dword ptr [R11 + -0x4] IMUL R14,R8 MOV R12D,dword ptr [RDI + R9*0x1] ADD R12,R10 ADD R12,R14 MOV R10,R12 SHR R10,0x20 MOV dword ptr [RDI + R9*0x1],R12D ADD R9,0x4 CMP R11,RCX JC 0x001392ab MOV dword ptr [RDI + R9*0x1],R10D LAB_001392dd: ADD RDX,0x4 ADD RDI,0x4 CMP RDX,RSI JC 0x0013929d MOV RDI,qword ptr [RBX] LAB_001392ed: TEST R15D,R15D JLE 0x00139313 LEA RAX,[RDI + R15*0x4] ADD RAX,-0x4 LAB_001392fa: CMP dword ptr [RAX],0x0 JNZ 0x00139313 LEA ECX,[R15 + -0x1] ADD RAX,-0x4 CMP R15D,0x1 MOV R15D,ECX JG 0x001392fa XOR R15D,R15D LAB_00139313: MOV dword ptr [RBX + 0x14],R15D MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 * mult(long *param_1,long *param_2) { void *pvVar1; uint *puVar2; uint *puVar3; int iVar4; int iVar5; uint uVar6; long lVar7; int8 *puVar8; int *piVar9; void *pvVar10; uint *puVar11; void *__s; long lVar12; ulong uVar13; ulong uVar14; long *plVar15; int iVar16; ulong uVar17; plVar15 = param_1; if (*(int *)((long)param_1 + 0x14) < *(int *)((long)param_2 + 0x14)) { plVar15 = param_2; param_2 = param_1; } iVar4 = *(int *)((long)plVar15 + 0x14); iVar5 = *(int *)((long)param_2 + 0x14); uVar17 = (long)iVar4 + (long)iVar5; iVar16 = (int)uVar17; puVar8 = (int8 *)Balloc((uint)(*(int *)((long)plVar15 + 0xc) < iVar16) + (int)plVar15[1]); __s = (void *)*puVar8; if (0 < iVar16) { pvVar1 = (void *)((long)__s + uVar17 * 4); pvVar10 = (void *)((long)__s + 4U); if ((void *)((long)__s + 4U) < pvVar1) { pvVar10 = pvVar1; } memset(__s,0,(~(ulong)__s + (long)pvVar10 & 0xfffffffffffffffc) + 4); __s = (void *)*puVar8; } if (0 < iVar5) { lVar7 = *plVar15; puVar11 = (uint *)*param_2; puVar2 = puVar11 + iVar5; do { uVar6 = *puVar11; if ((ulong)uVar6 != 0) { lVar12 = 0; uVar13 = 0; do { puVar3 = (uint *)(lVar7 + lVar12); uVar14 = *(uint *)((long)__s + lVar12) + uVar13 + (ulong)*puVar3 * (ulong)uVar6; uVar13 = uVar14 >> 0x20; *(int *)((long)__s + lVar12) = (int)uVar14; lVar12 = lVar12 + 4; } while (puVar3 + 1 < (uint *)(lVar7 + (long)iVar4 * 4)); *(int *)((long)__s + lVar12) = (int)(uVar14 >> 0x20); } puVar11 = puVar11 + 1; __s = (void *)((long)__s + 4); } while (puVar11 < puVar2); __s = (void *)*puVar8; } if (0 < iVar16) { piVar9 = (int *)((long)__s + uVar17 * 4); do { piVar9 = piVar9 + -1; if (*piVar9 != 0) goto LAB_00139313; iVar4 = (int)uVar17; uVar17 = (ulong)(iVar4 - 1); } while (1 < iVar4); uVar17 = 0; } LAB_00139313: *(int *)((long)puVar8 + 0x14) = (int)uVar17; return puVar8; }
17,693
my_init_mysys_psi_keys
eloqsql/mysys/my_init.c
void my_init_mysys_psi_keys() { const char* category= "mysys"; int count; count= sizeof(all_mysys_mutexes)/sizeof(all_mysys_mutexes[0]); mysql_mutex_register(category, all_mysys_mutexes, count); count= sizeof(all_mysys_conds)/sizeof(all_mysys_conds[0]); mysql_cond_register(category, all_mysys_conds, count); count= sizeof(all_mysys_rwlocks)/sizeof(all_mysys_rwlocks[0]); mysql_rwlock_register(category, all_mysys_rwlocks, count); count= sizeof(all_mysys_threads)/sizeof(all_mysys_threads[0]); mysql_thread_register(category, all_mysys_threads, count); count= sizeof(all_mysys_files)/sizeof(all_mysys_files[0]); mysql_file_register(category, all_mysys_files, count); count= array_elements(all_mysys_stages); mysql_stage_register(category, all_mysys_stages, count); }
O0
c
my_init_mysys_psi_keys: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp leaq 0x53d3c(%rip), %rax # 0x7a46b movq %rax, -0x8(%rbp) movl $0x13, -0xc(%rbp) movq -0x8(%rbp), %rdi movl -0xc(%rbp), %edx leaq 0x1a89d8(%rip), %rsi # 0x1cf120 callq 0x267e0 movl $0x7, -0xc(%rbp) movq -0x8(%rbp), %rdi movl -0xc(%rbp), %edx leaq 0x1a8b8e(%rip), %rsi # 0x1cf2f0 callq 0x26820 movl $0x1, -0xc(%rbp) movq -0x8(%rbp), %rdi movl -0xc(%rbp), %edx leaq 0x1a8c24(%rip), %rsi # 0x1cf3a0 callq 0x26860 movl $0x1, -0xc(%rbp) movq -0x8(%rbp), %rdi movl -0xc(%rbp), %edx leaq 0x1a8c2a(%rip), %rsi # 0x1cf3c0 callq 0x268a0 movl $0x2, -0xc(%rbp) movq -0x8(%rbp), %rdi movl -0xc(%rbp), %edx leaq 0x1a8c30(%rip), %rsi # 0x1cf3e0 callq 0x268e0 movl $0x1, -0xc(%rbp) movq -0x8(%rbp), %rdi movl -0xc(%rbp), %edx leaq 0x1a8946(%rip), %rsi # 0x1cf110 callq 0x26920 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_init_mysys_psi_keys: push rbp mov rbp, rsp sub rsp, 10h lea rax, aMysys; "mysys" mov [rbp+var_8], rax mov [rbp+var_C], 13h mov rdi, [rbp+var_8] mov edx, [rbp+var_C] lea rsi, all_mysys_mutexes call inline_mysql_mutex_register mov [rbp+var_C], 7 mov rdi, [rbp+var_8] mov edx, [rbp+var_C] lea rsi, all_mysys_conds call inline_mysql_cond_register mov [rbp+var_C], 1 mov rdi, [rbp+var_8] mov edx, [rbp+var_C] lea rsi, all_mysys_rwlocks call inline_mysql_rwlock_register mov [rbp+var_C], 1 mov rdi, [rbp+var_8] mov edx, [rbp+var_C] lea rsi, all_mysys_threads call inline_mysql_thread_register mov [rbp+var_C], 2 mov rdi, [rbp+var_8] mov edx, [rbp+var_C] lea rsi, all_mysys_files call inline_mysql_file_register mov [rbp+var_C], 1 mov rdi, [rbp+var_8] mov edx, [rbp+var_C] lea rsi, all_mysys_stages call inline_mysql_stage_register add rsp, 10h pop rbp retn
long long my_init_mysys_psi_keys() { inline_mysql_mutex_register("mysys", &all_mysys_mutexes, 19LL); inline_mysql_cond_register("mysys", &all_mysys_conds, 7LL); inline_mysql_rwlock_register("mysys", &all_mysys_rwlocks, 1LL); inline_mysql_thread_register("mysys", &all_mysys_threads, 1LL); inline_mysql_file_register("mysys", &all_mysys_files, 2LL); return inline_mysql_stage_register("mysys", &all_mysys_stages, 1LL); }
my_init_mysys_psi_keys: PUSH RBP MOV RBP,RSP SUB RSP,0x10 LEA RAX,[0x17a46b] MOV qword ptr [RBP + -0x8],RAX MOV dword ptr [RBP + -0xc],0x13 MOV RDI,qword ptr [RBP + -0x8] MOV EDX,dword ptr [RBP + -0xc] LEA RSI,[0x2cf120] CALL 0x001267e0 MOV dword ptr [RBP + -0xc],0x7 MOV RDI,qword ptr [RBP + -0x8] MOV EDX,dword ptr [RBP + -0xc] LEA RSI,[0x2cf2f0] CALL 0x00126820 MOV dword ptr [RBP + -0xc],0x1 MOV RDI,qword ptr [RBP + -0x8] MOV EDX,dword ptr [RBP + -0xc] LEA RSI,[0x2cf3a0] CALL 0x00126860 MOV dword ptr [RBP + -0xc],0x1 MOV RDI,qword ptr [RBP + -0x8] MOV EDX,dword ptr [RBP + -0xc] LEA RSI,[0x2cf3c0] CALL 0x001268a0 MOV dword ptr [RBP + -0xc],0x2 MOV RDI,qword ptr [RBP + -0x8] MOV EDX,dword ptr [RBP + -0xc] LEA RSI,[0x2cf3e0] CALL 0x001268e0 MOV dword ptr [RBP + -0xc],0x1 MOV RDI,qword ptr [RBP + -0x8] MOV EDX,dword ptr [RBP + -0xc] LEA RSI,[0x2cf110] CALL 0x00126920 ADD RSP,0x10 POP RBP RET
void my_init_mysys_psi_keys(void) { inline_mysql_mutex_register("mysys",all_mysys_mutexes,0x13); inline_mysql_cond_register("mysys",all_mysys_conds,7); inline_mysql_rwlock_register("mysys",all_mysys_rwlocks,1); inline_mysql_thread_register("mysys",all_mysys_threads,1); inline_mysql_file_register("mysys",all_mysys_files,2); inline_mysql_stage_register("mysys",&all_mysys_stages,1); return; }
17,694
pcmp
eloqsql/strings/ctype-simple.c
static int pcmp(const void * f, const void * s) { const uni_idx *F= (const uni_idx*) f; const uni_idx *S= (const uni_idx*) s; int res; if (!(res=((S->nchars)-(F->nchars)))) res=((F->uidx.from)-(S->uidx.to)); return res; }
O0
c
pcmp: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movl (%rax), %eax movq -0x18(%rbp), %rcx subl (%rcx), %eax movl %eax, -0x24(%rbp) cmpl $0x0, %eax jne 0x7b3c5 movq -0x18(%rbp), %rax movzwl 0x8(%rax), %eax movq -0x20(%rbp), %rcx movzwl 0xa(%rcx), %ecx subl %ecx, %eax movl %eax, -0x24(%rbp) movl -0x24(%rbp), %eax popq %rbp retq nopw (%rax,%rax)
pcmp: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov [rbp+var_18], rax mov rax, [rbp+var_10] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov eax, [rax] mov rcx, [rbp+var_18] sub eax, [rcx] mov [rbp+var_24], eax cmp eax, 0 jnz short loc_7B3C5 mov rax, [rbp+var_18] movzx eax, word ptr [rax+8] mov rcx, [rbp+var_20] movzx ecx, word ptr [rcx+0Ah] sub eax, ecx mov [rbp+var_24], eax loc_7B3C5: mov eax, [rbp+var_24] pop rbp retn
long long pcmp(long long a1, long long a2) { unsigned int v3; // [rsp+0h] [rbp-24h] v3 = *(_DWORD *)a2 - *(_DWORD *)a1; if ( !v3 ) return *(unsigned __int16 *)(a1 + 8) - (unsigned int)*(unsigned __int16 *)(a2 + 10); return v3; }
pcmp: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x18] SUB EAX,dword ptr [RCX] MOV dword ptr [RBP + -0x24],EAX CMP EAX,0x0 JNZ 0x0017b3c5 MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x20] MOVZX ECX,word ptr [RCX + 0xa] SUB EAX,ECX MOV dword ptr [RBP + -0x24],EAX LAB_0017b3c5: MOV EAX,dword ptr [RBP + -0x24] POP RBP RET
int pcmp(int *param_1,int *param_2) { int local_2c; local_2c = *param_2 - *param_1; if (local_2c == 0) { local_2c = (uint)*(ushort *)(param_1 + 2) - (uint)*(ushort *)((long)param_2 + 10); } return local_2c; }
17,695
JS_DefinePropertyValueValue
bluesky950520[P]quickjs/quickjs.c
int JS_DefinePropertyValueValue(JSContext *ctx, JSValue this_obj, JSValue prop, JSValue val, int flags) { JSAtom atom; int ret; atom = JS_ValueToAtom(ctx, prop); JS_FreeValue(ctx, prop); if (unlikely(atom == JS_ATOM_NULL)) { JS_FreeValue(ctx, val); return -1; } ret = JS_DefinePropertyValue(ctx, this_obj, atom, val, flags); JS_FreeAtom(ctx, atom); return ret; }
O0
c
JS_DefinePropertyValueValue: subq $0x58, %rsp leaq 0x60(%rsp), %rax movq %rax, 0x10(%rsp) movq %rsi, 0x40(%rsp) movq %rdx, 0x48(%rsp) movq %rcx, 0x30(%rsp) movq %r8, 0x38(%rsp) movq %rdi, 0x28(%rsp) movl %r9d, 0x24(%rsp) movq 0x28(%rsp), %rdi movq 0x30(%rsp), %rsi movq 0x38(%rsp), %rdx callq 0x374f0 movl %eax, 0x20(%rsp) movq 0x28(%rsp), %rdi movq 0x30(%rsp), %rsi movq 0x38(%rsp), %rdx callq 0x29f80 cmpl $0x0, 0x20(%rsp) sete %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x3d611 movq 0x10(%rsp), %rax movq 0x28(%rsp), %rdi movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x29f80 movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF jmp 0x3d656 movq 0x10(%rsp), %r9 movq 0x28(%rsp), %rdi movl 0x20(%rsp), %ecx movl 0x24(%rsp), %eax movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx movq (%r9), %r8 movq 0x8(%r9), %r9 movl %eax, (%rsp) callq 0x3d4a0 movl %eax, 0x1c(%rsp) movq 0x28(%rsp), %rdi movl 0x20(%rsp), %esi callq 0x2f330 movl 0x1c(%rsp), %eax movl %eax, 0x54(%rsp) movl 0x54(%rsp), %eax addq $0x58, %rsp retq nop
JS_DefinePropertyValueValue: sub rsp, 58h lea rax, [rsp+58h+arg_0] mov [rsp+58h+var_48], rax mov [rsp+58h+var_18], rsi mov [rsp+58h+var_10], rdx mov [rsp+58h+var_28], rcx mov [rsp+58h+var_20], r8 mov [rsp+58h+var_30], rdi mov [rsp+58h+var_34], r9d mov rdi, [rsp+58h+var_30] mov rsi, [rsp+58h+var_28] mov rdx, [rsp+58h+var_20] call JS_ValueToAtom mov [rsp+58h+var_38], eax mov rdi, [rsp+58h+var_30] mov rsi, [rsp+58h+var_28] mov rdx, [rsp+58h+var_20] call JS_FreeValue cmp [rsp+58h+var_38], 0 setz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_3D611 mov rax, [rsp+58h+var_48] mov rdi, [rsp+58h+var_30] mov rsi, [rax] mov rdx, [rax+8] call JS_FreeValue mov [rsp+58h+var_4], 0FFFFFFFFh jmp short loc_3D656 loc_3D611: mov r9, [rsp+58h+var_48] mov rdi, [rsp+58h+var_30] mov ecx, [rsp+58h+var_38] mov eax, [rsp+58h+var_34] mov rsi, [rsp+58h+var_18] mov rdx, [rsp+58h+var_10] mov r8, [r9] mov r9, [r9+8] mov [rsp+58h+var_58], eax call JS_DefinePropertyValue mov [rsp+58h+var_3C], eax mov rdi, [rsp+58h+var_30] mov esi, [rsp+58h+var_38] call JS_FreeAtom mov eax, [rsp+58h+var_3C] mov [rsp+58h+var_4], eax loc_3D656: mov eax, [rsp+58h+var_4] add rsp, 58h retn
long long JS_DefinePropertyValueValue( long long a1, long long a2, long long a3, long long a4, long long a5, int a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14, _DWORD *a15, long long a16) { __m128 v16; // xmm4 __m128 v17; // xmm5 unsigned int v19; // [rsp+1Ch] [rbp-3Ch] unsigned int v20; // [rsp+20h] [rbp-38h] v20 = JS_ValueToAtom(a1, a4, a5); JS_FreeValue(a1, a4, a5); if ( v20 ) { v19 = JS_DefinePropertyValue(a1, a2, a3, v20, a15, a16, a7, a8, a9, a10, v16, v17, a13, a14, a6); JS_FreeAtom(a1, v20); return v19; } else { JS_FreeValue(a1, (long long)a15, a16); return (unsigned int)-1; } }
JS_DefinePropertyValueValue: SUB RSP,0x58 LEA RAX,[RSP + 0x60] MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x40],RSI MOV qword ptr [RSP + 0x48],RDX MOV qword ptr [RSP + 0x30],RCX MOV qword ptr [RSP + 0x38],R8 MOV qword ptr [RSP + 0x28],RDI MOV dword ptr [RSP + 0x24],R9D MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RSP + 0x38] CALL 0x001374f0 MOV dword ptr [RSP + 0x20],EAX MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RSP + 0x38] CALL 0x00129f80 CMP dword ptr [RSP + 0x20],0x0 SETZ AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0013d611 MOV RAX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x00129f80 MOV dword ptr [RSP + 0x54],0xffffffff JMP 0x0013d656 LAB_0013d611: MOV R9,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RSP + 0x28] MOV ECX,dword ptr [RSP + 0x20] MOV EAX,dword ptr [RSP + 0x24] MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] MOV R8,qword ptr [R9] MOV R9,qword ptr [R9 + 0x8] MOV dword ptr [RSP],EAX CALL 0x0013d4a0 MOV dword ptr [RSP + 0x1c],EAX MOV RDI,qword ptr [RSP + 0x28] MOV ESI,dword ptr [RSP + 0x20] CALL 0x0012f330 MOV EAX,dword ptr [RSP + 0x1c] MOV dword ptr [RSP + 0x54],EAX LAB_0013d656: MOV EAX,dword ptr [RSP + 0x54] ADD RSP,0x58 RET
int4 JS_DefinePropertyValueValue (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int4 param_6,int8 param_7,int8 param_8) { int iVar1; int4 local_4; iVar1 = JS_ValueToAtom(param_1,param_4,param_5); JS_FreeValue(param_1,param_4,param_5); if (iVar1 == 0) { JS_FreeValue(param_1,param_7,param_8); local_4 = 0xffffffff; } else { local_4 = JS_DefinePropertyValue(param_1,param_2,param_3,iVar1,param_7,param_8,param_6); JS_FreeAtom(param_1,iVar1); } return local_4; }
17,696
JS_DefinePropertyValueValue
bluesky950520[P]quickjs/quickjs.c
int JS_DefinePropertyValueValue(JSContext *ctx, JSValue this_obj, JSValue prop, JSValue val, int flags) { JSAtom atom; int ret; atom = JS_ValueToAtom(ctx, prop); JS_FreeValue(ctx, prop); if (unlikely(atom == JS_ATOM_NULL)) { JS_FreeValue(ctx, val); return -1; } ret = JS_DefinePropertyValue(ctx, this_obj, atom, val, flags); JS_FreeAtom(ctx, atom); return ret; }
O1
c
JS_DefinePropertyValueValue: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r9d, %ebp movq %r8, %r13 movq %rcx, %r14 movq %rdx, 0x10(%rsp) movq %rsi, %r12 movq %rdi, %rbx movq %rcx, %rsi movq %r8, %rdx callq 0x280ef movl %eax, %r15d movq 0x18(%rbx), %rdi movq %r14, %rsi movq %r13, %rdx callq 0x21922 movq 0x50(%rsp), %r8 movq 0x58(%rsp), %r9 testl %r15d, %r15d je 0x2ac0b movl %ebp, (%rsp) movq %rbx, %rdi movq %r12, %rsi movq 0x10(%rsp), %rdx movl %r15d, %ecx callq 0x2ab17 movl %eax, %ebp movq %rbx, %rdi movl %r15d, %esi callq 0x24834 movl %ebp, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x18(%rbx), %rdi movq %r8, %rsi movq %r9, %rdx callq 0x21922 movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0x2abfc
JS_DefinePropertyValueValue: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov ebp, r9d mov r13, r8 mov r14, rcx mov [rsp+48h+var_38], rdx mov r12, rsi mov rbx, rdi mov rsi, rcx mov rdx, r8 call JS_ValueToAtom mov r15d, eax mov rdi, [rbx+18h] mov rsi, r14 mov rdx, r13 call JS_FreeValueRT mov r8, [rsp+48h+arg_0] mov r9, [rsp+48h+arg_8] test r15d, r15d jz short loc_2AC0B mov [rsp+48h+var_48], ebp mov rdi, rbx mov rsi, r12 mov rdx, [rsp+48h+var_38] mov ecx, r15d call JS_DefinePropertyValue mov ebp, eax mov rdi, rbx mov esi, r15d call JS_FreeAtom mov eax, ebp loc_2ABFC: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_2AC0B: mov rdi, [rbx+18h] mov rsi, r8 mov rdx, r9 call JS_FreeValueRT mov eax, 0FFFFFFFFh jmp short loc_2ABFC
long long JS_DefinePropertyValueValue( long long a1, unsigned long long a2, long long a3, _DWORD *a4, long long a5, int a6, double a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14, _DWORD *a15, long long a16) { unsigned int v19; // r15d __m128 v20; // xmm4 __m128 v21; // xmm5 unsigned int v22; // ebp v19 = JS_ValueToAtom(a1, (long long)a4, a5); JS_FreeValueRT(*(_QWORD *)(a1 + 24), a4, a5); if ( v19 ) { v22 = JS_DefinePropertyValue(a1, a2, a3, v19, a15, a16, a7, a8, a9, a10, v20, v21, a13, a14, a6); JS_FreeAtom(a1, v19); return v22; } else { JS_FreeValueRT(*(_QWORD *)(a1 + 24), a15, a16); return 0xFFFFFFFFLL; } }
JS_DefinePropertyValueValue: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV EBP,R9D MOV R13,R8 MOV R14,RCX MOV qword ptr [RSP + 0x10],RDX MOV R12,RSI MOV RBX,RDI MOV RSI,RCX MOV RDX,R8 CALL 0x001280ef MOV R15D,EAX MOV RDI,qword ptr [RBX + 0x18] MOV RSI,R14 MOV RDX,R13 CALL 0x00121922 MOV R8,qword ptr [RSP + 0x50] MOV R9,qword ptr [RSP + 0x58] TEST R15D,R15D JZ 0x0012ac0b MOV dword ptr [RSP],EBP MOV RDI,RBX MOV RSI,R12 MOV RDX,qword ptr [RSP + 0x10] MOV ECX,R15D CALL 0x0012ab17 MOV EBP,EAX MOV RDI,RBX MOV ESI,R15D CALL 0x00124834 MOV EAX,EBP LAB_0012abfc: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0012ac0b: MOV RDI,qword ptr [RBX + 0x18] MOV RSI,R8 MOV RDX,R9 CALL 0x00121922 MOV EAX,0xffffffff JMP 0x0012abfc
int4 JS_DefinePropertyValueValue (long param_1,int8 param_2,int8 param_3,int8 param_4,int8 param_5, int4 param_6,int8 param_7,int8 param_8) { int iVar1; int4 uVar2; iVar1 = JS_ValueToAtom(param_1,param_4,param_5); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),param_4,param_5); if (iVar1 == 0) { JS_FreeValueRT(*(int8 *)(param_1 + 0x18),param_7,param_8); uVar2 = 0xffffffff; } else { uVar2 = JS_DefinePropertyValue(param_1,param_2,param_3,iVar1,param_7,param_8,param_6); JS_FreeAtom(param_1,iVar1); } return uVar2; }
17,697
JS_DefinePropertyValueValue
bluesky950520[P]quickjs/quickjs.c
int JS_DefinePropertyValueValue(JSContext *ctx, JSValue this_obj, JSValue prop, JSValue val, int flags) { JSAtom atom; int ret; atom = JS_ValueToAtom(ctx, prop); JS_FreeValue(ctx, prop); if (unlikely(atom == JS_ATOM_NULL)) { JS_FreeValue(ctx, val); return -1; } ret = JS_DefinePropertyValue(ctx, this_obj, atom, val, flags); JS_FreeAtom(ctx, atom); return ret; }
O2
c
JS_DefinePropertyValueValue: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r9d, %ebp movq %r8, %r13 movq %rcx, %r14 movq %rdx, 0x10(%rsp) movq %rsi, %r12 movq %rdi, %rbx movq %rcx, %rsi movq %r8, %rdx callq 0x21c6c movl %eax, %r15d movq %rbx, %rdi movq %r14, %rsi movq %r13, %rdx callq 0x1bbce movq 0x50(%rsp), %r8 movq 0x58(%rsp), %r9 testl %r15d, %r15d je 0x2450f movl %ebp, (%rsp) movq %rbx, %rdi movq %r12, %rsi movq 0x10(%rsp), %rdx movl %r15d, %ecx callq 0x24422 movl %eax, %ebp movq %rbx, %rdi movl %r15d, %esi callq 0x1e545 movl %ebp, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rbx, %rdi movq %r8, %rsi movq %r9, %rdx callq 0x1bbce pushq $-0x1 popq %rax jmp 0x24500
JS_DefinePropertyValueValue: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov ebp, r9d mov r13, r8 mov r14, rcx mov [rsp+48h+var_38], rdx mov r12, rsi mov rbx, rdi mov rsi, rcx mov rdx, r8 call JS_ValueToAtom mov r15d, eax mov rdi, rbx mov rsi, r14 mov rdx, r13 call JS_FreeValue mov r8, [rsp+48h+arg_0] mov r9, [rsp+48h+arg_8] test r15d, r15d jz short loc_2450F mov [rsp+48h+var_48], ebp mov rdi, rbx mov rsi, r12 mov rdx, [rsp+48h+var_38] mov ecx, r15d call JS_DefinePropertyValue mov ebp, eax mov rdi, rbx mov esi, r15d call JS_FreeAtom mov eax, ebp loc_24500: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_2450F: mov rdi, rbx mov rsi, r8 mov rdx, r9 call JS_FreeValue push 0FFFFFFFFFFFFFFFFh pop rax jmp short loc_24500
long long JS_DefinePropertyValueValue( long long a1, long long a2, long long a3, long long a4, long long a5, int a6, double a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14, _DWORD *a15, long long a16) { unsigned int v19; // r15d __m128 v20; // xmm4 __m128 v21; // xmm5 unsigned int v22; // ebp v19 = JS_ValueToAtom(a1, a4, a5); JS_FreeValue(a1, a4, a5); if ( v19 ) { v22 = JS_DefinePropertyValue(a1, a2, a3, v19, a15, a16, a7, a8, a9, a10, v20, v21, a13, a14, a6); JS_FreeAtom(a1, v19); return v22; } else { JS_FreeValue(a1, (long long)a15, a16); return -1LL; } }
JS_DefinePropertyValueValue: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV EBP,R9D MOV R13,R8 MOV R14,RCX MOV qword ptr [RSP + 0x10],RDX MOV R12,RSI MOV RBX,RDI MOV RSI,RCX MOV RDX,R8 CALL 0x00121c6c MOV R15D,EAX MOV RDI,RBX MOV RSI,R14 MOV RDX,R13 CALL 0x0011bbce MOV R8,qword ptr [RSP + 0x50] MOV R9,qword ptr [RSP + 0x58] TEST R15D,R15D JZ 0x0012450f MOV dword ptr [RSP],EBP MOV RDI,RBX MOV RSI,R12 MOV RDX,qword ptr [RSP + 0x10] MOV ECX,R15D CALL 0x00124422 MOV EBP,EAX MOV RDI,RBX MOV ESI,R15D CALL 0x0011e545 MOV EAX,EBP LAB_00124500: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0012450f: MOV RDI,RBX MOV RSI,R8 MOV RDX,R9 CALL 0x0011bbce PUSH -0x1 POP RAX JMP 0x00124500
ulong JS_DefinePropertyValueValue (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int4 param_6,int8 param_7,int8 param_8) { int iVar1; uint uVar2; int8 uStackY_50; iVar1 = JS_ValueToAtom(param_1,param_4,param_5); JS_FreeValue(param_1,param_4,param_5); if (iVar1 == 0) { JS_FreeValue(param_1,param_7,param_8); uStackY_50 = 0xffffffffffffffff; } else { uVar2 = JS_DefinePropertyValue(param_1,param_2,param_3,iVar1,param_7,param_8,param_6); uStackY_50 = (ulong)uVar2; JS_FreeAtom(param_1,iVar1); } return uStackY_50; }
17,698
psi_cond_wait
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_cond_wait(mysql_cond_t *that, mysql_mutex_t *mutex, const char *file, uint line) { PSI_cond_locker_state state; PSI_cond_locker *locker= PSI_COND_CALL(start_cond_wait) (&state, that->m_psi, mutex->m_psi, PSI_COND_WAIT, file, line); int result= my_cond_wait(&that->m_cond, &mutex->m_mutex); if (locker) PSI_COND_CALL(end_cond_wait)(locker, result); return result; }
O0
c
psi_cond_wait: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) leaq 0x1a65c2(%rip), %rax # 0x1d08e0 movq (%rax), %rax movq 0x1c0(%rax), %rax movq -0x8(%rbp), %rcx movq 0x30(%rcx), %rsi movq -0x10(%rbp), %rcx movq 0x40(%rcx), %rdx movq -0x18(%rbp), %r8 movl -0x1c(%rbp), %r9d leaq -0x58(%rbp), %rdi xorl %ecx, %ecx callq *%rax movq %rax, -0x60(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x244a0 movl %eax, -0x64(%rbp) cmpq $0x0, -0x60(%rbp) je 0x2a37d leaq 0x1a6576(%rip), %rax # 0x1d08e0 movq (%rax), %rax movq 0x1c8(%rax), %rax movq -0x60(%rbp), %rdi movl -0x64(%rbp), %esi callq *%rax movl -0x64(%rbp), %eax addq $0x70, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
psi_cond_wait: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx lea rax, PSI_server mov rax, [rax] mov rax, [rax+1C0h] mov rcx, [rbp+var_8] mov rsi, [rcx+30h] mov rcx, [rbp+var_10] mov rdx, [rcx+40h] mov r8, [rbp+var_18] mov r9d, [rbp+var_1C] lea rdi, [rbp+var_58] xor ecx, ecx call rax mov [rbp+var_60], rax mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call _pthread_cond_wait mov [rbp+var_64], eax cmp [rbp+var_60], 0 jz short loc_2A37D lea rax, PSI_server mov rax, [rax] mov rax, [rax+1C8h] mov rdi, [rbp+var_60] mov esi, [rbp+var_64] call rax loc_2A37D: mov eax, [rbp+var_64] add rsp, 70h pop rbp retn
long long psi_cond_wait(long long a1, long long a2, long long a3, unsigned int a4) { unsigned int v5; // [rsp+Ch] [rbp-64h] long long v6; // [rsp+10h] [rbp-60h] _BYTE v7[60]; // [rsp+18h] [rbp-58h] BYREF unsigned int v8; // [rsp+54h] [rbp-1Ch] long long v9; // [rsp+58h] [rbp-18h] long long v10; // [rsp+60h] [rbp-10h] long long v11; // [rsp+68h] [rbp-8h] v11 = a1; v10 = a2; v9 = a3; v8 = a4; v6 = (*((long long ( **)(_BYTE *, _QWORD, _QWORD, _QWORD, long long, _QWORD))PSI_server[0] + 56))( v7, *(_QWORD *)(a1 + 48), *(_QWORD *)(a2 + 64), 0LL, a3, a4); v5 = pthread_cond_wait(v11, v10); if ( v6 ) (*((void ( **)(long long, _QWORD))PSI_server[0] + 57))(v6, v5); return v5; }
psi_cond_wait: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX LEA RAX,[0x2d08e0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1c0] MOV RCX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RCX + 0x30] MOV RCX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RCX + 0x40] MOV R8,qword ptr [RBP + -0x18] MOV R9D,dword ptr [RBP + -0x1c] LEA RDI,[RBP + -0x58] XOR ECX,ECX CALL RAX MOV qword ptr [RBP + -0x60],RAX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x001244a0 MOV dword ptr [RBP + -0x64],EAX CMP qword ptr [RBP + -0x60],0x0 JZ 0x0012a37d LEA RAX,[0x2d08e0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1c8] MOV RDI,qword ptr [RBP + -0x60] MOV ESI,dword ptr [RBP + -0x64] CALL RAX LAB_0012a37d: MOV EAX,dword ptr [RBP + -0x64] ADD RSP,0x70 POP RBP RET
int psi_cond_wait(pthread_cond_t *param_1,pthread_mutex_t *param_2,int8 param_3, int4 param_4) { int iVar1; long lVar2; int1 local_60 [60]; int4 local_24; int8 local_20; pthread_mutex_t *local_18; pthread_cond_t *local_10; local_24 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; lVar2 = (**(code **)(PSI_server + 0x1c0)) (local_60,param_1[1].__align,*(int8 *)((long)param_2 + 0x40),0,param_3, param_4); iVar1 = pthread_cond_wait(local_10,local_18); if (lVar2 != 0) { (**(code **)(PSI_server + 0x1c8))(lVar2,iVar1); } return iVar1; }
17,699
register_thread_class(char const*, unsigned int, int)
eloqsql/storage/perfschema/pfs_instr_class.cc
PFS_thread_key register_thread_class(const char *name, uint name_length, int flags) { /* See comments in register_mutex_class */ uint32 index; PFS_thread_class *entry; for (index= 0; index < thread_class_max; index++) { entry= &thread_class_array[index]; if ((entry->m_name_length == name_length) && (strncmp(entry->m_name, name, name_length) == 0)) return (index + 1); } index= PFS_atomic::add_u32(&thread_class_dirty_count, 1); if (index < thread_class_max) { entry= &thread_class_array[index]; assert(name_length <= PFS_MAX_INFO_NAME_LENGTH); strncpy(entry->m_name, name, name_length); entry->m_name_length= name_length; entry->m_enabled= true; PFS_atomic::add_u32(&thread_class_allocated_count, 1); return (index + 1); } if (pfs_enabled) thread_class_lost++; return 0; }
O0
cpp
register_thread_class(char const*, unsigned int, int): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movl $0x0, -0x1c(%rbp) movl -0x1c(%rbp), %eax cmpq 0x3cb88d(%rip), %rax # 0x40ea30 jae 0x43202 movq 0x3cc11c(%rip), %rax # 0x40f2c8 movl -0x1c(%rbp), %ecx imulq $0xc0, %rcx, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movl 0x90(%rax), %eax cmpl -0x14(%rbp), %eax jne 0x431f5 movq -0x28(%rbp), %rdi addq $0x10, %rdi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %eax movl %eax, %edx callq 0x26170 cmpl $0x0, %eax jne 0x431f5 movl -0x1c(%rbp), %eax addl $0x1, %eax movl %eax, -0x4(%rbp) jmp 0x432a2 jmp 0x431f7 movl -0x1c(%rbp), %eax addl $0x1, %eax movl %eax, -0x1c(%rbp) jmp 0x43199 leaq 0x3cc0bb(%rip), %rdi # 0x40f2c4 movl $0x1, %esi callq 0x33c80 movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %eax cmpq 0x3cb810(%rip), %rax # 0x40ea30 jae 0x43280 movq 0x3cc09f(%rip), %rax # 0x40f2c8 movl -0x1c(%rbp), %ecx imulq $0xc0, %rcx, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rdi addq $0x10, %rdi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %eax movl %eax, %edx callq 0x261a0 movl -0x14(%rbp), %ecx movq -0x28(%rbp), %rax movl %ecx, 0x90(%rax) movq -0x28(%rbp), %rax movb $0x1, (%rax) leaq 0x3cc055(%rip), %rdi # 0x40f2c0 movl $0x1, %esi callq 0x33c80 movl -0x1c(%rbp), %eax addl $0x1, %eax movl %eax, -0x4(%rbp) jmp 0x432a2 cmpb $0x0, 0x1d4099(%rip) # 0x217320 je 0x4329b movq 0x3cb7a8(%rip), %rax # 0x40ea38 addq $0x1, %rax movq %rax, 0x3cb79d(%rip) # 0x40ea38 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
_Z21register_thread_classPKcji: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_1C], 0 loc_43199: mov eax, [rbp+var_1C] cmp rax, cs:thread_class_max jnb short loc_43202 mov rax, cs:_ZL18thread_class_array; thread_class_array mov ecx, [rbp+var_1C] imul rcx, 0C0h add rax, rcx mov [rbp+var_28], rax mov rax, [rbp+var_28] mov eax, [rax+90h] cmp eax, [rbp+var_14] jnz short loc_431F5 mov rdi, [rbp+var_28] add rdi, 10h mov rsi, [rbp+var_10] mov eax, [rbp+var_14] mov edx, eax call _strncmp cmp eax, 0 jnz short loc_431F5 mov eax, [rbp+var_1C] add eax, 1 mov [rbp+var_4], eax jmp loc_432A2 loc_431F5: jmp short $+2 loc_431F7: mov eax, [rbp+var_1C] add eax, 1 mov [rbp+var_1C], eax jmp short loc_43199 loc_43202: lea rdi, _ZL24thread_class_dirty_count; this mov esi, (offset dword_0+1); unsigned int * call _ZN10PFS_atomic7add_u32EPjj; PFS_atomic::add_u32(uint *,uint) mov [rbp+var_1C], eax mov eax, [rbp+var_1C] cmp rax, cs:thread_class_max jnb short loc_43280 mov rax, cs:_ZL18thread_class_array; thread_class_array mov ecx, [rbp+var_1C] imul rcx, 0C0h add rax, rcx mov [rbp+var_28], rax mov rdi, [rbp+var_28] add rdi, 10h mov rsi, [rbp+var_10] mov eax, [rbp+var_14] mov edx, eax call _strncpy mov ecx, [rbp+var_14] mov rax, [rbp+var_28] mov [rax+90h], ecx mov rax, [rbp+var_28] mov byte ptr [rax], 1 lea rdi, _ZL28thread_class_allocated_count; this mov esi, (offset dword_0+1); unsigned int * call _ZN10PFS_atomic7add_u32EPjj; PFS_atomic::add_u32(uint *,uint) mov eax, [rbp+var_1C] add eax, 1 mov [rbp+var_4], eax jmp short loc_432A2 loc_43280: cmp cs:pfs_enabled, 0 jz short loc_4329B mov rax, cs:thread_class_lost add rax, 1 mov cs:thread_class_lost, rax loc_4329B: mov [rbp+var_4], 0 loc_432A2: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long register_thread_class(const char *a1, unsigned int a2) { long long v3; // [rsp+8h] [rbp-28h] long long v4; // [rsp+8h] [rbp-28h] unsigned int i; // [rsp+14h] [rbp-1Ch] unsigned int v6; // [rsp+14h] [rbp-1Ch] for ( i = 0; i < (unsigned long long)thread_class_max; ++i ) { v3 = 192LL * i + thread_class_array; if ( *(_DWORD *)(v3 + 144) == a2 && !(unsigned int)strncmp(v3 + 16, a1, a2) ) return i + 1; } v6 = PFS_atomic::add_u32((PFS_atomic *)&thread_class_dirty_count, (unsigned int *)((char *)&dword_0 + 1)); if ( v6 >= (unsigned long long)thread_class_max ) { if ( pfs_enabled ) ++thread_class_lost; return 0; } else { v4 = 192LL * v6 + thread_class_array; strncpy(v4 + 16, a1, a2); *(_DWORD *)(v4 + 144) = a2; *(_BYTE *)v4 = 1; PFS_atomic::add_u32((PFS_atomic *)&thread_class_allocated_count, (unsigned int *)((char *)&dword_0 + 1)); return v6 + 1; } }
register_thread_class: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV dword ptr [RBP + -0x1c],0x0 LAB_00143199: MOV EAX,dword ptr [RBP + -0x1c] CMP RAX,qword ptr [0x0050ea30] JNC 0x00143202 MOV RAX,qword ptr [0x0050f2c8] MOV ECX,dword ptr [RBP + -0x1c] IMUL RCX,RCX,0xc0 ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX + 0x90] CMP EAX,dword ptr [RBP + -0x14] JNZ 0x001431f5 MOV RDI,qword ptr [RBP + -0x28] ADD RDI,0x10 MOV RSI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x14] MOV EDX,EAX CALL 0x00126170 CMP EAX,0x0 JNZ 0x001431f5 MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x1 MOV dword ptr [RBP + -0x4],EAX JMP 0x001432a2 LAB_001431f5: JMP 0x001431f7 LAB_001431f7: MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX JMP 0x00143199 LAB_00143202: LEA RDI,[0x50f2c4] MOV ESI,0x1 CALL 0x00133c80 MOV dword ptr [RBP + -0x1c],EAX MOV EAX,dword ptr [RBP + -0x1c] CMP RAX,qword ptr [0x0050ea30] JNC 0x00143280 MOV RAX,qword ptr [0x0050f2c8] MOV ECX,dword ptr [RBP + -0x1c] IMUL RCX,RCX,0xc0 ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x28] ADD RDI,0x10 MOV RSI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x14] MOV EDX,EAX CALL 0x001261a0 MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX + 0x90],ECX MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX],0x1 LEA RDI,[0x50f2c0] MOV ESI,0x1 CALL 0x00133c80 MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x1 MOV dword ptr [RBP + -0x4],EAX JMP 0x001432a2 LAB_00143280: CMP byte ptr [0x00317320],0x0 JZ 0x0014329b MOV RAX,qword ptr [0x0050ea38] ADD RAX,0x1 MOV qword ptr [0x0050ea38],RAX LAB_0014329b: MOV dword ptr [RBP + -0x4],0x0 LAB_001432a2: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
/* register_thread_class(char const*, unsigned int, int) */ int register_thread_class(char *param_1,uint param_2,int param_3) { int iVar1; uint uVar2; long lVar3; int1 *puVar4; uint local_24; int local_c; local_24 = 0; while( true ) { if (thread_class_max <= local_24) { uVar2 = PFS_atomic::add_u32(&thread_class_dirty_count,1); if (uVar2 < thread_class_max) { puVar4 = (int1 *)(thread_class_array + (ulong)uVar2 * 0xc0); strncpy(puVar4 + 0x10,param_1,(ulong)param_2); *(uint *)(puVar4 + 0x90) = param_2; *puVar4 = 1; PFS_atomic::add_u32(&thread_class_allocated_count,1); local_c = uVar2 + 1; } else { if (pfs_enabled != '\0') { thread_class_lost = thread_class_lost + 1; } local_c = 0; } return local_c; } lVar3 = thread_class_array + (ulong)local_24 * 0xc0; if ((*(uint *)(lVar3 + 0x90) == param_2) && (iVar1 = strncmp((char *)(lVar3 + 0x10),param_1,(ulong)param_2), iVar1 == 0)) break; local_24 = local_24 + 1; } return local_24 + 1; }