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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
55,000 | js_set_symmetricDifference | bluesky950520[P]quickjs/quickjs.c | static JSValue js_set_symmetricDifference(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue newset, item, iter, next, rv;
struct list_head *el;
JSMapState *s, *t;
JSMapRecord *mr;
int64_t size;
BOOL done, present;
s = JS_GetOpaque2(ctx, this_val, JS_CLASS_SET);
if (!s)
return JS_EXCEPTION;
// order matters! they're JS-observable side effects
if (js_setlike_get_size(ctx, argv[0], &size) < 0)
return JS_EXCEPTION;
if (js_setlike_get_has(ctx, argv[0], &rv) < 0)
return JS_EXCEPTION;
JS_FreeValue(ctx, rv);
newset = js_map_constructor(ctx, JS_UNDEFINED, 0, NULL, MAGIC_SET);
if (JS_IsException(newset))
return JS_EXCEPTION;
t = JS_GetOpaque(newset, JS_CLASS_SET);
iter = JS_UNDEFINED;
next = JS_UNDEFINED;
// can't clone this_val using js_map_constructor(),
// test262 mandates we don't call the .add method
list_for_each(el, &s->records) {
mr = list_entry(el, JSMapRecord, link);
if (mr->empty)
continue;
mr = map_add_record(ctx, t, js_dup(mr->key));
if (!mr)
goto exception;
mr->value = JS_UNDEFINED;
}
iter = JS_GetProperty(ctx, argv[0], JS_ATOM_keys);
if (JS_IsException(iter))
goto exception;
iter = JS_CallFree(ctx, iter, argv[0], 0, NULL);
if (JS_IsException(iter))
goto exception;
next = JS_GetProperty(ctx, iter, JS_ATOM_next);
if (JS_IsException(next))
goto exception;
for (;;) {
item = JS_IteratorNext(ctx, iter, next, 0, NULL, &done);
if (JS_IsException(item))
goto exception;
if (done) // item is JS_UNDEFINED
break;
// note the subtlety here: due to mutating iterators, it's
// possible for keys to disappear during iteration; test262
// still expects us to maintain insertion order though, so
// we first check |this|, then |new|; |new| is a copy of |this|
// - if item exists in |this|, delete (if it exists) from |new|
// - if item misses in |this| and |new|, add to |new|
// - if item exists in |new| but misses in |this|, *don't* add it,
// mutating iterator erased it
item = map_normalize_key(ctx, item);
present = (NULL != map_find_record(ctx, s, item));
mr = map_find_record(ctx, t, item);
if (present) {
if (mr)
map_delete_record(ctx->rt, t, mr);
JS_FreeValue(ctx, item);
} else if (mr) {
JS_FreeValue(ctx, item);
} else {
mr = map_add_record(ctx, t, item);
if (!mr) {
JS_FreeValue(ctx, item);
goto exception;
}
mr->value = JS_UNDEFINED;
}
}
goto fini;
exception:
JS_FreeValue(ctx, newset);
newset = JS_EXCEPTION;
fini:
JS_FreeValue(ctx, next);
JS_FreeValue(ctx, iter);
return newset;
} | O2 | c | js_set_symmetricDifference:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %r15
movq %rdi, %rbx
pushq $0x24
popq %rcx
callq 0x21207
pushq $0x6
popq %r14
testq %rax, %rax
je 0x45ecf
movq %rax, %r13
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x60(%rsp), %rcx
movq %rbx, %rdi
callq 0x4643b
testl %eax, %eax
js 0x45ecf
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x50(%rsp), %rcx
movq %rbx, %rdi
callq 0x464cf
testl %eax, %eax
js 0x45ecf
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %rbx, %rdi
callq 0x1801e
xorl %ebp, %ebp
pushq $0x3
popq %rdx
pushq $0x1
popq %r9
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2f33e
movq %rax, 0x30(%rsp)
movq %rdx, 0x48(%rsp)
movl %edx, %ecx
movl $0x0, %eax
cmpq $0x6, %rcx
je 0x45ed3
cmpl $-0x1, %ecx
jne 0x45eeb
movq 0x30(%rsp), %rax
cmpw $0x24, 0x6(%rax)
jne 0x45eeb
movq 0x30(%rax), %r14
jmp 0x45eee
xorl %ebp, %ebp
xorl %eax, %eax
orq %rax, %rbp
movq %rbp, %rax
movq %r14, %rdx
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
leaq 0x8(%r13), %r12
movq %r13, %rbp
addq $0x10, %rbp
movq $0x0, 0x28(%rsp)
movq (%rbp), %rbp
cmpq %r12, %rbp
je 0x45f46
cmpl $0x0, -0xc(%rbp)
jne 0x45f40
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
cmpl $-0x9, %ecx
jb 0x45f20
incl (%rdx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3d891
testq %rax, %rax
je 0x460d1
andl $0x0, 0x40(%rax)
movq $0x3, 0x48(%rax)
addq $0x8, %rbp
jmp 0x45f02
movq (%r15), %rsi
movq 0x8(%r15), %rdx
pushq $0x30
popq %rcx
movq %rbx, %rdi
callq 0x1b043
cmpl $0x6, %edx
jne 0x45f79
movq %rdx, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
pushq $0x3
popq %r12
jmp 0x460e3
movq (%r15), %rcx
movq 0x8(%r15), %r8
andq $0x0, (%rsp)
movq $0x0, 0x28(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
xorl %r9d, %r9d
callq 0x1cd8e
movq %rdx, %rbp
cmpl $0x6, %ebp
pushq $0x3
popq %r12
movq %rax, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
je 0x460e3
movq %rax, %r15
pushq $0x6b
popq %rcx
movq %rbx, %rdi
movq %rax, %rsi
movq %rbp, %rdx
callq 0x1b043
movq %rax, 0x28(%rsp)
movq %rdx, %r12
cmpl $0x6, %r12d
je 0x460e3
movq %r12, 0x40(%rsp)
andq $0x0, (%rsp)
leaq 0x3c(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq 0x28(%rsp), %rcx
movq %r12, %r8
xorl %r9d, %r9d
callq 0x398cc
movq %rax, %rbp
movq %rdx, %r15
movl %r15d, %eax
cmpq $0x6, %rax
je 0x460e3
cmpl $0x0, 0x3c(%rsp)
jne 0x46138
xorq $0x7, %rax
movq %rbp, %rcx
btrq $0x3f, %rcx
orq %rax, %rcx
jne 0x4603d
xorl %ebp, %ebp
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x3d80d
movq %rax, %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x3d80d
testq %r12, %r12
je 0x46082
testq %rax, %rax
movq 0x40(%rsp), %r12
je 0x4608c
movq 0x18(%rbx), %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x44b6e
jmp 0x4608c
testq %rax, %rax
movq 0x40(%rsp), %r12
je 0x460a9
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x1801e
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %rbp
jmp 0x45fe1
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x3d891
testq %rax, %rax
je 0x46147
andl $0x0, 0x40(%rax)
movq $0x3, 0x48(%rax)
jmp 0x4609a
movq $0x0, 0x20(%rsp)
pushq $0x3
popq %r12
movq %r12, 0x18(%rsp)
movq %rbx, %rdi
movq 0x30(%rsp), %r14
movq %r14, %rsi
movq 0x48(%rsp), %rdx
callq 0x1801e
pushq $0x6
popq %r15
xorl %ebp, %ebp
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movq %r12, %rdx
callq 0x1801e
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x1801e
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
andq %rax, %r14
movq %r14, %rax
movq %r15, %r14
jmp 0x45ed3
movq 0x30(%rsp), %r14
movl %r14d, %ebp
movq 0x48(%rsp), %r15
jmp 0x460fe
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x1801e
jmp 0x460e3
| js_set_symmetricDifference:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r15, r8
mov rbx, rdi
push 24h ; '$'
pop rcx
call JS_GetOpaque2
push 6
pop r14
test rax, rax
jz loc_45ECF
mov r13, rax
mov rsi, [r15]
mov rdx, [r15+8]
lea rcx, [rsp+98h+var_38]
mov rdi, rbx
call js_setlike_get_size
test eax, eax
js short loc_45ECF
mov rsi, [r15]
mov rdx, [r15+8]
lea rcx, [rsp+98h+var_48]
mov rdi, rbx
call js_setlike_get_has
test eax, eax
js short loc_45ECF
mov rsi, [rsp+98h+var_48]
mov rdx, [rsp+98h+var_40]
mov rdi, rbx
call JS_FreeValue
xor ebp, ebp
push 3
pop rdx
push 1
pop r9
mov rdi, rbx
xor esi, esi
xor ecx, ecx
xor r8d, r8d
call js_map_constructor
mov [rsp+98h+var_68], rax
mov [rsp+98h+var_50], rdx
mov ecx, edx
mov eax, 0
cmp rcx, 6
jz short loc_45ED3
cmp ecx, 0FFFFFFFFh
jnz short loc_45EEB
mov rax, [rsp+98h+var_68]
cmp word ptr [rax+6], 24h ; '$'
jnz short loc_45EEB
mov r14, [rax+30h]
jmp short loc_45EEE
loc_45ECF:
xor ebp, ebp
xor eax, eax
loc_45ED3:
or rbp, rax
mov rax, rbp
mov rdx, r14
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_45EEB:
xor r14d, r14d
loc_45EEE:
lea r12, [r13+8]
mov rbp, r13
add rbp, 10h
mov [rsp+98h+var_70], 0
loc_45F02:
mov rbp, [rbp+0]
cmp rbp, r12
jz short loc_45F46
cmp dword ptr [rbp-0Ch], 0
jnz short loc_45F40
mov rdx, [rbp+20h]
mov rcx, [rbp+28h]
cmp ecx, 0FFFFFFF7h
jb short loc_45F20
inc dword ptr [rdx]
loc_45F20:
mov rdi, rbx
mov rsi, r14
call map_add_record
test rax, rax
jz loc_460D1
and dword ptr [rax+40h], 0
mov qword ptr [rax+48h], 3
loc_45F40:
add rbp, 8
jmp short loc_45F02
loc_45F46:
mov rsi, [r15]
mov rdx, [r15+8]
push 30h ; '0'
pop rcx
mov rdi, rbx
call JS_GetProperty
cmp edx, 6
jnz short loc_45F79
mov [rsp+98h+var_80], rdx
mov [rsp+98h+var_78], rax
mov [rsp+98h+var_70], 0
push 3
pop r12
jmp loc_460E3
loc_45F79:
mov rcx, [r15]
mov r8, [r15+8]
and [rsp+98h+var_98], 0
mov [rsp+98h+var_70], 0
mov rdi, rbx
mov rsi, rax
xor r9d, r9d
call JS_CallFree
mov rbp, rdx
cmp ebp, 6
push 3
pop r12
mov [rsp+98h+var_78], rax
mov [rsp+98h+var_80], rdx
jz loc_460E3
mov r15, rax
push 6Bh ; 'k'
pop rcx
mov rdi, rbx
mov rsi, rax
mov rdx, rbp
call JS_GetProperty
mov [rsp+98h+var_70], rax
mov r12, rdx
cmp r12d, 6
jz loc_460E3
mov [rsp+98h+var_58], r12
loc_45FE1:
and [rsp+98h+var_98], 0
lea rax, [rsp+98h+var_5C]
mov [rsp+98h+var_90], rax
mov rdi, rbx
mov rsi, r15
mov rdx, rbp
mov rcx, [rsp+98h+var_70]
mov r8, r12
xor r9d, r9d
call JS_IteratorNext
mov rbp, rax
mov r15, rdx
mov eax, r15d
cmp rax, 6
jz loc_460E3
cmp [rsp+98h+var_5C], 0
jnz loc_46138
xor rax, 7
mov rcx, rbp
btr rcx, 3Fh ; '?'
or rcx, rax
jnz short loc_4603D
xor ebp, ebp
xor r15d, r15d
loc_4603D:
mov rdi, rbx
mov rsi, r13
mov rdx, rbp
mov rcx, r15
call map_find_record
mov r12, rax
mov rdi, rbx
mov rsi, r14
mov rdx, rbp
mov rcx, r15
call map_find_record
test r12, r12
jz short loc_46082
test rax, rax
mov r12, [rsp+98h+var_58]
jz short loc_4608C
mov rdi, [rbx+18h]
mov rsi, r14
mov rdx, rax
call map_delete_record
jmp short loc_4608C
loc_46082:
test rax, rax
mov r12, [rsp+98h+var_58]
jz short loc_460A9
loc_4608C:
mov rdi, rbx
mov rsi, rbp
mov rdx, r15
call JS_FreeValue
loc_4609A:
mov r15, [rsp+98h+var_78]
mov rbp, [rsp+98h+var_80]
jmp loc_45FE1
loc_460A9:
mov rdi, rbx
mov rsi, r14
mov rdx, rbp
mov rcx, r15
call map_add_record
test rax, rax
jz loc_46147
and dword ptr [rax+40h], 0
mov qword ptr [rax+48h], 3
jmp short loc_4609A
loc_460D1:
mov [rsp+98h+var_78], 0
push 3
pop r12
mov [rsp+98h+var_80], r12
loc_460E3:
mov rdi, rbx
mov r14, [rsp+98h+var_68]
mov rsi, r14
mov rdx, [rsp+98h+var_50]
call JS_FreeValue
push 6
pop r15
xor ebp, ebp
loc_460FE:
mov rdi, rbx
mov rsi, [rsp+98h+var_70]
mov rdx, r12
call JS_FreeValue
mov rdi, rbx
mov rsi, [rsp+98h+var_78]
mov rdx, [rsp+98h+var_80]
call JS_FreeValue
mov rax, 0FFFFFFFF00000000h
and r14, rax
mov rax, r14
mov r14, r15
jmp loc_45ED3
loc_46138:
mov r14, [rsp+98h+var_68]
mov ebp, r14d
mov r15, [rsp+98h+var_50]
jmp short loc_460FE
loc_46147:
mov rdi, rbx
mov rsi, rbp
mov rdx, r15
call JS_FreeValue
jmp short loc_460E3
| unsigned long long js_set_symmetricDifference(
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; // r13
long long v16; // rbp
double v17; // xmm4_8
double v18; // xmm5_8
long long v19; // rdx
unsigned long long v20; // rax
_DWORD *v21; // r14
_QWORD *v23; // rbp
_QWORD *v24; // rbp
_DWORD *v25; // rdx
long long v26; // rcx
_QWORD *v27; // rax
long long Property; // rax
long long v29; // rdx
long long v30; // r12
long long v31; // rax
long long v32; // rdx
int v33; // ebp
int v34; // r15d
long long v35; // rdx
long long v36; // rdx
unsigned long long v37; // rbp
long long v38; // r15
long long record; // r12
long long v40; // rax
_QWORD *v41; // rax
unsigned long long v42; // r14
long long v43; // [rsp+18h] [rbp-80h]
long long v44; // [rsp+20h] [rbp-78h]
long long v45; // [rsp+28h] [rbp-70h]
unsigned long long v46; // [rsp+30h] [rbp-68h]
int v47; // [rsp+3Ch] [rbp-5Ch] BYREF
long long v48; // [rsp+40h] [rbp-58h]
long long v49; // [rsp+48h] [rbp-50h]
long long v50[2]; // [rsp+50h] [rbp-48h] BYREF
_BYTE v51[56]; // [rsp+60h] [rbp-38h] BYREF
Opaque2 = JS_GetOpaque2(a1, a2, a3, 0x24u);
if ( !Opaque2
|| (v15 = Opaque2, (int)js_setlike_get_size(a1, *a13, a13[1], v51) < 0)
|| (int)js_setlike_get_has(a1, *a13, a13[1], v50) < 0 )
{
v16 = 0LL;
v20 = 0LL;
return v20 | v16;
}
JS_FreeValue(a1, v50[0], v50[1]);
v16 = 0LL;
v46 = js_map_constructor(a1, 0LL, 3LL, 0, 0LL, 1u, a4, a5, a6, a7, v17, v18, a10, a11);
v49 = v19;
v20 = 0LL;
if ( (unsigned int)v19 != 6LL )
{
if ( (_DWORD)v19 == -1 && *(_WORD *)(v46 + 6) == 36 )
v21 = *(_DWORD **)(v46 + 48);
else
v21 = 0LL;
v23 = (_QWORD *)(v15 + 16);
v45 = 0LL;
while ( 1 )
{
v24 = (_QWORD *)*v23;
if ( v24 == (_QWORD *)(v15 + 8) )
break;
if ( !*((_DWORD *)v24 - 3) )
{
v25 = (_DWORD *)v24[4];
v26 = v24[5];
if ( (unsigned int)v26 >= 0xFFFFFFF7 )
++*v25;
v27 = map_add_record(a1, (long long)v21, v25, v26);
if ( !v27 )
{
v44 = 0LL;
v30 = 3LL;
v43 = 3LL;
goto LABEL_37;
}
*((_DWORD *)v27 + 16) = 0;
v27[9] = 3LL;
}
v23 = v24 + 1;
}
Property = JS_GetProperty(a1, *a13, a13[1], 48);
if ( (_DWORD)v29 == 6 )
{
v43 = v29;
v44 = Property;
v45 = 0LL;
v30 = 3LL;
LABEL_37:
v42 = v46;
JS_FreeValue(a1, v46, v49);
v16 = 0LL;
LABEL_38:
JS_FreeValue(a1, v45, v30);
JS_FreeValue(a1, v44, v43);
v20 = v42 & 0xFFFFFFFF00000000LL;
return v20 | v16;
}
v45 = 0LL;
v31 = JS_CallFree(a1, Property, v29, *a13, a13[1], 0, 0LL);
v33 = v32;
v30 = 3LL;
v44 = v31;
v43 = v32;
if ( (_DWORD)v32 == 6 )
goto LABEL_37;
v34 = v31;
v45 = JS_GetProperty(a1, v31, v32, 107);
v30 = v35;
if ( (_DWORD)v35 == 6 )
goto LABEL_37;
v48 = v35;
while ( 1 )
{
v37 = JS_IteratorNext(a1, v34, v33, v45, v30, 0, 0LL, &v47);
v38 = v36;
if ( (unsigned int)v36 == 6LL )
goto LABEL_37;
if ( v47 )
{
v42 = v46;
v16 = (unsigned int)v46;
goto LABEL_38;
}
if ( !((unsigned int)v36 ^ 7LL | v37 & 0x7FFFFFFFFFFFFFFFLL) )
{
v37 = 0LL;
v38 = 0LL;
}
record = map_find_record(a1, v15, (_DWORD *)v37, v38, (__m128d)a4);
v40 = map_find_record(a1, (long long)v21, (_DWORD *)v37, v38, (__m128d)a4);
if ( record )
break;
v30 = v48;
if ( v40 )
goto LABEL_32;
v41 = map_add_record(a1, (long long)v21, (_DWORD *)v37, v38);
if ( !v41 )
{
JS_FreeValue(a1, v37, v38);
goto LABEL_37;
}
*((_DWORD *)v41 + 16) = 0;
v41[9] = 3LL;
LABEL_33:
v34 = v44;
v33 = v43;
}
v30 = v48;
if ( v40 )
map_delete_record(*(_QWORD *)(a1 + 24), v21, v40);
LABEL_32:
JS_FreeValue(a1, v37, v38);
goto LABEL_33;
}
return v20 | v16;
}
| js_set_symmetricDifference:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R15,R8
MOV RBX,RDI
PUSH 0x24
POP RCX
CALL 0x00121207
PUSH 0x6
POP R14
TEST RAX,RAX
JZ 0x00145ecf
MOV R13,RAX
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RCX,[RSP + 0x60]
MOV RDI,RBX
CALL 0x0014643b
TEST EAX,EAX
JS 0x00145ecf
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RCX,[RSP + 0x50]
MOV RDI,RBX
CALL 0x001464cf
TEST EAX,EAX
JS 0x00145ecf
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
MOV RDI,RBX
CALL 0x0011801e
XOR EBP,EBP
PUSH 0x3
POP RDX
PUSH 0x1
POP R9
MOV RDI,RBX
XOR ESI,ESI
XOR ECX,ECX
XOR R8D,R8D
CALL 0x0012f33e
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x48],RDX
MOV ECX,EDX
MOV EAX,0x0
CMP RCX,0x6
JZ 0x00145ed3
CMP ECX,-0x1
JNZ 0x00145eeb
MOV RAX,qword ptr [RSP + 0x30]
CMP word ptr [RAX + 0x6],0x24
JNZ 0x00145eeb
MOV R14,qword ptr [RAX + 0x30]
JMP 0x00145eee
LAB_00145ecf:
XOR EBP,EBP
XOR EAX,EAX
LAB_00145ed3:
OR RBP,RAX
MOV RAX,RBP
MOV RDX,R14
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00145eeb:
XOR R14D,R14D
LAB_00145eee:
LEA R12,[R13 + 0x8]
MOV RBP,R13
ADD RBP,0x10
MOV qword ptr [RSP + 0x28],0x0
LAB_00145f02:
MOV RBP,qword ptr [RBP]
CMP RBP,R12
JZ 0x00145f46
CMP dword ptr [RBP + -0xc],0x0
JNZ 0x00145f40
MOV RDX,qword ptr [RBP + 0x20]
MOV RCX,qword ptr [RBP + 0x28]
CMP ECX,-0x9
JC 0x00145f20
INC dword ptr [RDX]
LAB_00145f20:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0013d891
TEST RAX,RAX
JZ 0x001460d1
AND dword ptr [RAX + 0x40],0x0
MOV qword ptr [RAX + 0x48],0x3
LAB_00145f40:
ADD RBP,0x8
JMP 0x00145f02
LAB_00145f46:
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
PUSH 0x30
POP RCX
MOV RDI,RBX
CALL 0x0011b043
CMP EDX,0x6
JNZ 0x00145f79
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],0x0
PUSH 0x3
POP R12
JMP 0x001460e3
LAB_00145f79:
MOV RCX,qword ptr [R15]
MOV R8,qword ptr [R15 + 0x8]
AND qword ptr [RSP],0x0
MOV qword ptr [RSP + 0x28],0x0
MOV RDI,RBX
MOV RSI,RAX
XOR R9D,R9D
CALL 0x0011cd8e
MOV RBP,RDX
CMP EBP,0x6
PUSH 0x3
POP R12
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x18],RDX
JZ 0x001460e3
MOV R15,RAX
PUSH 0x6b
POP RCX
MOV RDI,RBX
MOV RSI,RAX
MOV RDX,RBP
CALL 0x0011b043
MOV qword ptr [RSP + 0x28],RAX
MOV R12,RDX
CMP R12D,0x6
JZ 0x001460e3
MOV qword ptr [RSP + 0x40],R12
LAB_00145fe1:
AND qword ptr [RSP],0x0
LEA RAX,[RSP + 0x3c]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,RBX
MOV RSI,R15
MOV RDX,RBP
MOV RCX,qword ptr [RSP + 0x28]
MOV R8,R12
XOR R9D,R9D
CALL 0x001398cc
MOV RBP,RAX
MOV R15,RDX
MOV EAX,R15D
CMP RAX,0x6
JZ 0x001460e3
CMP dword ptr [RSP + 0x3c],0x0
JNZ 0x00146138
XOR RAX,0x7
MOV RCX,RBP
BTR RCX,0x3f
OR RCX,RAX
JNZ 0x0014603d
XOR EBP,EBP
XOR R15D,R15D
LAB_0014603d:
MOV RDI,RBX
MOV RSI,R13
MOV RDX,RBP
MOV RCX,R15
CALL 0x0013d80d
MOV R12,RAX
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RBP
MOV RCX,R15
CALL 0x0013d80d
TEST R12,R12
JZ 0x00146082
TEST RAX,RAX
MOV R12,qword ptr [RSP + 0x40]
JZ 0x0014608c
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R14
MOV RDX,RAX
CALL 0x00144b6e
JMP 0x0014608c
LAB_00146082:
TEST RAX,RAX
MOV R12,qword ptr [RSP + 0x40]
JZ 0x001460a9
LAB_0014608c:
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R15
CALL 0x0011801e
LAB_0014609a:
MOV R15,qword ptr [RSP + 0x20]
MOV RBP,qword ptr [RSP + 0x18]
JMP 0x00145fe1
LAB_001460a9:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RBP
MOV RCX,R15
CALL 0x0013d891
TEST RAX,RAX
JZ 0x00146147
AND dword ptr [RAX + 0x40],0x0
MOV qword ptr [RAX + 0x48],0x3
JMP 0x0014609a
LAB_001460d1:
MOV qword ptr [RSP + 0x20],0x0
PUSH 0x3
POP R12
MOV qword ptr [RSP + 0x18],R12
LAB_001460e3:
MOV RDI,RBX
MOV R14,qword ptr [RSP + 0x30]
MOV RSI,R14
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x0011801e
PUSH 0x6
POP R15
XOR EBP,EBP
LAB_001460fe:
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,R12
CALL 0x0011801e
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x18]
CALL 0x0011801e
MOV RAX,-0x100000000
AND R14,RAX
MOV RAX,R14
MOV R14,R15
JMP 0x00145ed3
LAB_00146138:
MOV R14,qword ptr [RSP + 0x30]
MOV EBP,R14D
MOV R15,qword ptr [RSP + 0x48]
JMP 0x001460fe
LAB_00146147:
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R15
CALL 0x0011801e
JMP 0x001460e3
|
int1 [16] js_set_symmetricDifference(long param_1)
{
int1 auVar1 [16];
int iVar2;
long lVar3;
ulong uVar4;
ulong uVar5;
long lVar6;
ulong uVar8;
long lVar9;
ulong uVar10;
long *plVar11;
int8 uVar12;
int8 *in_R8;
int8 uVar13;
int8 uVar14;
int8 uVar15;
int1 auVar16 [16];
int1 auVar17 [16];
int1 auVar18 [16];
int8 local_80;
int8 local_78;
int8 local_70;
int local_5c;
int8 local_58;
ulong local_50;
int8 local_48;
int8 local_40;
int1 local_38 [8];
int8 uVar7;
lVar3 = JS_GetOpaque2();
uVar8 = 6;
if (((lVar3 == 0) || (iVar2 = js_setlike_get_size(param_1,*in_R8,in_R8[1],local_38), iVar2 < 0))
|| (iVar2 = js_setlike_get_has(param_1,*in_R8,in_R8[1],&local_48), iVar2 < 0)) {
uVar10 = 0;
uVar5 = 0;
}
else {
JS_FreeValue(param_1,local_48,local_40);
uVar10 = 0;
auVar16 = js_map_constructor(param_1,0,3,0,0,1);
local_50 = auVar16._8_8_;
uVar4 = auVar16._0_8_;
uVar5 = 0;
if ((local_50 & 0xffffffff) != 6) {
if ((auVar16._8_4_ == -1) && (*(short *)(uVar4 + 6) == 0x24)) {
uVar14 = *(int8 *)(uVar4 + 0x30);
}
else {
uVar14 = 0;
}
plVar11 = (long *)(lVar3 + 0x10);
while (lVar9 = *plVar11, lVar9 != lVar3 + 8) {
if (*(int *)(lVar9 + -0xc) == 0) {
if (0xfffffff6 < (uint)*(int8 *)(lVar9 + 0x28)) {
**(int **)(lVar9 + 0x20) = **(int **)(lVar9 + 0x20) + 1;
}
lVar6 = map_add_record(param_1,uVar14);
if (lVar6 == 0) {
auVar17 = ZEXT816(3) << 0x40;
auVar16 = ZEXT816(3) << 0x40;
goto LAB_001460e3;
}
*(int4 *)(lVar6 + 0x40) = 0;
*(int8 *)(lVar6 + 0x48) = 3;
}
plVar11 = (long *)(lVar9 + 8);
}
auVar16 = JS_GetProperty(param_1,*in_R8,in_R8[1],0x30);
if (auVar16._8_4_ == 6) {
auVar17 = ZEXT816(3) << 0x40;
}
else {
auVar16 = JS_CallFree(param_1,auVar16._0_8_,auVar16._8_8_,*in_R8,in_R8[1],0,0);
auVar17 = ZEXT816(3) << 0x40;
if (auVar16._8_4_ != 6) {
auVar17 = JS_GetProperty(param_1,auVar16._0_8_,auVar16._8_8_,0x6b);
uVar13 = auVar17._8_8_;
uVar7 = auVar17._0_8_;
uVar12 = uVar13;
if (auVar17._8_4_ != 6) {
while( true ) {
local_58 = uVar12;
auVar1._8_8_ = uVar13;
auVar1._0_8_ = uVar7;
auVar17._8_8_ = uVar13;
auVar17._0_8_ = uVar7;
auVar18 = JS_IteratorNext(param_1,auVar16._0_8_,auVar16._8_8_,uVar7,uVar13,0,0,
&local_5c);
uVar8 = auVar18._8_8_ & 0xffffffff;
if (uVar8 == 6) break;
if (local_5c != 0) {
uVar10 = uVar4 & 0xffffffff;
uVar8 = local_50;
goto LAB_001460fe;
}
if ((auVar18 & (int1 [16])0x7fffffffffffffff) == (int1 [16])0x0 &&
uVar8 == 7) {
auVar18 = ZEXT816(0);
}
uVar15 = auVar18._8_8_;
uVar12 = auVar18._0_8_;
lVar9 = map_find_record(param_1,lVar3,uVar12,uVar15);
lVar6 = map_find_record(param_1,uVar14,uVar12,uVar15);
uVar13 = local_58;
auVar17._8_8_ = local_58;
if (lVar9 == 0) {
if (lVar6 != 0) goto LAB_0014608c;
lVar9 = map_add_record(param_1,uVar14,uVar12,uVar15);
if (lVar9 == 0) {
JS_FreeValue(param_1,uVar12,uVar15);
break;
}
*(int4 *)(lVar9 + 0x40) = 0;
*(int8 *)(lVar9 + 0x48) = 3;
uVar12 = local_58;
}
else {
if (lVar6 != 0) {
map_delete_record(*(int8 *)(param_1 + 0x18),uVar14,lVar6);
}
LAB_0014608c:
JS_FreeValue(param_1,uVar12,uVar15);
uVar12 = local_58;
}
}
}
}
}
LAB_001460e3:
JS_FreeValue(param_1,uVar4,local_50);
uVar10 = 0;
uVar8 = 6;
auVar1 = auVar17;
LAB_001460fe:
local_70 = auVar1._0_8_;
local_80 = auVar16._8_8_;
local_78 = auVar16._0_8_;
JS_FreeValue(param_1,local_70,auVar1._8_8_);
JS_FreeValue(param_1,local_78,local_80);
uVar5 = uVar4 & 0xffffffff00000000;
}
}
auVar16._8_8_ = uVar8;
auVar16._0_8_ = uVar10 | uVar5;
return auVar16;
}
| |
55,001 | my_casedn_utf32 | eloqsql/strings/ctype-ucs2.c | static size_t
my_casedn_utf32(CHARSET_INFO *cs, const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int res;
const char *srcend= src + srclen;
char *dstend= dst + dstlen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(srclen <= dstlen);
while ((res= my_utf32_uni(cs, &wc, (uchar*) src, (uchar*) srcend)) > 0)
{
my_tolower_utf32(uni_plane,&wc);
if (res != my_uni_utf32(cs, wc, (uchar*) dst, (uchar*) dstend))
break;
src+= res;
dst+= res;
}
return srclen;
} | O3 | c | my_casedn_utf32:
movq %rdx, %rax
cmpq $0x4, %rdx
jl 0xc4a45
pushq %rbp
movq %rsp, %rbp
pushq %rbx
leaq (%rsi,%rax), %rdx
addq %rcx, %r8
movq 0x78(%rdi), %rdi
addq $0x4, %rcx
movzbl (%rsi), %r9d
shll $0x18, %r9d
movzbl 0x1(%rsi), %r10d
shll $0x10, %r10d
orl %r9d, %r10d
cmpl $0x10ffff, %r10d # imm = 0x10FFFF
ja 0xc4a43
movzbl 0x2(%rsi), %ebx
shll $0x8, %ebx
movzbl 0x3(%rsi), %r9d
orq %r9, %rbx
orq %r10, %rbx
cmpq (%rdi), %rbx
ja 0xc4a0c
movq 0x8(%rdi), %r10
movl %ebx, %r11d
shrl $0x8, %r11d
movq (%r10,%r11,8), %r10
testq %r10, %r10
je 0xc4a0c
leaq (%r9,%r9,2), %r9
movl 0x4(%r10,%r9,4), %ebx
cmpq %r8, %rcx
ja 0xc4a43
cmpl $0x10ffff, %ebx # imm = 0x10FFFF
ja 0xc4a43
movb $0x0, -0x4(%rcx)
movl %ebx, %r9d
shrl $0x10, %r9d
movb %r9b, -0x3(%rcx)
movb %bh, -0x2(%rcx)
movb %bl, -0x1(%rcx)
leaq 0x8(%rsi), %r9
addq $0x4, %rcx
addq $0x4, %rsi
cmpq %rdx, %r9
jbe 0xc49bb
popq %rbx
popq %rbp
retq
| my_casedn_utf32:
mov rax, rdx
cmp rdx, 4
jl locret_C4A45
push rbp
mov rbp, rsp
push rbx
lea rdx, [rsi+rax]
add r8, rcx
mov rdi, [rdi+78h]
add rcx, 4
loc_C49BB:
movzx r9d, byte ptr [rsi]
shl r9d, 18h
movzx r10d, byte ptr [rsi+1]
shl r10d, 10h
or r10d, r9d
cmp r10d, offset unk_10FFFF
ja short loc_C4A43
movzx ebx, byte ptr [rsi+2]
shl ebx, 8
movzx r9d, byte ptr [rsi+3]
or rbx, r9
or rbx, r10
cmp rbx, [rdi]
ja short loc_C4A0C
mov r10, [rdi+8]
mov r11d, ebx
shr r11d, 8
mov r10, [r10+r11*8]
test r10, r10
jz short loc_C4A0C
lea r9, [r9+r9*2]
mov ebx, [r10+r9*4+4]
loc_C4A0C:
cmp rcx, r8
ja short loc_C4A43
cmp ebx, offset unk_10FFFF
ja short loc_C4A43
mov byte ptr [rcx-4], 0
mov r9d, ebx
shr r9d, 10h
mov [rcx-3], r9b
mov [rcx-2], bh
mov [rcx-1], bl
lea r9, [rsi+8]
add rcx, 4
add rsi, 4
cmp r9, rdx
jbe loc_C49BB
loc_C4A43:
pop rbx
pop rbp
locret_C4A45:
retn
| long long my_casedn_utf32(long long a1, unsigned __int8 *a2, long long a3, long long a4, long long a5)
{
long long result; // rax
unsigned __int8 *v6; // rdx
unsigned long long v7; // r8
unsigned long long *v8; // rdi
unsigned long long v9; // rcx
long long v10; // r10
long long v11; // r9
unsigned long long v12; // rbx
long long v13; // r10
unsigned __int8 *v14; // r9
result = a3;
if ( a3 >= 4 )
{
v6 = &a2[a3];
v7 = a4 + a5;
v8 = *(unsigned long long **)(a1 + 120);
v9 = a4 + 4;
do
{
v10 = (*a2 << 24) | (a2[1] << 16);
if ( (unsigned int)v10 > (unsigned int)&unk_10FFFF )
break;
v11 = a2[3];
v12 = v10 | v11 | (a2[2] << 8);
if ( v12 <= *v8 )
{
v13 = *(_QWORD *)(v8[1] + 8LL * ((unsigned int)v12 >> 8));
if ( v13 )
LODWORD(v12) = *(_DWORD *)(v13 + 12 * v11 + 4);
}
if ( v9 > v7 )
break;
if ( (unsigned int)v12 > (unsigned int)&unk_10FFFF )
break;
*(_BYTE *)(v9 - 4) = 0;
*(_BYTE *)(v9 - 3) = BYTE2(v12);
*(_BYTE *)(v9 - 2) = BYTE1(v12);
*(_BYTE *)(v9 - 1) = v12;
v14 = a2 + 8;
v9 += 4LL;
a2 += 4;
}
while ( v14 <= v6 );
}
return result;
}
| my_casedn_utf32:
MOV RAX,RDX
CMP RDX,0x4
JL 0x001c4a45
PUSH RBP
MOV RBP,RSP
PUSH RBX
LEA RDX,[RSI + RAX*0x1]
ADD R8,RCX
MOV RDI,qword ptr [RDI + 0x78]
ADD RCX,0x4
LAB_001c49bb:
MOVZX R9D,byte ptr [RSI]
SHL R9D,0x18
MOVZX R10D,byte ptr [RSI + 0x1]
SHL R10D,0x10
OR R10D,R9D
CMP R10D,0x10ffff
JA 0x001c4a43
MOVZX EBX,byte ptr [RSI + 0x2]
SHL EBX,0x8
MOVZX R9D,byte ptr [RSI + 0x3]
OR RBX,R9
OR RBX,R10
CMP RBX,qword ptr [RDI]
JA 0x001c4a0c
MOV R10,qword ptr [RDI + 0x8]
MOV R11D,EBX
SHR R11D,0x8
MOV R10,qword ptr [R10 + R11*0x8]
TEST R10,R10
JZ 0x001c4a0c
LEA R9,[R9 + R9*0x2]
MOV EBX,dword ptr [R10 + R9*0x4 + 0x4]
LAB_001c4a0c:
CMP RCX,R8
JA 0x001c4a43
CMP EBX,0x10ffff
JA 0x001c4a43
MOV byte ptr [RCX + -0x4],0x0
MOV R9D,EBX
SHR R9D,0x10
MOV byte ptr [RCX + -0x3],R9B
MOV byte ptr [RCX + -0x2],BH
MOV byte ptr [RCX + -0x1],BL
LEA R9,[RSI + 0x8]
ADD RCX,0x4
ADD RSI,0x4
CMP R9,RDX
JBE 0x001c49bb
LAB_001c4a43:
POP RBX
POP RBP
LAB_001c4a45:
RET
|
void my_casedn_utf32(long param_1,byte *param_2,long param_3,long param_4,long param_5)
{
byte *pbVar1;
byte *pbVar2;
ulong *puVar3;
long lVar4;
ulong uVar5;
ulong uVar6;
uint uVar7;
if (3 < param_3) {
pbVar2 = param_2 + param_3;
puVar3 = *(ulong **)(param_1 + 0x78);
uVar5 = param_4 + 4;
while (uVar7 = (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18, uVar7 < 0x110000) {
uVar6 = (ulong)CONCAT11(param_2[2],param_2[3]) | (ulong)uVar7;
if ((uVar6 <= *puVar3) && (lVar4 = *(long *)(puVar3[1] + (uVar6 >> 8) * 8), lVar4 != 0)) {
uVar6 = (ulong)*(uint *)(lVar4 + 4 + (ulong)param_2[3] * 0xc);
}
if ((ulong)(param_5 + param_4) < uVar5) {
return;
}
if (0x10ffff < (uint)uVar6) {
return;
}
*(int1 *)(uVar5 - 4) = 0;
*(char *)(uVar5 - 3) = (char)(uVar6 >> 0x10);
*(char *)(uVar5 - 2) = (char)(uVar6 >> 8);
*(char *)(uVar5 - 1) = (char)uVar6;
pbVar1 = param_2 + 8;
uVar5 = uVar5 + 4;
param_2 = param_2 + 4;
if (pbVar2 < pbVar1) {
return;
}
}
}
return;
}
| |
55,002 | my_xml_parse | eloqsql/strings/xml.c | int my_xml_parse(MY_XML_PARSER *p,const char *str, size_t len)
{
my_xml_attr_rewind(p);
p->beg=str;
p->cur=str;
p->end=str+len;
while ( p->cur < p->end )
{
MY_XML_ATTR a;
if (p->cur[0] == '<')
{
int lex;
int question=0;
int exclam=0;
lex=my_xml_scan(p,&a);
if (MY_XML_COMMENT == lex)
continue;
if (lex == MY_XML_CDATA)
{
a.beg+= 9;
a.end-= 3;
my_xml_value(p, a.beg, (size_t) (a.end-a.beg));
continue;
}
lex=my_xml_scan(p,&a);
if (MY_XML_SLASH == lex)
{
if (MY_XML_IDENT != (lex=my_xml_scan(p,&a)))
{
sprintf(p->errstr,"%s unexpected (ident wanted)",lex2str(lex));
return MY_XML_ERROR;
}
if (MY_XML_OK != my_xml_leave(p,a.beg,(size_t) (a.end-a.beg)))
return MY_XML_ERROR;
lex=my_xml_scan(p,&a);
goto gt;
}
if (MY_XML_EXCLAM == lex)
{
lex=my_xml_scan(p,&a);
exclam=1;
}
else if (MY_XML_QUESTION == lex)
{
lex=my_xml_scan(p,&a);
question=1;
}
if (MY_XML_IDENT == lex)
{
p->current_node_type= MY_XML_NODE_TAG;
if (MY_XML_OK != my_xml_enter(p,a.beg,(size_t) (a.end-a.beg)))
return MY_XML_ERROR;
}
else
{
sprintf(p->errstr,"%s unexpected (ident or '/' wanted)",
lex2str(lex));
return MY_XML_ERROR;
}
while ((MY_XML_IDENT == (lex=my_xml_scan(p,&a))) ||
((MY_XML_STRING == lex && exclam)))
{
MY_XML_ATTR b;
if (MY_XML_EQ == (lex=my_xml_scan(p,&b)))
{
lex=my_xml_scan(p,&b);
if ( (lex == MY_XML_IDENT) || (lex == MY_XML_STRING) )
{
p->current_node_type= MY_XML_NODE_ATTR;
if ((MY_XML_OK != my_xml_enter(p,a.beg,(size_t) (a.end-a.beg))) ||
(MY_XML_OK != my_xml_value(p,b.beg,(size_t) (b.end-b.beg))) ||
(MY_XML_OK != my_xml_leave(p,a.beg,(size_t) (a.end-a.beg))))
return MY_XML_ERROR;
}
else
{
sprintf(p->errstr,"%s unexpected (ident or string wanted)",
lex2str(lex));
return MY_XML_ERROR;
}
}
else if (MY_XML_IDENT == lex)
{
p->current_node_type= MY_XML_NODE_ATTR;
if ((MY_XML_OK != my_xml_enter(p,a.beg,(size_t) (a.end-a.beg))) ||
(MY_XML_OK != my_xml_leave(p,a.beg,(size_t) (a.end-a.beg))))
return MY_XML_ERROR;
}
else if ((MY_XML_STRING == lex) && exclam)
{
/*
We are in <!DOCTYPE>, e.g.
<!DOCTYPE name SYSTEM "SystemLiteral">
<!DOCTYPE name PUBLIC "PublidLiteral" "SystemLiteral">
Just skip "SystemLiteral" and "PublicidLiteral"
*/
}
else
break;
}
if (lex == MY_XML_SLASH)
{
if (MY_XML_OK != my_xml_leave(p,NULL,0))
return MY_XML_ERROR;
lex=my_xml_scan(p,&a);
}
gt:
if (question)
{
if (lex != MY_XML_QUESTION)
{
sprintf(p->errstr,"%s unexpected ('?' wanted)",lex2str(lex));
return MY_XML_ERROR;
}
if (MY_XML_OK != my_xml_leave(p,NULL,0))
return MY_XML_ERROR;
lex=my_xml_scan(p,&a);
}
if (exclam)
{
if (MY_XML_OK != my_xml_leave(p,NULL,0))
return MY_XML_ERROR;
}
if (lex != MY_XML_GT)
{
sprintf(p->errstr,"%s unexpected ('>' wanted)",lex2str(lex));
return MY_XML_ERROR;
}
}
else
{
a.beg=p->cur;
for ( ; (p->cur < p->end) && (p->cur[0] != '<') ; p->cur++);
a.end=p->cur;
if (!(p->flags & MY_XML_FLAG_SKIP_TEXT_NORMALIZATION))
my_xml_norm_text(&a);
if (a.beg != a.end)
{
my_xml_value(p,a.beg,(size_t) (a.end-a.beg));
}
}
}
if (p->attr.start[0])
{
sprintf(p->errstr,"unexpected END-OF-INPUT");
return MY_XML_ERROR;
}
return MY_XML_OK;
} | O3 | c | my_xml_parse:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x118(%rdi), %rcx
movq %rcx, 0x120(%rdi)
movq %rsi, 0x128(%rdi)
movq %rsi, 0x130(%rdi)
leaq (%rsi,%rdx), %rax
movq %rax, 0x138(%rdi)
testq %rdx, %rdx
jle 0xd72e1
leaq -0x40(%rbp), %r15
cmpb $0x3c, (%rsi)
jne 0xd7023
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd73ab
cmpl $0x43, %eax
je 0xd72c3
cmpl $0x44, %eax
jne 0xd7088
movq 0x150(%rbx), %rax
testq %rax, %rax
je 0xd72c3
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
addq $0x9, %rsi
subq %rsi, %rdx
addq $-0x3, %rdx
jmp 0xd707e
movq %rsi, -0x40(%rbp)
movq %rsi, %rdx
cmpq %rax, %rsi
jae 0xd7049
subq %rsi, %rax
movq %rsi, %rdx
cmpb $0x3c, (%rdx)
je 0xd7049
incq %rdx
movq %rdx, 0x130(%rbx)
decq %rax
jne 0xd7035
movq %rdx, -0x38(%rbp)
testb $0x2, (%rbx)
jne 0xd7062
movq %r15, %rdi
callq 0xd79e3
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
cmpq %rdx, %rsi
je 0xd72c3
movq 0x150(%rbx), %rax
testq %rax, %rax
je 0xd72c3
subq %rsi, %rdx
movq %rbx, %rdi
callq *%rax
jmp 0xd72c3
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd73ab
cmpl $0x2f, %eax
jne 0xd70da
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd73ab
cmpl $0x49, %eax
jne 0xd7341
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
subq %rsi, %rdx
movq %rbx, %rdi
callq 0xd76a9
testl %eax, %eax
jne 0xd7393
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd73ab
movl %eax, %r13d
jmp 0xd72bd
movl %eax, %r14d
cmpl $0x21, %eax
sete %r12b
cmpl $0x3f, %eax
je 0xd70ef
cmpl $0x21, %r14d
jne 0xd70fc
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd73ab
jmp 0xd7102
movb $0x1, %r12b
movl %r14d, %eax
cmpl $0x49, %eax
jne 0xd732d
movl $0x0, 0x4(%rbx)
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
subq %rsi, %rdx
movq %rbx, %rdi
callq 0xd786c
testl %eax, %eax
jne 0xd7393
movb %r12b, -0x29(%rbp)
movl %r14d, %r12d
xorl $0x21, %r12d
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd73ab
movl %eax, %r13d
xorl $0x53, %eax
orl %r12d, %eax
sete %al
cmpl $0x49, %r13d
je 0xd715d
testb %al, %al
je 0xd7246
movq %rbx, %rdi
leaq -0x50(%rbp), %rsi
callq 0xd73ab
cmpl $0x49, %eax
je 0xd71eb
movl %eax, %r13d
cmpl $0x3d, %eax
jne 0xd722a
movq %rbx, %rdi
leaq -0x50(%rbp), %rsi
callq 0xd73ab
cmpl $0x53, %eax
je 0xd7194
cmpl $0x49, %eax
jne 0xd7355
movl $0x1, 0x4(%rbx)
movq -0x40(%rbp), %r13
movq -0x38(%rbp), %r15
subq %r13, %r15
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0xd786c
testl %eax, %eax
jne 0xd7393
movq 0x150(%rbx), %rax
testq %rax, %rax
je 0xd71e0
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
subq %rsi, %rdx
movq %rbx, %rdi
callq *%rax
testl %eax, %eax
jne 0xd7393
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
jmp 0xd721c
movl $0x1, 0x4(%rbx)
movq -0x40(%rbp), %r15
movq -0x38(%rbp), %r13
subq %r15, %r13
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0xd786c
testl %eax, %eax
jne 0xd7393
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0xd76a9
testl %eax, %eax
je 0xd7236
jmp 0xd7393
cmpl $0x21, %r14d
jne 0xd7242
cmpl $0x53, %r13d
jne 0xd7242
movq %rbx, %rdi
leaq -0x40(%rbp), %r15
jmp 0xd713b
leaq -0x40(%rbp), %r15
cmpl $0x2f, %r13d
movb -0x29(%rbp), %r12b
jne 0xd7272
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd76a9
testl %eax, %eax
jne 0xd7393
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd73ab
movl %eax, %r13d
testb %r12b, %r12b
jne 0xd72a3
cmpl $0x3f, %r13d
jne 0xd7369
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd76a9
testl %eax, %eax
jne 0xd7393
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd73ab
movl %eax, %r13d
cmpl $0x21, %r14d
jne 0xd72bd
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd76a9
testl %eax, %eax
jne 0xd7393
cmpl $0x3e, %r13d
jne 0xd7318
movq 0x130(%rbx), %rsi
movq 0x138(%rbx), %rax
cmpq %rax, %rsi
jb 0xd6fdc
movq 0x118(%rbx), %rcx
cmpb $0x0, (%rcx)
je 0xd7310
addq $0x8, %rbx
leaq 0x961e(%rip), %rcx # 0xe090f
movl $0x1, %r14d
movl $0x80, %edx
movq %rbx, %rdi
movl $0x1, %esi
xorl %eax, %eax
callq 0x29970
jmp 0xd7399
xorl %r14d, %r14d
jmp 0xd7399
addq $0x8, %rbx
movl %r13d, %edi
callq 0xd760e
leaq 0x95c9(%rip), %rcx # 0xe08f4
jmp 0xd737c
addq $0x8, %rbx
movl %eax, %edi
callq 0xd760e
leaq 0x954f(%rip), %rcx # 0xe088e
jmp 0xd737c
addq $0x8, %rbx
movl %eax, %edi
callq 0xd760e
leaq 0x951e(%rip), %rcx # 0xe0871
jmp 0xd737c
addq $0x8, %rbx
movl %eax, %edi
callq 0xd760e
leaq 0x954b(%rip), %rcx # 0xe08b2
jmp 0xd737c
addq $0x8, %rbx
movl %r13d, %edi
callq 0xd760e
leaq 0x955d(%rip), %rcx # 0xe08d9
movl $0x80, %edx
movq %rbx, %rdi
movl $0x1, %esi
movq %rax, %r8
xorl %eax, %eax
callq 0x29970
movl $0x1, %r14d
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_xml_parse:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdi
mov rcx, [rdi+118h]
mov [rdi+120h], rcx
mov [rdi+128h], rsi
mov [rdi+130h], rsi
lea rax, [rsi+rdx]
mov [rdi+138h], rax
test rdx, rdx
jle loc_D72E1
lea r15, [rbp+var_40]
loc_D6FDC:
cmp byte ptr [rsi], 3Ch ; '<'
jnz short loc_D7023
mov rdi, rbx
mov rsi, r15
call my_xml_scan
cmp eax, 43h ; 'C'
jz loc_D72C3
cmp eax, 44h ; 'D'
jnz loc_D7088
mov rax, [rbx+150h]
test rax, rax
jz loc_D72C3
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_38]
add rsi, 9
sub rdx, rsi
add rdx, 0FFFFFFFFFFFFFFFDh
jmp short loc_D707E
loc_D7023:
mov [rbp+var_40], rsi
mov rdx, rsi
cmp rsi, rax
jnb short loc_D7049
sub rax, rsi
mov rdx, rsi
loc_D7035:
cmp byte ptr [rdx], 3Ch ; '<'
jz short loc_D7049
inc rdx
mov [rbx+130h], rdx
dec rax
jnz short loc_D7035
loc_D7049:
mov [rbp+var_38], rdx
test byte ptr [rbx], 2
jnz short loc_D7062
mov rdi, r15
call my_xml_norm_text
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_38]
loc_D7062:
cmp rsi, rdx
jz loc_D72C3
mov rax, [rbx+150h]
test rax, rax
jz loc_D72C3
sub rdx, rsi
loc_D707E:
mov rdi, rbx
call rax
jmp loc_D72C3
loc_D7088:
mov rdi, rbx
mov rsi, r15
call my_xml_scan
cmp eax, 2Fh ; '/'
jnz short loc_D70DA
mov rdi, rbx
mov rsi, r15
call my_xml_scan
cmp eax, 49h ; 'I'
jnz loc_D7341
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_38]
sub rdx, rsi
mov rdi, rbx
call my_xml_leave
test eax, eax
jnz loc_D7393
mov rdi, rbx
mov rsi, r15
call my_xml_scan
mov r13d, eax
jmp loc_D72BD
loc_D70DA:
mov r14d, eax
cmp eax, 21h ; '!'
setz r12b
cmp eax, 3Fh ; '?'
jz short loc_D70EF
cmp r14d, 21h ; '!'
jnz short loc_D70FC
loc_D70EF:
mov rdi, rbx
mov rsi, r15
call my_xml_scan
jmp short loc_D7102
loc_D70FC:
mov r12b, 1
mov eax, r14d
loc_D7102:
cmp eax, 49h ; 'I'
jnz loc_D732D
mov dword ptr [rbx+4], 0
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_38]
sub rdx, rsi
mov rdi, rbx
call my_xml_enter
test eax, eax
jnz loc_D7393
mov [rbp+var_29], r12b
mov r12d, r14d
xor r12d, 21h
mov rdi, rbx
loc_D713B:
mov rsi, r15
call my_xml_scan
mov r13d, eax
xor eax, 53h
or eax, r12d
setz al
cmp r13d, 49h ; 'I'
jz short loc_D715D
test al, al
jz loc_D7246
loc_D715D:
mov rdi, rbx
lea rsi, [rbp+var_50]
call my_xml_scan
cmp eax, 49h ; 'I'
jz short loc_D71EB
mov r13d, eax
cmp eax, 3Dh ; '='
jnz loc_D722A
mov rdi, rbx
lea rsi, [rbp+var_50]
call my_xml_scan
cmp eax, 53h ; 'S'
jz short loc_D7194
cmp eax, 49h ; 'I'
jnz loc_D7355
loc_D7194:
mov dword ptr [rbx+4], 1
mov r13, [rbp+var_40]
mov r15, [rbp+var_38]
sub r15, r13
mov rdi, rbx
mov rsi, r13
mov rdx, r15
call my_xml_enter
test eax, eax
jnz loc_D7393
mov rax, [rbx+150h]
test rax, rax
jz short loc_D71E0
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_48]
sub rdx, rsi
mov rdi, rbx
call rax
test eax, eax
jnz loc_D7393
loc_D71E0:
mov rdi, rbx
mov rsi, r13
mov rdx, r15
jmp short loc_D721C
loc_D71EB:
mov dword ptr [rbx+4], 1
mov r15, [rbp+var_40]
mov r13, [rbp+var_38]
sub r13, r15
mov rdi, rbx
mov rsi, r15
mov rdx, r13
call my_xml_enter
test eax, eax
jnz loc_D7393
mov rdi, rbx
mov rsi, r15
mov rdx, r13
loc_D721C:
call my_xml_leave
test eax, eax
jz short loc_D7236
jmp loc_D7393
loc_D722A:
cmp r14d, 21h ; '!'
jnz short loc_D7242
cmp r13d, 53h ; 'S'
jnz short loc_D7242
loc_D7236:
mov rdi, rbx
lea r15, [rbp+var_40]
jmp loc_D713B
loc_D7242:
lea r15, [rbp+var_40]
loc_D7246:
cmp r13d, 2Fh ; '/'
mov r12b, [rbp+var_29]
jnz short loc_D7272
mov rdi, rbx
xor esi, esi
xor edx, edx
call my_xml_leave
test eax, eax
jnz loc_D7393
mov rdi, rbx
mov rsi, r15
call my_xml_scan
mov r13d, eax
loc_D7272:
test r12b, r12b
jnz short loc_D72A3
cmp r13d, 3Fh ; '?'
jnz loc_D7369
mov rdi, rbx
xor esi, esi
xor edx, edx
call my_xml_leave
test eax, eax
jnz loc_D7393
mov rdi, rbx
mov rsi, r15
call my_xml_scan
mov r13d, eax
loc_D72A3:
cmp r14d, 21h ; '!'
jnz short loc_D72BD
mov rdi, rbx
xor esi, esi
xor edx, edx
call my_xml_leave
test eax, eax
jnz loc_D7393
loc_D72BD:
cmp r13d, 3Eh ; '>'
jnz short loc_D7318
loc_D72C3:
mov rsi, [rbx+130h]
mov rax, [rbx+138h]
cmp rsi, rax
jb loc_D6FDC
mov rcx, [rbx+118h]
loc_D72E1:
cmp byte ptr [rcx], 0
jz short loc_D7310
add rbx, 8
lea rcx, aUnexpectedEndO; "unexpected END-OF-INPUT"
mov r14d, 1
mov edx, 80h
mov rdi, rbx
mov esi, 1
xor eax, eax
call ___sprintf_chk
jmp loc_D7399
loc_D7310:
xor r14d, r14d
jmp loc_D7399
loc_D7318:
add rbx, 8
mov edi, r13d
call lex2str
lea rcx, aSUnexpectedWan; "%s unexpected ('>' wanted)"
jmp short loc_D737C
loc_D732D:
add rbx, 8
mov edi, eax
call lex2str
lea rcx, aSUnexpectedIde; "%s unexpected (ident or '/' wanted)"
jmp short loc_D737C
loc_D7341:
add rbx, 8
mov edi, eax
call lex2str
lea rcx, aSUnexpectedIde_0; "%s unexpected (ident wanted)"
jmp short loc_D737C
loc_D7355:
add rbx, 8
mov edi, eax
call lex2str
lea rcx, aSUnexpectedIde_1; "%s unexpected (ident or string wanted)"
jmp short loc_D737C
loc_D7369:
add rbx, 8
mov edi, r13d
call lex2str
lea rcx, aSUnexpectedWan_0; "%s unexpected ('?' wanted)"
loc_D737C:
mov edx, 80h
mov rdi, rbx
mov esi, 1
mov r8, rax
xor eax, eax
call ___sprintf_chk
loc_D7393:
mov r14d, 1
loc_D7399:
mov eax, r14d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_xml_parse(long long a1, _BYTE *a2, long long a3)
{
_BYTE *v4; // rcx
_BYTE *v5; // rax
int v6; // eax
void ( *v7)(long long, _BYTE *, long long); // rax
long long v8; // rdx
_BYTE *v9; // rdx
long long v10; // rax
unsigned int v11; // eax
unsigned int v12; // eax
unsigned int v13; // r13d
unsigned int v14; // r14d
bool v15; // r12
long long i; // rdi
unsigned int v17; // eax
unsigned int v18; // eax
_BYTE *v19; // r13
long long v20; // r15
unsigned int ( *v21)(long long, _QWORD, _QWORD); // rax
long long v22; // rdi
_BYTE *v23; // rsi
long long v24; // rdx
_BYTE *v25; // r15
long long v26; // r13
bool v27; // r12
unsigned int v28; // r14d
long long v29; // rax
long long v30; // rax
long long v31; // rax
long long v32; // rax
long long v33; // rax
_QWORD v35[2]; // [rsp+0h] [rbp-50h] BYREF
_BYTE *v36; // [rsp+10h] [rbp-40h] BYREF
_BYTE *v37; // [rsp+18h] [rbp-38h]
bool v38; // [rsp+27h] [rbp-29h]
v4 = *(_BYTE **)(a1 + 280);
*(_QWORD *)(a1 + 288) = v4;
*(_QWORD *)(a1 + 296) = a2;
*(_QWORD *)(a1 + 304) = a2;
v5 = &a2[a3];
*(_QWORD *)(a1 + 312) = &a2[a3];
if ( a3 <= 0 )
goto LABEL_57;
while ( *a2 != 60 )
{
v36 = a2;
v9 = a2;
if ( a2 < v5 )
{
v10 = v5 - a2;
v9 = a2;
do
{
if ( *v9 == 60 )
break;
*(_QWORD *)(a1 + 304) = ++v9;
--v10;
}
while ( v10 );
}
v37 = v9;
if ( (*(_BYTE *)a1 & 2) == 0 )
{
my_xml_norm_text(&v36);
a2 = v36;
v9 = v37;
}
if ( a2 != v9 )
{
v7 = *(void ( **)(long long, _BYTE *, long long))(a1 + 336);
if ( v7 )
{
v8 = v9 - a2;
LABEL_16:
v7(a1, a2, v8);
}
}
LABEL_55:
a2 = *(_BYTE **)(a1 + 304);
v5 = *(_BYTE **)(a1 + 312);
if ( a2 >= v5 )
{
v4 = *(_BYTE **)(a1 + 280);
LABEL_57:
if ( *v4 )
{
v28 = 1;
__sprintf_chk(a1 + 8, 1LL, 128LL, "unexpected END-OF-INPUT");
}
else
{
return 0;
}
return v28;
}
}
v6 = my_xml_scan(a1, &v36);
if ( v6 == 67 )
goto LABEL_55;
if ( v6 == 68 )
{
v7 = *(void ( **)(long long, _BYTE *, long long))(a1 + 336);
if ( !v7 )
goto LABEL_55;
a2 = v36 + 9;
v8 = v37 - (v36 + 9) - 3;
goto LABEL_16;
}
v11 = my_xml_scan(a1, &v36);
if ( v11 == 47 )
{
v12 = my_xml_scan(a1, &v36);
if ( v12 == 73 )
{
if ( !(unsigned int)my_xml_leave(a1, v36, v37 - v36) )
{
v13 = my_xml_scan(a1, &v36);
goto LABEL_54;
}
}
else
{
v31 = lex2str(v12);
__sprintf_chk(a1 + 8, 1LL, 128LL, "%s unexpected (ident wanted)", v31);
}
return 1;
}
v14 = v11;
v15 = v11 == 33;
if ( v11 == 63 || v11 == 33 )
v11 = my_xml_scan(a1, &v36);
else
v15 = 1;
if ( v11 != 73 )
{
v30 = lex2str(v11);
__sprintf_chk(a1 + 8, 1LL, 128LL, "%s unexpected (ident or '/' wanted)", v30);
return 1;
}
*(_DWORD *)(a1 + 4) = 0;
if ( (unsigned int)my_xml_enter(a1, v36, v37 - v36) )
return 1;
v38 = v15;
for ( i = a1; ; i = a1 )
{
v13 = my_xml_scan(i, &v36);
if ( v13 != 73 )
{
if ( v14 ^ 0x21 | v13 ^ 0x53 )
break;
}
v17 = my_xml_scan(a1, v35);
if ( v17 == 73 )
{
*(_DWORD *)(a1 + 4) = 1;
v25 = v36;
v26 = v37 - v36;
if ( (unsigned int)my_xml_enter(a1, v36, v37 - v36) )
return 1;
v22 = a1;
v23 = v25;
v24 = v26;
LABEL_40:
if ( (unsigned int)my_xml_leave(v22, v23, v24) )
return 1;
continue;
}
v13 = v17;
if ( v17 == 61 )
{
v18 = my_xml_scan(a1, v35);
if ( v18 != 83 && v18 != 73 )
{
v32 = lex2str(v18);
__sprintf_chk(a1 + 8, 1LL, 128LL, "%s unexpected (ident or string wanted)", v32);
return 1;
}
*(_DWORD *)(a1 + 4) = 1;
v19 = v36;
v20 = v37 - v36;
if ( (unsigned int)my_xml_enter(a1, v36, v37 - v36) )
return 1;
v21 = *(unsigned int ( **)(long long, _QWORD, _QWORD))(a1 + 336);
if ( v21 )
{
if ( v21(a1, v35[0], v35[1] - v35[0]) )
return 1;
}
v22 = a1;
v23 = v19;
v24 = v20;
goto LABEL_40;
}
if ( v14 != 33 || v17 != 83 )
break;
}
v27 = v38;
if ( v13 == 47 )
{
if ( (unsigned int)my_xml_leave(a1, 0LL, 0LL) )
return 1;
v13 = my_xml_scan(a1, &v36);
}
if ( v27 )
goto LABEL_52;
if ( v13 == 63 )
{
if ( (unsigned int)my_xml_leave(a1, 0LL, 0LL) )
return 1;
v13 = my_xml_scan(a1, &v36);
LABEL_52:
if ( v14 != 33 || !(unsigned int)my_xml_leave(a1, 0LL, 0LL) )
{
LABEL_54:
if ( v13 == 62 )
goto LABEL_55;
v29 = lex2str(v13);
__sprintf_chk(a1 + 8, 1LL, 128LL, "%s unexpected ('>' wanted)", v29);
}
}
else
{
v33 = lex2str(v13);
__sprintf_chk(a1 + 8, 1LL, 128LL, "%s unexpected ('?' wanted)", v33);
}
return 1;
}
| my_xml_parse:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV RCX,qword ptr [RDI + 0x118]
MOV qword ptr [RDI + 0x120],RCX
MOV qword ptr [RDI + 0x128],RSI
MOV qword ptr [RDI + 0x130],RSI
LEA RAX,[RSI + RDX*0x1]
MOV qword ptr [RDI + 0x138],RAX
TEST RDX,RDX
JLE 0x001d72e1
LEA R15,[RBP + -0x40]
LAB_001d6fdc:
CMP byte ptr [RSI],0x3c
JNZ 0x001d7023
MOV RDI,RBX
MOV RSI,R15
CALL 0x001d73ab
CMP EAX,0x43
JZ 0x001d72c3
CMP EAX,0x44
JNZ 0x001d7088
MOV RAX,qword ptr [RBX + 0x150]
TEST RAX,RAX
JZ 0x001d72c3
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x38]
ADD RSI,0x9
SUB RDX,RSI
ADD RDX,-0x3
JMP 0x001d707e
LAB_001d7023:
MOV qword ptr [RBP + -0x40],RSI
MOV RDX,RSI
CMP RSI,RAX
JNC 0x001d7049
SUB RAX,RSI
MOV RDX,RSI
LAB_001d7035:
CMP byte ptr [RDX],0x3c
JZ 0x001d7049
INC RDX
MOV qword ptr [RBX + 0x130],RDX
DEC RAX
JNZ 0x001d7035
LAB_001d7049:
MOV qword ptr [RBP + -0x38],RDX
TEST byte ptr [RBX],0x2
JNZ 0x001d7062
MOV RDI,R15
CALL 0x001d79e3
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x38]
LAB_001d7062:
CMP RSI,RDX
JZ 0x001d72c3
MOV RAX,qword ptr [RBX + 0x150]
TEST RAX,RAX
JZ 0x001d72c3
SUB RDX,RSI
LAB_001d707e:
MOV RDI,RBX
CALL RAX
JMP 0x001d72c3
LAB_001d7088:
MOV RDI,RBX
MOV RSI,R15
CALL 0x001d73ab
CMP EAX,0x2f
JNZ 0x001d70da
MOV RDI,RBX
MOV RSI,R15
CALL 0x001d73ab
CMP EAX,0x49
JNZ 0x001d7341
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x38]
SUB RDX,RSI
MOV RDI,RBX
CALL 0x001d76a9
TEST EAX,EAX
JNZ 0x001d7393
MOV RDI,RBX
MOV RSI,R15
CALL 0x001d73ab
MOV R13D,EAX
JMP 0x001d72bd
LAB_001d70da:
MOV R14D,EAX
CMP EAX,0x21
SETZ R12B
CMP EAX,0x3f
JZ 0x001d70ef
CMP R14D,0x21
JNZ 0x001d70fc
LAB_001d70ef:
MOV RDI,RBX
MOV RSI,R15
CALL 0x001d73ab
JMP 0x001d7102
LAB_001d70fc:
MOV R12B,0x1
MOV EAX,R14D
LAB_001d7102:
CMP EAX,0x49
JNZ 0x001d732d
MOV dword ptr [RBX + 0x4],0x0
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x38]
SUB RDX,RSI
MOV RDI,RBX
CALL 0x001d786c
TEST EAX,EAX
JNZ 0x001d7393
MOV byte ptr [RBP + -0x29],R12B
MOV R12D,R14D
XOR R12D,0x21
MOV RDI,RBX
LAB_001d713b:
MOV RSI,R15
CALL 0x001d73ab
MOV R13D,EAX
XOR EAX,0x53
OR EAX,R12D
SETZ AL
CMP R13D,0x49
JZ 0x001d715d
TEST AL,AL
JZ 0x001d7246
LAB_001d715d:
MOV RDI,RBX
LEA RSI,[RBP + -0x50]
CALL 0x001d73ab
CMP EAX,0x49
JZ 0x001d71eb
MOV R13D,EAX
CMP EAX,0x3d
JNZ 0x001d722a
MOV RDI,RBX
LEA RSI,[RBP + -0x50]
CALL 0x001d73ab
CMP EAX,0x53
JZ 0x001d7194
CMP EAX,0x49
JNZ 0x001d7355
LAB_001d7194:
MOV dword ptr [RBX + 0x4],0x1
MOV R13,qword ptr [RBP + -0x40]
MOV R15,qword ptr [RBP + -0x38]
SUB R15,R13
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R15
CALL 0x001d786c
TEST EAX,EAX
JNZ 0x001d7393
MOV RAX,qword ptr [RBX + 0x150]
TEST RAX,RAX
JZ 0x001d71e0
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x48]
SUB RDX,RSI
MOV RDI,RBX
CALL RAX
TEST EAX,EAX
JNZ 0x001d7393
LAB_001d71e0:
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R15
JMP 0x001d721c
LAB_001d71eb:
MOV dword ptr [RBX + 0x4],0x1
MOV R15,qword ptr [RBP + -0x40]
MOV R13,qword ptr [RBP + -0x38]
SUB R13,R15
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R13
CALL 0x001d786c
TEST EAX,EAX
JNZ 0x001d7393
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R13
LAB_001d721c:
CALL 0x001d76a9
TEST EAX,EAX
JZ 0x001d7236
JMP 0x001d7393
LAB_001d722a:
CMP R14D,0x21
JNZ 0x001d7242
CMP R13D,0x53
JNZ 0x001d7242
LAB_001d7236:
MOV RDI,RBX
LEA R15,[RBP + -0x40]
JMP 0x001d713b
LAB_001d7242:
LEA R15,[RBP + -0x40]
LAB_001d7246:
CMP R13D,0x2f
MOV R12B,byte ptr [RBP + -0x29]
JNZ 0x001d7272
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
CALL 0x001d76a9
TEST EAX,EAX
JNZ 0x001d7393
MOV RDI,RBX
MOV RSI,R15
CALL 0x001d73ab
MOV R13D,EAX
LAB_001d7272:
TEST R12B,R12B
JNZ 0x001d72a3
CMP R13D,0x3f
JNZ 0x001d7369
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
CALL 0x001d76a9
TEST EAX,EAX
JNZ 0x001d7393
MOV RDI,RBX
MOV RSI,R15
CALL 0x001d73ab
MOV R13D,EAX
LAB_001d72a3:
CMP R14D,0x21
JNZ 0x001d72bd
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
CALL 0x001d76a9
TEST EAX,EAX
JNZ 0x001d7393
LAB_001d72bd:
CMP R13D,0x3e
JNZ 0x001d7318
LAB_001d72c3:
MOV RSI,qword ptr [RBX + 0x130]
MOV RAX,qword ptr [RBX + 0x138]
CMP RSI,RAX
JC 0x001d6fdc
MOV RCX,qword ptr [RBX + 0x118]
LAB_001d72e1:
CMP byte ptr [RCX],0x0
JZ 0x001d7310
ADD RBX,0x8
LEA RCX,[0x1e090f]
MOV R14D,0x1
MOV EDX,0x80
MOV RDI,RBX
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00129970
JMP 0x001d7399
LAB_001d7310:
XOR R14D,R14D
JMP 0x001d7399
LAB_001d7318:
ADD RBX,0x8
MOV EDI,R13D
CALL 0x001d760e
LEA RCX,[0x1e08f4]
JMP 0x001d737c
LAB_001d732d:
ADD RBX,0x8
MOV EDI,EAX
CALL 0x001d760e
LEA RCX,[0x1e088e]
JMP 0x001d737c
LAB_001d7341:
ADD RBX,0x8
MOV EDI,EAX
CALL 0x001d760e
LEA RCX,[0x1e0871]
JMP 0x001d737c
LAB_001d7355:
ADD RBX,0x8
MOV EDI,EAX
CALL 0x001d760e
LEA RCX,[0x1e08b2]
JMP 0x001d737c
LAB_001d7369:
ADD RBX,0x8
MOV EDI,R13D
CALL 0x001d760e
LEA RCX,[0x1e08d9]
LAB_001d737c:
MOV EDX,0x80
MOV RDI,RBX
MOV ESI,0x1
MOV R8,RAX
XOR EAX,EAX
CALL 0x00129970
LAB_001d7393:
MOV R14D,0x1
LAB_001d7399:
MOV EAX,R14D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Type propagation algorithm not settling */
bool my_xml_parse(byte *param_1,char *param_2,long param_3)
{
char cVar1;
int iVar2;
int iVar3;
code *pcVar4;
int8 uVar5;
char *pcVar6;
char *pcVar7;
long lVar8;
bool bVar9;
long local_58;
long local_50;
char *local_48;
char *local_40;
char local_31;
pcVar7 = *(char **)(param_1 + 0x118);
*(char **)(param_1 + 0x120) = pcVar7;
*(char **)(param_1 + 0x128) = param_2;
*(char **)(param_1 + 0x130) = param_2;
pcVar6 = param_2 + param_3;
*(char **)(param_1 + 0x138) = pcVar6;
if (0 < param_3) {
do {
if (*param_2 == '<') {
iVar2 = my_xml_scan(param_1,&local_48);
if (iVar2 != 0x43) {
if (iVar2 == 0x44) {
pcVar4 = *(code **)(param_1 + 0x150);
if (pcVar4 != (code *)0x0) {
pcVar7 = local_40 + (-3 - (long)(local_48 + 9));
pcVar6 = local_48 + 9;
goto LAB_001d707e;
}
}
else {
iVar2 = my_xml_scan(param_1,&local_48);
if (iVar2 != 0x2f) {
bVar9 = iVar2 == 0x21;
if ((iVar2 == 0x3f) || (iVar2 == 0x21)) {
iVar3 = my_xml_scan(param_1,&local_48);
}
else {
bVar9 = true;
iVar3 = iVar2;
}
if (iVar3 == 0x49) {
param_1[4] = 0;
param_1[5] = 0;
param_1[6] = 0;
param_1[7] = 0;
iVar3 = my_xml_enter(param_1,local_48,(long)local_40 - (long)local_48);
local_31 = bVar9;
do {
if (iVar3 != 0) {
return true;
}
LAB_001d713b:
iVar3 = my_xml_scan(param_1,&local_48);
if ((iVar3 != 0x49) && (iVar3 != 0x53 || iVar2 != 0x21)) goto LAB_001d7246;
iVar3 = my_xml_scan(param_1,&local_58);
pcVar6 = local_48;
if (iVar3 == 0x49) {
param_1[4] = 1;
param_1[5] = 0;
param_1[6] = 0;
param_1[7] = 0;
lVar8 = (long)local_40 - (long)local_48;
iVar3 = my_xml_enter(param_1,local_48,lVar8);
goto joined_r0x001d720d;
}
if (iVar3 != 0x3d) goto LAB_001d722a;
iVar3 = my_xml_scan(param_1,&local_58);
pcVar6 = local_48;
if ((iVar3 != 0x53) && (iVar3 != 0x49)) {
uVar5 = lex2str(iVar3);
pcVar6 = "%s unexpected (ident or string wanted)";
goto LAB_001d737c;
}
param_1[4] = 1;
param_1[5] = 0;
param_1[6] = 0;
param_1[7] = 0;
lVar8 = (long)local_40 - (long)local_48;
iVar3 = my_xml_enter(param_1,local_48,lVar8);
if (iVar3 != 0) {
return true;
}
if (*(code **)(param_1 + 0x150) != (code *)0x0) {
iVar3 = (**(code **)(param_1 + 0x150))(param_1,local_58,local_50 - local_58);
joined_r0x001d720d:
if (iVar3 != 0) {
return true;
}
}
iVar3 = my_xml_leave(param_1,pcVar6,lVar8);
} while( true );
}
uVar5 = lex2str(iVar3);
pcVar6 = "%s unexpected (ident or \'/\' wanted)";
LAB_001d737c:
__sprintf_chk(param_1 + 8,1,0x80,pcVar6,uVar5);
return true;
}
iVar2 = my_xml_scan(param_1,&local_48);
if (iVar2 != 0x49) {
uVar5 = lex2str(iVar2);
pcVar6 = "%s unexpected (ident wanted)";
goto LAB_001d737c;
}
iVar2 = my_xml_leave(param_1,local_48,(long)local_40 - (long)local_48);
if (iVar2 != 0) {
return true;
}
iVar3 = my_xml_scan(param_1,&local_48);
LAB_001d72bd:
if (iVar3 != 0x3e) {
uVar5 = lex2str(iVar3);
pcVar6 = "%s unexpected (\'>\' wanted)";
goto LAB_001d737c;
}
}
}
}
else {
local_40 = param_2;
if (param_2 < pcVar6) {
lVar8 = (long)pcVar6 - (long)param_2;
do {
if (*local_40 == '<') break;
local_40 = local_40 + 1;
*(char **)(param_1 + 0x130) = local_40;
lVar8 = lVar8 + -1;
} while (lVar8 != 0);
}
local_48 = param_2;
if ((*param_1 & 2) == 0) {
my_xml_norm_text(&local_48);
}
if ((local_48 != local_40) && (pcVar4 = *(code **)(param_1 + 0x150), pcVar4 != (code *)0x0))
{
pcVar7 = local_40 + -(long)local_48;
pcVar6 = local_48;
LAB_001d707e:
(*pcVar4)(param_1,pcVar6,pcVar7);
}
}
param_2 = *(char **)(param_1 + 0x130);
pcVar6 = *(char **)(param_1 + 0x138);
} while (param_2 < pcVar6);
pcVar7 = *(char **)(param_1 + 0x118);
}
cVar1 = *pcVar7;
if (cVar1 != '\0') {
__sprintf_chk(param_1 + 8,1,0x80,"unexpected END-OF-INPUT");
}
return cVar1 != '\0';
LAB_001d722a:
if ((iVar2 != 0x21) || (iVar3 != 0x53)) {
LAB_001d7246:
cVar1 = local_31;
if (iVar3 == 0x2f) {
iVar3 = my_xml_leave(param_1,0,0);
if (iVar3 != 0) {
return true;
}
iVar3 = my_xml_scan(param_1,&local_48);
}
if (cVar1 == '\0') {
if (iVar3 != 0x3f) {
uVar5 = lex2str(iVar3);
pcVar6 = "%s unexpected (\'?\' wanted)";
goto LAB_001d737c;
}
iVar3 = my_xml_leave(param_1,0,0);
if (iVar3 != 0) {
return true;
}
iVar3 = my_xml_scan(param_1,&local_48);
}
if ((iVar2 == 0x21) && (iVar2 = my_xml_leave(param_1,0,0), iVar2 != 0)) {
return true;
}
goto LAB_001d72bd;
}
goto LAB_001d713b;
}
| |
55,003 | tokenized_prompt::tokenized_prompt(llama_context*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) | llama.cpp/examples/cvector-generator/cvector-generator.cpp | tokenized_prompt(llama_context * ctx, std::string pos, std::string neg) {
const llama_model * model = llama_get_model(ctx);
const llama_vocab * vocab = llama_model_get_vocab(model);
const bool add_bos = llama_vocab_get_add_bos(vocab);
tokens_pos = common_tokenize(ctx, pos, add_bos, true);
tokens_neg = common_tokenize(ctx, neg, add_bos, true);
max_seq_len = std::max(tokens_pos.size(), tokens_neg.size());
padding_seq(ctx, tokens_pos, max_seq_len);
padding_seq(ctx, tokens_neg, max_seq_len);
} | O3 | cpp | tokenized_prompt::tokenized_prompt(llama_context*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %rsi, %rdi
callq 0x21ef0
movq %rax, %rdi
callq 0x223e0
movq %rax, %rdi
callq 0x22690
movzbl %al, %ebp
movq %rsp, %rdi
movq %r15, %rsi
movq %r13, %rdx
movl %ebp, %ecx
movl $0x1, %r8d
callq 0xfd9f9
movq (%rbx), %rdi
movq 0x10(%rbx), %rsi
movaps (%rsp), %xmm0
movups %xmm0, (%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
testq %rdi, %rdi
je 0x2928f
subq %rdi, %rsi
callq 0x211a0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2928f
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x211a0
movq %rsp, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl %ebp, %ecx
movl $0x1, %r8d
callq 0xfd9f9
movq 0x18(%rbx), %rdi
movq 0x28(%rbx), %rsi
movaps (%rsp), %xmm0
movups %xmm0, 0x18(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x28(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
testq %rdi, %rdi
je 0x292f1
subq %rdi, %rsi
callq 0x211a0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x292f1
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x211a0
movq 0x8(%rbx), %rax
movq 0x20(%rbx), %rcx
subq (%rbx), %rax
sarq $0x2, %rax
subq 0x18(%rbx), %rcx
sarq $0x2, %rcx
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq %rcx, 0x30(%rbx)
movq %rbx, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2b636
movq 0x30(%rbx), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2b636
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2934a
jmp 0x2934a
jmp 0x2934a
jmp 0x2934a
movq %rax, %r15
movq (%r14), %rdi
testq %rdi, %rdi
je 0x29361
movq 0x28(%rbx), %rsi
subq %rdi, %rsi
callq 0x211a0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x29375
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x211a0
movq %r15, %rdi
callq 0x21c10
nop
| _ZN16tokenized_promptC2EP13llama_contextNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_:
push rbp
push r15
push r14
push r13; __int64
push r12; int
push rbx; void *
sub rsp, 18h
mov r12, rcx
mov r13, rdx
mov r15, rsi
mov rbx, rdi
lea r14, [rdi+18h]
xorps xmm0, xmm0
movups xmmword ptr [rdi+20h], xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi], xmm0
mov rdi, rsi
call _llama_get_model
mov rdi, rax
call _llama_model_get_vocab
mov rdi, rax
call _llama_vocab_get_add_bos
movzx ebp, al
mov rdi, rsp
mov rsi, r15
mov rdx, r13
mov ecx, ebp
mov r8d, 1
call _Z15common_tokenizePK13llama_contextRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbb; common_tokenize(llama_context const*,std::string const&,bool,bool)
mov rdi, [rbx]; void *
mov rsi, [rbx+10h]
movaps xmm0, xmmword ptr [rsp+48h+var_48]
movups xmmword ptr [rbx], xmm0
mov rax, qword ptr [rsp+48h+var_38]
mov [rbx+10h], rax
xorps xmm0, xmm0
movaps xmmword ptr [rsp+48h+var_48], xmm0
mov qword ptr [rsp+48h+var_38], 0
test rdi, rdi
jz short loc_2928F
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, [rsp+48h+var_48]; void *
test rdi, rdi
jz short loc_2928F
mov rsi, qword ptr [rsp+48h+var_38]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2928F:
mov rdi, rsp
mov rsi, r15
mov rdx, r12
mov ecx, ebp
mov r8d, 1
call _Z15common_tokenizePK13llama_contextRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbb; common_tokenize(llama_context const*,std::string const&,bool,bool)
mov rdi, [rbx+18h]; void *
mov rsi, [rbx+28h]
movaps xmm0, xmmword ptr [rsp+48h+var_48]
movups xmmword ptr [rbx+18h], xmm0
mov rax, qword ptr [rsp+48h+var_38]
mov [rbx+28h], rax
xorps xmm0, xmm0
movaps xmmword ptr [rsp+48h+var_48], xmm0; int
mov qword ptr [rsp+48h+var_38], 0; int
test rdi, rdi
jz short loc_292F1
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, [rsp+48h+var_48]; void *
test rdi, rdi
jz short loc_292F1
mov rsi, qword ptr [rsp+48h+var_38]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_292F1:
mov rax, [rbx+8]
mov rcx, [rbx+20h]
sub rax, [rbx]
sar rax, 2
sub rcx, [rbx+18h]
sar rcx, 2
cmp rax, rcx
cmova rcx, rax; int
mov [rbx+30h], rcx
mov rdi, rbx; int
mov rsi, r15; int
mov rdx, rbx; int
call _ZN16tokenized_prompt11padding_seqEP13llama_contextRSt6vectorIiSaIiEEm; tokenized_prompt::padding_seq(llama_context *,std::vector<int> &,ulong)
mov rcx, [rbx+30h]; int
mov rdi, rbx; int
mov rsi, r15; int
mov rdx, r14; int
call _ZN16tokenized_prompt11padding_seqEP13llama_contextRSt6vectorIiSaIiEEm; tokenized_prompt::padding_seq(llama_context *,std::vector<int> &,ulong)
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_2934A
jmp short loc_2934A
jmp short loc_2934A
jmp short $+2
loc_2934A:
mov r15, rax
mov rdi, [r14]; void *
test rdi, rdi
jz short loc_29361
mov rsi, [rbx+28h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_29361:
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_29375
mov rsi, [rbx+10h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_29375:
mov rdi, r15
call __Unwind_Resume
| long long tokenized_prompt::tokenized_prompt(long long a1, long long a2, long long a3, long long a4)
{
int v8; // r14d
long long model; // rax
long long vocab; // rax
long long add_bos; // rbp
void *v12; // rdi
long long v13; // rsi
int v14; // r8d
int v15; // r9d
void *v16; // rdi
long long v17; // rsi
unsigned long long v18; // rcx
int v19; // r8d
int v20; // r9d
void *v22[2]; // [rsp+0h] [rbp-48h] BYREF
int v23[2]; // [rsp+10h] [rbp-38h]
void *v24; // [rsp+18h] [rbp-30h]
int v25; // [rsp+20h] [rbp-28h]
long long v26; // [rsp+28h] [rbp-20h]
v8 = a1 + 24;
*(_OWORD *)(a1 + 32) = 0LL;
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)a1 = 0LL;
model = llama_get_model(a2);
vocab = llama_model_get_vocab(model);
add_bos = (unsigned __int8)llama_vocab_get_add_bos(vocab);
common_tokenize(v22, a2, a3, add_bos, 1LL);
v12 = *(void **)a1;
v13 = *(_QWORD *)(a1 + 16);
*(_OWORD *)a1 = *(_OWORD *)v22;
*(_QWORD *)(a1 + 16) = *(_QWORD *)v23;
*(_OWORD *)v22 = 0LL;
*(_QWORD *)v23 = 0LL;
if ( v12 )
{
operator delete(v12, v13 - (_QWORD)v12);
if ( v22[0] )
operator delete(v22[0], *(_QWORD *)v23 - (unsigned long long)v22[0]);
}
common_tokenize(v22, a2, a4, (unsigned int)add_bos, 1LL);
v16 = *(void **)(a1 + 24);
v17 = *(_QWORD *)(a1 + 40);
*(_OWORD *)(a1 + 24) = *(_OWORD *)v22;
*(_QWORD *)(a1 + 40) = *(_QWORD *)v23;
*(_OWORD *)v22 = 0LL;
*(_QWORD *)v23 = 0LL;
if ( v16 )
{
operator delete(v16, v17 - (_QWORD)v16);
if ( v22[0] )
operator delete(v22[0], *(_QWORD *)v23 - (unsigned long long)v22[0]);
}
v18 = (long long)(*(_QWORD *)(a1 + 32) - *(_QWORD *)(a1 + 24)) >> 2;
if ( (long long)(*(_QWORD *)(a1 + 8) - *(_QWORD *)a1) >> 2 > v18 )
v18 = (long long)(*(_QWORD *)(a1 + 8) - *(_QWORD *)a1) >> 2;
*(_QWORD *)(a1 + 48) = v18;
tokenized_prompt::padding_seq(a1, a2, a1, v18, v14, v15, (int)v22[0], (long long)v22[1], v23[0], v24, v25, v26);
return tokenized_prompt::padding_seq(
a1,
a2,
v8,
*(_QWORD *)(a1 + 48),
v19,
v20,
(int)v22[0],
(long long)v22[1],
v23[0],
v24,
v25,
v26);
}
| tokenized_prompt:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12,RCX
MOV R13,RDX
MOV R15,RSI
MOV RBX,RDI
LEA R14,[RDI + 0x18]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI],XMM0
LAB_00129214:
MOV RDI,RSI
CALL 0x00121ef0
LAB_0012921c:
MOV RDI,RAX
CALL 0x001223e0
LAB_00129224:
MOV RDI,RAX
CALL 0x00122690
LAB_0012922c:
MOVZX EBP,AL
MOV RDI,RSP
MOV RSI,R15
MOV RDX,R13
MOV ECX,EBP
MOV R8D,0x1
CALL 0x001fd9f9
MOV RDI,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x10]
MOVAPS XMM0,xmmword ptr [RSP]
MOVUPS xmmword ptr [RBX],XMM0
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RBX + 0x10],RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
TEST RDI,RDI
JZ 0x0012928f
SUB RSI,RDI
CALL 0x001211a0
MOV RDI,qword ptr [RSP]
TEST RDI,RDI
JZ 0x0012928f
MOV RSI,qword ptr [RSP + 0x10]
SUB RSI,RDI
CALL 0x001211a0
LAB_0012928f:
MOV RDI,RSP
MOV RSI,R15
MOV RDX,R12
MOV ECX,EBP
MOV R8D,0x1
CALL 0x001fd9f9
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,qword ptr [RBX + 0x28]
MOVAPS XMM0,xmmword ptr [RSP]
MOVUPS xmmword ptr [RBX + 0x18],XMM0
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RBX + 0x28],RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
TEST RDI,RDI
JZ 0x001292f1
SUB RSI,RDI
CALL 0x001211a0
MOV RDI,qword ptr [RSP]
TEST RDI,RDI
JZ 0x001292f1
MOV RSI,qword ptr [RSP + 0x10]
SUB RSI,RDI
CALL 0x001211a0
LAB_001292f1:
MOV RAX,qword ptr [RBX + 0x8]
MOV RCX,qword ptr [RBX + 0x20]
SUB RAX,qword ptr [RBX]
SAR RAX,0x2
SUB RCX,qword ptr [RBX + 0x18]
SAR RCX,0x2
CMP RAX,RCX
CMOVA RCX,RAX
MOV qword ptr [RBX + 0x30],RCX
LAB_00129313:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,RBX
CALL 0x0012b636
MOV RCX,qword ptr [RBX + 0x30]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x0012b636
LAB_00129333:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* tokenized_prompt::tokenized_prompt(llama_context*, std::__cxx11::string, std::__cxx11::string) */
void __thiscall
tokenized_prompt::tokenized_prompt(tokenized_prompt *this,string *param_1,bool param_3,bool param_4)
{
void *pvVar1;
long lVar2;
bool bVar3;
int8 uVar4;
ulong uVar5;
ulong uVar6;
void *local_48;
int8 uStack_40;
long local_38;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
/* try { // try from 00129214 to 0012921b has its CatchHandler @ 00129348 */
uVar4 = llama_get_model(param_1);
/* try { // try from 0012921c to 00129223 has its CatchHandler @ 00129346 */
uVar4 = llama_model_get_vocab(uVar4);
/* try { // try from 00129224 to 0012922b has its CatchHandler @ 0012934a */
bVar3 = (bool)llama_vocab_get_add_bos(uVar4);
/* try { // try from 0012922c to 00129244 has its CatchHandler @ 00129344 */
common_tokenize((llama_context *)&local_48,param_1,param_3,bVar3);
pvVar1 = *(void **)this;
lVar2 = *(long *)(this + 0x10);
*(void **)this = local_48;
*(int8 *)(this + 8) = uStack_40;
*(long *)(this + 0x10) = local_38;
local_48 = (void *)0x0;
uStack_40 = 0;
local_38 = 0;
if (pvVar1 != (void *)0x0) {
operator_delete(pvVar1,lVar2 - (long)pvVar1);
if (local_48 != (void *)0x0) {
operator_delete(local_48,local_38 - (long)local_48);
}
}
/* try { // try from 0012928f to 001292a4 has its CatchHandler @ 00129342 */
common_tokenize((llama_context *)&local_48,param_1,param_4,bVar3);
pvVar1 = *(void **)(this + 0x18);
lVar2 = *(long *)(this + 0x28);
*(void **)(this + 0x18) = local_48;
*(int8 *)(this + 0x20) = uStack_40;
*(long *)(this + 0x28) = local_38;
local_48 = (void *)0x0;
uStack_40 = 0;
local_38 = 0;
if (pvVar1 != (void *)0x0) {
operator_delete(pvVar1,lVar2 - (long)pvVar1);
if (local_48 != (void *)0x0) {
operator_delete(local_48,local_38 - (long)local_48);
}
}
uVar5 = *(long *)(this + 8) - *(long *)this >> 2;
uVar6 = *(long *)(this + 0x20) - *(long *)(this + 0x18) >> 2;
if (uVar6 < uVar5) {
uVar6 = uVar5;
}
*(ulong *)(this + 0x30) = uVar6;
/* try { // try from 00129313 to 00129332 has its CatchHandler @ 0012934a */
padding_seq(this,(llama_context *)param_1,(vector *)this,uVar6);
padding_seq(this,(llama_context *)param_1,(vector *)(this + 0x18),*(ulong *)(this + 0x30));
return;
}
| |
55,004 | minja::Value::callable(std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)> const&) | monkey531[P]llama/common/minja.hpp | static Value callable(const CallableType & callable) {
return Value(std::make_shared<CallableType>(callable));
} | O3 | cpp | minja::Value::callable(std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)> const&):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rcx
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rsi
callq 0x96c62
movq %rbx, %rdi
movq %r14, %rsi
callq 0x96b8e
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x964de
callq 0x6e096
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x964fb
callq 0x6e096
movq %rbx, %rdi
callq 0x1afb0
nop
| _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE:
push r14
push rbx
sub rsp, 18h
mov rcx, rsi
mov rbx, rdi
lea rdi, [rsp+28h+var_18]
mov qword ptr [rdi-8], 0
lea r14, [rsp+28h+var_20]
lea rdx, [rsp+28h+var_21]
mov rsi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2ISt8functionIFN5minja5ValueERKSt10shared_ptrINS5_7ContextEERNS5_14ArgumentsValueEEESaISF_EJRKSF_EEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,std::allocator<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>>,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&>(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> *&,std::_Sp_alloc_shared_tag<std::allocator<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>>>,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&)
mov rdi, rbx
mov rsi, r14
call _ZN5minja5ValueC2ERKSt10shared_ptrISt8functionIFS0_RKS1_INS_7ContextEERNS_14ArgumentsValueEEEE; minja::Value::Value(std::shared_ptr<std::function<minja::Value ()(std::shared_ptr const&<minja::Context>,minja::ArgumentsValue &)>> const&)
mov rdi, [rsp+28h+var_18]
test rdi, rdi
jz short loc_964DE
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_964DE:
mov rax, rbx
add rsp, 18h
pop rbx
pop r14
retn
mov rbx, rax
mov rdi, [rsp+arg_8]
test rdi, rdi
jz short loc_964FB
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_964FB:
mov rdi, rbx
call __Unwind_Resume
| long long minja::Value::callable(long long a1, long long a2)
{
char v3; // [rsp+7h] [rbp-21h] BYREF
long long v4; // [rsp+8h] [rbp-20h] BYREF
volatile signed __int32 *v5; // [rsp+10h] [rbp-18h] BYREF
v4 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,std::allocator<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>>,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&>(
&v5,
&v4,
&v3,
a2);
minja::Value::Value(a1, &v4);
if ( v5 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v5);
return a1;
}
| callable:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RCX,RSI
MOV RBX,RDI
LEA RDI,[RSP + 0x10]
MOV qword ptr [RDI + -0x8],0x0
LEA R14,[RSP + 0x8]
LEA RDX,[RSP + 0x7]
MOV RSI,R14
CALL 0x00196c62
LAB_001964c4:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00196b8e
LAB_001964cf:
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x001964de
CALL 0x0016e096
LAB_001964de:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R14
RET
|
/* minja::Value::callable(std::function<minja::Value (std::shared_ptr<minja::Context> const&,
minja::ArgumentsValue&)> const&) */
Value * __thiscall minja::Value::callable(Value *this,function *param_1)
{
int1 local_21;
int8 local_20;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_18;
local_20 = 0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count<std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>,std::allocator<std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>>,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>const&>
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&local_18,(shared_ptr *)&local_20,
&local_21,param_1);
/* try { // try from 001964c4 to 001964ce has its CatchHandler @ 001964e9 */
Value(this,(shared_ptr *)&local_20);
if (local_18 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_18);
}
return this;
}
| |
55,005 | Line::Line() | 11AgReS1SoR11[P]Graph/Common/Figures/Line.cpp | Line::Line()
{
id = "line_" + std::to_string(nextId++);
} | O0 | cpp | Line::Line():
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x60(%rbp)
callq 0x99d0
movq -0x60(%rbp), %rdi
movq 0x817c(%rip), %rax # 0x12fe0
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x60, %rdi
movq %rdi, -0x70(%rbp)
callq 0x9850
movq -0x60(%rbp), %rdi
subq $-0x80, %rdi
movq %rdi, -0x68(%rbp)
callq 0x9850
movq -0x60(%rbp), %rax
movw $0x1, 0xa0(%rax)
movw $0x0, 0xa2(%rax)
movq 0x8762(%rip), %rsi # 0x13608
movq %rsi, %rax
incq %rax
movq %rax, 0x8755(%rip) # 0x13608
leaq -0x48(%rbp), %rdi
callq 0x9200
jmp 0xaebe
leaq 0x4364(%rip), %rsi # 0xf229
leaq -0x28(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x9a60
jmp 0xaed4
movq -0x60(%rbp), %rdi
addq $0x8, %rdi
leaq -0x28(%rbp), %rsi
callq 0x9740
leaq -0x28(%rbp), %rdi
callq 0x93d0
leaq -0x48(%rbp), %rdi
callq 0x93d0
addq $0x70, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xaf20
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x93d0
movq -0x68(%rbp), %rdi
callq 0x93d0
movq -0x70(%rbp), %rdi
callq 0x93d0
movq -0x60(%rbp), %rdi
callq 0x90a0
movq -0x50(%rbp), %rdi
callq 0x9ab0
nopw %cs:(%rax,%rax)
| _ZN4LineC2Ev:
push rbp; Alternative name is 'Line::Line(void)'
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
mov [rbp+var_60], rdi
call __ZN5ShapeC2Ev; Shape::Shape(void)
mov rdi, [rbp+var_60]
mov rax, cs:_ZTV4Line_ptr
add rax, 10h
mov [rdi], rax
add rdi, 60h ; '`'
mov [rbp+var_70], rdi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov rdi, [rbp+var_60]
sub rdi, 0FFFFFFFFFFFFFF80h
mov [rbp+var_68], rdi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov rax, [rbp+var_60]
mov word ptr [rax+0A0h], 1
mov word ptr [rax+0A2h], 0
mov rsi, cs:_ZL6nextId; unsigned __int64
mov rax, rsi
inc rax
mov cs:_ZL6nextId, rax; nextId
lea rdi, [rbp+var_48]; this
call __ZNSt7__cxx119to_stringEm; std::to_string(ulong)
jmp short $+2
loc_AEBE:
lea rsi, aLine; "line_"
lea rdi, [rbp+var_28]
lea rdx, [rbp+var_48]
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_AED4:
mov rdi, [rbp+var_60]
add rdi, 8
lea rsi, [rbp+var_28]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rdi, [rbp+var_28]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_48]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
add rsp, 70h
pop rbp
retn
mov rcx, rax
mov eax, edx
mov [rbp+var_50], rcx
mov [rbp+var_54], eax
jmp short loc_AF20
mov rcx, rax
mov eax, edx
mov [rbp+var_50], rcx
mov [rbp+var_54], eax
lea rdi, [rbp+var_48]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_AF20:
mov rdi, [rbp+var_68]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rbp+var_70]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rbp+var_60]; this
call __ZN5ShapeD2Ev; Shape::~Shape()
mov rdi, [rbp+var_50]
call __Unwind_Resume
| void Line::Line(Line *this)
{
unsigned long long v1; // rsi
_BYTE v2[32]; // [rsp+28h] [rbp-48h] BYREF
_BYTE v3[32]; // [rsp+48h] [rbp-28h] BYREF
Shape *v4; // [rsp+68h] [rbp-8h]
v4 = this;
Shape::Shape(this);
*(_QWORD *)this = &`vtable for'Line + 2;
std::string::basic_string((char *)this + 96);
std::string::basic_string((char *)this + 128);
*((_WORD *)this + 80) = 1;
*((_WORD *)this + 81) = 0;
v1 = nextId++;
std::to_string((std::__cxx11 *)v2, v1);
std::operator+<char>(v3, "line_", v2);
std::string::operator=((char *)this + 8, v3);
std::string::~string(v3);
std::string::~string(v2);
}
| Line:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x60],RDI
CALL 0x001099d0
MOV RDI,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [0x00112fe0]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
ADD RDI,0x60
MOV qword ptr [RBP + -0x70],RDI
CALL 0x00109850
MOV RDI,qword ptr [RBP + -0x60]
SUB RDI,-0x80
MOV qword ptr [RBP + -0x68],RDI
CALL 0x00109850
MOV RAX,qword ptr [RBP + -0x60]
MOV word ptr [RAX + 0xa0],0x1
MOV word ptr [RAX + 0xa2],0x0
MOV RSI,qword ptr [0x00113608]
MOV RAX,RSI
INC RAX
MOV qword ptr [0x00113608],RAX
LAB_0010aeb3:
LEA RDI,[RBP + -0x48]
CALL 0x00109200
JMP 0x0010aebe
LAB_0010aebe:
LEA RSI,[0x10f229]
LEA RDI,[RBP + -0x28]
LEA RDX,[RBP + -0x48]
CALL 0x00109a60
LAB_0010aed2:
JMP 0x0010aed4
LAB_0010aed4:
MOV RDI,qword ptr [RBP + -0x60]
ADD RDI,0x8
LEA RSI,[RBP + -0x28]
CALL 0x00109740
LEA RDI,[RBP + -0x28]
CALL 0x001093d0
LEA RDI,[RBP + -0x48]
CALL 0x001093d0
ADD RSP,0x70
POP RBP
RET
|
/* Line::Line() */
void __thiscall Line::Line(Line *this)
{
ulong uVar1;
__cxx11 local_50 [32];
string local_30 [32];
Line *local_10;
local_10 = this;
Shape::Shape((Shape *)this);
*(int **)this = PTR_vtable_00112fe0 + 0x10;
std::__cxx11::string::string((string *)(this + 0x60));
std::__cxx11::string::string((string *)(this + 0x80));
*(int2 *)(this + 0xa0) = 1;
*(int2 *)(this + 0xa2) = 0;
uVar1 = nextId;
nextId = nextId + 1;
/* try { // try from 0010aeb3 to 0010aebb has its CatchHandler @ 0010aefd */
std::__cxx11::to_string(local_50,uVar1);
/* try { // try from 0010aebe to 0010aed1 has its CatchHandler @ 0010af0b */
std::operator+((char *)local_30,(string *)"line_");
std::__cxx11::string::operator=((string *)(this + 8),local_30);
std::__cxx11::string::~string(local_30);
std::__cxx11::string::~string((string *)local_50);
return;
}
| |
55,006 | Line::Line() | 11AgReS1SoR11[P]Graph/Common/Figures/Line.cpp | Line::Line()
{
id = "line_" + std::to_string(nextId++);
} | O1 | cpp | Line::Line():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb %al, 0x18(%rdi)
leaq 0x38(%rdi), %rcx
movq %rcx, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movb %al, 0x38(%rdi)
movw $0x0, 0x48(%rdi)
movsd 0x3ac1(%rip), %xmm0 # 0x8210
movups %xmm0, 0x4c(%rdi)
movq 0x6886(%rip), %rcx # 0xafe0
addq $0x10, %rcx
movq %rcx, (%rdi)
leaq 0x70(%rdi), %r12
movq %r12, 0x60(%rdi)
movq %rax, 0x68(%rdi)
movb %al, 0x70(%rdi)
leaq 0x90(%rdi), %r13
movq %r13, 0x80(%rdi)
movq %rax, 0x88(%rdi)
movb %al, 0x90(%rdi)
movl $0x1, 0xa0(%rdi)
movq 0x6a04(%rip), %r14 # 0xb1a0
leaq 0x1(%r14), %rax
movq %rax, 0x69f9(%rip) # 0xb1a0
movl $0x1, %esi
cmpq $0xa, %r14
jb 0x4801
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x47fa
cmpq $0x3e7, %rcx # imm = 0x3E7
jbe 0x47ff
cmpq $0x2710, %rcx # imm = 0x2710
jb 0x4801
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx # imm = 0x1869F
movq %rdx, %rcx
ja 0x47c4
addl $-0x3, %esi
jmp 0x4801
addl $-0x2, %esi
jmp 0x4801
decl %esi
movl %esi, %esi
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x3230
leaq 0x8(%rsp), %r15
movq (%r15), %rdi
movl 0x8(%r15), %esi
movq %r14, %rdx
callq 0x31d0
leaq 0x3a14(%rip), %rcx # 0x8247
movl $0x5, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3210
addq $0x8, %rbx
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4870
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x4877
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3240
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x48b3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x31f0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x48ca
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31f0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x48f8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31f0
jmp 0x48f8
movq %rax, %r14
movq 0x80(%rbx), %rdi
cmpq %r13, %rdi
je 0x4910
movq (%r13), %rsi
incq %rsi
callq 0x31f0
movq 0x60(%rbx), %rdi
cmpq %r12, %rdi
je 0x4925
movq (%r12), %rsi
incq %rsi
callq 0x31f0
movq %rbx, %rdi
callq 0x3040
movq %r14, %rdi
callq 0x32e0
nop
| _ZN4LineC2Ev:
push rbp; Alternative name is 'Line::Line(void)'
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbx, rdi
lea rax, [rdi+18h]
mov [rdi+8], rax
xor eax, eax
mov [rdi+10h], rax
mov [rdi+18h], al
lea rcx, [rdi+38h]
mov [rdi+28h], rcx
mov [rdi+30h], rax
mov [rdi+38h], al
mov word ptr [rdi+48h], 0
movsd xmm0, cs:qword_8210
movups xmmword ptr [rdi+4Ch], xmm0
mov rcx, cs:_ZTV4Line_ptr
add rcx, 10h
mov [rdi], rcx
lea r12, [rdi+70h]
mov [rdi+60h], r12
mov [rdi+68h], rax
mov [rdi+70h], al
lea r13, [rdi+90h]
mov [rdi+80h], r13
mov [rdi+88h], rax
mov [rdi+90h], al
mov dword ptr [rdi+0A0h], 1
mov r14, cs:_ZL6nextId; nextId
lea rax, [r14+1]
mov cs:_ZL6nextId, rax; nextId
mov esi, 1
cmp r14, 0Ah
jb short loc_4801
mov esi, 4
mov rdi, 346DC5D63886594Bh
mov rcx, r14
loc_47C4:
cmp rcx, 63h ; 'c'
jbe short loc_47FA
cmp rcx, 3E7h
jbe short loc_47FF
cmp rcx, 2710h
jb short loc_4801
mov rax, rcx
mul rdi
shr rdx, 0Bh
add esi, 4
cmp rcx, 1869Fh
mov rcx, rdx
ja short loc_47C4
add esi, 0FFFFFFFDh
jmp short loc_4801
loc_47FA:
add esi, 0FFFFFFFEh
jmp short loc_4801
loc_47FF:
dec esi
loc_4801:
mov esi, esi
lea rbp, [rsp+78h+var_60]
mov [rbp-10h], rbp
lea rdi, [rsp+78h+var_70]
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
lea r15, [rsp+78h+var_70]
mov rdi, [r15]
mov esi, [r15+8]
mov rdx, r14
call __ZNSt8__detail18__to_chars_10_implImEEvPcjT_; std::__detail::__to_chars_10_impl<ulong>(char *,uint,ulong)
lea rcx, aLine; "line_"
mov r8d, 5
mov rdi, r15
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
add rbx, 8
lea r15, [rsp+78h+var_40]
mov [r15-10h], r15
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_4870
mov [rsp+78h+var_50], rdx
mov rdx, [rcx]
mov [rsp+78h+var_40], rdx
jmp short loc_4877
loc_4870:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
loc_4877:
mov rdx, [rax+8]
lea r14, [rsp+78h+var_50]
mov [r14+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r14]; void *
cmp rdi, r15
jz short loc_48B3
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_48B3:
mov rdi, [rsp+78h+var_70]; void *
cmp rdi, rbp
jz short loc_48CA
mov rsi, [rsp+78h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_48CA:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, rbp
jz short loc_48F8
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_48F8
mov r14, rax
loc_48F8:
mov rdi, [rbx+80h]; void *
cmp rdi, r13
jz short loc_4910
mov rsi, [r13+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4910:
mov rdi, [rbx+60h]; void *
cmp rdi, r12
jz short loc_4925
mov rsi, [r12]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4925:
mov rdi, rbx; this
call __ZN5ShapeD2Ev; Shape::~Shape()
mov rdi, r14
call __Unwind_Resume
| void Line::Line(Line *this)
{
unsigned long long v1; // r14
unsigned int v2; // esi
unsigned long long v3; // rcx
bool v4; // cc
long long v5; // rax
_OWORD *v6; // rcx
void *v7; // [rsp+8h] [rbp-70h] BYREF
unsigned int v8; // [rsp+10h] [rbp-68h]
_QWORD v9[2]; // [rsp+18h] [rbp-60h] BYREF
void *v10[2]; // [rsp+28h] [rbp-50h] BYREF
_OWORD v11[4]; // [rsp+38h] [rbp-40h] BYREF
*((_QWORD *)this + 1) = (char *)this + 24;
*((_QWORD *)this + 2) = 0LL;
*((_BYTE *)this + 24) = 0;
*((_QWORD *)this + 5) = (char *)this + 56;
*((_QWORD *)this + 6) = 0LL;
*((_BYTE *)this + 56) = 0;
*((_WORD *)this + 36) = 0;
*(_OWORD *)((char *)this + 76) = 0xA00000001uLL;
*(_QWORD *)this = &`vtable for'Line + 2;
*((_QWORD *)this + 12) = (char *)this + 112;
*((_QWORD *)this + 13) = 0LL;
*((_BYTE *)this + 112) = 0;
*((_QWORD *)this + 16) = (char *)this + 144;
*((_QWORD *)this + 17) = 0LL;
*((_BYTE *)this + 144) = 0;
*((_DWORD *)this + 40) = 1;
v1 = nextId++;
v2 = 1;
if ( v1 >= 0xA )
{
v2 = 4;
v3 = v1;
while ( 1 )
{
if ( v3 <= 0x63 )
{
v2 -= 2;
goto LABEL_10;
}
if ( v3 <= 0x3E7 )
break;
if ( v3 < 0x2710 )
goto LABEL_10;
v2 += 4;
v4 = v3 <= 0x1869F;
v3 /= 0x2710uLL;
if ( v4 )
{
v2 -= 3;
goto LABEL_10;
}
}
--v2;
}
LABEL_10:
v7 = v9;
std::string::_M_construct(&v7, v2, 0LL);
std::__detail::__to_chars_10_impl<unsigned long>(v7, v8, v1);
v5 = std::string::replace(&v7, 0LL, 0LL, "line_", 5LL);
v10[0] = v11;
v6 = (_OWORD *)(v5 + 16);
if ( *(_QWORD *)v5 == v5 + 16 )
{
v11[0] = *v6;
}
else
{
v10[0] = *(void **)v5;
*(_QWORD *)&v11[0] = *(_QWORD *)v6;
}
v10[1] = *(void **)(v5 + 8);
*(_QWORD *)v5 = v6;
*(_QWORD *)(v5 + 8) = 0LL;
*(_BYTE *)(v5 + 16) = 0;
std::string::operator=((char *)this + 8, v10);
if ( v10[0] != v11 )
operator delete(v10[0], *(_QWORD *)&v11[0] + 1LL);
if ( v7 != v9 )
operator delete(v7, v9[0] + 1LL);
}
| Line:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,RDI
LEA RAX,[RDI + 0x18]
MOV qword ptr [RDI + 0x8],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x10],RAX
MOV byte ptr [RDI + 0x18],AL
LEA RCX,[RDI + 0x38]
MOV qword ptr [RDI + 0x28],RCX
MOV qword ptr [RDI + 0x30],RAX
MOV byte ptr [RDI + 0x38],AL
MOV word ptr [RDI + 0x48],0x0
MOVSD XMM0,qword ptr [0x00108210]
MOVUPS xmmword ptr [RDI + 0x4c],XMM0
MOV RCX,qword ptr [0x0010afe0]
ADD RCX,0x10
MOV qword ptr [RDI],RCX
LEA R12,[RDI + 0x70]
MOV qword ptr [RDI + 0x60],R12
MOV qword ptr [RDI + 0x68],RAX
MOV byte ptr [RDI + 0x70],AL
LEA R13,[RDI + 0x90]
MOV qword ptr [RDI + 0x80],R13
MOV qword ptr [RDI + 0x88],RAX
MOV byte ptr [RDI + 0x90],AL
MOV dword ptr [RDI + 0xa0],0x1
MOV R14,qword ptr [0x0010b1a0]
LEA RAX,[R14 + 0x1]
MOV qword ptr [0x0010b1a0],RAX
MOV ESI,0x1
CMP R14,0xa
JC 0x00104801
MOV ESI,0x4
MOV RDI,0x346dc5d63886594b
MOV RCX,R14
LAB_001047c4:
CMP RCX,0x63
JBE 0x001047fa
CMP RCX,0x3e7
JBE 0x001047ff
CMP RCX,0x2710
JC 0x00104801
MOV RAX,RCX
MUL RDI
SHR RDX,0xb
ADD ESI,0x4
CMP RCX,0x1869f
MOV RCX,RDX
JA 0x001047c4
ADD ESI,-0x3
JMP 0x00104801
LAB_001047fa:
ADD ESI,-0x2
JMP 0x00104801
LAB_001047ff:
DEC ESI
LAB_00104801:
MOV ESI,ESI
LEA RBP,[RSP + 0x18]
MOV qword ptr [RBP + -0x10],RBP
LAB_0010480c:
LEA RDI,[RSP + 0x8]
XOR EDX,EDX
CALL 0x00103230
LEA R15,[RSP + 0x8]
MOV RDI,qword ptr [R15]
MOV ESI,dword ptr [R15 + 0x8]
MOV RDX,R14
CALL 0x001031d0
LAB_0010482c:
LEA RCX,[0x108247]
MOV R8D,0x5
MOV RDI,R15
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00103210
LAB_00104845:
ADD RBX,0x8
LEA R15,[RSP + 0x38]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00104870
MOV qword ptr [RSP + 0x28],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x38],RDX
JMP 0x00104877
LAB_00104870:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
LAB_00104877:
MOV RDX,qword ptr [RAX + 0x8]
LEA R14,[RSP + 0x28]
MOV qword ptr [R14 + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RDI,RBX
MOV RSI,R14
CALL 0x00103240
MOV RDI,qword ptr [R14]
CMP RDI,R15
JZ 0x001048b3
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001031f0
LAB_001048b3:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBP
JZ 0x001048ca
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001031f0
LAB_001048ca:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* Line::Line() */
void __thiscall Line::Line(Line *this)
{
bool bVar1;
ulong uVar2;
char cVar3;
long *plVar4;
ulong uVar5;
long *plVar6;
char cVar7;
long *local_70;
uint local_68;
long local_60 [2];
long *local_50;
long local_48;
long local_40;
long lStack_38;
*(Line **)(this + 8) = this + 0x18;
*(int8 *)(this + 0x10) = 0;
this[0x18] = (Line)0x0;
*(Line **)(this + 0x28) = this + 0x38;
*(int8 *)(this + 0x30) = 0;
this[0x38] = (Line)0x0;
*(int2 *)(this + 0x48) = 0;
*(int8 *)(this + 0x4c) = DAT_00108210;
*(int8 *)(this + 0x54) = 0;
*(int **)this = PTR_vtable_0010afe0 + 0x10;
*(Line **)(this + 0x60) = this + 0x70;
*(int8 *)(this + 0x68) = 0;
this[0x70] = (Line)0x0;
*(Line **)(this + 0x80) = this + 0x90;
*(int8 *)(this + 0x88) = 0;
this[0x90] = (Line)0x0;
*(int4 *)(this + 0xa0) = 1;
uVar2 = nextId;
cVar7 = '\x01';
if (9 < nextId) {
uVar5 = nextId;
cVar3 = '\x04';
do {
cVar7 = cVar3;
if (uVar5 < 100) {
cVar7 = cVar7 + -2;
goto LAB_00104801;
}
if (uVar5 < 1000) {
cVar7 = cVar7 + -1;
goto LAB_00104801;
}
if (uVar5 < 10000) goto LAB_00104801;
bVar1 = 99999 < uVar5;
uVar5 = uVar5 / 10000;
cVar3 = cVar7 + '\x04';
} while (bVar1);
cVar7 = cVar7 + '\x01';
}
LAB_00104801:
/* try { // try from 0010480c to 00104817 has its CatchHandler @ 001048f5 */
nextId = nextId + 1;
local_70 = local_60;
std::__cxx11::string::_M_construct((ulong)&local_70,cVar7);
std::__detail::__to_chars_10_impl<unsigned_long>((char *)local_70,local_68,uVar2);
/* try { // try from 0010482c to 00104844 has its CatchHandler @ 001048d9 */
plVar4 = (long *)std::__cxx11::string::replace((ulong)&local_70,0,(char *)0x0,0x108247);
plVar6 = plVar4 + 2;
if ((long *)*plVar4 == plVar6) {
local_40 = *plVar6;
lStack_38 = plVar4[3];
local_50 = &local_40;
}
else {
local_40 = *plVar6;
local_50 = (long *)*plVar4;
}
local_48 = plVar4[1];
*plVar4 = (long)plVar6;
plVar4[1] = 0;
*(int1 *)(plVar4 + 2) = 0;
std::__cxx11::string::operator=((string *)(this + 8),(string *)&local_50);
if (local_50 != &local_40) {
operator_delete(local_50,local_40 + 1);
}
if (local_70 != local_60) {
operator_delete(local_70,local_60[0] + 1);
}
return;
}
| |
55,007 | Line::Line() | 11AgReS1SoR11[P]Graph/Common/Figures/Line.cpp | Line::Line()
{
id = "line_" + std::to_string(nextId++);
} | O2 | cpp | Line::Line():
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
callq 0x43e0
movq 0x51ac(%rip), %rax # 0x9fe0
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x70(%rbx), %rax
movq %rax, 0x60(%rbx)
andq $0x0, 0x68(%rbx)
xorl %eax, %eax
movb %al, 0x70(%rbx)
leaq 0x90(%rbx), %rcx
movq %rcx, 0x80(%rbx)
andq $0x0, 0x88(%rbx)
movb %al, 0x90(%rbx)
movl $0x1, 0xa0(%rbx)
movq 0x5406(%rip), %rsi # 0xa280
leaq 0x1(%rsi), %rax
movq %rax, 0x53fb(%rip) # 0xa280
movq %rsp, %rdi
callq 0x4120
leaq 0x23b3(%rip), %rsi # 0x7247
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x4440
addq $0x8, %rbx
leaq 0x20(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4300
movq %r14, %rdi
callq 0x4180
movq %rsp, %rdi
callq 0x4180
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rsp, %rdi
callq 0x4180
jmp 0x4edf
movq %rax, %r14
leaq 0x60(%rbx), %r15
leaq 0x80(%rbx), %rdi
callq 0x4180
movq %r15, %rdi
callq 0x4180
movq %rbx, %rdi
callq 0x4040
movq %r14, %rdi
callq 0x4460
nop
| _ZN4LineC2Ev:
push r15; Alternative name is 'Line::Line(void)'
push r14
push rbx
sub rsp, 40h
mov rbx, rdi
call __ZN5ShapeC2Ev; Shape::Shape(void)
mov rax, cs:_ZTV4Line_ptr
add rax, 10h
mov [rbx], rax
lea rax, [rbx+70h]
mov [rbx+60h], rax
and qword ptr [rbx+68h], 0
xor eax, eax
mov [rbx+70h], al
lea rcx, [rbx+90h]
mov [rbx+80h], rcx
and qword ptr [rbx+88h], 0
mov [rbx+90h], al
mov dword ptr [rbx+0A0h], 1
mov rsi, cs:_ZL6nextId; unsigned __int64
lea rax, [rsi+1]
mov cs:_ZL6nextId, rax; nextId
mov rdi, rsp; this
call __ZNSt7__cxx119to_stringEm; std::to_string(ulong)
lea rsi, aLine; "line_"
lea rdi, [rsp+58h+var_38]
mov rdx, rsp
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
add rbx, 8
lea r14, [rsp+58h+var_38]
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
add rsp, 40h
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_4EDF
mov r14, rax
loc_4EDF:
lea r15, [rbx+60h]
lea rdi, [rbx+80h]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx; this
call __ZN5ShapeD2Ev; Shape::~Shape()
mov rdi, r14
call __Unwind_Resume
| void Line::Line(Line *this)
{
unsigned long long v1; // rsi
_BYTE v2[32]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v3[56]; // [rsp+20h] [rbp-38h] BYREF
Shape::Shape(this);
*(_QWORD *)this = &`vtable for'Line + 2;
*((_QWORD *)this + 12) = (char *)this + 112;
*((_QWORD *)this + 13) = 0LL;
*((_BYTE *)this + 112) = 0;
*((_QWORD *)this + 16) = (char *)this + 144;
*((_QWORD *)this + 17) = 0LL;
*((_BYTE *)this + 144) = 0;
*((_DWORD *)this + 40) = 1;
v1 = nextId++;
std::to_string((std::__cxx11 *)v2, v1);
std::operator+<char>(v3, "line_", v2);
std::string::operator=((char *)this + 8, v3);
std::string::~string(v3);
std::string::~string(v2);
}
| Line:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV RBX,RDI
CALL 0x001043e0
MOV RAX,qword ptr [0x00109fe0]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RAX,[RBX + 0x70]
MOV qword ptr [RBX + 0x60],RAX
AND qword ptr [RBX + 0x68],0x0
XOR EAX,EAX
MOV byte ptr [RBX + 0x70],AL
LEA RCX,[RBX + 0x90]
MOV qword ptr [RBX + 0x80],RCX
AND qword ptr [RBX + 0x88],0x0
MOV byte ptr [RBX + 0x90],AL
MOV dword ptr [RBX + 0xa0],0x1
MOV RSI,qword ptr [0x0010a280]
LEA RAX,[RSI + 0x1]
MOV qword ptr [0x0010a280],RAX
LAB_00104e85:
MOV RDI,RSP
CALL 0x00104120
LAB_00104e8d:
LEA RSI,[0x107247]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x00104440
LAB_00104ea1:
ADD RBX,0x8
LEA R14,[RSP + 0x20]
MOV RDI,RBX
MOV RSI,R14
CALL 0x00104300
MOV RDI,R14
CALL 0x00104180
MOV RDI,RSP
CALL 0x00104180
ADD RSP,0x40
POP RBX
POP R14
POP R15
RET
|
/* Line::Line() */
void __thiscall Line::Line(Line *this)
{
ulong uVar1;
__cxx11 a_Stack_58 [32];
string local_38 [32];
Shape::Shape((Shape *)this);
*(int **)this = PTR_vtable_00109fe0 + 0x10;
*(Line **)(this + 0x60) = this + 0x70;
*(int8 *)(this + 0x68) = 0;
this[0x70] = (Line)0x0;
*(Line **)(this + 0x80) = this + 0x90;
*(int8 *)(this + 0x88) = 0;
this[0x90] = (Line)0x0;
*(int4 *)(this + 0xa0) = 1;
uVar1 = nextId;
nextId = nextId + 1;
/* try { // try from 00104e85 to 00104e8c has its CatchHandler @ 00104edc */
std::__cxx11::to_string(a_Stack_58,uVar1);
/* try { // try from 00104e8d to 00104ea0 has its CatchHandler @ 00104ecf */
std::operator+((char *)local_38,(string *)"line_");
std::__cxx11::string::operator=((string *)(this + 8),local_38);
std::__cxx11::string::~string(local_38);
std::__cxx11::string::~string((string *)a_Stack_58);
return;
}
| |
55,008 | char* nglog::internal::CheckNotNull<char*>(char const*, int, char const*, char*&&) | ng-log[P]ng-log/src/ng-log/logging.h | T CheckNotNull(const char* file, int line, const char* names, T&& t) {
if (t == nullptr) {
LogMessageFatal(file, line, std::make_unique<std::string>(names));
}
return std::forward<T>(t);
} | O0 | c | char* nglog::internal::CheckNotNull<char*>(char const*, int, char const*, char*&&):
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x2a792
movq -0x8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0xac(%rbp)
leaq -0x90(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
leaq -0x18(%rbp), %rsi
callq 0x2a830
movq -0xa8(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0x22850
jmp 0x2a728
movl -0xac(%rbp), %edx
movq -0xb8(%rbp), %rsi
leaq -0x80(%rbp), %rdi
leaq -0x88(%rbp), %rcx
callq 0x35bd0
jmp 0x2a747
leaq -0x80(%rbp), %rdi
callq 0x35c10
jmp 0x2a752
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x2a784
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x22870
leaq -0x90(%rbp), %rdi
callq 0x22890
jmp 0x2a79f
movq -0x20(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
movq -0x98(%rbp), %rdi
callq 0xaf50
nopl (%rax,%rax)
| _ZN5nglog8internal12CheckNotNullIRPlEET_PKciS6_OS4_:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_20]
cmp qword ptr [rax], 0
jnz loc_2A792
mov rax, [rbp+var_8]
mov [rbp+var_B8], rax
mov eax, [rbp+var_C]
mov [rbp+var_AC], eax
lea rdi, [rbp+var_90]
mov [rbp+var_A8], rdi
lea rsi, [rbp+var_18]
call _ZSt11make_uniqueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRPKcEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::string,char const*&>(char const*&)
mov rsi, [rbp+var_A8]
lea rdi, [rbp+var_88]
call _ZN5nglog8internal13CheckOpStringC2ESt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS8_EE; nglog::internal::CheckOpString::CheckOpString(std::unique_ptr<std::string>)
jmp short $+2
loc_2A728:
mov edx, [rbp+var_AC]; int
mov rsi, [rbp+var_B8]; char *
lea rdi, [rbp+var_80]; this
lea rcx, [rbp+var_88]; nglog::internal::CheckOpString *
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
jmp short $+2
loc_2A747:
lea rdi, [rbp+var_80]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
jmp short $+2
loc_2A752:
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
jmp short loc_2A784
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
lea rdi, [rbp+var_88]; this
call _ZN5nglog8internal13CheckOpStringD2Ev; nglog::internal::CheckOpString::~CheckOpString()
loc_2A784:
lea rdi, [rbp+var_90]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
jmp short loc_2A79F
loc_2A792:
mov rax, [rbp+var_20]
add rsp, 0C0h
pop rbp
retn
loc_2A79F:
mov rdi, [rbp+var_98]
call __Unwind_Resume
| _QWORD * nglog::internal::CheckNotNull<long *&>(char *a1, int a2, long long a3, _QWORD *a4)
{
char *v5; // [rsp+8h] [rbp-B8h]
int v6; // [rsp+14h] [rbp-ACh]
char v7[8]; // [rsp+30h] [rbp-90h] BYREF
char v8[8]; // [rsp+38h] [rbp-88h] BYREF
_BYTE v9[96]; // [rsp+40h] [rbp-80h] BYREF
_QWORD *v10; // [rsp+A0h] [rbp-20h]
long long v11; // [rsp+A8h] [rbp-18h] BYREF
int v12; // [rsp+B4h] [rbp-Ch]
char *v13; // [rsp+B8h] [rbp-8h]
v13 = a1;
v12 = a2;
v11 = a3;
v10 = a4;
if ( !*a4 )
{
v5 = v13;
v6 = v12;
std::make_unique<std::string,char const*&>(v7, &v11);
nglog::internal::CheckOpString::CheckOpString((long long)v8, (long long)v7);
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v9,
v5,
v6,
(const nglog::internal::CheckOpString *)v8);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v9);
}
return v10;
}
| CheckNotNull<long*&>:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX],0x0
JNZ 0x0012a792
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0xb8],RAX
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0xac],EAX
LEA RDI,[RBP + -0x90]
MOV qword ptr [RBP + -0xa8],RDI
LEA RSI,[RBP + -0x18]
CALL 0x0012a830
MOV RSI,qword ptr [RBP + -0xa8]
LAB_0012a71a:
LEA RDI,[RBP + -0x88]
CALL 0x00122850
JMP 0x0012a728
LAB_0012a728:
MOV EDX,dword ptr [RBP + -0xac]
MOV RSI,qword ptr [RBP + -0xb8]
LEA RDI,[RBP + -0x80]
LEA RCX,[RBP + -0x88]
CALL 0x00135bd0
JMP 0x0012a747
LAB_0012a747:
LEA RDI,[RBP + -0x80]
CALL 0x00135c10
LAB_0012a750:
JMP 0x0012a752
LAB_0012a752:
MOV RCX,RAX
MOV EAX,EDX
MOV qword ptr [RBP + -0x98],RCX
MOV dword ptr [RBP + -0x9c],EAX
JMP 0x0012a784
LAB_0012a784:
LEA RDI,[RBP + -0x90]
CALL 0x00122890
JMP 0x0012a79f
LAB_0012a792:
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0xc0
POP RBP
RET
LAB_0012a79f:
MOV RDI,qword ptr [RBP + -0x98]
CALL 0x0010af50
|
/* long*& nglog::internal::CheckNotNull<long*&>(char const*, int, char const*, long*&) */
long ** nglog::internal::CheckNotNull<long*&>
(char *param_1,int param_2,char *param_3,long **param_4)
{
int8 uVar1;
unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> local_98 [8];
CheckOpString local_90 [8];
LogMessageFatal local_88 [96];
long **local_28;
char *local_20;
int local_14;
char *local_10;
if (*param_4 == (long *)0x0) {
local_28 = param_4;
local_20 = param_3;
local_14 = param_2;
local_10 = param_1;
std::make_unique<std::__cxx11::string,char_const*&>((char **)local_98);
/* try { // try from 0012a71a to 0012a725 has its CatchHandler @ 0012a752 */
CheckOpString::CheckOpString(local_90,local_98);
/* try { // try from 0012a728 to 0012a74f has its CatchHandler @ 0012a766 */
LogMessageFatal::LogMessageFatal(local_88,param_1,param_2,local_90);
uVar1 = LogMessageFatal::~LogMessageFatal(local_88);
/* catch() { ... } // from try @ 0012a71a with catch @ 0012a752 */
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
(local_98);
/* WARNING: Subroutine does not return */
_Unwind_Resume(uVar1);
}
return param_4;
}
| |
55,009 | char* nglog::internal::CheckNotNull<char*>(char const*, int, char const*, char*&&) | ng-log[P]ng-log/src/ng-log/logging.h | T CheckNotNull(const char* file, int line, const char* names, T&& t) {
if (t == nullptr) {
LogMessageFatal(file, line, std::make_unique<std::string>(names));
}
return std::forward<T>(t);
} | O1 | c | char* nglog::internal::CheckNotNull<char*>(char const*, int, char const*, char*&&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rdx, 0x18(%rsp)
movq (%rcx), %rax
testq %rax, %rax
je 0x16dda
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl %esi, %ebx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x184b8
movq (%r15), %rax
leaq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movq $0x0, (%r15)
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x1e65a
leaq 0x20(%rsp), %rdi
callq 0x1e660
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x16b14
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x16e3d
leaq 0x8(%rsp), %rdi
callq 0x19bb8
movq $0x0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x8bb0
| _ZN5nglog8internal12CheckNotNullIPlEET_PKciS5_OS3_:
push r15
push r14
push rbx
sub rsp, 80h
mov [rsp+98h+var_80], rdx
mov rax, [rcx]
test rax, rax
jz short loc_16DDA
add rsp, 80h
pop rbx
pop r14
pop r15
retn
loc_16DDA:
mov ebx, esi
mov r14, rdi
lea r15, [rsp+98h+var_90]
lea rsi, [rsp+98h+var_80]
mov rdi, r15
call _ZSt11make_uniqueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRPKcEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::string,char const*&>(char const*&)
mov rax, [r15]
lea rcx, [rsp+98h+var_88]; nglog::internal::CheckOpString *
mov [rcx], rax
mov qword ptr [r15], 0
lea rdi, [rsp+98h+var_78]; this
mov rsi, r14; char *
mov edx, ebx; int
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rdi, [rsp+98h+var_78]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rbx, rax
lea rdi, [rsp+98h+var_88]; this
call _ZN5nglog8internal13CheckOpStringD2Ev; nglog::internal::CheckOpString::~CheckOpString()
mov rsi, [rsp+98h+var_90]
test rsi, rsi
jz short loc_16E3D
lea rdi, [rsp+98h+var_90]
call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*)
loc_16E3D:
mov [rsp+98h+var_90], 0
mov rdi, rbx
call __Unwind_Resume
| long long nglog::internal::CheckNotNull<long *>(char *a1, int a2, long long a3, long long *a4)
{
long long result; // rax
long long v5; // [rsp+8h] [rbp-90h] BYREF
long long v6; // [rsp+10h] [rbp-88h] BYREF
long long v7; // [rsp+18h] [rbp-80h] BYREF
_BYTE v8[120]; // [rsp+20h] [rbp-78h] BYREF
v7 = a3;
result = *a4;
if ( !*a4 )
{
std::make_unique<std::string,char const*&>(&v5, &v7);
v6 = v5;
v5 = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v8,
a1,
a2,
(const nglog::internal::CheckOpString *)&v6);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v8);
}
return result;
}
| CheckNotNull<long*>:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x80
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RCX]
TEST RAX,RAX
JZ 0x00116dda
ADD RSP,0x80
POP RBX
POP R14
POP R15
RET
LAB_00116dda:
MOV EBX,ESI
MOV R14,RDI
LEA R15,[RSP + 0x8]
LEA RSI,[RSP + 0x18]
MOV RDI,R15
CALL 0x001184b8
MOV RAX,qword ptr [R15]
LEA RCX,[RSP + 0x10]
MOV qword ptr [RCX],RAX
MOV qword ptr [R15],0x0
LAB_00116e03:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,EBX
CALL 0x0011e65a
LEA RDI,[RSP + 0x20]
CALL 0x0011e660
LAB_00116e1c:
MOV RBX,RAX
LEA RDI,[RSP + 0x10]
CALL 0x00116b14
MOV RSI,qword ptr [RSP + 0x8]
TEST RSI,RSI
JZ 0x00116e3d
LEA RDI,[RSP + 0x8]
CALL 0x00119bb8
LAB_00116e3d:
MOV qword ptr [RSP + 0x8],0x0
MOV RDI,RBX
CALL 0x00108bb0
|
/* long* nglog::internal::CheckNotNull<long*>(char const*, int, char const*, long*&&) */
long * nglog::internal::CheckNotNull<long*>(char *param_1,int param_2,char *param_3,long **param_4)
{
int8 uVar1;
string *local_90;
string *local_88;
char *local_80;
LogMessageFatal local_78 [96];
if (*param_4 != (long *)0x0) {
return *param_4;
}
local_80 = param_3;
std::make_unique<std::__cxx11::string,char_const*&>((char **)&local_90);
local_88 = local_90;
local_90 = (string *)0x0;
/* try { // try from 00116e03 to 00116e1b has its CatchHandler @ 00116e1c */
LogMessageFatal::LogMessageFatal(local_78,param_1,param_2,(CheckOpString *)&local_88);
uVar1 = LogMessageFatal::~LogMessageFatal(local_78);
/* catch() { ... } // from try @ 00116e03 with catch @ 00116e1c */
CheckOpString::~CheckOpString((CheckOpString *)&local_88);
if (local_90 != (string *)0x0) {
std::default_delete<std::__cxx11::string>::operator()
((default_delete<std::__cxx11::string> *)&local_90,local_90);
}
local_90 = (string *)0x0;
/* WARNING: Subroutine does not return */
_Unwind_Resume(uVar1);
}
| |
55,010 | char* nglog::internal::CheckNotNull<char*>(char const*, int, char const*, char*&&) | ng-log[P]ng-log/src/ng-log/logging.h | T CheckNotNull(const char* file, int line, const char* names, T&& t) {
if (t == nullptr) {
LogMessageFatal(file, line, std::make_unique<std::string>(names));
}
return std::forward<T>(t);
} | O2 | c | char* nglog::internal::CheckNotNull<char*>(char const*, int, char const*, char*&&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rdx, 0x18(%rsp)
movq (%rcx), %rax
testq %rax, %rax
je 0x146fa
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl %esi, %ebx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x16023
movq (%r15), %rax
leaq 0x10(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, (%r15)
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x1a61e
leaq 0x20(%rsp), %rdi
callq 0x1a624
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x14340
leaq 0x8(%rsp), %rdi
callq 0x14340
movq %rbx, %rdi
callq 0x8c30
| _ZN5nglog8internal12CheckNotNullIPvEET_PKciS5_OS3_:
push r15
push r14
push rbx
sub rsp, 80h
mov [rsp+98h+var_80], rdx
mov rax, [rcx]
test rax, rax
jz short loc_146FA
add rsp, 80h
pop rbx
pop r14
pop r15
retn
loc_146FA:
mov ebx, esi
mov r14, rdi
lea r15, [rsp+98h+var_90]
lea rsi, [rsp+98h+var_80]
mov rdi, r15
call _ZSt11make_uniqueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRPKcEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::string,char const*&>(char const*&)
mov rax, [r15]
lea rcx, [rsp+98h+var_88]
mov [rcx], rax
and qword ptr [r15], 0
lea rdi, [rsp+98h+var_78]
mov rsi, r14
mov edx, ebx
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rdi, [rsp+98h+var_78]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rbx, rax
lea rdi, [rsp+98h+var_88]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+98h+var_90]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
mov rdi, rbx
call __Unwind_Resume
| long long nglog::internal::CheckNotNull<void *>(long long a1, unsigned int a2, long long a3, long long *a4)
{
long long result; // rax
_QWORD v5[2]; // [rsp+8h] [rbp-90h] BYREF
long long v6; // [rsp+18h] [rbp-80h] BYREF
_BYTE v7[120]; // [rsp+20h] [rbp-78h] BYREF
v6 = a3;
result = *a4;
if ( !*a4 )
{
std::make_unique<std::string,char const*&>(v5, &v6);
v5[1] = v5[0];
v5[0] = 0LL;
nglog::LogMessageFatal::LogMessageFatal(v7, a1, a2);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v7);
}
return result;
}
| CheckNotNull<void*>:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x80
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RCX]
TEST RAX,RAX
JZ 0x001146fa
ADD RSP,0x80
POP RBX
POP R14
POP R15
RET
LAB_001146fa:
MOV EBX,ESI
MOV R14,RDI
LEA R15,[RSP + 0x8]
LEA RSI,[RSP + 0x18]
MOV RDI,R15
CALL 0x00116023
MOV RAX,qword ptr [R15]
LEA RCX,[RSP + 0x10]
MOV qword ptr [RCX],RAX
AND qword ptr [R15],0x0
LAB_00114720:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,EBX
CALL 0x0011a61e
LEA RDI,[RSP + 0x20]
CALL 0x0011a624
LAB_00114739:
MOV RBX,RAX
LEA RDI,[RSP + 0x10]
CALL 0x00114340
LEA RDI,[RSP + 0x8]
CALL 0x00114340
MOV RDI,RBX
CALL 0x00108c30
|
/* void* nglog::internal::CheckNotNull<void*>(char const*, int, char const*, void*&&) */
void * nglog::internal::CheckNotNull<void*>(char *param_1,int param_2,char *param_3,void **param_4)
{
int8 uVar1;
char *local_90;
char *local_88;
char *local_80;
LogMessageFatal local_78 [96];
if (*param_4 != (void *)0x0) {
return *param_4;
}
local_80 = param_3;
std::make_unique<std::__cxx11::string,char_const*&>(&local_90);
local_88 = local_90;
local_90 = (char *)0x0;
/* try { // try from 00114720 to 00114738 has its CatchHandler @ 00114739 */
LogMessageFatal::LogMessageFatal(local_78,param_1,param_2,(CheckOpString *)&local_88);
uVar1 = LogMessageFatal::~LogMessageFatal(local_78);
/* catch() { ... } // from try @ 00114720 with catch @ 00114739 */
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)&local_88
);
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)&local_90
);
/* WARNING: Subroutine does not return */
_Unwind_Resume(uVar1);
}
| |
55,011 | char* nglog::internal::CheckNotNull<char*>(char const*, int, char const*, char*&&) | ng-log[P]ng-log/src/ng-log/logging.h | T CheckNotNull(const char* file, int line, const char* names, T&& t) {
if (t == nullptr) {
LogMessageFatal(file, line, std::make_unique<std::string>(names));
}
return std::forward<T>(t);
} | O3 | c | char* nglog::internal::CheckNotNull<char*>(char const*, int, char const*, char*&&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rdx, 0x18(%rsp)
movq (%rcx), %rax
testq %rax, %rax
je 0x15d7f
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl %esi, %ebx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x175ef
movq (%r15), %rax
leaq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movq $0x0, (%r15)
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x1d730
leaq 0x20(%rsp), %rdi
callq 0x1d736
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x15c90
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x15de2
leaq 0x8(%rsp), %rdi
callq 0x18cba
movq %rbx, %rdi
callq 0x8bb0
| _ZN5nglog8internal12CheckNotNullIPcEET_PKciS5_OS3_:
push r15
push r14
push rbx
sub rsp, 80h
mov [rsp+98h+var_80], rdx
mov rax, [rcx]
test rax, rax
jz short loc_15D7F
add rsp, 80h
pop rbx
pop r14
pop r15
retn
loc_15D7F:
mov ebx, esi
mov r14, rdi
lea r15, [rsp+98h+var_90]
lea rsi, [rsp+98h+var_80]
mov rdi, r15
call _ZSt11make_uniqueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRPKcEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::string,char const*&>(char const*&)
mov rax, [r15]
lea rcx, [rsp+98h+var_88]; nglog::internal::CheckOpString *
mov [rcx], rax
mov qword ptr [r15], 0
lea rdi, [rsp+98h+var_78]; this
mov rsi, r14; char *
mov edx, ebx; int
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rdi, [rsp+98h+var_78]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rbx, rax
lea rdi, [rsp+98h+var_88]; this
call _ZN5nglog8internal13CheckOpStringD2Ev; nglog::internal::CheckOpString::~CheckOpString()
mov rsi, [rsp+98h+var_90]
test rsi, rsi
jz short loc_15DE2
lea rdi, [rsp+98h+var_90]
call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*)
loc_15DE2:
mov rdi, rbx
call __Unwind_Resume
| long long nglog::internal::CheckNotNull<char *>(char *a1, int a2, long long a3, long long *a4)
{
long long result; // rax
long long v5; // [rsp+8h] [rbp-90h] BYREF
long long v6; // [rsp+10h] [rbp-88h] BYREF
long long v7; // [rsp+18h] [rbp-80h] BYREF
_BYTE v8[120]; // [rsp+20h] [rbp-78h] BYREF
v7 = a3;
result = *a4;
if ( !*a4 )
{
std::make_unique<std::string,char const*&>(&v5, &v7);
v6 = v5;
v5 = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v8,
a1,
a2,
(const nglog::internal::CheckOpString *)&v6);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v8);
}
return result;
}
| CheckNotNull<char*>:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x80
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RCX]
TEST RAX,RAX
JZ 0x00115d7f
ADD RSP,0x80
POP RBX
POP R14
POP R15
RET
LAB_00115d7f:
MOV EBX,ESI
MOV R14,RDI
LEA R15,[RSP + 0x8]
LEA RSI,[RSP + 0x18]
MOV RDI,R15
CALL 0x001175ef
MOV RAX,qword ptr [R15]
LEA RCX,[RSP + 0x10]
MOV qword ptr [RCX],RAX
MOV qword ptr [R15],0x0
LAB_00115da8:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,EBX
CALL 0x0011d730
LEA RDI,[RSP + 0x20]
CALL 0x0011d736
LAB_00115dc1:
MOV RBX,RAX
LEA RDI,[RSP + 0x10]
CALL 0x00115c90
MOV RSI,qword ptr [RSP + 0x8]
TEST RSI,RSI
JZ 0x00115de2
LEA RDI,[RSP + 0x8]
CALL 0x00118cba
LAB_00115de2:
MOV RDI,RBX
CALL 0x00108bb0
|
/* char* nglog::internal::CheckNotNull<char*>(char const*, int, char const*, char*&&) */
char * nglog::internal::CheckNotNull<char*>(char *param_1,int param_2,char *param_3,char **param_4)
{
int8 uVar1;
string *local_90;
string *local_88;
char *local_80;
LogMessageFatal local_78 [96];
if (*param_4 != (char *)0x0) {
return *param_4;
}
local_80 = param_3;
std::make_unique<std::__cxx11::string,char_const*&>((char **)&local_90);
local_88 = local_90;
local_90 = (string *)0x0;
/* try { // try from 00115da8 to 00115dc0 has its CatchHandler @ 00115dc1 */
LogMessageFatal::LogMessageFatal(local_78,param_1,param_2,(CheckOpString *)&local_88);
uVar1 = LogMessageFatal::~LogMessageFatal(local_78);
/* catch() { ... } // from try @ 00115da8 with catch @ 00115dc1 */
CheckOpString::~CheckOpString((CheckOpString *)&local_88);
if (local_90 != (string *)0x0) {
std::default_delete<std::__cxx11::string>::operator()
((default_delete<std::__cxx11::string> *)&local_90,local_90);
}
/* WARNING: Subroutine does not return */
_Unwind_Resume(uVar1);
}
| |
55,012 | ma_read_cache | eloqsql/storage/maria/ma_cache.c | my_bool _ma_read_cache(MARIA_HA *handler, IO_CACHE *info, uchar *buff,
my_off_t pos, size_t length, uint flag)
{
size_t read_length,in_buff_length;
my_off_t offset;
uchar *in_buff_pos;
DBUG_ENTER("_ma_read_cache");
DBUG_ASSERT(!(info->myflags & MY_ENCRYPT));
if (unlikely(pos >= info->end_of_file) && (flag & READING_HEADER))
DBUG_RETURN(-1);
if (pos < info->pos_in_file)
{
read_length=length;
if ((my_off_t) read_length > (my_off_t) (info->pos_in_file-pos))
read_length=(uint) (info->pos_in_file-pos);
info->seek_not_done=1;
if (mysql_file_pread(info->file,buff,read_length,pos,MYF(MY_NABP)))
DBUG_RETURN(1);
if (!(length-=read_length))
DBUG_RETURN(0);
pos+=read_length;
buff+=read_length;
}
if (pos >= info->pos_in_file &&
(offset= (my_off_t) (pos - info->pos_in_file)) <
(my_off_t) (info->read_end - info->request_pos))
{
in_buff_pos=info->request_pos+(uint) offset;
in_buff_length= MY_MIN(length,(size_t) (info->read_end-in_buff_pos));
memcpy(buff,info->request_pos+(uint) offset,(size_t) in_buff_length);
if (!(length-=in_buff_length))
DBUG_RETURN(0);
pos+=in_buff_length;
buff+=in_buff_length;
}
else
in_buff_length=0;
if (flag & READING_NEXT)
{
if (pos != (info->pos_in_file +
(uint) (info->read_end - info->request_pos)))
{
info->pos_in_file=pos; /* Force start here */
info->read_pos=info->read_end=info->request_pos; /* Everything used */
info->seek_not_done=1;
}
else
info->read_pos=info->read_end; /* All block used */
if (!_my_b_read(info,buff,length))
DBUG_RETURN(0);
read_length=info->error;
}
else
{
info->seek_not_done=1;
if ((read_length=mysql_file_pread(info->file,buff,length,pos,MYF(0))) == length)
DBUG_RETURN(0);
}
if (!(flag & READING_HEADER) || (int) read_length == -1 ||
read_length+in_buff_length < 3)
{
if ((flag & READING_HEADER) && read_length + in_buff_length == 0)
DBUG_RETURN(-1); /* End of file */
DBUG_PRINT("error",
("Error %d reading next-multi-part block (Got %d of %d bytes)",
my_errno, (int) read_length, (int) length));
if (!my_errno || my_errno == HA_ERR_FILE_TOO_SHORT)
{
if (!handler->in_check_table)
_ma_set_fatal_error(handler, HA_ERR_FILE_TOO_SHORT);
if (!my_errno)
my_errno= HA_ERR_WRONG_IN_RECORD;
}
DBUG_RETURN(1);
}
bzero(buff+read_length,MARIA_BLOCK_INFO_HEADER_LENGTH - in_buff_length -
read_length);
DBUG_RETURN(0);
} | O3 | c | ma_read_cache:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r9d, -0x2c(%rbp)
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, -0x50(%rbp)
cmpq %rcx, 0x8(%rsi)
jbe 0x72cb5
movq (%rbx), %rax
movq %rax, %rcx
subq %r13, %rcx
jbe 0x72b22
cmpq %r8, %rcx
movl %ecx, %r15d
movq %r8, -0x48(%rbp)
cmovaeq %r8, %r15
movl $0x1, 0xe0(%rbx)
movl 0xd4(%rbx), %r14d
leaq 0x31c79b(%rip), %rax # 0x38f258
movq (%rax), %rax
leaq -0x98(%rbp), %rdi
movl %r14d, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
movq %r12, -0x38(%rbp)
jne 0x72cc4
movl $0x4, %r8d
movl %r14d, %edi
movq %r12, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0xa6c7c
movq %rax, %r12
movb $0x1, %r14b
testq %r12, %r12
movq -0x38(%rbp), %r12
movq -0x48(%rbp), %r8
jne 0x72c47
subq %r15, %r8
je 0x72c44
addq %r15, %r13
addq %r15, %r12
movq (%rbx), %rax
movq %r13, %rcx
subq %rax, %rcx
jb 0x72b6e
movq 0x18(%rbx), %r15
movq 0x28(%rbx), %rsi
movq %r15, %rax
subq %rsi, %rax
cmpq %rax, %rcx
jae 0x72b6e
movl %ecx, %eax
addq %rax, %rsi
subq %rsi, %r15
cmpq %r15, %r8
cmovbq %r8, %r15
movq %r12, %rdi
movq %r15, %rdx
movq %r8, %r14
callq 0x2a0a0
movq %r14, %r8
subq %r15, %r8
je 0x72c44
addq %r15, %r13
addq %r15, %r12
jmp 0x72b71
xorl %r15d, %r15d
testb $0x1, -0x2c(%rbp)
jne 0x72bce
movq %r8, %r14
movl $0x1, 0xe0(%rbx)
movl 0xd4(%rbx), %ebx
leaq 0x31c6c7(%rip), %rax # 0x38f258
movq (%rax), %rax
leaq -0x98(%rbp), %rdi
movl %ebx, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x72d29
movl %ebx, %edi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
callq 0xa6c7c
movq %rax, %rbx
cmpq %r14, %rbx
jne 0x72c13
jmp 0x72c44
movq 0x18(%rbx), %rcx
movq 0x28(%rbx), %rax
movl %ecx, %edx
subl %eax, %edx
addq (%rbx), %rdx
cmpq %rdx, %r13
je 0x72bf6
movq %r13, (%rbx)
movq %rax, 0x18(%rbx)
movl $0x1, 0xe0(%rbx)
movq %rax, %rcx
movq %rcx, 0x10(%rbx)
movq %rbx, %rdi
movq %r12, %rsi
movq %r8, %rdx
callq 0x9920a
testl %eax, %eax
je 0x72c44
movslq 0xe4(%rbx), %rbx
testb $0x2, -0x2c(%rbp)
je 0x72c59
movl %ebx, %eax
cmpl $-0x1, %eax
je 0x72c59
leaq (%rbx,%r15), %rax
cmpq $0x2, %rax
jbe 0x72c59
addq %rbx, %r12
movl $0x14, %edx
subq %rax, %rdx
xorl %r14d, %r14d
movq %r12, %rdi
xorl %esi, %esi
callq 0x2a2c0
jmp 0x72c47
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb $0x2, -0x2c(%rbp)
je 0x72c6a
negq %r15
movb $-0x1, %r14b
cmpq %r15, %rbx
je 0x72c47
callq 0xa813e
cmpl $0x0, (%rax)
je 0x72c84
callq 0xa813e
movb $0x1, %r14b
cmpl $0xaf, (%rax)
jne 0x72c47
movq -0x50(%rbp), %rdi
cmpb $0x0, 0x683(%rdi)
jne 0x72c9b
movl $0xaf, %esi
callq 0x42b9c
callq 0xa813e
movb $0x1, %r14b
cmpl $0x0, (%rax)
jne 0x72c47
callq 0xa813e
movl $0x7f, (%rax)
jmp 0x72c47
movb $-0x1, %r14b
testb $0x2, -0x2c(%rbp)
je 0x72a88
jmp 0x72c47
movq %rax, %rcx
leaq 0x31c58a(%rip), %rax # 0x38f258
movq (%rax), %rax
leaq 0x6f5c1(%rip), %rdx # 0xe2299
movq %rcx, -0x40(%rbp)
movq %rcx, %rdi
movq %r15, %rsi
movl $0x38, %ecx
callq *0x210(%rax)
movl $0x4, %r8d
movl %r14d, %edi
movq %r12, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0xa6c7c
movq %rax, %r12
xorl %esi, %esi
testq %rax, %rax
cmoveq %r15, %rsi
leaq 0x31c541(%rip), %rax # 0x38f258
movq (%rax), %rax
movq -0x40(%rbp), %rdi
callq *0x218(%rax)
jmp 0x72afc
movq %rax, %rcx
leaq 0x31c525(%rip), %rax # 0x38f258
movq (%rax), %rax
leaq 0x6f55c(%rip), %rdx # 0xe2299
movq %rcx, -0x38(%rbp)
movq %rcx, %rdi
movq %r14, %rsi
movl $0x5f, %ecx
callq *0x210(%rax)
movl %ebx, %edi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
callq 0xa6c7c
movq %rax, %rbx
cmpq $-0x1, %rax
movl $0x0, %esi
cmovneq %rax, %rsi
leaq 0x31c4dc(%rip), %rax # 0x38f258
movq (%rax), %rax
movq -0x38(%rbp), %rdi
callq *0x218(%rax)
jmp 0x72bc7
nop
| _ma_read_cache:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov [rbp+var_2C], r9d
mov r13, rcx
mov r12, rdx
mov rbx, rsi
mov [rbp+var_50], rdi
cmp [rsi+8], rcx
jbe loc_72CB5
loc_72A88:
mov rax, [rbx]
mov rcx, rax
sub rcx, r13
jbe loc_72B22
cmp rcx, r8
mov r15d, ecx
mov [rbp+var_48], r8
cmovnb r15, r8
mov dword ptr [rbx+0E0h], 1
mov r14d, [rbx+0D4h]
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_98]
mov esi, r14d
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
mov [rbp+var_38], r12
jnz loc_72CC4
mov r8d, 4
mov edi, r14d
mov rsi, r12
mov rdx, r15
mov rcx, r13
call my_pread
mov r12, rax
loc_72AFC:
mov r14b, 1
test r12, r12
mov r12, [rbp+var_38]
mov r8, [rbp+var_48]
jnz loc_72C47
sub r8, r15
jz loc_72C44
add r13, r15
add r12, r15
mov rax, [rbx]
loc_72B22:
mov rcx, r13
sub rcx, rax
jb short loc_72B6E
mov r15, [rbx+18h]
mov rsi, [rbx+28h]
mov rax, r15
sub rax, rsi
cmp rcx, rax
jnb short loc_72B6E
mov eax, ecx
add rsi, rax
sub r15, rsi
cmp r8, r15
cmovb r15, r8
mov rdi, r12
mov rdx, r15
mov r14, r8
call _memcpy
mov r8, r14
sub r8, r15
jz loc_72C44
add r13, r15
add r12, r15
jmp short loc_72B71
loc_72B6E:
xor r15d, r15d
loc_72B71:
test byte ptr [rbp+var_2C], 1
jnz short loc_72BCE
mov r14, r8
mov dword ptr [rbx+0E0h], 1
mov ebx, [rbx+0D4h]
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_98]
mov esi, ebx
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz loc_72D29
mov edi, ebx
mov rsi, r12
mov rdx, r14
mov rcx, r13
xor r8d, r8d
call my_pread
mov rbx, rax
loc_72BC7:
cmp rbx, r14
jnz short loc_72C13
jmp short loc_72C44
loc_72BCE:
mov rcx, [rbx+18h]
mov rax, [rbx+28h]
mov edx, ecx
sub edx, eax
add rdx, [rbx]
cmp r13, rdx
jz short loc_72BF6
mov [rbx], r13
mov [rbx+18h], rax
mov dword ptr [rbx+0E0h], 1
mov rcx, rax
loc_72BF6:
mov [rbx+10h], rcx
mov rdi, rbx
mov rsi, r12
mov rdx, r8
call _my_b_read
test eax, eax
jz short loc_72C44
movsxd rbx, dword ptr [rbx+0E4h]
loc_72C13:
test byte ptr [rbp+var_2C], 2
jz short loc_72C59
mov eax, ebx
cmp eax, 0FFFFFFFFh
jz short loc_72C59
lea rax, [rbx+r15]
cmp rax, 2
jbe short loc_72C59
add r12, rbx
mov edx, 14h
sub rdx, rax
xor r14d, r14d
mov rdi, r12
xor esi, esi
call _memset
jmp short loc_72C47
loc_72C44:
xor r14d, r14d
loc_72C47:
mov eax, r14d
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_72C59:
test byte ptr [rbp+var_2C], 2
jz short loc_72C6A
neg r15
mov r14b, 0FFh
cmp rbx, r15
jz short loc_72C47
loc_72C6A:
call _my_thread_var
cmp dword ptr [rax], 0
jz short loc_72C84
call _my_thread_var
mov r14b, 1
cmp dword ptr [rax], 0AFh
jnz short loc_72C47
loc_72C84:
mov rdi, [rbp+var_50]
cmp byte ptr [rdi+683h], 0
jnz short loc_72C9B
mov esi, 0AFh
call _ma_set_fatal_error
loc_72C9B:
call _my_thread_var
mov r14b, 1
cmp dword ptr [rax], 0
jnz short loc_72C47
call _my_thread_var
mov dword ptr [rax], 7Fh
jmp short loc_72C47
loc_72CB5:
mov r14b, 0FFh
test byte ptr [rbp+var_2C], 2
jz loc_72A88
jmp short loc_72C47
loc_72CC4:
mov rcx, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_34; "/workspace/llm4binary/github2025/eloqsq"...
mov [rbp+var_40], rcx
mov rdi, rcx
mov rsi, r15
mov ecx, 38h ; '8'
call qword ptr [rax+210h]
mov r8d, 4
mov edi, r14d
mov rsi, r12
mov rdx, r15
mov rcx, r13
call my_pread
mov r12, rax
xor esi, esi
test rax, rax
cmovz rsi, r15
lea rax, PSI_server
mov rax, [rax]
mov rdi, [rbp+var_40]
call qword ptr [rax+218h]
jmp loc_72AFC
loc_72D29:
mov rcx, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_34; "/workspace/llm4binary/github2025/eloqsq"...
mov [rbp+var_38], rcx
mov rdi, rcx
mov rsi, r14
mov ecx, 5Fh ; '_'
call qword ptr [rax+210h]
mov edi, ebx
mov rsi, r12
mov rdx, r14
mov rcx, r13
xor r8d, r8d
call my_pread
mov rbx, rax
cmp rax, 0FFFFFFFFFFFFFFFFh
mov esi, 0
cmovnz rsi, rax
lea rax, PSI_server
mov rax, [rax]
mov rdi, [rbp+var_38]
call qword ptr [rax+218h]
jmp loc_72BC7
| long long ma_read_cache(_DWORD *a1, long long *a2, long long a3, unsigned long long a4, unsigned long long a5, int a6)
{
unsigned long long v6; // r14
unsigned long long v7; // r13
unsigned long long v10; // rax
unsigned long long v11; // rcx
unsigned long long v12; // r15
long long v13; // rax
long long v14; // r12
unsigned long long v15; // rcx
long long v16; // rsi
long long v17; // rsi
unsigned long long v18; // r15
unsigned int v19; // ebx
long long v20; // rax
long long v21; // rdi
long long v22; // rbx
long long v23; // rcx
long long v24; // rax
long long v26; // rdx
long long v27; // rcx
long long v28; // r8
int v29; // r9d
_DWORD *v30; // rdi
unsigned long long v31; // rsi
long long v32; // rax
long long v33; // rsi
_BYTE v34[72]; // [rsp+8h] [rbp-98h] BYREF
_DWORD *v35; // [rsp+50h] [rbp-50h]
unsigned long long v36; // [rsp+58h] [rbp-48h]
long long v37; // [rsp+60h] [rbp-40h]
long long v38; // [rsp+68h] [rbp-38h]
int v39; // [rsp+74h] [rbp-2Ch]
v39 = a6;
v7 = a4;
v35 = a1;
if ( a2[1] <= a4 )
{
LOBYTE(v6) = -1;
if ( (v39 & 2) != 0 )
return (unsigned int)v6;
}
v10 = *a2;
v11 = *a2 - a4;
if ( *a2 > v7 )
{
v12 = (unsigned int)v11;
v36 = a5;
if ( v11 >= a5 )
v12 = a5;
*((_DWORD *)a2 + 56) = 1;
LODWORD(v6) = *((_DWORD *)a2 + 53);
v13 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v34, (unsigned int)v6, 6LL);
v38 = a3;
if ( v13 )
{
v37 = v13;
((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])(
v13,
v12,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_cache.c",
56LL);
v14 = my_pread((unsigned int)v6, a3, v12, v7, 4LL);
v31 = 0LL;
if ( !v14 )
v31 = v12;
((void ( *)(long long, unsigned long long))PSI_server[67])(v37, v31);
}
else
{
v14 = my_pread((unsigned int)v6, a3, v12, v7, 4LL);
}
LOBYTE(v6) = 1;
if ( v14 )
return (unsigned int)v6;
a5 = v36 - v12;
if ( v36 == v12 )
{
LABEL_30:
LODWORD(v6) = 0;
return (unsigned int)v6;
}
v7 += v12;
a3 = v12 + v38;
v10 = *a2;
}
v15 = v7 - v10;
if ( v7 < v10 || (v16 = a2[5], v15 >= a2[3] - v16) )
{
v18 = 0LL;
}
else
{
v17 = (unsigned int)v15 + v16;
v18 = a2[3] - v17;
if ( a5 < v18 )
v18 = a5;
v6 = a5;
memcpy(a3, v17, v18);
a5 = v6 - v18;
if ( v6 == v18 )
goto LABEL_30;
v7 += v18;
a3 += v18;
}
if ( (v39 & 1) != 0 )
{
v23 = a2[3];
v24 = a2[5];
if ( v7 != *a2 + (unsigned int)(v23 - v24) )
{
*a2 = v7;
a2[3] = v24;
*((_DWORD *)a2 + 56) = 1;
v23 = v24;
}
a2[2] = v23;
v21 = (long long)a2;
if ( !(unsigned int)my_b_read(a2, a3, a5) )
goto LABEL_30;
v22 = *((int *)a2 + 57);
}
else
{
v6 = a5;
*((_DWORD *)a2 + 56) = 1;
v19 = *((_DWORD *)a2 + 53);
v20 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v34, v19, 6LL);
if ( v20 )
{
v38 = v20;
((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])(
v20,
v6,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_cache.c",
95LL);
v32 = my_pread(v19, a3, v6, v7, 0LL);
v22 = v32;
v33 = 0LL;
if ( v32 != -1 )
v33 = v32;
v21 = v38;
((void ( *)(long long, long long))PSI_server[67])(v38, v33);
}
else
{
v21 = v19;
v22 = my_pread(v19, a3, v6, v7, 0LL);
}
if ( v22 == v6 )
goto LABEL_30;
}
if ( (v39 & 2) == 0 || (_DWORD)v22 == -1 || v22 + v18 <= 2 )
{
if ( (v39 & 2) == 0 || (LOBYTE(v6) = -1, v22 != -(long long)v18) )
{
if ( !*(_DWORD *)my_thread_var(v21) || (LOBYTE(v6) = 1, *(_DWORD *)my_thread_var(v21) == 175) )
{
v30 = v35;
if ( !*((_BYTE *)v35 + 1667) )
ma_set_fatal_error(v35, 175, v26, v27, v28, v29);
LOBYTE(v6) = 1;
if ( !*(_DWORD *)my_thread_var(v30) )
*(_DWORD *)my_thread_var(v30) = 127;
}
}
}
else
{
LODWORD(v6) = 0;
memset(v22 + a3, 0LL, 20 - (v22 + v18));
}
return (unsigned int)v6;
}
| _ma_read_cache:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV dword ptr [RBP + -0x2c],R9D
MOV R13,RCX
MOV R12,RDX
MOV RBX,RSI
MOV qword ptr [RBP + -0x50],RDI
CMP qword ptr [RSI + 0x8],RCX
JBE 0x00172cb5
LAB_00172a88:
MOV RAX,qword ptr [RBX]
MOV RCX,RAX
SUB RCX,R13
JBE 0x00172b22
CMP RCX,R8
MOV R15D,ECX
MOV qword ptr [RBP + -0x48],R8
CMOVNC R15,R8
MOV dword ptr [RBX + 0xe0],0x1
MOV R14D,dword ptr [RBX + 0xd4]
LEA RAX,[0x48f258]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x98]
MOV ESI,R14D
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
MOV qword ptr [RBP + -0x38],R12
JNZ 0x00172cc4
MOV R8D,0x4
MOV EDI,R14D
MOV RSI,R12
MOV RDX,R15
MOV RCX,R13
CALL 0x001a6c7c
MOV R12,RAX
LAB_00172afc:
MOV R14B,0x1
TEST R12,R12
MOV R12,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x48]
JNZ 0x00172c47
SUB R8,R15
JZ 0x00172c44
ADD R13,R15
ADD R12,R15
MOV RAX,qword ptr [RBX]
LAB_00172b22:
MOV RCX,R13
SUB RCX,RAX
JC 0x00172b6e
MOV R15,qword ptr [RBX + 0x18]
MOV RSI,qword ptr [RBX + 0x28]
MOV RAX,R15
SUB RAX,RSI
CMP RCX,RAX
JNC 0x00172b6e
MOV EAX,ECX
ADD RSI,RAX
SUB R15,RSI
CMP R8,R15
CMOVC R15,R8
MOV RDI,R12
MOV RDX,R15
MOV R14,R8
CALL 0x0012a0a0
MOV R8,R14
SUB R8,R15
JZ 0x00172c44
ADD R13,R15
ADD R12,R15
JMP 0x00172b71
LAB_00172b6e:
XOR R15D,R15D
LAB_00172b71:
TEST byte ptr [RBP + -0x2c],0x1
JNZ 0x00172bce
MOV R14,R8
MOV dword ptr [RBX + 0xe0],0x1
MOV EBX,dword ptr [RBX + 0xd4]
LEA RAX,[0x48f258]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x98]
MOV ESI,EBX
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00172d29
MOV EDI,EBX
MOV RSI,R12
MOV RDX,R14
MOV RCX,R13
XOR R8D,R8D
CALL 0x001a6c7c
MOV RBX,RAX
LAB_00172bc7:
CMP RBX,R14
JNZ 0x00172c13
JMP 0x00172c44
LAB_00172bce:
MOV RCX,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RBX + 0x28]
MOV EDX,ECX
SUB EDX,EAX
ADD RDX,qword ptr [RBX]
CMP R13,RDX
JZ 0x00172bf6
MOV qword ptr [RBX],R13
MOV qword ptr [RBX + 0x18],RAX
MOV dword ptr [RBX + 0xe0],0x1
MOV RCX,RAX
LAB_00172bf6:
MOV qword ptr [RBX + 0x10],RCX
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R8
CALL 0x0019920a
TEST EAX,EAX
JZ 0x00172c44
MOVSXD RBX,dword ptr [RBX + 0xe4]
LAB_00172c13:
TEST byte ptr [RBP + -0x2c],0x2
JZ 0x00172c59
MOV EAX,EBX
CMP EAX,-0x1
JZ 0x00172c59
LEA RAX,[RBX + R15*0x1]
CMP RAX,0x2
JBE 0x00172c59
ADD R12,RBX
MOV EDX,0x14
SUB RDX,RAX
XOR R14D,R14D
MOV RDI,R12
XOR ESI,ESI
CALL 0x0012a2c0
JMP 0x00172c47
LAB_00172c44:
XOR R14D,R14D
LAB_00172c47:
MOV EAX,R14D
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00172c59:
TEST byte ptr [RBP + -0x2c],0x2
JZ 0x00172c6a
NEG R15
MOV R14B,0xff
CMP RBX,R15
JZ 0x00172c47
LAB_00172c6a:
CALL 0x001a813e
CMP dword ptr [RAX],0x0
JZ 0x00172c84
CALL 0x001a813e
MOV R14B,0x1
CMP dword ptr [RAX],0xaf
JNZ 0x00172c47
LAB_00172c84:
MOV RDI,qword ptr [RBP + -0x50]
CMP byte ptr [RDI + 0x683],0x0
JNZ 0x00172c9b
MOV ESI,0xaf
CALL 0x00142b9c
LAB_00172c9b:
CALL 0x001a813e
MOV R14B,0x1
CMP dword ptr [RAX],0x0
JNZ 0x00172c47
CALL 0x001a813e
MOV dword ptr [RAX],0x7f
JMP 0x00172c47
LAB_00172cb5:
MOV R14B,0xff
TEST byte ptr [RBP + -0x2c],0x2
JZ 0x00172a88
JMP 0x00172c47
LAB_00172cc4:
MOV RCX,RAX
LEA RAX,[0x48f258]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1e2299]
MOV qword ptr [RBP + -0x40],RCX
MOV RDI,RCX
MOV RSI,R15
MOV ECX,0x38
CALL qword ptr [RAX + 0x210]
MOV R8D,0x4
MOV EDI,R14D
MOV RSI,R12
MOV RDX,R15
MOV RCX,R13
CALL 0x001a6c7c
MOV R12,RAX
XOR ESI,ESI
TEST RAX,RAX
CMOVZ RSI,R15
LEA RAX,[0x48f258]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x40]
CALL qword ptr [RAX + 0x218]
JMP 0x00172afc
LAB_00172d29:
MOV RCX,RAX
LEA RAX,[0x48f258]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1e2299]
MOV qword ptr [RBP + -0x38],RCX
MOV RDI,RCX
MOV RSI,R14
MOV ECX,0x5f
CALL qword ptr [RAX + 0x210]
MOV EDI,EBX
MOV RSI,R12
MOV RDX,R14
MOV RCX,R13
XOR R8D,R8D
CALL 0x001a6c7c
MOV RBX,RAX
CMP RAX,-0x1
MOV ESI,0x0
CMOVNZ RSI,RAX
LEA RAX,[0x48f258]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x38]
CALL qword ptr [RAX + 0x218]
JMP 0x00172bc7
|
ulong _ma_read_cache(long param_1,ulong *param_2,void *param_3,ulong param_4,ulong param_5,
uint param_6)
{
int4 uVar1;
int iVar2;
long lVar3;
ulong uVar4;
ulong uVar5;
int *piVar6;
int4 *puVar7;
ulong uVar8;
ulong uVar9;
void *pvVar10;
ulong unaff_R14;
int1 local_a0 [72];
long local_58;
ulong local_50;
long local_48;
void *local_40;
uint local_34;
if ((param_2[1] <= param_4) &&
(unaff_R14 = CONCAT71((int7)(unaff_R14 >> 8),0xff), (param_6 & 2) != 0)) goto LAB_00172c47;
uVar4 = *param_2;
uVar8 = uVar4 - param_4;
local_58 = param_1;
local_34 = param_6;
if (uVar4 < param_4 || uVar8 == 0) {
LAB_00172b22:
if (param_4 < uVar4) {
LAB_00172b6e:
uVar8 = 0;
uVar4 = param_5;
}
else {
if (param_2[3] - param_2[5] <= param_4 - uVar4) goto LAB_00172b6e;
pvVar10 = (void *)(param_2[5] + (param_4 - uVar4 & 0xffffffff));
uVar8 = param_2[3] - (long)pvVar10;
if (param_5 < uVar8) {
uVar8 = param_5;
}
memcpy(param_3,pvVar10,uVar8);
if (param_5 - uVar8 == 0) goto LAB_00172c44;
param_4 = param_4 + uVar8;
param_3 = (void *)((long)param_3 + uVar8);
uVar4 = param_5 - uVar8;
unaff_R14 = param_5;
}
if ((local_34 & 1) == 0) {
*(int4 *)(param_2 + 0x1c) = 1;
uVar1 = *(int4 *)((long)param_2 + 0xd4);
pvVar10 = (void *)(**(code **)(PSI_server + 0x158))(local_a0,uVar1,6);
if (pvVar10 == (void *)0x0) {
uVar5 = my_pread(uVar1,param_3,uVar4,param_4,0);
}
else {
local_40 = pvVar10;
(**(code **)(PSI_server + 0x210))
(pvVar10,uVar4,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_cache.c"
,0x5f);
uVar5 = my_pread(uVar1,param_3,uVar4,param_4,0);
(**(code **)(PSI_server + 0x218))(local_40);
}
unaff_R14 = uVar4;
if (uVar5 != uVar4) {
LAB_00172c13:
if ((((local_34 & 2) == 0) || ((int)uVar5 == -1)) || (uVar5 + uVar8 < 3)) {
if (((local_34 & 2) == 0) ||
(unaff_R14 = CONCAT71((int7)(unaff_R14 >> 8),0xff), uVar5 != -uVar8)) {
piVar6 = (int *)_my_thread_var();
if (*piVar6 != 0) {
piVar6 = (int *)_my_thread_var();
unaff_R14 = CONCAT71((int7)(unaff_R14 >> 8),1);
if (*piVar6 != 0xaf) goto LAB_00172c47;
}
if (*(char *)(local_58 + 0x683) == '\0') {
_ma_set_fatal_error(local_58,0xaf);
}
piVar6 = (int *)_my_thread_var();
unaff_R14 = CONCAT71((int7)(unaff_R14 >> 8),1);
if (*piVar6 == 0) {
puVar7 = (int4 *)_my_thread_var();
*puVar7 = 0x7f;
}
}
}
else {
unaff_R14 = 0;
memset((void *)((long)param_3 + uVar5),0,0x14 - (uVar5 + uVar8));
}
goto LAB_00172c47;
}
}
else {
uVar5 = param_2[5];
uVar9 = param_2[3];
if (param_4 != (ulong)(uint)((int)param_2[3] - (int)uVar5) + *param_2) {
*param_2 = param_4;
param_2[3] = uVar5;
*(int4 *)(param_2 + 0x1c) = 1;
uVar9 = uVar5;
}
param_2[2] = uVar9;
iVar2 = _my_b_read(param_2,param_3,uVar4);
if (iVar2 != 0) {
uVar5 = (ulong)*(int *)((long)param_2 + 0xe4);
goto LAB_00172c13;
}
}
}
else {
uVar4 = uVar8 & 0xffffffff;
if (param_5 <= uVar8) {
uVar4 = param_5;
}
*(int4 *)(param_2 + 0x1c) = 1;
uVar1 = *(int4 *)((long)param_2 + 0xd4);
local_50 = param_5;
lVar3 = (**(code **)(PSI_server + 0x158))(local_a0,uVar1,6);
local_40 = param_3;
if (lVar3 == 0) {
lVar3 = my_pread(uVar1,param_3,uVar4,param_4,4);
}
else {
local_48 = lVar3;
(**(code **)(PSI_server + 0x210))
(lVar3,uVar4,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_cache.c",
0x38);
lVar3 = my_pread(uVar1,param_3,uVar4,param_4,4);
uVar8 = 0;
if (lVar3 == 0) {
uVar8 = uVar4;
}
(**(code **)(PSI_server + 0x218))(local_48,uVar8);
}
unaff_R14 = CONCAT71((uint7)(uint3)((uint)uVar1 >> 8),1);
if (lVar3 != 0) goto LAB_00172c47;
param_5 = local_50 - uVar4;
if (param_5 != 0) {
param_4 = param_4 + uVar4;
param_3 = (void *)((long)local_40 + uVar4);
uVar4 = *param_2;
goto LAB_00172b22;
}
}
LAB_00172c44:
unaff_R14 = 0;
LAB_00172c47:
return unaff_R14 & 0xffffffff;
}
| |
55,013 | my_realpath | eloqsql/mysys/my_symlink.c | int my_realpath(char *to, const char *filename, myf MyFlags)
{
#if defined(HAVE_REALPATH) && !defined(HAVE_BROKEN_REALPATH)
int result=0;
char buff[BUFF_LEN];
char *ptr;
DBUG_ENTER("my_realpath");
DBUG_PRINT("info",("executing realpath"));
if ((ptr=realpath(filename,buff)))
strmake(to, ptr, FN_REFLEN-1);
else
{
/*
Realpath didn't work; Use my_load_path() which is a poor substitute
original name but will at least be able to resolve paths that starts
with '.'.
*/
if (MyFlags)
DBUG_PRINT("error",("realpath failed with errno: %d", errno));
my_errno=errno;
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
my_load_path(to, filename, NullS);
if (my_errno == ENOENT)
result= 1;
else
result= -1;
}
DBUG_RETURN(result);
#elif defined(_WIN32)
int ret= GetFullPathName(filename,FN_REFLEN, to, NULL);
if (ret == 0 || ret > FN_REFLEN)
{
my_errno= (ret > FN_REFLEN) ? ENAMETOOLONG : GetLastError();
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
/*
GetFullPathName didn't work : use my_load_path() which is a poor
substitute original name but will at least be able to resolve
paths that starts with '.'.
*/
my_load_path(to, filename, NullS);
return -1;
}
#else
my_load_path(to, filename, NullS);
#endif
return 0;
} | O3 | c | my_realpath:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1010, %rsp # imm = 0x1010
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
leaq -0x1030(%rbp), %rsi
movq %r14, %rdi
callq 0x250e0
testq %rax, %rax
je 0x50a89
movl $0x1ff, %edx # imm = 0x1FF
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4a204
xorl %eax, %eax
jmp 0x50ad8
callq 0x25060
movl (%rax), %r12d
callq 0x4b596
movl %r12d, (%rax)
testb $0x10, %r15b
je 0x50ab7
callq 0x4b596
movl (%rax), %ecx
movl $0x1a, %edi
xorl %esi, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4c22b
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x51cd0
callq 0x4b596
xorl %ecx, %ecx
cmpl $0x2, (%rax)
sete %cl
leal -0x1(,%rcx,2), %eax
movq %fs:0x28, %rcx
cmpq -0x28(%rbp), %rcx
jne 0x50af7
addq $0x1010, %rsp # imm = 0x1010
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x25320
| my_realpath:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 1010h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
lea rsi, [rbp+var_1030]
mov rdi, r14
call _realpath
test rax, rax
jz short loc_50A89
mov edx, 1FFh
mov rdi, rbx
mov rsi, rax
call strmake
xor eax, eax
jmp short loc_50AD8
loc_50A89:
call ___errno_location
mov r12d, [rax]
call _my_thread_var
mov [rax], r12d
test r15b, 10h
jz short loc_50AB7
call _my_thread_var
mov ecx, [rax]
mov edi, 1Ah
xor esi, esi
mov rdx, r14
xor eax, eax
call my_error
loc_50AB7:
mov rdi, rbx
mov rsi, r14
xor edx, edx
call my_load_path
call _my_thread_var
xor ecx, ecx
cmp dword ptr [rax], 2
setz cl
lea eax, ds:0FFFFFFFFFFFFFFFFh[rcx*2]
loc_50AD8:
mov rcx, fs:28h
cmp rcx, [rbp+var_28]
jnz short loc_50AF7
add rsp, 1010h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_50AF7:
call ___stack_chk_fail
| long long my_realpath(long long a1, long long a2, char a3)
{
long long v4; // rax
int v6; // r12d
unsigned int *v7; // rax
_BYTE v8[4104]; // [rsp+0h] [rbp-1030h] BYREF
unsigned long long v9; // [rsp+1008h] [rbp-28h]
v9 = __readfsqword(0x28u);
v4 = realpath(a2, v8);
if ( v4 )
{
strmake(a1, v4, 511LL);
return 0LL;
}
else
{
v6 = *(_DWORD *)__errno_location(a2);
*(_DWORD *)my_thread_var() = v6;
if ( (a3 & 0x10) != 0 )
{
v7 = (unsigned int *)my_thread_var();
my_error(0x1Au, 0LL, a2, *v7);
}
my_load_path(a1, a2, 0LL);
return 2 * (unsigned int)(*(_DWORD *)my_thread_var() == 2) - 1;
}
}
| my_realpath:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x1010
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
LEA RSI,[RBP + -0x1030]
MOV RDI,R14
CALL 0x001250e0
TEST RAX,RAX
JZ 0x00150a89
MOV EDX,0x1ff
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0014a204
XOR EAX,EAX
JMP 0x00150ad8
LAB_00150a89:
CALL 0x00125060
MOV R12D,dword ptr [RAX]
CALL 0x0014b596
MOV dword ptr [RAX],R12D
TEST R15B,0x10
JZ 0x00150ab7
CALL 0x0014b596
MOV ECX,dword ptr [RAX]
MOV EDI,0x1a
XOR ESI,ESI
MOV RDX,R14
XOR EAX,EAX
CALL 0x0014c22b
LAB_00150ab7:
MOV RDI,RBX
MOV RSI,R14
XOR EDX,EDX
CALL 0x00151cd0
CALL 0x0014b596
XOR ECX,ECX
CMP dword ptr [RAX],0x2
SETZ CL
LEA EAX,[-0x1 + RCX*0x2]
LAB_00150ad8:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x28]
JNZ 0x00150af7
ADD RSP,0x1010
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00150af7:
CALL 0x00125320
|
int my_realpath(int8 param_1,char *param_2,ulong param_3)
{
int iVar1;
char *pcVar2;
int *piVar3;
int4 *puVar4;
long in_FS_OFFSET;
char local_1038 [4104];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
pcVar2 = realpath(param_2,local_1038);
if (pcVar2 == (char *)0x0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
if ((param_3 & 0x10) != 0) {
puVar4 = (int4 *)_my_thread_var();
my_error(0x1a,0,param_2,*puVar4);
}
my_load_path(param_1,param_2,0);
piVar3 = (int *)_my_thread_var();
iVar1 = (uint)(*piVar3 == 2) * 2 + -1;
}
else {
strmake(param_1,pcVar2,0x1ff);
iVar1 = 0;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_30) {
return iVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
55,014 | string_buffer_write16 | bluesky950520[P]quickjs/quickjs.c | static int string_buffer_write16(StringBuffer *s, const uint16_t *p, int len)
{
int c = 0, i;
for (i = 0; i < len; i++) {
c |= p[i];
}
if (s->len + len > s->size) {
if (string_buffer_realloc(s, s->len + len, c))
return -1;
} else if (!s->is_wide_char && c >= 0x100) {
if (string_buffer_widen(s, s->size))
return -1;
}
if (s->is_wide_char) {
memcpy(&s->str->u.str16[s->len], p, len << 1);
s->len += len;
} else {
for (i = 0; i < len; i++) {
s->str->u.str8[s->len + i] = p[i];
}
s->len += len;
}
return 0;
} | O0 | c | string_buffer_write16:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movl %edx, 0xc(%rsp)
movl $0x0, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
cmpl 0xc(%rsp), %eax
jge 0x6ed2f
movq 0x10(%rsp), %rax
movslq 0x4(%rsp), %rcx
movzwl (%rax,%rcx,2), %eax
orl 0x8(%rsp), %eax
movl %eax, 0x8(%rsp)
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x6ed02
movq 0x18(%rsp), %rax
movl 0x10(%rax), %eax
addl 0xc(%rsp), %eax
movq 0x18(%rsp), %rcx
cmpl 0x14(%rcx), %eax
jle 0x6ed73
movq 0x18(%rsp), %rdi
movq 0x18(%rsp), %rax
movl 0x10(%rax), %esi
addl 0xc(%rsp), %esi
movl 0x8(%rsp), %edx
callq 0x6ea10
cmpl $0x0, %eax
je 0x6ed71
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x6ee5d
jmp 0x6edb0
movq 0x18(%rsp), %rax
cmpl $0x0, 0x18(%rax)
jne 0x6edae
cmpl $0x100, 0x8(%rsp) # imm = 0x100
jl 0x6edae
movq 0x18(%rsp), %rdi
movq 0x18(%rsp), %rax
movl 0x14(%rax), %esi
callq 0x6ebe0
cmpl $0x0, %eax
je 0x6edac
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x6ee5d
jmp 0x6edae
jmp 0x6edb0
movq 0x18(%rsp), %rax
cmpl $0x0, 0x18(%rax)
je 0x6edfb
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
addq $0x18, %rdi
movq 0x18(%rsp), %rax
movslq 0x10(%rax), %rax
shlq %rax
addq %rax, %rdi
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %eax
shll %eax
movslq %eax, %rdx
callq 0xe5a0
movl 0xc(%rsp), %ecx
movq 0x18(%rsp), %rax
addl 0x10(%rax), %ecx
movl %ecx, 0x10(%rax)
jmp 0x6ee55
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
cmpl 0xc(%rsp), %eax
jge 0x6ee46
movq 0x10(%rsp), %rax
movslq 0x4(%rsp), %rcx
movw (%rax,%rcx,2), %ax
movb %al, %dl
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x18(%rsp), %rcx
movl 0x10(%rcx), %ecx
addl 0x4(%rsp), %ecx
movslq %ecx, %rcx
movb %dl, 0x18(%rax,%rcx)
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x6ee03
movl 0xc(%rsp), %ecx
movq 0x18(%rsp), %rax
addl 0x10(%rax), %ecx
movl %ecx, 0x10(%rax)
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
| string_buffer_write16:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_18], rsi
mov [rsp+28h+var_1C], edx
mov [rsp+28h+var_20], 0
mov [rsp+28h+var_24], 0
loc_6ED02:
mov eax, [rsp+28h+var_24]
cmp eax, [rsp+28h+var_1C]
jge short loc_6ED2F
mov rax, [rsp+28h+var_18]
movsxd rcx, [rsp+28h+var_24]
movzx eax, word ptr [rax+rcx*2]
or eax, [rsp+28h+var_20]
mov [rsp+28h+var_20], eax
mov eax, [rsp+28h+var_24]
add eax, 1
mov [rsp+28h+var_24], eax
jmp short loc_6ED02
loc_6ED2F:
mov rax, [rsp+28h+var_10]
mov eax, [rax+10h]
add eax, [rsp+28h+var_1C]
mov rcx, [rsp+28h+var_10]
cmp eax, [rcx+14h]
jle short loc_6ED73
mov rdi, [rsp+28h+var_10]
mov rax, [rsp+28h+var_10]
mov esi, [rax+10h]
add esi, [rsp+28h+var_1C]
mov edx, [rsp+28h+var_20]
call string_buffer_realloc
cmp eax, 0
jz short loc_6ED71
mov [rsp+28h+var_4], 0FFFFFFFFh
jmp loc_6EE5D
loc_6ED71:
jmp short loc_6EDB0
loc_6ED73:
mov rax, [rsp+28h+var_10]
cmp dword ptr [rax+18h], 0
jnz short loc_6EDAE
cmp [rsp+28h+var_20], 100h
jl short loc_6EDAE
mov rdi, [rsp+28h+var_10]
mov rax, [rsp+28h+var_10]
mov esi, [rax+14h]
call string_buffer_widen
cmp eax, 0
jz short loc_6EDAC
mov [rsp+28h+var_4], 0FFFFFFFFh
jmp loc_6EE5D
loc_6EDAC:
jmp short $+2
loc_6EDAE:
jmp short $+2
loc_6EDB0:
mov rax, [rsp+28h+var_10]
cmp dword ptr [rax+18h], 0
jz short loc_6EDFB
mov rax, [rsp+28h+var_10]
mov rdi, [rax+8]
add rdi, 18h
mov rax, [rsp+28h+var_10]
movsxd rax, dword ptr [rax+10h]
shl rax, 1
add rdi, rax
mov rsi, [rsp+28h+var_18]
mov eax, [rsp+28h+var_1C]
shl eax, 1
movsxd rdx, eax
call _memcpy
mov ecx, [rsp+28h+var_1C]
mov rax, [rsp+28h+var_10]
add ecx, [rax+10h]
mov [rax+10h], ecx
jmp short loc_6EE55
loc_6EDFB:
mov [rsp+28h+var_24], 0
loc_6EE03:
mov eax, [rsp+28h+var_24]
cmp eax, [rsp+28h+var_1C]
jge short loc_6EE46
mov rax, [rsp+28h+var_18]
movsxd rcx, [rsp+28h+var_24]
mov ax, [rax+rcx*2]
mov dl, al
mov rax, [rsp+28h+var_10]
mov rax, [rax+8]
mov rcx, [rsp+28h+var_10]
mov ecx, [rcx+10h]
add ecx, [rsp+28h+var_24]
movsxd rcx, ecx
mov [rax+rcx+18h], dl
mov eax, [rsp+28h+var_24]
add eax, 1
mov [rsp+28h+var_24], eax
jmp short loc_6EE03
loc_6EE46:
mov ecx, [rsp+28h+var_1C]
mov rax, [rsp+28h+var_10]
add ecx, [rax+10h]
mov [rax+10h], ecx
loc_6EE55:
mov [rsp+28h+var_4], 0
loc_6EE5D:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
| long long string_buffer_write16(
long long a1,
long long a2,
int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
long long a12,
long long a13,
long long a14)
{
int i; // [rsp+4h] [rbp-24h]
int j; // [rsp+4h] [rbp-24h]
int v17; // [rsp+8h] [rbp-20h]
v17 = 0;
for ( i = 0; i < a3; ++i )
v17 |= *(unsigned __int16 *)(a2 + 2LL * i);
if ( a3 + *(_DWORD *)(a1 + 16) <= *(_DWORD *)(a1 + 20) )
{
if ( !*(_DWORD *)(a1 + 24) && v17 >= 256 && (unsigned int)string_buffer_widen(a1, *(_DWORD *)(a1 + 20)) )
return (unsigned int)-1;
}
else if ( (unsigned int)string_buffer_realloc(
a1,
a3 + *(_DWORD *)(a1 + 16),
(unsigned int)v17,
a1,
a13,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11) )
{
return (unsigned int)-1;
}
if ( *(_DWORD *)(a1 + 24) )
{
memcpy(2LL * *(int *)(a1 + 16) + *(_QWORD *)(a1 + 8) + 24LL, a2, 2 * a3);
*(_DWORD *)(a1 + 16) += a3;
}
else
{
for ( j = 0; j < a3; ++j )
*(_BYTE *)(*(_QWORD *)(a1 + 8) + j + *(_DWORD *)(a1 + 16) + 24LL) = *(_WORD *)(a2 + 2LL * j);
*(_DWORD *)(a1 + 16) += a3;
}
return 0;
}
| string_buffer_write16:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV qword ptr [RSP + 0x10],RSI
MOV dword ptr [RSP + 0xc],EDX
MOV dword ptr [RSP + 0x8],0x0
MOV dword ptr [RSP + 0x4],0x0
LAB_0016ed02:
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,dword ptr [RSP + 0xc]
JGE 0x0016ed2f
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x4]
MOVZX EAX,word ptr [RAX + RCX*0x2]
OR EAX,dword ptr [RSP + 0x8]
MOV dword ptr [RSP + 0x8],EAX
MOV EAX,dword ptr [RSP + 0x4]
ADD EAX,0x1
MOV dword ptr [RSP + 0x4],EAX
JMP 0x0016ed02
LAB_0016ed2f:
MOV RAX,qword ptr [RSP + 0x18]
MOV EAX,dword ptr [RAX + 0x10]
ADD EAX,dword ptr [RSP + 0xc]
MOV RCX,qword ptr [RSP + 0x18]
CMP EAX,dword ptr [RCX + 0x14]
JLE 0x0016ed73
MOV RDI,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x18]
MOV ESI,dword ptr [RAX + 0x10]
ADD ESI,dword ptr [RSP + 0xc]
MOV EDX,dword ptr [RSP + 0x8]
CALL 0x0016ea10
CMP EAX,0x0
JZ 0x0016ed71
MOV dword ptr [RSP + 0x24],0xffffffff
JMP 0x0016ee5d
LAB_0016ed71:
JMP 0x0016edb0
LAB_0016ed73:
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x18],0x0
JNZ 0x0016edae
CMP dword ptr [RSP + 0x8],0x100
JL 0x0016edae
MOV RDI,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x18]
MOV ESI,dword ptr [RAX + 0x14]
CALL 0x0016ebe0
CMP EAX,0x0
JZ 0x0016edac
MOV dword ptr [RSP + 0x24],0xffffffff
JMP 0x0016ee5d
LAB_0016edac:
JMP 0x0016edae
LAB_0016edae:
JMP 0x0016edb0
LAB_0016edb0:
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x18],0x0
JZ 0x0016edfb
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX + 0x8]
ADD RDI,0x18
MOV RAX,qword ptr [RSP + 0x18]
MOVSXD RAX,dword ptr [RAX + 0x10]
SHL RAX,0x1
ADD RDI,RAX
MOV RSI,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RSP + 0xc]
SHL EAX,0x1
MOVSXD RDX,EAX
CALL 0x0010e5a0
MOV ECX,dword ptr [RSP + 0xc]
MOV RAX,qword ptr [RSP + 0x18]
ADD ECX,dword ptr [RAX + 0x10]
MOV dword ptr [RAX + 0x10],ECX
JMP 0x0016ee55
LAB_0016edfb:
MOV dword ptr [RSP + 0x4],0x0
LAB_0016ee03:
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,dword ptr [RSP + 0xc]
JGE 0x0016ee46
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x4]
MOV AX,word ptr [RAX + RCX*0x2]
MOV DL,AL
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RCX + 0x10]
ADD ECX,dword ptr [RSP + 0x4]
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1 + 0x18],DL
MOV EAX,dword ptr [RSP + 0x4]
ADD EAX,0x1
MOV dword ptr [RSP + 0x4],EAX
JMP 0x0016ee03
LAB_0016ee46:
MOV ECX,dword ptr [RSP + 0xc]
MOV RAX,qword ptr [RSP + 0x18]
ADD ECX,dword ptr [RAX + 0x10]
MOV dword ptr [RAX + 0x10],ECX
LAB_0016ee55:
MOV dword ptr [RSP + 0x24],0x0
LAB_0016ee5d:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
int4 string_buffer_write16(long param_1,void *param_2,int param_3)
{
ushort uVar1;
int iVar2;
int local_24;
uVar1 = 0;
for (local_24 = 0; local_24 < param_3; local_24 = local_24 + 1) {
uVar1 = *(ushort *)((long)param_2 + (long)local_24 * 2) | uVar1;
}
if (*(int *)(param_1 + 0x14) < *(int *)(param_1 + 0x10) + param_3) {
iVar2 = string_buffer_realloc(param_1,*(int *)(param_1 + 0x10) + param_3,uVar1);
if (iVar2 != 0) {
return 0xffffffff;
}
}
else if (((*(int *)(param_1 + 0x18) == 0) && (0xff < uVar1)) &&
(iVar2 = string_buffer_widen(param_1,*(int4 *)(param_1 + 0x14)), iVar2 != 0)) {
return 0xffffffff;
}
if (*(int *)(param_1 + 0x18) == 0) {
for (local_24 = 0; local_24 < param_3; local_24 = local_24 + 1) {
*(char *)(*(long *)(param_1 + 8) + 0x18 + (long)(*(int *)(param_1 + 0x10) + local_24)) =
(char)*(int2 *)((long)param_2 + (long)local_24 * 2);
}
*(int *)(param_1 + 0x10) = param_3 + *(int *)(param_1 + 0x10);
}
else {
memcpy((void *)(*(long *)(param_1 + 8) + 0x18 + (long)*(int *)(param_1 + 0x10) * 2),param_2,
(long)(param_3 << 1));
*(int *)(param_1 + 0x10) = param_3 + *(int *)(param_1 + 0x10);
}
return 0;
}
| |
55,015 | my_wc_mb_latin1 | eloqsql/strings/ctype-latin1.c | static
int my_wc_mb_latin1(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc,
uchar *str,
uchar *end __attribute__((unused)))
{
const uchar *pl;
if (str >= end)
return MY_CS_TOOSMALL;
if (wc > 0xFFFF)
return MY_CS_ILUNI;
pl= uni_to_cs[wc >> 8];
str[0]= pl ? pl[wc & 0xFF] : '\0';
return (!str[0] && wc) ? MY_CS_ILUNI : 1;
} | O0 | c | my_wc_mb_latin1:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x3dc7a
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x3dd01
cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF
jbe 0x3dc8d
movl $0x0, -0x4(%rbp)
jmp 0x3dd01
movq -0x18(%rbp), %rcx
shrq $0x8, %rcx
leaq 0x187724(%rip), %rax # 0x1c53c0
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x3dcc3
movq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
andq $0xff, %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0x34(%rbp)
jmp 0x3dcca
xorl %eax, %eax
movl %eax, -0x34(%rbp)
jmp 0x3dcca
movl -0x34(%rbp), %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpb $0x0, (%rcx)
movb %al, -0x35(%rbp)
jne 0x3dcee
cmpq $0x0, -0x18(%rbp)
setne %al
movb %al, -0x35(%rbp)
movb -0x35(%rbp), %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_wc_mb_latin1:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_3DC7A
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_3DD01
loc_3DC7A:
cmp [rbp+var_18], 0FFFFh
jbe short loc_3DC8D
mov [rbp+var_4], 0
jmp short loc_3DD01
loc_3DC8D:
mov rcx, [rbp+var_18]
shr rcx, 8
lea rax, uni_to_cs
mov rax, [rax+rcx*8]
mov [rbp+var_30], rax
cmp [rbp+var_30], 0
jz short loc_3DCC3
mov rax, [rbp+var_30]
mov rcx, [rbp+var_18]
and rcx, 0FFh
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_34], eax
jmp short loc_3DCCA
loc_3DCC3:
xor eax, eax
mov [rbp+var_34], eax
jmp short $+2
loc_3DCCA:
mov eax, [rbp+var_34]
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov rcx, [rbp+var_20]
xor eax, eax
cmp byte ptr [rcx], 0
mov [rbp+var_35], al
jnz short loc_3DCEE
cmp [rbp+var_18], 0
setnz al
mov [rbp+var_35], al
loc_3DCEE:
mov dl, [rbp+var_35]
mov eax, 1
xor ecx, ecx
test dl, 1
cmovnz eax, ecx
mov [rbp+var_4], eax
loc_3DD01:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_wc_mb_latin1(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
bool v5; // [rsp+1h] [rbp-35h]
char v6; // [rsp+2h] [rbp-34h]
long long v7; // [rsp+6h] [rbp-30h]
if ( (unsigned long long)a3 < a4 )
{
if ( a2 <= 0xFFFF )
{
v7 = (long long)*(&uni_to_cs + (a2 >> 8));
if ( v7 )
v6 = *(_BYTE *)(v7 + (unsigned __int8)a2);
else
v6 = 0;
*a3 = v6;
v5 = 0;
if ( !*a3 )
v5 = a2 != 0;
return !v5;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-101;
}
}
| my_wc_mb_latin1:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x0013dc7a
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x0013dd01
LAB_0013dc7a:
CMP qword ptr [RBP + -0x18],0xffff
JBE 0x0013dc8d
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0013dd01
LAB_0013dc8d:
MOV RCX,qword ptr [RBP + -0x18]
SHR RCX,0x8
LEA RAX,[0x2c53c0]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
JZ 0x0013dcc3
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
AND RCX,0xff
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0013dcca
LAB_0013dcc3:
XOR EAX,EAX
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0013dcca
LAB_0013dcca:
MOV EAX,dword ptr [RBP + -0x34]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV RCX,qword ptr [RBP + -0x20]
XOR EAX,EAX
CMP byte ptr [RCX],0x0
MOV byte ptr [RBP + -0x35],AL
JNZ 0x0013dcee
CMP qword ptr [RBP + -0x18],0x0
SETNZ AL
MOV byte ptr [RBP + -0x35],AL
LAB_0013dcee:
MOV DL,byte ptr [RBP + -0x35]
MOV EAX,0x1
XOR ECX,ECX
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
LAB_0013dd01:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
uint my_wc_mb_latin1(int8 param_1,ulong param_2,char *param_3,char *param_4)
{
char cVar1;
uint local_c;
if (param_3 < param_4) {
if (param_2 < 0x10000) {
if (*(long *)(uni_to_cs + (param_2 >> 8) * 8) == 0) {
cVar1 = '\0';
}
else {
cVar1 = *(char *)(*(long *)(uni_to_cs + (param_2 >> 8) * 8) + (param_2 & 0xff));
}
*param_3 = cVar1;
local_c = (uint)(*param_3 != '\0' || param_2 == 0);
}
else {
local_c = 0;
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
| |
55,016 | minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&) | monkey531[P]llama/common/minja.hpp | static Value simple_function(const std::string & fn_name, const std::vector<std::string> & params, const std::function<Value(const std::shared_ptr<Context> &, Value & args)> & fn) {
std::map<std::string, size_t> named_positions;
for (size_t i = 0, n = params.size(); i < n; i++) named_positions[params[i]] = i;
return Value::callable([=](const std::shared_ptr<Context> & context, ArgumentsValue & args) -> Value {
auto args_obj = Value::object();
std::vector<bool> provided_args(params.size());
for (size_t i = 0, n = args.args.size(); i < n; i++) {
auto & arg = args.args[i];
if (i < params.size()) {
args_obj.set(params[i], arg);
provided_args[i] = true;
} else {
throw std::runtime_error("Too many positional params for " + fn_name);
}
}
for (auto & [name, value] : args.kwargs) {
auto named_pos_it = named_positions.find(name);
if (named_pos_it == named_positions.end()) {
throw std::runtime_error("Unknown argument " + name + " for function " + fn_name);
}
provided_args[named_pos_it->second] = true;
args_obj.set(name, value);
}
return fn(context, args_obj);
});
} | O1 | cpp | minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rcx, 0x28(%rsp)
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, 0x20(%rsp)
leaq 0xc0(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq 0x8(%rdx), %rbp
subq (%rdx), %rbp
je 0x885e6
sarq $0x5, %rbp
cmpq $0x1, %rbp
adcq $0x0, %rbp
xorl %ebx, %ebx
leaq 0xb8(%rsp), %r13
xorl %r12d, %r12d
movq (%r15), %rsi
addq %rbx, %rsi
movq %r13, %rdi
callq 0x70326
movq %r12, (%rax)
incq %r12
addq $0x20, %rbx
cmpq %r12, %rbp
jne 0x885c9
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x36ae2
leaq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
callq 0x36780
leaq 0x68(%rsp), %r14
leaq 0xb8(%rsp), %rsi
movq %r14, %rdi
callq 0x70780
leaq 0x98(%rsp), %r15
movq %r15, %rdi
movq 0x28(%rsp), %rsi
callq 0x703a2
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl $0x88, %edi
callq 0x18690
movq %rax, %r12
leaq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0x36ae2
leaq 0x18(%r12), %rdi
leaq 0x28(%r12), %rbp
movq %rbp, 0x18(%r12)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
callq 0x36780
leaq 0x40(%r12), %rax
movq 0x78(%rsp), %rcx
testq %rcx, %rcx
je 0x886d1
leaq 0x70(%rsp), %rdx
movl (%rdx), %esi
movl %esi, 0x40(%r12)
movq %rcx, 0x48(%r12)
movups 0x10(%rdx), %xmm0
movups %xmm0, 0x50(%r12)
movq %rax, 0x8(%rcx)
leaq 0x90(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x60(%r12)
movq $0x0, -0x18(%rax)
movq %rdx, -0x10(%rax)
movq %rdx, -0x8(%rax)
jmp 0x886f2
movl $0x0, 0x40(%r12)
movq $0x0, 0x48(%r12)
movq %rax, 0x50(%r12)
movq %rax, 0x58(%r12)
leaq 0x60(%r12), %rax
movq $0x0, (%rax)
leaq 0x68(%r12), %rdi
movq %r15, %rsi
callq 0x703a2
movq %rsp, %rsi
movq %r12, (%rsi)
leaq 0x1d5(%rip), %rax # 0x888e8
movq %rax, 0x18(%rsi)
leaq 0x866(%rip), %rax # 0x88f84
movq %rax, 0x10(%rsi)
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x577d2
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x88746
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0xa8(%rsp), %rax
testq %rax, %rax
je 0x88760
movq %r15, %rdi
movq %r15, %rsi
movl $0x3, %edx
callq *%rax
movq %r14, %rdi
callq 0x709e2
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x8877f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x186a0
leaq 0x30(%rsp), %rdi
callq 0x247b8
leaq 0xb8(%rsp), %rdi
callq 0x709e2
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8883f
jmp 0x8883f
movq %rax, %rbx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x88833
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x88833
jmp 0x8883f
movq %rax, %rbx
movq %r12, %rdi
addq $0x38, %rdi
callq 0x709e2
movq 0x18(%r12), %rdi
cmpq %rbp, %rdi
je 0x887fd
movq (%rbp), %rsi
incq %rsi
callq 0x186a0
jmp 0x887fd
movq %rax, %rbx
movq %r12, %rdi
callq 0x247b8
jmp 0x8880a
movq %rax, %rbx
movl $0x88, %esi
movq %r12, %rdi
callq 0x186a0
jmp 0x8881c
movq %rax, %rbx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x88833
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x30(%rsp), %rdi
callq 0x8889a
jmp 0x88884
movq %rax, %rdi
callq 0x2a807
movq %rax, %rbx
movq %r14, %rdi
callq 0x709e2
jmp 0x88857
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x88873
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x88873
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x247b8
jmp 0x88884
jmp 0x88881
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x709e2
movq %rbx, %rdi
callq 0x18ba0
nop
| _ZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EE_0:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov [rsp+118h+var_F0], rcx
mov r15, rdx
mov r14, rsi
mov [rsp+118h+var_F8], rdi
lea rax, [rsp+118h+var_58]
mov dword ptr [rax], 0
xor ecx, ecx
mov [rax+8], rcx
mov [rax+10h], rax
mov [rax+18h], rax
mov [rax+20h], rcx
mov rbp, [rdx+8]
sub rbp, [rdx]
jz short loc_885E6
sar rbp, 5
cmp rbp, 1
adc rbp, 0
xor ebx, ebx
lea r13, [rsp+118h+var_60]
xor r12d, r12d
loc_885C9:
mov rsi, [r15]
add rsi, rbx
mov rdi, r13
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEEixERS9_; std::map<std::string,ulong>::operator[](std::string const&)
mov [rax], r12
inc r12
add rbx, 20h ; ' '
cmp rbp, r12
jnz short loc_885C9
loc_885E6:
lea rdi, [rsp+118h+var_E8]
mov rsi, r15
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
lea rdi, [rsp+118h+var_D0]
lea r13, [rsp+118h+var_C0]
mov [r13-10h], r13
mov rsi, [r14]
mov rdx, [r14+8]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea r14, [rsp+118h+var_B0]
lea rsi, [rsp+118h+var_60]
mov rdi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EEC2ERKSE_; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::_Rb_tree(std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>> const&)
lea r15, [rsp+118h+var_80]
mov rdi, r15
mov rsi, [rsp+118h+var_F0]
call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)
xorps xmm0, xmm0
movaps [rsp+118h+var_108], xmm0
movaps [rsp+118h+var_118], xmm0
mov edi, 88h; unsigned __int64
call __Znwm; operator new(ulong)
mov r12, rax
lea rsi, [rsp+118h+var_E8]
mov rdi, rax
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
lea rdi, [r12+18h]
lea rbp, [r12+28h]
mov [r12+18h], rbp
mov rsi, [rsp+118h+var_D0]
mov rdx, [rsp+118h+var_C8]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rax, [r12+40h]
mov rcx, [rsp+118h+var_A0]
test rcx, rcx
jz short loc_886D1
lea rdx, [rsp+118h+var_A8]
mov esi, [rdx]
mov [r12+40h], esi
mov [r12+48h], rcx
movups xmm0, xmmword ptr [rdx+10h]
movups xmmword ptr [r12+50h], xmm0
mov [rcx+8], rax
lea rax, [rsp+118h+var_88]
mov rcx, [rax]
mov [r12+60h], rcx
mov qword ptr [rax-18h], 0
mov [rax-10h], rdx
mov [rax-8], rdx
jmp short loc_886F2
loc_886D1:
mov dword ptr [r12+40h], 0
mov qword ptr [r12+48h], 0
mov [r12+50h], rax
mov [r12+58h], rax
lea rax, [r12+60h]
loc_886F2:
mov qword ptr [rax], 0
lea rdi, [r12+68h]
mov rsi, r15
call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)
mov rsi, rsp
mov [rsi], r12
lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E9_M_invokeERKSt9_Any_dataS6_S8__0; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke(std::_Any_data const&,std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E10_M_managerERSt9_Any_dataRKSV_St18_Manager_operation_0; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
mov rbx, [rsp+118h+var_F8]
mov rdi, rbx
call _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE; minja::Value::callable(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&)
mov rax, qword ptr [rsp+118h+var_108]
test rax, rax
jz short loc_88746
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_88746:
mov rax, [rsp+118h+var_70]
test rax, rax
jz short loc_88760
mov rdi, r15
mov rsi, r15
mov edx, 3
call rax
loc_88760:
mov rdi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
mov rdi, [rsp+118h+var_D0]; void *
cmp rdi, r13
jz short loc_8877F
mov rsi, [rsp+118h+var_C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8877F:
lea rdi, [rsp+118h+var_E8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+118h+var_60]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
mov rax, rbx
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp loc_8883F
jmp loc_8883F
mov rbx, rax
mov rax, qword ptr [rsp+118h+var_108]
test rax, rax
jz short loc_88833
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_88833
jmp short loc_8883F
mov rbx, rax
mov rdi, r12
add rdi, 38h ; '8'
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
mov rdi, [r12+18h]; void *
cmp rdi, rbp
jz short loc_887FD
mov rsi, [rbp+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_887FD
mov rbx, rax
loc_887FD:
mov rdi, r12
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_8880A
mov rbx, rax
loc_8880A:
mov esi, 88h; unsigned __int64
mov rdi, r12; void *
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_8881C
mov rbx, rax
loc_8881C:
mov rax, qword ptr [rsp+118h+var_108]
test rax, rax
jz short loc_88833
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_88833:
lea rdi, [rsp+118h+var_E8]
call _ZZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EEEN3$_0D2Ev_0; minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0::~$_0()
jmp short loc_88884
loc_8883F:
mov rdi, rax
call __clang_call_terminate
mov rbx, rax
mov rdi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
jmp short loc_88857
mov rbx, rax
loc_88857:
mov rdi, [rsp+118h+var_D0]; void *
cmp rdi, r13
jz short loc_88873
mov rsi, [rsp+118h+var_C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_88873
mov rbx, rax
loc_88873:
lea rdi, [rsp+118h+var_E8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_88884
jmp short $+2
loc_88881:
mov rbx, rax
loc_88884:
lea rdi, [rsp+118h+var_60]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
mov rdi, rbx
call __Unwind_Resume
| long long minja::simple_function(long long a1, long long a2, _QWORD *a3, long long a4)
{
long long v5; // rbp
long long v6; // rbp
long long v7; // rbx
long long v8; // r12
long long v9; // r12
long long v10; // rax
long long v11; // rcx
long long *v12; // rax
long long v13; // rbx
__int128 v15; // [rsp+0h] [rbp-118h] BYREF
__int128 v16; // [rsp+10h] [rbp-108h]
long long v17; // [rsp+20h] [rbp-F8h]
long long v18; // [rsp+28h] [rbp-F0h]
_QWORD v19[3]; // [rsp+30h] [rbp-E8h] BYREF
void *v20[2]; // [rsp+48h] [rbp-D0h] BYREF
_QWORD v21[2]; // [rsp+58h] [rbp-C0h] BYREF
_BYTE v22[8]; // [rsp+68h] [rbp-B0h] BYREF
int v23; // [rsp+70h] [rbp-A8h] BYREF
long long v24; // [rsp+78h] [rbp-A0h]
__int128 v25; // [rsp+80h] [rbp-98h]
long long v26; // [rsp+90h] [rbp-88h] BYREF
__int128 v27; // [rsp+98h] [rbp-80h] BYREF
void ( *v28)(__int128 *, __int128 *, long long); // [rsp+A8h] [rbp-70h]
_BYTE v29[8]; // [rsp+B8h] [rbp-60h] BYREF
int v30; // [rsp+C0h] [rbp-58h] BYREF
long long v31; // [rsp+C8h] [rbp-50h]
int *v32; // [rsp+D0h] [rbp-48h]
int *v33; // [rsp+D8h] [rbp-40h]
long long v34; // [rsp+E0h] [rbp-38h]
v18 = a4;
v17 = a1;
v30 = 0;
v31 = 0LL;
v32 = &v30;
v33 = &v30;
v34 = 0LL;
v5 = a3[1] - *a3;
if ( v5 )
{
v6 = (v5 >> 5 == 0) + (v5 >> 5);
v7 = 0LL;
v8 = 0LL;
do
{
*(_QWORD *)std::map<std::string,unsigned long>::operator[]((long long)v29, v7 + *a3) = v8++;
v7 += 32LL;
}
while ( v6 != v8 );
}
std::vector<std::string>::vector((long long)v19, a3);
v20[0] = v21;
std::string::_M_construct<char *>(v20, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8));
std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::_Rb_tree(
(long long)v22,
(long long)v29);
std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(&v27, v18);
v16 = 0LL;
v15 = 0LL;
v9 = operator new(0x88uLL);
std::vector<std::string>::vector(v9, v19);
*(_QWORD *)(v9 + 24) = v9 + 40;
std::string::_M_construct<char *>((_QWORD *)(v9 + 24), (_BYTE *)v20[0], (long long)v20[0] + (unsigned long long)v20[1]);
v10 = v9 + 64;
v11 = v24;
if ( v24 )
{
*(_DWORD *)(v9 + 64) = v23;
*(_QWORD *)(v9 + 72) = v11;
*(_OWORD *)(v9 + 80) = v25;
*(_QWORD *)(v11 + 8) = v10;
v12 = &v26;
*(_QWORD *)(v9 + 96) = v26;
v24 = 0LL;
*(_QWORD *)&v25 = &v23;
*((_QWORD *)&v25 + 1) = &v23;
}
else
{
*(_DWORD *)(v9 + 64) = 0;
*(_QWORD *)(v9 + 72) = 0LL;
*(_QWORD *)(v9 + 80) = v10;
*(_QWORD *)(v9 + 88) = v10;
v12 = (long long *)(v9 + 96);
}
*v12 = 0LL;
std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(
(_OWORD *)(v9 + 104),
(long long)&v27);
*(_QWORD *)&v15 = v9;
*((_QWORD *)&v16 + 1) = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke;
*(_QWORD *)&v16 = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager;
v13 = v17;
minja::Value::callable(v17, (long long)&v15);
if ( (_QWORD)v16 )
((void ( *)(__int128 *, __int128 *, long long))v16)(&v15, &v15, 3LL);
if ( v28 )
v28(&v27, &v27, 3LL);
std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree((long long)v22);
if ( v20[0] != v21 )
operator delete(v20[0], v21[0] + 1LL);
std::vector<std::string>::~vector(v19);
std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree((long long)v29);
return v13;
}
| simple_function:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV qword ptr [RSP + 0x28],RCX
MOV R15,RDX
MOV R14,RSI
MOV qword ptr [RSP + 0x20],RDI
LEA RAX,[RSP + 0xc0]
MOV dword ptr [RAX],0x0
XOR ECX,ECX
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RAX + 0x10],RAX
MOV qword ptr [RAX + 0x18],RAX
MOV qword ptr [RAX + 0x20],RCX
MOV RBP,qword ptr [RDX + 0x8]
SUB RBP,qword ptr [RDX]
JZ 0x001885e6
SAR RBP,0x5
CMP RBP,0x1
ADC RBP,0x0
XOR EBX,EBX
LEA R13,[RSP + 0xb8]
XOR R12D,R12D
LAB_001885c9:
MOV RSI,qword ptr [R15]
ADD RSI,RBX
LAB_001885cf:
MOV RDI,R13
CALL 0x00170326
MOV qword ptr [RAX],R12
INC R12
ADD RBX,0x20
CMP RBP,R12
JNZ 0x001885c9
LAB_001885e6:
LEA RDI,[RSP + 0x30]
MOV RSI,R15
CALL 0x00136ae2
LEA RDI,[RSP + 0x48]
LEA R13,[RSP + 0x58]
MOV qword ptr [R13 + -0x10],R13
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
ADD RDX,RSI
LAB_0018860b:
CALL 0x00136780
LEA R14,[RSP + 0x68]
LAB_00188615:
LEA RSI,[RSP + 0xb8]
MOV RDI,R14
CALL 0x00170780
LEA R15,[RSP + 0x98]
LAB_0018862d:
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x28]
CALL 0x001703a2
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVAPS xmmword ptr [RSP],XMM0
LAB_00188646:
MOV EDI,0x88
CALL 0x00118690
LAB_00188650:
MOV R12,RAX
LEA RSI,[RSP + 0x30]
MOV RDI,RAX
CALL 0x00136ae2
LEA RDI,[R12 + 0x18]
LEA RBP,[R12 + 0x28]
MOV qword ptr [R12 + 0x18],RBP
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
ADD RDX,RSI
LAB_0018867c:
CALL 0x00136780
LEA RAX,[R12 + 0x40]
MOV RCX,qword ptr [RSP + 0x78]
TEST RCX,RCX
JZ 0x001886d1
LEA RDX,[RSP + 0x70]
MOV ESI,dword ptr [RDX]
MOV dword ptr [R12 + 0x40],ESI
MOV qword ptr [R12 + 0x48],RCX
MOVUPS XMM0,xmmword ptr [RDX + 0x10]
MOVUPS xmmword ptr [R12 + 0x50],XMM0
MOV qword ptr [RCX + 0x8],RAX
LEA RAX,[RSP + 0x90]
MOV RCX,qword ptr [RAX]
MOV qword ptr [R12 + 0x60],RCX
MOV qword ptr [RAX + -0x18],0x0
MOV qword ptr [RAX + -0x10],RDX
MOV qword ptr [RAX + -0x8],RDX
JMP 0x001886f2
LAB_001886d1:
MOV dword ptr [R12 + 0x40],0x0
MOV qword ptr [R12 + 0x48],0x0
MOV qword ptr [R12 + 0x50],RAX
MOV qword ptr [R12 + 0x58],RAX
LEA RAX,[R12 + 0x60]
LAB_001886f2:
MOV qword ptr [RAX],0x0
LEA RDI,[R12 + 0x68]
LAB_001886fe:
MOV RSI,R15
CALL 0x001703a2
MOV RSI,RSP
MOV qword ptr [RSI],R12
LEA RAX,[0x1888e8]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x188f84]
MOV qword ptr [RSI + 0x10],RAX
LAB_00188722:
MOV RBX,qword ptr [RSP + 0x20]
MOV RDI,RBX
CALL 0x001577d2
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x00188746
LAB_00188739:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00188746:
MOV RAX,qword ptr [RSP + 0xa8]
TEST RAX,RAX
JZ 0x00188760
LAB_00188753:
MOV RDI,R15
MOV RSI,R15
MOV EDX,0x3
CALL RAX
LAB_00188760:
MOV RDI,R14
CALL 0x001709e2
MOV RDI,qword ptr [RSP + 0x48]
CMP RDI,R13
JZ 0x0018877f
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x001186a0
LAB_0018877f:
LEA RDI,[RSP + 0x30]
CALL 0x001247b8
LEA RDI,[RSP + 0xb8]
CALL 0x001709e2
MOV RAX,RBX
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::simple_function(std::__cxx11::string const&, std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > > const&, std::function<minja::Value
(std::shared_ptr<minja::Context> const&, minja::Value&)> const&) */
Value * __thiscall
minja::simple_function(minja *this,string *param_1,vector *param_2,function *param_3)
{
minja *pmVar1;
long *plVar2;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *this_00;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar3;
long lVar4;
long lVar5;
long lVar6;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_118;
int8 uStack_110;
code *local_108;
code *pcStack_100;
minja *local_f8;
function *local_f0;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_e8 [24];
long *local_d0;
long local_c8;
long local_c0 [2];
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
local_b0 [8];
int4 local_a8 [2];
long local_a0;
int4 *local_98;
int4 *puStack_90;
int8 local_88;
function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)> local_80 [16];
code *local_70;
map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
local_60 [8];
int4 local_58 [2];
int8 local_50;
int4 *local_48;
int4 *local_40;
int8 local_38;
local_48 = local_58;
local_58[0] = 0;
local_50 = 0;
local_38 = 0;
local_f8 = this;
local_f0 = param_3;
local_40 = local_48;
if (*(long *)(param_2 + 8) - *(long *)param_2 != 0) {
lVar5 = *(long *)(param_2 + 8) - *(long *)param_2 >> 5;
lVar4 = 0;
lVar6 = 0;
do {
/* try { // try from 001885cf to 001885d6 has its CatchHandler @ 00188881 */
plVar2 = (long *)std::
map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::operator[](local_60,(string *)(*(long *)param_2 + lVar4));
*plVar2 = lVar6;
lVar6 = lVar6 + 1;
lVar4 = lVar4 + 0x20;
} while (lVar5 + (ulong)(lVar5 == 0) != lVar6);
}
/* try { // try from 001885e6 to 001885f2 has its CatchHandler @ 0018887f */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(local_e8,param_2);
local_d0 = local_c0;
/* try { // try from 0018860b to 0018860f has its CatchHandler @ 00188870 */
std::__cxx11::string::_M_construct<char*>
(&local_d0,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);
/* try { // try from 00188615 to 00188624 has its CatchHandler @ 00188854 */
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::_Rb_tree(local_b0,(_Rb_tree *)local_60);
/* try { // try from 0018862d to 00188639 has its CatchHandler @ 00188847 */
std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>::function
(local_80,local_f0);
local_108 = (code *)0x0;
pcStack_100 = (code *)0x0;
local_118 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)0x0;
uStack_110 = 0;
/* try { // try from 00188646 to 0018864f has its CatchHandler @ 00188819 */
this_00 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)operator_new(0x88);
/* try { // try from 00188650 to 0018865f has its CatchHandler @ 00188807 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
(this_00,(vector *)local_e8);
*(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x18) =
this_00 + 0x28;
/* try { // try from 0018867c to 00188680 has its CatchHandler @ 001887fa */
std::__cxx11::string::_M_construct<char*>(this_00 + 0x18,local_d0,local_c8 + (long)local_d0);
pvVar3 = this_00 + 0x40;
if (local_a0 == 0) {
*(int4 *)(this_00 + 0x40) = 0;
*(int8 *)(this_00 + 0x48) = 0;
*(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x50) = pvVar3
;
*(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x58) = pvVar3
;
pvVar3 = this_00 + 0x60;
}
else {
*(int4 *)(this_00 + 0x40) = local_a8[0];
*(long *)(this_00 + 0x48) = local_a0;
*(int4 **)(this_00 + 0x50) = local_98;
*(int4 **)(this_00 + 0x58) = puStack_90;
*(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(local_a0 + 8) = pvVar3;
pvVar3 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_88;
*(int8 *)(this_00 + 0x60) = local_88;
local_a0 = 0;
local_98 = local_a8;
puStack_90 = local_a8;
}
*(int8 *)pvVar3 = 0;
/* try { // try from 001886fe to 00188705 has its CatchHandler @ 001887d3 */
std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>::function
((function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)> *)
(this_00 + 0x68),local_80);
pmVar1 = local_f8;
pcStack_100 = std::
_Function_handler<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&),minja::simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)::$_0>
::_M_invoke;
local_108 = std::
_Function_handler<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&),minja::simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)::$_0>
::_M_manager;
local_118 = this_00;
/* try { // try from 00188722 to 0018872e has its CatchHandler @ 001887b5 */
Value::callable((Value *)local_f8,(function *)&local_118);
if (local_108 != (code *)0x0) {
/* try { // try from 00188739 to 00188745 has its CatchHandler @ 001887b0 */
(*local_108)(&local_118,&local_118,3);
}
if (local_70 != (code *)0x0) {
/* try { // try from 00188753 to 0018875f has its CatchHandler @ 001887ab */
(*local_70)(local_80,local_80,3);
}
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::~_Rb_tree(local_b0);
if (local_d0 != local_c0) {
operator_delete(local_d0,local_c0[0] + 1);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_e8);
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
*)local_60);
return (Value *)pmVar1;
}
| |
55,017 | minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&) | monkey531[P]llama/common/minja.hpp | static Value simple_function(const std::string & fn_name, const std::vector<std::string> & params, const std::function<Value(const std::shared_ptr<Context> &, Value & args)> & fn) {
std::map<std::string, size_t> named_positions;
for (size_t i = 0, n = params.size(); i < n; i++) named_positions[params[i]] = i;
return Value::callable([=](const std::shared_ptr<Context> & context, ArgumentsValue & args) -> Value {
auto args_obj = Value::object();
std::vector<bool> provided_args(params.size());
for (size_t i = 0, n = args.args.size(); i < n; i++) {
auto & arg = args.args[i];
if (i < params.size()) {
args_obj.set(params[i], arg);
provided_args[i] = true;
} else {
throw std::runtime_error("Too many positional params for " + fn_name);
}
}
for (auto & [name, value] : args.kwargs) {
auto named_pos_it = named_positions.find(name);
if (named_pos_it == named_positions.end()) {
throw std::runtime_error("Unknown argument " + name + " for function " + fn_name);
}
provided_args[named_pos_it->second] = true;
args_obj.set(name, value);
}
return fn(context, args_obj);
});
} | O2 | cpp | minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rcx, 0x8(%rsp)
movq %rdx, %r15
movq %rsi, %r12
leaq 0x38(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
movq %rdi, (%rsp)
movq 0x8(%rdx), %rbp
subq (%rdx), %rbp
sarq $0x5, %rbp
xorl %ebx, %ebx
leaq 0x30(%rsp), %r13
xorl %r14d, %r14d
cmpq %r14, %rbp
je 0x27cd8
movq (%r15), %rsi
addq %rbx, %rsi
movq %r13, %rdi
callq 0x634a0
movq %r14, (%rax)
incq %r14
addq $0x20, %rbx
jmp 0x27cb9
leaq 0x60(%rsp), %rdi
movq %r15, %rsi
callq 0x36716
leaq 0x78(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x20910
leaq 0x98(%rsp), %r13
leaq 0x30(%rsp), %rsi
movq %r13, %rdi
callq 0x638ea
leaq 0xc8(%rsp), %r12
movq %r12, %rdi
movq 0x8(%rsp), %rsi
callq 0x63506
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movl $0x88, %edi
callq 0x206b0
movq %rax, %r14
leaq 0x60(%rsp), %rsi
movq %rax, %rdi
callq 0x36716
leaq 0x18(%r14), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x20910
leaq 0x40(%r14), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x63b60
leaq 0x68(%r14), %rdi
movq %r12, %rsi
callq 0x63506
leaq 0x10(%rsp), %rsi
movq %r14, (%rsi)
leaq 0x109(%rip), %rax # 0x27e8a
movq %rax, 0x18(%rsi)
leaq 0x42c(%rip), %rax # 0x281b8
movq %rax, 0x10(%rsi)
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x51788
leaq 0x10(%rsp), %rdi
callq 0x633c0
leaq 0x60(%rsp), %rdi
callq 0x27e62
leaq 0x30(%rsp), %rdi
callq 0x63b4c
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x27e09
movq %rax, %rbx
movq %r14, %rdi
addq $0x38, %rdi
callq 0x63b4c
movq %r13, %rdi
callq 0x20d88
jmp 0x27ded
movq %rax, %rbx
movq %r14, %rdi
callq 0x28432
jmp 0x27dfa
movq %rax, %rbx
movl $0x88, %esi
movq %r14, %rdi
callq 0x206c0
jmp 0x27e0c
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x633c0
leaq 0x60(%rsp), %rdi
callq 0x27e62
jmp 0x27e50
movq %rax, %rbx
movq %r13, %rdi
callq 0x63b4c
jmp 0x27e32
movq %rax, %rbx
movq %r15, %rdi
callq 0x20d88
jmp 0x27e3f
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x28432
jmp 0x27e50
jmp 0x27e4d
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x63b4c
movq %rbx, %rdi
callq 0x20ba0
| _ZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov [rsp+118h+var_110], rcx
mov r15, rdx
mov r12, rsi
lea rax, [rsp+118h+var_E0]
and dword ptr [rax], 0
and qword ptr [rax+8], 0
mov [rax+10h], rax
mov [rax+18h], rax
and qword ptr [rax+20h], 0
mov [rsp+118h+var_118], rdi
mov rbp, [rdx+8]
sub rbp, [rdx]
sar rbp, 5
xor ebx, ebx
lea r13, [rsp+118h+var_E8]
xor r14d, r14d
loc_27CB9:
cmp rbp, r14
jz short loc_27CD8
mov rsi, [r15]
add rsi, rbx
mov rdi, r13
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEEixERS9_; std::map<std::string,ulong>::operator[](std::string const&)
mov [rax], r14
inc r14
add rbx, 20h ; ' '
jmp short loc_27CB9
loc_27CD8:
lea rdi, [rsp+118h+var_B8]
mov rsi, r15
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
lea r15, [rsp+118h+var_A0]
mov rdi, r15
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
lea r13, [rsp+118h+var_80]
lea rsi, [rsp+118h+var_E8]
mov rdi, r13
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EEC2ERKSE_; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::_Rb_tree(std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>> const&)
lea r12, [rsp+118h+var_50]
mov rdi, r12
mov rsi, [rsp+118h+var_110]
call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)
xorps xmm0, xmm0
movaps [rsp+118h+var_F8], xmm0
movaps [rsp+118h+var_108], xmm0
mov edi, 88h; unsigned __int64
call __Znwm; operator new(ulong)
mov r14, rax
lea rsi, [rsp+118h+var_B8]
mov rdi, rax
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
lea r13, [r14+18h]
mov rdi, r13
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
lea rdi, [r14+40h]
lea rsi, [rsp+118h+var_78]
call _ZNSt15_Rb_tree_headerC2EOS_; std::_Rb_tree_header::_Rb_tree_header(std::_Rb_tree_header&&)
lea rdi, [r14+68h]
mov rsi, r12
call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)
lea rsi, [rsp+118h+var_108]
mov [rsi], r14
lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E9_M_invokeERKSt9_Any_dataS6_S8_; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke(std::_Any_data const&,std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E10_M_managerERSt9_Any_dataRKSV_St18_Manager_operation; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
mov rbx, [rsp+118h+var_118]
mov rdi, rbx
call _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE; minja::Value::callable(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&)
lea rdi, [rsp+118h+var_108]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
lea rdi, [rsp+118h+var_B8]
call _ZZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EEEN3$_0D2Ev; minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0::~$_0()
lea rdi, [rsp+118h+var_E8]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
mov rax, rbx
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_27E09
mov rbx, rax
mov rdi, r14
add rdi, 38h ; '8'
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
mov rdi, r13; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_27DED
mov rbx, rax
loc_27DED:
mov rdi, r14
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_27DFA
mov rbx, rax
loc_27DFA:
mov esi, 88h; unsigned __int64
mov rdi, r14; void *
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_27E0C
loc_27E09:
mov rbx, rax
loc_27E0C:
lea rdi, [rsp+arg_8]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
lea rdi, [rsp+arg_58]
call _ZZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EEEN3$_0D2Ev; minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0::~$_0()
jmp short loc_27E50
mov rbx, rax
mov rdi, r13
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
jmp short loc_27E32
mov rbx, rax
loc_27E32:
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_27E3F
mov rbx, rax
loc_27E3F:
lea rdi, [rsp+arg_58]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_27E50
jmp short $+2
loc_27E4D:
mov rbx, rax
loc_27E50:
lea rdi, [rsp+arg_28]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
mov rdi, rbx
call __Unwind_Resume
| long long minja::simple_function(long long a1, long long a2, _QWORD *a3, long long a4)
{
long long v5; // rbp
long long v6; // rbx
long long i; // r14
long long v8; // r14
int v9; // edx
int v10; // ecx
int v11; // r8d
int v12; // r9d
__int128 v15; // [rsp+10h] [rbp-108h] BYREF
long long ( *v16)(); // [rsp+20h] [rbp-F8h]
long long ( *v17)(); // [rsp+28h] [rbp-F0h]
_BYTE v18[8]; // [rsp+30h] [rbp-E8h] BYREF
int v19; // [rsp+38h] [rbp-E0h] BYREF
long long v20; // [rsp+40h] [rbp-D8h]
int *v21; // [rsp+48h] [rbp-D0h]
int *v22; // [rsp+50h] [rbp-C8h]
long long v23; // [rsp+58h] [rbp-C0h]
_BYTE v24[24]; // [rsp+60h] [rbp-B8h] BYREF
_BYTE v25[32]; // [rsp+78h] [rbp-A0h] BYREF
_BYTE v26[8]; // [rsp+98h] [rbp-80h] BYREF
_BYTE v27[40]; // [rsp+A0h] [rbp-78h] BYREF
_BYTE v28[80]; // [rsp+C8h] [rbp-50h] BYREF
v19 = 0;
v20 = 0LL;
v21 = &v19;
v22 = &v19;
v23 = 0LL;
v5 = (long long)(a3[1] - *a3) >> 5;
v6 = 0LL;
for ( i = 0LL; v5 != i; ++i )
{
*(_QWORD *)std::map<std::string,unsigned long>::operator[](v18, v6 + *a3) = i;
v6 += 32LL;
}
std::vector<std::string>::vector(v24, a3);
std::string::basic_string(v25, a2);
std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::_Rb_tree(
v26,
v18);
std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(v28, a4);
v15 = 0LL;
v8 = operator new(0x88uLL);
std::vector<std::string>::vector(v8, v24);
std::string::basic_string(v8 + 24, v25);
std::_Rb_tree_header::_Rb_tree_header(v8 + 64, v27);
std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(v8 + 104, v28);
*(_QWORD *)&v15 = v8;
v17 = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke;
v16 = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager;
minja::Value::callable(a1, (unsigned int)&v15, v9, v10, v11, v12, a1, a4);
std::_Function_base::~_Function_base((std::_Function_base *)&v15);
minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0::~$_0(v24);
std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree(v18);
return a1;
}
| simple_function:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV qword ptr [RSP + 0x8],RCX
MOV R15,RDX
MOV R12,RSI
LEA RAX,[RSP + 0x38]
AND dword ptr [RAX],0x0
AND qword ptr [RAX + 0x8],0x0
MOV qword ptr [RAX + 0x10],RAX
MOV qword ptr [RAX + 0x18],RAX
AND qword ptr [RAX + 0x20],0x0
MOV qword ptr [RSP],RDI
MOV RBP,qword ptr [RDX + 0x8]
SUB RBP,qword ptr [RDX]
SAR RBP,0x5
XOR EBX,EBX
LEA R13,[RSP + 0x30]
XOR R14D,R14D
LAB_00127cb9:
CMP RBP,R14
JZ 0x00127cd8
MOV RSI,qword ptr [R15]
ADD RSI,RBX
LAB_00127cc4:
MOV RDI,R13
CALL 0x001634a0
MOV qword ptr [RAX],R14
INC R14
ADD RBX,0x20
JMP 0x00127cb9
LAB_00127cd8:
LEA RDI,[RSP + 0x60]
MOV RSI,R15
CALL 0x00136716
LEA R15,[RSP + 0x78]
LAB_00127cea:
MOV RDI,R15
MOV RSI,R12
CALL 0x00120910
LEA R13,[RSP + 0x98]
LAB_00127cfd:
LEA RSI,[RSP + 0x30]
MOV RDI,R13
CALL 0x001638ea
LEA R12,[RSP + 0xc8]
LAB_00127d12:
MOV RDI,R12
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x00163506
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
LAB_00127d2c:
MOV EDI,0x88
CALL 0x001206b0
LAB_00127d36:
MOV R14,RAX
LEA RSI,[RSP + 0x60]
MOV RDI,RAX
CALL 0x00136716
LEA R13,[R14 + 0x18]
LAB_00127d4a:
MOV RDI,R13
MOV RSI,R15
CALL 0x00120910
LEA RDI,[R14 + 0x40]
LEA RSI,[RSP + 0xa0]
CALL 0x00163b60
LEA RDI,[R14 + 0x68]
LAB_00127d6a:
MOV RSI,R12
CALL 0x00163506
LEA RSI,[RSP + 0x10]
MOV qword ptr [RSI],R14
LEA RAX,[0x127e8a]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x1281b8]
MOV qword ptr [RSI + 0x10],RAX
LAB_00127d90:
MOV RBX,qword ptr [RSP]
MOV RDI,RBX
CALL 0x00151788
LAB_00127d9c:
LEA RDI,[RSP + 0x10]
CALL 0x001633c0
LEA RDI,[RSP + 0x60]
CALL 0x00127e62
LEA RDI,[RSP + 0x30]
CALL 0x00163b4c
MOV RAX,RBX
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::simple_function(std::__cxx11::string const&, std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > > const&, std::function<minja::Value
(std::shared_ptr<minja::Context> const&, minja::Value&)> const&) */
minja * __thiscall
minja::simple_function(minja *this,string *param_1,vector *param_2,function *param_3)
{
long lVar1;
long lVar2;
long *plVar3;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *this_00;
long lVar4;
long lVar5;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_108;
int8 uStack_100;
code *local_f8;
code *pcStack_f0;
map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
local_e8 [8];
int4 local_e0 [2];
int8 local_d8;
int4 *local_d0;
int4 *local_c8;
int8 local_c0;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_b8 [24];
string local_a0 [32];
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
local_80 [8];
_Rb_tree_header local_78 [40];
function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)> local_50 [32];
local_d0 = local_e0;
local_e0[0] = 0;
local_d8 = 0;
local_c0 = 0;
lVar1 = *(long *)(param_2 + 8);
lVar2 = *(long *)param_2;
lVar4 = 0;
local_c8 = local_d0;
for (lVar5 = 0; lVar1 - lVar2 >> 5 != lVar5; lVar5 = lVar5 + 1) {
/* try { // try from 00127cc4 to 00127ccb has its CatchHandler @ 00127e4d */
plVar3 = (long *)std::
map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::operator[](local_e8,(string *)(*(long *)param_2 + lVar4));
*plVar3 = lVar5;
lVar4 = lVar4 + 0x20;
}
/* try { // try from 00127cd8 to 00127ce4 has its CatchHandler @ 00127e4b */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(local_b8,param_2);
/* try { // try from 00127cea to 00127cf4 has its CatchHandler @ 00127e3c */
std::__cxx11::string::string(local_a0,param_1);
/* try { // try from 00127cfd to 00127d09 has its CatchHandler @ 00127e2f */
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::_Rb_tree(local_80,(_Rb_tree *)local_e8);
/* try { // try from 00127d12 to 00127d1e has its CatchHandler @ 00127e22 */
std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>::function
(local_50,param_3);
local_f8 = (code *)0x0;
pcStack_f0 = (code *)0x0;
local_108 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)0x0;
uStack_100 = 0;
/* try { // try from 00127d2c to 00127d35 has its CatchHandler @ 00127e09 */
this_00 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)operator_new(0x88);
/* try { // try from 00127d36 to 00127d45 has its CatchHandler @ 00127df7 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
(this_00,(vector *)local_b8);
/* try { // try from 00127d4a to 00127d54 has its CatchHandler @ 00127dea */
std::__cxx11::string::string((string *)(this_00 + 0x18),local_a0);
std::_Rb_tree_header::_Rb_tree_header((_Rb_tree_header *)(this_00 + 0x40),local_78);
/* try { // try from 00127d6a to 00127d71 has its CatchHandler @ 00127dd1 */
std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>::function
((function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)> *)
(this_00 + 0x68),(function *)local_50);
pcStack_f0 = std::
_Function_handler<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&),minja::simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)::$_0>
::_M_invoke;
local_f8 = std::
_Function_handler<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&),minja::simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)::$_0>
::_M_manager;
local_108 = this_00;
/* try { // try from 00127d90 to 00127d9b has its CatchHandler @ 00127dcf */
Value::callable((function *)this);
std::_Function_base::~_Function_base((_Function_base *)&local_108);
simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)
::$_0::~__0((__0 *)local_b8);
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
*)local_e8);
return this;
}
| |
55,018 | flush_cached_blocks | eloqsql/storage/maria/ma_pagecache.c | static int flush_cached_blocks(PAGECACHE *pagecache,
PAGECACHE_FILE *file,
PAGECACHE_BLOCK_LINK **cache,
PAGECACHE_BLOCK_LINK **end,
enum flush_type type,
int *first_errno)
{
int rc= PCFLUSH_OK;
my_bool error;
uint count= (uint) (end-cache);
DBUG_ENTER("flush_cached_blocks");
*first_errno= 0;
/* Don't lock the cache during the flush */
pagecache_pthread_mutex_unlock(&pagecache->cache_lock);
/*
As all blocks referred in 'cache' are marked by PCBLOCK_IN_FLUSH
we are guaranteed that no thread will change them
*/
qsort((uchar*) cache, count, sizeof(*cache), (qsort_cmp) cmp_sec_link);
pagecache_pthread_mutex_lock(&pagecache->cache_lock);
for (; cache != end; cache++)
{
PAGECACHE_BLOCK_LINK *block= *cache;
/*
In the case of non_transactional tables we want to flush also
block pinned with reads. This is becasue we may have other
threads reading the block during flush, as non transactional
tables can have many readers while the one writer is doing the
flush.
We don't want to do flush pinned blocks during checkpoint.
We detect the checkpoint case by checking if type is LAZY.
*/
if ((type == FLUSH_KEEP_LAZY && block->pins) || block->wlocks)
{
KEYCACHE_DBUG_PRINT("flush_cached_blocks",
("block: %u (%p) pinned",
PCBLOCK_NUMBER(pagecache, block), block));
DBUG_PRINT("info", ("block: %u (%p) pinned",
PCBLOCK_NUMBER(pagecache, block), block));
PCBLOCK_INFO(block);
/* undo the mark put by flush_pagecache_blocks_int(): */
block->status&= ~PCBLOCK_IN_FLUSH;
rc|= PCFLUSH_PINNED;
DBUG_PRINT("warning", ("Page pinned"));
unreg_request(pagecache, block, 1);
if (!*first_errno)
*first_errno= HA_ERR_INTERNAL_ERROR;
continue;
}
if (make_lock_and_pin(pagecache, block,
PAGECACHE_LOCK_READ, PAGECACHE_PIN, FALSE))
DBUG_ASSERT(0);
KEYCACHE_PRINT("flush_cached_blocks",
("block: %u (%p) to be flushed",
PCBLOCK_NUMBER(pagecache, block), block));
DBUG_PRINT("info", ("block: %u (%p) to be flushed",
PCBLOCK_NUMBER(pagecache, block), block));
PCBLOCK_INFO(block);
/**
@todo IO If page is contiguous with next page to flush, group flushes
in one single my_pwrite().
*/
/**
It is important to use block->hash_link->file below and not 'file', as
the first one is right and the second may have different out-of-date
content (see StaleFilePointersInFlush in ma_checkpoint.c).
@todo change argument of functions to be File.
*/
pagecache_pthread_mutex_unlock(&pagecache->cache_lock);
error= pagecache_fwrite(pagecache, &block->hash_link->file,
block->buffer,
block->hash_link->pageno,
block->type,
pagecache->readwrite_flags);
pagecache_pthread_mutex_lock(&pagecache->cache_lock);
if (make_lock_and_pin(pagecache, block,
PAGECACHE_LOCK_READ_UNLOCK,
PAGECACHE_UNPIN, FALSE))
DBUG_ASSERT(0);
pagecache->global_cache_write++;
if (error)
{
block->status|= PCBLOCK_ERROR;
block->error= (int16) my_errno;
my_debug_put_break_here();
if (!*first_errno)
*first_errno= my_errno ? my_errno : -1;
rc|= PCFLUSH_ERROR;
}
/*
Let to proceed for possible waiting requests to write to the block page.
It might happen only during an operation to resize the key cache.
*/
if (block->wqueue[COND_FOR_SAVED].last_thread)
wqueue_release_queue(&block->wqueue[COND_FOR_SAVED]);
/* type will never be FLUSH_IGNORE_CHANGED here */
if (! (type == FLUSH_KEEP || type == FLUSH_KEEP_LAZY ||
type == FLUSH_FORCE_WRITE))
{
if (!free_block(pagecache, block, 1))
{
pagecache->blocks_changed--;
pagecache->global_blocks_changed--;
}
else
{
block->status&= ~PCBLOCK_IN_FLUSH;
link_to_file_list(pagecache, block, file, 1);
}
}
else
{
block->status&= ~PCBLOCK_IN_FLUSH;
link_to_file_list(pagecache, block, file, 1);
unreg_request(pagecache, block, 1);
}
}
DBUG_RETURN(rc);
} | O0 | c | flush_cached_blocks:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
sarq $0x3, %rax
movl %eax, -0x3c(%rbp)
movq -0x30(%rbp), %rax
movl $0x0, (%rax)
movq -0x8(%rbp), %rdi
addq $0xc8, %rdi
callq 0x2d8c0
movq -0x18(%rbp), %rdi
movl -0x3c(%rbp), %eax
movl %eax, %esi
movl $0x8, %edx
leaq 0x2c8(%rip), %rcx # 0x32d10
callq 0x2a590
movq -0x8(%rbp), %rdi
addq $0xc8, %rdi
leaq 0x11fcad(%rip), %rsi # 0x15270c
movl $0x12a3, %edx # imm = 0x12A3
callq 0x2d850
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0x32cfe
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
cmpl $0x4, -0x24(%rbp)
jne 0x32a92
movq -0x48(%rbp), %rax
cmpl $0x0, 0x64(%rax)
jne 0x32a9c
movq -0x48(%rbp), %rax
cmpl $0x0, 0x68(%rax)
je 0x32aec
jmp 0x32a9e
jmp 0x32aa0
jmp 0x32aa2
jmp 0x32aa4
jmp 0x32aa6
jmp 0x32aa8
movq -0x48(%rbp), %rax
movzwl 0x74(%rax), %ecx
andl $-0x11, %ecx
movw %cx, 0x74(%rax)
movl -0x34(%rbp), %eax
orl $0x2, %eax
movl %eax, -0x34(%rbp)
jmp 0x32ac2
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl $0x1, %edx
callq 0x2e7b0
movq -0x30(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x32ae7
movq -0x30(%rbp), %rax
movl $0x7a, (%rax)
jmp 0x32ced
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl $0x3, %edx
movl $0x2, %ecx
xorl %r8d, %r8d
callq 0x2e610
cmpb $0x0, %al
je 0x32b10
jmp 0x32b0c
jmp 0x32b0e
jmp 0x32b10
jmp 0x32b12
jmp 0x32b14
jmp 0x32b16
jmp 0x32b18
movq -0x8(%rbp), %rdi
addq $0xc8, %rdi
callq 0x2d8c0
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rsi
addq $0x18, %rsi
movq -0x48(%rbp), %rax
movq 0x30(%rax), %rdx
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x60(%rax), %rcx
movq -0x48(%rbp), %rax
movl 0x7c(%rax), %r8d
movq -0x8(%rbp), %rax
movq 0x198(%rax), %r9
callq 0x30a60
movb %al, -0x35(%rbp)
movq -0x8(%rbp), %rdi
addq $0xc8, %rdi
leaq 0x11fb93(%rip), %rsi # 0x15270c
movl $0x12dd, %edx # imm = 0x12DD
callq 0x2d850
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl $0x5, %edx
movl $0x3, %ecx
xorl %r8d, %r8d
callq 0x2e610
cmpb $0x0, %al
je 0x32ba7
jmp 0x32ba3
jmp 0x32ba5
jmp 0x32ba7
movq -0x8(%rbp), %rax
movq 0x178(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x178(%rax)
cmpb $0x0, -0x35(%rbp)
je 0x32c21
movq -0x48(%rbp), %rax
movzwl 0x74(%rax), %ecx
orl $0x1, %ecx
movw %cx, 0x74(%rax)
callq 0xf7440
movl (%rax), %eax
movw %ax, %cx
movq -0x48(%rbp), %rax
movw %cx, 0x76(%rax)
jmp 0x32be6
movq -0x30(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x32c18
callq 0xf7440
cmpl $0x0, (%rax)
je 0x32c05
callq 0xf7440
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
jmp 0x32c0f
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movl %eax, -0x4c(%rbp)
jmp 0x32c0f
movl -0x4c(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
movl -0x34(%rbp), %eax
orl $0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x48(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x32c3d
movq -0x48(%rbp), %rdi
addq $0x48, %rdi
addq $0x8, %rdi
callq 0x100aa0
cmpl $0x0, -0x24(%rbp)
je 0x32cb4
cmpl $0x4, -0x24(%rbp)
je 0x32cb4
cmpl $0x3, -0x24(%rbp)
je 0x32cb4
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl $0x1, %edx
callq 0x31dc0
cmpb $0x0, %al
jne 0x32c8d
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x58(%rax)
movq -0x8(%rbp), %rax
movq 0x168(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x168(%rax)
jmp 0x32cb2
movq -0x48(%rbp), %rax
movzwl 0x74(%rax), %ecx
andl $-0x11, %ecx
movw %cx, 0x74(%rax)
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl $0x1, %ecx
callq 0x32020
jmp 0x32ceb
movq -0x48(%rbp), %rax
movzwl 0x74(%rax), %ecx
andl $-0x11, %ecx
movw %cx, 0x74(%rax)
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl $0x1, %ecx
callq 0x32020
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl $0x1, %edx
callq 0x2e7b0
jmp 0x32ced
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
jmp 0x32a69
jmp 0x32d00
movl -0x34(%rbp), %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nop
| flush_cached_blocks:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov [rbp+var_30], r9
mov [rbp+var_34], 0
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
sub rax, rcx
sar rax, 3
mov [rbp+var_3C], eax
mov rax, [rbp+var_30]
mov dword ptr [rax], 0
mov rdi, [rbp+var_8]
add rdi, 0C8h
call inline_mysql_mutex_unlock
mov rdi, [rbp+var_18]
mov eax, [rbp+var_3C]
mov esi, eax
mov edx, 8
lea rcx, cmp_sec_link
call _qsort
mov rdi, [rbp+var_8]
add rdi, 0C8h
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 12A3h
call inline_mysql_mutex_lock
loc_32A69:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jz loc_32CFE
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_48], rax
cmp [rbp+var_24], 4
jnz short loc_32A92
mov rax, [rbp+var_48]
cmp dword ptr [rax+64h], 0
jnz short loc_32A9C
loc_32A92:
mov rax, [rbp+var_48]
cmp dword ptr [rax+68h], 0
jz short loc_32AEC
loc_32A9C:
jmp short $+2
loc_32A9E:
jmp short $+2
loc_32AA0:
jmp short $+2
loc_32AA2:
jmp short $+2
loc_32AA4:
jmp short $+2
loc_32AA6:
jmp short $+2
loc_32AA8:
mov rax, [rbp+var_48]
movzx ecx, word ptr [rax+74h]
and ecx, 0FFFFFFEFh
mov [rax+74h], cx
mov eax, [rbp+var_34]
or eax, 2
mov [rbp+var_34], eax
jmp short $+2
loc_32AC2:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_48]
mov edx, 1
call unreg_request
mov rax, [rbp+var_30]
cmp dword ptr [rax], 0
jnz short loc_32AE7
mov rax, [rbp+var_30]
mov dword ptr [rax], 7Ah ; 'z'
loc_32AE7:
jmp loc_32CED
loc_32AEC:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_48]
mov edx, 3
mov ecx, 2
xor r8d, r8d
call make_lock_and_pin
cmp al, 0
jz short loc_32B10
jmp short $+2
loc_32B0C:
jmp short $+2
loc_32B0E:
jmp short $+2
loc_32B10:
jmp short $+2
loc_32B12:
jmp short $+2
loc_32B14:
jmp short $+2
loc_32B16:
jmp short $+2
loc_32B18:
mov rdi, [rbp+var_8]
add rdi, 0C8h
call inline_mysql_mutex_unlock
mov rdi, [rbp+var_8]
mov rax, [rbp+var_48]
mov rsi, [rax+20h]
add rsi, 18h
mov rax, [rbp+var_48]
mov rdx, [rax+30h]
mov rax, [rbp+var_48]
mov rax, [rax+20h]
mov rcx, [rax+60h]
mov rax, [rbp+var_48]
mov r8d, [rax+7Ch]
mov rax, [rbp+var_8]
mov r9, [rax+198h]
call pagecache_fwrite
mov [rbp+var_35], al
mov rdi, [rbp+var_8]
add rdi, 0C8h
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 12DDh
call inline_mysql_mutex_lock
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_48]
mov edx, 5
mov ecx, 3
xor r8d, r8d
call make_lock_and_pin
cmp al, 0
jz short loc_32BA7
jmp short $+2
loc_32BA3:
jmp short $+2
loc_32BA5:
jmp short $+2
loc_32BA7:
mov rax, [rbp+var_8]
mov rcx, [rax+178h]
add rcx, 1
mov [rax+178h], rcx
cmp [rbp+var_35], 0
jz short loc_32C21
mov rax, [rbp+var_48]
movzx ecx, word ptr [rax+74h]
or ecx, 1
mov [rax+74h], cx
call _my_thread_var
mov eax, [rax]
mov cx, ax
mov rax, [rbp+var_48]
mov [rax+76h], cx
jmp short $+2
loc_32BE6:
mov rax, [rbp+var_30]
cmp dword ptr [rax], 0
jnz short loc_32C18
call _my_thread_var
cmp dword ptr [rax], 0
jz short loc_32C05
call _my_thread_var
mov eax, [rax]
mov [rbp+var_4C], eax
jmp short loc_32C0F
loc_32C05:
mov eax, 0FFFFFFFFh
mov [rbp+var_4C], eax
jmp short $+2
loc_32C0F:
mov ecx, [rbp+var_4C]
mov rax, [rbp+var_30]
mov [rax], ecx
loc_32C18:
mov eax, [rbp+var_34]
or eax, 1
mov [rbp+var_34], eax
loc_32C21:
mov rax, [rbp+var_48]
cmp qword ptr [rax+50h], 0
jz short loc_32C3D
mov rdi, [rbp+var_48]
add rdi, 48h ; 'H'
add rdi, 8
call wqueue_release_queue
loc_32C3D:
cmp [rbp+var_24], 0
jz short loc_32CB4
cmp [rbp+var_24], 4
jz short loc_32CB4
cmp [rbp+var_24], 3
jz short loc_32CB4
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_48]
mov edx, 1
call free_block
cmp al, 0
jnz short loc_32C8D
mov rax, [rbp+var_8]
mov rcx, [rax+58h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+58h], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+168h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+168h], rcx
jmp short loc_32CB2
loc_32C8D:
mov rax, [rbp+var_48]
movzx ecx, word ptr [rax+74h]
and ecx, 0FFFFFFEFh
mov [rax+74h], cx
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_10]
mov ecx, 1
call link_to_file_list
loc_32CB2:
jmp short loc_32CEB
loc_32CB4:
mov rax, [rbp+var_48]
movzx ecx, word ptr [rax+74h]
and ecx, 0FFFFFFEFh
mov [rax+74h], cx
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_10]
mov ecx, 1
call link_to_file_list
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_48]
mov edx, 1
call unreg_request
loc_32CEB:
jmp short $+2
loc_32CED:
mov rax, [rbp+var_18]
add rax, 8
mov [rbp+var_18], rax
jmp loc_32A69
loc_32CFE:
jmp short $+2
loc_32D00:
mov eax, [rbp+var_34]
mov [rbp+var_50], eax
mov eax, [rbp+var_50]
add rsp, 50h
pop rbp
retn
| long long flush_cached_blocks(_QWORD *a1, long long a2, long long *a3, long long *a4, int a5, int *a6)
{
int v7; // [rsp+4h] [rbp-4Ch]
long long v8; // [rsp+8h] [rbp-48h]
unsigned int v9; // [rsp+14h] [rbp-3Ch]
char v10; // [rsp+1Bh] [rbp-35h]
unsigned int v11; // [rsp+1Ch] [rbp-34h]
long long *v15; // [rsp+38h] [rbp-18h]
v15 = a3;
v11 = 0;
v9 = a4 - a3;
*a6 = 0;
inline_mysql_mutex_unlock((long long)(a1 + 25));
qsort(v15, v9, 8LL, cmp_sec_link);
inline_mysql_mutex_lock(
(long long)(a1 + 25),
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0x12A3u);
while ( v15 != a4 )
{
v8 = *v15;
if ( a5 == 4 && *(_DWORD *)(v8 + 100) || *(_DWORD *)(v8 + 104) )
{
*(_WORD *)(v8 + 116) &= ~0x10u;
v11 |= 2u;
unreg_request(a1, v8, 1);
if ( !*a6 )
*a6 = 122;
}
else
{
make_lock_and_pin((long long)a1, v8, 3, 2, 0);
inline_mysql_mutex_unlock((long long)(a1 + 25));
v10 = pagecache_fwrite(
(long long)a1,
*(_QWORD *)(v8 + 32) + 24LL,
*(_QWORD *)(v8 + 48),
*(_QWORD *)(*(_QWORD *)(v8 + 32) + 96LL),
*(_DWORD *)(v8 + 124),
a1[51]);
inline_mysql_mutex_lock(
(long long)(a1 + 25),
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0x12DDu);
make_lock_and_pin((long long)a1, v8, 5, 3, 0);
++a1[47];
if ( v10 )
{
*(_WORD *)(v8 + 116) |= 1u;
*(_WORD *)(v8 + 118) = *(_DWORD *)my_thread_var();
if ( !*a6 )
{
if ( *(_DWORD *)my_thread_var() )
v7 = *(_DWORD *)my_thread_var();
else
v7 = -1;
*a6 = v7;
}
v11 |= 1u;
}
if ( *(_QWORD *)(v8 + 80) )
wqueue_release_queue(v8 + 80);
if ( !a5 || a5 == 4 || a5 == 3 )
{
*(_WORD *)(v8 + 116) &= ~0x10u;
link_to_file_list(a1, v8, a2, 1);
unreg_request(a1, v8, 1);
}
else if ( free_block(a1, v8, 1) )
{
*(_WORD *)(v8 + 116) &= ~0x10u;
link_to_file_list(a1, v8, a2, 1);
}
else
{
--a1[11];
--a1[45];
}
}
++v15;
}
return v11;
}
| flush_cached_blocks:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV qword ptr [RBP + -0x30],R9
MOV dword ptr [RBP + -0x34],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
SAR RAX,0x3
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],0x0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc8
CALL 0x0012d8c0
MOV RDI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x3c]
MOV ESI,EAX
MOV EDX,0x8
LEA RCX,[0x132d10]
CALL 0x0012a590
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc8
LEA RSI,[0x25270c]
MOV EDX,0x12a3
CALL 0x0012d850
LAB_00132a69:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x00132cfe
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x48],RAX
CMP dword ptr [RBP + -0x24],0x4
JNZ 0x00132a92
MOV RAX,qword ptr [RBP + -0x48]
CMP dword ptr [RAX + 0x64],0x0
JNZ 0x00132a9c
LAB_00132a92:
MOV RAX,qword ptr [RBP + -0x48]
CMP dword ptr [RAX + 0x68],0x0
JZ 0x00132aec
LAB_00132a9c:
JMP 0x00132a9e
LAB_00132a9e:
JMP 0x00132aa0
LAB_00132aa0:
JMP 0x00132aa2
LAB_00132aa2:
JMP 0x00132aa4
LAB_00132aa4:
JMP 0x00132aa6
LAB_00132aa6:
JMP 0x00132aa8
LAB_00132aa8:
MOV RAX,qword ptr [RBP + -0x48]
MOVZX ECX,word ptr [RAX + 0x74]
AND ECX,0xffffffef
MOV word ptr [RAX + 0x74],CX
MOV EAX,dword ptr [RBP + -0x34]
OR EAX,0x2
MOV dword ptr [RBP + -0x34],EAX
JMP 0x00132ac2
LAB_00132ac2:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,0x1
CALL 0x0012e7b0
MOV RAX,qword ptr [RBP + -0x30]
CMP dword ptr [RAX],0x0
JNZ 0x00132ae7
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],0x7a
LAB_00132ae7:
JMP 0x00132ced
LAB_00132aec:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,0x3
MOV ECX,0x2
XOR R8D,R8D
CALL 0x0012e610
CMP AL,0x0
JZ 0x00132b10
JMP 0x00132b0c
LAB_00132b0c:
JMP 0x00132b0e
LAB_00132b0e:
JMP 0x00132b10
LAB_00132b10:
JMP 0x00132b12
LAB_00132b12:
JMP 0x00132b14
LAB_00132b14:
JMP 0x00132b16
LAB_00132b16:
JMP 0x00132b18
LAB_00132b18:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc8
CALL 0x0012d8c0
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x48]
MOV RSI,qword ptr [RAX + 0x20]
ADD RSI,0x18
MOV RAX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RAX + 0x30]
MOV RAX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RAX + 0x60]
MOV RAX,qword ptr [RBP + -0x48]
MOV R8D,dword ptr [RAX + 0x7c]
MOV RAX,qword ptr [RBP + -0x8]
MOV R9,qword ptr [RAX + 0x198]
CALL 0x00130a60
MOV byte ptr [RBP + -0x35],AL
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc8
LEA RSI,[0x25270c]
MOV EDX,0x12dd
CALL 0x0012d850
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,0x5
MOV ECX,0x3
XOR R8D,R8D
CALL 0x0012e610
CMP AL,0x0
JZ 0x00132ba7
JMP 0x00132ba3
LAB_00132ba3:
JMP 0x00132ba5
LAB_00132ba5:
JMP 0x00132ba7
LAB_00132ba7:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x178]
ADD RCX,0x1
MOV qword ptr [RAX + 0x178],RCX
CMP byte ptr [RBP + -0x35],0x0
JZ 0x00132c21
MOV RAX,qword ptr [RBP + -0x48]
MOVZX ECX,word ptr [RAX + 0x74]
OR ECX,0x1
MOV word ptr [RAX + 0x74],CX
CALL 0x001f7440
MOV EAX,dword ptr [RAX]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x48]
MOV word ptr [RAX + 0x76],CX
JMP 0x00132be6
LAB_00132be6:
MOV RAX,qword ptr [RBP + -0x30]
CMP dword ptr [RAX],0x0
JNZ 0x00132c18
CALL 0x001f7440
CMP dword ptr [RAX],0x0
JZ 0x00132c05
CALL 0x001f7440
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x00132c0f
LAB_00132c05:
MOV EAX,0xffffffff
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x00132c0f
LAB_00132c0f:
MOV ECX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],ECX
LAB_00132c18:
MOV EAX,dword ptr [RBP + -0x34]
OR EAX,0x1
MOV dword ptr [RBP + -0x34],EAX
LAB_00132c21:
MOV RAX,qword ptr [RBP + -0x48]
CMP qword ptr [RAX + 0x50],0x0
JZ 0x00132c3d
MOV RDI,qword ptr [RBP + -0x48]
ADD RDI,0x48
ADD RDI,0x8
CALL 0x00200aa0
LAB_00132c3d:
CMP dword ptr [RBP + -0x24],0x0
JZ 0x00132cb4
CMP dword ptr [RBP + -0x24],0x4
JZ 0x00132cb4
CMP dword ptr [RBP + -0x24],0x3
JZ 0x00132cb4
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,0x1
CALL 0x00131dc0
CMP AL,0x0
JNZ 0x00132c8d
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x58]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x58],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x168]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x168],RCX
JMP 0x00132cb2
LAB_00132c8d:
MOV RAX,qword ptr [RBP + -0x48]
MOVZX ECX,word ptr [RAX + 0x74]
AND ECX,0xffffffef
MOV word ptr [RAX + 0x74],CX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,0x1
CALL 0x00132020
LAB_00132cb2:
JMP 0x00132ceb
LAB_00132cb4:
MOV RAX,qword ptr [RBP + -0x48]
MOVZX ECX,word ptr [RAX + 0x74]
AND ECX,0xffffffef
MOV word ptr [RAX + 0x74],CX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,0x1
CALL 0x00132020
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,0x1
CALL 0x0012e7b0
LAB_00132ceb:
JMP 0x00132ced
LAB_00132ced:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x8
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00132a69
LAB_00132cfe:
JMP 0x00132d00
LAB_00132d00:
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x50],EAX
MOV EAX,dword ptr [RBP + -0x50]
ADD RSP,0x50
POP RBP
RET
|
uint flush_cached_blocks(long param_1,int8 param_2,long *param_3,long *param_4,int param_5,
int *param_6)
{
long lVar1;
char cVar2;
int4 *puVar3;
int *piVar4;
int local_54;
uint local_3c;
long *local_20;
local_3c = 0;
*param_6 = 0;
inline_mysql_mutex_unlock(param_1 + 200);
qsort(param_3,(long)param_4 - (long)param_3 >> 3 & 0xffffffff,8,cmp_sec_link);
inline_mysql_mutex_lock
(param_1 + 200,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0x12a3);
for (local_20 = param_3; local_20 != param_4; local_20 = local_20 + 1) {
lVar1 = *local_20;
if (((param_5 == 4) && (*(int *)(lVar1 + 100) != 0)) || (*(int *)(lVar1 + 0x68) != 0)) {
*(ushort *)(lVar1 + 0x74) = *(ushort *)(lVar1 + 0x74) & 0xffef;
local_3c = local_3c | 2;
unreg_request(param_1,lVar1,1);
if (*param_6 == 0) {
*param_6 = 0x7a;
}
}
else {
make_lock_and_pin(param_1,lVar1,3,2,0);
inline_mysql_mutex_unlock(param_1 + 200);
cVar2 = pagecache_fwrite(param_1,*(long *)(lVar1 + 0x20) + 0x18,*(int8 *)(lVar1 + 0x30),
*(int8 *)(*(long *)(lVar1 + 0x20) + 0x60),
*(int4 *)(lVar1 + 0x7c),*(int8 *)(param_1 + 0x198));
inline_mysql_mutex_lock
(param_1 + 200,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0x12dd);
make_lock_and_pin(param_1,lVar1,5,3,0);
*(long *)(param_1 + 0x178) = *(long *)(param_1 + 0x178) + 1;
if (cVar2 != '\0') {
*(ushort *)(lVar1 + 0x74) = *(ushort *)(lVar1 + 0x74) | 1;
puVar3 = (int4 *)_my_thread_var();
*(short *)(lVar1 + 0x76) = (short)*puVar3;
if (*param_6 == 0) {
piVar4 = (int *)_my_thread_var();
if (*piVar4 == 0) {
local_54 = -1;
}
else {
piVar4 = (int *)_my_thread_var();
local_54 = *piVar4;
}
*param_6 = local_54;
}
local_3c = local_3c | 1;
}
if (*(long *)(lVar1 + 0x50) != 0) {
wqueue_release_queue(lVar1 + 0x50);
}
if (((param_5 == 0) || (param_5 == 4)) || (param_5 == 3)) {
*(ushort *)(lVar1 + 0x74) = *(ushort *)(lVar1 + 0x74) & 0xffef;
link_to_file_list(param_1,lVar1,param_2,1);
unreg_request(param_1,lVar1,1);
}
else {
cVar2 = free_block(param_1,lVar1,1);
if (cVar2 == '\0') {
*(long *)(param_1 + 0x58) = *(long *)(param_1 + 0x58) + -1;
*(long *)(param_1 + 0x168) = *(long *)(param_1 + 0x168) + -1;
}
else {
*(ushort *)(lVar1 + 0x74) = *(ushort *)(lVar1 + 0x74) & 0xffef;
link_to_file_list(param_1,lVar1,param_2,1);
}
}
}
}
return local_3c;
}
| |
55,019 | int fmt::v8::detail::count_digits_fallback<unsigned __int128>(unsigned __int128) | aimrt_mujoco_sim/_deps/spdlog_lib-src/include/spdlog/fmt/bundled/format.h | FMT_CONSTEXPR auto count_digits_fallback(T n) -> int {
int count = 1;
for (;;) {
// Integer division is slow so do it for a group of four digits instead
// of for every digit. The idea comes from the talk by Alexandrescu
// "Three Optimization Tips for C++". See speed-test for a comparison.
if (n < 10) return count;
if (n < 100) return count + 1;
if (n < 1000) return count + 2;
if (n < 10000) return count + 3;
n /= 10000u;
count += 4;
}
} | O0 | c | int fmt::v8::detail::count_digits_fallback<unsigned __int128>(unsigned __int128):
subq $0x38, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movq %rax, 0x10(%rsp)
movl $0x1, 0xc(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rcx
xorl %eax, %eax
movl $0x9, %edx
subq %rsi, %rdx
sbbq %rcx, %rax
jb 0x9b952
jmp 0x9b945
movl 0xc(%rsp), %eax
movl %eax, 0x34(%rsp)
jmp 0x9b9ff
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rcx
xorl %eax, %eax
movl $0x63, %edx
subq %rsi, %rdx
sbbq %rcx, %rax
jb 0x9b97d
jmp 0x9b96d
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
jmp 0x9b9ff
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rcx
xorl %eax, %eax
movl $0x3e7, %edx # imm = 0x3E7
subq %rsi, %rdx
sbbq %rcx, %rax
jb 0x9b9a5
jmp 0x9b998
movl 0xc(%rsp), %eax
addl $0x2, %eax
movl %eax, 0x34(%rsp)
jmp 0x9b9ff
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rcx
xorl %eax, %eax
movl $0x270f, %edx # imm = 0x270F
subq %rsi, %rdx
sbbq %rcx, %rax
jb 0x9b9cd
jmp 0x9b9c0
movl 0xc(%rsp), %eax
addl $0x3, %eax
movl %eax, 0x34(%rsp)
jmp 0x9b9ff
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
xorl %eax, %eax
movl %eax, %ecx
movl $0x2710, %edx # imm = 0x2710
callq 0x1b200
movq %rdx, 0x18(%rsp)
movq %rax, 0x10(%rsp)
movl 0xc(%rsp), %eax
addl $0x4, %eax
movl %eax, 0xc(%rsp)
jmp 0x9b92a
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopl (%rax,%rax)
| _ZN3fmt2v86detail21count_digits_fallbackIoEEiT_:
sub rsp, 38h
mov [rsp+38h+var_18], rdi
mov [rsp+38h+var_10], rsi
mov rax, [rsp+38h+var_18]
mov rcx, [rsp+38h+var_10]
mov [rsp+38h+var_20], rcx
mov [rsp+38h+var_28], rax
mov [rsp+38h+var_2C], 1
loc_9B92A:
mov rsi, [rsp+38h+var_28]
mov rcx, [rsp+38h+var_20]
xor eax, eax
mov edx, 9
sub rdx, rsi
sbb rax, rcx
jb short loc_9B952
jmp short $+2
loc_9B945:
mov eax, [rsp+38h+var_2C]
mov [rsp+38h+var_4], eax
jmp loc_9B9FF
loc_9B952:
mov rsi, [rsp+38h+var_28]
mov rcx, [rsp+38h+var_20]
xor eax, eax
mov edx, 63h ; 'c'
sub rdx, rsi
sbb rax, rcx
jb short loc_9B97D
jmp short $+2
loc_9B96D:
mov eax, [rsp+38h+var_2C]
add eax, 1
mov [rsp+38h+var_4], eax
jmp loc_9B9FF
loc_9B97D:
mov rsi, [rsp+38h+var_28]
mov rcx, [rsp+38h+var_20]
xor eax, eax
mov edx, 3E7h
sub rdx, rsi
sbb rax, rcx
jb short loc_9B9A5
jmp short $+2
loc_9B998:
mov eax, [rsp+38h+var_2C]
add eax, 2
mov [rsp+38h+var_4], eax
jmp short loc_9B9FF
loc_9B9A5:
mov rsi, [rsp+38h+var_28]
mov rcx, [rsp+38h+var_20]
xor eax, eax
mov edx, 270Fh
sub rdx, rsi
sbb rax, rcx
jb short loc_9B9CD
jmp short $+2
loc_9B9C0:
mov eax, [rsp+38h+var_2C]
add eax, 3
mov [rsp+38h+var_4], eax
jmp short loc_9B9FF
loc_9B9CD:
mov rdi, [rsp+38h+var_28]
mov rsi, [rsp+38h+var_20]
xor eax, eax
mov ecx, eax
mov edx, 2710h
call ___udivti3
mov [rsp+38h+var_20], rdx
mov [rsp+38h+var_28], rax
mov eax, [rsp+38h+var_2C]
add eax, 4
mov [rsp+38h+var_2C], eax
jmp loc_9B92A
loc_9B9FF:
mov eax, [rsp+38h+var_4]
add rsp, 38h
retn
| long long fmt::v8::detail::count_digits_fallback<unsigned __int128>(unsigned __int128 a1)
{
unsigned __int128 v1; // rax
unsigned int i; // [rsp+Ch] [rbp-2Ch]
for ( i = 1; ; i += 4 )
{
if ( 9 >= a1 )
return i;
if ( 0x63 >= a1 )
return i + 1;
if ( 0x3E7 >= a1 )
return i + 2;
if ( 0x270F >= a1 )
break;
*(_QWORD *)&v1 = __udivti3(a1, *((_QWORD *)&a1 + 1), 10000LL, 0LL);
a1 = v1;
}
return i + 3;
}
| count_digits_fallback<unsigned__int128>:
SUB RSP,0x38
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x18],RCX
MOV qword ptr [RSP + 0x10],RAX
MOV dword ptr [RSP + 0xc],0x1
LAB_0019b92a:
MOV RSI,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
XOR EAX,EAX
MOV EDX,0x9
SUB RDX,RSI
SBB RAX,RCX
JC 0x0019b952
JMP 0x0019b945
LAB_0019b945:
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [RSP + 0x34],EAX
JMP 0x0019b9ff
LAB_0019b952:
MOV RSI,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
XOR EAX,EAX
MOV EDX,0x63
SUB RDX,RSI
SBB RAX,RCX
JC 0x0019b97d
JMP 0x0019b96d
LAB_0019b96d:
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x1
MOV dword ptr [RSP + 0x34],EAX
JMP 0x0019b9ff
LAB_0019b97d:
MOV RSI,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
XOR EAX,EAX
MOV EDX,0x3e7
SUB RDX,RSI
SBB RAX,RCX
JC 0x0019b9a5
JMP 0x0019b998
LAB_0019b998:
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x2
MOV dword ptr [RSP + 0x34],EAX
JMP 0x0019b9ff
LAB_0019b9a5:
MOV RSI,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
XOR EAX,EAX
MOV EDX,0x270f
SUB RDX,RSI
SBB RAX,RCX
JC 0x0019b9cd
JMP 0x0019b9c0
LAB_0019b9c0:
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x3
MOV dword ptr [RSP + 0x34],EAX
JMP 0x0019b9ff
LAB_0019b9cd:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x18]
XOR EAX,EAX
MOV ECX,EAX
MOV EDX,0x2710
CALL 0x0011b200
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x10],RAX
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x4
MOV dword ptr [RSP + 0xc],EAX
JMP 0x0019b92a
LAB_0019b9ff:
MOV EAX,dword ptr [RSP + 0x34]
ADD RSP,0x38
RET
|
/* int fmt::v8::detail::count_digits_fallback<unsigned __int128>(unsigned __int128) */
int __thiscall fmt::v8::detail::count_digits_fallback<unsigned__int128>(detail *this,uint param_1)
{
int4 in_register_00000034;
int1 auVar1 [16];
int local_2c;
detail *local_28;
long local_20;
local_20 = CONCAT44(in_register_00000034,param_1);
local_2c = 1;
local_28 = this;
while( true ) {
if (local_20 == 0 && (ulong)((detail *)0x9 < local_28) <= (ulong)-local_20) {
return local_2c;
}
if (local_20 == 0 && (ulong)((detail *)0x63 < local_28) <= (ulong)-local_20) {
return local_2c + 1;
}
if (local_20 == 0 && (ulong)((detail *)0x3e7 < local_28) <= (ulong)-local_20) {
return local_2c + 2;
}
if (local_20 == 0 && (ulong)((detail *)0x270f < local_28) <= (ulong)-local_20) break;
auVar1 = __udivti3(local_28,local_20,10000,0);
local_20 = auVar1._8_8_;
local_28 = auVar1._0_8_;
local_2c = local_2c + 4;
}
return local_2c + 3;
}
| |
55,020 | int fmt::v8::detail::count_digits_fallback<unsigned __int128>(unsigned __int128) | aimrt_mujoco_sim/_deps/spdlog_lib-src/include/spdlog/fmt/bundled/format.h | FMT_CONSTEXPR auto count_digits_fallback(T n) -> int {
int count = 1;
for (;;) {
// Integer division is slow so do it for a group of four digits instead
// of for every digit. The idea comes from the talk by Alexandrescu
// "Three Optimization Tips for C++". See speed-test for a comparison.
if (n < 10) return count;
if (n < 100) return count + 1;
if (n < 1000) return count + 2;
if (n < 10000) return count + 3;
n /= 10000u;
count += 4;
}
} | O3 | c | int fmt::v8::detail::count_digits_fallback<unsigned __int128>(unsigned __int128):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl $0x1, %ebx
cmpq $0xa, %rdi
movq %rsi, %rax
sbbq $0x0, %rax
jb 0x2be09
movq %rsi, %r14
movq %rdi, %r15
movl $0x4, %ebx
movl $0x63, %r12d
movl $0x3e7, %r13d # imm = 0x3E7
movl $0x1869f, %ebp # imm = 0x1869F
cmpq %r15, %r12
movl $0x0, %eax
sbbq %r14, %rax
jae 0x2be02
cmpq %r15, %r13
movl $0x0, %eax
sbbq %r14, %rax
jae 0x2be07
cmpq $0x2710, %r15 # imm = 0x2710
movq %r14, %rax
sbbq $0x0, %rax
jb 0x2be09
movl $0x2710, %edx # imm = 0x2710
movq %r15, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0xaed0
addl $0x4, %ebx
cmpq %r15, %rbp
movl $0x0, %ecx
sbbq %r14, %rcx
movq %rax, %r15
movq %rdx, %r14
jb 0x2bdab
addl $-0x3, %ebx
jmp 0x2be09
addl $-0x2, %ebx
jmp 0x2be09
decl %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN3fmt2v86detail21count_digits_fallbackIoEEiT_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebx, 1
cmp rdi, 0Ah
mov rax, rsi
sbb rax, 0
jb short loc_2BE09
mov r14, rsi
mov r15, rdi
mov ebx, 4
mov r12d, 63h ; 'c'
mov r13d, 3E7h
mov ebp, 1869Fh
loc_2BDAB:
cmp r12, r15
mov eax, 0
sbb rax, r14
jnb short loc_2BE02
cmp r13, r15
mov eax, 0
sbb rax, r14
jnb short loc_2BE07
cmp r15, 2710h
mov rax, r14
sbb rax, 0
jb short loc_2BE09
mov edx, 2710h
mov rdi, r15
mov rsi, r14
xor ecx, ecx
call ___udivti3
add ebx, 4
cmp rbp, r15
mov ecx, 0
sbb rcx, r14
mov r15, rax
mov r14, rdx
jb short loc_2BDAB
add ebx, 0FFFFFFFDh
jmp short loc_2BE09
loc_2BE02:
add ebx, 0FFFFFFFEh
jmp short loc_2BE09
loc_2BE07:
dec ebx
loc_2BE09:
mov eax, ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long fmt::v8::detail::count_digits_fallback<unsigned __int128>(unsigned __int128 a1)
{
unsigned int v1; // ebx
unsigned long long v2; // r14
long long v3; // r15
long long v4; // rax
bool v5; // cf
unsigned long long v6; // rdx
v1 = 1;
if ( a1 >= 0xA )
{
v2 = *((_QWORD *)&a1 + 1);
v3 = a1;
v1 = 4;
while ( 1 )
{
if ( 0x63 >= __PAIR128__(v2, v3) )
{
v1 -= 2;
return v1;
}
if ( 0x3E7 >= __PAIR128__(v2, v3) )
break;
if ( __PAIR128__(v2, v3) < 0x2710 )
return v1;
v4 = __udivti3(v3, v2, 10000LL, 0LL);
v1 += 4;
v5 = 0x1869F < __PAIR128__(v2, v3);
v3 = v4;
v2 = v6;
if ( !v5 )
{
v1 -= 3;
return v1;
}
}
--v1;
}
return v1;
}
| count_digits_fallback<unsigned__int128>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBX,0x1
CMP RDI,0xa
MOV RAX,RSI
SBB RAX,0x0
JC 0x0012be09
MOV R14,RSI
MOV R15,RDI
MOV EBX,0x4
MOV R12D,0x63
MOV R13D,0x3e7
MOV EBP,0x1869f
LAB_0012bdab:
CMP R12,R15
MOV EAX,0x0
SBB RAX,R14
JNC 0x0012be02
CMP R13,R15
MOV EAX,0x0
SBB RAX,R14
JNC 0x0012be07
CMP R15,0x2710
MOV RAX,R14
SBB RAX,0x0
JC 0x0012be09
MOV EDX,0x2710
MOV RDI,R15
MOV RSI,R14
XOR ECX,ECX
CALL 0x0010aed0
ADD EBX,0x4
CMP RBP,R15
MOV ECX,0x0
SBB RCX,R14
MOV R15,RAX
MOV R14,RDX
JC 0x0012bdab
ADD EBX,-0x3
JMP 0x0012be09
LAB_0012be02:
ADD EBX,-0x2
JMP 0x0012be09
LAB_0012be07:
DEC EBX
LAB_0012be09:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* int fmt::v8::detail::count_digits_fallback<unsigned __int128>(unsigned __int128) */
int __thiscall fmt::v8::detail::count_digits_fallback<unsigned__int128>(detail *this,uint param_1)
{
ulong uVar1;
int iVar2;
int iVar3;
int4 in_register_00000034;
ulong uVar4;
bool bVar5;
bool bVar6;
int1 auVar7 [16];
iVar3 = 1;
if ((ulong)(this < (detail *)0xa) <= CONCAT44(in_register_00000034,param_1)) {
uVar4 = CONCAT44(in_register_00000034,param_1);
iVar2 = 4;
do {
iVar3 = iVar2;
if (uVar4 == 0 && (ulong)((detail *)0x63 < this) <= -uVar4) {
return iVar3 + -2;
}
if (uVar4 == 0 && (ulong)((detail *)0x3e7 < this) <= -uVar4) {
return iVar3 + -1;
}
if (uVar4 < (this < (detail *)0x2710)) {
return iVar3;
}
auVar7 = __udivti3(this,uVar4,10000,0);
bVar5 = (detail *)0x1869f < this;
bVar6 = uVar4 != 0;
uVar1 = -uVar4;
uVar4 = auVar7._8_8_;
this = auVar7._0_8_;
iVar2 = iVar3 + 4;
} while (bVar6 || uVar1 < bVar5);
iVar3 = iVar3 + 1;
}
return iVar3;
}
| |
55,021 | ftxui::dim(std::shared_ptr<ftxui::Node>) | Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/dom/dim.cpp | Element dim(Element child) {
return std::make_shared<Dim>(std::move(child));
} | O3 | cpp | ftxui::dim(std::shared_ptr<ftxui::Node>):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r12
movq %rdi, %r14
movl $0x70, %edi
callq 0xb3e0
movq %rax, %rbx
movabsq $0x100000001, %rax # imm = 0x100000001
movq %rax, 0x8(%rbx)
leaq 0x210ad(%rip), %rax # 0x588c8
movq %rax, (%rbx)
movq %rbx, %r15
addq $0x10, %r15
movups (%r12), %xmm0
xorl %eax, %eax
movq %rax, 0x8(%r12)
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq %rax, (%r12)
movq %r15, %rdi
callq 0x22fbc
leaq 0x210ce(%rip), %rax # 0x58918
movq %rax, (%r15)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3785c
callq 0x14af8
movq %r15, (%r14)
movq %rbx, 0x8(%r14)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x37884
callq 0x14af8
movl $0x70, %esi
movq %rbx, %rdi
callq 0xb400
movq %r14, %rdi
callq 0xb780
nop
| _ZN5ftxui3dimESt10shared_ptrINS_4NodeEE:
push r15
push r14
push r12
push rbx
sub rsp, 18h
mov r12, rsi
mov r14, rdi
mov edi, 70h ; 'p'; unsigned __int64
call __Znwm; operator new(ulong)
mov rbx, rax
mov rax, 100000001h
mov [rbx+8], rax
lea rax, off_588C8
mov [rbx], rax
mov r15, rbx
add r15, 10h
movups xmm0, xmmword ptr [r12]
xor eax, eax
mov [r12+8], rax
mov rsi, rsp
movaps xmmword ptr [rsi], xmm0
mov [r12], rax
mov rdi, r15
call _ZN5ftxui13NodeDecoratorC2ESt10shared_ptrINS_4NodeEE; ftxui::NodeDecorator::NodeDecorator(std::shared_ptr<ftxui::Node>)
lea rax, off_58918
mov [r15], rax
mov rdi, [rsp+38h+var_30]
test rdi, rdi
jz short loc_3785C
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_3785C:
mov [r14], r15
mov [r14+8], rbx
mov rax, r14
add rsp, 18h
pop rbx
pop r12
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rsp+arg_0]
test rdi, rdi
jz short loc_37884
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_37884:
mov esi, 70h ; 'p'; unsigned __int64
mov rdi, rbx; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, r14
call __Unwind_Resume
| _QWORD * ftxui::dim(_QWORD *a1, long long a2)
{
_QWORD *v2; // rbx
__int128 v3; // xmm0
__int128 v5; // [rsp+0h] [rbp-38h] BYREF
v2 = (_QWORD *)operator new(0x70uLL);
v2[1] = 0x100000001LL;
*v2 = off_588C8;
v3 = *(_OWORD *)a2;
*(_QWORD *)(a2 + 8) = 0LL;
v5 = v3;
*(_QWORD *)a2 = 0LL;
ftxui::NodeDecorator::NodeDecorator(v2 + 2, &v5);
v2[2] = off_58918;
if ( *((_QWORD *)&v5 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v5 + 1));
*a1 = v2 + 2;
a1[1] = v2;
return a1;
}
| dim:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12,RSI
MOV R14,RDI
MOV EDI,0x70
CALL 0x0010b3e0
MOV RBX,RAX
MOV RAX,0x100000001
MOV qword ptr [RBX + 0x8],RAX
LEA RAX,[0x1588c8]
MOV qword ptr [RBX],RAX
MOV R15,RBX
ADD R15,0x10
MOVUPS XMM0,xmmword ptr [R12]
XOR EAX,EAX
MOV qword ptr [R12 + 0x8],RAX
MOV RSI,RSP
MOVAPS xmmword ptr [RSI],XMM0
MOV qword ptr [R12],RAX
LAB_0013783b:
MOV RDI,R15
CALL 0x00122fbc
LAB_00137843:
LEA RAX,[0x158918]
MOV qword ptr [R15],RAX
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x0013785c
CALL 0x00114af8
LAB_0013785c:
MOV qword ptr [R14],R15
MOV qword ptr [R14 + 0x8],RBX
MOV RAX,R14
ADD RSP,0x18
POP RBX
POP R12
POP R14
POP R15
RET
|
/* ftxui::dim(std::shared_ptr<ftxui::Node>) */
ftxui * __thiscall ftxui::dim(ftxui *this,int8 *param_2)
{
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00;
int8 *puVar1;
NodeDecorator *pNVar2;
puVar1 = (int8 *)operator_new(0x70);
puVar1[1] = 0x100000001;
*puVar1 = &PTR___Sp_counted_ptr_inplace_001588c8;
pNVar2 = (NodeDecorator *)(puVar1 + 2);
this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)param_2[1];
param_2[1] = 0;
*param_2 = 0;
/* try { // try from 0013783b to 00137842 has its CatchHandler @ 00137872 */
NodeDecorator::NodeDecorator(pNVar2);
*(int ***)pNVar2 = &PTR__Node_00158918;
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);
}
*(NodeDecorator **)this = pNVar2;
*(int8 **)(this + 8) = puVar1;
return this;
}
| |
55,022 | ggml_gallocr_allocate_node | ngxson[P]ggml-easy/ggml/src/ggml-alloc.c | static void ggml_gallocr_allocate_node(ggml_gallocr_t galloc, struct ggml_tensor * node, int buffer_id) {
GGML_ASSERT(buffer_id >= 0);
struct hash_node * hn = ggml_gallocr_hash_get(galloc, node);
if (!ggml_gallocr_is_allocated(galloc, node) && !ggml_is_view(node)) {
hn->allocated = true;
assert(hn->offset == 0);
// try to reuse a parent's buffer (inplace)
if (ggml_op_can_inplace(node->op)) {
for (int i = 0; i < GGML_MAX_SRC; i++) {
struct ggml_tensor * parent = node->src[i];
if (parent == NULL) {
continue;
}
// if the node's data is external, then we cannot re-use it
if (!ggml_gallocr_is_own(galloc, parent)) {
AT_PRINTF("not reusing parent %s for %s as %p is external\n", parent->name, node->name, parent->data);
continue;
}
// outputs cannot be reused
if (parent->flags & GGML_TENSOR_FLAG_OUTPUT || (parent->view_src != NULL && parent->view_src->flags & GGML_TENSOR_FLAG_OUTPUT)) {
AT_PRINTF("not reusing parent %s for %s as it is an output\n", parent->name, node->name);
continue;
}
if (!ggml_are_same_layout(node, parent)) {
AT_PRINTF("not reusing parent %s for %s as layouts are different\n", parent->name, node->name);
continue;
}
struct hash_node * p_hn = ggml_gallocr_hash_get(galloc, parent);
if (p_hn->n_children == 1 && p_hn->n_views == 0) {
if (ggml_is_view(parent)) {
struct ggml_tensor * view_src = parent->view_src;
struct hash_node * view_src_hn = ggml_gallocr_hash_get(galloc, view_src);
if (view_src_hn->n_views == 1 && view_src_hn->n_children == 0 && view_src->data == parent->data) {
AT_PRINTF("reusing view parent %s (%s) for %s\n", parent->name, view_src->name, node->name);
assert(view_src_hn->offset == p_hn->offset);
hn->buffer_id = p_hn->buffer_id;
hn->offset = p_hn->offset;
p_hn->allocated = false; // avoid freeing the parent
view_src_hn->allocated = false;
return;
}
} else {
AT_PRINTF("reusing parent %s for %s\n", parent->name, node->name);
hn->buffer_id = p_hn->buffer_id;
hn->offset = p_hn->offset;
p_hn->allocated = false; // avoid freeing the parent
return;
}
}
}
}
// allocate tensor from the buffer
struct ggml_dyn_tallocr * alloc = galloc->buf_tallocs[buffer_id];
ggml_backend_buffer_type_t buft = galloc->bufts[buffer_id];
size_t size = ggml_backend_buft_get_alloc_size(buft, node);
size_t offset = ggml_dyn_tallocr_alloc(alloc, size, node);
hn->buffer_id = buffer_id;
hn->offset = offset;
}
} | O3 | c | ggml_gallocr_allocate_node:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testl %edx, %edx
js 0x24ffd
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r12
callq 0x246b2
cmpq $0x0, 0xf8(%r15)
jne 0x24fb2
movq %rax, %r14
movq %r12, %rdi
movq %r15, %rsi
callq 0x246b2
cmpb $0x0, 0x18(%rax)
jne 0x24fb2
cmpq $0x0, 0xe8(%r15)
jne 0x24fb2
movb $0x1, 0x18(%r14)
movl 0x50(%r15), %eax
cmpq $0x2e, %rax
ja 0x24fc1
movabsq $0x7e0041a007ec, %rcx # imm = 0x7E0041A007EC
btq %rax, %rcx
jae 0x24fc1
xorl %ebp, %ebp
movq 0x98(%r15,%rbp,8), %r13
testq %r13, %r13
je 0x24e8f
movq %r12, %rdi
movq %r13, %rsi
callq 0x246b2
cmpb $0x1, 0x18(%rax)
jne 0x24e8f
testb $0x2, 0x94(%r13)
jne 0x24e8f
movq 0xe8(%r13), %rax
testq %rax, %rax
je 0x24dfc
testb $0x2, 0x94(%rax)
jne 0x24e8f
movl (%r15), %eax
cmpl (%r13), %eax
jne 0x24e8f
movl $0x6, %eax
movq -0x20(%r15,%rax,8), %rcx
cmpq -0x20(%r13,%rax,8), %rcx
jne 0x24e8f
movq (%r15,%rax,8), %rcx
cmpq (%r13,%rax,8), %rcx
jne 0x24e8f
incq %rax
cmpq $0xa, %rax
jne 0x24e0e
movq %r12, %rdi
movq %r13, %rsi
callq 0x246b2
cmpl $0x1, (%rax)
jne 0x24e8f
cmpl $0x0, 0x4(%rax)
jne 0x24e8f
movq 0xe8(%r13), %rsi
testq %rsi, %rsi
je 0x24fcf
movq %r12, %rdi
movq %rsi, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x246b2
movq 0x10(%rsp), %rdx
cmpl $0x1, 0x4(%rax)
jne 0x24e8f
cmpl $0x0, (%rax)
jne 0x24e8f
movq 0x8(%rsp), %rcx
movq 0xf8(%rcx), %rcx
cmpq 0xf8(%r13), %rcx
je 0x24fe4
incq %rbp
cmpq $0xa, %rbp
jne 0x24daf
movq (%r12), %rax
movq 0x10(%r12), %rcx
movl %ebx, %edx
movq (%rcx,%rdx,8), %r12
movq (%rax,%rdx,8), %rdi
movq %r15, %rsi
callq 0x16690
movq %rax, %rsi
movq (%r12), %rcx
xorl %edi, %edi
xorl %edx, %edx
divq %rcx
movq %rcx, %rax
subq %rdx, %rax
xorl %edx, %edx
divq %rcx
movq %rdx, %rcx
addq %rsi, %rcx
movl 0x8(%r12), %edx
leal -0x1(%rdx), %eax
cmpl $0x2, %edx
jl 0x24f34
movl %eax, %esi
leaq 0x18(%r12), %r8
movq $-0x1, %r9
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %r10d, %r10d
xorl %edi, %edi
movq (%r8), %r11
cmpq %r11, %rdi
cmovbeq %r11, %rdi
cmpq %rcx, %r11
setb %bpl
cmpq %r9, %r11
seta %r15b
orb %bpl, %r15b
cmoveq %r11, %r9
cmovel %r10d, %edx
incq %r10
addq $0x10, %r8
cmpq %r10, %rsi
jne 0x24efb
cmpl $-0x1, %edx
je 0x24f34
movslq %edx, %rsi
jmp 0x24f4e
movslq %eax, %rsi
movq %rsi, %rdx
shlq $0x4, %rdx
movq 0x18(%r12,%rdx), %r8
movl %eax, %edx
cmpq %rcx, %r8
jb 0x2501e
movq %rsi, %r9
shlq $0x4, %r9
movq 0x10(%r12,%r9), %rdi
leaq (%rdi,%rcx), %r8
movq %r8, 0x10(%r12,%r9)
subq %rcx, 0x18(%r12,%r9)
jne 0x24f93
movl %eax, 0x8(%r12)
cmpl %eax, %edx
jge 0x24f93
leaq (%r9,%r12), %rax
addq $0x20, %rax
incq %rsi
movups (%rax), %xmm0
movups %xmm0, -0x10(%rax)
movslq 0x8(%r12), %rcx
addq $0x10, %rax
cmpq %rcx, %rsi
jl 0x24f7b
movq 0x1010(%r12), %rax
cmpq %r8, %rax
cmovaq %rax, %r8
movq %r8, 0x1010(%r12)
movl %ebx, 0x8(%r14)
movq %rdi, 0x10(%r14)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x4a, %eax
je 0x24dad
jmp 0x24e9c
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%r14)
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%r14)
movb $0x0, 0x18(%rax)
jmp 0x24fb2
movl 0x8(%rdx), %ecx
movl %ecx, 0x8(%r14)
movq 0x10(%rdx), %rcx
movq %rcx, 0x10(%r14)
xorl %ecx, %ecx
movb %cl, 0x18(%rdx)
movb %cl, 0x18(%rax)
jmp 0x24fb2
leaq 0x2808e(%rip), %rdi # 0x4d092
leaq 0x25653(%rip), %rdx # 0x4a65e
leaq 0x2830a(%rip), %rcx # 0x4d31c
movl $0x1df, %esi # imm = 0x1DF
xorl %eax, %eax
callq 0x17c60
cmpq %r8, %rdi
cmovaq %rdi, %r8
leaq 0x28235(%rip), %rsi # 0x4d261
leaq 0x2828b(%rip), %rdx # 0x4d2be
movl $0x4, %edi
xorl %eax, %eax
callq 0x167f0
leaq 0x2804c(%rip), %rdi # 0x4d092
leaq 0x28096(%rip), %rdx # 0x4d0e3
movl $0xb6, %esi
xorl %eax, %eax
callq 0x17c60
| ggml_gallocr_allocate_node:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
test edx, edx
js loc_24FFD
mov ebx, edx
mov r15, rsi
mov r12, rdi
call ggml_gallocr_hash_get
cmp qword ptr [r15+0F8h], 0
jnz loc_24FB2
mov r14, rax
mov rdi, r12
mov rsi, r15
call ggml_gallocr_hash_get
cmp byte ptr [rax+18h], 0
jnz loc_24FB2
cmp qword ptr [r15+0E8h], 0
jnz loc_24FB2
mov byte ptr [r14+18h], 1
mov eax, [r15+50h]
cmp rax, 2Eh ; '.'
ja loc_24FC1
mov rcx, 7E0041A007ECh
bt rcx, rax
jnb loc_24FC1
loc_24DAD:
xor ebp, ebp
loc_24DAF:
mov r13, [r15+rbp*8+98h]
test r13, r13
jz loc_24E8F
mov rdi, r12
mov rsi, r13
call ggml_gallocr_hash_get
cmp byte ptr [rax+18h], 1
jnz loc_24E8F
test byte ptr [r13+94h], 2
jnz loc_24E8F
mov rax, [r13+0E8h]
test rax, rax
jz short loc_24DFC
test byte ptr [rax+94h], 2
jnz loc_24E8F
loc_24DFC:
mov eax, [r15]
cmp eax, [r13+0]
jnz loc_24E8F
mov eax, 6
loc_24E0E:
mov rcx, [r15+rax*8-20h]
cmp rcx, [r13+rax*8-20h]
jnz short loc_24E8F
mov rcx, [r15+rax*8]
cmp rcx, [r13+rax*8+0]
jnz short loc_24E8F
inc rax
cmp rax, 0Ah
jnz short loc_24E0E
mov rdi, r12
mov rsi, r13
call ggml_gallocr_hash_get
cmp dword ptr [rax], 1
jnz short loc_24E8F
cmp dword ptr [rax+4], 0
jnz short loc_24E8F
mov rsi, [r13+0E8h]
test rsi, rsi
jz loc_24FCF
mov rdi, r12
mov [rsp+48h+var_40], rsi
mov [rsp+48h+var_38], rax
call ggml_gallocr_hash_get
mov rdx, [rsp+48h+var_38]
cmp dword ptr [rax+4], 1
jnz short loc_24E8F
cmp dword ptr [rax], 0
jnz short loc_24E8F
mov rcx, [rsp+48h+var_40]
mov rcx, [rcx+0F8h]
cmp rcx, [r13+0F8h]
jz loc_24FE4
loc_24E8F:
inc rbp
cmp rbp, 0Ah
jnz loc_24DAF
loc_24E9C:
mov rax, [r12]
mov rcx, [r12+10h]
mov edx, ebx
mov r12, [rcx+rdx*8]
mov rdi, [rax+rdx*8]
mov rsi, r15
call _ggml_backend_buft_get_alloc_size
mov rsi, rax
mov rcx, [r12]
xor edi, edi
xor edx, edx
div rcx
mov rax, rcx
sub rax, rdx
xor edx, edx
div rcx
mov rcx, rdx
add rcx, rsi
mov edx, [r12+8]
lea eax, [rdx-1]
cmp edx, 2
jl short loc_24F34
mov esi, eax
lea r8, [r12+18h]
mov r9, 0FFFFFFFFFFFFFFFFh
mov edx, 0FFFFFFFFh
xor r10d, r10d
xor edi, edi
loc_24EFB:
mov r11, [r8]
cmp rdi, r11
cmovbe rdi, r11
cmp r11, rcx
setb bpl
cmp r11, r9
setnbe r15b
or r15b, bpl
cmovz r9, r11
cmovz edx, r10d
inc r10
add r8, 10h
cmp rsi, r10
jnz short loc_24EFB
cmp edx, 0FFFFFFFFh
jz short loc_24F34
movsxd rsi, edx
jmp short loc_24F4E
loc_24F34:
movsxd rsi, eax
mov rdx, rsi
shl rdx, 4
mov r8, [r12+rdx+18h]
mov edx, eax
cmp r8, rcx
jb loc_2501E
loc_24F4E:
mov r9, rsi
shl r9, 4
mov rdi, [r12+r9+10h]
lea r8, [rdi+rcx]
mov [r12+r9+10h], r8
sub [r12+r9+18h], rcx
jnz short loc_24F93
mov [r12+8], eax
cmp edx, eax
jge short loc_24F93
lea rax, [r9+r12]
add rax, 20h ; ' '
loc_24F7B:
inc rsi
movups xmm0, xmmword ptr [rax]
movups xmmword ptr [rax-10h], xmm0
movsxd rcx, dword ptr [r12+8]
add rax, 10h
cmp rsi, rcx
jl short loc_24F7B
loc_24F93:
mov rax, [r12+1010h]
cmp rax, r8
cmova r8, rax
mov [r12+1010h], r8
mov [r14+8], ebx
mov [r14+10h], rdi
loc_24FB2:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_24FC1:
cmp eax, 4Ah ; 'J'
jz loc_24DAD
jmp loc_24E9C
loc_24FCF:
mov ecx, [rax+8]
mov [r14+8], ecx
mov rcx, [rax+10h]
mov [r14+10h], rcx
mov byte ptr [rax+18h], 0
jmp short loc_24FB2
loc_24FE4:
mov ecx, [rdx+8]
mov [r14+8], ecx
mov rcx, [rdx+10h]
mov [r14+10h], rcx
xor ecx, ecx
mov [rdx+18h], cl
mov [rax+18h], cl
jmp short loc_24FB2
loc_24FFD:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTallocBufferId+8; "buffer_id >= 0"
mov esi, 1DFh
xor eax, eax
call _ggml_abort
loc_2501E:
cmp rdi, r8
cmova r8, rdi
lea rsi, aSNotEnoughSpac_1; "%s: not enough space in the buffer to a"...
lea rdx, aGgmlDynTallocr; "ggml_dyn_tallocr_alloc"
mov edi, 4
xor eax, eax
call _ggml_log_internal
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aNotEnoughSpace; "not enough space in the buffer"
mov esi, 0B6h
xor eax, eax
call _ggml_abort
| unsigned long long ggml_gallocr_allocate_node(
_QWORD *a1,
unsigned long long a2,
int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11,
long long a12,
int a13,
int a14)
{
unsigned long long result; // rax
unsigned long long v17; // r14
unsigned long long v18; // rax
long long v19; // rcx
long long i; // rbp
unsigned long long v21; // r13
long long v22; // rax
long long v23; // rax
unsigned long long v24; // rsi
long long v25; // r12
unsigned long long alloc_size; // rax
unsigned long long v27; // r9
__m128 v28; // xmm4
__m128 v29; // xmm5
unsigned long long v30; // rdi
unsigned long long v31; // rcx
int v32; // edx
int v33; // eax
unsigned long long *v34; // r8
int v35; // edx
long long v36; // r10
long long v37; // rsi
unsigned long long v38; // r8
long long v39; // r9
long long v40; // rdi
unsigned long long v41; // r8
bool v42; // zf
_OWORD *v43; // rax
int v44; // ecx
int v45; // r8d
int v46; // r9d
long long v47; // [rsp+8h] [rbp-40h]
unsigned long long v48; // [rsp+10h] [rbp-38h]
if ( a3 < 0 )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-alloc.c",
479,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"buffer_id >= 0",
a13,
a14);
result = ggml_gallocr_hash_get(a1, a2);
if ( !*(_QWORD *)(a2 + 248) )
{
v17 = result;
result = ggml_gallocr_hash_get(a1, a2);
if ( !*(_BYTE *)(result + 24) && !*(_QWORD *)(a2 + 232) )
{
*(_BYTE *)(v17 + 24) = 1;
v18 = *(unsigned int *)(a2 + 80);
if ( v18 <= 0x2E && (v19 = 0x7E0041A007ECLL, _bittest64(&v19, v18)) || (_DWORD)v18 == 74 )
{
for ( i = 0LL; i != 10; ++i )
{
v21 = *(_QWORD *)(a2 + 8 * i + 152);
if ( v21 )
{
if ( *(_BYTE *)(ggml_gallocr_hash_get(a1, *(_QWORD *)(a2 + 8 * i + 152)) + 24) == 1
&& (*(_BYTE *)(v21 + 148) & 2) == 0 )
{
v22 = *(_QWORD *)(v21 + 232);
if ( (!v22 || (*(_BYTE *)(v22 + 148) & 2) == 0) && *(_DWORD *)a2 == *(_DWORD *)v21 )
{
v23 = 6LL;
while ( *(_QWORD *)(a2 + 8 * v23 - 32) == *(_QWORD *)(v21 + 8 * v23 - 32)
&& *(_QWORD *)(a2 + 8 * v23) == *(_QWORD *)(v21 + 8 * v23) )
{
if ( ++v23 == 10 )
{
result = ggml_gallocr_hash_get(a1, v21);
if ( *(_DWORD *)result == 1 && !*(_DWORD *)(result + 4) )
{
v24 = *(_QWORD *)(v21 + 232);
if ( !v24 )
{
*(_DWORD *)(v17 + 8) = *(_DWORD *)(result + 8);
*(_QWORD *)(v17 + 16) = *(_QWORD *)(result + 16);
*(_BYTE *)(result + 24) = 0;
return result;
}
v47 = *(_QWORD *)(v21 + 232);
v48 = result;
result = ggml_gallocr_hash_get(a1, v24);
if ( *(_DWORD *)(result + 4) == 1
&& !*(_DWORD *)result
&& *(_QWORD *)(v47 + 248) == *(_QWORD *)(v21 + 248) )
{
*(_DWORD *)(v17 + 8) = *(_DWORD *)(v48 + 8);
*(_QWORD *)(v17 + 16) = *(_QWORD *)(v48 + 16);
*(_BYTE *)(v48 + 24) = 0;
*(_BYTE *)(result + 24) = 0;
return result;
}
}
break;
}
}
}
}
}
}
}
v25 = *(_QWORD *)(a1[2] + 8LL * (unsigned int)a3);
alloc_size = ggml_backend_buft_get_alloc_size(*(_QWORD *)(*a1 + 8LL * (unsigned int)a3), a2);
v30 = 0LL;
v31 = alloc_size + (*(_QWORD *)v25 - alloc_size % *(_QWORD *)v25) % *(_QWORD *)v25;
v32 = *(_DWORD *)(v25 + 8);
v33 = v32 - 1;
if ( v32 < 2 )
goto LABEL_34;
v34 = (unsigned long long *)(v25 + 24);
v27 = -1LL;
v35 = -1;
v36 = 0LL;
v30 = 0LL;
do
{
if ( v30 <= *v34 )
v30 = *v34;
if ( *v34 >= v31 && *v34 <= v27 )
{
v27 = *v34;
v35 = v36;
}
++v36;
v34 += 2;
}
while ( v33 != v36 );
if ( v35 == -1 )
{
LABEL_34:
v37 = v33;
v38 = *(_QWORD *)(v25 + 16LL * v33 + 24);
v35 = v33;
if ( v38 < v31 )
{
if ( v30 > v38 )
v38 = v30;
ggml_log_internal(
4u,
(long long)"%s: not enough space in the buffer to allocate %zu bytes, largest block available %zu bytes\n",
(long long)"ggml_dyn_tallocr_alloc",
v31,
v38,
v27,
a4,
a5,
a6,
a7,
v28,
v29,
a10,
a11);
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-alloc.c",
182,
(unsigned int)"not enough space in the buffer",
v44,
v45,
v46);
}
}
else
{
v37 = v35;
}
v39 = 16 * v37;
v40 = *(_QWORD *)(v25 + 16 * v37 + 16);
v41 = v40 + v31;
*(_QWORD *)(v25 + v39 + 16) = v40 + v31;
v42 = *(_QWORD *)(v25 + 16 * v37 + 24) == v31;
*(_QWORD *)(v25 + v39 + 24) -= v31;
if ( v42 )
{
*(_DWORD *)(v25 + 8) = v33;
if ( v35 < v33 )
{
v43 = (_OWORD *)(v39 + v25 + 32);
do
{
++v37;
*(v43 - 1) = *v43;
++v43;
}
while ( v37 < *(int *)(v25 + 8) );
}
}
result = *(_QWORD *)(v25 + 4112);
if ( result > v41 )
v41 = *(_QWORD *)(v25 + 4112);
*(_QWORD *)(v25 + 4112) = v41;
*(_DWORD *)(v17 + 8) = a3;
*(_QWORD *)(v17 + 16) = v40;
}
}
return result;
}
| ggml_gallocr_allocate_node:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
TEST EDX,EDX
JS 0x00124ffd
MOV EBX,EDX
MOV R15,RSI
MOV R12,RDI
CALL 0x001246b2
CMP qword ptr [R15 + 0xf8],0x0
JNZ 0x00124fb2
MOV R14,RAX
MOV RDI,R12
MOV RSI,R15
CALL 0x001246b2
CMP byte ptr [RAX + 0x18],0x0
JNZ 0x00124fb2
CMP qword ptr [R15 + 0xe8],0x0
JNZ 0x00124fb2
MOV byte ptr [R14 + 0x18],0x1
MOV EAX,dword ptr [R15 + 0x50]
CMP RAX,0x2e
JA 0x00124fc1
MOV RCX,0x7e0041a007ec
BT RCX,RAX
JNC 0x00124fc1
LAB_00124dad:
XOR EBP,EBP
LAB_00124daf:
MOV R13,qword ptr [R15 + RBP*0x8 + 0x98]
TEST R13,R13
JZ 0x00124e8f
MOV RDI,R12
MOV RSI,R13
CALL 0x001246b2
CMP byte ptr [RAX + 0x18],0x1
JNZ 0x00124e8f
TEST byte ptr [R13 + 0x94],0x2
JNZ 0x00124e8f
MOV RAX,qword ptr [R13 + 0xe8]
TEST RAX,RAX
JZ 0x00124dfc
TEST byte ptr [RAX + 0x94],0x2
JNZ 0x00124e8f
LAB_00124dfc:
MOV EAX,dword ptr [R15]
CMP EAX,dword ptr [R13]
JNZ 0x00124e8f
MOV EAX,0x6
LAB_00124e0e:
MOV RCX,qword ptr [R15 + RAX*0x8 + -0x20]
CMP RCX,qword ptr [R13 + RAX*0x8 + -0x20]
JNZ 0x00124e8f
MOV RCX,qword ptr [R15 + RAX*0x8]
CMP RCX,qword ptr [R13 + RAX*0x8]
JNZ 0x00124e8f
INC RAX
CMP RAX,0xa
JNZ 0x00124e0e
MOV RDI,R12
MOV RSI,R13
CALL 0x001246b2
CMP dword ptr [RAX],0x1
JNZ 0x00124e8f
CMP dword ptr [RAX + 0x4],0x0
JNZ 0x00124e8f
MOV RSI,qword ptr [R13 + 0xe8]
TEST RSI,RSI
JZ 0x00124fcf
MOV RDI,R12
MOV qword ptr [RSP + 0x8],RSI
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001246b2
MOV RDX,qword ptr [RSP + 0x10]
CMP dword ptr [RAX + 0x4],0x1
JNZ 0x00124e8f
CMP dword ptr [RAX],0x0
JNZ 0x00124e8f
MOV RCX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RCX + 0xf8]
CMP RCX,qword ptr [R13 + 0xf8]
JZ 0x00124fe4
LAB_00124e8f:
INC RBP
CMP RBP,0xa
JNZ 0x00124daf
LAB_00124e9c:
MOV RAX,qword ptr [R12]
MOV RCX,qword ptr [R12 + 0x10]
MOV EDX,EBX
MOV R12,qword ptr [RCX + RDX*0x8]
MOV RDI,qword ptr [RAX + RDX*0x8]
MOV RSI,R15
CALL 0x00116690
MOV RSI,RAX
MOV RCX,qword ptr [R12]
XOR EDI,EDI
XOR EDX,EDX
DIV RCX
MOV RAX,RCX
SUB RAX,RDX
XOR EDX,EDX
DIV RCX
MOV RCX,RDX
ADD RCX,RSI
MOV EDX,dword ptr [R12 + 0x8]
LEA EAX,[RDX + -0x1]
CMP EDX,0x2
JL 0x00124f34
MOV ESI,EAX
LEA R8,[R12 + 0x18]
MOV R9,-0x1
MOV EDX,0xffffffff
XOR R10D,R10D
XOR EDI,EDI
LAB_00124efb:
MOV R11,qword ptr [R8]
CMP RDI,R11
CMOVBE RDI,R11
CMP R11,RCX
SETC BPL
CMP R11,R9
SETA R15B
OR R15B,BPL
CMOVZ R9,R11
CMOVZ EDX,R10D
INC R10
ADD R8,0x10
CMP RSI,R10
JNZ 0x00124efb
CMP EDX,-0x1
JZ 0x00124f34
MOVSXD RSI,EDX
JMP 0x00124f4e
LAB_00124f34:
MOVSXD RSI,EAX
MOV RDX,RSI
SHL RDX,0x4
MOV R8,qword ptr [R12 + RDX*0x1 + 0x18]
MOV EDX,EAX
CMP R8,RCX
JC 0x0012501e
LAB_00124f4e:
MOV R9,RSI
SHL R9,0x4
MOV RDI,qword ptr [R12 + R9*0x1 + 0x10]
LEA R8,[RDI + RCX*0x1]
MOV qword ptr [R12 + R9*0x1 + 0x10],R8
SUB qword ptr [R12 + R9*0x1 + 0x18],RCX
JNZ 0x00124f93
MOV dword ptr [R12 + 0x8],EAX
CMP EDX,EAX
JGE 0x00124f93
LEA RAX,[R9 + R12*0x1]
ADD RAX,0x20
LAB_00124f7b:
INC RSI
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [RAX + -0x10],XMM0
MOVSXD RCX,dword ptr [R12 + 0x8]
ADD RAX,0x10
CMP RSI,RCX
JL 0x00124f7b
LAB_00124f93:
MOV RAX,qword ptr [R12 + 0x1010]
CMP RAX,R8
CMOVA R8,RAX
MOV qword ptr [R12 + 0x1010],R8
MOV dword ptr [R14 + 0x8],EBX
MOV qword ptr [R14 + 0x10],RDI
LAB_00124fb2:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00124fc1:
CMP EAX,0x4a
JZ 0x00124dad
JMP 0x00124e9c
LAB_00124fcf:
MOV ECX,dword ptr [RAX + 0x8]
MOV dword ptr [R14 + 0x8],ECX
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [R14 + 0x10],RCX
MOV byte ptr [RAX + 0x18],0x0
JMP 0x00124fb2
LAB_00124fe4:
MOV ECX,dword ptr [RDX + 0x8]
MOV dword ptr [R14 + 0x8],ECX
MOV RCX,qword ptr [RDX + 0x10]
MOV qword ptr [R14 + 0x10],RCX
XOR ECX,ECX
MOV byte ptr [RDX + 0x18],CL
MOV byte ptr [RAX + 0x18],CL
JMP 0x00124fb2
LAB_00124ffd:
LEA RDI,[0x14d092]
LEA RDX,[0x14a65e]
LEA RCX,[0x14d31c]
MOV ESI,0x1df
XOR EAX,EAX
CALL 0x00117c60
LAB_0012501e:
CMP RDI,R8
CMOVA R8,RDI
LEA RSI,[0x14d261]
LEA RDX,[0x14d2be]
MOV EDI,0x4
XOR EAX,EAX
CALL 0x001167f0
LEA RDI,[0x14d092]
LEA RDX,[0x14d0e3]
MOV ESI,0xb6
XOR EAX,EAX
CALL 0x00117c60
|
void ggml_gallocr_allocate_node(long *param_1,int *param_2,uint param_3)
{
uint uVar1;
int *piVar2;
ulong *puVar3;
ulong uVar4;
long lVar5;
long lVar6;
long lVar7;
int *piVar8;
int *piVar9;
ulong uVar10;
ulong *puVar11;
uint uVar12;
ulong uVar13;
ulong uVar14;
ulong uVar15;
ulong uVar16;
if ((int)param_3 < 0) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-alloc.c",
0x1df,"GGML_ASSERT(%s) failed","buffer_id >= 0");
}
lVar5 = ggml_gallocr_hash_get();
if (*(long *)(param_2 + 0x3e) != 0) {
return;
}
lVar6 = ggml_gallocr_hash_get(param_1,param_2);
if (*(char *)(lVar6 + 0x18) != '\0') {
return;
}
if (*(long *)(param_2 + 0x3a) != 0) {
return;
}
*(int1 *)(lVar5 + 0x18) = 1;
uVar1 = param_2[0x14];
if ((((ulong)uVar1 < 0x2f) && ((0x7e0041a007ecU >> ((ulong)uVar1 & 0x3f) & 1) != 0)) ||
(uVar1 == 0x4a)) {
lVar6 = 0;
do {
piVar2 = *(int **)(param_2 + lVar6 * 2 + 0x26);
if ((((piVar2 != (int *)0x0) &&
(lVar7 = ggml_gallocr_hash_get(param_1,piVar2), *(char *)(lVar7 + 0x18) == '\x01')) &&
(((*(byte *)(piVar2 + 0x25) & 2) == 0 &&
((*(long *)(piVar2 + 0x3a) == 0 ||
((*(byte *)(*(long *)(piVar2 + 0x3a) + 0x94) & 2) == 0)))))) && (*param_2 == *piVar2)) {
lVar7 = 6;
do {
if ((*(long *)(param_2 + lVar7 * 2 + -8) != *(long *)(piVar2 + lVar7 * 2 + -8)) ||
(*(long *)(param_2 + lVar7 * 2) != *(long *)(piVar2 + lVar7 * 2))) goto LAB_00124e8f;
lVar7 = lVar7 + 1;
} while (lVar7 != 10);
piVar8 = (int *)ggml_gallocr_hash_get(param_1,piVar2);
if ((*piVar8 == 1) && (piVar8[1] == 0)) {
lVar7 = *(long *)(piVar2 + 0x3a);
if (lVar7 == 0) {
*(int *)(lVar5 + 8) = piVar8[2];
*(int8 *)(lVar5 + 0x10) = *(int8 *)(piVar8 + 4);
*(int1 *)(piVar8 + 6) = 0;
return;
}
piVar9 = (int *)ggml_gallocr_hash_get(param_1);
if (((piVar9[1] == 1) && (*piVar9 == 0)) &&
(*(long *)(lVar7 + 0xf8) == *(long *)(piVar2 + 0x3e))) {
*(int *)(lVar5 + 8) = piVar8[2];
*(int8 *)(lVar5 + 0x10) = *(int8 *)(piVar8 + 4);
*(int1 *)(piVar8 + 6) = 0;
*(int1 *)(piVar9 + 6) = 0;
return;
}
}
}
LAB_00124e8f:
lVar6 = lVar6 + 1;
} while (lVar6 != 10);
}
puVar3 = *(ulong **)(param_1[2] + (ulong)param_3 * 8);
uVar10 = ggml_backend_buft_get_alloc_size(*(int8 *)(*param_1 + (ulong)param_3 * 8),param_2);
uVar15 = *puVar3;
uVar14 = 0;
uVar10 = (uVar15 - uVar10 % uVar15) % uVar15 + uVar10;
uVar1 = (int)puVar3[1] - 1;
if (1 < (int)puVar3[1]) {
puVar11 = puVar3 + 3;
uVar15 = 0xffffffffffffffff;
uVar13 = 0xffffffff;
uVar16 = 0;
uVar14 = 0;
do {
uVar4 = *puVar11;
if (uVar14 <= uVar4) {
uVar14 = uVar4;
}
if (uVar4 <= uVar15 && uVar10 <= uVar4) {
uVar13 = uVar16 & 0xffffffff;
uVar15 = uVar4;
}
uVar12 = (uint)uVar13;
uVar16 = uVar16 + 1;
puVar11 = puVar11 + 2;
} while (uVar1 != uVar16);
if (uVar12 != 0xffffffff) {
lVar6 = (long)(int)uVar12;
goto LAB_00124f4e;
}
}
lVar6 = (long)(int)uVar1;
uVar15 = puVar3[lVar6 * 2 + 3];
uVar12 = uVar1;
if (uVar15 < uVar10) {
if (uVar15 < uVar14) {
uVar15 = uVar14;
}
ggml_log_internal(4,
"%s: not enough space in the buffer to allocate %zu bytes, largest block available %zu bytes\n"
,"ggml_dyn_tallocr_alloc",uVar10,uVar15);
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-alloc.c",
0xb6,"not enough space in the buffer");
}
LAB_00124f4e:
uVar14 = puVar3[lVar6 * 2 + 2];
uVar15 = uVar14 + uVar10;
puVar3[lVar6 * 2 + 2] = uVar15;
puVar11 = puVar3 + lVar6 * 2 + 3;
*puVar11 = *puVar11 - uVar10;
if ((*puVar11 == 0) && (*(uint *)(puVar3 + 1) = uVar1, (int)uVar12 < (int)uVar1)) {
puVar11 = puVar3 + lVar6 * 2 + 4;
do {
lVar6 = lVar6 + 1;
puVar11[-2] = *puVar11;
puVar11[-1] = puVar11[1];
puVar11 = puVar11 + 2;
} while (lVar6 < (int)puVar3[1]);
}
if (uVar15 < puVar3[0x202]) {
uVar15 = puVar3[0x202];
}
puVar3[0x202] = uVar15;
*(uint *)(lVar5 + 8) = param_3;
*(ulong *)(lVar5 + 0x10) = uVar14;
return;
}
| |
55,023 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> testing::internal::StreamableToString<int>(int const&) | AlayaLite/build_O3/_deps/googletest-src/googletest/include/gtest/gtest-message.h | std::string StreamableToString(const T& streamable) {
return (Message() << streamable).GetString();
} | O3 | c | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> testing::internal::StreamableToString<int>(int const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x5e3fe
movq (%r15), %rdi
addq $0x10, %rdi
movl (%r14), %esi
callq 0x113b0
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x5e655
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x73aff
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x73b1f
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x11760
nop
| _ZN7testing8internal18StreamableToStringIiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_:
push r15
push r14
push rbx
sub rsp, 10h
mov r14, rsi
mov rbx, rdi
lea r15, [rsp+28h+var_20]
mov rdi, r15; this
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
mov rdi, [r15]
add rdi, 10h
mov esi, [r14]
call __ZNSolsEi; std::ostream::operator<<(int)
mov rsi, [rsp+28h+var_20]
mov rdi, rbx
call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *)
mov rdi, [rsp+28h+var_20]
test rdi, rdi
jz short loc_73AFF
mov rax, [rdi]
call qword ptr [rax+8]
loc_73AFF:
mov rax, rbx
add rsp, 10h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
test rdi, rdi
jz short loc_73B1F
mov rax, [rdi]
call qword ptr [rax+8]
loc_73B1F:
mov rdi, rbx
call __Unwind_Resume
| long long testing::internal::StreamableToString<int>(long long a1, unsigned int *a2)
{
long long v3[4]; // [rsp+8h] [rbp-20h] BYREF
testing::Message::Message((testing::Message *)v3);
std::ostream::operator<<(v3[0] + 16, *a2);
testing::internal::StringStreamToString(a1, v3[0]);
if ( v3[0] )
(*(void ( **)(long long))(*(_QWORD *)v3[0] + 8LL))(v3[0]);
return a1;
}
| StreamableToString<int>:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R14,RSI
MOV RBX,RDI
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x0015e3fe
MOV RDI,qword ptr [R15]
ADD RDI,0x10
MOV ESI,dword ptr [R14]
LAB_00173add:
CALL 0x001113b0
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,RBX
CALL 0x0015e655
LAB_00173aef:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x00173aff
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_00173aff:
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* std::__cxx11::string testing::internal::StreamableToString<int>(int const&) */
internal * __thiscall testing::internal::StreamableToString<int>(internal *this,int *param_1)
{
long *local_20;
Message::Message((Message *)&local_20);
/* try { // try from 00173add to 00173aee has its CatchHandler @ 00173b0c */
std::ostream::operator<<((ostream *)(local_20 + 2),*param_1);
StringStreamToString((stringstream *)this);
if (local_20 != (long *)0x0) {
(**(code **)(*local_20 + 8))();
}
return this;
}
| |
55,024 | ma_test_if_reopen | eloqsql/storage/maria/ma_open.c | MARIA_HA *_ma_test_if_reopen(const char *filename)
{
LIST *pos;
for (pos=maria_open_list ; pos ; pos=pos->next)
{
MARIA_HA *info=(MARIA_HA*) pos->data;
MARIA_SHARE *share= info->s;
if (!strcmp(share->unique_file_name.str,filename) && share->last_version)
return info;
}
return 0;
} | O3 | c | ma_test_if_reopen:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0x3ab396(%rip), %rax # 0x3fca90
movq (%rax), %r15
testq %r15, %r15
je 0x51734
movq %rdi, %rbx
movq 0x10(%r15), %r14
movq (%r14), %r12
movq 0x5b0(%r12), %rdi
movq %rbx, %rsi
callq 0x296a0
testl %eax, %eax
jne 0x5172b
cmpq $0x0, 0x718(%r12)
jne 0x51737
movq 0x8(%r15), %r15
testq %r15, %r15
jne 0x51705
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _ma_test_if_reopen:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
lea rax, maria_open_list
mov r15, [rax]
test r15, r15
jz short loc_51734
mov rbx, rdi
loc_51705:
mov r14, [r15+10h]
mov r12, [r14]
mov rdi, [r12+5B0h]
mov rsi, rbx
call _strcmp
test eax, eax
jnz short loc_5172B
cmp qword ptr [r12+718h], 0
jnz short loc_51737
loc_5172B:
mov r15, [r15+8]
test r15, r15
jnz short loc_51705
loc_51734:
xor r14d, r14d
loc_51737:
mov rax, r14
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long * ma_test_if_reopen(long long a1)
{
long long v1; // r15
long long *v2; // r14
long long v3; // r12
v1 = maria_open_list;
if ( !maria_open_list )
return 0LL;
while ( 1 )
{
v2 = *(long long **)(v1 + 16);
v3 = *v2;
if ( !(unsigned int)strcmp(*(_QWORD *)(*v2 + 1456), a1) )
{
if ( *(_QWORD *)(v3 + 1816) )
break;
}
v1 = *(_QWORD *)(v1 + 8);
if ( !v1 )
return 0LL;
}
return v2;
}
| _ma_test_if_reopen:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
LEA RAX,[0x4fca90]
MOV R15,qword ptr [RAX]
TEST R15,R15
JZ 0x00151734
MOV RBX,RDI
LAB_00151705:
MOV R14,qword ptr [R15 + 0x10]
MOV R12,qword ptr [R14]
MOV RDI,qword ptr [R12 + 0x5b0]
MOV RSI,RBX
CALL 0x001296a0
TEST EAX,EAX
JNZ 0x0015172b
CMP qword ptr [R12 + 0x718],0x0
JNZ 0x00151737
LAB_0015172b:
MOV R15,qword ptr [R15 + 0x8]
TEST R15,R15
JNZ 0x00151705
LAB_00151734:
XOR R14D,R14D
LAB_00151737:
MOV RAX,R14
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
long * _ma_test_if_reopen(char *param_1)
{
long *plVar1;
long lVar2;
int iVar3;
long lVar4;
lVar4 = maria_open_list;
if (maria_open_list != 0) {
do {
plVar1 = *(long **)(lVar4 + 0x10);
lVar2 = *plVar1;
iVar3 = strcmp(*(char **)(lVar2 + 0x5b0),param_1);
if ((iVar3 == 0) && (*(long *)(lVar2 + 0x718) != 0)) {
return plVar1;
}
plVar1 = (long *)(lVar4 + 8);
lVar4 = *plVar1;
} while (*plVar1 != 0);
}
return (long *)0x0;
}
| |
55,025 | my_copy_fix_mb | eloqsql/strings/ctype-mb.c | size_t
my_copy_fix_mb(CHARSET_INFO *cs,
char *dst, size_t dst_length,
const char *src, size_t src_length,
size_t nchars, MY_STRCOPY_STATUS *status)
{
size_t well_formed_nchars;
size_t well_formed_length;
size_t fixed_length;
size_t min_length= MY_MIN(src_length, dst_length);
well_formed_nchars= my_ci_well_formed_char_length(cs, src, src + min_length,
nchars, status);
DBUG_ASSERT(well_formed_nchars <= nchars);
well_formed_length= status->m_source_end_pos - src;
if (well_formed_length)
memmove(dst, src, well_formed_length);
if (!status->m_well_formed_error_pos)
return well_formed_length;
fixed_length= my_append_fix_badly_formed_tail(cs,
dst + well_formed_length,
dst + dst_length,
src + well_formed_length,
src + src_length,
nchars - well_formed_nchars,
status);
return well_formed_length + fixed_length;
} | O0 | c | my_copy_fix_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x55148
movq -0x30(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x55150
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x28(%rbp), %rdx
addq -0x58(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0x55210
movq %rax, -0x40(%rbp)
jmp 0x5517b
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x551a5
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x256b0
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x551ba
movq -0x48(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x55203
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq -0x48(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
addq -0x48(%rbp), %rcx
movq -0x28(%rbp), %r8
addq -0x30(%rbp), %r8
movq -0x38(%rbp), %r9
subq -0x40(%rbp), %r9
movq 0x10(%rbp), %rax
movq %rax, (%rsp)
callq 0x55260
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rax
addq -0x50(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)
| my_copy_fix_mb:
push rbp
mov rbp, rsp
sub rsp, 70h
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_30]
cmp rax, [rbp+var_20]
jnb short loc_55148
mov rax, [rbp+var_30]
mov [rbp+var_60], rax
jmp short loc_55150
loc_55148:
mov rax, [rbp+var_20]
mov [rbp+var_60], rax
loc_55150:
mov rax, [rbp+var_60]
mov [rbp+var_58], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_28]
add rdx, [rbp+var_58]
mov rcx, [rbp+var_38]
mov r8, [rbp+arg_0]
call my_ci_well_formed_char_length
mov [rbp+var_40], rax
jmp short $+2
loc_5517B:
mov rax, [rbp+arg_0]
mov rax, [rax]
mov rcx, [rbp+var_28]
sub rax, rcx
mov [rbp+var_48], rax
cmp [rbp+var_48], 0
jz short loc_551A5
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_48]
call _memmove
loc_551A5:
mov rax, [rbp+arg_0]
cmp qword ptr [rax+8], 0
jnz short loc_551BA
mov rax, [rbp+var_48]
mov [rbp+var_8], rax
jmp short loc_55203
loc_551BA:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
add rsi, [rbp+var_48]
mov rdx, [rbp+var_18]
add rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
add rcx, [rbp+var_48]
mov r8, [rbp+var_28]
add r8, [rbp+var_30]
mov r9, [rbp+var_38]
sub r9, [rbp+var_40]
mov rax, [rbp+arg_0]
mov [rsp+70h+var_70], rax
call my_append_fix_badly_formed_tail
mov [rbp+var_50], rax
mov rax, [rbp+var_48]
add rax, [rbp+var_50]
mov [rbp+var_8], rax
loc_55203:
mov rax, [rbp+var_8]
add rsp, 70h
pop rbp
retn
| long long my_copy_fix_mb(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
long long a6,
_QWORD *a7)
{
unsigned long long v8; // [rsp+10h] [rbp-60h]
long long v9; // [rsp+28h] [rbp-48h]
int v10; // [rsp+30h] [rbp-40h]
int v11; // [rsp+38h] [rbp-38h]
int v12; // [rsp+40h] [rbp-30h]
int v14; // [rsp+50h] [rbp-20h]
v14 = a3;
v12 = a5;
v11 = a6;
if ( a5 >= a3 )
v8 = a3;
else
v8 = a5;
v10 = my_ci_well_formed_char_length(a1, a4, v8 + a4, a6, a7);
v9 = *a7 - a4;
if ( v9 )
memmove(a2, a4, v9);
if ( a7[1] )
return my_append_fix_badly_formed_tail(
a1,
(int)v9 + (int)a2,
v14 + (int)a2,
(int)v9 + (int)a4,
v12 + (int)a4,
v11 - v10,
(long long)a7)
+ v9;
else
return v9;
}
| my_copy_fix_mb:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x00155148
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x60],RAX
JMP 0x00155150
LAB_00155148:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x60],RAX
LAB_00155150:
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x58],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x28]
ADD RDX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x00155210
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0015517b
LAB_0015517b:
MOV RAX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x48],0x0
JZ 0x001551a5
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x001256b0
LAB_001551a5:
MOV RAX,qword ptr [RBP + 0x10]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x001551ba
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00155203
LAB_001551ba:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
ADD RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x18]
ADD RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
ADD RCX,qword ptr [RBP + -0x48]
MOV R8,qword ptr [RBP + -0x28]
ADD R8,qword ptr [RBP + -0x30]
MOV R9,qword ptr [RBP + -0x38]
SUB R9,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RSP],RAX
CALL 0x00155260
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x8],RAX
LAB_00155203:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x70
POP RBP
RET
|
size_t my_copy_fix_mb(int8 param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,
long param_6,long *param_7)
{
long lVar1;
ulong local_68;
size_t local_10;
local_68 = param_3;
if (param_5 < param_3) {
local_68 = param_5;
}
lVar1 = my_ci_well_formed_char_length(param_1,param_4,(long)param_4 + local_68,param_6,param_7);
local_10 = *param_7 - (long)param_4;
if (local_10 != 0) {
memmove(param_2,param_4,local_10);
}
if (param_7[1] != 0) {
lVar1 = my_append_fix_badly_formed_tail
(param_1,(long)param_2 + local_10,(long)param_2 + param_3,
(long)param_4 + local_10,(long)param_4 + param_5,param_6 - lVar1,param_7);
local_10 = local_10 + lVar1;
}
return local_10;
}
| |
55,026 | js_module_ns_has | bluesky950520[P]quickjs/quickjs.c | static int js_module_ns_has(JSContext *ctx, JSValue obj, JSAtom atom)
{
return (find_own_property1(JS_VALUE_GET_OBJ(obj), atom) != NULL);
} | O0 | c | js_module_ns_has:
subq $0x58, %rsp
movq %rsi, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq %rdi, 0x8(%rsp)
movl %ecx, 0x4(%rsp)
movq 0x10(%rsp), %rcx
movl 0x4(%rsp), %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x38(%rsp)
movl 0x44(%rsp), %eax
movq 0x38(%rsp), %rcx
movl 0x20(%rcx), %ecx
andq %rcx, %rax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
callq 0x5c5f0
xorl %ecx, %ecx
subq 0x20(%rsp), %rcx
subq $0x1, %rcx
movl (%rax,%rcx,4), %eax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
callq 0x2afc0
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x7207f
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rcx
subq $0x1, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movl 0x4(%rax), %eax
cmpl 0x44(%rsp), %eax
sete %al
testb $0x1, %al
jne 0x7205e
jmp 0x7206a
movq 0x30(%rsp), %rax
movq %rax, 0x50(%rsp)
jmp 0x72088
movq 0x30(%rsp), %rax
movl (%rax), %eax
andl $0x3ffffff, %eax # imm = 0x3FFFFFF
movl %eax, %eax
movq %rax, 0x20(%rsp)
jmp 0x72027
movq $0x0, 0x50(%rsp)
cmpq $0x0, 0x50(%rsp)
setne %al
andb $0x1, %al
movzbl %al, %eax
addq $0x58, %rsp
retq
nopl (%rax,%rax)
| js_module_ns_has:
sub rsp, 58h
mov [rsp+58h+var_48], rsi
mov [rsp+58h+var_40], rdx
mov [rsp+58h+var_50], rdi
mov [rsp+58h+var_54], ecx
mov rcx, [rsp+58h+var_48]
mov eax, [rsp+58h+var_54]
mov [rsp+58h+var_10], rcx
mov [rsp+58h+var_14], eax
mov rax, [rsp+58h+var_10]
mov rax, [rax+18h]
mov [rsp+58h+var_20], rax
mov eax, [rsp+58h+var_14]
mov rcx, [rsp+58h+var_20]
mov ecx, [rcx+20h]
and rax, rcx
mov [rsp+58h+var_38], rax
mov rdi, [rsp+58h+var_20]
call prop_hash_end
xor ecx, ecx
sub rcx, [rsp+58h+var_38]
sub rcx, 1
mov eax, [rax+rcx*4]
mov [rsp+58h+var_38], rax
mov rdi, [rsp+58h+var_20]
call get_shape_prop
mov [rsp+58h+var_30], rax
loc_72027:
cmp [rsp+58h+var_38], 0
jz short loc_7207F
mov rax, [rsp+58h+var_30]
mov rcx, [rsp+58h+var_38]
sub rcx, 1
shl rcx, 3
add rax, rcx
mov [rsp+58h+var_28], rax
mov rax, [rsp+58h+var_28]
mov eax, [rax+4]
cmp eax, [rsp+58h+var_14]
setz al
test al, 1
jnz short loc_7205E
jmp short loc_7206A
loc_7205E:
mov rax, [rsp+58h+var_28]
mov [rsp+58h+var_8], rax
jmp short loc_72088
loc_7206A:
mov rax, [rsp+58h+var_28]
mov eax, [rax]
and eax, 3FFFFFFh
mov eax, eax
mov [rsp+58h+var_38], rax
jmp short loc_72027
loc_7207F:
mov [rsp+58h+var_8], 0
loc_72088:
cmp [rsp+58h+var_8], 0
setnz al
and al, 1
movzx eax, al
add rsp, 58h
retn
| _BOOL8 js_module_ns_has(long long a1, long long a2, long long a3, unsigned int a4)
{
long long v5; // [rsp+20h] [rbp-38h]
long long v6; // [rsp+20h] [rbp-38h]
long long shape_prop; // [rsp+28h] [rbp-30h]
_DWORD *v8; // [rsp+30h] [rbp-28h]
long long v9; // [rsp+38h] [rbp-20h]
long long v11; // [rsp+50h] [rbp-8h]
v9 = *(_QWORD *)(a2 + 24);
v5 = *(_DWORD *)(v9 + 32) & a4;
v6 = *(unsigned int *)(prop_hash_end(v9) + 4 * (-v5 - 1));
shape_prop = get_shape_prop(v9);
while ( v6 )
{
v8 = (_DWORD *)(8 * (v6 - 1) + shape_prop);
if ( v8[1] == a4 )
{
v11 = 8 * (v6 - 1) + shape_prop;
return v11 != 0;
}
v6 = *v8 & 0x3FFFFFF;
}
v11 = 0LL;
return v11 != 0;
}
| js_module_ns_has:
SUB RSP,0x58
MOV qword ptr [RSP + 0x10],RSI
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x8],RDI
MOV dword ptr [RSP + 0x4],ECX
MOV RCX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RSP + 0x4]
MOV qword ptr [RSP + 0x48],RCX
MOV dword ptr [RSP + 0x44],EAX
MOV RAX,qword ptr [RSP + 0x48]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x38],RAX
MOV EAX,dword ptr [RSP + 0x44]
MOV RCX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RCX + 0x20]
AND RAX,RCX
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x0015c5f0
XOR ECX,ECX
SUB RCX,qword ptr [RSP + 0x20]
SUB RCX,0x1
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x0012afc0
MOV qword ptr [RSP + 0x28],RAX
LAB_00172027:
CMP qword ptr [RSP + 0x20],0x0
JZ 0x0017207f
MOV RAX,qword ptr [RSP + 0x28]
MOV RCX,qword ptr [RSP + 0x20]
SUB RCX,0x1
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV EAX,dword ptr [RAX + 0x4]
CMP EAX,dword ptr [RSP + 0x44]
SETZ AL
TEST AL,0x1
JNZ 0x0017205e
JMP 0x0017206a
LAB_0017205e:
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x50],RAX
JMP 0x00172088
LAB_0017206a:
MOV RAX,qword ptr [RSP + 0x30]
MOV EAX,dword ptr [RAX]
AND EAX,0x3ffffff
MOV EAX,EAX
MOV qword ptr [RSP + 0x20],RAX
JMP 0x00172027
LAB_0017207f:
MOV qword ptr [RSP + 0x50],0x0
LAB_00172088:
CMP qword ptr [RSP + 0x50],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
ADD RSP,0x58
RET
|
bool js_module_ns_has(int8 param_1,long param_2,int8 param_3,uint param_4)
{
uint uVar1;
long lVar2;
long lVar3;
ulong local_38;
uint *local_8;
lVar3 = *(long *)(param_2 + 0x18);
uVar1 = *(uint *)(lVar3 + 0x20);
lVar2 = prop_hash_end(lVar3);
uVar1 = *(uint *)(lVar2 + (-1 - (ulong)(param_4 & uVar1)) * 4);
lVar3 = get_shape_prop(lVar3);
while (local_38 = (ulong)uVar1, local_38 != 0) {
local_8 = (uint *)(lVar3 + (local_38 - 1) * 8);
if (local_8[1] == param_4) goto LAB_00172088;
uVar1 = *local_8 & 0x3ffffff;
}
local_8 = (uint *)0x0;
LAB_00172088:
return local_8 != (uint *)0x0;
}
| |
55,027 | fmt::v10::detail::find_escape(char const*, char const*) | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h | inline auto find_escape(const char* begin, const char* end)
-> find_escape_result<char> {
if (!is_utf8()) return find_escape<char>(begin, end);
auto result = find_escape_result<char>{end, nullptr, 0};
for_each_codepoint(string_view(begin, to_unsigned(end - begin)),
[&](uint32_t cp, string_view sv) {
if (needs_escape(cp)) {
result = {sv.begin(), sv.end(), cp};
return false;
}
return true;
});
return result;
} | O0 | c | fmt::v10::detail::find_escape(char const*, char const*):
subq $0x48, %rsp
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movl $0x0, 0x10(%rdi)
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rax
subq %rax, %rdi
callq 0x4ad90
movq 0x8(%rsp), %rsi
movq %rax, %rdx
leaq 0x28(%rsp), %rdi
callq 0x29ac0
movq 0x10(%rsp), %rdi
movq %rdi, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0xb5b30
movq 0x18(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax,%rax)
| _ZN3fmt3v106detail11find_escapeEPKcS3_:
sub rsp, 48h
mov [rsp+48h+var_38], rdi
mov rax, rdi
mov [rsp+48h+var_30], rax
mov [rsp+48h+var_8], rsi
mov [rsp+48h+var_10], rdx
mov rax, [rsp+48h+var_10]
mov [rdi], rax
mov qword ptr [rdi+8], 0
mov dword ptr [rdi+10h], 0
mov rax, [rsp+48h+var_8]
mov [rsp+48h+var_40], rax
mov rdi, [rsp+48h+var_10]
mov rax, [rsp+48h+var_8]
sub rdi, rax
call _ZN3fmt3v106detail11to_unsignedIlEENSt13make_unsignedIT_E4typeES4_; fmt::v10::detail::to_unsigned<long>(long)
mov rsi, [rsp+48h+var_40]
mov rdx, rax
lea rdi, [rsp+48h+var_20]
call _ZN3fmt3v1017basic_string_viewIcEC2EPKcm; fmt::v10::basic_string_view<char>::basic_string_view(char const*,ulong)
mov rdi, [rsp+48h+var_38]
mov [rsp+48h+var_28], rdi
mov rdi, [rsp+48h+var_20]
mov rsi, [rsp+48h+var_18]
mov rdx, [rsp+48h+var_28]
call _ZN3fmt3v106detail18for_each_codepointIZNS1_11find_escapeEPKcS4_EUljNS0_17basic_string_viewIcEEE_EEvS6_T_; fmt::v10::detail::for_each_codepoint<fmt::v10::detail::find_escape(char const*,char const*)::{lambda(uint,fmt::v10::basic_string_view<char>)#1}>(fmt::v10::basic_string_view<char>,fmt::v10::detail::find_escape(char const*,char const*)::{lambda(uint,fmt::v10::basic_string_view<char>)#1})
mov rax, [rsp+48h+var_30]
add rsp, 48h
retn
| fmt::v10::detail * fmt::v10::detail::find_escape(fmt::v10::detail *this, const char *a2, const char *a3)
{
long long v3; // rax
_QWORD v5[2]; // [rsp+28h] [rbp-20h] BYREF
const char *v6; // [rsp+38h] [rbp-10h]
const char *v7; // [rsp+40h] [rbp-8h]
v7 = a2;
v6 = a3;
*(_QWORD *)this = a3;
*((_QWORD *)this + 1) = 0LL;
*((_DWORD *)this + 4) = 0;
v3 = fmt::v10::detail::to_unsigned<long>(v6 - v7);
fmt::v10::basic_string_view<char>::basic_string_view(v5, (long long)v7, v3);
fmt::v10::detail::for_each_codepoint<fmt::v10::detail::find_escape(char const*,char const*)::{lambda(unsigned int,fmt::v10::basic_string_view<char>)#1}>(
v5[0],
v5[1],
this);
return this;
}
| find_escape:
SUB RSP,0x48
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x40],RSI
MOV qword ptr [RSP + 0x38],RDX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x8],0x0
MOV dword ptr [RDI + 0x10],0x0
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RSP + 0x40]
SUB RDI,RAX
CALL 0x0014ad90
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,RAX
LEA RDI,[RSP + 0x28]
CALL 0x00129ac0
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x20],RDI
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x001b5b30
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0x48
RET
|
/* fmt::v10::detail::find_escape(char const*, char const*) */
detail * __thiscall fmt::v10::detail::find_escape(detail *this,char *param_1,char *param_2)
{
ulong uVar1;
detail *local_20;
int8 local_18;
char *local_10;
char *local_8;
*(char **)this = param_2;
*(int8 *)(this + 8) = 0;
*(int4 *)(this + 0x10) = 0;
local_10 = param_2;
local_8 = param_1;
uVar1 = to_unsigned<long>((long)param_2 - (long)param_1);
basic_string_view<char>::basic_string_view((basic_string_view<char> *)&local_20,param_1,uVar1);
for_each_codepoint<fmt::v10::detail::find_escape(char_const*,char_const*)::_lambda(unsigned_int,fmt::v10::basic_string_view<char>)_1_>
(local_20,local_18,this);
return this;
}
| |
55,028 | 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());
} | 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> 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 $0xc8, %rsp
movq %rsi, %r14
movq %rdi, %r13
movq %rsi, %rdi
callq 0x62ef0
testb %al, %al
je 0x82647
addq $0x40, %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x41faa
jmp 0x8280b
movq %r14, %rdi
callq 0x634ea
testb %al, %al
je 0x82662
movq %r13, %rdi
xorl %esi, %esi
callq 0x3d266
jmp 0x8280b
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x826cd
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
andq $0x0, 0x10(%r14)
movaps %xmm0, (%r14)
movq (%rax), %r15
movq 0x8(%rax), %rbx
leaq 0x38(%rsp), %r12
cmpq %rbx, %r15
je 0x826b1
movq %r12, %rdi
movq %r15, %rsi
callq 0x82610
movq %r14, %rdi
movq %r12, %rsi
callq 0x41b30
movq %r12, %rdi
callq 0x3d252
addq $0x50, %r15
jmp 0x82688
leaq 0x10(%rsp), %rsi
movq %r13, %rdi
callq 0x83016
leaq 0x10(%rsp), %rdi
callq 0x42cfa
jmp 0x8280b
cmpq $0x0, 0x20(%r14)
je 0x82883
movq %r13, 0x8(%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x8304e
movq 0x20(%r14), %rax
movq (%rax), %r15
movq 0x8(%rax), %rax
movq %rax, 0x30(%rsp)
leaq 0x78(%rsp), %rbp
leaq 0xa8(%rsp), %r13
leaq 0x88(%rsp), %r12
cmpq 0x30(%rsp), %r15
je 0x827c6
leaq 0x10(%r15), %rsi
movzbl (%r15), %eax
testl %eax, %eax
je 0x82773
cmpl $0x4, %eax
je 0x82773
cmpl $0x3, %eax
jne 0x82769
leaq 0x68(%rsp), %rdi
callq 0x82610
movq %r12, %rdi
movq %r15, %rsi
callq 0x63bca
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x7e216
movq %r12, %rbx
movq %rax, %rdi
leaq 0x68(%rsp), %r12
movq %r12, %rsi
callq 0x3fdd8
movq %rbx, %rdi
jmp 0x827b0
addb $-0x5, %al
cmpb $0x3, %al
ja 0x82820
movq %rbp, %rdi
callq 0x82610
movq %r13, %rdi
movq %r15, %rsi
pushq $-0x1
popq %rdx
pushq $0x20
popq %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x5d0e4
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x7e216
movq %rax, %rdi
movq %rbp, %rsi
callq 0x3fdd8
movq %r13, %rdi
movq %rbp, %r12
callq 0x24208
movq %r12, %rdi
callq 0x3d252
addq $0x60, %r15
jmp 0x82706
cmpq $0x0, 0x30(%r14)
movq 0x8(%rsp), %r13
je 0x8280b
leaq 0x10(%rsp), %rsi
movb $0x1, (%rsi)
leaq 0x58(%rsp), %rdi
callq 0x83062
leaq 0x32a08(%rip), %rsi # 0xb51f3
movq %r13, %rdi
callq 0x7a55e
leaq 0x58(%rsp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x3fdd8
movq %r14, %rdi
callq 0x3d252
movq %r13, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x23480
movq %rax, %r12
leaq 0x38(%rsp), %rdi
pushq $-0x1
popq %rdx
pushq $0x20
popq %rcx
movq %r15, %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x5d0e4
leaq 0x3297e(%rip), %rsi # 0xb51c9
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x58626
movb $0x1, %bl
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
callq 0x23e60
xorl %ebx, %ebx
movq 0x7b77e(%rip), %rsi # 0xfdff0
movq 0x7b6df(%rip), %rdx # 0xfdf58
movq %r12, %rdi
callq 0x23f30
jmp 0x828de
pushq $0x10
popq %rdi
callq 0x23480
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x62f00
leaq 0x32959(%rip), %rsi # 0xb5200
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x58626
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e60
xorl %ebp, %ebp
movq 0x7b721(%rip), %rsi # 0xfdff0
movq 0x7b682(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23f30
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x24208
jmp 0x828f3
movq %rax, %r14
movb $0x1, %bpl
leaq 0x38(%rsp), %rdi
callq 0x24208
testb %bpl, %bpl
jne 0x8290a
jmp 0x829bc
movq %rax, %r14
movq %rbx, %rdi
callq 0x236b0
jmp 0x829bc
movq %rax, %r14
leaq 0x58(%rsp), %rdi
jmp 0x8298a
jmp 0x829a0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x24208
jmp 0x82937
movq %rax, %r14
movb $0x1, %bl
leaq 0x38(%rsp), %rdi
callq 0x24208
testb %bl, %bl
jne 0x8294a
jmp 0x82994
movq %rax, %r14
movq %r12, %rdi
callq 0x236b0
jmp 0x82994
movq %rax, %r14
leaq 0x88(%rsp), %rdi
callq 0x24208
jmp 0x82969
movq %rax, %r14
leaq 0x68(%rsp), %rdi
jmp 0x8298a
movq %rax, %r14
leaq 0xa8(%rsp), %rdi
callq 0x24208
jmp 0x82985
movq %rax, %r14
leaq 0x78(%rsp), %rdi
callq 0x3d252
jmp 0x82994
movq %rax, %r14
movq 0x8(%rsp), %rdi
callq 0x3d252
jmp 0x829bc
movq %rax, %r14
jmp 0x829b2
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x3d252
leaq 0x10(%rsp), %rdi
callq 0x42cfa
movq %r14, %rdi
callq 0x23fd0
| _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, 0C8h
mov r14, rsi
mov r13, rdi
mov rdi, rsi; this
call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void)
test al, al
jz short loc_82647
add r14, 40h ; '@'
mov rdi, r13
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_8280B
loc_82647:
mov rdi, r14; this
call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void)
test al, al
jz short loc_82662
mov rdi, r13
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))
jmp loc_8280B
loc_82662:
mov rax, [r14+10h]
test rax, rax
jz short loc_826CD
xorps xmm0, xmm0
lea r14, [rsp+0F8h+var_E8]
and qword ptr [r14+10h], 0
movaps xmmword ptr [r14], xmm0
mov r15, [rax]
mov rbx, [rax+8]
lea r12, [rsp+0F8h+var_C0]
loc_82688:
cmp r15, rbx
jz short loc_826B1
mov rdi, r12
mov rsi, r15
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, r14
mov rsi, r12
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, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
add r15, 50h ; 'P'
jmp short loc_82688
loc_826B1:
lea rsi, [rsp+0F8h+var_E8]
mov rdi, r13
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_
lea rdi, [rsp+0F8h+var_E8]
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_8280B
loc_826CD:
cmp qword ptr [r14+20h], 0
jz loc_82883
mov [rsp+0F8h+var_F0], r13
mov rdi, r13
xor esi, esi
xor edx, edx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6objectESt16initializer_listINS0_6detail8json_refISD_EEE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::object(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>>>)
mov rax, [r14+20h]
mov r15, [rax]
mov rax, [rax+8]
mov [rsp+0F8h+var_C8], rax
lea rbp, [rsp+0F8h+var_80]
lea r13, [rsp+0F8h+var_50]
loc_82706:
lea r12, [rsp+0F8h+var_70]
cmp r15, [rsp+0F8h+var_C8]
jz loc_827C6
lea rsi, [r15+10h]
movzx eax, byte ptr [r15]
test eax, eax
jz short loc_82773
cmp eax, 4
jz short loc_82773
cmp eax, 3
jnz short loc_82769
lea rdi, [rsp+0F8h+var_90]
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 _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, [rsp+0F8h+var_F0]
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 rbx, r12
mov rdi, rax
lea r12, [rsp+0F8h+var_90]
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, rbx
jmp short loc_827B0
loc_82769:
add al, 0FBh
cmp al, 3
ja loc_82820
loc_82773:
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, r13
mov rsi, r15
push 0FFFFFFFFFFFFFFFFh
pop rdx
push 20h ; ' '
pop rcx
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, [rsp+0F8h+var_F0]
mov rsi, r13
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, r13; void *
mov r12, rbp
loc_827B0:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
add r15, 60h ; '`'
jmp loc_82706
loc_827C6:
cmp qword ptr [r14+30h], 0
mov r13, [rsp+0F8h+var_F0]
jz short loc_8280B
lea rsi, [rsp+0F8h+var_E8]
mov byte ptr [rsi], 1
lea rdi, [rsp+0F8h+var_A0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
lea rsi, aCallable; "__callable__"
mov rdi, r13
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+0F8h+var_A0]
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
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_8280B:
mov rax, r13
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_82820:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r12, rax
lea rdi, [rsp+0F8h+var_C0]
push 0FFFFFFFFFFFFFFFFh
pop rdx
push 20h ; ' '
pop rcx
mov rsi, r15
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"...
lea rdi, [rsp+0F8h+var_E8]
lea rdx, [rsp+0F8h+var_C0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bl, 1
lea rsi, [rsp+0F8h+var_E8]
mov rdi, r12
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebx, ebx
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r12; void *
call ___cxa_throw
jmp short loc_828DE
loc_82883:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0F8h+var_C0]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetJsonNotDefi; "get<json> not defined for this value ty"...
lea rdi, [rsp+0F8h+var_E8]
lea rdx, [rsp+0F8h+var_C0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+0F8h+var_E8]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_828DE:
mov r14, rax
lea rdi, [rsp+0F8h+var_E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_828F3
mov r14, rax
mov bpl, 1
loc_828F3:
lea rdi, [rsp+0F8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_8290A
jmp loc_829BC
mov r14, rax
loc_8290A:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp loc_829BC
mov r14, rax
lea rdi, [rsp+0F8h+var_A0]
jmp short loc_8298A
jmp short loc_829A0
mov r14, rax
lea rdi, [rsp+0F8h+var_E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_82937
mov r14, rax
mov bl, 1
loc_82937:
lea rdi, [rsp+0F8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bl, bl
jnz short loc_8294A
jmp short loc_82994
mov r14, rax
loc_8294A:
mov rdi, r12; void *
call ___cxa_free_exception
jmp short loc_82994
mov r14, rax
lea rdi, [rsp+0F8h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_82969
mov r14, rax
loc_82969:
lea rdi, [rsp+0F8h+var_90]
jmp short loc_8298A
mov r14, rax
lea rdi, [rsp+0F8h+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_82985
mov r14, rax
loc_82985:
lea rdi, [rsp+0F8h+var_80]
loc_8298A:
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp short loc_82994
mov r14, rax
loc_82994:
mov rdi, [rsp+0F8h+var_F0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp short loc_829BC
loc_829A0:
mov r14, rax
jmp short loc_829B2
mov r14, rax
lea rdi, [rsp+0F8h+var_C0]
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_829B2:
lea rdi, [rsp+0F8h+var_E8]
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_829BC:
mov rdi, r14
call __Unwind_Resume
| unsigned __int8 * 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>>(
unsigned __int8 *a1,
long long a2)
{
long long *v4; // rax
long long v5; // r15
long long v6; // rbx
long long v7; // rax
_BYTE *v8; // r15
_BYTE *v9; // rsi
int v10; // eax
long long v11; // rax
_BYTE *v12; // r12
_QWORD *v13; // rdi
long long v14; // rax
long long v15; // rax
void *v17; // r12
void *exception; // rbx
__int128 v20; // [rsp+10h] [rbp-E8h] BYREF
long long v21; // [rsp+20h] [rbp-D8h]
_BYTE *v22; // [rsp+30h] [rbp-C8h]
_BYTE v23[32]; // [rsp+38h] [rbp-C0h] BYREF
_BYTE v24[16]; // [rsp+58h] [rbp-A0h] BYREF
_BYTE v25[16]; // [rsp+68h] [rbp-90h] BYREF
_BYTE v26[16]; // [rsp+78h] [rbp-80h] BYREF
_QWORD v27[4]; // [rsp+88h] [rbp-70h] BYREF
_QWORD v28[10]; // [rsp+A8h] [rbp-50h] BYREF
if ( minja::Value::is_primitive((minja::Value *)a2) )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
a1,
(unsigned __int8 *)(a2 + 64));
return a1;
}
if ( minja::Value::is_null((minja::Value *)a2) )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json((long long)a1);
return a1;
}
v4 = *(long long **)(a2 + 16);
if ( v4 )
{
v21 = 0LL;
v20 = 0LL;
v5 = *v4;
v6 = v4[1];
while ( v5 != v6 )
{
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>>(
v23,
v5);
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)&v20,
(long long)v23);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v23);
v5 += 80LL;
}
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,
&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>>::~vector((long long *)&v20);
return a1;
}
if ( !*(_QWORD *)(a2 + 32) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v23, a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)&v20, (long long)"get<json> not defined for this value type: ", (long long)v23);
std::runtime_error::runtime_error(exception, &v20);
__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>::object(
a1,
0LL,
0LL);
v7 = *(_QWORD *)(a2 + 32);
v8 = *(_BYTE **)v7;
v22 = *(_BYTE **)(v7 + 8);
while ( v8 != v22 )
{
v9 = v8 + 16;
v10 = (unsigned __int8)*v8;
if ( *v8 && v10 != 4 )
{
if ( v10 == 3 )
{
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,
v9);
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)v27,
(long long)v8);
v11 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[](
(long long)a1,
v27);
v12 = 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>::operator=(
v11,
(long long)v25);
v13 = v27;
goto LABEL_19;
}
if ( (unsigned __int8)(v10 - 5) > 3u )
{
v17 = __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)v23,
(long long)v8,
-1,
32,
0,
0);
std::operator+<char>((long long)&v20, (long long)"Invalid key type for conversion to JSON: ", (long long)v23);
std::runtime_error::runtime_error(v17, &v20);
__cxa_throw(
v17,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
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,
v9);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v28,
(long long)v8,
-1,
32,
0,
0);
v14 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[](
(long long)a1,
v28);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v14,
(long long)v26);
v13 = v28;
v12 = v26;
LABEL_19:
std::string::~string(v13);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v12);
v8 += 96;
}
if ( *(_QWORD *)(a2 + 48) )
{
LOBYTE(v20) = 1;
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_(
v24,
&v20);
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>::operator[]<char const>(
(long long)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=(
v15,
(long long)v24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v24);
}
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,0xc8
MOV R14,RSI
MOV R13,RDI
MOV RDI,RSI
CALL 0x00162ef0
TEST AL,AL
JZ 0x00182647
ADD R14,0x40
MOV RDI,R13
MOV RSI,R14
CALL 0x00141faa
JMP 0x0018280b
LAB_00182647:
MOV RDI,R14
CALL 0x001634ea
TEST AL,AL
JZ 0x00182662
MOV RDI,R13
XOR ESI,ESI
CALL 0x0013d266
JMP 0x0018280b
LAB_00182662:
MOV RAX,qword ptr [R14 + 0x10]
TEST RAX,RAX
JZ 0x001826cd
XORPS XMM0,XMM0
LEA R14,[RSP + 0x10]
AND qword ptr [R14 + 0x10],0x0
MOVAPS xmmword ptr [R14],XMM0
MOV R15,qword ptr [RAX]
MOV RBX,qword ptr [RAX + 0x8]
LEA R12,[RSP + 0x38]
LAB_00182688:
CMP R15,RBX
JZ 0x001826b1
LAB_0018268d:
MOV RDI,R12
MOV RSI,R15
CALL 0x00182610
LAB_00182698:
MOV RDI,R14
MOV RSI,R12
CALL 0x00141b30
MOV RDI,R12
CALL 0x0013d252
ADD R15,0x50
JMP 0x00182688
LAB_001826b1:
LEA RSI,[RSP + 0x10]
MOV RDI,R13
CALL 0x00183016
LAB_001826be:
LEA RDI,[RSP + 0x10]
CALL 0x00142cfa
JMP 0x0018280b
LAB_001826cd:
CMP qword ptr [R14 + 0x20],0x0
JZ 0x00182883
MOV qword ptr [RSP + 0x8],R13
MOV RDI,R13
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0018304e
MOV RAX,qword ptr [R14 + 0x20]
MOV R15,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x30],RAX
LEA RBP,[RSP + 0x78]
LEA R13,[RSP + 0xa8]
LAB_00182706:
LEA R12,[RSP + 0x88]
CMP R15,qword ptr [RSP + 0x30]
JZ 0x001827c6
LEA RSI,[R15 + 0x10]
MOVZX EAX,byte ptr [R15]
TEST EAX,EAX
JZ 0x00182773
CMP EAX,0x4
JZ 0x00182773
CMP EAX,0x3
JNZ 0x00182769
LAB_0018272f:
LEA RDI,[RSP + 0x68]
CALL 0x00182610
LAB_00182739:
MOV RDI,R12
MOV RSI,R15
CALL 0x00163bca
LAB_00182744:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R12
CALL 0x0017e216
MOV RBX,R12
MOV RDI,RAX
LEA R12,[RSP + 0x68]
MOV RSI,R12
CALL 0x0013fdd8
MOV RDI,RBX
JMP 0x001827b0
LAB_00182769:
ADD AL,0xfb
CMP AL,0x3
JA 0x00182820
LAB_00182773:
MOV RDI,RBP
CALL 0x00182610
LAB_0018277b:
MOV RDI,R13
MOV RSI,R15
PUSH -0x1
POP RDX
PUSH 0x20
POP RCX
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0015d0e4
LAB_00182792:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R13
CALL 0x0017e216
MOV RDI,RAX
MOV RSI,RBP
CALL 0x0013fdd8
MOV RDI,R13
MOV R12,RBP
LAB_001827b0:
CALL 0x00124208
MOV RDI,R12
CALL 0x0013d252
ADD R15,0x60
JMP 0x00182706
LAB_001827c6:
CMP qword ptr [R14 + 0x30],0x0
MOV R13,qword ptr [RSP + 0x8]
JZ 0x0018280b
LEA RSI,[RSP + 0x10]
MOV byte ptr [RSI],0x1
LEA RDI,[RSP + 0x58]
CALL 0x00183062
LAB_001827e4:
LEA RSI,[0x1b51f3]
MOV RDI,R13
CALL 0x0017a55e
LAB_001827f3:
LEA R14,[RSP + 0x58]
MOV RDI,RAX
MOV RSI,R14
CALL 0x0013fdd8
MOV RDI,R14
CALL 0x0013d252
LAB_0018280b:
MOV RAX,R13
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00182820:
PUSH 0x10
POP RDI
CALL 0x00123480
MOV R12,RAX
LAB_0018282b:
LEA RDI,[RSP + 0x38]
PUSH -0x1
POP RDX
PUSH 0x20
POP RCX
MOV RSI,R15
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0015d0e4
LAB_00182844:
LEA RSI,[0x1b51c9]
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x38]
CALL 0x00158626
MOV BL,0x1
LAB_0018285c:
LEA RSI,[RSP + 0x10]
MOV RDI,R12
CALL 0x00123e60
XOR EBX,EBX
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,R12
CALL 0x00123f30
LAB_00182883:
PUSH 0x10
POP RDI
CALL 0x00123480
MOV RBX,RAX
LAB_0018288e:
LEA RDI,[RSP + 0x38]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00162f00
LAB_001828a0:
LEA RSI,[0x1b5200]
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x38]
CALL 0x00158626
MOV BPL,0x1
LAB_001828b9:
LEA RSI,[RSP + 0x10]
MOV RDI,RBX
CALL 0x00123e60
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123f30
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, 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 */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>>
(void)
{
long *plVar1;
long lVar2;
char cVar3;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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;
runtime_error *prVar5;
Value *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;
string *this;
long lVar6;
char *pcVar7;
int8 local_e8;
int8 uStack_e0;
int8 local_d8;
char *local_c8;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_c0 [32];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_a0 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_90 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_80 [16];
string local_70 [32];
string local_50 [32];
cVar3 = is_primitive(in_RSI);
if (cVar3 == '\0') {
cVar3 = is_null(in_RSI);
if (cVar3 == '\0') {
plVar1 = *(long **)(in_RSI + 0x10);
if (plVar1 == (long *)0x0) {
if (*(long *)(in_RSI + 0x20) == 0) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018288e to 0018289f has its CatchHandler @ 00182907 */
dump_abi_cxx11_((int)local_c0,SUB81(in_RSI,0));
/* try { // try from 001828a0 to 001828b5 has its CatchHandler @ 001828ed */
std::operator+((char *)&local_e8,(string *)"get<json> not defined for this value type: ");
/* try { // try from 001828b9 to 001828dd has its CatchHandler @ 001828de */
std::runtime_error::runtime_error(prVar5,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::object();
local_c8 = (char *)(*(int8 **)(in_RSI + 0x20))[1];
for (pcVar7 = (char *)**(int8 **)(in_RSI + 0x20); pcVar7 != local_c8;
pcVar7 = pcVar7 + 0x60) {
cVar3 = *pcVar7;
if ((cVar3 == '\0') || (cVar3 == '\x04')) {
LAB_00182773:
/* try { // try from 00182773 to 0018277a has its CatchHandler @ 00182991 */
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 0018277b to 00182791 has its CatchHandler @ 00182982 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_50,pcVar7,0xffffffffffffffff,0x20,0,0);
/* try { // try from 00182792 to 0018279e has its CatchHandler @ 00182970 */
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[](in_RDI,local_50);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_80);
this = local_50;
pbVar4 = local_80;
}
else {
if (cVar3 != '\x03') {
if (3 < (byte)(cVar3 - 5U)) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10,pcVar7 + 0x10);
/* try { // try from 0018282b to 00182843 has its CatchHandler @ 00182947 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_c0,pcVar7,0xffffffffffffffff,0x20,0,0);
/* try { // try from 00182844 to 00182859 has its CatchHandler @ 00182932 */
std::operator+((char *)&local_e8,
(string *)"Invalid key type for conversion to JSON: ");
/* try { // try from 0018285c to 00182880 has its CatchHandler @ 00182923 */
std::runtime_error::runtime_error(prVar5,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
goto LAB_00182773;
}
/* try { // try from 0018272f to 00182738 has its CatchHandler @ 00182991 */
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 00182739 to 00182743 has its CatchHandler @ 00182966 */
_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_70,pcVar7);
/* try { // try from 00182744 to 00182750 has its CatchHandler @ 00182954 */
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[](in_RDI,local_70);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_90);
this = local_70;
pbVar4 = local_90;
}
std::__cxx11::string::~string(this);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(pbVar4);
}
if (*(long *)(in_RSI + 0x30) != 0) {
local_e8 = CONCAT71(local_e8._1_7_,1);
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
(local_a0);
/* try { // try from 001827e4 to 001827f2 has its CatchHandler @ 00182917 */
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[]<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=(pbVar4,local_a0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_a0);
}
}
else {
local_d8 = 0;
local_e8 = 0;
uStack_e0 = 0;
lVar2 = plVar1[1];
for (lVar6 = *plVar1; lVar6 != lVar2; lVar6 = lVar6 + 0x50) {
/* try { // try from 0018268d to 00182697 has its CatchHandler @ 001829a0 */
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 00182698 to 001826a2 has its CatchHandler @ 001829a5 */
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,local_c0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_c0);
}
/* try { // try from 001826b1 to 001826bd has its CatchHandler @ 00182921 */
_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);
}
}
else {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((_func_decltype_nullptr *)in_RDI);
}
}
else {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(in_RDI,in_RSI + 0x40);
}
return in_RDI;
}
| |
55,029 | testing::internal::PrintColorEncoded(char const*) | seiftnesse[P]memoryallocator/build_O3/_deps/googletest-src/googletest/src/gtest.cc | static void PrintColorEncoded(const char* str) {
GTestColor color = GTestColor::kDefault; // The current color.
// Conceptually, we split the string into segments divided by escape
// sequences. Then we print one segment at a time. At the end of
// each iteration, the str pointer advances to the beginning of the
// next segment.
for (;;) {
const char* p = strchr(str, '@');
if (p == nullptr) {
ColoredPrintf(color, "%s", str);
return;
}
ColoredPrintf(color, "%s", std::string(str, p).c_str());
const char ch = p[1];
str = p + 2;
if (ch == '@') {
ColoredPrintf(color, "@");
} else if (ch == 'D') {
color = GTestColor::kDefault;
} else if (ch == 'R') {
color = GTestColor::kRed;
} else if (ch == 'G') {
color = GTestColor::kGreen;
} else if (ch == 'Y') {
color = GTestColor::kYellow;
} else {
--str;
}
}
} | O3 | cpp | testing::internal::PrintColorEncoded(char const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0xcc7f(%rip), %r12 # 0x41670
leaq 0xcd08(%rip), %r13 # 0x41700
leaq 0x18(%rsp), %rbx
leaq 0xf3fd(%rip), %r14 # 0x43e01
xorl %r15d, %r15d
movl %r15d, %ebp
movq %rbx, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xfc64
movq 0x8(%rsp), %rdx
movl %r15d, %edi
movq %r14, %rsi
xorl %eax, %eax
callq 0x25eb1
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x34a48
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
movzbl 0x1(%r13), %eax
leaq 0x2(%r13), %r12
cmpl $0x46, %eax
jle 0x34a6d
cmpl $0x47, %eax
je 0x34a85
cmpl $0x52, %eax
je 0x34a8d
cmpl $0x59, %eax
jne 0x34a7a
movl $0x3, %r15d
jmp 0x34aa8
cmpl $0x40, %eax
je 0x34a95
xorl %r15d, %r15d
cmpl $0x44, %eax
je 0x34aa8
incq %r13
movl %ebp, %r15d
movq %r13, %r12
jmp 0x34aa8
movl $0x2, %r15d
jmp 0x34aa8
movl $0x1, %r15d
jmp 0x34aa8
movl %ebp, %edi
leaq 0x10150(%rip), %rsi # 0x44bee
xorl %eax, %eax
callq 0x25eb1
movl %ebp, %r15d
movq %r12, %rdi
movl $0x40, %esi
callq 0x91d0
movq %rax, %r13
testq %rax, %rax
jne 0x34a07
leaq 0xf339(%rip), %rsi # 0x43e01
movl %r15d, %edi
movq %r12, %rdx
xorl %eax, %eax
callq 0x25eb1
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x34afe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
movq %r14, %rdi
callq 0x99a0
| _ZN7testing8internalL17PrintColorEncodedEPKc:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
lea r12, _ZN7testing8internalL24kColorEncodedHelpMessageE; "This program contains tests written usi"...
lea r13, _ZN7testing8internalL24kColorEncodedHelpMessageE+90h; "@G--gtest_list_tests@D\n List the "...
lea rbx, [rsp+58h+var_40]
lea r14, aS_0+2; "%s"
xor r15d, r15d
loc_34A07:
mov ebp, r15d
mov [rsp+58h+var_50], rbx
lea rdi, [rsp+58h+var_50]
mov rsi, r12
mov rdx, r13
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 rdx, [rsp+58h+var_50]
mov edi, r15d
mov rsi, r14
xor eax, eax
call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...)
mov rdi, [rsp+58h+var_50]; void *
cmp rdi, rbx
jz short loc_34A48
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_34A48:
movzx eax, byte ptr [r13+1]
lea r12, [r13+2]
cmp eax, 46h ; 'F'
jle short loc_34A6D
cmp eax, 47h ; 'G'
jz short loc_34A85
cmp eax, 52h ; 'R'
jz short loc_34A8D
cmp eax, 59h ; 'Y'
jnz short loc_34A7A
mov r15d, 3
jmp short loc_34AA8
loc_34A6D:
cmp eax, 40h ; '@'
jz short loc_34A95
xor r15d, r15d
cmp eax, 44h ; 'D'
jz short loc_34AA8
loc_34A7A:
inc r13
mov r15d, ebp
mov r12, r13
jmp short loc_34AA8
loc_34A85:
mov r15d, 2
jmp short loc_34AA8
loc_34A8D:
mov r15d, 1
jmp short loc_34AA8
loc_34A95:
mov edi, ebp
lea rsi, asc_44BEE; "@"
xor eax, eax
call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...)
mov r15d, ebp
loc_34AA8:
mov rdi, r12
mov esi, 40h ; '@'
call _strchr
mov r13, rax
test rax, rax
jnz loc_34A07
lea rsi, aS_0+2; "%s"
mov edi, r15d
mov rdx, r12
xor eax, eax
call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...)
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, rbx
jz short loc_34AFE
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_34AFE:
mov rdi, r14
call __Unwind_Resume
| long long testing::internal::PrintColorEncoded(
testing::internal *this,
const char *a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
char *v10; // r12
char *v11; // r13
int v12; // r15d
int v13; // ebp
long long v14; // rcx
long long v15; // r8
long long v16; // r9
__m128 v17; // xmm4
__m128 v18; // xmm5
long long v19; // rdx
long long v20; // rcx
long long v21; // r8
long long v22; // r9
__m128 v23; // xmm4
__m128 v24; // xmm5
unsigned int v25; // eax
long long v26; // rcx
long long v27; // r8
long long v28; // r9
__m128 v29; // xmm4
__m128 v30; // xmm5
char v32; // [rsp+0h] [rbp-58h]
void *v33; // [rsp+8h] [rbp-50h] BYREF
_QWORD v34[8]; // [rsp+18h] [rbp-40h] BYREF
v10 = "This program contains tests written using Google Test. You can use the\n"
"following command line flags to control its behavior:\n"
"\n"
"Test Selection:\n"
" @G--gtest_list_tests@D\n"
" List the names of all tests instead of running them. The name of\n"
" TEST(Foo, Bar) is \"Foo.Bar\".\n"
" @G--gtest_filter=@YPOSITIVE_PATTERNS[@G-@YNEGATIVE_PATTERNS]@D\n"
" Run only the tests whose name matches one of the positive patterns but\n"
" none of the negative patterns. '?' matches any single character; '*'\n"
" matches any substring; ':' separates two patterns.\n"
" @G--gtest_also_run_disabled_tests@D\n"
" Run all disabled tests too.\n"
"\n"
"Test Execution:\n"
" @G--gtest_repeat=@Y[COUNT]@D\n"
" Run the tests repeatedly; use a negative count to repeat forever.\n"
" @G--gtest_shuffle@D\n"
" Randomize tests' orders on every iteration.\n"
" @G--gtest_random_seed=@Y[NUMBER]@D\n"
" Random number seed to use for shuffling test orders (between 1 and\n"
" 99999, or 0 to use a seed based on the current time).\n"
" @G--gtest_recreate_environments_when_repeating@D\n"
" Sets up and tears down the global test environment on each repeat\n"
" of the test.\n"
"\n"
"Test Output:\n"
" @G--gtest_color=@Y(@Gyes@Y|@Gno@Y|@Gauto@Y)@D\n"
" Enable/disable colored output. The default is @Gauto@D.\n"
" @G--gtest_brief=1@D\n"
" Only print test failures.\n"
" @G--gtest_print_time=0@D\n"
" Don't print the elapsed time of each test.\n"
" @G--gtest_output=@Y(@Gjson@Y|@Gxml@Y)[@G:@YDIRECTORY_PATH@G/@Y|@G:@YFILE_PATH]@D\n"
" Generate a JSON or XML report in the given directory or with the given\n"
" file name. @YFILE_PATH@D defaults to @Gtest_detail.xml@D.\n"
" @G--gtest_stream_result_to=@YHOST@G:@YPORT@D\n"
" Stream test results to the given server.\n"
"\n"
"Assertion Behavior:\n"
" @G--gtest_death_test_style=@Y(@Gfast@Y|@Gthreadsafe@Y)@D\n"
" Set the default death test style.\n"
" @G--gtest_break_on_failure@D\n"
" Turn assertion failures into debugger break-points.\n"
" @G--gtest_throw_on_failure@D\n"
" Turn assertion failures into C++ exceptions for use by an external\n"
" test framework.\n"
" @G--gtest_catch_exceptions=0@D\n"
" Do not report exceptions as test failures. Instead, allow them\n"
" to crash the program or throw a pop-up (on Windows).\n"
"\n"
"Except for @G--gtest_list_tests@D, you can alternatively set the corresponding\n"
"environment variable of a flag (all letters in upper-case). For example, to\n"
"disable colored text output, you can either specify @G--gtest_color=no@D or set\n"
"the @GGTEST_COLOR@D environment variable to @Gno@D.\n"
"\n"
"For more information, please read the Google Test documentation at\n"
"@Ghttps://github.com/google/googletest/@D. If you find a bug in Google Test\n"
"(not one in your own code or tests), please report it to\n"
"@G<googletestframework@@googlegroups.com>@D.\n";
v11 = "@G--gtest_list_tests@D\n List the names of all tests instead of running them. The name of\n TEST(Foo, Bar) is \"Foo.Bar\".\n @G--gtest_filter=@YPOSITIVE_PATTERNS[@G-@YNEGATIVE_PATTERNS]@D\n Run only the tests whose name matches one of the positive patterns but\n none of the negative patterns. '?' matches any single character; '*'\n matches any substring; ':' separates two patterns.\n @G--gtest_also_run_disabled_tests@D\n Run all disabled tests too.\n\nTest Execution:\n @G--gtest_repeat=@Y[COUNT]@D\n Run the tests repeatedly; use a negative count to repeat forever.\n @G--gtest_shuffle@D\n Randomize tests' orders on every iteration.\n @G--gtest_random_seed=@Y[NUMBER]@D\n Random number seed to use for shuffling test orders (between 1 and\n 99999, or 0 to use a seed based on the current time).\n @G--gtest_recreate_environments_when_repeating@D\n Sets up and tears down the global test environment on each repeat\n of the test.\n\nTest Output:\n @G--gtest_color=@Y(@Gyes@Y|@Gno@Y|@Gauto@Y)@D\n Enable/disable colored output. The default is @Gauto@D.\n @G--gtest_brief=1@D\n Only print test failures.\n @G--gtest_print_time=0@D\n Don't print the elapsed time of each test.\n @G--gtest_output=@Y(@Gjson@Y|@Gxml@Y)[@G:@YDIRECTORY_PATH@G/@Y|@G:@YFILE_PATH]@D\n Generate a JSON or XML report in the given directory or with the given\n file name. @YFILE_PATH@D defaults to @Gtest_detail.xml@D.\n @G--gtest_stream_result_to=@YHOST@G:@YPORT@D\n Stream test results to the given server.\n\nAssertion Behavior:\n @G--gtest_death_test_style=@Y(@Gfast@Y|@Gthreadsafe@Y)@D\n Set the default death test style.\n @G--gtest_break_on_failure@D\n Turn assertion failures into debugger break-points.\n @G--gtest_throw_on_failure@D\n Turn assertion failures into C++ exceptions for use by an external\n test framework.\n @G--gtest_catch_exceptions=0@D\n Do not report exceptions as test failures. Instead, allow them\n to crash the program or throw a pop-up (on Windows).\n\nExcept for @G--gtest_list_tests@D, you can alternatively set the corresponding\nenvironment variable of a flag (all letters in upper-case). For example, to\ndisable colored text output, you can either specify @G--gtest_color=no@D or set\nthe @GGTEST_COLOR@D environment variable to @Gno@D.\n\nFor more information, please read the Google Test documentation at\n@Ghttps://github.com/google/googletest/@D. If you find a bug in Google Test\n(not one in your own code or tests), please report it to\n@G<googletestframework@@googlegroups.com>@D.\n";
v12 = 0;
do
{
v13 = v12;
v33 = v34;
std::string::_M_construct<char const*>((long long)&v33, v10, (long long)v11);
testing::internal::ColoredPrintf(
v12,
(long long)"%s",
(long long)v33,
v14,
v15,
v16,
a3,
a4,
a5,
a6,
v17,
v18,
a9,
a10,
v32);
if ( v33 != v34 )
operator delete(v33, v34[0] + 1LL);
v25 = (unsigned __int8)v11[1];
v10 = v11 + 2;
if ( v25 <= 0x46 )
{
if ( v25 != 64 )
{
v12 = 0;
if ( v25 == 68 )
goto LABEL_15;
goto LABEL_11;
}
testing::internal::ColoredPrintf(v12, (long long)"@", v19, v20, v21, v22, a3, a4, a5, a6, v23, v24, a9, a10, v32);
}
else
{
switch ( v25 )
{
case 'G':
v12 = 2;
break;
case 'R':
v12 = 1;
break;
case 'Y':
v12 = 3;
break;
default:
LABEL_11:
v12 = v13;
v10 = v11 + 1;
break;
}
}
LABEL_15:
v11 = (char *)strchr(v10, 64LL);
}
while ( v11 );
return testing::internal::ColoredPrintf(
v12,
(long long)"%s",
(long long)v10,
v26,
v27,
v28,
a3,
a4,
a5,
a6,
v29,
v30,
a9,
a10,
v32);
}
| PrintColorEncoded:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
LEA R12,[0x141670]
LEA R13,[0x141700]
LEA RBX,[RSP + 0x18]
LEA R14,[0x143e01]
XOR R15D,R15D
LAB_00134a07:
MOV EBP,R15D
MOV qword ptr [RSP + 0x8],RBX
LEA RDI,[RSP + 0x8]
MOV RSI,R12
MOV RDX,R13
CALL 0x0010fc64
MOV RDX,qword ptr [RSP + 0x8]
LAB_00134a24:
MOV EDI,R15D
MOV RSI,R14
XOR EAX,EAX
CALL 0x00125eb1
LAB_00134a31:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBX
JZ 0x00134a48
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001094c0
LAB_00134a48:
MOVZX EAX,byte ptr [R13 + 0x1]
LEA R12,[R13 + 0x2]
CMP EAX,0x46
JLE 0x00134a6d
CMP EAX,0x47
JZ 0x00134a85
CMP EAX,0x52
JZ 0x00134a8d
CMP EAX,0x59
JNZ 0x00134a7a
MOV R15D,0x3
JMP 0x00134aa8
LAB_00134a6d:
CMP EAX,0x40
JZ 0x00134a95
XOR R15D,R15D
CMP EAX,0x44
JZ 0x00134aa8
LAB_00134a7a:
INC R13
MOV R15D,EBP
MOV R12,R13
JMP 0x00134aa8
LAB_00134a85:
MOV R15D,0x2
JMP 0x00134aa8
LAB_00134a8d:
MOV R15D,0x1
JMP 0x00134aa8
LAB_00134a95:
MOV EDI,EBP
LEA RSI,[0x144bee]
XOR EAX,EAX
CALL 0x00125eb1
MOV R15D,EBP
LAB_00134aa8:
MOV RDI,R12
MOV ESI,0x40
CALL 0x001091d0
MOV R13,RAX
TEST RAX,RAX
JNZ 0x00134a07
LEA RSI,[0x143e01]
MOV EDI,R15D
MOV RDX,R12
XOR EAX,EAX
CALL 0x00125eb1
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* testing::internal::PrintColorEncoded(char const*) */
void testing::internal::PrintColorEncoded(char *param_1)
{
byte bVar1;
int4 uVar2;
char *__s;
char *pcVar3;
int4 uVar4;
long *local_50 [2];
long local_40 [2];
__s =
"This program contains tests written using Google Test. You can use the\nfollowing command line flags to control its behavior:\n\nTest Selection:\n @G--gtest_list_tests@D\n List the names of all tests instead of running them. The name of\n TEST(Foo, Bar) is \"Foo.Bar\".\n @G--gtest_filter=@YPOSITIVE_PATTERNS[@G-@YNEGATIVE_PATTERNS]@D\n Run only the tests whose name matches one of the positive patterns but\n none of the negative patterns. \'?\' matches any single character; \'*\'\n matches any substring; \':\' separates two patterns.\n @G--gtest_also_run_disabled_tests@D\n Run all disabled tests too.\n\nTest Execution:\n @G--gtest_repeat=@Y[COUNT]@D\n Run the tests repeatedly; use a negative count to repeat forever.\n @G--gtest_shuffle@D\n Randomize tests\' orders on every iteration.\n @G--gtest_random_seed=@Y[NUMBER]@D\n Random number seed to use for shuffling test orders (between 1 and\n 99999, or 0 to use a seed based on the current time).\n @G--gtest_recreate_environments_when_repeating@D\n Sets up and tears down the global test environment on each repeat\n of the test.\n\nTest Output:\n @G--gtest_color=@Y(@Gyes@Y|@Gno@Y|@Gauto@Y)@D\n Enable/disable colored output. The default is @Gauto@D.\n @G--gtest_brief=1@D\n Only print test failures.\n @G--gtest_print_time=0@D\n Don\'t print the elapsed time of each test.\n @G--gtest_output=@Y(@Gjson@Y|@Gxml@Y)[@G:@YDIRECTORY_PATH@G/@Y|@G:@YFILE_PATH]@D\n Generate a JSON or XML report in the given directory or with the given\n file name. @YFILE_PATH@D defaults to @Gtest_detail.xml@D.\n @G--gtest_stream_result_to=@YHOST@G:@YPORT@D\n Stream test results to the given server.\n\nAssertion Behavior:\n @G--gtest_death_test_style=@Y(@Gfast@Y|@Gthreadsafe@Y)@D\n Set the default death test style.\n @G--gtest_break_on_failure@D\n Turn assertion failures into debugger break-points.\n @G--gtest_throw_on_failure@D\n Turn assertion failures into C++ exceptions for use by an external\n test framework.\n @G--gtest_catch_..." /* TRUNCATED STRING LITERAL */
;
pcVar3 =
"@G--gtest_list_tests@D\n List the names of all tests instead of running them. The name of\n TEST(Foo, Bar) is \"Foo.Bar\".\n @G--gtest_filter=@YPOSITIVE_PATTERNS[@G-@YNEGATIVE_PATTERNS]@D\n Run only the tests whose name matches one of the positive patterns but\n none of the negative patterns. \'?\' matches any single character; \'*\'\n matches any substring; \':\' separates two patterns.\n @G--gtest_also_run_disabled_tests@D\n Run all disabled tests too.\n\nTest Execution:\n @G--gtest_repeat=@Y[COUNT]@D\n Run the tests repeatedly; use a negative count to repeat forever.\n @G--gtest_shuffle@D\n Randomize tests\' orders on every iteration.\n @G--gtest_random_seed=@Y[NUMBER]@D\n Random number seed to use for shuffling test orders (between 1 and\n 99999, or 0 to use a seed based on the current time).\n @G--gtest_recreate_environments_when_repeating@D\n Sets up and tears down the global test environment on each repeat\n of the test.\n\nTest Output:\n @G--gtest_color=@Y(@Gyes@Y|@Gno@Y|@Gauto@Y)@D\n Enable/disable colored output. The default is @Gauto@D.\n @G--gtest_brief=1@D\n Only print test failures.\n @G--gtest_print_time=0@D\n Don\'t print the elapsed time of each test.\n @G--gtest_output=@Y(@Gjson@Y|@Gxml@Y)[@G:@YDIRECTORY_PATH@G/@Y|@G:@YFILE_PATH]@D\n Generate a JSON or XML report in the given directory or with the given\n file name. @YFILE_PATH@D defaults to @Gtest_detail.xml@D.\n @G--gtest_stream_result_to=@YHOST@G:@YPORT@D\n Stream test results to the given server.\n\nAssertion Behavior:\n @G--gtest_death_test_style=@Y(@Gfast@Y|@Gthreadsafe@Y)@D\n Set the default death test style.\n @G--gtest_break_on_failure@D\n Turn assertion failures into debugger break-points.\n @G--gtest_throw_on_failure@D\n Turn assertion failures into C++ exceptions for use by an external\n test framework.\n @G--gtest_catch_exceptions=0@D\n Do not report exceptions as test failures. Instead, allow them\n to crash the program or throw a pop-up (on Windows).\n\n..." /* TRUNCATED STRING LITERAL */
;
uVar4 = 0;
do {
local_50[0] = local_40;
std::__cxx11::string::_M_construct<char_const*>(local_50,__s,pcVar3);
/* try { // try from 00134a24 to 00134a30 has its CatchHandler @ 00134ae4 */
ColoredPrintf(uVar4,&DAT_00143e01,local_50[0]);
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
bVar1 = pcVar3[1];
__s = pcVar3 + 2;
if (bVar1 < 0x47) {
if (bVar1 == 0x40) {
ColoredPrintf(uVar4,&DAT_00144bee);
uVar2 = uVar4;
}
else {
uVar2 = 0;
if (bVar1 != 0x44) {
LAB_00134a7a:
__s = pcVar3 + 1;
uVar2 = uVar4;
}
}
}
else if (bVar1 == 0x47) {
uVar2 = 2;
}
else if (bVar1 == 0x52) {
uVar2 = 1;
}
else {
if (bVar1 != 0x59) goto LAB_00134a7a;
uVar2 = 3;
}
uVar4 = uVar2;
pcVar3 = strchr(__s,0x40);
if (pcVar3 == (char *)0x0) {
ColoredPrintf(uVar4,&DAT_00143e01,__s);
return;
}
} while( true );
}
| |
55,030 | ggml_win_part | ngxson[P]ggml-easy/ggml/src/ggml.c | struct ggml_tensor * ggml_win_part(
struct ggml_context * ctx,
struct ggml_tensor * a,
int w) {
GGML_ASSERT(a->ne[3] == 1);
GGML_ASSERT(a->type == GGML_TYPE_F32);
// padding
const int px = (w - a->ne[1]%w)%w;
const int py = (w - a->ne[2]%w)%w;
const int npx = (px + a->ne[1])/w;
const int npy = (py + a->ne[2])/w;
const int np = npx*npy;
const int64_t ne[4] = { a->ne[0], w, w, np, };
struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne);
int32_t params[] = { npx, npy, w };
ggml_set_op_params(result, params, sizeof(params));
result->op = GGML_OP_WIN_PART;
result->src[0] = a;
return result;
} | O1 | c | ggml_win_part:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
cmpq $0x1, 0x28(%rsi)
jne 0x1eb0c
movq %rsi, %rbx
cmpl $0x0, (%rsi)
jne 0x1eb28
movl %edx, %ebp
movslq %edx, %r10
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rcx
movq %rsi, %rax
cqto
idivq %r10
movq %r10, %rax
subq %rdx, %rax
cqto
idivq %r10
movq %rdx, %r8
movq %rcx, %rax
cqto
idivq %r10
movq %r10, %rax
subq %rdx, %rax
cqto
idivq %r10
movq %rdx, %r9
addq %rsi, %r8
movq %r8, %rax
cqto
idivq %r10
movq %rax, %r14
addq %rcx, %r9
movq %r9, %rax
cqto
idivq %r10
movq %rax, %r15
movq 0x10(%rbx), %rax
movq %rsp, %rcx
movq %rax, (%rcx)
movq %r10, 0x8(%rcx)
movq %r10, 0x10(%rcx)
movl %r14d, %eax
imull %r15d, %eax
cltq
movq %rax, 0x18(%rcx)
xorl %esi, %esi
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x19cd9
testq %rax, %rax
je 0x1eb44
movl %r14d, 0x54(%rax)
movl %r15d, 0x58(%rax)
movl %ebp, 0x5c(%rax)
movl $0x43, 0x50(%rax)
movq %rbx, 0x98(%rax)
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2bafc(%rip), %rdi # 0x4a60f
leaq 0x2bb40(%rip), %rdx # 0x4a65a
leaq 0x2c1de(%rip), %rcx # 0x4acff
movl $0x1205, %esi # imm = 0x1205
jmp 0x1eb5e
leaq 0x2bae0(%rip), %rdi # 0x4a60f
leaq 0x2bb24(%rip), %rdx # 0x4a65a
leaq 0x2c251(%rip), %rcx # 0x4ad8e
movl $0x1206, %esi # imm = 0x1206
jmp 0x1eb5e
leaq 0x2dc8d(%rip), %rdi # 0x4c7d8
leaq 0x2bb08(%rip), %rdx # 0x4a65a
leaq 0x2dccf(%rip), %rcx # 0x4c828
movl $0x70, %esi
xorl %eax, %eax
callq 0x17c70
| ggml_win_part:
push rbp
push r15
push r14
push rbx
sub rsp, 28h
cmp qword ptr [rsi+28h], 1
jnz loc_1EB0C
mov rbx, rsi
cmp dword ptr [rsi], 0
jnz loc_1EB28
mov ebp, edx
movsxd r10, edx
mov rsi, [rbx+18h]
mov rcx, [rbx+20h]
mov rax, rsi
cqo
idiv r10
mov rax, r10
sub rax, rdx
cqo
idiv r10
mov r8, rdx
mov rax, rcx
cqo
idiv r10
mov rax, r10
sub rax, rdx
cqo
idiv r10
mov r9, rdx
add r8, rsi
mov rax, r8
cqo
idiv r10
mov r14, rax
add r9, rcx
mov rax, r9
cqo
idiv r10
mov r15, rax
mov rax, [rbx+10h]
mov rcx, rsp
mov [rcx], rax
mov [rcx+8], r10
mov [rcx+10h], r10
mov eax, r14d
imul eax, r15d
cdqe
mov [rcx+18h], rax
xor esi, esi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
test rax, rax
jz short loc_1EB44
mov [rax+54h], r14d
mov [rax+58h], r15d
mov [rax+5Ch], ebp
mov dword ptr [rax+50h], 43h ; 'C'
mov [rax+98h], rbx
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_1EB0C:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aANe31; "a->ne[3] == 1"
mov esi, 1205h
jmp short loc_1EB5E
loc_1EB28:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aATypeGgmlTypeF; "a->type == GGML_TYPE_F32"
mov esi, 1206h
jmp short loc_1EB5E
loc_1EB44:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNull; "tensor != NULL"
mov esi, 70h ; 'p'
loc_1EB5E:
xor eax, eax
call _ggml_abort
| long long ggml_win_part(long long a1, long long a2, int a3, long long a4, int a5, int a6)
{
long long v7; // r10
long long v8; // r14
long long v9; // r15
long long result; // rax
const char *v11; // rdi
const char *v12; // rcx
int v13; // esi
_QWORD v14[9]; // [rsp+0h] [rbp-48h] BYREF
if ( *(_QWORD *)(a2 + 40) != 1LL )
{
v11 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
v12 = "a->ne[3] == 1";
v13 = 4613;
goto LABEL_8;
}
if ( *(_DWORD *)a2 )
{
v11 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
v12 = "a->type == GGML_TYPE_F32";
v13 = 4614;
goto LABEL_8;
}
v7 = a3;
v8 = (*(_QWORD *)(a2 + 24) + (a3 - *(_QWORD *)(a2 + 24) % a3) % v7) / v7;
v9 = (*(_QWORD *)(a2 + 32) + (v7 - *(_QWORD *)(a2 + 32) % v7) % v7) / v7;
v14[0] = *(_QWORD *)(a2 + 16);
v14[1] = a3;
v14[2] = a3;
v14[3] = (int)v9 * (int)v8;
result = ggml_new_tensor_impl(a1, 0, 4, v14, 0LL, 0LL);
if ( !result )
{
v11 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-impl.h";
v12 = "tensor != NULL";
v13 = 112;
LABEL_8:
ggml_abort((_DWORD)v11, v13, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v12, a5, a6);
}
*(_DWORD *)(result + 84) = v8;
*(_DWORD *)(result + 88) = v9;
*(_DWORD *)(result + 92) = a3;
*(_DWORD *)(result + 80) = 67;
*(_QWORD *)(result + 152) = a2;
return result;
}
| ggml_win_part:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
CMP qword ptr [RSI + 0x28],0x1
JNZ 0x0011eb0c
MOV RBX,RSI
CMP dword ptr [RSI],0x0
JNZ 0x0011eb28
MOV EBP,EDX
MOVSXD R10,EDX
MOV RSI,qword ptr [RBX + 0x18]
MOV RCX,qword ptr [RBX + 0x20]
MOV RAX,RSI
CQO
IDIV R10
MOV RAX,R10
SUB RAX,RDX
CQO
IDIV R10
MOV R8,RDX
MOV RAX,RCX
CQO
IDIV R10
MOV RAX,R10
SUB RAX,RDX
CQO
IDIV R10
MOV R9,RDX
ADD R8,RSI
MOV RAX,R8
CQO
IDIV R10
MOV R14,RAX
ADD R9,RCX
MOV RAX,R9
CQO
IDIV R10
MOV R15,RAX
MOV RAX,qword ptr [RBX + 0x10]
MOV RCX,RSP
MOV qword ptr [RCX],RAX
MOV qword ptr [RCX + 0x8],R10
MOV qword ptr [RCX + 0x10],R10
MOV EAX,R14D
IMUL EAX,R15D
CDQE
MOV qword ptr [RCX + 0x18],RAX
XOR ESI,ESI
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00119cd9
TEST RAX,RAX
JZ 0x0011eb44
MOV dword ptr [RAX + 0x54],R14D
MOV dword ptr [RAX + 0x58],R15D
MOV dword ptr [RAX + 0x5c],EBP
MOV dword ptr [RAX + 0x50],0x43
MOV qword ptr [RAX + 0x98],RBX
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0011eb0c:
LEA RDI,[0x14a60f]
LEA RDX,[0x14a65a]
LEA RCX,[0x14acff]
MOV ESI,0x1205
JMP 0x0011eb5e
LAB_0011eb28:
LEA RDI,[0x14a60f]
LEA RDX,[0x14a65a]
LEA RCX,[0x14ad8e]
MOV ESI,0x1206
JMP 0x0011eb5e
LAB_0011eb44:
LEA RDI,[0x14c7d8]
LEA RDX,[0x14a65a]
LEA RCX,[0x14c828]
MOV ESI,0x70
LAB_0011eb5e:
XOR EAX,EAX
CALL 0x00117c70
|
void ggml_win_part(int8 param_1,int *param_2,int param_3)
{
long lVar1;
char *pcVar2;
int8 uVar3;
char *pcVar4;
int iVar5;
int iVar6;
int8 local_48;
long local_40;
long local_38;
long local_30;
if (*(long *)(param_2 + 10) == 1) {
if (*param_2 == 0) {
local_40 = (long)param_3;
local_48 = *(int8 *)(param_2 + 4);
iVar5 = (int)(((local_40 - *(long *)(param_2 + 6) % local_40) % local_40 +
*(long *)(param_2 + 6)) / local_40);
iVar6 = (int)(((local_40 - *(long *)(param_2 + 8) % local_40) % local_40 +
*(long *)(param_2 + 8)) / local_40);
local_30 = (long)(iVar5 * iVar6);
local_38 = local_40;
lVar1 = ggml_new_tensor_impl(param_1,0,4,&local_48,0,0);
if (lVar1 != 0) {
*(int *)(lVar1 + 0x54) = iVar5;
*(int *)(lVar1 + 0x58) = iVar6;
*(int *)(lVar1 + 0x5c) = param_3;
*(int4 *)(lVar1 + 0x50) = 0x43;
*(int **)(lVar1 + 0x98) = param_2;
return;
}
pcVar4 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-impl.h";
pcVar2 = "tensor != NULL";
uVar3 = 0x70;
}
else {
pcVar4 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
pcVar2 = "a->type == GGML_TYPE_F32";
uVar3 = 0x1206;
}
}
else {
pcVar4 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
pcVar2 = "a->ne[3] == 1";
uVar3 = 0x1205;
}
/* WARNING: Subroutine does not return */
ggml_abort(pcVar4,uVar3,"GGML_ASSERT(%s) failed",pcVar2);
}
| |
55,031 | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_array() | zkingston[P]unknot/build_O0/_deps/json-src/include/nlohmann/detail/input/json_sax.hpp | bool end_array()
{
bool keep = true;
if (ref_stack.back())
{
keep = callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::array_end, *ref_stack.back());
if (keep)
{
ref_stack.back()->set_parents();
}
else
{
// discard array
*ref_stack.back() = discarded;
}
}
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(!keep_stack.empty());
ref_stack.pop_back();
keep_stack.pop_back();
// remove discarded value
if (!keep && !ref_stack.empty() && ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->pop_back();
}
return true;
} | O0 | cpp | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_array():
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movq %rdi, 0x10(%rsp)
movb $0x1, 0x2f(%rsp)
addq $0x8, %rdi
callq 0x80ba0
cmpq $0x0, (%rax)
je 0x80032
movq 0x10(%rsp), %rdi
movq %rdi, %rax
addq $0x80, %rax
movq %rax, (%rsp)
addq $0x8, %rdi
callq 0x806e0
movq 0x10(%rsp), %rdi
subl $0x1, %eax
movl %eax, 0xc(%rsp)
addq $0x8, %rdi
callq 0x80ba0
movq (%rsp), %rdi
movl 0xc(%rsp), %esi
movq (%rax), %rcx
movl $0x3, %edx
callq 0x80680
andb $0x1, %al
movb %al, 0x2f(%rsp)
testb $0x1, 0x2f(%rsp)
je 0x7fff5
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0x80ba0
movq (%rax), %rdi
callq 0x62a40
jmp 0x80030
movq 0x10(%rsp), %rsi
addq $0xa8, %rsi
leaq 0x18(%rsp), %rdi
callq 0x64fd0
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0x80ba0
movq (%rax), %rdi
leaq 0x18(%rsp), %rsi
callq 0x7b380
leaq 0x18(%rsp), %rdi
callq 0x5f190
jmp 0x80032
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0x818a0
movq 0x10(%rsp), %rdi
addq $0x20, %rdi
callq 0x80660
testb $0x1, 0x2f(%rsp)
jne 0x8009d
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0x80ef0
testb $0x1, %al
jne 0x8009d
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0x80ba0
movq (%rax), %rdi
callq 0x62150
testb $0x1, %al
jne 0x80083
jmp 0x8009d
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0x80ba0
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0x63520
movb $0x1, %al
andb $0x1, %al
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9end_arrayEv:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov rdi, [rsp+38h+var_8]
mov [rsp+38h+var_28], rdi
mov [rsp+38h+var_9], 1
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
cmp qword ptr [rax], 0
jz loc_80032
mov rdi, [rsp+38h+var_28]
mov rax, rdi
add rax, 80h
mov [rsp+38h+var_38], rax
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void)
mov rdi, [rsp+38h+var_28]
sub eax, 1
mov [rsp+38h+var_2C], eax
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rsp+38h+var_38]
mov esi, [rsp+38h+var_2C]
mov rcx, [rax]
mov edx, 3
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonISt3mapSt6vectorNSt7__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<std::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<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
and al, 1
mov [rsp+38h+var_9], al
test [rsp+38h+var_9], 1
jz short loc_7FFF5
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE11set_parentsEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::set_parents(void)
jmp short loc_80030
loc_7FFF5:
mov rsi, [rsp+38h+var_28]
add rsi, 0A8h
lea rdi, [rsp+38h+var_20]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
lea rsi, [rsp+38h+var_20]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
lea rdi, [rsp+38h+var_20]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_80030:
jmp short $+2
loc_80032:
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE8pop_backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::pop_back(void)
mov rdi, [rsp+38h+var_28]
add rdi, 20h ; ' '
call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void)
test [rsp+38h+var_9], 1
jnz short loc_8009D
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void)
test al, 1
jnz short loc_8009D
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_80083
jmp short loc_8009D
loc_80083:
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE8pop_backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::pop_back(void)
loc_8009D:
mov al, 1
and al, 1
add rsp, 38h
retn
| char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end_array(
long long a1,
__m128 a2)
{
_QWORD *v2; // rax
long long *v3; // rax
_BYTE **v4; // rax
long long v5; // rax
unsigned int v7; // [rsp+Ch] [rbp-2Ch]
_BYTE v8[23]; // [rsp+18h] [rbp-20h] BYREF
char v9; // [rsp+2Fh] [rbp-9h]
long long v10; // [rsp+30h] [rbp-8h]
v10 = a1;
v9 = 1;
if ( *(_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) )
{
v7 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::size(a1 + 8)
- 1;
v2 = (_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
v9 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()(
a1 + 128,
v7,
3LL,
*v2) & 1;
if ( v9 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::set_parents();
}
else
{
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(long long)v8,
a1 + 168,
a2);
v3 = (long long *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*v3,
(long long)v8);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v8);
}
}
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::pop_back(a1 + 8);
std::vector<bool>::pop_back(a1 + 32);
if ( (v9 & 1) == 0
&& (std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(a1 + 8) & 1) == 0 )
{
v4 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v4) )
{
v5 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::pop_back(*(_QWORD *)(*(_QWORD *)v5 + 8LL));
}
}
return 1;
}
| end_array:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV RDI,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x10],RDI
MOV byte ptr [RSP + 0x2f],0x1
ADD RDI,0x8
CALL 0x00180ba0
CMP qword ptr [RAX],0x0
JZ 0x00180032
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,RDI
ADD RAX,0x80
MOV qword ptr [RSP],RAX
ADD RDI,0x8
CALL 0x001806e0
MOV RDI,qword ptr [RSP + 0x10]
SUB EAX,0x1
MOV dword ptr [RSP + 0xc],EAX
ADD RDI,0x8
CALL 0x00180ba0
MOV RDI,qword ptr [RSP]
MOV ESI,dword ptr [RSP + 0xc]
MOV RCX,qword ptr [RAX]
MOV EDX,0x3
CALL 0x00180680
AND AL,0x1
MOV byte ptr [RSP + 0x2f],AL
TEST byte ptr [RSP + 0x2f],0x1
JZ 0x0017fff5
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x00180ba0
MOV RDI,qword ptr [RAX]
CALL 0x00162a40
JMP 0x00180030
LAB_0017fff5:
MOV RSI,qword ptr [RSP + 0x10]
ADD RSI,0xa8
LEA RDI,[RSP + 0x18]
CALL 0x00164fd0
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x00180ba0
MOV RDI,qword ptr [RAX]
LEA RSI,[RSP + 0x18]
CALL 0x0017b380
LEA RDI,[RSP + 0x18]
CALL 0x0015f190
LAB_00180030:
JMP 0x00180032
LAB_00180032:
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x001818a0
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x20
CALL 0x00180660
TEST byte ptr [RSP + 0x2f],0x1
JNZ 0x0018009d
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x00180ef0
TEST AL,0x1
JNZ 0x0018009d
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x00180ba0
MOV RDI,qword ptr [RAX]
CALL 0x00162150
TEST AL,0x1
JNZ 0x00180083
JMP 0x0018009d
LAB_00180083:
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x00180ba0
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x00163520
LAB_0018009d:
MOV AL,0x1
AND AL,0x1
ADD RSP,0x38
RET
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::end_array() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::end_array(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
int iVar1;
long *plVar2;
int8 *puVar3;
ulong uVar4;
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_20 [23];
byte local_9;
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_8;
local_9 = 1;
local_8 = this;
plVar2 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if (*plVar2 != 0) {
iVar1 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::size((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
puVar3 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
local_9 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
*)(this + 0x80),iVar1 + -1,3,*puVar3);
local_9 = local_9 & 1;
if (local_9 == 0) {
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_20,this + 0xa8);
puVar3 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=((basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar3,local_20);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_20);
}
else {
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::set_parents();
}
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::pop_back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
std::vector<bool,std::allocator<bool>>::pop_back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if (((local_9 & 1) == 0) &&
(uVar4 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8)), (uVar4 & 1) == 0)) {
puVar3 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar4 = basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar3);
if ((uVar4 & 1) != 0) {
plVar2 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::pop_back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar2 + 8));
}
}
return 1;
}
| |
55,032 | my_casefold_mb | eloqsql/strings/ctype-mb.c | static size_t
my_casefold_mb(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen __attribute__((unused)),
const uchar *map,
size_t is_upper)
{
const char *srcend= src + srclen;
char *dst0= dst;
DBUG_ASSERT(cs->mbmaxlen == 2);
while (src < srcend)
{
size_t mblen= my_ismbchar(cs, src, srcend);
if (mblen)
{
MY_UNICASE_CHARACTER *ch;
if ((ch= get_case_info_for_ch(cs, (uchar) src[0], (uchar) src[1])))
{
int code= is_upper ? ch->toupper : ch->tolower;
src+= 2;
if (code > 0xFF)
*dst++= code >> 8;
*dst++= code & 0xFF;
}
else
{
*dst++= *src++;
*dst++= *src++;
}
}
else
{
*dst++= (char) map[(uchar) *src++];
}
}
return (size_t) (dst - dst0);
} | O0 | c | my_casefold_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x9119a
jmp 0x9119c
movq -0x10(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x912d0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x91000
movl %eax, %eax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x912a1
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl (%rax), %esi
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %edx
callq 0x93ce0
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
je 0x9125b
cmpq $0x0, 0x10(%rbp)
je 0x91200
movq -0x50(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x58(%rbp)
jmp 0x9120a
movq -0x50(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x10(%rbp)
cmpl $0xff, -0x54(%rbp)
jle 0x9123e
movl -0x54(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movl -0x54(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x9129f
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb (%rax), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb (%rax), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x912cb
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movzbl (%rcx), %ecx
movb (%rax,%rcx), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x9119c
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_casefold_mb:
push rbp
mov rbp, rsp
sub rsp, 60h
mov rax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_20]
mov [rbp+var_40], rax
jmp short $+2
loc_9119A:
jmp short $+2
loc_9119C:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_38]
jnb loc_912D0
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_38]
call my_ismbchar_0
mov eax, eax
mov [rbp+var_48], rax
cmp [rbp+var_48], 0
jz loc_912A1
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
movzx esi, byte ptr [rax]
mov rax, [rbp+var_10]
movzx edx, byte ptr [rax+1]
call get_case_info_for_ch
mov [rbp+var_50], rax
cmp rax, 0
jz short loc_9125B
cmp [rbp+arg_0], 0
jz short loc_91200
mov rax, [rbp+var_50]
mov eax, [rax]
mov [rbp+var_58], eax
jmp short loc_9120A
loc_91200:
mov rax, [rbp+var_50]
mov eax, [rax+4]
mov [rbp+var_58], eax
loc_9120A:
mov eax, [rbp+var_58]
mov [rbp+var_54], eax
mov rax, [rbp+var_10]
add rax, 2
mov [rbp+var_10], rax
cmp [rbp+var_54], 0FFh
jle short loc_9123E
mov eax, [rbp+var_54]
sar eax, 8
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_9123E:
mov eax, [rbp+var_54]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
jmp short loc_9129F
loc_9125B:
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov cl, [rax]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov cl, [rax]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_9129F:
jmp short loc_912CB
loc_912A1:
mov rax, [rbp+var_30]
mov rcx, [rbp+var_10]
mov rdx, rcx
add rdx, 1
mov [rbp+var_10], rdx
movzx ecx, byte ptr [rcx]
mov cl, [rax+rcx]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_912CB:
jmp loc_9119C
loc_912D0:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_40]
sub rax, rcx
add rsp, 60h
pop rbp
retn
| _BYTE * my_casefold_mb(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned __int8 *a4,
long long a5,
long long a6,
long long a7)
{
unsigned __int8 *v7; // rax
unsigned __int8 *v8; // rax
char *v9; // rax
char v10; // cl
_BYTE *v11; // rax
unsigned __int8 *v12; // rcx
unsigned __int8 *v13; // rax
int v15; // [rsp+8h] [rbp-58h]
int *case_info_for_ch; // [rsp+10h] [rbp-50h]
unsigned long long v18; // [rsp+28h] [rbp-38h]
unsigned __int8 *v20; // [rsp+40h] [rbp-20h]
unsigned __int8 *v21; // [rsp+50h] [rbp-10h]
v21 = a2;
v20 = a4;
v18 = (unsigned long long)&a2[a3];
while ( (unsigned long long)v21 < v18 )
{
if ( (unsigned int)my_ismbchar_0(a1, (long long)v21, v18) )
{
case_info_for_ch = (int *)get_case_info_for_ch(a1, *v21, v21[1]);
if ( case_info_for_ch )
{
if ( a7 )
v15 = *case_info_for_ch;
else
v15 = case_info_for_ch[1];
v21 += 2;
if ( v15 > 255 )
{
v7 = v20++;
*v7 = BYTE1(v15);
}
v8 = v20++;
*v8 = v15;
}
else
{
*v20 = *v21;
v9 = (char *)(v21 + 1);
v21 += 2;
v10 = *v9;
v11 = v20 + 1;
v20 += 2;
*v11 = v10;
}
}
else
{
v12 = v21++;
v13 = v20++;
*v13 = *(_BYTE *)(a6 + *v12);
}
}
return (_BYTE *)(v20 - a4);
}
| my_casefold_mb:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0019119a
LAB_0019119a:
JMP 0x0019119c
LAB_0019119c:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001912d0
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00191000
MOV EAX,EAX
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x48],0x0
JZ 0x001912a1
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX ESI,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EDX,byte ptr [RAX + 0x1]
CALL 0x00193ce0
MOV qword ptr [RBP + -0x50],RAX
CMP RAX,0x0
JZ 0x0019125b
CMP qword ptr [RBP + 0x10],0x0
JZ 0x00191200
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x58],EAX
JMP 0x0019120a
LAB_00191200:
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x58],EAX
LAB_0019120a:
MOV EAX,dword ptr [RBP + -0x58]
MOV dword ptr [RBP + -0x54],EAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x2
MOV qword ptr [RBP + -0x10],RAX
CMP dword ptr [RBP + -0x54],0xff
JLE 0x0019123e
MOV EAX,dword ptr [RBP + -0x54]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_0019123e:
MOV EAX,dword ptr [RBP + -0x54]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
JMP 0x0019129f
LAB_0019125b:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_0019129f:
JMP 0x001912cb
LAB_001912a1:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOVZX ECX,byte ptr [RCX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_001912cb:
JMP 0x0019119c
LAB_001912d0:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
ADD RSP,0x60
POP RBP
RET
|
long my_casefold_mb(int8 param_1,byte *param_2,long param_3,byte *param_4,int8 param_5,
long param_6,long param_7)
{
int iVar1;
int *piVar2;
byte *pbVar3;
int local_60;
byte *local_28;
byte *local_18;
local_28 = param_4;
local_18 = param_2;
while (local_18 < param_2 + param_3) {
iVar1 = my_ismbchar(param_1,local_18,param_2 + param_3);
if (iVar1 == 0) {
*local_28 = *(byte *)(param_6 + (ulong)*local_18);
local_28 = local_28 + 1;
local_18 = local_18 + 1;
}
else {
piVar2 = (int *)get_case_info_for_ch(param_1,*local_18,local_18[1]);
if (piVar2 == (int *)0x0) {
pbVar3 = local_28 + 1;
*local_28 = *local_18;
local_28 = local_28 + 2;
*pbVar3 = local_18[1];
}
else {
if (param_7 == 0) {
local_60 = piVar2[1];
}
else {
local_60 = *piVar2;
}
if (0xff < local_60) {
*local_28 = (byte)((uint)local_60 >> 8);
local_28 = local_28 + 1;
}
*local_28 = (byte)local_60;
local_28 = local_28 + 1;
}
local_18 = local_18 + 2;
}
}
return (long)local_28 - (long)param_4;
}
| |
55,033 | my_casefold_mb | eloqsql/strings/ctype-mb.c | static size_t
my_casefold_mb(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen __attribute__((unused)),
const uchar *map,
size_t is_upper)
{
const char *srcend= src + srclen;
char *dst0= dst;
DBUG_ASSERT(cs->mbmaxlen == 2);
while (src < srcend)
{
size_t mblen= my_ismbchar(cs, src, srcend);
if (mblen)
{
MY_UNICASE_CHARACTER *ch;
if ((ch= get_case_info_for_ch(cs, (uchar) src[0], (uchar) src[1])))
{
int code= is_upper ? ch->toupper : ch->tolower;
src+= 2;
if (code > 0xFF)
*dst++= code >> 8;
*dst++= code & 0xFF;
}
else
{
*dst++= *src++;
*dst++= *src++;
}
}
else
{
*dst++= (char) map[(uchar) *src++];
}
}
return (size_t) (dst - dst0);
} | O3 | c | my_casefold_mb:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rcx, -0x30(%rbp)
testq %rdx, %rdx
jle 0x6d907
movq %r8, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
addq %rsi, %r15
xorl %eax, %eax
testq %r9, %r9
sete %al
shll $0x2, %eax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rbx
movq 0xb8(%r13), %rax
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
jge 0x6d8a7
movzbl (%r12), %eax
incq %r12
movb (%r14,%rax), %al
movb %al, (%rbx)
incq %rbx
jmp 0x6d8fe
movb (%r12), %al
movq 0x78(%r13), %rcx
testq %rcx, %rcx
je 0x6d8ec
movzbl %al, %edx
movq 0x8(%rcx), %rcx
movq (%rcx,%rdx,8), %rcx
testq %rcx, %rcx
je 0x6d8ec
movzbl 0x1(%r12), %eax
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,4), %rax
movq -0x38(%rbp), %rcx
movl (%rcx,%rax), %eax
cmpl $0x100, %eax # imm = 0x100
jl 0x6d8e5
movb %ah, (%rbx)
incq %rbx
movb %al, (%rbx)
incq %rbx
jmp 0x6d8fa
movb %al, (%rbx)
movb 0x1(%r12), %al
movb %al, 0x1(%rbx)
addq $0x2, %rbx
addq $0x2, %r12
cmpq %r15, %r12
jb 0x6d879
subq -0x30(%rbp), %rbx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_casefold_mb:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rcx
mov [rbp+var_30], rcx
test rdx, rdx
jle loc_6D907
mov r14, r8
mov r15, rdx
mov r12, rsi
mov r13, rdi
add r15, rsi
xor eax, eax
test r9, r9
setz al
shl eax, 2
mov [rbp+var_38], rax
mov rbx, [rbp+var_30]
loc_6D879:
mov rax, [r13+0B8h]
mov rdi, r13
mov rsi, r12
mov rdx, r15
call qword ptr [rax+0C0h]
cmp eax, 2
jge short loc_6D8A7
movzx eax, byte ptr [r12]
inc r12
mov al, [r14+rax]
mov [rbx], al
inc rbx
jmp short loc_6D8FE
loc_6D8A7:
mov al, [r12]
mov rcx, [r13+78h]
test rcx, rcx
jz short loc_6D8EC
movzx edx, al
mov rcx, [rcx+8]
mov rcx, [rcx+rdx*8]
test rcx, rcx
jz short loc_6D8EC
movzx eax, byte ptr [r12+1]
lea rax, [rax+rax*2]
lea rax, [rcx+rax*4]
mov rcx, [rbp+var_38]
mov eax, [rcx+rax]
cmp eax, 100h
jl short loc_6D8E5
mov [rbx], ah
inc rbx
loc_6D8E5:
mov [rbx], al
inc rbx
jmp short loc_6D8FA
loc_6D8EC:
mov [rbx], al
mov al, [r12+1]
mov [rbx+1], al
add rbx, 2
loc_6D8FA:
add r12, 2
loc_6D8FE:
cmp r12, r15
jb loc_6D879
loc_6D907:
sub rbx, [rbp+var_30]
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| _BYTE * my_casefold_mb(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned __int8 *a4,
long long a5,
long long a6)
{
unsigned __int8 *v6; // rbx
unsigned __int8 *v8; // r12
unsigned long long v9; // r15
long long v10; // rax
unsigned __int8 v11; // al
long long v12; // rcx
long long v13; // rcx
int v14; // eax
long long v16; // [rsp+8h] [rbp-38h]
v6 = a4;
if ( a3 > 0 )
{
v8 = a2;
v9 = (unsigned long long)&a2[a3];
v16 = 4 * (unsigned int)(a6 == 0);
v6 = a4;
do
{
if ( (*(int ( **)(long long, unsigned __int8 *, unsigned long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v8,
v9) >= 2 )
{
v11 = *v8;
v12 = *(_QWORD *)(a1 + 120);
if ( v12 && (v13 = *(_QWORD *)(*(_QWORD *)(v12 + 8) + 8LL * v11)) != 0 )
{
v14 = *(_DWORD *)(v16 + v13 + 12LL * v8[1]);
if ( v14 >= 256 )
*v6++ = BYTE1(v14);
*v6++ = v14;
}
else
{
*v6 = v11;
v6[1] = v8[1];
v6 += 2;
}
v8 += 2;
}
else
{
v10 = *v8++;
*v6++ = *(_BYTE *)(a5 + v10);
}
}
while ( (unsigned long long)v8 < v9 );
}
return (_BYTE *)(v6 - a4);
}
| my_casefold_mb:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RCX
MOV qword ptr [RBP + -0x30],RCX
TEST RDX,RDX
JLE 0x0016d907
MOV R14,R8
MOV R15,RDX
MOV R12,RSI
MOV R13,RDI
ADD R15,RSI
XOR EAX,EAX
TEST R9,R9
SETZ AL
SHL EAX,0x2
MOV qword ptr [RBP + -0x38],RAX
MOV RBX,qword ptr [RBP + -0x30]
LAB_0016d879:
MOV RAX,qword ptr [R13 + 0xb8]
MOV RDI,R13
MOV RSI,R12
MOV RDX,R15
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
JGE 0x0016d8a7
MOVZX EAX,byte ptr [R12]
INC R12
MOV AL,byte ptr [R14 + RAX*0x1]
MOV byte ptr [RBX],AL
INC RBX
JMP 0x0016d8fe
LAB_0016d8a7:
MOV AL,byte ptr [R12]
MOV RCX,qword ptr [R13 + 0x78]
TEST RCX,RCX
JZ 0x0016d8ec
MOVZX EDX,AL
MOV RCX,qword ptr [RCX + 0x8]
MOV RCX,qword ptr [RCX + RDX*0x8]
TEST RCX,RCX
JZ 0x0016d8ec
MOVZX EAX,byte ptr [R12 + 0x1]
LEA RAX,[RAX + RAX*0x2]
LEA RAX,[RCX + RAX*0x4]
MOV RCX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RCX + RAX*0x1]
CMP EAX,0x100
JL 0x0016d8e5
MOV byte ptr [RBX],AH
INC RBX
LAB_0016d8e5:
MOV byte ptr [RBX],AL
INC RBX
JMP 0x0016d8fa
LAB_0016d8ec:
MOV byte ptr [RBX],AL
MOV AL,byte ptr [R12 + 0x1]
MOV byte ptr [RBX + 0x1],AL
ADD RBX,0x2
LAB_0016d8fa:
ADD R12,0x2
LAB_0016d8fe:
CMP R12,R15
JC 0x0016d879
LAB_0016d907:
SUB RBX,qword ptr [RBP + -0x30]
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_casefold_mb(long param_1,byte *param_2,long param_3,byte *param_4,long param_5,long param_6)
{
byte bVar1;
long lVar2;
int iVar3;
byte *pbVar4;
byte *pbVar5;
pbVar4 = param_4;
if (0 < param_3) {
pbVar5 = param_2 + param_3;
do {
iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,pbVar5);
if (iVar3 < 2) {
bVar1 = *param_2;
param_2 = param_2 + 1;
*pbVar4 = *(byte *)(param_5 + (ulong)bVar1);
pbVar4 = pbVar4 + 1;
}
else {
if ((*(long *)(param_1 + 0x78) == 0) ||
(lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x78) + 8) + (ulong)*param_2 * 8),
lVar2 == 0)) {
*pbVar4 = *param_2;
pbVar4[1] = param_2[1];
pbVar4 = pbVar4 + 2;
}
else {
iVar3 = *(int *)((ulong)(param_6 == 0) * 4 + lVar2 + (ulong)param_2[1] * 0xc);
if (0xff < iVar3) {
*pbVar4 = (byte)((uint)iVar3 >> 8);
pbVar4 = pbVar4 + 1;
}
*pbVar4 = (byte)iVar3;
pbVar4 = pbVar4 + 1;
}
param_2 = param_2 + 2;
}
} while (param_2 < pbVar5);
}
return (long)pbVar4 - (long)param_4;
}
| |
55,034 | 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, 0xba0224(%rip) # 0xc7a2d0
jne 0xda0b9
movl 0xba0220(%rip), %edi # 0xc7a2d4
callq 0xd9a00
movl 0xba0211(%rip), %eax # 0xc7a2d0
cmpl 0xba020f(%rip), %eax # 0xc7a2d4
je 0xda10a
movl 0xba0203(%rip), %esi # 0xc7a2d0
movl 0xba01fd(%rip), %ecx # 0xc7a2d0
movl 0xba01fb(%rip), %edi # 0xc7a2d4
leaq 0x7d9ea(%rip), %rdx # 0x157aca
leaq 0x7e145(%rip), %rax # 0x15822c
cmpl %edi, %ecx
cmovgq %rax, %rdx
movl 0xba01e1(%rip), %ecx # 0xc7a2d4
leaq 0x79b04(%rip), %rdi # 0x153bfe
movb $0x0, %al
callq 0xd9930
movl $0x1, -0x54(%rbp)
jmp 0xda172
cmpl $0x0, 0xba01c7(%rip) # 0xc7a2d8
jle 0xda130
movl 0xba01bf(%rip), %esi # 0xc7a2d8
leaq 0x79b01(%rip), %rdi # 0x153c21
movb $0x0, %al
callq 0xd9930
movl $0x1, -0x54(%rbp)
jmp 0xda172
cmpq $0x0, 0xba0228(%rip) # 0xc7a360
je 0xda16b
movq 0xba021f(%rip), %rdi # 0xc7a360
leaq -0x50(%rbp), %rsi
callq 0xda1a0
leaq -0x50(%rbp), %rsi
leaq 0x79add(%rip), %rdi # 0x153c32
movb $0x0, %al
callq 0x2a050
movq 0x1e2e6d(%rip), %rax # 0x2bcfd0
movq (%rax), %rdi
callq 0x2a3d0
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x58(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xda193
movl -0x58(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
callq 0x2a250
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_DA0B9
mov edi, cs:dword_C7A2D4
call plan
loc_DA0B9:
mov eax, cs:g_test
cmp eax, cs:dword_C7A2D4
jz short loc_DA10A
mov esi, cs:g_test
mov ecx, cs:g_test
mov edi, cs:dword_C7A2D4
lea rdx, asc_157AC6+4; ""
lea rax, aTableIsReadOnl+0Dh; " only"
cmp ecx, edi
cmovg rdx, rax
mov ecx, cs:dword_C7A2D4
lea rdi, aDTestsPlannedB; "%d tests planned but%s %d executed"
mov al, 0
call diag
mov [rbp+var_54], 1
jmp short loc_DA172
loc_DA10A:
cmp cs:dword_C7A2D8, 0
jle short loc_DA130
mov esi, cs:dword_C7A2D8
lea rdi, aFailedDTests; "Failed %d tests!"
mov al, 0
call diag
mov [rbp+var_54], 1
jmp short loc_DA172
loc_DA130:
cmp cs:start_time, 0
jz short loc_DA16B
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_DA16B:
mov [rbp+var_54], 0
loc_DA172:
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_DA193
mov eax, [rbp+var_58]
add rsp, 60h
pop rbp
retn
loc_DA193:
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_C7A2D4);
if ( g_test == dword_C7A2D4 )
{
if ( dword_C7A2D8 <= 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_C7A2D8,
a11,
a12,
a13,
a14,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
v16);
return 1;
}
}
else
{
v14 = "";
if ( g_test > dword_C7A2D4 )
v14 = " only";
diag(
(long long)"%d tests planned but%s %d executed",
(unsigned int)g_test,
(long long)v14,
(unsigned int)dword_C7A2D4,
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 [0x00d7a2d0],0x0
JNZ 0x001da0b9
MOV EDI,dword ptr [0x00d7a2d4]
CALL 0x001d9a00
LAB_001da0b9:
MOV EAX,dword ptr [0x00d7a2d0]
CMP EAX,dword ptr [0x00d7a2d4]
JZ 0x001da10a
MOV ESI,dword ptr [0x00d7a2d0]
MOV ECX,dword ptr [0x00d7a2d0]
MOV EDI,dword ptr [0x00d7a2d4]
LEA RDX,[0x257aca]
LEA RAX,[0x25822c]
CMP ECX,EDI
CMOVG RDX,RAX
MOV ECX,dword ptr [0x00d7a2d4]
LEA RDI,[0x253bfe]
MOV AL,0x0
CALL 0x001d9930
MOV dword ptr [RBP + -0x54],0x1
JMP 0x001da172
LAB_001da10a:
CMP dword ptr [0x00d7a2d8],0x0
JLE 0x001da130
MOV ESI,dword ptr [0x00d7a2d8]
LEA RDI,[0x253c21]
MOV AL,0x0
CALL 0x001d9930
MOV dword ptr [RBP + -0x54],0x1
JMP 0x001da172
LAB_001da130:
CMP qword ptr [0x00d7a360],0x0
JZ 0x001da16b
MOV RDI,qword ptr [0x00d7a360]
LEA RSI,[RBP + -0x50]
CALL 0x001da1a0
LEA RSI,[RBP + -0x50]
LEA RDI,[0x253c32]
MOV AL,0x0
CALL 0x0012a050
MOV RAX,qword ptr [0x003bcfd0]
MOV RDI,qword ptr [RAX]
CALL 0x0012a3d0
LAB_001da16b:
MOV dword ptr [RBP + -0x54],0x0
LAB_001da172:
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 0x001da193
MOV EAX,dword ptr [RBP + -0x58]
ADD RSP,0x60
POP RBP
RET
LAB_001da193:
CALL 0x0012a250
|
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_00d7a2d4);
}
if (g_test == DAT_00d7a2d4) {
if (DAT_00d7a2d8 < 1) {
if (start_time != 0) {
end_timer(start_time,local_58);
printf("Test took %s\n",local_58);
fflush(*(FILE **)PTR_stdout_003bcfd0);
}
local_5c = 0;
}
else {
diag("Failed %d tests!",DAT_00d7a2d8);
local_5c = 1;
}
}
else {
pcVar1 = "";
if (DAT_00d7a2d4 < g_test) {
pcVar1 = " only";
}
diag("%d tests planned but%s %d executed",g_test,pcVar1,DAT_00d7a2d4);
local_5c = 1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_5c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
55,035 | nglog::posix_strerror_r(int, char*, unsigned long) | ng-log[P]ng-log/src/logging.cc | NGLOG_NO_EXPORT
int posix_strerror_r(int err, char* buf, size_t len) {
// Sanity check input parameters
if (buf == nullptr || len <= 0) {
errno = EINVAL;
return -1;
}
// Reset buf and errno, and try calling whatever version of strerror_r()
// is implemented by glibc
buf[0] = '\000';
int old_errno = errno;
errno = 0;
char* rc = reinterpret_cast<char*>(strerror_r(err, buf, len));
// Both versions set errno on failure
if (errno) {
// Should already be there, but better safe than sorry
buf[0] = '\000';
return -1;
}
errno = old_errno;
// POSIX is vague about whether the string will be terminated, although
// is indirectly implies that typically ERANGE will be returned, instead
// of truncating the string. This is different from the GNU implementation.
// We play it safe by always terminating the string explicitly.
buf[len - 1] = '\000';
// If the function succeeded, we can use its exit code to determine the
// semantics implemented by glibc
if (!rc) {
return 0;
} else {
// GNU semantics detected
if (rc == buf) {
return 0;
} else {
buf[0] = '\000';
#if defined(NGLOG_OS_MACOSX) || defined(NGLOG_OS_FREEBSD) || \
defined(NGLOG_OS_OPENBSD)
if (reinterpret_cast<intptr_t>(rc) < sys_nerr) {
// This means an error on MacOSX or FreeBSD.
return -1;
}
#endif
strncat(buf, rc, len - 1);
return 0;
}
}
} | O0 | cpp | nglog::posix_strerror_r(int, char*, unsigned long):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x14f31
cmpq $0x0, -0x18(%rbp)
ja 0x14f48
callq 0x9070
movl $0x16, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x14ff8
movq -0x10(%rbp), %rax
movb $0x0, (%rax)
callq 0x9070
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
callq 0x9070
movl $0x0, (%rax)
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x9150
movq %rax, -0x28(%rbp)
callq 0x9070
cmpl $0x0, (%rax)
je 0x14f92
movq -0x10(%rbp), %rax
movb $0x0, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x14ff8
movl -0x1c(%rbp), %eax
movl %eax, -0x2c(%rbp)
callq 0x9070
movl -0x2c(%rbp), %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
subq $0x1, %rcx
movb $0x0, (%rax,%rcx)
cmpq $0x0, -0x28(%rbp)
jne 0x14fc2
movl $0x0, -0x4(%rbp)
jmp 0x14ff8
movq -0x28(%rbp), %rax
cmpq -0x10(%rbp), %rax
jne 0x14fd5
movl $0x0, -0x4(%rbp)
jmp 0x14ff8
movq -0x10(%rbp), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x18(%rbp), %rdx
subq $0x1, %rdx
callq 0x94a0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN5nglog16posix_strerror_rEiPcm:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
cmp [rbp+var_10], 0
jz short loc_14F31
cmp [rbp+var_18], 0
ja short loc_14F48
loc_14F31:
call ___errno_location
mov dword ptr [rax], 16h
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_14FF8
loc_14F48:
mov rax, [rbp+var_10]
mov byte ptr [rax], 0
call ___errno_location
mov eax, [rax]
mov [rbp+var_1C], eax
call ___errno_location
mov dword ptr [rax], 0
mov edi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
call _strerror_r
mov [rbp+var_28], rax
call ___errno_location
cmp dword ptr [rax], 0
jz short loc_14F92
mov rax, [rbp+var_10]
mov byte ptr [rax], 0
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_14FF8
loc_14F92:
mov eax, [rbp+var_1C]
mov [rbp+var_2C], eax
call ___errno_location
mov ecx, [rbp+var_2C]
mov [rax], ecx
mov rax, [rbp+var_10]
mov rcx, [rbp+var_18]
sub rcx, 1
mov byte ptr [rax+rcx], 0
cmp [rbp+var_28], 0
jnz short loc_14FC2
mov [rbp+var_4], 0
jmp short loc_14FF8
loc_14FC2:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_10]
jnz short loc_14FD5
mov [rbp+var_4], 0
jmp short loc_14FF8
loc_14FD5:
mov rax, [rbp+var_10]
mov byte ptr [rax], 0
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_18]
sub rdx, 1
call _strncat
mov [rbp+var_4], 0
loc_14FF8:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long nglog::posix_strerror_r(nglog *this, _BYTE *a2, char *a3)
{
long long v4; // [rsp+8h] [rbp-28h]
int v5; // [rsp+14h] [rbp-1Ch]
if ( a2 && a3 )
{
*a2 = 0;
v5 = *(_DWORD *)__errno_location();
*(_DWORD *)__errno_location() = 0;
v4 = strerror_r((unsigned int)this, a2, a3);
if ( *(_DWORD *)__errno_location() )
{
*a2 = 0;
return (unsigned int)-1;
}
else
{
*(_DWORD *)__errno_location() = v5;
a3[(_QWORD)a2 - 1] = 0;
if ( v4 )
{
if ( (_BYTE *)v4 != a2 )
{
*a2 = 0;
strncat(a2, v4, a3 - 1);
}
return 0;
}
else
{
return 0;
}
}
}
else
{
*(_DWORD *)__errno_location() = 22;
return (unsigned int)-1;
}
}
| posix_strerror_r:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00114f31
CMP qword ptr [RBP + -0x18],0x0
JA 0x00114f48
LAB_00114f31:
CALL 0x00109070
MOV dword ptr [RAX],0x16
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00114ff8
LAB_00114f48:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0x0
CALL 0x00109070
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x1c],EAX
CALL 0x00109070
MOV dword ptr [RAX],0x0
MOV EDI,dword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x00109150
MOV qword ptr [RBP + -0x28],RAX
CALL 0x00109070
CMP dword ptr [RAX],0x0
JZ 0x00114f92
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0x0
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00114ff8
LAB_00114f92:
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x2c],EAX
CALL 0x00109070
MOV ECX,dword ptr [RBP + -0x2c]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x18]
SUB RCX,0x1
MOV byte ptr [RAX + RCX*0x1],0x0
CMP qword ptr [RBP + -0x28],0x0
JNZ 0x00114fc2
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00114ff8
LAB_00114fc2:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x00114fd5
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00114ff8
LAB_00114fd5:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x18]
SUB RDX,0x1
CALL 0x001094a0
MOV dword ptr [RBP + -0x4],0x0
LAB_00114ff8:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
/* nglog::posix_strerror_r(int, char*, unsigned long) */
int4 nglog::posix_strerror_r(int param_1,char *param_2,ulong param_3)
{
int iVar1;
int *piVar2;
char *__src;
int4 local_c;
if ((param_2 == (char *)0x0) || (param_3 == 0)) {
piVar2 = __errno_location();
*piVar2 = 0x16;
local_c = 0xffffffff;
}
else {
*param_2 = '\0';
piVar2 = __errno_location();
iVar1 = *piVar2;
piVar2 = __errno_location();
*piVar2 = 0;
__src = strerror_r(param_1,param_2,param_3);
piVar2 = __errno_location();
if (*piVar2 == 0) {
piVar2 = __errno_location();
*piVar2 = iVar1;
param_2[param_3 - 1] = '\0';
if (__src == (char *)0x0) {
local_c = 0;
}
else if (__src == param_2) {
local_c = 0;
}
else {
*param_2 = '\0';
strncat(param_2,__src,param_3 - 1);
local_c = 0;
}
}
else {
*param_2 = '\0';
local_c = 0xffffffff;
}
}
return local_c;
}
| |
55,036 | 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 0x30496
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 0x2d5db
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 0x20380
movq %rax, %r14
leaq 0x60449(%rip), %rsi # 0x8da36
movq %rax, %rdi
callq 0x20270
movq 0xa29f4(%rip), %rsi # 0xcfff0
movq 0xa296d(%rip), %rdx # 0xcff70
movq %r14, %rdi
callq 0x20b30
movq %rax, %r15
jmp 0x2d61b
movq %rax, %r15
movq %r14, %rdi
callq 0x20510
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x304ca
movq %r15, %rdi
callq 0x20bb0
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_2D5DB
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_2D5DB:
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_2D61B
mov r15, rax
mov rdi, r14; void *
call ___cxa_free_exception
loc_2D61B:
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 0x00130496
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 0x0012d5db
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_0012d5db:
PUSH 0x10
POP RDI
CALL 0x00120380
MOV R14,RAX
LAB_0012d5e6:
LEA RSI,[0x18da36]
MOV RDI,RAX
CALL 0x00120270
LAB_0012d5f5:
MOV RSI,qword ptr [0x001cfff0]
MOV RDX,qword ptr [0x001cff70]
MOV RDI,R14
CALL 0x00120b30
|
/* 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 0012d5e6 to 0012d5f4 has its CatchHandler @ 0012d610 */
std::runtime_error::runtime_error(this_00,"Template string is null");
/* try { // try from 0012d5f5 to 0012d60a has its CatchHandler @ 0012d60b */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_001cfff0,PTR__runtime_error_001cff70);
}
| |
55,037 | ma_hashtbl_insert | eloqsql/libmariadb/libmariadb/ma_hashtbl.c | my_bool ma_hashtbl_insert(MA_HASHTBL *info,const uchar *record)
{
int flag;
uint halfbuff,hash_nr,first_index,idx;
uchar *ptr_to_rec= NULL,*ptr_to_rec2= NULL;
MA_HASHTBL_LINK *data,*empty,*gpos= NULL,*gpos2 = NULL,*pos;
LINT_INIT(gpos); LINT_INIT(gpos2);
LINT_INIT(ptr_to_rec); LINT_INIT(ptr_to_rec2);
flag=0;
if (!(empty=(MA_HASHTBL_LINK*) ma_alloc_dynamic(&info->array)))
return(TRUE); /* No more memory */
info->current_record= NO_RECORD;
data=dynamic_element(&info->array,0,MA_HASHTBL_LINK*);
halfbuff= info->blength >> 1;
idx=first_index=info->records-halfbuff;
if (idx != info->records) /* If some records */
{
do
{
pos=data+idx;
hash_nr=rec_hashnr(info,pos->data);
if (flag == 0) /* First loop; Check if ok */
if (hash_mask(hash_nr,info->blength,info->records) != first_index)
break;
if (!(hash_nr & halfbuff))
{ /* Key will not move */
if (!(flag & LOWFIND))
{
if (flag & HIGHFIND)
{
flag=LOWFIND | HIGHFIND;
/* key shall be moved to the current empty position */
gpos=empty;
ptr_to_rec=pos->data;
empty=pos; /* This place is now free */
}
else
{
flag=LOWFIND | LOWUSED; /* key isn't changed */
gpos=pos;
ptr_to_rec=pos->data;
}
}
else
{
if (!(flag & LOWUSED))
{
/* Change link of previous LOW-key */
gpos->data=ptr_to_rec;
gpos->next=(uint) (pos-data);
flag= (flag & HIGHFIND) | (LOWFIND | LOWUSED);
}
gpos=pos;
ptr_to_rec=pos->data;
}
}
else
{ /* key will be moved */
if (!(flag & HIGHFIND))
{
flag= (flag & LOWFIND) | HIGHFIND;
/* key shall be moved to the last (empty) position */
gpos2 = empty; empty=pos;
ptr_to_rec2=pos->data;
}
else
{
if (!(flag & HIGHUSED))
{
/* Change link of previous hash-key and save */
gpos2->data=ptr_to_rec2;
gpos2->next=(uint) (pos-data);
flag= (flag & LOWFIND) | (HIGHFIND | HIGHUSED);
}
gpos2=pos;
ptr_to_rec2=pos->data;
}
}
}
while ((idx=pos->next) != NO_RECORD);
if ((flag & (LOWFIND | LOWUSED)) == LOWFIND)
{
gpos->data=ptr_to_rec;
gpos->next=NO_RECORD;
}
if ((flag & (HIGHFIND | HIGHUSED)) == HIGHFIND)
{
gpos2->data=ptr_to_rec2;
gpos2->next=NO_RECORD;
}
}
/* Check if we are at the empty position */
idx=hash_mask(rec_hashnr(info,record),info->blength,info->records+1);
pos=data+idx;
if (pos == empty)
{
pos->data=(uchar*) record;
pos->next=NO_RECORD;
}
else
{
/* Check if more records in same hash-nr family */
empty[0]=pos[0];
gpos=data+hash_rec_mask(info,pos,info->blength,info->records+1);
if (pos == gpos)
{
pos->data=(uchar*) record;
pos->next=(uint) (empty - data);
}
else
{
pos->data=(uchar*) record;
pos->next=NO_RECORD;
movelink(data,(uint) (pos-data),(uint) (gpos-data),(uint) (empty-data));
}
}
if (++info->records == info->blength)
info->blength+= info->blength;
return(0);
} | O0 | c | ma_hashtbl_insert:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq $0x0, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
movq $0x0, -0x58(%rbp)
movq $0x0, -0x60(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
callq 0x5d310
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
jne 0x5f607
movb $0x1, -0x1(%rbp)
jmp 0x5f98d
movq -0x10(%rbp), %rax
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
shrl %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
subl -0x20(%rbp), %eax
movl %eax, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x8(%rcx), %eax
je 0x5f831
jmp 0x5f64c
movq -0x48(%rbp), %rax
movl -0x2c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x5f9a0
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x1c(%rbp)
jne 0x5f69a
movl -0x24(%rbp), %edi
movq -0x10(%rbp), %rax
movl 0xc(%rax), %esi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %edx
callq 0x5f3c0
cmpl -0x28(%rbp), %eax
je 0x5f698
jmp 0x5f7ed
jmp 0x5f69a
movl -0x24(%rbp), %eax
andl -0x20(%rbp), %eax
cmpl $0x0, %eax
jne 0x5f754
movl -0x1c(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x5f701
movl -0x1c(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x5f6e4
movl $0x5, -0x1c(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x5f6ff
movl $0x3, -0x1c(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x5f74f
movl -0x1c(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0x5f73b
movq -0x38(%rbp), %rcx
movq -0x58(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x68(%rbp), %rax
movq -0x48(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl %eax, %ecx
movq -0x58(%rbp), %rax
movl %ecx, (%rax)
movl -0x1c(%rbp), %eax
andl $0x4, %eax
orl $0x3, %eax
movl %eax, -0x1c(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x5f7d9
movl -0x1c(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x5f789
movl -0x1c(%rbp), %eax
andl $0x1, %eax
orl $0x4, %eax
movl %eax, -0x1c(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
jmp 0x5f7d7
movl -0x1c(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
jne 0x5f7c3
movq -0x40(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x68(%rbp), %rax
movq -0x48(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, (%rax)
movl -0x1c(%rbp), %eax
andl $0x1, %eax
orl $0xc, %eax
movl %eax, -0x1c(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
jmp 0x5f7d9
jmp 0x5f7db
movq -0x68(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
cmpl $-0x1, %eax
jne 0x5f64c
movl -0x1c(%rbp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x5f80e
movq -0x38(%rbp), %rcx
movq -0x58(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x58(%rbp), %rax
movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF
movl -0x1c(%rbp), %eax
andl $0xc, %eax
cmpl $0x4, %eax
jne 0x5f82f
movq -0x40(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x60(%rbp), %rax
movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF
jmp 0x5f831
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x5f9a0
movl %eax, %edi
movq -0x10(%rbp), %rax
movl 0xc(%rax), %esi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %edx
addl $0x1, %edx
callq 0x5f3c0
movl %eax, -0x2c(%rbp)
movq -0x48(%rbp), %rax
movl -0x2c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
cmpq -0x50(%rbp), %rax
jne 0x5f890
movq -0x18(%rbp), %rcx
movq -0x68(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x68(%rbp), %rax
movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF
jmp 0x5f962
movq -0x50(%rbp), %rax
movq -0x68(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x48(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x10(%rbp), %rax
movl 0xc(%rax), %edx
movq -0x10(%rbp), %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
callq 0x5f490
movl %eax, %ecx
movq -0x70(%rbp), %rax
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x68(%rbp), %rax
cmpq -0x58(%rbp), %rax
jne 0x5f90e
movq -0x18(%rbp), %rcx
movq -0x68(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl %eax, %ecx
movq -0x68(%rbp), %rax
movl %ecx, (%rax)
jmp 0x5f960
movq -0x18(%rbp), %rcx
movq -0x68(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x68(%rbp), %rax
movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF
movq -0x48(%rbp), %rdi
movq -0x68(%rbp), %rax
movq -0x48(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl %eax, %esi
movq -0x58(%rbp), %rax
movq -0x48(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl %eax, %edx
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl %eax, %ecx
callq 0x5f9e0
jmp 0x5f962
movq -0x10(%rbp), %rcx
movl 0x8(%rcx), %eax
addl $0x1, %eax
movl %eax, 0x8(%rcx)
movq -0x10(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jne 0x5f989
movq -0x10(%rbp), %rax
movl 0xc(%rax), %ecx
movq -0x10(%rbp), %rax
addl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_hashtbl_insert:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_38], 0
mov [rbp+var_40], 0
mov [rbp+var_58], 0
mov [rbp+var_60], 0
mov [rbp+var_1C], 0
mov rdi, [rbp+var_10]
add rdi, 18h
call ma_alloc_dynamic
mov [rbp+var_50], rax
cmp rax, 0
jnz short loc_5F607
mov [rbp+var_1], 1
jmp loc_5F98D
loc_5F607:
mov rax, [rbp+var_10]
mov dword ptr [rax+10h], 0FFFFFFFFh
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_48], rax
mov rax, [rbp+var_10]
mov eax, [rax+0Ch]
shr eax, 1
mov [rbp+var_20], eax
mov rax, [rbp+var_10]
mov eax, [rax+8]
sub eax, [rbp+var_20]
mov [rbp+var_28], eax
mov [rbp+var_2C], eax
mov eax, [rbp+var_2C]
mov rcx, [rbp+var_10]
cmp eax, [rcx+8]
jz loc_5F831
jmp short $+2
loc_5F64C:
mov rax, [rbp+var_48]
mov ecx, [rbp+var_2C]
shl rcx, 4
add rax, rcx
mov [rbp+var_68], rax
mov rdi, [rbp+var_10]
mov rax, [rbp+var_68]
mov rsi, [rax+8]
call rec_hashnr
mov [rbp+var_24], eax
cmp [rbp+var_1C], 0
jnz short loc_5F69A
mov edi, [rbp+var_24]
mov rax, [rbp+var_10]
mov esi, [rax+0Ch]
mov rax, [rbp+var_10]
mov edx, [rax+8]
call hash_mask
cmp eax, [rbp+var_28]
jz short loc_5F698
jmp loc_5F7ED
loc_5F698:
jmp short $+2
loc_5F69A:
mov eax, [rbp+var_24]
and eax, [rbp+var_20]
cmp eax, 0
jnz loc_5F754
mov eax, [rbp+var_1C]
and eax, 1
cmp eax, 0
jnz short loc_5F701
mov eax, [rbp+var_1C]
and eax, 4
cmp eax, 0
jz short loc_5F6E4
mov [rbp+var_1C], 5
mov rax, [rbp+var_50]
mov [rbp+var_58], rax
mov rax, [rbp+var_68]
mov rax, [rax+8]
mov [rbp+var_38], rax
mov rax, [rbp+var_68]
mov [rbp+var_50], rax
jmp short loc_5F6FF
loc_5F6E4:
mov [rbp+var_1C], 3
mov rax, [rbp+var_68]
mov [rbp+var_58], rax
mov rax, [rbp+var_68]
mov rax, [rax+8]
mov [rbp+var_38], rax
loc_5F6FF:
jmp short loc_5F74F
loc_5F701:
mov eax, [rbp+var_1C]
and eax, 2
cmp eax, 0
jnz short loc_5F73B
mov rcx, [rbp+var_38]
mov rax, [rbp+var_58]
mov [rax+8], rcx
mov rax, [rbp+var_68]
mov rcx, [rbp+var_48]
sub rax, rcx
sar rax, 4
mov ecx, eax
mov rax, [rbp+var_58]
mov [rax], ecx
mov eax, [rbp+var_1C]
and eax, 4
or eax, 3
mov [rbp+var_1C], eax
loc_5F73B:
mov rax, [rbp+var_68]
mov [rbp+var_58], rax
mov rax, [rbp+var_68]
mov rax, [rax+8]
mov [rbp+var_38], rax
loc_5F74F:
jmp loc_5F7D9
loc_5F754:
mov eax, [rbp+var_1C]
and eax, 4
cmp eax, 0
jnz short loc_5F789
mov eax, [rbp+var_1C]
and eax, 1
or eax, 4
mov [rbp+var_1C], eax
mov rax, [rbp+var_50]
mov [rbp+var_60], rax
mov rax, [rbp+var_68]
mov [rbp+var_50], rax
mov rax, [rbp+var_68]
mov rax, [rax+8]
mov [rbp+var_40], rax
jmp short loc_5F7D7
loc_5F789:
mov eax, [rbp+var_1C]
and eax, 8
cmp eax, 0
jnz short loc_5F7C3
mov rcx, [rbp+var_40]
mov rax, [rbp+var_60]
mov [rax+8], rcx
mov rax, [rbp+var_68]
mov rcx, [rbp+var_48]
sub rax, rcx
sar rax, 4
mov ecx, eax
mov rax, [rbp+var_60]
mov [rax], ecx
mov eax, [rbp+var_1C]
and eax, 1
or eax, 0Ch
mov [rbp+var_1C], eax
loc_5F7C3:
mov rax, [rbp+var_68]
mov [rbp+var_60], rax
mov rax, [rbp+var_68]
mov rax, [rax+8]
mov [rbp+var_40], rax
loc_5F7D7:
jmp short $+2
loc_5F7D9:
jmp short $+2
loc_5F7DB:
mov rax, [rbp+var_68]
mov eax, [rax]
mov [rbp+var_2C], eax
cmp eax, 0FFFFFFFFh
jnz loc_5F64C
loc_5F7ED:
mov eax, [rbp+var_1C]
and eax, 3
cmp eax, 1
jnz short loc_5F80E
mov rcx, [rbp+var_38]
mov rax, [rbp+var_58]
mov [rax+8], rcx
mov rax, [rbp+var_58]
mov dword ptr [rax], 0FFFFFFFFh
loc_5F80E:
mov eax, [rbp+var_1C]
and eax, 0Ch
cmp eax, 4
jnz short loc_5F82F
mov rcx, [rbp+var_40]
mov rax, [rbp+var_60]
mov [rax+8], rcx
mov rax, [rbp+var_60]
mov dword ptr [rax], 0FFFFFFFFh
loc_5F82F:
jmp short $+2
loc_5F831:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call rec_hashnr
mov edi, eax
mov rax, [rbp+var_10]
mov esi, [rax+0Ch]
mov rax, [rbp+var_10]
mov edx, [rax+8]
add edx, 1
call hash_mask
mov [rbp+var_2C], eax
mov rax, [rbp+var_48]
mov ecx, [rbp+var_2C]
shl rcx, 4
add rax, rcx
mov [rbp+var_68], rax
mov rax, [rbp+var_68]
cmp rax, [rbp+var_50]
jnz short loc_5F890
mov rcx, [rbp+var_18]
mov rax, [rbp+var_68]
mov [rax+8], rcx
mov rax, [rbp+var_68]
mov dword ptr [rax], 0FFFFFFFFh
jmp loc_5F962
loc_5F890:
mov rax, [rbp+var_50]
mov rcx, [rbp+var_68]
mov rdx, [rcx]
mov [rax], rdx
mov rcx, [rcx+8]
mov [rax+8], rcx
mov rax, [rbp+var_48]
mov [rbp+var_70], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_68]
mov rax, [rbp+var_10]
mov edx, [rax+0Ch]
mov rax, [rbp+var_10]
mov ecx, [rax+8]
add ecx, 1
call hash_rec_mask
mov ecx, eax
mov rax, [rbp+var_70]
mov ecx, ecx
shl rcx, 4
add rax, rcx
mov [rbp+var_58], rax
mov rax, [rbp+var_68]
cmp rax, [rbp+var_58]
jnz short loc_5F90E
mov rcx, [rbp+var_18]
mov rax, [rbp+var_68]
mov [rax+8], rcx
mov rax, [rbp+var_50]
mov rcx, [rbp+var_48]
sub rax, rcx
sar rax, 4
mov ecx, eax
mov rax, [rbp+var_68]
mov [rax], ecx
jmp short loc_5F960
loc_5F90E:
mov rcx, [rbp+var_18]
mov rax, [rbp+var_68]
mov [rax+8], rcx
mov rax, [rbp+var_68]
mov dword ptr [rax], 0FFFFFFFFh
mov rdi, [rbp+var_48]
mov rax, [rbp+var_68]
mov rcx, [rbp+var_48]
sub rax, rcx
sar rax, 4
mov esi, eax
mov rax, [rbp+var_58]
mov rcx, [rbp+var_48]
sub rax, rcx
sar rax, 4
mov edx, eax
mov rax, [rbp+var_50]
mov rcx, [rbp+var_48]
sub rax, rcx
sar rax, 4
mov ecx, eax
call movelink
loc_5F960:
jmp short $+2
loc_5F962:
mov rcx, [rbp+var_10]
mov eax, [rcx+8]
add eax, 1
mov [rcx+8], eax
mov rcx, [rbp+var_10]
cmp eax, [rcx+0Ch]
jnz short loc_5F989
mov rax, [rbp+var_10]
mov ecx, [rax+0Ch]
mov rax, [rbp+var_10]
add ecx, [rax+0Ch]
mov [rax+0Ch], ecx
loc_5F989:
mov [rbp+var_1], 0
loc_5F98D:
mov al, [rbp+var_1]
add rsp, 70h
pop rbp
retn
| char ma_hashtbl_insert(long long a1, long long a2)
{
unsigned int v2; // eax
int v3; // eax
int *v5; // [rsp+8h] [rbp-68h]
long long v6; // [rsp+8h] [rbp-68h]
_QWORD *v7; // [rsp+10h] [rbp-60h]
_QWORD *v8; // [rsp+18h] [rbp-58h]
long long v9; // [rsp+18h] [rbp-58h]
_QWORD *v10; // [rsp+20h] [rbp-50h]
long long v11; // [rsp+28h] [rbp-48h]
long long v12; // [rsp+30h] [rbp-40h]
long long v13; // [rsp+38h] [rbp-38h]
unsigned int v14; // [rsp+44h] [rbp-2Ch]
unsigned int v15; // [rsp+48h] [rbp-28h]
unsigned int v16; // [rsp+4Ch] [rbp-24h]
int v17; // [rsp+50h] [rbp-20h]
int v18; // [rsp+54h] [rbp-1Ch]
v13 = 0LL;
v12 = 0LL;
v8 = 0LL;
v7 = 0LL;
v18 = 0;
v10 = (_QWORD *)ma_alloc_dynamic((long long *)(a1 + 24));
if ( !v10 )
return 1;
*(_DWORD *)(a1 + 16) = -1;
v11 = *(_QWORD *)(a1 + 24);
v17 = *(_DWORD *)(a1 + 12) >> 1;
v15 = *(_DWORD *)(a1 + 8) - v17;
v14 = v15;
if ( v15 != *(_DWORD *)(a1 + 8) )
{
do
{
v5 = (int *)(16LL * v14 + v11);
v16 = rec_hashnr(a1, *((_QWORD *)v5 + 1));
if ( !v18 && (unsigned int)hash_mask(v16, *(_DWORD *)(a1 + 12), *(_DWORD *)(a1 + 8)) != v15 )
break;
if ( (v17 & v16) != 0 )
{
if ( (v18 & 4) != 0 )
{
if ( (v18 & 8) == 0 )
{
v7[1] = v12;
*(_DWORD *)v7 = (16LL * v14) >> 4;
v18 = v18 & 1 | 0xC;
}
v7 = (_QWORD *)(16LL * v14 + v11);
v12 = *((_QWORD *)v5 + 1);
}
else
{
v18 = v18 & 1 | 4;
v7 = v10;
v10 = (_QWORD *)(16LL * v14 + v11);
v12 = *((_QWORD *)v5 + 1);
}
}
else if ( (v18 & 1) != 0 )
{
if ( (v18 & 2) == 0 )
{
v8[1] = v13;
*(_DWORD *)v8 = (16LL * v14) >> 4;
v18 = v18 & 4 | 3;
}
v8 = (_QWORD *)(16LL * v14 + v11);
v13 = *((_QWORD *)v5 + 1);
}
else if ( (v18 & 4) != 0 )
{
v18 = 5;
v8 = v10;
v13 = *((_QWORD *)v5 + 1);
v10 = (_QWORD *)(16LL * v14 + v11);
}
else
{
v18 = 3;
v8 = (_QWORD *)(16LL * v14 + v11);
v13 = *((_QWORD *)v5 + 1);
}
v14 = *v5;
}
while ( *v5 != -1 );
if ( (v18 & 3) == 1 )
{
v8[1] = v13;
*(_DWORD *)v8 = -1;
}
if ( (v18 & 0xC) == 4 )
{
v7[1] = v12;
*(_DWORD *)v7 = -1;
}
}
v2 = rec_hashnr(a1, a2);
v6 = 16LL * (unsigned int)hash_mask(v2, *(_DWORD *)(a1 + 12), *(_DWORD *)(a1 + 8) + 1) + v11;
if ( (_QWORD *)v6 == v10 )
{
*(_QWORD *)(v6 + 8) = a2;
*(_DWORD *)v6 = -1;
}
else
{
*v10 = *(_QWORD *)v6;
v10[1] = *(_QWORD *)(v6 + 8);
v9 = 16LL * (unsigned int)hash_rec_mask(a1, v6, *(_DWORD *)(a1 + 12), *(_DWORD *)(a1 + 8) + 1) + v11;
*(_QWORD *)(v6 + 8) = a2;
if ( v6 == v9 )
{
*(_DWORD *)v6 = ((long long)v10 - v11) >> 4;
}
else
{
*(_DWORD *)v6 = -1;
movelink(
v11,
(unsigned int)((v6 - v11) >> 4),
(unsigned int)((v9 - v11) >> 4),
(unsigned int)(((long long)v10 - v11) >> 4));
}
}
v3 = *(_DWORD *)(a1 + 8) + 1;
*(_DWORD *)(a1 + 8) = v3;
if ( v3 == *(_DWORD *)(a1 + 12) )
*(_DWORD *)(a1 + 12) *= 2;
return 0;
}
| ma_hashtbl_insert:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x38],0x0
MOV qword ptr [RBP + -0x40],0x0
MOV qword ptr [RBP + -0x58],0x0
MOV qword ptr [RBP + -0x60],0x0
MOV dword ptr [RBP + -0x1c],0x0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x18
CALL 0x0015d310
MOV qword ptr [RBP + -0x50],RAX
CMP RAX,0x0
JNZ 0x0015f607
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015f98d
LAB_0015f607:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x10],0xffffffff
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xc]
SHR EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
SUB EAX,dword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x28],EAX
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x8]
JZ 0x0015f831
JMP 0x0015f64c
LAB_0015f64c:
MOV RAX,qword ptr [RBP + -0x48]
MOV ECX,dword ptr [RBP + -0x2c]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x68],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x68]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x0015f9a0
MOV dword ptr [RBP + -0x24],EAX
CMP dword ptr [RBP + -0x1c],0x0
JNZ 0x0015f69a
MOV EDI,dword ptr [RBP + -0x24]
MOV RAX,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RAX + 0xc]
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0x8]
CALL 0x0015f3c0
CMP EAX,dword ptr [RBP + -0x28]
JZ 0x0015f698
JMP 0x0015f7ed
LAB_0015f698:
JMP 0x0015f69a
LAB_0015f69a:
MOV EAX,dword ptr [RBP + -0x24]
AND EAX,dword ptr [RBP + -0x20]
CMP EAX,0x0
JNZ 0x0015f754
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x1
CMP EAX,0x0
JNZ 0x0015f701
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x4
CMP EAX,0x0
JZ 0x0015f6e4
MOV dword ptr [RBP + -0x1c],0x5
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0015f6ff
LAB_0015f6e4:
MOV dword ptr [RBP + -0x1c],0x3
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x38],RAX
LAB_0015f6ff:
JMP 0x0015f74f
LAB_0015f701:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x2
CMP EAX,0x0
JNZ 0x0015f73b
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x48]
SUB RAX,RCX
SAR RAX,0x4
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX],ECX
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x4
OR EAX,0x3
MOV dword ptr [RBP + -0x1c],EAX
LAB_0015f73b:
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x38],RAX
LAB_0015f74f:
JMP 0x0015f7d9
LAB_0015f754:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x4
CMP EAX,0x0
JNZ 0x0015f789
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x1
OR EAX,0x4
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0015f7d7
LAB_0015f789:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x8
CMP EAX,0x0
JNZ 0x0015f7c3
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x48]
SUB RAX,RCX
SAR RAX,0x4
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX],ECX
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x1
OR EAX,0xc
MOV dword ptr [RBP + -0x1c],EAX
LAB_0015f7c3:
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x40],RAX
LAB_0015f7d7:
JMP 0x0015f7d9
LAB_0015f7d9:
JMP 0x0015f7db
LAB_0015f7db:
MOV RAX,qword ptr [RBP + -0x68]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,-0x1
JNZ 0x0015f64c
LAB_0015f7ed:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x3
CMP EAX,0x1
JNZ 0x0015f80e
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX],0xffffffff
LAB_0015f80e:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0xc
CMP EAX,0x4
JNZ 0x0015f82f
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX],0xffffffff
LAB_0015f82f:
JMP 0x0015f831
LAB_0015f831:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0015f9a0
MOV EDI,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RAX + 0xc]
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0x8]
ADD EDX,0x1
CALL 0x0015f3c0
MOV dword ptr [RBP + -0x2c],EAX
MOV RAX,qword ptr [RBP + -0x48]
MOV ECX,dword ptr [RBP + -0x2c]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x68]
CMP RAX,qword ptr [RBP + -0x50]
JNZ 0x0015f890
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x68]
MOV dword ptr [RAX],0xffffffff
JMP 0x0015f962
LAB_0015f890:
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x68]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x70],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0xc]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x8]
ADD ECX,0x1
CALL 0x0015f490
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x70]
MOV ECX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x68]
CMP RAX,qword ptr [RBP + -0x58]
JNZ 0x0015f90e
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x48]
SUB RAX,RCX
SAR RAX,0x4
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x68]
MOV dword ptr [RAX],ECX
JMP 0x0015f960
LAB_0015f90e:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x68]
MOV dword ptr [RAX],0xffffffff
MOV RDI,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x48]
SUB RAX,RCX
SAR RAX,0x4
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x48]
SUB RAX,RCX
SAR RAX,0x4
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x48]
SUB RAX,RCX
SAR RAX,0x4
MOV ECX,EAX
CALL 0x0015f9e0
LAB_0015f960:
JMP 0x0015f962
LAB_0015f962:
MOV RCX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RCX + 0x8]
ADD EAX,0x1
MOV dword ptr [RCX + 0x8],EAX
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0xc]
JNZ 0x0015f989
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0xc]
MOV RAX,qword ptr [RBP + -0x10]
ADD ECX,dword ptr [RAX + 0xc]
MOV dword ptr [RAX + 0xc],ECX
LAB_0015f989:
MOV byte ptr [RBP + -0x1],0x0
LAB_0015f98d:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x70
POP RBP
RET
|
int1 ma_hashtbl_insert(long param_1,int8 param_2)
{
long lVar1;
uint uVar2;
uint uVar3;
uint uVar4;
uint uVar5;
int4 uVar6;
int iVar7;
uint *puVar8;
uint *puVar9;
uint *local_68;
uint *local_60;
uint *local_58;
int8 local_48;
int8 local_40;
uint local_34;
uint local_24;
int1 local_9;
local_40 = 0;
local_48 = 0;
local_60 = (uint *)0x0;
local_68 = (uint *)0x0;
local_24 = 0;
local_58 = (uint *)ma_alloc_dynamic(param_1 + 0x18);
if (local_58 == (uint *)0x0) {
local_9 = 1;
}
else {
*(int4 *)(param_1 + 0x10) = 0xffffffff;
lVar1 = *(long *)(param_1 + 0x18);
uVar2 = *(uint *)(param_1 + 0xc) >> 1;
uVar3 = *(int *)(param_1 + 8) - uVar2;
local_34 = uVar3;
if (uVar3 != *(uint *)(param_1 + 8)) {
do {
puVar8 = (uint *)(lVar1 + (ulong)local_34 * 0x10);
uVar4 = rec_hashnr(param_1,*(int8 *)(puVar8 + 2));
if ((local_24 == 0) &&
(uVar5 = hash_mask(uVar4,*(int4 *)(param_1 + 0xc),*(int4 *)(param_1 + 8)),
uVar5 != uVar3)) break;
if ((uVar4 & uVar2) == 0) {
if ((local_24 & 1) == 0) {
if ((local_24 & 4) == 0) {
local_24 = 3;
local_40 = *(int8 *)(puVar8 + 2);
local_60 = puVar8;
}
else {
local_24 = 5;
local_60 = local_58;
local_40 = *(int8 *)(puVar8 + 2);
local_58 = puVar8;
}
}
else {
if ((local_24 & 2) == 0) {
*(int8 *)(local_60 + 2) = local_40;
*local_60 = (uint)((long)puVar8 - lVar1 >> 4);
local_24 = local_24 & 4 | 3;
}
local_40 = *(int8 *)(puVar8 + 2);
local_60 = puVar8;
}
}
else if ((local_24 & 4) == 0) {
local_24 = local_24 & 1 | 4;
local_68 = local_58;
local_48 = *(int8 *)(puVar8 + 2);
local_58 = puVar8;
}
else {
if ((local_24 & 8) == 0) {
*(int8 *)(local_68 + 2) = local_48;
*local_68 = (uint)((long)puVar8 - lVar1 >> 4);
local_24 = local_24 & 1 | 0xc;
}
local_48 = *(int8 *)(puVar8 + 2);
local_68 = puVar8;
}
local_34 = *puVar8;
} while (*puVar8 != 0xffffffff);
if ((local_24 & 3) == 1) {
*(int8 *)(local_60 + 2) = local_40;
*local_60 = 0xffffffff;
}
if ((local_24 & 0xc) == 4) {
*(int8 *)(local_68 + 2) = local_48;
*local_68 = 0xffffffff;
}
}
uVar6 = rec_hashnr(param_1,param_2);
uVar2 = hash_mask(uVar6,*(int4 *)(param_1 + 0xc),*(int *)(param_1 + 8) + 1);
puVar8 = (uint *)(lVar1 + (ulong)uVar2 * 0x10);
if (puVar8 == local_58) {
*(int8 *)(puVar8 + 2) = param_2;
*puVar8 = 0xffffffff;
}
else {
*(int8 *)local_58 = *(int8 *)puVar8;
*(int8 *)(local_58 + 2) = *(int8 *)(puVar8 + 2);
uVar2 = hash_rec_mask(param_1,puVar8,*(int4 *)(param_1 + 0xc),*(int *)(param_1 + 8) + 1)
;
puVar9 = (uint *)(lVar1 + (ulong)uVar2 * 0x10);
if (puVar8 == puVar9) {
*(int8 *)(puVar8 + 2) = param_2;
*puVar8 = (uint)((long)local_58 - lVar1 >> 4);
}
else {
*(int8 *)(puVar8 + 2) = param_2;
*puVar8 = 0xffffffff;
movelink(lVar1,(long)puVar8 - lVar1 >> 4 & 0xffffffff,(long)puVar9 - lVar1 >> 4 & 0xffffffff
,(long)local_58 - lVar1 >> 4 & 0xffffffff);
}
}
iVar7 = *(int *)(param_1 + 8) + 1;
*(int *)(param_1 + 8) = iVar7;
if (iVar7 == *(int *)(param_1 + 0xc)) {
*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + *(int *)(param_1 + 0xc);
}
local_9 = 0;
}
return local_9;
}
| |
55,038 | do_verify_prepare_field | eloqsql/libmariadb/unittest/libmariadb/my_test.h | int do_verify_prepare_field(MYSQL_RES *result,
unsigned int no, const char *name,
const char *org_name,
enum enum_field_types type __attribute__((unused)),
const char *table,
const char *org_table, const char *db,
unsigned long length __attribute__((unused)),
const char *def __attribute__((unused)),
const char *file __attribute__((unused)),
int line __attribute__((unused)))
{
MYSQL_FIELD *field;
/* MARIADB_CHARSET_INFO *cs; */
FAIL_IF(!(field= mysql_fetch_field_direct(result, no)), "FAILED to get result");
/* cs= mysql_find_charset_nr(field->charsetnr);
FAIL_UNLESS(cs, "Couldn't get character set"); */
FAIL_UNLESS(strcmp(field->name, name) == 0, "field->name differs");
FAIL_UNLESS(strcmp(field->org_name, org_name) == 0, "field->org_name differs");
/*
if ((expected_field_length= length * cs->mbmaxlen) > UINT_MAX32)
expected_field_length= UINT_MAX32;
*/
/*
XXX: silent column specification change works based on number of
bytes a column occupies. So CHAR -> VARCHAR upgrade is possible even
for CHAR(2) column if its character set is multibyte.
VARCHAR -> CHAR downgrade won't work for VARCHAR(3) as one would
expect.
*/
// if (cs->char_maxlen == 1)
// FAIL_UNLESS(field->type == type, "field->type differs");
if (table)
FAIL_UNLESS(strcmp(field->table, table) == 0, "field->table differs");
if (org_table)
FAIL_UNLESS(strcmp(field->org_table, org_table) == 0, "field->org_table differs");
if (strcmp(field->db,db))
diag("%s / %s", field->db, db);
FAIL_UNLESS(strcmp(field->db, db) == 0, "field->db differs");
/*
Character set should be taken into account for multibyte encodings, such
as utf8. Field length is calculated as number of characters * maximum
number of bytes a character can occupy.
*/
return OK;
} | O0 | c | do_verify_prepare_field:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl 0x38(%rbp), %eax
movq 0x30(%rbp), %rax
movq 0x28(%rbp), %rax
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x21bc0
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0x139c9
leaq 0x37741(%rip), %rdi # 0x4b0e4
leaq 0x3774d(%rip), %rsi # 0x4b0f7
leaq 0x3775b(%rip), %rdx # 0x4b10c
movl $0x119, %ecx # imm = 0x119
movb $0x0, %al
callq 0x155c0
movl $0x1, -0x4(%rbp)
jmp 0x13b70
jmp 0x139cb
jmp 0x139cd
movq -0x40(%rbp), %rax
movq (%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x135f0
cmpl $0x0, %eax
je 0x13a0f
leaq 0x376fb(%rip), %rdi # 0x4b0e4
leaq 0x3776e(%rip), %rsi # 0x4b15e
leaq 0x37715(%rip), %rdx # 0x4b10c
movl $0x11c, %ecx # imm = 0x11C
movb $0x0, %al
callq 0x155c0
movl $0x1, -0x4(%rbp)
jmp 0x13b70
jmp 0x13a11
jmp 0x13a13
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x28(%rbp), %rsi
callq 0x135f0
cmpl $0x0, %eax
je 0x13a56
leaq 0x376b4(%rip), %rdi # 0x4b0e4
leaq 0x3773b(%rip), %rsi # 0x4b172
leaq 0x376ce(%rip), %rdx # 0x4b10c
movl $0x11d, %ecx # imm = 0x11D
movb $0x0, %al
callq 0x155c0
movl $0x1, -0x4(%rbp)
jmp 0x13b70
jmp 0x13a58
cmpq $0x0, -0x38(%rbp)
je 0x13aa8
jmp 0x13a61
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x38(%rbp), %rsi
callq 0x135f0
cmpl $0x0, %eax
je 0x13aa4
leaq 0x37666(%rip), %rdi # 0x4b0e4
leaq 0x37705(%rip), %rsi # 0x4b18a
leaq 0x37680(%rip), %rdx # 0x4b10c
movl $0x12c, %ecx # imm = 0x12C
movb $0x0, %al
callq 0x155c0
movl $0x1, -0x4(%rbp)
jmp 0x13b70
jmp 0x13aa6
jmp 0x13aa8
cmpq $0x0, 0x10(%rbp)
je 0x13af5
jmp 0x13ab1
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rdi
movq 0x10(%rbp), %rsi
callq 0x135f0
cmpl $0x0, %eax
je 0x13af1
leaq 0x37616(%rip), %rdi # 0x4b0e4
leaq 0x376ca(%rip), %rsi # 0x4b19f
leaq 0x37630(%rip), %rdx # 0x4b10c
movl $0x12e, %ecx # imm = 0x12E
movb $0x0, %al
callq 0x155c0
movl $0x1, -0x4(%rbp)
jmp 0x13b70
jmp 0x13af3
jmp 0x13af5
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x18(%rbp), %rsi
callq 0x135f0
cmpl $0x0, %eax
je 0x13b25
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x18(%rbp), %rdx
leaq 0x3769a(%rip), %rdi # 0x4b1b8
movb $0x0, %al
callq 0x155c0
jmp 0x13b27
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x18(%rbp), %rsi
callq 0x135f0
cmpl $0x0, %eax
je 0x13b67
leaq 0x375a0(%rip), %rdi # 0x4b0e4
leaq 0x37675(%rip), %rsi # 0x4b1c0
leaq 0x375ba(%rip), %rdx # 0x4b10c
movl $0x131, %ecx # imm = 0x131
movb $0x0, %al
callq 0x155c0
movl $0x1, -0x4(%rbp)
jmp 0x13b70
jmp 0x13b69
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| do_verify_prepare_field:
push rbp
mov rbp, rsp
sub rsp, 40h
mov eax, [rbp+arg_28]
mov rax, [rbp+arg_20]
mov rax, [rbp+arg_18]
mov rax, [rbp+arg_10]
mov rax, [rbp+arg_8]
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_2C], r8d
mov [rbp+var_38], r9
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
call mysql_fetch_field_direct
mov [rbp+var_40], rax
cmp rax, 0
jnz short loc_139C9
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aFailedToGetRes; "FAILED to get result"
lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 119h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_13B70
loc_139C9:
jmp short $+2
loc_139CB:
jmp short $+2
loc_139CD:
mov rax, [rbp+var_40]
mov rdi, [rax]
mov rsi, [rbp+var_20]
call _strcmp
cmp eax, 0
jz short loc_13A0F
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aFieldNameDiffe; "field->name differs"
lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 11Ch
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_13B70
loc_13A0F:
jmp short $+2
loc_13A11:
jmp short $+2
loc_13A13:
mov rax, [rbp+var_40]
mov rdi, [rax+8]
mov rsi, [rbp+var_28]
call _strcmp
cmp eax, 0
jz short loc_13A56
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aFieldOrgNameDi; "field->org_name differs"
lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 11Dh
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_13B70
loc_13A56:
jmp short $+2
loc_13A58:
cmp [rbp+var_38], 0
jz short loc_13AA8
jmp short $+2
loc_13A61:
mov rax, [rbp+var_40]
mov rdi, [rax+10h]
mov rsi, [rbp+var_38]
call _strcmp
cmp eax, 0
jz short loc_13AA4
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aFieldTableDiff; "field->table differs"
lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 12Ch
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_13B70
loc_13AA4:
jmp short $+2
loc_13AA6:
jmp short $+2
loc_13AA8:
cmp [rbp+arg_0], 0
jz short loc_13AF5
jmp short $+2
loc_13AB1:
mov rax, [rbp+var_40]
mov rdi, [rax+18h]
mov rsi, [rbp+arg_0]
call _strcmp
cmp eax, 0
jz short loc_13AF1
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aFieldOrgTableD; "field->org_table differs"
lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 12Eh
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_13B70
loc_13AF1:
jmp short $+2
loc_13AF3:
jmp short $+2
loc_13AF5:
mov rax, [rbp+var_40]
mov rdi, [rax+20h]
mov rsi, [rbp+arg_8]
call _strcmp
cmp eax, 0
jz short loc_13B25
mov rax, [rbp+var_40]
mov rsi, [rax+20h]
mov rdx, [rbp+arg_8]
lea rdi, aSS; "%s / %s"
mov al, 0
call diag
loc_13B25:
jmp short $+2
loc_13B27:
mov rax, [rbp+var_40]
mov rdi, [rax+20h]
mov rsi, [rbp+arg_8]
call _strcmp
cmp eax, 0
jz short loc_13B67
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aFieldDbDiffers; "field->db differs"
lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 131h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_13B70
loc_13B67:
jmp short $+2
loc_13B69:
mov [rbp+var_4], 0
loc_13B70:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long do_verify_prepare_field(
long long a1,
unsigned int a2,
long long a3,
long long a4,
long long a5,
long long a6,
long long a7,
long long a8)
{
int v8; // r8d
int v9; // r9d
int v10; // r8d
int v11; // r9d
int v12; // r8d
int v13; // r9d
int v14; // r8d
int v15; // r9d
int v16; // r8d
int v17; // r9d
int v18; // ecx
int v19; // r8d
int v20; // r9d
int v21; // r8d
int v22; // r9d
_QWORD *field_direct; // [rsp+0h] [rbp-40h]
field_direct = (_QWORD *)mysql_fetch_field_direct(a1, a2);
if ( field_direct )
{
if ( !(unsigned int)strcmp(*field_direct, a3) )
{
if ( !(unsigned int)strcmp(field_direct[1], a4) )
{
if ( !a6 || !(unsigned int)strcmp(field_direct[2], a6) )
{
if ( !a7 || !(unsigned int)strcmp(field_direct[3], a7) )
{
if ( (unsigned int)strcmp(field_direct[4], a8) )
diag((unsigned int)"%s / %s", field_direct[4], a8, v18, v19, v20, (char)field_direct);
if ( !(unsigned int)strcmp(field_direct[4], a8) )
{
return 0;
}
else
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"field->db differs",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
305,
v21,
v22,
(char)field_direct);
return 1;
}
}
else
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"field->org_table differs",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
302,
v16,
v17,
(char)field_direct);
return 1;
}
}
else
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"field->table differs",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
300,
v14,
v15,
(char)field_direct);
return 1;
}
}
else
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"field->org_name differs",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
285,
v12,
v13,
(char)field_direct);
return 1;
}
}
else
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"field->name differs",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
284,
v10,
v11,
(char)field_direct);
return 1;
}
}
else
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"FAILED to get result",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
281,
v8,
v9,
0);
return 1;
}
}
| do_verify_prepare_field:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV EAX,dword ptr [RBP + 0x38]
MOV RAX,qword ptr [RBP + 0x30]
MOV RAX,qword ptr [RBP + 0x28]
MOV RAX,qword ptr [RBP + 0x20]
MOV RAX,qword ptr [RBP + 0x18]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV dword ptr [RBP + -0x2c],R8D
MOV qword ptr [RBP + -0x38],R9
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
CALL 0x00121bc0
MOV qword ptr [RBP + -0x40],RAX
CMP RAX,0x0
JNZ 0x001139c9
LEA RDI,[0x14b0e4]
LEA RSI,[0x14b0f7]
LEA RDX,[0x14b10c]
MOV ECX,0x119
MOV AL,0x0
CALL 0x001155c0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00113b70
LAB_001139c9:
JMP 0x001139cb
LAB_001139cb:
JMP 0x001139cd
LAB_001139cd:
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x001135f0
CMP EAX,0x0
JZ 0x00113a0f
LEA RDI,[0x14b0e4]
LEA RSI,[0x14b15e]
LEA RDX,[0x14b10c]
MOV ECX,0x11c
MOV AL,0x0
CALL 0x001155c0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00113b70
LAB_00113a0f:
JMP 0x00113a11
LAB_00113a11:
JMP 0x00113a13
LAB_00113a13:
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX + 0x8]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x001135f0
CMP EAX,0x0
JZ 0x00113a56
LEA RDI,[0x14b0e4]
LEA RSI,[0x14b172]
LEA RDX,[0x14b10c]
MOV ECX,0x11d
MOV AL,0x0
CALL 0x001155c0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00113b70
LAB_00113a56:
JMP 0x00113a58
LAB_00113a58:
CMP qword ptr [RBP + -0x38],0x0
JZ 0x00113aa8
JMP 0x00113a61
LAB_00113a61:
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX + 0x10]
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x001135f0
CMP EAX,0x0
JZ 0x00113aa4
LEA RDI,[0x14b0e4]
LEA RSI,[0x14b18a]
LEA RDX,[0x14b10c]
MOV ECX,0x12c
MOV AL,0x0
CALL 0x001155c0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00113b70
LAB_00113aa4:
JMP 0x00113aa6
LAB_00113aa6:
JMP 0x00113aa8
LAB_00113aa8:
CMP qword ptr [RBP + 0x10],0x0
JZ 0x00113af5
JMP 0x00113ab1
LAB_00113ab1:
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RBP + 0x10]
CALL 0x001135f0
CMP EAX,0x0
JZ 0x00113af1
LEA RDI,[0x14b0e4]
LEA RSI,[0x14b19f]
LEA RDX,[0x14b10c]
MOV ECX,0x12e
MOV AL,0x0
CALL 0x001155c0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00113b70
LAB_00113af1:
JMP 0x00113af3
LAB_00113af3:
JMP 0x00113af5
LAB_00113af5:
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX + 0x20]
MOV RSI,qword ptr [RBP + 0x18]
CALL 0x001135f0
CMP EAX,0x0
JZ 0x00113b25
MOV RAX,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RAX + 0x20]
MOV RDX,qword ptr [RBP + 0x18]
LEA RDI,[0x14b1b8]
MOV AL,0x0
CALL 0x001155c0
LAB_00113b25:
JMP 0x00113b27
LAB_00113b27:
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX + 0x20]
MOV RSI,qword ptr [RBP + 0x18]
CALL 0x001135f0
CMP EAX,0x0
JZ 0x00113b67
LEA RDI,[0x14b0e4]
LEA RSI,[0x14b1c0]
LEA RDX,[0x14b10c]
MOV ECX,0x131
MOV AL,0x0
CALL 0x001155c0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00113b70
LAB_00113b67:
JMP 0x00113b69
LAB_00113b69:
MOV dword ptr [RBP + -0x4],0x0
LAB_00113b70:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4
do_verify_prepare_field
(int8 param_1,int4 param_2,char *param_3,char *param_4,int8 param_5,
char *param_6,char *param_7,char *param_8)
{
int iVar1;
int8 *puVar2;
int4 local_c;
puVar2 = (int8 *)mysql_fetch_field_direct(param_1,param_2);
if (puVar2 == (int8 *)0x0) {
diag("Error: %s (%s: %d)","FAILED to get result",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x119);
local_c = 1;
}
else {
iVar1 = strcmp((char *)*puVar2,param_3);
if (iVar1 == 0) {
iVar1 = strcmp((char *)puVar2[1],param_4);
if (iVar1 == 0) {
if ((param_6 == (char *)0x0) || (iVar1 = strcmp((char *)puVar2[2],param_6), iVar1 == 0)) {
if ((param_7 == (char *)0x0) || (iVar1 = strcmp((char *)puVar2[3],param_7), iVar1 == 0)) {
iVar1 = strcmp((char *)puVar2[4],param_8);
if (iVar1 != 0) {
diag("%s / %s",puVar2[4],param_8);
}
iVar1 = strcmp((char *)puVar2[4],param_8);
if (iVar1 == 0) {
local_c = 0;
}
else {
diag("Error: %s (%s: %d)","field->db differs",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h"
,0x131);
local_c = 1;
}
}
else {
diag("Error: %s (%s: %d)","field->org_table differs",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h"
,0x12e);
local_c = 1;
}
}
else {
diag("Error: %s (%s: %d)","field->table differs",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
300);
local_c = 1;
}
}
else {
diag("Error: %s (%s: %d)","field->org_name differs",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
0x11d);
local_c = 1;
}
}
else {
diag("Error: %s (%s: %d)","field->name differs",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x11c
);
local_c = 1;
}
}
return local_c;
}
| |
55,039 | get_all_kv_cache_types[abi:cxx11]() | monkey531[P]llama/common/arg.cpp | static std::string get_all_kv_cache_types() {
std::ostringstream msg;
for (const auto & type : kv_cache_types) {
msg << ggml_type_name(type) << (&type == &kv_cache_types.back() ? "" : ", ");
}
return msg.str();
} | O3 | cpp | get_all_kv_cache_types[abi:cxx11]():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp # imm = 0x188
movq %rdi, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x1ab30
movq 0xddc40(%rip), %r12 # 0x12cd18
movq 0xddc41(%rip), %r13 # 0x12cd20
cmpq %r13, %r12
je 0x4f16d
leaq 0x9cd03(%rip), %rbp # 0xebdf2
leaq 0xa08ad(%rip), %rbx # 0xef9a3
leaq 0x10(%rsp), %r14
movl (%r12), %edi
callq 0x1a7f0
movq %rax, %r15
testq %rax, %rax
je 0x4f124
movq %r15, %rdi
callq 0x1a3d0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1a9a0
jmp 0x4f140
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %rdi
addq $0x10, %rdi
movl 0x20(%rdi), %esi
orl $0x1, %esi
callq 0x1ae80
movq 0xddbd9(%rip), %rax # 0x12cd20
addq $-0x4, %rax
xorl %edx, %edx
cmpq %rax, %r12
setne %dl
movq %rbx, %rsi
cmoveq %rbp, %rsi
addl %edx, %edx
movq %r14, %rdi
callq 0x1a9a0
addq $0x4, %r12
cmpq %r13, %r12
jne 0x4f0fb
leaq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x1ad50
movq 0xdcdf5(%rip), %rsi # 0x12bf78
leaq 0x10(%rsp), %rdi
callq 0x1a480
leaq 0x80(%rsp), %rdi
callq 0x1a2a0
addq $0x188, %rsp # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4f1ae
movq %rax, %rbx
movq 0xdcdc0(%rip), %rsi # 0x12bf78
leaq 0x10(%rsp), %rdi
callq 0x1a480
leaq 0x80(%rsp), %rdi
callq 0x1a2a0
movq %rbx, %rdi
callq 0x1af20
| _ZL22get_all_kv_cache_typesB5cxx11v:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 188h
mov [rsp+1B8h+var_1B0], rdi
lea rdi, [rsp+1B8h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov r12, cs:_ZL14kv_cache_types; kv_cache_types
mov r13, cs:qword_12CD20
cmp r12, r13
jz loc_4F16D
lea rbp, aErrorWhileHand_0+34h; ""
lea rbx, aZuD+6; ", "
lea r14, [rsp+1B8h+var_1A8]
loc_4F0FB:
mov edi, [r12]
call _ggml_type_name
mov r15, rax
test rax, rax
jz short loc_4F124
mov rdi, r15
call _strlen
mov rdi, r14
mov rsi, r15
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_4F140
loc_4F124:
mov rax, [rsp+1B8h+var_1A8]
mov rax, [rax-18h]
lea rdi, [rsp+rax+1B8h+var_1B8]
add rdi, 10h
mov esi, [rdi+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_4F140:
mov rax, cs:qword_12CD20
add rax, 0FFFFFFFFFFFFFFFCh
xor edx, edx
cmp r12, rax
setnz dl
mov rsi, rbx
cmovz rsi, rbp
add edx, edx
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
add r12, 4
cmp r12, r13
jnz short loc_4F0FB
loc_4F16D:
lea rsi, [rsp+1B8h+var_1A0]
mov rdi, [rsp+1B8h+var_1B0]
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+1B8h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+1B8h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
add rsp, 188h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_4F1AE:
mov rbx, rax
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+arg_78]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
| void get_all_kv_cache_types[abi:cxx11](long long a1)
{
unsigned int *v1; // r12
long long i; // r13
long long v3; // rax
long long v4; // r15
long long v5; // rax
char *v6; // rsi
long long v7; // [rsp+10h] [rbp-1A8h] BYREF
_BYTE v8[104]; // [rsp+18h] [rbp-1A0h] BYREF
_BYTE v9[312]; // [rsp+80h] [rbp-138h] BYREF
std::ostringstream::basic_ostringstream(&v7);
v1 = (unsigned int *)kv_cache_types;
for ( i = qword_12CD20; v1 != (unsigned int *)i; ++v1 )
{
v3 = ggml_type_name(*v1);
v4 = v3;
if ( v3 )
{
v5 = strlen(v3);
std::__ostream_insert<char,std::char_traits<char>>(&v7, v4, v5);
}
else
{
std::ios::clear(&v8[*(_QWORD *)(v7 - 24) - 8], *(_DWORD *)&v8[*(_QWORD *)(v7 - 24) + 24] | 1u);
}
v6 = ", ";
if ( v1 == (unsigned int *)(qword_12CD20 - 4) )
v6 = "";
std::__ostream_insert<char,std::char_traits<char>>(
&v7,
v6,
2 * (unsigned int)(v1 != (unsigned int *)(qword_12CD20 - 4)));
}
std::stringbuf::str(a1, v8);
std::ostringstream::~ostringstream(&v7, &`VTT for'std::ostringstream);
std::ios_base::~ios_base((std::ios_base *)v9);
}
| get_all_kv_cache_types[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x188
MOV qword ptr [RSP + 0x8],RDI
LEA RDI,[RSP + 0x10]
CALL 0x0011ab30
MOV R12,qword ptr [0x0022cd18]
MOV R13,qword ptr [0x0022cd20]
CMP R12,R13
JZ 0x0014f16d
LEA RBP,[0x1ebdf2]
LEA RBX,[0x1ef9a3]
LEA R14,[RSP + 0x10]
LAB_0014f0fb:
MOV EDI,dword ptr [R12]
LAB_0014f0ff:
CALL 0x0011a7f0
MOV R15,RAX
TEST RAX,RAX
JZ 0x0014f124
MOV RDI,R15
CALL 0x0011a3d0
MOV RDI,R14
MOV RSI,R15
MOV RDX,RAX
CALL 0x0011a9a0
JMP 0x0014f140
LAB_0014f124:
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + -0x18]
LEA RDI,[RSP + RAX*0x1]
ADD RDI,0x10
MOV ESI,dword ptr [RDI + 0x20]
OR ESI,0x1
CALL 0x0011ae80
LAB_0014f140:
MOV RAX,qword ptr [0x0022cd20]
ADD RAX,-0x4
XOR EDX,EDX
CMP R12,RAX
SETNZ DL
MOV RSI,RBX
CMOVZ RSI,RBP
ADD EDX,EDX
MOV RDI,R14
CALL 0x0011a9a0
ADD R12,0x4
CMP R12,R13
JNZ 0x0014f0fb
LAB_0014f16d:
LEA RSI,[RSP + 0x18]
LAB_0014f172:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0011ad50
LAB_0014f17c:
MOV RSI,qword ptr [0x0022bf78]
LEA RDI,[RSP + 0x10]
CALL 0x0011a480
LEA RDI,[RSP + 0x80]
CALL 0x0011a2a0
ADD RSP,0x188
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* get_all_kv_cache_types[abi:cxx11]() */
void get_all_kv_cache_types_abi_cxx11_(void)
{
int4 *puVar1;
char *pcVar2;
size_t sVar3;
int4 *puVar4;
long local_1a8 [4];
uint auStack_188 [20];
ios_base local_138 [264];
std::__cxx11::ostringstream::ostringstream((ostringstream *)local_1a8);
puVar1 = DAT_0022cd20;
if (kv_cache_types != DAT_0022cd20) {
puVar4 = kv_cache_types;
do {
/* try { // try from 0014f0ff to 0014f163 has its CatchHandler @ 0014f1ae */
pcVar2 = (char *)ggml_type_name(*puVar4);
if (pcVar2 == (char *)0x0) {
std::ios::clear((long)local_1a8 + *(long *)(local_1a8[0] + -0x18),
*(uint *)((long)auStack_188 + *(long *)(local_1a8[0] + -0x18)) | 1);
}
else {
sVar3 = strlen(pcVar2);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)local_1a8,pcVar2,sVar3);
}
pcVar2 = ", ";
if (puVar4 == DAT_0022cd20 + -1) {
pcVar2 = "";
}
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,pcVar2,(ulong)((uint)(puVar4 != DAT_0022cd20 + -1) * 2));
puVar4 = puVar4 + 1;
} while (puVar4 != puVar1);
}
/* try { // try from 0014f172 to 0014f17b has its CatchHandler @ 0014f1ac */
std::__cxx11::stringbuf::str();
std::__cxx11::ostringstream::~ostringstream((ostringstream *)local_1a8);
std::ios_base::~ios_base(local_138);
return;
}
| |
55,040 | js_set_symmetricDifference | bluesky950520[P]quickjs/quickjs.c | static JSValue js_set_symmetricDifference(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue newset, item, iter, next, rv;
struct list_head *el;
JSMapState *s, *t;
JSMapRecord *mr;
int64_t size;
BOOL done, present;
s = JS_GetOpaque2(ctx, this_val, JS_CLASS_SET);
if (!s)
return JS_EXCEPTION;
// order matters! they're JS-observable side effects
if (js_setlike_get_size(ctx, argv[0], &size) < 0)
return JS_EXCEPTION;
if (js_setlike_get_has(ctx, argv[0], &rv) < 0)
return JS_EXCEPTION;
JS_FreeValue(ctx, rv);
newset = js_map_constructor(ctx, JS_UNDEFINED, 0, NULL, MAGIC_SET);
if (JS_IsException(newset))
return JS_EXCEPTION;
t = JS_GetOpaque(newset, JS_CLASS_SET);
iter = JS_UNDEFINED;
next = JS_UNDEFINED;
// can't clone this_val using js_map_constructor(),
// test262 mandates we don't call the .add method
list_for_each(el, &s->records) {
mr = list_entry(el, JSMapRecord, link);
if (mr->empty)
continue;
mr = map_add_record(ctx, t, js_dup(mr->key));
if (!mr)
goto exception;
mr->value = JS_UNDEFINED;
}
iter = JS_GetProperty(ctx, argv[0], JS_ATOM_keys);
if (JS_IsException(iter))
goto exception;
iter = JS_CallFree(ctx, iter, argv[0], 0, NULL);
if (JS_IsException(iter))
goto exception;
next = JS_GetProperty(ctx, iter, JS_ATOM_next);
if (JS_IsException(next))
goto exception;
for (;;) {
item = JS_IteratorNext(ctx, iter, next, 0, NULL, &done);
if (JS_IsException(item))
goto exception;
if (done) // item is JS_UNDEFINED
break;
// note the subtlety here: due to mutating iterators, it's
// possible for keys to disappear during iteration; test262
// still expects us to maintain insertion order though, so
// we first check |this|, then |new|; |new| is a copy of |this|
// - if item exists in |this|, delete (if it exists) from |new|
// - if item misses in |this| and |new|, add to |new|
// - if item exists in |new| but misses in |this|, *don't* add it,
// mutating iterator erased it
item = map_normalize_key(ctx, item);
present = (NULL != map_find_record(ctx, s, item));
mr = map_find_record(ctx, t, item);
if (present) {
if (mr)
map_delete_record(ctx->rt, t, mr);
JS_FreeValue(ctx, item);
} else if (mr) {
JS_FreeValue(ctx, item);
} else {
mr = map_add_record(ctx, t, item);
if (!mr) {
JS_FreeValue(ctx, item);
goto exception;
}
mr->value = JS_UNDEFINED;
}
}
goto fini;
exception:
JS_FreeValue(ctx, newset);
newset = JS_EXCEPTION;
fini:
JS_FreeValue(ctx, next);
JS_FreeValue(ctx, iter);
return newset;
} | O2 | c | js_set_symmetricDifference:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %r15
movq %rdi, %rbx
pushq $0x24
popq %rcx
callq 0x21207
pushq $0x6
popq %r14
testq %rax, %rax
je 0x45ecf
movq %rax, %r13
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x60(%rsp), %rcx
movq %rbx, %rdi
callq 0x4643b
testl %eax, %eax
js 0x45ecf
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x50(%rsp), %rcx
movq %rbx, %rdi
callq 0x464cf
testl %eax, %eax
js 0x45ecf
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %rbx, %rdi
callq 0x1801e
xorl %ebp, %ebp
pushq $0x3
popq %rdx
pushq $0x1
popq %r9
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2f33e
movq %rax, 0x30(%rsp)
movq %rdx, 0x48(%rsp)
movl %edx, %ecx
movl $0x0, %eax
cmpq $0x6, %rcx
je 0x45ed3
cmpl $-0x1, %ecx
jne 0x45eeb
movq 0x30(%rsp), %rax
cmpw $0x24, 0x6(%rax)
jne 0x45eeb
movq 0x30(%rax), %r14
jmp 0x45eee
xorl %ebp, %ebp
xorl %eax, %eax
orq %rax, %rbp
movq %rbp, %rax
movq %r14, %rdx
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
leaq 0x8(%r13), %r12
movq %r13, %rbp
addq $0x10, %rbp
movq $0x0, 0x28(%rsp)
movq (%rbp), %rbp
cmpq %r12, %rbp
je 0x45f46
cmpl $0x0, -0xc(%rbp)
jne 0x45f40
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
cmpl $-0x9, %ecx
jb 0x45f20
incl (%rdx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3d891
testq %rax, %rax
je 0x460d1
andl $0x0, 0x40(%rax)
movq $0x3, 0x48(%rax)
addq $0x8, %rbp
jmp 0x45f02
movq (%r15), %rsi
movq 0x8(%r15), %rdx
pushq $0x30
popq %rcx
movq %rbx, %rdi
callq 0x1b043
cmpl $0x6, %edx
jne 0x45f79
movq %rdx, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
pushq $0x3
popq %r12
jmp 0x460e3
movq (%r15), %rcx
movq 0x8(%r15), %r8
andq $0x0, (%rsp)
movq $0x0, 0x28(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
xorl %r9d, %r9d
callq 0x1cd8e
movq %rdx, %rbp
cmpl $0x6, %ebp
pushq $0x3
popq %r12
movq %rax, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
je 0x460e3
movq %rax, %r15
pushq $0x6b
popq %rcx
movq %rbx, %rdi
movq %rax, %rsi
movq %rbp, %rdx
callq 0x1b043
movq %rax, 0x28(%rsp)
movq %rdx, %r12
cmpl $0x6, %r12d
je 0x460e3
movq %r12, 0x40(%rsp)
andq $0x0, (%rsp)
leaq 0x3c(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq 0x28(%rsp), %rcx
movq %r12, %r8
xorl %r9d, %r9d
callq 0x398cc
movq %rax, %rbp
movq %rdx, %r15
movl %r15d, %eax
cmpq $0x6, %rax
je 0x460e3
cmpl $0x0, 0x3c(%rsp)
jne 0x46138
xorq $0x7, %rax
movq %rbp, %rcx
btrq $0x3f, %rcx
orq %rax, %rcx
jne 0x4603d
xorl %ebp, %ebp
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x3d80d
movq %rax, %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x3d80d
testq %r12, %r12
je 0x46082
testq %rax, %rax
movq 0x40(%rsp), %r12
je 0x4608c
movq 0x18(%rbx), %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x44b6e
jmp 0x4608c
testq %rax, %rax
movq 0x40(%rsp), %r12
je 0x460a9
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x1801e
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %rbp
jmp 0x45fe1
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x3d891
testq %rax, %rax
je 0x46147
andl $0x0, 0x40(%rax)
movq $0x3, 0x48(%rax)
jmp 0x4609a
movq $0x0, 0x20(%rsp)
pushq $0x3
popq %r12
movq %r12, 0x18(%rsp)
movq %rbx, %rdi
movq 0x30(%rsp), %r14
movq %r14, %rsi
movq 0x48(%rsp), %rdx
callq 0x1801e
pushq $0x6
popq %r15
xorl %ebp, %ebp
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movq %r12, %rdx
callq 0x1801e
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x1801e
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
andq %rax, %r14
movq %r14, %rax
movq %r15, %r14
jmp 0x45ed3
movq 0x30(%rsp), %r14
movl %r14d, %ebp
movq 0x48(%rsp), %r15
jmp 0x460fe
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x1801e
jmp 0x460e3
| js_set_symmetricDifference:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r15, r8
mov rbx, rdi
push 24h ; '$'
pop rcx
call JS_GetOpaque2
push 6
pop r14
test rax, rax
jz loc_45ECF
mov r13, rax
mov rsi, [r15]
mov rdx, [r15+8]
lea rcx, [rsp+98h+var_38]
mov rdi, rbx
call js_setlike_get_size
test eax, eax
js short loc_45ECF
mov rsi, [r15]
mov rdx, [r15+8]
lea rcx, [rsp+98h+var_48]
mov rdi, rbx
call js_setlike_get_has
test eax, eax
js short loc_45ECF
mov rsi, [rsp+98h+var_48]
mov rdx, [rsp+98h+var_40]
mov rdi, rbx
call JS_FreeValue
xor ebp, ebp
push 3
pop rdx
push 1
pop r9
mov rdi, rbx
xor esi, esi
xor ecx, ecx
xor r8d, r8d
call js_map_constructor
mov [rsp+98h+var_68], rax
mov [rsp+98h+var_50], rdx
mov ecx, edx
mov eax, 0
cmp rcx, 6
jz short loc_45ED3
cmp ecx, 0FFFFFFFFh
jnz short loc_45EEB
mov rax, [rsp+98h+var_68]
cmp word ptr [rax+6], 24h ; '$'
jnz short loc_45EEB
mov r14, [rax+30h]
jmp short loc_45EEE
loc_45ECF:
xor ebp, ebp
xor eax, eax
loc_45ED3:
or rbp, rax
mov rax, rbp
mov rdx, r14
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_45EEB:
xor r14d, r14d
loc_45EEE:
lea r12, [r13+8]
mov rbp, r13
add rbp, 10h
mov [rsp+98h+var_70], 0
loc_45F02:
mov rbp, [rbp+0]
cmp rbp, r12
jz short loc_45F46
cmp dword ptr [rbp-0Ch], 0
jnz short loc_45F40
mov rdx, [rbp+20h]
mov rcx, [rbp+28h]
cmp ecx, 0FFFFFFF7h
jb short loc_45F20
inc dword ptr [rdx]
loc_45F20:
mov rdi, rbx
mov rsi, r14
call map_add_record
test rax, rax
jz loc_460D1
and dword ptr [rax+40h], 0
mov qword ptr [rax+48h], 3
loc_45F40:
add rbp, 8
jmp short loc_45F02
loc_45F46:
mov rsi, [r15]
mov rdx, [r15+8]
push 30h ; '0'
pop rcx
mov rdi, rbx
call JS_GetProperty
cmp edx, 6
jnz short loc_45F79
mov [rsp+98h+var_80], rdx
mov [rsp+98h+var_78], rax
mov [rsp+98h+var_70], 0
push 3
pop r12
jmp loc_460E3
loc_45F79:
mov rcx, [r15]
mov r8, [r15+8]
and [rsp+98h+var_98], 0
mov [rsp+98h+var_70], 0
mov rdi, rbx
mov rsi, rax
xor r9d, r9d
call JS_CallFree
mov rbp, rdx
cmp ebp, 6
push 3
pop r12
mov [rsp+98h+var_78], rax
mov [rsp+98h+var_80], rdx
jz loc_460E3
mov r15, rax
push 6Bh ; 'k'
pop rcx
mov rdi, rbx
mov rsi, rax
mov rdx, rbp
call JS_GetProperty
mov [rsp+98h+var_70], rax
mov r12, rdx
cmp r12d, 6
jz loc_460E3
mov [rsp+98h+var_58], r12
loc_45FE1:
and [rsp+98h+var_98], 0
lea rax, [rsp+98h+var_5C]
mov [rsp+98h+var_90], rax
mov rdi, rbx
mov rsi, r15
mov rdx, rbp
mov rcx, [rsp+98h+var_70]
mov r8, r12
xor r9d, r9d
call JS_IteratorNext
mov rbp, rax
mov r15, rdx
mov eax, r15d
cmp rax, 6
jz loc_460E3
cmp [rsp+98h+var_5C], 0
jnz loc_46138
xor rax, 7
mov rcx, rbp
btr rcx, 3Fh ; '?'
or rcx, rax
jnz short loc_4603D
xor ebp, ebp
xor r15d, r15d
loc_4603D:
mov rdi, rbx
mov rsi, r13
mov rdx, rbp
mov rcx, r15
call map_find_record
mov r12, rax
mov rdi, rbx
mov rsi, r14
mov rdx, rbp
mov rcx, r15
call map_find_record
test r12, r12
jz short loc_46082
test rax, rax
mov r12, [rsp+98h+var_58]
jz short loc_4608C
mov rdi, [rbx+18h]
mov rsi, r14
mov rdx, rax
call map_delete_record
jmp short loc_4608C
loc_46082:
test rax, rax
mov r12, [rsp+98h+var_58]
jz short loc_460A9
loc_4608C:
mov rdi, rbx
mov rsi, rbp
mov rdx, r15
call JS_FreeValue
loc_4609A:
mov r15, [rsp+98h+var_78]
mov rbp, [rsp+98h+var_80]
jmp loc_45FE1
loc_460A9:
mov rdi, rbx
mov rsi, r14
mov rdx, rbp
mov rcx, r15
call map_add_record
test rax, rax
jz loc_46147
and dword ptr [rax+40h], 0
mov qword ptr [rax+48h], 3
jmp short loc_4609A
loc_460D1:
mov [rsp+98h+var_78], 0
push 3
pop r12
mov [rsp+98h+var_80], r12
loc_460E3:
mov rdi, rbx
mov r14, [rsp+98h+var_68]
mov rsi, r14
mov rdx, [rsp+98h+var_50]
call JS_FreeValue
push 6
pop r15
xor ebp, ebp
loc_460FE:
mov rdi, rbx
mov rsi, [rsp+98h+var_70]
mov rdx, r12
call JS_FreeValue
mov rdi, rbx
mov rsi, [rsp+98h+var_78]
mov rdx, [rsp+98h+var_80]
call JS_FreeValue
mov rax, 0FFFFFFFF00000000h
and r14, rax
mov rax, r14
mov r14, r15
jmp loc_45ED3
loc_46138:
mov r14, [rsp+98h+var_68]
mov ebp, r14d
mov r15, [rsp+98h+var_50]
jmp short loc_460FE
loc_46147:
mov rdi, rbx
mov rsi, rbp
mov rdx, r15
call JS_FreeValue
jmp short loc_460E3
| unsigned long long js_set_symmetricDifference(
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; // r13
long long v16; // rbp
double v17; // xmm4_8
double v18; // xmm5_8
long long v19; // rdx
unsigned long long v20; // rax
_DWORD *v21; // r14
_QWORD *v23; // rbp
_QWORD *v24; // rbp
_DWORD *v25; // rdx
long long v26; // rcx
_QWORD *v27; // rax
long long Property; // rax
long long v29; // rdx
long long v30; // r12
long long v31; // rax
long long v32; // rdx
int v33; // ebp
int v34; // r15d
long long v35; // rdx
long long v36; // rdx
unsigned long long v37; // rbp
long long v38; // r15
long long record; // r12
long long v40; // rax
_QWORD *v41; // rax
unsigned long long v42; // r14
long long v43; // [rsp+18h] [rbp-80h]
long long v44; // [rsp+20h] [rbp-78h]
long long v45; // [rsp+28h] [rbp-70h]
unsigned long long v46; // [rsp+30h] [rbp-68h]
int v47; // [rsp+3Ch] [rbp-5Ch] BYREF
long long v48; // [rsp+40h] [rbp-58h]
long long v49; // [rsp+48h] [rbp-50h]
long long v50[2]; // [rsp+50h] [rbp-48h] BYREF
_BYTE v51[56]; // [rsp+60h] [rbp-38h] BYREF
Opaque2 = JS_GetOpaque2(a1, a2, a3, 0x24u);
if ( !Opaque2
|| (v15 = Opaque2, (int)js_setlike_get_size(a1, *a13, a13[1], v51) < 0)
|| (int)js_setlike_get_has(a1, *a13, a13[1], v50) < 0 )
{
v16 = 0LL;
v20 = 0LL;
return v20 | v16;
}
JS_FreeValue(a1, v50[0], v50[1]);
v16 = 0LL;
v46 = js_map_constructor(a1, 0LL, 3LL, 0, 0LL, 1u, a4, a5, a6, a7, v17, v18, a10, a11);
v49 = v19;
v20 = 0LL;
if ( (unsigned int)v19 != 6LL )
{
if ( (_DWORD)v19 == -1 && *(_WORD *)(v46 + 6) == 36 )
v21 = *(_DWORD **)(v46 + 48);
else
v21 = 0LL;
v23 = (_QWORD *)(v15 + 16);
v45 = 0LL;
while ( 1 )
{
v24 = (_QWORD *)*v23;
if ( v24 == (_QWORD *)(v15 + 8) )
break;
if ( !*((_DWORD *)v24 - 3) )
{
v25 = (_DWORD *)v24[4];
v26 = v24[5];
if ( (unsigned int)v26 >= 0xFFFFFFF7 )
++*v25;
v27 = map_add_record(a1, (long long)v21, v25, v26);
if ( !v27 )
{
v44 = 0LL;
v30 = 3LL;
v43 = 3LL;
goto LABEL_37;
}
*((_DWORD *)v27 + 16) = 0;
v27[9] = 3LL;
}
v23 = v24 + 1;
}
Property = JS_GetProperty(a1, *a13, a13[1], 48);
if ( (_DWORD)v29 == 6 )
{
v43 = v29;
v44 = Property;
v45 = 0LL;
v30 = 3LL;
LABEL_37:
v42 = v46;
JS_FreeValue(a1, v46, v49);
v16 = 0LL;
LABEL_38:
JS_FreeValue(a1, v45, v30);
JS_FreeValue(a1, v44, v43);
v20 = v42 & 0xFFFFFFFF00000000LL;
return v20 | v16;
}
v45 = 0LL;
v31 = JS_CallFree(a1, Property, v29, *a13, a13[1], 0, 0LL);
v33 = v32;
v30 = 3LL;
v44 = v31;
v43 = v32;
if ( (_DWORD)v32 == 6 )
goto LABEL_37;
v34 = v31;
v45 = JS_GetProperty(a1, v31, v32, 107);
v30 = v35;
if ( (_DWORD)v35 == 6 )
goto LABEL_37;
v48 = v35;
while ( 1 )
{
v37 = JS_IteratorNext(a1, v34, v33, v45, v30, 0, 0LL, &v47);
v38 = v36;
if ( (unsigned int)v36 == 6LL )
goto LABEL_37;
if ( v47 )
{
v42 = v46;
v16 = (unsigned int)v46;
goto LABEL_38;
}
if ( !((unsigned int)v36 ^ 7LL | v37 & 0x7FFFFFFFFFFFFFFFLL) )
{
v37 = 0LL;
v38 = 0LL;
}
record = map_find_record(a1, v15, (_DWORD *)v37, v38, (__m128d)a4);
v40 = map_find_record(a1, (long long)v21, (_DWORD *)v37, v38, (__m128d)a4);
if ( record )
break;
v30 = v48;
if ( v40 )
goto LABEL_32;
v41 = map_add_record(a1, (long long)v21, (_DWORD *)v37, v38);
if ( !v41 )
{
JS_FreeValue(a1, v37, v38);
goto LABEL_37;
}
*((_DWORD *)v41 + 16) = 0;
v41[9] = 3LL;
LABEL_33:
v34 = v44;
v33 = v43;
}
v30 = v48;
if ( v40 )
map_delete_record(*(_QWORD *)(a1 + 24), v21, v40);
LABEL_32:
JS_FreeValue(a1, v37, v38);
goto LABEL_33;
}
return v20 | v16;
}
| js_set_symmetricDifference:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R15,R8
MOV RBX,RDI
PUSH 0x24
POP RCX
CALL 0x00121207
PUSH 0x6
POP R14
TEST RAX,RAX
JZ 0x00145ecf
MOV R13,RAX
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RCX,[RSP + 0x60]
MOV RDI,RBX
CALL 0x0014643b
TEST EAX,EAX
JS 0x00145ecf
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RCX,[RSP + 0x50]
MOV RDI,RBX
CALL 0x001464cf
TEST EAX,EAX
JS 0x00145ecf
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
MOV RDI,RBX
CALL 0x0011801e
XOR EBP,EBP
PUSH 0x3
POP RDX
PUSH 0x1
POP R9
MOV RDI,RBX
XOR ESI,ESI
XOR ECX,ECX
XOR R8D,R8D
CALL 0x0012f33e
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x48],RDX
MOV ECX,EDX
MOV EAX,0x0
CMP RCX,0x6
JZ 0x00145ed3
CMP ECX,-0x1
JNZ 0x00145eeb
MOV RAX,qword ptr [RSP + 0x30]
CMP word ptr [RAX + 0x6],0x24
JNZ 0x00145eeb
MOV R14,qword ptr [RAX + 0x30]
JMP 0x00145eee
LAB_00145ecf:
XOR EBP,EBP
XOR EAX,EAX
LAB_00145ed3:
OR RBP,RAX
MOV RAX,RBP
MOV RDX,R14
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00145eeb:
XOR R14D,R14D
LAB_00145eee:
LEA R12,[R13 + 0x8]
MOV RBP,R13
ADD RBP,0x10
MOV qword ptr [RSP + 0x28],0x0
LAB_00145f02:
MOV RBP,qword ptr [RBP]
CMP RBP,R12
JZ 0x00145f46
CMP dword ptr [RBP + -0xc],0x0
JNZ 0x00145f40
MOV RDX,qword ptr [RBP + 0x20]
MOV RCX,qword ptr [RBP + 0x28]
CMP ECX,-0x9
JC 0x00145f20
INC dword ptr [RDX]
LAB_00145f20:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0013d891
TEST RAX,RAX
JZ 0x001460d1
AND dword ptr [RAX + 0x40],0x0
MOV qword ptr [RAX + 0x48],0x3
LAB_00145f40:
ADD RBP,0x8
JMP 0x00145f02
LAB_00145f46:
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
PUSH 0x30
POP RCX
MOV RDI,RBX
CALL 0x0011b043
CMP EDX,0x6
JNZ 0x00145f79
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],0x0
PUSH 0x3
POP R12
JMP 0x001460e3
LAB_00145f79:
MOV RCX,qword ptr [R15]
MOV R8,qword ptr [R15 + 0x8]
AND qword ptr [RSP],0x0
MOV qword ptr [RSP + 0x28],0x0
MOV RDI,RBX
MOV RSI,RAX
XOR R9D,R9D
CALL 0x0011cd8e
MOV RBP,RDX
CMP EBP,0x6
PUSH 0x3
POP R12
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x18],RDX
JZ 0x001460e3
MOV R15,RAX
PUSH 0x6b
POP RCX
MOV RDI,RBX
MOV RSI,RAX
MOV RDX,RBP
CALL 0x0011b043
MOV qword ptr [RSP + 0x28],RAX
MOV R12,RDX
CMP R12D,0x6
JZ 0x001460e3
MOV qword ptr [RSP + 0x40],R12
LAB_00145fe1:
AND qword ptr [RSP],0x0
LEA RAX,[RSP + 0x3c]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,RBX
MOV RSI,R15
MOV RDX,RBP
MOV RCX,qword ptr [RSP + 0x28]
MOV R8,R12
XOR R9D,R9D
CALL 0x001398cc
MOV RBP,RAX
MOV R15,RDX
MOV EAX,R15D
CMP RAX,0x6
JZ 0x001460e3
CMP dword ptr [RSP + 0x3c],0x0
JNZ 0x00146138
XOR RAX,0x7
MOV RCX,RBP
BTR RCX,0x3f
OR RCX,RAX
JNZ 0x0014603d
XOR EBP,EBP
XOR R15D,R15D
LAB_0014603d:
MOV RDI,RBX
MOV RSI,R13
MOV RDX,RBP
MOV RCX,R15
CALL 0x0013d80d
MOV R12,RAX
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RBP
MOV RCX,R15
CALL 0x0013d80d
TEST R12,R12
JZ 0x00146082
TEST RAX,RAX
MOV R12,qword ptr [RSP + 0x40]
JZ 0x0014608c
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R14
MOV RDX,RAX
CALL 0x00144b6e
JMP 0x0014608c
LAB_00146082:
TEST RAX,RAX
MOV R12,qword ptr [RSP + 0x40]
JZ 0x001460a9
LAB_0014608c:
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R15
CALL 0x0011801e
LAB_0014609a:
MOV R15,qword ptr [RSP + 0x20]
MOV RBP,qword ptr [RSP + 0x18]
JMP 0x00145fe1
LAB_001460a9:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RBP
MOV RCX,R15
CALL 0x0013d891
TEST RAX,RAX
JZ 0x00146147
AND dword ptr [RAX + 0x40],0x0
MOV qword ptr [RAX + 0x48],0x3
JMP 0x0014609a
LAB_001460d1:
MOV qword ptr [RSP + 0x20],0x0
PUSH 0x3
POP R12
MOV qword ptr [RSP + 0x18],R12
LAB_001460e3:
MOV RDI,RBX
MOV R14,qword ptr [RSP + 0x30]
MOV RSI,R14
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x0011801e
PUSH 0x6
POP R15
XOR EBP,EBP
LAB_001460fe:
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,R12
CALL 0x0011801e
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x18]
CALL 0x0011801e
MOV RAX,-0x100000000
AND R14,RAX
MOV RAX,R14
MOV R14,R15
JMP 0x00145ed3
LAB_00146138:
MOV R14,qword ptr [RSP + 0x30]
MOV EBP,R14D
MOV R15,qword ptr [RSP + 0x48]
JMP 0x001460fe
LAB_00146147:
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R15
CALL 0x0011801e
JMP 0x001460e3
|
int1 [16] js_set_symmetricDifference(long param_1)
{
int1 auVar1 [16];
int iVar2;
long lVar3;
ulong uVar4;
ulong uVar5;
long lVar6;
ulong uVar8;
long lVar9;
ulong uVar10;
long *plVar11;
int8 uVar12;
int8 *in_R8;
int8 uVar13;
int8 uVar14;
int8 uVar15;
int1 auVar16 [16];
int1 auVar17 [16];
int1 auVar18 [16];
int8 local_80;
int8 local_78;
int8 local_70;
int local_5c;
int8 local_58;
ulong local_50;
int8 local_48;
int8 local_40;
int1 local_38 [8];
int8 uVar7;
lVar3 = JS_GetOpaque2();
uVar8 = 6;
if (((lVar3 == 0) || (iVar2 = js_setlike_get_size(param_1,*in_R8,in_R8[1],local_38), iVar2 < 0))
|| (iVar2 = js_setlike_get_has(param_1,*in_R8,in_R8[1],&local_48), iVar2 < 0)) {
uVar10 = 0;
uVar5 = 0;
}
else {
JS_FreeValue(param_1,local_48,local_40);
uVar10 = 0;
auVar16 = js_map_constructor(param_1,0,3,0,0,1);
local_50 = auVar16._8_8_;
uVar4 = auVar16._0_8_;
uVar5 = 0;
if ((local_50 & 0xffffffff) != 6) {
if ((auVar16._8_4_ == -1) && (*(short *)(uVar4 + 6) == 0x24)) {
uVar14 = *(int8 *)(uVar4 + 0x30);
}
else {
uVar14 = 0;
}
plVar11 = (long *)(lVar3 + 0x10);
while (lVar9 = *plVar11, lVar9 != lVar3 + 8) {
if (*(int *)(lVar9 + -0xc) == 0) {
if (0xfffffff6 < (uint)*(int8 *)(lVar9 + 0x28)) {
**(int **)(lVar9 + 0x20) = **(int **)(lVar9 + 0x20) + 1;
}
lVar6 = map_add_record(param_1,uVar14);
if (lVar6 == 0) {
auVar17 = ZEXT816(3) << 0x40;
auVar16 = ZEXT816(3) << 0x40;
goto LAB_001460e3;
}
*(int4 *)(lVar6 + 0x40) = 0;
*(int8 *)(lVar6 + 0x48) = 3;
}
plVar11 = (long *)(lVar9 + 8);
}
auVar16 = JS_GetProperty(param_1,*in_R8,in_R8[1],0x30);
if (auVar16._8_4_ == 6) {
auVar17 = ZEXT816(3) << 0x40;
}
else {
auVar16 = JS_CallFree(param_1,auVar16._0_8_,auVar16._8_8_,*in_R8,in_R8[1],0,0);
auVar17 = ZEXT816(3) << 0x40;
if (auVar16._8_4_ != 6) {
auVar17 = JS_GetProperty(param_1,auVar16._0_8_,auVar16._8_8_,0x6b);
uVar13 = auVar17._8_8_;
uVar7 = auVar17._0_8_;
uVar12 = uVar13;
if (auVar17._8_4_ != 6) {
while( true ) {
local_58 = uVar12;
auVar1._8_8_ = uVar13;
auVar1._0_8_ = uVar7;
auVar17._8_8_ = uVar13;
auVar17._0_8_ = uVar7;
auVar18 = JS_IteratorNext(param_1,auVar16._0_8_,auVar16._8_8_,uVar7,uVar13,0,0,
&local_5c);
uVar8 = auVar18._8_8_ & 0xffffffff;
if (uVar8 == 6) break;
if (local_5c != 0) {
uVar10 = uVar4 & 0xffffffff;
uVar8 = local_50;
goto LAB_001460fe;
}
if ((auVar18 & (int1 [16])0x7fffffffffffffff) == (int1 [16])0x0 &&
uVar8 == 7) {
auVar18 = ZEXT816(0);
}
uVar15 = auVar18._8_8_;
uVar12 = auVar18._0_8_;
lVar9 = map_find_record(param_1,lVar3,uVar12,uVar15);
lVar6 = map_find_record(param_1,uVar14,uVar12,uVar15);
uVar13 = local_58;
auVar17._8_8_ = local_58;
if (lVar9 == 0) {
if (lVar6 != 0) goto LAB_0014608c;
lVar9 = map_add_record(param_1,uVar14,uVar12,uVar15);
if (lVar9 == 0) {
JS_FreeValue(param_1,uVar12,uVar15);
break;
}
*(int4 *)(lVar9 + 0x40) = 0;
*(int8 *)(lVar9 + 0x48) = 3;
uVar12 = local_58;
}
else {
if (lVar6 != 0) {
map_delete_record(*(int8 *)(param_1 + 0x18),uVar14,lVar6);
}
LAB_0014608c:
JS_FreeValue(param_1,uVar12,uVar15);
uVar12 = local_58;
}
}
}
}
}
LAB_001460e3:
JS_FreeValue(param_1,uVar4,local_50);
uVar10 = 0;
uVar8 = 6;
auVar1 = auVar17;
LAB_001460fe:
local_70 = auVar1._0_8_;
local_80 = auVar16._8_8_;
local_78 = auVar16._0_8_;
JS_FreeValue(param_1,local_70,auVar1._8_8_);
JS_FreeValue(param_1,local_78,local_80);
uVar5 = uVar4 & 0xffffffff00000000;
}
}
auVar16._8_8_ = uVar8;
auVar16._0_8_ = uVar10 | uVar5;
return auVar16;
}
| |
55,041 | my_casedn_str_utf8mb4 | eloqsql/strings/ctype-utf8.c | static size_t
my_casedn_str_utf8mb4(CHARSET_INFO *cs, char *src)
{
my_wc_t wc;
int srcres, dstres;
char *dst= src, *dst0= src;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(cs->casedn_multiply == 1);
while (*src &&
(srcres= my_mb_wc_utf8mb4_no_range(cs, &wc, (uchar *) src)) > 0)
{
my_tolower_utf8mb4(uni_plane, &wc);
if ((dstres= my_wc_mb_utf8mb4_no_range(cs, wc, (uchar*) dst)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
/*
In rare cases lower string can be shorter than
the original string, for example:
"U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE"
(which is 0xC4B0 in utf8mb3, i.e. two bytes)
is converted into
"U+0069 LATIN SMALL LETTER I"
(which is 0x69 in utf8mb3, i.e. one byte)
So, we need to put '\0' terminator after converting.
*/
*dst= '\0';
return (size_t) (dst - dst0);
} | O3 | c | my_casedn_str_utf8mb4:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpb $0x0, (%rsi)
movq %rsi, %r14
je 0x4e2aa
movq 0x78(%rdi), %r15
movq %rbx, %r12
movq %rbx, %r14
leaq -0x30(%rbp), %rdi
movq %r12, %rsi
callq 0x51553
testl %eax, %eax
je 0x4e2aa
movl %eax, %r13d
movq -0x30(%rbp), %rdi
cmpq (%r15), %rdi
ja 0x4e28b
movq 0x8(%r15), %rax
movq %rdi, %rcx
shrq $0x8, %rcx
movq (%rax,%rcx,8), %rax
testq %rax, %rax
je 0x4e28b
movzbl %dil, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x4(%rax,%rcx,4), %edi
movq %rdi, -0x30(%rbp)
movq %r14, %rsi
callq 0x5166f
testl %eax, %eax
je 0x4e2aa
movl %r13d, %ecx
movl %eax, %eax
addq %rax, %r14
cmpb $0x0, (%r12,%rcx)
leaq (%r12,%rcx), %r12
jne 0x4e24b
movb $0x0, (%r14)
subq %rbx, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_casedn_str_utf8mb4:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
cmp byte ptr [rsi], 0
mov r14, rsi
jz short loc_4E2AA
mov r15, [rdi+78h]
mov r12, rbx
mov r14, rbx
loc_4E24B:
lea rdi, [rbp+var_30]
mov rsi, r12
call my_mb_wc_utf8mb4_no_range
test eax, eax
jz short loc_4E2AA
mov r13d, eax
mov rdi, [rbp+var_30]
cmp rdi, [r15]
ja short loc_4E28B
mov rax, [r15+8]
mov rcx, rdi
shr rcx, 8
mov rax, [rax+rcx*8]
test rax, rax
jz short loc_4E28B
movzx ecx, dil
lea rcx, [rcx+rcx*2]
mov edi, [rax+rcx*4+4]
mov [rbp+var_30], rdi
loc_4E28B:
mov rsi, r14
call my_wc_mb_utf8mb4_no_range
test eax, eax
jz short loc_4E2AA
mov ecx, r13d
mov eax, eax
add r14, rax
cmp byte ptr [r12+rcx], 0
lea r12, [r12+rcx]
jnz short loc_4E24B
loc_4E2AA:
mov byte ptr [r14], 0
sub r14, rbx
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_casedn_str_utf8mb4(long long a1, _BYTE *a2)
{
long long v2; // rax
_BYTE *v3; // r14
_QWORD *v4; // r15
_BYTE *v5; // r12
unsigned int v6; // eax
unsigned int v7; // r13d
long long v8; // rdi
long long v9; // rax
unsigned int v10; // eax
bool v11; // zf
_QWORD v13[6]; // [rsp+0h] [rbp-30h] BYREF
v13[0] = v2;
v3 = a2;
if ( *a2 )
{
v4 = *(_QWORD **)(a1 + 120);
v5 = a2;
v3 = a2;
do
{
v6 = my_mb_wc_utf8mb4_no_range(v13, v5);
if ( !v6 )
break;
v7 = v6;
v8 = v13[0];
if ( v13[0] <= *v4 )
{
v9 = *(_QWORD *)(v4[1] + 8LL * (v13[0] >> 8));
if ( v9 )
{
v8 = *(unsigned int *)(v9 + 12LL * LOBYTE(v13[0]) + 4);
v13[0] = v8;
}
}
v10 = my_wc_mb_utf8mb4_no_range(v8, v3);
if ( !v10 )
break;
v3 += v10;
v11 = v5[v7] == 0;
v5 += v7;
}
while ( !v11 );
}
*v3 = 0;
return v3 - a2;
}
| my_casedn_str_utf8mb4:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
CMP byte ptr [RSI],0x0
MOV R14,RSI
JZ 0x0014e2aa
MOV R15,qword ptr [RDI + 0x78]
MOV R12,RBX
MOV R14,RBX
LAB_0014e24b:
LEA RDI,[RBP + -0x30]
MOV RSI,R12
CALL 0x00151553
TEST EAX,EAX
JZ 0x0014e2aa
MOV R13D,EAX
MOV RDI,qword ptr [RBP + -0x30]
CMP RDI,qword ptr [R15]
JA 0x0014e28b
MOV RAX,qword ptr [R15 + 0x8]
MOV RCX,RDI
SHR RCX,0x8
MOV RAX,qword ptr [RAX + RCX*0x8]
TEST RAX,RAX
JZ 0x0014e28b
MOVZX ECX,DIL
LEA RCX,[RCX + RCX*0x2]
MOV EDI,dword ptr [RAX + RCX*0x4 + 0x4]
MOV qword ptr [RBP + -0x30],RDI
LAB_0014e28b:
MOV RSI,R14
CALL 0x0015166f
TEST EAX,EAX
JZ 0x0014e2aa
MOV ECX,R13D
MOV EAX,EAX
ADD R14,RAX
CMP byte ptr [R12 + RCX*0x1],0x0
LEA R12,[R12 + RCX*0x1]
JNZ 0x0014e24b
LAB_0014e2aa:
MOV byte ptr [R14],0x0
SUB R14,RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_casedn_str_utf8mb4(long param_1,char *param_2)
{
char *pcVar1;
ulong *puVar2;
long lVar3;
uint uVar4;
uint uVar5;
ulong in_RAX;
char *pcVar6;
char *pcVar7;
ulong local_38;
pcVar7 = param_2;
if (*param_2 != '\0') {
puVar2 = *(ulong **)(param_1 + 0x78);
pcVar6 = param_2;
local_38 = in_RAX;
do {
uVar4 = my_mb_wc_utf8mb4_no_range(&local_38,pcVar6);
if (uVar4 == 0) break;
if ((local_38 <= *puVar2) && (lVar3 = *(long *)(puVar2[1] + (local_38 >> 8) * 8), lVar3 != 0))
{
local_38 = (ulong)*(uint *)(lVar3 + 4 + (local_38 & 0xff) * 0xc);
}
uVar5 = my_wc_mb_utf8mb4_no_range(local_38,pcVar7);
if (uVar5 == 0) break;
pcVar7 = pcVar7 + uVar5;
pcVar1 = pcVar6 + uVar4;
pcVar6 = pcVar6 + uVar4;
} while (*pcVar1 != '\0');
}
*pcVar7 = '\0';
return (long)pcVar7 - (long)param_2;
}
| |
55,042 | minja::Context::Context(minja::Value&&, std::shared_ptr<minja::Context> const&) | monkey531[P]llama/common/minja.hpp | Context(Value && values, const std::shared_ptr<Context> & parent = nullptr) : values_(std::move(values)), parent_(parent) {
if (!values_.is_object()) throw std::runtime_error("Context values must be an object: " + values_.dump());
} | O0 | cpp | minja::Context::Context(minja::Value&&, std::shared_ptr<minja::Context> const&):
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq 0x80(%rsp), %rdi
movq %rdi, 0x18(%rsp)
addq $0x8, %rdi
callq 0x14c4e0
movq 0x18(%rsp), %rdi
leaq 0x152c35(%rip), %rax # 0x29efc0
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x18, %rdi
movq %rdi, 0x8(%rsp)
movq 0x78(%rsp), %rsi
callq 0x1100b0
movq 0x18(%rsp), %rdi
addq $0x68, %rdi
movq %rdi, 0x10(%rsp)
movq 0x70(%rsp), %rsi
callq 0x14c4f0
movq 0x18(%rsp), %rdi
addq $0x18, %rdi
callq 0x112b80
testb $0x1, %al
jne 0x14c4c3
movb $0x1, 0x23(%rsp)
movl $0x10, %edi
callq 0x59660
movq 0x18(%rsp), %rsi
movq %rax, (%rsp)
addq $0x18, %rsi
leaq 0x30(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x110850
jmp 0x14c402
leaq 0xc2fbe(%rip), %rsi # 0x20f3c7
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0xf4e10
jmp 0x14c41a
movq (%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x594a0
jmp 0x14c42a
movq (%rsp), %rdi
movb $0x0, 0x23(%rsp)
movq 0x153b76(%rip), %rsi # 0x29ffb0
movq 0x153b37(%rip), %rdx # 0x29ff78
callq 0x59ac0
jmp 0x14c4d5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
jmp 0x14c48d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
jmp 0x14c483
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x5a4d8
leaq 0x30(%rsp), %rdi
callq 0x5a4d8
testb $0x1, 0x23(%rsp)
jne 0x14c496
jmp 0x14c49f
movq (%rsp), %rdi
callq 0x59f20
movq 0x10(%rsp), %rdi
callq 0x14b000
movq 0x8(%rsp), %rdi
callq 0x110320
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0x14c520
jmp 0x14c4cb
addq $0x88, %rsp
retq
movq 0x28(%rsp), %rdi
callq 0x59b80
nopw %cs:(%rax,%rax)
nop
| _ZN5minja7ContextC2EONS_5ValueERKSt10shared_ptrIS0_E:
sub rsp, 88h
mov [rsp+88h+var_8], rdi
mov [rsp+88h+var_10], rsi
mov [rsp+88h+var_18], rdx
mov rdi, [rsp+88h+var_8]
mov [rsp+88h+var_70], rdi
add rdi, 8
call _ZNSt23enable_shared_from_thisIN5minja7ContextEEC2Ev; std::enable_shared_from_this<minja::Context>::enable_shared_from_this(void)
mov rdi, [rsp+88h+var_70]
lea rax, _ZTVN5minja7ContextE; `vtable for'minja::Context
add rax, 10h
mov [rdi], rax
add rdi, 18h
mov [rsp+88h+var_80], rdi
mov rsi, [rsp+88h+var_10]
call _ZN5minja5ValueC2EOS0_; minja::Value::Value(minja::Value&&)
mov rdi, [rsp+88h+var_70]
add rdi, 68h ; 'h'
mov [rsp+88h+var_78], rdi
mov rsi, [rsp+88h+var_18]
call _ZNSt10shared_ptrIN5minja7ContextEEC2ERKS2_; std::shared_ptr<minja::Context>::shared_ptr(std::shared_ptr<minja::Context> const&)
mov rdi, [rsp+88h+var_70]
add rdi, 18h; this
call _ZNK5minja5Value9is_objectEv; minja::Value::is_object(void)
test al, 1
jnz loc_14C4C3
mov [rsp+88h+var_65], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rsi, [rsp+88h+var_70]
mov [rsp+88h+var_88], rax
add rsi, 18h
lea rdi, [rsp+88h+var_58]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_14C402:
lea rsi, aContextValuesM; "Context values must be an object: "
lea rdi, [rsp+88h+var_38]
lea rdx, [rsp+88h+var_58]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_14C41A:
mov rdi, [rsp+88h+var_88]
lea rsi, [rsp+88h+var_38]
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
jmp short $+2
loc_14C42A:
mov rdi, [rsp+88h+var_88]; void *
mov [rsp+88h+var_65], 0
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp loc_14C4D5
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
jmp short loc_14C48D
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
jmp short loc_14C483
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_14C483:
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_14C48D:
test [rsp+arg_1B], 1
jnz short loc_14C496
jmp short loc_14C49F
loc_14C496:
mov rdi, [rsp+0]; void *
call ___cxa_free_exception
loc_14C49F:
mov rdi, [rsp+arg_8]
call _ZNSt10shared_ptrIN5minja7ContextEED2Ev; std::shared_ptr<minja::Context>::~shared_ptr()
mov rdi, [rsp+arg_0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, [rsp+arg_10]
add rdi, 8
call _ZNSt23enable_shared_from_thisIN5minja7ContextEED2Ev; std::enable_shared_from_this<minja::Context>::~enable_shared_from_this()
jmp short loc_14C4CB
loc_14C4C3:
add rsp, 88h
retn
loc_14C4CB:
mov rdi, [rsp+arg_20]
call __Unwind_Resume
loc_14C4D5:
nop word ptr [rax+rax+00000000h]
nop
| bool minja::Context::Context(_QWORD *a1, long long a2, long long a3)
{
bool result; // al
void *exception; // [rsp+0h] [rbp-88h]
_BYTE v5[32]; // [rsp+30h] [rbp-58h] BYREF
_BYTE v6[32]; // [rsp+50h] [rbp-38h] BYREF
long long v7; // [rsp+70h] [rbp-18h]
long long v8; // [rsp+78h] [rbp-10h]
_QWORD *v9; // [rsp+80h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
std::enable_shared_from_this<minja::Context>::enable_shared_from_this(a1 + 1);
*a1 = &`vtable for'minja::Context + 2;
minja::Value::Value((long long)(a1 + 3), v8);
std::shared_ptr<minja::Context>::shared_ptr(a1 + 13, v7);
result = minja::Value::is_object((minja::Value *)(a1 + 3));
if ( !result )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v5, (long long)(a1 + 3), 0xFFFFFFFF, 0);
std::operator+<char>((long long)v6, (long long)"Context values must be an object: ", (long long)v5);
std::runtime_error::runtime_error(exception, v6);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return result;
}
| |||
55,043 | minja::Context::Context(minja::Value&&, std::shared_ptr<minja::Context> const&) | monkey531[P]llama/common/minja.hpp | Context(Value && values, const std::shared_ptr<Context> & parent = nullptr) : values_(std::move(values)), parent_(parent) {
if (!values_.is_object()) throw std::runtime_error("Context values must be an object: " + values_.dump());
} | O3 | cpp | minja::Context::Context(minja::Value&&, std::shared_ptr<minja::Context> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x8d633(%rip), %rax # 0x129130
addq $0x10, %rax
movq %rax, (%rdi)
movups %xmm0, 0x18(%rdi)
xorl %r13d, %r13d
movq %r13, 0x30(%rdi)
movups 0x10(%rsi), %xmm0
movq %r13, 0x18(%rsi)
movups %xmm0, 0x28(%rdi)
movq %r13, 0x10(%rsi)
movq %r13, 0x40(%rdi)
movups 0x20(%rsi), %xmm0
movq %r13, 0x28(%rsi)
movups %xmm0, 0x38(%rdi)
movq %r13, 0x20(%rsi)
movq %r13, 0x50(%rdi)
movups 0x30(%rsi), %xmm0
movq %r13, 0x38(%rsi)
movups %xmm0, 0x48(%rdi)
movq %r13, 0x30(%rsi)
leaq 0x58(%rdi), %r12
leaq 0x40(%rsi), %rdi
movups 0x40(%rsi), %xmm0
movups %xmm0, 0x58(%rbx)
xorl %esi, %esi
callq 0x579d6
movb $0x0, 0x40(%r15)
movq %r13, 0x48(%r15)
movq %r12, %rdi
movl $0x1, %esi
callq 0x579d6
movq (%r14), %rax
movq %rax, 0x68(%rbx)
movq 0x8(%r14), %rax
movq %rax, 0x70(%rbx)
testq %rax, %rax
je 0x9bb9d
movq 0x8e3f1(%rip), %rcx # 0x129f80
cmpb $0x0, (%rcx)
je 0x9bb99
incl 0x8(%rax)
jmp 0x9bb9d
lock
incl 0x8(%rax)
cmpq $0x0, 0x38(%rbx)
je 0x9bbb3
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x18(%rbx), %r14
movl $0x10, %edi
callq 0x1a430
movq %rax, %r15
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x85792
leaq 0x53e11(%rip), %rsi # 0xef9f0
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x77e59
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x1adb0
xorl %ebp, %ebp
movq 0x8e3e1(%rip), %rsi # 0x129fe8
movq 0x8e34a(%rip), %rdx # 0x129f58
movq %r15, %rdi
callq 0x1aea0
movq %rax, %r12
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9bc34
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a890
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9bc4f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a890
testb %bpl, %bpl
jne 0x9bc79
jmp 0x9bc81
movq %rax, %r12
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9bc79
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0x9bc79
movq %rax, %r12
movq %r15, %rdi
callq 0x1a640
movq 0x70(%rbx), %rdi
addq $0x8, %rbx
testq %rdi, %rdi
je 0x9bc93
callq 0x6c8e8
movq %r14, %rdi
callq 0x85470
movq %rbx, %rdi
callq 0x9bcac
movq %r12, %rdi
callq 0x1af20
nop
| _ZN5minja7ContextC2EONS_5ValueERKSt10shared_ptrIS0_E:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi+8], xmm0
lea rax, _ZTVN5minja7ContextE; `vtable for'minja::Context
add rax, 10h
mov [rdi], rax
movups xmmword ptr [rdi+18h], xmm0
xor r13d, r13d
mov [rdi+30h], r13
movups xmm0, xmmword ptr [rsi+10h]
mov [rsi+18h], r13
movups xmmword ptr [rdi+28h], xmm0
mov [rsi+10h], r13
mov [rdi+40h], r13
movups xmm0, xmmword ptr [rsi+20h]
mov [rsi+28h], r13
movups xmmword ptr [rdi+38h], xmm0
mov [rsi+20h], r13
mov [rdi+50h], r13
movups xmm0, xmmword ptr [rsi+30h]
mov [rsi+38h], r13
movups xmmword ptr [rdi+48h], xmm0
mov [rsi+30h], r13
lea r12, [rdi+58h]
lea rdi, [rsi+40h]
movups xmm0, xmmword ptr [rsi+40h]
movups xmmword ptr [rbx+58h], xmm0
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r15+40h], 0
mov [r15+48h], r13
mov rdi, r12
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rax, [r14]
mov [rbx+68h], rax
mov rax, [r14+8]
mov [rbx+70h], rax
test rax, rax
jz short loc_9BB9D
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_9BB99
inc dword ptr [rax+8]
jmp short loc_9BB9D
loc_9BB99:
lock inc dword ptr [rax+8]
loc_9BB9D:
cmp qword ptr [rbx+38h], 0
jz short loc_9BBB3
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_9BBB3:
lea r14, [rbx+18h]
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rdi, [rsp+78h+var_70]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aContextValuesM; "Context values must be an object: "
lea rdi, [rsp+78h+var_50]
lea rdx, [rsp+78h+var_70]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+78h+var_50]
mov rdi, r15
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
mov r12, rax
lea rax, [rsp+78h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9BC34
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9BC34:
lea rax, [rsp+78h+var_60]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9BC4F
mov rsi, [rsp+78h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9BC4F:
test bpl, bpl
jnz short loc_9BC79
jmp short loc_9BC81
mov r12, rax
lea rax, [rsp+78h+var_60]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9BC79
mov rsi, [rsp+78h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9BC79
mov r12, rax
loc_9BC79:
mov rdi, r15; void *
call ___cxa_free_exception
loc_9BC81:
mov rdi, [rbx+70h]
add rbx, 8
test rdi, rdi
jz short loc_9BC93
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9BC93:
mov rdi, r14; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call _ZNSt23enable_shared_from_thisIN5minja7ContextEED2Ev; std::enable_shared_from_this<minja::Context>::~enable_shared_from_this()
mov rdi, r12
call __Unwind_Resume
| long long minja::Context::Context(long long a1, long long a2, _QWORD *a3)
{
__int128 v4; // xmm0
__int128 v5; // xmm0
__int128 v6; // xmm0
long long result; // rax
void *exception; // r15
_BYTE v9[16]; // [rsp+8h] [rbp-70h] BYREF
_BYTE v10[16]; // [rsp+28h] [rbp-50h] BYREF
*(_OWORD *)(a1 + 8) = 0LL;
*(_QWORD *)a1 = &`vtable for'minja::Context + 2;
*(_OWORD *)(a1 + 24) = 0LL;
*(_QWORD *)(a1 + 48) = 0LL;
v4 = *(_OWORD *)(a2 + 16);
*(_QWORD *)(a2 + 24) = 0LL;
*(_OWORD *)(a1 + 40) = v4;
*(_QWORD *)(a2 + 16) = 0LL;
*(_QWORD *)(a1 + 64) = 0LL;
v5 = *(_OWORD *)(a2 + 32);
*(_QWORD *)(a2 + 40) = 0LL;
*(_OWORD *)(a1 + 56) = v5;
*(_QWORD *)(a2 + 32) = 0LL;
*(_QWORD *)(a1 + 80) = 0LL;
v6 = *(_OWORD *)(a2 + 48);
*(_QWORD *)(a2 + 56) = 0LL;
*(_OWORD *)(a1 + 72) = v6;
*(_QWORD *)(a2 + 48) = 0LL;
*(_OWORD *)(a1 + 88) = *(_OWORD *)(a2 + 64);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a2 + 64));
*(_BYTE *)(a2 + 64) = 0;
*(_QWORD *)(a2 + 72) = 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 + 88));
*(_QWORD *)(a1 + 104) = *a3;
result = a3[1];
*(_QWORD *)(a1 + 112) = result;
if ( result )
{
if ( _libc_single_threaded )
++*(_DWORD *)(result + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(result + 8));
}
if ( !*(_QWORD *)(a1 + 56) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v9, a1 + 24, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v10, (long long)"Context values must be an object: ", (long long)v9);
std::runtime_error::runtime_error(exception, v10);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return result;
}
| Context:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x8],XMM0
LEA RAX,[0x229130]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOVUPS xmmword ptr [RDI + 0x18],XMM0
XOR R13D,R13D
MOV qword ptr [RDI + 0x30],R13
MOVUPS XMM0,xmmword ptr [RSI + 0x10]
MOV qword ptr [RSI + 0x18],R13
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOV qword ptr [RSI + 0x10],R13
MOV qword ptr [RDI + 0x40],R13
MOVUPS XMM0,xmmword ptr [RSI + 0x20]
MOV qword ptr [RSI + 0x28],R13
MOVUPS xmmword ptr [RDI + 0x38],XMM0
MOV qword ptr [RSI + 0x20],R13
MOV qword ptr [RDI + 0x50],R13
MOVUPS XMM0,xmmword ptr [RSI + 0x30]
MOV qword ptr [RSI + 0x38],R13
MOVUPS xmmword ptr [RDI + 0x48],XMM0
MOV qword ptr [RSI + 0x30],R13
LEA R12,[RDI + 0x58]
LEA RDI,[RSI + 0x40]
MOVUPS XMM0,xmmword ptr [RSI + 0x40]
MOVUPS xmmword ptr [RBX + 0x58],XMM0
XOR ESI,ESI
CALL 0x001579d6
MOV byte ptr [R15 + 0x40],0x0
MOV qword ptr [R15 + 0x48],R13
MOV RDI,R12
MOV ESI,0x1
CALL 0x001579d6
MOV RAX,qword ptr [R14]
MOV qword ptr [RBX + 0x68],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RBX + 0x70],RAX
TEST RAX,RAX
JZ 0x0019bb9d
MOV RCX,qword ptr [0x00229f80]
CMP byte ptr [RCX],0x0
JZ 0x0019bb99
INC dword ptr [RAX + 0x8]
JMP 0x0019bb9d
LAB_0019bb99:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0019bb9d:
CMP qword ptr [RBX + 0x38],0x0
JZ 0x0019bbb3
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0019bbb3:
LEA R14,[RBX + 0x18]
MOV EDI,0x10
CALL 0x0011a430
MOV R15,RAX
LAB_0019bbc4:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x00185792
LAB_0019bbd8:
LEA RSI,[0x1ef9f0]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x00177e59
MOV BPL,0x1
LAB_0019bbf1:
LEA RSI,[RSP + 0x28]
MOV RDI,R15
CALL 0x0011adb0
XOR EBP,EBP
MOV RSI,qword ptr [0x00229fe8]
MOV RDX,qword ptr [0x00229f58]
MOV RDI,R15
CALL 0x0011aea0
|
/* minja::Context::Context(minja::Value&&, std::shared_ptr<minja::Context> const&) */
void __thiscall minja::Context::Context(Context *this,Value *param_1,shared_ptr *param_2)
{
long lVar1;
int8 uVar2;
runtime_error *this_00;
int1 local_70 [32];
string local_50 [32];
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int ***)this = &PTR__Context_00229140;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x30) = 0;
uVar2 = *(int8 *)(param_1 + 0x18);
*(int8 *)(param_1 + 0x18) = 0;
*(int8 *)(this + 0x28) = *(int8 *)(param_1 + 0x10);
*(int8 *)(this + 0x30) = uVar2;
*(int8 *)(param_1 + 0x10) = 0;
*(int8 *)(this + 0x40) = 0;
uVar2 = *(int8 *)(param_1 + 0x28);
*(int8 *)(param_1 + 0x28) = 0;
*(int8 *)(this + 0x38) = *(int8 *)(param_1 + 0x20);
*(int8 *)(this + 0x40) = uVar2;
*(int8 *)(param_1 + 0x20) = 0;
*(int8 *)(this + 0x50) = 0;
uVar2 = *(int8 *)(param_1 + 0x38);
*(int8 *)(param_1 + 0x38) = 0;
*(int8 *)(this + 0x48) = *(int8 *)(param_1 + 0x30);
*(int8 *)(this + 0x50) = uVar2;
*(int8 *)(param_1 + 0x30) = 0;
uVar2 = *(int8 *)(param_1 + 0x48);
*(int8 *)(this + 0x58) = *(int8 *)(param_1 + 0x40);
*(int8 *)(this + 0x60) = uVar2;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant((bool)((char)param_1 + '@'));
param_1[0x40] = (Value)0x0;
*(int8 *)(param_1 + 0x48) = 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((bool)((char)this + 'X'));
*(int8 *)(this + 0x68) = *(int8 *)param_2;
lVar1 = *(long *)(param_2 + 8);
*(long *)(this + 0x70) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_00229f80 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
if (*(long *)(this + 0x38) != 0) {
return;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0019bbc4 to 0019bbd7 has its CatchHandler @ 0019bc76 */
Value::dump_abi_cxx11_((int)local_70,(bool)((char)this + '\x18'));
/* try { // try from 0019bbd8 to 0019bbed has its CatchHandler @ 0019bc56 */
std::operator+((char *)local_50,(string *)"Context values must be an object: ");
/* try { // try from 0019bbf1 to 0019bc15 has its CatchHandler @ 0019bc16 */
std::runtime_error::runtime_error(this_00,local_50);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_00229fe8,PTR__runtime_error_00229f58);
}
| |
55,044 | thr_abort_locks_for_thread | eloqsql/mysys/thr_lock.c | my_bool thr_abort_locks_for_thread(THR_LOCK *lock, my_thread_id thread_id)
{
THR_LOCK_DATA *data;
my_bool found= FALSE;
DBUG_ENTER("thr_abort_locks_for_thread");
mysql_mutex_lock(&lock->mutex);
for (data= lock->read_wait.data; data ; data= data->next)
{
if (data->owner->thread_id == thread_id) /* purecov: tested */
{
DBUG_PRINT("info",("Aborting read-wait lock"));
data->type= TL_UNLOCK; /* Mark killed */
/* It's safe to signal the cond first: we're still holding the mutex. */
found= TRUE;
mysql_cond_signal(data->cond);
data->cond= 0; /* Removed from list */
if (((*data->prev)= data->next))
data->next->prev= data->prev;
else
lock->read_wait.last= data->prev;
}
}
for (data= lock->write_wait.data; data ; data= data->next)
{
if (data->owner->thread_id == thread_id) /* purecov: tested */
{
DBUG_PRINT("info",("Aborting write-wait lock"));
data->type= TL_UNLOCK;
found= TRUE;
mysql_cond_signal(data->cond);
data->cond= 0;
if (((*data->prev)= data->next))
data->next->prev= data->prev;
else
lock->write_wait.last= data->prev;
}
}
wake_up_waiters(lock);
mysql_mutex_unlock(&lock->mutex);
DBUG_RETURN(found);
} | O0 | c | thr_abort_locks_for_thread:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb $0x0, -0x19(%rbp)
movq -0x8(%rbp), %rdi
addq $0x18, %rdi
leaq 0x54f6c(%rip), %rsi # 0xda05f
movl $0x545, %edx # imm = 0x545
callq 0x83ba0
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x851a5
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
cmpq -0x10(%rbp), %rax
jne 0x85192
jmp 0x85127
jmp 0x85129
movq -0x18(%rbp), %rax
movl $0x0, 0x40(%rax)
movb $0x1, -0x19(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x85070
movq -0x18(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0x85180
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0x85190
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x68(%rax)
jmp 0x85192
jmp 0x85194
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x85109
movq -0x8(%rbp), %rax
movq 0x80(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x85253
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
cmpq -0x10(%rbp), %rax
jne 0x85240
jmp 0x851d2
jmp 0x851d4
movq -0x18(%rbp), %rax
movl $0x0, 0x40(%rax)
movb $0x1, -0x19(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x85070
movq -0x18(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0x8522b
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0x8523e
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x88(%rax)
jmp 0x85240
jmp 0x85242
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x851b4
movq -0x8(%rbp), %rdi
callq 0x83f60
movq -0x8(%rbp), %rdi
addq $0x18, %rdi
callq 0x83c10
movb -0x19(%rbp), %al
movb %al, -0x1a(%rbp)
movb -0x1a(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| thr_abort_locks_for_thread:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_19], 0
mov rdi, [rbp+var_8]
add rdi, 18h
lea rsi, aWorkspaceLlm4b_21; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 545h
call inline_mysql_mutex_lock_11
mov rax, [rbp+var_8]
mov rax, [rax+60h]
mov [rbp+var_18], rax
loc_85109:
cmp [rbp+var_18], 0
jz loc_851A5
mov rax, [rbp+var_18]
mov rax, [rax]
mov rax, [rax+8]
cmp rax, [rbp+var_10]
jnz short loc_85192
jmp short $+2
loc_85127:
jmp short $+2
loc_85129:
mov rax, [rbp+var_18]
mov dword ptr [rax+40h], 0
mov [rbp+var_19], 1
mov rax, [rbp+var_18]
mov rdi, [rax+20h]
call inline_mysql_cond_signal_2
mov rax, [rbp+var_18]
mov qword ptr [rax+20h], 0
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov rcx, [rbp+var_18]
mov rcx, [rcx+10h]
mov [rcx], rax
cmp rax, 0
jz short loc_85180
mov rax, [rbp+var_18]
mov rcx, [rax+10h]
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rax+10h], rcx
jmp short loc_85190
loc_85180:
mov rax, [rbp+var_18]
mov rcx, [rax+10h]
mov rax, [rbp+var_8]
mov [rax+68h], rcx
loc_85190:
jmp short $+2
loc_85192:
jmp short $+2
loc_85194:
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rbp+var_18], rax
jmp loc_85109
loc_851A5:
mov rax, [rbp+var_8]
mov rax, [rax+80h]
mov [rbp+var_18], rax
loc_851B4:
cmp [rbp+var_18], 0
jz loc_85253
mov rax, [rbp+var_18]
mov rax, [rax]
mov rax, [rax+8]
cmp rax, [rbp+var_10]
jnz short loc_85240
jmp short $+2
loc_851D2:
jmp short $+2
loc_851D4:
mov rax, [rbp+var_18]
mov dword ptr [rax+40h], 0
mov [rbp+var_19], 1
mov rax, [rbp+var_18]
mov rdi, [rax+20h]
call inline_mysql_cond_signal_2
mov rax, [rbp+var_18]
mov qword ptr [rax+20h], 0
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov rcx, [rbp+var_18]
mov rcx, [rcx+10h]
mov [rcx], rax
cmp rax, 0
jz short loc_8522B
mov rax, [rbp+var_18]
mov rcx, [rax+10h]
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rax+10h], rcx
jmp short loc_8523E
loc_8522B:
mov rax, [rbp+var_18]
mov rcx, [rax+10h]
mov rax, [rbp+var_8]
mov [rax+88h], rcx
loc_8523E:
jmp short $+2
loc_85240:
jmp short $+2
loc_85242:
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rbp+var_18], rax
jmp loc_851B4
loc_85253:
mov rdi, [rbp+var_8]
call wake_up_waiters
mov rdi, [rbp+var_8]
add rdi, 18h
call inline_mysql_mutex_unlock_11
mov al, [rbp+var_19]
mov [rbp+var_1A], al
mov al, [rbp+var_1A]
add rsp, 20h
pop rbp
retn
| char thr_abort_locks_for_thread(_QWORD *a1, long long a2)
{
long long v2; // rax
long long v3; // rax
char v5; // [rsp+7h] [rbp-19h]
long long i; // [rsp+8h] [rbp-18h]
long long j; // [rsp+8h] [rbp-18h]
v5 = 0;
inline_mysql_mutex_lock_11(
(long long)(a1 + 3),
(long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",
0x545u);
for ( i = a1[12]; i; i = *(_QWORD *)(i + 8) )
{
if ( *(_QWORD *)(*(_QWORD *)i + 8LL) == a2 )
{
*(_DWORD *)(i + 64) = 0;
v5 = 1;
inline_mysql_cond_signal_2(*(_QWORD *)(i + 32));
*(_QWORD *)(i + 32) = 0LL;
v2 = *(_QWORD *)(i + 8);
**(_QWORD **)(i + 16) = v2;
if ( v2 )
*(_QWORD *)(*(_QWORD *)(i + 8) + 16LL) = *(_QWORD *)(i + 16);
else
a1[13] = *(_QWORD *)(i + 16);
}
}
for ( j = a1[16]; j; j = *(_QWORD *)(j + 8) )
{
if ( *(_QWORD *)(*(_QWORD *)j + 8LL) == a2 )
{
*(_DWORD *)(j + 64) = 0;
v5 = 1;
inline_mysql_cond_signal_2(*(_QWORD *)(j + 32));
*(_QWORD *)(j + 32) = 0LL;
v3 = *(_QWORD *)(j + 8);
**(_QWORD **)(j + 16) = v3;
if ( v3 )
*(_QWORD *)(*(_QWORD *)(j + 8) + 16LL) = *(_QWORD *)(j + 16);
else
a1[17] = *(_QWORD *)(j + 16);
}
}
wake_up_waiters((long long)a1);
inline_mysql_mutex_unlock_11((long long)(a1 + 3));
return v5;
}
| thr_abort_locks_for_thread:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV byte ptr [RBP + -0x19],0x0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x18
LEA RSI,[0x1da05f]
MOV EDX,0x545
CALL 0x00183ba0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x60]
MOV qword ptr [RBP + -0x18],RAX
LAB_00185109:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x001851a5
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x00185192
JMP 0x00185127
LAB_00185127:
JMP 0x00185129
LAB_00185129:
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x40],0x0
MOV byte ptr [RBP + -0x19],0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x20]
CALL 0x00185070
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x20],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX + 0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JZ 0x00185180
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x00185190
LAB_00185180:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x68],RCX
LAB_00185190:
JMP 0x00185192
LAB_00185192:
JMP 0x00185194
LAB_00185194:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00185109
LAB_001851a5:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x80]
MOV qword ptr [RBP + -0x18],RAX
LAB_001851b4:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00185253
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x00185240
JMP 0x001851d2
LAB_001851d2:
JMP 0x001851d4
LAB_001851d4:
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x40],0x0
MOV byte ptr [RBP + -0x19],0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x20]
CALL 0x00185070
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x20],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX + 0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JZ 0x0018522b
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x0018523e
LAB_0018522b:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x88],RCX
LAB_0018523e:
JMP 0x00185240
LAB_00185240:
JMP 0x00185242
LAB_00185242:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001851b4
LAB_00185253:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00183f60
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x18
CALL 0x00183c10
MOV AL,byte ptr [RBP + -0x19]
MOV byte ptr [RBP + -0x1a],AL
MOV AL,byte ptr [RBP + -0x1a]
ADD RSP,0x20
POP RBP
RET
|
int1 thr_abort_locks_for_thread(long param_1,long param_2)
{
long lVar1;
int1 local_21;
long *local_20;
local_21 = 0;
inline_mysql_mutex_lock
(param_1 + 0x18,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x545);
for (local_20 = *(long **)(param_1 + 0x60); local_20 != (long *)0x0;
local_20 = (long *)local_20[1]) {
if (*(long *)(*local_20 + 8) == param_2) {
*(int4 *)(local_20 + 8) = 0;
local_21 = 1;
inline_mysql_cond_signal(local_20[4]);
local_20[4] = 0;
lVar1 = local_20[1];
*(long *)local_20[2] = lVar1;
if (lVar1 == 0) {
*(long *)(param_1 + 0x68) = local_20[2];
}
else {
*(long *)(local_20[1] + 0x10) = local_20[2];
}
}
}
for (local_20 = *(long **)(param_1 + 0x80); local_20 != (long *)0x0;
local_20 = (long *)local_20[1]) {
if (*(long *)(*local_20 + 8) == param_2) {
*(int4 *)(local_20 + 8) = 0;
local_21 = 1;
inline_mysql_cond_signal(local_20[4]);
local_20[4] = 0;
lVar1 = local_20[1];
*(long *)local_20[2] = lVar1;
if (lVar1 == 0) {
*(long *)(param_1 + 0x88) = local_20[2];
}
else {
*(long *)(local_20[1] + 0x10) = local_20[2];
}
}
}
wake_up_waiters(param_1);
inline_mysql_mutex_unlock(param_1 + 0x18);
return local_21;
}
| |
55,045 | thr_abort_locks_for_thread | eloqsql/mysys/thr_lock.c | my_bool thr_abort_locks_for_thread(THR_LOCK *lock, my_thread_id thread_id)
{
THR_LOCK_DATA *data;
my_bool found= FALSE;
DBUG_ENTER("thr_abort_locks_for_thread");
mysql_mutex_lock(&lock->mutex);
for (data= lock->read_wait.data; data ; data= data->next)
{
if (data->owner->thread_id == thread_id) /* purecov: tested */
{
DBUG_PRINT("info",("Aborting read-wait lock"));
data->type= TL_UNLOCK; /* Mark killed */
/* It's safe to signal the cond first: we're still holding the mutex. */
found= TRUE;
mysql_cond_signal(data->cond);
data->cond= 0; /* Removed from list */
if (((*data->prev)= data->next))
data->next->prev= data->prev;
else
lock->read_wait.last= data->prev;
}
}
for (data= lock->write_wait.data; data ; data= data->next)
{
if (data->owner->thread_id == thread_id) /* purecov: tested */
{
DBUG_PRINT("info",("Aborting write-wait lock"));
data->type= TL_UNLOCK;
found= TRUE;
mysql_cond_signal(data->cond);
data->cond= 0;
if (((*data->prev)= data->next))
data->next->prev= data->prev;
else
lock->write_wait.last= data->prev;
}
}
wake_up_waiters(lock);
mysql_mutex_unlock(&lock->mutex);
DBUG_RETURN(found);
} | O3 | c | thr_abort_locks_for_thread:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
addq $0x18, %rdi
cmpq $0x0, 0x58(%r14)
movq %rdi, -0x30(%rbp)
jne 0x5daef
callq 0x28560
movq 0x60(%r14), %r13
testq %r13, %r13
je 0x5da40
leaq 0x68(%r14), %rbx
xorl %r12d, %r12d
movq (%r13), %rax
cmpq %r15, 0x8(%rax)
jne 0x5da23
movl $0x0, 0x40(%r13)
movq 0x20(%r13), %r12
movq 0x30(%r12), %rdi
testq %rdi, %rdi
jne 0x5da2e
movq %r12, %rdi
callq 0x28040
movq $0x0, 0x20(%r13)
movq 0x8(%r13), %rax
movq 0x10(%r13), %rcx
movq %rax, (%rcx)
leaq 0x10(%rax), %rcx
testq %rax, %rax
movq 0x10(%r13), %rax
cmoveq %rbx, %rcx
movq %rax, (%rcx)
movb $0x1, %r12b
movq 0x8(%r13), %r13
testq %r13, %r13
jne 0x5d9d3
jmp 0x5da43
leaq 0x2d241b(%rip), %rax # 0x32fe50
movq (%rax), %rax
callq *0x170(%rax)
jmp 0x5d9f3
xorl %r12d, %r12d
movq 0x80(%r14), %r13
testq %r13, %r13
je 0x5dac3
leaq 0x88(%r14), %rbx
movq (%r13), %rax
cmpq %r15, 0x8(%rax)
jne 0x5daa6
movl $0x0, 0x40(%r13)
movq 0x20(%r13), %r12
movq 0x30(%r12), %rdi
testq %rdi, %rdi
jne 0x5dab1
movq %r12, %rdi
callq 0x28040
movq $0x0, 0x20(%r13)
movq 0x8(%r13), %rax
movq 0x10(%r13), %rcx
movq %rax, (%rcx)
leaq 0x10(%rax), %rcx
testq %rax, %rax
movq 0x10(%r13), %rax
cmoveq %rbx, %rcx
movq %rax, (%rcx)
movb $0x1, %r12b
movq 0x8(%r13), %r13
testq %r13, %r13
jne 0x5da56
jmp 0x5dac3
leaq 0x2d2398(%rip), %rax # 0x32fe50
movq (%rax), %rax
callq *0x170(%rax)
jmp 0x5da76
movq %r14, %rdi
callq 0x5cbbd
movq 0x58(%r14), %rdi
testq %rdi, %rdi
jne 0x5db05
movq -0x30(%rbp), %rdi
callq 0x28270
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x35419(%rip), %rsi # 0x92f0f
movl $0x545, %edx # imm = 0x545
callq 0x29edc
jmp 0x5d9c3
leaq 0x2d2344(%rip), %rax # 0x32fe50
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x5dad4
| thr_abort_locks_for_thread:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rsi
mov r14, rdi
add rdi, 18h
cmp qword ptr [r14+58h], 0
mov [rbp+var_30], rdi
jnz loc_5DAEF
call _pthread_mutex_lock
loc_5D9C3:
mov r13, [r14+60h]
test r13, r13
jz short loc_5DA40
lea rbx, [r14+68h]
xor r12d, r12d
loc_5D9D3:
mov rax, [r13+0]
cmp [rax+8], r15
jnz short loc_5DA23
mov dword ptr [r13+40h], 0
mov r12, [r13+20h]
mov rdi, [r12+30h]
test rdi, rdi
jnz short loc_5DA2E
loc_5D9F3:
mov rdi, r12
call _pthread_cond_signal
mov qword ptr [r13+20h], 0
mov rax, [r13+8]
mov rcx, [r13+10h]
mov [rcx], rax
lea rcx, [rax+10h]
test rax, rax
mov rax, [r13+10h]
cmovz rcx, rbx
mov [rcx], rax
mov r12b, 1
loc_5DA23:
mov r13, [r13+8]
test r13, r13
jnz short loc_5D9D3
jmp short loc_5DA43
loc_5DA2E:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+170h]
jmp short loc_5D9F3
loc_5DA40:
xor r12d, r12d
loc_5DA43:
mov r13, [r14+80h]
test r13, r13
jz short loc_5DAC3
lea rbx, [r14+88h]
loc_5DA56:
mov rax, [r13+0]
cmp [rax+8], r15
jnz short loc_5DAA6
mov dword ptr [r13+40h], 0
mov r12, [r13+20h]
mov rdi, [r12+30h]
test rdi, rdi
jnz short loc_5DAB1
loc_5DA76:
mov rdi, r12
call _pthread_cond_signal
mov qword ptr [r13+20h], 0
mov rax, [r13+8]
mov rcx, [r13+10h]
mov [rcx], rax
lea rcx, [rax+10h]
test rax, rax
mov rax, [r13+10h]
cmovz rcx, rbx
mov [rcx], rax
mov r12b, 1
loc_5DAA6:
mov r13, [r13+8]
test r13, r13
jnz short loc_5DA56
jmp short loc_5DAC3
loc_5DAB1:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+170h]
jmp short loc_5DA76
loc_5DAC3:
mov rdi, r14
call wake_up_waiters
mov rdi, [r14+58h]
test rdi, rdi
jnz short loc_5DB05
loc_5DAD4:
mov rdi, [rbp+var_30]
call _pthread_mutex_unlock
mov eax, r12d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5DAEF:
lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 545h
call psi_mutex_lock
jmp loc_5D9C3
loc_5DB05:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_5DAD4
| long long thr_abort_locks_for_thread(_QWORD *a1, long long a2)
{
long long v3; // rdi
long long v4; // r13
long long v5; // r12
long long v6; // rdi
long long v7; // rax
_QWORD *v8; // rcx
long long i; // r13
long long v10; // rdi
long long v11; // rax
_QWORD *v12; // rcx
long long v13; // rdi
long long v15; // [rsp+0h] [rbp-30h]
v3 = (long long)(a1 + 3);
v15 = v3;
if ( a1[11] )
psi_mutex_lock(v3, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x545u);
else
pthread_mutex_lock(v3);
v4 = a1[12];
if ( v4 )
{
LODWORD(v5) = 0;
do
{
if ( *(_QWORD *)(*(_QWORD *)v4 + 8LL) == a2 )
{
*(_DWORD *)(v4 + 64) = 0;
v5 = *(_QWORD *)(v4 + 32);
v6 = *(_QWORD *)(v5 + 48);
if ( v6 )
((void ( *)(long long))PSI_server[46])(v6);
pthread_cond_signal(v5);
*(_QWORD *)(v4 + 32) = 0LL;
v7 = *(_QWORD *)(v4 + 8);
**(_QWORD **)(v4 + 16) = v7;
v8 = (_QWORD *)(v7 + 16);
if ( !v7 )
v8 = a1 + 13;
*v8 = *(_QWORD *)(v4 + 16);
LOBYTE(v5) = 1;
}
v4 = *(_QWORD *)(v4 + 8);
}
while ( v4 );
}
else
{
LODWORD(v5) = 0;
}
for ( i = a1[16]; i; i = *(_QWORD *)(i + 8) )
{
if ( *(_QWORD *)(*(_QWORD *)i + 8LL) == a2 )
{
*(_DWORD *)(i + 64) = 0;
v5 = *(_QWORD *)(i + 32);
v10 = *(_QWORD *)(v5 + 48);
if ( v10 )
((void ( *)(long long))PSI_server[46])(v10);
pthread_cond_signal(v5);
*(_QWORD *)(i + 32) = 0LL;
v11 = *(_QWORD *)(i + 8);
**(_QWORD **)(i + 16) = v11;
v12 = (_QWORD *)(v11 + 16);
if ( !v11 )
v12 = a1 + 17;
*v12 = *(_QWORD *)(i + 16);
LOBYTE(v5) = 1;
}
}
wake_up_waiters((long long)a1);
v13 = a1[11];
if ( v13 )
((void ( *)(long long))PSI_server[44])(v13);
pthread_mutex_unlock(v15);
return (unsigned int)v5;
}
| thr_abort_locks_for_thread:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RSI
MOV R14,RDI
ADD RDI,0x18
CMP qword ptr [R14 + 0x58],0x0
MOV qword ptr [RBP + -0x30],RDI
JNZ 0x0015daef
CALL 0x00128560
LAB_0015d9c3:
MOV R13,qword ptr [R14 + 0x60]
TEST R13,R13
JZ 0x0015da40
LEA RBX,[R14 + 0x68]
XOR R12D,R12D
LAB_0015d9d3:
MOV RAX,qword ptr [R13]
CMP qword ptr [RAX + 0x8],R15
JNZ 0x0015da23
MOV dword ptr [R13 + 0x40],0x0
MOV R12,qword ptr [R13 + 0x20]
MOV RDI,qword ptr [R12 + 0x30]
TEST RDI,RDI
JNZ 0x0015da2e
LAB_0015d9f3:
MOV RDI,R12
CALL 0x00128040
MOV qword ptr [R13 + 0x20],0x0
MOV RAX,qword ptr [R13 + 0x8]
MOV RCX,qword ptr [R13 + 0x10]
MOV qword ptr [RCX],RAX
LEA RCX,[RAX + 0x10]
TEST RAX,RAX
MOV RAX,qword ptr [R13 + 0x10]
CMOVZ RCX,RBX
MOV qword ptr [RCX],RAX
MOV R12B,0x1
LAB_0015da23:
MOV R13,qword ptr [R13 + 0x8]
TEST R13,R13
JNZ 0x0015d9d3
JMP 0x0015da43
LAB_0015da2e:
LEA RAX,[0x42fe50]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x170]
JMP 0x0015d9f3
LAB_0015da40:
XOR R12D,R12D
LAB_0015da43:
MOV R13,qword ptr [R14 + 0x80]
TEST R13,R13
JZ 0x0015dac3
LEA RBX,[R14 + 0x88]
LAB_0015da56:
MOV RAX,qword ptr [R13]
CMP qword ptr [RAX + 0x8],R15
JNZ 0x0015daa6
MOV dword ptr [R13 + 0x40],0x0
MOV R12,qword ptr [R13 + 0x20]
MOV RDI,qword ptr [R12 + 0x30]
TEST RDI,RDI
JNZ 0x0015dab1
LAB_0015da76:
MOV RDI,R12
CALL 0x00128040
MOV qword ptr [R13 + 0x20],0x0
MOV RAX,qword ptr [R13 + 0x8]
MOV RCX,qword ptr [R13 + 0x10]
MOV qword ptr [RCX],RAX
LEA RCX,[RAX + 0x10]
TEST RAX,RAX
MOV RAX,qword ptr [R13 + 0x10]
CMOVZ RCX,RBX
MOV qword ptr [RCX],RAX
MOV R12B,0x1
LAB_0015daa6:
MOV R13,qword ptr [R13 + 0x8]
TEST R13,R13
JNZ 0x0015da56
JMP 0x0015dac3
LAB_0015dab1:
LEA RAX,[0x42fe50]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x170]
JMP 0x0015da76
LAB_0015dac3:
MOV RDI,R14
CALL 0x0015cbbd
MOV RDI,qword ptr [R14 + 0x58]
TEST RDI,RDI
JNZ 0x0015db05
LAB_0015dad4:
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00128270
MOV EAX,R12D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015daef:
LEA RSI,[0x192f0f]
MOV EDX,0x545
CALL 0x00129edc
JMP 0x0015d9c3
LAB_0015db05:
LEA RAX,[0x42fe50]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0015dad4
|
ulong thr_abort_locks_for_thread(long param_1,long param_2)
{
pthread_cond_t *ppVar1;
long lVar2;
long *plVar3;
pthread_mutex_t *__mutex;
ulong uVar4;
long *plVar5;
__mutex = (pthread_mutex_t *)(param_1 + 0x18);
if (*(long *)(param_1 + 0x58) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x545);
}
plVar5 = *(long **)(param_1 + 0x60);
if (plVar5 == (long *)0x0) {
uVar4 = 0;
}
else {
uVar4 = 0;
do {
if (*(long *)(*plVar5 + 8) == param_2) {
*(int4 *)(plVar5 + 8) = 0;
ppVar1 = (pthread_cond_t *)plVar5[4];
if (ppVar1[1].__align != 0) {
(**(code **)(PSI_server + 0x170))();
}
pthread_cond_signal(ppVar1);
plVar5[4] = 0;
lVar2 = plVar5[1];
*(long *)plVar5[2] = lVar2;
plVar3 = (long *)(lVar2 + 0x10);
if (lVar2 == 0) {
plVar3 = (long *)(param_1 + 0x68);
}
*plVar3 = plVar5[2];
uVar4 = CONCAT71((int7)((ulong)ppVar1 >> 8),1);
}
plVar5 = (long *)plVar5[1];
} while (plVar5 != (long *)0x0);
}
plVar5 = *(long **)(param_1 + 0x80);
if (plVar5 != (long *)0x0) {
do {
if (*(long *)(*plVar5 + 8) == param_2) {
*(int4 *)(plVar5 + 8) = 0;
ppVar1 = (pthread_cond_t *)plVar5[4];
if (ppVar1[1].__align != 0) {
(**(code **)(PSI_server + 0x170))();
}
pthread_cond_signal(ppVar1);
plVar5[4] = 0;
lVar2 = plVar5[1];
*(long *)plVar5[2] = lVar2;
plVar3 = (long *)(lVar2 + 0x10);
if (lVar2 == 0) {
plVar3 = (long *)(param_1 + 0x88);
}
*plVar3 = plVar5[2];
uVar4 = CONCAT71((int7)((ulong)ppVar1 >> 8),1);
}
plVar5 = (long *)plVar5[1];
} while (plVar5 != (long *)0x0);
}
wake_up_waiters(param_1);
if (*(long *)(param_1 + 0x58) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return uVar4 & 0xffffffff;
}
| |
55,046 | js_proxy_call | bluesky950520[P]quickjs/quickjs.c | static JSValue js_proxy_call(JSContext *ctx, JSValue func_obj,
JSValue this_obj,
int argc, JSValue *argv, int flags)
{
JSProxyData *s;
JSValue method, arg_array, ret;
JSValue args[3];
if (flags & JS_CALL_FLAG_CONSTRUCTOR)
return js_proxy_call_constructor(ctx, func_obj, this_obj, argc, argv);
s = get_proxy_method(ctx, &method, func_obj, JS_ATOM_apply);
if (!s)
return JS_EXCEPTION;
if (!s->is_func) {
JS_FreeValue(ctx, method);
return JS_ThrowTypeError(ctx, "not a function");
}
if (JS_IsUndefined(method))
return JS_Call(ctx, s->target, this_obj, argc, argv);
arg_array = js_create_array(ctx, argc, argv);
if (JS_IsException(arg_array)) {
ret = JS_EXCEPTION;
goto fail;
}
args[0] = s->target;
args[1] = this_obj;
args[2] = arg_array;
ret = JS_Call(ctx, method, s->handler, 3, args);
fail:
JS_FreeValue(ctx, method);
JS_FreeValue(ctx, arg_array);
return ret;
} | O2 | c | js_proxy_call:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %r9d, %ebp
movq %r8, %r12
movq %rcx, %r15
movq %rdx, %rcx
movq %rsi, %rdx
movq %rdi, %rbx
testb $0x1, 0xa8(%rsp)
jne 0x2efb9
leaq 0x18(%rsp), %rsi
pushq $0x5b
popq %r8
movq %rbx, %rdi
callq 0x35d01
pushq $0x6
popq %r14
testq %rax, %rax
je 0x2f012
movq %rax, %r13
cmpb $0x0, 0x20(%rax)
je 0x2f028
movq 0x20(%rsp), %r14
cmpl $0x3, %r14d
jne 0x2f056
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq 0xa0(%rsp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r15, %rcx
movq %r12, %r8
movl %ebp, %r9d
callq 0x21eb6
movq %rax, %r15
movq %rdx, %r14
movabsq $-0x100000000, %r12 # imm = 0xFFFFFFFF00000000
andq %rax, %r12
jmp 0x2f138
movq %r12, 0x8(%rsp)
movabsq $-0x100000000, %r12 # imm = 0xFFFFFFFF00000000
leaq 0x18(%rsp), %rsi
pushq $0x5f
popq %r8
movq %rbx, %rdi
callq 0x35d01
pushq $0x6
popq %r14
testq %rax, %rax
je 0x2f017
movq %rax, %r13
movq 0x8(%rax), %rdx
cmpl $-0x1, %edx
jne 0x2effc
movq (%r13), %rsi
testb $0x10, 0x5(%rsi)
jne 0x2f08a
leaq 0x5762d(%rip), %rsi # 0x86630
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1c64d
jmp 0x2f01a
xorl %r15d, %r15d
jmp 0x2f04e
xorl %r15d, %r15d
xorl %r13d, %r13d
orq %r13, %r15
andq %r13, %r12
jmp 0x2f138
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x1801e
leaq 0x581c9(%rip), %rsi # 0x8720a
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1c64d
xorl %r12d, %r12d
jmp 0x2f138
movq %rbx, %rdi
movl %ebp, %esi
movq 0xa0(%rsp), %rdx
callq 0x3a2bd
movq %rdx, %rbp
movq 0x18(%rsp), %rsi
cmpl $0x6, %ebp
jne 0x2f0c8
xorl %r15d, %r15d
movq %r14, %rcx
pushq $0x6
popq %r14
xorl %r12d, %r12d
movq %rax, %r13
jmp 0x2f11f
movq 0x20(%rsp), %rax
cmpl $0x3, %eax
jne 0x2f150
movq 0xa0(%rsp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r15, %rcx
movq 0x8(%rsp), %r8
movl %ebp, %r9d
callq 0x28200
movq %rax, %r15
movq %rdx, %r14
movq %rax, %r13
andq %r12, %r13
jmp 0x2f01d
movups (%r13), %xmm0
leaq 0x30(%rsp), %rdx
movaps %xmm0, (%rdx)
movq %r15, 0x10(%rdx)
movq %r12, 0x18(%rdx)
movq %rax, 0x20(%rdx)
movq %rbp, 0x28(%rdx)
movq 0x10(%r13), %rcx
movq 0x18(%r13), %r8
movq %rdx, (%rsp)
pushq $0x3
popq %r9
movq %rbx, %rdi
movq %rax, %r13
movq %rsi, %r15
movq %r14, %rdx
callq 0x21eb6
movq %r15, %rsi
movq %rax, %r15
movq %r14, %rcx
movq %rdx, %r14
movabsq $-0x100000000, %r12 # imm = 0xFFFFFFFF00000000
andq %rax, %r12
movq %rbx, %rdi
movq %rcx, %rdx
callq 0x1801e
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x1801e
movl %r15d, %eax
orq %r12, %rax
movq %r14, %rdx
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
movq 0xa0(%rsp), %rdx
callq 0x3a2bd
movq %rdx, %rbp
pushq $0x6
popq %r14
movq 0x18(%rsp), %rsi
cmpl $0x6, %ebp
movq %rax, 0x28(%rsp)
jne 0x2f18a
xorl %r15d, %r15d
xorl %r13d, %r13d
movq 0x10(%rsp), %rdx
jmp 0x2f209
movups (%r13), %xmm0
leaq 0x30(%rsp), %rdx
movaps %xmm0, (%rdx)
movq %rax, 0x10(%rdx)
movq %rbp, 0x18(%rdx)
movq %r15, 0x20(%rdx)
movq 0x8(%rsp), %rcx
movq %rcx, 0x28(%rdx)
movq 0x10(%r13), %rcx
movq 0x18(%r13), %r8
movq %rdx, (%rsp)
pushq $0x3
popq %r9
movq %rbx, %rdi
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rdx
callq 0x21eb6
movq %rax, %r15
movq %rax, %r13
andq %r12, %r13
cmpl $-0x1, %edx
je 0x2f1e1
cmpl $0x6, %edx
jne 0x2f1e6
movq %rdx, %r14
jmp 0x2f1ff
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1801e
movq %rbx, %rdi
callq 0x1d5e1
xorl %r15d, %r15d
xorl %r13d, %r13d
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x1801e
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movq %rbp, %rdx
callq 0x1801e
jmp 0x2f01d
| js_proxy_call:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov ebp, r9d
mov r12, r8
mov r15, rcx
mov rcx, rdx
mov rdx, rsi
mov rbx, rdi
test [rsp+98h+arg_8], 1
jnz short loc_2EFB9
lea rsi, [rsp+98h+var_80]
push 5Bh ; '['
pop r8
mov rdi, rbx
call get_proxy_method
push 6
pop r14
test rax, rax
jz loc_2F012
mov r13, rax
cmp byte ptr [rax+20h], 0
jz loc_2F028
mov r14, [rsp+98h+var_78]
cmp r14d, 3
jnz loc_2F056
mov rsi, [r13+0]
mov rdx, [r13+8]
mov rax, [rsp+98h+arg_0]
mov [rsp+98h+var_98], rax
mov rdi, rbx
mov rcx, r15
mov r8, r12
mov r9d, ebp
call JS_Call
mov r15, rax
mov r14, rdx
mov r12, 0FFFFFFFF00000000h
and r12, rax
jmp loc_2F138
loc_2EFB9:
mov [rsp+98h+var_90], r12
mov r12, 0FFFFFFFF00000000h
lea rsi, [rsp+98h+var_80]
push 5Fh ; '_'
pop r8
mov rdi, rbx
call get_proxy_method
push 6
pop r14
test rax, rax
jz short loc_2F017
mov r13, rax
mov rdx, [rax+8]
cmp edx, 0FFFFFFFFh
jnz short loc_2EFFC
mov rsi, [r13+0]
test byte ptr [rsi+5], 10h
jnz loc_2F08A
loc_2EFFC:
lea rsi, aNotAConstructo; "not a constructor"
xor r15d, r15d
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
jmp short loc_2F01A
loc_2F012:
xor r15d, r15d
jmp short loc_2F04E
loc_2F017:
xor r15d, r15d
loc_2F01A:
xor r13d, r13d
loc_2F01D:
or r15, r13
and r12, r13
jmp loc_2F138
loc_2F028:
mov rsi, [rsp+98h+var_80]
mov rdx, [rsp+98h+var_78]
mov rdi, rbx
call JS_FreeValue
lea rsi, aSetAddIsNotAFu+0Bh; "not a function"
xor r15d, r15d
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
loc_2F04E:
xor r12d, r12d
jmp loc_2F138
loc_2F056:
mov rdi, rbx
mov esi, ebp
mov rdx, [rsp+98h+arg_0]
call js_create_array
mov rbp, rdx
mov rsi, [rsp+98h+var_80]
cmp ebp, 6
jnz short loc_2F0C8
xor r15d, r15d
mov rcx, r14
push 6
pop r14
xor r12d, r12d
mov r13, rax
jmp loc_2F11F
loc_2F08A:
mov rax, [rsp+98h+var_78]
cmp eax, 3
jnz loc_2F150
mov rax, [rsp+98h+arg_0]
mov [rsp+98h+var_98], rax
mov rdi, rbx
mov rcx, r15
mov r8, [rsp+98h+var_90]
mov r9d, ebp
call JS_CallConstructor2
mov r15, rax
mov r14, rdx
mov r13, rax
and r13, r12
jmp loc_2F01D
loc_2F0C8:
movups xmm0, xmmword ptr [r13+0]
lea rdx, [rsp+98h+var_68]
movaps xmmword ptr [rdx], xmm0
mov [rdx+10h], r15
mov [rdx+18h], r12
mov [rdx+20h], rax
mov [rdx+28h], rbp
mov rcx, [r13+10h]
mov r8, [r13+18h]
mov [rsp+98h+var_98], rdx
push 3
pop r9
mov rdi, rbx
mov r13, rax
mov r15, rsi
mov rdx, r14
call JS_Call
mov rsi, r15
mov r15, rax
mov rcx, r14
mov r14, rdx
mov r12, 0FFFFFFFF00000000h
and r12, rax
loc_2F11F:
mov rdi, rbx
mov rdx, rcx
call JS_FreeValue
mov rdi, rbx
mov rsi, r13
mov rdx, rbp
call JS_FreeValue
loc_2F138:
mov eax, r15d
or rax, r12
mov rdx, r14
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2F150:
mov [rsp+98h+var_88], rax
mov rdi, rbx
mov esi, ebp
mov rdx, [rsp+98h+arg_0]
call js_create_array
mov rbp, rdx
push 6
pop r14
mov rsi, [rsp+98h+var_80]
cmp ebp, 6
mov [rsp+98h+var_70], rax
jnz short loc_2F18A
xor r15d, r15d
xor r13d, r13d
mov rdx, [rsp+98h+var_88]
jmp short loc_2F209
loc_2F18A:
movups xmm0, xmmword ptr [r13+0]
lea rdx, [rsp+98h+var_68]
movaps xmmword ptr [rdx], xmm0
mov [rdx+10h], rax
mov [rdx+18h], rbp
mov [rdx+20h], r15
mov rcx, [rsp+98h+var_90]
mov [rdx+28h], rcx
mov rcx, [r13+10h]
mov r8, [r13+18h]
mov [rsp+98h+var_98], rdx
push 3
pop r9
mov rdi, rbx
mov [rsp+98h+var_90], rsi
mov rdx, [rsp+98h+var_88]
call JS_Call
mov r15, rax
mov r13, rax
and r13, r12
cmp edx, 0FFFFFFFFh
jz short loc_2F1E1
cmp edx, 6
jnz short loc_2F1E6
loc_2F1E1:
mov r14, rdx
jmp short loc_2F1FF
loc_2F1E6:
mov rdi, rbx
mov rsi, r15
call JS_FreeValue
mov rdi, rbx
call JS_ThrowTypeErrorNotAnObject
xor r15d, r15d
xor r13d, r13d
loc_2F1FF:
mov rdx, [rsp+98h+var_88]
mov rsi, [rsp+98h+var_90]
loc_2F209:
mov rdi, rbx
call JS_FreeValue
mov rdi, rbx
mov rsi, [rsp+98h+var_70]
mov rdx, rbp
call JS_FreeValue
jmp loc_2F01D
| unsigned long long js_proxy_call(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
unsigned int a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14,
long long a15,
char a16)
{
long long v19; // rax
long long v20; // r13
long long v21; // r14
long long v22; // rax
unsigned int v23; // r15d
unsigned long long v24; // r12
__m128 *proxy_method; // rax
long long v26; // rcx
long long v27; // r8
long long v28; // r9
__m128 v29; // xmm4
__m128 v30; // xmm5
__m128 *v31; // r13
long long v32; // rdx
unsigned long long v33; // r13
long long v34; // rdx
long long v35; // rcx
long long v36; // r8
long long v37; // r9
__m128 v38; // xmm4
__m128 v39; // xmm5
long long v40; // rax
long long v41; // rdx
long long v42; // rbp
long long v43; // rsi
long long v44; // rcx
long long v45; // r13
long long v46; // rcx
long long v47; // r8
long long v48; // rax
long long array; // rax
long long v51; // rdx
long long v52; // rbp
long long v53; // rsi
long long v54; // rdx
__m128 v55; // xmm0
long long v56; // rax
long long v57; // rdx
long long v58; // rsi
long long v59; // rdx
long long v60; // rcx
long long v61; // r8
long long v62; // r9
__m128 v63; // xmm4
__m128 v64; // xmm5
char v65; // [rsp+0h] [rbp-98h]
char v66; // [rsp+0h] [rbp-98h]
long long v68; // [rsp+8h] [rbp-90h]
long long v69; // [rsp+10h] [rbp-88h]
long long v70; // [rsp+18h] [rbp-80h] BYREF
long long v71; // [rsp+20h] [rbp-78h]
long long v72; // [rsp+28h] [rbp-70h]
__m128 v73; // [rsp+30h] [rbp-68h] BYREF
long long v74; // [rsp+40h] [rbp-58h]
long long v75; // [rsp+48h] [rbp-50h]
long long v76; // [rsp+50h] [rbp-48h]
long long v77; // [rsp+58h] [rbp-40h]
if ( (a16 & 1) != 0 )
{
proxy_method = (__m128 *)get_proxy_method(a1, &v70, a2, a3, 95LL);
if ( proxy_method )
{
v31 = proxy_method;
v32 = proxy_method->m128_i64[1];
if ( (_DWORD)v32 == -1 && (*(_BYTE *)(proxy_method->m128_u64[0] + 5) & 0x10) != 0 )
{
if ( (_DWORD)v71 == 3 )
{
a4 = JS_CallConstructor2(a1, proxy_method->m128_u64[0], -1, a4, a5, a6, a15);
v33 = a4 & 0xFFFFFFFF00000000LL;
}
else
{
v69 = v71;
array = js_create_array(a1, a6, a15);
v52 = v51;
v53 = v70;
v72 = array;
if ( (_DWORD)v51 == 6 )
{
LODWORD(a4) = 0;
v33 = 0LL;
v54 = v69;
}
else
{
v55 = *v31;
v73 = *v31;
v74 = array;
v75 = v51;
v76 = a4;
v77 = a5;
v68 = v70;
v56 = JS_Call(a1, v70, v69, v31[1].m128_u64[0], v31[1].m128_u64[1], 3, (long long)&v73);
LODWORD(a4) = v56;
v33 = v56 & 0xFFFFFFFF00000000LL;
if ( (_DWORD)v57 != -1 && (_DWORD)v57 != 6 )
{
v58 = v56;
JS_FreeValue(a1, v56, v57);
JS_ThrowTypeErrorNotAnObject(a1, v55, a8, a9, a10, v63, v64, a13, a14, v58, v59, v60, v61, v62, v66);
LODWORD(a4) = 0;
v33 = 0LL;
}
v54 = v69;
v53 = v68;
}
JS_FreeValue(a1, v53, v54);
JS_FreeValue(a1, v72, v52);
}
goto LABEL_13;
}
LODWORD(a4) = 0;
JS_ThrowTypeError(a1, (long long)"not a constructor", v32, v26, v27, v28, a7, a8, a9, a10, v29, v30, a13, a14, v65);
}
else
{
LODWORD(a4) = 0;
}
v33 = 0LL;
LABEL_13:
v23 = v33 | a4;
v24 = v33 & 0xFFFFFFFF00000000LL;
return v24 | v23;
}
v19 = get_proxy_method(a1, &v70, a2, a3, 91LL);
if ( !v19 )
{
v23 = 0;
LABEL_15:
v24 = 0LL;
return v24 | v23;
}
v20 = v19;
if ( !*(_BYTE *)(v19 + 32) )
{
JS_FreeValue(a1, v70, v71);
v23 = 0;
JS_ThrowTypeError(a1, (long long)"not a function", v34, v35, v36, v37, a7, a8, a9, a10, v38, v39, a13, a14, v65);
goto LABEL_15;
}
v21 = v71;
if ( (_DWORD)v71 == 3 )
{
v22 = JS_Call(a1, *(_QWORD *)v19, *(_QWORD *)(v19 + 8), a4, a5, a6, a15);
v23 = v22;
v24 = v22 & 0xFFFFFFFF00000000LL;
}
else
{
v40 = js_create_array(a1, a6, a15);
v42 = v41;
v43 = v70;
if ( (_DWORD)v41 == 6 )
{
v23 = 0;
v44 = v21;
v24 = 0LL;
v45 = v40;
}
else
{
v73 = *(__m128 *)v20;
v74 = a4;
v75 = a5;
v76 = v40;
v77 = v41;
v46 = *(_QWORD *)(v20 + 16);
v47 = *(_QWORD *)(v20 + 24);
v45 = v40;
v48 = JS_Call(a1, v70, v21, v46, v47, 3, (long long)&v73);
v23 = v48;
v44 = v21;
v24 = v48 & 0xFFFFFFFF00000000LL;
}
JS_FreeValue(a1, v43, v44);
JS_FreeValue(a1, v45, v42);
}
return v24 | v23;
}
| js_proxy_call:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV EBP,R9D
MOV R12,R8
MOV R15,RCX
MOV RCX,RDX
MOV RDX,RSI
MOV RBX,RDI
TEST byte ptr [RSP + 0xa8],0x1
JNZ 0x0012efb9
LEA RSI,[RSP + 0x18]
PUSH 0x5b
POP R8
MOV RDI,RBX
CALL 0x00135d01
PUSH 0x6
POP R14
TEST RAX,RAX
JZ 0x0012f012
MOV R13,RAX
CMP byte ptr [RAX + 0x20],0x0
JZ 0x0012f028
MOV R14,qword ptr [RSP + 0x20]
CMP R14D,0x3
JNZ 0x0012f056
MOV RSI,qword ptr [R13]
MOV RDX,qword ptr [R13 + 0x8]
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP],RAX
MOV RDI,RBX
MOV RCX,R15
MOV R8,R12
MOV R9D,EBP
CALL 0x00121eb6
MOV R15,RAX
MOV R14,RDX
MOV R12,-0x100000000
AND R12,RAX
JMP 0x0012f138
LAB_0012efb9:
MOV qword ptr [RSP + 0x8],R12
MOV R12,-0x100000000
LEA RSI,[RSP + 0x18]
PUSH 0x5f
POP R8
MOV RDI,RBX
CALL 0x00135d01
PUSH 0x6
POP R14
TEST RAX,RAX
JZ 0x0012f017
MOV R13,RAX
MOV RDX,qword ptr [RAX + 0x8]
CMP EDX,-0x1
JNZ 0x0012effc
MOV RSI,qword ptr [R13]
TEST byte ptr [RSI + 0x5],0x10
JNZ 0x0012f08a
LAB_0012effc:
LEA RSI,[0x186630]
XOR R15D,R15D
MOV RDI,RBX
XOR EAX,EAX
CALL 0x0011c64d
JMP 0x0012f01a
LAB_0012f012:
XOR R15D,R15D
JMP 0x0012f04e
LAB_0012f017:
XOR R15D,R15D
LAB_0012f01a:
XOR R13D,R13D
LAB_0012f01d:
OR R15,R13
AND R12,R13
JMP 0x0012f138
LAB_0012f028:
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x20]
MOV RDI,RBX
CALL 0x0011801e
LEA RSI,[0x18720a]
XOR R15D,R15D
MOV RDI,RBX
XOR EAX,EAX
CALL 0x0011c64d
LAB_0012f04e:
XOR R12D,R12D
JMP 0x0012f138
LAB_0012f056:
MOV RDI,RBX
MOV ESI,EBP
MOV RDX,qword ptr [RSP + 0xa0]
CALL 0x0013a2bd
MOV RBP,RDX
MOV RSI,qword ptr [RSP + 0x18]
CMP EBP,0x6
JNZ 0x0012f0c8
XOR R15D,R15D
MOV RCX,R14
PUSH 0x6
POP R14
XOR R12D,R12D
MOV R13,RAX
JMP 0x0012f11f
LAB_0012f08a:
MOV RAX,qword ptr [RSP + 0x20]
CMP EAX,0x3
JNZ 0x0012f150
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP],RAX
MOV RDI,RBX
MOV RCX,R15
MOV R8,qword ptr [RSP + 0x8]
MOV R9D,EBP
CALL 0x00128200
MOV R15,RAX
MOV R14,RDX
MOV R13,RAX
AND R13,R12
JMP 0x0012f01d
LAB_0012f0c8:
MOVUPS XMM0,xmmword ptr [R13]
LEA RDX,[RSP + 0x30]
MOVAPS xmmword ptr [RDX],XMM0
MOV qword ptr [RDX + 0x10],R15
MOV qword ptr [RDX + 0x18],R12
MOV qword ptr [RDX + 0x20],RAX
MOV qword ptr [RDX + 0x28],RBP
MOV RCX,qword ptr [R13 + 0x10]
MOV R8,qword ptr [R13 + 0x18]
MOV qword ptr [RSP],RDX
PUSH 0x3
POP R9
MOV RDI,RBX
MOV R13,RAX
MOV R15,RSI
MOV RDX,R14
CALL 0x00121eb6
MOV RSI,R15
MOV R15,RAX
MOV RCX,R14
MOV R14,RDX
MOV R12,-0x100000000
AND R12,RAX
LAB_0012f11f:
MOV RDI,RBX
MOV RDX,RCX
CALL 0x0011801e
MOV RDI,RBX
MOV RSI,R13
MOV RDX,RBP
CALL 0x0011801e
LAB_0012f138:
MOV EAX,R15D
OR RAX,R12
MOV RDX,R14
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012f150:
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,RBX
MOV ESI,EBP
MOV RDX,qword ptr [RSP + 0xa0]
CALL 0x0013a2bd
MOV RBP,RDX
PUSH 0x6
POP R14
MOV RSI,qword ptr [RSP + 0x18]
CMP EBP,0x6
MOV qword ptr [RSP + 0x28],RAX
JNZ 0x0012f18a
XOR R15D,R15D
XOR R13D,R13D
MOV RDX,qword ptr [RSP + 0x10]
JMP 0x0012f209
LAB_0012f18a:
MOVUPS XMM0,xmmword ptr [R13]
LEA RDX,[RSP + 0x30]
MOVAPS xmmword ptr [RDX],XMM0
MOV qword ptr [RDX + 0x10],RAX
MOV qword ptr [RDX + 0x18],RBP
MOV qword ptr [RDX + 0x20],R15
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RDX + 0x28],RCX
MOV RCX,qword ptr [R13 + 0x10]
MOV R8,qword ptr [R13 + 0x18]
MOV qword ptr [RSP],RDX
PUSH 0x3
POP R9
MOV RDI,RBX
MOV qword ptr [RSP + 0x8],RSI
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x00121eb6
MOV R15,RAX
MOV R13,RAX
AND R13,R12
CMP EDX,-0x1
JZ 0x0012f1e1
CMP EDX,0x6
JNZ 0x0012f1e6
LAB_0012f1e1:
MOV R14,RDX
JMP 0x0012f1ff
LAB_0012f1e6:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011801e
MOV RDI,RBX
CALL 0x0011d5e1
XOR R15D,R15D
XOR R13D,R13D
LAB_0012f1ff:
MOV RDX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x8]
LAB_0012f209:
MOV RDI,RBX
CALL 0x0011801e
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,RBP
CALL 0x0011801e
JMP 0x0012f01d
|
int1 [16]
js_proxy_call(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int4 param_6,int8 param_7,byte param_8)
{
int8 *puVar1;
long *plVar2;
ulong uVar3;
int1 auVar4 [16];
int1 auVar5 [16];
int8 local_80;
int8 local_78;
int8 local_70;
int4 local_68;
int4 uStack_64;
int4 uStack_60;
int4 uStack_5c;
int8 local_58;
int8 local_50;
int1 local_48 [16];
if ((param_8 & 1) == 0) {
puVar1 = (int8 *)get_proxy_method(param_1,&local_80,param_2,param_3,0x5b);
if (puVar1 != (int8 *)0x0) {
if (*(char *)(puVar1 + 4) != '\0') {
if ((int)local_78 == 3) {
auVar4 = JS_Call(param_1,*puVar1,puVar1[1],param_4,param_5,param_6,param_7);
uVar3 = auVar4._0_8_ & 0xffffffff00000000;
}
else {
auVar5 = js_create_array(param_1,param_6,param_7);
if (auVar5._8_4_ == 6) {
auVar4 = ZEXT816(6) << 0x40;
uVar3 = 0;
}
else {
local_68 = *(int4 *)puVar1;
uStack_64 = *(int4 *)((long)puVar1 + 4);
uStack_60 = *(int4 *)(puVar1 + 1);
uStack_5c = *(int4 *)((long)puVar1 + 0xc);
local_58 = param_4;
local_50 = param_5;
local_48 = auVar5;
auVar4 = JS_Call(param_1,local_80,local_78,puVar1[2],puVar1[3],3,&local_68);
uVar3 = auVar4._0_8_ & 0xffffffff00000000;
}
JS_FreeValue(param_1,local_80,local_78);
JS_FreeValue(param_1,auVar5._0_8_,auVar5._8_8_);
}
goto LAB_0012f138;
}
JS_FreeValue(param_1,local_80,local_78);
JS_ThrowTypeError(param_1,"not a function");
}
auVar4 = ZEXT816(6) << 0x40;
uVar3 = 0;
}
else {
plVar2 = (long *)get_proxy_method(param_1,&local_80,param_2,param_3,0x5f);
if (plVar2 != (long *)0x0) {
if (((int)plVar2[1] == -1) && ((*(byte *)(*plVar2 + 5) & 0x10) != 0)) {
if ((int)local_78 == 3) {
auVar4 = JS_CallConstructor2(param_1,*plVar2,plVar2[1],param_4,param_5,param_6,param_7);
uVar3 = auVar4._0_8_ & 0xffffffff00000000;
}
else {
auVar5 = js_create_array(param_1,param_6,param_7);
local_70 = auVar5._0_8_;
if (auVar5._8_4_ == 6) {
auVar4 = ZEXT816(6) << 0x40;
uVar3 = 0;
}
else {
local_68 = (int4)*plVar2;
uStack_64 = *(int4 *)((long)plVar2 + 4);
uStack_60 = (int4)plVar2[1];
uStack_5c = *(int4 *)((long)plVar2 + 0xc);
local_58 = local_70;
local_50 = auVar5._8_8_;
local_48._0_8_ = param_4;
local_48._8_8_ = param_5;
auVar4 = JS_Call(param_1,local_80,local_78,plVar2[2],plVar2[3],3,&local_68);
uVar3 = auVar4._0_8_ & 0xffffffff00000000;
if ((auVar4._8_4_ != -1) && (auVar4._8_4_ != 6)) {
JS_FreeValue(param_1,auVar4._0_8_);
JS_ThrowTypeErrorNotAnObject(param_1);
auVar4 = ZEXT816(6) << 0x40;
uVar3 = 0;
}
}
JS_FreeValue(param_1,local_80,local_78);
JS_FreeValue(param_1,local_70,auVar5._8_8_);
}
goto LAB_0012f138;
}
JS_ThrowTypeError(param_1,"not a constructor");
}
auVar4 = ZEXT816(6) << 0x40;
uVar3 = 0;
}
LAB_0012f138:
auVar5._0_8_ = auVar4._0_8_ & 0xffffffff | uVar3;
auVar5._8_8_ = auVar4._8_8_;
return auVar5;
}
| |
55,047 | my_coll_lexem_print_error | eloqsql/strings/ctype-uca.c | static void my_coll_lexem_print_error(MY_COLL_LEXEM *lexem,
char *errstr, size_t errsize,
const char *txt)
{
char tail[30];
size_t len= lexem->end - lexem->prev;
strmake (tail, lexem->prev, (size_t) MY_MIN(len, sizeof(tail)-1));
errstr[errsize-1]= '\0';
my_snprintf(errstr, errsize - 1,
"%s at '%s'", txt[0] ? txt : "Syntax error", tail);
} | O0 | c | my_coll_lexem_print_error:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x38(%rbp)
movq %rsi, -0x40(%rbp)
movq %rdx, -0x48(%rbp)
movq %rcx, -0x50(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x38(%rbp), %rcx
movq 0x18(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x58(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x60(%rbp)
cmpq $0x1d, -0x58(%rbp)
jae 0x50bc4
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
jmp 0x50bcf
movl $0x1d, %eax
movq %rax, -0x70(%rbp)
jmp 0x50bcf
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rdx
callq 0x793f0
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
subq $0x1, %rcx
movb $0x0, (%rax,%rcx)
movq -0x40(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x48(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x78(%rbp)
movq -0x50(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x50c1d
movq -0x50(%rbp), %rax
movq %rax, -0x88(%rbp)
jmp 0x50c2d
leaq 0x2d143(%rip), %rax # 0x7dd67
movq %rax, -0x88(%rbp)
jmp 0x50c2d
movq -0x78(%rbp), %rsi
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rcx
leaq 0x2d119(%rip), %rdx # 0x7dd5c
xorl %eax, %eax
leaq -0x30(%rbp), %r8
callq 0x788c0
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x50c69
addq $0x90, %rsp
popq %rbp
retq
callq 0x242f0
nop
| my_coll_lexem_print_error:
push rbp
mov rbp, rsp
sub rsp, 90h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_38], rdi
mov [rbp+var_40], rsi
mov [rbp+var_48], rdx
mov [rbp+var_50], rcx
mov rax, [rbp+var_38]
mov rax, [rax+10h]
mov rcx, [rbp+var_38]
mov rcx, [rcx+18h]
sub rax, rcx
mov [rbp+var_58], rax
lea rax, [rbp+var_30]
mov [rbp+var_68], rax
mov rax, [rbp+var_38]
mov rax, [rax+18h]
mov [rbp+var_60], rax
cmp [rbp+var_58], 1Dh
jnb short loc_50BC4
mov rax, [rbp+var_58]
mov [rbp+var_70], rax
jmp short loc_50BCF
loc_50BC4:
mov eax, 1Dh
mov [rbp+var_70], rax
jmp short $+2
loc_50BCF:
mov rsi, [rbp+var_60]
mov rdi, [rbp+var_68]
mov rdx, [rbp+var_70]
call strmake
mov rax, [rbp+var_40]
mov rcx, [rbp+var_48]
sub rcx, 1
mov byte ptr [rax+rcx], 0
mov rax, [rbp+var_40]
mov [rbp+var_80], rax
mov rax, [rbp+var_48]
sub rax, 1
mov [rbp+var_78], rax
mov rax, [rbp+var_50]
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_50C1D
mov rax, [rbp+var_50]
mov [rbp+var_88], rax
jmp short loc_50C2D
loc_50C1D:
lea rax, aSyntaxError; "Syntax error"
mov [rbp+var_88], rax
jmp short $+2
loc_50C2D:
mov rsi, [rbp+var_78]
mov rdi, [rbp+var_80]
mov rcx, [rbp+var_88]
lea rdx, aSAtS; "%s at '%s'"
xor eax, eax
lea r8, [rbp+var_30]
call my_snprintf
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_50C69
add rsp, 90h
pop rbp
retn
loc_50C69:
call ___stack_chk_fail
| unsigned long long my_coll_lexem_print_error(long long a1, long long a2, long long a3, _BYTE *a4)
{
int v4; // r9d
int v6; // [rsp+18h] [rbp-78h]
long long v7; // [rsp+30h] [rbp-60h]
unsigned long long v8; // [rsp+38h] [rbp-58h]
_BYTE v11[40]; // [rsp+60h] [rbp-30h] BYREF
unsigned long long v12; // [rsp+88h] [rbp-8h]
v12 = __readfsqword(0x28u);
v8 = *(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 24);
v7 = *(_QWORD *)(a1 + 24);
if ( v8 >= 0x1D )
strmake(v11, v7, 29LL);
else
strmake(v11, v7, v8);
*(_BYTE *)(a2 + a3 - 1) = 0;
v6 = a3 - 1;
if ( *a4 )
my_snprintf(a2, v6, (unsigned int)"%s at '%s'", (_DWORD)a4, (unsigned int)v11, v4);
else
my_snprintf(a2, v6, (unsigned int)"%s at '%s'", (unsigned int)"Syntax error", (unsigned int)v11, v4);
return __readfsqword(0x28u);
}
| my_coll_lexem_print_error:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x38],RDI
MOV qword ptr [RBP + -0x40],RSI
MOV qword ptr [RBP + -0x48],RDX
MOV qword ptr [RBP + -0x50],RCX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RCX + 0x18]
SUB RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x60],RAX
CMP qword ptr [RBP + -0x58],0x1d
JNC 0x00150bc4
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x70],RAX
JMP 0x00150bcf
LAB_00150bc4:
MOV EAX,0x1d
MOV qword ptr [RBP + -0x70],RAX
JMP 0x00150bcf
LAB_00150bcf:
MOV RSI,qword ptr [RBP + -0x60]
MOV RDI,qword ptr [RBP + -0x68]
MOV RDX,qword ptr [RBP + -0x70]
CALL 0x001793f0
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x48]
SUB RCX,0x1
MOV byte ptr [RAX + RCX*0x1],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x48]
SUB RAX,0x1
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x00150c1d
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x88],RAX
JMP 0x00150c2d
LAB_00150c1d:
LEA RAX,[0x17dd67]
MOV qword ptr [RBP + -0x88],RAX
JMP 0x00150c2d
LAB_00150c2d:
MOV RSI,qword ptr [RBP + -0x78]
MOV RDI,qword ptr [RBP + -0x80]
MOV RCX,qword ptr [RBP + -0x88]
LEA RDX,[0x17dd5c]
XOR EAX,EAX
LEA R8,[RBP + -0x30]
CALL 0x001788c0
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00150c69
ADD RSP,0x90
POP RBP
RET
LAB_00150c69:
CALL 0x001242f0
|
void my_coll_lexem_print_error(long param_1,long param_2,long param_3,char *param_4)
{
long in_FS_OFFSET;
char *local_90;
ulong local_78;
int1 local_38 [40];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_78 = *(long *)(param_1 + 0x10) - *(long *)(param_1 + 0x18);
if (0x1c < local_78) {
local_78 = 0x1d;
}
strmake(local_38,*(int8 *)(param_1 + 0x18),local_78);
*(int1 *)(param_2 + param_3 + -1) = 0;
local_90 = param_4;
if (*param_4 == '\0') {
local_90 = "Syntax error";
}
my_snprintf(param_2,param_3 + -1,"%s at \'%s\'",local_90,local_38);
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return;
}
| |
55,048 | vec_czero | corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/vect.h | static inline void vec_czero(void *ret, size_t num, bool_t cbit)
{
limb_t *rp = (limb_t *)ret;
size_t i;
limb_t mask;
launder(cbit);
mask = (limb_t)0 - (cbit^1);
num /= sizeof(limb_t);
for (i = 0; i < num; i++)
rp[i] &= mask;
} | O0 | c | vec_czero:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rcx
xorq $0x1, %rcx
xorl %eax, %eax
subq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
shrq $0x3, %rax
movq %rax, -0x10(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0xb9671
movq -0x30(%rbp), %rdx
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rcx
andq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0xb9645
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| vec_czero:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rcx, [rbp+var_18]
xor rcx, 1
xor eax, eax
sub rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
shr rax, 3
mov [rbp+var_10], rax
mov [rbp+var_28], 0
loc_B9645:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_10]
jnb short loc_B9671
mov rdx, [rbp+var_30]
mov rax, [rbp+var_20]
mov rcx, [rbp+var_28]
and rdx, [rax+rcx*8]
mov [rax+rcx*8], rdx
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_B9645
loc_B9671:
pop rbp
retn
| unsigned long long vec_czero(long long a1, unsigned long long a2, long long a3)
{
unsigned long long result; // rax
unsigned long long i; // [rsp+8h] [rbp-28h]
for ( i = 0LL; ; ++i )
{
result = i;
if ( i >= a2 >> 3 )
break;
*(_QWORD *)(a1 + 8 * i) &= -(a3 ^ 1);
}
return result;
}
| vec_czero:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x18]
XOR RCX,0x1
XOR EAX,EAX
SUB RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
SHR RAX,0x3
MOV qword ptr [RBP + -0x10],RAX
MOV qword ptr [RBP + -0x28],0x0
LAB_001b9645:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x001b9671
MOV RDX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
AND RDX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001b9645
LAB_001b9671:
POP RBP
RET
|
void vec_czero(long param_1,ulong param_2,ulong param_3)
{
int8 local_30;
for (local_30 = 0; local_30 < param_2 >> 3; local_30 = local_30 + 1) {
*(ulong *)(param_1 + local_30 * 8) = -(param_3 ^ 1) & *(ulong *)(param_1 + local_30 * 8);
}
return;
}
| |
55,049 | my_instr_simple | eloqsql/strings/ctype-simple.c | uint my_instr_simple(CHARSET_INFO *cs,
const char *b, size_t b_length,
const char *s, size_t s_length,
my_match_t *match, uint nmatch)
{
register const uchar *str, *search, *end, *search_end;
if (s_length <= b_length)
{
if (!s_length)
{
if (nmatch)
{
match->beg= 0;
match->end= 0;
match->mb_len= 0;
}
return 1; /* Empty string is always found */
}
str= (const uchar*) b;
search= (const uchar*) s;
end= (const uchar*) b+b_length-s_length+1;
search_end= (const uchar*) s + s_length;
skip:
while (str != end)
{
if (cs->sort_order[*str++] == cs->sort_order[*search])
{
register const uchar *i,*j;
i= str;
j= search+1;
while (j != search_end)
if (cs->sort_order[*i++] != cs->sort_order[*j++])
goto skip;
if (nmatch > 0)
{
match[0].beg= 0;
match[0].end= (uint) (str- (const uchar*)b-1);
match[0].mb_len= match[0].end;
if (nmatch > 1)
{
match[1].beg= match[0].end;
match[1].end= (uint)(match[0].end+s_length);
match[1].mb_len= match[1].end-match[1].beg;
}
}
return 2;
}
}
}
return 0;
} | O0 | c | my_instr_simple:
pushq %rbp
movq %rsp, %rbp
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x20(%rbp), %rax
ja 0x4bc0e
cmpq $0x0, -0x30(%rbp)
jne 0x4baa6
cmpl $0x0, 0x10(%rbp)
je 0x4ba9a
movq -0x38(%rbp), %rax
movl $0x0, (%rax)
movq -0x38(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x38(%rbp), %rax
movl $0x0, 0x8(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4bc15
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
addq -0x20(%rbp), %rax
xorl %ecx, %ecx
subq -0x30(%rbp), %rcx
addq %rcx, %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0x4badd
movq -0x40(%rbp), %rax
cmpq -0x50(%rbp), %rax
je 0x4bc0c
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq -0x40(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x40(%rbp)
movzbl (%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x10(%rbp), %rcx
movq 0x58(%rcx), %rcx
movq -0x48(%rbp), %rdx
movzbl (%rdx), %edx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0x4bc07
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
cmpq -0x58(%rbp), %rax
je 0x4bb89
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq -0x60(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x60(%rbp)
movzbl (%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x10(%rbp), %rcx
movq 0x58(%rcx), %rcx
movq -0x68(%rbp), %rdx
movq %rdx, %rsi
addq $0x1, %rsi
movq %rsi, -0x68(%rbp)
movzbl (%rdx), %edx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0x4bb87
jmp 0x4badb
jmp 0x4bb38
cmpl $0x0, 0x10(%rbp)
jbe 0x4bbfe
movq -0x38(%rbp), %rax
movl $0x0, (%rax)
movq -0x40(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x38(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x8(%rax)
cmpl $0x1, 0x10(%rbp)
jbe 0x4bbfc
movq -0x38(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
addq -0x30(%rbp), %rax
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x38(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x38(%rbp), %rax
subl 0xc(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x14(%rax)
jmp 0x4bbfe
movl $0x2, -0x4(%rbp)
jmp 0x4bc15
jmp 0x4badd
jmp 0x4bc0e
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw (%rax,%rax)
| my_instr_simple:
push rbp
mov rbp, rsp
mov eax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_30]
cmp rax, [rbp+var_20]
ja loc_4BC0E
cmp [rbp+var_30], 0
jnz short loc_4BAA6
cmp [rbp+arg_0], 0
jz short loc_4BA9A
mov rax, [rbp+var_38]
mov dword ptr [rax], 0
mov rax, [rbp+var_38]
mov dword ptr [rax+4], 0
mov rax, [rbp+var_38]
mov dword ptr [rax+8], 0
loc_4BA9A:
mov [rbp+var_4], 1
jmp loc_4BC15
loc_4BAA6:
mov rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_28]
mov [rbp+var_48], rax
mov rax, [rbp+var_18]
add rax, [rbp+var_20]
xor ecx, ecx
sub rcx, [rbp+var_30]
add rax, rcx
add rax, 1
mov [rbp+var_50], rax
mov rax, [rbp+var_28]
add rax, [rbp+var_30]
mov [rbp+var_58], rax
loc_4BADB:
jmp short $+2
loc_4BADD:
mov rax, [rbp+var_40]
cmp rax, [rbp+var_50]
jz loc_4BC0C
mov rax, [rbp+var_10]
mov rax, [rax+58h]
mov rcx, [rbp+var_40]
mov rdx, rcx
add rdx, 1
mov [rbp+var_40], rdx
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_10]
mov rcx, [rcx+58h]
mov rdx, [rbp+var_48]
movzx edx, byte ptr [rdx]
movzx ecx, byte ptr [rcx+rdx]
cmp eax, ecx
jnz loc_4BC07
mov rax, [rbp+var_40]
mov [rbp+var_60], rax
mov rax, [rbp+var_48]
add rax, 1
mov [rbp+var_68], rax
loc_4BB38:
mov rax, [rbp+var_68]
cmp rax, [rbp+var_58]
jz short loc_4BB89
mov rax, [rbp+var_10]
mov rax, [rax+58h]
mov rcx, [rbp+var_60]
mov rdx, rcx
add rdx, 1
mov [rbp+var_60], rdx
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_10]
mov rcx, [rcx+58h]
mov rdx, [rbp+var_68]
mov rsi, rdx
add rsi, 1
mov [rbp+var_68], rsi
movzx edx, byte ptr [rdx]
movzx ecx, byte ptr [rcx+rdx]
cmp eax, ecx
jz short loc_4BB87
jmp loc_4BADB
loc_4BB87:
jmp short loc_4BB38
loc_4BB89:
cmp [rbp+arg_0], 0
jbe short loc_4BBFE
mov rax, [rbp+var_38]
mov dword ptr [rax], 0
mov rax, [rbp+var_40]
mov rcx, [rbp+var_18]
sub rax, rcx
sub rax, 1
mov ecx, eax
mov rax, [rbp+var_38]
mov [rax+4], ecx
mov rax, [rbp+var_38]
mov ecx, [rax+4]
mov rax, [rbp+var_38]
mov [rax+8], ecx
cmp [rbp+arg_0], 1
jbe short loc_4BBFC
mov rax, [rbp+var_38]
mov ecx, [rax+4]
mov rax, [rbp+var_38]
mov [rax+0Ch], ecx
mov rax, [rbp+var_38]
mov eax, [rax+4]
add rax, [rbp+var_30]
mov ecx, eax
mov rax, [rbp+var_38]
mov [rax+10h], ecx
mov rax, [rbp+var_38]
mov ecx, [rax+10h]
mov rax, [rbp+var_38]
sub ecx, [rax+0Ch]
mov rax, [rbp+var_38]
mov [rax+14h], ecx
loc_4BBFC:
jmp short $+2
loc_4BBFE:
mov [rbp+var_4], 2
jmp short loc_4BC15
loc_4BC07:
jmp loc_4BADD
loc_4BC0C:
jmp short $+2
loc_4BC0E:
mov [rbp+var_4], 0
loc_4BC15:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_instr_simple(
long long a1,
unsigned __int8 *a2,
unsigned long long a3,
unsigned __int8 *a4,
unsigned long long a5,
_DWORD *a6,
unsigned int a7)
{
unsigned __int8 *v7; // rcx
unsigned __int8 *v8; // rcx
unsigned __int8 *v9; // rdx
unsigned __int8 *v11; // [rsp+0h] [rbp-68h]
unsigned __int8 *v12; // [rsp+8h] [rbp-60h]
unsigned __int8 *v13; // [rsp+10h] [rbp-58h]
long long v14; // [rsp+18h] [rbp-50h]
unsigned __int8 *v15; // [rsp+28h] [rbp-40h]
if ( a5 > a3 )
return 0;
if ( a5 )
{
v15 = a2;
v14 = (long long)&a2[a3 - a5 + 1];
v13 = &a4[a5];
LABEL_7:
while ( v15 != (unsigned __int8 *)v14 )
{
v7 = v15++;
if ( *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *v7) == *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *a4) )
{
v12 = v15;
v11 = a4 + 1;
while ( v11 != v13 )
{
v8 = v12++;
v9 = v11++;
if ( *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *v8) != *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *v9) )
goto LABEL_7;
}
if ( a7 )
{
*a6 = 0;
a6[1] = (_DWORD)v15 - (_DWORD)a2 - 1;
a6[2] = a6[1];
if ( a7 > 1 )
{
a6[3] = a6[1];
a6[4] = a5 + a6[1];
a6[5] = a6[4] - a6[3];
}
}
return 2;
}
}
return 0;
}
if ( a7 )
{
*a6 = 0;
a6[1] = 0;
a6[2] = 0;
}
return 1;
}
| my_instr_simple:
PUSH RBP
MOV RBP,RSP
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x20]
JA 0x0014bc0e
CMP qword ptr [RBP + -0x30],0x0
JNZ 0x0014baa6
CMP dword ptr [RBP + 0x10],0x0
JZ 0x0014ba9a
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x4],0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x8],0x0
LAB_0014ba9a:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0014bc15
LAB_0014baa6:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RBP + -0x20]
XOR ECX,ECX
SUB RCX,qword ptr [RBP + -0x30]
ADD RAX,RCX
ADD RAX,0x1
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x58],RAX
LAB_0014badb:
JMP 0x0014badd
LAB_0014badd:
MOV RAX,qword ptr [RBP + -0x40]
CMP RAX,qword ptr [RBP + -0x50]
JZ 0x0014bc0c
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x58]
MOV RCX,qword ptr [RBP + -0x40]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x40],RDX
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x58]
MOV RDX,qword ptr [RBP + -0x48]
MOVZX EDX,byte ptr [RDX]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
CMP EAX,ECX
JNZ 0x0014bc07
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,0x1
MOV qword ptr [RBP + -0x68],RAX
LAB_0014bb38:
MOV RAX,qword ptr [RBP + -0x68]
CMP RAX,qword ptr [RBP + -0x58]
JZ 0x0014bb89
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x58]
MOV RCX,qword ptr [RBP + -0x60]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x60],RDX
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x58]
MOV RDX,qword ptr [RBP + -0x68]
MOV RSI,RDX
ADD RSI,0x1
MOV qword ptr [RBP + -0x68],RSI
MOVZX EDX,byte ptr [RDX]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
CMP EAX,ECX
JZ 0x0014bb87
JMP 0x0014badb
LAB_0014bb87:
JMP 0x0014bb38
LAB_0014bb89:
CMP dword ptr [RBP + 0x10],0x0
JBE 0x0014bbfe
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
SUB RAX,0x1
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x4],ECX
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX + 0x4]
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x8],ECX
CMP dword ptr [RBP + 0x10],0x1
JBE 0x0014bbfc
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX + 0x4]
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0xc],ECX
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX + 0x4]
ADD RAX,qword ptr [RBP + -0x30]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x10],ECX
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x38]
SUB ECX,dword ptr [RAX + 0xc]
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x14],ECX
LAB_0014bbfc:
JMP 0x0014bbfe
LAB_0014bbfe:
MOV dword ptr [RBP + -0x4],0x2
JMP 0x0014bc15
LAB_0014bc07:
JMP 0x0014badd
LAB_0014bc0c:
JMP 0x0014bc0e
LAB_0014bc0e:
MOV dword ptr [RBP + -0x4],0x0
LAB_0014bc15:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4
my_instr_simple(long param_1,byte *param_2,ulong param_3,byte *param_4,ulong param_5,
int4 *param_6,uint param_7)
{
byte bVar1;
byte bVar2;
byte *pbVar3;
byte *local_70;
byte *local_68;
byte *local_48;
if (param_5 <= param_3) {
if (param_5 == 0) {
if (param_7 != 0) {
*param_6 = 0;
param_6[1] = 0;
param_6[2] = 0;
}
return 1;
}
local_48 = param_2;
while (local_48 != param_2 + (param_3 - param_5) + 1) {
pbVar3 = local_48 + 1;
bVar1 = *local_48;
local_48 = pbVar3;
if (*(char *)(*(long *)(param_1 + 0x58) + (ulong)bVar1) ==
*(char *)(*(long *)(param_1 + 0x58) + (ulong)*param_4)) {
local_70 = param_4 + 1;
local_68 = pbVar3;
do {
if (local_70 == param_4 + param_5) {
if (param_7 != 0) {
*param_6 = 0;
param_6[1] = ((int)pbVar3 - (int)param_2) + -1;
param_6[2] = param_6[1];
if (1 < param_7) {
param_6[3] = param_6[1];
param_6[4] = param_6[1] + (int)param_5;
param_6[5] = param_6[4] - param_6[3];
}
}
return 2;
}
bVar1 = *local_68;
bVar2 = *local_70;
local_70 = local_70 + 1;
local_68 = local_68 + 1;
} while (*(char *)(*(long *)(param_1 + 0x58) + (ulong)bVar1) ==
*(char *)(*(long *)(param_1 + 0x58) + (ulong)bVar2));
}
}
}
return 0;
}
| |
55,050 | common_sampler_types_from_names(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, bool) | monkey531[P]llama/common/sampling.cpp | std::vector<common_sampler_type> common_sampler_types_from_names(const std::vector<std::string> & names, bool allow_alt_names) {
std::unordered_map<std::string, common_sampler_type> sampler_canonical_name_map {
{ "dry", COMMON_SAMPLER_TYPE_DRY },
{ "top_k", COMMON_SAMPLER_TYPE_TOP_K },
{ "top_p", COMMON_SAMPLER_TYPE_TOP_P },
{ "typ_p", COMMON_SAMPLER_TYPE_TYPICAL_P },
{ "min_p", COMMON_SAMPLER_TYPE_MIN_P },
{ "temperature", COMMON_SAMPLER_TYPE_TEMPERATURE },
{ "xtc", COMMON_SAMPLER_TYPE_XTC },
{ "infill", COMMON_SAMPLER_TYPE_INFILL },
{ "penalties", COMMON_SAMPLER_TYPE_PENALTIES },
};
// since samplers names are written multiple ways
// make it ready for both system names and input names
std::unordered_map<std::string, common_sampler_type> sampler_alt_name_map {
{ "top-k", COMMON_SAMPLER_TYPE_TOP_K },
{ "top-p", COMMON_SAMPLER_TYPE_TOP_P },
{ "nucleus", COMMON_SAMPLER_TYPE_TOP_P },
{ "typical-p", COMMON_SAMPLER_TYPE_TYPICAL_P },
{ "typical", COMMON_SAMPLER_TYPE_TYPICAL_P },
{ "typ-p", COMMON_SAMPLER_TYPE_TYPICAL_P },
{ "typ", COMMON_SAMPLER_TYPE_TYPICAL_P },
{ "min-p", COMMON_SAMPLER_TYPE_MIN_P },
{ "temp", COMMON_SAMPLER_TYPE_TEMPERATURE },
};
std::vector<common_sampler_type> samplers;
samplers.reserve(names.size());
for (const auto & name : names) {
auto sampler = sampler_canonical_name_map.find(name);
if (sampler != sampler_canonical_name_map.end()) {
samplers.push_back(sampler->second);
} else {
if (allow_alt_names) {
sampler = sampler_alt_name_map.find(name);
if (sampler != sampler_alt_name_map.end()) {
samplers.push_back(sampler->second);
}
}
}
}
return samplers;
} | O2 | cpp | common_sampler_types_from_names(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp # imm = 0x208
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x30(%rsp), %rdx
movl $0x1, (%rdx)
leaq 0x20fbe(%rip), %rsi # 0xbb47f
leaq 0x68(%rsp), %r15
movq %r15, %rdi
callq 0x9ada4
leaq 0x90(%rsp), %r12
leaq 0x2c(%rsp), %rdx
movl $0x2, (%rdx)
leaq 0x20f9b(%rip), %rsi # 0xbb483
movq %r12, %rdi
callq 0x9adc6
leaq 0xb8(%rsp), %r12
leaq 0x28(%rsp), %rdx
movl $0x3, (%rdx)
leaq 0x20f85(%rip), %rsi # 0xbb48f
movq %r12, %rdi
callq 0x9adc6
leaq 0xe0(%rsp), %r12
leaq 0x24(%rsp), %rdx
movl $0x6, (%rdx)
leaq 0x20f5d(%rip), %rsi # 0xbb489
movq %r12, %rdi
callq 0x9adc6
leaq 0x108(%rsp), %r12
leaq 0x20(%rsp), %rdx
movl $0x4, (%rdx)
leaq 0x20f47(%rip), %rsi # 0xbb495
movq %r12, %rdi
callq 0x9adc6
leaq 0x130(%rsp), %r12
leaq 0x1c(%rsp), %rdx
movl $0x7, (%rdx)
leaq 0x20f2b(%rip), %rsi # 0xbb49b
movq %r12, %rdi
callq 0x9ade8
leaq 0x158(%rsp), %r12
leaq 0x18(%rsp), %rdx
movl $0x8, (%rdx)
leaq 0x20f15(%rip), %rsi # 0xbb4a7
movq %r12, %rdi
callq 0x9ada4
leaq 0x180(%rsp), %r12
leaq 0x14(%rsp), %rdx
movl $0x9, (%rdx)
leaq 0x132e5(%rip), %rsi # 0xad899
movq %r12, %rdi
callq 0x9ae0a
leaq 0x1a8(%rsp), %r12
leaq 0x10(%rsp), %rdx
movl $0xa, (%rdx)
leaq 0x20ed5(%rip), %rsi # 0xbb4ab
movq %r12, %rdi
callq 0x9ae2c
leaq 0x1d0(%rsp), %rdx
leaq 0x9(%rsp), %rax
movq %rax, (%rsp)
leaq 0x1d0(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0xc(%rsp), %r8
leaq 0xa(%rsp), %r9
xorl %ecx, %ecx
callq 0x9b438
movl $0x140, %r15d # imm = 0x140
leaq (%rsp,%r15), %rdi
addq $0x68, %rdi
callq 0x251b8
addq $-0x28, %r15
cmpq $-0x28, %r15
jne 0x9a613
leaq 0x2c(%rsp), %rdx
movl $0x2, (%rdx)
leaq 0x13470(%rip), %rsi # 0xadaac
leaq 0x68(%rsp), %r15
movq %r15, %rdi
callq 0x9adc6
leaq 0x90(%rsp), %r12
leaq 0x28(%rsp), %rdx
movl $0x3, (%rdx)
leaq 0x1347c(%rip), %rsi # 0xadadf
movq %r12, %rdi
callq 0x9adc6
leaq 0xb8(%rsp), %r12
leaq 0x24(%rsp), %rdx
movl $0x3, (%rdx)
leaq 0x20e30(%rip), %rsi # 0xbb4b5
movq %r12, %rdi
callq 0x9ae4e
leaq 0xe0(%rsp), %r12
leaq 0x20(%rsp), %rdx
movl $0x6, (%rdx)
leaq 0x20e16(%rip), %rsi # 0xbb4bd
movq %r12, %rdi
callq 0x9ae2c
leaq 0x108(%rsp), %r12
leaq 0x1c(%rsp), %rdx
movl $0x6, (%rdx)
leaq 0x13504(%rip), %rsi # 0xadbcd
movq %r12, %rdi
callq 0x9ae4e
leaq 0x130(%rsp), %r12
leaq 0x18(%rsp), %rdx
movl $0x6, (%rdx)
leaq 0x20ddc(%rip), %rsi # 0xbb4c7
movq %r12, %rdi
callq 0x9adc6
leaq 0x158(%rsp), %r12
leaq 0x14(%rsp), %rdx
movl $0x6, (%rdx)
leaq 0x20dc0(%rip), %rsi # 0xbb4cd
movq %r12, %rdi
callq 0x9ada4
leaq 0x180(%rsp), %r12
leaq 0x10(%rsp), %rdx
movl $0x4, (%rdx)
leaq 0x133e7(%rip), %rsi # 0xadb16
movq %r12, %rdi
callq 0x9adc6
leaq 0x1a8(%rsp), %r12
leaq 0xc(%rsp), %rdx
movl $0x7, (%rdx)
leaq 0x13338(%rip), %rsi # 0xada89
movq %r12, %rdi
callq 0x9ae70
leaq 0x1d0(%rsp), %rdx
leaq 0xb(%rsp), %rax
movq %rax, (%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0xa(%rsp), %r8
leaq 0x9(%rsp), %r9
xorl %ecx, %ecx
callq 0x9b438
movl $0x140, %r15d # imm = 0x140
leaq (%rsp,%r15), %rdi
addq $0x68, %rdi
callq 0x251b8
addq $-0x28, %r15
cmpq $-0x28, %r15
jne 0x9a78b
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
movq 0x8(%r14), %rsi
subq (%r14), %rsi
sarq $0x5, %rsi
movq %rbx, %rdi
callq 0x9ae92
movq (%r14), %r15
movq 0x8(%r14), %r13
leaq 0x1d0(%rsp), %r14
leaq 0x30(%rsp), %r12
cmpq %r13, %r15
je 0x9a815
movq %r14, %rdi
movq %r15, %rsi
callq 0x9b900
testq %rax, %rax
je 0x9a7fa
addq $0x28, %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x9af28
jmp 0x9a80f
testb %bpl, %bpl
je 0x9a80f
movq %r12, %rdi
movq %r15, %rsi
callq 0x9b900
testq %rax, %rax
jne 0x9a7e9
addq $0x20, %r15
jmp 0x9a7d4
leaq 0x30(%rsp), %rdi
callq 0x9b1ac
leaq 0x1d0(%rsp), %rdi
callq 0x9b1ac
movq %rbx, %rax
addq $0x208, %rsp # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9a908
movq %rax, %r14
movl $0x140, %ebx # imm = 0x140
leaq (%rsp,%rbx), %rdi
addq $0x68, %rdi
callq 0x251b8
addq $-0x28, %rbx
cmpq $-0x28, %rbx
jne 0x9a84e
movb $0x1, %al
jmp 0x9a87c
jmp 0x9a877
jmp 0x9a877
jmp 0x9a877
jmp 0x9a877
jmp 0x9a877
jmp 0x9a877
jmp 0x9a877
movq %rax, %r14
xorl %eax, %eax
cmpq %r12, %r15
sete %cl
testb %al, %al
jne 0x9a91d
testb %cl, %cl
jne 0x9a91d
addq $-0x28, %r12
movq %r12, %rdi
callq 0x251b8
cmpq %r15, %r12
jne 0x9a892
jmp 0x9a91d
movq %rax, %r14
jmp 0x9a91d
movq %rax, %r14
movl $0x140, %ebx # imm = 0x140
leaq (%rsp,%rbx), %rdi
addq $0x68, %rdi
callq 0x251b8
addq $-0x28, %rbx
cmpq $-0x28, %rbx
jne 0x9a8b2
movb $0x1, %al
jmp 0x9a8e0
jmp 0x9a8db
jmp 0x9a8db
jmp 0x9a8db
jmp 0x9a8db
jmp 0x9a8db
jmp 0x9a8db
jmp 0x9a8db
movq %rax, %r14
xorl %eax, %eax
cmpq %r12, %r15
sete %cl
testb %al, %al
jne 0x9a92a
testb %cl, %cl
jne 0x9a92a
addq $-0x28, %r12
movq %r12, %rdi
callq 0x251b8
cmpq %r15, %r12
jne 0x9a8ee
jmp 0x9a92a
movq %rax, %r14
jmp 0x9a92a
jmp 0x9a908
movq %rax, %r14
movq %rbx, %rdi
callq 0x27c02
leaq 0x30(%rsp), %rdi
callq 0x9b1ac
leaq 0x1d0(%rsp), %rdi
callq 0x9b1ac
movq %r14, %rdi
callq 0x24f60
| _Z31common_sampler_types_from_namesRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 208h
mov ebp, edx
mov r14, rsi
mov rbx, rdi
lea rdx, [rsp+238h+var_208]
mov dword ptr [rdx], 1
lea rsi, aDry; "dry"
lea r15, [rsp+238h+var_1D0]
mov rdi, r15
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_1A8]
lea rdx, [rsp+238h+var_20C]
mov dword ptr [rdx], 2
lea rsi, aTopK_0; "top_k"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_180]
lea rdx, [rsp+238h+var_210]
mov dword ptr [rdx], 3
lea rsi, aTopP_0; "top_p"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_158]
lea rdx, [rsp+238h+var_214]
mov dword ptr [rdx], 6
lea rsi, aTypP; "typ_p"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_130]
lea rdx, [rsp+238h+var_218]
mov dword ptr [rdx], 4
lea rsi, aMinP_0; "min_p"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_108]
lea rdx, [rsp+238h+var_21C]
mov dword ptr [rdx], 7
lea rsi, aTemperature; "temperature"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA12_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_E0]
lea rdx, [rsp+238h+var_220]
mov dword ptr [rdx], 8
lea rsi, aXtc; "xtc"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_B8]
lea rdx, [rsp+238h+var_224]
mov dword ptr [rdx], 9
lea rsi, aSpmInfill+6; "infill"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA7_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_90]
lea rdx, [rsp+238h+var_228]
mov dword ptr [rdx], 0Ah
lea rsi, aPenalties; "penalties"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA10_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea rdx, [rsp+238h+var_68]
lea rax, [rsp+238h+var_22F]
mov [rsp+238h+var_238], rax
lea rdi, [rsp+238h+var_68]
lea rsi, [rsp+238h+var_1D0]
lea r8, [rsp+238h+var_22C]
lea r9, [rsp+238h+var_22E]
xor ecx, ecx
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_19common_sampler_typeESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEEC2IPKS9_EET_SQ_mRKSG_RKSE_RKSA_St17integral_constantIbLb1EE; std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::_Hashtable<std::pair<std::string const,common_sampler_type> const*>(std::pair<std::string const,common_sampler_type> const*,std::pair<std::string const,common_sampler_type> const*,ulong,std::hash<std::string> const&,std::equal_to<std::string> const&,std::allocator<std::pair<std::string const,common_sampler_type>> const&,std::integral_constant<bool,true>)
mov r15d, 140h
loc_9A613:
lea rdi, [rsp+r15+238h+var_238]
add rdi, 68h ; 'h'; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
add r15, 0FFFFFFFFFFFFFFD8h
cmp r15, 0FFFFFFFFFFFFFFD8h
jnz short loc_9A613
lea rdx, [rsp+238h+var_20C]
mov dword ptr [rdx], 2
lea rsi, aTopK+2; "top-k"
lea r15, [rsp+238h+var_1D0]
mov rdi, r15
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_1A8]
lea rdx, [rsp+238h+var_210]
mov dword ptr [rdx], 3
lea rsi, aTopP+2; "top-p"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_180]
lea rdx, [rsp+238h+var_214]
mov dword ptr [rdx], 3
lea rsi, aNucleus; "nucleus"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA8_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_158]
lea rdx, [rsp+238h+var_218]
mov dword ptr [rdx], 6
lea rsi, aTypicalP; "typical-p"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA10_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_130]
lea rdx, [rsp+238h+var_21C]
mov dword ptr [rdx], 6
lea rsi, aTypical+2; "typical"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA8_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_108]
lea rdx, [rsp+238h+var_220]
mov dword ptr [rdx], 6
lea rsi, aTypP_0; "typ-p"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_E0]
lea rdx, [rsp+238h+var_224]
mov dword ptr [rdx], 6
lea rsi, aTyp; "typ"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_B8]
lea rdx, [rsp+238h+var_228]
mov dword ptr [rdx], 4
lea rsi, aMinP+2; "min-p"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea r12, [rsp+238h+var_90]
lea rdx, [rsp+238h+var_22C]
mov dword ptr [rdx], 7
lea rsi, aTemp+2; "temp"
mov rdi, r12
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA5_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
lea rdx, [rsp+238h+var_68]
lea rax, [rsp+238h+var_22D]
mov [rsp+238h+var_238], rax
lea rdi, [rsp+238h+var_208]
lea rsi, [rsp+238h+var_1D0]
lea r8, [rsp+238h+var_22E]
lea r9, [rsp+238h+var_22F]
xor ecx, ecx
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_19common_sampler_typeESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEEC2IPKS9_EET_SQ_mRKSG_RKSE_RKSA_St17integral_constantIbLb1EE; std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::_Hashtable<std::pair<std::string const,common_sampler_type> const*>(std::pair<std::string const,common_sampler_type> const*,std::pair<std::string const,common_sampler_type> const*,ulong,std::hash<std::string> const&,std::equal_to<std::string> const&,std::allocator<std::pair<std::string const,common_sampler_type>> const&,std::integral_constant<bool,true>)
mov r15d, 140h
loc_9A78B:
lea rdi, [rsp+r15+238h+var_238]
add rdi, 68h ; 'h'; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
add r15, 0FFFFFFFFFFFFFFD8h
cmp r15, 0FFFFFFFFFFFFFFD8h
jnz short loc_9A78B
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
and qword ptr [rbx+10h], 0
mov rsi, [r14+8]
sub rsi, [r14]
sar rsi, 5
mov rdi, rbx
call _ZNSt6vectorI19common_sampler_typeSaIS0_EE7reserveEm; std::vector<common_sampler_type>::reserve(ulong)
mov r15, [r14]
mov r13, [r14+8]
lea r14, [rsp+238h+var_68]
lea r12, [rsp+238h+var_208]
loc_9A7D4:
cmp r15, r13
jz short loc_9A815
mov rdi, r14
mov rsi, r15
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_19common_sampler_typeESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&)
test rax, rax
jz short loc_9A7FA
loc_9A7E9:
add rax, 28h ; '('
mov rdi, rbx
mov rsi, rax
call _ZNSt6vectorI19common_sampler_typeSaIS0_EE9push_backERKS0_; std::vector<common_sampler_type>::push_back(common_sampler_type const&)
jmp short loc_9A80F
loc_9A7FA:
test bpl, bpl
jz short loc_9A80F
mov rdi, r12
mov rsi, r15
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_19common_sampler_typeESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&)
test rax, rax
jnz short loc_9A7E9
loc_9A80F:
add r15, 20h ; ' '
jmp short loc_9A7D4
loc_9A815:
lea rdi, [rsp+238h+var_208]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_19common_sampler_typeESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable()
lea rdi, [rsp+238h+var_68]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_19common_sampler_typeESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable()
mov rax, rbx
add rsp, 208h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp loc_9A908
mov r14, rax
mov ebx, 140h
loc_9A84E:
lea rdi, [rsp+rbx+0]
add rdi, 68h ; 'h'; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
add rbx, 0FFFFFFFFFFFFFFD8h
cmp rbx, 0FFFFFFFFFFFFFFD8h
jnz short loc_9A84E
mov al, 1
jmp short loc_9A87C
jmp short loc_9A877
jmp short loc_9A877
jmp short loc_9A877
jmp short loc_9A877
jmp short loc_9A877
jmp short loc_9A877
jmp short $+2
loc_9A877:
mov r14, rax
xor eax, eax
loc_9A87C:
cmp r15, r12
setz cl
test al, al
jnz loc_9A91D
test cl, cl
jnz loc_9A91D
loc_9A892:
add r12, 0FFFFFFFFFFFFFFD8h
mov rdi, r12; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
cmp r12, r15
jnz short loc_9A892
jmp short loc_9A91D
mov r14, rax
jmp short loc_9A91D
mov r14, rax
mov ebx, 140h
loc_9A8B2:
lea rdi, [rsp+rbx+0]
add rdi, 68h ; 'h'; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
add rbx, 0FFFFFFFFFFFFFFD8h
cmp rbx, 0FFFFFFFFFFFFFFD8h
jnz short loc_9A8B2
mov al, 1
jmp short loc_9A8E0
jmp short loc_9A8DB
jmp short loc_9A8DB
jmp short loc_9A8DB
jmp short loc_9A8DB
jmp short loc_9A8DB
jmp short loc_9A8DB
jmp short $+2
loc_9A8DB:
mov r14, rax
xor eax, eax
loc_9A8E0:
cmp r15, r12
setz cl
test al, al
jnz short loc_9A92A
test cl, cl
jnz short loc_9A92A
loc_9A8EE:
add r12, 0FFFFFFFFFFFFFFD8h
mov rdi, r12; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
cmp r12, r15
jnz short loc_9A8EE
jmp short loc_9A92A
mov r14, rax
jmp short loc_9A92A
jmp short $+2
loc_9A908:
mov r14, rax
mov rdi, rbx
call _ZNSt12_Vector_baseI19common_sampler_typeSaIS0_EED2Ev; std::_Vector_base<common_sampler_type>::~_Vector_base()
lea rdi, [rsp+arg_28]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_19common_sampler_typeESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable()
loc_9A91D:
lea rdi, [rsp+arg_1C8]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_19common_sampler_typeESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable()
loc_9A92A:
mov rdi, r14
call __Unwind_Resume
| long long common_sampler_types_from_names(long long a1, long long *a2, char a3)
{
long long i; // r15
long long j; // r15
long long v6; // r15
long long v7; // r13
long long v8; // rax
char v10; // [rsp+9h] [rbp-22Fh] BYREF
char v11; // [rsp+Ah] [rbp-22Eh] BYREF
char v12; // [rsp+Bh] [rbp-22Dh] BYREF
int v13; // [rsp+Ch] [rbp-22Ch] BYREF
int v14; // [rsp+10h] [rbp-228h] BYREF
int v15; // [rsp+14h] [rbp-224h] BYREF
int v16; // [rsp+18h] [rbp-220h] BYREF
int v17; // [rsp+1Ch] [rbp-21Ch] BYREF
int v18; // [rsp+20h] [rbp-218h] BYREF
int v19; // [rsp+24h] [rbp-214h] BYREF
int v20; // [rsp+28h] [rbp-210h] BYREF
int v21; // [rsp+2Ch] [rbp-20Ch] BYREF
_DWORD v22[14]; // [rsp+30h] [rbp-208h] BYREF
_BYTE v23[40]; // [rsp+68h] [rbp-1D0h] BYREF
_BYTE v24[40]; // [rsp+90h] [rbp-1A8h] BYREF
_BYTE v25[40]; // [rsp+B8h] [rbp-180h] BYREF
_BYTE v26[40]; // [rsp+E0h] [rbp-158h] BYREF
_BYTE v27[40]; // [rsp+108h] [rbp-130h] BYREF
_BYTE v28[40]; // [rsp+130h] [rbp-108h] BYREF
_BYTE v29[40]; // [rsp+158h] [rbp-E0h] BYREF
_BYTE v30[40]; // [rsp+180h] [rbp-B8h] BYREF
_BYTE v31[40]; // [rsp+1A8h] [rbp-90h] BYREF
_BYTE v32[104]; // [rsp+1D0h] [rbp-68h] BYREF
v22[0] = 1;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v23,
"dry",
v22);
v21 = 2;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v24,
"top_k",
&v21);
v20 = 3;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v25,
"top_p",
&v20);
v19 = 6;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v26,
"typ_p",
&v19);
v18 = 4;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v27,
"min_p",
&v18);
v17 = 7;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA12_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v28,
"temperature",
&v17);
v16 = 8;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v29,
"xtc",
&v16);
v15 = 9;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA7_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v30,
"infill",
&v15);
v14 = 10;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA10_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v31,
"penalties",
&v14);
std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::_Hashtable<std::pair<std::string const,common_sampler_type> const*>(
(unsigned int)v32,
(unsigned int)v23,
(unsigned int)v32,
0,
(unsigned int)&v13,
(unsigned int)&v11,
(long long)&v10);
for ( i = 320LL; i != -40; i -= 40LL )
std::string::~string(&v23[i]);
v21 = 2;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v23,
"top-k",
&v21);
v20 = 3;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v24,
"top-p",
&v20);
v19 = 3;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA8_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v25,
"nucleus",
&v19);
v18 = 6;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA10_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v26,
"typical-p",
&v18);
v17 = 6;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA8_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v27,
"typical",
&v17);
v16 = 6;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v28,
"typ-p",
&v16);
v15 = 6;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v29,
"typ",
&v15);
v14 = 4;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v30,
"min-p",
&v14);
v13 = 7;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA5_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(
v31,
"temp",
&v13);
std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::_Hashtable<std::pair<std::string const,common_sampler_type> const*>(
(unsigned int)v22,
(unsigned int)v23,
(unsigned int)v32,
0,
(unsigned int)&v11,
(unsigned int)&v10,
(long long)&v12);
for ( j = 320LL; j != -40; j -= 40LL )
std::string::~string(&v23[j]);
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
std::vector<common_sampler_type>::reserve(a1, (a2[1] - *a2) >> 5);
v6 = *a2;
v7 = a2[1];
while ( v6 != v7 )
{
v8 = std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(
v32,
v6);
if ( v8
|| a3
&& (v8 = std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(
v22,
v6)) != 0 )
{
std::vector<common_sampler_type>::push_back(a1, v8 + 40);
}
v6 += 32LL;
}
std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable(v22);
std::_Hashtable<std::string,std::pair<std::string const,common_sampler_type>,std::allocator<std::pair<std::string const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable(v32);
return a1;
}
| common_sampler_types_from_names:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x208
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
LEA RDX,[RSP + 0x30]
MOV dword ptr [RDX],0x1
LAB_0019a4ba:
LEA RSI,[0x1bb47f]
LEA R15,[RSP + 0x68]
MOV RDI,R15
CALL 0x0019ada4
LEA R12,[RSP + 0x90]
LEA RDX,[RSP + 0x2c]
MOV dword ptr [RDX],0x2
LAB_0019a4e1:
LEA RSI,[0x1bb483]
MOV RDI,R12
CALL 0x0019adc6
LEA R12,[RSP + 0xb8]
LEA RDX,[RSP + 0x28]
MOV dword ptr [RDX],0x3
LAB_0019a503:
LEA RSI,[0x1bb48f]
MOV RDI,R12
CALL 0x0019adc6
LEA R12,[RSP + 0xe0]
LEA RDX,[RSP + 0x24]
MOV dword ptr [RDX],0x6
LAB_0019a525:
LEA RSI,[0x1bb489]
MOV RDI,R12
CALL 0x0019adc6
LEA R12,[RSP + 0x108]
LEA RDX,[RSP + 0x20]
MOV dword ptr [RDX],0x4
LAB_0019a547:
LEA RSI,[0x1bb495]
MOV RDI,R12
CALL 0x0019adc6
LEA R12,[RSP + 0x130]
LEA RDX,[RSP + 0x1c]
MOV dword ptr [RDX],0x7
LAB_0019a569:
LEA RSI,[0x1bb49b]
MOV RDI,R12
CALL 0x0019ade8
LEA R12,[RSP + 0x158]
LEA RDX,[RSP + 0x18]
MOV dword ptr [RDX],0x8
LAB_0019a58b:
LEA RSI,[0x1bb4a7]
MOV RDI,R12
CALL 0x0019ada4
LEA R12,[RSP + 0x180]
LEA RDX,[RSP + 0x14]
MOV dword ptr [RDX],0x9
LAB_0019a5ad:
LEA RSI,[0x1ad899]
MOV RDI,R12
CALL 0x0019ae0a
LEA R12,[RSP + 0x1a8]
LEA RDX,[RSP + 0x10]
MOV dword ptr [RDX],0xa
LAB_0019a5cf:
LEA RSI,[0x1bb4ab]
MOV RDI,R12
CALL 0x0019ae2c
LEA RDX,[RSP + 0x1d0]
LAB_0019a5e6:
LEA RAX,[RSP + 0x9]
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x1d0]
LEA RSI,[RSP + 0x68]
LEA R8,[RSP + 0xc]
LEA R9,[RSP + 0xa]
XOR ECX,ECX
CALL 0x0019b438
MOV R15D,0x140
LAB_0019a613:
LEA RDI,[RSP + R15*0x1]
ADD RDI,0x68
CALL 0x001251b8
ADD R15,-0x28
CMP R15,-0x28
JNZ 0x0019a613
LEA RDX,[RSP + 0x2c]
MOV dword ptr [RDX],0x2
LAB_0019a635:
LEA RSI,[0x1adaac]
LEA R15,[RSP + 0x68]
MOV RDI,R15
CALL 0x0019adc6
LEA R12,[RSP + 0x90]
LEA RDX,[RSP + 0x28]
MOV dword ptr [RDX],0x3
LAB_0019a65c:
LEA RSI,[0x1adadf]
MOV RDI,R12
CALL 0x0019adc6
LEA R12,[RSP + 0xb8]
LEA RDX,[RSP + 0x24]
MOV dword ptr [RDX],0x3
LAB_0019a67e:
LEA RSI,[0x1bb4b5]
MOV RDI,R12
CALL 0x0019ae4e
LEA R12,[RSP + 0xe0]
LEA RDX,[RSP + 0x20]
MOV dword ptr [RDX],0x6
LAB_0019a6a0:
LEA RSI,[0x1bb4bd]
MOV RDI,R12
CALL 0x0019ae2c
LEA R12,[RSP + 0x108]
LEA RDX,[RSP + 0x1c]
MOV dword ptr [RDX],0x6
LAB_0019a6c2:
LEA RSI,[0x1adbcd]
MOV RDI,R12
CALL 0x0019ae4e
LEA R12,[RSP + 0x130]
LEA RDX,[RSP + 0x18]
MOV dword ptr [RDX],0x6
LAB_0019a6e4:
LEA RSI,[0x1bb4c7]
MOV RDI,R12
CALL 0x0019adc6
LEA R12,[RSP + 0x158]
LEA RDX,[RSP + 0x14]
MOV dword ptr [RDX],0x6
LAB_0019a706:
LEA RSI,[0x1bb4cd]
MOV RDI,R12
CALL 0x0019ada4
LEA R12,[RSP + 0x180]
LEA RDX,[RSP + 0x10]
MOV dword ptr [RDX],0x4
LAB_0019a728:
LEA RSI,[0x1adb16]
MOV RDI,R12
CALL 0x0019adc6
LEA R12,[RSP + 0x1a8]
LEA RDX,[RSP + 0xc]
MOV dword ptr [RDX],0x7
LAB_0019a74a:
LEA RSI,[0x1ada89]
MOV RDI,R12
CALL 0x0019ae70
LEA RDX,[RSP + 0x1d0]
LAB_0019a761:
LEA RAX,[RSP + 0xb]
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x68]
LEA R8,[RSP + 0xa]
LEA R9,[RSP + 0x9]
XOR ECX,ECX
CALL 0x0019b438
MOV R15D,0x140
LAB_0019a78b:
LEA RDI,[RSP + R15*0x1]
ADD RDI,0x68
CALL 0x001251b8
ADD R15,-0x28
CMP R15,-0x28
JNZ 0x0019a78b
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
AND qword ptr [RBX + 0x10],0x0
MOV RSI,qword ptr [R14 + 0x8]
SUB RSI,qword ptr [R14]
SAR RSI,0x5
LAB_0019a7b8:
MOV RDI,RBX
CALL 0x0019ae92
MOV R15,qword ptr [R14]
MOV R13,qword ptr [R14 + 0x8]
LEA R14,[RSP + 0x1d0]
LEA R12,[RSP + 0x30]
LAB_0019a7d4:
CMP R15,R13
JZ 0x0019a815
LAB_0019a7d9:
MOV RDI,R14
MOV RSI,R15
CALL 0x0019b900
TEST RAX,RAX
JZ 0x0019a7fa
LAB_0019a7e9:
ADD RAX,0x28
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0019af28
JMP 0x0019a80f
LAB_0019a7fa:
TEST BPL,BPL
JZ 0x0019a80f
LAB_0019a7ff:
MOV RDI,R12
MOV RSI,R15
CALL 0x0019b900
LAB_0019a80a:
TEST RAX,RAX
JNZ 0x0019a7e9
LAB_0019a80f:
ADD R15,0x20
JMP 0x0019a7d4
LAB_0019a815:
LEA RDI,[RSP + 0x30]
CALL 0x0019b1ac
LEA RDI,[RSP + 0x1d0]
CALL 0x0019b1ac
MOV RAX,RBX
ADD RSP,0x208
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_sampler_types_from_names(std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > > const&, bool) */
vector * common_sampler_types_from_names(vector *param_1,bool param_2)
{
string *psVar1;
char in_DL;
int7 in_register_00000031;
long *plVar2;
long lVar3;
string *psVar4;
int1 local_22f;
int1 local_22e;
int1 local_22d;
int4 local_22c;
int4 local_228;
int4 local_224;
int4 local_220;
int4 local_21c;
int4 local_218;
int4 local_214;
int4 local_210;
int4 local_20c;
int4 local_208 [14];
string local_1d0 [40];
int1 local_1a8 [40];
int1 local_180 [40];
int1 local_158 [40];
int1 local_130 [40];
int1 local_108 [40];
int1 local_e0 [40];
int1 local_b8 [40];
int1 local_90 [40];
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,common_sampler_type>,std::allocator<std::pair<std::__cxx11::string_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
local_68 [56];
plVar2 = (long *)CONCAT71(in_register_00000031,param_2);
local_208[0] = 1;
/* try { // try from 0019a4ba to 0019a4cd has its CatchHandler @ 0019a901 */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_1d0,&DAT_001bb47f);
local_20c = 2;
/* try { // try from 0019a4e1 to 0019a4ef has its CatchHandler @ 0019a8db */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_1a8,"top_k");
local_210 = 3;
/* try { // try from 0019a503 to 0019a511 has its CatchHandler @ 0019a8d9 */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_180,"top_p");
local_214 = 6;
/* try { // try from 0019a525 to 0019a533 has its CatchHandler @ 0019a8d7 */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_158,"typ_p");
local_218 = 4;
/* try { // try from 0019a547 to 0019a555 has its CatchHandler @ 0019a8d5 */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_130,"min_p");
local_21c = 7;
/* try { // try from 0019a569 to 0019a577 has its CatchHandler @ 0019a8d3 */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA12_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_108,"temperature");
local_220 = 8;
/* try { // try from 0019a58b to 0019a599 has its CatchHandler @ 0019a8d1 */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_e0,&DAT_001bb4a7);
local_224 = 9;
/* try { // try from 0019a5ad to 0019a5bb has its CatchHandler @ 0019a8cf */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA7_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_b8,"infill");
local_228 = 10;
/* try { // try from 0019a5cf to 0019a5dd has its CatchHandler @ 0019a8cd */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA10_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_90,"penalties");
/* try { // try from 0019a5e6 to 0019a60c has its CatchHandler @ 0019a8aa */
std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,common_sampler_type>,std::allocator<std::pair<std::__cxx11::string_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
::_Hashtable<std::pair<std::__cxx11::string_const,common_sampler_type>const*>
(local_68,local_1d0,local_68,0,&local_22c,&local_22e,&local_22f);
lVar3 = 0x140;
do {
std::__cxx11::string::~string(local_1d0 + lVar3);
lVar3 = lVar3 + -0x28;
} while (lVar3 != -0x28);
local_20c = 2;
/* try { // try from 0019a635 to 0019a648 has its CatchHandler @ 0019a8a5 */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_1d0,"top-k");
local_210 = 3;
/* try { // try from 0019a65c to 0019a66a has its CatchHandler @ 0019a877 */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_1a8,"top-p");
local_214 = 3;
/* try { // try from 0019a67e to 0019a68c has its CatchHandler @ 0019a875 */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA8_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_180,"nucleus");
local_218 = 6;
/* try { // try from 0019a6a0 to 0019a6ae has its CatchHandler @ 0019a873 */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA10_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_158,"typical-p");
local_21c = 6;
/* try { // try from 0019a6c2 to 0019a6d0 has its CatchHandler @ 0019a871 */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA8_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_130,"typical");
local_220 = 6;
/* try { // try from 0019a6e4 to 0019a6f2 has its CatchHandler @ 0019a86f */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_108,"typ-p");
local_224 = 6;
/* try { // try from 0019a706 to 0019a714 has its CatchHandler @ 0019a86d */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_e0,&DAT_001bb4cd);
local_228 = 4;
/* try { // try from 0019a728 to 0019a736 has its CatchHandler @ 0019a86b */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA6_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_b8,"min-p");
local_22c = 7;
/* try { // try from 0019a74a to 0019a758 has its CatchHandler @ 0019a869 */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE19common_sampler_typeEC2IRA5_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_
(local_90,"temp");
/* try { // try from 0019a761 to 0019a784 has its CatchHandler @ 0019a846 */
std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,common_sampler_type>,std::allocator<std::pair<std::__cxx11::string_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
::_Hashtable<std::pair<std::__cxx11::string_const,common_sampler_type>const*>
(local_208,local_1d0,local_68,0,&local_22e,&local_22f,&local_22d);
lVar3 = 0x140;
do {
std::__cxx11::string::~string(local_1d0 + lVar3);
lVar3 = lVar3 + -0x28;
} while (lVar3 != -0x28);
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
/* try { // try from 0019a7b8 to 0019a7bf has its CatchHandler @ 0019a841 */
std::vector<common_sampler_type,std::allocator<common_sampler_type>>::reserve
((vector<common_sampler_type,std::allocator<common_sampler_type>> *)param_1,
plVar2[1] - *plVar2 >> 5);
psVar4 = (string *)*plVar2;
psVar1 = (string *)plVar2[1];
do {
if (psVar4 == psVar1) {
std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,common_sampler_type>,std::allocator<std::pair<std::__cxx11::string_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
::~_Hashtable((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,common_sampler_type>,std::allocator<std::pair<std::__cxx11::string_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
*)local_208);
std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,common_sampler_type>,std::allocator<std::pair<std::__cxx11::string_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
::~_Hashtable(local_68);
return param_1;
}
/* try { // try from 0019a7d9 to 0019a7f7 has its CatchHandler @ 0019a908 */
lVar3 = std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,common_sampler_type>,std::allocator<std::pair<std::__cxx11::string_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
::find(local_68,psVar4);
if (lVar3 == 0) {
if (in_DL != '\0') {
/* try { // try from 0019a7ff to 0019a809 has its CatchHandler @ 0019a906 */
lVar3 = std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,common_sampler_type>,std::allocator<std::pair<std::__cxx11::string_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
::find((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,common_sampler_type>,std::allocator<std::pair<std::__cxx11::string_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
*)local_208,psVar4);
if (lVar3 != 0) goto LAB_0019a7e9;
}
}
else {
LAB_0019a7e9:
std::vector<common_sampler_type,std::allocator<common_sampler_type>>::push_back
((vector<common_sampler_type,std::allocator<common_sampler_type>> *)param_1,
(common_sampler_type *)(lVar3 + 0x28));
}
psVar4 = psVar4 + 0x20;
} while( true );
}
| |
55,051 | Cache::printStatistics() | DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp | void Cache::printStatistics() {
printf("-------- STATISTICS ----------\n");
printf("Num Read: %d\n", this->statistics.numRead);
printf("Num Write: %d\n", this->statistics.numWrite);
printf("Num Hit: %d\n", this->statistics.numHit);
printf("Num Miss: %d\n", this->statistics.numMiss);
float totalAccess = this->statistics.numHit + this->statistics.numMiss;
float missRate = totalAccess > 0 ? (this->statistics.numMiss * 100.0f / totalAccess) : 0.0f;
printf("Miss Rate: %.2f%%\n", missRate);
printf("Total Cycles: %lu\n", this->statistics.totalCycles);
if (this->lowerCache != nullptr) {
printf("---------- LOWER CACHE ----------\n");
this->lowerCache->printStatistics();
}
} | O0 | cpp | Cache::printStatistics():
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x31c5(%rip), %rdi # 0x838f
xorl %eax, %eax
movb %al, 0xf(%rsp)
callq 0x2040
movq 0x10(%rsp), %rcx
movb 0xf(%rsp), %al
movl 0x8(%rcx), %esi
leaq 0x31c7(%rip), %rdi # 0x83af
callq 0x2040
movq 0x10(%rsp), %rcx
movb 0xf(%rsp), %al
movl 0xc(%rcx), %esi
leaq 0x31bd(%rip), %rdi # 0x83bd
callq 0x2040
movq 0x10(%rsp), %rcx
movb 0xf(%rsp), %al
movl 0x10(%rcx), %esi
leaq 0x31b4(%rip), %rdi # 0x83cc
callq 0x2040
movq 0x10(%rsp), %rcx
movb 0xf(%rsp), %al
movl 0x14(%rcx), %esi
leaq 0x31a9(%rip), %rdi # 0x83d9
callq 0x2040
movq 0x10(%rsp), %rcx
movl 0x10(%rcx), %eax
movl 0x14(%rcx), %ecx
addl %ecx, %eax
cvtsi2ss %rax, %xmm0
movss %xmm0, 0x1c(%rsp)
movss 0x1c(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x5282
movq 0x10(%rsp), %rax
movl 0x14(%rax), %eax
cvtsi2ss %rax, %xmm0
movss 0x2d94(%rip), %xmm1 # 0x8004
mulss %xmm1, %xmm0
divss 0x1c(%rsp), %xmm0
movss %xmm0, 0x8(%rsp)
jmp 0x528d
xorps %xmm0, %xmm0
movss %xmm0, 0x8(%rsp)
jmp 0x528d
movss 0x8(%rsp), %xmm0
movss %xmm0, 0x18(%rsp)
movss 0x18(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x313d(%rip), %rdi # 0x83e7
movb $0x1, %al
callq 0x2040
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rsi
leaq 0x3139(%rip), %rdi # 0x83fa
movb $0x0, %al
callq 0x2040
movq 0x10(%rsp), %rax
cmpq $0x0, 0x30(%rax)
je 0x52f0
leaq 0x3132(%rip), %rdi # 0x840d
movb $0x0, %al
callq 0x2040
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x51b0
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN5Cache15printStatisticsEv:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_18], rax
lea rdi, aStatistics; "-------- STATISTICS ----------\n"
xor eax, eax
mov [rsp+28h+var_19], al
call _printf
mov rcx, [rsp+28h+var_18]
mov al, [rsp+28h+var_19]
mov esi, [rcx+8]
lea rdi, aNumReadD; "Num Read: %d\n"
call _printf
mov rcx, [rsp+28h+var_18]
mov al, [rsp+28h+var_19]
mov esi, [rcx+0Ch]
lea rdi, aNumWriteD; "Num Write: %d\n"
call _printf
mov rcx, [rsp+28h+var_18]
mov al, [rsp+28h+var_19]
mov esi, [rcx+10h]
lea rdi, aNumHitD; "Num Hit: %d\n"
call _printf
mov rcx, [rsp+28h+var_18]
mov al, [rsp+28h+var_19]
mov esi, [rcx+14h]
lea rdi, aNumMissD; "Num Miss: %d\n"
call _printf
mov rcx, [rsp+28h+var_18]
mov eax, [rcx+10h]
mov ecx, [rcx+14h]
add eax, ecx
cvtsi2ss xmm0, rax
movss [rsp+28h+var_C], xmm0
movss xmm0, [rsp+28h+var_C]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jbe short loc_5282
mov rax, [rsp+28h+var_18]
mov eax, [rax+14h]
cvtsi2ss xmm0, rax
movss xmm1, cs:dword_8004
mulss xmm0, xmm1
divss xmm0, [rsp+28h+var_C]
movss [rsp+28h+var_20], xmm0
jmp short loc_528D
loc_5282:
xorps xmm0, xmm0
movss [rsp+28h+var_20], xmm0
jmp short $+2
loc_528D:
movss xmm0, [rsp+28h+var_20]
movss [rsp+28h+var_10], xmm0
movss xmm0, [rsp+28h+var_10]
cvtss2sd xmm0, xmm0
lea rdi, aMissRate2f; "Miss Rate: %.2f%%\n"
mov al, 1
call _printf
mov rax, [rsp+28h+var_18]
mov rsi, [rax+18h]
lea rdi, aTotalCyclesLu; "Total Cycles: %lu\n"
mov al, 0
call _printf
mov rax, [rsp+28h+var_18]
cmp qword ptr [rax+30h], 0
jz short loc_52F0
lea rdi, aLowerCache; "---------- LOWER CACHE ----------\n"
mov al, 0
call _printf
mov rax, [rsp+28h+var_18]
mov rdi, [rax+30h]; this
call _ZN5Cache15printStatisticsEv; Cache::printStatistics(void)
loc_52F0:
add rsp, 28h
retn
| Cache * Cache::printStatistics(Cache *this)
{
Cache *result; // rax
float v2; // [rsp+8h] [rbp-20h]
printf("-------- STATISTICS ----------\n");
printf("Num Read: %d\n", *((_DWORD *)this + 2));
printf("Num Write: %d\n", *((_DWORD *)this + 3));
printf("Num Hit: %d\n", *((_DWORD *)this + 4));
printf("Num Miss: %d\n", *((_DWORD *)this + 5));
if ( (float)(*((_DWORD *)this + 5) + *((_DWORD *)this + 4)) <= 0.0 )
v2 = 0.0;
else
v2 = (float)((float)*((int *)this + 5) * 100.0) / (float)(*((_DWORD *)this + 5) + *((_DWORD *)this + 4));
printf("Miss Rate: %.2f%%\n", v2);
printf("Total Cycles: %lu\n", *((_QWORD *)this + 3));
result = this;
if ( *((_QWORD *)this + 6) )
{
printf("---------- LOWER CACHE ----------\n");
return (Cache *)Cache::printStatistics(*((Cache **)this + 6));
}
return result;
}
| printStatistics:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[0x10838f]
XOR EAX,EAX
MOV byte ptr [RSP + 0xf],AL
CALL 0x00102040
MOV RCX,qword ptr [RSP + 0x10]
MOV AL,byte ptr [RSP + 0xf]
MOV ESI,dword ptr [RCX + 0x8]
LEA RDI,[0x1083af]
CALL 0x00102040
MOV RCX,qword ptr [RSP + 0x10]
MOV AL,byte ptr [RSP + 0xf]
MOV ESI,dword ptr [RCX + 0xc]
LEA RDI,[0x1083bd]
CALL 0x00102040
MOV RCX,qword ptr [RSP + 0x10]
MOV AL,byte ptr [RSP + 0xf]
MOV ESI,dword ptr [RCX + 0x10]
LEA RDI,[0x1083cc]
CALL 0x00102040
MOV RCX,qword ptr [RSP + 0x10]
MOV AL,byte ptr [RSP + 0xf]
MOV ESI,dword ptr [RCX + 0x14]
LEA RDI,[0x1083d9]
CALL 0x00102040
MOV RCX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RCX + 0x10]
MOV ECX,dword ptr [RCX + 0x14]
ADD EAX,ECX
CVTSI2SS XMM0,RAX
MOVSS dword ptr [RSP + 0x1c],XMM0
MOVSS XMM0,dword ptr [RSP + 0x1c]
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JBE 0x00105282
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x14]
CVTSI2SS XMM0,RAX
MOVSS XMM1,dword ptr [0x00108004]
MULSS XMM0,XMM1
DIVSS XMM0,dword ptr [RSP + 0x1c]
MOVSS dword ptr [RSP + 0x8],XMM0
JMP 0x0010528d
LAB_00105282:
XORPS XMM0,XMM0
MOVSS dword ptr [RSP + 0x8],XMM0
JMP 0x0010528d
LAB_0010528d:
MOVSS XMM0,dword ptr [RSP + 0x8]
MOVSS dword ptr [RSP + 0x18],XMM0
MOVSS XMM0,dword ptr [RSP + 0x18]
CVTSS2SD XMM0,XMM0
LEA RDI,[0x1083e7]
MOV AL,0x1
CALL 0x00102040
MOV RAX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + 0x18]
LEA RDI,[0x1083fa]
MOV AL,0x0
CALL 0x00102040
MOV RAX,qword ptr [RSP + 0x10]
CMP qword ptr [RAX + 0x30],0x0
JZ 0x001052f0
LEA RDI,[0x10840d]
MOV AL,0x0
CALL 0x00102040
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX + 0x30]
CALL 0x001051b0
LAB_001052f0:
ADD RSP,0x28
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* Cache::printStatistics() */
void __thiscall Cache::printStatistics(Cache *this)
{
float local_20;
printf("-------- STATISTICS ----------\n");
printf("Num Read: %d\n",(ulong)*(uint *)(this + 8));
printf("Num Write: %d\n",(ulong)*(uint *)(this + 0xc));
printf("Num Hit: %d\n",(ulong)*(uint *)(this + 0x10));
printf("Num Miss: %d\n",(ulong)*(uint *)(this + 0x14));
if ((float)(uint)(*(int *)(this + 0x10) + *(int *)(this + 0x14)) <= 0.0) {
local_20 = 0.0;
}
else {
local_20 = ((float)*(uint *)(this + 0x14) * _DAT_00108004) /
(float)(uint)(*(int *)(this + 0x10) + *(int *)(this + 0x14));
}
printf("Miss Rate: %.2f%%\n",(double)local_20);
printf("Total Cycles: %lu\n",*(int8 *)(this + 0x18));
if (*(long *)(this + 0x30) != 0) {
printf("---------- LOWER CACHE ----------\n");
printStatistics(*(Cache **)(this + 0x30));
}
return;
}
| |
55,052 | Cache::printStatistics() | DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp | void Cache::printStatistics() {
printf("-------- STATISTICS ----------\n");
printf("Num Read: %d\n", this->statistics.numRead);
printf("Num Write: %d\n", this->statistics.numWrite);
printf("Num Hit: %d\n", this->statistics.numHit);
printf("Num Miss: %d\n", this->statistics.numMiss);
float totalAccess = this->statistics.numHit + this->statistics.numMiss;
float missRate = totalAccess > 0 ? (this->statistics.numMiss * 100.0f / totalAccess) : 0.0f;
printf("Miss Rate: %.2f%%\n", missRate);
printf("Total Cycles: %lu\n", this->statistics.totalCycles);
if (this->lowerCache != nullptr) {
printf("---------- LOWER CACHE ----------\n");
this->lowerCache->printStatistics();
}
} | O1 | cpp | Cache::printStatistics():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x13c8(%rip), %r13 # 0x53e1
leaq 0x13ce(%rip), %rbp # 0x53ee
leaq 0x13d5(%rip), %r14 # 0x53fc
leaq 0x13e1(%rip), %r15 # 0x540f
leaq 0x14ed(%rip), %r12 # 0x5522
leaq 0x14c7(%rip), %rdi # 0x5503
callq 0x2260
movl 0x8(%rbx), %esi
leaq 0x1379(%rip), %rdi # 0x53c4
xorl %eax, %eax
callq 0x2040
movl 0xc(%rbx), %esi
leaq 0x1376(%rip), %rdi # 0x53d2
xorl %eax, %eax
callq 0x2040
movl 0x10(%rbx), %esi
movq %r13, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x14(%rbx), %esi
movq %rbp, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x14(%rbx), %eax
movl 0x10(%rbx), %ecx
addl %eax, %ecx
je 0x40b0
movl %ecx, %ecx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
mulss 0xf9d(%rip), %xmm1 # 0x5040
divss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
jmp 0x40b3
xorps %xmm0, %xmm0
movq %r14, %rdi
movb $0x1, %al
callq 0x2040
movq 0x18(%rbx), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x2040
cmpq $0x0, 0x30(%rbx)
je 0x40e3
movq %r12, %rdi
callq 0x2260
movq 0x30(%rbx), %rbx
jmp 0x4035
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN5Cache15printStatisticsEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
lea r13, aNumHitD; "Num Hit: %d\n"
lea rbp, aNumMissD; "Num Miss: %d\n"
lea r14, aMissRate2f; "Miss Rate: %.2f%%\n"
lea r15, aTotalCyclesLu; "Total Cycles: %lu\n"
lea r12, aLowerCache; "---------- LOWER CACHE ----------"
loc_4035:
lea rdi, aStatistics; "-------- STATISTICS ----------"
call _puts
mov esi, [rbx+8]
lea rdi, aNumReadD; "Num Read: %d\n"
xor eax, eax
call _printf
mov esi, [rbx+0Ch]
lea rdi, aNumWriteD; "Num Write: %d\n"
xor eax, eax
call _printf
mov esi, [rbx+10h]
mov rdi, r13
xor eax, eax
call _printf
mov esi, [rbx+14h]
mov rdi, rbp
xor eax, eax
call _printf
mov eax, [rbx+14h]
mov ecx, [rbx+10h]
add ecx, eax
jz short loc_40B0
mov ecx, ecx
xorps xmm0, xmm0
cvtsi2ss xmm0, rcx
mov eax, eax
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
mulss xmm1, cs:dword_5040
divss xmm1, xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
jmp short loc_40B3
loc_40B0:
xorps xmm0, xmm0
loc_40B3:
mov rdi, r14
mov al, 1
call _printf
mov rsi, [rbx+18h]
mov rdi, r15
xor eax, eax
call _printf
cmp qword ptr [rbx+30h], 0
jz short loc_40E3
mov rdi, r12
call _puts
mov rbx, [rbx+30h]
jmp loc_4035
loc_40E3:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long Cache::printStatistics(Cache *this, long long a2, long long a3)
{
int v4; // eax
int v5; // ecx
double v6; // xmm0_8
long long result; // rax
long long v8; // rdx
while ( 1 )
{
puts("-------- STATISTICS ----------", a2, a3);
printf("Num Read: %d\n", *((_DWORD *)this + 2));
printf("Num Write: %d\n", *((_DWORD *)this + 3));
printf("Num Hit: %d\n", *((_DWORD *)this + 4));
printf("Num Miss: %d\n", *((_DWORD *)this + 5));
v4 = *((_DWORD *)this + 5);
v5 = v4 + *((_DWORD *)this + 4);
v6 = v5 ? (float)((float)((float)v4 * 100.0) / (float)v5) : 0.0;
printf("Miss Rate: %.2f%%\n", v6);
a2 = *((_QWORD *)this + 3);
result = printf("Total Cycles: %lu\n", a2);
if ( !*((_QWORD *)this + 6) )
break;
puts("---------- LOWER CACHE ----------", a2, v8);
this = (Cache *)*((_QWORD *)this + 6);
}
return result;
}
| printStatistics:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA R13,[0x1053e1]
LEA RBP,[0x1053ee]
LEA R14,[0x1053fc]
LEA R15,[0x10540f]
LEA R12,[0x105522]
LAB_00104035:
LEA RDI,[0x105503]
CALL 0x00102260
MOV ESI,dword ptr [RBX + 0x8]
LEA RDI,[0x1053c4]
XOR EAX,EAX
CALL 0x00102040
MOV ESI,dword ptr [RBX + 0xc]
LEA RDI,[0x1053d2]
XOR EAX,EAX
CALL 0x00102040
MOV ESI,dword ptr [RBX + 0x10]
MOV RDI,R13
XOR EAX,EAX
CALL 0x00102040
MOV ESI,dword ptr [RBX + 0x14]
MOV RDI,RBP
XOR EAX,EAX
CALL 0x00102040
MOV EAX,dword ptr [RBX + 0x14]
MOV ECX,dword ptr [RBX + 0x10]
ADD ECX,EAX
JZ 0x001040b0
MOV ECX,ECX
XORPS XMM0,XMM0
CVTSI2SS XMM0,RCX
MOV EAX,EAX
XORPS XMM1,XMM1
CVTSI2SS XMM1,RAX
MULSS XMM1,dword ptr [0x00105040]
DIVSS XMM1,XMM0
XORPS XMM0,XMM0
CVTSS2SD XMM0,XMM1
JMP 0x001040b3
LAB_001040b0:
XORPS XMM0,XMM0
LAB_001040b3:
MOV RDI,R14
MOV AL,0x1
CALL 0x00102040
MOV RSI,qword ptr [RBX + 0x18]
MOV RDI,R15
XOR EAX,EAX
CALL 0x00102040
CMP qword ptr [RBX + 0x30],0x0
JZ 0x001040e3
MOV RDI,R12
CALL 0x00102260
MOV RBX,qword ptr [RBX + 0x30]
JMP 0x00104035
LAB_001040e3:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* Cache::printStatistics() */
void __thiscall Cache::printStatistics(Cache *this)
{
uint uVar1;
double dVar2;
while( true ) {
puts("-------- STATISTICS ----------");
printf("Num Read: %d\n",(ulong)*(uint *)(this + 8));
printf("Num Write: %d\n",(ulong)*(uint *)(this + 0xc));
printf("Num Hit: %d\n",(ulong)*(uint *)(this + 0x10));
printf("Num Miss: %d\n",(ulong)*(uint *)(this + 0x14));
uVar1 = *(int *)(this + 0x10) + *(uint *)(this + 0x14);
if (uVar1 == 0) {
dVar2 = 0.0;
}
else {
dVar2 = (double)(((float)*(uint *)(this + 0x14) * _DAT_00105040) / (float)uVar1);
}
printf("Miss Rate: %.2f%%\n",dVar2);
printf("Total Cycles: %lu\n",*(int8 *)(this + 0x18));
if (*(long *)(this + 0x30) == 0) break;
puts("---------- LOWER CACHE ----------");
this = *(Cache **)(this + 0x30);
}
return;
}
| |
55,053 | Cache::printStatistics() | DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp | void Cache::printStatistics() {
printf("-------- STATISTICS ----------\n");
printf("Num Read: %d\n", this->statistics.numRead);
printf("Num Write: %d\n", this->statistics.numWrite);
printf("Num Hit: %d\n", this->statistics.numHit);
printf("Num Miss: %d\n", this->statistics.numMiss);
float totalAccess = this->statistics.numHit + this->statistics.numMiss;
float missRate = totalAccess > 0 ? (this->statistics.numMiss * 100.0f / totalAccess) : 0.0f;
printf("Miss Rate: %.2f%%\n", missRate);
printf("Total Cycles: %lu\n", this->statistics.totalCycles);
if (this->lowerCache != nullptr) {
printf("---------- LOWER CACHE ----------\n");
this->lowerCache->printStatistics();
}
} | O2 | cpp | Cache::printStatistics():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x17d5(%rip), %r13 # 0x53ce
leaq 0x17db(%rip), %rbp # 0x53db
leaq 0x17e2(%rip), %r14 # 0x53e9
leaq 0x17ee(%rip), %r15 # 0x53fc
leaq 0x18fa(%rip), %r12 # 0x550f
leaq 0x18d4(%rip), %rdi # 0x54f0
callq 0x2240
movl 0x8(%rbx), %esi
leaq 0x1786(%rip), %rdi # 0x53b1
xorl %eax, %eax
callq 0x2040
movl 0xc(%rbx), %esi
leaq 0x1783(%rip), %rdi # 0x53bf
xorl %eax, %eax
callq 0x2040
movl 0x10(%rbx), %esi
movq %r13, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x14(%rbx), %esi
movq %rbp, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x14(%rbx), %eax
movl 0x10(%rbx), %ecx
addl %eax, %ecx
je 0x3c87
movl %ecx, %ecx
cvtsi2ss %rcx, %xmm0
movl %eax, %eax
cvtsi2ss %rax, %xmm1
mulss 0x13c3(%rip), %xmm1 # 0x5040
divss %xmm0, %xmm1
cvtss2sd %xmm1, %xmm0
jmp 0x3c8a
xorps %xmm0, %xmm0
movq %r14, %rdi
movb $0x1, %al
callq 0x2040
movq 0x18(%rbx), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x2040
cmpq $0x0, 0x30(%rbx)
je 0x3cba
movq %r12, %rdi
callq 0x2240
movq 0x30(%rbx), %rbx
jmp 0x3c15
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN5Cache15printStatisticsEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
lea r13, aNumHitD; "Num Hit: %d\n"
lea rbp, aNumMissD; "Num Miss: %d\n"
lea r14, aMissRate2f; "Miss Rate: %.2f%%\n"
lea r15, aTotalCyclesLu; "Total Cycles: %lu\n"
lea r12, aLowerCache; "---------- LOWER CACHE ----------"
loc_3C15:
lea rdi, aStatistics; "-------- STATISTICS ----------"
call _puts
mov esi, [rbx+8]
lea rdi, aNumReadD; "Num Read: %d\n"
xor eax, eax
call _printf
mov esi, [rbx+0Ch]
lea rdi, aNumWriteD; "Num Write: %d\n"
xor eax, eax
call _printf
mov esi, [rbx+10h]
mov rdi, r13
xor eax, eax
call _printf
mov esi, [rbx+14h]
mov rdi, rbp
xor eax, eax
call _printf
mov eax, [rbx+14h]
mov ecx, [rbx+10h]
add ecx, eax
jz short loc_3C87
mov ecx, ecx
cvtsi2ss xmm0, rcx
mov eax, eax
cvtsi2ss xmm1, rax
mulss xmm1, cs:dword_5040
divss xmm1, xmm0
cvtss2sd xmm0, xmm1
jmp short loc_3C8A
loc_3C87:
xorps xmm0, xmm0
loc_3C8A:
mov rdi, r14
mov al, 1
call _printf
mov rsi, [rbx+18h]
mov rdi, r15
xor eax, eax
call _printf
cmp qword ptr [rbx+30h], 0
jz short loc_3CBA
mov rdi, r12
call _puts
mov rbx, [rbx+30h]
jmp loc_3C15
loc_3CBA:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long Cache::printStatistics(Cache *this)
{
int v2; // eax
int v3; // ecx
double v4; // xmm0_8
long long result; // rax
while ( 1 )
{
puts("-------- STATISTICS ----------");
printf("Num Read: %d\n", *((_DWORD *)this + 2));
printf("Num Write: %d\n", *((_DWORD *)this + 3));
printf("Num Hit: %d\n", *((_DWORD *)this + 4));
printf("Num Miss: %d\n", *((_DWORD *)this + 5));
v2 = *((_DWORD *)this + 5);
v3 = v2 + *((_DWORD *)this + 4);
v4 = v3 ? (float)((float)((float)v2 * 100.0) / (float)v3) : 0.0;
printf("Miss Rate: %.2f%%\n", v4);
result = printf("Total Cycles: %lu\n", *((_QWORD *)this + 3));
if ( !*((_QWORD *)this + 6) )
break;
puts("---------- LOWER CACHE ----------");
this = (Cache *)*((_QWORD *)this + 6);
}
return result;
}
| printStatistics:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA R13,[0x1053ce]
LEA RBP,[0x1053db]
LEA R14,[0x1053e9]
LEA R15,[0x1053fc]
LEA R12,[0x10550f]
LAB_00103c15:
LEA RDI,[0x1054f0]
CALL 0x00102240
MOV ESI,dword ptr [RBX + 0x8]
LEA RDI,[0x1053b1]
XOR EAX,EAX
CALL 0x00102040
MOV ESI,dword ptr [RBX + 0xc]
LEA RDI,[0x1053bf]
XOR EAX,EAX
CALL 0x00102040
MOV ESI,dword ptr [RBX + 0x10]
MOV RDI,R13
XOR EAX,EAX
CALL 0x00102040
MOV ESI,dword ptr [RBX + 0x14]
MOV RDI,RBP
XOR EAX,EAX
CALL 0x00102040
MOV EAX,dword ptr [RBX + 0x14]
MOV ECX,dword ptr [RBX + 0x10]
ADD ECX,EAX
JZ 0x00103c87
MOV ECX,ECX
CVTSI2SS XMM0,RCX
MOV EAX,EAX
CVTSI2SS XMM1,RAX
MULSS XMM1,dword ptr [0x00105040]
DIVSS XMM1,XMM0
CVTSS2SD XMM0,XMM1
JMP 0x00103c8a
LAB_00103c87:
XORPS XMM0,XMM0
LAB_00103c8a:
MOV RDI,R14
MOV AL,0x1
CALL 0x00102040
MOV RSI,qword ptr [RBX + 0x18]
MOV RDI,R15
XOR EAX,EAX
CALL 0x00102040
CMP qword ptr [RBX + 0x30],0x0
JZ 0x00103cba
MOV RDI,R12
CALL 0x00102240
MOV RBX,qword ptr [RBX + 0x30]
JMP 0x00103c15
LAB_00103cba:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* Cache::printStatistics() */
void __thiscall Cache::printStatistics(Cache *this)
{
uint uVar1;
double dVar2;
while( true ) {
puts("-------- STATISTICS ----------");
printf("Num Read: %d\n",(ulong)*(uint *)(this + 8));
printf("Num Write: %d\n",(ulong)*(uint *)(this + 0xc));
printf("Num Hit: %d\n",(ulong)*(uint *)(this + 0x10));
printf("Num Miss: %d\n",(ulong)*(uint *)(this + 0x14));
uVar1 = *(int *)(this + 0x10) + *(uint *)(this + 0x14);
if (uVar1 == 0) {
dVar2 = 0.0;
}
else {
dVar2 = (double)(((float)*(uint *)(this + 0x14) * _DAT_00105040) / (float)uVar1);
}
printf("Miss Rate: %.2f%%\n",dVar2);
printf("Total Cycles: %lu\n",*(int8 *)(this + 0x18));
if (*(long *)(this + 0x30) == 0) break;
puts("---------- LOWER CACHE ----------");
this = *(Cache **)(this + 0x30);
}
return;
}
| |
55,054 | nlohmann::json_abi_v3_11_3::ordered_map<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>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::insert(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) | monkey531[P]llama/common/json.hpp | std::pair<iterator, bool> insert( const value_type& value )
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, value.first))
{
return {it, false};
}
}
Container::push_back(value);
return {--this->end(), true};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::ordered_map<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>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::insert(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rbx
movq 0x8(%rdi), %rbp
cmpq %rbp, %rbx
je 0xb905c
movq (%r15), %r12
movq 0x8(%r15), %r13
cmpq %r13, 0x8(%rbx)
jne 0xb9053
testq %r13, %r13
je 0xb9073
movq (%rbx), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1a920
testl %eax, %eax
je 0xb9073
addq $0x30, %rbx
cmpq %rbp, %rbx
jne 0xb9036
movq %r14, %rdi
movq %r15, %rsi
callq 0xb9088
movq 0x8(%r14), %rbx
addq $-0x30, %rbx
movb $0x1, %dl
jmp 0xb9075
xorl %edx, %edx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE6insertERKSI_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rsi
mov r14, rdi
mov rbx, [rdi]
mov rbp, [rdi+8]
cmp rbx, rbp
jz short loc_B905C
mov r12, [r15]
mov r13, [r15+8]
loc_B9036:
cmp [rbx+8], r13
jnz short loc_B9053
test r13, r13
jz short loc_B9073
mov rdi, [rbx]
mov rsi, r12
mov rdx, r13
call _bcmp
test eax, eax
jz short loc_B9073
loc_B9053:
add rbx, 30h ; '0'
cmp rbx, rbp
jnz short loc_B9036
loc_B905C:
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE9push_backERKSG_; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::push_back(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)
mov rbx, [r14+8]
add rbx, 0FFFFFFFFFFFFFFD0h
mov dl, 1
jmp short loc_B9075
loc_B9073:
xor edx, edx
loc_B9075:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::insert(
_QWORD *a1,
long long *a2)
{
_QWORD *v2; // rbx
_QWORD *v3; // rbp
long long v4; // r12
long long v5; // r13
v2 = (_QWORD *)*a1;
v3 = (_QWORD *)a1[1];
if ( (_QWORD *)*a1 == v3 )
{
LABEL_7:
std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::push_back(
a1,
a2);
return a1[1] - 48LL;
}
else
{
v4 = *a2;
v5 = a2[1];
while ( v2[1] != v5 || v5 && (unsigned int)bcmp(*v2, v4) )
{
v2 += 6;
if ( v2 == v3 )
goto LABEL_7;
}
}
return (long long)v2;
}
| insert:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RSI
MOV R14,RDI
MOV RBX,qword ptr [RDI]
MOV RBP,qword ptr [RDI + 0x8]
CMP RBX,RBP
JZ 0x001b905c
MOV R12,qword ptr [R15]
MOV R13,qword ptr [R15 + 0x8]
LAB_001b9036:
CMP qword ptr [RBX + 0x8],R13
JNZ 0x001b9053
TEST R13,R13
JZ 0x001b9073
MOV RDI,qword ptr [RBX]
MOV RSI,R12
MOV RDX,R13
CALL 0x0011a920
TEST EAX,EAX
JZ 0x001b9073
LAB_001b9053:
ADD RBX,0x30
CMP RBX,RBP
JNZ 0x001b9036
LAB_001b905c:
MOV RDI,R14
MOV RSI,R15
CALL 0x001b9088
MOV RBX,qword ptr [R14 + 0x8]
ADD RBX,-0x30
MOV DL,0x1
JMP 0x001b9075
LAB_001b9073:
XOR EDX,EDX
LAB_001b9075:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::string const,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > > >::insert(std::pair<std::__cxx11::string const,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > const&) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::
ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::insert(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*this,pair *param_1)
{
int8 *puVar1;
void *__s2;
size_t __n;
int iVar2;
int8 extraout_RDX;
int8 uVar3;
int8 *puVar4;
int1 auVar5 [16];
puVar4 = *(int8 **)this;
puVar1 = *(int8 **)(this + 8);
if (puVar4 != puVar1) {
__s2 = *(void **)param_1;
__n = *(size_t *)(param_1 + 8);
do {
if (puVar4[1] == __n) {
if (__n != 0) {
iVar2 = bcmp((void *)*puVar4,__s2,__n);
if (iVar2 != 0) goto LAB_001b9053;
}
uVar3 = 0;
goto LAB_001b9075;
}
LAB_001b9053:
puVar4 = puVar4 + 6;
} while (puVar4 != puVar1);
}
std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::push_back((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*)this,param_1);
puVar4 = (int8 *)(*(long *)(this + 8) + -0x30);
uVar3 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1);
LAB_001b9075:
auVar5._8_8_ = uVar3;
auVar5._0_8_ = puVar4;
return auVar5;
}
| |
55,055 | OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(OpenSubdiv::v3_6_0::Far::TopologyRefiner&, bool, void (*)(OpenSubdiv::v3_6_0::Vtr::internal::Level::TopologyError, char const*, void const*), void const*) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/topologyRefinerFactory.cpp | bool
TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(
TopologyRefiner& refiner, bool fullValidation,
TopologyCallback callback, void const * callbackData) {
Vtr::internal::Level& baseLevel = refiner.getLevel(0);
bool completeMissingTopology = (baseLevel.getNumEdges() == 0);
if (completeMissingTopology) {
if (! baseLevel.completeTopologyFromFaceVertices()) {
char msg[1024];
snprintf(msg, 1024,
"Failure in TopologyRefinerFactory<>::Create() -- "
"vertex with valence %d > %d max.",
baseLevel.getMaxValence(), Vtr::VALENCE_LIMIT);
Error(FAR_RUNTIME_ERROR, msg);
return false;
}
} else {
if (baseLevel.getMaxValence() == 0) {
Error(FAR_RUNTIME_ERROR,
"Failure in TopologyRefinerFactory<>::Create() -- "
"maximum valence not assigned.");
return false;
}
}
if (fullValidation) {
if (! baseLevel.validateTopology(callback, callbackData)) {
if (completeMissingTopology) {
Error(FAR_RUNTIME_ERROR,
"Failure in TopologyRefinerFactory<>::Create() -- "
"invalid topology detected from partial specification.");
} else {
Error(FAR_RUNTIME_ERROR,
"Failure in TopologyRefinerFactory<>::Create() -- "
"invalid topology detected as fully specified.");
}
return false;
}
}
// Now that we have a valid base level, initialize the Refiner's
// component inventory:
refiner.initializeInventory();
return true;
} | O0 | cpp | OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(OpenSubdiv::v3_6_0::Far::TopologyRefiner&, bool, void (*)(OpenSubdiv::v3_6_0::Vtr::internal::Level::TopologyError, char const*, void const*), void const*):
pushq %rbp
movq %rsp, %rbp
subq $0x450, %rsp # imm = 0x450
movb %sil, %al
movq %rdi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0xcc610
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0xca130
cmpl $0x0, %eax
sete %al
andb $0x1, %al
movb %al, -0x31(%rbp)
testb $0x1, -0x31(%rbp)
je 0x183d0c
movq -0x30(%rbp), %rdi
callq 0xccba0
testb $0x1, %al
jne 0x183d0a
leaq -0x440(%rbp), %rax
movq %rax, -0x448(%rbp)
movq -0x30(%rbp), %rdi
callq 0xc5720
movq -0x448(%rbp), %rdi
movl %eax, %ecx
movl $0x400, %esi # imm = 0x400
leaq 0x722df(%rip), %rdx # 0x1f5fc0
movl $0xffff, %r8d # imm = 0xFFFF
movb $0x0, %al
callq 0xd3a70
leaq -0x440(%rbp), %rsi
movl $0x4, %edi
movb $0x0, %al
callq 0xc4110
movb $0x0, -0x1(%rbp)
jmp 0x183d93
jmp 0x183d35
movq -0x30(%rbp), %rdi
callq 0xc5720
cmpl $0x0, %eax
jne 0x183d33
movl $0x4, %edi
leaq 0x722ec(%rip), %rsi # 0x1f6012
movb $0x0, %al
callq 0xc4110
movb $0x0, -0x1(%rbp)
jmp 0x183d93
jmp 0x183d35
testb $0x1, -0x11(%rbp)
je 0x183d86
movq -0x30(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0xce2b0
testb $0x1, %al
jne 0x183d84
testb $0x1, -0x31(%rbp)
je 0x183d6b
movl $0x4, %edi
leaq 0x722ff(%rip), %rsi # 0x1f6061
movb $0x0, %al
callq 0xc4110
jmp 0x183d7e
movl $0x4, %edi
leaq 0x72351(%rip), %rsi # 0x1f60c8
movb $0x0, %al
callq 0xc4110
movb $0x0, -0x1(%rbp)
jmp 0x183d93
jmp 0x183d86
movq -0x10(%rbp), %rdi
callq 0xcbd90
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x450, %rsp # imm = 0x450
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN10OpenSubdiv6v3_6_03Far26TopologyRefinerFactoryBase34prepareComponentTopologyAssignmentERNS1_15TopologyRefinerEbPFvNS0_3Vtr8internal5Level13TopologyErrorEPKcPKvESC_:
push rbp
mov rbp, rsp
sub rsp, 450h
mov al, sil
mov [rbp+var_10], rdi
and al, 1
mov [rbp+var_11], al
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rdi, [rbp+var_10]; this
xor esi, esi; int
call __ZN10OpenSubdiv6v3_6_03Far15TopologyRefiner8getLevelEi; OpenSubdiv::v3_6_0::Far::TopologyRefiner::getLevel(int)
mov [rbp+var_30], rax
mov rdi, [rbp+var_30]; this
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level11getNumEdgesEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumEdges(void)
cmp eax, 0
setz al
and al, 1
mov [rbp+var_31], al
test [rbp+var_31], 1
jz short loc_183D0C
mov rdi, [rbp+var_30]; this
call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level32completeTopologyFromFaceVerticesEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::completeTopologyFromFaceVertices(void)
test al, 1
jnz short loc_183D0A
lea rax, [rbp+var_440]
mov [rbp+var_448], rax
mov rdi, [rbp+var_30]; this
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level13getMaxValenceEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::getMaxValence(void)
mov rdi, [rbp+var_448]
mov ecx, eax
mov esi, 400h
lea rdx, aFailureInTopol_8; "Failure in TopologyRefinerFactory<>::Cr"...
mov r8d, 0FFFFh
mov al, 0
call _snprintf
lea rsi, [rbp+var_440]
mov edi, 4
mov al, 0
call __ZN10OpenSubdiv6v3_6_03Far5ErrorENS1_9ErrorTypeEPKcz; OpenSubdiv::v3_6_0::Far::Error(OpenSubdiv::v3_6_0::Far::ErrorType,char const*,...)
mov [rbp+var_1], 0
jmp loc_183D93
loc_183D0A:
jmp short loc_183D35
loc_183D0C:
mov rdi, [rbp+var_30]; this
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level13getMaxValenceEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::getMaxValence(void)
cmp eax, 0
jnz short loc_183D33
mov edi, 4
lea rsi, aFailureInTopol_9; "Failure in TopologyRefinerFactory<>::Cr"...
mov al, 0
call __ZN10OpenSubdiv6v3_6_03Far5ErrorENS1_9ErrorTypeEPKcz; OpenSubdiv::v3_6_0::Far::Error(OpenSubdiv::v3_6_0::Far::ErrorType,char const*,...)
mov [rbp+var_1], 0
jmp short loc_183D93
loc_183D33:
jmp short $+2
loc_183D35:
test [rbp+var_11], 1
jz short loc_183D86
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level16validateTopologyEPFvNS3_13TopologyErrorEPKcPKvES8_; OpenSubdiv::v3_6_0::Vtr::internal::Level::validateTopology(void (*)(OpenSubdiv::v3_6_0::Vtr::internal::Level::TopologyError,char const*,void const*),void const*)
test al, 1
jnz short loc_183D84
test [rbp+var_31], 1
jz short loc_183D6B
mov edi, 4
lea rsi, aFailureInTopol_10; "Failure in TopologyRefinerFactory<>::Cr"...
mov al, 0
call __ZN10OpenSubdiv6v3_6_03Far5ErrorENS1_9ErrorTypeEPKcz; OpenSubdiv::v3_6_0::Far::Error(OpenSubdiv::v3_6_0::Far::ErrorType,char const*,...)
jmp short loc_183D7E
loc_183D6B:
mov edi, 4
lea rsi, aFailureInTopol_11; "Failure in TopologyRefinerFactory<>::Cr"...
mov al, 0
call __ZN10OpenSubdiv6v3_6_03Far5ErrorENS1_9ErrorTypeEPKcz; OpenSubdiv::v3_6_0::Far::Error(OpenSubdiv::v3_6_0::Far::ErrorType,char const*,...)
loc_183D7E:
mov [rbp+var_1], 0
jmp short loc_183D93
loc_183D84:
jmp short $+2
loc_183D86:
mov rdi, [rbp+var_10]; this
call __ZN10OpenSubdiv6v3_6_03Far15TopologyRefiner19initializeInventoryEv; OpenSubdiv::v3_6_0::Far::TopologyRefiner::initializeInventory(void)
mov [rbp+var_1], 1
loc_183D93:
mov al, [rbp+var_1]
and al, 1
add rsp, 450h
pop rbp
retn
| char OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(
OpenSubdiv::v3_6_0::Far::TopologyRefiner *a1,
char a2,
void ( *a3)(long long, _BYTE *, long long),
long long a4)
{
int NumEdges; // eax
int MaxValence; // eax
_BYTE v7[1039]; // [rsp+10h] [rbp-440h] BYREF
bool v8; // [rsp+41Fh] [rbp-31h]
OpenSubdiv::v3_6_0::Vtr::internal::Level *Level; // [rsp+420h] [rbp-30h]
long long v10; // [rsp+428h] [rbp-28h]
void ( *v11)(long long, _BYTE *, long long); // [rsp+430h] [rbp-20h]
char v12; // [rsp+43Fh] [rbp-11h]
OpenSubdiv::v3_6_0::Far::TopologyRefiner *v13; // [rsp+440h] [rbp-10h]
v13 = a1;
v12 = a2 & 1;
v11 = a3;
v10 = a4;
Level = (OpenSubdiv::v3_6_0::Vtr::internal::Level *)OpenSubdiv::v3_6_0::Far::TopologyRefiner::getLevel(a1, 0);
NumEdges = OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumEdges(Level);
v8 = NumEdges == 0;
if ( NumEdges )
{
if ( !(unsigned int)OpenSubdiv::v3_6_0::Vtr::internal::Level::getMaxValence(Level) )
{
OpenSubdiv::v3_6_0::Far::Error(
4u,
(long long)"Failure in TopologyRefinerFactory<>::Create() -- maximum valence not assigned.");
return 0;
}
}
else if ( (OpenSubdiv::v3_6_0::Vtr::internal::Level::completeTopologyFromFaceVertices(Level) & 1) == 0 )
{
MaxValence = OpenSubdiv::v3_6_0::Vtr::internal::Level::getMaxValence(Level);
snprintf(
v7,
1024LL,
"Failure in TopologyRefinerFactory<>::Create() -- vertex with valence %d > %d max.",
MaxValence,
0xFFFF);
OpenSubdiv::v3_6_0::Far::Error(4u, (long long)v7);
return 0;
}
if ( (v12 & 1) == 0 || (OpenSubdiv::v3_6_0::Vtr::internal::Level::validateTopology(Level, v11, v10) & 1) != 0 )
{
OpenSubdiv::v3_6_0::Far::TopologyRefiner::initializeInventory(v13);
return 1;
}
else
{
if ( v8 )
OpenSubdiv::v3_6_0::Far::Error(
4u,
(long long)"Failure in TopologyRefinerFactory<>::Create() -- invalid topology detected from partial specification.");
else
OpenSubdiv::v3_6_0::Far::Error(
4u,
(long long)"Failure in TopologyRefinerFactory<>::Create() -- invalid topology detected as fully specified.");
return 0;
}
}
| |||
55,056 | OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(OpenSubdiv::v3_6_0::Far::TopologyRefiner&, bool, void (*)(OpenSubdiv::v3_6_0::Vtr::internal::Level::TopologyError, char const*, void const*), void const*) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/topologyRefinerFactory.cpp | bool
TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(
TopologyRefiner& refiner, bool fullValidation,
TopologyCallback callback, void const * callbackData) {
Vtr::internal::Level& baseLevel = refiner.getLevel(0);
bool completeMissingTopology = (baseLevel.getNumEdges() == 0);
if (completeMissingTopology) {
if (! baseLevel.completeTopologyFromFaceVertices()) {
char msg[1024];
snprintf(msg, 1024,
"Failure in TopologyRefinerFactory<>::Create() -- "
"vertex with valence %d > %d max.",
baseLevel.getMaxValence(), Vtr::VALENCE_LIMIT);
Error(FAR_RUNTIME_ERROR, msg);
return false;
}
} else {
if (baseLevel.getMaxValence() == 0) {
Error(FAR_RUNTIME_ERROR,
"Failure in TopologyRefinerFactory<>::Create() -- "
"maximum valence not assigned.");
return false;
}
}
if (fullValidation) {
if (! baseLevel.validateTopology(callback, callbackData)) {
if (completeMissingTopology) {
Error(FAR_RUNTIME_ERROR,
"Failure in TopologyRefinerFactory<>::Create() -- "
"invalid topology detected from partial specification.");
} else {
Error(FAR_RUNTIME_ERROR,
"Failure in TopologyRefinerFactory<>::Create() -- "
"invalid topology detected as fully specified.");
}
return false;
}
}
// Now that we have a valid base level, initialize the Refiner's
// component inventory:
refiner.initializeInventory();
return true;
} | O1 | cpp | OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(OpenSubdiv::v3_6_0::Far::TopologyRefiner&, bool, void (*)(OpenSubdiv::v3_6_0::Vtr::internal::Level::TopologyError, char const*, void const*), void const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp # imm = 0x408
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
movq 0x30(%rdi), %rax
movq (%rax), %r12
movl 0x4(%r12), %r13d
testl %r13d, %r13d
je 0x854b8
cmpl $0x0, 0x14(%r12)
jne 0x854c4
leaq 0x384ae(%rip), %rsi # 0xbd964
jmp 0x8552c
movq %r12, %rdi
callq 0x3a130
testb %al, %al
je 0x854e7
testb %bpl, %bpl
je 0x854db
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3a5c0
testb %al, %al
je 0x85517
movq %rbx, %rdi
callq 0x39df0
movb $0x1, %bl
jmp 0x8553a
movl 0x14(%r12), %ecx
leaq 0x3841f(%rip), %rdx # 0xbd912
xorl %ebx, %ebx
movq %rsp, %r14
movl $0x400, %esi # imm = 0x400
movq %r14, %rdi
movl $0xffff, %r8d # imm = 0xFFFF
xorl %eax, %eax
callq 0x3b650
movl $0x4, %edi
movq %r14, %rsi
jmp 0x85533
testl %r13d, %r13d
je 0x85525
leaq 0x384f7(%rip), %rsi # 0xbda1a
jmp 0x8552c
leaq 0x38487(%rip), %rsi # 0xbd9b3
xorl %ebx, %ebx
movl $0x4, %edi
xorl %eax, %eax
callq 0x38330
movl %ebx, %eax
addq $0x408, %rsp # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN10OpenSubdiv6v3_6_03Far26TopologyRefinerFactoryBase34prepareComponentTopologyAssignmentERNS1_15TopologyRefinerEbPFvNS0_3Vtr8internal5Level13TopologyErrorEPKcPKvESC_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 408h
mov r14, rcx
mov r15, rdx
mov ebp, esi
mov rbx, rdi
mov rax, [rdi+30h]
mov r12, [rax]
mov r13d, [r12+4]
test r13d, r13d
jz short loc_854B8
cmp dword ptr [r12+14h], 0
jnz short loc_854C4
lea rsi, aFailureInTopol_8; "Failure in TopologyRefinerFactory<>::Cr"...
jmp short loc_8552C
loc_854B8:
mov rdi, r12; this
call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level32completeTopologyFromFaceVerticesEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::completeTopologyFromFaceVertices(void)
test al, al
jz short loc_854E7
loc_854C4:
test bpl, bpl
jz short loc_854DB
mov rdi, r12; int
mov rsi, r15; int
mov rdx, r14; int
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level16validateTopologyEPFvNS3_13TopologyErrorEPKcPKvES8_; OpenSubdiv::v3_6_0::Vtr::internal::Level::validateTopology(void (*)(OpenSubdiv::v3_6_0::Vtr::internal::Level::TopologyError,char const*,void const*),void const*)
test al, al
jz short loc_85517
loc_854DB:
mov rdi, rbx; this
call __ZN10OpenSubdiv6v3_6_03Far15TopologyRefiner19initializeInventoryEv; OpenSubdiv::v3_6_0::Far::TopologyRefiner::initializeInventory(void)
mov bl, 1
jmp short loc_8553A
loc_854E7:
mov ecx, [r12+14h]
lea rdx, aFailureInTopol_9; "Failure in TopologyRefinerFactory<>::Cr"...
xor ebx, ebx
mov r14, rsp
mov esi, 400h
mov rdi, r14
mov r8d, 0FFFFh
xor eax, eax
call _snprintf
mov edi, 4
mov rsi, r14
jmp short loc_85533
loc_85517:
test r13d, r13d
jz short loc_85525
lea rsi, aFailureInTopol_10; "Failure in TopologyRefinerFactory<>::Cr"...
jmp short loc_8552C
loc_85525:
lea rsi, aFailureInTopol_11; "Failure in TopologyRefinerFactory<>::Cr"...
loc_8552C:
xor ebx, ebx
mov edi, 4
loc_85533:
xor eax, eax
call __ZN10OpenSubdiv6v3_6_03Far5ErrorENS1_9ErrorTypeEPKcz; OpenSubdiv::v3_6_0::Far::Error(OpenSubdiv::v3_6_0::Far::ErrorType,char const*,...)
loc_8553A:
mov eax, ebx
add rsp, 408h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(
OpenSubdiv::v3_6_0::Far::TopologyRefiner *this,
char a2,
int a3,
int a4,
int a5,
int a6)
{
unsigned int v8; // ebx
OpenSubdiv::v3_6_0::Vtr::internal::Level **v9; // rax
OpenSubdiv::v3_6_0::Vtr::internal::Level *v10; // r12
int v11; // r13d
const char *v12; // rsi
int v14[44]; // [rsp+0h] [rbp-438h] BYREF
void *v15; // [rsp+B0h] [rbp-388h]
v8 = (unsigned int)this;
v9 = (OpenSubdiv::v3_6_0::Vtr::internal::Level **)*((_QWORD *)this + 6);
v10 = *v9;
v11 = *((_DWORD *)*v9 + 1);
if ( v11 )
{
if ( !*((_DWORD *)v10 + 5) )
{
v12 = "Failure in TopologyRefinerFactory<>::Create() -- maximum valence not assigned.";
LABEL_12:
v8 = 0;
OpenSubdiv::v3_6_0::Far::Error(4u, (long long)v12);
return v8;
}
}
else if ( !(unsigned __int8)OpenSubdiv::v3_6_0::Vtr::internal::Level::completeTopologyFromFaceVertices(*v9) )
{
v8 = 0;
snprintf(
v14,
1024LL,
"Failure in TopologyRefinerFactory<>::Create() -- vertex with valence %d > %d max.",
*((_DWORD *)v10 + 5),
0xFFFF);
OpenSubdiv::v3_6_0::Far::Error(4u, (long long)v14);
return v8;
}
if ( a2
&& !(unsigned __int8)OpenSubdiv::v3_6_0::Vtr::internal::Level::validateTopology(
(int)v10,
a3,
a4,
a4,
a5,
a6,
v14[0],
v14[2],
v14[4],
v14[6],
v14[8],
v14[10],
v14[12],
v14[14],
v14[16],
v14[18],
v14[20],
v14[22],
v14[24],
v14[26],
v14[28],
v14[30],
v14[32],
v14[34],
v14[36],
v14[38],
v14[40],
v14[42],
v15) )
{
if ( v11 )
v12 = "Failure in TopologyRefinerFactory<>::Create() -- invalid topology detected as fully specified.";
else
v12 = "Failure in TopologyRefinerFactory<>::Create() -- invalid topology detected from partial specification.";
goto LABEL_12;
}
OpenSubdiv::v3_6_0::Far::TopologyRefiner::initializeInventory(this);
LOBYTE(v8) = 1;
return v8;
}
| prepareComponentTopologyAssignment:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x408
MOV R14,RCX
MOV R15,RDX
MOV EBP,ESI
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x30]
MOV R12,qword ptr [RAX]
MOV R13D,dword ptr [R12 + 0x4]
TEST R13D,R13D
JZ 0x001854b8
CMP dword ptr [R12 + 0x14],0x0
JNZ 0x001854c4
LEA RSI,[0x1bd964]
JMP 0x0018552c
LAB_001854b8:
MOV RDI,R12
CALL 0x0013a130
TEST AL,AL
JZ 0x001854e7
LAB_001854c4:
TEST BPL,BPL
JZ 0x001854db
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
CALL 0x0013a5c0
TEST AL,AL
JZ 0x00185517
LAB_001854db:
MOV RDI,RBX
CALL 0x00139df0
MOV BL,0x1
JMP 0x0018553a
LAB_001854e7:
MOV ECX,dword ptr [R12 + 0x14]
LEA RDX,[0x1bd912]
XOR EBX,EBX
MOV R14,RSP
MOV ESI,0x400
MOV RDI,R14
MOV R8D,0xffff
XOR EAX,EAX
CALL 0x0013b650
MOV EDI,0x4
MOV RSI,R14
JMP 0x00185533
LAB_00185517:
TEST R13D,R13D
JZ 0x00185525
LEA RSI,[0x1bda1a]
JMP 0x0018552c
LAB_00185525:
LEA RSI,[0x1bd9b3]
LAB_0018552c:
XOR EBX,EBX
MOV EDI,0x4
LAB_00185533:
XOR EAX,EAX
CALL 0x00138330
LAB_0018553a:
MOV EAX,EBX
ADD RSP,0x408
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(OpenSubdiv::v3_6_0::Far::TopologyRefiner&,
bool, void (*)(OpenSubdiv::v3_6_0::Vtr::internal::Level::TopologyError, char const*, void
const*), void const*) */
ulong OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment
(TopologyRefiner *param_1,bool param_2,
_func_void_TopologyError_char_ptr_void_ptr *param_3,void *param_4)
{
int iVar1;
Level *this;
char cVar2;
ulong uVar3;
char *pcVar4;
char acStack_438 [1032];
pcVar4 = acStack_438;
this = (Level *)**(int8 **)(param_1 + 0x30);
iVar1 = *(int *)(this + 4);
if (iVar1 == 0) {
cVar2 = Vtr::internal::Level::completeTopologyFromFaceVertices(this);
if (cVar2 != '\0') goto LAB_001854c4;
snprintf(acStack_438,0x400,
"Failure in TopologyRefinerFactory<>::Create() -- vertex with valence %d > %d max.",
(ulong)*(uint *)(this + 0x14),0xffff);
}
else if (*(int *)(this + 0x14) == 0) {
pcVar4 = "Failure in TopologyRefinerFactory<>::Create() -- maximum valence not assigned.";
}
else {
LAB_001854c4:
if ((!param_2) ||
(cVar2 = Vtr::internal::Level::validateTopology(this,param_3,param_4), cVar2 != '\0')) {
TopologyRefiner::initializeInventory(param_1);
uVar3 = CONCAT71((int7)((ulong)param_1 >> 8),1);
goto LAB_0018553a;
}
if (iVar1 == 0) {
pcVar4 =
"Failure in TopologyRefinerFactory<>::Create() -- invalid topology detected from partial specification."
;
}
else {
pcVar4 =
"Failure in TopologyRefinerFactory<>::Create() -- invalid topology detected as fully specified."
;
}
}
uVar3 = 0;
Error(4,pcVar4);
LAB_0018553a:
return uVar3 & 0xffffffff;
}
| |
55,057 | OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(OpenSubdiv::v3_6_0::Far::TopologyRefiner&, bool, void (*)(OpenSubdiv::v3_6_0::Vtr::internal::Level::TopologyError, char const*, void const*), void const*) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/topologyRefinerFactory.cpp | bool
TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(
TopologyRefiner& refiner, bool fullValidation,
TopologyCallback callback, void const * callbackData) {
Vtr::internal::Level& baseLevel = refiner.getLevel(0);
bool completeMissingTopology = (baseLevel.getNumEdges() == 0);
if (completeMissingTopology) {
if (! baseLevel.completeTopologyFromFaceVertices()) {
char msg[1024];
snprintf(msg, 1024,
"Failure in TopologyRefinerFactory<>::Create() -- "
"vertex with valence %d > %d max.",
baseLevel.getMaxValence(), Vtr::VALENCE_LIMIT);
Error(FAR_RUNTIME_ERROR, msg);
return false;
}
} else {
if (baseLevel.getMaxValence() == 0) {
Error(FAR_RUNTIME_ERROR,
"Failure in TopologyRefinerFactory<>::Create() -- "
"maximum valence not assigned.");
return false;
}
}
if (fullValidation) {
if (! baseLevel.validateTopology(callback, callbackData)) {
if (completeMissingTopology) {
Error(FAR_RUNTIME_ERROR,
"Failure in TopologyRefinerFactory<>::Create() -- "
"invalid topology detected from partial specification.");
} else {
Error(FAR_RUNTIME_ERROR,
"Failure in TopologyRefinerFactory<>::Create() -- "
"invalid topology detected as fully specified.");
}
return false;
}
}
// Now that we have a valid base level, initialize the Refiner's
// component inventory:
refiner.initializeInventory();
return true;
} | O3 | cpp | OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(OpenSubdiv::v3_6_0::Far::TopologyRefiner&, bool, void (*)(OpenSubdiv::v3_6_0::Vtr::internal::Level::TopologyError, char const*, void const*), void const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp # imm = 0x408
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
movq 0x30(%rdi), %rax
movq (%rax), %r12
movl 0x4(%r12), %r13d
testl %r13d, %r13d
je 0x87d02
cmpl $0x0, 0x14(%r12)
jne 0x87d0e
leaq 0x39444(%rip), %rsi # 0xc1144
jmp 0x87d76
movq %r12, %rdi
callq 0x3a110
testb %al, %al
je 0x87d31
testb %bpl, %bpl
je 0x87d25
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3a5a0
testb %al, %al
je 0x87d61
movq %rbx, %rdi
callq 0x39dd0
movb $0x1, %bl
jmp 0x87d84
movl 0x14(%r12), %ecx
leaq 0x393b5(%rip), %rdx # 0xc10f2
xorl %ebx, %ebx
movq %rsp, %r14
movl $0x400, %esi # imm = 0x400
movq %r14, %rdi
movl $0xffff, %r8d # imm = 0xFFFF
xorl %eax, %eax
callq 0x3b610
movl $0x4, %edi
movq %r14, %rsi
jmp 0x87d7d
testl %r13d, %r13d
je 0x87d6f
leaq 0x3948d(%rip), %rsi # 0xc11fa
jmp 0x87d76
leaq 0x3941d(%rip), %rsi # 0xc1193
xorl %ebx, %ebx
movl $0x4, %edi
xorl %eax, %eax
callq 0x38330
movl %ebx, %eax
addq $0x408, %rsp # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN10OpenSubdiv6v3_6_03Far26TopologyRefinerFactoryBase34prepareComponentTopologyAssignmentERNS1_15TopologyRefinerEbPFvNS0_3Vtr8internal5Level13TopologyErrorEPKcPKvESC_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 408h
mov r14, rcx
mov r15, rdx
mov ebp, esi
mov rbx, rdi
mov rax, [rdi+30h]
mov r12, [rax]
mov r13d, [r12+4]
test r13d, r13d
jz short loc_87D02
cmp dword ptr [r12+14h], 0
jnz short loc_87D0E
lea rsi, aFailureInTopol_8; "Failure in TopologyRefinerFactory<>::Cr"...
jmp short loc_87D76
loc_87D02:
mov rdi, r12; this
call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level32completeTopologyFromFaceVerticesEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::completeTopologyFromFaceVertices(void)
test al, al
jz short loc_87D31
loc_87D0E:
test bpl, bpl
jz short loc_87D25
mov rdi, r12; this
mov rsi, r15
mov rdx, r14
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level16validateTopologyEPFvNS3_13TopologyErrorEPKcPKvES8_; OpenSubdiv::v3_6_0::Vtr::internal::Level::validateTopology(void (*)(OpenSubdiv::v3_6_0::Vtr::internal::Level::TopologyError,char const*,void const*),void const*)
test al, al
jz short loc_87D61
loc_87D25:
mov rdi, rbx; this
call __ZN10OpenSubdiv6v3_6_03Far15TopologyRefiner19initializeInventoryEv; OpenSubdiv::v3_6_0::Far::TopologyRefiner::initializeInventory(void)
mov bl, 1
jmp short loc_87D84
loc_87D31:
mov ecx, [r12+14h]
lea rdx, aFailureInTopol_9; "Failure in TopologyRefinerFactory<>::Cr"...
xor ebx, ebx
mov r14, rsp
mov esi, 400h
mov rdi, r14
mov r8d, 0FFFFh
xor eax, eax
call _snprintf
mov edi, 4
mov rsi, r14
jmp short loc_87D7D
loc_87D61:
test r13d, r13d
jz short loc_87D6F
lea rsi, aFailureInTopol_10; "Failure in TopologyRefinerFactory<>::Cr"...
jmp short loc_87D76
loc_87D6F:
lea rsi, aFailureInTopol_11; "Failure in TopologyRefinerFactory<>::Cr"...
loc_87D76:
xor ebx, ebx
mov edi, 4
loc_87D7D:
xor eax, eax
call __ZN10OpenSubdiv6v3_6_03Far5ErrorENS1_9ErrorTypeEPKcz; OpenSubdiv::v3_6_0::Far::Error(OpenSubdiv::v3_6_0::Far::ErrorType,char const*,...)
loc_87D84:
mov eax, ebx
add rsp, 408h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(
OpenSubdiv::v3_6_0::Far::TopologyRefiner *this,
char a2)
{
unsigned int v2; // ebx
OpenSubdiv::v3_6_0::Vtr::internal::Level **v3; // rax
OpenSubdiv::v3_6_0::Vtr::internal::Level *v4; // r12
int v5; // r13d
const char *v6; // rsi
int v8[48]; // [rsp+0h] [rbp-438h] BYREF
void *v9; // [rsp+C0h] [rbp-378h]
v2 = (unsigned int)this;
v3 = (OpenSubdiv::v3_6_0::Vtr::internal::Level **)*((_QWORD *)this + 6);
v4 = *v3;
v5 = *((_DWORD *)*v3 + 1);
if ( v5 )
{
if ( !*((_DWORD *)v4 + 5) )
{
v6 = "Failure in TopologyRefinerFactory<>::Create() -- maximum valence not assigned.";
LABEL_12:
v2 = 0;
OpenSubdiv::v3_6_0::Far::Error(4u, (long long)v6);
return v2;
}
}
else if ( !(unsigned __int8)OpenSubdiv::v3_6_0::Vtr::internal::Level::completeTopologyFromFaceVertices(*v3) )
{
v2 = 0;
snprintf(
v8,
1024LL,
"Failure in TopologyRefinerFactory<>::Create() -- vertex with valence %d > %d max.",
*((_DWORD *)v4 + 5),
0xFFFF);
OpenSubdiv::v3_6_0::Far::Error(4u, (long long)v8);
return v2;
}
if ( a2
&& !(unsigned __int8)OpenSubdiv::v3_6_0::Vtr::internal::Level::validateTopology(
v4,
v8[0],
v8[2],
v8[4],
v8[6],
v8[8],
v8[10],
v8[12],
v8[14],
v8[16],
v8[18],
v8[20],
v8[22],
v8[24],
v8[26],
v8[28],
v8[30],
v8[32],
v8[34],
v8[36],
v8[38],
v8[40],
v8[42],
v8[44],
v8[46],
v9) )
{
if ( v5 )
v6 = "Failure in TopologyRefinerFactory<>::Create() -- invalid topology detected as fully specified.";
else
v6 = "Failure in TopologyRefinerFactory<>::Create() -- invalid topology detected from partial specification.";
goto LABEL_12;
}
OpenSubdiv::v3_6_0::Far::TopologyRefiner::initializeInventory(this);
LOBYTE(v2) = 1;
return v2;
}
| prepareComponentTopologyAssignment:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x408
MOV R14,RCX
MOV R15,RDX
MOV EBP,ESI
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x30]
MOV R12,qword ptr [RAX]
MOV R13D,dword ptr [R12 + 0x4]
TEST R13D,R13D
JZ 0x00187d02
CMP dword ptr [R12 + 0x14],0x0
JNZ 0x00187d0e
LEA RSI,[0x1c1144]
JMP 0x00187d76
LAB_00187d02:
MOV RDI,R12
CALL 0x0013a110
TEST AL,AL
JZ 0x00187d31
LAB_00187d0e:
TEST BPL,BPL
JZ 0x00187d25
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
CALL 0x0013a5a0
TEST AL,AL
JZ 0x00187d61
LAB_00187d25:
MOV RDI,RBX
CALL 0x00139dd0
MOV BL,0x1
JMP 0x00187d84
LAB_00187d31:
MOV ECX,dword ptr [R12 + 0x14]
LEA RDX,[0x1c10f2]
XOR EBX,EBX
MOV R14,RSP
MOV ESI,0x400
MOV RDI,R14
MOV R8D,0xffff
XOR EAX,EAX
CALL 0x0013b610
MOV EDI,0x4
MOV RSI,R14
JMP 0x00187d7d
LAB_00187d61:
TEST R13D,R13D
JZ 0x00187d6f
LEA RSI,[0x1c11fa]
JMP 0x00187d76
LAB_00187d6f:
LEA RSI,[0x1c1193]
LAB_00187d76:
XOR EBX,EBX
MOV EDI,0x4
LAB_00187d7d:
XOR EAX,EAX
CALL 0x00138330
LAB_00187d84:
MOV EAX,EBX
ADD RSP,0x408
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment(OpenSubdiv::v3_6_0::Far::TopologyRefiner&,
bool, void (*)(OpenSubdiv::v3_6_0::Vtr::internal::Level::TopologyError, char const*, void
const*), void const*) */
ulong OpenSubdiv::v3_6_0::Far::TopologyRefinerFactoryBase::prepareComponentTopologyAssignment
(TopologyRefiner *param_1,bool param_2,
_func_void_TopologyError_char_ptr_void_ptr *param_3,void *param_4)
{
int iVar1;
Level *this;
char cVar2;
ulong uVar3;
char *pcVar4;
char acStack_438 [1032];
pcVar4 = acStack_438;
this = (Level *)**(int8 **)(param_1 + 0x30);
iVar1 = *(int *)(this + 4);
if (iVar1 == 0) {
cVar2 = Vtr::internal::Level::completeTopologyFromFaceVertices(this);
if (cVar2 != '\0') goto LAB_00187d0e;
snprintf(acStack_438,0x400,
"Failure in TopologyRefinerFactory<>::Create() -- vertex with valence %d > %d max.",
(ulong)*(uint *)(this + 0x14),0xffff);
}
else if (*(int *)(this + 0x14) == 0) {
pcVar4 = "Failure in TopologyRefinerFactory<>::Create() -- maximum valence not assigned.";
}
else {
LAB_00187d0e:
if ((!param_2) ||
(cVar2 = Vtr::internal::Level::validateTopology(this,param_3,param_4), cVar2 != '\0')) {
TopologyRefiner::initializeInventory(param_1);
uVar3 = CONCAT71((int7)((ulong)param_1 >> 8),1);
goto LAB_00187d84;
}
if (iVar1 == 0) {
pcVar4 =
"Failure in TopologyRefinerFactory<>::Create() -- invalid topology detected from partial specification."
;
}
else {
pcVar4 =
"Failure in TopologyRefinerFactory<>::Create() -- invalid topology detected as fully specified."
;
}
}
uVar3 = 0;
Error(4,pcVar4);
LAB_00187d84:
return uVar3 & 0xffffffff;
}
| |
55,058 | minja::Parser::parseCallArgs() | monkey531[P]llama/common/./minja.hpp | ArgumentsExpression parseCallArgs() {
consumeSpaces();
if (consumeToken("(").empty()) throw std::runtime_error("Expected opening parenthesis in call args");
ArgumentsExpression result;
while (it != end) {
if (!consumeToken(")").empty()) {
return result;
}
auto expr = parseExpression();
if (!expr) throw std::runtime_error("Expected expression in call args");
if (auto ident = dynamic_cast<VariableExpr*>(expr.get())) {
if (!consumeToken("=").empty()) {
auto value = parseExpression();
if (!value) throw std::runtime_error("Expected expression in for named arg");
result.kwargs.emplace_back(ident->get_name(), std::move(value));
} else {
result.args.emplace_back(std::move(expr));
}
} else {
result.args.emplace_back(std::move(expr));
}
if (consumeToken(",").empty()) {
if (consumeToken(")").empty()) {
throw std::runtime_error("Expected closing parenthesis in call args");
}
return result;
}
}
throw std::runtime_error("Expected closing parenthesis in call args");
} | O2 | cpp | minja::Parser::parseCallArgs():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r12
movq %rdi, 0x10(%rsp)
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x398f8
leaq 0x6a4c6(%rip), %rsi # 0xa9048
leaq 0x30(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x262e2
leaq 0x58(%rsp), %rdi
leaq 0x30(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r12, %rsi
callq 0x2fa28
leaq 0x58(%rsp), %rdi
movq 0x8(%rdi), %rbx
callq 0x20d78
leaq 0x30(%rsp), %rdi
callq 0x20d78
testq %rbx, %rbx
je 0x3ee9f
xorps %xmm0, %xmm0
movq 0x10(%rsp), %rax
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
addq $0x18, %rax
movq %rax, 0x50(%rsp)
movq $0x0, 0x28(%rsp)
leaq 0x30(%rsp), %r15
leaq 0x18(%rsp), %r14
leaq 0x58(%rsp), %rbx
pushq $0x1
popq %r13
movq 0x20(%r12), %rax
cmpq 0x18(%r12), %rax
je 0x3edf1
movq %r15, %rdi
leaq 0x6a10e(%rip), %rsi # 0xa8d27
movq %r14, %rdx
callq 0x262e2
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %r13d, %ecx
callq 0x2fa28
movq 0x60(%rsp), %rbp
movq %rbx, %rdi
callq 0x20d78
movq %r15, %rdi
callq 0x20d78
testq %rbp, %rbp
jne 0x3eddd
movq %r14, %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0x2f20e
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3ee23
leaq 0xa15dd(%rip), %rsi # 0xe0250
leaq 0xa1b3e(%rip), %rdx # 0xe07b8
xorl %ecx, %ecx
callq 0x20780
testq %rax, %rax
je 0x3ed1e
movq %rax, %rbp
movq %r15, %rdi
leaq 0x5b642(%rip), %rsi # 0x9a2d9
leaq 0xf(%rsp), %rdx
callq 0x262e2
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %r13d, %ecx
callq 0x2fa28
movq 0x60(%rsp), %r14
movq %rbx, %rdi
callq 0x20d78
movq %r15, %rdi
callq 0x20d78
testq %r14, %r14
leaq 0x18(%rsp), %r14
je 0x3ed1e
movq %r15, %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0x2f20e
cmpq $0x0, 0x30(%rsp)
je 0x3ee3f
addq $0x20, %rbp
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x20920
movq 0x50(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x4c26e
movq %rbx, %rdi
callq 0x20d78
leaq 0x38(%rsp), %rdi
callq 0x2eeb2
jmp 0x3ed2b
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x3dcb6
movq %r15, %rdi
leaq 0x5f349(%rip), %rsi # 0x9e07e
leaq 0xf(%rsp), %rdx
callq 0x262e2
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %r13d, %ecx
callq 0x2fa28
movq 0x60(%rsp), %rbp
movq %rbx, %rdi
callq 0x20d78
movq %r15, %rdi
callq 0x20d78
testq %rbp, %rbp
jne 0x3edb9
movq %r15, %rdi
leaq 0x69fb3(%rip), %rsi # 0xa8d27
leaq 0xf(%rsp), %rdx
callq 0x262e2
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %r13d, %ecx
callq 0x2fa28
movq 0x60(%rsp), %r14
movq %rbx, %rdi
callq 0x20d78
movq %r15, %rdi
callq 0x20d78
movb $0x1, %al
movq %rax, 0x28(%rsp)
testq %r14, %r14
leaq 0x18(%rsp), %r14
je 0x3ee6f
leaq 0x20(%rsp), %rdi
callq 0x2eeb2
testq %rbp, %rbp
jne 0x3ebff
testb $0x1, 0x28(%rsp)
jne 0x3eddd
movq 0x10(%rsp), %rdi
callq 0x3efbe
movq 0x10(%rsp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x20390
movq %rax, %r14
leaq 0x5f639(%rip), %rsi # 0x9e43c
movq %rax, %rdi
callq 0x20280
movq 0xa31d6(%rip), %rsi # 0xe1fe8
movq 0xa3157(%rip), %rdx # 0xe1f70
movq %r14, %rdi
callq 0x20b30
jmp 0x3ee6f
pushq $0x10
popq %rdi
callq 0x20390
movq %rax, %r14
leaq 0x5f5c1(%rip), %rsi # 0x9e3f6
movq %rax, %rdi
callq 0x20280
jmp 0x3ee89
pushq $0x10
popq %rdi
callq 0x20390
movq %rax, %r14
leaq 0x5f5c6(%rip), %rsi # 0x9e417
movq %rax, %rdi
callq 0x20280
movq 0xa3188(%rip), %rsi # 0xe1fe8
movq 0xa3109(%rip), %rdx # 0xe1f70
movq %r14, %rdi
callq 0x20b30
pushq $0x10
popq %rdi
callq 0x20390
movq %rax, %r14
leaq 0x5f5bb(%rip), %rsi # 0x9e43c
movq %rax, %rdi
callq 0x20280
movq 0xa3158(%rip), %rsi # 0xe1fe8
movq 0xa30d9(%rip), %rdx # 0xe1f70
movq %r14, %rdi
callq 0x20b30
pushq $0x10
popq %rdi
callq 0x20390
movq %rax, %r14
leaq 0x5f51b(%rip), %rsi # 0x9e3cc
movq %rax, %rdi
callq 0x20280
movq 0xa3128(%rip), %rsi # 0xe1fe8
movq 0xa30a9(%rip), %rdx # 0xe1f70
movq %r14, %rdi
callq 0x20b30
movq %rax, %rbx
movq %r14, %rdi
callq 0x20520
jmp 0x3ef8e
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x20d78
jmp 0x3ef8e
movq %rax, %rbx
jmp 0x3ef8e
jmp 0x3ef2e
jmp 0x3ef1d
movq %rax, %rbx
movq %r14, %rdi
callq 0x20520
jmp 0x3ef20
jmp 0x3ef63
jmp 0x3ef54
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x20d78
jmp 0x3ef20
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x2eeb2
jmp 0x3ef66
jmp 0x3ef63
movq %rax, %rbx
movq %r14, %rdi
callq 0x20520
jmp 0x3ef66
jmp 0x3ef81
movq %rax, %rbx
movq %r14, %rdi
callq 0x20520
jmp 0x3ef84
jmp 0x3ef63
jmp 0x3ef63
jmp 0x3ef54
jmp 0x3ef63
jmp 0x3ef81
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x20d78
jmp 0x3ef66
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x2eeb2
jmp 0x3ef84
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x20d78
jmp 0x3ef84
movq %rax, %rbx
movq 0x10(%rsp), %rdi
callq 0x3efbe
movq %rbx, %rdi
callq 0x20b90
| _ZN5minja6Parser13parseCallArgsEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r12, rsi
mov [rsp+0A8h+var_98], rdi
push 1
pop rsi
mov rdi, r12
call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling)
lea rsi, asc_A9043+5; "("
lea rdi, [rsp+0A8h+var_78]
lea rdx, [rsp+0A8h+lpsrc]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_50]
lea rdx, [rsp+0A8h+var_78]
push 1
pop rcx
mov rsi, r12
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rdi, [rsp+0A8h+var_50]; void *
mov rbx, [rdi+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbx, rbx
jz loc_3EE9F
xorps xmm0, xmm0
mov rax, [rsp+0A8h+var_98]
movups xmmword ptr [rax+20h], xmm0
movups xmmword ptr [rax+10h], xmm0
movups xmmword ptr [rax], xmm0
add rax, 18h
mov [rsp+0A8h+var_58], rax
mov [rsp+0A8h+var_80], 0
lea r15, [rsp+0A8h+var_78]
lea r14, [rsp+0A8h+lpsrc]
lea rbx, [rsp+0A8h+var_50]
push 1
pop r13
loc_3EBFF:
mov rax, [r12+20h]
cmp rax, [r12+18h]
jz loc_3EDF1
mov rdi, r15
lea rsi, a09401910201912+51h; ")"
mov rdx, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov ecx, r13d
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rbp, [rsp+0A8h+var_48]
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbp, rbp
jnz loc_3EDDD
mov rdi, r14; this
mov rsi, r12; bool
mov edx, r13d
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
mov rdi, [rsp+0A8h+lpsrc]; lpsrc
test rdi, rdi
jz loc_3EE23
lea rsi, _ZTIN5minja10ExpressionE; lpstype
lea rdx, _ZTIN5minja12VariableExprE; lpdtype
xor ecx, ecx; s2d
call ___dynamic_cast
test rax, rax
jz loc_3ED1E
mov rbp, rax
mov rdi, r15
lea rsi, asc_9A2D8+1; "="
lea rdx, [rsp+0A8h+var_99]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov ecx, r13d
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov r14, [rsp+0A8h+var_48]
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r14, r14
lea r14, [rsp+0A8h+lpsrc]
jz short loc_3ED1E
mov rdi, r15; this
mov rsi, r12; bool
mov edx, r13d
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
cmp [rsp+0A8h+var_78], 0
jz loc_3EE3F
add rbp, 20h ; ' '
mov rdi, rbx
mov rsi, rbp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
mov rdi, [rsp+0A8h+var_58]
mov rsi, rbx
mov rdx, r15
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EE12emplace_backIJS6_SA_EEERSB_DpOT_; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::emplace_back<std::string,std::shared_ptr<minja::Expression>>(std::string,std::shared_ptr<minja::Expression> &&)
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_70]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_3ED2B
loc_3ED1E:
mov rdi, [rsp+0A8h+var_98]
mov rsi, r14
call _ZNSt6vectorISt10shared_ptrIN5minja10ExpressionEESaIS3_EE12emplace_backIJS3_EEERS3_DpOT_; std::vector<std::shared_ptr<minja::Expression>>::emplace_back<std::shared_ptr<minja::Expression>>(std::shared_ptr<minja::Expression> &&)
loc_3ED2B:
mov rdi, r15
lea rsi, asc_9E07E; ","
lea rdx, [rsp+0A8h+var_99]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov ecx, r13d
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rbp, [rsp+0A8h+var_48]
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbp, rbp
jnz short loc_3EDB9
mov rdi, r15
lea rsi, a09401910201912+51h; ")"
lea rdx, [rsp+0A8h+var_99]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov ecx, r13d
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov r14, [rsp+0A8h+var_48]
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov al, 1
mov [rsp+0A8h+var_80], rax
test r14, r14
lea r14, [rsp+0A8h+lpsrc]
jz loc_3EE6F
loc_3EDB9:
lea rdi, [rsp+0A8h+var_88]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
test rbp, rbp
jnz loc_3EBFF
test byte ptr [rsp+0A8h+var_80], 1
jnz short loc_3EDDD
mov rdi, [rsp+0A8h+var_98]; this
call _ZN5minja19ArgumentsExpressionD2Ev; minja::ArgumentsExpression::~ArgumentsExpression()
loc_3EDDD:
mov rax, [rsp+0A8h+var_98]
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3EDF1:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedClosin_1; "Expected closing parenthesis in call ar"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_3EE6F
loc_3EE23:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExpres_0; "Expected expression in call args"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_3EE89
loc_3EE3F:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExpres_1; "Expected expression in for named arg"
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
loc_3EE6F:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedClosin_1; "Expected closing parenthesis in call ar"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_3EE89:
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_3EE9F:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedOpenin_0; "Expected opening parenthesis in call ar"...
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 rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp loc_3EF8E
mov rbx, rax
lea rdi, [rsp+0A8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp loc_3EF8E
mov rbx, rax
jmp loc_3EF8E
jmp short loc_3EF2E
jmp short loc_3EF1D
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_3EF20
jmp short loc_3EF63
jmp short loc_3EF54
mov rbx, rax
lea rdi, [rsp+0A8h+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3EF20
loc_3EF1D:
mov rbx, rax
loc_3EF20:
lea rdi, [rsp+0A8h+var_70]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_3EF66
jmp short loc_3EF63
loc_3EF2E:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_3EF66
jmp short loc_3EF81
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_3EF84
jmp short loc_3EF63
jmp short loc_3EF63
jmp short loc_3EF54
jmp short loc_3EF63
jmp short loc_3EF81
loc_3EF54:
mov rbx, rax
lea rdi, [rsp+0A8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3EF66
loc_3EF63:
mov rbx, rax
loc_3EF66:
lea rdi, [rsp+0A8h+var_88]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_3EF84
mov rbx, rax
lea rdi, [rsp+0A8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3EF84
loc_3EF81:
mov rbx, rax
loc_3EF84:
mov rdi, [rsp+0A8h+var_98]; this
call _ZN5minja19ArgumentsExpressionD2Ev; minja::ArgumentsExpression::~ArgumentsExpression()
loc_3EF8E:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseCallArgs(minja::Parser *this, _QWORD *a2)
{
long long v2; // rbx
long long v3; // rbp
char *v4; // rax
char *v5; // rbp
long long v6; // r14
long long v7; // rbp
long long v8; // r14
long long v9; // rax
std::runtime_error *v11; // r14
std::runtime_error *v12; // r14
std::runtime_error *v13; // r14
std::runtime_error *exception; // r14
__int128 lpsrc; // [rsp+18h] [rbp-90h] BYREF
long long v16; // [rsp+28h] [rbp-80h]
long long v17; // [rsp+30h] [rbp-78h] BYREF
long long v18[3]; // [rsp+38h] [rbp-70h] BYREF
char *v19; // [rsp+50h] [rbp-58h]
long long v20; // [rsp+58h] [rbp-50h] BYREF
long long v21; // [rsp+60h] [rbp-48h]
minja::Parser::consumeSpaces((long long)a2, 1);
std::string::basic_string<std::allocator<char>>(&v17, (long long)"(");
minja::Parser::consumeToken(&v20, (long long)a2, &v17, 1u);
v2 = v21;
std::string::~string(&v20);
std::string::~string(&v17);
if ( !v2 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected opening parenthesis in call args");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
*((_OWORD *)this + 2) = 0LL;
*((_OWORD *)this + 1) = 0LL;
*(_OWORD *)this = 0LL;
v19 = (char *)this + 24;
v16 = 0LL;
do
{
if ( a2[4] == a2[3] )
{
v11 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v11, "Expected closing parenthesis in call args");
__cxa_throw(
v11,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
std::string::basic_string<std::allocator<char>>(&v17, (long long)")");
minja::Parser::consumeToken(&v20, (long long)a2, &v17, 1u);
v3 = v21;
std::string::~string(&v20);
std::string::~string(&v17);
if ( v3 )
return this;
minja::Parser::parseExpression((minja::Parser *)&lpsrc, a2, 1);
if ( !(_QWORD)lpsrc )
{
v12 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v12, "Expected expression in call args");
goto LABEL_21;
}
v4 = (char *)__dynamic_cast(
(const void *)lpsrc,
(const struct __class_type_info *)&`typeinfo for'minja::Expression,
(const struct __class_type_info *)&`typeinfo for'minja::VariableExpr,
0LL);
if ( v4
&& (v5 = v4,
std::string::basic_string<std::allocator<char>>(&v17, (long long)"="),
minja::Parser::consumeToken(&v20, (long long)a2, &v17, 1u),
v6 = v21,
std::string::~string(&v20),
std::string::~string(&v17),
v6) )
{
minja::Parser::parseExpression((minja::Parser *)&v17, a2, 1);
if ( !v17 )
{
v13 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v13, "Expected expression in for named arg");
__cxa_throw(
v13,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
std::string::basic_string(&v20, v5 + 32);
std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::emplace_back<std::string,std::shared_ptr<minja::Expression>>(
v19,
&v20,
&v17);
std::string::~string(&v20);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v18);
}
else
{
std::vector<std::shared_ptr<minja::Expression>>::emplace_back<std::shared_ptr<minja::Expression>>(
(long long)this,
&lpsrc);
}
std::string::basic_string<std::allocator<char>>(&v17, (long long)",");
minja::Parser::consumeToken(&v20, (long long)a2, &v17, 1u);
v7 = v21;
std::string::~string(&v20);
std::string::~string(&v17);
if ( !v7 )
{
std::string::basic_string<std::allocator<char>>(&v17, (long long)")");
minja::Parser::consumeToken(&v20, (long long)a2, &v17, 1u);
v8 = v21;
std::string::~string(&v20);
std::string::~string(&v17);
LOBYTE(v9) = 1;
v16 = v9;
if ( !v8 )
{
v12 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v12, "Expected closing parenthesis in call args");
LABEL_21:
__cxa_throw(
v12,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&lpsrc + 1);
}
while ( v7 );
if ( (v16 & 1) == 0 )
minja::ArgumentsExpression::~ArgumentsExpression(this);
return this;
}
| parseCallArgs:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R12,RSI
MOV qword ptr [RSP + 0x10],RDI
PUSH 0x1
POP RSI
MOV RDI,R12
CALL 0x001398f8
LAB_0013eb7b:
LEA RSI,[0x1a9048]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0x18]
CALL 0x001262e2
LAB_0013eb91:
LEA RDI,[RSP + 0x58]
LEA RDX,[RSP + 0x30]
PUSH 0x1
POP RCX
MOV RSI,R12
CALL 0x0012fa28
LEA RDI,[RSP + 0x58]
MOV RBX,qword ptr [RDI + 0x8]
CALL 0x00120d78
LEA RDI,[RSP + 0x30]
CALL 0x00120d78
TEST RBX,RBX
JZ 0x0013ee9f
XORPS XMM0,XMM0
MOV RAX,qword ptr [RSP + 0x10]
MOVUPS xmmword ptr [RAX + 0x20],XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOVUPS xmmword ptr [RAX],XMM0
ADD RAX,0x18
MOV qword ptr [RSP + 0x50],RAX
MOV qword ptr [RSP + 0x28],0x0
LEA R15,[RSP + 0x30]
LEA R14,[RSP + 0x18]
LEA RBX,[RSP + 0x58]
PUSH 0x1
POP R13
LAB_0013ebff:
MOV RAX,qword ptr [R12 + 0x20]
CMP RAX,qword ptr [R12 + 0x18]
JZ 0x0013edf1
LAB_0013ec0f:
MOV RDI,R15
LEA RSI,[0x1a8d27]
MOV RDX,R14
CALL 0x001262e2
LAB_0013ec21:
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
MOV ECX,R13D
CALL 0x0012fa28
MOV RBP,qword ptr [RSP + 0x60]
MOV RDI,RBX
CALL 0x00120d78
MOV RDI,R15
CALL 0x00120d78
TEST RBP,RBP
JNZ 0x0013eddd
LAB_0013ec50:
MOV RDI,R14
MOV RSI,R12
MOV EDX,R13D
CALL 0x0012f20e
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x0013ee23
LEA RSI,[0x1e0250]
LEA RDX,[0x1e07b8]
XOR ECX,ECX
CALL 0x00120780
TEST RAX,RAX
JZ 0x0013ed1e
LAB_0013ec8a:
MOV RBP,RAX
MOV RDI,R15
LEA RSI,[0x19a2d9]
LEA RDX,[RSP + 0xf]
CALL 0x001262e2
LAB_0013eca1:
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
MOV ECX,R13D
CALL 0x0012fa28
MOV R14,qword ptr [RSP + 0x60]
MOV RDI,RBX
CALL 0x00120d78
MOV RDI,R15
CALL 0x00120d78
TEST R14,R14
LEA R14,[RSP + 0x18]
JZ 0x0013ed1e
LAB_0013ecd1:
MOV RDI,R15
MOV RSI,R12
MOV EDX,R13D
CALL 0x0012f20e
CMP qword ptr [RSP + 0x30],0x0
JZ 0x0013ee3f
ADD RBP,0x20
LAB_0013ecef:
MOV RDI,RBX
MOV RSI,RBP
CALL 0x00120920
LAB_0013ecfa:
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,RBX
MOV RDX,R15
CALL 0x0014c26e
MOV RDI,RBX
CALL 0x00120d78
LEA RDI,[RSP + 0x38]
CALL 0x0012eeb2
JMP 0x0013ed2b
LAB_0013ed1e:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,R14
CALL 0x0013dcb6
LAB_0013ed2b:
MOV RDI,R15
LEA RSI,[0x19e07e]
LEA RDX,[RSP + 0xf]
CALL 0x001262e2
LAB_0013ed3f:
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
MOV ECX,R13D
CALL 0x0012fa28
MOV RBP,qword ptr [RSP + 0x60]
MOV RDI,RBX
CALL 0x00120d78
MOV RDI,R15
CALL 0x00120d78
TEST RBP,RBP
JNZ 0x0013edb9
LAB_0013ed6a:
MOV RDI,R15
LEA RSI,[0x1a8d27]
LEA RDX,[RSP + 0xf]
CALL 0x001262e2
LAB_0013ed7e:
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
MOV ECX,R13D
CALL 0x0012fa28
LAB_0013ed8f:
MOV R14,qword ptr [RSP + 0x60]
MOV RDI,RBX
CALL 0x00120d78
MOV RDI,R15
CALL 0x00120d78
MOV AL,0x1
MOV qword ptr [RSP + 0x28],RAX
TEST R14,R14
LEA R14,[RSP + 0x18]
JZ 0x0013ee6f
LAB_0013edb9:
LEA RDI,[RSP + 0x20]
CALL 0x0012eeb2
TEST RBP,RBP
JNZ 0x0013ebff
TEST byte ptr [RSP + 0x28],0x1
JNZ 0x0013eddd
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0013efbe
LAB_0013eddd:
MOV RAX,qword ptr [RSP + 0x10]
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013edf1:
PUSH 0x10
POP RDI
CALL 0x00120390
MOV R14,RAX
LAB_0013edfc:
LEA RSI,[0x19e43c]
MOV RDI,RAX
CALL 0x00120280
LAB_0013ee0b:
MOV RSI,qword ptr [0x001e1fe8]
MOV RDX,qword ptr [0x001e1f70]
MOV RDI,R14
CALL 0x00120b30
LAB_0013ee23:
PUSH 0x10
POP RDI
CALL 0x00120390
MOV R14,RAX
LAB_0013ee2e:
LEA RSI,[0x19e3f6]
MOV RDI,RAX
CALL 0x00120280
LAB_0013ee3d:
JMP 0x0013ee89
LAB_0013ee3f:
PUSH 0x10
POP RDI
CALL 0x00120390
MOV R14,RAX
LAB_0013ee4a:
LEA RSI,[0x19e417]
MOV RDI,RAX
CALL 0x00120280
LAB_0013ee59:
MOV RSI,qword ptr [0x001e1fe8]
MOV RDX,qword ptr [0x001e1f70]
MOV RDI,R14
CALL 0x00120b30
LAB_0013ee6f:
PUSH 0x10
POP RDI
CALL 0x00120390
MOV R14,RAX
LAB_0013ee7a:
LEA RSI,[0x19e43c]
MOV RDI,RAX
CALL 0x00120280
LAB_0013ee89:
MOV RSI,qword ptr [0x001e1fe8]
MOV RDX,qword ptr [0x001e1f70]
MOV RDI,R14
CALL 0x00120b30
LAB_0013ee9f:
PUSH 0x10
POP RDI
CALL 0x00120390
MOV R14,RAX
LAB_0013eeaa:
LEA RSI,[0x19e3cc]
MOV RDI,RAX
CALL 0x00120280
LAB_0013eeb9:
MOV RSI,qword ptr [0x001e1fe8]
MOV RDX,qword ptr [0x001e1f70]
MOV RDI,R14
CALL 0x00120b30
|
/* minja::Parser::parseCallArgs() */
ArgumentsExpression * minja::Parser::parseCallArgs(void)
{
long lVar1;
long lVar2;
int8 uVar3;
runtime_error *prVar4;
long in_RSI;
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
*in_RDI;
allocator local_99;
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
*local_98;
long local_90;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_88 [8];
ulong local_80;
long local_78;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_70 [24];
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
*local_58;
string local_50 [8];
long local_48;
local_98 = in_RDI;
consumeSpaces();
/* try { // try from 0013eb7b to 0013eb90 has its CatchHandler @ 0013eef1 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_78,"(",(allocator *)&local_90)
;
/* try { // try from 0013eb91 to 0013eba5 has its CatchHandler @ 0013eedf */
consumeToken(local_50);
lVar2 = local_48;
std::__cxx11::string::~string(local_50);
std::__cxx11::string::~string((string *)&local_78);
if (lVar2 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0013eeaa to 0013eeb8 has its CatchHandler @ 0013eecf */
std::runtime_error::runtime_error(prVar4,"Expected opening parenthesis in call args");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_001e1fe8,PTR__runtime_error_001e1f70);
}
*(int8 *)(local_98 + 0x20) = 0;
*(int8 *)(local_98 + 0x28) = 0;
*(int8 *)(local_98 + 0x10) = 0;
*(int8 *)(local_98 + 0x18) = 0;
*(int8 *)local_98 = 0;
*(int8 *)(local_98 + 8) = 0;
local_58 = local_98 + 0x18;
local_80 = 0;
do {
if (*(long *)(in_RSI + 0x20) == *(long *)(in_RSI + 0x18)) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0013edfc to 0013ee0a has its CatchHandler @ 0013ef3d */
std::runtime_error::runtime_error(prVar4,"Expected closing parenthesis in call args");
/* try { // try from 0013ee0b to 0013ee20 has its CatchHandler @ 0013ef3b */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_001e1fe8,PTR__runtime_error_001e1f70);
}
/* try { // try from 0013ec0f to 0013ec20 has its CatchHandler @ 0013ef81 */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_78,")",(allocator *)&local_90);
/* try { // try from 0013ec21 to 0013ec31 has its CatchHandler @ 0013ef72 */
consumeToken(local_50);
lVar2 = local_48;
std::__cxx11::string::~string(local_50);
std::__cxx11::string::~string((string *)&local_78);
if (lVar2 != 0) {
return (ArgumentsExpression *)local_98;
}
/* try { // try from 0013ec50 to 0013ec5d has its CatchHandler @ 0013ef52 */
parseExpression(SUB81((allocator *)&local_90,0));
if (local_90 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0013ee2e to 0013ee3c has its CatchHandler @ 0013ef2e */
std::runtime_error::runtime_error(prVar4,"Expected expression in call args");
goto LAB_0013ee89;
}
lVar2 = __dynamic_cast(local_90,&Expression::typeinfo,&VariableExpr::typeinfo,0);
if (lVar2 == 0) {
LAB_0013ed1e:
/* try { // try from 0013ed1e to 0013ed2a has its CatchHandler @ 0013ef4a */
std::
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
::emplace_back<std::shared_ptr<minja::Expression>>(local_98,(shared_ptr *)&local_90);
}
else {
/* try { // try from 0013ec8a to 0013eca0 has its CatchHandler @ 0013ef4c */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_78,"=",&local_99);
/* try { // try from 0013eca1 to 0013ecb1 has its CatchHandler @ 0013ef4e */
consumeToken(local_50);
lVar1 = local_48;
std::__cxx11::string::~string(local_50);
std::__cxx11::string::~string((string *)&local_78);
if (lVar1 == 0) goto LAB_0013ed1e;
/* try { // try from 0013ecd1 to 0013ecde has its CatchHandler @ 0013ef2c */
parseExpression(SUB81((string *)&local_78,0));
if (local_78 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0013ee4a to 0013ee58 has its CatchHandler @ 0013eefd */
std::runtime_error::runtime_error(prVar4,"Expected expression in for named arg");
/* try { // try from 0013ee59 to 0013ee6e has its CatchHandler @ 0013eefb */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_001e1fe8,PTR__runtime_error_001e1f70);
}
/* try { // try from 0013ecef to 0013ecf9 has its CatchHandler @ 0013ef1d */
std::__cxx11::string::string(local_50,(string *)(lVar2 + 0x20));
/* try { // try from 0013ecfa to 0013ed09 has its CatchHandler @ 0013ef0e */
std::
vector<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>>>
::emplace_back<std::__cxx11::string,std::shared_ptr<minja::Expression>>
((vector<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>>>
*)local_58,local_50,(shared_ptr *)&local_78);
std::__cxx11::string::~string(local_50);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_70);
}
/* try { // try from 0013ed2b to 0013ed3e has its CatchHandler @ 0013ef63 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_78,",",&local_99);
/* try { // try from 0013ed3f to 0013ed4f has its CatchHandler @ 0013ef54 */
consumeToken(local_50);
lVar2 = local_48;
std::__cxx11::string::~string(local_50);
std::__cxx11::string::~string((string *)&local_78);
if (lVar2 == 0) {
/* try { // try from 0013ed6a to 0013ed7d has its CatchHandler @ 0013ef0a */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_78,")",&local_99);
/* try { // try from 0013ed7e to 0013ed8e has its CatchHandler @ 0013ef0c */
consumeToken(local_50);
lVar1 = local_48;
std::__cxx11::string::~string(local_50);
uVar3 = std::__cxx11::string::~string((string *)&local_78);
local_80 = CONCAT71((int7)((ulong)uVar3 >> 8),1);
if (lVar1 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0013ee7a to 0013ee88 has its CatchHandler @ 0013eef9 */
std::runtime_error::runtime_error(prVar4,"Expected closing parenthesis in call args");
LAB_0013ee89:
/* try { // try from 0013ee89 to 0013ee9e has its CatchHandler @ 0013ef50 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_001e1fe8,PTR__runtime_error_001e1f70);
}
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_88);
if (lVar2 == 0) {
if ((local_80 & 1) == 0) {
ArgumentsExpression::~ArgumentsExpression((ArgumentsExpression *)local_98);
}
return (ArgumentsExpression *)local_98;
}
} while( true );
}
| |
55,059 | unlink_block | eloqsql/mysys/mf_keycache.c | static void unlink_block(SIMPLE_KEY_CACHE_CB *keycache, BLOCK_LINK *block)
{
DBUG_ASSERT((block->status & ~BLOCK_CHANGED) == (BLOCK_READ | BLOCK_IN_USE));
DBUG_ASSERT(block->hash_link); /*backptr to block NULL from free_block()*/
DBUG_ASSERT(!block->requests);
DBUG_ASSERT(block->prev_changed && *block->prev_changed == block);
DBUG_ASSERT(block->next_used && block->prev_used &&
(block->next_used->prev_used == &block->next_used) &&
(*block->prev_used == block));
if (block->next_used == block)
/* The list contains only one member */
keycache->used_last= keycache->used_ins= NULL;
else
{
block->next_used->prev_used= block->prev_used;
*block->prev_used= block->next_used;
if (keycache->used_last == block)
keycache->used_last= STRUCT_PTR(BLOCK_LINK, next_used, block->prev_used);
if (keycache->used_ins == block)
keycache->used_ins=STRUCT_PTR(BLOCK_LINK, next_used, block->prev_used);
}
block->next_used= NULL;
#ifdef DBUG_ASSERT_EXISTS
/*
This makes it easier to see it's not in a chain during debugging.
And some DBUG_ASSERT() rely on it.
*/
block->prev_used= NULL;
#endif
KEYCACHE_THREAD_TRACE("unlink_block");
#if defined(KEYCACHE_DEBUG)
KEYCACHE_DBUG_ASSERT(keycache->blocks_available != 0);
keycache->blocks_available--;
KEYCACHE_DBUG_PRINT("unlink_block",
("unlinked block %u status=%x #requests=%u #available=%u",
BLOCK_NUMBER(block), block->status,
block->requests, keycache->blocks_available));
#endif
} | O0 | c | unlink_block:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
jmp 0x73fee
jmp 0x73ff0
jmp 0x73ff2
jmp 0x73ff4
jmp 0x73ff6
jmp 0x73ff8
jmp 0x73ffa
jmp 0x73ffc
jmp 0x73ffe
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpq -0x10(%rbp), %rax
jne 0x7402b
movq -0x8(%rbp), %rax
movq $0x0, 0xb8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0xb0(%rax)
jmp 0x7409a
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq 0xb0(%rax), %rax
cmpq -0x10(%rbp), %rax
jne 0x74074
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xb0(%rax)
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
cmpq -0x10(%rbp), %rax
jne 0x74098
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xb8(%rax)
jmp 0x7409a
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
popq %rbp
retq
nopw (%rax,%rax)
| unlink_block:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
jmp short $+2
loc_73FEE:
jmp short $+2
loc_73FF0:
jmp short $+2
loc_73FF2:
jmp short $+2
loc_73FF4:
jmp short $+2
loc_73FF6:
jmp short $+2
loc_73FF8:
jmp short $+2
loc_73FFA:
jmp short $+2
loc_73FFC:
jmp short $+2
loc_73FFE:
mov rax, [rbp+var_10]
mov rax, [rax]
cmp rax, [rbp+var_10]
jnz short loc_7402B
mov rax, [rbp+var_8]
mov qword ptr [rax+0B8h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+0B0h], 0
jmp short loc_7409A
loc_7402B:
mov rax, [rbp+var_10]
mov rcx, [rax+8]
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rax+8], rcx
mov rax, [rbp+var_10]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rax], rcx
mov rax, [rbp+var_8]
mov rax, [rax+0B0h]
cmp rax, [rbp+var_10]
jnz short loc_74074
mov rax, [rbp+var_10]
mov rcx, [rax+8]
mov rax, [rbp+var_8]
mov [rax+0B0h], rcx
loc_74074:
mov rax, [rbp+var_8]
mov rax, [rax+0B8h]
cmp rax, [rbp+var_10]
jnz short loc_74098
mov rax, [rbp+var_10]
mov rcx, [rax+8]
mov rax, [rbp+var_8]
mov [rax+0B8h], rcx
loc_74098:
jmp short $+2
loc_7409A:
mov rax, [rbp+var_10]
mov qword ptr [rax], 0
pop rbp
retn
| _QWORD * unlink_block(long long a1, _QWORD *a2)
{
_QWORD *result; // rax
if ( (_QWORD *)*a2 == a2 )
{
*(_QWORD *)(a1 + 184) = 0LL;
*(_QWORD *)(a1 + 176) = 0LL;
}
else
{
*(_QWORD *)(*a2 + 8LL) = a2[1];
*(_QWORD *)a2[1] = *a2;
if ( *(_QWORD **)(a1 + 176) == a2 )
*(_QWORD *)(a1 + 176) = a2[1];
if ( *(_QWORD **)(a1 + 184) == a2 )
*(_QWORD *)(a1 + 184) = a2[1];
}
result = a2;
*a2 = 0LL;
return result;
}
| unlink_block:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
JMP 0x00173fee
LAB_00173fee:
JMP 0x00173ff0
LAB_00173ff0:
JMP 0x00173ff2
LAB_00173ff2:
JMP 0x00173ff4
LAB_00173ff4:
JMP 0x00173ff6
LAB_00173ff6:
JMP 0x00173ff8
LAB_00173ff8:
JMP 0x00173ffa
LAB_00173ffa:
JMP 0x00173ffc
LAB_00173ffc:
JMP 0x00173ffe
LAB_00173ffe:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x0017402b
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xb8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xb0],0x0
JMP 0x0017409a
LAB_0017402b:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xb0]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x00174074
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xb0],RCX
LAB_00174074:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xb8]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x00174098
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xb8],RCX
LAB_00174098:
JMP 0x0017409a
LAB_0017409a:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],0x0
POP RBP
RET
|
void unlink_block(long param_1,long *param_2)
{
if ((long *)*param_2 == param_2) {
*(int8 *)(param_1 + 0xb8) = 0;
*(int8 *)(param_1 + 0xb0) = 0;
}
else {
*(long *)(*param_2 + 8) = param_2[1];
*(long *)param_2[1] = *param_2;
if (*(long **)(param_1 + 0xb0) == param_2) {
*(long *)(param_1 + 0xb0) = param_2[1];
}
if (*(long **)(param_1 + 0xb8) == param_2) {
*(long *)(param_1 + 0xb8) = param_2[1];
}
}
*param_2 = 0;
return;
}
| |
55,060 | std::pair<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, bool> nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::emplace<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Value&&) | monkey531[P]llama/common/json.hpp | std::pair<iterator, bool> emplace(KeyType && key, T && t)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return {it, false};
}
}
Container::emplace_back(std::forward<KeyType>(key), std::forward<T>(t));
return {std::prev(this->end()), true};
} | O1 | cpp | std::pair<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, bool> nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::emplace<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Value&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq (%rdi), %rbx
cmpq 0x8(%rdi), %rbx
sete %bpl
je 0x8d37c
leaq 0x18(%r14), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x8d3aa
testb %al, %al
jne 0x8d377
addq $0x60, %rbx
cmpq 0x8(%r14), %rbx
sete %bpl
jne 0x8d355
jmp 0x8d37c
testb %bpl, %bpl
je 0x8d396
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x8d3ee
movq 0x8(%r14), %rbx
addq $-0x60, %rbx
movb $0x1, %dl
jmp 0x8d398
xorl %edx, %edx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rdx
mov r12, rsi
mov r14, rdi
mov rbx, [rdi]
cmp rbx, [rdi+8]
setz bpl
jz short loc_8D37C
lea r13, [r14+18h]
loc_8D355:
mov rdi, r13
mov rsi, rbx
mov rdx, r12
call _ZNKSt8equal_toIvEclIRKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEERKSC_EEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSL_OSM_
test al, al
jnz short loc_8D377
add rbx, 60h ; '`'
cmp rbx, [r14+8]
setz bpl
jnz short loc_8D355
jmp short loc_8D37C
loc_8D377:
test bpl, bpl
jz short loc_8D396
loc_8D37C:
mov rdi, r14
mov rsi, r12
mov rdx, r15
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE12emplace_backIJRKSA_SH_EEERSI_DpOT_; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::emplace_back<std::string const&,minja::Value>(std::string const&,minja::Value &&)
mov rbx, [r14+8]
add rbx, 0FFFFFFFFFFFFFFA0h
mov dl, 1
jmp short loc_8D398
loc_8D396:
xor edx, edx
loc_8D398:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_(
long long *a1,
long long a2,
long long a3)
{
long long v4; // rbx
bool v5; // bp
v4 = *a1;
v5 = *a1 == a1[1];
if ( *a1 == a1[1] )
goto LABEL_6;
while ( !(unsigned __int8)std::equal_to<void>::operator()<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&,std::string const&>(
a1 + 3,
v4,
a2) )
{
v4 += 96LL;
v5 = v4 == a1[1];
if ( v4 == a1[1] )
goto LABEL_6;
}
if ( v5 )
{
LABEL_6:
std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::emplace_back<std::string const&,minja::Value>(
a1,
a2,
a3);
return a1[1] - 96;
}
return v4;
}
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDX
MOV R12,RSI
MOV R14,RDI
MOV RBX,qword ptr [RDI]
CMP RBX,qword ptr [RDI + 0x8]
SETZ BPL
JZ 0x0018d37c
LEA R13,[R14 + 0x18]
LAB_0018d355:
MOV RDI,R13
MOV RSI,RBX
MOV RDX,R12
CALL 0x0018d3aa
TEST AL,AL
JNZ 0x0018d377
ADD RBX,0x60
CMP RBX,qword ptr [R14 + 0x8]
SETZ BPL
JNZ 0x0018d355
JMP 0x0018d37c
LAB_0018d377:
TEST BPL,BPL
JZ 0x0018d396
LAB_0018d37c:
MOV RDI,R14
MOV RSI,R12
MOV RDX,R15
CALL 0x0018d3ee
MOV RBX,qword ptr [R14 + 0x8]
ADD RBX,-0x60
MOV DL,0x1
JMP 0x0018d398
LAB_0018d396:
XOR EDX,EDX
LAB_0018d398:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16]
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_
(vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
*param_1,string *param_2,Value *param_3)
{
char cVar1;
int8 extraout_RDX;
int8 uVar2;
basic_json *pbVar3;
bool bVar4;
int1 auVar5 [16];
pbVar3 = *(basic_json **)param_1;
bVar4 = pbVar3 == *(basic_json **)(param_1 + 8);
if (!bVar4) {
do {
cVar1 = std::equal_to<void>::operator()((equal_to<void> *)(param_1 + 0x18),pbVar3,param_2);
if (cVar1 != '\0') {
if (!bVar4) {
uVar2 = 0;
goto LAB_0018d398;
}
break;
}
pbVar3 = pbVar3 + 0x60;
bVar4 = pbVar3 == *(basic_json **)(param_1 + 8);
} while (!bVar4);
}
std::
vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
::emplace_back<std::__cxx11::string_const&,minja::Value>(param_1,param_2,param_3);
pbVar3 = (basic_json *)(*(long *)(param_1 + 8) + -0x60);
uVar2 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1);
LAB_0018d398:
auVar5._8_8_ = uVar2;
auVar5._0_8_ = pbVar3;
return auVar5;
}
| |
55,061 | testing::internal::PrettyUnitTestResultPrinter::OnTestPartResult(testing::TestPartResult const&) | seiftnesse[P]memoryallocator/build_O0/_deps/googletest-src/googletest/src/gtest.cc | void PrettyUnitTestResultPrinter::OnTestPartResult(
const TestPartResult& result) {
switch (result.type()) {
// If the test part succeeded, we don't need to do anything.
case TestPartResult::kSuccess:
return;
default:
// Print failure message from the assertion
// (e.g. expected this and got that).
PrintTestPartResult(result);
fflush(stdout);
}
} | O0 | cpp | testing::internal::PrettyUnitTestResultPrinter::OnTestPartResult(testing::TestPartResult const&):
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4c9f0
testl %eax, %eax
jne 0x35a71
jmp 0x35a6f
jmp 0x35a89
movq -0x10(%rbp), %rdi
callq 0x35a90
movq 0x6e51f(%rip), %rax # 0xa3fa0
movq (%rax), %rdi
callq 0xb860
addq $0x10, %rsp
popq %rbp
retq
nop
| _ZN7testing8internal27PrettyUnitTestResultPrinter16OnTestPartResultERKNS_14TestPartResultE:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_10]; this
call _ZNK7testing14TestPartResult4typeEv; testing::TestPartResult::type(void)
test eax, eax
jnz short loc_35A71
jmp short $+2
loc_35A6F:
jmp short loc_35A89
loc_35A71:
mov rdi, [rbp+var_10]; this
call _ZN7testing8internalL19PrintTestPartResultERKNS_14TestPartResultE; testing::internal::PrintTestPartResult(testing::TestPartResult const&)
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
loc_35A89:
add rsp, 10h
pop rbp
retn
| long long testing::internal::PrettyUnitTestResultPrinter::OnTestPartResult(
testing::internal::PrettyUnitTestResultPrinter *this,
const testing::TestPartResult *a2)
{
long long result; // rax
result = testing::TestPartResult::type(a2);
if ( (_DWORD)result )
{
testing::internal::PrintTestPartResult(a2, a2);
return fflush(stdout);
}
return result;
}
| OnTestPartResult:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0014c9f0
TEST EAX,EAX
JNZ 0x00135a71
JMP 0x00135a6f
LAB_00135a6f:
JMP 0x00135a89
LAB_00135a71:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00135a90
MOV RAX,qword ptr [0x001a3fa0]
MOV RDI,qword ptr [RAX]
CALL 0x0010b860
LAB_00135a89:
ADD RSP,0x10
POP RBP
RET
|
/* testing::internal::PrettyUnitTestResultPrinter::OnTestPartResult(testing::TestPartResult const&)
*/
void __thiscall
testing::internal::PrettyUnitTestResultPrinter::OnTestPartResult
(PrettyUnitTestResultPrinter *this,TestPartResult *param_1)
{
int iVar1;
iVar1 = TestPartResult::type(param_1);
if (iVar1 != 0) {
PrintTestPartResult(param_1);
fflush(*(FILE **)PTR_stdout_001a3fa0);
}
return;
}
| |
55,062 | tailoring_append | eloqsql/strings/ctype.c | static int
tailoring_append(MY_XML_PARSER *st,
const char *fmt, size_t len, const char *attr)
{
struct my_cs_file_info *i= (struct my_cs_file_info *) st->user_data;
size_t newlen= i->tailoring_length + len + 64; /* 64 for format */
if (MY_XML_OK == my_charset_file_tailoring_realloc(i, newlen))
{
char *dst= i->tailoring + i->tailoring_length;
sprintf(dst, fmt, (int) len, attr);
i->tailoring_length+= strlen(dst);
return MY_XML_OK;
}
return MY_XML_ERROR;
} | O3 | c | tailoring_append:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r9
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq 0x690(%rdi), %r13
leaq (%rdx,%r13), %rax
addq $0x40, %rax
cmpq %rax, 0x698(%rdi)
jbe 0xf1c5b
movq 0x688(%rbx), %rax
jmp 0xf1c9f
movq %r9, %r14
addq %r15, %r13
movq 0x688(%rbx), %rdi
movq 0x7a8(%rbx), %rax
movq 0x90(%rax), %rax
addq $0x8040, %r13 # imm = 0x8040
movq %r13, 0x698(%rbx)
movq %r13, %rsi
callq *%rax
movq %rax, 0x688(%rbx)
testq %rax, %rax
je 0xf1ce2
movq 0x690(%rbx), %r13
movq %r14, %r9
addq %rax, %r13
xorl %r14d, %r14d
movq %r13, %rdi
movl $0x1, %esi
movq $-0x1, %rdx
movq %r12, %rcx
movl %r15d, %r8d
xorl %eax, %eax
callq 0x2aa60
movq %r13, %rdi
callq 0x2a380
addq %rax, 0x690(%rbx)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %r14d
jmp 0xf1cd0
| tailoring_append:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r9, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
mov r13, [rdi+690h]
lea rax, [rdx+r13]
add rax, 40h ; '@'
cmp [rdi+698h], rax
jbe short loc_F1C5B
mov rax, [rbx+688h]
jmp short loc_F1C9F
loc_F1C5B:
mov r14, r9
add r13, r15
mov rdi, [rbx+688h]
mov rax, [rbx+7A8h]
mov rax, [rax+90h]
add r13, 8040h
mov [rbx+698h], r13
mov rsi, r13
call rax
mov [rbx+688h], rax
test rax, rax
jz short loc_F1CE2
mov r13, [rbx+690h]
mov r9, r14
loc_F1C9F:
add r13, rax
xor r14d, r14d
mov rdi, r13
mov esi, 1
mov rdx, 0FFFFFFFFFFFFFFFFh
mov rcx, r12
mov r8d, r15d
xor eax, eax
call ___sprintf_chk
mov rdi, r13
call _strlen
add [rbx+690h], rax
loc_F1CD0:
mov eax, r14d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_F1CE2:
mov r14d, 1
jmp short loc_F1CD0
| long long tailoring_append(_QWORD *a1, const char *a2, long long a3, long long a4)
{
long long v4; // rax
long long v5; // r9
unsigned int v6; // r15d
long long v8; // r13
long long v9; // rax
long long v11; // rdi
long long ( *v12)(long long, long long); // rax
long long v13; // r13
long long v14; // r13
unsigned int v15; // r14d
long long v17; // [rsp-8h] [rbp-30h]
v17 = v4;
v5 = a4;
v6 = a3;
v8 = a1[210];
if ( a1[211] <= (unsigned long long)(a3 + v8 + 64) )
{
v11 = a1[209];
v12 = *(long long ( **)(long long, long long))(a1[245] + 144LL);
v13 = a3 + v8 + 32832;
a1[211] = v13;
v9 = v12(v11, v13);
a1[209] = v9;
if ( !v9 )
return 1;
v8 = a1[210];
v5 = a4;
}
else
{
v9 = a1[209];
}
v14 = v9 + v8;
v15 = 0;
__sprintf_chk(v14, 1LL, -1LL, a2, v6, v5, v17);
a1[210] += strlen(v14);
return v15;
}
| tailoring_append:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R9,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
MOV R13,qword ptr [RDI + 0x690]
LEA RAX,[RDX + R13*0x1]
ADD RAX,0x40
CMP qword ptr [RDI + 0x698],RAX
JBE 0x001f1c5b
MOV RAX,qword ptr [RBX + 0x688]
JMP 0x001f1c9f
LAB_001f1c5b:
MOV R14,R9
ADD R13,R15
MOV RDI,qword ptr [RBX + 0x688]
MOV RAX,qword ptr [RBX + 0x7a8]
MOV RAX,qword ptr [RAX + 0x90]
ADD R13,0x8040
MOV qword ptr [RBX + 0x698],R13
MOV RSI,R13
CALL RAX
MOV qword ptr [RBX + 0x688],RAX
TEST RAX,RAX
JZ 0x001f1ce2
MOV R13,qword ptr [RBX + 0x690]
MOV R9,R14
LAB_001f1c9f:
ADD R13,RAX
XOR R14D,R14D
MOV RDI,R13
MOV ESI,0x1
MOV RDX,-0x1
MOV RCX,R12
MOV R8D,R15D
XOR EAX,EAX
CALL 0x0012aa60
MOV RDI,R13
CALL 0x0012a380
ADD qword ptr [RBX + 0x690],RAX
LAB_001f1cd0:
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001f1ce2:
MOV R14D,0x1
JMP 0x001f1cd0
|
int8 tailoring_append(long param_1,int8 param_2,ulong param_3,int8 param_4)
{
code *pcVar1;
long lVar2;
size_t sVar3;
long lVar4;
lVar4 = *(long *)(param_1 + 0x690);
if (param_3 + lVar4 + 0x40 < *(ulong *)(param_1 + 0x698)) {
lVar2 = *(long *)(param_1 + 0x688);
}
else {
pcVar1 = *(code **)(*(long *)(param_1 + 0x7a8) + 0x90);
lVar4 = lVar4 + param_3 + 0x8040;
*(long *)(param_1 + 0x698) = lVar4;
lVar2 = (*pcVar1)(*(int8 *)(param_1 + 0x688),lVar4);
*(long *)(param_1 + 0x688) = lVar2;
if (lVar2 == 0) {
return 1;
}
lVar4 = *(long *)(param_1 + 0x690);
}
__sprintf_chk((char *)(lVar4 + lVar2),1,0xffffffffffffffff,param_2,param_3 & 0xffffffff,param_4);
sVar3 = strlen((char *)(lVar4 + lVar2));
*(long *)(param_1 + 0x690) = *(long *)(param_1 + 0x690) + sVar3;
return 0;
}
| |
55,063 | write_header | eloqsql/client/mysqldump.c | static void write_header(FILE *sql_file, const char *db_name)
{
if (opt_xml)
{
fputs("<?xml version=\"1.0\"?>\n", sql_file);
/*
Schema reference. Allows use of xsi:nil for NULL values and
xsi:type to define an element's data type.
*/
fputs("<mysqldump ", sql_file);
fputs("xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
sql_file);
fputs(">\n", sql_file);
check_io(sql_file);
}
else if (!opt_compact)
{
print_comment(sql_file, 0,
"-- MariaDB dump %s Distrib %s, for %s (%s)\n--\n",
DUMP_VERSION, MYSQL_SERVER_VERSION, SYSTEM_TYPE,
MACHINE_TYPE);
print_comment(sql_file, 0, "-- Host: %s ",
fix_for_comment(current_host ? current_host : "localhost"));
print_comment(sql_file, 0, "Database: %s\n",
fix_for_comment(db_name ? db_name : ""));
print_comment(sql_file, 0,
"-- ------------------------------------------------------\n"
);
print_comment(sql_file, 0, "-- Server version\t%s\n",
mysql_get_server_info(&mysql_connection));
if (!opt_logging)
fprintf(sql_file,
"\n/*M!100101 SET LOCAL SQL_LOG_OFF=0, LOCAL SLOW_QUERY_LOG=0 */;");
if (opt_set_charset)
fprintf(sql_file,
"\n/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;"
"\n/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;"
"\n/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;"
"\n/*!40101 SET NAMES %s */;\n",default_charset);
if (opt_tz_utc)
{
fprintf(sql_file, "/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;\n");
fprintf(sql_file, "/*!40103 SET TIME_ZONE='+00:00' */;\n");
}
if (!path)
{
if (!opt_no_create_info)
{
/* We don't need unique checks as the table is created just before */
fprintf(md_result_file,"\
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;\n");
}
fprintf(md_result_file,"\
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;\n\
");
}
fprintf(sql_file,
"/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='%s%s%s' */;\n"
"/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;\n",
path?"":"NO_AUTO_VALUE_ON_ZERO",compatible_mode_normal_str[0]==0?"":",",
compatible_mode_normal_str);
check_io(sql_file);
}
} | O0 | c | write_header:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpb $0x0, 0x3c6ad1(%rip) # 0x4015e8
je 0x3ab67
movq -0x8(%rbp), %rsi
leaq 0xa0963(%rip), %rdi # 0xdb487
callq 0x38340
movq -0x8(%rbp), %rsi
leaq 0xa096a(%rip), %rdi # 0xdb49e
callq 0x38340
movq -0x8(%rbp), %rsi
leaq 0xa0966(%rip), %rdi # 0xdb4aa
callq 0x38340
movq -0x8(%rbp), %rsi
leaq 0xa0cd2(%rip), %rdi # 0xdb826
callq 0x38340
movq -0x8(%rbp), %rdi
callq 0x38d60
jmp 0x3ad7d
cmpb $0x0, 0x3c6cc2(%rip) # 0x401830
jne 0x3ad7b
movq -0x8(%rbp), %rdi
xorl %esi, %esi
leaq 0xa095f(%rip), %rdx # 0xdb4e0
leaq 0xa0677(%rip), %rcx # 0xdb1ff
leaq 0xa0676(%rip), %r8 # 0xdb205
leaq 0xa067f(%rip), %r9 # 0xdb215
leaq 0xa067e(%rip), %rax # 0xdb21b
movq %rax, (%rsp)
movb $0x0, %al
callq 0x3dca0
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, 0x3c6a40(%rip) # 0x4015f8
je 0x3abc7
movq 0x3c6a37(%rip), %rax # 0x4015f8
movq %rax, -0x20(%rbp)
jmp 0x3abd4
leaq 0xa0787(%rip), %rax # 0xdb355
movq %rax, -0x20(%rbp)
jmp 0x3abd4
movq -0x20(%rbp), %rdi
callq 0x3ddb0
movq -0x18(%rbp), %rdi
movq %rax, %rcx
xorl %esi, %esi
leaq 0xa0923(%rip), %rdx # 0xdb510
movb $0x0, %al
callq 0x3dca0
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x3ac0d
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x3ac1a
leaq 0xa1f38(%rip), %rax # 0xdcb4c
movq %rax, -0x30(%rbp)
jmp 0x3ac1a
movq -0x30(%rbp), %rdi
callq 0x3ddb0
movq -0x28(%rbp), %rdi
movq %rax, %rcx
xorl %esi, %esi
leaq 0xa08ed(%rip), %rdx # 0xdb520
movb $0x0, %al
callq 0x3dca0
movq -0x8(%rbp), %rdi
xorl %esi, %esi
leaq 0xa08e7(%rip), %rdx # 0xdb52e
movb $0x0, %al
callq 0x3dca0
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq 0x3c6d33(%rip), %rdi # 0x401990
callq 0x52390
movq -0x38(%rbp), %rdi
movq %rax, %rcx
xorl %esi, %esi
leaq 0xa08f7(%rip), %rdx # 0xdb569
movb $0x0, %al
callq 0x3dca0
cmpb $0x0, 0x3c6bb8(%rip) # 0x401838
jne 0x3ac94
movq -0x8(%rbp), %rdi
leaq 0xa08f2(%rip), %rsi # 0xdb57f
movb $0x0, %al
callq 0x381d0
cmpb $0x0, 0x3c6bab(%rip) # 0x401846
je 0x3acb6
movq -0x8(%rbp), %rdi
movq 0x3c6938(%rip), %rdx # 0x4015e0
leaq 0xa0910(%rip), %rsi # 0xdb5bf
movb $0x0, %al
callq 0x381d0
cmpb $0x0, 0x20cedb(%rip) # 0x247b98
je 0x3ace3
movq -0x8(%rbp), %rdi
leaq 0xa09d9(%rip), %rsi # 0xdb6a3
movb $0x0, %al
callq 0x381d0
movq -0x8(%rbp), %rdi
leaq 0xa09f4(%rip), %rsi # 0xdb6d0
movb $0x0, %al
callq 0x381d0
cmpq $0x0, 0x3c6925(%rip) # 0x401610
jne 0x3ad20
cmpb $0x0, 0x3c6b47(%rip) # 0x40183b
jne 0x3ad0b
movq 0x3c67b3(%rip), %rdi # 0x4014b0
leaq 0xa09f1(%rip), %rsi # 0xdb6f5
movb $0x0, %al
callq 0x381d0
movq 0x3c679e(%rip), %rdi # 0x4014b0
leaq 0xa0a22(%rip), %rsi # 0xdb73b
movb $0x0, %al
callq 0x381d0
movq -0x8(%rbp), %rdi
movq 0x3c68e5(%rip), %rcx # 0x401610
leaq 0xa0ad5(%rip), %rdx # 0xdb807
leaq 0xa1e13(%rip), %rax # 0xdcb4c
cmpq $0x0, %rcx
cmovneq %rax, %rdx
movsbl 0x3c6798(%rip), %esi # 0x4014e0
leaq 0xa355c(%rip), %rcx # 0xde2ab
leaq 0xa1df6(%rip), %rax # 0xdcb4c
cmpl $0x0, %esi
cmoveq %rax, %rcx
leaq 0xa0a2c(%rip), %rsi # 0xdb790
leaq 0x3c6775(%rip), %r8 # 0x4014e0
movb $0x0, %al
callq 0x381d0
movq -0x8(%rbp), %rdi
callq 0x38d60
jmp 0x3ad7d
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| write_header:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
cmp cs:opt_xml, 0
jz short loc_3AB67
mov rsi, [rbp+var_8]
lea rdi, aXmlVersion10; "<?xml version=\"1.0\"?>\n"
call _fputs
mov rsi, [rbp+var_8]
lea rdi, aMysqldump_0; "<mysqldump "
call _fputs
mov rsi, [rbp+var_8]
lea rdi, aXmlnsXsiHttpWw; "xmlns:xsi=\"http://www.w3.org/2001/XMLS"...
call _fputs
mov rsi, [rbp+var_8]
lea rdi, asc_DB823+3; ">\n"
call _fputs
mov rdi, [rbp+var_8]
call check_io
jmp loc_3AD7D
loc_3AB67:
cmp cs:opt_compact, 0
jnz loc_3AD7B
mov rdi, [rbp+var_8]
xor esi, esi
lea rdx, aMariadbDumpSDi; "-- MariaDB dump %s Distrib %s, for %s "...
lea rcx, a1019; "10.19"
lea r8, a10610Mariadb; "10.6.10-MariaDB"
lea r9, aLinux; "Linux"
lea rax, aX8664; "x86_64"
mov [rsp+40h+var_40], rax
mov al, 0
call print_comment
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
cmp cs:current_host, 0
jz short loc_3ABC7
mov rax, cs:current_host
mov [rbp+var_20], rax
jmp short loc_3ABD4
loc_3ABC7:
lea rax, aLocalhost; "localhost"
mov [rbp+var_20], rax
jmp short $+2
loc_3ABD4:
mov rdi, [rbp+var_20]
call fix_for_comment
mov rdi, [rbp+var_18]
mov rcx, rax
xor esi, esi
lea rdx, aHostS; "-- Host: %s "
mov al, 0
call print_comment
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
cmp [rbp+var_10], 0
jz short loc_3AC0D
mov rax, [rbp+var_10]
mov [rbp+var_30], rax
jmp short loc_3AC1A
loc_3AC0D:
lea rax, asc_DCB4A+2; ""
mov [rbp+var_30], rax
jmp short $+2
loc_3AC1A:
mov rdi, [rbp+var_30]
call fix_for_comment
mov rdi, [rbp+var_28]
mov rcx, rax
xor esi, esi
lea rdx, aDatabaseS; "Database: %s\n"
mov al, 0
call print_comment
mov rdi, [rbp+var_8]
xor esi, esi
lea rdx, asc_DB52E; "-- ------------------------------------"...
mov al, 0
call print_comment
mov rax, [rbp+var_8]
mov [rbp+var_38], rax
lea rdi, mysql_connection
call mysql_get_server_info
mov rdi, [rbp+var_38]
mov rcx, rax
xor esi, esi
lea rdx, aServerVersionS; "-- Server version\t%s\n"
mov al, 0
call print_comment
cmp cs:opt_logging, 0
jnz short loc_3AC94
mov rdi, [rbp+var_8]
lea rsi, aM100101SetLoca; "\n/*M!100101 SET LOCAL SQL_LOG_OFF=0, L"...
mov al, 0
call _fprintf
loc_3AC94:
cmp cs:opt_set_charset, 0
jz short loc_3ACB6
mov rdi, [rbp+var_8]
mov rdx, cs:default_charset
lea rsi, a40101SetOldCha; "\n/*!40101 SET @OLD_CHARACTER_SET_CLIEN"...
mov al, 0
call _fprintf
loc_3ACB6:
cmp cs:opt_tz_utc, 0
jz short loc_3ACE3
mov rdi, [rbp+var_8]
lea rsi, a40103SetOldTim; "/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE"...
mov al, 0
call _fprintf
mov rdi, [rbp+var_8]
lea rsi, a40103SetTimeZo_0; "/*!40103 SET TIME_ZONE='+00:00' */;\n"
mov al, 0
call _fprintf
loc_3ACE3:
cmp cs:path, 0
jnz short loc_3AD20
cmp cs:opt_no_create_info, 0
jnz short loc_3AD0B
mov rdi, cs:md_result_file
lea rsi, a40014SetOldUni; "/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQU"...
mov al, 0
call _fprintf
loc_3AD0B:
mov rdi, cs:md_result_file
lea rsi, a40014SetOldFor; "/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@"...
mov al, 0
call _fprintf
loc_3AD20:
mov rdi, [rbp+var_8]
mov rcx, cs:path
lea rdx, aNoAutoValueOnZ; "NO_AUTO_VALUE_ON_ZERO"
lea rax, asc_DCB4A+2; ""
cmp rcx, 0
cmovnz rdx, rax
movsx esi, cs:compatible_mode_normal_str
lea rcx, asc_DE2AA+1; ","
lea rax, asc_DCB4A+2; ""
cmp esi, 0
cmovz rcx, rax
lea rsi, a40101SetOldSql; "/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, "...
lea r8, compatible_mode_normal_str
mov al, 0
call _fprintf
mov rdi, [rbp+var_8]
call check_io
loc_3AD7B:
jmp short $+2
loc_3AD7D:
add rsp, 40h
pop rbp
retn
| void write_header(long long a1, long long a2)
{
int v2; // eax
int v3; // r8d
int v4; // r9d
int v5; // eax
int v6; // r8d
int v7; // r9d
int v8; // ecx
int v9; // r8d
int v10; // r9d
int server_info; // eax
int v12; // r8d
int v13; // r9d
const char *v14; // rdx
const char *v15; // rcx
char v16; // [rsp+0h] [rbp-40h]
char v17; // [rsp+0h] [rbp-40h]
char v18; // [rsp+0h] [rbp-40h]
char v19; // [rsp+0h] [rbp-40h]
if ( opt_xml )
{
fputs("<?xml version=\"1.0\"?>\n", a1);
fputs("<mysqldump ", a1);
fputs("xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"", a1);
fputs(">\n", a1);
check_io(a1);
}
else if ( !opt_compact )
{
print_comment(
a1,
0,
(unsigned int)"-- MariaDB dump %s Distrib %s, for %s (%s)\n--\n",
(unsigned int)"10.19",
(unsigned int)"10.6.10-MariaDB",
(unsigned int)"Linux",
(char)"x86_64");
if ( current_host )
v2 = fix_for_comment(current_host);
else
v2 = fix_for_comment("localhost");
print_comment(a1, 0, (unsigned int)"-- Host: %s ", v2, v3, v4, v16);
if ( a2 )
v5 = fix_for_comment(a2);
else
v5 = fix_for_comment("");
print_comment(a1, 0, (unsigned int)"Database: %s\n", v5, v6, v7, v17);
print_comment(a1, 0, (unsigned int)"-- ------------------------------------------------------\n", v8, v9, v10, v18);
server_info = mysql_get_server_info(&mysql_connection);
print_comment(a1, 0, (unsigned int)"-- Server version\t%s\n", server_info, v12, v13, v19);
if ( !opt_logging )
fprintf(a1, "\n/*M!100101 SET LOCAL SQL_LOG_OFF=0, LOCAL SLOW_QUERY_LOG=0 */;");
if ( opt_set_charset )
fprintf(
a1,
"\n"
"/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;\n"
"/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;\n"
"/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;\n"
"/*!40101 SET NAMES %s */;\n",
(const char *)default_charset);
if ( opt_tz_utc )
{
fprintf(a1, "/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;\n");
fprintf(a1, "/*!40103 SET TIME_ZONE='+00:00' */;\n");
}
if ( !path )
{
if ( !opt_no_create_info )
fprintf(md_result_file, "/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;\n");
fprintf(md_result_file, "/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;\n");
}
v14 = "NO_AUTO_VALUE_ON_ZERO";
if ( path )
v14 = "";
v15 = ",";
if ( !compatible_mode_normal_str )
v15 = "";
fprintf(
a1,
"/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='%s%s%s' */;\n"
"/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;\n",
v14,
v15,
&compatible_mode_normal_str);
check_io(a1);
}
}
| write_header:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
CMP byte ptr [0x005015e8],0x0
JZ 0x0013ab67
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[0x1db487]
CALL 0x00138340
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[0x1db49e]
CALL 0x00138340
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[0x1db4aa]
CALL 0x00138340
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[0x1db826]
CALL 0x00138340
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00138d60
JMP 0x0013ad7d
LAB_0013ab67:
CMP byte ptr [0x00501830],0x0
JNZ 0x0013ad7b
MOV RDI,qword ptr [RBP + -0x8]
XOR ESI,ESI
LEA RDX,[0x1db4e0]
LEA RCX,[0x1db1ff]
LEA R8,[0x1db205]
LEA R9,[0x1db215]
LEA RAX,[0x1db21b]
MOV qword ptr [RSP],RAX
MOV AL,0x0
CALL 0x0013dca0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [0x005015f8],0x0
JZ 0x0013abc7
MOV RAX,qword ptr [0x005015f8]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0013abd4
LAB_0013abc7:
LEA RAX,[0x1db355]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0013abd4
LAB_0013abd4:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0013ddb0
MOV RDI,qword ptr [RBP + -0x18]
MOV RCX,RAX
XOR ESI,ESI
LEA RDX,[0x1db510]
MOV AL,0x0
CALL 0x0013dca0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0013ac0d
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x30],RAX
JMP 0x0013ac1a
LAB_0013ac0d:
LEA RAX,[0x1dcb4c]
MOV qword ptr [RBP + -0x30],RAX
JMP 0x0013ac1a
LAB_0013ac1a:
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x0013ddb0
MOV RDI,qword ptr [RBP + -0x28]
MOV RCX,RAX
XOR ESI,ESI
LEA RDX,[0x1db520]
MOV AL,0x0
CALL 0x0013dca0
MOV RDI,qword ptr [RBP + -0x8]
XOR ESI,ESI
LEA RDX,[0x1db52e]
MOV AL,0x0
CALL 0x0013dca0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x38],RAX
LEA RDI,[0x501990]
CALL 0x00152390
MOV RDI,qword ptr [RBP + -0x38]
MOV RCX,RAX
XOR ESI,ESI
LEA RDX,[0x1db569]
MOV AL,0x0
CALL 0x0013dca0
CMP byte ptr [0x00501838],0x0
JNZ 0x0013ac94
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x1db57f]
MOV AL,0x0
CALL 0x001381d0
LAB_0013ac94:
CMP byte ptr [0x00501846],0x0
JZ 0x0013acb6
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [0x005015e0]
LEA RSI,[0x1db5bf]
MOV AL,0x0
CALL 0x001381d0
LAB_0013acb6:
CMP byte ptr [0x00347b98],0x0
JZ 0x0013ace3
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x1db6a3]
MOV AL,0x0
CALL 0x001381d0
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x1db6d0]
MOV AL,0x0
CALL 0x001381d0
LAB_0013ace3:
CMP qword ptr [0x00501610],0x0
JNZ 0x0013ad20
CMP byte ptr [0x0050183b],0x0
JNZ 0x0013ad0b
MOV RDI,qword ptr [0x005014b0]
LEA RSI,[0x1db6f5]
MOV AL,0x0
CALL 0x001381d0
LAB_0013ad0b:
MOV RDI,qword ptr [0x005014b0]
LEA RSI,[0x1db73b]
MOV AL,0x0
CALL 0x001381d0
LAB_0013ad20:
MOV RDI,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [0x00501610]
LEA RDX,[0x1db807]
LEA RAX,[0x1dcb4c]
CMP RCX,0x0
CMOVNZ RDX,RAX
MOVSX ESI,byte ptr [0x005014e0]
LEA RCX,[0x1de2ab]
LEA RAX,[0x1dcb4c]
CMP ESI,0x0
CMOVZ RCX,RAX
LEA RSI,[0x1db790]
LEA R8,[0x5014e0]
MOV AL,0x0
CALL 0x001381d0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00138d60
LAB_0013ad7b:
JMP 0x0013ad7d
LAB_0013ad7d:
ADD RSP,0x40
POP RBP
RET
|
void write_header(FILE *param_1,int1 *param_2)
{
int8 uVar1;
int1 *puVar2;
char *pcVar3;
int1 *local_38;
char *local_28;
if (opt_xml == '\0') {
if (opt_compact == '\0') {
print_comment(param_1,0,"-- MariaDB dump %s Distrib %s, for %s (%s)\n--\n","10.19",
"10.6.10-MariaDB","Linux","x86_64");
if (current_host == (char *)0x0) {
local_28 = "localhost";
}
else {
local_28 = current_host;
}
uVar1 = fix_for_comment(local_28);
print_comment(param_1,0,"-- Host: %s ",uVar1);
local_38 = param_2;
if (param_2 == (int1 *)0x0) {
local_38 = &DAT_001dcb4c;
}
uVar1 = fix_for_comment(local_38);
print_comment(param_1,0,"Database: %s\n",uVar1);
print_comment(param_1,0,"-- ------------------------------------------------------\n");
uVar1 = mysql_get_server_info(mysql_connection);
print_comment(param_1,0,"-- Server version\t%s\n",uVar1);
if (opt_logging == '\0') {
fprintf(param_1,"\n/*M!100101 SET LOCAL SQL_LOG_OFF=0, LOCAL SLOW_QUERY_LOG=0 */;");
}
if (opt_set_charset != '\0') {
fprintf(param_1,
"\n/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;\n/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;\n/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;\n/*!40101 SET NAMES %s */;\n"
,default_charset);
}
if (opt_tz_utc != '\0') {
fprintf(param_1,"/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;\n");
fprintf(param_1,"/*!40103 SET TIME_ZONE=\'+00:00\' */;\n");
}
if (path == 0) {
if (opt_no_create_info == '\0') {
fprintf(md_result_file,
"/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;\n");
}
fprintf(md_result_file,
"/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;\n"
);
}
pcVar3 = "NO_AUTO_VALUE_ON_ZERO";
if (path != 0) {
pcVar3 = &DAT_001dcb4c;
}
puVar2 = &DAT_001de2ab;
if (compatible_mode_normal_str == '\0') {
puVar2 = &DAT_001dcb4c;
}
fprintf(param_1,
"/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE=\'%s%s%s\' */;\n/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;\n"
,pcVar3,puVar2,&compatible_mode_normal_str);
check_io(param_1);
}
}
else {
fputs("<?xml version=\"1.0\"?>\n",param_1);
fputs("<mysqldump ",param_1);
fputs("xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",param_1);
fputs(">\n",param_1);
check_io(param_1);
}
return;
}
| |
55,064 | minja::ForTemplateToken::ForTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, bool) | monkey531[P]llama/common/minja.hpp | ForTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, const std::vector<std::string> & vns, std::shared_ptr<Expression> && iter,
std::shared_ptr<Expression> && c, bool r)
: TemplateToken(Type::For, location, pre, post), var_names(vns), iterable(std::move(iter)), condition(std::move(c)), recursive(r) {} | O2 | cpp | minja::ForTemplateToken::ForTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, bool):
pushq %r15
pushq %r14
pushq %rbx
movq %r9, %r14
movq %r8, %r15
movl %ecx, %r8d
movl %edx, %ecx
movq %rsi, %rdx
movq %rdi, %rbx
pushq $0x6
popq %rsi
callq 0x62c06
leaq 0x8b219(%rip), %rax # 0xfdc10
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x30(%rbx), %rdi
movq %r15, %rsi
callq 0x3af5e
movb 0x28(%rsp), %al
movq 0x20(%rsp), %rcx
andq $0x0, 0x50(%rbx)
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, 0x48(%rbx)
andq $0x0, (%r14)
andq $0x0, 0x60(%rbx)
movups (%rcx), %xmm0
andq $0x0, 0x8(%rcx)
movups %xmm0, 0x58(%rbx)
andq $0x0, (%rcx)
movb %al, 0x68(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x73254
movq %r14, %rdi
callq 0x23f80
| _ZN5minja16ForTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_RKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISB_EEOSt10shared_ptrINS_10ExpressionEESJ_b:
push r15
push r14
push rbx
mov r14, r9
mov r15, r8
mov r8d, ecx
mov ecx, edx
mov rdx, rsi
mov rbx, rdi
push 6
pop rsi
call _ZN5minja13TemplateTokenC2ENS0_4TypeERKNS_8LocationENS_13SpaceHandlingES5_; minja::TemplateToken::TemplateToken(minja::TemplateToken::Type,minja::Location const&,minja::SpaceHandling,minja::SpaceHandling)
lea rax, _ZTVN5minja16ForTemplateTokenE; `vtable for'minja::ForTemplateToken
add rax, 10h
mov [rbx], rax
lea rdi, [rbx+30h]
mov rsi, r15
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
mov al, [rsp+18h+arg_8]
mov rcx, [rsp+18h+arg_0]
and qword ptr [rbx+50h], 0
movups xmm0, xmmword ptr [r14]
and qword ptr [r14+8], 0
movups xmmword ptr [rbx+48h], xmm0
and qword ptr [r14], 0
and qword ptr [rbx+60h], 0
movups xmm0, xmmword ptr [rcx]
and qword ptr [rcx+8], 0
movups xmmword ptr [rbx+58h], xmm0
and qword ptr [rcx], 0
mov [rbx+68h], al
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx; this
call _ZN5minja13TemplateTokenD2Ev; minja::TemplateToken::~TemplateToken()
mov rdi, r14
call __Unwind_Resume
| char minja::ForTemplateToken::ForTemplateToken(
long long a1,
long long a2,
int a3,
int a4,
_QWORD *a5,
__int128 *a6,
__int128 *a7,
char a8)
{
char result; // al
__int128 v11; // xmm0
__int128 v12; // xmm0
minja::TemplateToken::TemplateToken(a1, 6, a2, a3, a4);
*(_QWORD *)a1 = &`vtable for'minja::ForTemplateToken + 2;
std::vector<std::string>::vector((_QWORD *)(a1 + 48), a5);
result = a8;
*(_QWORD *)(a1 + 80) = 0LL;
v11 = *a6;
*((_QWORD *)a6 + 1) = 0LL;
*(_OWORD *)(a1 + 72) = v11;
*(_QWORD *)a6 = 0LL;
*(_QWORD *)(a1 + 96) = 0LL;
v12 = *a7;
*((_QWORD *)a7 + 1) = 0LL;
*(_OWORD *)(a1 + 88) = v12;
*(_QWORD *)a7 = 0LL;
*(_BYTE *)(a1 + 104) = a8;
return result;
}
| ForTemplateToken:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,R9
MOV R15,R8
MOV R8D,ECX
MOV ECX,EDX
MOV RDX,RSI
MOV RBX,RDI
PUSH 0x6
POP RSI
CALL 0x00162c06
LEA RAX,[0x1fdc10]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x30]
LAB_00172a02:
MOV RSI,R15
CALL 0x0013af5e
LAB_00172a0a:
MOV AL,byte ptr [RSP + 0x28]
MOV RCX,qword ptr [RSP + 0x20]
AND qword ptr [RBX + 0x50],0x0
MOVUPS XMM0,xmmword ptr [R14]
AND qword ptr [R14 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x48],XMM0
AND qword ptr [R14],0x0
AND qword ptr [RBX + 0x60],0x0
MOVUPS XMM0,xmmword ptr [RCX]
AND qword ptr [RCX + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x58],XMM0
AND qword ptr [RCX],0x0
MOV byte ptr [RBX + 0x68],AL
POP RBX
POP R14
POP R15
RET
|
/* minja::ForTemplateToken::ForTemplateToken(minja::Location const&, minja::SpaceHandling,
minja::SpaceHandling, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > >
const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, bool) */
void __thiscall
minja::ForTemplateToken::ForTemplateToken
(ForTemplateToken *this,int8 param_1,int4 param_3,int4 param_4,
vector *param_5,int8 *param_6,int8 *param_7,ForTemplateToken param_8)
{
int8 uVar1;
TemplateToken::TemplateToken((TemplateToken *)this,6,param_1,param_3,param_4);
*(int ***)this = &PTR__ForTemplateToken_001fdc20;
/* try { // try from 00172a02 to 00172a09 has its CatchHandler @ 00172a47 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x30),
param_5);
*(int8 *)(this + 0x50) = 0;
uVar1 = param_6[1];
param_6[1] = 0;
*(int8 *)(this + 0x48) = *param_6;
*(int8 *)(this + 0x50) = uVar1;
*param_6 = 0;
*(int8 *)(this + 0x60) = 0;
uVar1 = param_7[1];
param_7[1] = 0;
*(int8 *)(this + 0x58) = *param_7;
*(int8 *)(this + 0x60) = uVar1;
*param_7 = 0;
this[0x68] = param_8;
return;
}
| |
55,065 | ma_net_safe_read | eloqsql/libmariadb/libmariadb/mariadb_lib.c | ulong
ma_net_safe_read(MYSQL *mysql)
{
NET *net= &mysql->net;
ulong len=0;
restart:
if (net->pvio != 0)
len=ma_net_read(net);
if (len == packet_error || len == 0)
{
end_server(mysql);
#ifdef HAVE_TLS
/* don't overwrite possible tls protocol errors */
if (net->last_errno != CR_SSL_CONNECTION_ERROR)
#endif
{
my_set_error(mysql, net->last_errno == ER_NET_PACKET_TOO_LARGE ?
CR_NET_PACKET_TOO_LARGE:
CR_SERVER_LOST,
SQLSTATE_UNKNOWN, 0, errno);
}
return(packet_error);
}
if (net->read_pos[0] == 255)
{
if (len > 3)
{
char *pos=(char*) net->read_pos+1;
uint last_errno=uint2korr(pos);
pos+=2;
len-=2;
if (last_errno== 65535 &&
((mariadb_connection(mysql) && (mysql->server_capabilities & CLIENT_PROGRESS)) ||
(!(mysql->extension->mariadb_server_capabilities & MARIADB_CLIENT_PROGRESS << 32))))
{
if (cli_report_progress(mysql, (uchar *)pos, (uint) (len-1)))
{
/* Wrong packet */
my_set_error(mysql, CR_MALFORMED_PACKET, SQLSTATE_UNKNOWN, 0);
return (packet_error);
}
goto restart;
}
net->last_errno= last_errno;
if (pos[0]== '#')
{
ma_strmake(net->sqlstate, pos+1, SQLSTATE_LENGTH);
pos+= SQLSTATE_LENGTH + 1;
}
else
{
strncpy(net->sqlstate, SQLSTATE_UNKNOWN, SQLSTATE_LENGTH);
}
ma_strmake(net->last_error,(char*) pos,
min(len,sizeof(net->last_error)-1));
}
else
{
my_set_error(mysql, CR_UNKNOWN_ERROR, SQLSTATE_UNKNOWN, 0);
}
mysql->server_status&= ~SERVER_MORE_RESULTS_EXIST;
return(packet_error);
}
return len;
} | O3 | c | ma_net_safe_read:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r12d, %r12d
cmpq $0x0, (%rbx)
movq %r12, %r14
je 0x1570f
movq %rbx, %rdi
callq 0x3194c
movq %rax, %r14
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, %r14
je 0x15836
testq %r14, %r14
je 0x15836
movq 0x20(%rbx), %r15
cmpb $-0x1, (%r15)
jne 0x1593c
cmpq $0x4, %r14
jb 0x158b8
movzwl 0x1(%r15), %eax
leaq 0x3(%r15), %r13
leaq -0x2(%r14), %r12
cmpl $0xffff, %eax # imm = 0xFFFF
jne 0x158d5
addl $-0x3, %r14d
cmpl $0x5, %r14d
jb 0x15892
movq 0x480(%rbx), %rax
testq %rax, %rax
je 0x156fb
movq 0x80(%rax), %rax
testq %rax, %rax
je 0x156fb
movzbl 0x9(%r15), %r8d
cmpq $0xfa, %r8
ja 0x157dc
leaq 0xa(%r15), %rcx
movl %r8d, %edx
addq %rcx, %rdx
movl %r14d, %esi
addq %rsi, %r13
cmpq %r13, %rdx
ja 0x15892
movzbl 0x4(%r15), %esi
movzbl 0x5(%r15), %edx
movzwl 0x6(%r15), %edi
movzbl 0x8(%r15), %r9d
shll $0x10, %r9d
orl %edi, %r9d
xorps %xmm0, %xmm0
cvtsi2sd %r9d, %xmm0
divsd 0x223ee(%rip), %xmm0 # 0x37bc0
movq %rbx, %rdi
callq *%rax
jmp 0x156fb
cmpq $0xfd, %r8
je 0x1580f
cmpl $0xfc, %r8d
je 0x15804
cmpl $0xfb, %r8d
jne 0x15829
leaq 0xa(%r15), %rcx
movq $-0x1, %r8
jmp 0x15792
leaq 0xc(%r15), %rcx
movzwl 0xa(%r15), %r8d
jmp 0x15792
leaq 0xd(%r15), %rcx
movzwl 0xa(%r15), %edx
movzbl 0xc(%r15), %r8d
shll $0x10, %r8d
orq %rdx, %r8
jmp 0x15792
leaq 0x12(%r15), %rcx
movl 0xa(%r15), %r8d
jmp 0x15792
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x1594e
movl 0x90(%rbx), %eax
cmpl $0x7ea, %eax # imm = 0x7EA
je 0x1593c
cmpl $0x481, %eax # imm = 0x481
movl $0x7e4, %eax # imm = 0x7E4
movl $0x7dd, %r15d # imm = 0x7DD
cmovel %eax, %r15d
leaq 0x33250(%rip), %rax # 0x48ac0
movq (%rax), %r12
callq 0x13060
movl (%rax), %r8d
movq %rbx, %rdi
movl %r15d, %esi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x15981
jmp 0x1593c
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
leaq 0x33221(%rip), %rax # 0x48ac0
movq (%rax), %rdx
movq %rbx, %rdi
movl $0x7eb, %esi # imm = 0x7EB
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x15981
jmp 0x1593c
leaq 0x33201(%rip), %rax # 0x48ac0
movq (%rax), %rdx
movq %rbx, %rdi
movl $0x7d0, %esi # imm = 0x7D0
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x15981
jmp 0x1592f
movl %eax, 0x90(%rbx)
leaq 0x297(%rbx), %rdi
cmpb $0x23, (%r13)
jne 0x15900
leaq 0x4(%r15), %rsi
movl $0x5, %edx
callq 0x252b3
addq $0x9, %r15
movq %r15, %r13
jmp 0x15914
leaq 0x331b9(%rip), %rax # 0x48ac0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
leaq 0x97(%rbx), %rdi
movl $0x1ff, %edx # imm = 0x1FF
cmpq %rdx, %r12
cmovbq %r12, %rdx
movq %r13, %rsi
callq 0x252b3
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
andb $-0x9, 0x380(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ma_net_safe_read:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
xor r12d, r12d
loc_156FB:
cmp qword ptr [rbx], 0
mov r14, r12
jz short loc_1570F
mov rdi, rbx
call ma_net_read
mov r14, rax
loc_1570F:
mov eax, 0FFFFFFFFh
cmp r14, rax
jz loc_15836
test r14, r14
jz loc_15836
mov r15, [rbx+20h]
cmp byte ptr [r15], 0FFh
jnz loc_1593C
cmp r14, 4
jb loc_158B8
movzx eax, word ptr [r15+1]
lea r13, [r15+3]
lea r12, [r14-2]
cmp eax, 0FFFFh
jnz loc_158D5
add r14d, 0FFFFFFFDh
cmp r14d, 5
jb loc_15892
mov rax, [rbx+480h]
test rax, rax
jz short loc_156FB
mov rax, [rax+80h]
test rax, rax
jz loc_156FB
movzx r8d, byte ptr [r15+9]
cmp r8, 0FAh
ja short loc_157DC
lea rcx, [r15+0Ah]
loc_15792:
mov edx, r8d
add rdx, rcx
mov esi, r14d
add r13, rsi
cmp rdx, r13
ja loc_15892
movzx esi, byte ptr [r15+4]
movzx edx, byte ptr [r15+5]
movzx edi, word ptr [r15+6]
movzx r9d, byte ptr [r15+8]
shl r9d, 10h
or r9d, edi
xorps xmm0, xmm0
cvtsi2sd xmm0, r9d
divsd xmm0, cs:qword_37BC0
mov rdi, rbx
call rax
jmp loc_156FB
loc_157DC:
cmp r8, 0FDh
jz short loc_1580F
cmp r8d, 0FCh
jz short loc_15804
cmp r8d, 0FBh
jnz short loc_15829
lea rcx, [r15+0Ah]
mov r8, 0FFFFFFFFFFFFFFFFh
jmp short loc_15792
loc_15804:
lea rcx, [r15+0Ch]
movzx r8d, word ptr [r15+0Ah]
jmp short loc_15792
loc_1580F:
lea rcx, [r15+0Dh]
movzx edx, word ptr [r15+0Ah]
movzx r8d, byte ptr [r15+0Ch]
shl r8d, 10h
or r8, rdx
jmp loc_15792
loc_15829:
lea rcx, [r15+12h]
mov r8d, [r15+0Ah]
jmp loc_15792
loc_15836:
mov r14d, 0FFFFFFFFh
mov rdi, rbx
call end_server
mov eax, [rbx+90h]
cmp eax, 7EAh
jz loc_1593C
cmp eax, 481h
mov eax, 7E4h
mov r15d, 7DDh
cmovz r15d, eax
lea rax, SQLSTATE_UNKNOWN
mov r12, [rax]
call ___errno_location
mov r8d, [rax]
mov rdi, rbx
mov esi, r15d
mov rdx, r12
xor ecx, ecx
xor eax, eax
call my_set_error
jmp loc_1593C
loc_15892:
mov r14d, 0FFFFFFFFh
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov rdi, rbx
mov esi, 7EBh
xor ecx, ecx
xor eax, eax
call my_set_error
jmp loc_1593C
loc_158B8:
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov rdi, rbx
mov esi, 7D0h
xor ecx, ecx
xor eax, eax
call my_set_error
jmp short loc_1592F
loc_158D5:
mov [rbx+90h], eax
lea rdi, [rbx+297h]
cmp byte ptr [r13+0], 23h ; '#'
jnz short loc_15900
lea rsi, [r15+4]
mov edx, 5
call ma_strmake
add r15, 9
mov r13, r15
jmp short loc_15914
loc_15900:
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
loc_15914:
lea rdi, [rbx+97h]
mov edx, 1FFh
cmp r12, rdx
cmovb rdx, r12
mov rsi, r13
call ma_strmake
loc_1592F:
mov r14d, 0FFFFFFFFh
and byte ptr [rbx+380h], 0F7h
loc_1593C:
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long ma_net_safe_read(
long long a1,
long long a2,
long long a3,
long long a4,
unsigned long long a5,
int a6)
{
char v6; // al
unsigned long long v8; // r12
unsigned long long v9; // r14
long long v10; // r15
int v11; // eax
_BYTE *v12; // r13
unsigned int v13; // r14d
long long v14; // rax
void ( *v15)(long long, _QWORD, _QWORD, double); // rax
long long v16; // rcx
int v17; // eax
int v18; // r15d
int v19; // r12d
_DWORD *v20; // rax
int v21; // r9d
long long v22; // rdi
long long v23; // rdx
char v25; // [rsp-8h] [rbp-30h]
v25 = v6;
v8 = 0LL;
while ( 1 )
{
v9 = v8;
if ( *(_QWORD *)a1 )
v9 = ma_net_read(a1);
if ( v9 == 0xFFFFFFFF || !v9 )
break;
v10 = *(_QWORD *)(a1 + 32);
if ( *(_BYTE *)v10 != 0xFF )
return v9;
if ( v9 < 4 )
{
my_set_error(a1, 2000, (_DWORD)SQLSTATE_UNKNOWN, 0, a5, a6, v25);
LABEL_35:
v9 = 0xFFFFFFFFLL;
*(_BYTE *)(a1 + 896) &= ~8u;
return v9;
}
v11 = *(unsigned __int16 *)(v10 + 1);
v12 = (_BYTE *)(v10 + 3);
v8 = v9 - 2;
if ( v11 != 0xFFFF )
{
*(_DWORD *)(a1 + 144) = v11;
v22 = a1 + 663;
if ( *v12 == 35 )
{
ma_strmake(v22, v10 + 4, 5LL);
v12 = (_BYTE *)(v10 + 9);
}
else
{
strncpy(v22, SQLSTATE_UNKNOWN, 5LL);
}
v23 = 511LL;
if ( v8 < 0x1FF )
v23 = v9 - 2;
ma_strmake(a1 + 151, v12, v23);
goto LABEL_35;
}
v13 = v9 - 3;
if ( v13 < 5 )
goto LABEL_27;
v14 = *(_QWORD *)(a1 + 1152);
if ( v14 )
{
v15 = *(void ( **)(long long, _QWORD, _QWORD, double))(v14 + 128);
if ( v15 )
{
a5 = *(unsigned __int8 *)(v10 + 9);
if ( a5 > 0xFA )
{
if ( a5 == 253 )
{
v16 = v10 + 13;
LODWORD(a5) = *(unsigned __int16 *)(v10 + 10) | (*(unsigned __int8 *)(v10 + 12) << 16);
}
else if ( (_DWORD)a5 == 252 )
{
v16 = v10 + 12;
LODWORD(a5) = *(unsigned __int16 *)(v10 + 10);
}
else if ( (_DWORD)a5 == 251 )
{
v16 = v10 + 10;
LODWORD(a5) = -1;
}
else
{
v16 = v10 + 18;
LODWORD(a5) = *(_DWORD *)(v10 + 10);
}
}
else
{
v16 = v10 + 10;
}
if ( v16 + (unsigned long long)(unsigned int)a5 > (unsigned long long)&v12[v13] )
{
LABEL_27:
v9 = 0xFFFFFFFFLL;
my_set_error(a1, 2027, (_DWORD)SQLSTATE_UNKNOWN, 0, a5, a6, v25);
return v9;
}
v15(
a1,
*(unsigned __int8 *)(v10 + 4),
*(unsigned __int8 *)(v10 + 5),
(double)(*(unsigned __int16 *)(v10 + 6) | (*(unsigned __int8 *)(v10 + 8) << 16)) / 1000.0);
}
}
}
v9 = 0xFFFFFFFFLL;
end_server(a1);
v17 = *(_DWORD *)(a1 + 144);
if ( v17 != 2026 )
{
v18 = 2013;
if ( v17 == 1153 )
v18 = 2020;
v19 = (int)SQLSTATE_UNKNOWN;
v20 = (_DWORD *)__errno_location(a1);
my_set_error(a1, v18, v19, 0, *v20, v21, v25);
}
return v9;
}
| ma_net_safe_read:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
XOR R12D,R12D
LAB_001156fb:
CMP qword ptr [RBX],0x0
MOV R14,R12
JZ 0x0011570f
MOV RDI,RBX
CALL 0x0013194c
MOV R14,RAX
LAB_0011570f:
MOV EAX,0xffffffff
CMP R14,RAX
JZ 0x00115836
TEST R14,R14
JZ 0x00115836
MOV R15,qword ptr [RBX + 0x20]
CMP byte ptr [R15],0xff
JNZ 0x0011593c
CMP R14,0x4
JC 0x001158b8
MOVZX EAX,word ptr [R15 + 0x1]
LEA R13,[R15 + 0x3]
LEA R12,[R14 + -0x2]
CMP EAX,0xffff
JNZ 0x001158d5
ADD R14D,-0x3
CMP R14D,0x5
JC 0x00115892
MOV RAX,qword ptr [RBX + 0x480]
TEST RAX,RAX
JZ 0x001156fb
MOV RAX,qword ptr [RAX + 0x80]
TEST RAX,RAX
JZ 0x001156fb
MOVZX R8D,byte ptr [R15 + 0x9]
CMP R8,0xfa
JA 0x001157dc
LEA RCX,[R15 + 0xa]
LAB_00115792:
MOV EDX,R8D
ADD RDX,RCX
MOV ESI,R14D
ADD R13,RSI
CMP RDX,R13
JA 0x00115892
MOVZX ESI,byte ptr [R15 + 0x4]
MOVZX EDX,byte ptr [R15 + 0x5]
MOVZX EDI,word ptr [R15 + 0x6]
MOVZX R9D,byte ptr [R15 + 0x8]
SHL R9D,0x10
OR R9D,EDI
XORPS XMM0,XMM0
CVTSI2SD XMM0,R9D
DIVSD XMM0,qword ptr [0x00137bc0]
MOV RDI,RBX
CALL RAX
JMP 0x001156fb
LAB_001157dc:
CMP R8,0xfd
JZ 0x0011580f
CMP R8D,0xfc
JZ 0x00115804
CMP R8D,0xfb
JNZ 0x00115829
LEA RCX,[R15 + 0xa]
MOV R8,-0x1
JMP 0x00115792
LAB_00115804:
LEA RCX,[R15 + 0xc]
MOVZX R8D,word ptr [R15 + 0xa]
JMP 0x00115792
LAB_0011580f:
LEA RCX,[R15 + 0xd]
MOVZX EDX,word ptr [R15 + 0xa]
MOVZX R8D,byte ptr [R15 + 0xc]
SHL R8D,0x10
OR R8,RDX
JMP 0x00115792
LAB_00115829:
LEA RCX,[R15 + 0x12]
MOV R8D,dword ptr [R15 + 0xa]
JMP 0x00115792
LAB_00115836:
MOV R14D,0xffffffff
MOV RDI,RBX
CALL 0x0011594e
MOV EAX,dword ptr [RBX + 0x90]
CMP EAX,0x7ea
JZ 0x0011593c
CMP EAX,0x481
MOV EAX,0x7e4
MOV R15D,0x7dd
CMOVZ R15D,EAX
LEA RAX,[0x148ac0]
MOV R12,qword ptr [RAX]
CALL 0x00113060
MOV R8D,dword ptr [RAX]
MOV RDI,RBX
MOV ESI,R15D
MOV RDX,R12
XOR ECX,ECX
XOR EAX,EAX
CALL 0x00115981
JMP 0x0011593c
LAB_00115892:
MOV R14D,0xffffffff
LEA RAX,[0x148ac0]
MOV RDX,qword ptr [RAX]
MOV RDI,RBX
MOV ESI,0x7eb
XOR ECX,ECX
XOR EAX,EAX
CALL 0x00115981
JMP 0x0011593c
LAB_001158b8:
LEA RAX,[0x148ac0]
MOV RDX,qword ptr [RAX]
MOV RDI,RBX
MOV ESI,0x7d0
XOR ECX,ECX
XOR EAX,EAX
CALL 0x00115981
JMP 0x0011592f
LAB_001158d5:
MOV dword ptr [RBX + 0x90],EAX
LEA RDI,[RBX + 0x297]
CMP byte ptr [R13],0x23
JNZ 0x00115900
LEA RSI,[R15 + 0x4]
MOV EDX,0x5
CALL 0x001252b3
ADD R15,0x9
MOV R13,R15
JMP 0x00115914
LAB_00115900:
LEA RAX,[0x148ac0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
LAB_00115914:
LEA RDI,[RBX + 0x97]
MOV EDX,0x1ff
CMP R12,RDX
CMOVC RDX,R12
MOV RSI,R13
CALL 0x001252b3
LAB_0011592f:
MOV R14D,0xffffffff
AND byte ptr [RBX + 0x380],0xf7
LAB_0011593c:
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
ulong ma_net_safe_read(long *param_1)
{
byte bVar1;
char *pcVar2;
code *pcVar3;
int *puVar4;
ulong uVar5;
int *piVar6;
char *pcVar7;
uint uVar8;
ulong uVar9;
uint uVar10;
int4 uVar11;
char *pcVar12;
uVar9 = 0;
do {
do {
uVar5 = uVar9;
if (*param_1 != 0) {
uVar5 = ma_net_read(param_1);
}
if ((uVar5 == 0xffffffff) || (uVar5 == 0)) {
end_server(param_1);
puVar4 = SQLSTATE_UNKNOWN;
if ((int)param_1[0x12] == 0x7ea) {
return 0xffffffff;
}
uVar11 = 0x7dd;
if ((int)param_1[0x12] == 0x481) {
uVar11 = 0x7e4;
}
piVar6 = __errno_location();
my_set_error(param_1,uVar11,puVar4,0,*piVar6);
return 0xffffffff;
}
pcVar2 = (char *)param_1[4];
if (*pcVar2 != -1) {
return uVar5;
}
if (uVar5 < 4) {
my_set_error(param_1,2000,SQLSTATE_UNKNOWN,0);
LAB_0011592f:
*(byte *)(param_1 + 0x70) = *(byte *)(param_1 + 0x70) & 0xf7;
return 0xffffffff;
}
pcVar12 = pcVar2 + 3;
uVar9 = uVar5 - 2;
if (*(ushort *)(pcVar2 + 1) != 0xffff) {
*(uint *)(param_1 + 0x12) = (uint)*(ushort *)(pcVar2 + 1);
if (*pcVar12 == '#') {
ma_strmake((char *)((long)param_1 + 0x297),pcVar2 + 4,5);
pcVar12 = pcVar2 + 9;
}
else {
strncpy((char *)((long)param_1 + 0x297),SQLSTATE_UNKNOWN,5);
}
uVar5 = 0x1ff;
if (uVar9 < 0x1ff) {
uVar5 = uVar9;
}
ma_strmake((long)param_1 + 0x97,pcVar12,uVar5);
goto LAB_0011592f;
}
uVar10 = (int)uVar5 - 3;
if (uVar10 < 5) goto LAB_00115892;
} while ((param_1[0x90] == 0) ||
(pcVar3 = *(code **)(param_1[0x90] + 0x80), pcVar3 == (code *)0x0));
bVar1 = pcVar2[9];
uVar8 = (uint)bVar1;
if (uVar8 < 0xfb) {
pcVar7 = pcVar2 + 10;
}
else if (uVar8 == 0xfd) {
pcVar7 = pcVar2 + 0xd;
uVar8 = (uint)*(uint3 *)(pcVar2 + 10);
}
else if (bVar1 == 0xfc) {
pcVar7 = pcVar2 + 0xc;
uVar8 = (uint)*(ushort *)(pcVar2 + 10);
}
else if (bVar1 == 0xfb) {
pcVar7 = pcVar2 + 10;
uVar8 = 0xffffffff;
}
else {
pcVar7 = pcVar2 + 0x12;
uVar8 = *(uint *)(pcVar2 + 10);
}
if (pcVar12 + uVar10 < pcVar7 + uVar8) {
LAB_00115892:
my_set_error(param_1,0x7eb,SQLSTATE_UNKNOWN,0);
return 0xffffffff;
}
(*pcVar3)((double)*(uint3 *)(pcVar2 + 6) / _DAT_00137bc0,param_1,pcVar2[4],pcVar2[5]);
} while( true );
}
| |
55,066 | fromfp16 | bluesky950520[P]quickjs/cutils.h | static inline double fromfp16(uint16_t v) {
double d, s;
int e;
if ((v & 0x7C00) == 0x7C00) {
d = (v & 0x3FF) ? NAN : INFINITY;
} else {
d = (v & 0x3FF) / 1024.;
e = (v & 0x7C00) >> 10;
if (e == 0) {
e = -14;
} else {
d += 1;
e -= 15;
}
d = scalbn(d, e);
}
s = (v & 0x8000) ? -1.0 : 1.0;
return d * s;
} | O0 | c | fromfp16:
subq $0x38, %rsp
movw %di, %ax
movw %ax, 0x36(%rsp)
movzwl 0x36(%rsp), %eax
andl $0x7c00, %eax # imm = 0x7C00
cmpl $0x7c00, %eax # imm = 0x7C00
jne 0x66e56
movzwl 0x36(%rsp), %eax
andl $0x3ff, %eax # imm = 0x3FF
movss 0xacda1(%rip), %xmm0 # 0x113bc0
movss 0xacd9d(%rip), %xmm1 # 0x113bc4
movss %xmm1, 0x14(%rsp)
cmpl $0x0, %eax
movss %xmm0, 0x18(%rsp)
jne 0x66e44
movss 0x14(%rsp), %xmm0
movss %xmm0, 0x18(%rsp)
movss 0x18(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x28(%rsp)
jmp 0x66ecc
movzwl 0x36(%rsp), %eax
andl $0x3ff, %eax # imm = 0x3FF
cvtsi2sd %eax, %xmm0
movsd 0xacc24(%rip), %xmm1 # 0x113a90
divsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
movzwl 0x36(%rsp), %eax
andl $0x7c00, %eax # imm = 0x7C00
sarl $0xa, %eax
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x1c(%rsp)
jne 0x66e98
movl $0xfffffff2, 0x1c(%rsp) # imm = 0xFFFFFFF2
jmp 0x66eb7
movsd 0xacb80(%rip), %xmm0 # 0x113a20
addsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movl 0x1c(%rsp), %eax
subl $0xf, %eax
movl %eax, 0x1c(%rsp)
movsd 0x28(%rsp), %xmm0
movl 0x1c(%rsp), %edi
callq 0xe6d0
movsd %xmm0, 0x28(%rsp)
movzwl 0x36(%rsp), %eax
andl $0x8000, %eax # imm = 0x8000
movsd 0xacbba(%rip), %xmm0 # 0x113a98
movsd 0xacb3a(%rip), %xmm1 # 0x113a20
movsd %xmm1, (%rsp)
cmpl $0x0, %eax
movsd %xmm0, 0x8(%rsp)
jne 0x66f01
movsd (%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x28(%rsp), %xmm0
mulsd 0x20(%rsp), %xmm0
addq $0x38, %rsp
retq
nop
| fromfp16:
sub rsp, 38h
mov ax, di
mov [rsp+38h+var_2], ax
movzx eax, [rsp+38h+var_2]
and eax, 7C00h
cmp eax, 7C00h
jnz short loc_66E56
movzx eax, [rsp+38h+var_2]
and eax, 3FFh
movss xmm0, cs:dword_113BC0
movss xmm1, cs:dword_113BC4
movss [rsp+38h+var_24], xmm1
cmp eax, 0
movss [rsp+38h+var_20], xmm0
jnz short loc_66E44
movss xmm0, [rsp+38h+var_24]
movss [rsp+38h+var_20], xmm0
loc_66E44:
movss xmm0, [rsp+38h+var_20]
cvtss2sd xmm0, xmm0
movsd [rsp+38h+var_10], xmm0
jmp short loc_66ECC
loc_66E56:
movzx eax, [rsp+38h+var_2]
and eax, 3FFh
cvtsi2sd xmm0, eax
movsd xmm1, cs:qword_113A90
divsd xmm0, xmm1
movsd [rsp+38h+var_10], xmm0
movzx eax, [rsp+38h+var_2]
and eax, 7C00h
sar eax, 0Ah
mov [rsp+38h+var_1C], eax
cmp [rsp+38h+var_1C], 0
jnz short loc_66E98
mov [rsp+38h+var_1C], 0FFFFFFF2h
jmp short loc_66EB7
loc_66E98:
movsd xmm0, cs:qword_113A20
addsd xmm0, [rsp+38h+var_10]
movsd [rsp+38h+var_10], xmm0
mov eax, [rsp+38h+var_1C]
sub eax, 0Fh
mov [rsp+38h+var_1C], eax
loc_66EB7:
movsd xmm0, [rsp+38h+var_10]
mov edi, [rsp+38h+var_1C]
call _scalbn
movsd [rsp+38h+var_10], xmm0
loc_66ECC:
movzx eax, [rsp+38h+var_2]
and eax, 8000h
movsd xmm0, cs:qword_113A98
movsd xmm1, cs:qword_113A20
movsd [rsp+38h+var_38], xmm1
cmp eax, 0
movsd [rsp+38h+var_30], xmm0
jnz short loc_66F01
movsd xmm0, [rsp+38h+var_38]
movsd [rsp+38h+var_30], xmm0
loc_66F01:
movsd xmm0, [rsp+38h+var_30]
movsd [rsp+38h+var_18], xmm0
movsd xmm0, [rsp+38h+var_10]
mulsd xmm0, [rsp+38h+var_18]
add rsp, 38h
retn
| double fromfp16(__int16 a1)
{
double v2; // [rsp+8h] [rbp-30h]
float v3; // [rsp+18h] [rbp-20h]
int v4; // [rsp+1Ch] [rbp-1Ch]
unsigned int v5; // [rsp+1Ch] [rbp-1Ch]
double v6; // [rsp+28h] [rbp-10h]
double v7; // [rsp+28h] [rbp-10h]
if ( (a1 & 0x7C00) == 0x7C00 )
{
v3 = NAN;
if ( (a1 & 0x3FF) == 0 )
v3 = INFINITY;
v6 = v3;
}
else
{
v7 = (double)(a1 & 0x3FF) / 1024.0;
v4 = (a1 & 0x7C00) >> 10;
if ( v4 )
{
v7 = v7 + 1.0;
v5 = v4 - 15;
}
else
{
v5 = -14;
}
v6 = scalbn(v5, v7);
}
v2 = -1.0;
if ( (a1 & 0x8000) == 0 )
v2 = 1.0;
return v6 * v2;
}
| fromfp16:
SUB RSP,0x38
MOV AX,DI
MOV word ptr [RSP + 0x36],AX
MOVZX EAX,word ptr [RSP + 0x36]
AND EAX,0x7c00
CMP EAX,0x7c00
JNZ 0x00166e56
MOVZX EAX,word ptr [RSP + 0x36]
AND EAX,0x3ff
MOVSS XMM0,dword ptr [0x00213bc0]
MOVSS XMM1,dword ptr [0x00213bc4]
MOVSS dword ptr [RSP + 0x14],XMM1
CMP EAX,0x0
MOVSS dword ptr [RSP + 0x18],XMM0
JNZ 0x00166e44
MOVSS XMM0,dword ptr [RSP + 0x14]
MOVSS dword ptr [RSP + 0x18],XMM0
LAB_00166e44:
MOVSS XMM0,dword ptr [RSP + 0x18]
CVTSS2SD XMM0,XMM0
MOVSD qword ptr [RSP + 0x28],XMM0
JMP 0x00166ecc
LAB_00166e56:
MOVZX EAX,word ptr [RSP + 0x36]
AND EAX,0x3ff
CVTSI2SD XMM0,EAX
MOVSD XMM1,qword ptr [0x00213a90]
DIVSD XMM0,XMM1
MOVSD qword ptr [RSP + 0x28],XMM0
MOVZX EAX,word ptr [RSP + 0x36]
AND EAX,0x7c00
SAR EAX,0xa
MOV dword ptr [RSP + 0x1c],EAX
CMP dword ptr [RSP + 0x1c],0x0
JNZ 0x00166e98
MOV dword ptr [RSP + 0x1c],0xfffffff2
JMP 0x00166eb7
LAB_00166e98:
MOVSD XMM0,qword ptr [0x00213a20]
ADDSD XMM0,qword ptr [RSP + 0x28]
MOVSD qword ptr [RSP + 0x28],XMM0
MOV EAX,dword ptr [RSP + 0x1c]
SUB EAX,0xf
MOV dword ptr [RSP + 0x1c],EAX
LAB_00166eb7:
MOVSD XMM0,qword ptr [RSP + 0x28]
MOV EDI,dword ptr [RSP + 0x1c]
CALL 0x0010e6d0
MOVSD qword ptr [RSP + 0x28],XMM0
LAB_00166ecc:
MOVZX EAX,word ptr [RSP + 0x36]
AND EAX,0x8000
MOVSD XMM0,qword ptr [0x00213a98]
MOVSD XMM1,qword ptr [0x00213a20]
MOVSD qword ptr [RSP],XMM1
CMP EAX,0x0
MOVSD qword ptr [RSP + 0x8],XMM0
JNZ 0x00166f01
MOVSD XMM0,qword ptr [RSP]
MOVSD qword ptr [RSP + 0x8],XMM0
LAB_00166f01:
MOVSD XMM0,qword ptr [RSP + 0x8]
MOVSD qword ptr [RSP + 0x20],XMM0
MOVSD XMM0,qword ptr [RSP + 0x28]
MULSD XMM0,qword ptr [RSP + 0x20]
ADD RSP,0x38
RET
|
double fromfp16(ushort param_1)
{
int8 local_30;
int4 local_20;
int4 local_1c;
int8 local_10;
if ((param_1 & 0x7c00) == 0x7c00) {
local_20 = DAT_00213bc0;
if ((param_1 & 0x3ff) == 0) {
local_20 = DAT_00213bc4;
}
local_10 = (double)local_20;
}
else {
local_10 = (double)(param_1 & 0x3ff) / DAT_00213a90;
local_1c = (int)(param_1 & 0x7c00) >> 10;
if (local_1c == 0) {
local_1c = -0xe;
}
else {
local_10 = DAT_00213a20 + local_10;
local_1c = local_1c + -0xf;
}
local_10 = scalbn(local_10,local_1c);
}
local_30 = DAT_00213a98;
if ((param_1 & 0x8000) == 0) {
local_30 = DAT_00213a20;
}
return local_10 * local_30;
}
| |
55,067 | fromfp16 | bluesky950520[P]quickjs/cutils.h | static inline double fromfp16(uint16_t v) {
double d, s;
int e;
if ((v & 0x7C00) == 0x7C00) {
d = (v & 0x3FF) ? NAN : INFINITY;
} else {
d = (v & 0x3FF) / 1024.;
e = (v & 0x7C00) >> 10;
if (e == 0) {
e = -14;
} else {
d += 1;
e -= 15;
}
d = scalbn(d, e);
}
s = (v & 0x8000) ? -1.0 : 1.0;
return d * s;
} | O1 | c | fromfp16:
pushq %rbx
movl %edi, %ebx
movl $0x7c00, %edx # imm = 0x7C00
movl %edi, %eax
andl %edx, %eax
movl %edi, %ecx
andl $0x3ff, %ecx # imm = 0x3FF
cmpl %edx, %eax
jne 0x419de
xorl %eax, %eax
testl %ecx, %ecx
sete %al
leaq 0x60fe9(%rip), %rcx # 0xa29c0
movsd (%rcx,%rax,8), %xmm0
jmp 0x41a0b
cvtsi2sd %ecx, %xmm0
mulsd 0x61106(%rip), %xmm0 # 0xa2af0
movl %eax, %edi
shrl $0xa, %edi
addl $-0xf, %edi
testl %eax, %eax
je 0x419fe
addsd 0x610da(%rip), %xmm0 # 0xa2ad8
movl $0xfffffff2, %eax # imm = 0xFFFFFFF2
cmovel %eax, %edi
callq 0xe6e0
testw %bx, %bx
jns 0x41a18
xorpd 0x60fb8(%rip), %xmm0 # 0xa29d0
popq %rbx
retq
| fromfp16:
push rbx
mov ebx, edi
mov edx, 7C00h
mov eax, edi
and eax, edx
mov ecx, edi
and ecx, 3FFh
cmp eax, edx
jnz short loc_419DE
xor eax, eax
test ecx, ecx
setz al
lea rcx, dbl_A29C0
movsd xmm0, qword ptr [rcx+rax*8]
jmp short loc_41A0B
loc_419DE:
cvtsi2sd xmm0, ecx
mulsd xmm0, cs:qword_A2AF0
mov edi, eax
shr edi, 0Ah
add edi, 0FFFFFFF1h
test eax, eax
jz short loc_419FE
addsd xmm0, cs:qword_A2AD8
loc_419FE:
mov eax, 0FFFFFFF2h
cmovz edi, eax
call _scalbn
loc_41A0B:
test bx, bx
jns short loc_41A18
xorpd xmm0, cs:xmmword_A29D0
loc_41A18:
pop rbx
retn
| long long fromfp16(__int16 a1)
{
unsigned int v1; // eax
int v2; // ecx
double v4; // xmm0_8
long long v5; // rdi
v1 = a1 & 0x7C00;
v2 = a1 & 0x3FF;
if ( v1 == 31744 )
return v2 == 0;
v4 = (double)v2 * 0.0009765625;
v5 = (v1 >> 10) - 15;
if ( v1 )
v4 = v4 + 1.0;
else
v5 = 4294967282LL;
return scalbn(v5, v4);
}
| fromfp16:
PUSH RBX
MOV EBX,EDI
MOV EDX,0x7c00
MOV EAX,EDI
AND EAX,EDX
MOV ECX,EDI
AND ECX,0x3ff
CMP EAX,EDX
JNZ 0x001419de
XOR EAX,EAX
TEST ECX,ECX
SETZ AL
LEA RCX,[0x1a29c0]
MOVSD XMM0,qword ptr [RCX + RAX*0x8]
JMP 0x00141a0b
LAB_001419de:
CVTSI2SD XMM0,ECX
MULSD XMM0,qword ptr [0x001a2af0]
MOV EDI,EAX
SHR EDI,0xa
ADD EDI,-0xf
TEST EAX,EAX
JZ 0x001419fe
ADDSD XMM0,qword ptr [0x001a2ad8]
LAB_001419fe:
MOV EAX,0xfffffff2
CMOVZ EDI,EAX
CALL 0x0010e6e0
LAB_00141a0b:
TEST BX,BX
JNS 0x00141a18
XORPD XMM0,xmmword ptr [0x001a29d0]
LAB_00141a18:
POP RBX
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
double fromfp16(uint param_1)
{
uint uVar1;
int __n;
double dVar2;
uVar1 = param_1 & 0x7c00;
if (uVar1 == 0x7c00) {
dVar2 = *(double *)(&DAT_001a29c0 + (ulong)((param_1 & 0x3ff) == 0) * 8);
}
else {
dVar2 = (double)(param_1 & 0x3ff) * _DAT_001a2af0;
__n = (uVar1 >> 10) - 0xf;
if (uVar1 == 0) {
__n = -0xe;
}
else {
dVar2 = dVar2 + DAT_001a2ad8;
}
dVar2 = scalbn(dVar2,__n);
}
if ((short)param_1 < 0) {
dVar2 = (double)((ulong)dVar2 ^ _DAT_001a29d0);
}
return dVar2;
}
| |
55,068 | fromfp16 | bluesky950520[P]quickjs/cutils.h | static inline double fromfp16(uint16_t v) {
double d, s;
int e;
if ((v & 0x7C00) == 0x7C00) {
d = (v & 0x3FF) ? NAN : INFINITY;
} else {
d = (v & 0x3FF) / 1024.;
e = (v & 0x7C00) >> 10;
if (e == 0) {
e = -14;
} else {
d += 1;
e -= 15;
}
d = scalbn(d, e);
}
s = (v & 0x8000) ? -1.0 : 1.0;
return d * s;
} | O2 | c | fromfp16:
pushq %rbx
movl %edi, %ebx
movl $0x7c00, %edx # imm = 0x7C00
movl %edi, %eax
andl %edx, %eax
movl %edi, %ecx
andl $0x3ff, %ecx # imm = 0x3FF
cmpl %edx, %eax
jne 0x39d54
xorl %eax, %eax
testl %ecx, %ecx
sete %al
leaq 0x4ec33(%rip), %rcx # 0x88980
movsd (%rcx,%rax,8), %xmm0
jmp 0x39d7f
cvtsi2sd %ecx, %xmm0
mulsd 0x4ed58(%rip), %xmm0 # 0x88ab8
movl %eax, %edi
shrl $0xa, %edi
addl $-0xf, %edi
testl %eax, %eax
je 0x39d74
addsd 0x4ecac(%rip), %xmm0 # 0x88a20
pushq $-0xe
popq %rax
cmovel %eax, %edi
callq 0xe700
testw %bx, %bx
jns 0x39d8c
xorpd 0x4ec04(%rip), %xmm0 # 0x88990
popq %rbx
retq
| fromfp16:
push rbx
mov ebx, edi
mov edx, 7C00h
mov eax, edi
and eax, edx
mov ecx, edi
and ecx, 3FFh
cmp eax, edx
jnz short loc_39D54
xor eax, eax
test ecx, ecx
setz al
lea rcx, unk_88980
movsd xmm0, qword ptr [rcx+rax*8]
jmp short loc_39D7F
loc_39D54:
cvtsi2sd xmm0, ecx
mulsd xmm0, cs:qword_88AB8
mov edi, eax
shr edi, 0Ah
add edi, 0FFFFFFF1h
test eax, eax
jz short loc_39D74
addsd xmm0, cs:qword_88A20
loc_39D74:
push 0FFFFFFFFFFFFFFF2h
pop rax
cmovz edi, eax
call _scalbn
loc_39D7F:
test bx, bx
jns short loc_39D8C
xorpd xmm0, cs:xmmword_88990
loc_39D8C:
pop rbx
retn
| long long fromfp16(__int16 a1)
{
unsigned int v1; // eax
int v2; // ecx
double v4; // xmm0_8
long long v5; // rdi
v1 = a1 & 0x7C00;
v2 = a1 & 0x3FF;
if ( v1 == 31744 )
return v2 == 0;
v4 = (double)v2 * 0.0009765625;
v5 = (v1 >> 10) - 15;
if ( v1 )
v4 = v4 + 1.0;
else
v5 = 4294967282LL;
return scalbn(v5, v4);
}
| fromfp16:
PUSH RBX
MOV EBX,EDI
MOV EDX,0x7c00
MOV EAX,EDI
AND EAX,EDX
MOV ECX,EDI
AND ECX,0x3ff
CMP EAX,EDX
JNZ 0x00139d54
XOR EAX,EAX
TEST ECX,ECX
SETZ AL
LEA RCX,[0x188980]
MOVSD XMM0,qword ptr [RCX + RAX*0x8]
JMP 0x00139d7f
LAB_00139d54:
CVTSI2SD XMM0,ECX
MULSD XMM0,qword ptr [0x00188ab8]
MOV EDI,EAX
SHR EDI,0xa
ADD EDI,-0xf
TEST EAX,EAX
JZ 0x00139d74
ADDSD XMM0,qword ptr [0x00188a20]
LAB_00139d74:
PUSH -0xe
POP RAX
CMOVZ EDI,EAX
CALL 0x0010e700
LAB_00139d7f:
TEST BX,BX
JNS 0x00139d8c
XORPD XMM0,xmmword ptr [0x00188990]
LAB_00139d8c:
POP RBX
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
double fromfp16(uint param_1)
{
uint uVar1;
int __n;
double dVar2;
uVar1 = param_1 & 0x7c00;
if (uVar1 == 0x7c00) {
dVar2 = *(double *)(&DAT_00188980 + (ulong)((param_1 & 0x3ff) == 0) * 8);
}
else {
dVar2 = (double)(param_1 & 0x3ff) * _DAT_00188ab8;
__n = (uVar1 >> 10) - 0xf;
if (uVar1 == 0) {
__n = -0xe;
}
else {
dVar2 = dVar2 + DAT_00188a20;
}
dVar2 = scalbn(dVar2,__n);
}
if ((short)param_1 < 0) {
dVar2 = (double)((ulong)dVar2 ^ _DAT_00188990);
}
return dVar2;
}
| |
55,069 | fromfp16 | bluesky950520[P]quickjs/cutils.h | static inline double fromfp16(uint16_t v) {
double d, s;
int e;
if ((v & 0x7C00) == 0x7C00) {
d = (v & 0x3FF) ? NAN : INFINITY;
} else {
d = (v & 0x3FF) / 1024.;
e = (v & 0x7C00) >> 10;
if (e == 0) {
e = -14;
} else {
d += 1;
e -= 15;
}
d = scalbn(d, e);
}
s = (v & 0x8000) ? -1.0 : 1.0;
return d * s;
} | O3 | c | fromfp16:
pushq %rbx
movl %edi, %ebx
movl $0x7c00, %edx # imm = 0x7C00
movl %edi, %eax
andl %edx, %eax
movl %edi, %ecx
andl $0x3ff, %ecx # imm = 0x3FF
cmpl %edx, %eax
jne 0x42f61
xorl %eax, %eax
testl %ecx, %ecx
sete %al
leaq 0x629c6(%rip), %rcx # 0xa5920
movsd (%rcx,%rax,8), %xmm0
jmp 0x42f8e
cvtsi2sd %ecx, %xmm0
mulsd 0x62b13(%rip), %xmm0 # 0xa5a80
movl %eax, %edi
shrl $0xa, %edi
addl $-0xf, %edi
testl %eax, %eax
je 0x42f81
addsd 0x62ae7(%rip), %xmm0 # 0xa5a68
movl $0xfffffff2, %eax # imm = 0xFFFFFFF2
cmovel %eax, %edi
callq 0xe6e0
testw %bx, %bx
jns 0x42f9b
xorpd 0x62995(%rip), %xmm0 # 0xa5930
popq %rbx
retq
| fromfp16:
push rbx
mov ebx, edi
mov edx, 7C00h
mov eax, edi
and eax, edx
mov ecx, edi
and ecx, 3FFh
cmp eax, edx
jnz short loc_42F61
xor eax, eax
test ecx, ecx
setz al
lea rcx, dbl_A5920
movsd xmm0, qword ptr [rcx+rax*8]
jmp short loc_42F8E
loc_42F61:
cvtsi2sd xmm0, ecx
mulsd xmm0, cs:qword_A5A80
mov edi, eax
shr edi, 0Ah
add edi, 0FFFFFFF1h
test eax, eax
jz short loc_42F81
addsd xmm0, cs:qword_A5A68
loc_42F81:
mov eax, 0FFFFFFF2h
cmovz edi, eax
call _scalbn
loc_42F8E:
test bx, bx
jns short loc_42F9B
xorpd xmm0, cs:xmmword_A5930
loc_42F9B:
pop rbx
retn
| long long fromfp16(__int16 a1)
{
unsigned int v1; // eax
int v2; // ecx
double v4; // xmm0_8
long long v5; // rdi
v1 = a1 & 0x7C00;
v2 = a1 & 0x3FF;
if ( v1 == 31744 )
return v2 == 0;
v4 = (double)v2 * 0.0009765625;
v5 = (v1 >> 10) - 15;
if ( v1 )
v4 = v4 + 1.0;
else
v5 = 4294967282LL;
return scalbn(v5, v4);
}
| fromfp16:
PUSH RBX
MOV EBX,EDI
MOV EDX,0x7c00
MOV EAX,EDI
AND EAX,EDX
MOV ECX,EDI
AND ECX,0x3ff
CMP EAX,EDX
JNZ 0x00142f61
XOR EAX,EAX
TEST ECX,ECX
SETZ AL
LEA RCX,[0x1a5920]
MOVSD XMM0,qword ptr [RCX + RAX*0x8]
JMP 0x00142f8e
LAB_00142f61:
CVTSI2SD XMM0,ECX
MULSD XMM0,qword ptr [0x001a5a80]
MOV EDI,EAX
SHR EDI,0xa
ADD EDI,-0xf
TEST EAX,EAX
JZ 0x00142f81
ADDSD XMM0,qword ptr [0x001a5a68]
LAB_00142f81:
MOV EAX,0xfffffff2
CMOVZ EDI,EAX
CALL 0x0010e6e0
LAB_00142f8e:
TEST BX,BX
JNS 0x00142f9b
XORPD XMM0,xmmword ptr [0x001a5930]
LAB_00142f9b:
POP RBX
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
double fromfp16(uint param_1)
{
uint uVar1;
int __n;
double dVar2;
uVar1 = param_1 & 0x7c00;
if (uVar1 == 0x7c00) {
dVar2 = *(double *)(&DAT_001a5920 + (ulong)((param_1 & 0x3ff) == 0) * 8);
}
else {
dVar2 = (double)(param_1 & 0x3ff) * _DAT_001a5a80;
__n = (uVar1 >> 10) - 0xf;
if (uVar1 == 0) {
__n = -0xe;
}
else {
dVar2 = dVar2 + DAT_001a5a68;
}
dVar2 = scalbn(dVar2,__n);
}
if ((short)param_1 < 0) {
dVar2 = (double)((ulong)dVar2 ^ _DAT_001a5930);
}
return dVar2;
}
| |
55,070 | ma_crypt_get_index_page_header_space | eloqsql/storage/maria/ma_crypt.c | uint
ma_crypt_get_index_page_header_space(MARIA_SHARE *share)
{
if (share->base.born_transactional)
{
return CRYPT_SCHEME_1_KEY_VERSION_SIZE;
}
else
{
/* if the index is not transactional, we add 7 bytes LSN anyway
to be used for counter block
*/
return LSN_STORE_SIZE + CRYPT_SCHEME_1_KEY_VERSION_SIZE;
}
} | O3 | c | ma_crypt_get_index_page_header_space:
pushq %rbp
movq %rsp, %rbp
cmpb $0x0, 0x44c(%rdi)
movl $0xb, %ecx
movl $0x4, %eax
cmovel %ecx, %eax
popq %rbp
retq
| ma_crypt_get_index_page_header_space:
push rbp
mov rbp, rsp
cmp byte ptr [rdi+44Ch], 0
mov ecx, 0Bh
mov eax, 4
cmovz eax, ecx
pop rbp
retn
| long long ma_crypt_get_index_page_header_space(long long a1)
{
long long result; // rax
result = 4LL;
if ( !*(_BYTE *)(a1 + 1100) )
return 11LL;
return result;
}
| ma_crypt_get_index_page_header_space:
PUSH RBP
MOV RBP,RSP
CMP byte ptr [RDI + 0x44c],0x0
MOV ECX,0xb
MOV EAX,0x4
CMOVZ EAX,ECX
POP RBP
RET
|
int8 ma_crypt_get_index_page_header_space(long param_1)
{
int8 uVar1;
uVar1 = 4;
if (*(char *)(param_1 + 0x44c) == '\0') {
uVar1 = 0xb;
}
return uVar1;
}
| |
55,071 | my_strxfrm_desc_and_reverse | eloqsql/strings/ctype-simple.c | void
my_strxfrm_desc_and_reverse(uchar *str, uchar *strend,
uint flags, uint level)
{
if (flags & (MY_STRXFRM_DESC_LEVEL1 << level))
{
if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level))
{
for (strend--; str <= strend;)
{
uchar tmp= *str;
*str++= ~*strend;
*strend--= ~tmp;
}
}
else
{
for (; str < strend; str++)
*str= ~*str;
}
}
else if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level))
{
for (strend--; str < strend;)
{
uchar tmp= *str;
*str++= *strend;
*strend--= tmp;
}
}
} | O3 | c | my_strxfrm_desc_and_reverse:
pushq %rbp
movq %rsp, %rbp
movl %edx, %r8d
shrl %cl, %r8d
movl $0x10000, %eax # imm = 0x10000
shll %cl, %eax
btl $0x8, %r8d
jae 0x410b8
testl %edx, %eax
je 0x410eb
decq %rsi
cmpq %rdi, %rsi
jb 0x410fa
incq %rdi
movb -0x1(%rdi), %al
movb (%rsi), %cl
notb %cl
movb %cl, -0x1(%rdi)
notb %al
movb %al, (%rsi)
decq %rsi
leaq 0x1(%rdi), %rax
cmpq %rsi, %rdi
movq %rax, %rdi
jbe 0x41099
jmp 0x410fa
testl %edx, %eax
setne %al
decq %rsi
cmpq %rdi, %rsi
seta %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x410fa
incq %rdi
movb -0x1(%rdi), %al
movb (%rsi), %cl
movb %cl, -0x1(%rdi)
movb %al, (%rsi)
decq %rsi
leaq 0x1(%rdi), %rax
cmpq %rsi, %rdi
movq %rax, %rdi
jb 0x410d0
jmp 0x410fa
cmpq %rsi, %rdi
jae 0x410fa
notb (%rdi)
incq %rdi
cmpq %rsi, %rdi
jne 0x410f0
popq %rbp
retq
| my_strxfrm_desc_and_reverse:
push rbp
mov rbp, rsp
mov r8d, edx
shr r8d, cl
mov eax, 10000h
shl eax, cl
bt r8d, 8
jnb short loc_410B8
test eax, edx
jz short loc_410EB
dec rsi
cmp rsi, rdi
jb short loc_410FA
inc rdi
loc_41099:
mov al, [rdi-1]
mov cl, [rsi]
not cl
mov [rdi-1], cl
not al
mov [rsi], al
dec rsi
lea rax, [rdi+1]
cmp rdi, rsi
mov rdi, rax
jbe short loc_41099
jmp short loc_410FA
loc_410B8:
test eax, edx
setnz al
dec rsi
cmp rsi, rdi
setnbe cl
and cl, al
cmp cl, 1
jnz short loc_410FA
inc rdi
loc_410D0:
mov al, [rdi-1]
mov cl, [rsi]
mov [rdi-1], cl
mov [rsi], al
dec rsi
lea rax, [rdi+1]
cmp rdi, rsi
mov rdi, rax
jb short loc_410D0
jmp short loc_410FA
loc_410EB:
cmp rdi, rsi
jnb short loc_410FA
loc_410F0:
not byte ptr [rdi]
inc rdi
cmp rdi, rsi
jnz short loc_410F0
loc_410FA:
pop rbp
retn
| char my_strxfrm_desc_and_reverse(_BYTE *a1, _BYTE *a2, unsigned int a3, char a4)
{
int v4; // eax
_BYTE *v5; // rsi
_BYTE *v6; // rdi
char v7; // al
_BYTE *v9; // rsi
_BYTE *v10; // rdi
char v11; // al
v4 = 0x10000 << a4;
if ( ((a3 >> a4) & 0x100) != 0 )
{
if ( (a3 & v4) != 0 )
{
v5 = a2 - 1;
if ( v5 >= a1 )
{
v6 = a1 + 1;
do
{
v7 = *(v6 - 1);
*(v6 - 1) = ~*v5;
*v5-- = ~v7;
LOBYTE(v4) = (_BYTE)v6 + 1;
}
while ( v6++ <= v5 );
}
}
else if ( a1 < a2 )
{
do
{
*a1 = ~*a1;
++a1;
}
while ( a1 != a2 );
}
}
else
{
LOBYTE(v4) = (a3 & v4) != 0;
v9 = a2 - 1;
if ( ((unsigned __int8)v4 & (v9 > a1)) == 1 )
{
v10 = a1 + 1;
do
{
v11 = *(v10 - 1);
*(v10 - 1) = *v9;
*v9-- = v11;
LOBYTE(v4) = (_BYTE)v10 + 1;
}
while ( v10++ < v9 );
}
}
return v4;
}
| my_strxfrm_desc_and_reverse:
PUSH RBP
MOV RBP,RSP
MOV R8D,EDX
SHR R8D,CL
MOV EAX,0x10000
SHL EAX,CL
BT R8D,0x8
JNC 0x001410b8
TEST EAX,EDX
JZ 0x001410eb
DEC RSI
CMP RSI,RDI
JC 0x001410fa
INC RDI
LAB_00141099:
MOV AL,byte ptr [RDI + -0x1]
MOV CL,byte ptr [RSI]
NOT CL
MOV byte ptr [RDI + -0x1],CL
NOT AL
MOV byte ptr [RSI],AL
DEC RSI
LEA RAX,[RDI + 0x1]
CMP RDI,RSI
MOV RDI,RAX
JBE 0x00141099
JMP 0x001410fa
LAB_001410b8:
TEST EAX,EDX
SETNZ AL
DEC RSI
CMP RSI,RDI
SETA CL
AND CL,AL
CMP CL,0x1
JNZ 0x001410fa
INC RDI
LAB_001410d0:
MOV AL,byte ptr [RDI + -0x1]
MOV CL,byte ptr [RSI]
MOV byte ptr [RDI + -0x1],CL
MOV byte ptr [RSI],AL
DEC RSI
LEA RAX,[RDI + 0x1]
CMP RDI,RSI
MOV RDI,RAX
JC 0x001410d0
JMP 0x001410fa
LAB_001410eb:
CMP RDI,RSI
JNC 0x001410fa
LAB_001410f0:
NOT byte ptr [RDI]
INC RDI
CMP RDI,RSI
JNZ 0x001410f0
LAB_001410fa:
POP RBP
RET
|
void my_strxfrm_desc_and_reverse(byte *param_1,byte *param_2,uint param_3,byte param_4)
{
byte bVar1;
uint uVar2;
byte *pbVar3;
bool bVar4;
uVar2 = 0x10000 << (param_4 & 0x1f);
if (((param_3 >> (param_4 & 0x1f)) >> 8 & 1) == 0) {
param_2 = param_2 + -1;
if (param_1 < param_2 && (uVar2 & param_3) != 0) {
pbVar3 = param_1 + 1;
do {
bVar1 = pbVar3[-1];
pbVar3[-1] = *param_2;
*param_2 = bVar1;
param_2 = param_2 + -1;
bVar4 = pbVar3 < param_2;
pbVar3 = pbVar3 + 1;
} while (bVar4);
}
}
else if ((uVar2 & param_3) == 0) {
if (param_1 < param_2) {
do {
*param_1 = ~*param_1;
param_1 = param_1 + 1;
} while (param_1 != param_2);
}
}
else {
param_2 = param_2 + -1;
if (param_1 <= param_2) {
pbVar3 = param_1 + 1;
do {
bVar1 = pbVar3[-1];
pbVar3[-1] = ~*param_2;
*param_2 = ~bVar1;
param_2 = param_2 + -1;
bVar4 = pbVar3 <= param_2;
pbVar3 = pbVar3 + 1;
} while (bVar4);
}
}
return;
}
| |
55,072 | ast_create_cond | eshkol/src/frontend/ast/create/ast_create.c | AstNode* ast_create_cond(Arena* arena, AstNode** clauses, size_t clause_count, size_t line, size_t column) {
AstNode* node = ast_create_node(arena, AST_COND, line, column);
if (!node) {
return NULL;
}
node->as.cond.clauses = clauses;
node->as.cond.clause_count = clause_count;
return node;
} | O3 | c | ast_create_cond:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movl $0x12, %esi
movq %rcx, %rdx
movq %r8, %rcx
callq 0x3978
testq %rax, %rax
je 0x2f52
movq %r14, 0x48(%rax)
movq %rbx, 0x50(%rax)
popq %rbx
popq %r14
popq %rbp
retq
| ast_create_cond:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdx
mov r14, rsi
mov esi, 12h
mov rdx, rcx
mov rcx, r8
call ast_create_node
test rax, rax
jz short loc_2F52
mov [rax+48h], r14
mov [rax+50h], rbx
loc_2F52:
pop rbx
pop r14
pop rbp
retn
| long long ast_create_cond(long long a1, long long a2, long long a3, long long a4, long long a5)
{
long long result; // rax
result = ast_create_node(a1, 18LL, a4, a5);
if ( result )
{
*(_QWORD *)(result + 72) = a2;
*(_QWORD *)(result + 80) = a3;
}
return result;
}
| ast_create_cond:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDX
MOV R14,RSI
MOV ESI,0x12
MOV RDX,RCX
MOV RCX,R8
CALL 0x00103978
TEST RAX,RAX
JZ 0x00102f52
MOV qword ptr [RAX + 0x48],R14
MOV qword ptr [RAX + 0x50],RBX
LAB_00102f52:
POP RBX
POP R14
POP RBP
RET
|
void ast_create_cond(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5)
{
long lVar1;
lVar1 = ast_create_node(param_1,0x12,param_4,param_5);
if (lVar1 != 0) {
*(int8 *)(lVar1 + 0x48) = param_2;
*(int8 *)(lVar1 + 0x50) = param_3;
}
return;
}
| |
55,073 | ma_crypt_data_pre_write_hook | eloqsql/storage/maria/ma_crypt.c | static my_bool ma_crypt_data_pre_write_hook(PAGECACHE_IO_HOOK_ARGS *args)
{
MARIA_SHARE *share= (MARIA_SHARE*) args->data;
const uint size= share->block_size;
uint key_version;
uchar *crypt_buf= my_malloc(PSI_INSTRUMENT_ME, share->block_size, MYF(0));
if (crypt_buf == NULL)
{
args->crypt_buf= NULL; /* for post-hook */
return 1;
}
if (!share->base.born_transactional)
{
/* store a random number instead of LSN (for counter block) */
store_rand_lsn(args->page);
}
maria_page_crc_set_normal(args);
{
const uchar *src= args->page;
uchar* dst= crypt_buf;
uint pageno= (uint)args->pageno;
LSN lsn= lsn_korr(src);
const uchar page_type= src[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK;
const uint head= (page_type <= TAIL_PAGE) ?
PAGE_HEADER_SIZE(share) : FULL_PAGE_HEADER_SIZE(share);
const uint tail= CRC_SIZE;
const uint32 key_version_offset= (page_type <= TAIL_PAGE) ?
KEY_VERSION_OFFSET : FULL_PAGE_KEY_VERSION_OFFSET;
DBUG_ASSERT(page_type < MAX_PAGE_TYPE);
/* 1 - copy head */
memcpy(dst, src, head);
/* 2 - encrypt page */
if (ma_encrypt(share, share->crypt_data,
src + head, dst + head, size - (head + tail), pageno, lsn,
&key_version))
return 1;
/* 3 - copy tail */
memcpy(dst + size - tail, src + size - tail, tail);
/* 4 - store key version */
int4store(dst + key_version_offset, key_version);
}
/* swap pointers to instead write out the encrypted block */
args->crypt_buf= args->page;
args->page= crypt_buf;
return 0;
} | O0 | c | ma_crypt_data_pre_write_hook:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl 0x7bc(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movl 0x7bc(%rax), %eax
movl %eax, %esi
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %edx
callq 0xf4be0
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x5ffef
movq -0x10(%rbp), %rax
movq $0x0, 0x18(%rax)
movb $0x1, -0x1(%rbp)
jmp 0x60175
movq -0x18(%rbp), %rax
cmpb $0x0, 0x44c(%rax)
jne 0x60008
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x60800
movq -0x10(%rbp), %rdi
callq 0x5e910
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, -0x3c(%rbp)
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
movq -0x30(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x30(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
shlq $0x20, %rax
movq -0x30(%rbp), %rcx
movl 0x3(%rcx), %ecx
orq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %rax
movzbl 0x7(%rax), %eax
andl $0x7, %eax
movb %al, -0x49(%rbp)
movzbl -0x49(%rbp), %eax
cmpl $0x2, %eax
jg 0x6008d
movq -0x18(%rbp), %rax
movl 0xc18(%rax), %eax
addl $0xc, %eax
movl %eax, -0x64(%rbp)
jmp 0x6009d
movq -0x18(%rbp), %rax
movl 0xc18(%rax), %eax
addl $0x8, %eax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %eax
movl %eax, -0x50(%rbp)
movl $0x4, -0x54(%rbp)
movzbl -0x49(%rbp), %edx
movl $0x8, %eax
movl $0xc, %ecx
cmpl $0x2, %edx
cmovlel %ecx, %eax
movl %eax, -0x58(%rbp)
jmp 0x600c3
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x50(%rbp), %eax
movl %eax, %edx
callq 0x2a090
movq -0x18(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0xc20(%rax), %rsi
movq -0x30(%rbp), %rdx
movl -0x50(%rbp), %eax
addq %rax, %rdx
movq -0x38(%rbp), %rcx
movl -0x50(%rbp), %eax
addq %rax, %rcx
movl -0x1c(%rbp), %r8d
movl -0x50(%rbp), %eax
addl $0x4, %eax
subl %eax, %r8d
movl -0x3c(%rbp), %r9d
movq -0x48(%rbp), %r10
leaq -0x20(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x608b0
cmpl $0x0, %eax
je 0x6012a
movb $0x1, -0x1(%rbp)
jmp 0x60175
movq -0x38(%rbp), %rax
movl -0x1c(%rbp), %ecx
movq -0x30(%rbp), %rdx
movl -0x1c(%rbp), %esi
movl -0x4(%rdx,%rsi), %edx
movl %edx, -0x4(%rax,%rcx)
movq -0x38(%rbp), %rax
movl -0x58(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movl -0x20(%rbp), %ecx
movq -0x60(%rbp), %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_crypt_data_pre_write_hook:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov eax, [rax+7BCh]
mov [rbp+var_1C], eax
mov rax, [rbp+var_18]
mov eax, [rax+7BCh]
mov esi, eax
xor edi, edi
xor eax, eax
mov edx, eax
call my_malloc
mov [rbp+var_28], rax
cmp [rbp+var_28], 0
jnz short loc_5FFEF
mov rax, [rbp+var_10]
mov qword ptr [rax+18h], 0
mov [rbp+var_1], 1
jmp loc_60175
loc_5FFEF:
mov rax, [rbp+var_18]
cmp byte ptr [rax+44Ch], 0
jnz short loc_60008
mov rax, [rbp+var_10]
mov rdi, [rax]
call store_rand_lsn
loc_60008:
mov rdi, [rbp+var_10]
call maria_page_crc_set_normal
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_30], rax
mov rax, [rbp+var_28]
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_3C], eax
mov rax, [rbp+var_30]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
shl rax, 20h
mov rcx, [rbp+var_30]
mov ecx, [rcx+3]
or rax, rcx
mov [rbp+var_48], rax
mov rax, [rbp+var_30]
movzx eax, byte ptr [rax+7]
and eax, 7
mov [rbp+var_49], al
movzx eax, [rbp+var_49]
cmp eax, 2
jg short loc_6008D
mov rax, [rbp+var_18]
mov eax, [rax+0C18h]
add eax, 0Ch
mov [rbp+var_64], eax
jmp short loc_6009D
loc_6008D:
mov rax, [rbp+var_18]
mov eax, [rax+0C18h]
add eax, 8
mov [rbp+var_64], eax
loc_6009D:
mov eax, [rbp+var_64]
mov [rbp+var_50], eax
mov [rbp+var_54], 4
movzx edx, [rbp+var_49]
mov eax, 8
mov ecx, 0Ch
cmp edx, 2
cmovle eax, ecx
mov [rbp+var_58], eax
jmp short $+2
loc_600C3:
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_30]
mov eax, [rbp+var_50]
mov edx, eax
call _memcpy
mov rdi, [rbp+var_18]
mov rax, [rbp+var_18]
mov rsi, [rax+0C20h]
mov rdx, [rbp+var_30]
mov eax, [rbp+var_50]
add rdx, rax
mov rcx, [rbp+var_38]
mov eax, [rbp+var_50]
add rcx, rax
mov r8d, [rbp+var_1C]
mov eax, [rbp+var_50]
add eax, 4
sub r8d, eax
mov r9d, [rbp+var_3C]
mov r10, [rbp+var_48]
lea rax, [rbp+var_20]
mov [rsp+80h+var_80], r10
mov [rsp+80h+var_78], rax
call ma_encrypt
cmp eax, 0
jz short loc_6012A
mov [rbp+var_1], 1
jmp short loc_60175
loc_6012A:
mov rax, [rbp+var_38]
mov ecx, [rbp+var_1C]
mov rdx, [rbp+var_30]
mov esi, [rbp+var_1C]
mov edx, [rdx+rsi-4]
mov [rax+rcx-4], edx
mov rax, [rbp+var_38]
mov ecx, [rbp+var_58]
add rax, rcx
mov [rbp+var_60], rax
mov ecx, [rbp+var_20]
mov rax, [rbp+var_60]
mov [rax], ecx
mov rax, [rbp+var_10]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
mov [rax], rcx
mov [rbp+var_1], 0
loc_60175:
mov al, [rbp+var_1]
add rsp, 80h
pop rbp
retn
| char ma_crypt_data_pre_write_hook(long long *a1)
{
int v1; // eax
int v2; // eax
unsigned int v4; // [rsp+28h] [rbp-58h]
unsigned int v5; // [rsp+30h] [rbp-50h]
unsigned __int8 v6; // [rsp+37h] [rbp-49h]
unsigned long long v7; // [rsp+38h] [rbp-48h]
int v8; // [rsp+44h] [rbp-3Ch]
unsigned __int16 *v9; // [rsp+50h] [rbp-30h]
long long v10; // [rsp+58h] [rbp-28h]
int v11; // [rsp+60h] [rbp-20h] BYREF
unsigned int v12; // [rsp+64h] [rbp-1Ch]
long long v13; // [rsp+68h] [rbp-18h]
long long *v14; // [rsp+70h] [rbp-10h]
v14 = a1;
v13 = a1[2];
v12 = *(_DWORD *)(v13 + 1980);
v10 = my_malloc(0LL, *(unsigned int *)(v13 + 1980), 0LL);
if ( v10 )
{
if ( !*(_BYTE *)(v13 + 1100) )
store_rand_lsn(*v14);
maria_page_crc_set_normal(v14);
v9 = (unsigned __int16 *)*v14;
v8 = v14[1];
v7 = *(unsigned int *)((char *)v9 + 3) | ((unsigned long long)((*((unsigned __int8 *)v9 + 2) << 16) | (unsigned int)*v9) << 32);
v6 = *(_BYTE *)(*v14 + 7) & 7;
if ( v6 > 2u )
v1 = *(_DWORD *)(v13 + 3096) + 8;
else
v1 = *(_DWORD *)(v13 + 3096) + 12;
v5 = v1;
v2 = 8;
if ( v6 <= 2u )
v2 = 12;
v4 = v2;
memcpy(v10, v9, v5);
if ( (unsigned int)ma_encrypt(
v13,
*(_QWORD *)(v13 + 3104),
v5 + (unsigned int)v9,
v5 + (unsigned int)v10,
v12 - (v5 + 4),
v8,
v7,
(long long)&v11) )
{
return 1;
}
else
{
*(_DWORD *)(v10 + v12 - 4) = *(_DWORD *)((char *)v9 + v12 - 4);
*(_DWORD *)(v4 + v10) = v11;
v14[3] = *v14;
*v14 = v10;
return 0;
}
}
else
{
v14[3] = 0LL;
return 1;
}
}
| ma_crypt_data_pre_write_hook:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV ESI,EAX
XOR EDI,EDI
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001f4be0
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x28],0x0
JNZ 0x0015ffef
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],0x0
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00160175
LAB_0015ffef:
MOV RAX,qword ptr [RBP + -0x18]
CMP byte ptr [RAX + 0x44c],0x0
JNZ 0x00160008
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x00160800
LAB_00160008:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0015e910
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
SHL RAX,0x20
MOV RCX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RCX + 0x3]
OR RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX + 0x7]
AND EAX,0x7
MOV byte ptr [RBP + -0x49],AL
MOVZX EAX,byte ptr [RBP + -0x49]
CMP EAX,0x2
JG 0x0016008d
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0xc
MOV dword ptr [RBP + -0x64],EAX
JMP 0x0016009d
LAB_0016008d:
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0x8
MOV dword ptr [RBP + -0x64],EAX
LAB_0016009d:
MOV EAX,dword ptr [RBP + -0x64]
MOV dword ptr [RBP + -0x50],EAX
MOV dword ptr [RBP + -0x54],0x4
MOVZX EDX,byte ptr [RBP + -0x49]
MOV EAX,0x8
MOV ECX,0xc
CMP EDX,0x2
CMOVLE EAX,ECX
MOV dword ptr [RBP + -0x58],EAX
JMP 0x001600c3
LAB_001600c3:
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RBP + -0x50]
MOV EDX,EAX
CALL 0x0012a090
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX + 0xc20]
MOV RDX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RBP + -0x50]
ADD RDX,RAX
MOV RCX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RBP + -0x50]
ADD RCX,RAX
MOV R8D,dword ptr [RBP + -0x1c]
MOV EAX,dword ptr [RBP + -0x50]
ADD EAX,0x4
SUB R8D,EAX
MOV R9D,dword ptr [RBP + -0x3c]
MOV R10,qword ptr [RBP + -0x48]
LEA RAX,[RBP + -0x20]
MOV qword ptr [RSP],R10
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001608b0
CMP EAX,0x0
JZ 0x0016012a
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00160175
LAB_0016012a:
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x1c]
MOV RDX,qword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0x1c]
MOV EDX,dword ptr [RDX + RSI*0x1 + -0x4]
MOV dword ptr [RAX + RCX*0x1 + -0x4],EDX
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x58]
ADD RAX,RCX
MOV qword ptr [RBP + -0x60],RAX
MOV ECX,dword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV byte ptr [RBP + -0x1],0x0
LAB_00160175:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x80
POP RBP
RET
|
int1 ma_crypt_data_pre_write_hook(int8 *param_1)
{
int4 uVar1;
int3 *__src;
ulong uVar2;
int3 uVar3;
byte bVar4;
uint uVar5;
int iVar6;
void *__dest;
uint local_6c;
int4 local_28;
uint local_24;
long local_20;
int8 *local_18;
int1 local_9;
local_20 = param_1[2];
local_24 = *(uint *)(local_20 + 0x7bc);
local_18 = param_1;
__dest = (void *)my_malloc(0,*(int4 *)(local_20 + 0x7bc),0);
if (__dest == (void *)0x0) {
local_18[3] = 0;
local_9 = 1;
}
else {
if (*(char *)(local_20 + 0x44c) == '\0') {
store_rand_lsn(*local_18);
}
maria_page_crc_set_normal(local_18);
__src = (int3 *)*local_18;
uVar2 = local_18[1];
uVar3 = *__src;
uVar1 = *(int4 *)((long)__src + 3);
bVar4 = *(byte *)((long)__src + 7) & 7;
if (bVar4 < 3) {
local_6c = *(int *)(local_20 + 0xc18) + 0xc;
}
else {
local_6c = *(int *)(local_20 + 0xc18) + 8;
}
uVar5 = 8;
if (bVar4 < 3) {
uVar5 = 0xc;
}
memcpy(__dest,__src,(ulong)local_6c);
iVar6 = ma_encrypt(local_20,*(int8 *)(local_20 + 0xc20),(long)__src + (ulong)local_6c,
(long)__dest + (ulong)local_6c,local_24 - (local_6c + 4),uVar2 & 0xffffffff,
(ulong)CONCAT34(uVar3,uVar1),&local_28);
if (iVar6 == 0) {
*(int4 *)((long)__dest + ((ulong)local_24 - 4)) =
*(int4 *)((long)__src + ((ulong)local_24 - 4));
*(int4 *)((long)__dest + (ulong)uVar5) = local_28;
local_18[3] = *local_18;
*local_18 = __dest;
local_9 = 0;
}
else {
local_9 = 1;
}
}
return local_9;
}
| |
55,074 | ma_crypt_data_pre_write_hook | eloqsql/storage/maria/ma_crypt.c | static my_bool ma_crypt_data_pre_write_hook(PAGECACHE_IO_HOOK_ARGS *args)
{
MARIA_SHARE *share= (MARIA_SHARE*) args->data;
const uint size= share->block_size;
uint key_version;
uchar *crypt_buf= my_malloc(PSI_INSTRUMENT_ME, share->block_size, MYF(0));
if (crypt_buf == NULL)
{
args->crypt_buf= NULL; /* for post-hook */
return 1;
}
if (!share->base.born_transactional)
{
/* store a random number instead of LSN (for counter block) */
store_rand_lsn(args->page);
}
maria_page_crc_set_normal(args);
{
const uchar *src= args->page;
uchar* dst= crypt_buf;
uint pageno= (uint)args->pageno;
LSN lsn= lsn_korr(src);
const uchar page_type= src[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK;
const uint head= (page_type <= TAIL_PAGE) ?
PAGE_HEADER_SIZE(share) : FULL_PAGE_HEADER_SIZE(share);
const uint tail= CRC_SIZE;
const uint32 key_version_offset= (page_type <= TAIL_PAGE) ?
KEY_VERSION_OFFSET : FULL_PAGE_KEY_VERSION_OFFSET;
DBUG_ASSERT(page_type < MAX_PAGE_TYPE);
/* 1 - copy head */
memcpy(dst, src, head);
/* 2 - encrypt page */
if (ma_encrypt(share, share->crypt_data,
src + head, dst + head, size - (head + tail), pageno, lsn,
&key_version))
return 1;
/* 3 - copy tail */
memcpy(dst + size - tail, src + size - tail, tail);
/* 4 - store key version */
int4store(dst + key_version_offset, key_version);
}
/* swap pointers to instead write out the encrypted block */
args->crypt_buf= args->page;
args->page= crypt_buf;
return 0;
} | O3 | c | ma_crypt_data_pre_write_hook:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %r12
movl 0x7bc(%r12), %r14d
xorl %edi, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0xa0cdd
testq %rax, %rax
je 0x52120
movq %rax, -0x40(%rbp)
movq %r14, -0x50(%rbp)
cmpb $0x0, 0x44c(%r12)
jne 0x5204f
movq (%rbx), %rdi
callq 0x524cc
movq %rbx, %rdi
callq 0x51363
movq (%rbx), %r13
movl 0x8(%rbx), %eax
movl %eax, -0x30(%rbp)
movzwl (%r13), %eax
shlq $0x20, %rax
movzbl 0x2(%r13), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movl 0x3(%r13), %eax
orq %rcx, %rax
movq %rax, -0x48(%rbp)
movb 0x7(%r13), %cl
andb $0x7, %cl
xorl %eax, %eax
movb %cl, -0x29(%rbp)
cmpb $0x3, %cl
setb %al
movl 0xc18(%r12), %ecx
leal (%rcx,%rax,4), %r14d
addl $0x8, %r14d
movq -0x40(%rbp), %r15
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x29080
movq 0xc20(%r12), %rsi
leaq (%r14,%r13), %rdx
movq %r15, %rcx
addq %r14, %rcx
movq -0x50(%rbp), %r15
movl %r15d, %r8d
subl %r14d, %r8d
addl $-0x4, %r8d
leaq -0x34(%rbp), %rax
movq %r12, %rdi
movl -0x30(%rbp), %r9d
pushq %rax
pushq -0x48(%rbp)
callq 0x5250f
addq $0x10, %rsp
movl %eax, %ecx
movb $0x1, %al
testl %ecx, %ecx
jne 0x5212a
xorl %eax, %eax
cmpb $0x3, -0x29(%rbp)
setb %al
movl -0x4(%r13,%r15), %ecx
movq -0x40(%rbp), %rdx
movl %ecx, -0x4(%rdx,%r15)
movl -0x34(%rbp), %ecx
movl %ecx, 0x8(%rdx,%rax,4)
movq (%rbx), %rax
movq %rax, 0x18(%rbx)
movq %rdx, (%rbx)
xorl %eax, %eax
jmp 0x5212a
movq $0x0, 0x18(%rbx)
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ma_crypt_data_pre_write_hook:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdi
mov r12, [rdi+10h]
mov r14d, [r12+7BCh]
xor edi, edi
mov rsi, r14
xor edx, edx
call my_malloc
test rax, rax
jz loc_52120
mov [rbp+var_40], rax
mov [rbp+var_50], r14
cmp byte ptr [r12+44Ch], 0
jnz short loc_5204F
mov rdi, [rbx]
call store_rand_lsn
loc_5204F:
mov rdi, rbx
call maria_page_crc_set_normal
mov r13, [rbx]
mov eax, [rbx+8]
mov [rbp+var_30], eax
movzx eax, word ptr [r13+0]
shl rax, 20h
movzx ecx, byte ptr [r13+2]
shl rcx, 30h
or rcx, rax
mov eax, [r13+3]
or rax, rcx
mov [rbp+var_48], rax
mov cl, [r13+7]
and cl, 7
xor eax, eax
mov [rbp+var_29], cl
cmp cl, 3
setb al
mov ecx, [r12+0C18h]
lea r14d, [rcx+rax*4]
add r14d, 8
mov r15, [rbp+var_40]
mov rdi, r15
mov rsi, r13
mov rdx, r14
call _memcpy
mov rsi, [r12+0C20h]
lea rdx, [r14+r13]
mov rcx, r15
add rcx, r14
mov r15, [rbp+var_50]
mov r8d, r15d
sub r8d, r14d
add r8d, 0FFFFFFFCh
lea rax, [rbp+var_34]
mov rdi, r12
mov r9d, [rbp+var_30]
push rax
push [rbp+var_48]
call ma_encrypt
add rsp, 10h
mov ecx, eax
mov al, 1
test ecx, ecx
jnz short loc_5212A
xor eax, eax
cmp [rbp+var_29], 3
setb al
mov ecx, [r13+r15-4]
mov rdx, [rbp+var_40]
mov [rdx+r15-4], ecx
mov ecx, [rbp+var_34]
mov [rdx+rax*4+8], ecx
mov rax, [rbx]
mov [rbx+18h], rax
mov [rbx], rdx
xor eax, eax
jmp short loc_5212A
loc_52120:
mov qword ptr [rbx+18h], 0
mov al, 1
loc_5212A:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| char ma_crypt_data_pre_write_hook(long long *a1)
{
long long v1; // r12
long long v2; // r14
long long v3; // rax
unsigned __int16 *v4; // r13
unsigned int v5; // r14d
int v6; // ecx
char result; // al
_BOOL8 v8; // rax
long long v9; // [rsp+0h] [rbp-50h]
unsigned long long v10; // [rsp+8h] [rbp-48h]
long long v11; // [rsp+10h] [rbp-40h]
int v12; // [rsp+1Ch] [rbp-34h] BYREF
int v13; // [rsp+20h] [rbp-30h]
unsigned __int8 v14; // [rsp+27h] [rbp-29h]
v1 = a1[2];
v2 = *(unsigned int *)(v1 + 1980);
v3 = my_malloc(0LL, v2, 0LL);
if ( v3 )
{
v11 = v3;
v9 = v2;
if ( !*(_BYTE *)(v1 + 1100) )
store_rand_lsn(*a1);
maria_page_crc_set_normal(a1);
v4 = (unsigned __int16 *)*a1;
v13 = *((_DWORD *)a1 + 2);
v10 = ((unsigned long long)*v4 << 32) | ((unsigned long long)*((unsigned __int8 *)v4 + 2) << 48) | *(unsigned int *)((char *)v4 + 3);
v14 = *((_BYTE *)v4 + 7) & 7;
v5 = *(_DWORD *)(v1 + 3096) + 4 * (v14 < 3u) + 8;
memcpy(v11, v4, v5);
v6 = ma_encrypt(
v1,
*(_QWORD *)(v1 + 3104),
v5 + (unsigned int)v4,
v5 + (unsigned int)v11,
(unsigned int)v9 - v5 - 4,
v13,
v10,
(long long)&v12);
result = 1;
if ( !v6 )
{
v8 = v14 < 3u;
*(_DWORD *)(v11 + v9 - 4) = *(_DWORD *)((char *)v4 + v9 - 4);
*(_DWORD *)(v11 + 4 * v8 + 8) = v12;
a1[3] = *a1;
*a1 = v11;
return 0;
}
}
else
{
a1[3] = 0LL;
return 1;
}
return result;
}
| ma_crypt_data_pre_write_hook:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV R12,qword ptr [RDI + 0x10]
MOV R14D,dword ptr [R12 + 0x7bc]
XOR EDI,EDI
MOV RSI,R14
XOR EDX,EDX
CALL 0x001a0cdd
TEST RAX,RAX
JZ 0x00152120
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x50],R14
CMP byte ptr [R12 + 0x44c],0x0
JNZ 0x0015204f
MOV RDI,qword ptr [RBX]
CALL 0x001524cc
LAB_0015204f:
MOV RDI,RBX
CALL 0x00151363
MOV R13,qword ptr [RBX]
MOV EAX,dword ptr [RBX + 0x8]
MOV dword ptr [RBP + -0x30],EAX
MOVZX EAX,word ptr [R13]
SHL RAX,0x20
MOVZX ECX,byte ptr [R13 + 0x2]
SHL RCX,0x30
OR RCX,RAX
MOV EAX,dword ptr [R13 + 0x3]
OR RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV CL,byte ptr [R13 + 0x7]
AND CL,0x7
XOR EAX,EAX
MOV byte ptr [RBP + -0x29],CL
CMP CL,0x3
SETC AL
MOV ECX,dword ptr [R12 + 0xc18]
LEA R14D,[RCX + RAX*0x4]
ADD R14D,0x8
MOV R15,qword ptr [RBP + -0x40]
MOV RDI,R15
MOV RSI,R13
MOV RDX,R14
CALL 0x00129080
MOV RSI,qword ptr [R12 + 0xc20]
LEA RDX,[R14 + R13*0x1]
MOV RCX,R15
ADD RCX,R14
MOV R15,qword ptr [RBP + -0x50]
MOV R8D,R15D
SUB R8D,R14D
ADD R8D,-0x4
LEA RAX,[RBP + -0x34]
MOV RDI,R12
MOV R9D,dword ptr [RBP + -0x30]
PUSH RAX
PUSH qword ptr [RBP + -0x48]
CALL 0x0015250f
ADD RSP,0x10
MOV ECX,EAX
MOV AL,0x1
TEST ECX,ECX
JNZ 0x0015212a
XOR EAX,EAX
CMP byte ptr [RBP + -0x29],0x3
SETC AL
MOV ECX,dword ptr [R13 + R15*0x1 + -0x4]
MOV RDX,qword ptr [RBP + -0x40]
MOV dword ptr [RDX + R15*0x1 + -0x4],ECX
MOV ECX,dword ptr [RBP + -0x34]
MOV dword ptr [RDX + RAX*0x4 + 0x8],ECX
MOV RAX,qword ptr [RBX]
MOV qword ptr [RBX + 0x18],RAX
MOV qword ptr [RBX],RDX
XOR EAX,EAX
JMP 0x0015212a
LAB_00152120:
MOV qword ptr [RBX + 0x18],0x0
MOV AL,0x1
LAB_0015212a:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 ma_crypt_data_pre_write_hook(int8 *param_1)
{
ushort uVar1;
uint uVar2;
uint uVar3;
long lVar4;
ushort *__src;
ushort uVar5;
int iVar6;
void *__dest;
int8 uVar7;
uint uVar8;
ulong uVar9;
int4 local_3c;
int4 local_38;
byte local_31;
ulong __n;
lVar4 = param_1[2];
uVar2 = *(uint *)(lVar4 + 0x7bc);
uVar9 = (ulong)uVar2;
__dest = (void *)my_malloc(0,uVar9,0);
if (__dest == (void *)0x0) {
param_1[3] = 0;
uVar7 = 1;
}
else {
if (*(char *)(lVar4 + 0x44c) == '\0') {
store_rand_lsn(*param_1);
}
maria_page_crc_set_normal(param_1);
__src = (ushort *)*param_1;
local_38 = *(int4 *)(param_1 + 1);
uVar1 = *__src;
uVar5 = __src[1];
uVar3 = *(uint *)((long)__src + 3);
local_31 = *(byte *)((long)__src + 7) & 7;
uVar8 = *(int *)(lVar4 + 0xc18) + (uint)(local_31 < 3) * 4 + 8;
__n = (ulong)uVar8;
memcpy(__dest,__src,__n);
iVar6 = ma_encrypt(lVar4,*(int8 *)(lVar4 + 0xc20),__n + (long)__src,(long)__dest + __n,
(uVar2 - uVar8) + -4,local_38,
(ulong)uVar3 | (ulong)(byte)uVar5 << 0x30 | (ulong)uVar1 << 0x20,&local_3c);
uVar7 = 1;
if (iVar6 == 0) {
*(int4 *)((long)__dest + (uVar9 - 4)) = *(int4 *)((long)__src + (uVar9 - 4));
*(int4 *)((long)__dest + (ulong)(local_31 < 3) * 4 + 8) = local_3c;
param_1[3] = *param_1;
*param_1 = __dest;
uVar7 = 0;
}
}
return uVar7;
}
| |
55,075 | OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags() | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp | void
FVarRefinement::propagateEdgeTags() {
//
// Edge tags correspond to child edges and originate from faces or edges:
// Face-edges:
// - tag can be initialized as cts (*)
// * what was this comment: "discts based on parent face-edges at ends"
// Edge-edges:
// - tag propagated from parent edge
// - need to modify if parent edge was discts at one end
// - child edge for the matching end inherits tag
// - child edge at the other end is doubly discts
//
FVarLevel::ETag eTagMatch;
eTagMatch.clear();
eTagMatch._mismatch = false;
for (int eIndex = 0; eIndex < _refinement.getNumChildEdgesFromFaces(); ++eIndex) {
_childFVar._edgeTags[eIndex] = eTagMatch;
}
for (int eIndex = _refinement.getNumChildEdgesFromFaces(); eIndex < _childLevel.getNumEdges(); ++eIndex) {
Index pEdge = _refinement.getChildEdgeParentIndex(eIndex);
_childFVar._edgeTags[eIndex] = _parentFVar._edgeTags[pEdge];
}
} | O0 | cpp | OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags():
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
leaq -0x9(%rbp), %rdi
callq 0xd63f0
leaq -0x9(%rbp), %rdi
callq 0xcab00
movb -0x9(%rbp), %al
andb $-0x2, %al
orb $0x0, %al
movb %al, -0x9(%rbp)
movl $0x0, -0x10(%rbp)
movq -0x20(%rbp), %rax
movl -0x10(%rbp), %ecx
movl %ecx, -0x24(%rbp)
movq (%rax), %rdi
callq 0xd1470
movl %eax, %ecx
movl -0x24(%rbp), %eax
cmpl %ecx, %eax
jge 0xe5b07
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rdi
addq $0x30, %rdi
movslq -0x10(%rbp), %rsi
callq 0xd4a60
movb -0x9(%rbp), %cl
movb %cl, (%rax)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xe5ac7
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0xd1470
movl %eax, -0x14(%rbp)
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movl %ecx, -0x28(%rbp)
movq 0x18(%rax), %rdi
callq 0xca130
movl %eax, %ecx
movl -0x28(%rbp), %eax
cmpl %ecx, %eax
jge 0xe5b8a
movq -0x20(%rbp), %rax
movq (%rax), %rdi
movl -0x14(%rbp), %esi
callq 0xd61b0
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, -0x18(%rbp)
movq 0x10(%rax), %rdi
addq $0x30, %rdi
movslq -0x18(%rbp), %rsi
callq 0xd44a0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, -0x30(%rbp)
movq 0x20(%rax), %rdi
addq $0x30, %rdi
movslq -0x14(%rbp), %rsi
callq 0xd4a60
movq -0x30(%rbp), %rcx
movb (%rcx), %cl
movb %cl, (%rax)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xe5b16
addq $0x30, %rsp
popq %rbp
retq
| _ZN10OpenSubdiv6v3_6_03Vtr8internal14FVarRefinement17propagateEdgeTagsEv:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
lea rdi, [rbp+var_9]; this
call __ZN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel4ETagC2Ev; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag::ETag(void)
lea rdi, [rbp+var_9]; this
call __ZN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel4ETag5clearEv; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag::clear(void)
mov al, [rbp+var_9]
and al, 0FEh
or al, 0
mov [rbp+var_9], al
mov [rbp+var_10], 0
loc_E5AC7:
mov rax, [rbp+var_20]
mov ecx, [rbp+var_10]
mov [rbp+var_24], ecx
mov rdi, [rax]; this
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal10Refinement25getNumChildEdgesFromFacesEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getNumChildEdgesFromFaces(void)
mov ecx, eax
mov eax, [rbp+var_24]
cmp eax, ecx
jge short loc_E5B07
mov rax, [rbp+var_20]
mov rdi, [rax+20h]
add rdi, 30h ; '0'
movsxd rsi, [rbp+var_10]
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel4ETagESaIS5_EEixEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag>::operator[](ulong)
mov cl, [rbp+var_9]
mov [rax], cl
mov eax, [rbp+var_10]
add eax, 1
mov [rbp+var_10], eax
jmp short loc_E5AC7
loc_E5B07:
mov rax, [rbp+var_20]
mov rdi, [rax]; this
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal10Refinement25getNumChildEdgesFromFacesEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getNumChildEdgesFromFaces(void)
mov [rbp+var_14], eax
loc_E5B16:
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov [rbp+var_28], ecx
mov rdi, [rax+18h]; this
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level11getNumEdgesEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumEdges(void)
mov ecx, eax
mov eax, [rbp+var_28]
cmp eax, ecx
jge short loc_E5B8A
mov rax, [rbp+var_20]
mov rdi, [rax]; this
mov esi, [rbp+var_14]; int
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal10Refinement23getChildEdgeParentIndexEi; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getChildEdgeParentIndex(int)
mov ecx, eax
mov rax, [rbp+var_20]
mov [rbp+var_18], ecx
mov rdi, [rax+10h]
add rdi, 30h ; '0'
movsxd rsi, [rbp+var_18]
call __ZNKSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel4ETagESaIS5_EEixEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag>::operator[](ulong)
mov rcx, rax
mov rax, [rbp+var_20]
mov [rbp+var_30], rcx
mov rdi, [rax+20h]
add rdi, 30h ; '0'
movsxd rsi, [rbp+var_14]
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel4ETagESaIS5_EEixEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag>::operator[](ulong)
mov rcx, [rbp+var_30]
mov cl, [rcx]
mov [rax], cl
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_E5B16
loc_E5B8A:
add rsp, 30h
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags(
OpenSubdiv::v3_6_0::Vtr::internal::Level **this)
{
_BYTE *v1; // rax
int NumEdges; // ecx
long long result; // rax
int ChildEdgeParentIndex; // eax
_BYTE *v5; // [rsp+0h] [rbp-30h]
int j; // [rsp+1Ch] [rbp-14h]
int i; // [rsp+20h] [rbp-10h]
char v8; // [rsp+27h] [rbp-9h] BYREF
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement *v9; // [rsp+28h] [rbp-8h]
v9 = (OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement *)this;
OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag::ETag((OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag *)&v8);
OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag::clear((OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag *)&v8);
v8 &= ~1u;
for ( i = 0; i < (int)OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getNumChildEdgesFromFaces(*this); ++i )
{
v1 = (_BYTE *)std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag>::operator[]((char *)this[4] + 48, i);
*v1 = v8;
}
for ( j = OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getNumChildEdgesFromFaces(*this); ; ++j )
{
NumEdges = OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumEdges(this[3]);
result = (unsigned int)j;
if ( j >= NumEdges )
break;
ChildEdgeParentIndex = OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getChildEdgeParentIndex(*this, j);
v5 = (_BYTE *)std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag>::operator[](
(char *)this[2] + 48,
ChildEdgeParentIndex);
*(_BYTE *)std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag>::operator[]((char *)this[4] + 48, j) = *v5;
}
return result;
}
| propagateEdgeTags:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
LEA RDI,[RBP + -0x9]
CALL 0x001d63f0
LEA RDI,[RBP + -0x9]
CALL 0x001cab00
MOV AL,byte ptr [RBP + -0x9]
AND AL,0xfe
OR AL,0x0
MOV byte ptr [RBP + -0x9],AL
MOV dword ptr [RBP + -0x10],0x0
LAB_001e5ac7:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x10]
MOV dword ptr [RBP + -0x24],ECX
MOV RDI,qword ptr [RAX]
CALL 0x001d1470
MOV ECX,EAX
MOV EAX,dword ptr [RBP + -0x24]
CMP EAX,ECX
JGE 0x001e5b07
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX + 0x20]
ADD RDI,0x30
MOVSXD RSI,dword ptr [RBP + -0x10]
CALL 0x001d4a60
MOV CL,byte ptr [RBP + -0x9]
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x10]
ADD EAX,0x1
MOV dword ptr [RBP + -0x10],EAX
JMP 0x001e5ac7
LAB_001e5b07:
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX]
CALL 0x001d1470
MOV dword ptr [RBP + -0x14],EAX
LAB_001e5b16:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x28],ECX
MOV RDI,qword ptr [RAX + 0x18]
CALL 0x001ca130
MOV ECX,EAX
MOV EAX,dword ptr [RBP + -0x28]
CMP EAX,ECX
JGE 0x001e5b8a
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX]
MOV ESI,dword ptr [RBP + -0x14]
CALL 0x001d61b0
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x18],ECX
MOV RDI,qword ptr [RAX + 0x10]
ADD RDI,0x30
MOVSXD RSI,dword ptr [RBP + -0x18]
CALL 0x001d44a0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x30],RCX
MOV RDI,qword ptr [RAX + 0x20]
ADD RDI,0x30
MOVSXD RSI,dword ptr [RBP + -0x14]
CALL 0x001d4a60
MOV RCX,qword ptr [RBP + -0x30]
MOV CL,byte ptr [RCX]
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001e5b16
LAB_001e5b8a:
ADD RSP,0x30
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags() */
void __thiscall
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags(FVarRefinement *this)
{
int iVar1;
ETag *pEVar2;
int1 *puVar3;
int1 *puVar4;
int local_1c;
int local_18;
ETag local_11;
FVarRefinement *local_10;
local_10 = this;
FVarLevel::ETag::ETag(&local_11);
FVarLevel::ETag::clear(&local_11);
local_11 = (ETag)((byte)local_11 & 0xfe);
local_18 = 0;
while( true ) {
iVar1 = Refinement::getNumChildEdgesFromFaces(*(Refinement **)this);
if (iVar1 <= local_18) break;
pEVar2 = (ETag *)std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag>>
::operator[]((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag>>
*)(*(long *)(this + 0x20) + 0x30),(long)local_18);
*pEVar2 = local_11;
local_18 = local_18 + 1;
}
local_1c = Refinement::getNumChildEdgesFromFaces(*(Refinement **)this);
while( true ) {
iVar1 = Level::getNumEdges(*(Level **)(this + 0x18));
if (iVar1 <= local_1c) break;
iVar1 = Refinement::getChildEdgeParentIndex(*(Refinement **)this,local_1c);
puVar3 = (int1 *)
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag>>
::operator[]((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag>>
*)(*(long *)(this + 0x10) + 0x30),(long)iVar1);
puVar4 = (int1 *)
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag>>
::operator[]((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ETag>>
*)(*(long *)(this + 0x20) + 0x30),(long)local_1c);
*puVar4 = *puVar3;
local_1c = local_1c + 1;
}
return;
}
| |
55,076 | OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags() | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp | void
FVarRefinement::propagateEdgeTags() {
//
// Edge tags correspond to child edges and originate from faces or edges:
// Face-edges:
// - tag can be initialized as cts (*)
// * what was this comment: "discts based on parent face-edges at ends"
// Edge-edges:
// - tag propagated from parent edge
// - need to modify if parent edge was discts at one end
// - child edge for the matching end inherits tag
// - child edge at the other end is doubly discts
//
FVarLevel::ETag eTagMatch;
eTagMatch.clear();
eTagMatch._mismatch = false;
for (int eIndex = 0; eIndex < _refinement.getNumChildEdgesFromFaces(); ++eIndex) {
_childFVar._edgeTags[eIndex] = eTagMatch;
}
for (int eIndex = _refinement.getNumChildEdgesFromFaces(); eIndex < _childLevel.getNumEdges(); ++eIndex) {
Index pEdge = _refinement.getChildEdgeParentIndex(eIndex);
_childFVar._edgeTags[eIndex] = _parentFVar._edgeTags[pEdge];
}
} | O2 | cpp | OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags():
xorl %ecx, %ecx
movq (%rdi), %rax
movslq 0x2c(%rax), %rax
cmpq %rax, %rcx
jge 0x596c4
movq 0x20(%rdi), %rax
movq 0x30(%rax), %rax
movb $0x0, (%rax,%rcx)
incq %rcx
jmp 0x59680
movq (%rdi), %rcx
movq 0x10(%rdi), %rdx
movq 0x120(%rcx), %rcx
movslq (%rcx,%rax,4), %rcx
movq 0x30(%rdx), %rdx
movq 0x20(%rdi), %rsi
movq 0x30(%rsi), %rsi
movb (%rdx,%rcx), %cl
movb %cl, (%rsi,%rax)
incq %rax
movq 0x18(%rdi), %rcx
movslq 0x4(%rcx), %rcx
cmpq %rcx, %rax
jl 0x5969d
retq
| _ZN10OpenSubdiv6v3_6_03Vtr8internal14FVarRefinement17propagateEdgeTagsEv:
xor ecx, ecx
loc_59680:
mov rax, [rdi]
movsxd rax, dword ptr [rax+2Ch]
cmp rcx, rax
jge short loc_596C4
mov rax, [rdi+20h]
mov rax, [rax+30h]
mov byte ptr [rax+rcx], 0
inc rcx
jmp short loc_59680
loc_5969D:
mov rcx, [rdi]
mov rdx, [rdi+10h]
mov rcx, [rcx+120h]
movsxd rcx, dword ptr [rcx+rax*4]
mov rdx, [rdx+30h]
mov rsi, [rdi+20h]
mov rsi, [rsi+30h]
mov cl, [rdx+rcx]
mov [rsi+rax], cl
inc rax
loc_596C4:
mov rcx, [rdi+18h]
movsxd rcx, dword ptr [rcx+4]
cmp rax, rcx
jl short loc_5969D
retn
| long long OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags(
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement *this)
{
long long i; // rcx
long long result; // rax
for ( i = 0LL; ; ++i )
{
result = *(int *)(*(_QWORD *)this + 44LL);
if ( i >= result )
break;
*(_BYTE *)(*(_QWORD *)(*((_QWORD *)this + 4) + 48LL) + i) = 0;
}
while ( result < *(int *)(*((_QWORD *)this + 3) + 4LL) )
{
*(_BYTE *)(*(_QWORD *)(*((_QWORD *)this + 4) + 48LL) + result) = *(_BYTE *)(*(_QWORD *)(*((_QWORD *)this + 2) + 48LL)
+ *(int *)(*(_QWORD *)(*(_QWORD *)this + 288LL)
+ 4 * result));
++result;
}
return result;
}
| propagateEdgeTags:
XOR ECX,ECX
LAB_00159680:
MOV RAX,qword ptr [RDI]
MOVSXD RAX,dword ptr [RAX + 0x2c]
CMP RCX,RAX
JGE 0x001596c4
MOV RAX,qword ptr [RDI + 0x20]
MOV RAX,qword ptr [RAX + 0x30]
MOV byte ptr [RAX + RCX*0x1],0x0
INC RCX
JMP 0x00159680
LAB_0015969d:
MOV RCX,qword ptr [RDI]
MOV RDX,qword ptr [RDI + 0x10]
MOV RCX,qword ptr [RCX + 0x120]
MOVSXD RCX,dword ptr [RCX + RAX*0x4]
MOV RDX,qword ptr [RDX + 0x30]
MOV RSI,qword ptr [RDI + 0x20]
MOV RSI,qword ptr [RSI + 0x30]
MOV CL,byte ptr [RDX + RCX*0x1]
MOV byte ptr [RSI + RAX*0x1],CL
INC RAX
LAB_001596c4:
MOV RCX,qword ptr [RDI + 0x18]
MOVSXD RCX,dword ptr [RCX + 0x4]
CMP RAX,RCX
JL 0x0015969d
RET
|
/* OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags() */
void __thiscall
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags(FVarRefinement *this)
{
long lVar1;
long lVar2;
for (lVar2 = 0; lVar1 = (long)*(int *)(*(long *)this + 0x2c), lVar2 < lVar1; lVar2 = lVar2 + 1) {
*(int1 *)(*(long *)(*(long *)(this + 0x20) + 0x30) + lVar2) = 0;
}
for (; lVar1 < *(int *)(*(long *)(this + 0x18) + 4); lVar1 = lVar1 + 1) {
*(int1 *)(*(long *)(*(long *)(this + 0x20) + 0x30) + lVar1) =
*(int1 *)
(*(long *)(*(long *)(this + 0x10) + 0x30) +
(long)*(int *)(*(long *)(*(long *)this + 0x120) + lVar1 * 4));
}
return;
}
| |
55,077 | OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags() | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp | void
FVarRefinement::propagateEdgeTags() {
//
// Edge tags correspond to child edges and originate from faces or edges:
// Face-edges:
// - tag can be initialized as cts (*)
// * what was this comment: "discts based on parent face-edges at ends"
// Edge-edges:
// - tag propagated from parent edge
// - need to modify if parent edge was discts at one end
// - child edge for the matching end inherits tag
// - child edge at the other end is doubly discts
//
FVarLevel::ETag eTagMatch;
eTagMatch.clear();
eTagMatch._mismatch = false;
for (int eIndex = 0; eIndex < _refinement.getNumChildEdgesFromFaces(); ++eIndex) {
_childFVar._edgeTags[eIndex] = eTagMatch;
}
for (int eIndex = _refinement.getNumChildEdgesFromFaces(); eIndex < _childLevel.getNumEdges(); ++eIndex) {
Index pEdge = _refinement.getChildEdgeParentIndex(eIndex);
_childFVar._edgeTags[eIndex] = _parentFVar._edgeTags[pEdge];
}
} | O3 | cpp | OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags():
movq (%rdi), %rax
movl 0x2c(%rax), %eax
testl %eax, %eax
jle 0x4143b
xorl %ecx, %ecx
movq 0x20(%rdi), %rax
movq 0x30(%rax), %rax
movb $0x0, (%rax,%rcx)
incq %rcx
movq (%rdi), %rax
movslq 0x2c(%rax), %rax
cmpq %rax, %rcx
jl 0x41420
movq 0x18(%rdi), %rcx
cmpl 0x4(%rcx), %eax
jge 0x4147a
cltq
movq (%rdi), %rcx
movq 0x10(%rdi), %rdx
movq 0x120(%rcx), %rcx
movslq (%rcx,%rax,4), %rcx
movq 0x30(%rdx), %rdx
movq 0x20(%rdi), %rsi
movq 0x30(%rsi), %rsi
movb (%rdx,%rcx), %cl
movb %cl, (%rsi,%rax)
incq %rax
movq 0x18(%rdi), %rcx
movslq 0x4(%rcx), %rcx
cmpq %rcx, %rax
jl 0x41446
retq
nop
| _ZN10OpenSubdiv6v3_6_03Vtr8internal14FVarRefinement17propagateEdgeTagsEv:
mov rax, [rdi]
mov eax, [rax+2Ch]
test eax, eax
jle short loc_4143B
xor ecx, ecx
loc_41420:
mov rax, [rdi+20h]
mov rax, [rax+30h]
mov byte ptr [rax+rcx], 0
inc rcx
mov rax, [rdi]
movsxd rax, dword ptr [rax+2Ch]
cmp rcx, rax
jl short loc_41420
loc_4143B:
mov rcx, [rdi+18h]
cmp eax, [rcx+4]
jge short locret_4147A
cdqe
loc_41446:
mov rcx, [rdi]
mov rdx, [rdi+10h]
mov rcx, [rcx+120h]
movsxd rcx, dword ptr [rcx+rax*4]
mov rdx, [rdx+30h]
mov rsi, [rdi+20h]
mov rsi, [rsi+30h]
mov cl, [rdx+rcx]
mov [rsi+rax], cl
inc rax
mov rcx, [rdi+18h]
movsxd rcx, dword ptr [rcx+4]
cmp rax, rcx
jl short loc_41446
locret_4147A:
retn
| long long OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags(
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement *this)
{
long long result; // rax
long long i; // rcx
result = *(unsigned int *)(*(_QWORD *)this + 44LL);
if ( (int)result > 0 )
{
for ( i = 0LL; i < result; ++i )
{
*(_BYTE *)(*(_QWORD *)(*((_QWORD *)this + 4) + 48LL) + i) = 0;
result = *(int *)(*(_QWORD *)this + 44LL);
}
}
if ( (int)result < *(_DWORD *)(*((_QWORD *)this + 3) + 4LL) )
{
result = (int)result;
do
{
*(_BYTE *)(*(_QWORD *)(*((_QWORD *)this + 4) + 48LL) + result) = *(_BYTE *)(*(_QWORD *)(*((_QWORD *)this + 2)
+ 48LL)
+ *(int *)(*(_QWORD *)(*(_QWORD *)this + 288LL)
+ 4 * result));
++result;
}
while ( result < *(int *)(*((_QWORD *)this + 3) + 4LL) );
}
return result;
}
| propagateEdgeTags:
MOV RAX,qword ptr [RDI]
MOV EAX,dword ptr [RAX + 0x2c]
TEST EAX,EAX
JLE 0x0014143b
XOR ECX,ECX
LAB_00141420:
MOV RAX,qword ptr [RDI + 0x20]
MOV RAX,qword ptr [RAX + 0x30]
MOV byte ptr [RAX + RCX*0x1],0x0
INC RCX
MOV RAX,qword ptr [RDI]
MOVSXD RAX,dword ptr [RAX + 0x2c]
CMP RCX,RAX
JL 0x00141420
LAB_0014143b:
MOV RCX,qword ptr [RDI + 0x18]
CMP EAX,dword ptr [RCX + 0x4]
JGE 0x0014147a
CDQE
LAB_00141446:
MOV RCX,qword ptr [RDI]
MOV RDX,qword ptr [RDI + 0x10]
MOV RCX,qword ptr [RCX + 0x120]
MOVSXD RCX,dword ptr [RCX + RAX*0x4]
MOV RDX,qword ptr [RDX + 0x30]
MOV RSI,qword ptr [RDI + 0x20]
MOV RSI,qword ptr [RSI + 0x30]
MOV CL,byte ptr [RDX + RCX*0x1]
MOV byte ptr [RSI + RAX*0x1],CL
INC RAX
MOV RCX,qword ptr [RDI + 0x18]
MOVSXD RCX,dword ptr [RCX + 0x4]
CMP RAX,RCX
JL 0x00141446
LAB_0014147a:
RET
|
/* OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags() */
void __thiscall
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::propagateEdgeTags(FVarRefinement *this)
{
int iVar1;
long lVar2;
iVar1 = *(int *)(*(long *)this + 0x2c);
if (0 < iVar1) {
lVar2 = 0;
do {
*(int1 *)(*(long *)(*(long *)(this + 0x20) + 0x30) + lVar2) = 0;
lVar2 = lVar2 + 1;
iVar1 = *(int *)(*(long *)this + 0x2c);
} while (lVar2 < iVar1);
}
if (iVar1 < *(int *)(*(long *)(this + 0x18) + 4)) {
lVar2 = (long)iVar1;
do {
*(int1 *)(*(long *)(*(long *)(this + 0x20) + 0x30) + lVar2) =
*(int1 *)
(*(long *)(*(long *)(this + 0x10) + 0x30) +
(long)*(int *)(*(long *)(*(long *)this + 0x120) + lVar2 * 4));
lVar2 = lVar2 + 1;
} while (lVar2 < *(int *)(*(long *)(this + 0x18) + 4));
}
return;
}
| |
55,078 | mysql_select_db_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_select_db_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_select_db,
(parms->mysql, parms->db),
parms->mysql,
int,
r_int)
} | O3 | c | mysql_select_db_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rax
movq 0x8(%rdi), %rsi
movq 0x480(%rax), %rcx
movq 0x28(%rcx), %rbx
movq %rax, %rdi
callq 0x19803
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_select_db_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rax, [rdi]
mov rsi, [rdi+8]
mov rcx, [rax+480h]
mov rbx, [rcx+28h]
mov rdi, rax
call mysql_select_db
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_select_db_start_internal(long long *a1)
{
_DWORD *v1; // rbx
long long result; // rax
v1 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL);
result = mysql_select_db(*a1, a1[1]);
v1[2] = result;
*v1 = 0;
return result;
}
| mysql_select_db_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RCX + 0x28]
MOV RDI,RAX
CALL 0x00119803
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_select_db_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_select_db(*param_1,param_1[1]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
55,079 | common_chat_format_single[abi:cxx11](common_chat_templates const*, std::vector<common_chat_msg, std::allocator<common_chat_msg>> const&, common_chat_msg const&, bool, bool) | llama.cpp/common/chat.cpp | std::string common_chat_format_single(
const struct common_chat_templates * tmpls,
const std::vector<common_chat_msg> & past_msg,
const common_chat_msg & new_msg,
bool add_ass,
bool use_jinja) {
common_chat_templates_inputs inputs;
inputs.use_jinja = use_jinja;
std::string fmt_past_msg;
if (!past_msg.empty()) {
inputs.messages = past_msg;
inputs.add_generation_prompt = false;
fmt_past_msg = common_chat_templates_apply(tmpls, inputs).prompt;
}
std::ostringstream ss;
// if the past_msg ends with a newline, we must preserve it in the formatted version
if (add_ass && !fmt_past_msg.empty() && fmt_past_msg.back() == '\n') {
ss << "\n";
};
// format chat with new_msg
inputs.messages.push_back(new_msg);
inputs.add_generation_prompt = add_ass;
auto fmt_new_msg = common_chat_templates_apply(tmpls, inputs).prompt;
// get the diff part
ss << fmt_new_msg.substr(fmt_past_msg.size(), fmt_new_msg.size() - fmt_past_msg.size());
return ss.str();
} | O3 | cpp | common_chat_format_single[abi:cxx11](common_chat_templates const*, std::vector<common_chat_msg, std::allocator<common_chat_msg>> const&, common_chat_msg const&, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2d8, %rsp # imm = 0x2D8
movl %r8d, %ebp
movq %rcx, %r15
movq %rsi, %r14
movq %rdi, 0x40(%rsp)
xorl %eax, %eax
leaq 0x108(%rsp), %r13
movq %rax, -0x18(%r13)
xorps %xmm0, %xmm0
movaps %xmm0, -0x28(%r13)
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x128(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq %rax, -0x8(%rbx)
movb %al, (%rbx)
movb $0x1, %cl
movb %cl, 0x10(%rbx)
movaps %xmm0, 0x18(%rbx)
movups %xmm0, 0x25(%rbx)
movb %cl, 0x35(%rbx)
movb %r9b, 0x11(%rbx)
leaq 0x10(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq (%rdx), %rax
cmpq 0x8(%rdx), %rax
je 0x95d3b
leaq 0xe0(%rsp), %rdi
movq %rdx, %rsi
callq 0xb15fe
leaq 0xe0(%rsp), %rdx
movb $0x0, 0x58(%rdx)
leaq 0x160(%rsp), %rdi
movq %r14, %rsi
callq 0x937d7
leaq 0x168(%rsp), %rsi
movq %rsp, %rdi
callq 0x208c0
leaq 0x1e0(%rsp), %rdi
callq 0x28062
leaq 0x1c8(%rsp), %rdi
callq 0x28062
leaq 0x1b0(%rsp), %r12
movq %r12, %rdi
callq 0x28676
movq -0x28(%r12), %rdi
leaq 0x198(%rsp), %rax
cmpq %rax, %rdi
je 0x95d1a
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x20180
leaq 0x178(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x95d3b
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x20180
leaq 0x160(%rsp), %rdi
callq 0x21020
testb %bpl, %bpl
je 0x95d7b
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x95d7b
movq (%rsp), %rcx
cmpb $0xa, -0x1(%rcx,%rax)
jne 0x95d7b
leaq 0x89ac7(%rip), %rsi # 0x11f830
leaq 0x160(%rsp), %rdi
movl $0x1, %edx
callq 0x21080
leaq 0xe0(%rsp), %rdi
movq %r15, %rsi
callq 0xb0ad6
leaq 0xe0(%rsp), %rdx
movb %bpl, 0x58(%rdx)
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x937d7
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x60(%rsp), %r15
movq -0x10(%r15), %rax
cmpq %r15, %rax
je 0x95dd1
movq %rax, 0x20(%rsp)
movq 0x58(%rsp), %r12
movq 0x60(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0x95de6
movq 0x58(%rsp), %r12
leaq 0x1(%r12), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x200f0
movq %r12, 0x28(%rsp)
leaq 0xc8(%rsp), %rdi
movq %r15, -0x78(%rdi)
movq $0x0, -0x70(%rdi)
movb $0x0, -0x68(%rdi)
callq 0x28062
leaq 0xb0(%rsp), %rdi
callq 0x28062
leaq 0x98(%rsp), %r12
movq %r12, %rdi
callq 0x28676
movq -0x28(%r12), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x95e47
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x20180
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x95e5e
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x20180
movq 0x8(%rsp), %rdx
leaq 0x20(%rsp), %rsi
movq 0x8(%rsi), %rcx
subq %rdx, %rcx
leaq 0x48(%rsp), %rdi
callq 0x210f0
movq 0x40(%rsp), %r15
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x160(%rsp), %rdi
callq 0x21080
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x95eb0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x20180
leaq 0x168(%rsp), %rsi
movq %r15, %rdi
callq 0x20660
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x95ed7
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20180
leaq 0x140(%rsp), %r14
movq 0xcc072(%rip), %rsi # 0x161f58
leaq 0x160(%rsp), %rdi
callq 0x20c80
leaq 0x1d0(%rsp), %rdi
callq 0x20c50
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x95f1b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20180
movq %r14, %rdi
callq 0xb1390
movq 0x118(%rsp), %rdi
cmpq %rbx, %rdi
je 0x95f40
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x20180
movq 0xf8(%rsp), %rdi
cmpq %r13, %rdi
je 0x95f5d
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x20180
leaq 0xe0(%rsp), %rdi
callq 0xb0c62
movq %r15, %rax
addq $0x2d8, %rsp # imm = 0x2D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x95fc3
jmp 0x95fc3
jmp 0x95fa5
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x95fa8
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x20180
jmp 0x95fa8
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x95fcb
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20180
jmp 0x95fcb
jmp 0x95fc8
movq %rax, %rbx
jmp 0x95fec
movq %rax, %rbx
movq 0xcbf86(%rip), %rsi # 0x161f58
leaq 0x160(%rsp), %rdi
callq 0x20c80
leaq 0x1d0(%rsp), %rdi
callq 0x20c50
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x96007
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20180
leaq 0xe0(%rsp), %rdi
callq 0xb15b8
movq %rbx, %rdi
callq 0x20af0
| _Z25common_chat_format_singleB5cxx11PK21common_chat_templatesRKSt6vectorI15common_chat_msgSaIS3_EERKS3_bb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 2D8h
mov ebp, r8d
mov r15, rcx
mov r14, rsi
mov [rsp+308h+var_2C8], rdi
xor eax, eax
lea r13, [rsp+308h+var_200]
mov [r13-18h], rax
xorps xmm0, xmm0
movaps xmmword ptr [r13-28h], xmm0
mov [r13-10h], r13
mov [r13-8], rax
mov [r13+0], al
lea rbx, [rsp+308h+var_1E0]
mov [rbx-10h], rbx
mov [rbx-8], rax
mov [rbx], al
mov cl, 1
mov [rbx+10h], cl
movaps xmmword ptr [rbx+18h], xmm0
movups xmmword ptr [rbx+25h], xmm0
mov [rbx+35h], cl
mov [rbx+11h], r9b
lea rcx, [rsp+308h+var_2F8]
mov [rcx-10h], rcx
mov [rcx-8], rax
mov [rcx], al
mov rax, [rdx]
cmp rax, [rdx+8]
jz loc_95D3B
lea rdi, [rsp+308h+var_228]
mov rsi, rdx
call _ZNSt6vectorI15common_chat_msgSaIS0_EEaSERKS2_; std::vector<common_chat_msg>::operator=(std::vector<common_chat_msg> const&)
lea rdx, [rsp+308h+var_228]
mov byte ptr [rdx+58h], 0
lea rdi, [rsp+308h+var_1A8]
mov rsi, r14
call _Z27common_chat_templates_applyPK21common_chat_templatesRK28common_chat_templates_inputs; common_chat_templates_apply(common_chat_templates const*,common_chat_templates_inputs const&)
lea rsi, [rsp+308h+var_1A0]
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rdi, [rsp+308h+var_128]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+308h+var_140]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea r12, [rsp+308h+var_158]
mov rdi, r12
call _ZNSt6vectorI22common_grammar_triggerSaIS0_EED2Ev; std::vector<common_grammar_trigger>::~vector()
mov rdi, [r12-28h]; void *
lea rax, [rsp+308h+var_170]
cmp rdi, rax
jz short loc_95D1A
mov rsi, [rsp+308h+var_170]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_95D1A:
lea rax, [rsp+308h+var_190]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_95D3B
mov rsi, [rsp+308h+var_190]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_95D3B:
lea rdi, [rsp+308h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
test bpl, bpl
jz short loc_95D7B
mov rax, [rsp+308h+var_300]
test rax, rax
jz short loc_95D7B
mov rcx, [rsp+308h+var_308]
cmp byte ptr [rcx+rax-1], 0Ah
jnz short loc_95D7B
lea rsi, aExampleToolCal+1Ch; "\n"
lea rdi, [rsp+308h+var_1A8]
mov edx, 1
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
loc_95D7B:
lea rdi, [rsp+308h+var_228]
mov rsi, r15
call _ZNSt6vectorI15common_chat_msgSaIS0_EE9push_backERKS0_; std::vector<common_chat_msg>::push_back(common_chat_msg const&)
lea rdx, [rsp+308h+var_228]
mov [rdx+58h], bpl
lea rdi, [rsp+308h+var_2C0]
mov rsi, r14
call _Z27common_chat_templates_applyPK21common_chat_templatesRK28common_chat_templates_inputs; common_chat_templates_apply(common_chat_templates const*,common_chat_templates_inputs const&)
lea r14, [rsp+308h+var_2D8]
mov [r14-10h], r14
lea r15, [rsp+308h+var_2A8]
mov rax, [r15-10h]
cmp rax, r15
jz short loc_95DD1
mov [rsp+308h+var_2E8], rax
mov r12, [rsp+308h+var_2B0]
mov rax, [rsp+308h+var_2A8]
mov [rsp+308h+var_2D8], rax
jmp short loc_95DE6
loc_95DD1:
mov r12, [rsp+308h+var_2B0]
lea rdx, [r12+1]
mov rdi, r14
mov rsi, r15
call _memcpy
loc_95DE6:
mov [rsp+308h+var_2E0], r12
lea rdi, [rsp+308h+var_240]
mov [rdi-78h], r15
mov qword ptr [rdi-70h], 0
mov byte ptr [rdi-68h], 0
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+308h+var_258]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea r12, [rsp+308h+var_270]
mov rdi, r12
call _ZNSt6vectorI22common_grammar_triggerSaIS0_EED2Ev; std::vector<common_grammar_trigger>::~vector()
mov rdi, [r12-28h]; void *
lea rax, [rsp+308h+var_288]
cmp rdi, rax
jz short loc_95E47
mov rsi, [rsp+308h+var_288]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_95E47:
mov rdi, [rsp+308h+var_2B8]; void *
cmp rdi, r15
jz short loc_95E5E
mov rsi, [rsp+308h+var_2A8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_95E5E:
mov rdx, [rsp+308h+var_300]
lea rsi, [rsp+308h+var_2E8]
mov rcx, [rsi+8]
sub rcx, rdx
lea rdi, [rsp+308h+var_2C0]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov r15, [rsp+308h+var_2C8]
mov rsi, [rsp+308h+var_2C0]
mov rdx, [rsp+308h+var_2B8]
lea rdi, [rsp+308h+var_1A8]
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rax, [rsp+308h+var_2B0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_95EB0
mov rsi, [rsp+308h+var_2B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_95EB0:
lea rsi, [rsp+308h+var_1A0]
mov rdi, r15
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rdi, [rsp+308h+var_2E8]; void *
cmp rdi, r14
jz short loc_95ED7
mov rsi, [rsp+308h+var_2D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_95ED7:
lea r14, [rsp+308h+var_1C8]
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+308h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+308h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, [rsp+308h+var_308]; void *
lea rax, [rsp+308h+var_2F8]
cmp rdi, rax
jz short loc_95F1B
mov rsi, [rsp+308h+var_2F8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_95F1B:
mov rdi, r14
call _ZNSt6vectorI16common_chat_toolSaIS0_EED2Ev; std::vector<common_chat_tool>::~vector()
mov rdi, [rsp+308h+var_1F0]; void *
cmp rdi, rbx
jz short loc_95F40
mov rsi, [rsp+308h+var_1E0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_95F40:
mov rdi, [rsp+308h+var_210]; void *
cmp rdi, r13
jz short loc_95F5D
mov rsi, [rsp+308h+var_200]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_95F5D:
lea rdi, [rsp+308h+var_228]
call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector()
mov rax, r15
add rsp, 2D8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_95FC3
jmp short loc_95FC3
jmp short loc_95FA5
mov rbx, rax
lea rax, [rsp+arg_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_95FA8
mov rsi, [rsp+arg_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_95FA8
loc_95FA5:
mov rbx, rax
loc_95FA8:
mov rdi, [rsp+arg_18]; void *
cmp rdi, r14
jz short loc_95FCB
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_95FCB
jmp short loc_95FC8
loc_95FC3:
mov rbx, rax
jmp short loc_95FEC
loc_95FC8:
mov rbx, rax
loc_95FCB:
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_158]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+arg_1C8]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
loc_95FEC:
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_96007
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_96007:
lea rdi, [rsp+arg_D8]; this
call _ZN28common_chat_templates_inputsD2Ev; common_chat_templates_inputs::~common_chat_templates_inputs()
mov rdi, rbx
call __Unwind_Resume
| long long common_chat_format_single[abi:cxx11](
long long a1,
long long a2,
_QWORD *a3,
long long a4,
char a5,
char a6)
{
long long v8; // r12
long long v9; // r15
void *v11; // [rsp+0h] [rbp-308h] BYREF
long long v12; // [rsp+8h] [rbp-300h]
_QWORD v13[2]; // [rsp+10h] [rbp-2F8h] BYREF
void *v14; // [rsp+20h] [rbp-2E8h] BYREF
long long v15; // [rsp+28h] [rbp-2E0h]
_QWORD v16[2]; // [rsp+30h] [rbp-2D8h] BYREF
long long v17; // [rsp+40h] [rbp-2C8h]
long long *v18; // [rsp+48h] [rbp-2C0h] BYREF
void *v19; // [rsp+50h] [rbp-2B8h]
long long v20; // [rsp+58h] [rbp-2B0h] BYREF
_QWORD v21[2]; // [rsp+60h] [rbp-2A8h] BYREF
long long *v22; // [rsp+70h] [rbp-298h]
long long v23; // [rsp+80h] [rbp-288h] BYREF
_BYTE v24[24]; // [rsp+98h] [rbp-270h] BYREF
_BYTE v25[24]; // [rsp+B0h] [rbp-258h] BYREF
_BYTE v26[24]; // [rsp+C8h] [rbp-240h] BYREF
__int128 v27; // [rsp+E0h] [rbp-228h] BYREF
long long v28; // [rsp+F0h] [rbp-218h]
void *v29; // [rsp+F8h] [rbp-210h]
long long v30; // [rsp+100h] [rbp-208h]
_QWORD v31[2]; // [rsp+108h] [rbp-200h] BYREF
void *v32; // [rsp+118h] [rbp-1F0h]
long long v33; // [rsp+120h] [rbp-1E8h]
_QWORD v34[2]; // [rsp+128h] [rbp-1E0h] BYREF
char v35; // [rsp+138h] [rbp-1D0h]
char v36; // [rsp+139h] [rbp-1CFh]
_BYTE v37[32]; // [rsp+140h] [rbp-1C8h] BYREF
_BYTE v38[8]; // [rsp+160h] [rbp-1A8h] BYREF
void *v39[2]; // [rsp+168h] [rbp-1A0h] BYREF
long long v40; // [rsp+178h] [rbp-190h] BYREF
long long *v41; // [rsp+188h] [rbp-180h]
long long v42; // [rsp+198h] [rbp-170h] BYREF
_BYTE v43[24]; // [rsp+1B0h] [rbp-158h] BYREF
_BYTE v44[8]; // [rsp+1C8h] [rbp-140h] BYREF
_BYTE v45[16]; // [rsp+1D0h] [rbp-138h] BYREF
_BYTE v46[296]; // [rsp+1E0h] [rbp-128h] BYREF
v17 = a1;
v28 = 0LL;
v27 = 0LL;
v29 = v31;
v30 = 0LL;
LOBYTE(v31[0]) = 0;
v32 = v34;
v33 = 0LL;
LOBYTE(v34[0]) = 0;
v35 = 1;
memset(v37, 0, 29);
v37[29] = 1;
v36 = a6;
v11 = v13;
v12 = 0LL;
LOBYTE(v13[0]) = 0;
if ( *a3 != a3[1] )
{
std::vector<common_chat_msg>::operator=(&v27, a3);
v35 = 0;
common_chat_templates_apply((long long)v38, a2, (long long *)&v27);
std::string::operator=(&v11, v39);
std::vector<std::string>::~vector((long long)v46);
std::vector<std::string>::~vector((long long)v44);
std::vector<common_grammar_trigger>::~vector((long long)v43);
if ( v41 != &v42 )
operator delete(v41, v42 + 1);
if ( v39[0] != &v40 )
operator delete(v39[0], v40 + 1);
}
std::ostringstream::basic_ostringstream(v38);
if ( a5 && v12 && *((char *)v11 + v12 - 1) == 10 )
std::__ostream_insert<char,std::char_traits<char>>(v38, "\n", 1LL);
std::vector<common_chat_msg>::push_back(&v27, a4);
v35 = a5;
common_chat_templates_apply((long long)&v18, a2, (long long *)&v27);
v14 = v16;
if ( v19 == v21 )
{
v8 = v20;
memcpy(v16, v21, v20 + 1);
}
else
{
v14 = v19;
v8 = v20;
v16[0] = v21[0];
}
v15 = v8;
v19 = v21;
v20 = 0LL;
LOBYTE(v21[0]) = 0;
std::vector<std::string>::~vector((long long)v26);
std::vector<std::string>::~vector((long long)v25);
std::vector<common_grammar_trigger>::~vector((long long)v24);
if ( v22 != &v23 )
operator delete(v22, v23 + 1);
if ( v19 != v21 )
operator delete(v19, v21[0] + 1LL);
std::string::substr(&v18, &v14, v12, v15 - v12);
v9 = v17;
std::__ostream_insert<char,std::char_traits<char>>(v38, v18, v19);
if ( v18 != &v20 )
operator delete(v18, v20 + 1);
std::stringbuf::str(v9, v39);
if ( v14 != v16 )
operator delete(v14, v16[0] + 1LL);
std::ostringstream::~ostringstream(v38, &`VTT for'std::ostringstream);
std::ios_base::~ios_base((std::ios_base *)v45);
if ( v11 != v13 )
operator delete(v11, v13[0] + 1LL);
std::vector<common_chat_tool>::~vector(v37);
if ( v32 != v34 )
operator delete(v32, v34[0] + 1LL);
if ( v29 != v31 )
operator delete(v29, v31[0] + 1LL);
std::vector<common_chat_msg>::~vector(&v27);
return v9;
}
| common_chat_format_single[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x2d8
MOV EBP,R8D
MOV R15,RCX
MOV R14,RSI
MOV qword ptr [RSP + 0x40],RDI
XOR EAX,EAX
LEA R13,[RSP + 0x108]
MOV qword ptr [R13 + -0x18],RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [R13 + -0x28],XMM0
MOV qword ptr [R13 + -0x10],R13
MOV qword ptr [R13 + -0x8],RAX
MOV byte ptr [R13],AL
LEA RBX,[RSP + 0x128]
MOV qword ptr [RBX + -0x10],RBX
MOV qword ptr [RBX + -0x8],RAX
MOV byte ptr [RBX],AL
MOV CL,0x1
MOV byte ptr [RBX + 0x10],CL
MOVAPS xmmword ptr [RBX + 0x18],XMM0
MOVUPS xmmword ptr [RBX + 0x25],XMM0
MOV byte ptr [RBX + 0x35],CL
MOV byte ptr [RBX + 0x11],R9B
LEA RCX,[RSP + 0x10]
MOV qword ptr [RCX + -0x10],RCX
MOV qword ptr [RCX + -0x8],RAX
MOV byte ptr [RCX],AL
MOV RAX,qword ptr [RDX]
CMP RAX,qword ptr [RDX + 0x8]
JZ 0x00195d3b
LAB_00195c92:
LEA RDI,[RSP + 0xe0]
MOV RSI,RDX
CALL 0x001b15fe
LEA RDX,[RSP + 0xe0]
MOV byte ptr [RDX + 0x58],0x0
LAB_00195cae:
LEA RDI,[RSP + 0x160]
MOV RSI,R14
CALL 0x001937d7
LEA RSI,[RSP + 0x168]
MOV RDI,RSP
CALL 0x001208c0
LEA RDI,[RSP + 0x1e0]
CALL 0x00128062
LEA RDI,[RSP + 0x1c8]
CALL 0x00128062
LEA R12,[RSP + 0x1b0]
MOV RDI,R12
CALL 0x00128676
MOV RDI,qword ptr [R12 + -0x28]
LEA RAX,[RSP + 0x198]
CMP RDI,RAX
JZ 0x00195d1a
MOV RSI,qword ptr [RSP + 0x198]
INC RSI
CALL 0x00120180
LAB_00195d1a:
LEA RAX,[RSP + 0x178]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00195d3b
MOV RSI,qword ptr [RSP + 0x178]
INC RSI
CALL 0x00120180
LAB_00195d3b:
LEA RDI,[RSP + 0x160]
CALL 0x00121020
TEST BPL,BPL
JZ 0x00195d7b
MOV RAX,qword ptr [RSP + 0x8]
TEST RAX,RAX
JZ 0x00195d7b
MOV RCX,qword ptr [RSP]
CMP byte ptr [RCX + RAX*0x1 + -0x1],0xa
JNZ 0x00195d7b
LAB_00195d62:
LEA RSI,[0x21f830]
LEA RDI,[RSP + 0x160]
MOV EDX,0x1
CALL 0x00121080
LAB_00195d7b:
LEA RDI,[RSP + 0xe0]
MOV RSI,R15
CALL 0x001b0ad6
LEA RDX,[RSP + 0xe0]
MOV byte ptr [RDX + 0x58],BPL
LAB_00195d97:
LEA RDI,[RSP + 0x48]
MOV RSI,R14
CALL 0x001937d7
LAB_00195da4:
LEA R14,[RSP + 0x30]
MOV qword ptr [R14 + -0x10],R14
LEA R15,[RSP + 0x60]
MOV RAX,qword ptr [R15 + -0x10]
CMP RAX,R15
JZ 0x00195dd1
MOV qword ptr [RSP + 0x20],RAX
MOV R12,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x30],RAX
JMP 0x00195de6
LAB_00195dd1:
MOV R12,qword ptr [RSP + 0x58]
LEA RDX,[R12 + 0x1]
MOV RDI,R14
MOV RSI,R15
CALL 0x001200f0
LAB_00195de6:
MOV qword ptr [RSP + 0x28],R12
LEA RDI,[RSP + 0xc8]
MOV qword ptr [RDI + -0x78],R15
MOV qword ptr [RDI + -0x70],0x0
MOV byte ptr [RDI + -0x68],0x0
CALL 0x00128062
LEA RDI,[RSP + 0xb0]
CALL 0x00128062
LEA R12,[RSP + 0x98]
MOV RDI,R12
CALL 0x00128676
MOV RDI,qword ptr [R12 + -0x28]
LEA RAX,[RSP + 0x80]
CMP RDI,RAX
JZ 0x00195e47
MOV RSI,qword ptr [RSP + 0x80]
INC RSI
CALL 0x00120180
LAB_00195e47:
MOV RDI,qword ptr [RSP + 0x50]
CMP RDI,R15
JZ 0x00195e5e
MOV RSI,qword ptr [RSP + 0x60]
INC RSI
CALL 0x00120180
LAB_00195e5e:
MOV RDX,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x20]
MOV RCX,qword ptr [RSI + 0x8]
SUB RCX,RDX
LAB_00195e6f:
LEA RDI,[RSP + 0x48]
CALL 0x001210f0
MOV R15,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
LAB_00195e88:
LEA RDI,[RSP + 0x160]
CALL 0x00121080
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00195eb0
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x00120180
LAB_00195eb0:
LEA RSI,[RSP + 0x168]
LAB_00195eb8:
MOV RDI,R15
CALL 0x00120660
LAB_00195ec0:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R14
JZ 0x00195ed7
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x00120180
LAB_00195ed7:
LEA R14,[RSP + 0x140]
MOV RSI,qword ptr [0x00261f58]
LEA RDI,[RSP + 0x160]
CALL 0x00120c80
LEA RDI,[RSP + 0x1d0]
CALL 0x00120c50
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x00195f1b
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00120180
LAB_00195f1b:
MOV RDI,R14
CALL 0x001b1390
MOV RDI,qword ptr [RSP + 0x118]
CMP RDI,RBX
JZ 0x00195f40
MOV RSI,qword ptr [RSP + 0x128]
INC RSI
CALL 0x00120180
LAB_00195f40:
MOV RDI,qword ptr [RSP + 0xf8]
CMP RDI,R13
JZ 0x00195f5d
MOV RSI,qword ptr [RSP + 0x108]
INC RSI
CALL 0x00120180
LAB_00195f5d:
LEA RDI,[RSP + 0xe0]
CALL 0x001b0c62
MOV RAX,R15
ADD RSP,0x2d8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_chat_format_single[abi:cxx11](common_chat_templates const*, std::vector<common_chat_msg,
std::allocator<common_chat_msg> > const&, common_chat_msg const&, bool, bool) */
common_chat_templates *
common_chat_format_single_abi_cxx11_
(common_chat_templates *param_1,vector *param_2,common_chat_msg *param_3,bool param_4,
bool param_5)
{
common_chat_templates *pcVar1;
int7 in_register_00000009;
int1 *local_308;
long local_300;
int1 local_2f8;
int7 uStack_2f7;
long *local_2e8 [2];
long local_2d8 [2];
common_chat_templates *local_2c8;
long *local_2c0;
long *local_2b8;
long local_2b0;
int1 local_2a8;
int7 uStack_2a7;
long *local_298;
long local_288 [3];
vector<common_grammar_trigger,std::allocator<common_grammar_trigger>> local_270 [24];
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_258 [24];
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_240 [24];
int8 local_228;
int8 uStack_220;
int8 local_218;
int1 *local_210;
int8 local_208;
int1 local_200;
int7 uStack_1ff;
int1 *local_1f0;
int8 local_1e8;
int1 local_1e0;
int7 uStack_1df;
int1 local_1d0;
int8 local_1c8;
int5 uStack_1c0;
int3 uStack_1bb;
int5 uStack_1b8;
int8 uStack_1b3;
int1 local_1ab;
common_chat_templates local_1a8 [8];
long *local_1a0 [2];
long local_190 [2];
long *local_180;
long local_170 [3];
vector<common_grammar_trigger,std::allocator<common_grammar_trigger>> local_158 [24];
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_140 [8];
ios_base local_138 [16];
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_128 [248];
local_218 = 0;
local_228 = 0;
uStack_220 = 0;
local_208 = 0;
local_200 = 0;
local_1e8 = 0;
local_1e0 = 0;
local_1d0 = 1;
local_1c8 = 0;
uStack_1c0 = 0;
uStack_1bb = 0;
uStack_1b8 = 0;
uStack_1b3 = 0;
local_1ab = 1;
local_308 = &local_2f8;
local_300 = 0;
local_2f8 = 0;
local_2c8 = param_1;
local_210 = &local_200;
local_1f0 = &local_1e0;
if (*(long *)param_3 != *(long *)(param_3 + 8)) {
/* try { // try from 00195c92 to 00195ca1 has its CatchHandler @ 00195f81 */
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::operator=
((vector<common_chat_msg,std::allocator<common_chat_msg>> *)&local_228,
(vector *)param_3);
local_1d0 = 0;
/* try { // try from 00195cae to 00195cbd has its CatchHandler @ 00195f7f */
common_chat_templates_apply(local_1a8,(common_chat_templates_inputs *)param_2);
std::__cxx11::string::operator=((string *)&local_308,(string *)local_1a0);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_128);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_140);
std::vector<common_grammar_trigger,std::allocator<common_grammar_trigger>>::~vector(local_158);
if (local_180 != local_170) {
operator_delete(local_180,local_170[0] + 1);
}
if (local_1a0[0] != local_190) {
operator_delete(local_1a0[0],local_190[0] + 1);
}
}
/* try { // try from 00195d3b to 00195d47 has its CatchHandler @ 00195fc3 */
std::__cxx11::ostringstream::ostringstream((ostringstream *)local_1a8);
if (((param_5) && (local_300 != 0)) && (local_308[local_300 + -1] == '\n')) {
/* try { // try from 00195d62 to 00195d8a has its CatchHandler @ 00195fc8 */
std::__ostream_insert<char,std::char_traits<char>>((ostream *)local_1a8,"\n",1);
}
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::push_back
((vector<common_chat_msg,std::allocator<common_chat_msg>> *)&local_228,
(common_chat_msg *)CONCAT71(in_register_00000009,param_4));
/* try { // try from 00195d97 to 00195da3 has its CatchHandler @ 00195fc1 */
local_1d0 = param_5;
common_chat_templates_apply
((common_chat_templates *)&local_2c0,(common_chat_templates_inputs *)param_2);
if (local_2b8 == (long *)&local_2a8) {
local_2e8[0] = local_2d8;
memcpy(local_2d8,&local_2a8,local_2b0 + 1);
}
else {
local_2e8[0] = local_2b8;
local_2d8[0] = CONCAT71(uStack_2a7,local_2a8);
}
local_2b0 = 0;
local_2a8 = 0;
local_2b8 = (long *)&local_2a8;
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_240);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_258);
std::vector<common_grammar_trigger,std::allocator<common_grammar_trigger>>::~vector(local_270);
if (local_298 != local_288) {
operator_delete(local_298,local_288[0] + 1);
}
if (local_2b8 != (long *)&local_2a8) {
operator_delete(local_2b8,CONCAT71(uStack_2a7,local_2a8) + 1);
}
/* try { // try from 00195e6f to 00195e78 has its CatchHandler @ 00195fa5 */
std::__cxx11::string::substr((ulong)&local_2c0,(ulong)local_2e8);
pcVar1 = local_2c8;
/* try { // try from 00195e88 to 00195e94 has its CatchHandler @ 00195f85 */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,(char *)local_2c0,(long)local_2b8);
if (local_2c0 != &local_2b0) {
operator_delete(local_2c0,local_2b0 + 1);
}
/* try { // try from 00195eb8 to 00195ebf has its CatchHandler @ 00195f83 */
std::__cxx11::stringbuf::str();
if (local_2e8[0] != local_2d8) {
operator_delete(local_2e8[0],local_2d8[0] + 1);
}
std::__cxx11::ostringstream::~ostringstream((ostringstream *)local_1a8);
std::ios_base::~ios_base(local_138);
if (local_308 != &local_2f8) {
operator_delete(local_308,CONCAT71(uStack_2f7,local_2f8) + 1);
}
std::vector<common_chat_tool,std::allocator<common_chat_tool>>::~vector
((vector<common_chat_tool,std::allocator<common_chat_tool>> *)&local_1c8);
if (local_1f0 != &local_1e0) {
operator_delete(local_1f0,CONCAT71(uStack_1df,local_1e0) + 1);
}
if (local_210 != &local_200) {
operator_delete(local_210,CONCAT71(uStack_1ff,local_200) + 1);
}
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::~vector
((vector<common_chat_msg,std::allocator<common_chat_msg>> *)&local_228);
return pcVar1;
}
| |
55,080 | evmone::baseline::(anonymous namespace)::Position evmone::baseline::(anonymous namespace)::invoke<(evmone::Opcode)7>(std::array<short, 256ul> const&, intx::uint<256u> const*, evmone::baseline::(anonymous namespace)::Position, long&, evmone::ExecutionState&) | corpus-core[P]colibri-stateless/build_O2/_deps/evmone_external-src/lib/evmone/baseline_execution.cpp | [[release_inline]] inline Position invoke(const CostTable& cost_table, const uint256* stack_bottom,
Position pos, int64_t& gas, ExecutionState& state) noexcept
{
if (const auto status = check_requirements<Op>(cost_table, gas, pos.stack_top, stack_bottom);
status != EVMC_SUCCESS)
{
state.status = status;
return {nullptr, pos.stack_top};
}
const auto new_pos = invoke(instr::core::impl<Op>, pos, gas, state);
const auto new_stack_top = pos.stack_top + instr::traits[Op].stack_height_change;
return {new_pos, new_stack_top};
} | O2 | cpp | evmone::baseline::(anonymous namespace)::Position evmone::baseline::(anonymous namespace)::invoke<(evmone::Opcode)7>(std::array<short, 256ul> const&, intx::uint<256u> const*, evmone::baseline::(anonymous namespace)::Position, long&, evmone::ExecutionState&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r15
movq %rcx, %rbx
movswq 0x1a6(%rdi), %rax
testq %rax, %rax
js 0x3700e
addq $0x40, %rsi
cmpq %rbx, %rsi
jae 0x37012
movq %r8, %r12
movq (%r8), %rsi
subq %rax, %rsi
movq %rsi, (%r8)
js 0x37016
movq %rdx, %r14
movq %rbx, %rdi
movq %r15, %rdx
callq 0x3c1e8
movq %rdx, (%r12)
testl %eax, %eax
je 0x36ff5
movl %eax, 0x78(%r15)
xorl %r14d, %r14d
jmp 0x36ff8
incq %r14
addq $-0x60, %rbx
movq %r14, %rax
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
pushq $0x5
jmp 0x37018
pushq $0x7
jmp 0x37018
pushq $0x3
popq %rax
movl %eax, 0x78(%r15)
xorl %r14d, %r14d
jmp 0x36ffc
| _ZN6evmone8baseline12_GLOBAL__N_16invokeILNS_6OpcodeE211EEENS1_8PositionERKSt5arrayIsLm256EEPKN4intx4uintILj256EEES4_RlRNS_14ExecutionStateE:
push r15
push r14
push r12
push rbx
push rax
mov r15, r9
mov rbx, rcx
movsx rax, word ptr [rdi+1A6h]
test rax, rax
js short loc_3700E
add rsi, 40h ; '@'
cmp rsi, rbx
jnb short loc_37012
mov r12, r8
mov rsi, [r8]
sub rsi, rax
mov [r8], rsi
js short loc_37016
mov r14, rdx
mov rdi, rbx
mov rdx, r15
call _ZN6evmone5instr4core8datacopyENS_8StackTopElRNS_14ExecutionStateE; evmone::instr::core::datacopy(evmone::StackTop,long,evmone::ExecutionState &)
mov [r12], rdx
test eax, eax
jz short loc_36FF5
mov [r15+78h], eax
xor r14d, r14d
jmp short loc_36FF8
loc_36FF5:
inc r14
loc_36FF8:
add rbx, 0FFFFFFFFFFFFFFA0h
loc_36FFC:
mov rax, r14
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_3700E:
push 5
jmp short loc_37018
loc_37012:
push 7
jmp short loc_37018
loc_37016:
push 3
loc_37018:
pop rax
mov [r15+78h], eax
xor r14d, r14d
jmp short loc_36FFC
| long long evmone::baseline::`anonymous namespace'::invoke<(evmone::Opcode)211>(
long long a1,
long long a2,
long long a3,
unsigned long long a4,
_QWORD *a5,
long long a6)
{
long long v7; // rax
long long v9; // rsi
int v11; // eax
long long v12; // rdx
int v15; // [rsp-10h] [rbp-30h]
v7 = *(__int16 *)(a1 + 422);
if ( v7 < 0 )
{
v15 = 5;
LABEL_11:
*(_DWORD *)(a6 + 120) = v15;
return 0LL;
}
if ( a2 + 64 >= a4 )
{
v15 = 7;
goto LABEL_11;
}
v9 = *a5 - v7;
*a5 = v9;
if ( v9 < 0 )
{
v15 = 3;
goto LABEL_11;
}
v11 = evmone::instr::core::datacopy(a4, v9, a6);
*a5 = v12;
if ( !v11 )
return a3 + 1;
*(_DWORD *)(a6 + 120) = v11;
return 0LL;
}
| invoke<(evmone::Opcode)211>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,R9
MOV RBX,RCX
MOVSX RAX,word ptr [RDI + 0x1a6]
TEST RAX,RAX
JS 0x0013700e
ADD RSI,0x40
CMP RSI,RBX
JNC 0x00137012
MOV R12,R8
MOV RSI,qword ptr [R8]
SUB RSI,RAX
MOV qword ptr [R8],RSI
JS 0x00137016
MOV R14,RDX
MOV RDI,RBX
MOV RDX,R15
CALL 0x0013c1e8
MOV qword ptr [R12],RDX
TEST EAX,EAX
JZ 0x00136ff5
MOV dword ptr [R15 + 0x78],EAX
XOR R14D,R14D
JMP 0x00136ff8
LAB_00136ff5:
INC R14
LAB_00136ff8:
ADD RBX,-0x60
LAB_00136ffc:
MOV RAX,R14
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0013700e:
PUSH 0x5
JMP 0x00137018
LAB_00137012:
PUSH 0x7
JMP 0x00137018
LAB_00137016:
PUSH 0x3
LAB_00137018:
POP RAX
MOV dword ptr [R15 + 0x78],EAX
XOR R14D,R14D
JMP 0x00136ffc
|
/* evmone::baseline::(anonymous namespace)::Position evmone::baseline::(anonymous
namespace)::invoke<(evmone::Opcode)211>(std::array<short, 256ul> const&, intx::uint<256u> const*,
evmone::baseline::(anonymous namespace)::Position, long&, evmone::ExecutionState&) */
int1 [16] __thiscall
evmone::baseline::(anonymous_namespace)::invoke<(evmone::Opcode)211>
(_anonymous_namespace_ *this,long param_1,long param_2,ulong param_4,long *param_5,
long param_6)
{
int4 uVar1;
int iVar2;
long extraout_RDX;
long lVar3;
int1 auVar4 [16];
if ((long)*(short *)(this + 0x1a6) < 0) {
uVar1 = 5;
}
else if (param_1 + 0x40U < param_4) {
lVar3 = *param_5 - (long)*(short *)(this + 0x1a6);
*param_5 = lVar3;
if (-1 < lVar3) {
iVar2 = instr::core::datacopy(param_4,lVar3,param_6);
*param_5 = extraout_RDX;
if (iVar2 == 0) {
param_2 = param_2 + 1;
}
else {
*(int *)(param_6 + 0x78) = iVar2;
param_2 = 0;
}
param_4 = param_4 - 0x60;
goto LAB_00136ffc;
}
uVar1 = 3;
}
else {
uVar1 = 7;
}
*(int4 *)(param_6 + 0x78) = uVar1;
param_2 = 0;
LAB_00136ffc:
auVar4._8_8_ = param_4;
auVar4._0_8_ = param_2;
return auVar4;
}
| |
55,081 | blst_sk_inverse | corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/exports.c | void blst_sk_inverse(pow256 ret, const pow256 a)
{
const union {
long one;
char little;
} is_endian = { 1 };
if (((size_t)a|(size_t)ret)%sizeof(limb_t) == 0 && is_endian.little) {
limb_t *out = (limb_t *)ret;
mul_mont_sparse_256(out, (const limb_t *)a, BLS12_381_rRR,
BLS12_381_r, r0);
reciprocal_fr(out, out);
from_mont_256(out, out, BLS12_381_r, r0);
} else {
vec256 out;
limbs_from_le_bytes(out, a, 32);
mul_mont_sparse_256(out, out, BLS12_381_rRR, BLS12_381_r, r0);
reciprocal_fr(out, out);
from_mont_256(out, out, BLS12_381_r, r0);
le_bytes_from_limbs(ret, out, 32);
vec_zero(out, sizeof(out));
}
} | O0 | c | blst_sk_inverse:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq 0x31c09(%rip), %rax # 0xe6330
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
orq %rcx, %rax
andq $0x7, %rax
cmpq $0x0, %rax
jne 0xb47a6
movsbl -0x18(%rbp), %eax
cmpl $0x0, %eax
je 0xb47a6
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq 0x31bb0(%rip), %rdx # 0xe6310
leaq 0x31699(%rip), %rcx # 0xe5e00
movabsq $-0x100000001, %r8 # imm = 0xFFFFFFFEFFFFFFFF
callq 0xcb080
movq -0x20(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0xb11e0
movq -0x20(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq 0x3166e(%rip), %rdx # 0xe5e00
movabsq $-0x100000001, %rcx # imm = 0xFFFFFFFEFFFFFFFF
callq 0xcb4a0
jmp 0xb4828
leaq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x20, %edx
callq 0xb4290
leaq -0x40(%rbp), %rdi
leaq -0x40(%rbp), %rsi
leaq 0x31b49(%rip), %rdx # 0xe6310
leaq 0x31632(%rip), %rcx # 0xe5e00
movabsq $-0x100000001, %r8 # imm = 0xFFFFFFFEFFFFFFFF
callq 0xcb080
leaq -0x40(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0xb11e0
leaq -0x40(%rbp), %rdi
leaq -0x40(%rbp), %rsi
leaq 0x31607(%rip), %rdx # 0xe5e00
movabsq $-0x100000001, %rcx # imm = 0xFFFFFFFEFFFFFFFF
callq 0xcb4a0
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movl $0x20, %edx
callq 0xb43a0
leaq -0x40(%rbp), %rdi
movl $0x20, %esi
callq 0xa7170
addq $0x40, %rsp
popq %rbp
retq
nop
| blst_sk_inverse:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, cs:qword_E6330
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
or rax, rcx
and rax, 7
cmp rax, 0
jnz short loc_B47A6
movsx eax, byte ptr [rbp+var_18]
cmp eax, 0
jz short loc_B47A6
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_10]
lea rdx, BLS12_381_rRR
lea rcx, BLS12_381_r
mov r8, 0FFFFFFFEFFFFFFFFh
call mul_mont_sparse_256
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_20]
call reciprocal_fr
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_20]
lea rdx, BLS12_381_r
mov rcx, 0FFFFFFFEFFFFFFFFh
call from_mont_256
jmp loc_B4828
loc_B47A6:
lea rdi, [rbp+var_40]
mov rsi, [rbp+var_10]
mov edx, 20h ; ' '
call limbs_from_le_bytes
lea rdi, [rbp+var_40]
lea rsi, [rbp+var_40]
lea rdx, BLS12_381_rRR
lea rcx, BLS12_381_r
mov r8, 0FFFFFFFEFFFFFFFFh
call mul_mont_sparse_256
lea rdi, [rbp+var_40]
lea rsi, [rbp+var_40]
call reciprocal_fr
lea rdi, [rbp+var_40]
lea rsi, [rbp+var_40]
lea rdx, BLS12_381_r
mov rcx, 0FFFFFFFEFFFFFFFFh
call from_mont_256
mov rdi, [rbp+var_8]
lea rsi, [rbp+var_40]
mov edx, 20h ; ' '
call le_bytes_from_limbs
lea rdi, [rbp+var_40]
mov esi, 20h ; ' '
call vec_zero
loc_B4828:
add rsp, 40h
pop rbp
retn
| long long blst_sk_inverse(_BYTE *a1, long long a2)
{
_BYTE v3[32]; // [rsp+0h] [rbp-40h] BYREF
_BYTE *v4; // [rsp+20h] [rbp-20h]
long long v5; // [rsp+28h] [rbp-18h]
long long v6; // [rsp+30h] [rbp-10h]
_BYTE *v7; // [rsp+38h] [rbp-8h]
v7 = a1;
v6 = a2;
v5 = 1LL;
if ( (((unsigned __int8)a1 | (unsigned __int8)a2) & 7) != 0 )
{
limbs_from_le_bytes((long long)v3, v6, 0x20uLL);
mul_mont_sparse_256(v3, v3, &BLS12_381_rRR, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL);
reciprocal_fr((long long)v3, (long long)v3);
from_mont_256(v3, v3, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL);
le_bytes_from_limbs(v7, v3, 0x20uLL);
return vec_zero((long long)v3, 0x20uLL);
}
else
{
v4 = v7;
mul_mont_sparse_256(v7, v6, &BLS12_381_rRR, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL);
reciprocal_fr((long long)v4, (long long)v4);
return from_mont_256(v4, v4, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL);
}
}
| blst_sk_inverse:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [0x001e6330]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
OR RAX,RCX
AND RAX,0x7
CMP RAX,0x0
JNZ 0x001b47a6
MOVSX EAX,byte ptr [RBP + -0x18]
CMP EAX,0x0
JZ 0x001b47a6
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[0x1e6310]
LEA RCX,[0x1e5e00]
MOV R8,-0x100000001
CALL 0x001cb080
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x001b11e0
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x20]
LEA RDX,[0x1e5e00]
MOV RCX,-0x100000001
CALL 0x001cb4a0
JMP 0x001b4828
LAB_001b47a6:
LEA RDI,[RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0x20
CALL 0x001b4290
LEA RDI,[RBP + -0x40]
LEA RSI,[RBP + -0x40]
LEA RDX,[0x1e6310]
LEA RCX,[0x1e5e00]
MOV R8,-0x100000001
CALL 0x001cb080
LEA RDI,[RBP + -0x40]
LEA RSI,[RBP + -0x40]
CALL 0x001b11e0
LEA RDI,[RBP + -0x40]
LEA RSI,[RBP + -0x40]
LEA RDX,[0x1e5e00]
MOV RCX,-0x100000001
CALL 0x001cb4a0
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[RBP + -0x40]
MOV EDX,0x20
CALL 0x001b43a0
LEA RDI,[RBP + -0x40]
MOV ESI,0x20
CALL 0x001a7170
LAB_001b4828:
ADD RSP,0x40
POP RBP
RET
|
void blst_sk_inverse(ulong param_1,ulong param_2)
{
int1 local_48 [32];
ulong local_28;
int8 local_20;
ulong local_18;
ulong local_10;
local_20 = DAT_001e6330;
local_18 = param_2;
local_10 = param_1;
if ((((param_2 | param_1) & 7) == 0) &&
(local_20._0_1_ = (char)DAT_001e6330, (char)local_20 != '\0')) {
local_28 = param_1;
mul_mont_sparse_256(param_1,param_2,BLS12_381_rRR,BLS12_381_r,0xfffffffeffffffff);
reciprocal_fr(local_28,local_28);
from_mont_256(local_28,local_28,BLS12_381_r,0xfffffffeffffffff);
}
else {
limbs_from_le_bytes(local_48,param_2,0x20);
mul_mont_sparse_256(local_48,local_48,BLS12_381_rRR,BLS12_381_r,0xfffffffeffffffff);
reciprocal_fr(local_48,local_48);
from_mont_256(local_48,local_48,BLS12_381_r,0xfffffffeffffffff);
le_bytes_from_limbs(local_10,local_48,0x20);
vec_zero(local_48,0x20);
}
return;
}
| |
55,082 | mysql_select_db | eloqsql/libmariadb/libmariadb/mariadb_lib.c | int STDCALL
mysql_select_db(MYSQL *mysql, const char *db)
{
int error;
if (!db)
return 1;
if ((error=ma_simple_command(mysql, COM_INIT_DB, db,
(uint) strlen(db),0,0)))
return(error);
free(mysql->db);
mysql->db=strdup(db);
return(0);
} | O3 | c | mysql_select_db:
testq %rsi, %rsi
je 0x5d944
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x3a4c0
movl %eax, %ecx
movq 0x4d0(%rbx), %rax
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq *0x10(%rax)
testl %eax, %eax
jne 0x5d93f
movq 0x2e8(%rbx), %rdi
callq 0x3a210
movq %r14, %rdi
callq 0x3a030
movq %rax, 0x2e8(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
movl $0x1, %eax
retq
| mysql_select_db:
test rsi, rsi
jz short loc_5D944
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rsi
mov rbx, rdi
mov rdi, rsi
call _strlen
mov ecx, eax
mov rax, [rbx+4D0h]
mov rdi, rbx
mov esi, 2
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword ptr [rax+10h]
test eax, eax
jnz short loc_5D93F
mov rdi, [rbx+2E8h]
call _free
mov rdi, r14
call _strdup
mov [rbx+2E8h], rax
xor eax, eax
loc_5D93F:
pop rbx
pop r14
pop rbp
retn
loc_5D944:
mov eax, 1
retn
| long long mysql_select_db(long long a1, long long a2)
{
unsigned int v2; // eax
long long result; // rax
if ( !a2 )
return 1LL;
v2 = strlen(a2);
result = (*(long long ( **)(long long, long long, long long, _QWORD, _QWORD, _QWORD))(*(_QWORD *)(a1 + 1232) + 16LL))(
a1,
2LL,
a2,
v2,
0LL,
0LL);
if ( !(_DWORD)result )
{
free(*(_QWORD *)(a1 + 744));
*(_QWORD *)(a1 + 744) = strdup(a2);
return 0LL;
}
return result;
}
| mysql_select_db:
TEST RSI,RSI
JZ 0x0015d944
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x0013a4c0
MOV ECX,EAX
MOV RAX,qword ptr [RBX + 0x4d0]
MOV RDI,RBX
MOV ESI,0x2
MOV RDX,R14
XOR R8D,R8D
XOR R9D,R9D
CALL qword ptr [RAX + 0x10]
TEST EAX,EAX
JNZ 0x0015d93f
MOV RDI,qword ptr [RBX + 0x2e8]
CALL 0x0013a210
MOV RDI,R14
CALL 0x0013a030
MOV qword ptr [RBX + 0x2e8],RAX
XOR EAX,EAX
LAB_0015d93f:
POP RBX
POP R14
POP RBP
RET
LAB_0015d944:
MOV EAX,0x1
RET
|
int8 mysql_select_db(long param_1,char *param_2)
{
size_t sVar1;
int8 uVar2;
char *pcVar3;
if (param_2 != (char *)0x0) {
sVar1 = strlen(param_2);
uVar2 = (**(code **)(*(long *)(param_1 + 0x4d0) + 0x10))
(param_1,2,param_2,sVar1 & 0xffffffff,0,0);
if ((int)uVar2 == 0) {
free(*(void **)(param_1 + 0x2e8));
pcVar3 = strdup(param_2);
*(char **)(param_1 + 0x2e8) = pcVar3;
uVar2 = 0;
}
return uVar2;
}
return 1;
}
| |
55,083 | flux::parser::ClassDecl::clone() const | kvthweatt[P]FluxLang/src/parser/ast.cpp | std::unique_ptr<Decl> ClassDecl::clone() const {
std::vector<std::string_view> clonedBaseClasses = baseClasses;
std::vector<std::string_view> clonedExclusions = exclusions;
std::vector<std::unique_ptr<Decl>> clonedMembers;
for (const auto& member : members) {
clonedMembers.push_back(member->clone());
}
return std::make_unique<ClassDecl>(
name,
std::move(clonedBaseClasses),
std::move(clonedExclusions),
std::move(clonedMembers),
range,
isForwardDeclaration // Include the isForwardDeclaration flag
);
} | O1 | cpp | flux::parser::ClassDecl::clone() const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x38, %rsi
leaq 0x20(%rsp), %rdi
callq 0x104e2
leaq 0x50(%r14), %rsi
movq %rsp, %rdi
callq 0x104e2
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq 0x68(%r14), %r13
movq 0x70(%r14), %rbp
cmpq %rbp, %r13
je 0xf19b
leaq 0x60(%rsp), %r15
leaq 0x40(%rsp), %r12
movq (%r13), %rsi
movq (%rsi), %rax
movq %r15, %rdi
callq *0x18(%rax)
movq %r12, %rdi
movq %r15, %rsi
callq 0x12344
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xf192
movq (%rdi), %rax
callq *0x8(%rax)
addq $0x8, %r13
cmpq %rbp, %r13
jne 0xf16a
movl $0x88, %edi
callq 0x6270
movq %rax, %r15
movups 0x28(%r14), %xmm1
movaps 0x20(%rsp), %xmm2
movq 0x30(%rsp), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
xorl %eax, %eax
movq %rax, 0x30(%rsp)
movaps (%rsp), %xmm3
movq 0x10(%rsp), %rdx
movq %rax, 0x10(%rsp)
movaps %xmm0, (%rsp)
leaq 0x40(%rsp), %r12
movq (%r12), %rsi
movq 0x8(%r12), %r8
leaq 0x60(%rsp), %rdi
movq %rsi, (%rdi)
movq %r8, 0x8(%rdi)
movq 0x10(%r12), %r9
movq %r9, 0x10(%rdi)
movaps %xmm0, (%r12)
movq %rax, 0x10(%r12)
movb 0x80(%r14), %r10b
leaq 0x2bacd(%rip), %r11 # 0x3ace0
movq %r11, (%r15)
movups 0x8(%r14), %xmm4
movups 0x18(%r14), %xmm5
movups %xmm4, 0x8(%r15)
movups %xmm5, 0x18(%r15)
movups %xmm1, 0x28(%r15)
leaq 0x2b4e2(%rip), %r11 # 0x3a718
movq %r11, (%r15)
movups %xmm2, 0x38(%r15)
movq %rcx, 0x48(%r15)
movups %xmm3, 0x50(%r15)
movq %rdx, 0x60(%r15)
movq %rsi, 0x68(%r15)
movq %r8, 0x70(%r15)
movq %r9, 0x78(%r15)
movq %rax, 0x10(%rdi)
movaps %xmm0, (%rdi)
movb %r10b, 0x80(%r15)
callq 0x84e4
movq %r15, (%rbx)
movq %r12, %rdi
callq 0x84e4
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xf28b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x6280
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xf2a2
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x6280
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf2bb
movq %rax, %rbx
jmp 0xf2fc
movq %rax, %rbx
jmp 0xf2dc
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xf2d3
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x60(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x84e4
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xf2fc
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x6280
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xf313
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x6280
movq %rbx, %rdi
callq 0x6440
nop
| _ZNK4flux6parser9ClassDecl5cloneEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r14, rsi
mov rbx, rdi
add rsi, 38h ; '8'
lea rdi, [rsp+0A8h+var_88]
call _ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EEC2ERKS5_; std::vector<std::string_view>::vector(std::vector<std::string_view> const&)
lea rsi, [r14+50h]
mov rdi, rsp
call _ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EEC2ERKS5_; std::vector<std::string_view>::vector(std::vector<std::string_view> const&)
xorps xmm0, xmm0
movaps [rsp+0A8h+var_68], xmm0
mov [rsp+0A8h+var_58], 0
mov r13, [r14+68h]
mov rbp, [r14+70h]
cmp r13, rbp
jz short loc_F19B
lea r15, [rsp+0A8h+var_48]
lea r12, [rsp+0A8h+var_68]
loc_F16A:
mov rsi, [r13+0]
mov rax, [rsi]
mov rdi, r15
call qword ptr [rax+18h]
mov rdi, r12
mov rsi, r15
call _ZNSt6vectorISt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS3_EESaIS6_EE12emplace_backIJS6_EEERS6_DpOT_; std::vector<std::unique_ptr<flux::parser::Decl>>::emplace_back<std::unique_ptr<flux::parser::Decl>>(std::unique_ptr<flux::parser::Decl> &&)
mov rdi, [rsp+0A8h+var_48]
test rdi, rdi
jz short loc_F192
mov rax, [rdi]
call qword ptr [rax+8]
loc_F192:
add r13, 8
cmp r13, rbp
jnz short loc_F16A
loc_F19B:
mov edi, 88h; unsigned __int64
call __Znwm; operator new(ulong)
mov r15, rax
movups xmm1, xmmword ptr [r14+28h]
movaps xmm2, xmmword ptr [rsp+0A8h+var_88]
mov rcx, [rsp+0A8h+var_78]
xorps xmm0, xmm0
movaps xmmword ptr [rsp+0A8h+var_88], xmm0
xor eax, eax
mov [rsp+0A8h+var_78], rax
movaps xmm3, xmmword ptr [rsp+0A8h+var_A8]
mov rdx, [rsp+0A8h+var_98]
mov [rsp+0A8h+var_98], rax
movaps xmmword ptr [rsp+0A8h+var_A8], xmm0
lea r12, [rsp+0A8h+var_68]
mov rsi, [r12]
mov r8, [r12+8]
lea rdi, [rsp+0A8h+var_48]
mov [rdi], rsi
mov [rdi+8], r8
mov r9, [r12+10h]
mov [rdi+10h], r9
movaps xmmword ptr [r12], xmm0
mov [r12+10h], rax
mov r10b, [r14+80h]
lea r11, off_3ACE0
mov [r15], r11
movups xmm4, xmmword ptr [r14+8]
movups xmm5, xmmword ptr [r14+18h]
movups xmmword ptr [r15+8], xmm4
movups xmmword ptr [r15+18h], xmm5
movups xmmword ptr [r15+28h], xmm1
lea r11, off_3A718
mov [r15], r11
movups xmmword ptr [r15+38h], xmm2
mov [r15+48h], rcx
movups xmmword ptr [r15+50h], xmm3
mov [r15+60h], rdx
mov [r15+68h], rsi
mov [r15+70h], r8
mov [r15+78h], r9
mov [rdi+10h], rax
movaps xmmword ptr [rdi], xmm0
mov [r15+80h], r10b
call _ZNSt6vectorISt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS3_EESaIS6_EED2Ev; std::vector<std::unique_ptr<flux::parser::Decl>>::~vector()
mov [rbx], r15
mov rdi, r12
call _ZNSt6vectorISt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS3_EESaIS6_EED2Ev; std::vector<std::unique_ptr<flux::parser::Decl>>::~vector()
mov rdi, [rsp+0A8h+var_A8]; void *
test rdi, rdi
jz short loc_F28B
mov rsi, [rsp+0A8h+var_98]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F28B:
mov rdi, [rsp+0A8h+var_88]; void *
test rdi, rdi
jz short loc_F2A2
mov rsi, [rsp+0A8h+var_78]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F2A2:
mov rax, rbx
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_F2BB
mov rbx, rax
jmp short loc_F2FC
loc_F2BB:
mov rbx, rax
jmp short loc_F2DC
mov rbx, rax
mov rdi, [rsp+arg_58]
test rdi, rdi
jz short loc_F2D3
mov rax, [rdi]
call qword ptr [rax+8]
loc_F2D3:
mov [rsp+arg_58], 0
loc_F2DC:
lea rdi, [rsp+arg_38]
call _ZNSt6vectorISt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS3_EESaIS6_EED2Ev; std::vector<std::unique_ptr<flux::parser::Decl>>::~vector()
mov rdi, [rsp+0]; void *
test rdi, rdi
jz short loc_F2FC
mov rsi, [rsp+arg_8]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F2FC:
mov rdi, [rsp+arg_18]; void *
test rdi, rdi
jz short loc_F313
mov rsi, [rsp+arg_28]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F313:
mov rdi, rbx
call __Unwind_Resume
| flux::parser::ClassDecl * flux::parser::ClassDecl::clone(flux::parser::ClassDecl *this, long long a2)
{
long long v2; // r13
long long i; // rbp
long long v4; // r15
__int128 v5; // xmm1
__int128 v6; // xmm2
long long v7; // rcx
__int128 v8; // xmm3
long long v9; // rdx
__int128 v10; // kr00_16
long long v11; // r9
char v12; // r10
__int128 v13; // xmm5
void *v15[2]; // [rsp+0h] [rbp-A8h] BYREF
long long v16; // [rsp+10h] [rbp-98h]
void *v17[2]; // [rsp+20h] [rbp-88h] BYREF
long long v18; // [rsp+30h] [rbp-78h]
__int128 v19; // [rsp+40h] [rbp-68h] BYREF
long long v20; // [rsp+50h] [rbp-58h]
__int128 v21; // [rsp+60h] [rbp-48h] BYREF
long long v22; // [rsp+70h] [rbp-38h]
std::vector<std::string_view>::vector(v17, a2 + 56);
std::vector<std::string_view>::vector(v15, a2 + 80);
v19 = 0LL;
v20 = 0LL;
v2 = *(_QWORD *)(a2 + 104);
for ( i = *(_QWORD *)(a2 + 112); v2 != i; v2 += 8LL )
{
(*(void ( **)(__int128 *))(**(_QWORD **)v2 + 24LL))(&v21);
std::vector<std::unique_ptr<flux::parser::Decl>>::emplace_back<std::unique_ptr<flux::parser::Decl>>(&v19, &v21);
if ( (_QWORD)v21 )
(*(void ( **)(_QWORD))(*(_QWORD *)v21 + 8LL))(v21);
}
v4 = operator new(0x88uLL);
v5 = *(_OWORD *)(a2 + 40);
v6 = *(_OWORD *)v17;
v7 = v18;
*(_OWORD *)v17 = 0LL;
v18 = 0LL;
v8 = *(_OWORD *)v15;
v9 = v16;
v16 = 0LL;
*(_OWORD *)v15 = 0LL;
v10 = v19;
v21 = v19;
v11 = v20;
v22 = v20;
v19 = 0LL;
v20 = 0LL;
v12 = *(_BYTE *)(a2 + 128);
*(_QWORD *)v4 = &off_3ACE0;
v13 = *(_OWORD *)(a2 + 24);
*(_OWORD *)(v4 + 8) = *(_OWORD *)(a2 + 8);
*(_OWORD *)(v4 + 24) = v13;
*(_OWORD *)(v4 + 40) = v5;
*(_QWORD *)v4 = off_3A718;
*(_OWORD *)(v4 + 56) = v6;
*(_QWORD *)(v4 + 72) = v7;
*(_OWORD *)(v4 + 80) = v8;
*(_QWORD *)(v4 + 96) = v9;
*(_OWORD *)(v4 + 104) = v10;
*(_QWORD *)(v4 + 120) = v11;
v22 = 0LL;
v21 = 0LL;
*(_BYTE *)(v4 + 128) = v12;
std::vector<std::unique_ptr<flux::parser::Decl>>::~vector((long long)&v21);
*(_QWORD *)this = v4;
std::vector<std::unique_ptr<flux::parser::Decl>>::~vector((long long)&v19);
if ( v15[0] )
operator delete(v15[0], v16 - (unsigned long long)v15[0]);
if ( v17[0] )
operator delete(v17[0], v18 - (unsigned long long)v17[0]);
return this;
}
| clone:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R14,RSI
MOV RBX,RDI
ADD RSI,0x38
LEA RDI,[RSP + 0x20]
CALL 0x001104e2
LEA RSI,[R14 + 0x50]
LAB_0010f13a:
MOV RDI,RSP
CALL 0x001104e2
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV qword ptr [RSP + 0x50],0x0
MOV R13,qword ptr [R14 + 0x68]
MOV RBP,qword ptr [R14 + 0x70]
CMP R13,RBP
JZ 0x0010f19b
LEA R15,[RSP + 0x60]
LEA R12,[RSP + 0x40]
LAB_0010f16a:
MOV RSI,qword ptr [R13]
MOV RAX,qword ptr [RSI]
LAB_0010f171:
MOV RDI,R15
CALL qword ptr [RAX + 0x18]
LAB_0010f177:
MOV RDI,R12
MOV RSI,R15
CALL 0x00112344
LAB_0010f182:
MOV RDI,qword ptr [RSP + 0x60]
TEST RDI,RDI
JZ 0x0010f192
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_0010f192:
ADD R13,0x8
CMP R13,RBP
JNZ 0x0010f16a
LAB_0010f19b:
MOV EDI,0x88
CALL 0x00106270
LAB_0010f1a5:
MOV R15,RAX
MOVUPS XMM1,xmmword ptr [R14 + 0x28]
MOVAPS XMM2,xmmword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x30]
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
XOR EAX,EAX
MOV qword ptr [RSP + 0x30],RAX
MOVAPS XMM3,xmmword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x10],RAX
MOVAPS xmmword ptr [RSP],XMM0
LEA R12,[RSP + 0x40]
MOV RSI,qword ptr [R12]
MOV R8,qword ptr [R12 + 0x8]
LEA RDI,[RSP + 0x60]
MOV qword ptr [RDI],RSI
MOV qword ptr [RDI + 0x8],R8
MOV R9,qword ptr [R12 + 0x10]
MOV qword ptr [RDI + 0x10],R9
MOVAPS xmmword ptr [R12],XMM0
MOV qword ptr [R12 + 0x10],RAX
MOV R10B,byte ptr [R14 + 0x80]
LEA R11,[0x13ace0]
MOV qword ptr [R15],R11
MOVUPS XMM4,xmmword ptr [R14 + 0x8]
MOVUPS XMM5,xmmword ptr [R14 + 0x18]
MOVUPS xmmword ptr [R15 + 0x8],XMM4
MOVUPS xmmword ptr [R15 + 0x18],XMM5
MOVUPS xmmword ptr [R15 + 0x28],XMM1
LEA R11,[0x13a718]
MOV qword ptr [R15],R11
MOVUPS xmmword ptr [R15 + 0x38],XMM2
MOV qword ptr [R15 + 0x48],RCX
MOVUPS xmmword ptr [R15 + 0x50],XMM3
MOV qword ptr [R15 + 0x60],RDX
MOV qword ptr [R15 + 0x68],RSI
MOV qword ptr [R15 + 0x70],R8
MOV qword ptr [R15 + 0x78],R9
MOV qword ptr [RDI + 0x10],RAX
MOVAPS xmmword ptr [RDI],XMM0
MOV byte ptr [R15 + 0x80],R10B
CALL 0x001084e4
MOV qword ptr [RBX],R15
MOV RDI,R12
CALL 0x001084e4
MOV RDI,qword ptr [RSP]
TEST RDI,RDI
JZ 0x0010f28b
MOV RSI,qword ptr [RSP + 0x10]
SUB RSI,RDI
CALL 0x00106280
LAB_0010f28b:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x0010f2a2
MOV RSI,qword ptr [RSP + 0x30]
SUB RSI,RDI
CALL 0x00106280
LAB_0010f2a2:
MOV RAX,RBX
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* flux::parser::ClassDecl::clone() const */
void flux::parser::ClassDecl::clone(void)
{
int1 uVar1;
int8 *puVar2;
int8 uVar3;
int8 uVar4;
int8 uVar5;
int8 uVar6;
int8 uVar7;
void *pvVar8;
int8 uVar9;
long lVar10;
void *pvVar11;
int8 uVar12;
long lVar13;
int8 uVar14;
int8 uVar15;
int8 uVar16;
int8 *puVar17;
long in_RSI;
int8 *in_RDI;
void *local_a8;
int8 uStack_a0;
long local_98;
void *local_88;
int8 uStack_80;
long local_78;
int8 local_68;
int8 uStack_60;
int8 local_58;
long *local_48;
int8 uStack_40;
int8 local_38;
std::
vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>>
::vector((vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>>
*)&local_88,(vector *)(in_RSI + 0x38));
/* try { // try from 0010f13a to 0010f141 has its CatchHandler @ 0010f2b6 */
std::
vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>>
::vector((vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>>
*)&local_a8,(vector *)(in_RSI + 0x50));
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
puVar17 = *(int8 **)(in_RSI + 0x68);
puVar2 = *(int8 **)(in_RSI + 0x70);
if (puVar17 != puVar2) {
do {
/* try { // try from 0010f171 to 0010f176 has its CatchHandler @ 0010f2bb */
(**(code **)(*(long *)*puVar17 + 0x18))((unique_ptr *)&local_48);
/* try { // try from 0010f177 to 0010f181 has its CatchHandler @ 0010f2c0 */
std::
vector<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>,std::allocator<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>>>
::emplace_back<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>>
((vector<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>,std::allocator<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>>>
*)&local_68,(unique_ptr *)&local_48);
if (local_48 != (long *)0x0) {
(**(code **)(*local_48 + 8))();
}
puVar17 = puVar17 + 1;
} while (puVar17 != puVar2);
}
/* try { // try from 0010f19b to 0010f1a4 has its CatchHandler @ 0010f2b4 */
puVar17 = (int8 *)operator_new(0x88);
uVar16 = local_58;
uVar15 = uStack_60;
uVar14 = local_68;
lVar13 = local_78;
uVar12 = uStack_80;
pvVar11 = local_88;
lVar10 = local_98;
uVar9 = uStack_a0;
pvVar8 = local_a8;
uVar3 = *(int8 *)(in_RSI + 0x28);
uVar4 = *(int8 *)(in_RSI + 0x30);
local_88 = (void *)0x0;
uStack_80 = 0;
local_78 = 0;
local_98 = 0;
local_a8 = (void *)0x0;
uStack_a0 = 0;
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
uVar1 = *(int1 *)(in_RSI + 0x80);
*puVar17 = &PTR__Decl_0013ace0;
uVar5 = *(int8 *)(in_RSI + 0x10);
uVar6 = *(int8 *)(in_RSI + 0x18);
uVar7 = *(int8 *)(in_RSI + 0x20);
puVar17[1] = *(int8 *)(in_RSI + 8);
puVar17[2] = uVar5;
puVar17[3] = uVar6;
puVar17[4] = uVar7;
puVar17[5] = uVar3;
puVar17[6] = uVar4;
*puVar17 = &PTR__ClassDecl_0013a718;
puVar17[7] = pvVar11;
puVar17[8] = uVar12;
puVar17[9] = lVar13;
puVar17[10] = pvVar8;
puVar17[0xb] = uVar9;
puVar17[0xc] = lVar10;
puVar17[0xd] = uVar14;
puVar17[0xe] = uVar15;
puVar17[0xf] = uVar16;
local_38 = 0;
local_48 = (long *)0x0;
uStack_40 = 0;
*(int1 *)(puVar17 + 0x10) = uVar1;
std::
vector<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>,std::allocator<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>>>
::~vector((vector<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>,std::allocator<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>>>
*)&local_48);
*in_RDI = puVar17;
std::
vector<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>,std::allocator<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>>>
::~vector((vector<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>,std::allocator<std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>>>
*)&local_68);
if (local_a8 != (void *)0x0) {
operator_delete(local_a8,local_98 - (long)local_a8);
}
if (local_88 != (void *)0x0) {
operator_delete(local_88,local_78 - (long)local_88);
}
return;
}
| |
55,084 | reset_root_defaults | eloqsql/mysys/my_alloc.c | void reset_root_defaults(MEM_ROOT *mem_root, size_t block_size,
size_t pre_alloc_size __attribute__((unused)))
{
DBUG_ENTER("reset_root_defaults");
DBUG_ASSERT(alloc_root_inited(mem_root));
mem_root->block_size= (((block_size - ALLOC_ROOT_MIN_BLOCK_SIZE) & ~1) |
(mem_root->block_size & 1));
#if !(defined(HAVE_valgrind) && defined(EXTRA_DEBUG))
if (pre_alloc_size)
{
size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM));
if (!mem_root->pre_alloc || mem_root->pre_alloc->size != size)
{
USED_MEM *mem, **prev= &mem_root->free;
/*
Free unused blocks, so that consequent calls
to reset_root_defaults won't eat away memory.
*/
while (*prev)
{
mem= *prev;
if (mem->size == size)
{
/* We found a suitable block, no need to do anything else */
mem_root->pre_alloc= mem;
DBUG_VOID_RETURN;
}
if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size)
{
/* remove block from the list and free it */
*prev= mem->next;
my_free(mem);
}
else
prev= &mem->next;
}
/* Allocate new prealloc block and add it to the end of free list */
if ((mem= (USED_MEM *) my_malloc(mem_root->m_psi_key, size,
MYF(MALLOC_FLAG(mem_root->
block_size)))))
{
mem->size= size;
mem->left= pre_alloc_size;
mem->next= *prev;
*prev= mem_root->pre_alloc= mem;
TRASH_MEM(mem);
}
else
{
mem_root->pre_alloc= 0;
}
}
}
else
#endif
mem_root->pre_alloc= 0;
DBUG_VOID_RETURN;
} | O0 | c | reset_root_defaults:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0x34206
movq -0x10(%rbp), %rcx
subq $0x28, %rcx
andq $-0x2, %rcx
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
andq $0x1, %rax
orq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
cmpq $0x0, -0x18(%rbp)
je 0x3435f
movq -0x18(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x34261
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
cmpq -0x20(%rbp), %rax
je 0x3435d
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq $0x0, (%rax)
je 0x342d6
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
cmpq -0x20(%rbp), %rax
jne 0x3429d
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x3436f
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
addq $0x18, %rax
movq -0x28(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x342cc
movq -0x28(%rbp), %rax
movq (%rax), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rdi
callq 0x29060
jmp 0x342d4
movq -0x28(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x34269
movq -0x8(%rbp), %rax
movl 0x38(%rax), %edi
movq -0x20(%rbp), %rsi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdx
andq $0x1, %rdx
xorl %eax, %eax
movl $0x10000, %ecx # imm = 0x10000
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, %eax
movl %eax, %edx
callq 0x28ce0
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x3434f
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
movq (%rax), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
jmp 0x34349
jmp 0x3434b
jmp 0x3434d
jmp 0x3435b
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
jmp 0x3435d
jmp 0x3436b
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
jmp 0x3436d
jmp 0x3436f
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| reset_root_defaults:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
jmp short $+2
loc_34206:
mov rcx, [rbp+var_10]
sub rcx, 28h ; '('
and rcx, 0FFFFFFFFFFFFFFFEh
mov rax, [rbp+var_8]
mov rax, [rax+20h]
and rax, 1
or rcx, rax
mov rax, [rbp+var_8]
mov [rax+20h], rcx
cmp [rbp+var_18], 0
jz loc_3435F
mov rax, [rbp+var_18]
add rax, 18h
mov [rbp+var_20], rax
mov rax, [rbp+var_8]
cmp qword ptr [rax+10h], 0
jz short loc_34261
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rax, [rax+10h]
cmp rax, [rbp+var_20]
jz loc_3435D
loc_34261:
mov rax, [rbp+var_8]
mov [rbp+var_30], rax
loc_34269:
mov rax, [rbp+var_30]
cmp qword ptr [rax], 0
jz short loc_342D6
mov rax, [rbp+var_30]
mov rax, [rax]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rax, [rax+10h]
cmp rax, [rbp+var_20]
jnz short loc_3429D
mov rcx, [rbp+var_28]
mov rax, [rbp+var_8]
mov [rax+10h], rcx
jmp loc_3436F
loc_3429D:
mov rax, [rbp+var_28]
mov rax, [rax+8]
add rax, 18h
mov rcx, [rbp+var_28]
cmp rax, [rcx+10h]
jnz short loc_342CC
mov rax, [rbp+var_28]
mov rcx, [rax]
mov rax, [rbp+var_30]
mov [rax], rcx
mov rdi, [rbp+var_28]
call my_free
jmp short loc_342D4
loc_342CC:
mov rax, [rbp+var_28]
mov [rbp+var_30], rax
loc_342D4:
jmp short loc_34269
loc_342D6:
mov rax, [rbp+var_8]
mov edi, [rax+38h]
mov rsi, [rbp+var_20]
mov rax, [rbp+var_8]
mov rdx, [rax+20h]
and rdx, 1
xor eax, eax
mov ecx, offset stru_10000
cmp rdx, 0
cmovnz eax, ecx
mov eax, eax
mov edx, eax
call my_malloc
mov [rbp+var_28], rax
cmp rax, 0
jz short loc_3434F
mov rcx, [rbp+var_20]
mov rax, [rbp+var_28]
mov [rax+10h], rcx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_28]
mov [rax+8], rcx
mov rax, [rbp+var_30]
mov rcx, [rax]
mov rax, [rbp+var_28]
mov [rax], rcx
mov rcx, [rbp+var_28]
mov rax, [rbp+var_8]
mov [rax+10h], rcx
mov rax, [rbp+var_30]
mov [rax], rcx
jmp short $+2
loc_34349:
jmp short $+2
loc_3434B:
jmp short $+2
loc_3434D:
jmp short loc_3435B
loc_3434F:
mov rax, [rbp+var_8]
mov qword ptr [rax+10h], 0
loc_3435B:
jmp short $+2
loc_3435D:
jmp short loc_3436B
loc_3435F:
mov rax, [rbp+var_8]
mov qword ptr [rax+10h], 0
loc_3436B:
jmp short $+2
loc_3436D:
jmp short $+2
loc_3436F:
add rsp, 30h
pop rbp
retn
| long long * reset_root_defaults(long long *a1, long long a2, long long a3)
{
long long *result; // rax
unsigned int v4; // edi
int v5; // eax
long long *v6; // [rsp+0h] [rbp-30h]
long long *v7; // [rsp+8h] [rbp-28h]
_QWORD *v8; // [rsp+8h] [rbp-28h]
unsigned long long v9; // [rsp+10h] [rbp-20h]
a1[4] = a1[4] & 1 | (a2 - 40) & 0xFFFFFFFFFFFFFFFELL;
if ( a3 )
{
v9 = a3 + 24;
if ( !a1[2] || (result = *(long long **)(a1[2] + 16), result != (long long *)v9) )
{
v6 = a1;
while ( *v6 )
{
v7 = (long long *)*v6;
if ( *(_QWORD *)(*v6 + 16) == v9 )
{
result = a1;
a1[2] = (long long)v7;
return result;
}
if ( v7[1] + 24 == v7[2] )
{
*v6 = *v7;
my_free((long long)v7);
}
else
{
v6 = (long long *)*v6;
}
}
v4 = *((_DWORD *)a1 + 14);
v5 = 0;
if ( (a1[4] & 1) != 0 )
v5 = (unsigned int)&stru_10000;
v8 = (_QWORD *)my_malloc(v4, v9, v5);
if ( v8 )
{
v8[2] = v9;
v8[1] = a3;
*v8 = *v6;
a1[2] = (long long)v8;
result = v6;
*v6 = (long long)v8;
}
else
{
result = a1;
a1[2] = 0LL;
}
}
}
else
{
result = a1;
a1[2] = 0LL;
}
return result;
}
| reset_root_defaults:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x00134206
LAB_00134206:
MOV RCX,qword ptr [RBP + -0x10]
SUB RCX,0x28
AND RCX,-0x2
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x20]
AND RAX,0x1
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x20],RCX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0013435f
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x18
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x10],0x0
JZ 0x00134261
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RAX + 0x10]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x0013435d
LAB_00134261:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x30],RAX
LAB_00134269:
MOV RAX,qword ptr [RBP + -0x30]
CMP qword ptr [RAX],0x0
JZ 0x001342d6
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x10]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x0013429d
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x0013436f
LAB_0013429d:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,0x18
MOV RCX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RCX + 0x10]
JNZ 0x001342cc
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00129060
JMP 0x001342d4
LAB_001342cc:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x30],RAX
LAB_001342d4:
JMP 0x00134269
LAB_001342d6:
MOV RAX,qword ptr [RBP + -0x8]
MOV EDI,dword ptr [RAX + 0x38]
MOV RSI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RAX + 0x20]
AND RDX,0x1
XOR EAX,EAX
MOV ECX,0x10000
CMP RDX,0x0
CMOVNZ EAX,ECX
MOV EAX,EAX
MOV EDX,EAX
CALL 0x00128ce0
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JZ 0x0013434f
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
JMP 0x00134349
LAB_00134349:
JMP 0x0013434b
LAB_0013434b:
JMP 0x0013434d
LAB_0013434d:
JMP 0x0013435b
LAB_0013434f:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],0x0
LAB_0013435b:
JMP 0x0013435d
LAB_0013435d:
JMP 0x0013436b
LAB_0013435f:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],0x0
LAB_0013436b:
JMP 0x0013436d
LAB_0013436d:
JMP 0x0013436f
LAB_0013436f:
ADD RSP,0x30
POP RBP
RET
|
void reset_root_defaults(long *param_1,long param_2,long param_3)
{
int4 uVar1;
long lVar2;
long *plVar3;
long *local_38;
param_1[4] = param_2 - 0x28U & 0xfffffffffffffffe | param_1[4] & 1U;
if (param_3 == 0) {
param_1[2] = 0;
}
else {
lVar2 = param_3 + 0x18;
plVar3 = param_1;
if ((param_1[2] == 0) || (plVar3 = param_1, *(long *)(param_1[2] + 0x10) != lVar2)) {
while (local_38 = plVar3, *local_38 != 0) {
plVar3 = (long *)*local_38;
if (plVar3[2] == lVar2) {
param_1[2] = (long)plVar3;
return;
}
if (plVar3[1] + 0x18 == plVar3[2]) {
*local_38 = *plVar3;
my_free(plVar3);
plVar3 = local_38;
}
}
uVar1 = 0;
if ((param_1[4] & 1U) != 0) {
uVar1 = 0x10000;
}
plVar3 = (long *)my_malloc((int)param_1[7],lVar2,uVar1);
if (plVar3 == (long *)0x0) {
param_1[2] = 0;
}
else {
plVar3[2] = lVar2;
plVar3[1] = param_3;
*plVar3 = *local_38;
param_1[2] = (long)plVar3;
*local_38 = (long)plVar3;
}
}
}
return;
}
| |
55,085 | minja::Value::at(minja::Value const&) | monkey531[P]llama/common/minja.hpp | Value& at(const Value & index) {
if (!index.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
if (is_array()) return array_->at(index.get<int>());
if (is_object()) return object_->at(index.primitive_);
throw std::runtime_error("Value is not an array or object: " + dump());
} | O0 | cpp | minja::Value::at(minja::Value const&):
subq $0xd8, %rsp
movq %rdi, 0xc8(%rsp)
movq %rsi, 0xc0(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xc0(%rsp), %rdi
callq 0x1299a0
testb $0x1, %al
jne 0x133b7c
movb $0x1, 0x73(%rsp)
movl $0x10, %edi
callq 0x59660
movq 0x20(%rsp), %rsi
movq %rax, 0x18(%rsp)
leaq 0x80(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x1150b0
jmp 0x133ac8
leaq 0xdf556(%rip), %rsi # 0x213025
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq 0xf9bf0
jmp 0x133ae6
movq 0x18(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x594a0
jmp 0x133afa
movq 0x18(%rsp), %rdi
movb $0x0, 0x73(%rsp)
movq 0x1704a5(%rip), %rsi # 0x2a3fb0
movq 0x170466(%rip), %rdx # 0x2a3f78
callq 0x59ad0
jmp 0x133cea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0x133b64
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0x133b57
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x5a4d8
leaq 0x80(%rsp), %rdi
callq 0x5a4d8
testb $0x1, 0x73(%rsp)
jne 0x133b6d
jmp 0x133b77
movq 0x18(%rsp), %rdi
callq 0x59f20
jmp 0x133ce0
movq 0x20(%rsp), %rdi
callq 0x116bf0
testb $0x1, %al
jne 0x133b8c
jmp 0x133bc6
movq 0x20(%rsp), %rdi
addq $0x10, %rdi
callq 0x115f20
movq %rax, 0x10(%rsp)
movq 0xc0(%rsp), %rdi
callq 0x12e180
movq 0x10(%rsp), %rdi
movslq %eax, %rsi
callq 0x12df30
movq %rax, 0xd0(%rsp)
jmp 0x133cd0
movq 0x20(%rsp), %rdi
callq 0x1173e0
testb $0x1, %al
jne 0x133bd6
jmp 0x133c05
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x116000
movq %rax, %rdi
movq 0xc0(%rsp), %rsi
addq $0x40, %rsi
callq 0x137500
movq %rax, 0xd0(%rsp)
jmp 0x133cd0
movb $0x1, 0x2f(%rsp)
movl $0x10, %edi
callq 0x59660
movq 0x20(%rsp), %rsi
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x1150b0
jmp 0x133c31
leaq 0xdf539(%rip), %rsi # 0x213171
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0xf9bf0
jmp 0x133c49
movq 0x8(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x594a0
jmp 0x133c5a
movq 0x8(%rsp), %rdi
movb $0x0, 0x2f(%rsp)
movq 0x170345(%rip), %rsi # 0x2a3fb0
movq 0x170306(%rip), %rdx # 0x2a3f78
callq 0x59ad0
jmp 0x133cea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0x133cbb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0x133cb1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x5a4d8
leaq 0x30(%rsp), %rdi
callq 0x5a4d8
testb $0x1, 0x2f(%rsp)
jne 0x133cc4
jmp 0x133cce
movq 0x8(%rsp), %rdi
callq 0x59f20
jmp 0x133ce0
movq 0xd0(%rsp), %rax
addq $0xd8, %rsp
retq
movq 0x78(%rsp), %rdi
callq 0x59b90
nopw (%rax,%rax)
| _ZN5minja5Value2atERKS0_:
sub rsp, 0D8h
mov [rsp+0D8h+var_10], rdi
mov [rsp+0D8h+var_18], rsi
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_B8], rax
mov rdi, [rsp+0D8h+var_18]; this
call _ZNK5minja5Value11is_hashableEv; minja::Value::is_hashable(void)
test al, 1
jnz loc_133B7C
mov [rsp+0D8h+var_65], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rsi, [rsp+0D8h+var_B8]
mov [rsp+0D8h+var_C0], rax
lea rdi, [rsp+0D8h+var_58]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_133AC8:
lea rsi, aUnashableType; "Unashable type: "
lea rdi, [rsp+0D8h+var_38]
lea rdx, [rsp+0D8h+var_58]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_133AE6:
mov rdi, [rsp+0D8h+var_C0]
lea rsi, [rsp+0D8h+var_38]
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
jmp short $+2
loc_133AFA:
mov rdi, [rsp+0D8h+var_C0]; void *
mov [rsp+0D8h+var_65], 0
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp loc_133CEA
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
jmp short loc_133B64
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
jmp short loc_133B57
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
lea rdi, [rsp+arg_98]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_133B57:
lea rdi, [rsp+arg_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_133B64:
test [rsp+arg_6B], 1
jnz short loc_133B6D
jmp short loc_133B77
loc_133B6D:
mov rdi, [rsp+arg_10]; void *
call ___cxa_free_exception
loc_133B77:
jmp loc_133CE0
loc_133B7C:
mov rdi, [rsp+0D8h+var_B8]; this
call _ZNK5minja5Value8is_arrayEv; minja::Value::is_array(void)
test al, 1
jnz short loc_133B8C
jmp short loc_133BC6
loc_133B8C:
mov rdi, [rsp+0D8h+var_B8]
add rdi, 10h
call _ZNKSt19__shared_ptr_accessISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov [rsp+0D8h+var_C8], rax
mov rdi, [rsp+0D8h+var_18]
call _ZNK5minja5Value3getIiEET_v; minja::Value::get<int>(void)
mov rdi, [rsp+0D8h+var_C8]
movsxd rsi, eax
call _ZNSt6vectorIN5minja5ValueESaIS1_EE2atEm; std::vector<minja::Value>::at(ulong)
mov [rsp+0D8h+var_8], rax
jmp loc_133CD0
loc_133BC6:
mov rdi, [rsp+0D8h+var_B8]; this
call _ZNK5minja5Value9is_objectEv; minja::Value::is_object(void)
test al, 1
jnz short loc_133BD6
jmp short loc_133C05
loc_133BD6:
mov rdi, [rsp+0D8h+var_B8]
add rdi, 20h ; ' '
call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rdi, rax
mov rsi, [rsp+0D8h+var_18]
add rsi, 40h ; '@'
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atERSJ_; nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::at(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov [rsp+0D8h+var_8], rax
jmp loc_133CD0
loc_133C05:
mov [rsp+0D8h+var_A9], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rsi, [rsp+0D8h+var_B8]
mov [rsp+0D8h+var_D0], rax
lea rdi, [rsp+0D8h+var_A8]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_133C31:
lea rsi, aValueIsNotAnAr_0; "Value is not an array or object: "
lea rdi, [rsp+0D8h+var_88]
lea rdx, [rsp+0D8h+var_A8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_133C49:
mov rdi, [rsp+0D8h+var_D0]
lea rsi, [rsp+0D8h+var_88]
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
jmp short $+2
loc_133C5A:
mov rdi, [rsp+0D8h+var_D0]; void *
mov [rsp+0D8h+var_A9], 0
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp short loc_133CEA
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
jmp short loc_133CBB
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
jmp short loc_133CB1
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_133CB1:
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_133CBB:
test [rsp+arg_27], 1
jnz short loc_133CC4
jmp short loc_133CCE
loc_133CC4:
mov rdi, [rsp+arg_0]; void *
call ___cxa_free_exception
loc_133CCE:
jmp short loc_133CE0
loc_133CD0:
mov rax, [rsp+0D8h+var_8]
add rsp, 0D8h
retn
loc_133CE0:
mov rdi, [rsp+arg_70]
call __Unwind_Resume
loc_133CEA:
nop word ptr [rax+rax+00h]
| long long minja::Value::at(minja::Value *this, const minja::Value *a2)
{
int v2; // eax
long long v3; // rax
void *v5; // [rsp+8h] [rbp-D0h]
_QWORD *v6; // [rsp+10h] [rbp-C8h]
void *exception; // [rsp+18h] [rbp-C0h]
_BYTE v8[32]; // [rsp+30h] [rbp-A8h] BYREF
_BYTE v9[48]; // [rsp+50h] [rbp-88h] BYREF
_BYTE v10[32]; // [rsp+80h] [rbp-58h] BYREF
_BYTE v11[32]; // [rsp+A0h] [rbp-38h] BYREF
minja::Value *v12; // [rsp+C0h] [rbp-18h]
minja::Value *v13; // [rsp+C8h] [rbp-10h]
v13 = this;
v12 = a2;
if ( (minja::Value::is_hashable(a2) & 1) == 0 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v10, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v11, (long long)"Unashable type: ", (long long)v10);
std::runtime_error::runtime_error(exception, v11);
v9[35] = 0;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( minja::Value::is_array(this) )
{
v6 = (_QWORD *)std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)this + 16);
v2 = minja::Value::get<int>(v12);
return std::vector<minja::Value>::at(v6, v2);
}
else
{
if ( !minja::Value::is_object(this) )
{
v5 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v8, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v9, (long long)"Value is not an array or object: ", (long long)v8);
std::runtime_error::runtime_error(v5, v9);
__cxa_throw(
v5,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3 = std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)this + 32);
return nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::at(
v3,
(char *)v12 + 64);
}
}
| |||
55,086 | minja::Value::at(minja::Value const&) | monkey531[P]llama/common/minja.hpp | Value& at(const Value & index) {
if (!index.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
if (is_array()) return array_->at(index.get<int>());
if (is_object()) return object_->at(index.primitive_);
throw std::runtime_error("Value is not an array or object: " + dump());
} | O2 | cpp | minja::Value::at(minja::Value const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x63a0e
testb %al, %al
je 0x6dc0f
movq 0x10(%r14), %r15
testq %r15, %r15
je 0x6dbf0
movq %rbx, %rdi
callq 0x6bc18
movslq %eax, %rsi
movq %r15, %rdi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6bb1a
movq 0x20(%r14), %rdi
testq %rdi, %rdi
je 0x6dc6c
addq $0x40, %rbx
movq %rbx, %rsi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6ebbc
pushq $0x10
popq %rdi
callq 0x23450
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x63a1e
leaq 0x469fb(%rip), %rsi # 0xb462e
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x59106
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x23dd0
xorl %ebp, %ebp
movq 0x90395(%rip), %rsi # 0xfdff0
movq 0x902f6(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23ea0
jmp 0x6dcc7
pushq $0x10
popq %rdi
callq 0x23450
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x63a1e
leaq 0x46aea(%rip), %rsi # 0xb477a
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x59106
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x23dd0
xorl %ebp, %ebp
movq 0x90338(%rip), %rsi # 0xfdff0
movq 0x90299(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23ea0
jmp 0x6dccd
jmp 0x6dcdc
jmp 0x6dcf3
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x24158
jmp 0x6dce2
movq %rax, %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x24158
testb %bpl, %bpl
jne 0x6dcf6
jmp 0x6dcfe
movq %rax, %r14
movq %rbx, %rdi
callq 0x23670
movq %r14, %rdi
callq 0x23f20
| _ZN5minja5Value2atERKS0_:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov rbx, rsi
mov r14, rdi
mov rdi, rsi; this
call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void)
test al, al
jz short loc_6DC0F
mov r15, [r14+10h]
test r15, r15
jz short loc_6DBF0
mov rdi, rbx
call _ZNK5minja5Value3getIiEET_v; minja::Value::get<int>(void)
movsxd rsi, eax
mov rdi, r15
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
jmp _ZNSt6vectorIN5minja5ValueESaIS1_EE2atEm; std::vector<minja::Value>::at(ulong)
loc_6DBF0:
mov rdi, [r14+20h]
test rdi, rdi
jz short loc_6DC6C
add rbx, 40h ; '@'
mov rsi, rbx
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atERSJ_; nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::at(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
loc_6DC0F:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUnashableType; "Unashable type: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_6DCC7
loc_6DC6C:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aValueIsNotAnAr_0; "Value is not an array or object: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_6DCC7:
jmp short loc_6DCCD
jmp short loc_6DCDC
jmp short loc_6DCF3
loc_6DCCD:
mov r14, rax
lea rdi, [rsp+68h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6DCE2
loc_6DCDC:
mov r14, rax
mov bpl, 1
loc_6DCE2:
lea rdi, [rsp+68h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_6DCF6
jmp short loc_6DCFE
loc_6DCF3:
mov r14, rax
loc_6DCF6:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_6DCFE:
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::at(minja::Value *this, const minja::Value *a2)
{
_QWORD *v3; // r15
int v4; // eax
long long v6; // rdi
void *exception; // rbx
void *v8; // rbx
_BYTE v9[32]; // [rsp+8h] [rbp-60h] BYREF
_BYTE v10[64]; // [rsp+28h] [rbp-40h] BYREF
if ( !minja::Value::is_primitive(a2) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v9, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v10, (long long)"Unashable type: ", (long long)v9);
std::runtime_error::runtime_error(exception, v10);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3 = (_QWORD *)*((_QWORD *)this + 2);
if ( v3 )
{
v4 = minja::Value::get<int>(a2);
return std::vector<minja::Value>::at(v3, v4);
}
else
{
v6 = *((_QWORD *)this + 4);
if ( !v6 )
{
v8 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v9, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v10, (long long)"Value is not an array or object: ", (long long)v9);
std::runtime_error::runtime_error(v8, v10);
__cxa_throw(
v8,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::at(
v6,
(char *)a2 + 64);
}
}
| at:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV RBX,RSI
MOV R14,RDI
MOV RDI,RSI
CALL 0x00163a0e
TEST AL,AL
JZ 0x0016dc0f
MOV R15,qword ptr [R14 + 0x10]
TEST R15,R15
JZ 0x0016dbf0
MOV RDI,RBX
CALL 0x0016bc18
MOVSXD RSI,EAX
MOV RDI,R15
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0016bb1a
LAB_0016dbf0:
MOV RDI,qword ptr [R14 + 0x20]
TEST RDI,RDI
JZ 0x0016dc6c
ADD RBX,0x40
MOV RSI,RBX
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0016ebbc
LAB_0016dc0f:
PUSH 0x10
POP RDI
CALL 0x00123450
MOV RBX,RAX
LAB_0016dc1a:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00163a1e
LAB_0016dc2c:
LEA RSI,[0x1b462e]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x00159106
MOV BPL,0x1
LAB_0016dc45:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00123dd0
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123ea0
LAB_0016dc6c:
PUSH 0x10
POP RDI
CALL 0x00123450
MOV RBX,RAX
LAB_0016dc77:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00163a1e
LAB_0016dc89:
LEA RSI,[0x1b477a]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x00159106
MOV BPL,0x1
LAB_0016dca2:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00123dd0
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123ea0
|
/* minja::Value::at(minja::Value const&) */
void __thiscall minja::Value::at(Value *this,Value *param_1)
{
vector<minja::Value,std::allocator<minja::Value>> *this_00;
runtime_error *prVar1;
char cVar2;
int iVar3;
int1 local_60 [32];
string local_40 [32];
cVar2 = is_primitive(param_1);
if (cVar2 == '\0') {
prVar1 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016dc1a to 0016dc2b has its CatchHandler @ 0016dcf3 */
dump_abi_cxx11_((int)local_60,SUB81(this,0));
/* try { // try from 0016dc2c to 0016dc41 has its CatchHandler @ 0016dcdc */
std::operator+((char *)local_40,(string *)"Unashable type: ");
/* try { // try from 0016dc45 to 0016dc69 has its CatchHandler @ 0016dccd */
std::runtime_error::runtime_error(prVar1,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar1,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
this_00 = *(vector<minja::Value,std::allocator<minja::Value>> **)(this + 0x10);
if (this_00 != (vector<minja::Value,std::allocator<minja::Value>> *)0x0) {
iVar3 = get<int>(param_1);
std::vector<minja::Value,std::allocator<minja::Value>>::at(this_00,(long)iVar3);
return;
}
if (*(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
**)(this + 0x20) !=
(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
*)0x0) {
nlohmann::json_abi_v3_11_3::
ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
::at(*(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
**)(this + 0x20),param_1 + 0x40);
return;
}
prVar1 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016dc77 to 0016dc88 has its CatchHandler @ 0016dccb */
dump_abi_cxx11_((int)local_60,SUB81(this,0));
/* try { // try from 0016dc89 to 0016dc9e has its CatchHandler @ 0016dcc9 */
std::operator+((char *)local_40,(string *)"Value is not an array or object: ");
/* try { // try from 0016dca2 to 0016dcc6 has its CatchHandler @ 0016dcc7 */
std::runtime_error::runtime_error(prVar1,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar1,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
| |
55,087 | mysql_stmt_execute_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_stmt_execute_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_execute,
(parms->stmt),
parms->stmt->mysql,
int,
r_int)
} | O0 | c | mysql_stmt_execute_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x38(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x17a50
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| mysql_stmt_execute_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+38h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
call _mysql_stmt_execute@libmariadbclient_18
mov [rbp+var_14], eax
mov ecx, [rbp+var_14]
mov rax, [rbp+var_20]
mov [rax+8], ecx
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| _DWORD * mysql_stmt_execute_start_internal(long long *a1)
{
_DWORD *result; // rax
_DWORD *v2; // [rsp+0h] [rbp-20h]
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(*a1 + 56) + 1152LL) + 40LL);
v2[2] = mysql_stmt_execute_libmariadbclient_18(*a1);
result = v2;
*v2 = 0;
return result;
}
| mysql_stmt_execute_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x00117a50
MOV dword ptr [RBP + -0x14],EAX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_stmt_execute_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_execute(*param_1);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
55,088 | minja::ExpressionNode::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 {
if (!expr) throw std::runtime_error("ExpressionNode.expr is null");
auto result = expr->evaluate(context);
if (result.is_string()) {
out << result.get<std::string>();
} else if (result.is_boolean()) {
out << (result.get<bool>() ? "True" : "False");
} else if (!result.is_null()) {
out << result.dump();
}
} | O2 | cpp | minja::ExpressionNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const:
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rsi, %rbx
movq 0x20(%rdi), %rsi
testq %rsi, %rsi
je 0x91a9c
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x7ef0a
movzbl 0x40(%r14), %eax
cmpl $0x4, %eax
je 0x91a1b
cmpl $0x3, %eax
jne 0x91a43
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x7fdbc
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x26ab0
jmp 0x91a80
leaq 0x28(%rsp), %rdi
callq 0x7fd06
leaq 0x3f74c(%rip), %rcx # 0xd1178
leaq 0x3f74a(%rip), %rsi # 0xd117d
testb %al, %al
cmovneq %rcx, %rsi
movq %rbx, %rdi
callq 0x26c10
jmp 0x91a8a
testb %al, %al
jne 0x91a5f
cmpq $0x0, 0x48(%rsp)
jne 0x91a5f
cmpq $0x0, 0x38(%rsp)
jne 0x91a5f
cmpq $0x0, 0x58(%rsp)
je 0x91a8a
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
pushq $-0x1
popq %rdx
xorl %ecx, %ecx
callq 0x7f388
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x26ab0
leaq 0x8(%rsp), %rdi
callq 0x27998
leaq 0x28(%rsp), %rdi
callq 0x7f19a
addq $0x78, %rsp
popq %rbx
popq %r14
retq
pushq $0x10
popq %rdi
callq 0x265e0
movq %rax, %r14
leaq 0x406ac(%rip), %rsi # 0xd215a
movq %rax, %rdi
callq 0x26420
movq 0x8f533(%rip), %rsi # 0x120ff0
movq 0x8f494(%rip), %rdx # 0x120f58
movq %r14, %rdi
callq 0x275b0
jmp 0x91ad0
jmp 0x91aee
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x27998
jmp 0x91af1
jmp 0x91aee
movq %rax, %rbx
movq %r14, %rdi
callq 0x268f0
jmp 0x91afb
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x7f19a
movq %rbx, %rdi
callq 0x27660
nop
| _ZNK5minja14ExpressionNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE:
push r14
push rbx
sub rsp, 78h
mov rbx, rsi
mov rsi, [rdi+20h]
test rsi, rsi
jz loc_91A9C
lea r14, [rsp+88h+var_60]
mov rdi, r14
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
movzx eax, byte ptr [r14+40h]
cmp eax, 4
jz short loc_91A1B
cmp eax, 3
jnz short loc_91A43
lea rdi, [rsp+88h+var_80]
lea rsi, [rsp+88h+var_60]
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
lea rsi, [rsp+88h+var_80]
mov rdi, rbx
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
jmp short loc_91A80
loc_91A1B:
lea rdi, [rsp+88h+var_60]
call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void)
lea rcx, aTrue_0; "True"
lea rsi, aFalse; "False"
test al, al
cmovnz rsi, rcx
mov rdi, rbx
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short loc_91A8A
loc_91A43:
test al, al
jnz short loc_91A5F
cmp [rsp+88h+var_40], 0
jnz short loc_91A5F
cmp [rsp+88h+var_50], 0
jnz short loc_91A5F
cmp [rsp+88h+var_30], 0
jz short loc_91A8A
loc_91A5F:
lea rdi, [rsp+88h+var_80]
lea rsi, [rsp+88h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, [rsp+88h+var_80]
mov rdi, rbx
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
loc_91A80:
lea rdi, [rsp+88h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_91A8A:
lea rdi, [rsp+88h+var_60]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
add rsp, 78h
pop rbx
pop r14
retn
loc_91A9C:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpressionnode; "ExpressionNode.expr is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_91AD0
jmp short loc_91AEE
loc_91AD0:
mov rbx, rax
lea rdi, [rsp+88h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_91AF1
jmp short loc_91AEE
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_91AFB
loc_91AEE:
mov rbx, rax
loc_91AF1:
lea rdi, [rsp+88h+var_60]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_91AFB:
mov rdi, rbx
call __Unwind_Resume
| void minja::ExpressionNode::do_render(long long a1, long long a2)
{
void (***v3)(void); // rsi
const char *v4; // rsi
std::runtime_error *exception; // r14
_BYTE v6[32]; // [rsp+8h] [rbp-80h] BYREF
_BYTE v7[16]; // [rsp+28h] [rbp-60h] BYREF
long long v8; // [rsp+38h] [rbp-50h]
long long v9; // [rsp+48h] [rbp-40h]
long long v10; // [rsp+58h] [rbp-30h]
char v11; // [rsp+68h] [rbp-20h]
v3 = *(void (****)(void))(a1 + 32);
if ( !v3 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "ExpressionNode.expr is null");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Expression::evaluate((long long)v7, v3);
if ( v11 == 4 )
{
v4 = "False";
if ( (unsigned __int8)minja::Value::get<bool>((minja::Value *)v7) )
v4 = "True";
std::operator<<<std::char_traits<char>>(a2, v4);
}
else
{
if ( v11 == 3 )
{
minja::Value::get<std::string>((long long)v6, (minja::Value *)v7);
std::operator<<<char>(a2, v6);
LABEL_13:
std::string::~string(v6);
goto LABEL_14;
}
if ( v11 || v9 || v8 || v10 )
{
minja::Value::dump[abi:cxx11]((long long)v6, (long long)v7, 0xFFFFFFFF, 0);
std::operator<<<char>(a2, v6);
goto LABEL_13;
}
}
LABEL_14:
minja::Value::~Value((minja::Value *)v7);
}
| do_render:
PUSH R14
PUSH RBX
SUB RSP,0x78
MOV RBX,RSI
MOV RSI,qword ptr [RDI + 0x20]
TEST RSI,RSI
JZ 0x00191a9c
LEA R14,[RSP + 0x28]
MOV RDI,R14
CALL 0x0017ef0a
MOVZX EAX,byte ptr [R14 + 0x40]
CMP EAX,0x4
JZ 0x00191a1b
CMP EAX,0x3
JNZ 0x00191a43
LAB_001919fd:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x28]
CALL 0x0017fdbc
LAB_00191a0c:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00126ab0
JMP 0x00191a80
LAB_00191a1b:
LEA RDI,[RSP + 0x28]
CALL 0x0017fd06
LEA RCX,[0x1d1178]
LEA RSI,[0x1d117d]
TEST AL,AL
CMOVNZ RSI,RCX
MOV RDI,RBX
CALL 0x00126c10
JMP 0x00191a8a
LAB_00191a43:
TEST AL,AL
JNZ 0x00191a5f
CMP qword ptr [RSP + 0x48],0x0
JNZ 0x00191a5f
CMP qword ptr [RSP + 0x38],0x0
JNZ 0x00191a5f
CMP qword ptr [RSP + 0x58],0x0
JZ 0x00191a8a
LAB_00191a5f:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x28]
PUSH -0x1
POP RDX
XOR ECX,ECX
CALL 0x0017f388
LAB_00191a73:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00126ab0
LAB_00191a80:
LEA RDI,[RSP + 0x8]
CALL 0x00127998
LAB_00191a8a:
LEA RDI,[RSP + 0x28]
CALL 0x0017f19a
ADD RSP,0x78
POP RBX
POP R14
RET
LAB_00191a9c:
PUSH 0x10
POP RDI
CALL 0x001265e0
MOV R14,RAX
LAB_00191aa7:
LEA RSI,[0x1d215a]
MOV RDI,RAX
CALL 0x00126420
LAB_00191ab6:
MOV RSI,qword ptr [0x00220ff0]
MOV RDX,qword ptr [0x00220f58]
MOV RDI,R14
CALL 0x001275b0
|
/* minja::ExpressionNode::do_render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context>
const&) const */
void minja::ExpressionNode::do_render(ostringstream *param_1,shared_ptr *param_2)
{
bool bVar1;
runtime_error *this;
char *pcVar2;
string local_80 [32];
Expression local_60 [16];
long local_50;
long local_40;
long local_30;
char local_20;
if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00191aa7 to 00191ab5 has its CatchHandler @ 00191ae1 */
std::runtime_error::runtime_error(this,"ExpressionNode.expr is null");
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00220ff0,PTR__runtime_error_00220f58);
}
Expression::evaluate(local_60,*(shared_ptr **)(param_1 + 0x20));
if (local_20 == '\x04') {
/* try { // try from 00191a1b to 00191a40 has its CatchHandler @ 00191aee */
bVar1 = Value::get<bool>((Value *)local_60);
pcVar2 = "False";
if (bVar1) {
pcVar2 = "True";
}
std::operator<<((ostream *)param_2,pcVar2);
}
else {
if (local_20 == '\x03') {
/* try { // try from 001919fd to 00191a0b has its CatchHandler @ 00191adf */
Value::get<std::__cxx11::string>();
/* try { // try from 00191a0c to 00191a18 has its CatchHandler @ 00191ad0 */
std::operator<<((ostream *)param_2,local_80);
}
else {
if ((((local_20 == '\0') && (local_40 == 0)) && (local_50 == 0)) && (local_30 == 0))
goto LAB_00191a8a;
/* try { // try from 00191a5f to 00191a72 has its CatchHandler @ 00191ace */
Value::dump_abi_cxx11_((int)local_80,SUB81(local_60,0));
/* try { // try from 00191a73 to 00191a7f has its CatchHandler @ 00191acc */
std::operator<<((ostream *)param_2,local_80);
}
std::__cxx11::string::~string(local_80);
}
LAB_00191a8a:
Value::~Value((Value *)local_60);
return;
}
| |
55,089 | 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>>>>>::parse(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>&) | hkr04[P]cpp-mcp/common/json.hpp | void parse(const bool strict, BasicJsonType& result)
{
if (callback)
{
json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions);
sax_parse_internal(&sdp);
// in strict mode, input must be completely read
if (strict && (get_token() != token_type::end_of_input))
{
sdp.parse_error(m_lexer.get_position(),
m_lexer.get_token_string(),
parse_error::create(101, m_lexer.get_position(),
exception_message(token_type::end_of_input, "value"), nullptr));
}
// in case of an error, return discarded value
if (sdp.is_errored())
{
result = value_t::discarded;
return;
}
// set top-level value to null if it was discarded by the callback
// function
if (result.is_discarded())
{
result = nullptr;
}
}
else
{
json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions);
sax_parse_internal(&sdp);
// in strict mode, input must be completely read
if (strict && (get_token() != token_type::end_of_input))
{
sdp.parse_error(m_lexer.get_position(),
m_lexer.get_token_string(),
parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr));
}
// in case of an error, return discarded value
if (sdp.is_errored())
{
result = value_t::discarded;
return;
}
}
result.assert_invariant();
} | O2 | 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>>>>>::parse(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>&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1c0, %rsp # imm = 0x1C0
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r15
cmpq $0x0, 0x10(%rdi)
je 0x3bc38
leaq 0xd8(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x3ba7c
movzbl 0xc0(%r15), %ecx
leaq 0x108(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3ca86
leaq 0xd8(%rsp), %rdi
callq 0xf7f4
leaq 0x108(%rsp), %rsi
movq %r15, %rdi
callq 0x3cb4a
testb %bpl, %bpl
je 0x3bc00
movq %r15, %rdi
callq 0x3bf70
cmpl $0xf, %eax
je 0x3bc00
leaq 0x28(%r15), %rsi
movq 0x48(%r15), %r14
leaq 0x70(%rsp), %rdi
callq 0x3d5da
leaq 0x48(%r15), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x20(%rsp)
movups (%rax), %xmm0
movaps %xmm0, 0x10(%rsp)
leaq 0x12168(%rip), %rsi # 0x4dcdf
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xcab2
leaq 0x50(%rsp), %rdi
pushq $0xf
popq %rdx
leaq 0x30(%rsp), %rcx
movq %r15, %rsi
callq 0x3d7b8
leaq 0x90(%rsp), %rdi
pushq $0x65
popq %rsi
leaq 0x10(%rsp), %rdx
leaq 0x50(%rsp), %rcx
xorl %r8d, %r8d
callq 0x3d682
leaq 0x108(%rsp), %rdi
leaq 0x70(%rsp), %rdx
leaq 0x90(%rsp), %rcx
movq %r14, %rsi
callq 0x3d596
leaq 0x90(%rsp), %rdi
callq 0xef1a
leaq 0x50(%rsp), %rdi
callq 0xac20
leaq 0x30(%rsp), %rdi
callq 0xac20
leaq 0x70(%rsp), %rdi
callq 0xac20
cmpb $0x1, 0x180(%rsp)
jne 0x3bd8a
leaq 0xb8(%rsp), %r14
pushq $0x9
popq %rsi
movq %r14, %rdi
callq 0xf5ee
movb (%rbx), %al
movb 0xb8(%rsp), %cl
movb %cl, (%rbx)
movb %al, 0xb8(%rsp)
jmp 0x3bdab
movb 0xc0(%r15), %al
leaq 0x110(%rsp), %r14
movq %rbx, -0x8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movups %xmm0, 0x10(%r14)
movb $0x0, 0x20(%r14)
movb %al, 0x21(%r14)
leaq 0x108(%rsp), %rsi
movq %r15, %rdi
callq 0x3d990
testb %bpl, %bpl
je 0x3bd41
movq %r15, %rdi
callq 0x3bf70
cmpl $0xf, %eax
je 0x3bd41
leaq 0x28(%r15), %rsi
movq 0x48(%r15), %r12
leaq 0x70(%rsp), %rdi
callq 0x3d5da
leaq 0x48(%r15), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x20(%rsp)
movups (%rax), %xmm0
movaps %xmm0, 0x10(%rsp)
leaq 0x12027(%rip), %rsi # 0x4dcdf
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xcab2
leaq 0x50(%rsp), %rdi
pushq $0xf
popq %rdx
leaq 0x30(%rsp), %rcx
movq %r15, %rsi
callq 0x3d7b8
leaq 0x90(%rsp), %rdi
pushq $0x65
popq %rsi
leaq 0x10(%rsp), %rdx
leaq 0x50(%rsp), %rcx
xorl %r8d, %r8d
callq 0x3d682
leaq 0x108(%rsp), %rdi
leaq 0x70(%rsp), %rdx
leaq 0x90(%rsp), %rcx
movq %r12, %rsi
callq 0x3e3e6
leaq 0x90(%rsp), %rdi
callq 0xef1a
leaq 0x50(%rsp), %rdi
callq 0xac20
leaq 0x30(%rsp), %rdi
callq 0xac20
leaq 0x70(%rsp), %rdi
callq 0xac20
cmpb $0x1, 0x130(%rsp)
jne 0x3bd80
leaq 0xc8(%rsp), %rdi
pushq $0x9
popq %rsi
callq 0xf5ee
movb (%rbx), %al
leaq 0xc8(%rsp), %rdi
movb (%rdi), %cl
movb %cl, (%rbx)
movb %al, (%rdi)
movq 0x8(%rbx), %rax
movq 0x8(%rdi), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, 0x8(%rdi)
callq 0xdc84
movq %r14, %rdi
callq 0x3e962
jmp 0x3bdd0
cmpb $0x9, (%rbx)
jne 0x3bdc3
leaq 0xf8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0xf490
movb (%rbx), %al
movb (%r14), %cl
movb %cl, (%rbx)
movb %al, (%r14)
movq 0x8(%rbx), %rax
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, 0x8(%r14)
movq %r14, %rdi
callq 0xdc84
leaq 0x108(%rsp), %rdi
callq 0x3d954
addq $0x1c0, %rsp # imm = 0x1C0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xef1a
jmp 0x3bdf5
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xac20
jmp 0x3be04
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xac20
jmp 0x3be13
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xac20
jmp 0x3be77
jmp 0x3be74
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xef1a
jmp 0x3be36
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xac20
jmp 0x3be45
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xac20
jmp 0x3be54
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xac20
jmp 0x3be84
jmp 0x3be81
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0xf7f4
jmp 0x3be91
movq %rax, %rbx
movq %r14, %rdi
callq 0x3e962
jmp 0x3be91
movq %rax, %rbx
leaq 0x108(%rsp), %rdi
callq 0x3d954
movq %rbx, %rdi
callq 0xaac0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 1C0h
mov rbx, rdx
mov ebp, esi
mov r15, rdi
cmp qword ptr [rdi+10h], 0
jz loc_3BC38
lea r14, [rsp+1E8h+var_110]
mov rdi, r14
mov rsi, r15
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&)
movzx ecx, byte ptr [r15+0C0h]
lea rdi, [rsp+1E8h+var_E0]
mov rsi, rbx
mov rdx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&,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)
lea rdi, [rsp+1E8h+var_110]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
lea rsi, [rsp+1E8h+var_E0]
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_28json_sax_dom_callback_parserISF_EEEEbPT_; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *)
test bpl, bpl
jz loc_3BC00
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; 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>>>::get_token(void)
cmp eax, 0Fh
jz loc_3BC00
lea rsi, [r15+28h]
mov r14, [r15+48h]
lea rdi, [rsp+1E8h+var_178]
call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void)
lea rax, [r15+48h]
mov rcx, [rax+10h]
mov qword ptr [rsp+1E8h+var_1C8], rcx; int
movups xmm0, xmmword ptr [rax]
movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char
lea rsi, aCannotGetValue+0Bh; "value"
lea rdi, [rsp+1E8h+var_1B8]
lea rdx, [rsp+1E8h+var_1D9]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+1E8h+var_198]
push 0Fh
pop rdx
lea rcx, [rsp+1E8h+var_1B8]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; 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>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&)
lea rdi, [rsp+1E8h+var_158]; this
push 65h ; 'e'
pop rsi; int
lea rdx, [rsp+1E8h+var_1D8]
lea rcx, [rsp+1E8h+var_198]
xor r8d, r8d
call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
lea rdi, [rsp+1E8h+var_E0]
lea rdx, [rsp+1E8h+var_178]
lea rcx, [rsp+1E8h+var_158]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&)
lea rdi, [rsp+1E8h+var_158]; void *
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception()
lea rdi, [rsp+1E8h+var_198]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1E8h+var_1B8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1E8h+var_178]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_3BC00:
cmp [rsp+1E8h+var_68], 1
jnz loc_3BD8A
lea r14, [rsp+1E8h+var_130]
push 9
pop rsi
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataC2ENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::data(nlohmann::json_abi_v3_11_3::detail::value_t)
mov al, [rbx]
mov cl, [rsp+1E8h+var_130]
mov [rbx], cl
mov [rsp+1E8h+var_130], al
jmp loc_3BDAB
loc_3BC38:
mov al, [r15+0C0h]
lea r14, [rsp+1E8h+var_D8]
mov [r14-8], rbx
xorps xmm0, xmm0
movups xmmword ptr [r14], xmm0
movups xmmword ptr [r14+10h], xmm0
mov byte ptr [r14+20h], 0
mov [r14+21h], al
lea rsi, [rsp+1E8h+var_E0]
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_19json_sax_dom_parserISF_EEEEbPT_; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *)
test bpl, bpl
jz loc_3BD41
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; 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>>>::get_token(void)
cmp eax, 0Fh
jz loc_3BD41
lea rsi, [r15+28h]
mov r12, [r15+48h]
lea rdi, [rsp+1E8h+var_178]
call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void)
lea rax, [r15+48h]
mov rcx, [rax+10h]
mov qword ptr [rsp+1E8h+var_1C8], rcx; int
movups xmm0, xmmword ptr [rax]
movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char
lea rsi, aCannotGetValue+0Bh; "value"
lea rdi, [rsp+1E8h+var_1B8]
lea rdx, [rsp+1E8h+var_1D9]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+1E8h+var_198]
push 0Fh
pop rdx
lea rcx, [rsp+1E8h+var_1B8]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; 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>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&)
lea rdi, [rsp+1E8h+var_158]; this
push 65h ; 'e'
pop rsi; int
lea rdx, [rsp+1E8h+var_1D8]
lea rcx, [rsp+1E8h+var_198]
xor r8d, r8d
call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
lea rdi, [rsp+1E8h+var_E0]
lea rdx, [rsp+1E8h+var_178]
lea rcx, [rsp+1E8h+var_158]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&)
lea rdi, [rsp+1E8h+var_158]; void *
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception()
lea rdi, [rsp+1E8h+var_198]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1E8h+var_1B8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1E8h+var_178]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_3BD41:
cmp [rsp+1E8h+var_B8], 1
jnz short loc_3BD80
lea rdi, [rsp+1E8h+var_120]
push 9
pop rsi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataC2ENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::data(nlohmann::json_abi_v3_11_3::detail::value_t)
mov al, [rbx]
lea rdi, [rsp+1E8h+var_120]
mov cl, [rdi]
mov [rbx], cl
mov [rdi], al
mov rax, [rbx+8]
mov rcx, [rdi+8]
mov [rbx+8], rcx
mov [rdi+8], rax
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_3BD80:
mov rdi, r14
call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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> *>>::~_Vector_base()
jmp short loc_3BDD0
loc_3BD8A:
cmp byte ptr [rbx], 9
jnz short loc_3BDC3
lea r14, [rsp+1E8h+var_F0]
mov rdi, r14
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 al, [rbx]
mov cl, [r14]
mov [rbx], cl
mov [r14], al
loc_3BDAB:
mov rax, [rbx+8]
mov rcx, [r14+8]
mov [rbx+8], rcx
mov [r14+8], rax
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_3BDC3:
lea rdi, [rsp+1E8h+var_E0]
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser()
loc_3BDD0:
add rsp, 1C0h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_88]; void *
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception()
jmp short loc_3BDF5
mov rbx, rax
loc_3BDF5:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3BE04
mov rbx, rax
loc_3BE04:
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3BE13
mov rbx, rax
loc_3BE13:
lea rdi, [rsp+arg_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3BE77
jmp short loc_3BE74
mov rbx, rax
lea rdi, [rsp+arg_88]; void *
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception()
jmp short loc_3BE36
mov rbx, rax
loc_3BE36:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3BE45
mov rbx, rax
loc_3BE45:
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3BE54
mov rbx, rax
loc_3BE54:
lea rdi, [rsp+arg_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3BE84
jmp short loc_3BE81
mov rbx, rax
lea rdi, [rsp+arg_D0]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
jmp short loc_3BE91
loc_3BE74:
mov rbx, rax
loc_3BE77:
mov rdi, r14
call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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> *>>::~_Vector_base()
jmp short loc_3BE91
loc_3BE81:
mov rbx, rax
loc_3BE84:
lea rdi, [rsp+arg_100]
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser()
loc_3BE91:
mov rdi, rbx
call __Unwind_Resume
| long long 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 a1,
char a2,
char *a3)
{
int v4; // edx
int v5; // ecx
int v6; // r8d
int v7; // r9d
long long v8; // r14
int v9; // r8d
int v10; // r9d
_BYTE *v11; // r14
char v12; // al
char v13; // al
long long v14; // r12
int v15; // r8d
int v16; // r9d
char v17; // al
long long v18; // rax
char v20; // al
long long v21; // rax
int v22; // [rsp+0h] [rbp-1E8h]
int v23; // [rsp+8h] [rbp-1E0h]
char v24[16]; // [rsp+10h] [rbp-1D8h]
char v25[16]; // [rsp+10h] [rbp-1D8h]
int v26[2]; // [rsp+20h] [rbp-1C8h]
int v27[2]; // [rsp+20h] [rbp-1C8h]
int v28; // [rsp+28h] [rbp-1C0h]
long long v29; // [rsp+30h] [rbp-1B8h] BYREF
int v30; // [rsp+38h] [rbp-1B0h]
int v31; // [rsp+40h] [rbp-1A8h]
int v32; // [rsp+48h] [rbp-1A0h]
char v33[8]; // [rsp+50h] [rbp-198h] BYREF
int v34; // [rsp+58h] [rbp-190h]
int v35; // [rsp+60h] [rbp-188h]
int v36; // [rsp+68h] [rbp-180h]
char v37[8]; // [rsp+70h] [rbp-178h] BYREF
int v38; // [rsp+78h] [rbp-170h]
int v39; // [rsp+80h] [rbp-168h]
int v40; // [rsp+88h] [rbp-160h]
char v41[40]; // [rsp+90h] [rbp-158h] BYREF
_BYTE v42[16]; // [rsp+B8h] [rbp-130h] BYREF
_BYTE v43[8]; // [rsp+C8h] [rbp-120h] BYREF
long long v44; // [rsp+D0h] [rbp-118h]
_OWORD v45[2]; // [rsp+D8h] [rbp-110h] BYREF
_BYTE v46[16]; // [rsp+F8h] [rbp-F0h] BYREF
char *v47; // [rsp+108h] [rbp-E0h] BYREF
_BYTE v48[32]; // [rsp+110h] [rbp-D8h] BYREF
char v49; // [rsp+130h] [rbp-B8h]
char v50; // [rsp+131h] [rbp-B7h]
char v51; // [rsp+180h] [rbp-68h]
if ( *(_QWORD *)(a1 + 16) )
{
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(
v45,
a1);
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>>::json_sax_dom_callback_parser(
&v47,
a3,
v45,
*(unsigned __int8 *)(a1 + 192));
std::_Function_base::~_Function_base((std::_Function_base *)v45);
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>>>::sax_parse_internal<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>>>(
a1,
(unsigned int)&v47,
v4,
v5,
v6,
v7);
if ( a2 )
{
if ( (unsigned int)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>>>::get_token(a1) != 15 )
{
v8 = *(_QWORD *)(a1 + 72);
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(
v37,
a1 + 40);
*(_QWORD *)v26 = *(_QWORD *)(a1 + 88);
*(_OWORD *)v24 = *(_OWORD *)(a1 + 72);
std::string::basic_string<std::allocator<char>>(&v29, (long long)"value");
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>>>::exception_message(
(unsigned int)v33,
a1,
15,
(unsigned int)&v29,
v9,
v10);
ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
(nlohmann::json_abi_v3_11_3::detail::parse_error *)v41,
101,
v22,
v23,
v24[0],
*(int *)&v24[8],
v26[0],
v28,
v29,
v30,
v31,
v32,
v33[0],
v34,
v35,
v36,
v37[0],
v38,
v39,
v40,
v41[0]);
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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(
&v47,
v8,
v37,
v41);
nlohmann::json_abi_v3_11_3::detail::exception::~exception(v41);
std::string::~string(v33);
std::string::~string(&v29);
std::string::~string(v37);
}
}
if ( v51 == 1 )
{
v11 = v42;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(
v42,
9);
v12 = *a3;
*a3 = v42[0];
v42[0] = v12;
}
else
{
if ( *a3 != 9 )
return 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>>::~json_sax_dom_callback_parser(&v47);
v11 = v46;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v46);
v20 = *a3;
*a3 = v46[0];
v46[0] = v20;
}
v21 = *((_QWORD *)a3 + 1);
*((_QWORD *)a3 + 1) = *((_QWORD *)v11 + 1);
*((_QWORD *)v11 + 1) = v21;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v11);
return 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>>::~json_sax_dom_callback_parser(&v47);
}
v13 = *(_BYTE *)(a1 + 192);
v47 = a3;
memset(v48, 0, sizeof(v48));
v49 = 0;
v50 = v13;
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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(
a1,
&v47);
if ( a2
&& (unsigned int)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>>>::get_token(a1) != 15 )
{
v14 = *(_QWORD *)(a1 + 72);
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(
v37,
a1 + 40);
*(_QWORD *)v27 = *(_QWORD *)(a1 + 88);
*(_OWORD *)v25 = *(_OWORD *)(a1 + 72);
std::string::basic_string<std::allocator<char>>(&v29, (long long)"value");
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>>>::exception_message(
(unsigned int)v33,
a1,
15,
(unsigned int)&v29,
v15,
v16);
ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
(nlohmann::json_abi_v3_11_3::detail::parse_error *)v41,
101,
v22,
v23,
v25[0],
*(int *)&v25[8],
v27[0],
v28,
v29,
v30,
v31,
v32,
v33[0],
v34,
v35,
v36,
v37[0],
v38,
v39,
v40,
v41[0]);
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(
&v47,
v14,
v37,
v41);
nlohmann::json_abi_v3_11_3::detail::exception::~exception(v41);
std::string::~string(v33);
std::string::~string(&v29);
std::string::~string(v37);
}
if ( v49 == 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>::data::data(
v43,
9);
v17 = *a3;
*a3 = v43[0];
v43[0] = v17;
v18 = *((_QWORD *)a3 + 1);
*((_QWORD *)a3 + 1) = v44;
v44 = v18;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v43);
}
return std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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> *>>::~_Vector_base(v48);
}
| parse:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x1c0
MOV RBX,RDX
MOV EBP,ESI
MOV R15,RDI
CMP qword ptr [RDI + 0x10],0x0
JZ 0x0013bc38
LEA R14,[RSP + 0xd8]
MOV RDI,R14
MOV RSI,R15
CALL 0x0013ba7c
MOVZX ECX,byte ptr [R15 + 0xc0]
LAB_0013baff:
LEA RDI,[RSP + 0x108]
MOV RSI,RBX
MOV RDX,R14
CALL 0x0013ca86
LEA RDI,[RSP + 0xd8]
CALL 0x0010f7f4
LAB_0013bb1f:
LEA RSI,[RSP + 0x108]
MOV RDI,R15
CALL 0x0013cb4a
TEST BPL,BPL
JZ 0x0013bc00
MOV RDI,R15
CALL 0x0013bf70
CMP EAX,0xf
JZ 0x0013bc00
LEA RSI,[R15 + 0x28]
MOV R14,qword ptr [R15 + 0x48]
LAB_0013bb51:
LEA RDI,[RSP + 0x70]
CALL 0x0013d5da
LEA RAX,[R15 + 0x48]
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x20],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RSP + 0x10],XMM0
LAB_0013bb70:
LEA RSI,[0x14dcdf]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0xf]
CALL 0x0010cab2
LAB_0013bb86:
LEA RDI,[RSP + 0x50]
PUSH 0xf
POP RDX
LEA RCX,[RSP + 0x30]
MOV RSI,R15
CALL 0x0013d7b8
LAB_0013bb9b:
LEA RDI,[RSP + 0x90]
PUSH 0x65
POP RSI
LEA RDX,[RSP + 0x10]
LEA RCX,[RSP + 0x50]
XOR R8D,R8D
CALL 0x0013d682
LAB_0013bbb8:
LEA RDI,[RSP + 0x108]
LEA RDX,[RSP + 0x70]
LEA RCX,[RSP + 0x90]
MOV RSI,R14
CALL 0x0013d596
LEA RDI,[RSP + 0x90]
CALL 0x0010ef1a
LEA RDI,[RSP + 0x50]
CALL 0x0010ac20
LEA RDI,[RSP + 0x30]
CALL 0x0010ac20
LEA RDI,[RSP + 0x70]
CALL 0x0010ac20
LAB_0013bc00:
CMP byte ptr [RSP + 0x180],0x1
JNZ 0x0013bd8a
LAB_0013bc0e:
LEA R14,[RSP + 0xb8]
PUSH 0x9
POP RSI
MOV RDI,R14
CALL 0x0010f5ee
MOV AL,byte ptr [RBX]
MOV CL,byte ptr [RSP + 0xb8]
MOV byte ptr [RBX],CL
MOV byte ptr [RSP + 0xb8],AL
JMP 0x0013bdab
LAB_0013bc38:
MOV AL,byte ptr [R15 + 0xc0]
LEA R14,[RSP + 0x110]
MOV qword ptr [R14 + -0x8],RBX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14],XMM0
MOVUPS xmmword ptr [R14 + 0x10],XMM0
MOV byte ptr [R14 + 0x20],0x0
MOV byte ptr [R14 + 0x21],AL
LAB_0013bc60:
LEA RSI,[RSP + 0x108]
MOV RDI,R15
CALL 0x0013d990
TEST BPL,BPL
JZ 0x0013bd41
MOV RDI,R15
CALL 0x0013bf70
CMP EAX,0xf
JZ 0x0013bd41
LEA RSI,[R15 + 0x28]
MOV R12,qword ptr [R15 + 0x48]
LAB_0013bc92:
LEA RDI,[RSP + 0x70]
CALL 0x0013d5da
LEA RAX,[R15 + 0x48]
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x20],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RSP + 0x10],XMM0
LAB_0013bcb1:
LEA RSI,[0x14dcdf]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0xf]
CALL 0x0010cab2
LAB_0013bcc7:
LEA RDI,[RSP + 0x50]
PUSH 0xf
POP RDX
LEA RCX,[RSP + 0x30]
MOV RSI,R15
CALL 0x0013d7b8
LAB_0013bcdc:
LEA RDI,[RSP + 0x90]
PUSH 0x65
POP RSI
LEA RDX,[RSP + 0x10]
LEA RCX,[RSP + 0x50]
XOR R8D,R8D
CALL 0x0013d682
LAB_0013bcf9:
LEA RDI,[RSP + 0x108]
LEA RDX,[RSP + 0x70]
LEA RCX,[RSP + 0x90]
MOV RSI,R12
CALL 0x0013e3e6
LEA RDI,[RSP + 0x90]
CALL 0x0010ef1a
LEA RDI,[RSP + 0x50]
CALL 0x0010ac20
LEA RDI,[RSP + 0x30]
CALL 0x0010ac20
LEA RDI,[RSP + 0x70]
CALL 0x0010ac20
LAB_0013bd41:
CMP byte ptr [RSP + 0x130],0x1
JNZ 0x0013bd80
LAB_0013bd4b:
LEA RDI,[RSP + 0xc8]
PUSH 0x9
POP RSI
CALL 0x0010f5ee
LAB_0013bd5b:
MOV AL,byte ptr [RBX]
LEA RDI,[RSP + 0xc8]
MOV CL,byte ptr [RDI]
MOV byte ptr [RBX],CL
MOV byte ptr [RDI],AL
MOV RAX,qword ptr [RBX + 0x8]
MOV RCX,qword ptr [RDI + 0x8]
MOV qword ptr [RBX + 0x8],RCX
MOV qword ptr [RDI + 0x8],RAX
CALL 0x0010dc84
LAB_0013bd80:
MOV RDI,R14
CALL 0x0013e962
JMP 0x0013bdd0
LAB_0013bd8a:
CMP byte ptr [RBX],0x9
JNZ 0x0013bdc3
LEA R14,[RSP + 0xf8]
MOV RDI,R14
XOR ESI,ESI
CALL 0x0010f490
MOV AL,byte ptr [RBX]
MOV CL,byte ptr [R14]
MOV byte ptr [RBX],CL
MOV byte ptr [R14],AL
LAB_0013bdab:
MOV RAX,qword ptr [RBX + 0x8]
MOV RCX,qword ptr [R14 + 0x8]
MOV qword ptr [RBX + 0x8],RCX
MOV qword ptr [R14 + 0x8],RAX
MOV RDI,R14
CALL 0x0010dc84
LAB_0013bdc3:
LEA RDI,[RSP + 0x108]
CALL 0x0013d954
LAB_0013bdd0:
ADD RSP,0x1c0
POP RBX
POP R12
POP R14
POP R15
POP RBP
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 > > >::parse(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>&) */
void __thiscall
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>>>
::parse(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>>>
*this,bool param_1,basic_json *param_2)
{
basic_json bVar1;
ulong uVar2;
int8 uVar3;
int iVar4;
data *this_00;
allocator local_1d9;
int8 local_1d8;
int8 uStack_1d0;
int8 local_1c8;
string local_1b8 [32];
string local_198 [32];
string local_178 [32];
parse_error local_158 [40];
basic_json local_130 [16];
basic_json local_120 [8];
int8 local_118;
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>&)>
local_110 [32];
basic_json local_f0 [16];
basic_json *local_e0;
int8 local_d8;
int8 uStack_d0;
int8 local_c8;
int8 uStack_c0;
char local_b8;
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_b7;
char local_68;
if (*(long *)(this + 0x10) == 0) {
local_b7 = this[0xc0];
local_d8 = 0;
uStack_d0 = 0;
local_c8 = 0;
uStack_c0 = 0;
local_b8 = '\0';
/* try { // try from 0013bc60 to 0013bc80 has its CatchHandler @ 0013be74 */
local_e0 = param_2;
sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
(this,(json_sax_dom_parser *)&local_e0);
if ((param_1) && (iVar4 = get_token(this), iVar4 != 0xf)) {
uVar2 = *(ulong *)(this + 0x48);
/* try { // try from 0013bc92 to 0013bc9b has its CatchHandler @ 0013be1f */
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::get_token_string();
local_1c8 = *(int8 *)(this + 0x58);
local_1d8 = *(int8 *)(this + 0x48);
uStack_1d0 = *(int8 *)(this + 0x50);
/* try { // try from 0013bcb1 to 0013bcc6 has its CatchHandler @ 0013be10 */
std::__cxx11::string::string<std::allocator<char>>(local_1b8,"value",&local_1d9);
/* try { // try from 0013bcc7 to 0013bcdb has its CatchHandler @ 0013be01 */
exception_message(local_198,this,0xf,local_1b8);
/* try { // try from 0013bcdc to 0013bcf8 has its CatchHandler @ 0013bdf2 */
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(local_158,0x65,&local_1d8,local_198,0);
/* try { // try from 0013bcf9 to 0013bd15 has its CatchHandler @ 0013bde0 */
json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>
((json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_e0,uVar2,local_178,local_158);
exception::~exception((exception *)local_158);
std::__cxx11::string::~string(local_198);
std::__cxx11::string::~string(local_1b8);
std::__cxx11::string::~string(local_178);
}
if (local_b8 == '\x01') {
/* try { // try from 0013bd4b to 0013bd5a has its CatchHandler @ 0013be74 */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_120,9);
bVar1 = *param_2;
*param_2 = local_120[0];
uVar3 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = local_118;
local_120[0] = bVar1;
local_118 = 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>
::data::~data((data *)local_120);
}
std::
_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_base((_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_d8);
return;
}
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(local_110,this);
/* try { // try from 0013baff to 0013bb11 has its CatchHandler @ 0013be62 */
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>>
::json_sax_dom_callback_parser
((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_e0,param_2,local_110,this[0xc0]);
std::_Function_base::~_Function_base((_Function_base *)local_110);
/* try { // try from 0013bb1f to 0013bb3f has its CatchHandler @ 0013be81 */
sax_parse_internal<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>>>
(this,(json_sax_dom_callback_parser *)&local_e0);
if ((param_1) && (iVar4 = get_token(this), iVar4 != 0xf)) {
uVar2 = *(ulong *)(this + 0x48);
/* try { // try from 0013bb51 to 0013bb5a has its CatchHandler @ 0013be60 */
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::get_token_string();
local_1c8 = *(int8 *)(this + 0x58);
local_1d8 = *(int8 *)(this + 0x48);
uStack_1d0 = *(int8 *)(this + 0x50);
/* try { // try from 0013bb70 to 0013bb85 has its CatchHandler @ 0013be51 */
std::__cxx11::string::string<std::allocator<char>>(local_1b8,"value",&local_1d9);
/* try { // try from 0013bb86 to 0013bb9a has its CatchHandler @ 0013be42 */
exception_message(local_198,this,0xf,local_1b8);
/* try { // try from 0013bb9b to 0013bbb7 has its CatchHandler @ 0013be33 */
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(local_158,0x65,&local_1d8,local_198,0);
/* try { // try from 0013bbb8 to 0013bbd4 has its CatchHandler @ 0013be21 */
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>>
::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>
((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_e0,uVar2,local_178,local_158);
exception::~exception((exception *)local_158);
std::__cxx11::string::~string(local_198);
std::__cxx11::string::~string(local_1b8);
std::__cxx11::string::~string(local_178);
}
if (local_68 == '\x01') {
/* try { // try from 0013bc0e to 0013bc20 has its CatchHandler @ 0013be81 */
this_00 = (data *)local_130;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_00,9);
bVar1 = *param_2;
*param_2 = local_130[0];
local_130[0] = bVar1;
}
else {
if (*param_2 != (basic_json)0x9) goto LAB_0013bdc3;
this_00 = (data *)local_f0;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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((_func_decltype_nullptr *)this_00);
bVar1 = *param_2;
*param_2 = local_f0[0];
local_f0[0] = bVar1;
}
uVar3 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = *(int8 *)(this_00 + 8);
*(int8 *)(this_00 + 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>
::data::~data(this_00);
LAB_0013bdc3:
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>>
::~json_sax_dom_callback_parser
((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_e0);
return;
}
| |
55,090 | minja::Value::to_int() const | monkey531[P]llama/common/minja.hpp | int64_t to_int() const {
if (is_null()) return 0;
if (is_boolean()) return get<bool>() ? 1 : 0;
if (is_number()) return static_cast<int64_t>(get<double>());
if (is_string()) {
try {
return std::stol(get<std::string>());
} catch (const std::exception &) {
return 0;
}
}
return 0;
} | O2 | cpp | minja::Value::to_int() const:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
callq 0x60344
testb %al, %al
je 0x7cc8b
xorl %ebx, %ebx
jmp 0x7cce3
movb 0x40(%rbx), %al
cmpb $0x4, %al
jne 0x7cc9f
movq %rbx, %rdi
callq 0x606d8
movzbl %al, %ebx
jmp 0x7cce3
leal -0x5(%rax), %ecx
cmpb $0x2, %cl
ja 0x7ccb6
movq %rbx, %rdi
callq 0x5fde2
cvttsd2si %xmm0, %rbx
jmp 0x7cce3
cmpb $0x3, %al
jne 0x7cc87
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x6078e
leaq 0x8(%rsp), %rdi
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x7cd23
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x21dc8
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rdx, %r14
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x21dc8
jmp 0x7cd06
movq %rdx, %r14
movq %rax, %rbx
movq %rbx, %rdi
cmpl $0x1, %r14d
jne 0x7cd1e
callq 0x212c0
callq 0x21b00
jmp 0x7cc87
callq 0x21be0
| _ZNK5minja5Value6to_intEv:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void)
test al, al
jz short loc_7CC8B
loc_7CC87:
xor ebx, ebx
jmp short loc_7CCE3
loc_7CC8B:
mov al, [rbx+40h]
cmp al, 4
jnz short loc_7CC9F
mov rdi, rbx
call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void)
movzx ebx, al
jmp short loc_7CCE3
loc_7CC9F:
lea ecx, [rax-5]
cmp cl, 2
ja short loc_7CCB6
mov rdi, rbx
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
cvttsd2si rbx, xmm0
jmp short loc_7CCE3
loc_7CCB6:
cmp al, 3
jnz short loc_7CC87
lea rdi, [rsp+38h+var_30]
mov rsi, rbx
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
lea rdi, [rsp+38h+var_30]
push 0Ah
pop rdx
xor esi, esi
call _ZNSt7__cxx114stolERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi; std::stol(std::string const&,ulong *,int)
mov rbx, rax
lea rdi, [rsp+38h+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_7CCE3:
mov rax, rbx
add rsp, 28h
pop rbx
pop r14
retn
mov r14, rdx
mov rbx, rax
lea rdi, [rsp+38h+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_7CD06
mov r14, rdx
mov rbx, rax
loc_7CD06:
mov rdi, rbx; void *
cmp r14d, 1
jnz short loc_7CD1E
call ___cxa_begin_catch
call ___cxa_end_catch
jmp loc_7CC87
loc_7CD1E:
call __Unwind_Resume
| long long minja::Value::to_int(minja::Value *this, double a2)
{
long long v2; // rbx
char v3; // al
_BYTE v5[48]; // [rsp+8h] [rbp-30h] BYREF
if ( !minja::Value::is_null(this) )
{
v3 = *((_BYTE *)this + 64);
if ( v3 == 4 )
return (unsigned __int8)minja::Value::get<bool>(this);
if ( (unsigned __int8)(v3 - 5) <= 2u )
{
minja::Value::get<double>(this);
return (unsigned int)(int)a2;
}
if ( v3 == 3 )
{
minja::Value::get<std::string>((long long)v5, this);
v2 = std::stol(v5, 0LL, 10LL);
std::string::~string(v5);
return v2;
}
}
return 0LL;
}
| to_int:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
CALL 0x00160344
TEST AL,AL
JZ 0x0017cc8b
LAB_0017cc87:
XOR EBX,EBX
JMP 0x0017cce3
LAB_0017cc8b:
MOV AL,byte ptr [RBX + 0x40]
CMP AL,0x4
JNZ 0x0017cc9f
MOV RDI,RBX
CALL 0x001606d8
MOVZX EBX,AL
JMP 0x0017cce3
LAB_0017cc9f:
LEA ECX,[RAX + -0x5]
CMP CL,0x2
JA 0x0017ccb6
MOV RDI,RBX
CALL 0x0015fde2
CVTTSD2SI RBX,XMM0
JMP 0x0017cce3
LAB_0017ccb6:
CMP AL,0x3
JNZ 0x0017cc87
LAB_0017ccba:
LEA RDI,[RSP + 0x8]
MOV RSI,RBX
CALL 0x0016078e
LAB_0017ccc7:
LEA RDI,[RSP + 0x8]
PUSH 0xa
POP RDX
XOR ESI,ESI
CALL 0x0017cd23
LAB_0017ccd6:
MOV RBX,RAX
LEA RDI,[RSP + 0x8]
CALL 0x00121dc8
LAB_0017cce3:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* minja::Value::to_int() const */
ulong __thiscall minja::Value::to_int(Value *this)
{
Value VVar1;
char cVar2;
bool bVar3;
ulong uVar4;
double dVar5;
string local_30 [32];
cVar2 = is_null(this);
if (cVar2 == '\0') {
VVar1 = this[0x40];
if (VVar1 == (Value)0x4) {
bVar3 = get<bool>(this);
return (ulong)bVar3;
}
if ((byte)((char)VVar1 - 5U) < 3) {
dVar5 = get<double>(this);
return (long)dVar5;
}
if (VVar1 == (Value)0x3) {
/* try { // try from 0017ccba to 0017ccc6 has its CatchHandler @ 0017cd00 */
get<std::__cxx11::string>();
/* try { // try from 0017ccc7 to 0017ccd5 has its CatchHandler @ 0017ccee */
uVar4 = std::__cxx11::stol(local_30,(ulong *)0x0,10);
std::__cxx11::string::~string(local_30);
return uVar4;
}
}
return 0;
}
| |
55,091 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::basic_json<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) | monkey531[P]llama/common/json.hpp | basic_json(const JsonRef& ref) : basic_json(ref.moved_or_copied()) {} | O1 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::basic_json<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa30a4
movups (%r14), %xmm0
movups %xmm0, (%rbx)
movq %r14, %rdi
xorl %esi, %esi
callq 0x59472
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x59472
movq %r14, %rdi
xorl %esi, %esi
callq 0x59472
movq %r14, %rdi
callq 0x5ec5e
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
lea r14, [rsp+28h+var_20]
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [rbx], xmm0
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
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()
add rsp, 18h
pop rbx
pop r14
retn
| long long ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_(
char *a1,
long long a2)
{
_OWORD v3[2]; // [rsp+8h] [rbp-20h] BYREF
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied(
(unsigned __int8 *)v3,
a2);
*(_OWORD *)a1 = v3[0];
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v3);
LOBYTE(v3[0]) = 0;
*((_QWORD *)&v3[0] + 1) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(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 *)v3);
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v3);
}
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001a30a4
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [RBX],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x00159472
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00159472
MOV RDI,R14
XOR ESI,ESI
CALL 0x00159472
MOV RDI,R14
CALL 0x0015ec5e
ADD RSP,0x18
POP RBX
POP R14
RET
|
void _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_
(int8 *param_1)
{
bool bVar1;
data local_20;
int7 uStack_1f;
int8 uStack_18;
nlohmann::json_abi_v3_11_3::detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::moved_or_copied();
*param_1 = CONCAT71(uStack_1f,local_20);
param_1[1] = uStack_18;
bVar1 = SUB81(&local_20,0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar1);
local_20 = (data)0x0;
uStack_18 = 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(param_1,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(bVar1);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(&local_20);
return;
}
| |
55,092 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::basic_json<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) | monkey531[P]llama/common/json.hpp | basic_json(const JsonRef& ref) : basic_json(ref.moved_or_copied()) {} | O3 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::basic_json<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa19d8
movups (%r14), %xmm0
movups %xmm0, (%rbx)
movq %r14, %rdi
xorl %esi, %esi
callq 0x58f20
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x58f20
movq %r14, %rdi
xorl %esi, %esi
callq 0x58f20
movq %r14, %rdi
callq 0x5e40e
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
lea r14, [rsp+28h+var_20]
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [rbx], xmm0
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
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()
add rsp, 18h
pop rbx
pop r14
retn
| long long ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_(
char *a1,
long long a2)
{
_OWORD v3[2]; // [rsp+8h] [rbp-20h] BYREF
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied(
(unsigned __int8 *)v3,
a2);
*(_OWORD *)a1 = v3[0];
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v3);
LOBYTE(v3[0]) = 0;
*((_QWORD *)&v3[0] + 1) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(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 *)v3);
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v3);
}
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001a19d8
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [RBX],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x00158f20
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00158f20
MOV RDI,R14
XOR ESI,ESI
CALL 0x00158f20
MOV RDI,R14
CALL 0x0015e40e
ADD RSP,0x18
POP RBX
POP R14
RET
|
void _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_
(int8 *param_1)
{
bool bVar1;
data local_20;
int7 uStack_1f;
int8 uStack_18;
nlohmann::json_abi_v3_11_3::detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::moved_or_copied();
*param_1 = CONCAT71(uStack_1f,local_20);
param_1[1] = uStack_18;
bVar1 = SUB81(&local_20,0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar1);
local_20 = (data)0x0;
uStack_18 = 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(param_1,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(bVar1);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(&local_20);
return;
}
| |
55,093 | LefDefParser::lefwMacroPinAntennaGateArea(double, char const*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp | int
lefwMacroPinAntennaGateArea(double value,
const char *layerName)
{
lefw54Num = LEFW_ANTENNAGATEAREA;
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (!lefwDidInit)
return LEFW_BAD_ORDER;
if (!lefwIsMacroPin)
return LEFW_BAD_ORDER;
if (versionNum < 5.4)
return LEFW_WRONG_VERSION;
if (lefwAntenna53)
return LEFW_MIX_VERSION_DATA;
if (lefwWriteEncrypt) {
encPrint(lefwFile, (char*) " ANTENNAGATEAREA %.11g ", value);
if (layerName)
encPrint(lefwFile, (char*) "LAYER %s ", layerName);
encPrint(lefwFile, (char*) ";\n");
} else {
fprintf(lefwFile, " ANTENNAGATEAREA %.11g ", value);
if (layerName)
fprintf(lefwFile, "LAYER %s ", layerName);
fprintf(lefwFile, ";\n");
}
lefwLines++;
lefwState = LEFW_MACRO;
lefwAntenna54 = 1;
return LEFW_OK;
} | O0 | cpp | LefDefParser::lefwMacroPinAntennaGateArea(double, char const*):
subq $0x18, %rsp
movsd %xmm0, 0x8(%rsp)
movq %rdi, (%rsp)
movl $0x75, 0x96174(%rip) # 0xc4f1c
leaq 0x964a1(%rip), %rax # 0xc5250
cmpq $0x0, (%rax)
jne 0x2edc2
movl $0x1, 0x14(%rsp)
jmp 0x2ef1a
leaq 0x966db(%rip), %rax # 0xc54a4
cmpl $0x0, (%rax)
jne 0x2eddb
movl $0x2, 0x14(%rsp)
jmp 0x2ef1a
leaq 0x9670e(%rip), %rax # 0xc54f0
cmpl $0x0, (%rax)
jne 0x2edf4
movl $0x2, 0x14(%rsp)
jmp 0x2ef1a
movsd 0x73e44(%rip), %xmm0 # 0xa2c40
ucomisd 0x9610c(%rip), %xmm0 # 0xc4f10
jbe 0x2ee13
movl $0x5, 0x14(%rsp)
jmp 0x2ef1a
cmpl $0x0, 0x96752(%rip) # 0xc556c
je 0x2ee29
movl $0x6, 0x14(%rsp)
jmp 0x2ef1a
cmpl $0x0, 0x9670c(%rip) # 0xc553c
je 0x2ee8d
leaq 0x96417(%rip), %rax # 0xc5250
movq (%rax), %rdi
movsd 0x8(%rsp), %xmm0
leaq 0x654a4(%rip), %rsi # 0x942ed
movb $0x1, %al
callq 0x8bf50
cmpq $0x0, (%rsp)
je 0x2ee73
leaq 0x963f2(%rip), %rax # 0xc5250
movq (%rax), %rdi
movq (%rsp), %rdx
leaq 0x65530(%rip), %rsi # 0x9439c
movb $0x0, %al
callq 0x8bf50
leaq 0x963d6(%rip), %rax # 0xc5250
movq (%rax), %rdi
leaq 0x63995(%rip), %rsi # 0x92819
movb $0x0, %al
callq 0x8bf50
jmp 0x2eee6
leaq 0x963bc(%rip), %rax # 0xc5250
movq (%rax), %rdi
movsd 0x8(%rsp), %xmm0
leaq 0x65449(%rip), %rsi # 0x942ed
movb $0x1, %al
callq 0x2370
cmpq $0x0, (%rsp)
je 0x2eece
leaq 0x96397(%rip), %rax # 0xc5250
movq (%rax), %rdi
movq (%rsp), %rdx
leaq 0x654d5(%rip), %rsi # 0x9439c
movb $0x0, %al
callq 0x2370
leaq 0x9637b(%rip), %rax # 0xc5250
movq (%rax), %rdi
leaq 0x6393a(%rip), %rsi # 0x92819
movb $0x0, %al
callq 0x2370
leaq 0x965af(%rip), %rax # 0xc549c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x965a3(%rip), %rax # 0xc549c
movl %ecx, (%rax)
leaq 0x9659e(%rip), %rax # 0xc54a0
movl $0x21, (%rax)
movl $0x1, 0x96656(%rip) # 0xc5568
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN12LefDefParser27lefwMacroPinAntennaGateAreaEdPKc:
sub rsp, 18h
movsd [rsp+18h+var_10], xmm0
mov [rsp+18h+var_18], rdi
mov cs:_ZN12LefDefParserL9lefw54NumE, 75h ; 'u'; LefDefParser::lefw54Num
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
cmp qword ptr [rax], 0
jnz short loc_2EDC2
mov [rsp+18h+var_4], 1
jmp loc_2EF1A
loc_2EDC2:
lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit
cmp dword ptr [rax], 0
jnz short loc_2EDDB
mov [rsp+18h+var_4], 2
jmp loc_2EF1A
loc_2EDDB:
lea rax, _ZN12LefDefParser14lefwIsMacroPinE; LefDefParser::lefwIsMacroPin
cmp dword ptr [rax], 0
jnz short loc_2EDF4
mov [rsp+18h+var_4], 2
jmp loc_2EF1A
loc_2EDF4:
movsd xmm0, cs:qword_A2C40
ucomisd xmm0, cs:_ZN12LefDefParserL10versionNumE; LefDefParser::versionNum
jbe short loc_2EE13
mov [rsp+18h+var_4], 5
jmp loc_2EF1A
loc_2EE13:
cmp cs:_ZN12LefDefParserL13lefwAntenna53E, 0; LefDefParser::lefwAntenna53
jz short loc_2EE29
mov [rsp+18h+var_4], 6
jmp loc_2EF1A
loc_2EE29:
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt
jz short loc_2EE8D
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
movsd xmm0, [rsp+18h+var_10]
lea rsi, aAntennagateare_0; " ANTENNAGATEAREA %.11g "
mov al, 1
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
cmp [rsp+18h+var_18], 0
jz short loc_2EE73
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov rdx, [rsp+18h+var_18]
lea rsi, aLayerS_2+9; "LAYER %s "
mov al, 0
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
loc_2EE73:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
lea rsi, aDividercharS+11h; ";\n"
mov al, 0
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_2EEE6
loc_2EE8D:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
movsd xmm0, [rsp+18h+var_10]
lea rsi, aAntennagateare_0; " ANTENNAGATEAREA %.11g "
mov al, 1
call _fprintf
cmp [rsp+18h+var_18], 0
jz short loc_2EECE
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov rdx, [rsp+18h+var_18]
lea rsi, aLayerS_2+9; "LAYER %s "
mov al, 0
call _fprintf
loc_2EECE:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
lea rsi, aDividercharS+11h; ";\n"
mov al, 0
call _fprintf
loc_2EEE6:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov ecx, [rax]
add ecx, 1
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov [rax], ecx
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
mov dword ptr [rax], 21h ; '!'
mov cs:_ZN12LefDefParserL13lefwAntenna54E, 1; LefDefParser::lefwAntenna54
mov [rsp+18h+var_4], 0
loc_2EF1A:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
| long long LefDefParser::lefwMacroPinAntennaGateArea(
LefDefParser *this,
double a2,
const char *a3,
int a4,
int a5,
int a6,
int a7)
{
int v7; // edx
int v8; // ecx
int v9; // r8d
int v10; // r9d
LefDefParser::lefw54Num = 117;
if ( *(_QWORD *)&LefDefParser::lefwFile )
{
if ( LefDefParser::lefwDidInit )
{
if ( LefDefParser::lefwIsMacroPin )
{
if ( *(double *)&LefDefParser::versionNum >= 5.4 )
{
if ( LefDefParser::lefwAntenna53 )
{
return 6;
}
else
{
if ( LefDefParser::lefwWriteEncrypt )
{
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)" ANTENNAGATEAREA %.11g ",
a4,
a5,
a6,
a7);
if ( this )
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"LAYER %s ", (_DWORD)this, v8, v9, v10);
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)";\n", v7, v8, v9, v10);
}
else
{
fprintf(*(_QWORD *)&LefDefParser::lefwFile, " ANTENNAGATEAREA %.11g ", a2);
if ( this )
fprintf(*(_QWORD *)&LefDefParser::lefwFile, "LAYER %s ", (const char *)this);
fprintf(*(_QWORD *)&LefDefParser::lefwFile, ";\n");
}
++LefDefParser::lefwLines;
LefDefParser::lefwState = 33;
LefDefParser::lefwAntenna54 = 1;
return 0;
}
}
else
{
return 5;
}
}
else
{
return 2;
}
}
else
{
return 2;
}
}
else
{
return 1;
}
}
| lefwMacroPinAntennaGateArea:
SUB RSP,0x18
MOVSD qword ptr [RSP + 0x8],XMM0
MOV qword ptr [RSP],RDI
MOV dword ptr [0x001c4f1c],0x75
LEA RAX,[0x1c5250]
CMP qword ptr [RAX],0x0
JNZ 0x0012edc2
MOV dword ptr [RSP + 0x14],0x1
JMP 0x0012ef1a
LAB_0012edc2:
LEA RAX,[0x1c54a4]
CMP dword ptr [RAX],0x0
JNZ 0x0012eddb
MOV dword ptr [RSP + 0x14],0x2
JMP 0x0012ef1a
LAB_0012eddb:
LEA RAX,[0x1c54f0]
CMP dword ptr [RAX],0x0
JNZ 0x0012edf4
MOV dword ptr [RSP + 0x14],0x2
JMP 0x0012ef1a
LAB_0012edf4:
MOVSD XMM0,qword ptr [0x001a2c40]
UCOMISD XMM0,qword ptr [0x001c4f10]
JBE 0x0012ee13
MOV dword ptr [RSP + 0x14],0x5
JMP 0x0012ef1a
LAB_0012ee13:
CMP dword ptr [0x001c556c],0x0
JZ 0x0012ee29
MOV dword ptr [RSP + 0x14],0x6
JMP 0x0012ef1a
LAB_0012ee29:
CMP dword ptr [0x001c553c],0x0
JZ 0x0012ee8d
LEA RAX,[0x1c5250]
MOV RDI,qword ptr [RAX]
MOVSD XMM0,qword ptr [RSP + 0x8]
LEA RSI,[0x1942ed]
MOV AL,0x1
CALL 0x0018bf50
CMP qword ptr [RSP],0x0
JZ 0x0012ee73
LEA RAX,[0x1c5250]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP]
LEA RSI,[0x19439c]
MOV AL,0x0
CALL 0x0018bf50
LAB_0012ee73:
LEA RAX,[0x1c5250]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x192819]
MOV AL,0x0
CALL 0x0018bf50
JMP 0x0012eee6
LAB_0012ee8d:
LEA RAX,[0x1c5250]
MOV RDI,qword ptr [RAX]
MOVSD XMM0,qword ptr [RSP + 0x8]
LEA RSI,[0x1942ed]
MOV AL,0x1
CALL 0x00102370
CMP qword ptr [RSP],0x0
JZ 0x0012eece
LEA RAX,[0x1c5250]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP]
LEA RSI,[0x19439c]
MOV AL,0x0
CALL 0x00102370
LAB_0012eece:
LEA RAX,[0x1c5250]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x192819]
MOV AL,0x0
CALL 0x00102370
LAB_0012eee6:
LEA RAX,[0x1c549c]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
LEA RAX,[0x1c549c]
MOV dword ptr [RAX],ECX
LEA RAX,[0x1c54a0]
MOV dword ptr [RAX],0x21
MOV dword ptr [0x001c5568],0x1
MOV dword ptr [RSP + 0x14],0x0
LAB_0012ef1a:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
/* LefDefParser::lefwMacroPinAntennaGateArea(double, char const*) */
int4 LefDefParser::lefwMacroPinAntennaGateArea(double param_1,char *param_2)
{
int4 local_4;
lefw54Num = 0x75;
if (lefwFile == (_IO_FILE *)0x0) {
local_4 = 1;
}
else if (lefwDidInit == 0) {
local_4 = 2;
}
else if (lefwIsMacroPin == 0) {
local_4 = 2;
}
else if (DAT_001a2c40 <= versionNum) {
if (lefwAntenna53 == 0) {
if (lefwWriteEncrypt == 0) {
fprintf(lefwFile," ANTENNAGATEAREA %.11g ",param_1);
if (param_2 != (char *)0x0) {
fprintf(lefwFile,"LAYER %s ",param_2);
}
fprintf(lefwFile,";\n");
}
else {
encPrint(lefwFile," ANTENNAGATEAREA %.11g ",param_1);
if (param_2 != (char *)0x0) {
encPrint(lefwFile,"LAYER %s ",param_2);
}
encPrint(lefwFile,";\n");
}
lefwLines = lefwLines + 1;
lefwState = 0x21;
lefwAntenna54 = 1;
local_4 = 0;
}
else {
local_4 = 6;
}
}
else {
local_4 = 5;
}
return local_4;
}
| |
55,094 | translog_filename_by_fileno | eloqsql/storage/maria/ma_loghandler.c | char *translog_filename_by_fileno(uint32 file_no, char *path)
{
char buff[11], *end;
uint length;
DBUG_ENTER("translog_filename_by_fileno");
DBUG_ASSERT(file_no <= 0xfffffff);
/* log_descriptor.directory is already formated */
end= strxmov(path, log_descriptor.directory, "aria_log.0000000", NullS);
length= (uint) (int10_to_str(file_no, buff, 10) - buff);
strmov(end - length +1, buff);
DBUG_PRINT("info", ("Path: '%s' path: %p", path, path));
DBUG_RETURN(path);
} | O0 | c | translog_filename_by_fileno:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movl %edi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
jmp 0x8c45e
movq -0x20(%rbp), %rdi
leaq 0x3f80e7(%rip), %rsi # 0x484550
addq $0x28, %rsi
leaq 0xcd7c3(%rip), %rdx # 0x159c37
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x155930
movq %rax, -0x28(%rbp)
movl -0x18(%rbp), %eax
movl %eax, %edi
leaq -0x13(%rbp), %rsi
movl $0xa, %edx
callq 0x151f40
leaq -0x13(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x2c(%rbp)
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
subq %rcx, %rax
addq %rax, %rdi
addq $0x1, %rdi
leaq -0x13(%rbp), %rsi
callq 0x296d0
jmp 0x8c4c0
jmp 0x8c4c2
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x8c4e6
movq -0x38(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
callq 0x29230
nopl (%rax,%rax)
| translog_filename_by_fileno:
push rbp
mov rbp, rsp
sub rsp, 40h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_18], edi
mov [rbp+var_20], rsi
jmp short $+2
loc_8C45E:
mov rdi, [rbp+var_20]
lea rsi, log_descriptor
add rsi, 28h ; '('
lea rdx, aAriaLog0000000; "aria_log.0000000"
xor eax, eax
mov ecx, eax
mov al, 0
call strxmov
mov [rbp+var_28], rax
mov eax, [rbp+var_18]
mov edi, eax
lea rsi, [rbp+var_13]
mov edx, 0Ah
call int10_to_str
lea rcx, [rbp+var_13]
sub rax, rcx
mov [rbp+var_2C], eax
mov rdi, [rbp+var_28]
mov eax, [rbp+var_2C]
mov ecx, eax
xor eax, eax
sub rax, rcx
add rdi, rax
add rdi, 1
lea rsi, [rbp+var_13]
call _stpcpy
jmp short $+2
loc_8C4C0:
jmp short $+2
loc_8C4C2:
mov rax, [rbp+var_20]
mov [rbp+var_38], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_8C4E6
mov rax, [rbp+var_38]
add rsp, 40h
pop rbp
retn
loc_8C4E6:
call ___stack_chk_fail
| long long translog_filename_by_fileno(unsigned int a1, long long a2, long long a3, long long a4, int a5, int a6)
{
unsigned int v7; // [rsp+14h] [rbp-2Ch]
long long v8; // [rsp+18h] [rbp-28h]
_BYTE v9[11]; // [rsp+2Dh] [rbp-13h] BYREF
unsigned long long v10; // [rsp+38h] [rbp-8h]
long long savedregs; // [rsp+40h] [rbp+0h] BYREF
v10 = __readfsqword(0x28u);
v8 = strxmov(a2, (unsigned int)(&log_descriptor + 5), (unsigned int)"aria_log.0000000", 0, a5, a6);
v7 = int10_to_str(a1, v9, 10LL) - ((unsigned int)&savedregs - 19);
stpcpy(v8 - v7 + 1, v9);
return a2;
}
| translog_filename_by_fileno:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV dword ptr [RBP + -0x18],EDI
MOV qword ptr [RBP + -0x20],RSI
JMP 0x0018c45e
LAB_0018c45e:
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[0x584550]
ADD RSI,0x28
LEA RDX,[0x259c37]
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL 0x00255930
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x18]
MOV EDI,EAX
LEA RSI,[RBP + -0x13]
MOV EDX,0xa
CALL 0x00251f40
LEA RCX,[RBP + -0x13]
SUB RAX,RCX
MOV dword ptr [RBP + -0x2c],EAX
MOV RDI,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RBP + -0x2c]
MOV ECX,EAX
XOR EAX,EAX
SUB RAX,RCX
ADD RDI,RAX
ADD RDI,0x1
LEA RSI,[RBP + -0x13]
CALL 0x001296d0
JMP 0x0018c4c0
LAB_0018c4c0:
JMP 0x0018c4c2
LAB_0018c4c2:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0018c4e6
MOV RAX,qword ptr [RBP + -0x38]
ADD RSP,0x40
POP RBP
RET
LAB_0018c4e6:
CALL 0x00129230
|
int8 translog_filename_by_fileno(int4 param_1,int8 param_2)
{
int iVar1;
long lVar2;
long in_FS_OFFSET;
char local_1b [11];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
lVar2 = strxmov(param_2,&DAT_00584578,"aria_log.0000000",0);
iVar1 = int10_to_str(param_1,local_1b,10);
stpcpy((char *)((lVar2 - (ulong)(uint)(iVar1 - (int)local_1b)) + 1),local_1b);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return param_2;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
55,095 | my_uni_utf32 | eloqsql/strings/ctype-ucs2.c | static int
my_uni_utf32(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
if (s + 4 > e)
return MY_CS_TOOSMALL4;
if (wc > 0x10FFFF)
return MY_CS_ILUNI;
s[0]= (uchar) (wc >> 24);
s[1]= (uchar) (wc >> 16) & 0xFF;
s[2]= (uchar) (wc >> 8) & 0xFF;
s[3]= (uchar) wc & 0xFF;
return 4;
} | O0 | c | my_uni_utf32:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
addq $0x4, %rax
cmpq -0x28(%rbp), %rax
jbe 0xae87b
movl $0xffffff98, -0x4(%rbp) # imm = 0xFFFFFF98
jmp 0xae8ec
cmpq $0x10ffff, -0x18(%rbp) # imm = 0x10FFFF
jbe 0xae88e
movl $0x0, -0x4(%rbp)
jmp 0xae8ec
movq -0x18(%rbp), %rax
shrq $0x18, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movq -0x18(%rbp), %rax
shrq $0x10, %rax
movzbl %al, %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x18(%rbp), %rax
shrq $0x8, %rax
movzbl %al, %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x18(%rbp), %rax
movzbl %al, %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x3(%rax)
movl $0x4, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_uni_utf32:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
add rax, 4
cmp rax, [rbp+var_28]
jbe short loc_AE87B
mov [rbp+var_4], 0FFFFFF98h
jmp short loc_AE8EC
loc_AE87B:
cmp [rbp+var_18], offset unk_10FFFF
jbe short loc_AE88E
mov [rbp+var_4], 0
jmp short loc_AE8EC
loc_AE88E:
mov rax, [rbp+var_18]
shr rax, 18h
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov rax, [rbp+var_18]
shr rax, 10h
movzx eax, al
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov [rax+1], cl
mov rax, [rbp+var_18]
shr rax, 8
movzx eax, al
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov [rax+2], cl
mov rax, [rbp+var_18]
movzx eax, al
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov [rax+3], cl
mov [rbp+var_4], 4
loc_AE8EC:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_uni_utf32(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
if ( (unsigned long long)(a3 + 4) <= a4 )
{
if ( a2 <= (unsigned long long)&unk_10FFFF )
{
*a3 = BYTE3(a2);
a3[1] = BYTE2(a2);
a3[2] = BYTE1(a2);
a3[3] = a2;
return 4;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-104;
}
}
| my_uni_utf32:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x4
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x001ae87b
MOV dword ptr [RBP + -0x4],0xffffff98
JMP 0x001ae8ec
LAB_001ae87b:
CMP qword ptr [RBP + -0x18],0x10ffff
JBE 0x001ae88e
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001ae8ec
LAB_001ae88e:
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x10
MOVZX EAX,AL
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x8
MOVZX EAX,AL
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,AL
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3],CL
MOV dword ptr [RBP + -0x4],0x4
LAB_001ae8ec:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_uni_utf32(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4)
{
int4 local_c;
if (param_4 < param_3 + 4) {
local_c = 0xffffff98;
}
else if (param_2 < 0x110000) {
*param_3 = (char)(param_2 >> 0x18);
param_3[1] = (char)(param_2 >> 0x10);
param_3[2] = (char)(param_2 >> 8);
param_3[3] = (char)param_2;
local_c = 4;
}
else {
local_c = 0;
}
return local_c;
}
| |
55,096 | LefDefParser::defiRegion::addProperty(char const*, char const*, char) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiRegion.cpp | void defiRegion::addProperty(const char* name, const char* value,
const char type) {
int len;
if (numProps_ == propsAllocated_) {
int i;
char** nn;
char** nv;
double* nd;
char* nt;
propsAllocated_ *= 2;
nn = (char**)malloc(sizeof(char*)*propsAllocated_);
nv = (char**)malloc(sizeof(char*)*propsAllocated_);
nd = (double*)malloc(sizeof(double)*propsAllocated_);
nt = (char*)malloc(sizeof(char)*propsAllocated_);
for (i = 0; i < numProps_; i++) {
nn[i] = propNames_[i];
nv[i] = propValues_[i];
nd[i] = propDValues_[i];
nt[i] = propTypes_[i];
}
free((char*)(propNames_));
free((char*)(propValues_));
free((char*)(propDValues_));
free((char*)(propTypes_));
propNames_ = nn;
propValues_ = nv;
propDValues_ = nd;
propTypes_ = nt;
}
len = strlen(name) + 1;
propNames_[numProps_] = (char*)malloc(len);
strcpy(propNames_[numProps_], defData->DEFCASE(name));
len = strlen(value) + 1;
propValues_[numProps_] = (char*)malloc(len);
strcpy(propValues_[numProps_], defData->DEFCASE(value));
propDValues_[numProps_] = 0;
propTypes_[numProps_] = type;
numProps_ += 1;
} | O3 | cpp | LefDefParser::defiRegion::addProperty(char const*, char const*, char):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movq %rsi, 0x10(%rsp)
movq %rdi, %r14
movl 0x38(%rdi), %r12d
cmpl 0x3c(%rdi), %r12d
movl %ecx, 0x4(%rsp)
jne 0x1525f
movq %r15, 0x8(%rsp)
movslq %r12d, %rbx
leaq (%rbx,%rbx), %r15
movl %r15d, 0x3c(%r14)
shlq $0x4, %rbx
movq %rbx, %rdi
callq 0x7270
movq %rax, %r13
movq %rbx, %rdi
callq 0x7270
movq %rax, %rbp
movq %rbx, %rdi
callq 0x7270
movq %rax, %rbx
movq %r15, %rdi
callq 0x7270
movq %rax, %r15
movq 0x40(%r14), %rdi
testl %r12d, %r12d
jle 0x15224
movq 0x48(%r14), %rax
movq 0x50(%r14), %rcx
movq 0x58(%r14), %rdx
xorl %esi, %esi
movq (%rdi,%rsi,8), %r8
movq %r8, (%r13,%rsi,8)
movq (%rax,%rsi,8), %r8
movq %r8, (%rbp,%rsi,8)
movsd (%rcx,%rsi,8), %xmm0
movsd %xmm0, (%rbx,%rsi,8)
movb (%rdx,%rsi), %r8b
movb %r8b, (%r15,%rsi)
incq %rsi
cmpq %rsi, %r12
jne 0x151f8
callq 0x7220
movq 0x48(%r14), %rdi
callq 0x7220
movq 0x50(%r14), %rdi
callq 0x7220
movq 0x58(%r14), %rdi
callq 0x7220
movq %r13, 0x40(%r14)
movq %rbp, 0x48(%r14)
movq %rbx, 0x50(%r14)
movq %r15, 0x58(%r14)
movl 0x38(%r14), %r12d
movq 0x8(%rsp), %r15
jmp 0x15263
movq 0x40(%r14), %r13
movq 0x10(%rsp), %rbp
movq %rbp, %rdi
callq 0x70d0
incl %eax
movslq %eax, %rdi
callq 0x7270
movslq %r12d, %rcx
movq %rax, (%r13,%rcx,8)
movq 0x40(%r14), %rax
movq 0x68(%r14), %rdi
movq (%rax,%rcx,8), %rbx
movq %rbp, %rsi
callq 0x1b638
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7190
movq %r15, %rdi
callq 0x70d0
incl %eax
movslq %eax, %rdi
callq 0x7270
movq 0x48(%r14), %rcx
movslq 0x38(%r14), %rdx
movq %rax, (%rcx,%rdx,8)
movq 0x48(%r14), %rax
movq 0x68(%r14), %rdi
movq (%rax,%rdx,8), %rbx
movq %r15, %rsi
callq 0x1b638
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7190
movq 0x50(%r14), %rax
movslq 0x38(%r14), %rcx
movq $0x0, (%rax,%rcx,8)
movq 0x58(%r14), %rax
movl 0x4(%rsp), %edx
movb %dl, (%rax,%rcx)
incl 0x38(%r14)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN12LefDefParser10defiRegion11addPropertyEPKcS2_c:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15, rdx
mov [rsp+48h+var_38], rsi
mov r14, rdi
mov r12d, [rdi+38h]
cmp r12d, [rdi+3Ch]
mov [rsp+48h+var_44], ecx
jnz loc_1525F
mov [rsp+48h+var_40], r15
movsxd rbx, r12d
lea r15, [rbx+rbx]
mov [r14+3Ch], r15d
shl rbx, 4
mov rdi, rbx
call _malloc
mov r13, rax
mov rdi, rbx
call _malloc
mov rbp, rax
mov rdi, rbx
call _malloc
mov rbx, rax
mov rdi, r15
call _malloc
mov r15, rax
mov rdi, [r14+40h]
test r12d, r12d
jle short loc_15224
mov rax, [r14+48h]
mov rcx, [r14+50h]
mov rdx, [r14+58h]
xor esi, esi
loc_151F8:
mov r8, [rdi+rsi*8]
mov [r13+rsi*8+0], r8
mov r8, [rax+rsi*8]
mov [rbp+rsi*8+0], r8
movsd xmm0, qword ptr [rcx+rsi*8]
movsd qword ptr [rbx+rsi*8], xmm0
mov r8b, [rdx+rsi]
mov [r15+rsi], r8b
inc rsi
cmp r12, rsi
jnz short loc_151F8
loc_15224:
call _free
mov rdi, [r14+48h]
call _free
mov rdi, [r14+50h]
call _free
mov rdi, [r14+58h]
call _free
mov [r14+40h], r13
mov [r14+48h], rbp
mov [r14+50h], rbx
mov [r14+58h], r15
mov r12d, [r14+38h]
mov r15, [rsp+48h+var_40]
jmp short loc_15263
loc_1525F:
mov r13, [r14+40h]
loc_15263:
mov rbp, [rsp+48h+var_38]
mov rdi, rbp
call _strlen
inc eax
movsxd rdi, eax
call _malloc
movsxd rcx, r12d
mov [r13+rcx*8+0], rax
mov rax, [r14+40h]
mov rdi, [r14+68h]; this
mov rbx, [rax+rcx*8]
mov rsi, rbp; char *
call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*)
mov rdi, rbx
mov rsi, rax
call _strcpy
mov rdi, r15
call _strlen
inc eax
movsxd rdi, eax
call _malloc
mov rcx, [r14+48h]
movsxd rdx, dword ptr [r14+38h]
mov [rcx+rdx*8], rax
mov rax, [r14+48h]
mov rdi, [r14+68h]; this
mov rbx, [rax+rdx*8]
mov rsi, r15; char *
call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*)
mov rdi, rbx
mov rsi, rax
call _strcpy
mov rax, [r14+50h]
movsxd rcx, dword ptr [r14+38h]
mov qword ptr [rax+rcx*8], 0
mov rax, [r14+58h]
mov edx, [rsp+48h+var_44]
mov [rax+rcx], dl
inc dword ptr [r14+38h]
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long LefDefParser::defiRegion::addProperty(
LefDefParser::defiRegion *this,
const char *a2,
const char *a3,
char a4)
{
const char *v4; // r15
long long v6; // r12
long long v7; // r13
long long v8; // rbp
long long v9; // rbx
long long v10; // r15
_QWORD *v11; // rdi
long long v12; // rax
long long v13; // rcx
long long v14; // rdx
long long i; // rsi
int v16; // eax
long long v17; // rbx
long long v18; // rax
int v19; // eax
long long v20; // rax
long long v21; // rdx
long long v22; // rbx
long long v23; // rax
long long v24; // rcx
long long result; // rax
v4 = a3;
v6 = *((unsigned int *)this + 14);
if ( (_DWORD)v6 == *((_DWORD *)this + 15) )
{
*((_DWORD *)this + 15) = 2 * v6;
v7 = malloc(16LL * (int)v6);
v8 = malloc(16LL * (int)v6);
v9 = malloc(16LL * (int)v6);
v10 = malloc(2LL * (int)v6);
v11 = (_QWORD *)*((_QWORD *)this + 8);
if ( (int)v6 > 0 )
{
v12 = *((_QWORD *)this + 9);
v13 = *((_QWORD *)this + 10);
v14 = *((_QWORD *)this + 11);
for ( i = 0LL; i != v6; ++i )
{
*(_QWORD *)(v7 + 8 * i) = v11[i];
*(_QWORD *)(v8 + 8 * i) = *(_QWORD *)(v12 + 8 * i);
*(_QWORD *)(v9 + 8 * i) = *(_QWORD *)(v13 + 8 * i);
*(_BYTE *)(v10 + i) = *(_BYTE *)(v14 + i);
}
}
free(v11);
free(*((void **)this + 9));
free(*((void **)this + 10));
free(*((void **)this + 11));
*((_QWORD *)this + 8) = v7;
*((_QWORD *)this + 9) = v8;
*((_QWORD *)this + 10) = v9;
*((_QWORD *)this + 11) = v10;
LODWORD(v6) = *((_DWORD *)this + 14);
v4 = a3;
}
else
{
v7 = *((_QWORD *)this + 8);
}
v16 = strlen(a2);
*(_QWORD *)(v7 + 8LL * (int)v6) = malloc(v16 + 1);
v17 = *(_QWORD *)(*((_QWORD *)this + 8) + 8LL * (int)v6);
v18 = LefDefParser::defrData::DEFCASE(*((LefDefParser::defrData **)this + 13), a2);
strcpy(v17, v18);
v19 = strlen(v4);
v20 = malloc(v19 + 1);
v21 = *((int *)this + 14);
*(_QWORD *)(*((_QWORD *)this + 9) + 8 * v21) = v20;
v22 = *(_QWORD *)(*((_QWORD *)this + 9) + 8 * v21);
v23 = LefDefParser::defrData::DEFCASE(*((LefDefParser::defrData **)this + 13), v4);
strcpy(v22, v23);
v24 = *((int *)this + 14);
*(_QWORD *)(*((_QWORD *)this + 10) + 8 * v24) = 0LL;
result = *((_QWORD *)this + 11);
*(_BYTE *)(result + v24) = a4;
++*((_DWORD *)this + 14);
return result;
}
| addProperty:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15,RDX
MOV qword ptr [RSP + 0x10],RSI
MOV R14,RDI
MOV R12D,dword ptr [RDI + 0x38]
CMP R12D,dword ptr [RDI + 0x3c]
MOV dword ptr [RSP + 0x4],ECX
JNZ 0x0011525f
MOV qword ptr [RSP + 0x8],R15
MOVSXD RBX,R12D
LEA R15,[RBX + RBX*0x1]
MOV dword ptr [R14 + 0x3c],R15D
SHL RBX,0x4
MOV RDI,RBX
CALL 0x00107270
MOV R13,RAX
MOV RDI,RBX
CALL 0x00107270
MOV RBP,RAX
MOV RDI,RBX
CALL 0x00107270
MOV RBX,RAX
MOV RDI,R15
CALL 0x00107270
MOV R15,RAX
MOV RDI,qword ptr [R14 + 0x40]
TEST R12D,R12D
JLE 0x00115224
MOV RAX,qword ptr [R14 + 0x48]
MOV RCX,qword ptr [R14 + 0x50]
MOV RDX,qword ptr [R14 + 0x58]
XOR ESI,ESI
LAB_001151f8:
MOV R8,qword ptr [RDI + RSI*0x8]
MOV qword ptr [R13 + RSI*0x8],R8
MOV R8,qword ptr [RAX + RSI*0x8]
MOV qword ptr [RBP + RSI*0x8],R8
MOVSD XMM0,qword ptr [RCX + RSI*0x8]
MOVSD qword ptr [RBX + RSI*0x8],XMM0
MOV R8B,byte ptr [RDX + RSI*0x1]
MOV byte ptr [R15 + RSI*0x1],R8B
INC RSI
CMP R12,RSI
JNZ 0x001151f8
LAB_00115224:
CALL 0x00107220
MOV RDI,qword ptr [R14 + 0x48]
CALL 0x00107220
MOV RDI,qword ptr [R14 + 0x50]
CALL 0x00107220
MOV RDI,qword ptr [R14 + 0x58]
CALL 0x00107220
MOV qword ptr [R14 + 0x40],R13
MOV qword ptr [R14 + 0x48],RBP
MOV qword ptr [R14 + 0x50],RBX
MOV qword ptr [R14 + 0x58],R15
MOV R12D,dword ptr [R14 + 0x38]
MOV R15,qword ptr [RSP + 0x8]
JMP 0x00115263
LAB_0011525f:
MOV R13,qword ptr [R14 + 0x40]
LAB_00115263:
MOV RBP,qword ptr [RSP + 0x10]
MOV RDI,RBP
CALL 0x001070d0
INC EAX
MOVSXD RDI,EAX
CALL 0x00107270
MOVSXD RCX,R12D
MOV qword ptr [R13 + RCX*0x8],RAX
MOV RAX,qword ptr [R14 + 0x40]
MOV RDI,qword ptr [R14 + 0x68]
MOV RBX,qword ptr [RAX + RCX*0x8]
MOV RSI,RBP
CALL 0x0011b638
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00107190
MOV RDI,R15
CALL 0x001070d0
INC EAX
MOVSXD RDI,EAX
CALL 0x00107270
MOV RCX,qword ptr [R14 + 0x48]
MOVSXD RDX,dword ptr [R14 + 0x38]
MOV qword ptr [RCX + RDX*0x8],RAX
MOV RAX,qword ptr [R14 + 0x48]
MOV RDI,qword ptr [R14 + 0x68]
MOV RBX,qword ptr [RAX + RDX*0x8]
MOV RSI,R15
CALL 0x0011b638
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00107190
MOV RAX,qword ptr [R14 + 0x50]
MOVSXD RCX,dword ptr [R14 + 0x38]
MOV qword ptr [RAX + RCX*0x8],0x0
MOV RAX,qword ptr [R14 + 0x58]
MOV EDX,dword ptr [RSP + 0x4]
MOV byte ptr [RAX + RCX*0x1],DL
INC dword ptr [R14 + 0x38]
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* LefDefParser::defiRegion::addProperty(char const*, char const*, char) */
void __thiscall
LefDefParser::defiRegion::addProperty(defiRegion *this,char *param_1,char *param_2,char param_3)
{
int iVar1;
long lVar2;
long lVar3;
long lVar4;
char *pcVar5;
void *pvVar6;
void *pvVar7;
void *pvVar8;
void *pvVar9;
size_t sVar10;
void *pvVar11;
char *pcVar12;
size_t __size;
ulong uVar13;
uint uVar14;
uVar14 = *(uint *)(this + 0x38);
if (uVar14 == *(uint *)(this + 0x3c)) {
sVar10 = (long)(int)uVar14 * 2;
*(int *)(this + 0x3c) = (int)sVar10;
__size = (long)(int)uVar14 << 4;
pvVar6 = malloc(__size);
pvVar7 = malloc(__size);
pvVar8 = malloc(__size);
pvVar9 = malloc(sVar10);
pvVar11 = *(void **)(this + 0x40);
if (0 < (int)uVar14) {
lVar2 = *(long *)(this + 0x48);
lVar3 = *(long *)(this + 0x50);
lVar4 = *(long *)(this + 0x58);
uVar13 = 0;
do {
*(int8 *)((long)pvVar6 + uVar13 * 8) = *(int8 *)((long)pvVar11 + uVar13 * 8);
*(int8 *)((long)pvVar7 + uVar13 * 8) = *(int8 *)(lVar2 + uVar13 * 8);
*(int8 *)((long)pvVar8 + uVar13 * 8) = *(int8 *)(lVar3 + uVar13 * 8);
*(int1 *)((long)pvVar9 + uVar13) = *(int1 *)(lVar4 + uVar13);
uVar13 = uVar13 + 1;
} while (uVar14 != uVar13);
}
free(pvVar11);
free(*(void **)(this + 0x48));
free(*(void **)(this + 0x50));
free(*(void **)(this + 0x58));
*(void **)(this + 0x40) = pvVar6;
*(void **)(this + 0x48) = pvVar7;
*(void **)(this + 0x50) = pvVar8;
*(void **)(this + 0x58) = pvVar9;
uVar14 = *(uint *)(this + 0x38);
}
else {
pvVar6 = *(void **)(this + 0x40);
}
sVar10 = strlen(param_1);
pvVar11 = malloc((long)((int)sVar10 + 1));
*(void **)((long)pvVar6 + (long)(int)uVar14 * 8) = pvVar11;
pcVar5 = *(char **)(*(long *)(this + 0x40) + (long)(int)uVar14 * 8);
pcVar12 = (char *)defrData::DEFCASE(*(defrData **)(this + 0x68),param_1);
strcpy(pcVar5,pcVar12);
sVar10 = strlen(param_2);
pvVar6 = malloc((long)((int)sVar10 + 1));
iVar1 = *(int *)(this + 0x38);
*(void **)(*(long *)(this + 0x48) + (long)iVar1 * 8) = pvVar6;
pcVar5 = *(char **)(*(long *)(this + 0x48) + (long)iVar1 * 8);
pcVar12 = (char *)defrData::DEFCASE(*(defrData **)(this + 0x68),param_2);
strcpy(pcVar5,pcVar12);
iVar1 = *(int *)(this + 0x38);
*(int8 *)(*(long *)(this + 0x50) + (long)iVar1 * 8) = 0;
*(char *)(*(long *)(this + 0x58) + (long)iVar1) = param_3;
*(int *)(this + 0x38) = *(int *)(this + 0x38) + 1;
return;
}
| |
55,097 | mi_decrement_open_count | eloqsql/storage/myisam/mi_locking.c | int _mi_decrement_open_count(MI_INFO *info)
{
uchar buff[2];
register MYISAM_SHARE *share=info->s;
int lock_error=0,write_error=0;
if (share->global_changed)
{
uint old_lock=info->lock_type;
share->global_changed=0;
lock_error= my_disable_locking ? 0 : mi_lock_database(info,F_WRLCK);
/* Its not fatal even if we couldn't get the lock ! */
if (share->state.open_count > 0)
{
share->state.open_count--;
mi_int2store(buff,share->state.open_count);
write_error= (mysql_file_pwrite(share->kfile, buff, sizeof(buff),
sizeof(share->state.header),
MYF(MY_NABP)) != 0);
}
if (!lock_error && !my_disable_locking)
lock_error=mi_lock_database(info,old_lock);
}
return MY_TEST(lock_error || write_error);
} | O3 | c | mi_decrement_open_count:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq (%rdi), %r12
cmpb $0x0, 0x380(%r12)
je 0x97a37
movq %rdi, %rbx
movl 0x1f4(%rdi), %r14d
movb $0x0, 0x380(%r12)
leaq 0xb99625(%rip), %r13 # 0xc30fd8
xorl %r15d, %r15d
cmpb $0x0, (%r13)
jne 0x979cd
movq %rbx, %rdi
movl $0x1, %esi
callq 0x96ca8
movl %eax, %r15d
movl 0xec(%r12), %eax
testl %eax, %eax
je 0x97a3b
decl %eax
movl %eax, 0xec(%r12)
movb %al, -0x29(%rbp)
movb %ah, -0x2a(%rbp)
movl 0x350(%r12), %r12d
leaq 0x317020(%rip), %rax # 0x3aea18
movq (%rax), %rax
leaq -0x80(%rbp), %rdi
movl %r12d, %esi
movl $0x7, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x97a76
leaq -0x2a(%rbp), %rsi
movl $0x2, %edx
movl $0x18, %ecx
movl $0x4, %r8d
movl %r12d, %edi
callq 0xbfd5e
testq %rax, %rax
setne %r12b
jmp 0x97a3e
xorl %eax, %eax
jmp 0x97a67
xorl %r12d, %r12d
testl %r15d, %r15d
jne 0x97a58
cmpb $0x0, (%r13)
jne 0x97a58
movq %rbx, %rdi
movl %r14d, %esi
callq 0x96ca8
movl %eax, %r15d
testl %r15d, %r15d
setne %al
orb %r12b, %al
movzbl %al, %eax
andl $0x1, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x2a(%rbp), %rdx
leaq -0x38(%rbp), %rcx
movq %rax, %rdi
movl %r12d, %esi
movq %rcx, %r12
callq 0x2f6d5
movq (%r12), %rax
jmp 0x97a2e
| _mi_decrement_open_count:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r12, [rdi]
cmp byte ptr [r12+380h], 0
jz loc_97A37
mov rbx, rdi
mov r14d, [rdi+1F4h]
mov byte ptr [r12+380h], 0
lea r13, my_disable_locking
xor r15d, r15d
cmp byte ptr [r13+0], 0
jnz short loc_979CD
mov rdi, rbx
mov esi, 1
call mi_lock_database
mov r15d, eax
loc_979CD:
mov eax, [r12+0ECh]
test eax, eax
jz short loc_97A3B
dec eax
mov [r12+0ECh], eax
mov [rbp+var_29], al
mov [rbp+var_2A], ah
mov r12d, [r12+350h]
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_80]
mov esi, r12d
mov edx, 7
call qword ptr [rax+158h]
test rax, rax
jnz short loc_97A76
lea rsi, [rbp+var_2A]
mov edx, 2
mov ecx, 18h
mov r8d, 4
mov edi, r12d
call my_pwrite
loc_97A2E:
test rax, rax
setnz r12b
jmp short loc_97A3E
loc_97A37:
xor eax, eax
jmp short loc_97A67
loc_97A3B:
xor r12d, r12d
loc_97A3E:
test r15d, r15d
jnz short loc_97A58
cmp byte ptr [r13+0], 0
jnz short loc_97A58
mov rdi, rbx
mov esi, r14d
call mi_lock_database
mov r15d, eax
loc_97A58:
test r15d, r15d
setnz al
or al, r12b
movzx eax, al
and eax, 1
loc_97A67:
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_97A76:
lea rdx, [rbp+var_2A]
lea rcx, [rbp+var_38]
mov rdi, rax
mov esi, r12d
mov r12, rcx
call _mi_decrement_open_count_cold_1
mov rax, [r12]
jmp short loc_97A2E
| long long mi_decrement_open_count(_DWORD *a1, double a2, double a3)
{
long long v3; // r12
int v4; // r14d
int v5; // r15d
int v6; // eax
int v7; // eax
unsigned int v8; // r12d
long long v9; // rax
long long v10; // rax
bool v11; // r12
_BYTE v13[72]; // [rsp+0h] [rbp-80h] BYREF
long long v14; // [rsp+48h] [rbp-38h] BYREF
_BYTE v15[42]; // [rsp+56h] [rbp-2Ah] BYREF
v3 = *(_QWORD *)a1;
if ( !*(_BYTE *)(*(_QWORD *)a1 + 896LL) )
return 0LL;
v4 = a1[125];
*(_BYTE *)(v3 + 896) = 0;
v5 = 0;
if ( !my_disable_locking )
v5 = mi_lock_database(a1, 1, a2, a3);
v6 = *(_DWORD *)(v3 + 236);
if ( v6 )
{
v7 = v6 - 1;
*(_DWORD *)(v3 + 236) = v7;
v15[0] = BYTE1(v7);
v15[1] = v7;
v8 = *(_DWORD *)(v3 + 848);
v9 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v13, v8, 7LL);
if ( v9 )
{
mi_decrement_open_count_cold_1(v9, v8, (long long)v15, &v14);
v10 = v14;
}
else
{
v10 = my_pwrite(v8, v15, 2LL, 24LL, 4LL);
}
v11 = v10 != 0;
}
else
{
v11 = 0;
}
if ( !v5 && !my_disable_locking )
v5 = mi_lock_database(a1, v4, a2, a3);
return v11 | (unsigned __int8)(v5 != 0);
}
| _mi_decrement_open_count:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R12,qword ptr [RDI]
CMP byte ptr [R12 + 0x380],0x0
JZ 0x00197a37
MOV RBX,RDI
MOV R14D,dword ptr [RDI + 0x1f4]
MOV byte ptr [R12 + 0x380],0x0
LEA R13,[0xd30fd8]
XOR R15D,R15D
CMP byte ptr [R13],0x0
JNZ 0x001979cd
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00196ca8
MOV R15D,EAX
LAB_001979cd:
MOV EAX,dword ptr [R12 + 0xec]
TEST EAX,EAX
JZ 0x00197a3b
DEC EAX
MOV dword ptr [R12 + 0xec],EAX
MOV byte ptr [RBP + -0x29],AL
MOV byte ptr [RBP + -0x2a],AH
MOV R12D,dword ptr [R12 + 0x350]
LEA RAX,[0x4aea18]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x80]
MOV ESI,R12D
MOV EDX,0x7
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00197a76
LEA RSI,[RBP + -0x2a]
MOV EDX,0x2
MOV ECX,0x18
MOV R8D,0x4
MOV EDI,R12D
CALL 0x001bfd5e
LAB_00197a2e:
TEST RAX,RAX
SETNZ R12B
JMP 0x00197a3e
LAB_00197a37:
XOR EAX,EAX
JMP 0x00197a67
LAB_00197a3b:
XOR R12D,R12D
LAB_00197a3e:
TEST R15D,R15D
JNZ 0x00197a58
CMP byte ptr [R13],0x0
JNZ 0x00197a58
MOV RDI,RBX
MOV ESI,R14D
CALL 0x00196ca8
MOV R15D,EAX
LAB_00197a58:
TEST R15D,R15D
SETNZ AL
OR AL,R12B
MOVZX EAX,AL
AND EAX,0x1
LAB_00197a67:
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00197a76:
LEA RDX,[RBP + -0x2a]
LEA RCX,[RBP + -0x38]
MOV RDI,RAX
MOV ESI,R12D
MOV R12,RCX
CALL 0x0012f6d5
MOV RAX,qword ptr [R12]
JMP 0x00197a2e
|
byte _mi_decrement_open_count(long *param_1)
{
int4 uVar1;
int4 uVar2;
byte bVar3;
int iVar4;
int iVar5;
long lVar6;
bool bVar7;
int1 local_88 [72];
long local_40;
int1 local_32;
int1 local_31;
lVar6 = *param_1;
if (*(char *)(lVar6 + 0x380) == '\0') {
bVar3 = 0;
}
else {
uVar1 = *(int4 *)((long)param_1 + 500);
*(int1 *)(lVar6 + 0x380) = 0;
iVar4 = 0;
if (my_disable_locking == '\0') {
iVar4 = mi_lock_database(param_1,1);
}
if (*(int *)(lVar6 + 0xec) == 0) {
bVar7 = false;
}
else {
iVar5 = *(int *)(lVar6 + 0xec) + -1;
*(int *)(lVar6 + 0xec) = iVar5;
local_31 = (int1)iVar5;
local_32 = (int1)((uint)iVar5 >> 8);
uVar2 = *(int4 *)(lVar6 + 0x350);
lVar6 = (**(code **)(PSI_server + 0x158))(local_88,uVar2,7);
if (lVar6 == 0) {
local_40 = my_pwrite(uVar2,&local_32,2,0x18,4);
}
else {
_mi_decrement_open_count_cold_1(lVar6,uVar2,&local_32);
}
bVar7 = local_40 != 0;
}
if ((iVar4 == 0) && (my_disable_locking == '\0')) {
iVar4 = mi_lock_database(param_1,uVar1);
}
bVar3 = iVar4 != 0 | bVar7;
}
return bVar3;
}
| |
55,098 | my_rnd_ssl | eloqsql/mysys/my_rnd.c | double my_rnd_ssl(struct my_rnd_struct *rand_st)
{
#if defined(HAVE_OPENSSL)
rc= RAND_bytes((unsigned char *) &res, sizeof (unsigned int));
if (rc)
return (double)res / (double)UINT_MAX;
#endif /* defined(HAVE_OPENSSL) */
return my_rnd(rand_st);
} | O3 | c | my_rnd_ssl:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movq 0x8(%rdi), %rsi
leaq (%rax,%rax,2), %rax
addq %rsi, %rax
movq 0x10(%rdi), %r8
xorl %edx, %edx
divq %r8
movq %rdx, %rcx
leaq (%rsi,%rdx), %rax
addq $0x21, %rax
xorl %edx, %edx
divq %r8
movq %rdx, 0x8(%rdi)
movq %rcx, (%rdi)
movq %rcx, %xmm1
punpckldq 0x37ae9(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x37af1(%rip), %xmm1 # 0xe0aa0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
divsd 0x18(%rdi), %xmm0
popq %rbp
retq
nop
| my_rnd_ssl:
push rbp
mov rbp, rsp
mov rax, [rdi]
mov rsi, [rdi+8]
lea rax, [rax+rax*2]
add rax, rsi
mov r8, [rdi+10h]
xor edx, edx
div r8
mov rcx, rdx
lea rax, [rsi+rdx]
add rax, 21h ; '!'
xor edx, edx
div r8
mov [rdi+8], rdx
mov [rdi], rcx
movq xmm1, rcx
punpckldq xmm1, cs:xmmword_E0A90
subpd xmm1, cs:xmmword_E0AA0
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
divsd xmm0, qword ptr [rdi+18h]
pop rbp
retn
| double my_rnd_ssl(long long a1)
{
long long v1; // rsi
unsigned long long v2; // r8
unsigned long long v3; // rcx
__m128d v4; // xmm1
v1 = *(_QWORD *)(a1 + 8);
v2 = *(_QWORD *)(a1 + 16);
v3 = (v1 + 3LL * *(_QWORD *)a1) % v2;
*(_QWORD *)(a1 + 8) = (v1 + v3 + 33) % v2;
*(_QWORD *)a1 = v3;
v4 = _mm_sub_pd((__m128d)_mm_unpacklo_epi32((__m128i)v3, (__m128i)xmmword_E0A90), (__m128d)xmmword_E0AA0);
return (_mm_unpackhi_pd(v4, v4).m128d_f64[0] + v4.m128d_f64[0]) / *(double *)(a1 + 24);
}
| my_rnd_ssl:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RDI + 0x8]
LEA RAX,[RAX + RAX*0x2]
ADD RAX,RSI
MOV R8,qword ptr [RDI + 0x10]
XOR EDX,EDX
DIV R8
MOV RCX,RDX
LEA RAX,[RSI + RDX*0x1]
ADD RAX,0x21
XOR EDX,EDX
DIV R8
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RDI],RCX
MOVQ XMM1,RCX
PUNPCKLDQ XMM1,xmmword ptr [0x001e0a90]
SUBPD XMM1,xmmword ptr [0x001e0aa0]
MOVAPD XMM0,XMM1
UNPCKHPD XMM0,XMM1
ADDSD XMM0,XMM1
DIVSD XMM0,qword ptr [RDI + 0x18]
POP RBP
RET
|
ulong my_rnd_ssl(ulong *param_1)
{
ulong uVar1;
ulong uVar2;
ulong uVar3;
uVar1 = param_1[2];
uVar3 = (*param_1 * 3 + param_1[1]) % uVar1;
uVar2 = param_1[1] + uVar3 + 0x21;
param_1[1] = uVar2 % uVar1;
*param_1 = uVar3;
return uVar2 / uVar1;
}
| |
55,099 | release_configuration_dirs | eloqsql/libmariadb/libmariadb/ma_default.c | void release_configuration_dirs()
{
if (configuration_dirs)
{
int i= 0;
while (configuration_dirs[i])
free(configuration_dirs[i++]);
free(configuration_dirs);
}
} | O0 | c | release_configuration_dirs:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x1be01(%rip), %rax # 0x66000
cmpq $0x0, (%rax)
je 0x4a253
movl $0x0, -0x4(%rbp)
leaq 0x1bded(%rip), %rax # 0x66000
movq (%rax), %rax
movslq -0x4(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x4a244
leaq 0x1bdd8(%rip), %rax # 0x66000
movq (%rax), %rax
movl -0x4(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x4(%rbp)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
callq 0x13520
jmp 0x4a20c
leaq 0x1bdb5(%rip), %rax # 0x66000
movq (%rax), %rdi
callq 0x13520
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| release_configuration_dirs:
push rbp
mov rbp, rsp
sub rsp, 10h
lea rax, configuration_dirs
cmp qword ptr [rax], 0
jz short loc_4A253
mov [rbp+var_4], 0
loc_4A20C:
lea rax, configuration_dirs
mov rax, [rax]
movsxd rcx, [rbp+var_4]
cmp qword ptr [rax+rcx*8], 0
jz short loc_4A244
lea rax, configuration_dirs
mov rax, [rax]
mov ecx, [rbp+var_4]
mov edx, ecx
add edx, 1
mov [rbp+var_4], edx
movsxd rcx, ecx
mov rdi, [rax+rcx*8]
call _free
jmp short loc_4A20C
loc_4A244:
lea rax, configuration_dirs
mov rdi, [rax]
call _free
loc_4A253:
add rsp, 10h
pop rbp
retn
| _QWORD *release_configuration_dirs()
{
_QWORD *result; // rax
int v1; // ecx
int i; // [rsp+Ch] [rbp-4h]
result = configuration_dirs;
if ( configuration_dirs[0] )
{
for ( i = 0; *(_QWORD *)(configuration_dirs[0] + 8LL * i); ++i )
{
v1 = i;
free(*(_QWORD *)(configuration_dirs[0] + 8LL * v1));
}
return (_QWORD *)free(configuration_dirs[0]);
}
return result;
}
| release_configuration_dirs:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
LEA RAX,[0x166000]
CMP qword ptr [RAX],0x0
JZ 0x0014a253
MOV dword ptr [RBP + -0x4],0x0
LAB_0014a20c:
LEA RAX,[0x166000]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0x4]
CMP qword ptr [RAX + RCX*0x8],0x0
JZ 0x0014a244
LEA RAX,[0x166000]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x4]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RBP + -0x4],EDX
MOVSXD RCX,ECX
MOV RDI,qword ptr [RAX + RCX*0x8]
CALL 0x00113520
JMP 0x0014a20c
LAB_0014a244:
LEA RAX,[0x166000]
MOV RDI,qword ptr [RAX]
CALL 0x00113520
LAB_0014a253:
ADD RSP,0x10
POP RBP
RET
|
void release_configuration_dirs(void)
{
int4 local_c;
if (configuration_dirs != (void *)0x0) {
local_c = 0;
while (*(long *)((long)configuration_dirs + (long)local_c * 8) != 0) {
free(*(void **)((long)configuration_dirs + (long)local_c * 8));
local_c = local_c + 1;
}
free(configuration_dirs);
}
return;
}
|
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.