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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
36,200 | js_bigint_asUintN | bluesky950520[P]quickjs/quickjs.c | static JSValue js_bigint_asUintN(JSContext *ctx,
JSValue this_val,
int argc, JSValue *argv, int asIntN)
{
uint64_t bits;
bf_t a_s, *a = &a_s, *r, mask_s, *mask = &mask_s;
JSValue res;
if (JS_ToIndex(ctx, &bits, argv[0]))
return JS_EXCEPTION;
res = JS_NewBigInt(ctx);
if (JS_IsException(res))
return JS_EXCEPTION;
a = JS_ToBigInt(ctx, &a_s, argv[1]);
if (!a) {
JS_FreeValue(ctx, res);
return JS_EXCEPTION;
}
/* XXX: optimize */
r = JS_GetBigInt(res);
bf_init(ctx->bf_ctx, mask);
bf_set_ui(mask, 1);
bf_mul_2exp(mask, bits, BF_PREC_INF, BF_RNDZ);
bf_add_si(mask, mask, -1, BF_PREC_INF, BF_RNDZ);
bf_logic_and(r, a, mask);
if (asIntN && bits != 0) {
bf_set_ui(mask, 1);
bf_mul_2exp(mask, bits - 1, BF_PREC_INF, BF_RNDZ);
if (bf_cmpu(r, mask) >= 0) {
bf_set_ui(mask, 1);
bf_mul_2exp(mask, bits, BF_PREC_INF, BF_RNDZ);
bf_sub(r, r, mask, BF_PREC_INF, BF_RNDZ);
}
}
bf_delete(mask);
JS_FreeBigInt(ctx, a, &a_s);
return JS_CompactBigInt(ctx, res);
} | O3 | c | js_bigint_asUintN:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r9d, %ebp
movq %r8, %r12
movq %rdi, %r15
movq (%r8), %rdx
movq 0x8(%r8), %rcx
leaq 0x20(%rsp), %rsi
callq 0x280f0
testl %eax, %eax
je 0x71cff
xorl %eax, %eax
xorl %ecx, %ecx
movl $0x6, %ebx
orq %rcx, %rax
movq %rbx, %rdx
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x10031
movq %rdx, %rbx
cmpl $0x6, %ebx
je 0x71ce1
movq %rax, %r14
movq 0x10(%r12), %rdx
movq 0x18(%r12), %rcx
cmpl $-0x9, %ecx
jb 0x71d23
incl (%rdx)
leaq 0x50(%rsp), %rsi
movq %r15, %rdi
callq 0x3fbe4
testq %rax, %rax
je 0x71ebf
movq %r14, 0x10(%rsp)
leaq 0x8(%r14), %rcx
movq %rcx, 0x8(%rsp)
movq 0x1d0(%r15), %rdi
leaq 0x28(%rsp), %r12
movq %rax, %r13
movq %r12, %rsi
callq 0x87499
movl $0x1, %esi
movq %r12, %rdi
callq 0x87504
movq 0x20(%rsp), %r14
movq %r12, %rdi
movq %r14, %rsi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %ecx
callq 0x894ae
movq %r12, %rdi
movq %r12, %rsi
movq $-0x1, %rdx
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %r8d
callq 0x899d7
movq 0x8(%rsp), %rdi
movq %r13, 0x18(%rsp)
movq %r13, %rsi
movq %r12, %rdx
callq 0x8b07f
testl %ebp, %ebp
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x71e5a
leaq 0x28(%rsp), %r12
movl $0x1, %esi
movq %r12, %rdi
callq 0x87504
leaq -0x1(%r14), %rsi
movq %r12, %rdi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %ecx
callq 0x894ae
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x87e60
testl %eax, %eax
js 0x71e5a
leaq 0x28(%rsp), %r12
movl $0x1, %esi
movq %r12, %rdi
callq 0x87504
movq %r12, %rdi
movq %r14, %rsi
movabsq $0x3fffffffffffffff, %r14 # imm = 0x3FFFFFFFFFFFFFFF
movq %r14, %rdx
movl $0x1, %ecx
callq 0x894ae
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl $0x1, %r8d
callq 0x89a71
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0x71e76
movq 0x48(%rsp), %rsi
testq %rsi, %rsi
je 0x71e76
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
leaq 0x50(%rsp), %rdx
movq %r15, %rdi
movq 0x18(%rsp), %rsi
callq 0x3fba0
cmpq $-0x9, %rbx
movq 0x10(%rsp), %rdx
jne 0x71ea8
xorl %eax, %eax
cmpq 0x18(%rdx), %rax
jno 0x71ea8
cmpl $0x0, 0x10(%rdx)
je 0x71ea8
movl $0x0, 0x10(%rdx)
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %rdx, %rcx
andq %rax, %rcx
movl %edx, %eax
jmp 0x71cea
cmpl $-0x9, %ebx
jb 0x71ce1
movq 0x18(%r15), %rdi
movl (%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r14)
cmpl $0x1, %eax
jg 0x71ce1
movq %r14, %rsi
movq %rbx, %rdx
callq 0x219cc
jmp 0x71ce1
| js_bigint_asUintN:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov ebp, r9d
mov r12, r8
mov r15, rdi
mov rdx, [r8]
mov rcx, [r8+8]
lea rsi, [rsp+0A8h+var_88]
call JS_ToIndex
test eax, eax
jz short loc_71CFF
loc_71CE1:
xor eax, eax
xor ecx, ecx
mov ebx, 6
loc_71CEA:
or rax, rcx
mov rdx, rbx
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_71CFF:
mov rdi, r15
call JS_NewBigInt
mov rbx, rdx
cmp ebx, 6
jz short loc_71CE1
mov r14, rax
mov rdx, [r12+10h]
mov rcx, [r12+18h]
cmp ecx, 0FFFFFFF7h
jb short loc_71D23
inc dword ptr [rdx]
loc_71D23:
lea rsi, [rsp+0A8h+var_58]
mov rdi, r15
call JS_ToBigIntFree
test rax, rax
jz loc_71EBF
mov [rsp+0A8h+var_98], r14
lea rcx, [r14+8]
mov [rsp+0A8h+var_A0], rcx
mov rdi, [r15+1D0h]
lea r12, [rsp+0A8h+var_80]
mov r13, rax
mov rsi, r12
call bf_init
mov esi, 1
mov rdi, r12
call bf_set_ui
mov r14, [rsp+0A8h+var_88]
mov rdi, r12
mov rsi, r14
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 1
call bf_mul_2exp
mov rdi, r12
mov rsi, r12
mov rdx, 0FFFFFFFFFFFFFFFFh
mov rcx, 3FFFFFFFFFFFFFFFh
mov r8d, 1
call bf_add_si
mov rdi, [rsp+0A8h+var_A0]
mov [rsp+0A8h+var_90], r13
mov rsi, r13
mov rdx, r12
call bf_logic_and
test ebp, ebp
setz al
test r14, r14
setz cl
or cl, al
jnz loc_71E5A
lea r12, [rsp+0A8h+var_80]
mov esi, 1
mov rdi, r12
call bf_set_ui
lea rsi, [r14-1]
mov rdi, r12
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 1
call bf_mul_2exp
mov rdi, [rsp+0A8h+var_A0]
mov rsi, r12
call bf_cmpu
test eax, eax
js short loc_71E5A
lea r12, [rsp+0A8h+var_80]
mov esi, 1
mov rdi, r12
call bf_set_ui
mov rdi, r12
mov rsi, r14
mov r14, 3FFFFFFFFFFFFFFFh
mov rdx, r14
mov ecx, 1
call bf_mul_2exp
mov rdi, [rsp+0A8h+var_A0]
mov rsi, rdi
mov rdx, r12
mov rcx, r14
mov r8d, 1
call bf_sub
loc_71E5A:
mov rax, [rsp+0A8h+var_80]
test rax, rax
jz short loc_71E76
mov rsi, [rsp+0A8h+var_60]
test rsi, rsi
jz short loc_71E76
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_71E76:
lea rdx, [rsp+0A8h+var_58]
mov rdi, r15
mov rsi, [rsp+0A8h+var_90]
call JS_FreeBigInt
cmp rbx, 0FFFFFFFFFFFFFFF7h
mov rdx, [rsp+0A8h+var_98]
jnz short loc_71EA8
xor eax, eax
cmp rax, [rdx+18h]
jno short loc_71EA8
cmp dword ptr [rdx+10h], 0
jz short loc_71EA8
mov dword ptr [rdx+10h], 0
loc_71EA8:
mov rax, 0FFFFFFFF00000000h
mov rcx, rdx
and rcx, rax
mov eax, edx
jmp loc_71CEA
loc_71EBF:
cmp ebx, 0FFFFFFF7h
jb loc_71CE1
mov rdi, [r15+18h]
mov eax, [r14]
lea ecx, [rax-1]
mov [r14], ecx
cmp eax, 1
jg loc_71CE1
mov rsi, r14
mov rdx, rbx
call js_free_value_rt
jmp loc_71CE1
| unsigned long long js_bigint_asUintN(
long long a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
double a6,
double a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
long long a13,
int a14)
{
long long v16; // rax
unsigned long long v17; // rcx
_DWORD *v19; // rax
long long v20; // r8
long long v21; // r9
__m128 v22; // xmm4
__m128 v23; // xmm5
long long v24; // rdx
long long v25; // rbx
_QWORD *v26; // r14
_DWORD *v27; // rdx
long long v28; // rcx
long long *v29; // rax
long long *v30; // r13
unsigned long long v31; // r14
long long v32; // rdi
int v33; // eax
_QWORD *v34; // [rsp+8h] [rbp-A0h]
unsigned long long v35; // [rsp+10h] [rbp-98h]
unsigned long long v36; // [rsp+20h] [rbp-88h] BYREF
_QWORD v37[4]; // [rsp+28h] [rbp-80h] BYREF
long long v38; // [rsp+48h] [rbp-60h]
long long v39[11]; // [rsp+50h] [rbp-58h] BYREF
if ( (unsigned int)JS_ToIndex(a1, &v36, *(_DWORD **)a13, *(_QWORD *)(a13 + 8), a2, a3, a4, a5, a6, a7, a8, a9)
|| (v19 = JS_NewBigInt(a1), v25 = v24, (_DWORD)v24 == 6) )
{
LABEL_2:
v16 = 0LL;
v17 = 0LL;
return v17 | v16;
}
v26 = v19;
v27 = *(_DWORD **)(a13 + 16);
v28 = *(_QWORD *)(a13 + 24);
if ( (unsigned int)v28 >= 0xFFFFFFF7 )
++*v27;
v29 = JS_ToBigIntFree(a1, (long long)v39, (long long)v27, v28, v20, v21, a2, a3, a4, a5, v22, v23, a8, a9);
if ( !v29 )
{
if ( (unsigned int)v25 >= 0xFFFFFFF7 )
{
v32 = *(_QWORD *)(a1 + 24);
v33 = (*(_DWORD *)v26)--;
if ( v33 <= 1 )
js_free_value_rt(v32, v26, v25);
}
goto LABEL_2;
}
v35 = (unsigned long long)v26;
v34 = v26 + 1;
v30 = v29;
bf_init(*(_QWORD *)(a1 + 464), v37);
bf_set_ui(v37, 1LL);
v31 = v36;
bf_mul_2exp(v37, v36, 0x3FFFFFFFFFFFFFFFLL, 1LL);
bf_add_si(v37, v37, -1LL, 0x3FFFFFFFFFFFFFFFLL, 1LL);
bf_logic_and(v34, v30, v37);
if ( a14 != 0 && v31 != 0 )
{
bf_set_ui(v37, 1LL);
bf_mul_2exp(v37, v31 - 1, 0x3FFFFFFFFFFFFFFFLL, 1LL);
if ( (int)bf_cmpu(v34, v37) >= 0 )
{
bf_set_ui(v37, 1LL);
bf_mul_2exp(v37, v31, 0x3FFFFFFFFFFFFFFFLL, 1LL);
bf_sub(v34, v34, v37, 0x3FFFFFFFFFFFFFFFLL, 1LL);
}
}
if ( v37[0] && v38 )
(*(void ( **)(_QWORD, long long, _QWORD))(v37[0] + 8LL))(*(_QWORD *)v37[0], v38, 0LL);
JS_FreeBigInt(a1, v30, v39);
if ( v25 == -9 && __OFSUB__(0LL, *(_QWORD *)(v35 + 24)) && *(_DWORD *)(v35 + 16) )
*(_DWORD *)(v35 + 16) = 0;
v17 = v35 & 0xFFFFFFFF00000000LL;
v16 = (unsigned int)v35;
return v17 | v16;
}
| js_bigint_asUintN:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV EBP,R9D
MOV R12,R8
MOV R15,RDI
MOV RDX,qword ptr [R8]
MOV RCX,qword ptr [R8 + 0x8]
LEA RSI,[RSP + 0x20]
CALL 0x001280f0
TEST EAX,EAX
JZ 0x00171cff
LAB_00171ce1:
XOR EAX,EAX
XOR ECX,ECX
MOV EBX,0x6
LAB_00171cea:
OR RAX,RCX
MOV RDX,RBX
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00171cff:
MOV RDI,R15
CALL 0x00110031
MOV RBX,RDX
CMP EBX,0x6
JZ 0x00171ce1
MOV R14,RAX
MOV RDX,qword ptr [R12 + 0x10]
MOV RCX,qword ptr [R12 + 0x18]
CMP ECX,-0x9
JC 0x00171d23
INC dword ptr [RDX]
LAB_00171d23:
LEA RSI,[RSP + 0x50]
MOV RDI,R15
CALL 0x0013fbe4
TEST RAX,RAX
JZ 0x00171ebf
MOV qword ptr [RSP + 0x10],R14
LEA RCX,[R14 + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RDI,qword ptr [R15 + 0x1d0]
LEA R12,[RSP + 0x28]
MOV R13,RAX
MOV RSI,R12
CALL 0x00187499
MOV ESI,0x1
MOV RDI,R12
CALL 0x00187504
MOV R14,qword ptr [RSP + 0x20]
MOV RDI,R12
MOV RSI,R14
MOV RDX,0x3fffffffffffffff
MOV ECX,0x1
CALL 0x001894ae
MOV RDI,R12
MOV RSI,R12
MOV RDX,-0x1
MOV RCX,0x3fffffffffffffff
MOV R8D,0x1
CALL 0x001899d7
MOV RDI,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x18],R13
MOV RSI,R13
MOV RDX,R12
CALL 0x0018b07f
TEST EBP,EBP
SETZ AL
TEST R14,R14
SETZ CL
OR CL,AL
JNZ 0x00171e5a
LEA R12,[RSP + 0x28]
MOV ESI,0x1
MOV RDI,R12
CALL 0x00187504
LEA RSI,[R14 + -0x1]
MOV RDI,R12
MOV RDX,0x3fffffffffffffff
MOV ECX,0x1
CALL 0x001894ae
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R12
CALL 0x00187e60
TEST EAX,EAX
JS 0x00171e5a
LEA R12,[RSP + 0x28]
MOV ESI,0x1
MOV RDI,R12
CALL 0x00187504
MOV RDI,R12
MOV RSI,R14
MOV R14,0x3fffffffffffffff
MOV RDX,R14
MOV ECX,0x1
CALL 0x001894ae
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RDI
MOV RDX,R12
MOV RCX,R14
MOV R8D,0x1
CALL 0x00189a71
LAB_00171e5a:
MOV RAX,qword ptr [RSP + 0x28]
TEST RAX,RAX
JZ 0x00171e76
MOV RSI,qword ptr [RSP + 0x48]
TEST RSI,RSI
JZ 0x00171e76
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
LAB_00171e76:
LEA RDX,[RSP + 0x50]
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x0013fba0
CMP RBX,-0x9
MOV RDX,qword ptr [RSP + 0x10]
JNZ 0x00171ea8
XOR EAX,EAX
CMP RAX,qword ptr [RDX + 0x18]
JNO 0x00171ea8
CMP dword ptr [RDX + 0x10],0x0
JZ 0x00171ea8
MOV dword ptr [RDX + 0x10],0x0
LAB_00171ea8:
MOV RAX,-0x100000000
MOV RCX,RDX
AND RCX,RAX
MOV EAX,EDX
JMP 0x00171cea
LAB_00171ebf:
CMP EBX,-0x9
JC 0x00171ce1
MOV RDI,qword ptr [R15 + 0x18]
MOV EAX,dword ptr [R14]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R14],ECX
CMP EAX,0x1
JG 0x00171ce1
MOV RSI,R14
MOV RDX,RBX
CALL 0x001219cc
JMP 0x00171ce1
|
/* WARNING: Removing unreachable block (ram,0x00171e9b) */
/* WARNING: Removing unreachable block (ram,0x00171ea1) */
int1 [16] js_bigint_asUintN(long param_1)
{
int *piVar1;
int8 uVar2;
int iVar3;
ulong uVar4;
long lVar6;
ulong uVar7;
int8 uVar8;
int8 *in_R8;
int in_R9D;
int1 auVar9 [16];
long local_88;
int8 *local_80 [4];
long local_60;
int1 local_58 [40];
int *piVar5;
iVar3 = JS_ToIndex(param_1,&local_88,*in_R8,in_R8[1]);
if (iVar3 == 0) {
auVar9 = JS_NewBigInt(param_1);
uVar8 = auVar9._8_8_;
piVar5 = auVar9._0_8_;
if (auVar9._8_4_ != 6) {
if (0xfffffff6 < (uint)in_R8[3]) {
*(int *)in_R8[2] = *(int *)in_R8[2] + 1;
}
lVar6 = JS_ToBigIntFree(param_1,local_58);
if (lVar6 != 0) {
piVar1 = piVar5 + 2;
bf_init(*(int8 *)(param_1 + 0x1d0),local_80);
bf_set_ui(local_80,1);
bf_mul_2exp(local_80,local_88,0x3fffffffffffffff,1);
bf_add_si(local_80,local_80,0xffffffffffffffff,0x3fffffffffffffff,1);
bf_logic_and(piVar1,lVar6,local_80);
if (local_88 != 0 && in_R9D != 0) {
bf_set_ui(local_80,1);
bf_mul_2exp(local_80,local_88 + -1,0x3fffffffffffffff,1);
iVar3 = bf_cmpu(piVar1,local_80);
if (-1 < iVar3) {
bf_set_ui(local_80,1);
bf_mul_2exp(local_80,local_88,0x3fffffffffffffff,1);
bf_sub(piVar1,piVar1,local_80,0x3fffffffffffffff,1);
}
}
if ((local_80[0] != (int8 *)0x0) && (local_60 != 0)) {
(*(code *)local_80[0][1])(*local_80[0],local_60,0);
}
JS_FreeBigInt(param_1,lVar6,local_58);
uVar7 = (ulong)piVar5 & 0xffffffff00000000;
uVar4 = (ulong)piVar5 & 0xffffffff;
goto LAB_00171cea;
}
if (0xfffffff6 < auVar9._8_4_) {
uVar2 = *(int8 *)(param_1 + 0x18);
iVar3 = *piVar5;
*piVar5 = iVar3 + -1;
if (iVar3 < 2) {
js_free_value_rt(uVar2,piVar5,uVar8);
}
}
}
}
uVar4 = 0;
uVar7 = 0;
uVar8 = 6;
LAB_00171cea:
auVar9._0_8_ = uVar4 | uVar7;
auVar9._8_8_ = uVar8;
return auVar9;
}
| |
36,201 | my_uca_generate_implicit_page | eloqsql/strings/ctype-uca.c | static my_bool
my_uca_generate_implicit_page(MY_CHARSET_LOADER *loader,
MY_UCA_WEIGHT_LEVEL *dst,
uint page)
{
uint chc, size= 256 * dst->lengths[page] * sizeof(uint16);
if (!(dst->weights[page]= (uint16 *) (loader->once_alloc)(size)))
return TRUE;
memset(dst->weights[page], 0, size);
for (chc= 0 ; chc < 256; chc++)
{
uint16 *w= dst->weights[page] + chc * dst->lengths[page];
my_uca_implicit_weight_put(w, (page << 8) + chc, dst->levelno);
}
return FALSE;
} | O0 | c | my_uca_generate_implicit_page:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x1c(%rbp), %ecx
movzbl (%rax,%rcx), %eax
shll $0x8, %eax
cltq
shlq %rax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movl -0x24(%rbp), %ecx
movl %ecx, %edi
callq *%rax
movq -0x18(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x1c(%rbp), %edx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
jne 0x5e85d
movb $0x1, -0x1(%rbp)
jmp 0x5e8e4
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
movq (%rax,%rcx,8), %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x24180
movl $0x0, -0x20(%rbp)
cmpl $0x100, -0x20(%rbp) # imm = 0x100
jae 0x5e8e0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl -0x20(%rbp), %ecx
movq -0x18(%rbp), %rdx
movq 0x8(%rdx), %rdx
movl -0x1c(%rbp), %esi
movzbl (%rdx,%rsi), %edx
imull %edx, %ecx
movl %ecx, %ecx
shlq %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movl -0x1c(%rbp), %eax
shll $0x8, %eax
addl -0x20(%rbp), %eax
movl %eax, %eax
movl %eax, %esi
movq -0x18(%rbp), %rax
movl 0x30(%rax), %edx
callq 0x5e8f0
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x5e87f
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| my_uca_generate_implicit_page:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov ecx, [rbp+var_1C]
movzx eax, byte ptr [rax+rcx]
shl eax, 8
cdqe
shl rax, 1
mov [rbp+var_24], eax
mov rax, [rbp+var_10]
mov rax, [rax+80h]
mov ecx, [rbp+var_24]
mov edi, ecx
call rax
mov rcx, [rbp+var_18]
mov rcx, [rcx+10h]
mov edx, [rbp+var_1C]
mov [rcx+rdx*8], rax
cmp rax, 0
jnz short loc_5E85D
mov [rbp+var_1], 1
jmp loc_5E8E4
loc_5E85D:
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov ecx, [rbp+var_1C]
mov rdi, [rax+rcx*8]
mov eax, [rbp+var_24]
mov edx, eax
xor esi, esi
call _memset
mov [rbp+var_20], 0
loc_5E87F:
cmp [rbp+var_20], 100h
jnb short loc_5E8E0
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov ecx, [rbp+var_1C]
mov rax, [rax+rcx*8]
mov ecx, [rbp+var_20]
mov rdx, [rbp+var_18]
mov rdx, [rdx+8]
mov esi, [rbp+var_1C]
movzx edx, byte ptr [rdx+rsi]
imul ecx, edx
mov ecx, ecx
shl rcx, 1
add rax, rcx
mov [rbp+var_30], rax
mov rdi, [rbp+var_30]
mov eax, [rbp+var_1C]
shl eax, 8
add eax, [rbp+var_20]
mov eax, eax
mov esi, eax
mov rax, [rbp+var_18]
mov edx, [rax+30h]
call my_uca_implicit_weight_put
mov eax, [rbp+var_20]
add eax, 1
mov [rbp+var_20], eax
jmp short loc_5E87F
loc_5E8E0:
mov [rbp+var_1], 0
loc_5E8E4:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char my_uca_generate_implicit_page(long long a1, long long a2, unsigned int a3)
{
long long v3; // rax
unsigned int v5; // [rsp+Ch] [rbp-24h]
unsigned int i; // [rsp+10h] [rbp-20h]
v5 = *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a3) << 9;
v3 = (*(long long ( **)(_QWORD))(a1 + 128))(v5);
*(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * a3) = v3;
if ( !v3 )
return 1;
memset(*(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * a3), 0LL, v5);
for ( i = 0; i < 0x100; ++i )
my_uca_implicit_weight_put(
2LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a3) * i + *(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * a3),
i + (a3 << 8),
*(unsigned int *)(a2 + 48));
return 0;
}
| my_uca_generate_implicit_page:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV ECX,dword ptr [RBP + -0x1c]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
SHL EAX,0x8
CDQE
SHL RAX,0x1
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x80]
MOV ECX,dword ptr [RBP + -0x24]
MOV EDI,ECX
CALL RAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX + 0x10]
MOV EDX,dword ptr [RBP + -0x1c]
MOV qword ptr [RCX + RDX*0x8],RAX
CMP RAX,0x0
JNZ 0x0015e85d
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015e8e4
LAB_0015e85d:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV ECX,dword ptr [RBP + -0x1c]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x00124180
MOV dword ptr [RBP + -0x20],0x0
LAB_0015e87f:
CMP dword ptr [RBP + -0x20],0x100
JNC 0x0015e8e0
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV ECX,dword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RDX + 0x8]
MOV ESI,dword ptr [RBP + -0x1c]
MOVZX EDX,byte ptr [RDX + RSI*0x1]
IMUL ECX,EDX
MOV ECX,ECX
SHL RCX,0x1
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RBP + -0x1c]
SHL EAX,0x8
ADD EAX,dword ptr [RBP + -0x20]
MOV EAX,EAX
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RAX + 0x30]
CALL 0x0015e8f0
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
JMP 0x0015e87f
LAB_0015e8e0:
MOV byte ptr [RBP + -0x1],0x0
LAB_0015e8e4:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 my_uca_generate_implicit_page(long param_1,long param_2,uint param_3)
{
size_t __n;
long lVar1;
int4 local_28;
int1 local_9;
__n = (long)(int)((uint)*(byte *)(*(long *)(param_2 + 8) + (ulong)param_3) << 8) << 1;
lVar1 = (**(code **)(param_1 + 0x80))(__n);
*(long *)(*(long *)(param_2 + 0x10) + (ulong)param_3 * 8) = lVar1;
if (lVar1 == 0) {
local_9 = 1;
}
else {
memset(*(void **)(*(long *)(param_2 + 0x10) + (ulong)param_3 * 8),0,__n);
for (local_28 = 0; local_28 < 0x100; local_28 = local_28 + 1) {
my_uca_implicit_weight_put
(*(long *)(*(long *)(param_2 + 0x10) + (ulong)param_3 * 8) +
(ulong)(local_28 * *(byte *)(*(long *)(param_2 + 8) + (ulong)param_3)) * 2,
param_3 * 0x100 + local_28,*(int4 *)(param_2 + 0x30));
}
local_9 = 0;
}
return local_9;
}
| |
36,202 | plutovg_rasterize | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-rasterize.c | void plutovg_rasterize(plutovg_span_buffer_t* span_buffer, const plutovg_path_t* path, const plutovg_matrix_t* matrix, const plutovg_rect_t* clip_rect, const plutovg_stroke_data_t* stroke_data, plutovg_fill_rule_t winding)
{
PVG_FT_Outline* outline = ft_outline_convert(path, matrix, stroke_data);
if(stroke_data) {
outline->flags = PVG_FT_OUTLINE_NONE;
} else {
switch(winding) {
case PLUTOVG_FILL_RULE_EVEN_ODD:
outline->flags = PVG_FT_OUTLINE_EVEN_ODD_FILL;
break;
default:
outline->flags = PVG_FT_OUTLINE_NONE;
break;
}
}
PVG_FT_Raster_Params params;
params.flags = PVG_FT_RASTER_FLAG_DIRECT | PVG_FT_RASTER_FLAG_AA;
params.gray_spans = spans_generation_callback;
params.user = span_buffer;
params.source = outline;
if(clip_rect) {
params.flags |= PVG_FT_RASTER_FLAG_CLIP;
params.clip_box.xMin = (PVG_FT_Pos)clip_rect->x;
params.clip_box.yMin = (PVG_FT_Pos)clip_rect->y;
params.clip_box.xMax = (PVG_FT_Pos)(clip_rect->x + clip_rect->w);
params.clip_box.yMax = (PVG_FT_Pos)(clip_rect->y + clip_rect->h);
}
plutovg_span_buffer_reset(span_buffer);
PVG_FT_Raster_Render(¶ms);
ft_outline_destroy(outline);
} | O0 | c | plutovg_rasterize:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x13780
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x136ac
movq -0x38(%rbp), %rax
movl $0x0, 0x28(%rax)
jmp 0x136d0
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x136c3
jmp 0x136b6
movq -0x38(%rbp), %rax
movl $0x2, 0x28(%rax)
jmp 0x136ce
movq -0x38(%rbp), %rax
movl $0x0, 0x28(%rax)
jmp 0x136d0
movl $0x3, -0x70(%rbp)
leaq 0x202(%rip), %rax # 0x138e0
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x13752
movl -0x70(%rbp), %eax
orl $0x4, %eax
movl %eax, -0x70(%rbp)
movq -0x20(%rbp), %rax
cvttss2si (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rax
cvttss2si 0x4(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movss (%rax), %xmm0
movq -0x20(%rbp), %rax
addss 0x8(%rax), %xmm0
cvttss2si %xmm0, %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movss 0x4(%rax), %xmm0
movq -0x20(%rbp), %rax
addss 0xc(%rax), %xmm0
cvttss2si %xmm0, %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
callq 0x12dd0
leaq -0x78(%rbp), %rdi
callq 0x2f530
movq -0x38(%rbp), %rdi
callq 0x139d0
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| plutovg_rasterize:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_2C], r9d
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_28]
call ft_outline_convert
mov [rbp+var_38], rax
cmp [rbp+var_28], 0
jz short loc_136AC
mov rax, [rbp+var_38]
mov dword ptr [rax+28h], 0
jmp short loc_136D0
loc_136AC:
mov eax, [rbp+var_2C]
sub eax, 1
jnz short loc_136C3
jmp short $+2
loc_136B6:
mov rax, [rbp+var_38]
mov dword ptr [rax+28h], 2
jmp short loc_136CE
loc_136C3:
mov rax, [rbp+var_38]
mov dword ptr [rax+28h], 0
loc_136CE:
jmp short $+2
loc_136D0:
mov [rbp+var_70], 3
lea rax, spans_generation_callback
mov [rbp+var_68], rax
mov rax, [rbp+var_8]
mov [rbp+var_60], rax
mov rax, [rbp+var_38]
mov [rbp+var_78], rax
cmp [rbp+var_20], 0
jz short loc_13752
mov eax, [rbp+var_70]
or eax, 4
mov [rbp+var_70], eax
mov rax, [rbp+var_20]
cvttss2si rax, dword ptr [rax]
mov [rbp+var_58], rax
mov rax, [rbp+var_20]
cvttss2si rax, dword ptr [rax+4]
mov [rbp+var_50], rax
mov rax, [rbp+var_20]
movss xmm0, dword ptr [rax]
mov rax, [rbp+var_20]
addss xmm0, dword ptr [rax+8]
cvttss2si rax, xmm0
mov [rbp+var_48], rax
mov rax, [rbp+var_20]
movss xmm0, dword ptr [rax+4]
mov rax, [rbp+var_20]
addss xmm0, dword ptr [rax+0Ch]
cvttss2si rax, xmm0
mov [rbp+var_40], rax
loc_13752:
mov rdi, [rbp+var_8]
call plutovg_span_buffer_reset
lea rdi, [rbp+var_78]
call PVG_FT_Raster_Render
mov rdi, [rbp+var_38]
call ft_outline_destroy
add rsp, 80h
pop rbp
retn
| long long plutovg_rasterize(_DWORD *a1, long long a2, long long a3, float *a4, long long a5, int a6)
{
long long v7; // [rsp+8h] [rbp-78h] BYREF
int v8; // [rsp+10h] [rbp-70h]
long long ( *v9)(); // [rsp+18h] [rbp-68h]
_DWORD *v10; // [rsp+20h] [rbp-60h]
long long v11; // [rsp+28h] [rbp-58h]
long long v12; // [rsp+30h] [rbp-50h]
long long v13; // [rsp+38h] [rbp-48h]
long long v14; // [rsp+40h] [rbp-40h]
long long v15; // [rsp+48h] [rbp-38h]
int v16; // [rsp+54h] [rbp-2Ch]
long long v17; // [rsp+58h] [rbp-28h]
float *v18; // [rsp+60h] [rbp-20h]
long long v19; // [rsp+68h] [rbp-18h]
long long v20; // [rsp+70h] [rbp-10h]
_DWORD *v21; // [rsp+78h] [rbp-8h]
v21 = a1;
v20 = a2;
v19 = a3;
v18 = a4;
v17 = a5;
v16 = a6;
v15 = ft_outline_convert(a2, a3, a5);
if ( v17 )
{
*(_DWORD *)(v15 + 40) = 0;
}
else if ( v16 == 1 )
{
*(_DWORD *)(v15 + 40) = 2;
}
else
{
*(_DWORD *)(v15 + 40) = 0;
}
v8 = 3;
v9 = spans_generation_callback;
v10 = v21;
v7 = v15;
if ( v18 )
{
v8 |= 4u;
v11 = (unsigned int)(int)*v18;
v12 = (unsigned int)(int)v18[1];
v13 = (unsigned int)(int)(float)(*v18 + v18[2]);
v14 = (unsigned int)(int)(float)(v18[1] + v18[3]);
}
plutovg_span_buffer_reset(v21);
PVG_FT_Raster_Render(&v7);
return ft_outline_destroy(v15);
}
| plutovg_rasterize:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
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 dword ptr [RBP + -0x2c],R9D
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00113780
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x28],0x0
JZ 0x001136ac
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x28],0x0
JMP 0x001136d0
LAB_001136ac:
MOV EAX,dword ptr [RBP + -0x2c]
SUB EAX,0x1
JNZ 0x001136c3
JMP 0x001136b6
LAB_001136b6:
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x28],0x2
JMP 0x001136ce
LAB_001136c3:
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x28],0x0
LAB_001136ce:
JMP 0x001136d0
LAB_001136d0:
MOV dword ptr [RBP + -0x70],0x3
LEA RAX,[0x1138e0]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x78],RAX
CMP qword ptr [RBP + -0x20],0x0
JZ 0x00113752
MOV EAX,dword ptr [RBP + -0x70]
OR EAX,0x4
MOV dword ptr [RBP + -0x70],EAX
MOV RAX,qword ptr [RBP + -0x20]
CVTTSS2SI RAX,dword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x20]
CVTTSS2SI RAX,dword ptr [RAX + 0x4]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOVSS XMM0,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
ADDSS XMM0,dword ptr [RAX + 0x8]
CVTTSS2SI RAX,XMM0
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOVSS XMM0,dword ptr [RAX + 0x4]
MOV RAX,qword ptr [RBP + -0x20]
ADDSS XMM0,dword ptr [RAX + 0xc]
CVTTSS2SI RAX,XMM0
MOV qword ptr [RBP + -0x40],RAX
LAB_00113752:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00112dd0
LEA RDI,[RBP + -0x78]
CALL 0x0012f530
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x001139d0
ADD RSP,0x80
POP RBP
RET
|
void plutovg_rasterize(int8 param_1,int8 param_2,int8 param_3,float *param_4,
long param_5,int param_6)
{
long local_80;
int4 local_78;
code *local_70;
int8 local_68;
long local_60;
long local_58;
long local_50;
long local_48;
long local_40;
int local_34;
long local_30;
float *local_28;
int8 local_20;
int8 local_18;
int8 local_10;
local_34 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_80 = ft_outline_convert(param_2,param_3,param_5);
if (local_30 == 0) {
if (local_34 == 1) {
*(int4 *)(local_80 + 0x28) = 2;
}
else {
*(int4 *)(local_80 + 0x28) = 0;
}
}
else {
*(int4 *)(local_80 + 0x28) = 0;
}
local_78 = 3;
local_70 = spans_generation_callback;
local_68 = local_10;
if (local_28 != (float *)0x0) {
local_78 = 7;
local_60 = (long)*local_28;
local_58 = (long)local_28[1];
local_50 = (long)(*local_28 + local_28[2]);
local_48 = (long)(local_28[1] + local_28[3]);
}
local_40 = local_80;
plutovg_span_buffer_reset(local_10);
PVG_FT_Raster_Render(&local_80);
ft_outline_destroy(local_40);
return;
}
| |
36,203 | plutovg_rasterize | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-rasterize.c | void plutovg_rasterize(plutovg_span_buffer_t* span_buffer, const plutovg_path_t* path, const plutovg_matrix_t* matrix, const plutovg_rect_t* clip_rect, const plutovg_stroke_data_t* stroke_data, plutovg_fill_rule_t winding)
{
PVG_FT_Outline* outline = ft_outline_convert(path, matrix, stroke_data);
if(stroke_data) {
outline->flags = PVG_FT_OUTLINE_NONE;
} else {
switch(winding) {
case PLUTOVG_FILL_RULE_EVEN_ODD:
outline->flags = PVG_FT_OUTLINE_EVEN_ODD_FILL;
break;
default:
outline->flags = PVG_FT_OUTLINE_NONE;
break;
}
}
PVG_FT_Raster_Params params;
params.flags = PVG_FT_RASTER_FLAG_DIRECT | PVG_FT_RASTER_FLAG_AA;
params.gray_spans = spans_generation_callback;
params.user = span_buffer;
params.source = outline;
if(clip_rect) {
params.flags |= PVG_FT_RASTER_FLAG_CLIP;
params.clip_box.xMin = (PVG_FT_Pos)clip_rect->x;
params.clip_box.yMin = (PVG_FT_Pos)clip_rect->y;
params.clip_box.xMax = (PVG_FT_Pos)(clip_rect->x + clip_rect->w);
params.clip_box.yMax = (PVG_FT_Pos)(clip_rect->y + clip_rect->h);
}
plutovg_span_buffer_reset(span_buffer);
PVG_FT_Raster_Render(¶ms);
ft_outline_destroy(outline);
} | O1 | c | plutovg_rasterize:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %r9d, %ebp
movq %r8, %r12
movq %rcx, %r15
movq %rdi, %r14
movq %rsi, %rdi
movq %rdx, %rsi
movq %r8, %rdx
callq 0xd21e
movq %rax, %rbx
testq %r12, %r12
jne 0xd17d
cmpl $0x1, %ebp
jne 0xd17d
movl $0x2, 0x28(%rbx)
jmp 0xd184
movl $0x0, 0x28(%rbx)
movl $0x3, 0x8(%rsp)
leaq 0x4ff(%rip), %rax # 0xd692
movq %rax, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movq %rbx, (%rsp)
testq %r15, %r15
je 0xd1ed
movl $0x7, 0x8(%rsp)
movss (%r15), %xmm0
cvttss2si %xmm0, %rax
movq %rax, 0x20(%rsp)
movss 0x4(%r15), %xmm1
cvttss2si %xmm1, %rax
movq %rax, 0x28(%rsp)
addss 0x8(%r15), %xmm0
cvttss2si %xmm0, %rax
movq %rax, 0x30(%rsp)
addss 0xc(%r15), %xmm1
cvttss2si %xmm1, %rax
movq %rax, 0x38(%rsp)
movl $0x0, 0x8(%r14)
movaps 0x16d24(%rip), %xmm0 # 0x23f20
movups %xmm0, 0x10(%r14)
movq %rsp, %rdi
callq 0x1b5e6
movq %rbx, %rdi
callq 0x32c0
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| plutovg_rasterize:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 40h
mov ebp, r9d
mov r12, r8
mov r15, rcx
mov r14, rdi
mov rdi, rsi
mov rsi, rdx
mov rdx, r8
call ft_outline_convert
mov rbx, rax
test r12, r12
jnz short loc_D17D
cmp ebp, 1
jnz short loc_D17D
mov dword ptr [rbx+28h], 2
jmp short loc_D184
loc_D17D:
mov dword ptr [rbx+28h], 0
loc_D184:
mov [rsp+68h+var_60], 3
lea rax, spans_generation_callback
mov [rsp+68h+var_58], rax
mov [rsp+68h+var_50], r14
mov [rsp+68h+var_68], rbx
test r15, r15
jz short loc_D1ED
mov [rsp+68h+var_60], 7
movss xmm0, dword ptr [r15]
cvttss2si rax, xmm0
mov [rsp+68h+var_48], rax
movss xmm1, dword ptr [r15+4]
cvttss2si rax, xmm1
mov [rsp+68h+var_40], rax
addss xmm0, dword ptr [r15+8]
cvttss2si rax, xmm0
mov [rsp+68h+var_38], rax
addss xmm1, dword ptr [r15+0Ch]
cvttss2si rax, xmm1
mov [rsp+68h+var_30], rax
loc_D1ED:
mov dword ptr [r14+8], 0
movaps xmm0, cs:xmmword_23F20
movups xmmword ptr [r14+10h], xmm0
mov rdi, rsp
call PVG_FT_Raster_Render
mov rdi, rbx
call free
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long plutovg_rasterize(long long a1, long long a2, long long a3, float *a4, long long a5, int a6)
{
long long v9; // rax
long long v10; // rbx
float v11; // xmm0_4
float v12; // xmm1_4
long long v14; // [rsp+0h] [rbp-68h] BYREF
int v15; // [rsp+8h] [rbp-60h]
long long ( *v16)(); // [rsp+10h] [rbp-58h]
long long v17; // [rsp+18h] [rbp-50h]
long long v18; // [rsp+20h] [rbp-48h]
long long v19; // [rsp+28h] [rbp-40h]
long long v20; // [rsp+30h] [rbp-38h]
long long v21; // [rsp+38h] [rbp-30h]
v9 = ft_outline_convert(a2, a3, a5);
v10 = v9;
if ( a5 || a6 != 1 )
*(_DWORD *)(v9 + 40) = 0;
else
*(_DWORD *)(v9 + 40) = 2;
v15 = 3;
v16 = spans_generation_callback;
v17 = a1;
v14 = v9;
if ( a4 )
{
v15 = 7;
v11 = *a4;
v18 = (unsigned int)(int)*a4;
v12 = a4[1];
v19 = (unsigned int)(int)v12;
v20 = (unsigned int)(int)(float)(v11 + a4[2]);
v21 = (unsigned int)(int)(float)(v12 + a4[3]);
}
*(_DWORD *)(a1 + 8) = 0;
*(_OWORD *)(a1 + 16) = xmmword_23F20;
((void ( *)(long long *))PVG_FT_Raster_Render)(&v14);
return free(v10);
}
| plutovg_rasterize:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV EBP,R9D
MOV R12,R8
MOV R15,RCX
MOV R14,RDI
MOV RDI,RSI
MOV RSI,RDX
MOV RDX,R8
CALL 0x0010d21e
MOV RBX,RAX
TEST R12,R12
JNZ 0x0010d17d
CMP EBP,0x1
JNZ 0x0010d17d
MOV dword ptr [RBX + 0x28],0x2
JMP 0x0010d184
LAB_0010d17d:
MOV dword ptr [RBX + 0x28],0x0
LAB_0010d184:
MOV dword ptr [RSP + 0x8],0x3
LEA RAX,[0x10d692]
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],R14
MOV qword ptr [RSP],RBX
TEST R15,R15
JZ 0x0010d1ed
MOV dword ptr [RSP + 0x8],0x7
MOVSS XMM0,dword ptr [R15]
CVTTSS2SI RAX,XMM0
MOV qword ptr [RSP + 0x20],RAX
MOVSS XMM1,dword ptr [R15 + 0x4]
CVTTSS2SI RAX,XMM1
MOV qword ptr [RSP + 0x28],RAX
ADDSS XMM0,dword ptr [R15 + 0x8]
CVTTSS2SI RAX,XMM0
MOV qword ptr [RSP + 0x30],RAX
ADDSS XMM1,dword ptr [R15 + 0xc]
CVTTSS2SI RAX,XMM1
MOV qword ptr [RSP + 0x38],RAX
LAB_0010d1ed:
MOV dword ptr [R14 + 0x8],0x0
MOVAPS XMM0,xmmword ptr [0x00123f20]
MOVUPS xmmword ptr [R14 + 0x10],XMM0
MOV RDI,RSP
CALL 0x0011b5e6
MOV RDI,RBX
CALL 0x001032c0
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void plutovg_rasterize(long param_1,int8 param_2,int8 param_3,float *param_4,
long param_5,int param_6)
{
int4 uVar1;
int4 uVar2;
int4 uVar3;
void *__ptr;
void *local_68;
int4 local_60;
code *local_58;
long local_50;
long local_48;
long local_40;
long local_38;
long local_30;
__ptr = (void *)ft_outline_convert(param_2,param_3,param_5);
if ((param_5 == 0) && (param_6 == 1)) {
*(int4 *)((long)__ptr + 0x28) = 2;
}
else {
*(int4 *)((long)__ptr + 0x28) = 0;
}
local_60 = 3;
local_58 = spans_generation_callback;
if (param_4 != (float *)0x0) {
local_60 = 7;
local_48 = (long)*param_4;
local_40 = (long)param_4[1];
local_38 = (long)(*param_4 + param_4[2]);
local_30 = (long)(param_4[1] + param_4[3]);
}
*(int4 *)(param_1 + 8) = 0;
uVar3 = _UNK_00123f2c;
uVar2 = _UNK_00123f28;
uVar1 = _UNK_00123f24;
*(int4 *)(param_1 + 0x10) = _DAT_00123f20;
*(int4 *)(param_1 + 0x14) = uVar1;
*(int4 *)(param_1 + 0x18) = uVar2;
*(int4 *)(param_1 + 0x1c) = uVar3;
local_68 = __ptr;
local_50 = param_1;
PVG_FT_Raster_Render(&local_68);
free(__ptr);
return;
}
| |
36,204 | my_strnxfrm_uca_padn | eloqsql/strings/ctype-uca.c | static uchar *
my_strnxfrm_uca_padn(uchar *dst, uchar *de, uint nweights, int weight)
{
uint count= MY_MIN((uint) (de - dst) / 2, nweights);
for (; count ; count--)
{
*dst++= weight >> 8;
*dst++= weight & 0xFF;
}
return dst;
} | O0 | c | my_strnxfrm_uca_padn:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
shrl %eax
cmpl -0x14(%rbp), %eax
jae 0x50826
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
shrl %eax
movl %eax, -0x20(%rbp)
jmp 0x5082c
movl -0x14(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x50877
movl -0x18(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
movl -0x18(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x50832
movq -0x8(%rbp), %rax
popq %rbp
retq
nopl (%rax)
| my_strnxfrm_uca_padn:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_18], ecx
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
sub rax, rcx
shr eax, 1
cmp eax, [rbp+var_14]
jnb short loc_50826
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
sub rax, rcx
shr eax, 1
mov [rbp+var_20], eax
jmp short loc_5082C
loc_50826:
mov eax, [rbp+var_14]
mov [rbp+var_20], eax
loc_5082C:
mov eax, [rbp+var_20]
mov [rbp+var_1C], eax
loc_50832:
cmp [rbp+var_1C], 0
jz short loc_50877
mov eax, [rbp+var_18]
sar eax, 8
mov cl, al
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
mov eax, [rbp+var_18]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
mov eax, [rbp+var_1C]
add eax, 0FFFFFFFFh
mov [rbp+var_1C], eax
jmp short loc_50832
loc_50877:
mov rax, [rbp+var_8]
pop rbp
retn
| _BYTE * my_strnxfrm_uca_padn(_BYTE *a1, int a2, unsigned int a3, __int16 a4)
{
_BYTE *v4; // rax
unsigned int v6; // [rsp+0h] [rbp-20h]
unsigned int i; // [rsp+4h] [rbp-1Ch]
_BYTE *v8; // [rsp+18h] [rbp-8h]
v8 = a1;
if ( (unsigned int)(a2 - (_DWORD)a1) >> 1 >= a3 )
v6 = a3;
else
v6 = (unsigned int)(a2 - (_DWORD)a1) >> 1;
for ( i = v6; i; --i )
{
*v8 = HIBYTE(a4);
v4 = v8 + 1;
v8 += 2;
*v4 = a4;
}
return v8;
}
| my_strnxfrm_uca_padn:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV dword ptr [RBP + -0x18],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
SUB RAX,RCX
SHR EAX,0x1
CMP EAX,dword ptr [RBP + -0x14]
JNC 0x00150826
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
SUB RAX,RCX
SHR EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
JMP 0x0015082c
LAB_00150826:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x20],EAX
LAB_0015082c:
MOV EAX,dword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x1c],EAX
LAB_00150832:
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x00150877
MOV EAX,dword ptr [RBP + -0x18]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x00150832
LAB_00150877:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
int1 * my_strnxfrm_uca_padn(int1 *param_1,int param_2,uint param_3,int4 param_4)
{
int1 *puVar1;
uint local_28;
uint local_24;
int1 *local_10;
local_28 = param_3;
if ((uint)(param_2 - (int)param_1) >> 1 < param_3) {
local_28 = (uint)(param_2 - (int)param_1) >> 1;
}
local_10 = param_1;
for (local_24 = local_28; local_24 != 0; local_24 = local_24 - 1) {
puVar1 = local_10 + 1;
*local_10 = (char)((uint)param_4 >> 8);
local_10 = local_10 + 2;
*puVar1 = (char)param_4;
}
return local_10;
}
| |
36,205 | ma_cmp_static_record | eloqsql/storage/maria/ma_statrec.c | my_bool _ma_cmp_static_record(register MARIA_HA *info,
register const uchar *old)
{
DBUG_ENTER("_ma_cmp_static_record");
if (info->opt_flag & WRITE_CACHE_USED)
{
if (flush_io_cache(&info->rec_cache))
{
DBUG_RETURN(1);
}
info->rec_cache.seek_not_done=1; /* We have done a seek */
}
if ((info->opt_flag & READ_CHECK_USED))
{ /* If check isn't disabled */
info->rec_cache.seek_not_done=1; /* We have done a seek */
if (info->s->file_read(info, info->rec_buff, info->s->base.reclength,
info->cur_row.lastpos, MYF(MY_NABP)))
DBUG_RETURN(1);
if (memcmp(info->rec_buff, old, (uint) info->s->base.reclength))
{
DBUG_DUMP("read",old,info->s->base.reclength);
DBUG_DUMP("disk",info->rec_buff,info->s->base.reclength);
my_errno=HA_ERR_RECORD_CHANGED; /* Record have changed */
DBUG_RETURN(1);
}
}
DBUG_RETURN(0);
} | O0 | c | ma_cmp_static_record:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x61c(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x73775
movq -0x10(%rbp), %rdi
addq $0x4b8, %rdi # imm = 0x4B8
movl $0x1, %esi
callq 0xe0be0
cmpl $0x0, %eax
je 0x73767
jmp 0x7375e
movb $0x1, -0x1(%rbp)
jmp 0x73831
movq -0x10(%rbp), %rax
movl $0x1, 0x598(%rax)
movq -0x10(%rbp), %rax
movl 0x61c(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x7382b
movq -0x10(%rbp), %rax
movl $0x1, 0x598(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x6e0(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rcx
movq 0x3a0(%rcx), %rsi
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movq 0x398(%rcx), %rdx
movq -0x10(%rbp), %rcx
movq 0x98(%rcx), %rcx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0x737e5
jmp 0x737df
movb $0x1, -0x1(%rbp)
jmp 0x73831
movq -0x10(%rbp), %rax
movq 0x3a0(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x398(%rax), %rax
movl %eax, %eax
movl %eax, %edx
callq 0x2a830
cmpl $0x0, %eax
je 0x73829
jmp 0x73812
jmp 0x73814
jmp 0x73816
jmp 0x73818
callq 0xf60c0
movl $0x7b, (%rax)
movb $0x1, -0x1(%rbp)
jmp 0x73831
jmp 0x7382b
jmp 0x7382d
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ma_cmp_static_record:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov eax, [rax+61Ch]
and eax, 10h
cmp eax, 0
jz short loc_73775
mov rdi, [rbp+var_10]
add rdi, 4B8h
mov esi, 1
call my_b_flush_io_cache
cmp eax, 0
jz short loc_73767
jmp short $+2
loc_7375E:
mov [rbp+var_1], 1
jmp loc_73831
loc_73767:
mov rax, [rbp+var_10]
mov dword ptr [rax+598h], 1
loc_73775:
mov rax, [rbp+var_10]
mov eax, [rax+61Ch]
and eax, 4
cmp eax, 0
jz loc_7382B
mov rax, [rbp+var_10]
mov dword ptr [rax+598h], 1
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+6E0h]
mov rdi, [rbp+var_10]
mov rcx, [rbp+var_10]
mov rsi, [rcx+3A0h]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
mov rdx, [rcx+398h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+98h]
mov r8d, 4
call rax
cmp rax, 0
jz short loc_737E5
jmp short $+2
loc_737DF:
mov [rbp+var_1], 1
jmp short loc_73831
loc_737E5:
mov rax, [rbp+var_10]
mov rdi, [rax+3A0h]
mov rsi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+398h]
mov eax, eax
mov edx, eax
call _memcmp
cmp eax, 0
jz short loc_73829
jmp short $+2
loc_73812:
jmp short $+2
loc_73814:
jmp short $+2
loc_73816:
jmp short $+2
loc_73818:
call _my_thread_var
mov dword ptr [rax], 7Bh ; '{'
mov [rbp+var_1], 1
jmp short loc_73831
loc_73829:
jmp short $+2
loc_7382B:
jmp short $+2
loc_7382D:
mov [rbp+var_1], 0
loc_73831:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char ma_cmp_static_record(long long a1, const char *a2)
{
long long v2; // rdi
if ( (*(_DWORD *)(a1 + 1564) & 0x10) == 0 )
{
LABEL_5:
if ( (*(_DWORD *)(a1 + 1564) & 4) != 0 )
{
*(_DWORD *)(a1 + 1432) = 1;
if ( (*(long long ( **)(long long, _QWORD, _QWORD, _QWORD, long long))(*(_QWORD *)a1 + 1760LL))(
a1,
*(_QWORD *)(a1 + 928),
*(_QWORD *)(*(_QWORD *)a1 + 920LL),
*(_QWORD *)(a1 + 152),
4LL) )
{
return 1;
}
v2 = *(_QWORD *)(a1 + 928);
if ( (unsigned int)memcmp(v2, a2, (unsigned int)*(_QWORD *)(*(_QWORD *)a1 + 920LL)) )
{
*(_DWORD *)my_thread_var(v2, a2) = 123;
return 1;
}
}
return 0;
}
if ( !(unsigned int)my_b_flush_io_cache(a1 + 1208, 1LL) )
{
*(_DWORD *)(a1 + 1432) = 1;
goto LABEL_5;
}
return 1;
}
| _ma_cmp_static_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x61c]
AND EAX,0x10
CMP EAX,0x0
JZ 0x00173775
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x4b8
MOV ESI,0x1
CALL 0x001e0be0
CMP EAX,0x0
JZ 0x00173767
JMP 0x0017375e
LAB_0017375e:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00173831
LAB_00173767:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x598],0x1
LAB_00173775:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x61c]
AND EAX,0x4
CMP EAX,0x0
JZ 0x0017382b
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x598],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x6e0]
MOV RDI,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RCX + 0x3a0]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
MOV RDX,qword ptr [RCX + 0x398]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x98]
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x001737e5
JMP 0x001737df
LAB_001737df:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00173831
LAB_001737e5:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x3a0]
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x398]
MOV EAX,EAX
MOV EDX,EAX
CALL 0x0012a830
CMP EAX,0x0
JZ 0x00173829
JMP 0x00173812
LAB_00173812:
JMP 0x00173814
LAB_00173814:
JMP 0x00173816
LAB_00173816:
JMP 0x00173818
LAB_00173818:
CALL 0x001f60c0
MOV dword ptr [RAX],0x7b
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00173831
LAB_00173829:
JMP 0x0017382b
LAB_0017382b:
JMP 0x0017382d
LAB_0017382d:
MOV byte ptr [RBP + -0x1],0x0
LAB_00173831:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 _ma_cmp_static_record(long *param_1,void *param_2)
{
int iVar1;
long lVar2;
int4 *puVar3;
if ((*(uint *)((long)param_1 + 0x61c) & 0x10) != 0) {
iVar1 = my_b_flush_io_cache(param_1 + 0x97,1);
if (iVar1 != 0) {
return 1;
}
*(int4 *)(param_1 + 0xb3) = 1;
}
if ((*(uint *)((long)param_1 + 0x61c) & 4) != 0) {
*(int4 *)(param_1 + 0xb3) = 1;
lVar2 = (**(code **)(*param_1 + 0x6e0))
(param_1,param_1[0x74],*(int8 *)(*param_1 + 0x398),param_1[0x13],4);
if (lVar2 != 0) {
return 1;
}
iVar1 = memcmp((void *)param_1[0x74],param_2,*(ulong *)(*param_1 + 0x398) & 0xffffffff);
if (iVar1 != 0) {
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x7b;
return 1;
}
}
return 0;
}
| |
36,206 | my_pwrite | eloqsql/mysys/my_pread.c | size_t my_pwrite(int Filedes, const uchar *Buffer, size_t Count,
my_off_t offset, myf MyFlags)
{
size_t writtenbytes, written;
uint errors;
DBUG_ENTER("my_pwrite");
DBUG_PRINT("my",("fd: %d Seek: %llu Buffer: %p Count: %lu MyFlags: %lu",
Filedes, (ulonglong)offset, Buffer, (ulong)Count, MyFlags));
errors= 0;
written= 0;
if (!(MyFlags & (MY_WME | MY_FAE | MY_FNABP)))
MyFlags|= my_global_flags;
for (;;)
{
#ifdef _WIN32
writtenbytes= my_win_pwrite(Filedes, Buffer, Count,offset);
#else
writtenbytes= pwrite(Filedes, Buffer, Count, offset);
#endif
if (writtenbytes == Count)
break;
my_errno= errno;
if (writtenbytes != (size_t) -1)
{ /* Safegueard */
written+=writtenbytes;
Buffer+=writtenbytes;
Count-=writtenbytes;
offset+=writtenbytes;
}
DBUG_PRINT("error",("Write only %u bytes", (uint) writtenbytes));
#ifndef NO_BACKGROUND
if (my_thread_var->abort)
MyFlags&= ~ MY_WAIT_IF_FULL; /* End if aborted by user */
if ((my_errno == ENOSPC || my_errno == EDQUOT) &&
(MyFlags & MY_WAIT_IF_FULL))
{
wait_for_free_space(my_filename(Filedes), errors);
errors++;
continue;
}
if ((writtenbytes && writtenbytes != (size_t) -1) || my_errno == EINTR)
continue; /* Retry */
#endif
/* Don't give a warning if it's ok that we only write part of the data */
if (MyFlags & (MY_NABP | MY_FNABP))
{
if (MyFlags & (MY_WME | MY_FAE | MY_FNABP))
my_error(EE_WRITE, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
my_filename(Filedes),my_errno);
DBUG_RETURN(MY_FILE_ERROR); /* Error on write */
}
break; /* Return bytes written */
}
DBUG_EXECUTE_IF("check", my_seek(Filedes, -1, SEEK_SET, MYF(0)););
if (MyFlags & (MY_NABP | MY_FNABP))
DBUG_RETURN(0); /* Want only errors */
DBUG_RETURN(writtenbytes+written); /* purecov: inspected */
} | O0 | c | my_pwrite:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
jmp 0xf5c2d
movl $0x0, -0x44(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x30(%rbp), %rax
andq $0x1a, %rax
cmpq $0x0, %rax
jne 0xf5c5c
leaq 0xb8e417(%rip), %rax # 0xc84068
movq (%rax), %rax
orq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xf5c5e
movl -0xc(%rbp), %edi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x2a7c0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0xf5c85
jmp 0xf5dbc
callq 0x2a760
movl (%rax), %eax
movl %eax, -0x48(%rbp)
callq 0xf7440
movl -0x48(%rbp), %ecx
movl %ecx, (%rax)
cmpq $-0x1, -0x38(%rbp)
je 0xf5cd3
movq -0x38(%rbp), %rax
addq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x38(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x38(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0xf5cd5
jmp 0xf5cd7
callq 0xf7440
movl 0xe0(%rax), %eax
cmpl $0x0, %eax
je 0xf5cf9
movabsq $0xffffffdf, %rax # imm = 0xFFFFFFDF
andq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
callq 0xf7440
cmpl $0x1c, (%rax)
je 0xf5d0d
callq 0xf7440
cmpl $0x7a, (%rax)
jne 0xf5d3c
movq -0x30(%rbp), %rax
andq $0x20, %rax
cmpq $0x0, %rax
je 0xf5d3c
movl -0xc(%rbp), %edi
callq 0x104930
movq %rax, %rdi
movl -0x44(%rbp), %esi
callq 0x104080
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0xf5c5e
cmpq $0x0, -0x38(%rbp)
je 0xf5d4a
cmpq $-0x1, -0x38(%rbp)
jne 0xf5d54
callq 0xf7440
cmpl $0x4, (%rax)
jne 0xf5d59
jmp 0xf5c5e
movq -0x30(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xf5dba
movq -0x30(%rbp), %rax
andq $0x1a, %rax
cmpq $0x0, %rax
je 0xf5dae
movq -0x30(%rbp), %rax
andq $0x440, %rax # imm = 0x440
orq $0x4, %rax
movq %rax, -0x58(%rbp)
movl -0xc(%rbp), %edi
callq 0x104930
movq %rax, -0x50(%rbp)
callq 0xf7440
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movl (%rax), %ecx
movl $0x3, %edi
movb $0x0, %al
callq 0xf0ef0
jmp 0xf5db0
movq $-0x1, -0x8(%rbp)
jmp 0xf5de8
jmp 0xf5dbc
jmp 0xf5dbe
jmp 0xf5dc0
movq -0x30(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xf5dda
jmp 0xf5dd0
movq $0x0, -0x8(%rbp)
jmp 0xf5de8
jmp 0xf5ddc
movq -0x38(%rbp), %rax
addq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| my_pwrite:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_C], edi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
jmp short $+2
loc_F5C2D:
mov [rbp+var_44], 0
mov [rbp+var_40], 0
mov rax, [rbp+var_30]
and rax, 1Ah
cmp rax, 0
jnz short loc_F5C5C
lea rax, my_global_flags
mov rax, [rax]
or rax, [rbp+var_30]
mov [rbp+var_30], rax
loc_F5C5C:
jmp short $+2
loc_F5C5E:
mov edi, [rbp+var_C]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
call _pwrite64
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
cmp rax, [rbp+var_20]
jnz short loc_F5C85
jmp loc_F5DBC
loc_F5C85:
call ___errno_location
mov eax, [rax]
mov [rbp+var_48], eax
call _my_thread_var
mov ecx, [rbp+var_48]
mov [rax], ecx
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_F5CD3
mov rax, [rbp+var_38]
add rax, [rbp+var_40]
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rcx, [rbp+var_38]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_38]
add rax, [rbp+var_28]
mov [rbp+var_28], rax
loc_F5CD3:
jmp short $+2
loc_F5CD5:
jmp short $+2
loc_F5CD7:
call _my_thread_var
mov eax, [rax+0E0h]
cmp eax, 0
jz short loc_F5CF9
mov rax, 0FFFFFFDFh
and rax, [rbp+var_30]
mov [rbp+var_30], rax
loc_F5CF9:
call _my_thread_var
cmp dword ptr [rax], 1Ch
jz short loc_F5D0D
call _my_thread_var
cmp dword ptr [rax], 7Ah ; 'z'
jnz short loc_F5D3C
loc_F5D0D:
mov rax, [rbp+var_30]
and rax, 20h
cmp rax, 0
jz short loc_F5D3C
mov edi, [rbp+var_C]
call my_filename
mov rdi, rax
mov esi, [rbp+var_44]
call wait_for_free_space
mov eax, [rbp+var_44]
add eax, 1
mov [rbp+var_44], eax
jmp loc_F5C5E
loc_F5D3C:
cmp [rbp+var_38], 0
jz short loc_F5D4A
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jnz short loc_F5D54
loc_F5D4A:
call _my_thread_var
cmp dword ptr [rax], 4
jnz short loc_F5D59
loc_F5D54:
jmp loc_F5C5E
loc_F5D59:
mov rax, [rbp+var_30]
and rax, 6
cmp rax, 0
jz short loc_F5DBA
mov rax, [rbp+var_30]
and rax, 1Ah
cmp rax, 0
jz short loc_F5DAE
mov rax, [rbp+var_30]
and rax, 440h
or rax, 4
mov [rbp+var_58], rax
mov edi, [rbp+var_C]
call my_filename
mov [rbp+var_50], rax
call _my_thread_var
mov rsi, [rbp+var_58]
mov rdx, [rbp+var_50]
mov ecx, [rax]
mov edi, 3
mov al, 0
call my_error
loc_F5DAE:
jmp short $+2
loc_F5DB0:
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp short loc_F5DE8
loc_F5DBA:
jmp short $+2
loc_F5DBC:
jmp short $+2
loc_F5DBE:
jmp short $+2
loc_F5DC0:
mov rax, [rbp+var_30]
and rax, 6
cmp rax, 0
jz short loc_F5DDA
jmp short $+2
loc_F5DD0:
mov [rbp+var_8], 0
jmp short loc_F5DE8
loc_F5DDA:
jmp short $+2
loc_F5DDC:
mov rax, [rbp+var_38]
add rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_F5DE8:
mov rax, [rbp+var_8]
add rsp, 60h
pop rbp
retn
| long long my_pwrite(unsigned int a1, const char *a2, long long a3, long long a4, __int16 a5)
{
const char *v5; // rsi
long long v6; // rax
unsigned int *v7; // rax
long long v9; // [rsp+10h] [rbp-50h]
int v10; // [rsp+18h] [rbp-48h]
unsigned int v11; // [rsp+1Ch] [rbp-44h]
long long v12; // [rsp+20h] [rbp-40h]
long long v13; // [rsp+28h] [rbp-38h]
__int16 v14; // [rsp+30h] [rbp-30h]
v14 = a5;
v11 = 0;
v12 = 0LL;
if ( (a5 & 0x1A) == 0 )
v14 = a5 | my_global_flags;
do
{
while ( 1 )
{
v5 = a2;
v13 = pwrite64(a1, a2, a3, a4);
if ( v13 == a3 )
goto LABEL_20;
v10 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var(a1, a2) = v10;
if ( v13 != -1 )
{
v12 += v13;
a2 += v13;
a3 -= v13;
a4 += v13;
}
if ( *(_DWORD *)(my_thread_var(a1, v5) + 224) )
v14 &= ~0x20u;
if ( *(_DWORD *)my_thread_var(a1, v5) != 28 && *(_DWORD *)my_thread_var(a1, v5) != 122 || (v14 & 0x20) == 0 )
break;
v6 = my_filename(a1);
wait_for_free_space(v6, v11++);
}
}
while ( v13 && v13 != -1 || *(_DWORD *)my_thread_var(a1, v5) == 4 );
if ( (v14 & 6) == 0 )
{
LABEL_20:
if ( (v14 & 6) != 0 )
return 0LL;
else
return v12 + v13;
}
if ( (v14 & 0x1A) != 0 )
{
v9 = my_filename(a1);
v7 = (unsigned int *)my_thread_var(a1, v5);
my_error(3u, v14 & 0x440 | 4LL, v9, *v7);
}
return -1LL;
}
| my_pwrite:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV dword ptr [RBP + -0xc],EDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
JMP 0x001f5c2d
LAB_001f5c2d:
MOV dword ptr [RBP + -0x44],0x0
MOV qword ptr [RBP + -0x40],0x0
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x1a
CMP RAX,0x0
JNZ 0x001f5c5c
LEA RAX,[0xd84068]
MOV RAX,qword ptr [RAX]
OR RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x30],RAX
LAB_001f5c5c:
JMP 0x001f5c5e
LAB_001f5c5e:
MOV EDI,dword ptr [RBP + -0xc]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
CALL 0x0012a7c0
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x001f5c85
JMP 0x001f5dbc
LAB_001f5c85:
CALL 0x0012a760
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x48],EAX
CALL 0x001f7440
MOV ECX,dword ptr [RBP + -0x48]
MOV dword ptr [RAX],ECX
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x001f5cd3
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x28],RAX
LAB_001f5cd3:
JMP 0x001f5cd5
LAB_001f5cd5:
JMP 0x001f5cd7
LAB_001f5cd7:
CALL 0x001f7440
MOV EAX,dword ptr [RAX + 0xe0]
CMP EAX,0x0
JZ 0x001f5cf9
MOV RAX,0xffffffdf
AND RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x30],RAX
LAB_001f5cf9:
CALL 0x001f7440
CMP dword ptr [RAX],0x1c
JZ 0x001f5d0d
CALL 0x001f7440
CMP dword ptr [RAX],0x7a
JNZ 0x001f5d3c
LAB_001f5d0d:
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x20
CMP RAX,0x0
JZ 0x001f5d3c
MOV EDI,dword ptr [RBP + -0xc]
CALL 0x00204930
MOV RDI,RAX
MOV ESI,dword ptr [RBP + -0x44]
CALL 0x00204080
MOV EAX,dword ptr [RBP + -0x44]
ADD EAX,0x1
MOV dword ptr [RBP + -0x44],EAX
JMP 0x001f5c5e
LAB_001f5d3c:
CMP qword ptr [RBP + -0x38],0x0
JZ 0x001f5d4a
CMP qword ptr [RBP + -0x38],-0x1
JNZ 0x001f5d54
LAB_001f5d4a:
CALL 0x001f7440
CMP dword ptr [RAX],0x4
JNZ 0x001f5d59
LAB_001f5d54:
JMP 0x001f5c5e
LAB_001f5d59:
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001f5dba
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x1a
CMP RAX,0x0
JZ 0x001f5dae
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x440
OR RAX,0x4
MOV qword ptr [RBP + -0x58],RAX
MOV EDI,dword ptr [RBP + -0xc]
CALL 0x00204930
MOV qword ptr [RBP + -0x50],RAX
CALL 0x001f7440
MOV RSI,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x50]
MOV ECX,dword ptr [RAX]
MOV EDI,0x3
MOV AL,0x0
CALL 0x001f0ef0
LAB_001f5dae:
JMP 0x001f5db0
LAB_001f5db0:
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001f5de8
LAB_001f5dba:
JMP 0x001f5dbc
LAB_001f5dbc:
JMP 0x001f5dbe
LAB_001f5dbe:
JMP 0x001f5dc0
LAB_001f5dc0:
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001f5dda
JMP 0x001f5dd0
LAB_001f5dd0:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001f5de8
LAB_001f5dda:
JMP 0x001f5ddc
LAB_001f5ddc:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_001f5de8:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x60
POP RBP
RET
|
long my_pwrite(int param_1,void *param_2,size_t param_3,long param_4,ulong param_5)
{
int iVar1;
size_t sVar2;
int *piVar3;
long lVar4;
int8 uVar5;
int4 *puVar6;
int local_4c;
long local_48;
ulong local_38;
long local_30;
size_t local_28;
void *local_20;
long local_10;
local_4c = 0;
local_48 = 0;
local_38 = param_5;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
if ((param_5 & 0x1a) == 0) {
local_38 = my_global_flags | param_5;
}
do {
while( true ) {
sVar2 = pwrite64(param_1,local_20,local_28,local_30);
if (sVar2 == local_28) goto LAB_001f5dbc;
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
if (sVar2 != 0xffffffffffffffff) {
local_48 = sVar2 + local_48;
local_20 = (void *)(sVar2 + (long)local_20);
local_28 = local_28 - sVar2;
local_30 = sVar2 + local_30;
}
lVar4 = _my_thread_var();
if (*(int *)(lVar4 + 0xe0) != 0) {
local_38 = local_38 & 0xffffffdf;
}
piVar3 = (int *)_my_thread_var();
if (((*piVar3 != 0x1c) && (piVar3 = (int *)_my_thread_var(), *piVar3 != 0x7a)) ||
((local_38 & 0x20) == 0)) break;
uVar5 = my_filename(param_1);
wait_for_free_space(uVar5,local_4c);
local_4c = local_4c + 1;
}
} while (((sVar2 != 0) && (sVar2 != 0xffffffffffffffff)) ||
(piVar3 = (int *)_my_thread_var(), *piVar3 == 4));
if ((local_38 & 6) == 0) {
LAB_001f5dbc:
if ((local_38 & 6) == 0) {
local_10 = sVar2 + local_48;
}
else {
local_10 = 0;
}
}
else {
if ((local_38 & 0x1a) != 0) {
uVar5 = my_filename(param_1);
puVar6 = (int4 *)_my_thread_var();
my_error(3,local_38 & 0x440 | 4,uVar5,*puVar6);
}
local_10 = -1;
}
return local_10;
}
| |
36,207 | minja::Parser::Parser(std::shared_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, minja::Options const&) | monkey531[P]llama/common/minja.hpp | Parser(const std::shared_ptr<std::string>& template_str, const Options & options) : template_str(template_str), options(options) {
if (!template_str) throw std::runtime_error("Template string is null");
start = it = this->template_str->begin();
end = this->template_str->end();
} | O2 | cpp | minja::Parser::Parser(std::shared_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, minja::Options const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x62dda
andq $0x0, 0x20(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movb 0x2(%r14), %al
movb %al, 0x2a(%rbx)
movzwl (%r14), %eax
movw %ax, 0x28(%rbx)
cmpq $0x0, (%r15)
je 0x5ff47
movq (%rbx), %rax
movq (%rax), %rcx
movq %rcx, 0x20(%rbx)
movq %rcx, 0x10(%rbx)
movq (%rax), %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x18(%rbx)
popq %rbx
popq %r14
popq %r15
retq
pushq $0x10
popq %rdi
callq 0x24520
movq %rax, %r14
leaq 0x55aa2(%rip), %rsi # 0xb59fb
movq %rax, %rdi
callq 0x24390
movq 0xa1088(%rip), %rsi # 0x100ff0
movq 0xa0fe9(%rip), %rdx # 0x100f58
movq %r14, %rdi
callq 0x25150
movq %rax, %r15
jmp 0x5ff87
movq %rax, %r15
movq %r14, %rdi
callq 0x247a0
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x5224c
movq %r15, %rdi
callq 0x251e0
nop
| _ZN5minja6ParserC2ERKSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEERKNS_7OptionsE:
push r15
push r14
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
call _ZNSt12__shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELN9__gnu_cxx12_Lock_policyE2EEC2ERKS8_; std::__shared_ptr<std::string,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(std::__shared_ptr<std::string,(__gnu_cxx::_Lock_policy)2> const&)
and qword ptr [rbx+20h], 0
xorps xmm0, xmm0
movups xmmword ptr [rbx+10h], xmm0
mov al, [r14+2]
mov [rbx+2Ah], al
movzx eax, word ptr [r14]
mov [rbx+28h], ax
cmp qword ptr [r15], 0
jz short loc_5FF47
mov rax, [rbx]
mov rcx, [rax]
mov [rbx+20h], rcx
mov [rbx+10h], rcx
mov rcx, [rax]
add rcx, [rax+8]
mov [rbx+18h], rcx
pop rbx
pop r14
pop r15
retn
loc_5FF47:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aTemplateString; "Template string is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov r15, rax
jmp short loc_5FF87
mov r15, rax
mov rdi, r14; void *
call ___cxa_free_exception
loc_5FF87:
add rbx, 8
mov rdi, rbx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r15
call __Unwind_Resume
| long long * minja::Parser::Parser(long long **a1, _QWORD *a2, long long a3)
{
long long *result; // rax
long long *v5; // rcx
std::runtime_error *exception; // r14
std::__shared_ptr<std::string,(__gnu_cxx::_Lock_policy)2>::__shared_ptr();
a1[4] = 0LL;
*((_OWORD *)a1 + 1) = 0LL;
*((_BYTE *)a1 + 42) = *(_BYTE *)(a3 + 2);
*((_WORD *)a1 + 20) = *(_WORD *)a3;
if ( !*a2 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Template string is null");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
result = *a1;
v5 = (long long *)**a1;
a1[4] = v5;
a1[2] = v5;
a1[3] = (long long *)(result[1] + *result);
return result;
}
| Parser:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
CALL 0x00162dda
AND qword ptr [RBX + 0x20],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOV AL,byte ptr [R14 + 0x2]
MOV byte ptr [RBX + 0x2a],AL
MOVZX EAX,word ptr [R14]
MOV word ptr [RBX + 0x28],AX
CMP qword ptr [R15],0x0
JZ 0x0015ff47
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBX + 0x20],RCX
MOV qword ptr [RBX + 0x10],RCX
MOV RCX,qword ptr [RAX]
ADD RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x18],RCX
POP RBX
POP R14
POP R15
RET
LAB_0015ff47:
PUSH 0x10
POP RDI
CALL 0x00124520
MOV R14,RAX
LAB_0015ff52:
LEA RSI,[0x1b59fb]
MOV RDI,RAX
CALL 0x00124390
LAB_0015ff61:
MOV RSI,qword ptr [0x00200ff0]
MOV RDX,qword ptr [0x00200f58]
MOV RDI,R14
CALL 0x00125150
|
/* minja::Parser::Parser(std::shared_ptr<std::__cxx11::string > const&, minja::Options const&) */
void __thiscall minja::Parser::Parser(Parser *this,shared_ptr *param_1,Options *param_2)
{
long *plVar1;
long lVar2;
runtime_error *this_00;
std::__shared_ptr<std::__cxx11::string,(__gnu_cxx::_Lock_policy)2>::__shared_ptr
((__shared_ptr<std::__cxx11::string,(__gnu_cxx::_Lock_policy)2> *)this,
(__shared_ptr *)param_1);
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(Options *)(this + 0x2a) = param_2[2];
*(int2 *)(this + 0x28) = *(int2 *)param_2;
if (*(long *)param_1 != 0) {
plVar1 = *(long **)this;
lVar2 = *plVar1;
*(long *)(this + 0x20) = lVar2;
*(long *)(this + 0x10) = lVar2;
*(long *)(this + 0x18) = *plVar1 + plVar1[1];
return;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0015ff52 to 0015ff60 has its CatchHandler @ 0015ff7c */
std::runtime_error::runtime_error(this_00,"Template string is null");
/* try { // try from 0015ff61 to 0015ff76 has its CatchHandler @ 0015ff77 */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_00200ff0,PTR__runtime_error_00200f58);
}
| |
36,208 | js_typed_array_of | bluesky950520[P]quickjs/quickjs.c | static JSValue js_typed_array_of(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj;
JSValue args[1];
int i;
args[0] = js_int32(argc);
obj = js_typed_array_create(ctx, this_val, 1, args);
if (JS_IsException(obj))
return obj;
for(i = 0; i < argc; i++) {
if (JS_SetPropertyUint32(ctx, obj, i, js_dup(argv[i])) < 0) {
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
}
return obj;
} | O1 | c | js_typed_array_of:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r15
movl %ecx, %r13d
movq %rdi, %r12
movl %ecx, %ebp
leaq 0x20(%rsp), %r8
movq %rbp, (%r8)
movq $0x0, 0x8(%r8)
movl $0x1, %ecx
callq 0x774a4
movq %rax, %r14
movq %rdx, %rbx
cmpl $0x6, %ebx
je 0x82c99
testl %r13d, %r13d
jle 0x82c99
addq $0x8, %r15
xorl %r13d, %r13d
movq -0x8(%r15), %rax
movq (%r15), %rcx
movq %rax, 0x10(%rsp)
cmpl $-0x9, %ecx
jb 0x82c5c
movq 0x10(%rsp), %rdx
incl (%rdx)
movq %rax, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
movups 0x10(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
movl $0x4000, %r9d # imm = 0x4000
callq 0x24145
testl %eax, %eax
js 0x82cc1
incq %r13
addq $0x10, %r15
cmpq %r13, %rbp
jne 0x82c44
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %r14, %rcx
andq %rax, %rcx
movl %r14d, %eax
orq %rcx, %rax
movq %rbx, %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%r12), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1ccb2
movl $0x6, %ebx
xorl %r14d, %r14d
xorl %ecx, %ecx
jmp 0x82ca9
| js_typed_array_of:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r15, r8
mov r13d, ecx
mov r12, rdi
mov ebp, ecx
lea r8, [rsp+68h+var_48]
mov [r8], rbp
mov qword ptr [r8+8], 0
mov ecx, 1
call js_typed_array_create
mov r14, rax
mov rbx, rdx
cmp ebx, 6
jz short loc_82C99
test r13d, r13d
jle short loc_82C99
add r15, 8
xor r13d, r13d
loc_82C44:
mov rax, [r15-8]
mov rcx, [r15]
mov qword ptr [rsp+68h+var_58], rax
cmp ecx, 0FFFFFFF7h
jb short loc_82C5C
mov rdx, qword ptr [rsp+68h+var_58]
inc dword ptr [rdx]
loc_82C5C:
mov qword ptr [rsp+68h+var_58], rax
mov qword ptr [rsp+68h+var_58+8], rcx
movups xmm0, [rsp+68h+var_58]
movups [rsp+68h+var_68], xmm0
mov rdi, r12
mov rsi, r14
mov rdx, rbx
mov rcx, r13
xor r8d, r8d
mov r9d, 4000h
call JS_SetPropertyValue
test eax, eax
js short loc_82CC1
inc r13
add r15, 10h
cmp rbp, r13
jnz short loc_82C44
loc_82C99:
mov rax, 0FFFFFFFF00000000h
mov rcx, r14
and rcx, rax
loc_82CA9:
mov eax, r14d
or rax, rcx
mov rdx, rbx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_82CC1:
mov rdi, [r12+18h]
mov rsi, r14
mov rdx, rbx
call JS_FreeValueRT
mov ebx, 6
xor r14d, r14d
xor ecx, ecx
jmp short loc_82CA9
| unsigned long long js_typed_array_of(
long long a1,
unsigned long long a2,
long long a3,
int a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13)
{
unsigned long long v15; // rbp
unsigned long long v16; // r14
double v17; // xmm4_8
double v18; // xmm5_8
unsigned long long v19; // rdx
unsigned long long v20; // rbx
double *v21; // r15
_DWORD *v22; // r13
double v23; // rax
double v24; // rcx
unsigned long long v25; // rcx
__int128 v27; // [rsp+10h] [rbp-58h]
_QWORD v28[9]; // [rsp+20h] [rbp-48h] BYREF
v15 = (unsigned int)a4;
v28[0] = (unsigned int)a4;
v28[1] = 0LL;
v16 = js_typed_array_create(a1, a2, a3, 1u, v28, a6, a7, a8, a9, a10, a11, a12, a13);
v20 = v19;
if ( (_DWORD)v19 == 6 || a4 <= 0 )
{
LABEL_8:
v25 = v16 & 0xFFFFFFFF00000000LL;
}
else
{
v21 = (double *)(a5 + 8);
v22 = 0LL;
while ( 1 )
{
v23 = *(v21 - 1);
v24 = *v21;
if ( (unsigned int)*(_QWORD *)v21 >= 0xFFFFFFF7 )
++**((_DWORD **)v21 - 1);
*(double *)&v27 = v23;
*((double *)&v27 + 1) = v24;
if ( (int)JS_SetPropertyValue(a1, v16, v20, v22, 0LL, 0x4000u, v23, a7, a8, a9, v17, v18, a12, a13, v27) < 0 )
break;
v22 = (_DWORD *)((char *)v22 + 1);
v21 += 2;
if ( (_DWORD *)v15 == v22 )
goto LABEL_8;
}
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v16, v20);
LODWORD(v16) = 0;
v25 = 0LL;
}
return v25 | (unsigned int)v16;
}
| js_typed_array_of:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R15,R8
MOV R13D,ECX
MOV R12,RDI
MOV EBP,ECX
LEA R8,[RSP + 0x20]
MOV qword ptr [R8],RBP
MOV qword ptr [R8 + 0x8],0x0
MOV ECX,0x1
CALL 0x001774a4
MOV R14,RAX
MOV RBX,RDX
CMP EBX,0x6
JZ 0x00182c99
TEST R13D,R13D
JLE 0x00182c99
ADD R15,0x8
XOR R13D,R13D
LAB_00182c44:
MOV RAX,qword ptr [R15 + -0x8]
MOV RCX,qword ptr [R15]
MOV qword ptr [RSP + 0x10],RAX
CMP ECX,-0x9
JC 0x00182c5c
MOV RDX,qword ptr [RSP + 0x10]
INC dword ptr [RDX]
LAB_00182c5c:
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RCX
MOVUPS XMM0,xmmword ptr [RSP + 0x10]
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,R12
MOV RSI,R14
MOV RDX,RBX
MOV RCX,R13
XOR R8D,R8D
MOV R9D,0x4000
CALL 0x00124145
TEST EAX,EAX
JS 0x00182cc1
INC R13
ADD R15,0x10
CMP RBP,R13
JNZ 0x00182c44
LAB_00182c99:
MOV RAX,-0x100000000
MOV RCX,R14
AND RCX,RAX
LAB_00182ca9:
MOV EAX,R14D
OR RAX,RCX
MOV RDX,RBX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00182cc1:
MOV RDI,qword ptr [R12 + 0x18]
MOV RSI,R14
MOV RDX,RBX
CALL 0x0011ccb2
MOV EBX,0x6
XOR R14D,R14D
XOR ECX,ECX
JMP 0x00182ca9
|
int1 [16]
js_typed_array_of(long param_1,int8 param_2,int8 param_3,uint param_4,long param_5)
{
int *piVar1;
int8 uVar2;
int iVar3;
ulong uVar4;
ulong uVar5;
int8 *puVar6;
int1 auVar7 [16];
int1 auVar8 [16];
int4 local_58;
auVar7 = js_typed_array_create();
uVar4 = auVar7._0_8_;
if ((auVar7._8_4_ != 6) && (0 < (int)param_4)) {
puVar6 = (int8 *)(param_5 + 8);
uVar5 = 0;
do {
piVar1 = (int *)puVar6[-1];
uVar2 = *puVar6;
if (0xfffffff6 < (uint)uVar2) {
*piVar1 = *piVar1 + 1;
}
local_58 = SUB84(piVar1,0);
iVar3 = JS_SetPropertyValue(param_1,uVar4,auVar7._8_8_,uVar5,0,0x4000,local_58,(uint)uVar2);
if (iVar3 < 0) {
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar4,auVar7._8_8_);
auVar7 = ZEXT816(6) << 0x40;
uVar4 = 0;
goto LAB_00182ca9;
}
uVar5 = uVar5 + 1;
puVar6 = puVar6 + 2;
} while (param_4 != uVar5);
}
uVar4 = uVar4 & 0xffffffff00000000;
LAB_00182ca9:
auVar8._0_8_ = auVar7._0_8_ & 0xffffffff | uVar4;
auVar8._8_8_ = auVar7._8_8_;
return auVar8;
}
| |
36,209 | js_typed_array_of | bluesky950520[P]quickjs/quickjs.c | static JSValue js_typed_array_of(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj;
JSValue args[1];
int i;
args[0] = js_int32(argc);
obj = js_typed_array_create(ctx, this_val, 1, args);
if (JS_IsException(obj))
return obj;
for(i = 0; i < argc; i++) {
if (JS_SetPropertyUint32(ctx, obj, i, js_dup(argv[i])) < 0) {
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
}
return obj;
} | O2 | c | js_typed_array_of:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r15
movl %ecx, %r12d
movq %rdi, %r13
movl %ecx, %eax
movq %rsp, %r8
movq %rax, (%r8)
andq $0x0, 0x8(%r8)
pushq $0x1
popq %rcx
callq 0x64400
movq %rax, %r14
movq %rdx, %rbx
cmpl $0x6, %ebx
jne 0x6db84
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %r14, %rcx
andq %rax, %rcx
jmp 0x6dbd7
xorl %ebp, %ebp
testl %r12d, %r12d
cmovlel %ebp, %r12d
addq $0x8, %r15
cmpq %rbp, %r12
je 0x6db72
movq -0x8(%r15), %r8
movq (%r15), %r9
cmpl $-0x9, %r9d
jb 0x6dba6
incl (%r8)
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0x1e167
incq %rbp
addq $0x10, %r15
testl %eax, %eax
jns 0x6db91
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x174a2
pushq $0x6
popq %rbx
xorl %r14d, %r14d
xorl %ecx, %ecx
movl %r14d, %eax
orq %rcx, %rax
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_typed_array_of:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15, r8
mov r12d, ecx
mov r13, rdi
mov eax, ecx
mov r8, rsp
mov [r8], rax
and qword ptr [r8+8], 0
push 1
pop rcx
call js_typed_array_create
mov r14, rax
mov rbx, rdx
cmp ebx, 6
jnz short loc_6DB84
loc_6DB72:
mov rax, 0FFFFFFFF00000000h
mov rcx, r14
and rcx, rax
jmp short loc_6DBD7
loc_6DB84:
xor ebp, ebp
test r12d, r12d
cmovle r12d, ebp
add r15, 8
loc_6DB91:
cmp r12, rbp
jz short loc_6DB72
mov r8, [r15-8]
mov r9, [r15]
cmp r9d, 0FFFFFFF7h
jb short loc_6DBA6
inc dword ptr [r8]
loc_6DBA6:
mov rdi, r13
mov rsi, r14
mov rdx, rbx
mov ecx, ebp
call JS_SetPropertyUint32
inc rbp
add r15, 10h
test eax, eax
jns short loc_6DB91
mov rdi, r13
mov rsi, r14
mov rdx, rbx
call JS_FreeValue
push 6
pop rbx
xor r14d, r14d
xor ecx, ecx
loc_6DBD7:
mov eax, r14d
or rax, rcx
mov rdx, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long js_typed_array_of(
long long a1,
unsigned long long a2,
unsigned long long a3,
unsigned int a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v14; // r12
unsigned long long v15; // r14
long long v16; // rdx
long long v17; // rbx
unsigned long long v18; // rcx
long long v19; // rbp
long long *v20; // r15
_DWORD *v21; // r8
long long v22; // r9
int v23; // eax
_QWORD v25[9]; // [rsp+0h] [rbp-48h] BYREF
v14 = a4;
v25[0] = a4;
v25[1] = 0LL;
v15 = js_typed_array_create(a1, a2, a3, 1u, v25, a6, a7, a8, a9, a10, a11, a12, a13);
v17 = v16;
if ( (_DWORD)v16 != 6 )
{
v19 = 0LL;
if ( (int)v14 <= 0 )
v14 = 0LL;
v20 = (long long *)(a5 + 8);
while ( v14 != v19 )
{
v21 = (_DWORD *)*(v20 - 1);
v22 = *v20;
if ( (unsigned int)*v20 >= 0xFFFFFFF7 )
++*v21;
v23 = JS_SetPropertyUint32(a1, v15, v17, v19++, (long long)v21, v22);
v20 += 2;
if ( v23 < 0 )
{
JS_FreeValue(a1, v15, v17);
LODWORD(v15) = 0;
v18 = 0LL;
return v18 | (unsigned int)v15;
}
}
}
v18 = v15 & 0xFFFFFFFF00000000LL;
return v18 | (unsigned int)v15;
}
| js_typed_array_of:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15,R8
MOV R12D,ECX
MOV R13,RDI
MOV EAX,ECX
MOV R8,RSP
MOV qword ptr [R8],RAX
AND qword ptr [R8 + 0x8],0x0
PUSH 0x1
POP RCX
CALL 0x00164400
MOV R14,RAX
MOV RBX,RDX
CMP EBX,0x6
JNZ 0x0016db84
LAB_0016db72:
MOV RAX,-0x100000000
MOV RCX,R14
AND RCX,RAX
JMP 0x0016dbd7
LAB_0016db84:
XOR EBP,EBP
TEST R12D,R12D
CMOVLE R12D,EBP
ADD R15,0x8
LAB_0016db91:
CMP R12,RBP
JZ 0x0016db72
MOV R8,qword ptr [R15 + -0x8]
MOV R9,qword ptr [R15]
CMP R9D,-0x9
JC 0x0016dba6
INC dword ptr [R8]
LAB_0016dba6:
MOV RDI,R13
MOV RSI,R14
MOV RDX,RBX
MOV ECX,EBP
CALL 0x0011e167
INC RBP
ADD R15,0x10
TEST EAX,EAX
JNS 0x0016db91
MOV RDI,R13
MOV RSI,R14
MOV RDX,RBX
CALL 0x001174a2
PUSH 0x6
POP RBX
XOR R14D,R14D
XOR ECX,ECX
LAB_0016dbd7:
MOV EAX,R14D
OR RAX,RCX
MOV RDX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16]
js_typed_array_of(int8 param_1,int8 param_2,int8 param_3,uint param_4,long param_5
)
{
int iVar1;
ulong uVar2;
ulong uVar3;
ulong uVar4;
int8 *puVar5;
int1 auVar6 [16];
int1 auVar7 [16];
auVar6 = js_typed_array_create();
uVar2 = auVar6._0_8_;
if (auVar6._8_4_ == 6) {
LAB_0016db72:
uVar2 = uVar2 & 0xffffffff00000000;
}
else {
uVar3 = 0;
uVar4 = (ulong)param_4;
if ((int)param_4 < 1) {
uVar4 = uVar3;
}
puVar5 = (int8 *)(param_5 + 8);
do {
if (uVar4 == uVar3) goto LAB_0016db72;
if (0xfffffff6 < (uint)*puVar5) {
*(int *)puVar5[-1] = *(int *)puVar5[-1] + 1;
}
iVar1 = JS_SetPropertyUint32(param_1,uVar2,auVar6._8_8_,uVar3 & 0xffffffff);
uVar3 = uVar3 + 1;
puVar5 = puVar5 + 2;
} while (-1 < iVar1);
JS_FreeValue(param_1,uVar2,auVar6._8_8_);
auVar6 = ZEXT816(6) << 0x40;
uVar2 = 0;
}
auVar7._0_8_ = auVar6._0_8_ & 0xffffffff | uVar2;
auVar7._8_8_ = auVar6._8_8_;
return auVar7;
}
| |
36,210 | js_typed_array_of | bluesky950520[P]quickjs/quickjs.c | static JSValue js_typed_array_of(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj;
JSValue args[1];
int i;
args[0] = js_int32(argc);
obj = js_typed_array_create(ctx, this_val, 1, args);
if (JS_IsException(obj))
return obj;
for(i = 0; i < argc; i++) {
if (JS_SetPropertyUint32(ctx, obj, i, js_dup(argv[i])) < 0) {
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
}
return obj;
} | O3 | c | js_typed_array_of:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r12
movl %ecx, %r13d
movq %rdi, %r15
movl %ecx, %ebp
movq %rsp, %r8
movq %rbp, (%r8)
movq $0x0, 0x8(%r8)
movl $0x1, %ecx
callq 0x79ecb
movq %rax, %rbx
movq %rdx, %r14
cmpl $0x6, %r14d
je 0x85751
testl %r13d, %r13d
jle 0x85751
addq $0x8, %r12
xorl %r13d, %r13d
movq -0x8(%r12), %r9
movq (%r12), %rax
cmpl $-0x9, %eax
jb 0x85723
incl (%r9)
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
pushq $0x4000 # imm = 0x4000
pushq %rax
callq 0x24773
addq $0x10, %rsp
testl %eax, %eax
js 0x85778
incq %r13
addq $0x10, %r12
cmpq %r13, %rbp
jne 0x85712
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %rbx, %rcx
andq %rax, %rcx
movl %ebx, %eax
orq %rcx, %rax
movq %r14, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $-0x9, %r14d
jb 0x85799
movq 0x18(%r15), %rdi
movl (%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%rbx)
cmpl $0x1, %eax
jg 0x85799
movq %rbx, %rsi
movq %r14, %rdx
callq 0x20d90
xorl %ebx, %ebx
xorl %ecx, %ecx
movl $0x6, %r14d
jmp 0x85761
| js_typed_array_of:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r12, r8
mov r13d, ecx
mov r15, rdi
mov ebp, ecx
mov r8, rsp
mov [r8], rbp
mov qword ptr [r8+8], 0
mov ecx, 1
call js_typed_array_create
mov rbx, rax
mov r14, rdx
cmp r14d, 6
jz short loc_85751
test r13d, r13d
jle short loc_85751
add r12, 8
xor r13d, r13d
loc_85712:
mov r9, [r12-8]
mov rax, [r12]
cmp eax, 0FFFFFFF7h
jb short loc_85723
inc dword ptr [r9]
loc_85723:
mov rdi, r15
mov rsi, rbx
mov rdx, r14
mov rcx, r13
xor r8d, r8d
push 4000h
push rax
call JS_SetPropertyValue
add rsp, 10h
test eax, eax
js short loc_85778
inc r13
add r12, 10h
cmp rbp, r13
jnz short loc_85712
loc_85751:
mov rax, 0FFFFFFFF00000000h
mov rcx, rbx
and rcx, rax
loc_85761:
mov eax, ebx
or rax, rcx
mov rdx, r14
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_85778:
cmp r14d, 0FFFFFFF7h
jb short loc_85799
mov rdi, [r15+18h]
mov eax, [rbx]
lea ecx, [rax-1]
mov [rbx], ecx
cmp eax, 1
jg short loc_85799
mov rsi, rbx
mov rdx, r14
call js_free_value_rt
loc_85799:
xor ebx, ebx
xor ecx, ecx
mov r14d, 6
jmp short loc_85761
| unsigned long long js_typed_array_of(
long long a1,
long long a2,
long long a3,
int a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13)
{
int *v15; // rbp
unsigned long long v16; // rbx
double v17; // xmm4_8
double v18; // xmm5_8
unsigned long long v19; // rdx
unsigned long long v20; // r14
long long *v21; // r12
int *v22; // r13
_DWORD *v23; // r9
long long v24; // rax
long long v25; // r8
long long v26; // r9
unsigned long long v27; // rcx
long long v29; // rdi
int v30; // eax
long long v31; // rcx
int *v32[9]; // [rsp+0h] [rbp-48h] BYREF
v15 = (int *)(unsigned int)a4;
v32[0] = (int *)(unsigned int)a4;
v32[1] = 0LL;
v16 = js_typed_array_create(a1, a2, a3, 1u, v32, a6, a7, a8, a9, a10, a11, a12, a13);
v20 = v19;
if ( (_DWORD)v19 == 6 || a4 <= 0 )
{
LABEL_8:
v27 = v16 & 0xFFFFFFFF00000000LL;
}
else
{
v21 = (long long *)(a5 + 8);
v22 = 0LL;
while ( 1 )
{
v23 = (_DWORD *)*(v21 - 1);
v24 = *v21;
if ( (unsigned int)*v21 >= 0xFFFFFFF7 )
++*v23;
if ( (int)JS_SetPropertyValue(
a1,
v16,
v20,
v22,
0LL,
(long long)v23,
*(double *)a6.m128_u64,
a7,
a8,
a9,
v17,
v18,
a12,
a13,
v24,
0x4000u) < 0 )
break;
v22 = (int *)((char *)v22 + 1);
v21 += 2;
if ( v15 == v22 )
goto LABEL_8;
}
if ( (unsigned int)v20 >= 0xFFFFFFF7 )
{
v29 = *(_QWORD *)(a1 + 24);
v30 = *(_DWORD *)v16;
v31 = (unsigned int)(*(_DWORD *)v16 - 1);
*(_DWORD *)v16 = v31;
if ( v30 <= 1 )
js_free_value_rt(v29, (_QWORD *)v16, v20, v31, v25, v26);
}
LODWORD(v16) = 0;
v27 = 0LL;
}
return v27 | (unsigned int)v16;
}
| js_typed_array_of:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12,R8
MOV R13D,ECX
MOV R15,RDI
MOV EBP,ECX
MOV R8,RSP
MOV qword ptr [R8],RBP
MOV qword ptr [R8 + 0x8],0x0
MOV ECX,0x1
CALL 0x00179ecb
MOV RBX,RAX
MOV R14,RDX
CMP R14D,0x6
JZ 0x00185751
TEST R13D,R13D
JLE 0x00185751
ADD R12,0x8
XOR R13D,R13D
LAB_00185712:
MOV R9,qword ptr [R12 + -0x8]
MOV RAX,qword ptr [R12]
CMP EAX,-0x9
JC 0x00185723
INC dword ptr [R9]
LAB_00185723:
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R14
MOV RCX,R13
XOR R8D,R8D
PUSH 0x4000
PUSH RAX
CALL 0x00124773
ADD RSP,0x10
TEST EAX,EAX
JS 0x00185778
INC R13
ADD R12,0x10
CMP RBP,R13
JNZ 0x00185712
LAB_00185751:
MOV RAX,-0x100000000
MOV RCX,RBX
AND RCX,RAX
LAB_00185761:
MOV EAX,EBX
OR RAX,RCX
MOV RDX,R14
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00185778:
CMP R14D,-0x9
JC 0x00185799
MOV RDI,qword ptr [R15 + 0x18]
MOV EAX,dword ptr [RBX]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RBX],ECX
CMP EAX,0x1
JG 0x00185799
MOV RSI,RBX
MOV RDX,R14
CALL 0x00120d90
LAB_00185799:
XOR EBX,EBX
XOR ECX,ECX
MOV R14D,0x6
JMP 0x00185761
|
int1 [16]
js_typed_array_of(long param_1,int8 param_2,int8 param_3,uint param_4,long param_5)
{
int *piVar1;
int8 uVar2;
int iVar3;
int *piVar4;
int8 *puVar5;
ulong uVar6;
int1 auVar7 [16];
int1 auVar8 [16];
auVar7 = js_typed_array_create();
piVar4 = auVar7._0_8_;
if ((auVar7._8_4_ != 6) && (0 < (int)param_4)) {
puVar5 = (int8 *)(param_5 + 8);
uVar6 = 0;
do {
piVar1 = (int *)puVar5[-1];
uVar2 = *puVar5;
if (0xfffffff6 < (uint)uVar2) {
*piVar1 = *piVar1 + 1;
}
iVar3 = JS_SetPropertyValue(param_1,piVar4,auVar7._8_8_,uVar6,0,piVar1,uVar2,0x4000);
if (iVar3 < 0) {
if (0xfffffff6 < auVar7._8_4_) {
uVar2 = *(int8 *)(param_1 + 0x18);
iVar3 = *piVar4;
*piVar4 = iVar3 + -1;
if (iVar3 < 2) {
js_free_value_rt(uVar2,piVar4,auVar7._8_8_);
}
}
uVar6 = 0;
auVar7 = ZEXT816(6) << 0x40;
goto LAB_00185761;
}
uVar6 = uVar6 + 1;
puVar5 = puVar5 + 2;
} while (param_4 != uVar6);
}
uVar6 = (ulong)piVar4 & 0xffffffff00000000;
LAB_00185761:
auVar8._0_8_ = auVar7._0_8_ & 0xffffffff | uVar6;
auVar8._8_8_ = auVar7._8_8_;
return auVar8;
}
| |
36,211 | google::protobuf::DescriptorProto_ExtensionRange::_internal_mutable_options() | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.h | inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::_internal_mutable_options() {
_impl_._has_bits_[0] |= 0x00000001u;
if (_impl_.options_ == nullptr) {
auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>(GetArenaForAllocation());
_impl_.options_ = p;
}
return _impl_.options_;
} | O0 | c | google::protobuf::DescriptorProto_ExtensionRange::_internal_mutable_options():
subq $0x28, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rax, %rcx
addq $0x10, %rcx
movq %rcx, 0x20(%rsp)
movl $0x0, 0x1c(%rsp)
movq 0x20(%rsp), %rcx
movslq 0x1c(%rsp), %rdx
movl (%rcx,%rdx,4), %esi
orl $0x1, %esi
movl %esi, (%rcx,%rdx,4)
cmpq $0x0, 0x18(%rax)
jne 0x80156
movq (%rsp), %rdi
callq 0x80180
movq %rax, %rdi
callq 0x80170
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x8(%rsp)
movq 0x8(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq (%rsp), %rax
movq 0x18(%rax), %rax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN6google8protobuf30DescriptorProto_ExtensionRange25_internal_mutable_optionsEv:
sub rsp, 28h
mov [rsp+28h+var_18], rdi
mov rax, [rsp+28h+var_18]
mov [rsp+28h+var_28], rax
mov rcx, rax
add rcx, 10h
mov [rsp+28h+var_8], rcx
mov [rsp+28h+var_C], 0
mov rcx, [rsp+28h+var_8]
movsxd rdx, [rsp+28h+var_C]
mov esi, [rcx+rdx*4]
or esi, 1
mov [rcx+rdx*4], esi
cmp qword ptr [rax+18h], 0
jnz short loc_80156
mov rdi, [rsp+28h+var_28]; this
call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void)
mov rdi, rax; int
call _ZN6google8protobuf11MessageLite18CreateMaybeMessageINS0_21ExtensionRangeOptionsEEEPT_PNS0_5ArenaE; google::protobuf::MessageLite::CreateMaybeMessage<google::protobuf::ExtensionRangeOptions>(google::protobuf::Arena *)
mov rcx, rax
mov rax, [rsp+28h+var_28]
mov [rsp+28h+var_20], rcx
mov rcx, [rsp+28h+var_20]
mov [rax+18h], rcx
loc_80156:
mov rax, [rsp+28h+var_28]
mov rax, [rax+18h]
add rsp, 28h
retn
| long long google::protobuf::DescriptorProto_ExtensionRange::_internal_mutable_options(
google::protobuf::DescriptorProto_ExtensionRange *this)
{
int ArenaForAllocation; // eax
*((_DWORD *)this + 4) |= 1u;
if ( !*((_QWORD *)this + 3) )
{
ArenaForAllocation = google::protobuf::MessageLite::GetArenaForAllocation(this);
*((_QWORD *)this + 3) = google::protobuf::MessageLite::CreateMaybeMessage<google::protobuf::ExtensionRangeOptions>(ArenaForAllocation);
}
return *((_QWORD *)this + 3);
}
| _internal_mutable_options:
SUB RSP,0x28
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP],RAX
MOV RCX,RAX
ADD RCX,0x10
MOV qword ptr [RSP + 0x20],RCX
MOV dword ptr [RSP + 0x1c],0x0
MOV RCX,qword ptr [RSP + 0x20]
MOVSXD RDX,dword ptr [RSP + 0x1c]
MOV ESI,dword ptr [RCX + RDX*0x4]
OR ESI,0x1
MOV dword ptr [RCX + RDX*0x4],ESI
CMP qword ptr [RAX + 0x18],0x0
JNZ 0x00180156
MOV RDI,qword ptr [RSP]
CALL 0x00180180
MOV RDI,RAX
CALL 0x00180170
MOV RCX,RAX
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0x8],RCX
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x18],RCX
LAB_00180156:
MOV RAX,qword ptr [RSP]
MOV RAX,qword ptr [RAX + 0x18]
ADD RSP,0x28
RET
|
/* google::protobuf::DescriptorProto_ExtensionRange::_internal_mutable_options() */
int8 __thiscall
google::protobuf::DescriptorProto_ExtensionRange::_internal_mutable_options
(DescriptorProto_ExtensionRange *this)
{
Arena *pAVar1;
ExtensionRangeOptions *pEVar2;
*(uint *)(this + 0x10) = *(uint *)(this + 0x10) | 1;
if (*(long *)(this + 0x18) == 0) {
pAVar1 = (Arena *)MessageLite::GetArenaForAllocation((MessageLite *)this);
pEVar2 = MessageLite::CreateMaybeMessage<google::protobuf::ExtensionRangeOptions>(pAVar1);
*(ExtensionRangeOptions **)(this + 0x18) = pEVar2;
}
return *(int8 *)(this + 0x18);
}
| |
36,212 | my_readlink | eloqsql/mysys/my_symlink.c | int my_readlink(char *to, const char *filename, myf MyFlags)
{
#ifndef HAVE_READLINK
strmov(to,filename);
return 1;
#else
int result=0;
int length;
DBUG_ENTER("my_readlink");
if ((length=readlink(filename, to, FN_REFLEN-1)) < 0)
{
/* Don't give an error if this wasn't a symlink */
if ((my_errno=errno) == EINVAL)
{
result= 1;
strmov(to,filename);
}
else
{
if (MyFlags & MY_WME)
my_error(EE_CANT_READLINK, MYF(0), filename, errno);
result= -1;
}
}
else
to[length]=0;
DBUG_PRINT("exit" ,("result: %d", result));
DBUG_RETURN(result);
#endif /* HAVE_READLINK */
} | O3 | c | my_readlink:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1ff, %edx # imm = 0x1FF
movq %rsi, %rdi
movq %r14, %rsi
callq 0x29260
testl %eax, %eax
js 0xa0852
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
movb $0x0, (%r14,%rax)
xorl %r14d, %r14d
jmp 0xa089f
callq 0x297b0
movq %rax, %r12
movl (%rax), %r13d
callq 0xa1672
movl %r13d, (%rax)
cmpl $0x16, %r13d
jne 0xa087e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x29360
movl $0x1, %r14d
jmp 0xa089f
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
testb $0x10, %r15b
je 0xa089f
movl (%r12), %ecx
movl $0x18, %edi
xorl %esi, %esi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x9dd27
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_readlink:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rdx
mov rbx, rsi
mov r14, rdi
mov edx, 1FFh
mov rdi, rsi
mov rsi, r14
call _readlink
test eax, eax
js short loc_A0852
and eax, 7FFFFFFFh
mov byte ptr [r14+rax], 0
xor r14d, r14d
jmp short loc_A089F
loc_A0852:
call ___errno_location
mov r12, rax
mov r13d, [rax]
call _my_thread_var
mov [rax], r13d
cmp r13d, 16h
jnz short loc_A087E
mov rdi, r14
mov rsi, rbx
call _strcpy
mov r14d, 1
jmp short loc_A089F
loc_A087E:
mov r14d, 0FFFFFFFFh
test r15b, 10h
jz short loc_A089F
mov ecx, [r12]
mov edi, 18h
xor esi, esi
mov rdx, rbx
xor eax, eax
call my_error
loc_A089F:
mov eax, r14d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_readlink(const char *a1, long long a2, char a3)
{
int v4; // eax
unsigned int v5; // r14d
unsigned int *v6; // r12
unsigned int v7; // r13d
v4 = readlink(a2, a1, 511LL);
if ( v4 < 0 )
{
v6 = (unsigned int *)__errno_location(a2);
v7 = *v6;
*(_DWORD *)my_thread_var(a2, a1) = v7;
if ( v7 == 22 )
{
strcpy(a1, a2);
return 1;
}
else
{
v5 = -1;
if ( (a3 & 0x10) != 0 )
my_error(0x18u, 0LL, a2, *v6);
}
}
else
{
a1[v4 & 0x7FFFFFFF] = 0;
return 0;
}
return v5;
}
| my_readlink:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDX
MOV RBX,RSI
MOV R14,RDI
MOV EDX,0x1ff
MOV RDI,RSI
MOV RSI,R14
CALL 0x00129260
TEST EAX,EAX
JS 0x001a0852
AND EAX,0x7fffffff
MOV byte ptr [R14 + RAX*0x1],0x0
XOR R14D,R14D
JMP 0x001a089f
LAB_001a0852:
CALL 0x001297b0
MOV R12,RAX
MOV R13D,dword ptr [RAX]
CALL 0x001a1672
MOV dword ptr [RAX],R13D
CMP R13D,0x16
JNZ 0x001a087e
MOV RDI,R14
MOV RSI,RBX
CALL 0x00129360
MOV R14D,0x1
JMP 0x001a089f
LAB_001a087e:
MOV R14D,0xffffffff
TEST R15B,0x10
JZ 0x001a089f
MOV ECX,dword ptr [R12]
MOV EDI,0x18
XOR ESI,ESI
MOV RDX,RBX
XOR EAX,EAX
CALL 0x0019dd27
LAB_001a089f:
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 my_readlink(char *param_1,char *param_2,ulong param_3)
{
int iVar1;
ssize_t sVar2;
int *piVar3;
int *piVar4;
int8 uVar5;
sVar2 = readlink(param_2,param_1,0x1ff);
if ((int)(uint)sVar2 < 0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar4 = (int *)_my_thread_var();
*piVar4 = iVar1;
if (iVar1 == 0x16) {
strcpy(param_1,param_2);
uVar5 = 1;
}
else {
uVar5 = 0xffffffff;
if ((param_3 & 0x10) != 0) {
my_error(0x18,0,param_2,*piVar3);
}
}
}
else {
param_1[(uint)sVar2 & 0x7fffffff] = '\0';
uVar5 = 0;
}
return uVar5;
}
| |
36,213 | my_ftell | eloqsql/mysys/my_fstream.c | my_off_t my_ftell(FILE *stream, myf MyFlags __attribute__((unused)))
{
long long pos;
DBUG_ENTER("my_ftell");
DBUG_PRINT("my",("stream:%p MyFlags: %lu", stream, MyFlags));
pos=IF_WIN(_ftelli64(stream),ftell(stream));
DBUG_PRINT("exit",("ftell: %lld",pos));
DBUG_RETURN((my_off_t) pos);
} | O0 | c | my_ftell:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
jmp 0xdc7b2
movq -0x8(%rbp), %rdi
callq 0x3ac50
movq %rax, -0x18(%rbp)
jmp 0xdc7c1
jmp 0xdc7c3
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| my_ftell:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
jmp short $+2
loc_DC7B2:
mov rdi, [rbp+var_8]
call _ftello64
mov [rbp+var_18], rax
jmp short $+2
loc_DC7C1:
jmp short $+2
loc_DC7C3:
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
add rsp, 20h
pop rbp
retn
| long long my_ftell(long long a1)
{
return ftello64(a1);
}
| my_ftell:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
JMP 0x001dc7b2
LAB_001dc7b2:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0013ac50
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001dc7c1
LAB_001dc7c1:
JMP 0x001dc7c3
LAB_001dc7c3:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x20
POP RBP
RET
|
__off64_t my_ftell(FILE *param_1)
{
__off64_t _Var1;
_Var1 = ftello64(param_1);
return _Var1;
}
| |
36,214 | SetAudioBufferPitch | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c | void SetAudioBufferPitch(AudioBuffer *buffer, float pitch)
{
if ((buffer != NULL) && (pitch > 0.0f))
{
ma_mutex_lock(&AUDIO.System.lock);
// Pitching is just an adjustment of the sample rate
// Note that this changes the duration of the sound:
// - higher pitches will make the sound faster
// - lower pitches make it slower
ma_uint32 outputSampleRate = (ma_uint32)((float)buffer->converter.sampleRateOut/pitch);
ma_data_converter_set_rate(&buffer->converter, buffer->converter.sampleRateIn, outputSampleRate);
buffer->pitch = pitch;
ma_mutex_unlock(&AUDIO.System.lock);
}
} | O0 | c | SetAudioBufferPitch:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movss %xmm0, -0xc(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x7a555
movss -0xc(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x7a555
leaq 0x19d6ec(%rip), %rdi # 0x217be8
callq 0x1d970
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
cvtsi2ss %rax, %xmm0
movss -0xc(%rbp), %xmm1
divss %xmm1, %xmm0
cvttss2si %xmm0, %rax
movl %eax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x10(%rax), %esi
movl -0x10(%rbp), %edx
callq 0x4f9f0
movss -0xc(%rbp), %xmm0
movq -0x8(%rbp), %rax
movss %xmm0, 0x14c(%rax)
leaq 0x19c3e7(%rip), %rdi # 0x216930
addq $0x12b8, %rdi # imm = 0x12B8
callq 0x1d9e0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| SetAudioBufferPitch:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
movss [rbp+var_C], xmm0
cmp [rbp+var_8], 0
jz short loc_7A555
movss xmm0, [rbp+var_C]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jbe short loc_7A555
lea rdi, unk_217BE8
call ma_mutex_lock
mov rax, [rbp+var_8]
mov eax, [rax+14h]
cvtsi2ss xmm0, rax
movss xmm1, [rbp+var_C]
divss xmm0, xmm1
cvttss2si rax, xmm0
mov [rbp+var_10], eax
mov rdi, [rbp+var_8]
mov rax, [rbp+var_8]
mov esi, [rax+10h]
mov edx, [rbp+var_10]
call ma_data_converter_set_rate
movss xmm0, [rbp+var_C]
mov rax, [rbp+var_8]
movss dword ptr [rax+14Ch], xmm0
lea rdi, AUDIO
add rdi, 12B8h
call ma_mutex_unlock
loc_7A555:
add rsp, 10h
pop rbp
retn
| long long SetAudioBufferPitch(long long a1, float a2)
{
long long result; // rax
if ( a1 )
{
if ( a2 > 0.0 )
{
ma_mutex_lock((long long)&unk_217BE8);
ma_data_converter_set_rate(a1, *(_DWORD *)(a1 + 16), (int)(float)((float)*(int *)(a1 + 20) / a2));
*(float *)(a1 + 332) = a2;
return ma_mutex_unlock((long long)&AUDIO + 4792);
}
}
return result;
}
| SetAudioBufferPitch:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOVSS dword ptr [RBP + -0xc],XMM0
CMP qword ptr [RBP + -0x8],0x0
JZ 0x0017a555
MOVSS XMM0,dword ptr [RBP + -0xc]
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JBE 0x0017a555
LEA RDI,[0x317be8]
CALL 0x0011d970
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x14]
CVTSI2SS XMM0,RAX
MOVSS XMM1,dword ptr [RBP + -0xc]
DIVSS XMM0,XMM1
CVTTSS2SI RAX,XMM0
MOV dword ptr [RBP + -0x10],EAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x10]
MOV EDX,dword ptr [RBP + -0x10]
CALL 0x0014f9f0
MOVSS XMM0,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RBP + -0x8]
MOVSS dword ptr [RAX + 0x14c],XMM0
LEA RDI,[0x316930]
ADD RDI,0x12b8
CALL 0x0011d9e0
LAB_0017a555:
ADD RSP,0x10
POP RBP
RET
|
void SetAudioBufferPitch(float param_1,long param_2)
{
if ((param_2 != 0) && (0.0 < param_1)) {
ma_mutex_lock(0x317be8);
ma_data_converter_set_rate
(param_2,*(int4 *)(param_2 + 0x10),
(long)((float)*(uint *)(param_2 + 0x14) / param_1) & 0xffffffff);
*(float *)(param_2 + 0x14c) = param_1;
ma_mutex_unlock(0x317be8);
}
return;
}
| |
36,215 | SetAudioBufferPitch | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c | void SetAudioBufferPitch(AudioBuffer *buffer, float pitch)
{
if ((buffer != NULL) && (pitch > 0.0f))
{
ma_mutex_lock(&AUDIO.System.lock);
// Pitching is just an adjustment of the sample rate
// Note that this changes the duration of the sound:
// - higher pitches will make the sound faster
// - lower pitches make it slower
ma_uint32 outputSampleRate = (ma_uint32)((float)buffer->converter.sampleRateOut/pitch);
ma_data_converter_set_rate(&buffer->converter, buffer->converter.sampleRateIn, outputSampleRate);
buffer->pitch = pitch;
ma_mutex_unlock(&AUDIO.System.lock);
}
} | O1 | c | SetAudioBufferPitch:
testq %rdi, %rdi
je 0x43545
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x43545
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xfb628(%rip), %rdi # 0x13eb18
movss %xmm0, 0xc(%rsp)
callq 0x97d0
cmpb $0x0, 0x12b(%rbx)
je 0x43526
movl 0x10(%rbx), %esi
movl 0x14(%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
divss 0xc(%rsp), %xmm0
cvttss2si %xmm0, %rdx
leaq 0x68(%rbx), %rdi
callq 0x244dd
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x14c(%rbx)
leaq 0xfb5dd(%rip), %rdi # 0x13eb18
addq $0x10, %rsp
popq %rbx
jmp 0x93c0
retq
| SetAudioBufferPitch:
test rdi, rdi
jz short locret_43545
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jbe short locret_43545
push rbx
sub rsp, 10h
mov rbx, rdi
lea rdi, unk_13EB18
movss [rsp+18h+var_C], xmm0
call _pthread_mutex_lock
cmp byte ptr [rbx+12Bh], 0
jz short loc_43526
mov esi, [rbx+10h]
mov eax, [rbx+14h]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, [rsp+18h+var_C]
cvttss2si rdx, xmm0
lea rdi, [rbx+68h]
call ma_resampler_set_rate
loc_43526:
movss xmm0, [rsp+18h+var_C]
movss dword ptr [rbx+14Ch], xmm0
lea rdi, unk_13EB18
add rsp, 10h
pop rbx
jmp _pthread_mutex_unlock
locret_43545:
retn
| long long SetAudioBufferPitch(long long a1, float a2)
{
long long result; // rax
if ( a1 && a2 > 0.0 )
{
pthread_mutex_lock(&unk_13EB18);
if ( *(_BYTE *)(a1 + 299) )
ma_resampler_set_rate(a1 + 104, *(_DWORD *)(a1 + 16), (int)(float)((float)*(int *)(a1 + 20) / a2));
*(float *)(a1 + 332) = a2;
return pthread_mutex_unlock(&unk_13EB18);
}
return result;
}
| SetAudioBufferPitch:
TEST RDI,RDI
JZ 0x00143545
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JBE 0x00143545
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
LEA RDI,[0x23eb18]
MOVSS dword ptr [RSP + 0xc],XMM0
CALL 0x001097d0
CMP byte ptr [RBX + 0x12b],0x0
JZ 0x00143526
MOV ESI,dword ptr [RBX + 0x10]
MOV EAX,dword ptr [RBX + 0x14]
XORPS XMM0,XMM0
CVTSI2SS XMM0,RAX
DIVSS XMM0,dword ptr [RSP + 0xc]
CVTTSS2SI RDX,XMM0
LEA RDI,[RBX + 0x68]
CALL 0x001244dd
LAB_00143526:
MOVSS XMM0,dword ptr [RSP + 0xc]
MOVSS dword ptr [RBX + 0x14c],XMM0
LEA RDI,[0x23eb18]
ADD RSP,0x10
POP RBX
JMP 0x001093c0
LAB_00143545:
RET
|
void SetAudioBufferPitch(float param_1,long param_2)
{
if ((param_2 != 0) && (0.0 < param_1)) {
pthread_mutex_lock((pthread_mutex_t *)(AUDIO + 0x12b8));
if (*(char *)(param_2 + 299) != '\0') {
ma_resampler_set_rate
(param_2 + 0x68,*(int4 *)(param_2 + 0x10),
(long)((float)*(uint *)(param_2 + 0x14) / param_1));
}
*(float *)(param_2 + 0x14c) = param_1;
pthread_mutex_unlock((pthread_mutex_t *)(AUDIO + 0x12b8));
return;
}
return;
}
| |
36,216 | SetAudioBufferPitch | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c | void SetAudioBufferPitch(AudioBuffer *buffer, float pitch)
{
if ((buffer != NULL) && (pitch > 0.0f))
{
ma_mutex_lock(&AUDIO.System.lock);
// Pitching is just an adjustment of the sample rate
// Note that this changes the duration of the sound:
// - higher pitches will make the sound faster
// - lower pitches make it slower
ma_uint32 outputSampleRate = (ma_uint32)((float)buffer->converter.sampleRateOut/pitch);
ma_data_converter_set_rate(&buffer->converter, buffer->converter.sampleRateIn, outputSampleRate);
buffer->pitch = pitch;
ma_mutex_unlock(&AUDIO.System.lock);
}
} | O2 | c | SetAudioBufferPitch:
testq %rdi, %rdi
je 0x3ad4b
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x3ad4b
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xe9e46(%rip), %r14 # 0x124b48
movq %r14, %rdi
movss %xmm0, 0x4(%rsp)
callq 0x97c0
movl 0x14(%rbx), %eax
cvtsi2ss %rax, %xmm0
movl 0x10(%rbx), %esi
divss 0x4(%rsp), %xmm0
cvttss2si %xmm0, %rdx
movq %rbx, %rdi
callq 0x22267
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x14c(%rbx)
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x93b0
retq
| SetAudioBufferPitch:
test rdi, rdi
jz short locret_3AD4B
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jbe short locret_3AD4B
push r14
push rbx
push rax
mov rbx, rdi
lea r14, unk_124B48
mov rdi, r14
movss [rsp+18h+var_14], xmm0
call _pthread_mutex_lock
mov eax, [rbx+14h]
cvtsi2ss xmm0, rax
mov esi, [rbx+10h]
divss xmm0, [rsp+18h+var_14]
cvttss2si rdx, xmm0
mov rdi, rbx
call ma_data_converter_set_rate
movss xmm0, [rsp+18h+var_14]
movss dword ptr [rbx+14Ch], xmm0
mov rdi, r14
add rsp, 8
pop rbx
pop r14
jmp _pthread_mutex_unlock
locret_3AD4B:
retn
| long long SetAudioBufferPitch(long long a1, float a2)
{
long long result; // rax
if ( a1 )
{
if ( a2 > 0.0 )
{
pthread_mutex_lock(&unk_124B48);
ma_data_converter_set_rate(a1, *(_DWORD *)(a1 + 16), (int)(float)((float)*(int *)(a1 + 20) / a2));
*(float *)(a1 + 332) = a2;
return pthread_mutex_unlock(&unk_124B48);
}
}
return result;
}
| SetAudioBufferPitch:
TEST RDI,RDI
JZ 0x0013ad4b
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JBE 0x0013ad4b
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA R14,[0x224b48]
MOV RDI,R14
MOVSS dword ptr [RSP + 0x4],XMM0
CALL 0x001097c0
MOV EAX,dword ptr [RBX + 0x14]
CVTSI2SS XMM0,RAX
MOV ESI,dword ptr [RBX + 0x10]
DIVSS XMM0,dword ptr [RSP + 0x4]
CVTTSS2SI RDX,XMM0
MOV RDI,RBX
CALL 0x00122267
MOVSS XMM0,dword ptr [RSP + 0x4]
MOVSS dword ptr [RBX + 0x14c],XMM0
MOV RDI,R14
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001093b0
LAB_0013ad4b:
RET
|
void SetAudioBufferPitch(float param_1,long param_2)
{
if ((param_2 != 0) && (0.0 < param_1)) {
pthread_mutex_lock((pthread_mutex_t *)(AUDIO + 0x12b8));
ma_data_converter_set_rate
(param_2,*(int4 *)(param_2 + 0x10),
(long)((float)*(uint *)(param_2 + 0x14) / param_1));
*(float *)(param_2 + 0x14c) = param_1;
pthread_mutex_unlock((pthread_mutex_t *)(AUDIO + 0x12b8));
return;
}
return;
}
| |
36,217 | SetAudioBufferPitch | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c | void SetAudioBufferPitch(AudioBuffer *buffer, float pitch)
{
if ((buffer != NULL) && (pitch > 0.0f))
{
ma_mutex_lock(&AUDIO.System.lock);
// Pitching is just an adjustment of the sample rate
// Note that this changes the duration of the sound:
// - higher pitches will make the sound faster
// - lower pitches make it slower
ma_uint32 outputSampleRate = (ma_uint32)((float)buffer->converter.sampleRateOut/pitch);
ma_data_converter_set_rate(&buffer->converter, buffer->converter.sampleRateIn, outputSampleRate);
buffer->pitch = pitch;
ma_mutex_unlock(&AUDIO.System.lock);
}
} | O3 | c | SetAudioBufferPitch:
testq %rdi, %rdi
je 0x42d91
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x42d91
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xf5dec(%rip), %rdi # 0x138b28
movss %xmm0, 0xc(%rsp)
callq 0xa7d0
cmpb $0x0, 0x12b(%rbx)
je 0x42d72
movl 0x10(%rbx), %esi
movl 0x14(%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
divss 0xc(%rsp), %xmm0
cvttss2si %xmm0, %rdx
leaq 0x68(%rbx), %rdi
callq 0x24178
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x14c(%rbx)
leaq 0xf5da1(%rip), %rdi # 0x138b28
addq $0x10, %rsp
popq %rbx
jmp 0xa3c0
retq
| SetAudioBufferPitch:
test rdi, rdi
jz short locret_42D91
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jbe short locret_42D91
push rbx
sub rsp, 10h
mov rbx, rdi
lea rdi, unk_138B28
movss [rsp+18h+var_C], xmm0
call _pthread_mutex_lock
cmp byte ptr [rbx+12Bh], 0
jz short loc_42D72
mov esi, [rbx+10h]
mov eax, [rbx+14h]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, [rsp+18h+var_C]
cvttss2si rdx, xmm0
lea rdi, [rbx+68h]
call ma_resampler_set_rate
loc_42D72:
movss xmm0, [rsp+18h+var_C]
movss dword ptr [rbx+14Ch], xmm0
lea rdi, unk_138B28
add rsp, 10h
pop rbx
jmp _pthread_mutex_unlock
locret_42D91:
retn
| long long SetAudioBufferPitch(long long a1, float a2)
{
long long result; // rax
if ( a1 && a2 > 0.0 )
{
pthread_mutex_lock(&unk_138B28);
if ( *(_BYTE *)(a1 + 299) )
ma_resampler_set_rate(a1 + 104, *(_DWORD *)(a1 + 16), (int)(float)((float)*(int *)(a1 + 20) / a2));
*(float *)(a1 + 332) = a2;
return pthread_mutex_unlock(&unk_138B28);
}
return result;
}
| SetAudioBufferPitch:
TEST RDI,RDI
JZ 0x00142d91
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JBE 0x00142d91
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
LEA RDI,[0x238b28]
MOVSS dword ptr [RSP + 0xc],XMM0
CALL 0x0010a7d0
CMP byte ptr [RBX + 0x12b],0x0
JZ 0x00142d72
MOV ESI,dword ptr [RBX + 0x10]
MOV EAX,dword ptr [RBX + 0x14]
XORPS XMM0,XMM0
CVTSI2SS XMM0,RAX
DIVSS XMM0,dword ptr [RSP + 0xc]
CVTTSS2SI RDX,XMM0
LEA RDI,[RBX + 0x68]
CALL 0x00124178
LAB_00142d72:
MOVSS XMM0,dword ptr [RSP + 0xc]
MOVSS dword ptr [RBX + 0x14c],XMM0
LEA RDI,[0x238b28]
ADD RSP,0x10
POP RBX
JMP 0x0010a3c0
LAB_00142d91:
RET
|
void SetAudioBufferPitch(float param_1,long param_2)
{
if ((param_2 != 0) && (0.0 < param_1)) {
pthread_mutex_lock((pthread_mutex_t *)(AUDIO + 0x12b8));
if (*(char *)(param_2 + 299) != '\0') {
ma_resampler_set_rate
(param_2 + 0x68,*(int4 *)(param_2 + 0x10),
(long)((float)*(uint *)(param_2 + 0x14) / param_1));
}
*(float *)(param_2 + 0x14c) = param_1;
pthread_mutex_unlock((pthread_mutex_t *)(AUDIO + 0x12b8));
return;
}
return;
}
| |
36,218 | mj_nf | aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_core_constraint.c | static int mj_nf(const mjModel* m, const mjData* d, int *nnz) {
int nf = 0, nnzf = 0;
int nv = m->nv, ntendon = m->ntendon;
if (mjDISABLED(mjDSBL_FRICTIONLOSS)) {
return 0;
}
for (int i=0; i < nv; i++) {
if (m->dof_frictionloss[i] > 0) {
nf += mj_addConstraintCount(m, 1, 1);
nnzf++;
}
}
for (int i=0; i < ntendon; i++) {
if (m->tendon_frictionloss[i] > 0) {
nf += mj_addConstraintCount(m, 1, d->ten_J_rownnz[i]);
nnzf += d->ten_J_rownnz[i];
}
}
if (nnz) {
*nnz += nnzf;
}
return nf;
} | O0 | c | mj_nf:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
movl $0x0, 0x10(%rsp)
movq 0x28(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, 0xc(%rsp)
movq 0x28(%rsp), %rax
movl 0xa4(%rax), %eax
movl %eax, 0x8(%rsp)
movq 0x28(%rsp), %rax
movl 0x258(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x7673e
movl $0x0, 0x34(%rsp)
jmp 0x76841
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
cmpl 0xc(%rsp), %eax
jge 0x767a3
movq 0x28(%rsp), %rax
movq 0x700(%rax), %rax
movslq 0x4(%rsp), %rcx
vmovsd (%rax,%rcx,8), %xmm0
vxorps %xmm1, %xmm1, %xmm1
vucomisd %xmm1, %xmm0
jbe 0x76794
movq 0x28(%rsp), %rdi
movl $0x1, %edx
movl %edx, %esi
callq 0x7a100
addl 0x14(%rsp), %eax
movl %eax, 0x14(%rsp)
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0x76796
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x76746
movl $0x0, (%rsp)
movl (%rsp), %eax
cmpl 0x8(%rsp), %eax
jge 0x76824
movq 0x28(%rsp), %rax
movq 0xde0(%rax), %rax
movslq (%rsp), %rcx
vmovsd (%rax,%rcx,8), %xmm0
vxorps %xmm1, %xmm1, %xmm1
vucomisd %xmm1, %xmm0
jbe 0x76817
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x278d8(%rax), %rax
movslq (%rsp), %rcx
movl (%rax,%rcx,4), %edx
movl $0x1, %esi
callq 0x7a100
addl 0x14(%rsp), %eax
movl %eax, 0x14(%rsp)
movq 0x20(%rsp), %rax
movq 0x278d8(%rax), %rax
movslq (%rsp), %rcx
movl (%rax,%rcx,4), %eax
addl 0x10(%rsp), %eax
movl %eax, 0x10(%rsp)
jmp 0x76819
movl (%rsp), %eax
addl $0x1, %eax
movl %eax, (%rsp)
jmp 0x767aa
cmpq $0x0, 0x18(%rsp)
je 0x76839
movl 0x10(%rsp), %ecx
movq 0x18(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movl 0x14(%rsp), %eax
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw (%rax,%rax)
| mj_nf:
sub rsp, 38h
mov [rsp+38h+var_10], rdi
mov [rsp+38h+var_18], rsi
mov [rsp+38h+var_20], rdx
mov [rsp+38h+var_24], 0
mov [rsp+38h+var_28], 0
mov rax, [rsp+38h+var_10]
mov eax, [rax+4]
mov [rsp+38h+var_2C], eax
mov rax, [rsp+38h+var_10]
mov eax, [rax+0A4h]
mov [rsp+38h+var_30], eax
mov rax, [rsp+38h+var_10]
mov eax, [rax+258h]
and eax, 4
cmp eax, 0
jz short loc_7673E
mov [rsp+38h+var_4], 0
jmp loc_76841
loc_7673E:
mov [rsp+38h+var_34], 0
loc_76746:
mov eax, [rsp+38h+var_34]
cmp eax, [rsp+38h+var_2C]
jge short loc_767A3
mov rax, [rsp+38h+var_10]
mov rax, [rax+700h]
movsxd rcx, [rsp+38h+var_34]
vmovsd xmm0, qword ptr [rax+rcx*8]
vxorps xmm1, xmm1, xmm1
vucomisd xmm0, xmm1
jbe short loc_76794
mov rdi, [rsp+38h+var_10]
mov edx, 1
mov esi, edx
call mj_addConstraintCount
add eax, [rsp+38h+var_24]
mov [rsp+38h+var_24], eax
mov eax, [rsp+38h+var_28]
add eax, 1
mov [rsp+38h+var_28], eax
loc_76794:
jmp short $+2
loc_76796:
mov eax, [rsp+38h+var_34]
add eax, 1
mov [rsp+38h+var_34], eax
jmp short loc_76746
loc_767A3:
mov [rsp+38h+var_38], 0
loc_767AA:
mov eax, [rsp+38h+var_38]
cmp eax, [rsp+38h+var_30]
jge short loc_76824
mov rax, [rsp+38h+var_10]
mov rax, [rax+0DE0h]
movsxd rcx, [rsp+38h+var_38]
vmovsd xmm0, qword ptr [rax+rcx*8]
vxorps xmm1, xmm1, xmm1
vucomisd xmm0, xmm1
jbe short loc_76817
mov rdi, [rsp+38h+var_10]
mov rax, [rsp+38h+var_18]
mov rax, [rax+278D8h]
movsxd rcx, [rsp+38h+var_38]
mov edx, [rax+rcx*4]
mov esi, 1
call mj_addConstraintCount
add eax, [rsp+38h+var_24]
mov [rsp+38h+var_24], eax
mov rax, [rsp+38h+var_18]
mov rax, [rax+278D8h]
movsxd rcx, [rsp+38h+var_38]
mov eax, [rax+rcx*4]
add eax, [rsp+38h+var_28]
mov [rsp+38h+var_28], eax
loc_76817:
jmp short $+2
loc_76819:
mov eax, [rsp+38h+var_38]
add eax, 1
mov [rsp+38h+var_38], eax
jmp short loc_767AA
loc_76824:
cmp [rsp+38h+var_20], 0
jz short loc_76839
mov ecx, [rsp+38h+var_28]
mov rax, [rsp+38h+var_20]
add ecx, [rax]
mov [rax], ecx
loc_76839:
mov eax, [rsp+38h+var_24]
mov [rsp+38h+var_4], eax
loc_76841:
mov eax, [rsp+38h+var_4]
add rsp, 38h
retn
| long long mj_nf(long long a1, long long a2, _DWORD *a3, double a4, __m128 _XMM1)
{
unsigned int j; // [rsp+0h] [rbp-38h]
unsigned int i; // [rsp+4h] [rbp-34h]
unsigned int v14; // [rsp+8h] [rbp-30h]
unsigned int v15; // [rsp+Ch] [rbp-2Ch]
int v16; // [rsp+10h] [rbp-28h]
unsigned int v17; // [rsp+14h] [rbp-24h]
v17 = 0;
v16 = 0;
v15 = *(_DWORD *)(a1 + 4);
v14 = *(_DWORD *)(a1 + 164);
if ( (*(_DWORD *)(a1 + 600) & 4) != 0 )
{
return 0;
}
else
{
for ( i = 0; (int)i < (int)v15; ++i )
{
_RAX = *(_QWORD *)(a1 + 1792);
_RCX = (int)i;
__asm
{
vmovsd xmm0, qword ptr [rax+rcx*8]
vxorps xmm1, xmm1, xmm1
vucomisd xmm0, xmm1
}
if ( i > v15 )
{
v17 += mj_addConstraintCount(a1, 1LL, 1LL);
++v16;
}
}
for ( j = 0; (int)j < (int)v14; ++j )
{
_RAX = *(_QWORD *)(a1 + 3552);
_RCX = (int)j;
__asm
{
vmovsd xmm0, qword ptr [rax+rcx*8]
vxorps xmm1, xmm1, xmm1
vucomisd xmm0, xmm1
}
if ( j > v14 )
{
v17 += mj_addConstraintCount(a1, 1LL, *(unsigned int *)(*(_QWORD *)(a2 + 162008) + 4LL * (int)j));
v16 += *(_DWORD *)(*(_QWORD *)(a2 + 162008) + 4LL * (int)j);
}
}
if ( a3 )
*a3 += v16;
return v17;
}
}
| mj_nf:
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],RDI
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x18],RDX
MOV dword ptr [RSP + 0x14],0x0
MOV dword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RSP + 0x28]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RSP + 0xc],EAX
MOV RAX,qword ptr [RSP + 0x28]
MOV EAX,dword ptr [RAX + 0xa4]
MOV dword ptr [RSP + 0x8],EAX
MOV RAX,qword ptr [RSP + 0x28]
MOV EAX,dword ptr [RAX + 0x258]
AND EAX,0x4
CMP EAX,0x0
JZ 0x0017673e
MOV dword ptr [RSP + 0x34],0x0
JMP 0x00176841
LAB_0017673e:
MOV dword ptr [RSP + 0x4],0x0
LAB_00176746:
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,dword ptr [RSP + 0xc]
JGE 0x001767a3
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x700]
MOVSXD RCX,dword ptr [RSP + 0x4]
VMOVSD XMM0,qword ptr [RAX + RCX*0x8]
VXORPS XMM1,XMM1,XMM1
VUCOMISD XMM0,XMM1
JBE 0x00176794
MOV RDI,qword ptr [RSP + 0x28]
MOV EDX,0x1
MOV ESI,EDX
CALL 0x0017a100
ADD EAX,dword ptr [RSP + 0x14]
MOV dword ptr [RSP + 0x14],EAX
MOV EAX,dword ptr [RSP + 0x10]
ADD EAX,0x1
MOV dword ptr [RSP + 0x10],EAX
LAB_00176794:
JMP 0x00176796
LAB_00176796:
MOV EAX,dword ptr [RSP + 0x4]
ADD EAX,0x1
MOV dword ptr [RSP + 0x4],EAX
JMP 0x00176746
LAB_001767a3:
MOV dword ptr [RSP],0x0
LAB_001767aa:
MOV EAX,dword ptr [RSP]
CMP EAX,dword ptr [RSP + 0x8]
JGE 0x00176824
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0xde0]
MOVSXD RCX,dword ptr [RSP]
VMOVSD XMM0,qword ptr [RAX + RCX*0x8]
VXORPS XMM1,XMM1,XMM1
VUCOMISD XMM0,XMM1
JBE 0x00176817
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x278d8]
MOVSXD RCX,dword ptr [RSP]
MOV EDX,dword ptr [RAX + RCX*0x4]
MOV ESI,0x1
CALL 0x0017a100
ADD EAX,dword ptr [RSP + 0x14]
MOV dword ptr [RSP + 0x14],EAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x278d8]
MOVSXD RCX,dword ptr [RSP]
MOV EAX,dword ptr [RAX + RCX*0x4]
ADD EAX,dword ptr [RSP + 0x10]
MOV dword ptr [RSP + 0x10],EAX
LAB_00176817:
JMP 0x00176819
LAB_00176819:
MOV EAX,dword ptr [RSP]
ADD EAX,0x1
MOV dword ptr [RSP],EAX
JMP 0x001767aa
LAB_00176824:
CMP qword ptr [RSP + 0x18],0x0
JZ 0x00176839
MOV ECX,dword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
ADD ECX,dword ptr [RAX]
MOV dword ptr [RAX],ECX
LAB_00176839:
MOV EAX,dword ptr [RSP + 0x14]
MOV dword ptr [RSP + 0x34],EAX
LAB_00176841:
MOV EAX,dword ptr [RSP + 0x34]
ADD RSP,0x38
RET
|
int mj_nf(long param_1,long param_2,int *param_3)
{
int iVar1;
int iVar2;
int iVar3;
int4 local_38;
int4 local_34;
int4 local_28;
int4 local_24;
int4 local_4;
local_24 = 0;
local_28 = 0;
iVar3 = *(int *)(param_1 + 4);
iVar1 = *(int *)(param_1 + 0xa4);
if ((*(uint *)(param_1 + 600) & 4) == 0) {
for (local_34 = 0; local_34 < iVar3; local_34 = local_34 + 1) {
if (0.0 < *(double *)(*(long *)(param_1 + 0x700) + (long)local_34 * 8)) {
iVar2 = mj_addConstraintCount(param_1,1);
local_24 = iVar2 + local_24;
local_28 = local_28 + 1;
}
}
for (local_38 = 0; local_38 < iVar1; local_38 = local_38 + 1) {
if (0.0 < *(double *)(*(long *)(param_1 + 0xde0) + (long)local_38 * 8)) {
iVar3 = mj_addConstraintCount
(param_1,1,
*(int4 *)(*(long *)(param_2 + 0x278d8) + (long)local_38 * 4));
local_24 = iVar3 + local_24;
local_28 = *(int *)(*(long *)(param_2 + 0x278d8) + (long)local_38 * 4) + local_28;
}
}
if (param_3 != (int *)0x0) {
*param_3 = local_28 + *param_3;
}
local_4 = local_24;
}
else {
local_4 = 0;
}
return local_4;
}
| |
36,219 | update_thread_derived_flags() | eloqsql/storage/perfschema/pfs_instr.cc | void update_thread_derived_flags()
{
global_thread_container.apply(fct_update_thread_derived_flags);
} | O3 | cpp | update_thread_derived_flags():
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
xorl %r14d, %r14d
leaq 0x3943cb(%rip), %r15 # 0x3c68f8
movq 0xa8(%r15,%r14,8), %rax
testq %rax, %rax
je 0x32573
movq 0x50(%rax), %rcx
testq %rcx, %rcx
jle 0x32573
movq 0x48(%rax), %rbx
imulq $0x1640, %rcx, %r12 # imm = 0x1640
addq %rbx, %r12
movl 0x800(%rbx), %eax
andl $0x3, %eax
cmpl $0x2, %eax
jne 0x32567
movq %rbx, %rdi
callq 0x2f83c
addq $0x1640, %rbx # imm = 0x1640
cmpq %r12, %rbx
jb 0x32551
incq %r14
cmpq $0x100, %r14 # imm = 0x100
jne 0x3252d
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _Z27update_thread_derived_flagsv:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
xor r14d, r14d
lea r15, global_thread_container
loc_3252D:
mov rax, [r15+r14*8+0A8h]
test rax, rax
jz short loc_32573
mov rcx, [rax+50h]
test rcx, rcx
jle short loc_32573
mov rbx, [rax+48h]
imul r12, rcx, 1640h
add r12, rbx
loc_32551:
mov eax, [rbx+800h]
and eax, 3
cmp eax, 2
jnz short loc_32567
mov rdi, rbx; this
call _ZN10PFS_thread25set_history_derived_flagsEv; PFS_thread::set_history_derived_flags(void)
loc_32567:
add rbx, 1640h
cmp rbx, r12
jb short loc_32551
loc_32573:
inc r14
cmp r14, 100h
jnz short loc_3252D
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| char update_thread_derived_flags(void)
{
long long i; // r14
long long v1; // rax
long long v2; // rcx
PFS_thread *v3; // rbx
PFS_thread *v4; // r12
for ( i = 0LL; i != 256; ++i )
{
v1 = global_thread_container[i + 21];
if ( v1 )
{
v2 = *(_QWORD *)(v1 + 80);
if ( v2 > 0 )
{
v3 = *(PFS_thread **)(v1 + 72);
v4 = (PFS_thread *)((char *)v3 + 5696 * v2);
do
{
LODWORD(v1) = *((_DWORD *)v3 + 512) & 3;
if ( (_DWORD)v1 == 2 )
LOBYTE(v1) = PFS_thread::set_history_derived_flags(v3);
v3 = (PFS_thread *)((char *)v3 + 5696);
}
while ( v3 < v4 );
}
}
}
return v1;
}
| update_thread_derived_flags:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
XOR R14D,R14D
LEA R15,[0x4c68f8]
LAB_0013252d:
MOV RAX,qword ptr [R15 + R14*0x8 + 0xa8]
TEST RAX,RAX
JZ 0x00132573
MOV RCX,qword ptr [RAX + 0x50]
TEST RCX,RCX
JLE 0x00132573
MOV RBX,qword ptr [RAX + 0x48]
IMUL R12,RCX,0x1640
ADD R12,RBX
LAB_00132551:
MOV EAX,dword ptr [RBX + 0x800]
AND EAX,0x3
CMP EAX,0x2
JNZ 0x00132567
MOV RDI,RBX
CALL 0x0012f83c
LAB_00132567:
ADD RBX,0x1640
CMP RBX,R12
JC 0x00132551
LAB_00132573:
INC R14
CMP R14,0x100
JNZ 0x0013252d
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* update_thread_derived_flags() */
void update_thread_derived_flags(void)
{
long lVar1;
PFS_thread *this;
PFS_thread *pPVar2;
long lVar3;
lVar3 = 0;
do {
lVar1 = *(long *)(global_thread_container + lVar3 * 8 + 0xa8);
if ((lVar1 != 0) && (0 < *(long *)(lVar1 + 0x50))) {
this = *(PFS_thread **)(lVar1 + 0x48);
pPVar2 = this + *(long *)(lVar1 + 0x50) * 0x1640;
do {
if ((*(uint *)(this + 0x800) & 3) == 2) {
PFS_thread::set_history_derived_flags(this);
}
this = this + 0x1640;
} while (this < pPVar2);
}
lVar3 = lVar3 + 1;
} while (lVar3 != 0x100);
return;
}
| |
36,220 | MNN::CreateTopKV2(flatbuffers::FlatBufferBuilder&, MNN::TopKV2T const*, std::__1::function<unsigned long (void*)> const*) | mnn-tts/MNN/schema/current/TensorflowOp_generated.h | inline flatbuffers::Offset<TopKV2> CreateTopKV2(flatbuffers::FlatBufferBuilder &_fbb, const TopKV2T *_o, const flatbuffers::rehasher_function_t *_rehasher) {
(void)_rehasher;
(void)_o;
struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const TopKV2T* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
auto _T = _o->T;
auto _sorted = _o->sorted;
auto _largest = _o->largest;
return MNN::CreateTopKV2(
_fbb,
_T,
_sorted,
_largest);
} | O0 | c | MNN::CreateTopKV2(flatbuffers::FlatBufferBuilder&, MNN::TopKV2T const*, std::__1::function<unsigned long (void*)> const*):
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
movl (%rax), %eax
movl %eax, 0xc(%rsp)
movq 0x30(%rsp), %rax
movb 0x4(%rax), %al
andb $0x1, %al
movb %al, 0xb(%rsp)
movq 0x30(%rsp), %rax
movb 0x5(%rax), %al
andb $0x1, %al
movb %al, 0xa(%rsp)
movq 0x38(%rsp), %rdi
movl 0xc(%rsp), %esi
movb 0xb(%rsp), %cl
movb 0xa(%rsp), %al
andb $0x1, %cl
andb $0x1, %al
movzbl %cl, %edx
movzbl %al, %ecx
callq 0x53d40
movl %eax, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN3MNN12CreateTopKV2ERN11flatbuffers17FlatBufferBuilderEPKNS_7TopKV2TEPKNSt3__18functionIFmPvEEE:
sub rsp, 48h
mov [rsp+48h+var_10], rdi
mov [rsp+48h+var_18], rsi
mov [rsp+48h+var_20], rdx
mov rax, [rsp+48h+var_10]
mov [rsp+48h+var_38], rax
mov rax, [rsp+48h+var_18]
mov [rsp+48h+var_30], rax
mov rax, [rsp+48h+var_20]
mov [rsp+48h+var_28], rax
mov rax, [rsp+48h+var_18]
mov eax, [rax]
mov [rsp+48h+var_3C], eax
mov rax, [rsp+48h+var_18]
mov al, [rax+4]
and al, 1
mov [rsp+48h+var_3D], al
mov rax, [rsp+48h+var_18]
mov al, [rax+5]
and al, 1
mov [rsp+48h+var_3E], al
mov rdi, [rsp+48h+var_10]
mov esi, [rsp+48h+var_3C]
mov cl, [rsp+48h+var_3D]
mov al, [rsp+48h+var_3E]
and cl, 1
and al, 1
movzx edx, cl
movzx ecx, al
call _ZN3MNN12CreateTopKV2ERN11flatbuffers17FlatBufferBuilderENS_8DataTypeEbb; MNN::CreateTopKV2(flatbuffers::FlatBufferBuilder &,MNN::DataType,bool,bool)
mov [rsp+48h+var_4], eax
mov eax, [rsp+48h+var_4]
add rsp, 48h
retn
| long long MNN::CreateTopKV2(long long a1, unsigned int *a2)
{
return (unsigned int)MNN::CreateTopKV2(a1, *a2, a2[1] & 1, *((_BYTE *)a2 + 5) & 1);
}
| CreateTopKV2:
SUB RSP,0x48
MOV qword ptr [RSP + 0x38],RDI
MOV qword ptr [RSP + 0x30],RSI
MOV qword ptr [RSP + 0x28],RDX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0xc],EAX
MOV RAX,qword ptr [RSP + 0x30]
MOV AL,byte ptr [RAX + 0x4]
AND AL,0x1
MOV byte ptr [RSP + 0xb],AL
MOV RAX,qword ptr [RSP + 0x30]
MOV AL,byte ptr [RAX + 0x5]
AND AL,0x1
MOV byte ptr [RSP + 0xa],AL
MOV RDI,qword ptr [RSP + 0x38]
MOV ESI,dword ptr [RSP + 0xc]
MOV CL,byte ptr [RSP + 0xb]
MOV AL,byte ptr [RSP + 0xa]
AND CL,0x1
AND AL,0x1
MOVZX EDX,CL
MOVZX ECX,AL
CALL 0x00153d40
MOV dword ptr [RSP + 0x44],EAX
MOV EAX,dword ptr [RSP + 0x44]
ADD RSP,0x48
RET
|
/* MNN::CreateTopKV2(flatbuffers::FlatBufferBuilder&, MNN::TopKV2T const*, std::function<unsigned
long (void*)> const*) */
int4 MNN::CreateTopKV2(FlatBufferBuilder *param_1,TopKV2T *param_2,function *param_3)
{
int4 uVar1;
uVar1 = CreateTopKV2(param_1,*(int4 *)param_2,(byte)param_2[4] & 1,(byte)param_2[5] & 1);
return uVar1;
}
| |
36,221 | mi_unmap_file | eloqsql/storage/myisam/mi_packrec.c | void _mi_unmap_file(MI_INFO *info)
{
DBUG_ASSERT(info->s->options & HA_OPTION_COMPRESS_RECORD);
(void) my_munmap((char*) info->s->file_map, info->s->mmaped_length);
if (myisam_mmap_size != SIZE_T_MAX)
{
mysql_mutex_lock(&THR_LOCK_myisam_mmap);
myisam_mmap_used-= info->s->mmaped_length;
mysql_mutex_unlock(&THR_LOCK_myisam_mmap);
}
} | O3 | c | mi_unmap_file:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x270(%rax), %rdi
movq 0x4d0(%rax), %rsi
callq 0x2a4c0
leaq 0x307d99(%rip), %rax # 0x38b678
cmpq $-0x1, (%rax)
je 0x8392c
leaq 0xb8af9c(%rip), %r14 # 0xc0e888
cmpq $0x0, 0x40(%r14)
jne 0x83931
leaq 0xb8af8e(%rip), %rdi # 0xc0e888
callq 0x2a1f0
movq (%rbx), %rax
movq 0x4d0(%rax), %rax
leaq 0xb81d30(%rip), %rcx # 0xc05640
subq %rax, (%rcx)
movq 0x40(%r14), %rdi
testq %rdi, %rdi
jne 0x83938
leaq 0xb8af65(%rip), %rdi # 0xc0e888
popq %rbx
popq %r14
popq %rbp
jmp 0x2a1c0
popq %rbx
popq %r14
popq %rbp
retq
callq 0x2f5b9
jmp 0x838ff
leaq 0x308a89(%rip), %rax # 0x38c3c8
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x8391c
| _mi_unmap_file:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
mov rax, [rdi]
mov rdi, [rax+270h]
mov rsi, [rax+4D0h]
call _munmap
lea rax, myisam_mmap_size
cmp qword ptr [rax], 0FFFFFFFFFFFFFFFFh
jz short loc_8392C
lea r14, THR_LOCK_myisam_mmap
cmp qword ptr [r14+40h], 0
jnz short loc_83931
lea rdi, THR_LOCK_myisam_mmap
call _pthread_mutex_lock
loc_838FF:
mov rax, [rbx]
mov rax, [rax+4D0h]
lea rcx, myisam_mmap_used
sub [rcx], rax
mov rdi, [r14+40h]
test rdi, rdi
jnz short loc_83938
loc_8391C:
lea rdi, THR_LOCK_myisam_mmap
pop rbx
pop r14
pop rbp
jmp _pthread_mutex_unlock
loc_8392C:
pop rbx
pop r14
pop rbp
retn
loc_83931:
call _mi_unmap_file_cold_1
jmp short loc_838FF
loc_83938:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_8391C
| _QWORD * mi_unmap_file(long long a1)
{
_QWORD *result; // rax
munmap(*(_QWORD *)(*(_QWORD *)a1 + 624LL), *(_QWORD *)(*(_QWORD *)a1 + 1232LL));
result = &myisam_mmap_size;
if ( myisam_mmap_size != -1LL )
{
if ( THR_LOCK_myisam_mmap[8] )
mi_unmap_file_cold_1();
else
pthread_mutex_lock(THR_LOCK_myisam_mmap);
myisam_mmap_used -= *(_QWORD *)(*(_QWORD *)a1 + 1232LL);
if ( THR_LOCK_myisam_mmap[8] )
PSI_server[44]();
return (_QWORD *)pthread_mutex_unlock(THR_LOCK_myisam_mmap);
}
return result;
}
| _mi_unmap_file:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
MOV RDI,qword ptr [RAX + 0x270]
MOV RSI,qword ptr [RAX + 0x4d0]
CALL 0x0012a4c0
LEA RAX,[0x48b678]
CMP qword ptr [RAX],-0x1
JZ 0x0018392c
LEA R14,[0xd0e888]
CMP qword ptr [R14 + 0x40],0x0
JNZ 0x00183931
LEA RDI,[0xd0e888]
CALL 0x0012a1f0
LAB_001838ff:
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + 0x4d0]
LEA RCX,[0xd05640]
SUB qword ptr [RCX],RAX
MOV RDI,qword ptr [R14 + 0x40]
TEST RDI,RDI
JNZ 0x00183938
LAB_0018391c:
LEA RDI,[0xd0e888]
POP RBX
POP R14
POP RBP
JMP 0x0012a1c0
LAB_0018392c:
POP RBX
POP R14
POP RBP
RET
LAB_00183931:
CALL 0x0012f5b9
JMP 0x001838ff
LAB_00183938:
LEA RAX,[0x48c3c8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0018391c
|
void _mi_unmap_file(long *param_1)
{
munmap(*(void **)(*param_1 + 0x270),*(size_t *)(*param_1 + 0x4d0));
if (myisam_mmap_size != -1) {
if (THR_LOCK_myisam_mmap._64_8_ == 0) {
pthread_mutex_lock((pthread_mutex_t *)THR_LOCK_myisam_mmap);
}
else {
_mi_unmap_file_cold_1();
}
myisam_mmap_used = myisam_mmap_used - *(long *)(*param_1 + 0x4d0);
if (THR_LOCK_myisam_mmap._64_8_ != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)THR_LOCK_myisam_mmap);
return;
}
return;
}
| |
36,222 | Type_numeric_attributes::aggregate_numeric_attributes_decimal(Item**, unsigned int, bool) | eloqsql/sql/sql_type.cc | void
Type_numeric_attributes::aggregate_numeric_attributes_decimal(Item **item,
uint nitems,
bool unsigned_arg)
{
decimal_digits_t max_int_part= find_max_decimal_int_part(item, nitems);
decimals= find_max_decimals(item, nitems);
decimal_digits_t precision= (decimal_digits_t)
MY_MIN(max_int_part + decimals, DECIMAL_MAX_PRECISION);
max_length= my_decimal_precision_to_length_no_truncation(precision,
decimals,
unsigned_flag);
} | O0 | cpp | Type_numeric_attributes::aggregate_numeric_attributes_decimal(Item**, unsigned int, bool):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %cl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
andb $0x1, %al
movb %al, -0x15(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbe3a50
movw %ax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbe38b0
movq -0x28(%rbp), %rcx
movw %ax, 0x4(%rcx)
movzwl -0x18(%rbp), %eax
movzwl 0x4(%rcx), %ecx
addl %ecx, %eax
cmpl $0x41, %eax
jge 0xbe3b38
movq -0x28(%rbp), %rcx
movzwl -0x18(%rbp), %eax
movzwl 0x4(%rcx), %ecx
addl %ecx, %eax
movl %eax, -0x2c(%rbp)
jmp 0xbe3b42
movl $0x41, %eax
movl %eax, -0x2c(%rbp)
jmp 0xbe3b42
movq -0x28(%rbp), %rax
movl -0x2c(%rbp), %ecx
movw %cx, -0x1a(%rbp)
movw -0x1a(%rbp), %dx
movw 0x4(%rax), %cx
movb 0x6(%rax), %al
andb $0x1, %al
movzwl %dx, %edi
movzwl %cx, %esi
movzbl %al, %edx
callq 0xb1c300
movw %ax, %cx
movq -0x28(%rbp), %rax
movzwl %cx, %ecx
movl %ecx, (%rax)
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ZN23Type_numeric_attributes36aggregate_numeric_attributes_decimalEPP4Itemjb:
push rbp
mov rbp, rsp
sub rsp, 30h
mov al, cl
mov [rbp+var_8], rdi
mov [rbp+var_14+4], rsi
mov dword ptr [rbp+var_14], edx
and al, 1
mov [rbp+var_15], al
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
mov rdi, [rbp+var_14+4]; this
mov esi, dword ptr [rbp+var_14]; Item **
call _ZN23Type_numeric_attributes25find_max_decimal_int_partEPP4Itemj; Type_numeric_attributes::find_max_decimal_int_part(Item **,uint)
mov [rbp+var_18], ax
mov rdi, [rbp+var_14+4]; this
mov esi, dword ptr [rbp+var_14]; Item **
call _ZN23Type_numeric_attributes17find_max_decimalsEPP4Itemj; Type_numeric_attributes::find_max_decimals(Item **,uint)
mov rcx, [rbp+var_28]
mov [rcx+4], ax
movzx eax, [rbp+var_18]
movzx ecx, word ptr [rcx+4]
add eax, ecx
cmp eax, 41h ; 'A'
jge short loc_BE3B38
mov rcx, [rbp+var_28]
movzx eax, [rbp+var_18]
movzx ecx, word ptr [rcx+4]
add eax, ecx
mov [rbp+var_2C], eax
jmp short loc_BE3B42
loc_BE3B38:
mov eax, 41h ; 'A'
mov [rbp+var_2C], eax
jmp short $+2
loc_BE3B42:
mov rax, [rbp+var_28]
mov ecx, [rbp+var_2C]
mov [rbp+var_1A], cx
mov dx, [rbp+var_1A]
mov cx, [rax+4]
mov al, [rax+6]
and al, 1
movzx edi, dx; unsigned __int16
movzx esi, cx; unsigned __int16
movzx edx, al; bool
call _Z44my_decimal_precision_to_length_no_truncationttb; my_decimal_precision_to_length_no_truncation(ushort,ushort,bool)
mov cx, ax
mov rax, [rbp+var_28]
movzx ecx, cx
mov [rax], ecx
add rsp, 30h
pop rbp
retn
| Type_numeric_attributes * Type_numeric_attributes::aggregate_numeric_attributes_decimal(
Type_numeric_attributes *this,
Item **a2,
unsigned int a3)
{
unsigned __int16 v3; // cx
Type_numeric_attributes *result; // rax
unsigned __int16 v5; // [rsp+4h] [rbp-2Ch]
unsigned __int16 max_decimal_int_part; // [rsp+18h] [rbp-18h]
max_decimal_int_part = Type_numeric_attributes::find_max_decimal_int_part(a2, (Item **)a3);
*((_WORD *)this + 2) = Type_numeric_attributes::find_max_decimals((Type_numeric_attributes *)a2, (Item **)a3);
if ( *((unsigned __int16 *)this + 2) + max_decimal_int_part >= 65 )
v5 = 65;
else
v5 = *((_WORD *)this + 2) + max_decimal_int_part;
v3 = my_decimal_precision_to_length_no_truncation(v5, *((_WORD *)this + 2), *((_BYTE *)this + 6) & 1);
result = this;
*(_DWORD *)this = v3;
return result;
}
| ~select_union_direct:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RDI
CALL 0x00be3ab0
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x120
CALL 0x009a3ab0
ADD RSP,0x10
POP RBP
RET
|
/* select_union_direct::~select_union_direct() */
void __thiscall select_union_direct::~select_union_direct(select_union_direct *this)
{
~select_union_direct(this);
Sql_alloc::operator_delete(this,0x120);
return;
}
| |
36,223 | my_rw_rdlock | eloqsql/mysys/thr_rwlock.c | int my_rw_rdlock(my_rw_lock_t *rwp)
{
pthread_mutex_lock(&rwp->lock);
/* active or queued writers */
while (( rwp->state < 0 ) || rwp->waiters)
pthread_cond_wait( &rwp->readers, &rwp->lock);
rwp->state++;
pthread_mutex_unlock(&rwp->lock);
return(0);
} | O0 | c | my_rw_rdlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x24400
movq -0x8(%rbp), %rcx
movb $0x1, %al
cmpl $0x0, 0x88(%rcx)
movb %al, -0x9(%rbp)
jl 0x29e48
movq -0x8(%rbp), %rax
cmpl $0x0, 0x8c(%rax)
setne %al
movb %al, -0x9(%rbp)
movb -0x9(%rbp), %al
testb $0x1, %al
jne 0x29e51
jmp 0x29e64
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
movq -0x8(%rbp), %rsi
callq 0x24480
jmp 0x29e25
movq -0x8(%rbp), %rax
movl 0x88(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x88(%rax)
movq -0x8(%rbp), %rdi
callq 0x241e0
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| my_rw_rdlock:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
call _pthread_mutex_lock
loc_29E25:
mov rcx, [rbp+var_8]
mov al, 1
cmp dword ptr [rcx+88h], 0
mov [rbp+var_9], al
jl short loc_29E48
mov rax, [rbp+var_8]
cmp dword ptr [rax+8Ch], 0
setnz al
mov [rbp+var_9], al
loc_29E48:
mov al, [rbp+var_9]
test al, 1
jnz short loc_29E51
jmp short loc_29E64
loc_29E51:
mov rdi, [rbp+var_8]
add rdi, 28h ; '('
mov rsi, [rbp+var_8]
call _pthread_cond_wait
jmp short loc_29E25
loc_29E64:
mov rax, [rbp+var_8]
mov ecx, [rax+88h]
add ecx, 1
mov [rax+88h], ecx
mov rdi, [rbp+var_8]
call _pthread_mutex_unlock
xor eax, eax
add rsp, 10h
pop rbp
retn
| long long my_rw_rdlock(long long a1)
{
bool v2; // [rsp+7h] [rbp-9h]
pthread_mutex_lock(a1);
while ( 1 )
{
v2 = 1;
if ( *(int *)(a1 + 136) >= 0 )
v2 = *(_DWORD *)(a1 + 140) != 0;
if ( !v2 )
break;
pthread_cond_wait(a1 + 40, a1);
}
++*(_DWORD *)(a1 + 136);
pthread_mutex_unlock(a1);
return 0LL;
}
| my_rw_rdlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00124400
LAB_00129e25:
MOV RCX,qword ptr [RBP + -0x8]
MOV AL,0x1
CMP dword ptr [RCX + 0x88],0x0
MOV byte ptr [RBP + -0x9],AL
JL 0x00129e48
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x8c],0x0
SETNZ AL
MOV byte ptr [RBP + -0x9],AL
LAB_00129e48:
MOV AL,byte ptr [RBP + -0x9]
TEST AL,0x1
JNZ 0x00129e51
JMP 0x00129e64
LAB_00129e51:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x28
MOV RSI,qword ptr [RBP + -0x8]
CALL 0x00124480
JMP 0x00129e25
LAB_00129e64:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x88]
ADD ECX,0x1
MOV dword ptr [RAX + 0x88],ECX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001241e0
XOR EAX,EAX
ADD RSP,0x10
POP RBP
RET
|
int8 my_rw_rdlock(pthread_mutex_t *param_1)
{
bool bVar1;
pthread_mutex_lock(param_1);
while( true ) {
bVar1 = true;
if (-1 < *(int *)((long)param_1 + 0x88)) {
bVar1 = *(int *)((long)param_1 + 0x8c) != 0;
}
if (!bVar1) break;
pthread_cond_wait((pthread_cond_t *)(param_1 + 1),param_1);
}
*(int *)((long)param_1 + 0x88) = *(int *)((long)param_1 + 0x88) + 1;
pthread_mutex_unlock(param_1);
return 0;
}
| |
36,224 | 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>::type_name() const | monkey531[P]llama/common/json.hpp | JSON_HEDLEY_RETURNS_NON_NULL
const char* type_name() const noexcept
{
switch (m_data.m_type)
{
case value_t::null:
return "null";
case value_t::object:
return "object";
case value_t::array:
return "array";
case value_t::string:
return "string";
case value_t::boolean:
return "boolean";
case value_t::binary:
return "binary";
case value_t::discarded:
return "discarded";
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
default:
return "number";
}
} | 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>::type_name() const:
movzbl (%rdi), %eax
cmpq $0x9, %rax
ja 0x4df7c
leaq 0x4e3a4(%rip), %rcx # 0x9c318
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
retq
leaq 0x4d682(%rip), %rax # 0x9b605
retq
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv:
movzx eax, byte ptr [rdi]
cmp rax, 9
ja short loc_4DF7C
lea rcx, unk_9C318
movsxd rax, dword ptr [rcx+rax*4]
add rax, rcx
retn
loc_4DF7C:
lea rax, aBuildNumber+6; "number"
retn
| char * nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)
{
unsigned long long v1; // rax
v1 = *a1;
if ( v1 > 9 )
return "number";
else
return (char *)dword_9C318 + dword_9C318[v1];
}
| type_name:
MOVZX EAX,byte ptr [RDI]
CMP RAX,0x9
JA 0x0014df7c
LEA RCX,[0x19c318]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
RET
LAB_0014df7c:
LEA RAX,[0x19b605]
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::type_name() const */
char * __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>
::type_name(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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)
{
if ((ulong)(byte)*this < 10) {
return &DAT_0019c318 + *(int *)(&DAT_0019c318 + (ulong)(byte)*this * 4);
}
return "number";
}
| |
36,225 | ma_net_write_buff | eloqsql/libmariadb/libmariadb/ma_net.c | static int ma_net_write_buff(NET *net,const char *packet, size_t len)
{
size_t left_length;
if (!len)
return 0;
if (net->max_packet > MAX_PACKET_LENGTH &&
net->compress)
left_length= (size_t)(MAX_PACKET_LENGTH - (net->write_pos - net->buff));
else
left_length=(size_t) (net->buff_end - net->write_pos);
if (len > left_length)
{
if (net->write_pos != net->buff)
{
memcpy((char*) net->write_pos,packet,left_length);
if (ma_net_real_write(net,(char*) net->buff,
(size_t)(net->write_pos - net->buff) + left_length))
return 1;
packet+=left_length;
len-=left_length;
net->write_pos= net->buff;
}
if (net->compress)
{
/* uncompressed length is stored in 3 bytes,so
packet can't be > 0xFFFFFF */
left_length= MAX_PACKET_LENGTH;
while (len > left_length)
{
if (ma_net_real_write(net, packet, left_length))
return 1;
packet+= left_length;
len-= left_length;
}
}
if (len > net->max_packet)
return(test(ma_net_real_write(net, packet, len)));
}
memcpy((char*) net->write_pos,packet,len);
net->write_pos+=len;
return 0;
} | O3 | c | ma_net_write_buff:
xorl %eax, %eax
testq %rdx, %rdx
je 0x366f6
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x1000000, 0x50(%rdi) # imm = 0x1000000
jb 0x36688
cmpb $0x0, 0x84(%rbx)
je 0x36688
movq 0x8(%rbx), %r12
movq 0x18(%rbx), %rdi
subq %rdi, %r12
addq $0xffffff, %r12 # imm = 0xFFFFFF
jmp 0x36693
movq 0x10(%rbx), %r12
movq 0x18(%rbx), %rdi
subq %rdi, %r12
movq %rdx, %r15
subq %r12, %r15
jbe 0x366da
cmpq 0x8(%rbx), %rdi
je 0x366f7
movq %r14, %rsi
movq %r12, %rdx
callq 0x13390
movq 0x8(%rbx), %rsi
movq %r12, %rdx
subq %rsi, %rdx
addq 0x18(%rbx), %rdx
movq %rbx, %rdi
callq 0x36353
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x366ee
addq %r12, %r14
movq 0x8(%rbx), %rax
movq %rax, 0x18(%rbx)
jmp 0x366fa
movq %rdx, %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0x13390
addq %r15, 0x18(%rbx)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r15
cmpb $0x0, 0x84(%rbx)
je 0x36735
cmpq $0x1000000, %r15 # imm = 0x1000000
jb 0x36735
movl $0xffffff, %r12d # imm = 0xFFFFFF
movl $0xffffff, %edx # imm = 0xFFFFFF
movq %rbx, %rdi
movq %r14, %rsi
callq 0x36353
testl %eax, %eax
jne 0x3675a
addq %r12, %r14
addq $-0xffffff, %r15 # imm = 0xFF000001
cmpq %r12, %r15
ja 0x36712
cmpq 0x50(%rbx), %r15
jbe 0x36754
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x36353
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
setne %al
jmp 0x366ee
movq 0x18(%rbx), %rdi
jmp 0x366dd
movl $0x1, %eax
jmp 0x366ee
| ma_net_write_buff:
xor eax, eax
test rdx, rdx
jz locret_366F6
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r14, rsi
mov rbx, rdi
cmp qword ptr [rdi+50h], 1000000h
jb short loc_36688
cmp byte ptr [rbx+84h], 0
jz short loc_36688
mov r12, [rbx+8]
mov rdi, [rbx+18h]
sub r12, rdi
add r12, 0FFFFFFh
jmp short loc_36693
loc_36688:
mov r12, [rbx+10h]
mov rdi, [rbx+18h]
sub r12, rdi
loc_36693:
mov r15, rdx
sub r15, r12
jbe short loc_366DA
cmp rdi, [rbx+8]
jz short loc_366F7
mov rsi, r14
mov rdx, r12
call _memcpy
mov rsi, [rbx+8]
mov rdx, r12
sub rdx, rsi
add rdx, [rbx+18h]
mov rdi, rbx
call ma_net_real_write
mov ecx, eax
mov eax, 1
test ecx, ecx
jnz short loc_366EE
add r14, r12
mov rax, [rbx+8]
mov [rbx+18h], rax
jmp short loc_366FA
loc_366DA:
mov r15, rdx
loc_366DD:
mov rsi, r14
mov rdx, r15
call _memcpy
add [rbx+18h], r15
xor eax, eax
loc_366EE:
pop rbx
pop r12
pop r14
pop r15
pop rbp
locret_366F6:
retn
loc_366F7:
mov r15, rdx
loc_366FA:
cmp byte ptr [rbx+84h], 0
jz short loc_36735
cmp r15, 1000000h
jb short loc_36735
mov r12d, 0FFFFFFh
loc_36712:
mov edx, 0FFFFFFh
mov rdi, rbx
mov rsi, r14
call ma_net_real_write
test eax, eax
jnz short loc_3675A
add r14, r12
add r15, 0FFFFFFFFFF000001h
cmp r15, r12
ja short loc_36712
loc_36735:
cmp r15, [rbx+50h]
jbe short loc_36754
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call ma_net_real_write
mov ecx, eax
xor eax, eax
test ecx, ecx
setnz al
jmp short loc_366EE
loc_36754:
mov rdi, [rbx+18h]
jmp short loc_366DD
loc_3675A:
mov eax, 1
jmp short loc_366EE
| _BOOL8 ma_net_write_buff(long long a1, long long a2, unsigned long long a3)
{
_BOOL8 result; // rax
long long v4; // r14
long long v6; // rdi
unsigned long long v7; // r12
long long v8; // r12
unsigned long long v9; // r15
int v10; // ecx
result = 0LL;
if ( !a3 )
return result;
v4 = a2;
if ( *(_QWORD *)(a1 + 80) >= 0x1000000uLL && *(_BYTE *)(a1 + 132) )
{
v6 = *(_QWORD *)(a1 + 24);
v7 = *(_QWORD *)(a1 + 8) - v6 + 0xFFFFFF;
}
else
{
v8 = *(_QWORD *)(a1 + 16);
v6 = *(_QWORD *)(a1 + 24);
v7 = v8 - v6;
}
v9 = a3 - v7;
if ( a3 <= v7 )
{
v9 = a3;
LABEL_11:
memcpy(v6, v4, v9);
*(_QWORD *)(a1 + 24) += v9;
return 0LL;
}
if ( v6 == *(_QWORD *)(a1 + 8) )
{
v9 = a3;
}
else
{
memcpy(v6, a2, v7);
v10 = ma_net_real_write((_BYTE *)a1, *(_QWORD *)(a1 + 8), *(_QWORD *)(a1 + 24) + v7 - *(_QWORD *)(a1 + 8));
result = 1LL;
if ( v10 )
return result;
v4 = v7 + a2;
*(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 8);
}
if ( !*(_BYTE *)(a1 + 132) || v9 < 0x1000000 )
{
LABEL_18:
if ( v9 > *(_QWORD *)(a1 + 80) )
return (unsigned int)ma_net_real_write((_BYTE *)a1, v4, v9) != 0;
v6 = *(_QWORD *)(a1 + 24);
goto LABEL_11;
}
while ( !(unsigned int)ma_net_real_write((_BYTE *)a1, v4, 0xFFFFFFLL) )
{
v4 += 0xFFFFFFLL;
v9 -= 0xFFFFFFLL;
if ( v9 <= 0xFFFFFF )
goto LABEL_18;
}
return 1LL;
}
| ma_net_write_buff:
XOR EAX,EAX
TEST RDX,RDX
JZ 0x001366f6
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
CMP qword ptr [RDI + 0x50],0x1000000
JC 0x00136688
CMP byte ptr [RBX + 0x84],0x0
JZ 0x00136688
MOV R12,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RBX + 0x18]
SUB R12,RDI
ADD R12,0xffffff
JMP 0x00136693
LAB_00136688:
MOV R12,qword ptr [RBX + 0x10]
MOV RDI,qword ptr [RBX + 0x18]
SUB R12,RDI
LAB_00136693:
MOV R15,RDX
SUB R15,R12
JBE 0x001366da
CMP RDI,qword ptr [RBX + 0x8]
JZ 0x001366f7
MOV RSI,R14
MOV RDX,R12
CALL 0x00113390
MOV RSI,qword ptr [RBX + 0x8]
MOV RDX,R12
SUB RDX,RSI
ADD RDX,qword ptr [RBX + 0x18]
MOV RDI,RBX
CALL 0x00136353
MOV ECX,EAX
MOV EAX,0x1
TEST ECX,ECX
JNZ 0x001366ee
ADD R14,R12
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RBX + 0x18],RAX
JMP 0x001366fa
LAB_001366da:
MOV R15,RDX
LAB_001366dd:
MOV RSI,R14
MOV RDX,R15
CALL 0x00113390
ADD qword ptr [RBX + 0x18],R15
XOR EAX,EAX
LAB_001366ee:
POP RBX
POP R12
POP R14
POP R15
POP RBP
LAB_001366f6:
RET
LAB_001366f7:
MOV R15,RDX
LAB_001366fa:
CMP byte ptr [RBX + 0x84],0x0
JZ 0x00136735
CMP R15,0x1000000
JC 0x00136735
MOV R12D,0xffffff
LAB_00136712:
MOV EDX,0xffffff
MOV RDI,RBX
MOV RSI,R14
CALL 0x00136353
TEST EAX,EAX
JNZ 0x0013675a
ADD R14,R12
ADD R15,-0xffffff
CMP R15,R12
JA 0x00136712
LAB_00136735:
CMP R15,qword ptr [RBX + 0x50]
JBE 0x00136754
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x00136353
MOV ECX,EAX
XOR EAX,EAX
TEST ECX,ECX
SETNZ AL
JMP 0x001366ee
LAB_00136754:
MOV RDI,qword ptr [RBX + 0x18]
JMP 0x001366dd
LAB_0013675a:
MOV EAX,0x1
JMP 0x001366ee
|
bool ma_net_write_buff(long param_1,void *param_2,ulong param_3)
{
int iVar1;
void *__dest;
ulong __n;
if (param_3 != 0) {
if ((*(ulong *)(param_1 + 0x50) < 0x1000000) || (*(char *)(param_1 + 0x84) == '\0')) {
__dest = *(void **)(param_1 + 0x18);
__n = *(long *)(param_1 + 0x10) - (long)__dest;
}
else {
__dest = *(void **)(param_1 + 0x18);
__n = (*(long *)(param_1 + 8) - (long)__dest) + 0xffffff;
}
if (__n <= param_3 && param_3 - __n != 0) {
if (__dest != *(void **)(param_1 + 8)) {
memcpy(__dest,param_2,__n);
iVar1 = ma_net_real_write(param_1,*(long *)(param_1 + 8),
(__n - *(long *)(param_1 + 8)) + *(long *)(param_1 + 0x18));
if (iVar1 != 0) {
return true;
}
param_2 = (void *)((long)param_2 + __n);
*(int8 *)(param_1 + 0x18) = *(int8 *)(param_1 + 8);
param_3 = param_3 - __n;
}
if (*(char *)(param_1 + 0x84) != '\0') {
for (; 0xffffff < param_3; param_3 = param_3 - 0xffffff) {
iVar1 = ma_net_real_write(param_1,param_2,0xffffff);
if (iVar1 != 0) {
return true;
}
param_2 = (void *)((long)param_2 + 0xffffff);
}
}
if (*(ulong *)(param_1 + 0x50) < param_3) {
iVar1 = ma_net_real_write(param_1,param_2,param_3);
return iVar1 != 0;
}
__dest = *(void **)(param_1 + 0x18);
}
memcpy(__dest,param_2,param_3);
*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + param_3;
}
return false;
}
| |
36,226 | init_state_maps | eloqsql/mysys/charset.c | static my_bool init_state_maps(struct charset_info_st *cs)
{
uint i;
uchar *state_map;
uchar *ident_map;
if (!(cs->state_map= state_map= (uchar*) my_once_alloc(256*2, MYF(MY_WME))))
return 1;
cs->ident_map= ident_map= state_map + 256;
/* Fill state_map with states to get a faster parser */
for (i=0; i < 256 ; i++)
{
if (my_isalpha(cs,i))
state_map[i]=(uchar) MY_LEX_IDENT;
else if (my_isdigit(cs,i))
state_map[i]=(uchar) MY_LEX_NUMBER_IDENT;
else if (is_multi_byte_ident(cs, i))
state_map[i]=(uchar) MY_LEX_IDENT;
else if (my_isspace(cs,i))
state_map[i]=(uchar) MY_LEX_SKIP;
else
state_map[i]=(uchar) MY_LEX_CHAR;
}
state_map[(uchar)'_']=state_map[(uchar)'$']=(uchar) MY_LEX_IDENT;
state_map[(uchar)'\'']=(uchar) MY_LEX_STRING;
state_map[(uchar)'.']=(uchar) MY_LEX_REAL_OR_POINT;
state_map[(uchar)'>']=state_map[(uchar)'=']=state_map[(uchar)'!']= (uchar) MY_LEX_CMP_OP;
state_map[(uchar)'<']= (uchar) MY_LEX_LONG_CMP_OP;
state_map[(uchar)'&']=state_map[(uchar)'|']=(uchar) MY_LEX_BOOL;
state_map[(uchar)'#']=(uchar) MY_LEX_COMMENT;
state_map[(uchar)';']=(uchar) MY_LEX_SEMICOLON;
state_map[(uchar)':']=(uchar) MY_LEX_SET_VAR;
state_map[0]=(uchar) MY_LEX_EOL;
state_map[(uchar)'\\']= (uchar) MY_LEX_ESCAPE;
state_map[(uchar)'/']= (uchar) MY_LEX_LONG_COMMENT;
state_map[(uchar)'*']= (uchar) MY_LEX_END_LONG_COMMENT;
state_map[(uchar)'@']= (uchar) MY_LEX_USER_END;
state_map[(uchar) '`']= (uchar) MY_LEX_USER_VARIABLE_DELIMITER;
state_map[(uchar)'"']= (uchar) MY_LEX_STRING_OR_DELIMITER;
state_map[(uchar)'-']= (uchar) MY_LEX_MINUS_OR_COMMENT;
state_map[(uchar)',']= (uchar) MY_LEX_COMMA;
state_map[(uchar)'?']= (uchar) MY_LEX_PLACEHOLDER;
/*
Create a second map to make it faster to find identifiers
*/
for (i=0; i < 256 ; i++)
{
ident_map[i]= (uchar) (state_map[i] == MY_LEX_IDENT ||
state_map[i] == MY_LEX_NUMBER_IDENT);
}
/* Special handling of hex and binary strings */
state_map[(uchar)'x']= state_map[(uchar)'X']= (uchar) MY_LEX_IDENT_OR_HEX;
state_map[(uchar)'b']= state_map[(uchar)'B']= (uchar) MY_LEX_IDENT_OR_BIN;
state_map[(uchar)'n']= state_map[(uchar)'N']= (uchar) MY_LEX_IDENT_OR_NCHAR;
return 0;
} | O0 | c | init_state_maps:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl $0x200, %edi # imm = 0x200
movl $0x10, %esi
callq 0x26420
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rcx
movq %rax, 0x80(%rcx)
cmpq $0x0, %rax
jne 0x2b169
movb $0x1, -0x1(%rbp)
jmp 0x2b396
movq -0x20(%rbp), %rcx
addq $0x100, %rcx # imm = 0x100
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rcx, 0x88(%rax)
movl $0x0, -0x14(%rbp)
cmpl $0x100, -0x14(%rbp) # imm = 0x100
jae 0x2b253
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x14(%rbp), %ecx
movzbl %cl, %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x2b1c2
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x2, (%rax,%rcx)
jmp 0x2b243
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x14(%rbp), %ecx
movzbl %cl, %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x2b1ea
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0xe, (%rax,%rcx)
jmp 0x2b241
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %eax
movzbl %al, %esi
callq 0x2b470
cmpb $0x0, %al
je 0x2b20a
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x2, (%rax,%rcx)
jmp 0x2b23f
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x14(%rbp), %ecx
movzbl %cl, %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x2b232
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x1a, (%rax,%rcx)
jmp 0x2b23d
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x1, (%rax,%rcx)
jmp 0x2b23f
jmp 0x2b241
jmp 0x2b243
jmp 0x2b245
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x2b18a
movq -0x20(%rbp), %rax
movb $0x2, 0x24(%rax)
movq -0x20(%rbp), %rax
movb $0x2, 0x5f(%rax)
movq -0x20(%rbp), %rax
movb $0xa, 0x27(%rax)
movq -0x20(%rbp), %rax
movb $0x10, 0x2e(%rax)
movq -0x20(%rbp), %rax
movb $0x8, 0x21(%rax)
movq -0x20(%rbp), %rax
movb $0x8, 0x3d(%rax)
movq -0x20(%rbp), %rax
movb $0x8, 0x3e(%rax)
movq -0x20(%rbp), %rax
movb $0x9, 0x3c(%rax)
movq -0x20(%rbp), %rax
movb $0x11, 0x7c(%rax)
movq -0x20(%rbp), %rax
movb $0x11, 0x26(%rax)
movq -0x20(%rbp), %rax
movb $0xb, 0x23(%rax)
movq -0x20(%rbp), %rax
movb $0x16, 0x3b(%rax)
movq -0x20(%rbp), %rax
movb $0x17, 0x3a(%rax)
movq -0x20(%rbp), %rax
movb $0x12, (%rax)
movq -0x20(%rbp), %rax
movb $0x13, 0x5c(%rax)
movq -0x20(%rbp), %rax
movb $0x14, 0x2f(%rax)
movq -0x20(%rbp), %rax
movb $0x15, 0x2a(%rax)
movq -0x20(%rbp), %rax
movb $0x18, 0x40(%rax)
movq -0x20(%rbp), %rax
movb $0x1b, 0x60(%rax)
movq -0x20(%rbp), %rax
movb $0x21, 0x22(%rax)
movq -0x20(%rbp), %rax
movb $0x22, 0x2d(%rax)
movq -0x20(%rbp), %rax
movb $0x24, 0x2c(%rax)
movq -0x20(%rbp), %rax
movb $0x23, 0x3f(%rax)
movl $0x0, -0x14(%rbp)
cmpl $0x100, -0x14(%rbp) # imm = 0x100
jae 0x2b362
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movzbl (%rax,%rcx), %ecx
movb $0x1, %al
cmpl $0x2, %ecx
movb %al, -0x29(%rbp)
je 0x2b343
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0xe, %eax
sete %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %dl
movq -0x28(%rbp), %rax
movl -0x14(%rbp), %ecx
movb %dl, (%rax,%rcx)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x2b311
movq -0x20(%rbp), %rax
movb $0x1e, 0x58(%rax)
movq -0x20(%rbp), %rax
movb $0x1e, 0x78(%rax)
movq -0x20(%rbp), %rax
movb $0x1f, 0x42(%rax)
movq -0x20(%rbp), %rax
movb $0x1f, 0x62(%rax)
movq -0x20(%rbp), %rax
movb $0x20, 0x4e(%rax)
movq -0x20(%rbp), %rax
movb $0x20, 0x6e(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nop
| init_state_maps:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov edi, 200h
mov esi, 10h
call my_once_alloc
mov [rbp+var_20], rax
mov rcx, [rbp+var_10]
mov [rcx+80h], rax
cmp rax, 0
jnz short loc_2B169
mov [rbp+var_1], 1
jmp loc_2B396
loc_2B169:
mov rcx, [rbp+var_20]
add rcx, 100h
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov [rax+88h], rcx
mov [rbp+var_14], 0
loc_2B18A:
cmp [rbp+var_14], 100h
jnb loc_2B253
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov ecx, [rbp+var_14]
movzx ecx, cl
movzx eax, byte ptr [rax+rcx+1]
and eax, 3
cmp eax, 0
jz short loc_2B1C2
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 2
jmp loc_2B243
loc_2B1C2:
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov ecx, [rbp+var_14]
movzx ecx, cl
movzx eax, byte ptr [rax+rcx+1]
and eax, 4
cmp eax, 0
jz short loc_2B1EA
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 0Eh
jmp short loc_2B241
loc_2B1EA:
mov rdi, [rbp+var_10]
mov eax, [rbp+var_14]
movzx esi, al
call is_multi_byte_ident
cmp al, 0
jz short loc_2B20A
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 2
jmp short loc_2B23F
loc_2B20A:
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov ecx, [rbp+var_14]
movzx ecx, cl
movzx eax, byte ptr [rax+rcx+1]
and eax, 8
cmp eax, 0
jz short loc_2B232
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 1Ah
jmp short loc_2B23D
loc_2B232:
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 1
loc_2B23D:
jmp short $+2
loc_2B23F:
jmp short $+2
loc_2B241:
jmp short $+2
loc_2B243:
jmp short $+2
loc_2B245:
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp loc_2B18A
loc_2B253:
mov rax, [rbp+var_20]
mov byte ptr [rax+24h], 2
mov rax, [rbp+var_20]
mov byte ptr [rax+5Fh], 2
mov rax, [rbp+var_20]
mov byte ptr [rax+27h], 0Ah
mov rax, [rbp+var_20]
mov byte ptr [rax+2Eh], 10h
mov rax, [rbp+var_20]
mov byte ptr [rax+21h], 8
mov rax, [rbp+var_20]
mov byte ptr [rax+3Dh], 8
mov rax, [rbp+var_20]
mov byte ptr [rax+3Eh], 8
mov rax, [rbp+var_20]
mov byte ptr [rax+3Ch], 9
mov rax, [rbp+var_20]
mov byte ptr [rax+7Ch], 11h
mov rax, [rbp+var_20]
mov byte ptr [rax+26h], 11h
mov rax, [rbp+var_20]
mov byte ptr [rax+23h], 0Bh
mov rax, [rbp+var_20]
mov byte ptr [rax+3Bh], 16h
mov rax, [rbp+var_20]
mov byte ptr [rax+3Ah], 17h
mov rax, [rbp+var_20]
mov byte ptr [rax], 12h
mov rax, [rbp+var_20]
mov byte ptr [rax+5Ch], 13h
mov rax, [rbp+var_20]
mov byte ptr [rax+2Fh], 14h
mov rax, [rbp+var_20]
mov byte ptr [rax+2Ah], 15h
mov rax, [rbp+var_20]
mov byte ptr [rax+40h], 18h
mov rax, [rbp+var_20]
mov byte ptr [rax+60h], 1Bh
mov rax, [rbp+var_20]
mov byte ptr [rax+22h], 21h ; '!'
mov rax, [rbp+var_20]
mov byte ptr [rax+2Dh], 22h ; '"'
mov rax, [rbp+var_20]
mov byte ptr [rax+2Ch], 24h ; '$'
mov rax, [rbp+var_20]
mov byte ptr [rax+3Fh], 23h ; '#'
mov [rbp+var_14], 0
loc_2B311:
cmp [rbp+var_14], 100h
jnb short loc_2B362
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
movzx ecx, byte ptr [rax+rcx]
mov al, 1
cmp ecx, 2
mov [rbp+var_29], al
jz short loc_2B343
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
movzx eax, byte ptr [rax+rcx]
cmp eax, 0Eh
setz al
mov [rbp+var_29], al
loc_2B343:
mov al, [rbp+var_29]
and al, 1
movzx eax, al
mov dl, al
mov rax, [rbp+var_28]
mov ecx, [rbp+var_14]
mov [rax+rcx], dl
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_2B311
loc_2B362:
mov rax, [rbp+var_20]
mov byte ptr [rax+58h], 1Eh
mov rax, [rbp+var_20]
mov byte ptr [rax+78h], 1Eh
mov rax, [rbp+var_20]
mov byte ptr [rax+42h], 1Fh
mov rax, [rbp+var_20]
mov byte ptr [rax+62h], 1Fh
mov rax, [rbp+var_20]
mov byte ptr [rax+4Eh], 20h ; ' '
mov rax, [rbp+var_20]
mov byte ptr [rax+6Eh], 20h ; ' '
mov [rbp+var_1], 0
loc_2B396:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char init_state_maps(_QWORD *a1)
{
bool v2; // [rsp+7h] [rbp-29h]
char *v3; // [rsp+10h] [rbp-20h]
unsigned int i; // [rsp+1Ch] [rbp-14h]
unsigned int j; // [rsp+1Ch] [rbp-14h]
v3 = my_once_alloc(512LL, 16);
a1[16] = v3;
if ( !v3 )
return 1;
a1[17] = v3 + 256;
for ( i = 0; i < 0x100; ++i )
{
if ( (*(_BYTE *)(a1[8] + (unsigned __int8)i + 1LL) & 3) != 0 )
{
v3[i] = 2;
}
else if ( (*(_BYTE *)(a1[8] + (unsigned __int8)i + 1LL) & 4) != 0 )
{
v3[i] = 14;
}
else if ( (unsigned __int8)is_multi_byte_ident(a1, (unsigned __int8)i) )
{
v3[i] = 2;
}
else if ( (*(_BYTE *)(a1[8] + (unsigned __int8)i + 1LL) & 8) != 0 )
{
v3[i] = 26;
}
else
{
v3[i] = 1;
}
}
v3[36] = 2;
v3[95] = 2;
v3[39] = 10;
v3[46] = 16;
v3[33] = 8;
v3[61] = 8;
v3[62] = 8;
v3[60] = 9;
v3[124] = 17;
v3[38] = 17;
v3[35] = 11;
v3[59] = 22;
v3[58] = 23;
*v3 = 18;
v3[92] = 19;
v3[47] = 20;
v3[42] = 21;
v3[64] = 24;
v3[96] = 27;
v3[34] = 33;
v3[45] = 34;
v3[44] = 36;
v3[63] = 35;
for ( j = 0; j < 0x100; ++j )
{
v2 = 1;
if ( v3[j] != 2 )
v2 = v3[j] == 14;
v3[j + 256] = v2;
}
v3[88] = 30;
v3[120] = 30;
v3[66] = 31;
v3[98] = 31;
v3[78] = 32;
v3[110] = 32;
return 0;
}
| init_state_maps:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV EDI,0x200
MOV ESI,0x10
CALL 0x00126420
MOV qword ptr [RBP + -0x20],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x80],RAX
CMP RAX,0x0
JNZ 0x0012b169
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0012b396
LAB_0012b169:
MOV RCX,qword ptr [RBP + -0x20]
ADD RCX,0x100
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x88],RCX
MOV dword ptr [RBP + -0x14],0x0
LAB_0012b18a:
CMP dword ptr [RBP + -0x14],0x100
JNC 0x0012b253
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX ECX,CL
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x3
CMP EAX,0x0
JZ 0x0012b1c2
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0x2
JMP 0x0012b243
LAB_0012b1c2:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX ECX,CL
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x4
CMP EAX,0x0
JZ 0x0012b1ea
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0xe
JMP 0x0012b241
LAB_0012b1ea:
MOV RDI,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x14]
MOVZX ESI,AL
CALL 0x0012b470
CMP AL,0x0
JZ 0x0012b20a
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0x2
JMP 0x0012b23f
LAB_0012b20a:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX ECX,CL
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x8
CMP EAX,0x0
JZ 0x0012b232
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0x1a
JMP 0x0012b23d
LAB_0012b232:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0x1
LAB_0012b23d:
JMP 0x0012b23f
LAB_0012b23f:
JMP 0x0012b241
LAB_0012b241:
JMP 0x0012b243
LAB_0012b243:
JMP 0x0012b245
LAB_0012b245:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0012b18a
LAB_0012b253:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x24],0x2
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x5f],0x2
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x27],0xa
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2e],0x10
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x21],0x8
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3d],0x8
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3e],0x8
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3c],0x9
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x7c],0x11
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x26],0x11
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x23],0xb
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3b],0x16
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3a],0x17
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],0x12
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x5c],0x13
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2f],0x14
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2a],0x15
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x40],0x18
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x60],0x1b
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x22],0x21
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2d],0x22
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2c],0x24
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3f],0x23
MOV dword ptr [RBP + -0x14],0x0
LAB_0012b311:
CMP dword ptr [RBP + -0x14],0x100
JNC 0x0012b362
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX ECX,byte ptr [RAX + RCX*0x1]
MOV AL,0x1
CMP ECX,0x2
MOV byte ptr [RBP + -0x29],AL
JZ 0x0012b343
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0xe
SETZ AL
MOV byte ptr [RBP + -0x29],AL
LAB_0012b343:
MOV AL,byte ptr [RBP + -0x29]
AND AL,0x1
MOVZX EAX,AL
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],DL
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0012b311
LAB_0012b362:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x58],0x1e
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x78],0x1e
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x42],0x1f
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x62],0x1f
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x4e],0x20
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x6e],0x20
MOV byte ptr [RBP + -0x1],0x0
LAB_0012b396:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 init_state_maps(long param_1)
{
char cVar1;
int1 *puVar2;
bool local_31;
uint local_1c;
int1 local_9;
puVar2 = (int1 *)my_once_alloc(0x200,0x10);
*(int1 **)(param_1 + 0x80) = puVar2;
if (puVar2 == (int1 *)0x0) {
local_9 = 1;
}
else {
*(int1 **)(param_1 + 0x88) = puVar2 + 0x100;
for (local_1c = 0; local_1c < 0x100; local_1c = local_1c + 1) {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)(local_1c & 0xff)) & 3) == 0) {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)(local_1c & 0xff)) & 4) == 0) {
cVar1 = is_multi_byte_ident(param_1,local_1c & 0xff);
if (cVar1 == '\0') {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)(local_1c & 0xff)) & 8) == 0) {
puVar2[local_1c] = 1;
}
else {
puVar2[local_1c] = 0x1a;
}
}
else {
puVar2[local_1c] = 2;
}
}
else {
puVar2[local_1c] = 0xe;
}
}
else {
puVar2[local_1c] = 2;
}
}
puVar2[0x24] = 2;
puVar2[0x5f] = 2;
puVar2[0x27] = 10;
puVar2[0x2e] = 0x10;
puVar2[0x21] = 8;
puVar2[0x3d] = 8;
puVar2[0x3e] = 8;
puVar2[0x3c] = 9;
puVar2[0x7c] = 0x11;
puVar2[0x26] = 0x11;
puVar2[0x23] = 0xb;
puVar2[0x3b] = 0x16;
puVar2[0x3a] = 0x17;
*puVar2 = 0x12;
puVar2[0x5c] = 0x13;
puVar2[0x2f] = 0x14;
puVar2[0x2a] = 0x15;
puVar2[0x40] = 0x18;
puVar2[0x60] = 0x1b;
puVar2[0x22] = 0x21;
puVar2[0x2d] = 0x22;
puVar2[0x2c] = 0x24;
puVar2[0x3f] = 0x23;
for (local_1c = 0; local_1c < 0x100; local_1c = local_1c + 1) {
local_31 = true;
if (puVar2[local_1c] != '\x02') {
local_31 = puVar2[local_1c] == '\x0e';
}
(puVar2 + 0x100)[local_1c] = local_31;
}
puVar2[0x58] = 0x1e;
puVar2[0x78] = 0x1e;
puVar2[0x42] = 0x1f;
puVar2[0x62] = 0x1f;
puVar2[0x4e] = 0x20;
puVar2[0x6e] = 0x20;
local_9 = 0;
}
return local_9;
}
| |
36,227 | gguf_set_val_bool | Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp | void gguf_set_val_bool(struct gguf_context * ctx, const char * key, bool val) {
gguf_check_reserved_keys(key, val);
gguf_remove_key(ctx, key);
ctx->kv.emplace_back(key, val);
} | O1 | cpp | gguf_set_val_bool:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq %rsi, 0x10(%rsp)
movb %dl, 0xe(%rsp)
leaq 0x18(%rsp), %r14
leaq 0xf(%rsp), %rdx
movq %r14, %rdi
callq 0x18d70
leaq 0x1d04c(%rip), %rsi # 0x5d061
movq %r14, %rdi
callq 0x18220
testl %eax, %eax
je 0x40068
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4003c
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x180e0
leaq 0x10(%rsp), %r14
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x186c0
addq $0x8, %rbx
leaq 0xe(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x170c0
addq $0x38, %rsp
popq %rbx
popq %r14
retq
leaq 0x1cf7e(%rip), %rdi # 0x5cfed
leaq 0x1da80(%rip), %rdx # 0x5daf6
movl $0x3a3, %esi # imm = 0x3A3
xorl %eax, %eax
callq 0x18ce0
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x400a0
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x180e0
movq %rbx, %rdi
callq 0x18ea0
| gguf_set_val_bool:
push r14
push rbx
sub rsp, 38h
mov rbx, rdi
mov [rsp+48h+var_38], rsi
mov [rsp+48h+var_3A], dl
lea r14, [rsp+48h+var_30]
lea rdx, [rsp+48h+var_39]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aGeneralAlignme; "general.alignment"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_40068
lea rax, [rsp+48h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_4003C
mov rsi, [rsp+48h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4003C:
lea r14, [rsp+48h+var_38]
mov rsi, [r14]
mov rdi, rbx
call _gguf_remove_key
add rbx, 8
lea rdx, [rsp+48h+var_3A]
mov rdi, rbx
mov rsi, r14
call __ZNSt6vectorI7gguf_kvSaIS0_EE12emplace_backIJRPKcRbEEERS0_DpOT_; std::vector<gguf_kv>::emplace_back<char const*&,bool &>(char const*&,bool &)
add rsp, 38h
pop rbx
pop r14
retn
loc_40068:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGeneralAlignme_0; "general.alignment must be type u32"
mov esi, 3A3h
xor eax, eax
call _ggml_abort
mov rbx, rax
lea rax, [rsp+48h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_400A0
mov rsi, [rsp+48h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_400A0:
mov rdi, rbx
call __Unwind_Resume
| long long gguf_set_val_bool(long long a1, long long a2, char a3)
{
int v3; // ecx
int v4; // r8d
int v5; // r9d
char v7; // [rsp+Eh] [rbp-3Ah] BYREF
char v8; // [rsp+Fh] [rbp-39h] BYREF
long long v9; // [rsp+10h] [rbp-38h] BYREF
void *v10[2]; // [rsp+18h] [rbp-30h] BYREF
long long v11; // [rsp+28h] [rbp-20h] BYREF
v9 = a2;
v7 = a3;
std::string::basic_string<std::allocator<char>>(v10, a2, &v8);
if ( !(unsigned int)std::string::compare(v10, "general.alignment") )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp",
931,
(unsigned int)"general.alignment must be type u32",
v3,
v4,
v5);
if ( v10[0] != &v11 )
operator delete(v10[0], v11 + 1);
gguf_remove_key(a1, v9);
return std::vector<gguf_kv>::emplace_back<char const*&,bool &>(a1 + 8, &v9, &v7);
}
| gguf_set_val_bool:
PUSH R14
PUSH RBX
SUB RSP,0x38
MOV RBX,RDI
MOV qword ptr [RSP + 0x10],RSI
MOV byte ptr [RSP + 0xe],DL
LEA R14,[RSP + 0x18]
LEA RDX,[RSP + 0xf]
MOV RDI,R14
CALL 0x00118d70
LEA RSI,[0x15d061]
MOV RDI,R14
CALL 0x00118220
TEST EAX,EAX
JZ 0x00140068
LEA RAX,[RSP + 0x28]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0014003c
MOV RSI,qword ptr [RSP + 0x28]
INC RSI
CALL 0x001180e0
LAB_0014003c:
LEA R14,[RSP + 0x10]
MOV RSI,qword ptr [R14]
MOV RDI,RBX
CALL 0x001186c0
ADD RBX,0x8
LEA RDX,[RSP + 0xe]
MOV RDI,RBX
MOV RSI,R14
CALL 0x001170c0
ADD RSP,0x38
POP RBX
POP R14
RET
LAB_00140068:
LEA RDI,[0x15cfed]
LEA RDX,[0x15daf6]
MOV ESI,0x3a3
XOR EAX,EAX
CALL 0x00118ce0
|
void gguf_set_val_bool(long param_1,char *param_2,int1 param_3)
{
int iVar1;
bool local_3a;
allocator local_39;
char *local_38;
long *local_30 [2];
long local_20 [2];
local_3a = (bool)param_3;
local_38 = param_2;
std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_2,&local_39);
iVar1 = std::__cxx11::string::compare((string *)local_30,"general.alignment");
if (iVar1 != 0) {
if (local_30[0] != local_20) {
operator_delete(local_30[0],local_20[0] + 1);
}
gguf_remove_key(param_1,local_38);
std::vector<gguf_kv,std::allocator<gguf_kv>>::emplace_back<char_const*&,bool&>
((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8),&local_38,&local_3a);
return;
}
/* try { // try from 00140068 to 00140081 has its CatchHandler @ 00140082 */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp",
0x3a3,"general.alignment must be type u32");
}
| |
36,228 | gguf_set_val_bool | Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp | void gguf_set_val_bool(struct gguf_context * ctx, const char * key, bool val) {
gguf_check_reserved_keys(key, val);
gguf_remove_key(ctx, key);
ctx->kv.emplace_back(key, val);
} | O3 | cpp | gguf_set_val_bool:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
movb %dl, 0x6(%rsp)
leaq 0x10(%rsp), %r15
leaq 0x7(%rsp), %rdx
movq %r15, %rdi
callq 0x17d60
leaq 0x1de88(%rip), %rsi # 0x5d551
movq %r15, %rdi
callq 0x17210
testl %eax, %eax
je 0x3f71b
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f6f0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x170d0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x176b0
addq $0x8, %rbx
leaq 0x8(%rsp), %rsi
leaq 0x6(%rsp), %rdx
movq %rbx, %rdi
callq 0x160c0
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x1ddbb(%rip), %rdi # 0x5d4dd
leaq 0x1e8bd(%rip), %rdx # 0x5dfe6
movl $0x3a3, %esi # imm = 0x3A3
xorl %eax, %eax
callq 0x17cd0
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f753
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x170d0
movq %rbx, %rdi
callq 0x17e90
| gguf_set_val_bool:
push r15
push r14
push rbx
sub rsp, 30h
mov r14, rsi
mov rbx, rdi
mov [rsp+48h+var_40], rsi
mov [rsp+48h+var_42], dl
lea r15, [rsp+48h+var_38]
lea rdx, [rsp+48h+var_41]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aGeneralAlignme; "general.alignment"
mov rdi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_3F71B
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3F6F0
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3F6F0:
mov rdi, rbx
mov rsi, r14
call _gguf_remove_key
add rbx, 8
lea rsi, [rsp+48h+var_40]
lea rdx, [rsp+48h+var_42]
mov rdi, rbx
call __ZNSt6vectorI7gguf_kvSaIS0_EE12emplace_backIJRPKcRbEEERS0_DpOT_; std::vector<gguf_kv>::emplace_back<char const*&,bool &>(char const*&,bool &)
add rsp, 30h
pop rbx
pop r14
pop r15
retn
loc_3F71B:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGeneralAlignme_0; "general.alignment must be type u32"
mov esi, 3A3h
xor eax, eax
call _ggml_abort
mov rbx, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3F753
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3F753:
mov rdi, rbx
call __Unwind_Resume
| long long gguf_set_val_bool(long long a1, long long a2, char a3)
{
int v3; // ecx
int v4; // r8d
int v5; // r9d
char v7; // [rsp+6h] [rbp-42h] BYREF
char v8; // [rsp+7h] [rbp-41h] BYREF
long long v9; // [rsp+8h] [rbp-40h] BYREF
void *v10[2]; // [rsp+10h] [rbp-38h] BYREF
long long v11; // [rsp+20h] [rbp-28h] BYREF
v9 = a2;
v7 = a3;
std::string::basic_string<std::allocator<char>>(v10, a2, &v8);
if ( !(unsigned int)std::string::compare(v10, "general.alignment") )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp",
931,
(unsigned int)"general.alignment must be type u32",
v3,
v4,
v5);
if ( v10[0] != &v11 )
operator delete(v10[0], v11 + 1);
gguf_remove_key(a1, a2);
return std::vector<gguf_kv>::emplace_back<char const*&,bool &>(a1 + 8, &v9, &v7);
}
| gguf_set_val_bool:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RSI
MOV RBX,RDI
MOV qword ptr [RSP + 0x8],RSI
MOV byte ptr [RSP + 0x6],DL
LEA R15,[RSP + 0x10]
LEA RDX,[RSP + 0x7]
MOV RDI,R15
CALL 0x00117d60
LEA RSI,[0x15d551]
MOV RDI,R15
CALL 0x00117210
TEST EAX,EAX
JZ 0x0013f71b
LEA RAX,[RSP + 0x20]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0013f6f0
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x001170d0
LAB_0013f6f0:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001176b0
ADD RBX,0x8
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x6]
MOV RDI,RBX
CALL 0x001160c0
ADD RSP,0x30
POP RBX
POP R14
POP R15
RET
LAB_0013f71b:
LEA RDI,[0x15d4dd]
LEA RDX,[0x15dfe6]
MOV ESI,0x3a3
XOR EAX,EAX
CALL 0x00117cd0
|
void gguf_set_val_bool(long param_1,char *param_2,int1 param_3)
{
int iVar1;
bool local_42;
allocator local_41;
char *local_40;
long *local_38 [2];
long local_28 [2];
local_42 = (bool)param_3;
local_40 = param_2;
std::__cxx11::string::string<std::allocator<char>>((string *)local_38,param_2,&local_41);
iVar1 = std::__cxx11::string::compare((string *)local_38,"general.alignment");
if (iVar1 != 0) {
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
gguf_remove_key(param_1,param_2);
std::vector<gguf_kv,std::allocator<gguf_kv>>::emplace_back<char_const*&,bool&>
((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8),&local_40,&local_42);
return;
}
/* try { // try from 0013f71b to 0013f734 has its CatchHandler @ 0013f735 */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp",
0x3a3,"general.alignment must be type u32");
}
| |
36,229 | stbi__pic_test | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image.h | static int stbi__pic_test(stbi__context *s)
{
int r = stbi__pic_test_core(s);
stbi__rewind(s);
return r;
} | O1 | c | stbi__pic_test:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
leaq 0x14687(%rip), %r15 # 0x26761
movq %rbx, %rdi
callq 0x15736
movl %eax, %ecx
movb (%r14,%r15), %dl
cmpb %dl, %al
jne 0x120f9
leaq 0x1(%r14), %rax
cmpq $0x3, %r14
movq %rax, %r14
jne 0x120da
xorl %eax, %eax
cmpb %dl, %cl
jne 0x12140
movl $0x54, %ebp
movq %rbx, %rdi
callq 0x15736
decl %ebp
jne 0x12104
xorl %r14d, %r14d
leaq 0x1464c(%rip), %r15 # 0x26766
movq %rbx, %rdi
callq 0x15736
movl %eax, %ecx
movb (%r14,%r15), %dl
cmpb %dl, %al
jne 0x12139
leaq 0x1(%r14), %rax
cmpq $0x3, %r14
movq %rax, %r14
jne 0x1211a
xorl %eax, %eax
cmpb %dl, %cl
sete %al
movups 0xd0(%rbx), %xmm0
movups %xmm0, 0xc0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| stbi__pic_test:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdi
xor r14d, r14d
lea r15, unk_26761
loc_120DA:
mov rdi, rbx
call stbi__get8
mov ecx, eax
mov dl, [r14+r15]
cmp al, dl
jnz short loc_120F9
lea rax, [r14+1]
cmp r14, 3
mov r14, rax
jnz short loc_120DA
loc_120F9:
xor eax, eax
cmp cl, dl
jnz short loc_12140
mov ebp, 54h ; 'T'
loc_12104:
mov rdi, rbx
call stbi__get8
dec ebp
jnz short loc_12104
xor r14d, r14d
lea r15, aPict; "PICT"
loc_1211A:
mov rdi, rbx
call stbi__get8
mov ecx, eax
mov dl, [r14+r15]
cmp al, dl
jnz short loc_12139
lea rax, [r14+1]
cmp r14, 3
mov r14, rax
jnz short loc_1211A
loc_12139:
xor eax, eax
cmp cl, dl
setz al
loc_12140:
movups xmm0, xmmword ptr [rbx+0D0h]
movups xmmword ptr [rbx+0C0h], xmm0
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| _BOOL8 stbi__pic_test(long long a1)
{
long long v1; // r14
char v2; // cl
char v3; // dl
bool v4; // zf
_BOOL8 result; // rax
int v6; // ebp
long long v7; // r14
char v8; // cl
char v9; // dl
v1 = 0LL;
do
{
v2 = stbi__get8(a1);
v3 = byte_26761[v1];
if ( v2 != v3 )
break;
v4 = v1++ == 3;
}
while ( !v4 );
result = 0LL;
if ( v2 == v3 )
{
v6 = 84;
do
{
stbi__get8(a1);
--v6;
}
while ( v6 );
v7 = 0LL;
do
{
v8 = stbi__get8(a1);
v9 = aPict[v7];
if ( v8 != v9 )
break;
v4 = v7++ == 3;
}
while ( !v4 );
result = v8 == v9;
}
*(_OWORD *)(a1 + 192) = *(_OWORD *)(a1 + 208);
return result;
}
| stbi__pic_test:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
XOR R14D,R14D
LEA R15,[0x126761]
LAB_001120da:
MOV RDI,RBX
CALL 0x00115736
MOV ECX,EAX
MOV DL,byte ptr [R14 + R15*0x1]
CMP AL,DL
JNZ 0x001120f9
LEA RAX,[R14 + 0x1]
CMP R14,0x3
MOV R14,RAX
JNZ 0x001120da
LAB_001120f9:
XOR EAX,EAX
CMP CL,DL
JNZ 0x00112140
MOV EBP,0x54
LAB_00112104:
MOV RDI,RBX
CALL 0x00115736
DEC EBP
JNZ 0x00112104
XOR R14D,R14D
LEA R15,[0x126766]
LAB_0011211a:
MOV RDI,RBX
CALL 0x00115736
MOV ECX,EAX
MOV DL,byte ptr [R14 + R15*0x1]
CMP AL,DL
JNZ 0x00112139
LEA RAX,[R14 + 0x1]
CMP R14,0x3
MOV R14,RAX
JNZ 0x0011211a
LAB_00112139:
XOR EAX,EAX
CMP CL,DL
SETZ AL
LAB_00112140:
MOVUPS XMM0,xmmword ptr [RBX + 0xd0]
MOVUPS xmmword ptr [RBX + 0xc0],XMM0
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
bool stbi__pic_test(long param_1)
{
char *pcVar1;
char cVar2;
int iVar3;
long lVar4;
bool bVar5;
lVar4 = 0;
do {
cVar2 = stbi__get8(param_1);
pcVar1 = &DAT_00126761 + lVar4;
if (cVar2 != *pcVar1) break;
bVar5 = lVar4 != 3;
lVar4 = lVar4 + 1;
} while (bVar5);
bVar5 = false;
if (cVar2 == *pcVar1) {
iVar3 = 0x54;
do {
stbi__get8(param_1);
iVar3 = iVar3 + -1;
} while (iVar3 != 0);
lVar4 = 0;
do {
cVar2 = stbi__get8(param_1);
pcVar1 = &DAT_00126766 + lVar4;
if (cVar2 != *pcVar1) break;
bVar5 = lVar4 != 3;
lVar4 = lVar4 + 1;
} while (bVar5);
bVar5 = cVar2 == *pcVar1;
}
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 0xd0);
*(int8 *)(param_1 + 200) = *(int8 *)(param_1 + 0xd8);
return bVar5;
}
| |
36,230 | Json::Features::strictMode() | aimrt_mujoco_sim/_deps/jsoncpp-src/src/lib_json/json_reader.cpp | Features Features::strictMode() {
Features features;
features.allowComments_ = false;
features.strictRoot_ = true;
features.allowDroppedNullPlaceholders_ = false;
features.allowNumericKeys_ = false;
return features;
} | O3 | cpp | Json::Features::strictMode():
movl $0x100, %eax # imm = 0x100
retq
| _ZN4Json8Features10strictModeEv:
mov eax, 100h
retn
| long long Json::Features::strictMode(Json::Features *this)
{
return 256LL;
}
| strictMode:
MOV EAX,0x100
RET
|
/* Json::Features::strictMode() */
int8 Json::Features::strictMode(void)
{
return 0x100;
}
| |
36,231 | JS_ToNumberHintFree | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_ToNumberHintFree(JSContext *ctx, JSValue val,
JSToNumberHintEnum flag)
{
uint32_t tag;
JSValue ret;
redo:
tag = JS_VALUE_GET_NORM_TAG(val);
switch(tag) {
case JS_TAG_BIG_INT:
if (flag != TON_FLAG_NUMERIC) {
JS_FreeValue(ctx, val);
return JS_ThrowTypeError(ctx, "cannot convert BigInt to number");
}
ret = val;
break;
case JS_TAG_FLOAT64:
case JS_TAG_INT:
case JS_TAG_EXCEPTION:
ret = val;
break;
case JS_TAG_BOOL:
case JS_TAG_NULL:
ret = js_int32(JS_VALUE_GET_INT(val));
break;
case JS_TAG_UNDEFINED:
ret = JS_NAN;
break;
case JS_TAG_OBJECT:
val = JS_ToPrimitiveFree(ctx, val, HINT_NUMBER);
if (JS_IsException(val))
return JS_EXCEPTION;
goto redo;
case JS_TAG_STRING:
{
const char *str;
size_t len;
int flags;
str = JS_ToCStringLen(ctx, &len, val);
JS_FreeValue(ctx, val);
if (!str)
return JS_EXCEPTION;
flags = ATOD_TRIM_SPACES | ATOD_ACCEPT_EMPTY |
ATOD_ACCEPT_FLOAT | ATOD_ACCEPT_INFINITY |
ATOD_ACCEPT_HEX_PREFIX | ATOD_ACCEPT_BIN_OCT |
ATOD_DECIMAL_AFTER_SIGN | ATOD_NO_TRAILING_CHARS;
ret = js_atof(ctx, str, len, NULL, 10, flags);
JS_FreeCString(ctx, str);
}
break;
case JS_TAG_SYMBOL:
JS_FreeValue(ctx, val);
return JS_ThrowTypeError(ctx, "cannot convert symbol to number");
default:
JS_FreeValue(ctx, val);
ret = JS_NAN;
break;
}
return ret;
} | O0 | c | JS_ToNumberHintFree:
subq $0xb8, %rsp
movq %rsi, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
movq %rdi, 0x90(%rsp)
movl %ecx, 0x8c(%rsp)
movl 0xa0(%rsp), %eax
movl %eax, 0x88(%rsp)
movl 0x88(%rsp), %eax
addl $0x9, %eax
movl %eax, %ecx
movq %rcx, 0x8(%rsp)
subl $0x10, %eax
ja 0x77652
movq 0x8(%rsp), %rax
leaq 0x99d6e(%rip), %rcx # 0x111128
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x1, 0x8c(%rsp)
je 0x77415
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
callq 0x29f80
movq 0x90(%rsp), %rdi
leaq 0x9d462(%rip), %rsi # 0x11485b
movb $0x0, %al
callq 0x335f0
movq %rax, 0xa8(%rsp)
movq %rdx, 0xb0(%rsp)
jmp 0x776ba
movq 0x98(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x7769d
movq 0x98(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x7769d
movl 0x98(%rsp), %edi
callq 0x39fb0
movq %rax, 0x68(%rsp)
movq %rdx, 0x70(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x7769d
movsd 0x9c5dd(%rip), %xmm0 # 0x113a70
movsd %xmm0, 0x58(%rsp)
movq $0x7, 0x60(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x7769d
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
movl $0x1, %ecx
callq 0x68100
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x98(%rsp), %rdi
movq 0xa0(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x7753a
movl $0x0, 0xa8(%rsp)
movq $0x6, 0xb0(%rsp)
jmp 0x776ba
jmp 0x77386
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rdx
movq 0xa0(%rsp), %rcx
leaq 0x38(%rsp), %rsi
callq 0x691c0
movq %rax, 0x40(%rsp)
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
callq 0x29f80
cmpq $0x0, 0x40(%rsp)
jne 0x775a7
movl $0x0, 0xa8(%rsp)
movq $0x6, 0xb0(%rsp)
jmp 0x776ba
movl $0x63f, 0x34(%rsp) # imm = 0x63F
movq 0x90(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
movl 0x34(%rsp), %r9d
xorl %eax, %eax
movl %eax, %ecx
movl $0xa, %r8d
callq 0x69200
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x90(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x30140
jmp 0x7769d
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
callq 0x29f80
movq 0x90(%rsp), %rdi
leaq 0x9d242(%rip), %rsi # 0x11487b
movb $0x0, %al
callq 0x335f0
movq %rax, 0xa8(%rsp)
movq %rdx, 0xb0(%rsp)
jmp 0x776ba
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
callq 0x29f80
movsd 0x9c3f9(%rip), %xmm0 # 0x113a70
movsd %xmm0, 0x10(%rsp)
movq $0x7, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0xa8(%rsp), %rax
movq 0xb0(%rsp), %rdx
addq $0xb8, %rsp
retq
nopw %cs:(%rax,%rax)
| JS_ToNumberHintFree:
sub rsp, 0B8h
mov [rsp+0B8h+var_20], rsi
mov [rsp+0B8h+var_18], rdx
mov [rsp+0B8h+var_28], rdi
mov [rsp+0B8h+var_2C], ecx
loc_77386:
mov eax, dword ptr [rsp+0B8h+var_18]
mov [rsp+0B8h+var_30], eax
mov eax, [rsp+0B8h+var_30]
add eax, 9; switch 17 cases
mov ecx, eax
mov [rsp+0B8h+var_B0], rcx
sub eax, 10h
ja def_773C1; jumptable 00000000000773C1 default case, cases -6--2,4,5
mov rax, [rsp+0B8h+var_B0]
lea rcx, jpt_773C1
movsxd rax, ds:(jpt_773C1 - 111128h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_773C3:
cmp [rsp+0B8h+var_2C], 1; jumptable 00000000000773C1 case -9
jz short loc_77415
mov rdi, [rsp+0B8h+var_28]
mov rsi, [rsp+0B8h+var_20]
mov rdx, [rsp+0B8h+var_18]
call JS_FreeValue
mov rdi, [rsp+0B8h+var_28]
lea rsi, aCannotConvertB; "cannot convert BigInt to number"
mov al, 0
call JS_ThrowTypeError
mov [rsp+0B8h+var_10], rax
mov [rsp+0B8h+var_8], rdx
jmp loc_776BA
loc_77415:
mov rax, [rsp+0B8h+var_20]
mov [rsp+0B8h+var_40], rax
mov rax, [rsp+0B8h+var_18]
mov [rsp+0B8h+var_38], rax
jmp loc_7769D
loc_77437:
mov rax, [rsp+0B8h+var_20]; jumptable 00000000000773C1 cases 0,6,7
mov [rsp+0B8h+var_40], rax
mov rax, [rsp+0B8h+var_18]
mov [rsp+0B8h+var_38], rax
jmp loc_7769D
loc_77459:
mov edi, dword ptr [rsp+0B8h+var_20]; jumptable 00000000000773C1 cases 1,2
call js_int32
mov [rsp+0B8h+var_50], rax
mov [rsp+0B8h+var_48], rdx
mov rax, [rsp+0B8h+var_50]
mov [rsp+0B8h+var_40], rax
mov rax, [rsp+0B8h+var_48]
mov [rsp+0B8h+var_38], rax
jmp loc_7769D
loc_7748B:
movsd xmm0, cs:qword_113A70; jumptable 00000000000773C1 case 3
movsd [rsp+0B8h+var_60], xmm0
mov [rsp+0B8h+var_58], 7
mov rax, [rsp+0B8h+var_60]
mov [rsp+0B8h+var_40], rax
mov rax, [rsp+0B8h+var_58]
mov [rsp+0B8h+var_38], rax
jmp loc_7769D
loc_774BE:
mov rdi, [rsp+0B8h+var_28]; jumptable 00000000000773C1 case -1
mov rsi, [rsp+0B8h+var_20]
mov rdx, [rsp+0B8h+var_18]
mov ecx, 1
call JS_ToPrimitiveFree
mov [rsp+0B8h+var_70], rax
mov [rsp+0B8h+var_68], rdx
mov rax, [rsp+0B8h+var_70]
mov [rsp+0B8h+var_20], rax
mov rax, [rsp+0B8h+var_68]
mov [rsp+0B8h+var_18], rax
mov rdi, [rsp+0B8h+var_20]
mov rsi, [rsp+0B8h+var_18]
call JS_IsException_1
cmp eax, 0
jz short loc_7753A
mov dword ptr [rsp+0B8h+var_10], 0
mov [rsp+0B8h+var_8], 6
jmp loc_776BA
loc_7753A:
jmp loc_77386
loc_7753F:
mov rdi, [rsp+0B8h+var_28]; jumptable 00000000000773C1 case -7
mov rdx, [rsp+0B8h+var_20]
mov rcx, [rsp+0B8h+var_18]
lea rsi, [rsp+0B8h+var_80]
call JS_ToCStringLen_1
mov [rsp+0B8h+var_78], rax
mov rdi, [rsp+0B8h+var_28]
mov rsi, [rsp+0B8h+var_20]
mov rdx, [rsp+0B8h+var_18]
call JS_FreeValue
cmp [rsp+0B8h+var_78], 0
jnz short loc_775A7
mov dword ptr [rsp+0B8h+var_10], 0
mov [rsp+0B8h+var_8], 6
jmp loc_776BA
loc_775A7:
mov [rsp+0B8h+var_84], 63Fh
mov rdi, [rsp+0B8h+var_28]
mov rsi, [rsp+0B8h+var_78]
mov rdx, [rsp+0B8h+var_80]
mov r9d, [rsp+0B8h+var_84]
xor eax, eax
mov ecx, eax
mov r8d, 0Ah
call js_atof
mov [rsp+0B8h+var_98], rax
mov [rsp+0B8h+var_90], rdx
mov rax, [rsp+0B8h+var_98]
mov [rsp+0B8h+var_40], rax
mov rax, [rsp+0B8h+var_90]
mov [rsp+0B8h+var_38], rax
mov rdi, [rsp+0B8h+var_28]
mov rsi, [rsp+0B8h+var_78]
call JS_FreeCString
jmp loc_7769D
loc_7760D:
mov rdi, [rsp+0B8h+var_28]; jumptable 00000000000773C1 case -8
mov rsi, [rsp+0B8h+var_20]
mov rdx, [rsp+0B8h+var_18]
call JS_FreeValue
mov rdi, [rsp+0B8h+var_28]
lea rsi, aCannotConvertS_0; "cannot convert symbol to number"
mov al, 0
call JS_ThrowTypeError
mov [rsp+0B8h+var_10], rax
mov [rsp+0B8h+var_8], rdx
jmp short loc_776BA
def_773C1:
mov rdi, [rsp+0B8h+var_28]; jumptable 00000000000773C1 default case, cases -6--2,4,5
mov rsi, [rsp+0B8h+var_20]
mov rdx, [rsp+0B8h+var_18]
call JS_FreeValue
movsd xmm0, cs:qword_113A70
movsd [rsp+0B8h+var_A8], xmm0
mov [rsp+0B8h+var_A0], 7
mov rax, [rsp+0B8h+var_A8]
mov [rsp+0B8h+var_40], rax
mov rax, [rsp+0B8h+var_A0]
mov [rsp+0B8h+var_38], rax
loc_7769D:
mov rax, [rsp+0B8h+var_40]
mov [rsp+0B8h+var_10], rax
mov rax, [rsp+0B8h+var_38]
mov [rsp+0B8h+var_8], rax
loc_776BA:
mov rax, [rsp+0B8h+var_10]
mov rdx, [rsp+0B8h+var_8]
add rsp, 0B8h
retn
| long long JS_ToNumberHintFree(
long long a1,
long long a2,
long long a3,
int a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v14; // rdx
long long v15; // rcx
long long v16; // r8
long long v17; // r9
__m128 v18; // xmm4
__m128 v19; // xmm5
long long v20; // rdx
long long v21; // rdx
long long v22; // rdx
long long v23; // rdx
long long v24; // rdx
long long v25; // rcx
long long v26; // r8
long long v27; // r9
__m128 v28; // xmm4
__m128 v29; // xmm5
long long v30; // rdx
char v32; // [rsp+0h] [rbp-B8h]
unsigned __int8 *v33; // [rsp+38h] [rbp-80h] BYREF
unsigned __int8 *v34; // [rsp+40h] [rbp-78h]
long long v35; // [rsp+48h] [rbp-70h]
long long v36; // [rsp+50h] [rbp-68h]
long long v37; // [rsp+58h] [rbp-60h]
long long v38; // [rsp+60h] [rbp-58h]
long long v39; // [rsp+68h] [rbp-50h]
long long v40; // [rsp+70h] [rbp-48h]
long long v41; // [rsp+78h] [rbp-40h]
long long v42; // [rsp+80h] [rbp-38h]
int v43; // [rsp+88h] [rbp-30h]
int v44; // [rsp+8Ch] [rbp-2Ch]
long long v45; // [rsp+90h] [rbp-28h]
long long v46; // [rsp+98h] [rbp-20h]
long long v47; // [rsp+A0h] [rbp-18h]
long long v48; // [rsp+A8h] [rbp-10h]
long long v49; // [rsp+B0h] [rbp-8h]
v46 = a2;
v47 = a3;
v45 = a1;
v44 = a4;
while ( 2 )
{
v43 = v47;
switch ( (int)v47 )
{
case -9:
if ( v44 == 1 )
{
v41 = v46;
v42 = v47;
goto LABEL_17;
}
JS_FreeValue(v45, v46, v47);
v48 = JS_ThrowTypeError(
v45,
(long long)"cannot convert BigInt to number",
v14,
v15,
v16,
v17,
a7,
a8,
a9,
a10,
v18,
v19,
a13,
a14,
v32);
v49 = v20;
return v48;
case -8:
JS_FreeValue(v45, v46, v47);
v48 = JS_ThrowTypeError(
v45,
(long long)"cannot convert symbol to number",
v24,
v25,
v26,
v27,
a7,
a8,
a9,
a10,
v28,
v29,
a13,
a14,
v32);
v49 = v30;
return v48;
case -7:
v34 = (unsigned __int8 *)JS_ToCStringLen_1(v45, &v33, v46, v47);
JS_FreeValue(v45, v46, v47);
if ( v34 )
{
v41 = js_atof(v45, v34, v33, 0LL, 10, 1599);
v42 = v23;
JS_FreeCString(v45, (long long)v34);
goto LABEL_17;
}
LODWORD(v48) = 0;
v49 = 6LL;
return v48;
case -1:
v35 = JS_ToPrimitiveFree(v45, v46, v47, 1LL, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v36 = v22;
v46 = v35;
v47 = v22;
if ( !JS_IsException_1(v35, v22) )
continue;
LODWORD(v48) = 0;
v49 = 6LL;
return v48;
case 0:
case 6:
case 7:
v41 = v46;
v42 = v47;
goto LABEL_17;
case 1:
case 2:
v39 = js_int32(v46);
v40 = v21;
v41 = v39;
v42 = v21;
goto LABEL_17;
case 3:
v37 = 0x7FF8000000000000LL;
v38 = 7LL;
v41 = 0x7FF8000000000000LL;
v42 = 7LL;
goto LABEL_17;
default:
JS_FreeValue(v45, v46, v47);
v41 = 0x7FF8000000000000LL;
v42 = 7LL;
LABEL_17:
v48 = v41;
v49 = v42;
return v48;
}
}
}
| JS_ToNumberHintFree:
SUB RSP,0xb8
MOV qword ptr [RSP + 0x98],RSI
MOV qword ptr [RSP + 0xa0],RDX
MOV qword ptr [RSP + 0x90],RDI
MOV dword ptr [RSP + 0x8c],ECX
MOV EAX,dword ptr [RSP + 0xa0]
MOV dword ptr [RSP + 0x88],EAX
MOV EAX,dword ptr [RSP + 0x88]
ADD EAX,0x9
MOV ECX,EAX
MOV qword ptr [RSP + 0x8],RCX
SUB EAX,0x10
JA 0x00177652
MOV RAX,qword ptr [RSP + 0x8]
LEA RCX,[0x211128]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
JMP RAX
LAB_00177652:
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x98]
MOV RDX,qword ptr [RSP + 0xa0]
CALL 0x00129f80
MOVSD XMM0,qword ptr [0x00213a70]
MOVSD qword ptr [RSP + 0x10],XMM0
MOV qword ptr [RSP + 0x18],0x7
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x80],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0xa8],RAX
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0xb0],RAX
MOV RAX,qword ptr [RSP + 0xa8]
MOV RDX,qword ptr [RSP + 0xb0]
ADD RSP,0xb8
RET
| ||
36,232 | JS_ToNumberHintFree | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_ToNumberHintFree(JSContext *ctx, JSValue val,
JSToNumberHintEnum flag)
{
uint32_t tag;
JSValue ret;
redo:
tag = JS_VALUE_GET_NORM_TAG(val);
switch(tag) {
case JS_TAG_BIG_INT:
if (flag != TON_FLAG_NUMERIC) {
JS_FreeValue(ctx, val);
return JS_ThrowTypeError(ctx, "cannot convert BigInt to number");
}
ret = val;
break;
case JS_TAG_FLOAT64:
case JS_TAG_INT:
case JS_TAG_EXCEPTION:
ret = val;
break;
case JS_TAG_BOOL:
case JS_TAG_NULL:
ret = js_int32(JS_VALUE_GET_INT(val));
break;
case JS_TAG_UNDEFINED:
ret = JS_NAN;
break;
case JS_TAG_OBJECT:
val = JS_ToPrimitiveFree(ctx, val, HINT_NUMBER);
if (JS_IsException(val))
return JS_EXCEPTION;
goto redo;
case JS_TAG_STRING:
{
const char *str;
size_t len;
int flags;
str = JS_ToCStringLen(ctx, &len, val);
JS_FreeValue(ctx, val);
if (!str)
return JS_EXCEPTION;
flags = ATOD_TRIM_SPACES | ATOD_ACCEPT_EMPTY |
ATOD_ACCEPT_FLOAT | ATOD_ACCEPT_INFINITY |
ATOD_ACCEPT_HEX_PREFIX | ATOD_ACCEPT_BIN_OCT |
ATOD_DECIMAL_AFTER_SIGN | ATOD_NO_TRAILING_CHARS;
ret = js_atof(ctx, str, len, NULL, 10, flags);
JS_FreeCString(ctx, str);
}
break;
case JS_TAG_SYMBOL:
JS_FreeValue(ctx, val);
return JS_ThrowTypeError(ctx, "cannot convert symbol to number");
default:
JS_FreeValue(ctx, val);
ret = JS_NAN;
break;
}
return ret;
} | O2 | c | JS_ToNumberHintFree:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, 0xc(%rsp)
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r14
pushq $0x7
popq %r15
leaq 0x48c79(%rip), %rbx # 0x86f30
pushq $0x1
popq %rbp
leal 0x9(%r12), %eax
cmpl $0x10, %eax
ja 0x3e389
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
jmpq *%rax
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl %ebp, %ecx
callq 0x3a29e
movq %rax, %r13
movq %rdx, %r12
cmpl $0x6, %r12d
jne 0x3e2ba
xorl %r13d, %r13d
jmp 0x3e3c5
movl %r13d, %r13d
xorl %r15d, %r15d
jmp 0x3e3c9
cmpl $0x1, 0xc(%rsp)
jne 0x3e3a3
movq %r12, %r15
jmp 0x3e3c9
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1bbce
leaq 0x4b4b7(%rip), %rsi # 0x897df
jmp 0x3e3b8
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
callq 0x3a79e
movq %rax, %rbp
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1bbce
testq %rbp, %rbp
je 0x3e3de
movq 0x10(%rsp), %rdx
pushq $0xa
popq %r8
movq %r14, %rdi
movq %rbp, %rsi
xorl %ecx, %ecx
movl $0x63f, %r9d # imm = 0x63F
callq 0x3a7a6
movq %rax, %r13
movq %rdx, %r15
movq %r14, %rdi
movq %rbp, %rsi
callq 0x1ec07
jmp 0x3e3c9
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1bbce
movabsq $0x7ff8000000000000, %r13 # imm = 0x7FF8000000000000
jmp 0x3e3c9
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1bbce
leaq 0x4b407(%rip), %rsi # 0x897bf
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x201fd
pushq $0x6
popq %r15
movq %r13, %rax
movq %r15, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x6
popq %r15
xorl %r13d, %r13d
jmp 0x3e3c9
| JS_ToNumberHintFree:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rsp+48h+var_3C], ecx
mov r12, rdx
mov r13, rsi
mov r14, rdi
push 7
pop r15
lea rbx, jpt_3E2CF
push 1
pop rbp
loc_3E2BA:
lea eax, [r12+9]; switch 17 cases
cmp eax, 10h
ja def_3E2CF; jumptable 000000000003E2CF default case, cases -6--2,4,5
movsxd rax, ds:(jpt_3E2CF - 86F30h)[rbx+rax*4]
add rax, rbx
jmp rax; switch jump
loc_3E2D1:
mov rdi, r14; jumptable 000000000003E2CF case -1
mov rsi, r13
mov rdx, r12
mov ecx, ebp
call JS_ToPrimitiveFree
mov r13, rax
mov r12, rdx
cmp r12d, 6
jnz short loc_3E2BA
xor r13d, r13d
jmp loc_3E3C5
loc_3E2F5:
mov r13d, r13d; jumptable 000000000003E2CF cases 1,2
xor r15d, r15d
jmp loc_3E3C9
loc_3E300:
cmp [rsp+48h+var_3C], 1; jumptable 000000000003E2CF case -9
jnz loc_3E3A3
loc_3E30B:
mov r15, r12; jumptable 000000000003E2CF cases 0,6,7
jmp loc_3E3C9
loc_3E313:
mov rdi, r14; jumptable 000000000003E2CF case -8
mov rsi, r13
mov rdx, r12
call JS_FreeValue
lea rsi, aCannotConvertS_0; "cannot convert symbol to number"
jmp loc_3E3B8
loc_3E32D:
lea rsi, [rsp+48h+var_38]; jumptable 000000000003E2CF case -7
mov rdi, r14
mov rdx, r13
mov rcx, r12
call JS_ToCStringLen_0
mov rbp, rax
mov rdi, r14
mov rsi, r13
mov rdx, r12
call JS_FreeValue
test rbp, rbp
jz loc_3E3DE
mov rdx, [rsp+48h+var_38]
push 0Ah
pop r8
mov rdi, r14
mov rsi, rbp
xor ecx, ecx
mov r9d, 63Fh
call js_atof
mov r13, rax
mov r15, rdx
mov rdi, r14
mov rsi, rbp
call JS_FreeCString
jmp short loc_3E3C9
def_3E2CF:
mov rdi, r14; jumptable 000000000003E2CF default case, cases -6--2,4,5
mov rsi, r13
mov rdx, r12
call JS_FreeValue
loc_3E397:
mov r13, 7FF8000000000000h; jumptable 000000000003E2CF case 3
jmp short loc_3E3C9
loc_3E3A3:
mov rdi, r14
mov rsi, r13
mov rdx, r12
call JS_FreeValue
lea rsi, aCannotConvertB; "cannot convert BigInt to number"
loc_3E3B8:
xor r13d, r13d
mov rdi, r14
xor eax, eax
call JS_ThrowTypeError
loc_3E3C5:
push 6
pop r15
loc_3E3C9:
mov rax, r13
mov rdx, r15
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3E3DE:
push 6
pop r15
xor r13d, r13d
jmp short loc_3E3C9
| long long JS_ToNumberHintFree(
long long a1,
long long a2,
long long a3,
int a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v16; // rdx
long long v17; // rdx
long long v18; // rcx
long long v19; // r8
long long v20; // r9
__m128 v21; // xmm4
__m128 v22; // xmm5
const char *v23; // rsi
unsigned __int8 *v24; // rbp
char v26; // [rsp+0h] [rbp-48h]
long long v28[7]; // [rsp+10h] [rbp-38h] BYREF
while ( 2 )
{
switch ( (int)a3 )
{
case -9:
if ( a4 != 1 )
{
JS_FreeValue(a1, a2, a3);
v23 = "cannot convert BigInt to number";
goto LABEL_13;
}
break;
case -8:
JS_FreeValue(a1, a2, a3);
v23 = "cannot convert symbol to number";
LABEL_13:
a2 = 0LL;
JS_ThrowTypeError(a1, (long long)v23, v17, v18, v19, v20, a7, a8, a9, a10, v21, v22, a13, a14, v26);
break;
case -7:
v24 = (unsigned __int8 *)JS_ToCStringLen_0(a1, v28, a2, a3);
JS_FreeValue(a1, a2, a3);
if ( v24 )
{
a2 = js_atof(a1, v24, v28[0], 0LL, 0xAu, 1599);
JS_FreeCString(a1, (long long)v24);
}
else
{
a2 = 0LL;
}
break;
case -1:
a2 = JS_ToPrimitiveFree(a1, a2, a3, 1LL, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
a3 = v16;
if ( (_DWORD)v16 != 6 )
continue;
a2 = 0LL;
break;
case 0:
case 6:
case 7:
return a2;
case 1:
case 2:
a2 = (unsigned int)a2;
break;
case 3:
goto LABEL_11;
default:
JS_FreeValue(a1, a2, a3);
LABEL_11:
a2 = 0x7FF8000000000000LL;
break;
}
return a2;
}
}
| JS_ToNumberHintFree:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV dword ptr [RSP + 0xc],ECX
MOV R12,RDX
MOV R13,RSI
MOV R14,RDI
PUSH 0x7
POP R15
LEA RBX,[0x186f30]
PUSH 0x1
POP RBP
LAB_0013e2ba:
LEA EAX,[R12 + 0x9]
CMP EAX,0x10
JA 0x0013e389
MOVSXD RAX,dword ptr [RBX + RAX*0x4]
ADD RAX,RBX
switchD:
JMP RAX
caseD_ffffffff:
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
MOV ECX,EBP
CALL 0x0013a29e
MOV R13,RAX
MOV R12,RDX
CMP R12D,0x6
JNZ 0x0013e2ba
XOR R13D,R13D
JMP 0x0013e3c5
caseD_1:
MOV R13D,R13D
XOR R15D,R15D
JMP 0x0013e3c9
caseD_fffffff7:
CMP dword ptr [RSP + 0xc],0x1
JNZ 0x0013e3a3
caseD_0:
MOV R15,R12
JMP 0x0013e3c9
caseD_fffffff8:
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
CALL 0x0011bbce
LEA RSI,[0x1897df]
JMP 0x0013e3b8
caseD_fffffff9:
LEA RSI,[RSP + 0x10]
MOV RDI,R14
MOV RDX,R13
MOV RCX,R12
CALL 0x0013a79e
MOV RBP,RAX
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
CALL 0x0011bbce
TEST RBP,RBP
JZ 0x0013e3de
MOV RDX,qword ptr [RSP + 0x10]
PUSH 0xa
POP R8
MOV RDI,R14
MOV RSI,RBP
XOR ECX,ECX
MOV R9D,0x63f
CALL 0x0013a7a6
MOV R13,RAX
MOV R15,RDX
MOV RDI,R14
MOV RSI,RBP
CALL 0x0011ec07
JMP 0x0013e3c9
caseD_fffffffa:
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
CALL 0x0011bbce
caseD_3:
MOV R13,0x7ff8000000000000
JMP 0x0013e3c9
LAB_0013e3a3:
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
CALL 0x0011bbce
LEA RSI,[0x1897bf]
LAB_0013e3b8:
XOR R13D,R13D
MOV RDI,R14
XOR EAX,EAX
CALL 0x001201fd
LAB_0013e3c5:
PUSH 0x6
POP R15
LAB_0013e3c9:
MOV RAX,R13
MOV RDX,R15
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013e3de:
PUSH 0x6
POP R15
XOR R13D,R13D
JMP 0x0013e3c9
|
int1 [16]
JS_ToNumberHintFree(int8 param_1,int8 param_2,int8 param_3,int param_4)
{
int1 auVar1 [16];
int1 auVar2 [16];
long lVar3;
char *pcVar4;
int8 uVar5;
ulong uVar6;
int1 auVar7 [16];
int8 local_38;
auVar7._8_8_ = param_3;
auVar7._0_8_ = param_2;
LAB_0013e2ba:
uVar5 = auVar7._8_8_;
uVar6 = auVar7._0_8_;
switch(auVar7._8_4_) {
case 0:
case 6:
case 7:
return auVar7;
case 1:
case 2:
auVar2._8_8_ = 0;
auVar2._0_8_ = uVar6 & 0xffffffff;
return auVar2;
case -9:
if (param_4 == 1) {
return auVar7;
}
JS_FreeValue(param_1,uVar6,uVar5);
pcVar4 = "cannot convert BigInt to number";
break;
case -8:
JS_FreeValue(param_1,uVar6,uVar5);
pcVar4 = "cannot convert symbol to number";
break;
case -7:
lVar3 = JS_ToCStringLen(param_1,&local_38,uVar6,uVar5);
JS_FreeValue(param_1,uVar6,uVar5);
if (lVar3 == 0) {
return ZEXT816(6) << 0x40;
}
auVar7 = js_atof(param_1,lVar3,local_38,0,10,0x63f);
JS_FreeCString(param_1,lVar3);
return auVar7;
default:
JS_FreeValue(param_1,uVar6,uVar5);
case 3:
auVar1._8_8_ = 7;
auVar1._0_8_ = 0x7ff8000000000000;
return auVar1;
case -1:
goto switchD_0013e2cf_caseD_ffffffff;
}
JS_ThrowTypeError(param_1,pcVar4);
goto LAB_0013e3c5;
switchD_0013e2cf_caseD_ffffffff:
auVar7 = JS_ToPrimitiveFree(param_1,uVar6,uVar5,1);
if (auVar7._8_4_ == 6) {
LAB_0013e3c5:
return ZEXT816(6) << 0x40;
}
goto LAB_0013e2ba;
}
| |
36,233 | nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<nlohmann::json_abi_v3_11_3::basic_json<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>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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>*) | msxemulator/build_O3/_deps/picotool-src/lib/nlohmann_json/single_include/nlohmann/json.hpp | static invalid_iterator create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("invalid_iterator", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<nlohmann::json_abi_v3_11_3::basic_json<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>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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>*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x379eb(%rip), %rsi # 0xa7ee2
leaq 0x379f4(%rip), %rdx # 0xa7ef2
leaq 0x28(%rsp), %rdi
callq 0x5c00c
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x568b2
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq 0x8(%r15), %rsi
addq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0xf6d0
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0xf170
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0xf170
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0xf170
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x705a1
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xf470
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x705bc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xf470
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x705d3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xf470
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x56aae
leaq 0x71307(%rip), %rax # 0xe18f0
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x70603
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf470
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x70691
movq 0x18(%rsp), %rsi
jmp 0x70689
movq %rax, %rbx
jmp 0x7067a
movq %rax, %rbx
jmp 0x70691
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x70653
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf470
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x88(%rsp), %r12
movq %r14, %rsi
movq %r15, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0x103ca
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x70691
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xf470
movq %rbx, %rdi
callq 0xf7d0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rdx
mov ebp, esi
mov rbx, rdi
lea r13, [rsp+0C8h+var_90]
mov [r13-10h], r13
lea rsi, aInvalidIterato; "invalid_iterator"
lea rdx, aInvalidIterato+10h; ""
lea rdi, [rsp+0C8h+var_A0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0C8h+var_80]; int
lea rsi, [rsp+0C8h+var_A0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea r14, [rsp+0C8h+var_50]
mov [r14-10h], r14
xor eax, eax
mov [r14-8], rax
mov [r14], al
lea r12, [rsp+0C8h+var_B0]
mov [r12-10h], r12
mov [r12-8], rax
mov [r12], al
mov rsi, [r15+8]
add rsi, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, qword ptr [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0C8h+var_60]; void *
cmp rdi, r14
jz short loc_705A1
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_705A1:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_705BC
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_705BC:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_705D3
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_705D3:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
lea rax, off_E18F0
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_70603
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_70603:
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r12
jz short loc_70691
mov rsi, [rsp+arg_10]
jmp short loc_70689
mov rbx, rax
jmp short loc_7067A
mov rbx, rax
jmp short loc_70691
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_70653
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_70653:
lea rdi, [rsp+arg_60]
lea rdx, [rsp+arg_40]
lea r12, [rsp+arg_80]
mov rsi, r14
mov rcx, r15
mov r8d, ebx
mov r9, r12
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK__cold_1
mov rbx, [r12]
loc_7067A:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_70691
mov rsi, [rsp+arg_30]
loc_70689:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_70691:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
_QWORD *a3)
{
char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF
int v9[2]; // [rsp+48h] [rbp-80h] BYREF
long long v10; // [rsp+50h] [rbp-78h]
long long v11; // [rsp+58h] [rbp-70h] BYREF
void *v12; // [rsp+68h] [rbp-60h]
long long v13; // [rsp+70h] [rbp-58h]
_QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>((long long)v7, "invalid_iterator", (long long)"");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2);
v12 = v14;
v13 = 0LL;
LOBYTE(v14[0]) = 0;
v5[0] = (char *)v6;
v5[1] = 0LL;
LOBYTE(v6[0]) = 0;
std::string::reserve(v5, v10 + a3[1]);
std::string::_M_append(v5, *(_QWORD *)v9, v10);
std::string::_M_append(v5, v12, v13);
std::string::_M_append(v5, *a3, a3[1]);
if ( v12 != v14 )
operator delete(v12, v14[0] + 1LL);
if ( *(long long **)v9 != &v11 )
operator delete(*(void **)v9, v11 + 1);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]);
*(_QWORD *)this = off_E18F0;
if ( (_QWORD *)v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R15,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_001704f0:
LEA RSI,[0x1a7ee2]
LEA RDX,[0x1a7ef2]
LEA RDI,[RSP + 0x28]
CALL 0x0015c00c
LAB_00170508:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x001568b2
LEA R14,[RSP + 0x78]
MOV qword ptr [R14 + -0x10],R14
XOR EAX,EAX
MOV qword ptr [R14 + -0x8],RAX
MOV byte ptr [R14],AL
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],RAX
MOV byte ptr [R12],AL
MOV RSI,qword ptr [R15 + 0x8]
ADD RSI,qword ptr [RSP + 0x50]
LAB_00170547:
LEA RDI,[RSP + 0x8]
CALL 0x0010f6d0
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
LEA RDI,[RSP + 0x8]
CALL 0x0010f170
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
LEA RDI,[RSP + 0x8]
CALL 0x0010f170
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x0010f170
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R14
JZ 0x001705a1
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x0010f470
LAB_001705a1:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001705bc
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0010f470
LAB_001705bc:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x001705d3
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0010f470
LAB_001705d3:
MOV RDX,qword ptr [RSP + 0x8]
LAB_001705d8:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x00156aae
LAB_001705e2:
LEA RAX,[0x1e18f0]
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x00170603
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0010f470
LAB_00170603:
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(exception *param_1,int param_2,ulong *param_3)
{
char *local_c0;
int8 local_b8;
char local_b0;
int7 uStack_af;
long *local_a0 [2];
long local_90 [2];
long *local_80 [2];
long local_70 [2];
int1 *local_60;
int8 local_58;
int1 local_50;
int7 uStack_4f;
/* try { // try from 001704f0 to 00170507 has its CatchHandler @ 00170631 */
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char_const*>((string *)local_a0,"invalid_iterator","");
/* try { // try from 00170508 to 00170518 has its CatchHandler @ 0017062c */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_80,(string *)local_a0,param_2);
local_58 = 0;
local_50 = 0;
local_b8 = 0;
local_b0 = '\0';
/* try { // try from 00170547 to 00170589 has its CatchHandler @ 00170636 */
local_c0 = &local_b0;
local_60 = &local_50;
std::__cxx11::string::reserve((ulong)&local_c0);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60);
std::__cxx11::string::_M_append((char *)&local_c0,*param_3);
if (local_60 != &local_50) {
operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1);
}
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 1);
}
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
/* try { // try from 001705d8 to 001705e1 has its CatchHandler @ 00170618 */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0);
*(int ***)param_1 = &PTR__exception_001e18f0;
if (local_c0 != &local_b0) {
operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1);
}
return param_1;
}
| |
36,234 | ENCRYPT | xtate/src/crypto/crypto-blackrock.c | static inline uint64_t ENCRYPT(unsigned r, uint64_t a, uint64_t b, uint64_t m,
uint64_t seed) {
uint64_t L, R;
unsigned j;
uint64_t tmp;
L = m % a;
R = m / a;
for (j = 1; j <= r; j++) {
if (j & 1) {
tmp = (L + READ(j, R, seed)) % a;
} else {
tmp = (L + READ(j, R, seed)) % b;
}
L = R;
R = tmp;
}
if (r & 1) {
return a * L + R;
} else {
return a * R + L;
}
} | O3 | c | ENCRYPT:
movq %rcx, %rax
movq %rdx, %r10
xorl %edx, %edx
divq %rsi
movq %rdx, %r9
movq %rax, %rdx
testl %edi, %edi
je 0x1a5d8
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl $0x1, %r11d
movl $0xff, %ebx
leaq 0x445bf(%rip), %r14 # 0x5ea90
movq %r8, %r12
movl %r11d, %ecx
shlq %cl, %r12
movq %r9, %r15
negb %cl
movq %r8, %rax
shrq %cl, %rax
movq %rdx, %r9
xorq %rdx, %r12
xorq %rax, %r12
movl %r11d, %ecx
xorl %r8d, %ecx
movl %ecx, %eax
xorl %r12d, %eax
andl %ebx, %eax
movzbl (%rax,%r14), %eax
movl %r12d, %edx
shrl $0x8, %edx
xorl %ecx, %edx
andl %ebx, %edx
movzbl (%rdx,%r14), %edx
shll $0x8, %edx
orq %rax, %rdx
movl %r12d, %eax
shrl $0x10, %eax
xorl %ecx, %eax
andl %ebx, %eax
movzbl (%rax,%r14), %eax
shll $0x10, %eax
orq %rdx, %rax
movl %r12d, %edx
shrl $0x18, %edx
xorl %ecx, %edx
andl %ebx, %edx
movzbl (%rdx,%r14), %edx
shll $0x18, %edx
orq %rax, %rdx
movq %r12, %rax
shrq $0x20, %rax
xorl %ecx, %eax
andl %ebx, %eax
movzbl (%rax,%r14), %eax
movq %r12, %r13
shrq $0x28, %r13
xorl %ecx, %r13d
andl %ebx, %r13d
movzbl (%r13,%r14), %r13d
movq %r12, %rbp
shrq $0x30, %rbp
xorl %ecx, %ebp
andl %ebx, %ebp
movzbl (%rbp,%r14), %ebp
shlq $0x31, %rbp
shrq $0x38, %r12
xorl %ecx, %r12d
andl %ebx, %r12d
movzbl (%r12,%r14), %ecx
shlq $0x39, %rcx
orq %rbp, %rcx
addq %r15, %rcx
shlq $0x1f, %r13
shll $0x17, %eax
orq %r13, %rax
xorq %rdx, %rax
addq %rcx, %rax
testb $0x1, %r11b
movq %rsi, %rcx
cmoveq %r10, %rcx
xorl %edx, %edx
divq %rcx
incl %r11d
cmpl %edi, %r11d
jbe 0x1a4d1
testb $0x1, %dil
movq %r9, %rax
cmoveq %rdx, %rax
cmovneq %rdx, %r9
movq %rax, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
imulq %rsi, %rdx
addq %r9, %rdx
movq %rdx, %rax
retq
| ENCRYPT:
mov rax, rcx
mov r10, rdx
xor edx, edx
div rsi
mov r9, rdx
mov rdx, rax
test edi, edi
jz loc_1A5D8
push rbp
push r15
push r14
push r13
push r12
push rbx
mov r11d, 1
mov ebx, 0FFh
lea r14, sbox
loc_1A4D1:
mov r12, r8
mov ecx, r11d
shl r12, cl
mov r15, r9
neg cl
mov rax, r8
shr rax, cl
mov r9, rdx
xor r12, rdx
xor r12, rax
mov ecx, r11d
xor ecx, r8d
mov eax, ecx
xor eax, r12d
and eax, ebx
movzx eax, byte ptr [rax+r14]
mov edx, r12d
shr edx, 8
xor edx, ecx
and edx, ebx
movzx edx, byte ptr [rdx+r14]
shl edx, 8
or rdx, rax
mov eax, r12d
shr eax, 10h
xor eax, ecx
and eax, ebx
movzx eax, byte ptr [rax+r14]
shl eax, 10h
or rax, rdx
mov edx, r12d
shr edx, 18h
xor edx, ecx
and edx, ebx
movzx edx, byte ptr [rdx+r14]
shl edx, 18h
or rdx, rax
mov rax, r12
shr rax, 20h
xor eax, ecx
and eax, ebx
movzx eax, byte ptr [rax+r14]
mov r13, r12
shr r13, 28h
xor r13d, ecx
and r13d, ebx
movzx r13d, byte ptr [r13+r14+0]
mov rbp, r12
shr rbp, 30h
xor ebp, ecx
and ebp, ebx
movzx ebp, byte ptr [rbp+r14+0]
shl rbp, 31h
shr r12, 38h
xor r12d, ecx
and r12d, ebx
movzx ecx, byte ptr [r12+r14]
shl rcx, 39h
or rcx, rbp
add rcx, r15
shl r13, 1Fh
shl eax, 17h
or rax, r13
xor rax, rdx
add rax, rcx
test r11b, 1
mov rcx, rsi
cmovz rcx, r10
xor edx, edx
div rcx
inc r11d
cmp r11d, edi
jbe loc_1A4D1
test dil, 1
mov rax, r9
cmovz rax, rdx
cmovnz r9, rdx
mov rdx, rax
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
loc_1A5D8:
imul rdx, rsi
add rdx, r9
mov rax, rdx
retn
| unsigned long long ENCRYPT(
unsigned int a1,
unsigned long long a2,
unsigned long long a3,
unsigned long long a4,
unsigned long long a5)
{
unsigned long long v6; // r9
unsigned long long v7; // rdx
unsigned int i; // r11d
unsigned long long v9; // r15
unsigned long long v10; // r12
unsigned long long v11; // rcx
unsigned long long v12; // rax
v6 = a4 % a2;
v7 = a4 / a2;
if ( a1 )
{
for ( i = 1; i <= a1; ++i )
{
v9 = v6;
v6 = v7;
v11 = a2;
if ( (i & 1) == 0 )
v11 = a3;
v10 = (a5 >> -(char)i) ^ v7 ^ (a5 << i);
v7 = (v9
+ (((unsigned long long)sbox[(unsigned __int8)(a5 ^ i ^ BYTE6(v10))] << 49) | ((unsigned long long)sbox[(unsigned __int8)(a5 ^ i ^ HIBYTE(v10))] << 57))
+ ((sbox[(unsigned __int8)(v10 ^ a5 ^ i)] | (unsigned long long)(sbox[(unsigned __int8)(a5 ^ i ^ ((unsigned __int16)((a5 >> -(char)i) ^ v7 ^ ((_WORD)a5 << i)) >> 8))] << 8) | (sbox[(unsigned __int8)(a5 ^ i ^ BYTE2(v10))] << 16) | (sbox[(unsigned __int8)(a5 ^ i ^ (((unsigned int)(a5 >> -(char)i) ^ (unsigned int)v7 ^ ((_DWORD)a5 << i)) >> 24))] << 24)) ^ (((unsigned long long)sbox[(unsigned __int8)(a5 ^ i ^ BYTE5(v10))] << 31) | (sbox[(unsigned __int8)(a5 ^ i ^ BYTE4(v10))] << 23))))
% v11;
}
v12 = v6;
if ( (a1 & 1) != 0 )
v6 = v7;
else
v12 = v7;
v7 = v12;
}
return v6 + a2 * v7;
}
| ENCRYPT:
MOV RAX,RCX
MOV R10,RDX
XOR EDX,EDX
DIV RSI
MOV R9,RDX
MOV RDX,RAX
TEST EDI,EDI
JZ 0x0011a5d8
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R11D,0x1
MOV EBX,0xff
LEA R14,[0x15ea90]
LAB_0011a4d1:
MOV R12,R8
MOV ECX,R11D
SHL R12,CL
MOV R15,R9
NEG CL
MOV RAX,R8
SHR RAX,CL
MOV R9,RDX
XOR R12,RDX
XOR R12,RAX
MOV ECX,R11D
XOR ECX,R8D
MOV EAX,ECX
XOR EAX,R12D
AND EAX,EBX
MOVZX EAX,byte ptr [RAX + R14*0x1]
MOV EDX,R12D
SHR EDX,0x8
XOR EDX,ECX
AND EDX,EBX
MOVZX EDX,byte ptr [RDX + R14*0x1]
SHL EDX,0x8
OR RDX,RAX
MOV EAX,R12D
SHR EAX,0x10
XOR EAX,ECX
AND EAX,EBX
MOVZX EAX,byte ptr [RAX + R14*0x1]
SHL EAX,0x10
OR RAX,RDX
MOV EDX,R12D
SHR EDX,0x18
XOR EDX,ECX
AND EDX,EBX
MOVZX EDX,byte ptr [RDX + R14*0x1]
SHL EDX,0x18
OR RDX,RAX
MOV RAX,R12
SHR RAX,0x20
XOR EAX,ECX
AND EAX,EBX
MOVZX EAX,byte ptr [RAX + R14*0x1]
MOV R13,R12
SHR R13,0x28
XOR R13D,ECX
AND R13D,EBX
MOVZX R13D,byte ptr [R13 + R14*0x1]
MOV RBP,R12
SHR RBP,0x30
XOR EBP,ECX
AND EBP,EBX
MOVZX EBP,byte ptr [RBP + R14*0x1]
SHL RBP,0x31
SHR R12,0x38
XOR R12D,ECX
AND R12D,EBX
MOVZX ECX,byte ptr [R12 + R14*0x1]
SHL RCX,0x39
OR RCX,RBP
ADD RCX,R15
SHL R13,0x1f
SHL EAX,0x17
OR RAX,R13
XOR RAX,RDX
ADD RAX,RCX
TEST R11B,0x1
MOV RCX,RSI
CMOVZ RCX,R10
XOR EDX,EDX
DIV RCX
INC R11D
CMP R11D,EDI
JBE 0x0011a4d1
TEST DIL,0x1
MOV RAX,R9
CMOVZ RAX,RDX
CMOVNZ R9,RDX
MOV RDX,RAX
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
LAB_0011a5d8:
IMUL RDX,RSI
ADD RDX,R9
MOV RAX,RDX
RET
|
long ENCRYPT(uint param_1,ulong param_2,ulong param_3,ulong param_4,ulong param_5)
{
uint uVar1;
uint uVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
uint uVar6;
ulong uVar7;
uVar4 = param_4 / param_2;
uVar5 = param_4 % param_2;
if (param_1 != 0) {
uVar6 = 1;
uVar3 = param_4 / param_2;
uVar4 = param_4 % param_2;
do {
uVar5 = uVar3;
uVar7 = param_5 << ((byte)uVar6 & 0x3f) ^ uVar5 ^ param_5 >> (-(byte)uVar6 & 0x3f);
uVar2 = uVar6 ^ (uint)param_5;
uVar1 = (uint)(uVar7 >> 0x20);
uVar3 = param_2;
if ((uVar6 & 1) == 0) {
uVar3 = param_3;
}
uVar3 = ((((ulong)(byte)sbox[(uVar1 ^ uVar2) & 0xff] << 0x17 |
(ulong)(byte)sbox[(uVar1 >> 8 ^ uVar2) & 0xff] << 0x1f) ^
(ulong)CONCAT13(sbox[((uint)(uVar7 >> 0x18) & 0xff ^ uVar2) & 0xff],
CONCAT12(sbox[((uint)(uVar7 >> 0x10) & 0xffff ^ uVar2) & 0xff],
CONCAT11(sbox[((uint)(uVar7 >> 8) & 0xffffff ^ uVar2) & 0xff
],sbox[(uVar2 ^ (uint)uVar7) & 0xff])))) +
((ulong)(byte)sbox[((byte)(uVar7 >> 0x38) ^ uVar2) & 0xff] << 0x39 |
(ulong)(byte)sbox[((ushort)(uVar7 >> 0x30) ^ uVar2) & 0xff] << 0x31) + uVar4) % uVar3;
uVar6 = uVar6 + 1;
uVar4 = uVar5;
} while (uVar6 <= param_1);
uVar4 = uVar3;
if ((param_1 & 1) != 0) {
uVar4 = uVar5;
uVar5 = uVar3;
}
}
return uVar4 * param_2 + uVar5;
}
| |
36,235 | LefDefParser::defiPartition::addPin(char const*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiPartition.cpp | void defiPartition::addPin(const char* name) {
int len;
int i;
char** newp;
if (numPins_ >= pinsAllocated_) {
pinsAllocated_ = pinsAllocated_ ? 2 * pinsAllocated_ : 8;
newp = (char**) malloc(sizeof(char*) * pinsAllocated_);
for (i = 0; i < numPins_; i++)
newp[i] = pins_[i];
if (pins_) free((char*)(pins_));
pins_ = newp;
}
len = strlen(name) + 1;
pins_[numPins_] = (char*)malloc(len);
strcpy(pins_[numPins_], defData->DEFCASE(name));
numPins_ += 1;
} | O0 | cpp | LefDefParser::defiPartition::addPin(char const*):
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movl 0x48(%rcx), %eax
cmpl 0x4c(%rcx), %eax
jl 0x4b9f3
movq 0x10(%rsp), %rax
cmpl $0x0, 0x4c(%rax)
je 0x4b95f
movq 0x10(%rsp), %rax
movl 0x4c(%rax), %eax
shll %eax
movl %eax, 0xc(%rsp)
jmp 0x4b96a
movl $0x8, %eax
movl %eax, 0xc(%rsp)
jmp 0x4b96a
movq 0x10(%rsp), %rax
movl 0xc(%rsp), %ecx
movl %ecx, 0x4c(%rax)
movslq 0x4c(%rax), %rdi
shlq $0x3, %rdi
callq 0x72d0
movq %rax, 0x18(%rsp)
movl $0x0, 0x20(%rsp)
movq 0x10(%rsp), %rcx
movl 0x20(%rsp), %eax
cmpl 0x48(%rcx), %eax
jge 0x4b9cb
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rax
movslq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rsp), %rax
movslq 0x20(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movl 0x20(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x20(%rsp)
jmp 0x4b990
movq 0x10(%rsp), %rax
cmpq $0x0, 0x50(%rax)
je 0x4b9e5
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0x72a0
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rcx, 0x50(%rax)
movq 0x28(%rsp), %rdi
callq 0x70e0
addq $0x1, %rax
movl %eax, 0x24(%rsp)
movslq 0x24(%rsp), %rdi
callq 0x72d0
movq %rax, %rsi
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rcx
movslq 0x48(%rax), %rdx
movq %rsi, (%rcx,%rdx,8)
movq 0x50(%rax), %rcx
movslq 0x48(%rax), %rdx
movq (%rcx,%rdx,8), %rcx
movq %rcx, (%rsp)
movq 0xc0(%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x250b0
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x7220
movq 0x10(%rsp), %rax
movl 0x48(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x48(%rax)
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN12LefDefParser13defiPartition6addPinEPKc:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_10], rsi
mov rcx, [rsp+38h+var_8]
mov [rsp+38h+var_28], rcx
mov eax, [rcx+48h]
cmp eax, [rcx+4Ch]
jl loc_4B9F3
mov rax, [rsp+38h+var_28]
cmp dword ptr [rax+4Ch], 0
jz short loc_4B95F
mov rax, [rsp+38h+var_28]
mov eax, [rax+4Ch]
shl eax, 1
mov [rsp+38h+var_2C], eax
jmp short loc_4B96A
loc_4B95F:
mov eax, 8
mov [rsp+38h+var_2C], eax
jmp short $+2
loc_4B96A:
mov rax, [rsp+38h+var_28]
mov ecx, [rsp+38h+var_2C]
mov [rax+4Ch], ecx
movsxd rdi, dword ptr [rax+4Ch]
shl rdi, 3
call _malloc
mov [rsp+38h+var_20], rax
mov [rsp+38h+var_18], 0
loc_4B990:
mov rcx, [rsp+38h+var_28]
mov eax, [rsp+38h+var_18]
cmp eax, [rcx+48h]
jge short loc_4B9CB
mov rax, [rsp+38h+var_28]
mov rax, [rax+50h]
movsxd rcx, [rsp+38h+var_18]
mov rdx, [rax+rcx*8]
mov rax, [rsp+38h+var_20]
movsxd rcx, [rsp+38h+var_18]
mov [rax+rcx*8], rdx
mov eax, [rsp+38h+var_18]
add eax, 1
mov [rsp+38h+var_18], eax
jmp short loc_4B990
loc_4B9CB:
mov rax, [rsp+38h+var_28]
cmp qword ptr [rax+50h], 0
jz short loc_4B9E5
mov rax, [rsp+38h+var_28]
mov rdi, [rax+50h]
call _free
loc_4B9E5:
mov rax, [rsp+38h+var_28]
mov rcx, [rsp+38h+var_20]
mov [rax+50h], rcx
loc_4B9F3:
mov rdi, [rsp+38h+var_10]
call _strlen
add rax, 1
mov [rsp+38h+var_14], eax
movsxd rdi, [rsp+38h+var_14]
call _malloc
mov rsi, rax
mov rax, [rsp+38h+var_28]
mov rcx, [rax+50h]
movsxd rdx, dword ptr [rax+48h]
mov [rcx+rdx*8], rsi
mov rcx, [rax+50h]
movsxd rdx, dword ptr [rax+48h]
mov rcx, [rcx+rdx*8]
mov [rsp+38h+var_38], rcx
mov rdi, [rax+0C0h]; this
mov rsi, [rsp+38h+var_10]; char *
call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*)
mov rdi, [rsp+38h+var_38]
mov rsi, rax
call _strcpy
mov rax, [rsp+38h+var_28]
mov ecx, [rax+48h]
add ecx, 1
mov [rax+48h], ecx
add rsp, 38h
retn
| LefDefParser::defiPartition * LefDefParser::defiPartition::addPin(
LefDefParser::defiPartition *this,
const char *a2)
{
const char *v2; // rax
LefDefParser::defiPartition *result; // rax
long long v4; // [rsp+0h] [rbp-38h]
int v5; // [rsp+Ch] [rbp-2Ch]
long long v6; // [rsp+18h] [rbp-20h]
int i; // [rsp+20h] [rbp-18h]
int v8; // [rsp+24h] [rbp-14h]
if ( *((_DWORD *)this + 18) >= *((_DWORD *)this + 19) )
{
if ( *((_DWORD *)this + 19) )
v5 = 2 * *((_DWORD *)this + 19);
else
v5 = 8;
*((_DWORD *)this + 19) = v5;
v6 = malloc(8LL * *((int *)this + 19));
for ( i = 0; i < *((_DWORD *)this + 18); ++i )
*(_QWORD *)(v6 + 8LL * i) = *(_QWORD *)(*((_QWORD *)this + 10) + 8LL * i);
if ( *((_QWORD *)this + 10) )
free(*((_QWORD *)this + 10));
*((_QWORD *)this + 10) = v6;
}
v8 = strlen(a2) + 1;
*(_QWORD *)(*((_QWORD *)this + 10) + 8LL * *((int *)this + 18)) = malloc(v8);
v4 = *(_QWORD *)(*((_QWORD *)this + 10) + 8LL * *((int *)this + 18));
v2 = LefDefParser::defrData::DEFCASE(*((LefDefParser::defrData **)this + 24), a2);
strcpy(v4, v2);
result = this;
++*((_DWORD *)this + 18);
return result;
}
| addPin:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV RCX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x10],RCX
MOV EAX,dword ptr [RCX + 0x48]
CMP EAX,dword ptr [RCX + 0x4c]
JL 0x0014b9f3
MOV RAX,qword ptr [RSP + 0x10]
CMP dword ptr [RAX + 0x4c],0x0
JZ 0x0014b95f
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x4c]
SHL EAX,0x1
MOV dword ptr [RSP + 0xc],EAX
JMP 0x0014b96a
LAB_0014b95f:
MOV EAX,0x8
MOV dword ptr [RSP + 0xc],EAX
JMP 0x0014b96a
LAB_0014b96a:
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RSP + 0xc]
MOV dword ptr [RAX + 0x4c],ECX
MOVSXD RDI,dword ptr [RAX + 0x4c]
SHL RDI,0x3
CALL 0x001072d0
MOV qword ptr [RSP + 0x18],RAX
MOV dword ptr [RSP + 0x20],0x0
LAB_0014b990:
MOV RCX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RSP + 0x20]
CMP EAX,dword ptr [RCX + 0x48]
JGE 0x0014b9cb
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x50]
MOVSXD RCX,dword ptr [RSP + 0x20]
MOV RDX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSP + 0x18]
MOVSXD RCX,dword ptr [RSP + 0x20]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV EAX,dword ptr [RSP + 0x20]
ADD EAX,0x1
MOV dword ptr [RSP + 0x20],EAX
JMP 0x0014b990
LAB_0014b9cb:
MOV RAX,qword ptr [RSP + 0x10]
CMP qword ptr [RAX + 0x50],0x0
JZ 0x0014b9e5
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX + 0x50]
CALL 0x001072a0
LAB_0014b9e5:
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x50],RCX
LAB_0014b9f3:
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001070e0
ADD RAX,0x1
MOV dword ptr [RSP + 0x24],EAX
MOVSXD RDI,dword ptr [RSP + 0x24]
CALL 0x001072d0
MOV RSI,RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RAX + 0x50]
MOVSXD RDX,dword ptr [RAX + 0x48]
MOV qword ptr [RCX + RDX*0x8],RSI
MOV RCX,qword ptr [RAX + 0x50]
MOVSXD RDX,dword ptr [RAX + 0x48]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV qword ptr [RSP],RCX
MOV RDI,qword ptr [RAX + 0xc0]
MOV RSI,qword ptr [RSP + 0x28]
CALL 0x001250b0
MOV RDI,qword ptr [RSP]
MOV RSI,RAX
CALL 0x00107220
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0x48]
ADD ECX,0x1
MOV dword ptr [RAX + 0x48],ECX
ADD RSP,0x38
RET
|
/* LefDefParser::defiPartition::addPin(char const*) */
void __thiscall LefDefParser::defiPartition::addPin(defiPartition *this,char *param_1)
{
char *__dest;
void *pvVar1;
size_t sVar2;
char *__src;
int local_2c;
int local_18;
if (*(int *)(this + 0x4c) <= *(int *)(this + 0x48)) {
if (*(int *)(this + 0x4c) == 0) {
local_2c = 8;
}
else {
local_2c = *(int *)(this + 0x4c) << 1;
}
*(int *)(this + 0x4c) = local_2c;
pvVar1 = malloc((long)*(int *)(this + 0x4c) << 3);
for (local_18 = 0; local_18 < *(int *)(this + 0x48); local_18 = local_18 + 1) {
*(int8 *)((long)pvVar1 + (long)local_18 * 8) =
*(int8 *)(*(long *)(this + 0x50) + (long)local_18 * 8);
}
if (*(long *)(this + 0x50) != 0) {
free(*(void **)(this + 0x50));
}
*(void **)(this + 0x50) = pvVar1;
}
sVar2 = strlen(param_1);
pvVar1 = malloc((long)((int)sVar2 + 1));
*(void **)(*(long *)(this + 0x50) + (long)*(int *)(this + 0x48) * 8) = pvVar1;
__dest = *(char **)(*(long *)(this + 0x50) + (long)*(int *)(this + 0x48) * 8);
__src = (char *)defrData::DEFCASE(*(defrData **)(this + 0xc0),param_1);
strcpy(__dest,__src);
*(int *)(this + 0x48) = *(int *)(this + 0x48) + 1;
return;
}
| |
36,236 | minja::Parser::parseDictionary() | monkey531[P]llama/common/minja.hpp | std::shared_ptr<Expression> parseDictionary() {
if (consumeToken("{").empty()) return nullptr;
std::vector<std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>>> elements;
if (!consumeToken("}").empty()) {
return std::make_shared<DictExpr>(get_location(), std::move(elements));
}
auto parseKeyValuePair = [&]() {
auto key = parseExpression();
if (!key) throw std::runtime_error("Expected key in dictionary");
if (consumeToken(":").empty()) throw std::runtime_error("Expected colon betweek key & value in dictionary");
auto value = parseExpression();
if (!value) throw std::runtime_error("Expected value in dictionary");
elements.emplace_back(std::pair(std::move(key), std::move(value)));
};
parseKeyValuePair();
while (it != end) {
if (!consumeToken(",").empty()) {
parseKeyValuePair();
} else if (!consumeToken("}").empty()) {
return std::make_shared<DictExpr>(get_location(), std::move(elements));
} else {
throw std::runtime_error("Expected comma or closing brace in dictionary");
}
}
throw std::runtime_error("Expected closing brace");
} | O1 | cpp | minja::Parser::parseDictionary():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %r12
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x672f9(%rip), %rsi # 0xf5259
leaq 0x672f3(%rip), %rdx # 0xf525a
movq %rsp, %rdi
callq 0x244b0
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x86a74
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
movq -0x8(%rax), %rbx
cmpq %rax, %rdi
je 0x8dfa3
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8dfbe
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
xorps %xmm0, %xmm0
testq %rbx, %rbx
je 0x8e078
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x6baed(%rip), %rsi # 0xf9ad7
leaq 0x6bae7(%rip), %rdx # 0xf9ad8
callq 0x244b0
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x86a74
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rbx
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8e02c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8e047
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
testq %rbx, %rbx
je 0x8e082
movq %r12, %r13
movq (%r14), %r12
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x8e1d6
movq 0xa2f12(%rip), %rax # 0x130f78
cmpb $0x0, (%rax)
je 0x8e1d1
incl 0x8(%r15)
jmp 0x8e1d6
movups %xmm0, (%r12)
jmp 0x8e2f4
movq %r12, 0x60(%rsp)
leaq 0x68(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x40(%rsp), %rax
movq %rax, 0x8(%rdi)
callq 0x9132e
leaq 0x676af(%rip), %r12 # 0xf5753
movq %rsp, %r13
leaq 0x20(%rsp), %rbp
leaq 0x68(%rsp), %rbx
movq 0x20(%r14), %rax
cmpq 0x18(%r14), %rax
je 0x8e306
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
leaq 0x67680(%rip), %rsi # 0xf5752
movq %r12, %rdx
callq 0x244b0
movq %rbp, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl $0x1, %ecx
callq 0x86a74
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %r15
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8e10e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8e129
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
testq %r15, %r15
je 0x8e13b
movq %rbx, %rdi
callq 0x9132e
jmp 0x8e0b1
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x6b98a(%rip), %rsi # 0xf9ad7
leaq 0x6b984(%rip), %rdx # 0xf9ad8
callq 0x244b0
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x86a74
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rbx
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8e18f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8e1aa
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
testq %rbx, %rbx
je 0x8e338
movq (%r14), %r12
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x8e231
movq 0xa2db2(%rip), %rax # 0x130f78
cmpb $0x0, (%rax)
je 0x8e22c
incl 0x8(%r15)
jmp 0x8e231
lock
incl 0x8(%r15)
movq 0x20(%r14), %rbx
subq 0x10(%r14), %rbx
movl $0x48, %edi
callq 0x1b8b0
leaq 0xa1409(%rip), %rdx # 0x12f5f8
addq $0x10, %rdx
movq %rax, %rcx
addq $0x10, %rcx
leaq 0xa11a7(%rip), %rsi # 0x12f3a8
addq $0x10, %rsi
movabsq $0x100000001, %rdi # imm = 0x100000001
movq %rdi, 0x8(%rax)
movq %rdx, (%rax)
movq %rsi, 0x10(%rax)
movq %r12, 0x18(%rax)
movq %r15, 0x20(%rax)
testq %r15, %r15
movq %r13, %r12
jne 0x8e287
jmp 0x8e29e
lock
incl 0x8(%r15)
movq 0x20(%r14), %rbx
subq 0x10(%r14), %rbx
movl $0x48, %edi
callq 0x1b8b0
leaq 0xa13ae(%rip), %rdx # 0x12f5f8
addq $0x10, %rdx
movq %rax, %rcx
addq $0x10, %rcx
leaq 0xa114c(%rip), %rsi # 0x12f3a8
addq $0x10, %rsi
movabsq $0x100000001, %rdi # imm = 0x100000001
movq %rdi, 0x8(%rax)
movq %rdx, (%rax)
movq %rsi, 0x10(%rax)
movq %r12, 0x18(%rax)
movq %r15, 0x20(%rax)
testq %r15, %r15
movq 0x60(%rsp), %r12
je 0x8e29e
movq 0xa2cea(%rip), %rdx # 0x130f78
cmpb $0x0, (%rdx)
je 0x8e299
incl 0x8(%r15)
jmp 0x8e29e
lock
incl 0x8(%r15)
leaq 0xa13a3(%rip), %rdx # 0x12f648
addq $0x10, %rdx
movq %rbx, 0x28(%rax)
movq %rdx, 0x10(%rax)
movaps 0x40(%rsp), %xmm0
movups %xmm0, 0x30(%rax)
movq 0x50(%rsp), %rdx
movq %rdx, 0x40(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq %rcx, (%r12)
movq %rax, 0x8(%r12)
testq %r15, %r15
je 0x8e2ea
movq %r15, %rdi
callq 0x6fa60
leaq 0x40(%rsp), %rdi
callq 0x91566
movq %r12, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1b450
movq %rax, %r14
leaq 0x6756c(%rip), %rsi # 0xf5886
movq %rax, %rdi
callq 0x1b330
movq 0xa2cbf(%rip), %rsi # 0x130fe8
movq 0xa2c20(%rip), %rdx # 0x130f50
movq %r14, %rdi
callq 0x1bfb0
movl $0x10, %edi
callq 0x1b450
movq %rax, %r14
leaq 0x6750c(%rip), %rsi # 0xf5858
movq %rax, %rdi
callq 0x1b330
jmp 0x8e322
jmp 0x8e399
jmp 0x8e35e
jmp 0x8e3bf
jmp 0x8e3aa
movq %rax, %rbx
testq %r15, %r15
je 0x8e3ad
movq %r15, %rdi
callq 0x6fa60
jmp 0x8e3ad
jmp 0x8e3bf
jmp 0x8e3aa
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8e3b7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0x8e3b7
movq %rax, %rbx
jmp 0x8e3b7
movq %rax, %rbx
movq %r14, %rdi
callq 0x1b670
jmp 0x8e3ad
jmp 0x8e3aa
jmp 0x8e3aa
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x91566
movq %rbx, %rdi
callq 0x1c030
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8e3ad
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0x8e3ad
nop
| _ZN5minja6Parser15parseDictionaryEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r14, rsi
mov r12, rdi
lea rax, [rsp+0A8h+var_98]
mov [rax-10h], rax
lea rsi, asc_F5259; "{"
lea rdx, asc_F5259+1; ""
mov rdi, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0A8h+var_88]
mov rdx, rsp
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rax, [rsp+0A8h+var_78]
mov rdi, [rax-10h]; void *
mov rbx, [rax-8]
cmp rdi, rax
jz short loc_8DFA3
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DFA3:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_8DFBE
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DFBE:
xorps xmm0, xmm0
test rbx, rbx
jz loc_8E078
movaps [rsp+0A8h+var_68], xmm0
mov [rsp+0A8h+var_58], 0
mov rdi, rsp
lea rax, [rsp+0A8h+var_98]
mov [rdi], rax
lea rsi, aT020+7; "}"
lea rdx, aT020+8; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0A8h+var_88]
mov rdx, rsp
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rdi, [rsp+0A8h+var_88]; void *
mov rbx, [rsp+0A8h+var_80]
lea rax, [rsp+0A8h+var_78]
cmp rdi, rax
jz short loc_8E02C
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8E02C:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_8E047
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8E047:
test rbx, rbx
jz short loc_8E082
mov r13, r12
mov r12, [r14]
mov r15, [r14+8]
test r15, r15
jz loc_8E1D6
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz loc_8E1D1
inc dword ptr [r15+8]
jmp loc_8E1D6
loc_8E078:
movups xmmword ptr [r12], xmm0
jmp loc_8E2F4
loc_8E082:
mov [rsp+0A8h+var_48], r12
lea rdi, [rsp+0A8h+var_40]
mov [rdi], r14
lea rax, [rsp+0A8h+var_68]
mov [rdi+8], rax
call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void)
lea r12, asc_F5752+1; ""
mov r13, rsp
lea rbp, [rsp+0A8h+var_88]
lea rbx, [rsp+0A8h+var_40]
loc_8E0B1:
mov rax, [r14+20h]
cmp rax, [r14+18h]
jz loc_8E306
lea rax, [rsp+0A8h+var_98]
mov [rsp+0A8h+var_A8], rax
mov rdi, r13
lea rsi, asc_F5752; ","
mov rdx, r12
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rdi, rbp
mov rsi, r14
mov rdx, r13
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rdi, [rsp+0A8h+var_88]; void *
mov r15, [rsp+0A8h+var_80]
lea rax, [rsp+0A8h+var_78]
cmp rdi, rax
jz short loc_8E10E
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8E10E:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_8E129
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8E129:
test r15, r15
jz short loc_8E13B
mov rdi, rbx
call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void)
jmp loc_8E0B1
loc_8E13B:
mov rdi, rsp
lea rax, [rsp+0A8h+var_98]
mov [rdi], rax
lea rsi, aT020+7; "}"
lea rdx, aT020+8; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0A8h+var_88]
mov rdx, rsp
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rdi, [rsp+0A8h+var_88]; void *
mov rbx, [rsp+0A8h+var_80]
lea rax, [rsp+0A8h+var_78]
cmp rdi, rax
jz short loc_8E18F
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8E18F:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_8E1AA
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8E1AA:
test rbx, rbx
jz loc_8E338
mov r12, [r14]
mov r15, [r14+8]
test r15, r15
jz short loc_8E231
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_8E22C
inc dword ptr [r15+8]
jmp short loc_8E231
loc_8E1D1:
lock inc dword ptr [r15+8]
loc_8E1D6:
mov rbx, [r14+20h]
sub rbx, [r14+10h]
mov edi, 48h ; 'H'; unsigned __int64
call __Znwm; operator new(ulong)
lea rdx, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja8DictExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2>
add rdx, 10h
mov rcx, rax
add rcx, 10h
lea rsi, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rsi, 10h
mov rdi, 100000001h
mov [rax+8], rdi
mov [rax], rdx
mov [rax+10h], rsi
mov [rax+18h], r12
mov [rax+20h], r15
test r15, r15
mov r12, r13
jnz short loc_8E287
jmp short loc_8E29E
loc_8E22C:
lock inc dword ptr [r15+8]
loc_8E231:
mov rbx, [r14+20h]
sub rbx, [r14+10h]
mov edi, 48h ; 'H'; unsigned __int64
call __Znwm; operator new(ulong)
lea rdx, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja8DictExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2>
add rdx, 10h
mov rcx, rax
add rcx, 10h
lea rsi, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rsi, 10h
mov rdi, 100000001h
mov [rax+8], rdi
mov [rax], rdx
mov [rax+10h], rsi
mov [rax+18h], r12
mov [rax+20h], r15
test r15, r15
mov r12, [rsp+0A8h+var_48]
jz short loc_8E29E
loc_8E287:
mov rdx, cs:__libc_single_threaded_ptr
cmp byte ptr [rdx], 0
jz short loc_8E299
inc dword ptr [r15+8]
jmp short loc_8E29E
loc_8E299:
lock inc dword ptr [r15+8]
loc_8E29E:
lea rdx, _ZTVN5minja8DictExprE; `vtable for'minja::DictExpr
add rdx, 10h
mov [rax+28h], rbx
mov [rax+10h], rdx
movaps xmm0, [rsp+0A8h+var_68]
movups xmmword ptr [rax+30h], xmm0
mov rdx, [rsp+0A8h+var_58]
mov [rax+40h], rdx
xorps xmm0, xmm0
movaps [rsp+0A8h+var_68], xmm0
mov [rsp+0A8h+var_58], 0
mov [r12], rcx
mov [r12+8], rax
test r15, r15
jz short loc_8E2EA
mov rdi, r15
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8E2EA:
lea rdi, [rsp+0A8h+var_68]
call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector()
loc_8E2F4:
mov rax, r12
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8E306:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedClosin_5; "Expected closing brace"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_8E322:
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_8E338:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCommaO_0; "Expected comma or closing brace in dict"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_8E322
jmp short loc_8E399
jmp short loc_8E35E
jmp short loc_8E3BF
jmp short loc_8E3AA
loc_8E35E:
mov rbx, rax
test r15, r15
jz short loc_8E3AD
mov rdi, r15
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_8E3AD
jmp short loc_8E3BF
jmp short loc_8E3AA
mov rbx, rax
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_8E3B7
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_8E3B7
mov rbx, rax
jmp short loc_8E3B7
loc_8E399:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_8E3AD
jmp short loc_8E3AA
jmp short $+2
loc_8E3AA:
mov rbx, rax
loc_8E3AD:
lea rdi, [rsp+arg_38]
call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector()
loc_8E3B7:
mov rdi, rbx
call __Unwind_Resume
loc_8E3BF:
mov rbx, rax
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_8E3AD
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_8E3AD
| minja::Parser * minja::Parser::parseDictionary(minja::Parser *this, _QWORD *a2)
{
minja::Parser *v2; // r12
long long v3; // rbx
long long v4; // rbx
long long v5; // r12
volatile signed __int32 *v6; // r15
long long v7; // r15
long long v8; // rbx
long long v9; // r12
long long v10; // rbx
long long v11; // rax
long long v12; // rcx
std::runtime_error *exception; // r14
void *v15[2]; // [rsp+0h] [rbp-A8h] BYREF
_QWORD v16[2]; // [rsp+10h] [rbp-98h] BYREF
void *v17; // [rsp+20h] [rbp-88h] BYREF
long long v18; // [rsp+28h] [rbp-80h]
_QWORD v19[2]; // [rsp+30h] [rbp-78h] BYREF
__int128 v20; // [rsp+40h] [rbp-68h] BYREF
long long v21; // [rsp+50h] [rbp-58h]
minja::Parser *v22; // [rsp+60h] [rbp-48h]
_QWORD *v23; // [rsp+68h] [rbp-40h]
__int128 *v24; // [rsp+70h] [rbp-38h]
v2 = this;
v15[0] = v16;
std::string::_M_construct<char const*>(v15, "{", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u);
v3 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( !v3 )
{
*(_OWORD *)this = 0LL;
return v2;
}
v20 = 0LL;
v21 = 0LL;
v15[0] = v16;
std::string::_M_construct<char const*>(v15, "}", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u);
v4 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( v4 )
{
v5 = *a2;
v6 = (volatile signed __int32 *)a2[1];
if ( v6 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v6 + 2);
else
_InterlockedIncrement(v6 + 2);
}
v10 = a2[4] - a2[2];
v11 = operator new(0x48uLL);
v12 = v11 + 16;
*(_QWORD *)(v11 + 8) = 0x100000001LL;
*(_QWORD *)v11 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_QWORD *)(v11 + 16) = &`vtable for'minja::Expression + 2;
*(_QWORD *)(v11 + 24) = v5;
*(_QWORD *)(v11 + 32) = v6;
v2 = this;
if ( v6 )
goto LABEL_36;
goto LABEL_39;
}
v22 = this;
v23 = a2;
v24 = &v20;
minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0);
while ( 1 )
{
if ( a2[4] == a2[3] )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected closing brace");
goto LABEL_44;
}
v15[0] = v16;
std::string::_M_construct<char const*>(v15, ",", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u);
v7 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( !v7 )
break;
minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0);
}
v15[0] = v16;
std::string::_M_construct<char const*>(v15, "}", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u);
v8 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( !v8 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected comma or closing brace in dictionary");
LABEL_44:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v9 = *a2;
v6 = (volatile signed __int32 *)a2[1];
if ( v6 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v6 + 2);
else
_InterlockedIncrement(v6 + 2);
}
v10 = a2[4] - a2[2];
v11 = operator new(0x48uLL);
v12 = v11 + 16;
*(_QWORD *)(v11 + 8) = 0x100000001LL;
*(_QWORD *)v11 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_QWORD *)(v11 + 16) = &`vtable for'minja::Expression + 2;
*(_QWORD *)(v11 + 24) = v9;
*(_QWORD *)(v11 + 32) = v6;
v2 = v22;
if ( v6 )
{
LABEL_36:
if ( _libc_single_threaded )
++*((_DWORD *)v6 + 2);
else
_InterlockedIncrement(v6 + 2);
}
LABEL_39:
*(_QWORD *)(v11 + 40) = v10;
*(_QWORD *)(v11 + 16) = &`vtable for'minja::DictExpr + 2;
*(_OWORD *)(v11 + 48) = v20;
*(_QWORD *)(v11 + 64) = v21;
v20 = 0LL;
v21 = 0LL;
*(_QWORD *)v2 = v12;
*((_QWORD *)v2 + 1) = v11;
if ( v6 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6);
std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector(&v20);
return v2;
}
| parseDictionary:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R14,RSI
MOV R12,RDI
LEA RAX,[RSP + 0x10]
MOV qword ptr [RAX + -0x10],RAX
LAB_0018df59:
LEA RSI,[0x1f5259]
LEA RDX,[0x1f525a]
MOV RDI,RSP
CALL 0x001244b0
LAB_0018df6f:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x00186a74
LEA RAX,[RSP + 0x30]
MOV RDI,qword ptr [RAX + -0x10]
MOV RBX,qword ptr [RAX + -0x8]
CMP RDI,RAX
JZ 0x0018dfa3
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011b8e0
LAB_0018dfa3:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0018dfbe
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011b8e0
LAB_0018dfbe:
XORPS XMM0,XMM0
TEST RBX,RBX
JZ 0x0018e078
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV qword ptr [RSP + 0x50],0x0
MOV RDI,RSP
LEA RAX,[RSP + 0x10]
MOV qword ptr [RDI],RAX
LAB_0018dfe3:
LEA RSI,[0x1f9ad7]
LEA RDX,[0x1f9ad8]
CALL 0x001244b0
LAB_0018dff6:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x00186a74
MOV RDI,qword ptr [RSP + 0x20]
MOV RBX,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0018e02c
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011b8e0
LAB_0018e02c:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0018e047
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011b8e0
LAB_0018e047:
TEST RBX,RBX
JZ 0x0018e082
MOV R13,R12
MOV R12,qword ptr [R14]
MOV R15,qword ptr [R14 + 0x8]
TEST R15,R15
JZ 0x0018e1d6
MOV RAX,qword ptr [0x00230f78]
CMP byte ptr [RAX],0x0
JZ 0x0018e1d1
INC dword ptr [R15 + 0x8]
JMP 0x0018e1d6
LAB_0018e078:
MOVUPS xmmword ptr [R12],XMM0
JMP 0x0018e2f4
LAB_0018e082:
MOV qword ptr [RSP + 0x60],R12
LEA RDI,[RSP + 0x68]
MOV qword ptr [RDI],R14
LEA RAX,[RSP + 0x40]
MOV qword ptr [RDI + 0x8],RAX
LAB_0018e098:
CALL 0x0019132e
LEA R12,[0x1f5753]
MOV R13,RSP
LEA RBP,[RSP + 0x20]
LEA RBX,[RSP + 0x68]
LAB_0018e0b1:
MOV RAX,qword ptr [R14 + 0x20]
CMP RAX,qword ptr [R14 + 0x18]
JZ 0x0018e306
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP],RAX
LAB_0018e0c8:
MOV RDI,R13
LEA RSI,[0x1f5752]
MOV RDX,R12
CALL 0x001244b0
LAB_0018e0da:
MOV RDI,RBP
MOV RSI,R14
MOV RDX,R13
MOV ECX,0x1
CALL 0x00186a74
MOV RDI,qword ptr [RSP + 0x20]
MOV R15,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0018e10e
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011b8e0
LAB_0018e10e:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0018e129
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011b8e0
LAB_0018e129:
TEST R15,R15
JZ 0x0018e13b
LAB_0018e12e:
MOV RDI,RBX
CALL 0x0019132e
JMP 0x0018e0b1
LAB_0018e13b:
MOV RDI,RSP
LEA RAX,[RSP + 0x10]
MOV qword ptr [RDI],RAX
LAB_0018e146:
LEA RSI,[0x1f9ad7]
LEA RDX,[0x1f9ad8]
CALL 0x001244b0
LAB_0018e159:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x00186a74
MOV RDI,qword ptr [RSP + 0x20]
MOV RBX,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0018e18f
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011b8e0
LAB_0018e18f:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0018e1aa
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011b8e0
LAB_0018e1aa:
TEST RBX,RBX
JZ 0x0018e338
MOV R12,qword ptr [R14]
MOV R15,qword ptr [R14 + 0x8]
TEST R15,R15
JZ 0x0018e231
MOV RAX,qword ptr [0x00230f78]
CMP byte ptr [RAX],0x0
JZ 0x0018e22c
INC dword ptr [R15 + 0x8]
JMP 0x0018e231
LAB_0018e1d1:
INC.LOCK dword ptr [R15 + 0x8]
LAB_0018e1d6:
MOV RBX,qword ptr [R14 + 0x20]
SUB RBX,qword ptr [R14 + 0x10]
LAB_0018e1de:
MOV EDI,0x48
CALL 0x0011b8b0
LEA RDX,[0x22f5f8]
ADD RDX,0x10
MOV RCX,RAX
ADD RCX,0x10
LEA RSI,[0x22f3a8]
ADD RSI,0x10
MOV RDI,0x100000001
MOV qword ptr [RAX + 0x8],RDI
MOV qword ptr [RAX],RDX
MOV qword ptr [RAX + 0x10],RSI
MOV qword ptr [RAX + 0x18],R12
MOV qword ptr [RAX + 0x20],R15
TEST R15,R15
MOV R12,R13
JNZ 0x0018e287
JMP 0x0018e29e
LAB_0018e22c:
INC.LOCK dword ptr [R15 + 0x8]
LAB_0018e231:
MOV RBX,qword ptr [R14 + 0x20]
SUB RBX,qword ptr [R14 + 0x10]
LAB_0018e239:
MOV EDI,0x48
CALL 0x0011b8b0
LAB_0018e243:
LEA RDX,[0x22f5f8]
ADD RDX,0x10
MOV RCX,RAX
ADD RCX,0x10
LEA RSI,[0x22f3a8]
ADD RSI,0x10
MOV RDI,0x100000001
MOV qword ptr [RAX + 0x8],RDI
MOV qword ptr [RAX],RDX
MOV qword ptr [RAX + 0x10],RSI
MOV qword ptr [RAX + 0x18],R12
MOV qword ptr [RAX + 0x20],R15
TEST R15,R15
MOV R12,qword ptr [RSP + 0x60]
JZ 0x0018e29e
LAB_0018e287:
MOV RDX,qword ptr [0x00230f78]
CMP byte ptr [RDX],0x0
JZ 0x0018e299
INC dword ptr [R15 + 0x8]
JMP 0x0018e29e
LAB_0018e299:
INC.LOCK dword ptr [R15 + 0x8]
LAB_0018e29e:
LEA RDX,[0x22f648]
ADD RDX,0x10
MOV qword ptr [RAX + 0x28],RBX
MOV qword ptr [RAX + 0x10],RDX
MOVAPS XMM0,xmmword ptr [RSP + 0x40]
MOVUPS xmmword ptr [RAX + 0x30],XMM0
MOV RDX,qword ptr [RSP + 0x50]
MOV qword ptr [RAX + 0x40],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV qword ptr [RSP + 0x50],0x0
MOV qword ptr [R12],RCX
MOV qword ptr [R12 + 0x8],RAX
TEST R15,R15
JZ 0x0018e2ea
MOV RDI,R15
CALL 0x0016fa60
LAB_0018e2ea:
LEA RDI,[RSP + 0x40]
CALL 0x00191566
LAB_0018e2f4:
MOV RAX,R12
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018e306:
MOV EDI,0x10
CALL 0x0011b450
MOV R14,RAX
LAB_0018e313:
LEA RSI,[0x1f5886]
MOV RDI,RAX
CALL 0x0011b330
LAB_0018e322:
MOV RSI,qword ptr [0x00230fe8]
MOV RDX,qword ptr [0x00230f50]
MOV RDI,R14
CALL 0x0011bfb0
LAB_0018e338:
MOV EDI,0x10
CALL 0x0011b450
MOV R14,RAX
LAB_0018e345:
LEA RSI,[0x1f5858]
MOV RDI,RAX
CALL 0x0011b330
LAB_0018e354:
JMP 0x0018e322
|
/* minja::Parser::parseDictionary() */
int8 * minja::Parser::parseDictionary(void)
{
int8 uVar1;
int8 *puVar2;
runtime_error *this;
int8 *puVar3;
long lVar4;
int8 *in_RSI;
int8 *in_RDI;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00;
long *local_a8 [2];
long local_98 [2];
long *local_88;
long local_80;
long local_78 [2];
int8 local_68;
int8 uStack_60;
int8 local_58;
int8 *local_48;
_lambda___1_ local_40 [8];
int8 *local_38;
local_a8[0] = local_98;
/* try { // try from 0018df59 to 0018df6e has its CatchHandler @ 0018e394 */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f5259,&DAT_001f525a);
/* try { // try from 0018df6f to 0018df83 has its CatchHandler @ 0018e374 */
consumeToken(&local_88);
lVar4 = local_80;
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (lVar4 == 0) {
*in_RDI = 0;
in_RDI[1] = 0;
}
else {
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
local_a8[0] = local_98;
/* try { // try from 0018dfe3 to 0018dff5 has its CatchHandler @ 0018e372 */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f9ad7,&DAT_001f9ad8);
/* try { // try from 0018dff6 to 0018e00a has its CatchHandler @ 0018e370 */
consumeToken(&local_88);
lVar4 = local_80;
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (lVar4 == 0) {
local_38 = &local_68;
local_48 = in_RDI;
/* try { // try from 0018e098 to 0018e09c has its CatchHandler @ 0018e3a6 */
parseDictionary()::{lambda()#1}::operator()(local_40);
do {
if (in_RSI[4] == in_RSI[3]) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018e313 to 0018e321 has its CatchHandler @ 0018e399 */
std::runtime_error::runtime_error(this,"Expected closing brace");
LAB_0018e322:
/* try { // try from 0018e322 to 0018e337 has its CatchHandler @ 0018e3a6 */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00230fe8,PTR__runtime_error_00230f50);
}
local_a8[0] = local_98;
/* try { // try from 0018e0c8 to 0018e0d9 has its CatchHandler @ 0018e3aa */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f5752,&DAT_001f5753);
/* try { // try from 0018e0da to 0018e0ec has its CatchHandler @ 0018e3bf */
consumeToken(&local_88);
lVar4 = local_80;
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (lVar4 == 0) {
local_a8[0] = local_98;
/* try { // try from 0018e146 to 0018e158 has its CatchHandler @ 0018e35c */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f9ad7,&DAT_001f9ad8);
/* try { // try from 0018e159 to 0018e16d has its CatchHandler @ 0018e35a */
consumeToken(&local_88);
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (local_80 == 0) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018e345 to 0018e353 has its CatchHandler @ 0018e356 */
std::runtime_error::runtime_error(this,"Expected comma or closing brace in dictionary");
goto LAB_0018e322;
}
uVar1 = *in_RSI;
this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1];
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_00230f78 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
}
else {
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
}
lVar4 = in_RSI[4] - in_RSI[2];
/* try { // try from 0018e239 to 0018e242 has its CatchHandler @ 0018e358 */
puVar2 = (int8 *)operator_new(0x48);
puVar3 = puVar2 + 2;
puVar2[1] = 0x100000001;
*puVar2 = &PTR___Sp_counted_ptr_inplace_0022f608;
puVar2[2] = &PTR___cxa_pure_virtual_0022f3b8;
puVar2[3] = uVar1;
puVar2[4] = this_00;
in_RDI = local_48;
if (this_00 == (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) goto LAB_0018e29e;
goto LAB_0018e287;
}
/* try { // try from 0018e12e to 0018e135 has its CatchHandler @ 0018e3a8 */
parseDictionary()::{lambda()#1}::operator()(local_40);
} while( true );
}
uVar1 = *in_RSI;
this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1];
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_00230f78 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
}
else {
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
}
lVar4 = in_RSI[4] - in_RSI[2];
/* try { // try from 0018e1de to 0018e1e7 has its CatchHandler @ 0018e35e */
puVar2 = (int8 *)operator_new(0x48);
puVar3 = puVar2 + 2;
puVar2[1] = 0x100000001;
*puVar2 = &PTR___Sp_counted_ptr_inplace_0022f608;
puVar2[2] = &PTR___cxa_pure_virtual_0022f3b8;
puVar2[3] = uVar1;
puVar2[4] = this_00;
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
LAB_0018e287:
if (*PTR___libc_single_threaded_00230f78 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
}
else {
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
}
LAB_0018e29e:
puVar2[5] = lVar4;
puVar2[2] = &PTR_do_evaluate_0022f658;
puVar2[6] = local_68;
puVar2[7] = uStack_60;
puVar2[8] = local_58;
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
*in_RDI = puVar3;
in_RDI[1] = puVar2;
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_00);
}
std::
vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>
::~vector((vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>
*)&local_68);
}
return in_RDI;
}
| |
36,237 | minja::Parser::parseDictionary() | monkey531[P]llama/common/minja.hpp | std::shared_ptr<Expression> parseDictionary() {
if (consumeToken("{").empty()) return nullptr;
std::vector<std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>>> elements;
if (!consumeToken("}").empty()) {
return std::make_shared<DictExpr>(get_location(), std::move(elements));
}
auto parseKeyValuePair = [&]() {
auto key = parseExpression();
if (!key) throw std::runtime_error("Expected key in dictionary");
if (consumeToken(":").empty()) throw std::runtime_error("Expected colon betweek key & value in dictionary");
auto value = parseExpression();
if (!value) throw std::runtime_error("Expected value in dictionary");
elements.emplace_back(std::pair(std::move(key), std::move(value)));
};
parseKeyValuePair();
while (it != end) {
if (!consumeToken(",").empty()) {
parseKeyValuePair();
} else if (!consumeToken("}").empty()) {
return std::make_shared<DictExpr>(get_location(), std::move(elements));
} else {
throw std::runtime_error("Expected comma or closing brace in dictionary");
}
}
throw std::runtime_error("Expected closing brace");
} | O3 | cpp | minja::Parser::parseDictionary():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %r12
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6489b(%rip), %rsi # 0xf2249
leaq 0x64895(%rip), %rdx # 0xf224a
movq %rsp, %rdi
callq 0x24458
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x86636
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
movq -0x8(%rax), %rbx
cmpq %rax, %rdi
je 0x8d9f1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8da0c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
xorps %xmm0, %xmm0
testq %rbx, %rbx
je 0x8dac6
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x6908f(%rip), %rsi # 0xf6ac7
leaq 0x69089(%rip), %rdx # 0xf6ac8
callq 0x24458
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x86636
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rbx
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8da7a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8da95
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
testq %rbx, %rbx
je 0x8dad0
movq %r12, %r13
movq (%r14), %r12
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x8dc24
movq 0xa04c4(%rip), %rax # 0x12df78
cmpb $0x0, (%rax)
je 0x8dc1f
incl 0x8(%r15)
jmp 0x8dc24
movups %xmm0, (%r12)
jmp 0x8dd42
movq %r12, 0x60(%rsp)
leaq 0x68(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x40(%rsp), %rax
movq %rax, 0x8(%rdi)
callq 0x90cf0
leaq 0x64c51(%rip), %r12 # 0xf2743
movq %rsp, %r13
leaq 0x20(%rsp), %rbp
leaq 0x68(%rsp), %rbx
movq 0x20(%r14), %rax
cmpq 0x18(%r14), %rax
je 0x8dd54
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
leaq 0x64c22(%rip), %rsi # 0xf2742
movq %r12, %rdx
callq 0x24458
movq %rbp, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl $0x1, %ecx
callq 0x86636
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %r15
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8db5c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8db77
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
testq %r15, %r15
je 0x8db89
movq %rbx, %rdi
callq 0x90cf0
jmp 0x8daff
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x68f2c(%rip), %rsi # 0xf6ac7
leaq 0x68f26(%rip), %rdx # 0xf6ac8
callq 0x24458
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x86636
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rbx
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8dbdd
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8dbf8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
testq %rbx, %rbx
je 0x8dd86
movq (%r14), %r12
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x8dc7f
movq 0xa0364(%rip), %rax # 0x12df78
cmpb $0x0, (%rax)
je 0x8dc7a
incl 0x8(%r15)
jmp 0x8dc7f
lock
incl 0x8(%r15)
movq 0x20(%r14), %rbx
subq 0x10(%r14), %rbx
movl $0x48, %edi
callq 0x1b8b0
leaq 0x9e9bb(%rip), %rdx # 0x12c5f8
addq $0x10, %rdx
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x9e759(%rip), %rsi # 0x12c3a8
addq $0x10, %rsi
movabsq $0x100000001, %rdi # imm = 0x100000001
movq %rdi, 0x8(%rax)
movq %rdx, (%rax)
movq %rsi, 0x10(%rax)
movq %r12, 0x18(%rax)
movq %r15, 0x20(%rax)
testq %r15, %r15
movq %r13, %r12
jne 0x8dcd5
jmp 0x8dcec
lock
incl 0x8(%r15)
movq 0x20(%r14), %rbx
subq 0x10(%r14), %rbx
movl $0x48, %edi
callq 0x1b8b0
leaq 0x9e960(%rip), %rdx # 0x12c5f8
addq $0x10, %rdx
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x9e6fe(%rip), %rsi # 0x12c3a8
addq $0x10, %rsi
movabsq $0x100000001, %rdi # imm = 0x100000001
movq %rdi, 0x8(%rax)
movq %rdx, (%rax)
movq %rsi, 0x10(%rax)
movq %r12, 0x18(%rax)
movq %r15, 0x20(%rax)
testq %r15, %r15
movq 0x60(%rsp), %r12
je 0x8dcec
movq 0xa029c(%rip), %rdx # 0x12df78
cmpb $0x0, (%rdx)
je 0x8dce7
incl 0x8(%r15)
jmp 0x8dcec
lock
incl 0x8(%r15)
leaq 0x9e955(%rip), %rdx # 0x12c648
addq $0x10, %rdx
movq %rbx, 0x28(%rax)
movq %rdx, 0x10(%rax)
movaps 0x40(%rsp), %xmm0
movups %xmm0, 0x30(%rax)
movq 0x50(%rsp), %rdx
movq %rdx, 0x40(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq %rcx, (%r12)
movq %rax, 0x8(%r12)
testq %r15, %r15
je 0x8dd38
movq %r15, %rdi
callq 0x701e6
leaq 0x40(%rsp), %rdi
callq 0x90f28
movq %r12, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1b450
movq %rax, %r14
leaq 0x64b0e(%rip), %rsi # 0xf2876
movq %rax, %rdi
callq 0x1b330
movq 0xa0271(%rip), %rsi # 0x12dfe8
movq 0xa01d2(%rip), %rdx # 0x12df50
movq %r14, %rdi
callq 0x1bfb0
movl $0x10, %edi
callq 0x1b450
movq %rax, %r14
leaq 0x64aae(%rip), %rsi # 0xf2848
movq %rax, %rdi
callq 0x1b330
jmp 0x8dd70
jmp 0x8dde7
jmp 0x8ddac
jmp 0x8de0d
jmp 0x8ddf8
movq %rax, %rbx
testq %r15, %r15
je 0x8ddfb
movq %r15, %rdi
callq 0x701e6
jmp 0x8ddfb
jmp 0x8de0d
jmp 0x8ddf8
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8de05
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0x8de05
movq %rax, %rbx
jmp 0x8de05
movq %rax, %rbx
movq %r14, %rdi
callq 0x1b670
jmp 0x8ddfb
jmp 0x8ddf8
jmp 0x8ddf8
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x90f28
movq %rbx, %rdi
callq 0x1c030
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8ddfb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0x8ddfb
nop
| _ZN5minja6Parser15parseDictionaryEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r14, rsi
mov r12, rdi
lea rax, [rsp+0A8h+var_98]
mov [rax-10h], rax
lea rsi, asc_F2249; "{"
lea rdx, asc_F2249+1; ""
mov rdi, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0A8h+var_88]
mov rdx, rsp
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rax, [rsp+0A8h+var_78]
mov rdi, [rax-10h]; void *
mov rbx, [rax-8]
cmp rdi, rax
jz short loc_8D9F1
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8D9F1:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_8DA0C
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DA0C:
xorps xmm0, xmm0
test rbx, rbx
jz loc_8DAC6
movaps [rsp+0A8h+var_68], xmm0
mov [rsp+0A8h+var_58], 0
mov rdi, rsp
lea rax, [rsp+0A8h+var_98]
mov [rdi], rax
lea rsi, aT020+7; "}"
lea rdx, aT020+8; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0A8h+var_88]
mov rdx, rsp
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rdi, [rsp+0A8h+var_88]; void *
mov rbx, [rsp+0A8h+var_80]
lea rax, [rsp+0A8h+var_78]
cmp rdi, rax
jz short loc_8DA7A
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DA7A:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_8DA95
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DA95:
test rbx, rbx
jz short loc_8DAD0
mov r13, r12
mov r12, [r14]
mov r15, [r14+8]
test r15, r15
jz loc_8DC24
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz loc_8DC1F
inc dword ptr [r15+8]
jmp loc_8DC24
loc_8DAC6:
movups xmmword ptr [r12], xmm0
jmp loc_8DD42
loc_8DAD0:
mov [rsp+0A8h+var_48], r12
lea rdi, [rsp+0A8h+var_40]
mov [rdi], r14
lea rax, [rsp+0A8h+var_68]
mov [rdi+8], rax
call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void)
lea r12, asc_F2742+1; ""
mov r13, rsp
lea rbp, [rsp+0A8h+var_88]
lea rbx, [rsp+0A8h+var_40]
loc_8DAFF:
mov rax, [r14+20h]
cmp rax, [r14+18h]
jz loc_8DD54
lea rax, [rsp+0A8h+var_98]
mov [rsp+0A8h+var_A8], rax
mov rdi, r13
lea rsi, asc_F2742; ","
mov rdx, r12
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rdi, rbp
mov rsi, r14
mov rdx, r13
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rdi, [rsp+0A8h+var_88]; void *
mov r15, [rsp+0A8h+var_80]
lea rax, [rsp+0A8h+var_78]
cmp rdi, rax
jz short loc_8DB5C
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DB5C:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_8DB77
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DB77:
test r15, r15
jz short loc_8DB89
mov rdi, rbx
call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void)
jmp loc_8DAFF
loc_8DB89:
mov rdi, rsp
lea rax, [rsp+0A8h+var_98]
mov [rdi], rax
lea rsi, aT020+7; "}"
lea rdx, aT020+8; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0A8h+var_88]
mov rdx, rsp
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rdi, [rsp+0A8h+var_88]; void *
mov rbx, [rsp+0A8h+var_80]
lea rax, [rsp+0A8h+var_78]
cmp rdi, rax
jz short loc_8DBDD
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DBDD:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_8DBF8
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DBF8:
test rbx, rbx
jz loc_8DD86
mov r12, [r14]
mov r15, [r14+8]
test r15, r15
jz short loc_8DC7F
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_8DC7A
inc dword ptr [r15+8]
jmp short loc_8DC7F
loc_8DC1F:
lock inc dword ptr [r15+8]
loc_8DC24:
mov rbx, [r14+20h]
sub rbx, [r14+10h]
mov edi, 48h ; 'H'; unsigned __int64
call __Znwm; operator new(ulong)
lea rdx, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja8DictExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2>
add rdx, 10h
mov rcx, rax
add rcx, 10h
lea rsi, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rsi, 10h
mov rdi, 100000001h
mov [rax+8], rdi
mov [rax], rdx
mov [rax+10h], rsi
mov [rax+18h], r12
mov [rax+20h], r15
test r15, r15
mov r12, r13
jnz short loc_8DCD5
jmp short loc_8DCEC
loc_8DC7A:
lock inc dword ptr [r15+8]
loc_8DC7F:
mov rbx, [r14+20h]
sub rbx, [r14+10h]
mov edi, 48h ; 'H'; unsigned __int64
call __Znwm; operator new(ulong)
lea rdx, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja8DictExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2>
add rdx, 10h
mov rcx, rax
add rcx, 10h
lea rsi, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rsi, 10h
mov rdi, 100000001h
mov [rax+8], rdi
mov [rax], rdx
mov [rax+10h], rsi
mov [rax+18h], r12
mov [rax+20h], r15
test r15, r15
mov r12, [rsp+0A8h+var_48]
jz short loc_8DCEC
loc_8DCD5:
mov rdx, cs:__libc_single_threaded_ptr
cmp byte ptr [rdx], 0
jz short loc_8DCE7
inc dword ptr [r15+8]
jmp short loc_8DCEC
loc_8DCE7:
lock inc dword ptr [r15+8]
loc_8DCEC:
lea rdx, _ZTVN5minja8DictExprE; `vtable for'minja::DictExpr
add rdx, 10h
mov [rax+28h], rbx
mov [rax+10h], rdx
movaps xmm0, [rsp+0A8h+var_68]
movups xmmword ptr [rax+30h], xmm0
mov rdx, [rsp+0A8h+var_58]
mov [rax+40h], rdx
xorps xmm0, xmm0
movaps [rsp+0A8h+var_68], xmm0
mov [rsp+0A8h+var_58], 0
mov [r12], rcx
mov [r12+8], rax
test r15, r15
jz short loc_8DD38
mov rdi, r15
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8DD38:
lea rdi, [rsp+0A8h+var_68]
call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector()
loc_8DD42:
mov rax, r12
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8DD54:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedClosin_5; "Expected closing brace"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_8DD70:
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_8DD86:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCommaO_0; "Expected comma or closing brace in dict"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_8DD70
jmp short loc_8DDE7
jmp short loc_8DDAC
jmp short loc_8DE0D
jmp short loc_8DDF8
loc_8DDAC:
mov rbx, rax
test r15, r15
jz short loc_8DDFB
mov rdi, r15
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_8DDFB
jmp short loc_8DE0D
jmp short loc_8DDF8
mov rbx, rax
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_8DE05
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_8DE05
mov rbx, rax
jmp short loc_8DE05
loc_8DDE7:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_8DDFB
jmp short loc_8DDF8
jmp short $+2
loc_8DDF8:
mov rbx, rax
loc_8DDFB:
lea rdi, [rsp+arg_38]
call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector()
loc_8DE05:
mov rdi, rbx
call __Unwind_Resume
loc_8DE0D:
mov rbx, rax
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_8DDFB
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_8DDFB
| minja::Parser * minja::Parser::parseDictionary(minja::Parser *this, _QWORD *a2)
{
minja::Parser *v2; // r12
long long v3; // rbx
long long v4; // rbx
long long v5; // r12
volatile signed __int32 *v6; // r15
long long v7; // r15
long long v8; // rbx
long long v9; // r12
long long v10; // rbx
long long v11; // rax
long long v12; // rcx
std::runtime_error *exception; // r14
void *v15[2]; // [rsp+0h] [rbp-A8h] BYREF
_QWORD v16[2]; // [rsp+10h] [rbp-98h] BYREF
void *v17; // [rsp+20h] [rbp-88h] BYREF
long long v18; // [rsp+28h] [rbp-80h]
_QWORD v19[2]; // [rsp+30h] [rbp-78h] BYREF
__int128 v20; // [rsp+40h] [rbp-68h] BYREF
long long v21; // [rsp+50h] [rbp-58h]
minja::Parser *v22; // [rsp+60h] [rbp-48h]
_QWORD *v23; // [rsp+68h] [rbp-40h]
__int128 *v24; // [rsp+70h] [rbp-38h]
v2 = this;
v15[0] = v16;
std::string::_M_construct<char const*>((long long)v15, "{", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u);
v3 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( !v3 )
{
*(_OWORD *)this = 0LL;
return v2;
}
v20 = 0LL;
v21 = 0LL;
v15[0] = v16;
std::string::_M_construct<char const*>((long long)v15, "}", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u);
v4 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( v4 )
{
v5 = *a2;
v6 = (volatile signed __int32 *)a2[1];
if ( v6 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v6 + 2);
else
_InterlockedIncrement(v6 + 2);
}
v10 = a2[4] - a2[2];
v11 = operator new(0x48uLL);
v12 = v11 + 16;
*(_QWORD *)(v11 + 8) = 0x100000001LL;
*(_QWORD *)v11 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_QWORD *)(v11 + 16) = &`vtable for'minja::Expression + 2;
*(_QWORD *)(v11 + 24) = v5;
*(_QWORD *)(v11 + 32) = v6;
v2 = this;
if ( v6 )
goto LABEL_36;
goto LABEL_39;
}
v22 = this;
v23 = a2;
v24 = &v20;
minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0);
while ( 1 )
{
if ( a2[4] == a2[3] )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected closing brace");
goto LABEL_44;
}
v15[0] = v16;
std::string::_M_construct<char const*>((long long)v15, ",", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u);
v7 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( !v7 )
break;
minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0);
}
v15[0] = v16;
std::string::_M_construct<char const*>((long long)v15, "}", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u);
v8 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( !v8 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected comma or closing brace in dictionary");
LABEL_44:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v9 = *a2;
v6 = (volatile signed __int32 *)a2[1];
if ( v6 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v6 + 2);
else
_InterlockedIncrement(v6 + 2);
}
v10 = a2[4] - a2[2];
v11 = operator new(0x48uLL);
v12 = v11 + 16;
*(_QWORD *)(v11 + 8) = 0x100000001LL;
*(_QWORD *)v11 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_QWORD *)(v11 + 16) = &`vtable for'minja::Expression + 2;
*(_QWORD *)(v11 + 24) = v9;
*(_QWORD *)(v11 + 32) = v6;
v2 = v22;
if ( v6 )
{
LABEL_36:
if ( _libc_single_threaded )
++*((_DWORD *)v6 + 2);
else
_InterlockedIncrement(v6 + 2);
}
LABEL_39:
*(_QWORD *)(v11 + 40) = v10;
*(_QWORD *)(v11 + 16) = &`vtable for'minja::DictExpr + 2;
*(_OWORD *)(v11 + 48) = v20;
*(_QWORD *)(v11 + 64) = v21;
v20 = 0LL;
v21 = 0LL;
*(_QWORD *)v2 = v12;
*((_QWORD *)v2 + 1) = v11;
if ( v6 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6);
std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector(&v20);
return v2;
}
| parseDictionary:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R14,RSI
MOV R12,RDI
LEA RAX,[RSP + 0x10]
MOV qword ptr [RAX + -0x10],RAX
LAB_0018d9a7:
LEA RSI,[0x1f2249]
LEA RDX,[0x1f224a]
MOV RDI,RSP
CALL 0x00124458
LAB_0018d9bd:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x00186636
LEA RAX,[RSP + 0x30]
MOV RDI,qword ptr [RAX + -0x10]
MOV RBX,qword ptr [RAX + -0x8]
CMP RDI,RAX
JZ 0x0018d9f1
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011b8e0
LAB_0018d9f1:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0018da0c
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011b8e0
LAB_0018da0c:
XORPS XMM0,XMM0
TEST RBX,RBX
JZ 0x0018dac6
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV qword ptr [RSP + 0x50],0x0
MOV RDI,RSP
LEA RAX,[RSP + 0x10]
MOV qword ptr [RDI],RAX
LAB_0018da31:
LEA RSI,[0x1f6ac7]
LEA RDX,[0x1f6ac8]
CALL 0x00124458
LAB_0018da44:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x00186636
MOV RDI,qword ptr [RSP + 0x20]
MOV RBX,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0018da7a
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011b8e0
LAB_0018da7a:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0018da95
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011b8e0
LAB_0018da95:
TEST RBX,RBX
JZ 0x0018dad0
MOV R13,R12
MOV R12,qword ptr [R14]
MOV R15,qword ptr [R14 + 0x8]
TEST R15,R15
JZ 0x0018dc24
MOV RAX,qword ptr [0x0022df78]
CMP byte ptr [RAX],0x0
JZ 0x0018dc1f
INC dword ptr [R15 + 0x8]
JMP 0x0018dc24
LAB_0018dac6:
MOVUPS xmmword ptr [R12],XMM0
JMP 0x0018dd42
LAB_0018dad0:
MOV qword ptr [RSP + 0x60],R12
LEA RDI,[RSP + 0x68]
MOV qword ptr [RDI],R14
LEA RAX,[RSP + 0x40]
MOV qword ptr [RDI + 0x8],RAX
LAB_0018dae6:
CALL 0x00190cf0
LEA R12,[0x1f2743]
MOV R13,RSP
LEA RBP,[RSP + 0x20]
LEA RBX,[RSP + 0x68]
LAB_0018daff:
MOV RAX,qword ptr [R14 + 0x20]
CMP RAX,qword ptr [R14 + 0x18]
JZ 0x0018dd54
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP],RAX
LAB_0018db16:
MOV RDI,R13
LEA RSI,[0x1f2742]
MOV RDX,R12
CALL 0x00124458
LAB_0018db28:
MOV RDI,RBP
MOV RSI,R14
MOV RDX,R13
MOV ECX,0x1
CALL 0x00186636
MOV RDI,qword ptr [RSP + 0x20]
MOV R15,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0018db5c
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011b8e0
LAB_0018db5c:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0018db77
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011b8e0
LAB_0018db77:
TEST R15,R15
JZ 0x0018db89
LAB_0018db7c:
MOV RDI,RBX
CALL 0x00190cf0
JMP 0x0018daff
LAB_0018db89:
MOV RDI,RSP
LEA RAX,[RSP + 0x10]
MOV qword ptr [RDI],RAX
LAB_0018db94:
LEA RSI,[0x1f6ac7]
LEA RDX,[0x1f6ac8]
CALL 0x00124458
LAB_0018dba7:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x00186636
MOV RDI,qword ptr [RSP + 0x20]
MOV RBX,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0018dbdd
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011b8e0
LAB_0018dbdd:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0018dbf8
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011b8e0
LAB_0018dbf8:
TEST RBX,RBX
JZ 0x0018dd86
MOV R12,qword ptr [R14]
MOV R15,qword ptr [R14 + 0x8]
TEST R15,R15
JZ 0x0018dc7f
MOV RAX,qword ptr [0x0022df78]
CMP byte ptr [RAX],0x0
JZ 0x0018dc7a
INC dword ptr [R15 + 0x8]
JMP 0x0018dc7f
LAB_0018dc1f:
INC.LOCK dword ptr [R15 + 0x8]
LAB_0018dc24:
MOV RBX,qword ptr [R14 + 0x20]
SUB RBX,qword ptr [R14 + 0x10]
LAB_0018dc2c:
MOV EDI,0x48
CALL 0x0011b8b0
LEA RDX,[0x22c5f8]
ADD RDX,0x10
MOV RCX,RAX
ADD RCX,0x10
LEA RSI,[0x22c3a8]
ADD RSI,0x10
MOV RDI,0x100000001
MOV qword ptr [RAX + 0x8],RDI
MOV qword ptr [RAX],RDX
MOV qword ptr [RAX + 0x10],RSI
MOV qword ptr [RAX + 0x18],R12
MOV qword ptr [RAX + 0x20],R15
TEST R15,R15
MOV R12,R13
JNZ 0x0018dcd5
JMP 0x0018dcec
LAB_0018dc7a:
INC.LOCK dword ptr [R15 + 0x8]
LAB_0018dc7f:
MOV RBX,qword ptr [R14 + 0x20]
SUB RBX,qword ptr [R14 + 0x10]
LAB_0018dc87:
MOV EDI,0x48
CALL 0x0011b8b0
LAB_0018dc91:
LEA RDX,[0x22c5f8]
ADD RDX,0x10
MOV RCX,RAX
ADD RCX,0x10
LEA RSI,[0x22c3a8]
ADD RSI,0x10
MOV RDI,0x100000001
MOV qword ptr [RAX + 0x8],RDI
MOV qword ptr [RAX],RDX
MOV qword ptr [RAX + 0x10],RSI
MOV qword ptr [RAX + 0x18],R12
MOV qword ptr [RAX + 0x20],R15
TEST R15,R15
MOV R12,qword ptr [RSP + 0x60]
JZ 0x0018dcec
LAB_0018dcd5:
MOV RDX,qword ptr [0x0022df78]
CMP byte ptr [RDX],0x0
JZ 0x0018dce7
INC dword ptr [R15 + 0x8]
JMP 0x0018dcec
LAB_0018dce7:
INC.LOCK dword ptr [R15 + 0x8]
LAB_0018dcec:
LEA RDX,[0x22c648]
ADD RDX,0x10
MOV qword ptr [RAX + 0x28],RBX
MOV qword ptr [RAX + 0x10],RDX
MOVAPS XMM0,xmmword ptr [RSP + 0x40]
MOVUPS xmmword ptr [RAX + 0x30],XMM0
MOV RDX,qword ptr [RSP + 0x50]
MOV qword ptr [RAX + 0x40],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV qword ptr [RSP + 0x50],0x0
MOV qword ptr [R12],RCX
MOV qword ptr [R12 + 0x8],RAX
TEST R15,R15
JZ 0x0018dd38
MOV RDI,R15
CALL 0x001701e6
LAB_0018dd38:
LEA RDI,[RSP + 0x40]
CALL 0x00190f28
LAB_0018dd42:
MOV RAX,R12
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018dd54:
MOV EDI,0x10
CALL 0x0011b450
MOV R14,RAX
LAB_0018dd61:
LEA RSI,[0x1f2876]
MOV RDI,RAX
CALL 0x0011b330
LAB_0018dd70:
MOV RSI,qword ptr [0x0022dfe8]
MOV RDX,qword ptr [0x0022df50]
MOV RDI,R14
CALL 0x0011bfb0
LAB_0018dd86:
MOV EDI,0x10
CALL 0x0011b450
MOV R14,RAX
LAB_0018dd93:
LEA RSI,[0x1f2848]
MOV RDI,RAX
CALL 0x0011b330
LAB_0018dda2:
JMP 0x0018dd70
|
/* minja::Parser::parseDictionary() */
int8 * minja::Parser::parseDictionary(void)
{
int8 uVar1;
int8 *puVar2;
runtime_error *this;
int8 *puVar3;
long lVar4;
int8 *in_RSI;
int8 *in_RDI;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00;
long *local_a8 [2];
long local_98 [2];
long *local_88;
long local_80;
long local_78 [2];
int8 local_68;
int8 uStack_60;
int8 local_58;
int8 *local_48;
_lambda___1_ local_40 [8];
int8 *local_38;
local_a8[0] = local_98;
/* try { // try from 0018d9a7 to 0018d9bc has its CatchHandler @ 0018dde2 */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f2249,&DAT_001f224a);
/* try { // try from 0018d9bd to 0018d9d1 has its CatchHandler @ 0018ddc2 */
consumeToken(&local_88);
lVar4 = local_80;
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (lVar4 == 0) {
*in_RDI = 0;
in_RDI[1] = 0;
}
else {
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
local_a8[0] = local_98;
/* try { // try from 0018da31 to 0018da43 has its CatchHandler @ 0018ddc0 */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f6ac7,&DAT_001f6ac8);
/* try { // try from 0018da44 to 0018da58 has its CatchHandler @ 0018ddbe */
consumeToken(&local_88);
lVar4 = local_80;
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (lVar4 == 0) {
local_38 = &local_68;
local_48 = in_RDI;
/* try { // try from 0018dae6 to 0018daea has its CatchHandler @ 0018ddf4 */
parseDictionary()::{lambda()#1}::operator()(local_40);
do {
if (in_RSI[4] == in_RSI[3]) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018dd61 to 0018dd6f has its CatchHandler @ 0018dde7 */
std::runtime_error::runtime_error(this,"Expected closing brace");
LAB_0018dd70:
/* try { // try from 0018dd70 to 0018dd85 has its CatchHandler @ 0018ddf4 */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_0022dfe8,PTR__runtime_error_0022df50);
}
local_a8[0] = local_98;
/* try { // try from 0018db16 to 0018db27 has its CatchHandler @ 0018ddf8 */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f2742,&DAT_001f2743);
/* try { // try from 0018db28 to 0018db3a has its CatchHandler @ 0018de0d */
consumeToken(&local_88);
lVar4 = local_80;
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (lVar4 == 0) {
local_a8[0] = local_98;
/* try { // try from 0018db94 to 0018dba6 has its CatchHandler @ 0018ddaa */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f6ac7,&DAT_001f6ac8);
/* try { // try from 0018dba7 to 0018dbbb has its CatchHandler @ 0018dda8 */
consumeToken(&local_88);
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (local_80 == 0) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018dd93 to 0018dda1 has its CatchHandler @ 0018dda4 */
std::runtime_error::runtime_error(this,"Expected comma or closing brace in dictionary");
goto LAB_0018dd70;
}
uVar1 = *in_RSI;
this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1];
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_0022df78 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
}
else {
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
}
lVar4 = in_RSI[4] - in_RSI[2];
/* try { // try from 0018dc87 to 0018dc90 has its CatchHandler @ 0018dda6 */
puVar2 = (int8 *)operator_new(0x48);
puVar3 = puVar2 + 2;
puVar2[1] = 0x100000001;
*puVar2 = &PTR___Sp_counted_ptr_inplace_0022c608;
puVar2[2] = &PTR___cxa_pure_virtual_0022c3b8;
puVar2[3] = uVar1;
puVar2[4] = this_00;
in_RDI = local_48;
if (this_00 == (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) goto LAB_0018dcec;
goto LAB_0018dcd5;
}
/* try { // try from 0018db7c to 0018db83 has its CatchHandler @ 0018ddf6 */
parseDictionary()::{lambda()#1}::operator()(local_40);
} while( true );
}
uVar1 = *in_RSI;
this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1];
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_0022df78 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
}
else {
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
}
lVar4 = in_RSI[4] - in_RSI[2];
/* try { // try from 0018dc2c to 0018dc35 has its CatchHandler @ 0018ddac */
puVar2 = (int8 *)operator_new(0x48);
puVar3 = puVar2 + 2;
puVar2[1] = 0x100000001;
*puVar2 = &PTR___Sp_counted_ptr_inplace_0022c608;
puVar2[2] = &PTR___cxa_pure_virtual_0022c3b8;
puVar2[3] = uVar1;
puVar2[4] = this_00;
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
LAB_0018dcd5:
if (*PTR___libc_single_threaded_0022df78 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
}
else {
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
}
LAB_0018dcec:
puVar2[5] = lVar4;
puVar2[2] = &PTR_do_evaluate_0022c658;
puVar2[6] = local_68;
puVar2[7] = uStack_60;
puVar2[8] = local_58;
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
*in_RDI = puVar3;
in_RDI[1] = puVar2;
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_00);
}
std::
vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>
::~vector((vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>
*)&local_68);
}
return in_RDI;
}
| |
36,238 | linenoiseHistorySave | ericcurtin[P]linenoise/linenoise.cpp | int linenoiseHistorySave(const char * filename) {
mode_t old_umask = umask(S_IXUSR | S_IRWXG | S_IRWXO);
File file;
file.open(filename, "w");
umask(old_umask);
if (file.file == NULL) {
return -1;
}
chmod(filename, S_IRUSR | S_IWUSR);
for (int j = 0; j < history_len; ++j) {
fprintf(file.file, "%s\n", history[j]);
}
return 0;
} | O1 | cpp | linenoiseHistorySave:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movl $0x7f, %edi
callq 0x2310
movl %eax, %ebp
movq $0x0, 0x8(%rsp)
movl $0xffffffff, 0x10(%rsp) # imm = 0xFFFFFFFF
leaq 0x18(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rbx, %rsi
callq 0x491a
leaq 0x28(%rsp), %r14
movq -0x10(%r14), %rdi
leaq 0x5b09(%rip), %rsi # 0x989d
callq 0x21b0
movq %rax, 0x8(%rsp)
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x3db4
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2160
movl %ebp, %edi
callq 0x2310
cmpq $0x0, 0x8(%rsp)
je 0x3e10
movq %rbx, %rdi
movl $0x180, %esi # imm = 0x180
callq 0x2120
cmpl $0x0, 0x8461(%rip) # 0xc238
jle 0x3e17
xorl %ebx, %ebx
leaq 0x5abd(%rip), %r14 # 0x989f
xorl %r15d, %r15d
movq 0x8(%rsp), %rdi
movq 0x843f(%rip), %rax # 0xc230
movq (%rax,%r15,8), %rdx
movq %r14, %rsi
xorl %eax, %eax
callq 0x2250
incq %r15
movslq 0x842f(%rip), %rax # 0xc238
cmpq %rax, %r15
jl 0x3de5
jmp 0x3e19
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
jmp 0x3e19
xorl %ebx, %ebx
leaq 0x8(%rsp), %rdi
callq 0x4958
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4958
movq %rbx, %rdi
callq 0x22f0
| linenoiseHistorySave:
push rbp
push r15
push r14
push rbx
sub rsp, 38h
mov rbx, rdi
mov edi, 7Fh
call _umask
mov ebp, eax
mov [rsp+58h+var_50], 0
mov [rsp+58h+var_48], 0FFFFFFFFh
lea rdi, [rsp+58h+var_40]
lea rdx, [rsp+58h+var_51]
mov rsi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea r14, [rsp+58h+var_30]
mov rdi, [r14-10h]
lea rsi, aW; "w"
call _fopen
mov [rsp+58h+var_50], rax
mov rdi, [r14-10h]; void *
cmp rdi, r14
jz short loc_3DB4
mov rsi, [rsp+58h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3DB4:
mov edi, ebp
call _umask
cmp [rsp+58h+var_50], 0
jz short loc_3E10
mov rdi, rbx
mov esi, 180h
call _chmod
cmp cs:_ZL11history_len, 0; history_len
jle short loc_3E17
xor ebx, ebx
lea r14, aS_0; "%s\n"
xor r15d, r15d
loc_3DE5:
mov rdi, [rsp+58h+var_50]
mov rax, cs:_ZL7history; history
mov rdx, [rax+r15*8]
mov rsi, r14
xor eax, eax
call _fprintf
inc r15
movsxd rax, cs:_ZL11history_len; history_len
cmp r15, rax
jl short loc_3DE5
jmp short loc_3E19
loc_3E10:
mov ebx, 0FFFFFFFFh
jmp short loc_3E19
loc_3E17:
xor ebx, ebx
loc_3E19:
lea rdi, [rsp+58h+var_50]; this
call _ZN4FileD2Ev; File::~File()
mov eax, ebx
add rsp, 38h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN4FileD2Ev; File::~File()
mov rdi, rbx
call __Unwind_Resume
| long long linenoiseHistorySave(long long a1)
{
unsigned int v1; // ebp
unsigned int v2; // ebx
long long v3; // r15
char v5; // [rsp+7h] [rbp-51h] BYREF
long long v6; // [rsp+8h] [rbp-50h] BYREF
int v7; // [rsp+10h] [rbp-48h]
long long *v8; // [rsp+18h] [rbp-40h] BYREF
long long v9; // [rsp+28h] [rbp-30h] BYREF
v1 = umask(127LL);
v6 = 0LL;
v7 = -1;
std::string::basic_string<std::allocator<char>>(&v8, a1, &v5);
v6 = fopen(v8, "w");
if ( v8 != &v9 )
operator delete(v8, v9 + 1);
umask(v1);
if ( v6 )
{
chmod(a1, 384LL);
if ( history_len <= 0 )
{
v2 = 0;
}
else
{
v2 = 0;
v3 = 0LL;
do
fprintf(v6, "%s\n", *(const char **)(history + 8 * v3++));
while ( v3 < history_len );
}
}
else
{
v2 = -1;
}
File::~File((File *)&v6);
return v2;
}
| linenoiseHistorySave:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x38
MOV RBX,RDI
MOV EDI,0x7f
CALL 0x00102310
MOV EBP,EAX
MOV qword ptr [RSP + 0x8],0x0
MOV dword ptr [RSP + 0x10],0xffffffff
LAB_00103d72:
LEA RDI,[RSP + 0x18]
LEA RDX,[RSP + 0x7]
MOV RSI,RBX
CALL 0x0010491a
LAB_00103d84:
LEA R14,[RSP + 0x28]
MOV RDI,qword ptr [R14 + -0x10]
LEA RSI,[0x10989d]
CALL 0x001021b0
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [R14 + -0x10]
CMP RDI,R14
JZ 0x00103db4
MOV RSI,qword ptr [RSP + 0x28]
INC RSI
CALL 0x00102160
LAB_00103db4:
MOV EDI,EBP
CALL 0x00102310
CMP qword ptr [RSP + 0x8],0x0
JZ 0x00103e10
MOV RDI,RBX
MOV ESI,0x180
CALL 0x00102120
CMP dword ptr [0x0010c238],0x0
JLE 0x00103e17
XOR EBX,EBX
LEA R14,[0x10989f]
XOR R15D,R15D
LAB_00103de5:
MOV RDI,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [0x0010c230]
MOV RDX,qword ptr [RAX + R15*0x8]
MOV RSI,R14
XOR EAX,EAX
CALL 0x00102250
INC R15
MOVSXD RAX,dword ptr [0x0010c238]
CMP R15,RAX
JL 0x00103de5
JMP 0x00103e19
LAB_00103e10:
MOV EBX,0xffffffff
JMP 0x00103e19
LAB_00103e17:
XOR EBX,EBX
LAB_00103e19:
LEA RDI,[RSP + 0x8]
CALL 0x00104958
MOV EAX,EBX
ADD RSP,0x38
POP RBX
POP R14
POP R15
POP RBP
RET
|
int8 linenoiseHistorySave(char *param_1)
{
__mode_t __mask;
int8 uVar1;
long lVar2;
allocator local_51;
FILE *local_50;
int4 local_48;
long *local_40 [2];
long local_30 [2];
__mask = umask(0x7f);
local_50 = (FILE *)0x0;
local_48 = 0xffffffff;
/* try { // try from 00103d72 to 00103d83 has its CatchHandler @ 00103e30 */
std::__cxx11::string::string<std::allocator<char>>((string *)local_40,param_1,&local_51);
local_50 = fopen((char *)local_40[0],"w");
if (local_40[0] != local_30) {
operator_delete(local_40[0],local_30[0] + 1);
}
umask(__mask);
if (local_50 == (FILE *)0x0) {
uVar1 = 0xffffffff;
}
else {
chmod(param_1,0x180);
if (history_len < 1) {
uVar1 = 0;
}
else {
uVar1 = 0;
lVar2 = 0;
do {
fprintf(local_50,"%s\n",*(int8 *)(history + lVar2 * 8));
lVar2 = lVar2 + 1;
} while (lVar2 < history_len);
}
}
File::~File((File *)&local_50);
return uVar1;
}
| |
36,239 | minja::TextNode::~TextNode() | monkey531[P]llama/common/minja.hpp | TextNode(const Location & location, const std::string& t) : TemplateNode(location), text(t) {} | O3 | cpp | minja::TextNode::~TextNode():
pushq %rbx
movq %rdi, %rbx
leaq 0x8d3ab(%rip), %rax # 0x130218
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x20(%rdi), %rdi
leaq 0x30(%rbx), %rax
cmpq %rax, %rdi
je 0xa2e8c
movq (%rax), %rsi
incq %rsi
callq 0x1b910
leaq 0x8d135(%rip), %rax # 0x12ffc8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xa2ea8
callq 0x33c02
movl $0x40, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x1b910
| _ZN5minja8TextNodeD0Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja8TextNodeE; `vtable for'minja::TextNode
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+20h]; void *
lea rax, [rbx+30h]
cmp rdi, rax
jz short loc_A2E8C
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A2E8C:
lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_A2EA8
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_A2EA8:
mov esi, 40h ; '@'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
| void minja::TextNode::~TextNode(minja::TextNode *this)
{
char *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::TextNode + 2;
v2 = (char *)*((_QWORD *)this + 4);
if ( v2 != (char *)this + 48 )
operator delete(v2, *((_QWORD *)this + 6) + 1LL);
*(_QWORD *)this = &`vtable for'minja::TemplateNode + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
operator delete(this, 0x40uLL);
}
| ~TextNode:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x230218]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x20]
LEA RAX,[RBX + 0x30]
CMP RDI,RAX
JZ 0x001a2e8c
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011b910
LAB_001a2e8c:
LEA RAX,[0x22ffc8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x001a2ea8
CALL 0x00133c02
LAB_001a2ea8:
MOV ESI,0x40
MOV RDI,RBX
POP RBX
JMP 0x0011b910
|
/* minja::TextNode::~TextNode() */
void __thiscall minja::TextNode::~TextNode(TextNode *this)
{
*(int ***)this = &PTR_do_render_00230228;
if (*(TextNode **)(this + 0x20) != this + 0x30) {
operator_delete(*(TextNode **)(this + 0x20),*(long *)(this + 0x30) + 1);
}
*(int ***)this = &PTR___cxa_pure_virtual_0022ffd8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10));
}
operator_delete(this,0x40);
return;
}
| |
36,240 | mi_fetch_keypage | eloqsql/storage/myisam/mi_page.c | uchar *_mi_fetch_keypage(register MI_INFO *info, MI_KEYDEF *keyinfo,
my_off_t page, int level,
uchar *buff, int return_buffer)
{
uchar *tmp;
uint page_size;
DBUG_ENTER("_mi_fetch_keypage");
DBUG_PRINT("enter",("page: %ld", (long) page));
tmp=(uchar*) key_cache_read(info->s->key_cache,
info->s->kfile, page, level, (uchar*) buff,
(uint) keyinfo->block_length,
(uint) keyinfo->block_length,
return_buffer);
if (tmp == info->buff)
info->buff_used=1;
else if (!tmp)
{
DBUG_PRINT("error",("Got errno: %d from key_cache_read",my_errno));
info->last_keypage=HA_OFFSET_ERROR;
mi_print_error(info->s, HA_ERR_CRASHED);
my_errno=HA_ERR_CRASHED;
DBUG_RETURN(0);
}
info->last_keypage=page;
page_size=mi_getint(tmp);
if (page_size < 4 || page_size > keyinfo->block_length)
{
DBUG_PRINT("error",("page %lu had wrong page length: %u",
(ulong) page, page_size));
DBUG_DUMP("page", tmp, keyinfo->block_length);
info->last_keypage = HA_OFFSET_ERROR;
mi_print_error(info->s, HA_ERR_CRASHED);
my_errno = HA_ERR_CRASHED;
tmp = 0;
}
DBUG_RETURN(tmp);
} | O0 | c | mi_fetch_keypage:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
jmp 0xbda21
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x278(%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x350(%rax), %esi
movq -0x20(%rbp), %rdx
movl -0x24(%rbp), %ecx
movq -0x30(%rbp), %r8
movq -0x18(%rbp), %rax
movzwl 0xe(%rax), %r9d
movq -0x18(%rbp), %rax
movzwl 0xe(%rax), %r10d
movl -0x34(%rbp), %eax
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0xe44b0
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x100(%rcx), %rax
jne 0xbda8b
movq -0x10(%rbp), %rax
movb $0x1, 0x33d(%rax)
jmp 0xbdad7
cmpq $0x0, -0x40(%rbp)
jne 0xbdad5
jmp 0xbda94
jmp 0xbda96
movq -0x10(%rbp), %rax
movq $-0x1, 0x190(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0xadf20
callq 0xf5a70
movl $0x7e, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0xbdb6c
jmp 0xbdad7
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x190(%rax)
movq -0x40(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x40(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
andl $0x7fff, %eax # imm = 0x7FFF
movl %eax, -0x44(%rbp)
cmpl $0x4, -0x44(%rbp)
jb 0xbdb20
movl -0x44(%rbp), %eax
movq -0x18(%rbp), %rcx
movzwl 0xe(%rcx), %ecx
cmpl %ecx, %eax
jbe 0xbdb62
jmp 0xbdb22
jmp 0xbdb24
jmp 0xbdb26
jmp 0xbdb28
movq -0x10(%rbp), %rax
movq $-0x1, 0x190(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0xadf20
callq 0xf5a70
movl $0x7e, (%rax)
movq $0x0, -0x40(%rbp)
jmp 0xbdb64
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _mi_fetch_keypage:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov [rbp+var_30], r8
mov [rbp+var_34], r9d
jmp short $+2
loc_BDA21:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdi, [rax+278h]
mov rax, [rbp+var_10]
mov rax, [rax]
mov esi, [rax+350h]
mov rdx, [rbp+var_20]
mov ecx, [rbp+var_24]
mov r8, [rbp+var_30]
mov rax, [rbp+var_18]
movzx r9d, word ptr [rax+0Eh]
mov rax, [rbp+var_18]
movzx r10d, word ptr [rax+0Eh]
mov eax, [rbp+var_34]
mov [rsp+60h+var_60], r10d
mov [rsp+60h+var_58], eax
call key_cache_read
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov rcx, [rbp+var_10]
cmp rax, [rcx+100h]
jnz short loc_BDA8B
mov rax, [rbp+var_10]
mov byte ptr [rax+33Dh], 1
jmp short loc_BDAD7
loc_BDA8B:
cmp [rbp+var_40], 0
jnz short loc_BDAD5
jmp short $+2
loc_BDA94:
jmp short $+2
loc_BDA96:
mov rax, [rbp+var_10]
mov qword ptr [rax+190h], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
mov [rbp+var_8], 0
jmp loc_BDB6C
loc_BDAD5:
jmp short $+2
loc_BDAD7:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+190h], rcx
mov rax, [rbp+var_40]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_40]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
and eax, 7FFFh
mov [rbp+var_44], eax
cmp [rbp+var_44], 4
jb short loc_BDB20
mov eax, [rbp+var_44]
mov rcx, [rbp+var_18]
movzx ecx, word ptr [rcx+0Eh]
cmp eax, ecx
jbe short loc_BDB62
loc_BDB20:
jmp short $+2
loc_BDB22:
jmp short $+2
loc_BDB24:
jmp short $+2
loc_BDB26:
jmp short $+2
loc_BDB28:
mov rax, [rbp+var_10]
mov qword ptr [rax+190h], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
mov [rbp+var_40], 0
loc_BDB62:
jmp short $+2
loc_BDB64:
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_BDB6C:
mov rax, [rbp+var_8]
add rsp, 60h
pop rbp
retn
| unsigned __int16 * mi_fetch_keypage(_QWORD *a1, long long a2, long long a3, int a4, int a5, int a6)
{
const char *v6; // rsi
const char *v7; // rsi
unsigned int v9; // [rsp+1Ch] [rbp-44h]
unsigned __int16 *v10; // [rsp+20h] [rbp-40h]
v10 = (unsigned __int16 *)key_cache_read(
*(_QWORD *)(*a1 + 632LL),
*(_DWORD *)(*a1 + 848LL),
a3,
a4,
a5,
*(unsigned __int16 *)(a2 + 14),
*(unsigned __int16 *)(a2 + 14),
a6);
if ( v10 == (unsigned __int16 *)a1[32] )
{
*((_BYTE *)a1 + 829) = 1;
}
else if ( !v10 )
{
a1[50] = -1LL;
v6 = *(const char **)(*a1 + 616LL);
mi_report_error(126, (long long)v6);
*(_DWORD *)my_thread_var(126LL, v6) = 126;
return 0LL;
}
a1[50] = a3;
v9 = _byteswap_ushort(*v10) & 0x7FFF;
if ( v9 < 4 || v9 > *(unsigned __int16 *)(a2 + 14) )
{
a1[50] = -1LL;
v7 = *(const char **)(*a1 + 616LL);
mi_report_error(126, (long long)v7);
*(_DWORD *)my_thread_var(126LL, v7) = 126;
return 0LL;
}
return v10;
}
| _mi_fetch_keypage:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV qword ptr [RBP + -0x30],R8
MOV dword ptr [RBP + -0x34],R9D
JMP 0x001bda21
LAB_001bda21:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x278]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV ESI,dword ptr [RAX + 0x350]
MOV RDX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x24]
MOV R8,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x18]
MOVZX R9D,word ptr [RAX + 0xe]
MOV RAX,qword ptr [RBP + -0x18]
MOVZX R10D,word ptr [RAX + 0xe]
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RSP],R10D
MOV dword ptr [RSP + 0x8],EAX
CALL 0x001e44b0
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x100]
JNZ 0x001bda8b
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x33d],0x1
JMP 0x001bdad7
LAB_001bda8b:
CMP qword ptr [RBP + -0x40],0x0
JNZ 0x001bdad5
JMP 0x001bda94
LAB_001bda94:
JMP 0x001bda96
LAB_001bda96:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x190],-0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x001adf20
CALL 0x001f5a70
MOV dword ptr [RAX],0x7e
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001bdb6c
LAB_001bdad5:
JMP 0x001bdad7
LAB_001bdad7:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x190],RCX
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x40]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
AND EAX,0x7fff
MOV dword ptr [RBP + -0x44],EAX
CMP dword ptr [RBP + -0x44],0x4
JC 0x001bdb20
MOV EAX,dword ptr [RBP + -0x44]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,word ptr [RCX + 0xe]
CMP EAX,ECX
JBE 0x001bdb62
LAB_001bdb20:
JMP 0x001bdb22
LAB_001bdb22:
JMP 0x001bdb24
LAB_001bdb24:
JMP 0x001bdb26
LAB_001bdb26:
JMP 0x001bdb28
LAB_001bdb28:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x190],-0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x001adf20
CALL 0x001f5a70
MOV dword ptr [RAX],0x7e
MOV qword ptr [RBP + -0x40],0x0
LAB_001bdb62:
JMP 0x001bdb64
LAB_001bdb64:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_001bdb6c:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x60
POP RBP
RET
|
byte * _mi_fetch_keypage(long *param_1,long param_2,long param_3,int4 param_4,
int8 param_5,int4 param_6)
{
uint uVar1;
int4 *puVar2;
byte *local_48;
local_48 = (byte *)key_cache_read(*(int8 *)(*param_1 + 0x278),
*(int4 *)(*param_1 + 0x350),param_3,param_4,param_5,
*(int2 *)(param_2 + 0xe),*(int2 *)(param_2 + 0xe),
param_6);
if (local_48 == (byte *)param_1[0x20]) {
*(int1 *)((long)param_1 + 0x33d) = 1;
}
else if (local_48 == (byte *)0x0) {
param_1[0x32] = -1;
mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268));
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x7e;
return (byte *)0x0;
}
param_1[0x32] = param_3;
uVar1 = (uint)local_48[1] | (*local_48 & 0x7f) << 8;
if ((uVar1 < 4) || (*(ushort *)(param_2 + 0xe) < uVar1)) {
param_1[0x32] = -1;
mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268));
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x7e;
local_48 = (byte *)0x0;
}
return local_48;
}
| |
36,241 | end_simple_key_cache | eloqsql/mysys/mf_keycache.c | static
void end_simple_key_cache(SIMPLE_KEY_CACHE_CB *keycache, my_bool cleanup)
{
DBUG_ENTER("end_simple_key_cache");
DBUG_PRINT("enter", ("key_cache: %p", keycache));
if (!keycache->key_cache_inited)
DBUG_VOID_RETURN;
if (keycache->disk_blocks > 0)
{
if (keycache->block_mem)
{
my_large_free((uchar*) keycache->block_mem, keycache->allocated_mem_size);
keycache->block_mem= NULL;
my_free(keycache->block_root);
keycache->block_root= NULL;
}
keycache->disk_blocks= -1;
/* Reset blocks_changed to be safe if flush_all_key_blocks is called */
keycache->blocks_changed= 0;
}
DBUG_PRINT("status", ("used: %lu changed: %lu w_requests: %lu "
"writes: %lu r_requests: %lu reads: %lu",
keycache->blocks_used, keycache->global_blocks_changed,
(ulong) keycache->global_cache_w_requests,
(ulong) keycache->global_cache_write,
(ulong) keycache->global_cache_r_requests,
(ulong) keycache->global_cache_read));
/*
Reset these values to be able to detect a disabled key cache.
See Bug#44068 (RESTORE can disable the MyISAM Key Cache).
*/
keycache->blocks_used= 0;
keycache->blocks_unused= 0;
if (cleanup)
{
mysql_mutex_destroy(&keycache->cache_lock);
keycache->key_cache_inited= keycache->can_be_used= 0;
KEYCACHE_DEBUG_CLOSE;
}
DBUG_VOID_RETURN;
} | O3 | c | end_simple_key_cache:
cmpb $0x0, (%rdi)
je 0x9cada
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
cmpl $0x0, 0x48(%rdi)
jle 0x9ca8a
movq 0xa8(%rbx), %rdi
testq %rdi, %rdi
je 0x9ca7b
movq 0x10(%rbx), %rsi
callq 0xaaea7
xorl %r15d, %r15d
movq %r15, 0xa8(%rbx)
movq 0xa0(%rbx), %rdi
callq 0xa2e9e
movq %r15, 0xa0(%rbx)
movl $0xffffffff, 0x48(%rbx) # imm = 0xFFFFFFFF
movq $0x0, 0x60(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rbx)
testb %r14b, %r14b
je 0x9cad0
leaq 0xc0(%rbx), %r14
movq 0x100(%rbx), %rdi
testq %rdi, %rdi
je 0x9cac1
leaq 0x2ec5a0(%rip), %rax # 0x389050
movq (%rax), %rax
callq *0x48(%rax)
movq $0x0, 0x100(%rbx)
movq %r14, %rdi
callq 0x290c0
xorl %eax, %eax
movb %al, 0x3(%rbx)
movb %al, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| end_simple_key_cache:
cmp byte ptr [rdi], 0
jz locret_9CADA
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14d, esi
mov rbx, rdi
cmp dword ptr [rdi+48h], 0
jle short loc_9CA8A
mov rdi, [rbx+0A8h]
test rdi, rdi
jz short loc_9CA7B
mov rsi, [rbx+10h]
call my_large_free
xor r15d, r15d
mov [rbx+0A8h], r15
mov rdi, [rbx+0A0h]
call my_free
mov [rbx+0A0h], r15
loc_9CA7B:
mov dword ptr [rbx+48h], 0FFFFFFFFh
mov qword ptr [rbx+60h], 0
loc_9CA8A:
xorps xmm0, xmm0
movups xmmword ptr [rbx+50h], xmm0
test r14b, r14b
jz short loc_9CAD0
lea r14, [rbx+0C0h]
mov rdi, [rbx+100h]
test rdi, rdi
jz short loc_9CAC1
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+48h]
mov qword ptr [rbx+100h], 0
loc_9CAC1:
mov rdi, r14
call _pthread_mutex_destroy
xor eax, eax
mov [rbx+3], al
mov [rbx], al
loc_9CAD0:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
locret_9CADA:
retn
| long long end_simple_key_cache(long long a1, char a2)
{
long long v3; // rdi
long long result; // rax
long long v5; // rdi
if ( *(_BYTE *)a1 )
{
if ( *(int *)(a1 + 72) > 0 )
{
v3 = *(_QWORD *)(a1 + 168);
if ( v3 )
{
my_large_free(v3, *(_QWORD *)(a1 + 16));
*(_QWORD *)(a1 + 168) = 0LL;
result = my_free(*(_QWORD *)(a1 + 160));
*(_QWORD *)(a1 + 160) = 0LL;
}
*(_DWORD *)(a1 + 72) = -1;
*(_QWORD *)(a1 + 96) = 0LL;
}
*(_OWORD *)(a1 + 80) = 0LL;
if ( a2 )
{
v5 = *(_QWORD *)(a1 + 256);
if ( v5 )
{
((void ( *)(long long))PSI_server[9])(v5);
*(_QWORD *)(a1 + 256) = 0LL;
}
pthread_mutex_destroy(a1 + 192);
result = 0LL;
*(_BYTE *)(a1 + 3) = 0;
*(_BYTE *)a1 = 0;
}
}
return result;
}
| end_simple_key_cache:
CMP byte ptr [RDI],0x0
JZ 0x0019cada
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14D,ESI
MOV RBX,RDI
CMP dword ptr [RDI + 0x48],0x0
JLE 0x0019ca8a
MOV RDI,qword ptr [RBX + 0xa8]
TEST RDI,RDI
JZ 0x0019ca7b
MOV RSI,qword ptr [RBX + 0x10]
CALL 0x001aaea7
XOR R15D,R15D
MOV qword ptr [RBX + 0xa8],R15
MOV RDI,qword ptr [RBX + 0xa0]
CALL 0x001a2e9e
MOV qword ptr [RBX + 0xa0],R15
LAB_0019ca7b:
MOV dword ptr [RBX + 0x48],0xffffffff
MOV qword ptr [RBX + 0x60],0x0
LAB_0019ca8a:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x50],XMM0
TEST R14B,R14B
JZ 0x0019cad0
LEA R14,[RBX + 0xc0]
MOV RDI,qword ptr [RBX + 0x100]
TEST RDI,RDI
JZ 0x0019cac1
LEA RAX,[0x489050]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x48]
MOV qword ptr [RBX + 0x100],0x0
LAB_0019cac1:
MOV RDI,R14
CALL 0x001290c0
XOR EAX,EAX
MOV byte ptr [RBX + 0x3],AL
MOV byte ptr [RBX],AL
LAB_0019cad0:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
LAB_0019cada:
RET
|
void end_simple_key_cache(char *param_1,char param_2)
{
if (*param_1 != '\0') {
if (0 < *(int *)(param_1 + 0x48)) {
if (*(long *)(param_1 + 0xa8) != 0) {
my_large_free(*(long *)(param_1 + 0xa8),*(int8 *)(param_1 + 0x10));
param_1[0xa8] = '\0';
param_1[0xa9] = '\0';
param_1[0xaa] = '\0';
param_1[0xab] = '\0';
param_1[0xac] = '\0';
param_1[0xad] = '\0';
param_1[0xae] = '\0';
param_1[0xaf] = '\0';
my_free(*(int8 *)(param_1 + 0xa0));
param_1[0xa0] = '\0';
param_1[0xa1] = '\0';
param_1[0xa2] = '\0';
param_1[0xa3] = '\0';
param_1[0xa4] = '\0';
param_1[0xa5] = '\0';
param_1[0xa6] = '\0';
param_1[0xa7] = '\0';
}
param_1[0x48] = -1;
param_1[0x49] = -1;
param_1[0x4a] = -1;
param_1[0x4b] = -1;
param_1[0x60] = '\0';
param_1[0x61] = '\0';
param_1[0x62] = '\0';
param_1[99] = '\0';
param_1[100] = '\0';
param_1[0x65] = '\0';
param_1[0x66] = '\0';
param_1[0x67] = '\0';
}
param_1[0x50] = '\0';
param_1[0x51] = '\0';
param_1[0x52] = '\0';
param_1[0x53] = '\0';
param_1[0x54] = '\0';
param_1[0x55] = '\0';
param_1[0x56] = '\0';
param_1[0x57] = '\0';
param_1[0x58] = '\0';
param_1[0x59] = '\0';
param_1[0x5a] = '\0';
param_1[0x5b] = '\0';
param_1[0x5c] = '\0';
param_1[0x5d] = '\0';
param_1[0x5e] = '\0';
param_1[0x5f] = '\0';
if (param_2 != '\0') {
if (*(long *)(param_1 + 0x100) != 0) {
(**(code **)(PSI_server + 0x48))();
param_1[0x100] = '\0';
param_1[0x101] = '\0';
param_1[0x102] = '\0';
param_1[0x103] = '\0';
param_1[0x104] = '\0';
param_1[0x105] = '\0';
param_1[0x106] = '\0';
param_1[0x107] = '\0';
}
pthread_mutex_destroy((pthread_mutex_t *)(param_1 + 0xc0));
param_1[3] = '\0';
*param_1 = '\0';
}
}
return;
}
| |
36,242 | nglog::tools::ProgramInvocationShortName() | ng-log[P]ng-log/src/utilities.cc | const char* ProgramInvocationShortName() {
if (g_program_invocation_short_name != nullptr) {
return g_program_invocation_short_name;
}
#if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME)
return program_invocation_short_name;
#elif defined(HAVE_GETPROGNAME)
return getprogname();
#elif defined(HAVE___PROGNAME)
return __progname;
#elif defined(HAVE___ARGV)
return const_basename(__argv[0]);
#else
return "UNKNOWN";
#endif
} | O0 | cpp | nglog::tools::ProgramInvocationShortName():
pushq %rbp
movq %rsp, %rbp
cmpq $0x0, 0x367cc(%rip) # 0x82db8
je 0x4c5fb
movq 0x367c3(%rip), %rax # 0x82db8
movq %rax, -0x8(%rbp)
jmp 0x4c609
movq 0x259b6(%rip), %rax # 0x71fb8
movq (%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nop
| _ZN5nglog5tools26ProgramInvocationShortNameEv:
push rbp
mov rbp, rsp
cmp cs:_ZN5nglogL31g_program_invocation_short_nameE, 0; nglog::g_program_invocation_short_name
jz short loc_4C5FB
mov rax, cs:_ZN5nglogL31g_program_invocation_short_nameE; nglog::g_program_invocation_short_name
mov [rbp+var_8], rax
jmp short loc_4C609
loc_4C5FB:
mov rax, cs:program_invocation_short_name_ptr
mov rax, [rax]
mov [rbp+var_8], rax
loc_4C609:
mov rax, [rbp+var_8]
pop rbp
retn
| long long nglog::tools::ProgramInvocationShortName(nglog::tools *this)
{
if ( nglog::g_program_invocation_short_name )
return nglog::g_program_invocation_short_name;
else
return program_invocation_short_name;
}
| ProgramInvocationShortName:
PUSH RBP
MOV RBP,RSP
CMP qword ptr [0x00182db8],0x0
JZ 0x0014c5fb
MOV RAX,qword ptr [0x00182db8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014c609
LAB_0014c5fb:
MOV RAX,qword ptr [0x00171fb8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
LAB_0014c609:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
/* nglog::tools::ProgramInvocationShortName() */
long nglog::tools::ProgramInvocationShortName(void)
{
int8 local_10;
if (g_program_invocation_short_name == 0) {
local_10 = *(long *)PTR_program_invocation_short_name_00171fb8;
}
else {
local_10 = g_program_invocation_short_name;
}
return local_10;
}
| |
36,243 | nglog::tools::ProgramInvocationShortName() | ng-log[P]ng-log/src/utilities.cc | const char* ProgramInvocationShortName() {
if (g_program_invocation_short_name != nullptr) {
return g_program_invocation_short_name;
}
#if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME)
return program_invocation_short_name;
#elif defined(HAVE_GETPROGNAME)
return getprogname();
#elif defined(HAVE___PROGNAME)
return __progname;
#elif defined(HAVE___ARGV)
return const_basename(__argv[0]);
#else
return "UNKNOWN";
#endif
} | O3 | cpp | nglog::tools::ProgramInvocationShortName():
movq 0x1e97a(%rip), %rax # 0x3fbb0
testq %rax, %rax
jne 0x21245
movq 0xdd5e(%rip), %rax # 0x2efa0
movq (%rax), %rax
retq
| _ZN5nglog5tools26ProgramInvocationShortNameEv:
mov rax, cs:_ZN5nglogL31g_program_invocation_short_nameE; nglog::g_program_invocation_short_name
test rax, rax
jnz short locret_21245
mov rax, cs:program_invocation_short_name_ptr
mov rax, [rax]
locret_21245:
retn
| long long nglog::tools::ProgramInvocationShortName(nglog::tools *this)
{
long long result; // rax
result = nglog::g_program_invocation_short_name;
if ( !nglog::g_program_invocation_short_name )
return program_invocation_short_name;
return result;
}
| ProgramInvocationShortName:
MOV RAX,qword ptr [0x0013fbb0]
TEST RAX,RAX
JNZ 0x00121245
MOV RAX,qword ptr [0x0012efa0]
MOV RAX,qword ptr [RAX]
LAB_00121245:
RET
|
/* nglog::tools::ProgramInvocationShortName() */
long nglog::tools::ProgramInvocationShortName(void)
{
long lVar1;
lVar1 = g_program_invocation_short_name;
if (g_program_invocation_short_name == 0) {
lVar1 = *(long *)PTR_program_invocation_short_name_0012efa0;
}
return lVar1;
}
| |
36,244 | mi_init_bulk_insert | eloqsql/storage/myisam/mi_write.c | int mi_init_bulk_insert(MI_INFO *info, size_t cache_size, ha_rows rows)
{
MYISAM_SHARE *share=info->s;
MI_KEYDEF *key=share->keyinfo;
bulk_insert_param *params;
uint i, num_keys, total_keylength;
ulonglong key_map;
DBUG_ENTER("_mi_init_bulk_insert");
DBUG_PRINT("enter",("cache_size: %lu", (ulong) cache_size));
DBUG_ASSERT(!info->bulk_insert &&
(!rows || rows >= MI_MIN_ROWS_TO_USE_BULK_INSERT));
mi_clear_all_keys_active(key_map);
for (i=total_keylength=num_keys=0 ; i < share->base.keys ; i++)
{
if (! (key[i].flag & HA_NOSAME) && (share->base.auto_key != i + 1) &&
mi_is_key_active(share->state.key_map, i))
{
num_keys++;
mi_set_key_active(key_map, i);
total_keylength+=key[i].maxlength+TREE_ELEMENT_EXTRA_SIZE;
}
}
if (num_keys==0 ||
num_keys * (size_t) MI_MIN_SIZE_BULK_INSERT_TREE > cache_size)
DBUG_RETURN(0);
if (rows && rows*total_keylength < cache_size)
cache_size= (size_t) rows;
else
cache_size/=total_keylength*16;
info->bulk_insert=(TREE *)
my_malloc(mi_key_memory_MI_INFO_bulk_insert,
(sizeof(TREE)*share->base.keys+
sizeof(bulk_insert_param)*num_keys),MYF(0));
if (!info->bulk_insert)
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
params=(bulk_insert_param *)(info->bulk_insert+share->base.keys);
for (i=0 ; i < share->base.keys ; i++)
{
if (mi_is_key_active(key_map, i))
{
params->info=info;
params->keynr=i;
/* Only allocate a 16'th of the buffer at a time */
init_tree(&info->bulk_insert[i],
cache_size * key[i].maxlength,
cache_size * key[i].maxlength, 0,
(qsort_cmp2)keys_compare, keys_free, (void *)params++, MYF(0));
}
else
info->bulk_insert[i].root=0;
}
DBUG_RETURN(0);
} | O3 | c | mi_init_bulk_insert:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, -0x30(%rbp)
movq (%rdi), %r13
movl 0x180(%r13), %r8d
testq %r8, %r8
je 0x8b1be
movq %rdx, %rbx
movq 0x218(%r13), %r14
xorl %ecx, %ecx
xorl %r15d, %r15d
xorl %edi, %edi
xorl %eax, %eax
imulq $0x70, %rcx, %r9
testb $0x1, 0xa(%r14,%r9)
jne 0x8b094
movl 0x184(%r13), %r10d
leaq 0x1(%rcx), %rdx
cmpq %r10, %rdx
je 0x8b09a
movq 0xc0(%r13), %r11
movl $0x1, %r10d
shlq %cl, %r10
btq %rcx, %r11
jae 0x8b09a
addq %r14, %r9
incl %eax
orq %r10, %r15
movzwl 0x16(%r9), %ecx
addl %ecx, %edi
addl $0x20, %edi
jmp 0x8b09a
incq %rcx
movq %rcx, %rdx
movq %rdx, %rcx
cmpq %r8, %rdx
jne 0x8b04e
xorl %r12d, %r12d
testl %eax, %eax
je 0x8b1c1
movq %r15, -0x40(%rbp)
movl %eax, %ecx
movq %rcx, %rax
shlq $0xe, %rax
cmpq %rsi, %rax
ja 0x8b1c1
testq %rbx, %rbx
je 0x8b0d3
movl %edi, %eax
imulq %rbx, %rax
cmpq %rsi, %rax
jb 0x8b0e1
shll $0x4, %edi
movq %rsi, %rax
xorl %edx, %edx
divq %rdi
movq %rax, %rbx
leaq 0xb7691c(%rip), %rax # 0xc01a04
movl (%rax), %edi
imulq $0x298, %r8, %rax # imm = 0x298
shlq $0x4, %rcx
addq %rax, %rcx
xorl %r12d, %r12d
movq %rcx, %rsi
xorl %edx, %edx
callq 0xa1359
movq %rax, %r15
movq -0x30(%rbp), %rax
movq %r15, 0x80(%rax)
testq %r15, %r15
je 0x8b1d3
movl 0x180(%r13), %eax
testq %rax, %rax
je 0x8b1c1
movq %rbx, -0x38(%rbp)
imulq $0x298, %rax, %rax # imm = 0x298
addq %rax, %r15
addq $0x16, %r14
xorl %r12d, %r12d
xorl %ebx, %ebx
movq -0x40(%rbp), %rax
btq %rbx, %rax
jae 0x8b191
movq -0x30(%rbp), %rax
movq %rax, (%r15)
movl %ebx, 0x8(%r15)
movq 0x80(%rax), %rdi
addq %r12, %rdi
movzwl (%r14), %edx
imulq -0x38(%rbp), %rdx
movq %rdx, %rsi
xorl %ecx, %ecx
leaq 0x64(%rip), %r8 # 0x8b1db
leaq 0x98(%rip), %r9 # 0x8b216
pushq $0x0
pushq %r15
addq $0x10, %r15
callq 0xa5cb8
addq $0x10, %rsp
jmp 0x8b1a4
movq -0x30(%rbp), %rax
movq 0x80(%rax), %rax
movq $0x0, (%rax,%r12)
incq %rbx
movl 0x180(%r13), %eax
addq $0x298, %r12 # imm = 0x298
addq $0x70, %r14
cmpq %rax, %rbx
jb 0x8b143
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x80, %r12d
jmp 0x8b1c1
| mi_init_bulk_insert:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_30], rdi
mov r13, [rdi]
mov r8d, [r13+180h]
test r8, r8
jz loc_8B1BE
mov rbx, rdx
mov r14, [r13+218h]
xor ecx, ecx
xor r15d, r15d
xor edi, edi
xor eax, eax
loc_8B04E:
imul r9, rcx, 70h ; 'p'
test byte ptr [r14+r9+0Ah], 1
jnz short loc_8B094
mov r10d, [r13+184h]
lea rdx, [rcx+1]
cmp rdx, r10
jz short loc_8B09A
mov r11, [r13+0C0h]
mov r10d, 1
shl r10, cl
bt r11, rcx
jnb short loc_8B09A
add r9, r14
inc eax
or r15, r10
movzx ecx, word ptr [r9+16h]
add edi, ecx
add edi, 20h ; ' '
jmp short loc_8B09A
loc_8B094:
inc rcx
mov rdx, rcx
loc_8B09A:
mov rcx, rdx
cmp rdx, r8
jnz short loc_8B04E
xor r12d, r12d
test eax, eax
jz loc_8B1C1
mov [rbp+var_40], r15
mov ecx, eax
mov rax, rcx
shl rax, 0Eh
cmp rax, rsi
ja loc_8B1C1
test rbx, rbx
jz short loc_8B0D3
mov eax, edi
imul rax, rbx
cmp rax, rsi
jb short loc_8B0E1
loc_8B0D3:
shl edi, 4
mov rax, rsi
xor edx, edx
div rdi
mov rbx, rax
loc_8B0E1:
lea rax, mi_key_memory_MI_INFO_bulk_insert
mov edi, [rax]
imul rax, r8, 298h
shl rcx, 4
add rcx, rax
xor r12d, r12d
mov rsi, rcx
xor edx, edx
call my_malloc
mov r15, rax
mov rax, [rbp+var_30]
mov [rax+80h], r15
test r15, r15
jz loc_8B1D3
mov eax, [r13+180h]
test rax, rax
jz loc_8B1C1
mov [rbp+var_38], rbx
imul rax, 298h
add r15, rax
add r14, 16h
xor r12d, r12d
xor ebx, ebx
loc_8B143:
mov rax, [rbp+var_40]
bt rax, rbx
jnb short loc_8B191
mov rax, [rbp+var_30]
mov [r15], rax
mov [r15+8], ebx
mov rdi, [rax+80h]
add rdi, r12
movzx edx, word ptr [r14]
imul rdx, [rbp+var_38]
mov rsi, rdx
xor ecx, ecx
lea r8, keys_compare_0
lea r9, keys_free_0
push 0
push r15
add r15, 10h
call init_tree
add rsp, 10h
jmp short loc_8B1A4
loc_8B191:
mov rax, [rbp+var_30]
mov rax, [rax+80h]
mov qword ptr [rax+r12], 0
loc_8B1A4:
inc rbx
mov eax, [r13+180h]
add r12, 298h
add r14, 70h ; 'p'
cmp rbx, rax
jb short loc_8B143
loc_8B1BE:
xor r12d, r12d
loc_8B1C1:
mov eax, r12d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8B1D3:
mov r12d, 80h
jmp short loc_8B1C1
| long long mi_init_bulk_insert(_QWORD *a1, unsigned long long a2, unsigned long long a3)
{
long long v3; // r13
long long v4; // r8
long long v6; // r14
unsigned long long v7; // rcx
long long v8; // r15
unsigned int v9; // edi
unsigned int v10; // eax
unsigned long long v11; // rdx
long long v12; // r11
unsigned int v13; // r12d
long long v14; // r15
long long v15; // r15
unsigned __int16 *v16; // r14
long long v17; // r12
unsigned long long v18; // rbx
long long v19; // rax
long long v21; // [rsp-10h] [rbp-50h]
long long v22; // [rsp+0h] [rbp-40h]
int v23; // [rsp+8h] [rbp-38h]
v3 = *a1;
v4 = *(unsigned int *)(*a1 + 384LL);
if ( !*(_DWORD *)(*a1 + 384LL) )
return 0;
v6 = *(_QWORD *)(v3 + 536);
v7 = 0LL;
v8 = 0LL;
v9 = 0;
v10 = 0;
do
{
if ( (*(_BYTE *)(v6 + 112 * v7 + 10) & 1) != 0 )
{
v11 = v7 + 1;
}
else
{
v11 = v7 + 1;
if ( v7 + 1 != *(_DWORD *)(v3 + 388) )
{
v12 = *(_QWORD *)(v3 + 192);
if ( _bittest64(&v12, v7) )
{
++v10;
v8 |= 1LL << v7;
v9 += *(unsigned __int16 *)(v6 + 112 * v7 + 22) + 32;
}
}
}
v7 = v11;
}
while ( v11 != v4 );
v13 = 0;
if ( v10 )
{
v22 = v8;
if ( (unsigned long long)v10 << 14 <= a2 )
{
if ( !a3 || a3 * v9 >= a2 )
a3 = a2 / (16 * v9);
v13 = 0;
v14 = my_malloc(mi_key_memory_MI_INFO_bulk_insert, 664 * v4 + 16LL * v10, 0LL);
a1[16] = v14;
if ( !v14 )
return 128;
if ( *(_DWORD *)(v3 + 384) )
{
v23 = a3;
v15 = 664LL * *(unsigned int *)(v3 + 384) + v14;
v16 = (unsigned __int16 *)(v6 + 22);
v17 = 0LL;
v18 = 0LL;
do
{
v19 = v22;
if ( _bittest64(&v19, v18) )
{
*(_QWORD *)v15 = a1;
*(_DWORD *)(v15 + 8) = v18;
v21 = v15;
v15 += 16LL;
init_tree(
v17 + *((_DWORD *)a1 + 32),
v23 * *v16,
v23 * *v16,
0,
(unsigned int)keys_compare_0,
(unsigned int)keys_free_0,
v21,
0LL);
}
else
{
*(_QWORD *)(a1[16] + v17) = 0LL;
}
++v18;
v17 += 664LL;
v16 += 56;
}
while ( v18 < *(unsigned int *)(v3 + 384) );
return 0;
}
}
}
return v13;
}
| mi_init_bulk_insert:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x30],RDI
MOV R13,qword ptr [RDI]
MOV R8D,dword ptr [R13 + 0x180]
TEST R8,R8
JZ 0x0018b1be
MOV RBX,RDX
MOV R14,qword ptr [R13 + 0x218]
XOR ECX,ECX
XOR R15D,R15D
XOR EDI,EDI
XOR EAX,EAX
LAB_0018b04e:
IMUL R9,RCX,0x70
TEST byte ptr [R14 + R9*0x1 + 0xa],0x1
JNZ 0x0018b094
MOV R10D,dword ptr [R13 + 0x184]
LEA RDX,[RCX + 0x1]
CMP RDX,R10
JZ 0x0018b09a
MOV R11,qword ptr [R13 + 0xc0]
MOV R10D,0x1
SHL R10,CL
BT R11,RCX
JNC 0x0018b09a
ADD R9,R14
INC EAX
OR R15,R10
MOVZX ECX,word ptr [R9 + 0x16]
ADD EDI,ECX
ADD EDI,0x20
JMP 0x0018b09a
LAB_0018b094:
INC RCX
MOV RDX,RCX
LAB_0018b09a:
MOV RCX,RDX
CMP RDX,R8
JNZ 0x0018b04e
XOR R12D,R12D
TEST EAX,EAX
JZ 0x0018b1c1
MOV qword ptr [RBP + -0x40],R15
MOV ECX,EAX
MOV RAX,RCX
SHL RAX,0xe
CMP RAX,RSI
JA 0x0018b1c1
TEST RBX,RBX
JZ 0x0018b0d3
MOV EAX,EDI
IMUL RAX,RBX
CMP RAX,RSI
JC 0x0018b0e1
LAB_0018b0d3:
SHL EDI,0x4
MOV RAX,RSI
XOR EDX,EDX
DIV RDI
MOV RBX,RAX
LAB_0018b0e1:
LEA RAX,[0xd01a04]
MOV EDI,dword ptr [RAX]
IMUL RAX,R8,0x298
SHL RCX,0x4
ADD RCX,RAX
XOR R12D,R12D
MOV RSI,RCX
XOR EDX,EDX
CALL 0x001a1359
MOV R15,RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0x80],R15
TEST R15,R15
JZ 0x0018b1d3
MOV EAX,dword ptr [R13 + 0x180]
TEST RAX,RAX
JZ 0x0018b1c1
MOV qword ptr [RBP + -0x38],RBX
IMUL RAX,RAX,0x298
ADD R15,RAX
ADD R14,0x16
XOR R12D,R12D
XOR EBX,EBX
LAB_0018b143:
MOV RAX,qword ptr [RBP + -0x40]
BT RAX,RBX
JNC 0x0018b191
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [R15],RAX
MOV dword ptr [R15 + 0x8],EBX
MOV RDI,qword ptr [RAX + 0x80]
ADD RDI,R12
MOVZX EDX,word ptr [R14]
IMUL RDX,qword ptr [RBP + -0x38]
MOV RSI,RDX
XOR ECX,ECX
LEA R8,[0x18b1db]
LEA R9,[0x18b216]
PUSH 0x0
PUSH R15
ADD R15,0x10
CALL 0x001a5cb8
ADD RSP,0x10
JMP 0x0018b1a4
LAB_0018b191:
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x80]
MOV qword ptr [RAX + R12*0x1],0x0
LAB_0018b1a4:
INC RBX
MOV EAX,dword ptr [R13 + 0x180]
ADD R12,0x298
ADD R14,0x70
CMP RBX,RAX
JC 0x0018b143
LAB_0018b1be:
XOR R12D,R12D
LAB_0018b1c1:
MOV EAX,R12D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018b1d3:
MOV R12D,0x80
JMP 0x0018b1c1
|
int8 mi_init_bulk_insert(long *param_1,ulong param_2,ulong param_3)
{
long lVar1;
uint uVar2;
long lVar3;
ulong uVar4;
ulong uVar5;
uint uVar6;
long lVar7;
ushort *puVar8;
ulong uVar9;
int8 *puVar10;
lVar1 = *param_1;
uVar5 = (ulong)*(uint *)(lVar1 + 0x180);
if (uVar5 != 0) {
lVar7 = *(long *)(lVar1 + 0x218);
uVar4 = 0;
uVar9 = 0;
uVar6 = 0;
uVar2 = 0;
do {
if ((((*(byte *)(lVar7 + 10 + uVar4 * 0x70) & 1) == 0) &&
(uVar4 + 1 != (ulong)*(uint *)(lVar1 + 0x184))) &&
((*(ulong *)(lVar1 + 0xc0) >> (uVar4 & 0x3f) & 1) != 0)) {
uVar2 = uVar2 + 1;
uVar9 = uVar9 | 1L << ((byte)uVar4 & 0x3f);
uVar6 = uVar6 + *(ushort *)(uVar4 * 0x70 + lVar7 + 0x16) + 0x20;
}
uVar4 = uVar4 + 1;
} while (uVar4 != uVar5);
if (uVar2 == 0) {
return 0;
}
if (param_2 < (ulong)uVar2 << 0xe) {
return 0;
}
if ((param_3 == 0) || (param_2 <= uVar6 * param_3)) {
param_3 = param_2 / (uVar6 << 4);
}
lVar3 = my_malloc(mi_key_memory_MI_INFO_bulk_insert,(ulong)uVar2 * 0x10 + uVar5 * 0x298,0);
param_1[0x10] = lVar3;
if (lVar3 == 0) {
return 0x80;
}
if ((ulong)*(uint *)(lVar1 + 0x180) == 0) {
return 0;
}
puVar10 = (int8 *)(lVar3 + (ulong)*(uint *)(lVar1 + 0x180) * 0x298);
puVar8 = (ushort *)(lVar7 + 0x16);
lVar7 = 0;
uVar5 = 0;
do {
if ((uVar9 >> (uVar5 & 0x3f) & 1) == 0) {
*(int8 *)(param_1[0x10] + lVar7) = 0;
}
else {
*puVar10 = param_1;
*(int *)(puVar10 + 1) = (int)uVar5;
init_tree(param_1[0x10] + lVar7,*puVar8 * param_3,*puVar8 * param_3,0,keys_compare,keys_free
,puVar10,0,uVar9,param_3);
puVar10 = puVar10 + 2;
}
uVar5 = uVar5 + 1;
lVar7 = lVar7 + 0x298;
puVar8 = puVar8 + 0x38;
} while (uVar5 < *(uint *)(lVar1 + 0x180));
}
return 0;
}
| |
36,245 | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) | monkey531[P]llama/common/json.hpp | inline void grisu2(char* buf, int& len, int& decimal_exponent,
diyfp m_minus, diyfp v, diyfp m_plus)
{
JSON_ASSERT(m_plus.e == m_minus.e);
JSON_ASSERT(m_plus.e == v.e);
// --------(-----------------------+-----------------------)-------- (A)
// m- v m+
//
// --------------------(-----------+-----------------------)-------- (B)
// m- v m+
//
// First scale v (and m- and m+) such that the exponent is in the range
// [alpha, gamma].
const cached_power cached = get_cached_power_for_binary_exponent(m_plus.e);
const diyfp c_minus_k(cached.f, cached.e); // = c ~= 10^-k
// The exponent of the products is = v.e + c_minus_k.e + q and is in the range [alpha,gamma]
const diyfp w = diyfp::mul(v, c_minus_k);
const diyfp w_minus = diyfp::mul(m_minus, c_minus_k);
const diyfp w_plus = diyfp::mul(m_plus, c_minus_k);
// ----(---+---)---------------(---+---)---------------(---+---)----
// w- w w+
// = c*m- = c*v = c*m+
//
// diyfp::mul rounds its result and c_minus_k is approximated too. w, w- and
// w+ are now off by a small amount.
// In fact:
//
// w - v * 10^k < 1 ulp
//
// To account for this inaccuracy, add resp. subtract 1 ulp.
//
// --------+---[---------------(---+---)---------------]---+--------
// w- M- w M+ w+
//
// Now any number in [M-, M+] (bounds included) will round to w when input,
// regardless of how the input rounding algorithm breaks ties.
//
// And digit_gen generates the shortest possible such number in [M-, M+].
// Note that this does not mean that Grisu2 always generates the shortest
// possible number in the interval (m-, m+).
const diyfp M_minus(w_minus.f + 1, w_minus.e);
const diyfp M_plus (w_plus.f - 1, w_plus.e );
decimal_exponent = -cached.k; // = -(-k) = k
grisu2_digit_gen(buf, len, decimal_exponent, M_minus, w, M_plus);
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, 0x58(%rsp)
movl %r8d, 0x60(%rsp)
cmpl %r8d, 0xc8(%rsp)
jne 0x87f1e
movq %rdi, 0x20(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
leaq 0xb0(%rsp), %r13
cmpl %r8d, 0x8(%r13)
jne 0x87f3a
movl %r8d, %edi
callq 0x87ff3
movq %rdx, %r12
leaq 0x68(%rsp), %r14
movq %rax, (%r14)
movl %r12d, 0x8(%r14)
movq %r13, %rdi
movq %r14, %rsi
callq 0x88128
movq %rax, %r15
movl %edx, %ebx
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
callq 0x88128
movq %rax, %r13
movl %edx, %ebp
leaq 0xc0(%rsp), %rdi
movq %r14, %rsi
callq 0x88128
incq %r13
decq %rax
shrq $0x20, %r12
negl %r12d
movq 0x30(%rsp), %rcx
movl %r12d, (%rcx)
movq %r15, 0x48(%rsp)
movl %ebx, 0x50(%rsp)
movq %rax, 0x38(%rsp)
movl %edx, 0x40(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rsp)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rcx, %rdx
movq %r13, %rcx
movl %ebp, %r8d
callq 0x88184
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x27eab(%rip), %rdi # 0xafdd0
leaq 0x27eee(%rip), %rdx # 0xafe1a
leaq 0x2d6c2(%rip), %rcx # 0xb55f5
movl $0x454b, %esi # imm = 0x454B
jmp 0x87f54
leaq 0x27e8f(%rip), %rdi # 0xafdd0
leaq 0x27ed2(%rip), %rdx # 0xafe1a
leaq 0x2d6bc(%rip), %rcx # 0xb560b
movl $0x454c, %esi # imm = 0x454C
xorl %eax, %eax
callq 0x23ef0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl6grisu2EPcRiS4_NS2_5diyfpES5_S5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov [rsp+0A8h+var_50], rcx
mov [rsp+0A8h+var_48], r8d
cmp [rsp+0A8h+arg_18], r8d
jnz loc_87F1E
mov [rsp+0A8h+var_88], rdi
mov [rsp+0A8h+var_80], rsi
mov [rsp+0A8h+var_78], rdx
lea r13, [rsp+0A8h+arg_0]
cmp [r13+8], r8d
jnz loc_87F3A
mov edi, r8d; this
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl36get_cached_power_for_binary_exponentEi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)
mov r12, rdx
lea r14, [rsp+0A8h+var_40]
mov [r14], rax
mov [r14+8], r12d
mov rdi, r13
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
mov r15, rax
mov ebx, edx
lea rdi, [rsp+0A8h+var_50]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
mov r13, rax
mov ebp, edx
lea rdi, [rsp+0A8h+arg_10]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
inc r13
dec rax
shr r12, 20h
neg r12d
mov rcx, [rsp+0A8h+var_78]
mov [rcx], r12d
mov qword ptr [rsp+0A8h+var_60], r15
mov dword ptr [rsp+0A8h+var_60+8], ebx
mov qword ptr [rsp+0A8h+var_70], rax
mov dword ptr [rsp+0A8h+var_70+8], edx
movups xmm0, [rsp+0A8h+var_70]
movups [rsp+0A8h+var_98], xmm0
movups xmm0, [rsp+0A8h+var_60]
movups [rsp+0A8h+var_A8], xmm0
mov rdi, [rsp+0A8h+var_88]
mov rsi, [rsp+0A8h+var_80]
mov rdx, rcx
mov rcx, r13
mov r8d, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl16grisu2_digit_genEPcRiS4_NS2_5diyfpES5_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(char *,int &,int &,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_87F1E:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMPlusEMMinusE; "m_plus.e == m_minus.e"
mov esi, 454Bh
jmp short loc_87F54
loc_87F3A:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMPlusEVE; "m_plus.e == v.e"
mov esi, 454Ch
loc_87F54:
xor eax, eax
call _ggml_abort
nop
| long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(
int a1,
int a2,
_DWORD *a3,
long long a4,
unsigned int a5,
long long a6,
char a7,
int a8,
char a9,
int a10)
{
long long cached_power_for_binary_exponent; // rax
int v11; // rdx^4
int v12; // r12^4
int v13; // edx
char v14; // r15
int v15; // edx
int v16; // ebx
int v17; // r13d
int v18; // edx
int v19; // ebp
char v20; // al
int v21; // edx
int v22; // r9d
long long v25; // [rsp+58h] [rbp-50h] BYREF
unsigned int v26; // [rsp+60h] [rbp-48h]
long long v27; // [rsp+68h] [rbp-40h] BYREF
int v28; // [rsp+70h] [rbp-38h]
v25 = a4;
v26 = a5;
if ( a10 == a5 )
{
if ( a8 == a5 )
{
cached_power_for_binary_exponent = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl *)a5,
a2);
v12 = v11;
v27 = cached_power_for_binary_exponent;
v28 = v13;
v14 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a7, &v27);
v16 = v15;
v17 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&v25, &v27);
v19 = v18;
v20 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a9, &v27);
*a3 = -v12;
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(
a1,
a2,
(_DWORD)a3,
v17 + 1,
v19,
v22,
v14,
v16,
v20 - 1,
v21);
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17740LL,
"GGML_ASSERT(%s) failed",
"m_plus.e == v.e");
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17739LL,
"GGML_ASSERT(%s) failed",
"m_plus.e == m_minus.e");
}
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
| grisu2:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV qword ptr [RSP + 0x58],RCX
MOV dword ptr [RSP + 0x60],R8D
CMP dword ptr [RSP + 0xc8],R8D
JNZ 0x00187f1e
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x30],RDX
LEA R13,[RSP + 0xb0]
CMP dword ptr [R13 + 0x8],R8D
JNZ 0x00187f3a
MOV EDI,R8D
CALL 0x00187ff3
MOV R12,RDX
LEA R14,[RSP + 0x68]
MOV qword ptr [R14],RAX
MOV dword ptr [R14 + 0x8],R12D
MOV RDI,R13
MOV RSI,R14
CALL 0x00188128
MOV R15,RAX
MOV EBX,EDX
LEA RDI,[RSP + 0x58]
MOV RSI,R14
CALL 0x00188128
MOV R13,RAX
MOV EBP,EDX
LEA RDI,[RSP + 0xc0]
MOV RSI,R14
CALL 0x00188128
INC R13
DEC RAX
SHR R12,0x20
NEG R12D
MOV RCX,qword ptr [RSP + 0x30]
MOV dword ptr [RCX],R12D
MOV qword ptr [RSP + 0x48],R15
MOV dword ptr [RSP + 0x50],EBX
MOV qword ptr [RSP + 0x38],RAX
MOV dword ptr [RSP + 0x40],EDX
MOVUPS XMM0,xmmword ptr [RSP + 0x38]
MOVUPS xmmword ptr [RSP + 0x10],XMM0
MOVUPS XMM0,xmmword ptr [RSP + 0x48]
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,RCX
MOV RCX,R13
MOV R8D,EBP
CALL 0x00188184
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00187f1e:
LEA RDI,[0x1afdd0]
LEA RDX,[0x1afe1a]
LEA RCX,[0x1b55f5]
MOV ESI,0x454b
JMP 0x00187f54
LAB_00187f3a:
LEA RDI,[0x1afdd0]
LEA RDX,[0x1afe1a]
LEA RCX,[0x1b560b]
MOV ESI,0x454c
LAB_00187f54:
XOR EAX,EAX
CALL 0x00123ef0
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) */
void nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2
(int8 param_1,int8 param_2,int *param_3,int8 param_4,int param_5,
int8 param_6,int8 param_7,int param_8,int8 param_9,int param_10)
{
int4 uVar1;
char *pcVar2;
int4 extraout_EDX;
int8 uVar3;
int1 auVar4 [16];
int1 auVar5 [12];
int1 auVar6 [12];
int4 uStack_64;
int8 local_50;
int local_48;
int8 local_40;
int4 local_38;
local_50 = param_4;
local_48 = param_5;
if (param_10 == param_5) {
if (param_8 == param_5) {
auVar4 = get_cached_power_for_binary_exponent(param_5);
local_40 = auVar4._0_8_;
local_38 = auVar4._8_4_;
uVar1 = diyfp::mul((diyfp *)¶m_7,(diyfp *)&local_40);
auVar5 = diyfp::mul((diyfp *)&local_50,(diyfp *)&local_40);
auVar6 = diyfp::mul((diyfp *)¶m_9,(diyfp *)&local_40);
*param_3 = -auVar4._12_4_;
grisu2_digit_gen(param_1,param_2,param_3,auVar5._0_8_ + 1,auVar5._8_4_,param_6,uVar1,
extraout_EDX,auVar6._0_8_ + -1,CONCAT44(uStack_64,auVar6._8_4_));
return;
}
pcVar2 = "m_plus.e == v.e";
uVar3 = 0x454c;
}
else {
pcVar2 = "m_plus.e == m_minus.e";
uVar3 = 0x454b;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3,
"GGML_ASSERT(%s) failed",pcVar2);
}
| |
36,246 | ConfigBoolean::ConfigBoolean(bool) | untodesu[P]voxelius/core/config.cc | ConfigBoolean::ConfigBoolean(bool default_value)
{
m_value = default_value;
m_string = ConfigBoolean::to_string(default_value);
} | O2 | cpp | ConfigBoolean::ConfigBoolean(bool):
pushq %r14
pushq %rbx
pushq %rax
leaq 0xbb0a5(%rip), %rax # 0x1092a0
movq %rax, (%rdi)
leaq 0x20(%rdi), %rax
movq %rax, 0x10(%rdi)
andq $0x0, 0x18(%rdi)
leaq 0x10(%rdi), %rbx
movb $0x0, 0x20(%rdi)
movb %sil, 0x8(%rdi)
leaq 0x6190c(%rip), %rcx # 0xafb2a
leaq 0x6190a(%rip), %rax # 0xafb2f
testl %esi, %esi
cmovneq %rcx, %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x17df0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x17ec8
movq %r14, %rdi
callq 0x17cd0
nop
| _ZN13ConfigBooleanC2Eb:
push r14
push rbx
push rax
lea rax, off_1092A0
mov [rdi], rax
lea rax, [rdi+20h]
mov [rdi+10h], rax
and qword ptr [rdi+18h], 0
lea rbx, [rdi+10h]
mov byte ptr [rdi+20h], 0
mov [rdi+8], sil
lea rcx, aTrue; "true"
lea rax, aFalse; "false"
test esi, esi
cmovnz rax, rcx
mov rdi, rbx
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc; std::string::assign(char const*)
add rsp, 8
pop rbx
pop r14
retn
mov r14, rax
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
| void ConfigBoolean::ConfigBoolean(
ConfigBoolean *this,
int a2,
long long a3,
long long a4,
long long a5,
long long a6)
{
const char *v6; // rax
*(_QWORD *)this = off_1092A0;
*((_QWORD *)this + 2) = (char *)this + 32;
*((_QWORD *)this + 3) = 0LL;
*((_BYTE *)this + 32) = 0;
*((_BYTE *)this + 8) = a2;
v6 = "false";
if ( a2 )
v6 = "true";
std::string::assign((char *)this + 16, v6, a3, "true", a5, a6);
}
| ConfigBoolean:
PUSH R14
PUSH RBX
PUSH RAX
LEA RAX,[0x2092a0]
MOV qword ptr [RDI],RAX
LEA RAX,[RDI + 0x20]
MOV qword ptr [RDI + 0x10],RAX
AND qword ptr [RDI + 0x18],0x0
LEA RBX,[RDI + 0x10]
MOV byte ptr [RDI + 0x20],0x0
MOV byte ptr [RDI + 0x8],SIL
LEA RCX,[0x1afb2a]
LEA RAX,[0x1afb2f]
TEST ESI,ESI
CMOVNZ RAX,RCX
LAB_0014e22b:
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00117df0
LAB_0014e236:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* ConfigBoolean::ConfigBoolean(bool) */
void __thiscall ConfigBoolean::ConfigBoolean(ConfigBoolean *this,bool param_1)
{
*(int ***)this = &PTR__ConfigBoolean_002092a0;
*(ConfigBoolean **)(this + 0x10) = this + 0x20;
*(int8 *)(this + 0x18) = 0;
this[0x20] = (ConfigBoolean)0x0;
this[8] = (ConfigBoolean)param_1;
/* try { // try from 0014e22b to 0014e235 has its CatchHandler @ 0014e23e */
std::__cxx11::string::assign((char *)(this + 0x10));
return;
}
| |
36,247 | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t&&, bool) | monkey531[P]llama/common/json.hpp | std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
} | O0 | cpp | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t&&, bool):
subq $0x148, %rsp # imm = 0x148
movb %dl, %al
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
andb $0x1, %al
movb %al, 0x127(%rsp)
movq 0x130(%rsp), %rdi
movq %rdi, 0x40(%rsp)
addq $0x20, %rdi
callq 0xb0040
testb $0x1, %al
jne 0xbadce
jmp 0xbadef
leaq 0x1538c9(%rip), %rdi # 0x20e69e
movl $0x1c28, %esi # imm = 0x1C28
leaq 0x153907(%rip), %rdx # 0x20e6e8
leaq 0x15484d(%rip), %rcx # 0x20f635
movb $0x0, %al
callq 0x59e90
movq 0x40(%rsp), %rdi
addq $0x20, %rdi
callq 0xb00c0
movq %rax, 0x110(%rsp)
movq %rdx, 0x118(%rsp)
leaq 0x110(%rsp), %rdi
callq 0xae0b0
xorb $-0x1, %al
testb $0x1, %al
jne 0xbae22
jmp 0xbae58
movb $0x0, 0x10f(%rsp)
movq $0x0, 0x100(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x10f(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0xb0bd0
jmp 0xbb2c1
movq 0x128(%rsp), %rsi
leaq 0xf0(%rsp), %rdi
callq 0xbb2f0
movb $0x1, %al
testb $0x1, 0x127(%rsp)
movb %al, 0x3f(%rsp)
jne 0xbaec0
movq 0x40(%rsp), %rdi
movq %rdi, %rax
subq $-0x80, %rax
movq %rax, 0x30(%rsp)
addq $0x8, %rdi
callq 0xb01c0
movq 0x30(%rsp), %rdi
movl %eax, %esi
movl $0x5, %edx
leaq 0xf0(%rsp), %rcx
callq 0xb0160
movb %al, 0x3e(%rsp)
jmp 0xbaeb6
movb 0x3e(%rsp), %al
movb %al, 0x3f(%rsp)
jmp 0xbaec0
movb 0x3f(%rsp), %al
andb $0x1, %al
movb %al, 0xef(%rsp)
testb $0x1, 0xef(%rsp)
jne 0xbaf40
movb $0x0, 0xdb(%rsp)
movq $0x0, 0xd0(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xdb(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0xb0bd0
jmp 0xbaf0a
movl $0x1, 0xcc(%rsp)
jmp 0xbb2b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe0(%rsp)
movl %eax, 0xdc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0xa19a0
jmp 0xbb2d8
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb0c00
testb $0x1, %al
jne 0xbaf54
jmp 0xbafd1
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x28(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0xb0c50
movq 0x28(%rsp), %rsi
movq 0x40(%rsp), %rax
movq (%rax), %rdi
callq 0xaabe0
movq 0x28(%rsp), %rdi
callq 0xa19a0
movq 0x40(%rsp), %rax
movb $0x1, 0xb7(%rsp)
movq (%rax), %rax
movq %rax, 0xa8(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xb7(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xb0cd0
jmp 0xbafc1
movl $0x1, 0xcc(%rsp)
jmp 0xbb2b4
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb07b0
cmpq $0x0, (%rax)
jne 0xbb028
movb $0x0, 0xa7(%rsp)
movq $0x0, 0x98(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xa7(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0xb0bd0
jmp 0xbb018
movl $0x1, 0xcc(%rsp)
jmp 0xbb2b4
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb07b0
movq (%rax), %rdi
callq 0xb0d00
testb $0x1, %al
jne 0xbb07f
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb07b0
movq (%rax), %rdi
callq 0xb0d20
testb $0x1, %al
jne 0xbb07f
leaq 0x15363b(%rip), %rdi # 0x20e69e
leaq 0x15367e(%rip), %rdx # 0x20e6e8
leaq 0x1545d8(%rip), %rcx # 0x20f649
xorl %eax, %eax
movl $0x1c4b, %esi # imm = 0x1C4B
callq 0x59e90
jmp 0xbb07f
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb07b0
movq (%rax), %rdi
callq 0xb0d00
testb $0x1, %al
jne 0xbb09b
jmp 0xbb118
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb07b0
movq (%rax), %rax
movq 0x8(%rax), %rdi
leaq 0xf0(%rsp), %rsi
callq 0xb0d40
jmp 0xbb0bf
movq 0x40(%rsp), %rdi
movb $0x1, 0x97(%rsp)
addq $0x8, %rdi
callq 0xb07b0
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0xb0dc0
movq %rax, 0x88(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x97(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0xb0cd0
jmp 0xbb108
movl $0x1, 0xcc(%rsp)
jmp 0xbb2b4
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb07b0
movq (%rax), %rdi
callq 0xb0d20
testb $0x1, %al
jne 0xbb155
leaq 0x153565(%rip), %rdi # 0x20e69e
leaq 0x1535a8(%rip), %rdx # 0x20e6e8
leaq 0x154522(%rip), %rcx # 0x20f669
xorl %eax, %eax
movl $0x1c55, %esi # imm = 0x1C55
callq 0x59e90
jmp 0xbb155
movq 0x40(%rsp), %rdi
addq $0x48, %rdi
callq 0xb0040
testb $0x1, %al
jne 0xbb169
jmp 0xbb18c
leaq 0x15352e(%rip), %rdi # 0x20e69e
leaq 0x153571(%rip), %rdx # 0x20e6e8
leaq 0x154509(%rip), %rcx # 0x20f687
xorl %eax, %eax
movl $0x1c57, %esi # imm = 0x1C57
callq 0x59e90
jmp 0xbb18c
movq 0x40(%rsp), %rdi
addq $0x48, %rdi
callq 0xb00c0
movq %rdx, 0x18(%rsp)
movq %rax, 0x20(%rsp)
jmp 0xbb1a6
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
leaq 0x70(%rsp), %rdi
callq 0xae0b0
movq 0x40(%rsp), %rdi
movb %al, 0x87(%rsp)
addq $0x48, %rdi
callq 0xb0140
jmp 0xbb1db
testb $0x1, 0x87(%rsp)
jne 0xbb21c
movb $0x0, 0x6f(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x6f(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0xb0bd0
jmp 0xbb20c
movl $0x1, 0xcc(%rsp)
jmp 0xbb2b4
movq 0x40(%rsp), %rax
cmpq $0x0, 0x70(%rax)
jne 0xbb24b
leaq 0x15346f(%rip), %rdi # 0x20e69e
leaq 0x1534b2(%rip), %rdx # 0x20e6e8
leaq 0x154462(%rip), %rcx # 0x20f69f
xorl %eax, %eax
movl $0x1c60, %esi # imm = 0x1C60
callq 0x59e90
jmp 0xbb24b
leaq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0xb0c50
movq 0x40(%rsp), %rax
movq 0x8(%rsp), %rsi
movq %rax, %rcx
addq $0x70, %rcx
movq %rcx, 0x10(%rsp)
movq 0x70(%rax), %rdi
callq 0xaabe0
movq 0x8(%rsp), %rdi
callq 0xa19a0
movq 0x10(%rsp), %rdx
movb $0x1, 0x4f(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x4f(%rsp), %rsi
callq 0xb0e00
jmp 0xbb2a9
movl $0x1, 0xcc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0xa19a0
movb 0x138(%rsp), %al
movq 0x140(%rsp), %rdx
addq $0x148, %rsp # imm = 0x148
retq
movq 0xe0(%rsp), %rdi
callq 0x59b90
nopw %cs:(%rax,%rax)
nop
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRlEESt4pairIbPSF_EOT_b:
sub rsp, 148h
mov al, dl
mov [rsp+148h+var_18], rdi
mov [rsp+148h+var_20], rsi
and al, 1
mov [rsp+148h+var_21], al
mov rdi, [rsp+148h+var_18]
mov [rsp+148h+var_108], rdi
add rdi, 20h ; ' '
call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void)
test al, 1
jnz short loc_BADCE
jmp short loc_BADEF
loc_BADCE:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1C28h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov al, 0
call _ggml_abort
loc_BADEF:
mov rdi, [rsp+148h+var_108]
add rdi, 20h ; ' '
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_38], rax
mov [rsp+148h+var_30], rdx
lea rdi, [rsp+148h+var_38]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
xor al, 0FFh
test al, 1
jnz short loc_BAE22
jmp short loc_BAE58
loc_BAE22:
mov [rsp+148h+var_39], 0
mov [rsp+148h+var_48], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_39]
lea rdx, [rsp+148h+var_48]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp loc_BB2C1
loc_BAE58:
mov rsi, [rsp+148h+var_20]
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRllTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
mov al, 1
test [rsp+148h+var_21], 1
mov [rsp+148h+var_109], al
jnz short loc_BAEC0
mov rdi, [rsp+148h+var_108]
mov rax, rdi
sub rax, 0FFFFFFFFFFFFFF80h
mov [rsp+148h+var_118], rax
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void)
mov rdi, [rsp+148h+var_118]
mov esi, eax
mov edx, 5
lea rcx, [rsp+148h+var_58]
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
mov [rsp+148h+var_10A], al
jmp short $+2
loc_BAEB6:
mov al, [rsp+148h+var_10A]
mov [rsp+148h+var_109], al
jmp short $+2
loc_BAEC0:
mov al, [rsp+148h+var_109]
and al, 1
mov [rsp+148h+var_59], al
test [rsp+148h+var_59], 1
jnz short loc_BAF40
mov [rsp+148h+var_6D], 0
mov [rsp+148h+var_78], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_6D]
lea rdx, [rsp+148h+var_78]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BAF0A:
mov [rsp+148h+var_7C], 1
jmp loc_BB2B4
mov rcx, rax
mov eax, edx
mov [rsp+arg_D8], rcx
mov [rsp+arg_D4], eax
lea rdi, [rsp+arg_E8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp loc_BB2D8
loc_BAF40:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void)
test al, 1
jnz short loc_BAF54
jmp short loc_BAFD1
loc_BAF54:
lea rdi, [rsp+148h+var_90]
mov [rsp+148h+var_120], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rsi, [rsp+148h+var_120]
mov rax, [rsp+148h+var_108]
mov rdi, [rax]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+148h+var_120]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rax, [rsp+148h+var_108]
mov [rsp+148h+var_91], 1
mov rax, [rax]
mov [rsp+148h+var_A0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_91]
lea rdx, [rsp+148h+var_A0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BAFC1:
mov [rsp+148h+var_7C], 1
jmp loc_BB2B4
loc_BAFD1:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
cmp qword ptr [rax], 0
jnz short loc_BB028
mov [rsp+148h+var_A1], 0
mov [rsp+148h+var_B0], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_A1]
lea rdx, [rsp+148h+var_B0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BB018:
mov [rsp+148h+var_7C], 1
jmp loc_BB2B4
loc_BB028:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_BB07F
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
test al, 1
jnz short loc_BB07F
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
xor eax, eax
mov esi, 1C4Bh
call _ggml_abort
jmp short $+2
loc_BB07F:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_BB09B
jmp short loc_BB118
loc_BB09B:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
lea rsi, [rsp+148h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
jmp short $+2
loc_BB0BF:
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_B1], 1
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void)
mov [rsp+148h+var_C0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_B1]
lea rdx, [rsp+148h+var_C0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BB108:
mov [rsp+148h+var_7C], 1
jmp loc_BB2B4
loc_BB118:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
test al, 1
jnz short loc_BB155
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackBackIs+20h; "ref_stack.back()->is_object()"
xor eax, eax
mov esi, 1C55h
call _ggml_abort
jmp short $+2
loc_BB155:
mov rdi, [rsp+148h+var_108]
add rdi, 48h ; 'H'
call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void)
test al, 1
jnz short loc_BB169
jmp short loc_BB18C
loc_BB169:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()"
xor eax, eax
mov esi, 1C57h
call _ggml_abort
jmp short $+2
loc_BB18C:
mov rdi, [rsp+148h+var_108]
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_130], rdx
mov [rsp+148h+var_128], rax
jmp short $+2
loc_BB1A6:
mov rax, [rsp+148h+var_130]
mov rcx, [rsp+148h+var_128]
mov [rsp+148h+var_D8], rcx
mov [rsp+148h+var_D0], rax
lea rdi, [rsp+148h+var_D8]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_C1], al
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void)
jmp short $+2
loc_BB1DB:
test [rsp+148h+var_C1], 1
jnz short loc_BB21C
mov [rsp+148h+var_D9], 0
mov [rsp+148h+var_E8], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_D9]
lea rdx, [rsp+148h+var_E8]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BB20C:
mov [rsp+148h+var_7C], 1
jmp loc_BB2B4
loc_BB21C:
mov rax, [rsp+148h+var_108]
cmp qword ptr [rax+70h], 0
jnz short loc_BB24B
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aObjectElement; "object_element"
xor eax, eax
mov esi, 1C60h
call _ggml_abort
jmp short $+2
loc_BB24B:
lea rdi, [rsp+148h+var_F8]
mov [rsp+148h+var_140], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rax, [rsp+148h+var_108]
mov rsi, [rsp+148h+var_140]
mov rcx, rax
add rcx, 70h ; 'p'
mov [rsp+148h+var_138], rcx
mov rdi, [rax+70h]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+148h+var_140]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdx, [rsp+148h+var_138]
mov [rsp+148h+var_F9], 1
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_F9]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
jmp short $+2
loc_BB2A9:
mov [rsp+148h+var_7C], 1
loc_BB2B4:
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_BB2C1:
mov al, [rsp+148h+var_10]
mov rdx, [rsp+148h+var_8]
add rsp, 148h
retn
loc_BB2D8:
mov rdi, [rsp+arg_D8]
call __Unwind_Resume
| char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<long &>(
long long a1,
long long a2,
char a3)
{
long long v3; // rdx
int v4; // eax
_BYTE **v5; // rax
_BYTE **v6; // rax
_BYTE **v7; // rax
long long v8; // rax
long long v9; // rax
_BYTE **v10; // rax
long long v11; // rdx
char v13; // [rsp+3Fh] [rbp-109h]
char v14; // [rsp+4Fh] [rbp-F9h] BYREF
__int128 v15; // [rsp+50h] [rbp-F8h] BYREF
long long v16; // [rsp+60h] [rbp-E8h]
char v17; // [rsp+6Fh] [rbp-D9h] BYREF
_QWORD v18[2]; // [rsp+70h] [rbp-D8h] BYREF
bool v19; // [rsp+87h] [rbp-C1h]
long long v20; // [rsp+88h] [rbp-C0h] BYREF
char v21; // [rsp+97h] [rbp-B1h] BYREF
long long v22; // [rsp+98h] [rbp-B0h]
char v23; // [rsp+A7h] [rbp-A1h] BYREF
long long v24; // [rsp+A8h] [rbp-A0h] BYREF
char v25; // [rsp+B7h] [rbp-91h] BYREF
__int128 v26; // [rsp+B8h] [rbp-90h] BYREF
int v27; // [rsp+CCh] [rbp-7Ch]
long long v28; // [rsp+D0h] [rbp-78h]
_BYTE v29[21]; // [rsp+DBh] [rbp-6Dh] BYREF
_BYTE v30[16]; // [rsp+F0h] [rbp-58h] BYREF
long long v31; // [rsp+100h] [rbp-48h]
char v32; // [rsp+10Fh] [rbp-39h] BYREF
_QWORD v33[2]; // [rsp+110h] [rbp-38h] BYREF
char v34; // [rsp+127h] [rbp-21h]
long long v35; // [rsp+128h] [rbp-20h]
long long v36; // [rsp+130h] [rbp-18h]
_BYTE v37[8]; // [rsp+138h] [rbp-10h] BYREF
v36 = a1;
v35 = a2;
v34 = a3 & 1;
if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 32)) & 1) != 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7208LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
v33[0] = std::vector<bool>::back(a1 + 32);
v33[1] = v3;
if ( std::_Bit_reference::operator bool((long long)v33) )
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRllTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
v30,
v35);
v13 = 1;
if ( (v34 & 1) == 0 )
{
v4 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::size((_QWORD *)(a1 + 8));
v13 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()(
(std::_Function_base *)(a1 + 128),
v4,
5,
(long long)v30);
}
v29[20] = v13 & 1;
if ( (v13 & 1) != 0 )
{
if ( (std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(a1 + 8) & 1) != 0 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
&v26,
(long long)v30);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)a1,
(long long)&v26);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v26);
v25 = 1;
v24 = *(_QWORD *)a1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v25,
&v24);
v27 = 1;
}
else if ( *(_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) )
{
v5 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v5) )
{
v6 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v6) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7243LL,
"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_array() || ref_stack.back()->is_object()");
}
v7 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v7) )
{
v8 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*(_QWORD *)(*(_QWORD *)v8 + 8LL),
(long long)v30);
v21 = 1;
v9 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
v20 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back(*(_QWORD *)(*(_QWORD *)v9 + 8LL));
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v21,
&v20);
v27 = 1;
}
else
{
v10 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v10) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7253LL,
"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_object()");
if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 72)) & 1) != 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7255LL,
"GGML_ASSERT(%s) failed",
"!key_keep_stack.empty()");
v18[0] = std::vector<bool>::back(a1 + 72);
v18[1] = v11;
v19 = std::_Bit_reference::operator bool((long long)v18);
std::vector<bool>::pop_back(a1 + 72);
if ( v19 )
{
if ( !*(_QWORD *)(a1 + 112) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7264LL,
"GGML_ASSERT(%s) failed",
"object_element");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
&v15,
(long long)v30);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)(a1 + 112),
(long long)&v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v15);
v14 = 1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_(
(long long)v37,
&v14,
(_QWORD *)(a1 + 112));
v27 = 1;
}
else
{
v17 = 0;
v16 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v17);
v27 = 1;
}
}
}
else
{
v23 = 0;
v22 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v23);
v27 = 1;
}
}
else
{
v29[0] = 0;
v28 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
v29);
v27 = 1;
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v30);
}
else
{
v32 = 0;
v31 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v32);
}
return v37[0];
}
| handle_value<long&>:
SUB RSP,0x148
MOV AL,DL
MOV qword ptr [RSP + 0x130],RDI
MOV qword ptr [RSP + 0x128],RSI
AND AL,0x1
MOV byte ptr [RSP + 0x127],AL
MOV RDI,qword ptr [RSP + 0x130]
MOV qword ptr [RSP + 0x40],RDI
ADD RDI,0x20
CALL 0x001b0040
TEST AL,0x1
JNZ 0x001badce
JMP 0x001badef
LAB_001badce:
LEA RDI,[0x30e69e]
MOV ESI,0x1c28
LEA RDX,[0x30e6e8]
LEA RCX,[0x30f635]
MOV AL,0x0
CALL 0x00159e90
LAB_001badef:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x20
CALL 0x001b00c0
MOV qword ptr [RSP + 0x110],RAX
MOV qword ptr [RSP + 0x118],RDX
LEA RDI,[RSP + 0x110]
CALL 0x001ae0b0
XOR AL,0xff
TEST AL,0x1
JNZ 0x001bae22
JMP 0x001bae58
LAB_001bae22:
MOV byte ptr [RSP + 0x10f],0x0
MOV qword ptr [RSP + 0x100],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x10f]
LEA RDX,[RSP + 0x100]
CALL 0x001b0bd0
JMP 0x001bb2c1
LAB_001bae58:
MOV RSI,qword ptr [RSP + 0x128]
LEA RDI,[RSP + 0xf0]
CALL 0x001bb2f0
MOV AL,0x1
TEST byte ptr [RSP + 0x127],0x1
MOV byte ptr [RSP + 0x3f],AL
JNZ 0x001baec0
MOV RDI,qword ptr [RSP + 0x40]
MOV RAX,RDI
SUB RAX,-0x80
MOV qword ptr [RSP + 0x30],RAX
ADD RDI,0x8
CALL 0x001b01c0
MOV RDI,qword ptr [RSP + 0x30]
MOV ESI,EAX
LAB_001bae9e:
MOV EDX,0x5
LEA RCX,[RSP + 0xf0]
CALL 0x001b0160
MOV byte ptr [RSP + 0x3e],AL
JMP 0x001baeb6
LAB_001baeb6:
MOV AL,byte ptr [RSP + 0x3e]
MOV byte ptr [RSP + 0x3f],AL
JMP 0x001baec0
LAB_001baec0:
MOV AL,byte ptr [RSP + 0x3f]
AND AL,0x1
MOV byte ptr [RSP + 0xef],AL
TEST byte ptr [RSP + 0xef],0x1
JNZ 0x001baf40
MOV byte ptr [RSP + 0xdb],0x0
MOV qword ptr [RSP + 0xd0],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xdb]
LEA RDX,[RSP + 0xd0]
CALL 0x001b0bd0
JMP 0x001baf0a
LAB_001baf0a:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001bb2b4
LAB_001baf40:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b0c00
TEST AL,0x1
JNZ 0x001baf54
JMP 0x001bafd1
LAB_001baf54:
LEA RDI,[RSP + 0xb8]
MOV qword ptr [RSP + 0x28],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x001b0c50
MOV RSI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x40]
MOV RDI,qword ptr [RAX]
CALL 0x001aabe0
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001a19a0
MOV RAX,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0xb7],0x1
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xa8],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xb7]
LEA RDX,[RSP + 0xa8]
CALL 0x001b0cd0
JMP 0x001bafc1
LAB_001bafc1:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001bb2b4
LAB_001bafd1:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b07b0
CMP qword ptr [RAX],0x0
JNZ 0x001bb028
MOV byte ptr [RSP + 0xa7],0x0
MOV qword ptr [RSP + 0x98],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xa7]
LEA RDX,[RSP + 0x98]
CALL 0x001b0bd0
JMP 0x001bb018
LAB_001bb018:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001bb2b4
LAB_001bb028:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b07b0
MOV RDI,qword ptr [RAX]
CALL 0x001b0d00
TEST AL,0x1
JNZ 0x001bb07f
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b07b0
MOV RDI,qword ptr [RAX]
CALL 0x001b0d20
TEST AL,0x1
JNZ 0x001bb07f
LEA RDI,[0x30e69e]
LEA RDX,[0x30e6e8]
LEA RCX,[0x30f649]
XOR EAX,EAX
MOV ESI,0x1c4b
CALL 0x00159e90
JMP 0x001bb07f
LAB_001bb07f:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b07b0
MOV RDI,qword ptr [RAX]
CALL 0x001b0d00
TEST AL,0x1
JNZ 0x001bb09b
JMP 0x001bb118
LAB_001bb09b:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b07b0
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0xf0]
CALL 0x001b0d40
JMP 0x001bb0bf
LAB_001bb0bf:
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x97],0x1
ADD RDI,0x8
CALL 0x001b07b0
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001b0dc0
MOV qword ptr [RSP + 0x88],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x97]
LEA RDX,[RSP + 0x88]
CALL 0x001b0cd0
JMP 0x001bb108
LAB_001bb108:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001bb2b4
LAB_001bb118:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b07b0
MOV RDI,qword ptr [RAX]
CALL 0x001b0d20
TEST AL,0x1
JNZ 0x001bb155
LEA RDI,[0x30e69e]
LEA RDX,[0x30e6e8]
LEA RCX,[0x30f669]
XOR EAX,EAX
MOV ESI,0x1c55
CALL 0x00159e90
JMP 0x001bb155
LAB_001bb155:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x48
CALL 0x001b0040
TEST AL,0x1
JNZ 0x001bb169
JMP 0x001bb18c
LAB_001bb169:
LEA RDI,[0x30e69e]
LEA RDX,[0x30e6e8]
LEA RCX,[0x30f687]
XOR EAX,EAX
MOV ESI,0x1c57
CALL 0x00159e90
JMP 0x001bb18c
LAB_001bb18c:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x48
CALL 0x001b00c0
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001bb1a6
LAB_001bb1a6:
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x70],RCX
MOV qword ptr [RSP + 0x78],RAX
LEA RDI,[RSP + 0x70]
CALL 0x001ae0b0
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x87],AL
ADD RDI,0x48
CALL 0x001b0140
JMP 0x001bb1db
LAB_001bb1db:
TEST byte ptr [RSP + 0x87],0x1
JNZ 0x001bb21c
MOV byte ptr [RSP + 0x6f],0x0
MOV qword ptr [RSP + 0x60],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x6f]
LEA RDX,[RSP + 0x60]
CALL 0x001b0bd0
JMP 0x001bb20c
LAB_001bb20c:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001bb2b4
LAB_001bb21c:
MOV RAX,qword ptr [RSP + 0x40]
CMP qword ptr [RAX + 0x70],0x0
JNZ 0x001bb24b
LEA RDI,[0x30e69e]
LEA RDX,[0x30e6e8]
LEA RCX,[0x30f69f]
XOR EAX,EAX
MOV ESI,0x1c60
CALL 0x00159e90
JMP 0x001bb24b
LAB_001bb24b:
LEA RDI,[RSP + 0x50]
MOV qword ptr [RSP + 0x8],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x001b0c50
MOV RAX,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x8]
MOV RCX,RAX
ADD RCX,0x70
MOV qword ptr [RSP + 0x10],RCX
MOV RDI,qword ptr [RAX + 0x70]
CALL 0x001aabe0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001a19a0
MOV RDX,qword ptr [RSP + 0x10]
MOV byte ptr [RSP + 0x4f],0x1
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x4f]
CALL 0x001b0e00
LAB_001bb2a7:
JMP 0x001bb2a9
LAB_001bb2a9:
MOV dword ptr [RSP + 0xcc],0x1
LAB_001bb2b4:
LEA RDI,[RSP + 0xf0]
CALL 0x001a19a0
LAB_001bb2c1:
MOV AL,byte ptr [RSP + 0x138]
MOV RDX,qword ptr [RSP + 0x140]
ADD RSP,0x148
RET
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>*>
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::handle_value<long&>(long&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<long&>
(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,long *param_1,bool param_2)
{
bool bVar1;
int4 uVar2;
ulong uVar3;
long *plVar4;
int8 *puVar5;
int8 uVar6;
int1 auVar7 [16];
byte local_109;
int1 local_f9;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_f8 [16];
int8 local_e8;
int1 local_d9;
int1 local_d8 [16];
byte local_c1;
int8 local_c0;
int1 local_b1;
int8 local_b0;
int1 local_a1;
int8 local_a0;
int1 local_91;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_90 [20];
int4 local_7c;
int8 local_78;
int1 local_6d [20];
byte local_59;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_58 [16];
int8 local_48;
int1 local_39;
_Bit_reference local_38 [23];
byte local_21;
long *local_20;
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_18;
int1 local_10 [8];
int8 local_8;
local_21 = param_2;
local_20 = param_1;
local_18 = this;
uVar3 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if ((uVar3 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
local_38._0_16_ =
std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
bVar1 = std::_Bit_reference::operator_cast_to_bool(local_38);
if (((bVar1 ^ 0xffU) & 1) == 0) {
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRllTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_58,local_20);
local_109 = 1;
if ((local_21 & 1) == 0) {
uVar2 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
/* try { // try from 001bae9e to 001bb2a6 has its CatchHandler @ 001baf1a */
local_109 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
*)(this + 0x80),uVar2,5,local_58);
}
local_59 = local_109 & 1;
if (local_59 == 0) {
local_6d[0] = 0;
local_78 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,local_6d,&local_78);
}
else {
uVar3 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if ((uVar3 & 1) == 0) {
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if (*plVar4 == 0) {
local_a1 = 0;
local_b0 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_a1,&local_b0);
}
else {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c4b,"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_array() || ref_stack.back()->is_object()");
}
}
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c55,"GGML_ASSERT(%s) failed","ref_stack.back()->is_object()");
}
uVar3 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x48));
if ((uVar3 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c57,"GGML_ASSERT(%s) failed","!key_keep_stack.empty()");
}
local_d8 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
local_c1 = std::_Bit_reference::operator_cast_to_bool((_Bit_reference *)local_d8);
std::vector<bool,std::allocator<bool>>::pop_back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
if ((local_c1 & 1) == 0) {
local_d9 = 0;
local_e8 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_d9,&local_e8);
}
else {
if (*(long *)(this + 0x70) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c60,"GGML_ASSERT(%s) failed","object_element");
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_f8,local_58);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),local_f8);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_f8);
local_f9 = 1;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
(local_10,&local_f9,this + 0x70);
}
}
else {
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar4 + 8),local_58);
local_b1 = 1;
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
local_c0 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar4 + 8));
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_b1,&local_c0);
}
}
}
else {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_90,local_58);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,local_90);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_90);
local_91 = 1;
local_a0 = *(int8 *)this;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_91,&local_a0);
}
}
local_7c = 1;
uVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_58);
}
else {
local_39 = 0;
local_48 = 0;
uVar6 = _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_39,&local_48);
}
auVar7._1_7_ = (int7)((ulong)uVar6 >> 8);
auVar7[0] = local_10[0];
auVar7._8_8_ = local_8;
return auVar7;
}
| |
36,248 | js_thisNumberValue | bluesky950520[P]quickjs/quickjs.c | static JSValue js_thisNumberValue(JSContext *ctx, JSValue this_val)
{
if (JS_IsNumber(this_val))
return js_dup(this_val);
if (JS_VALUE_GET_TAG(this_val) == JS_TAG_OBJECT) {
JSObject *p = JS_VALUE_GET_OBJ(this_val);
if (p->class_id == JS_CLASS_NUMBER) {
if (JS_IsNumber(p->u.object_data))
return js_dup(p->u.object_data);
}
}
return JS_ThrowTypeError(ctx, "not a number");
} | O1 | c | js_thisNumberValue:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rsi, 0x8(%rsp)
cmpl $0x7, %edx
je 0x7a721
testl %edx, %edx
jne 0x7a732
movq %rbx, (%rsp)
cmpl $-0x9, %edx
jb 0x7a782
movq (%rsp), %rax
incl (%rax)
jmp 0x7a782
cmpl $-0x1, %edx
jne 0x7a76d
movq 0x8(%rsp), %rcx
movb $0x1, %al
cmpw $0x4, 0x6(%rcx)
jne 0x7a769
movq 0x38(%rcx), %rdx
cmpl $0x7, %edx
je 0x7a752
testl %edx, %edx
jne 0x7a769
movq 0x30(%rcx), %rbx
movq %rbx, (%rsp)
cmpl $-0x9, %edx
jb 0x7a765
movq (%rsp), %rax
incl (%rax)
xorl %eax, %eax
jmp 0x7a769
testb %al, %al
je 0x7a782
leaq 0x25ad6(%rip), %rsi # 0xa024a
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x22567
movl $0x6, %edx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
| js_thisNumberValue:
push rbx
sub rsp, 10h
mov rbx, rsi
mov [rsp+18h+var_10], rsi
cmp edx, 7
jz short loc_7A721
test edx, edx
jnz short loc_7A732
loc_7A721:
mov [rsp+18h+var_18], rbx
cmp edx, 0FFFFFFF7h
jb short loc_7A782
mov rax, [rsp+18h+var_18]
inc dword ptr [rax]
jmp short loc_7A782
loc_7A732:
cmp edx, 0FFFFFFFFh
jnz short loc_7A76D
mov rcx, [rsp+18h+var_10]
mov al, 1
cmp word ptr [rcx+6], 4
jnz short loc_7A769
mov rdx, [rcx+38h]
cmp edx, 7
jz short loc_7A752
test edx, edx
jnz short loc_7A769
loc_7A752:
mov rbx, [rcx+30h]
mov [rsp+18h+var_18], rbx
cmp edx, 0FFFFFFF7h
jb short loc_7A765
mov rax, [rsp+18h+var_18]
inc dword ptr [rax]
loc_7A765:
xor eax, eax
jmp short $+2
loc_7A769:
test al, al
jz short loc_7A782
loc_7A76D:
lea rsi, aSizeIsNotANumb+9; "not a number"
xor ebx, ebx
xor eax, eax
call JS_ThrowTypeError
mov edx, 6
loc_7A782:
mov rax, rbx
add rsp, 10h
pop rbx
retn
| long long js_thisNumberValue(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v14; // rbx
char v15; // al
char v17; // [rsp+0h] [rbp-18h]
v14 = a2;
if ( (_DWORD)a3 != 7 && (_DWORD)a3 )
{
if ( (_DWORD)a3 != -1 )
goto LABEL_10;
a4 = a2;
v15 = 1;
if ( *(_WORD *)(a2 + 6) == 4 )
{
a3 = *(_QWORD *)(a2 + 56);
if ( (_DWORD)a3 == 7 || !(_DWORD)a3 )
{
v14 = *(_QWORD *)(a2 + 48);
v17 = v14;
v15 = 0;
}
}
if ( v15 )
{
LABEL_10:
v14 = 0LL;
JS_ThrowTypeError(a1, (long long)"not a number", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v17);
}
}
return v14;
}
| |||
36,249 | js_thisNumberValue | bluesky950520[P]quickjs/quickjs.c | static JSValue js_thisNumberValue(JSContext *ctx, JSValue this_val)
{
if (JS_IsNumber(this_val))
return js_dup(this_val);
if (JS_VALUE_GET_TAG(this_val) == JS_TAG_OBJECT) {
JSObject *p = JS_VALUE_GET_OBJ(this_val);
if (p->class_id == JS_CLASS_NUMBER) {
if (JS_IsNumber(p->u.object_data))
return js_dup(p->u.object_data);
}
}
return JS_ThrowTypeError(ctx, "not a number");
} | O2 | c | js_thisNumberValue:
pushq %rbx
movq %rsi, %rbx
testl %edx, %edx
je 0x66ebf
cmpl $0x7, %edx
je 0x66ebf
cmpl $-0x1, %edx
jne 0x66eac
cmpw $0x4, 0x6(%rbx)
jne 0x66eac
movq 0x38(%rbx), %rdx
cmpl $0x7, %edx
je 0x66ea6
testl %edx, %edx
jne 0x66eac
movq 0x30(%rbx), %rbx
jmp 0x66ebf
leaq 0x202d1(%rip), %rsi # 0x87184
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x1c64d
pushq $0x6
popq %rdx
movq %rbx, %rax
popq %rbx
retq
| js_thisNumberValue:
push rbx
mov rbx, rsi
test edx, edx
jz short loc_66EBF
cmp edx, 7
jz short loc_66EBF
cmp edx, 0FFFFFFFFh
jnz short loc_66EAC
cmp word ptr [rbx+6], 4
jnz short loc_66EAC
mov rdx, [rbx+38h]
cmp edx, 7
jz short loc_66EA6
test edx, edx
jnz short loc_66EAC
loc_66EA6:
mov rbx, [rbx+30h]
jmp short loc_66EBF
loc_66EAC:
lea rsi, aSizeIsNotANumb+9; "not a number"
xor ebx, ebx
xor eax, eax
call JS_ThrowTypeError
push 6
pop rdx
loc_66EBF:
mov rax, rbx
pop rbx
retn
| long long js_thisNumberValue(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v14; // rbx
char v16; // [rsp+0h] [rbp-8h]
v14 = a2;
if ( (_DWORD)a3 && (_DWORD)a3 != 7 )
{
if ( (_DWORD)a3 == -1 && *(_WORD *)(a2 + 6) == 4 && ((a3 = *(_QWORD *)(a2 + 56), (_DWORD)a3 == 7) || !(_DWORD)a3) )
{
return *(_QWORD *)(a2 + 48);
}
else
{
v14 = 0LL;
JS_ThrowTypeError(a1, (long long)"not a number", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v16);
}
}
return v14;
}
| js_thisNumberValue:
PUSH RBX
MOV RBX,RSI
TEST EDX,EDX
JZ 0x00166ebf
CMP EDX,0x7
JZ 0x00166ebf
CMP EDX,-0x1
JNZ 0x00166eac
CMP word ptr [RBX + 0x6],0x4
JNZ 0x00166eac
MOV RDX,qword ptr [RBX + 0x38]
CMP EDX,0x7
JZ 0x00166ea6
TEST EDX,EDX
JNZ 0x00166eac
LAB_00166ea6:
MOV RBX,qword ptr [RBX + 0x30]
JMP 0x00166ebf
LAB_00166eac:
LEA RSI,[0x187184]
XOR EBX,EBX
XOR EAX,EAX
CALL 0x0011c64d
PUSH 0x6
POP RDX
LAB_00166ebf:
MOV RAX,RBX
POP RBX
RET
|
int1 [16] js_thisNumberValue(int8 param_1,long param_2,int8 param_3)
{
int iVar1;
int1 auVar2 [16];
iVar1 = (int)param_3;
if ((iVar1 != 0) && (iVar1 != 7)) {
if ((iVar1 == -1) && (*(short *)(param_2 + 6) == 4)) {
param_3 = *(int8 *)(param_2 + 0x38);
if (((int)param_3 == 7) || ((int)param_3 == 0)) {
param_2 = *(long *)(param_2 + 0x30);
goto LAB_00166ebf;
}
}
param_2 = 0;
JS_ThrowTypeError(param_1,"not a number");
param_3 = 6;
}
LAB_00166ebf:
auVar2._8_8_ = param_3;
auVar2._0_8_ = param_2;
return auVar2;
}
| |
36,250 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> minja::Value::get<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 | inline json Value::get<json>() const {
if (is_primitive()) return primitive_;
if (is_null()) return json();
if (array_) {
std::vector<json> res;
for (const auto& item : *array_) {
res.push_back(item.get<json>());
}
return res;
}
if (object_) {
json res = json::object();
for (const auto& [key, value] : *object_) {
if (key.is_string()) {
res[key.get<std::string>()] = value.get<json>();
} else if (key.is_primitive()) {
res[key.dump()] = value.get<json>();
} else {
throw std::runtime_error("Invalid key type for conversion to JSON: " + key.dump());
}
}
if (is_callable()) {
res["__callable__"] = true;
}
return res;
}
throw std::runtime_error("get<json> not defined for this value type: " + dump());
} | 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> minja::Value::get<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 $0xb8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rsi), %rax
movq 0x20(%rsi), %rcx
movq %rax, %rsi
orq %rcx, %rsi
movq 0x30(%r14), %rdx
orq %rdx, %rsi
jne 0x79db8
addq $0x40, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2faf6
jmp 0x7a00e
testq %rdx, %rdx
sete %dl
movq %rax, %rsi
orq %rcx, %rsi
sete %sil
cmpb $0x0, 0x40(%r14)
sete %dil
andb %sil, %dil
andb %dl, %dil
cmpb $0x1, %dil
jne 0x79e07
movb $0x0, (%rbx)
movq $0x0, 0x8(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x426e2
movq %rbx, %rdi
movl $0x1, %esi
callq 0x426e2
jmp 0x7a00e
testq %rax, %rax
je 0x79e79
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rax), %r14
movq 0x8(%rax), %r13
cmpq %r13, %r14
je 0x79e61
leaq 0x20(%rsp), %r15
movq %rsp, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x79d76
movq %r12, %rdi
movq %r15, %rsi
callq 0x43d6e
movq %r15, %rdi
xorl %esi, %esi
callq 0x426e2
movq %r15, %rdi
callq 0x4f2d0
addq $0x50, %r14
cmpq %r13, %r14
jne 0x79e30
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x7a9d2
movq %rsp, %rdi
callq 0x43c9a
jmp 0x7a00e
testq %rcx, %rcx
je 0x7a089
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x30084
movq 0x20(%r14), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
cmpq %r13, %r15
je 0x79fb0
leaq 0xa8(%rsp), %rbp
leaq 0x50(%rsp), %r12
leaq 0x10(%r15), %rsi
movzbl (%r15), %eax
testl %eax, %eax
je 0x79f2e
cmpl $0x4, %eax
je 0x79f2e
cmpl $0x3, %eax
jne 0x79f24
leaq 0x40(%rsp), %rdi
callq 0x79d76
leaq 0x88(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x4468a
movq %rbx, %rdi
movq %r12, %rsi
callq 0x73cb6
movq %rax, %rdi
leaq 0x40(%rsp), %r12
movq %r12, %rsi
callq 0x2f81c
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
jne 0x79f7c
leaq 0x40(%rsp), %r12
jmp 0x79f8c
addb $-0x5, %al
cmpb $0x3, %al
ja 0x7a023
movq %rbp, %rdi
callq 0x79d76
movq %r12, %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x30c70
movq %rbx, %rdi
movq %r12, %rsi
callq 0x73cb6
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2f81c
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rcx
movq %rcx, %rax
movq %rbp, %r12
cmpq %rcx, %rdi
je 0x79f89
movq (%rax), %rsi
incq %rsi
callq 0x1a740
jmp 0x79f8c
movq %rbp, %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x426e2
movq %r12, %rdi
callq 0x4f2d0
addq $0x60, %r15
cmpq %r13, %r15
leaq 0x50(%rsp), %r12
jne 0x79eb7
cmpq $0x0, 0x30(%r14)
je 0x7a00e
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %r14
movaps %xmm0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x44794
movq %r14, %rdi
movl $0x1, %esi
callq 0x426e2
leaq 0x37d9b(%rip), %rsi # 0xb1d7f
movq %rbx, %rdi
callq 0x6d214
leaq 0x70(%rsp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x2f81c
movq %r14, %rdi
xorl %esi, %esi
callq 0x426e2
movq %r14, %rdi
callq 0x4f2d0
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1a390
movq %rax, %r12
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x30c70
leaq 0x37d01(%rip), %rsi # 0xb1d55
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x29d9d
movb $0x1, %bpl
movq %rsp, %rsi
movq %r12, %rdi
callq 0x1ac00
xorl %ebp, %ebp
movq 0x68f78(%rip), %rsi # 0xe2ff0
movq 0x68ef1(%rip), %rdx # 0xe2f70
movq %r12, %rdi
callq 0x1acd0
jmp 0x7a0e4
movl $0x10, %edi
callq 0x1a390
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x42a18
leaq 0x37cdb(%rip), %rsi # 0xb1d8c
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x29d9d
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1ac00
xorl %ebp, %ebp
movq 0x68f1b(%rip), %rsi # 0xe2ff0
movq 0x68e94(%rip), %rdx # 0xe2f70
movq %rbx, %rdi
callq 0x1acd0
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a102
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a740
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a11d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a740
testb %bpl, %bpl
jne 0x7a14a
jmp 0x7a28b
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a14a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a740
jmp 0x7a14a
movq %rax, %r14
movq %rbx, %rdi
callq 0x1a530
jmp 0x7a28b
movq %rax, %r14
leaq 0x70(%rsp), %r15
jmp 0x7a239
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a182
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a740
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a19d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a740
testb %bpl, %bpl
jne 0x7a1cf
jmp 0x7a250
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a1cf
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a740
jmp 0x7a1cf
jmp 0x7a264
movq %rax, %r14
movq %r12, %rdi
callq 0x1a530
jmp 0x7a250
movq %rax, %r14
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x7a206
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x1a740
jmp 0x7a206
movq %rax, %r14
leaq 0x40(%rsp), %r15
jmp 0x7a239
movq %rax, %r14
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x7a231
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x1a740
jmp 0x7a231
movq %rax, %r14
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x426e2
movq %r15, %rdi
callq 0x4f2d0
jmp 0x7a250
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0x426e2
movq %rbx, %rdi
callq 0x4f2d0
jmp 0x7a28b
movq %rax, %r14
jmp 0x7a283
movq %rax, %r14
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x426e2
movq %rbx, %rdi
callq 0x4f2d0
movq %rsp, %rdi
callq 0x43c9a
movq %r14, %rdi
callq 0x1ad30
| _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+10h]
mov rcx, [rsi+20h]
mov rsi, rax
or rsi, rcx
mov rdx, [r14+30h]
or rsi, rdx
jnz short loc_79DB8
add r14, 40h ; '@'
mov rdi, rbx
mov rsi, r14
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 loc_7A00E
loc_79DB8:
test rdx, rdx
setz dl
mov rsi, rax
or rsi, rcx
setz sil
cmp byte ptr [r14+40h], 0
setz dil
and dil, sil
and dil, dl
cmp dil, 1
jnz short loc_79E07
mov byte ptr [rbx], 0
mov qword ptr [rbx+8], 0
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
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)
jmp loc_7A00E
loc_79E07:
test rax, rax
jz short loc_79E79
xorps xmm0, xmm0
movaps [rsp+0E8h+var_E8], xmm0
mov [rsp+0E8h+var_D8], 0
mov r14, [rax]
mov r13, [rax+8]
cmp r14, r13
jz short loc_79E61
lea r15, [rsp+0E8h+var_C8]
mov r12, rsp
loc_79E30:
mov rdi, r15
mov rsi, r14
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
mov rdi, r12
mov rsi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov 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, 50h ; 'P'
cmp r14, r13
jnz short loc_79E30
loc_79E61:
mov rsi, rsp
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; 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>>::~vector()
jmp loc_7A00E
loc_79E79:
test rcx, rcx
jz loc_7A089
mov rdi, rbx
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 1
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
mov rax, [r14+20h]
mov r15, [rax]
mov r13, [rax+8]
cmp r15, r13
jz loc_79FB0
lea rbp, [rsp+0E8h+var_40]
lea r12, [rsp+0E8h+var_98]
loc_79EB7:
lea rsi, [r15+10h]
movzx eax, byte ptr [r15]
test eax, eax
jz short loc_79F2E
cmp eax, 4
jz short loc_79F2E
cmp eax, 3
jnz short loc_79F24
lea rdi, [rsp+0E8h+var_A8]
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
lea r12, [rsp+0E8h+var_60]
mov rdi, r12
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, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string)
mov rdi, rax
lea r12, [rsp+0E8h+var_A8]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+0E8h+var_60]
lea rcx, [rsp+0E8h+var_50]
mov rax, rcx
cmp rdi, rcx
jnz short loc_79F7C
lea r12, [rsp+0E8h+var_A8]
jmp short loc_79F8C
loc_79F24:
add al, 0FBh
cmp al, 3
ja loc_7A023
loc_79F2E:
mov rdi, rbp
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
mov rdi, r12
mov rsi, r15
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)
mov rdi, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string)
mov rdi, rax
mov rsi, rbp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+0E8h+var_98]; void *
lea rcx, [rsp+0E8h+var_88]
mov rax, rcx
mov r12, rbp
cmp rdi, rcx
jz short loc_79F89
loc_79F7C:
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_79F8C
loc_79F89:
mov r12, rbp
loc_79F8C:
mov rdi, r12
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, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add r15, 60h ; '`'
cmp r15, r13
lea r12, [rsp+0E8h+var_98]
jnz loc_79EB7
loc_79FB0:
cmp qword ptr [r14+30h], 0
jz short loc_7A00E
xorps xmm0, xmm0
lea r14, [rsp+0E8h+var_78]
movaps xmmword ptr [r14], xmm0
mov rdi, r14
mov esi, 1
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE4EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_9boolean_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::boolean_t)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
lea rsi, aCallable; "__callable__"
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
lea r14, [rsp+0E8h+var_78]
mov rdi, rax
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_7A00E:
mov rax, rbx
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7A023:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r12, rax
lea rdi, [rsp+0E8h+var_C8]
mov rsi, r15
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)
lea rsi, aInvalidKeyType; "Invalid key type for conversion to JSON"...
mov rdi, rsp
lea rdx, [rsp+0E8h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, r12
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r12; void *
call ___cxa_throw
jmp short loc_7A0E4
loc_7A089:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0E8h+var_C8]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetJsonNotDefi; "get<json> not defined for this value ty"...
mov rdi, rsp
lea rdx, [rsp+0E8h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_7A0E4:
mov r14, rax
lea rax, [rsp+0E8h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7A102
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7A102:
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7A11D
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7A11D:
test bpl, bpl
jnz short loc_7A14A
jmp loc_7A28B
mov r14, rax
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7A14A
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7A14A
mov r14, rax
loc_7A14A:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp loc_7A28B
mov r14, rax
lea r15, [rsp+0E8h+var_78]
jmp loc_7A239
mov r14, rax
lea rax, [rsp+0E8h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7A182
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7A182:
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7A19D
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7A19D:
test bpl, bpl
jnz short loc_7A1CF
jmp loc_7A250
mov r14, rax
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7A1CF
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7A1CF
jmp loc_7A264
mov r14, rax
loc_7A1CF:
mov rdi, r12; void *
call ___cxa_free_exception
jmp short loc_7A250
mov r14, rax
mov rdi, [rsp+0E8h+var_60]; void *
lea rax, [rsp+0E8h+var_50]
cmp rdi, rax
jz short loc_7A206
mov rsi, [rsp+0E8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7A206
mov r14, rax
loc_7A206:
lea r15, [rsp+0E8h+var_A8]
jmp short loc_7A239
mov r14, rax
mov rdi, [rsp+0E8h+var_98]; void *
lea rax, [rsp+0E8h+var_88]
cmp rdi, rax
jz short loc_7A231
mov rsi, [rsp+0E8h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7A231
mov r14, rax
loc_7A231:
lea r15, [rsp+0E8h+var_40]
loc_7A239:
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()
jmp short loc_7A250
mov r14, rax
loc_7A250:
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_7A28B
loc_7A264:
mov r14, rax
jmp short loc_7A283
mov r14, rax
lea rbx, [rsp+0E8h+var_C8]
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()
loc_7A283:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; 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>>::~vector()
loc_7A28B:
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
long long a1,
long long a2)
{
unsigned long long v4; // rax
long long v5; // rcx
long long v6; // rdx
long long v7; // r14
long long v8; // r13
long long v9; // rax
_BYTE *v10; // r15
_BYTE *v11; // r13
_BYTE *v12; // rsi
int v13; // eax
char *v14; // rax
char *v15; // r12
void *v16; // rdi
_QWORD *v17; // rax
char *v18; // rax
char *v19; // rax
void *v21; // r12
void *exception; // rbx
__int128 v23; // [rsp+0h] [rbp-E8h] BYREF
long long v24; // [rsp+10h] [rbp-D8h]
void **v25[2]; // [rsp+20h] [rbp-C8h] BYREF
char v26[16]; // [rsp+40h] [rbp-A8h] BYREF
void *v27[2]; // [rsp+50h] [rbp-98h] BYREF
_QWORD v28[2]; // [rsp+60h] [rbp-88h] BYREF
__int128 v29; // [rsp+70h] [rbp-78h] BYREF
void *v30[2]; // [rsp+88h] [rbp-60h] BYREF
_QWORD v31[2]; // [rsp+98h] [rbp-50h] BYREF
char v32[64]; // [rsp+A8h] [rbp-40h] BYREF
v4 = *(_QWORD *)(a2 + 16);
v5 = *(_QWORD *)(a2 + 32);
v6 = *(_QWORD *)(a2 + 48);
if ( !(v6 | v5 | 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>::basic_json(
a1,
a2 + 64);
return a1;
}
if ( v6 == 0 && (v5 | v4) == 0 && *(_BYTE *)(a2 + 64) == 0 )
{
*(_BYTE *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
return a1;
}
if ( v4 )
{
v23 = 0LL;
v24 = 0LL;
v7 = *(_QWORD *)v4;
v8 = *(_QWORD *)(v4 + 8);
if ( *(_QWORD *)v4 != v8 )
{
do
{
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v25,
v7);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v23,
(long long)v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v25);
v7 += 80LL;
}
while ( v7 != v8 );
}
((void ( *)(long long, __int128 *))ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_)(
a1,
&v23);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector((long long)&v23);
return a1;
}
if ( !v5 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v25, a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)&v23, (long long)"get<json> not defined for this value type: ", (long long)v25);
std::runtime_error::runtime_error(exception, &v23);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(
a1,
0LL,
0LL,
0LL,
1LL);
v9 = *(_QWORD *)(a2 + 32);
v10 = *(_BYTE **)v9;
v11 = *(_BYTE **)(v9 + 8);
if ( *(_BYTE **)v9 != v11 )
{
while ( 1 )
{
v12 = v10 + 16;
v13 = (unsigned __int8)*v10;
if ( !*v10 || v13 == 4 )
goto LABEL_17;
if ( v13 != 3 )
break;
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v26,
v12);
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)v30,
(long long)v10);
v14 = (char *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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,
(long long *)v30);
v15 = v26;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v14,
v26);
v16 = v30[0];
v17 = v31;
if ( v30[0] != v31 )
goto LABEL_18;
v15 = v26;
LABEL_20:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data((void ***)v15);
v10 += 96;
if ( v10 == v11 )
goto LABEL_21;
}
if ( (unsigned __int8)(v13 - 5) > 3u )
{
v21 = __cxa_allocate_exception(0x10uLL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v25,
(long long)v10,
-1,
32,
0,
0);
std::operator+<char>((long long)&v23, (long long)"Invalid key type for conversion to JSON: ", (long long)v25);
std::runtime_error::runtime_error(v21, &v23);
__cxa_throw(
v21,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
LABEL_17:
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v32,
v12);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v27,
(long long)v10,
-1,
32,
0,
0);
v18 = (char *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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,
(long long *)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v18,
v32);
v16 = v27[0];
v17 = v28;
v15 = v32;
if ( v27[0] == v28 )
{
v15 = v32;
goto LABEL_20;
}
LABEL_18:
operator delete(v16, *v17 + 1LL);
goto LABEL_20;
}
LABEL_21:
if ( *(_QWORD *)(a2 + 48) )
{
v29 = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)&v29,
1u);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v29);
v19 = (char *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
a1,
(long long)"__callable__");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=(
v19,
(char *)&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>::assert_invariant((char *)&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((void ***)&v29);
}
return a1;
}
| get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x10]
MOV RCX,qword ptr [RSI + 0x20]
MOV RSI,RAX
OR RSI,RCX
MOV RDX,qword ptr [R14 + 0x30]
OR RSI,RDX
JNZ 0x00179db8
ADD R14,0x40
MOV RDI,RBX
MOV RSI,R14
CALL 0x0012faf6
JMP 0x0017a00e
LAB_00179db8:
TEST RDX,RDX
SETZ DL
MOV RSI,RAX
OR RSI,RCX
SETZ SIL
CMP byte ptr [R14 + 0x40],0x0
SETZ DIL
AND DIL,SIL
AND DIL,DL
CMP DIL,0x1
JNZ 0x00179e07
MOV byte ptr [RBX],0x0
MOV qword ptr [RBX + 0x8],0x0
MOV RDI,RBX
MOV ESI,0x1
CALL 0x001426e2
MOV RDI,RBX
MOV ESI,0x1
CALL 0x001426e2
JMP 0x0017a00e
LAB_00179e07:
TEST RAX,RAX
JZ 0x00179e79
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
MOV R14,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R14,R13
JZ 0x00179e61
LEA R15,[RSP + 0x20]
MOV R12,RSP
LAB_00179e30:
MOV RDI,R15
MOV RSI,R14
CALL 0x00179d76
LAB_00179e3b:
MOV RDI,R12
MOV RSI,R15
CALL 0x00143d6e
MOV RDI,R15
XOR ESI,ESI
CALL 0x001426e2
MOV RDI,R15
CALL 0x0014f2d0
ADD R14,0x50
CMP R14,R13
JNZ 0x00179e30
LAB_00179e61:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0017a9d2
LAB_00179e6c:
MOV RDI,RSP
CALL 0x00143c9a
JMP 0x0017a00e
LAB_00179e79:
TEST RCX,RCX
JZ 0x0017a089
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
MOV R8D,0x1
CALL 0x00130084
MOV RAX,qword ptr [R14 + 0x20]
MOV R15,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R15,R13
JZ 0x00179fb0
LEA RBP,[RSP + 0xa8]
LEA R12,[RSP + 0x50]
LAB_00179eb7:
LEA RSI,[R15 + 0x10]
MOVZX EAX,byte ptr [R15]
TEST EAX,EAX
JZ 0x00179f2e
CMP EAX,0x4
JZ 0x00179f2e
CMP EAX,0x3
JNZ 0x00179f24
LAB_00179ecd:
LEA RDI,[RSP + 0x40]
CALL 0x00179d76
LAB_00179ed7:
LEA R12,[RSP + 0x88]
MOV RDI,R12
MOV RSI,R15
CALL 0x0014468a
LAB_00179eea:
MOV RDI,RBX
MOV RSI,R12
CALL 0x00173cb6
MOV RDI,RAX
LEA R12,[RSP + 0x40]
MOV RSI,R12
CALL 0x0012f81c
MOV RDI,qword ptr [RSP + 0x88]
LEA RCX,[RSP + 0x98]
MOV RAX,RCX
CMP RDI,RCX
JNZ 0x00179f7c
LEA R12,[RSP + 0x40]
JMP 0x00179f8c
LAB_00179f24:
ADD AL,0xfb
CMP AL,0x3
JA 0x0017a023
LAB_00179f2e:
MOV RDI,RBP
CALL 0x00179d76
LAB_00179f36:
MOV RDI,R12
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00130c70
LAB_00179f51:
MOV RDI,RBX
MOV RSI,R12
CALL 0x00173cb6
MOV RDI,RAX
MOV RSI,RBP
CALL 0x0012f81c
MOV RDI,qword ptr [RSP + 0x50]
LEA RCX,[RSP + 0x60]
MOV RAX,RCX
MOV R12,RBP
CMP RDI,RCX
JZ 0x00179f89
LAB_00179f7c:
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011a740
JMP 0x00179f8c
LAB_00179f89:
MOV R12,RBP
LAB_00179f8c:
MOV RDI,R12
XOR ESI,ESI
CALL 0x001426e2
MOV RDI,R12
CALL 0x0014f2d0
ADD R15,0x60
CMP R15,R13
LEA R12,[RSP + 0x50]
JNZ 0x00179eb7
LAB_00179fb0:
CMP qword ptr [R14 + 0x30],0x0
JZ 0x0017a00e
XORPS XMM0,XMM0
LEA R14,[RSP + 0x70]
MOVAPS xmmword ptr [R14],XMM0
MOV RDI,R14
MOV ESI,0x1
CALL 0x00144794
MOV RDI,R14
MOV ESI,0x1
CALL 0x001426e2
LAB_00179fdd:
LEA RSI,[0x1b1d7f]
MOV RDI,RBX
CALL 0x0016d214
LAB_00179fec:
LEA R14,[RSP + 0x70]
MOV RDI,RAX
MOV RSI,R14
CALL 0x0012f81c
MOV RDI,R14
XOR ESI,ESI
CALL 0x001426e2
MOV RDI,R14
CALL 0x0014f2d0
LAB_0017a00e:
MOV RAX,RBX
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017a023:
MOV EDI,0x10
CALL 0x0011a390
MOV R12,RAX
LAB_0017a030:
LEA RDI,[RSP + 0x20]
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00130c70
LAB_0017a04d:
LEA RSI,[0x1b1d55]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x00129d9d
MOV BPL,0x1
LAB_0017a064:
MOV RSI,RSP
MOV RDI,R12
CALL 0x0011ac00
XOR EBP,EBP
MOV RSI,qword ptr [0x001e2ff0]
MOV RDX,qword ptr [0x001e2f70]
MOV RDI,R12
CALL 0x0011acd0
LAB_0017a089:
MOV EDI,0x10
CALL 0x0011a390
MOV RBX,RAX
LAB_0017a096:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x00142a18
LAB_0017a0aa:
LEA RSI,[0x1b1d8c]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x00129d9d
MOV BPL,0x1
LAB_0017a0c1:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0011ac00
XOR EBP,EBP
MOV RSI,qword ptr [0x001e2ff0]
MOV RDX,qword ptr [0x001e2f70]
MOV RDI,RBX
CALL 0x0011acd0
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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 minja::Value::
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(void)
{
char cVar1;
long lVar2;
char *pcVar3;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*pbVar4;
long *plVar5;
basic_json *pbVar6;
runtime_error *prVar7;
long in_RSI;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*in_RDI;
long *plVar8;
data *this;
long lVar9;
char *pcVar10;
int8 local_e8;
int8 uStack_e0;
int8 local_d8;
data local_c8 [32];
data local_a8 [16];
long *local_98 [2];
long local_88 [2];
int8 local_78;
int8 uStack_70;
long *local_60 [2];
long local_50 [2];
data local_40 [16];
plVar5 = *(long **)(in_RSI + 0x10);
lVar9 = *(long *)(in_RSI + 0x20);
if ((plVar5 == (long *)0x0 && lVar9 == 0) && *(long *)(in_RSI + 0x30) == 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>
::basic_json(in_RDI,(basic_json *)(in_RSI + 0x40));
}
else if ((*(char *)(in_RSI + 0x40) == '\0' && (plVar5 == (long *)0x0 && lVar9 == 0)) &&
*(long *)(in_RSI + 0x30) == 0) {
*in_RDI = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0;
*(int8 *)(in_RDI + 8) = 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(SUB81(in_RDI,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(SUB81(in_RDI,0));
}
else if (plVar5 == (long *)0x0) {
if (lVar9 == 0) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0017a096 to 0017a0a9 has its CatchHandler @ 0017a147 */
dump_abi_cxx11_((int)local_c8,SUB81(in_RSI,0));
/* try { // try from 0017a0aa to 0017a0bd has its CatchHandler @ 0017a127 */
std::operator+((char *)&local_e8,(string *)"get<json> not defined for this value type: ");
/* try { // try from 0017a0c1 to 0017a0e3 has its CatchHandler @ 0017a0e4 */
std::runtime_error::runtime_error(prVar7,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_001e2ff0,PTR__runtime_error_001e2f70);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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();
pcVar10 = (char *)**(int8 **)(in_RSI + 0x20);
pcVar3 = (char *)(*(int8 **)(in_RSI + 0x20))[1];
if (pcVar10 != pcVar3) {
do {
cVar1 = *pcVar10;
if ((cVar1 == '\0') || (cVar1 == '\x04')) {
LAB_00179f2e:
/* try { // try from 00179f2e to 00179f35 has its CatchHandler @ 0017a24d */
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 00179f36 to 00179f50 has its CatchHandler @ 0017a22e */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_98,pcVar10,0xffffffff,0x20,0,0);
/* try { // try from 00179f51 to 00179f5b has its CatchHandler @ 0017a20d */
pbVar4 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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=(pbVar4,local_40);
plVar5 = local_88;
plVar8 = local_98[0];
this = local_40;
if (local_98[0] != plVar5) {
LAB_00179f7c:
operator_delete(plVar8,*plVar5 + 1);
}
}
else {
if (cVar1 != '\x03') {
if (3 < (byte)(cVar1 - 5U)) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10,pcVar10 + 0x10);
/* try { // try from 0017a030 to 0017a04c has its CatchHandler @ 0017a1cc */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,pcVar10,0xffffffff,0x20,0,0);
/* try { // try from 0017a04d to 0017a060 has its CatchHandler @ 0017a1a7 */
std::operator+((char *)&local_e8,(string *)"Invalid key type for conversion to JSON: "
);
/* try { // try from 0017a064 to 0017a086 has its CatchHandler @ 0017a164 */
std::runtime_error::runtime_error(prVar7,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_001e2ff0,PTR__runtime_error_001e2f70);
}
goto LAB_00179f2e;
}
/* try { // try from 00179ecd to 00179ed6 has its CatchHandler @ 0017a24d */
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 00179ed7 to 00179ee9 has its CatchHandler @ 0017a203 */
_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_60,pcVar10);
/* try { // try from 00179eea to 00179ef4 has its CatchHandler @ 0017a1d9 */
pbVar4 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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=(pbVar4,local_a8);
plVar5 = local_50;
plVar8 = local_60[0];
this = local_a8;
if (local_60[0] != plVar5) goto LAB_00179f7c;
this = local_a8;
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(this,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(this);
pcVar10 = pcVar10 + 0x60;
} while (pcVar10 != pcVar3);
}
if (*(long *)(in_RSI + 0x30) != 0) {
local_78 = 0;
uStack_70 = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(&local_78,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>
::assert_invariant(SUB81(&local_78,0));
/* try { // try from 00179fdd to 00179feb has its CatchHandler @ 0017a157 */
pbVar6 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>(in_RDI,"__callable__");
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>
*)pbVar6,(data *)&local_78);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_78,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_78);
}
}
else {
local_e8 = 0;
uStack_e0 = 0;
local_d8 = 0;
lVar9 = *plVar5;
lVar2 = plVar5[1];
if (lVar9 != lVar2) {
do {
/* try { // try from 00179e30 to 00179e3a has its CatchHandler @ 0017a264 */
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 00179e3b to 00179e45 has its CatchHandler @ 0017a269 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_e8,(basic_json *)local_c8);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_c8,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_c8);
lVar9 = lVar9 + 0x50;
} while (lVar9 != lVar2);
}
/* try { // try from 00179e61 to 00179e6b has its CatchHandler @ 0017a1c7 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
();
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector((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>>>
*)&local_e8);
}
return;
}
| |
36,251 | exec_UNDO_LOGREC_UNDO_KEY_DELETE_WITH_ROOT | eloqsql/storage/maria/ma_recovery.c | prototype_undo_exec_hook(UNDO_KEY_DELETE_WITH_ROOT)
{
my_bool error;
MARIA_HA *info= get_MARIA_HA_from_UNDO_record(rec);
LSN previous_undo_lsn= lsn_korr(rec->header);
MARIA_SHARE *share;
if (info == NULL || maria_is_crashed(info))
{
skip_undo_record(previous_undo_lsn, trn);
return 0;
}
share= info->s;
share->state.changed|= (STATE_CHANGED | STATE_NOT_ANALYZED |
STATE_NOT_ZEROFILLED | STATE_NOT_MOVABLE);
enlarge_buffer(rec);
if (log_record_buffer.str == NULL ||
translog_read_record(rec->lsn, 0, rec->record_length,
log_record_buffer.str, NULL) !=
rec->record_length)
{
eprint(tracef, "Failed to read record");
return 1;
}
info->trn= trn;
error= _ma_apply_undo_key_delete(info, previous_undo_lsn,
log_record_buffer.str + LSN_STORE_SIZE +
FILEID_STORE_SIZE,
rec->record_length - LSN_STORE_SIZE -
FILEID_STORE_SIZE, TRUE);
info->trn= 0;
/* trn->undo_lsn is updated in an inwrite_hook when writing the CLR_END */
tprint(tracef, " undo_lsn now LSN " LSN_FMT "\n",
LSN_IN_PARTS(trn->undo_lsn));
return error;
} | O3 | c | exec_UNDO_LOGREC_UNDO_KEY_DELETE_WITH_ROOT:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
callq 0x8d6e7
movq %rax, %r14
movzwl 0x18(%r15), %eax
shlq $0x20, %rax
movzbl 0x1a(%r15), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movl 0x1b(%r15), %r12d
orq %rcx, %r12
testq %r14, %r14
je 0x8c6f8
movq (%r14), %rax
movl 0x170(%rax), %ecx
testb $0x2, %cl
jne 0x8c6f8
orl $0x189, %ecx # imm = 0x189
movl %ecx, 0x170(%rax)
movl 0x14(%r15), %edx
cmpq %rdx, 0xbc65e0(%rip) # 0xc52cb0
jae 0x8c724
movq %rdx, 0xbc65d7(%rip) # 0xc52cb0
movq 0xbc65c8(%rip), %rsi # 0xc52ca8
movl $0x50, %ecx
xorl %edi, %edi
callq 0xc3bf0
movq %rax, %rcx
movq %rax, 0xbc65b2(%rip) # 0xc52ca8
jmp 0x8c72b
movq %r12, 0x98(%rbx)
testq %r12, %r12
jne 0x8c716
movzbl 0xa7(%rbx), %eax
shlq $0x38, %rax
movq %rax, 0xa0(%rbx)
incq 0xbc656b(%rip) # 0xc52c88
xorl %eax, %eax
jmp 0x8c7c2
movq 0xbc657d(%rip), %rcx # 0xc52ca8
testq %rcx, %rcx
je 0x8c7a5
movq (%r15), %rdi
movl 0x14(%r15), %edx
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x7d716
cmpl 0x14(%r15), %eax
jne 0x8c7a5
movq %rbx, 0x8(%r14)
movq 0xbc6556(%rip), %rdx # 0xc52ca8
addq $0x9, %rdx
movl 0x14(%r15), %ecx
addl $-0x9, %ecx
movq %r14, %rdi
movq %r12, %rsi
movl $0x1, %r8d
callq 0x42a84
movl %eax, %r15d
movq $0x0, 0x8(%r14)
leaq 0xbc6648(%rip), %rax # 0xc52dc8
movq (%rax), %rdi
movq 0x98(%rbx), %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
leaq 0x7a688(%rip), %rsi # 0x106e20
xorl %eax, %eax
callq 0x8da80
movsbl %r15b, %eax
jmp 0x8c7c2
leaq 0xbc661c(%rip), %rax # 0xc52dc8
movq (%rax), %rdi
leaq 0x799d9(%rip), %rsi # 0x10618f
xorl %eax, %eax
callq 0x8db08
movl $0x1, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| exec_UNDO_LOGREC_UNDO_KEY_DELETE_WITH_ROOT:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rsi
mov r15, rdi
call get_MARIA_HA_from_UNDO_record
mov r14, rax
movzx eax, word ptr [r15+18h]
shl rax, 20h
movzx ecx, byte ptr [r15+1Ah]
shl rcx, 30h
or rcx, rax
mov r12d, [r15+1Bh]
or r12, rcx
test r14, r14
jz short loc_8C6F8
mov rax, [r14]
mov ecx, [rax+170h]
test cl, 2
jnz short loc_8C6F8
or ecx, 189h
mov [rax+170h], ecx
mov edx, [r15+14h]
cmp cs:log_record_buffer_1, rdx
jnb short loc_8C724
mov cs:log_record_buffer_1, rdx
mov rsi, cs:log_record_buffer_0
mov ecx, 50h ; 'P'
xor edi, edi
call my_realloc
mov rcx, rax
mov cs:log_record_buffer_0, rax
jmp short loc_8C72B
loc_8C6F8:
mov [rbx+98h], r12
test r12, r12
jnz short loc_8C716
movzx eax, byte ptr [rbx+0A7h]
shl rax, 38h
mov [rbx+0A0h], rax
loc_8C716:
inc cs:skipped_undo_phase
xor eax, eax
jmp loc_8C7C2
loc_8C724:
mov rcx, cs:log_record_buffer_0
loc_8C72B:
test rcx, rcx
jz short loc_8C7A5
mov rdi, [r15]
mov edx, [r15+14h]
xor esi, esi
xor r8d, r8d
call translog_read_record
cmp eax, [r15+14h]
jnz short loc_8C7A5
mov [r14+8], rbx
mov rdx, cs:log_record_buffer_0
add rdx, 9
mov ecx, [r15+14h]
add ecx, 0FFFFFFF7h
mov rdi, r14
mov rsi, r12
mov r8d, 1
call _ma_apply_undo_key_delete
mov r15d, eax
mov qword ptr [r14+8], 0
lea rax, tracef
mov rdi, [rax]
mov rcx, [rbx+98h]
mov rdx, rcx
shr rdx, 20h
lea rsi, aRowCountLuUndo+12h; " undo_lsn now LSN (%u,0x%x)\n"
xor eax, eax
call tprint
movsx eax, r15b
jmp short loc_8C7C2
loc_8C7A5:
lea rax, tracef
mov rdi, [rax]
lea rsi, aFailedToReadRe; "Failed to read record"
xor eax, eax
call eprint
mov eax, 1
loc_8C7C2:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long exec_UNDO_LOGREC_UNDO_KEY_DELETE_WITH_ROOT(long long a1, long long a2)
{
int v2; // r8d
int v3; // r9d
_QWORD *MARIA_HA_from_UNDO_record; // r14
unsigned long long v5; // r12
int v6; // ecx
unsigned long long v7; // rdx
long long v8; // rcx
char v10; // r15
int v11; // r8d
int v12; // r9d
MARIA_HA_from_UNDO_record = (_QWORD *)get_MARIA_HA_from_UNDO_record(a1);
v5 = ((unsigned long long)*(unsigned __int16 *)(a1 + 24) << 32) | ((unsigned long long)*(unsigned __int8 *)(a1 + 26) << 48) | *(unsigned int *)(a1 + 27);
if ( !MARIA_HA_from_UNDO_record || (v6 = *(_DWORD *)(*MARIA_HA_from_UNDO_record + 368LL), (v6 & 2) != 0) )
{
*(_QWORD *)(a2 + 152) = v5;
if ( !v5 )
*(_QWORD *)(a2 + 160) = (unsigned long long)*(unsigned __int8 *)(a2 + 167) << 56;
++skipped_undo_phase;
return 0LL;
}
else
{
*(_DWORD *)(*MARIA_HA_from_UNDO_record + 368LL) = v6 | 0x189;
v7 = *(unsigned int *)(a1 + 20);
if ( log_record_buffer_1 >= v7 )
{
v8 = log_record_buffer_0;
}
else
{
log_record_buffer_1 = *(unsigned int *)(a1 + 20);
v8 = my_realloc(0LL, log_record_buffer_0, v7, 80LL);
log_record_buffer_0 = v8;
}
if ( v8
&& (unsigned int)translog_read_record(*(_QWORD *)a1, 0, *(unsigned int *)(a1 + 20), v8, 0LL) == *(_DWORD *)(a1 + 20) )
{
MARIA_HA_from_UNDO_record[1] = a2;
v10 = ma_apply_undo_key_delete(
(long long)MARIA_HA_from_UNDO_record,
v5,
(unsigned __int8 *)(log_record_buffer_0 + 9),
*(_DWORD *)(a1 + 20) - 9,
1);
MARIA_HA_from_UNDO_record[1] = 0LL;
tprint(
tracef,
(unsigned int)" undo_lsn now LSN (%u,0x%x)\n",
HIDWORD(*(_QWORD *)(a2 + 152)),
*(_QWORD *)(a2 + 152),
v11,
v12);
return (unsigned int)v10;
}
else
{
eprint(tracef, (unsigned int)"Failed to read record", v7, v8, v2, v3);
return 1LL;
}
}
}
| exec_UNDO_LOGREC_UNDO_KEY_DELETE_WITH_ROOT:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RSI
MOV R15,RDI
CALL 0x0018d6e7
MOV R14,RAX
MOVZX EAX,word ptr [R15 + 0x18]
SHL RAX,0x20
MOVZX ECX,byte ptr [R15 + 0x1a]
SHL RCX,0x30
OR RCX,RAX
MOV R12D,dword ptr [R15 + 0x1b]
OR R12,RCX
TEST R14,R14
JZ 0x0018c6f8
MOV RAX,qword ptr [R14]
MOV ECX,dword ptr [RAX + 0x170]
TEST CL,0x2
JNZ 0x0018c6f8
OR ECX,0x189
MOV dword ptr [RAX + 0x170],ECX
MOV EDX,dword ptr [R15 + 0x14]
CMP qword ptr [0x00d52cb0],RDX
JNC 0x0018c724
MOV qword ptr [0x00d52cb0],RDX
MOV RSI,qword ptr [0x00d52ca8]
MOV ECX,0x50
XOR EDI,EDI
CALL 0x001c3bf0
MOV RCX,RAX
MOV qword ptr [0x00d52ca8],RAX
JMP 0x0018c72b
LAB_0018c6f8:
MOV qword ptr [RBX + 0x98],R12
TEST R12,R12
JNZ 0x0018c716
MOVZX EAX,byte ptr [RBX + 0xa7]
SHL RAX,0x38
MOV qword ptr [RBX + 0xa0],RAX
LAB_0018c716:
INC qword ptr [0x00d52c88]
XOR EAX,EAX
JMP 0x0018c7c2
LAB_0018c724:
MOV RCX,qword ptr [0x00d52ca8]
LAB_0018c72b:
TEST RCX,RCX
JZ 0x0018c7a5
MOV RDI,qword ptr [R15]
MOV EDX,dword ptr [R15 + 0x14]
XOR ESI,ESI
XOR R8D,R8D
CALL 0x0017d716
CMP EAX,dword ptr [R15 + 0x14]
JNZ 0x0018c7a5
MOV qword ptr [R14 + 0x8],RBX
MOV RDX,qword ptr [0x00d52ca8]
ADD RDX,0x9
MOV ECX,dword ptr [R15 + 0x14]
ADD ECX,-0x9
MOV RDI,R14
MOV RSI,R12
MOV R8D,0x1
CALL 0x00142a84
MOV R15D,EAX
MOV qword ptr [R14 + 0x8],0x0
LEA RAX,[0xd52dc8]
MOV RDI,qword ptr [RAX]
MOV RCX,qword ptr [RBX + 0x98]
MOV RDX,RCX
SHR RDX,0x20
LEA RSI,[0x206e20]
XOR EAX,EAX
CALL 0x0018da80
MOVSX EAX,R15B
JMP 0x0018c7c2
LAB_0018c7a5:
LEA RAX,[0xd52dc8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x20618f]
XOR EAX,EAX
CALL 0x0018db08
MOV EAX,0x1
LAB_0018c7c2:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int exec_UNDO_LOGREC_UNDO_KEY_DELETE_WITH_ROOT(int8 *param_1,long param_2)
{
uint uVar1;
char cVar2;
int iVar3;
long *plVar4;
ulong uVar5;
ulong uVar6;
plVar4 = (long *)get_MARIA_HA_from_UNDO_record();
uVar6 = (ulong)*(uint *)((long)param_1 + 0x1b) |
(ulong)*(byte *)((long)param_1 + 0x1a) << 0x30 | (ulong)*(ushort *)(param_1 + 3) << 0x20;
if (plVar4 != (long *)0x0) {
uVar1 = *(uint *)(*plVar4 + 0x170);
if ((uVar1 & 2) == 0) {
*(uint *)(*plVar4 + 0x170) = uVar1 | 0x189;
uVar5 = (ulong)*(uint *)((long)param_1 + 0x14);
if (log_record_buffer_1 < uVar5) {
log_record_buffer_1 = uVar5;
log_record_buffer_0 = my_realloc(0,log_record_buffer_0,uVar5,0x50);
}
if ((log_record_buffer_0 != 0) &&
(iVar3 = translog_read_record
(*param_1,0,*(int4 *)((long)param_1 + 0x14),log_record_buffer_0,0)
, iVar3 == *(int *)((long)param_1 + 0x14))) {
plVar4[1] = param_2;
cVar2 = _ma_apply_undo_key_delete
(plVar4,uVar6,log_record_buffer_0 + 9,*(int *)((long)param_1 + 0x14) + -9,
1);
plVar4[1] = 0;
tprint(tracef," undo_lsn now LSN (%u,0x%x)\n",*(ulong *)(param_2 + 0x98) >> 0x20);
return (int)cVar2;
}
eprint(tracef,"Failed to read record");
return 1;
}
}
*(ulong *)(param_2 + 0x98) = uVar6;
if (uVar6 == 0) {
*(ulong *)(param_2 + 0xa0) = (ulong)*(byte *)(param_2 + 0xa7) << 0x38;
}
skipped_undo_phase = skipped_undo_phase + 1;
return 0;
}
| |
36,252 | my_hash_sort_simple_nopad | eloqsql/strings/ctype-simple.c | void my_hash_sort_simple_nopad(CHARSET_INFO *cs,
const uchar *key, size_t len,
ulong *nr1, ulong *nr2)
{
register const uchar *sort_order=cs->sort_order;
const uchar *end= key + len;
register ulong m1= *nr1, m2= *nr2;
for (; key < (uchar*) end ; key++)
{
MY_HASH_ADD(m1, m2, (uint) sort_order[(uint) *key]);
}
*nr1= m1;
*nr2= m2;
} | O0 | c | my_hash_sort_simple_nopad:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0xa1b74
jmp 0xa1b22
movq -0x40(%rbp), %rax
andq $0x3f, %rax
addq -0x48(%rbp), %rax
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rdx
movzbl (%rdx), %edx
movl %edx, %edx
movzbl (%rcx,%rdx), %ecx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x40(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x48(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x48(%rbp)
jmp 0xa1b66
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0xa1b16
movq -0x40(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x48(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
popq %rbp
retq
nopl (%rax)
| my_hash_sort_simple_nopad:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_8]
mov rax, [rax+58h]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_40], rax
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_48], rax
loc_A1B16:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_38]
jnb short loc_A1B74
jmp short $+2
loc_A1B22:
mov rax, [rbp+var_40]
and rax, 3Fh
add rax, [rbp+var_48]
mov rcx, [rbp+var_30]
mov rdx, [rbp+var_10]
movzx edx, byte ptr [rdx]
mov edx, edx
movzx ecx, byte ptr [rcx+rdx]
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_40]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_40]
mov [rbp+var_40], rax
mov rax, [rbp+var_48]
add rax, 3
mov [rbp+var_48], rax
jmp short $+2
loc_A1B66:
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_A1B16
loc_A1B74:
mov rcx, [rbp+var_40]
mov rax, [rbp+var_20]
mov [rax], rcx
mov rcx, [rbp+var_48]
mov rax, [rbp+var_28]
mov [rax], rcx
pop rbp
retn
| _QWORD * my_hash_sort_simple_nopad(long long a1, unsigned __int8 *a2, long long a3, long long *a4, _QWORD *a5)
{
_QWORD *result; // rax
long long v6; // [rsp+0h] [rbp-48h]
long long v7; // [rsp+8h] [rbp-40h]
unsigned __int8 *v8; // [rsp+38h] [rbp-10h]
v8 = a2;
v7 = *a4;
v6 = *a5;
while ( v8 < &a2[a3] )
{
v7 ^= (v7 << 8) + *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *v8) * (v6 + (v7 & 0x3F));
v6 += 3LL;
++v8;
}
*a4 = v7;
result = a5;
*a5 = v6;
return result;
}
| my_hash_sort_simple_nopad:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x58]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x48],RAX
LAB_001a1b16:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001a1b74
JMP 0x001a1b22
LAB_001a1b22:
MOV RAX,qword ptr [RBP + -0x40]
AND RAX,0x3f
ADD RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x10]
MOVZX EDX,byte ptr [RDX]
MOV EDX,EDX
MOVZX ECX,byte ptr [RCX + RDX*0x1]
MOV ECX,ECX
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x40]
SHL RCX,0x8
ADD RAX,RCX
XOR RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,0x3
MOV qword ptr [RBP + -0x48],RAX
JMP 0x001a1b66
LAB_001a1b66:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001a1b16
LAB_001a1b74:
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
POP RBP
RET
|
void my_hash_sort_simple_nopad(long param_1,byte *param_2,long param_3,ulong *param_4,long *param_5)
{
long local_50;
ulong local_48;
byte *local_18;
local_48 = *param_4;
local_50 = *param_5;
for (local_18 = param_2; local_18 < param_2 + param_3; local_18 = local_18 + 1) {
local_48 = ((local_48 & 0x3f) + local_50) *
(ulong)*(byte *)(*(long *)(param_1 + 0x58) + (ulong)*local_18) + local_48 * 0x100 ^
local_48;
local_50 = local_50 + 3;
}
*param_4 = local_48;
*param_5 = local_50;
return;
}
| |
36,253 | ggml_tensor_add(ggml_tensor*, ggml_tensor*) | 7CodeWizard[P]stablediffusion/ggml_extend.hpp | __STATIC_INLINE__ void ggml_tensor_add(struct ggml_tensor* a, struct ggml_tensor* b) {
GGML_ASSERT(ggml_nelements(a) == ggml_nelements(b));
int64_t nelements = ggml_nelements(a);
float* vec_a = (float*)a->data;
float* vec_b = (float*)b->data;
for (int i = 0; i < nelements; i++) {
vec_a[i] = vec_a[i] + vec_b[i];
}
} | O0 | cpp | ggml_tensor_add(ggml_tensor*, ggml_tensor*):
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rdi
callq 0x11ae30
movq %rax, (%rsp)
movq 0x28(%rsp), %rdi
callq 0x11ae30
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
je 0x368f6
movq 0x1a166f(%rip), %rax # 0x1d7f28
movq (%rax), %rdi
callq 0xb8e0
movq 0x1a16e0(%rip), %rax # 0x1d7fa8
movq (%rax), %rdi
leaq 0x149348(%rip), %rsi # 0x17fc1a
leaq 0x149483(%rip), %rdx # 0x17fd5c
movl $0x121, %ecx # imm = 0x121
leaq 0x14a0cc(%rip), %r8 # 0x1809b1
movb $0x0, %al
callq 0xbae0
callq 0x11a4f0
callq 0xb3a0
jmp 0x368f8
movq 0x30(%rsp), %rdi
callq 0x11ae30
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq 0x118(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rax
movq 0x118(%rax), %rax
movq %rax, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movslq 0xc(%rsp), %rax
cmpq 0x20(%rsp), %rax
jge 0x36977
movq 0x18(%rsp), %rax
movslq 0xc(%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
movq 0x10(%rsp), %rax
movslq 0xc(%rsp), %rcx
addss (%rax,%rcx,4), %xmm0
movq 0x18(%rsp), %rax
movslq 0xc(%rsp), %rcx
movss %xmm0, (%rax,%rcx,4)
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x36931
addq $0x38, %rsp
retq
nopl (%rax)
| _ZL15ggml_tensor_addP11ggml_tensorS0_:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_10], rsi
mov rdi, [rsp+38h+var_8]
call ggml_nelements
mov [rsp+38h+var_38], rax
mov rdi, [rsp+38h+var_10]
call ggml_nelements
mov rcx, rax
mov rax, [rsp+38h+var_38]
cmp rax, rcx
jz short loc_368F6
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov ecx, 121h
lea r8, aGgmlNelementsA; "ggml_nelements(a) == ggml_nelements(b)"
mov al, 0
call _fprintf
call ggml_print_backtrace
call _abort
loc_368F6:
jmp short $+2
loc_368F8:
mov rdi, [rsp+38h+var_8]
call ggml_nelements
mov [rsp+38h+var_18], rax
mov rax, [rsp+38h+var_8]
mov rax, [rax+118h]
mov [rsp+38h+var_20], rax
mov rax, [rsp+38h+var_10]
mov rax, [rax+118h]
mov [rsp+38h+var_28], rax
mov [rsp+38h+var_2C], 0
loc_36931:
movsxd rax, [rsp+38h+var_2C]
cmp rax, [rsp+38h+var_18]
jge short loc_36977
mov rax, [rsp+38h+var_20]
movsxd rcx, [rsp+38h+var_2C]
movss xmm0, dword ptr [rax+rcx*4]
mov rax, [rsp+38h+var_28]
movsxd rcx, [rsp+38h+var_2C]
addss xmm0, dword ptr [rax+rcx*4]
mov rax, [rsp+38h+var_20]
movsxd rcx, [rsp+38h+var_2C]
movss dword ptr [rax+rcx*4], xmm0
mov eax, [rsp+38h+var_2C]
add eax, 1
mov [rsp+38h+var_2C], eax
jmp short loc_36931
loc_36977:
add rsp, 38h
retn
| long long ggml_tensor_add(long long a1, long long a2)
{
long long result; // rax
long long v3; // [rsp+0h] [rbp-38h]
int i; // [rsp+Ch] [rbp-2Ch]
long long v5; // [rsp+10h] [rbp-28h]
long long v6; // [rsp+18h] [rbp-20h]
long long v7; // [rsp+20h] [rbp-18h]
v3 = ggml_nelements(a1);
if ( v3 != ggml_nelements(a2) )
{
fflush(stdout);
fprintf(
stderr,
"GGML_ASSERT: %s:%d: %s\n",
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml_extend.hpp",
289,
"ggml_nelements(a) == ggml_nelements(b)");
ggml_print_backtrace();
abort();
}
v7 = ggml_nelements(a1);
v6 = *(_QWORD *)(a1 + 280);
v5 = *(_QWORD *)(a2 + 280);
for ( i = 0; ; ++i )
{
result = i;
if ( i >= v7 )
break;
*(float *)(v6 + 4LL * i) = *(float *)(v6 + 4LL * i) + *(float *)(v5 + 4LL * i);
}
return result;
}
| ggml_tensor_add:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x0021ae30
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x0021ae30
MOV RCX,RAX
MOV RAX,qword ptr [RSP]
CMP RAX,RCX
JZ 0x001368f6
MOV RAX,qword ptr [0x002d7f28]
MOV RDI,qword ptr [RAX]
CALL 0x0010b8e0
MOV RAX,qword ptr [0x002d7fa8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x27fc1a]
LEA RDX,[0x27fd5c]
MOV ECX,0x121
LEA R8,[0x2809b1]
MOV AL,0x0
CALL 0x0010bae0
CALL 0x0021a4f0
CALL 0x0010b3a0
LAB_001368f6:
JMP 0x001368f8
LAB_001368f8:
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x0021ae30
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX + 0x118]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x118]
MOV qword ptr [RSP + 0x10],RAX
MOV dword ptr [RSP + 0xc],0x0
LAB_00136931:
MOVSXD RAX,dword ptr [RSP + 0xc]
CMP RAX,qword ptr [RSP + 0x20]
JGE 0x00136977
MOV RAX,qword ptr [RSP + 0x18]
MOVSXD RCX,dword ptr [RSP + 0xc]
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RCX,dword ptr [RSP + 0xc]
ADDSS XMM0,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RSP + 0x18]
MOVSXD RCX,dword ptr [RSP + 0xc]
MOVSS dword ptr [RAX + RCX*0x4],XMM0
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x1
MOV dword ptr [RSP + 0xc],EAX
JMP 0x00136931
LAB_00136977:
ADD RSP,0x38
RET
|
/* ggml_tensor_add(ggml_tensor*, ggml_tensor*) */
void ggml_tensor_add(ggml_tensor *param_1,ggml_tensor *param_2)
{
long lVar1;
long lVar2;
long lVar3;
int local_2c;
lVar1 = ggml_nelements(param_1);
lVar2 = ggml_nelements(param_2);
if (lVar1 != lVar2) {
fflush(*(FILE **)PTR_stdout_002d7f28);
fprintf(*(FILE **)PTR_stderr_002d7fa8,"GGML_ASSERT: %s:%d: %s\n",
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml_extend.hpp",
0x121,"ggml_nelements(a) == ggml_nelements(b)");
ggml_print_backtrace();
/* WARNING: Subroutine does not return */
abort();
}
lVar3 = ggml_nelements(param_1);
lVar1 = *(long *)(param_1 + 0x118);
lVar2 = *(long *)(param_2 + 0x118);
for (local_2c = 0; local_2c < lVar3; local_2c = local_2c + 1) {
*(float *)(lVar1 + (long)local_2c * 4) =
*(float *)(lVar1 + (long)local_2c * 4) + *(float *)(lVar2 + (long)local_2c * 4);
}
return;
}
| |
36,254 | exit_status | eloqsql/unittest/mytap/tap.c | int exit_status()
{
char buff[60];
/*
If there were no plan, we write one last instead.
*/
if (g_test.plan == NO_PLAN)
plan(g_test.last);
if (g_test.plan != g_test.last)
{
diag("%d tests planned but%s %d executed",
g_test.plan, (g_test.plan > g_test.last ? " only" : ""), g_test.last);
return EXIT_FAILURE;
}
if (g_test.failed > 0)
{
diag("Failed %d tests!", g_test.failed);
return EXIT_FAILURE;
}
if (start_time)
{
end_timer(start_time, buff);
printf("Test took %s\n", buff);
fflush(stdout);
}
return EXIT_SUCCESS;
} | O0 | c | exit_status:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
cmpl $0x0, 0x25ec(%rip) # 0x40d8
jne 0x1af9
movl 0x25e8(%rip), %edi # 0x40dc
callq 0x1440
movl 0x25d9(%rip), %eax # 0x40d8
cmpl 0x25d7(%rip), %eax # 0x40dc
je 0x1b4a
movl 0x25cb(%rip), %esi # 0x40d8
movl 0x25c5(%rip), %ecx # 0x40d8
movl 0x25c3(%rip), %edi # 0x40dc
leaq 0x53d(%rip), %rdx # 0x205d
leaq 0x571(%rip), %rax # 0x2098
cmpl %edi, %ecx
cmovgq %rax, %rdx
movl 0x25a9(%rip), %ecx # 0x40dc
leaq 0x53b(%rip), %rdi # 0x2075
movb $0x0, %al
callq 0x1370
movl $0x1, -0x54(%rbp)
jmp 0x1bb2
cmpl $0x0, 0x258f(%rip) # 0x40e0
jle 0x1b70
movl 0x2587(%rip), %esi # 0x40e0
leaq 0x53e(%rip), %rdi # 0x209e
movb $0x0, %al
callq 0x1370
movl $0x1, -0x54(%rbp)
jmp 0x1bb2
cmpq $0x0, 0x25f0(%rip) # 0x4168
je 0x1bab
movq 0x25e7(%rip), %rdi # 0x4168
leaq -0x50(%rbp), %rsi
callq 0x1be0
leaq -0x50(%rbp), %rsi
leaq 0x51a(%rip), %rdi # 0x20af
movb $0x0, %al
callq 0x1060
movq 0x243d(%rip), %rax # 0x3fe0
movq (%rax), %rdi
callq 0x10b0
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x58(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x1bd3
movl -0x58(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
callq 0x1050
nopl (%rax,%rax)
| exit_status:
push rbp
mov rbp, rsp
sub rsp, 60h
mov rax, fs:28h
mov [rbp+var_8], rax
cmp cs:g_test, 0
jnz short loc_1AF9
mov edi, cs:dword_40DC
call plan
loc_1AF9:
mov eax, cs:g_test
cmp eax, cs:dword_40DC
jz short loc_1B4A
mov esi, cs:g_test
mov ecx, cs:g_test
mov edi, cs:dword_40DC
lea rdx, a1D+6; ""
lea rax, aOnly; " only"
cmp ecx, edi
cmovg rdx, rax
mov ecx, cs:dword_40DC
lea rdi, aDTestsPlannedB; "%d tests planned but%s %d executed"
mov al, 0
call diag
mov [rbp+var_54], 1
jmp short loc_1BB2
loc_1B4A:
cmp cs:dword_40E0, 0
jle short loc_1B70
mov esi, cs:dword_40E0
lea rdi, aFailedDTests; "Failed %d tests!"
mov al, 0
call diag
mov [rbp+var_54], 1
jmp short loc_1BB2
loc_1B70:
cmp cs:start_time, 0
jz short loc_1BAB
mov rdi, cs:start_time
lea rsi, [rbp+var_50]
call end_timer
lea rsi, [rbp+var_50]
lea rdi, aTestTookS; "Test took %s\n"
mov al, 0
call _printf
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
loc_1BAB:
mov [rbp+var_54], 0
loc_1BB2:
mov eax, [rbp+var_54]
mov [rbp+var_58], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_1BD3
mov eax, [rbp+var_58]
add rsp, 60h
pop rbp
retn
loc_1BD3:
call ___stack_chk_fail
| long long exit_status(
__m128 a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
long long a9,
long long a10,
long long a11,
long long a12,
long long a13,
long long a14)
{
char *v14; // rdx
char v16; // [rsp+0h] [rbp-60h]
char v18[72]; // [rsp+10h] [rbp-50h] BYREF
unsigned long long v19; // [rsp+58h] [rbp-8h]
v19 = __readfsqword(0x28u);
if ( !g_test )
plan(dword_40DC);
if ( g_test == dword_40DC )
{
if ( dword_40E0 <= 0 )
{
if ( start_time )
{
end_timer(start_time, v18);
printf("Test took %s\n", v18);
fflush(stdout);
}
return 0;
}
else
{
diag(
(long long)"Failed %d tests!",
(unsigned int)dword_40E0,
a11,
a12,
a13,
a14,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
v16);
return 1;
}
}
else
{
v14 = "";
if ( g_test > dword_40DC )
v14 = " only";
diag(
(long long)"%d tests planned but%s %d executed",
(unsigned int)g_test,
(long long)v14,
(unsigned int)dword_40DC,
a13,
a14,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
v16);
return 1;
}
}
| exit_status:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
CMP dword ptr [0x001040d8],0x0
JNZ 0x00101af9
MOV EDI,dword ptr [0x001040dc]
CALL 0x00101440
LAB_00101af9:
MOV EAX,dword ptr [0x001040d8]
CMP EAX,dword ptr [0x001040dc]
JZ 0x00101b4a
MOV ESI,dword ptr [0x001040d8]
MOV ECX,dword ptr [0x001040d8]
MOV EDI,dword ptr [0x001040dc]
LEA RDX,[0x10205d]
LEA RAX,[0x102098]
CMP ECX,EDI
CMOVG RDX,RAX
MOV ECX,dword ptr [0x001040dc]
LEA RDI,[0x102075]
MOV AL,0x0
CALL 0x00101370
MOV dword ptr [RBP + -0x54],0x1
JMP 0x00101bb2
LAB_00101b4a:
CMP dword ptr [0x001040e0],0x0
JLE 0x00101b70
MOV ESI,dword ptr [0x001040e0]
LEA RDI,[0x10209e]
MOV AL,0x0
CALL 0x00101370
MOV dword ptr [RBP + -0x54],0x1
JMP 0x00101bb2
LAB_00101b70:
CMP qword ptr [0x00104168],0x0
JZ 0x00101bab
MOV RDI,qword ptr [0x00104168]
LEA RSI,[RBP + -0x50]
CALL 0x00101be0
LEA RSI,[RBP + -0x50]
LEA RDI,[0x1020af]
MOV AL,0x0
CALL 0x00101060
MOV RAX,qword ptr [0x00103fe0]
MOV RDI,qword ptr [RAX]
CALL 0x001010b0
LAB_00101bab:
MOV dword ptr [RBP + -0x54],0x0
LAB_00101bb2:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x58],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00101bd3
MOV EAX,dword ptr [RBP + -0x58]
ADD RSP,0x60
POP RBP
RET
LAB_00101bd3:
CALL 0x00101050
|
int4 exit_status(void)
{
char *pcVar1;
long in_FS_OFFSET;
int4 local_5c;
int1 local_58 [72];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (g_test == 0) {
plan(DAT_001040dc);
}
if (g_test == DAT_001040dc) {
if (DAT_001040e0 < 1) {
if (start_time != 0) {
end_timer(start_time,local_58);
printf("Test took %s\n",local_58);
fflush(*(FILE **)PTR_stdout_00103fe0);
}
local_5c = 0;
}
else {
diag("Failed %d tests!",DAT_001040e0);
local_5c = 1;
}
}
else {
pcVar1 = "";
if (DAT_001040dc < g_test) {
pcVar1 = " only";
}
diag("%d tests planned but%s %d executed",g_test,pcVar1,DAT_001040dc);
local_5c = 1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_5c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
36,255 | allocate_blobs | eloqsql/storage/maria/ma_bitmap.c | static my_bool allocate_blobs(MARIA_HA *info, MARIA_ROW *row)
{
ulong *length, *end;
uint elements;
/*
Reserve size for:
head block
one extent
tail block
*/
elements= info->bitmap_blocks.elements;
for (length= row->blob_lengths, end= length + info->s->base.blobs;
length < end; length++)
{
if (*length && find_blob(info, *length))
return 1;
}
row->extents_count= (info->bitmap_blocks.elements - elements);
return 0;
} | O3 | c | allocate_blobs:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl 0x2c8(%rdi), %edx
movq (%rdi), %rax
movl 0x3f0(%rax), %ecx
movl %edx, %eax
testq %rcx, %rcx
je 0x54b38
movq %rdi, %r14
movl %edx, -0x2c(%rbp)
movq %rsi, -0x40(%rbp)
movq 0x60(%rsi), %r15
leaq (%r15,%rcx,8), %rax
movq %rax, -0x60(%rbp)
leaq 0x2c0(%rdi), %rax
movq %rax, -0x38(%rbp)
movl $0x3fff, %r13d # imm = 0x3FFF
movq (%r15), %rax
testq %rax, %rax
je 0x54b1c
movq (%r14), %r12
movl 0x7bc(%r12), %ecx
movl 0xc18(%r12), %edx
negl %edx
leal (%rcx,%rdx), %esi
addl $-0xc, %esi
xorl %edx, %edx
divq %rsi
movq %rdx, %rsi
leal (%rcx,%rcx,2), %ecx
shrl $0x2, %ecx
xorl %ebx, %ebx
cmpl %esi, %ecx
setbe %bl
movl $0x0, %ecx
cmovbel %ecx, %esi
movl 0x2c8(%r14), %ecx
movl %ecx, %edx
addq %rax, %rbx
je 0x54ae4
movq %rsi, -0x50(%rbp)
movq %rbx, %rax
shrq $0x7, %rax
movq %rcx, -0x58(%rbp)
leal (%rcx,%rax), %esi
addl $0x2, %esi
movq -0x38(%rbp), %rdi
callq 0x92fe5
testb %al, %al
jne 0x54b44
movq %r15, -0x48(%rbp)
addq $0xa10, %r12 # imm = 0xA10
movl 0x2c8(%r14), %eax
leaq (%rax,%rax,2), %r15
shlq $0x3, %r15
addq 0x2c0(%r14), %r15
movl %ebx, %esi
cmpq %r13, %rbx
cmovaeq %r13, %rsi
movq %r12, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x5608b
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
andq %rcx, %rax
je 0x54abd
subq %rax, %rbx
incl 0x2c8(%r14)
addq $0x18, %r15
jmp 0x54acc
movq %r14, %rdi
movq %r12, %rsi
callq 0x56048
testb %al, %al
jne 0x54b44
testq %rbx, %rbx
jne 0x54a8d
movl 0x2c8(%r14), %edx
movq -0x48(%rbp), %r15
movq -0x58(%rbp), %rcx
movq -0x50(%rbp), %rsi
testl %esi, %esi
je 0x54b0b
movq %rcx, %rbx
leal 0x1(%rdx), %eax
movl %eax, 0x2c8(%r14)
movq %r14, %rdi
callq 0x56358
testb %al, %al
jne 0x54b44
movl 0x2c8(%r14), %edx
movq %rbx, %rcx
movq -0x38(%rbp), %rax
movq (%rax), %rax
subl %ecx, %edx
leaq (%rcx,%rcx,2), %rcx
movl %edx, 0x10(%rax,%rcx,8)
addq $0x8, %r15
cmpq -0x60(%rbp), %r15
jb 0x549f0
movl 0x2c8(%r14), %eax
movq -0x40(%rbp), %rsi
movl -0x2c(%rbp), %edx
subl %edx, %eax
movl %eax, 0xac(%rsi)
xorl %eax, %eax
jmp 0x54b46
movb $0x1, %al
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| allocate_blobs:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov edx, [rdi+2C8h]
mov rax, [rdi]
mov ecx, [rax+3F0h]
mov eax, edx
test rcx, rcx
jz loc_54B38
mov r14, rdi
mov [rbp+var_2C], edx
mov [rbp+var_40], rsi
mov r15, [rsi+60h]
lea rax, [r15+rcx*8]
mov [rbp+var_60], rax
lea rax, [rdi+2C0h]
mov [rbp+var_38], rax
mov r13d, 3FFFh
loc_549F0:
mov rax, [r15]
test rax, rax
jz loc_54B1C
mov r12, [r14]
mov ecx, [r12+7BCh]
mov edx, [r12+0C18h]
neg edx
lea esi, [rcx+rdx]
add esi, 0FFFFFFF4h
xor edx, edx
div rsi
mov rsi, rdx
lea ecx, [rcx+rcx*2]
shr ecx, 2
xor ebx, ebx
cmp ecx, esi
setbe bl
mov ecx, 0
cmovbe esi, ecx
mov ecx, [r14+2C8h]
mov edx, ecx
add rbx, rax
jz loc_54AE4
mov [rbp+var_50], rsi
mov rax, rbx
shr rax, 7
mov [rbp+var_58], rcx
lea esi, [rcx+rax]
add esi, 2
mov rdi, [rbp+var_38]
call allocate_dynamic
test al, al
jnz loc_54B44
mov [rbp+var_48], r15
add r12, 0A10h
mov eax, [r14+2C8h]
lea r15, [rax+rax*2]
shl r15, 3
add r15, [r14+2C0h]
loc_54A8D:
mov esi, ebx
cmp rbx, r13
cmovnb rsi, r13
mov rdi, r12
mov rdx, r15
xor ecx, ecx
call allocate_full_pages
mov ecx, 0FFFFFFFFh
and rax, rcx
jz short loc_54ABD
sub rbx, rax
inc dword ptr [r14+2C8h]
add r15, 18h
jmp short loc_54ACC
loc_54ABD:
mov rdi, r14
mov rsi, r12
call move_to_next_bitmap
test al, al
jnz short loc_54B44
loc_54ACC:
test rbx, rbx
jnz short loc_54A8D
mov edx, [r14+2C8h]
mov r15, [rbp+var_48]
mov rcx, [rbp+var_58]
mov rsi, [rbp+var_50]
loc_54AE4:
test esi, esi
jz short loc_54B0B
mov rbx, rcx
lea eax, [rdx+1]
mov [r14+2C8h], eax
mov rdi, r14
call find_tail
test al, al
jnz short loc_54B44
mov edx, [r14+2C8h]
mov rcx, rbx
loc_54B0B:
mov rax, [rbp+var_38]
mov rax, [rax]
sub edx, ecx
lea rcx, [rcx+rcx*2]
mov [rax+rcx*8+10h], edx
loc_54B1C:
add r15, 8
cmp r15, [rbp+var_60]
jb loc_549F0
mov eax, [r14+2C8h]
mov rsi, [rbp+var_40]
mov edx, [rbp+var_2C]
loc_54B38:
sub eax, edx
mov [rsi+0ACh], eax
xor eax, eax
jmp short loc_54B46
loc_54B44:
mov al, 1
loc_54B46:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| char allocate_blobs(long long *a1, long long a2)
{
int v2; // edx
int v3; // eax
_QWORD *v4; // r15
long long v5; // r12
int v6; // ecx
unsigned long long v7; // rax
unsigned long long v8; // rsi
_BOOL8 v9; // rbx
long long v10; // rcx
int v11; // edx
unsigned long long v12; // rbx
long long v13; // r12
long long v14; // r15
long long v15; // rsi
long long full_pages; // rax
long long v17; // rdx
long long v18; // r8
long long v19; // r9
long long v20; // rbx
_QWORD *v22; // [rsp+0h] [rbp-60h]
long long v23; // [rsp+8h] [rbp-58h]
int v24; // [rsp+10h] [rbp-50h]
_QWORD *v25; // [rsp+18h] [rbp-48h]
long long v26; // [rsp+20h] [rbp-40h]
_QWORD *v27; // [rsp+28h] [rbp-38h]
int v28; // [rsp+34h] [rbp-2Ch]
v2 = *((_DWORD *)a1 + 178);
v3 = v2;
if ( !*(_DWORD *)(*a1 + 1008) )
{
LABEL_22:
*(_DWORD *)(a2 + 172) = v3 - v2;
return 0;
}
v28 = *((_DWORD *)a1 + 178);
v26 = a2;
v4 = *(_QWORD **)(a2 + 96);
v22 = &v4[*(unsigned int *)(*a1 + 1008)];
v27 = a1 + 88;
while ( !*v4 )
{
LABEL_20:
if ( ++v4 >= v22 )
{
v3 = *((_DWORD *)a1 + 178);
a2 = v26;
v2 = v28;
goto LABEL_22;
}
}
v5 = *a1;
v6 = *(_DWORD *)(*a1 + 1980);
v7 = *v4 / (unsigned long long)(unsigned int)(v6 - *(_DWORD *)(*a1 + 3096) - 12);
v8 = *v4 % (unsigned long long)(unsigned int)(v6 - *(_DWORD *)(*a1 + 3096) - 12);
v9 = (unsigned int)(3 * v6) >> 2 <= (unsigned int)v8;
if ( (unsigned int)(3 * v6) >> 2 <= (unsigned int)v8 )
LODWORD(v8) = 0;
v10 = *((unsigned int *)a1 + 178);
v11 = *((_DWORD *)a1 + 178);
v12 = v7 + v9;
if ( v12 )
{
v24 = v8;
v23 = *((unsigned int *)a1 + 178);
if ( (unsigned __int8)allocate_dynamic(v27, (unsigned int)v10 + (unsigned int)(v12 >> 7) + 2) )
return 1;
v25 = v4;
v13 = v5 + 2576;
v14 = a1[88] + 24LL * *((unsigned int *)a1 + 178);
do
{
v15 = (unsigned int)v12;
if ( v12 >= 0x3FFF )
v15 = 0x3FFFLL;
full_pages = (unsigned int)allocate_full_pages(v13, v15, v14, 0LL);
if ( full_pages )
{
v12 -= full_pages;
++*((_DWORD *)a1 + 178);
v14 += 24LL;
}
else if ( (unsigned __int8)move_to_next_bitmap(a1, v13, v17, 0xFFFFFFFFLL, v18, v19) )
{
return 1;
}
}
while ( v12 );
v11 = *((_DWORD *)a1 + 178);
v4 = v25;
v10 = v23;
LODWORD(v8) = v24;
}
if ( !(_DWORD)v8 )
{
LABEL_19:
*(_DWORD *)(*v27 + 24 * v10 + 16) = v11 - v10;
goto LABEL_20;
}
v20 = v10;
*((_DWORD *)a1 + 178) = v11 + 1;
if ( !(unsigned __int8)find_tail(a1) )
{
v11 = *((_DWORD *)a1 + 178);
v10 = v20;
goto LABEL_19;
}
return 1;
}
| allocate_blobs:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV EDX,dword ptr [RDI + 0x2c8]
MOV RAX,qword ptr [RDI]
MOV ECX,dword ptr [RAX + 0x3f0]
MOV EAX,EDX
TEST RCX,RCX
JZ 0x00154b38
MOV R14,RDI
MOV dword ptr [RBP + -0x2c],EDX
MOV qword ptr [RBP + -0x40],RSI
MOV R15,qword ptr [RSI + 0x60]
LEA RAX,[R15 + RCX*0x8]
MOV qword ptr [RBP + -0x60],RAX
LEA RAX,[RDI + 0x2c0]
MOV qword ptr [RBP + -0x38],RAX
MOV R13D,0x3fff
LAB_001549f0:
MOV RAX,qword ptr [R15]
TEST RAX,RAX
JZ 0x00154b1c
MOV R12,qword ptr [R14]
MOV ECX,dword ptr [R12 + 0x7bc]
MOV EDX,dword ptr [R12 + 0xc18]
NEG EDX
LEA ESI,[RCX + RDX*0x1]
ADD ESI,-0xc
XOR EDX,EDX
DIV RSI
MOV RSI,RDX
LEA ECX,[RCX + RCX*0x2]
SHR ECX,0x2
XOR EBX,EBX
CMP ECX,ESI
SETBE BL
MOV ECX,0x0
CMOVBE ESI,ECX
MOV ECX,dword ptr [R14 + 0x2c8]
MOV EDX,ECX
ADD RBX,RAX
JZ 0x00154ae4
MOV qword ptr [RBP + -0x50],RSI
MOV RAX,RBX
SHR RAX,0x7
MOV qword ptr [RBP + -0x58],RCX
LEA ESI,[RCX + RAX*0x1]
ADD ESI,0x2
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x00192fe5
TEST AL,AL
JNZ 0x00154b44
MOV qword ptr [RBP + -0x48],R15
ADD R12,0xa10
MOV EAX,dword ptr [R14 + 0x2c8]
LEA R15,[RAX + RAX*0x2]
SHL R15,0x3
ADD R15,qword ptr [R14 + 0x2c0]
LAB_00154a8d:
MOV ESI,EBX
CMP RBX,R13
CMOVNC RSI,R13
MOV RDI,R12
MOV RDX,R15
XOR ECX,ECX
CALL 0x0015608b
MOV ECX,0xffffffff
AND RAX,RCX
JZ 0x00154abd
SUB RBX,RAX
INC dword ptr [R14 + 0x2c8]
ADD R15,0x18
JMP 0x00154acc
LAB_00154abd:
MOV RDI,R14
MOV RSI,R12
CALL 0x00156048
TEST AL,AL
JNZ 0x00154b44
LAB_00154acc:
TEST RBX,RBX
JNZ 0x00154a8d
MOV EDX,dword ptr [R14 + 0x2c8]
MOV R15,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x50]
LAB_00154ae4:
TEST ESI,ESI
JZ 0x00154b0b
MOV RBX,RCX
LEA EAX,[RDX + 0x1]
MOV dword ptr [R14 + 0x2c8],EAX
MOV RDI,R14
CALL 0x00156358
TEST AL,AL
JNZ 0x00154b44
MOV EDX,dword ptr [R14 + 0x2c8]
MOV RCX,RBX
LAB_00154b0b:
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX]
SUB EDX,ECX
LEA RCX,[RCX + RCX*0x2]
MOV dword ptr [RAX + RCX*0x8 + 0x10],EDX
LAB_00154b1c:
ADD R15,0x8
CMP R15,qword ptr [RBP + -0x60]
JC 0x001549f0
MOV EAX,dword ptr [R14 + 0x2c8]
MOV RSI,qword ptr [RBP + -0x40]
MOV EDX,dword ptr [RBP + -0x2c]
LAB_00154b38:
SUB EAX,EDX
MOV dword ptr [RSI + 0xac],EAX
XOR EAX,EAX
JMP 0x00154b46
LAB_00154b44:
MOV AL,0x1
LAB_00154b46:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 allocate_blobs(long *param_1,long param_2)
{
ulong *puVar1;
long lVar2;
bool bVar3;
long lVar4;
char cVar5;
int iVar6;
uint uVar7;
uint uVar8;
ulong uVar9;
uint uVar10;
ulong uVar11;
ulong *puVar12;
long lVar13;
lVar4 = param_1[0x59];
iVar6 = (int)lVar4;
if ((ulong)*(uint *)(*param_1 + 0x3f0) != 0) {
puVar12 = *(ulong **)(param_2 + 0x60);
puVar1 = puVar12 + *(uint *)(*param_1 + 0x3f0);
do {
uVar9 = *puVar12;
if (uVar9 != 0) {
lVar2 = *param_1;
uVar10 = (*(int *)(lVar2 + 0x7bc) - *(int *)(lVar2 + 0xc18)) - 0xc;
uVar8 = (uint)(uVar9 % (ulong)uVar10);
uVar7 = (uint)(*(int *)(lVar2 + 0x7bc) * 3) >> 2;
bVar3 = uVar7 <= uVar8;
if (uVar7 <= uVar8) {
uVar8 = 0;
}
uVar7 = *(uint *)(param_1 + 0x59);
uVar9 = (ulong)bVar3 + uVar9 / uVar10;
uVar10 = uVar7;
if (uVar9 != 0) {
cVar5 = allocate_dynamic(param_1 + 0x58,uVar7 + (int)(uVar9 >> 7) + 2);
if (cVar5 != '\0') {
return 1;
}
lVar13 = (ulong)*(uint *)(param_1 + 0x59) * 0x18 + param_1[0x58];
do {
uVar11 = uVar9 & 0xffffffff;
if (0x3ffe < uVar9) {
uVar11 = 0x3fff;
}
uVar11 = allocate_full_pages(lVar2 + 0xa10,uVar11,lVar13,0);
if ((uVar11 & 0xffffffff) == 0) {
cVar5 = move_to_next_bitmap(param_1,lVar2 + 0xa10);
if (cVar5 != '\0') {
return 1;
}
}
else {
uVar9 = uVar9 - (uVar11 & 0xffffffff);
*(int *)(param_1 + 0x59) = (int)param_1[0x59] + 1;
lVar13 = lVar13 + 0x18;
}
} while (uVar9 != 0);
uVar10 = *(uint *)(param_1 + 0x59);
}
if (uVar8 != 0) {
*(uint *)(param_1 + 0x59) = uVar10 + 1;
cVar5 = find_tail(param_1);
if (cVar5 != '\0') {
return 1;
}
uVar10 = *(uint *)(param_1 + 0x59);
}
*(uint *)(param_1[0x58] + 0x10 + (ulong)uVar7 * 0x18) = uVar10 - uVar7;
}
puVar12 = puVar12 + 1;
} while (puVar12 < puVar1);
iVar6 = (int)param_1[0x59];
}
*(int *)(param_2 + 0xac) = iVar6 - (int)lVar4;
return 0;
}
| |
36,256 | (anonymous namespace)::codepoint_width(unsigned int) | Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/screen/string.cpp | int codepoint_width(uint32_t ucs) {
if (ftxui::IsControl(ucs)) {
return -1;
}
if (ftxui::IsCombining(ucs)) {
return 0;
}
if (ftxui::IsFullWidth(ucs)) {
return 2;
}
return 1;
} | O0 | cpp | (anonymous namespace)::codepoint_width(unsigned int):
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x8(%rbp)
movl -0x8(%rbp), %edi
callq 0x8d4d0
testb $0x1, %al
jne 0x8d6b9
jmp 0x8d6c2
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x8d6f7
movl -0x8(%rbp), %edi
callq 0x8d2a0
testb $0x1, %al
jne 0x8d6d0
jmp 0x8d6d9
movl $0x0, -0x4(%rbp)
jmp 0x8d6f7
movl -0x8(%rbp), %edi
callq 0x8d3b0
testb $0x1, %al
jne 0x8d6e7
jmp 0x8d6f0
movl $0x2, -0x4(%rbp)
jmp 0x8d6f7
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
| _ZN12_GLOBAL__N_115codepoint_widthEj:
push rbp
mov rbp, rsp
sub rsp, 10h
mov dword ptr [rbp+var_8], edi
mov edi, dword ptr [rbp+var_8]; this
call _ZN5ftxui9IsControlEj; ftxui::IsControl(uint)
test al, 1
jnz short loc_8D6B9
jmp short loc_8D6C2
loc_8D6B9:
mov dword ptr [rbp+var_8+4], 0FFFFFFFFh
jmp short loc_8D6F7
loc_8D6C2:
mov edi, dword ptr [rbp+var_8]; this
call _ZN5ftxui11IsCombiningEj; ftxui::IsCombining(uint)
test al, 1
jnz short loc_8D6D0
jmp short loc_8D6D9
loc_8D6D0:
mov dword ptr [rbp+var_8+4], 0
jmp short loc_8D6F7
loc_8D6D9:
mov edi, dword ptr [rbp+var_8]; this
call _ZN5ftxui11IsFullWidthEj; ftxui::IsFullWidth(uint)
test al, 1
jnz short loc_8D6E7
jmp short loc_8D6F0
loc_8D6E7:
mov dword ptr [rbp+var_8+4], 2
jmp short loc_8D6F7
loc_8D6F0:
mov dword ptr [rbp+var_8+4], 1
loc_8D6F7:
mov eax, dword ptr [rbp+var_8+4]
add rsp, 10h
pop rbp
retn
| long long `anonymous namespace'::codepoint_width(_anonymous_namespace_ *this)
{
if ( (ftxui::IsControl((ftxui *)(unsigned int)this) & 1) != 0 )
{
return (unsigned int)-1;
}
else if ( (ftxui::IsCombining((ftxui *)(unsigned int)this) & 1) != 0 )
{
return 0;
}
else if ( (ftxui::IsFullWidth((ftxui *)(unsigned int)this) & 1) != 0 )
{
return 2;
}
else
{
return 1;
}
}
| codepoint_width:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV dword ptr [RBP + -0x8],EDI
MOV EDI,dword ptr [RBP + -0x8]
CALL 0x0018d4d0
TEST AL,0x1
JNZ 0x0018d6b9
JMP 0x0018d6c2
LAB_0018d6b9:
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0018d6f7
LAB_0018d6c2:
MOV EDI,dword ptr [RBP + -0x8]
CALL 0x0018d2a0
TEST AL,0x1
JNZ 0x0018d6d0
JMP 0x0018d6d9
LAB_0018d6d0:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0018d6f7
LAB_0018d6d9:
MOV EDI,dword ptr [RBP + -0x8]
CALL 0x0018d3b0
TEST AL,0x1
JNZ 0x0018d6e7
JMP 0x0018d6f0
LAB_0018d6e7:
MOV dword ptr [RBP + -0x4],0x2
JMP 0x0018d6f7
LAB_0018d6f0:
MOV dword ptr [RBP + -0x4],0x1
LAB_0018d6f7:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x10
POP RBP
RET
|
/* (anonymous namespace)::codepoint_width(unsigned int) */
int4 (anonymous_namespace)::codepoint_width(uint param_1)
{
ulong uVar1;
int4 local_c;
uVar1 = ftxui::IsControl(param_1);
if ((uVar1 & 1) == 0) {
uVar1 = ftxui::IsCombining(param_1);
if ((uVar1 & 1) == 0) {
uVar1 = ftxui::IsFullWidth(param_1);
if ((uVar1 & 1) == 0) {
local_c = 1;
}
else {
local_c = 2;
}
}
else {
local_c = 0;
}
}
else {
local_c = 0xffffffff;
}
return local_c;
}
| |
36,257 | void ImPlot::PlotStairsEx<ImPlot::GetterXY<ImPlot::IndexerLin, ImPlot::IndexerIdx<unsigned char>>>(char const*, ImPlot::GetterXY<ImPlot::IndexerLin, ImPlot::IndexerIdx<unsigned char>> const&, int) | zkingston[P]unknot/build_O1/_deps/implot-src/implot_items.cpp | void PlotStairsEx(const char* label_id, const Getter& getter, ImPlotStairsFlags flags) {
if (BeginItemEx(label_id, Fitter1<Getter>(getter), flags, ImPlotCol_Line)) {
const ImPlotNextItemData& s = GetItemData();
if (getter.Count > 1 ) {
if (s.RenderFill && ImHasFlag(flags,ImPlotStairsFlags_Shaded)) {
const ImU32 col_fill = ImGui::GetColorU32(s.Colors[ImPlotCol_Fill]);
if (ImHasFlag(flags, ImPlotStairsFlags_PreStep))
RenderPrimitives1<RendererStairsPreShaded>(getter,col_fill);
else
RenderPrimitives1<RendererStairsPostShaded>(getter,col_fill);
}
if (s.RenderLine) {
const ImU32 col_line = ImGui::GetColorU32(s.Colors[ImPlotCol_Line]);
if (ImHasFlag(flags, ImPlotStairsFlags_PreStep))
RenderPrimitives1<RendererStairsPre>(getter,col_line,s.LineWeight);
else
RenderPrimitives1<RendererStairsPost>(getter,col_line,s.LineWeight);
}
}
// render markers
if (s.Marker != ImPlotMarker_None) {
PopPlotClipRect();
PushPlotClipRect(s.MarkerSize);
const ImU32 col_line = ImGui::GetColorU32(s.Colors[ImPlotCol_MarkerOutline]);
const ImU32 col_fill = ImGui::GetColorU32(s.Colors[ImPlotCol_MarkerFill]);
RenderMarkers<Getter>(getter, s.Marker, s.MarkerSize, s.RenderMarkerFill, col_fill, s.RenderMarkerLine, col_line, s.MarkerWeight);
}
EndItem();
}
} | O1 | cpp | void ImPlot::PlotStairsEx<ImPlot::GetterXY<ImPlot::IndexerLin, ImPlot::IndexerIdx<unsigned char>>>(char const*, ImPlot::GetterXY<ImPlot::IndexerLin, ImPlot::IndexerIdx<unsigned char>> const&, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rsp, %rsi
movq %rbx, (%rsi)
xorl %ecx, %ecx
callq 0x150d5c
testb %al, %al
je 0xd2b0c
leaq 0x264297(%rip), %r14 # 0x336ca0
movq (%r14), %r15
cmpl $0x2, 0x28(%rbx)
jl 0xd2a7b
btl $0xb, %ebp
jae 0xd2a45
cmpb $0x0, 0x5ad(%r15)
je 0xd2a45
leaq 0x548(%r15), %rdi
callq 0x215ebe
movq %rbx, %rdi
movl %eax, %esi
btl $0xa, %ebp
jb 0xd2a40
callq 0x17f121
jmp 0xd2a45
callq 0x17f0c9
cmpb $0x1, 0x5ac(%r15)
jne 0xd2a7b
leaq 0x538(%r15), %rdi
callq 0x215ebe
btl $0xa, %ebp
movss 0x588(%r15), %xmm0
movq %rbx, %rdi
movl %eax, %esi
jb 0xd2a76
callq 0x17f1df
jmp 0xd2a7b
callq 0x17f179
cmpl $-0x1, 0x58c(%r15)
je 0xd2ae8
callq 0xbd912
movss 0x590(%r15), %xmm0
callq 0xbd878
leaq 0x558(%r15), %rdi
callq 0x215ebe
movl %eax, %ebp
leaq 0x568(%r15), %rdi
callq 0x215ebe
movl 0x58c(%r15), %esi
movss 0x590(%r15), %xmm0
movzbl 0x5af(%r15), %edx
movzbl 0x5ae(%r15), %r8d
movss 0x594(%r15), %xmm1
movq %rbx, %rdi
movl %eax, %ecx
movl %ebp, %r9d
callq 0x151024
movq (%r14), %rbx
callq 0xbd912
leaq 0x538(%rbx), %rdi
callq 0xc7cc2
movq 0x68(%rbx), %rax
movq %rax, 0x70(%rbx)
movq $0x0, 0x68(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| _ZN6ImPlot12PlotStairsExINS_8GetterXYINS_10IndexerLinENS_10IndexerIdxIdEEEEEEvPKcRKT_i:
push rbp
push r15
push r14
push rbx
push rax
mov ebp, edx
mov rbx, rsi
mov rsi, rsp
mov [rsi], rbx
xor ecx, ecx
call _ZN6ImPlot11BeginItemExINS_7Fitter1INS_8GetterXYINS_10IndexerLinENS_10IndexerIdxIdEEEEEEEEbPKcRKT_ii; ImPlot::BeginItemEx<ImPlot::Fitter1<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>>>(char const*,ImPlot::Fitter1<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>> const&,int,int)
test al, al
jz loc_D2B0C
lea r14, GImPlot
mov r15, [r14]
cmp dword ptr [rbx+28h], 2
jl short loc_D2A7B
bt ebp, 0Bh
jnb short loc_D2A45
cmp byte ptr [r15+5ADh], 0
jz short loc_D2A45
lea rdi, [r15+548h]
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov rdi, rbx
mov esi, eax
bt ebp, 0Ah
jb short loc_D2A40
call _ZN6ImPlot17RenderPrimitives1INS_24RendererStairsPostShadedENS_8GetterXYINS_10IndexerLinENS_10IndexerIdxIdEEEEJjEEEvRKT0_DpT1_; ImPlot::RenderPrimitives1<ImPlot::RendererStairsPostShaded,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>,uint>(ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>> const&,uint)
jmp short loc_D2A45
loc_D2A40:
call _ZN6ImPlot17RenderPrimitives1INS_23RendererStairsPreShadedENS_8GetterXYINS_10IndexerLinENS_10IndexerIdxIdEEEEJjEEEvRKT0_DpT1_; ImPlot::RenderPrimitives1<ImPlot::RendererStairsPreShaded,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>,uint>(ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>> const&,uint)
loc_D2A45:
cmp byte ptr [r15+5ACh], 1
jnz short loc_D2A7B
lea rdi, [r15+538h]
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
bt ebp, 0Ah
movss xmm0, dword ptr [r15+588h]
mov rdi, rbx; this
mov esi, eax
jb short loc_D2A76
call _ZN6ImPlot17RenderPrimitives1INS_18RendererStairsPostENS_8GetterXYINS_10IndexerLinENS_10IndexerIdxIdEEEEJjfEEEvRKT0_DpT1_; ImPlot::RenderPrimitives1<ImPlot::RendererStairsPost,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>,uint,float>(ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>> const&,uint,float)
jmp short loc_D2A7B
loc_D2A76:
call _ZN6ImPlot17RenderPrimitives1INS_17RendererStairsPreENS_8GetterXYINS_10IndexerLinENS_10IndexerIdxIdEEEEJjfEEEvRKT0_DpT1_; ImPlot::RenderPrimitives1<ImPlot::RendererStairsPre,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>,uint,float>(ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>> const&,uint,float)
loc_D2A7B:
cmp dword ptr [r15+58Ch], 0FFFFFFFFh
jz short loc_D2AE8
call _ZN6ImPlot15PopPlotClipRectEv; ImPlot::PopPlotClipRect(void)
movss xmm0, dword ptr [r15+590h]; float
call _ZN6ImPlot16PushPlotClipRectEf; ImPlot::PushPlotClipRect(float)
lea rdi, [r15+558h]
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov ebp, eax
lea rdi, [r15+568h]
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov esi, [r15+58Ch]
movss xmm0, dword ptr [r15+590h]
movzx edx, byte ptr [r15+5AFh]
movzx r8d, byte ptr [r15+5AEh]
movss xmm1, dword ptr [r15+594h]
mov rdi, rbx; this
mov ecx, eax
mov r9d, ebp
call _ZN6ImPlot13RenderMarkersINS_8GetterXYINS_10IndexerLinENS_10IndexerIdxIdEEEEEEvRKT_ifbjbjf; ImPlot::RenderMarkers<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>>(ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>> const&,int,float,bool,uint,bool,uint,float)
loc_D2AE8:
mov rbx, [r14]
call _ZN6ImPlot15PopPlotClipRectEv; ImPlot::PopPlotClipRect(void)
lea rdi, [rbx+538h]; this
call _ZN18ImPlotNextItemData5ResetEv; ImPlotNextItemData::Reset(void)
mov rax, [rbx+68h]
mov [rbx+70h], rax
mov qword ptr [rbx+68h], 0
loc_D2B0C:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long ImPlot::PlotStairsEx<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>>(
ImPlot *a1,
int *a2,
long long a3)
{
__int16 v3; // bp
unsigned long long ColorU32; // rsi
long long result; // rax
ImGui *v7; // r15
unsigned int v8; // eax
float v9; // xmm0_4
unsigned int v10; // ebp
unsigned int v11; // eax
ImGui *v12; // rbx
_QWORD v13[5]; // [rsp-8h] [rbp-28h] BYREF
v3 = a3;
ColorU32 = (unsigned long long)v13;
v13[0] = a2;
result = ImPlot::BeginItemEx<ImPlot::Fitter1<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>>>(
a1,
v13,
a3,
0LL);
if ( (_BYTE)result )
{
v7 = GImPlot;
if ( a2[10] >= 2 )
{
if ( (v3 & 0x800) != 0 && *((_BYTE *)GImPlot + 1453) )
{
a1 = (ImPlot *)a2;
ColorU32 = (unsigned int)ImGui::GetColorU32((char *)GImPlot + 1352);
if ( (v3 & 0x400) != 0 )
ImPlot::RenderPrimitives1<ImPlot::RendererStairsPreShaded,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>,unsigned int>(
a2,
ColorU32);
else
ImPlot::RenderPrimitives1<ImPlot::RendererStairsPostShaded,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>,unsigned int>(
a2,
ColorU32);
}
if ( *((_BYTE *)v7 + 1452) == 1 )
{
v8 = ImGui::GetColorU32((char *)v7 + 1336);
v9 = *((float *)v7 + 354);
a1 = (ImPlot *)a2;
ColorU32 = v8;
if ( (v3 & 0x400) != 0 )
ImPlot::RenderPrimitives1<ImPlot::RendererStairsPre,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>,unsigned int,float>(
a2,
v8,
v9);
else
ImPlot::RenderPrimitives1<ImPlot::RendererStairsPost,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>,unsigned int,float>(
a2,
v8,
v9);
}
}
if ( *((_DWORD *)v7 + 355) != -1 )
{
ImPlot::PopPlotClipRect(a1, (const char *)ColorU32);
ImPlot::PushPlotClipRect(a1, (__m128)*((unsigned int *)v7 + 356), (const char *)ColorU32);
v10 = ImGui::GetColorU32((char *)v7 + 1368);
v11 = ImGui::GetColorU32((char *)v7 + 1384);
ColorU32 = *((unsigned int *)v7 + 355);
a1 = (ImPlot *)a2;
ImPlot::RenderMarkers<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>>(
a2,
ColorU32,
*((unsigned __int8 *)v7 + 1455),
v11,
*((unsigned __int8 *)v7 + 1454),
v10,
*((float *)v7 + 356),
*((float *)v7 + 357));
}
v12 = GImPlot;
ImPlot::PopPlotClipRect(a1, (const char *)ColorU32);
ImPlotNextItemData::Reset((ImGui *)((char *)v12 + 1336));
result = *((_QWORD *)v12 + 13);
*((_QWORD *)v12 + 14) = result;
*((_QWORD *)v12 + 13) = 0LL;
}
return result;
}
| PlotStairsEx<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBP,EDX
MOV RBX,RSI
MOV RSI,RSP
MOV qword ptr [RSI],RBX
XOR ECX,ECX
CALL 0x00250d5c
TEST AL,AL
JZ 0x001d2b0c
LEA R14,[0x436ca0]
MOV R15,qword ptr [R14]
CMP dword ptr [RBX + 0x28],0x2
JL 0x001d2a7b
BT EBP,0xb
JNC 0x001d2a45
CMP byte ptr [R15 + 0x5ad],0x0
JZ 0x001d2a45
LEA RDI,[R15 + 0x548]
CALL 0x00315ebe
MOV RDI,RBX
MOV ESI,EAX
BT EBP,0xa
JC 0x001d2a40
CALL 0x0027f121
JMP 0x001d2a45
LAB_001d2a40:
CALL 0x0027f0c9
LAB_001d2a45:
CMP byte ptr [R15 + 0x5ac],0x1
JNZ 0x001d2a7b
LEA RDI,[R15 + 0x538]
CALL 0x00315ebe
BT EBP,0xa
MOVSS XMM0,dword ptr [R15 + 0x588]
MOV RDI,RBX
MOV ESI,EAX
JC 0x001d2a76
CALL 0x0027f1df
JMP 0x001d2a7b
LAB_001d2a76:
CALL 0x0027f179
LAB_001d2a7b:
CMP dword ptr [R15 + 0x58c],-0x1
JZ 0x001d2ae8
CALL 0x001bd912
MOVSS XMM0,dword ptr [R15 + 0x590]
CALL 0x001bd878
LEA RDI,[R15 + 0x558]
CALL 0x00315ebe
MOV EBP,EAX
LEA RDI,[R15 + 0x568]
CALL 0x00315ebe
MOV ESI,dword ptr [R15 + 0x58c]
MOVSS XMM0,dword ptr [R15 + 0x590]
MOVZX EDX,byte ptr [R15 + 0x5af]
MOVZX R8D,byte ptr [R15 + 0x5ae]
MOVSS XMM1,dword ptr [R15 + 0x594]
MOV RDI,RBX
MOV ECX,EAX
MOV R9D,EBP
CALL 0x00251024
LAB_001d2ae8:
MOV RBX,qword ptr [R14]
CALL 0x001bd912
LEA RDI,[RBX + 0x538]
CALL 0x001c7cc2
MOV RAX,qword ptr [RBX + 0x68]
MOV qword ptr [RBX + 0x70],RAX
MOV qword ptr [RBX + 0x68],0x0
LAB_001d2b0c:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* void ImPlot::PlotStairsEx<ImPlot::GetterXY<ImPlot::IndexerLin, ImPlot::IndexerIdx<double> >
>(char const*, ImPlot::GetterXY<ImPlot::IndexerLin, ImPlot::IndexerIdx<double> > const&, int) */
void ImPlot::PlotStairsEx<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>>
(char *param_1,GetterXY *param_2,int param_3)
{
long lVar1;
bool bVar2;
uint uVar3;
uint uVar4;
GetterXY *local_28;
local_28 = param_2;
bVar2 = BeginItemEx<ImPlot::Fitter1<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>>>
(param_1,(Fitter1 *)&local_28,param_3,0);
lVar1 = GImPlot;
if (bVar2) {
if (1 < *(int *)(param_2 + 0x28)) {
if ((((uint)param_3 >> 0xb & 1) != 0) && (*(char *)(GImPlot + 0x5ad) != '\0')) {
uVar3 = ImGui::GetColorU32((ImVec4 *)(GImPlot + 0x548));
if (((uint)param_3 >> 10 & 1) == 0) {
RenderPrimitives1<ImPlot::RendererStairsPostShaded,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>,unsigned_int>
(param_2,uVar3);
}
else {
RenderPrimitives1<ImPlot::RendererStairsPreShaded,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>,unsigned_int>
(param_2,uVar3);
}
}
if (*(char *)(lVar1 + 0x5ac) == '\x01') {
uVar3 = ImGui::GetColorU32((ImVec4 *)(lVar1 + 0x538));
if (((uint)param_3 >> 10 & 1) == 0) {
RenderPrimitives1<ImPlot::RendererStairsPost,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>,unsigned_int,float>
(param_2,uVar3,*(float *)(lVar1 + 0x588));
}
else {
RenderPrimitives1<ImPlot::RendererStairsPre,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>,unsigned_int,float>
(param_2,uVar3,*(float *)(lVar1 + 0x588));
}
}
}
if (*(int *)(lVar1 + 0x58c) != -1) {
PopPlotClipRect();
PushPlotClipRect(*(float *)(lVar1 + 0x590));
uVar3 = ImGui::GetColorU32((ImVec4 *)(lVar1 + 0x558));
uVar4 = ImGui::GetColorU32((ImVec4 *)(lVar1 + 0x568));
RenderMarkers<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<double>>>
(param_2,*(int *)(lVar1 + 0x58c),*(float *)(lVar1 + 0x590),*(bool *)(lVar1 + 0x5af),
uVar4,*(bool *)(lVar1 + 0x5ae),uVar3,*(float *)(lVar1 + 0x594));
}
lVar1 = GImPlot;
PopPlotClipRect();
ImPlotNextItemData::Reset((ImPlotNextItemData *)(lVar1 + 0x538));
*(int8 *)(lVar1 + 0x70) = *(int8 *)(lVar1 + 0x68);
*(int8 *)(lVar1 + 0x68) = 0;
}
return;
}
| |
36,258 | ftb_find_relevance_parse | eloqsql/storage/myisam/ft_boolean_search.c | static int ftb_find_relevance_parse(MYSQL_FTPARSER_PARAM *param,
const char *doc, int len)
{
MY_FTB_FIND_PARAM *ftb_param= param->mysql_ftparam;
FT_INFO *ftb= ftb_param->ftb;
uchar *end= (uchar*) doc + len;
FT_WORD w;
while (ft_simple_get_word(ftb->charset, (uchar**) &doc, end, &w, TRUE))
param->mysql_add_word(param, (char*) w.pos, (int)w.len, 0);
return(0);
} | O3 | c | ftb_find_relevance_parse:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq -0x30(%rbp), %rax
movq %rsi, (%rax)
movq 0x18(%rdi), %rcx
movq (%rcx), %r13
movslq %edx, %r14
addq %rsi, %r14
movq 0x10(%r13), %rdi
leaq -0x48(%rbp), %rcx
movq %rax, %rsi
movq %r14, %rdx
movl $0x1, %r8d
callq 0x5ca45
testb %al, %al
je 0x5b429
leaq -0x30(%rbp), %r15
leaq -0x48(%rbp), %r12
movq -0x48(%rbp), %rsi
movl -0x38(%rbp), %edx
movq %rbx, %rdi
xorl %ecx, %ecx
callq *0x8(%rbx)
movq 0x10(%r13), %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %rcx
movl $0x1, %r8d
callq 0x5ca45
testb %al, %al
jne 0x5b3fe
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ftb_find_relevance_parse:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdi
lea rax, [rbp+var_30]
mov [rax], rsi
mov rcx, [rdi+18h]
mov r13, [rcx]
movsxd r14, edx
add r14, rsi
mov rdi, [r13+10h]
lea rcx, [rbp+var_48]
mov rsi, rax
mov rdx, r14
mov r8d, 1
call ft_simple_get_word
test al, al
jz short loc_5B429
lea r15, [rbp+var_30]
lea r12, [rbp+var_48]
loc_5B3FE:
mov rsi, [rbp+var_48]
mov edx, [rbp+var_38]
mov rdi, rbx
xor ecx, ecx
call qword ptr [rbx+8]
mov rdi, [r13+10h]
mov rsi, r15
mov rdx, r14
mov rcx, r12
mov r8d, 1
call ft_simple_get_word
test al, al
jnz short loc_5B3FE
loc_5B429:
xor eax, eax
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ftb_find_relevance_parse(long long a1, long long a2, int a3)
{
long long v3; // r13
long long v4; // r14
_QWORD v6[2]; // [rsp+8h] [rbp-48h] BYREF
unsigned int v7; // [rsp+18h] [rbp-38h]
_QWORD v8[6]; // [rsp+20h] [rbp-30h] BYREF
v8[0] = a2;
v3 = **(_QWORD **)(a1 + 24);
v4 = a2 + a3;
while ( (unsigned __int8)ft_simple_get_word(*(_QWORD *)(v3 + 16), v8, v4, v6, 1LL) )
(*(void ( **)(long long, _QWORD, _QWORD, _QWORD))(a1 + 8))(a1, v6[0], v7, 0LL);
return 0LL;
}
| ftb_find_relevance_parse:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
LEA RAX,[RBP + -0x30]
MOV qword ptr [RAX],RSI
MOV RCX,qword ptr [RDI + 0x18]
MOV R13,qword ptr [RCX]
MOVSXD R14,EDX
ADD R14,RSI
MOV RDI,qword ptr [R13 + 0x10]
LEA RCX,[RBP + -0x48]
MOV RSI,RAX
MOV RDX,R14
MOV R8D,0x1
CALL 0x0015ca45
TEST AL,AL
JZ 0x0015b429
LEA R15,[RBP + -0x30]
LEA R12,[RBP + -0x48]
LAB_0015b3fe:
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,dword ptr [RBP + -0x38]
MOV RDI,RBX
XOR ECX,ECX
CALL qword ptr [RBX + 0x8]
MOV RDI,qword ptr [R13 + 0x10]
MOV RSI,R15
MOV RDX,R14
MOV RCX,R12
MOV R8D,0x1
CALL 0x0015ca45
TEST AL,AL
JNZ 0x0015b3fe
LAB_0015b429:
XOR EAX,EAX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 ftb_find_relevance_parse(long param_1,long param_2,int param_3)
{
long lVar1;
char cVar2;
int8 local_50 [2];
int4 local_40;
long local_38;
lVar1 = **(long **)(param_1 + 0x18);
local_38 = param_2;
cVar2 = ft_simple_get_word(*(int8 *)(lVar1 + 0x10),&local_38,param_3 + param_2,local_50,1);
if (cVar2 != '\0') {
do {
(**(code **)(param_1 + 8))(param_1,local_50[0],local_40,0);
cVar2 = ft_simple_get_word(*(int8 *)(lVar1 + 0x10),&local_38,param_3 + param_2,local_50,
1);
} while (cVar2 != '\0');
}
return 0;
}
| |
36,259 | patricia_node_free | corpus-core[P]colibri-stateless/src/chains/eth/verifier/patricia_trie.c | INTERNAL void patricia_node_free(node_t* node) {
if (!node) return;
if (node->type == NODE_TYPE_BRANCH) {
for (int i = 0; i < 16; i++)
patricia_node_free(node->values.branch.children[i]);
if (node->values.branch.value.data)
safe_free(node->values.branch.value.data);
}
else if (node->type == NODE_TYPE_EXTENSION) {
if (node->values.extension.path.data)
safe_free(node->values.extension.path.data);
patricia_node_free(node->values.extension.child);
}
else if (node->type == NODE_TYPE_LEAF) {
if (node->values.leaf.value.data)
safe_free(node->values.leaf.value.data);
if (node->values.leaf.path.data)
safe_free(node->values.leaf.path.data);
}
safe_free(node);
} | O0 | c | patricia_node_free:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x32e38
jmp 0x32f06
movq -0x8(%rbp), %rax
cmpl $0x2, 0x30(%rax)
jne 0x32e8c
movl $0x0, -0xc(%rbp)
cmpl $0x10, -0xc(%rbp)
jge 0x32e6c
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq 0x38(%rax,%rcx,8), %rdi
callq 0x32e20
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x32e49
movq -0x8(%rbp), %rax
cmpq $0x0, 0xc0(%rax)
je 0x32e8a
movq -0x8(%rbp), %rax
movq 0xc0(%rax), %rdi
callq 0x9c5a0
jmp 0x32efd
movq -0x8(%rbp), %rax
cmpl $0x1, 0x30(%rax)
jne 0x32ebd
movq -0x8(%rbp), %rax
cmpq $0x0, 0x40(%rax)
je 0x32eae
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rdi
callq 0x9c5a0
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rdi
callq 0x32e20
jmp 0x32efb
movq -0x8(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x32ef9
movq -0x8(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x32edf
movq -0x8(%rbp), %rax
movq 0x50(%rax), %rdi
callq 0x9c5a0
movq -0x8(%rbp), %rax
cmpq $0x0, 0x40(%rax)
je 0x32ef7
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rdi
callq 0x9c5a0
jmp 0x32ef9
jmp 0x32efb
jmp 0x32efd
movq -0x8(%rbp), %rdi
callq 0x9c5a0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| patricia_node_free:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
cmp [rbp+var_8], 0
jnz short loc_32E38
jmp loc_32F06
loc_32E38:
mov rax, [rbp+var_8]
cmp dword ptr [rax+30h], 2
jnz short loc_32E8C
mov [rbp+var_C], 0
loc_32E49:
cmp [rbp+var_C], 10h
jge short loc_32E6C
mov rax, [rbp+var_8]
movsxd rcx, [rbp+var_C]
mov rdi, [rax+rcx*8+38h]
call patricia_node_free
mov eax, [rbp+var_C]
add eax, 1
mov [rbp+var_C], eax
jmp short loc_32E49
loc_32E6C:
mov rax, [rbp+var_8]
cmp qword ptr [rax+0C0h], 0
jz short loc_32E8A
mov rax, [rbp+var_8]
mov rdi, [rax+0C0h]
call safe_free
loc_32E8A:
jmp short loc_32EFD
loc_32E8C:
mov rax, [rbp+var_8]
cmp dword ptr [rax+30h], 1
jnz short loc_32EBD
mov rax, [rbp+var_8]
cmp qword ptr [rax+40h], 0
jz short loc_32EAE
mov rax, [rbp+var_8]
mov rdi, [rax+40h]
call safe_free
loc_32EAE:
mov rax, [rbp+var_8]
mov rdi, [rax+48h]
call patricia_node_free
jmp short loc_32EFB
loc_32EBD:
mov rax, [rbp+var_8]
cmp dword ptr [rax+30h], 0
jnz short loc_32EF9
mov rax, [rbp+var_8]
cmp qword ptr [rax+50h], 0
jz short loc_32EDF
mov rax, [rbp+var_8]
mov rdi, [rax+50h]
call safe_free
loc_32EDF:
mov rax, [rbp+var_8]
cmp qword ptr [rax+40h], 0
jz short loc_32EF7
mov rax, [rbp+var_8]
mov rdi, [rax+40h]
call safe_free
loc_32EF7:
jmp short $+2
loc_32EF9:
jmp short $+2
loc_32EFB:
jmp short $+2
loc_32EFD:
mov rdi, [rbp+var_8]
call safe_free
loc_32F06:
add rsp, 10h
pop rbp
retn
| long long patricia_node_free(long long a1)
{
long long result; // rax
int i; // [rsp+4h] [rbp-Ch]
if ( a1 )
{
switch ( *(_DWORD *)(a1 + 48) )
{
case 2:
for ( i = 0; i < 16; ++i )
patricia_node_free(*(_QWORD *)(a1 + 8LL * i + 56));
if ( *(_QWORD *)(a1 + 192) )
safe_free(*(_QWORD *)(a1 + 192));
break;
case 1:
if ( *(_QWORD *)(a1 + 64) )
safe_free(*(_QWORD *)(a1 + 64));
patricia_node_free(*(_QWORD *)(a1 + 72));
break;
case 0:
if ( *(_QWORD *)(a1 + 80) )
safe_free(*(_QWORD *)(a1 + 80));
if ( *(_QWORD *)(a1 + 64) )
safe_free(*(_QWORD *)(a1 + 64));
break;
}
return safe_free(a1);
}
return result;
}
| patricia_node_free:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
CMP qword ptr [RBP + -0x8],0x0
JNZ 0x00132e38
JMP 0x00132f06
LAB_00132e38:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x30],0x2
JNZ 0x00132e8c
MOV dword ptr [RBP + -0xc],0x0
LAB_00132e49:
CMP dword ptr [RBP + -0xc],0x10
JGE 0x00132e6c
MOV RAX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RBP + -0xc]
MOV RDI,qword ptr [RAX + RCX*0x8 + 0x38]
CALL 0x00132e20
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x1
MOV dword ptr [RBP + -0xc],EAX
JMP 0x00132e49
LAB_00132e6c:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0xc0],0x0
JZ 0x00132e8a
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0xc0]
CALL 0x0019c5a0
LAB_00132e8a:
JMP 0x00132efd
LAB_00132e8c:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x30],0x1
JNZ 0x00132ebd
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x40],0x0
JZ 0x00132eae
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x40]
CALL 0x0019c5a0
LAB_00132eae:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x48]
CALL 0x00132e20
JMP 0x00132efb
LAB_00132ebd:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x30],0x0
JNZ 0x00132ef9
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x50],0x0
JZ 0x00132edf
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x50]
CALL 0x0019c5a0
LAB_00132edf:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x40],0x0
JZ 0x00132ef7
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x40]
CALL 0x0019c5a0
LAB_00132ef7:
JMP 0x00132ef9
LAB_00132ef9:
JMP 0x00132efb
LAB_00132efb:
JMP 0x00132efd
LAB_00132efd:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0019c5a0
LAB_00132f06:
ADD RSP,0x10
POP RBP
RET
|
void patricia_node_free(long param_1)
{
int4 local_14;
if (param_1 != 0) {
if (*(int *)(param_1 + 0x30) == 2) {
for (local_14 = 0; local_14 < 0x10; local_14 = local_14 + 1) {
patricia_node_free(*(int8 *)(param_1 + 0x38 + (long)local_14 * 8));
}
if (*(long *)(param_1 + 0xc0) != 0) {
safe_free(*(int8 *)(param_1 + 0xc0));
}
}
else if (*(int *)(param_1 + 0x30) == 1) {
if (*(long *)(param_1 + 0x40) != 0) {
safe_free(*(int8 *)(param_1 + 0x40));
}
patricia_node_free(*(int8 *)(param_1 + 0x48));
}
else if (*(int *)(param_1 + 0x30) == 0) {
if (*(long *)(param_1 + 0x50) != 0) {
safe_free(*(int8 *)(param_1 + 0x50));
}
if (*(long *)(param_1 + 0x40) != 0) {
safe_free(*(int8 *)(param_1 + 0x40));
}
}
safe_free(param_1);
}
return;
}
| |
36,260 | patricia_node_free | corpus-core[P]colibri-stateless/src/chains/eth/verifier/patricia_trie.c | INTERNAL void patricia_node_free(node_t* node) {
if (!node) return;
if (node->type == NODE_TYPE_BRANCH) {
for (int i = 0; i < 16; i++)
patricia_node_free(node->values.branch.children[i]);
if (node->values.branch.value.data)
safe_free(node->values.branch.value.data);
}
else if (node->type == NODE_TYPE_EXTENSION) {
if (node->values.extension.path.data)
safe_free(node->values.extension.path.data);
patricia_node_free(node->values.extension.child);
}
else if (node->type == NODE_TYPE_LEAF) {
if (node->values.leaf.value.data)
safe_free(node->values.leaf.value.data);
if (node->values.leaf.path.data)
safe_free(node->values.leaf.path.data);
}
safe_free(node);
} | O3 | c | patricia_node_free:
testq %rdi, %rdi
je 0x2c474
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x30(%rdi), %eax
testl %eax, %eax
je 0x2c48e
cmpl $0x1, %eax
je 0x2c475
cmpl $0x2, %eax
jne 0x2c4aa
xorl %r14d, %r14d
movq 0x38(%rbx,%r14,8), %rdi
callq 0x2c438
incq %r14
cmpq $0x10, %r14
jne 0x2c458
movq 0xc0(%rbx), %rdi
jmp 0x2c4a0
retq
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x2c483
callq 0x50f4c
movq 0x48(%rbx), %rdi
callq 0x2c438
jmp 0x2c4aa
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x2c49c
callq 0x50f4c
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x2c4aa
callq 0x50f4c
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x50f4c
| patricia_node_free:
test rdi, rdi
jz short locret_2C474
push r14
push rbx
push rax
mov rbx, rdi
mov eax, [rdi+30h]
test eax, eax
jz short loc_2C48E
cmp eax, 1
jz short loc_2C475
cmp eax, 2
jnz short loc_2C4AA
xor r14d, r14d
loc_2C458:
mov rdi, [rbx+r14*8+38h]
call patricia_node_free
inc r14
cmp r14, 10h
jnz short loc_2C458
mov rdi, [rbx+0C0h]
jmp short loc_2C4A0
locret_2C474:
retn
loc_2C475:
mov rdi, [rbx+40h]
test rdi, rdi
jz short loc_2C483
call safe_free
loc_2C483:
mov rdi, [rbx+48h]
call patricia_node_free
jmp short loc_2C4AA
loc_2C48E:
mov rdi, [rbx+50h]
test rdi, rdi
jz short loc_2C49C
call safe_free
loc_2C49C:
mov rdi, [rbx+40h]
loc_2C4A0:
test rdi, rdi
jz short loc_2C4AA
call safe_free
loc_2C4AA:
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
jmp safe_free
| long long patricia_node_free(long long a1)
{
long long result; // rax
int v3; // eax
long long i; // r14
long long v5; // rdi
long long v6; // rdi
long long v7; // rdi
if ( a1 )
{
v3 = *(_DWORD *)(a1 + 48);
if ( v3 )
{
if ( v3 == 1 )
{
v6 = *(_QWORD *)(a1 + 64);
if ( v6 )
safe_free(v6);
patricia_node_free(*(_QWORD *)(a1 + 72));
return safe_free(a1);
}
if ( v3 != 2 )
return safe_free(a1);
for ( i = 0LL; i != 16; ++i )
patricia_node_free(*(_QWORD *)(a1 + 8 * i + 56));
v5 = *(_QWORD *)(a1 + 192);
}
else
{
v7 = *(_QWORD *)(a1 + 80);
if ( v7 )
safe_free(v7);
v5 = *(_QWORD *)(a1 + 64);
}
if ( v5 )
safe_free(v5);
return safe_free(a1);
}
return result;
}
| patricia_node_free:
TEST RDI,RDI
JZ 0x0012c474
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV EAX,dword ptr [RDI + 0x30]
TEST EAX,EAX
JZ 0x0012c48e
CMP EAX,0x1
JZ 0x0012c475
CMP EAX,0x2
JNZ 0x0012c4aa
XOR R14D,R14D
LAB_0012c458:
MOV RDI,qword ptr [RBX + R14*0x8 + 0x38]
CALL 0x0012c438
INC R14
CMP R14,0x10
JNZ 0x0012c458
MOV RDI,qword ptr [RBX + 0xc0]
JMP 0x0012c4a0
LAB_0012c474:
RET
LAB_0012c475:
MOV RDI,qword ptr [RBX + 0x40]
TEST RDI,RDI
JZ 0x0012c483
CALL 0x00150f4c
LAB_0012c483:
MOV RDI,qword ptr [RBX + 0x48]
CALL 0x0012c438
JMP 0x0012c4aa
LAB_0012c48e:
MOV RDI,qword ptr [RBX + 0x50]
TEST RDI,RDI
JZ 0x0012c49c
CALL 0x00150f4c
LAB_0012c49c:
MOV RDI,qword ptr [RBX + 0x40]
LAB_0012c4a0:
TEST RDI,RDI
JZ 0x0012c4aa
CALL 0x00150f4c
LAB_0012c4aa:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x00150f4c
|
void patricia_node_free(long param_1)
{
int iVar1;
long lVar2;
if (param_1 == 0) {
return;
}
iVar1 = *(int *)(param_1 + 0x30);
if (iVar1 == 0) {
if (*(long *)(param_1 + 0x50) != 0) {
safe_free();
}
lVar2 = *(long *)(param_1 + 0x40);
}
else {
if (iVar1 == 1) {
if (*(long *)(param_1 + 0x40) != 0) {
safe_free();
}
patricia_node_free(*(int8 *)(param_1 + 0x48));
goto LAB_0012c4aa;
}
if (iVar1 != 2) goto LAB_0012c4aa;
lVar2 = 0;
do {
patricia_node_free(*(int8 *)(param_1 + 0x38 + lVar2 * 8));
lVar2 = lVar2 + 1;
} while (lVar2 != 0x10);
lVar2 = *(long *)(param_1 + 0xc0);
}
if (lVar2 != 0) {
safe_free();
}
LAB_0012c4aa:
safe_free(param_1);
return;
}
| |
36,261 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool) | monkey531[P]llama/common/json.hpp | JSON_HEDLEY_WARN_UNUSED_RESULT
static basic_json parse(InputType&& i,
const parser_callback_t cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false)
{
basic_json result;
parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
return result;
} | 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> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
xorl %esi, %esi
callq 0x3d548
movq (%r12), %r15
movq 0x8(%r12), %r12
movq %rsp, %rdi
movq %r13, %rsi
callq 0x3d5e8
addq %r15, %r12
movzbl %r14b, %r8d
movzbl %bpl, %r9d
leaq 0x20(%rsp), %rdi
movq %rsp, %rcx
movq %r15, %rsi
movq %r12, %rdx
callq 0x3d568
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rsi
movq %rbx, %rdx
callq 0x3d62e
leaq 0x20(%rsp), %rdi
callq 0x3d9f8
movq %rsp, %rdi
callq 0x47f7a
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x3d9f8
jmp 0x7acfc
movq %rax, %r14
movq %rsp, %rdi
callq 0x47f7a
jmp 0x7ad09
movq %rax, %r14
movq %rbx, %rdi
callq 0x3d534
movq %r14, %rdi
callq 0x24f60
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov ebp, r8d
mov r14d, ecx
mov r13, rdx
mov r12, rsi
mov rbx, rdi
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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(decltype(nullptr))
mov r15, [r12]
mov r12, [r12+8]
mov rdi, rsp
mov rsi, r13
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&)
add r12, r15
movzx r8d, r14b
movzx r9d, bpl
lea rdi, [rsp+118h+var_F8]
mov rcx, rsp
mov rsi, r15
mov rdx, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
lea rdi, [rsp+118h+var_F8]
push 1
pop rsi
mov rdx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)
lea rdi, [rsp+118h+var_F8]; this
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
mov rax, rbx
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
lea rdi, [rsp+arg_18]; this
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
jmp short loc_7ACFC
mov r14, rax
loc_7ACFC:
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
jmp short loc_7AD09
mov r14, rax
loc_7AD09:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdi, r14
call __Unwind_Resume
| _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>::parse<std::string>(
_BYTE *a1,
long long *a2,
long long a3,
unsigned __int8 a4,
unsigned __int8 a5)
{
long long v8; // r15
long long v9; // r12
int v10; // ecx
int v11; // r8d
int v12; // r9d
__int128 v14[2]; // [rsp+0h] [rbp-118h] BYREF
_BYTE v15[248]; // [rsp+20h] [rbp-F8h] BYREF
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json((long long)a1);
v8 = *a2;
v9 = a2[1];
std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function(
v14,
a3);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
(long long)v15,
v8,
v8 + v9,
v14,
a4,
a5);
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(
(long long)v15,
1,
a1,
v10,
v11,
v12);
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser((std::_Function_base *)v15);
std::_Function_base::~_Function_base((std::_Function_base *)v14);
return a1;
}
| parse<std::__cxx11::string>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV EBP,R8D
MOV R14D,ECX
MOV R13,RDX
MOV R12,RSI
MOV RBX,RDI
XOR ESI,ESI
CALL 0x0013d548
MOV R15,qword ptr [R12]
MOV R12,qword ptr [R12 + 0x8]
LAB_0017ac8a:
MOV RDI,RSP
MOV RSI,R13
CALL 0x0013d5e8
ADD R12,R15
LAB_0017ac98:
MOVZX R8D,R14B
MOVZX R9D,BPL
LEA RDI,[RSP + 0x20]
MOV RCX,RSP
MOV RSI,R15
MOV RDX,R12
CALL 0x0013d568
LAB_0017acb3:
LEA RDI,[RSP + 0x20]
PUSH 0x1
POP RSI
MOV RDX,RBX
CALL 0x0013d62e
LAB_0017acc3:
LEA RDI,[RSP + 0x20]
CALL 0x0013d9f8
MOV RDI,RSP
CALL 0x00147f7a
MOV RAX,RBX
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::parse<std::__cxx11::string >(std::__cxx11::string&&, std::function<bool (int,
nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
* __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::parse<std::__cxx11::string>
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,long *param_1,function *param_3,int1 param_4,int1 param_5)
{
long lVar1;
long lVar2;
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
afStack_118 [32];
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
local_f8 [200];
basic_json((_func_decltype_nullptr *)this);
lVar1 = *param_1;
lVar2 = param_1[1];
/* try { // try from 0017ac8a to 0017ac94 has its CatchHandler @ 0017ad06 */
std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::function(afStack_118,param_3);
/* try { // try from 0017ac98 to 0017acb2 has its CatchHandler @ 0017acf9 */
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(local_f8,lVar1,lVar2 + lVar1,afStack_118,param_4,param_5);
/* try { // try from 0017acb3 to 0017acc2 has its CatchHandler @ 0017acea */
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::parse(local_f8,true,this);
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::~parser(local_f8);
std::_Function_base::~_Function_base((_Function_base *)afStack_118);
return this;
}
| |
36,262 | pk_get_pk_alg | msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/pkparse.c | static int pk_get_pk_alg(unsigned char **p,
const unsigned char *end,
mbedtls_pk_type_t *pk_alg, mbedtls_asn1_buf *params)
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
mbedtls_asn1_buf alg_oid;
memset(params, 0, sizeof(mbedtls_asn1_buf));
if ((ret = mbedtls_asn1_get_alg(p, end, &alg_oid, params)) != 0) {
return MBEDTLS_ERROR_ADD(MBEDTLS_ERR_PK_INVALID_ALG, ret);
}
if (mbedtls_oid_get_pk_alg(&alg_oid, pk_alg) != 0) {
return MBEDTLS_ERR_PK_UNKNOWN_PK_ALG;
}
/*
* No parameters with RSA (only for EC)
*/
if (*pk_alg == MBEDTLS_PK_RSA &&
((params->tag != MBEDTLS_ASN1_NULL && params->tag != 0) ||
params->len != 0)) {
return MBEDTLS_ERR_PK_INVALID_ALG;
}
return 0;
} | O3 | c | pk_get_pk_alg:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq $0x0, 0x10(%rcx)
movq %rsp, %rdx
callq 0x96df8
testl %eax, %eax
je 0x8cc2c
addl $0xffffc580, %eax # imm = 0xFFFFC580
jmp 0x8cc61
movq %rsp, %rdi
movq %r14, %rsi
callq 0x97b0a
movl %eax, %ecx
movl $0xffffc380, %eax # imm = 0xFFFFC380
testl %ecx, %ecx
jne 0x8cc61
cmpl $0x1, (%r14)
jne 0x8cc5f
movl (%rbx), %ecx
movl $0xffffc580, %eax # imm = 0xFFFFC580
cmpl $0x5, %ecx
je 0x8cc58
testl %ecx, %ecx
jne 0x8cc61
cmpq $0x0, 0x8(%rbx)
jne 0x8cc61
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
| pk_get_pk_alg:
push r14
push rbx
sub rsp, 18h
mov rbx, rcx
mov r14, rdx
xorps xmm0, xmm0
movups xmmword ptr [rcx], xmm0
mov qword ptr [rcx+10h], 0
mov rdx, rsp
call mbedtls_asn1_get_alg
test eax, eax
jz short loc_8CC2C
add eax, 0FFFFC580h
jmp short loc_8CC61
loc_8CC2C:
mov rdi, rsp
mov rsi, r14
call mbedtls_oid_get_pk_alg
mov ecx, eax
mov eax, 0FFFFC380h
test ecx, ecx
jnz short loc_8CC61
cmp dword ptr [r14], 1
jnz short loc_8CC5F
mov ecx, [rbx]
mov eax, 0FFFFC580h
cmp ecx, 5
jz short loc_8CC58
test ecx, ecx
jnz short loc_8CC61
loc_8CC58:
cmp qword ptr [rbx+8], 0
jnz short loc_8CC61
loc_8CC5F:
xor eax, eax
loc_8CC61:
add rsp, 18h
pop rbx
pop r14
retn
| long long pk_get_pk_alg(long long a1, long long a2, _DWORD *a3, long long a4)
{
int alg; // eax
long long result; // rax
int pk_alg; // ecx
_BYTE v9[40]; // [rsp+0h] [rbp-28h] BYREF
*(_OWORD *)a4 = 0LL;
*(_QWORD *)(a4 + 16) = 0LL;
alg = mbedtls_asn1_get_alg(a1, a2, v9);
if ( alg )
return (unsigned int)(alg - 14976);
pk_alg = mbedtls_oid_get_pk_alg(v9, a3);
result = 4294951808LL;
if ( !pk_alg )
{
if ( *a3 != 1 )
return 0LL;
result = 4294952320LL;
if ( (*(_DWORD *)a4 == 5 || !*(_DWORD *)a4) && !*(_QWORD *)(a4 + 8) )
return 0LL;
}
return result;
}
| pk_get_pk_alg:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RCX
MOV R14,RDX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RCX],XMM0
MOV qword ptr [RCX + 0x10],0x0
MOV RDX,RSP
CALL 0x00196df8
TEST EAX,EAX
JZ 0x0018cc2c
ADD EAX,0xffffc580
JMP 0x0018cc61
LAB_0018cc2c:
MOV RDI,RSP
MOV RSI,R14
CALL 0x00197b0a
MOV ECX,EAX
MOV EAX,0xffffc380
TEST ECX,ECX
JNZ 0x0018cc61
CMP dword ptr [R14],0x1
JNZ 0x0018cc5f
MOV ECX,dword ptr [RBX]
MOV EAX,0xffffc580
CMP ECX,0x5
JZ 0x0018cc58
TEST ECX,ECX
JNZ 0x0018cc61
LAB_0018cc58:
CMP qword ptr [RBX + 0x8],0x0
JNZ 0x0018cc61
LAB_0018cc5f:
XOR EAX,EAX
LAB_0018cc61:
ADD RSP,0x18
POP RBX
POP R14
RET
|
int pk_get_pk_alg(int8 param_1,int8 param_2,int *param_3,int *param_4)
{
int iVar1;
int iVar2;
int1 auStack_28 [24];
param_4[0] = 0;
param_4[1] = 0;
param_4[2] = 0;
param_4[3] = 0;
param_4[4] = 0;
param_4[5] = 0;
iVar1 = mbedtls_asn1_get_alg(param_1,param_2,auStack_28);
if (iVar1 == 0) {
iVar2 = mbedtls_oid_get_pk_alg(auStack_28,param_3);
iVar1 = -0x3c80;
if (iVar2 == 0) {
if (*param_3 == 1) {
if ((*param_4 != 5) && (*param_4 != 0)) {
return -0x3a80;
}
if (*(long *)(param_4 + 2) != 0) {
return -0x3a80;
}
}
iVar1 = 0;
}
}
else {
iVar1 = iVar1 + -0x3a80;
}
return iVar1;
}
| |
36,263 | nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool) | monkey531[P]llama/common/json.hpp | static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser(
InputAdapterType adapter,
detail::parser_callback_t<basic_json>cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false
)
{
return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter),
std::move(cb), allow_exceptions, ignore_comments);
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq %rsi, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x18(%rcx), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rcx), %rax
testq %rax, %rax
je 0x5ac11
movups (%rcx), %xmm1
addq $0x10, %rcx
movaps %xmm1, (%rsp)
movq %rax, 0x10(%rsp)
movups %xmm0, (%rcx)
movzbl %r8b, %ecx
movzbl %r9b, %r8d
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x5b72a
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x5ac40
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
retq
jmp 0x5ac6d
movq %rax, %rbx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x5ac65
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x1c030
movq %rax, %rdi
callq 0x24259
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb:
push rbx
sub rsp, 30h
mov rbx, rdi
mov [rsp+38h+var_18], rsi
mov [rsp+38h+var_10], rdx
xorps xmm0, xmm0
movaps [rsp+38h+var_38], xmm0
mov [rsp+38h+var_28], 0
mov rax, [rcx+18h]
mov [rsp+38h+var_20], rax
mov rax, [rcx+10h]
test rax, rax
jz short loc_5AC11
movups xmm1, xmmword ptr [rcx]
add rcx, 10h
movaps [rsp+38h+var_38], xmm1
mov [rsp+38h+var_28], rax
movups xmmword ptr [rcx], xmm0
loc_5AC11:
movzx ecx, r8b
movzx r8d, r9b
lea rsi, [rsp+38h+var_18]
mov rdx, rsp
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEEC2EOSM_St8functionIFbiNS1_13parse_event_tERSF_EEbb; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>&&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
mov rax, [rsp+38h+var_28]
test rax, rax
jz short loc_5AC40
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_5AC40:
mov rax, rbx
add rsp, 30h
pop rbx
retn
jmp short loc_5AC6D
mov rbx, rax
mov rax, [rsp+38h+var_28]
test rax, rax
jz short loc_5AC65
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_5AC65:
mov rdi, rbx
call __Unwind_Resume
loc_5AC6D:
mov rdi, rax
call __clang_call_terminate
| 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
long long a1,
long long a2,
long long a3,
__int128 *a4,
unsigned __int8 a5,
unsigned __int8 a6)
{
void ( *v6)(__int128 *, __int128 *, long long); // rax
__int128 v8; // [rsp+0h] [rbp-38h] BYREF
void ( *v9)(__int128 *, __int128 *, long long); // [rsp+10h] [rbp-28h]
long long v10; // [rsp+18h] [rbp-20h]
_QWORD v11[3]; // [rsp+20h] [rbp-18h] BYREF
v11[0] = a2;
v11[1] = a3;
v8 = 0LL;
v9 = 0LL;
v10 = *((_QWORD *)a4 + 3);
v6 = (void ( *)(__int128 *, __int128 *, long long))*((_QWORD *)a4 + 2);
if ( v6 )
{
v8 = *a4;
v9 = v6;
a4[1] = 0LL;
}
((void ( *)(long long, _QWORD *, __int128 *, _QWORD, _QWORD))nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser)(
a1,
v11,
&v8,
a5,
a6);
if ( v9 )
v9(&v8, &v8, 3LL);
return a1;
}
| parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>:
PUSH RBX
SUB RSP,0x30
MOV RBX,RDI
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x28],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RCX + 0x18]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RCX + 0x10]
TEST RAX,RAX
JZ 0x0015ac11
MOVUPS XMM1,xmmword ptr [RCX]
ADD RCX,0x10
MOVAPS xmmword ptr [RSP],XMM1
MOV qword ptr [RSP + 0x10],RAX
MOVUPS xmmword ptr [RCX],XMM0
LAB_0015ac11:
MOVZX ECX,R8B
MOVZX R8D,R9B
LEA RSI,[RSP + 0x20]
MOV RDX,RSP
MOV RDI,RBX
CALL 0x0015b72a
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x0015ac40
LAB_0015ac33:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0015ac40:
MOV RAX,RBX
ADD RSP,0x30
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >
>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >, std::function<bool (int,
nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
* nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*param_1,int8 param_2,int8 param_3,int8 *param_4,int1 param_5,
int1 param_6)
{
code *pcVar1;
int8 local_38;
int8 uStack_30;
code *local_28;
int8 local_20;
int8 local_18;
int8 local_10;
local_38 = 0;
uStack_30 = 0;
local_28 = (code *)0x0;
local_20 = param_4[3];
pcVar1 = (code *)param_4[2];
if (pcVar1 != (code *)0x0) {
local_38 = *param_4;
uStack_30 = param_4[1];
param_4[2] = 0;
param_4[3] = 0;
local_28 = pcVar1;
}
/* try { // try from 0015ac11 to 0015ac28 has its CatchHandler @ 0015ac4b */
local_18 = param_2;
local_10 = param_3;
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::parser(param_1,&local_18,&local_38,param_5,param_6);
if (local_28 != (code *)0x0) {
/* try { // try from 0015ac33 to 0015ac3f has its CatchHandler @ 0015ac49 */
(*local_28)(&local_38,&local_38,3);
}
return param_1;
}
| |
36,264 | LefDefParser::lefwLayerRoutingHeight(double) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp | int
lefwLayerRoutingHeight(double height)
{
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (lefwState != LEFW_LAYERROUTING_START &&
lefwState != LEFW_LAYERROUTING)
return LEFW_BAD_ORDER;
if (!lefwIsRouting)
return LEFW_BAD_DATA; // only routing calls this func
if (prtSemiColon) {
// the previous statement hasn't written the ; yet
if (lefwWriteEncrypt)
encPrint(lefwFile, (char*) ";\n");
else
fprintf(lefwFile, ";\n");
prtSemiColon = 0;
}
if (lefwWriteEncrypt)
encPrint(lefwFile, (char*) " HEIGHT %.11g ;\n", height);
else
fprintf(lefwFile, " HEIGHT %.11g ;\n", height);
lefwLines++;
return LEFW_OK;
} | O3 | cpp | LefDefParser::lefwLayerRoutingHeight(double):
pushq %rbx
subq $0x10, %rsp
leaq 0x1a946(%rip), %rbx # 0x24e00
movq (%rbx), %rcx
testq %rcx, %rcx
je 0xa515
leaq 0x1ab87(%rip), %rax # 0x25050
movl (%rax), %edx
cmpl $0x1f, %edx
je 0xa4de
movl $0x2, %eax
cmpl $0x7, %edx
jne 0xa57b
leaq 0x1abdf(%rip), %rax # 0x250c4
cmpl $0x0, (%rax)
je 0xa51c
cmpb $0x1, 0x1ac03(%rip) # 0x250f4
jne 0xa546
movsd %xmm0, 0x8(%rsp)
cmpb $0x1, 0x1abec(%rip) # 0x250ec
jne 0xa523
leaq 0xfd07(%rip), %rsi # 0x1a210
movq %rcx, %rdi
xorl %eax, %eax
callq 0x18c35
jmp 0xa539
movl $0x1, %eax
jmp 0xa57b
movl $0x3, %eax
jmp 0xa57b
leaq 0xfce6(%rip), %rdi # 0x1a210
movl $0x2, %esi
movl $0x1, %edx
callq 0x1110
movb $0x0, 0x1abb4(%rip) # 0x250f4
movsd 0x8(%rsp), %xmm0
movq (%rbx), %rdi
cmpb $0x1, 0x1ab9c(%rip) # 0x250ec
jne 0xa562
leaq 0x10529(%rip), %rsi # 0x1aa82
movb $0x1, %al
callq 0x18c35
jmp 0xa570
leaq 0x10519(%rip), %rsi # 0x1aa82
movb $0x1, %al
callq 0x10f0
leaq 0x1aad5(%rip), %rax # 0x2504c
incl (%rax)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
| _ZN12LefDefParser22lefwLayerRoutingHeightEd:
push rbx
sub rsp, 10h
lea rbx, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rcx, [rbx]
test rcx, rcx
jz short loc_A515
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
mov edx, [rax]
cmp edx, 1Fh
jz short loc_A4DE
mov eax, 2
cmp edx, 7
jnz loc_A57B
loc_A4DE:
lea rax, _ZN12LefDefParser13lefwIsRoutingE; LefDefParser::lefwIsRouting
cmp dword ptr [rax], 0
jz short loc_A51C
cmp cs:_ZN12LefDefParserL12prtSemiColonE, 1; LefDefParser::prtSemiColon
jnz short loc_A546
movsd [rsp+18h+var_10], xmm0
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt
jnz short loc_A523
lea rsi, aDividercharS+11h; ";\n"
mov rdi, rcx
xor eax, eax
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_A539
loc_A515:
mov eax, 1
jmp short loc_A57B
loc_A51C:
mov eax, 3
jmp short loc_A57B
loc_A523:
lea rdi, aDividercharS+11h; ";\n"
mov esi, 2
mov edx, 1
call _fwrite
loc_A539:
mov cs:_ZN12LefDefParserL12prtSemiColonE, 0; LefDefParser::prtSemiColon
movsd xmm0, [rsp+18h+var_10]
loc_A546:
mov rdi, [rbx]
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt
jnz short loc_A562
lea rsi, aHeight11g; " HEIGHT %.11g ;\n"
mov al, 1
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_A570
loc_A562:
lea rsi, aHeight11g; " HEIGHT %.11g ;\n"
mov al, 1
call _fprintf
loc_A570:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
inc dword ptr [rax]
xor eax, eax
loc_A57B:
add rsp, 10h
pop rbx
retn
| long long LefDefParser::lefwLayerRoutingHeight(
LefDefParser *this,
double a2,
long long a3,
long long a4,
long long a5,
int a6,
int a7)
{
int v7; // ecx
unsigned int v8; // edx
long long result; // rax
v7 = LefDefParser::lefwFile;
if ( !*(_QWORD *)&LefDefParser::lefwFile )
return 1LL;
v8 = LefDefParser::lefwState;
if ( LefDefParser::lefwState == 31 || (result = 2LL, LefDefParser::lefwState == 7) )
{
if ( LefDefParser::lefwIsRouting )
{
if ( LefDefParser::prtSemiColon == 1 )
{
if ( LefDefParser::lefwWriteEncrypt == 1 )
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)";\n",
LefDefParser::lefwState,
LefDefParser::lefwFile,
a6,
a7);
else
fwrite(";\n", 2LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile);
LefDefParser::prtSemiColon = 0;
}
if ( LefDefParser::lefwWriteEncrypt == 1 )
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" HEIGHT %.11g ;\n", v8, v7, a6, a7);
else
fprintf(*(_QWORD *)&LefDefParser::lefwFile, " HEIGHT %.11g ;\n", a2);
++LefDefParser::lefwLines;
return 0LL;
}
else
{
return 3LL;
}
}
return result;
}
| lefwLayerRoutingHeight:
PUSH RBX
SUB RSP,0x10
LEA RBX,[0x124e00]
MOV RCX,qword ptr [RBX]
TEST RCX,RCX
JZ 0x0010a515
LEA RAX,[0x125050]
MOV EDX,dword ptr [RAX]
CMP EDX,0x1f
JZ 0x0010a4de
MOV EAX,0x2
CMP EDX,0x7
JNZ 0x0010a57b
LAB_0010a4de:
LEA RAX,[0x1250c4]
CMP dword ptr [RAX],0x0
JZ 0x0010a51c
CMP byte ptr [0x001250f4],0x1
JNZ 0x0010a546
MOVSD qword ptr [RSP + 0x8],XMM0
CMP byte ptr [0x001250ec],0x1
JNZ 0x0010a523
LEA RSI,[0x11a210]
MOV RDI,RCX
XOR EAX,EAX
CALL 0x00118c35
JMP 0x0010a539
LAB_0010a515:
MOV EAX,0x1
JMP 0x0010a57b
LAB_0010a51c:
MOV EAX,0x3
JMP 0x0010a57b
LAB_0010a523:
LEA RDI,[0x11a210]
MOV ESI,0x2
MOV EDX,0x1
CALL 0x00101110
LAB_0010a539:
MOV byte ptr [0x001250f4],0x0
MOVSD XMM0,qword ptr [RSP + 0x8]
LAB_0010a546:
MOV RDI,qword ptr [RBX]
CMP byte ptr [0x001250ec],0x1
JNZ 0x0010a562
LEA RSI,[0x11aa82]
MOV AL,0x1
CALL 0x00118c35
JMP 0x0010a570
LAB_0010a562:
LEA RSI,[0x11aa82]
MOV AL,0x1
CALL 0x001010f0
LAB_0010a570:
LEA RAX,[0x12504c]
INC dword ptr [RAX]
XOR EAX,EAX
LAB_0010a57b:
ADD RSP,0x10
POP RBX
RET
|
/* LefDefParser::lefwLayerRoutingHeight(double) */
int8 LefDefParser::lefwLayerRoutingHeight(double param_1)
{
int8 uVar1;
if (lefwFile == (_IO_FILE *)0x0) {
uVar1 = 1;
}
else if ((lefwState == 0x1f) || (uVar1 = 2, lefwState == 7)) {
if (lefwIsRouting == 0) {
uVar1 = 3;
}
else {
if (prtSemiColon == '\x01') {
if (lefwWriteEncrypt == '\x01') {
encPrint(lefwFile,";\n");
}
else {
fwrite(";\n",2,1,lefwFile);
}
prtSemiColon = '\0';
}
if (lefwWriteEncrypt == '\x01') {
encPrint(lefwFile," HEIGHT %.11g ;\n");
}
else {
fprintf(lefwFile," HEIGHT %.11g ;\n",param_1);
}
lefwLines = lefwLines + 1;
uVar1 = 0;
}
}
return uVar1;
}
| |
36,265 | my_mb_wc_euc_jp | eloqsql/strings/ctype-ujis.c | static int
my_mb_wc_euc_jp(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e)
{
int hi;
if (s >= e)
return MY_CS_TOOSMALL;
if ((hi= s[0]) < 0x80) /* ASCII code set: [00..7F] -> [U+0000..U+007F] */
{
*pwc= hi;
return 1;
}
if (hi >= 0xA1 && hi <= 0xFE) /* JIS-X-0208 code set: [A1..FE][A1..FE] */
{
if (s + 2 > e)
return MY_CS_TOOSMALL2;
return (*pwc= jisx0208_eucjp_to_unicode[(hi << 8) + s[1]]) ? 2 :
(s[1] < 0xA1 || s[1] > 0xFE) ? MY_CS_ILSEQ : -2;
}
/* JIS-X-0201 HALF WIDTH KATAKANA: [8E][A1..DF] -> [U+FF61..U+FF9F] */
if (hi == 0x8E)
{
if (s + 2 > e)
return MY_CS_TOOSMALL2;
if (s[1] < 0xA1 || s[1] > 0xDF)
return MY_CS_ILSEQ;
*pwc= 0xFEC0 + s[1]; /* 0xFFC0 = 0xFF61 - 0xA1 */
return 2;
}
if (hi == 0x8F) /* JIS X 0212 code set: [8F][A1..FE][A1..FE] */
{
if (s + 3 > e)
return MY_CS_TOOSMALL3;
return (*pwc= jisx0212_eucjp_to_unicode[(((int) s[1]) << 8) + s[2]]) ?
3 :
(s[1] < 0xA1 || s[1] > 0xFE || s[2] < 0xA1 || s[2] > 0xFE) ?
MY_CS_ILSEQ : -3;
}
return MY_CS_ILSEQ;
} | O3 | c | my_mb_wc_euc_jp:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0xc9ae3
movzbl (%rdx), %edi
testb %dil, %dil
js 0xc9ae5
movq %rdi, (%rsi)
movl $0x1, %eax
popq %rbp
retq
leal 0x5f(%rdi), %eax
cmpb $0x5d, %al
ja 0xc9b31
leaq 0x2(%rdx), %r8
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %r8
ja 0xc9ae3
movzbl 0x1(%rdx), %eax
shll $0x9, %edi
leal (%rdi,%rax,2), %eax
leaq 0x20cf05(%rip), %rcx # 0x2d6a10
movzwl (%rax,%rcx), %ecx
movq %rcx, (%rsi)
movl $0x2, %eax
testq %rcx, %rcx
jne 0xc9ae3
movb 0x1(%rdx), %al
incb %al
xorl %ecx, %ecx
cmpb $-0x5e, %al
setb %cl
leal -0x2(,%rcx,2), %eax
jmp 0xc9ae3
cmpq $0x8f, %rdi
je 0xc9b75
cmpl $0x8e, %edi
jne 0xc9bb7
leaq 0x2(%rdx), %rdi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rdi
ja 0xc9ae3
movzbl 0x1(%rdx), %ecx
leal 0x20(%rcx), %edx
movl $0x0, %eax
cmpb $-0x3f, %dl
jb 0xc9ae3
addq $0xfec0, %rcx # imm = 0xFEC0
movq %rcx, (%rsi)
movl $0x2, %eax
jmp 0xc9ae3
leaq 0x3(%rdx), %rdi
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rcx, %rdi
ja 0xc9ae3
movzwl 0x1(%rdx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
leaq 0x22ce77(%rip), %rcx # 0x2f6a10
movzwl (%rcx,%rax,2), %ecx
movq %rcx, (%rsi)
movl $0x3, %eax
testq %rcx, %rcx
jne 0xc9ae3
movb 0x1(%rdx), %al
incb %al
cmpb $-0x5e, %al
jae 0xc9bbe
xorl %eax, %eax
jmp 0xc9ae3
movb 0x2(%rdx), %cl
movl $0x0, %eax
cmpb $-0x5f, %cl
jb 0xc9ae3
xorl %eax, %eax
cmpb $-0x1, %cl
sete %al
leal (%rax,%rax,2), %eax
addl $-0x3, %eax
jmp 0xc9ae3
| my_mb_wc_euc_jp:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_C9AE3
movzx edi, byte ptr [rdx]
test dil, dil
js short loc_C9AE5
mov [rsi], rdi
mov eax, 1
loc_C9AE3:
pop rbp
retn
loc_C9AE5:
lea eax, [rdi+5Fh]
cmp al, 5Dh ; ']'
ja short loc_C9B31
lea r8, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp r8, rcx
ja short loc_C9AE3
movzx eax, byte ptr [rdx+1]
shl edi, 9
lea eax, [rdi+rax*2]
lea rcx, jisx0208_eucjp_to_unicode
movzx ecx, word ptr [rax+rcx]
mov [rsi], rcx
mov eax, 2
test rcx, rcx
jnz short loc_C9AE3
mov al, [rdx+1]
inc al
xor ecx, ecx
cmp al, 0A2h
setb cl
lea eax, ds:0FFFFFFFFFFFFFFFEh[rcx*2]
jmp short loc_C9AE3
loc_C9B31:
cmp rdi, 8Fh
jz short loc_C9B75
cmp edi, 8Eh
jnz short loc_C9BB7
lea rdi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rdi, rcx
ja short loc_C9AE3
movzx ecx, byte ptr [rdx+1]
lea edx, [rcx+20h]
mov eax, 0
cmp dl, 0C1h
jb short loc_C9AE3
add rcx, 0FEC0h
mov [rsi], rcx
mov eax, 2
jmp loc_C9AE3
loc_C9B75:
lea rdi, [rdx+3]
mov eax, 0FFFFFF99h
cmp rdi, rcx
ja loc_C9AE3
movzx eax, word ptr [rdx+1]
rol ax, 8
movzx eax, ax
lea rcx, jisx0212_eucjp_to_unicode
movzx ecx, word ptr [rcx+rax*2]
mov [rsi], rcx
mov eax, 3
test rcx, rcx
jnz loc_C9AE3
mov al, [rdx+1]
inc al
cmp al, 0A2h
jnb short loc_C9BBE
loc_C9BB7:
xor eax, eax
jmp loc_C9AE3
loc_C9BBE:
mov cl, [rdx+2]
mov eax, 0
cmp cl, 0A1h
jb loc_C9AE3
xor eax, eax
cmp cl, 0FFh
setz al
lea eax, [rax+rax*2]
add eax, 0FFFFFFFDh
jmp loc_C9AE3
| long long my_mb_wc_euc_jp(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rdi
long long v6; // rcx
long long v7; // rcx
long long v8; // rcx
unsigned __int8 v9; // cl
result = 4294967195LL;
if ( (unsigned long long)a3 >= a4 )
return result;
v5 = *a3;
if ( (v5 & 0x80u) == 0LL )
{
*a2 = v5;
return 1LL;
}
if ( (unsigned __int8)(v5 + 95) <= 0x5Du )
{
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
v6 = jisx0208_eucjp_to_unicode[256 * (_DWORD)v5 + a3[1]];
*a2 = v6;
result = 2LL;
if ( !v6 )
return 2 * (unsigned int)((unsigned __int8)(a3[1] + 1) < 0xA2u) - 2;
}
return result;
}
if ( v5 != 143 )
{
if ( (_DWORD)v5 == 142 )
{
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
v7 = a3[1];
result = 0LL;
if ( (unsigned __int8)(v7 + 32) >= 0xC1u )
{
*a2 = v7 + 65216;
return 2LL;
}
}
return result;
}
return 0LL;
}
result = 4294967193LL;
if ( (unsigned long long)(a3 + 3) > a4 )
return result;
v8 = jisx0212_eucjp_to_unicode[(unsigned __int16)__ROL2__(*(_WORD *)(a3 + 1), 8)];
*a2 = v8;
result = 3LL;
if ( v8 )
return result;
if ( (unsigned __int8)(a3[1] + 1) < 0xA2u )
return 0LL;
v9 = a3[2];
result = 0LL;
if ( v9 >= 0xA1u )
return 3 * (unsigned int)(v9 == 0xFF) - 3;
return result;
}
| my_mb_wc_euc_jp:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001c9ae3
MOVZX EDI,byte ptr [RDX]
TEST DIL,DIL
JS 0x001c9ae5
MOV qword ptr [RSI],RDI
MOV EAX,0x1
LAB_001c9ae3:
POP RBP
RET
LAB_001c9ae5:
LEA EAX,[RDI + 0x5f]
CMP AL,0x5d
JA 0x001c9b31
LEA R8,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP R8,RCX
JA 0x001c9ae3
MOVZX EAX,byte ptr [RDX + 0x1]
SHL EDI,0x9
LEA EAX,[RDI + RAX*0x2]
LEA RCX,[0x3d6a10]
MOVZX ECX,word ptr [RAX + RCX*0x1]
MOV qword ptr [RSI],RCX
MOV EAX,0x2
TEST RCX,RCX
JNZ 0x001c9ae3
MOV AL,byte ptr [RDX + 0x1]
INC AL
XOR ECX,ECX
CMP AL,0xa2
SETC CL
LEA EAX,[-0x2 + RCX*0x2]
JMP 0x001c9ae3
LAB_001c9b31:
CMP RDI,0x8f
JZ 0x001c9b75
CMP EDI,0x8e
JNZ 0x001c9bb7
LEA RDI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RDI,RCX
JA 0x001c9ae3
MOVZX ECX,byte ptr [RDX + 0x1]
LEA EDX,[RCX + 0x20]
MOV EAX,0x0
CMP DL,0xc1
JC 0x001c9ae3
ADD RCX,0xfec0
MOV qword ptr [RSI],RCX
MOV EAX,0x2
JMP 0x001c9ae3
LAB_001c9b75:
LEA RDI,[RDX + 0x3]
MOV EAX,0xffffff99
CMP RDI,RCX
JA 0x001c9ae3
MOVZX EAX,word ptr [RDX + 0x1]
ROL AX,0x8
MOVZX EAX,AX
LEA RCX,[0x3f6a10]
MOVZX ECX,word ptr [RCX + RAX*0x2]
MOV qword ptr [RSI],RCX
MOV EAX,0x3
TEST RCX,RCX
JNZ 0x001c9ae3
MOV AL,byte ptr [RDX + 0x1]
INC AL
CMP AL,0xa2
JNC 0x001c9bbe
LAB_001c9bb7:
XOR EAX,EAX
JMP 0x001c9ae3
LAB_001c9bbe:
MOV CL,byte ptr [RDX + 0x2]
MOV EAX,0x0
CMP CL,0xa1
JC 0x001c9ae3
XOR EAX,EAX
CMP CL,0xff
SETZ AL
LEA EAX,[RAX + RAX*0x2]
ADD EAX,-0x3
JMP 0x001c9ae3
|
int my_mb_wc_euc_jp(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
byte bVar1;
ushort uVar2;
int iVar3;
iVar3 = -0x65;
if (param_3 < param_4) {
bVar1 = *param_3;
if ((char)bVar1 < '\0') {
if ((byte)(bVar1 + 0x5f) < 0x5e) {
iVar3 = -0x66;
if (param_3 + 2 <= param_4) {
uVar2 = *(ushort *)
(jisx0208_eucjp_to_unicode + ((uint)bVar1 * 0x200 + (uint)param_3[1] * 2));
*param_2 = (ulong)uVar2;
iVar3 = 2;
if ((ulong)uVar2 == 0) {
iVar3 = (uint)((byte)(param_3[1] + 1) < 0xa2) * 2 + -2;
}
}
}
else {
if ((ulong)bVar1 == 0x8f) {
if (param_4 < param_3 + 3) {
return -0x67;
}
uVar2 = *(ushort *)
(&jisx0212_eucjp_to_unicode +
(ulong)(ushort)(*(ushort *)(param_3 + 1) << 8 | *(ushort *)(param_3 + 1) >> 8) *
2);
*param_2 = (ulong)uVar2;
if ((ulong)uVar2 != 0) {
return 3;
}
if (0xa1 < (byte)(param_3[1] + 1)) {
if (param_3[2] < 0xa1) {
return 0;
}
return (uint)(param_3[2] == 0xff) * 3 + -3;
}
}
else if (bVar1 == 0x8e) {
if (param_4 < param_3 + 2) {
return -0x66;
}
if ((byte)(param_3[1] + 0x20) < 0xc1) {
return 0;
}
*param_2 = (ulong)param_3[1] + 0xfec0;
return 2;
}
iVar3 = 0;
}
}
else {
*param_2 = (ulong)bVar1;
iVar3 = 1;
}
}
return iVar3;
}
| |
36,266 | get_charsets_dir | eloqsql/mysys/charset.c | char *get_charsets_dir(char *buf)
{
const char *sharedir= SHAREDIR;
char *res;
DBUG_ENTER("get_charsets_dir");
if (charsets_dir != NULL)
strmake(buf, charsets_dir, FN_REFLEN-1);
else
{
if (test_if_hard_path(sharedir) ||
is_prefix(sharedir, DEFAULT_CHARSET_HOME))
strxmov(buf, sharedir, "/", CHARSET_DIR, NullS);
else
strxmov(buf, DEFAULT_CHARSET_HOME, "/", sharedir, "/", CHARSET_DIR,
NullS);
}
res= convert_dirname(buf,buf,NullS);
DBUG_PRINT("info",("charsets dir: '%s'", buf));
DBUG_RETURN(res);
} | O0 | c | get_charsets_dir:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x78741(%rip), %rax # 0x155174
movq %rax, -0x10(%rbp)
leaq 0xb9ef12(%rip), %rax # 0xc7b950
cmpq $0x0, (%rax)
je 0xdca5e
movq -0x8(%rbp), %rdi
leaq 0xb9ef01(%rip), %rax # 0xc7b950
movq (%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x14f1e0
jmp 0xdcad8
movq -0x10(%rbp), %rdi
callq 0xf1760
cmpl $0x0, %eax
jne 0xdca81
movq -0x10(%rbp), %rdi
leaq 0x78716(%rip), %rsi # 0x15518d
callq 0x14ba30
cmpl $0x0, %eax
je 0xdcaa5
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq 0x79b78(%rip), %rdx # 0x156608
leaq 0x78709(%rip), %rcx # 0x1551a0
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x14f2c0
jmp 0xdcad6
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rcx
leaq 0x786d9(%rip), %rsi # 0x15518d
leaq 0x79b4d(%rip), %r8 # 0x156608
leaq 0x786de(%rip), %r9 # 0x1551a0
xorl %eax, %eax
movq %r8, %rdx
movq $0x0, (%rsp)
movb $0x0, %al
callq 0x14f2c0
jmp 0xdcad8
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xe0a80
movq %rax, -0x18(%rbp)
jmp 0xdcaef
jmp 0xdcaf1
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| get_charsets_dir:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
lea rax, aHomeMonoInstal; "/home/mono/install/share"
mov [rbp+var_10], rax
lea rax, charsets_dir
cmp qword ptr [rax], 0
jz short loc_DCA5E
mov rdi, [rbp+var_8]
lea rax, charsets_dir
mov rsi, [rax]
mov edx, 1FFh
call strmake
jmp short loc_DCAD8
loc_DCA5E:
mov rdi, [rbp+var_10]
call test_if_hard_path
cmp eax, 0
jnz short loc_DCA81
mov rdi, [rbp+var_10]
lea rsi, aHomeMonoInstal_0; "/home/mono/install"
call is_prefix
cmp eax, 0
jz short loc_DCAA5
loc_DCA81:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
lea rdx, word_156608
lea rcx, aCharsets; "charsets/"
xor eax, eax
mov r8d, eax
mov al, 0
call strxmov
jmp short loc_DCAD6
loc_DCAA5:
mov rdi, [rbp+var_8]
mov rcx, [rbp+var_10]
lea rsi, aHomeMonoInstal_0; "/home/mono/install"
lea r8, word_156608
lea r9, aCharsets; "charsets/"
xor eax, eax
mov rdx, r8
mov [rsp+30h+var_30], 0
mov al, 0
call strxmov
loc_DCAD6:
jmp short $+2
loc_DCAD8:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_8]
xor eax, eax
mov edx, eax
call convert_dirname
mov [rbp+var_18], rax
jmp short $+2
loc_DCAEF:
jmp short $+2
loc_DCAF1:
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
add rsp, 30h
pop rbp
retn
| long long get_charsets_dir(long long a1)
{
int v1; // r9d
if ( charsets_dir )
{
strmake(a1, charsets_dir, 511LL);
}
else if ( (unsigned int)test_if_hard_path("/home/mono/install/share")
|| (unsigned int)is_prefix("/home/mono/install/share", "/home/mono/install") )
{
strxmov(a1, (unsigned int)"/home/mono/install/share", (unsigned int)&word_156608, (unsigned int)"charsets/", 0, v1);
}
else
{
strxmov(
a1,
(unsigned int)"/home/mono/install",
(unsigned int)&word_156608,
(unsigned int)"/home/mono/install/share",
(unsigned int)&word_156608,
(unsigned int)"charsets/",
0LL);
}
return convert_dirname(a1, a1, 0LL);
}
| get_charsets_dir:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
LEA RAX,[0x255174]
MOV qword ptr [RBP + -0x10],RAX
LEA RAX,[0xd7b950]
CMP qword ptr [RAX],0x0
JZ 0x001dca5e
MOV RDI,qword ptr [RBP + -0x8]
LEA RAX,[0xd7b950]
MOV RSI,qword ptr [RAX]
MOV EDX,0x1ff
CALL 0x0024f1e0
JMP 0x001dcad8
LAB_001dca5e:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001f1760
CMP EAX,0x0
JNZ 0x001dca81
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x25518d]
CALL 0x0024ba30
CMP EAX,0x0
JZ 0x001dcaa5
LAB_001dca81:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[0x256608]
LEA RCX,[0x2551a0]
XOR EAX,EAX
MOV R8D,EAX
MOV AL,0x0
CALL 0x0024f2c0
JMP 0x001dcad6
LAB_001dcaa5:
MOV RDI,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x10]
LEA RSI,[0x25518d]
LEA R8,[0x256608]
LEA R9,[0x2551a0]
XOR EAX,EAX
MOV RDX,R8
MOV qword ptr [RSP],0x0
MOV AL,0x0
CALL 0x0024f2c0
LAB_001dcad6:
JMP 0x001dcad8
LAB_001dcad8:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001e0a80
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001dcaef
LAB_001dcaef:
JMP 0x001dcaf1
LAB_001dcaf1:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x30
POP RBP
RET
|
int8 get_charsets_dir(int8 param_1)
{
int iVar1;
int8 uVar2;
if (charsets_dir == 0) {
iVar1 = test_if_hard_path("/home/mono/install/share");
if ((iVar1 == 0) &&
(iVar1 = is_prefix("/home/mono/install/share","/home/mono/install"), iVar1 == 0)) {
strxmov(param_1,"/home/mono/install",&DAT_00256608,"/home/mono/install/share",&DAT_00256608,
"charsets/",0);
}
else {
strxmov(param_1,"/home/mono/install/share",&DAT_00256608,"charsets/",0);
}
}
else {
strmake(param_1,charsets_dir,0x1ff);
}
uVar2 = convert_dirname(param_1,param_1,0);
return uVar2;
}
| |
36,267 | unpack_dirname | eloqsql/mysys/mf_pack.c | size_t unpack_dirname(char * to, const char *from)
{
size_t length, h_length;
char buff[FN_REFLEN+1+4],*suffix,*tilde_expansion;
DBUG_ENTER("unpack_dirname");
length= normalize_dirname(buff, from);
if (buff[0] == FN_HOMELIB)
{
suffix=buff+1; tilde_expansion=expand_tilde(&suffix);
if (tilde_expansion)
{
length-= (size_t) (suffix-buff)-1;
if (length+(h_length= strlen(tilde_expansion)) <= FN_REFLEN)
{
if ((h_length > 0) && (tilde_expansion[h_length-1] == FN_LIBCHAR))
h_length--;
if (buff+h_length < suffix)
bmove(buff+h_length,suffix,length);
else
bmove_upp((uchar*) buff+h_length+length, (uchar*) suffix+length, length);
bmove(buff,tilde_expansion,h_length);
}
}
}
#ifdef USE_SYMDIR
if (my_use_symdir)
symdirget(buff);
#endif
DBUG_RETURN(system_filename(to,buff)); /* Fix for open */
} | O3 | c | unpack_dirname:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp # imm = 0x228
movq %rdi, -0x250(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq -0x240(%rbp), %r13
movq %r13, %rdi
callq 0x4fd0b
cmpb $0x7e, (%r13)
jne 0x4fecd
movq %rax, %r14
leaq -0x23f(%rbp), %r15
cmpb $0x2f, (%r15)
jne 0x4fded
leaq 0x319e8d(%rip), %rbx # 0x369c78
jmp 0x4fe46
movq %r15, %rdi
movl $0x2f, %esi
callq 0x25100
movq %rax, %r12
testq %rax, %rax
jne 0x4fe0d
movq %r15, %rdi
callq 0x5dcd0
movq %rax, %r12
movb (%r12), %al
movb %al, -0x241(%rbp)
movb $0x0, (%r12)
movq %r15, %rdi
callq 0x25210
movq %rax, %rbx
movb -0x241(%rbp), %al
movb %al, (%r12)
callq 0x25340
testq %rbx, %rbx
je 0x4fecd
addq $0x20, %rbx
movq %r12, %r15
movq (%rbx), %r12
testq %r12, %r12
je 0x4fecd
addq %r13, %r14
subq %r15, %r14
movq %r12, %rdi
callq 0x25120
movq %rax, %r13
addq %r14, %rax
incq %rax
cmpq $0x200, %rax # imm = 0x200
ja 0x4fecd
testq %r13, %r13
je 0x4fe82
xorl %eax, %eax
cmpb $0x2f, -0x1(%r12,%r13)
sete %al
subq %rax, %r13
jmp 0x4fe85
xorl %r13d, %r13d
incq %r14
leaq -0x240(,%r13), %rdi
addq %rbp, %rdi
cmpq %r15, %rdi
jae 0x4fea5
movq %r15, %rsi
movq %r14, %rdx
callq 0x25510
jmp 0x4feb6
addq %r14, %rdi
addq %r14, %r15
movq %r15, %rsi
movq %r14, %rdx
callq 0x52dc0
leaq -0x240(%rbp), %rdi
movl $0x205, %ecx # imm = 0x205
movq %r12, %rsi
movq %r13, %rdx
callq 0x25230
leaq -0x240(%rbp), %rsi
movl $0x1ff, %edx # imm = 0x1FF
movq -0x250(%rbp), %rbx
movq %rbx, %rdi
callq 0x4a33c
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x4ff0c
subq %rbx, %rax
addq $0x228, %rsp # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x25320
| unpack_dirname:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 228h
mov [rbp+var_250], rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea r13, [rbp+var_240]
mov rdi, r13
call normalize_dirname
cmp byte ptr [r13+0], 7Eh ; '~'
jnz loc_4FECD
mov r14, rax
lea r15, [rbp+var_23F]
cmp byte ptr [r15], 2Fh ; '/'
jnz short loc_4FDED
lea rbx, home_dir
jmp short loc_4FE46
loc_4FDED:
mov rdi, r15
mov esi, 2Fh ; '/'
call _strchr
mov r12, rax
test rax, rax
jnz short loc_4FE0D
mov rdi, r15
call strend
mov r12, rax
loc_4FE0D:
mov al, [r12]
mov [rbp+var_241], al
mov byte ptr [r12], 0
mov rdi, r15
call _getpwnam
mov rbx, rax
mov al, [rbp+var_241]
mov [r12], al
call _endpwent
test rbx, rbx
jz loc_4FECD
add rbx, 20h ; ' '
mov r15, r12
loc_4FE46:
mov r12, [rbx]
test r12, r12
jz short loc_4FECD
add r14, r13
sub r14, r15
mov rdi, r12
call _strlen
mov r13, rax
add rax, r14
inc rax
cmp rax, 200h
ja short loc_4FECD
test r13, r13
jz short loc_4FE82
xor eax, eax
cmp byte ptr [r12+r13-1], 2Fh ; '/'
setz al
sub r13, rax
jmp short loc_4FE85
loc_4FE82:
xor r13d, r13d
loc_4FE85:
inc r14
lea rdi, ds:0FFFFFFFFFFFFFDC0h[r13]
add rdi, rbp
cmp rdi, r15
jnb short loc_4FEA5
mov rsi, r15
mov rdx, r14
call _memmove
jmp short loc_4FEB6
loc_4FEA5:
add rdi, r14
add r15, r14
mov rsi, r15
mov rdx, r14
call bmove_upp
loc_4FEB6:
lea rdi, [rbp+var_240]
mov ecx, 205h
mov rsi, r12
mov rdx, r13
call ___memmove_chk
loc_4FECD:
lea rsi, [rbp+var_240]
mov edx, 1FFh
mov rbx, [rbp+var_250]
mov rdi, rbx
call strmake
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz short loc_4FF0C
sub rax, rbx
add rsp, 228h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4FF0C:
call ___stack_chk_fail
| long long unpack_dirname(long long a1, long long a2)
{
long long v2; // rax
long long v3; // r14
char *v4; // r15
_QWORD *v5; // rbx
char *v6; // r12
long long v7; // rbx
long long v8; // r12
_BYTE *v9; // r14
long long v10; // r13
long long v11; // r13
_BYTE *v12; // r14
char *v13; // rdi
char v16; // [rsp+Fh] [rbp-241h]
char v17; // [rsp+10h] [rbp-240h] BYREF
_BYTE v18[527]; // [rsp+11h] [rbp-23Fh] BYREF
unsigned long long v19; // [rsp+220h] [rbp-30h]
long long savedregs; // [rsp+250h] [rbp+0h] BYREF
v19 = __readfsqword(0x28u);
v2 = normalize_dirname((long long)&v17, a2);
if ( v17 != 126 )
return strmake(a1, (long long)&v17, 511LL) - a1;
v3 = v2;
v4 = v18;
if ( v18[0] == 47 )
{
v5 = &home_dir;
LABEL_8:
v8 = *v5;
if ( *v5 )
{
v9 = (_BYTE *)(&v18[v3 - 1] - v4);
v10 = strlen(*v5);
if ( (unsigned long long)&v9[v10 + 1] <= 0x200 )
{
if ( v10 )
v11 = v10 - (*(_BYTE *)(v8 + v10 - 1) == 47);
else
v11 = 0LL;
v12 = v9 + 1;
v13 = (char *)&savedregs + v11 - 576;
if ( v13 >= v4 )
bmove_upp(&v13[(_QWORD)v12], &v4[(_QWORD)v12], v12);
else
memmove(v13, v4, v12);
__memmove_chk(&v17, v8, v11, 517LL);
}
}
return strmake(a1, (long long)&v17, 511LL) - a1;
}
v6 = (char *)strchr(v18, 47LL);
if ( !v6 )
v6 = (char *)strend(v18);
v16 = *v6;
*v6 = 0;
v7 = getpwnam(v18);
*v6 = v16;
endpwent();
if ( v7 )
{
v5 = (_QWORD *)(v7 + 32);
v4 = v6;
goto LABEL_8;
}
return strmake(a1, (long long)&v17, 511LL) - a1;
}
| unpack_dirname:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x228
MOV qword ptr [RBP + -0x250],RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA R13,[RBP + -0x240]
MOV RDI,R13
CALL 0x0014fd0b
CMP byte ptr [R13],0x7e
JNZ 0x0014fecd
MOV R14,RAX
LEA R15,[RBP + -0x23f]
CMP byte ptr [R15],0x2f
JNZ 0x0014fded
LEA RBX,[0x469c78]
JMP 0x0014fe46
LAB_0014fded:
MOV RDI,R15
MOV ESI,0x2f
CALL 0x00125100
MOV R12,RAX
TEST RAX,RAX
JNZ 0x0014fe0d
MOV RDI,R15
CALL 0x0015dcd0
MOV R12,RAX
LAB_0014fe0d:
MOV AL,byte ptr [R12]
MOV byte ptr [RBP + -0x241],AL
MOV byte ptr [R12],0x0
MOV RDI,R15
CALL 0x00125210
MOV RBX,RAX
MOV AL,byte ptr [RBP + -0x241]
MOV byte ptr [R12],AL
CALL 0x00125340
TEST RBX,RBX
JZ 0x0014fecd
ADD RBX,0x20
MOV R15,R12
LAB_0014fe46:
MOV R12,qword ptr [RBX]
TEST R12,R12
JZ 0x0014fecd
ADD R14,R13
SUB R14,R15
MOV RDI,R12
CALL 0x00125120
MOV R13,RAX
ADD RAX,R14
INC RAX
CMP RAX,0x200
JA 0x0014fecd
TEST R13,R13
JZ 0x0014fe82
XOR EAX,EAX
CMP byte ptr [R12 + R13*0x1 + -0x1],0x2f
SETZ AL
SUB R13,RAX
JMP 0x0014fe85
LAB_0014fe82:
XOR R13D,R13D
LAB_0014fe85:
INC R14
LEA RDI,[-0x240 + R13*0x1]
ADD RDI,RBP
CMP RDI,R15
JNC 0x0014fea5
MOV RSI,R15
MOV RDX,R14
CALL 0x00125510
JMP 0x0014feb6
LAB_0014fea5:
ADD RDI,R14
ADD R15,R14
MOV RSI,R15
MOV RDX,R14
CALL 0x00152dc0
LAB_0014feb6:
LEA RDI,[RBP + -0x240]
MOV ECX,0x205
MOV RSI,R12
MOV RDX,R13
CALL 0x00125230
LAB_0014fecd:
LEA RSI,[RBP + -0x240]
MOV EDX,0x1ff
MOV RBX,qword ptr [RBP + -0x250]
MOV RDI,RBX
CALL 0x0014a33c
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x0014ff0c
SUB RAX,RBX
ADD RSP,0x228
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014ff0c:
CALL 0x00125320
|
long unpack_dirname(long param_1)
{
char *pcVar1;
long lVar2;
char *__src;
passwd *ppVar3;
size_t sVar4;
char **ppcVar5;
char *__dest;
long lVar6;
char *__n;
long in_FS_OFFSET;
char acStack_48f [559];
code *pcStack_260;
long local_258;
char local_249;
char local_248 [528];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
pcStack_260 = (code *)0x14fdc9;
local_258 = param_1;
lVar2 = normalize_dirname(local_248);
if (local_248[0] == '~') {
pcVar1 = local_248 + 1;
if (local_248[1] == '/') {
ppcVar5 = (char **)&home_dir;
__src = pcVar1;
}
else {
pcStack_260 = (code *)0x14fdfa;
__src = strchr(pcVar1,0x2f);
if (__src == (char *)0x0) {
pcStack_260 = (code *)0x14fe0a;
__src = (char *)strend(pcVar1);
}
local_249 = *__src;
*__src = '\0';
pcStack_260 = (code *)0x14fe24;
ppVar3 = getpwnam(pcVar1);
*__src = local_249;
pcStack_260 = (code *)0x14fe36;
endpwent();
if (ppVar3 == (passwd *)0x0) goto LAB_0014fecd;
ppcVar5 = &ppVar3->pw_dir;
}
pcVar1 = *ppcVar5;
if (pcVar1 != (char *)0x0) {
pcStack_260 = (code *)0x14fe5c;
sVar4 = strlen(pcVar1);
if (local_248 + sVar4 + (lVar2 - (long)__src) + 1 < (char *)0x201) {
if (sVar4 == 0) {
lVar6 = 0;
}
else {
lVar6 = sVar4 - (pcVar1[sVar4 - 1] == '/');
}
__n = local_248 + (lVar2 - (long)__src) + 1;
__dest = local_248 + lVar6;
if (__dest < __src) {
pcStack_260 = (code *)0x14fea3;
memmove(__dest,__src,(size_t)__n);
}
else {
pcStack_260 = (code *)0x14feb6;
bmove_upp(__dest + (long)__n,__src + (long)__n,__n);
}
pcStack_260 = (code *)0x14fecd;
__memmove_chk(local_248,pcVar1,lVar6,0x205);
}
}
}
LAB_0014fecd:
lVar2 = local_258;
pcStack_260 = (code *)0x14fee8;
lVar6 = strmake(local_258,local_248,0x1ff);
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return lVar6 - lVar2;
}
/* WARNING: Subroutine does not return */
pcStack_260 = system_filename;
__stack_chk_fail();
}
| |
36,268 | GetHostName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*) | ng-log[P]ng-log/src/logging.cc | static void GetHostName(string* hostname) {
#if defined(HAVE_SYS_UTSNAME_H)
struct utsname buf;
if (uname(&buf) < 0) {
// ensure null termination on failure
*buf.nodename = '\0';
}
*hostname = buf.nodename;
#elif defined(NGLOG_OS_WINDOWS)
char buf[MAX_COMPUTERNAME_LENGTH + 1];
DWORD len = MAX_COMPUTERNAME_LENGTH + 1;
if (GetComputerNameA(buf, &len)) {
*hostname = buf;
} else {
hostname->clear();
}
#else
# warning There is no way to retrieve the host name.
*hostname = "(unknown)";
#endif
} | O1 | cpp | GetHostName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*):
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp # imm = 0x190
movq %rdi, %rbx
leaq 0xa(%rsp), %rdi
callq 0x7090
testl %eax, %eax
jns 0xb5aa
movb $0x0, 0x4b(%rsp)
leaq 0x4b(%rsp), %r14
movq 0x8(%rbx), %r15
movq %r14, %rdi
callq 0x71e0
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x7830
addq $0x190, %rsp # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZL11GetHostNamePNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
sub rsp, 190h
mov rbx, rdi
lea rdi, [rsp+1A8h+var_19E]
call _uname
test eax, eax
jns short loc_B5AA
mov [rsp+1A8h+var_15D], 0
loc_B5AA:
lea r14, [rsp+1A8h+var_15D]
mov r15, [rbx+8]
mov rdi, r14
call _strlen
mov rdi, rbx
xor esi, esi
mov rdx, r15
mov rcx, r14
mov r8, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
add rsp, 190h
pop rbx
pop r14
pop r15
retn
| long long GetHostName(long long a1)
{
long long v1; // r15
long long v2; // rax
_BYTE v4[65]; // [rsp+Ah] [rbp-19Eh] BYREF
_BYTE v5[349]; // [rsp+4Bh] [rbp-15Dh] BYREF
if ( (int)uname(v4) < 0 )
v5[0] = 0;
v1 = *(_QWORD *)(a1 + 8);
v2 = strlen(v5);
return std::string::_M_replace(a1, 0LL, v1, v5, v2);
}
| GetHostName:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x190
MOV RBX,RDI
LEA RDI,[RSP + 0xa]
CALL 0x00107090
TEST EAX,EAX
JNS 0x0010b5aa
MOV byte ptr [RSP + 0x4b],0x0
LAB_0010b5aa:
LEA R14,[RSP + 0x4b]
MOV R15,qword ptr [RBX + 0x8]
MOV RDI,R14
CALL 0x001071e0
MOV RDI,RBX
XOR ESI,ESI
MOV RDX,R15
MOV RCX,R14
MOV R8,RAX
CALL 0x00107830
ADD RSP,0x190
POP RBX
POP R14
POP R15
RET
|
/* GetHostName(std::__cxx11::string*) */
void GetHostName(string *param_1)
{
char *pcVar1;
int iVar2;
utsname local_19e;
iVar2 = uname(&local_19e);
if (iVar2 < 0) {
local_19e.nodename[0] = '\0';
}
pcVar1 = *(char **)(param_1 + 8);
strlen(local_19e.nodename);
std::__cxx11::string::_M_replace((ulong)param_1,0,pcVar1,(ulong)local_19e.nodename);
return;
}
| |
36,269 | GetHostName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*) | ng-log[P]ng-log/src/logging.cc | static void GetHostName(string* hostname) {
#if defined(HAVE_SYS_UTSNAME_H)
struct utsname buf;
if (uname(&buf) < 0) {
// ensure null termination on failure
*buf.nodename = '\0';
}
*hostname = buf.nodename;
#elif defined(NGLOG_OS_WINDOWS)
char buf[MAX_COMPUTERNAME_LENGTH + 1];
DWORD len = MAX_COMPUTERNAME_LENGTH + 1;
if (GetComputerNameA(buf, &len)) {
*hostname = buf;
} else {
hostname->clear();
}
#else
# warning There is no way to retrieve the host name.
*hostname = "(unknown)";
#endif
} | O3 | cpp | GetHostName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*):
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp # imm = 0x190
movq %rdi, %rbx
leaq 0xa(%rsp), %rdi
callq 0x7090
testl %eax, %eax
jns 0xb2ce
movb $0x0, 0x4b(%rsp)
leaq 0x4b(%rsp), %r14
movq 0x8(%rbx), %r15
movq %r14, %rdi
callq 0x71e0
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x7830
addq $0x190, %rsp # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZL11GetHostNamePNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
sub rsp, 190h
mov rbx, rdi
lea rdi, [rsp+1A8h+var_19E]
call _uname
test eax, eax
jns short loc_B2CE
mov [rsp+1A8h+var_15D], 0
loc_B2CE:
lea r14, [rsp+1A8h+var_15D]
mov r15, [rbx+8]
mov rdi, r14
call _strlen
mov rdi, rbx
xor esi, esi
mov rdx, r15
mov rcx, r14
mov r8, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
add rsp, 190h
pop rbx
pop r14
pop r15
retn
| long long GetHostName(long long a1)
{
long long v1; // r15
long long v2; // rax
_BYTE v4[65]; // [rsp+Ah] [rbp-19Eh] BYREF
_BYTE v5[349]; // [rsp+4Bh] [rbp-15Dh] BYREF
if ( (int)uname(v4) < 0 )
v5[0] = 0;
v1 = *(_QWORD *)(a1 + 8);
v2 = strlen(v5);
return std::string::_M_replace(a1, 0LL, v1, v5, v2);
}
| GetHostName:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x190
MOV RBX,RDI
LEA RDI,[RSP + 0xa]
CALL 0x00107090
TEST EAX,EAX
JNS 0x0010b2ce
MOV byte ptr [RSP + 0x4b],0x0
LAB_0010b2ce:
LEA R14,[RSP + 0x4b]
MOV R15,qword ptr [RBX + 0x8]
MOV RDI,R14
CALL 0x001071e0
MOV RDI,RBX
XOR ESI,ESI
MOV RDX,R15
MOV RCX,R14
MOV R8,RAX
CALL 0x00107830
ADD RSP,0x190
POP RBX
POP R14
POP R15
RET
|
/* GetHostName(std::__cxx11::string*) */
void GetHostName(string *param_1)
{
char *pcVar1;
int iVar2;
utsname local_19e;
iVar2 = uname(&local_19e);
if (iVar2 < 0) {
local_19e.nodename[0] = '\0';
}
pcVar1 = *(char **)(param_1 + 8);
strlen(local_19e.nodename);
std::__cxx11::string::_M_replace((ulong)param_1,0,pcVar1,(ulong)local_19e.nodename);
return;
}
| |
36,270 | js_finrec_unregister | bluesky950520[P]quickjs/quickjs.c | static JSValue js_finrec_unregister(JSContext *ctx, JSValue this_val, int argc, JSValue *argv)
{
JSFinalizationRegistryData *frd = JS_GetOpaque2(ctx, this_val, JS_CLASS_FINALIZATION_REGISTRY);
if (!frd)
return JS_EXCEPTION;
JSValue token = argv[0];
if (!is_valid_weakref_target(token))
return JS_ThrowTypeError(ctx, "invalid unregister token");
struct list_head *el, *el1;
BOOL removed = FALSE;
list_for_each_safe(el, el1, &frd->entries) {
JSFinRecEntry *fre = list_entry(el, JSFinRecEntry, link);
if (js_same_value(ctx, fre->token, token)) {
list_del(&fre->link);
delete_finrec_weakref(ctx->rt, fre);
JS_FreeValue(ctx, fre->held_val);
JS_FreeValue(ctx, fre->token);
js_free(ctx, fre);
removed = TRUE;
}
}
return js_bool(removed);
} | O1 | c | js_finrec_unregister:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movq %rdi, %r14
movl $0x3b, %ecx
callq 0x269a1
movl $0x6, %r12d
testq %rax, %rax
je 0x83a90
movq %rax, %r15
movq (%rbx), %rax
movq 0x8(%rbx), %r13
movq %rax, 0x8(%rsp)
movq %rax, 0x10(%rsp)
cmpl $-0x1, %r13d
je 0x83a97
cmpl $-0x8, %r13d
jne 0x83a78
movq 0x10(%rsp), %rax
movq 0x4(%rax), %rax
shrq $0x3e, %rax
cmpl $0x2, %eax
jne 0x83a97
leaq 0x1d665(%rip), %rsi # 0xa10e4
xorl %ebx, %ebx
movq %r14, %rdi
xorl %eax, %eax
callq 0x21953
jmp 0x83b38
xorl %ebx, %ebx
jmp 0x83b38
movq 0x8(%r15), %rbp
movl $0x1, %r12d
xorl %ebx, %ebx
cmpq %r15, %rbp
je 0x83b38
movq 0x8(%rbp), %r12
movq 0x40(%rbp), %rsi
movq 0x48(%rbp), %rdx
movq %r14, %rdi
movq 0x8(%rsp), %rcx
movq %r13, %r8
callq 0x2584d
testl %eax, %eax
je 0x83b20
movq (%rbp), %rax
movq 0x8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
movq 0x18(%r14), %rdi
movq %rbp, %rsi
callq 0x8372c
movq 0x30(%rbp), %rsi
movq 0x38(%rbp), %rdx
movq 0x18(%r14), %rdi
callq 0x1ccb2
movq 0x40(%rbp), %rsi
movq 0x48(%rbp), %rdx
movq 0x18(%r14), %rdi
callq 0x1ccb2
movq %r14, %rdi
movq %rbp, %rsi
callq 0x1bf85
movl $0x1, %ebx
movq %r12, %rbp
cmpq %r15, %r12
jne 0x83aac
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movq %rax, %rbx
movl $0x1, %r12d
movq %rbx, %rax
movq %r12, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_finrec_unregister:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, r8
mov r14, rdi
mov ecx, 3Bh ; ';'
call JS_GetOpaque2
mov r12d, 6
test rax, rax
jz short loc_83A90
mov r15, rax
mov rax, [rbx]
mov r13, [rbx+8]
mov [rsp+48h+var_40], rax
mov [rsp+48h+var_38], rax
cmp r13d, 0FFFFFFFFh
jz short loc_83A97
cmp r13d, 0FFFFFFF8h
jnz short loc_83A78
mov rax, [rsp+48h+var_38]
mov rax, [rax+4]
shr rax, 3Eh
cmp eax, 2
jnz short loc_83A97
loc_83A78:
lea rsi, aInvalidUnregis; "invalid unregister token"
xor ebx, ebx
mov rdi, r14
xor eax, eax
call JS_ThrowTypeError
jmp loc_83B38
loc_83A90:
xor ebx, ebx
jmp loc_83B38
loc_83A97:
mov rbp, [r15+8]
mov r12d, 1
xor ebx, ebx
cmp rbp, r15
jz loc_83B38
loc_83AAC:
mov r12, [rbp+8]
mov rsi, [rbp+40h]
mov rdx, [rbp+48h]
mov rdi, r14
mov rcx, [rsp+48h+var_40]
mov r8, r13
call js_same_value
test eax, eax
jz short loc_83B20
mov rax, [rbp+0]
mov rcx, [rbp+8]
mov [rax+8], rcx
mov [rcx], rax
xorps xmm0, xmm0
movups xmmword ptr [rbp+0], xmm0
mov rdi, [r14+18h]
mov rsi, rbp
call delete_finrec_weakref
mov rsi, [rbp+30h]
mov rdx, [rbp+38h]
mov rdi, [r14+18h]
call JS_FreeValueRT
mov rsi, [rbp+40h]
mov rdx, [rbp+48h]
mov rdi, [r14+18h]
call JS_FreeValueRT
mov rdi, r14
mov rsi, rbp
call js_free
mov ebx, 1
loc_83B20:
mov rbp, r12
cmp r12, r15
jnz short loc_83AAC
xor eax, eax
test ebx, ebx
setnz al
mov rbx, rax
mov r12d, 1
loc_83B38:
mov rax, rbx
mov rdx, r12
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| _BOOL8 js_finrec_unregister(
long long a1,
long long a2,
int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11,
long long a12,
_QWORD *a13)
{
long long Opaque2; // rax
long long v15; // rdx
long long v16; // rcx
long long v17; // r8
long long v18; // r9
__m128 v19; // xmm4
__m128 v20; // xmm5
long long v21; // r15
long long v22; // r13
long long v23; // rbx
long long v24; // rbp
long long v25; // r12
long long v26; // rax
_QWORD *v27; // rcx
char v29; // [rsp+0h] [rbp-48h]
_DWORD *v30; // [rsp+8h] [rbp-40h]
Opaque2 = JS_GetOpaque2(a1, a2, a3, 0x3Bu);
if ( !Opaque2 )
return 0LL;
v21 = Opaque2;
v22 = a13[1];
v30 = (_DWORD *)*a13;
if ( (_DWORD)v22 == -1 || (_DWORD)v22 == -8 && *(_QWORD *)(*a13 + 4LL) >> 62 != 2 )
{
v24 = *(_QWORD *)(Opaque2 + 8);
v23 = 0LL;
if ( v24 != Opaque2 )
{
do
{
v25 = *(_QWORD *)(v24 + 8);
if ( (unsigned int)js_same_value(a1, *(_DWORD **)(v24 + 64), *(_QWORD *)(v24 + 72), v30, v22) )
{
v26 = *(_QWORD *)v24;
v27 = *(_QWORD **)(v24 + 8);
*(_QWORD *)(v26 + 8) = v27;
*v27 = v26;
*(_OWORD *)v24 = 0LL;
delete_finrec_weakref(*(_QWORD *)(a1 + 24), v24);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), *(_DWORD **)(v24 + 48), *(_QWORD *)(v24 + 56));
JS_FreeValueRT(*(_QWORD *)(a1 + 24), *(_DWORD **)(v24 + 64), *(_QWORD *)(v24 + 72));
js_free(a1, v24);
LODWORD(v23) = 1;
}
v24 = v25;
}
while ( v25 != v21 );
return (_DWORD)v23 != 0;
}
}
else
{
v23 = 0LL;
JS_ThrowTypeError(
a1,
(long long)"invalid unregister token",
v15,
v16,
v17,
v18,
a4,
a5,
a6,
a7,
v19,
v20,
a10,
a11,
v29);
}
return v23;
}
| js_finrec_unregister:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,R8
MOV R14,RDI
MOV ECX,0x3b
CALL 0x001269a1
MOV R12D,0x6
TEST RAX,RAX
JZ 0x00183a90
MOV R15,RAX
MOV RAX,qword ptr [RBX]
MOV R13,qword ptr [RBX + 0x8]
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RAX
CMP R13D,-0x1
JZ 0x00183a97
CMP R13D,-0x8
JNZ 0x00183a78
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x4]
SHR RAX,0x3e
CMP EAX,0x2
JNZ 0x00183a97
LAB_00183a78:
LEA RSI,[0x1a10e4]
XOR EBX,EBX
MOV RDI,R14
XOR EAX,EAX
CALL 0x00121953
JMP 0x00183b38
LAB_00183a90:
XOR EBX,EBX
JMP 0x00183b38
LAB_00183a97:
MOV RBP,qword ptr [R15 + 0x8]
MOV R12D,0x1
XOR EBX,EBX
CMP RBP,R15
JZ 0x00183b38
LAB_00183aac:
MOV R12,qword ptr [RBP + 0x8]
MOV RSI,qword ptr [RBP + 0x40]
MOV RDX,qword ptr [RBP + 0x48]
MOV RDI,R14
MOV RCX,qword ptr [RSP + 0x8]
MOV R8,R13
CALL 0x0012584d
TEST EAX,EAX
JZ 0x00183b20
MOV RAX,qword ptr [RBP]
MOV RCX,qword ptr [RBP + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RCX],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBP],XMM0
MOV RDI,qword ptr [R14 + 0x18]
MOV RSI,RBP
CALL 0x0018372c
MOV RSI,qword ptr [RBP + 0x30]
MOV RDX,qword ptr [RBP + 0x38]
MOV RDI,qword ptr [R14 + 0x18]
CALL 0x0011ccb2
MOV RSI,qword ptr [RBP + 0x40]
MOV RDX,qword ptr [RBP + 0x48]
MOV RDI,qword ptr [R14 + 0x18]
CALL 0x0011ccb2
MOV RDI,R14
MOV RSI,RBP
CALL 0x0011bf85
MOV EBX,0x1
LAB_00183b20:
MOV RBP,R12
CMP R12,R15
JNZ 0x00183aac
XOR EAX,EAX
TEST EBX,EBX
SETNZ AL
MOV RBX,RAX
MOV R12D,0x1
LAB_00183b38:
MOV RAX,RBX
MOV RDX,R12
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 js_finrec_unregister(long param_1)
{
long lVar1;
long lVar2;
long *plVar3;
long lVar4;
long *plVar5;
long *plVar6;
int iVar7;
long *plVar8;
int1 uVar9;
long *in_R8;
plVar8 = (long *)JS_GetOpaque2();
if (plVar8 == (long *)0x0) {
uVar9 = 0;
}
else {
lVar1 = *in_R8;
lVar2 = in_R8[1];
iVar7 = (int)lVar2;
if ((iVar7 == -1) || ((iVar7 == -8 && ((uint)((ulong)*(int8 *)(lVar1 + 4) >> 0x3e) != 2)))
) {
uVar9 = 0;
plVar3 = (long *)plVar8[1];
while (plVar6 = plVar3, plVar6 != plVar8) {
plVar3 = (long *)plVar6[1];
iVar7 = js_same_value(param_1,plVar6[8],plVar6[9],lVar1,lVar2);
if (iVar7 != 0) {
lVar4 = *plVar6;
plVar5 = (long *)plVar6[1];
*(long **)(lVar4 + 8) = plVar5;
*plVar5 = lVar4;
*plVar6 = 0;
plVar6[1] = 0;
delete_finrec_weakref(*(int8 *)(param_1 + 0x18),plVar6);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),plVar6[6],plVar6[7]);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),plVar6[8],plVar6[9]);
js_free(param_1,plVar6);
uVar9 = 1;
}
}
}
else {
uVar9 = 0;
JS_ThrowTypeError(param_1,"invalid unregister token");
}
}
return uVar9;
}
| |
36,271 | testing::internal::SuiteApiResolver<alaya::LinearPoolTest>::GetSetUpCaseOrSuite(char const*, int) | AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/internal/gtest-internal.h | static SetUpTearDownSuiteFuncType GetSetUpCaseOrSuite(const char* filename,
int line_num) {
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_
SetUpTearDownSuiteFuncType test_case_fp =
GetNotDefaultOrNull(&T::SetUpTestCase, &Test::SetUpTestCase);
SetUpTearDownSuiteFuncType test_suite_fp =
GetNotDefaultOrNull(&T::SetUpTestSuite, &Test::SetUpTestSuite);
GTEST_CHECK_(!test_case_fp || !test_suite_fp)
<< "Test can not provide both SetUpTestSuite and SetUpTestCase, please "
"make sure there is only one present at "
<< filename << ":" << line_num;
return test_case_fp != nullptr ? test_case_fp : test_suite_fp;
#else
(void)(filename);
(void)(line_num);
return &T::SetUpTestSuite;
#endif
} | O0 | c | testing::internal::SuiteApiResolver<alaya::LinearPoolTest>::GetSetUpCaseOrSuite(char const*, int):
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movl %esi, 0x6c(%rsp)
leaq 0x422c(%rip), %rsi # 0x1e9f0
movq %rsi, %rdi
callq 0x1e9c0
movq %rax, 0x60(%rsp)
leaq 0x4228(%rip), %rsi # 0x1ea00
movq %rsi, %rdi
callq 0x1e9c0
movq %rax, 0x58(%rsp)
movb $0x1, %al
cmpq $0x0, 0x60(%rsp)
movb %al, 0x43(%rsp)
je 0x1a802
cmpq $0x0, 0x58(%rsp)
setne %al
xorb $-0x1, %al
movb %al, 0x43(%rsp)
movb 0x43(%rsp), %al
movzbl %al, %edi
andl $0x1, %edi
callq 0xb38e0
testb $0x1, %al
jne 0x1a817
jmp 0x1a81c
jmp 0x1a8e1
leaq 0xf19fc(%rip), %rdx # 0x10c21f
leaq 0x54(%rsp), %rdi
movq %rdi, 0x30(%rsp)
movl $0x3, %esi
movl $0x201, %ecx # imm = 0x201
callq 0xb9070
movq 0x30(%rsp), %rdi
callq 0x1ea10
movq %rax, 0x38(%rsp)
jmp 0x1a84d
movq 0x38(%rsp), %rdi
leaq 0xf1a42(%rip), %rsi # 0x10c29b
callq 0x146a0
movq %rax, 0x28(%rsp)
jmp 0x1a865
movq 0x28(%rsp), %rdi
leaq 0xf1a5d(%rip), %rsi # 0x10c2ce
callq 0x146a0
movq %rax, 0x20(%rsp)
jmp 0x1a87d
movq 0x20(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x146a0
movq %rax, 0x18(%rsp)
jmp 0x1a893
movq 0x18(%rsp), %rdi
leaq 0xf96f5(%rip), %rsi # 0x113f94
callq 0x146a0
movq %rax, 0x10(%rsp)
jmp 0x1a8ab
movq 0x10(%rsp), %rdi
movl 0x6c(%rsp), %esi
callq 0x14c50
jmp 0x1a8bb
leaq 0x54(%rsp), %rdi
callq 0xb91e0
jmp 0x1a8e1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
leaq 0x54(%rsp), %rdi
callq 0xb91e0
jmp 0x1a909
cmpq $0x0, 0x60(%rsp)
je 0x1a8f5
movq 0x60(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x1a8ff
movq 0x58(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
addq $0x78, %rsp
retq
movq 0x48(%rsp), %rdi
callq 0x14c80
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN7testing8internal16SuiteApiResolverIN5alaya14LinearPoolTestEE19GetSetUpCaseOrSuiteEPKci:
sub rsp, 78h
mov [rsp+78h+var_8], rdi
mov [rsp+78h+var_C], esi
lea rsi, _ZN7testing4Test13SetUpTestCaseEv; void (*)(void)
mov rdi, rsi; this
call _ZN7testing8internal19GetNotDefaultOrNullEPFvvES2_; testing::internal::GetNotDefaultOrNull(void (*)(void),void (*)(void))
mov [rsp+78h+var_18], rax
lea rsi, _ZN7testing4Test14SetUpTestSuiteEv; bool
mov rdi, rsi; this
call _ZN7testing8internal19GetNotDefaultOrNullEPFvvES2_; testing::internal::GetNotDefaultOrNull(void (*)(void),void (*)(void))
mov [rsp+78h+var_20], rax
mov al, 1
cmp [rsp+78h+var_18], 0
mov [rsp+78h+var_35], al
jz short loc_1A802
cmp [rsp+78h+var_20], 0
setnz al
xor al, 0FFh
mov [rsp+78h+var_35], al
loc_1A802:
mov al, [rsp+78h+var_35]
movzx edi, al
and edi, 1; this
call _ZN7testing8internal6IsTrueEb; testing::internal::IsTrue(bool)
test al, 1
jnz short loc_1A817
jmp short loc_1A81C
loc_1A817:
jmp loc_1A8E1
loc_1A81C:
lea rdx, aWorkspaceLlm4b_4; "/workspace/llm4binary/github2025/AlayaL"...
lea rdi, [rsp+78h+var_24]; int
mov [rsp+78h+var_48], rdi; int
mov esi, 3
mov ecx, 201h
call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int)
mov rdi, [rsp+78h+var_48]; this
call _ZN7testing8internal8GTestLog9GetStreamEv; testing::internal::GTestLog::GetStream(void)
mov [rsp+78h+var_40], rax
jmp short $+2
loc_1A84D:
mov rdi, [rsp+78h+var_40]
lea rsi, aConditionTestC; "Condition !test_case_fp || !test_suite_"...
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+78h+var_50], rax
jmp short $+2
loc_1A865:
mov rdi, [rsp+78h+var_50]
lea rsi, aTestCanNotProv; "Test can not provide both SetUpTestSuit"...
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+78h+var_58], rax
jmp short $+2
loc_1A87D:
mov rdi, [rsp+78h+var_58]
mov rsi, [rsp+78h+var_8]
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+78h+var_60], rax
jmp short $+2
loc_1A893:
mov rdi, [rsp+78h+var_60]
lea rsi, aTrace+6; ":"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+78h+var_68], rax
jmp short $+2
loc_1A8AB:
mov rdi, [rsp+78h+var_68]
mov esi, [rsp+78h+var_C]
call __ZNSolsEi; std::ostream::operator<<(int)
jmp short $+2
loc_1A8BB:
lea rdi, [rsp+78h+var_24]; this
call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog()
jmp short loc_1A8E1
mov rcx, rax
mov eax, edx
mov [rsp+arg_40], rcx
mov [rsp+arg_3C], eax
lea rdi, [rsp+arg_4C]; this
call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog()
jmp short loc_1A909
loc_1A8E1:
cmp [rsp+78h+var_18], 0
jz short loc_1A8F5
mov rax, [rsp+78h+var_18]
mov [rsp+78h+var_70], rax
jmp short loc_1A8FF
loc_1A8F5:
mov rax, [rsp+78h+var_20]
mov [rsp+78h+var_70], rax
loc_1A8FF:
mov rax, [rsp+78h+var_70]
add rsp, 78h
retn
loc_1A909:
mov rdi, [rsp+arg_40]
call __Unwind_Resume
| long long testing::internal::SuiteApiResolver<alaya::LinearPoolTest>::GetSetUpCaseOrSuite(
long long a1,
unsigned int a2,
void (*a3)(void))
{
void (*v3)(void); // rdx
int v5; // [rsp+0h] [rbp-78h]
int v6; // [rsp+8h] [rbp-70h]
int v8; // [rsp+10h] [rbp-68h]
long long v9; // [rsp+10h] [rbp-68h]
int v10; // [rsp+18h] [rbp-60h]
long long v11; // [rsp+18h] [rbp-60h]
int v12; // [rsp+20h] [rbp-58h]
long long v13; // [rsp+20h] [rbp-58h]
int v14; // [rsp+28h] [rbp-50h]
long long v15; // [rsp+28h] [rbp-50h]
testing::internal::GTestLog *v16; // [rsp+30h] [rbp-48h]
int v17; // [rsp+38h] [rbp-40h]
long long Stream; // [rsp+38h] [rbp-40h]
long long v19; // [rsp+40h] [rbp-38h]
char v20; // [rsp+48h] [rbp-30h]
int v21; // [rsp+54h] [rbp-24h] BYREF
long long v22; // [rsp+58h] [rbp-20h]
long long NotDefaultOrNull; // [rsp+60h] [rbp-18h]
unsigned int v24; // [rsp+6Ch] [rbp-Ch]
long long v25; // [rsp+70h] [rbp-8h]
v25 = a1;
v24 = a2;
NotDefaultOrNull = testing::internal::GetNotDefaultOrNull(
(testing::internal *)testing::Test::SetUpTestCase,
(void (*)(void))testing::Test::SetUpTestCase,
a3);
v22 = testing::internal::GetNotDefaultOrNull(
(testing::internal *)testing::Test::SetUpTestSuite,
(void (*)(void))testing::Test::SetUpTestSuite,
v3);
BYTE3(v19) = 1;
if ( NotDefaultOrNull )
BYTE3(v19) = ~(v22 != 0);
if ( (testing::internal::IsTrue((testing::internal *)(BYTE3(v19) & 1), (bool)testing::Test::SetUpTestSuite) & 1) == 0 )
{
testing::internal::GTestLog::GTestLog((int)&v21, v5, v6, v8, v10, v12, v14, (int)&v21, v17, v19, v20);
Stream = testing::internal::GTestLog::GetStream(v16);
v15 = std::operator<<<std::char_traits<char>>(Stream, "Condition !test_case_fp || !test_suite_fp failed. ");
v13 = std::operator<<<std::char_traits<char>>(
v15,
"Test can not provide both SetUpTestSuite and SetUpTestCase, please make sure there is only one present at ");
v11 = std::operator<<<std::char_traits<char>>(v13, v25);
v9 = std::operator<<<std::char_traits<char>>(v11, ":");
std::ostream::operator<<(v9, v24);
testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)&v21);
}
if ( NotDefaultOrNull )
return NotDefaultOrNull;
else
return v22;
}
| GetSetUpCaseOrSuite:
SUB RSP,0x78
MOV qword ptr [RSP + 0x70],RDI
MOV dword ptr [RSP + 0x6c],ESI
LEA RSI,[0x11e9f0]
MOV RDI,RSI
CALL 0x0011e9c0
MOV qword ptr [RSP + 0x60],RAX
LEA RSI,[0x11ea00]
MOV RDI,RSI
CALL 0x0011e9c0
MOV qword ptr [RSP + 0x58],RAX
MOV AL,0x1
CMP qword ptr [RSP + 0x60],0x0
MOV byte ptr [RSP + 0x43],AL
JZ 0x0011a802
CMP qword ptr [RSP + 0x58],0x0
SETNZ AL
XOR AL,0xff
MOV byte ptr [RSP + 0x43],AL
LAB_0011a802:
MOV AL,byte ptr [RSP + 0x43]
MOVZX EDI,AL
AND EDI,0x1
CALL 0x001b38e0
TEST AL,0x1
JNZ 0x0011a817
JMP 0x0011a81c
LAB_0011a817:
JMP 0x0011a8e1
LAB_0011a81c:
LEA RDX,[0x20c21f]
LEA RDI,[RSP + 0x54]
MOV qword ptr [RSP + 0x30],RDI
MOV ESI,0x3
MOV ECX,0x201
CALL 0x001b9070
MOV RDI,qword ptr [RSP + 0x30]
LAB_0011a841:
CALL 0x0011ea10
MOV qword ptr [RSP + 0x38],RAX
JMP 0x0011a84d
LAB_0011a84d:
MOV RDI,qword ptr [RSP + 0x38]
LEA RSI,[0x20c29b]
CALL 0x001146a0
MOV qword ptr [RSP + 0x28],RAX
JMP 0x0011a865
LAB_0011a865:
MOV RDI,qword ptr [RSP + 0x28]
LEA RSI,[0x20c2ce]
CALL 0x001146a0
MOV qword ptr [RSP + 0x20],RAX
JMP 0x0011a87d
LAB_0011a87d:
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x70]
CALL 0x001146a0
MOV qword ptr [RSP + 0x18],RAX
JMP 0x0011a893
LAB_0011a893:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[0x213f94]
CALL 0x001146a0
MOV qword ptr [RSP + 0x10],RAX
JMP 0x0011a8ab
LAB_0011a8ab:
MOV RDI,qword ptr [RSP + 0x10]
MOV ESI,dword ptr [RSP + 0x6c]
CALL 0x00114c50
LAB_0011a8b9:
JMP 0x0011a8bb
LAB_0011a8bb:
LEA RDI,[RSP + 0x54]
CALL 0x001b91e0
JMP 0x0011a8e1
LAB_0011a8e1:
CMP qword ptr [RSP + 0x60],0x0
JZ 0x0011a8f5
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x0011a8ff
LAB_0011a8f5:
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x8],RAX
LAB_0011a8ff:
MOV RAX,qword ptr [RSP + 0x8]
ADD RSP,0x78
RET
|
/* testing::internal::SuiteApiResolver<alaya::LinearPoolTest>::GetSetUpCaseOrSuite(char const*, int)
*/
long testing::internal::SuiteApiResolver<alaya::LinearPoolTest>::GetSetUpCaseOrSuite
(char *param_1,int param_2)
{
ulong uVar1;
ostream *poVar2;
long local_70;
byte local_35;
GTestLog local_24 [4];
long local_20;
long local_18;
int local_c;
char *local_8;
local_c = param_2;
local_8 = param_1;
local_18 = GetNotDefaultOrNull(Test::SetUpTestCase,Test::SetUpTestCase);
local_20 = GetNotDefaultOrNull(Test::SetUpTestSuite,Test::SetUpTestSuite);
local_35 = 1;
if (local_18 != 0) {
local_35 = local_20 != 0 ^ 0xff;
}
uVar1 = IsTrue((bool)(local_35 & 1));
if ((uVar1 & 1) == 0) {
GTestLog::GTestLog(local_24,3,
"/workspace/llm4binary/github2025/AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/internal/gtest-internal.h"
,0x201);
/* try { // try from 0011a841 to 0011a8b8 has its CatchHandler @ 0011a8c7 */
poVar2 = (ostream *)GTestLog::GetStream();
poVar2 = std::operator<<(poVar2,"Condition !test_case_fp || !test_suite_fp failed. ");
poVar2 = std::operator<<(poVar2,
"Test can not provide both SetUpTestSuite and SetUpTestCase, please make sure there is only one present at "
);
poVar2 = std::operator<<(poVar2,local_8);
poVar2 = std::operator<<(poVar2,":");
std::ostream::operator<<(poVar2,local_c);
GTestLog::~GTestLog(local_24);
}
if (local_18 == 0) {
local_70 = local_20;
}
else {
local_70 = local_18;
}
return local_70;
}
| |
36,272 | 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>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t) | monkey531[P]llama/common/./json.hpp | json_value(value_t t)
{
switch (t)
{
case value_t::object:
{
object = create<object_t>();
break;
}
case value_t::array:
{
array = create<array_t>();
break;
}
case value_t::string:
{
string = create<string_t>("");
break;
}
case value_t::binary:
{
binary = create<binary_t>();
break;
}
case value_t::boolean:
{
boolean = static_cast<boolean_t>(false);
break;
}
case value_t::number_integer:
{
number_integer = static_cast<number_integer_t>(0);
break;
}
case value_t::number_unsigned:
{
number_unsigned = static_cast<number_unsigned_t>(0);
break;
}
case value_t::number_float:
{
number_float = static_cast<number_float_t>(0.0);
break;
}
case value_t::null:
{
object = nullptr; // silence warning, see #821
break;
}
case value_t::discarded:
default:
{
object = nullptr; // silence warning, see #821
if (JSON_HEDLEY_UNLIKELY(t == value_t::null))
{
JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.11.3", nullptr)); // LCOV_EXCL_LINE
}
break;
}
}
} | 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>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t):
pushq %rbx
movq %rdi, %rbx
cmpl $0x8, %esi
ja 0x4c2ff
movl %esi, %eax
leaq 0x6133a(%rip), %rcx # 0xad630
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq $0x0, (%rbx)
jmp 0x4c357
movl $0x20, %edi
jmp 0x4c319
movb $0x0, (%rbx)
jmp 0x4c357
movl $0x18, %edi
callq 0x18690
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
jmp 0x4c354
leaq 0x69106(%rip), %rdi # 0xb543b
callq 0x4c35a
jmp 0x4c354
movl $0x28, %edi
callq 0x18690
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movb $0x0, 0x20(%rax)
movq %rax, (%rbx)
popq %rbx
retq
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_valueC2ENS0_6detail7value_tE:
push rbx
mov rbx, rdi
cmp esi, 8; switch 9 cases
ja short def_4C2FD; jumptable 000000000004C2FD default case, cases 0,5-7
mov eax, esi
lea rcx, jpt_4C2FD
movsxd rax, ds:(jpt_4C2FD - 0AD630h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
def_4C2FD:
mov qword ptr [rbx], 0; jumptable 000000000004C2FD default case, cases 0,5-7
jmp short loc_4C357
loc_4C308:
mov edi, 20h ; ' '; jumptable 000000000004C2FD case 1
jmp short loc_4C319
loc_4C30F:
mov byte ptr [rbx], 0; jumptable 000000000004C2FD case 4
jmp short loc_4C357
loc_4C314:
mov edi, 18h; jumptable 000000000004C2FD case 2
loc_4C319:
call __Znwm; operator new(ulong)
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
mov qword ptr [rax+10h], 0
jmp short loc_4C354
loc_4C32E:
lea rdi, aSJinja+16h; jumptable 000000000004C2FD case 3
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS9_JRA1_KcEEEPT_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::string,char const(&)[1]>(char const(&)[1] &&)
jmp short loc_4C354
loc_4C33C:
mov edi, 28h ; '('; jumptable 000000000004C2FD case 8
call __Znwm; operator new(ulong)
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
movups xmmword ptr [rax+10h], xmm0
mov byte ptr [rax+20h], 0
loc_4C354:
mov [rbx], rax
loc_4C357:
pop rbx
retn
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::json_value(
_BYTE *a1,
unsigned int a2)
{
long long result; // rax
unsigned long long v4; // rdi
result = a2;
switch ( a2 )
{
case 1u:
v4 = 32LL;
goto LABEL_6;
case 2u:
v4 = 24LL;
LABEL_6:
result = operator new(v4);
*(_OWORD *)result = 0LL;
*(_QWORD *)(result + 16) = 0LL;
goto LABEL_9;
case 3u:
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>::create<std::string,char const(&)[1]>("");
goto LABEL_9;
case 4u:
*a1 = 0;
return result;
case 8u:
result = operator new(0x28uLL);
*(_OWORD *)result = 0LL;
*(_OWORD *)(result + 16) = 0LL;
*(_BYTE *)(result + 32) = 0;
LABEL_9:
*(_QWORD *)a1 = result;
break;
default:
*(_QWORD *)a1 = 0LL;
break;
}
return result;
}
| json_value:
PUSH RBX
MOV RBX,RDI
CMP ESI,0x8
JA 0x0014c2ff
MOV EAX,ESI
LEA RCX,[0x1ad630]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
MOV qword ptr [RBX],0x0
JMP 0x0014c357
caseD_1:
MOV EDI,0x20
JMP 0x0014c319
caseD_4:
MOV byte ptr [RBX],0x0
JMP 0x0014c357
caseD_2:
MOV EDI,0x18
LAB_0014c319:
CALL 0x00118690
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
JMP 0x0014c354
caseD_3:
LEA RDI,[0x1b543b]
CALL 0x0014c35a
JMP 0x0014c354
caseD_8:
MOV EDI,0x28
CALL 0x00118690
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOV byte ptr [RAX + 0x20],0x0
LAB_0014c354:
MOV qword ptr [RBX],RAX
LAB_0014c357:
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::json_value::json_value(json_value *this,int4 param_2)
{
string *psVar1;
ulong uVar2;
switch(param_2) {
default:
*(int8 *)this = 0;
return;
case 1:
uVar2 = 0x20;
break;
case 2:
uVar2 = 0x18;
break;
case 3:
psVar1 = create<std::__cxx11::string,char_const(&)[1]>("");
goto LAB_0014c354;
case 4:
*this = (json_value)0x0;
return;
case 8:
psVar1 = (string *)operator_new(0x28);
*(int8 *)psVar1 = 0;
*(int8 *)(psVar1 + 8) = 0;
*(int8 *)(psVar1 + 0x10) = 0;
*(int8 *)(psVar1 + 0x18) = 0;
psVar1[0x20] = (string)0x0;
goto LAB_0014c354;
}
psVar1 = (string *)operator_new(uVar2);
*(int8 *)psVar1 = 0;
*(int8 *)(psVar1 + 8) = 0;
*(int8 *)(psVar1 + 0x10) = 0;
LAB_0014c354:
*(string **)this = psVar1;
return;
}
| |
36,273 | my_strntol_mb2_or_mb4 | eloqsql/strings/ctype-ucs2.c | static long
my_strntol_mb2_or_mb4(CHARSET_INFO *cs,
const char *nptr, size_t l, int base,
char **endptr, int *err)
{
int negative= 0;
int overflow;
int cnv;
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc;
register unsigned int cutlim;
register uint32 cutoff;
register uint32 res;
register const uchar *s= (const uchar*) nptr;
register const uchar *e= (const uchar*) nptr+l;
const uchar *save;
*err= 0;
do
{
if ((cnv= mb_wc(cs, &wc, s, e)) > 0)
{
switch (wc)
{
case ' ' : break;
case '\t': break;
case '-' : negative= !negative; break;
case '+' : break;
default : goto bs;
}
}
else /* No more characters or bad multibyte sequence */
{
if (endptr != NULL )
*endptr= (char*) s;
err[0]= (cnv==MY_CS_ILSEQ) ? EILSEQ : EDOM;
return 0;
}
s+= cnv;
} while (1);
bs:
overflow= 0;
res= 0;
save= s;
cutoff= ((uint32)~0L) / (uint32) base;
cutlim= (uint) (((uint32)~0L) % (uint32) base);
do {
if ((cnv= mb_wc(cs, &wc, s, e)) > 0)
{
s+= cnv;
if (wc >= '0' && wc <= '9')
wc-= '0';
else if (wc >= 'A' && wc <= 'Z')
wc= wc - 'A' + 10;
else if (wc >= 'a' && wc <= 'z')
wc= wc - 'a' + 10;
else
break;
if ((int)wc >= base)
break;
if (res > cutoff || (res == cutoff && wc > cutlim))
overflow= 1;
else
{
res*= (uint32) base;
res+= wc;
}
}
else if (cnv == MY_CS_ILSEQ)
{
if (endptr !=NULL )
*endptr = (char*) s;
err[0]= EILSEQ;
return 0;
}
else
{
/* No more characters */
break;
}
} while(1);
if (endptr != NULL)
*endptr = (char *) s;
if (s == save)
{
err[0]= EDOM;
return 0L;
}
if (negative)
{
if (res > (uint32) INT_MIN32)
overflow= 1;
}
else if (res > INT_MAX32)
overflow= 1;
if (overflow)
{
err[0]= ERANGE;
return negative ? INT_MIN32 : INT_MAX32;
}
return (negative ? -((long) res) : (long) res);
} | O0 | c | my_strntol_mb2_or_mb4:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movq -0x10(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
addq -0x20(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x38(%rbp), %rax
movl $0x0, (%rax)
movq -0x58(%rbp), %rax
movq -0x10(%rbp), %rdi
movq -0x70(%rbp), %rdx
movq -0x78(%rbp), %rcx
leaq -0x50(%rbp), %rsi
callq *%rax
movl %eax, -0x44(%rbp)
cmpl $0x0, %eax
jle 0xeefb1
movq -0x50(%rbp), %rax
addq $-0x9, %rax
movq %rax, -0x88(%rbp)
subq $0x24, %rax
ja 0xeefad
movq -0x88(%rbp), %rax
leaq 0x161825(%rip), %rcx # 0x2507b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0xeefaf
jmp 0xeefaf
cmpl $0x0, -0x3c(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x3c(%rbp)
jmp 0xeefaf
jmp 0xeefaf
jmp 0xef008
jmp 0xeefe9
cmpq $0x0, -0x30(%rbp)
je 0xeefc3
movq -0x70(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x44(%rbp), %edx
movl $0x21, %ecx
movl $0x54, %eax
cmpl $0x0, %edx
cmovel %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0xef211
movl -0x44(%rbp), %ecx
movq -0x70(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x70(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0xeef4a
jmp 0xef006
jmp 0xef008
movl $0x0, -0x40(%rbp)
movl $0x0, -0x64(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x80(%rbp)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
xorl %edx, %edx
divl -0x24(%rbp)
movl %eax, -0x60(%rbp)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
xorl %edx, %edx
divl -0x24(%rbp)
movl %edx, -0x5c(%rbp)
movq -0x58(%rbp), %rax
movq -0x10(%rbp), %rdi
movq -0x70(%rbp), %rdx
movq -0x78(%rbp), %rcx
leaq -0x50(%rbp), %rsi
callq *%rax
movl %eax, -0x44(%rbp)
cmpl $0x0, %eax
jle 0xef119
movl -0x44(%rbp), %ecx
movq -0x70(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x70(%rbp)
cmpq $0x30, -0x50(%rbp)
jb 0xef087
cmpq $0x39, -0x50(%rbp)
ja 0xef087
movq -0x50(%rbp), %rax
subq $0x30, %rax
movq %rax, -0x50(%rbp)
jmp 0xef0d0
cmpq $0x41, -0x50(%rbp)
jb 0xef0a7
cmpq $0x5a, -0x50(%rbp)
ja 0xef0a7
movq -0x50(%rbp), %rax
subq $0x41, %rax
addq $0xa, %rax
movq %rax, -0x50(%rbp)
jmp 0xef0ce
cmpq $0x61, -0x50(%rbp)
jb 0xef0c7
cmpq $0x7a, -0x50(%rbp)
ja 0xef0c7
movq -0x50(%rbp), %rax
subq $0x61, %rax
addq $0xa, %rax
movq %rax, -0x50(%rbp)
jmp 0xef0cc
jmp 0xef158
jmp 0xef0ce
jmp 0xef0d0
movq -0x50(%rbp), %rax
cmpl -0x24(%rbp), %eax
jl 0xef0db
jmp 0xef158
movl -0x64(%rbp), %eax
cmpl -0x60(%rbp), %eax
ja 0xef0f7
movl -0x64(%rbp), %eax
cmpl -0x60(%rbp), %eax
jne 0xef100
movq -0x50(%rbp), %rax
movl -0x5c(%rbp), %ecx
cmpq %rcx, %rax
jbe 0xef100
movl $0x1, -0x40(%rbp)
jmp 0xef117
movl -0x24(%rbp), %eax
imull -0x64(%rbp), %eax
movl %eax, -0x64(%rbp)
movq -0x50(%rbp), %rcx
movl -0x64(%rbp), %eax
addq %rcx, %rax
movl %eax, -0x64(%rbp)
jmp 0xef14a
cmpl $0x0, -0x44(%rbp)
jne 0xef148
cmpq $0x0, -0x30(%rbp)
je 0xef131
movq -0x70(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
movl $0x54, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0xef211
jmp 0xef158
jmp 0xef14c
movb $0x1, %al
testb $0x1, %al
jne 0xef038
jmp 0xef158
cmpq $0x0, -0x30(%rbp)
je 0xef16a
movq -0x70(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x70(%rbp), %rax
cmpq -0x80(%rbp), %rax
jne 0xef18b
movq -0x38(%rbp), %rax
movl $0x21, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0xef211
cmpl $0x0, -0x3c(%rbp)
je 0xef1a3
cmpl $0x80000000, -0x64(%rbp) # imm = 0x80000000
jbe 0xef1a1
movl $0x1, -0x40(%rbp)
jmp 0xef1b7
movl -0x64(%rbp), %eax
cmpq $0x7fffffff, %rax # imm = 0x7FFFFFFF
jle 0xef1b5
movl $0x1, -0x40(%rbp)
jmp 0xef1b7
cmpl $0x0, -0x40(%rbp)
je 0xef1e3
movq -0x38(%rbp), %rax
movl $0x22, (%rax)
movl -0x3c(%rbp), %edx
movl $0x7fffffff, %eax # imm = 0x7FFFFFFF
movq $-0x80000000, %rcx # imm = 0x80000000
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, -0x8(%rbp)
jmp 0xef211
cmpl $0x0, -0x3c(%rbp)
je 0xef1fc
movl -0x64(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
subq %rcx, %rax
movq %rax, -0x90(%rbp)
jmp 0xef206
movl -0x64(%rbp), %eax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nop
| my_strntol_mb2_or_mb4:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov [rbp+var_3C], 0
mov rax, [rbp+var_10]
mov rax, [rax+0B8h]
mov rax, [rax+28h]
mov [rbp+var_58], rax
mov rax, [rbp+var_18]
mov [rbp+var_70], rax
mov rax, [rbp+var_18]
add rax, [rbp+var_20]
mov [rbp+var_78], rax
mov rax, [rbp+var_38]
mov dword ptr [rax], 0
loc_EEF4A:
mov rax, [rbp+var_58]
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_70]
mov rcx, [rbp+var_78]
lea rsi, [rbp+var_50]
call rax
mov [rbp+var_44], eax
cmp eax, 0
jle short loc_EEFB1
mov rax, [rbp+var_50]
add rax, 0FFFFFFFFFFFFFFF7h; switch 37 cases
mov [rbp+var_88], rax
sub rax, 24h
ja short def_EEF92; jumptable 00000000000EEF92 default case, cases 10-31,33-42,44
mov rax, [rbp+var_88]
lea rcx, jpt_EEF92
movsxd rax, ds:(jpt_EEF92 - 2507B0h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_EEF94:
jmp short loc_EEFAF; jumptable 00000000000EEF92 case 32
loc_EEF96:
jmp short loc_EEFAF; jumptable 00000000000EEF92 case 9
loc_EEF98:
cmp [rbp+var_3C], 0; jumptable 00000000000EEF92 case 45
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
mov [rbp+var_3C], eax
jmp short loc_EEFAF
loc_EEFAB:
jmp short loc_EEFAF; jumptable 00000000000EEF92 case 43
def_EEF92:
jmp short loc_EF008; jumptable 00000000000EEF92 default case, cases 10-31,33-42,44
loc_EEFAF:
jmp short loc_EEFE9
loc_EEFB1:
cmp [rbp+var_30], 0
jz short loc_EEFC3
mov rcx, [rbp+var_70]
mov rax, [rbp+var_30]
mov [rax], rcx
loc_EEFC3:
mov edx, [rbp+var_44]
mov ecx, 21h ; '!'
mov eax, 54h ; 'T'
cmp edx, 0
cmovz ecx, eax
mov rax, [rbp+var_38]
mov [rax], ecx
mov [rbp+var_8], 0
jmp loc_EF211
loc_EEFE9:
mov ecx, [rbp+var_44]
mov rax, [rbp+var_70]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_70], rax
mov al, 1
test al, 1
jnz loc_EEF4A
jmp short $+2
loc_EF006:
jmp short $+2
loc_EF008:
mov [rbp+var_40], 0
mov [rbp+var_64], 0
mov rax, [rbp+var_70]
mov [rbp+var_80], rax
mov eax, 0FFFFFFFFh
xor edx, edx
div [rbp+var_24]
mov [rbp+var_60], eax
mov eax, 0FFFFFFFFh
xor edx, edx
div [rbp+var_24]
mov [rbp+var_5C], edx
loc_EF038:
mov rax, [rbp+var_58]
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_70]
mov rcx, [rbp+var_78]
lea rsi, [rbp+var_50]
call rax
mov [rbp+var_44], eax
cmp eax, 0
jle loc_EF119
mov ecx, [rbp+var_44]
mov rax, [rbp+var_70]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_70], rax
cmp [rbp+var_50], 30h ; '0'
jb short loc_EF087
cmp [rbp+var_50], 39h ; '9'
ja short loc_EF087
mov rax, [rbp+var_50]
sub rax, 30h ; '0'
mov [rbp+var_50], rax
jmp short loc_EF0D0
loc_EF087:
cmp [rbp+var_50], 41h ; 'A'
jb short loc_EF0A7
cmp [rbp+var_50], 5Ah ; 'Z'
ja short loc_EF0A7
mov rax, [rbp+var_50]
sub rax, 41h ; 'A'
add rax, 0Ah
mov [rbp+var_50], rax
jmp short loc_EF0CE
loc_EF0A7:
cmp [rbp+var_50], 61h ; 'a'
jb short loc_EF0C7
cmp [rbp+var_50], 7Ah ; 'z'
ja short loc_EF0C7
mov rax, [rbp+var_50]
sub rax, 61h ; 'a'
add rax, 0Ah
mov [rbp+var_50], rax
jmp short loc_EF0CC
loc_EF0C7:
jmp loc_EF158
loc_EF0CC:
jmp short $+2
loc_EF0CE:
jmp short $+2
loc_EF0D0:
mov rax, [rbp+var_50]
cmp eax, [rbp+var_24]
jl short loc_EF0DB
jmp short loc_EF158
loc_EF0DB:
mov eax, [rbp+var_64]
cmp eax, [rbp+var_60]
ja short loc_EF0F7
mov eax, [rbp+var_64]
cmp eax, [rbp+var_60]
jnz short loc_EF100
mov rax, [rbp+var_50]
mov ecx, [rbp+var_5C]
cmp rax, rcx
jbe short loc_EF100
loc_EF0F7:
mov [rbp+var_40], 1
jmp short loc_EF117
loc_EF100:
mov eax, [rbp+var_24]
imul eax, [rbp+var_64]
mov [rbp+var_64], eax
mov rcx, [rbp+var_50]
mov eax, [rbp+var_64]
add rax, rcx
mov [rbp+var_64], eax
loc_EF117:
jmp short loc_EF14A
loc_EF119:
cmp [rbp+var_44], 0
jnz short loc_EF148
cmp [rbp+var_30], 0
jz short loc_EF131
mov rcx, [rbp+var_70]
mov rax, [rbp+var_30]
mov [rax], rcx
loc_EF131:
mov rax, [rbp+var_38]
mov dword ptr [rax], 54h ; 'T'
mov [rbp+var_8], 0
jmp loc_EF211
loc_EF148:
jmp short loc_EF158
loc_EF14A:
jmp short $+2
loc_EF14C:
mov al, 1
test al, 1
jnz loc_EF038
jmp short $+2
loc_EF158:
cmp [rbp+var_30], 0
jz short loc_EF16A
mov rcx, [rbp+var_70]
mov rax, [rbp+var_30]
mov [rax], rcx
loc_EF16A:
mov rax, [rbp+var_70]
cmp rax, [rbp+var_80]
jnz short loc_EF18B
mov rax, [rbp+var_38]
mov dword ptr [rax], 21h ; '!'
mov [rbp+var_8], 0
jmp loc_EF211
loc_EF18B:
cmp [rbp+var_3C], 0
jz short loc_EF1A3
cmp [rbp+var_64], 80000000h
jbe short loc_EF1A1
mov [rbp+var_40], 1
loc_EF1A1:
jmp short loc_EF1B7
loc_EF1A3:
mov eax, [rbp+var_64]
cmp rax, 7FFFFFFFh
jle short loc_EF1B5
mov [rbp+var_40], 1
loc_EF1B5:
jmp short $+2
loc_EF1B7:
cmp [rbp+var_40], 0
jz short loc_EF1E3
mov rax, [rbp+var_38]
mov dword ptr [rax], 22h ; '"'
mov edx, [rbp+var_3C]
mov eax, 7FFFFFFFh
mov rcx, 0FFFFFFFF80000000h
cmp edx, 0
cmovnz rax, rcx
mov [rbp+var_8], rax
jmp short loc_EF211
loc_EF1E3:
cmp [rbp+var_3C], 0
jz short loc_EF1FC
mov eax, [rbp+var_64]
mov ecx, eax
xor eax, eax
sub rax, rcx
mov [rbp+var_90], rax
jmp short loc_EF206
loc_EF1FC:
mov eax, [rbp+var_64]
mov [rbp+var_90], rax
loc_EF206:
mov rax, [rbp+var_90]
mov [rbp+var_8], rax
loc_EF211:
mov rax, [rbp+var_8]
add rsp, 90h
pop rbp
retn
| long long my_strntol_mb2_or_mb4(long long a1, long long a2, long long a3, unsigned int a4, _QWORD *a5, int *a6)
{
int v6; // ecx
long long v7; // rax
long long v10; // [rsp+10h] [rbp-80h]
long long v11; // [rsp+18h] [rbp-78h]
long long v12; // [rsp+20h] [rbp-70h]
unsigned int v13; // [rsp+2Ch] [rbp-64h]
unsigned int v14; // [rsp+30h] [rbp-60h]
unsigned int v15; // [rsp+34h] [rbp-5Ch]
long long ( *v16)(long long, unsigned long long *, long long, long long); // [rsp+38h] [rbp-58h]
unsigned long long v17; // [rsp+40h] [rbp-50h] BYREF
int v18; // [rsp+4Ch] [rbp-44h]
int v19; // [rsp+50h] [rbp-40h]
BOOL v20; // [rsp+54h] [rbp-3Ch]
int *v21; // [rsp+58h] [rbp-38h]
_QWORD *v22; // [rsp+60h] [rbp-30h]
unsigned int v23; // [rsp+6Ch] [rbp-24h]
long long v24; // [rsp+70h] [rbp-20h]
long long v25; // [rsp+78h] [rbp-18h]
long long v26; // [rsp+80h] [rbp-10h]
v26 = a1;
v25 = a2;
v24 = a3;
v23 = a4;
v22 = a5;
v21 = a6;
v20 = 0;
v16 = *(long long ( **)(long long, unsigned long long *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL);
v12 = a2;
v11 = a3 + a2;
*a6 = 0;
while ( 2 )
{
v18 = v16(v26, &v17, v12, v11);
if ( v18 <= 0 )
{
if ( v22 )
*v22 = v12;
v6 = 33;
if ( !v18 )
v6 = 84;
*v21 = v6;
return 0LL;
}
else
{
switch ( v17 )
{
case 9uLL:
case 0x20uLL:
case 0x2BuLL:
goto LABEL_10;
case 0x2DuLL:
v20 = !v20;
LABEL_10:
v12 += v18;
continue;
default:
v19 = 0;
v13 = 0;
v10 = v12;
v14 = 0xFFFFFFFF / v23;
v15 = 0xFFFFFFFF % v23;
break;
}
while ( 1 )
{
v18 = v16(v26, &v17, v12, v11);
if ( v18 <= 0 )
break;
v12 += v18;
if ( v17 < 0x30 || v17 > 0x39 )
{
if ( v17 < 0x41 || v17 > 0x5A )
{
if ( v17 < 0x61 || v17 > 0x7A )
goto LABEL_33;
v17 = v17 - 97 + 10;
}
else
{
v17 = v17 - 65 + 10;
}
}
else
{
v17 -= 48LL;
}
if ( (int)v17 >= (int)v23 )
goto LABEL_33;
if ( v13 > v14 || v13 == v14 && v17 > v15 )
v19 = 1;
else
v13 = v17 + v13 * v23;
}
if ( v18 )
{
LABEL_33:
if ( v22 )
*v22 = v12;
if ( v12 == v10 )
{
*v21 = 33;
return 0LL;
}
else
{
if ( v20 )
{
if ( v13 > 0x80000000 )
v19 = 1;
}
else if ( v13 > 0x7FFFFFFFuLL )
{
v19 = 1;
}
if ( v19 )
{
*v21 = 34;
v7 = 0x7FFFFFFFLL;
if ( v20 )
return 0xFFFFFFFF80000000LL;
return v7;
}
else if ( v20 )
{
return -(long long)v13;
}
else
{
return v13;
}
}
}
if ( v22 )
*v22 = v12;
*v21 = 84;
return 0LL;
}
}
}
| my_strntol_mb2_or_mb4:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV dword ptr [RBP + -0x3c],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x0
LAB_001eef4a:
MOV RAX,qword ptr [RBP + -0x58]
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x70]
MOV RCX,qword ptr [RBP + -0x78]
LEA RSI,[RBP + -0x50]
CALL RAX
MOV dword ptr [RBP + -0x44],EAX
CMP EAX,0x0
JLE 0x001eefb1
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,-0x9
MOV qword ptr [RBP + -0x88],RAX
SUB RAX,0x24
JA 0x001eefad
MOV RAX,qword ptr [RBP + -0x88]
LEA RCX,[0x3507b0]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_20:
JMP 0x001eefaf
caseD_9:
JMP 0x001eefaf
caseD_2d:
CMP dword ptr [RBP + -0x3c],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x001eefaf
caseD_2b:
JMP 0x001eefaf
caseD_a:
JMP 0x001ef008
LAB_001eefaf:
JMP 0x001eefe9
LAB_001eefb1:
CMP qword ptr [RBP + -0x30],0x0
JZ 0x001eefc3
MOV RCX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
LAB_001eefc3:
MOV EDX,dword ptr [RBP + -0x44]
MOV ECX,0x21
MOV EAX,0x54
CMP EDX,0x0
CMOVZ ECX,EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],ECX
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001ef211
LAB_001eefe9:
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x70]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x70],RAX
MOV AL,0x1
TEST AL,0x1
JNZ 0x001eef4a
JMP 0x001ef006
LAB_001ef006:
JMP 0x001ef008
LAB_001ef008:
MOV dword ptr [RBP + -0x40],0x0
MOV dword ptr [RBP + -0x64],0x0
MOV RAX,qword ptr [RBP + -0x70]
MOV qword ptr [RBP + -0x80],RAX
MOV EAX,0xffffffff
XOR EDX,EDX
DIV dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x60],EAX
MOV EAX,0xffffffff
XOR EDX,EDX
DIV dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x5c],EDX
LAB_001ef038:
MOV RAX,qword ptr [RBP + -0x58]
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x70]
MOV RCX,qword ptr [RBP + -0x78]
LEA RSI,[RBP + -0x50]
CALL RAX
MOV dword ptr [RBP + -0x44],EAX
CMP EAX,0x0
JLE 0x001ef119
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x70]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x70],RAX
CMP qword ptr [RBP + -0x50],0x30
JC 0x001ef087
CMP qword ptr [RBP + -0x50],0x39
JA 0x001ef087
MOV RAX,qword ptr [RBP + -0x50]
SUB RAX,0x30
MOV qword ptr [RBP + -0x50],RAX
JMP 0x001ef0d0
LAB_001ef087:
CMP qword ptr [RBP + -0x50],0x41
JC 0x001ef0a7
CMP qword ptr [RBP + -0x50],0x5a
JA 0x001ef0a7
MOV RAX,qword ptr [RBP + -0x50]
SUB RAX,0x41
ADD RAX,0xa
MOV qword ptr [RBP + -0x50],RAX
JMP 0x001ef0ce
LAB_001ef0a7:
CMP qword ptr [RBP + -0x50],0x61
JC 0x001ef0c7
CMP qword ptr [RBP + -0x50],0x7a
JA 0x001ef0c7
MOV RAX,qword ptr [RBP + -0x50]
SUB RAX,0x61
ADD RAX,0xa
MOV qword ptr [RBP + -0x50],RAX
JMP 0x001ef0cc
LAB_001ef0c7:
JMP 0x001ef158
LAB_001ef0cc:
JMP 0x001ef0ce
LAB_001ef0ce:
JMP 0x001ef0d0
LAB_001ef0d0:
MOV RAX,qword ptr [RBP + -0x50]
CMP EAX,dword ptr [RBP + -0x24]
JL 0x001ef0db
JMP 0x001ef158
LAB_001ef0db:
MOV EAX,dword ptr [RBP + -0x64]
CMP EAX,dword ptr [RBP + -0x60]
JA 0x001ef0f7
MOV EAX,dword ptr [RBP + -0x64]
CMP EAX,dword ptr [RBP + -0x60]
JNZ 0x001ef100
MOV RAX,qword ptr [RBP + -0x50]
MOV ECX,dword ptr [RBP + -0x5c]
CMP RAX,RCX
JBE 0x001ef100
LAB_001ef0f7:
MOV dword ptr [RBP + -0x40],0x1
JMP 0x001ef117
LAB_001ef100:
MOV EAX,dword ptr [RBP + -0x24]
IMUL EAX,dword ptr [RBP + -0x64]
MOV dword ptr [RBP + -0x64],EAX
MOV RCX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RBP + -0x64]
ADD RAX,RCX
MOV dword ptr [RBP + -0x64],EAX
LAB_001ef117:
JMP 0x001ef14a
LAB_001ef119:
CMP dword ptr [RBP + -0x44],0x0
JNZ 0x001ef148
CMP qword ptr [RBP + -0x30],0x0
JZ 0x001ef131
MOV RCX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
LAB_001ef131:
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x54
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001ef211
LAB_001ef148:
JMP 0x001ef158
LAB_001ef14a:
JMP 0x001ef14c
LAB_001ef14c:
MOV AL,0x1
TEST AL,0x1
JNZ 0x001ef038
JMP 0x001ef158
LAB_001ef158:
CMP qword ptr [RBP + -0x30],0x0
JZ 0x001ef16a
MOV RCX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
LAB_001ef16a:
MOV RAX,qword ptr [RBP + -0x70]
CMP RAX,qword ptr [RBP + -0x80]
JNZ 0x001ef18b
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x21
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001ef211
LAB_001ef18b:
CMP dword ptr [RBP + -0x3c],0x0
JZ 0x001ef1a3
CMP dword ptr [RBP + -0x64],0x80000000
JBE 0x001ef1a1
MOV dword ptr [RBP + -0x40],0x1
LAB_001ef1a1:
JMP 0x001ef1b7
LAB_001ef1a3:
MOV EAX,dword ptr [RBP + -0x64]
CMP RAX,0x7fffffff
JLE 0x001ef1b5
MOV dword ptr [RBP + -0x40],0x1
LAB_001ef1b5:
JMP 0x001ef1b7
LAB_001ef1b7:
CMP dword ptr [RBP + -0x40],0x0
JZ 0x001ef1e3
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x22
MOV EDX,dword ptr [RBP + -0x3c]
MOV EAX,0x7fffffff
MOV RCX,-0x80000000
CMP EDX,0x0
CMOVNZ RAX,RCX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001ef211
LAB_001ef1e3:
CMP dword ptr [RBP + -0x3c],0x0
JZ 0x001ef1fc
MOV EAX,dword ptr [RBP + -0x64]
MOV ECX,EAX
XOR EAX,EAX
SUB RAX,RCX
MOV qword ptr [RBP + -0x90],RAX
JMP 0x001ef206
LAB_001ef1fc:
MOV EAX,dword ptr [RBP + -0x64]
MOV qword ptr [RBP + -0x90],RAX
LAB_001ef206:
MOV RAX,qword ptr [RBP + -0x90]
MOV qword ptr [RBP + -0x8],RAX
LAB_001ef211:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x90
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x001ef004) */
/* WARNING: Removing unreachable block (ram,0x001ef156) */
ulong my_strntol_mb2_or_mb4
(long param_1,long param_2,long param_3,uint param_4,long *param_5,
int4 *param_6)
{
code *pcVar1;
ulong uVar2;
long lVar3;
uint uVar4;
int4 uVar5;
ulong local_98;
long local_78;
uint local_6c;
ulong local_58;
int local_4c;
int local_48;
uint local_44;
int4 *local_40;
long *local_38;
uint local_2c;
long local_28;
long local_20;
long local_18;
ulong local_10;
local_44 = 0;
pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28);
*param_6 = 0;
local_78 = param_2;
local_40 = param_6;
local_38 = param_5;
local_2c = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
do {
lVar3 = local_78;
local_4c = (*pcVar1)(local_18,&local_58,local_78,param_2 + param_3);
if (local_4c < 1) {
if (local_38 != (long *)0x0) {
*local_38 = local_78;
}
uVar5 = 0x21;
if (local_4c == 0) {
uVar5 = 0x54;
}
*local_40 = uVar5;
return 0;
}
switch(local_58) {
case 9:
break;
default:
local_48 = 0;
local_6c = 0;
uVar4 = (uint)(0xffffffff / (ulong)local_2c);
uVar2 = (ulong)local_2c;
goto LAB_001ef038;
case 0x20:
break;
case 0x2b:
break;
case 0x2d:
local_44 = (uint)((local_44 != 0 ^ 0xffU) & 1);
}
local_78 = local_78 + local_4c;
} while( true );
LAB_001ef038:
local_4c = (*pcVar1)(local_18,&local_58,local_78,param_2 + param_3);
if (local_4c < 1) {
if (local_4c == 0) {
if (local_38 != (long *)0x0) {
*local_38 = local_78;
}
*local_40 = 0x54;
local_10 = 0;
}
else {
LAB_001ef158:
if (local_38 != (long *)0x0) {
*local_38 = local_78;
}
if (local_78 == lVar3) {
*local_40 = 0x21;
local_10 = 0;
}
else {
if (local_44 == 0) {
if (0x7fffffff < local_6c) {
local_48 = 1;
}
}
else if (0x80000000 < local_6c) {
local_48 = 1;
}
if (local_48 == 0) {
if (local_44 == 0) {
local_98 = (ulong)local_6c;
}
else {
local_98 = -(ulong)local_6c;
}
local_10 = local_98;
}
else {
*local_40 = 0x22;
local_10 = 0x7fffffff;
if (local_44 != 0) {
local_10 = 0xffffffff80000000;
}
}
}
}
return local_10;
}
local_78 = local_78 + local_4c;
if ((local_58 < 0x30) || (0x39 < local_58)) {
if ((local_58 < 0x41) || (0x5a < local_58)) {
if ((local_58 < 0x61) || (0x7a < local_58)) goto LAB_001ef158;
local_58 = local_58 - 0x57;
}
else {
local_58 = local_58 - 0x37;
}
}
else {
local_58 = local_58 - 0x30;
}
if ((int)local_2c <= (int)local_58) goto LAB_001ef158;
if ((uVar4 < local_6c) || ((local_6c == uVar4 && (0xffffffffU % uVar2 < local_58)))) {
local_48 = 1;
}
else {
local_6c = local_2c * local_6c + (int)local_58;
}
goto LAB_001ef038;
}
| |
36,274 | purge_account(PFS_thread*, PFS_account*) | eloqsql/storage/perfschema/pfs_account.cc | void purge_account(PFS_thread *thread, PFS_account *account)
{
LF_PINS *pins= get_account_hash_pins(thread);
if (unlikely(pins == NULL))
return;
PFS_account **entry;
entry= reinterpret_cast<PFS_account**>
(lf_hash_search(&account_hash, pins,
account->m_key.m_hash_key,
account->m_key.m_key_length));
if (entry && (entry != MY_ERRPTR))
{
assert(*entry == account);
if (account->get_refcount() == 0)
{
lf_hash_delete(&account_hash, pins,
account->m_key.m_hash_key,
account->m_key.m_key_length);
account->aggregate(false, account->m_user, account->m_host);
if (account->m_user != NULL)
{
account->m_user->release();
account->m_user= NULL;
}
if (account->m_host != NULL)
{
account->m_host->release();
account->m_host= NULL;
}
global_account_container.deallocate(account);
}
}
lf_hash_search_unpin(pins);
} | O3 | cpp | purge_account(PFS_thread*, PFS_account*):
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x838(%rdi), %rdi
testq %rdi, %rdi
je 0x3f66e
movq %rbx, %rsi
callq 0x2ae1d
popq %rbx
popq %r14
popq %rbp
retq
cmpb $0x1, 0x390ceb(%rip) # 0x3d0360
jne 0x3f669
leaq 0x390c42(%rip), %rdi # 0x3d02c0
callq 0x2ba28
movq %rax, 0x838(%r14)
testq %rax, %rax
je 0x3f669
movq %rax, %rdi
jmp 0x3f661
| _Z13purge_accountP10PFS_threadP11PFS_account:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rsi
mov r14, rdi
mov rdi, [rdi+838h]
test rdi, rdi
jz short loc_3F66E
loc_3F661:
mov rsi, rbx
call _Z13purge_accountP10PFS_threadP11PFS_account_cold_1; purge_account(PFS_thread *,PFS_account *) [clone]
loc_3F669:
pop rbx
pop r14
pop rbp
retn
loc_3F66E:
cmp cs:_ZL19account_hash_inited, 1; account_hash_inited
jnz short loc_3F669
lea rdi, unk_3D02C0
call lf_pinbox_get_pins
mov [r14+838h], rax
test rax, rax
jz short loc_3F669
mov rdi, rax
jmp short loc_3F661
| void purge_account(PFS_thread *a1, PFS_account *a2)
{
long long v3; // rdi
long long pins; // rax
v3 = *((_QWORD *)a1 + 263);
if ( v3 )
goto LABEL_2;
if ( account_hash_inited == 1 )
{
pins = lf_pinbox_get_pins((long long)&unk_3D02C0);
*((_QWORD *)a1 + 263) = pins;
if ( pins )
{
v3 = pins;
LABEL_2:
purge_account(v3, (long long)a2);
}
}
}
| purge_account:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
MOV RDI,qword ptr [RDI + 0x838]
TEST RDI,RDI
JZ 0x0013f66e
LAB_0013f661:
MOV RSI,RBX
CALL 0x0012ae1d
LAB_0013f669:
POP RBX
POP R14
POP RBP
RET
LAB_0013f66e:
CMP byte ptr [0x004d0360],0x1
JNZ 0x0013f669
LEA RDI,[0x4d02c0]
CALL 0x0012ba28
MOV qword ptr [R14 + 0x838],RAX
TEST RAX,RAX
JZ 0x0013f669
MOV RDI,RAX
JMP 0x0013f661
|
/* purge_account(PFS_thread*, PFS_account*) */
void purge_account(PFS_thread *param_1,PFS_account *param_2)
{
PFS_thread *pPVar1;
pPVar1 = *(PFS_thread **)(param_1 + 0x838);
if (pPVar1 == (PFS_thread *)0x0) {
if (account_hash_inited != '\x01') {
return;
}
pPVar1 = (PFS_thread *)lf_pinbox_get_pins(0x4d02c0);
*(PFS_thread **)(param_1 + 0x838) = pPVar1;
if (pPVar1 == (PFS_thread *)0x0) {
return;
}
}
purge_account(pPVar1,param_2);
return;
}
| |
36,275 | CLI::Validator::description(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) | MikePodsytnik[P]TCRtrie/build_O1/_deps/cli11-src/include/CLI/Validators.hpp | Validator &description(std::string validator_desc) {
desc_function_ = [validator_desc]() { return validator_desc; };
return *this;
} | O1 | cpp | CLI::Validator::description(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>):
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x178c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2dde2
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2dd3a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7430
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2dd60
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7430
movq %rbx, %rdi
callq 0x7780
| _ZN3CLI9Validator11descriptionENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
sub rsp, 20h
mov rbx, rdi
lea r15, [rsp+38h+var_28]
mov [r15-10h], r15
mov rax, [rsi]
mov rdx, [rsi+8]
add rdx, rax
mov r14, rsp
mov rdi, r14
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rdi, rbx
mov rsi, r14
call _ZNSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEvEEaSIZN3CLI9Validator11descriptionES5_EUlvE_EENSt9enable_ifIXsrNS7_9_CallableIT_NSC_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISE_E4typeEE4typeES7_EE5valueESt5decayISE_EE4type4typeESt15__invoke_resultIRSP_JEEEE5valueERS7_E4typeEOSE_
mov rdi, [rsp+38h+var_38]; void *
cmp rdi, r15
jz short loc_2DD3A
mov rsi, [rsp+38h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2DD3A:
mov rax, rbx
add rsp, 20h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_2DD60
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2DD60:
mov rdi, rbx
call __Unwind_Resume
| long long CLI::Validator::description(long long a1, long long a2)
{
void *v3[2]; // [rsp+0h] [rbp-38h] BYREF
_QWORD v4[5]; // [rsp+10h] [rbp-28h] BYREF
v3[0] = v4;
std::string::_M_construct<char *>(v3, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8));
std::function<std::string ()(void)>::operator=<CLI::Validator::description(std::string)::{lambda(void)#1}>(a1, v3);
if ( v3[0] != v4 )
operator delete(v3[0], v4[0] + 1LL);
return a1;
}
| description:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV RAX,qword ptr [RSI]
MOV RDX,qword ptr [RSI + 0x8]
ADD RDX,RAX
MOV R14,RSP
MOV RDI,R14
MOV RSI,RAX
CALL 0x001178c0
LAB_0012dd19:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0012dde2
LAB_0012dd24:
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x0012dd3a
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00107430
LAB_0012dd3a:
MOV RAX,RBX
ADD RSP,0x20
POP RBX
POP R14
POP R15
RET
|
/* CLI::Validator::description(std::__cxx11::string) */
Validator * __thiscall CLI::Validator::description(Validator *this,long *param_2)
{
long *local_38 [2];
long local_28 [2];
local_38[0] = local_28;
std::__cxx11::string::_M_construct<char*>(local_38,*param_2,param_2[1] + *param_2);
/* try { // try from 0012dd19 to 0012dd23 has its CatchHandler @ 0012dd47 */
std::function<std::__cxx11::string()>::operator=
((function<std::__cxx11::string()> *)this,(_lambda___1_ *)local_38);
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
return this;
}
| |
36,276 | SchemaConverter::_generate_union_rule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>> const&) | monkey531[P]llama/common/json-schema-to-grammar.cpp | std::string _generate_union_rule(const std::string & name, const std::vector<json> & alt_schemas) {
std::vector<std::string> rules;
for (size_t i = 0; i < alt_schemas.size(); i++) {
rules.push_back(visit(alt_schemas[i], name + (name.empty() ? "alternative-" : "-") + std::to_string(i)));
}
return string_join(rules, " | ");
} | O1 | cpp | SchemaConverter::_generate_union_rule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<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 $0xb8, %rsp
movq %rdx, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdi, 0x98(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
movq (%rcx), %r12
movq %rcx, 0xa0(%rsp)
cmpq %r12, 0x8(%rcx)
je 0xe8d1e
leaq 0x50(%rsp), %rbp
xorl %r13d, %r13d
leaq 0x60(%rsp), %r14
movq %rbp, %rbx
movq 0xb0(%rsp), %rcx
movq 0x8(%rcx), %rbp
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq (%rcx), %rsi
leaq (%rsi,%rbp), %rdx
movq %rsp, %r15
movq %r15, %rdi
callq 0x2665e
testq %rbp, %rbp
leaq 0x34391(%rip), %rsi # 0x11ceb7
leaq 0x34433(%rip), %rax # 0x11cf60
cmoveq %rax, %rsi
movq %r15, %rdi
callq 0x1e860
movl $0x1, %esi
cmpq $0xa, %r13
movq %rbx, %rbp
jb 0xe8b96
movl $0x4, %esi
movq %r13, %rcx
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
cmpq $0x63, %rcx
jbe 0xe8b8f
cmpq $0x3e7, %rcx # imm = 0x3E7
jbe 0xe8b94
cmpq $0x2710, %rcx # imm = 0x2710
jb 0xe8b96
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx # imm = 0x1869F
movq %rdx, %rcx
ja 0xe8b59
addl $-0x3, %esi
jmp 0xe8b96
addl $-0x2, %esi
jmp 0xe8b96
decl %esi
movl %esi, %esi
movq %rbp, 0x40(%rsp)
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
callq 0x1de30
movq 0x40(%rsp), %rdi
movl 0x48(%rsp), %esi
movq %r13, %rdx
callq 0x45891
movq (%rsp), %rcx
movl $0xf, %esi
leaq 0x10(%rsp), %rax
cmpq %rax, %rcx
je 0xe8bd2
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %r8
movq 0x48(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0xe8bfb
movl $0xf, %esi
cmpq %rbp, 0x40(%rsp)
je 0xe8bf6
movq 0x50(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xe8c0a
movq 0x40(%rsp), %rsi
movq %rsp, %rdi
callq 0x1d310
jmp 0xe8c18
leaq 0x40(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1dde0
leaq 0x30(%rsp), %rsi
movq %rsi, 0x20(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xe8c3d
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xe8c43
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x28(%rsp)
movq %rcx, (%rax)
movq %r13, %rax
shlq $0x4, %rax
addq %rax, %r12
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq %r14, %rdi
movq 0xa8(%rsp), %rsi
movq %r12, %rdx
leaq 0x20(%rsp), %rcx
callq 0xe5cf0
leaq 0x80(%rsp), %rdi
movq %r14, %rsi
leaq 0x30(%rsp), %r12
callq 0x869a0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xe8cb3
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1dc40
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0xe8cca
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1dc40
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0xe8ce1
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1dc40
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xe8cfc
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1dc40
incq %r13
movq 0xa0(%rsp), %rax
movq (%rax), %r12
movq 0x8(%rax), %rax
subq %r12, %rax
sarq $0x4, %rax
cmpq %rax, %r13
jb 0xe8af2
leaq 0x70(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x343e9(%rip), %rsi # 0x11d117
leaq 0x343e5(%rip), %rdx # 0x11d11a
leaq 0x60(%rsp), %rdi
callq 0x2698a
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
movq 0x98(%rsp), %r14
movq %r14, %rdi
callq 0x966b4
movq 0x60(%rsp), %rdi
cmpq %rbx, %rdi
je 0xe8d73
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1dc40
leaq 0x80(%rsp), %rdi
callq 0x261ce
movq %r14, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x60(%rsp), %rdi
cmpq %rbx, %rdi
je 0xe8e32
movq 0x70(%rsp), %rsi
jmp 0xe8e2a
jmp 0xe8daf
movq %rax, %r14
jmp 0xe8e32
jmp 0xe8db6
movq %rax, %r14
jmp 0xe8e17
movq %rax, %r14
jmp 0xe8e00
movq %rax, %r14
jmp 0xe8de4
movq %rax, %r14
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xe8de4
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1dc40
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xe8e00
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1dc40
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0xe8e17
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1dc40
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xe8e32
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1dc40
leaq 0x80(%rsp), %rdi
callq 0x261ce
movq %r14, %rdi
callq 0x1e650
nop
| _ZN15SchemaConverter20_generate_union_ruleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapES8_S5_blmdSaNSA_14adl_serializerES8_IhSaIhEEvEESaISG_EE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov [rsp+0E8h+var_38], rdx
mov [rsp+0E8h+var_40], rsi
mov [rsp+0E8h+var_50], rdi
xorps xmm0, xmm0
movaps [rsp+0E8h+var_68], xmm0
mov [rsp+0E8h+var_58], 0
mov r12, [rcx]
mov [rsp+0E8h+var_48], rcx
cmp [rcx+8], r12
jz loc_E8D1E
lea rbp, [rsp+0E8h+var_98]
xor r13d, r13d
lea r14, [rsp+0E8h+var_88]
loc_E8AF2:
mov rbx, rbp
mov rcx, [rsp+0E8h+var_38]
mov rbp, [rcx+8]
lea rax, [rsp+0E8h+var_D8]
mov [rsp+0E8h+var_E8], rax
mov rsi, [rcx]
lea rdx, [rsi+rbp]
mov r15, rsp
mov rdi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
test rbp, rbp
lea rsi, aTuple+5; "-"
lea rax, aAlternative; "alternative-"
cmovz rsi, rax
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov esi, 1
cmp r13, 0Ah
mov rbp, rbx
jb short loc_E8B96
mov esi, 4
mov rcx, r13
mov rdi, 346DC5D63886594Bh
loc_E8B59:
cmp rcx, 63h ; 'c'
jbe short loc_E8B8F
cmp rcx, 3E7h
jbe short loc_E8B94
cmp rcx, 2710h
jb short loc_E8B96
mov rax, rcx
mul rdi
shr rdx, 0Bh
add esi, 4
cmp rcx, 1869Fh
mov rcx, rdx
ja short loc_E8B59
add esi, 0FFFFFFFDh
jmp short loc_E8B96
loc_E8B8F:
add esi, 0FFFFFFFEh
jmp short loc_E8B96
loc_E8B94:
dec esi
loc_E8B96:
mov esi, esi
mov [rsp+0E8h+var_A8], rbp
lea rdi, [rsp+0E8h+var_A8]
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
mov rdi, [rsp+0E8h+var_A8]
mov esi, dword ptr [rsp+0E8h+var_A0]
mov rdx, r13
call _ZNSt8__detail18__to_chars_10_implImEEvPcjT_; std::__detail::__to_chars_10_impl<ulong>(char *,uint,ulong)
mov rcx, [rsp+0E8h+var_E8]
mov esi, 0Fh
lea rax, [rsp+0E8h+var_D8]
cmp rcx, rax
jz short loc_E8BD2
mov rsi, [rsp+0E8h+var_D8]
loc_E8BD2:
mov r8, [rsp+0E8h+var_E0]
mov rdx, [rsp+0E8h+var_A0]
lea rax, [rdx+r8]
cmp rax, rsi
jbe short loc_E8BFB
mov esi, 0Fh
cmp [rsp+0E8h+var_A8], rbp
jz short loc_E8BF6
mov rsi, [rsp+0E8h+var_98]
loc_E8BF6:
cmp rax, rsi
jbe short loc_E8C0A
loc_E8BFB:
mov rsi, [rsp+0E8h+var_A8]
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp short loc_E8C18
loc_E8C0A:
lea rdi, [rsp+0E8h+var_A8]
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
loc_E8C18:
lea rsi, [rsp+0E8h+var_B8]
mov [rsp+0E8h+var_C8], rsi
mov rdx, [rax]
lea rcx, [rax+10h]
cmp rdx, rcx
jz short loc_E8C3D
mov [rsp+0E8h+var_C8], rdx
mov rdx, [rcx]
mov [rsp+0E8h+var_B8], rdx
jmp short loc_E8C43
loc_E8C3D:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rsi], xmm0
loc_E8C43:
mov rdx, rax
add rdx, 8
mov rsi, [rax+8]
mov [rsp+0E8h+var_C0], rsi
mov [rax], rcx
mov rax, r13
shl rax, 4
add r12, rax
mov qword ptr [rdx], 0
mov byte ptr [rcx], 0
mov rdi, r14
mov rsi, [rsp+0E8h+var_40]
mov rdx, r12
lea rcx, [rsp+0E8h+var_C8]
call _ZN15SchemaConverter5visitERKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_; SchemaConverter::visit(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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&,std::string const&)
lea rdi, [rsp+0E8h+var_68]
mov rsi, r14
lea r12, [rsp+0E8h+var_B8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&)
mov rdi, [rsp+0E8h+var_88]; void *
lea rax, [rsp+0E8h+var_78]
cmp rdi, rax
jz short loc_E8CB3
mov rsi, [rsp+0E8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E8CB3:
mov rdi, [rsp+0E8h+var_C8]; void *
cmp rdi, r12
jz short loc_E8CCA
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E8CCA:
mov rdi, [rsp+0E8h+var_A8]; void *
cmp rdi, rbp
jz short loc_E8CE1
mov rsi, [rsp+0E8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E8CE1:
mov rdi, [rsp+0E8h+var_E8]; void *
lea rax, [rsp+0E8h+var_D8]
cmp rdi, rax
jz short loc_E8CFC
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E8CFC:
inc r13
mov rax, [rsp+0E8h+var_48]
mov r12, [rax]
mov rax, [rax+8]
sub rax, r12
sar rax, 4
cmp r13, rax
jb loc_E8AF2
loc_E8D1E:
lea rbx, [rsp+0E8h+var_78]
mov [rbx-10h], rbx
lea rsi, asc_11D116+1; " | "
lea rdx, asc_11D116+4; ""
lea rdi, [rsp+0E8h+var_88]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rsi, [rsp+0E8h+var_68]
lea rdx, [rsp+0E8h+var_88]
mov r14, [rsp+0E8h+var_50]
mov rdi, r14
call _Z11string_joinRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EERKS5_; string_join(std::vector<std::string> const&,std::string const&)
mov rdi, [rsp+0E8h+var_88]; void *
cmp rdi, rbx
jz short loc_E8D73
mov rsi, [rsp+0E8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E8D73:
lea rdi, [rsp+0E8h+var_68]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rax, r14
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rsp+arg_58]
cmp rdi, rbx
jz loc_E8E32
mov rsi, [rsp+arg_68]
jmp short loc_E8E2A
jmp short $+2
loc_E8DAF:
mov r14, rax
jmp short loc_E8E32
jmp short $+2
loc_E8DB6:
mov r14, rax
jmp short loc_E8E17
mov r14, rax
jmp short loc_E8E00
mov r14, rax
jmp short loc_E8DE4
mov r14, rax
mov rdi, [rsp+arg_58]; void *
lea rax, [rsp+arg_68]
cmp rdi, rax
jz short loc_E8DE4
mov rsi, [rsp+arg_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E8DE4:
mov rdi, [rsp+arg_18]; void *
lea rax, [rsp+arg_28]
cmp rdi, rax
jz short loc_E8E00
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E8E00:
mov rdi, [rsp+arg_38]; void *
cmp rdi, rbx
jz short loc_E8E17
mov rsi, [rsp+arg_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E8E17:
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_E8E32
mov rsi, [rsp+arg_8]
loc_E8E2A:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E8E32:
lea rdi, [rsp+arg_78]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r14
call __Unwind_Resume
| long long SchemaConverter::_generate_union_rule(long long a1, long long a2, long long a3, long long *a4)
{
__m128d v4; // xmm0
long long v5; // r12
unsigned long long *v6; // rbp
unsigned long long v7; // r13
unsigned long long *v8; // rbx
long long v9; // rbp
char *v10; // rsi
unsigned int v11; // esi
unsigned long long v12; // rcx
bool v13; // cc
unsigned long long v14; // rsi
unsigned long long v15; // rsi
void **v16; // rax
__m128d *v17; // rcx
long long v18; // r14
void *v20; // [rsp+0h] [rbp-E8h] BYREF
long long v21; // [rsp+8h] [rbp-E0h]
_QWORD v22[2]; // [rsp+10h] [rbp-D8h] BYREF
void *v23[2]; // [rsp+20h] [rbp-C8h] BYREF
__m128d v24; // [rsp+30h] [rbp-B8h] BYREF
void *v25; // [rsp+40h] [rbp-A8h] BYREF
long long v26; // [rsp+48h] [rbp-A0h]
unsigned long long v27; // [rsp+50h] [rbp-98h] BYREF
void *v28[2]; // [rsp+60h] [rbp-88h] BYREF
_QWORD v29[2]; // [rsp+70h] [rbp-78h] BYREF
__int128 v30; // [rsp+80h] [rbp-68h] BYREF
long long v31; // [rsp+90h] [rbp-58h]
long long v32; // [rsp+98h] [rbp-50h]
long long *v33; // [rsp+A0h] [rbp-48h]
long long v34; // [rsp+A8h] [rbp-40h]
long long v35; // [rsp+B0h] [rbp-38h]
v35 = a3;
v34 = a2;
v32 = a1;
v4 = 0LL;
v30 = 0LL;
v31 = 0LL;
v5 = *a4;
v33 = a4;
if ( a4[1] != v5 )
{
v6 = &v27;
v7 = 0LL;
do
{
v8 = v6;
v9 = *(_QWORD *)(v35 + 8);
v20 = v22;
std::string::_M_construct<char *>(&v20, *(_BYTE **)v35, *(_QWORD *)v35 + v9);
v10 = "-";
if ( !v9 )
v10 = "alternative-";
std::string::append(&v20, v10);
v11 = 1;
v6 = v8;
if ( v7 >= 0xA )
{
v11 = 4;
v12 = v7;
while ( 1 )
{
if ( v12 <= 0x63 )
{
v11 -= 2;
goto LABEL_14;
}
if ( v12 <= 0x3E7 )
break;
if ( v12 < 0x2710 )
goto LABEL_14;
v11 += 4;
v13 = v12 <= 0x1869F;
v12 /= 0x2710uLL;
if ( v13 )
{
v11 -= 3;
goto LABEL_14;
}
}
--v11;
}
LABEL_14:
v25 = v8;
std::string::_M_construct(&v25, v11, 0LL);
std::__detail::__to_chars_10_impl<unsigned long>((char *)v25, v26, v7);
v14 = 15LL;
if ( v20 != v22 )
v14 = v22[0];
if ( v26 + v21 <= v14 )
goto LABEL_20;
v15 = 15LL;
if ( v25 != v8 )
v15 = v27;
if ( v26 + v21 <= v15 )
v16 = (void **)std::string::replace(&v25, 0LL, 0LL, v20, v21);
else
LABEL_20:
v16 = (void **)std::string::_M_append(&v20, v25, v26);
v23[0] = &v24;
v17 = (__m128d *)(v16 + 2);
if ( *v16 == v16 + 2 )
{
v4 = *v17;
v24 = *v17;
}
else
{
v23[0] = *v16;
v24.m128d_f64[0] = v17->m128d_f64[0];
}
v23[1] = v16[1];
*v16 = v17;
v16[1] = 0LL;
LOBYTE(v17->m128d_f64[0]) = 0;
SchemaConverter::visit(v28, v34, (unsigned __int8 *)(16 * v7 + v5), v23, v4);
std::vector<std::string>::emplace_back<std::string>((long long)&v30, (long long)v28);
if ( v28[0] != v29 )
operator delete(v28[0], v29[0] + 1LL);
if ( v23[0] != &v24 )
operator delete(v23[0], *(_QWORD *)&v24.m128d_f64[0] + 1LL);
if ( v25 != v8 )
operator delete(v25, v27 + 1);
if ( v20 != v22 )
operator delete(v20, v22[0] + 1LL);
++v7;
v5 = *v33;
}
while ( v7 < (v33[1] - *v33) >> 4 );
}
v28[0] = v29;
std::string::_M_construct<char const*>(v28, " | ", (long long)"");
v18 = v32;
string_join(v32, &v30, v28);
if ( v28[0] != v29 )
operator delete(v28[0], v29[0] + 1LL);
std::vector<std::string>::~vector(&v30);
return v18;
}
| _generate_union_rule:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV qword ptr [RSP + 0xb0],RDX
MOV qword ptr [RSP + 0xa8],RSI
MOV qword ptr [RSP + 0x98],RDI
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x80],XMM0
MOV qword ptr [RSP + 0x90],0x0
MOV R12,qword ptr [RCX]
MOV qword ptr [RSP + 0xa0],RCX
CMP qword ptr [RCX + 0x8],R12
JZ 0x001e8d1e
LEA RBP,[RSP + 0x50]
XOR R13D,R13D
LEA R14,[RSP + 0x60]
LAB_001e8af2:
MOV RBX,RBP
MOV RCX,qword ptr [RSP + 0xb0]
MOV RBP,qword ptr [RCX + 0x8]
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP],RAX
MOV RSI,qword ptr [RCX]
LEA RDX,[RSI + RBP*0x1]
LAB_001e8b11:
MOV R15,RSP
MOV RDI,R15
CALL 0x0012665e
TEST RBP,RBP
LEA RSI,[0x21ceb7]
LEA RAX,[0x21cf60]
CMOVZ RSI,RAX
LAB_001e8b31:
MOV RDI,R15
CALL 0x0011e860
MOV ESI,0x1
CMP R13,0xa
MOV RBP,RBX
JC 0x001e8b96
MOV ESI,0x4
MOV RCX,R13
MOV RDI,0x346dc5d63886594b
LAB_001e8b59:
CMP RCX,0x63
JBE 0x001e8b8f
CMP RCX,0x3e7
JBE 0x001e8b94
CMP RCX,0x2710
JC 0x001e8b96
MOV RAX,RCX
MUL RDI
SHR RDX,0xb
ADD ESI,0x4
CMP RCX,0x1869f
MOV RCX,RDX
JA 0x001e8b59
ADD ESI,-0x3
JMP 0x001e8b96
LAB_001e8b8f:
ADD ESI,-0x2
JMP 0x001e8b96
LAB_001e8b94:
DEC ESI
LAB_001e8b96:
MOV ESI,ESI
MOV qword ptr [RSP + 0x40],RBP
LAB_001e8b9d:
LEA RDI,[RSP + 0x40]
XOR EDX,EDX
CALL 0x0011de30
MOV RDI,qword ptr [RSP + 0x40]
MOV ESI,dword ptr [RSP + 0x48]
MOV RDX,R13
CALL 0x00145891
MOV RCX,qword ptr [RSP]
MOV ESI,0xf
LEA RAX,[RSP + 0x10]
CMP RCX,RAX
JZ 0x001e8bd2
MOV RSI,qword ptr [RSP + 0x10]
LAB_001e8bd2:
MOV R8,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x48]
LEA RAX,[RDX + R8*0x1]
CMP RAX,RSI
JBE 0x001e8bfb
MOV ESI,0xf
CMP qword ptr [RSP + 0x40],RBP
JZ 0x001e8bf6
MOV RSI,qword ptr [RSP + 0x50]
LAB_001e8bf6:
CMP RAX,RSI
JBE 0x001e8c0a
LAB_001e8bfb:
MOV RSI,qword ptr [RSP + 0x40]
LAB_001e8c00:
MOV RDI,RSP
CALL 0x0011d310
JMP 0x001e8c18
LAB_001e8c0a:
LEA RDI,[RSP + 0x40]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0011dde0
LAB_001e8c18:
LEA RSI,[RSP + 0x30]
MOV qword ptr [RSP + 0x20],RSI
MOV RDX,qword ptr [RAX]
LEA RCX,[RAX + 0x10]
CMP RDX,RCX
JZ 0x001e8c3d
MOV qword ptr [RSP + 0x20],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x30],RDX
JMP 0x001e8c43
LAB_001e8c3d:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RSI],XMM0
LAB_001e8c43:
MOV RDX,RAX
ADD RDX,0x8
MOV RSI,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RAX],RCX
MOV RAX,R13
SHL RAX,0x4
ADD R12,RAX
MOV qword ptr [RDX],0x0
MOV byte ptr [RCX],0x0
LAB_001e8c6a:
MOV RDI,R14
MOV RSI,qword ptr [RSP + 0xa8]
MOV RDX,R12
LEA RCX,[RSP + 0x20]
CALL 0x001e5cf0
LAB_001e8c82:
LEA RDI,[RSP + 0x80]
MOV RSI,R14
LEA R12,[RSP + 0x30]
CALL 0x001869a0
MOV RDI,qword ptr [RSP + 0x60]
LEA RAX,[RSP + 0x70]
CMP RDI,RAX
JZ 0x001e8cb3
MOV RSI,qword ptr [RSP + 0x70]
INC RSI
CALL 0x0011dc40
LAB_001e8cb3:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R12
JZ 0x001e8cca
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011dc40
LAB_001e8cca:
MOV RDI,qword ptr [RSP + 0x40]
CMP RDI,RBP
JZ 0x001e8ce1
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x0011dc40
LAB_001e8ce1:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x001e8cfc
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011dc40
LAB_001e8cfc:
INC R13
MOV RAX,qword ptr [RSP + 0xa0]
MOV R12,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x8]
SUB RAX,R12
SAR RAX,0x4
CMP R13,RAX
JC 0x001e8af2
LAB_001e8d1e:
LEA RBX,[RSP + 0x70]
MOV qword ptr [RBX + -0x10],RBX
LAB_001e8d27:
LEA RSI,[0x21d117]
LEA RDX,[0x21d11a]
LEA RDI,[RSP + 0x60]
CALL 0x0012698a
LAB_001e8d3f:
LEA RSI,[RSP + 0x80]
LEA RDX,[RSP + 0x60]
MOV R14,qword ptr [RSP + 0x98]
MOV RDI,R14
CALL 0x001966b4
LAB_001e8d5c:
MOV RDI,qword ptr [RSP + 0x60]
CMP RDI,RBX
JZ 0x001e8d73
MOV RSI,qword ptr [RSP + 0x70]
INC RSI
CALL 0x0011dc40
LAB_001e8d73:
LEA RDI,[RSP + 0x80]
CALL 0x001261ce
MOV RAX,R14
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* SchemaConverter::_generate_union_rule(std::__cxx11::string const&,
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> > > const&) */
vector * SchemaConverter::_generate_union_rule(string *param_1,vector *param_2)
{
long *plVar1;
ulong uVar2;
bool bVar3;
string *psVar4;
char cVar5;
int8 *puVar6;
long *in_RCX;
ulong uVar7;
long *in_RDX;
char cVar8;
ulong uVar9;
ulong *local_e8;
long local_e0;
ulong local_d8 [2];
long *local_c8;
int8 local_c0;
long local_b8;
int8 uStack_b0;
ulong *local_a8;
uint local_a0;
int4 uStack_9c;
ulong local_98 [2];
long *local_88 [2];
long local_78 [2];
int8 local_68;
int8 uStack_60;
int8 local_58;
string *local_50;
long *local_48;
vector *local_40;
long *local_38;
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
local_50 = param_1;
local_40 = param_2;
if (in_RCX[1] != *in_RCX) {
uVar9 = 0;
local_48 = in_RCX;
local_38 = in_RDX;
do {
local_e8 = local_d8;
/* try { // try from 001e8b11 to 001e8b1b has its CatchHandler @ 001e8daf */
std::__cxx11::string::_M_construct<char*>(&local_e8,*local_38,*local_38 + local_38[1]);
/* try { // try from 001e8b31 to 001e8b38 has its CatchHandler @ 001e8db4 */
std::__cxx11::string::append((char *)&local_e8);
cVar8 = '\x01';
if (9 < uVar9) {
uVar7 = uVar9;
cVar5 = '\x04';
do {
cVar8 = cVar5;
if (uVar7 < 100) {
cVar8 = cVar8 + -2;
goto LAB_001e8b96;
}
if (uVar7 < 1000) {
cVar8 = cVar8 + -1;
goto LAB_001e8b96;
}
if (uVar7 < 10000) goto LAB_001e8b96;
bVar3 = 99999 < uVar7;
uVar7 = uVar7 / 10000;
cVar5 = cVar8 + '\x04';
} while (bVar3);
cVar8 = cVar8 + '\x01';
}
LAB_001e8b96:
/* try { // try from 001e8b9d to 001e8ba8 has its CatchHandler @ 001e8db6 */
local_a8 = local_98;
std::__cxx11::string::_M_construct((ulong)&local_a8,cVar8);
std::__detail::__to_chars_10_impl<unsigned_long>((char *)local_a8,local_a0,uVar9);
uVar7 = 0xf;
if (local_e8 != local_d8) {
uVar7 = local_d8[0];
}
uVar2 = CONCAT44(uStack_9c,local_a0) + local_e0;
if (uVar7 < uVar2) {
uVar7 = 0xf;
if (local_a8 != local_98) {
uVar7 = local_98[0];
}
if (uVar7 < uVar2) goto LAB_001e8bfb;
puVar6 = (int8 *)
std::__cxx11::string::replace((ulong)&local_a8,0,(char *)0x0,(ulong)local_e8);
}
else {
LAB_001e8bfb:
/* try { // try from 001e8c00 to 001e8c17 has its CatchHandler @ 001e8dbb */
puVar6 = (int8 *)std::__cxx11::string::_M_append((char *)&local_e8,(ulong)local_a8);
}
local_c8 = &local_b8;
plVar1 = puVar6 + 2;
if ((long *)*puVar6 == plVar1) {
local_b8 = *plVar1;
uStack_b0 = puVar6[3];
}
else {
local_b8 = *plVar1;
local_c8 = (long *)*puVar6;
}
local_c0 = puVar6[1];
*puVar6 = plVar1;
puVar6[1] = 0;
*(int1 *)plVar1 = 0;
/* try { // try from 001e8c6a to 001e8c81 has its CatchHandler @ 001e8dc0 */
visit((basic_json *)local_88,(string *)local_40);
/* try { // try from 001e8c82 to 001e8c96 has its CatchHandler @ 001e8dc5 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
emplace_back<std::__cxx11::string>
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_68,
(string *)local_88);
if (local_88[0] != local_78) {
operator_delete(local_88[0],local_78[0] + 1);
}
if (local_c8 != &local_b8) {
operator_delete(local_c8,local_b8 + 1);
}
if (local_a8 != local_98) {
operator_delete(local_a8,local_98[0] + 1);
}
if (local_e8 != local_d8) {
operator_delete(local_e8,local_d8[0] + 1);
}
uVar9 = uVar9 + 1;
} while (uVar9 < (ulong)(local_48[1] - *local_48 >> 4));
}
/* try { // try from 001e8d27 to 001e8d3e has its CatchHandler @ 001e8dad */
local_88[0] = local_78;
std::__cxx11::string::_M_construct<char_const*>(local_88,&DAT_0021d117,&DAT_0021d11a);
psVar4 = local_50;
/* try { // try from 001e8d3f to 001e8d5b has its CatchHandler @ 001e8d95 */
string_join((vector *)local_50,(string *)&local_68);
if (local_88[0] != local_78) {
operator_delete(local_88[0],local_78[0] + 1);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_68);
return (vector *)psVar4;
}
| |
36,277 | YAML::convert<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::encode(aimrt::runtime::core::logger::ConsoleLoggerBackend::Options const&) | aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/logger/console_logger_backend.cc | static Node encode(const Options& rhs) {
Node node;
node["color"] = rhs.print_color;
node["module_filter"] = rhs.module_filter;
node["log_executor_name"] = rhs.log_executor_name;
node["pattern"] = rhs.pattern;
return node;
} | O3 | cpp | YAML::convert<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::encode(aimrt::runtime::core::logger::ConsoleLoggerBackend::Options const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movb $0x1, (%rdi)
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb $0x0, 0x18(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movq %rax, 0x38(%rdi)
leaq 0xfd2f5(%rip), %rdx # 0x1f77e5
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0xa1a06
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0xa4984
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0xfa519
callq 0x81a00
leaq 0x20(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0xfa535
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x82190
leaq 0xf92d7(%rip), %rdx # 0x1f3813
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0xa18e2
leaq 0x8(%rsp), %rdi
callq 0x9d0a4
movq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0x9d4b0
leaq 0x8(%r14), %rsi
movq (%r15), %rax
movq (%rax), %rdi
callq 0x1162ba
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0xfa57e
callq 0x81a00
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0xfa595
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x82190
leaq 0xf9285(%rip), %rdx # 0x1f3821
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0xc5778
leaq 0x8(%rsp), %rdi
callq 0x9d0a4
movq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0x9d4b0
leaq 0x28(%r14), %rsi
movq (%r15), %rax
movq (%rax), %rdi
callq 0x1162ba
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0xfa5de
callq 0x81a00
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0xfa5f5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x82190
leaq 0xf9237(%rip), %rdx # 0x1f3833
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0xae548
leaq 0x8(%rsp), %rdi
callq 0x9d0a4
movq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0x9d4b0
addq $0x48, %r14
movq (%r15), %rax
movq (%rax), %rdi
movq %r14, %rsi
callq 0x1162ba
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0xfa641
callq 0x81a00
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0xfa658
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x82190
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xfa66f
jmp 0xfa66f
jmp 0xfa66f
jmp 0xfa678
movq %rax, %r14
jmp 0xfa685
jmp 0xfa678
jmp 0xfa678
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x9c7d4
movq %rbx, %rdi
callq 0x9c7d4
movq %r14, %rdi
callq 0x83b70
nopl (%rax)
| _ZN4YAML7convertIN5aimrt7runtime4core6logger20ConsoleLoggerBackend7OptionsEE6encodeERKS6_:
push r15
push r14
push r12
push rbx
sub rsp, 48h
mov r14, rsi
mov rbx, rdi
mov byte ptr [rdi], 1
lea rax, [rdi+18h]
mov [rdi+8], rax
xor eax, eax
mov [rdi+10h], rax
mov byte ptr [rdi+18h], 0
xorps xmm0, xmm0
movups xmmword ptr [rdi+28h], xmm0
mov [rdi+38h], rax
lea rdx, aColor; "color"
lea rdi, [rsp+68h+var_60]
mov rsi, rbx
call _ZN4YAML4NodeixIA6_cEES0_RKT_; YAML::Node::operator[]<char [6]>(char [6] const&)
lea rdi, [rsp+68h+var_60]; this
mov rsi, r14
call _ZN4YAML4Node6AssignIbEEvRKT_; YAML::Node::Assign<bool>(bool const&)
mov rdi, [rsp+68h+var_30]
test rdi, rdi
jz short loc_FA519
call __ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_FA519:
lea r12, [rsp+68h+var_48]
mov rdi, [r12-10h]; void *
cmp rdi, r12
jz short loc_FA535
mov rsi, [rsp+68h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_FA535:
lea rdx, aModuleFilter; "module_filter"
lea rdi, [rsp+68h+var_60]
mov rsi, rbx
call _ZN4YAML4NodeixIA14_cEES0_RKT_; YAML::Node::operator[]<char [14]>(char [14] const&)
lea rdi, [rsp+68h+var_60]; this
call _ZNK4YAML4Node16EnsureNodeExistsEv; YAML::Node::EnsureNodeExists(void)
mov r15, [rsp+68h+var_28]
mov rdi, r15; this
call _ZN4YAML6detail4node12mark_definedEv; YAML::detail::node::mark_defined(void)
lea rsi, [r14+8]
mov rax, [r15]
mov rdi, [rax]
call _ZN4YAML6detail9node_data10set_scalarERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::detail::node_data::set_scalar(std::string const&)
mov rdi, [rsp+68h+var_30]
test rdi, rdi
jz short loc_FA57E
call __ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_FA57E:
mov rdi, [rsp+68h+var_58]; void *
cmp rdi, r12
jz short loc_FA595
mov rsi, [rsp+68h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_FA595:
lea rdx, aLogExecutorNam; "log_executor_name"
lea rdi, [rsp+68h+var_60]
mov rsi, rbx
call _ZN4YAML4NodeixIA18_cEES0_RKT_; YAML::Node::operator[]<char [18]>(char [18] const&)
lea rdi, [rsp+68h+var_60]; this
call _ZNK4YAML4Node16EnsureNodeExistsEv; YAML::Node::EnsureNodeExists(void)
mov r15, [rsp+68h+var_28]
mov rdi, r15; this
call _ZN4YAML6detail4node12mark_definedEv; YAML::detail::node::mark_defined(void)
lea rsi, [r14+28h]
mov rax, [r15]
mov rdi, [rax]
call _ZN4YAML6detail9node_data10set_scalarERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::detail::node_data::set_scalar(std::string const&)
mov rdi, [rsp+68h+var_30]
test rdi, rdi
jz short loc_FA5DE
call __ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_FA5DE:
mov rdi, [rsp+68h+var_58]; void *
cmp rdi, r12
jz short loc_FA5F5
mov rsi, [rsp+68h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_FA5F5:
lea rdx, aPattern; "pattern"
lea rdi, [rsp+68h+var_60]
mov rsi, rbx
call _ZN4YAML4NodeixIA8_cEES0_RKT_; YAML::Node::operator[]<char [8]>(char [8] const&)
lea rdi, [rsp+68h+var_60]; this
call _ZNK4YAML4Node16EnsureNodeExistsEv; YAML::Node::EnsureNodeExists(void)
mov r15, [rsp+68h+var_28]
mov rdi, r15; this
call _ZN4YAML6detail4node12mark_definedEv; YAML::detail::node::mark_defined(void)
add r14, 48h ; 'H'
mov rax, [r15]
mov rdi, [rax]
mov rsi, r14
call _ZN4YAML6detail9node_data10set_scalarERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::detail::node_data::set_scalar(std::string const&)
mov rdi, [rsp+68h+var_30]
test rdi, rdi
jz short loc_FA641
call __ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_FA641:
mov rdi, [rsp+68h+var_58]; void *
cmp rdi, r12
jz short loc_FA658
mov rsi, [rsp+68h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_FA658:
mov rax, rbx
add rsp, 48h
pop rbx
pop r12
pop r14
pop r15
retn
jmp short loc_FA66F
jmp short loc_FA66F
jmp short loc_FA66F
jmp short loc_FA678
loc_FA66F:
mov r14, rax
jmp short loc_FA685
jmp short loc_FA678
jmp short $+2
loc_FA678:
mov r14, rax
lea rdi, [rsp+arg_0]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
loc_FA685:
mov rdi, rbx; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
mov rdi, r14
call __Unwind_Resume
| long long YAML::convert<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::encode(
long long a1,
_BYTE *a2)
{
YAML::detail::node *v2; // r15
YAML::detail::node *v3; // r15
YAML::detail::node *v4; // r15
YAML::detail::memory **v6; // [rsp+8h] [rbp-60h] BYREF
void *v7; // [rsp+10h] [rbp-58h]
_QWORD v8[3]; // [rsp+20h] [rbp-48h] BYREF
long long v9; // [rsp+38h] [rbp-30h]
YAML::detail::node *v10; // [rsp+40h] [rbp-28h]
*(_BYTE *)a1 = 1;
*(_QWORD *)(a1 + 8) = a1 + 24;
*(_QWORD *)(a1 + 16) = 0LL;
*(_BYTE *)(a1 + 24) = 0;
*(_OWORD *)(a1 + 40) = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
YAML::Node::operator[]<char [6]>((long long)&v6, a1);
YAML::Node::Assign<bool>((YAML::Node *)&v6, a2);
if ( v9 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v9);
if ( v7 != v8 )
operator delete(v7, v8[0] + 1LL);
YAML::Node::operator[]<char [14]>((long long)&v6, a1);
YAML::Node::EnsureNodeExists(&v6);
v2 = v10;
YAML::detail::node::mark_defined(v10);
YAML::detail::node_data::set_scalar(**(_QWORD **)v2, a2 + 8);
if ( v9 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v9);
if ( v7 != v8 )
operator delete(v7, v8[0] + 1LL);
YAML::Node::operator[]<char [18]>((long long)&v6, a1);
YAML::Node::EnsureNodeExists(&v6);
v3 = v10;
YAML::detail::node::mark_defined(v10);
YAML::detail::node_data::set_scalar(**(_QWORD **)v3, a2 + 40);
if ( v9 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v9);
if ( v7 != v8 )
operator delete(v7, v8[0] + 1LL);
YAML::Node::operator[]<char [8]>((long long)&v6, a1);
YAML::Node::EnsureNodeExists(&v6);
v4 = v10;
YAML::detail::node::mark_defined(v10);
YAML::detail::node_data::set_scalar(**(_QWORD **)v4, a2 + 72);
if ( v9 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v9);
if ( v7 != v8 )
operator delete(v7, v8[0] + 1LL);
return a1;
}
| encode:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R14,RSI
MOV RBX,RDI
MOV byte ptr [RDI],0x1
LEA RAX,[RDI + 0x18]
MOV qword ptr [RDI + 0x8],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x10],RAX
MOV byte ptr [RDI + 0x18],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOV qword ptr [RDI + 0x38],RAX
LAB_001fa4e9:
LEA RDX,[0x2f77e5]
LEA RDI,[RSP + 0x8]
MOV RSI,RBX
CALL 0x001a1a06
LAB_001fa4fd:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x001a4984
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x001fa519
CALL 0x00181a00
LAB_001fa519:
LEA R12,[RSP + 0x20]
MOV RDI,qword ptr [R12 + -0x10]
CMP RDI,R12
JZ 0x001fa535
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x00182190
LAB_001fa535:
LEA RDX,[0x2f3813]
LEA RDI,[RSP + 0x8]
MOV RSI,RBX
CALL 0x001a18e2
LAB_001fa549:
LEA RDI,[RSP + 0x8]
CALL 0x0019d0a4
MOV R15,qword ptr [RSP + 0x40]
MOV RDI,R15
CALL 0x0019d4b0
LEA RSI,[R14 + 0x8]
MOV RAX,qword ptr [R15]
MOV RDI,qword ptr [RAX]
CALL 0x002162ba
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x001fa57e
CALL 0x00181a00
LAB_001fa57e:
MOV RDI,qword ptr [RSP + 0x10]
CMP RDI,R12
JZ 0x001fa595
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x00182190
LAB_001fa595:
LEA RDX,[0x2f3821]
LEA RDI,[RSP + 0x8]
MOV RSI,RBX
CALL 0x001c5778
LAB_001fa5a9:
LEA RDI,[RSP + 0x8]
CALL 0x0019d0a4
MOV R15,qword ptr [RSP + 0x40]
MOV RDI,R15
CALL 0x0019d4b0
LEA RSI,[R14 + 0x28]
MOV RAX,qword ptr [R15]
MOV RDI,qword ptr [RAX]
CALL 0x002162ba
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x001fa5de
CALL 0x00181a00
LAB_001fa5de:
MOV RDI,qword ptr [RSP + 0x10]
CMP RDI,R12
JZ 0x001fa5f5
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x00182190
LAB_001fa5f5:
LEA RDX,[0x2f3833]
LEA RDI,[RSP + 0x8]
MOV RSI,RBX
CALL 0x001ae548
LAB_001fa609:
LEA RDI,[RSP + 0x8]
CALL 0x0019d0a4
MOV R15,qword ptr [RSP + 0x40]
MOV RDI,R15
CALL 0x0019d4b0
ADD R14,0x48
MOV RAX,qword ptr [R15]
MOV RDI,qword ptr [RAX]
MOV RSI,R14
CALL 0x002162ba
LAB_001fa632:
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x001fa641
CALL 0x00181a00
LAB_001fa641:
MOV RDI,qword ptr [RSP + 0x10]
CMP RDI,R12
JZ 0x001fa658
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x00182190
LAB_001fa658:
MOV RAX,RBX
ADD RSP,0x48
POP RBX
POP R12
POP R14
POP R15
RET
|
/* YAML::convert<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::encode(aimrt::runtime::core::logger::ConsoleLoggerBackend::Options
const&) */
convert<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options> * __thiscall
YAML::convert<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::encode
(convert<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options> *this,
Options *param_1)
{
node *pnVar1;
Node local_60 [8];
long *local_58;
long local_48 [3];
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_30;
node *local_28;
*this = (convert<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>)0x1;
*(convert<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options> **)(this + 8) = this + 0x18
;
*(int8 *)(this + 0x10) = 0;
this[0x18] = (convert<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>)0x0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
/* try { // try from 001fa4e9 to 001fa4fc has its CatchHandler @ 001fa66f */
Node::operator[]<char[6]>((char *)local_60);
/* try { // try from 001fa4fd to 001fa509 has its CatchHandler @ 001fa66d */
Node::Assign<bool>(local_60,(bool *)param_1);
if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30);
}
if (local_58 != local_48) {
operator_delete(local_58,local_48[0] + 1);
}
/* try { // try from 001fa535 to 001fa548 has its CatchHandler @ 001fa66b */
Node::operator[]<char[14]>((char *)local_60);
/* try { // try from 001fa549 to 001fa56e has its CatchHandler @ 001fa678 */
Node::EnsureNodeExists(local_60);
pnVar1 = local_28;
detail::node::mark_defined(local_28);
detail::node_data::set_scalar((node_data *)**(int8 **)pnVar1,(string *)(param_1 + 8));
if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30);
}
if (local_58 != local_48) {
operator_delete(local_58,local_48[0] + 1);
}
/* try { // try from 001fa595 to 001fa5a8 has its CatchHandler @ 001fa669 */
Node::operator[]<char[18]>((char *)local_60);
/* try { // try from 001fa5a9 to 001fa5ce has its CatchHandler @ 001fa676 */
Node::EnsureNodeExists(local_60);
pnVar1 = local_28;
detail::node::mark_defined(local_28);
detail::node_data::set_scalar((node_data *)**(int8 **)pnVar1,(string *)(param_1 + 0x28));
if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30);
}
if (local_58 != local_48) {
operator_delete(local_58,local_48[0] + 1);
}
/* try { // try from 001fa5f5 to 001fa608 has its CatchHandler @ 001fa667 */
Node::operator[]<char[8]>((char *)local_60);
/* try { // try from 001fa609 to 001fa631 has its CatchHandler @ 001fa674 */
Node::EnsureNodeExists(local_60);
detail::node::mark_defined(local_28);
detail::node_data::set_scalar((node_data *)**(int8 **)local_28,(string *)(param_1 + 0x48));
if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30);
}
if (local_58 != local_48) {
operator_delete(local_58,local_48[0] + 1);
}
return this;
}
| |
36,278 | minja::Parser::unexpected(minja::TemplateToken const&) const | monkey531[P]llama/common/./minja.hpp | std::runtime_error unexpected(const TemplateToken & token) const {
return std::runtime_error("Unexpected " + TemplateToken::typeToString(token.type)
+ error_location_suffix(*template_str, token.location.pos));
} | O2 | cpp | minja::Parser::unexpected(minja::TemplateToken const&) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl 0x8(%rdx), %esi
leaq 0x68(%rsp), %r12
movq %r12, %rdi
callq 0x55a9c
leaq 0x496be(%rip), %rsi # 0x9ed28
leaq 0x28(%rsp), %rdi
movq %r12, %rdx
callq 0x30398
movq (%r15), %rsi
movq 0x20(%r14), %rdx
leaq 0x8(%rsp), %rdi
callq 0x257bb
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x40762
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x20aa0
leaq 0x48(%rsp), %rdi
callq 0x20d78
leaq 0x8(%rsp), %rdi
callq 0x20d78
leaq 0x28(%rsp), %rdi
callq 0x20d78
leaq 0x68(%rsp), %rdi
callq 0x20d78
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x20d78
jmp 0x556f5
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20d78
jmp 0x55704
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20d78
jmp 0x55713
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x20d78
movq %rbx, %rdi
callq 0x20b90
| _ZNK5minja6Parser10unexpectedERKNS_13TemplateTokenE:
push r15
push r14
push r12
push rbx
sub rsp, 88h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov esi, [rdx+8]
lea r12, [rsp+0A8h+var_40]
mov rdi, r12
call _ZN5minja13TemplateToken12typeToStringB5cxx11ENS0_4TypeE; minja::TemplateToken::typeToString(minja::TemplateToken::Type)
lea rsi, aUnexpected_0; "Unexpected "
lea rdi, [rsp+0A8h+var_80]
mov rdx, r12
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov rsi, [r15]
mov rdx, [r14+20h]
lea rdi, [rsp+0A8h+var_A0]
call _ZN5minjaL21error_location_suffixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm; minja::error_location_suffix(std::string const&,ulong)
lea rdi, [rsp+0A8h+var_60]
lea rsi, [rsp+0A8h+var_80]
lea rdx, [rsp+0A8h+var_A0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
lea rsi, [rsp+0A8h+var_60]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
lea rdi, [rsp+0A8h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 88h
pop rbx
pop r12
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_556F5
mov rbx, rax
loc_556F5:
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_55704
mov rbx, rax
loc_55704:
lea rdi, [rsp+arg_20]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_55713
mov rbx, rax
loc_55713:
lea rdi, [rsp+arg_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::unexpected(minja::Parser *this, long long **a2, long long a3)
{
_QWORD v5[4]; // [rsp+8h] [rbp-A0h] BYREF
_QWORD v6[4]; // [rsp+28h] [rbp-80h] BYREF
_BYTE v7[32]; // [rsp+48h] [rbp-60h] BYREF
_BYTE v8[64]; // [rsp+68h] [rbp-40h] BYREF
minja::TemplateToken::typeToString[abi:cxx11](v8, *(unsigned int *)(a3 + 8));
std::operator+<char>((long long)v6, (long long)"Unexpected ", (long long)v8);
minja::error_location_suffix((long long)v5, *a2, *(_QWORD *)(a3 + 32));
std::operator+<char>((long long)v7, v6, v5);
std::runtime_error::runtime_error(this, v7);
std::string::~string(v7);
std::string::~string(v5);
std::string::~string(v6);
std::string::~string(v8);
return this;
}
| unexpected:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV ESI,dword ptr [RDX + 0x8]
LEA R12,[RSP + 0x68]
MOV RDI,R12
CALL 0x00155a9c
LAB_00155663:
LEA RSI,[0x19ed28]
LEA RDI,[RSP + 0x28]
MOV RDX,R12
CALL 0x00130398
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R14 + 0x20]
LAB_0015567e:
LEA RDI,[RSP + 0x8]
CALL 0x001257bb
LAB_00155688:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x00140762
LAB_0015569c:
LEA RSI,[RSP + 0x48]
MOV RDI,RBX
CALL 0x00120aa0
LAB_001556a9:
LEA RDI,[RSP + 0x48]
CALL 0x00120d78
LEA RDI,[RSP + 0x8]
CALL 0x00120d78
LEA RDI,[RSP + 0x28]
CALL 0x00120d78
LEA RDI,[RSP + 0x68]
CALL 0x00120d78
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R12
POP R14
POP R15
RET
|
/* minja::Parser::unexpected(minja::TemplateToken const&) const */
TemplateToken * minja::Parser::unexpected(TemplateToken *param_1)
{
long in_RDX;
int8 *in_RSI;
minja local_a0 [32];
string local_80 [32];
string local_60 [32];
TemplateToken local_40 [32];
TemplateToken::typeToString_abi_cxx11_(local_40,*(int4 *)(in_RDX + 8));
/* try { // try from 00155663 to 00155676 has its CatchHandler @ 00155710 */
std::operator+((char *)local_80,(string *)"Unexpected ");
/* try { // try from 0015567e to 00155687 has its CatchHandler @ 00155701 */
error_location_suffix(local_a0,(string *)*in_RSI,*(ulong *)(in_RDX + 0x20));
/* try { // try from 00155688 to 0015569b has its CatchHandler @ 001556f2 */
std::operator+(local_60,local_80);
/* try { // try from 0015569c to 001556a8 has its CatchHandler @ 001556e3 */
std::runtime_error::runtime_error((runtime_error *)param_1,local_60);
std::__cxx11::string::~string(local_60);
std::__cxx11::string::~string((string *)local_a0);
std::__cxx11::string::~string(local_80);
std::__cxx11::string::~string((string *)local_40);
return param_1;
}
| |
36,279 | unsigned long nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&) | monkey531[P]llama/common/json.hpp | constexpr value_t type() const noexcept
{
return m_data.m_type;
} | O1 | cpp | unsigned long nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp # imm = 0x108
movzbl (%rdi), %r12d
cmpq $0x9, %r12
ja 0x7b908
movq %rdi, %r14
leaq 0x354fd(%rip), %rax # 0xb0a8c
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl %r12d, %eax
shll $0x6, %eax
movl %r12d, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
jmp 0x7b842
movq %r14, %rdi
callq 0x7ba34
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x21538
jmp 0x7b802
movl $0x9e3779b9, %r15d # imm = 0x9E3779B9
movq %r14, %rdi
callq 0x7b97e
movl %r12d, %ecx
shll $0x6, %ecx
movl %r12d, %ebx
shrl $0x2, %ebx
orl %ecx, %ebx
addq 0x8(%rax), %rbx
addq %r15, %rbx
subq (%rax), %rbx
xorq %r12, %rbx
movq %r14, %rdi
callq 0x7b97e
movzbl 0x20(%rax), %eax
movq %rbx, %rcx
shlq $0x6, %rcx
orq %rax, %rcx
movq %rbx, %r12
shrq $0x2, %r12
addq %r15, %r12
addq %rcx, %r12
xorq %rbx, %r12
movq %r14, %rdi
callq 0x7b97e
movq 0x18(%rax), %rcx
addq %r15, %rcx
leaq -0x1(%r15), %rdx
cmpb $0x0, 0x20(%rax)
cmovneq %rcx, %rdx
movq %r12, %rax
shlq $0x6, %rax
addq %rdx, %rax
movq %r12, %rbx
shrq $0x2, %rbx
addq %rax, %rbx
xorq %r12, %rbx
movq %r14, %rdi
callq 0x7b97e
movq (%rax), %rcx
movq 0x8(%rax), %rax
cmpq %rax, %rcx
je 0x7b88d
movzbl (%rcx), %edx
movq %rbx, %rsi
shlq $0x6, %rsi
movq %rbx, %rdi
shrq $0x2, %rdi
addq %r15, %rsi
addq %rdi, %rsi
addq %rdx, %rsi
xorq %rsi, %rbx
incq %rcx
jmp 0x7b655
movl $0x9e3779b9, %r15d # imm = 0x9E3779B9
movq %r14, %rdi
callq 0x4ef94
movq %rax, %rbx
movl %r12d, %eax
shll $0x6, %eax
movl %r12d, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
addq %r15, %rbx
addq %rcx, %rbx
xorq %r12, %rbx
leaq 0x78(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x53dfa
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x7f26e
leaq 0xe8(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x5419a
leaq 0x78(%rsp), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x7f26e
movq %r12, %rdi
leaq 0x78(%rsp), %rsi
callq 0x53ebe
testb %al, %al
jne 0x7b8a2
movq %r12, %rdi
callq 0x741e6
movq %r13, %rdi
movq %rax, %rsi
callq 0x21538
movq %rax, %r14
movq %r12, %rdi
callq 0x53afe
movq %rax, %rdi
callq 0x7b566
movq %rax, %rbp
movq %r12, %rdi
callq 0x53ab0
movq %rbx, %rax
shlq $0x6, %rax
movq %rbx, %rcx
shrq $0x2, %rcx
addq %r15, %rax
addq %rcx, %rax
addq %r14, %rax
xorq %rbx, %rax
movq %rax, %rcx
shlq $0x6, %rcx
movq %rax, %rbx
shrq $0x2, %rbx
addq %r15, %rcx
addq %rbp, %rbx
addq %rcx, %rbx
xorq %rax, %rbx
incq 0x28(%rsp)
jmp 0x7b6ec
movl $0x9e3779b9, %r13d # imm = 0x9E3779B9
movq %r14, %rdi
callq 0x4ef94
movq %rax, %r15
movl %r12d, %eax
shll $0x6, %eax
movl %r12d, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
addq %r13, %r15
addq %rcx, %r15
xorq %r12, %r15
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x53dfa
leaq 0x78(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x5419a
movq %rbx, %rdi
movq %r12, %rsi
callq 0x53ebe
testb %al, %al
je 0x7b8b8
movq %r15, %rbx
jmp 0x7b88d
leaq 0x8(%rsp), %rbx
movq $0x0, (%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7bb77
jmp 0x7b831
leaq 0x8(%rsp), %rbx
movb $0x0, (%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x45035
movzbl (%rbx), %eax
movl %r12d, %ecx
shll $0x6, %ecx
movl %r12d, %edx
shrl $0x2, %edx
orl %ecx, %edx
movl $0x9e3779b9, %ebx # imm = 0x9E3779B9
addq %rax, %rbx
jmp 0x7b887
leaq 0x8(%rsp), %rbx
movq $0x0, (%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x43611
movl %r12d, %eax
shll $0x6, %eax
movl %r12d, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
addq (%rbx), %rcx
movl $0x9e3779b9, %ebx # imm = 0x9E3779B9
addq %rcx, %rbx
jmp 0x7b88a
leaq 0x8(%rsp), %rbx
movq $0x0, (%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x44c78
movsd (%rbx), %xmm0
leaq 0x8(%rsp), %rdi
callq 0x7b94c
movl %r12d, %ecx
shll $0x6, %ecx
movl %r12d, %edx
shrl $0x2, %edx
orl %ecx, %edx
addq %rax, %rdx
movl $0x9e3779b9, %ebx # imm = 0x9E3779B9
addq %rdx, %rbx
xorq %r12, %rbx
movq %rbx, %rax
addq $0x108, %rsp # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x78(%rsp), %rdi
callq 0x74254
leaq 0x8(%rsp), %rdi
callq 0x74254
jmp 0x7b88d
leaq 0x8(%rsp), %r14
leaq 0x78(%rsp), %r12
movq %r15, %rbx
movq %r14, %rdi
callq 0x53afe
movq %rax, %rdi
callq 0x7b566
shlq $0x6, %rbx
movq %r15, %rcx
shrq $0x2, %rcx
addq %r13, %rbx
addq %rcx, %rbx
addq %rax, %rbx
xorq %r15, %rbx
movq %r14, %rdi
callq 0x53ab0
movq %r14, %rdi
movq %r12, %rsi
callq 0x53ebe
movq %rbx, %r15
testb %al, %al
je 0x7b8c5
jmp 0x7b88d
leaq 0x36be3(%rip), %rdi # 0xb24f2
leaq 0x34056(%rip), %rdx # 0xaf96c
leaq 0x3541b(%rip), %rcx # 0xb0d38
movl $0x17d9, %esi # imm = 0x17D9
xorl %eax, %eax
callq 0x1ac70
jmp 0x7b92d
jmp 0x7b92d
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x74254
leaq 0x8(%rsp), %rdi
callq 0x74254
movq %rbx, %rdi
callq 0x1ad30
| _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 108h
movzx r12d, byte ptr [rdi]
cmp r12, 9; switch 10 cases
ja def_7B596; jumptable 000000000007B596 default case
mov r14, rdi
lea rax, jpt_7B596
movsxd rcx, ds:(jpt_7B596 - 0B0A8Ch)[rax+r12*4]
add rcx, rax
jmp rcx; switch jump
loc_7B598:
mov eax, r12d; jumptable 000000000007B596 cases 0,9
shl eax, 6
mov ecx, r12d
shr ecx, 2
or ecx, eax
jmp loc_7B842
loc_7B5AB:
mov rdi, r14; jumptable 000000000007B596 case 3
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRKS9_KSD_EET_RT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_ref_impl<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const &)
lea rdi, [rsp+138h+var_130]
mov rsi, rax
call _ZNKSt4hashINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclERKS5_; std::hash<std::string>::operator()(std::string const&)
jmp loc_7B802
loc_7B5C5:
mov r15d, 9E3779B9h; jumptable 000000000007B596 case 8
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_binary(void)
mov ecx, r12d
shl ecx, 6
mov ebx, r12d
shr ebx, 2
or ebx, ecx
add rbx, [rax+8]
add rbx, r15
sub rbx, [rax]
xor rbx, r12
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_binary(void)
movzx eax, byte ptr [rax+20h]
mov rcx, rbx
shl rcx, 6
or rcx, rax
mov r12, rbx
shr r12, 2
add r12, r15
add r12, rcx
xor r12, rbx
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_binary(void)
mov rcx, [rax+18h]
add rcx, r15
lea rdx, [r15-1]
cmp byte ptr [rax+20h], 0
cmovnz rdx, rcx
mov rax, r12
shl rax, 6
add rax, rdx
mov rbx, r12
shr rbx, 2
add rbx, rax
xor rbx, r12
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_binary(void)
mov rcx, [rax]
mov rax, [rax+8]
loc_7B655:
cmp rcx, rax
jz loc_7B88D
movzx edx, byte ptr [rcx]
mov rsi, rbx
shl rsi, 6
mov rdi, rbx
shr rdi, 2
add rsi, r15
add rsi, rdi
add rsi, rdx
xor rbx, rsi
inc rcx
jmp short loc_7B655
loc_7B680:
mov r15d, 9E3779B9h; jumptable 000000000007B596 case 1
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::size(void)
mov rbx, rax
mov eax, r12d
shl eax, 6
mov ecx, r12d
shr ecx, 2
or ecx, eax
add rbx, r15
add rbx, rcx
xor rbx, r12
lea r13, [rsp+138h+var_C0]
mov rdi, r13
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6cbeginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cbegin(void)
lea r12, [rsp+138h+var_130]
mov rdi, r12
mov rsi, r13
xor edx, edx
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESI_m; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>,ulong)
lea r13, [rsp+138h+var_50]
mov rdi, r13
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cend(void)
lea rdi, [rsp+138h+var_C0]
mov rsi, r13
xor edx, edx
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESI_m; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>,ulong)
loc_7B6EC:
mov rdi, r12
lea rsi, [rsp+138h+var_C0]
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_7B8A2
mov rdi, r12
call _ZNK8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3keyEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,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 _ZNKSt4hashINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclERKS5_; std::hash<std::string>::operator()(std::string const&)
mov r14, rax
mov rdi, r12
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, rax
call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rbp, rax
mov rdi, r12
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 rax, rbx
shl rax, 6
mov rcx, rbx
shr rcx, 2
add rax, r15
add rax, rcx
add rax, r14
xor rax, rbx
mov rcx, rax
shl rcx, 6
mov rbx, rax
shr rbx, 2
add rcx, r15
add rbx, rbp
add rbx, rcx
xor rbx, rax
inc [rsp+138h+var_110]
jmp loc_7B6EC
loc_7B770:
mov r13d, 9E3779B9h; jumptable 000000000007B596 case 2
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::size(void)
mov r15, rax
mov eax, r12d
shl eax, 6
mov ecx, r12d
shr ecx, 2
or ecx, eax
add r15, r13
add r15, rcx
xor r15, r12
lea rbx, [rsp+138h+var_130]
mov rdi, rbx
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6cbeginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cbegin(void)
lea r12, [rsp+138h+var_C0]
mov rdi, r12
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cend(void)
mov rdi, rbx
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
jz loc_7B8B8
mov rbx, r15
jmp loc_7B88D
loc_7B7D3:
lea rbx, [rsp+138h+var_130]; jumptable 000000000007B596 case 6
mov qword ptr [rbx], 0
mov rdi, r14
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEmTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
jmp short loc_7B831
loc_7B7EC:
lea rbx, [rsp+138h+var_130]; jumptable 000000000007B596 case 4
mov byte ptr [rbx], 0
mov rdi, r14
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEvRKT_RNSG_9boolean_tE; nlohmann::json_abi_v3_11_3::detail::from_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>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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>::boolean_t &)
movzx eax, byte ptr [rbx]
loc_7B802:
mov ecx, r12d
shl ecx, 6
mov edx, r12d
shr edx, 2
or edx, ecx
mov ebx, 9E3779B9h
add rbx, rax
jmp short loc_7B887
loc_7B81A:
lea rbx, [rsp+138h+var_130]; jumptable 000000000007B596 case 5
mov qword ptr [rbx], 0
mov rdi, r14
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
loc_7B831:
mov eax, r12d
shl eax, 6
mov ecx, r12d
shr ecx, 2
or ecx, eax
add rcx, [rbx]
loc_7B842:
mov ebx, 9E3779B9h
add rbx, rcx
jmp short loc_7B88A
loc_7B84C:
lea rbx, [rsp+138h+var_130]; jumptable 000000000007B596 case 7
mov qword ptr [rbx], 0
mov rdi, r14
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
movsd xmm0, qword ptr [rbx]
lea rdi, [rsp+138h+var_130]
call _ZNKSt4hashIdEclEd; std::hash<double>::operator()(double)
mov ecx, r12d
shl ecx, 6
mov edx, r12d
shr edx, 2
or edx, ecx
add rdx, rax
mov ebx, 9E3779B9h
loc_7B887:
add rbx, rdx
loc_7B88A:
xor rbx, r12
loc_7B88D:
mov rax, rbx
add rsp, 108h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7B8A2:
lea rdi, [rsp+138h+var_C0]
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value()
lea rdi, [rsp+138h+var_130]
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value()
jmp short loc_7B88D
loc_7B8B8:
lea r14, [rsp+138h+var_130]
lea r12, [rsp+138h+var_C0]
mov rbx, r15
loc_7B8C5:
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 rdi, rax
call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
shl rbx, 6
mov rcx, r15
shr rcx, 2
add rbx, r13
add rbx, rcx
add rbx, rax
xor rbx, r15
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, 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_
mov r15, rbx
test al, al
jz short loc_7B8C5
jmp short loc_7B88D
def_7B596:
lea rdi, aWorkspaceLlm4b_0; jumptable 000000000007B596 default case
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aFalse; "false"
mov esi, 17D9h
xor eax, eax
call _ggml_abort
jmp short loc_7B92D
jmp short $+2
loc_7B92D:
mov rbx, rax
lea rdi, [rsp+138h+var_C0]
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value()
lea rdi, [rsp+138h+var_130]
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value()
mov rdi, rbx
call __Unwind_Resume
| unsigned long long nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
unsigned __int8 *a1)
{
long long v1; // r12
unsigned __int8 *v2; // rcx
long long v3; // rax
long long v4; // rax
_QWORD *binary; // rax
unsigned long long v6; // rbx
unsigned long long v7; // r12
long long v8; // rax
long long v9; // rdx
unsigned long long v10; // rbx
unsigned __int8 **v11; // rax
unsigned __int8 *v12; // rcx
unsigned __int8 *v13; // rax
long long v14; // rax
long long v15; // r14
long long v16; // rax
long long v17; // rbp
unsigned long long v18; // r15
long long v19; // rdx
long long v20; // rbx
long long v21; // rbx
long long v23; // rax
long long v24; // rbx
unsigned __int8 *v25[4]; // [rsp+8h] [rbp-130h] BYREF
long long v26; // [rsp+28h] [rbp-110h]
_QWORD v27[14]; // [rsp+78h] [rbp-C0h] BYREF
_BYTE v28[80]; // [rsp+E8h] [rbp-50h] BYREF
v1 = *a1;
switch ( *a1 )
{
case 0u:
case 9u:
v2 = (unsigned __int8 *)(((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2));
goto LABEL_19;
case 1u:
v10 = v1 ^ ((((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2))
+ nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::size(a1)
+ 2654435769LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v27,
a1);
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::iteration_proxy_value(
v25,
v27,
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>::cend(
(long long)v28,
a1);
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::iteration_proxy_value(
v27,
v28,
0LL);
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_(
v25,
v27) )
{
v14 = nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::key(v25);
v15 = std::hash<std::string>::operator()((long long)v28, v14);
v16 = 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*(v25);
v17 = nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(v16);
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++(v25);
v10 ^= (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u) ^ (((v10 ^ (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u)) << 6)
+ 2654435769u
+ v17
+ ((v10 ^ (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u)) >> 2));
++v26;
}
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value(v27);
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value(v25);
return v10;
case 2u:
v18 = v1 ^ ((((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2))
+ nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::size(a1)
+ 2654435769LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v25,
a1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::cend(
(long long)v27,
a1);
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_(
v25,
v27) )
return v18;
v10 = v18;
do
{
v23 = 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*(v25);
v10 = v18 ^ (nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(v23)
+ (v18 >> 2)
+ (v10 << 6)
+ 2654435769u);
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++(v25);
v18 = v10;
}
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_(
v25,
v27) );
return v10;
case 3u:
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>::get_ref_impl<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> const>(a1);
v4 = std::hash<std::string>::operator()((long long)v25, v3);
goto LABEL_16;
case 4u:
LOBYTE(v25[0]) = 0;
nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
a1,
(unsigned __int8 *)v25);
v4 = LOBYTE(v25[0]);
LABEL_16:
v19 = ((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2);
v20 = v4 + 2654435769LL;
goto LABEL_21;
case 5u:
v25[0] = 0LL;
ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
a1,
v25);
goto LABEL_18;
case 6u:
v25[0] = 0LL;
ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEmTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
a1,
v25);
LABEL_18:
v2 = &v25[0][((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)];
LABEL_19:
v21 = (long long)(v2 + 2654435769LL);
goto LABEL_22;
case 7u:
v25[0] = 0LL;
ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
a1,
(double *)v25);
v19 = std::hash<double>::operator()(v25, *(double *)v25) + (((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2));
v20 = 2654435769LL;
LABEL_21:
v21 = v19 + v20;
LABEL_22:
v10 = v1 ^ v21;
break;
case 8u:
binary = (_QWORD *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_binary(a1);
v6 = v1 ^ (binary[1] + (((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + 2654435769LL - *binary);
v7 = v6 ^ ((*(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>::get_binary(a1)
+ 32) | (v6 << 6))
+ (v6 >> 2)
+ 2654435769u);
v8 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_binary(a1);
v9 = 2654435768LL;
if ( *(_BYTE *)(v8 + 32) )
v9 = *(_QWORD *)(v8 + 24) + 2654435769LL;
v10 = v7 ^ (v9 + (v7 << 6) + (v7 >> 2));
v11 = (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>::get_binary(a1);
v12 = *v11;
v13 = v11[1];
while ( v12 != v13 )
v10 ^= *v12++ + (v10 >> 2) + (v10 << 6) + 2654435769u;
break;
default:
v24 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
6105LL,
"GGML_ASSERT(%s) failed",
"false");
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value(v27);
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value(v25);
_Unwind_Resume(v24);
}
return v10;
}
| hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x108
MOVZX R12D,byte ptr [RDI]
CMP R12,0x9
JA 0x0017b908
MOV R14,RDI
LEA RAX,[0x1b0a8c]
MOVSXD RCX,dword ptr [RAX + R12*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_0:
MOV EAX,R12D
SHL EAX,0x6
MOV ECX,R12D
SHR ECX,0x2
OR ECX,EAX
JMP 0x0017b842
caseD_3:
MOV RDI,R14
CALL 0x0017ba34
LEA RDI,[RSP + 0x8]
MOV RSI,RAX
CALL 0x00121538
JMP 0x0017b802
caseD_8:
MOV R15D,0x9e3779b9
MOV RDI,R14
CALL 0x0017b97e
MOV ECX,R12D
SHL ECX,0x6
MOV EBX,R12D
SHR EBX,0x2
OR EBX,ECX
ADD RBX,qword ptr [RAX + 0x8]
ADD RBX,R15
SUB RBX,qword ptr [RAX]
XOR RBX,R12
MOV RDI,R14
CALL 0x0017b97e
MOVZX EAX,byte ptr [RAX + 0x20]
MOV RCX,RBX
SHL RCX,0x6
OR RCX,RAX
MOV R12,RBX
SHR R12,0x2
ADD R12,R15
ADD R12,RCX
XOR R12,RBX
MOV RDI,R14
CALL 0x0017b97e
MOV RCX,qword ptr [RAX + 0x18]
ADD RCX,R15
LEA RDX,[R15 + -0x1]
CMP byte ptr [RAX + 0x20],0x0
CMOVNZ RDX,RCX
MOV RAX,R12
SHL RAX,0x6
ADD RAX,RDX
MOV RBX,R12
SHR RBX,0x2
ADD RBX,RAX
XOR RBX,R12
MOV RDI,R14
CALL 0x0017b97e
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x8]
LAB_0017b655:
CMP RCX,RAX
JZ 0x0017b88d
MOVZX EDX,byte ptr [RCX]
MOV RSI,RBX
SHL RSI,0x6
MOV RDI,RBX
SHR RDI,0x2
ADD RSI,R15
ADD RSI,RDI
ADD RSI,RDX
XOR RBX,RSI
INC RCX
JMP 0x0017b655
caseD_1:
MOV R15D,0x9e3779b9
MOV RDI,R14
CALL 0x0014ef94
MOV RBX,RAX
MOV EAX,R12D
SHL EAX,0x6
MOV ECX,R12D
SHR ECX,0x2
OR ECX,EAX
ADD RBX,R15
ADD RBX,RCX
XOR RBX,R12
LEA R13,[RSP + 0x78]
MOV RDI,R13
MOV RSI,R14
CALL 0x00153dfa
LEA R12,[RSP + 0x8]
MOV RDI,R12
MOV RSI,R13
XOR EDX,EDX
CALL 0x0017f26e
LEA R13,[RSP + 0xe8]
MOV RDI,R13
MOV RSI,R14
CALL 0x0015419a
LEA RDI,[RSP + 0x78]
MOV RSI,R13
XOR EDX,EDX
CALL 0x0017f26e
LAB_0017b6ec:
MOV RDI,R12
LEA RSI,[RSP + 0x78]
CALL 0x00153ebe
TEST AL,AL
JNZ 0x0017b8a2
LAB_0017b701:
MOV RDI,R12
CALL 0x001741e6
MOV RDI,R13
MOV RSI,RAX
CALL 0x00121538
MOV R14,RAX
LAB_0017b717:
MOV RDI,R12
CALL 0x00153afe
MOV RDI,RAX
CALL 0x0017b566
LAB_0017b727:
MOV RBP,RAX
MOV RDI,R12
CALL 0x00153ab0
LAB_0017b732:
MOV RAX,RBX
SHL RAX,0x6
MOV RCX,RBX
SHR RCX,0x2
ADD RAX,R15
ADD RAX,RCX
ADD RAX,R14
XOR RAX,RBX
MOV RCX,RAX
SHL RCX,0x6
MOV RBX,RAX
SHR RBX,0x2
ADD RCX,R15
ADD RBX,RBP
ADD RBX,RCX
XOR RBX,RAX
INC qword ptr [RSP + 0x28]
JMP 0x0017b6ec
caseD_2:
MOV R13D,0x9e3779b9
MOV RDI,R14
CALL 0x0014ef94
MOV R15,RAX
MOV EAX,R12D
SHL EAX,0x6
MOV ECX,R12D
SHR ECX,0x2
OR ECX,EAX
ADD R15,R13
ADD R15,RCX
XOR R15,R12
LEA RBX,[RSP + 0x8]
MOV RDI,RBX
MOV RSI,R14
CALL 0x00153dfa
LEA R12,[RSP + 0x78]
MOV RDI,R12
MOV RSI,R14
CALL 0x0015419a
MOV RDI,RBX
MOV RSI,R12
CALL 0x00153ebe
TEST AL,AL
JZ 0x0017b8b8
MOV RBX,R15
JMP 0x0017b88d
caseD_6:
LEA RBX,[RSP + 0x8]
MOV qword ptr [RBX],0x0
MOV RDI,R14
MOV RSI,RBX
CALL 0x0017bb77
JMP 0x0017b831
caseD_4:
LEA RBX,[RSP + 0x8]
MOV byte ptr [RBX],0x0
MOV RDI,R14
MOV RSI,RBX
CALL 0x00145035
MOVZX EAX,byte ptr [RBX]
LAB_0017b802:
MOV ECX,R12D
SHL ECX,0x6
MOV EDX,R12D
SHR EDX,0x2
OR EDX,ECX
MOV EBX,0x9e3779b9
ADD RBX,RAX
JMP 0x0017b887
caseD_5:
LEA RBX,[RSP + 0x8]
MOV qword ptr [RBX],0x0
MOV RDI,R14
MOV RSI,RBX
CALL 0x00143611
LAB_0017b831:
MOV EAX,R12D
SHL EAX,0x6
MOV ECX,R12D
SHR ECX,0x2
OR ECX,EAX
ADD RCX,qword ptr [RBX]
LAB_0017b842:
MOV EBX,0x9e3779b9
ADD RBX,RCX
JMP 0x0017b88a
caseD_7:
LEA RBX,[RSP + 0x8]
MOV qword ptr [RBX],0x0
MOV RDI,R14
MOV RSI,RBX
CALL 0x00144c78
MOVSD XMM0,qword ptr [RBX]
LEA RDI,[RSP + 0x8]
CALL 0x0017b94c
MOV ECX,R12D
SHL ECX,0x6
MOV EDX,R12D
SHR EDX,0x2
OR EDX,ECX
ADD RDX,RAX
MOV EBX,0x9e3779b9
LAB_0017b887:
ADD RBX,RDX
LAB_0017b88a:
XOR RBX,R12
LAB_0017b88d:
MOV RAX,RBX
ADD RSP,0x108
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017b8a2:
LEA RDI,[RSP + 0x78]
CALL 0x00174254
LEA RDI,[RSP + 0x8]
CALL 0x00174254
JMP 0x0017b88d
LAB_0017b8b8:
LEA R14,[RSP + 0x8]
LEA R12,[RSP + 0x78]
MOV RBX,R15
LAB_0017b8c5:
MOV RDI,R14
CALL 0x00153afe
MOV RDI,RAX
CALL 0x0017b566
SHL RBX,0x6
MOV RCX,R15
SHR RCX,0x2
ADD RBX,R13
ADD RBX,RCX
ADD RBX,RAX
XOR RBX,R15
MOV RDI,R14
CALL 0x00153ab0
MOV RDI,R14
MOV RSI,R12
CALL 0x00153ebe
MOV R15,RBX
TEST AL,AL
JZ 0x0017b8c5
JMP 0x0017b88d
default:
LEA RDI,[0x1b24f2]
LEA RDX,[0x1af96c]
LEA RCX,[0x1b0d38]
MOV ESI,0x17d9
XOR EAX,EAX
CALL 0x0011ac70
|
/* unsigned long
nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&) */
ulong nlohmann::json_abi_v3_11_3::detail::
hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 *param_1)
{
basic_json bVar1;
char cVar2;
string *psVar3;
ulong uVar4;
long *plVar5;
long lVar6;
long lVar7;
int8 *puVar8;
basic_json *pbVar9;
byte *pbVar10;
ulong uVar11;
ulong uVar12;
double local_130 [4];
long local_110;
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
local_c0 [112];
hash<std::__cxx11::string> local_50 [32];
bVar1 = *param_1;
uVar11 = (ulong)(byte)bVar1;
switch(uVar11) {
case 0:
case 9:
uVar12 = (ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6);
goto LAB_0017b842;
case 1:
lVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::size((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_1);
uVar12 = lVar6 + 0x9e3779b9 + (ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6) ^
uVar11;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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();
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
::iteration_proxy_value
((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
*)local_130,local_c0,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>
::cend();
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
::iteration_proxy_value(local_c0,local_50,0);
/* try { // try from 0017b6ec to 0017b6f8 has its CatchHandler @ 0017b92d */
while (cVar2 = _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_
((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
*)local_130,local_c0), cVar2 == '\0') {
/* try { // try from 0017b701 to 0017b708 has its CatchHandler @ 0017b929 */
psVar3 = (string *)
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
::key((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
*)local_130);
lVar6 = std::hash<std::__cxx11::string>::operator()(local_50,psVar3);
/* try { // try from 0017b717 to 0017b726 has its CatchHandler @ 0017b92b */
pbVar9 = (basic_json *)
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_130);
uVar11 = hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(pbVar9);
/* try { // try from 0017b727 to 0017b731 has its CatchHandler @ 0017b92d */
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_130);
uVar12 = uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + lVar6 ^ uVar12;
uVar12 = (uVar12 >> 2) + uVar11 + uVar12 * 0x40 + 0x9e3779b9 ^ uVar12;
local_110 = local_110 + 1;
}
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
::~iteration_proxy_value(local_c0);
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
::~iteration_proxy_value
((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
*)local_130);
break;
case 2:
lVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::size((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_1);
uVar12 = lVar6 + 0x9e3779b9 + (ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6) ^
uVar11;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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();
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cend();
cVar2 = _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_130,local_c0);
if (cVar2 == '\0') {
do {
pbVar9 = (basic_json *)
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_130);
uVar11 = hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(pbVar9);
uVar12 = uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + uVar11 ^ uVar12;
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_130);
cVar2 = _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_130,local_c0);
} while (cVar2 == '\0');
}
break;
case 3:
psVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::
get_ref_impl<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>const>
(param_1);
uVar4 = std::hash<std::__cxx11::string>::operator()
((hash<std::__cxx11::string> *)local_130,psVar3);
goto LAB_0017b802;
case 4:
local_130[0] = (double)((ulong)local_130[0] & 0xffffffffffffff00);
from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,(boolean_t *)local_130);
uVar4 = (ulong)local_130[0] & 0xff;
LAB_0017b802:
uVar12 = (ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6);
lVar6 = uVar4 + 0x9e3779b9;
LAB_0017b887:
uVar12 = lVar6 + uVar12;
LAB_0017b88a:
uVar12 = uVar12 ^ uVar11;
break;
case 5:
local_130[0] = 0.0;
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(param_1,local_130);
goto LAB_0017b831;
case 6:
local_130[0] = 0.0;
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEmTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(param_1,local_130);
LAB_0017b831:
uVar12 = (ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6) + (long)local_130[0];
LAB_0017b842:
uVar12 = uVar12 + 0x9e3779b9;
goto LAB_0017b88a;
case 7:
local_130[0] = 0.0;
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(param_1,local_130);
lVar6 = std::hash<double>::operator()((hash<double> *)local_130,local_130[0]);
uVar12 = (ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6) + lVar6;
lVar6 = 0x9e3779b9;
goto LAB_0017b887;
case 8:
plVar5 = (long *)basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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);
uVar11 = ((ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6) + plVar5[1] + 0x9e3779b9) -
*plVar5 ^ uVar11;
lVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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);
uVar11 = (uVar11 >> 2) + 0x9e3779b9 + (uVar11 << 6 | (ulong)*(byte *)(lVar6 + 0x20)) ^ uVar11;
lVar7 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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);
lVar6 = 0x9e3779b8;
if (*(char *)(lVar7 + 0x20) != '\0') {
lVar6 = *(long *)(lVar7 + 0x18) + 0x9e3779b9;
}
uVar12 = (uVar11 >> 2) + uVar11 * 0x40 + lVar6 ^ uVar11;
puVar8 = (int8 *)
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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);
for (pbVar10 = (byte *)*puVar8; pbVar10 != (byte *)puVar8[1]; pbVar10 = pbVar10 + 1) {
uVar12 = uVar12 ^ uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + (ulong)*pbVar10;
}
break;
default:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x17d9,
"GGML_ASSERT(%s) failed","false");
}
return uVar12;
}
| |
36,280 | CLI::Range::Range<double>(double, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | MikePodsytnik[P]TCRtrie/build_O0/_deps/cli11-src/include/CLI/Validators.hpp | Range(T min_val, T max_val, const std::string &validator_name = std::string{}) : Validator(validator_name) {
if(validator_name.empty()) {
std::stringstream out;
out << detail::type_name<T>() << " in [" << min_val << " - " << max_val << "]";
description(out.str());
}
func_ = [min_val, max_val](std::string &input) {
using CLI::detail::lexical_cast;
T val;
bool converted = lexical_cast(input, val);
if((!converted) || (val < min_val || val > max_val)) {
std::stringstream out;
out << "Value " << input << " not in range [";
out << min_val << " - " << max_val << "]";
return out.str();
}
return std::string{};
};
} | O0 | cpp | CLI::Range::Range<double>(double, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
movq %rsp, %rbp
subq $0x250, %rsp # imm = 0x250
movq %rdi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
movsd %xmm1, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x20(%rbp), %rsi
leaq -0x40(%rbp), %rdi
movq %rdi, -0x210(%rbp)
callq 0x9250
movq -0x218(%rbp), %rdi
movq -0x210(%rbp), %rsi
callq 0x15700
jmp 0xbd51
leaq -0x40(%rbp), %rdi
callq 0x9b90
movq -0x20(%rbp), %rdi
callq 0x99c0
testb $0x1, %al
jne 0xbd6c
jmp 0xbec6
leaq -0x1d8(%rbp), %rdi
callq 0x9420
jmp 0xbd7a
leaq -0x1c8(%rbp), %rax
movq %rax, -0x228(%rbp)
callq 0x4ebb0
movq -0x228(%rbp), %rdi
movq %rax, %rsi
callq 0x95e0
movq %rax, -0x220(%rbp)
jmp 0xbda5
movq -0x220(%rbp), %rdi
leaq 0x64400(%rip), %rsi # 0x701b3
callq 0x95e0
movq %rax, -0x230(%rbp)
jmp 0xbdc1
movq -0x230(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
callq 0x9ae0
movq %rax, -0x238(%rbp)
jmp 0xbddb
movq -0x238(%rbp), %rdi
leaq 0x643d0(%rip), %rsi # 0x701b9
callq 0x95e0
movq %rax, -0x240(%rbp)
jmp 0xbdf7
movq -0x240(%rbp), %rdi
movsd -0x18(%rbp), %xmm0
callq 0x9ae0
movq %rax, -0x248(%rbp)
jmp 0xbe11
movq -0x248(%rbp), %rdi
leaq 0x64325(%rip), %rsi # 0x70144
callq 0x95e0
jmp 0xbe26
leaq -0x1f8(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x95d0
jmp 0xbe3b
movq -0x218(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
callq 0x4f2b0
jmp 0xbe50
leaq -0x1f8(%rbp), %rdi
callq 0x9b90
leaq -0x1d8(%rbp), %rdi
callq 0x9490
jmp 0xbec6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x9b90
jmp 0xbf0c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xbf00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xbeb8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x1f8(%rbp), %rdi
callq 0x9b90
leaq -0x1d8(%rbp), %rdi
callq 0x9490
jmp 0xbf00
movq -0x218(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
movsd %xmm0, -0x208(%rbp)
movsd -0x18(%rbp), %xmm0
movsd %xmm0, -0x200(%rbp)
addq $0x20, %rdi
leaq -0x208(%rbp), %rsi
callq 0x4f320
addq $0x250, %rsp # imm = 0x250
popq %rbp
retq
movq -0x218(%rbp), %rdi
callq 0x29940
movq -0x48(%rbp), %rdi
callq 0x9a70
nopw %cs:(%rax,%rax)
nop
| _ZN3CLI5RangeC2IdEET_S2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
mov rbp, rsp
sub rsp, 250h
mov [rbp+var_8], rdi
movsd [rbp+var_10], xmm0
movsd [rbp+var_18], xmm1
mov [rbp+var_20], rsi
mov rax, [rbp+var_8]
mov [rbp+var_218], rax
mov rsi, [rbp+var_20]
lea rdi, [rbp+var_40]
mov [rbp+var_210], rdi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
mov rdi, [rbp+var_218]
mov rsi, [rbp+var_210]
call _ZN3CLI9ValidatorC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::Validator::Validator(std::string)
jmp short $+2
loc_BD51:
lea rdi, [rbp+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rbp+var_20]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_BD6C
jmp loc_BEC6
loc_BD6C:
lea rdi, [rbp+var_1D8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
jmp short $+2
loc_BD7A:
lea rax, [rbp+var_1C8]
mov [rbp+var_228], rax
call _ZN3CLI6detail9type_nameIdTnNSt9enable_ifIXooooeqsr15classify_objectIT_EE5valueLNS0_15object_categoryE10Eeqsr15classify_objectIS3_EE5valueLS4_12Eeqsr15classify_objectIS3_EE5valueLS4_14EENS0_7enablerEE4typeELS5_0EEEPKcv
mov rdi, [rbp+var_228]
mov rsi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rbp+var_220], rax
jmp short $+2
loc_BDA5:
mov rdi, [rbp+var_220]
lea rsi, aIn; " in ["
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rbp+var_230], rax
jmp short $+2
loc_BDC1:
mov rdi, [rbp+var_230]
movsd xmm0, [rbp+var_10]
call __ZNSolsEd; std::ostream::operator<<(double)
mov [rbp+var_238], rax
jmp short $+2
loc_BDDB:
mov rdi, [rbp+var_238]
lea rsi, asc_701B9; " - "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rbp+var_240], rax
jmp short $+2
loc_BDF7:
mov rdi, [rbp+var_240]
movsd xmm0, [rbp+var_18]
call __ZNSolsEd; std::ostream::operator<<(double)
mov [rbp+var_248], rax
jmp short $+2
loc_BE11:
mov rdi, [rbp+var_248]
lea rsi, aOfTheFollowing_0+26h; "]"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_BE26:
lea rdi, [rbp+var_1F8]
lea rsi, [rbp+var_1D8]
call __ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::str(void)
jmp short $+2
loc_BE3B:
mov rdi, [rbp+var_218]
lea rsi, [rbp+var_1F8]
call _ZN3CLI9Validator11descriptionENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::Validator::description(std::string)
jmp short $+2
loc_BE50:
lea rdi, [rbp+var_1F8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_1D8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
jmp short loc_BEC6
mov rcx, rax
mov eax, edx
mov [rbp+var_48], rcx
mov [rbp+var_4C], eax
lea rdi, [rbp+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_BF0C
mov rcx, rax
mov eax, edx
mov [rbp+var_48], rcx
mov [rbp+var_4C], eax
jmp short loc_BF00
mov rcx, rax
mov eax, edx
mov [rbp+var_48], rcx
mov [rbp+var_4C], eax
jmp short loc_BEB8
mov rcx, rax
mov eax, edx
mov [rbp+var_48], rcx
mov [rbp+var_4C], eax
lea rdi, [rbp+var_1F8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_BEB8:
lea rdi, [rbp+var_1D8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
jmp short loc_BF00
loc_BEC6:
mov rdi, [rbp+var_218]
movsd xmm0, [rbp+var_10]
movsd [rbp+var_208], xmm0
movsd xmm0, [rbp+var_18]
movsd [rbp+var_200], xmm0
add rdi, 20h ; ' '
lea rsi, [rbp+var_208]
call _ZNSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS5_EEaSIZN3CLI5RangeC1IdEET_SD_RKS5_EUlS6_E_EENSt9enable_ifIXsrNS8_9_CallableISD_NSH_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISD_E4typeEE4typeES8_EE5valueESt5decayISD_EE4type4typeESt15__invoke_resultIRST_JS6_EEEE5valueERS8_E4typeEOSD_
add rsp, 250h
pop rbp
retn
loc_BF00:
mov rdi, [rbp+var_218]; this
call _ZN3CLI9ValidatorD2Ev; CLI::Validator::~Validator()
loc_BF0C:
mov rdi, [rbp+var_48]
call __Unwind_Resume
| long long CLI::Range::Range<double>(long long a1, long long a2, double a3, double a4)
{
long long v4; // rax
long long v6; // [rsp+8h] [rbp-248h]
long long v7; // [rsp+10h] [rbp-240h]
long long v8; // [rsp+18h] [rbp-238h]
long long v9; // [rsp+20h] [rbp-230h]
long long v10; // [rsp+30h] [rbp-220h]
_QWORD v11[2]; // [rsp+48h] [rbp-208h] BYREF
_BYTE v12[32]; // [rsp+58h] [rbp-1F8h] BYREF
_BYTE v13[16]; // [rsp+78h] [rbp-1D8h] BYREF
_BYTE v14[380]; // [rsp+88h] [rbp-1C8h] BYREF
_BYTE v15[32]; // [rsp+210h] [rbp-40h] BYREF
long long v16; // [rsp+230h] [rbp-20h]
double v17; // [rsp+238h] [rbp-18h]
double v18; // [rsp+240h] [rbp-10h]
long long v19; // [rsp+248h] [rbp-8h]
v19 = a1;
v18 = a3;
v17 = a4;
v16 = a2;
std::string::basic_string(v15, a2);
CLI::Validator::Validator(a1, v15);
std::string::~string(v15);
if ( (std::string::empty(v16) & 1) != 0 )
{
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v13);
v4 = ZN3CLI6detail9type_nameIdTnNSt9enable_ifIXooooeqsr15classify_objectIT_EE5valueLNS0_15object_categoryE10Eeqsr15classify_objectIS3_EE5valueLS4_12Eeqsr15classify_objectIS3_EE5valueLS4_14EENS0_7enablerEE4typeELS5_0EEEPKcv();
v10 = std::operator<<<std::char_traits<char>>(v14, v4);
v9 = std::operator<<<std::char_traits<char>>(v10, " in [");
v8 = std::ostream::operator<<(v9, v18);
v7 = std::operator<<<std::char_traits<char>>(v8, " - ");
v6 = std::ostream::operator<<(v7, v17);
std::operator<<<std::char_traits<char>>(v6, "]");
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::str(v12, v13);
CLI::Validator::description(a1, v12);
std::string::~string(v12);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(v13);
}
*(double *)v11 = v18;
*(double *)&v11[1] = v17;
return std::function<std::string ()(std::string&)>::operator=<CLI::Range::Range<double>(double,double,std::string const&)::{lambda(std::string&)#1}>(
a1 + 32,
v11);
}
| Range<double>:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x250
MOV qword ptr [RBP + -0x8],RDI
MOVSD qword ptr [RBP + -0x10],XMM0
MOVSD qword ptr [RBP + -0x18],XMM1
MOV qword ptr [RBP + -0x20],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x218],RAX
MOV RSI,qword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x40]
MOV qword ptr [RBP + -0x210],RDI
CALL 0x00109250
MOV RDI,qword ptr [RBP + -0x218]
MOV RSI,qword ptr [RBP + -0x210]
LAB_0010bd4a:
CALL 0x00115700
JMP 0x0010bd51
LAB_0010bd51:
LEA RDI,[RBP + -0x40]
CALL 0x00109b90
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001099c0
TEST AL,0x1
JNZ 0x0010bd6c
JMP 0x0010bec6
LAB_0010bd6c:
LEA RDI,[RBP + -0x1d8]
CALL 0x00109420
JMP 0x0010bd7a
LAB_0010bd7a:
LEA RAX,[RBP + -0x1c8]
MOV qword ptr [RBP + -0x228],RAX
CALL 0x0014ebb0
MOV RDI,qword ptr [RBP + -0x228]
MOV RSI,RAX
LAB_0010bd97:
CALL 0x001095e0
MOV qword ptr [RBP + -0x220],RAX
JMP 0x0010bda5
LAB_0010bda5:
MOV RDI,qword ptr [RBP + -0x220]
LEA RSI,[0x1701b3]
CALL 0x001095e0
MOV qword ptr [RBP + -0x230],RAX
JMP 0x0010bdc1
LAB_0010bdc1:
MOV RDI,qword ptr [RBP + -0x230]
MOVSD XMM0,qword ptr [RBP + -0x10]
CALL 0x00109ae0
MOV qword ptr [RBP + -0x238],RAX
JMP 0x0010bddb
LAB_0010bddb:
MOV RDI,qword ptr [RBP + -0x238]
LEA RSI,[0x1701b9]
CALL 0x001095e0
MOV qword ptr [RBP + -0x240],RAX
JMP 0x0010bdf7
LAB_0010bdf7:
MOV RDI,qword ptr [RBP + -0x240]
MOVSD XMM0,qword ptr [RBP + -0x18]
CALL 0x00109ae0
MOV qword ptr [RBP + -0x248],RAX
JMP 0x0010be11
LAB_0010be11:
MOV RDI,qword ptr [RBP + -0x248]
LEA RSI,[0x170144]
CALL 0x001095e0
JMP 0x0010be26
LAB_0010be26:
LEA RDI,[RBP + -0x1f8]
LEA RSI,[RBP + -0x1d8]
CALL 0x001095d0
JMP 0x0010be3b
LAB_0010be3b:
MOV RDI,qword ptr [RBP + -0x218]
LEA RSI,[RBP + -0x1f8]
CALL 0x0014f2b0
LAB_0010be4e:
JMP 0x0010be50
LAB_0010be50:
LEA RDI,[RBP + -0x1f8]
CALL 0x00109b90
LEA RDI,[RBP + -0x1d8]
CALL 0x00109490
JMP 0x0010bec6
LAB_0010bec6:
MOV RDI,qword ptr [RBP + -0x218]
MOVSD XMM0,qword ptr [RBP + -0x10]
MOVSD qword ptr [RBP + -0x208],XMM0
MOVSD XMM0,qword ptr [RBP + -0x18]
MOVSD qword ptr [RBP + -0x200],XMM0
ADD RDI,0x20
LEA RSI,[RBP + -0x208]
CALL 0x0014f320
ADD RSP,0x250
POP RBP
RET
|
/* CLI::Range::Range<double>(double, double, std::__cxx11::string const&) */
void __thiscall CLI::Range::Range<double>(Range *this,double param_1,double param_2,string *param_3)
{
ulong uVar1;
char *pcVar2;
ostream *poVar3;
double local_210;
double local_208;
string local_200 [32];
stringstream local_1e0 [16];
ostream local_1d0 [392];
string local_48 [32];
string *local_28;
double local_20;
double local_18;
Range *local_10;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
local_10 = this;
std::__cxx11::string::string(local_48,param_3);
/* try { // try from 0010bd4a to 0010bd4e has its CatchHandler @ 0010be6a */
Validator::Validator((Validator *)this,local_48);
std::__cxx11::string::~string(local_48);
uVar1 = std::__cxx11::string::empty();
if ((uVar1 & 1) != 0) {
/* try { // try from 0010bd6c to 0010bd77 has its CatchHandler @ 0010be84 */
std::__cxx11::stringstream::stringstream(local_1e0);
pcVar2 = (char *)_ZN3CLI6detail9type_nameIdTnNSt9enable_ifIXooooeqsr15classify_objectIT_EE5valueLNS0_15object_categoryE10Eeqsr15classify_objectIS3_EE5valueLS4_12Eeqsr15classify_objectIS3_EE5valueLS4_14EENS0_7enablerEE4typeELS5_0EEEPKcv
();
/* try { // try from 0010bd97 to 0010be38 has its CatchHandler @ 0010be92 */
poVar3 = std::operator<<(local_1d0,pcVar2);
poVar3 = std::operator<<(poVar3," in [");
poVar3 = (ostream *)std::ostream::operator<<(poVar3,local_18);
poVar3 = std::operator<<(poVar3," - ");
poVar3 = (ostream *)std::ostream::operator<<(poVar3,local_20);
std::operator<<(poVar3,"]");
std::__cxx11::stringstream::str();
/* try { // try from 0010be3b to 0010be4d has its CatchHandler @ 0010bea0 */
Validator::description((Validator *)this,local_200);
std::__cxx11::string::~string(local_200);
std::__cxx11::stringstream::~stringstream(local_1e0);
}
local_210 = local_18;
local_208 = local_20;
std::function<std::__cxx11::string(std::__cxx11::string&)>::operator=
((function<std::__cxx11::string(std::__cxx11::string&)> *)(this + 0x20),
(_lambda_std____cxx11__string___1_ *)&local_210);
return;
}
| |
36,281 | translog_is_LSN_chunk | eloqsql/storage/maria/ma_loghandler.c | static my_bool translog_is_LSN_chunk(uchar type)
{
DBUG_ENTER("translog_is_LSN_chunk");
DBUG_PRINT("info", ("byte: %x chunk type: %u record type: %u",
type, type >> 6, type & TRANSLOG_REC_TYPE));
DBUG_RETURN(((type & TRANSLOG_CHUNK_TYPE) == TRANSLOG_CHUNK_FIXED) ||
(((type & TRANSLOG_CHUNK_TYPE) == TRANSLOG_CHUNK_LSN) &&
((type & TRANSLOG_REC_TYPE)) != TRANSLOG_CHUNK_0_CONT));
} | O0 | c | translog_is_LSN_chunk:
pushq %rbp
movq %rsp, %rbp
movb %dil, %al
movb %al, -0x1(%rbp)
jmp 0x52ddc
jmp 0x52dde
movzbl -0x1(%rbp), %ecx
andl $0xc0, %ecx
movb $0x1, %al
cmpl $0x40, %ecx
movb %al, -0x2(%rbp)
je 0x52e1c
movzbl -0x1(%rbp), %ecx
andl $0xc0, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x3(%rbp)
jne 0x52e16
movzbl -0x1(%rbp), %eax
andl $0x3f, %eax
cmpl $0x3f, %eax
setne %al
movb %al, -0x3(%rbp)
movb -0x3(%rbp), %al
movb %al, -0x2(%rbp)
movb -0x2(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x4(%rbp)
movb -0x4(%rbp), %al
popq %rbp
retq
nopl (%rax)
| translog_is_LSN_chunk:
push rbp
mov rbp, rsp
mov al, dil
mov [rbp+var_1], al
jmp short $+2
loc_52DDC:
jmp short $+2
loc_52DDE:
movzx ecx, [rbp+var_1]
and ecx, 0C0h
mov al, 1
cmp ecx, 40h ; '@'
mov [rbp+var_2], al
jz short loc_52E1C
movzx ecx, [rbp+var_1]
and ecx, 0C0h
xor eax, eax
cmp ecx, 0
mov [rbp+var_3], al
jnz short loc_52E16
movzx eax, [rbp+var_1]
and eax, 3Fh
cmp eax, 3Fh ; '?'
setnz al
mov [rbp+var_3], al
loc_52E16:
mov al, [rbp+var_3]
mov [rbp+var_2], al
loc_52E1C:
mov al, [rbp+var_2]
and al, 1
movzx eax, al
mov [rbp+var_4], al
mov al, [rbp+var_4]
pop rbp
retn
| long long translog_is_LSN_chunk(char a1)
{
bool v2; // [rsp+1h] [rbp-3h]
char v3; // [rsp+2h] [rbp-2h]
v3 = 1;
if ( (a1 & 0xC0) != 0x40 )
{
v2 = 0;
if ( (a1 & 0xC0) == 0 )
v2 = (a1 & 0x3F) != 63;
v3 = v2;
}
return v3 & 1;
}
| translog_is_LSN_chunk:
PUSH RBP
MOV RBP,RSP
MOV AL,DIL
MOV byte ptr [RBP + -0x1],AL
JMP 0x00152ddc
LAB_00152ddc:
JMP 0x00152dde
LAB_00152dde:
MOVZX ECX,byte ptr [RBP + -0x1]
AND ECX,0xc0
MOV AL,0x1
CMP ECX,0x40
MOV byte ptr [RBP + -0x2],AL
JZ 0x00152e1c
MOVZX ECX,byte ptr [RBP + -0x1]
AND ECX,0xc0
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x3],AL
JNZ 0x00152e16
MOVZX EAX,byte ptr [RBP + -0x1]
AND EAX,0x3f
CMP EAX,0x3f
SETNZ AL
MOV byte ptr [RBP + -0x3],AL
LAB_00152e16:
MOV AL,byte ptr [RBP + -0x3]
MOV byte ptr [RBP + -0x2],AL
LAB_00152e1c:
MOV AL,byte ptr [RBP + -0x2]
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x4],AL
MOV AL,byte ptr [RBP + -0x4]
POP RBP
RET
|
bool translog_is_LSN_chunk(byte param_1)
{
bool local_b;
bool local_a;
local_a = true;
if ((param_1 & 0xc0) != 0x40) {
local_b = (param_1 & 0xc0) == 0 && (param_1 & 0x3f) != 0x3f;
local_a = local_b;
}
return local_a;
}
| |
36,282 | minja::IfNode::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 {
for (const auto& branch : cascade) {
auto enter_branch = true;
if (branch.first) {
enter_branch = branch.first->evaluate(context).to_bool();
}
if (enter_branch) {
if (!branch.second) throw std::runtime_error("IfNode.cascade.second is null");
branch.second->render(out, context);
return;
}
}
} | O2 | cpp | minja::IfNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq 0x20(%rdi), %r12
movq 0x28(%rdi), %r13
leaq 0x8(%rsp), %r15
cmpq %r13, %r12
je 0x73290
movq (%r12), %rsi
testq %rsi, %rsi
je 0x7327b
movq %r15, %rdi
movq %rbx, %rdx
callq 0x62ea2
movq %r15, %rdi
callq 0x63078
movl %eax, %ebp
movq %r15, %rdi
callq 0x63132
testb %bpl, %bpl
jne 0x7327b
addq $0x20, %r12
jmp 0x73245
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0x7329f
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7332e
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x24460
movq %rax, %rbx
leaq 0x43643(%rip), %rsi # 0xb68f4
movq %rax, %rdi
callq 0x24320
movq 0x8cd30(%rip), %rsi # 0xffff0
movq 0x8cc89(%rip), %rdx # 0xfff50
movq %rbx, %rdi
callq 0x24ee0
movq %rax, %r14
movq %rbx, %rdi
callq 0x24670
jmp 0x732e9
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x63132
movq %r14, %rdi
callq 0x24f60
nop
| _ZNK5minja6IfNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov rbx, rdx
mov r14, rsi
mov r12, [rdi+20h]
mov r13, [rdi+28h]
lea r15, [rsp+88h+var_80]
loc_73245:
cmp r12, r13
jz short loc_73290
mov rsi, [r12]
test rsi, rsi
jz short loc_7327B
mov rdi, r15
mov rdx, rbx
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rdi, r15; this
call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void)
mov ebp, eax
mov rdi, r15; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
test bpl, bpl
jnz short loc_7327B
add r12, 20h ; ' '
jmp short loc_73245
loc_7327B:
mov rdi, [r12+10h]
test rdi, rdi
jz short loc_7329F
mov rsi, r14
mov rdx, rbx
call _ZNK5minja12TemplateNode6renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE; minja::TemplateNode::render(std::ostringstream &,std::shared_ptr<minja::Context> const&)
loc_73290:
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7329F:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aIfnodeCascadeS; "IfNode.cascade.second is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_732E9
mov r14, rax
lea rdi, [rsp+88h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_732E9:
mov rdi, r14
call __Unwind_Resume
| void minja::IfNode::do_render(long long a1, int a2, int a3, int a4, int a5, int a6)
{
long long v7; // r12
long long v8; // r13
char v9; // bp
long long v10; // rdi
std::runtime_error *exception; // rbx
_BYTE v12[128]; // [rsp+8h] [rbp-80h] BYREF
v7 = *(_QWORD *)(a1 + 32);
v8 = *(_QWORD *)(a1 + 40);
while ( v7 != v8 )
{
if ( !*(_QWORD *)v7
|| (minja::Expression::evaluate((long long)v12, *(void (****)(void))v7),
v9 = minja::Value::to_bool((minja::Value *)v12),
minja::Value::~Value((minja::Value *)v12),
v9) )
{
v10 = *(_QWORD *)(v7 + 16);
if ( !v10 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "IfNode.cascade.second is null");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::TemplateNode::render(v10, a2, a3, a4, a5, a6);
return;
}
v7 += 32LL;
}
}
| do_render:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,RDX
MOV R14,RSI
MOV R12,qword ptr [RDI + 0x20]
MOV R13,qword ptr [RDI + 0x28]
LEA R15,[RSP + 0x8]
LAB_00173245:
CMP R12,R13
JZ 0x00173290
MOV RSI,qword ptr [R12]
TEST RSI,RSI
JZ 0x0017327b
MOV RDI,R15
MOV RDX,RBX
CALL 0x00162ea2
LAB_0017325e:
MOV RDI,R15
CALL 0x00163078
LAB_00173266:
MOV EBP,EAX
MOV RDI,R15
CALL 0x00163132
TEST BPL,BPL
JNZ 0x0017327b
ADD R12,0x20
JMP 0x00173245
LAB_0017327b:
MOV RDI,qword ptr [R12 + 0x10]
TEST RDI,RDI
JZ 0x0017329f
MOV RSI,R14
MOV RDX,RBX
CALL 0x0017332e
LAB_00173290:
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017329f:
PUSH 0x10
POP RDI
CALL 0x00124460
MOV RBX,RAX
LAB_001732aa:
LEA RSI,[0x1b68f4]
MOV RDI,RAX
CALL 0x00124320
LAB_001732b9:
MOV RSI,qword ptr [0x001ffff0]
MOV RDX,qword ptr [0x001fff50]
MOV RDI,RBX
CALL 0x00124ee0
|
/* minja::IfNode::do_render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context> const&)
const */
void minja::IfNode::do_render(ostringstream *param_1,shared_ptr *param_2)
{
int8 *puVar1;
char cVar2;
runtime_error *this;
int8 *puVar3;
Expression local_80 [80];
puVar3 = *(int8 **)(param_1 + 0x20);
puVar1 = *(int8 **)(param_1 + 0x28);
while( true ) {
if (puVar3 == puVar1) {
return;
}
if ((shared_ptr *)*puVar3 == (shared_ptr *)0x0) break;
Expression::evaluate(local_80,(shared_ptr *)*puVar3);
/* try { // try from 0017325e to 00173265 has its CatchHandler @ 001732dc */
cVar2 = Value::to_bool((Value *)local_80);
Value::~Value((Value *)local_80);
if (cVar2 != '\0') break;
puVar3 = puVar3 + 4;
}
if ((ostringstream *)puVar3[2] != (ostringstream *)0x0) {
TemplateNode::render((ostringstream *)puVar3[2],param_2);
return;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001732aa to 001732b8 has its CatchHandler @ 001732cf */
std::runtime_error::runtime_error(this,"IfNode.cascade.second is null");
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001ffff0,PTR__runtime_error_001fff50);
}
| |
36,283 | BeginScissorMode | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rcore.c | void BeginScissorMode(int x, int y, int width, int height)
{
rlDrawRenderBatchActive(); // Update and draw internal render batch
rlEnableScissorTest();
#if defined(__APPLE__)
if (!CORE.Window.usingFbo)
{
Vector2 scale = GetWindowScaleDPI();
rlScissor((int)(x*scale.x), (int)(GetScreenHeight()*scale.y - (((y + height)*scale.y))), (int)(width*scale.x), (int)(height*scale.y));
}
#else
if (!CORE.Window.usingFbo && ((CORE.Window.flags & FLAG_WINDOW_HIGHDPI) > 0))
{
Vector2 scale = GetWindowScaleDPI();
rlScissor((int)(x*scale.x), (int)(CORE.Window.currentFbo.height - (y + height)*scale.y), (int)(width*scale.x), (int)(height*scale.y));
}
#endif
else
{
rlScissor(x, CORE.Window.currentFbo.height - (y + height), width, height);
}
} | O0 | c | BeginScissorMode:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movl %ecx, -0x10(%rbp)
callq 0xb5760
callq 0xb2de0
testb $0x1, 0x14b8cc(%rip) # 0x21ac91
jne 0xcf44d
movl 0x14b8b7(%rip), %eax # 0x21ac88
andl $0x2000, %eax # imm = 0x2000
cmpl $0x0, %eax
jbe 0xcf44d
callq 0xca4d0
movlpd %xmm0, -0x18(%rbp)
cvtsi2ssl -0x4(%rbp), %xmm0
movss -0x18(%rbp), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %edi
movl 0x14b8c3(%rip), %eax # 0x21acc0
cvtsi2ss %rax, %xmm1
movl -0x8(%rbp), %eax
addl -0x10(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss -0x14(%rbp), %xmm2
movd %xmm0, %eax
xorl $0x80000000, %eax # imm = 0x80000000
movd %eax, %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
cvttss2si %xmm0, %esi
cvtsi2ssl -0xc(%rbp), %xmm0
mulss -0x18(%rbp), %xmm0
cvttss2si %xmm0, %edx
cvtsi2ssl -0x10(%rbp), %xmm0
mulss -0x14(%rbp), %xmm0
cvttss2si %xmm0, %ecx
callq 0xb2e20
jmp 0xcf469
movl -0x4(%rbp), %edi
movl 0x14b86a(%rip), %esi # 0x21acc0
movl -0x8(%rbp), %eax
addl -0x10(%rbp), %eax
subl %eax, %esi
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
callq 0xb2e20
addq $0x20, %rsp
popq %rbp
retq
nop
| BeginScissorMode:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_8], esi
mov [rbp+var_C], edx
mov [rbp+var_10], ecx
call rlDrawRenderBatchActive
call rlEnableScissorTest
test cs:byte_21AC91, 1
jnz loc_CF44D
mov eax, cs:dword_21AC88
and eax, 2000h
cmp eax, 0
jbe short loc_CF44D
call GetWindowScaleDPI
movlpd [rbp+var_18], xmm0
cvtsi2ss xmm0, [rbp+var_4]
movss xmm1, dword ptr [rbp+var_18]
mulss xmm0, xmm1
cvttss2si edi, xmm0
mov eax, dword ptr cs:qword_21ACBC+4
cvtsi2ss xmm1, rax
mov eax, [rbp+var_8]
add eax, [rbp+var_10]
cvtsi2ss xmm0, eax
movss xmm2, dword ptr [rbp+var_18+4]
movd eax, xmm0
xor eax, 80000000h
movd xmm0, eax
mulss xmm0, xmm2
addss xmm0, xmm1
cvttss2si esi, xmm0
cvtsi2ss xmm0, [rbp+var_C]
mulss xmm0, dword ptr [rbp+var_18]
cvttss2si edx, xmm0
cvtsi2ss xmm0, [rbp+var_10]
mulss xmm0, dword ptr [rbp+var_18+4]
cvttss2si ecx, xmm0
call rlScissor
jmp short loc_CF469
loc_CF44D:
mov edi, [rbp+var_4]
mov esi, dword ptr cs:qword_21ACBC+4
mov eax, [rbp+var_8]
add eax, [rbp+var_10]
sub esi, eax
mov edx, [rbp+var_C]
mov ecx, [rbp+var_10]
call rlScissor
loc_CF469:
add rsp, 20h
pop rbp
retn
| long long BeginScissorMode(
signed int a1,
int a2,
signed int a3,
signed int a4,
__m128i a5,
double a6,
double a7,
double a8,
double a9,
double a10,
double a11,
double a12)
{
unsigned int v12; // edi
unsigned long long v14; // [rsp+8h] [rbp-18h]
rlDrawRenderBatchActive(*(double *)a5.m128i_i64, a6, a7, a8, a9, a10, a11, a12);
rlEnableScissorTest();
if ( (byte_21AC91 & 1) != 0 || (dword_21AC88 & 0x2000) == 0 )
return rlScissor(a1, HIDWORD(qword_21ACBC) - (a4 + a2), a3, a4);
*(double *)a5.m128i_i64 = GetWindowScaleDPI();
v14 = a5.m128i_i64[0];
v12 = (int)(float)((float)a1 * *(float *)a5.m128i_i32);
*(float *)a5.m128i_i32 = (float)(a4 + a2);
return rlScissor(
v12,
(int)(float)((float)(COERCE_FLOAT(_mm_cvtsi128_si32(a5) ^ 0x80000000) * *((float *)&v14 + 1))
+ (float)SHIDWORD(qword_21ACBC)),
(int)(float)((float)a3 * *(float *)&v14),
(int)(float)((float)a4 * *((float *)&v14 + 1)));
}
| BeginScissorMode:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV dword ptr [RBP + -0x8],ESI
MOV dword ptr [RBP + -0xc],EDX
MOV dword ptr [RBP + -0x10],ECX
CALL 0x001b5760
CALL 0x001b2de0
TEST byte ptr [0x0031ac91],0x1
JNZ 0x001cf44d
MOV EAX,dword ptr [0x0031ac88]
AND EAX,0x2000
CMP EAX,0x0
JBE 0x001cf44d
CALL 0x001ca4d0
MOVLPD qword ptr [RBP + -0x18],XMM0
CVTSI2SS XMM0,dword ptr [RBP + -0x4]
MOVSS XMM1,dword ptr [RBP + -0x18]
MULSS XMM0,XMM1
CVTTSS2SI EDI,XMM0
MOV EAX,dword ptr [0x0031acc0]
CVTSI2SS XMM1,RAX
MOV EAX,dword ptr [RBP + -0x8]
ADD EAX,dword ptr [RBP + -0x10]
CVTSI2SS XMM0,EAX
MOVSS XMM2,dword ptr [RBP + -0x14]
MOVD EAX,XMM0
XOR EAX,0x80000000
MOVD XMM0,EAX
MULSS XMM0,XMM2
ADDSS XMM0,XMM1
CVTTSS2SI ESI,XMM0
CVTSI2SS XMM0,dword ptr [RBP + -0xc]
MULSS XMM0,dword ptr [RBP + -0x18]
CVTTSS2SI EDX,XMM0
CVTSI2SS XMM0,dword ptr [RBP + -0x10]
MULSS XMM0,dword ptr [RBP + -0x14]
CVTTSS2SI ECX,XMM0
CALL 0x001b2e20
JMP 0x001cf469
LAB_001cf44d:
MOV EDI,dword ptr [RBP + -0x4]
MOV ESI,dword ptr [0x0031acc0]
MOV EAX,dword ptr [RBP + -0x8]
ADD EAX,dword ptr [RBP + -0x10]
SUB ESI,EAX
MOV EDX,dword ptr [RBP + -0xc]
MOV ECX,dword ptr [RBP + -0x10]
CALL 0x001b2e20
LAB_001cf469:
ADD RSP,0x20
POP RBP
RET
|
void BeginScissorMode(ulong param_1,int8 param_2,int param_3,ulong param_4)
{
int iVar1;
ulong uVar2;
int4 uVar3;
int iVar4;
int4 uVar5;
ulong uVar6;
int4 uVar7;
int8 uVar8;
int4 local_20;
int4 uStack_1c;
iVar4 = (int)param_2;
iVar1 = (int)param_4;
uVar2 = param_4;
uVar6 = param_1;
rlDrawRenderBatchActive();
uVar3 = (int4)(uVar2 >> 0x20);
uVar5 = (int4)((ulong)param_2 >> 0x20);
uVar7 = (int4)(uVar6 >> 0x20);
rlEnableScissorTest();
if (((DAT_0031ac91 & 1) == 0) && ((DAT_0031ac88 & 0x2000) != 0)) {
uVar8 = GetWindowScaleDPI();
local_20 = (float)uVar8;
uStack_1c = (float)((ulong)uVar8 >> 0x20);
rlScissor(CONCAT44(uVar7,(int)((float)(int)param_1 * local_20)),
CONCAT44(uVar5,(int)(-(float)(iVar4 + iVar1) * uStack_1c + (float)DAT_0031acc0)),
(int)((float)param_3 * local_20),CONCAT44(uVar3,(int)((float)iVar1 * uStack_1c)));
}
else {
rlScissor(param_1 & 0xffffffff,DAT_0031acc0 - (iVar4 + iVar1),param_3,param_4 & 0xffffffff);
}
return;
}
| |
36,284 | Opt::init(int, char const**) | llama.cpp/examples/run/run.cpp | int init(int argc, const char ** argv) {
ctx_params = llama_context_default_params();
model_params = llama_model_default_params();
context_size_default = ctx_params.n_batch;
n_threads_default = ctx_params.n_threads;
ngl_default = model_params.n_gpu_layers;
common_params_sampling sampling;
temperature_default = sampling.temp;
if (argc < 2) {
printe("Error: No arguments provided.\n");
print_help();
return 1;
}
// Parse arguments
if (parse(argc, argv)) {
printe("Error: Failed to parse arguments.\n");
print_help();
return 1;
}
// If help is requested, show help and exit
if (help) {
print_help();
return 2;
}
ctx_params.n_batch = context_size >= 0 ? context_size : context_size_default;
ctx_params.n_ctx = ctx_params.n_batch;
ctx_params.n_threads = ctx_params.n_threads_batch = n_threads >= 0 ? n_threads : n_threads_default;
model_params.n_gpu_layers = ngl >= 0 ? ngl : ngl_default;
temperature = temperature >= 0 ? temperature : temperature_default;
return 0; // Success
} | O3 | cpp | Opt::init(int, char const**):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x128, %rsp # imm = 0x128
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x1e0f0
movl $0xf, %ecx
movq %rbx, %rdi
movq %r15, %rsi
rep movsq (%rsi), %es:(%rdi)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x1dcb0
leaq 0x78(%rbx), %rdi
movl $0x9, %ecx
movq %r15, %rsi
rep movsq (%rsi), %es:(%rdi)
movl 0x4(%rbx), %eax
movl 0x10(%rbx), %ecx
movl %eax, 0x138(%rbx)
movl %ecx, 0x140(%rbx)
movl 0x88(%rbx), %eax
movl %eax, 0x13c(%rbx)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x232fe
movss 0x28(%r15), %xmm0
movss %xmm0, 0x144(%rbx)
cmpl $0x1, %ebp
jle 0x2305d
movq %rbx, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x2355c
testl %eax, %eax
jne 0x23066
cmpb $0x1, 0x148(%rbx)
jne 0x22fef
movl 0x138(%rbx), %esi
movl 0x13c(%rbx), %edx
xorps %xmm0, %xmm0
cvtss2sd 0x144(%rbx), %xmm0
movl 0x140(%rbx), %ecx
leaq 0xa6721(%rip), %rdi # 0xc96ff
movb $0x1, %al
callq 0x1d0a0
movl $0x2, %ebx
jmp 0x230a4
movl 0x124(%rbx), %ecx
testl %ecx, %ecx
jns 0x22fff
movl 0x138(%rbx), %ecx
movl 0x128(%rbx), %eax
movl %ecx, 0x4(%rbx)
movl %ecx, (%rbx)
movl 0x12c(%rbx), %ecx
testl %ecx, %ecx
jns 0x2301a
movl 0x140(%rbx), %ecx
movl %ecx, 0x14(%rbx)
movl %ecx, 0x10(%rbx)
testl %eax, %eax
jns 0x2302a
movl 0x13c(%rbx), %eax
movl %eax, 0x88(%rbx)
movss 0x130(%rbx), %xmm0
xorps %xmm1, %xmm1
cmpnless %xmm0, %xmm1
movss 0x144(%rbx), %xmm2
andps %xmm1, %xmm2
andnps %xmm0, %xmm1
orps %xmm2, %xmm1
movss %xmm1, 0x130(%rbx)
xorl %ebx, %ebx
jmp 0x230a4
leaq 0xa65f6(%rip), %rdi # 0xc965a
jmp 0x2306d
leaq 0xa660c(%rip), %rdi # 0xc9679
xorl %eax, %eax
callq 0x1e130
movl 0x138(%rbx), %esi
movl 0x13c(%rbx), %edx
xorps %xmm0, %xmm0
cvtss2sd 0x144(%rbx), %xmm0
movl 0x140(%rbx), %ecx
leaq 0xa6667(%rip), %rdi # 0xc96ff
movb $0x1, %al
callq 0x1d0a0
movl $0x1, %ebx
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x230c1
movq 0x120(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d160
leaq 0xe0(%rsp), %rdi
callq 0x24044
leaq 0xc8(%rsp), %r14
movq %r14, %rdi
callq 0x23fe6
movq -0x28(%r14), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x230ff
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x1d160
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x2311c
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d160
leaq 0x70(%rsp), %rdi
callq 0x23764
movl %ebx, %eax
addq $0x128, %rsp # imm = 0x128
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x23618
movq %rbx, %rdi
callq 0x1d8e0
nop
| _ZN3Opt4initEiPPKc:
push rbp
push r15
push r14
push rbx
sub rsp, 128h
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea r15, [rsp+148h+var_140]
mov rdi, r15
call _llama_context_default_params
mov ecx, 0Fh
mov rdi, rbx
mov rsi, r15
rep movsq
lea r15, [rsp+148h+var_140]
mov rdi, r15
call _llama_model_default_params
lea rdi, [rbx+78h]
mov ecx, 9
mov rsi, r15
rep movsq
mov eax, [rbx+4]
mov ecx, [rbx+10h]
mov [rbx+138h], eax
mov [rbx+140h], ecx
mov eax, [rbx+88h]
mov [rbx+13Ch], eax
lea r15, [rsp+148h+var_140]
mov rdi, r15; this
call _ZN22common_params_samplingC2Ev; common_params_sampling::common_params_sampling(void)
movss xmm0, dword ptr [r15+28h]
movss dword ptr [rbx+144h], xmm0
cmp ebp, 1
jle loc_2305D
mov rdi, rbx; this
mov esi, ebp; int
mov rdx, r14; char **
call _ZN3Opt5parseEiPPKc; Opt::parse(int,char const**)
test eax, eax
jnz loc_23066
cmp byte ptr [rbx+148h], 1
jnz short loc_22FEF
mov esi, [rbx+138h]
mov edx, [rbx+13Ch]
xorps xmm0, xmm0
cvtss2sd xmm0, dword ptr [rbx+144h]
mov ecx, [rbx+140h]
lea rdi, aDescriptionRun; "Description:\n Runs a llm\n\nUsage:\n "...
mov al, 1
call _printf
mov ebx, 2
jmp loc_230A4
loc_22FEF:
mov ecx, [rbx+124h]
test ecx, ecx
jns short loc_22FFF
mov ecx, [rbx+138h]
loc_22FFF:
mov eax, [rbx+128h]
mov [rbx+4], ecx
mov [rbx], ecx
mov ecx, [rbx+12Ch]
test ecx, ecx
jns short loc_2301A
mov ecx, [rbx+140h]
loc_2301A:
mov [rbx+14h], ecx
mov [rbx+10h], ecx
test eax, eax
jns short loc_2302A
mov eax, [rbx+13Ch]
loc_2302A:
mov [rbx+88h], eax
movss xmm0, dword ptr [rbx+130h]
xorps xmm1, xmm1
cmpnless xmm1, xmm0
movss xmm2, dword ptr [rbx+144h]
andps xmm2, xmm1
andnps xmm1, xmm0
orps xmm1, xmm2
movss dword ptr [rbx+130h], xmm1
xor ebx, ebx
jmp short loc_230A4
loc_2305D:
lea rdi, aErrorNoArgumen; "Error: No arguments provided.\n"
jmp short loc_2306D
loc_23066:
lea rdi, aErrorFailedToP; "Error: Failed to parse arguments.\n"
loc_2306D:
xor eax, eax
call _ZL6printePKcz; printe(char const*,...)
mov esi, [rbx+138h]
mov edx, [rbx+13Ch]
xorps xmm0, xmm0
cvtss2sd xmm0, dword ptr [rbx+144h]
mov ecx, [rbx+140h]
lea rdi, aDescriptionRun; "Description:\n Runs a llm\n\nUsage:\n "...
mov al, 1
call _printf
mov ebx, 1
loc_230A4:
mov rdi, [rsp+148h+var_38]; void *
test rdi, rdi
jz short loc_230C1
mov rsi, [rsp+148h+var_28]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_230C1:
lea rdi, [rsp+148h+var_68]
call _ZNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEED2Ev; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::~_Rb_tree()
lea r14, [rsp+148h+var_80]
mov rdi, r14
call _ZNSt6vectorI22common_grammar_triggerSaIS0_EED2Ev; std::vector<common_grammar_trigger>::~vector()
mov rdi, [r14-28h]; void *
lea rax, [rsp+148h+var_98]
cmp rdi, rax
jz short loc_230FF
mov rsi, [rsp+148h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_230FF:
mov rdi, [rsp+148h+var_C0]; void *
test rdi, rdi
jz short loc_2311C
mov rsi, [rsp+148h+var_B0]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2311C:
lea rdi, [rsp+148h+var_D8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov eax, ebx
add rsp, 128h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN22common_params_samplingD2Ev; common_params_sampling::~common_params_sampling()
mov rdi, rbx
call __Unwind_Resume
| long long Opt::init(
Opt *this,
int a2,
const char **a3,
double a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long v14; // rsi
int v15; // ecx
long long v16; // rdx
long long v17; // rcx
long long v18; // r8
long long v19; // r9
__m128 v20; // xmm4
__m128 v21; // xmm5
__m128 v22; // xmm0
unsigned int v23; // ebx
int v24; // ecx
int v25; // eax
int v26; // ecx
__m128 v27; // xmm0
__m128 v28; // xmm1
const char *v29; // rdi
char v31; // [rsp+0h] [rbp-148h]
_DWORD v32[32]; // [rsp+8h] [rbp-140h] BYREF
void *v33; // [rsp+88h] [rbp-C0h]
long long v34; // [rsp+98h] [rbp-B0h]
long long *v35; // [rsp+A0h] [rbp-A8h]
long long v36; // [rsp+B0h] [rbp-98h] BYREF
_BYTE v37[24]; // [rsp+C8h] [rbp-80h] BYREF
_BYTE v38[48]; // [rsp+E0h] [rbp-68h] BYREF
void *v39; // [rsp+110h] [rbp-38h]
long long v40; // [rsp+120h] [rbp-28h]
llama_context_default_params(v32);
qmemcpy(this, v32, 0x78uLL);
llama_model_default_params(v32);
qmemcpy((char *)this + 120, v32, 0x48uLL);
v14 = (long long)&v32[18];
v15 = *((_DWORD *)this + 4);
*((_DWORD *)this + 78) = *((_DWORD *)this + 1);
*((_DWORD *)this + 80) = v15;
*((_DWORD *)this + 79) = *((_DWORD *)this + 34);
common_params_sampling::common_params_sampling((common_params_sampling *)v32);
v22 = (__m128)v32[10];
*((_DWORD *)this + 81) = v32[10];
if ( a2 <= 1 )
{
v29 = "Error: No arguments provided.\n";
LABEL_14:
printe(v29, v14, v16, v17, v18, v19, v22, a5, a6, a7, v20, v21, a10, a11, v31);
printf(
"Description:\n"
" Runs a llm\n"
"\n"
"Usage:\n"
" llama-run [options] model [prompt]\n"
"\n"
"Options:\n"
" -c, --context-size <value>\n"
" Context size (default: %d)\n"
" --chat-template-file <path>\n"
" Path to the file containing the chat template to use with the model.\n"
" Only supports jinja templates and implicitly sets the --jinja flag.\n"
" --jinja\n"
" Use jinja templating for the chat template of the model\n"
" -n, -ngl, --ngl <value>\n"
" Number of GPU layers (default: %d)\n"
" --temp <value>\n"
" Temperature (default: %.1f)\n"
" -t, --threads <value>\n"
" Number of threads to use during generation (default: %d)\n"
" -v, --verbose, --log-verbose\n"
" Set verbosity level to infinity (i.e. log all messages, useful for debugging)\n"
" -h, --help\n"
" Show help message\n"
"\n"
"Commands:\n"
" model\n"
" Model is a string with an optional prefix of \n"
" huggingface:// (hf://), ollama://, https:// or file://.\n"
" If no protocol is specified and a file exists in the specified\n"
" path, file:// is assumed, otherwise if a file does not exist in\n"
" the specified path, ollama:// is assumed. Models that are being\n"
" pulled are downloaded with .partial extension while being\n"
" downloaded and then renamed as the file without the .partial\n"
" extension when complete.\n"
"\n"
"Examples:\n"
" llama-run llama3\n"
" llama-run ollama://granite-code\n"
" llama-run ollama://smollm:135m\n"
" llama-run hf://QuantFactory/SmolLM-135M-GGUF/SmolLM-135M.Q2_K.gguf\n"
" llama-run huggingface://bartowski/SmolLM-1.7B-Instruct-v0.2-GGUF/SmolLM-1.7B-Instruct-v0.2-IQ3_M.gguf\n"
" llama-run https://example.com/some-file1.gguf\n"
" llama-run some-file2.gguf\n"
" llama-run file://some-file3.gguf\n"
" llama-run --ngl 999 some-file4.gguf\n"
" llama-run --ngl 999 some-file5.gguf Hello World\n",
*((_DWORD *)this + 78),
*((_DWORD *)this + 79),
*((float *)this + 81),
*((_DWORD *)this + 80));
v23 = 1;
goto LABEL_15;
}
v14 = (unsigned int)a2;
if ( (unsigned int)Opt::parse(this, a2, a3) )
{
v29 = "Error: Failed to parse arguments.\n";
goto LABEL_14;
}
if ( *((_BYTE *)this + 328) == 1 )
{
printf(
"Description:\n"
" Runs a llm\n"
"\n"
"Usage:\n"
" llama-run [options] model [prompt]\n"
"\n"
"Options:\n"
" -c, --context-size <value>\n"
" Context size (default: %d)\n"
" --chat-template-file <path>\n"
" Path to the file containing the chat template to use with the model.\n"
" Only supports jinja templates and implicitly sets the --jinja flag.\n"
" --jinja\n"
" Use jinja templating for the chat template of the model\n"
" -n, -ngl, --ngl <value>\n"
" Number of GPU layers (default: %d)\n"
" --temp <value>\n"
" Temperature (default: %.1f)\n"
" -t, --threads <value>\n"
" Number of threads to use during generation (default: %d)\n"
" -v, --verbose, --log-verbose\n"
" Set verbosity level to infinity (i.e. log all messages, useful for debugging)\n"
" -h, --help\n"
" Show help message\n"
"\n"
"Commands:\n"
" model\n"
" Model is a string with an optional prefix of \n"
" huggingface:// (hf://), ollama://, https:// or file://.\n"
" If no protocol is specified and a file exists in the specified\n"
" path, file:// is assumed, otherwise if a file does not exist in\n"
" the specified path, ollama:// is assumed. Models that are being\n"
" pulled are downloaded with .partial extension while being\n"
" downloaded and then renamed as the file without the .partial\n"
" extension when complete.\n"
"\n"
"Examples:\n"
" llama-run llama3\n"
" llama-run ollama://granite-code\n"
" llama-run ollama://smollm:135m\n"
" llama-run hf://QuantFactory/SmolLM-135M-GGUF/SmolLM-135M.Q2_K.gguf\n"
" llama-run huggingface://bartowski/SmolLM-1.7B-Instruct-v0.2-GGUF/SmolLM-1.7B-Instruct-v0.2-IQ3_M.gguf\n"
" llama-run https://example.com/some-file1.gguf\n"
" llama-run some-file2.gguf\n"
" llama-run file://some-file3.gguf\n"
" llama-run --ngl 999 some-file4.gguf\n"
" llama-run --ngl 999 some-file5.gguf Hello World\n",
*((_DWORD *)this + 78),
*((_DWORD *)this + 79),
*((float *)this + 81),
*((_DWORD *)this + 80));
v23 = 2;
}
else
{
v24 = *((_DWORD *)this + 73);
if ( v24 < 0 )
v24 = *((_DWORD *)this + 78);
v25 = *((_DWORD *)this + 74);
*((_DWORD *)this + 1) = v24;
*(_DWORD *)this = v24;
v26 = *((_DWORD *)this + 75);
if ( v26 < 0 )
v26 = *((_DWORD *)this + 80);
*((_DWORD *)this + 5) = v26;
*((_DWORD *)this + 4) = v26;
if ( v25 < 0 )
v25 = *((_DWORD *)this + 79);
*((_DWORD *)this + 34) = v25;
v27 = (__m128)*((unsigned int *)this + 76);
v28 = _mm_cmpgt_ss((__m128)0LL, v27);
*((_DWORD *)this + 76) = _mm_andnot_ps(v28, v27).m128_u32[0] | *((_DWORD *)this + 81) & v28.m128_i32[0];
v23 = 0;
}
LABEL_15:
if ( v39 )
operator delete(v39, v40 - (_QWORD)v39);
std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::~_Rb_tree(v38);
std::vector<common_grammar_trigger>::~vector(v37);
if ( v35 != &v36 )
operator delete(v35, v36 + 1);
if ( v33 )
operator delete(v33, v34 - (_QWORD)v33);
std::vector<std::string>::~vector(&v32[26]);
return v23;
}
| init:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x128
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x0011e0f0
MOV ECX,0xf
MOV RDI,RBX
MOV RSI,R15
MOVSQ.REP RDI,RSI
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x0011dcb0
LEA RDI,[RBX + 0x78]
MOV ECX,0x9
MOV RSI,R15
MOVSQ.REP RDI,RSI
MOV EAX,dword ptr [RBX + 0x4]
MOV ECX,dword ptr [RBX + 0x10]
MOV dword ptr [RBX + 0x138],EAX
MOV dword ptr [RBX + 0x140],ECX
MOV EAX,dword ptr [RBX + 0x88]
MOV dword ptr [RBX + 0x13c],EAX
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x001232fe
MOVSS XMM0,dword ptr [R15 + 0x28]
MOVSS dword ptr [RBX + 0x144],XMM0
CMP EBP,0x1
JLE 0x0012305d
LAB_00122f9c:
MOV RDI,RBX
MOV ESI,EBP
MOV RDX,R14
CALL 0x0012355c
LAB_00122fa9:
TEST EAX,EAX
JNZ 0x00123066
CMP byte ptr [RBX + 0x148],0x1
JNZ 0x00122fef
MOV ESI,dword ptr [RBX + 0x138]
MOV EDX,dword ptr [RBX + 0x13c]
XORPS XMM0,XMM0
CVTSS2SD XMM0,dword ptr [RBX + 0x144]
MOV ECX,dword ptr [RBX + 0x140]
LEA RDI,[0x1c96ff]
MOV AL,0x1
CALL 0x0011d0a0
MOV EBX,0x2
JMP 0x001230a4
LAB_00122fef:
MOV ECX,dword ptr [RBX + 0x124]
TEST ECX,ECX
JNS 0x00122fff
MOV ECX,dword ptr [RBX + 0x138]
LAB_00122fff:
MOV EAX,dword ptr [RBX + 0x128]
MOV dword ptr [RBX + 0x4],ECX
MOV dword ptr [RBX],ECX
MOV ECX,dword ptr [RBX + 0x12c]
TEST ECX,ECX
JNS 0x0012301a
MOV ECX,dword ptr [RBX + 0x140]
LAB_0012301a:
MOV dword ptr [RBX + 0x14],ECX
MOV dword ptr [RBX + 0x10],ECX
TEST EAX,EAX
JNS 0x0012302a
MOV EAX,dword ptr [RBX + 0x13c]
LAB_0012302a:
MOV dword ptr [RBX + 0x88],EAX
MOVSS XMM0,dword ptr [RBX + 0x130]
XORPS XMM1,XMM1
CMPNLESS XMM1,XMM0
MOVSS XMM2,dword ptr [RBX + 0x144]
ANDPS XMM2,XMM1
ANDNPS XMM1,XMM0
ORPS XMM1,XMM2
MOVSS dword ptr [RBX + 0x130],XMM1
XOR EBX,EBX
JMP 0x001230a4
LAB_0012305d:
LEA RDI,[0x1c965a]
JMP 0x0012306d
LAB_00123066:
LEA RDI,[0x1c9679]
LAB_0012306d:
XOR EAX,EAX
CALL 0x0011e130
MOV ESI,dword ptr [RBX + 0x138]
MOV EDX,dword ptr [RBX + 0x13c]
XORPS XMM0,XMM0
CVTSS2SD XMM0,dword ptr [RBX + 0x144]
MOV ECX,dword ptr [RBX + 0x140]
LEA RDI,[0x1c96ff]
MOV AL,0x1
CALL 0x0011d0a0
MOV EBX,0x1
LAB_001230a4:
MOV RDI,qword ptr [RSP + 0x110]
TEST RDI,RDI
JZ 0x001230c1
MOV RSI,qword ptr [RSP + 0x120]
SUB RSI,RDI
CALL 0x0011d160
LAB_001230c1:
LEA RDI,[RSP + 0xe0]
CALL 0x00124044
LEA R14,[RSP + 0xc8]
MOV RDI,R14
CALL 0x00123fe6
MOV RDI,qword ptr [R14 + -0x28]
LEA RAX,[RSP + 0xb0]
CMP RDI,RAX
JZ 0x001230ff
MOV RSI,qword ptr [RSP + 0xb0]
INC RSI
CALL 0x0011d160
LAB_001230ff:
MOV RDI,qword ptr [RSP + 0x88]
TEST RDI,RDI
JZ 0x0012311c
MOV RSI,qword ptr [RSP + 0x98]
SUB RSI,RDI
CALL 0x0011d160
LAB_0012311c:
LEA RDI,[RSP + 0x70]
CALL 0x00123764
MOV EAX,EBX
ADD RSP,0x128
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* Opt::init(int, char const**) */
int8 __thiscall Opt::init(Opt *this,int param_1,char **param_2)
{
int iVar1;
int iVar2;
long lVar3;
int8 uVar4;
common_params_sampling *pcVar5;
Opt *pOVar6;
char *pcVar7;
byte bVar8;
uint uVar9;
common_params_sampling local_140 [40];
int4 local_118;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_d8 [24];
void *local_c0;
long local_b0;
long *local_a8;
long local_98 [3];
vector<common_grammar_trigger,std::allocator<common_grammar_trigger>> local_80 [24];
_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>> local_68 [48];
void *local_38;
long local_28;
bVar8 = 0;
llama_context_default_params(local_140);
pcVar5 = local_140;
pOVar6 = this;
for (lVar3 = 0xf; lVar3 != 0; lVar3 = lVar3 + -1) {
*(int8 *)pOVar6 = *(int8 *)pcVar5;
pcVar5 = pcVar5 + ((ulong)bVar8 * -2 + 1) * 8;
pOVar6 = pOVar6 + (ulong)bVar8 * -0x10 + 8;
}
llama_model_default_params(local_140);
pcVar5 = local_140;
pOVar6 = this + 0x78;
for (lVar3 = 9; lVar3 != 0; lVar3 = lVar3 + -1) {
*(int8 *)pOVar6 = *(int8 *)pcVar5;
pcVar5 = pcVar5 + ((ulong)bVar8 * -2 + 1) * 8;
pOVar6 = pOVar6 + (ulong)bVar8 * -0x10 + 8;
}
*(int4 *)(this + 0x138) = *(int4 *)(this + 4);
*(int4 *)(this + 0x140) = *(int4 *)(this + 0x10);
*(int4 *)(this + 0x13c) = *(int4 *)(this + 0x88);
common_params_sampling::common_params_sampling(local_140);
*(int4 *)(this + 0x144) = local_118;
if (param_1 < 2) {
pcVar7 = "Error: No arguments provided.\n";
}
else {
/* try { // try from 00122f9c to 00122fa8 has its CatchHandler @ 00123136 */
iVar1 = parse(this,param_1,param_2);
if (iVar1 == 0) {
if (this[0x148] == (Opt)0x1) {
printf("Description:\n Runs a llm\n\nUsage:\n llama-run [options] model [prompt]\n\nOptions:\n -c, --context-size <value>\n Context size (default: %d)\n --chat-template-file <path>\n Path to the file containing the chat template to use with the model.\n Only supports jinja templates and implicitly sets the --jinja flag.\n --jinja\n Use jinja templating for the chat template of the model\n -n, -ngl, --ngl <value>\n Number of GPU layers (default: %d)\n --temp <value>\n Temperature (default: %.1f)\n -t, --threads <value>\n Number of threads to use during generation (default: %d)\n -v, --verbose, --log-verbose\n Set verbosity level to infinity (i.e. log all messages, useful for debugging)\n -h, --help\n Show help message\n\nCommands:\n model\n Model is a string with an optional prefix of \n huggingface:// (hf://), ollama://, https:// or file://.\n If no protocol is specified and a file exists in the specified\n path, file:// is assumed, otherwise if a file does not exist in\n the specified path, ollama:// is assumed. Models that are being\n pulled are downloaded with .partial extension while being\n downloaded and then renamed as the file without the .partial\n extension when complete.\n\nExamples:\n llama-run llama3\n llama-run ollama://granite-code\n llama-run ollama://smollm:135m\n llama-run hf://QuantFactory/SmolLM-135M-GGUF/SmolLM-135M.Q2_K.gguf\n llama-run huggingface://bartowski/SmolLM-1.7B-Instruct-v0.2-GGUF/SmolLM-1.7B-Instruct-v0.2-IQ3_M.gguf\n llama-run https://example.com/some-file1.gguf\n llama-run some-file2.gguf\n llama-run file://some-file3.gguf\n llama-run --ngl 999 some-file4.gguf\n llama-run --ngl 999 some-file5.gguf Hello World\n"
,(double)*(float *)(this + 0x144),(ulong)*(uint *)(this + 0x138),
(ulong)*(uint *)(this + 0x13c),(ulong)*(uint *)(this + 0x140));
uVar4 = 2;
}
else {
iVar1 = *(int *)(this + 0x124);
if (iVar1 < 0) {
iVar1 = *(int *)(this + 0x138);
}
iVar2 = *(int *)(this + 0x128);
*(int *)(this + 4) = iVar1;
*(int *)this = iVar1;
iVar1 = *(int *)(this + 300);
if (iVar1 < 0) {
iVar1 = *(int *)(this + 0x140);
}
*(int *)(this + 0x14) = iVar1;
*(int *)(this + 0x10) = iVar1;
if (iVar2 < 0) {
iVar2 = *(int *)(this + 0x13c);
}
*(int *)(this + 0x88) = iVar2;
uVar9 = -(uint)(*(float *)(this + 0x130) < 0.0);
*(uint *)(this + 0x130) =
~uVar9 & (uint)*(float *)(this + 0x130) | *(uint *)(this + 0x144) & uVar9;
uVar4 = 0;
}
goto LAB_001230a4;
}
pcVar7 = "Error: Failed to parse arguments.\n";
}
printe(pcVar7);
printf("Description:\n Runs a llm\n\nUsage:\n llama-run [options] model [prompt]\n\nOptions:\n -c, --context-size <value>\n Context size (default: %d)\n --chat-template-file <path>\n Path to the file containing the chat template to use with the model.\n Only supports jinja templates and implicitly sets the --jinja flag.\n --jinja\n Use jinja templating for the chat template of the model\n -n, -ngl, --ngl <value>\n Number of GPU layers (default: %d)\n --temp <value>\n Temperature (default: %.1f)\n -t, --threads <value>\n Number of threads to use during generation (default: %d)\n -v, --verbose, --log-verbose\n Set verbosity level to infinity (i.e. log all messages, useful for debugging)\n -h, --help\n Show help message\n\nCommands:\n model\n Model is a string with an optional prefix of \n huggingface:// (hf://), ollama://, https:// or file://.\n If no protocol is specified and a file exists in the specified\n path, file:// is assumed, otherwise if a file does not exist in\n the specified path, ollama:// is assumed. Models that are being\n pulled are downloaded with .partial extension while being\n downloaded and then renamed as the file without the .partial\n extension when complete.\n\nExamples:\n llama-run llama3\n llama-run ollama://granite-code\n llama-run ollama://smollm:135m\n llama-run hf://QuantFactory/SmolLM-135M-GGUF/SmolLM-135M.Q2_K.gguf\n llama-run huggingface://bartowski/SmolLM-1.7B-Instruct-v0.2-GGUF/SmolLM-1.7B-Instruct-v0.2-IQ3_M.gguf\n llama-run https://example.com/some-file1.gguf\n llama-run some-file2.gguf\n llama-run file://some-file3.gguf\n llama-run --ngl 999 some-file4.gguf\n llama-run --ngl 999 some-file5.gguf Hello World\n"
,(double)*(float *)(this + 0x144),(ulong)*(uint *)(this + 0x138),
(ulong)*(uint *)(this + 0x13c),(ulong)*(uint *)(this + 0x140));
uVar4 = 1;
LAB_001230a4:
if (local_38 != (void *)0x0) {
operator_delete(local_38,local_28 - (long)local_38);
}
std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::~_Rb_tree(local_68)
;
std::vector<common_grammar_trigger,std::allocator<common_grammar_trigger>>::~vector(local_80);
if (local_a8 != local_98) {
operator_delete(local_a8,local_98[0] + 1);
}
if (local_c0 != (void *)0x0) {
operator_delete(local_c0,local_b0 - (long)local_c0);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_d8);
return uVar4;
}
| |
36,285 | js_map_iterator_finalizer | bluesky950520[P]quickjs/quickjs.c | static void js_map_iterator_finalizer(JSRuntime *rt, JSValue val)
{
JSObject *p;
JSMapIteratorData *it;
p = JS_VALUE_GET_OBJ(val);
it = p->u.map_iterator_data;
if (it) {
/* During the GC sweep phase the Map finalizer may be
called before the Map iterator finalizer */
if (JS_IsLiveObject(rt, it->obj) && it->cur_record) {
map_decref_record(rt, it->cur_record);
}
JS_FreeValueRT(rt, it->obj);
js_free_rt(rt, it);
}
} | O2 | c | js_map_iterator_finalizer:
pushq %r14
pushq %rbx
pushq %rax
movq 0x30(%rsi), %rbx
testq %rbx, %rbx
je 0x37c10
movq %rdi, %r14
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
cmpl $-0x1, %edx
jne 0x37bf6
testb $0x2, 0x5(%rsi)
jne 0x37bf6
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x37bf6
movq %r14, %rdi
movq %rax, %rsi
callq 0x37de7
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x1bbe1
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1ac7b
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| js_map_iterator_finalizer:
push r14
push rbx
push rax
mov rbx, [rsi+30h]
test rbx, rbx
jz short loc_37C10
mov r14, rdi
mov rsi, [rbx]
mov rdx, [rbx+8]
cmp edx, 0FFFFFFFFh
jnz short loc_37BF6
test byte ptr [rsi+5], 2
jnz short loc_37BF6
mov rax, [rbx+18h]
test rax, rax
jz short loc_37BF6
mov rdi, r14
mov rsi, rax
call map_decref_record
mov rsi, [rbx]
mov rdx, [rbx+8]
loc_37BF6:
mov rdi, r14
call JS_FreeValueRT
mov rdi, r14
mov rsi, rbx
add rsp, 8
pop rbx
pop r14
jmp js_free_rt
loc_37C10:
add rsp, 8
pop rbx
pop r14
retn
| long long js_map_iterator_finalizer(long long a1, long long a2)
{
long long *v2; // rbx
long long v3; // rsi
long long v4; // rdx
long long result; // rax
v2 = *(long long **)(a2 + 48);
if ( v2 )
{
v3 = *v2;
v4 = v2[1];
if ( (_DWORD)v4 == -1 && (*(_BYTE *)(v3 + 5) & 2) == 0 )
{
if ( v2[3] )
{
map_decref_record(a1, v2[3]);
v3 = *v2;
v4 = v2[1];
}
}
JS_FreeValueRT(a1, (unsigned int *)v3, v4);
return js_free_rt(a1, (long long)v2);
}
return result;
}
| js_map_iterator_finalizer:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,qword ptr [RSI + 0x30]
TEST RBX,RBX
JZ 0x00137c10
MOV R14,RDI
MOV RSI,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
CMP EDX,-0x1
JNZ 0x00137bf6
TEST byte ptr [RSI + 0x5],0x2
JNZ 0x00137bf6
MOV RAX,qword ptr [RBX + 0x18]
TEST RAX,RAX
JZ 0x00137bf6
MOV RDI,R14
MOV RSI,RAX
CALL 0x00137de7
MOV RSI,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
LAB_00137bf6:
MOV RDI,R14
CALL 0x0011bbe1
MOV RDI,R14
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x0011ac7b
LAB_00137c10:
ADD RSP,0x8
POP RBX
POP R14
RET
|
void js_map_iterator_finalizer(int8 param_1,long param_2)
{
long *plVar1;
long lVar2;
long lVar3;
plVar1 = *(long **)(param_2 + 0x30);
if (plVar1 != (long *)0x0) {
lVar3 = *plVar1;
lVar2 = plVar1[1];
if ((((int)lVar2 == -1) && ((*(byte *)(lVar3 + 5) & 2) == 0)) && (plVar1[3] != 0)) {
map_decref_record(param_1,plVar1[3]);
lVar3 = *plVar1;
lVar2 = plVar1[1];
}
JS_FreeValueRT(param_1,lVar3,lVar2);
js_free_rt(param_1,plVar1);
return;
}
return;
}
| |
36,286 | madb_get_os_character_set | eloqsql/libmariadb/libmariadb/ma_charset.c | const char *madb_get_os_character_set()
{
unsigned int i= 0;
char *p= NULL;
#ifdef _WIN32
char codepage[FN_REFLEN];
snprintf(codepage, FN_REFLEN, "%u", GetConsoleCP() ? GetConsoleCP() : GetACP());
p= codepage;
#elif defined(HAVE_NL_LANGINFO) && defined(HAVE_SETLOCALE)
if (setlocale(LC_CTYPE, ""))
p= nl_langinfo(CODESET);
#endif
if (!p)
return MADB_DEFAULT_CHARSET_NAME;
while (MADB_OS_CHARSET[i].identifier)
{
if (MADB_OS_CHARSET[i].supported > MADB_CS_UNSUPPORTED &&
strcasecmp(MADB_OS_CHARSET[i].identifier, p) == 0)
return MADB_OS_CHARSET[i].charset;
i++;
}
return MADB_DEFAULT_CHARSET_NAME;
} | O3 | c | madb_get_os_character_set:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x45bb(%rip), %rsi # 0x3302b
xorl %edi, %edi
callq 0x133a0
leaq 0x50d4(%rip), %rbx # 0x33b52
testq %rax, %rax
je 0x2eae3
movl $0xe, %edi
callq 0x13410
movq %rax, %r14
testq %rax, %rax
sete %al
leaq 0x18473(%rip), %r15 # 0x46f10
movq (%r15), %rdi
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x2eae3
movl $0x1, %r12d
movq %r15, %r13
cmpb $0x0, 0x20(%r13)
je 0x2eac6
movq %r14, %rsi
callq 0x134a0
testl %eax, %eax
je 0x2eadf
movl %r12d, %eax
leaq (%rax,%rax,4), %rax
leaq (%r15,%rax,8), %r13
movq (%r13), %rdi
incl %r12d
testq %rdi, %rdi
jne 0x2eab3
jmp 0x2eae3
movq 0x10(%r13), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| madb_get_os_character_set:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
lea rsi, aUsageSHostUser+23h; ""
xor edi, edi
call _setlocale
lea rbx, aLatin1; "latin1"
test rax, rax
jz short loc_2EAE3
mov edi, 0Eh
call _nl_langinfo
mov r14, rax
test rax, rax
setz al
lea r15, MADB_OS_CHARSET
mov rdi, [r15]
test rdi, rdi
setz cl
or cl, al
jnz short loc_2EAE3
mov r12d, 1
mov r13, r15
loc_2EAB3:
cmp byte ptr [r13+20h], 0
jz short loc_2EAC6
mov rsi, r14
call _strcasecmp
test eax, eax
jz short loc_2EADF
loc_2EAC6:
mov eax, r12d
lea rax, [rax+rax*4]
lea r13, [r15+rax*8]
mov rdi, [r13+0]
inc r12d
test rdi, rdi
jnz short loc_2EAB3
jmp short loc_2EAE3
loc_2EADF:
mov rbx, [r13+10h]
loc_2EAE3:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| const char *madb_get_os_character_set()
{
const char *v0; // rbx
long long v1; // r14
void *v2; // rdi
unsigned int v3; // r12d
_UNKNOWN **v4; // r13
v0 = "latin1";
if ( setlocale(0LL, "") )
{
v1 = nl_langinfo(14LL);
v2 = MADB_OS_CHARSET;
if ( v1 != 0 && MADB_OS_CHARSET != 0LL )
{
v3 = 1;
v4 = &MADB_OS_CHARSET;
while ( !*((_BYTE *)v4 + 32) || (unsigned int)strcasecmp(v2, v1) )
{
v4 = &MADB_OS_CHARSET + 5 * v3;
v2 = *v4;
++v3;
if ( !*v4 )
return v0;
}
return (const char *)v4[2];
}
}
return v0;
}
| madb_get_os_character_set:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
LEA RSI,[0x13302b]
XOR EDI,EDI
CALL 0x001133a0
LEA RBX,[0x133b52]
TEST RAX,RAX
JZ 0x0012eae3
MOV EDI,0xe
CALL 0x00113410
MOV R14,RAX
TEST RAX,RAX
SETZ AL
LEA R15,[0x146f10]
MOV RDI,qword ptr [R15]
TEST RDI,RDI
SETZ CL
OR CL,AL
JNZ 0x0012eae3
MOV R12D,0x1
MOV R13,R15
LAB_0012eab3:
CMP byte ptr [R13 + 0x20],0x0
JZ 0x0012eac6
MOV RSI,R14
CALL 0x001134a0
TEST EAX,EAX
JZ 0x0012eadf
LAB_0012eac6:
MOV EAX,R12D
LEA RAX,[RAX + RAX*0x4]
LEA R13,[R15 + RAX*0x8]
MOV RDI,qword ptr [R13]
INC R12D
TEST RDI,RDI
JNZ 0x0012eab3
JMP 0x0012eae3
LAB_0012eadf:
MOV RBX,qword ptr [R13 + 0x10]
LAB_0012eae3:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
char * madb_get_os_character_set(void)
{
int iVar1;
char *pcVar2;
char *__s1;
ulong uVar3;
int **ppuVar4;
pcVar2 = setlocale(0,"");
if ((pcVar2 != (char *)0x0) &&
(pcVar2 = nl_langinfo(0xe), MADB_OS_CHARSET != (int *)0x0 && pcVar2 != (char *)0x0)) {
uVar3 = 1;
ppuVar4 = &MADB_OS_CHARSET;
__s1 = MADB_OS_CHARSET;
do {
if ((*(char *)(ppuVar4 + 4) != '\0') && (iVar1 = strcasecmp(__s1,pcVar2), iVar1 == 0)) {
return ppuVar4[2];
}
ppuVar4 = &MADB_OS_CHARSET + uVar3 * 5;
__s1 = *ppuVar4;
uVar3 = (ulong)((int)uVar3 + 1);
} while (__s1 != (char *)0x0);
}
return "latin1";
}
| |
36,287 | stmt_unbuffered_fetch | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | static int stmt_unbuffered_fetch(MYSQL_STMT *stmt, uchar **row)
{
ulong pkt_len;
pkt_len= ma_net_safe_read(stmt->mysql);
if (pkt_len == packet_error)
{
stmt->fetch_row_func= stmt_unbuffered_eof;
return(1);
}
if (stmt->mysql->net.read_pos[0] == 254)
{
*row = NULL;
stmt->fetch_row_func= stmt_unbuffered_eof;
return(MYSQL_NO_DATA);
}
else
*row = stmt->mysql->net.read_pos;
stmt->result.rows++;
return(0);
} | O3 | c | stmt_unbuffered_fetch:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
callq 0x152ef
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jne 0x1e8f8
leaq 0x3e0d(%rip), %rax # 0x226f7
movq %rax, 0x348(%rbx)
movl $0x1, %eax
jmp 0x1e92d
movq 0x38(%rbx), %rax
movq 0x20(%rax), %rax
cmpb $-0x2, (%rax)
jne 0x1e921
movq $0x0, (%r14)
leaq 0x3de4(%rip), %rax # 0x226f7
movq %rax, 0x348(%rbx)
movl $0x64, %eax
jmp 0x1e92d
movq %rax, (%r14)
incq 0xc8(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
| stmt_unbuffered_fetch:
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rsi
mov rbx, rdi
mov rdi, [rdi+38h]
call ma_net_safe_read
mov ecx, 0FFFFFFFFh
cmp rax, rcx
jnz short loc_1E8F8
lea rax, stmt_unbuffered_eof
mov [rbx+348h], rax
mov eax, 1
jmp short loc_1E92D
loc_1E8F8:
mov rax, [rbx+38h]
mov rax, [rax+20h]
cmp byte ptr [rax], 0FEh
jnz short loc_1E921
mov qword ptr [r14], 0
lea rax, stmt_unbuffered_eof
mov [rbx+348h], rax
mov eax, 64h ; 'd'
jmp short loc_1E92D
loc_1E921:
mov [r14], rax
inc qword ptr [rbx+0C8h]
xor eax, eax
loc_1E92D:
pop rbx
pop r14
pop rbp
retn
| long long stmt_unbuffered_fetch(long long *a1, _QWORD *a2, long long a3, long long a4, unsigned long long a5, int a6)
{
_BYTE *v7; // rax
if ( ma_net_safe_read(a1[7], (long long)a2, a3, a4, a5, a6) == 0xFFFFFFFF )
{
a1[105] = (long long)stmt_unbuffered_eof;
return 1LL;
}
else
{
v7 = *(_BYTE **)(a1[7] + 32);
if ( *v7 == 0xFE )
{
*a2 = 0LL;
a1[105] = (long long)stmt_unbuffered_eof;
return 100LL;
}
else
{
*a2 = v7;
++a1[25];
return 0LL;
}
}
}
| stmt_unbuffered_fetch:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x38]
CALL 0x001152ef
MOV ECX,0xffffffff
CMP RAX,RCX
JNZ 0x0011e8f8
LEA RAX,[0x1226f7]
MOV qword ptr [RBX + 0x348],RAX
MOV EAX,0x1
JMP 0x0011e92d
LAB_0011e8f8:
MOV RAX,qword ptr [RBX + 0x38]
MOV RAX,qword ptr [RAX + 0x20]
CMP byte ptr [RAX],0xfe
JNZ 0x0011e921
MOV qword ptr [R14],0x0
LEA RAX,[0x1226f7]
MOV qword ptr [RBX + 0x348],RAX
MOV EAX,0x64
JMP 0x0011e92d
LAB_0011e921:
MOV qword ptr [R14],RAX
INC qword ptr [RBX + 0xc8]
XOR EAX,EAX
LAB_0011e92d:
POP RBX
POP R14
POP RBP
RET
|
int8 stmt_unbuffered_fetch(long param_1,int8 *param_2)
{
char *pcVar1;
long lVar2;
int8 uVar3;
lVar2 = ma_net_safe_read(*(int8 *)(param_1 + 0x38));
if (lVar2 == 0xffffffff) {
*(code **)(param_1 + 0x348) = stmt_unbuffered_eof;
uVar3 = 1;
}
else {
pcVar1 = *(char **)(*(long *)(param_1 + 0x38) + 0x20);
if (*pcVar1 == -2) {
*param_2 = 0;
*(code **)(param_1 + 0x348) = stmt_unbuffered_eof;
uVar3 = 100;
}
else {
*param_2 = pcVar1;
*(long *)(param_1 + 200) = *(long *)(param_1 + 200) + 1;
uVar3 = 0;
}
}
return uVar3;
}
| |
36,288 | psi_rwlock_wrlock | eloqsql/mysys/my_thr_init.c | ATTRIBUTE_COLD
int psi_rwlock_wrlock(mysql_rwlock_t *that, const char *file, uint line)
{
PSI_rwlock_locker_state state;
PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_wrwait)
(&state, that->m_psi, PSI_RWLOCK_WRITELOCK, file, line);
int result= rw_wrlock(&that->m_rwlock);
if (locker)
PSI_RWLOCK_CALL(end_rwlock_wrwait)(locker, result);
return result;
} | O0 | c | psi_rwlock_wrlock:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq 0x31432e(%rip), %rax # 0x38d408
movq (%rax), %rax
movq 0x1b0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x90(%rcx), %rsi
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
leaq -0x48(%rbp), %rdi
movl $0x1, %edx
callq *%rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0x79640
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x79133
leaq 0x3142e8(%rip), %rax # 0x38d408
movq (%rax), %rax
movq 0x1b8(%rax), %rax
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %esi
callq *%rax
movl -0x54(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
| psi_rwlock_wrlock:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1B0h]
mov rcx, [rbp+var_8]
mov rsi, [rcx+90h]
mov rcx, [rbp+var_10]
mov r8d, [rbp+var_14]
lea rdi, [rbp+var_48]
mov edx, 1
call rax
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call my_rw_wrlock
mov [rbp+var_54], eax
cmp [rbp+var_50], 0
jz short loc_79133
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1B8h]
mov rdi, [rbp+var_50]
mov esi, [rbp+var_54]
call rax
loc_79133:
mov eax, [rbp+var_54]
add rsp, 60h
pop rbp
retn
| long long psi_rwlock_wrlock(long long a1, long long a2, unsigned int a3)
{
unsigned int v4; // [rsp+Ch] [rbp-54h]
long long v5; // [rsp+10h] [rbp-50h]
_BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF
unsigned int v7; // [rsp+4Ch] [rbp-14h]
long long v8; // [rsp+50h] [rbp-10h]
long long v9; // [rsp+58h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
v5 = (*((long long ( **)(_BYTE *, _QWORD, long long, long long, _QWORD))PSI_server + 54))(
v6,
*(_QWORD *)(a1 + 144),
1LL,
a2,
a3);
v4 = my_rw_wrlock(v9);
if ( v5 )
(*((void ( **)(long long, _QWORD))PSI_server + 55))(v5, v4);
return v4;
}
| psi_rwlock_wrlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
LEA RAX,[0x48d408]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1b0]
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x90]
MOV RCX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RBP + -0x14]
LEA RDI,[RBP + -0x48]
MOV EDX,0x1
CALL RAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00179640
MOV dword ptr [RBP + -0x54],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x00179133
LEA RAX,[0x48d408]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1b8]
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RBP + -0x54]
CALL RAX
LAB_00179133:
MOV EAX,dword ptr [RBP + -0x54]
ADD RSP,0x60
POP RBP
RET
|
int4 psi_rwlock_wrlock(long param_1,int8 param_2,int4 param_3)
{
int4 uVar1;
long lVar2;
int1 local_50 [52];
int4 local_1c;
int8 local_18;
long local_10;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
lVar2 = (**(code **)(PSI_server + 0x1b0))
(local_50,*(int8 *)(param_1 + 0x90),1,param_2,param_3);
uVar1 = my_rw_wrlock(local_10);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1b8))(lVar2,uVar1);
}
return uVar1;
}
| |
36,289 | fn_format | eloqsql/mysys/mf_format.c | char * fn_format(char * to, const char *name, const char *dir,
const char *extension, uint flag)
{
char dev[FN_REFLEN], buff[FN_REFLEN], *pos, *startpos;
const char *ext;
reg1 size_t length;
size_t dev_length;
DBUG_ENTER("fn_format");
DBUG_ASSERT(name != NULL);
DBUG_ASSERT(extension != NULL);
DBUG_PRINT("enter",("name: %s dir: %s extension: %s flag: %d",
name,dir,extension,flag));
/* Copy and skip directory */
name+=(length=dirname_part(dev, (startpos=(char *) name), &dev_length));
if (length == 0 || (flag & MY_REPLACE_DIR))
{
/* Use given directory */
convert_dirname(dev,dir,NullS); /* Fix to this OS */
}
else if ((flag & MY_RELATIVE_PATH) && !test_if_hard_path(dev))
{
/* Put 'dir' before the given path */
strmake_buf(buff, dev);
pos=convert_dirname(dev,dir,NullS);
strmake(pos,buff,sizeof(buff)-1- (int) (pos-dev));
}
if (flag & MY_PACK_FILENAME)
pack_dirname(dev,dev); /* Put in ./.. and ~/.. */
if (flag & MY_UNPACK_FILENAME)
(void) unpack_dirname(dev,dev); /* Replace ~/.. with dir */
if (!(flag & MY_APPEND_EXT) &&
(pos= (char*) strchr(name,FN_EXTCHAR)) != NullS)
{
if ((flag & MY_REPLACE_EXT) == 0) /* If we should keep old ext */
{
length=strlength(name); /* Use old extension */
ext = "";
}
else
{
length= (size_t) (pos-(char*) name); /* Change extension */
ext= extension;
}
}
else
{
length=strlength(name); /* No ext, use the now one */
ext=extension;
}
if (strlen(dev)+length+strlen(ext) >= FN_REFLEN || length >= FN_LEN )
{
/* To long path, return original or NULL */
size_t tmp_length;
if (flag & MY_SAFE_PATH)
DBUG_RETURN(NullS);
tmp_length= strlength(startpos);
DBUG_PRINT("error",("dev: '%s' ext: '%s' length: %u",dev,ext,
(uint) length));
(void) strmake(to,startpos,MY_MIN(tmp_length,FN_REFLEN-1));
}
else
{
if (to == startpos)
{
bmove(buff,(uchar*) name,length); /* Save name for last copy */
name=buff;
}
pos=strmake(strmov(to,dev),name,length);
(void) strmov(pos,ext); /* Don't convert extension */
}
if (flag & MY_RETURN_REAL_PATH)
(void) my_realpath(to, to, MYF(0));
else if (flag & MY_RESOLVE_SYMLINKS)
{
strmov(buff,to);
(void) my_readlink(to, buff, MYF(0));
}
DBUG_RETURN(to);
} | O0 | c | fn_format:
pushq %rbp
movq %rsp, %rbp
subq $0x6a0, %rsp # imm = 0x6A0
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x620(%rbp)
movq %rsi, -0x628(%rbp)
movq %rdx, -0x630(%rbp)
movq %rcx, -0x638(%rbp)
movl %r8d, -0x63c(%rbp)
jmp 0xe719d
jmp 0xe719f
jmp 0xe71a1
jmp 0xe71a3
jmp 0xe71a5
leaq -0x210(%rbp), %rdi
movq -0x628(%rbp), %rsi
movq %rsi, -0x650(%rbp)
leaq -0x668(%rbp), %rdx
callq 0xe7040
movq %rax, -0x660(%rbp)
addq -0x628(%rbp), %rax
movq %rax, -0x628(%rbp)
cmpq $0x0, -0x660(%rbp)
je 0xe71f3
movl -0x63c(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xe720f
leaq -0x210(%rbp), %rdi
movq -0x630(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xe70a0
jmp 0xe72bf
movl -0x63c(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0xe72bd
leaq -0x210(%rbp), %rdi
callq 0xf7f10
cmpl $0x0, %eax
jne 0xe72bd
leaq -0x610(%rbp), %rdi
xorl %esi, %esi
movl $0x200, %edx # imm = 0x200
callq 0x29280
movb $0x2, -0x610(%rbp)
leaq -0x410(%rbp), %rdi
leaq -0x210(%rbp), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x155850
movq %rax, -0x670(%rbp)
leaq -0x210(%rbp), %rdi
movq -0x630(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xe70a0
movq %rax, -0x648(%rbp)
movq -0x648(%rbp), %rdi
leaq -0x410(%rbp), %rsi
movq -0x648(%rbp), %rax
leaq -0x210(%rbp), %rcx
subq %rcx, %rax
cltq
movl $0x1ff, %edx # imm = 0x1FF
subq %rax, %rdx
callq 0x155850
jmp 0xe72bf
movl -0x63c(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0xe72e0
leaq -0x210(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0xf0450
movl -0x63c(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0xe7301
leaq -0x210(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0xf0ed0
movl -0x63c(%rbp), %eax
andl $0x100, %eax # imm = 0x100
cmpl $0x0, %eax
jne 0xe7388
movq -0x628(%rbp), %rdi
movl $0x2e, %esi
callq 0x293d0
movq %rax, -0x648(%rbp)
cmpq $0x0, %rax
je 0xe7388
movl -0x63c(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0xe7360
movq -0x628(%rbp), %rdi
callq 0xe75b0
movq %rax, -0x660(%rbp)
leaq 0x78816(%rip), %rax # 0x15fb6d
movq %rax, -0x658(%rbp)
jmp 0xe7386
movq -0x648(%rbp), %rax
movq -0x628(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x660(%rbp)
movq -0x638(%rbp), %rax
movq %rax, -0x658(%rbp)
jmp 0xe73a9
movq -0x628(%rbp), %rdi
callq 0xe75b0
movq %rax, -0x660(%rbp)
movq -0x638(%rbp), %rax
movq %rax, -0x658(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x29320
addq -0x660(%rbp), %rax
movq %rax, -0x680(%rbp)
movq -0x658(%rbp), %rdi
callq 0x29320
movq %rax, %rcx
movq -0x680(%rbp), %rax
addq %rcx, %rax
cmpq $0x200, %rax # imm = 0x200
jae 0xe73f5
cmpq $0x100, -0x660(%rbp) # imm = 0x100
jb 0xe748d
movl -0x63c(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0xe7415
jmp 0xe7405
movq $0x0, -0x618(%rbp)
jmp 0xe7579
movq -0x650(%rbp), %rdi
callq 0xe75b0
movq %rax, -0x678(%rbp)
jmp 0xe742a
movq -0x620(%rbp), %rax
movq %rax, -0x690(%rbp)
movq -0x650(%rbp), %rax
movq %rax, -0x688(%rbp)
cmpq $0x1ff, -0x678(%rbp) # imm = 0x1FF
jae 0xe7463
movq -0x678(%rbp), %rax
movq %rax, -0x698(%rbp)
jmp 0xe7471
movl $0x1ff, %eax # imm = 0x1FF
movq %rax, -0x698(%rbp)
jmp 0xe7471
movq -0x688(%rbp), %rsi
movq -0x690(%rbp), %rdi
movq -0x698(%rbp), %rdx
callq 0x155850
jmp 0xe7508
movq -0x620(%rbp), %rax
cmpq -0x650(%rbp), %rax
jne 0xe74c5
leaq -0x410(%rbp), %rdi
movq -0x628(%rbp), %rsi
movq -0x660(%rbp), %rdx
callq 0x29120
leaq -0x410(%rbp), %rax
movq %rax, -0x628(%rbp)
movq -0x620(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0x296d0
movq %rax, %rdi
movq -0x628(%rbp), %rsi
movq -0x660(%rbp), %rdx
callq 0x155850
movq %rax, -0x648(%rbp)
movq -0x648(%rbp), %rdi
movq -0x658(%rbp), %rsi
callq 0x296d0
movl -0x63c(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0xe752f
movq -0x620(%rbp), %rdi
movq -0x620(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xfccf0
jmp 0xe7569
movl -0x63c(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0xe7567
leaq -0x410(%rbp), %rdi
movq -0x620(%rbp), %rsi
callq 0x296d0
movq -0x620(%rbp), %rdi
leaq -0x410(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xfcaf0
jmp 0xe7569
jmp 0xe756b
movq -0x620(%rbp), %rax
movq %rax, -0x618(%rbp)
movq -0x618(%rbp), %rax
movq %rax, -0x6a0(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xe75a9
movq -0x6a0(%rbp), %rax
addq $0x6a0, %rsp # imm = 0x6A0
popq %rbp
retq
callq 0x29230
nop
| fn_format:
push rbp
mov rbp, rsp
sub rsp, 6A0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_620], rdi
mov [rbp+var_628], rsi
mov [rbp+var_630], rdx
mov [rbp+var_638], rcx
mov [rbp+var_63C], r8d
jmp short $+2
loc_E719D:
jmp short $+2
loc_E719F:
jmp short $+2
loc_E71A1:
jmp short $+2
loc_E71A3:
jmp short $+2
loc_E71A5:
lea rdi, [rbp+var_210]
mov rsi, [rbp+var_628]
mov [rbp+var_650], rsi
lea rdx, [rbp+var_668]
call dirname_part
mov [rbp+var_660], rax
add rax, [rbp+var_628]
mov [rbp+var_628], rax
cmp [rbp+var_660], 0
jz short loc_E71F3
mov eax, [rbp+var_63C]
and eax, 1
cmp eax, 0
jz short loc_E720F
loc_E71F3:
lea rdi, [rbp+var_210]
mov rsi, [rbp+var_630]
xor eax, eax
mov edx, eax
call convert_dirname
jmp loc_E72BF
loc_E720F:
mov eax, [rbp+var_63C]
and eax, 80h
cmp eax, 0
jz loc_E72BD
lea rdi, [rbp+var_210]
call test_if_hard_path
cmp eax, 0
jnz loc_E72BD
lea rdi, [rbp+var_610]
xor esi, esi
mov edx, 200h
call _memset
mov [rbp+var_610], 2
lea rdi, [rbp+var_410]
lea rsi, [rbp+var_210]
mov edx, 1FFh
call strmake
mov [rbp+var_670], rax
lea rdi, [rbp+var_210]
mov rsi, [rbp+var_630]
xor eax, eax
mov edx, eax
call convert_dirname
mov [rbp+var_648], rax
mov rdi, [rbp+var_648]
lea rsi, [rbp+var_410]
mov rax, [rbp+var_648]
lea rcx, [rbp+var_210]
sub rax, rcx
cdqe
mov edx, 1FFh
sub rdx, rax
call strmake
loc_E72BD:
jmp short $+2
loc_E72BF:
mov eax, [rbp+var_63C]
and eax, 8
cmp eax, 0
jz short loc_E72E0
lea rdi, [rbp+var_210]
lea rsi, [rbp+var_210]
call pack_dirname
loc_E72E0:
mov eax, [rbp+var_63C]
and eax, 4
cmp eax, 0
jz short loc_E7301
lea rdi, [rbp+var_210]
lea rsi, [rbp+var_210]
call unpack_dirname
loc_E7301:
mov eax, [rbp+var_63C]
and eax, 100h
cmp eax, 0
jnz short loc_E7388
mov rdi, [rbp+var_628]
mov esi, 2Eh ; '.'
call _strchr
mov [rbp+var_648], rax
cmp rax, 0
jz short loc_E7388
mov eax, [rbp+var_63C]
and eax, 2
cmp eax, 0
jnz short loc_E7360
mov rdi, [rbp+var_628]
call strlength
mov [rbp+var_660], rax
lea rax, asc_15FB69+4; ""
mov [rbp+var_658], rax
jmp short loc_E7386
loc_E7360:
mov rax, [rbp+var_648]
mov rcx, [rbp+var_628]
sub rax, rcx
mov [rbp+var_660], rax
mov rax, [rbp+var_638]
mov [rbp+var_658], rax
loc_E7386:
jmp short loc_E73A9
loc_E7388:
mov rdi, [rbp+var_628]
call strlength
mov [rbp+var_660], rax
mov rax, [rbp+var_638]
mov [rbp+var_658], rax
loc_E73A9:
lea rdi, [rbp+var_210]
call _strlen
add rax, [rbp+var_660]
mov [rbp+var_680], rax
mov rdi, [rbp+var_658]
call _strlen
mov rcx, rax
mov rax, [rbp+var_680]
add rax, rcx
cmp rax, 200h
jnb short loc_E73F5
cmp [rbp+var_660], 100h
jb loc_E748D
loc_E73F5:
mov eax, [rbp+var_63C]
and eax, 40h
cmp eax, 0
jz short loc_E7415
jmp short $+2
loc_E7405:
mov [rbp+var_618], 0
jmp loc_E7579
loc_E7415:
mov rdi, [rbp+var_650]
call strlength
mov [rbp+var_678], rax
jmp short $+2
loc_E742A:
mov rax, [rbp+var_620]
mov [rbp+var_690], rax
mov rax, [rbp+var_650]
mov [rbp+var_688], rax
cmp [rbp+var_678], 1FFh
jnb short loc_E7463
mov rax, [rbp+var_678]
mov [rbp+var_698], rax
jmp short loc_E7471
loc_E7463:
mov eax, 1FFh
mov [rbp+var_698], rax
jmp short $+2
loc_E7471:
mov rsi, [rbp+var_688]
mov rdi, [rbp+var_690]
mov rdx, [rbp+var_698]
call strmake
jmp short loc_E7508
loc_E748D:
mov rax, [rbp+var_620]
cmp rax, [rbp+var_650]
jnz short loc_E74C5
lea rdi, [rbp+var_410]
mov rsi, [rbp+var_628]
mov rdx, [rbp+var_660]
call _memmove
lea rax, [rbp+var_410]
mov [rbp+var_628], rax
loc_E74C5:
mov rdi, [rbp+var_620]
lea rsi, [rbp+var_210]
call _stpcpy
mov rdi, rax
mov rsi, [rbp+var_628]
mov rdx, [rbp+var_660]
call strmake
mov [rbp+var_648], rax
mov rdi, [rbp+var_648]
mov rsi, [rbp+var_658]
call _stpcpy
loc_E7508:
mov eax, [rbp+var_63C]
and eax, 20h
cmp eax, 0
jz short loc_E752F
mov rdi, [rbp+var_620]
mov rsi, [rbp+var_620]
xor eax, eax
mov edx, eax
call my_realpath
jmp short loc_E7569
loc_E752F:
mov eax, [rbp+var_63C]
and eax, 10h
cmp eax, 0
jz short loc_E7567
lea rdi, [rbp+var_410]
mov rsi, [rbp+var_620]
call _stpcpy
mov rdi, [rbp+var_620]
lea rsi, [rbp+var_410]
xor eax, eax
mov edx, eax
call my_readlink
loc_E7567:
jmp short $+2
loc_E7569:
jmp short $+2
loc_E756B:
mov rax, [rbp+var_620]
mov [rbp+var_618], rax
loc_E7579:
mov rax, [rbp+var_618]
mov [rbp+var_6A0], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_E75A9
mov rax, [rbp+var_6A0]
add rsp, 6A0h
pop rbp
retn
loc_E75A9:
call ___stack_chk_fail
| _BYTE * fn_format(_BYTE *a1, _BYTE *a2, long long a3, char *a4, int a5)
{
long long v5; // rax
long long v6; // rax
unsigned long long v8; // [rsp+20h] [rbp-680h]
unsigned long long v9; // [rsp+28h] [rbp-678h]
long long v10; // [rsp+38h] [rbp-668h] BYREF
unsigned long long v11; // [rsp+40h] [rbp-660h]
char *v12; // [rsp+48h] [rbp-658h]
_BYTE *v13; // [rsp+50h] [rbp-650h]
_BYTE *v14; // [rsp+58h] [rbp-648h]
int v15; // [rsp+64h] [rbp-63Ch]
char *v16; // [rsp+68h] [rbp-638h]
long long v17; // [rsp+70h] [rbp-630h]
_BYTE *v18; // [rsp+78h] [rbp-628h]
_BYTE *v19; // [rsp+80h] [rbp-620h]
char v21[512]; // [rsp+90h] [rbp-610h] BYREF
_BYTE v22[512]; // [rsp+290h] [rbp-410h] BYREF
_BYTE v23[520]; // [rsp+490h] [rbp-210h] BYREF
unsigned long long v24; // [rsp+698h] [rbp-8h]
v24 = __readfsqword(0x28u);
v19 = a1;
v18 = a2;
v17 = a3;
v16 = a4;
v15 = a5;
v13 = a2;
v11 = dirname_part((long long)v23, a2, &v10);
v18 += v11;
if ( v11 && (v15 & 1) == 0 )
{
if ( (v15 & 0x80) != 0 && !(unsigned int)test_if_hard_path(v23) )
{
memset(v21, 0LL, sizeof(v21));
v21[0] = 2;
strmake(v22, v23, 511LL);
v14 = convert_dirname(v23, v17, 0LL);
strmake(v14, v22, 511LL - (int)((_DWORD)v14 - (unsigned int)v23));
}
}
else
{
convert_dirname(v23, v17, 0LL);
}
if ( (v15 & 8) != 0 )
pack_dirname(v23, v23);
if ( (v15 & 4) != 0 )
unpack_dirname(v23, v23);
if ( (v15 & 0x100) != 0 || (v14 = (_BYTE *)strchr(v18, 46LL)) == 0LL )
{
v11 = strlength(v18);
v12 = v16;
}
else if ( (v15 & 2) != 0 )
{
v11 = v14 - v18;
v12 = v16;
}
else
{
v11 = strlength(v18);
v12 = "";
}
v5 = strlen(v23);
v8 = v11 + v5;
if ( strlen(v12) + v8 < 0x200 && v11 < 0x100 )
{
if ( v19 == v13 )
{
memmove(v22, v18, v11);
v18 = v22;
}
v6 = stpcpy(v19, v23);
v14 = (_BYTE *)strmake(v6, v18, v11);
stpcpy(v14, v12);
}
else
{
if ( (v15 & 0x40) != 0 )
return 0LL;
v9 = strlength(v13);
if ( v9 >= 0x1FF )
strmake(v19, v13, 511LL);
else
strmake(v19, v13, v9);
}
if ( (v15 & 0x20) != 0 )
{
my_realpath(v19, v19, 0LL);
}
else if ( (v15 & 0x10) != 0 )
{
stpcpy(v22, v19);
my_readlink(v19, v22, 0LL);
}
return v19;
}
| fn_format:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x6a0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x620],RDI
MOV qword ptr [RBP + -0x628],RSI
MOV qword ptr [RBP + -0x630],RDX
MOV qword ptr [RBP + -0x638],RCX
MOV dword ptr [RBP + -0x63c],R8D
JMP 0x001e719d
LAB_001e719d:
JMP 0x001e719f
LAB_001e719f:
JMP 0x001e71a1
LAB_001e71a1:
JMP 0x001e71a3
LAB_001e71a3:
JMP 0x001e71a5
LAB_001e71a5:
LEA RDI,[RBP + -0x210]
MOV RSI,qword ptr [RBP + -0x628]
MOV qword ptr [RBP + -0x650],RSI
LEA RDX,[RBP + -0x668]
CALL 0x001e7040
MOV qword ptr [RBP + -0x660],RAX
ADD RAX,qword ptr [RBP + -0x628]
MOV qword ptr [RBP + -0x628],RAX
CMP qword ptr [RBP + -0x660],0x0
JZ 0x001e71f3
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001e720f
LAB_001e71f3:
LEA RDI,[RBP + -0x210]
MOV RSI,qword ptr [RBP + -0x630]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001e70a0
JMP 0x001e72bf
LAB_001e720f:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x80
CMP EAX,0x0
JZ 0x001e72bd
LEA RDI,[RBP + -0x210]
CALL 0x001f7f10
CMP EAX,0x0
JNZ 0x001e72bd
LEA RDI,[RBP + -0x610]
XOR ESI,ESI
MOV EDX,0x200
CALL 0x00129280
MOV byte ptr [RBP + -0x610],0x2
LEA RDI,[RBP + -0x410]
LEA RSI,[RBP + -0x210]
MOV EDX,0x1ff
CALL 0x00255850
MOV qword ptr [RBP + -0x670],RAX
LEA RDI,[RBP + -0x210]
MOV RSI,qword ptr [RBP + -0x630]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001e70a0
MOV qword ptr [RBP + -0x648],RAX
MOV RDI,qword ptr [RBP + -0x648]
LEA RSI,[RBP + -0x410]
MOV RAX,qword ptr [RBP + -0x648]
LEA RCX,[RBP + -0x210]
SUB RAX,RCX
CDQE
MOV EDX,0x1ff
SUB RDX,RAX
CALL 0x00255850
LAB_001e72bd:
JMP 0x001e72bf
LAB_001e72bf:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x8
CMP EAX,0x0
JZ 0x001e72e0
LEA RDI,[RBP + -0x210]
LEA RSI,[RBP + -0x210]
CALL 0x001f0450
LAB_001e72e0:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x4
CMP EAX,0x0
JZ 0x001e7301
LEA RDI,[RBP + -0x210]
LEA RSI,[RBP + -0x210]
CALL 0x001f0ed0
LAB_001e7301:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x100
CMP EAX,0x0
JNZ 0x001e7388
MOV RDI,qword ptr [RBP + -0x628]
MOV ESI,0x2e
CALL 0x001293d0
MOV qword ptr [RBP + -0x648],RAX
CMP RAX,0x0
JZ 0x001e7388
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x2
CMP EAX,0x0
JNZ 0x001e7360
MOV RDI,qword ptr [RBP + -0x628]
CALL 0x001e75b0
MOV qword ptr [RBP + -0x660],RAX
LEA RAX,[0x25fb6d]
MOV qword ptr [RBP + -0x658],RAX
JMP 0x001e7386
LAB_001e7360:
MOV RAX,qword ptr [RBP + -0x648]
MOV RCX,qword ptr [RBP + -0x628]
SUB RAX,RCX
MOV qword ptr [RBP + -0x660],RAX
MOV RAX,qword ptr [RBP + -0x638]
MOV qword ptr [RBP + -0x658],RAX
LAB_001e7386:
JMP 0x001e73a9
LAB_001e7388:
MOV RDI,qword ptr [RBP + -0x628]
CALL 0x001e75b0
MOV qword ptr [RBP + -0x660],RAX
MOV RAX,qword ptr [RBP + -0x638]
MOV qword ptr [RBP + -0x658],RAX
LAB_001e73a9:
LEA RDI,[RBP + -0x210]
CALL 0x00129320
ADD RAX,qword ptr [RBP + -0x660]
MOV qword ptr [RBP + -0x680],RAX
MOV RDI,qword ptr [RBP + -0x658]
CALL 0x00129320
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x680]
ADD RAX,RCX
CMP RAX,0x200
JNC 0x001e73f5
CMP qword ptr [RBP + -0x660],0x100
JC 0x001e748d
LAB_001e73f5:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x40
CMP EAX,0x0
JZ 0x001e7415
JMP 0x001e7405
LAB_001e7405:
MOV qword ptr [RBP + -0x618],0x0
JMP 0x001e7579
LAB_001e7415:
MOV RDI,qword ptr [RBP + -0x650]
CALL 0x001e75b0
MOV qword ptr [RBP + -0x678],RAX
JMP 0x001e742a
LAB_001e742a:
MOV RAX,qword ptr [RBP + -0x620]
MOV qword ptr [RBP + -0x690],RAX
MOV RAX,qword ptr [RBP + -0x650]
MOV qword ptr [RBP + -0x688],RAX
CMP qword ptr [RBP + -0x678],0x1ff
JNC 0x001e7463
MOV RAX,qword ptr [RBP + -0x678]
MOV qword ptr [RBP + -0x698],RAX
JMP 0x001e7471
LAB_001e7463:
MOV EAX,0x1ff
MOV qword ptr [RBP + -0x698],RAX
JMP 0x001e7471
LAB_001e7471:
MOV RSI,qword ptr [RBP + -0x688]
MOV RDI,qword ptr [RBP + -0x690]
MOV RDX,qword ptr [RBP + -0x698]
CALL 0x00255850
JMP 0x001e7508
LAB_001e748d:
MOV RAX,qword ptr [RBP + -0x620]
CMP RAX,qword ptr [RBP + -0x650]
JNZ 0x001e74c5
LEA RDI,[RBP + -0x410]
MOV RSI,qword ptr [RBP + -0x628]
MOV RDX,qword ptr [RBP + -0x660]
CALL 0x00129120
LEA RAX,[RBP + -0x410]
MOV qword ptr [RBP + -0x628],RAX
LAB_001e74c5:
MOV RDI,qword ptr [RBP + -0x620]
LEA RSI,[RBP + -0x210]
CALL 0x001296d0
MOV RDI,RAX
MOV RSI,qword ptr [RBP + -0x628]
MOV RDX,qword ptr [RBP + -0x660]
CALL 0x00255850
MOV qword ptr [RBP + -0x648],RAX
MOV RDI,qword ptr [RBP + -0x648]
MOV RSI,qword ptr [RBP + -0x658]
CALL 0x001296d0
LAB_001e7508:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x20
CMP EAX,0x0
JZ 0x001e752f
MOV RDI,qword ptr [RBP + -0x620]
MOV RSI,qword ptr [RBP + -0x620]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001fccf0
JMP 0x001e7569
LAB_001e752f:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x10
CMP EAX,0x0
JZ 0x001e7567
LEA RDI,[RBP + -0x410]
MOV RSI,qword ptr [RBP + -0x620]
CALL 0x001296d0
MOV RDI,qword ptr [RBP + -0x620]
LEA RSI,[RBP + -0x410]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001fcaf0
LAB_001e7567:
JMP 0x001e7569
LAB_001e7569:
JMP 0x001e756b
LAB_001e756b:
MOV RAX,qword ptr [RBP + -0x620]
MOV qword ptr [RBP + -0x618],RAX
LAB_001e7579:
MOV RAX,qword ptr [RBP + -0x618]
MOV qword ptr [RBP + -0x6a0],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001e75a9
MOV RAX,qword ptr [RBP + -0x6a0]
ADD RSP,0x6a0
POP RBP
RET
LAB_001e75a9:
CALL 0x00129230
|
char * fn_format(char *param_1,char *param_2,int8 param_3,char *param_4,uint param_5)
{
int iVar1;
size_t sVar2;
long lVar3;
char *pcVar4;
long in_FS_OFFSET;
ulong local_6a0;
int1 local_670 [8];
ulong local_668;
char *local_660;
char *local_658;
char *local_650;
uint local_644;
char *local_640;
int8 local_638;
char *local_630;
char *local_628;
char *local_620;
int1 local_618 [512];
char local_418 [512];
char local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_658 = param_2;
local_644 = param_5;
local_640 = param_4;
local_638 = param_3;
local_630 = param_2;
local_628 = param_1;
local_668 = dirname_part(local_218,param_2,local_670);
local_630 = local_630 + local_668;
if ((local_668 == 0) || ((local_644 & 1) != 0)) {
convert_dirname(local_218,local_638,0);
}
else if (((local_644 & 0x80) != 0) && (iVar1 = test_if_hard_path(local_218), iVar1 == 0)) {
memset(local_618,0,0x200);
local_618[0] = 2;
strmake(local_418,local_218,0x1ff);
local_650 = (char *)convert_dirname(local_218,local_638,0);
strmake(local_650,local_418,0x1ff - (long)((int)local_650 - (int)local_218));
}
if ((local_644 & 8) != 0) {
pack_dirname(local_218,local_218);
}
if ((local_644 & 4) != 0) {
unpack_dirname(local_218,local_218);
}
if (((local_644 & 0x100) == 0) && (local_650 = strchr(local_630,0x2e), local_650 != (char *)0x0))
{
if ((local_644 & 2) == 0) {
local_668 = strlength(local_630);
local_660 = "";
}
else {
local_668 = (long)local_650 - (long)local_630;
local_660 = local_640;
}
}
else {
local_668 = strlength(local_630);
local_660 = local_640;
}
sVar2 = strlen(local_218);
lVar3 = sVar2 + local_668;
sVar2 = strlen(local_660);
if ((lVar3 + sVar2 < 0x200) && (local_668 < 0x100)) {
if (local_628 == local_658) {
memmove(local_418,local_630,local_668);
local_630 = local_418;
}
pcVar4 = stpcpy(local_628,local_218);
local_650 = (char *)strmake(pcVar4,local_630,local_668);
stpcpy(local_650,local_660);
}
else {
if ((local_644 & 0x40) != 0) {
local_620 = (char *)0x0;
goto LAB_001e7579;
}
local_6a0 = strlength(local_658);
if (0x1fe < local_6a0) {
local_6a0 = 0x1ff;
}
strmake(local_628,local_658,local_6a0);
}
if ((local_644 & 0x20) == 0) {
if ((local_644 & 0x10) != 0) {
stpcpy(local_418,local_628);
my_readlink(local_628,local_418,0);
}
}
else {
my_realpath(local_628,local_628,0);
}
local_620 = local_628;
LAB_001e7579:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_620;
}
| |
36,290 | JS_GetPropertyInternalWithIC | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_GetPropertyInternalWithIC(JSContext *ctx, JSValue obj,
JSAtom prop, JSValue this_obj,
JSInlineCacheUpdate *icu,
BOOL throw_ref_error)
{
uint32_t tag, offset;
JSObject *p;
tag = JS_VALUE_GET_TAG(obj);
if (unlikely(tag != JS_TAG_OBJECT))
goto slow_path;
p = JS_VALUE_GET_OBJ(obj);
offset = get_ic_prop_offset(icu, p->shape);
if (likely(offset != INLINE_CACHE_MISS))
return js_dup(p->prop[offset].u.value);
slow_path:
return JS_GetPropertyInternal2(ctx, obj, prop, this_obj, icu, throw_ref_error);
} | O1 | c | JS_GetPropertyInternalWithIC:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, 0x8(%rsp)
movq %r8, %r14
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
movq 0x60(%rsp), %rbx
movq %rsi, 0x10(%rsp)
cmpl $-0x1, %r12d
jne 0x43cb0
leaq 0x10(%rsp), %rdi
leaq 0x18(%rsp), %rdx
movq %rbx, %rsi
callq 0x135c9
testb $0x1, %al
je 0x43cd1
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl %ebp, %ecx
movq %r14, %r8
movq 0x8(%rsp), %r9
pushq $0x0
pushq %rbx
callq 0x26fff
addq $0x38, %rsp
jmp 0x43cdf
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| JS_GetPropertyInternalWithIC:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov [rsp+58h+var_50], r9
mov r14, r8
mov ebp, ecx
mov r12, rdx
mov r13, rsi
mov r15, rdi
mov rbx, [rsp+58h+arg_0]
mov [rsp+58h+var_48], rsi
cmp r12d, 0FFFFFFFFh
jnz short loc_43CB0
lea rdi, [rsp+58h+var_48]
lea rdx, [rsp+58h+var_40]
mov rsi, rbx
call JS_GetPropertyInternalWithIC_cold_1
test al, 1
jz short loc_43CD1
loc_43CB0:
mov rdi, r15
mov rsi, r13
mov rdx, r12
mov ecx, ebp
mov r8, r14
mov r9, [rsp+58h+var_50]
push 0
push rbx
call JS_GetPropertyInternal2
add rsp, 38h
jmp short loc_43CDF
loc_43CD1:
mov rax, [rsp+58h+var_40]
mov rdx, [rsp+58h+var_38]
add rsp, 28h
loc_43CDF:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long JS_GetPropertyInternalWithIC(
long long a1,
long long a2,
long long a3,
unsigned int a4,
long long a5,
long long a6,
unsigned int *a7)
{
long long v12; // [rsp+10h] [rbp-48h] BYREF
long long v13; // [rsp+18h] [rbp-40h] BYREF
v12 = a2;
if ( (_DWORD)a3 == -1 && (JS_GetPropertyInternalWithIC_cold_1(&v12, a7, &v13) & 1) == 0 )
return v13;
else
return JS_GetPropertyInternal2(a1, a2, a3, a4, a5, a6, (long long)a7, 0);
}
| JS_GetPropertyInternalWithIC:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV qword ptr [RSP + 0x8],R9
MOV R14,R8
MOV EBP,ECX
MOV R12,RDX
MOV R13,RSI
MOV R15,RDI
MOV RBX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x10],RSI
CMP R12D,-0x1
JNZ 0x00143cb0
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x18]
MOV RSI,RBX
CALL 0x001135c9
TEST AL,0x1
JZ 0x00143cd1
LAB_00143cb0:
MOV RDI,R15
MOV RSI,R13
MOV RDX,R12
MOV ECX,EBP
MOV R8,R14
MOV R9,qword ptr [RSP + 0x8]
PUSH 0x0
PUSH RBX
CALL 0x00126fff
ADD RSP,0x38
JMP 0x00143cdf
LAB_00143cd1:
MOV RAX,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x20]
ADD RSP,0x28
LAB_00143cdf:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
JS_GetPropertyInternalWithIC
(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 param_5,int8 param_6,int8 param_7)
{
ulong uVar1;
int8 local_48;
int8 local_40 [2];
local_48 = param_2;
if (((int)param_3 != -1) ||
(uVar1 = JS_GetPropertyInternalWithIC_cold_1(&local_48,param_7,local_40), (uVar1 & 1) != 0)) {
local_40[0] = JS_GetPropertyInternal2(param_1,param_2,param_3,param_4,param_5,param_6,param_7,0)
;
}
return local_40[0];
}
| |
36,291 | minja::Value::operator>(minja::Value const&) const | monkey531[P]llama/common/./minja.hpp | bool operator>(const Value & other) const {
if (is_null())
throw std::runtime_error("Undefined value or reference");
if (is_number() && other.is_number()) return get<double>() > other.get<double>();
if (is_string() && other.is_string()) return get<std::string>() > other.get<std::string>();
throw std::runtime_error("Cannot compare values: " + dump() + " > " + other.dump());
} | O0 | cpp | minja::Value::operator>(minja::Value const&) const:
subq $0x138, %rsp # imm = 0x138
movq %rdi, 0x128(%rsp)
movq %rsi, 0x120(%rsp)
movq 0x128(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0xa18f0
testb $0x1, %al
jne 0xe5c3f
jmp 0xe5c9d
movl $0x10, %edi
callq 0x50540
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x18(%rsp)
leaq 0xe708d(%rip), %rsi # 0x1ccce8
callq 0x50340
jmp 0xe5c62
movq 0x18(%rsp), %rdi
movq 0x16e342(%rip), %rsi # 0x253fb0
movq 0x16e303(%rip), %rdx # 0x253f78
callq 0x508f0
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
callq 0x50c40
jmp 0xe5f62
movq 0x20(%rsp), %rdi
callq 0xa4840
testb $0x1, %al
jne 0xe5cad
jmp 0xe5cfb
movq 0x120(%rsp), %rdi
callq 0xa4840
testb $0x1, %al
jne 0xe5cc0
jmp 0xe5cfb
movq 0x20(%rsp), %rdi
callq 0x9fc90
movsd %xmm0, 0x10(%rsp)
movq 0x120(%rsp), %rdi
callq 0x9fc90
movaps %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
ucomisd %xmm1, %xmm0
seta %al
andb $0x1, %al
movb %al, 0x137(%rsp)
jmp 0xe5f51
movq 0x20(%rsp), %rdi
callq 0xa1f30
testb $0x1, %al
jne 0xe5d0e
jmp 0xe5db0
movq 0x120(%rsp), %rdi
callq 0xa1f30
testb $0x1, %al
jne 0xe5d24
jmp 0xe5db0
movq 0x20(%rsp), %rsi
leaq 0xf0(%rsp), %rdi
callq 0xa4860
movq 0x120(%rsp), %rsi
leaq 0xd0(%rsp), %rdi
callq 0xa4860
jmp 0xe5d4d
leaq 0xf0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0xe6380
andb $0x1, %al
movb %al, 0x137(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x510c0
leaq 0xf0(%rsp), %rdi
callq 0x510c0
jmp 0xe5f51
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x510c0
jmp 0xe5f62
movb $0x1, 0x2f(%rsp)
movl $0x10, %edi
callq 0x50540
movq 0x20(%rsp), %rsi
movq %rax, 0x8(%rsp)
leaq 0x50(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x9feb0
jmp 0xe5ddc
leaq 0xebe59(%rip), %rsi # 0x1d1c3c
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x7a6e0
jmp 0xe5df4
leaq 0xebe5d(%rip), %rdx # 0x1d1c58
leaq 0x90(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xae4c0
jmp 0xe5e0f
movq 0x120(%rsp), %rsi
leaq 0x30(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x9feb0
jmp 0xe5e2a
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0xae510
jmp 0xe5e46
movq 0x8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x50390
jmp 0xe5e5a
movq 0x8(%rsp), %rdi
movb $0x0, 0x2f(%rsp)
movq 0x16e145(%rip), %rsi # 0x253fb0
movq 0x16e106(%rip), %rdx # 0x253f78
callq 0x508f0
jmp 0xe5f6f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
jmp 0xe5f3c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
jmp 0xe5f32
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
jmp 0xe5f28
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
jmp 0xe5f1b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
jmp 0xe5f11
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0x510c0
leaq 0x30(%rsp), %rdi
callq 0x510c0
leaq 0x90(%rsp), %rdi
callq 0x510c0
leaq 0x70(%rsp), %rdi
callq 0x510c0
leaq 0x50(%rsp), %rdi
callq 0x510c0
testb $0x1, 0x2f(%rsp)
jne 0xe5f45
jmp 0xe5f4f
movq 0x8(%rsp), %rdi
callq 0x50c40
jmp 0xe5f62
movb 0x137(%rsp), %al
andb $0x1, %al
addq $0x138, %rsp # imm = 0x138
retq
movq 0x118(%rsp), %rdi
callq 0x50940
nop
| _ZNK5minja5ValuegtERKS0_:
sub rsp, 138h
mov [rsp+138h+var_10], rdi
mov [rsp+138h+var_18], rsi
mov rdi, [rsp+138h+var_10]; this
mov [rsp+138h+var_118], rdi; __int16
call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void)
test al, 1
jnz short loc_E5C3F
jmp short loc_E5C9D
loc_E5C3F:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rsp+138h+var_120], rax
lea rsi, aUndefinedValue; "Undefined value or reference"
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short $+2
loc_E5C62:
mov rdi, [rsp+138h+var_120]; void *
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
mov rdi, [rsp+138h+var_120]; void *
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
call ___cxa_free_exception
jmp loc_E5F62
loc_E5C9D:
mov rdi, [rsp+138h+var_118]; this
call _ZNK5minja5Value9is_numberEv; minja::Value::is_number(void)
test al, 1
jnz short loc_E5CAD
jmp short loc_E5CFB
loc_E5CAD:
mov rdi, [rsp+138h+var_18]; this
call _ZNK5minja5Value9is_numberEv; minja::Value::is_number(void)
test al, 1
jnz short loc_E5CC0
jmp short loc_E5CFB
loc_E5CC0:
mov rdi, [rsp+138h+var_118]
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd [rsp+138h+var_128], xmm0
mov rdi, [rsp+138h+var_18]
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movaps xmm1, xmm0
movsd xmm0, [rsp+138h+var_128]
ucomisd xmm0, xmm1
setnbe al
and al, 1
mov [rsp+138h+var_1], al
jmp loc_E5F51
loc_E5CFB:
mov rdi, [rsp+138h+var_118]; this
call _ZNK5minja5Value9is_stringEv; minja::Value::is_string(void)
test al, 1
jnz short loc_E5D0E
jmp loc_E5DB0
loc_E5D0E:
mov rdi, [rsp+138h+var_18]; this
call _ZNK5minja5Value9is_stringEv; minja::Value::is_string(void)
test al, 1
jnz short loc_E5D24
jmp loc_E5DB0
loc_E5D24:
mov rsi, [rsp+138h+var_118]; int
lea rdi, [rsp+138h+var_48]; int
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
mov rsi, [rsp+138h+var_18]; int
lea rdi, [rsp+138h+var_68]; int
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
jmp short $+2
loc_E5D4D:
lea rdi, [rsp+138h+var_48]
lea rsi, [rsp+138h+var_68]
call _ZStgtIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_; std::operator><char>(std::string const&,std::string const&)
and al, 1
mov [rsp+138h+var_1], al
lea rdi, [rsp+138h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+138h+var_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_E5F51
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
lea rdi, [rsp+138h+var_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_E5F62
loc_E5DB0:
mov [rsp+138h+var_109], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rsi, [rsp+138h+var_118]
mov [rsp+138h+var_130], rax
lea rdi, [rsp+138h+var_E8]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_E5DDC:
lea rsi, aCannotCompareV; "Cannot compare values: "
lea rdi, [rsp+138h+var_C8]
lea rdx, [rsp+138h+var_E8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_E5DF4:
lea rdx, asc_1D1C58; " > "
lea rdi, [rsp+138h+var_A8]
lea rsi, [rsp+138h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_E5E0F:
mov rsi, [rsp+138h+var_18]
lea rdi, [rsp+138h+var_108]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_E5E2A:
lea rdi, [rsp+138h+var_88]
lea rsi, [rsp+138h+var_A8]
lea rdx, [rsp+138h+var_108]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
jmp short $+2
loc_E5E46:
mov rdi, [rsp+138h+var_130]
lea rsi, [rsp+138h+var_88]
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
jmp short $+2
loc_E5E5A:
mov rdi, [rsp+138h+var_130]; void *
mov [rsp+138h+var_109], 0
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp loc_E5F6F
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
jmp loc_E5F3C
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
jmp loc_E5F32
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
jmp short loc_E5F28
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
jmp short loc_E5F1B
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
jmp short loc_E5F11
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
lea rdi, [rsp+138h+var_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_E5F11:
lea rdi, [rsp+138h+var_108]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_E5F1B:
lea rdi, [rsp+138h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_E5F28:
lea rdi, [rsp+138h+var_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_E5F32:
lea rdi, [rsp+138h+var_E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_E5F3C:
test [rsp+138h+var_109], 1
jnz short loc_E5F45
jmp short loc_E5F4F
loc_E5F45:
mov rdi, [rsp+138h+var_130]; void *
call ___cxa_free_exception
loc_E5F4F:
jmp short loc_E5F62
loc_E5F51:
mov al, [rsp+138h+var_1]
and al, 1
add rsp, 138h
retn
loc_E5F62:
mov rdi, [rsp+138h+var_20]
call __Unwind_Resume
loc_E5F6F:
nop
| char minja::Value::operator>(minja::Value *a1, minja::Value *a2)
{
void *v3; // [rsp+8h] [rbp-130h]
std::runtime_error *exception; // [rsp+18h] [rbp-120h]
_BYTE v5[32]; // [rsp+30h] [rbp-108h] BYREF
_BYTE v6[32]; // [rsp+50h] [rbp-E8h] BYREF
_BYTE v7[32]; // [rsp+70h] [rbp-C8h] BYREF
_BYTE v8[32]; // [rsp+90h] [rbp-A8h] BYREF
_BYTE v9[32]; // [rsp+B0h] [rbp-88h] BYREF
int v10[8]; // [rsp+D0h] [rbp-68h] BYREF
int v11[9]; // [rsp+F0h] [rbp-48h] BYREF
minja::Value *v12; // [rsp+120h] [rbp-18h]
minja::Value *v13; // [rsp+128h] [rbp-10h]
char v14; // [rsp+137h] [rbp-1h]
v13 = a1;
v12 = a2;
if ( (minja::Value::is_null(a1) & 1) != 0 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Undefined value or reference");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( (minja::Value::is_number(a1) & 1) != 0 && (minja::Value::is_number(v12) & 1) != 0 )
{
minja::Value::get<double>(a1);
minja::Value::get<double>(v12);
v14 = 0;
}
else
{
if ( !minja::Value::is_string(a1) || !minja::Value::is_string(v12) )
{
v3 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v6, (long long)a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v7, (long long)"Cannot compare values: ", (long long)v6);
std::operator+<char>((long long)v8, (long long)v7, (long long)" > ");
minja::Value::dump[abi:cxx11]((long long)v5, (long long)v12, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v9, (long long)v8, (long long)v5);
std::runtime_error::runtime_error(v3, v9);
__cxa_throw(
v3,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Value::get<std::string>(v11, a1);
minja::Value::get<std::string>(v10, v12);
v14 = std::operator><char>(v11, v10) & 1;
std::string::~string(v10);
std::string::~string(v11);
}
return v14 & 1;
}
| operator>:
SUB RSP,0x138
MOV qword ptr [RSP + 0x128],RDI
MOV qword ptr [RSP + 0x120],RSI
MOV RDI,qword ptr [RSP + 0x128]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x001a18f0
TEST AL,0x1
JNZ 0x001e5c3f
JMP 0x001e5c9d
LAB_001e5c3f:
MOV EDI,0x10
CALL 0x00150540
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RSP + 0x18],RAX
LAB_001e5c54:
LEA RSI,[0x2ccce8]
CALL 0x00150340
LAB_001e5c60:
JMP 0x001e5c62
LAB_001e5c62:
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [0x00353fb0]
MOV RDX,qword ptr [0x00353f78]
CALL 0x001508f0
LAB_001e5c9d:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x001a4840
TEST AL,0x1
JNZ 0x001e5cad
JMP 0x001e5cfb
LAB_001e5cad:
MOV RDI,qword ptr [RSP + 0x120]
CALL 0x001a4840
TEST AL,0x1
JNZ 0x001e5cc0
JMP 0x001e5cfb
LAB_001e5cc0:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x0019fc90
MOVSD qword ptr [RSP + 0x10],XMM0
MOV RDI,qword ptr [RSP + 0x120]
CALL 0x0019fc90
MOVAPS XMM1,XMM0
MOVSD XMM0,qword ptr [RSP + 0x10]
UCOMISD XMM0,XMM1
SETA AL
AND AL,0x1
MOV byte ptr [RSP + 0x137],AL
JMP 0x001e5f51
LAB_001e5cfb:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x001a1f30
TEST AL,0x1
JNZ 0x001e5d0e
JMP 0x001e5db0
LAB_001e5d0e:
MOV RDI,qword ptr [RSP + 0x120]
CALL 0x001a1f30
TEST AL,0x1
JNZ 0x001e5d24
JMP 0x001e5db0
LAB_001e5d24:
MOV RSI,qword ptr [RSP + 0x20]
LEA RDI,[RSP + 0xf0]
CALL 0x001a4860
MOV RSI,qword ptr [RSP + 0x120]
LAB_001e5d3e:
LEA RDI,[RSP + 0xd0]
CALL 0x001a4860
LAB_001e5d4b:
JMP 0x001e5d4d
LAB_001e5d4d:
LEA RDI,[RSP + 0xf0]
LEA RSI,[RSP + 0xd0]
CALL 0x001e6380
AND AL,0x1
MOV byte ptr [RSP + 0x137],AL
LEA RDI,[RSP + 0xd0]
CALL 0x001510c0
LEA RDI,[RSP + 0xf0]
CALL 0x001510c0
JMP 0x001e5f51
LAB_001e5db0:
MOV byte ptr [RSP + 0x2f],0x1
MOV EDI,0x10
CALL 0x00150540
MOV RSI,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
LAB_001e5dc9:
LEA RDI,[RSP + 0x50]
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0019feb0
JMP 0x001e5ddc
LAB_001e5ddc:
LEA RSI,[0x2d1c3c]
LEA RDI,[RSP + 0x70]
LEA RDX,[RSP + 0x50]
CALL 0x0017a6e0
JMP 0x001e5df4
LAB_001e5df4:
LEA RDX,[0x2d1c58]
LEA RDI,[RSP + 0x90]
LEA RSI,[RSP + 0x70]
CALL 0x001ae4c0
JMP 0x001e5e0f
LAB_001e5e0f:
MOV RSI,qword ptr [RSP + 0x120]
LAB_001e5e17:
LEA RDI,[RSP + 0x30]
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0019feb0
JMP 0x001e5e2a
LAB_001e5e2a:
LEA RDI,[RSP + 0xb0]
LEA RSI,[RSP + 0x90]
LEA RDX,[RSP + 0x30]
CALL 0x001ae510
JMP 0x001e5e46
LAB_001e5e46:
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0xb0]
CALL 0x00150390
JMP 0x001e5e5a
LAB_001e5e5a:
MOV RDI,qword ptr [RSP + 0x8]
MOV byte ptr [RSP + 0x2f],0x0
MOV RSI,qword ptr [0x00353fb0]
MOV RDX,qword ptr [0x00353f78]
CALL 0x001508f0
LAB_001e5f51:
MOV AL,byte ptr [RSP + 0x137]
AND AL,0x1
ADD RSP,0x138
RET
|
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */
ulong __thiscall minja::Value::operator>(Value *this,Value *param_1)
{
ulong uVar1;
int8 extraout_RAX;
int7 uVar3;
int7 extraout_var;
runtime_error *prVar2;
double dVar4;
double dVar5;
int1 local_108 [32];
int1 local_e8 [32];
char local_c8 [32];
string local_a8 [32];
string local_88 [32];
string local_68 [32];
string local_48 [48];
Value *local_18;
Value *local_10;
int1 local_1;
local_18 = param_1;
local_10 = this;
uVar1 = is_null(this);
if ((uVar1 & 1) != 0) {
prVar2 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e5c54 to 001e5c5f has its CatchHandler @ 001e5c7a */
std::runtime_error::runtime_error(prVar2,"Undefined value or reference");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar2,PTR_typeinfo_00353fb0,PTR__runtime_error_00353f78);
}
uVar1 = is_number(this);
if (((uVar1 & 1) == 0) || (uVar1 = is_number(local_18), (uVar1 & 1) == 0)) {
uVar1 = is_string(this);
if (((uVar1 & 1) == 0) || (uVar1 = is_string(local_18), (uVar1 & 1) == 0)) {
prVar2 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e5dc9 to 001e5dd9 has its CatchHandler @ 001e5e7c */
dump_abi_cxx11_((int)local_e8,SUB81(this,0));
/* try { // try from 001e5ddc to 001e5df1 has its CatchHandler @ 001e5e95 */
std::operator+(local_c8,(string *)"Cannot compare values: ");
/* try { // try from 001e5df4 to 001e5e0c has its CatchHandler @ 001e5eae */
std::operator+(local_a8,local_c8);
/* try { // try from 001e5e17 to 001e5e27 has its CatchHandler @ 001e5ec4 */
dump_abi_cxx11_((int)local_108,SUB81(local_18,0));
/* try { // try from 001e5e2a to 001e5e43 has its CatchHandler @ 001e5eda */
std::operator+(local_88,local_a8);
/* try { // try from 001e5e46 to 001e5e76 has its CatchHandler @ 001e5ef0 */
std::runtime_error::runtime_error(prVar2,local_88);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar2,PTR_typeinfo_00353fb0,PTR__runtime_error_00353f78);
}
get<std::__cxx11::string>();
/* try { // try from 001e5d3e to 001e5d4a has its CatchHandler @ 001e5d8a */
get<std::__cxx11::string>();
local_1 = std::operator>(local_48,local_68);
std::__cxx11::string::~string(local_68);
std::__cxx11::string::~string(local_48);
uVar3 = extraout_var;
}
else {
dVar4 = get<double>(this);
dVar5 = get<double>(local_18);
local_1 = dVar5 < dVar4;
uVar3 = (int7)((ulong)extraout_RAX >> 8);
}
return CONCAT71(uVar3,local_1) & 0xffffffffffffff01;
}
| |
36,292 | s2b | eloqsql/strings/dtoa.c | static Bigint *s2b(const char *s, int nd0, int nd, ULong y9, Stack_alloc *alloc)
{
Bigint *b;
int i, k;
Long x, y;
x= (nd + 8) / 9;
for (k= 0, y= 1; x > y; y <<= 1, k++) ;
b= Balloc(k, alloc);
b->p.x[0]= y9;
b->wds= 1;
i= 9;
if (9 < nd0)
{
s+= 9;
do
b= multadd(b, 10, *s++ - '0', alloc);
while (++i < nd0);
s++; /* skip '.' */
}
else
s+= 10;
/* now do the fractional part */
for(; i < nd; i++)
b= multadd(b, 10, *s++ - '0', alloc);
return b;
} | O0 | c | s2b:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movq %r8, -0x20(%rbp)
movl -0x10(%rbp), %eax
addl $0x8, %eax
movl $0x9, %ecx
cltd
idivl %ecx
movl %eax, -0x34(%rbp)
movl $0x0, -0x30(%rbp)
movl $0x1, -0x38(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jle 0x82835
jmp 0x82822
movl -0x38(%rbp), %eax
shll %eax
movl %eax, -0x38(%rbp)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x82818
movl -0x30(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x82920
movq %rax, -0x28(%rbp)
movl -0x14(%rbp), %ecx
movq -0x28(%rbp), %rax
movq (%rax), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movl $0x1, 0x14(%rax)
movl $0x9, -0x2c(%rbp)
movl $0x9, %eax
cmpl -0xc(%rbp), %eax
jge 0x828c0
movq -0x8(%rbp), %rax
addq $0x9, %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movsbl (%rax), %edx
subl $0x30, %edx
movq -0x20(%rbp), %rcx
movl $0xa, %esi
callq 0x835b0
movq %rax, -0x28(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
cmpl -0xc(%rbp), %eax
jl 0x82879
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
jmp 0x828cc
movq -0x8(%rbp), %rax
addq $0xa, %rax
movq %rax, -0x8(%rbp)
jmp 0x828ce
movl -0x2c(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x8290c
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movsbl (%rax), %edx
subl $0x30, %edx
movq -0x20(%rbp), %rcx
movl $0xa, %esi
callq 0x835b0
movq %rax, -0x28(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x828ce
movq -0x28(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| s2b:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov [rbp+var_14], ecx
mov [rbp+var_20], r8
mov eax, [rbp+var_10]
add eax, 8
mov ecx, 9
cdq
idiv ecx
mov [rbp+var_34], eax
mov [rbp+var_30], 0
mov [rbp+var_38], 1
loc_82818:
mov eax, [rbp+var_34]
cmp eax, [rbp+var_38]
jle short loc_82835
jmp short $+2
loc_82822:
mov eax, [rbp+var_38]
shl eax, 1
mov [rbp+var_38], eax
mov eax, [rbp+var_30]
add eax, 1
mov [rbp+var_30], eax
jmp short loc_82818
loc_82835:
mov edi, [rbp+var_30]
mov rsi, [rbp+var_20]
call Balloc
mov [rbp+var_28], rax
mov ecx, [rbp+var_14]
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rax], ecx
mov rax, [rbp+var_28]
mov dword ptr [rax+14h], 1
mov [rbp+var_2C], 9
mov eax, 9
cmp eax, [rbp+var_C]
jge short loc_828C0
mov rax, [rbp+var_8]
add rax, 9
mov [rbp+var_8], rax
loc_82879:
mov rdi, [rbp+var_28]
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
movsx edx, byte ptr [rax]
sub edx, 30h ; '0'
mov rcx, [rbp+var_20]
mov esi, 0Ah
call multadd
mov [rbp+var_28], rax
mov eax, [rbp+var_2C]
add eax, 1
mov [rbp+var_2C], eax
cmp eax, [rbp+var_C]
jl short loc_82879
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
jmp short loc_828CC
loc_828C0:
mov rax, [rbp+var_8]
add rax, 0Ah
mov [rbp+var_8], rax
loc_828CC:
jmp short $+2
loc_828CE:
mov eax, [rbp+var_2C]
cmp eax, [rbp+var_10]
jge short loc_8290C
mov rdi, [rbp+var_28]
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
movsx edx, byte ptr [rax]
sub edx, 30h ; '0'
mov rcx, [rbp+var_20]
mov esi, 0Ah
call multadd
mov [rbp+var_28], rax
mov eax, [rbp+var_2C]
add eax, 1
mov [rbp+var_2C], eax
jmp short loc_828CE
loc_8290C:
mov rax, [rbp+var_28]
add rsp, 40h
pop rbp
retn
| long long s2b(long long a1, int a2, int a3, int a4, long long a5)
{
char *v5; // rax
char *v6; // rax
int i; // [rsp+8h] [rbp-38h]
unsigned int v9; // [rsp+10h] [rbp-30h]
int v10; // [rsp+14h] [rbp-2Ch]
long long v11; // [rsp+18h] [rbp-28h]
char *v15; // [rsp+38h] [rbp-8h]
char *v16; // [rsp+38h] [rbp-8h]
v9 = 0;
for ( i = 1; (a3 + 8) / 9 > i; i *= 2 )
++v9;
v11 = Balloc(v9, a5);
**(_DWORD **)v11 = a4;
*(_DWORD *)(v11 + 20) = 1;
v10 = 9;
if ( a2 <= 9 )
{
v16 = (char *)(a1 + 10);
}
else
{
v15 = (char *)(a1 + 9);
do
{
v5 = v15++;
v11 = multadd(v11, 10LL, (unsigned int)(*v5 - 48), a5);
++v10;
}
while ( v10 < a2 );
v16 = v15 + 1;
}
while ( v10 < a3 )
{
v6 = v16++;
v11 = multadd(v11, 10LL, (unsigned int)(*v6 - 48), a5);
++v10;
}
return v11;
}
| s2b:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV dword ptr [RBP + -0x14],ECX
MOV qword ptr [RBP + -0x20],R8
MOV EAX,dword ptr [RBP + -0x10]
ADD EAX,0x8
MOV ECX,0x9
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x34],EAX
MOV dword ptr [RBP + -0x30],0x0
MOV dword ptr [RBP + -0x38],0x1
LAB_00182818:
MOV EAX,dword ptr [RBP + -0x34]
CMP EAX,dword ptr [RBP + -0x38]
JLE 0x00182835
JMP 0x00182822
LAB_00182822:
MOV EAX,dword ptr [RBP + -0x38]
SHL EAX,0x1
MOV dword ptr [RBP + -0x38],EAX
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x00182818
LAB_00182835:
MOV EDI,dword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00182920
MOV qword ptr [RBP + -0x28],RAX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX + 0x14],0x1
MOV dword ptr [RBP + -0x2c],0x9
MOV EAX,0x9
CMP EAX,dword ptr [RBP + -0xc]
JGE 0x001828c0
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x9
MOV qword ptr [RBP + -0x8],RAX
LAB_00182879:
MOV RDI,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOVSX EDX,byte ptr [RAX]
SUB EDX,0x30
MOV RCX,qword ptr [RBP + -0x20]
MOV ESI,0xa
CALL 0x001835b0
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,dword ptr [RBP + -0xc]
JL 0x00182879
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001828cc
LAB_001828c0:
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0xa
MOV qword ptr [RBP + -0x8],RAX
LAB_001828cc:
JMP 0x001828ce
LAB_001828ce:
MOV EAX,dword ptr [RBP + -0x2c]
CMP EAX,dword ptr [RBP + -0x10]
JGE 0x0018290c
MOV RDI,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOVSX EDX,byte ptr [RAX]
SUB EDX,0x30
MOV RCX,qword ptr [RBP + -0x20]
MOV ESI,0xa
CALL 0x001835b0
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x001828ce
LAB_0018290c:
MOV RAX,qword ptr [RBP + -0x28]
ADD RSP,0x40
POP RBP
RET
|
int8 * s2b(long param_1,int param_2,int param_3,int4 param_4,int8 param_5)
{
char *pcVar1;
int local_40;
int local_38;
int local_34;
int8 *local_30;
char *local_10;
local_38 = 0;
for (local_40 = 1; local_40 < (param_3 + 8) / 9; local_40 = local_40 << 1) {
local_38 = local_38 + 1;
}
local_30 = (int8 *)Balloc(local_38,param_5,(long)(param_3 + 8) % 9 & 0xffffffff);
*(int4 *)*local_30 = param_4;
*(int4 *)((long)local_30 + 0x14) = 1;
local_34 = 9;
if (param_2 < 10) {
local_10 = (char *)(param_1 + 10);
}
else {
pcVar1 = (char *)(param_1 + 9);
do {
local_10 = pcVar1;
local_30 = (int8 *)multadd(local_30,10,*local_10 + -0x30,param_5);
local_34 = local_34 + 1;
pcVar1 = local_10 + 1;
} while (local_34 < param_2);
local_10 = local_10 + 2;
}
for (; local_34 < param_3; local_34 = local_34 + 1) {
local_30 = (int8 *)multadd(local_30,10,*local_10 + -0x30,param_5);
local_10 = local_10 + 1;
}
return local_30;
}
| |
36,293 | nglog::tools::InitializeLoggingUtilities(char const*) | ng-log[P]ng-log/src/utilities.cc | bool IsLoggingInitialized() {
return g_program_invocation_short_name != nullptr;
} | O3 | cpp | nglog::tools::InitializeLoggingUtilities(char const*):
pushq %rbx
subq $0x60, %rsp
cmpq $0x0, 0x1eeec(%rip) # 0x40aa0
je 0x21bcb
movq $0x0, 0x1eedf(%rip) # 0x40aa0
addq $0x60, %rsp
popq %rbx
jmp 0x7510
leaq 0x3516(%rip), %rsi # 0x250e8
movq %rsp, %rbx
movq %rbx, %rdi
movl $0x134, %edx # imm = 0x134
callq 0xe7f2
movq %rbx, %rdi
callq 0xaf6a
movq %rax, %rbx
leaq 0x358a(%rip), %rsi # 0x2517e
movl $0x25, %edx
movq %rax, %rdi
callq 0x7610
leaq 0x359c(%rip), %rsi # 0x251a4
movl $0x47, %edx
movq %rbx, %rdi
callq 0x7610
movq %rsp, %rdi
callq 0xe836
movq %rsp, %rdi
callq 0xe836
movq %rax, %rdi
callq 0x9b03
| _ZN5nglog5tools24ShutdownLoggingUtilitiesEv:
push rbx
sub rsp, 60h
cmp cs:_ZN5nglogL31g_program_invocation_short_nameE, 0; nglog::g_program_invocation_short_name
jz short loc_21BCB
mov cs:_ZN5nglogL31g_program_invocation_short_nameE, 0; nglog::g_program_invocation_short_name
add rsp, 60h
pop rbx
jmp _closelog
loc_21BCB:
lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
mov rbx, rsp
mov rdi, rbx; this
mov edx, 134h; int
call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int)
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
mov rbx, rax
lea rsi, aCheckFailedIsl_0; "Check failed: IsLoggingInitialized() "
mov edx, 25h ; '%'
mov rdi, rax
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, aYouCalledShutd; "You called ShutdownLogging() without ca"...
mov edx, 47h ; 'G'
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, rsp; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rdi, rsp; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rdi, rax
call __clang_call_terminate
| long long nglog::tools::ShutdownLoggingUtilities(nglog::tools *this)
{
long long v2; // rbx
_BYTE v3[104]; // [rsp+0h] [rbp-68h] BYREF
if ( !nglog::g_program_invocation_short_name )
{
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v3,
(nglog::tools *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/utilities.cc",
308);
v2 = nglog::LogMessage::stream((nglog::LogMessage *)v3);
std::__ostream_insert<char,std::char_traits<char>>(v2, "Check failed: IsLoggingInitialized() ", 37LL);
std::__ostream_insert<char,std::char_traits<char>>(
v2,
"You called ShutdownLogging() without calling InitializeLogging() first!",
71LL);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v3);
}
nglog::g_program_invocation_short_name = 0LL;
return closelog(this);
}
| ShutdownLoggingUtilities:
PUSH RBX
SUB RSP,0x60
CMP qword ptr [0x00140aa0],0x0
JZ 0x00121bcb
MOV qword ptr [0x00140aa0],0x0
ADD RSP,0x60
POP RBX
JMP 0x00107510
LAB_00121bcb:
LEA RSI,[0x1250e8]
MOV RBX,RSP
MOV RDI,RBX
MOV EDX,0x134
CALL 0x0010e7f2
LAB_00121be2:
MOV RDI,RBX
CALL 0x0010af6a
MOV RBX,RAX
LEA RSI,[0x12517e]
MOV EDX,0x25
MOV RDI,RAX
CALL 0x00107610
LEA RSI,[0x1251a4]
MOV EDX,0x47
MOV RDI,RBX
CALL 0x00107610
LAB_00121c15:
MOV RDI,RSP
CALL 0x0010e836
LAB_00121c1d:
MOV RDI,RSP
CALL 0x0010e836
LAB_00121c25:
MOV RDI,RAX
CALL 0x00109b03
|
/* nglog::tools::ShutdownLoggingUtilities() */
void nglog::tools::ShutdownLoggingUtilities(void)
{
ostream *poVar1;
int8 uVar2;
LogMessageFatal aLStack_68 [96];
if (g_program_invocation_short_name != 0) {
g_program_invocation_short_name = 0;
closelog();
return;
}
LogMessageFatal::LogMessageFatal
(aLStack_68,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/utilities.cc",
0x134);
/* try { // try from 00121be2 to 00121c14 has its CatchHandler @ 00121c1d */
poVar1 = (ostream *)LogMessage::stream((LogMessage *)aLStack_68);
std::__ostream_insert<char,std::char_traits<char>>
(poVar1,"Check failed: IsLoggingInitialized() ",0x25);
std::__ostream_insert<char,std::char_traits<char>>
(poVar1,"You called ShutdownLogging() without calling InitializeLogging() first!",0x47);
LogMessageFatal::~LogMessageFatal(aLStack_68);
/* catch(type#1 @ 00000000) { ... } // from try @ 00121be2 with catch @ 00121c1d
try { // try from 00121c1d to 00121c24 has its CatchHandler @ 00121c25 */
uVar2 = LogMessageFatal::~LogMessageFatal(aLStack_68);
/* catch(type#1 @ 00000000) { ... } // from try @ 00121c1d with catch @ 00121c25
*/
/* WARNING: Subroutine does not return */
__clang_call_terminate(uVar2);
}
| |
36,294 | put_lvalue | bluesky950520[P]quickjs/quickjs.c | static void put_lvalue(JSParseState *s, int opcode, int scope,
JSAtom name, int label, PutLValueEnum special,
BOOL is_let)
{
switch(opcode) {
case OP_get_field:
case OP_scope_get_private_field:
/* depth = 1 */
switch(special) {
case PUT_LVALUE_NOKEEP:
case PUT_LVALUE_NOKEEP_DEPTH:
break;
case PUT_LVALUE_KEEP_TOP:
emit_op(s, OP_insert2); /* obj v -> v obj v */
break;
case PUT_LVALUE_KEEP_SECOND:
emit_op(s, OP_perm3); /* obj v0 v -> v0 obj v */
break;
case PUT_LVALUE_NOKEEP_BOTTOM:
emit_op(s, OP_swap);
break;
default:
abort();
}
break;
case OP_get_array_el:
case OP_get_ref_value:
/* depth = 2 */
if (opcode == OP_get_ref_value) {
JS_FreeAtom(s->ctx, name);
emit_label(s, label);
}
switch(special) {
case PUT_LVALUE_NOKEEP:
emit_op(s, OP_nop); /* will trigger optimization */
break;
case PUT_LVALUE_NOKEEP_DEPTH:
break;
case PUT_LVALUE_KEEP_TOP:
emit_op(s, OP_insert3); /* obj prop v -> v obj prop v */
break;
case PUT_LVALUE_KEEP_SECOND:
emit_op(s, OP_perm4); /* obj prop v0 v -> v0 obj prop v */
break;
case PUT_LVALUE_NOKEEP_BOTTOM:
emit_op(s, OP_rot3l);
break;
default:
abort();
}
break;
case OP_get_super_value:
/* depth = 3 */
switch(special) {
case PUT_LVALUE_NOKEEP:
case PUT_LVALUE_NOKEEP_DEPTH:
break;
case PUT_LVALUE_KEEP_TOP:
emit_op(s, OP_insert4); /* this obj prop v -> v this obj prop v */
break;
case PUT_LVALUE_KEEP_SECOND:
emit_op(s, OP_perm5); /* this obj prop v0 v -> v0 this obj prop v */
break;
case PUT_LVALUE_NOKEEP_BOTTOM:
emit_op(s, OP_rot4l);
break;
default:
abort();
}
break;
default:
break;
}
switch(opcode) {
case OP_scope_get_var: /* val -- */
assert(special == PUT_LVALUE_NOKEEP ||
special == PUT_LVALUE_NOKEEP_DEPTH);
emit_op(s, is_let ? OP_scope_put_var_init : OP_scope_put_var);
emit_u32(s, name); /* has refcount */
emit_u16(s, scope);
break;
case OP_get_field:
emit_op(s, OP_put_field);
emit_u32(s, name); /* name has refcount */
emit_ic(s, name);
break;
case OP_scope_get_private_field:
emit_op(s, OP_scope_put_private_field);
emit_u32(s, name); /* name has refcount */
emit_u16(s, scope);
break;
case OP_get_array_el:
emit_op(s, OP_put_array_el);
break;
case OP_get_ref_value:
emit_op(s, OP_put_ref_value);
break;
case OP_get_super_value:
emit_op(s, OP_put_super_value);
break;
default:
abort();
}
} | O1 | c | put_lvalue:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r12d
movl %ecx, %r14d
movl %edx, 0x8(%rsp)
movl %esi, %r15d
movq %rdi, %rbx
movl 0x50(%rsp), %ebp
cmpl $0x49, %esi
jg 0x66086
cmpl $0x3c, %r15d
je 0x660bd
cmpl $0x41, %r15d
je 0x660a6
cmpl $0x47, %r15d
je 0x660d6
jmp 0x662d4
cmpl $0x4a, %r15d
je 0x660ed
cmpl $0xb7, %r15d
je 0x6616e
cmpl $0xbd, %r15d
jne 0x662d4
movl %r12d, %eax
leaq 0x37374(%rip), %rcx # 0x9d424
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x15, %al
jmp 0x6611e
movl %r8d, %r13d
movq (%rbx), %rdi
movl %r14d, %esi
callq 0x207d8
movq %rbx, %rdi
movl %r13d, %esi
callq 0x64ef1
movl %r12d, %eax
leaq 0x3731c(%rip), %rcx # 0x9d3fc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $-0x4e, %al
jmp 0x6611e
movl %r12d, %eax
leaq 0x37319(%rip), %rcx # 0x9d410
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x17, %al
jmp 0x6611e
movb $0x1b, %al
jmp 0x6611e
movb $0x1d, %al
jmp 0x6611e
movb $0x16, %al
jmp 0x6611e
movb $0x18, %al
jmp 0x6611e
movb $0x19, %al
jmp 0x6611e
movb $0x1f, %al
jmp 0x6611e
movb $0x1a, %al
movq 0x90(%rbx), %rcx
leaq 0x138(%rcx), %rdi
movl 0x140(%rcx), %edx
movl %edx, 0x168(%rcx)
movzbl %al, %esi
callq 0x1b4d0
cmpl $0x49, %r15d
jle 0x661cb
cmpl $0x4a, %r15d
je 0x661fc
cmpl $0xbd, %r15d
je 0x6624f
cmpl $0xb7, %r15d
jne 0x662d4
xorl %eax, %eax
testl %ebp, %ebp
setne %al
movq 0x90(%rbx), %rcx
movl $0x138, %r15d # imm = 0x138
leaq (%rcx,%r15), %rdi
movl 0x140(%rcx), %edx
movl %edx, 0x168(%rcx)
leal 0xb8(,%rax,4), %esi
callq 0x1b4d0
movq 0x90(%rbx), %rdi
addq %r15, %rdi
leaq 0x10(%rsp), %rsi
movl %r14d, (%rsi)
movl $0x4, %edx
callq 0x1b422
addq 0x90(%rbx), %r15
leaq 0xc(%rsp), %rsi
jmp 0x6629e
cmpl $0x3c, %r15d
je 0x6621d
cmpl $0x47, %r15d
jne 0x662c1
movq 0x90(%rbx), %rax
leaq 0x138(%rax), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x49, %esi
jmp 0x6623c
movq 0x90(%rbx), %rax
leaq 0x138(%rax), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x4b, %esi
jmp 0x6623c
movq 0x90(%rbx), %rax
leaq 0x138(%rax), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x3d, %esi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1b4d0
movq 0x90(%rbx), %rax
movl $0x138, %r15d # imm = 0x138
leaq (%rax,%r15), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xbf, %esi
callq 0x1b4d0
movq 0x90(%rbx), %rdi
addq %r15, %rdi
leaq 0x14(%rsp), %rsi
movl %r14d, (%rsi)
movl $0x4, %edx
callq 0x1b422
addq 0x90(%rbx), %r15
leaq 0xe(%rsp), %rsi
movl 0x8(%rsp), %eax
movw %ax, (%rsi)
movl $0x2, %edx
movq %r15, %rdi
callq 0x1b422
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x41, %r15d
jne 0x662d4
movq %rbx, %rdi
movl %r14d, %esi
callq 0x13759
jmp 0x662b2
callq 0xe090
| put_lvalue:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r12d, r9d
mov r14d, ecx
mov [rsp+48h+var_40], edx
mov r15d, esi
mov rbx, rdi
mov ebp, [rsp+48h+arg_0]
cmp esi, 49h ; 'I'
jg short loc_66086
cmp r15d, 3Ch ; '<'
jz short loc_660BD
cmp r15d, 41h ; 'A'
jz short loc_660A6
cmp r15d, 47h ; 'G'
jz short loc_660D6
jmp loc_662D4
loc_66086:
cmp r15d, 4Ah ; 'J'
jz short loc_660ED
cmp r15d, 0B7h
jz loc_6616E
cmp r15d, 0BDh
jnz loc_662D4
loc_660A6:
mov eax, r12d
lea rcx, jpt_660B7
movsxd rax, ds:(jpt_660B7 - 9D424h)[rcx+rax*4]; switch 5 cases
add rax, rcx
jmp rax; switch jump
loc_660B9:
mov al, 15h; jumptable 00000000000660B7 case 2
jmp short loc_6611E
loc_660BD:
mov r13d, r8d
mov rdi, [rbx]
mov esi, r14d
call JS_FreeAtom
mov rdi, rbx
mov esi, r13d
call emit_label
loc_660D6:
mov eax, r12d
lea rcx, jpt_660E7
movsxd rax, ds:(jpt_660E7 - 9D3FCh)[rcx+rax*4]; switch 5 cases
add rax, rcx
jmp rax; switch jump
loc_660E9:
mov al, 0B2h; jumptable 00000000000660E7 case 0
jmp short loc_6611E
loc_660ED:
mov eax, r12d
lea rcx, jpt_660FE
movsxd rax, ds:(jpt_660FE - 9D410h)[rcx+rax*4]; switch 5 cases
add rax, rcx
jmp rax; switch jump
loc_66100:
mov al, 17h; jumptable 00000000000660FE case 2
jmp short loc_6611E
loc_66104:
mov al, 1Bh; jumptable 00000000000660B7 case 4
jmp short loc_6611E
loc_66108:
mov al, 1Dh; jumptable 00000000000660E7 case 4
jmp short loc_6611E
loc_6610C:
mov al, 16h; jumptable 00000000000660E7 case 2
jmp short loc_6611E
loc_66110:
mov al, 18h; jumptable 00000000000660B7 case 3
jmp short loc_6611E
loc_66114:
mov al, 19h; jumptable 00000000000660E7 case 3
jmp short loc_6611E
loc_66118:
mov al, 1Fh; jumptable 00000000000660FE case 4
jmp short loc_6611E
loc_6611C:
mov al, 1Ah; jumptable 00000000000660FE case 3
loc_6611E:
mov rcx, [rbx+90h]
lea rdi, [rcx+138h]
mov edx, [rcx+140h]
mov [rcx+168h], edx
movzx esi, al
call dbuf_putc
loc_66140:
cmp r15d, 49h ; 'I'; jumptable 00000000000660B7 cases 0,1
jle loc_661CB
cmp r15d, 4Ah ; 'J'
jz loc_661FC
cmp r15d, 0BDh
jz loc_6624F
cmp r15d, 0B7h
jnz loc_662D4
loc_6616E:
xor eax, eax
test ebp, ebp
setnz al
mov rcx, [rbx+90h]
mov r15d, 138h
lea rdi, [rcx+r15]
mov edx, [rcx+140h]
mov [rcx+168h], edx
lea esi, ds:0B8h[rax*4]
call dbuf_putc
mov rdi, [rbx+90h]
add rdi, r15
lea rsi, [rsp+48h+var_38]
mov [rsi], r14d
mov edx, 4
call dbuf_put
add r15, [rbx+90h]
lea rsi, [rsp+48h+var_3C]
jmp loc_6629E
loc_661CB:
cmp r15d, 3Ch ; '<'
jz short loc_6621D
cmp r15d, 47h ; 'G'
jnz loc_662C1
mov rax, [rbx+90h]
lea rdi, [rax+138h]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 49h ; 'I'
jmp short loc_6623C
loc_661FC:
mov rax, [rbx+90h]
lea rdi, [rax+138h]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 4Bh ; 'K'
jmp short loc_6623C
loc_6621D:
mov rax, [rbx+90h]
lea rdi, [rax+138h]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 3Dh ; '='
loc_6623C:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp dbuf_putc
loc_6624F:
mov rax, [rbx+90h]
mov r15d, 138h
lea rdi, [rax+r15]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0BFh
call dbuf_putc
mov rdi, [rbx+90h]
add rdi, r15
lea rsi, [rsp+48h+var_34]
mov [rsi], r14d
mov edx, 4
call dbuf_put
add r15, [rbx+90h]
lea rsi, [rsp+48h+var_3A]
loc_6629E:
mov eax, [rsp+48h+var_40]
mov [rsi], ax
mov edx, 2
mov rdi, r15
call dbuf_put
loc_662B2:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_662C1:
cmp r15d, 41h ; 'A'
jnz short loc_662D4
mov rdi, rbx
mov esi, r14d
call put_lvalue_cold_1
jmp short loc_662B2
loc_662D4:
call _abort
| long long put_lvalue(long long *a1, int a2, __int16 a3, int a4, int a5, int a6, int a7)
{
char v10; // al
long long v12; // rcx
long long v13; // rcx
_QWORD *v14; // rdi
long long v15; // rax
long long v17; // rax
long long v18; // rax
long long v19; // rax
_QWORD *v20; // rdi
_QWORD *v21; // r15
char *v22; // rsi
char v24; // [rsp+Ch] [rbp-3Ch] BYREF
char v25; // [rsp+Eh] [rbp-3Ah] BYREF
int v26; // [rsp+10h] [rbp-38h] BYREF
int v27[13]; // [rsp+14h] [rbp-34h] BYREF
if ( a2 <= 73 )
{
if ( a2 == 60 )
{
JS_FreeAtom(*a1, a4);
emit_label((long long)a1, a5);
LABEL_12:
switch ( a6 )
{
case 0:
v10 = -78;
goto LABEL_23;
case 1:
goto LABEL_24;
case 2:
v10 = 22;
goto LABEL_23;
case 3:
v10 = 25;
goto LABEL_23;
case 4:
v10 = 29;
goto LABEL_23;
}
goto LABEL_24;
}
if ( a2 != 65 )
{
if ( a2 != 71 )
LABEL_35:
abort((const char *)a1);
goto LABEL_12;
}
goto LABEL_9;
}
if ( a2 != 74 )
{
if ( a2 == 183 )
{
v13 = a1[18];
*(_DWORD *)(v13 + 360) = *(_DWORD *)(v13 + 320);
dbuf_putc((_QWORD *)(v13 + 312), 4 * (a7 != 0) - 72);
v14 = (_QWORD *)(a1[18] + 312);
v26 = a4;
dbuf_put(v14, (long long)&v26, 4LL);
v21 = (_QWORD *)(a1[18] + 312);
v22 = &v24;
LABEL_33:
*(_WORD *)v22 = a3;
return dbuf_put(v21, (long long)v22, 2LL);
}
if ( a2 != 189 )
goto LABEL_35;
LABEL_9:
switch ( a6 )
{
case 0:
case 1:
goto LABEL_24;
case 2:
v10 = 21;
goto LABEL_23;
case 3:
v10 = 24;
goto LABEL_23;
case 4:
v10 = 27;
goto LABEL_23;
}
goto LABEL_24;
}
switch ( a6 )
{
case 0:
case 1:
break;
case 2:
v10 = 23;
goto LABEL_23;
case 3:
v10 = 26;
goto LABEL_23;
case 4:
v10 = 31;
LABEL_23:
v12 = a1[18];
*(_DWORD *)(v12 + 360) = *(_DWORD *)(v12 + 320);
dbuf_putc((_QWORD *)(v12 + 312), v10);
break;
}
LABEL_24:
if ( a2 > 73 )
{
if ( a2 == 74 )
{
v17 = a1[18];
*(_DWORD *)(v17 + 360) = *(_DWORD *)(v17 + 320);
return dbuf_putc((_QWORD *)(v17 + 312), 75);
}
v19 = a1[18];
*(_DWORD *)(v19 + 360) = *(_DWORD *)(v19 + 320);
dbuf_putc((_QWORD *)(v19 + 312), 191);
v20 = (_QWORD *)(a1[18] + 312);
v27[0] = a4;
dbuf_put(v20, (long long)v27, 4LL);
v21 = (_QWORD *)(a1[18] + 312);
v22 = &v25;
goto LABEL_33;
}
if ( a2 == 60 )
{
v18 = a1[18];
*(_DWORD *)(v18 + 360) = *(_DWORD *)(v18 + 320);
return dbuf_putc((_QWORD *)(v18 + 312), 61);
}
else if ( a2 == 71 )
{
v15 = a1[18];
*(_DWORD *)(v15 + 360) = *(_DWORD *)(v15 + 320);
return dbuf_putc((_QWORD *)(v15 + 312), 73);
}
else
{
return put_lvalue_cold_1(a1, a4);
}
}
| put_lvalue:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12D,R9D
MOV R14D,ECX
MOV dword ptr [RSP + 0x8],EDX
MOV R15D,ESI
MOV RBX,RDI
MOV EBP,dword ptr [RSP + 0x50]
CMP ESI,0x49
JG 0x00166086
CMP R15D,0x3c
JZ 0x001660bd
CMP R15D,0x41
JZ 0x001660a6
CMP R15D,0x47
JZ 0x001660d6
JMP 0x001662d4
LAB_00166086:
CMP R15D,0x4a
JZ 0x001660ed
CMP R15D,0xb7
JZ 0x0016616e
CMP R15D,0xbd
JNZ 0x001662d4
LAB_001660a6:
MOV EAX,R12D
LEA RCX,[0x19d424]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
JMP RAX
LAB_001660bd:
MOV R13D,R8D
MOV RDI,qword ptr [RBX]
MOV ESI,R14D
CALL 0x001207d8
MOV RDI,RBX
MOV ESI,R13D
CALL 0x00164ef1
LAB_001660d6:
MOV EAX,R12D
LEA RCX,[0x19d3fc]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
JMP RAX
LAB_001660ed:
MOV EAX,R12D
LEA RCX,[0x19d410]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
JMP RAX
LAB_0016616e:
XOR EAX,EAX
TEST EBP,EBP
SETNZ AL
MOV RCX,qword ptr [RBX + 0x90]
MOV R15D,0x138
LEA RDI,[RCX + R15*0x1]
MOV EDX,dword ptr [RCX + 0x140]
MOV dword ptr [RCX + 0x168],EDX
LEA ESI,[0xb8 + RAX*0x4]
CALL 0x0011b4d0
MOV RDI,qword ptr [RBX + 0x90]
ADD RDI,R15
LEA RSI,[RSP + 0x10]
MOV dword ptr [RSI],R14D
MOV EDX,0x4
CALL 0x0011b422
ADD R15,qword ptr [RBX + 0x90]
LEA RSI,[RSP + 0xc]
JMP 0x0016629e
LAB_0016629e:
MOV EAX,dword ptr [RSP + 0x8]
MOV word ptr [RSI],AX
MOV EDX,0x2
MOV RDI,R15
CALL 0x0011b422
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001662d4:
CALL 0x0010e090
|
void put_lvalue(int8 *param_1,int param_2,int2 param_3,int4 param_4,
int4 param_5,uint param_6,int param_7)
{
long lVar1;
int2 local_3c [2];
int4 local_38 [2];
if (0x49 < param_2) {
if (param_2 == 0x4a) {
/* WARNING: Could not recover jumptable at 0x001660fe. Too many branches */
/* WARNING: Treating indirect jump as call */
(*(code *)(&DAT_0019d410 + *(int *)(&DAT_0019d410 + (ulong)param_6 * 4)))();
return;
}
if (param_2 == 0xb7) {
lVar1 = param_1[0x12];
*(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140);
dbuf_putc(lVar1 + 0x138,(uint)(param_7 != 0) * 4 + 0xb8);
local_38[0] = param_4;
dbuf_put(param_1[0x12] + 0x138,local_38,4);
local_3c[0] = param_3;
dbuf_put(param_1[0x12] + 0x138,local_3c,2);
return;
}
if (param_2 != 0xbd) {
LAB_001662d4:
/* WARNING: Subroutine does not return */
abort();
}
LAB_001660a6:
/* WARNING: Could not recover jumptable at 0x001660b7. Too many branches */
/* WARNING: Treating indirect jump as call */
(*(code *)(&DAT_0019d424 + *(int *)(&DAT_0019d424 + (ulong)param_6 * 4)))();
return;
}
if (param_2 == 0x3c) {
JS_FreeAtom(*param_1,param_4);
emit_label(param_1,param_5);
}
else {
if (param_2 == 0x41) goto LAB_001660a6;
if (param_2 != 0x47) goto LAB_001662d4;
}
/* WARNING: Could not recover jumptable at 0x001660e7. Too many branches */
/* WARNING: Treating indirect jump as call */
(*(code *)(&DAT_0019d3fc + *(int *)(&DAT_0019d3fc + (ulong)param_6 * 4)))();
return;
}
| |
36,295 | put_lvalue | bluesky950520[P]quickjs/quickjs.c | static void put_lvalue(JSParseState *s, int opcode, int scope,
JSAtom name, int label, PutLValueEnum special,
BOOL is_let)
{
switch(opcode) {
case OP_get_field:
case OP_scope_get_private_field:
/* depth = 1 */
switch(special) {
case PUT_LVALUE_NOKEEP:
case PUT_LVALUE_NOKEEP_DEPTH:
break;
case PUT_LVALUE_KEEP_TOP:
emit_op(s, OP_insert2); /* obj v -> v obj v */
break;
case PUT_LVALUE_KEEP_SECOND:
emit_op(s, OP_perm3); /* obj v0 v -> v0 obj v */
break;
case PUT_LVALUE_NOKEEP_BOTTOM:
emit_op(s, OP_swap);
break;
default:
abort();
}
break;
case OP_get_array_el:
case OP_get_ref_value:
/* depth = 2 */
if (opcode == OP_get_ref_value) {
JS_FreeAtom(s->ctx, name);
emit_label(s, label);
}
switch(special) {
case PUT_LVALUE_NOKEEP:
emit_op(s, OP_nop); /* will trigger optimization */
break;
case PUT_LVALUE_NOKEEP_DEPTH:
break;
case PUT_LVALUE_KEEP_TOP:
emit_op(s, OP_insert3); /* obj prop v -> v obj prop v */
break;
case PUT_LVALUE_KEEP_SECOND:
emit_op(s, OP_perm4); /* obj prop v0 v -> v0 obj prop v */
break;
case PUT_LVALUE_NOKEEP_BOTTOM:
emit_op(s, OP_rot3l);
break;
default:
abort();
}
break;
case OP_get_super_value:
/* depth = 3 */
switch(special) {
case PUT_LVALUE_NOKEEP:
case PUT_LVALUE_NOKEEP_DEPTH:
break;
case PUT_LVALUE_KEEP_TOP:
emit_op(s, OP_insert4); /* this obj prop v -> v this obj prop v */
break;
case PUT_LVALUE_KEEP_SECOND:
emit_op(s, OP_perm5); /* this obj prop v0 v -> v0 this obj prop v */
break;
case PUT_LVALUE_NOKEEP_BOTTOM:
emit_op(s, OP_rot4l);
break;
default:
abort();
}
break;
default:
break;
}
switch(opcode) {
case OP_scope_get_var: /* val -- */
assert(special == PUT_LVALUE_NOKEEP ||
special == PUT_LVALUE_NOKEEP_DEPTH);
emit_op(s, is_let ? OP_scope_put_var_init : OP_scope_put_var);
emit_u32(s, name); /* has refcount */
emit_u16(s, scope);
break;
case OP_get_field:
emit_op(s, OP_put_field);
emit_u32(s, name); /* name has refcount */
emit_ic(s, name);
break;
case OP_scope_get_private_field:
emit_op(s, OP_scope_put_private_field);
emit_u32(s, name); /* name has refcount */
emit_u16(s, scope);
break;
case OP_get_array_el:
emit_op(s, OP_put_array_el);
break;
case OP_get_ref_value:
emit_op(s, OP_put_ref_value);
break;
case OP_get_super_value:
emit_op(s, OP_put_super_value);
break;
default:
abort();
}
} | O2 | c | put_lvalue:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r12d
movl %ecx, %ebp
movl %edx, 0x4(%rsp)
movl %esi, %r15d
movq %rdi, %rbx
movl 0x40(%rsp), %r14d
cmpl $0x3c, %esi
je 0x57133
cmpl $0xbd, %r15d
je 0x57102
cmpl $0x47, %r15d
je 0x5714b
cmpl $0x4a, %r15d
je 0x57119
cmpl $0xb7, %r15d
je 0x571b9
cmpl $0x41, %r15d
jne 0x5725e
movl %r12d, %eax
leaq 0x2d300(%rip), %rcx # 0x8440c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x15, %al
jmp 0x57174
movl %r12d, %eax
leaq 0x2d2d5(%rip), %rcx # 0x843f8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x17, %al
jmp 0x5723a
movl %r8d, %r13d
movq (%rbx), %rdi
movl %ebp, %esi
callq 0x1a995
movq %rbx, %rdi
movl %r13d, %esi
callq 0x5617c
movl %r12d, %eax
leaq 0x2d28f(%rip), %rcx # 0x843e4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $-0x4e, %al
jmp 0x57174
movb $0x1b, %al
jmp 0x57174
movb $0x1d, %al
jmp 0x57174
movb $0x18, %al
jmp 0x57174
movb $0x16, %al
jmp 0x57174
movb $0x19, %al
movzbl %al, %esi
movq %rbx, %rdi
callq 0x4fa1b
cmpl $0x3c, %r15d
je 0x57230
cmpl $0x41, %r15d
je 0x571ff
cmpl $0x47, %r15d
je 0x5722c
cmpl $0x4a, %r15d
je 0x57245
cmpl $0xbd, %r15d
je 0x571cd
cmpl $0xb7, %r15d
jne 0x5725e
xorl %eax, %eax
testl %r14d, %r14d
setne %al
leal 0xb8(,%rax,4), %esi
movq %rbx, %rdi
jmp 0x571d5
movq %rbx, %rdi
movl $0xbf, %esi
callq 0x4fa1b
movq %rbx, %rdi
movl %ebp, %esi
callq 0x563de
movzwl 0x4(%rsp), %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4fa3a
pushq $0x43
popq %rsi
movq %rbx, %rdi
callq 0x4fa1b
movq %rbx, %rdi
movl %ebp, %esi
callq 0x563de
movq %rbx, %rdi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x56ec6
pushq $0x49
jmp 0x57247
pushq $0x3d
jmp 0x57247
movb $0x1f, %al
jmp 0x5723a
movb $0x1a, %al
movzbl %al, %esi
movq %rbx, %rdi
callq 0x4fa1b
pushq $0x4b
popq %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4fa1b
callq 0xe090
| put_lvalue:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12d, r9d
mov ebp, ecx
mov [rsp+38h+var_34], edx
mov r15d, esi
mov rbx, rdi
mov r14d, [rsp+38h+arg_0]
cmp esi, 3Ch ; '<'
jz short loc_57133
cmp r15d, 0BDh
jz short loc_57102
cmp r15d, 47h ; 'G'
jz short loc_5714B
cmp r15d, 4Ah ; 'J'
jz short loc_57119
cmp r15d, 0B7h
jz loc_571B9
cmp r15d, 41h ; 'A'
jnz loc_5725E
loc_57102:
mov eax, r12d
lea rcx, jpt_57113
movsxd rax, ds:(jpt_57113 - 8440Ch)[rcx+rax*4]; switch 5 cases
add rax, rcx
jmp rax; switch jump
loc_57115:
mov al, 15h; jumptable 0000000000057113 case 2
jmp short loc_57174
loc_57119:
mov eax, r12d
lea rcx, jpt_5712A
movsxd rax, ds:(jpt_5712A - 843F8h)[rcx+rax*4]; switch 5 cases
add rax, rcx
jmp rax; switch jump
loc_5712C:
mov al, 17h; jumptable 000000000005712A case 2
jmp loc_5723A
loc_57133:
mov r13d, r8d
mov rdi, [rbx]
mov esi, ebp
call JS_FreeAtom
mov rdi, rbx
mov esi, r13d
call emit_label
loc_5714B:
mov eax, r12d
lea rcx, jpt_5715C
movsxd rax, ds:(jpt_5715C - 843E4h)[rcx+rax*4]; switch 5 cases
add rax, rcx
jmp rax; switch jump
loc_5715E:
mov al, 0B2h; jumptable 000000000005715C case 0
jmp short loc_57174
loc_57162:
mov al, 1Bh; jumptable 0000000000057113 case 4
jmp short loc_57174
loc_57166:
mov al, 1Dh; jumptable 000000000005715C case 4
jmp short loc_57174
loc_5716A:
mov al, 18h; jumptable 0000000000057113 case 3
jmp short loc_57174
loc_5716E:
mov al, 16h; jumptable 000000000005715C case 2
jmp short loc_57174
loc_57172:
mov al, 19h; jumptable 000000000005715C case 3
loc_57174:
movzx esi, al
mov rdi, rbx
call emit_op
loc_5717F:
cmp r15d, 3Ch ; '<'; jumptable 0000000000057113 cases 0,1
jz loc_57230
cmp r15d, 41h ; 'A'
jz short loc_571FF
cmp r15d, 47h ; 'G'
jz loc_5722C
cmp r15d, 4Ah ; 'J'
jz loc_57245; jumptable 000000000005712A cases 0,1
cmp r15d, 0BDh
jz short loc_571CD
cmp r15d, 0B7h
jnz loc_5725E
loc_571B9:
xor eax, eax
test r14d, r14d
setnz al
lea esi, ds:0B8h[rax*4]
mov rdi, rbx
jmp short loc_571D5
loc_571CD:
mov rdi, rbx
mov esi, 0BFh
loc_571D5:
call emit_op
mov rdi, rbx
mov esi, ebp
call emit_u32
movzx esi, word ptr [rsp+38h+var_34]
mov rdi, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp emit_u16
loc_571FF:
push 43h ; 'C'
pop rsi
mov rdi, rbx
call emit_op
mov rdi, rbx
mov esi, ebp
call emit_u32
mov rdi, rbx
mov esi, ebp
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp emit_ic
loc_5722C:
push 49h ; 'I'
jmp short loc_57247
loc_57230:
push 3Dh ; '='
jmp short loc_57247
loc_57234:
mov al, 1Fh; jumptable 000000000005712A case 4
jmp short loc_5723A
loc_57238:
mov al, 1Ah; jumptable 000000000005712A case 3
loc_5723A:
movzx esi, al
mov rdi, rbx
call emit_op
loc_57245:
push 4Bh ; 'K'; jumptable 000000000005712A cases 0,1
loc_57247:
pop rsi
mov rdi, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp emit_op
loc_5725E:
call _abort
| long long put_lvalue(long long *a1, int a2, __int16 a3, unsigned int a4, int a5, int a6, int a7)
{
char v9; // al
char v10; // al
char v12; // si
long long result; // rax
switch ( a2 )
{
case 60:
JS_FreeAtom(*a1, a4);
emit_label((long long)a1, a5);
break;
case 189:
LABEL_7:
switch ( a6 )
{
case 0:
case 1:
goto LABEL_20;
case 2:
v9 = 21;
goto LABEL_19;
case 3:
v9 = 24;
goto LABEL_19;
case 4:
v9 = 27;
goto LABEL_19;
}
goto LABEL_20;
case 71:
break;
case 74:
switch ( a6 )
{
case 0:
case 1:
goto LABEL_32;
case 2:
v10 = 23;
goto LABEL_31;
case 3:
v10 = 26;
goto LABEL_31;
case 4:
v10 = 31;
LABEL_31:
emit_op((long long)a1, v10);
LABEL_32:
result = emit_op((long long)a1, 75);
break;
}
return result;
case 183:
v12 = 4 * (a7 != 0) - 72;
goto LABEL_25;
case 65:
goto LABEL_7;
default:
abort((const char *)a1);
}
switch ( a6 )
{
case 0:
v9 = -78;
goto LABEL_19;
case 1:
break;
case 2:
v9 = 22;
goto LABEL_19;
case 3:
v9 = 25;
goto LABEL_19;
case 4:
v9 = 29;
LABEL_19:
emit_op((long long)a1, v9);
break;
}
LABEL_20:
switch ( a2 )
{
case '<':
return emit_op((long long)a1, 61);
case 'A':
emit_op((long long)a1, 67);
emit_u32((long long)a1, a4);
return emit_ic(a1, a4);
case 'G':
return emit_op((long long)a1, 73);
default:
v12 = -65;
LABEL_25:
emit_op((long long)a1, v12);
emit_u32((long long)a1, a4);
return emit_u16((long long)a1, a3);
}
}
| put_lvalue:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12D,R9D
MOV EBP,ECX
MOV dword ptr [RSP + 0x4],EDX
MOV R15D,ESI
MOV RBX,RDI
MOV R14D,dword ptr [RSP + 0x40]
CMP ESI,0x3c
JZ 0x00157133
CMP R15D,0xbd
JZ 0x00157102
CMP R15D,0x47
JZ 0x0015714b
CMP R15D,0x4a
JZ 0x00157119
CMP R15D,0xb7
JZ 0x001571b9
CMP R15D,0x41
JNZ 0x0015725e
LAB_00157102:
MOV EAX,R12D
LEA RCX,[0x18440c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
JMP RAX
LAB_00157119:
MOV EAX,R12D
LEA RCX,[0x1843f8]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
JMP RAX
LAB_00157133:
MOV R13D,R8D
MOV RDI,qword ptr [RBX]
MOV ESI,EBP
CALL 0x0011a995
MOV RDI,RBX
MOV ESI,R13D
CALL 0x0015617c
LAB_0015714b:
MOV EAX,R12D
LEA RCX,[0x1843e4]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
JMP RAX
LAB_001571b9:
XOR EAX,EAX
TEST R14D,R14D
SETNZ AL
LEA ESI,[0xb8 + RAX*0x4]
MOV RDI,RBX
JMP 0x001571d5
LAB_001571d5:
CALL 0x0014fa1b
MOV RDI,RBX
MOV ESI,EBP
CALL 0x001563de
MOVZX ESI,word ptr [RSP + 0x4]
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0014fa3a
LAB_0015725e:
CALL 0x0010e090
|
void put_lvalue(int8 *param_1,int param_2,int2 param_3,int4 param_4,
int4 param_5,uint param_6,int param_7)
{
if (param_2 != 0x3c) {
if (param_2 != 0xbd) {
if (param_2 == 0x47) goto LAB_0015714b;
if (param_2 == 0x4a) {
/* WARNING: Could not recover jumptable at 0x0015712a. Too many branches */
/* WARNING: Treating indirect jump as call */
(*(code *)(&DAT_001843f8 + *(int *)(&DAT_001843f8 + (ulong)param_6 * 4)))();
return;
}
if (param_2 == 0xb7) {
emit_op(param_1,(uint)(param_7 != 0) * 4 + 0xb8);
emit_u32(param_1,param_4);
emit_u16(param_1,param_3);
return;
}
if (param_2 != 0x41) {
/* WARNING: Subroutine does not return */
abort();
}
}
/* WARNING: Could not recover jumptable at 0x00157113. Too many branches */
/* WARNING: Treating indirect jump as call */
(*(code *)(&DAT_0018440c + *(int *)(&DAT_0018440c + (ulong)param_6 * 4)))();
return;
}
JS_FreeAtom(*param_1,param_4);
emit_label(param_1,param_5);
LAB_0015714b:
/* WARNING: Could not recover jumptable at 0x0015715c. Too many branches */
/* WARNING: Treating indirect jump as call */
(*(code *)(&DAT_001843e4 + *(int *)(&DAT_001843e4 + (ulong)param_6 * 4)))();
return;
}
| |
36,296 | get_loc_or_ref | bluesky950520[P]quickjs/quickjs.c | static void get_loc_or_ref(DynBuf *bc, BOOL is_ref, int idx)
{
/* if the field is not initialized, the error is catched when
accessing it */
if (is_ref)
dbuf_putc(bc, OP_get_var_ref);
else
dbuf_putc(bc, OP_get_loc);
dbuf_put_u16(bc, idx);
} | O1 | c | get_loc_or_ref:
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
testl %esi, %esi
movl $0x58, %eax
movl $0x5e, %esi
cmovel %eax, %esi
callq 0x1b4d0
leaq 0x6(%rsp), %rsi
movw %bx, (%rsi)
movl $0x2, %edx
movq %r14, %rdi
callq 0x1b422
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| get_loc_or_ref:
push r14
push rbx
push rax
mov ebx, edx
mov r14, rdi
test esi, esi
mov eax, 58h ; 'X'
mov esi, 5Eh ; '^'
cmovz esi, eax
call dbuf_putc
lea rsi, [rsp+18h+var_12]
mov [rsi], bx
mov edx, 2
mov rdi, r14
call dbuf_put
add rsp, 8
pop rbx
pop r14
retn
| long long get_loc_or_ref(_QWORD *a1, int a2, __int16 a3)
{
long long v3; // rax
bool v5; // zf
char v6; // si
_WORD v8[9]; // [rsp+0h] [rbp-12h] BYREF
v8[0] = HIWORD(v3);
v5 = a2 == 0;
v6 = 94;
if ( v5 )
v6 = 88;
dbuf_putc(a1, v6);
v8[0] = a3;
return dbuf_put(a1, (long long)v8, 2LL);
}
| |||
36,297 | get_loc_or_ref | bluesky950520[P]quickjs/quickjs.c | static void get_loc_or_ref(DynBuf *bc, BOOL is_ref, int idx)
{
/* if the field is not initialized, the error is catched when
accessing it */
if (is_ref)
dbuf_putc(bc, OP_get_var_ref);
else
dbuf_putc(bc, OP_get_loc);
dbuf_put_u16(bc, idx);
} | O2 | c | get_loc_or_ref:
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
testl %esi, %esi
pushq $0x58
popq %rax
pushq $0x5e
popq %rsi
cmovel %eax, %esi
callq 0x15d33
movzwl %bx, %esi
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3cfc8
| get_loc_or_ref:
push r14
push rbx
push rax
mov ebx, edx
mov r14, rdi
test esi, esi
push 58h ; 'X'
pop rax
push 5Eh ; '^'
pop rsi
cmovz esi, eax
call dbuf_putc
movzx esi, bx
mov rdi, r14
add rsp, 8
pop rbx
pop r14
jmp dbuf_put_u16
| long long get_loc_or_ref(_QWORD *a1, int a2, __int16 a3)
{
bool v4; // zf
char v5; // si
v4 = a2 == 0;
v5 = 94;
if ( v4 )
v5 = 88;
dbuf_putc(a1, v5);
return dbuf_put_u16(a1, a3);
}
| get_loc_or_ref:
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,EDX
MOV R14,RDI
TEST ESI,ESI
PUSH 0x58
POP RAX
PUSH 0x5e
POP RSI
CMOVZ ESI,EAX
CALL 0x00115d33
MOVZX ESI,BX
MOV RDI,R14
ADD RSP,0x8
POP RBX
POP R14
JMP 0x0013cfc8
|
void get_loc_or_ref(int8 param_1,int param_2,int2 param_3)
{
int8 uVar1;
uVar1 = 0x5e;
if (param_2 == 0) {
uVar1 = 0x58;
}
dbuf_putc(param_1,uVar1);
dbuf_put_u16(param_1,param_3);
return;
}
| |
36,298 | ulight::css::(anonymous namespace)::Highlighter::emit(unsigned long, unsigned long, ulight::Highlight_Type, ulight::css::(anonymous namespace)::Coalescing) | ulight/src/main/cpp/css.cpp | void emit(
std::size_t begin,
std::size_t length,
Highlight_Type type,
Coalescing coalescing = Coalescing::normal
)
{
ULIGHT_DEBUG_ASSERT(begin < source_length);
ULIGHT_DEBUG_ASSERT(begin + length <= source_length);
const bool coalesce = (coalescing == Coalescing::forced || options.coalescing) //
&& !out.empty() //
&& Highlight_Type(out.back().type) == type //
&& out.back().begin + out.back().length == begin;
if (coalesce) {
out.back().length += length;
}
else {
out.emplace_back(begin, length, Underlying(type));
}
} | O0 | cpp | ulight::css::(anonymous namespace)::Highlighter::emit(unsigned long, unsigned long, ulight::Highlight_Type, ulight::css::(anonymous namespace)::Coalescing):
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movb %r8b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movb %cl, -0x19(%rbp)
andb $0x1, %al
movb %al, -0x1a(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rcx), %rcx
movb $0x0, -0x29(%rbp)
cmpq %rcx, %rax
jae 0xf7ea
jmp 0xf835
movl $0x20, %edi
callq 0x50a0
movq %rax, %rdi
movq %rdi, -0x50(%rbp)
movq %rdi, -0x28(%rbp)
movb $0x1, -0x29(%rbp)
movb $0x0, (%rdi)
addq $0x8, %rdi
leaq 0xcaca(%rip), %rsi # 0x1c2db
callq 0x7340
movq -0x50(%rbp), %rdi
leaq 0x19d07(%rip), %rax # 0x29528
movq %rax, 0x18(%rdi)
leaq 0x18db4(%rip), %rsi # 0x285e0
xorl %eax, %eax
movl %eax, %edx
callq 0x51f0
movq -0x48(%rbp), %rcx
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq 0x20(%rcx), %rcx
movb $0x0, -0x39(%rbp)
cmpq %rcx, %rax
ja 0xf850
jmp 0xf89b
movl $0x20, %edi
callq 0x50a0
movq %rax, %rdi
movq %rdi, -0x58(%rbp)
movq %rdi, -0x38(%rbp)
movb $0x1, -0x39(%rbp)
movb $0x0, (%rdi)
addq $0x8, %rdi
leaq 0xcb28(%rip), %rsi # 0x1c39f
callq 0x7340
movq -0x58(%rbp), %rdi
leaq 0x19cb9(%rip), %rax # 0x29540
movq %rax, 0x18(%rdi)
leaq 0x18d4e(%rip), %rsi # 0x285e0
xorl %eax, %eax
movl %eax, %edx
callq 0x51f0
movb -0x1a(%rbp), %al
testb $0x1, %al
jne 0xf8b6
jmp 0xf8a4
movq -0x48(%rbp), %rax
movq 0x18(%rax), %rcx
xorl %eax, %eax
testb $0x1, (%rcx)
movb %al, -0x59(%rbp)
je 0xf91e
movq -0x48(%rbp), %rax
movq (%rax), %rdi
callq 0xdec0
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0x59(%rbp)
jne 0xf91e
movq -0x48(%rbp), %rax
movq (%rax), %rdi
callq 0xdee0
movb 0x10(%rax), %cl
xorl %eax, %eax
cmpb -0x19(%rbp), %cl
movb %al, -0x59(%rbp)
jne 0xf91e
movq -0x48(%rbp), %rax
movq (%rax), %rdi
callq 0xdee0
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq (%rcx), %rcx
movq %rcx, -0x68(%rbp)
movq (%rax), %rdi
callq 0xdee0
movq %rax, %rcx
movq -0x68(%rbp), %rax
addq 0x8(%rcx), %rax
cmpq -0x10(%rbp), %rax
sete %al
movb %al, -0x59(%rbp)
movb -0x59(%rbp), %al
andb $0x1, %al
movb %al, -0x3a(%rbp)
testb $0x1, -0x3a(%rbp)
je 0xf94e
movq -0x48(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq (%rax), %rdi
callq 0xdee0
movq -0x70(%rbp), %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
jmp 0xf96c
movq -0x48(%rbp), %rax
movq (%rax), %rdi
movb -0x19(%rbp), %al
movb %al, -0x3b(%rbp)
leaq -0x10(%rbp), %rsi
leaq -0x18(%rbp), %rdx
leaq -0x3b(%rbp), %rcx
callq 0xdf70
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN6ulight3css12_GLOBAL__N_111Highlighter4emitEmmNS_14Highlight_TypeENS1_10CoalescingE:
push rbp
mov rbp, rsp
sub rsp, 70h
mov al, r8b
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_19], cl
and al, 1
mov [rbp+var_1A], al
mov rcx, [rbp+var_8]
mov [rbp+var_48], rcx
mov rax, [rbp+var_10]
mov rcx, [rcx+20h]
mov [rbp+var_29], 0
cmp rax, rcx
jnb short loc_F7EA
jmp short loc_F835
loc_F7EA:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rdi, rax
mov [rbp+var_50], rdi
mov [rbp+var_28], rdi
mov [rbp+var_29], 1
mov byte ptr [rdi], 0
add rdi, 8
lea rsi, aBeginSourceLen; "begin < source_length"
call _ZNSt17basic_string_viewIDuSt11char_traitsIDuEEC2EPKDu; std::u8string_view::basic_string_view(char8_t const*)
mov rdi, [rbp+var_50]; void *
lea rax, off_29528; "/workspace/llm4binary/github2025/ulight"...
mov [rdi+18h], rax
lea rsi, _ZTIN6ulight15Assertion_ErrorE; lptinfo
xor eax, eax
mov edx, eax; void (*)(void *)
call ___cxa_throw
loc_F835:
mov rcx, [rbp+var_48]
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov rcx, [rcx+20h]
mov [rbp+var_39], 0
cmp rax, rcx
ja short loc_F850
jmp short loc_F89B
loc_F850:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rdi, rax
mov [rbp+var_58], rdi
mov [rbp+var_38], rdi
mov [rbp+var_39], 1
mov byte ptr [rdi], 0
add rdi, 8
lea rsi, aBeginLengthSou; "begin + length <= source_length"
call _ZNSt17basic_string_viewIDuSt11char_traitsIDuEEC2EPKDu; std::u8string_view::basic_string_view(char8_t const*)
mov rdi, [rbp+var_58]; void *
lea rax, off_29540; "/workspace/llm4binary/github2025/ulight"...
mov [rdi+18h], rax
lea rsi, _ZTIN6ulight15Assertion_ErrorE; lptinfo
xor eax, eax
mov edx, eax; void (*)(void *)
call ___cxa_throw
loc_F89B:
mov al, [rbp+var_1A]
test al, 1
jnz short loc_F8B6
jmp short $+2
loc_F8A4:
mov rax, [rbp+var_48]
mov rcx, [rax+18h]
xor eax, eax
test byte ptr [rcx], 1
mov [rbp+var_59], al
jz short loc_F91E
loc_F8B6:
mov rax, [rbp+var_48]
mov rdi, [rax]
call _ZNK6ulight17Non_Owning_BufferI12ulight_tokenE5emptyEv; ulight::Non_Owning_Buffer<ulight_token>::empty(void)
mov cl, al
xor eax, eax
test cl, 1
mov [rbp+var_59], al
jnz short loc_F91E
mov rax, [rbp+var_48]
mov rdi, [rax]
call _ZN6ulight17Non_Owning_BufferI12ulight_tokenE4backEv; ulight::Non_Owning_Buffer<ulight_token>::back(void)
mov cl, [rax+10h]
xor eax, eax
cmp cl, [rbp+var_19]
mov [rbp+var_59], al
jnz short loc_F91E
mov rax, [rbp+var_48]
mov rdi, [rax]
call _ZN6ulight17Non_Owning_BufferI12ulight_tokenE4backEv; ulight::Non_Owning_Buffer<ulight_token>::back(void)
mov rcx, rax
mov rax, [rbp+var_48]
mov rcx, [rcx]
mov [rbp+var_68], rcx
mov rdi, [rax]
call _ZN6ulight17Non_Owning_BufferI12ulight_tokenE4backEv; ulight::Non_Owning_Buffer<ulight_token>::back(void)
mov rcx, rax
mov rax, [rbp+var_68]
add rax, [rcx+8]
cmp rax, [rbp+var_10]
setz al
mov [rbp+var_59], al
loc_F91E:
mov al, [rbp+var_59]
and al, 1
mov [rbp+var_3A], al
test [rbp+var_3A], 1
jz short loc_F94E
mov rax, [rbp+var_48]
mov rcx, [rbp+var_18]
mov [rbp+var_70], rcx
mov rdi, [rax]
call _ZN6ulight17Non_Owning_BufferI12ulight_tokenE4backEv; ulight::Non_Owning_Buffer<ulight_token>::back(void)
mov rcx, [rbp+var_70]
add rcx, [rax+8]
mov [rax+8], rcx
jmp short loc_F96C
loc_F94E:
mov rax, [rbp+var_48]
mov rdi, [rax]
mov al, [rbp+var_19]
mov [rbp+var_3B], al
lea rsi, [rbp+var_10]
lea rdx, [rbp+var_18]
lea rcx, [rbp+var_3B]
call _ZN6ulight17Non_Owning_BufferI12ulight_tokenE12emplace_backIJRmS4_hEEERS1_DpOT_Qaasr3stdE18is_constructible_vIT_DpOTL0__Esr3stdE20is_move_assignable_vIS9_E
loc_F96C:
add rsp, 70h
pop rbp
retn
| _QWORD * ulight::css::`anonymous namespace'::Highlighter::emit(
long long **a1,
unsigned long long a2,
long long a3,
char a4,
char a5)
{
long long *v5; // rcx
unsigned long long v6; // rcx
_QWORD *result; // rax
long long *v8; // rdi
long long v9; // [rsp+8h] [rbp-68h]
bool v10; // [rsp+17h] [rbp-59h]
long long *v11; // [rsp+18h] [rbp-58h]
long long *exception; // [rsp+20h] [rbp-50h]
_BYTE v13[2]; // [rsp+35h] [rbp-3Bh] BYREF
char v14; // [rsp+37h] [rbp-39h]
long long *v15; // [rsp+38h] [rbp-38h]
char v16; // [rsp+47h] [rbp-29h]
long long *v17; // [rsp+48h] [rbp-28h]
char v18; // [rsp+56h] [rbp-1Ah]
char v19; // [rsp+57h] [rbp-19h]
long long v20; // [rsp+58h] [rbp-18h] BYREF
long long v21[2]; // [rsp+60h] [rbp-10h] BYREF
v21[1] = (long long)a1;
v21[0] = a2;
v20 = a3;
v19 = a4;
v18 = a5 & 1;
v5 = a1[4];
v16 = 0;
if ( a2 >= (unsigned long long)v5 )
{
exception = (long long *)__cxa_allocate_exception(0x20uLL);
v17 = exception;
v16 = 1;
*(_BYTE *)exception = 0;
std::u8string_view::basic_string_view(exception + 1, (long long)"begin < source_length");
exception[3] = (long long)off_29528;
__cxa_throw(exception, (struct type_info *)&`typeinfo for'ulight::Assertion_Error, 0LL);
}
v6 = (unsigned long long)a1[4];
v14 = 0;
if ( v20 + v21[0] > v6 )
{
v11 = (long long *)__cxa_allocate_exception(0x20uLL);
v15 = v11;
v14 = 1;
*(_BYTE *)v11 = 0;
std::u8string_view::basic_string_view(v11 + 1, (long long)"begin + length <= source_length");
v11[3] = (long long)off_29540;
__cxa_throw(v11, (struct type_info *)&`typeinfo for'ulight::Assertion_Error, 0LL);
}
if ( (v18 & 1) != 0 || (v10 = 0, (*(_BYTE *)a1[3] & 1) != 0) )
{
v10 = 0;
if ( !ulight::Non_Owning_Buffer<ulight_token>::empty((long long)*a1) )
{
v10 = 0;
if ( *(_BYTE *)(ulight::Non_Owning_Buffer<ulight_token>::back(*a1) + 16) == v19 )
{
v9 = *(_QWORD *)ulight::Non_Owning_Buffer<ulight_token>::back(*a1);
v10 = *(_QWORD *)(ulight::Non_Owning_Buffer<ulight_token>::back(*a1) + 8) + v9 == v21[0];
}
}
}
v13[1] = v10;
if ( v10 )
{
result = (_QWORD *)ulight::Non_Owning_Buffer<ulight_token>::back(*a1);
result[1] += v20;
}
else
{
v8 = *a1;
v13[0] = v19;
return ulight::Non_Owning_Buffer<ulight_token>::emplace_back<unsigned long &,unsigned long &,unsigned char>(
v8,
v21,
&v20,
v13);
}
return result;
}
| emit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV AL,R8B
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV byte ptr [RBP + -0x19],CL
AND AL,0x1
MOV byte ptr [RBP + -0x1a],AL
MOV RCX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x48],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x20]
MOV byte ptr [RBP + -0x29],0x0
CMP RAX,RCX
JNC 0x0010f7ea
JMP 0x0010f835
LAB_0010f7ea:
MOV EDI,0x20
CALL 0x001050a0
MOV RDI,RAX
MOV qword ptr [RBP + -0x50],RDI
MOV qword ptr [RBP + -0x28],RDI
MOV byte ptr [RBP + -0x29],0x1
MOV byte ptr [RDI],0x0
ADD RDI,0x8
LEA RSI,[0x11c2db]
CALL 0x00107340
MOV RDI,qword ptr [RBP + -0x50]
LEA RAX,[0x129528]
MOV qword ptr [RDI + 0x18],RAX
LEA RSI,[0x1285e0]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001051f0
LAB_0010f835:
MOV RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX + 0x20]
MOV byte ptr [RBP + -0x39],0x0
CMP RAX,RCX
JA 0x0010f850
JMP 0x0010f89b
LAB_0010f850:
MOV EDI,0x20
CALL 0x001050a0
MOV RDI,RAX
MOV qword ptr [RBP + -0x58],RDI
MOV qword ptr [RBP + -0x38],RDI
MOV byte ptr [RBP + -0x39],0x1
MOV byte ptr [RDI],0x0
ADD RDI,0x8
LEA RSI,[0x11c39f]
CALL 0x00107340
MOV RDI,qword ptr [RBP + -0x58]
LEA RAX,[0x129540]
MOV qword ptr [RDI + 0x18],RAX
LEA RSI,[0x1285e0]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001051f0
LAB_0010f89b:
MOV AL,byte ptr [RBP + -0x1a]
TEST AL,0x1
JNZ 0x0010f8b6
JMP 0x0010f8a4
LAB_0010f8a4:
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RAX + 0x18]
XOR EAX,EAX
TEST byte ptr [RCX],0x1
MOV byte ptr [RBP + -0x59],AL
JZ 0x0010f91e
LAB_0010f8b6:
MOV RAX,qword ptr [RBP + -0x48]
MOV RDI,qword ptr [RAX]
CALL 0x0010dec0
MOV CL,AL
XOR EAX,EAX
TEST CL,0x1
MOV byte ptr [RBP + -0x59],AL
JNZ 0x0010f91e
MOV RAX,qword ptr [RBP + -0x48]
MOV RDI,qword ptr [RAX]
CALL 0x0010dee0
MOV CL,byte ptr [RAX + 0x10]
XOR EAX,EAX
CMP CL,byte ptr [RBP + -0x19]
MOV byte ptr [RBP + -0x59],AL
JNZ 0x0010f91e
MOV RAX,qword ptr [RBP + -0x48]
MOV RDI,qword ptr [RAX]
CALL 0x0010dee0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RCX]
MOV qword ptr [RBP + -0x68],RCX
MOV RDI,qword ptr [RAX]
CALL 0x0010dee0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,qword ptr [RCX + 0x8]
CMP RAX,qword ptr [RBP + -0x10]
SETZ AL
MOV byte ptr [RBP + -0x59],AL
LAB_0010f91e:
MOV AL,byte ptr [RBP + -0x59]
AND AL,0x1
MOV byte ptr [RBP + -0x3a],AL
TEST byte ptr [RBP + -0x3a],0x1
JZ 0x0010f94e
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x70],RCX
MOV RDI,qword ptr [RAX]
CALL 0x0010dee0
MOV RCX,qword ptr [RBP + -0x70]
ADD RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x0010f96c
LAB_0010f94e:
MOV RAX,qword ptr [RBP + -0x48]
MOV RDI,qword ptr [RAX]
MOV AL,byte ptr [RBP + -0x19]
MOV byte ptr [RBP + -0x3b],AL
LEA RSI,[RBP + -0x10]
LEA RDX,[RBP + -0x18]
LEA RCX,[RBP + -0x3b]
CALL 0x0010df70
LAB_0010f96c:
ADD RSP,0x70
POP RBP
RET
|
/* ulight::css::(anonymous namespace)::Highlighter::emit(unsigned long, unsigned long,
ulight::Highlight_Type, ulight::css::(anonymous namespace)::Coalescing) */
void __thiscall
ulight::css::(anonymous_namespace)::Highlighter::emit
(Highlighter *this,ulong param_1,long param_2,char param_4,byte param_5)
{
uint uVar1;
int1 *puVar2;
long lVar3;
long *plVar4;
long lVar5;
bool local_61;
char local_43;
bool local_42;
int1 local_41;
int1 *local_40;
int1 local_31;
int1 *local_30;
byte local_22;
char local_21;
long local_20;
ulong local_18;
Highlighter *local_10;
local_22 = param_5 & 1;
local_31 = 0;
local_21 = param_4;
local_20 = param_2;
local_18 = param_1;
local_10 = this;
if (*(ulong *)(this + 0x20) <= param_1) {
puVar2 = (int1 *)__cxa_allocate_exception(0x20);
local_31 = 1;
*puVar2 = 0;
local_30 = puVar2;
std::basic_string_view<char8_t,std::char_traits<char8_t>>::basic_string_view
((basic_string_view<char8_t,std::char_traits<char8_t>> *)(puVar2 + 8),
(uchar *)"begin < source_length");
*(int ***)(puVar2 + 0x18) = &PTR_s__workspace_llm4binary_github2025_00129528;
/* WARNING: Subroutine does not return */
__cxa_throw(puVar2,&Assertion_Error::typeinfo,0);
}
local_41 = 0;
if (param_1 + param_2 <= *(ulong *)(this + 0x20)) {
if ((local_22 != 0) || (local_61 = false, (**(byte **)(this + 0x18) & 1) != 0)) {
uVar1 = Non_Owning_Buffer<ulight_token>::empty(*(Non_Owning_Buffer<ulight_token> **)this);
local_61 = false;
if ((uVar1 & 1) == 0) {
lVar3 = Non_Owning_Buffer<ulight_token>::back(*(Non_Owning_Buffer<ulight_token> **)this);
local_61 = false;
if (*(char *)(lVar3 + 0x10) == local_21) {
plVar4 = (long *)Non_Owning_Buffer<ulight_token>::back
(*(Non_Owning_Buffer<ulight_token> **)this);
lVar3 = *plVar4;
lVar5 = Non_Owning_Buffer<ulight_token>::back(*(Non_Owning_Buffer<ulight_token> **)this);
local_61 = lVar3 + *(long *)(lVar5 + 8) == local_18;
}
}
}
lVar3 = local_20;
local_42 = local_61;
if (local_61 == false) {
local_43 = local_21;
_ZN6ulight17Non_Owning_BufferI12ulight_tokenE12emplace_backIJRmS4_hEEERS1_DpOT_Qaasr3stdE18is_constructible_vIT_DpOTL0__Esr3stdE20is_move_assignable_vIS9_E
(*(int8 *)this,&local_18,&local_20,&local_43);
}
else {
lVar5 = Non_Owning_Buffer<ulight_token>::back(*(Non_Owning_Buffer<ulight_token> **)this);
*(long *)(lVar5 + 8) = lVar3 + *(long *)(lVar5 + 8);
}
return;
}
puVar2 = (int1 *)__cxa_allocate_exception(0x20);
local_41 = 1;
*puVar2 = 0;
local_40 = puVar2;
std::basic_string_view<char8_t,std::char_traits<char8_t>>::basic_string_view
((basic_string_view<char8_t,std::char_traits<char8_t>> *)(puVar2 + 8),
(uchar *)"begin + length <= source_length");
*(int ***)(puVar2 + 0x18) = &PTR_s__workspace_llm4binary_github2025_00129540;
/* WARNING: Subroutine does not return */
__cxa_throw(puVar2,&Assertion_Error::typeinfo,0);
}
| |
36,299 | ma_init_dynamic_array | eloqsql/libmariadb/libmariadb/ma_array.c | my_bool ma_init_dynamic_array(DYNAMIC_ARRAY *array, uint element_size,
uint init_alloc, uint alloc_increment CALLER_INFO_PROTO)
{
if (!alloc_increment)
{
alloc_increment=max((8192-MALLOC_OVERHEAD)/element_size,16);
if (init_alloc > 8 && alloc_increment > init_alloc * 2)
alloc_increment=init_alloc*2;
}
if (!init_alloc)
init_alloc=alloc_increment;
array->elements=0;
array->max_element=init_alloc;
array->alloc_increment=alloc_increment;
array->size_of_element=element_size;
if (!(array->buffer=(char*) malloc(element_size*init_alloc)))
{
array->max_element=0;
return(TRUE);
}
return(FALSE);
} | O0 | c | ma_init_dynamic_array:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jne 0x67d25
movl $0x1ff8, %eax # imm = 0x1FF8
xorl %edx, %edx
divl -0x14(%rbp)
cmpl $0x10, %eax
jbe 0x67cf9
movl $0x1ff8, %eax # imm = 0x1FF8
xorl %edx, %edx
divl -0x14(%rbp)
movl %eax, -0x20(%rbp)
jmp 0x67d03
movl $0x10, %eax
movl %eax, -0x20(%rbp)
jmp 0x67d03
movl -0x20(%rbp), %eax
movl %eax, -0x1c(%rbp)
cmpl $0x8, -0x18(%rbp)
jbe 0x67d23
movl -0x1c(%rbp), %eax
movl -0x18(%rbp), %ecx
shll %ecx
cmpl %ecx, %eax
jbe 0x67d23
movl -0x18(%rbp), %eax
shll %eax
movl %eax, -0x1c(%rbp)
jmp 0x67d25
cmpl $0x0, -0x18(%rbp)
jne 0x67d31
movl -0x1c(%rbp), %eax
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl $0x0, 0x8(%rax)
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0xc(%rax)
movl -0x1c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x10(%rax)
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x14(%rax)
movl -0x14(%rbp), %eax
imull -0x18(%rbp), %eax
movl %eax, %eax
movl %eax, %edi
callq 0x368f0
movq -0x10(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x67d88
movq -0x10(%rbp), %rax
movl $0x0, 0xc(%rax)
movb $0x1, -0x1(%rbp)
jmp 0x67d8c
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_init_dynamic_array:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_1C], ecx
cmp [rbp+var_1C], 0
jnz short loc_67D25
mov eax, 1FF8h
xor edx, edx
div [rbp+var_14]
cmp eax, 10h
jbe short loc_67CF9
mov eax, 1FF8h
xor edx, edx
div [rbp+var_14]
mov [rbp+var_20], eax
jmp short loc_67D03
loc_67CF9:
mov eax, 10h
mov [rbp+var_20], eax
jmp short $+2
loc_67D03:
mov eax, [rbp+var_20]
mov [rbp+var_1C], eax
cmp [rbp+var_18], 8
jbe short loc_67D23
mov eax, [rbp+var_1C]
mov ecx, [rbp+var_18]
shl ecx, 1
cmp eax, ecx
jbe short loc_67D23
mov eax, [rbp+var_18]
shl eax, 1
mov [rbp+var_1C], eax
loc_67D23:
jmp short $+2
loc_67D25:
cmp [rbp+var_18], 0
jnz short loc_67D31
mov eax, [rbp+var_1C]
mov [rbp+var_18], eax
loc_67D31:
mov rax, [rbp+var_10]
mov dword ptr [rax+8], 0
mov ecx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+0Ch], ecx
mov ecx, [rbp+var_1C]
mov rax, [rbp+var_10]
mov [rax+10h], ecx
mov ecx, [rbp+var_14]
mov rax, [rbp+var_10]
mov [rax+14h], ecx
mov eax, [rbp+var_14]
imul eax, [rbp+var_18]
mov eax, eax
mov edi, eax
call _malloc
mov rcx, [rbp+var_10]
mov [rcx], rax
cmp rax, 0
jnz short loc_67D88
mov rax, [rbp+var_10]
mov dword ptr [rax+0Ch], 0
mov [rbp+var_1], 1
jmp short loc_67D8C
loc_67D88:
mov [rbp+var_1], 0
loc_67D8C:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char ma_init_dynamic_array(long long a1, unsigned int a2, unsigned int a3, int a4)
{
long long v4; // rax
unsigned int v6; // [rsp+0h] [rbp-20h]
int v7; // [rsp+4h] [rbp-1Ch]
unsigned int v8; // [rsp+8h] [rbp-18h]
v8 = a3;
v7 = a4;
if ( !a4 )
{
v6 = 0x1FF8 / a2 <= 0x10 ? 16 : 0x1FF8 / a2;
v7 = v6;
if ( a3 > 8 && v6 > 2 * a3 )
v7 = 2 * a3;
}
if ( !a3 )
v8 = v7;
*(_DWORD *)(a1 + 8) = 0;
*(_DWORD *)(a1 + 12) = v8;
*(_DWORD *)(a1 + 16) = v7;
*(_DWORD *)(a1 + 20) = a2;
v4 = malloc(v8 * a2);
*(_QWORD *)a1 = v4;
if ( v4 )
return 0;
*(_DWORD *)(a1 + 12) = 0;
return 1;
}
| ma_init_dynamic_array:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV dword ptr [RBP + -0x1c],ECX
CMP dword ptr [RBP + -0x1c],0x0
JNZ 0x00167d25
MOV EAX,0x1ff8
XOR EDX,EDX
DIV dword ptr [RBP + -0x14]
CMP EAX,0x10
JBE 0x00167cf9
MOV EAX,0x1ff8
XOR EDX,EDX
DIV dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x20],EAX
JMP 0x00167d03
LAB_00167cf9:
MOV EAX,0x10
MOV dword ptr [RBP + -0x20],EAX
JMP 0x00167d03
LAB_00167d03:
MOV EAX,dword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x18],0x8
JBE 0x00167d23
MOV EAX,dword ptr [RBP + -0x1c]
MOV ECX,dword ptr [RBP + -0x18]
SHL ECX,0x1
CMP EAX,ECX
JBE 0x00167d23
MOV EAX,dword ptr [RBP + -0x18]
SHL EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
LAB_00167d23:
JMP 0x00167d25
LAB_00167d25:
CMP dword ptr [RBP + -0x18],0x0
JNZ 0x00167d31
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x18],EAX
LAB_00167d31:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x8],0x0
MOV ECX,dword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xc],ECX
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x10],ECX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x14],ECX
MOV EAX,dword ptr [RBP + -0x14]
IMUL EAX,dword ptr [RBP + -0x18]
MOV EAX,EAX
MOV EDI,EAX
CALL 0x001368f0
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JNZ 0x00167d88
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xc],0x0
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00167d8c
LAB_00167d88:
MOV byte ptr [RBP + -0x1],0x0
LAB_00167d8c:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
bool ma_init_dynamic_array(int8 *param_1,uint param_2,uint param_3,uint param_4)
{
void *pvVar1;
uint local_28;
uint local_24;
uint local_20;
local_24 = param_4;
if (param_4 == 0) {
if ((uint)(0x1ff8 / (ulong)param_2) < 0x11) {
local_28 = 0x10;
}
else {
local_28 = (uint)(0x1ff8 / (ulong)param_2);
}
local_24 = local_28;
if ((8 < param_3) && (param_3 * 2 < local_28)) {
local_24 = param_3 << 1;
}
}
local_20 = param_3;
if (param_3 == 0) {
local_20 = local_24;
}
*(int4 *)(param_1 + 1) = 0;
*(uint *)((long)param_1 + 0xc) = local_20;
*(uint *)(param_1 + 2) = local_24;
*(uint *)((long)param_1 + 0x14) = param_2;
pvVar1 = malloc((ulong)(param_2 * local_20));
*param_1 = pvVar1;
if (pvVar1 == (void *)0x0) {
*(int4 *)((long)param_1 + 0xc) = 0;
}
return pvVar1 == (void *)0x0;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.