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
|
---|---|---|---|---|---|---|---|---|---|---|---|
3,000 | my_strdup | eloqsql/mysys/my_malloc.c | char *my_strdup(PSI_memory_key key, const char *from, myf my_flags)
{
char *ptr;
size_t length= strlen(from)+1;
DBUG_ENTER("my_strdup");
if ((ptr= (char*) my_malloc(key, length, my_flags)))
memcpy(ptr, from, length);
DBUG_RETURN(ptr);
} | O3 | c | my_strdup:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movl %edi, %r12d
movq %rsi, %rdi
callq 0x24170
movq %rax, %r14
incq %r14
movl %r12d, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x300d9
testq %rax, %rax
je 0x303e7
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x24290
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| my_strdup:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r15, rdx
mov rbx, rsi
mov r12d, edi
mov rdi, rsi
call _strlen
mov r14, rax
inc r14
mov edi, r12d
mov rsi, r14
mov rdx, r15
call my_malloc
test rax, rax
jz short loc_303E7
mov rdi, rax
mov rsi, rbx
mov rdx, r14
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp _memcpy
loc_303E7:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long my_strdup(unsigned int a1, long long a2, int a3)
{
long long v4; // rax
long long result; // rax
v4 = strlen(a2);
result = my_malloc(a1, v4 + 1, a3);
if ( result )
return memcpy(result, a2);
return result;
}
| my_strdup:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15,RDX
MOV RBX,RSI
MOV R12D,EDI
MOV RDI,RSI
CALL 0x00124170
MOV R14,RAX
INC R14
MOV EDI,R12D
MOV RSI,R14
MOV RDX,R15
CALL 0x001300d9
TEST RAX,RAX
JZ 0x001303e7
MOV RDI,RAX
MOV RSI,RBX
MOV RDX,R14
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x00124290
LAB_001303e7:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void my_strdup(int4 param_1,char *param_2,int8 param_3)
{
size_t sVar1;
void *__dest;
sVar1 = strlen(param_2);
__dest = (void *)my_malloc(param_1,sVar1 + 1,param_3);
if (__dest != (void *)0x0) {
memcpy(__dest,param_2,sVar1 + 1);
return;
}
return;
}
|
|
3,001 | JS_ExecutePendingJob | bluesky950520[P]quickjs/quickjs.c | int JS_ExecutePendingJob(JSRuntime *rt, JSContext **pctx)
{
JSContext *ctx;
JSJobEntry *e;
JSValue res;
int i, ret;
if (list_empty(&rt->job_list)) {
*pctx = NULL;
return 0;
}
/* get the first pending job and execute it */
e = list_entry(rt->job_list.next, JSJobEntry, link);
list_del(&e->link);
ctx = e->ctx;
res = e->job_func(e->ctx, e->argc, e->argv);
for(i = 0; i < e->argc; i++)
JS_FreeValue(ctx, e->argv[i]);
if (JS_IsException(res))
ret = -1;
else
ret = 1;
JS_FreeValue(ctx, res);
js_free(ctx, e);
*pctx = ctx;
return ret;
} | O0 | c | JS_ExecutePendingJob:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq 0x48(%rsp), %rdi
addq $0x130, %rdi # imm = 0x130
callq 0x23ab0
cmpl $0x0, %eax
je 0x23b0d
movq 0x40(%rsp), %rax
movq $0x0, (%rax)
movl $0x0, 0x54(%rsp)
jmp 0x23c20
movq 0x48(%rsp), %rax
movq 0x138(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rdi
callq 0x23c30
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x10(%rcx), %rdi
movq 0x30(%rsp), %rcx
movl 0x20(%rcx), %esi
movq 0x30(%rsp), %rdx
addq $0x28, %rdx
callq *%rax
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x28(%rsp)
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
movq 0x30(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x23bc2
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rax
addq $0x28, %rax
movslq 0x1c(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x23c90
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x23b81
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x23be0
movl $0xffffffff, 0x18(%rsp) # imm = 0xFFFFFFFF
jmp 0x23be8
movl $0x1, 0x18(%rsp)
movq 0x38(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x23c90
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x21db0
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl 0x18(%rsp), %eax
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax)
| JS_ExecutePendingJob:
sub rsp, 58h
mov [rsp+58h+var_10], rdi
mov [rsp+58h+var_18], rsi
mov rdi, [rsp+58h+var_10]
add rdi, 130h
call list_empty_0
cmp eax, 0
jz short loc_23B0D
mov rax, [rsp+58h+var_18]
mov qword ptr [rax], 0
mov [rsp+58h+var_4], 0
jmp loc_23C20
loc_23B0D:
mov rax, [rsp+58h+var_10]
mov rax, [rax+138h]
mov [rsp+58h+var_28], rax
mov rdi, [rsp+58h+var_28]
call list_del_0
mov rax, [rsp+58h+var_28]
mov rax, [rax+10h]
mov [rsp+58h+var_20], rax
mov rax, [rsp+58h+var_28]
mov rax, [rax+18h]
mov rcx, [rsp+58h+var_28]
mov rdi, [rcx+10h]
mov rcx, [rsp+58h+var_28]
mov esi, [rcx+20h]
mov rdx, [rsp+58h+var_28]
add rdx, 28h ; '('
call rax
mov [rsp+58h+var_50], rax
mov [rsp+58h+var_48], rdx
mov rax, [rsp+58h+var_50]
mov [rsp+58h+var_38], rax
mov rax, [rsp+58h+var_48]
mov [rsp+58h+var_30], rax
mov [rsp+58h+var_3C], 0
loc_23B81:
mov eax, [rsp+58h+var_3C]
mov rcx, [rsp+58h+var_28]
cmp eax, [rcx+20h]
jge short loc_23BC2
mov rdi, [rsp+58h+var_20]
mov rax, [rsp+58h+var_28]
add rax, 28h ; '('
movsxd rcx, [rsp+58h+var_3C]
shl rcx, 4
add rax, rcx
mov rsi, [rax]
mov rdx, [rax+8]
call JS_FreeValue
mov eax, [rsp+58h+var_3C]
add eax, 1
mov [rsp+58h+var_3C], eax
jmp short loc_23B81
loc_23BC2:
mov rdi, [rsp+58h+var_38]
mov rsi, [rsp+58h+var_30]
call JS_IsException_1
cmp eax, 0
jz short loc_23BE0
mov [rsp+58h+var_40], 0FFFFFFFFh
jmp short loc_23BE8
loc_23BE0:
mov [rsp+58h+var_40], 1
loc_23BE8:
mov rdi, [rsp+58h+var_20]
mov rsi, [rsp+58h+var_38]
mov rdx, [rsp+58h+var_30]
call JS_FreeValue
mov rdi, [rsp+58h+var_20]
mov rsi, [rsp+58h+var_28]
call js_free
mov rcx, [rsp+58h+var_20]
mov rax, [rsp+58h+var_18]
mov [rax], rcx
mov eax, [rsp+58h+var_40]
mov [rsp+58h+var_4], eax
loc_23C20:
mov eax, [rsp+58h+var_4]
add rsp, 58h
retn
| long long JS_ExecutePendingJob(long long a1, long long *a2)
{
long long v2; // rdx
long long v4; // [rsp+8h] [rbp-50h]
unsigned int v5; // [rsp+18h] [rbp-40h]
int i; // [rsp+1Ch] [rbp-3Ch]
long long v7; // [rsp+28h] [rbp-30h]
long long v8; // [rsp+30h] [rbp-28h]
long long v9; // [rsp+38h] [rbp-20h]
if ( list_empty_0(a1 + 304) )
{
*a2 = 0LL;
return 0;
}
else
{
v8 = *(_QWORD *)(a1 + 312);
list_del_0(v8);
v9 = *(_QWORD *)(v8 + 16);
v4 = (*(long long ( **)(long long, _QWORD, long long))(v8 + 24))(v9, *(unsigned int *)(v8 + 32), v8 + 40);
v7 = v2;
for ( i = 0; i < *(_DWORD *)(v8 + 32); ++i )
JS_FreeValue(v9, *(_QWORD *)(16LL * i + v8 + 40), *(_QWORD *)(16LL * i + v8 + 40 + 8));
if ( (unsigned int)JS_IsException_1(v4, v7) )
v5 = -1;
else
v5 = 1;
JS_FreeValue(v9, v4, v7);
js_free(v9, v8);
*a2 = v9;
return v5;
}
}
| JS_ExecutePendingJob:
SUB RSP,0x58
MOV qword ptr [RSP + 0x48],RDI
MOV qword ptr [RSP + 0x40],RSI
MOV RDI,qword ptr [RSP + 0x48]
ADD RDI,0x130
CALL 0x00123ab0
CMP EAX,0x0
JZ 0x00123b0d
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RAX],0x0
MOV dword ptr [RSP + 0x54],0x0
JMP 0x00123c20
LAB_00123b0d:
MOV RAX,qword ptr [RSP + 0x48]
MOV RAX,qword ptr [RAX + 0x138]
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x00123c30
MOV RAX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RSP + 0x30]
MOV RDI,qword ptr [RCX + 0x10]
MOV RCX,qword ptr [RSP + 0x30]
MOV ESI,dword ptr [RCX + 0x20]
MOV RDX,qword ptr [RSP + 0x30]
ADD RDX,0x28
CALL RAX
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x28],RAX
MOV dword ptr [RSP + 0x1c],0x0
LAB_00123b81:
MOV EAX,dword ptr [RSP + 0x1c]
MOV RCX,qword ptr [RSP + 0x30]
CMP EAX,dword ptr [RCX + 0x20]
JGE 0x00123bc2
MOV RDI,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RSP + 0x30]
ADD RAX,0x28
MOVSXD RCX,dword ptr [RSP + 0x1c]
SHL RCX,0x4
ADD RAX,RCX
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00123c90
MOV EAX,dword ptr [RSP + 0x1c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x1c],EAX
JMP 0x00123b81
LAB_00123bc2:
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x28]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x00123be0
MOV dword ptr [RSP + 0x18],0xffffffff
JMP 0x00123be8
LAB_00123be0:
MOV dword ptr [RSP + 0x18],0x1
LAB_00123be8:
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x00121db0
MOV RCX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RAX],RCX
MOV EAX,dword ptr [RSP + 0x18]
MOV dword ptr [RSP + 0x54],EAX
LAB_00123c20:
MOV EAX,dword ptr [RSP + 0x54]
ADD RSP,0x58
RET
|
int4 JS_ExecutePendingJob(long param_1,int8 *param_2)
{
long lVar1;
int8 uVar2;
int iVar3;
int8 *puVar4;
int1 auVar5 [16];
int4 local_40;
int local_3c;
int4 local_4;
iVar3 = list_empty(param_1 + 0x130);
if (iVar3 == 0) {
lVar1 = *(long *)(param_1 + 0x138);
list_del(lVar1);
uVar2 = *(int8 *)(lVar1 + 0x10);
auVar5 = (**(code **)(lVar1 + 0x18))
(*(int8 *)(lVar1 + 0x10),*(int4 *)(lVar1 + 0x20),lVar1 + 0x28);
for (local_3c = 0; local_3c < *(int *)(lVar1 + 0x20); local_3c = local_3c + 1) {
puVar4 = (int8 *)(lVar1 + 0x28 + (long)local_3c * 0x10);
JS_FreeValue(uVar2,*puVar4,puVar4[1]);
}
iVar3 = JS_IsException(auVar5._0_8_,auVar5._8_8_);
if (iVar3 == 0) {
local_40 = 1;
}
else {
local_40 = 0xffffffff;
}
JS_FreeValue(uVar2,auVar5._0_8_,auVar5._8_8_);
js_free(uVar2,lVar1);
*param_2 = uVar2;
local_4 = local_40;
}
else {
*param_2 = 0;
local_4 = 0;
}
return local_4;
}
|
|
3,002 | JS_ExecutePendingJob | bluesky950520[P]quickjs/quickjs.c | int JS_ExecutePendingJob(JSRuntime *rt, JSContext **pctx)
{
JSContext *ctx;
JSJobEntry *e;
JSValue res;
int i, ret;
if (list_empty(&rt->job_list)) {
*pctx = NULL;
return 0;
}
/* get the first pending job and execute it */
e = list_entry(rt->job_list.next, JSJobEntry, link);
list_del(&e->link);
ctx = e->ctx;
res = e->job_func(e->ctx, e->argc, e->argv);
for(i = 0; i < e->argc; i++)
JS_FreeValue(ctx, e->argv[i]);
if (JS_IsException(res))
ret = -1;
else
ret = 1;
JS_FreeValue(ctx, res);
js_free(ctx, e);
*pctx = ctx;
return ret;
} | O1 | c | JS_ExecutePendingJob:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0x130(%rdi), %rax
cmpq %rax, 0x138(%rdi)
je 0x1d89a
movq 0x138(%rdi), %r15
movq (%r15), %rax
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq 0x10(%r15), %r14
movl 0x20(%r15), %esi
leaq 0x28(%r15), %rdx
movq %r14, %rdi
callq *0x18(%r15)
movq %rax, (%rsp)
movq %rdx, %r13
cmpl $0x0, 0x20(%r15)
jle 0x1d86d
leaq 0x30(%r15), %rbp
xorl %r12d, %r12d
movq -0x8(%rbp), %rsi
movq (%rbp), %rdx
movq 0x18(%r14), %rdi
callq 0x1d8c6
incq %r12
movslq 0x20(%r15), %rax
addq $0x10, %rbp
cmpq %rax, %r12
jl 0x1d84c
xorl %eax, %eax
cmpl $0x6, %r13d
setne %al
leal -0x1(,%rax,2), %ebp
movq 0x18(%r14), %rdi
movq (%rsp), %rsi
movq %r13, %rdx
callq 0x1d8c6
movq %r14, %rdi
movq %r15, %rsi
callq 0x1cb99
jmp 0x1d89f
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %r14, (%rbx)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| JS_ExecutePendingJob:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
lea rax, [rdi+130h]
cmp [rdi+138h], rax
jz loc_1D89A
mov r15, [rdi+138h]
mov rax, [r15]
mov rcx, [r15+8]
mov [rax+8], rcx
mov [rcx], rax
xorps xmm0, xmm0
movups xmmword ptr [r15], xmm0
mov r14, [r15+10h]
mov esi, [r15+20h]
lea rdx, [r15+28h]
mov rdi, r14
call qword ptr [r15+18h]
mov [rsp+38h+var_38], rax
mov r13, rdx
cmp dword ptr [r15+20h], 0
jle short loc_1D86D
lea rbp, [r15+30h]
xor r12d, r12d
loc_1D84C:
mov rsi, [rbp-8]
mov rdx, [rbp+0]
mov rdi, [r14+18h]
call JS_FreeValueRT
inc r12
movsxd rax, dword ptr [r15+20h]
add rbp, 10h
cmp r12, rax
jl short loc_1D84C
loc_1D86D:
xor eax, eax
cmp r13d, 6
setnz al
lea ebp, ds:0FFFFFFFFFFFFFFFFh[rax*2]
mov rdi, [r14+18h]
mov rsi, [rsp+38h+var_38]
mov rdx, r13
call JS_FreeValueRT
mov rdi, r14
mov rsi, r15
call js_free
jmp short loc_1D89F
loc_1D89A:
xor r14d, r14d
xor ebp, ebp
loc_1D89F:
mov [rbx], r14
mov eax, ebp
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long JS_ExecutePendingJob(long long a1, long long *a2)
{
long long v2; // r15
long long v3; // rax
_QWORD *v4; // rcx
long long v5; // r14
int v6; // edx
int v7; // r13d
long long v8; // rbp
long long v9; // r12
unsigned int v10; // ebp
long long v12; // [rsp+0h] [rbp-38h]
if ( *(_QWORD *)(a1 + 312) == a1 + 304 )
{
v5 = 0LL;
v10 = 0;
}
else
{
v2 = *(_QWORD *)(a1 + 312);
v3 = *(_QWORD *)v2;
v4 = *(_QWORD **)(v2 + 8);
*(_QWORD *)(v3 + 8) = v4;
*v4 = v3;
*(_OWORD *)v2 = 0LL;
v5 = *(_QWORD *)(v2 + 16);
v12 = (*(long long ( **)(long long, _QWORD, long long))(v2 + 24))(v5, *(unsigned int *)(v2 + 32), v2 + 40);
v7 = v6;
if ( *(int *)(v2 + 32) > 0 )
{
v8 = v2 + 48;
v9 = 0LL;
do
{
JS_FreeValueRT(*(_QWORD *)(v5 + 24), *(_QWORD *)(v8 - 8));
++v9;
v8 += 16LL;
}
while ( v9 < *(int *)(v2 + 32) );
}
v10 = 2 * (v7 != 6) - 1;
JS_FreeValueRT(*(_QWORD *)(v5 + 24), v12);
js_free(v5, v2);
}
*a2 = v5;
return v10;
}
| |||
3,003 | JS_ExecutePendingJob | bluesky950520[P]quickjs/quickjs.c | int JS_ExecutePendingJob(JSRuntime *rt, JSContext **pctx)
{
JSContext *ctx;
JSJobEntry *e;
JSValue res;
int i, ret;
if (list_empty(&rt->job_list)) {
*pctx = NULL;
return 0;
}
/* get the first pending job and execute it */
e = list_entry(rt->job_list.next, JSJobEntry, link);
list_del(&e->link);
ctx = e->ctx;
res = e->job_func(e->ctx, e->argc, e->argv);
for(i = 0; i < e->argc; i++)
JS_FreeValue(ctx, e->argv[i]);
if (JS_IsException(res))
ret = -1;
else
ret = 1;
JS_FreeValue(ctx, res);
js_free(ctx, e);
*pctx = ctx;
return ret;
} | O2 | c | JS_ExecutePendingJob:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x138(%rdi), %r15
addq $0x130, %rdi # imm = 0x130
cmpq %rdi, %r15
je 0x18005
movq %rsi, (%rsp)
movq (%r15), %rax
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq 0x10(%r15), %r14
movl 0x20(%r15), %esi
leaq 0x28(%r15), %rdx
movq %r14, %rdi
callq *0x18(%r15)
movq %rax, %r13
movq %rdx, %r12
leaq 0x30(%r15), %rbp
xorl %ebx, %ebx
movslq 0x20(%r15), %rax
cmpq %rax, %rbx
jge 0x17fd6
movq -0x8(%rbp), %rsi
movq (%rbp), %rdx
movq %r14, %rdi
callq 0x1801e
incq %rbx
addq $0x10, %rbp
jmp 0x17fb4
xorl %eax, %eax
cmpl $0x6, %r12d
setne %al
leal -0x1(,%rax,2), %ebp
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1801e
movq %r14, %rdi
movq %r15, %rsi
callq 0x1726e
movq (%rsp), %rsi
jmp 0x1800a
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %r14, (%rsi)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| JS_ExecutePendingJob:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, [rdi+138h]
add rdi, 130h
cmp r15, rdi
jz loc_18005
mov [rsp+38h+var_38], rsi
mov rax, [r15]
mov rcx, [r15+8]
mov [rax+8], rcx
mov [rcx], rax
xorps xmm0, xmm0
movups xmmword ptr [r15], xmm0
mov r14, [r15+10h]
mov esi, [r15+20h]
lea rdx, [r15+28h]
mov rdi, r14
call qword ptr [r15+18h]
mov r13, rax
mov r12, rdx
lea rbp, [r15+30h]
xor ebx, ebx
loc_17FB4:
movsxd rax, dword ptr [r15+20h]
cmp rbx, rax
jge short loc_17FD6
mov rsi, [rbp-8]
mov rdx, [rbp+0]
mov rdi, r14
call JS_FreeValue
inc rbx
add rbp, 10h
jmp short loc_17FB4
loc_17FD6:
xor eax, eax
cmp r12d, 6
setnz al
lea ebp, ds:0FFFFFFFFFFFFFFFFh[rax*2]
mov rdi, r14
mov rsi, r13
mov rdx, r12
call JS_FreeValue
mov rdi, r14
mov rsi, r15
call js_free
mov rsi, [rsp+38h+var_38]
jmp short loc_1800A
loc_18005:
xor r14d, r14d
xor ebp, ebp
loc_1800A:
mov [rsi], r14
mov eax, ebp
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long JS_ExecutePendingJob(long long a1, long long *a2)
{
long long v2; // r15
long long v3; // rax
_QWORD *v4; // rcx
long long v5; // r14
long long v6; // r13
long long v7; // rdx
long long v8; // r12
_QWORD *v9; // rbp
long long i; // rbx
unsigned int v11; // ebp
v2 = *(_QWORD *)(a1 + 312);
if ( v2 == a1 + 304 )
{
v5 = 0LL;
v11 = 0;
}
else
{
v3 = *(_QWORD *)v2;
v4 = *(_QWORD **)(v2 + 8);
*(_QWORD *)(v3 + 8) = v4;
*v4 = v3;
*(_OWORD *)v2 = 0LL;
v5 = *(_QWORD *)(v2 + 16);
v6 = (*(long long ( **)(long long, _QWORD, long long))(v2 + 24))(v5, *(unsigned int *)(v2 + 32), v2 + 40);
v8 = v7;
v9 = (_QWORD *)(v2 + 48);
for ( i = 0LL; i < *(int *)(v2 + 32); ++i )
{
JS_FreeValue(v5, *(v9 - 1), *v9);
v9 += 2;
}
v11 = 2 * ((_DWORD)v8 != 6) - 1;
JS_FreeValue(v5, v6, v8);
js_free(v5, v2);
}
*a2 = v5;
return v11;
}
| JS_ExecutePendingJob:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,qword ptr [RDI + 0x138]
ADD RDI,0x130
CMP R15,RDI
JZ 0x00118005
MOV qword ptr [RSP],RSI
MOV RAX,qword ptr [R15]
MOV RCX,qword ptr [R15 + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RCX],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15],XMM0
MOV R14,qword ptr [R15 + 0x10]
MOV ESI,dword ptr [R15 + 0x20]
LEA RDX,[R15 + 0x28]
MOV RDI,R14
CALL qword ptr [R15 + 0x18]
MOV R13,RAX
MOV R12,RDX
LEA RBP,[R15 + 0x30]
XOR EBX,EBX
LAB_00117fb4:
MOVSXD RAX,dword ptr [R15 + 0x20]
CMP RBX,RAX
JGE 0x00117fd6
MOV RSI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP]
MOV RDI,R14
CALL 0x0011801e
INC RBX
ADD RBP,0x10
JMP 0x00117fb4
LAB_00117fd6:
XOR EAX,EAX
CMP R12D,0x6
SETNZ AL
LEA EBP,[-0x1 + RAX*0x2]
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
CALL 0x0011801e
MOV RDI,R14
MOV RSI,R15
CALL 0x0011726e
MOV RSI,qword ptr [RSP]
JMP 0x0011800a
LAB_00118005:
XOR R14D,R14D
XOR EBP,EBP
LAB_0011800a:
MOV qword ptr [RSI],R14
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int JS_ExecutePendingJob(long param_1,long *param_2)
{
long *plVar1;
long lVar2;
int iVar3;
long *plVar4;
long lVar5;
int1 auVar6 [16];
plVar1 = *(long **)(param_1 + 0x138);
if (plVar1 == (long *)(param_1 + 0x130)) {
lVar5 = 0;
iVar3 = 0;
}
else {
lVar5 = *plVar1;
plVar4 = (long *)plVar1[1];
*(long **)(lVar5 + 8) = plVar4;
*plVar4 = lVar5;
*plVar1 = 0;
plVar1[1] = 0;
lVar5 = plVar1[2];
auVar6 = (*(code *)plVar1[3])(lVar5,(int)plVar1[4],plVar1 + 5);
plVar4 = plVar1 + 6;
for (lVar2 = 0; lVar2 < (int)plVar1[4]; lVar2 = lVar2 + 1) {
JS_FreeValue(lVar5,plVar4[-1],*plVar4);
plVar4 = plVar4 + 2;
}
iVar3 = (uint)(auVar6._8_4_ != 6) * 2 + -1;
JS_FreeValue(lVar5,auVar6._0_8_,auVar6._8_8_);
js_free(lVar5,plVar1);
}
*param_2 = lVar5;
return iVar3;
}
|
|
3,004 | JS_ExecutePendingJob | bluesky950520[P]quickjs/quickjs.c | int JS_ExecutePendingJob(JSRuntime *rt, JSContext **pctx)
{
JSContext *ctx;
JSJobEntry *e;
JSValue res;
int i, ret;
if (list_empty(&rt->job_list)) {
*pctx = NULL;
return 0;
}
/* get the first pending job and execute it */
e = list_entry(rt->job_list.next, JSJobEntry, link);
list_del(&e->link);
ctx = e->ctx;
res = e->job_func(e->ctx, e->argc, e->argv);
for(i = 0; i < e->argc; i++)
JS_FreeValue(ctx, e->argv[i]);
if (JS_IsException(res))
ret = -1;
else
ret = 1;
JS_FreeValue(ctx, res);
js_free(ctx, e);
*pctx = ctx;
return ret;
} | O3 | c | JS_ExecutePendingJob:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x138(%rdi), %r15
addq $0x130, %rdi # imm = 0x130
cmpq %rdi, %r15
je 0x1e1bc
movq %rsi, (%rsp)
movq (%r15), %rax
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq 0x10(%r15), %r14
movl 0x20(%r15), %esi
leaq 0x28(%r15), %rdx
movq %r14, %rdi
callq *0x18(%r15)
movq %rax, %r12
movq %rdx, %r13
cmpl $0x0, 0x20(%r15)
jle 0x1e176
leaq 0x30(%r15), %rbp
xorl %ebx, %ebx
movq (%rbp), %rdx
cmpl $-0x9, %edx
jb 0x1e166
movq -0x8(%rbp), %rsi
movq 0x18(%r14), %rdi
movl (%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%rsi)
cmpl $0x1, %eax
jg 0x1e166
callq 0x219cc
incq %rbx
movslq 0x20(%r15), %rax
addq $0x10, %rbp
cmpq %rax, %rbx
jl 0x1e144
xorl %ebx, %ebx
cmpl $0x6, %r13d
setne %bl
cmpl $-0x9, %r13d
jb 0x1e1a4
movq 0x18(%r14), %rdi
movl (%r12), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r12)
cmpl $0x1, %eax
jg 0x1e1a4
movq %r12, %rsi
movq %r13, %rdx
callq 0x219cc
leal -0x1(,%rbx,2), %ebp
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d481
movq (%rsp), %rsi
jmp 0x1e1c1
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %r14, (%rsi)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| JS_ExecutePendingJob:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, [rdi+138h]
add rdi, 130h
cmp r15, rdi
jz loc_1E1BC
mov [rsp+38h+var_38], rsi
mov rax, [r15]
mov rcx, [r15+8]
mov [rax+8], rcx
mov [rcx], rax
xorps xmm0, xmm0
movups xmmword ptr [r15], xmm0
mov r14, [r15+10h]
mov esi, [r15+20h]
lea rdx, [r15+28h]
mov rdi, r14
call qword ptr [r15+18h]
mov r12, rax
mov r13, rdx
cmp dword ptr [r15+20h], 0
jle short loc_1E176
lea rbp, [r15+30h]
xor ebx, ebx
loc_1E144:
mov rdx, [rbp+0]
cmp edx, 0FFFFFFF7h
jb short loc_1E166
mov rsi, [rbp-8]
mov rdi, [r14+18h]
mov eax, [rsi]
lea ecx, [rax-1]
mov [rsi], ecx
cmp eax, 1
jg short loc_1E166
call js_free_value_rt
loc_1E166:
inc rbx
movsxd rax, dword ptr [r15+20h]
add rbp, 10h
cmp rbx, rax
jl short loc_1E144
loc_1E176:
xor ebx, ebx
cmp r13d, 6
setnz bl
cmp r13d, 0FFFFFFF7h
jb short loc_1E1A4
mov rdi, [r14+18h]
mov eax, [r12]
lea ecx, [rax-1]
mov [r12], ecx
cmp eax, 1
jg short loc_1E1A4
mov rsi, r12
mov rdx, r13
call js_free_value_rt
loc_1E1A4:
lea ebp, ds:0FFFFFFFFFFFFFFFFh[rbx*2]
mov rdi, r14
mov rsi, r15
call js_free
mov rsi, [rsp+38h+var_38]
jmp short loc_1E1C1
loc_1E1BC:
xor r14d, r14d
xor ebp, ebp
loc_1E1C1:
mov [rsi], r14
mov eax, ebp
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long JS_ExecutePendingJob(long long a1, long long *a2)
{
long long v2; // r15
long long v3; // rax
_QWORD *v4; // rcx
long long v5; // r14
_DWORD *v6; // r12
unsigned int v7; // edx
unsigned int v8; // r13d
_QWORD *v9; // rbp
long long v10; // rbx
_DWORD *v11; // rsi
long long v12; // rdi
int v13; // eax
long long v14; // rdi
int v15; // eax
unsigned int v16; // ebp
long long *v18; // [rsp+0h] [rbp-38h]
v2 = *(_QWORD *)(a1 + 312);
if ( v2 == a1 + 304 )
{
v5 = 0LL;
v16 = 0;
}
else
{
v18 = a2;
v3 = *(_QWORD *)v2;
v4 = *(_QWORD **)(v2 + 8);
*(_QWORD *)(v3 + 8) = v4;
*v4 = v3;
*(_OWORD *)v2 = 0LL;
v5 = *(_QWORD *)(v2 + 16);
v6 = (_DWORD *)(*(long long ( **)(long long, _QWORD, long long))(v2 + 24))(
v5,
*(unsigned int *)(v2 + 32),
v2 + 40);
v8 = v7;
if ( *(int *)(v2 + 32) > 0 )
{
v9 = (_QWORD *)(v2 + 48);
v10 = 0LL;
do
{
if ( (unsigned int)*v9 >= 0xFFFFFFF7 )
{
v11 = (_DWORD *)*(v9 - 1);
v12 = *(_QWORD *)(v5 + 24);
v13 = (*v11)--;
if ( v13 <= 1 )
js_free_value_rt(v12, v11);
}
++v10;
v9 += 2;
}
while ( v10 < *(int *)(v2 + 32) );
}
if ( v8 >= 0xFFFFFFF7 )
{
v14 = *(_QWORD *)(v5 + 24);
v15 = (*v6)--;
if ( v15 <= 1 )
js_free_value_rt(v14, v6);
}
v16 = 2 * (v8 != 6) - 1;
js_free(v5, v2);
a2 = v18;
}
*a2 = v5;
return v16;
}
| JS_ExecutePendingJob:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,qword ptr [RDI + 0x138]
ADD RDI,0x130
CMP R15,RDI
JZ 0x0011e1bc
MOV qword ptr [RSP],RSI
MOV RAX,qword ptr [R15]
MOV RCX,qword ptr [R15 + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RCX],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15],XMM0
MOV R14,qword ptr [R15 + 0x10]
MOV ESI,dword ptr [R15 + 0x20]
LEA RDX,[R15 + 0x28]
MOV RDI,R14
CALL qword ptr [R15 + 0x18]
MOV R12,RAX
MOV R13,RDX
CMP dword ptr [R15 + 0x20],0x0
JLE 0x0011e176
LEA RBP,[R15 + 0x30]
XOR EBX,EBX
LAB_0011e144:
MOV RDX,qword ptr [RBP]
CMP EDX,-0x9
JC 0x0011e166
MOV RSI,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [R14 + 0x18]
MOV EAX,dword ptr [RSI]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RSI],ECX
CMP EAX,0x1
JG 0x0011e166
CALL 0x001219cc
LAB_0011e166:
INC RBX
MOVSXD RAX,dword ptr [R15 + 0x20]
ADD RBP,0x10
CMP RBX,RAX
JL 0x0011e144
LAB_0011e176:
XOR EBX,EBX
CMP R13D,0x6
SETNZ BL
CMP R13D,-0x9
JC 0x0011e1a4
MOV RDI,qword ptr [R14 + 0x18]
MOV EAX,dword ptr [R12]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R12],ECX
CMP EAX,0x1
JG 0x0011e1a4
MOV RSI,R12
MOV RDX,R13
CALL 0x001219cc
LAB_0011e1a4:
LEA EBP,[-0x1 + RBX*0x2]
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d481
MOV RSI,qword ptr [RSP]
JMP 0x0011e1c1
LAB_0011e1bc:
XOR R14D,R14D
XOR EBP,EBP
LAB_0011e1c1:
MOV qword ptr [RSI],R14
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int JS_ExecutePendingJob(long param_1,long *param_2)
{
long *plVar1;
int8 uVar2;
int *piVar3;
long lVar4;
int iVar5;
long *plVar6;
long lVar7;
int1 auVar8 [16];
plVar1 = *(long **)(param_1 + 0x138);
if (plVar1 == (long *)(param_1 + 0x130)) {
lVar7 = 0;
iVar5 = 0;
}
else {
lVar7 = *plVar1;
plVar6 = (long *)plVar1[1];
*(long **)(lVar7 + 8) = plVar6;
*plVar6 = lVar7;
*plVar1 = 0;
plVar1[1] = 0;
lVar7 = plVar1[2];
auVar8 = (*(code *)plVar1[3])(lVar7,(int)plVar1[4],plVar1 + 5);
piVar3 = auVar8._0_8_;
if (0 < (int)plVar1[4]) {
plVar6 = plVar1 + 6;
lVar4 = 0;
do {
if (0xfffffff6 < (uint)*plVar6) {
uVar2 = *(int8 *)(lVar7 + 0x18);
iVar5 = *(int *)plVar6[-1];
*(int *)plVar6[-1] = iVar5 + -1;
if (iVar5 < 2) {
js_free_value_rt(uVar2);
}
}
lVar4 = lVar4 + 1;
plVar6 = plVar6 + 2;
} while (lVar4 < (int)plVar1[4]);
}
if (0xfffffff6 < auVar8._8_4_) {
uVar2 = *(int8 *)(lVar7 + 0x18);
iVar5 = *piVar3;
*piVar3 = iVar5 + -1;
if (iVar5 < 2) {
js_free_value_rt(uVar2,piVar3,auVar8._8_8_);
}
}
iVar5 = (uint)(auVar8._8_4_ != 6) * 2 + -1;
js_free(lVar7,plVar1);
}
*param_2 = lVar7;
return iVar5;
}
|
|
3,005 | httplib::Server::apply_ranges(httplib::Request const&, httplib::Response&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) const | monkey531[P]llama/examples/server/httplib.h | inline void Server::apply_ranges(const Request &req, Response &res,
std::string &content_type,
std::string &boundary) const {
if (req.ranges.size() > 1 && res.status == StatusCode::PartialContent_206) {
auto it = res.headers.find("Content-Type");
if (it != res.headers.end()) {
content_type = it->second;
res.headers.erase(it);
}
boundary = detail::make_multipart_data_boundary();
res.set_header("Content-Type",
"multipart/byteranges; boundary=" + boundary);
}
auto type = detail::encoding_type(req, res);
if (res.body.empty()) {
if (res.content_length_ > 0) {
size_t length = 0;
if (req.ranges.empty() || res.status != StatusCode::PartialContent_206) {
length = res.content_length_;
} else if (req.ranges.size() == 1) {
auto offset_and_length = detail::get_range_offset_and_length(
req.ranges[0], res.content_length_);
length = offset_and_length.second;
auto content_range = detail::make_content_range_header_field(
offset_and_length, res.content_length_);
res.set_header("Content-Range", content_range);
} else {
length = detail::get_multipart_ranges_data_length(
req, boundary, content_type, res.content_length_);
}
res.set_header("Content-Length", std::to_string(length));
} else {
if (res.content_provider_) {
if (res.is_chunked_content_provider_) {
res.set_header("Transfer-Encoding", "chunked");
if (type == detail::EncodingType::Gzip) {
res.set_header("Content-Encoding", "gzip");
} else if (type == detail::EncodingType::Brotli) {
res.set_header("Content-Encoding", "br");
}
}
}
}
} else {
if (req.ranges.empty() || res.status != StatusCode::PartialContent_206) {
;
} else if (req.ranges.size() == 1) {
auto offset_and_length =
detail::get_range_offset_and_length(req.ranges[0], res.body.size());
auto offset = offset_and_length.first;
auto length = offset_and_length.second;
auto content_range = detail::make_content_range_header_field(
offset_and_length, res.body.size());
res.set_header("Content-Range", content_range);
assert(offset + length <= res.body.size());
res.body = res.body.substr(offset, length);
} else {
std::string data;
detail::make_multipart_ranges_data(req, res, boundary, content_type,
res.body.size(), data);
res.body.swap(data);
}
if (type != detail::EncodingType::None) {
std::unique_ptr<detail::compressor> compressor;
std::string content_encoding;
if (type == detail::EncodingType::Gzip) {
#ifdef CPPHTTPLIB_ZLIB_SUPPORT
compressor = detail::make_unique<detail::gzip_compressor>();
content_encoding = "gzip";
#endif
} else if (type == detail::EncodingType::Brotli) {
#ifdef CPPHTTPLIB_BROTLI_SUPPORT
compressor = detail::make_unique<detail::brotli_compressor>();
content_encoding = "br";
#endif
}
if (compressor) {
std::string compressed;
if (compressor->compress(res.body.data(), res.body.size(), true,
[&](const char *data, size_t data_len) {
compressed.append(data, data_len);
return true;
})) {
res.body.swap(compressed);
res.set_header("Content-Encoding", content_encoding);
}
}
}
auto length = std::to_string(res.body.size());
res.set_header("Content-Length", length);
}
} | O2 | c | httplib::Server::apply_ranges(httplib::Request const&, httplib::Response&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, %r15
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r12
movq 0x190(%rsi), %rax
subq 0x188(%rsi), %rax
cmpq $0x11, %rax
jb 0x5ab7c
cmpl $0xce, 0x20(%rbx)
jne 0x5ab7c
leaq 0x98516(%rip), %rsi # 0xf2fd6
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x3bddc
leaq 0x48(%rbx), %r13
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
callq 0x5b422
movq %rax, %rbp
leaq 0x8(%rsp), %rdi
callq 0x29678
testq %rbp, %rbp
je 0x5ab0c
movq %rbp, %rsi
addq $0x28, %rsi
movq %r14, %rdi
callq 0x28600
movq %r13, %rdi
movq %rbp, %rsi
callq 0x5b464
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x5b1a3
movq %r15, %rdi
movq %r13, %rsi
callq 0x28d80
movq %r13, %rdi
callq 0x29678
leaq 0x984a3(%rip), %rsi # 0xf2fd6
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x3bddc
leaq 0x984c7(%rip), %rsi # 0xf3010
leaq 0x28(%rsp), %rdi
movq %r15, %rdx
callq 0x41780
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x58afa
leaq 0x28(%rsp), %rdi
callq 0x29678
leaq 0x8(%rsp), %rdi
callq 0x29678
movq %r12, %rdi
movq %rbx, %rsi
callq 0x5b1f9
movl %eax, %ebp
movq 0x88(%rbx), %r8
testq %r8, %r8
je 0x5ac60
movq 0x188(%r12), %rax
movq 0x190(%r12), %rcx
cmpq %rcx, %rax
je 0x5ad49
cmpl $0xce, 0x20(%rbx)
jne 0x5ad49
leaq 0x80(%rbx), %r13
subq %rax, %rcx
cmpq $0x10, %rcx
jne 0x5ad0a
movq (%rax), %r14
movq 0x8(%rax), %r15
subq %r14, %r15
incq %r15
leaq 0x48(%rsp), %rsi
movq %r14, (%rsi)
movq %r15, 0x8(%rsi)
leaq 0x8(%rsp), %rdi
movq %r8, %rdx
callq 0x5b2dc
leaq 0x98430(%rip), %rsi # 0xf3030
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3bddc
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x58afa
leaq 0x28(%rsp), %rdi
callq 0x29678
leaq 0x28(%rsp), %rdi
movq %r13, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x28bb0
leaq 0x28(%rsp), %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x28d80
movq %r14, %rdi
callq 0x29678
leaq 0x8(%rsp), %rdi
jmp 0x5ad44
movq 0xc0(%rbx), %rcx
testq %rcx, %rcx
je 0x5ada6
movq 0x188(%r12), %rax
movq 0x190(%r12), %rdx
cmpq %rdx, %rax
je 0x5ae65
cmpl $0xce, 0x20(%rbx)
jne 0x5ae65
subq %rax, %rdx
cmpq $0x10, %rdx
jne 0x5ae6a
movq (%rax), %rdx
movq 0x8(%rax), %r14
subq %rdx, %r14
incq %r14
leaq 0x48(%rsp), %rsi
movq %rdx, (%rsi)
movq %r14, 0x8(%rsi)
leaq 0x8(%rsp), %rdi
movq %rcx, %rdx
callq 0x5b2dc
leaq 0x98360(%rip), %rsi # 0xf3030
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3bddc
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x58afa
leaq 0x28(%rsp), %rdi
callq 0x29678
leaq 0x8(%rsp), %rdi
callq 0x29678
jmp 0x5ae7b
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x8(%rsp), %r9
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x5b3f4
leaq 0x8(%rsp), %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x28820
movq %r14, %rdi
callq 0x29678
testl %ebp, %ebp
je 0x5ad68
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x8(%rsp), %rdi
callq 0x29678
movq 0x88(%rbx), %rsi
leaq 0x8(%rsp), %rdi
callq 0x3caee
leaq 0x9826e(%rip), %rsi # 0xf2fee
leaq 0x28(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x3bddc
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x58afa
jmp 0x5aeb0
cmpq $0x0, 0xd8(%rbx)
je 0x5aec4
cmpb $0x1, 0x108(%rbx)
jne 0x5aec4
leaq 0x98276(%rip), %rsi # 0xf303e
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x3bddc
leaq 0x98272(%rip), %rsi # 0xf3050
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3bddc
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x58afa
leaq 0x28(%rsp), %rdi
callq 0x29678
leaq 0x8(%rsp), %rdi
callq 0x29678
cmpl $0x2, %ebp
je 0x5aed3
cmpl $0x1, %ebp
jne 0x5aec4
leaq 0x9822c(%rip), %rsi # 0xf3058
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x3bddc
leaq 0x98937(%rip), %rsi # 0xf3779
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3bddc
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x58afa
jmp 0x5aeb0
movq %rcx, %r14
jmp 0x5ae7b
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x5b3ce
movq %rax, %r14
leaq 0x9816c(%rip), %rsi # 0xf2fee
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x3bddc
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x3caee
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x58afa
leaq 0x28(%rsp), %rdi
callq 0x29678
leaq 0x8(%rsp), %rdi
callq 0x29678
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9817e(%rip), %rsi # 0xf3058
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x3bddc
leaq 0x98179(%rip), %rsi # 0xf3069
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3bddc
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x58afa
jmp 0x5aeb0
jmp 0x5af44
jmp 0x5af44
jmp 0x5af53
jmp 0x5af53
jmp 0x5af3f
jmp 0x5af3f
jmp 0x5af44
jmp 0x5af53
jmp 0x5af3f
jmp 0x5af44
jmp 0x5af53
jmp 0x5af53
jmp 0x5af44
jmp 0x5af53
jmp 0x5af53
jmp 0x5af44
jmp 0x5af53
jmp 0x5af3f
jmp 0x5af44
jmp 0x5af53
jmp 0x5af3f
jmp 0x5af53
movq %rax, %rbx
jmp 0x5af60
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x29678
jmp 0x5af56
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x29678
movq %rbx, %rdi
callq 0x293c0
| _ZNK7httplib6Server12apply_rangesERKNS_7RequestERNS_8ResponseERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESC_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r15, r8
mov r14, rcx
mov rbx, rdx
mov r12, rsi
mov rax, [rsi+190h]
sub rax, [rsi+188h]
cmp rax, 11h
jb loc_5AB7C
cmp dword ptr [rbx+20h], 0CEh
jnz loc_5AB7C
lea rsi, aContentType; "Content-Type"
lea rdi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_60]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea r13, [rbx+48h]
lea rsi, [rsp+88h+var_80]
mov rdi, r13
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESaIS8_ENSt8__detail10_Select1stEN7httplib6detail11case_ignore8equal_toENSE_4hashENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb0EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::find(std::string const&)
mov rbp, rax
lea rdi, [rsp+88h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbp, rbp
jz short loc_5AB0C
mov rsi, rbp
add rsi, 28h ; '('
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov rdi, r13
mov rsi, rbp
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESaIS8_ENSt8__detail10_Select1stEN7httplib6detail11case_ignore8equal_toENSE_4hashENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb0EEEE5eraseENSA_20_Node_const_iteratorIS8_Lb0ELb1EEE; std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::erase(std::__detail::_Node_const_iterator<std::pair<std::string const,std::string>,false,true>)
loc_5AB0C:
lea r13, [rsp+88h+var_80]
mov rdi, r13
call _ZN7httplib6detail28make_multipart_data_boundaryB5cxx11Ev; httplib::detail::make_multipart_data_boundary(void)
mov rdi, r15
mov rsi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, r13; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rsi, aContentType; "Content-Type"
lea rdi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aMultipartByter; "multipart/byteranges; boundary="
lea rdi, [rsp+88h+var_60]
mov rdx, r15
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
lea rsi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_60]
mov rdi, rbx
call _ZN7httplib8Response10set_headerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; httplib::Response::set_header(std::string const&,std::string const&)
lea rdi, [rsp+88h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+88h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_5AB7C:
mov rdi, r12; this
mov rsi, rbx; httplib::Request *
call _ZN7httplib6detail13encoding_typeERKNS_7RequestERKNS_8ResponseE; httplib::detail::encoding_type(httplib::Request const&,httplib::Response const&)
mov ebp, eax
mov r8, [rbx+88h]
test r8, r8
jz loc_5AC60
mov rax, [r12+188h]
mov rcx, [r12+190h]
cmp rax, rcx
jz loc_5AD49
cmp dword ptr [rbx+20h], 0CEh
jnz loc_5AD49
lea r13, [rbx+80h]
sub rcx, rax
cmp rcx, 10h
jnz loc_5AD0A
mov r14, [rax]
mov r15, [rax+8]
sub r15, r14
inc r15
lea rsi, [rsp+88h+var_40]
mov [rsi], r14
mov [rsi+8], r15
lea rdi, [rsp+88h+var_80]
mov rdx, r8
call _ZN7httplib6detail31make_content_range_header_fieldB5cxx11ERKSt4pairImmEm; httplib::detail::make_content_range_header_field(std::pair<ulong,ulong> const&,ulong)
lea rsi, aContentRange; "Content-Range"
lea rdi, [rsp+88h+var_60]
lea rdx, [rsp+88h+var_81]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, [rsp+88h+var_60]
lea rdx, [rsp+88h+var_80]
mov rdi, rbx
call _ZN7httplib8Response10set_headerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; httplib::Response::set_header(std::string const&,std::string const&)
lea rdi, [rsp+88h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+88h+var_60]
mov rsi, r13
mov rdx, r14
mov rcx, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
lea r14, [rsp+88h+var_60]
mov rdi, r13
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+88h+var_80]
jmp loc_5AD44
loc_5AC60:
mov rcx, [rbx+0C0h]
test rcx, rcx
jz loc_5ADA6
mov rax, [r12+188h]
mov rdx, [r12+190h]
cmp rax, rdx
jz loc_5AE65
cmp dword ptr [rbx+20h], 0CEh
jnz loc_5AE65
sub rdx, rax
cmp rdx, 10h
jnz loc_5AE6A
mov rdx, [rax]
mov r14, [rax+8]
sub r14, rdx
inc r14
lea rsi, [rsp+88h+var_40]
mov [rsi], rdx
mov [rsi+8], r14
lea rdi, [rsp+88h+var_80]
mov rdx, rcx
call _ZN7httplib6detail31make_content_range_header_fieldB5cxx11ERKSt4pairImmEm; httplib::detail::make_content_range_header_field(std::pair<ulong,ulong> const&,ulong)
lea rsi, aContentRange; "Content-Range"
lea rdi, [rsp+88h+var_60]
lea rdx, [rsp+88h+var_81]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, [rsp+88h+var_60]
lea rdx, [rsp+88h+var_80]
mov rdi, rbx
call _ZN7httplib8Response10set_headerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; httplib::Response::set_header(std::string const&,std::string const&)
lea rdi, [rsp+88h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+88h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp loc_5AE7B
loc_5AD0A:
lea rax, [rsp+88h+var_70]
mov [rax-10h], rax
and qword ptr [rax-8], 0
mov byte ptr [rax], 0
lea r9, [rsp+88h+var_80]
mov rdi, r12
mov rsi, rbx
mov rdx, r15
mov rcx, r14
call _ZN7httplib6detail26make_multipart_ranges_dataERKNS_7RequestERNS_8ResponseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESD_mRSB_; httplib::detail::make_multipart_ranges_data(httplib::Request const&,httplib::Response &,std::string const&,std::string const&,ulong,std::string&)
lea r14, [rsp+88h+var_80]
mov rdi, r13
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4swapERS4_; std::string::swap(std::string&)
mov rdi, r14; void *
loc_5AD44:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_5AD49:
test ebp, ebp
jz short loc_5AD68
lea rax, [rsp+88h+var_70]
mov [rax-10h], rax
and qword ptr [rax-8], 0
mov byte ptr [rax], 0
lea rdi, [rsp+88h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_5AD68:
mov rsi, [rbx+88h]; unsigned __int64
lea rdi, [rsp+88h+var_80]; this
call _ZNSt7__cxx119to_stringEm; std::to_string(ulong)
lea rsi, aContentLength; "Content-Length"
lea rdi, [rsp+88h+var_60]
lea rdx, [rsp+88h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, [rsp+88h+var_60]
lea rdx, [rsp+88h+var_80]
mov rdi, rbx
call _ZN7httplib8Response10set_headerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; httplib::Response::set_header(std::string const&,std::string const&)
jmp loc_5AEB0
loc_5ADA6:
cmp qword ptr [rbx+0D8h], 0
jz loc_5AEC4
cmp byte ptr [rbx+108h], 1
jnz loc_5AEC4
lea rsi, aTransferEncodi; "Transfer-Encoding"
lea rdi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aChunked; "chunked"
lea rdi, [rsp+88h+var_60]
lea rdx, [rsp+88h+var_81]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_60]
mov rdi, rbx
call _ZN7httplib8Response10set_headerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; httplib::Response::set_header(std::string const&,std::string const&)
lea rdi, [rsp+88h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+88h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
cmp ebp, 2
jz loc_5AED3
cmp ebp, 1
jnz loc_5AEC4
lea rsi, aContentEncodin; "Content-Encoding"
lea rdi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aApplicationGzi+0Ch; "gzip"
lea rdi, [rsp+88h+var_60]
lea rdx, [rsp+88h+var_81]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_60]
mov rdi, rbx
call _ZN7httplib8Response10set_headerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; httplib::Response::set_header(std::string const&,std::string const&)
jmp short loc_5AEB0
loc_5AE65:
mov r14, rcx
jmp short loc_5AE7B
loc_5AE6A:
mov rdi, r12
mov rsi, r15
mov rdx, r14
call _ZN7httplib6detail32get_multipart_ranges_data_lengthERKNS_7RequestERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_m; httplib::detail::get_multipart_ranges_data_length(httplib::Request const&,std::string const&,std::string const&,ulong)
mov r14, rax
loc_5AE7B:
lea rsi, aContentLength; "Content-Length"
lea rdi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+88h+var_60]; this
mov rsi, r14; unsigned __int64
call _ZNSt7__cxx119to_stringEm; std::to_string(ulong)
lea rsi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_60]
mov rdi, rbx
call _ZN7httplib8Response10set_headerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; httplib::Response::set_header(std::string const&,std::string const&)
loc_5AEB0:
lea rdi, [rsp+88h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+88h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_5AEC4:
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5AED3:
lea rsi, aContentEncodin; "Content-Encoding"
lea rdi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aBr; "br"
lea rdi, [rsp+88h+var_60]
lea rdx, [rsp+88h+var_81]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_60]
mov rdi, rbx
call _ZN7httplib8Response10set_headerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; httplib::Response::set_header(std::string const&,std::string const&)
jmp short loc_5AEB0
jmp short loc_5AF44
jmp short loc_5AF44
jmp short loc_5AF53
jmp short loc_5AF53
jmp short loc_5AF3F
jmp short loc_5AF3F
jmp short loc_5AF44
jmp short loc_5AF53
jmp short loc_5AF3F
jmp short loc_5AF44
jmp short loc_5AF53
jmp short loc_5AF53
jmp short loc_5AF44
jmp short loc_5AF53
jmp short loc_5AF53
jmp short loc_5AF44
jmp short loc_5AF53
jmp short loc_5AF3F
jmp short loc_5AF44
jmp short loc_5AF53
jmp short loc_5AF3F
jmp short loc_5AF53
loc_5AF3F:
mov rbx, rax
jmp short loc_5AF60
loc_5AF44:
mov rbx, rax
lea rdi, [rsp+arg_20]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_5AF56
loc_5AF53:
mov rbx, rax
loc_5AF56:
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_5AF60:
mov rdi, rbx
call __Unwind_Resume
| void httplib::Server::apply_ranges(long long a1, httplib::detail *a2, long long a3, long long a4, long long a5)
{
_BYTE **v9; // rsi
long long v10; // rbp
int v11; // edx
int v12; // ecx
int v13; // r8d
int v14; // r9d
int v15; // ebp
long long v16; // r8
char *v17; // rax
char *v18; // rcx
long long v19; // r14
long long v20; // r15
long long v21; // rcx
char *v22; // rax
char *v23; // rdx
long long multipart_ranges_data_length; // r14
_BYTE *v25; // [rsp+8h] [rbp-80h] BYREF
long long v26; // [rsp+10h] [rbp-78h]
_BYTE v27[16]; // [rsp+18h] [rbp-70h] BYREF
_QWORD v28[4]; // [rsp+28h] [rbp-60h] BYREF
long long v29; // [rsp+48h] [rbp-40h] BYREF
long long v30; // [rsp+50h] [rbp-38h]
if ( *((_QWORD *)a2 + 50) - *((_QWORD *)a2 + 49) >= 0x11uLL && *(_DWORD *)(a3 + 32) == 206 )
{
std::string::basic_string<std::allocator<char>>(&v25, (long long)"Content-Type");
v9 = &v25;
v10 = std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::find(
a3 + 72,
&v25);
std::string::~string(&v25);
if ( v10 )
{
std::string::_M_assign(a4, v10 + 40);
LODWORD(v9) = v10;
std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::erase(
a3 + 72,
v10);
}
httplib::detail::make_multipart_data_boundary[abi:cxx11]((unsigned int)&v25, (_DWORD)v9, v11, v12, v13, v14);
std::string::operator=(a5, &v25);
std::string::~string(&v25);
std::string::basic_string<std::allocator<char>>(&v25, (long long)"Content-Type");
std::operator+<char>((long long)v28, (long long)"multipart/byteranges; boundary=", a5);
httplib::Response::set_header(a3, (long long)&v25, (long long)v28);
std::string::~string(v28);
std::string::~string(&v25);
}
v15 = httplib::detail::encoding_type(a2, (const httplib::Request *)a3, (const httplib::Response *)a3);
v16 = *(_QWORD *)(a3 + 136);
if ( v16 )
{
v17 = (char *)*((_QWORD *)a2 + 49);
v18 = (char *)*((_QWORD *)a2 + 50);
if ( v17 != v18 && *(_DWORD *)(a3 + 32) == 206 )
{
if ( v18 - v17 == 16 )
{
v20 = *((_QWORD *)v17 + 1) - *(_QWORD *)v17 + 1LL;
v29 = *(_QWORD *)v17;
v19 = v29;
v30 = v20;
httplib::detail::make_content_range_header_field[abi:cxx11](&v25, &v29, v16);
std::string::basic_string<std::allocator<char>>(v28, (long long)"Content-Range");
httplib::Response::set_header(a3, (long long)v28, (long long)&v25);
std::string::~string(v28);
std::string::substr(v28, a3 + 128, v19, v20);
std::string::operator=(a3 + 128, v28);
std::string::~string(v28);
}
else
{
v25 = v27;
v26 = 0LL;
v27[0] = 0;
httplib::detail::make_multipart_ranges_data(a2, a3, a5, a4, v16, &v25);
std::string::swap(a3 + 128, &v25);
}
std::string::~string(&v25);
}
if ( v15 )
{
v25 = v27;
v26 = 0LL;
v27[0] = 0;
std::string::~string(&v25);
}
std::to_string((std::__cxx11 *)&v25, *(_QWORD *)(a3 + 136));
std::string::basic_string<std::allocator<char>>(v28, (long long)"Content-Length");
httplib::Response::set_header(a3, (long long)v28, (long long)&v25);
goto LABEL_29;
}
v21 = *(_QWORD *)(a3 + 192);
if ( v21 )
{
v22 = (char *)*((_QWORD *)a2 + 49);
v23 = (char *)*((_QWORD *)a2 + 50);
if ( v22 == v23 || *(_DWORD *)(a3 + 32) != 206 )
{
multipart_ranges_data_length = *(_QWORD *)(a3 + 192);
}
else if ( v23 - v22 == 16 )
{
multipart_ranges_data_length = *((_QWORD *)v22 + 1) - *(_QWORD *)v22 + 1LL;
v29 = *(_QWORD *)v22;
v30 = multipart_ranges_data_length;
httplib::detail::make_content_range_header_field[abi:cxx11](&v25, &v29, v21);
std::string::basic_string<std::allocator<char>>(v28, (long long)"Content-Range");
httplib::Response::set_header(a3, (long long)v28, (long long)&v25);
std::string::~string(v28);
std::string::~string(&v25);
}
else
{
multipart_ranges_data_length = httplib::detail::get_multipart_ranges_data_length(a2, a5, a4);
}
std::string::basic_string<std::allocator<char>>(&v25, (long long)"Content-Length");
std::to_string((std::__cxx11 *)v28, multipart_ranges_data_length);
httplib::Response::set_header(a3, (long long)&v25, (long long)v28);
LABEL_29:
std::string::~string(v28);
std::string::~string(&v25);
return;
}
if ( *(_QWORD *)(a3 + 216) && *(_BYTE *)(a3 + 264) == 1 )
{
std::string::basic_string<std::allocator<char>>(&v25, (long long)"Transfer-Encoding");
std::string::basic_string<std::allocator<char>>(v28, (long long)"chunked");
httplib::Response::set_header(a3, (long long)&v25, (long long)v28);
std::string::~string(v28);
std::string::~string(&v25);
if ( v15 == 2 )
{
std::string::basic_string<std::allocator<char>>(&v25, (long long)"Content-Encoding");
std::string::basic_string<std::allocator<char>>(v28, (long long)"br");
httplib::Response::set_header(a3, (long long)&v25, (long long)v28);
}
else
{
if ( v15 != 1 )
return;
std::string::basic_string<std::allocator<char>>(&v25, (long long)"Content-Encoding");
std::string::basic_string<std::allocator<char>>(v28, (long long)"gzip");
httplib::Response::set_header(a3, (long long)&v25, (long long)v28);
}
goto LABEL_29;
}
}
| apply_ranges:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R15,R8
MOV R14,RCX
MOV RBX,RDX
MOV R12,RSI
MOV RAX,qword ptr [RSI + 0x190]
SUB RAX,qword ptr [RSI + 0x188]
CMP RAX,0x11
JC 0x0015ab7c
CMP dword ptr [RBX + 0x20],0xce
JNZ 0x0015ab7c
LAB_0015aab9:
LEA RSI,[0x1f2fd6]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
CALL 0x0013bddc
LEA R13,[RBX + 0x48]
LAB_0015aad3:
LEA RSI,[RSP + 0x8]
MOV RDI,R13
CALL 0x0015b422
LAB_0015aae0:
MOV RBP,RAX
LEA RDI,[RSP + 0x8]
CALL 0x00129678
TEST RBP,RBP
JZ 0x0015ab0c
MOV RSI,RBP
ADD RSI,0x28
MOV RDI,R14
CALL 0x00128600
MOV RDI,R13
MOV RSI,RBP
CALL 0x0015b464
LAB_0015ab0c:
LEA R13,[RSP + 0x8]
MOV RDI,R13
CALL 0x0015b1a3
MOV RDI,R15
MOV RSI,R13
CALL 0x00128d80
MOV RDI,R13
CALL 0x00129678
LAB_0015ab2c:
LEA RSI,[0x1f2fd6]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x48]
CALL 0x0013bddc
LAB_0015ab42:
LEA RSI,[0x1f3010]
LEA RDI,[RSP + 0x28]
MOV RDX,R15
CALL 0x00141780
LAB_0015ab56:
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00158afa
LAB_0015ab68:
LEA RDI,[RSP + 0x28]
CALL 0x00129678
LEA RDI,[RSP + 0x8]
CALL 0x00129678
LAB_0015ab7c:
MOV RDI,R12
MOV RSI,RBX
CALL 0x0015b1f9
MOV EBP,EAX
MOV R8,qword ptr [RBX + 0x88]
TEST R8,R8
JZ 0x0015ac60
MOV RAX,qword ptr [R12 + 0x188]
MOV RCX,qword ptr [R12 + 0x190]
CMP RAX,RCX
JZ 0x0015ad49
CMP dword ptr [RBX + 0x20],0xce
JNZ 0x0015ad49
LEA R13,[RBX + 0x80]
SUB RCX,RAX
CMP RCX,0x10
JNZ 0x0015ad0a
MOV R14,qword ptr [RAX]
MOV R15,qword ptr [RAX + 0x8]
SUB R15,R14
INC R15
LEA RSI,[RSP + 0x48]
MOV qword ptr [RSI],R14
MOV qword ptr [RSI + 0x8],R15
LEA RDI,[RSP + 0x8]
MOV RDX,R8
CALL 0x0015b2dc
LAB_0015abf9:
LEA RSI,[0x1f3030]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x0013bddc
LAB_0015ac0f:
LEA RSI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00158afa
LEA RDI,[RSP + 0x28]
CALL 0x00129678
LAB_0015ac2b:
LEA RDI,[RSP + 0x28]
MOV RSI,R13
MOV RDX,R14
MOV RCX,R15
CALL 0x00128bb0
LAB_0015ac3e:
LEA R14,[RSP + 0x28]
MOV RDI,R13
MOV RSI,R14
CALL 0x00128d80
MOV RDI,R14
CALL 0x00129678
LEA RDI,[RSP + 0x8]
JMP 0x0015ad44
LAB_0015ac60:
MOV RCX,qword ptr [RBX + 0xc0]
TEST RCX,RCX
JZ 0x0015ada6
MOV RAX,qword ptr [R12 + 0x188]
MOV RDX,qword ptr [R12 + 0x190]
CMP RAX,RDX
JZ 0x0015ae65
CMP dword ptr [RBX + 0x20],0xce
JNZ 0x0015ae65
SUB RDX,RAX
CMP RDX,0x10
JNZ 0x0015ae6a
MOV RDX,qword ptr [RAX]
MOV R14,qword ptr [RAX + 0x8]
SUB R14,RDX
INC R14
LEA RSI,[RSP + 0x48]
MOV qword ptr [RSI],RDX
MOV qword ptr [RSI + 0x8],R14
LEA RDI,[RSP + 0x8]
MOV RDX,RCX
CALL 0x0015b2dc
LAB_0015acc9:
LEA RSI,[0x1f3030]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x0013bddc
LAB_0015acdf:
LEA RSI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00158afa
LEA RDI,[RSP + 0x28]
CALL 0x00129678
LEA RDI,[RSP + 0x8]
CALL 0x00129678
JMP 0x0015ae7b
LAB_0015ad0a:
LEA RAX,[RSP + 0x18]
MOV qword ptr [RAX + -0x10],RAX
AND qword ptr [RAX + -0x8],0x0
MOV byte ptr [RAX],0x0
LAB_0015ad1b:
LEA R9,[RSP + 0x8]
MOV RDI,R12
MOV RSI,RBX
MOV RDX,R15
MOV RCX,R14
CALL 0x0015b3f4
LAB_0015ad31:
LEA R14,[RSP + 0x8]
MOV RDI,R13
MOV RSI,R14
CALL 0x00128820
MOV RDI,R14
LAB_0015ad44:
CALL 0x00129678
LAB_0015ad49:
TEST EBP,EBP
JZ 0x0015ad68
LEA RAX,[RSP + 0x18]
MOV qword ptr [RAX + -0x10],RAX
AND qword ptr [RAX + -0x8],0x0
MOV byte ptr [RAX],0x0
LEA RDI,[RSP + 0x8]
CALL 0x00129678
LAB_0015ad68:
MOV RSI,qword ptr [RBX + 0x88]
LEA RDI,[RSP + 0x8]
CALL 0x0013caee
LAB_0015ad79:
LEA RSI,[0x1f2fee]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x48]
CALL 0x0013bddc
LAB_0015ad8f:
LEA RSI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00158afa
JMP 0x0015aeb0
LAB_0015ada6:
CMP qword ptr [RBX + 0xd8],0x0
JZ 0x0015aec4
CMP byte ptr [RBX + 0x108],0x1
JNZ 0x0015aec4
LAB_0015adc1:
LEA RSI,[0x1f303e]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x48]
CALL 0x0013bddc
LAB_0015add7:
LEA RSI,[0x1f3050]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x0013bddc
LAB_0015aded:
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00158afa
LEA RDI,[RSP + 0x28]
CALL 0x00129678
LEA RDI,[RSP + 0x8]
CALL 0x00129678
CMP EBP,0x2
JZ 0x0015aed3
CMP EBP,0x1
JNZ 0x0015aec4
LAB_0015ae25:
LEA RSI,[0x1f3058]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x48]
CALL 0x0013bddc
LAB_0015ae3b:
LEA RSI,[0x1f3779]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x0013bddc
LAB_0015ae51:
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00158afa
LAB_0015ae63:
JMP 0x0015aeb0
LAB_0015ae65:
MOV R14,RCX
JMP 0x0015ae7b
LAB_0015ae6a:
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
CALL 0x0015b3ce
MOV R14,RAX
LAB_0015ae7b:
LEA RSI,[0x1f2fee]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x48]
CALL 0x0013bddc
LAB_0015ae91:
LEA RDI,[RSP + 0x28]
MOV RSI,R14
CALL 0x0013caee
LAB_0015ae9e:
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00158afa
LAB_0015aeb0:
LEA RDI,[RSP + 0x28]
CALL 0x00129678
LEA RDI,[RSP + 0x8]
CALL 0x00129678
LAB_0015aec4:
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015aed3:
LEA RSI,[0x1f3058]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x48]
CALL 0x0013bddc
LAB_0015aee9:
LEA RSI,[0x1f3069]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x0013bddc
LAB_0015aeff:
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00158afa
LAB_0015af11:
JMP 0x0015aeb0
|
/* httplib::Server::apply_ranges(httplib::Request const&, httplib::Response&, std::__cxx11::string&,
std::__cxx11::string&) const */
void __thiscall
httplib::Server::apply_ranges
(Server *this,Request *param_1,Response *param_2,string *param_3,string *param_4)
{
string *this_00;
long *plVar1;
int iVar2;
long lVar3;
ulong uVar4;
ulong uVar5;
allocator local_81;
int1 *local_80;
int8 local_78;
int1 local_70 [16];
allocator local_60 [32];
long local_40;
ulong local_38;
if ((0x10 < (ulong)(*(long *)(param_1 + 400) - *(long *)(param_1 + 0x188))) &&
(*(int *)(param_2 + 0x20) == 0xce)) {
/* try { // try from 0015aab9 to 0015aace has its CatchHandler @ 0015af3f */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_80,"Content-Type",local_60);
/* try { // try from 0015aad3 to 0015aadf has its CatchHandler @ 0015af3d */
lVar3 = std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>
::find((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>
*)(param_2 + 0x48),(string *)&local_80);
std::__cxx11::string::~string((string *)&local_80);
if (lVar3 != 0) {
std::__cxx11::string::_M_assign(param_3);
std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>
::erase((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>
*)(param_2 + 0x48),lVar3);
}
detail::make_multipart_data_boundary_abi_cxx11_((detail *)&local_80);
std::__cxx11::string::operator=(param_4,(string *)&local_80);
std::__cxx11::string::~string((string *)&local_80);
/* try { // try from 0015ab2c to 0015ab41 has its CatchHandler @ 0015af3b */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_80,"Content-Type",(allocator *)&local_40);
/* try { // try from 0015ab42 to 0015ab55 has its CatchHandler @ 0015af39 */
std::operator+((char *)local_60,(string *)"multipart/byteranges; boundary=");
/* try { // try from 0015ab56 to 0015ab67 has its CatchHandler @ 0015af37 */
Response::set_header(param_2,(string *)&local_80,(string *)local_60);
std::__cxx11::string::~string((string *)local_60);
std::__cxx11::string::~string((string *)&local_80);
}
iVar2 = detail::encoding_type(param_1,param_2);
uVar4 = *(ulong *)(param_2 + 0x88);
if (uVar4 == 0) {
uVar4 = *(ulong *)(param_2 + 0xc0);
if (uVar4 == 0) {
if (*(long *)(param_2 + 0xd8) == 0) {
return;
}
if (param_2[0x108] != (Response)0x1) {
return;
}
/* try { // try from 0015adc1 to 0015add6 has its CatchHandler @ 0015af23 */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_80,"Transfer-Encoding",(allocator *)&local_40);
/* try { // try from 0015add7 to 0015adec has its CatchHandler @ 0015af21 */
std::__cxx11::string::string<std::allocator<char>>((string *)local_60,"chunked",&local_81);
/* try { // try from 0015aded to 0015adfe has its CatchHandler @ 0015af1f */
Response::set_header(param_2,(string *)&local_80,(string *)local_60);
std::__cxx11::string::~string((string *)local_60);
std::__cxx11::string::~string((string *)&local_80);
if (iVar2 == 2) {
/* try { // try from 0015aed3 to 0015aee8 has its CatchHandler @ 0015af1b */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_80,"Content-Encoding",(allocator *)&local_40);
/* try { // try from 0015aee9 to 0015aefe has its CatchHandler @ 0015af17 */
std::__cxx11::string::string<std::allocator<char>>((string *)local_60,"br",&local_81);
/* try { // try from 0015aeff to 0015af10 has its CatchHandler @ 0015af13 */
Response::set_header(param_2,(string *)&local_80,(string *)local_60);
}
else {
if (iVar2 != 1) {
return;
}
/* try { // try from 0015ae25 to 0015ae3a has its CatchHandler @ 0015af1d */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_80,"Content-Encoding",(allocator *)&local_40);
/* try { // try from 0015ae3b to 0015ae50 has its CatchHandler @ 0015af19 */
std::__cxx11::string::string<std::allocator<char>>((string *)local_60,"gzip",&local_81);
/* try { // try from 0015ae51 to 0015ae62 has its CatchHandler @ 0015af15 */
Response::set_header(param_2,(string *)&local_80,(string *)local_60);
}
}
else {
plVar1 = *(long **)(param_1 + 0x188);
if ((plVar1 != *(long **)(param_1 + 400)) && (*(int *)(param_2 + 0x20) == 0xce)) {
if ((long)*(long **)(param_1 + 400) - (long)plVar1 == 0x10) {
local_40 = *plVar1;
uVar5 = (plVar1[1] - local_40) + 1;
local_38 = uVar5;
detail::make_content_range_header_field_abi_cxx11_
((detail *)&local_80,(pair *)&local_40,uVar4);
/* try { // try from 0015acc9 to 0015acde has its CatchHandler @ 0015af27 */
std::__cxx11::string::string<std::allocator<char>>
((string *)local_60,"Content-Range",&local_81);
/* try { // try from 0015acdf to 0015acf0 has its CatchHandler @ 0015af25 */
Response::set_header(param_2,(string *)local_60,(string *)&local_80);
std::__cxx11::string::~string((string *)local_60);
std::__cxx11::string::~string((string *)&local_80);
uVar4 = uVar5;
}
else {
uVar4 = detail::get_multipart_ranges_data_length(param_1,param_4,param_3,uVar4);
}
}
/* try { // try from 0015ae7b to 0015ae90 has its CatchHandler @ 0015af35 */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_80,"Content-Length",(allocator *)&local_40);
/* try { // try from 0015ae91 to 0015ae9d has its CatchHandler @ 0015af33 */
std::__cxx11::to_string((__cxx11 *)local_60,uVar4);
/* try { // try from 0015ae9e to 0015aeaf has its CatchHandler @ 0015af31 */
Response::set_header(param_2,(string *)&local_80,(string *)local_60);
}
}
else {
plVar1 = *(long **)(param_1 + 0x188);
if ((plVar1 != *(long **)(param_1 + 400)) && (*(int *)(param_2 + 0x20) == 0xce)) {
this_00 = (string *)(param_2 + 0x80);
if ((long)*(long **)(param_1 + 400) - (long)plVar1 == 0x10) {
local_40 = *plVar1;
local_38 = (plVar1[1] - local_40) + 1;
detail::make_content_range_header_field_abi_cxx11_
((detail *)&local_80,(pair *)&local_40,uVar4);
/* try { // try from 0015abf9 to 0015ac0e has its CatchHandler @ 0015af2f */
std::__cxx11::string::string<std::allocator<char>>
((string *)local_60,"Content-Range",&local_81);
/* try { // try from 0015ac0f to 0015ac20 has its CatchHandler @ 0015af2b */
Response::set_header(param_2,(string *)local_60,(string *)&local_80);
std::__cxx11::string::~string((string *)local_60);
/* try { // try from 0015ac2b to 0015ac3d has its CatchHandler @ 0015af29 */
std::__cxx11::string::substr((ulong)local_60,(ulong)this_00);
std::__cxx11::string::operator=(this_00,(string *)local_60);
std::__cxx11::string::~string((string *)local_60);
}
else {
local_80 = local_70;
local_78 = 0;
local_70[0] = 0;
/* try { // try from 0015ad1b to 0015ad30 has its CatchHandler @ 0015af2d */
detail::make_multipart_ranges_data
(param_1,param_2,param_4,param_3,uVar4,(string *)&local_80);
std::__cxx11::string::swap(this_00);
}
std::__cxx11::string::~string((string *)&local_80);
}
if (iVar2 != 0) {
local_80 = local_70;
local_78 = 0;
local_70[0] = 0;
std::__cxx11::string::~string((string *)&local_80);
}
std::__cxx11::to_string((__cxx11 *)&local_80,*(ulong *)(param_2 + 0x88));
/* try { // try from 0015ad79 to 0015ad8e has its CatchHandler @ 0015af53 */
std::__cxx11::string::string<std::allocator<char>>
((string *)local_60,"Content-Length",(allocator *)&local_40);
/* try { // try from 0015ad8f to 0015ada0 has its CatchHandler @ 0015af44 */
Response::set_header(param_2,(string *)local_60,(string *)&local_80);
}
std::__cxx11::string::~string((string *)local_60);
std::__cxx11::string::~string((string *)&local_80);
return;
}
|
|
3,006 | ma_search_next | eloqsql/storage/maria/ma_search.c | int _ma_search_next(register MARIA_HA *info, MARIA_KEY *key,
uint32 nextflag, my_off_t pos)
{
int error;
uchar lastkey[MARIA_MAX_KEY_BUFF];
MARIA_KEYDEF *keyinfo= key->keyinfo;
MARIA_KEY tmp_key;
MARIA_PAGE page;
DBUG_ENTER("_ma_search_next");
DBUG_PRINT("enter",("nextflag: %u lastpos: %lu int_keypos:%p page_changed %d keyread_buff_used: %d",
nextflag, (ulong) info->cur_row.lastpos,
info->int_keypos,
info->page_changed, info->keyread_buff_used));
DBUG_EXECUTE("key", _ma_print_key(DBUG_FILE, key););
/*
Force full read if we are at last key or if we are not on a leaf
and the key tree has changed since we used it last time
Note that even if the key tree has changed since last read, we can use
the last read data from the leaf if we haven't used the buffer for
something else.
*/
if (((nextflag & SEARCH_BIGGER) && info->int_keypos >= info->int_maxpos) ||
info->page_changed ||
(info->int_keytree_version != keyinfo->version &&
(info->int_nod_flag || info->keyread_buff_used)))
DBUG_RETURN(_ma_search(info, key, nextflag | SEARCH_SAVE_BUFF,
pos));
if (info->keyread_buff_used)
{
if (_ma_fetch_keypage(&page, info, keyinfo, info->last_search_keypage,
PAGECACHE_LOCK_LEFT_UNLOCKED,
DFLT_INIT_HITS, info->keyread_buff, 0))
DBUG_RETURN(-1);
info->keyread_buff_used=0;
}
else
{
/* Last used buffer is in info->keyread_buff */
/* Todo: Add info->keyread_page to keep track of this */
_ma_page_setup(&page, info, keyinfo, 0, info->keyread_buff);
}
tmp_key.data= lastkey;
tmp_key.keyinfo= keyinfo;
if (nextflag & SEARCH_BIGGER) /* Next key */
{
if (page.node)
{
my_off_t tmp_pos= _ma_kpos(page.node, info->int_keypos);
if ((error= _ma_search(info, key, nextflag | SEARCH_SAVE_BUFF,
tmp_pos)) <=0)
DBUG_RETURN(error);
}
if (keyinfo->flag & (HA_PACK_KEY | HA_BINARY_PACK_KEY) &&
info->last_key.data != key->data)
memcpy(info->last_key.data, key->data,
key->data_length + key->ref_length);
if (!(*keyinfo->get_key)(&info->last_key, page.flag, page.node,
&info->int_keypos))
DBUG_RETURN(-1);
}
else /* Previous key */
{
/* Find start of previous key */
info->int_keypos= _ma_get_last_key(&tmp_key, &page, info->int_keypos);
if (!info->int_keypos)
DBUG_RETURN(-1);
if (info->int_keypos == info->keyread_buff + info->s->keypage_header)
{
/* Previous key was first key, read key before this one */
DBUG_RETURN(_ma_search(info, key, nextflag | SEARCH_SAVE_BUFF,
pos));
}
if (page.node &&
(error= _ma_search(info, key, nextflag | SEARCH_SAVE_BUFF,
_ma_kpos(page.node,info->int_keypos))) <= 0)
DBUG_RETURN(error);
/* QQ: We should be able to optimize away the following call */
if (! _ma_get_last_key(&info->last_key, &page, info->int_keypos))
DBUG_RETURN(-1);
}
info->cur_row.lastpos= _ma_row_pos_from_key(&info->last_key);
info->cur_row.trid= _ma_trid_from_key(&info->last_key);
DBUG_PRINT("exit",("found key at %lu",(ulong) info->cur_row.lastpos));
DBUG_RETURN(0);
} | O0 | c | ma_search_next:
pushq %rbp
movq %rsp, %rbp
subq $0xab0, %rsp # imm = 0xAB0
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x9f0(%rbp)
movq %rsi, -0x9f8(%rbp)
movl %edx, -0x9fc(%rbp)
movq %rcx, -0xa08(%rbp)
movq -0x9f8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xa18(%rbp)
jmp 0x3af37
jmp 0x3af39
jmp 0x3af3b
movl -0x9fc(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x3af67
movq -0x9f0(%rbp), %rax
movq 0x3b0(%rax), %rax
movq -0x9f0(%rbp), %rcx
cmpq 0x3b8(%rcx), %rax
jae 0x3afb9
movq -0x9f0(%rbp), %rax
movsbl 0x684(%rax), %eax
cmpl $0x0, %eax
jne 0x3afb9
movq -0x9f0(%rbp), %rax
movl 0x3d4(%rax), %eax
movq -0xa18(%rbp), %rcx
cmpl 0xb8(%rcx), %eax
je 0x3afe9
movq -0x9f0(%rbp), %rax
cmpl $0x0, 0x3d0(%rax)
jne 0x3afb9
movq -0x9f0(%rbp), %rax
movsbl 0x685(%rax), %eax
cmpl $0x0, %eax
je 0x3afe9
jmp 0x3afbb
movq -0x9f0(%rbp), %rdi
movq -0x9f8(%rbp), %rsi
movl -0x9fc(%rbp), %edx
orl $0x20, %edx
movq -0xa08(%rbp), %rcx
callq 0x37350
movl %eax, -0x9e4(%rbp)
jmp 0x3b3ba
movq -0x9f0(%rbp), %rax
cmpb $0x0, 0x685(%rax)
je 0x3b069
movq -0x9f0(%rbp), %rsi
movq -0xa18(%rbp), %rdx
movq -0x9f0(%rbp), %rax
movq 0x448(%rax), %rcx
movq -0x9f0(%rbp), %rax
movq 0x380(%rax), %rax
leaq -0xa70(%rbp), %rdi
xorl %r8d, %r8d
movl $0x3, %r9d
movq %rax, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x3cfe0
cmpb $0x0, %al
je 0x3b059
jmp 0x3b04a
movl $0xffffffff, -0x9e4(%rbp) # imm = 0xFFFFFFFF
jmp 0x3b3ba
movq -0x9f0(%rbp), %rax
movb $0x0, 0x685(%rax)
jmp 0x3b095
movq -0x9f0(%rbp), %rsi
movq -0xa18(%rbp), %rdx
movq -0x9f0(%rbp), %rax
movq 0x380(%rax), %r8
leaq -0xa70(%rbp), %rdi
xorl %eax, %eax
movl %eax, %ecx
callq 0x3cef0
leaq -0x9e0(%rbp), %rax
movq %rax, -0xa38(%rbp)
movq -0xa18(%rbp), %rax
movq %rax, -0xa30(%rbp)
movl -0x9fc(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x3b1e7
cmpl $0x0, -0xa48(%rbp)
je 0x3b12f
movl -0xa48(%rbp), %edi
movq -0x9f0(%rbp), %rax
movq 0x3b0(%rax), %rsi
callq 0x38cf0
movq %rax, -0xa78(%rbp)
movq -0x9f0(%rbp), %rdi
movq -0x9f8(%rbp), %rsi
movl -0x9fc(%rbp), %edx
orl $0x20, %edx
movq -0xa78(%rbp), %rcx
callq 0x37350
movl %eax, -0xa0c(%rbp)
cmpl $0x0, %eax
jg 0x3b12d
jmp 0x3b11c
movl -0xa0c(%rbp), %eax
movl %eax, -0x9e4(%rbp)
jmp 0x3b3ba
jmp 0x3b12f
movq -0xa18(%rbp), %rax
movzwl 0xa2(%rax), %eax
andl $0x22, %eax
cmpl $0x0, %eax
je 0x3b194
movq -0x9f0(%rbp), %rax
movq 0x200(%rax), %rax
movq -0x9f8(%rbp), %rcx
cmpq (%rcx), %rax
je 0x3b194
movq -0x9f0(%rbp), %rax
movq 0x200(%rax), %rdi
movq -0x9f8(%rbp), %rax
movq (%rax), %rsi
movq -0x9f8(%rbp), %rax
movl 0x10(%rax), %eax
movq -0x9f8(%rbp), %rcx
addl 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
callq 0x29090
movq -0xa18(%rbp), %rax
movq 0xe0(%rax), %rax
movq -0x9f0(%rbp), %rdi
addq $0x200, %rdi # imm = 0x200
movl -0xa44(%rbp), %esi
movl -0xa48(%rbp), %edx
movq -0x9f0(%rbp), %rcx
addq $0x3b0, %rcx # imm = 0x3B0
callq *%rax
cmpl $0x0, %eax
jne 0x3b1e2
jmp 0x3b1d3
movl $0xffffffff, -0x9e4(%rbp) # imm = 0xFFFFFFFF
jmp 0x3b3ba
jmp 0x3b364
movq -0x9f0(%rbp), %rax
movq 0x3b0(%rax), %rdx
leaq -0xa38(%rbp), %rdi
leaq -0xa70(%rbp), %rsi
callq 0x3ab10
movq %rax, %rcx
movq -0x9f0(%rbp), %rax
movq %rcx, 0x3b0(%rax)
movq -0x9f0(%rbp), %rax
cmpq $0x0, 0x3b0(%rax)
jne 0x3b23b
jmp 0x3b22c
movl $0xffffffff, -0x9e4(%rbp) # imm = 0xFFFFFFFF
jmp 0x3b3ba
movq -0x9f0(%rbp), %rax
movq 0x3b0(%rax), %rax
movq -0x9f0(%rbp), %rcx
movq 0x380(%rcx), %rcx
movq -0x9f0(%rbp), %rdx
movq (%rdx), %rdx
movl 0x744(%rdx), %edx
addq %rdx, %rcx
cmpq %rcx, %rax
jne 0x3b29f
jmp 0x3b271
movq -0x9f0(%rbp), %rdi
movq -0x9f8(%rbp), %rsi
movl -0x9fc(%rbp), %edx
orl $0x20, %edx
movq -0xa08(%rbp), %rcx
callq 0x37350
movl %eax, -0x9e4(%rbp)
jmp 0x3b3ba
cmpl $0x0, -0xa48(%rbp)
je 0x3b326
movq -0x9f0(%rbp), %rax
movq %rax, -0xa90(%rbp)
movq -0x9f8(%rbp), %rax
movq %rax, -0xa88(%rbp)
movl -0x9fc(%rbp), %eax
orl $0x20, %eax
movl %eax, -0xa7c(%rbp)
movl -0xa48(%rbp), %edi
movq -0x9f0(%rbp), %rax
movq 0x3b0(%rax), %rsi
callq 0x38cf0
movq -0xa90(%rbp), %rdi
movq -0xa88(%rbp), %rsi
movl -0xa7c(%rbp), %edx
movq %rax, %rcx
callq 0x37350
movl %eax, -0xa0c(%rbp)
cmpl $0x0, %eax
jg 0x3b326
jmp 0x3b315
movl -0xa0c(%rbp), %eax
movl %eax, -0x9e4(%rbp)
jmp 0x3b3ba
movq -0x9f0(%rbp), %rdi
addq $0x200, %rdi # imm = 0x200
movq -0x9f0(%rbp), %rax
movq 0x3b0(%rax), %rdx
leaq -0xa70(%rbp), %rsi
callq 0x3ab10
cmpq $0x0, %rax
jne 0x3b362
jmp 0x3b356
movl $0xffffffff, -0x9e4(%rbp) # imm = 0xFFFFFFFF
jmp 0x3b3ba
jmp 0x3b364
movq -0x9f0(%rbp), %rdi
addq $0x200, %rdi # imm = 0x200
callq 0x391e0
movq %rax, %rcx
movq -0x9f0(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x9f0(%rbp), %rdi
addq $0x200, %rdi # imm = 0x200
callq 0x39390
movq %rax, %rcx
movq -0x9f0(%rbp), %rax
movq %rcx, 0xc0(%rax)
jmp 0x3b3ae
jmp 0x3b3b0
movl $0x0, -0x9e4(%rbp)
movl -0x9e4(%rbp), %eax
movl %eax, -0xa94(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x3b3e7
movl -0xa94(%rbp), %eax
addq $0xab0, %rsp # imm = 0xAB0
popq %rbp
retq
callq 0x29230
nopl (%rax)
| _ma_search_next:
push rbp
mov rbp, rsp
sub rsp, 0AB0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_9F0], rdi
mov [rbp+var_9F8], rsi
mov [rbp+var_9FC], edx
mov [rbp+var_A08], rcx
mov rax, [rbp+var_9F8]
mov rax, [rax+8]
mov [rbp+var_A18], rax
jmp short $+2
loc_3AF37:
jmp short $+2
loc_3AF39:
jmp short $+2
loc_3AF3B:
mov eax, [rbp+var_9FC]
and eax, 8
cmp eax, 0
jz short loc_3AF67
mov rax, [rbp+var_9F0]
mov rax, [rax+3B0h]
mov rcx, [rbp+var_9F0]
cmp rax, [rcx+3B8h]
jnb short loc_3AFB9
loc_3AF67:
mov rax, [rbp+var_9F0]
movsx eax, byte ptr [rax+684h]
cmp eax, 0
jnz short loc_3AFB9
mov rax, [rbp+var_9F0]
mov eax, [rax+3D4h]
mov rcx, [rbp+var_A18]
cmp eax, [rcx+0B8h]
jz short loc_3AFE9
mov rax, [rbp+var_9F0]
cmp dword ptr [rax+3D0h], 0
jnz short loc_3AFB9
mov rax, [rbp+var_9F0]
movsx eax, byte ptr [rax+685h]
cmp eax, 0
jz short loc_3AFE9
loc_3AFB9:
jmp short $+2
loc_3AFBB:
mov rdi, [rbp+var_9F0]
mov rsi, [rbp+var_9F8]
mov edx, [rbp+var_9FC]
or edx, 20h
mov rcx, [rbp+var_A08]
call _ma_search
mov [rbp+var_9E4], eax
jmp loc_3B3BA
loc_3AFE9:
mov rax, [rbp+var_9F0]
cmp byte ptr [rax+685h], 0
jz short loc_3B069
mov rsi, [rbp+var_9F0]
mov rdx, [rbp+var_A18]
mov rax, [rbp+var_9F0]
mov rcx, [rax+448h]
mov rax, [rbp+var_9F0]
mov rax, [rax+380h]
lea rdi, [rbp+var_A70]
xor r8d, r8d
mov r9d, 3
mov [rsp+0AB0h+var_AB0], rax
mov [rsp+0AB0h+var_AA8], 0
call _ma_fetch_keypage
cmp al, 0
jz short loc_3B059
jmp short $+2
loc_3B04A:
mov [rbp+var_9E4], 0FFFFFFFFh
jmp loc_3B3BA
loc_3B059:
mov rax, [rbp+var_9F0]
mov byte ptr [rax+685h], 0
jmp short loc_3B095
loc_3B069:
mov rsi, [rbp+var_9F0]
mov rdx, [rbp+var_A18]
mov rax, [rbp+var_9F0]
mov r8, [rax+380h]
lea rdi, [rbp+var_A70]
xor eax, eax
mov ecx, eax
call _ma_page_setup
loc_3B095:
lea rax, [rbp+var_9E0]
mov [rbp+var_A38], rax
mov rax, [rbp+var_A18]
mov [rbp+var_A30], rax
mov eax, [rbp+var_9FC]
and eax, 8
cmp eax, 0
jz loc_3B1E7
cmp [rbp+var_A48], 0
jz short loc_3B12F
mov edi, [rbp+var_A48]
mov rax, [rbp+var_9F0]
mov rsi, [rax+3B0h]
call _ma_kpos
mov [rbp+var_A78], rax
mov rdi, [rbp+var_9F0]
mov rsi, [rbp+var_9F8]
mov edx, [rbp+var_9FC]
or edx, 20h
mov rcx, [rbp+var_A78]
call _ma_search
mov [rbp+var_A0C], eax
cmp eax, 0
jg short loc_3B12D
jmp short $+2
loc_3B11C:
mov eax, [rbp+var_A0C]
mov [rbp+var_9E4], eax
jmp loc_3B3BA
loc_3B12D:
jmp short $+2
loc_3B12F:
mov rax, [rbp+var_A18]
movzx eax, word ptr [rax+0A2h]
and eax, 22h
cmp eax, 0
jz short loc_3B194
mov rax, [rbp+var_9F0]
mov rax, [rax+200h]
mov rcx, [rbp+var_9F8]
cmp rax, [rcx]
jz short loc_3B194
mov rax, [rbp+var_9F0]
mov rdi, [rax+200h]
mov rax, [rbp+var_9F8]
mov rsi, [rax]
mov rax, [rbp+var_9F8]
mov eax, [rax+10h]
mov rcx, [rbp+var_9F8]
add eax, [rcx+14h]
mov eax, eax
mov edx, eax
call _memcpy
loc_3B194:
mov rax, [rbp+var_A18]
mov rax, [rax+0E0h]
mov rdi, [rbp+var_9F0]
add rdi, 200h
mov esi, [rbp+var_A44]
mov edx, [rbp+var_A48]
mov rcx, [rbp+var_9F0]
add rcx, 3B0h
call rax
cmp eax, 0
jnz short loc_3B1E2
jmp short $+2
loc_3B1D3:
mov [rbp+var_9E4], 0FFFFFFFFh
jmp loc_3B3BA
loc_3B1E2:
jmp loc_3B364
loc_3B1E7:
mov rax, [rbp+var_9F0]
mov rdx, [rax+3B0h]
lea rdi, [rbp+var_A38]
lea rsi, [rbp+var_A70]
call _ma_get_last_key
mov rcx, rax
mov rax, [rbp+var_9F0]
mov [rax+3B0h], rcx
mov rax, [rbp+var_9F0]
cmp qword ptr [rax+3B0h], 0
jnz short loc_3B23B
jmp short $+2
loc_3B22C:
mov [rbp+var_9E4], 0FFFFFFFFh
jmp loc_3B3BA
loc_3B23B:
mov rax, [rbp+var_9F0]
mov rax, [rax+3B0h]
mov rcx, [rbp+var_9F0]
mov rcx, [rcx+380h]
mov rdx, [rbp+var_9F0]
mov rdx, [rdx]
mov edx, [rdx+744h]
add rcx, rdx
cmp rax, rcx
jnz short loc_3B29F
jmp short $+2
loc_3B271:
mov rdi, [rbp+var_9F0]
mov rsi, [rbp+var_9F8]
mov edx, [rbp+var_9FC]
or edx, 20h
mov rcx, [rbp+var_A08]
call _ma_search
mov [rbp+var_9E4], eax
jmp loc_3B3BA
loc_3B29F:
cmp [rbp+var_A48], 0
jz short loc_3B326
mov rax, [rbp+var_9F0]
mov [rbp+var_A90], rax
mov rax, [rbp+var_9F8]
mov [rbp+var_A88], rax
mov eax, [rbp+var_9FC]
or eax, 20h
mov [rbp+var_A7C], eax
mov edi, [rbp+var_A48]
mov rax, [rbp+var_9F0]
mov rsi, [rax+3B0h]
call _ma_kpos
mov rdi, [rbp+var_A90]
mov rsi, [rbp+var_A88]
mov edx, [rbp+var_A7C]
mov rcx, rax
call _ma_search
mov [rbp+var_A0C], eax
cmp eax, 0
jg short loc_3B326
jmp short $+2
loc_3B315:
mov eax, [rbp+var_A0C]
mov [rbp+var_9E4], eax
jmp loc_3B3BA
loc_3B326:
mov rdi, [rbp+var_9F0]
add rdi, 200h
mov rax, [rbp+var_9F0]
mov rdx, [rax+3B0h]
lea rsi, [rbp+var_A70]
call _ma_get_last_key
cmp rax, 0
jnz short loc_3B362
jmp short $+2
loc_3B356:
mov [rbp+var_9E4], 0FFFFFFFFh
jmp short loc_3B3BA
loc_3B362:
jmp short $+2
loc_3B364:
mov rdi, [rbp+var_9F0]
add rdi, 200h
call _ma_row_pos_from_key
mov rcx, rax
mov rax, [rbp+var_9F0]
mov [rax+98h], rcx
mov rdi, [rbp+var_9F0]
add rdi, 200h
call _ma_trid_from_key
mov rcx, rax
mov rax, [rbp+var_9F0]
mov [rax+0C0h], rcx
jmp short $+2
loc_3B3AE:
jmp short $+2
loc_3B3B0:
mov [rbp+var_9E4], 0
loc_3B3BA:
mov eax, [rbp+var_9E4]
mov [rbp+var_A94], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_3B3E7
mov eax, [rbp+var_A94]
add rsp, 0AB0h
pop rbp
retn
loc_3B3E7:
call ___stack_chk_fail
| long long ma_search_next(long long a1, long long a2, int a3, long long a4)
{
unsigned long long last_key; // rax
long long v5; // rax
long long v6; // rax
long long v7; // rax
long long v9; // [rsp+20h] [rbp-A90h]
long long v10; // [rsp+28h] [rbp-A88h]
unsigned int v11; // [rsp+34h] [rbp-A7Ch]
long long v12; // [rsp+38h] [rbp-A78h]
_BYTE v13[40]; // [rsp+40h] [rbp-A70h] BYREF
unsigned int v14; // [rsp+68h] [rbp-A48h]
unsigned int v15; // [rsp+6Ch] [rbp-A44h]
_QWORD v16[4]; // [rsp+78h] [rbp-A38h] BYREF
long long v17; // [rsp+98h] [rbp-A18h]
int v18; // [rsp+A4h] [rbp-A0Ch]
long long v19; // [rsp+A8h] [rbp-A08h]
int v20; // [rsp+B4h] [rbp-9FCh]
long long v21; // [rsp+B8h] [rbp-9F8h]
long long v22; // [rsp+C0h] [rbp-9F0h]
char v24; // [rsp+D0h] [rbp-9E0h] BYREF
unsigned long long v25; // [rsp+AA8h] [rbp-8h]
v25 = __readfsqword(0x28u);
v22 = a1;
v21 = a2;
v20 = a3;
v19 = a4;
v17 = *(_QWORD *)(a2 + 8);
if ( ((a3 & 8) == 0 || *(_QWORD *)(v22 + 944) < *(_QWORD *)(v22 + 952))
&& !*(_BYTE *)(v22 + 1668)
&& (*(_DWORD *)(v22 + 980) == *(_DWORD *)(v17 + 184) || !*(_DWORD *)(v22 + 976) && !*(_BYTE *)(v22 + 1669)) )
{
if ( *(_BYTE *)(v22 + 1669) )
{
if ( (unsigned __int8)ma_fetch_keypage(
(unsigned int)v13,
v22,
v17,
*(_QWORD *)(v22 + 1096),
0,
3,
*(_QWORD *)(v22 + 896),
0) )
return (unsigned int)-1;
*(_BYTE *)(v22 + 1669) = 0;
}
else
{
ma_page_setup(v13, v22, v17, 0LL, *(_QWORD *)(v22 + 896));
}
v16[0] = &v24;
v16[1] = v17;
if ( (v20 & 8) != 0 )
{
if ( v14 )
{
v12 = ma_kpos(v14, *(_QWORD *)(v22 + 944));
v18 = ma_search(v22, v21, v20 | 0x20u, v12);
if ( v18 <= 0 )
return (unsigned int)v18;
}
if ( (*(_WORD *)(v17 + 162) & 0x22) != 0 && *(_QWORD *)(v22 + 512) != *(_QWORD *)v21 )
memcpy(*(_QWORD *)(v22 + 512), *(_QWORD *)v21, (unsigned int)(*(_DWORD *)(v21 + 20) + *(_DWORD *)(v21 + 16)));
if ( !(*(unsigned int ( **)(long long, _QWORD, _QWORD, long long))(v17 + 224))(
v22 + 512,
v15,
v14,
v22 + 944) )
return (unsigned int)-1;
}
else
{
last_key = ma_get_last_key((long long)v16, (long long)v13, *(_QWORD *)(v22 + 944));
*(_QWORD *)(v22 + 944) = last_key;
if ( !*(_QWORD *)(v22 + 944) )
return (unsigned int)-1;
if ( *(_QWORD *)(v22 + 944) == *(unsigned int *)(*(_QWORD *)v22 + 1860LL) + *(_QWORD *)(v22 + 896) )
return (unsigned int)ma_search(v22, v21, v20 | 0x20u, v19);
if ( v14 )
{
v9 = v22;
v10 = v21;
v11 = v20 | 0x20;
v5 = ma_kpos(v14, *(_QWORD *)(v22 + 944));
v18 = ma_search(v9, v10, v11, v5);
if ( v18 <= 0 )
return (unsigned int)v18;
}
if ( !ma_get_last_key(v22 + 512, (long long)v13, *(_QWORD *)(v22 + 944)) )
return (unsigned int)-1;
}
v6 = ma_row_pos_from_key(v22 + 512);
*(_QWORD *)(v22 + 152) = v6;
v7 = ma_trid_from_key(v22 + 512);
*(_QWORD *)(v22 + 192) = v7;
return 0;
}
return (unsigned int)ma_search(v22, v21, v20 | 0x20u, v19);
}
| _ma_search_next:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xab0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x9f0],RDI
MOV qword ptr [RBP + -0x9f8],RSI
MOV dword ptr [RBP + -0x9fc],EDX
MOV qword ptr [RBP + -0xa08],RCX
MOV RAX,qword ptr [RBP + -0x9f8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0xa18],RAX
JMP 0x0013af37
LAB_0013af37:
JMP 0x0013af39
LAB_0013af39:
JMP 0x0013af3b
LAB_0013af3b:
MOV EAX,dword ptr [RBP + -0x9fc]
AND EAX,0x8
CMP EAX,0x0
JZ 0x0013af67
MOV RAX,qword ptr [RBP + -0x9f0]
MOV RAX,qword ptr [RAX + 0x3b0]
MOV RCX,qword ptr [RBP + -0x9f0]
CMP RAX,qword ptr [RCX + 0x3b8]
JNC 0x0013afb9
LAB_0013af67:
MOV RAX,qword ptr [RBP + -0x9f0]
MOVSX EAX,byte ptr [RAX + 0x684]
CMP EAX,0x0
JNZ 0x0013afb9
MOV RAX,qword ptr [RBP + -0x9f0]
MOV EAX,dword ptr [RAX + 0x3d4]
MOV RCX,qword ptr [RBP + -0xa18]
CMP EAX,dword ptr [RCX + 0xb8]
JZ 0x0013afe9
MOV RAX,qword ptr [RBP + -0x9f0]
CMP dword ptr [RAX + 0x3d0],0x0
JNZ 0x0013afb9
MOV RAX,qword ptr [RBP + -0x9f0]
MOVSX EAX,byte ptr [RAX + 0x685]
CMP EAX,0x0
JZ 0x0013afe9
LAB_0013afb9:
JMP 0x0013afbb
LAB_0013afbb:
MOV RDI,qword ptr [RBP + -0x9f0]
MOV RSI,qword ptr [RBP + -0x9f8]
MOV EDX,dword ptr [RBP + -0x9fc]
OR EDX,0x20
MOV RCX,qword ptr [RBP + -0xa08]
CALL 0x00137350
MOV dword ptr [RBP + -0x9e4],EAX
JMP 0x0013b3ba
LAB_0013afe9:
MOV RAX,qword ptr [RBP + -0x9f0]
CMP byte ptr [RAX + 0x685],0x0
JZ 0x0013b069
MOV RSI,qword ptr [RBP + -0x9f0]
MOV RDX,qword ptr [RBP + -0xa18]
MOV RAX,qword ptr [RBP + -0x9f0]
MOV RCX,qword ptr [RAX + 0x448]
MOV RAX,qword ptr [RBP + -0x9f0]
MOV RAX,qword ptr [RAX + 0x380]
LEA RDI,[RBP + -0xa70]
XOR R8D,R8D
MOV R9D,0x3
MOV qword ptr [RSP],RAX
MOV dword ptr [RSP + 0x8],0x0
CALL 0x0013cfe0
CMP AL,0x0
JZ 0x0013b059
JMP 0x0013b04a
LAB_0013b04a:
MOV dword ptr [RBP + -0x9e4],0xffffffff
JMP 0x0013b3ba
LAB_0013b059:
MOV RAX,qword ptr [RBP + -0x9f0]
MOV byte ptr [RAX + 0x685],0x0
JMP 0x0013b095
LAB_0013b069:
MOV RSI,qword ptr [RBP + -0x9f0]
MOV RDX,qword ptr [RBP + -0xa18]
MOV RAX,qword ptr [RBP + -0x9f0]
MOV R8,qword ptr [RAX + 0x380]
LEA RDI,[RBP + -0xa70]
XOR EAX,EAX
MOV ECX,EAX
CALL 0x0013cef0
LAB_0013b095:
LEA RAX,[RBP + -0x9e0]
MOV qword ptr [RBP + -0xa38],RAX
MOV RAX,qword ptr [RBP + -0xa18]
MOV qword ptr [RBP + -0xa30],RAX
MOV EAX,dword ptr [RBP + -0x9fc]
AND EAX,0x8
CMP EAX,0x0
JZ 0x0013b1e7
CMP dword ptr [RBP + -0xa48],0x0
JZ 0x0013b12f
MOV EDI,dword ptr [RBP + -0xa48]
MOV RAX,qword ptr [RBP + -0x9f0]
MOV RSI,qword ptr [RAX + 0x3b0]
CALL 0x00138cf0
MOV qword ptr [RBP + -0xa78],RAX
MOV RDI,qword ptr [RBP + -0x9f0]
MOV RSI,qword ptr [RBP + -0x9f8]
MOV EDX,dword ptr [RBP + -0x9fc]
OR EDX,0x20
MOV RCX,qword ptr [RBP + -0xa78]
CALL 0x00137350
MOV dword ptr [RBP + -0xa0c],EAX
CMP EAX,0x0
JG 0x0013b12d
JMP 0x0013b11c
LAB_0013b11c:
MOV EAX,dword ptr [RBP + -0xa0c]
MOV dword ptr [RBP + -0x9e4],EAX
JMP 0x0013b3ba
LAB_0013b12d:
JMP 0x0013b12f
LAB_0013b12f:
MOV RAX,qword ptr [RBP + -0xa18]
MOVZX EAX,word ptr [RAX + 0xa2]
AND EAX,0x22
CMP EAX,0x0
JZ 0x0013b194
MOV RAX,qword ptr [RBP + -0x9f0]
MOV RAX,qword ptr [RAX + 0x200]
MOV RCX,qword ptr [RBP + -0x9f8]
CMP RAX,qword ptr [RCX]
JZ 0x0013b194
MOV RAX,qword ptr [RBP + -0x9f0]
MOV RDI,qword ptr [RAX + 0x200]
MOV RAX,qword ptr [RBP + -0x9f8]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x9f8]
MOV EAX,dword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x9f8]
ADD EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV EDX,EAX
CALL 0x00129090
LAB_0013b194:
MOV RAX,qword ptr [RBP + -0xa18]
MOV RAX,qword ptr [RAX + 0xe0]
MOV RDI,qword ptr [RBP + -0x9f0]
ADD RDI,0x200
MOV ESI,dword ptr [RBP + -0xa44]
MOV EDX,dword ptr [RBP + -0xa48]
MOV RCX,qword ptr [RBP + -0x9f0]
ADD RCX,0x3b0
CALL RAX
CMP EAX,0x0
JNZ 0x0013b1e2
JMP 0x0013b1d3
LAB_0013b1d3:
MOV dword ptr [RBP + -0x9e4],0xffffffff
JMP 0x0013b3ba
LAB_0013b1e2:
JMP 0x0013b364
LAB_0013b1e7:
MOV RAX,qword ptr [RBP + -0x9f0]
MOV RDX,qword ptr [RAX + 0x3b0]
LEA RDI,[RBP + -0xa38]
LEA RSI,[RBP + -0xa70]
CALL 0x0013ab10
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x9f0]
MOV qword ptr [RAX + 0x3b0],RCX
MOV RAX,qword ptr [RBP + -0x9f0]
CMP qword ptr [RAX + 0x3b0],0x0
JNZ 0x0013b23b
JMP 0x0013b22c
LAB_0013b22c:
MOV dword ptr [RBP + -0x9e4],0xffffffff
JMP 0x0013b3ba
LAB_0013b23b:
MOV RAX,qword ptr [RBP + -0x9f0]
MOV RAX,qword ptr [RAX + 0x3b0]
MOV RCX,qword ptr [RBP + -0x9f0]
MOV RCX,qword ptr [RCX + 0x380]
MOV RDX,qword ptr [RBP + -0x9f0]
MOV RDX,qword ptr [RDX]
MOV EDX,dword ptr [RDX + 0x744]
ADD RCX,RDX
CMP RAX,RCX
JNZ 0x0013b29f
JMP 0x0013b271
LAB_0013b271:
MOV RDI,qword ptr [RBP + -0x9f0]
MOV RSI,qword ptr [RBP + -0x9f8]
MOV EDX,dword ptr [RBP + -0x9fc]
OR EDX,0x20
MOV RCX,qword ptr [RBP + -0xa08]
CALL 0x00137350
MOV dword ptr [RBP + -0x9e4],EAX
JMP 0x0013b3ba
LAB_0013b29f:
CMP dword ptr [RBP + -0xa48],0x0
JZ 0x0013b326
MOV RAX,qword ptr [RBP + -0x9f0]
MOV qword ptr [RBP + -0xa90],RAX
MOV RAX,qword ptr [RBP + -0x9f8]
MOV qword ptr [RBP + -0xa88],RAX
MOV EAX,dword ptr [RBP + -0x9fc]
OR EAX,0x20
MOV dword ptr [RBP + -0xa7c],EAX
MOV EDI,dword ptr [RBP + -0xa48]
MOV RAX,qword ptr [RBP + -0x9f0]
MOV RSI,qword ptr [RAX + 0x3b0]
CALL 0x00138cf0
MOV RDI,qword ptr [RBP + -0xa90]
MOV RSI,qword ptr [RBP + -0xa88]
MOV EDX,dword ptr [RBP + -0xa7c]
MOV RCX,RAX
CALL 0x00137350
MOV dword ptr [RBP + -0xa0c],EAX
CMP EAX,0x0
JG 0x0013b326
JMP 0x0013b315
LAB_0013b315:
MOV EAX,dword ptr [RBP + -0xa0c]
MOV dword ptr [RBP + -0x9e4],EAX
JMP 0x0013b3ba
LAB_0013b326:
MOV RDI,qword ptr [RBP + -0x9f0]
ADD RDI,0x200
MOV RAX,qword ptr [RBP + -0x9f0]
MOV RDX,qword ptr [RAX + 0x3b0]
LEA RSI,[RBP + -0xa70]
CALL 0x0013ab10
CMP RAX,0x0
JNZ 0x0013b362
JMP 0x0013b356
LAB_0013b356:
MOV dword ptr [RBP + -0x9e4],0xffffffff
JMP 0x0013b3ba
LAB_0013b362:
JMP 0x0013b364
LAB_0013b364:
MOV RDI,qword ptr [RBP + -0x9f0]
ADD RDI,0x200
CALL 0x001391e0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x9f0]
MOV qword ptr [RAX + 0x98],RCX
MOV RDI,qword ptr [RBP + -0x9f0]
ADD RDI,0x200
CALL 0x00139390
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x9f0]
MOV qword ptr [RAX + 0xc0],RCX
JMP 0x0013b3ae
LAB_0013b3ae:
JMP 0x0013b3b0
LAB_0013b3b0:
MOV dword ptr [RBP + -0x9e4],0x0
LAB_0013b3ba:
MOV EAX,dword ptr [RBP + -0x9e4]
MOV dword ptr [RBP + -0xa94],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0013b3e7
MOV EAX,dword ptr [RBP + -0xa94]
ADD RSP,0xab0
POP RBP
RET
LAB_0013b3e7:
CALL 0x00129230
|
int _ma_search_next(long *param_1,long *param_2,uint param_3,int8 param_4)
{
long *plVar1;
long *plVar2;
char cVar3;
int iVar4;
uint uVar5;
int8 uVar6;
long lVar7;
long in_FS_OFFSET;
int1 local_a78 [40];
int local_a50;
int4 local_a4c;
int1 *local_a40;
long local_a38;
long local_a20;
int local_a14;
int8 local_a10;
uint local_a04;
long *local_a00;
long *local_9f8;
int local_9ec;
int1 local_9e8 [2520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_a20 = param_2[1];
local_a10 = param_4;
local_a04 = param_3;
local_a00 = param_2;
local_9f8 = param_1;
if (((((param_3 & 8) != 0) && ((ulong)param_1[0x77] <= (ulong)param_1[0x76])) ||
(*(char *)((long)param_1 + 0x684) != '\0')) ||
((*(int *)((long)param_1 + 0x3d4) != *(int *)(local_a20 + 0xb8) &&
(((int)param_1[0x7a] != 0 || (*(char *)((long)param_1 + 0x685) != '\0')))))) {
local_9ec = _ma_search(param_1,param_2,param_3 | 0x20,param_4);
goto LAB_0013b3ba;
}
if (*(char *)((long)param_1 + 0x685) == '\0') {
_ma_page_setup(local_a78,param_1,local_a20,0,param_1[0x70]);
}
else {
cVar3 = _ma_fetch_keypage(local_a78,param_1,local_a20,param_1[0x89],0,3,param_1[0x70],0);
if (cVar3 != '\0') {
local_9ec = -1;
goto LAB_0013b3ba;
}
*(int1 *)((long)local_9f8 + 0x685) = 0;
}
local_a40 = local_9e8;
local_a38 = local_a20;
if ((local_a04 & 8) == 0) {
lVar7 = _ma_get_last_key(&local_a40,local_a78,local_9f8[0x76]);
plVar2 = local_9f8;
plVar1 = local_a00;
local_9f8[0x76] = lVar7;
if (local_9f8[0x76] == 0) {
local_9ec = -1;
goto LAB_0013b3ba;
}
if (local_9f8[0x76] == local_9f8[0x70] + (ulong)*(uint *)(*local_9f8 + 0x744)) {
local_9ec = _ma_search(local_9f8,local_a00,local_a04 | 0x20,local_a10);
goto LAB_0013b3ba;
}
if (local_a50 != 0) {
uVar5 = local_a04 | 0x20;
uVar6 = _ma_kpos(local_a50,local_9f8[0x76]);
local_a14 = _ma_search(plVar2,plVar1,uVar5,uVar6);
local_9ec = local_a14;
if (local_a14 < 1) goto LAB_0013b3ba;
}
lVar7 = _ma_get_last_key(local_9f8 + 0x40,local_a78,local_9f8[0x76]);
if (lVar7 == 0) {
local_9ec = -1;
goto LAB_0013b3ba;
}
}
else {
if (local_a50 != 0) {
uVar6 = _ma_kpos(local_a50,local_9f8[0x76]);
local_a14 = _ma_search(local_9f8,local_a00,local_a04 | 0x20,uVar6);
local_9ec = local_a14;
if (local_a14 < 1) goto LAB_0013b3ba;
}
if (((*(ushort *)(local_a20 + 0xa2) & 0x22) != 0) && (local_9f8[0x40] != *local_a00)) {
memcpy((void *)local_9f8[0x40],(void *)*local_a00,
(ulong)(uint)((int)local_a00[2] + *(int *)((long)local_a00 + 0x14)));
}
iVar4 = (**(code **)(local_a20 + 0xe0))(local_9f8 + 0x40,local_a4c,local_a50,local_9f8 + 0x76);
if (iVar4 == 0) {
local_9ec = -1;
goto LAB_0013b3ba;
}
}
lVar7 = _ma_row_pos_from_key(local_9f8 + 0x40);
local_9f8[0x13] = lVar7;
lVar7 = _ma_trid_from_key(local_9f8 + 0x40);
local_9f8[0x18] = lVar7;
local_9ec = 0;
LAB_0013b3ba:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_9ec;
}
|
|
3,007 | mi_unmap_file | eloqsql/storage/myisam/mi_packrec.c | void _mi_unmap_file(MI_INFO *info)
{
DBUG_ASSERT(info->s->options & HA_OPTION_COMPRESS_RECORD);
(void) my_munmap((char*) info->s->file_map, info->s->mmaped_length);
if (myisam_mmap_size != SIZE_T_MAX)
{
mysql_mutex_lock(&THR_LOCK_myisam_mmap);
myisam_mmap_used-= info->s->mmaped_length;
mysql_mutex_unlock(&THR_LOCK_myisam_mmap);
}
} | O0 | c | mi_unmap_file:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0xbc1de
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x270(%rax), %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x4d0(%rax), %rsi
callq 0x2a4a0
leaq 0x202fd2(%rip), %rax # 0x2bf1d8
cmpq $-0x1, (%rax)
je 0xbc255
leaq 0xbc71f5(%rip), %rdi # 0xc83408
leaq 0x979ac(%rip), %rsi # 0x153bc6
movl $0x61b, %edx # imm = 0x61B
callq 0xbbea0
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x4d0(%rax), %rax
leaq 0xbbe327(%rip), %rcx # 0xc7a560
movq (%rcx), %rcx
subq %rax, %rcx
leaq 0xbbe31a(%rip), %rax # 0xc7a560
movq %rcx, (%rax)
leaq 0xbc71b8(%rip), %rdi # 0xc83408
callq 0xbbf10
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _mi_unmap_file:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_BC1DE:
mov rax, [rbp+var_8]
mov rax, [rax]
mov rdi, [rax+270h]
mov rax, [rbp+var_8]
mov rax, [rax]
mov rsi, [rax+4D0h]
call _munmap
lea rax, myisam_mmap_size
cmp qword ptr [rax], 0FFFFFFFFFFFFFFFFh
jz short loc_BC255
lea rdi, THR_LOCK_myisam_mmap
lea rsi, aWorkspaceLlm4b_30; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 61Bh
call inline_mysql_mutex_lock_20
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+4D0h]
lea rcx, myisam_mmap_used
mov rcx, [rcx]
sub rcx, rax
lea rax, myisam_mmap_used
mov [rax], rcx
lea rdi, THR_LOCK_myisam_mmap
call inline_mysql_mutex_unlock_21
loc_BC255:
add rsp, 10h
pop rbp
retn
| _QWORD * mi_unmap_file(long long a1)
{
_QWORD *result; // rax
munmap(*(_QWORD *)(*(_QWORD *)a1 + 624LL), *(_QWORD *)(*(_QWORD *)a1 + 1232LL));
result = &myisam_mmap_size;
if ( myisam_mmap_size != -1LL )
{
inline_mysql_mutex_lock_20(
(long long)&THR_LOCK_myisam_mmap,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_packrec.c",
0x61Bu);
myisam_mmap_used -= *(_QWORD *)(*(_QWORD *)a1 + 1232LL);
return (_QWORD *)inline_mysql_mutex_unlock_21((long long)&THR_LOCK_myisam_mmap);
}
return result;
}
| _mi_unmap_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x001bc1de
LAB_001bc1de:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x270]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x4d0]
CALL 0x0012a4a0
LEA RAX,[0x3bf1d8]
CMP qword ptr [RAX],-0x1
JZ 0x001bc255
LEA RDI,[0xd83408]
LEA RSI,[0x253bc6]
MOV EDX,0x61b
CALL 0x001bbea0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x4d0]
LEA RCX,[0xd7a560]
MOV RCX,qword ptr [RCX]
SUB RCX,RAX
LEA RAX,[0xd7a560]
MOV qword ptr [RAX],RCX
LEA RDI,[0xd83408]
CALL 0x001bbf10
LAB_001bc255:
ADD RSP,0x10
POP RBP
RET
|
void _mi_unmap_file(long *param_1)
{
munmap(*(void **)(*param_1 + 0x270),*(size_t *)(*param_1 + 0x4d0));
if (myisam_mmap_size != -1) {
inline_mysql_mutex_lock
(THR_LOCK_myisam_mmap,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_packrec.c",0x61b);
myisam_mmap_used = myisam_mmap_used - *(long *)(*param_1 + 0x4d0);
inline_mysql_mutex_unlock(THR_LOCK_myisam_mmap);
}
return;
}
|
|
3,008 | maria_extra_keyflag | eloqsql/storage/maria/ma_extra.c | static void maria_extra_keyflag(MARIA_HA *info,
enum ha_extra_function function)
{
uint idx;
for (idx= 0; idx< info->s->base.keys; idx++)
{
switch (function) {
case HA_EXTRA_CHANGE_KEY_TO_UNIQUE:
info->s->keyinfo[idx].flag|= HA_NOSAME;
break;
case HA_EXTRA_CHANGE_KEY_TO_DUP:
info->s->keyinfo[idx].flag&= ~(HA_NOSAME);
break;
default:
break;
}
}
} | O0 | c | maria_extra_keyflag:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
cmpl 0x3e8(%rcx), %eax
jae 0x4360d
movl -0xc(%rbp), %eax
movl %eax, -0x14(%rbp)
subl $0x1e, %eax
je 0x4359f
jmp 0x43595
movl -0x14(%rbp), %eax
subl $0x1f, %eax
je 0x435cd
jmp 0x435fb
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x570(%rax), %rax
movl -0x10(%rbp), %ecx
imulq $0x118, %rcx, %rcx # imm = 0x118
addq %rcx, %rax
movzwl 0xa2(%rax), %ecx
orl $0x1, %ecx
movw %cx, 0xa2(%rax)
jmp 0x435fd
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x570(%rax), %rax
movl -0x10(%rbp), %ecx
imulq $0x118, %rcx, %rcx # imm = 0x118
addq %rcx, %rax
movzwl 0xa2(%rax), %ecx
andl $-0x2, %ecx
movw %cx, 0xa2(%rax)
jmp 0x435fd
jmp 0x435fd
jmp 0x435ff
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x43572
popq %rbp
retq
nop
| maria_extra_keyflag:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], 0
loc_43572:
mov eax, [rbp+var_10]
mov rcx, [rbp+var_8]
mov rcx, [rcx]
cmp eax, [rcx+3E8h]
jnb loc_4360D
mov eax, [rbp+var_C]
mov [rbp+var_14], eax
sub eax, 1Eh
jz short loc_4359F
jmp short $+2
loc_43595:
mov eax, [rbp+var_14]
sub eax, 1Fh
jz short loc_435CD
jmp short loc_435FB
loc_4359F:
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+570h]
mov ecx, [rbp+var_10]
imul rcx, 118h
add rax, rcx
movzx ecx, word ptr [rax+0A2h]
or ecx, 1
mov [rax+0A2h], cx
jmp short loc_435FD
loc_435CD:
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+570h]
mov ecx, [rbp+var_10]
imul rcx, 118h
add rax, rcx
movzx ecx, word ptr [rax+0A2h]
and ecx, 0FFFFFFFEh
mov [rax+0A2h], cx
jmp short loc_435FD
loc_435FB:
jmp short $+2
loc_435FD:
jmp short $+2
loc_435FF:
mov eax, [rbp+var_10]
add eax, 1
mov [rbp+var_10], eax
jmp loc_43572
loc_4360D:
pop rbp
retn
| long long maria_extra_keyflag(long long a1, int a2)
{
long long result; // rax
long long v3; // rax
long long v4; // rax
unsigned int i; // [rsp+4h] [rbp-10h]
for ( i = 0; ; ++i )
{
result = i;
if ( i >= *(_DWORD *)(*(_QWORD *)a1 + 1000LL) )
break;
if ( a2 == 30 )
{
v3 = 280LL * i + *(_QWORD *)(*(_QWORD *)a1 + 1392LL);
*(_WORD *)(v3 + 162) |= 1u;
}
else if ( a2 == 31 )
{
v4 = 280LL * i + *(_QWORD *)(*(_QWORD *)a1 + 1392LL);
*(_WORD *)(v4 + 162) &= ~1u;
}
}
return result;
}
| maria_extra_keyflag:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],0x0
LAB_00143572:
MOV EAX,dword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX]
CMP EAX,dword ptr [RCX + 0x3e8]
JNC 0x0014360d
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x14],EAX
SUB EAX,0x1e
JZ 0x0014359f
JMP 0x00143595
LAB_00143595:
MOV EAX,dword ptr [RBP + -0x14]
SUB EAX,0x1f
JZ 0x001435cd
JMP 0x001435fb
LAB_0014359f:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x570]
MOV ECX,dword ptr [RBP + -0x10]
IMUL RCX,RCX,0x118
ADD RAX,RCX
MOVZX ECX,word ptr [RAX + 0xa2]
OR ECX,0x1
MOV word ptr [RAX + 0xa2],CX
JMP 0x001435fd
LAB_001435cd:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x570]
MOV ECX,dword ptr [RBP + -0x10]
IMUL RCX,RCX,0x118
ADD RAX,RCX
MOVZX ECX,word ptr [RAX + 0xa2]
AND ECX,0xfffffffe
MOV word ptr [RAX + 0xa2],CX
JMP 0x001435fd
LAB_001435fb:
JMP 0x001435fd
LAB_001435fd:
JMP 0x001435ff
LAB_001435ff:
MOV EAX,dword ptr [RBP + -0x10]
ADD EAX,0x1
MOV dword ptr [RBP + -0x10],EAX
JMP 0x00143572
LAB_0014360d:
POP RBP
RET
|
void maria_extra_keyflag(long *param_1,int param_2)
{
long lVar1;
int4 local_18;
for (local_18 = 0; local_18 < *(uint *)(*param_1 + 1000); local_18 = local_18 + 1) {
if (param_2 == 0x1e) {
lVar1 = *(long *)(*param_1 + 0x570) + (ulong)local_18 * 0x118;
*(ushort *)(lVar1 + 0xa2) = *(ushort *)(lVar1 + 0xa2) | 1;
}
else if (param_2 == 0x1f) {
lVar1 = *(long *)(*param_1 + 0x570) + (ulong)local_18 * 0x118;
*(ushort *)(lVar1 + 0xa2) = *(ushort *)(lVar1 + 0xa2) & 0xfffe;
}
}
return;
}
|
|
3,009 | maria_ftparser_alloc_param | eloqsql/storage/maria/ma_ft_parser.c | MYSQL_FTPARSER_PARAM* maria_ftparser_alloc_param(MARIA_HA *info)
{
if (!info->ftparser_param)
{
/*
. info->ftparser_param can not be zero after the initialization,
because it always includes built-in fulltext parser. And built-in
parser can be called even if the table has no fulltext indexes and
no varchar/text fields.
ftb_find_relevance... parser (ftb_find_relevance_parse,
ftb_find_relevance_add_word) calls ftb_check_phrase... parser
(ftb_check_phrase_internal, ftb_phrase_add_word). Thus MAX_PARAM_NR=2.
*/
info->ftparser_param= (MYSQL_FTPARSER_PARAM *)
my_malloc(PSI_INSTRUMENT_ME, MAX_PARAM_NR * sizeof(MYSQL_FTPARSER_PARAM) *
info->s->ftkeys, MYF(MY_WME | MY_ZEROFILL));
init_alloc_root(PSI_INSTRUMENT_ME, &info->ft_memroot,
FTPARSER_MEMROOT_ALLOC_SIZE, 0, MYF(0));
}
return info->ftparser_param;
} | O0 | c | maria_ftparser_alloc_param:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x368(%rax)
jne 0x4b9b6
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x748(%rax), %eax
movl %eax, %esi
shlq $0x7, %rsi
xorl %edi, %edi
movl $0x30, %edx
callq 0xf3210
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x368(%rax)
movq -0x8(%rbp), %rsi
addq $0x328, %rsi # imm = 0x328
xorl %edi, %edi
movl $0x10000, %edx # imm = 0x10000
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rcx
callq 0xecb50
movq -0x8(%rbp), %rax
movq 0x368(%rax), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| maria_ftparser_alloc_param:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+368h], 0
jnz short loc_4B9B6
mov rax, [rbp+var_8]
mov rax, [rax]
mov eax, [rax+748h]
mov esi, eax
shl rsi, 7
xor edi, edi
mov edx, 30h ; '0'
call my_malloc
mov rcx, rax
mov rax, [rbp+var_8]
mov [rax+368h], rcx
mov rsi, [rbp+var_8]
add rsi, 328h
xor edi, edi
mov edx, 10000h
xor eax, eax
mov r8d, eax
mov rcx, r8
call init_alloc_root
loc_4B9B6:
mov rax, [rbp+var_8]
mov rax, [rax+368h]
add rsp, 10h
pop rbp
retn
| long long maria_ftparser_alloc_param(_QWORD *a1)
{
if ( !a1[109] )
{
a1[109] = my_malloc(0LL, (unsigned long long)*(unsigned int *)(*a1 + 1864LL) << 7, 48LL);
init_alloc_root(0LL, a1 + 101, 0x10000LL, 0LL);
}
return a1[109];
}
| maria_ftparser_alloc_param:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x368],0x0
JNZ 0x0014b9b6
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x748]
MOV ESI,EAX
SHL RSI,0x7
XOR EDI,EDI
MOV EDX,0x30
CALL 0x001f3210
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x368],RCX
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x328
XOR EDI,EDI
MOV EDX,0x10000
XOR EAX,EAX
MOV R8D,EAX
MOV RCX,R8
CALL 0x001ecb50
LAB_0014b9b6:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x368]
ADD RSP,0x10
POP RBP
RET
|
long maria_ftparser_alloc_param(long *param_1)
{
long lVar1;
if (param_1[0x6d] == 0) {
lVar1 = my_malloc(0,(ulong)*(uint *)(*param_1 + 0x748) << 7,0x30);
param_1[0x6d] = lVar1;
init_alloc_root(0,param_1 + 0x65,0x10000,0);
}
return param_1[0x6d];
}
|
|
3,010 | js_create_array | bluesky950520[P]quickjs/quickjs.c | static JSValue js_create_array(JSContext *ctx, int len, JSValue *tab)
{
JSValue obj;
int i;
obj = JS_NewArray(ctx);
if (JS_IsException(obj))
return JS_EXCEPTION;
for(i = 0; i < len; i++) {
if (JS_CreateDataPropertyUint32(ctx, obj, i, js_dup(tab[i]), 0) < 0) {
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
}
return obj;
} | O0 | c | js_create_array:
subq $0x78, %rsp
movq %rdi, 0x60(%rsp)
movl %esi, 0x5c(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x60(%rsp), %rdi
callq 0x30810
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x76ba4
movl $0x0, 0x68(%rsp)
movq $0x6, 0x70(%rsp)
jmp 0x76c73
movl $0x0, 0x3c(%rsp)
movl 0x3c(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jge 0x76c5f
movq 0x60(%rsp), %rax
movq %rax, 0x8(%rsp)
movslq 0x3c(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rax
movslq 0x3c(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
callq 0x279c0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rcx
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x18(%rsp), %r8
movq 0x20(%rsp), %r9
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x76c90
cmpl $0x0, %eax
jge 0x76c4d
movq 0x60(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x29f80
movl $0x0, 0x68(%rsp)
movq $0x6, 0x70(%rsp)
jmp 0x76c73
jmp 0x76c4f
movl 0x3c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3c(%rsp)
jmp 0x76bac
movq 0x40(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x68(%rsp), %rax
movq 0x70(%rsp), %rdx
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)
| js_create_array:
sub rsp, 78h
mov [rsp+78h+var_18], rdi
mov [rsp+78h+var_1C], esi
mov [rsp+78h+var_28], rdx
mov rdi, [rsp+78h+var_18]
call JS_NewArray
mov [rsp+78h+var_50], rax
mov [rsp+78h+var_48], rdx
mov rax, [rsp+78h+var_50]
mov [rsp+78h+var_38], rax
mov rax, [rsp+78h+var_48]
mov [rsp+78h+var_30], rax
mov rdi, [rsp+78h+var_38]
mov rsi, [rsp+78h+var_30]
call JS_IsException_1
cmp eax, 0
jz short loc_76BA4
mov dword ptr [rsp+78h+var_10], 0
mov [rsp+78h+var_8], 6
jmp loc_76C73
loc_76BA4:
mov [rsp+78h+var_3C], 0
loc_76BAC:
mov eax, [rsp+78h+var_3C]
cmp eax, [rsp+78h+var_1C]
jge loc_76C5F
mov rax, [rsp+78h+var_18]
mov [rsp+78h+var_70], rax
movsxd rax, [rsp+78h+var_3C]
mov [rsp+78h+var_68], rax
mov rax, [rsp+78h+var_28]
movsxd rcx, [rsp+78h+var_3C]
shl rcx, 4
add rax, rcx
mov rdi, [rax]
mov rsi, [rax+8]
call js_dup
mov rdi, [rsp+78h+var_70]
mov rcx, [rsp+78h+var_68]
mov [rsp+78h+var_60], rax
mov [rsp+78h+var_58], rdx
mov rsi, [rsp+78h+var_38]
mov rdx, [rsp+78h+var_30]
mov r8, [rsp+78h+var_60]
mov r9, [rsp+78h+var_58]
xor eax, eax
mov [rsp+78h+var_78], 0
call JS_CreateDataPropertyUint32
cmp eax, 0
jge short loc_76C4D
mov rdi, [rsp+78h+var_18]
mov rsi, [rsp+78h+var_38]
mov rdx, [rsp+78h+var_30]
call JS_FreeValue
mov dword ptr [rsp+78h+var_10], 0
mov [rsp+78h+var_8], 6
jmp short loc_76C73
loc_76C4D:
jmp short $+2
loc_76C4F:
mov eax, [rsp+78h+var_3C]
add eax, 1
mov [rsp+78h+var_3C], eax
jmp loc_76BAC
loc_76C5F:
mov rax, [rsp+78h+var_38]
mov [rsp+78h+var_10], rax
mov rax, [rsp+78h+var_30]
mov [rsp+78h+var_8], rax
loc_76C73:
mov rax, [rsp+78h+var_10]
mov rdx, [rsp+78h+var_8]
add rsp, 78h
retn
| long long js_create_array(long long a1, int a2, long long a3)
{
long long v3; // rdx
int v4; // edx
unsigned int v6; // [rsp+18h] [rbp-60h]
long long v7; // [rsp+28h] [rbp-50h]
int i; // [rsp+3Ch] [rbp-3Ch]
long long v9; // [rsp+48h] [rbp-30h]
long long v11; // [rsp+68h] [rbp-10h]
v7 = JS_NewArray(a1);
v9 = v3;
if ( JS_IsException_1(v7, v3) )
{
LODWORD(v11) = 0;
}
else
{
for ( i = 0; i < a2; ++i )
{
v6 = (unsigned int)js_dup(*(_DWORD **)(16LL * i + a3), *(_QWORD *)(16LL * i + a3 + 8));
if ( (int)JS_CreateDataPropertyUint32(a1, v7, v9, i, v6, v4, 0) < 0 )
{
JS_FreeValue(a1, v7, v9);
LODWORD(v11) = 0;
return v11;
}
}
return v7;
}
return v11;
}
| js_create_array:
SUB RSP,0x78
MOV qword ptr [RSP + 0x60],RDI
MOV dword ptr [RSP + 0x5c],ESI
MOV qword ptr [RSP + 0x50],RDX
MOV RDI,qword ptr [RSP + 0x60]
CALL 0x00130810
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x30],RDX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x48]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x00176ba4
MOV dword ptr [RSP + 0x68],0x0
MOV qword ptr [RSP + 0x70],0x6
JMP 0x00176c73
LAB_00176ba4:
MOV dword ptr [RSP + 0x3c],0x0
LAB_00176bac:
MOV EAX,dword ptr [RSP + 0x3c]
CMP EAX,dword ptr [RSP + 0x5c]
JGE 0x00176c5f
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x8],RAX
MOVSXD RAX,dword ptr [RSP + 0x3c]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOVSXD RCX,dword ptr [RSP + 0x3c]
SHL RCX,0x4
ADD RAX,RCX
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001279c0
MOV RDI,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
MOV R8,qword ptr [RSP + 0x18]
MOV R9,qword ptr [RSP + 0x20]
XOR EAX,EAX
MOV dword ptr [RSP],0x0
CALL 0x00176c90
CMP EAX,0x0
JGE 0x00176c4d
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x00129f80
MOV dword ptr [RSP + 0x68],0x0
MOV qword ptr [RSP + 0x70],0x6
JMP 0x00176c73
LAB_00176c4d:
JMP 0x00176c4f
LAB_00176c4f:
MOV EAX,dword ptr [RSP + 0x3c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x3c],EAX
JMP 0x00176bac
LAB_00176c5f:
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x70],RAX
LAB_00176c73:
MOV RAX,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
ADD RSP,0x78
RET
|
int1 [16] js_create_array(int8 param_1,int param_2,long param_3)
{
int iVar1;
int8 *puVar3;
int1 auVar4 [16];
int1 auVar5 [16];
int local_3c;
int4 local_10;
int4 uStack_c;
int8 local_8;
int8 uVar2;
auVar4 = JS_NewArray(param_1);
local_8 = auVar4._8_8_;
uVar2 = auVar4._0_8_;
iVar1 = JS_IsException(uVar2,local_8);
if (iVar1 == 0) {
for (local_3c = 0; local_3c < param_2; local_3c = local_3c + 1) {
puVar3 = (int8 *)(param_3 + (long)local_3c * 0x10);
auVar5 = js_dup(*puVar3,puVar3[1]);
iVar1 = JS_CreateDataPropertyUint32
(param_1,uVar2,local_8,(long)local_3c,auVar5._0_8_,auVar5._8_8_,0);
if (iVar1 < 0) {
JS_FreeValue(param_1,uVar2,local_8);
local_10 = 0;
local_8 = 6;
goto LAB_00176c73;
}
}
local_10 = auVar4._0_4_;
uStack_c = auVar4._4_4_;
}
else {
local_10 = 0;
local_8 = 6;
}
LAB_00176c73:
auVar4._4_4_ = uStack_c;
auVar4._0_4_ = local_10;
auVar4._8_8_ = local_8;
return auVar4;
}
|
|
3,011 | js_create_array | bluesky950520[P]quickjs/quickjs.c | static JSValue js_create_array(JSContext *ctx, int len, JSValue *tab)
{
JSValue obj;
int i;
obj = JS_NewArray(ctx);
if (JS_IsException(obj))
return JS_EXCEPTION;
for(i = 0; i < len; i++) {
if (JS_CreateDataPropertyUint32(ctx, obj, i, js_dup(tab[i]), 0) < 0) {
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
}
return obj;
} | O1 | c | js_create_array:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
movq 0x38(%rdi), %rsi
incl (%rsi)
pushq $0x2
popq %rdx
callq 0xf7b2
movq %rdx, %rbx
pushq $0x6
popq %rdx
cmpl $0x6, %ebx
jne 0x10dd9
xorl %eax, %eax
xorl %ecx, %ecx
movq %rdx, %rbx
jmp 0x10e67
movq %rax, %r12
testl %ebp, %ebp
jle 0x10e3c
movl %ebp, %ebp
addq $0x8, %r14
xorl %r13d, %r13d
movq -0x8(%r14), %rax
movq (%r14), %rcx
movq %rax, 0x18(%rsp)
cmpl $-0x9, %ecx
jb 0x10e01
movq 0x18(%rsp), %rdx
incl (%rdx)
movq %rax, 0x18(%rsp)
movq %rcx, 0x20(%rsp)
movups 0x18(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
pushq $0x7
popq %r9
callq 0x2ab89
testl %eax, %eax
js 0x10e51
incq %r13
addq $0x10, %r14
cmpq %r13, %rbp
jne 0x10de9
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %r12, %rcx
andq %rax, %rcx
movl %r12d, %eax
jmp 0x10e67
movq 0x18(%r15), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x21922
xorl %eax, %eax
xorl %ecx, %ecx
pushq $0x6
popq %rbx
orq %rcx, %rax
movq %rbx, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_create_array:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, rdx
mov ebp, esi
mov r15, rdi
mov rsi, [rdi+38h]
inc dword ptr [rsi]
push 2
pop rdx
call JS_NewObjectFromShape
mov rbx, rdx
push 6
pop rdx
cmp ebx, 6
jnz short loc_10DD9
xor eax, eax
xor ecx, ecx
mov rbx, rdx
jmp loc_10E67
loc_10DD9:
mov r12, rax
test ebp, ebp
jle short loc_10E3C
mov ebp, ebp
add r14, 8
xor r13d, r13d
loc_10DE9:
mov rax, [r14-8]
mov rcx, [r14]
mov qword ptr [rsp+58h+var_40], rax
cmp ecx, 0FFFFFFF7h
jb short loc_10E01
mov rdx, qword ptr [rsp+58h+var_40]
inc dword ptr [rdx]
loc_10E01:
mov qword ptr [rsp+58h+var_40], rax
mov qword ptr [rsp+58h+var_40+8], rcx
movups xmm0, [rsp+58h+var_40]
movups [rsp+58h+var_58], xmm0
mov rdi, r15
mov rsi, r12
mov rdx, rbx
mov rcx, r13
xor r8d, r8d
push 7
pop r9
call JS_DefinePropertyValueValue
test eax, eax
js short loc_10E51
inc r13
add r14, 10h
cmp rbp, r13
jnz short loc_10DE9
loc_10E3C:
mov rax, 0FFFFFFFF00000000h
mov rcx, r12
and rcx, rax
mov eax, r12d
jmp short loc_10E67
loc_10E51:
mov rdi, [r15+18h]
mov rsi, r12
mov rdx, rbx
call JS_FreeValueRT
xor eax, eax
xor ecx, ecx
push 6
pop rbx
loc_10E67:
or rax, rcx
mov rdx, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long js_create_array(long long a1, int a2, long long a3)
{
_DWORD *v5; // rsi
long long v6; // rax
int v7; // edx
int v8; // ebx
long long v9; // rax
unsigned long long v10; // rcx
long long v11; // r12
long long *v12; // r14
long long v13; // r13
long long v14; // rax
long long v15; // rcx
v5 = *(_DWORD **)(a1 + 56);
++*v5;
v6 = JS_NewObjectFromShape(a1, v5, 2u);
v8 = v7;
if ( v7 == 6 )
{
v9 = 0LL;
v10 = 0LL;
}
else
{
v11 = v6;
if ( a2 <= 0 )
{
LABEL_9:
v10 = v11 & 0xFFFFFFFF00000000LL;
v9 = (unsigned int)v11;
}
else
{
v12 = (long long *)(a3 + 8);
v13 = 0LL;
while ( 1 )
{
v14 = *(v12 - 1);
v15 = *v12;
if ( (unsigned int)*v12 >= 0xFFFFFFF7 )
++*(_DWORD *)*(v12 - 1);
if ( (int)JS_DefinePropertyValueValue(a1, v11, v8, v13, 0, 7, v14, v15) < 0 )
break;
++v13;
v12 += 2;
if ( a2 == v13 )
goto LABEL_9;
}
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v11);
v9 = 0LL;
v10 = 0LL;
}
}
return v10 | v9;
}
| js_create_array:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RDX
MOV EBP,ESI
MOV R15,RDI
MOV RSI,qword ptr [RDI + 0x38]
INC dword ptr [RSI]
PUSH 0x2
POP RDX
CALL 0x0010f7b2
MOV RBX,RDX
PUSH 0x6
POP RDX
CMP EBX,0x6
JNZ 0x00110dd9
XOR EAX,EAX
XOR ECX,ECX
MOV RBX,RDX
JMP 0x00110e67
LAB_00110dd9:
MOV R12,RAX
TEST EBP,EBP
JLE 0x00110e3c
MOV EBP,EBP
ADD R14,0x8
XOR R13D,R13D
LAB_00110de9:
MOV RAX,qword ptr [R14 + -0x8]
MOV RCX,qword ptr [R14]
MOV qword ptr [RSP + 0x18],RAX
CMP ECX,-0x9
JC 0x00110e01
MOV RDX,qword ptr [RSP + 0x18]
INC dword ptr [RDX]
LAB_00110e01:
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RCX
MOVUPS XMM0,xmmword ptr [RSP + 0x18]
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,R15
MOV RSI,R12
MOV RDX,RBX
MOV RCX,R13
XOR R8D,R8D
PUSH 0x7
POP R9
CALL 0x0012ab89
TEST EAX,EAX
JS 0x00110e51
INC R13
ADD R14,0x10
CMP RBP,R13
JNZ 0x00110de9
LAB_00110e3c:
MOV RAX,-0x100000000
MOV RCX,R12
AND RCX,RAX
MOV EAX,R12D
JMP 0x00110e67
LAB_00110e51:
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,R12
MOV RDX,RBX
CALL 0x00121922
XOR EAX,EAX
XOR ECX,ECX
PUSH 0x6
POP RBX
LAB_00110e67:
OR RAX,RCX
MOV RDX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16] js_create_array(long param_1,uint param_2,long param_3)
{
int *piVar1;
int8 uVar2;
int iVar3;
ulong uVar4;
int8 uVar5;
ulong uVar6;
int8 *puVar7;
int1 auVar8 [16];
int4 local_40;
piVar1 = *(int **)(param_1 + 0x38);
*piVar1 = *piVar1 + 1;
auVar8 = JS_NewObjectFromShape(param_1,piVar1,2);
uVar5 = auVar8._8_8_;
uVar4 = auVar8._0_8_;
if (auVar8._8_4_ == 6) {
uVar4 = 0;
uVar6 = 0;
uVar5 = 6;
}
else {
if (0 < (int)param_2) {
puVar7 = (int8 *)(param_3 + 8);
uVar6 = 0;
do {
piVar1 = (int *)puVar7[-1];
uVar2 = *puVar7;
if (0xfffffff6 < (uint)uVar2) {
*piVar1 = *piVar1 + 1;
}
local_40 = SUB84(piVar1,0);
iVar3 = JS_DefinePropertyValueValue(param_1,uVar4,uVar5,uVar6,0,7,local_40,(uint)uVar2);
if (iVar3 < 0) {
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar4,uVar5);
uVar4 = 0;
uVar6 = 0;
uVar5 = 6;
goto LAB_00110e67;
}
uVar6 = uVar6 + 1;
puVar7 = puVar7 + 2;
} while (param_2 != uVar6);
}
uVar6 = uVar4 & 0xffffffff00000000;
uVar4 = uVar4 & 0xffffffff;
}
LAB_00110e67:
auVar8._0_8_ = uVar4 | uVar6;
auVar8._8_8_ = uVar5;
return auVar8;
}
|
|
3,012 | google::protobuf::UnescapeCEscapeSequences(char const*, char*, 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>>>>*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc | int UnescapeCEscapeSequences(const char *source, char *dest,
std::vector<std::string> *errors) {
GOOGLE_DCHECK(errors == nullptr) << "Error reporting not implemented.";
char* d = dest;
const char* p = source;
// Small optimization for case where source = dest and there's no escaping
while ( p == d && *p != '\0' && *p != '\\' )
p++, d++;
while (*p != '\0') {
if (*p != '\\') {
*d++ = *p++;
} else {
switch ( *++p ) { // skip past the '\\'
case '\0':
LOG_STRING(ERROR, errors) << "String cannot end with \\";
*d = '\0';
return d - dest; // we're done with p
case 'a': *d++ = '\a'; break;
case 'b': *d++ = '\b'; break;
case 'f': *d++ = '\f'; break;
case 'n': *d++ = '\n'; break;
case 'r': *d++ = '\r'; break;
case 't': *d++ = '\t'; break;
case 'v': *d++ = '\v'; break;
case '\\': *d++ = '\\'; break;
case '?': *d++ = '\?'; break; // \? Who knew?
case '\'': *d++ = '\''; break;
case '"': *d++ = '\"'; break;
case '0': case '1': case '2': case '3': // octal digit: 1 to 3 digits
case '4': case '5': case '6': case '7': {
char ch = *p - '0';
if ( IS_OCTAL_DIGIT(p[1]) )
ch = ch * 8 + *++p - '0';
if ( IS_OCTAL_DIGIT(p[1]) ) // safe (and easy) to do this twice
ch = ch * 8 + *++p - '0'; // now points at last digit
*d++ = ch;
break;
}
case 'x': case 'X': {
if (!isxdigit(p[1])) {
if (p[1] == '\0') {
LOG_STRING(ERROR, errors) << "String cannot end with \\x";
} else {
LOG_STRING(ERROR, errors) <<
"\\x cannot be followed by non-hex digit: \\" << *p << p[1];
}
break;
}
unsigned int ch = 0;
const char *hex_start = p;
while (isxdigit(p[1])) // arbitrarily many hex digits
ch = (ch << 4) + hex_digit_to_int(*++p);
if (ch > 0xFF)
LOG_STRING(ERROR, errors)
<< "Value of "
<< "\\" << std::string(hex_start, p + 1 - hex_start)
<< " exceeds 8 bits";
*d++ = ch;
break;
}
#if 0 // TODO(kenton): Support \u and \U? Requires runetochar().
case 'u': {
// \uhhhh => convert 4 hex digits to UTF-8
char32 rune = 0;
const char *hex_start = p;
for (int i = 0; i < 4; ++i) {
if (isxdigit(p[1])) { // Look one char ahead.
rune = (rune << 4) + hex_digit_to_int(*++p); // Advance p.
} else {
LOG_STRING(ERROR, errors)
<< "\\u must be followed by 4 hex digits: \\"
<< std::string(hex_start, p+1-hex_start);
break;
}
}
d += runetochar(d, &rune);
break;
}
case 'U': {
// \Uhhhhhhhh => convert 8 hex digits to UTF-8
char32 rune = 0;
const char *hex_start = p;
for (int i = 0; i < 8; ++i) {
if (isxdigit(p[1])) { // Look one char ahead.
// Don't change rune until we're sure this
// is within the Unicode limit, but do advance p.
char32 newrune = (rune << 4) + hex_digit_to_int(*++p);
if (newrune > 0x10FFFF) {
LOG_STRING(ERROR, errors)
<< "Value of \\"
<< std::string(hex_start, p + 1 - hex_start)
<< " exceeds Unicode limit (0x10FFFF)";
break;
} else {
rune = newrune;
}
} else {
LOG_STRING(ERROR, errors)
<< "\\U must be followed by 8 hex digits: \\"
<< std::string(hex_start, p+1-hex_start);
break;
}
}
d += runetochar(d, &rune);
break;
}
#endif
default:
LOG_STRING(ERROR, errors) << "Unknown escape sequence: \\" << *p;
}
p++; // read past letter we escaped
}
}
*d = '\0';
return d - dest;
} | O0 | cpp | google::protobuf::UnescapeCEscapeSequences(char const*, char*, 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>>>>*):
subq $0xc8, %rsp
movq %rdi, 0xb8(%rsp)
movq %rsi, 0xb0(%rsp)
movq %rdx, 0xa8(%rsp)
xorl %eax, %eax
testb $0x1, %al
jne 0x19eb8a
jmp 0x19ec45
movq 0xa8(%rsp), %rax
movb $0x0, 0x6f(%rsp)
cmpq $0x0, %rax
jne 0x19eb9f
jmp 0x19ec07
leaq 0x247402(%rip), %rdx # 0x3e5fa8
leaq 0x70(%rsp), %rdi
movq %rdi, 0x28(%rsp)
movl $0x3, %esi
movl $0x13c, %ecx # imm = 0x13C
callq 0x19a670
movq 0x28(%rsp), %rdi
movb $0x1, 0x6f(%rsp)
leaq 0x247442(%rip), %rsi # 0x3e6012
callq 0x199f30
movq %rax, 0x30(%rsp)
jmp 0x19ebdc
movq 0x30(%rsp), %rdi
leaq 0x24744c(%rip), %rsi # 0x3e6034
callq 0x199f30
movq %rax, 0x20(%rsp)
jmp 0x19ebf4
movq 0x20(%rsp), %rsi
leaq 0x5b(%rsp), %rdi
callq 0x19a0e0
jmp 0x19ec05
jmp 0x19ec07
testb $0x1, 0x6f(%rsp)
jne 0x19ec10
jmp 0x19ec1a
leaq 0x70(%rsp), %rdi
callq 0x19a6b0
jmp 0x19eb7f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
testb $0x1, 0x6f(%rsp)
jne 0x19ec36
jmp 0x19ec40
leaq 0x70(%rsp), %rdi
callq 0x19a6b0
jmp 0x19f014
movq 0xb0(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rcx
xorl %eax, %eax
cmpq 0x50(%rsp), %rcx
movb %al, 0x1f(%rsp)
jne 0x19ec96
movq 0x48(%rsp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x1f(%rsp)
je 0x19ec96
movq 0x48(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x5c, %eax
setne %al
movb %al, 0x1f(%rsp)
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x19eca0
jmp 0x19ecbe
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x48(%rsp)
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x19ec5f
jmp 0x19ecc0
movq 0x48(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x19efe6
movq 0x48(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x5c, %eax
je 0x19ed09
movq 0x48(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x48(%rsp)
movb (%rax), %cl
movq 0x50(%rsp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x50(%rsp)
movb %cl, (%rax)
jmp 0x19efe1
movq 0x48(%rsp), %rax
movq %rax, %rcx
incq %rcx
movq %rcx, 0x48(%rsp)
movsbl 0x1(%rax), %eax
movl %eax, %ecx
movq %rcx, 0x10(%rsp)
subl $0x78, %eax
ja 0x19efd1
movq 0x10(%rsp), %rax
leaq 0x246bb7(%rip), %rcx # 0x3e58f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x50(%rsp), %rax
movb $0x0, (%rax)
movq 0x50(%rsp), %rax
movq 0xb0(%rsp), %rcx
subq %rcx, %rax
movl %eax, 0xc4(%rsp)
jmp 0x19f005
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rsp)
movb $0x7, (%rax)
jmp 0x19efd3
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rsp)
movb $0x8, (%rax)
jmp 0x19efd3
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rsp)
movb $0xc, (%rax)
jmp 0x19efd3
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rsp)
movb $0xa, (%rax)
jmp 0x19efd3
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rsp)
movb $0xd, (%rax)
jmp 0x19efd3
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rsp)
movb $0x9, (%rax)
jmp 0x19efd3
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rsp)
movb $0xb, (%rax)
jmp 0x19efd3
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rsp)
movb $0x5c, (%rax)
jmp 0x19efd3
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rsp)
movb $0x3f, (%rax)
jmp 0x19efd3
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rsp)
movb $0x27, (%rax)
jmp 0x19efd3
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rsp)
movb $0x22, (%rax)
jmp 0x19efd3
movq 0x48(%rsp), %rax
movsbl (%rax), %eax
subl $0x30, %eax
movb %al, 0x47(%rsp)
movq 0x48(%rsp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x30, %eax
jl 0x19eeca
movq 0x48(%rsp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x37, %eax
jg 0x19eeca
movsbl 0x47(%rsp), %eax
shll $0x3, %eax
movq 0x48(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0x48(%rsp)
movsbl 0x1(%rcx), %ecx
addl %ecx, %eax
subl $0x30, %eax
movb %al, 0x47(%rsp)
movq 0x48(%rsp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x30, %eax
jl 0x19ef0c
movq 0x48(%rsp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x37, %eax
jg 0x19ef0c
movsbl 0x47(%rsp), %eax
shll $0x3, %eax
movq 0x48(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0x48(%rsp)
movsbl 0x1(%rcx), %ecx
addl %ecx, %eax
subl $0x30, %eax
movb %al, 0x47(%rsp)
movb 0x47(%rsp), %cl
movq 0x50(%rsp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x50(%rsp)
movb %cl, (%rax)
jmp 0x19efd3
movq 0x48(%rsp), %rax
movsbl 0x1(%rax), %edi
callq 0x1a7940
testb $0x1, %al
jne 0x19ef51
movq 0x48(%rsp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
jne 0x19ef4a
jmp 0x19ef4c
jmp 0x19ef4c
jmp 0x19efd3
movl $0x0, 0x40(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x48(%rsp), %rax
movsbl 0x1(%rax), %edi
callq 0x1a7940
testb $0x1, %al
jne 0x19ef77
jmp 0x19efaa
movl 0x40(%rsp), %eax
shll $0x4, %eax
movl %eax, 0xc(%rsp)
movq 0x48(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x48(%rsp)
movsbl 0x1(%rax), %edi
callq 0x1a79c0
movl %eax, %ecx
movl 0xc(%rsp), %eax
addl %ecx, %eax
movl %eax, 0x40(%rsp)
jmp 0x19ef63
cmpl $0xff, 0x40(%rsp)
jbe 0x19efb6
jmp 0x19efb6
movl 0x40(%rsp), %eax
movb %al, %cl
movq 0x50(%rsp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x50(%rsp)
movb %cl, (%rax)
jmp 0x19efd3
jmp 0x19efd3
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x48(%rsp)
jmp 0x19ecc0
movq 0x50(%rsp), %rax
movb $0x0, (%rax)
movq 0x50(%rsp), %rax
movq 0xb0(%rsp), %rcx
subq %rcx, %rax
movl %eax, 0xc4(%rsp)
movl 0xc4(%rsp), %eax
addq $0xc8, %rsp
retq
movq 0x60(%rsp), %rdi
callq 0x90db0
nop
| _ZN6google8protobuf24UnescapeCEscapeSequencesEPKcPcPSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE:
sub rsp, 0C8h
mov [rsp+0C8h+var_10], rdi
mov [rsp+0C8h+var_18], rsi
mov [rsp+0C8h+var_20], rdx
loc_19EB7F:
xor eax, eax
test al, 1
jnz short loc_19EB8A
jmp loc_19EC45
loc_19EB8A:
mov rax, [rsp+0C8h+var_20]
mov [rsp+0C8h+var_59], 0
cmp rax, 0
jnz short loc_19EB9F
jmp short loc_19EC07
loc_19EB9F:
lea rdx, aWorkspaceLlm4b_27; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+0C8h+var_58]
mov [rsp+0C8h+var_A0], rdi
mov esi, 3
mov ecx, 13Ch
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+0C8h+var_A0]
mov [rsp+0C8h+var_59], 1
lea rsi, aCheckFailedErr; "CHECK failed: errors == nullptr: "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0C8h+var_98], rax
jmp short $+2
loc_19EBDC:
mov rdi, [rsp+0C8h+var_98]
lea rsi, aErrorReporting; "Error reporting not implemented."
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov qword ptr [rsp+0C8h+var_A8], rax
jmp short $+2
loc_19EBF4:
mov rsi, qword ptr [rsp+0C8h+var_A8]; char
lea rdi, [rsp+0C8h+var_6D]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_19EC05:
jmp short $+2
loc_19EC07:
test [rsp+0C8h+var_59], 1
jnz short loc_19EC10
jmp short loc_19EC1A
loc_19EC10:
lea rdi, [rsp+0C8h+var_58]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_19EC1A:
jmp loc_19EB7F
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
test [rsp+arg_67], 1
jnz short loc_19EC36
jmp short loc_19EC40
loc_19EC36:
lea rdi, [rsp+arg_68]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_19EC40:
jmp loc_19F014
loc_19EC45:
mov rax, [rsp+0C8h+var_18]
mov [rsp+0C8h+var_78], rax
mov rax, [rsp+0C8h+var_10]
mov [rsp+0C8h+var_80], rax
loc_19EC5F:
mov rcx, [rsp+0C8h+var_80]
xor eax, eax
cmp rcx, [rsp+0C8h+var_78]
mov [rsp+0C8h+var_A9], al
jnz short loc_19EC96
mov rax, [rsp+0C8h+var_80]
movsx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 0
mov [rsp+0C8h+var_A9], al
jz short loc_19EC96
mov rax, [rsp+0C8h+var_80]
movsx eax, byte ptr [rax]
cmp eax, 5Ch ; '\'
setnz al
mov [rsp+0C8h+var_A9], al
loc_19EC96:
mov al, [rsp+0C8h+var_A9]
test al, 1
jnz short loc_19ECA0
jmp short loc_19ECBE
loc_19ECA0:
mov rax, [rsp+0C8h+var_80]
add rax, 1
mov [rsp+0C8h+var_80], rax
mov rax, [rsp+0C8h+var_78]
add rax, 1
mov [rsp+0C8h+var_78], rax
jmp short loc_19EC5F
loc_19ECBE:
jmp short $+2
loc_19ECC0:
mov rax, [rsp+0C8h+var_80]
movsx eax, byte ptr [rax]
cmp eax, 0
jz loc_19EFE6
mov rax, [rsp+0C8h+var_80]
movsx eax, byte ptr [rax]
cmp eax, 5Ch ; '\'
jz short loc_19ED09
mov rax, [rsp+0C8h+var_80]
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_80], rcx
mov cl, [rax]
mov rax, [rsp+0C8h+var_78]
mov rdx, rax
add rdx, 1
mov [rsp+0C8h+var_78], rdx
mov [rax], cl
jmp loc_19EFE1
loc_19ED09:
mov rax, [rsp+0C8h+var_80]
mov rcx, rax
inc rcx
mov [rsp+0C8h+var_80], rcx
movsx eax, byte ptr [rax+1]
mov ecx, eax
mov [rsp+0C8h+var_B8], rcx
sub eax, 78h; switch 121 cases
ja def_19ED40; jumptable 000000000019ED40 default case, cases 1-33,35-38,40-47,56-62,64-87,89-91,93-96,99-101,103-109,111-113,115,117,119
mov rax, [rsp+0C8h+var_B8]
lea rcx, jpt_19ED40
movsxd rax, ds:(jpt_19ED40 - 3E58F0h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_19ED42:
mov rax, [rsp+0C8h+var_78]; jumptable 000000000019ED40 case 0
mov byte ptr [rax], 0
mov rax, [rsp+0C8h+var_78]
mov rcx, [rsp+0C8h+var_18]
sub rax, rcx
mov [rsp+0C8h+var_4], eax
jmp loc_19F005
loc_19ED66:
mov rax, [rsp+0C8h+var_78]; jumptable 000000000019ED40 case 97
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_78], rcx
mov byte ptr [rax], 7
jmp loc_19EFD3
loc_19ED7F:
mov rax, [rsp+0C8h+var_78]; jumptable 000000000019ED40 case 98
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_78], rcx
mov byte ptr [rax], 8
jmp loc_19EFD3
loc_19ED98:
mov rax, [rsp+0C8h+var_78]; jumptable 000000000019ED40 case 102
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_78], rcx
mov byte ptr [rax], 0Ch
jmp loc_19EFD3
loc_19EDB1:
mov rax, [rsp+0C8h+var_78]; jumptable 000000000019ED40 case 110
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_78], rcx
mov byte ptr [rax], 0Ah
jmp loc_19EFD3
loc_19EDCA:
mov rax, [rsp+0C8h+var_78]; jumptable 000000000019ED40 case 114
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_78], rcx
mov byte ptr [rax], 0Dh
jmp loc_19EFD3
loc_19EDE3:
mov rax, [rsp+0C8h+var_78]; jumptable 000000000019ED40 case 116
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_78], rcx
mov byte ptr [rax], 9
jmp loc_19EFD3
loc_19EDFC:
mov rax, [rsp+0C8h+var_78]; jumptable 000000000019ED40 case 118
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_78], rcx
mov byte ptr [rax], 0Bh
jmp loc_19EFD3
loc_19EE15:
mov rax, [rsp+0C8h+var_78]; jumptable 000000000019ED40 case 92
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_78], rcx
mov byte ptr [rax], 5Ch ; '\'
jmp loc_19EFD3
loc_19EE2E:
mov rax, [rsp+0C8h+var_78]; jumptable 000000000019ED40 case 63
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_78], rcx
mov byte ptr [rax], 3Fh ; '?'
jmp loc_19EFD3
loc_19EE47:
mov rax, [rsp+0C8h+var_78]; jumptable 000000000019ED40 case 39
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_78], rcx
mov byte ptr [rax], 27h ; '''
jmp loc_19EFD3
loc_19EE60:
mov rax, [rsp+0C8h+var_78]; jumptable 000000000019ED40 case 34
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_78], rcx
mov byte ptr [rax], 22h ; '"'
jmp loc_19EFD3
loc_19EE79:
mov rax, [rsp+0C8h+var_80]; jumptable 000000000019ED40 cases 48-55
movsx eax, byte ptr [rax]
sub eax, 30h ; '0'
mov [rsp+0C8h+var_81], al
mov rax, [rsp+0C8h+var_80]
movsx eax, byte ptr [rax+1]
cmp eax, 30h ; '0'
jl short loc_19EECA
mov rax, [rsp+0C8h+var_80]
movsx eax, byte ptr [rax+1]
cmp eax, 37h ; '7'
jg short loc_19EECA
movsx eax, [rsp+0C8h+var_81]
shl eax, 3
mov rcx, [rsp+0C8h+var_80]
mov rdx, rcx
add rdx, 1
mov [rsp+0C8h+var_80], rdx
movsx ecx, byte ptr [rcx+1]
add eax, ecx
sub eax, 30h ; '0'
mov [rsp+0C8h+var_81], al
loc_19EECA:
mov rax, [rsp+0C8h+var_80]
movsx eax, byte ptr [rax+1]
cmp eax, 30h ; '0'
jl short loc_19EF0C
mov rax, [rsp+0C8h+var_80]
movsx eax, byte ptr [rax+1]
cmp eax, 37h ; '7'
jg short loc_19EF0C
movsx eax, [rsp+0C8h+var_81]
shl eax, 3
mov rcx, [rsp+0C8h+var_80]
mov rdx, rcx
add rdx, 1
mov [rsp+0C8h+var_80], rdx
movsx ecx, byte ptr [rcx+1]
add eax, ecx
sub eax, 30h ; '0'
mov [rsp+0C8h+var_81], al
loc_19EF0C:
mov cl, [rsp+0C8h+var_81]
mov rax, [rsp+0C8h+var_78]
mov rdx, rax
add rdx, 1
mov [rsp+0C8h+var_78], rdx
mov [rax], cl
jmp loc_19EFD3
loc_19EF28:
mov rax, [rsp+0C8h+var_80]; jumptable 000000000019ED40 cases 88,120
movsx edi, byte ptr [rax+1]; this
call _ZN6google8protobuf8isxdigitEc; google::protobuf::isxdigit(char)
test al, 1
jnz short loc_19EF51
mov rax, [rsp+0C8h+var_80]
movsx eax, byte ptr [rax+1]
cmp eax, 0
jnz short loc_19EF4A
jmp short loc_19EF4C
loc_19EF4A:
jmp short $+2
loc_19EF4C:
jmp loc_19EFD3
loc_19EF51:
mov [rsp+0C8h+var_88], 0
mov rax, [rsp+0C8h+var_80]
mov [rsp+0C8h+var_90], rax
loc_19EF63:
mov rax, [rsp+0C8h+var_80]
movsx edi, byte ptr [rax+1]; this
call _ZN6google8protobuf8isxdigitEc; google::protobuf::isxdigit(char)
test al, 1
jnz short loc_19EF77
jmp short loc_19EFAA
loc_19EF77:
mov eax, [rsp+0C8h+var_88]
shl eax, 4
mov [rsp+0C8h+var_BC], eax
mov rax, [rsp+0C8h+var_80]
mov rcx, rax
add rcx, 1
mov [rsp+0C8h+var_80], rcx
movsx edi, byte ptr [rax+1]; this
call _ZN6google8protobuf16hex_digit_to_intEc; google::protobuf::hex_digit_to_int(char)
mov ecx, eax
mov eax, [rsp+0C8h+var_BC]
add eax, ecx
mov [rsp+0C8h+var_88], eax
jmp short loc_19EF63
loc_19EFAA:
cmp [rsp+0C8h+var_88], 0FFh
jbe short loc_19EFB6
jmp short $+2
loc_19EFB6:
mov eax, [rsp+0C8h+var_88]
mov cl, al
mov rax, [rsp+0C8h+var_78]
mov rdx, rax
add rdx, 1
mov [rsp+0C8h+var_78], rdx
mov [rax], cl
jmp short loc_19EFD3
def_19ED40:
jmp short $+2; jumptable 000000000019ED40 default case, cases 1-33,35-38,40-47,56-62,64-87,89-91,93-96,99-101,103-109,111-113,115,117,119
loc_19EFD3:
mov rax, [rsp+0C8h+var_80]
add rax, 1
mov [rsp+0C8h+var_80], rax
loc_19EFE1:
jmp loc_19ECC0
loc_19EFE6:
mov rax, [rsp+0C8h+var_78]
mov byte ptr [rax], 0
mov rax, [rsp+0C8h+var_78]
mov rcx, [rsp+0C8h+var_18]
sub rax, rcx
mov [rsp+0C8h+var_4], eax
loc_19F005:
mov eax, [rsp+0C8h+var_4]
add rsp, 0C8h
retn
loc_19F014:
mov rdi, [rsp+arg_58]
call __Unwind_Resume
| long long google::protobuf::UnescapeCEscapeSequences(char *a1, char *a2)
{
char *v2; // rax
char v3; // cl
char *v4; // rax
char *v5; // rax
char *v6; // rax
char *v7; // rax
char *v8; // rax
char *v9; // rax
char *v10; // rax
char *v11; // rax
char *v12; // rax
char *v13; // rax
char *v14; // rax
char *v15; // rax
char *v16; // rax
_BYTE *v17; // rcx
_BYTE *v18; // rcx
char *v19; // rax
_BYTE *v20; // rax
char *v21; // rax
bool v23; // [rsp+1Fh] [rbp-A9h]
int v24; // [rsp+40h] [rbp-88h]
char v25; // [rsp+47h] [rbp-81h]
_BYTE *v27; // [rsp+48h] [rbp-80h]
char *i; // [rsp+50h] [rbp-78h]
for ( i = a2; ; ++i )
{
v23 = 0;
if ( a1 == i )
{
v23 = 0;
if ( *a1 )
v23 = *a1 != 92;
}
if ( !v23 )
break;
++a1;
}
while ( *a1 )
{
if ( *a1 == 92 )
{
v5 = a1;
v27 = a1 + 1;
switch ( v5[1] )
{
case 0:
*i = 0;
return (unsigned int)((_DWORD)i - (_DWORD)a2);
case 34:
v16 = i++;
*v16 = 34;
goto LABEL_35;
case 39:
v15 = i++;
*v15 = 39;
goto LABEL_35;
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
v25 = *v27 - 48;
if ( (char)v27[1] >= 48 && (char)v27[1] <= 55 )
{
v17 = v27++;
v25 = v17[1] + 8 * v25 - 48;
}
if ( (char)v27[1] >= 48 && (char)v27[1] <= 55 )
{
v18 = v27++;
v25 = v18[1] + 8 * v25 - 48;
}
v19 = i++;
*v19 = v25;
goto LABEL_35;
case 63:
v14 = i++;
*v14 = 63;
goto LABEL_35;
case 88:
case 120:
if ( (google::protobuf::isxdigit((google::protobuf *)(unsigned int)(char)v27[1], (char)a2) & 1) != 0 )
{
v24 = 0;
while ( (google::protobuf::isxdigit((google::protobuf *)(unsigned int)(char)v27[1], (char)a2) & 1) != 0 )
{
v20 = v27++;
v24 = google::protobuf::hex_digit_to_int((google::protobuf *)(unsigned int)(char)v20[1], (char)a2)
+ 16 * v24;
}
v21 = i++;
*v21 = v24;
}
goto LABEL_35;
case 92:
v13 = i++;
*v13 = 92;
goto LABEL_35;
case 97:
v6 = i++;
*v6 = 7;
goto LABEL_35;
case 98:
v7 = i++;
*v7 = 8;
goto LABEL_35;
case 102:
v8 = i++;
*v8 = 12;
goto LABEL_35;
case 110:
v9 = i++;
*v9 = 10;
goto LABEL_35;
case 114:
v10 = i++;
*v10 = 13;
goto LABEL_35;
case 116:
v11 = i++;
*v11 = 9;
goto LABEL_35;
case 118:
v12 = i++;
*v12 = 11;
goto LABEL_35;
default:
LABEL_35:
a1 = v27 + 1;
break;
}
}
else
{
v2 = a1++;
v3 = *v2;
v4 = i++;
*v4 = v3;
}
}
*i = 0;
return (unsigned int)((_DWORD)i - (_DWORD)a2);
}
| |||
3,013 | google::protobuf::UnescapeCEscapeSequences(char const*, char*, 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>>>>*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc | int UnescapeCEscapeSequences(const char *source, char *dest,
std::vector<std::string> *errors) {
GOOGLE_DCHECK(errors == nullptr) << "Error reporting not implemented.";
char* d = dest;
const char* p = source;
// Small optimization for case where source = dest and there's no escaping
while ( p == d && *p != '\0' && *p != '\\' )
p++, d++;
while (*p != '\0') {
if (*p != '\\') {
*d++ = *p++;
} else {
switch ( *++p ) { // skip past the '\\'
case '\0':
LOG_STRING(ERROR, errors) << "String cannot end with \\";
*d = '\0';
return d - dest; // we're done with p
case 'a': *d++ = '\a'; break;
case 'b': *d++ = '\b'; break;
case 'f': *d++ = '\f'; break;
case 'n': *d++ = '\n'; break;
case 'r': *d++ = '\r'; break;
case 't': *d++ = '\t'; break;
case 'v': *d++ = '\v'; break;
case '\\': *d++ = '\\'; break;
case '?': *d++ = '\?'; break; // \? Who knew?
case '\'': *d++ = '\''; break;
case '"': *d++ = '\"'; break;
case '0': case '1': case '2': case '3': // octal digit: 1 to 3 digits
case '4': case '5': case '6': case '7': {
char ch = *p - '0';
if ( IS_OCTAL_DIGIT(p[1]) )
ch = ch * 8 + *++p - '0';
if ( IS_OCTAL_DIGIT(p[1]) ) // safe (and easy) to do this twice
ch = ch * 8 + *++p - '0'; // now points at last digit
*d++ = ch;
break;
}
case 'x': case 'X': {
if (!isxdigit(p[1])) {
if (p[1] == '\0') {
LOG_STRING(ERROR, errors) << "String cannot end with \\x";
} else {
LOG_STRING(ERROR, errors) <<
"\\x cannot be followed by non-hex digit: \\" << *p << p[1];
}
break;
}
unsigned int ch = 0;
const char *hex_start = p;
while (isxdigit(p[1])) // arbitrarily many hex digits
ch = (ch << 4) + hex_digit_to_int(*++p);
if (ch > 0xFF)
LOG_STRING(ERROR, errors)
<< "Value of "
<< "\\" << std::string(hex_start, p + 1 - hex_start)
<< " exceeds 8 bits";
*d++ = ch;
break;
}
#if 0 // TODO(kenton): Support \u and \U? Requires runetochar().
case 'u': {
// \uhhhh => convert 4 hex digits to UTF-8
char32 rune = 0;
const char *hex_start = p;
for (int i = 0; i < 4; ++i) {
if (isxdigit(p[1])) { // Look one char ahead.
rune = (rune << 4) + hex_digit_to_int(*++p); // Advance p.
} else {
LOG_STRING(ERROR, errors)
<< "\\u must be followed by 4 hex digits: \\"
<< std::string(hex_start, p+1-hex_start);
break;
}
}
d += runetochar(d, &rune);
break;
}
case 'U': {
// \Uhhhhhhhh => convert 8 hex digits to UTF-8
char32 rune = 0;
const char *hex_start = p;
for (int i = 0; i < 8; ++i) {
if (isxdigit(p[1])) { // Look one char ahead.
// Don't change rune until we're sure this
// is within the Unicode limit, but do advance p.
char32 newrune = (rune << 4) + hex_digit_to_int(*++p);
if (newrune > 0x10FFFF) {
LOG_STRING(ERROR, errors)
<< "Value of \\"
<< std::string(hex_start, p + 1 - hex_start)
<< " exceeds Unicode limit (0x10FFFF)";
break;
} else {
rune = newrune;
}
} else {
LOG_STRING(ERROR, errors)
<< "\\U must be followed by 8 hex digits: \\"
<< std::string(hex_start, p+1-hex_start);
break;
}
}
d += runetochar(d, &rune);
break;
}
#endif
default:
LOG_STRING(ERROR, errors) << "Unknown escape sequence: \\" << *p;
}
p++; // read past letter we escaped
}
}
*d = '\0';
return d - dest;
} | O3 | cpp | google::protobuf::UnescapeCEscapeSequences(char const*, char*, 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>>>>*):
cmpq %rsi, %rdi
je 0x87148
movq %rsi, %rax
jmp 0x8716f
movq %rsi, %rcx
movzbl (%rdi), %eax
testl %eax, %eax
je 0x8716c
cmpl $0x5c, %eax
je 0x8716c
leaq 0x1(%rdi), %r9
leaq 0x1(%rcx), %rax
cmpq %rdi, %rcx
movq %r9, %rdi
movq %rax, %rcx
je 0x8714b
jmp 0x87172
movq %rcx, %rax
movq %rdi, %r9
movabsq $0x3f0000003f, %rcx # imm = 0x3F0000003F
leaq 0xe04cd(%rip), %rdx # 0x167650
movzbl (%r9), %r8d
cmpl $0x5c, %r8d
je 0x8719b
testl %r8d, %r8d
jne 0x8732f
jmp 0x87343
leaq 0x1(%r9), %rdi
movb 0x1(%r9), %r8b
movzbl %r8b, %r10d
cmpl $0x3e, %r10d
jle 0x871d7
cmpl $0x61, %r10d
jle 0x87252
leal -0x6e(%r10), %r8d
cmpl $0xa, %r8d
ja 0x87309
movslq (%rdx,%r8,4), %r8
addq %rdx, %r8
jmpq *%r8
movb $0xa, %r8b
jmp 0x8732c
cmpl $0x2f, %r10d
jle 0x872f6
addl $-0x30, %r10d
cmpl $0x8, %r10d
jae 0x87338
addb $-0x30, %r8b
movb 0x2(%r9), %r10b
addq $0x2, %r9
leal (,%r8,8), %r11d
addb %r10b, %r11b
andb $-0x8, %r10b
addb $-0x30, %r11b
cmpb $0x30, %r10b
cmoveq %r9, %rdi
movzbl %r11b, %r9d
movzbl %r8b, %r10d
cmovel %r9d, %r10d
leaq 0x1(%rdi), %r9
movb 0x1(%rdi), %r8b
leal (,%r10,8), %r11d
addb %r8b, %r11b
andb $-0x8, %r8b
addb $-0x30, %r11b
cmpb $0x30, %r8b
cmovneq %rdi, %r9
movzbl %r11b, %r8d
cmovnel %r10d, %r8d
jmp 0x8732f
cmpl $0x5b, %r10d
jg 0x872e2
cmpl $0x3f, %r10d
je 0x8732c
cmpl $0x58, %r10d
jne 0x87338
movb 0x2(%r9), %r8b
leal -0x30(%r8), %r9d
cmpb $0xa, %r9b
jb 0x8729a
movzbl %r8b, %r8d
addl $-0x41, %r8d
cmpl $0x25, %r8d
ja 0x87338
btq %r8, %rcx
jae 0x87338
xorl %r8d, %r8d
movb 0x1(%rdi), %r9b
leal -0x30(%r9), %r10d
movzbl %r9b, %r9d
cmpb $0xa, %r10b
jb 0x872bf
leal -0x41(%r9), %r10d
cmpl $0x25, %r10d
ja 0x8732c
btq %r10, %rcx
jae 0x8732c
incq %rdi
shlb $0x4, %r8b
leal 0x9(%r9), %r10d
cmpb $0x3a, %r9b
movzbl %r10b, %r10d
cmovbl %r9d, %r10d
andb $0xf, %r10b
orb %r8b, %r10b
movl %r10d, %r8d
jmp 0x8729d
cmpl $0x5c, %r10d
je 0x8732c
movb $0x7, %r8b
movq %rdi, %r9
cmpl $0x61, %r10d
je 0x8732f
jmp 0x87338
cmpl $0x22, %r10d
je 0x8732c
cmpl $0x27, %r10d
je 0x8732c
testl %r10d, %r10d
jne 0x87338
jmp 0x87343
cmpl $0x66, %r10d
je 0x87329
cmpl $0x62, %r10d
jne 0x87338
movb $0x8, %r8b
jmp 0x8732c
movb $0x9, %r8b
jmp 0x8732c
movb $0xb, %r8b
jmp 0x8732c
movb $0xd, %r8b
jmp 0x8732c
movb $0xc, %r8b
movq %rdi, %r9
movb %r8b, (%rax)
incq %rax
movq %r9, %rdi
incq %rdi
movq %rdi, %r9
jmp 0x87183
movb $0x0, (%rax)
subl %esi, %eax
retq
| _ZN6google8protobuf24UnescapeCEscapeSequencesEPKcPcPSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE:
cmp rdi, rsi
jz short loc_87148
mov rax, rsi
jmp short loc_8716F
loc_87148:
mov rcx, rsi
loc_8714B:
movzx eax, byte ptr [rdi]
test eax, eax
jz short loc_8716C
cmp eax, 5Ch ; '\'
jz short loc_8716C
lea r9, [rdi+1]
lea rax, [rcx+1]
cmp rcx, rdi
mov rdi, r9
mov rcx, rax
jz short loc_8714B
jmp short loc_87172
loc_8716C:
mov rax, rcx
loc_8716F:
mov r9, rdi
loc_87172:
mov rcx, 3F0000003Fh
lea rdx, jpt_871CC
loc_87183:
movzx r8d, byte ptr [r9]
cmp r8d, 5Ch ; '\'
jz short loc_8719B
test r8d, r8d
jnz loc_8732F
jmp loc_87343
loc_8719B:
lea rdi, [r9+1]
mov r8b, [r9+1]
movzx r10d, r8b
cmp r10d, 3Eh ; '>'
jle short loc_871D7
cmp r10d, 61h ; 'a'
jle loc_87252
lea r8d, [r10-6Eh]; switch 11 cases
cmp r8d, 0Ah
ja def_871CC; jumptable 00000000000871CC default case
movsxd r8, ds:(jpt_871CC - 167650h)[rdx+r8*4]
add r8, rdx
jmp r8; switch jump
loc_871CF:
mov r8b, 0Ah; jumptable 00000000000871CC case 110
jmp loc_8732C
loc_871D7:
cmp r10d, 2Fh ; '/'
jle loc_872F6
add r10d, 0FFFFFFD0h
cmp r10d, 8
jnb loc_87338; jumptable 00000000000871CC cases 111-113,115,117,119
add r8b, 0D0h
mov r10b, [r9+2]
add r9, 2
lea r11d, ds:0[r8*8]
add r11b, r10b
and r10b, 0F8h
add r11b, 0D0h
cmp r10b, 30h ; '0'
cmovz rdi, r9
movzx r9d, r11b
movzx r10d, r8b
cmovz r10d, r9d
lea r9, [rdi+1]
mov r8b, [rdi+1]
lea r11d, ds:0[r10*8]
add r11b, r8b
and r8b, 0F8h
add r11b, 0D0h
cmp r8b, 30h ; '0'
cmovnz r9, rdi
movzx r8d, r11b
cmovnz r8d, r10d
jmp loc_8732F
loc_87252:
cmp r10d, 5Bh ; '['
jg loc_872E2
cmp r10d, 3Fh ; '?'
jz loc_8732C
cmp r10d, 58h ; 'X'
jnz loc_87338; jumptable 00000000000871CC cases 111-113,115,117,119
loc_87270:
mov r8b, [r9+2]; jumptable 00000000000871CC case 120
lea r9d, [r8-30h]
cmp r9b, 0Ah
jb short loc_8729A
movzx r8d, r8b
add r8d, 0FFFFFFBFh
cmp r8d, 25h ; '%'
ja loc_87338; jumptable 00000000000871CC cases 111-113,115,117,119
bt rcx, r8
jnb loc_87338; jumptable 00000000000871CC cases 111-113,115,117,119
loc_8729A:
xor r8d, r8d
loc_8729D:
mov r9b, [rdi+1]
lea r10d, [r9-30h]
movzx r9d, r9b
cmp r10b, 0Ah
jb short loc_872BF
lea r10d, [r9-41h]
cmp r10d, 25h ; '%'
ja short loc_8732C
bt rcx, r10
jnb short loc_8732C
loc_872BF:
inc rdi
shl r8b, 4
lea r10d, [r9+9]
cmp r9b, 3Ah ; ':'
movzx r10d, r10b
cmovb r10d, r9d
and r10b, 0Fh
or r10b, r8b
mov r8d, r10d
jmp short loc_8729D
loc_872E2:
cmp r10d, 5Ch ; '\'
jz short loc_8732C
mov r8b, 7
mov r9, rdi
cmp r10d, 61h ; 'a'
jz short loc_8732F
jmp short loc_87338; jumptable 00000000000871CC cases 111-113,115,117,119
loc_872F6:
cmp r10d, 22h ; '"'
jz short loc_8732C
cmp r10d, 27h ; '''
jz short loc_8732C
test r10d, r10d
jnz short loc_87338; jumptable 00000000000871CC cases 111-113,115,117,119
jmp short loc_87343
def_871CC:
cmp r10d, 66h ; 'f'; jumptable 00000000000871CC default case
jz short loc_87329
cmp r10d, 62h ; 'b'
jnz short loc_87338; jumptable 00000000000871CC cases 111-113,115,117,119
mov r8b, 8
jmp short loc_8732C
loc_8731A:
mov r8b, 9; jumptable 00000000000871CC case 116
jmp short loc_8732C
loc_8731F:
mov r8b, 0Bh; jumptable 00000000000871CC case 118
jmp short loc_8732C
loc_87324:
mov r8b, 0Dh; jumptable 00000000000871CC case 114
jmp short loc_8732C
loc_87329:
mov r8b, 0Ch
loc_8732C:
mov r9, rdi
loc_8732F:
mov [rax], r8b
inc rax
mov rdi, r9
loc_87338:
inc rdi; jumptable 00000000000871CC cases 111-113,115,117,119
mov r9, rdi
jmp loc_87183
loc_87343:
mov byte ptr [rax], 0
sub eax, esi
retn
| long long google::protobuf::UnescapeCEscapeSequences(unsigned __int8 *a1, unsigned __int8 *a2)
{
unsigned __int8 *v2; // rax
unsigned __int8 *v3; // rcx
unsigned __int8 *v4; // r9
long long v5; // rcx
int v6; // r8d
unsigned __int8 *v7; // rdi
int v8; // r10d
char v9; // r8
unsigned __int8 v10; // r10
unsigned __int8 *v11; // r9
char v12; // r11
char v13; // r11
bool v14; // zf
char v15; // r10
unsigned __int8 v16; // r8
char v17; // r11
char v18; // r11
bool v19; // zf
unsigned __int8 v20; // r8
unsigned long long v21; // r8
int v22; // r9d
unsigned long long v23; // r10
char v24; // r8
char v25; // r10
if ( a1 == a2 )
{
v3 = a2;
while ( *a1 && *a1 != 92 )
{
v4 = a1 + 1;
v2 = v3 + 1;
v14 = v3++ == a1++;
if ( !v14 )
goto LABEL_10;
}
v2 = v3;
}
else
{
v2 = a2;
}
v4 = a1;
LABEL_10:
v5 = 0x3F0000003FLL;
while ( 1 )
{
v6 = *v4;
if ( v6 != 92 )
{
if ( !*v4 )
goto LABEL_59;
goto LABEL_57;
}
v7 = v4 + 1;
LOBYTE(v6) = v4[1];
v8 = (unsigned __int8)v6;
if ( (unsigned __int8)v6 <= 0x3Eu )
break;
if ( (unsigned __int8)v6 > 0x61u )
{
switch ( (char)v6 )
{
case 'n':
LOBYTE(v6) = 10;
break;
case 'o':
case 'p':
case 'q':
case 's':
case 'u':
case 'w':
goto LABEL_58;
case 'r':
LOBYTE(v6) = 13;
break;
case 't':
LOBYTE(v6) = 9;
break;
case 'v':
LOBYTE(v6) = 11;
break;
case 'x':
goto LABEL_32;
default:
if ( (unsigned __int8)v6 == 102 )
{
LOBYTE(v6) = 12;
}
else
{
if ( (unsigned __int8)v6 != 98 )
goto LABEL_58;
LOBYTE(v6) = 8;
}
break;
}
LABEL_56:
v4 = v7;
LABEL_57:
*v2++ = v6;
v7 = v4;
goto LABEL_58;
}
if ( (unsigned __int8)v6 > 0x5Bu )
{
if ( (unsigned __int8)v6 == 92 )
goto LABEL_56;
LOBYTE(v6) = 7;
++v4;
if ( v8 == 97 )
goto LABEL_57;
}
else
{
if ( (unsigned __int8)v6 == 63 )
goto LABEL_56;
if ( (unsigned __int8)v6 != 88 )
goto LABEL_58;
LABEL_32:
v20 = v4[2];
if ( (unsigned __int8)(v20 - 48) < 0xAu
|| (v21 = (unsigned int)v20 - 65, (unsigned int)v21 <= 0x25) && _bittest64(&v5, v21) )
{
for ( LOBYTE(v6) = 0; ; LOBYTE(v6) = v24 | v25 & 0xF )
{
v22 = v7[1];
if ( (unsigned __int8)(v22 - 48) >= 0xAu )
{
v23 = (unsigned int)(v22 - 65);
if ( (unsigned int)v23 > 0x25 || !_bittest64(&v5, v23) )
break;
}
++v7;
v24 = 16 * v6;
v25 = v22 + 9;
if ( (unsigned __int8)v22 < 0x3Au )
v25 = v22;
}
goto LABEL_56;
}
}
LABEL_58:
v4 = v7 + 1;
}
if ( (unsigned __int8)v6 > 0x2Fu )
{
if ( (unsigned int)(unsigned __int8)v6 - 48 >= 8 )
goto LABEL_58;
v9 = v6 - 48;
v10 = v4[2];
v11 = v4 + 2;
v12 = v10 + 8 * v9;
v10 &= 0xF8u;
v13 = v12 - 48;
v14 = v10 == 48;
if ( v10 == 48 )
v7 = v11;
v15 = v9;
if ( v14 )
v15 = v13;
v4 = v7 + 1;
v16 = v7[1];
v17 = v16 + 8 * v15;
v16 &= 0xF8u;
v18 = v17 - 48;
v19 = v16 == 48;
if ( v16 != 48 )
v4 = v7;
LOBYTE(v6) = v18;
if ( !v19 )
LOBYTE(v6) = v15;
goto LABEL_57;
}
if ( (unsigned __int8)v6 == 34 || (unsigned __int8)v6 == 39 )
goto LABEL_56;
if ( (_BYTE)v6 )
goto LABEL_58;
LABEL_59:
*v2 = 0;
return (unsigned int)((_DWORD)v2 - (_DWORD)a2);
}
| UnescapeCEscapeSequences:
CMP RDI,RSI
JZ 0x00187148
MOV RAX,RSI
JMP 0x0018716f
LAB_00187148:
MOV RCX,RSI
LAB_0018714b:
MOVZX EAX,byte ptr [RDI]
TEST EAX,EAX
JZ 0x0018716c
CMP EAX,0x5c
JZ 0x0018716c
LEA R9,[RDI + 0x1]
LEA RAX,[RCX + 0x1]
CMP RCX,RDI
MOV RDI,R9
MOV RCX,RAX
JZ 0x0018714b
JMP 0x00187172
LAB_0018716c:
MOV RAX,RCX
LAB_0018716f:
MOV R9,RDI
LAB_00187172:
MOV RCX,0x3f0000003f
LEA RDX,[0x267650]
LAB_00187183:
MOVZX R8D,byte ptr [R9]
CMP R8D,0x5c
JZ 0x0018719b
TEST R8D,R8D
JNZ 0x0018732f
JMP 0x00187343
LAB_0018719b:
LEA RDI,[R9 + 0x1]
MOV R8B,byte ptr [R9 + 0x1]
MOVZX R10D,R8B
CMP R10D,0x3e
JLE 0x001871d7
CMP R10D,0x61
JLE 0x00187252
LEA R8D,[R10 + -0x6e]
CMP R8D,0xa
JA 0x00187309
MOVSXD R8,dword ptr [RDX + R8*0x4]
ADD R8,RDX
switchD:
JMP R8
caseD_6e:
MOV R8B,0xa
JMP 0x0018732c
LAB_001871d7:
CMP R10D,0x2f
JLE 0x001872f6
ADD R10D,-0x30
CMP R10D,0x8
JNC 0x00187338
ADD R8B,0xd0
MOV R10B,byte ptr [R9 + 0x2]
ADD R9,0x2
LEA R11D,[R8*0x8]
ADD R11B,R10B
AND R10B,0xf8
ADD R11B,0xd0
CMP R10B,0x30
CMOVZ RDI,R9
MOVZX R9D,R11B
MOVZX R10D,R8B
CMOVZ R10D,R9D
LEA R9,[RDI + 0x1]
MOV R8B,byte ptr [RDI + 0x1]
LEA R11D,[R10*0x8]
ADD R11B,R8B
AND R8B,0xf8
ADD R11B,0xd0
CMP R8B,0x30
CMOVNZ R9,RDI
MOVZX R8D,R11B
CMOVNZ R8D,R10D
JMP 0x0018732f
LAB_00187252:
CMP R10D,0x5b
JG 0x001872e2
CMP R10D,0x3f
JZ 0x0018732c
CMP R10D,0x58
JNZ 0x00187338
caseD_78:
MOV R8B,byte ptr [R9 + 0x2]
LEA R9D,[R8 + -0x30]
CMP R9B,0xa
JC 0x0018729a
MOVZX R8D,R8B
ADD R8D,-0x41
CMP R8D,0x25
JA 0x00187338
BT RCX,R8
JNC 0x00187338
LAB_0018729a:
XOR R8D,R8D
LAB_0018729d:
MOV R9B,byte ptr [RDI + 0x1]
LEA R10D,[R9 + -0x30]
MOVZX R9D,R9B
CMP R10B,0xa
JC 0x001872bf
LEA R10D,[R9 + -0x41]
CMP R10D,0x25
JA 0x0018732c
BT RCX,R10
JNC 0x0018732c
LAB_001872bf:
INC RDI
SHL R8B,0x4
LEA R10D,[R9 + 0x9]
CMP R9B,0x3a
MOVZX R10D,R10B
CMOVC R10D,R9D
AND R10B,0xf
OR R10B,R8B
MOV R8D,R10D
JMP 0x0018729d
LAB_001872e2:
CMP R10D,0x5c
JZ 0x0018732c
MOV R8B,0x7
MOV R9,RDI
CMP R10D,0x61
JZ 0x0018732f
JMP 0x00187338
LAB_001872f6:
CMP R10D,0x22
JZ 0x0018732c
CMP R10D,0x27
JZ 0x0018732c
TEST R10D,R10D
JNZ 0x00187338
JMP 0x00187343
default:
CMP R10D,0x66
JZ 0x00187329
CMP R10D,0x62
JNZ 0x00187338
MOV R8B,0x8
JMP 0x0018732c
caseD_74:
MOV R8B,0x9
JMP 0x0018732c
caseD_76:
MOV R8B,0xb
JMP 0x0018732c
caseD_72:
MOV R8B,0xd
JMP 0x0018732c
LAB_00187329:
MOV R8B,0xc
LAB_0018732c:
MOV R9,RDI
LAB_0018732f:
MOV byte ptr [RAX],R8B
INC RAX
MOV RDI,R9
caseD_6f:
INC RDI
MOV R9,RDI
JMP 0x00187183
LAB_00187343:
MOV byte ptr [RAX],0x0
SUB EAX,ESI
RET
|
/* google::protobuf::UnescapeCEscapeSequences(char const*, char*, std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > >*) */
int google::protobuf::UnescapeCEscapeSequences(char *param_1,char *param_2,vector *param_3)
{
byte *pbVar1;
byte bVar2;
int iVar3;
byte *pbVar4;
uint uVar5;
byte bVar6;
byte bVar7;
bool bVar8;
iVar3 = (int)param_2;
if (param_1 == param_2) {
do {
if ((*param_1 == 0) || (*param_1 == 0x5c)) break;
pbVar4 = (byte *)param_1 + 1;
pbVar1 = (byte *)param_2 + 1;
bVar8 = param_2 == param_1;
param_2 = (char *)pbVar1;
param_1 = (char *)pbVar4;
} while (bVar8);
}
do {
bVar7 = *param_1;
if (bVar7 != 0x5c) {
pbVar4 = (byte *)param_1;
if (bVar7 != 0) goto LAB_0018732f;
LAB_00187343:
*param_2 = 0;
return (int)param_2 - iVar3;
}
pbVar4 = (byte *)param_1 + 1;
bVar7 = ((byte *)param_1)[1];
uVar5 = (uint)bVar7;
if (bVar7 < 0x3f) {
if (0x2f < bVar7) {
if (uVar5 - 0x30 < 8) {
bVar2 = bVar7 - 0x30;
pbVar1 = pbVar4;
if ((((byte *)param_1)[2] & 0xf8) == 0x30) {
bVar2 = ((bVar7 - 0x30) * '\b' + ((byte *)param_1)[2]) - 0x30;
pbVar1 = (byte *)param_1 + 2;
}
pbVar4 = pbVar1 + 1;
bVar7 = (bVar2 * '\b' + pbVar1[1]) - 0x30;
if ((pbVar1[1] & 0xf8) != 0x30) {
pbVar4 = pbVar1;
bVar7 = bVar2;
}
goto LAB_0018732f;
}
goto switchD_001871cc_caseD_6f;
}
if ((bVar7 == 0x22) || (bVar7 == 0x27)) goto LAB_0018732f;
if (bVar7 == 0) goto LAB_00187343;
}
else {
if (bVar7 < 0x62) {
if (bVar7 < 0x5c) {
if (uVar5 == 0x3f) goto LAB_0018732f;
if (bVar7 == 0x58) goto switchD_001871cc_caseD_78;
}
else if ((bVar7 == 0x5c) || (bVar7 = 7, uVar5 == 0x61)) goto LAB_0018732f;
goto switchD_001871cc_caseD_6f;
}
switch(bVar7) {
case 0x6e:
bVar7 = 10;
break;
case 0x6f:
case 0x70:
case 0x71:
case 0x73:
case 0x75:
case 0x77:
goto switchD_001871cc_caseD_6f;
case 0x72:
bVar7 = 0xd;
break;
case 0x74:
bVar7 = 9;
break;
case 0x76:
bVar7 = 0xb;
break;
case 0x78:
switchD_001871cc_caseD_78:
if (((byte)(((byte *)param_1)[2] - 0x30) < 10) ||
((uVar5 = ((byte *)param_1)[2] - 0x41, uVar5 < 0x26 &&
((0x3f0000003fU >> ((ulong)uVar5 & 0x3f) & 1) != 0)))) {
bVar7 = 0;
while ((bVar2 = pbVar4[1], (byte)(bVar2 - 0x30) < 10 ||
((bVar2 - 0x41 < 0x26 &&
((0x3f0000003fU >> ((ulong)(bVar2 - 0x41) & 0x3f) & 1) != 0))))) {
pbVar4 = pbVar4 + 1;
bVar6 = bVar2 + 9;
if (bVar2 < 0x3a) {
bVar6 = bVar2;
}
bVar7 = bVar6 & 0xf | bVar7 << 4;
}
break;
}
goto switchD_001871cc_caseD_6f;
default:
if (bVar7 == 0x66) {
bVar7 = 0xc;
}
else {
if (bVar7 != 0x62) goto switchD_001871cc_caseD_6f;
bVar7 = 8;
}
}
LAB_0018732f:
*param_2 = bVar7;
param_2 = (char *)((byte *)param_2 + 1);
}
switchD_001871cc_caseD_6f:
param_1 = (char *)(pbVar4 + 1);
} while( true );
}
|
|
3,014 | mi_update_status | eloqsql/storage/myisam/mi_locking.c | void mi_update_status(void* param)
{
MI_INFO *info=(MI_INFO*) param;
DBUG_ENTER("mi_update_status");
/*
Because someone may have closed the table we point at, we only
update the state if its our own state. This isn't a problem as
we are always pointing at our own lock or at a read lock.
(This is enforced by thr_multi_lock.c)
*/
if (info->state == &info->save_state)
{
DBUG_PRINT("info",
("updating status: key_file: %lu data_file: %lu rows: %lu",
(ulong) info->state->key_file_length,
(ulong) info->state->data_file_length,
(ulong) info->state->records));
if (info->state->key_file_length < info->s->state.state.key_file_length ||
info->state->data_file_length < info->s->state.state.data_file_length)
DBUG_PRINT("warning",("old info: key_file: %ld data_file: %ld",
(long) info->s->state.state.key_file_length,
(long) info->s->state.state.data_file_length));
info->s->state.state= *info->state;
#ifdef HAVE_QUERY_CACHE
DBUG_PRINT("info", ("invalidator... '%s' (status update)",
info->filename));
DBUG_ASSERT(info->s->chst_invalidator != NULL);
(*info->s->chst_invalidator)((const char *)info->filename);
#endif
}
info->state= &info->s->state.state;
info->append_insert_at_end= 0;
/*
We have to flush the write cache here as other threads may start
reading the table before mi_lock_database() is called
*/
if (info->opt_flag & WRITE_CACHE_USED)
{
if (end_io_cache(&info->rec_cache))
{
mi_print_error(info->s, HA_ERR_CRASHED);
mi_mark_crashed(info);
}
info->opt_flag&= ~WRITE_CACHE_USED;
}
DBUG_VOID_RETURN;
} | O0 | c | mi_update_status:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
addq $0x10, %rcx
cmpq %rcx, %rax
jne 0x3d1e3
jmp 0x3d16b
jmp 0x3d16d
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x38(%rcx), %rax
jb 0x3d19f
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x28(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x40(%rcx), %rax
jae 0x3d1a5
jmp 0x3d1a1
jmp 0x3d1a3
jmp 0x3d1a5
movq -0x10(%rbp), %rax
movq (%rax), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movl $0x38, %edx
callq 0x292d0
jmp 0x3d1c4
jmp 0x3d1c6
jmp 0x3d1c8
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x2f8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0xf8(%rcx), %rdi
callq *%rax
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x18, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x33a(%rax)
movq -0x10(%rbp), %rax
movl 0x1c8(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x3d287
movq -0x10(%rbp), %rdi
addq $0x220, %rdi # imm = 0x220
callq 0x76380
cmpl $0x0, %eax
je 0x3d274
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0x3a810
movq -0x10(%rbp), %rax
movq (%rax), %rax
movzbl 0xf0(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0xf0(%rax)
jmp 0x3d259
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0xa6da9(%rip), %rdx # 0xe4011
movl $0x164, %ecx # imm = 0x164
callq 0x2ac70
jmp 0x3d274
movq -0x10(%rbp), %rax
movl 0x1c8(%rax), %ecx
andl $-0x11, %ecx
movl %ecx, 0x1c8(%rax)
jmp 0x3d289
jmp 0x3d28b
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mi_update_status:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
add rcx, 10h
cmp rax, rcx
jnz short loc_3D1E3
jmp short $+2
loc_3D16B:
jmp short $+2
loc_3D16D:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rax, [rax+20h]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
cmp rax, [rcx+38h]
jb short loc_3D19F
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rax, [rax+28h]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
cmp rax, [rcx+40h]
jnb short loc_3D1A5
loc_3D19F:
jmp short $+2
loc_3D1A1:
jmp short $+2
loc_3D1A3:
jmp short $+2
loc_3D1A5:
mov rax, [rbp+var_10]
mov rdi, [rax]
add rdi, 18h
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov edx, 38h ; '8'
call _memcpy
jmp short $+2
loc_3D1C4:
jmp short $+2
loc_3D1C6:
jmp short $+2
loc_3D1C8:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+2F8h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+0F8h]
call rax
loc_3D1E3:
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 18h
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rax, [rbp+var_10]
mov byte ptr [rax+33Ah], 0
mov rax, [rbp+var_10]
mov eax, [rax+1C8h]
and eax, 10h
cmp eax, 0
jz short loc_3D287
mov rdi, [rbp+var_10]
add rdi, 220h
call end_io_cache
cmp eax, 0
jz short loc_3D274
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
mov rax, [rbp+var_10]
mov rax, [rax]
movzx ecx, byte ptr [rax+0F0h]
or ecx, 2
mov [rax+0F0h], cl
jmp short $+2
loc_3D259:
mov rdi, [rbp+var_10]
xor eax, eax
mov esi, eax
lea rdx, aWorkspaceLlm4b_4; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 164h
call _mi_report_crashed
jmp short $+2
loc_3D274:
mov rax, [rbp+var_10]
mov ecx, [rax+1C8h]
and ecx, 0FFFFFFEFh
mov [rax+1C8h], ecx
loc_3D287:
jmp short $+2
loc_3D289:
jmp short $+2
loc_3D28B:
add rsp, 10h
pop rbp
retn
| _DWORD * mi_update_status(_DWORD *a1)
{
_DWORD *result; // rax
if ( *((_DWORD **)a1 + 1) == a1 + 4 )
{
memcpy(*(_QWORD *)a1 + 24LL, *((_QWORD *)a1 + 1), 56LL);
(*(void ( **)(_QWORD))(*(_QWORD *)a1 + 760LL))(*((_QWORD *)a1 + 31));
}
*((_QWORD *)a1 + 1) = *(_QWORD *)a1 + 24LL;
*((_BYTE *)a1 + 826) = 0;
result = (_DWORD *)(a1[114] & 0x10);
if ( (_DWORD)result )
{
if ( (unsigned int)end_io_cache(a1 + 136) )
{
mi_report_error(126, *(_QWORD *)(*(_QWORD *)a1 + 616LL));
*(_BYTE *)(*(_QWORD *)a1 + 240LL) |= 2u;
mi_report_crashed();
}
result = a1;
a1[114] &= ~0x10u;
}
return result;
}
| mi_update_status:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
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 + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,0x10
CMP RAX,RCX
JNZ 0x0013d1e3
JMP 0x0013d16b
LAB_0013d16b:
JMP 0x0013d16d
LAB_0013d16d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x38]
JC 0x0013d19f
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x40]
JNC 0x0013d1a5
LAB_0013d19f:
JMP 0x0013d1a1
LAB_0013d1a1:
JMP 0x0013d1a3
LAB_0013d1a3:
JMP 0x0013d1a5
LAB_0013d1a5:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
ADD RDI,0x18
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV EDX,0x38
CALL 0x001292d0
JMP 0x0013d1c4
LAB_0013d1c4:
JMP 0x0013d1c6
LAB_0013d1c6:
JMP 0x0013d1c8
LAB_0013d1c8:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x2f8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0xf8]
CALL RAX
LAB_0013d1e3:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x18
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x33a],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x1c8]
AND EAX,0x10
CMP EAX,0x0
JZ 0x0013d287
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x220
CALL 0x00176380
CMP EAX,0x0
JZ 0x0013d274
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x0013a810
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOVZX ECX,byte ptr [RAX + 0xf0]
OR ECX,0x2
MOV byte ptr [RAX + 0xf0],CL
JMP 0x0013d259
LAB_0013d259:
MOV RDI,qword ptr [RBP + -0x10]
XOR EAX,EAX
MOV ESI,EAX
LEA RDX,[0x1e4011]
MOV ECX,0x164
CALL 0x0012ac70
JMP 0x0013d274
LAB_0013d274:
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x1c8]
AND ECX,0xffffffef
MOV dword ptr [RAX + 0x1c8],ECX
LAB_0013d287:
JMP 0x0013d289
LAB_0013d289:
JMP 0x0013d28b
LAB_0013d28b:
ADD RSP,0x10
POP RBP
RET
|
void mi_update_status(long *param_1)
{
int iVar1;
if ((long *)param_1[1] == param_1 + 2) {
memcpy((void *)(*param_1 + 0x18),(void *)param_1[1],0x38);
(**(code **)(*param_1 + 0x2f8))(param_1[0x1f]);
}
param_1[1] = *param_1 + 0x18;
*(int1 *)((long)param_1 + 0x33a) = 0;
if ((*(uint *)(param_1 + 0x39) & 0x10) != 0) {
iVar1 = end_io_cache(param_1 + 0x44);
if (iVar1 != 0) {
mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268));
*(byte *)(*param_1 + 0xf0) = *(byte *)(*param_1 + 0xf0) | 2;
_mi_report_crashed(param_1,0,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_locking.c",
0x164);
}
*(uint *)(param_1 + 0x39) = *(uint *)(param_1 + 0x39) & 0xffffffef;
}
return;
}
|
|
3,015 | test_scale::build_graph(ggml_context*) | monkey531[P]llama/tests/test-backend-ops.cpp | ggml_tensor * build_graph(ggml_context * ctx) override {
ggml_tensor * a = ggml_new_tensor(ctx, type, 4, ne.data());
ggml_set_param(ctx, a);
ggml_set_name(a, "a");
ggml_tensor * out = ggml_scale(ctx, a, scale);
ggml_set_name(out, "out");
return out;
} | O0 | cpp | test_scale::build_graph(ggml_context*):
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rdi
movq %rdi, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
movl 0x38(%rdi), %eax
movl %eax, 0xc(%rsp)
addq $0x40, %rdi
callq 0x42410
movq (%rsp), %rsi
movl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %rax, %r8
movl $0x4, %ecx
callq 0x423a0
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x19b90
movq 0x20(%rsp), %rdi
leaq 0x1e23f(%rip), %rsi # 0x6bdba
callq 0x19c10
movq 0x10(%rsp), %rax
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
movss 0x60(%rax), %xmm0
callq 0x190d0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x1e7da(%rip), %rsi # 0x6c384
callq 0x19c10
movq 0x18(%rsp), %rax
addq $0x38, %rsp
retq
nopl (%rax)
| _ZN10test_scale11build_graphEP12ggml_context:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_10], rsi
mov rdi, [rsp+38h+var_8]
mov [rsp+38h+var_28], rdi
mov rax, [rsp+38h+var_10]
mov [rsp+38h+var_38], rax
mov eax, [rdi+38h]
mov [rsp+38h+var_2C], eax
add rdi, 40h ; '@'
call _ZNKSt5arrayIlLm4EE4dataEv; std::array<long,4ul>::data(void)
mov rsi, [rsp+38h+var_38]
mov edx, [rsp+38h+var_2C]
mov rdi, [rsp+38h+var_28]
mov r8, rax
mov ecx, 4
call _ZN9test_case15ggml_new_tensorEP12ggml_context9ggml_typeiPKl; test_case::ggml_new_tensor(ggml_context *,ggml_type,int,long const*)
mov [rsp+38h+var_18], rax
mov rdi, [rsp+38h+var_10]
mov rsi, [rsp+38h+var_18]
call _ggml_set_param
mov rdi, [rsp+38h+var_18]
lea rsi, aViewOfA+8; "a"
call _ggml_set_name
mov rax, [rsp+38h+var_28]
mov rdi, [rsp+38h+var_10]
mov rsi, [rsp+38h+var_18]
movss xmm0, dword ptr [rax+60h]
call _ggml_scale
mov [rsp+38h+var_20], rax
mov rdi, [rsp+38h+var_20]
lea rsi, aSumOfOut+7; "out"
call _ggml_set_name
mov rax, [rsp+38h+var_20]
add rsp, 38h
retn
| long long test_scale::build_graph(long long a1, long long a2)
{
long long v2; // rax
unsigned int v4; // [rsp+Ch] [rbp-2Ch]
long long v5; // [rsp+18h] [rbp-20h]
long long v6; // [rsp+20h] [rbp-18h]
v4 = *(_DWORD *)(a1 + 56);
v2 = std::array<long,4ul>::data(a1 + 64);
v6 = test_case::ggml_new_tensor(a1, a2, v4, 4u, v2);
ggml_set_param(a2, v6);
ggml_set_name(v6, "a");
v5 = ggml_scale(a2, v6, *(float *)(a1 + 96));
ggml_set_name(v5, "out");
return v5;
}
| build_graph:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV RDI,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP],RAX
MOV EAX,dword ptr [RDI + 0x38]
MOV dword ptr [RSP + 0xc],EAX
ADD RDI,0x40
CALL 0x00142410
MOV RSI,qword ptr [RSP]
MOV EDX,dword ptr [RSP + 0xc]
MOV RDI,qword ptr [RSP + 0x10]
MOV R8,RAX
MOV ECX,0x4
CALL 0x001423a0
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x20]
CALL 0x00119b90
MOV RDI,qword ptr [RSP + 0x20]
LEA RSI,[0x16bdba]
CALL 0x00119c10
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x20]
MOVSS XMM0,dword ptr [RAX + 0x60]
CALL 0x001190d0
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[0x16c384]
CALL 0x00119c10
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0x38
RET
|
/* test_scale::build_graph(ggml_context*) */
int8 __thiscall test_scale::build_graph(test_scale *this,ggml_context *param_1)
{
int4 uVar1;
int8 uVar2;
uVar1 = *(int4 *)(this + 0x38);
uVar2 = std::array<long,4ul>::data((array<long,4ul> *)(this + 0x40));
uVar2 = test_case::ggml_new_tensor((test_case *)this,param_1,uVar1,4,uVar2);
ggml_set_param(param_1,uVar2);
ggml_set_name(uVar2,"a");
uVar2 = ggml_scale(*(int4 *)(this + 0x60),param_1,uVar2);
ggml_set_name(uVar2,"out");
return uVar2;
}
|
|
3,016 | test_scale::build_graph(ggml_context*) | monkey531[P]llama/tests/test-backend-ops.cpp | ggml_tensor * build_graph(ggml_context * ctx) override {
ggml_tensor * a = ggml_new_tensor(ctx, type, 4, ne.data());
ggml_set_param(ctx, a);
ggml_set_name(a, "a");
ggml_tensor * out = ggml_scale(ctx, a, scale);
ggml_set_name(out, "out");
return out;
} | O3 | cpp | test_scale::build_graph(ggml_context*):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x38(%rdi), %esi
leaq 0x40(%rdi), %rcx
movq %rbx, %rdi
movl $0x4, %edx
callq 0xd080
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1b8ae
movq %rbx, %rdi
movq %r15, %rsi
callq 0xda90
leaq 0x1c848(%rip), %rsi # 0x44b87
movq %r15, %rdi
callq 0xdb10
movss 0x60(%r14), %xmm0
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd0b0
movq %rax, %rbx
leaq 0x1cdcc(%rip), %rsi # 0x4512e
movq %rax, %rdi
callq 0xdb10
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
| _ZN10test_scale11build_graphEP12ggml_context:
push r15
push r14
push rbx
mov rbx, rsi
mov r14, rdi
mov esi, [rdi+38h]
lea rcx, [rdi+40h]
mov rdi, rbx
mov edx, 4
call _ggml_new_tensor
mov r15, rax
mov rdi, r14
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
mov rdi, rbx
mov rsi, r15
call _ggml_set_param
lea rsi, aViewOfA+8; "a"
mov rdi, r15
call _ggml_set_name
movss xmm0, dword ptr [r14+60h]
mov rdi, rbx
mov rsi, r15
call _ggml_scale
mov rbx, rax
lea rsi, aSumOfOut+7; "out"
mov rdi, rax
call _ggml_set_name
mov rax, rbx
pop rbx
pop r14
pop r15
retn
| long long test_scale::build_graph(long long a1, long long a2)
{
long long v2; // r15
long long v3; // rbx
v2 = ggml_new_tensor(a2, *(unsigned int *)(a1 + 56), 4LL);
test_case::add_sentinel(a1, a2);
ggml_set_param(a2, v2);
ggml_set_name(v2, "a");
v3 = ggml_scale(a2, v2, *(float *)(a1 + 96));
ggml_set_name(v3, "out");
return v3;
}
| build_graph:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
MOV ESI,dword ptr [RDI + 0x38]
LEA RCX,[RDI + 0x40]
MOV RDI,RBX
MOV EDX,0x4
CALL 0x0010d080
MOV R15,RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011b8ae
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010da90
LEA RSI,[0x144b87]
MOV RDI,R15
CALL 0x0010db10
MOVSS XMM0,dword ptr [R14 + 0x60]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010d0b0
MOV RBX,RAX
LEA RSI,[0x14512e]
MOV RDI,RAX
CALL 0x0010db10
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* test_scale::build_graph(ggml_context*) */
int8 __thiscall test_scale::build_graph(test_scale *this,ggml_context *param_1)
{
int8 uVar1;
uVar1 = ggml_new_tensor(param_1,*(int4 *)(this + 0x38),4,this + 0x40);
test_case::add_sentinel((test_case *)this,param_1);
ggml_set_param(param_1,uVar1);
ggml_set_name(uVar1,"a");
uVar1 = ggml_scale(*(int4 *)(this + 0x60),param_1,uVar1);
ggml_set_name(uVar1,"out");
return uVar1;
}
|
|
3,017 | qshell_cmd_tictactoe | qoraal-tictactoe/src/tictactoe.c | static int32_t qshell_cmd_tictactoe(SVC_SHELL_IF_T *pif, char** argv, int argc)
{
svc_shell_print(pif, SVC_SHELL_OUT_STD, "\n=== Demonstration Game ===\n");
int board[9] = {0,0,0, 0,0,0, 0,0,0};
int current_player = 0;
while (!check_winner(board, 0) && !board_full(board)) {
if (current_player == 1) {
int action = choose_move_epsilon(board, 0.0);
if (action == -1)
break;
board[action] = 1;
svc_shell_print(pif, SVC_SHELL_OUT_STD, "\nAI moves at position %d:\n", action);
print_board(pif, board);
current_player = -1;
} else {
int legal_moves[9], count = 0;
for (int i = 0; i < 9; i++) {
if (board[i] == 0)
legal_moves[count++] = i;
}
if (count == 0)
break;
int move = legal_moves[rand() % count];
board[move] = -1;
svc_shell_print(pif, SVC_SHELL_OUT_STD, "\nOpponent moves at position %d:\n", move);
print_board(pif, board);
current_player = 1;
}
}
int winner = check_winner(board, 0);
if (winner == 1)
svc_shell_print(pif, SVC_SHELL_OUT_STD, "\nAI wins the demonstration game!\n");
else if (winner == -1)
svc_shell_print(pif, SVC_SHELL_OUT_STD, "\nOpponent wins the demonstration game!\n");
else
svc_shell_print(pif, SVC_SHELL_OUT_STD, "\nIt's a draw in the demonstration game!\n");
return EOK;
} | O0 | c | qshell_cmd_tictactoe:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movl $0x1, %esi
leaq 0x1de0e(%rip), %rdx # 0x34e04
movb $0x0, %al
callq 0x20ef0
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x24, %edx
callq 0x6270
movl $0x0, -0x44(%rbp)
leaq -0x40(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x17dc0
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x81(%rbp)
jne 0x17047
leaq -0x40(%rbp), %rdi
callq 0x17f20
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, -0x81(%rbp)
movb -0x81(%rbp), %al
testb $0x1, %al
jne 0x17056
jmp 0x1714f
cmpl $0x1, -0x44(%rbp)
jne 0x170b5
leaq -0x40(%rbp), %rdi
xorps %xmm0, %xmm0
callq 0x17a10
movl %eax, -0x48(%rbp)
cmpl $-0x1, -0x48(%rbp)
jne 0x17076
jmp 0x1714f
movslq -0x48(%rbp), %rax
movl $0x1, -0x40(%rbp,%rax,4)
movq -0x8(%rbp), %rdi
movl -0x48(%rbp), %ecx
movl $0x1, %esi
leaq 0x1dd8c(%rip), %rdx # 0x34e21
movb $0x0, %al
callq 0x20ef0
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x17f70
movl $0xffffffff, -0x44(%rbp) # imm = 0xFFFFFFFF
jmp 0x1714a
movl $0x0, -0x74(%rbp)
movl $0x0, -0x78(%rbp)
cmpl $0x9, -0x78(%rbp)
jge 0x170f5
movslq -0x78(%rbp), %rax
cmpl $0x0, -0x40(%rbp,%rax,4)
jne 0x170e8
movl -0x78(%rbp), %ecx
movl -0x74(%rbp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, -0x74(%rbp)
cltq
movl %ecx, -0x70(%rbp,%rax,4)
jmp 0x170ea
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x170c3
cmpl $0x0, -0x74(%rbp)
jne 0x170fd
jmp 0x1714f
callq 0x65e0
cltd
idivl -0x74(%rbp)
movslq %edx, %rax
movl -0x70(%rbp,%rax,4), %eax
movl %eax, -0x7c(%rbp)
movslq -0x7c(%rbp), %rax
movl $0xffffffff, -0x40(%rbp,%rax,4) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl $0x1, %esi
leaq 0x1dd0d(%rip), %rdx # 0x34e3c
movb $0x0, %al
callq 0x20ef0
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x17f70
movl $0x1, -0x44(%rbp)
jmp 0x17014
leaq -0x40(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x17dc0
movl %eax, -0x80(%rbp)
cmpl $0x1, -0x80(%rbp)
jne 0x1717e
movq -0x8(%rbp), %rdi
movl $0x1, %esi
leaq 0x1dce8(%rip), %rdx # 0x34e5d
movb $0x0, %al
callq 0x20ef0
jmp 0x171b6
cmpl $-0x1, -0x80(%rbp)
jne 0x1719d
movq -0x8(%rbp), %rdi
movl $0x1, %esi
leaq 0x1dceb(%rip), %rdx # 0x34e7f
movb $0x0, %al
callq 0x20ef0
jmp 0x171b4
movq -0x8(%rbp), %rdi
movl $0x1, %esi
leaq 0x1dcfa(%rip), %rdx # 0x34ea7
movb $0x0, %al
callq 0x20ef0
jmp 0x171b6
xorl %eax, %eax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| qshell_cmd_tictactoe:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov rdi, [rbp+var_8]
mov esi, 1
lea rdx, aDemonstrationG; "\n=== Demonstration Game ===\n"
mov al, 0
call svc_shell_print
lea rdi, [rbp+var_40]
xor esi, esi
mov edx, 24h ; '$'
call _memset
mov [rbp+var_44], 0
loc_17014:
lea rdi, [rbp+var_40]
xor eax, eax
mov esi, eax
call check_winner
mov ecx, eax
xor eax, eax
cmp ecx, 0
mov [rbp+var_81], al
jnz short loc_17047
lea rdi, [rbp+var_40]
call board_full
cmp eax, 0
setnz al
xor al, 0FFh
mov [rbp+var_81], al
loc_17047:
mov al, [rbp+var_81]
test al, 1
jnz short loc_17056
jmp loc_1714F
loc_17056:
cmp [rbp+var_44], 1
jnz short loc_170B5
lea rdi, [rbp+var_40]
xorps xmm0, xmm0
call choose_move_epsilon
mov [rbp+var_48], eax
cmp [rbp+var_48], 0FFFFFFFFh
jnz short loc_17076
jmp loc_1714F
loc_17076:
movsxd rax, [rbp+var_48]
mov [rbp+rax*4+var_40], 1
mov rdi, [rbp+var_8]
mov ecx, [rbp+var_48]
mov esi, 1
lea rdx, aAiMovesAtPosit; "\nAI moves at position %d:\n"
mov al, 0
call svc_shell_print
mov rdi, [rbp+var_8]
lea rsi, [rbp+var_40]
call print_board
mov [rbp+var_44], 0FFFFFFFFh
jmp loc_1714A
loc_170B5:
mov [rbp+var_74], 0
mov [rbp+var_78], 0
loc_170C3:
cmp [rbp+var_78], 9
jge short loc_170F5
movsxd rax, [rbp+var_78]
cmp [rbp+rax*4+var_40], 0
jnz short loc_170E8
mov ecx, [rbp+var_78]
mov eax, [rbp+var_74]
mov edx, eax
add edx, 1
mov [rbp+var_74], edx
cdqe
mov [rbp+rax*4+var_70], ecx
loc_170E8:
jmp short $+2
loc_170EA:
mov eax, [rbp+var_78]
add eax, 1
mov [rbp+var_78], eax
jmp short loc_170C3
loc_170F5:
cmp [rbp+var_74], 0
jnz short loc_170FD
jmp short loc_1714F
loc_170FD:
call _rand
cdq
idiv [rbp+var_74]
movsxd rax, edx
mov eax, [rbp+rax*4+var_70]
mov [rbp+var_7C], eax
movsxd rax, [rbp+var_7C]
mov [rbp+rax*4+var_40], 0FFFFFFFFh
mov rdi, [rbp+var_8]
mov ecx, [rbp+var_7C]
mov esi, 1
lea rdx, aOpponentMovesA; "\nOpponent moves at position %d:\n"
mov al, 0
call svc_shell_print
mov rdi, [rbp+var_8]
lea rsi, [rbp+var_40]
call print_board
mov [rbp+var_44], 1
loc_1714A:
jmp loc_17014
loc_1714F:
lea rdi, [rbp+var_40]
xor eax, eax
mov esi, eax
call check_winner
mov [rbp+var_80], eax
cmp [rbp+var_80], 1
jnz short loc_1717E
mov rdi, [rbp+var_8]
mov esi, 1
lea rdx, aAiWinsTheDemon; "\nAI wins the demonstration game!\n"
mov al, 0
call svc_shell_print
jmp short loc_171B6
loc_1717E:
cmp [rbp+var_80], 0FFFFFFFFh
jnz short loc_1719D
mov rdi, [rbp+var_8]
mov esi, 1
lea rdx, aOpponentWinsTh; "\nOpponent wins the demonstration game!"...
mov al, 0
call svc_shell_print
jmp short loc_171B4
loc_1719D:
mov rdi, [rbp+var_8]
mov esi, 1
lea rdx, aItSADrawInTheD; "\nIt's a draw in the demonstration game"...
mov al, 0
call svc_shell_print
loc_171B4:
jmp short $+2
loc_171B6:
xor eax, eax
add rsp, 90h
pop rbp
retn
| long long qshell_cmd_tictactoe(long long a1, long long a2, int a3, int a4, int a5, int a6)
{
int v6; // r8d
int v7; // r9d
int v8; // eax
int v9; // r8d
int v10; // r9d
int v11; // ecx
int v12; // r8d
int v13; // r9d
char v15; // [rsp+Fh] [rbp-81h]
int v16; // [rsp+10h] [rbp-80h]
int v17; // [rsp+14h] [rbp-7Ch]
int i; // [rsp+18h] [rbp-78h]
int v19; // [rsp+1Ch] [rbp-74h]
_DWORD v20[10]; // [rsp+20h] [rbp-70h]
int v21; // [rsp+48h] [rbp-48h]
int v22; // [rsp+4Ch] [rbp-44h]
_DWORD v23[12]; // [rsp+50h] [rbp-40h] BYREF
long long v24; // [rsp+80h] [rbp-10h]
long long v25; // [rsp+88h] [rbp-8h]
v25 = a1;
v24 = a2;
v23[11] = a3;
svc_shell_print(a1, 1, (unsigned int)aDemonstrationG, a4, a5, a6);
memset(v23, 0LL, 36LL);
v22 = 0;
while ( 1 )
{
v15 = 0;
if ( !(unsigned int)check_winner(v23, 0LL) )
v15 = ~((unsigned int)board_full(v23) != 0);
if ( (v15 & 1) == 0 )
break;
if ( v22 == 1 )
{
v21 = choose_move_epsilon(v23, 0.0);
if ( v21 == -1 )
break;
v23[v21] = 1;
svc_shell_print(v25, 1, (unsigned int)aAiMovesAtPosit, v21, v6, v7);
print_board(v25, v23);
v22 = -1;
}
else
{
v19 = 0;
for ( i = 0; i < 9; ++i )
{
if ( !v23[i] )
{
v8 = v19++;
v20[v8] = i;
}
}
if ( !v19 )
break;
v17 = v20[(int)rand() % v19];
v23[v17] = -1;
svc_shell_print(v25, 1, (unsigned int)aOpponentMovesA, v17, v9, v10);
print_board(v25, v23);
v22 = 1;
}
}
v16 = check_winner(v23, 0LL);
if ( v16 == 1 )
{
svc_shell_print(v25, 1, (unsigned int)aAiWinsTheDemon, v11, v12, v13);
}
else if ( v16 == -1 )
{
svc_shell_print(v25, 1, (unsigned int)aOpponentWinsTh, v11, v12, v13);
}
else
{
svc_shell_print(v25, 1, (unsigned int)aItSADrawInTheD, v11, v12, v13);
}
return 0LL;
}
| qshell_cmd_tictactoe:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
LEA RDX,[0x134e04]
MOV AL,0x0
CALL 0x00120ef0
LEA RDI,[RBP + -0x40]
XOR ESI,ESI
MOV EDX,0x24
CALL 0x00106270
MOV dword ptr [RBP + -0x44],0x0
LAB_00117014:
LEA RDI,[RBP + -0x40]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x00117dc0
MOV ECX,EAX
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x81],AL
JNZ 0x00117047
LEA RDI,[RBP + -0x40]
CALL 0x00117f20
CMP EAX,0x0
SETNZ AL
XOR AL,0xff
MOV byte ptr [RBP + -0x81],AL
LAB_00117047:
MOV AL,byte ptr [RBP + -0x81]
TEST AL,0x1
JNZ 0x00117056
JMP 0x0011714f
LAB_00117056:
CMP dword ptr [RBP + -0x44],0x1
JNZ 0x001170b5
LEA RDI,[RBP + -0x40]
XORPS XMM0,XMM0
CALL 0x00117a10
MOV dword ptr [RBP + -0x48],EAX
CMP dword ptr [RBP + -0x48],-0x1
JNZ 0x00117076
JMP 0x0011714f
LAB_00117076:
MOVSXD RAX,dword ptr [RBP + -0x48]
MOV dword ptr [RBP + RAX*0x4 + -0x40],0x1
MOV RDI,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x48]
MOV ESI,0x1
LEA RDX,[0x134e21]
MOV AL,0x0
CALL 0x00120ef0
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[RBP + -0x40]
CALL 0x00117f70
MOV dword ptr [RBP + -0x44],0xffffffff
JMP 0x0011714a
LAB_001170b5:
MOV dword ptr [RBP + -0x74],0x0
MOV dword ptr [RBP + -0x78],0x0
LAB_001170c3:
CMP dword ptr [RBP + -0x78],0x9
JGE 0x001170f5
MOVSXD RAX,dword ptr [RBP + -0x78]
CMP dword ptr [RBP + RAX*0x4 + -0x40],0x0
JNZ 0x001170e8
MOV ECX,dword ptr [RBP + -0x78]
MOV EAX,dword ptr [RBP + -0x74]
MOV EDX,EAX
ADD EDX,0x1
MOV dword ptr [RBP + -0x74],EDX
CDQE
MOV dword ptr [RBP + RAX*0x4 + -0x70],ECX
LAB_001170e8:
JMP 0x001170ea
LAB_001170ea:
MOV EAX,dword ptr [RBP + -0x78]
ADD EAX,0x1
MOV dword ptr [RBP + -0x78],EAX
JMP 0x001170c3
LAB_001170f5:
CMP dword ptr [RBP + -0x74],0x0
JNZ 0x001170fd
JMP 0x0011714f
LAB_001170fd:
CALL 0x001065e0
CDQ
IDIV dword ptr [RBP + -0x74]
MOVSXD RAX,EDX
MOV EAX,dword ptr [RBP + RAX*0x4 + -0x70]
MOV dword ptr [RBP + -0x7c],EAX
MOVSXD RAX,dword ptr [RBP + -0x7c]
MOV dword ptr [RBP + RAX*0x4 + -0x40],0xffffffff
MOV RDI,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x7c]
MOV ESI,0x1
LEA RDX,[0x134e3c]
MOV AL,0x0
CALL 0x00120ef0
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[RBP + -0x40]
CALL 0x00117f70
MOV dword ptr [RBP + -0x44],0x1
LAB_0011714a:
JMP 0x00117014
LAB_0011714f:
LEA RDI,[RBP + -0x40]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x00117dc0
MOV dword ptr [RBP + -0x80],EAX
CMP dword ptr [RBP + -0x80],0x1
JNZ 0x0011717e
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
LEA RDX,[0x134e5d]
MOV AL,0x0
CALL 0x00120ef0
JMP 0x001171b6
LAB_0011717e:
CMP dword ptr [RBP + -0x80],-0x1
JNZ 0x0011719d
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
LEA RDX,[0x134e7f]
MOV AL,0x0
CALL 0x00120ef0
JMP 0x001171b4
LAB_0011719d:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
LEA RDX,[0x134ea7]
MOV AL,0x0
CALL 0x00120ef0
LAB_001171b4:
JMP 0x001171b6
LAB_001171b6:
XOR EAX,EAX
ADD RSP,0x90
POP RBP
RET
|
int8 qshell_cmd_tictactoe(int8 param_1,int8 param_2,int4 param_3)
{
int iVar1;
bool bVar2;
int local_80;
int local_7c;
int aiStack_78 [10];
int local_50;
int local_4c;
int local_48 [11];
int4 local_1c;
int8 local_18;
int8 local_10;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
svc_shell_print(param_1,1,s_____Demonstration_Game_____00134e04);
memset(local_48,0,0x24);
local_4c = 0;
while( true ) {
iVar1 = check_winner(local_48,0);
bVar2 = false;
if (iVar1 == 0) {
iVar1 = board_full(local_48);
bVar2 = iVar1 == 0;
}
if (!bVar2) break;
if (local_4c == 1) {
local_50 = choose_move_epsilon(0,local_48);
if (local_50 == -1) break;
local_48[local_50] = 1;
svc_shell_print(local_10,1,s_AI_moves_at_position__d__00134e21,local_50);
print_board(local_10,local_48);
local_4c = -1;
}
else {
local_7c = 0;
for (local_80 = 0; local_80 < 9; local_80 = local_80 + 1) {
if (local_48[local_80] == 0) {
aiStack_78[local_7c] = local_80;
local_7c = local_7c + 1;
}
}
if (local_7c == 0) break;
iVar1 = rand();
iVar1 = aiStack_78[iVar1 % local_7c];
local_48[iVar1] = -1;
svc_shell_print(local_10,1,s_Opponent_moves_at_position__d__00134e3c,iVar1);
print_board(local_10,local_48);
local_4c = 1;
}
}
iVar1 = check_winner(local_48,0);
if (iVar1 == 1) {
svc_shell_print(local_10,1,s_AI_wins_the_demonstration_game__00134e5d);
}
else if (iVar1 == -1) {
svc_shell_print(local_10,1,s_Opponent_wins_the_demonstration_g_00134e7f);
}
else {
svc_shell_print(local_10,1,s_It_s_a_draw_in_the_demonstration_00134ea7);
}
return 0;
}
|
|
3,018 | aria_read_index | eloqsql/storage/maria/ma_backup.c | int aria_read_index(File kfile, ARIA_TABLE_CAPABILITIES *cap, ulonglong block,
uchar *buffer)
{
MARIA_SHARE share;
int retry= 0;
DBUG_ENTER("aria_read_index");
share.keypage_header= cap->keypage_header;
share.block_size= cap->block_size;
do
{
int error;
size_t length;
if ((length= my_pread(kfile, buffer, cap->block_size,
block * cap->block_size, MYF(0))) != cap->block_size)
{
if (length == 0)
DBUG_RETURN(HA_ERR_END_OF_FILE);
if (length == (size_t) -1)
DBUG_RETURN(my_errno ? my_errno : -1);
/* Assume we got a half read; Do a re-read */
}
/* If not transactional or key file header, there are no checksums */
if (!cap->online_backup_safe ||
block < cap->header_size/ cap->block_size)
DBUG_RETURN(length == cap->block_size ? 0 : HA_ERR_CRASHED);
if (length == cap->block_size)
{
length= _ma_get_page_used(&share, buffer);
if (length > cap->block_size - CRC_SIZE)
DBUG_RETURN(HA_ERR_CRASHED);
error= maria_page_crc_check(buffer, block, &share,
MARIA_NO_CRC_NORMAL_PAGE,
(int) length);
if (error != HA_ERR_WRONG_CRC)
DBUG_RETURN(error);
}
my_sleep(100000); /* Sleep 0.1 seconds */
} while (retry < MAX_RETRY);
DBUG_RETURN(HA_ERR_WRONG_CRC);
} | O3 | c | aria_read_index:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc48, %rsp # imm = 0xC48
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r15
movl %edi, %r12d
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movl 0x14(%rsi), %r13d
movl %r13d, -0x524(%rbp)
movl 0x10(%rsi), %eax
movl %eax, -0x4ac(%rbp)
movl %eax, %edx
movq %rdx, %rcx
imulq %rbx, %rcx
movl %r12d, %edi
movq %r14, %rsi
xorl %r8d, %r8d
callq 0xa0660
movq %rax, %rcx
movl 0x10(%r15), %esi
cmpq %rsi, %rax
je 0x7137d
testq %rcx, %rcx
je 0x713ff
cmpq $-0x1, %rcx
je 0x713ec
cmpb $0x0, 0x1f(%r15)
je 0x713a6
movq (%r15), %rax
xorl %edx, %edx
divq %rsi
cmpq %rbx, %rax
ja 0x713a6
cmpq %rsi, %rcx
je 0x713b5
movl $0x186a0, %edi # imm = 0x186A0
callq 0xa0c74
movl 0x10(%r15), %eax
jmp 0x7134b
xorl %edx, %edx
cmpq %rsi, %rcx
movl $0x7e, %eax
cmovel %edx, %eax
jmp 0x7140b
movzwl -0x2(%r14,%r13), %eax
rolw $0x8, %ax
movzwl %ax, %r8d
addl $-0x4, %esi
movl $0x7e, %eax
cmpl %esi, %r8d
ja 0x7140b
leaq -0xc68(%rbp), %rdx
movq %r14, %rdi
movq %rbx, %rsi
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
callq 0x503bc
movsbl %al, %eax
jmp 0x7140b
callq 0xa1b22
cmpl $0x0, (%rax)
je 0x71406
callq 0xa1b22
movl (%rax), %eax
jmp 0x7140b
movl $0x89, %eax
jmp 0x7140b
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x7142c
addq $0xc48, %rsp # imm = 0xC48
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29270
| aria_read_index:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C48h
mov r14, rcx
mov rbx, rdx
mov r15, rsi
mov r12d, edi
mov rax, fs:28h
mov [rbp+var_30], rax
mov r13d, [rsi+14h]
mov [rbp+var_524], r13d
mov eax, [rsi+10h]
mov [rbp+var_4AC], eax
loc_7134B:
mov edx, eax
mov rcx, rdx
imul rcx, rbx
mov edi, r12d
mov rsi, r14
xor r8d, r8d
call my_pread
mov rcx, rax
mov esi, [r15+10h]
cmp rax, rsi
jz short loc_7137D
test rcx, rcx
jz loc_713FF
cmp rcx, 0FFFFFFFFFFFFFFFFh
jz short loc_713EC
loc_7137D:
cmp byte ptr [r15+1Fh], 0
jz short loc_713A6
mov rax, [r15]
xor edx, edx
div rsi
cmp rax, rbx
ja short loc_713A6
cmp rcx, rsi
jz short loc_713B5
mov edi, offset stru_186A0
call my_sleep
mov eax, [r15+10h]
jmp short loc_7134B
loc_713A6:
xor edx, edx
cmp rcx, rsi
mov eax, 7Eh ; '~'
cmovz eax, edx
jmp short loc_7140B
loc_713B5:
movzx eax, word ptr [r14+r13-2]
rol ax, 8
movzx r8d, ax
add esi, 0FFFFFFFCh
mov eax, 7Eh ; '~'
cmp r8d, esi
ja short loc_7140B
lea rdx, [rbp+var_C68]
mov rdi, r14
mov rsi, rbx
mov ecx, 0FFFFFFFFh
call maria_page_crc_check
movsx eax, al
jmp short loc_7140B
loc_713EC:
call _my_thread_var
cmp dword ptr [rax], 0
jz short loc_71406
call _my_thread_var
mov eax, [rax]
jmp short loc_7140B
loc_713FF:
mov eax, 89h
jmp short loc_7140B
loc_71406:
mov eax, 0FFFFFFFFh
loc_7140B:
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz short loc_7142C
add rsp, 0C48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7142C:
call ___stack_chk_fail
| long long aria_read_index(unsigned int a1, long long a2, unsigned long long a3, long long a4)
{
long long v7; // r13
unsigned int v8; // eax
long long v9; // rax
const char *v10; // rcx
const char *v11; // rsi
long long result; // rax
unsigned int v13; // r8d
_BYTE v14[1860]; // [rsp+8h] [rbp-C68h] BYREF
int v15; // [rsp+74Ch] [rbp-524h]
unsigned int v16; // [rsp+7C4h] [rbp-4ACh]
unsigned long long v17; // [rsp+C40h] [rbp-30h]
v17 = __readfsqword(0x28u);
v7 = *(unsigned int *)(a2 + 20);
v15 = *(_DWORD *)(a2 + 20);
v8 = *(_DWORD *)(a2 + 16);
v16 = v8;
while ( 1 )
{
v9 = my_pread(a1, a4, v8, a3 * v8, 0LL);
v10 = (const char *)v9;
v11 = (const char *)*(unsigned int *)(a2 + 16);
if ( (const char *)v9 != v11 )
{
if ( !v9 )
return 137LL;
if ( v9 == -1 )
{
if ( *(_DWORD *)my_thread_var(a1, v11) )
return *(unsigned int *)my_thread_var(a1, v11);
else
return 0xFFFFFFFFLL;
}
}
if ( !*(_BYTE *)(a2 + 31) || *(_QWORD *)a2 / (unsigned long long)v11 > a3 )
break;
if ( (const char *)v9 == v11 )
{
v13 = (unsigned __int16)__ROL2__(*(_WORD *)(a4 + v7 - 2), 8);
result = 126LL;
if ( v13 <= (int)v11 - 4 )
return (unsigned int)maria_page_crc_check(a4, a3, (long long)v14, -1, v13);
return result;
}
my_sleep(&stru_186A0, v11, *(_QWORD *)a2 % (unsigned long long)v11);
v8 = *(_DWORD *)(a2 + 16);
}
result = 126LL;
if ( v10 == v11 )
return 0LL;
return result;
}
| aria_read_index:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc48
MOV R14,RCX
MOV RBX,RDX
MOV R15,RSI
MOV R12D,EDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV R13D,dword ptr [RSI + 0x14]
MOV dword ptr [RBP + -0x524],R13D
MOV EAX,dword ptr [RSI + 0x10]
MOV dword ptr [RBP + -0x4ac],EAX
LAB_0017134b:
MOV EDX,EAX
MOV RCX,RDX
IMUL RCX,RBX
MOV EDI,R12D
MOV RSI,R14
XOR R8D,R8D
CALL 0x001a0660
MOV RCX,RAX
MOV ESI,dword ptr [R15 + 0x10]
CMP RAX,RSI
JZ 0x0017137d
TEST RCX,RCX
JZ 0x001713ff
CMP RCX,-0x1
JZ 0x001713ec
LAB_0017137d:
CMP byte ptr [R15 + 0x1f],0x0
JZ 0x001713a6
MOV RAX,qword ptr [R15]
XOR EDX,EDX
DIV RSI
CMP RAX,RBX
JA 0x001713a6
CMP RCX,RSI
JZ 0x001713b5
MOV EDI,0x186a0
CALL 0x001a0c74
MOV EAX,dword ptr [R15 + 0x10]
JMP 0x0017134b
LAB_001713a6:
XOR EDX,EDX
CMP RCX,RSI
MOV EAX,0x7e
CMOVZ EAX,EDX
JMP 0x0017140b
LAB_001713b5:
MOVZX EAX,word ptr [R14 + R13*0x1 + -0x2]
ROL AX,0x8
MOVZX R8D,AX
ADD ESI,-0x4
MOV EAX,0x7e
CMP R8D,ESI
JA 0x0017140b
LEA RDX,[RBP + -0xc68]
MOV RDI,R14
MOV RSI,RBX
MOV ECX,0xffffffff
CALL 0x001503bc
MOVSX EAX,AL
JMP 0x0017140b
LAB_001713ec:
CALL 0x001a1b22
CMP dword ptr [RAX],0x0
JZ 0x00171406
CALL 0x001a1b22
MOV EAX,dword ptr [RAX]
JMP 0x0017140b
LAB_001713ff:
MOV EAX,0x89
JMP 0x0017140b
LAB_00171406:
MOV EAX,0xffffffff
LAB_0017140b:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x0017142c
ADD RSP,0xc48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017142c:
CALL 0x00129270
|
int aria_read_index(int4 param_1,ulong *param_2,ulong param_3,long param_4)
{
ushort uVar1;
char cVar2;
uint uVar3;
int iVar4;
ulong uVar5;
int *piVar6;
ulong uVar7;
ulong uVar8;
long in_FS_OFFSET;
int1 local_c70 [1860];
uint local_52c;
uint local_4b4;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_52c = *(uint *)((long)param_2 + 0x14);
uVar8 = (ulong)local_52c;
uVar3 = (uint)param_2[2];
local_4b4 = uVar3;
do {
uVar5 = my_pread(param_1,param_4,(ulong)uVar3,uVar3 * param_3,0);
uVar7 = (ulong)(uint)param_2[2];
if (uVar5 != uVar7) {
if (uVar5 == 0) {
iVar4 = 0x89;
goto LAB_0017140b;
}
if (uVar5 == 0xffffffffffffffff) {
piVar6 = (int *)_my_thread_var();
if (*piVar6 == 0) {
iVar4 = -1;
}
else {
piVar6 = (int *)_my_thread_var();
iVar4 = *piVar6;
}
goto LAB_0017140b;
}
}
if ((*(char *)((long)param_2 + 0x1f) == '\0') || (param_3 < *param_2 / uVar7)) {
iVar4 = 0x7e;
if (uVar5 == uVar7) {
iVar4 = 0;
}
goto LAB_0017140b;
}
if (uVar5 == uVar7) {
uVar1 = *(ushort *)(param_4 + -2 + uVar8);
iVar4 = 0x7e;
if ((uint)(ushort)(uVar1 << 8 | uVar1 >> 8) <= (uint)param_2[2] - 4) {
cVar2 = maria_page_crc_check(param_4,param_3,local_c70,0xffffffff);
iVar4 = (int)cVar2;
}
LAB_0017140b:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return iVar4;
}
my_sleep(100000);
uVar3 = (uint)param_2[2];
} while( true );
}
|
|
3,019 | ma_pvio_register_callback | eloqsql/libmariadb/libmariadb/ma_pvio.c | int ma_pvio_register_callback(my_bool register_callback,
void (*callback_function)(int mode, MYSQL *mysql, const uchar *buffer, size_t length))
{
LIST *list;
if (!callback_function)
return 1;
/* plugin will unregister in it's deinit function */
if (register_callback)
{
list= (LIST *)malloc(sizeof(LIST));
list->data= (void *)callback_function;
pvio_callback= list_add(pvio_callback, list);
}
else /* unregister callback function */
{
LIST *p= pvio_callback;
while (p)
{
if (p->data == callback_function)
{
list_delete(pvio_callback, p);
break;
}
p= p->next;
}
}
return 0;
} | O0 | c | ma_pvio_register_callback:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %dil, %al
movb %al, -0x5(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x29c95
movl $0x1, -0x4(%rbp)
jmp 0x29d26
cmpb $0x0, -0x5(%rbp)
je 0x29cd7
movl $0x18, %edi
callq 0x135b0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
leaq 0x3dadc(%rip), %rax # 0x67798
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0x28840
movq %rax, %rcx
leaq 0x3dac6(%rip), %rax # 0x67798
movq %rcx, (%rax)
jmp 0x29d1f
leaq 0x3daba(%rip), %rax # 0x67798
movq (%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x29d1d
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
cmpq -0x10(%rbp), %rax
jne 0x29d0f
leaq 0x3da97(%rip), %rax # 0x67798
movq (%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x288b0
jmp 0x29d1d
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x29ce5
jmp 0x29d1f
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
| ma_pvio_register_callback:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, dil
mov [rbp+var_5], al
mov [rbp+var_10], rsi
cmp [rbp+var_10], 0
jnz short loc_29C95
mov [rbp+var_4], 1
jmp loc_29D26
loc_29C95:
cmp [rbp+var_5], 0
jz short loc_29CD7
mov edi, 18h
call _malloc
mov [rbp+var_18], rax
mov rcx, [rbp+var_10]
mov rax, [rbp+var_18]
mov [rax+10h], rcx
lea rax, pvio_callback
mov rdi, [rax]
mov rsi, [rbp+var_18]
call list_add
mov rcx, rax
lea rax, pvio_callback
mov [rax], rcx
jmp short loc_29D1F
loc_29CD7:
lea rax, pvio_callback
mov rax, [rax]
mov [rbp+var_20], rax
loc_29CE5:
cmp [rbp+var_20], 0
jz short loc_29D1D
mov rax, [rbp+var_20]
mov rax, [rax+10h]
cmp rax, [rbp+var_10]
jnz short loc_29D0F
lea rax, pvio_callback
mov rdi, [rax]
mov rsi, [rbp+var_20]
call list_delete
jmp short loc_29D1D
loc_29D0F:
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov [rbp+var_20], rax
jmp short loc_29CE5
loc_29D1D:
jmp short $+2
loc_29D1F:
mov [rbp+var_4], 0
loc_29D26:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long ma_pvio_register_callback(char a1, long long a2)
{
_QWORD *i; // [rsp+0h] [rbp-20h]
_QWORD *v4; // [rsp+8h] [rbp-18h]
if ( a2 )
{
if ( a1 )
{
v4 = (_QWORD *)malloc(24LL);
v4[2] = a2;
pvio_callback = (long long)list_add(pvio_callback, v4);
}
else
{
for ( i = (_QWORD *)pvio_callback; i; i = (_QWORD *)i[1] )
{
if ( i[2] == a2 )
{
list_delete(pvio_callback, i);
break;
}
}
}
return 0;
}
else
{
return 1;
}
}
| ma_pvio_register_callback:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,DIL
MOV byte ptr [RBP + -0x5],AL
MOV qword ptr [RBP + -0x10],RSI
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x00129c95
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00129d26
LAB_00129c95:
CMP byte ptr [RBP + -0x5],0x0
JZ 0x00129cd7
MOV EDI,0x18
CALL 0x001135b0
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x10],RCX
LEA RAX,[0x167798]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00128840
MOV RCX,RAX
LEA RAX,[0x167798]
MOV qword ptr [RAX],RCX
JMP 0x00129d1f
LAB_00129cd7:
LEA RAX,[0x167798]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
LAB_00129ce5:
CMP qword ptr [RBP + -0x20],0x0
JZ 0x00129d1d
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x10]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x00129d0f
LEA RAX,[0x167798]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x001288b0
JMP 0x00129d1d
LAB_00129d0f:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x00129ce5
LAB_00129d1d:
JMP 0x00129d1f
LAB_00129d1f:
MOV dword ptr [RBP + -0x4],0x0
LAB_00129d26:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 ma_pvio_register_callback(char param_1,long param_2)
{
void *pvVar1;
int8 local_28;
int4 local_c;
if (param_2 == 0) {
local_c = 1;
}
else {
if (param_1 == '\0') {
for (local_28 = pvio_callback; local_28 != 0; local_28 = *(long *)(local_28 + 8)) {
if (*(long *)(local_28 + 0x10) == param_2) {
list_delete(pvio_callback,local_28);
break;
}
}
}
else {
pvVar1 = malloc(0x18);
*(long *)((long)pvVar1 + 0x10) = param_2;
pvio_callback = list_add(pvio_callback,pvVar1);
}
local_c = 0;
}
return local_c;
}
|
|
3,020 | js_create_module_var | bluesky950520[P]quickjs/quickjs.c | static JSVarRef *js_create_module_var(JSContext *ctx, BOOL is_lexical)
{
JSVarRef *var_ref;
var_ref = js_malloc(ctx, sizeof(JSVarRef));
if (!var_ref)
return NULL;
var_ref->header.ref_count = 1;
if (is_lexical)
var_ref->value = JS_UNINITIALIZED;
else
var_ref->value = JS_UNDEFINED;
var_ref->pvalue = &var_ref->value;
var_ref->is_detached = TRUE;
add_gc_object(ctx->rt, &var_ref->header, JS_GC_OBJ_TYPE_VAR_REF);
return var_ref;
} | O1 | c | js_create_module_var:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
pushq $0x30
popq %rsi
callq 0xed5d
testq %rax, %rax
je 0x1101d
movl $0x1, (%rax)
leaq 0x20(%rax), %rcx
andl $0x0, 0x20(%rax)
cmpl $0x1, %ebp
pushq $0x4
popq %rdx
sbbq $0x0, %rdx
movq %rdx, 0x28(%rax)
movq %rcx, 0x18(%rax)
orb $0x1, 0x5(%rax)
movq 0x18(%rbx), %rcx
movb $0x3, 0x4(%rax)
movq %rax, %rdx
addq $0x8, %rdx
leaq 0x98(%rcx), %rsi
movq 0x98(%rcx), %rdi
movq %rdx, 0x8(%rdi)
movq %rdi, 0x8(%rax)
movq %rsi, 0x10(%rax)
movq %rdx, 0x98(%rcx)
jmp 0x1101f
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| js_create_module_var:
push rbp
push rbx
push rax
mov ebp, esi
mov rbx, rdi
push 30h ; '0'
pop rsi
call js_malloc
test rax, rax
jz short loc_1101D
mov dword ptr [rax], 1
lea rcx, [rax+20h]
and dword ptr [rax+20h], 0
cmp ebp, 1
push 4
pop rdx
sbb rdx, 0
mov [rax+28h], rdx
mov [rax+18h], rcx
or byte ptr [rax+5], 1
mov rcx, [rbx+18h]
mov byte ptr [rax+4], 3
mov rdx, rax
add rdx, 8
lea rsi, [rcx+98h]
mov rdi, [rcx+98h]
mov [rdi+8], rdx
mov [rax+8], rdi
mov [rax+10h], rsi
mov [rcx+98h], rdx
jmp short loc_1101F
loc_1101D:
xor eax, eax
loc_1101F:
add rsp, 8
pop rbx
pop rbp
retn
| long long js_create_module_var(long long a1, int a2)
{
long long result; // rax
long long v3; // rcx
long long v4; // rdi
result = js_malloc(a1, 48LL);
if ( !result )
return 0LL;
*(_DWORD *)result = 1;
*(_DWORD *)(result + 32) = 0;
*(_QWORD *)(result + 40) = 4LL - (a2 == 0);
*(_QWORD *)(result + 24) = result + 32;
*(_BYTE *)(result + 5) |= 1u;
v3 = *(_QWORD *)(a1 + 24);
*(_BYTE *)(result + 4) = 3;
v4 = *(_QWORD *)(v3 + 152);
*(_QWORD *)(v4 + 8) = result + 8;
*(_QWORD *)(result + 8) = v4;
*(_QWORD *)(result + 16) = v3 + 152;
*(_QWORD *)(v3 + 152) = result + 8;
return result;
}
| js_create_module_var:
PUSH RBP
PUSH RBX
PUSH RAX
MOV EBP,ESI
MOV RBX,RDI
PUSH 0x30
POP RSI
CALL 0x0010ed5d
TEST RAX,RAX
JZ 0x0011101d
MOV dword ptr [RAX],0x1
LEA RCX,[RAX + 0x20]
AND dword ptr [RAX + 0x20],0x0
CMP EBP,0x1
PUSH 0x4
POP RDX
SBB RDX,0x0
MOV qword ptr [RAX + 0x28],RDX
MOV qword ptr [RAX + 0x18],RCX
OR byte ptr [RAX + 0x5],0x1
MOV RCX,qword ptr [RBX + 0x18]
MOV byte ptr [RAX + 0x4],0x3
MOV RDX,RAX
ADD RDX,0x8
LEA RSI,[RCX + 0x98]
MOV RDI,qword ptr [RCX + 0x98]
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RAX + 0x8],RDI
MOV qword ptr [RAX + 0x10],RSI
MOV qword ptr [RCX + 0x98],RDX
JMP 0x0011101f
LAB_0011101d:
XOR EAX,EAX
LAB_0011101f:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int4 * js_create_module_var(long param_1,int param_2)
{
long lVar1;
long lVar2;
int4 *puVar3;
puVar3 = (int4 *)js_malloc(param_1,0x30);
if (puVar3 == (int4 *)0x0) {
puVar3 = (int4 *)0x0;
}
else {
*puVar3 = 1;
puVar3[8] = 0;
*(ulong *)(puVar3 + 10) = 4 - (ulong)(param_2 == 0);
*(int4 **)(puVar3 + 6) = puVar3 + 8;
*(byte *)((long)puVar3 + 5) = *(byte *)((long)puVar3 + 5) | 1;
lVar1 = *(long *)(param_1 + 0x18);
*(int1 *)(puVar3 + 1) = 3;
lVar2 = *(long *)(lVar1 + 0x98);
*(int4 **)(lVar2 + 8) = puVar3 + 2;
*(long *)(puVar3 + 2) = lVar2;
*(long *)(puVar3 + 4) = lVar1 + 0x98;
*(int4 **)(lVar1 + 0x98) = puVar3 + 2;
}
return puVar3;
}
|
|
3,021 | js_create_module_var | bluesky950520[P]quickjs/quickjs.c | static JSVarRef *js_create_module_var(JSContext *ctx, BOOL is_lexical)
{
JSVarRef *var_ref;
var_ref = js_malloc(ctx, sizeof(JSVarRef));
if (!var_ref)
return NULL;
var_ref->header.ref_count = 1;
if (is_lexical)
var_ref->value = JS_UNINITIALIZED;
else
var_ref->value = JS_UNDEFINED;
var_ref->pvalue = &var_ref->value;
var_ref->is_detached = TRUE;
add_gc_object(ctx->rt, &var_ref->header, JS_GC_OBJ_TYPE_VAR_REF);
return var_ref;
} | O3 | c | js_create_module_var:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
pushq $0x30
popq %rsi
callq 0xed89
testq %rax, %rax
je 0x113cf
movl $0x1, (%rax)
cmpl $0x1, %ebp
pushq $0x4
popq %rcx
sbbq $0x0, %rcx
leaq 0x20(%rax), %rdx
andl $0x0, 0x20(%rax)
movq %rcx, 0x28(%rax)
movq %rdx, 0x18(%rax)
orb $0x1, 0x5(%rax)
movq 0x18(%rbx), %rcx
movb $0x3, 0x4(%rax)
movq %rax, %rdx
addq $0x8, %rdx
leaq 0x98(%rcx), %rsi
movq 0x98(%rcx), %rdi
movq %rdx, 0x8(%rdi)
movq %rdi, 0x8(%rax)
movq %rsi, 0x10(%rax)
movq %rdx, 0x98(%rcx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| js_create_module_var:
push rbp
push rbx
push rax
mov ebp, esi
mov rbx, rdi
push 30h ; '0'
pop rsi
call js_malloc
test rax, rax
jz short loc_113CF
mov dword ptr [rax], 1
cmp ebp, 1
push 4
pop rcx
sbb rcx, 0
lea rdx, [rax+20h]
and dword ptr [rax+20h], 0
mov [rax+28h], rcx
mov [rax+18h], rdx
or byte ptr [rax+5], 1
mov rcx, [rbx+18h]
mov byte ptr [rax+4], 3
mov rdx, rax
add rdx, 8
lea rsi, [rcx+98h]
mov rdi, [rcx+98h]
mov [rdi+8], rdx
mov [rax+8], rdi
mov [rax+10h], rsi
mov [rcx+98h], rdx
loc_113CF:
add rsp, 8
pop rbx
pop rbp
retn
| long long js_create_module_var(long long a1, int a2)
{
long long result; // rax
long long v3; // rcx
long long v4; // rdi
result = js_malloc(a1, 48LL);
if ( result )
{
*(_DWORD *)result = 1;
*(_DWORD *)(result + 32) = 0;
*(_QWORD *)(result + 40) = 4LL - (a2 == 0);
*(_QWORD *)(result + 24) = result + 32;
*(_BYTE *)(result + 5) |= 1u;
v3 = *(_QWORD *)(a1 + 24);
*(_BYTE *)(result + 4) = 3;
v4 = *(_QWORD *)(v3 + 152);
*(_QWORD *)(v4 + 8) = result + 8;
*(_QWORD *)(result + 8) = v4;
*(_QWORD *)(result + 16) = v3 + 152;
*(_QWORD *)(v3 + 152) = result + 8;
}
return result;
}
| js_create_module_var:
PUSH RBP
PUSH RBX
PUSH RAX
MOV EBP,ESI
MOV RBX,RDI
PUSH 0x30
POP RSI
CALL 0x0010ed89
TEST RAX,RAX
JZ 0x001113cf
MOV dword ptr [RAX],0x1
CMP EBP,0x1
PUSH 0x4
POP RCX
SBB RCX,0x0
LEA RDX,[RAX + 0x20]
AND dword ptr [RAX + 0x20],0x0
MOV qword ptr [RAX + 0x28],RCX
MOV qword ptr [RAX + 0x18],RDX
OR byte ptr [RAX + 0x5],0x1
MOV RCX,qword ptr [RBX + 0x18]
MOV byte ptr [RAX + 0x4],0x3
MOV RDX,RAX
ADD RDX,0x8
LEA RSI,[RCX + 0x98]
MOV RDI,qword ptr [RCX + 0x98]
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RAX + 0x8],RDI
MOV qword ptr [RAX + 0x10],RSI
MOV qword ptr [RCX + 0x98],RDX
LAB_001113cf:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void js_create_module_var(long param_1,int param_2)
{
long lVar1;
long lVar2;
int4 *puVar3;
puVar3 = (int4 *)js_malloc(param_1,0x30);
if (puVar3 != (int4 *)0x0) {
*puVar3 = 1;
puVar3[8] = 0;
*(ulong *)(puVar3 + 10) = 4 - (ulong)(param_2 == 0);
*(int4 **)(puVar3 + 6) = puVar3 + 8;
*(byte *)((long)puVar3 + 5) = *(byte *)((long)puVar3 + 5) | 1;
lVar1 = *(long *)(param_1 + 0x18);
*(int1 *)(puVar3 + 1) = 3;
lVar2 = *(long *)(lVar1 + 0x98);
*(int4 **)(lVar2 + 8) = puVar3 + 2;
*(long *)(puVar3 + 2) = lVar2;
*(long *)(puVar3 + 4) = lVar1 + 0x98;
*(int4 **)(lVar1 + 0x98) = puVar3 + 2;
}
return;
}
|
|
3,022 | free_property | bluesky950520[P]quickjs/quickjs.c | static void free_property(JSRuntime *rt, JSProperty *pr, int prop_flags)
{
if (unlikely(prop_flags & JS_PROP_TMASK)) {
if ((prop_flags & JS_PROP_TMASK) == JS_PROP_GETSET) {
if (pr->u.getset.getter)
JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_OBJECT, pr->u.getset.getter));
if (pr->u.getset.setter)
JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_OBJECT, pr->u.getset.setter));
} else if ((prop_flags & JS_PROP_TMASK) == JS_PROP_VARREF) {
free_var_ref(rt, pr->u.var_ref);
} else if ((prop_flags & JS_PROP_TMASK) == JS_PROP_AUTOINIT) {
js_autoinit_free(rt, pr);
}
} else {
JS_FreeValueRT(rt, pr->u.value);
}
} | O1 | c | free_property:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
shrl $0x4, %edx
andl $0x3, %edx
jne 0x3c8e1
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1d8c6
cmpl $0x1, %edx
jne 0x3c912
movq (%r14), %rsi
testq %rsi, %rsi
je 0x3c8fd
movq %rbx, %rdi
movq $-0x1, %rdx
callq 0x1d8c6
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0x3c929
movq %rbx, %rdi
movq $-0x1, %rdx
jmp 0x3c8d5
cmpl $0x2, %edx
jne 0x3c931
movq (%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x263ec
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq (%r14), %rdi
andq $-0x4, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1faa0
| free_property:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
shr edx, 4
and edx, 3
jnz short loc_3C8E1
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
loc_3C8D5:
add rsp, 8
pop rbx
pop r14
jmp JS_FreeValueRT
loc_3C8E1:
cmp edx, 1
jnz short loc_3C912
mov rsi, [r14]
test rsi, rsi
jz short loc_3C8FD
mov rdi, rbx
mov rdx, 0FFFFFFFFFFFFFFFFh
call JS_FreeValueRT
loc_3C8FD:
mov rsi, [r14+8]
test rsi, rsi
jz short loc_3C929
mov rdi, rbx
mov rdx, 0FFFFFFFFFFFFFFFFh
jmp short loc_3C8D5
loc_3C912:
cmp edx, 2
jnz short loc_3C931
mov rsi, [r14]
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
jmp free_var_ref
loc_3C929:
add rsp, 8
pop rbx
pop r14
retn
loc_3C931:
mov rdi, [r14]
and rdi, 0FFFFFFFFFFFFFFFCh
add rsp, 8
pop rbx
pop r14
jmp JS_FreeContext
| long long free_property(long long a1, long long *a2, unsigned int a3)
{
int v4; // edx
_DWORD *v5; // rsi
long long v6; // rdx
long long result; // rax
_DWORD *v8; // rsi
v4 = (a3 >> 4) & 3;
switch ( v4 )
{
case 0:
v5 = (_DWORD *)*a2;
v6 = a2[1];
return JS_FreeValueRT(a1, v5, v6);
case 1:
v8 = (_DWORD *)*a2;
if ( *a2 )
result = JS_FreeValueRT(a1, v8, -1LL);
v5 = (_DWORD *)a2[1];
if ( v5 )
{
v6 = -1LL;
return JS_FreeValueRT(a1, v5, v6);
}
break;
case 2:
return free_var_ref(a1, *a2);
default:
return JS_FreeContext((unsigned int *)(*a2 & 0xFFFFFFFFFFFFFFFCLL));
}
return result;
}
| free_property:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
SHR EDX,0x4
AND EDX,0x3
JNZ 0x0013c8e1
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV RDI,RBX
LAB_0013c8d5:
ADD RSP,0x8
POP RBX
POP R14
JMP 0x0011d8c6
LAB_0013c8e1:
CMP EDX,0x1
JNZ 0x0013c912
MOV RSI,qword ptr [R14]
TEST RSI,RSI
JZ 0x0013c8fd
MOV RDI,RBX
MOV RDX,-0x1
CALL 0x0011d8c6
LAB_0013c8fd:
MOV RSI,qword ptr [R14 + 0x8]
TEST RSI,RSI
JZ 0x0013c929
MOV RDI,RBX
MOV RDX,-0x1
JMP 0x0013c8d5
LAB_0013c912:
CMP EDX,0x2
JNZ 0x0013c931
MOV RSI,qword ptr [R14]
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001263ec
LAB_0013c929:
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_0013c931:
MOV RDI,qword ptr [R14]
AND RDI,-0x4
ADD RSP,0x8
POP RBX
POP R14
JMP 0x0011faa0
|
void free_property(int8 param_1,ulong *param_2,uint param_3)
{
uint uVar1;
ulong uVar2;
ulong uVar3;
uVar1 = param_3 >> 4 & 3;
if (uVar1 == 0) {
uVar3 = *param_2;
uVar2 = param_2[1];
}
else {
if (uVar1 != 1) {
if (uVar1 == 2) {
free_var_ref(param_1,*param_2);
return;
}
JS_FreeContext(*param_2 & 0xfffffffffffffffc);
return;
}
if (*param_2 != 0) {
JS_FreeValueRT(param_1,*param_2,0xffffffffffffffff);
}
uVar3 = param_2[1];
if (uVar3 == 0) {
return;
}
uVar2 = 0xffffffffffffffff;
}
JS_FreeValueRT(param_1,uVar3,uVar2);
return;
}
|
|
3,023 | free_property | bluesky950520[P]quickjs/quickjs.c | static void free_property(JSRuntime *rt, JSProperty *pr, int prop_flags)
{
if (unlikely(prop_flags & JS_PROP_TMASK)) {
if ((prop_flags & JS_PROP_TMASK) == JS_PROP_GETSET) {
if (pr->u.getset.getter)
JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_OBJECT, pr->u.getset.getter));
if (pr->u.getset.setter)
JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_OBJECT, pr->u.getset.setter));
} else if ((prop_flags & JS_PROP_TMASK) == JS_PROP_VARREF) {
free_var_ref(rt, pr->u.var_ref);
} else if ((prop_flags & JS_PROP_TMASK) == JS_PROP_AUTOINIT) {
js_autoinit_free(rt, pr);
}
} else {
JS_FreeValueRT(rt, pr->u.value);
}
} | O2 | c | free_property:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
shrl $0x4, %edx
andl $0x3, %edx
leaq 0x4e60e(%rip), %rax # 0x83b74
movslq (%rax,%rdx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x18031
movq (%r14), %rsi
testq %rsi, %rsi
je 0x35598
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x18031
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0x355b8
pushq $-0x1
popq %rdx
jmp 0x35576
movq (%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1fed9
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x355cc
| free_property:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
shr edx, 4
and edx, 3
lea rax, jpt_3556D
movsxd rcx, ds:(jpt_3556D - 83B74h)[rax+rdx*4]; switch 4 cases
add rcx, rax
jmp rcx; switch jump
loc_3556F:
mov rsi, [r14]; jumptable 000000000003556D case 0
mov rdx, [r14+8]
loc_35576:
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
jmp JS_FreeValueRT
loc_35585:
mov rsi, [r14]; jumptable 000000000003556D case 1
test rsi, rsi
jz short loc_35598
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rdi, rbx
call JS_FreeValueRT
loc_35598:
mov rsi, [r14+8]
test rsi, rsi
jz short loc_355B8
push 0FFFFFFFFFFFFFFFFh
pop rdx
jmp short loc_35576
loc_355A6:
mov rsi, [r14]; jumptable 000000000003556D case 2
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
jmp free_var_ref
loc_355B8:
add rsp, 8
pop rbx
pop r14
retn
loc_355C0:
mov rdi, r14; jumptable 000000000003556D case 3
add rsp, 8
pop rbx
pop r14
jmp short $+2
| long long free_property(long long a1, long long *a2, unsigned int a3)
{
unsigned int *v4; // rsi
long long v5; // rdx
long long result; // rax
unsigned int *v7; // rsi
switch ( (a3 >> 4) & 3 )
{
case 0u:
v4 = (unsigned int *)*a2;
v5 = a2[1];
goto LABEL_3;
case 1u:
v7 = (unsigned int *)*a2;
if ( *a2 )
result = JS_FreeValueRT(a1, v7, 0xFFFFFFFF);
v4 = (unsigned int *)a2[1];
if ( v4 )
{
LODWORD(v5) = -1;
LABEL_3:
result = JS_FreeValueRT(a1, v4, v5);
}
break;
case 2u:
result = free_var_ref(a1, *a2);
break;
case 3u:
result = js_autoinit_free(a2);
break;
}
return result;
}
| free_property:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
SHR EDX,0x4
AND EDX,0x3
LEA RAX,[0x183b74]
MOVSXD RCX,dword ptr [RAX + RDX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_0:
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_00135576:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x00118031
caseD_1:
MOV RSI,qword ptr [R14]
TEST RSI,RSI
JZ 0x00135598
PUSH -0x1
POP RDX
MOV RDI,RBX
CALL 0x00118031
LAB_00135598:
MOV RSI,qword ptr [R14 + 0x8]
TEST RSI,RSI
JZ 0x001355b8
PUSH -0x1
POP RDX
JMP 0x00135576
caseD_2:
MOV RSI,qword ptr [R14]
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x0011fed9
LAB_001355b8:
ADD RSP,0x8
POP RBX
POP R14
RET
caseD_3:
MOV RDI,R14
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001355cc
|
void free_property(int8 param_1,long *param_2,uint param_3)
{
long lVar1;
long lStack_20;
switch(param_3 >> 4 & 3) {
case 0:
lVar1 = *param_2;
lStack_20 = param_2[1];
break;
case 1:
if (*param_2 != 0) {
JS_FreeValueRT(param_1,*param_2,0xffffffffffffffff);
}
lVar1 = param_2[1];
if (lVar1 == 0) {
return;
}
lStack_20 = -1;
break;
case 2:
free_var_ref(param_1,*param_2);
return;
case 3:
js_autoinit_free(param_2);
return;
}
JS_FreeValueRT(param_1,lVar1,lStack_20);
return;
}
|
|
3,024 | find_line_num | bluesky950520[P]quickjs/quickjs.c | static int find_line_num(JSContext *ctx, JSFunctionBytecode *b,
uint32_t pc_value, int *col)
{
const uint8_t *p_end, *p;
int new_line_num, new_col_num, line_num, col_num, pc, v, ret;
unsigned int op;
*col = 1;
p = b->pc2line_buf;
if (!p)
goto fail;
p_end = p + b->pc2line_len;
pc = 0;
line_num = b->line_num;
col_num = b->col_num;
while (p < p_end) {
op = *p++;
if (op == 0) {
uint32_t val;
ret = get_leb128(&val, p, p_end);
if (ret < 0)
goto fail;
pc += val;
p += ret;
ret = get_sleb128(&v, p, p_end);
if (ret < 0)
goto fail;
p += ret;
new_line_num = line_num + v;
} else {
op -= PC2LINE_OP_FIRST;
pc += (op / PC2LINE_RANGE);
new_line_num = line_num + (op % PC2LINE_RANGE) + PC2LINE_BASE;
}
ret = get_sleb128(&v, p, p_end);
if (ret < 0)
goto fail;
p += ret;
new_col_num = col_num + v;
if (pc_value < pc)
break;
line_num = new_line_num;
col_num = new_col_num;
}
*col = col_num;
return line_num;
fail:
/* should never happen */
return b->line_num;
} | O0 | c | find_line_num:
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movl %edx, 0x4c(%rsp)
movq %rcx, 0x40(%rsp)
movq 0x40(%rsp), %rax
movl $0x1, (%rax)
movq 0x50(%rsp), %rax
movq 0x80(%rax), %rax
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x72d10
jmp 0x72ebc
movq 0x30(%rsp), %rax
movq 0x50(%rsp), %rcx
movslq 0x78(%rcx), %rcx
addq %rcx, %rax
movq %rax, 0x38(%rsp)
movl $0x0, 0x1c(%rsp)
movq 0x50(%rsp), %rax
movl 0x6c(%rax), %eax
movl %eax, 0x24(%rsp)
movq 0x50(%rsp), %rax
movl 0x70(%rax), %eax
movl %eax, 0x20(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x38(%rsp), %rax
jae 0x72ea7
movq 0x30(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x30(%rsp)
movzbl (%rax), %eax
movl %eax, 0x10(%rsp)
cmpl $0x0, 0x10(%rsp)
jne 0x72e03
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
leaq 0xc(%rsp), %rdi
callq 0x72ff0
movl %eax, 0x14(%rsp)
cmpl $0x0, 0x14(%rsp)
jge 0x72d9d
jmp 0x72ebc
movl 0xc(%rsp), %eax
addl 0x1c(%rsp), %eax
movl %eax, 0x1c(%rsp)
movl 0x14(%rsp), %ecx
movq 0x30(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
leaq 0x18(%rsp), %rdi
callq 0x730d0
movl %eax, 0x14(%rsp)
cmpl $0x0, 0x14(%rsp)
jge 0x72de1
jmp 0x72ebc
movl 0x14(%rsp), %ecx
movq 0x30(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movl 0x24(%rsp), %eax
addl 0x18(%rsp), %eax
movl %eax, 0x2c(%rsp)
jmp 0x72e45
movl 0x10(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
movl $0x5, %ecx
xorl %edx, %edx
divl %ecx
addl 0x1c(%rsp), %eax
movl %eax, 0x1c(%rsp)
movl 0x24(%rsp), %eax
movl %eax, 0x8(%rsp)
movl 0x10(%rsp), %eax
movl $0x5, %ecx
xorl %edx, %edx
divl %ecx
movl 0x8(%rsp), %eax
addl %edx, %eax
addl $-0x1, %eax
movl %eax, 0x2c(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
leaq 0x18(%rsp), %rdi
callq 0x730d0
movl %eax, 0x14(%rsp)
cmpl $0x0, 0x14(%rsp)
jge 0x72e66
jmp 0x72ebc
movl 0x14(%rsp), %ecx
movq 0x30(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movl 0x20(%rsp), %eax
addl 0x18(%rsp), %eax
movl %eax, 0x28(%rsp)
movl 0x4c(%rsp), %eax
cmpl 0x1c(%rsp), %eax
jae 0x72e92
jmp 0x72ea7
movl 0x2c(%rsp), %eax
movl %eax, 0x24(%rsp)
movl 0x28(%rsp), %eax
movl %eax, 0x20(%rsp)
jmp 0x72d46
movl 0x20(%rsp), %ecx
movq 0x40(%rsp), %rax
movl %ecx, (%rax)
movl 0x24(%rsp), %eax
movl %eax, 0x64(%rsp)
jmp 0x72ec8
movq 0x50(%rsp), %rax
movl 0x6c(%rax), %eax
movl %eax, 0x64(%rsp)
movl 0x64(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
| find_line_num:
sub rsp, 68h
mov [rsp+68h+var_10], rdi
mov [rsp+68h+var_18], rsi
mov [rsp+68h+var_1C], edx
mov [rsp+68h+var_28], rcx
mov rax, [rsp+68h+var_28]
mov dword ptr [rax], 1
mov rax, [rsp+68h+var_18]
mov rax, [rax+80h]
mov [rsp+68h+var_38], rax
cmp [rsp+68h+var_38], 0
jnz short loc_72D10
jmp loc_72EBC
loc_72D10:
mov rax, [rsp+68h+var_38]
mov rcx, [rsp+68h+var_18]
movsxd rcx, dword ptr [rcx+78h]
add rax, rcx
mov [rsp+68h+var_30], rax
mov [rsp+68h+var_4C], 0
mov rax, [rsp+68h+var_18]
mov eax, [rax+6Ch]
mov [rsp+68h+var_44], eax
mov rax, [rsp+68h+var_18]
mov eax, [rax+70h]
mov [rsp+68h+var_48], eax
loc_72D46:
mov rax, [rsp+68h+var_38]
cmp rax, [rsp+68h+var_30]
jnb loc_72EA7
mov rax, [rsp+68h+var_38]
mov rcx, rax
add rcx, 1
mov [rsp+68h+var_38], rcx
movzx eax, byte ptr [rax]
mov [rsp+68h+var_58], eax
cmp [rsp+68h+var_58], 0
jnz loc_72E03
mov rsi, [rsp+68h+var_38]
mov rdx, [rsp+68h+var_30]
lea rdi, [rsp+68h+var_5C]
call get_leb128
mov [rsp+68h+var_54], eax
cmp [rsp+68h+var_54], 0
jge short loc_72D9D
jmp loc_72EBC
loc_72D9D:
mov eax, [rsp+68h+var_5C]
add eax, [rsp+68h+var_4C]
mov [rsp+68h+var_4C], eax
mov ecx, [rsp+68h+var_54]
mov rax, [rsp+68h+var_38]
movsxd rcx, ecx
add rax, rcx
mov [rsp+68h+var_38], rax
mov rsi, [rsp+68h+var_38]
mov rdx, [rsp+68h+var_30]
lea rdi, [rsp+68h+var_50]
call get_sleb128
mov [rsp+68h+var_54], eax
cmp [rsp+68h+var_54], 0
jge short loc_72DE1
jmp loc_72EBC
loc_72DE1:
mov ecx, [rsp+68h+var_54]
mov rax, [rsp+68h+var_38]
movsxd rcx, ecx
add rax, rcx
mov [rsp+68h+var_38], rax
mov eax, [rsp+68h+var_44]
add eax, [rsp+68h+var_50]
mov [rsp+68h+var_3C], eax
jmp short loc_72E45
loc_72E03:
mov eax, [rsp+68h+var_58]
sub eax, 1
mov [rsp+68h+var_58], eax
mov eax, [rsp+68h+var_58]
mov ecx, 5
xor edx, edx
div ecx
add eax, [rsp+68h+var_4C]
mov [rsp+68h+var_4C], eax
mov eax, [rsp+68h+var_44]
mov [rsp+68h+var_60], eax
mov eax, [rsp+68h+var_58]
mov ecx, 5
xor edx, edx
div ecx
mov eax, [rsp+68h+var_60]
add eax, edx
add eax, 0FFFFFFFFh
mov [rsp+68h+var_3C], eax
loc_72E45:
mov rsi, [rsp+68h+var_38]
mov rdx, [rsp+68h+var_30]
lea rdi, [rsp+68h+var_50]
call get_sleb128
mov [rsp+68h+var_54], eax
cmp [rsp+68h+var_54], 0
jge short loc_72E66
jmp short loc_72EBC
loc_72E66:
mov ecx, [rsp+68h+var_54]
mov rax, [rsp+68h+var_38]
movsxd rcx, ecx
add rax, rcx
mov [rsp+68h+var_38], rax
mov eax, [rsp+68h+var_48]
add eax, [rsp+68h+var_50]
mov [rsp+68h+var_40], eax
mov eax, [rsp+68h+var_1C]
cmp eax, [rsp+68h+var_4C]
jnb short loc_72E92
jmp short loc_72EA7
loc_72E92:
mov eax, [rsp+68h+var_3C]
mov [rsp+68h+var_44], eax
mov eax, [rsp+68h+var_40]
mov [rsp+68h+var_48], eax
jmp loc_72D46
loc_72EA7:
mov ecx, [rsp+68h+var_48]
mov rax, [rsp+68h+var_28]
mov [rax], ecx
mov eax, [rsp+68h+var_44]
mov [rsp+68h+var_4], eax
jmp short loc_72EC8
loc_72EBC:
mov rax, [rsp+68h+var_18]
mov eax, [rax+6Ch]
mov [rsp+68h+var_4], eax
loc_72EC8:
mov eax, [rsp+68h+var_4]
add rsp, 68h
retn
| long long find_line_num(long long a1, long long a2, unsigned int a3, _DWORD *a4)
{
unsigned __int8 *v4; // rax
int v6; // [rsp+Ch] [rbp-5Ch] BYREF
unsigned int v7; // [rsp+10h] [rbp-58h]
int leb128; // [rsp+14h] [rbp-54h]
int v9; // [rsp+18h] [rbp-50h] BYREF
unsigned int v10; // [rsp+1Ch] [rbp-4Ch]
long long v11; // [rsp+20h] [rbp-48h]
long long v12; // [rsp+28h] [rbp-40h]
unsigned __int8 *v13; // [rsp+30h] [rbp-38h]
unsigned __int8 *v14; // [rsp+38h] [rbp-30h]
_DWORD *v15; // [rsp+40h] [rbp-28h]
unsigned int v16; // [rsp+4Ch] [rbp-1Ch]
long long v17; // [rsp+50h] [rbp-18h]
long long v18; // [rsp+58h] [rbp-10h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
*a4 = 1;
v13 = *(unsigned __int8 **)(v17 + 128);
if ( v13 )
{
v14 = &v13[*(int *)(v17 + 120)];
v10 = 0;
HIDWORD(v11) = *(_DWORD *)(v17 + 108);
LODWORD(v11) = *(_DWORD *)(v17 + 112);
while ( v13 < v14 )
{
v4 = v13++;
v7 = *v4;
if ( v7 )
{
v10 += --v7 / 5;
HIDWORD(v12) = v7 % 5 + HIDWORD(v11) - 1;
}
else
{
leb128 = get_leb128(&v6, v13, v14);
if ( leb128 < 0 )
return *(unsigned int *)(v17 + 108);
v10 += v6;
v13 += leb128;
leb128 = get_sleb128(&v9, v13, v14);
if ( leb128 < 0 )
return *(unsigned int *)(v17 + 108);
v13 += leb128;
HIDWORD(v12) = v9 + HIDWORD(v11);
}
leb128 = get_sleb128(&v9, v13, v14);
if ( leb128 < 0 )
return *(unsigned int *)(v17 + 108);
v13 += leb128;
LODWORD(v12) = v9 + v11;
if ( v16 < v10 )
break;
v11 = v12;
}
*v15 = v11;
return (unsigned int)HIDWORD(v11);
}
else
{
return *(unsigned int *)(v17 + 108);
}
}
| find_line_num:
SUB RSP,0x68
MOV qword ptr [RSP + 0x58],RDI
MOV qword ptr [RSP + 0x50],RSI
MOV dword ptr [RSP + 0x4c],EDX
MOV qword ptr [RSP + 0x40],RCX
MOV RAX,qword ptr [RSP + 0x40]
MOV dword ptr [RAX],0x1
MOV RAX,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RAX + 0x80]
MOV qword ptr [RSP + 0x30],RAX
CMP qword ptr [RSP + 0x30],0x0
JNZ 0x00172d10
JMP 0x00172ebc
LAB_00172d10:
MOV RAX,qword ptr [RSP + 0x30]
MOV RCX,qword ptr [RSP + 0x50]
MOVSXD RCX,dword ptr [RCX + 0x78]
ADD RAX,RCX
MOV qword ptr [RSP + 0x38],RAX
MOV dword ptr [RSP + 0x1c],0x0
MOV RAX,qword ptr [RSP + 0x50]
MOV EAX,dword ptr [RAX + 0x6c]
MOV dword ptr [RSP + 0x24],EAX
MOV RAX,qword ptr [RSP + 0x50]
MOV EAX,dword ptr [RAX + 0x70]
MOV dword ptr [RSP + 0x20],EAX
LAB_00172d46:
MOV RAX,qword ptr [RSP + 0x30]
CMP RAX,qword ptr [RSP + 0x38]
JNC 0x00172ea7
MOV RAX,qword ptr [RSP + 0x30]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RSP + 0x30],RCX
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RSP + 0x10],EAX
CMP dword ptr [RSP + 0x10],0x0
JNZ 0x00172e03
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
LEA RDI,[RSP + 0xc]
CALL 0x00172ff0
MOV dword ptr [RSP + 0x14],EAX
CMP dword ptr [RSP + 0x14],0x0
JGE 0x00172d9d
JMP 0x00172ebc
LAB_00172d9d:
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,dword ptr [RSP + 0x1c]
MOV dword ptr [RSP + 0x1c],EAX
MOV ECX,dword ptr [RSP + 0x14]
MOV RAX,qword ptr [RSP + 0x30]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
LEA RDI,[RSP + 0x18]
CALL 0x001730d0
MOV dword ptr [RSP + 0x14],EAX
CMP dword ptr [RSP + 0x14],0x0
JGE 0x00172de1
JMP 0x00172ebc
LAB_00172de1:
MOV ECX,dword ptr [RSP + 0x14]
MOV RAX,qword ptr [RSP + 0x30]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
MOV EAX,dword ptr [RSP + 0x24]
ADD EAX,dword ptr [RSP + 0x18]
MOV dword ptr [RSP + 0x2c],EAX
JMP 0x00172e45
LAB_00172e03:
MOV EAX,dword ptr [RSP + 0x10]
SUB EAX,0x1
MOV dword ptr [RSP + 0x10],EAX
MOV EAX,dword ptr [RSP + 0x10]
MOV ECX,0x5
XOR EDX,EDX
DIV ECX
ADD EAX,dword ptr [RSP + 0x1c]
MOV dword ptr [RSP + 0x1c],EAX
MOV EAX,dword ptr [RSP + 0x24]
MOV dword ptr [RSP + 0x8],EAX
MOV EAX,dword ptr [RSP + 0x10]
MOV ECX,0x5
XOR EDX,EDX
DIV ECX
MOV EAX,dword ptr [RSP + 0x8]
ADD EAX,EDX
ADD EAX,-0x1
MOV dword ptr [RSP + 0x2c],EAX
LAB_00172e45:
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
LEA RDI,[RSP + 0x18]
CALL 0x001730d0
MOV dword ptr [RSP + 0x14],EAX
CMP dword ptr [RSP + 0x14],0x0
JGE 0x00172e66
JMP 0x00172ebc
LAB_00172e66:
MOV ECX,dword ptr [RSP + 0x14]
MOV RAX,qword ptr [RSP + 0x30]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
MOV EAX,dword ptr [RSP + 0x20]
ADD EAX,dword ptr [RSP + 0x18]
MOV dword ptr [RSP + 0x28],EAX
MOV EAX,dword ptr [RSP + 0x4c]
CMP EAX,dword ptr [RSP + 0x1c]
JNC 0x00172e92
JMP 0x00172ea7
LAB_00172e92:
MOV EAX,dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0x24],EAX
MOV EAX,dword ptr [RSP + 0x28]
MOV dword ptr [RSP + 0x20],EAX
JMP 0x00172d46
LAB_00172ea7:
MOV ECX,dword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x40]
MOV dword ptr [RAX],ECX
MOV EAX,dword ptr [RSP + 0x24]
MOV dword ptr [RSP + 0x64],EAX
JMP 0x00172ec8
LAB_00172ebc:
MOV RAX,qword ptr [RSP + 0x50]
MOV EAX,dword ptr [RAX + 0x6c]
MOV dword ptr [RSP + 0x64],EAX
LAB_00172ec8:
MOV EAX,dword ptr [RSP + 0x64]
ADD RSP,0x68
RET
|
int find_line_num(int8 param_1,long param_2,uint param_3,int *param_4)
{
byte *pbVar1;
int local_5c;
uint local_58;
int local_54;
int local_50;
uint local_4c;
int local_48;
int local_44;
int local_40;
int local_3c;
byte *local_38;
byte *local_30;
int *local_28;
uint local_1c;
long local_18;
int8 local_10;
int local_4;
*param_4 = 1;
local_38 = *(byte **)(param_2 + 0x80);
local_18 = param_2;
if (local_38 == (byte *)0x0) {
LAB_00172ebc:
local_4 = *(int *)(local_18 + 0x6c);
}
else {
local_30 = local_38 + *(int *)(param_2 + 0x78);
local_4c = 0;
local_44 = *(int *)(param_2 + 0x6c);
local_48 = *(int *)(param_2 + 0x70);
local_28 = param_4;
local_1c = param_3;
local_10 = param_1;
while (local_38 < local_30) {
pbVar1 = local_38 + 1;
local_58 = (uint)*local_38;
local_38 = pbVar1;
if (local_58 == 0) {
local_54 = get_leb128(&local_5c,pbVar1,local_30);
if (local_54 < 0) goto LAB_00172ebc;
local_4c = local_5c + local_4c;
local_38 = local_38 + local_54;
local_54 = get_sleb128(&local_50,local_38,local_30);
if (local_54 < 0) goto LAB_00172ebc;
local_3c = local_44 + local_50;
local_38 = local_38 + local_54;
}
else {
local_58 = local_58 - 1;
local_4c = local_58 / 5 + local_4c;
local_3c = local_44 + local_58 % 5 + -1;
}
local_54 = get_sleb128(&local_50,local_38,local_30);
if (local_54 < 0) goto LAB_00172ebc;
local_38 = local_38 + local_54;
local_40 = local_48 + local_50;
if (local_1c < local_4c) break;
local_44 = local_3c;
local_48 = local_40;
}
*local_28 = local_48;
local_4 = local_44;
}
return local_4;
}
|
|
3,025 | find_line_num | bluesky950520[P]quickjs/quickjs.c | static int find_line_num(JSContext *ctx, JSFunctionBytecode *b,
uint32_t pc_value, int *col)
{
const uint8_t *p_end, *p;
int new_line_num, new_col_num, line_num, col_num, pc, v, ret;
unsigned int op;
*col = 1;
p = b->pc2line_buf;
if (!p)
goto fail;
p_end = p + b->pc2line_len;
pc = 0;
line_num = b->line_num;
col_num = b->col_num;
while (p < p_end) {
op = *p++;
if (op == 0) {
uint32_t val;
ret = get_leb128(&val, p, p_end);
if (ret < 0)
goto fail;
pc += val;
p += ret;
ret = get_sleb128(&v, p, p_end);
if (ret < 0)
goto fail;
p += ret;
new_line_num = line_num + v;
} else {
op -= PC2LINE_OP_FIRST;
pc += (op / PC2LINE_RANGE);
new_line_num = line_num + (op % PC2LINE_RANGE) + PC2LINE_BASE;
}
ret = get_sleb128(&v, p, p_end);
if (ret < 0)
goto fail;
p += ret;
new_col_num = col_num + v;
if (pc_value < pc)
break;
line_num = new_line_num;
col_num = new_col_num;
}
*col = col_num;
return line_num;
fail:
/* should never happen */
return b->line_num;
} | O1 | c | find_line_num:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movq %rdx, 0x20(%rsp)
movl $0x1, (%rdx)
movq 0x80(%rdi), %rax
testq %rax, %rax
je 0x434c3
movslq 0x78(%r14), %r15
movl 0x6c(%r14), %ecx
movl 0x70(%r14), %ebp
testq %r15, %r15
jle 0x434c9
movl %esi, %ebx
movq %rcx, 0x18(%rsp)
addq %rax, %r15
movl $0x0, 0xc(%rsp)
leaq 0x1(%rax), %r12
movzbl (%rax), %ecx
testl %ecx, %ecx
jne 0x43452
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
cmpq %r15, %r12
jae 0x43401
addq $0x2, %rax
xorl %ecx, %ecx
xorl %edi, %edi
xorl %esi, %esi
movl %esi, %r8d
movzbl -0x1(%rax), %r9d
movl %r9d, %esi
andl $0x7f, %esi
shll %cl, %esi
orl %r8d, %esi
testb %r9b, %r9b
jns 0x434af
cmpl $0x3, %edi
ja 0x43401
incl %edi
addl $0x7, %ecx
leaq 0x1(%rax), %r8
cmpq %r15, %rax
movq %r8, %rax
jb 0x433cf
xorl %esi, %esi
testl %edx, %edx
jns 0x4347b
xorl %eax, %eax
testb %al, %al
je 0x434c3
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x10d68
testl %eax, %eax
js 0x434c3
cmpl %ebx, 0xc(%rsp)
ja 0x434e5
addl 0x10(%rsp), %ebp
movl %eax, %eax
addq %rax, %r12
movl %r13d, %eax
movq %rax, 0x18(%rsp)
movq %r12, %rax
cmpq %r15, %r12
jb 0x433ac
jmp 0x434cc
decl %ecx
movq %rcx, %rax
movl $0xcccccccd, %edx # imm = 0xCCCCCCCD
imulq %rdx, %rax
shrq $0x22, %rax
addl %eax, 0xc(%rsp)
leal (%rax,%rax,4), %eax
subl %eax, %ecx
movq 0x18(%rsp), %rax
leal (%rax,%rcx), %r13d
decl %r13d
jmp 0x43411
movl %ebx, 0x14(%rsp)
addl %esi, 0xc(%rsp)
movl %edx, %eax
addq %rax, %r12
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x10d68
testl %eax, %eax
js 0x434b8
movl %eax, %eax
addq %rax, %r12
movl 0x10(%rsp), %r13d
addl 0x18(%rsp), %r13d
movb $0x1, %al
jmp 0x434ba
incl %edi
movl %edi, %edx
jmp 0x43403
xorl %eax, %eax
movl 0x14(%rsp), %ebx
jmp 0x43409
movl 0x6c(%r14), %r13d
jmp 0x434d3
movl %ecx, %r13d
movq 0x20(%rsp), %rax
movl %ebp, (%rax)
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rsp), %rax
movl %eax, %r13d
jmp 0x434cc
| find_line_num:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, rdi
mov [rsp+58h+var_38], rdx
mov dword ptr [rdx], 1
mov rax, [rdi+80h]
test rax, rax
jz loc_434C3
movsxd r15, dword ptr [r14+78h]
mov ecx, [r14+6Ch]
mov ebp, [r14+70h]
test r15, r15
jle loc_434C9
mov ebx, esi
mov [rsp+58h+var_40], rcx
add r15, rax
mov [rsp+58h+var_4C], 0
loc_433AC:
lea r12, [rax+1]
movzx ecx, byte ptr [rax]
test ecx, ecx
jnz loc_43452
mov edx, 0FFFFFFFFh
cmp r12, r15
jnb short loc_43401
add rax, 2
xor ecx, ecx
xor edi, edi
xor esi, esi
loc_433CF:
mov r8d, esi
movzx r9d, byte ptr [rax-1]
mov esi, r9d
and esi, 7Fh
shl esi, cl
or esi, r8d
test r9b, r9b
jns loc_434AF
cmp edi, 3
ja short loc_43401
inc edi
add ecx, 7
lea r8, [rax+1]
cmp rax, r15
mov rax, r8
jb short loc_433CF
loc_43401:
xor esi, esi
loc_43403:
test edx, edx
jns short loc_4347B
xor eax, eax
loc_43409:
test al, al
jz loc_434C3
loc_43411:
lea rdi, [rsp+58h+var_48]
mov rsi, r12
mov rdx, r15
call get_sleb128
test eax, eax
js loc_434C3
cmp [rsp+58h+var_4C], ebx
ja loc_434E5
add ebp, [rsp+58h+var_48]
mov eax, eax
add r12, rax
mov eax, r13d
mov [rsp+58h+var_40], rax
mov rax, r12
cmp r12, r15
jb loc_433AC
jmp short loc_434CC
loc_43452:
dec ecx
mov rax, rcx
mov edx, 0CCCCCCCDh
imul rax, rdx
shr rax, 22h
add [rsp+58h+var_4C], eax
lea eax, [rax+rax*4]
sub ecx, eax
mov rax, [rsp+58h+var_40]
lea r13d, [rax+rcx]
dec r13d
jmp short loc_43411
loc_4347B:
mov [rsp+58h+var_44], ebx
add [rsp+58h+var_4C], esi
mov eax, edx
add r12, rax
lea rdi, [rsp+58h+var_48]
mov rsi, r12
mov rdx, r15
call get_sleb128
test eax, eax
js short loc_434B8
mov eax, eax
add r12, rax
mov r13d, [rsp+58h+var_48]
add r13d, dword ptr [rsp+58h+var_40]
mov al, 1
jmp short loc_434BA
loc_434AF:
inc edi
mov edx, edi
jmp loc_43403
loc_434B8:
xor eax, eax
loc_434BA:
mov ebx, [rsp+58h+var_44]
jmp loc_43409
loc_434C3:
mov r13d, [r14+6Ch]
jmp short loc_434D3
loc_434C9:
mov r13d, ecx
loc_434CC:
mov rax, [rsp+58h+var_38]
mov [rax], ebp
loc_434D3:
mov eax, r13d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_434E5:
mov rax, [rsp+58h+var_40]
mov r13d, eax
jmp short loc_434CC
| long long find_line_num(long long a1, unsigned int a2, _DWORD *a3)
{
unsigned int v3; // r13d
_BYTE *v5; // rax
long long v6; // r15
int v7; // ebp
unsigned long long v9; // r15
unsigned long long v10; // r12
int v11; // edx
_BYTE *v12; // rax
char v13; // cl
unsigned int v14; // edi
int v15; // esi
char v17; // al
int v18; // eax
unsigned int v19; // ecx
int sleb128; // eax
unsigned int v22; // [rsp+Ch] [rbp-4Ch]
int v23; // [rsp+10h] [rbp-48h] BYREF
unsigned int v24; // [rsp+14h] [rbp-44h]
long long v25; // [rsp+18h] [rbp-40h]
_DWORD *v26; // [rsp+20h] [rbp-38h]
v26 = a3;
*a3 = 1;
v5 = *(_BYTE **)(a1 + 128);
if ( v5 )
{
v6 = *(int *)(a1 + 120);
v7 = *(_DWORD *)(a1 + 112);
if ( v6 <= 0 )
{
v3 = *(_DWORD *)(a1 + 108);
}
else
{
v25 = *(unsigned int *)(a1 + 108);
v9 = (unsigned long long)&v5[v6];
v22 = 0;
while ( 1 )
{
v10 = (unsigned long long)(v5 + 1);
if ( *v5 )
{
v19 = (unsigned __int8)*v5 - 1;
v22 += v19 / 5;
v3 = v25 + v19 % 5 - 1;
}
else
{
v11 = -1;
if ( v10 >= v9 )
{
LABEL_10:
v15 = 0;
}
else
{
v12 = v5 + 2;
v13 = 0;
v14 = 0;
v15 = 0;
while ( 1 )
{
v15 |= (*(v12 - 1) & 0x7F) << v13;
if ( (char)*(v12 - 1) >= 0 )
break;
if ( v14 <= 3 )
{
++v14;
v13 += 7;
if ( (unsigned long long)v12++ < v9 )
continue;
}
goto LABEL_10;
}
v11 = v14 + 1;
}
if ( v11 >= 0 )
{
v24 = a2;
v22 += v15;
v10 += (unsigned int)v11;
sleb128 = get_sleb128(&v23, v10, v9);
if ( sleb128 < 0 )
{
v17 = 0;
}
else
{
v10 += (unsigned int)sleb128;
v3 = v25 + v23;
v17 = 1;
}
a2 = v24;
}
else
{
v17 = 0;
}
if ( !v17 )
return *(unsigned int *)(a1 + 108);
}
v18 = get_sleb128(&v23, v10, v9);
if ( v18 < 0 )
return *(unsigned int *)(a1 + 108);
if ( v22 > a2 )
break;
v7 += v23;
v25 = v3;
v5 = (_BYTE *)((unsigned int)v18 + v10);
if ( (unsigned long long)v5 >= v9 )
goto LABEL_26;
}
v3 = v25;
}
LABEL_26:
*v26 = v7;
}
else
{
return *(unsigned int *)(a1 + 108);
}
return v3;
}
| find_line_num:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RDI
MOV qword ptr [RSP + 0x20],RDX
MOV dword ptr [RDX],0x1
MOV RAX,qword ptr [RDI + 0x80]
TEST RAX,RAX
JZ 0x001434c3
MOVSXD R15,dword ptr [R14 + 0x78]
MOV ECX,dword ptr [R14 + 0x6c]
MOV EBP,dword ptr [R14 + 0x70]
TEST R15,R15
JLE 0x001434c9
MOV EBX,ESI
MOV qword ptr [RSP + 0x18],RCX
ADD R15,RAX
MOV dword ptr [RSP + 0xc],0x0
LAB_001433ac:
LEA R12,[RAX + 0x1]
MOVZX ECX,byte ptr [RAX]
TEST ECX,ECX
JNZ 0x00143452
MOV EDX,0xffffffff
CMP R12,R15
JNC 0x00143401
ADD RAX,0x2
XOR ECX,ECX
XOR EDI,EDI
XOR ESI,ESI
LAB_001433cf:
MOV R8D,ESI
MOVZX R9D,byte ptr [RAX + -0x1]
MOV ESI,R9D
AND ESI,0x7f
SHL ESI,CL
OR ESI,R8D
TEST R9B,R9B
JNS 0x001434af
CMP EDI,0x3
JA 0x00143401
INC EDI
ADD ECX,0x7
LEA R8,[RAX + 0x1]
CMP RAX,R15
MOV RAX,R8
JC 0x001433cf
LAB_00143401:
XOR ESI,ESI
LAB_00143403:
TEST EDX,EDX
JNS 0x0014347b
XOR EAX,EAX
LAB_00143409:
TEST AL,AL
JZ 0x001434c3
LAB_00143411:
LEA RDI,[RSP + 0x10]
MOV RSI,R12
MOV RDX,R15
CALL 0x00110d68
TEST EAX,EAX
JS 0x001434c3
CMP dword ptr [RSP + 0xc],EBX
JA 0x001434e5
ADD EBP,dword ptr [RSP + 0x10]
MOV EAX,EAX
ADD R12,RAX
MOV EAX,R13D
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,R12
CMP R12,R15
JC 0x001433ac
JMP 0x001434cc
LAB_00143452:
DEC ECX
MOV RAX,RCX
MOV EDX,0xcccccccd
IMUL RAX,RDX
SHR RAX,0x22
ADD dword ptr [RSP + 0xc],EAX
LEA EAX,[RAX + RAX*0x4]
SUB ECX,EAX
MOV RAX,qword ptr [RSP + 0x18]
LEA R13D,[RAX + RCX*0x1]
DEC R13D
JMP 0x00143411
LAB_0014347b:
MOV dword ptr [RSP + 0x14],EBX
ADD dword ptr [RSP + 0xc],ESI
MOV EAX,EDX
ADD R12,RAX
LEA RDI,[RSP + 0x10]
MOV RSI,R12
MOV RDX,R15
CALL 0x00110d68
TEST EAX,EAX
JS 0x001434b8
MOV EAX,EAX
ADD R12,RAX
MOV R13D,dword ptr [RSP + 0x10]
ADD R13D,dword ptr [RSP + 0x18]
MOV AL,0x1
JMP 0x001434ba
LAB_001434af:
INC EDI
MOV EDX,EDI
JMP 0x00143403
LAB_001434b8:
XOR EAX,EAX
LAB_001434ba:
MOV EBX,dword ptr [RSP + 0x14]
JMP 0x00143409
LAB_001434c3:
MOV R13D,dword ptr [R14 + 0x6c]
JMP 0x001434d3
LAB_001434c9:
MOV R13D,ECX
LAB_001434cc:
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RAX],EBP
LAB_001434d3:
MOV EAX,R13D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001434e5:
MOV RAX,qword ptr [RSP + 0x18]
MOV R13D,EAX
JMP 0x001434cc
|
ulong find_line_num(long param_1,uint param_2,int *param_3)
{
uint uVar1;
byte bVar2;
int iVar3;
uint uVar4;
uint uVar5;
byte *pbVar6;
byte *pbVar7;
ulong unaff_R13;
byte *pbVar8;
bool bVar9;
uint local_4c;
int local_48;
uint local_44;
ulong local_40;
int *local_38;
*param_3 = 1;
pbVar6 = *(byte **)(param_1 + 0x80);
if (pbVar6 == (byte *)0x0) {
LAB_001434c3:
unaff_R13 = (ulong)*(uint *)(param_1 + 0x6c);
}
else {
local_40 = (ulong)*(uint *)(param_1 + 0x6c);
iVar3 = *(int *)(param_1 + 0x70);
local_38 = param_3;
if ((long)*(int *)(param_1 + 0x78) < 1) {
unaff_R13 = (ulong)*(uint *)(param_1 + 0x6c);
}
else {
pbVar8 = pbVar6 + *(int *)(param_1 + 0x78);
local_4c = 0;
do {
pbVar7 = pbVar6 + 1;
if (*pbVar6 == 0) {
uVar1 = 0xffffffff;
if (pbVar7 < pbVar8) {
bVar2 = 0;
uVar5 = 0;
uVar4 = 0;
pbVar6 = pbVar6 + 2;
do {
uVar4 = (pbVar6[-1] & 0x7f) << (bVar2 & 0x1f) | uVar4;
if (-1 < (char)pbVar6[-1]) {
uVar1 = uVar5 + 1;
goto LAB_00143403;
}
if (3 < uVar5) break;
uVar5 = uVar5 + 1;
bVar2 = bVar2 + 7;
bVar9 = pbVar6 < pbVar8;
pbVar6 = pbVar6 + 1;
} while (bVar9);
}
uVar4 = 0;
LAB_00143403:
if ((int)uVar1 < 0) {
bVar9 = false;
}
else {
local_4c = local_4c + uVar4;
pbVar7 = pbVar7 + uVar1;
local_44 = param_2;
uVar1 = get_sleb128(&local_48,pbVar7,pbVar8);
bVar9 = -1 < (int)uVar1;
param_2 = local_44;
if (bVar9) {
pbVar7 = pbVar7 + uVar1;
unaff_R13 = (ulong)(uint)(local_48 + (int)local_40);
}
}
if (!bVar9) goto LAB_001434c3;
}
else {
uVar1 = *pbVar6 - 1;
local_4c = local_4c + uVar1 / 5;
unaff_R13 = (ulong)(((int)local_40 + uVar1 % 5) - 1);
}
uVar1 = get_sleb128(&local_48,pbVar7,pbVar8);
if ((int)uVar1 < 0) goto LAB_001434c3;
if (param_2 < local_4c) {
unaff_R13 = local_40 & 0xffffffff;
break;
}
iVar3 = iVar3 + local_48;
pbVar6 = pbVar7 + uVar1;
local_40 = unaff_R13 & 0xffffffff;
} while (pbVar6 < pbVar8);
}
*local_38 = iVar3;
}
return unaff_R13 & 0xffffffff;
}
|
|
3,026 | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int) | monkey531[P]llama/common/json.hpp | inline cached_power get_cached_power_for_binary_exponent(int e)
{
// Now
//
// alpha <= e_c + e + q <= gamma (1)
// ==> f_c * 2^alpha <= c * 2^e * 2^q
//
// and since the c's are normalized, 2^(q-1) <= f_c,
//
// ==> 2^(q - 1 + alpha) <= c * 2^(e + q)
// ==> 2^(alpha - e - 1) <= c
//
// If c were an exact power of ten, i.e. c = 10^k, one may determine k as
//
// k = ceil( log_10( 2^(alpha - e - 1) ) )
// = ceil( (alpha - e - 1) * log_10(2) )
//
// From the paper:
// "In theory the result of the procedure could be wrong since c is rounded,
// and the computation itself is approximated [...]. In practice, however,
// this simple function is sufficient."
//
// For IEEE double precision floating-point numbers converted into
// normalized diyfp's w = f * 2^e, with q = 64,
//
// e >= -1022 (min IEEE exponent)
// -52 (p - 1)
// -52 (p - 1, possibly normalize denormal IEEE numbers)
// -11 (normalize the diyfp)
// = -1137
//
// and
//
// e <= +1023 (max IEEE exponent)
// -52 (p - 1)
// -11 (normalize the diyfp)
// = 960
//
// This binary exponent range [-1137,960] results in a decimal exponent
// range [-307,324]. One does not need to store a cached power for each
// k in this range. For each such k it suffices to find a cached power
// such that the exponent of the product lies in [alpha,gamma].
// This implies that the difference of the decimal exponents of adjacent
// table entries must be less than or equal to
//
// floor( (gamma - alpha) * log_10(2) ) = 8.
//
// (A smaller distance gamma-alpha would require a larger table.)
// NB:
// Actually this function returns c, such that -60 <= e_c + e + 64 <= -34.
constexpr int kCachedPowersMinDecExp = -300;
constexpr int kCachedPowersDecStep = 8;
static constexpr std::array<cached_power, 79> kCachedPowers =
{
{
{ 0xAB70FE17C79AC6CA, -1060, -300 },
{ 0xFF77B1FCBEBCDC4F, -1034, -292 },
{ 0xBE5691EF416BD60C, -1007, -284 },
{ 0x8DD01FAD907FFC3C, -980, -276 },
{ 0xD3515C2831559A83, -954, -268 },
{ 0x9D71AC8FADA6C9B5, -927, -260 },
{ 0xEA9C227723EE8BCB, -901, -252 },
{ 0xAECC49914078536D, -874, -244 },
{ 0x823C12795DB6CE57, -847, -236 },
{ 0xC21094364DFB5637, -821, -228 },
{ 0x9096EA6F3848984F, -794, -220 },
{ 0xD77485CB25823AC7, -768, -212 },
{ 0xA086CFCD97BF97F4, -741, -204 },
{ 0xEF340A98172AACE5, -715, -196 },
{ 0xB23867FB2A35B28E, -688, -188 },
{ 0x84C8D4DFD2C63F3B, -661, -180 },
{ 0xC5DD44271AD3CDBA, -635, -172 },
{ 0x936B9FCEBB25C996, -608, -164 },
{ 0xDBAC6C247D62A584, -582, -156 },
{ 0xA3AB66580D5FDAF6, -555, -148 },
{ 0xF3E2F893DEC3F126, -529, -140 },
{ 0xB5B5ADA8AAFF80B8, -502, -132 },
{ 0x87625F056C7C4A8B, -475, -124 },
{ 0xC9BCFF6034C13053, -449, -116 },
{ 0x964E858C91BA2655, -422, -108 },
{ 0xDFF9772470297EBD, -396, -100 },
{ 0xA6DFBD9FB8E5B88F, -369, -92 },
{ 0xF8A95FCF88747D94, -343, -84 },
{ 0xB94470938FA89BCF, -316, -76 },
{ 0x8A08F0F8BF0F156B, -289, -68 },
{ 0xCDB02555653131B6, -263, -60 },
{ 0x993FE2C6D07B7FAC, -236, -52 },
{ 0xE45C10C42A2B3B06, -210, -44 },
{ 0xAA242499697392D3, -183, -36 },
{ 0xFD87B5F28300CA0E, -157, -28 },
{ 0xBCE5086492111AEB, -130, -20 },
{ 0x8CBCCC096F5088CC, -103, -12 },
{ 0xD1B71758E219652C, -77, -4 },
{ 0x9C40000000000000, -50, 4 },
{ 0xE8D4A51000000000, -24, 12 },
{ 0xAD78EBC5AC620000, 3, 20 },
{ 0x813F3978F8940984, 30, 28 },
{ 0xC097CE7BC90715B3, 56, 36 },
{ 0x8F7E32CE7BEA5C70, 83, 44 },
{ 0xD5D238A4ABE98068, 109, 52 },
{ 0x9F4F2726179A2245, 136, 60 },
{ 0xED63A231D4C4FB27, 162, 68 },
{ 0xB0DE65388CC8ADA8, 189, 76 },
{ 0x83C7088E1AAB65DB, 216, 84 },
{ 0xC45D1DF942711D9A, 242, 92 },
{ 0x924D692CA61BE758, 269, 100 },
{ 0xDA01EE641A708DEA, 295, 108 },
{ 0xA26DA3999AEF774A, 322, 116 },
{ 0xF209787BB47D6B85, 348, 124 },
{ 0xB454E4A179DD1877, 375, 132 },
{ 0x865B86925B9BC5C2, 402, 140 },
{ 0xC83553C5C8965D3D, 428, 148 },
{ 0x952AB45CFA97A0B3, 455, 156 },
{ 0xDE469FBD99A05FE3, 481, 164 },
{ 0xA59BC234DB398C25, 508, 172 },
{ 0xF6C69A72A3989F5C, 534, 180 },
{ 0xB7DCBF5354E9BECE, 561, 188 },
{ 0x88FCF317F22241E2, 588, 196 },
{ 0xCC20CE9BD35C78A5, 614, 204 },
{ 0x98165AF37B2153DF, 641, 212 },
{ 0xE2A0B5DC971F303A, 667, 220 },
{ 0xA8D9D1535CE3B396, 694, 228 },
{ 0xFB9B7CD9A4A7443C, 720, 236 },
{ 0xBB764C4CA7A44410, 747, 244 },
{ 0x8BAB8EEFB6409C1A, 774, 252 },
{ 0xD01FEF10A657842C, 800, 260 },
{ 0x9B10A4E5E9913129, 827, 268 },
{ 0xE7109BFBA19C0C9D, 853, 276 },
{ 0xAC2820D9623BF429, 880, 284 },
{ 0x80444B5E7AA7CF85, 907, 292 },
{ 0xBF21E44003ACDD2D, 933, 300 },
{ 0x8E679C2F5E44FF8F, 960, 308 },
{ 0xD433179D9C8CB841, 986, 316 },
{ 0x9E19DB92B4E31BA9, 1013, 324 },
}
};
// This computation gives exactly the same results for k as
// k = ceil((kAlpha - e - 1) * 0.30102999566398114)
// for |e| <= 1500, but doesn't require floating-point operations.
// NB: log_10(2) ~= 78913 / 2^18
JSON_ASSERT(e >= -1500);
JSON_ASSERT(e <= 1500);
const int f = kAlpha - e - 1;
const int k = (f * 78913) / (1 << 18) + static_cast<int>(f > 0);
const int index = (-kCachedPowersMinDecExp + k + (kCachedPowersDecStep - 1)) / kCachedPowersDecStep;
JSON_ASSERT(index >= 0);
JSON_ASSERT(static_cast<std::size_t>(index) < kCachedPowers.size());
const cached_power cached = kCachedPowers[static_cast<std::size_t>(index)];
JSON_ASSERT(kAlpha <= cached.e + e + 64);
JSON_ASSERT(kGamma >= cached.e + e + 64);
return cached;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int):
pushq %rax
cmpl $0xfffffa23, %edi # imm = 0xFFFFFA23
jle 0x806a2
cmpl $0x5dd, %edi # imm = 0x5DD
jge 0x806c1
xorl %eax, %eax
movl %edi, %ecx
subl $-0x3d, %ecx
setl %al
negl %ecx
imull $0x13441, %ecx, %ecx # imm = 0x13441
leal 0x3ffff(%rcx), %edx
testl %ecx, %ecx
cmovnsl %ecx, %edx
sarl $0x12, %edx
addl %edx, %eax
cmpl $0xfffffec5, %eax # imm = 0xFFFFFEC5
jle 0x806dd
leal 0x133(%rax), %ecx
addl $0x13a, %eax # imm = 0x13A
testw %cx, %cx
cmovnsl %ecx, %eax
cwtl
shrl $0x3, %eax
cmpw $0x4f, %ax
jae 0x806f9
movzwl %ax, %eax
shll $0x4, %eax
leaq 0x34795(%rip), %rcx # 0xb4e18
movq 0x8(%rcx,%rax), %rdx
addl %edx, %edi
cmpl $-0x7d, %edi
jle 0x80715
cmpl $-0x5f, %edi
jge 0x80731
movq (%rcx,%rax), %rax
popq %rcx
retq
leaq 0x2ee19(%rip), %rdi # 0xaf4c2
leaq 0x2c29c(%rip), %rdx # 0xac94c
leaq 0x31aa4(%rip), %rcx # 0xb215b
movl $0x43e4, %esi # imm = 0x43E4
jmp 0x8074b
leaq 0x2edfa(%rip), %rdi # 0xaf4c2
leaq 0x2c27d(%rip), %rdx # 0xac94c
leaq 0x31a90(%rip), %rcx # 0xb2166
movl $0x43e5, %esi # imm = 0x43E5
jmp 0x8074b
leaq 0x2edde(%rip), %rdi # 0xaf4c2
leaq 0x2c261(%rip), %rdx # 0xac94c
leaq 0x31a7e(%rip), %rcx # 0xb2170
movl $0x43ea, %esi # imm = 0x43EA
jmp 0x8074b
leaq 0x2edc2(%rip), %rdi # 0xaf4c2
leaq 0x2c245(%rip), %rdx # 0xac94c
leaq 0x31a6d(%rip), %rcx # 0xb217b
movl $0x43eb, %esi # imm = 0x43EB
jmp 0x8074b
leaq 0x2eda6(%rip), %rdi # 0xaf4c2
leaq 0x2c229(%rip), %rdx # 0xac94c
leaq 0x31a88(%rip), %rcx # 0xb21b2
movl $0x43ee, %esi # imm = 0x43EE
jmp 0x8074b
leaq 0x2ed8a(%rip), %rdi # 0xaf4c2
leaq 0x2c20d(%rip), %rdx # 0xac94c
leaq 0x31a88(%rip), %rcx # 0xb21ce
movl $0x43ef, %esi # imm = 0x43EF
xorl %eax, %eax
callq 0x1ac70
| _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl36get_cached_power_for_binary_exponentEi:
push rax
cmp edi, 0FFFFFA23h
jle loc_806A2
cmp edi, 5DDh
jge loc_806C1
xor eax, eax
mov ecx, edi
sub ecx, 0FFFFFFC3h
setl al
neg ecx
imul ecx, 13441h
lea edx, [rcx+3FFFFh]
test ecx, ecx
cmovns edx, ecx
sar edx, 12h
add eax, edx
cmp eax, 0FFFFFEC5h
jle loc_806DD
lea ecx, [rax+133h]
add eax, 13Ah
test cx, cx
cmovns eax, ecx
cwde
shr eax, 3
cmp ax, 4Fh ; 'O'
jnb loc_806F9
movzx eax, ax
shl eax, 4
lea rcx, _ZZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl36get_cached_power_for_binary_exponentEiE13kCachedPowers; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)::kCachedPowers
mov rdx, [rcx+rax+8]
add edi, edx
cmp edi, 0FFFFFF83h
jle loc_80715
cmp edi, 0FFFFFFA1h
jge loc_80731
mov rax, [rcx+rax]
pop rcx
retn
loc_806A2:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aE1500; "e >= -1500"
mov esi, 43E4h
jmp loc_8074B
loc_806C1:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aE1500_0; "e <= 1500"
mov esi, 43E5h
jmp short loc_8074B
loc_806DD:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aIndex0; "index >= 0"
mov esi, 43EAh
jmp short loc_8074B
loc_806F9:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aStaticCastStdS; "static_cast<std::size_t>(index) < kCach"...
mov esi, 43EBh
jmp short loc_8074B
loc_80715:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKalphaCachedEE; "kAlpha <= cached.e + e + 64"
mov esi, 43EEh
jmp short loc_8074B
loc_80731:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKgammaCachedEE; "kGamma >= cached.e + e + 64"
mov esi, 43EFh
loc_8074B:
xor eax, eax
call _ggml_abort
| long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(
nlohmann::json_abi_v3_11_3::detail::dtoa_impl *this)
{
int v1; // eax
__int16 v2; // cx
__int16 v3; // ax
unsigned int v4; // eax
long long v5; // rax
int v6; // edi
long long v8; // rsi
if ( (int)this <= -1501 )
{
v8 = 17380LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17380LL,
"GGML_ASSERT(%s) failed",
"e >= -1500");
}
else if ( (int)this >= 1501 )
{
v8 = 17381LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17381LL,
"GGML_ASSERT(%s) failed",
"e <= 1500");
}
else
{
v1 = -78913 * ((int)this + 61) / 0x40000 + ((int)this < -61);
if ( v1 <= -315 )
{
v8 = 17386LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17386LL,
"GGML_ASSERT(%s) failed",
"index >= 0");
}
else
{
v2 = v1 + 307;
v3 = v1 + 314;
if ( v2 >= 0 )
v3 = v2;
v4 = (unsigned int)v3 >> 3;
if ( (unsigned __int16)v4 >= 0x4Fu )
{
v8 = 17387LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17387LL,
"GGML_ASSERT(%s) failed",
"static_cast<std::size_t>(index) < kCachedPowers.size()");
}
else
{
v5 = 16 * (unsigned int)(unsigned __int16)v4;
v6 = *(_QWORD *)((char *)&nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)::kCachedPowers
+ v5
+ 8)
+ (_DWORD)this;
if ( v6 <= -125 )
{
v8 = 17390LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17390LL,
"GGML_ASSERT(%s) failed",
"kAlpha <= cached.e + e + 64");
}
else
{
if ( v6 < -95 )
return *(_QWORD *)((char *)&nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)::kCachedPowers
+ v5);
v8 = 17391LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17391LL,
"GGML_ASSERT(%s) failed",
"kGamma >= cached.e + e + 64");
}
}
}
}
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v8);
}
| get_cached_power_for_binary_exponent:
PUSH RAX
CMP EDI,0xfffffa23
JLE 0x001806a2
CMP EDI,0x5dd
JGE 0x001806c1
XOR EAX,EAX
MOV ECX,EDI
SUB ECX,-0x3d
SETL AL
NEG ECX
IMUL ECX,ECX,0x13441
LEA EDX,[RCX + 0x3ffff]
TEST ECX,ECX
CMOVNS EDX,ECX
SAR EDX,0x12
ADD EAX,EDX
CMP EAX,0xfffffec5
JLE 0x001806dd
LEA ECX,[RAX + 0x133]
ADD EAX,0x13a
TEST CX,CX
CMOVNS EAX,ECX
CWDE
SHR EAX,0x3
CMP AX,0x4f
JNC 0x001806f9
MOVZX EAX,AX
SHL EAX,0x4
LEA RCX,[0x1b4e18]
MOV RDX,qword ptr [RCX + RAX*0x1 + 0x8]
ADD EDI,EDX
CMP EDI,-0x7d
JLE 0x00180715
CMP EDI,-0x5f
JGE 0x00180731
MOV RAX,qword ptr [RCX + RAX*0x1]
POP RCX
RET
LAB_001806a2:
LEA RDI,[0x1af4c2]
LEA RDX,[0x1ac94c]
LEA RCX,[0x1b215b]
MOV ESI,0x43e4
JMP 0x0018074b
LAB_001806c1:
LEA RDI,[0x1af4c2]
LEA RDX,[0x1ac94c]
LEA RCX,[0x1b2166]
MOV ESI,0x43e5
JMP 0x0018074b
LAB_001806dd:
LEA RDI,[0x1af4c2]
LEA RDX,[0x1ac94c]
LEA RCX,[0x1b2170]
MOV ESI,0x43ea
JMP 0x0018074b
LAB_001806f9:
LEA RDI,[0x1af4c2]
LEA RDX,[0x1ac94c]
LEA RCX,[0x1b217b]
MOV ESI,0x43eb
JMP 0x0018074b
LAB_00180715:
LEA RDI,[0x1af4c2]
LEA RDX,[0x1ac94c]
LEA RCX,[0x1b21b2]
MOV ESI,0x43ee
JMP 0x0018074b
LAB_00180731:
LEA RDI,[0x1af4c2]
LEA RDX,[0x1ac94c]
LEA RCX,[0x1b21ce]
MOV ESI,0x43ef
LAB_0018074b:
XOR EAX,EAX
CALL 0x0011ac70
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int) */
int8
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int param_1)
{
short sVar1;
int iVar2;
ulong uVar3;
short sVar4;
int iVar5;
char *pcVar6;
int8 uVar7;
if (param_1 < -0x5dc) {
pcVar6 = "e >= -1500";
uVar7 = 0x43e4;
}
else if (param_1 < 0x5dd) {
iVar5 = (param_1 + 0x3d) * -0x13441;
iVar2 = iVar5 + 0x3ffff;
if (-1 < iVar5) {
iVar2 = iVar5;
}
iVar2 = (uint)(param_1 < -0x3d) + (iVar2 >> 0x12);
if (iVar2 < -0x13a) {
pcVar6 = "index >= 0";
uVar7 = 0x43ea;
}
else {
sVar1 = (short)iVar2;
sVar4 = sVar1 + 0x133;
sVar1 = sVar1 + 0x13a;
if (-1 < sVar4) {
sVar1 = sVar4;
}
if ((ushort)((uint)(int)sVar1 >> 3) < 0x4f) {
uVar3 = (ulong)(((uint)(int)sVar1 >> 3 & 0xffff) << 4);
iVar2 = param_1 + (int)*(int8 *)
(get_cached_power_for_binary_exponent(int)::kCachedPowers +
uVar3 + 8);
if (iVar2 < -0x7c) {
pcVar6 = "kAlpha <= cached.e + e + 64";
uVar7 = 0x43ee;
}
else {
if (iVar2 < -0x5f) {
return *(int8 *)(get_cached_power_for_binary_exponent(int)::kCachedPowers + uVar3)
;
}
pcVar6 = "kGamma >= cached.e + e + 64";
uVar7 = 0x43ef;
}
}
else {
pcVar6 = "static_cast<std::size_t>(index) < kCachedPowers.size()";
uVar7 = 0x43eb;
}
}
}
else {
pcVar6 = "e <= 1500";
uVar7 = 0x43e5;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar7,
"GGML_ASSERT(%s) failed",pcVar6);
}
|
|
3,027 | flush_cached_blocks | eloqsql/mysys/mf_keycache.c | static int flush_cached_blocks(SIMPLE_KEY_CACHE_CB *keycache,
File file, BLOCK_LINK **cache,
BLOCK_LINK **end,
enum flush_type type)
{
int error;
int last_errno= 0;
uint count= (uint) (end-cache);
/* Don't lock the cache during the flush */
keycache_pthread_mutex_unlock(&keycache->cache_lock);
/*
As all blocks referred in 'cache' are marked by BLOCK_IN_FLUSH
we are guarunteed no thread will change them
*/
my_qsort((uchar*) cache, count, sizeof(*cache), (qsort_cmp) cmp_sec_link);
keycache_pthread_mutex_lock(&keycache->cache_lock);
/*
Note: Do not break the loop. We have registered a request on every
block in 'cache'. These must be unregistered by free_block() or
unreg_request().
*/
for ( ; cache != end ; cache++)
{
BLOCK_LINK *block= *cache;
KEYCACHE_DBUG_PRINT("flush_cached_blocks",
("block %u to be flushed", BLOCK_NUMBER(block)));
/*
If the block contents is going to be changed, we abandon the flush
for this block. flush_key_blocks_int() will restart its search and
handle the block properly.
*/
if (!(block->status & BLOCK_FOR_UPDATE))
{
/* Blocks coming here must have a certain status. */
DBUG_ASSERT(block->hash_link);
DBUG_ASSERT(block->hash_link->block == block);
DBUG_ASSERT(block->hash_link->file == file);
DBUG_ASSERT((block->status & ~BLOCK_IN_EVICTION) ==
(BLOCK_READ | BLOCK_IN_FLUSH | BLOCK_CHANGED | BLOCK_IN_USE));
block->status|= BLOCK_IN_FLUSHWRITE;
keycache_pthread_mutex_unlock(&keycache->cache_lock);
error= (int)my_pwrite(file, block->buffer + block->offset,
block->length - block->offset,
block->hash_link->diskpos + block->offset,
MYF(MY_NABP | MY_WAIT_IF_FULL));
keycache_pthread_mutex_lock(&keycache->cache_lock);
keycache->global_cache_write++;
if (error)
{
block->status|= BLOCK_ERROR;
if (!last_errno)
last_errno= errno ? errno : -1;
}
block->status&= ~BLOCK_IN_FLUSHWRITE;
/* Block must not have changed status except BLOCK_FOR_UPDATE. */
DBUG_ASSERT(block->hash_link);
DBUG_ASSERT(block->hash_link->block == block);
DBUG_ASSERT(block->hash_link->file == file);
DBUG_ASSERT((block->status & ~(BLOCK_FOR_UPDATE | BLOCK_IN_EVICTION)) ==
(BLOCK_READ | BLOCK_IN_FLUSH | BLOCK_CHANGED | BLOCK_IN_USE));
/*
Set correct status and link in right queue for free or later use.
free_block() must not see BLOCK_CHANGED and it may need to wait
for readers of the block. These should not see the block in the
wrong hash. If not freeing the block, we need to have it in the
right queue anyway.
*/
link_to_file_list(keycache, block, file, 1);
}
block->status&= ~BLOCK_IN_FLUSH;
/*
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.
*/
release_whole_queue(&block->wqueue[COND_FOR_SAVED]);
/* type will never be FLUSH_IGNORE_CHANGED here */
if (!(type == FLUSH_KEEP || type == FLUSH_FORCE_WRITE) &&
!(block->status & (BLOCK_IN_EVICTION | BLOCK_IN_SWITCH |
BLOCK_FOR_UPDATE)))
{
/*
Note that a request has been registered against the block in
flush_key_blocks_int().
*/
free_block(keycache, block);
}
else
{
/*
Link the block into the LRU ring if it's the last submitted
request for the block. This enables eviction for the block.
Note that a request has been registered against the block in
flush_key_blocks_int().
*/
unreg_request(keycache, block, 1);
}
} /* end of for ( ; cache != end ; cache++) */
return last_errno;
} | O0 | c | flush_cached_blocks:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
sarq $0x3, %rax
movl %eax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
callq 0xe8360
movq -0x18(%rbp), %rdi
movl -0x30(%rbp), %eax
movl %eax, %esi
movl $0x8, %edx
leaq 0x1f7(%rip), %rcx # 0xebe50
callq 0xedad0
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
leaq 0x721da(%rip), %rsi # 0x15de4a
movl $0xec9, %edx # imm = 0xEC9
callq 0xe7940
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0xebe3a
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0xebc95
movq -0x38(%rbp), %rax
movl 0x50(%rax), %eax
andl $0x200, %eax # imm = 0x200
cmpl $0x0, %eax
jne 0xebdcb
jmp 0xebcac
jmp 0xebcae
jmp 0xebcb0
jmp 0xebcb2
jmp 0xebcb4
jmp 0xebcb6
jmp 0xebcb8
jmp 0xebcba
movq -0x38(%rbp), %rax
movl 0x50(%rax), %ecx
orl $0x100, %ecx # imm = 0x100
movl %ecx, 0x50(%rax)
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
callq 0xe8360
movl -0xc(%rbp), %edi
movq -0x38(%rbp), %rax
movq 0x40(%rax), %rsi
movq -0x38(%rbp), %rax
movl 0x48(%rax), %eax
addq %rax, %rsi
movq -0x38(%rbp), %rax
movl 0x4c(%rax), %eax
movq -0x38(%rbp), %rcx
subl 0x48(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x20(%rax), %rcx
movq -0x38(%rbp), %rax
movl 0x48(%rax), %eax
addq %rax, %rcx
movl $0x24, %r8d
callq 0xfd050
movl %eax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
leaq 0x72113(%rip), %rsi # 0x15de4a
movl $0xee8, %edx # imm = 0xEE8
callq 0xe7940
movq -0x8(%rbp), %rax
movq 0x148(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x148(%rax)
cmpl $0x0, -0x28(%rbp)
je 0xebd98
movq -0x38(%rbp), %rax
movl 0x50(%rax), %ecx
orl $0x1, %ecx
movl %ecx, 0x50(%rax)
cmpl $0x0, -0x2c(%rbp)
jne 0xebd96
callq 0x2a7d0
cmpl $0x0, (%rax)
je 0xebd86
callq 0x2a7d0
movl (%rax), %eax
movl %eax, -0x3c(%rbp)
jmp 0xebd90
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movl %eax, -0x3c(%rbp)
jmp 0xebd90
movl -0x3c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xebd98
movq -0x38(%rbp), %rax
movl 0x50(%rax), %ecx
andl $0xfffffeff, %ecx # imm = 0xFFFFFEFF
movl %ecx, 0x50(%rax)
jmp 0xebdaa
jmp 0xebdac
jmp 0xebdae
jmp 0xebdb0
jmp 0xebdb2
jmp 0xebdb4
jmp 0xebdb6
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl -0xc(%rbp), %edx
movl $0x1, %ecx
callq 0xe96b0
movq -0x38(%rbp), %rax
movl 0x50(%rax), %ecx
andl $-0x11, %ecx
movl %ecx, 0x50(%rax)
movq -0x38(%rbp), %rdi
addq $0x28, %rdi
addq $0x8, %rdi
callq 0xe9760
cmpl $0x0, -0x24(%rbp)
je 0xebe15
cmpl $0x3, -0x24(%rbp)
je 0xebe15
movq -0x38(%rbp), %rax
movl 0x50(%rax), %eax
andl $0x284, %eax # imm = 0x284
cmpl $0x0, %eax
jne 0xebe15
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0xe86f0
jmp 0xebe27
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl $0x1, %edx
callq 0xe8560
jmp 0xebe29
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
jmp 0xebc7a
movl -0x2c(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| flush_cached_blocks_0:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov [rbp+var_2C], 0
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
sub rax, rcx
sar rax, 3
mov [rbp+var_30], eax
mov rdi, [rbp+var_8]
add rdi, 0C0h
call inline_mysql_mutex_unlock_25
mov rdi, [rbp+var_18]
mov eax, [rbp+var_30]
mov esi, eax
mov edx, 8
lea rcx, cmp_sec_link_0
call my_qsort
mov rdi, [rbp+var_8]
add rdi, 0C0h
lea rsi, aWorkspaceLlm4b_37; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0EC9h
call inline_mysql_mutex_lock_24
loc_EBC7A:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jz loc_EBE3A
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_38], rax
jmp short $+2
loc_EBC95:
mov rax, [rbp+var_38]
mov eax, [rax+50h]
and eax, 200h
cmp eax, 0
jnz loc_EBDCB
jmp short $+2
loc_EBCAC:
jmp short $+2
loc_EBCAE:
jmp short $+2
loc_EBCB0:
jmp short $+2
loc_EBCB2:
jmp short $+2
loc_EBCB4:
jmp short $+2
loc_EBCB6:
jmp short $+2
loc_EBCB8:
jmp short $+2
loc_EBCBA:
mov rax, [rbp+var_38]
mov ecx, [rax+50h]
or ecx, 100h
mov [rax+50h], ecx
mov rdi, [rbp+var_8]
add rdi, 0C0h
call inline_mysql_mutex_unlock_25
mov edi, [rbp+var_C]
mov rax, [rbp+var_38]
mov rsi, [rax+40h]
mov rax, [rbp+var_38]
mov eax, [rax+48h]
add rsi, rax
mov rax, [rbp+var_38]
mov eax, [rax+4Ch]
mov rcx, [rbp+var_38]
sub eax, [rcx+48h]
mov eax, eax
mov edx, eax
mov rax, [rbp+var_38]
mov rax, [rax+20h]
mov rcx, [rax+20h]
mov rax, [rbp+var_38]
mov eax, [rax+48h]
add rcx, rax
mov r8d, 24h ; '$'
call my_pwrite
mov [rbp+var_28], eax
mov rdi, [rbp+var_8]
add rdi, 0C0h
lea rsi, aWorkspaceLlm4b_37; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0EE8h
call inline_mysql_mutex_lock_24
mov rax, [rbp+var_8]
mov rcx, [rax+148h]
add rcx, 1
mov [rax+148h], rcx
cmp [rbp+var_28], 0
jz short loc_EBD98
mov rax, [rbp+var_38]
mov ecx, [rax+50h]
or ecx, 1
mov [rax+50h], ecx
cmp [rbp+var_2C], 0
jnz short loc_EBD96
call ___errno_location
cmp dword ptr [rax], 0
jz short loc_EBD86
call ___errno_location
mov eax, [rax]
mov [rbp+var_3C], eax
jmp short loc_EBD90
loc_EBD86:
mov eax, 0FFFFFFFFh
mov [rbp+var_3C], eax
jmp short $+2
loc_EBD90:
mov eax, [rbp+var_3C]
mov [rbp+var_2C], eax
loc_EBD96:
jmp short $+2
loc_EBD98:
mov rax, [rbp+var_38]
mov ecx, [rax+50h]
and ecx, 0FFFFFEFFh
mov [rax+50h], ecx
jmp short $+2
loc_EBDAA:
jmp short $+2
loc_EBDAC:
jmp short $+2
loc_EBDAE:
jmp short $+2
loc_EBDB0:
jmp short $+2
loc_EBDB2:
jmp short $+2
loc_EBDB4:
jmp short $+2
loc_EBDB6:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_38]
mov edx, [rbp+var_C]
mov ecx, 1
call link_to_file_list_0
loc_EBDCB:
mov rax, [rbp+var_38]
mov ecx, [rax+50h]
and ecx, 0FFFFFFEFh
mov [rax+50h], ecx
mov rdi, [rbp+var_38]
add rdi, 28h ; '('
add rdi, 8
call release_whole_queue
cmp [rbp+var_24], 0
jz short loc_EBE15
cmp [rbp+var_24], 3
jz short loc_EBE15
mov rax, [rbp+var_38]
mov eax, [rax+50h]
and eax, 284h
cmp eax, 0
jnz short loc_EBE15
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_38]
call free_block_0
jmp short loc_EBE27
loc_EBE15:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_38]
mov edx, 1
call unreg_request_0
loc_EBE27:
jmp short $+2
loc_EBE29:
mov rax, [rbp+var_18]
add rax, 8
mov [rbp+var_18], rax
jmp loc_EBC7A
loc_EBE3A:
mov eax, [rbp+var_2C]
add rsp, 40h
pop rbp
retn
| long long flush_cached_blocks_0(_QWORD *a1, unsigned int a2, long long *a3, long long *a4, int a5)
{
int v6; // [rsp+4h] [rbp-3Ch]
long long v7; // [rsp+8h] [rbp-38h]
unsigned int v8; // [rsp+10h] [rbp-30h]
unsigned int v9; // [rsp+14h] [rbp-2Ch]
int v10; // [rsp+18h] [rbp-28h]
long long *v13; // [rsp+28h] [rbp-18h]
v13 = a3;
v9 = 0;
v8 = a4 - a3;
inline_mysql_mutex_unlock_25((long long)(a1 + 24));
my_qsort(v13, v8, 8LL, cmp_sec_link_0);
inline_mysql_mutex_lock_24(
(long long)(a1 + 24),
(long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",
0xEC9u);
while ( v13 != a4 )
{
v7 = *v13;
if ( (*(_DWORD *)(*v13 + 80) & 0x200) == 0 )
{
*(_DWORD *)(v7 + 80) |= 0x100u;
inline_mysql_mutex_unlock_25((long long)(a1 + 24));
v10 = my_pwrite(
a2,
*(unsigned int *)(v7 + 72) + *(_QWORD *)(v7 + 64),
(unsigned int)(*(_DWORD *)(v7 + 76) - *(_DWORD *)(v7 + 72)),
*(unsigned int *)(v7 + 72) + *(_QWORD *)(*(_QWORD *)(v7 + 32) + 32LL),
36LL);
inline_mysql_mutex_lock_24(
(long long)(a1 + 24),
(long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",
0xEE8u);
++a1[41];
if ( v10 )
{
*(_DWORD *)(v7 + 80) |= 1u;
if ( !v9 )
{
if ( *(_DWORD *)__errno_location() )
v6 = *(_DWORD *)__errno_location();
else
v6 = -1;
v9 = v6;
}
}
*(_DWORD *)(v7 + 80) &= ~0x100u;
link_to_file_list_0((long long)a1, v7, a2, 1);
}
*(_DWORD *)(v7 + 80) &= ~0x10u;
release_whole_queue((_QWORD *)(v7 + 48));
if ( !a5 || a5 == 3 || (*(_DWORD *)(v7 + 80) & 0x284) != 0 )
unreg_request_0(a1, v7, 1);
else
free_block_0((long long)a1, v7);
++v13;
}
return v9;
}
| flush_cached_blocks:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
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 dword ptr [RBP + -0x24],R8D
MOV dword ptr [RBP + -0x2c],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
SAR RAX,0x3
MOV dword ptr [RBP + -0x30],EAX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
CALL 0x001e8360
MOV RDI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x30]
MOV ESI,EAX
MOV EDX,0x8
LEA RCX,[0x1ebe50]
CALL 0x001edad0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
LEA RSI,[0x25de4a]
MOV EDX,0xec9
CALL 0x001e7940
LAB_001ebc7a:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x001ebe3a
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001ebc95
LAB_001ebc95:
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX + 0x50]
AND EAX,0x200
CMP EAX,0x0
JNZ 0x001ebdcb
JMP 0x001ebcac
LAB_001ebcac:
JMP 0x001ebcae
LAB_001ebcae:
JMP 0x001ebcb0
LAB_001ebcb0:
JMP 0x001ebcb2
LAB_001ebcb2:
JMP 0x001ebcb4
LAB_001ebcb4:
JMP 0x001ebcb6
LAB_001ebcb6:
JMP 0x001ebcb8
LAB_001ebcb8:
JMP 0x001ebcba
LAB_001ebcba:
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX + 0x50]
OR ECX,0x100
MOV dword ptr [RAX + 0x50],ECX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
CALL 0x001e8360
MOV EDI,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX + 0x48]
ADD RSI,RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX + 0x4c]
MOV RCX,qword ptr [RBP + -0x38]
SUB EAX,dword ptr [RCX + 0x48]
MOV EAX,EAX
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX + 0x48]
ADD RCX,RAX
MOV R8D,0x24
CALL 0x001fd050
MOV dword ptr [RBP + -0x28],EAX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
LEA RSI,[0x25de4a]
MOV EDX,0xee8
CALL 0x001e7940
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x148]
ADD RCX,0x1
MOV qword ptr [RAX + 0x148],RCX
CMP dword ptr [RBP + -0x28],0x0
JZ 0x001ebd98
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX + 0x50]
OR ECX,0x1
MOV dword ptr [RAX + 0x50],ECX
CMP dword ptr [RBP + -0x2c],0x0
JNZ 0x001ebd96
CALL 0x0012a7d0
CMP dword ptr [RAX],0x0
JZ 0x001ebd86
CALL 0x0012a7d0
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x001ebd90
LAB_001ebd86:
MOV EAX,0xffffffff
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x001ebd90
LAB_001ebd90:
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x2c],EAX
LAB_001ebd96:
JMP 0x001ebd98
LAB_001ebd98:
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX + 0x50]
AND ECX,0xfffffeff
MOV dword ptr [RAX + 0x50],ECX
JMP 0x001ebdaa
LAB_001ebdaa:
JMP 0x001ebdac
LAB_001ebdac:
JMP 0x001ebdae
LAB_001ebdae:
JMP 0x001ebdb0
LAB_001ebdb0:
JMP 0x001ebdb2
LAB_001ebdb2:
JMP 0x001ebdb4
LAB_001ebdb4:
JMP 0x001ebdb6
LAB_001ebdb6:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RBP + -0xc]
MOV ECX,0x1
CALL 0x001e96b0
LAB_001ebdcb:
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX + 0x50]
AND ECX,0xffffffef
MOV dword ptr [RAX + 0x50],ECX
MOV RDI,qword ptr [RBP + -0x38]
ADD RDI,0x28
ADD RDI,0x8
CALL 0x001e9760
CMP dword ptr [RBP + -0x24],0x0
JZ 0x001ebe15
CMP dword ptr [RBP + -0x24],0x3
JZ 0x001ebe15
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX + 0x50]
AND EAX,0x284
CMP EAX,0x0
JNZ 0x001ebe15
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x001e86f0
JMP 0x001ebe27
LAB_001ebe15:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x38]
MOV EDX,0x1
CALL 0x001e8560
LAB_001ebe27:
JMP 0x001ebe29
LAB_001ebe29:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x8
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001ebc7a
LAB_001ebe3a:
MOV EAX,dword ptr [RBP + -0x2c]
ADD RSP,0x40
POP RBP
RET
|
int flush_cached_blocks(long param_1,int4 param_2,long *param_3,long *param_4,int param_5)
{
long lVar1;
int iVar2;
int *piVar3;
int local_44;
int local_34;
long *local_20;
local_34 = 0;
inline_mysql_mutex_unlock(param_1 + 0xc0);
my_qsort(param_3,(long)param_4 - (long)param_3 >> 3 & 0xffffffff,8,cmp_sec_link);
inline_mysql_mutex_lock
(param_1 + 0xc0,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",0xec9);
for (local_20 = param_3; local_20 != param_4; local_20 = local_20 + 1) {
lVar1 = *local_20;
if ((*(uint *)(lVar1 + 0x50) & 0x200) == 0) {
*(uint *)(lVar1 + 0x50) = *(uint *)(lVar1 + 0x50) | 0x100;
inline_mysql_mutex_unlock(param_1 + 0xc0);
iVar2 = my_pwrite(param_2,*(long *)(lVar1 + 0x40) + (ulong)*(uint *)(lVar1 + 0x48),
*(int *)(lVar1 + 0x4c) - *(int *)(lVar1 + 0x48),
*(long *)(*(long *)(lVar1 + 0x20) + 0x20) + (ulong)*(uint *)(lVar1 + 0x48),
0x24);
inline_mysql_mutex_lock
(param_1 + 0xc0,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",0xee8
);
*(long *)(param_1 + 0x148) = *(long *)(param_1 + 0x148) + 1;
if ((iVar2 != 0) && (*(uint *)(lVar1 + 0x50) = *(uint *)(lVar1 + 0x50) | 1, local_34 == 0)) {
piVar3 = __errno_location();
if (*piVar3 == 0) {
local_44 = -1;
}
else {
piVar3 = __errno_location();
local_44 = *piVar3;
}
local_34 = local_44;
}
*(uint *)(lVar1 + 0x50) = *(uint *)(lVar1 + 0x50) & 0xfffffeff;
link_to_file_list(param_1,lVar1,param_2,1);
}
*(uint *)(lVar1 + 0x50) = *(uint *)(lVar1 + 0x50) & 0xffffffef;
release_whole_queue(lVar1 + 0x30);
if (((param_5 == 0) || (param_5 == 3)) || ((*(uint *)(lVar1 + 0x50) & 0x284) != 0)) {
unreg_request(param_1,lVar1,1);
}
else {
free_block(param_1,lVar1);
}
}
return local_34;
}
|
|
3,028 | evmone::instr::core::calldataload(evmone::StackTop, evmone::ExecutionState&) | corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/instructions.hpp | inline void calldataload(StackTop stack, ExecutionState& state) noexcept
{
auto& index = stack.top();
if (state.msg->input_size < index)
index = 0;
else
{
const auto begin = static_cast<size_t>(index);
const auto end = std::min(begin + 32, state.msg->input_size);
uint8_t data[32] = {};
for (size_t i = 0; i < (end - begin); ++i)
data[i] = state.msg->input_data[begin + i];
index = intx::be::load<uint256>(data);
}
} | O0 | cpp | evmone::instr::core::calldataload(evmone::StackTop, evmone::ExecutionState&):
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x8(%rbp), %rdi
callq 0x5fb80
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
addq $0x48, %rdi
movq -0x18(%rbp), %rsi
callq 0x67a30
testb $0x1, %al
jne 0x6792b
jmp 0x6795e
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x60670
movq -0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
movq -0x30(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x28(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rcx
movq %rcx, 0x18(%rax)
jmp 0x67a25
movq -0x18(%rbp), %rdi
callq 0x66f00
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
addq $0x48, %rsi
leaq -0x50(%rbp), %rdi
callq 0x39030
movq (%rax), %rax
movq %rax, -0x48(%rbp)
leaq -0x70(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x23140
movq $0x0, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq -0x48(%rbp), %rcx
subq -0x40(%rbp), %rcx
cmpq %rcx, %rax
jae 0x679e9
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x40(%rax), %rax
movq -0x40(%rbp), %rcx
addq -0x78(%rbp), %rcx
movb (%rax,%rcx), %cl
movq -0x78(%rbp), %rax
movb %cl, -0x70(%rbp,%rax)
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x78(%rbp)
jmp 0x679ab
leaq -0x98(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x672c0
movq -0x18(%rbp), %rax
movq -0x98(%rbp), %rcx
movq %rcx, (%rax)
movq -0x90(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x88(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x80(%rbp), %rcx
movq %rcx, 0x18(%rax)
addq $0xa0, %rsp
popq %rbp
retq
nop
| _ZN6evmone5instr4core12calldataloadENS_8StackTopERNS_14ExecutionStateE:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
lea rdi, [rbp+var_8]; this
call _ZN6evmone8StackTop3topEv; evmone::StackTop::top(void)
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
mov rdi, [rax+20h]
add rdi, 48h ; 'H'
mov rsi, [rbp+var_18]
call _ZN4intxltILj256EmvEEbRKT0_RKNS_4uintIXT_EEE; intx::operator<<256u,ulong,void>(ulong const&,intx::uint<256u> const&)
test al, 1
jnz short loc_6792B
jmp short loc_6795E
loc_6792B:
lea rdi, [rbp+var_38]
xor esi, esi
call _ZN4intx4uintILj256EEC2IJiEvEEDpT_; intx::uint<256u>::uint<int,void>(int)
mov rax, [rbp+var_18]
mov rcx, [rbp+var_38]
mov [rax], rcx
mov rcx, [rbp+var_30]
mov [rax+8], rcx
mov rcx, [rbp+var_28]
mov [rax+10h], rcx
mov rcx, [rbp+var_20]
mov [rax+18h], rcx
jmp loc_67A25
loc_6795E:
mov rdi, [rbp+var_18]
call _ZNK4intx4uintILj256EEcvT_ImvEEv; intx::uint<256u>::operator ulong<ulong,void>(void)
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
add rax, 20h ; ' '
mov [rbp+var_50], rax
mov rax, [rbp+var_10]
mov rsi, [rax+20h]
add rsi, 48h ; 'H'
lea rdi, [rbp+var_50]
call _ZSt3minImERKT_S2_S2_; std::min<ulong>(ulong const&,ulong const&)
mov rax, [rax]
mov [rbp+var_48], rax
lea rdi, [rbp+var_70]
xor esi, esi
mov edx, 20h ; ' '
call _memset
mov [rbp+var_78], 0
loc_679AB:
mov rax, [rbp+var_78]
mov rcx, [rbp+var_48]
sub rcx, [rbp+var_40]
cmp rax, rcx
jnb short loc_679E9
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rax, [rax+40h]
mov rcx, [rbp+var_40]
add rcx, [rbp+var_78]
mov cl, [rax+rcx]
mov rax, [rbp+var_78]
mov [rbp+rax+var_70], cl
mov rax, [rbp+var_78]
add rax, 1
mov [rbp+var_78], rax
jmp short loc_679AB
loc_679E9:
lea rdi, [rbp+var_98]
lea rsi, [rbp+var_70]
call _ZN4intx2be4loadINS_4uintILj256EEELj32EEET_RAT0__Kh; intx::be::load<intx::uint<256u>,32u>(uchar const(&)[32u])
mov rax, [rbp+var_18]
mov rcx, [rbp+var_98]
mov [rax], rcx
mov rcx, [rbp+var_90]
mov [rax+8], rcx
mov rcx, [rbp+var_88]
mov [rax+10h], rcx
mov rcx, [rbp+var_80]
mov [rax+18h], rcx
loc_67A25:
add rsp, 0A0h
pop rbp
retn
| _QWORD * evmone::instr::core::calldataload(long long a1, long long a2)
{
_QWORD *result; // rax
_QWORD v3[4]; // [rsp+8h] [rbp-98h] BYREF
unsigned long long i; // [rsp+28h] [rbp-78h]
_QWORD v5[4]; // [rsp+30h] [rbp-70h] BYREF
long long v6; // [rsp+50h] [rbp-50h] BYREF
long long v7; // [rsp+58h] [rbp-48h]
long long v8; // [rsp+60h] [rbp-40h]
_QWORD v9[4]; // [rsp+68h] [rbp-38h] BYREF
_QWORD *v10; // [rsp+88h] [rbp-18h]
long long v11; // [rsp+90h] [rbp-10h]
long long v12; // [rsp+98h] [rbp-8h] BYREF
v12 = a1;
v11 = a2;
v10 = (_QWORD *)evmone::StackTop::top((evmone::StackTop *)&v12);
if ( (intx::operator<<256u,unsigned long,void>(*(_QWORD *)(a2 + 32) + 72LL, v10) & 1) != 0 )
{
intx::uint<256u>::uint<int,void>(v9, 0);
result = v10;
*v10 = v9[0];
result[1] = v9[1];
result[2] = v9[2];
result[3] = v9[3];
}
else
{
v8 = intx::uint<256u>::operator unsigned long<unsigned long,void>((long long)v10);
v6 = v8 + 32;
v7 = *std::min<unsigned long>(&v6, (_QWORD *)(*(_QWORD *)(v11 + 32) + 72LL));
memset(v5, 0LL, sizeof(v5));
for ( i = 0LL; i < v7 - v8; ++i )
*((_BYTE *)v5 + i) = *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(v11 + 32) + 64LL) + i + v8);
intx::be::load<intx::uint<256u>,32u>(v3, v5);
result = v10;
*v10 = v3[0];
result[1] = v3[1];
result[2] = v3[2];
result[3] = v3[3];
}
return result;
}
| calldataload:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
LEA RDI,[RBP + -0x8]
CALL 0x0015fb80
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x20]
ADD RDI,0x48
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00167a30
TEST AL,0x1
JNZ 0x0016792b
JMP 0x0016795e
LAB_0016792b:
LEA RDI,[RBP + -0x38]
XOR ESI,ESI
CALL 0x00160670
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x18],RCX
JMP 0x00167a25
LAB_0016795e:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00166f00
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x20
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x20]
ADD RSI,0x48
LEA RDI,[RBP + -0x50]
CALL 0x00139030
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x48],RAX
LEA RDI,[RBP + -0x70]
XOR ESI,ESI
MOV EDX,0x20
CALL 0x00123140
MOV qword ptr [RBP + -0x78],0x0
LAB_001679ab:
MOV RAX,qword ptr [RBP + -0x78]
MOV RCX,qword ptr [RBP + -0x48]
SUB RCX,qword ptr [RBP + -0x40]
CMP RAX,RCX
JNC 0x001679e9
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x40]
ADD RCX,qword ptr [RBP + -0x78]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x78]
MOV byte ptr [RBP + RAX*0x1 + -0x70],CL
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,0x1
MOV qword ptr [RBP + -0x78],RAX
JMP 0x001679ab
LAB_001679e9:
LEA RDI,[RBP + -0x98]
LEA RSI,[RBP + -0x70]
CALL 0x001672c0
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x98]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x90]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x88]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x80]
MOV qword ptr [RAX + 0x18],RCX
LAB_00167a25:
ADD RSP,0xa0
POP RBP
RET
|
/* evmone::instr::core::calldataload(evmone::StackTop, evmone::ExecutionState&) */
void evmone::instr::core::calldataload(int8 param_1,long param_2)
{
bool bVar1;
ulong *puVar2;
int8 local_a0;
int8 local_98;
int8 local_90;
int8 local_88;
ulong local_80;
unsigned_char local_78 [32];
ulong local_58;
ulong local_50;
ulong local_48;
int8 local_40;
int8 local_38;
int8 local_30;
int8 local_28;
uint *local_20;
long local_18;
int8 local_10;
local_18 = param_2;
local_10 = param_1;
local_20 = (uint *)StackTop::top((StackTop *)&local_10);
bVar1 = intx::operator<((ulong *)(*(long *)(local_18 + 0x20) + 0x48),local_20);
if (bVar1) {
intx::uint<256u>::uint<int,void>((uint<256u> *)&local_40,0);
*(int8 *)local_20 = local_40;
*(int8 *)(local_20 + 8) = local_38;
*(int8 *)(local_20 + 0x10) = local_30;
*(int8 *)(local_20 + 0x18) = local_28;
}
else {
local_48 = intx::uint::operator_cast_to_unsigned_long(local_20);
local_58 = local_48 + 0x20;
puVar2 = std::min<unsigned_long>(&local_58,(ulong *)(*(long *)(local_18 + 0x20) + 0x48));
local_50 = *puVar2;
memset(local_78,0,0x20);
for (local_80 = 0; local_80 < local_50 - local_48; local_80 = local_80 + 1) {
local_78[local_80] =
*(unsigned_char *)(*(long *)(*(long *)(local_18 + 0x20) + 0x40) + local_48 + local_80);
}
intx::be::load<intx::uint<256u>,32u>((be *)&local_a0,local_78);
*(int8 *)local_20 = local_a0;
*(int8 *)(local_20 + 8) = local_98;
*(int8 *)(local_20 + 0x10) = local_90;
*(int8 *)(local_20 + 0x18) = local_88;
}
return;
}
|
|
3,029 | find_collation_data_inheritance_source | eloqsql/mysys/charset.c | static CHARSET_INFO *find_collation_data_inheritance_source(CHARSET_INFO *cs, myf flags)
{
const char *beg, *end;
if (cs->tailoring &&
!strncmp(cs->tailoring, "[import ", 8) &&
(end= strchr(cs->tailoring + 8, ']')) &&
(beg= cs->tailoring + 8) + MY_CS_NAME_SIZE > end)
{
char name[MY_CS_NAME_SIZE + 1];
memcpy(name, beg, end - beg);
name[end - beg]= '\0';
return inheritance_source_by_id(cs, get_collation_number(name,MYF(flags)));
}
return NULL;
} | O0 | c | find_collation_data_inheritance_source:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x40(%rbp)
movq %rsi, -0x48(%rbp)
movq -0x40(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0xddbf6
movq -0x40(%rbp), %rax
movq 0x38(%rax), %rdi
leaq 0x7640a(%rip), %rsi # 0x153f65
movl $0x8, %edx
callq 0x2a1e0
cmpl $0x0, %eax
jne 0xddbf6
movq -0x40(%rbp), %rax
movq 0x38(%rax), %rdi
addq $0x8, %rdi
movl $0x5d, %esi
callq 0x2a410
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
je 0xddbf6
movq -0x40(%rbp), %rax
movq 0x38(%rax), %rax
addq $0x8, %rax
movq %rax, -0x50(%rbp)
addq $0x20, %rax
cmpq -0x58(%rbp), %rax
jbe 0xddbf6
leaq -0x30(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x50(%rbp), %rax
subq %rax, %rdx
callq 0x2a090
movq -0x58(%rbp), %rax
movq -0x50(%rbp), %rcx
subq %rcx, %rax
movb $0x0, -0x30(%rbp,%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0xdb930
movq -0x60(%rbp), %rdi
movl %eax, %esi
callq 0xddd70
movq %rax, -0x38(%rbp)
jmp 0xddbfe
movq $0x0, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x68(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xddc22
movq -0x68(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
callq 0x2a270
nopw (%rax,%rax)
| find_collation_data_inheritance_source:
push rbp
mov rbp, rsp
sub rsp, 70h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_40], rdi
mov [rbp+var_48], rsi
mov rax, [rbp+var_40]
cmp qword ptr [rax+38h], 0
jz loc_DDBF6
mov rax, [rbp+var_40]
mov rdi, [rax+38h]
lea rsi, aImport; "[import "
mov edx, 8
call _strncmp
cmp eax, 0
jnz loc_DDBF6
mov rax, [rbp+var_40]
mov rdi, [rax+38h]
add rdi, 8
mov esi, 5Dh ; ']'
call _strchr
mov [rbp+var_58], rax
cmp rax, 0
jz short loc_DDBF6
mov rax, [rbp+var_40]
mov rax, [rax+38h]
add rax, 8
mov [rbp+var_50], rax
add rax, 20h ; ' '
cmp rax, [rbp+var_58]
jbe short loc_DDBF6
lea rdi, [rbp+var_30]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_58]
mov rax, [rbp+var_50]
sub rdx, rax
call _memcpy
mov rax, [rbp+var_58]
mov rcx, [rbp+var_50]
sub rax, rcx
mov [rbp+rax+var_30], 0
mov rax, [rbp+var_40]
mov [rbp+var_60], rax
lea rdi, [rbp+var_30]
mov rsi, [rbp+var_48]
call get_collation_number
mov rdi, [rbp+var_60]
mov esi, eax
call inheritance_source_by_id
mov [rbp+var_38], rax
jmp short loc_DDBFE
loc_DDBF6:
mov [rbp+var_38], 0
loc_DDBFE:
mov rax, [rbp+var_38]
mov [rbp+var_68], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_DDC22
mov rax, [rbp+var_68]
add rsp, 70h
pop rbp
retn
loc_DDC22:
call ___stack_chk_fail
| long long find_collation_data_inheritance_source(long long a1, long long a2)
{
unsigned int collation_number; // eax
unsigned long long v4; // [rsp+18h] [rbp-58h]
long long v5; // [rsp+20h] [rbp-50h]
_BYTE v7[40]; // [rsp+40h] [rbp-30h] BYREF
unsigned long long v8; // [rsp+68h] [rbp-8h]
v8 = __readfsqword(0x28u);
if ( !*(_QWORD *)(a1 + 56) )
return 0LL;
if ( (unsigned int)strncmp(*(_QWORD *)(a1 + 56), "[import ", 8LL) )
return 0LL;
v4 = strchr(*(_QWORD *)(a1 + 56) + 8LL, 93LL);
if ( !v4 )
return 0LL;
v5 = *(_QWORD *)(a1 + 56) + 8LL;
if ( *(_QWORD *)(a1 + 56) + 40LL <= v4 )
return 0LL;
memcpy(v7, v5, v4 - v5);
v7[v4 - v5] = 0;
collation_number = get_collation_number((long long)v7, a2);
return inheritance_source_by_id(a1, collation_number);
}
| find_collation_data_inheritance_source:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x40],RDI
MOV qword ptr [RBP + -0x48],RSI
MOV RAX,qword ptr [RBP + -0x40]
CMP qword ptr [RAX + 0x38],0x0
JZ 0x001ddbf6
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX + 0x38]
LEA RSI,[0x253f65]
MOV EDX,0x8
CALL 0x0012a1e0
CMP EAX,0x0
JNZ 0x001ddbf6
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX + 0x38]
ADD RDI,0x8
MOV ESI,0x5d
CALL 0x0012a410
MOV qword ptr [RBP + -0x58],RAX
CMP RAX,0x0
JZ 0x001ddbf6
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x38]
ADD RAX,0x8
MOV qword ptr [RBP + -0x50],RAX
ADD RAX,0x20
CMP RAX,qword ptr [RBP + -0x58]
JBE 0x001ddbf6
LEA RDI,[RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x50]
SUB RDX,RAX
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x50]
SUB RAX,RCX
MOV byte ptr [RBP + RAX*0x1 + -0x30],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x60],RAX
LEA RDI,[RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x001db930
MOV RDI,qword ptr [RBP + -0x60]
MOV ESI,EAX
CALL 0x001ddd70
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001ddbfe
LAB_001ddbf6:
MOV qword ptr [RBP + -0x38],0x0
LAB_001ddbfe:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001ddc22
MOV RAX,qword ptr [RBP + -0x68]
ADD RSP,0x70
POP RBP
RET
LAB_001ddc22:
CALL 0x0012a270
|
int8 find_collation_data_inheritance_source(long param_1,int8 param_2)
{
int iVar1;
int4 uVar2;
char *pcVar3;
void *__src;
long in_FS_OFFSET;
int8 local_40;
char local_38 [40];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (*(long *)(param_1 + 0x38) != 0) {
iVar1 = strncmp(*(char **)(param_1 + 0x38),"[import ",8);
if (iVar1 == 0) {
pcVar3 = strchr((char *)(*(long *)(param_1 + 0x38) + 8),0x5d);
if ((pcVar3 != (char *)0x0) &&
(__src = (void *)(*(long *)(param_1 + 0x38) + 8),
pcVar3 < (char *)(*(long *)(param_1 + 0x38) + 0x28))) {
memcpy(local_38,__src,(long)pcVar3 - (long)__src);
pcVar3[(long)(local_38 + -(long)__src)] = '\0';
uVar2 = get_collation_number(local_38,param_2);
local_40 = inheritance_source_by_id(param_1,uVar2);
goto LAB_001ddbfe;
}
}
}
local_40 = 0;
LAB_001ddbfe:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_40;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
3,030 | build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&, common_grammar_options const&) | llama.cpp/common/json-schema-to-grammar.cpp | std::string build_grammar(const std::function<void(const common_grammar_builder &)> & cb, const common_grammar_options & options) {
SchemaConverter converter([&](const std::string &) { return json(); }, options.dotall);
common_grammar_builder builder {
/* .add_rule = */ [&](const std::string & name, const std::string & rule) {
return converter._add_rule(name, rule);
},
/* .add_schema = */ [&](const std::string & name, const nlohmann::ordered_json & schema) {
return converter.visit(schema, name == "root" ? "" : name);
},
/* .resolve_refs = */ [&](nlohmann::ordered_json & schema) {
converter.resolve_refs(schema, "");
}
};
cb(builder);
converter.check_errors();
return converter.format_grammar();
} | O3 | cpp | build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&, common_grammar_options const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x160, %rsp # imm = 0x160
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
leaq 0x2ee(%rip), %rax # 0x1002a2
movq %rax, 0x18(%rsi)
leaq 0x30f(%rip), %rax # 0x1002ce
movq %rax, 0x10(%rsi)
movzbl (%rdx), %edx
leaq 0x68(%rsp), %r15
movq %r15, %rdi
callq 0x102fae
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xfffea
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movq %r15, (%rsp)
leaq 0x2ea(%rip), %rcx # 0x1002e6
movq %rcx, 0x18(%rsp)
leaq 0x2f0(%rip), %rcx # 0x1002f8
movq %rcx, 0x10(%rsp)
movq %rax, 0x28(%rsp)
movq %r15, 0x20(%rsp)
leaq 0x300(%rip), %rcx # 0x10031e
movq %rcx, 0x38(%rsp)
leaq 0x3a6(%rip), %rcx # 0x1003d0
movq %rcx, 0x30(%rsp)
movq %rax, 0x48(%rsp)
movq %r15, 0x40(%rsp)
leaq 0x2dcc(%rip), %rcx # 0x102e0c
movq %rcx, 0x58(%rsp)
leaq 0x2e2a(%rip), %rcx # 0x102e76
movq %rcx, 0x50(%rsp)
cmpq %rax, 0x10(%r14)
je 0x100131
movq %rsp, %rsi
movq %r14, %rdi
callq *0x18(%r14)
leaq 0x68(%rsp), %rdi
callq 0x10313a
leaq 0x68(%rsp), %rsi
movq %rbx, %rdi
callq 0x103302
movq 0x50(%rsp), %rax
testq %rax, %rax
je 0x100095
leaq 0x40(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x1000ae
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x1000c5
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x148(%rsp), %rdi
callq 0x27ea0
leaq 0x130(%rsp), %rdi
callq 0x27ea0
leaq 0xf8(%rsp), %rdi
callq 0xfe8ea
leaq 0xc0(%rsp), %rdi
callq 0x103b2e
leaq 0x90(%rsp), %r14
movq %r14, %rdi
callq 0x103c10
movq -0x18(%r14), %rax
testq %rax, %rax
je 0x100121
leaq 0x68(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rax
addq $0x160, %rsp # imm = 0x160
popq %rbx
popq %r14
popq %r15
retq
callq 0x21320
jmp 0x10015c
jmp 0x10015c
jmp 0x10015c
jmp 0x10015c
jmp 0x10015c
movq %rax, %rbx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x100179
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x100179
movq %rax, %rdi
callq 0x2a257
movq %rax, %rbx
movq %rsp, %rdi
callq 0x10340e
leaq 0x68(%rsp), %rdi
callq 0x103464
movq %rbx, %rdi
callq 0x20b50
nop
| _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options:
push r15
push r14
push rbx
sub rsp, 160h
mov r14, rsi
mov rbx, rdi
xorps xmm0, xmm0
mov rsi, rsp; int
movaps xmmword ptr [rsi], xmm0
lea rax, _ZNSt17_Function_handlerIFN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_0E9_M_invokeERKSt9_Any_dataSG_; std::_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_invoke(std::_Any_data const&,std::string const&)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_0E10_M_managerERSt9_Any_dataRKSV_St18_Manager_operation; std::_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
movzx edx, byte ptr [rdx]; int
lea r15, [rsp+178h+var_110]
mov rdi, r15; int
call _ZN15SchemaConverterC2ERKSt8functionIFN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERKSB_EEb; SchemaConverter::SchemaConverter(std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::string const&)> const&,bool)
mov rax, [rsp+178h+var_168]
test rax, rax
jz short loc_FFFEA
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_FFFEA:
xor eax, eax
mov [rsp+178h+var_170], rax
mov [rsp+178h+var_178], r15
lea rcx, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_S7_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_1E9_M_invokeERKSt9_Any_dataS7_S7_; std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_invoke(std::_Any_data const&,std::string const&,std::string const&)
mov [rsp+178h+var_160], rcx
lea rcx, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_S7_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_1E10_M_managerERSt9_Any_dataRKSM_St18_Manager_operation; std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsp+178h+var_168], rcx
mov [rsp+178h+var_150], rax
mov [rsp+178h+var_158], r15
lea rcx, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_RKN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_2E9_M_invokeERKSt9_Any_dataS7_SI_; std::_Function_handler<std::string ()(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&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_invoke(std::_Any_data const&,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 [rsp+178h+var_140], rcx
lea rcx, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_RKN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_2E10_M_managerERSt9_Any_dataRKSX_St18_Manager_operation; std::_Function_handler<std::string ()(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&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsp+178h+var_148], rcx
mov [rsp+178h+var_130], rax
mov [rsp+178h+var_138], r15
lea rcx, _ZNSt17_Function_handlerIFvRN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_3E9_M_invokeERKSt9_Any_dataSF_; std::_Function_handler<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> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_invoke(std::_Any_data const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
mov [rsp+178h+var_120], rcx
lea rcx, _ZNSt17_Function_handlerIFvRN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_3E10_M_managerERSt9_Any_dataRKSU_St18_Manager_operation; std::_Function_handler<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> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsp+178h+var_128], rcx
cmp [r14+10h], rax
jz loc_100131
mov rsi, rsp
mov rdi, r14
call qword ptr [r14+18h]
lea rdi, [rsp+178h+var_110]; this
call _ZN15SchemaConverter12check_errorsEv; SchemaConverter::check_errors(void)
lea rsi, [rsp+178h+var_110]
mov rdi, rbx
call _ZN15SchemaConverter14format_grammarB5cxx11Ev; SchemaConverter::format_grammar(void)
mov rax, [rsp+178h+var_128]
test rax, rax
jz short loc_100095
lea rdi, [rsp+178h+var_138]
mov rsi, rdi
mov edx, 3
call rax
loc_100095:
mov rax, [rsp+178h+var_148]
test rax, rax
jz short loc_1000AE
lea rdi, [rsp+178h+var_158]
mov rsi, rdi
mov edx, 3
call rax
loc_1000AE:
mov rax, [rsp+178h+var_168]
test rax, rax
jz short loc_1000C5
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_1000C5:
lea rdi, [rsp+178h+var_30]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+178h+var_48]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+178h+var_80]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,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,true,true>>::~_Hashtable()
lea rdi, [rsp+178h+var_B8]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESaISH_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSJ_18_Mod_range_hashingENSJ_20_Default_ranged_hashENSJ_20_Prime_rehash_policyENSJ_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,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 r14, [rsp+178h+var_E8]
mov rdi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
mov rax, [r14-18h]
test rax, rax
jz short loc_100121
lea rdi, [rsp+178h+var_110]
mov rsi, rdi
mov edx, 3
call rax
loc_100121:
mov rax, rbx
add rsp, 160h
pop rbx
pop r14
pop r15
retn
loc_100131:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
jmp short loc_10015C
jmp short loc_10015C
jmp short loc_10015C
jmp short loc_10015C
jmp short loc_10015C
mov rbx, rax
mov rax, [rsp+178h+var_168]
test rax, rax
jz short loc_100179
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_100179
loc_10015C:
mov rdi, rax
call __clang_call_terminate
mov rbx, rax
mov rdi, rsp; this
call _ZN22common_grammar_builderD2Ev; common_grammar_builder::~common_grammar_builder()
lea rdi, [rsp+178h+var_110]; this
call _ZN15SchemaConverterD2Ev; SchemaConverter::~SchemaConverter()
loc_100179:
mov rdi, rbx
call __Unwind_Resume
| long long build_grammar[abi:cxx11](long long a1, long long a2, unsigned __int8 *a3, int a4, int a5, int a6)
{
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
int *v11; // [rsp+0h] [rbp-178h] BYREF
long long v12; // [rsp+8h] [rbp-170h]
long long ( *v13)(); // [rsp+10h] [rbp-168h]
long long ( *v14)(); // [rsp+18h] [rbp-160h]
int *v15; // [rsp+20h] [rbp-158h] BYREF
long long v16; // [rsp+28h] [rbp-150h]
long long ( *v17)(); // [rsp+30h] [rbp-148h]
long long ( *v18)(int, int, int, int, int, int, int, long long); // [rsp+38h] [rbp-140h]
int *v19; // [rsp+40h] [rbp-138h] BYREF
long long v20; // [rsp+48h] [rbp-130h]
long long ( *v21)(); // [rsp+50h] [rbp-128h]
long long ( *v22)(int, int, int, int, int, int, void *, int, long long); // [rsp+58h] [rbp-120h]
int v23; // [rsp+60h] [rbp-118h]
int v24[4]; // [rsp+68h] [rbp-110h] BYREF
void ( *v25)(int *, int *, long long); // [rsp+78h] [rbp-100h]
_BYTE v26[48]; // [rsp+90h] [rbp-E8h] BYREF
_BYTE v27[56]; // [rsp+C0h] [rbp-B8h] BYREF
_BYTE v28[56]; // [rsp+F8h] [rbp-80h] BYREF
_BYTE v29[24]; // [rsp+130h] [rbp-48h] BYREF
_BYTE v30[48]; // [rsp+148h] [rbp-30h] BYREF
v14 = std::_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_invoke;
SchemaConverter::SchemaConverter(
(int)v24,
(int)&v11,
*a3,
a4,
a5,
a6,
0LL,
0,
(long long)std::_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_manager);
if ( v13 )
((void ( *)(int **, int **, long long))v13)(&v11, &v11, 3LL);
v12 = 0LL;
v11 = v24;
v14 = std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_invoke;
v13 = std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_manager;
v16 = 0LL;
v15 = v24;
v18 = std::_Function_handler<std::string ()(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_invoke;
v17 = std::_Function_handler<std::string ()(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_manager;
v20 = 0LL;
v19 = v24;
v22 = std::_Function_handler<void ()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_invoke;
v21 = std::_Function_handler<void ()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_manager;
if ( !*(_QWORD *)(a2 + 16) )
std::__throw_bad_function_call();
(*(void ( **)(long long, int **))(a2 + 24))(a2, &v11);
SchemaConverter::check_errors((SchemaConverter *)v24);
SchemaConverter::format_grammar[abi:cxx11](
a1,
(unsigned int)v24,
v6,
v7,
v8,
v9,
(_DWORD)v11,
v12,
(_DWORD)v13,
(_DWORD)v14,
(_DWORD)v15,
v16,
(_DWORD)v17,
(_DWORD)v18,
(_DWORD)v19,
v20,
(_DWORD)v21,
(_DWORD)v22,
v23,
v24[0],
v24[2],
(char)v25);
if ( v21 )
((void ( *)(int **, int **, long long))v21)(&v19, &v19, 3LL);
if ( v17 )
((void ( *)(int **, int **, long long))v17)(&v15, &v15, 3LL);
if ( v13 )
((void ( *)(int **, int **, long long))v13)(&v11, &v11, 3LL);
std::vector<std::string>::~vector((long long)v30);
std::vector<std::string>::~vector((long long)v29);
std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,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,true,true>>::~_Hashtable((long long)v28);
std::_Hashtable<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::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>>>,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(v27);
std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree(v26);
if ( v25 )
v25(v24, v24, 3LL);
return a1;
}
| build_grammar[abi:cxx11]:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x160
MOV R14,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOV RSI,RSP
MOVAPS xmmword ptr [RSI],XMM0
LEA RAX,[0x2002a2]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x2002ce]
MOV qword ptr [RSI + 0x10],RAX
MOVZX EDX,byte ptr [RDX]
LAB_001fffc6:
LEA R15,[RSP + 0x68]
MOV RDI,R15
CALL 0x00202fae
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x001fffea
LAB_001fffdd:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001fffea:
XOR EAX,EAX
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP],R15
LEA RCX,[0x2002e6]
MOV qword ptr [RSP + 0x18],RCX
LEA RCX,[0x2002f8]
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x20],R15
LEA RCX,[0x20031e]
MOV qword ptr [RSP + 0x38],RCX
LEA RCX,[0x2003d0]
MOV qword ptr [RSP + 0x30],RCX
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x40],R15
LEA RCX,[0x202e0c]
MOV qword ptr [RSP + 0x58],RCX
LEA RCX,[0x202e76]
MOV qword ptr [RSP + 0x50],RCX
CMP qword ptr [R14 + 0x10],RAX
JZ 0x00200131
LAB_0020005b:
MOV RSI,RSP
MOV RDI,R14
CALL qword ptr [R14 + 0x18]
LEA RDI,[RSP + 0x68]
CALL 0x0020313a
LEA RSI,[RSP + 0x68]
MOV RDI,RBX
CALL 0x00203302
MOV RAX,qword ptr [RSP + 0x50]
TEST RAX,RAX
JZ 0x00200095
LEA RDI,[RSP + 0x40]
LAB_0020008b:
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00200095:
MOV RAX,qword ptr [RSP + 0x30]
TEST RAX,RAX
JZ 0x002000ae
LEA RDI,[RSP + 0x20]
LAB_002000a4:
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_002000ae:
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x002000c5
LAB_002000b8:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_002000c5:
LEA RDI,[RSP + 0x148]
CALL 0x00127ea0
LEA RDI,[RSP + 0x130]
CALL 0x00127ea0
LEA RDI,[RSP + 0xf8]
CALL 0x001fe8ea
LEA RDI,[RSP + 0xc0]
CALL 0x00203b2e
LEA R14,[RSP + 0x90]
MOV RDI,R14
CALL 0x00203c10
MOV RAX,qword ptr [R14 + -0x18]
TEST RAX,RAX
JZ 0x00200121
LAB_00200112:
LEA RDI,[RSP + 0x68]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00200121:
MOV RAX,RBX
ADD RSP,0x160
POP RBX
POP R14
POP R15
RET
LAB_00200131:
CALL 0x00121320
|
/* build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&,
common_grammar_options const&) */
function * build_grammar_abi_cxx11_(function *param_1,common_grammar_options *param_2)
{
int8 in_RDX;
SchemaConverter *local_178;
int8 uStack_170;
code *local_168;
code *local_160;
SchemaConverter *local_158;
int8 local_150;
code *local_148;
code *local_140;
SchemaConverter *local_138;
int8 local_130;
code *local_128;
code *local_120;
SchemaConverter local_110 [16];
code *local_100;
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
local_e8 [48];
_Hashtable<std::__cxx11::string,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>>>,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_b8 [56];
_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,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,true,true>>
local_80 [56];
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_48 [24];
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_30 [24];
local_178 = (SchemaConverter *)0x0;
uStack_170 = 0;
local_160 = std::
_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_0>
::_M_invoke;
local_168 = std::
_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_0>
::_M_manager;
/* try { // try from 001fffc6 to 001fffd2 has its CatchHandler @ 00200140 */
SchemaConverter::SchemaConverter(local_110,(function *)&local_178,*(bool *)in_RDX);
if (local_168 != (code *)0x0) {
/* try { // try from 001fffdd to 001fffe9 has its CatchHandler @ 0020013e */
(*local_168)(&local_178,&local_178,3);
}
uStack_170 = 0;
local_160 = std::
_Function_handler<std::__cxx11::string(std::__cxx11::string_const&,std::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_1>
::_M_invoke;
local_168 = std::
_Function_handler<std::__cxx11::string(std::__cxx11::string_const&,std::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_1>
::_M_manager;
local_150 = 0;
local_140 = std::
_Function_handler<std::__cxx11::string(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&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_2>
::_M_invoke;
local_148 = std::
_Function_handler<std::__cxx11::string(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&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_2>
::_M_manager;
local_130 = 0;
local_120 = std::
_Function_handler<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>&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_3>
::_M_invoke;
local_128 = std::
_Function_handler<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>&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_3>
::_M_manager;
local_178 = local_110;
local_158 = local_110;
local_138 = local_110;
if (*(long *)(param_2 + 0x10) != 0) {
/* try { // try from 0020005b to 0020007b has its CatchHandler @ 00200164 */
(**(code **)(param_2 + 0x18))(param_2,&local_178);
SchemaConverter::check_errors(local_110);
SchemaConverter::format_grammar_abi_cxx11_();
if (local_128 != (code *)0x0) {
/* try { // try from 0020008b to 00200094 has its CatchHandler @ 0020013c */
(*local_128)(&local_138,&local_138,3);
}
if (local_148 != (code *)0x0) {
/* try { // try from 002000a4 to 002000ad has its CatchHandler @ 0020013a */
(*local_148)(&local_158,&local_158,3);
}
if (local_168 != (code *)0x0) {
/* try { // try from 002000b8 to 002000c4 has its CatchHandler @ 00200138 */
(*local_168)(&local_178,&local_178,3);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_30);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_48);
std::
_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,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,true,true>>
::~_Hashtable(local_80);
std::
_Hashtable<std::__cxx11::string,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>>>,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_b8);
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::~_Rb_tree(local_e8);
if (local_100 != (code *)0x0) {
/* try { // try from 00200112 to 00200120 has its CatchHandler @ 00200136 */
(*local_100)(local_110,local_110,3);
}
return param_1;
}
/* WARNING: Subroutine does not return */
/* try { // try from 00200131 to 00200135 has its CatchHandler @ 00200164 */
std::__throw_bad_function_call();
}
|
|
3,031 | my_hash_sort_ucs2_nopad_bin | eloqsql/strings/ctype-ucs2.c | static void
my_hash_sort_ucs2_nopad_bin(CHARSET_INFO *cs __attribute__((unused)),
const uchar *key, size_t len,
ulong *nr1, ulong *nr2)
{
const uchar *end= key + len;
register ulong m1= *nr1, m2= *nr2;
for ( ; key < end ; key++)
{
MY_HASH_ADD(m1, m2, (uint)*key);
}
*nr1= m1;
*nr2= m2;
} | O0 | c | my_hash_sort_ucs2_nopad_bin:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x69bbe
jmp 0x69b76
movq -0x38(%rbp), %rax
andq $0x3f, %rax
addq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x38(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x40(%rbp)
jmp 0x69bb0
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x69b6a
movq -0x38(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_hash_sort_ucs2_nopad_bin:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_40], rax
loc_69B6A:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_30]
jnb short loc_69BBE
jmp short $+2
loc_69B76:
mov rax, [rbp+var_38]
and rax, 3Fh
add rax, [rbp+var_40]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_38]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_38]
mov [rbp+var_38], rax
mov rax, [rbp+var_40]
add rax, 3
mov [rbp+var_40], rax
jmp short $+2
loc_69BB0:
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_69B6A
loc_69BBE:
mov rcx, [rbp+var_38]
mov rax, [rbp+var_20]
mov [rax], rcx
mov rcx, [rbp+var_40]
mov rax, [rbp+var_28]
mov [rax], rcx
pop rbp
retn
| _QWORD * my_hash_sort_ucs2_nopad_bin(long long a1, unsigned __int8 *a2, long long a3, long long *a4, _QWORD *a5)
{
_QWORD *result; // rax
long long v6; // [rsp+0h] [rbp-40h]
long long v7; // [rsp+8h] [rbp-38h]
unsigned __int8 *v8; // [rsp+30h] [rbp-10h]
v8 = a2;
v7 = *a4;
v6 = *a5;
while ( v8 < &a2[a3] )
{
v7 ^= (v7 << 8) + *v8 * (v6 + (v7 & 0x3F));
v6 += 3LL;
++v8;
}
*a4 = v7;
result = a5;
*a5 = v6;
return result;
}
| my_hash_sort_ucs2_nopad_bin:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
LAB_00169b6a:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x00169bbe
JMP 0x00169b76
LAB_00169b76:
MOV RAX,qword ptr [RBP + -0x38]
AND RAX,0x3f
ADD RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX]
MOV ECX,ECX
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x38]
SHL RCX,0x8
ADD RAX,RCX
XOR RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x3
MOV qword ptr [RBP + -0x40],RAX
JMP 0x00169bb0
LAB_00169bb0:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00169b6a
LAB_00169bbe:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
POP RBP
RET
|
void my_hash_sort_ucs2_nopad_bin
(int8 param_1,byte *param_2,long param_3,ulong *param_4,long *param_5)
{
long local_48;
ulong local_40;
byte *local_18;
local_40 = *param_4;
local_48 = *param_5;
for (local_18 = param_2; local_18 < param_2 + param_3; local_18 = local_18 + 1) {
local_40 = ((local_40 & 0x3f) + local_48) * (ulong)*local_18 + local_40 * 0x100 ^ local_40;
local_48 = local_48 + 3;
}
*param_4 = local_40;
*param_5 = local_48;
return;
}
|
|
3,032 | my_strnncoll_simple | eloqsql/strings/ctype-simple.c | int my_strnncoll_simple(CHARSET_INFO * cs, const uchar *s, size_t slen,
const uchar *t, size_t tlen,
my_bool t_is_prefix)
{
size_t len = ( slen > tlen ) ? tlen : slen;
const uchar *map= cs->sort_order;
if (t_is_prefix && slen > tlen)
slen=tlen;
while (len--)
{
if (map[*s++] != map[*t++])
return ((int) map[s[-1]] - (int) map[t[-1]]);
}
/*
We can't use (slen - tlen) here as the result may be outside of the
precision of a signed int
*/
return slen > tlen ? 1 : slen < tlen ? -1 : 0 ;
} | O3 | c | my_strnncoll_simple:
pushq %rbp
movq %rsp, %rbp
cmpq %r8, %rdx
movq %r8, %r10
cmovbq %rdx, %r10
movq 0x58(%rdi), %rdi
testb %r9b, %r9b
cmovneq %r10, %rdx
xorl %r9d, %r9d
cmpq %r9, %r10
je 0xb4ff6
movzbl (%rsi,%r9), %eax
movzbl (%rdi,%rax), %eax
movzbl (%rcx,%r9), %r11d
movzbl (%rdi,%r11), %r11d
incq %r9
cmpb %r11b, %al
je 0xb4fd1
subl %r11d, %eax
jmp 0xb5008
xorl %ecx, %ecx
cmpq %r8, %rdx
sbbl %ecx, %ecx
cmpq %r8, %rdx
movl $0x1, %eax
cmovbel %ecx, %eax
popq %rbp
retq
| my_strnncoll_simple:
push rbp
mov rbp, rsp
cmp rdx, r8
mov r10, r8
cmovb r10, rdx
mov rdi, [rdi+58h]
test r9b, r9b
cmovnz rdx, r10
xor r9d, r9d
loc_B4FD1:
cmp r10, r9
jz short loc_B4FF6
movzx eax, byte ptr [rsi+r9]
movzx eax, byte ptr [rdi+rax]
movzx r11d, byte ptr [rcx+r9]
movzx r11d, byte ptr [rdi+r11]
inc r9
cmp al, r11b
jz short loc_B4FD1
sub eax, r11d
jmp short loc_B5008
loc_B4FF6:
xor ecx, ecx
cmp rdx, r8
sbb ecx, ecx
cmp rdx, r8
mov eax, 1
cmovbe eax, ecx
loc_B5008:
pop rbp
retn
| long long my_strnncoll_simple(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
char a6)
{
unsigned long long v6; // r10
long long v7; // rdi
long long v8; // r9
int v9; // eax
int v10; // r11d
long long result; // rax
v6 = a5;
if ( a3 < a5 )
v6 = a3;
v7 = *(_QWORD *)(a1 + 88);
if ( a6 )
a3 = v6;
v8 = 0LL;
while ( v6 != v8 )
{
v9 = *(unsigned __int8 *)(v7 + *(unsigned __int8 *)(a2 + v8));
v10 = *(unsigned __int8 *)(v7 + *(unsigned __int8 *)(a4 + v8++));
if ( (_BYTE)v9 != (_BYTE)v10 )
return (unsigned int)(v9 - v10);
}
result = 1LL;
if ( a3 <= a5 )
return (unsigned int)-(a3 < a5);
return result;
}
| my_strnncoll_simple:
PUSH RBP
MOV RBP,RSP
CMP RDX,R8
MOV R10,R8
CMOVC R10,RDX
MOV RDI,qword ptr [RDI + 0x58]
TEST R9B,R9B
CMOVNZ RDX,R10
XOR R9D,R9D
LAB_001b4fd1:
CMP R10,R9
JZ 0x001b4ff6
MOVZX EAX,byte ptr [RSI + R9*0x1]
MOVZX EAX,byte ptr [RDI + RAX*0x1]
MOVZX R11D,byte ptr [RCX + R9*0x1]
MOVZX R11D,byte ptr [RDI + R11*0x1]
INC R9
CMP AL,R11B
JZ 0x001b4fd1
SUB EAX,R11D
JMP 0x001b5008
LAB_001b4ff6:
XOR ECX,ECX
CMP RDX,R8
SBB ECX,ECX
CMP RDX,R8
MOV EAX,0x1
CMOVBE EAX,ECX
LAB_001b5008:
POP RBP
RET
|
int my_strnncoll_simple(long param_1,long param_2,ulong param_3,long param_4,ulong param_5,
char param_6)
{
byte bVar1;
byte bVar2;
ulong uVar3;
ulong uVar4;
uVar4 = param_5;
if (param_3 < param_5) {
uVar4 = param_3;
}
if (param_6 != '\0') {
param_3 = uVar4;
}
uVar3 = 0;
do {
if (uVar4 == uVar3) {
if (param_5 < param_3) {
return 1;
}
return -(uint)(param_3 < param_5);
}
bVar1 = *(byte *)(*(long *)(param_1 + 0x58) + (ulong)*(byte *)(param_2 + uVar3));
bVar2 = *(byte *)(*(long *)(param_1 + 0x58) + (ulong)*(byte *)(param_4 + uVar3));
uVar3 = uVar3 + 1;
} while (bVar1 == bVar2);
return (uint)bVar1 - (uint)bVar2;
}
|
|
3,033 | OpenSubdiv::v3_6_0::Vtr::internal::Refinement::Refinement(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, OpenSubdiv::v3_6_0::Vtr::internal::Level&, OpenSubdiv::v3_6_0::Sdc::Options const&) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/refinement.cpp | Refinement::Refinement(Level const & parentArg, Level & childArg, Sdc::Options const& options) :
_parent(&parentArg),
_child(&childArg),
_options(options),
_regFaceSize(-1),
_uniform(false),
_faceVertsFirst(false),
_childFaceFromFaceCount(0),
_childEdgeFromFaceCount(0),
_childEdgeFromEdgeCount(0),
_childVertFromFaceCount(0),
_childVertFromEdgeCount(0),
_childVertFromVertCount(0),
_firstChildFaceFromFace(0),
_firstChildEdgeFromFace(0),
_firstChildEdgeFromEdge(0),
_firstChildVertFromFace(0),
_firstChildVertFromEdge(0),
_firstChildVertFromVert(0) {
assert((childArg.getDepth() == 0) && (childArg.getNumVertices() == 0));
childArg._depth = 1 + parentArg.getDepth();
} | O0 | cpp | OpenSubdiv::v3_6_0::Vtr::internal::Refinement::Refinement(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, OpenSubdiv::v3_6_0::Vtr::internal::Level&, OpenSubdiv::v3_6_0::Sdc::Options const&):
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x40(%rbp)
movq 0x143056(%rip), %rax # 0x240f50
addq $0x10, %rax
movq %rax, (%rdi)
movq -0x10(%rbp), %rax
movq %rax, 0x8(%rdi)
movq -0x18(%rbp), %rax
movq %rax, 0x10(%rdi)
movq -0x20(%rbp), %rax
movl (%rax), %eax
movl %eax, 0x18(%rdi)
movl $0xffffffff, 0x20(%rdi) # imm = 0xFFFFFFFF
movb $0x0, 0x24(%rdi)
movb $0x0, 0x25(%rdi)
movl $0x0, 0x28(%rdi)
movl $0x0, 0x2c(%rdi)
movl $0x0, 0x30(%rdi)
movl $0x0, 0x34(%rdi)
movl $0x0, 0x38(%rdi)
movl $0x0, 0x3c(%rdi)
movl $0x0, 0x40(%rdi)
movl $0x0, 0x44(%rdi)
movl $0x0, 0x48(%rdi)
movl $0x0, 0x4c(%rdi)
movl $0x0, 0x50(%rdi)
movl $0x0, 0x54(%rdi)
addq $0x58, %rdi
callq 0xd35c0
movq -0x40(%rbp), %rdi
addq $0x68, %rdi
callq 0xd35c0
movq -0x40(%rbp), %rdi
addq $0x78, %rdi
movq %rdi, -0xb8(%rbp)
callq 0xd2780
movq -0x40(%rbp), %rdi
addq $0x90, %rdi
movq %rdi, -0xb0(%rbp)
callq 0xd2780
movq -0x40(%rbp), %rdi
addq $0xa8, %rdi
movq %rdi, -0xa8(%rbp)
callq 0xd2780
movq -0x40(%rbp), %rdi
addq $0xc0, %rdi
movq %rdi, -0xa0(%rbp)
callq 0xd2780
movq -0x40(%rbp), %rdi
addq $0xd8, %rdi
movq %rdi, -0x98(%rbp)
callq 0xd2780
movq -0x40(%rbp), %rdi
addq $0xf0, %rdi
movq %rdi, -0x90(%rbp)
callq 0xd2780
movq -0x40(%rbp), %rdi
addq $0x108, %rdi # imm = 0x108
movq %rdi, -0x88(%rbp)
callq 0xd2780
movq -0x40(%rbp), %rdi
addq $0x120, %rdi # imm = 0x120
movq %rdi, -0x80(%rbp)
callq 0xd2780
movq -0x40(%rbp), %rdi
addq $0x138, %rdi # imm = 0x138
movq %rdi, -0x78(%rbp)
callq 0xd2780
movq -0x40(%rbp), %rdi
addq $0x150, %rdi # imm = 0x150
movq %rdi, -0x70(%rbp)
callq 0xc3090
movq -0x40(%rbp), %rdi
addq $0x168, %rdi # imm = 0x168
movq %rdi, -0x68(%rbp)
callq 0xc3090
movq -0x40(%rbp), %rdi
addq $0x180, %rdi # imm = 0x180
movq %rdi, -0x60(%rbp)
callq 0xc3090
movq -0x40(%rbp), %rdi
addq $0x198, %rdi # imm = 0x198
movq %rdi, -0x58(%rbp)
callq 0xd2400
movq -0x40(%rbp), %rdi
addq $0x1b0, %rdi # imm = 0x1B0
movq %rdi, -0x50(%rbp)
callq 0xd2400
movq -0x40(%rbp), %rdi
addq $0x1c8, %rdi # imm = 0x1C8
movq %rdi, -0x48(%rbp)
callq 0xd2400
movq -0x40(%rbp), %rdi
addq $0x1e0, %rdi # imm = 0x1E0
movq %rdi, -0x38(%rbp)
callq 0xd7980
movq -0x18(%rbp), %rdi
callq 0xce0a0
movl %eax, -0x30(%rbp)
jmp 0xfe0f3
movl -0x30(%rbp), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xb9(%rbp)
jne 0xfe126
movq -0x18(%rbp), %rdi
callq 0xc8fe0
movl %eax, -0xc0(%rbp)
jmp 0xfe114
movl -0xc0(%rbp), %eax
cmpl $0x0, %eax
sete %al
movb %al, -0xb9(%rbp)
movb -0xb9(%rbp), %al
testb $0x1, %al
jne 0xfe132
jmp 0xfe137
jmp 0xfe209
leaq 0xeda6b(%rip), %rdi # 0x1ebba9
leaq 0xedaa3(%rip), %rsi # 0x1ebbe8
movl $0x44, %edx
leaq 0xedaf3(%rip), %rcx # 0x1ebc44
callq 0xc9440
movq -0x38(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0xce5b0
movq -0x48(%rbp), %rdi
callq 0xce980
movq -0x50(%rbp), %rdi
callq 0xce980
movq -0x58(%rbp), %rdi
callq 0xce980
movq -0x60(%rbp), %rdi
callq 0xd14b0
movq -0x68(%rbp), %rdi
callq 0xd14b0
movq -0x70(%rbp), %rdi
callq 0xd14b0
movq -0x78(%rbp), %rdi
callq 0xca800
movq -0x80(%rbp), %rdi
callq 0xca800
movq -0x88(%rbp), %rdi
callq 0xca800
movq -0x90(%rbp), %rdi
callq 0xca800
movq -0x98(%rbp), %rdi
callq 0xca800
movq -0xa0(%rbp), %rdi
callq 0xca800
movq -0xa8(%rbp), %rdi
callq 0xca800
movq -0xb0(%rbp), %rdi
callq 0xca800
movq -0xb8(%rbp), %rdi
callq 0xca800
jmp 0xfe233
movq -0x10(%rbp), %rdi
callq 0xce0a0
movl %eax, -0xc4(%rbp)
jmp 0xfe21a
movl -0xc4(%rbp), %ecx
addl $0x1, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0xc(%rax)
addq $0xd0, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0xd58b0
nopl (%rax)
| _ZN10OpenSubdiv6v3_6_03Vtr8internal10RefinementC2ERKNS2_5LevelERS4_RKNS0_3Sdc7OptionsE:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rdi, [rbp+var_8]
mov [rbp+var_40], rdi
mov rax, cs:_ZTVN10OpenSubdiv6v3_6_03Vtr8internal10RefinementE_ptr
add rax, 10h
mov [rdi], rax
mov rax, [rbp+var_10]
mov [rdi+8], rax
mov rax, [rbp+var_18]
mov [rdi+10h], rax
mov rax, [rbp+var_20]
mov eax, [rax]
mov [rdi+18h], eax
mov dword ptr [rdi+20h], 0FFFFFFFFh
mov byte ptr [rdi+24h], 0
mov byte ptr [rdi+25h], 0
mov dword ptr [rdi+28h], 0
mov dword ptr [rdi+2Ch], 0
mov dword ptr [rdi+30h], 0
mov dword ptr [rdi+34h], 0
mov dword ptr [rdi+38h], 0
mov dword ptr [rdi+3Ch], 0
mov dword ptr [rdi+40h], 0
mov dword ptr [rdi+44h], 0
mov dword ptr [rdi+48h], 0
mov dword ptr [rdi+4Ch], 0
mov dword ptr [rdi+50h], 0
mov dword ptr [rdi+54h], 0
add rdi, 58h ; 'X'
call __ZN10OpenSubdiv6v3_6_03Vtr5ArrayIiEC2Ev; OpenSubdiv::v3_6_0::Vtr::Array<int>::Array(void)
mov rdi, [rbp+var_40]
add rdi, 68h ; 'h'
call __ZN10OpenSubdiv6v3_6_03Vtr5ArrayIiEC2Ev; OpenSubdiv::v3_6_0::Vtr::Array<int>::Array(void)
mov rdi, [rbp+var_40]
add rdi, 78h ; 'x'
mov [rbp+var_B8], rdi
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 90h
mov [rbp+var_B0], rdi
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 0A8h
mov [rbp+var_A8], rdi
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 0C0h
mov [rbp+var_A0], rdi
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 0D8h
mov [rbp+var_98], rdi
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 0F0h
mov [rbp+var_90], rdi
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 108h
mov [rbp+var_88], rdi
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 120h
mov [rbp+var_80], rdi
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 138h
mov [rbp+var_78], rdi
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 150h
mov [rbp+var_70], rdi
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement8ChildTagESaIS5_EEC2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 168h
mov [rbp+var_68], rdi
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement8ChildTagESaIS5_EEC2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 180h
mov [rbp+var_60], rdi
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement8ChildTagESaIS5_EEC2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 198h
mov [rbp+var_58], rdi
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement9SparseTagESaIS5_EEC2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 1B0h
mov [rbp+var_50], rdi
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement9SparseTagESaIS5_EEC2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 1C8h
mov [rbp+var_48], rdi
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement9SparseTagESaIS5_EEC2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>::vector(void)
mov rdi, [rbp+var_40]
add rdi, 1E0h
mov [rbp+var_38], rdi
call __ZNSt6vectorIPN10OpenSubdiv6v3_6_03Vtr8internal14FVarRefinementESaIS5_EEC2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement *>::vector(void)
mov rdi, [rbp+var_18]; this
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level8getDepthEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::getDepth(void)
mov [rbp+var_30], eax
jmp short $+2
loc_FE0F3:
mov ecx, [rbp+var_30]
xor eax, eax
cmp ecx, 0
mov [rbp+var_B9], al
jnz short loc_FE126
mov rdi, [rbp+var_18]; this
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level14getNumVerticesEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumVertices(void)
mov [rbp+var_C0], eax
jmp short $+2
loc_FE114:
mov eax, [rbp+var_C0]
cmp eax, 0
setz al
mov [rbp+var_B9], al
loc_FE126:
mov al, [rbp+var_B9]
test al, 1
jnz short loc_FE132
jmp short loc_FE137
loc_FE132:
jmp loc_FE209
loc_FE137:
lea rdi, aChildargGetdep; "(childArg.getDepth() == 0) && (childArg"...
lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github/2025_star3"...
mov edx, 44h ; 'D'
lea rcx, aOpensubdivV360; "OpenSubdiv::v3_6_0::Vtr::internal::Refi"...
call ___assert_fail
mov rdi, [rbp+var_38]
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
call __ZNSt6vectorIPN10OpenSubdiv6v3_6_03Vtr8internal14FVarRefinementESaIS5_EED2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement *>::~vector()
mov rdi, [rbp+var_48]
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement9SparseTagESaIS5_EED2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>::~vector()
mov rdi, [rbp+var_50]
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement9SparseTagESaIS5_EED2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>::~vector()
mov rdi, [rbp+var_58]
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement9SparseTagESaIS5_EED2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>::~vector()
mov rdi, [rbp+var_60]
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement8ChildTagESaIS5_EED2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>::~vector()
mov rdi, [rbp+var_68]
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement8ChildTagESaIS5_EED2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>::~vector()
mov rdi, [rbp+var_70]
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement8ChildTagESaIS5_EED2Ev; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>::~vector()
mov rdi, [rbp+var_78]
call __ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
mov rdi, [rbp+var_80]
call __ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
mov rdi, [rbp+var_88]
call __ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
mov rdi, [rbp+var_90]
call __ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
mov rdi, [rbp+var_98]
call __ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
mov rdi, [rbp+var_A0]
call __ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
mov rdi, [rbp+var_A8]
call __ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
mov rdi, [rbp+var_B0]
call __ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
mov rdi, [rbp+var_B8]
call __ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
jmp short loc_FE233
loc_FE209:
mov rdi, [rbp+var_10]; this
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level8getDepthEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::getDepth(void)
mov [rbp+var_C4], eax
jmp short $+2
loc_FE21A:
mov ecx, [rbp+var_C4]
add ecx, 1
mov rax, [rbp+var_18]
mov [rax+0Ch], ecx
add rsp, 0D0h
pop rbp
retn
loc_FE233:
mov rdi, [rbp+var_28]
call __Unwind_Resume
| OpenSubdiv::v3_6_0::Vtr::internal::Level * OpenSubdiv::v3_6_0::Vtr::internal::Refinement::Refinement(
OpenSubdiv::v3_6_0::Vtr::internal::Refinement *this,
const OpenSubdiv::v3_6_0::Vtr::internal::Level *a2,
OpenSubdiv::v3_6_0::Vtr::internal::Level *a3,
const OpenSubdiv::v3_6_0::Sdc::Options *a4)
{
OpenSubdiv::v3_6_0::Vtr::internal::Level *result; // rax
int Depth; // [rsp+Ch] [rbp-C4h]
bool v6; // [rsp+17h] [rbp-B9h]
*(_QWORD *)this = &`vtable for'OpenSubdiv::v3_6_0::Vtr::internal::Refinement + 2;
*((_QWORD *)this + 1) = a2;
*((_QWORD *)this + 2) = a3;
*((_DWORD *)this + 6) = *(_DWORD *)a4;
*((_DWORD *)this + 8) = -1;
*((_BYTE *)this + 36) = 0;
*((_BYTE *)this + 37) = 0;
*((_DWORD *)this + 10) = 0;
*((_DWORD *)this + 11) = 0;
*((_DWORD *)this + 12) = 0;
*((_DWORD *)this + 13) = 0;
*((_DWORD *)this + 14) = 0;
*((_DWORD *)this + 15) = 0;
*((_DWORD *)this + 16) = 0;
*((_DWORD *)this + 17) = 0;
*((_DWORD *)this + 18) = 0;
*((_DWORD *)this + 19) = 0;
*((_DWORD *)this + 20) = 0;
*((_DWORD *)this + 21) = 0;
OpenSubdiv::v3_6_0::Vtr::Array<int>::Array((char *)this + 88);
OpenSubdiv::v3_6_0::Vtr::Array<int>::Array((char *)this + 104);
std::vector<int>::vector((char *)this + 120);
std::vector<int>::vector((char *)this + 144);
std::vector<int>::vector((char *)this + 168);
std::vector<int>::vector((char *)this + 192);
std::vector<int>::vector((char *)this + 216);
std::vector<int>::vector((char *)this + 240);
std::vector<int>::vector((char *)this + 264);
std::vector<int>::vector((char *)this + 288);
std::vector<int>::vector((char *)this + 312);
std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>::vector();
std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>::vector();
std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>::vector();
std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>::vector();
std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>::vector();
std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>::vector();
std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement *>::vector();
v6 = 0;
if ( !(unsigned int)OpenSubdiv::v3_6_0::Vtr::internal::Level::getDepth(a3) )
v6 = (unsigned int)OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumVertices(a3) == 0;
if ( !v6 )
__assert_fail(
"(childArg.getDepth() == 0) && (childArg.getNumVertices() == 0)",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/refinement.cpp",
68LL,
"OpenSubdiv::v3_6_0::Vtr::internal::Refinement::Refinement(const Level &, Level &, const Sdc::Options &)");
Depth = OpenSubdiv::v3_6_0::Vtr::internal::Level::getDepth(a2);
result = a3;
*((_DWORD *)a3 + 3) = Depth + 1;
return result;
}
| Refinement:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
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 RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x40],RDI
MOV RAX,qword ptr [0x00340f50]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RDI + 0x10],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RDI + 0x18],EAX
MOV dword ptr [RDI + 0x20],0xffffffff
MOV byte ptr [RDI + 0x24],0x0
MOV byte ptr [RDI + 0x25],0x0
MOV dword ptr [RDI + 0x28],0x0
MOV dword ptr [RDI + 0x2c],0x0
MOV dword ptr [RDI + 0x30],0x0
MOV dword ptr [RDI + 0x34],0x0
MOV dword ptr [RDI + 0x38],0x0
MOV dword ptr [RDI + 0x3c],0x0
MOV dword ptr [RDI + 0x40],0x0
MOV dword ptr [RDI + 0x44],0x0
MOV dword ptr [RDI + 0x48],0x0
MOV dword ptr [RDI + 0x4c],0x0
MOV dword ptr [RDI + 0x50],0x0
MOV dword ptr [RDI + 0x54],0x0
ADD RDI,0x58
CALL 0x001d35c0
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x68
CALL 0x001d35c0
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x78
MOV qword ptr [RBP + -0xb8],RDI
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x90
MOV qword ptr [RBP + -0xb0],RDI
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0xa8
MOV qword ptr [RBP + -0xa8],RDI
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0xc0
MOV qword ptr [RBP + -0xa0],RDI
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0xd8
MOV qword ptr [RBP + -0x98],RDI
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0xf0
MOV qword ptr [RBP + -0x90],RDI
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x108
MOV qword ptr [RBP + -0x88],RDI
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x120
MOV qword ptr [RBP + -0x80],RDI
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x138
MOV qword ptr [RBP + -0x78],RDI
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x150
MOV qword ptr [RBP + -0x70],RDI
CALL 0x001c3090
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x168
MOV qword ptr [RBP + -0x68],RDI
CALL 0x001c3090
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x180
MOV qword ptr [RBP + -0x60],RDI
CALL 0x001c3090
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x198
MOV qword ptr [RBP + -0x58],RDI
CALL 0x001d2400
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x1b0
MOV qword ptr [RBP + -0x50],RDI
CALL 0x001d2400
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x1c8
MOV qword ptr [RBP + -0x48],RDI
CALL 0x001d2400
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x1e0
MOV qword ptr [RBP + -0x38],RDI
CALL 0x001d7980
MOV RDI,qword ptr [RBP + -0x18]
LAB_001fe0e9:
CALL 0x001ce0a0
MOV dword ptr [RBP + -0x30],EAX
JMP 0x001fe0f3
LAB_001fe0f3:
MOV ECX,dword ptr [RBP + -0x30]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0xb9],AL
JNZ 0x001fe126
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001c8fe0
MOV dword ptr [RBP + -0xc0],EAX
JMP 0x001fe114
LAB_001fe114:
MOV EAX,dword ptr [RBP + -0xc0]
CMP EAX,0x0
SETZ AL
MOV byte ptr [RBP + -0xb9],AL
LAB_001fe126:
MOV AL,byte ptr [RBP + -0xb9]
TEST AL,0x1
JNZ 0x001fe132
JMP 0x001fe137
LAB_001fe132:
JMP 0x001fe209
LAB_001fe137:
LEA RDI,[0x2ebba9]
LEA RSI,[0x2ebbe8]
MOV EDX,0x44
LEA RCX,[0x2ebc44]
CALL 0x001c9440
LAB_001fe209:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001ce0a0
LAB_001fe212:
MOV dword ptr [RBP + -0xc4],EAX
JMP 0x001fe21a
LAB_001fe21a:
MOV ECX,dword ptr [RBP + -0xc4]
ADD ECX,0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0xc],ECX
ADD RSP,0xd0
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Vtr::internal::Refinement::Refinement(OpenSubdiv::v3_6_0::Vtr::internal::Level
const&, OpenSubdiv::v3_6_0::Vtr::internal::Level&, OpenSubdiv::v3_6_0::Sdc::Options const&) */
void __thiscall
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::Refinement
(Refinement *this,Level *param_1,Level *param_2,Options *param_3)
{
int iVar1;
bool bVar2;
*(int **)this = PTR_vtable_00340f50 + 0x10;
*(Level **)(this + 8) = param_1;
*(Level **)(this + 0x10) = param_2;
*(int4 *)(this + 0x18) = *(int4 *)param_3;
*(int4 *)(this + 0x20) = 0xffffffff;
this[0x24] = (Refinement)0x0;
this[0x25] = (Refinement)0x0;
*(int4 *)(this + 0x28) = 0;
*(int4 *)(this + 0x2c) = 0;
*(int4 *)(this + 0x30) = 0;
*(int4 *)(this + 0x34) = 0;
*(int4 *)(this + 0x38) = 0;
*(int4 *)(this + 0x3c) = 0;
*(int4 *)(this + 0x40) = 0;
*(int4 *)(this + 0x44) = 0;
*(int4 *)(this + 0x48) = 0;
*(int4 *)(this + 0x4c) = 0;
*(int4 *)(this + 0x50) = 0;
*(int4 *)(this + 0x54) = 0;
Array<int>::Array((Array<int> *)(this + 0x58));
Array<int>::Array((Array<int> *)(this + 0x68));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x78));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x90));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0xa8));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0xc0));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0xd8));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0xf0));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x108));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x120));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x138));
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>>
::vector((vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>>
*)(this + 0x150));
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>>
::vector((vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>>
*)(this + 0x168));
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>>
::vector((vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>>
*)(this + 0x180));
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>>
::vector((vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>>
*)(this + 0x198));
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>>
::vector((vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>>
*)(this + 0x1b0));
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>>
::vector((vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>>
*)(this + 0x1c8));
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement*,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement*>>
::vector((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement*,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement*>>
*)(this + 0x1e0));
/* try { // try from 001fe0e9 to 001fe211 has its CatchHandler @ 001fe156 */
iVar1 = Level::getDepth(param_2);
bVar2 = false;
if (iVar1 == 0) {
iVar1 = Level::getNumVertices(param_2);
bVar2 = iVar1 == 0;
}
if (!bVar2) {
/* WARNING: Subroutine does not return */
__assert_fail("(childArg.getDepth() == 0) && (childArg.getNumVertices() == 0)",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/refinement.cpp"
,0x44,
"OpenSubdiv::v3_6_0::Vtr::internal::Refinement::Refinement(const Level &, Level &, const Sdc::Options &)"
);
}
iVar1 = Level::getDepth(param_1);
*(int *)(param_2 + 0xc) = iVar1 + 1;
return;
}
|
|
3,034 | intx_shl | corpus-core[P]colibri-stateless/build_O3/_deps/intx-src/include/intx/intx.hpp | inline constexpr uint<N> operator<<(const uint<N>& x, const T& shift) noexcept
{
if (shift < T{sizeof(x) * 8})
return x << static_cast<uint64_t>(shift);
return 0;
} | O3 | cpp | intx_shl:
cmpl $0xff, %edx
ja 0x7f4a6
movq 0x10(%rsi), %r8
movq 0x18(%rsi), %r9
bswapq %r9
bswapq %r8
movl %edx, %eax
cmpl $0x7f, %edx
ja 0x7f4b6
pushq %r14
pushq %rbx
movq 0x8(%rsi), %r11
bswapq %r11
cmpl $0x3f, %edx
ja 0x7f4e4
movq %r9, %r10
movl %eax, %ecx
shlq %cl, %r10
movq %r8, %rbx
shlq %cl, %rbx
movq (%rsi), %r14
shrq %r9
movb $0x3f, %dl
subb %al, %dl
movl %edx, %ecx
shrq %cl, %r9
shrq %cl, %r8
bswapq %r14
movq %r11, %rsi
movl %eax, %ecx
shlq %cl, %rsi
shlq %cl, %r14
shrq %r11
movl %edx, %ecx
shrq %cl, %r11
orq %rbx, %r9
shrq %r8
orq %r14, %r11
xorl %edx, %edx
jmp 0x7f522
xorl %r10d, %r10d
xorl %r9d, %r9d
xorl %r8d, %r8d
xorl %edx, %edx
jmp 0x7f53e
leaq -0x80(%rax), %rcx
cmpq $0x3f, %rcx
ja 0x7f52d
movq %r9, %rsi
shlq %cl, %rsi
shlq %cl, %r8
shrq %r9
notb %al
movl %eax, %ecx
shrq %cl, %r9
movq %r9, %rdx
orq %r8, %rdx
xorl %r10d, %r10d
xorl %r9d, %r9d
movq %rsi, %r8
jmp 0x7f53e
movq %r9, %rsi
movl %eax, %ecx
shlq %cl, %rsi
movl %eax, %edx
xorb $0x7f, %dl
movl %edx, %ecx
shrq %cl, %r9
leaq (%r8,%r8), %rbx
movl %eax, %ecx
shlq %cl, %rbx
orq %r9, %rbx
movl %edx, %ecx
shrq %cl, %r8
shrdq $0x1, %r8, %rbx
shrq %r8
movl %eax, %ecx
shlq %cl, %r11
xorl %r10d, %r10d
movq %r8, %rdx
movq %rbx, %r8
movq %rsi, %r9
xorl %esi, %esi
orq %r11, %rdx
orq %rsi, %r8
popq %rbx
popq %r14
jmp 0x7f53e
movq %r9, %rdx
movl %eax, %ecx
shlq %cl, %rdx
xorl %r10d, %r10d
xorl %r9d, %r9d
xorl %r8d, %r8d
bswapq %r10
bswapq %r9
bswapq %r8
bswapq %rdx
movq %rdx, (%rdi)
movq %r8, 0x8(%rdi)
movq %r9, 0x10(%rdi)
movq %r10, 0x18(%rdi)
retq
| intx_shl:
cmp edx, 0FFh
ja short loc_7F4A6
mov r8, [rsi+10h]
mov r9, [rsi+18h]
bswap r9
bswap r8
mov eax, edx
cmp edx, 7Fh
ja short loc_7F4B6
push r14
push rbx
mov r11, [rsi+8]
bswap r11
cmp edx, 3Fh ; '?'
ja loc_7F4E4
mov r10, r9
mov ecx, eax
shl r10, cl
mov rbx, r8
shl rbx, cl
mov r14, [rsi]
shr r9, 1
mov dl, 3Fh ; '?'
sub dl, al
mov ecx, edx
shr r9, cl
shr r8, cl
bswap r14
mov rsi, r11
mov ecx, eax
shl rsi, cl
shl r14, cl
shr r11, 1
mov ecx, edx
shr r11, cl
or r9, rbx
shr r8, 1
or r11, r14
xor edx, edx
jmp short loc_7F522
loc_7F4A6:
xor r10d, r10d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
jmp loc_7F53E
loc_7F4B6:
lea rcx, [rax-80h]
cmp rcx, 3Fh ; '?'
ja short loc_7F52D
mov rsi, r9
shl rsi, cl
shl r8, cl
shr r9, 1
not al
mov ecx, eax
shr r9, cl
mov rdx, r9
or rdx, r8
xor r10d, r10d
xor r9d, r9d
mov r8, rsi
jmp short loc_7F53E
loc_7F4E4:
mov rsi, r9
mov ecx, eax
shl rsi, cl
mov edx, eax
xor dl, 7Fh
mov ecx, edx
shr r9, cl
lea rbx, [r8+r8]
mov ecx, eax
shl rbx, cl
or rbx, r9
mov ecx, edx
shr r8, cl
shrd rbx, r8, 1
shr r8, 1
mov ecx, eax
shl r11, cl
xor r10d, r10d
mov rdx, r8
mov r8, rbx
mov r9, rsi
xor esi, esi
loc_7F522:
or rdx, r11
or r8, rsi
pop rbx
pop r14
jmp short loc_7F53E
loc_7F52D:
mov rdx, r9
mov ecx, eax
shl rdx, cl
xor r10d, r10d
xor r9d, r9d
xor r8d, r8d
loc_7F53E:
bswap r10
bswap r9
bswap r8
bswap rdx
mov [rdi], rdx
mov [rdi+8], r8
mov [rdi+10h], r9
mov [rdi+18h], r10
retn
| void intx_shl(_QWORD *a1, unsigned long long *a2, unsigned int a3)
{
unsigned long long v3; // r9
unsigned long long v4; // r8
char v5; // al
unsigned long long v6; // r11
unsigned long long v7; // r10
unsigned long long v8; // r14
unsigned long long v9; // rsi
unsigned long long v10; // r9
long long v11; // r8
unsigned long long v12; // r11
long long v13; // rdx
unsigned long long v14; // r8
unsigned long long v15; // rdx
char v16; // cl
unsigned long long v17; // rsi
__int128 v18; // rt0
if ( a3 > 0xFF )
{
v7 = 0LL;
v10 = 0LL;
v14 = 0LL;
v15 = 0LL;
}
else
{
v3 = _byteswap_uint64(a2[3]);
v4 = _byteswap_uint64(a2[2]);
v5 = a3;
if ( a3 > 0x7F )
{
v16 = a3 + 0x80;
if ( (unsigned long long)a3 - 128 > 0x3F )
{
v15 = v3 << a3;
v7 = 0LL;
v10 = 0LL;
v14 = 0LL;
}
else
{
v17 = v3 << v16;
v15 = (v4 << v16) | (v3 >> 1 >> ~(_BYTE)a3);
v7 = 0LL;
v10 = 0LL;
v14 = v17;
}
}
else
{
v6 = _byteswap_uint64(a2[1]);
if ( a3 > 0x3F )
{
*(_QWORD *)&v18 = (v3 >> (a3 ^ 0x7F)) | ((2 * v4) << a3);
*((_QWORD *)&v18 + 1) = v4 >> (a3 ^ 0x7F);
v12 = v6 << a3;
v7 = 0LL;
v13 = *((_QWORD *)&v18 + 1) >> 1;
v11 = v18 >> 1;
v10 = v3 << v5;
v9 = 0LL;
}
else
{
v7 = v3 << a3;
v8 = _byteswap_uint64(*a2);
v9 = v6 << a3;
v10 = (v4 << a3) | (v3 >> 1 >> (63 - (unsigned __int8)a3));
v11 = v4 >> (63 - (unsigned __int8)a3) >> 1;
v12 = (v8 << a3) | (v6 >> 1 >> (63 - (unsigned __int8)a3));
v13 = 0LL;
}
v15 = v12 | v13;
v14 = v9 | v11;
}
}
*a1 = _byteswap_uint64(v15);
a1[1] = _byteswap_uint64(v14);
a1[2] = _byteswap_uint64(v10);
a1[3] = _byteswap_uint64(v7);
}
| intx_shl:
CMP EDX,0xff
JA 0x0017f4a6
MOV R8,qword ptr [RSI + 0x10]
MOV R9,qword ptr [RSI + 0x18]
BSWAP R9
BSWAP R8
MOV EAX,EDX
CMP EDX,0x7f
JA 0x0017f4b6
PUSH R14
PUSH RBX
MOV R11,qword ptr [RSI + 0x8]
BSWAP R11
CMP EDX,0x3f
JA 0x0017f4e4
MOV R10,R9
MOV ECX,EAX
SHL R10,CL
MOV RBX,R8
SHL RBX,CL
MOV R14,qword ptr [RSI]
SHR R9,0x1
MOV DL,0x3f
SUB DL,AL
MOV ECX,EDX
SHR R9,CL
SHR R8,CL
BSWAP R14
MOV RSI,R11
MOV ECX,EAX
SHL RSI,CL
SHL R14,CL
SHR R11,0x1
MOV ECX,EDX
SHR R11,CL
OR R9,RBX
SHR R8,0x1
OR R11,R14
XOR EDX,EDX
JMP 0x0017f522
LAB_0017f4a6:
XOR R10D,R10D
XOR R9D,R9D
XOR R8D,R8D
XOR EDX,EDX
JMP 0x0017f53e
LAB_0017f4b6:
LEA RCX,[RAX + -0x80]
CMP RCX,0x3f
JA 0x0017f52d
MOV RSI,R9
SHL RSI,CL
SHL R8,CL
SHR R9,0x1
NOT AL
MOV ECX,EAX
SHR R9,CL
MOV RDX,R9
OR RDX,R8
XOR R10D,R10D
XOR R9D,R9D
MOV R8,RSI
JMP 0x0017f53e
LAB_0017f4e4:
MOV RSI,R9
MOV ECX,EAX
SHL RSI,CL
MOV EDX,EAX
XOR DL,0x7f
MOV ECX,EDX
SHR R9,CL
LEA RBX,[R8 + R8*0x1]
MOV ECX,EAX
SHL RBX,CL
OR RBX,R9
MOV ECX,EDX
SHR R8,CL
SHRD RBX,R8,0x1
SHR R8,0x1
MOV ECX,EAX
SHL R11,CL
XOR R10D,R10D
MOV RDX,R8
MOV R8,RBX
MOV R9,RSI
XOR ESI,ESI
LAB_0017f522:
OR RDX,R11
OR R8,RSI
POP RBX
POP R14
JMP 0x0017f53e
LAB_0017f52d:
MOV RDX,R9
MOV ECX,EAX
SHL RDX,CL
XOR R10D,R10D
XOR R9D,R9D
XOR R8D,R8D
LAB_0017f53e:
BSWAP R10
BSWAP R9
BSWAP R8
BSWAP RDX
MOV qword ptr [RDI],RDX
MOV qword ptr [RDI + 0x8],R8
MOV qword ptr [RDI + 0x10],R9
MOV qword ptr [RDI + 0x18],R10
RET
|
void intx_shl(ulong *param_1,ulong *param_2,uint param_3)
{
byte bVar1;
byte bVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
ulong uVar6;
ulong uVar7;
ulong uVar8;
ulong uVar9;
ulong uVar10;
if (param_3 < 0x100) {
uVar3 = param_2[2];
uVar6 = param_2[3];
uVar7 = uVar6 >> 0x38 | (uVar6 & 0xff000000000000) >> 0x28 | (uVar6 & 0xff0000000000) >> 0x18 |
(uVar6 & 0xff00000000) >> 8 | (uVar6 & 0xff000000) << 8 | (uVar6 & 0xff0000) << 0x18 |
(uVar6 & 0xff00) << 0x28 | uVar6 << 0x38;
uVar5 = uVar3 >> 0x38 | (uVar3 & 0xff000000000000) >> 0x28 | (uVar3 & 0xff0000000000) >> 0x18 |
(uVar3 & 0xff00000000) >> 8 | (uVar3 & 0xff000000) << 8 | (uVar3 & 0xff0000) << 0x18 |
(uVar3 & 0xff00) << 0x28 | uVar3 << 0x38;
bVar1 = (byte)param_3;
if (param_3 < 0x80) {
uVar3 = param_2[1];
uVar10 = uVar3 >> 0x38 | (uVar3 & 0xff000000000000) >> 0x28 | (uVar3 & 0xff0000000000) >> 0x18
| (uVar3 & 0xff00000000) >> 8 | (uVar3 & 0xff000000) << 8 |
(uVar3 & 0xff0000) << 0x18 | (uVar3 & 0xff00) << 0x28 | uVar3 << 0x38;
if (param_3 < 0x40) {
uVar9 = uVar7 << (bVar1 & 0x3f);
uVar3 = *param_2;
bVar2 = 0x3f - bVar1;
uVar4 = uVar10 << (bVar1 & 0x3f);
uVar8 = (uVar7 >> 1) >> (bVar2 & 0x3f) | uVar5 << (bVar1 & 0x3f);
uVar6 = (uVar5 >> (bVar2 & 0x3f)) >> 1;
uVar10 = (uVar10 >> 1) >> (bVar2 & 0x3f) |
(uVar3 >> 0x38 | (uVar3 & 0xff000000000000) >> 0x28 |
(uVar3 & 0xff0000000000) >> 0x18 | (uVar3 & 0xff00000000) >> 8 |
(uVar3 & 0xff000000) << 8 | (uVar3 & 0xff0000) << 0x18 | (uVar3 & 0xff00) << 0x28
| uVar3 << 0x38) << (bVar1 & 0x3f);
uVar3 = 0;
}
else {
uVar8 = uVar7 << (bVar1 & 0x3f);
uVar3 = uVar5 >> ((bVar1 ^ 0x7f) & 0x3f);
uVar6 = (uVar5 * 2 << (bVar1 & 0x3f) | uVar7 >> ((bVar1 ^ 0x7f) & 0x3f)) >> 1 |
uVar3 << 0x3f;
uVar3 = uVar3 >> 1;
uVar10 = uVar10 << (bVar1 & 0x3f);
uVar9 = 0;
uVar4 = 0;
}
uVar3 = uVar3 | uVar10;
uVar6 = uVar6 | uVar4;
}
else if ((ulong)param_3 - 0x80 < 0x40) {
bVar2 = (byte)((ulong)param_3 - 0x80);
uVar6 = uVar7 << (bVar2 & 0x3f);
uVar3 = (uVar7 >> 1) >> (~bVar1 & 0x3f) | uVar5 << (bVar2 & 0x3f);
uVar9 = 0;
uVar8 = 0;
}
else {
uVar3 = uVar7 << (bVar1 & 0x3f);
uVar9 = 0;
uVar8 = 0;
uVar6 = 0;
}
}
else {
uVar9 = 0;
uVar8 = 0;
uVar6 = 0;
uVar3 = 0;
}
*param_1 = uVar3 >> 0x38 | (uVar3 & 0xff000000000000) >> 0x28 | (uVar3 & 0xff0000000000) >> 0x18 |
(uVar3 & 0xff00000000) >> 8 | (uVar3 & 0xff000000) << 8 | (uVar3 & 0xff0000) << 0x18 |
(uVar3 & 0xff00) << 0x28 | uVar3 << 0x38;
param_1[1] = uVar6 >> 0x38 | (uVar6 & 0xff000000000000) >> 0x28 | (uVar6 & 0xff0000000000) >> 0x18
| (uVar6 & 0xff00000000) >> 8 | (uVar6 & 0xff000000) << 8 |
(uVar6 & 0xff0000) << 0x18 | (uVar6 & 0xff00) << 0x28 | uVar6 << 0x38;
param_1[2] = uVar8 >> 0x38 | (uVar8 & 0xff000000000000) >> 0x28 | (uVar8 & 0xff0000000000) >> 0x18
| (uVar8 & 0xff00000000) >> 8 | (uVar8 & 0xff000000) << 8 |
(uVar8 & 0xff0000) << 0x18 | (uVar8 & 0xff00) << 0x28 | uVar8 << 0x38;
param_1[3] = uVar9 >> 0x38 | (uVar9 & 0xff000000000000) >> 0x28 | (uVar9 & 0xff0000000000) >> 0x18
| (uVar9 & 0xff00000000) >> 8 | (uVar9 & 0xff000000) << 8 |
(uVar9 & 0xff0000) << 0x18 | (uVar9 & 0xff00) << 0x28 | uVar9 << 0x38;
return;
}
|
|
3,035 | minja::Value::operator*(minja::Value const&) const | monkey531[P]llama/common/minja.hpp | Value operator*(const Value& rhs) const {
if (is_string() && rhs.is_number_integer()) {
std::ostringstream out;
for (int64_t i = 0, n = rhs.get<int64_t>(); i < n; ++i) {
out << to_str();
}
return out.str();
}
else if (is_number_integer() && rhs.is_number_integer())
return get<int64_t>() * rhs.get<int64_t>();
else
return get<double>() * rhs.get<double>();
} | O0 | cpp | minja::Value::operator*(minja::Value const&) const:
subq $0x238, %rsp # imm = 0x238
movq %rdi, 0x20(%rsp)
movq %rdi, %rax
movq %rax, 0x28(%rsp)
movq %rdi, 0x230(%rsp)
movq %rsi, 0x228(%rsp)
movq %rdx, 0x220(%rsp)
movq 0x228(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x11b240
testb $0x1, %al
jne 0x1443c7
jmp 0x144515
movq 0x220(%rsp), %rdi
callq 0x119b00
testb $0x1, %al
jne 0x1443dd
jmp 0x144515
leaq 0xa8(%rsp), %rdi
callq 0x5c270
movq $0x0, 0xa0(%rsp)
movq 0x220(%rsp), %rdi
callq 0x119b20
movq %rax, 0x18(%rsp)
jmp 0x14440a
movq 0x18(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0xa0(%rsp), %rax
cmpq 0x98(%rsp), %rax
jge 0x1444a4
movq 0x30(%rsp), %rsi
leaq 0x68(%rsp), %rdi
callq 0x143d20
jmp 0x14443a
leaq 0xa8(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x5b570
jmp 0x14444e
leaq 0x68(%rsp), %rdi
callq 0x5c7f8
movq 0xa0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xa0(%rsp)
jmp 0x144417
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x144503
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x5c7f8
jmp 0x144503
leaq 0x48(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x5c6c0
jmp 0x1444b8
movq 0x20(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x1210f0
jmp 0x1444c9
leaq 0x48(%rsp), %rdi
callq 0x5c7f8
leaq 0xa8(%rsp), %rdi
callq 0x5c190
jmp 0x1445b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x5c7f8
leaq 0xa8(%rsp), %rdi
callq 0x5c190
jmp 0x1445c2
movq 0x30(%rsp), %rdi
callq 0x119b00
testb $0x1, %al
jne 0x144525
jmp 0x144576
movq 0x220(%rsp), %rdi
callq 0x119b00
testb $0x1, %al
jne 0x144538
jmp 0x144576
movq 0x30(%rsp), %rdi
callq 0x119b20
movq %rax, 0x10(%rsp)
movq 0x220(%rsp), %rdi
callq 0x119b20
movq 0x20(%rsp), %rdi
movq %rax, %rcx
movq 0x10(%rsp), %rax
imulq %rcx, %rax
movq %rax, 0x40(%rsp)
leaq 0x40(%rsp), %rsi
callq 0x119c30
jmp 0x1445b5
movq 0x30(%rsp), %rdi
callq 0x119c90
movsd %xmm0, 0x8(%rsp)
movq 0x220(%rsp), %rdi
callq 0x119c90
movq 0x20(%rsp), %rdi
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x38(%rsp)
leaq 0x38(%rsp), %rsi
callq 0x119da0
movq 0x28(%rsp), %rax
addq $0x238, %rsp # imm = 0x238
retq
movq 0x90(%rsp), %rdi
callq 0x5bd10
nop
| _ZNK5minja5ValuemlERKS0_:
sub rsp, 238h
mov [rsp+238h+var_218], rdi; int
mov rax, rdi
mov qword ptr [rsp+238h+var_210], rax; __int16
mov [rsp+238h+var_8], rdi
mov [rsp+238h+var_10], rsi
mov [rsp+238h+var_18], rdx
mov rdi, [rsp+238h+var_10]; this
mov [rsp+238h+var_208], rdi; __int64
call _ZNK5minja5Value9is_stringEv; minja::Value::is_string(void)
test al, 1
jnz short loc_1443C7
jmp loc_144515
loc_1443C7:
mov rdi, [rsp+238h+var_18]; this
call _ZNK5minja5Value17is_number_integerEv; minja::Value::is_number_integer(void)
test al, 1
jnz short loc_1443DD
jmp loc_144515
loc_1443DD:
lea rdi, [rsp+238h+var_190]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov [rsp+238h+var_198], 0
mov rdi, [rsp+238h+var_18]
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
mov qword ptr [rsp+238h+var_220], rax; int
jmp short $+2
loc_14440A:
mov rax, qword ptr [rsp+238h+var_220]
mov [rsp+238h+var_1A0], rax
loc_144417:
mov rax, [rsp+238h+var_198]
cmp rax, [rsp+238h+var_1A0]
jge short loc_1444A4
mov rsi, [rsp+238h+var_208]; int
lea rdi, [rsp+238h+var_1D0]; int
call _ZNK5minja5Value6to_strB5cxx11Ev; minja::Value::to_str(void)
jmp short $+2
loc_14443A:
lea rdi, [rsp+238h+var_190]
lea rsi, [rsp+238h+var_1D0]
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
jmp short $+2
loc_14444E:
lea rdi, [rsp+238h+var_1D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rax, [rsp+238h+var_198]
add rax, 1
mov [rsp+238h+var_198], rax
jmp short loc_144417
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
jmp short loc_144503
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
lea rdi, [rsp+arg_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_144503
loc_1444A4:
lea rdi, [rsp+238h+var_1F0]
lea rsi, [rsp+238h+var_190]
call __ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv; std::ostringstream::str(void)
jmp short $+2
loc_1444B8:
mov rdi, [rsp+238h+var_218]
lea rsi, [rsp+238h+var_1F0]
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
jmp short $+2
loc_1444C9:
lea rdi, [rsp+238h+var_1F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+238h+var_190]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
jmp loc_1445B5
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_144503:
lea rdi, [rsp+arg_A0]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
jmp loc_1445C2
loc_144515:
mov rdi, [rsp+238h+var_208]; this
call _ZNK5minja5Value17is_number_integerEv; minja::Value::is_number_integer(void)
test al, 1
jnz short loc_144525
jmp short loc_144576
loc_144525:
mov rdi, [rsp+238h+var_18]; this
call _ZNK5minja5Value17is_number_integerEv; minja::Value::is_number_integer(void)
test al, 1
jnz short loc_144538
jmp short loc_144576
loc_144538:
mov rdi, [rsp+238h+var_208]
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
mov [rsp+238h+var_228], rax
mov rdi, [rsp+238h+var_18]
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
mov rdi, [rsp+238h+var_218]; this
mov rcx, rax
mov rax, [rsp+238h+var_228]
imul rax, rcx
mov [rsp+238h+var_1F8], rax
lea rsi, [rsp+238h+var_1F8]; __int64 *
call _ZN5minja5ValueC2ERKl; minja::Value::Value(long const&)
jmp short loc_1445B5
loc_144576:
mov rdi, [rsp+238h+var_208]
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd [rsp+238h+var_230], xmm0
mov rdi, [rsp+238h+var_18]
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
mov rdi, [rsp+238h+var_218]; this
movaps xmm1, xmm0
movsd xmm0, [rsp+238h+var_230]
mulsd xmm0, xmm1
movsd [rsp+238h+var_200], xmm0
lea rsi, [rsp+238h+var_200]; double *
call _ZN5minja5ValueC2ERKd; minja::Value::Value(double const&)
loc_1445B5:
mov rax, qword ptr [rsp+238h+var_210]
add rsp, 238h
retn
loc_1445C2:
mov rdi, [rsp+arg_88]
call __Unwind_Resume
| minja::Value * minja::Value::operator*(minja::Value *a1, minja::Value *a2, minja::Value *a3, double a4)
{
long long v5; // [rsp+10h] [rbp-228h]
double v6; // [rsp+38h] [rbp-200h] BYREF
long long v7; // [rsp+40h] [rbp-1F8h] BYREF
_BYTE v8[32]; // [rsp+48h] [rbp-1F0h] BYREF
int v9[12]; // [rsp+68h] [rbp-1D0h] BYREF
long long v10; // [rsp+98h] [rbp-1A0h]
long long v11; // [rsp+A0h] [rbp-198h]
_BYTE v12[376]; // [rsp+A8h] [rbp-190h] BYREF
minja::Value *v13; // [rsp+220h] [rbp-18h]
minja::Value *v14; // [rsp+228h] [rbp-10h]
minja::Value *v15; // [rsp+230h] [rbp-8h]
v15 = a1;
v14 = a2;
v13 = a3;
if ( minja::Value::is_string(a2) && (minja::Value::is_number_integer(v13) & 1) != 0 )
{
std::ostringstream::basic_ostringstream(v12);
v11 = 0LL;
v10 = minja::Value::get<long>(v13);
while ( v11 < v10 )
{
minja::Value::to_str[abi:cxx11](v9, a2, a4);
std::operator<<<char>(v12, v9);
std::string::~string(v9);
++v11;
}
std::ostringstream::str(v8, v12);
minja::Value::Value((long long)a1, (long long)v8);
std::string::~string(v8);
std::ostringstream::~ostringstream(v12);
}
else if ( (minja::Value::is_number_integer(a2) & 1) != 0 && (minja::Value::is_number_integer(v13) & 1) != 0 )
{
v5 = minja::Value::get<long>(a2);
v7 = minja::Value::get<long>(v13) * v5;
minja::Value::Value(a1, &v7);
}
else
{
minja::Value::get<double>(a2);
minja::Value::get<double>(v13);
v6 = a4 * a4;
minja::Value::Value(a1, &v6);
}
return a1;
}
| |||
3,036 | minja::Value::operator*(minja::Value const&) const | monkey531[P]llama/common/minja.hpp | Value operator*(const Value& rhs) const {
if (is_string() && rhs.is_number_integer()) {
std::ostringstream out;
for (int64_t i = 0, n = rhs.get<int64_t>(); i < n; ++i) {
out << to_str();
}
return out.str();
}
else if (is_number_integer() && rhs.is_number_integer())
return get<int64_t>() * rhs.get<int64_t>();
else
return get<double>() * rhs.get<double>();
} | O3 | cpp | minja::Value::operator*(minja::Value const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp # imm = 0x1A8
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movb 0x40(%rsi), %al
cmpb $0x3, %al
jne 0x99dff
movb 0x40(%r15), %al
addb $-0x5, %al
cmpb $0x1, %al
ja 0x99e56
leaq 0x30(%rsp), %rdi
callq 0x1bd60
movq %r15, %rdi
callq 0x88f38
movq %rax, %r15
testq %rax, %rax
jle 0x99da5
leaq 0x18(%rsp), %rbp
leaq 0x8(%rsp), %r12
leaq 0x30(%rsp), %r13
movq %r12, %rdi
movq %r14, %rsi
callq 0x997ac
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r13, %rdi
callq 0x1bb70
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x99da0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1ba20
decq %r15
jne 0x99d6c
leaq 0x38(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x1bfd0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x8cf0a
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x99ddc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1ba20
movq 0x9418d(%rip), %rsi # 0x12df70
leaq 0x30(%rsp), %rdi
callq 0x1b560
leaq 0xa0(%rsp), %rdi
callq 0x1b2f0
jmp 0x99ea1
addb $-0x5, %al
cmpb $0x1, %al
ja 0x99e56
movb 0x40(%r15), %al
addb $-0x5, %al
cmpb $0x1, %al
ja 0x99e56
movq %r14, %rdi
callq 0x88f38
movq %rax, %r14
movq %r15, %rdi
callq 0x88f38
imulq %rax, %r14
leaq 0x40(%rbx), %r15
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
movupd %xmm0, 0x10(%rbx)
movupd %xmm0, 0x20(%rbx)
movupd %xmm0, 0x30(%rbx)
movupd %xmm0, 0x40(%rbx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x63134
movq %r15, %rdi
jmp 0x99e97
movq %r14, %rdi
callq 0x89082
movsd %xmm0, 0x28(%rsp)
movq %r15, %rdi
callq 0x89082
mulsd 0x28(%rsp), %xmm0
leaq 0x40(%rbx), %r14
xorps %xmm1, %xmm1
movups %xmm1, (%rbx)
movups %xmm1, 0x10(%rbx)
movups %xmm1, 0x20(%rbx)
movups %xmm1, 0x30(%rbx)
movups %xmm1, 0x40(%rbx)
movq %r14, %rdi
callq 0x626fc
movq %r14, %rdi
movl $0x1, %esi
callq 0x5b4ca
movq %rbx, %rax
addq $0x1a8, %rsp # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x99edf
jmp 0x99eec
jmp 0x99ecd
jmp 0x99ecd
movq %rax, %rbx
jmp 0x99eec
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x99eec
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1ba20
movq 0x9407d(%rip), %rsi # 0x12df70
leaq 0x30(%rsp), %rdi
callq 0x1b560
leaq 0xa0(%rsp), %rdi
callq 0x1b2f0
movq %rbx, %rdi
callq 0x1c1e0
| _ZNK5minja5ValuemlERKS0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1A8h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov al, [rsi+40h]
cmp al, 3
jnz loc_99DFF
mov al, [r15+40h]
add al, 0FBh
cmp al, 1
ja loc_99E56
lea rdi, [rsp+1D8h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov rdi, r15
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
mov r15, rax
test rax, rax
jle short loc_99DA5
lea rbp, [rsp+1D8h+var_1C0]
lea r12, [rsp+1D8h+var_1D0]
lea r13, [rsp+1D8h+var_1A8]
loc_99D6C:
mov rdi, r12
mov rsi, r14
call _ZNK5minja5Value6to_strB5cxx11Ev; minja::Value::to_str(void)
mov rsi, [rsp+1D8h+var_1D0]
mov rdx, [rsp+1D8h+var_1C8]
mov rdi, r13
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+1D8h+var_1D0]; void *
cmp rdi, rbp
jz short loc_99DA0
mov rsi, [rsp+1D8h+var_1C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_99DA0:
dec r15
jnz short loc_99D6C
loc_99DA5:
lea rsi, [rsp+1D8h+var_1A0]
lea rdi, [rsp+1D8h+var_1D0]
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
lea rsi, [rsp+1D8h+var_1D0]
mov rdi, rbx
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
lea rax, [rsp+1D8h+var_1C0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_99DDC
mov rsi, [rsp+1D8h+var_1C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_99DDC:
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+1D8h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+1D8h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
jmp loc_99EA1
loc_99DFF:
add al, 0FBh
cmp al, 1
ja short loc_99E56
mov al, [r15+40h]
add al, 0FBh
cmp al, 1
ja short loc_99E56
mov rdi, r14
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
mov r14, rax
mov rdi, r15
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
imul r14, rax
lea r15, [rbx+40h]
xorpd xmm0, xmm0
movupd xmmword ptr [rbx], xmm0
movupd xmmword ptr [rbx+10h], xmm0
movupd xmmword ptr [rbx+20h], xmm0
movupd xmmword ptr [rbx+30h], xmm0
movupd xmmword ptr [rbx+40h], xmm0
mov rdi, r15
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t)
mov rdi, r15
jmp short loc_99E97
loc_99E56:
mov rdi, r14
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd [rsp+1D8h+var_1B0], xmm0
mov rdi, r15
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
mulsd xmm0, [rsp+1D8h+var_1B0]
lea r14, [rbx+40h]
xorps xmm1, xmm1
movups xmmword ptr [rbx], xmm1
movups xmmword ptr [rbx+10h], xmm1
movups xmmword ptr [rbx+20h], xmm1
movups xmmword ptr [rbx+30h], xmm1
movups xmmword ptr [rbx+40h], xmm1
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t)
mov rdi, r14
loc_99E97:
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)
loc_99EA1:
mov rax, rbx
add rsp, 1A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]
cmp rdi, rax
jnz short loc_99EDF
jmp short loc_99EEC
jmp short loc_99ECD
jmp short $+2
loc_99ECD:
mov rbx, rax
jmp short loc_99EEC
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, rbp
jz short loc_99EEC
loc_99EDF:
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_99EEC:
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_28]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+arg_98]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
| long long minja::Value::operator*(long long a1, long long a2, long long a3)
{
char v5; // al
long long v6; // r15
long long v7; // r14
long long v8; // rax
char *v9; // rdi
double v10; // xmm0_8
void *v12[2]; // [rsp+8h] [rbp-1D0h] BYREF
_QWORD v13[2]; // [rsp+18h] [rbp-1C0h] BYREF
double v14; // [rsp+28h] [rbp-1B0h]
_BYTE v15[8]; // [rsp+30h] [rbp-1A8h] BYREF
_BYTE v16[104]; // [rsp+38h] [rbp-1A0h] BYREF
_BYTE v17[312]; // [rsp+A0h] [rbp-138h] BYREF
v5 = *(_BYTE *)(a2 + 64);
if ( v5 != 3 )
{
if ( (unsigned __int8)(v5 - 5) <= 1u && (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) <= 1u )
{
v7 = minja::Value::get<long>(a2);
v8 = minja::Value::get<long>(a3);
*(_OWORD *)a1 = 0LL;
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)(a1 + 32) = 0LL;
*(_OWORD *)(a1 + 48) = 0LL;
*(_OWORD *)(a1 + 64) = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)(a1 + 64),
v8 * v7);
v9 = (char *)(a1 + 64);
LABEL_14:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v9);
return a1;
}
LABEL_13:
v14 = minja::Value::get<double>(a2);
v10 = minja::Value::get<double>(a3) * v14;
*(_OWORD *)a1 = 0LL;
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)(a1 + 32) = 0LL;
*(_OWORD *)(a1 + 48) = 0LL;
*(_OWORD *)(a1 + 64) = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)(a1 + 64),
v10);
v9 = (char *)(a1 + 64);
goto LABEL_14;
}
if ( (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) > 1u )
goto LABEL_13;
std::ostringstream::basic_ostringstream(v15);
v6 = minja::Value::get<long>(a3);
if ( v6 > 0 )
{
do
{
minja::Value::to_str[abi:cxx11](v12, a2);
std::__ostream_insert<char,std::char_traits<char>>(v15, v12[0], v12[1]);
if ( v12[0] != v13 )
operator delete(v12[0], v13[0] + 1LL);
--v6;
}
while ( v6 );
}
std::stringbuf::str(v12, v16);
minja::Value::Value(a1, (long long)v12);
if ( v12[0] != v13 )
operator delete(v12[0], v13[0] + 1LL);
std::ostringstream::~ostringstream(v15, &`VTT for'std::ostringstream);
std::ios_base::~ios_base((std::ios_base *)v17);
return a1;
}
| operator*:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1a8
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV AL,byte ptr [RSI + 0x40]
CMP AL,0x3
JNZ 0x00199dff
MOV AL,byte ptr [R15 + 0x40]
ADD AL,0xfb
CMP AL,0x1
JA 0x00199e56
LEA RDI,[RSP + 0x30]
CALL 0x0011bd60
LAB_00199d4d:
MOV RDI,R15
CALL 0x00188f38
MOV R15,RAX
TEST RAX,RAX
JLE 0x00199da5
LEA RBP,[RSP + 0x18]
LEA R12,[RSP + 0x8]
LEA R13,[RSP + 0x30]
LAB_00199d6c:
MOV RDI,R12
MOV RSI,R14
CALL 0x001997ac
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_00199d81:
MOV RDI,R13
CALL 0x0011bb70
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBP
JZ 0x00199da0
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011ba20
LAB_00199da0:
DEC R15
JNZ 0x00199d6c
LAB_00199da5:
LEA RSI,[RSP + 0x38]
LAB_00199daa:
LEA RDI,[RSP + 0x8]
CALL 0x0011bfd0
LAB_00199db4:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x0018cf0a
LAB_00199dc1:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00199ddc
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011ba20
LAB_00199ddc:
MOV RSI,qword ptr [0x0022df70]
LEA RDI,[RSP + 0x30]
CALL 0x0011b560
LEA RDI,[RSP + 0xa0]
CALL 0x0011b2f0
JMP 0x00199ea1
LAB_00199dff:
ADD AL,0xfb
CMP AL,0x1
JA 0x00199e56
MOV AL,byte ptr [R15 + 0x40]
ADD AL,0xfb
CMP AL,0x1
JA 0x00199e56
MOV RDI,R14
CALL 0x00188f38
MOV R14,RAX
MOV RDI,R15
CALL 0x00188f38
IMUL R14,RAX
LEA R15,[RBX + 0x40]
XORPD XMM0,XMM0
MOVUPD xmmword ptr [RBX],XMM0
MOVUPD xmmword ptr [RBX + 0x10],XMM0
MOVUPD xmmword ptr [RBX + 0x20],XMM0
MOVUPD xmmword ptr [RBX + 0x30],XMM0
MOVUPD xmmword ptr [RBX + 0x40],XMM0
MOV RDI,R15
MOV RSI,R14
CALL 0x00163134
MOV RDI,R15
JMP 0x00199e97
LAB_00199e56:
MOV RDI,R14
CALL 0x00189082
MOVSD qword ptr [RSP + 0x28],XMM0
MOV RDI,R15
CALL 0x00189082
MULSD XMM0,qword ptr [RSP + 0x28]
LEA R14,[RBX + 0x40]
XORPS XMM1,XMM1
MOVUPS xmmword ptr [RBX],XMM1
MOVUPS xmmword ptr [RBX + 0x10],XMM1
MOVUPS xmmword ptr [RBX + 0x20],XMM1
MOVUPS xmmword ptr [RBX + 0x30],XMM1
MOVUPS xmmword ptr [RBX + 0x40],XMM1
MOV RDI,R14
CALL 0x001626fc
MOV RDI,R14
LAB_00199e97:
MOV ESI,0x1
CALL 0x0015b4ca
LAB_00199ea1:
MOV RAX,RBX
ADD RSP,0x1a8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */
Value * __thiscall minja::Value::operator*(Value *this,Value *param_1)
{
long lVar1;
long lVar2;
Value *in_RDX;
double dVar3;
long *local_1d0;
long local_1c8;
long local_1c0 [2];
double local_1b0;
ostringstream local_1a8 [112];
ios_base local_138 [264];
if (param_1[0x40] == (Value)0x3) {
if ((byte)((char)in_RDX[0x40] - 5U) < 2) {
std::__cxx11::ostringstream::ostringstream(local_1a8);
/* try { // try from 00199d4d to 00199d54 has its CatchHandler @ 00199ecb */
lVar1 = get<long>(in_RDX);
if (0 < lVar1) {
do {
/* try { // try from 00199d6c to 00199d76 has its CatchHandler @ 00199ecd */
to_str_abi_cxx11_();
/* try { // try from 00199d81 to 00199d88 has its CatchHandler @ 00199ed2 */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,(char *)local_1d0,local_1c8);
if (local_1d0 != local_1c0) {
operator_delete(local_1d0,local_1c0[0] + 1);
}
lVar1 = lVar1 + -1;
} while (lVar1 != 0);
}
/* try { // try from 00199daa to 00199db3 has its CatchHandler @ 00199ec9 */
std::__cxx11::stringbuf::str();
/* try { // try from 00199db4 to 00199dc0 has its CatchHandler @ 00199eb6 */
Value(this,(string *)&local_1d0);
if (local_1d0 != local_1c0) {
operator_delete(local_1d0,local_1c0[0] + 1);
}
std::__cxx11::ostringstream::~ostringstream(local_1a8);
std::ios_base::~ios_base(local_138);
return this;
}
}
else if (((byte)((char)param_1[0x40] - 5U) < 2) && ((byte)((char)in_RDX[0x40] - 5U) < 2)) {
lVar1 = get<long>(param_1);
lVar2 = get<long>(in_RDX);
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(this + 0x40,lVar1 * lVar2);
goto LAB_00199e97;
}
local_1b0 = get<double>(param_1);
dVar3 = get<double>(in_RDX);
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(dVar3 * local_1b0,this + 0x40);
LAB_00199e97:
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant((bool)((char)this + '@'));
return this;
}
|
|
3,037 | mi_ft_store | eloqsql/storage/myisam/ft_update.c | static int _mi_ft_store(MI_INFO *info, uint keynr, uchar *keybuf,
FT_WORD *wlist, my_off_t filepos)
{
uint key_length;
DBUG_ENTER("_mi_ft_store");
for (; wlist->pos; wlist++)
{
key_length=_ft_make_key(info,keynr,keybuf,wlist,filepos);
if (_mi_ck_write(info,keynr,(uchar*) keybuf,key_length))
DBUG_RETURN(1);
}
DBUG_RETURN(0);
} | O0 | c | mi_ft_store:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x28(%rbp), %rax
cmpq $0x0, (%rax)
je 0xa47d3
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0xa4580
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
movl -0x34(%rbp), %ecx
callq 0xc6f40
cmpl $0x0, %eax
je 0xa47c3
jmp 0xa47ba
movl $0x1, -0x4(%rbp)
jmp 0xa47dc
jmp 0xa47c5
movq -0x28(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x28(%rbp)
jmp 0xa477b
jmp 0xa47d5
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _mi_ft_store:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
loc_A477B:
mov rax, [rbp+var_28]
cmp qword ptr [rax], 0
jz short loc_A47D3
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
mov r8, [rbp+var_30]
call _ft_make_key
mov [rbp+var_34], eax
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
mov rdx, [rbp+var_20]
mov ecx, [rbp+var_34]
call _mi_ck_write
cmp eax, 0
jz short loc_A47C3
jmp short $+2
loc_A47BA:
mov [rbp+var_4], 1
jmp short loc_A47DC
loc_A47C3:
jmp short $+2
loc_A47C5:
mov rax, [rbp+var_28]
add rax, 18h
mov [rbp+var_28], rax
jmp short loc_A477B
loc_A47D3:
jmp short $+2
loc_A47D5:
mov [rbp+var_4], 0
loc_A47DC:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long mi_ft_store(long long a1, unsigned int a2, long long a3, _QWORD *a4, long long a5)
{
unsigned int key; // [rsp+Ch] [rbp-34h]
while ( *a4 )
{
key = ft_make_key(a1, a2, a3, (long long)a4, a5);
if ( (unsigned int)mi_ck_write(a1, a2, a3, key) )
return 1;
a4 += 3;
}
return 0;
}
| _mi_ft_store:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
LAB_001a477b:
MOV RAX,qword ptr [RBP + -0x28]
CMP qword ptr [RAX],0x0
JZ 0x001a47d3
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8,qword ptr [RBP + -0x30]
CALL 0x001a4580
MOV dword ptr [RBP + -0x34],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV RDX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x34]
CALL 0x001c6f40
CMP EAX,0x0
JZ 0x001a47c3
JMP 0x001a47ba
LAB_001a47ba:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001a47dc
LAB_001a47c3:
JMP 0x001a47c5
LAB_001a47c5:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x18
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001a477b
LAB_001a47d3:
JMP 0x001a47d5
LAB_001a47d5:
MOV dword ptr [RBP + -0x4],0x0
LAB_001a47dc:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4
_mi_ft_store(int8 param_1,int4 param_2,int8 param_3,long *param_4,
int8 param_5)
{
int4 uVar1;
int iVar2;
long *local_30;
local_30 = param_4;
while( true ) {
if (*local_30 == 0) {
return 0;
}
uVar1 = _ft_make_key(param_1,param_2,param_3,local_30,param_5);
iVar2 = _mi_ck_write(param_1,param_2,param_3,uVar1);
if (iVar2 != 0) break;
local_30 = local_30 + 3;
}
return 1;
}
|
|
3,038 | binding_system_analyze_lambda_captures | tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c | bool binding_system_analyze_lambda_captures(BindingSystem* system, const AstNode* lambda, uint64_t lambda_id) {
assert(system != NULL);
assert(lambda != NULL);
assert(lambda->type == AST_LAMBDA);
return analyze_lambda_captures_internal(system, lambda, lambda_id);
} | O1 | c | binding_system_analyze_lambda_captures:
pushq %rax
testq %rdi, %rdi
je 0x1691b
testq %rsi, %rsi
je 0x1693a
cmpl $0x8, (%rsi)
jne 0x16959
popq %rax
jmp 0x16978
leaq 0x5b20(%rip), %rdi # 0x1c442
leaq 0xbbd3(%rip), %rsi # 0x224fc
leaq 0xbc7f(%rip), %rcx # 0x225af
movl $0x2b, %edx
callq 0x2180
leaq 0xbcc7(%rip), %rdi # 0x22608
leaq 0xbbb4(%rip), %rsi # 0x224fc
leaq 0xbc60(%rip), %rcx # 0x225af
movl $0x2c, %edx
callq 0x2180
leaq 0xbcb7(%rip), %rdi # 0x22617
leaq 0xbb95(%rip), %rsi # 0x224fc
leaq 0xbc41(%rip), %rcx # 0x225af
movl $0x2d, %edx
callq 0x2180
| binding_system_analyze_lambda_captures:
push rax
test rdi, rdi
jz short loc_1691B
test rsi, rsi
jz short loc_1693A
cmp dword ptr [rsi], 8
jnz short loc_16959
pop rax
jmp short analyze_lambda_captures_internal
loc_1691B:
lea rdi, aSystemNull; "system != NULL"
lea rsi, aWorkspaceLlm4b_24; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolBindingSys_8; "_Bool binding_system_analyze_lambda_cap"...
mov edx, 2Bh ; '+'
call ___assert_fail
loc_1693A:
lea rdi, aLambdaNull; "lambda != NULL"
lea rsi, aWorkspaceLlm4b_24; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolBindingSys_8; "_Bool binding_system_analyze_lambda_cap"...
mov edx, 2Ch ; ','
call ___assert_fail
loc_16959:
lea rdi, aLambdaTypeAstL; "lambda->type == AST_LAMBDA"
lea rsi, aWorkspaceLlm4b_24; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolBindingSys_8; "_Bool binding_system_analyze_lambda_cap"...
mov edx, 2Dh ; '-'
call ___assert_fail
| long long binding_system_analyze_lambda_captures(long long a1, _DWORD *a2, long long a3)
{
if ( !a1 )
__assert_fail(
"system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c",
43LL,
"_Bool binding_system_analyze_lambda_captures(BindingSystem *, const AstNode *, uint64_t)");
if ( !a2 )
__assert_fail(
"lambda != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c",
44LL,
"_Bool binding_system_analyze_lambda_captures(BindingSystem *, const AstNode *, uint64_t)");
if ( *a2 != 8 )
__assert_fail(
"lambda->type == AST_LAMBDA",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c",
45LL,
"_Bool binding_system_analyze_lambda_captures(BindingSystem *, const AstNode *, uint64_t)");
return analyze_lambda_captures_internal(a1, a2, a3);
}
| binding_system_analyze_lambda_captures:
PUSH RAX
TEST RDI,RDI
JZ 0x0011691b
TEST RSI,RSI
JZ 0x0011693a
CMP dword ptr [RSI],0x8
JNZ 0x00116959
POP RAX
JMP 0x00116978
LAB_0011691b:
LEA RDI,[0x11c442]
LEA RSI,[0x1224fc]
LEA RCX,[0x1225af]
MOV EDX,0x2b
CALL 0x00102180
LAB_0011693a:
LEA RDI,[0x122608]
LEA RSI,[0x1224fc]
LEA RCX,[0x1225af]
MOV EDX,0x2c
CALL 0x00102180
LAB_00116959:
LEA RDI,[0x122617]
LEA RSI,[0x1224fc]
LEA RCX,[0x1225af]
MOV EDX,0x2d
CALL 0x00102180
|
void binding_system_analyze_lambda_captures(long param_1,int *param_2)
{
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c"
,0x2b,
"_Bool binding_system_analyze_lambda_captures(BindingSystem *, const AstNode *, uint64_t)"
);
}
if (param_2 != (int *)0x0) {
if (*param_2 == 8) {
analyze_lambda_captures_internal();
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("lambda->type == AST_LAMBDA",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c"
,0x2d,
"_Bool binding_system_analyze_lambda_captures(BindingSystem *, const AstNode *, uint64_t)"
);
}
/* WARNING: Subroutine does not return */
__assert_fail("lambda != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c"
,0x2c,
"_Bool binding_system_analyze_lambda_captures(BindingSystem *, const AstNode *, uint64_t)"
);
}
|
|
3,039 | binding_system_analyze_lambda_captures | tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c | bool binding_system_analyze_lambda_captures(BindingSystem* system, const AstNode* lambda, uint64_t lambda_id) {
assert(system != NULL);
assert(lambda != NULL);
assert(lambda->type == AST_LAMBDA);
return analyze_lambda_captures_internal(system, lambda, lambda_id);
} | O3 | c | binding_system_analyze_lambda_captures:
pushq %rax
testq %rdi, %rdi
je 0x15e37
testq %rsi, %rsi
je 0x15e56
cmpl $0x8, (%rsi)
jne 0x15e75
movl $0x8, %esi
popq %rax
jmp 0x15e94
leaq 0x55f3(%rip), %rdi # 0x1b431
leaq 0xb6d3(%rip), %rsi # 0x21518
leaq 0xb77f(%rip), %rcx # 0x215cb
movl $0x2b, %edx
callq 0x2180
leaq 0xb7c7(%rip), %rdi # 0x21624
leaq 0xb6b4(%rip), %rsi # 0x21518
leaq 0xb760(%rip), %rcx # 0x215cb
movl $0x2c, %edx
callq 0x2180
leaq 0xb7b7(%rip), %rdi # 0x21633
leaq 0xb695(%rip), %rsi # 0x21518
leaq 0xb741(%rip), %rcx # 0x215cb
movl $0x2d, %edx
callq 0x2180
| binding_system_analyze_lambda_captures:
push rax
test rdi, rdi
jz short loc_15E37
test rsi, rsi
jz short loc_15E56
cmp dword ptr [rsi], 8
jnz short loc_15E75
mov esi, 8
pop rax
jmp short analyze_lambda_captures_internal
loc_15E37:
lea rdi, aSystemNull; "system != NULL"
lea rsi, aWorkspaceLlm4b_24; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolBindingSys_8; "_Bool binding_system_analyze_lambda_cap"...
mov edx, 2Bh ; '+'
call ___assert_fail
loc_15E56:
lea rdi, aLambdaNull; "lambda != NULL"
lea rsi, aWorkspaceLlm4b_24; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolBindingSys_8; "_Bool binding_system_analyze_lambda_cap"...
mov edx, 2Ch ; ','
call ___assert_fail
loc_15E75:
lea rdi, aLambdaTypeAstL; "lambda->type == AST_LAMBDA"
lea rsi, aWorkspaceLlm4b_24; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolBindingSys_8; "_Bool binding_system_analyze_lambda_cap"...
mov edx, 2Dh ; '-'
call ___assert_fail
| long long binding_system_analyze_lambda_captures(long long a1, _DWORD *a2, long long a3)
{
if ( !a1 )
__assert_fail(
"system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c",
43LL,
"_Bool binding_system_analyze_lambda_captures(BindingSystem *, const AstNode *, uint64_t)");
if ( !a2 )
__assert_fail(
"lambda != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c",
44LL,
"_Bool binding_system_analyze_lambda_captures(BindingSystem *, const AstNode *, uint64_t)");
if ( *a2 != 8 )
__assert_fail(
"lambda->type == AST_LAMBDA",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c",
45LL,
"_Bool binding_system_analyze_lambda_captures(BindingSystem *, const AstNode *, uint64_t)");
return analyze_lambda_captures_internal(a1, 8LL, a3);
}
| binding_system_analyze_lambda_captures:
PUSH RAX
TEST RDI,RDI
JZ 0x00115e37
TEST RSI,RSI
JZ 0x00115e56
CMP dword ptr [RSI],0x8
JNZ 0x00115e75
MOV ESI,0x8
POP RAX
JMP 0x00115e94
LAB_00115e37:
LEA RDI,[0x11b431]
LEA RSI,[0x121518]
LEA RCX,[0x1215cb]
MOV EDX,0x2b
CALL 0x00102180
LAB_00115e56:
LEA RDI,[0x121624]
LEA RSI,[0x121518]
LEA RCX,[0x1215cb]
MOV EDX,0x2c
CALL 0x00102180
LAB_00115e75:
LEA RDI,[0x121633]
LEA RSI,[0x121518]
LEA RCX,[0x1215cb]
MOV EDX,0x2d
CALL 0x00102180
|
void binding_system_analyze_lambda_captures(long param_1,int *param_2)
{
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c"
,0x2b,
"_Bool binding_system_analyze_lambda_captures(BindingSystem *, const AstNode *, uint64_t)"
);
}
if (param_2 != (int *)0x0) {
if (*param_2 == 8) {
analyze_lambda_captures_internal(param_1,8);
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("lambda->type == AST_LAMBDA",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c"
,0x2d,
"_Bool binding_system_analyze_lambda_captures(BindingSystem *, const AstNode *, uint64_t)"
);
}
/* WARNING: Subroutine does not return */
__assert_fail("lambda != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/analysis/binding_analysis.c"
,0x2c,
"_Bool binding_system_analyze_lambda_captures(BindingSystem *, const AstNode *, uint64_t)"
);
}
|
|
3,040 | my_open_parent_dir_nosymlinks | eloqsql/mysys/my_symlink.c | const char *my_open_parent_dir_nosymlinks(const char *pathname, int *pdfd)
{
char buf[FN_REFLEN + 1];
char *s= buf, *e= buf+1, *end= strnmov(buf, pathname, sizeof(buf));
int fd, dfd= -1;
if (*end)
{
errno= ENAMETOOLONG;
return NULL;
}
if (*s != '/') /* not an absolute path */
{
errno= ENOENT;
return NULL;
}
for (;;)
{
if (*e == '/') /* '//' in the path */
{
errno= ENOENT;
goto err;
}
while (*e && *e != '/')
e++;
*e= 0;
if (!memcmp(s, ".", 2) || !memcmp(s, "..", 3))
{
errno= ENOENT;
goto err;
}
if (++e >= end)
{
*pdfd= dfd;
return pathname + (s - buf);
}
fd = openat(dfd, s, O_NOFOLLOW | O_PATH | O_CLOEXEC);
if (fd < 0)
goto err;
if (dfd >= 0)
close(dfd);
dfd= fd;
s= e;
}
err:
if (dfd >= 0)
close(dfd);
return NULL;
} | O3 | c | my_open_parent_dir_nosymlinks:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp # imm = 0x228
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq -0x240(%rbp), %r15
movl $0x201, %edx # imm = 0x201
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5a754
cmpb $0x0, (%rax)
je 0x2c127
callq 0x24060
movl $0x24, (%rax)
jmp 0x2c1fe
cmpb $0x2f, -0x240(%rbp)
jne 0x2c1d3
movq %rax, %r12
movq %r14, -0x248(%rbp)
movb -0x23f(%rbp), %al
movl $0xffffffff, %r13d # imm = 0xFFFFFFFF
cmpb $0x2f, %al
je 0x2c1e3
leaq -0x23f(%rbp), %rcx
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movq %r15, %rsi
incq %rcx
movq %rcx, %r15
testb %al, %al
je 0x2c17c
movzbl %al, %eax
cmpl $0x2f, %eax
je 0x2c17c
movb (%r15), %al
incq %r15
jmp 0x2c168
movb $0x0, -0x1(%r15)
cmpw $0x2e, (%rsi)
je 0x2c1e0
movzwl (%rsi), %eax
xorl $0x2e2e, %eax # imm = 0x2E2E
movzbl 0x2(%rsi), %ecx
orw %ax, %cx
je 0x2c1e0
cmpq %r12, %r15
jae 0x2c224
movl %r14d, %edi
movl $0x2a0000, %edx # imm = 0x2A0000
xorl %eax, %eax
callq 0x242c0
testl %eax, %eax
js 0x2c1f1
movl %eax, %r13d
testl %r14d, %r14d
js 0x2c1c4
movl %r14d, %edi
callq 0x245b0
movb (%r15), %al
movl %r13d, %r14d
movq %r15, %rcx
cmpb $0x2f, %al
jne 0x2c15f
jmp 0x2c1e3
callq 0x24060
movl $0x2, (%rax)
jmp 0x2c1fe
movl %r14d, %r13d
callq 0x24060
movl $0x2, (%rax)
movl %r13d, %r14d
testl %r14d, %r14d
js 0x2c1fe
movl %r14d, %edi
callq 0x245b0
xorl %ebx, %ebx
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x2c23d
movq %rbx, %rax
addq $0x228, %rsp # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x248(%rbp), %rax
movl %r14d, (%rax)
leaq -0x240(%rbp), %rax
subq %rax, %rsi
addq %rsi, %rbx
jmp 0x2c200
callq 0x24320
nop
| my_open_parent_dir_nosymlinks:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 228h
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea r15, [rbp+var_240]
mov edx, 201h
mov rdi, r15
mov rsi, rbx
call strnmov
cmp byte ptr [rax], 0
jz short loc_2C127
call ___errno_location
mov dword ptr [rax], 24h ; '$'
jmp loc_2C1FE
loc_2C127:
cmp [rbp+var_240], 2Fh ; '/'
jnz loc_2C1D3
mov r12, rax
mov [rbp+var_248], r14
mov al, [rbp+var_23F]
mov r13d, 0FFFFFFFFh
cmp al, 2Fh ; '/'
jz loc_2C1E3
lea rcx, [rbp+var_23F]
mov r14d, 0FFFFFFFFh
loc_2C15F:
mov rsi, r15
inc rcx
mov r15, rcx
loc_2C168:
test al, al
jz short loc_2C17C
movzx eax, al
cmp eax, 2Fh ; '/'
jz short loc_2C17C
mov al, [r15]
inc r15
jmp short loc_2C168
loc_2C17C:
mov byte ptr [r15-1], 0
cmp word ptr [rsi], 2Eh ; '.'
jz short loc_2C1E0
movzx eax, word ptr [rsi]
xor eax, 2E2Eh
movzx ecx, byte ptr [rsi+2]
or cx, ax
jz short loc_2C1E0
cmp r15, r12
jnb loc_2C224
mov edi, r14d
mov edx, offset unk_2A0000
xor eax, eax
call _openat64
test eax, eax
js short loc_2C1F1
mov r13d, eax
test r14d, r14d
js short loc_2C1C4
mov edi, r14d
call _close
loc_2C1C4:
mov al, [r15]
mov r14d, r13d
mov rcx, r15
cmp al, 2Fh ; '/'
jnz short loc_2C15F
jmp short loc_2C1E3
loc_2C1D3:
call ___errno_location
mov dword ptr [rax], 2
jmp short loc_2C1FE
loc_2C1E0:
mov r13d, r14d
loc_2C1E3:
call ___errno_location
mov dword ptr [rax], 2
mov r14d, r13d
loc_2C1F1:
test r14d, r14d
js short loc_2C1FE
mov edi, r14d
call _close
loc_2C1FE:
xor ebx, ebx
loc_2C200:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_2C23D
mov rax, rbx
add rsp, 228h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2C224:
mov rax, [rbp+var_248]
mov [rax], r14d
lea rax, [rbp+var_240]
sub rsi, rax
add rbx, rsi
jmp short loc_2C200
loc_2C23D:
call ___stack_chk_fail
| long long my_open_parent_dir_nosymlinks(long long a1, unsigned int *a2)
{
char *v3; // r15
char *v4; // rdi
char *v5; // rax
char *v6; // r12
char v7; // al
int v8; // r13d
char *v9; // rcx
unsigned int v10; // r14d
char *v11; // rsi
long long v12; // rcx
int v13; // eax
unsigned int *v16; // [rsp+8h] [rbp-248h]
char v17; // [rsp+10h] [rbp-240h] BYREF
char v18; // [rsp+11h] [rbp-23Fh] BYREF
unsigned long long v19; // [rsp+220h] [rbp-30h]
v19 = __readfsqword(0x28u);
v3 = &v17;
v4 = &v17;
v5 = (char *)strnmov(&v17, a1, 513LL);
if ( *v5 )
{
*(_DWORD *)__errno_location(&v17) = 36;
return 0LL;
}
if ( v17 != 47 )
{
*(_DWORD *)__errno_location(&v17) = 2;
return 0LL;
}
v6 = v5;
v16 = a2;
v7 = v18;
v8 = -1;
if ( v18 == 47 )
{
LABEL_20:
*(_DWORD *)__errno_location(v4) = 2;
v10 = v8;
LABEL_21:
if ( (v10 & 0x80000000) == 0 )
close(v10);
return 0LL;
}
v9 = &v18;
v10 = -1;
while ( 1 )
{
v11 = v3;
v3 = v9 + 1;
while ( v7 && v7 != 47 )
v7 = *v3++;
*(v3 - 1) = 0;
if ( *(_WORD *)v11 == 46 || (v12 = (unsigned __int8)v11[2], LOWORD(v12) = *(_WORD *)v11 ^ 0x2E2E | v12, !(_WORD)v12) )
{
v8 = v10;
goto LABEL_20;
}
if ( v3 >= v6 )
break;
v4 = (char *)v10;
v13 = openat64(v10, v11, &unk_2A0000, v12);
if ( v13 < 0 )
goto LABEL_21;
v8 = v13;
if ( (v10 & 0x80000000) == 0 )
{
v4 = (char *)v10;
close(v10);
}
v7 = *v3;
v10 = v8;
v9 = v3;
if ( *v3 == 47 )
goto LABEL_20;
}
*v16 = v10;
return v11 - &v17 + a1;
}
| my_open_parent_dir_nosymlinks:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x228
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA R15,[RBP + -0x240]
MOV EDX,0x201
MOV RDI,R15
MOV RSI,RBX
CALL 0x0015a754
CMP byte ptr [RAX],0x0
JZ 0x0012c127
CALL 0x00124060
MOV dword ptr [RAX],0x24
JMP 0x0012c1fe
LAB_0012c127:
CMP byte ptr [RBP + -0x240],0x2f
JNZ 0x0012c1d3
MOV R12,RAX
MOV qword ptr [RBP + -0x248],R14
MOV AL,byte ptr [RBP + -0x23f]
MOV R13D,0xffffffff
CMP AL,0x2f
JZ 0x0012c1e3
LEA RCX,[RBP + -0x23f]
MOV R14D,0xffffffff
LAB_0012c15f:
MOV RSI,R15
INC RCX
MOV R15,RCX
LAB_0012c168:
TEST AL,AL
JZ 0x0012c17c
MOVZX EAX,AL
CMP EAX,0x2f
JZ 0x0012c17c
MOV AL,byte ptr [R15]
INC R15
JMP 0x0012c168
LAB_0012c17c:
MOV byte ptr [R15 + -0x1],0x0
CMP word ptr [RSI],0x2e
JZ 0x0012c1e0
MOVZX EAX,word ptr [RSI]
XOR EAX,0x2e2e
MOVZX ECX,byte ptr [RSI + 0x2]
OR CX,AX
JZ 0x0012c1e0
CMP R15,R12
JNC 0x0012c224
MOV EDI,R14D
MOV EDX,0x2a0000
XOR EAX,EAX
CALL 0x001242c0
TEST EAX,EAX
JS 0x0012c1f1
MOV R13D,EAX
TEST R14D,R14D
JS 0x0012c1c4
MOV EDI,R14D
CALL 0x001245b0
LAB_0012c1c4:
MOV AL,byte ptr [R15]
MOV R14D,R13D
MOV RCX,R15
CMP AL,0x2f
JNZ 0x0012c15f
JMP 0x0012c1e3
LAB_0012c1d3:
CALL 0x00124060
MOV dword ptr [RAX],0x2
JMP 0x0012c1fe
LAB_0012c1e0:
MOV R13D,R14D
LAB_0012c1e3:
CALL 0x00124060
MOV dword ptr [RAX],0x2
MOV R14D,R13D
LAB_0012c1f1:
TEST R14D,R14D
JS 0x0012c1fe
MOV EDI,R14D
CALL 0x001245b0
LAB_0012c1fe:
XOR EBX,EBX
LAB_0012c200:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0012c23d
MOV RAX,RBX
ADD RSP,0x228
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012c224:
MOV RAX,qword ptr [RBP + -0x248]
MOV dword ptr [RAX],R14D
LEA RAX,[RBP + -0x240]
SUB RSI,RAX
ADD RBX,RSI
JMP 0x0012c200
LAB_0012c23d:
CALL 0x00124320
|
long my_open_parent_dir_nosymlinks(long param_1,int *param_2)
{
short *psVar1;
int iVar2;
short *psVar3;
int *piVar4;
long lVar5;
int __fd;
short *psVar6;
short *__file;
long in_FS_OFFSET;
int1 local_248 [2];
int1 local_246 [526];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
psVar3 = (short *)strnmov(local_248,param_1,0x201);
if ((char)*psVar3 == '\0') {
if (local_248[0] == '/') {
__fd = -1;
if (local_248[1] != '/') {
psVar1 = (short *)(local_248 + 1);
__file = (short *)local_248;
__fd = -1;
do {
while ((psVar6 = (short *)((long)psVar1 + 1), local_248[1] != '\0' &&
(local_248[1] != '/'))) {
psVar1 = psVar6;
local_248[1] = *(char *)psVar6;
}
*(char *)psVar1 = '\0';
if ((*__file == 0x2e) || ((char)__file[1] == '\0' && *__file == 0x2e2e)) break;
if (psVar3 <= psVar6) {
*param_2 = __fd;
lVar5 = (long)__file + (param_1 - (long)local_248);
goto LAB_0012c200;
}
iVar2 = openat64(__fd,(char *)__file,0x2a0000);
if (iVar2 < 0) goto LAB_0012c1f1;
if (-1 < __fd) {
close(__fd);
}
local_248[1] = *(char *)psVar6;
__fd = iVar2;
psVar1 = psVar6;
__file = psVar6;
} while (local_248[1] != '/');
}
piVar4 = __errno_location();
*piVar4 = 2;
LAB_0012c1f1:
if (-1 < __fd) {
close(__fd);
}
}
else {
piVar4 = __errno_location();
*piVar4 = 2;
}
}
else {
piVar4 = __errno_location();
*piVar4 = 0x24;
}
lVar5 = 0;
LAB_0012c200:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return lVar5;
}
|
|
3,041 | testing::internal::GetThreadCount() | seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest-port.cc | size_t GetThreadCount() {
const std::string filename =
(Message() << "/proc/" << getpid() << "/stat").GetString();
return ReadProcFileField<size_t>(filename, 19);
} | O1 | cpp | testing::internal::GetThreadCount():
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x258, %rsp # imm = 0x258
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x20c50
movq (%rbx), %rbx
leaq 0x10(%rbx), %r14
leaq 0x2d6f0(%rip), %rsi # 0x42643
movl $0x6, %edx
movq %r14, %rdi
callq 0x95a0
callq 0x9800
movq %r14, %rdi
movl %eax, %esi
callq 0x9960
leaq 0x2d6d4(%rip), %rsi # 0x4264a
movl $0x5, %edx
movq %r14, %rdi
callq 0x95a0
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x20eb3
testq %rbx, %rbx
je 0x14f9e
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq 0x10(%rsp), %rsi
leaq 0x50(%rsp), %rdi
movl $0x8, %edx
callq 0x9a10
movl $0xffffffec, %ebp # imm = 0xFFFFFFEC
leaq 0x50(%rsp), %rbx
leaq 0x30(%rsp), %r14
incl %ebp
je 0x14fe7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x96e0
jmp 0x14fd6
leaq 0x8(%rsp), %rsi
movq $0x0, (%rsi)
leaq 0x50(%rsp), %rdi
callq 0x9290
movq 0x8(%rsp), %rbx
leaq 0x50(%rsp), %rdi
callq 0x9130
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x15023
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1503e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x94c0
movq %rbx, %rax
addq $0x258, %rsp # imm = 0x258
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1506b
movq %rax, %r14
jmp 0x15078
jmp 0x15058
movq %rax, %r14
testq %rbx, %rbx
je 0x150aa
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
jmp 0x150aa
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x9130
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x1508f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x150aa
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x94c0
movq %r14, %rdi
callq 0x99a0
| _ZN7testing8internal14GetThreadCountEv:
push rbp
push r15
push r14
push rbx
sub rsp, 258h
lea rbx, [rsp+278h+var_228]
mov rdi, rbx; this
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
mov rbx, [rbx]
lea r14, [rbx+10h]
lea rsi, aProc; "/proc/"
mov edx, 6
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)
call _getpid
mov rdi, r14
mov esi, eax
call __ZNSolsEi; std::ostream::operator<<(int)
lea rsi, aStat_0; "/stat"
mov edx, 5
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)
lea rdi, [rsp+278h+var_268]
mov rsi, rbx
call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *)
test rbx, rbx
jz short loc_14F9E
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+8]
loc_14F9E:
lea r15, [rsp+278h+var_238]
mov [r15-10h], r15
mov qword ptr [r15-8], 0
mov byte ptr [r15], 0
mov rsi, [rsp+278h+var_268]
lea rdi, [rsp+278h+var_228]
mov edx, 8
call __ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode; std::ifstream::basic_ifstream(char const*,std::_Ios_Openmode)
mov ebp, 0FFFFFFECh
lea rbx, [rsp+278h+var_228]
lea r14, [rsp+278h+var_248]
loc_14FD6:
inc ebp
jz short loc_14FE7
mov rdi, rbx
mov rsi, r14
call __ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator>><char>(std::istream &,std::string &)
jmp short loc_14FD6
loc_14FE7:
lea rsi, [rsp+278h+var_270]
mov qword ptr [rsi], 0
lea rdi, [rsp+278h+var_228]
call __ZNSi10_M_extractImEERSiRT_; std::istream::_M_extract<ulong>(ulong &)
mov rbx, [rsp+278h+var_270]
lea rdi, [rsp+278h+var_228]
call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream()
mov rdi, [rsp+278h+var_248]; void *
cmp rdi, r15
jz short loc_15023
mov rsi, [rsp+278h+var_238]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_15023:
lea rax, [rsp+278h+var_258]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1503E
mov rsi, [rsp+278h+var_258]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1503E:
mov rax, rbx
add rsp, 258h
pop rbx
pop r14
pop r15
pop rbp
retn
jmp short loc_1506B
mov r14, rax
jmp short loc_15078
jmp short $+2
loc_15058:
mov r14, rax
test rbx, rbx
jz short loc_150AA
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+8]
jmp short loc_150AA
loc_1506B:
mov r14, rax
lea rdi, [rsp+arg_48]
call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream()
loc_15078:
mov rdi, [rsp+arg_28]; void *
cmp rdi, r15
jz short loc_1508F
mov rsi, [rsp+arg_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1508F:
lea rax, [rsp+arg_18]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_150AA
mov rsi, [rsp+arg_18]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_150AA:
mov rdi, r14
call __Unwind_Resume
| long long testing::internal::GetThreadCount(testing::internal *this)
{
long long v1; // rbx
unsigned int v2; // eax
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
int v7; // ebp
long long v8; // rbx
long long v10; // [rsp+8h] [rbp-270h] BYREF
long long *v11; // [rsp+10h] [rbp-268h] BYREF
long long v12; // [rsp+20h] [rbp-258h] BYREF
void *v13[2]; // [rsp+30h] [rbp-248h] BYREF
_QWORD v14[2]; // [rsp+40h] [rbp-238h] BYREF
_QWORD v15[69]; // [rsp+50h] [rbp-228h] BYREF
testing::Message::Message((testing::Message *)v15);
v1 = v15[0];
std::__ostream_insert<char,std::char_traits<char>>(v15[0] + 16LL, "/proc/", 6LL);
v2 = getpid();
std::ostream::operator<<(v1 + 16, v2);
std::__ostream_insert<char,std::char_traits<char>>(v1 + 16, "/stat", 5LL);
testing::internal::StringStreamToString((unsigned int)&v11, v1, v3, v4, v5, v6);
if ( v1 )
(*(void ( **)(long long))(*(_QWORD *)v1 + 8LL))(v1);
v13[0] = v14;
v13[1] = 0LL;
LOBYTE(v14[0]) = 0;
std::ifstream::basic_ifstream(v15, v11, 8LL);
v7 = -20;
while ( ++v7 )
std::operator>><char>(v15, v13);
v10 = 0LL;
std::istream::_M_extract<unsigned long>(v15, &v10);
v8 = v10;
std::ifstream::~ifstream(v15);
if ( v13[0] != v14 )
operator delete(v13[0], v14[0] + 1LL);
if ( v11 != &v12 )
operator delete(v11, v12 + 1);
return v8;
}
| GetThreadCount:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x258
LEA RBX,[RSP + 0x50]
MOV RDI,RBX
CALL 0x00120c50
MOV RBX,qword ptr [RBX]
LEA R14,[RBX + 0x10]
LAB_00114f4c:
LEA RSI,[0x142643]
MOV EDX,0x6
MOV RDI,R14
CALL 0x001095a0
CALL 0x00109800
LAB_00114f65:
MOV RDI,R14
MOV ESI,EAX
CALL 0x00109960
LEA RSI,[0x14264a]
MOV EDX,0x5
MOV RDI,R14
CALL 0x001095a0
LEA RDI,[RSP + 0x10]
MOV RSI,RBX
CALL 0x00120eb3
LAB_00114f90:
TEST RBX,RBX
JZ 0x00114f9e
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x8]
LAB_00114f9e:
LEA R15,[RSP + 0x40]
MOV qword ptr [R15 + -0x10],R15
MOV qword ptr [R15 + -0x8],0x0
MOV byte ptr [R15],0x0
MOV RSI,qword ptr [RSP + 0x10]
LAB_00114fb8:
LEA RDI,[RSP + 0x50]
MOV EDX,0x8
CALL 0x00109a10
MOV EBP,0xffffffec
LEA RBX,[RSP + 0x50]
LEA R14,[RSP + 0x30]
LAB_00114fd6:
INC EBP
JZ 0x00114fe7
LAB_00114fda:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001096e0
JMP 0x00114fd6
LAB_00114fe7:
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],0x0
LAB_00114ff3:
LEA RDI,[RSP + 0x50]
CALL 0x00109290
LAB_00114ffd:
MOV RBX,qword ptr [RSP + 0x8]
LEA RDI,[RSP + 0x50]
CALL 0x00109130
MOV RDI,qword ptr [RSP + 0x30]
CMP RDI,R15
JZ 0x00115023
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x001094c0
LAB_00115023:
LEA RAX,[RSP + 0x20]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011503e
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x001094c0
LAB_0011503e:
MOV RAX,RBX
ADD RSP,0x258
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* testing::internal::GetThreadCount() */
int8 testing::internal::GetThreadCount(void)
{
ostream *this;
__pid_t _Var1;
int iVar2;
long *local_268 [2];
long local_258 [2];
int1 *local_248;
int8 local_240;
int1 local_238;
int7 uStack_237;
long *local_228 [65];
Message::Message((Message *)local_228);
this = (ostream *)(local_228[0] + 2);
/* try { // try from 00114f4c to 00114f5f has its CatchHandler @ 00115056 */
std::__ostream_insert<char,std::char_traits<char>>(this,"/proc/",6);
_Var1 = getpid();
/* try { // try from 00114f65 to 00114f8f has its CatchHandler @ 00115058 */
std::ostream::operator<<(this,_Var1);
std::__ostream_insert<char,std::char_traits<char>>(this,"/stat",5);
StringStreamToString((stringstream *)local_268);
if (local_228[0] != (long *)0x0) {
(**(code **)(*local_228[0] + 8))(local_228[0]);
}
local_240 = 0;
local_238 = 0;
/* try { // try from 00114fb8 to 00114fc6 has its CatchHandler @ 00115051 */
local_248 = &local_238;
std::ifstream::ifstream((ifstream *)local_228,local_268[0],8);
iVar2 = -0x14;
while (iVar2 = iVar2 + 1, iVar2 != 0) {
/* try { // try from 00114fda to 00114fe4 has its CatchHandler @ 0011506b */
std::operator>>((istream *)local_228,(string *)&local_248);
}
/* try { // try from 00114ff3 to 00114ffc has its CatchHandler @ 0011504f */
std::istream::_M_extract<unsigned_long>((ulong *)local_228);
std::ifstream::~ifstream((ifstream *)local_228);
if (local_248 != &local_238) {
operator_delete(local_248,CONCAT71(uStack_237,local_238) + 1);
}
if (local_268[0] != local_258) {
operator_delete(local_268[0],local_258[0] + 1);
}
return 0;
}
|
|
3,042 | minja::IfNode::IfNode(minja::Location const&, std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>, std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>>>&&) | monkey531[P]llama/common/minja.hpp | TemplateNode(const Location & location) : location_(location) {} | O1 | cpp | minja::IfNode::IfNode(minja::Location const&, std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>, std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>>>&&):
leaq 0x79b51(%rip), %rax # 0xe3fe8
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x6a4c7
movq 0x7aadf(%rip), %rcx # 0xe4f98
cmpb $0x0, (%rcx)
je 0x6a4c3
incl 0x8(%rax)
jmp 0x6a4c7
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x7a162(%rip), %rax # 0xe4638
addq $0x10, %rax
movq %rax, (%rdi)
movups (%rdx), %xmm0
movups %xmm0, 0x20(%rdi)
movq 0x10(%rdx), %rax
movq %rax, 0x30(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
retq
nop
| _ZN5minja12SequenceNodeC2ERKNS_8LocationEOSt6vectorISt10shared_ptrINS_12TemplateNodeEESaIS7_EE:
lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_6A4C7
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_6A4C3
inc dword ptr [rax+8]
jmp short loc_6A4C7
loc_6A4C3:
lock inc dword ptr [rax+8]
loc_6A4C7:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja12SequenceNodeE; `vtable for'minja::SequenceNode
add rax, 10h
mov [rdi], rax
movups xmm0, xmmword ptr [rdx]
movups xmmword ptr [rdi+20h], xmm0
mov rax, [rdx+10h]
mov [rdi+30h], rax
xorps xmm0, xmm0
movups xmmword ptr [rdx], xmm0
mov qword ptr [rdx+10h], 0
retn
| long long minja::SequenceNode::SequenceNode(long long a1, _QWORD *a2, long long a3)
{
long long v3; // rax
long long result; // rax
*(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2;
*(_QWORD *)(a1 + 8) = *a2;
v3 = a2[1];
*(_QWORD *)(a1 + 16) = v3;
if ( v3 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v3 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v3 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::SequenceNode + 2;
*(_OWORD *)(a1 + 32) = *(_OWORD *)a3;
result = *(_QWORD *)(a3 + 16);
*(_QWORD *)(a1 + 48) = result;
*(_OWORD *)a3 = 0LL;
*(_QWORD *)(a3 + 16) = 0LL;
return result;
}
| SequenceNode:
LEA RAX,[0x1e3fe8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x0016a4c7
MOV RCX,qword ptr [0x001e4f98]
CMP byte ptr [RCX],0x0
JZ 0x0016a4c3
INC dword ptr [RAX + 0x8]
JMP 0x0016a4c7
LAB_0016a4c3:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0016a4c7:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x1e4638]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV RAX,qword ptr [RDX + 0x10]
MOV qword ptr [RDI + 0x30],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDX],XMM0
MOV qword ptr [RDX + 0x10],0x0
RET
|
/* minja::SequenceNode::SequenceNode(minja::Location const&,
std::vector<std::shared_ptr<minja::TemplateNode>,
std::allocator<std::shared_ptr<minja::TemplateNode> > >&&) */
void __thiscall
minja::SequenceNode::SequenceNode(SequenceNode *this,Location *param_1,vector *param_2)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001e3ff8;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001e4f98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_render_001e4648;
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar2;
*(int8 *)(this + 0x30) = *(int8 *)(param_2 + 0x10);
*(int8 *)param_2 = 0;
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(param_2 + 0x10) = 0;
return;
}
|
|
3,043 | minja::IfNode::IfNode(minja::Location const&, std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>, std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>>>&&) | monkey531[P]llama/common/minja.hpp | TemplateNode(const Location & location) : location_(location) {} | O3 | cpp | minja::IfNode::IfNode(minja::Location const&, std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>, std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>>>&&):
leaq 0x7b621(%rip), %rax # 0xdffe8
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x649f7
movq 0x7c5af(%rip), %rcx # 0xe0f98
cmpb $0x0, (%rcx)
je 0x649f3
incl 0x8(%rax)
jmp 0x649f7
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x7b8c2(%rip), %rax # 0xe02c8
addq $0x10, %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x28(%rdi)
movups (%rdx), %xmm0
movq %rax, 0x8(%rdx)
movups %xmm0, 0x20(%rdi)
movq %rax, (%rdx)
retq
| _ZN5minja14ExpressionNodeC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEE:
lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_649F7
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_649F3
inc dword ptr [rax+8]
jmp short loc_649F7
loc_649F3:
lock inc dword ptr [rax+8]
loc_649F7:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja14ExpressionNodeE; `vtable for'minja::ExpressionNode
add rax, 10h
mov [rdi], rax
xor eax, eax
mov [rdi+28h], rax
movups xmm0, xmmword ptr [rdx]
mov [rdx+8], rax
movups xmmword ptr [rdi+20h], xmm0
mov [rdx], rax
retn
| long long minja::ExpressionNode::ExpressionNode(long long a1, _QWORD *a2, __int128 *a3)
{
long long v3; // rax
long long result; // rax
__int128 v5; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2;
*(_QWORD *)(a1 + 8) = *a2;
v3 = a2[1];
*(_QWORD *)(a1 + 16) = v3;
if ( v3 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v3 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v3 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::ExpressionNode + 2;
result = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v5 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v5;
*(_QWORD *)a3 = 0LL;
return result;
}
| ExpressionNode:
LEA RAX,[0x1dffe8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x001649f7
MOV RCX,qword ptr [0x001e0f98]
CMP byte ptr [RCX],0x0
JZ 0x001649f3
INC dword ptr [RAX + 0x8]
JMP 0x001649f7
LAB_001649f3:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001649f7:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x1e02c8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x28],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOV qword ptr [RDX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV qword ptr [RDX],RAX
RET
|
/* minja::ExpressionNode::ExpressionNode(minja::Location const&,
std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::ExpressionNode::ExpressionNode(ExpressionNode *this,Location *param_1,shared_ptr *param_2)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001dfff8;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001e0f98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_render_001e02d8;
*(int8 *)(this + 0x28) = 0;
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar2;
*(int8 *)param_2 = 0;
return;
}
|
|
3,044 | fmt::v11::basic_appender<char> fmt::v11::detail::write_padded<char, (fmt::v11::align)1, fmt::v11::basic_appender<char>, fmt::v11::basic_appender<char> fmt::v11::detail::write_bytes<char, (fmt::v11::align)1, fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>, fmt::v11::basic_string_view<char>, fmt::v11::format_specs const&)::'lambda'(fmt::v11::basic_appender<char>)&>(fmt::v11::basic_appender<char>, fmt::v11::format_specs const&, unsigned long, unsigned long, fmt::v11::basic_appender<char> fmt::v11::detail::write_bytes<char, (fmt::v11::align)1, fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>, fmt::v11::basic_string_view<char>, fmt::v11::format_specs const&)::'lambda'(fmt::v11::basic_appender<char>)&) | zkingston[P]unknot/build_O0/_deps/fmt-src/include/fmt/format.h | FMT_CONSTEXPR auto write_padded(OutputIt out, const format_specs& specs,
size_t size, size_t width, F&& f) -> OutputIt {
static_assert(default_align == align::left || default_align == align::right,
"");
unsigned spec_width = to_unsigned(specs.width);
size_t padding = spec_width > width ? spec_width - width : 0;
// Shifts are encoded as string literals because static constexpr is not
// supported in constexpr functions.
auto* shifts =
default_align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01";
size_t left_padding = padding >> shifts[static_cast<int>(specs.align())];
size_t right_padding = padding - left_padding;
auto it = reserve(out, size + padding * specs.fill_size());
if (left_padding != 0) it = fill<Char>(it, left_padding, specs);
it = f(it);
if (right_padding != 0) it = fill<Char>(it, right_padding, specs);
return base_iterator(out, it);
} | O0 | c | fmt::v11::basic_appender<char> fmt::v11::detail::write_padded<char, (fmt::v11::align)1, fmt::v11::basic_appender<char>, fmt::v11::basic_appender<char> fmt::v11::detail::write_bytes<char, (fmt::v11::align)1, fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>, fmt::v11::basic_string_view<char>, fmt::v11::format_specs const&)::'lambda'(fmt::v11::basic_appender<char>)&>(fmt::v11::basic_appender<char>, fmt::v11::format_specs const&, unsigned long, unsigned long, fmt::v11::basic_appender<char> fmt::v11::detail::write_bytes<char, (fmt::v11::align)1, fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>, fmt::v11::basic_string_view<char>, fmt::v11::format_specs const&)::'lambda'(fmt::v11::basic_appender<char>)&):
subq $0xd8, %rsp
movq %rdi, 0xc8(%rsp)
movq %rsi, 0xc0(%rsp)
movq %rdx, 0xb8(%rsp)
movq %rcx, 0xb0(%rsp)
movq %r8, 0xa8(%rsp)
movq 0xc0(%rsp), %rax
movl 0x8(%rax), %edi
callq 0xa6a90
movl %eax, 0xa4(%rsp)
movl 0xa4(%rsp), %eax
cmpq 0xb0(%rsp), %rax
jbe 0xc790d
movl 0xa4(%rsp), %eax
subq 0xb0(%rsp), %rax
movq %rax, 0x28(%rsp)
jmp 0xc7916
xorl %eax, %eax
movq %rax, 0x28(%rsp)
jmp 0xc7916
movq 0x28(%rsp), %rax
movq %rax, 0x98(%rsp)
leaq 0x50918f(%rip), %rax # 0x5d0ab9
movq %rax, 0x90(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xc0(%rsp), %rdi
callq 0xaed50
movq 0x8(%rsp), %rcx
movl %eax, %edx
movq 0x10(%rsp), %rax
movslq %edx, %rdx
movsbl (%rcx,%rdx), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, 0x88(%rsp)
movq 0x98(%rsp), %rax
subq 0x88(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xc0(%rsp), %rdi
callq 0xaed70
movq 0x18(%rsp), %rsi
movq %rax, %rcx
movq 0x20(%rsp), %rax
imulq %rcx, %rax
addq %rax, %rsi
movq 0x70(%rsp), %rdi
callq 0xae8b0
movq %rax, 0x78(%rsp)
cmpq $0x0, 0x88(%rsp)
je 0xc7a26
movq 0x78(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x88(%rsp), %rsi
movq 0xc0(%rsp), %rdx
movq 0x60(%rsp), %rdi
callq 0xaed90
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0xa8(%rsp), %rdi
movq 0x78(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rsi
callq 0xc7bb0
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x78(%rsp)
cmpq $0x0, 0x80(%rsp)
je 0xc7a8f
movq 0x78(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x80(%rsp), %rsi
movq 0xc0(%rsp), %rdx
movq 0x40(%rsp), %rdi
callq 0xaed90
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0xae920
movq %rax, 0xd0(%rsp)
movq 0xd0(%rsp), %rax
addq $0xd8, %rsp
retq
nopl (%rax)
| _ZN3fmt3v116detail12write_paddedIcLNS0_5alignE2ENS0_14basic_appenderIcEEZNS1_9write_intIS5_ocEET_S7_T0_jRKNS0_12format_specsERKNS1_14digit_groupingIT1_EEEUlS5_E_EESD_SD_SB_mmOT2_:
sub rsp, 0D8h
mov [rsp+0D8h+var_10], rdi
mov [rsp+0D8h+var_18], rsi
mov [rsp+0D8h+var_20], rdx
mov [rsp+0D8h+var_28], rcx
mov [rsp+0D8h+var_30], r8
mov rax, [rsp+0D8h+var_18]
mov edi, [rax+8]
call _ZN3fmt3v116detail11to_unsignedIiEENSt13make_unsignedIT_E4typeES4_; fmt::v11::detail::to_unsigned<int>(int)
mov [rsp+0D8h+var_34], eax
mov eax, [rsp+0D8h+var_34]
cmp rax, [rsp+0D8h+var_28]
jbe short loc_C790D
mov eax, [rsp+0D8h+var_34]
sub rax, [rsp+0D8h+var_28]
mov [rsp+0D8h+var_B0], rax
jmp short loc_C7916
loc_C790D:
xor eax, eax
mov [rsp+0D8h+var_B0], rax
jmp short $+2
loc_C7916:
mov rax, [rsp+0D8h+var_B0]
mov [rsp+0D8h+var_40], rax
lea rax, byte_5D0AB9
mov [rsp+0D8h+var_48], rax
mov rax, [rsp+0D8h+var_40]
mov [rsp+0D8h+var_C8], rax
mov rax, [rsp+0D8h+var_48]
mov [rsp+0D8h+var_D0], rax
mov rdi, [rsp+0D8h+var_18]; this
call _ZNK3fmt3v1111basic_specs5alignEv; fmt::v11::basic_specs::align(void)
mov rcx, [rsp+0D8h+var_D0]
mov edx, eax
mov rax, [rsp+0D8h+var_C8]
movsxd rdx, edx
movsx ecx, byte ptr [rcx+rdx]
mov ecx, ecx
shr rax, cl
mov [rsp+0D8h+var_50], rax
mov rax, [rsp+0D8h+var_40]
sub rax, [rsp+0D8h+var_50]
mov [rsp+0D8h+var_58], rax
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_68], rax
mov rax, [rsp+0D8h+var_20]
mov [rsp+0D8h+var_C0], rax
mov rax, [rsp+0D8h+var_40]
mov [rsp+0D8h+var_B8], rax
mov rdi, [rsp+0D8h+var_18]; this
call _ZNK3fmt3v1111basic_specs9fill_sizeEv; fmt::v11::basic_specs::fill_size(void)
mov rsi, [rsp+0D8h+var_C0]
mov rcx, rax
mov rax, [rsp+0D8h+var_B8]
imul rax, rcx
add rsi, rax
mov rdi, [rsp+0D8h+var_68]
call _ZN3fmt3v116detail7reserveIcEENS0_14basic_appenderIT_EES5_m; fmt::v11::detail::reserve<char>(fmt::v11::basic_appender<char>,ulong)
mov [rsp+0D8h+var_60], rax
cmp [rsp+0D8h+var_50], 0
jz short loc_C7A26
mov rax, [rsp+0D8h+var_60]
mov [rsp+0D8h+var_78], rax
mov rsi, [rsp+0D8h+var_50]
mov rdx, [rsp+0D8h+var_18]
mov rdi, [rsp+0D8h+var_78]
call _ZN3fmt3v116detail4fillIcNS0_14basic_appenderIcEEEET0_S5_mRKNS0_11basic_specsE; fmt::v11::detail::fill<char,fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>,ulong,fmt::v11::basic_specs const&)
mov [rsp+0D8h+var_70], rax
mov rax, [rsp+0D8h+var_70]
mov [rsp+0D8h+var_60], rax
loc_C7A26:
mov rdi, [rsp+0D8h+var_30]
mov rax, [rsp+0D8h+var_60]
mov [rsp+0D8h+var_88], rax
mov rsi, [rsp+0D8h+var_88]
call _ZZN3fmt3v116detail9write_intINS0_14basic_appenderIcEEocEET_S5_T0_jRKNS0_12format_specsERKNS1_14digit_groupingIT1_EEENKUlS4_E_clES4_; fmt::v11::detail::write_int<fmt::v11::basic_appender<char>,unsigned __int128,char>(fmt::v11::basic_appender<char>,unsigned __int128,uint,fmt::v11::format_specs const&,fmt::v11::detail::digit_grouping<char> const&)::{lambda(fmt::v11::basic_appender<char>)#1}::operator()(fmt::v11::basic_appender<char>)
mov [rsp+0D8h+var_80], rax
mov rax, [rsp+0D8h+var_80]
mov [rsp+0D8h+var_60], rax
cmp [rsp+0D8h+var_58], 0
jz short loc_C7A8F
mov rax, [rsp+0D8h+var_60]
mov [rsp+0D8h+var_98], rax
mov rsi, [rsp+0D8h+var_58]
mov rdx, [rsp+0D8h+var_18]
mov rdi, [rsp+0D8h+var_98]
call _ZN3fmt3v116detail4fillIcNS0_14basic_appenderIcEEEET0_S5_mRKNS0_11basic_specsE; fmt::v11::detail::fill<char,fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>,ulong,fmt::v11::basic_specs const&)
mov [rsp+0D8h+var_90], rax
mov rax, [rsp+0D8h+var_90]
mov [rsp+0D8h+var_60], rax
loc_C7A8F:
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_A0], rax
mov rax, [rsp+0D8h+var_60]
mov [rsp+0D8h+var_A8], rax
mov rdi, [rsp+0D8h+var_A0]
mov rsi, [rsp+0D8h+var_A8]
call _ZN3fmt3v116detail13base_iteratorINS0_14basic_appenderIcEEEET_S5_S5_; fmt::v11::detail::base_iterator<fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>,fmt::v11::basic_appender<char>)
mov [rsp+0D8h+var_8], rax
mov rax, [rsp+0D8h+var_8]
add rsp, 0D8h
retn
| long long fmt::v11::detail::write_padded<char,(fmt::v11::align)2,fmt::v11::basic_appender<char>,fmt::v11::basic_appender<char> fmt::v11::detail::write_int<fmt::v11::basic_appender<char>,unsigned __int128,char>(fmt::v11::basic_appender<char>,unsigned __int128,unsigned int,fmt::v11::format_specs const&,fmt::v11::detail::digit_grouping<char> const&)::{lambda(fmt::v11::basic_appender<char>)#1}>(
long long a1,
int *a2,
long long a3,
unsigned long long a4,
long long a5)
{
long long v5; // rax
unsigned long long v7; // [rsp+28h] [rbp-B0h]
long long v8; // [rsp+78h] [rbp-60h]
long long v9; // [rsp+78h] [rbp-60h]
unsigned long long v10; // [rsp+80h] [rbp-58h]
unsigned long long v11; // [rsp+88h] [rbp-50h]
unsigned int v12; // [rsp+A4h] [rbp-34h]
v12 = fmt::v11::detail::to_unsigned<int>(a2[2]);
if ( v12 <= a4 )
v7 = 0LL;
else
v7 = v12 - a4;
v11 = v7 >> byte_5D0AB9[(int)fmt::v11::basic_specs::align((fmt::v11::basic_specs *)a2)];
v10 = v7 - v11;
v5 = fmt::v11::basic_specs::fill_size((fmt::v11::basic_specs *)a2);
v8 = fmt::v11::detail::reserve<char>(a1, v5 * v7 + a3);
if ( v11 )
v8 = fmt::v11::detail::fill<char,fmt::v11::basic_appender<char>>(v8, v11, (fmt::v11::basic_specs *)a2);
v9 = fmt::v11::detail::write_int<fmt::v11::basic_appender<char>,unsigned __int128,char>(fmt::v11::basic_appender<char>,unsigned __int128,unsigned int,fmt::v11::format_specs const&,fmt::v11::detail::digit_grouping<char> const&)::{lambda(fmt::v11::basic_appender<char>)#1}::operator()(
a5,
v8);
if ( v10 )
v9 = fmt::v11::detail::fill<char,fmt::v11::basic_appender<char>>(v9, v10, (fmt::v11::basic_specs *)a2);
return fmt::v11::detail::base_iterator<fmt::v11::basic_appender<char>>(a1, v9);
}
| write_padded<char,(fmt::v11::align)2,fmt::v11::basic_appender<char>,fmt::v11::detail::write_int<fmt::v11::basic_appender<char>,unsigned__int128,char>(fmt::v11::basic_appender<char>,unsigned__int128,unsigned_int,fmt::v11::format_specs_const&,fmt::v11::detail::digit_grouping<char>const&)::{lambda(fmt::v11::basic_appender<char>)#1}>:
SUB RSP,0xd8
MOV qword ptr [RSP + 0xc8],RDI
MOV qword ptr [RSP + 0xc0],RSI
MOV qword ptr [RSP + 0xb8],RDX
MOV qword ptr [RSP + 0xb0],RCX
MOV qword ptr [RSP + 0xa8],R8
MOV RAX,qword ptr [RSP + 0xc0]
MOV EDI,dword ptr [RAX + 0x8]
CALL 0x001a6a90
MOV dword ptr [RSP + 0xa4],EAX
MOV EAX,dword ptr [RSP + 0xa4]
CMP RAX,qword ptr [RSP + 0xb0]
JBE 0x001c790d
MOV EAX,dword ptr [RSP + 0xa4]
SUB RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x28],RAX
JMP 0x001c7916
LAB_001c790d:
XOR EAX,EAX
MOV qword ptr [RSP + 0x28],RAX
JMP 0x001c7916
LAB_001c7916:
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x98],RAX
LEA RAX,[0x6d0ab9]
MOV qword ptr [RSP + 0x90],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0xc0]
CALL 0x001aed50
MOV RCX,qword ptr [RSP + 0x8]
MOV EDX,EAX
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RDX,EDX
MOVSX ECX,byte ptr [RCX + RDX*0x1]
MOV ECX,ECX
SHR RAX,CL
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0x98]
SUB RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x80],RAX
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0xb8]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0xc0]
CALL 0x001aed70
MOV RSI,qword ptr [RSP + 0x18]
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x20]
IMUL RAX,RCX
ADD RSI,RAX
MOV RDI,qword ptr [RSP + 0x70]
CALL 0x001ae8b0
MOV qword ptr [RSP + 0x78],RAX
CMP qword ptr [RSP + 0x88],0x0
JZ 0x001c7a26
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x60],RAX
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0xc0]
MOV RDI,qword ptr [RSP + 0x60]
CALL 0x001aed90
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x78],RAX
LAB_001c7a26:
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x50],RAX
MOV RSI,qword ptr [RSP + 0x50]
CALL 0x001c7bb0
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x78],RAX
CMP qword ptr [RSP + 0x80],0x0
JZ 0x001c7a8f
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x40],RAX
MOV RSI,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RSP + 0xc0]
MOV RDI,qword ptr [RSP + 0x40]
CALL 0x001aed90
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x78],RAX
LAB_001c7a8f:
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x001ae920
MOV qword ptr [RSP + 0xd0],RAX
MOV RAX,qword ptr [RSP + 0xd0]
ADD RSP,0xd8
RET
|
/* fmt::v11::basic_appender<char> fmt::v11::detail::write_padded<char, (fmt::v11::align)2,
fmt::v11::basic_appender<char>, fmt::v11::detail::write_int<fmt::v11::basic_appender<char>,
unsigned __int128, char>(fmt::v11::basic_appender<char>, unsigned __int128, unsigned int,
fmt::v11::format_specs const&, fmt::v11::detail::digit_grouping<char>
const&)::{lambda(fmt::v11::basic_appender<char>)#1}>(fmt::v11::basic_appender<char>,
fmt::v11::format_specs const&, unsigned long, unsigned long,
fmt::v11::detail::write_int<fmt::v11::basic_appender<char>, unsigned __int128,
char>(fmt::v11::basic_appender<char>, unsigned __int128, unsigned int, fmt::v11::format_specs
const&, fmt::v11::detail::digit_grouping<char>
const&)::{lambda(fmt::v11::basic_appender<char>)#1}&&) */
int8
fmt::v11::detail::
write_padded<char,(fmt::v11::align)2,fmt::v11::basic_appender<char>,fmt::v11::detail::write_int<fmt::v11::basic_appender<char>,unsigned__int128,char>(fmt::v11::basic_appender<char>,unsigned__int128,unsigned_int,fmt::v11::format_specs_const&,fmt::v11::detail::digit_grouping<char>const&)::_lambda(fmt::v11::basic_appender<char>)_1_>
(int8 param_1,basic_specs *param_2,long param_3,ulong param_4,
_lambda_fmt__v11__basic_appender<char>__1_ *param_5)
{
uint uVar1;
int iVar2;
ulong uVar3;
long lVar4;
int8 uVar5;
ulong local_b0;
int8 local_60;
uVar1 = to_unsigned<int>(*(int *)(param_2 + 8));
if (param_4 < uVar1) {
local_b0 = uVar1 - param_4;
}
else {
local_b0 = 0;
}
iVar2 = basic_specs::align(param_2);
uVar3 = local_b0 >> ((&DAT_006d0ab9)[iVar2] & 0x3f);
lVar4 = basic_specs::fill_size(param_2);
local_60 = reserve<char>(param_1,param_3 + local_b0 * lVar4);
if (uVar3 != 0) {
local_60 = fill<char,fmt::v11::basic_appender<char>>(local_60,uVar3,param_2);
}
local_60 = write_int<fmt::v11::basic_appender<char>,unsigned__int128,char>(fmt::v11::basic_appender<char>,unsigned__int128,unsigned_int,fmt::v11::format_specs_const&,fmt::v11::detail::digit_grouping<char>const&)
::{lambda(fmt::v11::basic_appender<char>)#1}::operator()(param_5,local_60);
if (local_b0 - uVar3 != 0) {
local_60 = fill<char,fmt::v11::basic_appender<char>>(local_60,local_b0 - uVar3,param_2);
}
uVar5 = base_iterator<fmt::v11::basic_appender<char>>(param_1,local_60);
return uVar5;
}
|
|
3,045 | ma_service_thread_control_end | eloqsql/storage/maria/ma_servicethread.c | void ma_service_thread_control_end(MA_SERVICE_THREAD_CONTROL *control)
{
DBUG_ENTER("ma_service_thread_control_end");
DBUG_PRINT("init", ("control %p", control));
DBUG_ASSERT(control->inited);
mysql_mutex_lock(control->LOCK_control);
if (!control->killed)
{
DBUG_PRINT("info",("killing Maria background thread"));
control->killed= TRUE; /* kill it */
mysql_cond_broadcast(control->COND_control);
mysql_mutex_unlock(control->LOCK_control);
DBUG_PRINT("info", ("waiting for Maria background thread to die"));
pthread_join(control->thread, NULL);
}
else
mysql_mutex_unlock(control->LOCK_control);
mysql_mutex_destroy(control->LOCK_control);
mysql_cond_destroy(control->COND_control);
control->inited= FALSE;
DBUG_VOID_RETURN;
} | O3 | c | ma_service_thread_control_end:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
cmpq $0x0, 0x40(%rdi)
jne 0x7517c
callq 0x2a1f0
cmpb $0x0, 0x8(%rbx)
je 0x750f4
movq 0x10(%rbx), %r14
movq 0x40(%r14), %rdi
testq %rdi, %rdi
jne 0x751a9
movq %r14, %rdi
callq 0x2a1c0
jmp 0x75134
movb $0x1, 0x8(%rbx)
movq 0x18(%rbx), %r14
movq 0x30(%r14), %rdi
testq %rdi, %rdi
jne 0x751be
movq %r14, %rdi
callq 0x2a6e0
movq 0x10(%rbx), %r14
movq 0x40(%r14), %rdi
testq %rdi, %rdi
jne 0x751d3
movq %r14, %rdi
callq 0x2a1c0
movq (%rbx), %rdi
xorl %esi, %esi
callq 0x2a270
movq 0x10(%rbx), %r14
movq 0x40(%r14), %rdi
testq %rdi, %rdi
je 0x75156
leaq 0x31b9d0(%rip), %rax # 0x390b18
movq (%rax), %rax
callq *0x48(%rax)
movq $0x0, 0x40(%r14)
movq %r14, %rdi
callq 0x2a0e0
movq 0x18(%rbx), %r14
movq 0x30(%r14), %rdi
testq %rdi, %rdi
jne 0x75192
movq %r14, %rdi
callq 0x2a250
movb $0x0, 0x9(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x6dca9(%rip), %rsi # 0xe2e2c
movl $0x3e, %edx
callq 0x2ff2f
jmp 0x750d3
leaq 0x31b97f(%rip), %rax # 0x390b18
movq (%rax), %rax
callq *0x68(%rax)
movq $0x0, 0x30(%r14)
jmp 0x7516b
leaq 0x31b968(%rip), %rax # 0x390b18
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x750ea
leaq 0x31b953(%rip), %rax # 0x390b18
movq (%rax), %rax
callq *0x178(%rax)
jmp 0x75109
leaq 0x31b93e(%rip), %rax # 0x390b18
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x75122
| ma_service_thread_control_end:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
mov rdi, [rdi+10h]
cmp qword ptr [rdi+40h], 0
jnz loc_7517C
call _pthread_mutex_lock
loc_750D3:
cmp byte ptr [rbx+8], 0
jz short loc_750F4
mov r14, [rbx+10h]
mov rdi, [r14+40h]
test rdi, rdi
jnz loc_751A9
loc_750EA:
mov rdi, r14
call _pthread_mutex_unlock
jmp short loc_75134
loc_750F4:
mov byte ptr [rbx+8], 1
mov r14, [rbx+18h]
mov rdi, [r14+30h]
test rdi, rdi
jnz loc_751BE
loc_75109:
mov rdi, r14
call _pthread_cond_broadcast
mov r14, [rbx+10h]
mov rdi, [r14+40h]
test rdi, rdi
jnz loc_751D3
loc_75122:
mov rdi, r14
call _pthread_mutex_unlock
mov rdi, [rbx]
xor esi, esi
call _pthread_join
loc_75134:
mov r14, [rbx+10h]
mov rdi, [r14+40h]
test rdi, rdi
jz short loc_75156
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+48h]
mov qword ptr [r14+40h], 0
loc_75156:
mov rdi, r14
call _pthread_mutex_destroy
mov r14, [rbx+18h]
mov rdi, [r14+30h]
test rdi, rdi
jnz short loc_75192
loc_7516B:
mov rdi, r14
call _pthread_cond_destroy
mov byte ptr [rbx+9], 0
pop rbx
pop r14
pop rbp
retn
loc_7517C:
lea rsi, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 3Eh ; '>'
call psi_mutex_lock
jmp loc_750D3
loc_75192:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+68h]
mov qword ptr [r14+30h], 0
jmp short loc_7516B
loc_751A9:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_750EA
loc_751BE:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+178h]
jmp loc_75109
loc_751D3:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_75122
| long long ma_service_thread_control_end(long long a1)
{
long long v2; // rdi
long long v3; // r14
long long v4; // r14
long long v5; // r14
long long v6; // r14
long long v7; // r14
long long result; // rax
v2 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(v2 + 64) )
psi_mutex_lock(v2, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_servicethread.c", 0x3Eu);
else
pthread_mutex_lock(v2);
if ( *(_BYTE *)(a1 + 8) )
{
v3 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(v3 + 64) )
PSI_server[44]();
pthread_mutex_unlock(v3);
}
else
{
*(_BYTE *)(a1 + 8) = 1;
v4 = *(_QWORD *)(a1 + 24);
if ( *(_QWORD *)(v4 + 48) )
PSI_server[47]();
pthread_cond_broadcast(v4);
v5 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(v5 + 64) )
PSI_server[44]();
pthread_mutex_unlock(v5);
pthread_join(*(_QWORD *)a1, 0LL);
}
v6 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(v6 + 64) )
{
PSI_server[9]();
*(_QWORD *)(v6 + 64) = 0LL;
}
pthread_mutex_destroy(v6);
v7 = *(_QWORD *)(a1 + 24);
if ( *(_QWORD *)(v7 + 48) )
{
PSI_server[13]();
*(_QWORD *)(v7 + 48) = 0LL;
}
result = pthread_cond_destroy(v7);
*(_BYTE *)(a1 + 9) = 0;
return result;
}
| ma_service_thread_control_end:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x10]
CMP qword ptr [RDI + 0x40],0x0
JNZ 0x0017517c
CALL 0x0012a1f0
LAB_001750d3:
CMP byte ptr [RBX + 0x8],0x0
JZ 0x001750f4
MOV R14,qword ptr [RBX + 0x10]
MOV RDI,qword ptr [R14 + 0x40]
TEST RDI,RDI
JNZ 0x001751a9
LAB_001750ea:
MOV RDI,R14
CALL 0x0012a1c0
JMP 0x00175134
LAB_001750f4:
MOV byte ptr [RBX + 0x8],0x1
MOV R14,qword ptr [RBX + 0x18]
MOV RDI,qword ptr [R14 + 0x30]
TEST RDI,RDI
JNZ 0x001751be
LAB_00175109:
MOV RDI,R14
CALL 0x0012a6e0
MOV R14,qword ptr [RBX + 0x10]
MOV RDI,qword ptr [R14 + 0x40]
TEST RDI,RDI
JNZ 0x001751d3
LAB_00175122:
MOV RDI,R14
CALL 0x0012a1c0
MOV RDI,qword ptr [RBX]
XOR ESI,ESI
CALL 0x0012a270
LAB_00175134:
MOV R14,qword ptr [RBX + 0x10]
MOV RDI,qword ptr [R14 + 0x40]
TEST RDI,RDI
JZ 0x00175156
LEA RAX,[0x490b18]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x48]
MOV qword ptr [R14 + 0x40],0x0
LAB_00175156:
MOV RDI,R14
CALL 0x0012a0e0
MOV R14,qword ptr [RBX + 0x18]
MOV RDI,qword ptr [R14 + 0x30]
TEST RDI,RDI
JNZ 0x00175192
LAB_0017516b:
MOV RDI,R14
CALL 0x0012a250
MOV byte ptr [RBX + 0x9],0x0
POP RBX
POP R14
POP RBP
RET
LAB_0017517c:
LEA RSI,[0x1e2e2c]
MOV EDX,0x3e
CALL 0x0012ff2f
JMP 0x001750d3
LAB_00175192:
LEA RAX,[0x490b18]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x68]
MOV qword ptr [R14 + 0x30],0x0
JMP 0x0017516b
LAB_001751a9:
LEA RAX,[0x490b18]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001750ea
LAB_001751be:
LEA RAX,[0x490b18]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x178]
JMP 0x00175109
LAB_001751d3:
LEA RAX,[0x490b18]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00175122
|
void ma_service_thread_control_end(pthread_t *param_1)
{
pthread_mutex_t *ppVar1;
pthread_cond_t *ppVar2;
ppVar1 = (pthread_mutex_t *)param_1[2];
if (*(long *)((long)ppVar1 + 0x40) == 0) {
pthread_mutex_lock(ppVar1);
}
else {
psi_mutex_lock(ppVar1,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_servicethread.c",0x3e)
;
}
if ((char)param_1[1] == '\0') {
*(int1 *)(param_1 + 1) = 1;
ppVar2 = (pthread_cond_t *)param_1[3];
if (ppVar2[1].__align != 0) {
(**(code **)(PSI_server + 0x178))();
}
pthread_cond_broadcast(ppVar2);
ppVar1 = (pthread_mutex_t *)param_1[2];
if (*(long *)((long)ppVar1 + 0x40) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(ppVar1);
pthread_join(*param_1,(void **)0x0);
}
else {
ppVar1 = (pthread_mutex_t *)param_1[2];
if (*(long *)((long)ppVar1 + 0x40) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(ppVar1);
}
ppVar1 = (pthread_mutex_t *)param_1[2];
if (*(long *)((long)ppVar1 + 0x40) != 0) {
(**(code **)(PSI_server + 0x48))();
*(int8 *)((long)ppVar1 + 0x40) = 0;
}
pthread_mutex_destroy(ppVar1);
ppVar2 = (pthread_cond_t *)param_1[3];
if (ppVar2[1].__align != 0) {
(**(code **)(PSI_server + 0x68))();
ppVar2[1].__align = 0;
}
pthread_cond_destroy(ppVar2);
*(int1 *)((long)param_1 + 9) = 0;
return;
}
|
|
3,046 | JS_AtomIsArrayIndex | bluesky950520[P]quickjs/quickjs.c | static BOOL JS_AtomIsArrayIndex(JSContext *ctx, uint32_t *pval, JSAtom atom)
{
if (__JS_AtomIsTaggedInt(atom)) {
*pval = __JS_AtomToUInt32(atom);
return TRUE;
} else {
JSRuntime *rt = ctx->rt;
JSAtomStruct *p;
uint32_t val;
assert(atom < rt->atom_size);
p = rt->atom_array[atom];
if (p->atom_type == JS_ATOM_TYPE_STRING &&
is_num_string(&val, p) && val != -1) {
*pval = val;
return TRUE;
} else {
*pval = 0;
return FALSE;
}
}
} | O2 | c | JS_AtomIsArrayIndex:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
testl %edx, %edx
js 0x360da
movq 0x18(%rdi), %rax
movq 0x68(%rax), %rax
movl %edx, %ecx
movq (%rax,%rcx,8), %rsi
movq 0x4(%rsi), %rax
shrq $0x3e, %rax
cmpl $0x1, %eax
jne 0x360d2
leaq 0x4(%rsp), %r14
movq %r14, %rdi
callq 0x3464c
testl %eax, %eax
setne %al
movl (%r14), %ecx
cmpl $-0x1, %ecx
setne %dl
testb %dl, %al
je 0x360d2
pushq $0x1
popq %rax
jmp 0x360d6
xorl %ecx, %ecx
xorl %eax, %eax
movl %ecx, (%rbx)
jmp 0x360e5
andl $0x7fffffff, %edx # imm = 0x7FFFFFFF
movl %edx, (%rbx)
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| JS_AtomIsArrayIndex:
push r14
push rbx
push rax
mov rbx, rsi
test edx, edx
js short loc_360DA
mov rax, [rdi+18h]
mov rax, [rax+68h]
mov ecx, edx
mov rsi, [rax+rcx*8]
mov rax, [rsi+4]
shr rax, 3Eh
cmp eax, 1
jnz short loc_360D2
lea r14, [rsp+18h+var_14]
mov rdi, r14
call is_num_string
test eax, eax
setnz al
mov ecx, [r14]
cmp ecx, 0FFFFFFFFh
setnz dl
test al, dl
jz short loc_360D2
push 1
pop rax
jmp short loc_360D6
loc_360D2:
xor ecx, ecx
xor eax, eax
loc_360D6:
mov [rbx], ecx
jmp short loc_360E5
loc_360DA:
and edx, 7FFFFFFFh
mov [rbx], edx
push 1
pop rax
loc_360E5:
add rsp, 8
pop rbx
pop r14
retn
| long long JS_AtomIsArrayIndex(long long a1, int *a2, int a3)
{
long long v3; // rax
long long v5; // rsi
int v6; // eax
int v7; // ecx
long long result; // rax
int v9[5]; // [rsp+0h] [rbp-14h] BYREF
v9[0] = HIDWORD(v3);
if ( a3 < 0 )
{
*a2 = a3 & 0x7FFFFFFF;
return 1LL;
}
else
{
v5 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL) + 8LL * (unsigned int)a3);
if ( *(_QWORD *)(v5 + 4) >> 62 == 1 && (v6 = is_num_string(v9, v5), v7 = v9[0], v9[0] != -1 && v6 != 0) )
{
result = 1LL;
}
else
{
v7 = 0;
result = 0LL;
}
*a2 = v7;
}
return result;
}
| JS_AtomIsArrayIndex:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
TEST EDX,EDX
JS 0x001360da
MOV RAX,qword ptr [RDI + 0x18]
MOV RAX,qword ptr [RAX + 0x68]
MOV ECX,EDX
MOV RSI,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSI + 0x4]
SHR RAX,0x3e
CMP EAX,0x1
JNZ 0x001360d2
LEA R14,[RSP + 0x4]
MOV RDI,R14
CALL 0x0013464c
TEST EAX,EAX
SETNZ AL
MOV ECX,dword ptr [R14]
CMP ECX,-0x1
SETNZ DL
TEST AL,DL
JZ 0x001360d2
PUSH 0x1
POP RAX
JMP 0x001360d6
LAB_001360d2:
XOR ECX,ECX
XOR EAX,EAX
LAB_001360d6:
MOV dword ptr [RBX],ECX
JMP 0x001360e5
LAB_001360da:
AND EDX,0x7fffffff
MOV dword ptr [RBX],EDX
PUSH 0x1
POP RAX
LAB_001360e5:
ADD RSP,0x8
POP RBX
POP R14
RET
|
int8 JS_AtomIsArrayIndex(long param_1,uint *param_2,uint param_3)
{
int iVar1;
int8 in_RAX;
int8 uVar2;
uint local_14;
local_14 = (uint)((ulong)in_RAX >> 0x20);
if (-1 < (int)param_3) {
if (((uint)((ulong)*(int8 *)
(*(long *)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + (ulong)param_3 * 8)
+ 4) >> 0x3e) == 1) &&
(iVar1 = is_num_string(&local_14), iVar1 != 0 && local_14 != 0xffffffff)) {
uVar2 = 1;
}
else {
local_14 = 0;
uVar2 = 0;
}
*param_2 = local_14;
return uVar2;
}
*param_2 = param_3 & 0x7fffffff;
return 1;
}
|
|
3,047 | vemit_tap | eloqsql/unittest/mytap/tap.c | static void
vemit_tap(int pass, char const *fmt, va_list ap)
{
fprintf(tapout, "%sok %d%s",
pass ? "" : "not ",
++g_test.last,
(fmt && *fmt) ? " - " : "");
if (fmt && *fmt)
vfprintf(tapout, fmt, ap);
fflush(tapout);
} | O3 | c | vemit_tap:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %eax
movq 0x2f2d54(%rip), %r15 # 0x383f98
movq (%r15), %rdi
testl %eax, %eax
leaq 0x4aba4(%rip), %rcx # 0xdbdf4
leaq 0x4e9ef(%rip), %rax # 0xdfc46
cmovneq %rax, %rcx
movl 0xb6e2f2(%rip), %r8d # 0xbff554
incl %r8d
movl %r8d, 0xb6e2e8(%rip) # 0xbff554
testq %rsi, %rsi
je 0x912b3
movq %rdx, %rbx
movq %rsi, %r14
cmpb $0x0, (%rsi)
leaq 0x4ab78(%rip), %r9 # 0xdbdf9
cmoveq %rax, %r9
leaq 0x4ab5e(%rip), %rdx # 0xdbdea
movl $0x1, %esi
xorl %eax, %eax
callq 0x291e0
cmpb $0x0, (%r14)
je 0x912cd
movq (%r15), %rdi
movl $0x1, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x29730
jmp 0x912cd
leaq 0x4ab30(%rip), %rdx # 0xdbdea
leaq 0x4e985(%rip), %r9 # 0xdfc46
movl $0x1, %esi
xorl %eax, %eax
callq 0x291e0
movq (%r15), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x293f0
| vemit_tap:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov eax, edi
mov r15, cs:stdout_ptr
mov rdi, [r15]
test eax, eax
lea rcx, aNot; "not "
lea rax, asc_DFC42+4; ""
cmovnz rcx, rax
mov r8d, cs:dword_BFF554
inc r8d
mov cs:dword_BFF554, r8d
test rsi, rsi
jz short loc_912B3
mov rbx, rdx
mov r14, rsi
cmp byte ptr [rsi], 0
lea r9, asc_DBDF9; " - "
cmovz r9, rax
lea rdx, aSokDS; "%sok %d%s"
mov esi, 1
xor eax, eax
call ___fprintf_chk
cmp byte ptr [r14], 0
jz short loc_912CD
mov rdi, [r15]
mov esi, 1
mov rdx, r14
mov rcx, rbx
call ___vfprintf_chk
jmp short loc_912CD
loc_912B3:
lea rdx, aSokDS; "%sok %d%s"
lea r9, asc_DFC42+4; ""
mov esi, 1
xor eax, eax
call ___fprintf_chk
loc_912CD:
mov rdi, [r15]
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _fflush
| long long vemit_tap(int a1, _BYTE *a2, long long a3)
{
const char *v3; // rcx
int v4; // r8d
const char *v6; // r9
v3 = "not ";
if ( a1 )
v3 = "";
v4 = ++dword_BFF554;
if ( a2 )
{
v6 = " - ";
if ( !*a2 )
v6 = "";
__fprintf_chk(stdout, 1LL, "%sok %d%s", v3, v4, v6);
if ( *a2 )
__vfprintf_chk(stdout, 1LL, a2, a3);
}
else
{
__fprintf_chk(stdout, 1LL, "%sok %d%s", v3, v4, "");
}
return fflush(stdout);
}
| vemit_tap:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EAX,EDI
MOV R15,qword ptr [0x00483f98]
MOV RDI,qword ptr [R15]
TEST EAX,EAX
LEA RCX,[0x1dbdf4]
LEA RAX,[0x1dfc46]
CMOVNZ RCX,RAX
MOV R8D,dword ptr [0x00cff554]
INC R8D
MOV dword ptr [0x00cff554],R8D
TEST RSI,RSI
JZ 0x001912b3
MOV RBX,RDX
MOV R14,RSI
CMP byte ptr [RSI],0x0
LEA R9,[0x1dbdf9]
CMOVZ R9,RAX
LEA RDX,[0x1dbdea]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x001291e0
CMP byte ptr [R14],0x0
JZ 0x001912cd
MOV RDI,qword ptr [R15]
MOV ESI,0x1
MOV RDX,R14
MOV RCX,RBX
CALL 0x00129730
JMP 0x001912cd
LAB_001912b3:
LEA RDX,[0x1dbdea]
LEA R9,[0x1dfc46]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x001291e0
LAB_001912cd:
MOV RDI,qword ptr [R15]
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x001293f0
|
void vemit_tap(int param_1,char *param_2,int8 param_3)
{
int *puVar1;
int *puVar2;
int *puVar3;
puVar1 = PTR_stdout_00483f98;
puVar2 = &DAT_001dbdf4;
if (param_1 != 0) {
puVar2 = &DAT_001dfc46;
}
DAT_00cff554 = DAT_00cff554 + 1;
if (param_2 == (char *)0x0) {
__fprintf_chk(*(int8 *)PTR_stdout_00483f98,1,"%sok %d%s",puVar2,DAT_00cff554,&DAT_001dfc46
);
}
else {
puVar3 = &DAT_001dbdf9;
if (*param_2 == '\0') {
puVar3 = &DAT_001dfc46;
}
__fprintf_chk(*(int8 *)PTR_stdout_00483f98,1,"%sok %d%s",puVar2,DAT_00cff554,puVar3);
if (*param_2 != '\0') {
__vfprintf_chk(*(int8 *)puVar1,1,param_2,param_3);
}
}
fflush(*(FILE **)puVar1);
return;
}
|
|
3,048 | my_utf16le_uni | eloqsql/strings/ctype-ucs2.c | static int
my_utf16le_uni(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e)
{
my_wc_t lo;
if (s + 2 > e)
return MY_CS_TOOSMALL2;
if ((*pwc= uint2korr(s)) < MY_UTF16_SURROGATE_HIGH_FIRST ||
(*pwc > MY_UTF16_SURROGATE_LOW_LAST))
return 2; /* [0000-D7FF,E000-FFFF] */
if (*pwc >= MY_UTF16_SURROGATE_LOW_FIRST)
return MY_CS_ILSEQ; /* [DC00-DFFF] Low surrogate part without high part */
if (s + 4 > e)
return MY_CS_TOOSMALL4;
s+= 2;
if ((lo= uint2korr(s)) < MY_UTF16_SURROGATE_LOW_FIRST ||
lo > MY_UTF16_SURROGATE_LOW_LAST)
return MY_CS_ILSEQ; /* Expected low surrogate part, got something else */
*pwc= 0x10000 + (((*pwc & 0x3FF) << 10) | (lo & 0x3FF));
return 4;
} | O0 | c | my_utf16le_uni:
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 $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x5704e
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x57110
movq -0x20(%rbp), %rax
movzwl (%rax), %eax
movq -0x18(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0xd800, %rax # imm = 0xD800
jb 0x57071
movq -0x18(%rbp), %rax
cmpq $0xdfff, (%rax) # imm = 0xDFFF
jbe 0x5707d
movl $0x2, -0x4(%rbp)
jmp 0x57110
movq -0x18(%rbp), %rax
cmpq $0xdc00, (%rax) # imm = 0xDC00
jb 0x57093
movl $0x0, -0x4(%rbp)
jmp 0x57110
movq -0x20(%rbp), %rax
addq $0x4, %rax
cmpq -0x28(%rbp), %rax
jbe 0x570aa
movl $0xffffff98, -0x4(%rbp) # imm = 0xFFFFFF98
jmp 0x57110
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movzwl (%rax), %eax
movq %rax, -0x30(%rbp)
cmpq $0xdc00, %rax # imm = 0xDC00
jb 0x570d3
cmpq $0xdfff, -0x30(%rbp) # imm = 0xDFFF
jbe 0x570dc
movl $0x0, -0x4(%rbp)
jmp 0x57110
movq -0x18(%rbp), %rax
movq (%rax), %rcx
andq $0x3ff, %rcx # imm = 0x3FF
shlq $0xa, %rcx
movq -0x30(%rbp), %rax
andq $0x3ff, %rax # imm = 0x3FF
orq %rax, %rcx
addq $0x10000, %rcx # imm = 0x10000
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x4, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_utf16le_uni:
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, 2
cmp rax, [rbp+var_28]
jbe short loc_5704E
mov [rbp+var_4], 0FFFFFF9Ah
jmp loc_57110
loc_5704E:
mov rax, [rbp+var_20]
movzx eax, word ptr [rax]
mov rcx, [rbp+var_18]
mov [rcx], rax
cmp rax, 0D800h
jb short loc_57071
mov rax, [rbp+var_18]
cmp qword ptr [rax], 0DFFFh
jbe short loc_5707D
loc_57071:
mov [rbp+var_4], 2
jmp loc_57110
loc_5707D:
mov rax, [rbp+var_18]
cmp qword ptr [rax], 0DC00h
jb short loc_57093
mov [rbp+var_4], 0
jmp short loc_57110
loc_57093:
mov rax, [rbp+var_20]
add rax, 4
cmp rax, [rbp+var_28]
jbe short loc_570AA
mov [rbp+var_4], 0FFFFFF98h
jmp short loc_57110
loc_570AA:
mov rax, [rbp+var_20]
add rax, 2
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
movzx eax, word ptr [rax]
mov [rbp+var_30], rax
cmp rax, 0DC00h
jb short loc_570D3
cmp [rbp+var_30], 0DFFFh
jbe short loc_570DC
loc_570D3:
mov [rbp+var_4], 0
jmp short loc_57110
loc_570DC:
mov rax, [rbp+var_18]
mov rcx, [rax]
and rcx, 3FFh
shl rcx, 0Ah
mov rax, [rbp+var_30]
and rax, 3FFh
or rcx, rax
add rcx, 10000h
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 4
loc_57110:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_utf16le_uni(long long a1, unsigned long long *a2, unsigned __int16 *a3, unsigned long long a4)
{
unsigned long long v4; // rax
unsigned long long v6; // [rsp+0h] [rbp-30h]
if ( (unsigned long long)(a3 + 1) <= a4 )
{
v4 = *a3;
*a2 = v4;
if ( v4 >= 0xD800 && *a2 <= 0xDFFF )
{
if ( *a2 < 0xDC00 )
{
if ( (unsigned long long)(a3 + 2) <= a4 )
{
v6 = a3[1];
if ( v6 >= 0xDC00 && v6 <= 0xDFFF )
{
*a2 = (v6 & 0x3FF | ((*a2 & 0x3FF) << 10)) + 0x10000;
return 4;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-104;
}
}
else
{
return 0;
}
}
else
{
return 2;
}
}
else
{
return (unsigned int)-102;
}
}
| my_utf16le_uni:
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,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0015704e
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x00157110
LAB_0015704e:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RCX],RAX
CMP RAX,0xd800
JC 0x00157071
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX],0xdfff
JBE 0x0015707d
LAB_00157071:
MOV dword ptr [RBP + -0x4],0x2
JMP 0x00157110
LAB_0015707d:
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX],0xdc00
JC 0x00157093
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00157110
LAB_00157093:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x4
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x001570aa
MOV dword ptr [RBP + -0x4],0xffffff98
JMP 0x00157110
LAB_001570aa:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
CMP RAX,0xdc00
JC 0x001570d3
CMP qword ptr [RBP + -0x30],0xdfff
JBE 0x001570dc
LAB_001570d3:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00157110
LAB_001570dc:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX]
AND RCX,0x3ff
SHL RCX,0xa
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x3ff
OR RCX,RAX
ADD RCX,0x10000
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x4
LAB_00157110:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_utf16le_uni(int8 param_1,ulong *param_2,ushort *param_3,ushort *param_4)
{
ushort uVar1;
ulong uVar2;
int4 local_c;
if (param_4 < param_3 + 1) {
local_c = 0xffffff9a;
}
else {
uVar1 = *param_3;
*param_2 = (ulong)uVar1;
if (((ulong)uVar1 < 0xd800) || (0xdfff < *param_2)) {
local_c = 2;
}
else if (*param_2 < 0xdc00) {
if (param_4 < param_3 + 2) {
local_c = 0xffffff98;
}
else {
uVar2 = (ulong)param_3[1];
if ((uVar2 < 0xdc00) || (0xdfff < uVar2)) {
local_c = 0;
}
else {
*param_2 = ((*param_2 & 0x3ff) << 10 | uVar2 & 0x3ff) + 0x10000;
local_c = 4;
}
}
}
else {
local_c = 0;
}
}
return local_c;
}
|
|
3,049 | coro::net::tcp_server::tcp_server(char const*, int) | tinyCoroLab/src/net/tcp.cpp | tcp_server::tcp_server(const char* addr, int port) noexcept
{
m_listenfd = socket(AF_INET, SOCK_STREAM, 0);
assert(m_listenfd != -1);
coro::utils::set_fd_noblock(m_listenfd);
memset(&m_servaddr, 0, sizeof(m_servaddr));
m_servaddr.sin_family = AF_INET;
m_servaddr.sin_port = htons(port);
if (addr != nullptr)
{
if (inet_pton(AF_INET, addr, &m_servaddr.sin_addr.s_addr) < 0)
{
log::info("addr invalid");
std::terminate();
}
}
else
{
m_servaddr.sin_addr.s_addr = htonl(INADDR_ANY);
}
if (bind(m_listenfd, (sockaddr*)&m_servaddr, sizeof(m_servaddr)) != 0)
{
log::info("server bind error");
std::terminate();
}
if (listen(m_listenfd, ::coro::config::kBacklog) != 0)
{
log::info("server listen error");
std::terminate();
}
} | O3 | cpp | coro::net::tcp_server::tcp_server(char const*, int):
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x8090
movl %eax, (%rbx)
movl %eax, %edi
callq 0x22ad8
movl $0x0, 0x14(%rbx)
movq $0x0, 0xc(%rbx)
movw $0x2, 0x8(%rbx)
rolw $0x8, %bp
movw %bp, 0xa(%rbx)
testq %r14, %r14
je 0x22295
leaq 0xc(%rbx), %rdx
movl $0x2, %edi
movq %r14, %rsi
callq 0x8500
testl %eax, %eax
js 0x222da
leaq 0x8(%rbx), %rsi
movl (%rbx), %edi
movl $0x10, %edx
callq 0x8050
testl %eax, %eax
jne 0x222be
movl (%rbx), %edi
movl $0x5, %esi
callq 0x8310
testl %eax, %eax
jne 0x222cc
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x4f07(%rip), %rdi # 0x271cc
callq 0x22389
jmp 0x222e6
leaq 0x4f0b(%rip), %rdi # 0x271de
callq 0x22389
jmp 0x222e6
leaq 0x4ede(%rip), %rdi # 0x271bf
callq 0x22389
callq 0x80b0
movq %rax, %rdi
callq 0x9caa
nop
| _ZN4coro3net10tcp_serverC2EPKci:
push rbp; Alternative name is 'coro::net::tcp_server::tcp_server(char const*, int)'
push r14
push rbx
mov ebp, edx
mov r14, rsi
mov rbx, rdi
mov edi, 2
mov esi, 1; int
xor edx, edx
call _socket
mov [rbx], eax
mov edi, eax; this
call _ZN4coro5utils14set_fd_noblockEi; coro::utils::set_fd_noblock(int)
mov dword ptr [rbx+14h], 0
mov qword ptr [rbx+0Ch], 0
mov word ptr [rbx+8], 2
rol bp, 8
mov [rbx+0Ah], bp
test r14, r14
jz short loc_22295
lea rdx, [rbx+0Ch]
mov edi, 2
mov rsi, r14
call _inet_pton
test eax, eax
js short loc_222DA
loc_22295:
lea rsi, [rbx+8]
mov edi, [rbx]
mov edx, 10h
call _bind
test eax, eax
jnz short loc_222BE
mov edi, [rbx]
mov esi, 5
call _listen
test eax, eax
jnz short loc_222CC
pop rbx
pop r14
pop rbp
retn
loc_222BE:
lea rdi, aServerBindErro; "server bind error"
call _ZN4coro3log4infoIJEEEvPKcDpRKT_
jmp short loc_222E6
loc_222CC:
lea rdi, aServerListenEr; "server listen error"
call _ZN4coro3log4infoIJEEEvPKcDpRKT_
jmp short loc_222E6
loc_222DA:
lea rdi, aAddrInvalid; "addr invalid"
call _ZN4coro3log4infoIJEEEvPKcDpRKT_
loc_222E6:
call __ZSt9terminatev; std::terminate(void)
mov rdi, rax
call __clang_call_terminate
| long long coro::net::tcp_server::tcp_server(coro::net::tcp_server *this, const char *a2, __int16 a3)
{
unsigned int v4; // eax
long long result; // rax
v4 = socket(2LL, 1LL, 0LL);
*(_DWORD *)this = v4;
coro::utils::set_fd_noblock((coro::utils *)v4, 1);
*((_DWORD *)this + 5) = 0;
*(_QWORD *)((char *)this + 12) = 0LL;
*((_WORD *)this + 4) = 2;
*((_WORD *)this + 5) = __ROL2__(a3, 8);
if ( a2 && (int)inet_pton(2LL, a2, (char *)this + 12) < 0 )
{
coro::log::info<>("addr invalid");
LABEL_9:
std::terminate();
}
if ( (unsigned int)bind(*(unsigned int *)this, (char *)this + 8, 16LL) )
{
coro::log::info<>("server bind error");
goto LABEL_9;
}
result = listen(*(unsigned int *)this, 5LL);
if ( (_DWORD)result )
{
coro::log::info<>("server listen error");
goto LABEL_9;
}
return result;
}
| tcp_server:
PUSH RBP
PUSH R14
PUSH RBX
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
MOV EDI,0x2
MOV ESI,0x1
XOR EDX,EDX
CALL 0x00108090
MOV dword ptr [RBX],EAX
MOV EDI,EAX
CALL 0x00122ad8
MOV dword ptr [RBX + 0x14],0x0
MOV qword ptr [RBX + 0xc],0x0
MOV word ptr [RBX + 0x8],0x2
ROL BP,0x8
MOV word ptr [RBX + 0xa],BP
TEST R14,R14
JZ 0x00122295
LEA RDX,[RBX + 0xc]
MOV EDI,0x2
MOV RSI,R14
CALL 0x00108500
TEST EAX,EAX
JS 0x001222da
LAB_00122295:
LEA RSI,[RBX + 0x8]
MOV EDI,dword ptr [RBX]
MOV EDX,0x10
CALL 0x00108050
TEST EAX,EAX
JNZ 0x001222be
MOV EDI,dword ptr [RBX]
MOV ESI,0x5
CALL 0x00108310
TEST EAX,EAX
JNZ 0x001222cc
POP RBX
POP R14
POP RBP
RET
LAB_001222be:
LEA RDI,[0x1271cc]
CALL 0x00122389
JMP 0x001222e6
LAB_001222cc:
LEA RDI,[0x1271de]
CALL 0x00122389
JMP 0x001222e6
LAB_001222da:
LEA RDI,[0x1271bf]
CALL 0x00122389
LAB_001222e6:
CALL 0x001080b0
|
/* coro::net::tcp_server::tcp_server(char const*, int) */
void __thiscall coro::net::tcp_server::tcp_server(tcp_server *this,char *param_1,int param_2)
{
int iVar1;
iVar1 = socket(2,1,0);
*(int *)this = iVar1;
utils::set_fd_noblock(iVar1);
*(int4 *)(this + 0x14) = 0;
*(int8 *)(this + 0xc) = 0;
*(int2 *)(this + 8) = 2;
*(ushort *)(this + 10) = (ushort)param_2 << 8 | (ushort)param_2 >> 8;
if (param_1 != (char *)0x0) {
iVar1 = inet_pton(2,param_1,this + 0xc);
if (iVar1 < 0) {
log::info<>("addr invalid");
goto LAB_001222e6;
}
}
iVar1 = bind(*(int *)this,(sockaddr *)(this + 8),0x10);
if (iVar1 == 0) {
iVar1 = listen(*(int *)this,5);
if (iVar1 == 0) {
return;
}
log::info<>("server listen error");
}
else {
/* try { // try from 001222be to 001222e5 has its CatchHandler @ 001222eb */
log::info<>("server bind error");
}
LAB_001222e6:
/* WARNING: Subroutine does not return */
std::terminate();
}
|
|
3,050 | maria_movepoint | eloqsql/storage/maria/ma_check.c | int maria_movepoint(register MARIA_HA *info, uchar *record,
MARIA_RECORD_POS oldpos, MARIA_RECORD_POS newpos,
uint prot_key)
{
uint i;
uchar *key_buff;
MARIA_SHARE *share= info->s;
MARIA_PAGE page;
DBUG_ENTER("maria_movepoint");
key_buff= info->lastkey_buff + share->base.max_key_length;
for (i=0 ; i < share->base.keys; i++)
{
if (i != prot_key && maria_is_key_active(share->state.key_map, i))
{
MARIA_KEY key;
(*share->keyinfo[i].make_key)(info, &key, i, key_buff, record, oldpos,
0);
if (key.keyinfo->flag & HA_NOSAME)
{ /* Change pointer direct */
MARIA_KEYDEF *keyinfo;
keyinfo=share->keyinfo+i;
if (_ma_search(info, &key, (uint32) (SEARCH_SAME | SEARCH_SAVE_BUFF),
share->state.key_root[i]))
DBUG_RETURN(-1);
_ma_page_setup(&page, info, keyinfo, info->last_keypage,
info->keyread_buff);
_ma_dpointer(share, info->int_keypos - page.node -
share->rec_reflength,newpos);
if (_ma_write_keypage(&page, PAGECACHE_LOCK_LEFT_UNLOCKED,
DFLT_INIT_HITS))
DBUG_RETURN(-1);
}
else
{ /* Change old key to new */
if (_ma_ck_delete(info, &key))
DBUG_RETURN(-1);
(*share->keyinfo[i].make_key)(info, &key, i, key_buff, record, newpos,
0);
if (_ma_ck_write(info, &key))
DBUG_RETURN(-1);
}
}
}
DBUG_RETURN(0);
} | O3 | c | maria_movepoint:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, -0x30(%rbp)
movq %rdx, -0x50(%rbp)
movq %rsi, -0x40(%rbp)
movq (%rdi), %r13
movl 0x3e8(%r13), %eax
testl %eax, %eax
je 0x7c0a7
movq %rdi, %r12
movl 0x408(%r13), %ecx
addq 0x388(%rdi), %rcx
movq %rcx, -0x38(%rbp)
movl %r8d, %edx
xorl %ebx, %ebx
leaq -0x70(%rbp), %r15
xorl %r14d, %r14d
movq %rdx, -0x48(%rbp)
cmpq %r14, %rdx
je 0x7c092
movq 0x140(%r13), %rcx
btq %r14, %rcx
jae 0x7c092
movq 0x570(%r13), %rax
movq $0x0, (%rsp)
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x50(%rbp), %r9
callq *0x110(%rax,%rbx)
movq -0x68(%rbp), %rax
testb $0x1, 0xa2(%rax)
jne 0x7bff9
movq %r12, %rdi
movq %r15, %rsi
callq 0x6de51
testb %al, %al
jne 0x7c0ab
movq 0x570(%r13), %rax
movq $0x0, (%rsp)
movq %r12, %rdi
leaq -0x70(%rbp), %r15
movq %r15, %rsi
movl %r14d, %edx
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x30(%rbp), %r9
callq *0x110(%rax,%rbx)
movq %r12, %rdi
movq %r15, %rsi
callq 0x6b154
jmp 0x7c07f
movq %r15, %rsi
movq 0x570(%r13), %r15
movq 0x118(%r13), %rax
movq (%rax,%r14,8), %rcx
movq %r12, %rdi
movl $0x24, %edx
callq 0x5cc1f
testl %eax, %eax
jne 0x7c0ab
addq %rbx, %r15
movq 0x380(%r12), %r8
movq 0x440(%r12), %rcx
leaq -0xa8(%rbp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x5fbac
movq 0x3b0(%r12), %rsi
movl -0x80(%rbp), %eax
subq %rax, %rsi
movl 0x740(%r13), %eax
subq %rax, %rsi
movq %r13, %rdi
movq -0x30(%rbp), %rdx
callq 0x5df58
leaq -0xa8(%rbp), %rdi
xorl %esi, %esi
movl $0x3, %edx
callq 0x5fd3d
testb %al, %al
jne 0x7c0ab
movl 0x3e8(%r13), %eax
movq -0x48(%rbp), %rdx
leaq -0x70(%rbp), %r15
incq %r14
movl %eax, %ecx
addq $0x118, %rbx # imm = 0x118
cmpq %rcx, %r14
jb 0x7bf55
xorl %eax, %eax
jmp 0x7c0b0
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| maria_movepoint:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov [rbp+var_30], rcx
mov [rbp+var_50], rdx
mov [rbp+var_40], rsi
mov r13, [rdi]
mov eax, [r13+3E8h]
test eax, eax
jz loc_7C0A7
mov r12, rdi
mov ecx, [r13+408h]
add rcx, [rdi+388h]
mov [rbp+var_38], rcx
mov edx, r8d
xor ebx, ebx
lea r15, [rbp+var_70]
xor r14d, r14d
mov [rbp+var_48], rdx
loc_7BF55:
cmp rdx, r14
jz loc_7C092
mov rcx, [r13+140h]
bt rcx, r14
jnb loc_7C092
mov rax, [r13+570h]
mov [rsp+0B0h+var_B0], 0
mov rdi, r12
mov rsi, r15
mov edx, r14d
mov rcx, [rbp+var_38]
mov r8, [rbp+var_40]
mov r9, [rbp+var_50]
call qword ptr [rax+rbx+110h]
mov rax, [rbp+var_68]
test byte ptr [rax+0A2h], 1
jnz short loc_7BFF9
mov rdi, r12
mov rsi, r15
call _ma_ck_delete
test al, al
jnz loc_7C0AB
mov rax, [r13+570h]
mov [rsp+0B0h+var_B0], 0
mov rdi, r12
lea r15, [rbp+var_70]
mov rsi, r15
mov edx, r14d
mov rcx, [rbp+var_38]
mov r8, [rbp+var_40]
mov r9, [rbp+var_30]
call qword ptr [rax+rbx+110h]
mov rdi, r12
mov rsi, r15
call _ma_ck_write
jmp loc_7C07F
loc_7BFF9:
mov rsi, r15
mov r15, [r13+570h]
mov rax, [r13+118h]
mov rcx, [rax+r14*8]
mov rdi, r12
mov edx, 24h ; '$'
call _ma_search
test eax, eax
jnz loc_7C0AB
add r15, rbx
mov r8, [r12+380h]
mov rcx, [r12+440h]
lea rdi, [rbp+var_A8]
mov rsi, r12
mov rdx, r15
call _ma_page_setup
mov rsi, [r12+3B0h]
mov eax, [rbp+var_80]
sub rsi, rax
mov eax, [r13+740h]
sub rsi, rax
mov rdi, r13
mov rdx, [rbp+var_30]
call _ma_dpointer
lea rdi, [rbp+var_A8]
xor esi, esi
mov edx, 3
call _ma_write_keypage
loc_7C07F:
test al, al
jnz short loc_7C0AB
mov eax, [r13+3E8h]
mov rdx, [rbp+var_48]
lea r15, [rbp+var_70]
loc_7C092:
inc r14
mov ecx, eax
add rbx, 118h
cmp r14, rcx
jb loc_7BF55
loc_7C0A7:
xor eax, eax
jmp short loc_7C0B0
loc_7C0AB:
mov eax, 0FFFFFFFFh
loc_7C0B0:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long maria_movepoint(long long *a1, long long a2, long long a3, long long a4, unsigned int a5)
{
long long v5; // r13
unsigned int v6; // eax
long long v7; // rdx
long long v8; // rbx
unsigned long long v9; // r14
long long v10; // rcx
char v11; // al
long long v12; // r15
long long *v14[5]; // [rsp+8h] [rbp-A8h] BYREF
unsigned int v15; // [rsp+30h] [rbp-80h]
long long v16[4]; // [rsp+40h] [rbp-70h] BYREF
long long v17; // [rsp+60h] [rbp-50h]
long long v18; // [rsp+68h] [rbp-48h]
long long v19; // [rsp+70h] [rbp-40h]
long long v20; // [rsp+78h] [rbp-38h]
long long v21; // [rsp+80h] [rbp-30h]
v21 = a4;
v17 = a3;
v19 = a2;
v5 = *a1;
v6 = *(_DWORD *)(*a1 + 1000);
if ( !v6 )
return 0LL;
v20 = a1[113] + *(unsigned int *)(v5 + 1032);
v7 = a5;
v8 = 0LL;
v9 = 0LL;
v18 = a5;
while ( 1 )
{
if ( v7 == v9 )
goto LABEL_12;
v10 = *(_QWORD *)(v5 + 320);
if ( !_bittest64(&v10, v9) )
goto LABEL_12;
(*(void ( **)(long long *, long long *, _QWORD, long long, long long, long long, _QWORD))(*(_QWORD *)(v5 + 1392)
+ v8
+ 272))(
a1,
v16,
(unsigned int)v9,
v20,
v19,
v17,
0LL);
if ( (*(_BYTE *)(v16[1] + 162) & 1) != 0 )
{
v12 = *(_QWORD *)(v5 + 1392);
if ( (unsigned int)ma_search((long long)a1, (long long)v16, 36LL, *(_QWORD *)(*(_QWORD *)(v5 + 280) + 8 * v9)) )
return 0xFFFFFFFFLL;
ma_page_setup((long long)v14, a1, v8 + v12, a1[136], a1[112]);
ma_dpointer(v5, a1[118] - v15 - *(unsigned int *)(v5 + 1856), v21);
v11 = ma_write_keypage(v14, 0, 3);
}
else
{
if ( ma_ck_delete((_QWORD **)a1, v16) )
return 0xFFFFFFFFLL;
(*(void ( **)(long long *, long long *, _QWORD, long long, long long, long long, _QWORD))(*(_QWORD *)(v5 + 1392)
+ v8
+ 272))(
a1,
v16,
(unsigned int)v9,
v20,
v19,
v21,
0LL);
v11 = ma_ck_write((long long)a1, (long long)v16);
}
if ( v11 )
return 0xFFFFFFFFLL;
v6 = *(_DWORD *)(v5 + 1000);
v7 = v18;
LABEL_12:
++v9;
v8 += 280LL;
if ( v9 >= v6 )
return 0LL;
}
}
| maria_movepoint:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV qword ptr [RBP + -0x30],RCX
MOV qword ptr [RBP + -0x50],RDX
MOV qword ptr [RBP + -0x40],RSI
MOV R13,qword ptr [RDI]
MOV EAX,dword ptr [R13 + 0x3e8]
TEST EAX,EAX
JZ 0x0017c0a7
MOV R12,RDI
MOV ECX,dword ptr [R13 + 0x408]
ADD RCX,qword ptr [RDI + 0x388]
MOV qword ptr [RBP + -0x38],RCX
MOV EDX,R8D
XOR EBX,EBX
LEA R15,[RBP + -0x70]
XOR R14D,R14D
MOV qword ptr [RBP + -0x48],RDX
LAB_0017bf55:
CMP RDX,R14
JZ 0x0017c092
MOV RCX,qword ptr [R13 + 0x140]
BT RCX,R14
JNC 0x0017c092
MOV RAX,qword ptr [R13 + 0x570]
MOV qword ptr [RSP],0x0
MOV RDI,R12
MOV RSI,R15
MOV EDX,R14D
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x40]
MOV R9,qword ptr [RBP + -0x50]
CALL qword ptr [RAX + RBX*0x1 + 0x110]
MOV RAX,qword ptr [RBP + -0x68]
TEST byte ptr [RAX + 0xa2],0x1
JNZ 0x0017bff9
MOV RDI,R12
MOV RSI,R15
CALL 0x0016de51
TEST AL,AL
JNZ 0x0017c0ab
MOV RAX,qword ptr [R13 + 0x570]
MOV qword ptr [RSP],0x0
MOV RDI,R12
LEA R15,[RBP + -0x70]
MOV RSI,R15
MOV EDX,R14D
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x40]
MOV R9,qword ptr [RBP + -0x30]
CALL qword ptr [RAX + RBX*0x1 + 0x110]
MOV RDI,R12
MOV RSI,R15
CALL 0x0016b154
JMP 0x0017c07f
LAB_0017bff9:
MOV RSI,R15
MOV R15,qword ptr [R13 + 0x570]
MOV RAX,qword ptr [R13 + 0x118]
MOV RCX,qword ptr [RAX + R14*0x8]
MOV RDI,R12
MOV EDX,0x24
CALL 0x0015cc1f
TEST EAX,EAX
JNZ 0x0017c0ab
ADD R15,RBX
MOV R8,qword ptr [R12 + 0x380]
MOV RCX,qword ptr [R12 + 0x440]
LEA RDI,[RBP + -0xa8]
MOV RSI,R12
MOV RDX,R15
CALL 0x0015fbac
MOV RSI,qword ptr [R12 + 0x3b0]
MOV EAX,dword ptr [RBP + -0x80]
SUB RSI,RAX
MOV EAX,dword ptr [R13 + 0x740]
SUB RSI,RAX
MOV RDI,R13
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x0015df58
LEA RDI,[RBP + -0xa8]
XOR ESI,ESI
MOV EDX,0x3
CALL 0x0015fd3d
LAB_0017c07f:
TEST AL,AL
JNZ 0x0017c0ab
MOV EAX,dword ptr [R13 + 0x3e8]
MOV RDX,qword ptr [RBP + -0x48]
LEA R15,[RBP + -0x70]
LAB_0017c092:
INC R14
MOV ECX,EAX
ADD RBX,0x118
CMP R14,RCX
JC 0x0017bf55
LAB_0017c0a7:
XOR EAX,EAX
JMP 0x0017c0b0
LAB_0017c0ab:
MOV EAX,0xffffffff
LAB_0017c0b0:
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
maria_movepoint(long *param_1,int8 param_2,int8 param_3,int8 param_4,ulong param_5
)
{
long lVar1;
long lVar2;
char cVar3;
uint uVar4;
int iVar5;
long lVar6;
ulong uVar7;
int1 local_b0 [40];
uint local_88;
int1 local_78 [8];
long local_70;
int8 local_58;
ulong local_50;
int8 local_48;
long local_40;
int8 local_38;
lVar1 = *param_1;
uVar4 = *(uint *)(lVar1 + 1000);
if (uVar4 != 0) {
local_40 = (ulong)*(uint *)(lVar1 + 0x408) + param_1[0x71];
param_5 = param_5 & 0xffffffff;
lVar6 = 0;
uVar7 = 0;
local_58 = param_3;
local_50 = param_5;
local_48 = param_2;
local_38 = param_4;
do {
if ((param_5 != uVar7) && ((*(ulong *)(lVar1 + 0x140) >> (uVar7 & 0x3f) & 1) != 0)) {
(**(code **)(*(long *)(lVar1 + 0x570) + 0x110 + lVar6))
(param_1,local_78,uVar7 & 0xffffffff,local_40,local_48,local_58,0);
if ((*(byte *)(local_70 + 0xa2) & 1) == 0) {
cVar3 = _ma_ck_delete(param_1,local_78);
if (cVar3 != '\0') {
return 0xffffffff;
}
(**(code **)(*(long *)(lVar1 + 0x570) + 0x110 + lVar6))
(param_1,local_78,uVar7 & 0xffffffff,local_40,local_48,local_38,0);
cVar3 = _ma_ck_write(param_1,local_78);
}
else {
lVar2 = *(long *)(lVar1 + 0x570);
iVar5 = _ma_search(param_1,local_78,0x24,
*(int8 *)(*(long *)(lVar1 + 0x118) + uVar7 * 8));
if (iVar5 != 0) {
return 0xffffffff;
}
_ma_page_setup(local_b0,param_1,lVar2 + lVar6,param_1[0x88],param_1[0x70]);
_ma_dpointer(lVar1,(param_1[0x76] - (ulong)local_88) - (ulong)*(uint *)(lVar1 + 0x740),
local_38);
cVar3 = _ma_write_keypage(local_b0,0,3);
}
if (cVar3 != '\0') {
return 0xffffffff;
}
uVar4 = *(uint *)(lVar1 + 1000);
param_5 = local_50;
}
uVar7 = uVar7 + 1;
lVar6 = lVar6 + 0x118;
} while (uVar7 < uVar4);
}
return 0;
}
|
|
3,051 | my_hash_sort_utf32_nopad | eloqsql/strings/ctype-ucs2.c | static void
my_hash_sort_utf32_nopad(CHARSET_INFO *cs, const uchar *s, size_t slen,
ulong *nr1, ulong *nr2)
{
my_wc_t wc;
int res;
const uchar *e= s + slen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
register ulong m1= *nr1, m2= *nr2;
while ((res= my_utf32_uni(cs, &wc, (uchar*) s, (uchar*) e)) > 0)
{
my_tosort_utf32(uni_plane, &wc);
MY_HASH_ADD(m1, m2, (uint) (wc >> 24));
MY_HASH_ADD(m1, m2, (uint) (wc >> 16) & 0xFF);
MY_HASH_ADD(m1, m2, (uint) (wc >> 8) & 0xFF);
MY_HASH_ADD(m1, m2, (uint) (wc & 0xFF));
s+= res;
}
*nr1= m1;
*nr2= m2;
} | O3 | c | my_hash_sort_utf32_nopad:
movq (%rcx), %r10
movq (%r8), %rax
cmpq $0x4, %rdx
jl 0xd3045
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
addq %rsi, %rdx
movq 0x78(%rdi), %rdi
movl $0xff, %r9d
movzbl (%rsi), %ebx
shll $0x18, %ebx
movzbl 0x1(%rsi), %r11d
shll $0x10, %r11d
orl %ebx, %r11d
cmpl $0x10ffff, %r11d # imm = 0x10FFFF
ja 0xd303f
movzbl 0x2(%rsi), %r14d
shll $0x8, %r14d
movzbl 0x3(%rsi), %ebx
orq %rbx, %r14
orq %r11, %r14
movl $0xfffd, %r11d # imm = 0xFFFD
cmpq (%rdi), %r14
ja 0xd2f95
movq 0x8(%rdi), %r11
movl %r14d, %r15d
shrl $0x8, %r15d
movq (%r11,%r15,8), %r15
movq %r14, %r11
testq %r15, %r15
je 0xd2f95
leaq (%rbx,%rbx,2), %r11
movl 0x8(%r15,%r11,4), %r11d
movl %r10d, %ebx
andl $0x3f, %ebx
addq %rax, %rbx
movl %r11d, %r14d
shrl $0x18, %r14d
imulq %rbx, %r14
movq %r10, %rbx
shlq $0x8, %rbx
addq %r14, %rbx
xorq %r10, %rbx
movl %ebx, %r10d
andl $0x3f, %r10d
addq %rax, %r10
addq $0x3, %r10
movl %r11d, %r14d
shrl $0x10, %r14d
andl %r9d, %r14d
imulq %r10, %r14
movq %rbx, %r10
shlq $0x8, %r10
addq %r14, %r10
xorq %rbx, %r10
movl %r10d, %ebx
andl $0x3f, %ebx
addq %rax, %rbx
addq $0x6, %rbx
movl %r11d, %r14d
shrl $0x8, %r14d
andl %r9d, %r14d
imulq %rbx, %r14
movq %r10, %rbx
shlq $0x8, %rbx
addq %r14, %rbx
xorq %r10, %rbx
movl %ebx, %r10d
andl $0x3f, %r10d
addq %rax, %r10
addq $0x9, %r10
movzbl %r11b, %r11d
imulq %r10, %r11
movq %rbx, %r10
shlq $0x8, %r10
addq %r11, %r10
xorq %rbx, %r10
addq $0xc, %rax
leaq 0x8(%rsi), %r11
addq $0x4, %rsi
cmpq %rdx, %r11
jbe 0xd2f38
popq %rbx
popq %r14
popq %r15
popq %rbp
movq %r10, (%rcx)
movq %rax, (%r8)
retq
| my_hash_sort_utf32_nopad:
mov r10, [rcx]
mov rax, [r8]
cmp rdx, 4
jl loc_D3045
push rbp
mov rbp, rsp
push r15
push r14
push rbx
add rdx, rsi
mov rdi, [rdi+78h]
mov r9d, 0FFh
loc_D2F38:
movzx ebx, byte ptr [rsi]
shl ebx, 18h
movzx r11d, byte ptr [rsi+1]
shl r11d, 10h
or r11d, ebx
cmp r11d, offset unk_10FFFF
ja loc_D303F
movzx r14d, byte ptr [rsi+2]
shl r14d, 8
movzx ebx, byte ptr [rsi+3]
or r14, rbx
or r14, r11
mov r11d, 0FFFDh
cmp r14, [rdi]
ja short loc_D2F95
mov r11, [rdi+8]
mov r15d, r14d
shr r15d, 8
mov r15, [r11+r15*8]
mov r11, r14
test r15, r15
jz short loc_D2F95
lea r11, [rbx+rbx*2]
mov r11d, [r15+r11*4+8]
loc_D2F95:
mov ebx, r10d
and ebx, 3Fh
add rbx, rax
mov r14d, r11d
shr r14d, 18h
imul r14, rbx
mov rbx, r10
shl rbx, 8
add rbx, r14
xor rbx, r10
mov r10d, ebx
and r10d, 3Fh
add r10, rax
add r10, 3
mov r14d, r11d
shr r14d, 10h
and r14d, r9d
imul r14, r10
mov r10, rbx
shl r10, 8
add r10, r14
xor r10, rbx
mov ebx, r10d
and ebx, 3Fh
add rbx, rax
add rbx, 6
mov r14d, r11d
shr r14d, 8
and r14d, r9d
imul r14, rbx
mov rbx, r10
shl rbx, 8
add rbx, r14
xor rbx, r10
mov r10d, ebx
and r10d, 3Fh
add r10, rax
add r10, 9
movzx r11d, r11b
imul r11, r10
mov r10, rbx
shl r10, 8
add r10, r11
xor r10, rbx
add rax, 0Ch
lea r11, [rsi+8]
add rsi, 4
cmp r11, rdx
jbe loc_D2F38
loc_D303F:
pop rbx
pop r14
pop r15
pop rbp
loc_D3045:
mov [rcx], r10
mov [r8], rax
retn
| long long my_hash_sort_utf32_nopad(long long a1, unsigned __int8 *a2, long long a3, long long *a4, long long *a5)
{
long long v5; // r10
long long result; // rax
unsigned __int8 *v7; // rdx
unsigned long long *v8; // rdi
long long v9; // r11
long long v10; // rbx
unsigned long long v11; // r14
unsigned int v12; // r11d
long long v13; // r15
long long v14; // r10
long long v15; // r14
unsigned __int8 *v16; // r11
v5 = *a4;
result = *a5;
if ( a3 >= 4 )
{
v7 = &a2[a3];
v8 = *(unsigned long long **)(a1 + 120);
do
{
v9 = (*a2 << 24) | (a2[1] << 16);
if ( (unsigned int)v9 > (unsigned int)&unk_10FFFF )
break;
v10 = a2[3];
v11 = v9 | v10 | (a2[2] << 8);
v12 = 65533;
if ( v11 <= *v8 )
{
v13 = *(_QWORD *)(v8[1] + 8LL * ((unsigned int)v11 >> 8));
v12 = v11;
if ( v13 )
v12 = *(_DWORD *)(v13 + 12 * v10 + 8);
}
v14 = v5 ^ ((result + (v5 & 0x3F)) * HIBYTE(v12) + (v5 << 8)) ^ ((result
+ (((unsigned __int8)v5 ^ (unsigned __int8)((result + (v5 & 0x3F)) * HIBYTE(v12))) & 0x3F)
+ 3)
* BYTE2(v12)
+ ((v5 ^ ((result + (v5 & 0x3F)) * HIBYTE(v12)
+ (v5 << 8))) << 8));
v15 = (result + (v14 & 0x3F) + 6) * BYTE1(v12);
v5 = v14 ^ (v15 + (v14 << 8)) ^ ((result + (((unsigned __int8)v14 ^ (unsigned __int8)v15) & 0x3F) + 9)
* (unsigned __int8)v12
+ ((v14 ^ (v15 + (v14 << 8))) << 8));
result += 12LL;
v16 = a2 + 8;
a2 += 4;
}
while ( v16 <= v7 );
}
*a4 = v5;
*a5 = result;
return result;
}
| my_hash_sort_utf32_nopad:
MOV R10,qword ptr [RCX]
MOV RAX,qword ptr [R8]
CMP RDX,0x4
JL 0x001d3045
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
ADD RDX,RSI
MOV RDI,qword ptr [RDI + 0x78]
MOV R9D,0xff
LAB_001d2f38:
MOVZX EBX,byte ptr [RSI]
SHL EBX,0x18
MOVZX R11D,byte ptr [RSI + 0x1]
SHL R11D,0x10
OR R11D,EBX
CMP R11D,0x10ffff
JA 0x001d303f
MOVZX R14D,byte ptr [RSI + 0x2]
SHL R14D,0x8
MOVZX EBX,byte ptr [RSI + 0x3]
OR R14,RBX
OR R14,R11
MOV R11D,0xfffd
CMP R14,qword ptr [RDI]
JA 0x001d2f95
MOV R11,qword ptr [RDI + 0x8]
MOV R15D,R14D
SHR R15D,0x8
MOV R15,qword ptr [R11 + R15*0x8]
MOV R11,R14
TEST R15,R15
JZ 0x001d2f95
LEA R11,[RBX + RBX*0x2]
MOV R11D,dword ptr [R15 + R11*0x4 + 0x8]
LAB_001d2f95:
MOV EBX,R10D
AND EBX,0x3f
ADD RBX,RAX
MOV R14D,R11D
SHR R14D,0x18
IMUL R14,RBX
MOV RBX,R10
SHL RBX,0x8
ADD RBX,R14
XOR RBX,R10
MOV R10D,EBX
AND R10D,0x3f
ADD R10,RAX
ADD R10,0x3
MOV R14D,R11D
SHR R14D,0x10
AND R14D,R9D
IMUL R14,R10
MOV R10,RBX
SHL R10,0x8
ADD R10,R14
XOR R10,RBX
MOV EBX,R10D
AND EBX,0x3f
ADD RBX,RAX
ADD RBX,0x6
MOV R14D,R11D
SHR R14D,0x8
AND R14D,R9D
IMUL R14,RBX
MOV RBX,R10
SHL RBX,0x8
ADD RBX,R14
XOR RBX,R10
MOV R10D,EBX
AND R10D,0x3f
ADD R10,RAX
ADD R10,0x9
MOVZX R11D,R11B
IMUL R11,R10
MOV R10,RBX
SHL R10,0x8
ADD R10,R11
XOR R10,RBX
ADD RAX,0xc
LEA R11,[RSI + 0x8]
ADD RSI,0x4
CMP R11,RDX
JBE 0x001d2f38
LAB_001d303f:
POP RBX
POP R14
POP R15
POP RBP
LAB_001d3045:
MOV qword ptr [RCX],R10
MOV qword ptr [R8],RAX
RET
|
void my_hash_sort_utf32_nopad(long param_1,byte *param_2,long param_3,ulong *param_4,long *param_5)
{
byte *pbVar1;
long lVar2;
long lVar3;
byte *pbVar4;
ulong uVar5;
uint uVar6;
ulong uVar7;
ulong uVar8;
uVar5 = *param_4;
lVar3 = *param_5;
if (3 < param_3) {
pbVar4 = param_2 + param_3;
do {
uVar6 = (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18;
if (0x10ffff < uVar6) break;
uVar8 = (ulong)CONCAT11(param_2[2],param_2[3]) | (ulong)uVar6;
uVar7 = 0xfffd;
if ((uVar8 <= **(ulong **)(param_1 + 0x78)) &&
(lVar2 = *(long *)((*(ulong **)(param_1 + 0x78))[1] + (uVar8 >> 8) * 8), uVar7 = uVar8,
lVar2 != 0)) {
uVar7 = (ulong)*(uint *)(lVar2 + 8 + (ulong)param_2[3] * 0xc);
}
uVar5 = uVar5 * 0x100 + (uVar7 >> 0x18) * ((ulong)((uint)uVar5 & 0x3f) + lVar3) ^ uVar5;
uVar5 = uVar5 * 0x100 +
(ulong)((uint)(uVar7 >> 0x10) & 0xff) * ((ulong)((uint)uVar5 & 0x3f) + lVar3 + 3) ^
uVar5;
uVar5 = uVar5 * 0x100 +
(ulong)((uint)(uVar7 >> 8) & 0xff) * ((ulong)((uint)uVar5 & 0x3f) + lVar3 + 6) ^ uVar5
;
uVar5 = uVar5 * 0x100 + (uVar7 & 0xff) * ((ulong)((uint)uVar5 & 0x3f) + lVar3 + 9) ^ uVar5;
lVar3 = lVar3 + 0xc;
pbVar1 = param_2 + 8;
param_2 = param_2 + 4;
} while (pbVar1 <= pbVar4);
}
*param_4 = uVar5;
*param_5 = lVar3;
return;
}
|
|
3,052 | my_strdup | eloqsql/mysys/my_malloc.c | char *my_strdup(PSI_memory_key key, const char *from, myf my_flags)
{
char *ptr;
size_t length= strlen(from)+1;
DBUG_ENTER("my_strdup");
if ((ptr= (char*) my_malloc(key, length, my_flags)))
memcpy(ptr, from, length);
DBUG_RETURN(ptr);
} | O0 | c | my_strdup:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x37400
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movl -0x4(%rbp), %edi
movq -0x28(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x7fad0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x7ff9f
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x370c0
jmp 0x7ffa1
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_strdup:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rdi, [rbp+var_10]
call _strlen
add rax, 1
mov [rbp+var_28], rax
mov edi, [rbp+var_4]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_18]
call my_malloc
mov [rbp+var_20], rax
cmp rax, 0
jz short loc_7FF9F
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_28]
call _memcpy
loc_7FF9F:
jmp short $+2
loc_7FFA1:
mov rax, [rbp+var_20]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
add rsp, 30h
pop rbp
retn
| long long my_strdup(unsigned int a1, long long a2, int a3)
{
unsigned long long v4; // [rsp+8h] [rbp-28h]
long long v5; // [rsp+10h] [rbp-20h]
v4 = strlen(a2) + 1;
v5 = my_malloc(a1, v4, a3);
if ( v5 )
memcpy(v5, a2, v4);
return v5;
}
| my_strdup:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00137400
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x0017fad0
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JZ 0x0017ff9f
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x001370c0
LAB_0017ff9f:
JMP 0x0017ffa1
LAB_0017ffa1:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
ADD RSP,0x30
POP RBP
RET
|
void * my_strdup(int4 param_1,char *param_2,int8 param_3)
{
size_t sVar1;
void *__dest;
sVar1 = strlen(param_2);
__dest = (void *)my_malloc(param_1,sVar1 + 1,param_3);
if (__dest != (void *)0x0) {
memcpy(__dest,param_2,sVar1 + 1);
}
return __dest;
}
|
|
3,053 | HMAC_init | corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/keygen.c | static void HMAC_init(HMAC_SHA256_CTX *ctx, const void *K, size_t K_len)
{
size_t i;
if (K == NULL) { /* reuse h_ipad and h_opad */
sha256_hcopy(ctx->ctx.h, ctx->h_ipad);
ctx->ctx.N = 64;
vec_zero(ctx->ctx.buf, sizeof(ctx->ctx.buf));
ctx->ctx.off = 0;
return;
}
vec_zero(ctx->tail.c, sizeof(ctx->tail));
if (K_len > 64) {
sha256_init(&ctx->ctx);
sha256_update(&ctx->ctx, K, K_len);
sha256_final(ctx->tail.c, &ctx->ctx);
} else {
sha256_bcopy(ctx->tail.c, K, K_len);
}
for (i = 0; i < 64/sizeof(limb_t); i++)
ctx->tail.l[i] ^= (limb_t)0x3636363636363636;
sha256_init(&ctx->ctx);
sha256_update(&ctx->ctx, ctx->tail.c, 64);
sha256_hcopy(ctx->h_ipad, ctx->ctx.h);
for (i = 0; i < 64/sizeof(limb_t); i++)
ctx->tail.l[i] ^= (limb_t)(0x3636363636363636 ^ 0x5c5c5c5c5c5c5c5c);
sha256_init_h(ctx->h_opad);
sha256_block_data_order(ctx->h_opad, ctx->tail.c, 1);
vec_zero(ctx->tail.c, sizeof(ctx->tail));
ctx->tail.c[32] = 0x80;
ctx->tail.c[62] = 3; /* (64+32)*8 in big endian */
ctx->tail.c[63] = 0;
} | O3 | c | HMAC_init:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
testq %rsi, %rsi
je 0x666e4
leaq 0xb0(%rbx), %r14
movl $0x16, %eax
movq $0x0, (%rbx,%rax,8)
incq %rax
cmpq $0x1e, %rax
jne 0x66675
cmpq $0x41, %rdx
jb 0x6671c
movaps 0x26239(%rip), %xmm0 # 0x8c8d0
movups %xmm0, (%rbx)
movaps 0x2623f(%rip), %xmm0 # 0x8c8e0
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x20(%rbx)
leaq 0x28(%rbx), %rax
movl $0x5, %ecx
movq $0x0, (%rbx,%rcx,8)
incq %rcx
cmpq $0xd, %rcx
jne 0x666b6
movq $0x0, 0x68(%rbx)
movq %rbx, %rdi
callq 0x65f5a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x66056
jmp 0x66724
leaq 0x70(%rbx), %rsi
movq %rbx, %rdi
callq 0x6d210
movq $0x40, 0x20(%rbx)
leaq 0x28(%rbx), %rax
xorl %ecx, %ecx
movq $0x0, (%rax,%rcx,8)
incq %rcx
cmpq $0x8, %rcx
jne 0x666fe
movq $0x0, 0x68(%rbx)
jmp 0x66807
movq %r14, %rdi
callq 0x6d1f0
movl $0x16, %eax
movabsq $0x3636363636363636, %rcx # imm = 0x3636363636363636
xorq %rcx, (%rbx,%rax,8)
incq %rax
cmpq $0x1e, %rax
jne 0x66733
movaps 0x26189(%rip), %xmm0 # 0x8c8d0
movups %xmm0, (%rbx)
movaps 0x2618f(%rip), %xmm0 # 0x8c8e0
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x20(%rbx)
leaq 0x28(%rbx), %rax
movl $0x5, %ecx
movq $0x0, (%rbx,%rcx,8)
incq %rcx
cmpq $0xd, %rcx
jne 0x66766
movq $0x0, 0x68(%rbx)
movl $0x40, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x65f5a
leaq 0x70(%rbx), %rdi
movq %rbx, %rsi
callq 0x6d210
xorl %eax, %eax
movabsq $0x6a6a6a6a6a6a6a6a, %rcx # imm = 0x6A6A6A6A6A6A6A6A
xorq %rcx, (%r14,%rax,8)
incq %rax
cmpq $0x8, %rax
jne 0x667a7
leaq 0x90(%rbx), %rdi
movaps 0x2610e(%rip), %xmm0 # 0x8c8d0
movups %xmm0, 0x90(%rbx)
movaps 0x26110(%rip), %xmm0 # 0x8c8e0
movups %xmm0, 0xa0(%rbx)
movl $0x1, %edx
movq %r14, %rsi
callq 0x6ae40
xorl %eax, %eax
movq $0x0, (%r14,%rax,8)
incq %rax
cmpq $0x8, %rax
jne 0x667e6
movb $-0x80, 0xd0(%rbx)
movw $0x3, 0xee(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
| HMAC_init:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
test rsi, rsi
jz short loc_666E4
lea r14, [rbx+0B0h]
mov eax, 16h
loc_66675:
mov qword ptr [rbx+rax*8], 0
inc rax
cmp rax, 1Eh
jnz short loc_66675
cmp rdx, 41h ; 'A'
jb loc_6671C
movaps xmm0, cs:xmmword_8C8D0
movups xmmword ptr [rbx], xmm0
movaps xmm0, cs:xmmword_8C8E0
movups xmmword ptr [rbx+10h], xmm0
mov qword ptr [rbx+20h], 0
lea rax, [rbx+28h]
mov ecx, 5
loc_666B6:
mov qword ptr [rbx+rcx*8], 0
inc rcx
cmp rcx, 0Dh
jnz short loc_666B6
mov qword ptr [rbx+68h], 0
mov rdi, rbx
call sha256_update
mov rdi, r14
mov rsi, rbx
call sha256_final
jmp short loc_66724
loc_666E4:
lea rsi, [rbx+70h]
mov rdi, rbx
call blst_sha256_hcopy
mov qword ptr [rbx+20h], 40h ; '@'
lea rax, [rbx+28h]
xor ecx, ecx
loc_666FE:
mov qword ptr [rax+rcx*8], 0
inc rcx
cmp rcx, 8
jnz short loc_666FE
mov qword ptr [rbx+68h], 0
jmp loc_66807
loc_6671C:
mov rdi, r14
call blst_sha256_bcopy
loc_66724:
mov eax, 16h
mov rcx, 3636363636363636h
loc_66733:
xor [rbx+rax*8], rcx
inc rax
cmp rax, 1Eh
jnz short loc_66733
movaps xmm0, cs:xmmword_8C8D0
movups xmmword ptr [rbx], xmm0
movaps xmm0, cs:xmmword_8C8E0
movups xmmword ptr [rbx+10h], xmm0
mov qword ptr [rbx+20h], 0
lea rax, [rbx+28h]
mov ecx, 5
loc_66766:
mov qword ptr [rbx+rcx*8], 0
inc rcx
cmp rcx, 0Dh
jnz short loc_66766
mov qword ptr [rbx+68h], 0
mov edx, 40h ; '@'
mov rdi, rbx
mov rsi, r14
call sha256_update
lea rdi, [rbx+70h]
mov rsi, rbx
call blst_sha256_hcopy
xor eax, eax
mov rcx, 6A6A6A6A6A6A6A6Ah
loc_667A7:
xor [r14+rax*8], rcx
inc rax
cmp rax, 8
jnz short loc_667A7
lea rdi, [rbx+90h]
movaps xmm0, cs:xmmword_8C8D0
movups xmmword ptr [rbx+90h], xmm0
movaps xmm0, cs:xmmword_8C8E0
movups xmmword ptr [rbx+0A0h], xmm0
mov edx, 1
mov rsi, r14
call blst_sha256_block_data_order
xor eax, eax
loc_667E6:
mov qword ptr [r14+rax*8], 0
inc rax
cmp rax, 8
jnz short loc_667E6
mov byte ptr [rbx+0D0h], 80h
mov word ptr [rbx+0EEh], 3
loc_66807:
pop rbx
pop r14
pop rbp
retn
| HMAC_init:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
TEST RSI,RSI
JZ 0x001666e4
LEA R14,[RBX + 0xb0]
MOV EAX,0x16
LAB_00166675:
MOV qword ptr [RBX + RAX*0x8],0x0
INC RAX
CMP RAX,0x1e
JNZ 0x00166675
CMP RDX,0x41
JC 0x0016671c
MOVAPS XMM0,xmmword ptr [0x0018c8d0]
MOVUPS xmmword ptr [RBX],XMM0
MOVAPS XMM0,xmmword ptr [0x0018c8e0]
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOV qword ptr [RBX + 0x20],0x0
LEA RAX,[RBX + 0x28]
MOV ECX,0x5
LAB_001666b6:
MOV qword ptr [RBX + RCX*0x8],0x0
INC RCX
CMP RCX,0xd
JNZ 0x001666b6
MOV qword ptr [RBX + 0x68],0x0
MOV RDI,RBX
CALL 0x00165f5a
MOV RDI,R14
MOV RSI,RBX
CALL 0x00166056
JMP 0x00166724
LAB_001666e4:
LEA RSI,[RBX + 0x70]
MOV RDI,RBX
CALL 0x0016d210
MOV qword ptr [RBX + 0x20],0x40
LEA RAX,[RBX + 0x28]
XOR ECX,ECX
LAB_001666fe:
MOV qword ptr [RAX + RCX*0x8],0x0
INC RCX
CMP RCX,0x8
JNZ 0x001666fe
MOV qword ptr [RBX + 0x68],0x0
JMP 0x00166807
LAB_0016671c:
MOV RDI,R14
CALL 0x0016d1f0
LAB_00166724:
MOV EAX,0x16
MOV RCX,0x3636363636363636
LAB_00166733:
XOR qword ptr [RBX + RAX*0x8],RCX
INC RAX
CMP RAX,0x1e
JNZ 0x00166733
MOVAPS XMM0,xmmword ptr [0x0018c8d0]
MOVUPS xmmword ptr [RBX],XMM0
MOVAPS XMM0,xmmword ptr [0x0018c8e0]
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOV qword ptr [RBX + 0x20],0x0
LEA RAX,[RBX + 0x28]
MOV ECX,0x5
LAB_00166766:
MOV qword ptr [RBX + RCX*0x8],0x0
INC RCX
CMP RCX,0xd
JNZ 0x00166766
MOV qword ptr [RBX + 0x68],0x0
MOV EDX,0x40
MOV RDI,RBX
MOV RSI,R14
CALL 0x00165f5a
LEA RDI,[RBX + 0x70]
MOV RSI,RBX
CALL 0x0016d210
XOR EAX,EAX
MOV RCX,0x6a6a6a6a6a6a6a6a
LAB_001667a7:
XOR qword ptr [R14 + RAX*0x8],RCX
INC RAX
CMP RAX,0x8
JNZ 0x001667a7
LEA RDI,[RBX + 0x90]
MOVAPS XMM0,xmmword ptr [0x0018c8d0]
MOVUPS xmmword ptr [RBX + 0x90],XMM0
MOVAPS XMM0,xmmword ptr [0x0018c8e0]
MOVUPS xmmword ptr [RBX + 0xa0],XMM0
MOV EDX,0x1
MOV RSI,R14
CALL 0x0016ae40
XOR EAX,EAX
LAB_001667e6:
MOV qword ptr [R14 + RAX*0x8],0x0
INC RAX
CMP RAX,0x8
JNZ 0x001667e6
MOV byte ptr [RBX + 0xd0],0x80
MOV word ptr [RBX + 0xee],0x3
LAB_00166807:
POP RBX
POP R14
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void HMAC_init(int8 *param_1,long param_2,ulong param_3)
{
int8 *puVar1;
int8 uVar2;
int4 uVar3;
int4 uVar4;
int4 uVar5;
long lVar6;
if (param_2 == 0) {
blst_sha256_hcopy(param_1,param_1 + 0xe);
param_1[4] = 0x40;
lVar6 = 0;
do {
param_1[lVar6 + 5] = 0;
lVar6 = lVar6 + 1;
} while (lVar6 != 8);
param_1[0xd] = 0;
}
else {
puVar1 = param_1 + 0x16;
lVar6 = 0x16;
do {
param_1[lVar6] = 0;
uVar2 = _UNK_0018c8d8;
lVar6 = lVar6 + 1;
} while (lVar6 != 0x1e);
if (param_3 < 0x41) {
blst_sha256_bcopy(puVar1);
}
else {
*param_1 = _DAT_0018c8d0;
param_1[1] = uVar2;
uVar5 = _UNK_0018c8ec;
uVar4 = _UNK_0018c8e8;
uVar3 = _UNK_0018c8e4;
*(int4 *)(param_1 + 2) = _DAT_0018c8e0;
*(int4 *)((long)param_1 + 0x14) = uVar3;
*(int4 *)(param_1 + 3) = uVar4;
*(int4 *)((long)param_1 + 0x1c) = uVar5;
param_1[4] = 0;
lVar6 = 5;
do {
param_1[lVar6] = 0;
lVar6 = lVar6 + 1;
} while (lVar6 != 0xd);
param_1[0xd] = 0;
sha256_update(param_1);
sha256_final(puVar1,param_1);
}
lVar6 = 0x16;
do {
param_1[lVar6] = param_1[lVar6] ^ 0x3636363636363636;
uVar2 = _UNK_0018c8d8;
lVar6 = lVar6 + 1;
} while (lVar6 != 0x1e);
*param_1 = _DAT_0018c8d0;
param_1[1] = uVar2;
uVar5 = _UNK_0018c8ec;
uVar4 = _UNK_0018c8e8;
uVar3 = _UNK_0018c8e4;
*(int4 *)(param_1 + 2) = _DAT_0018c8e0;
*(int4 *)((long)param_1 + 0x14) = uVar3;
*(int4 *)(param_1 + 3) = uVar4;
*(int4 *)((long)param_1 + 0x1c) = uVar5;
param_1[4] = 0;
lVar6 = 5;
do {
param_1[lVar6] = 0;
lVar6 = lVar6 + 1;
} while (lVar6 != 0xd);
param_1[0xd] = 0;
sha256_update(param_1,puVar1,0x40);
blst_sha256_hcopy(param_1 + 0xe,param_1);
lVar6 = 0;
do {
puVar1[lVar6] = puVar1[lVar6] ^ 0x6a6a6a6a6a6a6a6a;
uVar2 = _UNK_0018c8d8;
lVar6 = lVar6 + 1;
} while (lVar6 != 8);
param_1[0x12] = _DAT_0018c8d0;
param_1[0x13] = uVar2;
uVar5 = _UNK_0018c8ec;
uVar4 = _UNK_0018c8e8;
uVar3 = _UNK_0018c8e4;
*(int4 *)(param_1 + 0x14) = _DAT_0018c8e0;
*(int4 *)((long)param_1 + 0xa4) = uVar3;
*(int4 *)(param_1 + 0x15) = uVar4;
*(int4 *)((long)param_1 + 0xac) = uVar5;
blst_sha256_block_data_order(param_1 + 0x12,puVar1,1);
lVar6 = 0;
do {
puVar1[lVar6] = 0;
lVar6 = lVar6 + 1;
} while (lVar6 != 8);
*(int1 *)(param_1 + 0x1a) = 0x80;
*(int2 *)((long)param_1 + 0xee) = 3;
}
return;
}
|
||
3,054 | nlohmann::json_abi_v3_11_3::detail::serializer<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>>::~serializer() | monkey531[P]llama/common/json.hpp | ~serializer() = default; | O1 | cpp | nlohmann::json_abi_v3_11_3::detail::serializer<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>>::~serializer():
pushq %rbx
movq %rdi, %rbx
movq 0x260(%rdi), %rdi
leaq 0x270(%rbx), %rax
cmpq %rax, %rdi
je 0x7af7e
movq (%rax), %rsi
incq %rsi
callq 0x186a0
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x7af8d
popq %rbx
jmp 0x2fde4
popq %rbx
retq
nop
| _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev:
push rbx
mov rbx, rdi
mov rdi, [rdi+260h]; void *
lea rax, [rbx+270h]
cmp rdi, rax
jz short loc_7AF7E
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7AF7E:
mov rdi, [rbx+8]
test rdi, rdi
jz short loc_7AF8D
pop rbx
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_7AF8D:
pop rbx
retn
| void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~serializer(
_QWORD *a1)
{
_QWORD *v2; // rdi
volatile signed __int32 *v3; // rdi
v2 = (_QWORD *)a1[76];
if ( v2 != a1 + 78 )
operator delete(v2, a1[78] + 1LL);
v3 = (volatile signed __int32 *)a1[1];
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
}
| ~serializer:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x260]
LEA RAX,[RBX + 0x270]
CMP RDI,RAX
JZ 0x0017af7e
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001186a0
LAB_0017af7e:
MOV RDI,qword ptr [RBX + 0x8]
TEST RDI,RDI
JZ 0x0017af8d
POP RBX
JMP 0x0012fde4
LAB_0017af8d:
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::~serializer() */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::~serializer(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
if (*(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 + 0x260) != this + 0x270) {
operator_delete(*(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 + 0x260),*(long *)(this + 0x270) + 1);
}
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 8) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 8));
return;
}
return;
}
|
|
3,055 | my_utf16_uni | eloqsql/strings/ctype-ucs2.c | int
my_utf16_uni(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e)
{
return my_mb_wc_utf16_quick(pwc, s, e);
} | O3 | c | my_utf16_uni:
pushq %rbp
movq %rsp, %rbp
leaq 0x2(%rdx), %r8
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %r8
ja 0xc2998
movzbl (%rdx), %edi
movl %edi, %r9d
andl $-0x4, %r9d
xorl %eax, %eax
cmpl $0xdc, %r9d
je 0xc2998
cmpl $0xd8, %r9d
jne 0xc2985
leaq 0x4(%rdx), %r9
movl $0xffffff98, %eax # imm = 0xFFFFFF98
cmpq %rcx, %r9
ja 0xc2998
movzbl (%r8), %ecx
movl %ecx, %r8d
andl $-0x4, %r8d
movl $0x0, %eax
cmpl $0xdc, %r8d
jne 0xc2998
shll $0x12, %edi
shll $0x8, %ecx
orl %edi, %ecx
movzbl 0x1(%rdx), %eax
shll $0xa, %eax
movzbl 0x3(%rdx), %edx
andl $0xc0300, %ecx # imm = 0xC0300
orl %edx, %ecx
addl %eax, %ecx
addl $0x10000, %ecx # imm = 0x10000
movl $0x4, %eax
jmp 0xc2993
shll $0x8, %edi
movzbl 0x1(%rdx), %ecx
orl %edi, %ecx
movl $0x2, %eax
movl %ecx, %ecx
movq %rcx, (%rsi)
popq %rbp
retq
| my_utf16_uni:
push rbp
mov rbp, rsp
lea r8, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp r8, rcx
ja loc_C2998
movzx edi, byte ptr [rdx]
mov r9d, edi
and r9d, 0FFFFFFFCh
xor eax, eax
cmp r9d, 0DCh
jz short loc_C2998
cmp r9d, 0D8h
jnz short loc_C2985
lea r9, [rdx+4]
mov eax, 0FFFFFF98h
cmp r9, rcx
ja short loc_C2998
movzx ecx, byte ptr [r8]
mov r8d, ecx
and r8d, 0FFFFFFFCh
mov eax, 0
cmp r8d, 0DCh
jnz short loc_C2998
shl edi, 12h
shl ecx, 8
or ecx, edi
movzx eax, byte ptr [rdx+1]
shl eax, 0Ah
movzx edx, byte ptr [rdx+3]
and ecx, 0C0300h
or ecx, edx
add ecx, eax
add ecx, 10000h
mov eax, 4
jmp short loc_C2993
loc_C2985:
shl edi, 8
movzx ecx, byte ptr [rdx+1]
or ecx, edi
mov eax, 2
loc_C2993:
mov ecx, ecx
mov [rsi], rcx
loc_C2998:
pop rbp
retn
| long long my_utf16_uni(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4)
{
_BYTE *v4; // r8
long long result; // rax
int v6; // edi
int v7; // r9d
unsigned int v8; // ecx
v4 = a3 + 2;
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
v6 = *a3;
v7 = v6 & 0xFC;
result = 0LL;
if ( v7 != 220 )
{
if ( v7 != 216 )
{
v8 = (v6 << 8) | a3[1];
result = 2LL;
goto LABEL_8;
}
result = 4294967192LL;
if ( (unsigned long long)(a3 + 4) <= a4 )
{
result = 0LL;
if ( (*v4 & 0xFC) == 0xDC )
{
v8 = (a3[1] << 10) + (a3[3] | ((v6 << 18) | ((unsigned __int8)*v4 << 8)) & 0xC0300) + 0x10000;
result = 4LL;
LABEL_8:
*a2 = v8;
}
}
}
}
return result;
}
| my_utf16_uni:
PUSH RBP
MOV RBP,RSP
LEA R8,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP R8,RCX
JA 0x001c2998
MOVZX EDI,byte ptr [RDX]
MOV R9D,EDI
AND R9D,0xfffffffc
XOR EAX,EAX
CMP R9D,0xdc
JZ 0x001c2998
CMP R9D,0xd8
JNZ 0x001c2985
LEA R9,[RDX + 0x4]
MOV EAX,0xffffff98
CMP R9,RCX
JA 0x001c2998
MOVZX ECX,byte ptr [R8]
MOV R8D,ECX
AND R8D,0xfffffffc
MOV EAX,0x0
CMP R8D,0xdc
JNZ 0x001c2998
SHL EDI,0x12
SHL ECX,0x8
OR ECX,EDI
MOVZX EAX,byte ptr [RDX + 0x1]
SHL EAX,0xa
MOVZX EDX,byte ptr [RDX + 0x3]
AND ECX,0xc0300
OR ECX,EDX
ADD ECX,EAX
ADD ECX,0x10000
MOV EAX,0x4
JMP 0x001c2993
LAB_001c2985:
SHL EDI,0x8
MOVZX ECX,byte ptr [RDX + 0x1]
OR ECX,EDI
MOV EAX,0x2
LAB_001c2993:
MOV ECX,ECX
MOV qword ptr [RSI],RCX
LAB_001c2998:
POP RBP
RET
|
int8 my_utf16_uni(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
byte bVar1;
byte bVar2;
int8 uVar3;
uint uVar4;
uVar3 = 0xffffff9a;
if (param_3 + 2 <= param_4) {
bVar1 = *param_3;
uVar3 = 0;
if ((bVar1 & 0xfc) != 0xdc) {
if ((bVar1 & 0xfc) == 0xd8) {
if (param_4 < param_3 + 4) {
return 0xffffff98;
}
bVar2 = param_3[2];
if ((bVar2 & 0xfc) != 0xdc) {
return 0;
}
uVar4 = (((uint)bVar2 << 8 | (uint)bVar1 << 0x12) & 0xc0300 | (uint)param_3[3]) +
(uint)param_3[1] * 0x400 + 0x10000;
uVar3 = 4;
}
else {
uVar4 = (uint)CONCAT11(bVar1,param_3[1]);
uVar3 = 2;
}
*param_2 = (ulong)uVar4;
}
}
return uVar3;
}
|
|
3,056 | 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};
} | O3 | 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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq (%rdi), %rbx
cmpq 0x8(%rdi), %rbx
je 0x8c3af
leaq 0x18(%r14), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x8c3d8
testb %al, %al
jne 0x8c3c9
addq $0x60, %rbx
cmpq 0x8(%r14), %rbx
jne 0x8c393
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x8c41c
movq 0x8(%r14), %rbx
addq $-0x60, %rbx
movb $0x1, %dl
jmp 0x8c3cb
xorl %edx, %edx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
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 r15
push r14
push r13
push r12
push rbx
mov r15, rdx
mov r12, rsi
mov r14, rdi
mov rbx, [rdi]
cmp rbx, [rdi+8]
jz short loc_8C3AF
lea r13, [r14+18h]
loc_8C393:
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_8C3C9
add rbx, 60h ; '`'
cmp rbx, [r14+8]
jnz short loc_8C393
loc_8C3AF:
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_8C3CB
loc_8C3C9:
xor edx, edx
loc_8C3CB:
mov rax, rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
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
v4 = *a1;
if ( *a1 == a1[1] )
{
LABEL_4:
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;
}
else
{
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;
if ( v4 == a1[1] )
goto LABEL_4;
}
}
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 R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R15,RDX
MOV R12,RSI
MOV R14,RDI
MOV RBX,qword ptr [RDI]
CMP RBX,qword ptr [RDI + 0x8]
JZ 0x0018c3af
LEA R13,[R14 + 0x18]
LAB_0018c393:
MOV RDI,R13
MOV RSI,RBX
MOV RDX,R12
CALL 0x0018c3d8
TEST AL,AL
JNZ 0x0018c3c9
ADD RBX,0x60
CMP RBX,qword ptr [R14 + 0x8]
JNZ 0x0018c393
LAB_0018c3af:
MOV RDI,R14
MOV RSI,R12
MOV RDX,R15
CALL 0x0018c41c
MOV RBX,qword ptr [R14 + 0x8]
ADD RBX,-0x60
MOV DL,0x1
JMP 0x0018c3cb
LAB_0018c3c9:
XOR EDX,EDX
LAB_0018c3cb:
MOV RAX,RBX
POP RBX
POP R12
POP R13
POP R14
POP R15
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;
int1 auVar4 [16];
pbVar3 = *(basic_json **)param_1;
if (pbVar3 != *(basic_json **)(param_1 + 8)) {
do {
cVar1 = std::equal_to<void>::operator()((equal_to<void> *)(param_1 + 0x18),pbVar3,param_2);
if (cVar1 != '\0') {
uVar2 = 0;
goto LAB_0018c3cb;
}
pbVar3 = pbVar3 + 0x60;
} while (pbVar3 != *(basic_json **)(param_1 + 8));
}
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_0018c3cb:
auVar4._8_8_ = uVar2;
auVar4._0_8_ = pbVar3;
return auVar4;
}
|
|
3,057 | GAParameter8051Reg::decode(GALanguage*, unsigned long, char const*, int) | goodasm/galang8051.cpp | QString GAParameter8051Reg::decode(GALanguage *lang,
uint64_t adr, const char *bytes,
int inslen){
uint64_t p=rawdecode(lang,adr,bytes,inslen);
assert(p<8); //Reg count on this architecture.
QString rendering=prefix
+regnames[p]
+suffix;
return rendering;
} | O0 | cpp | GAParameter8051Reg::decode(GALanguage*, unsigned long, char const*, int):
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x80(%rbp)
movq %rdi, %rax
movq %rax, -0x78(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x70(%rbp)
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0x1099c0
movq %rax, -0x38(%rbp)
cmpq $0x8, -0x38(%rbp)
jae 0x84738
jmp 0x84757
leaq 0x92b51(%rip), %rdi # 0x117290
leaq 0x92b4e(%rip), %rsi # 0x117294
movl $0x307, %edx # imm = 0x307
leaq 0x92b7a(%rip), %rcx # 0x1172cc
callq 0x70e0
movq -0x70(%rbp), %rax
movb $0x0, -0x39(%rbp)
movq %rax, %rsi
addq $0x8, %rsi
movq -0x38(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0xb0(%rax,%rcx,8), %rdx
leaq -0x58(%rbp), %rdi
movq %rdi, -0x88(%rbp)
callq 0x17ab0
movq -0x70(%rbp), %rdx
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rsi
addq $0x20, %rdx
callq 0x17ab0
jmp 0x847a0
leaq -0x58(%rbp), %rdi
callq 0xe770
movb $0x1, -0x39(%rbp)
testb $0x1, -0x39(%rbp)
jne 0x847d5
jmp 0x847cc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x58(%rbp), %rdi
callq 0xe770
jmp 0x847e2
movq -0x80(%rbp), %rdi
callq 0xe770
movq -0x78(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
movq -0x60(%rbp), %rdi
callq 0x7210
nopl (%rax,%rax)
| _ZN18GAParameter8051Reg6decodeEP10GALanguagemPKci:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_80], rdi
mov rax, rdi
mov [rbp+var_78], rax
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_2C], r9d
mov rdi, [rbp+var_10]; this
mov [rbp+var_70], rdi
mov rsi, [rbp+var_18]; GALanguage *
mov rdx, [rbp+var_20]; unsigned __int64
mov rcx, [rbp+var_28]; char *
mov r8d, [rbp+var_2C]; int
call _ZN11GAParameter9rawdecodeEP10GALanguagemPKci; GAParameter::rawdecode(GALanguage *,ulong,char const*,int)
mov [rbp+var_38], rax
cmp [rbp+var_38], 8
jnb short loc_84738
jmp short loc_84757
loc_84738:
lea rdi, aP8; "p<8"
lea rsi, aWorkspaceLlm4b_17; "/workspace/llm4binary/github2025/goodas"...
mov edx, 307h
lea rcx, aVirtualQstring_7; "virtual QString GAParameter8051Reg::dec"...
call ___assert_fail
loc_84757:
mov rax, [rbp+var_70]
mov [rbp+var_39], 0
mov rsi, rax
add rsi, 8
mov rcx, [rbp+var_38]
lea rcx, [rcx+rcx*2]
lea rdx, [rax+rcx*8+0B0h]
lea rdi, [rbp+var_58]
mov [rbp+var_88], rdi
call _ZplRK7QStringS1_; operator+(QString const&,QString const&)
mov rdx, [rbp+var_70]
mov rdi, [rbp+var_80]
mov rsi, [rbp+var_88]
add rdx, 20h ; ' '
call _ZplRK7QStringS1_; operator+(QString const&,QString const&)
jmp short $+2
loc_847A0:
lea rdi, [rbp+var_58]; this
call _ZN7QStringD2Ev; QString::~QString()
mov [rbp+var_39], 1
test [rbp+var_39], 1
jnz short loc_847D5
jmp short loc_847CC
mov rcx, rax
mov eax, edx
mov [rbp+var_60], rcx
mov [rbp+var_64], eax
lea rdi, [rbp+var_58]; this
call _ZN7QStringD2Ev; QString::~QString()
jmp short loc_847E2
loc_847CC:
mov rdi, [rbp+var_80]; this
call _ZN7QStringD2Ev; QString::~QString()
loc_847D5:
mov rax, [rbp+var_78]
add rsp, 90h
pop rbp
retn
loc_847E2:
mov rdi, [rbp+var_60]
call __Unwind_Resume
| GAParameter8051Reg * GAParameter8051Reg::decode(
GAParameter8051Reg *this,
GALanguage *a2,
GALanguage *a3,
const char *a4,
char *a5,
int a6)
{
_BYTE v7[32]; // [rsp+38h] [rbp-58h] BYREF
unsigned long long v8; // [rsp+58h] [rbp-38h]
int v9; // [rsp+64h] [rbp-2Ch]
char *v10; // [rsp+68h] [rbp-28h]
unsigned long long v11; // [rsp+70h] [rbp-20h]
GALanguage *v12; // [rsp+78h] [rbp-18h]
GAParameter *v13; // [rsp+80h] [rbp-10h]
GAParameter8051Reg *v14; // [rsp+88h] [rbp-8h]
v14 = this;
v13 = a2;
v12 = a3;
v11 = (unsigned long long)a4;
v10 = a5;
v9 = a6;
v8 = GAParameter::rawdecode(a2, a3, (unsigned long long)a4, a5, a6);
if ( v8 >= 8 )
__assert_fail(
"p<8",
"/workspace/llm4binary/github2025/goodasm/galang8051.cpp",
775LL,
"virtual QString GAParameter8051Reg::decode(GALanguage *, uint64_t, const char *, int)");
v7[31] = 0;
operator+((QString *)v7, (GALanguage *)((char *)a2 + 8), (GALanguage *)((char *)a2 + 24 * v8 + 176));
operator+(this, (const QString *)v7, (GALanguage *)((char *)a2 + 32));
QString::~QString((QString *)v7);
return this;
}
| decode:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x80],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0x78],RAX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV dword ptr [RBP + -0x2c],R9D
MOV RDI,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x70],RDI
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8D,dword ptr [RBP + -0x2c]
CALL 0x002099c0
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x8
JNC 0x00184738
JMP 0x00184757
LAB_00184738:
LEA RDI,[0x217290]
LEA RSI,[0x217294]
MOV EDX,0x307
LEA RCX,[0x2172cc]
CALL 0x001070e0
LAB_00184757:
MOV RAX,qword ptr [RBP + -0x70]
MOV byte ptr [RBP + -0x39],0x0
MOV RSI,RAX
ADD RSI,0x8
MOV RCX,qword ptr [RBP + -0x38]
LEA RCX,[RCX + RCX*0x2]
LEA RDX,[RAX + RCX*0x8 + 0xb0]
LEA RDI,[RBP + -0x58]
MOV qword ptr [RBP + -0x88],RDI
CALL 0x00117ab0
MOV RDX,qword ptr [RBP + -0x70]
MOV RDI,qword ptr [RBP + -0x80]
MOV RSI,qword ptr [RBP + -0x88]
ADD RDX,0x20
LAB_00184799:
CALL 0x00117ab0
LAB_0018479e:
JMP 0x001847a0
LAB_001847a0:
LEA RDI,[RBP + -0x58]
CALL 0x0010e770
MOV byte ptr [RBP + -0x39],0x1
TEST byte ptr [RBP + -0x39],0x1
JNZ 0x001847d5
JMP 0x001847cc
LAB_001847cc:
MOV RDI,qword ptr [RBP + -0x80]
CALL 0x0010e770
LAB_001847d5:
MOV RAX,qword ptr [RBP + -0x78]
ADD RSP,0x90
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x001847b3) */
/* GAParameter8051Reg::decode(GALanguage*, unsigned long, char const*, int) */
GALanguage * GAParameter8051Reg::decode(GALanguage *param_1,ulong param_2,char *param_3,int param_4)
{
int4 in_register_0000000c;
char *in_R8;
int in_R9D;
QString local_60 [31];
int1 local_41;
ulong local_40;
ulong local_28;
char *local_20;
ulong local_18;
GALanguage *local_10;
local_28 = CONCAT44(in_register_0000000c,param_4);
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_40 = GAParameter::rawdecode
((GAParameter *)param_2,(GALanguage *)param_3,local_28,in_R8,in_R9D);
if (7 < local_40) {
/* WARNING: Subroutine does not return */
__assert_fail("p<8","/workspace/llm4binary/github2025/goodasm/galang8051.cpp",0x307,
"virtual QString GAParameter8051Reg::decode(GALanguage *, uint64_t, const char *, int)"
);
}
local_41 = 0;
operator+(local_60,(QString *)(param_2 + 8));
/* try { // try from 00184799 to 0018479d has its CatchHandler @ 001847b5 */
operator+((QString *)param_1,local_60);
QString::~QString(local_60);
return param_1;
}
|
|
3,058 | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t&&, bool) | monkey531[P]llama/common/json.hpp | std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
} | O0 | cpp | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t&&, bool):
subq $0x148, %rsp # imm = 0x148
movb %dl, %al
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
andb $0x1, %al
movb %al, 0x127(%rsp)
movq 0x130(%rsp), %rdi
movq %rdi, 0x40(%rsp)
addq $0x20, %rdi
callq 0xb4f80
testb $0x1, %al
jne 0xb515e
jmp 0xb517f
leaq 0x15e32b(%rip), %rdi # 0x213490
movl $0x1c28, %esi # imm = 0x1C28
leaq 0x157ff3(%rip), %rdx # 0x20d164
leaq 0x15f298(%rip), %rcx # 0x214410
movb $0x0, %al
callq 0x5aee0
movq 0x40(%rsp), %rdi
addq $0x20, %rdi
callq 0xb5000
movq %rax, 0x110(%rsp)
movq %rdx, 0x118(%rsp)
leaq 0x110(%rsp), %rdi
callq 0xb2ff0
xorb $-0x1, %al
testb $0x1, %al
jne 0xb51b2
jmp 0xb51e8
movb $0x0, 0x10f(%rsp)
movq $0x0, 0x100(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x10f(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0xb5b10
jmp 0xb5654
movq 0x128(%rsp), %rax
leaq 0xf0(%rsp), %rdi
movzbl (%rax), %esi
callq 0xafae0
movb $0x1, %al
testb $0x1, 0x127(%rsp)
movb %al, 0x3f(%rsp)
jne 0xb5253
movq 0x40(%rsp), %rdi
movq %rdi, %rax
subq $-0x80, %rax
movq %rax, 0x30(%rsp)
addq $0x8, %rdi
callq 0xb5100
movq 0x30(%rsp), %rdi
movl %eax, %esi
movl $0x5, %edx
leaq 0xf0(%rsp), %rcx
callq 0xb50a0
movb %al, 0x3e(%rsp)
jmp 0xb5249
movb 0x3e(%rsp), %al
movb %al, 0x3f(%rsp)
jmp 0xb5253
movb 0x3f(%rsp), %al
andb $0x1, %al
movb %al, 0xef(%rsp)
testb $0x1, 0xef(%rsp)
jne 0xb52d3
movb $0x0, 0xdb(%rsp)
movq $0x0, 0xd0(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xdb(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0xb5b10
jmp 0xb529d
movl $0x1, 0xcc(%rsp)
jmp 0xb5647
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe0(%rsp)
movl %eax, 0xdc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0xa6940
jmp 0xb566b
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb5b40
testb $0x1, %al
jne 0xb52e7
jmp 0xb5364
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x28(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0xb5b90
movq 0x28(%rsp), %rsi
movq 0x40(%rsp), %rax
movq (%rax), %rdi
callq 0xafb20
movq 0x28(%rsp), %rdi
callq 0xa6940
movq 0x40(%rsp), %rax
movb $0x1, 0xb7(%rsp)
movq (%rax), %rax
movq %rax, 0xa8(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xb7(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xb5c10
jmp 0xb5354
movl $0x1, 0xcc(%rsp)
jmp 0xb5647
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
cmpq $0x0, (%rax)
jne 0xb53bb
movb $0x0, 0xa7(%rsp)
movq $0x0, 0x98(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xa7(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0xb5b10
jmp 0xb53ab
movl $0x1, 0xcc(%rsp)
jmp 0xb5647
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
movq (%rax), %rdi
callq 0xb5c40
testb $0x1, %al
jne 0xb5412
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
movq (%rax), %rdi
callq 0xb5c60
testb $0x1, %al
jne 0xb5412
leaq 0x15e09a(%rip), %rdi # 0x213490
leaq 0x157d67(%rip), %rdx # 0x20d164
leaq 0x15f020(%rip), %rcx # 0x214424
xorl %eax, %eax
movl $0x1c4b, %esi # imm = 0x1C4B
callq 0x5aee0
jmp 0xb5412
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
movq (%rax), %rdi
callq 0xb5c40
testb $0x1, %al
jne 0xb542e
jmp 0xb54ab
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
movq (%rax), %rax
movq 0x8(%rax), %rdi
leaq 0xf0(%rsp), %rsi
callq 0xb5c80
jmp 0xb5452
movq 0x40(%rsp), %rdi
movb $0x1, 0x97(%rsp)
addq $0x8, %rdi
callq 0xb56f0
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0xb5d00
movq %rax, 0x88(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x97(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0xb5c10
jmp 0xb549b
movl $0x1, 0xcc(%rsp)
jmp 0xb5647
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
movq (%rax), %rdi
callq 0xb5c60
testb $0x1, %al
jne 0xb54e8
leaq 0x15dfc4(%rip), %rdi # 0x213490
leaq 0x157c91(%rip), %rdx # 0x20d164
leaq 0x15ef6a(%rip), %rcx # 0x214444
xorl %eax, %eax
movl $0x1c55, %esi # imm = 0x1C55
callq 0x5aee0
jmp 0xb54e8
movq 0x40(%rsp), %rdi
addq $0x48, %rdi
callq 0xb4f80
testb $0x1, %al
jne 0xb54fc
jmp 0xb551f
leaq 0x15df8d(%rip), %rdi # 0x213490
leaq 0x157c5a(%rip), %rdx # 0x20d164
leaq 0x15ef51(%rip), %rcx # 0x214462
xorl %eax, %eax
movl $0x1c57, %esi # imm = 0x1C57
callq 0x5aee0
jmp 0xb551f
movq 0x40(%rsp), %rdi
addq $0x48, %rdi
callq 0xb5000
movq %rdx, 0x18(%rsp)
movq %rax, 0x20(%rsp)
jmp 0xb5539
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
leaq 0x70(%rsp), %rdi
callq 0xb2ff0
movq 0x40(%rsp), %rdi
movb %al, 0x87(%rsp)
addq $0x48, %rdi
callq 0xb5080
jmp 0xb556e
testb $0x1, 0x87(%rsp)
jne 0xb55af
movb $0x0, 0x6f(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x6f(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0xb5b10
jmp 0xb559f
movl $0x1, 0xcc(%rsp)
jmp 0xb5647
movq 0x40(%rsp), %rax
cmpq $0x0, 0x70(%rax)
jne 0xb55de
leaq 0x15dece(%rip), %rdi # 0x213490
leaq 0x157b9b(%rip), %rdx # 0x20d164
leaq 0x15eeaa(%rip), %rcx # 0x21447a
xorl %eax, %eax
movl $0x1c60, %esi # imm = 0x1C60
callq 0x5aee0
jmp 0xb55de
leaq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0xb5b90
movq 0x40(%rsp), %rax
movq 0x8(%rsp), %rsi
movq %rax, %rcx
addq $0x70, %rcx
movq %rcx, 0x10(%rsp)
movq 0x70(%rax), %rdi
callq 0xafb20
movq 0x8(%rsp), %rdi
callq 0xa6940
movq 0x10(%rsp), %rdx
movb $0x1, 0x4f(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x4f(%rsp), %rsi
callq 0xb5d40
jmp 0xb563c
movl $0x1, 0xcc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0xa6940
movb 0x138(%rsp), %al
movq 0x140(%rsp), %rdx
addq $0x148, %rsp # imm = 0x148
retq
movq 0xe0(%rsp), %rdi
callq 0x5abc0
nopl (%rax,%rax)
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEESt4pairIbPSF_EOT_b:
sub rsp, 148h
mov al, dl
mov [rsp+148h+var_18], rdi
mov [rsp+148h+var_20], rsi
and al, 1
mov [rsp+148h+var_21], al
mov rdi, [rsp+148h+var_18]
mov [rsp+148h+var_108], rdi
add rdi, 20h ; ' '
call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void)
test al, 1
jnz short loc_B515E
jmp short loc_B517F
loc_B515E:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1C28h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov al, 0
call _ggml_abort
loc_B517F:
mov rdi, [rsp+148h+var_108]
add rdi, 20h ; ' '
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_38], rax
mov [rsp+148h+var_30], rdx
lea rdi, [rsp+148h+var_38]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
xor al, 0FFh
test al, 1
jnz short loc_B51B2
jmp short loc_B51E8
loc_B51B2:
mov [rsp+148h+var_39], 0
mov [rsp+148h+var_48], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_39]
lea rdx, [rsp+148h+var_48]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp loc_B5654
loc_B51E8:
mov rax, [rsp+148h+var_20]
lea rdi, [rsp+148h+var_58]
movzx esi, byte ptr [rax]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_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>::basic_json(nlohmann::json_abi_v3_11_3::detail::value_t)
mov al, 1
test [rsp+148h+var_21], 1
mov [rsp+148h+var_109], al
jnz short loc_B5253
mov rdi, [rsp+148h+var_108]
mov rax, rdi
sub rax, 0FFFFFFFFFFFFFF80h
mov [rsp+148h+var_118], rax
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void)
mov rdi, [rsp+148h+var_118]
mov esi, eax
mov edx, 5
lea rcx, [rsp+148h+var_58]
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
mov [rsp+148h+var_10A], al
jmp short $+2
loc_B5249:
mov al, [rsp+148h+var_10A]
mov [rsp+148h+var_109], al
jmp short $+2
loc_B5253:
mov al, [rsp+148h+var_109]
and al, 1
mov [rsp+148h+var_59], al
test [rsp+148h+var_59], 1
jnz short loc_B52D3
mov [rsp+148h+var_6D], 0
mov [rsp+148h+var_78], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_6D]
lea rdx, [rsp+148h+var_78]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_B529D:
mov [rsp+148h+var_7C], 1
jmp loc_B5647
mov rcx, rax
mov eax, edx
mov [rsp+arg_D8], rcx
mov [rsp+arg_D4], eax
lea rdi, [rsp+arg_E8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp loc_B566B
loc_B52D3:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void)
test al, 1
jnz short loc_B52E7
jmp short loc_B5364
loc_B52E7:
lea rdi, [rsp+148h+var_90]
mov [rsp+148h+var_120], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rsi, [rsp+148h+var_120]
mov rax, [rsp+148h+var_108]
mov rdi, [rax]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+148h+var_120]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rax, [rsp+148h+var_108]
mov [rsp+148h+var_91], 1
mov rax, [rax]
mov [rsp+148h+var_A0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_91]
lea rdx, [rsp+148h+var_A0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_B5354:
mov [rsp+148h+var_7C], 1
jmp loc_B5647
loc_B5364:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
cmp qword ptr [rax], 0
jnz short loc_B53BB
mov [rsp+148h+var_A1], 0
mov [rsp+148h+var_B0], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_A1]
lea rdx, [rsp+148h+var_B0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_B53AB:
mov [rsp+148h+var_7C], 1
jmp loc_B5647
loc_B53BB:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_B5412
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
test al, 1
jnz short loc_B5412
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
xor eax, eax
mov esi, 1C4Bh
call _ggml_abort
jmp short $+2
loc_B5412:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_B542E
jmp short loc_B54AB
loc_B542E:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
lea rsi, [rsp+148h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
jmp short $+2
loc_B5452:
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_B1], 1
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void)
mov [rsp+148h+var_C0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_B1]
lea rdx, [rsp+148h+var_C0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_B549B:
mov [rsp+148h+var_7C], 1
jmp loc_B5647
loc_B54AB:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
test al, 1
jnz short loc_B54E8
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackBackIs+20h; "ref_stack.back()->is_object()"
xor eax, eax
mov esi, 1C55h
call _ggml_abort
jmp short $+2
loc_B54E8:
mov rdi, [rsp+148h+var_108]
add rdi, 48h ; 'H'
call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void)
test al, 1
jnz short loc_B54FC
jmp short loc_B551F
loc_B54FC:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()"
xor eax, eax
mov esi, 1C57h
call _ggml_abort
jmp short $+2
loc_B551F:
mov rdi, [rsp+148h+var_108]
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_130], rdx
mov [rsp+148h+var_128], rax
jmp short $+2
loc_B5539:
mov rax, [rsp+148h+var_130]
mov rcx, [rsp+148h+var_128]
mov [rsp+148h+var_D8], rcx
mov [rsp+148h+var_D0], rax
lea rdi, [rsp+148h+var_D8]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_C1], al
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void)
jmp short $+2
loc_B556E:
test [rsp+148h+var_C1], 1
jnz short loc_B55AF
mov [rsp+148h+var_D9], 0
mov [rsp+148h+var_E8], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_D9]
lea rdx, [rsp+148h+var_E8]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_B559F:
mov [rsp+148h+var_7C], 1
jmp loc_B5647
loc_B55AF:
mov rax, [rsp+148h+var_108]
cmp qword ptr [rax+70h], 0
jnz short loc_B55DE
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aObjectElement; "object_element"
xor eax, eax
mov esi, 1C60h
call _ggml_abort
jmp short $+2
loc_B55DE:
lea rdi, [rsp+148h+var_F8]
mov [rsp+148h+var_140], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rax, [rsp+148h+var_108]
mov rsi, [rsp+148h+var_140]
mov rcx, rax
add rcx, 70h ; 'p'
mov [rsp+148h+var_138], rcx
mov rdi, [rax+70h]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+148h+var_140]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdx, [rsp+148h+var_138]
mov [rsp+148h+var_F9], 1
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_F9]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
jmp short $+2
loc_B563C:
mov [rsp+148h+var_7C], 1
loc_B5647:
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_B5654:
mov al, [rsp+148h+var_10]
mov rdx, [rsp+148h+var_8]
add rsp, 148h
retn
loc_B566B:
mov rdi, [rsp+arg_D8]
call __Unwind_Resume
| char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(
long long a1,
unsigned __int8 *a2,
char a3)
{
long long v3; // rdx
long long v4; // rsi
unsigned int v5; // eax
_QWORD *v6; // rax
_QWORD *v7; // rax
_QWORD *v8; // rax
long long v9; // rax
long long v10; // rax
_QWORD *v11; // rax
long long v12; // rdx
char v14; // [rsp+3Fh] [rbp-109h]
char v15; // [rsp+4Fh] [rbp-F9h] BYREF
_BYTE v16[16]; // [rsp+50h] [rbp-F8h] BYREF
long long v17; // [rsp+60h] [rbp-E8h] BYREF
char v18; // [rsp+6Fh] [rbp-D9h] BYREF
_QWORD v19[2]; // [rsp+70h] [rbp-D8h] BYREF
bool v20; // [rsp+87h] [rbp-C1h]
long long v21; // [rsp+88h] [rbp-C0h] BYREF
char v22; // [rsp+97h] [rbp-B1h] BYREF
long long v23; // [rsp+98h] [rbp-B0h] BYREF
char v24; // [rsp+A7h] [rbp-A1h] BYREF
long long v25; // [rsp+A8h] [rbp-A0h] BYREF
char v26; // [rsp+B7h] [rbp-91h] BYREF
_BYTE v27[20]; // [rsp+B8h] [rbp-90h] BYREF
int v28; // [rsp+CCh] [rbp-7Ch]
long long v29; // [rsp+D0h] [rbp-78h] BYREF
_BYTE v30[21]; // [rsp+DBh] [rbp-6Dh] BYREF
_BYTE v31[16]; // [rsp+F0h] [rbp-58h] BYREF
long long v32; // [rsp+100h] [rbp-48h] BYREF
char v33; // [rsp+10Fh] [rbp-39h] BYREF
_QWORD v34[2]; // [rsp+110h] [rbp-38h] BYREF
char v35; // [rsp+127h] [rbp-21h]
unsigned __int8 *v36; // [rsp+128h] [rbp-20h]
long long v37; // [rsp+130h] [rbp-18h]
_BYTE v38[8]; // [rsp+138h] [rbp-10h] BYREF
v37 = a1;
v36 = a2;
v35 = a3 & 1;
if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 32)) & 1) != 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7208LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
v34[0] = std::vector<bool>::back(a1 + 32);
v34[1] = v3;
if ( std::_Bit_reference::operator bool((long long)v34) )
{
v4 = *v36;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v31);
v14 = 1;
if ( (v35 & 1) == 0 )
{
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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::size((_QWORD *)(a1 + 8));
v4 = v5;
v14 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()(
(std::_Function_base *)(a1 + 128),
v5,
5,
(long long)v31);
}
v30[20] = v14 & 1;
if ( (v14 & 1) != 0 )
{
if ( (std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(a1 + 8) & 1) != 0 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v27,
v31);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)a1,
(long long)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v27);
v26 = 1;
v25 = *(_QWORD *)a1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
v38,
&v26,
&v25);
v28 = 1;
}
else if ( *(_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) )
{
v6 = (_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( (nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v6) & 1) == 0 )
{
v7 = (_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( (nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(
*v7,
v4) & 1) == 0 )
{
v4 = 7243LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7243LL,
"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_array() || ref_stack.back()->is_object()");
}
}
v8 = (_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( (nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v8) & 1) != 0 )
{
v9 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*(_QWORD *)(*(_QWORD *)v9 + 8LL),
v31);
v22 = 1;
v10 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
v21 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back(*(_QWORD *)(*(_QWORD *)v10 + 8LL));
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
v38,
&v22,
&v21);
v28 = 1;
}
else
{
v11 = (_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( (nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(
*v11,
v4) & 1) == 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7253LL,
"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_object()");
if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 72)) & 1) != 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7255LL,
"GGML_ASSERT(%s) failed",
"!key_keep_stack.empty()");
v19[0] = std::vector<bool>::back(a1 + 72);
v19[1] = v12;
v20 = std::_Bit_reference::operator bool((long long)v19);
std::vector<bool>::pop_back(a1 + 72);
if ( v20 )
{
if ( !*(_QWORD *)(a1 + 112) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7264LL,
"GGML_ASSERT(%s) failed",
"object_element");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v16,
v31);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)(a1 + 112),
(long long)v16);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v16);
v15 = 1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_(
v38,
&v15,
a1 + 112);
v28 = 1;
}
else
{
v18 = 0;
v17 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
v38,
&v18,
&v17);
v28 = 1;
}
}
}
else
{
v24 = 0;
v23 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
v38,
&v24,
&v23);
v28 = 1;
}
}
else
{
v30[0] = 0;
v29 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
v38,
v30,
&v29);
v28 = 1;
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v31);
}
else
{
v33 = 0;
v32 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
v38,
&v33,
&v32);
}
return v38[0];
}
| handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>:
SUB RSP,0x148
MOV AL,DL
MOV qword ptr [RSP + 0x130],RDI
MOV qword ptr [RSP + 0x128],RSI
AND AL,0x1
MOV byte ptr [RSP + 0x127],AL
MOV RDI,qword ptr [RSP + 0x130]
MOV qword ptr [RSP + 0x40],RDI
ADD RDI,0x20
CALL 0x001b4f80
TEST AL,0x1
JNZ 0x001b515e
JMP 0x001b517f
LAB_001b515e:
LEA RDI,[0x313490]
MOV ESI,0x1c28
LEA RDX,[0x30d164]
LEA RCX,[0x314410]
MOV AL,0x0
CALL 0x0015aee0
LAB_001b517f:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x20
CALL 0x001b5000
MOV qword ptr [RSP + 0x110],RAX
MOV qword ptr [RSP + 0x118],RDX
LEA RDI,[RSP + 0x110]
CALL 0x001b2ff0
XOR AL,0xff
TEST AL,0x1
JNZ 0x001b51b2
JMP 0x001b51e8
LAB_001b51b2:
MOV byte ptr [RSP + 0x10f],0x0
MOV qword ptr [RSP + 0x100],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x10f]
LEA RDX,[RSP + 0x100]
CALL 0x001b5b10
JMP 0x001b5654
LAB_001b51e8:
MOV RAX,qword ptr [RSP + 0x128]
LEA RDI,[RSP + 0xf0]
MOVZX ESI,byte ptr [RAX]
CALL 0x001afae0
MOV AL,0x1
TEST byte ptr [RSP + 0x127],0x1
MOV byte ptr [RSP + 0x3f],AL
JNZ 0x001b5253
MOV RDI,qword ptr [RSP + 0x40]
MOV RAX,RDI
SUB RAX,-0x80
MOV qword ptr [RSP + 0x30],RAX
ADD RDI,0x8
CALL 0x001b5100
MOV RDI,qword ptr [RSP + 0x30]
MOV ESI,EAX
LAB_001b5231:
MOV EDX,0x5
LEA RCX,[RSP + 0xf0]
CALL 0x001b50a0
MOV byte ptr [RSP + 0x3e],AL
JMP 0x001b5249
LAB_001b5249:
MOV AL,byte ptr [RSP + 0x3e]
MOV byte ptr [RSP + 0x3f],AL
JMP 0x001b5253
LAB_001b5253:
MOV AL,byte ptr [RSP + 0x3f]
AND AL,0x1
MOV byte ptr [RSP + 0xef],AL
TEST byte ptr [RSP + 0xef],0x1
JNZ 0x001b52d3
MOV byte ptr [RSP + 0xdb],0x0
MOV qword ptr [RSP + 0xd0],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xdb]
LEA RDX,[RSP + 0xd0]
CALL 0x001b5b10
JMP 0x001b529d
LAB_001b529d:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001b5647
LAB_001b52d3:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b5b40
TEST AL,0x1
JNZ 0x001b52e7
JMP 0x001b5364
LAB_001b52e7:
LEA RDI,[RSP + 0xb8]
MOV qword ptr [RSP + 0x28],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x001b5b90
MOV RSI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x40]
MOV RDI,qword ptr [RAX]
CALL 0x001afb20
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001a6940
MOV RAX,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0xb7],0x1
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xa8],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xb7]
LEA RDX,[RSP + 0xa8]
CALL 0x001b5c10
JMP 0x001b5354
LAB_001b5354:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001b5647
LAB_001b5364:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b56f0
CMP qword ptr [RAX],0x0
JNZ 0x001b53bb
MOV byte ptr [RSP + 0xa7],0x0
MOV qword ptr [RSP + 0x98],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xa7]
LEA RDX,[RSP + 0x98]
CALL 0x001b5b10
JMP 0x001b53ab
LAB_001b53ab:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001b5647
LAB_001b53bb:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b56f0
MOV RDI,qword ptr [RAX]
CALL 0x001b5c40
TEST AL,0x1
JNZ 0x001b5412
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b56f0
MOV RDI,qword ptr [RAX]
CALL 0x001b5c60
TEST AL,0x1
JNZ 0x001b5412
LEA RDI,[0x313490]
LEA RDX,[0x30d164]
LEA RCX,[0x314424]
XOR EAX,EAX
MOV ESI,0x1c4b
CALL 0x0015aee0
JMP 0x001b5412
LAB_001b5412:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b56f0
MOV RDI,qword ptr [RAX]
CALL 0x001b5c40
TEST AL,0x1
JNZ 0x001b542e
JMP 0x001b54ab
LAB_001b542e:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b56f0
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0xf0]
CALL 0x001b5c80
JMP 0x001b5452
LAB_001b5452:
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x97],0x1
ADD RDI,0x8
CALL 0x001b56f0
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001b5d00
MOV qword ptr [RSP + 0x88],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x97]
LEA RDX,[RSP + 0x88]
CALL 0x001b5c10
JMP 0x001b549b
LAB_001b549b:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001b5647
LAB_001b54ab:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b56f0
MOV RDI,qword ptr [RAX]
CALL 0x001b5c60
TEST AL,0x1
JNZ 0x001b54e8
LEA RDI,[0x313490]
LEA RDX,[0x30d164]
LEA RCX,[0x314444]
XOR EAX,EAX
MOV ESI,0x1c55
CALL 0x0015aee0
JMP 0x001b54e8
LAB_001b54e8:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x48
CALL 0x001b4f80
TEST AL,0x1
JNZ 0x001b54fc
JMP 0x001b551f
LAB_001b54fc:
LEA RDI,[0x313490]
LEA RDX,[0x30d164]
LEA RCX,[0x314462]
XOR EAX,EAX
MOV ESI,0x1c57
CALL 0x0015aee0
JMP 0x001b551f
LAB_001b551f:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x48
CALL 0x001b5000
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001b5539
LAB_001b5539:
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x70],RCX
MOV qword ptr [RSP + 0x78],RAX
LEA RDI,[RSP + 0x70]
CALL 0x001b2ff0
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x87],AL
ADD RDI,0x48
CALL 0x001b5080
JMP 0x001b556e
LAB_001b556e:
TEST byte ptr [RSP + 0x87],0x1
JNZ 0x001b55af
MOV byte ptr [RSP + 0x6f],0x0
MOV qword ptr [RSP + 0x60],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x6f]
LEA RDX,[RSP + 0x60]
CALL 0x001b5b10
JMP 0x001b559f
LAB_001b559f:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001b5647
LAB_001b55af:
MOV RAX,qword ptr [RSP + 0x40]
CMP qword ptr [RAX + 0x70],0x0
JNZ 0x001b55de
LEA RDI,[0x313490]
LEA RDX,[0x30d164]
LEA RCX,[0x31447a]
XOR EAX,EAX
MOV ESI,0x1c60
CALL 0x0015aee0
JMP 0x001b55de
LAB_001b55de:
LEA RDI,[RSP + 0x50]
MOV qword ptr [RSP + 0x8],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x001b5b90
MOV RAX,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x8]
MOV RCX,RAX
ADD RCX,0x70
MOV qword ptr [RSP + 0x10],RCX
MOV RDI,qword ptr [RAX + 0x70]
CALL 0x001afb20
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001a6940
MOV RDX,qword ptr [RSP + 0x10]
MOV byte ptr [RSP + 0x4f],0x1
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x4f]
CALL 0x001b5d40
LAB_001b563a:
JMP 0x001b563c
LAB_001b563c:
MOV dword ptr [RSP + 0xcc],0x1
LAB_001b5647:
LEA RDI,[RSP + 0xf0]
CALL 0x001a6940
LAB_001b5654:
MOV AL,byte ptr [RSP + 0x138]
MOV RDX,qword ptr [RSP + 0x140]
ADD RSP,0x148
RET
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>*>
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>
>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t&&,
bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>
(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,value_t *param_1,bool param_2)
{
bool bVar1;
int4 uVar2;
ulong uVar3;
long *plVar4;
int8 *puVar5;
int8 uVar6;
int1 auVar7 [16];
byte local_109;
int1 local_f9;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_f8 [16];
int8 local_e8;
int1 local_d9;
int1 local_d8 [16];
byte local_c1;
int8 local_c0;
int1 local_b1;
int8 local_b0;
int1 local_a1;
int8 local_a0;
int1 local_91;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_90 [20];
int4 local_7c;
int8 local_78;
int1 local_6d [20];
byte local_59;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_58 [16];
int8 local_48;
int1 local_39;
_Bit_reference local_38 [23];
byte local_21;
int1 *local_20;
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_18;
int1 local_10 [8];
int8 local_8;
local_21 = param_2;
local_20 = param_1;
local_18 = this;
uVar3 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if ((uVar3 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
local_38._0_16_ =
std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
bVar1 = std::_Bit_reference::operator_cast_to_bool(local_38);
if (((bVar1 ^ 0xffU) & 1) == 0) {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_58,*local_20);
local_109 = 1;
if ((local_21 & 1) == 0) {
uVar2 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
/* try { // try from 001b5231 to 001b5639 has its CatchHandler @ 001b52ad */
local_109 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
*)(this + 0x80),uVar2,5,local_58);
}
local_59 = local_109 & 1;
if (local_59 == 0) {
local_6d[0] = 0;
local_78 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,local_6d,&local_78);
}
else {
uVar3 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if ((uVar3 & 1) == 0) {
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if (*plVar4 == 0) {
local_a1 = 0;
local_b0 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_a1,&local_b0);
}
else {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c4b,"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_array() || ref_stack.back()->is_object()");
}
}
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c55,"GGML_ASSERT(%s) failed","ref_stack.back()->is_object()");
}
uVar3 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x48));
if ((uVar3 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c57,"GGML_ASSERT(%s) failed","!key_keep_stack.empty()");
}
local_d8 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
local_c1 = std::_Bit_reference::operator_cast_to_bool((_Bit_reference *)local_d8);
std::vector<bool,std::allocator<bool>>::pop_back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
if ((local_c1 & 1) == 0) {
local_d9 = 0;
local_e8 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_d9,&local_e8);
}
else {
if (*(long *)(this + 0x70) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c60,"GGML_ASSERT(%s) failed","object_element");
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_f8,local_58);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),local_f8);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_f8);
local_f9 = 1;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
(local_10,&local_f9,this + 0x70);
}
}
else {
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar4 + 8),local_58);
local_b1 = 1;
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
local_c0 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar4 + 8));
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_b1,&local_c0);
}
}
}
else {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_90,local_58);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,local_90);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_90);
local_91 = 1;
local_a0 = *(int8 *)this;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_91,&local_a0);
}
}
local_7c = 1;
uVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_58);
}
else {
local_39 = 0;
local_48 = 0;
uVar6 = _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_39,&local_48);
}
auVar7._1_7_ = (int7)((ulong)uVar6 >> 8);
auVar7[0] = local_10[0];
auVar7._8_8_ = local_8;
return auVar7;
}
|
|
3,059 | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t&&, bool) | monkey531[P]llama/common/json.hpp | std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
} | O2 | cpp | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t&&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movl %edx, %ebp
movq %rdi, %rbx
movq 0x20(%rdi), %rax
cmpq 0x30(%rdi), %rax
jne 0x45323
cmpl $0x0, 0x38(%rbx)
je 0x4547a
leaq 0x20(%rbx), %rdi
callq 0x42aa6
testq %rdx, (%rax)
je 0x453bd
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x3e640
testb %bpl, %bpl
jne 0x4536e
leaq 0x80(%rbx), %rdi
movq 0x10(%rbx), %rsi
subq 0x8(%rbx), %rsi
shrq $0x3, %rsi
pushq $0x5
popq %rdx
leaq 0x8(%rsp), %rcx
callq 0x42ad4
testb %al, %al
je 0x4545b
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x453c7
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x4545b
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x453f1
cmpl $0x2, %ecx
jne 0x4549b
movq 0x8(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0x42f0a
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x45457
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x4546a
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x42ed6
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x411b2
movq %r14, %rdi
callq 0x3e62c
movq (%rbx), %r14
jmp 0x45457
movq 0x48(%rbx), %rax
cmpq 0x58(%rbx), %rax
jne 0x45405
cmpl $0x0, 0x60(%rbx)
je 0x454a9
leaq 0x48(%rbx), %rdi
callq 0x42aa6
movq %rdx, %r14
leaq 0x58(%rbx), %rdi
movq (%rax), %r15
callq 0x4210c
testq %r14, %r15
je 0x4545b
cmpq $0x0, 0x70(%rbx)
je 0x454ca
leaq 0x18(%rsp), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x42ed6
movq 0x70(%rbx), %rdi
movq %r14, %rsi
callq 0x411b2
movq %r14, %rdi
callq 0x3e62c
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x45460
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x8(%rsp), %rdi
callq 0x3e62c
movl %ebx, %eax
movq %r14, %rdx
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6ba7b(%rip), %rdi # 0xb0efc
leaq 0x65dac(%rip), %rdx # 0xab234
leaq 0x6c9e1(%rip), %rcx # 0xb1e70
movl $0x1c28, %esi # imm = 0x1C28
xorl %eax, %eax
callq 0x23eb0
leaq 0x6c9e2(%rip), %rcx # 0xb1e84
movl $0x1c4b, %esi # imm = 0x1C4B
jmp 0x454b5
leaq 0x6ca12(%rip), %rcx # 0xb1ec2
movl $0x1c57, %esi # imm = 0x1C57
leaq 0x6ba40(%rip), %rdi # 0xb0efc
leaq 0x65d71(%rip), %rdx # 0xab234
xorl %eax, %eax
callq 0x23eb0
leaq 0x6ba2b(%rip), %rdi # 0xb0efc
leaq 0x65d5c(%rip), %rdx # 0xab234
leaq 0x6c9fb(%rip), %rcx # 0xb1eda
movl $0x1c60, %esi # imm = 0x1C60
xorl %eax, %eax
callq 0x23eb0
jmp 0x454ef
jmp 0x454ef
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3e62c
movq %rbx, %rdi
callq 0x23f80
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIDnEESt4pairIbPSF_EOT_b:
push rbp
push r15
push r14
push rbx
sub rsp, 38h
mov ebp, edx
mov rbx, rdi
mov rax, [rdi+20h]
cmp rax, [rdi+30h]
jnz short loc_45323
cmp dword ptr [rbx+38h], 0
jz loc_4547A
loc_45323:
lea rdi, [rbx+20h]
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
test [rax], rdx
jz loc_453BD
lea rdi, [rsp+58h+var_50]
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))
test bpl, bpl
jnz short loc_4536E
lea rdi, [rbx+80h]
mov rsi, [rbx+10h]
sub rsi, [rbx+8]
shr rsi, 3
push 5
pop rdx
lea rcx, [rsp+58h+var_50]
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
test al, al
jz loc_4545B
loc_4536E:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_453C7
mov rax, [rax-8]
test rax, rax
jz loc_4545B
movzx ecx, byte ptr [rax]
cmp ecx, 1
jz short loc_453F1
cmp ecx, 2
jnz loc_4549B
mov rdi, [rax+8]
lea rsi, [rsp+58h+var_50]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov r14, [rax+8]
add r14, 0FFFFFFFFFFFFFFF0h
jmp loc_45457
loc_453BD:
xor ebx, ebx
xor r14d, r14d
jmp loc_4546A
loc_453C7:
lea r14, [rsp+58h+var_30]
lea rsi, [rsp+58h+var_50]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rdi, [rbx]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov r14, [rbx]
jmp short loc_45457
loc_453F1:
mov rax, [rbx+48h]
cmp rax, [rbx+58h]
jnz short loc_45405
cmp dword ptr [rbx+60h], 0
jz loc_454A9
loc_45405:
lea rdi, [rbx+48h]
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov r14, rdx
lea rdi, [rbx+58h]; this
mov r15, [rax]
call _ZNSt18_Bit_iterator_base12_M_bump_downEv; std::_Bit_iterator_base::_M_bump_down(void)
test r15, r14
jz short loc_4545B
cmp qword ptr [rbx+70h], 0
jz loc_454CA
lea r14, [rsp+58h+var_40]
lea rsi, [rsp+58h+var_50]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rdi, [rbx+70h]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov r14, [rbx+70h]
loc_45457:
mov bl, 1
jmp short loc_45460
loc_4545B:
xor ebx, ebx
xor r14d, r14d
loc_45460:
lea rdi, [rsp+58h+var_50]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_4546A:
mov eax, ebx
mov rdx, r14
add rsp, 38h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_4547A:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov esi, 1C28h
xor eax, eax
call _ggml_abort
loc_4549B:
lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
mov esi, 1C4Bh
jmp short loc_454B5
loc_454A9:
lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()"
mov esi, 1C57h
loc_454B5:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
xor eax, eax
call _ggml_abort
loc_454CA:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aObjectElement; "object_element"
mov esi, 1C60h
xor eax, eax
call _ggml_abort
jmp short loc_454EF
jmp short $+2
loc_454EF:
mov rbx, rax
lea rdi, [rsp+58h+var_50]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdi, rbx
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<decltype(nullptr)>(
long long a1,
long long a2,
char a3)
{
unsigned int v4; // ebx
_QWORD *v5; // rax
long long v6; // rdx
long long v7; // rax
unsigned __int8 *v8; // rax
int v9; // ecx
long long *v10; // rax
long long v11; // rdx
long long v12; // r14
long long v13; // r15
const char *v15; // rcx
long long v16; // rsi
long long v17; // rbx
_BYTE v18[16]; // [rsp+8h] [rbp-50h] BYREF
char v19[16]; // [rsp+18h] [rbp-40h] BYREF
char v20[48]; // [rsp+28h] [rbp-30h] BYREF
v4 = a1;
if ( *(_QWORD *)(a1 + 32) == *(_QWORD *)(a1 + 48) && !*(_DWORD *)(a1 + 56) )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7208LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
LABEL_23:
v15 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()";
v16 = 7243LL;
LABEL_25:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v16,
"GGML_ASSERT(%s) failed",
v15);
goto LABEL_26;
}
v5 = (_QWORD *)std::vector<bool>::back(a1 + 32);
if ( (v6 & *v5) != 0 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json((long long)v18);
if ( a3
|| (unsigned __int8)std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()(
a1 + 128,
(*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3,
5) )
{
v7 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v7 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v20,
(long long)v18);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)a1,
(long long)v20);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v20);
goto LABEL_18;
}
v8 = *(unsigned __int8 **)(v7 - 8);
if ( v8 )
{
v9 = *v8;
if ( v9 != 1 )
{
if ( v9 == 2 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*((_QWORD *)v8 + 1),
(long long)v18);
LABEL_18:
LOBYTE(v4) = 1;
LABEL_20:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v18);
return v4;
}
goto LABEL_23;
}
if ( *(_QWORD *)(a1 + 72) == *(_QWORD *)(a1 + 88) && !*(_DWORD *)(a1 + 96) )
{
v15 = "!key_keep_stack.empty()";
v16 = 7255LL;
goto LABEL_25;
}
v10 = (long long *)std::vector<bool>::back(a1 + 72);
v12 = v11;
v13 = *v10;
std::_Bit_iterator_base::_M_bump_down((std::_Bit_iterator_base *)(a1 + 88));
if ( (v12 & v13) != 0 )
{
if ( *(_QWORD *)(a1 + 112) )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v19,
(long long)v18);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)(a1 + 112),
(long long)v19);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v19);
goto LABEL_18;
}
LABEL_26:
v17 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7264LL,
"GGML_ASSERT(%s) failed",
"object_element");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v18);
_Unwind_Resume(v17);
}
}
}
v4 = 0;
goto LABEL_20;
}
return 0;
}
| handle_value<decltype(nullptr)>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x38
MOV EBP,EDX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x20]
CMP RAX,qword ptr [RDI + 0x30]
JNZ 0x00145323
CMP dword ptr [RBX + 0x38],0x0
JZ 0x0014547a
LAB_00145323:
LEA RDI,[RBX + 0x20]
CALL 0x00142aa6
TEST qword ptr [RAX],RDX
JZ 0x001453bd
LEA RDI,[RSP + 0x8]
XOR ESI,ESI
CALL 0x0013e640
TEST BPL,BPL
JNZ 0x0014536e
LEA RDI,[RBX + 0x80]
MOV RSI,qword ptr [RBX + 0x10]
SUB RSI,qword ptr [RBX + 0x8]
SHR RSI,0x3
LAB_00145359:
PUSH 0x5
POP RDX
LEA RCX,[RSP + 0x8]
CALL 0x00142ad4
TEST AL,AL
JZ 0x0014545b
LAB_0014536e:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x001453c7
MOV RAX,qword ptr [RAX + -0x8]
TEST RAX,RAX
JZ 0x0014545b
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x1
JZ 0x001453f1
CMP ECX,0x2
JNZ 0x0014549b
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x8]
CALL 0x00142f0a
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV R14,qword ptr [RAX + 0x8]
ADD R14,-0x10
JMP 0x00145457
LAB_001453bd:
XOR EBX,EBX
XOR R14D,R14D
JMP 0x0014546a
LAB_001453c7:
LEA R14,[RSP + 0x28]
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x00142ed6
MOV RDI,qword ptr [RBX]
MOV RSI,R14
CALL 0x001411b2
MOV RDI,R14
CALL 0x0013e62c
MOV R14,qword ptr [RBX]
JMP 0x00145457
LAB_001453f1:
MOV RAX,qword ptr [RBX + 0x48]
CMP RAX,qword ptr [RBX + 0x58]
JNZ 0x00145405
CMP dword ptr [RBX + 0x60],0x0
JZ 0x001454a9
LAB_00145405:
LEA RDI,[RBX + 0x48]
CALL 0x00142aa6
LAB_0014540e:
MOV R14,RDX
LEA RDI,[RBX + 0x58]
MOV R15,qword ptr [RAX]
CALL 0x0014210c
TEST R15,R14
JZ 0x0014545b
CMP qword ptr [RBX + 0x70],0x0
JZ 0x001454ca
LEA R14,[RSP + 0x18]
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x00142ed6
MOV RDI,qword ptr [RBX + 0x70]
MOV RSI,R14
CALL 0x001411b2
MOV RDI,R14
CALL 0x0013e62c
MOV R14,qword ptr [RBX + 0x70]
LAB_00145457:
MOV BL,0x1
JMP 0x00145460
LAB_0014545b:
XOR EBX,EBX
XOR R14D,R14D
LAB_00145460:
LEA RDI,[RSP + 0x8]
CALL 0x0013e62c
LAB_0014546a:
MOV EAX,EBX
MOV RDX,R14
ADD RSP,0x38
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0014547a:
LEA RDI,[0x1b0efc]
LEA RDX,[0x1ab234]
LEA RCX,[0x1b1e70]
MOV ESI,0x1c28
XOR EAX,EAX
CALL 0x00123eb0
LAB_0014549b:
LEA RCX,[0x1b1e84]
MOV ESI,0x1c4b
JMP 0x001454b5
LAB_001454a9:
LEA RCX,[0x1b1ec2]
MOV ESI,0x1c57
LAB_001454b5:
LEA RDI,[0x1b0efc]
LEA RDX,[0x1ab234]
XOR EAX,EAX
CALL 0x00123eb0
LAB_001454ca:
LEA RDI,[0x1b0efc]
LEA RDX,[0x1ab234]
LEA RCX,[0x1b1eda]
MOV ESI,0x1c60
XOR EAX,EAX
CALL 0x00123eb0
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>*>
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::handle_value<decltype(nullptr)>(decltype(nullptr)&&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<decltype(nullptr)>
(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,_func_decltype_nullptr **param_1,bool param_2)
{
char cVar1;
char *pcVar2;
ulong uVar3;
int8 uVar4;
long lVar5;
int1 auVar6 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_50 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_40 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_30 [16];
if ((*(long *)(this + 0x20) == *(long *)(this + 0x30)) && (*(int *)(this + 0x38) == 0)) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
auVar6 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if ((*auVar6._0_8_ & auVar6._8_8_) == 0) {
uVar3 = 0;
lVar5 = 0;
goto LAB_0014546a;
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 *)local_50);
if (param_2) {
LAB_0014536e:
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_30,local_50);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,local_30);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_30);
lVar5 = *(long *)this;
}
else {
pcVar2 = *(char **)(*(long *)(this + 0x10) + -8);
if (pcVar2 == (char *)0x0) goto LAB_0014545b;
if (*pcVar2 == '\x01') {
if ((*(long *)(this + 0x48) == *(long *)(this + 0x58)) && (*(int *)(this + 0x60) == 0)) {
pcVar2 = "!key_keep_stack.empty()";
uVar4 = 0x1c57;
goto LAB_001454b5;
}
/* try { // try from 00145405 to 0014540d has its CatchHandler @ 001454ed */
auVar6 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
uVar3 = *auVar6._0_8_;
std::_Bit_iterator_base::_M_bump_down((_Bit_iterator_base *)(this + 0x58));
if ((uVar3 & auVar6._8_8_) == 0) goto LAB_0014545b;
if (*(long *)(this + 0x70) == 0) {
/* try { // try from 001454ca to 001454ea has its CatchHandler @ 001454eb */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
0x1c60,"GGML_ASSERT(%s) failed","object_element");
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_40,local_50);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),local_40);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_40);
lVar5 = *(long *)(this + 0x70);
}
else {
if (*pcVar2 != '\x02') {
pcVar2 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()";
uVar4 = 0x1c4b;
LAB_001454b5:
/* try { // try from 001454b5 to 001454c9 has its CatchHandler @ 001454ef */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
uVar4,"GGML_ASSERT(%s) failed",pcVar2);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(pcVar2 + 8),local_50);
lVar5 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10;
}
}
uVar3 = CONCAT71((int7)((ulong)this >> 8),1);
}
else {
/* try { // try from 00145359 to 001453a3 has its CatchHandler @ 001454ef */
cVar1 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()(this + 0x80,(ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3,5,
local_50);
if (cVar1 != '\0') goto LAB_0014536e;
LAB_0014545b:
uVar3 = 0;
lVar5 = 0;
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_50);
LAB_0014546a:
auVar6._0_8_ = uVar3 & 0xffffffff;
auVar6._8_8_ = lVar5;
return auVar6;
}
|
|
3,060 | minja::Parser::parseBracedExpressionOrArray() | monkey531[P]llama/common/minja.hpp | std::shared_ptr<Expression> parseBracedExpressionOrArray() {
if (consumeToken("(").empty()) return nullptr;
auto expr = parseExpression();
if (!expr) throw std::runtime_error("Expected expression in braced expression");
if (!consumeToken(")").empty()) {
return expr; // Drop the parentheses
}
std::vector<std::shared_ptr<Expression>> tuple;
tuple.emplace_back(std::move(expr));
while (it != end) {
if (consumeToken(",").empty()) throw std::runtime_error("Expected comma in tuple");
auto next = parseExpression();
if (!next) throw std::runtime_error("Expected expression in tuple");
tuple.push_back(std::move(next));
if (!consumeToken(")").empty()) {
return std::make_shared<ArrayExpr>(get_location(), std::move(tuple));
}
}
throw std::runtime_error("Expected closing parenthesis");
} | O2 | cpp | minja::Parser::parseBracedExpressionOrArray():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r15
movq %rdi, %r14
leaq 0x52d2e(%rip), %rsi # 0xc4b3a
leaq 0x20(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x30aea
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r15, %rsi
callq 0x6c940
leaq 0x40(%rsp), %rdi
movq 0x8(%rdi), %rbx
callq 0x25298
leaq 0x20(%rsp), %rdi
callq 0x25298
testq %rbx, %rbx
je 0x71ecc
leaq 0x10(%rsp), %rbx
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6c14e
cmpq $0x0, (%rbx)
je 0x720d0
leaq 0x52982(%rip), %rsi # 0xc47f3
leaq 0x20(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x30aea
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r15, %rsi
callq 0x6c940
leaq 0x40(%rsp), %rdi
movq 0x8(%rdi), %rbx
callq 0x25298
leaq 0x20(%rsp), %rdi
callq 0x25298
testq %rbx, %rbx
je 0x71ed8
movaps 0x10(%rsp), %xmm0
andq $0x0, 0x18(%rsp)
movups %xmm0, (%r14)
andq $0x0, 0x10(%rsp)
jmp 0x72033
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
jmp 0x7203d
movq %r14, 0x90(%rsp)
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %rdi
movaps %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x10(%rsp), %rsi
callq 0x70766
leaq 0x20(%rsp), %r13
leaq 0x60(%rsp), %rbp
leaq 0x40(%rsp), %rbx
pushq $0x1
popq %r14
movq 0x20(%r15), %rax
cmpq 0x18(%r15), %rax
je 0x72084
movq %r13, %rdi
leaq 0x44307(%rip), %rsi # 0xb622c
movq %rbp, %rdx
callq 0x30aea
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
movl %r14d, %ecx
callq 0x6c940
movq 0x48(%rsp), %r12
movq %rbx, %rdi
callq 0x25298
movq %r13, %rdi
callq 0x25298
testq %r12, %r12
je 0x720a0
movq %rbp, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x6c14e
cmpq $0x0, 0x60(%rsp)
je 0x72052
leaq 0x70(%rsp), %rdi
movq %rbp, %rsi
callq 0x70766
movq %r13, %rdi
leaq 0x52866(%rip), %rsi # 0xc47f3
leaq 0xf(%rsp), %rdx
callq 0x30aea
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
movl %r14d, %ecx
callq 0x6c940
movq 0x48(%rsp), %r12
movq %rbx, %rdi
callq 0x25298
movq %r13, %rdi
callq 0x25298
testq %r12, %r12
jne 0x71fd1
leaq 0x68(%rsp), %rdi
callq 0x5b5b4
jmp 0x71f0d
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0x6bf10
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x74bc3
movq 0x90(%rsp), %r14
leaq 0x28(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
andq $0x0, (%rdi)
movups %xmm0, (%r14)
andq $0x0, -0x8(%rdi)
callq 0x5b5b4
leaq 0x48(%rsp), %rdi
callq 0x5b5b4
leaq 0x68(%rsp), %rdi
callq 0x5b5b4
leaq 0x70(%rsp), %rdi
callq 0x707cc
leaq 0x18(%rsp), %rdi
callq 0x5b5b4
movq %r14, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %r14
leaq 0x4e21e(%rip), %rsi # 0xc0282
movq %rax, %rdi
callq 0x24330
movq 0x99f7d(%rip), %rsi # 0x10bff0
movq 0x99ede(%rip), %rdx # 0x10bf58
movq %r14, %rdi
callq 0x24f80
jmp 0x72100
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %r14
leaq 0x4e209(%rip), %rsi # 0xc029f
movq %rax, %rdi
callq 0x24330
jmp 0x720ba
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %r14
leaq 0x4e1b8(%rip), %rsi # 0xc026a
movq %rax, %rdi
callq 0x24330
movq 0x99f2f(%rip), %rsi # 0x10bff0
movq 0x99e90(%rip), %rdx # 0x10bf58
movq %r14, %rdi
callq 0x24f80
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %r14
leaq 0x4e15f(%rip), %rsi # 0xc0241
movq %rax, %rdi
callq 0x24330
movq 0x99eff(%rip), %rsi # 0x10bff0
movq 0x99e60(%rip), %rdx # 0x10bf58
movq %r14, %rdi
callq 0x24f80
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x5b5b4
jmp 0x72193
jmp 0x72181
jmp 0x72135
movq %rax, %rbx
movq %r14, %rdi
callq 0x246a0
jmp 0x721ac
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x25298
jmp 0x721ac
movq %rax, %rbx
jmp 0x721ac
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x25298
jmp 0x721b6
movq %rax, %rbx
jmp 0x721b6
jmp 0x72150
movq %rax, %rbx
movq %r14, %rdi
callq 0x246a0
jmp 0x721a2
jmp 0x72181
movq %rax, %rbx
movq %r14, %rdi
callq 0x246a0
jmp 0x72193
jmp 0x7219f
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x25298
jmp 0x721a2
jmp 0x7219f
jmp 0x72181
movq %rax, %rbx
jmp 0x72193
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x25298
leaq 0x68(%rsp), %rdi
callq 0x5b5b4
jmp 0x721a2
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x707cc
leaq 0x18(%rsp), %rdi
callq 0x5b5b4
movq %rbx, %rdi
callq 0x25010
| _ZN5minja6Parser28parseBracedExpressionOrArrayEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rsi
mov r14, rdi
lea rsi, asc_C4B35+5; "("
lea rdi, [rsp+0C8h+var_A8]
lea rdx, [rsp+0C8h+var_58]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0C8h+var_88]
lea rdx, [rsp+0C8h+var_A8]
push 1
pop rcx
mov rsi, r15
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rdi, [rsp+0C8h+var_88]; void *
mov rbx, [rdi+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0C8h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbx, rbx
jz short loc_71ECC
lea rbx, [rsp+0C8h+var_B8]
push 1
pop rdx
mov rdi, rbx; this
mov rsi, r15; bool
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
cmp qword ptr [rbx], 0
jz loc_720D0
lea rsi, a09401910201912+51h; ")"
lea rdi, [rsp+0C8h+var_A8]
lea rdx, [rsp+0C8h+var_58]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0C8h+var_88]
lea rdx, [rsp+0C8h+var_A8]
push 1
pop rcx
mov rsi, r15
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rdi, [rsp+0C8h+var_88]; void *
mov rbx, [rdi+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0C8h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbx, rbx
jz short loc_71ED8
movaps xmm0, [rsp+0C8h+var_B8]
and qword ptr [rsp+0C8h+var_B8+8], 0
movups xmmword ptr [r14], xmm0
and qword ptr [rsp+0C8h+var_B8], 0
jmp loc_72033
loc_71ECC:
xorps xmm0, xmm0
movups xmmword ptr [r14], xmm0
jmp loc_7203D
loc_71ED8:
mov [rsp+0C8h+var_38], r14
xorps xmm0, xmm0
lea rdi, [rsp+0C8h+var_58]
movaps xmmword ptr [rdi], xmm0
and qword ptr [rdi+10h], 0
lea rsi, [rsp+0C8h+var_B8]
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> &&)
lea r13, [rsp+0C8h+var_A8]
lea rbp, [rsp+0C8h+var_68]
lea rbx, [rsp+0C8h+var_88]
push 1
pop r14
loc_71F0D:
mov rax, [r15+20h]
cmp rax, [r15+18h]
jz loc_72084
mov rdi, r13
lea rsi, aD4lf+9; ","
mov rdx, rbp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r15
mov rdx, r13
mov ecx, r14d
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov r12, [rsp+0C8h+var_80]
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r13; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r12, r12
jz loc_720A0
mov rdi, rbp; this
mov rsi, r15; bool
mov edx, r14d
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
cmp [rsp+0C8h+var_68], 0
jz loc_72052
lea rdi, [rsp+0C8h+var_58]
mov rsi, rbp
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> &&)
mov rdi, r13
lea rsi, a09401910201912+51h; ")"
lea rdx, [rsp+0C8h+var_B9]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r15
mov rdx, r13
mov ecx, r14d
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov r12, [rsp+0C8h+var_80]
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r13; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r12, r12
jnz short loc_71FD1
lea rdi, [rsp+0C8h+var_60]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp loc_71F0D
loc_71FD1:
lea rdi, [rsp+0C8h+var_88]; this
mov rsi, r15
call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void)
lea rdi, [rsp+0C8h+var_A8]
lea rsi, [rsp+0C8h+var_88]
lea rdx, [rsp+0C8h+var_58]
call _ZSt11make_sharedIN5minja9ArrayExprEJNS0_8LocationESt6vectorISt10shared_ptrINS0_10ExpressionEESaIS6_EEEES4_IT_EDpOT0_; std::make_shared<minja::ArrayExpr,minja::Location,std::vector<std::shared_ptr<minja::Expression>>>(minja::Location,std::vector<std::shared_ptr<minja::Expression>> &&)
mov r14, [rsp+0C8h+var_38]
lea rdi, [rsp+0C8h+var_A0]
movaps xmm0, xmmword ptr [rdi-8]
and qword ptr [rdi], 0
movups xmmword ptr [r14], xmm0
and qword ptr [rdi-8], 0
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+0C8h+var_80]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+0C8h+var_60]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+0C8h+var_58]
call _ZNSt6vectorISt10shared_ptrIN5minja10ExpressionEESaIS3_EED2Ev; std::vector<std::shared_ptr<minja::Expression>>::~vector()
loc_72033:
lea rdi, [rsp+0C8h+var_B8+8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_7203D:
mov rax, r14
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_72052:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExpres_3; "Expected expression in tuple"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_72100
loc_72084:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedClosin_3; "Expected closing parenthesis"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_720BA
loc_720A0:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCommaI; "Expected comma in tuple"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_720BA:
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_720D0:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExpres_4; "Expected expression in braced expressio"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_72100:
mov rbx, rax
lea rdi, [rsp+0C8h+var_80]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp loc_72193
jmp short loc_72181
jmp short loc_72135
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp loc_721AC
mov rbx, rax
lea rdi, [rsp+0C8h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_721AC
loc_72135:
mov rbx, rax
jmp short loc_721AC
mov rbx, rax
lea rdi, [rsp+0C8h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_721B6
mov rbx, rax
jmp short loc_721B6
jmp short $+2
loc_72150:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_721A2
jmp short loc_72181
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_72193
jmp short loc_7219F
mov rbx, rax
lea rdi, [rsp+0C8h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_721A2
jmp short loc_7219F
jmp short $+2
loc_72181:
mov rbx, rax
jmp short loc_72193
mov rbx, rax
lea rdi, [rsp+0C8h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_72193:
lea rdi, [rsp+0C8h+var_60]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_721A2
loc_7219F:
mov rbx, rax
loc_721A2:
lea rdi, [rsp+0C8h+var_58]
call _ZNSt6vectorISt10shared_ptrIN5minja10ExpressionEESaIS3_EED2Ev; std::vector<std::shared_ptr<minja::Expression>>::~vector()
loc_721AC:
lea rdi, [rsp+0C8h+var_B8+8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_721B6:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseBracedExpressionOrArray(minja::Parser *this, _QWORD *a2)
{
minja::Parser *v2; // r14
long long v3; // rbx
long long v4; // rbx
__int128 v5; // xmm0
long long v6; // r12
long long v7; // r12
__int128 v8; // xmm0
std::runtime_error *v10; // r14
std::runtime_error *v11; // r14
std::runtime_error *exception; // r14
__int128 v13; // [rsp+10h] [rbp-B8h] BYREF
_OWORD v14[2]; // [rsp+20h] [rbp-A8h] BYREF
long long v15; // [rsp+40h] [rbp-88h] BYREF
_QWORD v16[3]; // [rsp+48h] [rbp-80h] BYREF
__int128 v17; // [rsp+60h] [rbp-68h] BYREF
__int128 v18; // [rsp+70h] [rbp-58h] BYREF
long long v19; // [rsp+80h] [rbp-48h]
minja::Parser *v20; // [rsp+90h] [rbp-38h]
v2 = this;
std::string::basic_string<std::allocator<char>>(v14, (long long)"(");
minja::Parser::consumeToken(&v15, (long long)a2, v14, 1u);
v3 = v16[0];
std::string::~string(&v15);
std::string::~string(v14);
if ( !v3 )
{
*(_OWORD *)this = 0LL;
return v2;
}
minja::Parser::parseExpression((minja::Parser *)&v13, a2, 1);
if ( !(_QWORD)v13 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected expression in braced expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
std::string::basic_string<std::allocator<char>>(v14, (long long)")");
minja::Parser::consumeToken(&v15, (long long)a2, v14, 1u);
v4 = v16[0];
std::string::~string(&v15);
std::string::~string(v14);
if ( v4 )
{
v5 = v13;
*((_QWORD *)&v13 + 1) = 0LL;
*(_OWORD *)this = v5;
*(_QWORD *)&v13 = 0LL;
goto LABEL_13;
}
v20 = this;
v18 = 0LL;
v19 = 0LL;
std::vector<std::shared_ptr<minja::Expression>>::emplace_back<std::shared_ptr<minja::Expression>>((long long)&v18, &v13);
while ( 1 )
{
if ( a2[4] == a2[3] )
{
v11 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v11, "Expected closing parenthesis");
goto LABEL_18;
}
std::string::basic_string<std::allocator<char>>(v14, (long long)",");
minja::Parser::consumeToken(&v15, (long long)a2, v14, 1u);
v6 = v16[0];
std::string::~string(&v15);
std::string::~string(v14);
if ( !v6 )
{
v11 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v11, "Expected comma in tuple");
LABEL_18:
__cxa_throw(
v11,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Parser::parseExpression((minja::Parser *)&v17, a2, 1);
if ( !(_QWORD)v17 )
{
v10 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v10, "Expected expression in tuple");
__cxa_throw(
v10,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
std::vector<std::shared_ptr<minja::Expression>>::emplace_back<std::shared_ptr<minja::Expression>>(
(long long)&v18,
&v17);
std::string::basic_string<std::allocator<char>>(v14, (long long)")");
minja::Parser::consumeToken(&v15, (long long)a2, v14, 1u);
v7 = v16[0];
std::string::~string(&v15);
std::string::~string(v14);
if ( v7 )
break;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v17 + 1);
}
minja::Parser::get_location((minja::Parser *)&v15, a2);
std::make_shared<minja::ArrayExpr,minja::Location,std::vector<std::shared_ptr<minja::Expression>>>(v14, &v15, &v18);
v2 = v20;
v8 = v14[0];
*((_QWORD *)&v14[0] + 1) = 0LL;
*(_OWORD *)v20 = v8;
*(_QWORD *)&v14[0] = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)v14 + 1);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v16);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v17 + 1);
std::vector<std::shared_ptr<minja::Expression>>::~vector(&v18);
LABEL_13:
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v13 + 1);
return v2;
}
| parseBracedExpressionOrArray:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R15,RSI
MOV R14,RDI
LAB_00171e05:
LEA RSI,[0x1c4b3a]
LEA RDI,[RSP + 0x20]
LEA RDX,[RSP + 0x70]
CALL 0x00130aea
LAB_00171e1b:
LEA RDI,[RSP + 0x40]
LEA RDX,[RSP + 0x20]
PUSH 0x1
POP RCX
MOV RSI,R15
CALL 0x0016c940
LAB_00171e30:
LEA RDI,[RSP + 0x40]
MOV RBX,qword ptr [RDI + 0x8]
CALL 0x00125298
LEA RDI,[RSP + 0x20]
CALL 0x00125298
TEST RBX,RBX
JZ 0x00171ecc
LEA RBX,[RSP + 0x10]
PUSH 0x1
POP RDX
MOV RDI,RBX
MOV RSI,R15
CALL 0x0016c14e
CMP qword ptr [RBX],0x0
JZ 0x001720d0
LAB_00171e6a:
LEA RSI,[0x1c47f3]
LEA RDI,[RSP + 0x20]
LEA RDX,[RSP + 0x70]
CALL 0x00130aea
LAB_00171e80:
LEA RDI,[RSP + 0x40]
LEA RDX,[RSP + 0x20]
PUSH 0x1
POP RCX
MOV RSI,R15
CALL 0x0016c940
LEA RDI,[RSP + 0x40]
MOV RBX,qword ptr [RDI + 0x8]
CALL 0x00125298
LEA RDI,[RSP + 0x20]
CALL 0x00125298
TEST RBX,RBX
JZ 0x00171ed8
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
AND qword ptr [RSP + 0x18],0x0
MOVUPS xmmword ptr [R14],XMM0
AND qword ptr [RSP + 0x10],0x0
JMP 0x00172033
LAB_00171ecc:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14],XMM0
JMP 0x0017203d
LAB_00171ed8:
MOV qword ptr [RSP + 0x90],R14
XORPS XMM0,XMM0
LEA RDI,[RSP + 0x70]
MOVAPS xmmword ptr [RDI],XMM0
AND qword ptr [RDI + 0x10],0x0
LAB_00171ef0:
LEA RSI,[RSP + 0x10]
CALL 0x00170766
LEA R13,[RSP + 0x20]
LEA RBP,[RSP + 0x60]
LEA RBX,[RSP + 0x40]
PUSH 0x1
POP R14
LAB_00171f0d:
MOV RAX,qword ptr [R15 + 0x20]
CMP RAX,qword ptr [R15 + 0x18]
JZ 0x00172084
LAB_00171f1b:
MOV RDI,R13
LEA RSI,[0x1b622c]
MOV RDX,RBP
CALL 0x00130aea
LAB_00171f2d:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R13
MOV ECX,R14D
CALL 0x0016c940
MOV R12,qword ptr [RSP + 0x48]
MOV RDI,RBX
CALL 0x00125298
MOV RDI,R13
CALL 0x00125298
TEST R12,R12
JZ 0x001720a0
LAB_00171f5c:
MOV RDI,RBP
MOV RSI,R15
MOV EDX,R14D
CALL 0x0016c14e
CMP qword ptr [RSP + 0x60],0x0
JZ 0x00172052
LAB_00171f76:
LEA RDI,[RSP + 0x70]
MOV RSI,RBP
CALL 0x00170766
LAB_00171f83:
MOV RDI,R13
LEA RSI,[0x1c47f3]
LEA RDX,[RSP + 0xf]
CALL 0x00130aea
LAB_00171f97:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R13
MOV ECX,R14D
CALL 0x0016c940
MOV R12,qword ptr [RSP + 0x48]
MOV RDI,RBX
CALL 0x00125298
MOV RDI,R13
CALL 0x00125298
TEST R12,R12
JNZ 0x00171fd1
LEA RDI,[RSP + 0x68]
CALL 0x0015b5b4
JMP 0x00171f0d
LAB_00171fd1:
LEA RDI,[RSP + 0x40]
MOV RSI,R15
CALL 0x0016bf10
LAB_00171fde:
LEA RDI,[RSP + 0x20]
LEA RSI,[RSP + 0x40]
LEA RDX,[RSP + 0x70]
CALL 0x00174bc3
LAB_00171ff2:
MOV R14,qword ptr [RSP + 0x90]
LEA RDI,[RSP + 0x28]
MOVAPS XMM0,xmmword ptr [RDI + -0x8]
AND qword ptr [RDI],0x0
MOVUPS xmmword ptr [R14],XMM0
AND qword ptr [RDI + -0x8],0x0
CALL 0x0015b5b4
LEA RDI,[RSP + 0x48]
CALL 0x0015b5b4
LEA RDI,[RSP + 0x68]
CALL 0x0015b5b4
LEA RDI,[RSP + 0x70]
CALL 0x001707cc
LAB_00172033:
LEA RDI,[RSP + 0x18]
CALL 0x0015b5b4
LAB_0017203d:
MOV RAX,R14
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00172052:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV R14,RAX
LAB_0017205d:
LEA RSI,[0x1c0282]
MOV RDI,RAX
CALL 0x00124330
LAB_0017206c:
MOV RSI,qword ptr [0x0020bff0]
MOV RDX,qword ptr [0x0020bf58]
MOV RDI,R14
CALL 0x00124f80
LAB_00172084:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV R14,RAX
LAB_0017208f:
LEA RSI,[0x1c029f]
MOV RDI,RAX
CALL 0x00124330
LAB_0017209e:
JMP 0x001720ba
LAB_001720a0:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV R14,RAX
LAB_001720ab:
LEA RSI,[0x1c026a]
MOV RDI,RAX
CALL 0x00124330
LAB_001720ba:
MOV RSI,qword ptr [0x0020bff0]
MOV RDX,qword ptr [0x0020bf58]
MOV RDI,R14
CALL 0x00124f80
LAB_001720d0:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV R14,RAX
LAB_001720db:
LEA RSI,[0x1c0241]
MOV RDI,RAX
CALL 0x00124330
LAB_001720ea:
MOV RSI,qword ptr [0x0020bff0]
MOV RDX,qword ptr [0x0020bf58]
MOV RDI,R14
CALL 0x00124f80
|
/* minja::Parser::parseBracedExpressionOrArray() */
long * minja::Parser::parseBracedExpressionOrArray(void)
{
long lVar1;
long lVar2;
runtime_error *prVar3;
long in_RSI;
long *in_RDI;
allocator local_b9;
long local_b8;
long lStack_b0;
long local_a8;
long alStack_a0 [3];
string local_88 [8];
long local_80 [3];
long local_68;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_60 [8];
int8 local_58;
int8 uStack_50;
int8 local_48;
long *local_38;
/* try { // try from 00171e05 to 00171e1a has its CatchHandler @ 00172149 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_a8,"(",(allocator *)&local_58)
;
/* try { // try from 00171e1b to 00171e2f has its CatchHandler @ 0017213a */
consumeToken(local_88);
lVar1 = local_80[0];
std::__cxx11::string::~string(local_88);
std::__cxx11::string::~string((string *)&local_a8);
if (lVar1 == 0) {
*in_RDI = 0;
in_RDI[1] = 0;
}
else {
parseExpression(SUB81(&local_b8,0));
if (local_b8 == 0) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001720db to 001720e9 has its CatchHandler @ 00172116 */
std::runtime_error::runtime_error(prVar3,"Expected expression in braced expression");
/* try { // try from 001720ea to 001720ff has its CatchHandler @ 00172114 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_0020bff0,PTR__runtime_error_0020bf58);
}
/* try { // try from 00171e6a to 00171e7f has its CatchHandler @ 00172135 */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_a8,")",(allocator *)&local_58);
/* try { // try from 00171e80 to 00171e94 has its CatchHandler @ 00172126 */
consumeToken(local_88);
lVar2 = local_80[0];
std::__cxx11::string::~string(local_88);
std::__cxx11::string::~string((string *)&local_a8);
lVar1 = lStack_b0;
if (lVar2 == 0) {
local_58 = 0;
uStack_50 = 0;
local_48 = 0;
/* try { // try from 00171ef0 to 00171ef9 has its CatchHandler @ 0017219f */
local_38 = in_RDI;
std::
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
::emplace_back<std::shared_ptr<minja::Expression>>
((vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
*)&local_58,(shared_ptr *)&local_b8);
do {
if (*(long *)(in_RSI + 0x20) == *(long *)(in_RSI + 0x18)) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0017208f to 0017209d has its CatchHandler @ 00172150 */
std::runtime_error::runtime_error(prVar3,"Expected closing parenthesis");
LAB_001720ba:
/* try { // try from 001720ba to 001720cf has its CatchHandler @ 0017219f */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_0020bff0,PTR__runtime_error_0020bf58);
}
/* try { // try from 00171f1b to 00171f2c has its CatchHandler @ 0017216c */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_a8,",",(allocator *)&local_68);
/* try { // try from 00171f2d to 00171f3d has its CatchHandler @ 0017216e */
consumeToken(local_88);
lVar1 = local_80[0];
std::__cxx11::string::~string(local_88);
std::__cxx11::string::~string((string *)&local_a8);
if (lVar1 == 0) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001720ab to 001720b9 has its CatchHandler @ 0017214e */
std::runtime_error::runtime_error(prVar3,"Expected comma in tuple");
goto LAB_001720ba;
}
/* try { // try from 00171f5c to 00171f69 has its CatchHandler @ 0017217d */
parseExpression(SUB81((allocator *)&local_68,0));
if (local_68 == 0) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0017205d to 0017206b has its CatchHandler @ 0017215f */
std::runtime_error::runtime_error(prVar3,"Expected expression in tuple");
/* try { // try from 0017206c to 00172081 has its CatchHandler @ 0017215d */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_0020bff0,PTR__runtime_error_0020bf58);
}
/* try { // try from 00171f76 to 00171f82 has its CatchHandler @ 0017217f */
std::
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
::emplace_back<std::shared_ptr<minja::Expression>>
((vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
*)&local_58,(allocator *)&local_68);
/* try { // try from 00171f83 to 00171f96 has its CatchHandler @ 00172181 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_a8,")",&local_b9);
/* try { // try from 00171f97 to 00171fa7 has its CatchHandler @ 00172186 */
consumeToken(local_88);
lVar1 = local_80[0];
std::__cxx11::string::~string(local_88);
std::__cxx11::string::~string((string *)&local_a8);
if (lVar1 != 0) {
/* try { // try from 00171fd1 to 00171fdd has its CatchHandler @ 00172112 */
get_location();
/* try { // try from 00171fde to 00171ff1 has its CatchHandler @ 00172100 */
std::
make_shared<minja::ArrayExpr,minja::Location,std::vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>>
((Location *)&local_a8,(vector *)local_88);
lVar1 = alStack_a0[0];
alStack_a0[0] = 0;
*local_38 = local_a8;
local_38[1] = lVar1;
local_a8 = 0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)alStack_a0);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)local_80);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_60);
std::
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
::~vector((vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
*)&local_58);
in_RDI = local_38;
goto LAB_00172033;
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_60);
} while( true );
}
lStack_b0 = 0;
*in_RDI = local_b8;
in_RDI[1] = lVar1;
local_b8 = 0;
LAB_00172033:
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_b0);
}
return in_RDI;
}
|
|
3,061 | size_to_tail_pattern | eloqsql/storage/maria/ma_bitmap.c | static uint size_to_tail_pattern(MARIA_FILE_BITMAP *bitmap, uint size)
{
if (size <= bitmap->sizes[6])
return 6;
if (size <= bitmap->sizes[5])
return 5;
DBUG_ASSERT(size <= bitmap->sizes[0]);
return 0;
} | O0 | c | size_to_tail_pattern:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x120(%rcx), %eax
ja 0x620b3
movl $0x6, -0x4(%rbp)
jmp 0x620d6
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x11c(%rcx), %eax
ja 0x620cb
movl $0x5, -0x4(%rbp)
jmp 0x620d6
jmp 0x620cd
jmp 0x620cf
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
| size_to_tail_pattern:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov eax, [rbp+var_14]
mov rcx, [rbp+var_10]
cmp eax, [rcx+120h]
ja short loc_620B3
mov [rbp+var_4], 6
jmp short loc_620D6
loc_620B3:
mov eax, [rbp+var_14]
mov rcx, [rbp+var_10]
cmp eax, [rcx+11Ch]
ja short loc_620CB
mov [rbp+var_4], 5
jmp short loc_620D6
loc_620CB:
jmp short $+2
loc_620CD:
jmp short $+2
loc_620CF:
mov [rbp+var_4], 0
loc_620D6:
mov eax, [rbp+var_4]
pop rbp
retn
| long long size_to_tail_pattern(long long a1, unsigned int a2)
{
if ( a2 > *(_DWORD *)(a1 + 288) )
{
if ( a2 > *(_DWORD *)(a1 + 284) )
return 0;
else
return 5;
}
else
{
return 6;
}
}
| size_to_tail_pattern:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x120]
JA 0x001620b3
MOV dword ptr [RBP + -0x4],0x6
JMP 0x001620d6
LAB_001620b3:
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x11c]
JA 0x001620cb
MOV dword ptr [RBP + -0x4],0x5
JMP 0x001620d6
LAB_001620cb:
JMP 0x001620cd
LAB_001620cd:
JMP 0x001620cf
LAB_001620cf:
MOV dword ptr [RBP + -0x4],0x0
LAB_001620d6:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 size_to_tail_pattern(long param_1,uint param_2)
{
int4 local_c;
if (*(uint *)(param_1 + 0x120) < param_2) {
if (*(uint *)(param_1 + 0x11c) < param_2) {
local_c = 0;
}
else {
local_c = 5;
}
}
else {
local_c = 6;
}
return local_c;
}
|
|
3,062 | my_clear_highest_bit(unsigned int) | eloqsql/include/my_bit.h | static inline uint32 my_clear_highest_bit(uint32 v)
{
uint32 w=v >> 1;
w|= w >> 1;
w|= w >> 2;
w|= w >> 4;
w|= w >> 8;
w|= w >> 16;
return v & w;
} | O0 | c | my_clear_highest_bit(unsigned int):
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %eax
shrl %eax
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %eax
shrl %eax
orl -0x8(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %eax
shrl $0x2, %eax
orl -0x8(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %eax
shrl $0x4, %eax
orl -0x8(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %eax
shrl $0x8, %eax
orl -0x8(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %eax
shrl $0x10, %eax
orl -0x8(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0x4(%rbp), %eax
andl -0x8(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZL20my_clear_highest_bitj:
push rbp
mov rbp, rsp
mov [rbp+var_4], edi
mov eax, [rbp+var_4]
shr eax, 1
mov [rbp+var_8], eax
mov eax, [rbp+var_8]
shr eax, 1
or eax, [rbp+var_8]
mov [rbp+var_8], eax
mov eax, [rbp+var_8]
shr eax, 2
or eax, [rbp+var_8]
mov [rbp+var_8], eax
mov eax, [rbp+var_8]
shr eax, 4
or eax, [rbp+var_8]
mov [rbp+var_8], eax
mov eax, [rbp+var_8]
shr eax, 8
or eax, [rbp+var_8]
mov [rbp+var_8], eax
mov eax, [rbp+var_8]
shr eax, 10h
or eax, [rbp+var_8]
mov [rbp+var_8], eax
mov eax, [rbp+var_4]
and eax, [rbp+var_8]
pop rbp
retn
| long long my_clear_highest_bit(unsigned int a1)
{
unsigned int v2; // [rsp+0h] [rbp-8h]
unsigned int v3; // [rsp+0h] [rbp-8h]
v2 = (a1 >> 1) | (a1 >> 2) | (((a1 >> 1) | (a1 >> 2)) >> 2);
v3 = v2 | (v2 >> 4) | ((v2 | (v2 >> 4)) >> 8);
return (v3 | HIWORD(v3)) & a1;
}
| my_clear_highest_bit:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x4],EDI
MOV EAX,dword ptr [RBP + -0x4]
SHR EAX,0x1
MOV dword ptr [RBP + -0x8],EAX
MOV EAX,dword ptr [RBP + -0x8]
SHR EAX,0x1
OR EAX,dword ptr [RBP + -0x8]
MOV dword ptr [RBP + -0x8],EAX
MOV EAX,dword ptr [RBP + -0x8]
SHR EAX,0x2
OR EAX,dword ptr [RBP + -0x8]
MOV dword ptr [RBP + -0x8],EAX
MOV EAX,dword ptr [RBP + -0x8]
SHR EAX,0x4
OR EAX,dword ptr [RBP + -0x8]
MOV dword ptr [RBP + -0x8],EAX
MOV EAX,dword ptr [RBP + -0x8]
SHR EAX,0x8
OR EAX,dword ptr [RBP + -0x8]
MOV dword ptr [RBP + -0x8],EAX
MOV EAX,dword ptr [RBP + -0x8]
SHR EAX,0x10
OR EAX,dword ptr [RBP + -0x8]
MOV dword ptr [RBP + -0x8],EAX
MOV EAX,dword ptr [RBP + -0x4]
AND EAX,dword ptr [RBP + -0x8]
POP RBP
RET
|
/* my_clear_highest_bit(unsigned int) */
uint my_clear_highest_bit(uint param_1)
{
uint uVar1;
uVar1 = param_1 >> 1 | param_1;
uVar1 = uVar1 >> 3 | uVar1 >> 1;
uVar1 = uVar1 >> 4 | uVar1;
uVar1 = uVar1 >> 8 | uVar1;
return param_1 & (uVar1 >> 0x10 | uVar1);
}
|
|
3,063 | SET_no_bpf | xtate/src/xconf.c | static ConfRes SET_no_bpf(void *conf, const char *name, const char *value) {
XConf *xconf = (XConf *)conf;
UNUSEDPARM(name);
if (xconf->echo) {
if (xconf->is_no_bpf || xconf->echo_all)
fprintf(xconf->echo, "no-bpf-filter = %s\n",
xconf->is_no_bpf ? "true" : "false");
return 0;
}
xconf->is_no_bpf = conf_parse_bool(value);
return Conf_OK;
} | O3 | c | SET_no_bpf:
pushq %rbx
movq %rdi, %rbx
movq 0x2a8(%rdi), %rdi
testq %rdi, %rdi
je 0x5ac40
testb $0x1, 0x706(%rbx)
jne 0x5ac63
cmpl $0x0, 0x2b0(%rbx)
je 0x5ac78
leaq 0x4b6e(%rip), %rdx # 0x5f7ac
jmp 0x5ac6a
movq %rdx, %rdi
callq 0x52537
movzbl %al, %eax
shll $0x10, %eax
movl $0xfffeffff, %ecx # imm = 0xFFFEFFFF
andl 0x704(%rbx), %ecx
orl %eax, %ecx
movl %ecx, 0x704(%rbx)
jmp 0x5ac78
leaq 0x4b48(%rip), %rdx # 0x5f7b2
leaq 0x244a1(%rip), %rsi # 0x7f112
xorl %eax, %eax
callq 0x15220
xorl %eax, %eax
popq %rbx
retq
| SET_no_bpf:
push rbx
mov rbx, rdi
mov rdi, [rdi+2A8h]
test rdi, rdi
jz short loc_5AC40
test byte ptr [rbx+706h], 1
jnz short loc_5AC63
cmp dword ptr [rbx+2B0h], 0
jz short loc_5AC78
lea rdx, aFalse; "false"
jmp short loc_5AC6A
loc_5AC40:
mov rdi, rdx
call conf_parse_bool
movzx eax, al
shl eax, 10h
mov ecx, 0FFFEFFFFh
and ecx, [rbx+704h]
or ecx, eax
mov [rbx+704h], ecx
jmp short loc_5AC78
loc_5AC63:
lea rdx, aTrue; "true"
loc_5AC6A:
lea rsi, aNoBpfFilterS; "no-bpf-filter = %s\n"
xor eax, eax
call _fprintf
loc_5AC78:
xor eax, eax
pop rbx
retn
| long long SET_no_bpf(long long a1, long long a2, char *a3, long long a4, long long a5)
{
long long v6; // rdi
const char *v7; // rdx
v6 = *(_QWORD *)(a1 + 680);
if ( v6 )
{
if ( (*(_BYTE *)(a1 + 1798) & 1) != 0 )
{
v7 = "true";
goto LABEL_7;
}
if ( *(_DWORD *)(a1 + 688) )
{
v7 = "false";
LABEL_7:
fprintf(v6, "no-bpf-filter = %s\n", v7);
}
}
else
{
*(_DWORD *)(a1 + 1796) = ((unsigned __int8)conf_parse_bool(a3, a2, (long long)a3, a4, a5) << 16) | *(_DWORD *)(a1 + 1796) & 0xFFFEFFFF;
}
return 0LL;
}
| SET_no_bpf:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x2a8]
TEST RDI,RDI
JZ 0x0015ac40
TEST byte ptr [RBX + 0x706],0x1
JNZ 0x0015ac63
CMP dword ptr [RBX + 0x2b0],0x0
JZ 0x0015ac78
LEA RDX,[0x15f7ac]
JMP 0x0015ac6a
LAB_0015ac40:
MOV RDI,RDX
CALL 0x00152537
MOVZX EAX,AL
SHL EAX,0x10
MOV ECX,0xfffeffff
AND ECX,dword ptr [RBX + 0x704]
OR ECX,EAX
MOV dword ptr [RBX + 0x704],ECX
JMP 0x0015ac78
LAB_0015ac63:
LEA RDX,[0x15f7b2]
LAB_0015ac6a:
LEA RSI,[0x17f112]
XOR EAX,EAX
CALL 0x00115220
LAB_0015ac78:
XOR EAX,EAX
POP RBX
RET
|
int8 SET_no_bpf(long param_1,int8 param_2,int8 param_3)
{
byte bVar1;
char *pcVar2;
if (*(FILE **)(param_1 + 0x2a8) == (FILE *)0x0) {
bVar1 = conf_parse_bool(param_3);
*(uint *)(param_1 + 0x704) = *(uint *)(param_1 + 0x704) & 0xfffeffff | (uint)bVar1 << 0x10;
}
else {
if ((*(byte *)(param_1 + 0x706) & 1) == 0) {
if (*(int *)(param_1 + 0x2b0) == 0) {
return 0;
}
pcVar2 = "false";
}
else {
pcVar2 = "true";
}
fprintf(*(FILE **)(param_1 + 0x2a8),"no-bpf-filter = %s\n",pcVar2);
}
return 0;
}
|
|
3,064 | gguf_get_arr_str | monkey531[P]llama/ggml/src/gguf.cpp | const char * gguf_get_arr_str(const struct gguf_context * ctx, int64_t key_id, size_t i) {
GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
GGML_ASSERT(ctx->kv[key_id].get_type() == GGUF_TYPE_STRING);
return ctx->kv[key_id].data_string[i].c_str();
} | O3 | cpp | gguf_get_arr_str:
pushq %rax
testq %rsi, %rsi
js 0x3cf6f
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $0x2e8ba2e8ba2e8ba3, %rdi # imm = 0x2E8BA2E8BA2E8BA3
imulq %rcx, %rdi
cmpq %rsi, %rdi
jle 0x3cf6f
imulq $0x58, %rsi, %rcx
cmpl $0x8, 0x24(%rax,%rcx)
jne 0x3cf8b
addq %rcx, %rax
movq 0x40(%rax), %rax
shlq $0x5, %rdx
movq (%rax,%rdx), %rax
popq %rcx
retq
leaq 0x1cd5f(%rip), %rdi # 0x59cd5
leaq 0xd6e0(%rip), %rdx # 0x4a65d
leaq 0x1d1dc(%rip), %rcx # 0x5a160
movl $0x311, %esi # imm = 0x311
jmp 0x3cfa5
leaq 0x1cd43(%rip), %rdi # 0x59cd5
leaq 0xd6c4(%rip), %rdx # 0x4a65d
leaq 0x1d233(%rip), %rcx # 0x5a1d3
movl $0x312, %esi # imm = 0x312
xorl %eax, %eax
callq 0x17c60
| gguf_get_arr_str:
push rax
test rsi, rsi
js short loc_3CF6F
mov rax, [rdi+8]
mov rcx, [rdi+10h]
sub rcx, rax
sar rcx, 3
mov rdi, 2E8BA2E8BA2E8BA3h
imul rdi, rcx
cmp rdi, rsi
jle short loc_3CF6F
imul rcx, rsi, 58h ; 'X'
cmp dword ptr [rax+rcx+24h], 8
jnz short loc_3CF8B
add rax, rcx
mov rax, [rax+40h]
shl rdx, 5
mov rax, [rax+rdx]
pop rcx
retn
loc_3CF6F:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeyId0KeyIdGgu; "key_id >= 0 && key_id < gguf_get_n_kv(c"...
mov esi, 311h
jmp short loc_3CFA5
loc_3CF8B:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCtxKvKeyIdGetT_0; "ctx->kv[key_id].get_type() == GGUF_TYPE"...
mov esi, 312h
loc_3CFA5:
xor eax, eax
call _ggml_abort
| long long gguf_get_arr_str(long long a1, long long a2, long long a3, long long a4, int a5, int a6)
{
long long v6; // rax
const char *v8; // rcx
int v9; // esi
if ( a2 < 0 || (v6 = *(_QWORD *)(a1 + 8), 0x2E8BA2E8BA2E8BA3LL * ((*(_QWORD *)(a1 + 16) - v6) >> 3) <= a2) )
{
v8 = "key_id >= 0 && key_id < gguf_get_n_kv(ctx)";
v9 = 785;
goto LABEL_7;
}
if ( *(_DWORD *)(v6 + 88 * a2 + 36) != 8 )
{
v8 = "ctx->kv[key_id].get_type() == GGUF_TYPE_STRING";
v9 = 786;
LABEL_7:
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp",
v9,
(unsigned int)"GGML_ASSERT(%s) failed",
(_DWORD)v8,
a5,
a6);
}
return *(_QWORD *)(*(_QWORD *)(88 * a2 + v6 + 64) + 32 * a3);
}
| gguf_get_arr_str:
PUSH RAX
TEST RSI,RSI
JS 0x0013cf6f
MOV RAX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RDI + 0x10]
SUB RCX,RAX
SAR RCX,0x3
MOV RDI,0x2e8ba2e8ba2e8ba3
IMUL RDI,RCX
CMP RDI,RSI
JLE 0x0013cf6f
IMUL RCX,RSI,0x58
CMP dword ptr [RAX + RCX*0x1 + 0x24],0x8
JNZ 0x0013cf8b
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x40]
SHL RDX,0x5
MOV RAX,qword ptr [RAX + RDX*0x1]
POP RCX
RET
LAB_0013cf6f:
LEA RDI,[0x159cd5]
LEA RDX,[0x14a65d]
LEA RCX,[0x15a160]
MOV ESI,0x311
JMP 0x0013cfa5
LAB_0013cf8b:
LEA RDI,[0x159cd5]
LEA RDX,[0x14a65d]
LEA RCX,[0x15a1d3]
MOV ESI,0x312
LAB_0013cfa5:
XOR EAX,EAX
CALL 0x00117c60
|
int8 gguf_get_arr_str(long param_1,long param_2,long param_3)
{
long lVar1;
char *pcVar2;
int8 uVar3;
long lVar4;
if ((param_2 < 0) ||
(lVar1 = *(long *)(param_1 + 8),
lVar4 = (*(long *)(param_1 + 0x10) - lVar1 >> 3) * 0x2e8ba2e8ba2e8ba3,
lVar4 - param_2 == 0 || lVar4 < param_2)) {
pcVar2 = "key_id >= 0 && key_id < gguf_get_n_kv(ctx)";
uVar3 = 0x311;
}
else {
if (*(int *)(lVar1 + 0x24 + param_2 * 0x58) == 8) {
return *(int8 *)(*(long *)(lVar1 + param_2 * 0x58 + 0x40) + param_3 * 0x20);
}
pcVar2 = "ctx->kv[key_id].get_type() == GGUF_TYPE_STRING";
uVar3 = 0x312;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp",uVar3,
"GGML_ASSERT(%s) failed",pcVar2);
}
|
|
3,065 | ma_find_writepos | eloqsql/storage/maria/ma_dynrec.c | static int _ma_find_writepos(MARIA_HA *info,
ulong reclength, /* record length */
my_off_t *filepos, /* Return file pos */
ulong *length) /* length of block at filepos */
{
MARIA_BLOCK_INFO block_info;
ulong tmp;
DBUG_ENTER("_ma_find_writepos");
if (info->s->state.dellink != HA_OFFSET_ERROR &&
!info->append_insert_at_end)
{
/* Deleted blocks exists; Get last used block */
*filepos=info->s->state.dellink;
block_info.second_read=0;
info->rec_cache.seek_not_done=1;
if (!(_ma_get_block_info(info, &block_info, info->dfile.file,
info->s->state.dellink) &
BLOCK_DELETED))
{
DBUG_PRINT("error",("Delete link crashed"));
_ma_set_fatal_error_with_share(info->s, HA_ERR_WRONG_IN_RECORD);
DBUG_RETURN(-1);
}
info->s->state.dellink=block_info.next_filepos;
info->state->del--;
info->state->empty-= block_info.block_len;
*length= block_info.block_len;
}
else
{
/* No deleted blocks; Allocate a new block */
*filepos=info->state->data_file_length;
if ((tmp= reclength + 3 + MY_TEST(reclength >= (65520 - 3))) <
info->s->base.min_block_length)
tmp= info->s->base.min_block_length;
else
tmp= ((tmp+MARIA_DYN_ALIGN_SIZE-1) &
(~ (ulong) (MARIA_DYN_ALIGN_SIZE-1)));
if (info->state->data_file_length >
(info->s->base.max_data_file_length - tmp))
{
my_errno=HA_ERR_RECORD_FILE_FULL;
DBUG_RETURN(-1);
}
if (tmp > MARIA_MAX_BLOCK_LENGTH)
tmp=MARIA_MAX_BLOCK_LENGTH;
*length= tmp;
info->state->data_file_length+= tmp;
info->s->state.split++;
info->update|=HA_STATE_WRITE_AT_END;
}
DBUG_RETURN(0);
} | O3 | c | ma_find_writepos:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rcx, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
movq (%rdi), %rax
movq 0xc8(%rax), %rax
cmpq $-0x1, %rax
je 0x4ae10
cmpb $0x0, 0x681(%rbx)
je 0x4ae8e
movq 0x20(%rbx), %rax
movq 0x28(%rax), %rax
movq %rax, (%rdx)
cmpq $0xffed, %rsi # imm = 0xFFED
sbbq $-0x1, %rsi
leaq 0x3(%rsi), %rax
movq (%rbx), %rcx
movq 0x20(%rbx), %rdx
movq 0x3b8(%rcx), %rdi
addq $0x6, %rsi
andq $-0x4, %rsi
cmpq %rdi, %rax
cmovbq %rdi, %rsi
movq 0x368(%rcx), %rax
subq %rsi, %rax
cmpq %rax, 0x28(%rdx)
jbe 0x4ae64
callq 0xac2be
movl $0x87, (%rax)
jmp 0x4aecf
movl $0xfffffc, %eax # imm = 0xFFFFFC
cmpq %rax, %rsi
cmovbq %rsi, %rax
movq %rax, (%r14)
movq 0x20(%rbx), %rcx
addq %rax, 0x28(%rcx)
movq (%rbx), %rax
incq 0xc0(%rax)
orb $0x1, 0x625(%rbx)
jmp 0x4aeff
movq %rax, (%rdx)
leaq -0x70(%rbp), %rsi
movl $0x0, 0x50(%rsi)
movl $0x1, 0x598(%rbx)
movl 0x480(%rbx), %edx
movq (%rbx), %rax
movq 0xc8(%rax), %rcx
movq %rbx, %rdi
callq 0x49240
testb $0x4, %al
jne 0x4aed6
movq (%rbx), %rdi
movl $0x7f, %esi
callq 0x3c8a2
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x4af01
movq -0x30(%rbp), %rax
movq (%rbx), %rcx
movq %rax, 0xc8(%rcx)
movq 0x20(%rbx), %rax
decq 0x8(%rax)
movq -0x48(%rbp), %rax
movq 0x20(%rbx), %rcx
subq %rax, 0x10(%rcx)
movq -0x48(%rbp), %rax
movq %rax, (%r14)
xorl %eax, %eax
movq %fs:0x28, %rcx
cmpq -0x18(%rbp), %rcx
jne 0x4af19
addq $0x60, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x2a250
nop
| _ma_find_writepos:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 60h
mov r14, rcx
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_18], rax
mov rax, [rdi]
mov rax, [rax+0C8h]
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_4AE10
cmp byte ptr [rbx+681h], 0
jz short loc_4AE8E
loc_4AE10:
mov rax, [rbx+20h]
mov rax, [rax+28h]
mov [rdx], rax
cmp rsi, 0FFEDh
sbb rsi, 0FFFFFFFFFFFFFFFFh
lea rax, [rsi+3]
mov rcx, [rbx]
mov rdx, [rbx+20h]
mov rdi, [rcx+3B8h]
add rsi, 6
and rsi, 0FFFFFFFFFFFFFFFCh
cmp rax, rdi
cmovb rsi, rdi
mov rax, [rcx+368h]
sub rax, rsi
cmp [rdx+28h], rax
jbe short loc_4AE64
call _my_thread_var
mov dword ptr [rax], 87h
jmp short loc_4AECF
loc_4AE64:
mov eax, 0FFFFFCh
cmp rsi, rax
cmovb rax, rsi
mov [r14], rax
mov rcx, [rbx+20h]
add [rcx+28h], rax
mov rax, [rbx]
inc qword ptr [rax+0C0h]
or byte ptr [rbx+625h], 1
jmp short loc_4AEFF
loc_4AE8E:
mov [rdx], rax
lea rsi, [rbp+var_70]
mov dword ptr [rsi+50h], 0
mov dword ptr [rbx+598h], 1
mov edx, [rbx+480h]
mov rax, [rbx]
mov rcx, [rax+0C8h]
mov rdi, rbx
call _ma_get_block_info
test al, 4
jnz short loc_4AED6
mov rdi, [rbx]
mov esi, 7Fh
call _ma_set_fatal_error_with_share
loc_4AECF:
mov eax, 0FFFFFFFFh
jmp short loc_4AF01
loc_4AED6:
mov rax, [rbp+var_30]
mov rcx, [rbx]
mov [rcx+0C8h], rax
mov rax, [rbx+20h]
dec qword ptr [rax+8]
mov rax, [rbp+var_48]
mov rcx, [rbx+20h]
sub [rcx+10h], rax
mov rax, [rbp+var_48]
mov [r14], rax
loc_4AEFF:
xor eax, eax
loc_4AF01:
mov rcx, fs:28h
cmp rcx, [rbp+var_18]
jnz short loc_4AF19
add rsp, 60h
pop rbx
pop r14
pop rbp
retn
loc_4AF19:
call ___stack_chk_fail
| long long ma_find_writepos(_QWORD *a1, unsigned long long a2, _QWORD *a3, long long *a4, long long a5, int a6)
{
long long v8; // rax
unsigned long long v9; // rsi
unsigned long long v10; // rax
long long v11; // rcx
long long v12; // rdx
unsigned long long v13; // rdi
unsigned long long v14; // rsi
long long v15; // rax
long long v16; // rdx
long long v17; // rcx
long long v18; // r8
int v19; // r9d
unsigned __int8 v21[40]; // [rsp+0h] [rbp-70h] BYREF
long long v22; // [rsp+28h] [rbp-48h]
long long v23; // [rsp+40h] [rbp-30h]
int v24; // [rsp+50h] [rbp-20h]
unsigned long long v25; // [rsp+58h] [rbp-18h]
v25 = __readfsqword(0x28u);
v8 = *(_QWORD *)(*a1 + 200LL);
if ( v8 == -1 || *((_BYTE *)a1 + 1665) )
{
*a3 = *(_QWORD *)(a1[4] + 40LL);
v9 = a2 - ((a2 < 0xFFED) - 1LL);
v10 = v9 + 3;
v11 = *a1;
v12 = a1[4];
v13 = *(_QWORD *)(*a1 + 952LL);
v14 = (v9 + 6) & 0xFFFFFFFFFFFFFFFCLL;
if ( v10 < v13 )
v14 = *(_QWORD *)(*a1 + 952LL);
if ( *(_QWORD *)(v12 + 40) > *(_QWORD *)(v11 + 872) - v14 )
{
*(_DWORD *)my_thread_var(v13) = 135;
return 0xFFFFFFFFLL;
}
v15 = 16777212LL;
if ( v14 < 0xFFFFFC )
v15 = v14;
*a4 = v15;
*(_QWORD *)(a1[4] + 40LL) += v15;
++*(_QWORD *)(*a1 + 192LL);
*((_BYTE *)a1 + 1573) |= 1u;
}
else
{
*a3 = v8;
v24 = 0;
*((_DWORD *)a1 + 358) = 1;
if ( (ma_get_block_info((long long)a1, v21, *((unsigned int *)a1 + 288), *(_QWORD *)(*a1 + 200LL), a5, a6) & 4) == 0 )
{
ma_set_fatal_error_with_share(*a1, 127, v16, v17, v18, v19);
return 0xFFFFFFFFLL;
}
*(_QWORD *)(*a1 + 200LL) = v23;
--*(_QWORD *)(a1[4] + 8LL);
*(_QWORD *)(a1[4] + 16LL) -= v22;
*a4 = v22;
}
return 0LL;
}
| _ma_find_writepos:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x60
MOV R14,RCX
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0xc8]
CMP RAX,-0x1
JZ 0x0014ae10
CMP byte ptr [RBX + 0x681],0x0
JZ 0x0014ae8e
LAB_0014ae10:
MOV RAX,qword ptr [RBX + 0x20]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RDX],RAX
CMP RSI,0xffed
SBB RSI,-0x1
LEA RAX,[RSI + 0x3]
MOV RCX,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RCX + 0x3b8]
ADD RSI,0x6
AND RSI,-0x4
CMP RAX,RDI
CMOVC RSI,RDI
MOV RAX,qword ptr [RCX + 0x368]
SUB RAX,RSI
CMP qword ptr [RDX + 0x28],RAX
JBE 0x0014ae64
CALL 0x001ac2be
MOV dword ptr [RAX],0x87
JMP 0x0014aecf
LAB_0014ae64:
MOV EAX,0xfffffc
CMP RSI,RAX
CMOVC RAX,RSI
MOV qword ptr [R14],RAX
MOV RCX,qword ptr [RBX + 0x20]
ADD qword ptr [RCX + 0x28],RAX
MOV RAX,qword ptr [RBX]
INC qword ptr [RAX + 0xc0]
OR byte ptr [RBX + 0x625],0x1
JMP 0x0014aeff
LAB_0014ae8e:
MOV qword ptr [RDX],RAX
LEA RSI,[RBP + -0x70]
MOV dword ptr [RSI + 0x50],0x0
MOV dword ptr [RBX + 0x598],0x1
MOV EDX,dword ptr [RBX + 0x480]
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RAX + 0xc8]
MOV RDI,RBX
CALL 0x00149240
TEST AL,0x4
JNZ 0x0014aed6
MOV RDI,qword ptr [RBX]
MOV ESI,0x7f
CALL 0x0013c8a2
LAB_0014aecf:
MOV EAX,0xffffffff
JMP 0x0014af01
LAB_0014aed6:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBX]
MOV qword ptr [RCX + 0xc8],RAX
MOV RAX,qword ptr [RBX + 0x20]
DEC qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBX + 0x20]
SUB qword ptr [RCX + 0x10],RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [R14],RAX
LAB_0014aeff:
XOR EAX,EAX
LAB_0014af01:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x18]
JNZ 0x0014af19
ADD RSP,0x60
POP RBX
POP R14
POP RBP
RET
LAB_0014af19:
CALL 0x0012a250
|
int8 _ma_find_writepos(long *param_1,ulong param_2,long *param_3,ulong *param_4)
{
int4 *puVar1;
ulong uVar2;
int8 uVar3;
long lVar4;
ulong uVar5;
long in_FS_OFFSET;
int1 local_78 [40];
ulong local_50;
int8 local_38;
int4 local_28;
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
if ((*(long *)(*param_1 + 200) == -1) || (*(char *)((long)param_1 + 0x681) != '\0')) {
*param_3 = *(long *)(param_1[4] + 0x28);
lVar4 = (param_2 + 1) - (ulong)(param_2 < 0xffed);
uVar2 = *(ulong *)(*param_1 + 0x3b8);
uVar5 = lVar4 + 6U & 0xfffffffffffffffc;
if (lVar4 + 3U < uVar2) {
uVar5 = uVar2;
}
if (*(ulong *)(param_1[4] + 0x28) <= *(long *)(*param_1 + 0x368) - uVar5) {
uVar2 = 0xfffffc;
if (uVar5 < 0xfffffc) {
uVar2 = uVar5;
}
*param_4 = uVar2;
*(long *)(param_1[4] + 0x28) = *(long *)(param_1[4] + 0x28) + uVar2;
*(long *)(*param_1 + 0xc0) = *(long *)(*param_1 + 0xc0) + 1;
*(byte *)((long)param_1 + 0x625) = *(byte *)((long)param_1 + 0x625) | 1;
LAB_0014aeff:
uVar3 = 0;
goto LAB_0014af01;
}
puVar1 = (int4 *)_my_thread_var();
*puVar1 = 0x87;
}
else {
*param_3 = *(long *)(*param_1 + 200);
local_28 = 0;
*(int4 *)(param_1 + 0xb3) = 1;
uVar2 = _ma_get_block_info(param_1,local_78,(int)param_1[0x90],*(int8 *)(*param_1 + 200));
if ((uVar2 & 4) != 0) {
*(int8 *)(*param_1 + 200) = local_38;
*(long *)(param_1[4] + 8) = *(long *)(param_1[4] + 8) + -1;
*(long *)(param_1[4] + 0x10) = *(long *)(param_1[4] + 0x10) - local_50;
*param_4 = local_50;
goto LAB_0014aeff;
}
_ma_set_fatal_error_with_share(*param_1,0x7f);
}
uVar3 = 0xffffffff;
LAB_0014af01:
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return uVar3;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
3,066 | ch2x | eloqsql/strings/ctype-uca.c | static int ch2x(int ch)
{
if (ch >= '0' && ch <= '9')
return ch - '0';
if (ch >= 'a' && ch <= 'f')
return 10 + ch - 'a';
if (ch >= 'A' && ch <= 'F')
return 10 + ch - 'A';
return -1;
} | O0 | c | ch2x:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
cmpl $0x30, -0x8(%rbp)
jl 0x9ea2e
cmpl $0x39, -0x8(%rbp)
jg 0x9ea2e
movl -0x8(%rbp), %eax
subl $0x30, %eax
movl %eax, -0x4(%rbp)
jmp 0x9ea69
cmpl $0x61, -0x8(%rbp)
jl 0x9ea48
cmpl $0x66, -0x8(%rbp)
jg 0x9ea48
movl -0x8(%rbp), %eax
addl $0xa, %eax
subl $0x61, %eax
movl %eax, -0x4(%rbp)
jmp 0x9ea69
cmpl $0x41, -0x8(%rbp)
jl 0x9ea62
cmpl $0x46, -0x8(%rbp)
jg 0x9ea62
movl -0x8(%rbp), %eax
addl $0xa, %eax
subl $0x41, %eax
movl %eax, -0x4(%rbp)
jmp 0x9ea69
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
popq %rbp
retq
nop
| ch2x:
push rbp
mov rbp, rsp
mov [rbp+var_8], edi
cmp [rbp+var_8], 30h ; '0'
jl short loc_9EA2E
cmp [rbp+var_8], 39h ; '9'
jg short loc_9EA2E
mov eax, [rbp+var_8]
sub eax, 30h ; '0'
mov [rbp+var_4], eax
jmp short loc_9EA69
loc_9EA2E:
cmp [rbp+var_8], 61h ; 'a'
jl short loc_9EA48
cmp [rbp+var_8], 66h ; 'f'
jg short loc_9EA48
mov eax, [rbp+var_8]
add eax, 0Ah
sub eax, 61h ; 'a'
mov [rbp+var_4], eax
jmp short loc_9EA69
loc_9EA48:
cmp [rbp+var_8], 41h ; 'A'
jl short loc_9EA62
cmp [rbp+var_8], 46h ; 'F'
jg short loc_9EA62
mov eax, [rbp+var_8]
add eax, 0Ah
sub eax, 41h ; 'A'
mov [rbp+var_4], eax
jmp short loc_9EA69
loc_9EA62:
mov [rbp+var_4], 0FFFFFFFFh
loc_9EA69:
mov eax, [rbp+var_4]
pop rbp
retn
| long long ch2x(int a1)
{
if ( a1 < 48 || a1 > 57 )
{
if ( a1 < 97 || a1 > 102 )
{
if ( a1 < 65 || a1 > 70 )
return (unsigned int)-1;
else
return (unsigned int)(a1 - 55);
}
else
{
return (unsigned int)(a1 - 87);
}
}
else
{
return (unsigned int)(a1 - 48);
}
}
| ch2x:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x8],EDI
CMP dword ptr [RBP + -0x8],0x30
JL 0x0019ea2e
CMP dword ptr [RBP + -0x8],0x39
JG 0x0019ea2e
MOV EAX,dword ptr [RBP + -0x8]
SUB EAX,0x30
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0019ea69
LAB_0019ea2e:
CMP dword ptr [RBP + -0x8],0x61
JL 0x0019ea48
CMP dword ptr [RBP + -0x8],0x66
JG 0x0019ea48
MOV EAX,dword ptr [RBP + -0x8]
ADD EAX,0xa
SUB EAX,0x61
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0019ea69
LAB_0019ea48:
CMP dword ptr [RBP + -0x8],0x41
JL 0x0019ea62
CMP dword ptr [RBP + -0x8],0x46
JG 0x0019ea62
MOV EAX,dword ptr [RBP + -0x8]
ADD EAX,0xa
SUB EAX,0x41
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0019ea69
LAB_0019ea62:
MOV dword ptr [RBP + -0x4],0xffffffff
LAB_0019ea69:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int ch2x(int param_1)
{
int4 local_c;
if ((param_1 < 0x30) || (0x39 < param_1)) {
if ((param_1 < 0x61) || (0x66 < param_1)) {
if ((param_1 < 0x41) || (0x46 < param_1)) {
local_c = -1;
}
else {
local_c = param_1 + -0x37;
}
}
else {
local_c = param_1 + -0x57;
}
}
else {
local_c = param_1 + -0x30;
}
return local_c;
}
|
|
3,067 | verify_segment_integrity | seiftnesse[P]memoryallocator/src/custom_alloc_util.c | int verify_segment_integrity(segment_t *s, int repair) {
if (!s) return 0;
int errors = 0;
// Basic check - magic number (always performed)
if (s->magic != SEGMENT_MAGIC) {
HEAP_LOG("CORRUPTION: Invalid magic number in segment %p: 0x%08X != 0x%08X\n",
s, s->magic, SEGMENT_MAGIC);
errors++;
if (repair) {
s->magic = SEGMENT_MAGIC;
HEAP_LOG("Repaired: Reset magic number for segment %p\n", s);
}
}
// Size sanity check (basic)
if (s->size <= 0 || s->size > MAX_REASONABLE_BLOCKS) {
HEAP_LOG("CORRUPTION: Unreasonable size in segment %p: %d blocks\n", s, s->size);
errors++;
if (repair && s->next) {
// Try to determine reasonable size from distance to next segment
uintptr_t next_addr = (uintptr_t)(s->next);
uintptr_t this_addr = (uintptr_t)(s);
int corrected_size = (next_addr - this_addr) / BLOCK_SIZE;
if (corrected_size > 0 && corrected_size <= MAX_REASONABLE_BLOCKS) {
s->size = corrected_size;
HEAP_LOG("Repaired: Corrected size for segment %p to %d blocks based on next segment\n",
s, s->size);
}
}
}
// Stop here if only basic checks are enabled
if (integrity_check_level < 2) return errors;
// Get the integrity structure - ВАЖНО: добавлен детальный вывод для отладки
segment_integrity_t *integrity = get_segment_integrity(s);
if (!integrity) {
HEAP_LOG("WARNING: Could not get integrity structure for segment %p\n", s);
if (repair) {
HEAP_LOG("Attempting to initialize integrity for segment %p\n", s);
initialize_segment_integrity(s);
integrity = get_segment_integrity(s);
}
if (!integrity) {
HEAP_LOG("CRITICAL: Cannot perform integrity checks - no integrity structure available\n");
return errors;
}
}
HEAP_LOG("Checking integrity for segment %p: header_guard=0x%08X, checksum=0x%08X\n",
s, integrity->header_guard, integrity->checksum);
// Check header guard
if (integrity->header_guard != HEADER_GUARD_VALUE) {
HEAP_LOG("CORRUPTION: Invalid header guard in segment %p: 0x%08X != 0x%08X\n",
s, integrity->header_guard, HEADER_GUARD_VALUE);
errors++;
if (repair) {
integrity->header_guard = HEADER_GUARD_VALUE;
HEAP_LOG("Repaired: Reset header guard for segment %p\n", s);
}
}
// Check checksum
uint32_t current_checksum = calculate_segment_checksum(s);
if (integrity->checksum != current_checksum) {
HEAP_LOG("CORRUPTION: Invalid checksum in segment %p: 0x%08X != 0x%08X\n",
s, integrity->checksum, current_checksum);
errors++;
if (repair) {
integrity->checksum = current_checksum;
HEAP_LOG("Repaired: Reset checksum for segment %p\n", s);
}
}
// Check footer guard only if level 3 checks are enabled
if (integrity_check_level >= 3) {
uint32_t *footer = get_segment_footer(s);
if (footer) {
HEAP_LOG("Footer guard check for segment %p: current=0x%08X, expected=0x%08X\n",
s, *footer, FOOTER_GUARD_VALUE);
if (*footer != FOOTER_GUARD_VALUE) {
HEAP_LOG("CORRUPTION: Invalid footer guard in segment %p: 0x%08X != 0x%08X\n",
s, *footer, FOOTER_GUARD_VALUE);
errors++;
if (repair) {
*footer = FOOTER_GUARD_VALUE;
HEAP_LOG("Repaired: Reset footer guard for segment %p\n", s);
}
}
} else {
HEAP_LOG("WARNING: Could not get footer pointer for segment %p\n", s);
}
// Linked list checks - добавлена проверка на null
if (s->next) {
HEAP_LOG("Checking next segment link: %p->next = %p, %p->next->prev = %p\n",
s, s->next, s->next, s->next->prev);
if (s->next->prev != s) {
HEAP_LOG("CORRUPTION: Broken linked list: s->next->prev != s for segment %p\n", s);
errors++;
if (repair) {
s->next->prev = s;
HEAP_LOG("Repaired: Fixed broken linked list for segment %p\n", s);
}
}
}
if (s->prev) {
HEAP_LOG("Checking prev segment link: %p->prev = %p, %p->prev->next = %p\n",
s, s->prev, s->prev, s->prev->next);
if (s->prev->next != s) {
HEAP_LOG("CORRUPTION: Broken linked list: s->prev->next != s for segment %p\n", s);
errors++;
if (repair) {
s->prev->next = s;
HEAP_LOG("Repaired: Fixed broken linked list for segment %p\n", s);
}
}
}
// Check that segment is within heap bounds
uintptr_t heap_start = (uintptr_t)(memory);
uintptr_t heap_end = heap_start + HEAP_SIZE;
uintptr_t segment_addr = (uintptr_t)(s);
if (segment_addr < heap_start || segment_addr >= heap_end) {
HEAP_LOG("CORRUPTION: Segment %p is outside heap bounds [%p-%p]\n",
s, (void*)heap_start, (void*)heap_end);
errors++;
// Cannot repair this automatically
}
}
return errors;
} | O1 | c | verify_segment_integrity:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x11ab8
movq %rdi, %r14
xorl %ebx, %ebx
cmpl $0xcafebafe, 0x28(%rdi) # imm = 0xCAFEBAFE
je 0x11a38
movl $0x1, %ebx
testl %esi, %esi
je 0x11a38
movl $0xcafebafe, 0x28(%r14) # imm = 0xCAFEBAFE
movl $0xffffbfff, %eax # imm = 0xFFFFBFFF
movl 0x4(%r14), %ecx
addl %eax, %ecx
cmpl %eax, %ecx
ja 0x11a6c
incl %ebx
testl %esi, %esi
je 0x11a6c
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x11a6c
subq %r14, %rax
shrq $0xc, %rax
leal -0x1(%rax), %ecx
cmpl $0x3fff, %ecx # imm = 0x3FFF
ja 0x11a6c
movl %eax, 0x4(%r14)
cmpl $0x2, 0x48af9(%rip) # 0x5a56c
jl 0x11bb2
leaq 0x3f(%r14), %r13
andq $-0x10, %r13
leaq 0x3c(%r14), %rbp
leaq 0x30(%r14), %r12
xorl %r15d, %r15d
cmpq %r13, %rbp
cmovbeq %r12, %r15
testq %r15, %r15
jne 0x11acb
testl %esi, %esi
je 0x11abf
movq %r14, %rdi
movl %esi, %r15d
callq 0x117eb
movl %r15d, %esi
xorl %eax, %eax
cmpq %r13, %rbp
cmovaq %rax, %r12
movq %r12, %r15
jmp 0x11ac2
xorl %ebx, %ebx
jmp 0x11bb2
xorl %r15d, %r15d
testq %r15, %r15
je 0x11bb2
cmpl $0xfeedface, (%r15) # imm = 0xFEEDFACE
je 0x11ae5
incl %ebx
testl %esi, %esi
je 0x11ae5
movl %esi, %ebp
movl $0xfeedface, (%r15) # imm = 0xFEEDFACE
jmp 0x11ae7
movl %esi, %ebp
movq %r14, %rdi
callq 0x11909
cmpl %eax, 0x4(%r15)
jne 0x11af9
movl %ebp, %esi
jmp 0x11b05
incl %ebx
movl %ebp, %esi
testl %ebp, %ebp
je 0x11b05
movl %eax, 0x4(%r15)
cmpl $0x3, 0x48a60(%rip) # 0x5a56c
jl 0x11bb2
movl 0x4(%r14), %ecx
leal -0x4001(%rcx), %eax
cmpl $0xffffc000, %eax # imm = 0xFFFFC000
jae 0x11b27
xorl %eax, %eax
jmp 0x11b47
shlq $0xc, %rcx
leaq (%rcx,%r14), %rax
addq $-0x4, %rax
addq %r14, %rcx
xorl %edx, %edx
cmpq %r14, %rax
cmovbeq %rdx, %rax
cmpq $0x4, %rcx
cmovbq %rdx, %rax
testq %rax, %rax
je 0x11b60
cmpl $0xdeadc0de, (%rax) # imm = 0xDEADC0DE
je 0x11b60
incl %ebx
testl %esi, %esi
je 0x11b60
movl $0xdeadc0de, (%rax) # imm = 0xDEADC0DE
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x11b79
cmpq %r14, 0x10(%rax)
je 0x11b79
incl %ebx
testl %esi, %esi
je 0x11b79
movq %r14, 0x10(%rax)
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x11b92
cmpq %r14, 0x8(%rax)
je 0x11b92
incl %ebx
testl %esi, %esi
je 0x11b92
movq %r14, 0x8(%rax)
leaq 0x14b1c7(%rip), %rax # 0x15cd60
cmpq %rax, %r14
setb %cl
addq $0x4000000, %rax # imm = 0x4000000
cmpq %rax, %r14
setae %al
orb %cl, %al
movzbl %al, %eax
addl %eax, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| verify_segment_integrity:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
test rdi, rdi
jz loc_11AB8
mov r14, rdi
xor ebx, ebx
cmp dword ptr [rdi+28h], 0CAFEBAFEh
jz short loc_11A38
mov ebx, 1
test esi, esi
jz short loc_11A38
mov dword ptr [r14+28h], 0CAFEBAFEh
loc_11A38:
mov eax, 0FFFFBFFFh
mov ecx, [r14+4]
add ecx, eax
cmp ecx, eax
ja short loc_11A6C
inc ebx
test esi, esi
jz short loc_11A6C
mov rax, [r14+8]
test rax, rax
jz short loc_11A6C
sub rax, r14
shr rax, 0Ch
lea ecx, [rax-1]
cmp ecx, 3FFFh
ja short loc_11A6C
mov [r14+4], eax
loc_11A6C:
cmp cs:integrity_check_level, 2
jl loc_11BB2
lea r13, [r14+3Fh]
and r13, 0FFFFFFFFFFFFFFF0h
lea rbp, [r14+3Ch]
lea r12, [r14+30h]
xor r15d, r15d
cmp rbp, r13
cmovbe r15, r12
test r15, r15
jnz short loc_11ACB
test esi, esi
jz short loc_11ABF
mov rdi, r14
mov r15d, esi
call initialize_segment_integrity
mov esi, r15d
xor eax, eax
cmp rbp, r13
cmova r12, rax
mov r15, r12
jmp short loc_11AC2
loc_11AB8:
xor ebx, ebx
jmp loc_11BB2
loc_11ABF:
xor r15d, r15d
loc_11AC2:
test r15, r15
jz loc_11BB2
loc_11ACB:
cmp dword ptr [r15], 0FEEDFACEh
jz short loc_11AE5
inc ebx
test esi, esi
jz short loc_11AE5
mov ebp, esi
mov dword ptr [r15], 0FEEDFACEh
jmp short loc_11AE7
loc_11AE5:
mov ebp, esi
loc_11AE7:
mov rdi, r14
call calculate_segment_checksum
cmp [r15+4], eax
jnz short loc_11AF9
mov esi, ebp
jmp short loc_11B05
loc_11AF9:
inc ebx
mov esi, ebp
test ebp, ebp
jz short loc_11B05
mov [r15+4], eax
loc_11B05:
cmp cs:integrity_check_level, 3
jl loc_11BB2
mov ecx, [r14+4]
lea eax, [rcx-4001h]
cmp eax, 0FFFFC000h
jnb short loc_11B27
xor eax, eax
jmp short loc_11B47
loc_11B27:
shl rcx, 0Ch
lea rax, [rcx+r14]
add rax, 0FFFFFFFFFFFFFFFCh
add rcx, r14
xor edx, edx
cmp rax, r14
cmovbe rax, rdx
cmp rcx, 4
cmovb rax, rdx
loc_11B47:
test rax, rax
jz short loc_11B60
cmp dword ptr [rax], 0DEADC0DEh
jz short loc_11B60
inc ebx
test esi, esi
jz short loc_11B60
mov dword ptr [rax], 0DEADC0DEh
loc_11B60:
mov rax, [r14+8]
test rax, rax
jz short loc_11B79
cmp [rax+10h], r14
jz short loc_11B79
inc ebx
test esi, esi
jz short loc_11B79
mov [rax+10h], r14
loc_11B79:
mov rax, [r14+10h]
test rax, rax
jz short loc_11B92
cmp [rax+8], r14
jz short loc_11B92
inc ebx
test esi, esi
jz short loc_11B92
mov [rax+8], r14
loc_11B92:
lea rax, memory
cmp r14, rax
setb cl
add rax, 4000000h
cmp r14, rax
setnb al
or al, cl
movzx eax, al
add ebx, eax
loc_11BB2:
mov eax, ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long verify_segment_integrity(unsigned long long a1, int a2)
{
unsigned int v2; // ebx
long long v3; // rax
unsigned long long v4; // rax
unsigned long long v5; // r13
_DWORD *v6; // r12
_DWORD *v7; // r15
int v8; // ebp
int v9; // eax
int v10; // esi
long long v11; // rcx
_DWORD *v12; // rax
long long v13; // rcx
unsigned long long v14; // rcx
long long v15; // rax
long long v16; // rax
if ( a1 )
{
v2 = 0;
if ( *(_DWORD *)(a1 + 40) != -889275650 )
{
v2 = 1;
if ( a2 )
*(_DWORD *)(a1 + 40) = -889275650;
}
if ( (unsigned int)(*(_DWORD *)(a1 + 4) - 16385) <= 0xFFFFBFFF )
{
++v2;
if ( a2 )
{
v3 = *(_QWORD *)(a1 + 8);
if ( v3 )
{
v4 = (v3 - a1) >> 12;
if ( (unsigned int)(v4 - 1) <= 0x3FFF )
*(_DWORD *)(a1 + 4) = v4;
}
}
}
if ( integrity_check_level >= 2 )
{
v5 = (a1 + 63) & 0xFFFFFFFFFFFFFFF0LL;
v6 = (_DWORD *)(a1 + 48);
v7 = 0LL;
if ( a1 + 60 <= v5 )
v7 = (_DWORD *)(a1 + 48);
if ( v7 )
goto LABEL_52;
if ( a2 )
{
initialize_segment_integrity(a1);
if ( a1 + 60 > v5 )
v6 = 0LL;
v7 = v6;
}
else
{
v7 = 0LL;
}
if ( v7 )
{
LABEL_52:
if ( *v7 == -17958194 || (++v2, !a2) )
{
v8 = a2;
}
else
{
v8 = a2;
*v7 = -17958194;
}
v9 = calculate_segment_checksum(a1);
if ( v7[1] == v9 )
{
v10 = v8;
}
else
{
++v2;
v10 = v8;
if ( v8 )
v7[1] = v9;
}
if ( integrity_check_level >= 3 )
{
v11 = *(unsigned int *)(a1 + 4);
if ( (unsigned int)(v11 - 16385) >= 0xFFFFC000 )
{
v13 = v11 << 12;
v12 = (_DWORD *)(v13 + a1 - 4);
v14 = a1 + v13;
if ( (unsigned long long)v12 <= a1 )
v12 = 0LL;
if ( v14 < 4 )
v12 = 0LL;
}
else
{
v12 = 0LL;
}
if ( v12 )
{
if ( *v12 != -559038242 )
{
++v2;
if ( v10 )
*v12 = -559038242;
}
}
v15 = *(_QWORD *)(a1 + 8);
if ( v15 )
{
if ( *(_QWORD *)(v15 + 16) != a1 )
{
++v2;
if ( v10 )
*(_QWORD *)(v15 + 16) = a1;
}
}
v16 = *(_QWORD *)(a1 + 16);
if ( v16 )
{
if ( *(_QWORD *)(v16 + 8) != a1 )
{
++v2;
if ( v10 )
*(_QWORD *)(v16 + 8) = a1;
}
}
v2 += a1 < (unsigned long long)&memory || a1 >= (unsigned long long)&memory + 0x4000000;
}
}
}
}
else
{
return 0;
}
return v2;
}
| verify_segment_integrity:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
TEST RDI,RDI
JZ 0x00111ab8
MOV R14,RDI
XOR EBX,EBX
CMP dword ptr [RDI + 0x28],0xcafebafe
JZ 0x00111a38
MOV EBX,0x1
TEST ESI,ESI
JZ 0x00111a38
MOV dword ptr [R14 + 0x28],0xcafebafe
LAB_00111a38:
MOV EAX,0xffffbfff
MOV ECX,dword ptr [R14 + 0x4]
ADD ECX,EAX
CMP ECX,EAX
JA 0x00111a6c
INC EBX
TEST ESI,ESI
JZ 0x00111a6c
MOV RAX,qword ptr [R14 + 0x8]
TEST RAX,RAX
JZ 0x00111a6c
SUB RAX,R14
SHR RAX,0xc
LEA ECX,[RAX + -0x1]
CMP ECX,0x3fff
JA 0x00111a6c
MOV dword ptr [R14 + 0x4],EAX
LAB_00111a6c:
CMP dword ptr [0x0015a56c],0x2
JL 0x00111bb2
LEA R13,[R14 + 0x3f]
AND R13,-0x10
LEA RBP,[R14 + 0x3c]
LEA R12,[R14 + 0x30]
XOR R15D,R15D
CMP RBP,R13
CMOVBE R15,R12
TEST R15,R15
JNZ 0x00111acb
TEST ESI,ESI
JZ 0x00111abf
MOV RDI,R14
MOV R15D,ESI
CALL 0x001117eb
MOV ESI,R15D
XOR EAX,EAX
CMP RBP,R13
CMOVA R12,RAX
MOV R15,R12
JMP 0x00111ac2
LAB_00111ab8:
XOR EBX,EBX
JMP 0x00111bb2
LAB_00111abf:
XOR R15D,R15D
LAB_00111ac2:
TEST R15,R15
JZ 0x00111bb2
LAB_00111acb:
CMP dword ptr [R15],0xfeedface
JZ 0x00111ae5
INC EBX
TEST ESI,ESI
JZ 0x00111ae5
MOV EBP,ESI
MOV dword ptr [R15],0xfeedface
JMP 0x00111ae7
LAB_00111ae5:
MOV EBP,ESI
LAB_00111ae7:
MOV RDI,R14
CALL 0x00111909
CMP dword ptr [R15 + 0x4],EAX
JNZ 0x00111af9
MOV ESI,EBP
JMP 0x00111b05
LAB_00111af9:
INC EBX
MOV ESI,EBP
TEST EBP,EBP
JZ 0x00111b05
MOV dword ptr [R15 + 0x4],EAX
LAB_00111b05:
CMP dword ptr [0x0015a56c],0x3
JL 0x00111bb2
MOV ECX,dword ptr [R14 + 0x4]
LEA EAX,[RCX + -0x4001]
CMP EAX,0xffffc000
JNC 0x00111b27
XOR EAX,EAX
JMP 0x00111b47
LAB_00111b27:
SHL RCX,0xc
LEA RAX,[RCX + R14*0x1]
ADD RAX,-0x4
ADD RCX,R14
XOR EDX,EDX
CMP RAX,R14
CMOVBE RAX,RDX
CMP RCX,0x4
CMOVC RAX,RDX
LAB_00111b47:
TEST RAX,RAX
JZ 0x00111b60
CMP dword ptr [RAX],0xdeadc0de
JZ 0x00111b60
INC EBX
TEST ESI,ESI
JZ 0x00111b60
MOV dword ptr [RAX],0xdeadc0de
LAB_00111b60:
MOV RAX,qword ptr [R14 + 0x8]
TEST RAX,RAX
JZ 0x00111b79
CMP qword ptr [RAX + 0x10],R14
JZ 0x00111b79
INC EBX
TEST ESI,ESI
JZ 0x00111b79
MOV qword ptr [RAX + 0x10],R14
LAB_00111b79:
MOV RAX,qword ptr [R14 + 0x10]
TEST RAX,RAX
JZ 0x00111b92
CMP qword ptr [RAX + 0x8],R14
JZ 0x00111b92
INC EBX
TEST ESI,ESI
JZ 0x00111b92
MOV qword ptr [RAX + 0x8],R14
LAB_00111b92:
LEA RAX,[0x25cd60]
CMP R14,RAX
SETC CL
ADD RAX,0x4000000
CMP R14,RAX
SETNC AL
OR AL,CL
MOVZX EAX,AL
ADD EBX,EAX
LAB_00111bb2:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
char verify_segment_integrity(int *param_1,int param_2)
{
uint uVar1;
long lVar2;
int iVar3;
int *piVar4;
char cVar5;
int *piVar6;
if (param_1 == (int *)0x0) {
cVar5 = '\0';
}
else {
cVar5 = '\0';
if ((param_1[10] != -0x35014502) && (cVar5 = '\x01', param_2 != 0)) {
param_1[10] = -0x35014502;
}
if ((((param_1[1] - 0x4001U < 0xffffc000) && (cVar5 = cVar5 + '\x01', param_2 != 0)) &&
(*(long *)(param_1 + 2) != 0)) &&
(iVar3 = (int)((ulong)(*(long *)(param_1 + 2) - (long)param_1) >> 0xc), iVar3 - 1U < 0x4000))
{
param_1[1] = iVar3;
}
if (1 < integrity_check_level) {
piVar6 = (int *)((long)param_1 + 0x3fU & 0xfffffffffffffff0);
piVar4 = (int *)0x0;
if (param_1 + 0xf <= piVar6) {
piVar4 = param_1 + 0xc;
}
if (piVar4 == (int *)0x0) {
if (param_2 == 0) {
piVar4 = (int *)0x0;
}
else {
initialize_segment_integrity(param_1);
piVar4 = param_1 + 0xc;
if (piVar6 < param_1 + 0xf) {
piVar4 = (int *)0x0;
}
}
if (piVar4 == (int *)0x0) {
return cVar5;
}
}
if ((*piVar4 != -0x1120532) && (cVar5 = cVar5 + '\x01', param_2 != 0)) {
*piVar4 = -0x1120532;
}
iVar3 = calculate_segment_checksum(param_1);
if ((piVar4[1] != iVar3) && (cVar5 = cVar5 + '\x01', param_2 != 0)) {
piVar4[1] = iVar3;
}
if (2 < integrity_check_level) {
uVar1 = param_1[1];
if (uVar1 - 0x4001 < 0xffffc000) {
piVar4 = (int *)0x0;
}
else {
piVar4 = param_1 + (ulong)uVar1 * 0x400 + -1;
if (param_1 + (ulong)uVar1 * 0x400 + -1 <= param_1) {
piVar4 = (int *)0x0;
}
if (param_1 + (ulong)uVar1 * 0x400 < (int *)0x4) {
piVar4 = (int *)0x0;
}
}
if (((piVar4 != (int *)0x0) && (*piVar4 != -0x21523f22)) &&
(cVar5 = cVar5 + '\x01', param_2 != 0)) {
*piVar4 = -0x21523f22;
}
lVar2 = *(long *)(param_1 + 2);
if (((lVar2 != 0) && (*(int **)(lVar2 + 0x10) != param_1)) &&
(cVar5 = cVar5 + '\x01', param_2 != 0)) {
*(int **)(lVar2 + 0x10) = param_1;
}
lVar2 = *(long *)(param_1 + 4);
if (((lVar2 != 0) && (*(int **)(lVar2 + 8) != param_1)) &&
(cVar5 = cVar5 + '\x01', param_2 != 0)) {
*(int **)(lVar2 + 8) = param_1;
}
cVar5 = cVar5 + (memory + 0x3ffffff < param_1 || param_1 < memory);
}
}
}
return cVar5;
}
|
|
3,068 | ma_bitmap_reset_cache | eloqsql/storage/maria/ma_bitmap.c | void _ma_bitmap_reset_cache(MARIA_SHARE *share)
{
MARIA_FILE_BITMAP *bitmap= &share->bitmap;
if (bitmap->map) /* If using bitmap */
{
/* Forget changes in current bitmap page */
bitmap->changed= 0;
/*
We can't read a page yet, as in some case we don't have an active
page cache yet.
Pretend we have a dummy, full and not changed bitmap page in memory.
We set bitmap->page to a value so that if we use it in
move_to_next_bitmap() it will point to page 0.
(This can only happen if writing to a bitmap page fails)
*/
bitmap->page= ((pgcache_page_no_t) 0) - bitmap->pages_covered;
bitmap->used_size= bitmap->total_size= bitmap->max_total_size;
bitmap->full_head_size= bitmap->full_tail_size= bitmap->max_total_size;
bfill(bitmap->map, share->block_size, 255);
#ifndef DBUG_OFF
memcpy(bitmap->map + bitmap->block_size, bitmap->map, bitmap->block_size);
#endif
/* Start scanning for free space from start of file */
share->state.first_bitmap_with_space = 0;
}
} | O0 | c | ma_bitmap_reset_cache:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa10, %rax # imm = 0xA10
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x62332
movq -0x10(%rbp), %rax
movb $0x0, 0x20(%rax)
movq -0x10(%rbp), %rax
xorl %ecx, %ecx
subq 0x138(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movl 0x12c(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x128(%rax)
movq -0x10(%rbp), %rax
movl %ecx, 0x24(%rax)
movq -0x10(%rbp), %rax
movl 0x12c(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x2c(%rax)
movq -0x10(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x8(%rbp), %rax
movl 0x7bc(%rax), %eax
movl %eax, %edx
movl $0xff, %esi
callq 0x2a2a0
movq -0x8(%rbp), %rax
movq $0x0, 0xd0(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _ma_bitmap_reset_cache:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
add rax, 0A10h
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
cmp qword ptr [rax+8], 0
jz short loc_62332
mov rax, [rbp+var_10]
mov byte ptr [rax+20h], 0
mov rax, [rbp+var_10]
xor ecx, ecx
sub rcx, [rax+138h]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rax, [rbp+var_10]
mov ecx, [rax+12Ch]
mov rax, [rbp+var_10]
mov [rax+128h], ecx
mov rax, [rbp+var_10]
mov [rax+24h], ecx
mov rax, [rbp+var_10]
mov ecx, [rax+12Ch]
mov rax, [rbp+var_10]
mov [rax+2Ch], ecx
mov rax, [rbp+var_10]
mov [rax+28h], ecx
mov rax, [rbp+var_10]
mov rdi, [rax+8]
mov rax, [rbp+var_8]
mov eax, [rax+7BCh]
mov edx, eax
mov esi, 0FFh
call _memset
mov rax, [rbp+var_8]
mov qword ptr [rax+0D0h], 0
loc_62332:
add rsp, 10h
pop rbp
retn
| long long ma_bitmap_reset_cache(long long a1)
{
long long result; // rax
int v2; // ecx
int v3; // ecx
result = a1 + 2576;
if ( *(_QWORD *)(a1 + 2584) )
{
*(_BYTE *)(a1 + 2608) = 0;
*(_QWORD *)(a1 + 2592) = -*(_QWORD *)(a1 + 2888);
v2 = *(_DWORD *)(a1 + 2876);
*(_DWORD *)(a1 + 2872) = v2;
*(_DWORD *)(a1 + 2612) = v2;
v3 = *(_DWORD *)(a1 + 2876);
*(_DWORD *)(a1 + 2620) = v3;
*(_DWORD *)(a1 + 2616) = v3;
memset(*(_QWORD *)(a1 + 2584), 255LL, *(unsigned int *)(a1 + 1980));
result = a1;
*(_QWORD *)(a1 + 208) = 0LL;
}
return result;
}
| _ma_bitmap_reset_cache:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0xa10
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x00162332
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x20],0x0
MOV RAX,qword ptr [RBP + -0x10]
XOR ECX,ECX
SUB RCX,qword ptr [RAX + 0x138]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x12c]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x128],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x24],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x12c]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x2c],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV EDX,EAX
MOV ESI,0xff
CALL 0x0012a2a0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xd0],0x0
LAB_00162332:
ADD RSP,0x10
POP RBP
RET
|
void _ma_bitmap_reset_cache(long param_1)
{
if (*(long *)(param_1 + 0xa18) != 0) {
*(int1 *)(param_1 + 0xa30) = 0;
*(long *)(param_1 + 0xa20) = -*(long *)(param_1 + 0xb48);
*(int4 *)(param_1 + 0xb38) = *(int4 *)(param_1 + 0xb3c);
*(int4 *)(param_1 + 0xa34) = *(int4 *)(param_1 + 0xb3c);
*(int4 *)(param_1 + 0xa3c) = *(int4 *)(param_1 + 0xb3c);
*(int4 *)(param_1 + 0xa38) = *(int4 *)(param_1 + 0xb3c);
memset(*(void **)(param_1 + 0xa18),0xff,(ulong)*(uint *)(param_1 + 0x7bc));
*(int8 *)(param_1 + 0xd0) = 0;
}
return;
}
|
|
3,069 | set_closure_from_var | bluesky950520[P]quickjs/quickjs.c | static void set_closure_from_var(JSContext *ctx, JSClosureVar *cv,
JSVarDef *vd, int var_idx)
{
cv->is_local = TRUE;
cv->is_arg = FALSE;
cv->is_const = vd->is_const;
cv->is_lexical = vd->is_lexical;
cv->var_kind = vd->var_kind;
cv->var_idx = var_idx;
cv->var_name = JS_DupAtom(ctx, vd->var_name);
} | O0 | c | set_closure_from_var:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movl %ecx, 0xc(%rsp)
movq 0x18(%rsp), %rax
movb (%rax), %cl
andb $-0x2, %cl
orb $0x1, %cl
movb %cl, (%rax)
movq 0x18(%rsp), %rax
movb (%rax), %cl
andb $-0x3, %cl
orb $0x0, %cl
movb %cl, (%rax)
movq 0x10(%rsp), %rax
movl 0xc(%rax), %eax
andl $0x1, %eax
movb %al, %dl
movq 0x18(%rsp), %rax
movb (%rax), %cl
andb $0x1, %dl
shlb $0x2, %dl
andb $-0x5, %cl
orb %dl, %cl
movb %cl, (%rax)
movq 0x10(%rsp), %rax
movl 0xc(%rax), %eax
shrl %eax
andl $0x1, %eax
movb %al, %dl
movq 0x18(%rsp), %rax
movb (%rax), %cl
andb $0x1, %dl
shlb $0x3, %dl
andb $-0x9, %cl
orb %dl, %cl
movb %cl, (%rax)
movq 0x10(%rsp), %rax
movl 0xc(%rax), %eax
shrl $0x4, %eax
andl $0xf, %eax
movb %al, %dl
movq 0x18(%rsp), %rax
movb (%rax), %cl
andb $0xf, %dl
shlb $0x4, %dl
andb $0xf, %cl
orb %dl, %cl
movb %cl, (%rax)
movl 0xc(%rsp), %eax
movw %ax, %cx
movq 0x18(%rsp), %rax
movw %cx, 0x2(%rax)
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rax
movl (%rax), %esi
callq 0x27fa0
movl %eax, %ecx
movq 0x18(%rsp), %rax
movl %ecx, 0x4(%rax)
addq $0x28, %rsp
retq
nopl (%rax)
| set_closure_from_var:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov [rsp+28h+var_18], rdx
mov [rsp+28h+var_1C], ecx
mov rax, [rsp+28h+var_10]
mov cl, [rax]
and cl, 0FEh
or cl, 1
mov [rax], cl
mov rax, [rsp+28h+var_10]
mov cl, [rax]
and cl, 0FDh
or cl, 0
mov [rax], cl
mov rax, [rsp+28h+var_18]
mov eax, [rax+0Ch]
and eax, 1
mov dl, al
mov rax, [rsp+28h+var_10]
mov cl, [rax]
and dl, 1
shl dl, 2
and cl, 0FBh
or cl, dl
mov [rax], cl
mov rax, [rsp+28h+var_18]
mov eax, [rax+0Ch]
shr eax, 1
and eax, 1
mov dl, al
mov rax, [rsp+28h+var_10]
mov cl, [rax]
and dl, 1
shl dl, 3
and cl, 0F7h
or cl, dl
mov [rax], cl
mov rax, [rsp+28h+var_18]
mov eax, [rax+0Ch]
shr eax, 4
and eax, 0Fh
mov dl, al
mov rax, [rsp+28h+var_10]
mov cl, [rax]
and dl, 0Fh
shl dl, 4
and cl, 0Fh
or cl, dl
mov [rax], cl
mov eax, [rsp+28h+var_1C]
mov cx, ax
mov rax, [rsp+28h+var_10]
mov [rax+2], cx
mov rdi, [rsp+28h+var_8]
mov rax, [rsp+28h+var_18]
mov esi, [rax]
call JS_DupAtom
mov ecx, eax
mov rax, [rsp+28h+var_10]
mov [rax+4], ecx
add rsp, 28h
retn
| long long set_closure_from_var(long long a1, long long a2, unsigned int *a3, __int16 a4)
{
int v4; // ecx
long long result; // rax
*(_BYTE *)a2 = *(_BYTE *)a2 & 0xFE | 1;
*(_BYTE *)a2 &= ~2u;
*(_BYTE *)a2 = (4 * (a3[3] & 1)) | *(_BYTE *)a2 & 0xFB;
*(_BYTE *)a2 = (8 * ((a3[3] & 2) != 0)) | *(_BYTE *)a2 & 0xF7;
*(_BYTE *)a2 = (16 * ((a3[3] >> 4) & 0xF)) | *(_BYTE *)a2 & 0xF;
*(_WORD *)(a2 + 2) = a4;
v4 = JS_DupAtom(a1, *a3);
result = a2;
*(_DWORD *)(a2 + 4) = v4;
return result;
}
| set_closure_from_var:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x10],RDX
MOV dword ptr [RSP + 0xc],ECX
MOV RAX,qword ptr [RSP + 0x18]
MOV CL,byte ptr [RAX]
AND CL,0xfe
OR CL,0x1
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RSP + 0x18]
MOV CL,byte ptr [RAX]
AND CL,0xfd
OR CL,0x0
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0xc]
AND EAX,0x1
MOV DL,AL
MOV RAX,qword ptr [RSP + 0x18]
MOV CL,byte ptr [RAX]
AND DL,0x1
SHL DL,0x2
AND CL,0xfb
OR CL,DL
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0xc]
SHR EAX,0x1
AND EAX,0x1
MOV DL,AL
MOV RAX,qword ptr [RSP + 0x18]
MOV CL,byte ptr [RAX]
AND DL,0x1
SHL DL,0x3
AND CL,0xf7
OR CL,DL
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0xc]
SHR EAX,0x4
AND EAX,0xf
MOV DL,AL
MOV RAX,qword ptr [RSP + 0x18]
MOV CL,byte ptr [RAX]
AND DL,0xf
SHL DL,0x4
AND CL,0xf
OR CL,DL
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RSP + 0xc]
MOV CX,AX
MOV RAX,qword ptr [RSP + 0x18]
MOV word ptr [RAX + 0x2],CX
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x10]
MOV ESI,dword ptr [RAX]
CALL 0x00127fa0
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x4],ECX
ADD RSP,0x28
RET
|
void set_closure_from_var(int8 param_1,byte *param_2,int4 *param_3,int2 param_4)
{
int4 uVar1;
*param_2 = *param_2 & 0xfe | 1;
*param_2 = *param_2 & 0xfd;
*param_2 = *param_2 & 0xfb | ((byte)param_3[3] & 1) << 2;
*param_2 = *param_2 & 0xf7 | ((byte)((uint)param_3[3] >> 1) & 1) << 3;
*param_2 = *param_2 & 0xf | (char)((uint)param_3[3] >> 4) << 4;
*(int2 *)(param_2 + 2) = param_4;
uVar1 = JS_DupAtom(param_1,*param_3);
*(int4 *)(param_2 + 4) = uVar1;
return;
}
|
|
3,070 | set_closure_from_var | bluesky950520[P]quickjs/quickjs.c | static void set_closure_from_var(JSContext *ctx, JSClosureVar *cv,
JSVarDef *vd, int var_idx)
{
cv->is_local = TRUE;
cv->is_arg = FALSE;
cv->is_const = vd->is_const;
cv->is_lexical = vd->is_lexical;
cv->var_kind = vd->var_kind;
cv->var_idx = var_idx;
cv->var_name = JS_DupAtom(ctx, vd->var_name);
} | O1 | c | set_closure_from_var:
movb (%rsi), %al
andb $-0x4, %al
incb %al
movb %al, (%rsi)
movb 0xc(%rdx), %r8b
shlb $0x2, %r8b
andb $0x4, %r8b
andb $-0x7, %al
orb %r8b, %al
movb %al, (%rsi)
movb 0xc(%rdx), %r8b
shlb $0x2, %r8b
andb $0x8, %r8b
andb $-0xb, %al
orb %r8b, %al
movb %al, (%rsi)
movb 0xc(%rdx), %r8b
andb $-0x10, %r8b
andb $0xd, %al
orb %r8b, %al
movb %al, (%rsi)
movw %cx, 0x2(%rsi)
movslq (%rdx), %rax
cmpq $0xe0, %rax
jl 0x5d195
movq 0x18(%rdi), %rcx
movq 0x68(%rcx), %rcx
movq (%rcx,%rax,8), %rcx
incl (%rcx)
movl %eax, 0x4(%rsi)
retq
| set_closure_from_var:
mov al, [rsi]
and al, 0FCh
inc al
mov [rsi], al
mov r8b, [rdx+0Ch]
shl r8b, 2
and r8b, 4
and al, 0F9h
or al, r8b
mov [rsi], al
mov r8b, [rdx+0Ch]
shl r8b, 2
and r8b, 8
and al, 0F5h
or al, r8b
mov [rsi], al
mov r8b, [rdx+0Ch]
and r8b, 0F0h
and al, 0Dh
or al, r8b
mov [rsi], al
mov [rsi+2], cx
movsxd rax, dword ptr [rdx]
cmp rax, 0E0h
jl short loc_5D195
mov rcx, [rdi+18h]
mov rcx, [rcx+68h]
mov rcx, [rcx+rax*8]
inc dword ptr [rcx]
loc_5D195:
mov [rsi+4], eax
retn
| long long set_closure_from_var(long long a1, long long a2, int *a3, __int16 a4)
{
char v4; // al
char v5; // al
char v6; // al
long long result; // rax
_DWORD *v8; // rcx
v4 = (*(_BYTE *)a2 & 0xFC) + 1;
*(_BYTE *)a2 = v4;
v5 = (4 * *((_BYTE *)a3 + 12)) & 4 | v4 & 0xF9;
*(_BYTE *)a2 = v5;
v6 = (4 * *((_BYTE *)a3 + 12)) & 8 | v5 & 0xF5;
*(_BYTE *)a2 = v6;
*(_BYTE *)a2 = a3[3] & 0xF0 | v6 & 0xD;
*(_WORD *)(a2 + 2) = a4;
result = *a3;
if ( result >= 224 )
{
v8 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL) + 8 * result);
++*v8;
}
*(_DWORD *)(a2 + 4) = result;
return result;
}
| set_closure_from_var:
MOV AL,byte ptr [RSI]
AND AL,0xfc
INC AL
MOV byte ptr [RSI],AL
MOV R8B,byte ptr [RDX + 0xc]
SHL R8B,0x2
AND R8B,0x4
AND AL,0xf9
OR AL,R8B
MOV byte ptr [RSI],AL
MOV R8B,byte ptr [RDX + 0xc]
SHL R8B,0x2
AND R8B,0x8
AND AL,0xf5
OR AL,R8B
MOV byte ptr [RSI],AL
MOV R8B,byte ptr [RDX + 0xc]
AND R8B,0xf0
AND AL,0xd
OR AL,R8B
MOV byte ptr [RSI],AL
MOV word ptr [RSI + 0x2],CX
MOVSXD RAX,dword ptr [RDX]
CMP RAX,0xe0
JL 0x0015d195
MOV RCX,qword ptr [RDI + 0x18]
MOV RCX,qword ptr [RCX + 0x68]
MOV RCX,qword ptr [RCX + RAX*0x8]
INC dword ptr [RCX]
LAB_0015d195:
MOV dword ptr [RSI + 0x4],EAX
RET
|
void set_closure_from_var(long param_1,byte *param_2,int *param_3,int2 param_4)
{
int iVar1;
int *piVar2;
byte bVar3;
byte bVar4;
byte bVar5;
bVar3 = (*param_2 & 0xfc) + 1;
*param_2 = bVar3;
bVar4 = (*(byte *)(param_3 + 3) & 1) << 2;
*param_2 = bVar3 & 0xf9 | bVar4;
bVar5 = (*(byte *)(param_3 + 3) & 2) << 2;
*param_2 = bVar3 & 0xf1 | bVar4 | bVar5;
*param_2 = bVar3 & 1 | bVar4 | bVar5 | *(byte *)(param_3 + 3) & 0xf0;
*(int2 *)(param_2 + 2) = param_4;
iVar1 = *param_3;
if (0xdf < (long)iVar1) {
piVar2 = *(int **)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + (long)iVar1 * 8);
*piVar2 = *piVar2 + 1;
}
*(int *)(param_2 + 4) = iVar1;
return;
}
|
|
3,071 | set_closure_from_var | bluesky950520[P]quickjs/quickjs.c | static void set_closure_from_var(JSContext *ctx, JSClosureVar *cv,
JSVarDef *vd, int var_idx)
{
cv->is_local = TRUE;
cv->is_arg = FALSE;
cv->is_const = vd->is_const;
cv->is_lexical = vd->is_lexical;
cv->var_kind = vd->var_kind;
cv->var_idx = var_idx;
cv->var_name = JS_DupAtom(ctx, vd->var_name);
} | O2 | c | set_closure_from_var:
movb (%rsi), %al
andb $-0x4, %al
incb %al
movb %al, (%rsi)
movb 0xc(%rdx), %r8b
shlb $0x2, %r8b
andb $0x4, %r8b
andb $-0x7, %al
orb %r8b, %al
movb %al, (%rsi)
movb 0xc(%rdx), %r8b
shlb $0x2, %r8b
andb $0x8, %r8b
andb $-0xb, %al
orb %r8b, %al
movb %al, (%rsi)
movb 0xc(%rdx), %r8b
andb $-0x10, %r8b
andb $0xd, %al
orb %r8b, %al
movb %al, (%rsi)
movw %cx, 0x2(%rsi)
movslq (%rdx), %rax
cmpq $0xe0, %rax
jl 0x4f9e3
movq 0x18(%rdi), %rcx
movq 0x68(%rcx), %rcx
movq (%rcx,%rax,8), %rcx
incl (%rcx)
movl %eax, 0x4(%rsi)
retq
| set_closure_from_var:
mov al, [rsi]
and al, 0FCh
inc al
mov [rsi], al
mov r8b, [rdx+0Ch]
shl r8b, 2
and r8b, 4
and al, 0F9h
or al, r8b
mov [rsi], al
mov r8b, [rdx+0Ch]
shl r8b, 2
and r8b, 8
and al, 0F5h
or al, r8b
mov [rsi], al
mov r8b, [rdx+0Ch]
and r8b, 0F0h
and al, 0Dh
or al, r8b
mov [rsi], al
mov [rsi+2], cx
movsxd rax, dword ptr [rdx]
cmp rax, 0E0h
jl short loc_4F9E3
mov rcx, [rdi+18h]
mov rcx, [rcx+68h]
mov rcx, [rcx+rax*8]
inc dword ptr [rcx]
loc_4F9E3:
mov [rsi+4], eax
retn
| long long set_closure_from_var(long long a1, long long a2, int *a3, __int16 a4)
{
char v4; // al
char v5; // al
char v6; // al
long long result; // rax
_DWORD *v8; // rcx
v4 = (*(_BYTE *)a2 & 0xFC) + 1;
*(_BYTE *)a2 = v4;
v5 = (4 * *((_BYTE *)a3 + 12)) & 4 | v4 & 0xF9;
*(_BYTE *)a2 = v5;
v6 = (4 * *((_BYTE *)a3 + 12)) & 8 | v5 & 0xF5;
*(_BYTE *)a2 = v6;
*(_BYTE *)a2 = a3[3] & 0xF0 | v6 & 0xD;
*(_WORD *)(a2 + 2) = a4;
result = *a3;
if ( result >= 224 )
{
v8 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL) + 8 * result);
++*v8;
}
*(_DWORD *)(a2 + 4) = result;
return result;
}
| set_closure_from_var:
MOV AL,byte ptr [RSI]
AND AL,0xfc
INC AL
MOV byte ptr [RSI],AL
MOV R8B,byte ptr [RDX + 0xc]
SHL R8B,0x2
AND R8B,0x4
AND AL,0xf9
OR AL,R8B
MOV byte ptr [RSI],AL
MOV R8B,byte ptr [RDX + 0xc]
SHL R8B,0x2
AND R8B,0x8
AND AL,0xf5
OR AL,R8B
MOV byte ptr [RSI],AL
MOV R8B,byte ptr [RDX + 0xc]
AND R8B,0xf0
AND AL,0xd
OR AL,R8B
MOV byte ptr [RSI],AL
MOV word ptr [RSI + 0x2],CX
MOVSXD RAX,dword ptr [RDX]
CMP RAX,0xe0
JL 0x0014f9e3
MOV RCX,qword ptr [RDI + 0x18]
MOV RCX,qword ptr [RCX + 0x68]
MOV RCX,qword ptr [RCX + RAX*0x8]
INC dword ptr [RCX]
LAB_0014f9e3:
MOV dword ptr [RSI + 0x4],EAX
RET
|
void set_closure_from_var(long param_1,byte *param_2,int *param_3,int2 param_4)
{
int iVar1;
int *piVar2;
byte bVar3;
byte bVar4;
byte bVar5;
bVar3 = (*param_2 & 0xfc) + 1;
*param_2 = bVar3;
bVar4 = (*(byte *)(param_3 + 3) & 1) << 2;
*param_2 = bVar3 & 0xf9 | bVar4;
bVar5 = (*(byte *)(param_3 + 3) & 2) << 2;
*param_2 = bVar3 & 0xf1 | bVar4 | bVar5;
*param_2 = bVar3 & 1 | bVar4 | bVar5 | *(byte *)(param_3 + 3) & 0xf0;
*(int2 *)(param_2 + 2) = param_4;
iVar1 = *param_3;
if (0xdf < (long)iVar1) {
piVar2 = *(int **)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + (long)iVar1 * 8);
*piVar2 = *piVar2 + 1;
}
*(int *)(param_2 + 4) = iVar1;
return;
}
|
|
3,072 | ggml_conv_2d_dw_direct | ngxson[P]ggml-easy/ggml/src/ggml.c | struct ggml_tensor * ggml_conv_2d_dw_direct(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
int stride0,
int stride1,
int pad0,
int pad1,
int dilation0,
int dilation1) {
GGML_ASSERT(a->ne[2] == 1);
GGML_ASSERT(a->ne[3] == b->ne[2]);
int64_t ne[4];
ne[0] = ggml_calc_conv_output_size(b->ne[0], a->ne[0], stride0, pad0, dilation0);
ne[1] = ggml_calc_conv_output_size(b->ne[1], a->ne[1], stride1, pad1, dilation1);
ne[2] = b->ne[2];
ne[3] = b->ne[3];
struct ggml_tensor * result = ggml_new_tensor(ctx, b->type, 4, ne);
if (ggml_is_contiguous_channels(b)) {
// Result will be permuted the same way as input (CWHN order)
const int64_t type_size = ggml_type_size(result->type);
GGML_ASSERT(ggml_blck_size(result->type) == 1);
result->nb[0] = result->ne[2] * type_size;
result->nb[1] = result->ne[0] * result->nb[0];
result->nb[2] = type_size;
}
int32_t params[] = { stride0, stride1, pad0, pad1, dilation0, dilation1 };
ggml_set_op_params(result, params, sizeof(params));
result->op = GGML_OP_CONV_2D_DW;
result->src[0] = a;
result->src[1] = b;
return result;
} | O3 | c | ggml_conv_2d_dw_direct:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpq $0x1, 0x20(%rsi)
jne 0x1d8d8
movq %rdx, %rbx
movq %rsi, %r14
movq 0x28(%rsi), %rsi
cmpq 0x20(%rdx), %rsi
jne 0x1d8f4
movl %r9d, %r15d
movl %r8d, %ebp
movl %ecx, %r12d
movl 0x60(%rsp), %r13d
movq 0x10(%r14), %rax
leal (%r15,%r15), %ecx
movslq %ecx, %rcx
addq 0x10(%rbx), %rcx
movslq 0x68(%rsp), %rdx
decq %rax
imulq %rdx, %rax
notq %rax
addq %rcx, %rax
movslq %r12d, %rcx
cqto
idivq %rcx
incq %rax
movq %rsp, %rcx
movq %rax, (%rcx)
movq 0x18(%r14), %rax
leal (,%r13,2), %edx
movslq %edx, %rdx
addq 0x18(%rbx), %rdx
movslq 0x70(%rsp), %r8
decq %rax
imulq %r8, %rax
notq %rax
addq %rdx, %rax
movslq %ebp, %r8
cqto
idivq %r8
incq %rax
movq %rax, 0x8(%rcx)
movq %rsi, 0x10(%rcx)
movq 0x28(%rbx), %rax
movq %rax, 0x18(%rcx)
movl (%rbx), %esi
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x19c13
movq 0x30(%rbx), %rdx
movq 0x40(%rbx), %rcx
cmpq %rcx, %rdx
jbe 0x1d892
cmpq %rdx, 0x38(%rbx)
jbe 0x1d892
movl (%rbx), %edx
imulq $0x38, %rdx, %rsi
leaq 0x4b56a(%rip), %rdx # 0x68dc0
cmpq 0x18(%rsi,%rdx), %rcx
jne 0x1d892
movl (%rax), %ecx
movl $0x5f000003, %esi # imm = 0x5F000003
btq %rcx, %rsi
jae 0x1d931
imulq $0x38, %rcx, %rcx
movq 0x18(%rcx,%rdx), %rcx
movq 0x20(%rax), %rdx
imulq %rcx, %rdx
movq %rdx, 0x30(%rax)
imulq 0x10(%rax), %rdx
movq %rdx, 0x38(%rax)
movq %rcx, 0x40(%rax)
jmp 0x1d897
testq %rax, %rax
je 0x1d910
movl %r12d, 0x54(%rax)
movl %ebp, 0x58(%rax)
movl %r15d, 0x5c(%rax)
movl %r13d, 0x60(%rax)
movl 0x68(%rsp), %ecx
movl %ecx, 0x64(%rax)
movl 0x70(%rsp), %ecx
movl %ecx, 0x68(%rax)
movl $0x33, 0x50(%rax)
movq %r14, 0x98(%rax)
movq %rbx, 0xa0(%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2cd34(%rip), %rdi # 0x4a613
leaq 0x2cd78(%rip), %rdx # 0x4a65e
leaq 0x2d434(%rip), %rcx # 0x4ad21
movl $0xfea, %esi # imm = 0xFEA
jmp 0x1d92a
leaq 0x2cd18(%rip), %rdi # 0x4a613
leaq 0x2cd5c(%rip), %rdx # 0x4a65e
leaq 0x2d426(%rip), %rcx # 0x4ad2f
movl $0xfeb, %esi # imm = 0xFEB
jmp 0x1d92a
leaq 0x2eec5(%rip), %rdi # 0x4c7dc
leaq 0x2cd40(%rip), %rdx # 0x4a65e
leaq 0x2ef07(%rip), %rcx # 0x4c82c
movl $0x70, %esi
xorl %eax, %eax
callq 0x17c60
leaq 0x2ccdb(%rip), %rdi # 0x4a613
leaq 0x2cd1f(%rip), %rdx # 0x4a65e
leaq 0x2d3fe(%rip), %rcx # 0x4ad44
movl $0xff7, %esi # imm = 0xFF7
jmp 0x1d92a
| ggml_conv_2d_dw_direct:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
cmp qword ptr [rsi+20h], 1
jnz loc_1D8D8
mov rbx, rdx
mov r14, rsi
mov rsi, [rsi+28h]
cmp rsi, [rdx+20h]
jnz loc_1D8F4
mov r15d, r9d
mov ebp, r8d
mov r12d, ecx
mov r13d, [rsp+58h+arg_0]
mov rax, [r14+10h]
lea ecx, [r15+r15]
movsxd rcx, ecx
add rcx, [rbx+10h]
movsxd rdx, [rsp+58h+arg_8]
dec rax
imul rax, rdx
not rax
add rax, rcx
movsxd rcx, r12d
cqo
idiv rcx
inc rax
mov rcx, rsp
mov [rcx], rax
mov rax, [r14+18h]
lea edx, ds:0[r13*2]
movsxd rdx, edx
add rdx, [rbx+18h]
movsxd r8, [rsp+58h+arg_10]
dec rax
imul rax, r8
not rax
add rax, rdx
movsxd r8, ebp
cqo
idiv r8
inc rax
mov [rcx+8], rax
mov [rcx+10h], rsi
mov rax, [rbx+28h]
mov [rcx+18h], rax
mov esi, [rbx]
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov rdx, [rbx+30h]
mov rcx, [rbx+40h]
cmp rdx, rcx
jbe short loc_1D892
cmp [rbx+38h], rdx
jbe short loc_1D892
mov edx, [rbx]
imul rsi, rdx, 38h ; '8'
lea rdx, type_traits
cmp rcx, [rsi+rdx+18h]
jnz short loc_1D892
mov ecx, [rax]
mov esi, 5F000003h
bt rsi, rcx
jnb loc_1D931
imul rcx, 38h ; '8'
mov rcx, [rcx+rdx+18h]
mov rdx, [rax+20h]
imul rdx, rcx
mov [rax+30h], rdx
imul rdx, [rax+10h]
mov [rax+38h], rdx
mov [rax+40h], rcx
jmp short loc_1D897
loc_1D892:
test rax, rax
jz short loc_1D910
loc_1D897:
mov [rax+54h], r12d
mov [rax+58h], ebp
mov [rax+5Ch], r15d
mov [rax+60h], r13d
mov ecx, [rsp+58h+arg_8]
mov [rax+64h], ecx
mov ecx, [rsp+58h+arg_10]
mov [rax+68h], ecx
mov dword ptr [rax+50h], 33h ; '3'
mov [rax+98h], r14
mov [rax+0A0h], rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1D8D8:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aANe21; "a->ne[2] == 1"
mov esi, 0FEAh
jmp short loc_1D92A
loc_1D8F4:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aANe3BNe2; "a->ne[3] == b->ne[2]"
mov esi, 0FEBh
jmp short loc_1D92A
loc_1D910:
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_1D92A:
xor eax, eax
call _ggml_abort
loc_1D931:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlBlckSizeRe; "ggml_blck_size(result->type) == 1"
mov esi, 0FF7h
jmp short loc_1D92A
| unsigned int * ggml_conv_2d_dw_direct(
long long a1,
_QWORD *a2,
unsigned int *a3,
signed int a4,
signed int a5,
unsigned int a6,
unsigned int a7,
signed int a8,
signed int a9)
{
long long v11; // rsi
unsigned int *result; // rax
unsigned long long v16; // rdx
char *v17; // rcx
unsigned long long v18; // rcx
long long v19; // rsi
char *v20; // rcx
long long v21; // rdx
const char *v22; // rdi
const char *v23; // rcx
int v24; // esi
_QWORD v25[11]; // [rsp+0h] [rbp-58h] BYREF
if ( a2[4] != 1LL )
{
v22 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
v23 = "a->ne[2] == 1";
v24 = 4074;
goto LABEL_13;
}
v11 = a2[5];
if ( v11 != *((_QWORD *)a3 + 4) )
{
v22 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
v23 = "a->ne[3] == b->ne[2]";
v24 = 4075;
goto LABEL_13;
}
v25[0] = (*((_QWORD *)a3 + 2) + (int)(2 * a6) + ~(a8 * (a2[2] - 1LL))) / a4 + 1;
v25[1] = (*((_QWORD *)a3 + 3) + (int)(2 * a7) + ~(a9 * (a2[3] - 1LL))) / a5 + 1;
v25[2] = v11;
v25[3] = *((_QWORD *)a3 + 5);
result = (unsigned int *)ggml_new_tensor_impl(a1, *a3, 4u, v25, 0LL, 0LL);
v16 = *((_QWORD *)a3 + 6);
v17 = (char *)*((_QWORD *)a3 + 8);
if ( v16 <= (unsigned long long)v17 || *((_QWORD *)a3 + 7) <= v16 || v17 != (&type_traits)[7 * *a3 + 3] )
{
if ( result )
goto LABEL_9;
v22 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-impl.h";
v23 = "tensor != NULL";
v24 = 112;
LABEL_13:
ggml_abort((_DWORD)v22, v24, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v23, a5, a6);
}
v18 = *result;
v19 = 1593835523LL;
if ( !_bittest64(&v19, v18) )
{
v22 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
v23 = "ggml_blck_size(result->type) == 1";
v24 = 4087;
goto LABEL_13;
}
v20 = (&type_traits)[7 * v18 + 3];
v21 = (_QWORD)v20 * *((_QWORD *)result + 4);
*((_QWORD *)result + 6) = v21;
*((_QWORD *)result + 7) = *((_QWORD *)result + 2) * v21;
*((_QWORD *)result + 8) = v20;
LABEL_9:
result[21] = a4;
result[22] = a5;
result[23] = a6;
result[24] = a7;
result[25] = a8;
result[26] = a9;
result[20] = 51;
*((_QWORD *)result + 19) = a2;
*((_QWORD *)result + 20) = a3;
return result;
}
| ggml_conv_2d_dw_direct:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
CMP qword ptr [RSI + 0x20],0x1
JNZ 0x0011d8d8
MOV RBX,RDX
MOV R14,RSI
MOV RSI,qword ptr [RSI + 0x28]
CMP RSI,qword ptr [RDX + 0x20]
JNZ 0x0011d8f4
MOV R15D,R9D
MOV EBP,R8D
MOV R12D,ECX
MOV R13D,dword ptr [RSP + 0x60]
MOV RAX,qword ptr [R14 + 0x10]
LEA ECX,[R15 + R15*0x1]
MOVSXD RCX,ECX
ADD RCX,qword ptr [RBX + 0x10]
MOVSXD RDX,dword ptr [RSP + 0x68]
DEC RAX
IMUL RAX,RDX
NOT RAX
ADD RAX,RCX
MOVSXD RCX,R12D
CQO
IDIV RCX
INC RAX
MOV RCX,RSP
MOV qword ptr [RCX],RAX
MOV RAX,qword ptr [R14 + 0x18]
LEA EDX,[R13*0x2]
MOVSXD RDX,EDX
ADD RDX,qword ptr [RBX + 0x18]
MOVSXD R8,dword ptr [RSP + 0x70]
DEC RAX
IMUL RAX,R8
NOT RAX
ADD RAX,RDX
MOVSXD R8,EBP
CQO
IDIV R8
INC RAX
MOV qword ptr [RCX + 0x8],RAX
MOV qword ptr [RCX + 0x10],RSI
MOV RAX,qword ptr [RBX + 0x28]
MOV qword ptr [RCX + 0x18],RAX
MOV ESI,dword ptr [RBX]
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00119c13
MOV RDX,qword ptr [RBX + 0x30]
MOV RCX,qword ptr [RBX + 0x40]
CMP RDX,RCX
JBE 0x0011d892
CMP qword ptr [RBX + 0x38],RDX
JBE 0x0011d892
MOV EDX,dword ptr [RBX]
IMUL RSI,RDX,0x38
LEA RDX,[0x168dc0]
CMP RCX,qword ptr [RSI + RDX*0x1 + 0x18]
JNZ 0x0011d892
MOV ECX,dword ptr [RAX]
MOV ESI,0x5f000003
BT RSI,RCX
JNC 0x0011d931
IMUL RCX,RCX,0x38
MOV RCX,qword ptr [RCX + RDX*0x1 + 0x18]
MOV RDX,qword ptr [RAX + 0x20]
IMUL RDX,RCX
MOV qword ptr [RAX + 0x30],RDX
IMUL RDX,qword ptr [RAX + 0x10]
MOV qword ptr [RAX + 0x38],RDX
MOV qword ptr [RAX + 0x40],RCX
JMP 0x0011d897
LAB_0011d892:
TEST RAX,RAX
JZ 0x0011d910
LAB_0011d897:
MOV dword ptr [RAX + 0x54],R12D
MOV dword ptr [RAX + 0x58],EBP
MOV dword ptr [RAX + 0x5c],R15D
MOV dword ptr [RAX + 0x60],R13D
MOV ECX,dword ptr [RSP + 0x68]
MOV dword ptr [RAX + 0x64],ECX
MOV ECX,dword ptr [RSP + 0x70]
MOV dword ptr [RAX + 0x68],ECX
MOV dword ptr [RAX + 0x50],0x33
MOV qword ptr [RAX + 0x98],R14
MOV qword ptr [RAX + 0xa0],RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0011d8d8:
LEA RDI,[0x14a613]
LEA RDX,[0x14a65e]
LEA RCX,[0x14ad21]
MOV ESI,0xfea
JMP 0x0011d92a
LAB_0011d8f4:
LEA RDI,[0x14a613]
LEA RDX,[0x14a65e]
LEA RCX,[0x14ad2f]
MOV ESI,0xfeb
JMP 0x0011d92a
LAB_0011d910:
LEA RDI,[0x14c7dc]
LEA RDX,[0x14a65e]
LEA RCX,[0x14c82c]
MOV ESI,0x70
LAB_0011d92a:
XOR EAX,EAX
CALL 0x00117c60
LAB_0011d931:
LEA RDI,[0x14a613]
LEA RDX,[0x14a65e]
LEA RCX,[0x14ad44]
MOV ESI,0xff7
JMP 0x0011d92a
|
void ggml_conv_2d_dw_direct
(int8 param_1,long param_2,uint *param_3,uint param_4,uint param_5,uint param_6
,uint param_7,uint param_8,uint param_9)
{
long lVar1;
uint *puVar2;
char *pcVar3;
long lVar4;
int8 uVar5;
char *pcVar6;
long local_58;
long local_50;
long local_48;
int8 local_40;
if (*(long *)(param_2 + 0x20) == 1) {
if (*(long *)(param_2 + 0x28) == *(long *)(param_3 + 8)) {
local_58 = (~((*(long *)(param_2 + 0x10) + -1) * (long)(int)param_8) +
(long)(int)(param_6 * 2) + *(long *)(param_3 + 4)) / (long)(int)param_4 + 1;
local_50 = (~((*(long *)(param_2 + 0x18) + -1) * (long)(int)param_9) +
(long)(int)(param_7 * 2) + *(long *)(param_3 + 6)) / (long)(int)param_5 + 1;
local_40 = *(int8 *)(param_3 + 10);
local_48 = *(long *)(param_2 + 0x28);
puVar2 = (uint *)ggml_new_tensor_impl(param_1,*param_3,4,&local_58,0,0);
if (((*(ulong *)(param_3 + 0x10) < *(ulong *)(param_3 + 0xc)) &&
(*(ulong *)(param_3 + 0xc) < *(ulong *)(param_3 + 0xe))) &&
(*(ulong *)(param_3 + 0x10) == *(ulong *)(type_traits + (ulong)*param_3 * 0x38 + 0x18))) {
if ((0x5f000003UL >> ((ulong)*puVar2 & 0x3f) & 1) == 0) {
pcVar6 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
pcVar3 = "ggml_blck_size(result->type) == 1";
uVar5 = 0xff7;
goto LAB_0011d92a;
}
lVar1 = *(long *)(type_traits + (ulong)*puVar2 * 0x38 + 0x18);
lVar4 = *(long *)(puVar2 + 8) * lVar1;
*(long *)(puVar2 + 0xc) = lVar4;
*(long *)(puVar2 + 0xe) = lVar4 * *(long *)(puVar2 + 4);
*(long *)(puVar2 + 0x10) = lVar1;
}
else if (puVar2 == (uint *)0x0) {
pcVar6 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-impl.h";
pcVar3 = "tensor != NULL";
uVar5 = 0x70;
goto LAB_0011d92a;
}
puVar2[0x15] = param_4;
puVar2[0x16] = param_5;
puVar2[0x17] = param_6;
puVar2[0x18] = param_7;
puVar2[0x19] = param_8;
puVar2[0x1a] = param_9;
puVar2[0x14] = 0x33;
*(long *)(puVar2 + 0x26) = param_2;
*(uint **)(puVar2 + 0x28) = param_3;
return;
}
pcVar6 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
pcVar3 = "a->ne[3] == b->ne[2]";
uVar5 = 0xfeb;
}
else {
pcVar6 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
pcVar3 = "a->ne[2] == 1";
uVar5 = 0xfea;
}
LAB_0011d92a:
/* WARNING: Subroutine does not return */
ggml_abort(pcVar6,uVar5,"GGML_ASSERT(%s) failed",pcVar3);
}
|
|
3,073 | LefDefParser::defwNetSubnetEnd() | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp | int
defwNetSubnetEnd()
{
defwFunc = DEFW_SUBNET; // Current function of writer
if (!defwFile)
return DEFW_UNINITIALIZED;
if ((defwState != DEFW_SUBNET) && // subnet does not have path
(defwState != DEFW_NET_OPTIONS)) // subnet has path and path just ended
return DEFW_BAD_ORDER;
defwState = DEFW_NET_OPTIONS;
return DEFW_OK;
} | O0 | cpp | LefDefParser::defwNetSubnetEnd():
leaq 0x105c1(%rip), %rax # 0x2b168
movl $0x3e, (%rax)
leaq 0x105a4(%rip), %rax # 0x2b158
cmpq $0x0, (%rax)
jne 0x1abc4
movl $0x1, -0x4(%rsp)
jmp 0x1abfb
leaq 0x10599(%rip), %rax # 0x2b164
cmpl $0x3e, (%rax)
je 0x1abe6
leaq 0x1058d(%rip), %rax # 0x2b164
cmpl $0x3b, (%rax)
je 0x1abe6
movl $0x2, -0x4(%rsp)
jmp 0x1abfb
leaq 0x10577(%rip), %rax # 0x2b164
movl $0x3b, (%rax)
movl $0x0, -0x4(%rsp)
movl -0x4(%rsp), %eax
retq
| _ZN12LefDefParser16defwNetSubnetEndEv:
lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc
mov dword ptr [rax], 3Eh ; '>'
lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile
cmp qword ptr [rax], 0
jnz short loc_1ABC4
mov [rsp+var_4], 1
jmp short loc_1ABFB
loc_1ABC4:
lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState
cmp dword ptr [rax], 3Eh ; '>'
jz short loc_1ABE6
lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState
cmp dword ptr [rax], 3Bh ; ';'
jz short loc_1ABE6
mov [rsp+var_4], 2
jmp short loc_1ABFB
loc_1ABE6:
lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState
mov dword ptr [rax], 3Bh ; ';'
mov [rsp+var_4], 0
loc_1ABFB:
mov eax, [rsp+var_4]
retn
| long long LefDefParser::defwNetSubnetEnd(LefDefParser *this)
{
LefDefParser::defwFunc = 62;
if ( LefDefParser::defwFile )
{
if ( LefDefParser::defwState == 62 || LefDefParser::defwState == 59 )
{
LefDefParser::defwState = 59;
return 0;
}
else
{
return 2;
}
}
else
{
return 1;
}
}
| defwNetSubnetEnd:
LEA RAX,[0x12b168]
MOV dword ptr [RAX],0x3e
LEA RAX,[0x12b158]
CMP qword ptr [RAX],0x0
JNZ 0x0011abc4
MOV dword ptr [RSP + -0x4],0x1
JMP 0x0011abfb
LAB_0011abc4:
LEA RAX,[0x12b164]
CMP dword ptr [RAX],0x3e
JZ 0x0011abe6
LEA RAX,[0x12b164]
CMP dword ptr [RAX],0x3b
JZ 0x0011abe6
MOV dword ptr [RSP + -0x4],0x2
JMP 0x0011abfb
LAB_0011abe6:
LEA RAX,[0x12b164]
MOV dword ptr [RAX],0x3b
MOV dword ptr [RSP + -0x4],0x0
LAB_0011abfb:
MOV EAX,dword ptr [RSP + -0x4]
RET
|
/* LefDefParser::defwNetSubnetEnd() */
int4 LefDefParser::defwNetSubnetEnd(void)
{
int4 local_4;
defwFunc = 0x3e;
if (defwFile == 0) {
local_4 = 1;
}
else if ((defwState == 0x3e) || (defwState == 0x3b)) {
defwState = 0x3b;
local_4 = 0;
}
else {
local_4 = 2;
}
return local_4;
}
|
|
3,074 | js_dtoa_infinite | bluesky950520[P]quickjs/quickjs.c | static JSValue js_dtoa_infinite(JSContext *ctx, double d)
{
// TODO(chqrlie) use atoms for NaN and Infinite?
if (isnan(d))
return js_new_string8(ctx, "NaN");
if (d < 0)
return js_new_string8(ctx, "-Infinity");
else
return js_new_string8(ctx, "Infinity");
} | O1 | c | js_dtoa_infinite:
ucomisd %xmm0, %xmm0
jp 0x3e2d3
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x3e2c2
leaq 0x60f07(%rip), %rsi # 0x9f1bf
movl $0x9, %edx
jmp 0x201dd
leaq 0x60ef7(%rip), %rsi # 0x9f1c0
movl $0x8, %edx
jmp 0x201dd
leaq 0x6238d(%rip), %rsi # 0xa0667
movl $0x3, %edx
jmp 0x201dd
| js_dtoa_infinite:
ucomisd xmm0, xmm0
jp short loc_3E2D3
xorpd xmm1, xmm1
ucomisd xmm1, xmm0
jbe short loc_3E2C2
lea rsi, aInfinity; "-Infinity"
mov edx, 9
jmp js_new_string8_len
loc_3E2C2:
lea rsi, aInfinity+1; "Infinity"
mov edx, 8
jmp js_new_string8_len
loc_3E2D3:
lea rsi, aDateValueIsNan+0Eh; "NaN"
mov edx, 3
jmp js_new_string8_len
| long long js_dtoa_infinite(long long a1, double a2)
{
if ( a2 >= 0.0 )
return js_new_string8_len(a1, (long long)"Infinity", 8u);
else
return js_new_string8_len(a1, (long long)"-Infinity", 9u);
}
| js_dtoa_infinite:
UCOMISD XMM0,XMM0
JP 0x0013e2d3
XORPD XMM1,XMM1
UCOMISD XMM1,XMM0
JBE 0x0013e2c2
LEA RSI,[0x19f1bf]
MOV EDX,0x9
JMP 0x001201dd
LAB_0013e2c2:
LEA RSI,[0x19f1c0]
MOV EDX,0x8
JMP 0x001201dd
LAB_0013e2d3:
LEA RSI,[0x1a0667]
MOV EDX,0x3
JMP 0x001201dd
|
void js_dtoa_infinite(double param_1,int8 param_2)
{
if (NAN(param_1)) {
js_new_string8_len(param_2,"NaN",3);
return;
}
if (param_1 < 0.0) {
js_new_string8_len(param_2,"-Infinity",9);
return;
}
js_new_string8_len(param_2,"Infinity",8);
return;
}
|
|
3,075 | js_dtoa_infinite | bluesky950520[P]quickjs/quickjs.c | static JSValue js_dtoa_infinite(JSContext *ctx, double d)
{
// TODO(chqrlie) use atoms for NaN and Infinite?
if (isnan(d))
return js_new_string8(ctx, "NaN");
if (d < 0)
return js_new_string8(ctx, "-Infinity");
else
return js_new_string8(ctx, "Infinity");
} | O2 | c | js_dtoa_infinite:
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
leaq 0x4f7f5(%rip), %rax # 0x8610f
leaq 0x4f7ef(%rip), %rcx # 0x86110
cmovaq %rax, %rcx
ucomisd %xmm0, %xmm0
leaq 0x50c71(%rip), %rsi # 0x875a1
cmovnpq %rcx, %rsi
jmp 0x21856
| js_dtoa_infinite:
xorpd xmm1, xmm1
ucomisd xmm1, xmm0
lea rax, aInfinity; "-Infinity"
lea rcx, aInfinity+1; "Infinity"
cmova rcx, rax
ucomisd xmm0, xmm0
lea rsi, aDateValueIsNan+0Eh; "NaN"
cmovnp rsi, rcx
jmp js_new_string8
| long long js_dtoa_infinite(long long a1, double a2)
{
char *v2; // rcx
v2 = "Infinity";
if ( a2 < 0.0 )
v2 = "-Infinity";
return js_new_string8(a1, (long long)v2);
}
| js_dtoa_infinite:
XORPD XMM1,XMM1
UCOMISD XMM1,XMM0
LEA RAX,[0x18610f]
LEA RCX,[0x186110]
CMOVA RCX,RAX
UCOMISD XMM0,XMM0
LEA RSI,[0x1875a1]
CMOVNP RSI,RCX
JMP 0x00121856
|
void js_dtoa_infinite(double param_1,int8 param_2)
{
char *pcVar1;
char *pcVar2;
pcVar1 = "Infinity";
if (param_1 < 0.0) {
pcVar1 = "-Infinity";
}
pcVar2 = "NaN";
if (!NAN(param_1)) {
pcVar2 = pcVar1;
}
js_new_string8(param_2,pcVar2);
return;
}
|
|
3,076 | ggml_compute_forward_conv_transpose_1d | monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c | static void ggml_compute_forward_conv_transpose_1d(
const struct ggml_compute_params * params,
struct ggml_tensor * dst) {
const struct ggml_tensor * src0 = dst->src[0];
switch (src0->type) {
case GGML_TYPE_F16:
{
ggml_compute_forward_conv_transpose_1d_f16_f32(params, dst);
} break;
case GGML_TYPE_F32:
{
ggml_compute_forward_conv_transpose_1d_f32(params, dst);
} break;
default:
{
GGML_ABORT("fatal error");
}
}
} | O0 | c | ggml_compute_forward_conv_transpose_1d:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x98(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movl (%rax), %eax
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x167dc
jmp 0x167c0
movl 0xc(%rsp), %eax
subl $0x1, %eax
jne 0x167ed
jmp 0x167cb
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x35190
jmp 0x16807
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x359f0
jmp 0x16807
leaq 0x9b366(%rip), %rdi # 0xb1b5a
movl $0x2694, %esi # imm = 0x2694
leaq 0x9b4c7(%rip), %rdx # 0xb1cc7
movb $0x0, %al
callq 0xd030
addq $0x28, %rsp
retq
nopl (%rax)
| ggml_compute_forward_conv_transpose_1d:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov rax, [rsp+28h+var_10]
mov rax, [rax+98h]
mov [rsp+28h+var_18], rax
mov rax, [rsp+28h+var_18]
mov eax, [rax]
mov [rsp+28h+var_1C], eax
test eax, eax
jz short loc_167DC
jmp short $+2
loc_167C0:
mov eax, [rsp+28h+var_1C]
sub eax, 1
jnz short loc_167ED
jmp short $+2
loc_167CB:
mov rdi, [rsp+28h+var_8]
mov rsi, [rsp+28h+var_10]
call ggml_compute_forward_conv_transpose_1d_f16_f32
jmp short loc_16807
loc_167DC:
mov rdi, [rsp+28h+var_8]
mov rsi, [rsp+28h+var_10]
call ggml_compute_forward_conv_transpose_1d_f32
jmp short loc_16807
loc_167ED:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 2694h
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_16807:
add rsp, 28h
retn
| double ggml_compute_forward_conv_transpose_1d(long long a1, long long a2)
{
double result; // xmm0_8
int v3; // [rsp+Ch] [rbp-1Ch]
v3 = **(_DWORD **)(a2 + 152);
if ( v3 )
{
if ( v3 == 1 )
ggml_compute_forward_conv_transpose_1d_f16_f32(a1, a2);
else
return ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c",
9876LL,
"fatal error");
}
else
{
ggml_compute_forward_conv_transpose_1d_f32(a1, a2);
}
return result;
}
| ggml_compute_forward_conv_transpose_1d:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0xc],EAX
TEST EAX,EAX
JZ 0x001167dc
JMP 0x001167c0
LAB_001167c0:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,0x1
JNZ 0x001167ed
JMP 0x001167cb
LAB_001167cb:
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x00135190
JMP 0x00116807
LAB_001167dc:
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x001359f0
JMP 0x00116807
LAB_001167ed:
LEA RDI,[0x1b1b5a]
MOV ESI,0x2694
LEA RDX,[0x1b1cc7]
MOV AL,0x0
CALL 0x0010d030
LAB_00116807:
ADD RSP,0x28
RET
|
void ggml_compute_forward_conv_transpose_1d(int8 param_1,long param_2)
{
if (**(int **)(param_2 + 0x98) == 0) {
ggml_compute_forward_conv_transpose_1d_f32(param_1,param_2);
}
else {
if (**(int **)(param_2 + 0x98) != 1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c"
,0x2694,"fatal error");
}
ggml_compute_forward_conv_transpose_1d_f16_f32(param_1,param_2);
}
return;
}
|
|
3,077 | mysql_rollback_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_rollback_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_rollback,
(parms->mysql),
parms->mysql,
my_bool,
r_my_bool)
} | O0 | c | mysql_rollback_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 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x22f10
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %cl
movq -0x20(%rbp), %rax
movb %cl, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mysql_rollback_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+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
call mysql_rollback
mov [rbp+var_11], al
mov cl, [rbp+var_11]
mov rax, [rbp+var_20]
mov [rax+8], cl
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| long long mysql_rollback_start_internal(long long *a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-20h]
v2 = *(_QWORD *)(*(_QWORD *)(*a1 + 1152) + 40LL);
*(_BYTE *)(v2 + 8) = mysql_rollback(*a1);
result = v2;
*(_DWORD *)v2 = 0;
return result;
}
| mysql_rollback_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 + 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 0x00122f10
MOV byte ptr [RBP + -0x11],AL
MOV CL,byte ptr [RBP + -0x11]
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x8],CL
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_rollback_start_internal(long *param_1)
{
int4 *puVar1;
int1 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_rollback(*param_1);
*(int1 *)(puVar1 + 2) = uVar2;
*puVar1 = 0;
return;
}
|
|
3,078 | uf_space_prespace | eloqsql/storage/maria/ma_packrec.c | static void uf_space_prespace(MARIA_COLUMNDEF *rec, MARIA_BIT_BUFF *bit_buff,
uchar *to, uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
bfill(to, (end-to), ' ');
else
{
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
bfill(to, spaces, ' ');
if (to+spaces != end)
decode_bytes(rec,bit_buff,to+spaces,end);
}
} | O0 | c | uf_space_prespace:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x4c2f7
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0x4c31b
jmp 0x4c339
movq -0x10(%rbp), %rdi
callq 0x4b3c0
movq -0x10(%rbp), %rax
movl $0x1f, 0x4(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
je 0x4c339
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x18(%rbp), %rax
subq %rax, %rdx
movl $0x20, %esi
callq 0x29280
jmp 0x4c3f1
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x24(%rcx), %eax
jb 0x4c37c
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x24(%rcx), %esi
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%rdx)
shrl %cl, %eax
movq -0x8(%rbp), %rcx
movl 0x24(%rcx), %ecx
movl %ecx, %edx
leaq 0x278cfc(%rip), %rcx # 0x2c5070
andl (%rcx,%rdx,4), %eax
movl %eax, -0x28(%rbp)
jmp 0x4c38f
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x24(%rax), %esi
callq 0x4ab70
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl %ecx, -0x24(%rbp)
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
jbe 0x4c3b1
movq -0x10(%rbp), %rax
movl $0x1, 0x28(%rax)
jmp 0x4c3f1
movq -0x18(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
movl $0x20, %esi
callq 0x29280
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
je 0x4c3ef
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x24(%rbp), %eax
addq %rax, %rdx
movq -0x20(%rbp), %rcx
callq 0x4b700
jmp 0x4c3f1
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| uf_space_prespace:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_10]
cmp dword ptr [rax+4], 0
jz short loc_4C2F7
mov rax, [rbp+var_10]
mov eax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
add ecx, 0FFFFFFFFh
mov [rdx+4], ecx
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_4C31B
jmp short loc_4C339
loc_4C2F7:
mov rdi, [rbp+var_10]
call fill_buffer
mov rax, [rbp+var_10]
mov dword ptr [rax+4], 1Fh
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 80000000h
cmp eax, 0
jz short loc_4C339
loc_4C31B:
mov rdi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rax, [rbp+var_18]
sub rdx, rax
mov esi, 20h ; ' '
call _memset
jmp loc_4C3F1
loc_4C339:
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov rcx, [rbp+var_8]
cmp eax, [rcx+24h]
jb short loc_4C37C
mov rax, [rbp+var_10]
mov eax, [rax]
mov rcx, [rbp+var_8]
mov esi, [rcx+24h]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
sub ecx, esi
mov [rdx+4], ecx
shr eax, cl
mov rcx, [rbp+var_8]
mov ecx, [rcx+24h]
mov edx, ecx
lea rcx, mask
and eax, [rcx+rdx*4]
mov [rbp+var_28], eax
jmp short loc_4C38F
loc_4C37C:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov esi, [rax+24h]
call fill_and_get_bits
mov [rbp+var_28], eax
loc_4C38F:
mov ecx, [rbp+var_28]
mov [rbp+var_24], ecx
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
cmp rax, [rbp+var_20]
jbe short loc_4C3B1
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 1
jmp short loc_4C3F1
loc_4C3B1:
mov rdi, [rbp+var_18]
mov eax, [rbp+var_24]
mov edx, eax
mov esi, 20h ; ' '
call _memset
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
add rax, rcx
cmp rax, [rbp+var_20]
jz short loc_4C3EF
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov eax, [rbp+var_24]
add rdx, rax
mov rcx, [rbp+var_20]
call decode_bytes
loc_4C3EF:
jmp short $+2
loc_4C3F1:
add rsp, 30h
pop rbp
retn
| long long uf_space_prespace(long long a1, int *a2, long long a3, _BYTE *a4)
{
int v4; // eax
int v5; // ecx
long long result; // rax
unsigned int v7; // eax
int v8; // ecx
unsigned int bits; // [rsp+8h] [rbp-28h]
if ( a2[1] )
{
v4 = *a2;
v5 = a2[1] - 1;
a2[1] = v5;
if ( ((1 << v5) & v4) == 0 )
goto LABEL_6;
return memset(a3, 32LL, &a4[-a3]);
}
fill_buffer((long long)a2);
a2[1] = 31;
if ( *a2 < 0 )
return memset(a3, 32LL, &a4[-a3]);
LABEL_6:
if ( (unsigned int)a2[1] < *(_DWORD *)(a1 + 36) )
{
bits = fill_and_get_bits(a2, *(_DWORD *)(a1 + 36));
}
else
{
v7 = *a2;
v8 = a2[1] - *(_DWORD *)(a1 + 36);
a2[1] = v8;
bits = mask[*(unsigned int *)(a1 + 36)] & (v7 >> v8);
}
if ( (unsigned long long)bits + a3 <= (unsigned long long)a4 )
{
memset(a3, 32LL, bits);
result = bits + a3;
if ( (_BYTE *)result != a4 )
return decode_bytes(a1, (long long)a2, (_BYTE *)(bits + a3), a4);
}
else
{
result = (long long)a2;
a2[10] = 1;
}
return result;
}
| uf_space_prespace:
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
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x4],0x0
JZ 0x0014c2f7
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
ADD ECX,-0x1
MOV dword ptr [RDX + 0x4],ECX
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JNZ 0x0014c31b
JMP 0x0014c339
LAB_0014c2f7:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0014b3c0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],0x1f
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
AND EAX,0x80000000
CMP EAX,0x0
JZ 0x0014c339
LAB_0014c31b:
MOV RDI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x18]
SUB RDX,RAX
MOV ESI,0x20
CALL 0x00129280
JMP 0x0014c3f1
LAB_0014c339:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x24]
JC 0x0014c37c
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RCX + 0x24]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
SUB ECX,ESI
MOV dword ptr [RDX + 0x4],ECX
SHR EAX,CL
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x24]
MOV EDX,ECX
LEA RCX,[0x3c5070]
AND EAX,dword ptr [RCX + RDX*0x4]
MOV dword ptr [RBP + -0x28],EAX
JMP 0x0014c38f
LAB_0014c37c:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x24]
CALL 0x0014ab70
MOV dword ptr [RBP + -0x28],EAX
LAB_0014c38f:
MOV ECX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x0014c3b1
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],0x1
JMP 0x0014c3f1
LAB_0014c3b1:
MOV RDI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,EAX
MOV ESI,0x20
CALL 0x00129280
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x24]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x0014c3ef
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x24]
ADD RDX,RAX
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x0014b700
LAB_0014c3ef:
JMP 0x0014c3f1
LAB_0014c3f1:
ADD RSP,0x30
POP RBP
RET
|
void uf_space_prespace(long param_1,uint *param_2,void *param_3,ulong param_4)
{
uint uVar1;
uint local_30;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar1 = *param_2 & 0x80000000;
}
else {
uVar1 = param_2[1];
param_2[1] = uVar1 - 1;
uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f);
}
if (uVar1 == 0) {
if (param_2[1] < *(uint *)(param_1 + 0x24)) {
local_30 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x24));
}
else {
uVar1 = param_2[1] - *(int *)(param_1 + 0x24);
param_2[1] = uVar1;
local_30 = *param_2 >> ((byte)uVar1 & 0x1f) &
*(uint *)(mask + (ulong)*(uint *)(param_1 + 0x24) * 4);
}
if (param_4 < (long)param_3 + (ulong)local_30) {
param_2[10] = 1;
}
else {
memset(param_3,0x20,(ulong)local_30);
if ((long)param_3 + (ulong)local_30 != param_4) {
decode_bytes(param_1,param_2,(long)param_3 + (ulong)local_30,param_4);
}
}
}
else {
memset(param_3,0x20,param_4 - (long)param_3);
}
return;
}
|
|
3,079 | fmt::v10::appender fmt::v10::detail::write_significand<char, fmt::v10::appender, unsigned int, fmt::v10::detail::digit_grouping<char>>(fmt::v10::appender, unsigned int, int, int, fmt::v10::detail::digit_grouping<char> const&) | aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h | FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
int significand_size, int exponent,
const Grouping& grouping) -> OutputIt {
if (!grouping.has_separator()) {
out = write_significand<Char>(out, significand, significand_size);
return detail::fill_n(out, exponent, static_cast<Char>('0'));
}
auto buffer = memory_buffer();
write_significand<char>(appender(buffer), significand, significand_size);
detail::fill_n(appender(buffer), exponent, '0');
return grouping.apply(out, string_view(buffer.data(), buffer.size()));
} | O3 | c | fmt::v10::appender fmt::v10::detail::write_significand<char, fmt::v10::appender, unsigned int, fmt::v10::detail::digit_grouping<char>>(fmt::v10::appender, unsigned int, int, int, fmt::v10::detail::digit_grouping<char> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x238, %rsp # imm = 0x238
movl %ecx, %ebp
movq %rdi, %rbx
cmpq $0x0, 0x28(%r8)
je 0x9f8fc
movq %r8, %r14
leaq 0x40(%rsp), %r15
movq $0x0, -0x10(%r15)
leaq 0x28256c(%rip), %rax # 0x321df0
movq %rax, -0x20(%r15)
movq %r15, -0x18(%r15)
movq $0x1f4, -0x8(%r15) # imm = 0x1F4
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movl $0x0, 0x10(%rdi)
callq 0x99525
movq %rsp, %rdi
leaq 0x20(%rsp), %rax
movq %rdx, %rsi
movq %rax, %rdx
callq 0x9931e
movq %rsp, %rdx
movb $0x30, (%rdx)
leaq 0x20(%rsp), %rdi
movl %ebp, %esi
callq 0x9dd7c
movq 0x28(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9c09a
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x9f93c
movq 0x38(%rsp), %rsi
callq 0x927a0
jmp 0x9f93c
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r14
movaps %xmm0, (%r14)
movl $0x0, 0x10(%r14)
movq %r14, %rdi
callq 0x99525
movq %r14, %rdi
movq %rdx, %rsi
movq %rbx, %rdx
callq 0x9931e
movb $0x30, (%r14)
leaq 0x20(%rsp), %rdx
movq %rax, %rdi
movl %ebp, %esi
callq 0x9dd7c
movq %rax, %rbx
movq %rbx, %rax
addq $0x238, %rsp # imm = 0x238
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9f94f
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x9f966
movq 0x38(%rsp), %rsi
callq 0x927a0
movq %rbx, %rdi
callq 0x945e0
| _ZN3fmt3v106detail17write_significandIcNS0_8appenderEmNS1_14digit_groupingIcEEEET0_S6_T1_iiRKT2_:
push rbp
push r15
push r14
push rbx
sub rsp, 238h
mov ebp, ecx
mov rbx, rdi
cmp qword ptr [r8+28h], 0
jz loc_9F8FC
mov r14, r8
lea r15, [rsp+258h+var_218]
mov qword ptr [r15-10h], 0
lea rax, off_321DF0
mov [r15-20h], rax
mov [r15-18h], r15
mov qword ptr [r15-8], 1F4h
xorps xmm0, xmm0
mov rdi, rsp
movaps xmmword ptr [rdi], xmm0
mov dword ptr [rdi+10h], 0
call _ZN3fmt3v106detail14format_decimalIcmEENS1_21format_decimal_resultIPT_EES5_T0_i; fmt::v10::detail::format_decimal<char,ulong>(char *,ulong,int)
mov rdi, rsp
lea rax, [rsp+258h+var_238]
mov rsi, rdx
mov rdx, rax
call _ZN3fmt3v106detail17copy_str_noinlineIcPcNS0_8appenderEEET1_T0_S6_S5_; fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>(char *,char *,fmt::v10::appender)
mov rdx, rsp
mov byte ptr [rdx], 30h ; '0'
lea rdi, [rsp+258h+var_238]
mov esi, ebp
call _ZN3fmt3v106detail6fill_nINS0_8appenderEicEET_S4_T0_RKT1_; fmt::v10::detail::fill_n<fmt::v10::appender,int,char>(fmt::v10::appender,int,char const&)
mov rdx, [rsp+258h+var_230]; int
mov rcx, qword ptr [rsp+258h+var_228]; int
mov rdi, r14; int
mov rsi, rbx; int
call _ZNK3fmt3v106detail14digit_groupingIcE5applyINS0_8appenderEcEET_S6_NS0_17basic_string_viewIT0_EE; fmt::v10::detail::digit_grouping<char>::apply<fmt::v10::appender,char>(fmt::v10::appender,fmt::v10::basic_string_view<char>)
mov rbx, rax
mov rdi, [rsp+258h+var_230]; void *
cmp rdi, r15
jz short loc_9F93C
mov rsi, [rsp+258h+var_220]; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9F93C
loc_9F8FC:
xorps xmm0, xmm0
lea r14, [rsp+258h+var_238]
movaps xmmword ptr [r14], xmm0
mov dword ptr [r14+10h], 0
mov rdi, r14
call _ZN3fmt3v106detail14format_decimalIcmEENS1_21format_decimal_resultIPT_EES5_T0_i; fmt::v10::detail::format_decimal<char,ulong>(char *,ulong,int)
mov rdi, r14
mov rsi, rdx
mov rdx, rbx
call _ZN3fmt3v106detail17copy_str_noinlineIcPcNS0_8appenderEEET1_T0_S6_S5_; fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>(char *,char *,fmt::v10::appender)
mov byte ptr [r14], 30h ; '0'
lea rdx, [rsp+258h+var_238]
mov rdi, rax
mov esi, ebp
call _ZN3fmt3v106detail6fill_nINS0_8appenderEicEET_S4_T0_RKT1_; fmt::v10::detail::fill_n<fmt::v10::appender,int,char>(fmt::v10::appender,int,char const&)
mov rbx, rax
loc_9F93C:
mov rax, rbx
add rsp, 238h
pop rbx
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_9F94F:
mov rbx, rax
mov rdi, [rsp+arg_20]; void *
cmp rdi, r15
jz short loc_9F966
mov rsi, [rsp+arg_30]; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9F966:
mov rdi, rbx
call __Unwind_Resume
| long long fmt::v10::detail::write_significand<char,fmt::v10::appender,unsigned long,fmt::v10::detail::digit_grouping<char>>(
long long a1,
unsigned long long a2,
int a3,
int a4,
long long a5)
{
long long v7; // rdx
long long v8; // rbx
long long v9; // rdx
long long v10; // rax
__int128 v12; // [rsp+0h] [rbp-258h] BYREF
int v13; // [rsp+10h] [rbp-248h]
__int128 v14; // [rsp+20h] [rbp-238h] BYREF
int v15[2]; // [rsp+30h] [rbp-228h]
unsigned long long v16; // [rsp+38h] [rbp-220h]
_BYTE v17[536]; // [rsp+40h] [rbp-218h] BYREF
if ( *(_QWORD *)(a5 + 40) )
{
*(_QWORD *)v15 = 0LL;
*(_QWORD *)&v14 = &off_321DF0;
*((_QWORD *)&v14 + 1) = v17;
v16 = 500LL;
v12 = 0LL;
v13 = 0;
fmt::v10::detail::format_decimal<char,unsigned long>((long long)&v12, a2, a3);
fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>((long long)&v12, v7, (long long)&v14);
LOBYTE(v12) = 48;
fmt::v10::detail::fill_n<fmt::v10::appender,int,char>((long long)&v14, a4, (char *)&v12);
v8 = fmt::v10::detail::digit_grouping<char>::apply<fmt::v10::appender,char>(a5, a1, *((long long *)&v14 + 1), v15[0]);
if ( *((_BYTE **)&v14 + 1) != v17 )
operator delete(*((void **)&v14 + 1), v16);
}
else
{
v14 = 0LL;
v15[0] = 0;
fmt::v10::detail::format_decimal<char,unsigned long>((long long)&v14, a2, a3);
v10 = fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>((long long)&v14, v9, a1);
LOBYTE(v14) = 48;
return fmt::v10::detail::fill_n<fmt::v10::appender,int,char>(v10, a4, (char *)&v14);
}
return v8;
}
| write_significand<char,fmt::v10::appender,unsigned_long,fmt::v10::detail::digit_grouping<char>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x238
MOV EBP,ECX
MOV RBX,RDI
CMP qword ptr [R8 + 0x28],0x0
JZ 0x0019f8fc
MOV R14,R8
LEA R15,[RSP + 0x40]
MOV qword ptr [R15 + -0x10],0x0
LEA RAX,[0x421df0]
MOV qword ptr [R15 + -0x20],RAX
MOV qword ptr [R15 + -0x18],R15
MOV qword ptr [R15 + -0x8],0x1f4
XORPS XMM0,XMM0
MOV RDI,RSP
MOVAPS xmmword ptr [RDI],XMM0
MOV dword ptr [RDI + 0x10],0x0
LAB_0019f8a4:
CALL 0x00199525
MOV RDI,RSP
LEA RAX,[RSP + 0x20]
MOV RSI,RDX
MOV RDX,RAX
CALL 0x0019931e
MOV RDX,RSP
MOV byte ptr [RDX],0x30
LAB_0019f8c2:
LEA RDI,[RSP + 0x20]
MOV ESI,EBP
CALL 0x0019dd7c
MOV RDX,qword ptr [RSP + 0x28]
MOV RCX,qword ptr [RSP + 0x30]
LAB_0019f8d8:
MOV RDI,R14
MOV RSI,RBX
CALL 0x0019c09a
LAB_0019f8e3:
MOV RBX,RAX
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R15
JZ 0x0019f93c
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x001927a0
JMP 0x0019f93c
LAB_0019f8fc:
XORPS XMM0,XMM0
LEA R14,[RSP + 0x20]
MOVAPS xmmword ptr [R14],XMM0
MOV dword ptr [R14 + 0x10],0x0
MOV RDI,R14
CALL 0x00199525
MOV RDI,R14
MOV RSI,RDX
MOV RDX,RBX
CALL 0x0019931e
MOV byte ptr [R14],0x30
LEA RDX,[RSP + 0x20]
MOV RDI,RAX
MOV ESI,EBP
CALL 0x0019dd7c
MOV RBX,RAX
LAB_0019f93c:
MOV RAX,RBX
ADD RSP,0x238
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* fmt::v10::appender fmt::v10::detail::write_significand<char, fmt::v10::appender, unsigned long,
fmt::v10::detail::digit_grouping<char> >(fmt::v10::appender, unsigned long, int, int,
fmt::v10::detail::digit_grouping<char> const&) */
int8
fmt::v10::detail::
write_significand<char,fmt::v10::appender,unsigned_long,fmt::v10::detail::digit_grouping<char>>
(int8 param_1,ulong param_2,int param_3,int4 param_4,long param_5)
{
int8 uVar1;
int8 extraout_RDX;
int8 extraout_RDX_00;
char local_258 [32];
int **local_238;
int1 *puStack_230;
ulong local_228;
ulong local_220;
int1 local_218 [504];
if (*(long *)(param_5 + 0x28) == 0) {
local_238 = (int **)0x0;
puStack_230 = (int1 *)0x0;
local_228 = local_228 & 0xffffffff00000000;
format_decimal<char,unsigned_long>((char *)&local_238,param_2,param_3);
uVar1 = copy_str_noinline<char,char*,fmt::v10::appender>(&local_238,extraout_RDX_00,param_1);
local_238 = (int **)CONCAT71(local_238._1_7_,0x30);
uVar1 = fill_n<fmt::v10::appender,int,char>(uVar1,param_4,&local_238);
}
else {
local_228 = 0;
local_238 = &PTR_grow_00421df0;
local_220 = 500;
local_258[0] = '\0';
local_258[1] = '\0';
local_258[2] = '\0';
local_258[3] = '\0';
local_258[4] = '\0';
local_258[5] = '\0';
local_258[6] = '\0';
local_258[7] = '\0';
local_258[8] = '\0';
local_258[9] = '\0';
local_258[10] = '\0';
local_258[0xb] = '\0';
local_258[0xc] = '\0';
local_258[0xd] = '\0';
local_258[0xe] = '\0';
local_258[0xf] = '\0';
local_258[0x10] = '\0';
local_258[0x11] = '\0';
local_258[0x12] = '\0';
local_258[0x13] = '\0';
puStack_230 = local_218;
/* try { // try from 0019f8a4 to 0019f8bb has its CatchHandler @ 0019f94f */
format_decimal<char,unsigned_long>(local_258,param_2,param_3);
copy_str_noinline<char,char*,fmt::v10::appender>(local_258,extraout_RDX,&local_238);
local_258[0] = 0x30;
/* try { // try from 0019f8c2 to 0019f8cd has its CatchHandler @ 0019f94d */
fill_n<fmt::v10::appender,int,char>(&local_238,param_4);
/* try { // try from 0019f8d8 to 0019f8e2 has its CatchHandler @ 0019f94f */
uVar1 = digit_grouping<char>::apply<fmt::v10::appender,char>
(param_5,param_1,puStack_230,local_228);
if (puStack_230 != local_218) {
operator_delete(puStack_230,local_220);
}
}
return uVar1;
}
|
|
3,080 | YogaTest_aspect_ratio_with_measure_func_Test::~YogaTest_aspect_ratio_with_measure_func_Test() | yoga-mod/tests/YGAspectRatioTest.cpp | TEST(YogaTest, aspect_ratio_with_measure_func) {
YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
YGNodeRef root_child0 = YGNodeNew();
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
ASSERT_EQ(0, YGNodeLayoutGetLeft(root_child0));
ASSERT_EQ(0, YGNodeLayoutGetTop(root_child0));
ASSERT_EQ(50, YGNodeLayoutGetWidth(root_child0));
ASSERT_EQ(50, YGNodeLayoutGetHeight(root_child0));
YGNodeFreeRecursive(root);
} | O0 | cpp | YogaTest_aspect_ratio_with_measure_func_Test::~YogaTest_aspect_ratio_with_measure_func_Test():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x704850
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _ZN44YogaTest_aspect_ratio_with_measure_func_TestD2Ev:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
call _ZN7testing4TestD2Ev; testing::Test::~Test()
add rsp, 10h
pop rbp
retn
| void YogaTest_aspect_ratio_with_measure_func_Test::~YogaTest_aspect_ratio_with_measure_func_Test(
YogaTest_aspect_ratio_with_measure_func_Test *this)
{
testing::Test::~Test(this);
}
| ~YogaTest_aspect_ratio_with_measure_func_Test:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00804850
ADD RSP,0x10
POP RBP
RET
|
/* YogaTest_aspect_ratio_with_measure_func_Test::~YogaTest_aspect_ratio_with_measure_func_Test() */
void __thiscall
YogaTest_aspect_ratio_with_measure_func_Test::~YogaTest_aspect_ratio_with_measure_func_Test
(YogaTest_aspect_ratio_with_measure_func_Test *this)
{
testing::Test::~Test((Test *)this);
return;
}
|
|
3,081 | init_weight_level | eloqsql/strings/ctype-uca.c | static my_bool
init_weight_level(MY_CHARSET_LOADER *loader, MY_COLL_RULES *rules,
MY_UCA_WEIGHT_LEVEL *dst, const MY_UCA_WEIGHT_LEVEL *src)
{
MY_COLL_RULE *r, *rlast;
int ncontractions= 0;
size_t i, npages= (src->maxchar + 1) / 256;
dst->maxchar= src->maxchar;
dst->levelno= src->levelno;
if (check_rules(loader, rules, dst, src))
return TRUE;
/* Allocate memory for pages and their lengths */
if (!(dst->lengths= (uchar *) (loader->once_alloc)(npages)) ||
!(dst->weights= (uint16 **) (loader->once_alloc)(npages *
sizeof(uint16 *))))
return TRUE;
/* Copy pages lengths and page pointers from the default UCA weights */
memcpy(dst->lengths, src->lengths, npages);
memcpy(dst->weights, src->weights, npages * sizeof(uint16 *));
/*
Calculate maximum lengths for the pages which will be overwritten.
Mark pages that will be otherwriten as NULL.
We'll allocate their own memory.
*/
for (r= rules->rule, rlast= rules->rule + rules->nrules; r < rlast; r++)
{
if (!r->curr[1]) /* If not a contraction */
{
uint pagec= (r->curr[0] >> 8);
if (r->base[1]) /* Expansion */
{
/* Reserve space for maximum possible length */
dst->lengths[pagec]= MY_UCA_MAX_WEIGHT_SIZE;
}
else
{
/*
Not an expansion and not a contraction.
The page corresponding to r->curr[0] in "dst"
will need at least the same amount of weights
that r->base[0] has in "src".
*/
uint wsize= my_weight_size_on_page(src, r->base[0] >> 8);
if (dst->lengths[pagec] < wsize)
dst->lengths[pagec]= wsize;
}
dst->weights[pagec]= NULL; /* Mark that we'll overwrite this page */
}
else
ncontractions++;
}
ncontractions += (int)src->contractions.nitems;
if ((my_uca_generate_pages(loader, dst, src, (uint)npages)))
return TRUE;
if (ncontractions)
{
if (my_uca_alloc_contractions(&dst->contractions, loader, ncontractions))
return TRUE;
}
/*
Preparatory step is done at this point.
Now we have memory allocated for the pages that we'll overwrite,
and for contractions, including previous context contractions.
Also, for the pages that we'll overwrite, we have copied default weights.
Now iterate through the rules, overwrite weights for the characters
that appear in the rules, and put all contractions into contraction list.
*/
for (r= rules->rule; r < rlast; r++)
{
if (apply_one_rule(loader, rules, r, dst))
return TRUE;
}
/*
Add built-in contractions (e.g. for Thai)
*/
for (i= 0; i != src->contractions.nitems; i++)
{
MY_CONTRACTION *item= &src->contractions.item[i];
/*
TODO: calculate length from item->ch.
Generally contractions can consist of more than 2 characters.
*/
uint length= 2;
uint16 *weights= my_uca_init_one_contraction(&dst->contractions,
item->ch, length,
item->with_context);
memcpy(weights, item->weight, length * sizeof(uint16));
weights[length]= 0;
}
return FALSE;
} | O0 | c | init_weight_level:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x0, -0x3c(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
addq $0x1, %rax
shrq $0x8, %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
movl 0x30(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0xae420
cmpl $0x0, %eax
je 0xacb41
movb $0x1, -0x1(%rbp)
jmp 0xacdd5
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x50(%rbp), %rdi
callq *%rax
movq -0x20(%rbp), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, %rax
je 0xacb83
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x50(%rbp), %rdi
shlq $0x3, %rdi
callq *%rax
movq -0x20(%rbp), %rcx
movq %rax, 0x10(%rcx)
cmpq $0x0, %rax
jne 0xacb8c
movb $0x1, -0x1(%rbp)
jmp 0xacdd5
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x50(%rbp), %rdx
callq 0x282b0
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x50(%rbp), %rdx
shlq $0x3, %rdx
callq 0x282b0
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x18(%rbp), %rcx
imulq $0xa0, 0x10(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0xacca6
movq -0x30(%rbp), %rax
cmpq $0x0, 0x58(%rax)
jne 0xacc88
movq -0x30(%rbp), %rax
movq 0x50(%rax), %rax
shrq $0x8, %rax
movl %eax, -0x54(%rbp)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0xacc31
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x54(%rbp), %ecx
movb $0x9, (%rax,%rcx)
jmp 0xacc73
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rax
movq (%rax), %rax
shrq $0x8, %rax
movl %eax, %esi
callq 0xae510
movl %eax, -0x58(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x54(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl -0x58(%rbp), %eax
jae 0xacc71
movl -0x58(%rbp), %eax
movb %al, %dl
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x54(%rbp), %ecx
movb %dl, (%rax,%rcx)
jmp 0xacc73
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x54(%rbp), %ecx
movq $0x0, (%rax,%rcx,8)
jmp 0xacc91
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xacc93
movq -0x30(%rbp), %rax
addq $0xa0, %rax
movq %rax, -0x30(%rbp)
jmp 0xacbe9
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x50(%rbp), %rax
movl %eax, %ecx
callq 0xae560
cmpb $0x0, %al
je 0xaccd8
movb $0x1, -0x1(%rbp)
jmp 0xacdd5
cmpl $0x0, -0x3c(%rbp)
je 0xacd02
movq -0x20(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rsi
movslq -0x3c(%rbp), %rdx
callq 0xae5f0
cmpb $0x0, %al
je 0xacd00
movb $0x1, -0x1(%rbp)
jmp 0xacdd5
jmp 0xacd02
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0xacd4c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xae690
cmpb $0x0, %al
je 0xacd3a
movb $0x1, -0x1(%rbp)
jmp 0xacdd5
jmp 0xacd3c
movq -0x30(%rbp), %rax
addq $0xa0, %rax
movq %rax, -0x30(%rbp)
jmp 0xacd0e
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq -0x28(%rbp), %rcx
cmpq 0x18(%rcx), %rax
je 0xacdd1
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
imulq $0x58, -0x48(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movl $0x2, -0x64(%rbp)
movq -0x20(%rbp), %rdi
addq $0x18, %rdi
movq -0x60(%rbp), %rsi
movl -0x64(%rbp), %edx
movq -0x60(%rbp), %rax
movsbl 0x52(%rax), %ecx
callq 0xae870
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdi
movq -0x60(%rbp), %rsi
addq $0x30, %rsi
movl -0x64(%rbp), %eax
movl %eax, %edx
shlq %rdx
callq 0x282b0
movq -0x70(%rbp), %rax
movl -0x64(%rbp), %ecx
movw $0x0, (%rax,%rcx,2)
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0xacd54
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x70, %rsp
popq %rbp
retq
nop
| init_weight_level:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_3C], 0
mov rax, [rbp+var_28]
mov rax, [rax]
add rax, 1
shr rax, 8
mov [rbp+var_50], rax
mov rax, [rbp+var_28]
mov rcx, [rax]
mov rax, [rbp+var_20]
mov [rax], rcx
mov rax, [rbp+var_28]
mov ecx, [rax+30h]
mov rax, [rbp+var_20]
mov [rax+30h], ecx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
call check_rules
cmp eax, 0
jz short loc_ACB41
mov [rbp+var_1], 1
jmp loc_ACDD5
loc_ACB41:
mov rax, [rbp+var_10]
mov rax, [rax+80h]
mov rdi, [rbp+var_50]
call rax
mov rcx, [rbp+var_20]
mov [rcx+8], rax
cmp rax, 0
jz short loc_ACB83
mov rax, [rbp+var_10]
mov rax, [rax+80h]
mov rdi, [rbp+var_50]
shl rdi, 3
call rax
mov rcx, [rbp+var_20]
mov [rcx+10h], rax
cmp rax, 0
jnz short loc_ACB8C
loc_ACB83:
mov [rbp+var_1], 1
jmp loc_ACDD5
loc_ACB8C:
mov rax, [rbp+var_20]
mov rdi, [rax+8]
mov rax, [rbp+var_28]
mov rsi, [rax+8]
mov rdx, [rbp+var_50]
call _memcpy
mov rax, [rbp+var_20]
mov rdi, [rax+10h]
mov rax, [rbp+var_28]
mov rsi, [rax+10h]
mov rdx, [rbp+var_50]
shl rdx, 3
call _memcpy
mov rax, [rbp+var_18]
mov rax, [rax+20h]
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
mov rax, [rax+20h]
mov rcx, [rbp+var_18]
imul rcx, [rcx+10h], 0A0h
add rax, rcx
mov [rbp+var_38], rax
loc_ACBE9:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb loc_ACCA6
mov rax, [rbp+var_30]
cmp qword ptr [rax+58h], 0
jnz loc_ACC88
mov rax, [rbp+var_30]
mov rax, [rax+50h]
shr rax, 8
mov [rbp+var_54], eax
mov rax, [rbp+var_30]
cmp qword ptr [rax+8], 0
jz short loc_ACC31
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov ecx, [rbp+var_54]
mov byte ptr [rax+rcx], 9
jmp short loc_ACC73
loc_ACC31:
mov rdi, [rbp+var_28]
mov rax, [rbp+var_30]
mov rax, [rax]
shr rax, 8
mov esi, eax
call my_weight_size_on_page
mov [rbp+var_58], eax
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov ecx, [rbp+var_54]
movzx eax, byte ptr [rax+rcx]
cmp eax, [rbp+var_58]
jnb short loc_ACC71
mov eax, [rbp+var_58]
mov dl, al
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov ecx, [rbp+var_54]
mov [rax+rcx], dl
loc_ACC71:
jmp short $+2
loc_ACC73:
mov rax, [rbp+var_20]
mov rax, [rax+10h]
mov ecx, [rbp+var_54]
mov qword ptr [rax+rcx*8], 0
jmp short loc_ACC91
loc_ACC88:
mov eax, [rbp+var_3C]
add eax, 1
mov [rbp+var_3C], eax
loc_ACC91:
jmp short $+2
loc_ACC93:
mov rax, [rbp+var_30]
add rax, 0A0h
mov [rbp+var_30], rax
jmp loc_ACBE9
loc_ACCA6:
mov rax, [rbp+var_28]
mov rax, [rax+18h]
add eax, [rbp+var_3C]
mov [rbp+var_3C], eax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rax, [rbp+var_50]
mov ecx, eax
call my_uca_generate_pages
cmp al, 0
jz short loc_ACCD8
mov [rbp+var_1], 1
jmp loc_ACDD5
loc_ACCD8:
cmp [rbp+var_3C], 0
jz short loc_ACD02
mov rdi, [rbp+var_20]
add rdi, 18h
mov rsi, [rbp+var_10]
movsxd rdx, [rbp+var_3C]
call my_uca_alloc_contractions
cmp al, 0
jz short loc_ACD00
mov [rbp+var_1], 1
jmp loc_ACDD5
loc_ACD00:
jmp short $+2
loc_ACD02:
mov rax, [rbp+var_18]
mov rax, [rax+20h]
mov [rbp+var_30], rax
loc_ACD0E:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb short loc_ACD4C
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_30]
mov rcx, [rbp+var_20]
call apply_one_rule
cmp al, 0
jz short loc_ACD3A
mov [rbp+var_1], 1
jmp loc_ACDD5
loc_ACD3A:
jmp short $+2
loc_ACD3C:
mov rax, [rbp+var_30]
add rax, 0A0h
mov [rbp+var_30], rax
jmp short loc_ACD0E
loc_ACD4C:
mov [rbp+var_48], 0
loc_ACD54:
mov rax, [rbp+var_48]
mov rcx, [rbp+var_28]
cmp rax, [rcx+18h]
jz short loc_ACDD1
mov rax, [rbp+var_28]
mov rax, [rax+20h]
imul rcx, [rbp+var_48], 58h ; 'X'
add rax, rcx
mov [rbp+var_60], rax
mov [rbp+var_64], 2
mov rdi, [rbp+var_20]
add rdi, 18h
mov rsi, [rbp+var_60]
mov edx, [rbp+var_64]
mov rax, [rbp+var_60]
movsx ecx, byte ptr [rax+52h]
call my_uca_init_one_contraction
mov [rbp+var_70], rax
mov rdi, [rbp+var_70]
mov rsi, [rbp+var_60]
add rsi, 30h ; '0'
mov eax, [rbp+var_64]
mov edx, eax
shl rdx, 1
call _memcpy
mov rax, [rbp+var_70]
mov ecx, [rbp+var_64]
mov word ptr [rax+rcx*2], 0
mov rax, [rbp+var_48]
add rax, 1
mov [rbp+var_48], rax
jmp short loc_ACD54
loc_ACDD1:
mov [rbp+var_1], 0
loc_ACDD5:
mov al, [rbp+var_1]
add rsp, 70h
pop rbp
retn
| char init_weight_level(long long a1, long long a2, long long a3, long long a4)
{
long long v4; // rax
long long v5; // rax
long long inited; // [rsp+0h] [rbp-70h]
long long v8; // [rsp+10h] [rbp-60h]
unsigned int v9; // [rsp+18h] [rbp-58h]
unsigned int v10; // [rsp+1Ch] [rbp-54h]
unsigned long long v11; // [rsp+20h] [rbp-50h]
long long j; // [rsp+28h] [rbp-48h]
int v13; // [rsp+34h] [rbp-3Ch]
int v14; // [rsp+34h] [rbp-3Ch]
_QWORD *v15; // [rsp+38h] [rbp-38h]
_QWORD *v16; // [rsp+40h] [rbp-30h]
unsigned long long i; // [rsp+40h] [rbp-30h]
v13 = 0;
v11 = (unsigned long long)(*(_QWORD *)a4 + 1LL) >> 8;
*(_QWORD *)a3 = *(_QWORD *)a4;
*(_DWORD *)(a3 + 48) = *(_DWORD *)(a4 + 48);
if ( (unsigned int)check_rules(a1, a2, a3, a4) )
return 1;
v4 = (*(long long ( **)(unsigned long long))(a1 + 128))(v11);
*(_QWORD *)(a3 + 8) = v4;
if ( !v4 )
return 1;
v5 = (*(long long ( **)(unsigned long long))(a1 + 128))(8 * v11);
*(_QWORD *)(a3 + 16) = v5;
if ( !v5 )
return 1;
memcpy(*(_QWORD *)(a3 + 8), *(_QWORD *)(a4 + 8), v11);
memcpy(*(_QWORD *)(a3 + 16), *(_QWORD *)(a4 + 16), 8 * v11);
v16 = *(_QWORD **)(a2 + 32);
v15 = &v16[20 * *(_QWORD *)(a2 + 16)];
while ( v16 < v15 )
{
if ( v16[11] )
{
++v13;
}
else
{
v10 = v16[10] >> 8;
if ( v16[1] )
{
*(_BYTE *)(*(_QWORD *)(a3 + 8) + v10) = 9;
}
else
{
v9 = my_weight_size_on_page(a4, (unsigned int)(*v16 >> 8));
if ( *(unsigned __int8 *)(*(_QWORD *)(a3 + 8) + v10) < v9 )
*(_BYTE *)(*(_QWORD *)(a3 + 8) + v10) = v9;
}
*(_QWORD *)(*(_QWORD *)(a3 + 16) + 8LL * v10) = 0LL;
}
v16 += 20;
}
v14 = v13 + *(_QWORD *)(a4 + 24);
if ( (unsigned __int8)my_uca_generate_pages(a1, a3, a4, (unsigned int)v11) )
return 1;
if ( v14 && (unsigned __int8)my_uca_alloc_contractions(a3 + 24, a1, v14) )
return 1;
for ( i = *(_QWORD *)(a2 + 32); i < (unsigned long long)v15; i += 160LL )
{
if ( (unsigned __int8)apply_one_rule(a1, a2, i, a3) )
return 1;
}
for ( j = 0LL; j != *(_QWORD *)(a4 + 24); ++j )
{
v8 = 88 * j + *(_QWORD *)(a4 + 32);
inited = my_uca_init_one_contraction(a3 + 24, v8, 2LL, (unsigned int)*(char *)(v8 + 82));
memcpy(inited, v8 + 48, 4LL);
*(_WORD *)(inited + 4) = 0;
}
return 0;
}
| init_weight_level:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
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 dword ptr [RBP + -0x3c],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
ADD RAX,0x1
SHR RAX,0x8
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RAX + 0x30]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x30],ECX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
CALL 0x001ae420
CMP EAX,0x0
JZ 0x001acb41
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001acdd5
LAB_001acb41:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x80]
MOV RDI,qword ptr [RBP + -0x50]
CALL RAX
MOV RCX,qword ptr [RBP + -0x20]
MOV qword ptr [RCX + 0x8],RAX
CMP RAX,0x0
JZ 0x001acb83
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x80]
MOV RDI,qword ptr [RBP + -0x50]
SHL RDI,0x3
CALL RAX
MOV RCX,qword ptr [RBP + -0x20]
MOV qword ptr [RCX + 0x10],RAX
CMP RAX,0x0
JNZ 0x001acb8c
LAB_001acb83:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001acdd5
LAB_001acb8c:
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RBP + -0x50]
CALL 0x001282b0
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RBP + -0x50]
SHL RDX,0x3
CALL 0x001282b0
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x18]
IMUL RCX,qword ptr [RCX + 0x10],0xa0
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
LAB_001acbe9:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001acca6
MOV RAX,qword ptr [RBP + -0x30]
CMP qword ptr [RAX + 0x58],0x0
JNZ 0x001acc88
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x50]
SHR RAX,0x8
MOV dword ptr [RBP + -0x54],EAX
MOV RAX,qword ptr [RBP + -0x30]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x001acc31
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV ECX,dword ptr [RBP + -0x54]
MOV byte ptr [RAX + RCX*0x1],0x9
JMP 0x001acc73
LAB_001acc31:
MOV RDI,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
SHR RAX,0x8
MOV ESI,EAX
CALL 0x001ae510
MOV dword ptr [RBP + -0x58],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV ECX,dword ptr [RBP + -0x54]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,dword ptr [RBP + -0x58]
JNC 0x001acc71
MOV EAX,dword ptr [RBP + -0x58]
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV ECX,dword ptr [RBP + -0x54]
MOV byte ptr [RAX + RCX*0x1],DL
LAB_001acc71:
JMP 0x001acc73
LAB_001acc73:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x10]
MOV ECX,dword ptr [RBP + -0x54]
MOV qword ptr [RAX + RCX*0x8],0x0
JMP 0x001acc91
LAB_001acc88:
MOV EAX,dword ptr [RBP + -0x3c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x3c],EAX
LAB_001acc91:
JMP 0x001acc93
LAB_001acc93:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0xa0
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001acbe9
LAB_001acca6:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x18]
ADD EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x3c],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x50]
MOV ECX,EAX
CALL 0x001ae560
CMP AL,0x0
JZ 0x001accd8
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001acdd5
LAB_001accd8:
CMP dword ptr [RBP + -0x3c],0x0
JZ 0x001acd02
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x18
MOV RSI,qword ptr [RBP + -0x10]
MOVSXD RDX,dword ptr [RBP + -0x3c]
CALL 0x001ae5f0
CMP AL,0x0
JZ 0x001acd00
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001acdd5
LAB_001acd00:
JMP 0x001acd02
LAB_001acd02:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x30],RAX
LAB_001acd0e:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001acd4c
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x001ae690
CMP AL,0x0
JZ 0x001acd3a
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001acdd5
LAB_001acd3a:
JMP 0x001acd3c
LAB_001acd3c:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0xa0
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001acd0e
LAB_001acd4c:
MOV qword ptr [RBP + -0x48],0x0
LAB_001acd54:
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RCX + 0x18]
JZ 0x001acdd1
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x20]
IMUL RCX,qword ptr [RBP + -0x48],0x58
ADD RAX,RCX
MOV qword ptr [RBP + -0x60],RAX
MOV dword ptr [RBP + -0x64],0x2
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x18
MOV RSI,qword ptr [RBP + -0x60]
MOV EDX,dword ptr [RBP + -0x64]
MOV RAX,qword ptr [RBP + -0x60]
MOVSX ECX,byte ptr [RAX + 0x52]
CALL 0x001ae870
MOV qword ptr [RBP + -0x70],RAX
MOV RDI,qword ptr [RBP + -0x70]
MOV RSI,qword ptr [RBP + -0x60]
ADD RSI,0x30
MOV EAX,dword ptr [RBP + -0x64]
MOV EDX,EAX
SHL RDX,0x1
CALL 0x001282b0
MOV RAX,qword ptr [RBP + -0x70]
MOV ECX,dword ptr [RBP + -0x64]
MOV word ptr [RAX + RCX*0x2],0x0
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,0x1
MOV qword ptr [RBP + -0x48],RAX
JMP 0x001acd54
LAB_001acdd1:
MOV byte ptr [RBP + -0x1],0x0
LAB_001acdd5:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x70
POP RBP
RET
|
int1 init_weight_level(long param_1,long param_2,long *param_3,long *param_4)
{
char cVar1;
int iVar2;
uint uVar3;
uint uVar4;
ulong __n;
long lVar5;
ulong *puVar6;
void *__dest;
long local_50;
int local_44;
ulong *local_38;
local_44 = 0;
__n = *param_4 + 1U >> 8;
*param_3 = *param_4;
*(int *)(param_3 + 6) = (int)param_4[6];
iVar2 = check_rules(param_1,param_2,param_3,param_4);
if (iVar2 == 0) {
lVar5 = (**(code **)(param_1 + 0x80))(__n);
param_3[1] = lVar5;
if (lVar5 != 0) {
lVar5 = (**(code **)(param_1 + 0x80))(__n << 3);
param_3[2] = lVar5;
if (lVar5 != 0) {
memcpy((void *)param_3[1],(void *)param_4[1],__n);
memcpy((void *)param_3[2],(void *)param_4[2],__n << 3);
puVar6 = (ulong *)(*(long *)(param_2 + 0x20) + *(long *)(param_2 + 0x10) * 0xa0);
for (local_38 = *(ulong **)(param_2 + 0x20); local_38 < puVar6; local_38 = local_38 + 0x14)
{
if (local_38[0xb] == 0) {
uVar3 = (uint)(local_38[10] >> 8);
if (local_38[1] == 0) {
uVar4 = my_weight_size_on_page(param_4,*local_38 >> 8 & 0xffffffff);
if (*(byte *)(param_3[1] + (ulong)uVar3) < uVar4) {
*(char *)(param_3[1] + (ulong)uVar3) = (char)uVar4;
}
}
else {
*(int1 *)(param_3[1] + (ulong)uVar3) = 9;
}
*(int8 *)(param_3[2] + (ulong)uVar3 * 8) = 0;
}
else {
local_44 = local_44 + 1;
}
}
local_44 = (int)param_4[3] + local_44;
cVar1 = my_uca_generate_pages(param_1,param_3,param_4,__n & 0xffffffff);
if (cVar1 == '\0') {
if ((local_44 != 0) &&
(cVar1 = my_uca_alloc_contractions(param_3 + 3,param_1,(long)local_44), cVar1 != '\0'))
{
return 1;
}
local_38 = *(ulong **)(param_2 + 0x20);
while( true ) {
if (puVar6 <= local_38) {
for (local_50 = 0; local_50 != param_4[3]; local_50 = local_50 + 1) {
lVar5 = param_4[4] + local_50 * 0x58;
__dest = (void *)my_uca_init_one_contraction
(param_3 + 3,lVar5,2,(int)*(char *)(lVar5 + 0x52));
memcpy(__dest,(void *)(lVar5 + 0x30),4);
*(int2 *)((long)__dest + 4) = 0;
}
return 0;
}
cVar1 = apply_one_rule(param_1,param_2,local_38,param_3);
if (cVar1 != '\0') break;
local_38 = local_38 + 0x14;
}
return 1;
}
return 1;
}
}
}
return 1;
}
|
|
3,082 | minja::Value::to_bool() const | llama.cpp/common/minja/minja.hpp | bool to_bool() const {
if (is_null()) return false;
if (is_boolean()) return get<bool>();
if (is_number()) return get<double>() != 0;
if (is_string()) return !get<std::string>().empty();
if (is_array()) return !empty();
return true;
} | O3 | cpp | minja::Value::to_bool() const:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rsi
cmpq $0x0, 0x20(%rdi)
movq 0x10(%rdi), %rax
movb 0x40(%rdi), %cl
jne 0xbe478
testq %rax, %rax
jne 0xbe478
testb %cl, %cl
jne 0xbe478
cmpq $0x0, 0x30(%rsi)
jne 0xbe478
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
cmpb $0x4, %cl
jne 0xbe48c
movq %rsi, %rdi
addq $0x28, %rsp
popq %rbx
popq %r14
jmp 0xbe504
leal -0x5(%rcx), %edx
cmpb $0x2, %dl
ja 0xbe4af
movq %rsi, %rdi
callq 0xbe614
xorpd %xmm1, %xmm1
cmpneqsd %xmm0, %xmm1
movq %xmm1, %rbx
andl $0x1, %ebx
jmp 0xbe46e
cmpb $0x3, %cl
jne 0xbe4e5
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xbe72a
cmpq $0x0, 0x8(%r14)
setne %bl
movq (%r14), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xbe46e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21170
jmp 0xbe46e
testq %rax, %rax
je 0xbe4fc
movq %rsi, %rdi
callq 0xbe834
movl %eax, %ebx
xorb $0x1, %bl
jmp 0xbe46e
movb $0x1, %bl
jmp 0xbe46e
nop
| _ZNK5minja5Value7to_boolEv:
push r14
push rbx
sub rsp, 28h
mov rsi, rdi
cmp qword ptr [rdi+20h], 0
mov rax, [rdi+10h]
mov cl, [rdi+40h]
jnz short loc_BE478
test rax, rax
jnz short loc_BE478
test cl, cl
jnz short loc_BE478
cmp qword ptr [rsi+30h], 0
jnz short loc_BE478
xor ebx, ebx
loc_BE46E:
mov eax, ebx
add rsp, 28h
pop rbx
pop r14
retn
loc_BE478:
cmp cl, 4
jnz short loc_BE48C
mov rdi, rsi
add rsp, 28h
pop rbx
pop r14
jmp _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void)
loc_BE48C:
lea edx, [rcx-5]
cmp dl, 2
ja short loc_BE4AF
mov rdi, rsi
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
xorpd xmm1, xmm1
cmpneqsd xmm1, xmm0
movq rbx, xmm1
and ebx, 1
jmp short loc_BE46E
loc_BE4AF:
cmp cl, 3
jnz short loc_BE4E5
lea r14, [rsp+38h+var_30]
mov rdi, r14
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
cmp qword ptr [r14+8], 0
setnz bl
mov rdi, [r14]; void *
lea rax, [rsp+38h+var_20]
cmp rdi, rax
jz short loc_BE46E
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_BE46E
loc_BE4E5:
test rax, rax
jz short loc_BE4FC
mov rdi, rsi; this
call _ZNK5minja5Value5emptyEv; minja::Value::empty(void)
mov ebx, eax
xor bl, 1
jmp loc_BE46E
loc_BE4FC:
mov bl, 1
jmp loc_BE46E
| long long minja::Value::to_bool(minja::Value *this)
{
unsigned int v1; // ebx
long long v2; // rax
char v3; // cl
__m128d v5; // xmm0
void *v6[2]; // [rsp+8h] [rbp-30h] BYREF
long long v7; // [rsp+18h] [rbp-20h] BYREF
v2 = *((_QWORD *)this + 2);
v3 = *((_BYTE *)this + 64);
if ( !*((_QWORD *)this + 4) && !v2 && !v3 && !*((_QWORD *)this + 6) )
return 0;
if ( v3 != 4 )
{
if ( (unsigned __int8)(v3 - 5) > 2u )
{
if ( v3 == 3 )
{
minja::Value::get<std::string>(v6, this);
LOBYTE(v1) = v6[1] != 0LL;
if ( v6[0] != &v7 )
operator delete(v6[0], v7 + 1);
}
else if ( v2 )
{
v1 = minja::Value::empty(this);
LOBYTE(v1) = v1 ^ 1;
}
else
{
LOBYTE(v1) = 1;
}
}
else
{
v5.m128d_f64[0] = minja::Value::get<double>(this);
return *(_OWORD *)&_mm_cmpneq_sd((__m128d)0LL, v5) & 1;
}
return v1;
}
return minja::Value::get<bool>(this);
}
| to_bool:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RSI,RDI
CMP qword ptr [RDI + 0x20],0x0
MOV RAX,qword ptr [RDI + 0x10]
MOV CL,byte ptr [RDI + 0x40]
JNZ 0x001be478
TEST RAX,RAX
JNZ 0x001be478
TEST CL,CL
JNZ 0x001be478
CMP qword ptr [RSI + 0x30],0x0
JNZ 0x001be478
XOR EBX,EBX
LAB_001be46e:
MOV EAX,EBX
ADD RSP,0x28
POP RBX
POP R14
RET
LAB_001be478:
CMP CL,0x4
JNZ 0x001be48c
MOV RDI,RSI
ADD RSP,0x28
POP RBX
POP R14
JMP 0x001be504
LAB_001be48c:
LEA EDX,[RCX + -0x5]
CMP DL,0x2
JA 0x001be4af
MOV RDI,RSI
CALL 0x001be614
XORPD XMM1,XMM1
CMPNEQSD XMM1,XMM0
MOVQ RBX,XMM1
AND EBX,0x1
JMP 0x001be46e
LAB_001be4af:
CMP CL,0x3
JNZ 0x001be4e5
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001be72a
CMP qword ptr [R14 + 0x8],0x0
SETNZ BL
MOV RDI,qword ptr [R14]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001be46e
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00121170
JMP 0x001be46e
LAB_001be4e5:
TEST RAX,RAX
JZ 0x001be4fc
MOV RDI,RSI
CALL 0x001be834
MOV EBX,EAX
XOR BL,0x1
JMP 0x001be46e
LAB_001be4fc:
MOV BL,0x1
JMP 0x001be46e
|
/* minja::Value::to_bool() const */
byte __thiscall minja::Value::to_bool(Value *this)
{
Value VVar1;
bool bVar2;
byte bVar3;
double dVar4;
long *local_30;
long local_28;
long local_20 [2];
VVar1 = this[0x40];
if ((((*(long *)(this + 0x20) == 0) && (*(long *)(this + 0x10) == 0)) && (VVar1 == (Value)0x0)) &&
(*(long *)(this + 0x30) == 0)) {
bVar3 = 0;
}
else {
if (VVar1 == (Value)0x4) {
bVar2 = get<bool>(this);
return bVar2;
}
if ((byte)((char)VVar1 - 5U) < 3) {
dVar4 = get<double>(this);
bVar3 = -(dVar4 != 0.0) & 1;
}
else if (VVar1 == (Value)0x3) {
get<std::__cxx11::string>();
bVar3 = local_28 != 0;
if (local_30 != local_20) {
operator_delete(local_30,local_20[0] + 1);
}
}
else if (*(long *)(this + 0x10) == 0) {
bVar3 = 1;
}
else {
bVar3 = empty(this);
bVar3 = bVar3 ^ 1;
}
}
return bVar3;
}
|
|
3,083 | add_compiled_collation | eloqsql/mysys/charset.c | void add_compiled_collation(struct charset_info_st *cs)
{
DBUG_ASSERT(cs->number < array_elements(all_charsets));
all_charsets[cs->number]= cs;
cs->state|= MY_CS_AVAILABLE;
if ((my_hash_insert(&charset_name_hash, (uchar*) cs)))
{
#ifndef DBUG_OFF
CHARSET_INFO *org= (CHARSET_INFO*) my_hash_search(&charset_name_hash,
(uchar*) cs->cs_name.str,
cs->cs_name.length);
DBUG_ASSERT(org);
DBUG_ASSERT(org->cs_name.str == cs->cs_name.str);
DBUG_ASSERT(org->cs_name.length == strlen(cs->cs_name.str));
#endif
}
} | O0 | c | add_compiled_collation:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0x6cdfe
movq -0x8(%rbp), %rdx
movq -0x8(%rbp), %rax
movl (%rax), %eax
movl %eax, %ecx
leaq 0x38aa4f(%rip), %rax # 0x3f7860
movq %rdx, (%rax,%rcx,8)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x200, %ecx # imm = 0x200
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rsi
leaq 0x38ea30(%rip), %rdi # 0x3fb860
callq 0x6faf0
cmpb $0x0, %al
je 0x6ce3b
jmp 0x6ce3b
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| add_compiled_collation:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_6CDFE:
mov rdx, [rbp+var_8]
mov rax, [rbp+var_8]
mov eax, [rax]
mov ecx, eax
lea rax, all_charsets
mov [rax+rcx*8], rdx
mov rax, [rbp+var_8]
mov ecx, [rax+0Ch]
or ecx, 200h
mov [rax+0Ch], ecx
mov rsi, [rbp+var_8]
lea rdi, charset_name_hash
call my_hash_insert
cmp al, 0
jz short loc_6CE3B
jmp short $+2
loc_6CE3B:
add rsp, 10h
pop rbp
retn
| long long add_compiled_collation(unsigned int *a1)
{
all_charsets[*a1] = a1;
a1[3] |= 0x200u;
return my_hash_insert(&charset_name_hash, a1);
}
| add_compiled_collation:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x0016cdfe
LAB_0016cdfe:
MOV RDX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x4f7860]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0xc]
OR ECX,0x200
MOV dword ptr [RAX + 0xc],ECX
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[0x4fb860]
CALL 0x0016faf0
CMP AL,0x0
JZ 0x0016ce3b
JMP 0x0016ce3b
LAB_0016ce3b:
ADD RSP,0x10
POP RBP
RET
|
void add_compiled_collation(uint *param_1)
{
(&all_charsets)[*param_1] = param_1;
param_1[3] = param_1[3] | 0x200;
my_hash_insert(charset_name_hash,param_1);
return;
}
|
|
3,084 | add_compiled_collation | eloqsql/mysys/charset.c | void add_compiled_collation(struct charset_info_st *cs)
{
DBUG_ASSERT(cs->number < array_elements(all_charsets));
all_charsets[cs->number]= cs;
cs->state|= MY_CS_AVAILABLE;
if ((my_hash_insert(&charset_name_hash, (uchar*) cs)))
{
#ifndef DBUG_OFF
CHARSET_INFO *org= (CHARSET_INFO*) my_hash_search(&charset_name_hash,
(uchar*) cs->cs_name.str,
cs->cs_name.length);
DBUG_ASSERT(org);
DBUG_ASSERT(org->cs_name.str == cs->cs_name.str);
DBUG_ASSERT(org->cs_name.length == strlen(cs->cs_name.str));
#endif
}
} | O3 | c | add_compiled_collation:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rsi
movl (%rdi), %eax
leaq 0x35d80f(%rip), %rcx # 0x3adbc0
movq %rdi, (%rcx,%rax,8)
orb $0x2, 0xd(%rdi)
leaq 0x361800(%rip), %rdi # 0x3b1bc0
popq %rbp
jmp 0x51cea
| add_compiled_collation:
push rbp
mov rbp, rsp
mov rsi, rdi
mov eax, [rdi]
lea rcx, all_charsets
mov [rcx+rax*8], rdi
or byte ptr [rdi+0Dh], 2
lea rdi, charset_name_hash
pop rbp
jmp my_hash_insert
| long long add_compiled_collation(unsigned int *a1)
{
all_charsets[*a1] = a1;
*((_BYTE *)a1 + 13) |= 2u;
return my_hash_insert(&charset_name_hash, a1);
}
| add_compiled_collation:
PUSH RBP
MOV RBP,RSP
MOV RSI,RDI
MOV EAX,dword ptr [RDI]
LEA RCX,[0x4adbc0]
MOV qword ptr [RCX + RAX*0x8],RDI
OR byte ptr [RDI + 0xd],0x2
LEA RDI,[0x4b1bc0]
POP RBP
JMP 0x00151cea
|
void add_compiled_collation(uint *param_1)
{
(&all_charsets)[*param_1] = param_1;
*(byte *)((long)param_1 + 0xd) = *(byte *)((long)param_1 + 0xd) | 2;
my_hash_insert(charset_name_hash,param_1);
return;
}
|
|
3,085 | maria_rtree_insert_level | eloqsql/storage/maria/ma_rt_index.c | int maria_rtree_insert_level(MARIA_HA *info, MARIA_KEY *key, int ins_level,
my_off_t *root)
{
my_off_t old_root;
MARIA_SHARE *share= info->s;
MARIA_KEYDEF *keyinfo= key->keyinfo;
int res;
my_off_t new_page;
enum pagecache_page_lock write_lock;
DBUG_ENTER("maria_rtree_insert_level");
if ((old_root= share->state.key_root[keyinfo->key_nr]) == HA_OFFSET_ERROR)
{
MARIA_PINNED_PAGE tmp_page_link, *page_link;
MARIA_PAGE page;
page_link= &tmp_page_link;
if ((old_root= _ma_new(info, DFLT_INIT_HITS, &page_link)) ==
HA_OFFSET_ERROR)
DBUG_RETURN(-1);
write_lock= page_link->write_lock;
info->keyread_buff_used= 1;
bzero(info->buff, share->block_size);
_ma_store_keynr(share, info->buff, keyinfo->key_nr);
_ma_store_page_used(share, info->buff, share->keypage_header);
_ma_page_setup(&page, info, keyinfo, old_root, info->buff);
if (share->now_transactional && _ma_log_new(&page, 1))
DBUG_RETURN(1);
res= maria_rtree_add_key(key, &page, NULL);
if (_ma_write_keypage(&page, write_lock, DFLT_INIT_HITS))
DBUG_RETURN(1);
*root= old_root;
DBUG_RETURN(res);
}
switch ((res= maria_rtree_insert_req(info, key, old_root, &new_page,
ins_level, 0)))
{
case 0: /* root was not split */
{
break;
}
case 1: /* root was split, grow a new root; very rare */
{
uchar *new_root_buf, *new_key_buff;
my_bool new_root_buf_alloced;
my_off_t new_root;
uint nod_flag= share->base.key_reflength;
MARIA_PINNED_PAGE tmp_page_link, *page_link;
MARIA_KEY new_key;
MARIA_PAGE page;
page_link= &tmp_page_link;
DBUG_PRINT("rtree", ("root was split, grow a new root"));
alloc_on_stack(*info->stack_end_ptr, new_root_buf, new_root_buf_alloced,
keyinfo->block_length + keyinfo->max_store_length);
if (!new_root_buf)
{
my_errno= HA_ERR_OUT_OF_MEM;
DBUG_RETURN(-1); /* purecov: inspected */
}
bzero(new_root_buf, keyinfo->block_length);
_ma_store_keypage_flag(share, new_root_buf, KEYPAGE_FLAG_ISNOD);
_ma_store_keynr(share, new_root_buf, keyinfo->key_nr);
_ma_store_page_used(share, new_root_buf, share->keypage_header);
if ((new_root= _ma_new(info, DFLT_INIT_HITS, &page_link)) ==
HA_OFFSET_ERROR)
goto err;
write_lock= page_link->write_lock;
_ma_page_setup(&page, info, keyinfo, new_root, new_root_buf);
if (share->now_transactional && _ma_log_new(&page, 1))
goto err;
/* Point to some free space */
new_key_buff= new_root_buf + keyinfo->block_length + nod_flag;
new_key.keyinfo= keyinfo;
new_key.data= new_key_buff;
new_key.data_length= key->data_length;
new_key.ref_length= key->ref_length;
new_key.flag= 0;
_ma_kpointer(info, new_key_buff - nod_flag, old_root);
if (maria_rtree_set_key_mbr(info, &new_key, old_root))
goto err;
if (maria_rtree_add_key(&new_key, &page, NULL) == -1)
goto err;
_ma_kpointer(info, new_key_buff - nod_flag, new_page);
if (maria_rtree_set_key_mbr(info, &new_key, new_page))
goto err;
if (maria_rtree_add_key(&new_key, &page, NULL) == -1)
goto err;
if (_ma_write_keypage(&page, write_lock, DFLT_INIT_HITS))
goto err;
*root= new_root;
DBUG_PRINT("rtree", ("new root page: %lu level: %d nod_flag: %u",
(ulong) new_root, 0, page.node));
stack_alloc_free(new_root_buf, new_root_buf_alloced);
break;
err:
stack_alloc_free(new_root_buf, new_root_buf_alloced);
DBUG_RETURN(-1); /* purecov: inspected */
}
default:
case -1: /* error */
{
DBUG_ASSERT(0);
break;
}
}
DBUG_RETURN(res);
} | O3 | c | maria_rtree_insert_level:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %rbx
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %r15
movq 0x8(%rsi), %r12
movq 0x118(%r15), %rax
movzbl 0xa5(%r12), %ecx
movq (%rax,%rcx,8), %r13
cmpq $-0x1, %r13
movq %rsi, -0x58(%rbp)
je 0x61d1b
movl %edx, %r8d
movq %rbx, -0x40(%rbp)
leaq -0x68(%rbp), %rcx
movq %r14, %rdi
movq %r13, %rdx
xorl %r9d, %r9d
callq 0x62049
movl %eax, %ebx
cmpl $0x1, %eax
jne 0x61f7f
movl 0x3e4(%r15), %eax
movq %rax, -0x70(%rbp)
leaq -0xe8(%rbp), %rax
movq %rax, -0x60(%rbp)
movzwl 0xa6(%r12), %edx
movzwl 0xb0(%r12), %esi
addq %rdx, %rsi
leaq -0xd0(%rbp), %rcx
movq %rsi, (%rcx)
movq 0x78(%r14), %rax
movq (%rax), %rax
subq %rcx, %rax
subq %rsi, %rax
jbe 0x61e3c
cmpq $0x10000, %rax # imm = 0x10000
ja 0x61d02
cmpl $0x1000, %esi # imm = 0x1000
jb 0x61e3c
cmpq $0x8001, %rax # imm = 0x8001
jb 0x61e3c
movq %rsp, %rbx
addl $0xf, %esi
andl $-0x10, %esi
subq %rsi, %rbx
movq %rbx, %rsp
movb $0x1, %al
movl %eax, -0x34(%rbp)
jmp 0x61e64
leaq -0x90(%rbp), %rax
leaq -0xe8(%rbp), %rdx
movq %rax, (%rdx)
movq %r14, %rdi
movl $0x3, %esi
callq 0x6f5eb
cmpq $-0x1, %rax
je 0x61f7a
movq %rax, %r13
movq %rbx, -0x40(%rbp)
movq -0xe8(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x34(%rbp)
movb $0x1, 0x685(%r14)
movq 0x378(%r14), %rdi
movl 0x7bc(%r15), %edx
xorl %esi, %esi
callq 0x292a0
movb 0xa5(%r12), %al
movq 0x378(%r14), %rcx
movl 0x744(%r15), %edx
addl $-0x4, %edx
movb %al, (%rcx,%rdx)
movl 0x744(%r15), %eax
movq 0x378(%r14), %rcx
movb %al, -0x1(%rcx,%rax)
movq 0x378(%r14), %rcx
movl 0x744(%r15), %edx
movb %ah, -0x2(%rcx,%rdx)
movq 0x378(%r14), %r8
leaq -0xc8(%rbp), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x6f170
cmpb $0x0, 0x7e7(%r15)
je 0x61df8
leaq -0xc8(%rbp), %rdi
movl $0x1, %ebx
movl $0x1, %esi
callq 0x565c8
testb %al, %al
jne 0x61f7f
leaq -0xc8(%rbp), %rbx
movq -0x58(%rbp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x632b0
movl %eax, %r14d
movq %rbx, %rdi
movl -0x34(%rbp), %esi
movl $0x3, %edx
callq 0x6f301
movl $0x1, %ebx
testb %al, %al
jne 0x61f7f
movq -0x40(%rbp), %rax
movq %r13, (%rax)
movl %r14d, %ebx
jmp 0x61f7f
movl $0x10010, %edx # imm = 0x10010
xorl %edi, %edi
callq 0x9fdb5
testq %rax, %rax
je 0x61f6f
movq %rax, %rbx
movzwl 0xa6(%r12), %edx
movl $0x0, -0x34(%rbp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x292a0
movl 0x744(%r15), %eax
addl $-0x3, %eax
movb $0x1, (%rbx,%rax)
movb 0xa5(%r12), %al
movl 0x744(%r15), %ecx
addl $-0x4, %ecx
movb %al, (%rbx,%rcx)
movl 0x744(%r15), %eax
movb %al, -0x1(%rbx,%rax)
movl 0x744(%r15), %ecx
movb %ah, -0x2(%rbx,%rcx)
leaq -0x60(%rbp), %rdx
movq %r14, %rdi
movl $0x3, %esi
callq 0x6f5eb
movq %rax, -0x50(%rbp)
cmpq $-0x1, %rax
je 0x61f5f
movq -0x60(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x44(%rbp)
leaq -0xc8(%rbp), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq -0x50(%rbp), %rcx
movq %rbx, %r8
callq 0x6f170
cmpb $0x0, 0x7e7(%r15)
je 0x61f08
leaq -0xc8(%rbp), %rdi
movl $0x1, %esi
callq 0x565c8
testb %al, %al
jne 0x61f5f
movzwl 0xa6(%r12), %r15d
addq %rbx, %r15
movq -0x70(%rbp), %rax
addq %r15, %rax
leaq -0x90(%rbp), %rcx
movq %r12, 0x8(%rcx)
movq %rax, (%rcx)
movq -0x58(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rcx)
movl $0x0, 0x18(%rcx)
movq %rcx, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x6d281
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x6344f
testl %eax, %eax
je 0x61fa3
cmpb $0x0, -0x34(%rbp)
jne 0x61f7a
movq %rbx, %rdi
callq 0x9ffe2
jmp 0x61f7a
callq 0xa1b26
movl $0x80, (%rax)
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x62044
movl %ebx, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x90(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
xorl %edx, %edx
callq 0x632b0
cmpl $-0x1, %eax
je 0x61f5f
movq -0x68(%rbp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x6d281
movq -0x68(%rbp), %rdx
leaq -0x90(%rbp), %rsi
movq %r14, %rdi
callq 0x6344f
testl %eax, %eax
jne 0x61f5f
leaq -0x90(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
xorl %edx, %edx
callq 0x632b0
cmpl $-0x1, %eax
je 0x61f5f
leaq -0xc8(%rbp), %rdi
movl -0x44(%rbp), %esi
movl $0x3, %edx
callq 0x6f301
testb %al, %al
jne 0x61f5f
movq -0x40(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %rcx, (%rax)
cmpb $0x0, -0x34(%rbp)
jne 0x6203a
movq %rbx, %rdi
callq 0x9ffe2
movl $0x1, %ebx
jmp 0x61f7f
callq 0x29250
| maria_rtree_insert_level:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov rbx, rcx
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov r15, [rdi]
mov r12, [rsi+8]
mov rax, [r15+118h]
movzx ecx, byte ptr [r12+0A5h]
mov r13, [rax+rcx*8]
cmp r13, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_58], rsi
jz loc_61D1B
mov r8d, edx
mov [rbp+var_40], rbx
lea rcx, [rbp+var_68]
mov rdi, r14
mov rdx, r13
xor r9d, r9d
call maria_rtree_insert_req
mov ebx, eax
cmp eax, 1
jnz loc_61F7F
mov eax, [r15+3E4h]
mov [rbp+var_70], rax
lea rax, [rbp+var_E8]
mov [rbp+var_60], rax
movzx edx, word ptr [r12+0A6h]
movzx esi, word ptr [r12+0B0h]
add rsi, rdx
lea rcx, [rbp+var_D0]
mov [rcx], rsi
mov rax, [r14+78h]
mov rax, [rax]
sub rax, rcx
sub rax, rsi
jbe loc_61E3C
cmp rax, offset stru_10000
ja short loc_61D02
cmp esi, 1000h
jb loc_61E3C
cmp rax, 8001h
jb loc_61E3C
loc_61D02:
mov rbx, rsp
add esi, 0Fh
and esi, 0FFFFFFF0h
sub rbx, rsi
mov rsp, rbx
mov al, 1
mov [rbp+var_34], eax
jmp loc_61E64
loc_61D1B:
lea rax, [rbp+var_90]
lea rdx, [rbp+var_E8]
mov [rdx], rax
mov rdi, r14
mov esi, 3
call _ma_new
cmp rax, 0FFFFFFFFFFFFFFFFh
jz loc_61F7A
mov r13, rax
mov [rbp+var_40], rbx
mov rax, [rbp+var_E8]
mov eax, [rax+0Ch]
mov [rbp+var_34], eax
mov byte ptr [r14+685h], 1
mov rdi, [r14+378h]
mov edx, [r15+7BCh]
xor esi, esi
call _memset
mov al, [r12+0A5h]
mov rcx, [r14+378h]
mov edx, [r15+744h]
add edx, 0FFFFFFFCh
mov [rcx+rdx], al
mov eax, [r15+744h]
mov rcx, [r14+378h]
mov [rcx+rax-1], al
mov rcx, [r14+378h]
mov edx, [r15+744h]
mov [rcx+rdx-2], ah
mov r8, [r14+378h]
lea rdi, [rbp+var_C8]
mov rsi, r14
mov rdx, r12
mov rcx, r13
call _ma_page_setup
cmp byte ptr [r15+7E7h], 0
jz short loc_61DF8
lea rdi, [rbp+var_C8]
mov ebx, 1
mov esi, 1
call _ma_log_new
test al, al
jnz loc_61F7F
loc_61DF8:
lea rbx, [rbp+var_C8]
mov rdi, [rbp+var_58]
mov rsi, rbx
xor edx, edx
call maria_rtree_add_key
mov r14d, eax
mov rdi, rbx
mov esi, [rbp+var_34]
mov edx, 3
call _ma_write_keypage
mov ebx, 1
test al, al
jnz loc_61F7F
mov rax, [rbp+var_40]
mov [rax], r13
mov ebx, r14d
jmp loc_61F7F
loc_61E3C:
mov edx, 10010h
xor edi, edi
call my_malloc
test rax, rax
jz loc_61F6F
mov rbx, rax
movzx edx, word ptr [r12+0A6h]
mov [rbp+var_34], 0
loc_61E64:
mov rdi, rbx
xor esi, esi
call _memset
mov eax, [r15+744h]
add eax, 0FFFFFFFDh
mov byte ptr [rbx+rax], 1
mov al, [r12+0A5h]
mov ecx, [r15+744h]
add ecx, 0FFFFFFFCh
mov [rbx+rcx], al
mov eax, [r15+744h]
mov [rbx+rax-1], al
mov ecx, [r15+744h]
mov [rbx+rcx-2], ah
lea rdx, [rbp+var_60]
mov rdi, r14
mov esi, 3
call _ma_new
mov [rbp+var_50], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jz loc_61F5F
mov rax, [rbp+var_60]
mov eax, [rax+0Ch]
mov [rbp+var_44], eax
lea rdi, [rbp+var_C8]
mov rsi, r14
mov rdx, r12
mov rcx, [rbp+var_50]
mov r8, rbx
call _ma_page_setup
cmp byte ptr [r15+7E7h], 0
jz short loc_61F08
lea rdi, [rbp+var_C8]
mov esi, 1
call _ma_log_new
test al, al
jnz short loc_61F5F
loc_61F08:
movzx r15d, word ptr [r12+0A6h]
add r15, rbx
mov rax, [rbp+var_70]
add rax, r15
lea rcx, [rbp+var_90]
mov [rcx+8], r12
mov [rcx], rax
mov rax, [rbp+var_58]
mov rax, [rax+10h]
mov [rcx+10h], rax
mov dword ptr [rcx+18h], 0
mov r12, rcx
mov rdi, r14
mov rsi, r15
mov rdx, r13
call _ma_kpointer
mov rdi, r14
mov rsi, r12
mov rdx, r13
call maria_rtree_set_key_mbr
test eax, eax
jz short loc_61FA3
loc_61F5F:
cmp byte ptr [rbp+var_34], 0
jnz short loc_61F7A
mov rdi, rbx
call my_free
jmp short loc_61F7A
loc_61F6F:
call _my_thread_var
mov dword ptr [rax], 80h
loc_61F7A:
mov ebx, 0FFFFFFFFh
loc_61F7F:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_62044
mov eax, ebx
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_61FA3:
lea rdi, [rbp+var_90]
lea rsi, [rbp+var_C8]
xor edx, edx
call maria_rtree_add_key
cmp eax, 0FFFFFFFFh
jz short loc_61F5F
mov rdx, [rbp+var_68]
mov rdi, r14
mov rsi, r15
call _ma_kpointer
mov rdx, [rbp+var_68]
lea rsi, [rbp+var_90]
mov rdi, r14
call maria_rtree_set_key_mbr
test eax, eax
jnz loc_61F5F
lea rdi, [rbp+var_90]
lea rsi, [rbp+var_C8]
xor edx, edx
call maria_rtree_add_key
cmp eax, 0FFFFFFFFh
jz loc_61F5F
lea rdi, [rbp+var_C8]
mov esi, [rbp+var_44]
mov edx, 3
call _ma_write_keypage
test al, al
jnz loc_61F5F
mov rax, [rbp+var_40]
mov rcx, [rbp+var_50]
mov [rax], rcx
cmp byte ptr [rbp+var_34], 0
jnz short loc_6203A
mov rdi, rbx
call my_free
loc_6203A:
mov ebx, 1
jmp loc_61F7F
loc_62044:
call ___stack_chk_fail
| long long maria_rtree_insert_level(long long *a1, long long a2, unsigned int a3, long long *a4)
{
long long v5; // r15
long long v6; // r12
long long v7; // r13
unsigned int inserted; // ebx
long long v9; // rdx
unsigned long long v10; // rsi
unsigned long long v11; // rax
bool v12; // cc
unsigned long long v13; // rax
char *v14; // rbx
long long v15; // rax
long long v16; // r13
long long v17; // rax
unsigned int v18; // r14d
long long v19; // rax
long long v20; // rax
char *v21; // r15
_QWORD v24[3]; // [rsp+8h] [rbp-E8h] BYREF
unsigned long long v25; // [rsp+20h] [rbp-D0h] BYREF
long long *v26[7]; // [rsp+28h] [rbp-C8h] BYREF
_QWORD v27[3]; // [rsp+60h] [rbp-90h] BYREF
int v28; // [rsp+78h] [rbp-78h]
long long v29; // [rsp+80h] [rbp-70h]
long long v30; // [rsp+88h] [rbp-68h] BYREF
_QWORD *v31; // [rsp+90h] [rbp-60h] BYREF
long long v32; // [rsp+98h] [rbp-58h]
long long v33; // [rsp+A0h] [rbp-50h]
unsigned int v34; // [rsp+ACh] [rbp-44h]
long long *v35; // [rsp+B0h] [rbp-40h]
unsigned int v36; // [rsp+BCh] [rbp-34h]
unsigned long long v37; // [rsp+C0h] [rbp-30h]
v37 = __readfsqword(0x28u);
v5 = *a1;
v6 = *(_QWORD *)(a2 + 8);
v7 = *(_QWORD *)(*(_QWORD *)(*a1 + 280) + 8LL * *(unsigned __int8 *)(v6 + 165));
v32 = a2;
if ( v7 != -1 )
{
v35 = a4;
inserted = maria_rtree_insert_req(a1, a2, v7, &v30, a3, 0LL);
if ( inserted != 1 )
return inserted;
v29 = *(unsigned int *)(v5 + 996);
v31 = v24;
v9 = *(unsigned __int16 *)(v6 + 166);
v10 = v9 + *(unsigned __int16 *)(v6 + 176);
v25 = v10;
v11 = *(_QWORD *)a1[15] - (_QWORD)&v25;
v12 = v11 <= v10;
v13 = v11 - v10;
if ( v12 || v13 <= (unsigned long long)&stru_10000 && ((unsigned int)v10 < 0x1000 || v13 < 0x8001) )
{
v19 = my_malloc(0LL, v10, 65552LL);
if ( !v19 )
{
*(_DWORD *)my_thread_var(0LL) = 128;
return (unsigned int)-1;
}
v14 = (char *)v19;
v9 = *(unsigned __int16 *)(v6 + 166);
v36 = 0;
}
else
{
v14 = (char *)&v24[-1] - (((_DWORD)v10 + 15) & 0xFFFFFFF0);
LOBYTE(v13) = 1;
v36 = v13;
}
memset(v14, 0LL, v9);
v14[*(_DWORD *)(v5 + 1860) - 3] = 1;
v14[*(_DWORD *)(v5 + 1860) - 4] = *(_BYTE *)(v6 + 165);
v20 = *(unsigned int *)(v5 + 1860);
v14[v20 - 1] = v20;
v14[*(unsigned int *)(v5 + 1860) - 2] = BYTE1(v20);
v33 = ma_new(a1, 3LL, &v31);
if ( v33 != -1 )
{
v34 = *((_DWORD *)v31 + 3);
ma_page_setup(v26, a1, v6, v33, v14);
if ( !*(_BYTE *)(v5 + 2023) || !ma_log_new(v26, 1) )
{
v21 = &v14[*(unsigned __int16 *)(v6 + 166)];
v27[1] = v6;
v27[0] = &v21[v29];
v27[2] = *(_QWORD *)(v32 + 16);
v28 = 0;
ma_kpointer(a1, v21);
if ( !(unsigned int)maria_rtree_set_key_mbr(a1, v27, v7)
&& (unsigned int)maria_rtree_add_key(v27, v26, 0LL) != -1 )
{
ma_kpointer(a1, v21);
if ( !(unsigned int)maria_rtree_set_key_mbr(a1, v27, v30)
&& (unsigned int)maria_rtree_add_key(v27, v26, 0LL) != -1
&& !(unsigned __int8)ma_write_keypage(v26, v34, 3LL) )
{
*v35 = v33;
if ( !(_BYTE)v36 )
my_free(v14);
return 1;
}
}
}
}
if ( !(_BYTE)v36 )
my_free(v14);
return (unsigned int)-1;
}
v24[0] = v27;
v15 = ma_new(a1, 3LL, v24);
if ( v15 == -1 )
return (unsigned int)-1;
v16 = v15;
v35 = a4;
v36 = *(_DWORD *)(v24[0] + 12LL);
*((_BYTE *)a1 + 1669) = 1;
memset(a1[111], 0LL, *(unsigned int *)(v5 + 1980));
*(_BYTE *)(a1[111] + (unsigned int)(*(_DWORD *)(v5 + 1860) - 4)) = *(_BYTE *)(v6 + 165);
v17 = *(unsigned int *)(v5 + 1860);
*(_BYTE *)(a1[111] + v17 - 1) = v17;
*(_BYTE *)(a1[111] + *(unsigned int *)(v5 + 1860) - 2) = BYTE1(v17);
ma_page_setup(v26, a1, v6, v16, a1[111]);
if ( !*(_BYTE *)(v5 + 2023) || (inserted = 1, !ma_log_new(v26, 1)) )
{
v18 = maria_rtree_add_key(v32, v26, 0LL);
inserted = 1;
if ( !(unsigned __int8)ma_write_keypage(v26, v36, 3LL) )
{
*v35 = v16;
return v18;
}
}
return inserted;
}
| maria_rtree_insert_level:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV RBX,RCX
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV R15,qword ptr [RDI]
MOV R12,qword ptr [RSI + 0x8]
MOV RAX,qword ptr [R15 + 0x118]
MOVZX ECX,byte ptr [R12 + 0xa5]
MOV R13,qword ptr [RAX + RCX*0x8]
CMP R13,-0x1
MOV qword ptr [RBP + -0x58],RSI
JZ 0x00161d1b
MOV R8D,EDX
MOV qword ptr [RBP + -0x40],RBX
LEA RCX,[RBP + -0x68]
MOV RDI,R14
MOV RDX,R13
XOR R9D,R9D
CALL 0x00162049
MOV EBX,EAX
CMP EAX,0x1
JNZ 0x00161f7f
MOV EAX,dword ptr [R15 + 0x3e4]
MOV qword ptr [RBP + -0x70],RAX
LEA RAX,[RBP + -0xe8]
MOV qword ptr [RBP + -0x60],RAX
MOVZX EDX,word ptr [R12 + 0xa6]
MOVZX ESI,word ptr [R12 + 0xb0]
ADD RSI,RDX
LEA RCX,[RBP + -0xd0]
MOV qword ptr [RCX],RSI
MOV RAX,qword ptr [R14 + 0x78]
MOV RAX,qword ptr [RAX]
SUB RAX,RCX
SUB RAX,RSI
JBE 0x00161e3c
CMP RAX,0x10000
JA 0x00161d02
CMP ESI,0x1000
JC 0x00161e3c
CMP RAX,0x8001
JC 0x00161e3c
LAB_00161d02:
MOV RBX,RSP
ADD ESI,0xf
AND ESI,0xfffffff0
SUB RBX,RSI
MOV RSP,RBX
MOV AL,0x1
MOV dword ptr [RBP + -0x34],EAX
JMP 0x00161e64
LAB_00161d1b:
LEA RAX,[RBP + -0x90]
LEA RDX,[RBP + -0xe8]
MOV qword ptr [RDX],RAX
MOV RDI,R14
MOV ESI,0x3
CALL 0x0016f5eb
CMP RAX,-0x1
JZ 0x00161f7a
MOV R13,RAX
MOV qword ptr [RBP + -0x40],RBX
MOV RAX,qword ptr [RBP + -0xe8]
MOV EAX,dword ptr [RAX + 0xc]
MOV dword ptr [RBP + -0x34],EAX
MOV byte ptr [R14 + 0x685],0x1
MOV RDI,qword ptr [R14 + 0x378]
MOV EDX,dword ptr [R15 + 0x7bc]
XOR ESI,ESI
CALL 0x001292a0
MOV AL,byte ptr [R12 + 0xa5]
MOV RCX,qword ptr [R14 + 0x378]
MOV EDX,dword ptr [R15 + 0x744]
ADD EDX,-0x4
MOV byte ptr [RCX + RDX*0x1],AL
MOV EAX,dword ptr [R15 + 0x744]
MOV RCX,qword ptr [R14 + 0x378]
MOV byte ptr [RCX + RAX*0x1 + -0x1],AL
MOV RCX,qword ptr [R14 + 0x378]
MOV EDX,dword ptr [R15 + 0x744]
MOV byte ptr [RCX + RDX*0x1 + -0x2],AH
MOV R8,qword ptr [R14 + 0x378]
LEA RDI,[RBP + -0xc8]
MOV RSI,R14
MOV RDX,R12
MOV RCX,R13
CALL 0x0016f170
CMP byte ptr [R15 + 0x7e7],0x0
JZ 0x00161df8
LEA RDI,[RBP + -0xc8]
MOV EBX,0x1
MOV ESI,0x1
CALL 0x001565c8
TEST AL,AL
JNZ 0x00161f7f
LAB_00161df8:
LEA RBX,[RBP + -0xc8]
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,RBX
XOR EDX,EDX
CALL 0x001632b0
MOV R14D,EAX
MOV RDI,RBX
MOV ESI,dword ptr [RBP + -0x34]
MOV EDX,0x3
CALL 0x0016f301
MOV EBX,0x1
TEST AL,AL
JNZ 0x00161f7f
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX],R13
MOV EBX,R14D
JMP 0x00161f7f
LAB_00161e3c:
MOV EDX,0x10010
XOR EDI,EDI
CALL 0x0019fdb5
TEST RAX,RAX
JZ 0x00161f6f
MOV RBX,RAX
MOVZX EDX,word ptr [R12 + 0xa6]
MOV dword ptr [RBP + -0x34],0x0
LAB_00161e64:
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001292a0
MOV EAX,dword ptr [R15 + 0x744]
ADD EAX,-0x3
MOV byte ptr [RBX + RAX*0x1],0x1
MOV AL,byte ptr [R12 + 0xa5]
MOV ECX,dword ptr [R15 + 0x744]
ADD ECX,-0x4
MOV byte ptr [RBX + RCX*0x1],AL
MOV EAX,dword ptr [R15 + 0x744]
MOV byte ptr [RBX + RAX*0x1 + -0x1],AL
MOV ECX,dword ptr [R15 + 0x744]
MOV byte ptr [RBX + RCX*0x1 + -0x2],AH
LEA RDX,[RBP + -0x60]
MOV RDI,R14
MOV ESI,0x3
CALL 0x0016f5eb
MOV qword ptr [RBP + -0x50],RAX
CMP RAX,-0x1
JZ 0x00161f5f
MOV RAX,qword ptr [RBP + -0x60]
MOV EAX,dword ptr [RAX + 0xc]
MOV dword ptr [RBP + -0x44],EAX
LEA RDI,[RBP + -0xc8]
MOV RSI,R14
MOV RDX,R12
MOV RCX,qword ptr [RBP + -0x50]
MOV R8,RBX
CALL 0x0016f170
CMP byte ptr [R15 + 0x7e7],0x0
JZ 0x00161f08
LEA RDI,[RBP + -0xc8]
MOV ESI,0x1
CALL 0x001565c8
TEST AL,AL
JNZ 0x00161f5f
LAB_00161f08:
MOVZX R15D,word ptr [R12 + 0xa6]
ADD R15,RBX
MOV RAX,qword ptr [RBP + -0x70]
ADD RAX,R15
LEA RCX,[RBP + -0x90]
MOV qword ptr [RCX + 0x8],R12
MOV qword ptr [RCX],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RCX + 0x10],RAX
MOV dword ptr [RCX + 0x18],0x0
MOV R12,RCX
MOV RDI,R14
MOV RSI,R15
MOV RDX,R13
CALL 0x0016d281
MOV RDI,R14
MOV RSI,R12
MOV RDX,R13
CALL 0x0016344f
TEST EAX,EAX
JZ 0x00161fa3
LAB_00161f5f:
CMP byte ptr [RBP + -0x34],0x0
JNZ 0x00161f7a
MOV RDI,RBX
CALL 0x0019ffe2
JMP 0x00161f7a
LAB_00161f6f:
CALL 0x001a1b26
MOV dword ptr [RAX],0x80
LAB_00161f7a:
MOV EBX,0xffffffff
LAB_00161f7f:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00162044
MOV EAX,EBX
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00161fa3:
LEA RDI,[RBP + -0x90]
LEA RSI,[RBP + -0xc8]
XOR EDX,EDX
CALL 0x001632b0
CMP EAX,-0x1
JZ 0x00161f5f
MOV RDX,qword ptr [RBP + -0x68]
MOV RDI,R14
MOV RSI,R15
CALL 0x0016d281
MOV RDX,qword ptr [RBP + -0x68]
LEA RSI,[RBP + -0x90]
MOV RDI,R14
CALL 0x0016344f
TEST EAX,EAX
JNZ 0x00161f5f
LEA RDI,[RBP + -0x90]
LEA RSI,[RBP + -0xc8]
XOR EDX,EDX
CALL 0x001632b0
CMP EAX,-0x1
JZ 0x00161f5f
LEA RDI,[RBP + -0xc8]
MOV ESI,dword ptr [RBP + -0x44]
MOV EDX,0x3
CALL 0x0016f301
TEST AL,AL
JNZ 0x00161f5f
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX],RCX
CMP byte ptr [RBP + -0x34],0x0
JNZ 0x0016203a
MOV RDI,RBX
CALL 0x0019ffe2
LAB_0016203a:
MOV EBX,0x1
JMP 0x00161f7f
LAB_00162044:
CALL 0x00129250
|
int maria_rtree_insert_level(long *param_1,long param_2,int4 param_3,long *param_4)
{
uint uVar1;
long lVar2;
int8 uVar3;
int4 uVar4;
char cVar5;
int iVar6;
int iVar7;
ulong uVar8;
long lVar9;
int1 *__s;
long lVar10;
int4 *puVar11;
size_t __n;
int1 *puVar12;
int1 *puVar13;
long lVar14;
long in_FS_OFFSET;
int1 auStack_f8 [8];
long *local_f0 [3];
ulong local_d8;
int1 local_d0 [56];
long local_98;
long local_90;
int8 local_88;
int4 local_80;
ulong local_78;
int8 local_70;
long **local_68;
long local_60;
long local_58;
int4 local_4c;
long *local_48;
int4 local_3c;
long local_38;
puVar12 = auStack_f8;
puVar13 = auStack_f8;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar14 = *param_1;
lVar2 = *(long *)(param_2 + 8);
lVar9 = *(long *)(*(long *)(lVar14 + 0x118) + (ulong)*(byte *)(lVar2 + 0xa5) * 8);
local_60 = param_2;
if (lVar9 == -1) {
local_f0[0] = &local_98;
lVar9 = _ma_new(param_1);
if (lVar9 != -1) {
local_3c = *(int4 *)((long)local_f0[0] + 0xc);
*(int1 *)((long)param_1 + 0x685) = 1;
local_48 = param_4;
memset((void *)param_1[0x6f],0,(ulong)*(uint *)(lVar14 + 0x7bc));
*(int1 *)(param_1[0x6f] + (ulong)(*(int *)(lVar14 + 0x744) - 4)) =
*(int1 *)(lVar2 + 0xa5);
uVar1 = *(uint *)(lVar14 + 0x744);
*(char *)(param_1[0x6f] + -1 + (ulong)uVar1) = (char)uVar1;
*(char *)(param_1[0x6f] + -2 + (ulong)*(uint *)(lVar14 + 0x744)) = (char)(uVar1 >> 8);
_ma_page_setup(local_d0,param_1,lVar2,lVar9,param_1[0x6f]);
if (*(char *)(lVar14 + 0x7e7) != '\0') {
cVar5 = _ma_log_new(local_d0,1);
puVar13 = auStack_f8;
iVar6 = 1;
if (cVar5 != '\0') goto LAB_00161f7f;
}
iVar7 = maria_rtree_add_key(local_60,local_d0,0);
cVar5 = _ma_write_keypage(local_d0,local_3c,3);
puVar13 = auStack_f8;
iVar6 = 1;
if (cVar5 == '\0') {
*local_48 = lVar9;
puVar13 = auStack_f8;
iVar6 = iVar7;
}
goto LAB_00161f7f;
}
}
else {
local_48 = param_4;
iVar6 = maria_rtree_insert_req(param_1,param_2,lVar9,&local_70,param_3,0);
puVar13 = auStack_f8;
if (iVar6 != 1) goto LAB_00161f7f;
local_78 = (ulong)*(uint *)(lVar14 + 0x3e4);
local_68 = local_f0;
__n = (size_t)*(ushort *)(lVar2 + 0xa6);
local_d8 = *(ushort *)(lVar2 + 0xb0) + __n;
uVar8 = (*(long *)param_1[0xf] - (long)&local_d8) - local_d8;
if (((ulong)(*(long *)param_1[0xf] - (long)&local_d8) < local_d8 || uVar8 == 0) ||
((uVar8 < 0x10001 && (((uint)local_d8 < 0x1000 || (uVar8 < 0x8001)))))) {
__s = (int1 *)my_malloc(0,local_d8,0x10010);
if (__s == (int1 *)0x0) {
puVar11 = (int4 *)_my_thread_var();
*puVar11 = 0x80;
puVar13 = auStack_f8;
goto LAB_00161f7a;
}
__n = (size_t)*(ushort *)(lVar2 + 0xa6);
local_3c = 0;
}
else {
__s = auStack_f8 + -(ulong)((uint)local_d8 + 0xf & 0xfffffff0);
local_3c = (int4)CONCAT71((int7)(uVar8 >> 8),1);
puVar12 = __s;
}
*(int8 *)(puVar12 + -8) = 0x161e6e;
memset(__s,0,__n);
*(int1 *)((long)__s + (ulong)(*(int *)(lVar14 + 0x744) - 3)) = 1;
*(int1 *)((long)__s + (ulong)(*(int *)(lVar14 + 0x744) - 4)) =
*(int1 *)(lVar2 + 0xa5);
uVar1 = *(uint *)(lVar14 + 0x744);
*(char *)((long)__s + ((ulong)uVar1 - 1)) = (char)uVar1;
*(char *)((long)__s + ((ulong)*(uint *)(lVar14 + 0x744) - 2)) = (char)(uVar1 >> 8);
*(int8 *)(puVar12 + -8) = 0x161eb8;
lVar10 = _ma_new(param_1,3,&local_68);
local_58 = lVar10;
if (lVar10 != -1) {
local_4c = *(int4 *)((long)local_68 + 0xc);
*(int8 *)(puVar12 + -8) = 0x161ee9;
_ma_page_setup(local_d0,param_1,lVar2,lVar10,__s);
if (*(char *)(lVar14 + 0x7e7) != '\0') {
*(int8 *)(puVar12 + -8) = 0x161f04;
cVar5 = _ma_log_new(local_d0,1);
if (cVar5 != '\0') goto LAB_00161f5f;
}
lVar14 = (ulong)*(ushort *)(lVar2 + 0xa6) + (long)__s;
local_98 = local_78 + lVar14;
local_88 = *(int8 *)(local_60 + 0x10);
local_80 = 0;
local_90 = lVar2;
*(int8 *)(puVar12 + -8) = 0x161f4d;
_ma_kpointer(param_1,lVar14,lVar9);
*(int8 *)(puVar12 + -8) = 0x161f5b;
iVar6 = maria_rtree_set_key_mbr(param_1,&local_98,lVar9);
if (iVar6 == 0) {
*(int8 *)(puVar12 + -8) = 0x161fb8;
iVar6 = maria_rtree_add_key(&local_98,local_d0,0);
uVar3 = local_70;
if (iVar6 != -1) {
*(int8 *)(puVar12 + -8) = 0x161fcc;
_ma_kpointer(param_1,lVar14,uVar3);
*(int8 *)(puVar12 + -8) = 0x161fdf;
iVar6 = maria_rtree_set_key_mbr(param_1,&local_98,local_70);
if (iVar6 == 0) {
*(int8 *)(puVar12 + -8) = 0x161ffc;
iVar6 = maria_rtree_add_key(&local_98,local_d0,0);
uVar4 = local_4c;
if (iVar6 != -1) {
*(int8 *)(puVar12 + -8) = 0x162019;
cVar5 = _ma_write_keypage(local_d0,uVar4,3);
if (cVar5 == '\0') {
*local_48 = local_58;
if ((char)local_3c == '\0') {
*(int8 *)(puVar12 + -8) = 0x16203a;
my_free(__s);
}
puVar13 = puVar12;
iVar6 = 1;
goto LAB_00161f7f;
}
}
}
}
}
}
LAB_00161f5f:
puVar13 = puVar12;
if ((char)local_3c == '\0') {
*(int8 *)(puVar12 + -8) = 0x161f6d;
my_free(__s);
}
}
LAB_00161f7a:
iVar6 = -1;
LAB_00161f7f:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return iVar6;
}
/* WARNING: Subroutine does not return */
*(code **)(puVar13 + -8) = maria_rtree_insert_req;
__stack_chk_fail();
}
|
|
3,086 | nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::iter_impl(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*) | monkey531[P]llama/common/json.hpp | explicit iter_impl(pointer object) noexcept : m_object(object)
{
JSON_ASSERT(m_object != nullptr);
switch (m_object->m_data.m_type)
{
case value_t::object:
{
m_it.object_iterator = typename object_t::iterator();
break;
}
case value_t::array:
{
m_it.array_iterator = typename array_t::iterator();
break;
}
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
{
m_it.primitive_iterator = primitive_iterator_t();
break;
}
}
} | O0 | cpp | nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::iter_impl(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*):
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
movq %rdi, 0x18(%rsp)
movq 0x38(%rsp), %rax
movq %rax, (%rdi)
addq $0x8, %rdi
movq %rdi, 0x8(%rsp)
callq 0xb6a50
movq 0x8(%rsp), %rdi
addq $0x8, %rdi
callq 0xb6a70
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movq %rdi, 0x10(%rsp)
xorl %esi, %esi
movl $0x8, %edx
callq 0x5a570
movq 0x10(%rsp), %rdi
callq 0xb6a90
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
jne 0xb68be
leaq 0x15825e(%rip), %rdi # 0x20eb00
leaq 0x1582a1(%rip), %rdx # 0x20eb4a
leaq 0x15d964(%rip), %rcx # 0x214214
xorl %eax, %eax
movl $0x32ab, %esi # imm = 0x32AB
callq 0x5aef0
jmp 0xb68be
movq 0x18(%rsp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movq %rax, (%rsp)
subq $0x9, %rax
ja 0xb691d
movq (%rsp), %rax
leaq 0x152c86(%rip), %rcx # 0x209564
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x30(%rsp), %rdi
callq 0xb6a50
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0xb6946
leaq 0x28(%rsp), %rdi
callq 0xb6a70
movq 0x18(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rcx, 0x10(%rax)
jmp 0xb6946
jmp 0xb691d
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x5a570
leaq 0x20(%rsp), %rdi
callq 0xb6a90
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x18(%rax)
addq $0x48, %rsp
retq
movq %rax, %rdi
callq 0x64b00
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2EPSF_:
sub rsp, 48h
mov [rsp+48h+var_8], rdi
mov [rsp+48h+var_10], rsi
mov rdi, [rsp+48h+var_8]
mov [rsp+48h+var_30], rdi
mov rax, [rsp+48h+var_10]
mov [rdi], rax
add rdi, 8
mov [rsp+48h+var_40], rdi
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEC2Ev; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::__normal_iterator(void)
mov rdi, [rsp+48h+var_40]
add rdi, 8
call _ZN9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEC2Ev; __gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::__normal_iterator(void)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
mov [rsp+48h+var_38], rdi
xor esi, esi
mov edx, 8
call _memset
mov rdi, [rsp+48h+var_38]; this
call _ZN8nlohmann16json_abi_v3_11_36detail20primitive_iterator_tC2Ev; nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::primitive_iterator_t(void)
mov rax, [rsp+48h+var_30]
cmp qword ptr [rax], 0
jnz short loc_B68BE
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN+7; "m_object != nullptr"
xor eax, eax
mov esi, 32ABh
call _ggml_abort
jmp short $+2
loc_B68BE:
mov rax, [rsp+48h+var_30]
mov rax, [rax]
movzx eax, byte ptr [rax]
mov [rsp+48h+var_48], rax
sub rax, 9; switch 10 cases
ja short def_B68E5; jumptable 00000000000B68E5 default case
mov rax, [rsp+48h+var_48]
lea rcx, jpt_B68E5
movsxd rax, ds:(jpt_B68E5 - 209564h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_B68E7:
lea rdi, [rsp+48h+var_18]; jumptable 00000000000B68E5 case 1
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEC2Ev; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::__normal_iterator(void)
mov rax, [rsp+48h+var_30]
mov rcx, [rsp+48h+var_18]
mov [rax+8], rcx
jmp short loc_B6946
loc_B6901:
lea rdi, [rsp+48h+var_20]; jumptable 00000000000B68E5 case 2
call _ZN9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEC2Ev; __gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::__normal_iterator(void)
mov rax, [rsp+48h+var_30]
mov rcx, [rsp+48h+var_20]
mov [rax+10h], rcx
jmp short loc_B6946
loc_B691B:
jmp short $+2; jumptable 00000000000B68E5 cases 0,3-9
def_B68E5:
lea rdi, [rsp+48h+var_28]; jumptable 00000000000B68E5 default case
xor esi, esi
mov edx, 8
call _memset
lea rdi, [rsp+48h+var_28]; this
call _ZN8nlohmann16json_abi_v3_11_36detail20primitive_iterator_tC2Ev; nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::primitive_iterator_t(void)
mov rax, [rsp+48h+var_30]
mov rcx, [rsp+48h+var_28]
mov [rax+18h], rcx
loc_B6946:
add rsp, 48h
retn
mov rdi, rax
call __clang_call_terminate
| _QWORD * nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::iter_impl(
_QWORD *a1,
long long a2)
{
_QWORD *result; // rax
long long v3; // [rsp+20h] [rbp-28h] BYREF
long long v4; // [rsp+28h] [rbp-20h] BYREF
_QWORD v5[3]; // [rsp+30h] [rbp-18h] BYREF
v5[2] = a1;
v5[1] = a2;
*a1 = a2;
((void (*)(void))__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::__normal_iterator)();
__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::__normal_iterator(a1 + 2);
memset(a1 + 3, 0LL, sizeof(_QWORD));
nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::primitive_iterator_t((nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t *)(a1 + 3));
if ( !*a1 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
12971LL,
"GGML_ASSERT(%s) failed",
"m_object != nullptr");
switch ( *(_BYTE *)*a1 )
{
case 1:
__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::__normal_iterator(v5);
result = a1;
a1[1] = v5[0];
break;
case 2:
__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::__normal_iterator(&v4);
result = a1;
a1[2] = v4;
break;
default:
memset(&v3, 0LL, sizeof(v3));
nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::primitive_iterator_t((nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t *)&v3);
result = a1;
a1[3] = v3;
break;
}
return result;
}
| iter_impl:
SUB RSP,0x48
MOV qword ptr [RSP + 0x40],RDI
MOV qword ptr [RSP + 0x38],RSI
MOV RDI,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RDI],RAX
ADD RDI,0x8
MOV qword ptr [RSP + 0x8],RDI
CALL 0x001b6a50
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x8
CALL 0x001b6a70
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
MOV qword ptr [RSP + 0x10],RDI
XOR ESI,ESI
MOV EDX,0x8
CALL 0x0015a570
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001b6a90
MOV RAX,qword ptr [RSP + 0x18]
CMP qword ptr [RAX],0x0
JNZ 0x001b68be
LAB_001b689b:
LEA RDI,[0x30eb00]
LEA RDX,[0x30eb4a]
LEA RCX,[0x314214]
XOR EAX,EAX
MOV ESI,0x32ab
CALL 0x0015aef0
LAB_001b68bc:
JMP 0x001b68be
LAB_001b68be:
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX]
MOVZX EAX,byte ptr [RAX]
MOV qword ptr [RSP],RAX
SUB RAX,0x9
JA 0x001b691d
MOV RAX,qword ptr [RSP]
LEA RCX,[0x309564]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
LEA RDI,[RSP + 0x30]
CALL 0x001b6a50
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x30]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x001b6946
caseD_2:
LEA RDI,[RSP + 0x28]
CALL 0x001b6a70
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001b6946
caseD_0:
JMP 0x001b691d
default:
LEA RDI,[RSP + 0x20]
XOR ESI,ESI
MOV EDX,0x8
CALL 0x0015a570
LEA RDI,[RSP + 0x20]
CALL 0x001b6a90
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x18],RCX
LAB_001b6946:
ADD RSP,0x48
RET
|
/* nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>
>::iter_impl(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>*) */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::iter_impl(iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,basic_json *param_1)
{
int8 local_28;
int8 local_20;
int8 local_18;
basic_json *local_10;
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_8;
*(basic_json **)this = param_1;
local_10 = param_1;
local_8 = this;
__gnu_cxx::
__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::__normal_iterator((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
*)(this + 8));
__gnu_cxx::
__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>>>>
::__normal_iterator((__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*)(this + 0x10));
memset((primitive_iterator_t *)(this + 0x18),0,8);
primitive_iterator_t::primitive_iterator_t((primitive_iterator_t *)(this + 0x18));
if (*(long *)this == 0) {
/* try { // try from 001b689b to 001b68bb has its CatchHandler @ 001b694b */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x32ab,
"GGML_ASSERT(%s) failed","m_object != nullptr");
}
switch(**(int1 **)this) {
case 0:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
default:
memset(&local_28,0,8);
primitive_iterator_t::primitive_iterator_t((primitive_iterator_t *)&local_28);
*(int8 *)(this + 0x18) = local_28;
break;
case 1:
__gnu_cxx::
__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::__normal_iterator((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
*)&local_18);
*(int8 *)(this + 8) = local_18;
break;
case 2:
__gnu_cxx::
__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>>>>
::__normal_iterator((__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_20);
*(int8 *)(this + 0x10) = local_20;
}
return;
}
|
|
3,087 | showHelpMessage() | Andrewchistyakov[P]flashcards_lyc/src/flashcard.cpp | void showHelpMessage() {
std::cout << "--------------------------- FCARD ---------------------------" << std::endl;
std::cout << "\"./fcard privet\" - prints \"Hello world!\"" << std::endl;
std::cout << "\"./fcard list\" - prints all flashcards" << std::endl;
std::cout << "\"./fcard add <card_front> <card_back>\" - adds a new card" << std::endl;
std::cout << "\"./fcard remove <card_id>\" - removes selected card" << std::endl;
std::cout << "\"./fcard review -a\" - starts review mode" << std::endl;
} | O2 | cpp | showHelpMessage():
pushq %rbx
movq 0x3a091(%rip), %rbx # 0x51f50
leaq 0x1aba4(%rip), %rsi # 0x32a6a
movq %rbx, %rdi
callq 0xc440
movq %rax, %rdi
callq 0xc200
leaq 0x1abcb(%rip), %rsi # 0x32aa8
movq %rbx, %rdi
callq 0xc440
movq %rax, %rdi
callq 0xc200
leaq 0x1abdd(%rip), %rsi # 0x32ad1
movq %rbx, %rdi
callq 0xc440
movq %rax, %rdi
callq 0xc200
leaq 0x1abed(%rip), %rsi # 0x32af8
movq %rbx, %rdi
callq 0xc440
movq %rax, %rdi
callq 0xc200
leaq 0x1ac0f(%rip), %rsi # 0x32b31
movq %rbx, %rdi
callq 0xc440
movq %rax, %rdi
callq 0xc200
leaq 0x1ac2b(%rip), %rsi # 0x32b64
movq %rbx, %rdi
callq 0xc440
movq %rax, %rdi
popq %rbx
jmp 0xc200
| _Z15showHelpMessagev:
push rbx
mov rbx, cs:_ZSt4cout_ptr
lea rsi, aFcard; "--------------------------- FCARD -----"...
mov rdi, rbx
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
call __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_; std::endl<char,std::char_traits<char>>(std::ostream &)
lea rsi, aFcardPrivetPri; "\"./fcard privet\" - prints \"Hello wor"...
mov rdi, rbx
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
call __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_; std::endl<char,std::char_traits<char>>(std::ostream &)
lea rsi, aFcardListPrint; "\"./fcard list\" - prints all flashcard"...
mov rdi, rbx
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
call __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_; std::endl<char,std::char_traits<char>>(std::ostream &)
lea rsi, aFcardAddCardFr; "\"./fcard add <card_front> <card_back>"...
mov rdi, rbx
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
call __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_; std::endl<char,std::char_traits<char>>(std::ostream &)
lea rsi, aFcardRemoveCar; "\"./fcard remove <card_id>\" - removes "...
mov rdi, rbx
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
call __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_; std::endl<char,std::char_traits<char>>(std::ostream &)
lea rsi, aFcardReviewASt; "\"./fcard review -a\" - starts review m"...
mov rdi, rbx
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
pop rbx
jmp __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_; std::endl<char,std::char_traits<char>>(std::ostream &)
| long long showHelpMessage(void)
{
long long v0; // rax
long long v1; // rax
long long v2; // rax
long long v3; // rax
long long v4; // rax
long long v5; // rax
v0 = std::operator<<<std::char_traits<char>>(
&std::cout,
"--------------------------- FCARD ---------------------------");
std::endl<char,std::char_traits<char>>(v0);
v1 = std::operator<<<std::char_traits<char>>(&std::cout, "\"./fcard privet\" - prints \"Hello world!\"");
std::endl<char,std::char_traits<char>>(v1);
v2 = std::operator<<<std::char_traits<char>>(&std::cout, "\"./fcard list\" - prints all flashcards");
std::endl<char,std::char_traits<char>>(v2);
v3 = std::operator<<<std::char_traits<char>>(&std::cout, "\"./fcard add <card_front> <card_back>\" - adds a new card");
std::endl<char,std::char_traits<char>>(v3);
v4 = std::operator<<<std::char_traits<char>>(&std::cout, "\"./fcard remove <card_id>\" - removes selected card");
std::endl<char,std::char_traits<char>>(v4);
v5 = std::operator<<<std::char_traits<char>>(&std::cout, "\"./fcard review -a\" - starts review mode");
return std::endl<char,std::char_traits<char>>(v5);
}
| showHelpMessage:
PUSH RBX
MOV RBX,qword ptr [0x00151f50]
LEA RSI,[0x132a6a]
MOV RDI,RBX
CALL 0x0010c440
MOV RDI,RAX
CALL 0x0010c200
LEA RSI,[0x132aa8]
MOV RDI,RBX
CALL 0x0010c440
MOV RDI,RAX
CALL 0x0010c200
LEA RSI,[0x132ad1]
MOV RDI,RBX
CALL 0x0010c440
MOV RDI,RAX
CALL 0x0010c200
LEA RSI,[0x132af8]
MOV RDI,RBX
CALL 0x0010c440
MOV RDI,RAX
CALL 0x0010c200
LEA RSI,[0x132b31]
MOV RDI,RBX
CALL 0x0010c440
MOV RDI,RAX
CALL 0x0010c200
LEA RSI,[0x132b64]
MOV RDI,RBX
CALL 0x0010c440
MOV RDI,RAX
POP RBX
JMP 0x0010c200
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* showHelpMessage() */
void showHelpMessage(void)
{
int *puVar1;
ostream *poVar2;
puVar1 = PTR_cout_00151f50;
poVar2 = std::operator<<((ostream *)PTR_cout_00151f50,
"--------------------------- FCARD ---------------------------");
std::endl<char,std::char_traits<char>>(poVar2);
poVar2 = std::operator<<((ostream *)puVar1,"\"./fcard privet\" - prints \"Hello world!\"");
std::endl<char,std::char_traits<char>>(poVar2);
poVar2 = std::operator<<((ostream *)puVar1,"\"./fcard list\" - prints all flashcards");
std::endl<char,std::char_traits<char>>(poVar2);
poVar2 = std::operator<<((ostream *)puVar1,
"\"./fcard add <card_front> <card_back>\" - adds a new card");
std::endl<char,std::char_traits<char>>(poVar2);
poVar2 = std::operator<<((ostream *)puVar1,"\"./fcard remove <card_id>\" - removes selected card")
;
std::endl<char,std::char_traits<char>>(poVar2);
poVar2 = std::operator<<((ostream *)puVar1,"\"./fcard review -a\" - starts review mode");
std::endl<char,std::char_traits<char>>(poVar2);
return;
}
|
|
3,088 | init_alloc_root | eloqsql/mysys/my_alloc.c | void init_alloc_root(PSI_memory_key key, MEM_ROOT *mem_root, size_t block_size,
size_t pre_alloc_size __attribute__((unused)),
myf my_flags)
{
DBUG_ENTER("init_alloc_root");
DBUG_PRINT("enter",("root: %p prealloc: %zu", mem_root, pre_alloc_size));
mem_root->free= mem_root->used= mem_root->pre_alloc= 0;
mem_root->min_malloc= 32;
mem_root->block_size= (block_size - ALLOC_ROOT_MIN_BLOCK_SIZE) & ~1;
if (my_flags & MY_THREAD_SPECIFIC)
mem_root->block_size|= 1;
mem_root->error_handler= 0;
mem_root->block_num= 4; /* We shift this with >>2 */
mem_root->first_block_usage= 0;
mem_root->m_psi_key= key;
#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->free= mem_root->pre_alloc=
(USED_MEM*) my_malloc(key, size, MYF(my_flags))))
{
mem_root->free->size= size;
mem_root->free->left= pre_alloc_size;
mem_root->free->next= 0;
TRASH_MEM(mem_root->free);
}
}
#endif
DBUG_VOID_RETURN;
} | O3 | c | init_alloc_root:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rsi)
xorl %eax, %eax
movq %rax, 0x10(%rsi)
movq $0x20, 0x18(%rsi)
andq $-0x2, %rdx
movl %r8d, %ecx
shrl $0x10, %ecx
andl $0x1, %ecx
addq %rdx, %rcx
addq $-0x28, %rcx
movq %rcx, 0x20(%rsi)
movq %rax, 0x30(%rsi)
movq $0x4, 0x28(%rsi)
movl %edi, 0x38(%rsi)
testq %rbx, %rbx
je 0xb9768
movq %rsi, %r14
leaq 0x18(%rbx), %r15
movq %r15, %rsi
movq %r8, %rdx
callq 0xbf321
movq %rax, 0x10(%r14)
movq %rax, (%r14)
testq %rax, %rax
je 0xb9768
movq %r15, 0x10(%rax)
movq (%r14), %rax
movq %rbx, 0x8(%rax)
movq (%r14), %rax
movq $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| init_alloc_root:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword ptr [rsi], xmm0
xor eax, eax
mov [rsi+10h], rax
mov qword ptr [rsi+18h], 20h ; ' '
and rdx, 0FFFFFFFFFFFFFFFEh
mov ecx, r8d
shr ecx, 10h
and ecx, 1
add rcx, rdx
add rcx, 0FFFFFFFFFFFFFFD8h
mov [rsi+20h], rcx
mov [rsi+30h], rax
mov qword ptr [rsi+28h], 4
mov [rsi+38h], edi
test rbx, rbx
jz short loc_B9768
mov r14, rsi
lea r15, [rbx+18h]
mov rsi, r15
mov rdx, r8
call my_malloc
mov [r14+10h], rax
mov [r14], rax
test rax, rax
jz short loc_B9768
mov [rax+10h], r15
mov rax, [r14]
mov [rax+8], rbx
mov rax, [r14]
mov qword ptr [rax], 0
loc_B9768:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long init_alloc_root(long long a1, long long *a2, long long a3, long long a4, long long a5)
{
long long result; // rax
*(_OWORD *)a2 = 0LL;
result = 0LL;
a2[2] = 0LL;
a2[3] = 32LL;
a2[4] = (a3 & 0xFFFFFFFFFFFFFFFELL) + (WORD1(a5) & 1) - 40;
a2[6] = 0LL;
a2[5] = 4LL;
*((_DWORD *)a2 + 14) = a1;
if ( a4 )
{
result = my_malloc(a1, a4 + 24, a5);
a2[2] = result;
*a2 = result;
if ( result )
{
*(_QWORD *)(result + 16) = a4 + 24;
*(_QWORD *)(*a2 + 8) = a4;
result = *a2;
*(_QWORD *)*a2 = 0LL;
}
}
return result;
}
| init_alloc_root:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI],XMM0
XOR EAX,EAX
MOV qword ptr [RSI + 0x10],RAX
MOV qword ptr [RSI + 0x18],0x20
AND RDX,-0x2
MOV ECX,R8D
SHR ECX,0x10
AND ECX,0x1
ADD RCX,RDX
ADD RCX,-0x28
MOV qword ptr [RSI + 0x20],RCX
MOV qword ptr [RSI + 0x30],RAX
MOV qword ptr [RSI + 0x28],0x4
MOV dword ptr [RSI + 0x38],EDI
TEST RBX,RBX
JZ 0x001b9768
MOV R14,RSI
LEA R15,[RBX + 0x18]
MOV RSI,R15
MOV RDX,R8
CALL 0x001bf321
MOV qword ptr [R14 + 0x10],RAX
MOV qword ptr [R14],RAX
TEST RAX,RAX
JZ 0x001b9768
MOV qword ptr [RAX + 0x10],R15
MOV RAX,qword ptr [R14]
MOV qword ptr [RAX + 0x8],RBX
MOV RAX,qword ptr [R14]
MOV qword ptr [RAX],0x0
LAB_001b9768:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void init_alloc_root(int4 param_1,long *param_2,ulong param_3,long param_4,int8 param_5)
{
long lVar1;
*param_2 = 0;
param_2[1] = 0;
param_2[2] = 0;
param_2[3] = 0x20;
param_2[4] = (ulong)((uint)param_5 >> 0x10 & 1) + (param_3 & 0xfffffffffffffffe) + -0x28;
param_2[6] = 0;
param_2[5] = 4;
*(int4 *)(param_2 + 7) = param_1;
if (param_4 != 0) {
lVar1 = my_malloc(param_1,param_4 + 0x18,param_5);
param_2[2] = lVar1;
*param_2 = lVar1;
if (lVar1 != 0) {
*(long *)(lVar1 + 0x10) = param_4 + 0x18;
*(long *)(*param_2 + 8) = param_4;
*(int8 *)*param_2 = 0;
}
}
return;
}
|
|
3,089 | mi_store_bin_pack_key | eloqsql/storage/myisam/mi_search.c | void _mi_store_bin_pack_key(MI_KEYDEF *keyinfo __attribute__((unused)),
register uchar *key_pos,
register MI_KEY_PARAM *s_temp)
{
store_key_length_inc(key_pos,s_temp->ref_length);
memcpy((char*) key_pos,(char*) s_temp->key+s_temp->ref_length,
(size_t) s_temp->totlength-s_temp->ref_length);
if (s_temp->next_key_pos)
{
key_pos+=(uint) (s_temp->totlength-s_temp->ref_length);
store_key_length_inc(key_pos,s_temp->n_ref_length);
if (s_temp->prev_length) /* If we must extend key */
{
memcpy(key_pos,s_temp->prev_key,s_temp->prev_length);
}
}
} | O0 | c | mi_store_bin_pack_key:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpl $0xff, (%rax)
jae 0xc4e7b
movq -0x18(%rbp), %rax
movl (%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
jmp 0xc4eb2
movq -0x10(%rbp), %rax
movb $-0x1, (%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x1c(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x10(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rsi
movq -0x18(%rbp), %rax
movl (%rax), %eax
addq %rax, %rsi
movq -0x18(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
movq -0x18(%rbp), %rax
movl (%rax), %eax
subq %rax, %rdx
callq 0x2a090
movq -0x18(%rbp), %rax
cmpq $0x0, 0x30(%rax)
je 0xc4f8e
movq -0x18(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x18(%rbp), %rax
subl (%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
cmpl $0xff, 0x8(%rax)
jae 0xc4f30
movq -0x18(%rbp), %rax
movl 0x8(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
jmp 0xc4f68
movq -0x10(%rbp), %rax
movb $-0x1, (%rax)
movq -0x18(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x20(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x10(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, 0x18(%rax)
je 0xc4f8c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rsi
movq -0x18(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, %edx
callq 0x2a090
jmp 0xc4f8e
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| _mi_store_bin_pack_key:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_18]
cmp dword ptr [rax], 0FFh
jnb short loc_C4E7B
mov rax, [rbp+var_18]
mov eax, [rax]
mov cl, al
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
jmp short loc_C4EB2
loc_C4E7B:
mov rax, [rbp+var_10]
mov byte ptr [rax], 0FFh
mov rax, [rbp+var_18]
mov eax, [rax]
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov eax, [rbp+var_1C]
shr eax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_10]
add rax, 3
mov [rbp+var_10], rax
loc_C4EB2:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_18]
mov rsi, [rax+20h]
mov rax, [rbp+var_18]
mov eax, [rax]
add rsi, rax
mov rax, [rbp+var_18]
mov eax, [rax+10h]
mov edx, eax
mov rax, [rbp+var_18]
mov eax, [rax]
sub rdx, rax
call _memcpy
mov rax, [rbp+var_18]
cmp qword ptr [rax+30h], 0
jz loc_C4F8E
mov rax, [rbp+var_18]
mov ecx, [rax+10h]
mov rax, [rbp+var_18]
sub ecx, [rax]
mov rax, [rbp+var_10]
mov ecx, ecx
add rax, rcx
mov [rbp+var_10], rax
mov rax, [rbp+var_18]
cmp dword ptr [rax+8], 0FFh
jnb short loc_C4F30
mov rax, [rbp+var_18]
mov eax, [rax+8]
mov cl, al
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
jmp short loc_C4F68
loc_C4F30:
mov rax, [rbp+var_10]
mov byte ptr [rax], 0FFh
mov rax, [rbp+var_18]
mov eax, [rax+8]
mov [rbp+var_20], eax
mov eax, [rbp+var_20]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov eax, [rbp+var_20]
shr eax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_10]
add rax, 3
mov [rbp+var_10], rax
loc_C4F68:
mov rax, [rbp+var_18]
cmp dword ptr [rax+18h], 0
jz short loc_C4F8C
mov rdi, [rbp+var_10]
mov rax, [rbp+var_18]
mov rsi, [rax+28h]
mov rax, [rbp+var_18]
mov eax, [rax+18h]
mov edx, eax
call _memcpy
loc_C4F8C:
jmp short $+2
loc_C4F8E:
add rsp, 20h
pop rbp
retn
| long long mi_store_bin_pack_key(long long a1, _BYTE *a2, unsigned int *a3)
{
long long result; // rax
_BYTE *v4; // rax
unsigned int v5; // [rsp+0h] [rbp-20h]
int v6; // [rsp+4h] [rbp-1Ch]
_BYTE *v8; // [rsp+10h] [rbp-10h]
_BYTE *v9; // [rsp+10h] [rbp-10h]
_BYTE *v10; // [rsp+10h] [rbp-10h]
if ( *a3 >= 0xFF )
{
*a2 = -1;
v6 = *a3;
a2[2] = *a3;
a2[1] = BYTE1(v6);
v8 = a2 + 3;
}
else
{
v8 = a2 + 1;
*a2 = *a3;
}
memcpy(v8, *a3 + *((_QWORD *)a3 + 4), a3[4] - (unsigned long long)*a3);
result = (long long)a3;
if ( *((_QWORD *)a3 + 6) )
{
v9 = &v8[a3[4] - *a3];
if ( a3[2] >= 0xFF )
{
*v9 = -1;
v5 = a3[2];
v9[2] = v5;
v9[1] = BYTE1(v5);
v10 = v9 + 3;
}
else
{
v4 = v9;
v10 = v9 + 1;
*v4 = a3[2];
}
result = (long long)a3;
if ( a3[6] )
return memcpy(v10, *((_QWORD *)a3 + 5), a3[6]);
}
return result;
}
| _mi_store_bin_pack_key:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX],0xff
JNC 0x001c4e7b
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
JMP 0x001c4eb2
LAB_001c4e7b:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0xff
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV EAX,dword ptr [RBP + -0x1c]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x3
MOV qword ptr [RBP + -0x10],RAX
LAB_001c4eb2:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
ADD RSI,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x10]
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
SUB RDX,RAX
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x30],0x0
JZ 0x001c4f8e
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x18]
SUB ECX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x8],0xff
JNC 0x001c4f30
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x8]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
JMP 0x001c4f68
LAB_001c4f30:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0xff
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x20]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV EAX,dword ptr [RBP + -0x20]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x3
MOV qword ptr [RBP + -0x10],RAX
LAB_001c4f68:
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x18],0x0
JZ 0x001c4f8c
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x18]
MOV EDX,EAX
CALL 0x0012a090
LAB_001c4f8c:
JMP 0x001c4f8e
LAB_001c4f8e:
ADD RSP,0x20
POP RBP
RET
|
void _mi_store_bin_pack_key(int8 param_1,int1 *param_2,uint *param_3)
{
uint uVar1;
int1 *puVar2;
int1 *local_18;
if (*param_3 < 0xff) {
local_18 = param_2 + 1;
*param_2 = (char)*param_3;
}
else {
*param_2 = 0xff;
uVar1 = *param_3;
param_2[2] = (char)uVar1;
param_2[1] = (char)(uVar1 >> 8);
local_18 = param_2 + 3;
}
memcpy(local_18,(void *)(*(long *)(param_3 + 8) + (ulong)*param_3),
(ulong)param_3[4] - (ulong)*param_3);
if (*(long *)(param_3 + 0xc) != 0) {
puVar2 = local_18 + (param_3[4] - *param_3);
if (param_3[2] < 0xff) {
local_18 = puVar2 + 1;
*puVar2 = (char)param_3[2];
}
else {
*puVar2 = 0xff;
uVar1 = param_3[2];
puVar2[2] = (char)uVar1;
puVar2[1] = (char)(uVar1 >> 8);
local_18 = puVar2 + 3;
}
if (param_3[6] != 0) {
memcpy(local_18,*(void **)(param_3 + 10),(ulong)param_3[6]);
}
}
return;
}
|
|
3,090 | js_typed_array_finalizer | bluesky950520[P]quickjs/quickjs.c | static void js_typed_array_finalizer(JSRuntime *rt, JSValue val)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSTypedArray *ta = p->u.typed_array;
if (ta) {
/* during the GC the finalizers are called in an arbitrary
order so the ArrayBuffer finalizer may have been called */
if (ta->link.next) {
list_del(&ta->link);
}
JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_OBJECT, ta->buffer));
js_free_rt(rt, ta);
}
} | O1 | c | js_typed_array_finalizer:
pushq %r14
pushq %rbx
pushq %rax
movq 0x30(%rsi), %rbx
testq %rbx, %rbx
je 0x3add4
movq %rdi, %r14
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x3ad87
movq (%rbx), %rcx
movq %rax, 0x8(%rcx)
movq %rcx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq 0x18(%rbx), %rsi
movl (%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%rsi)
cmpl $0x1, %eax
jg 0x3ada6
movq %r14, %rdi
movq $-0x1, %rdx
callq 0x21266
decq 0x28(%r14)
movq %rbx, %rdi
callq *0x20(%r14)
movq 0x10(%r14), %rcx
movq 0x30(%r14), %rdx
subq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x30(%r14)
movq 0x40(%r14), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rcx
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| js_typed_array_finalizer:
push r14
push rbx
push rax
mov rbx, [rsi+30h]
test rbx, rbx
jz short loc_3ADD4
mov r14, rdi
mov rax, [rbx+8]
test rax, rax
jz short loc_3AD87
mov rcx, [rbx]
mov [rcx+8], rax
mov [rax], rcx
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
loc_3AD87:
mov rsi, [rbx+18h]
mov eax, [rsi]
lea ecx, [rax-1]
mov [rsi], ecx
cmp eax, 1
jg short loc_3ADA6
mov rdi, r14
mov rdx, 0FFFFFFFFFFFFFFFFh
call js_free_value_rt
loc_3ADA6:
dec qword ptr [r14+28h]
mov rdi, rbx
call qword ptr [r14+20h]
mov rcx, [r14+10h]
mov rdx, [r14+30h]
sub rdx, rax
add rdx, 0FFFFFFFFFFFFFFF8h
mov [r14+30h], rdx
mov rdi, [r14+40h]
mov rsi, rbx
add rsp, 8
pop rbx
pop r14
jmp rcx
loc_3ADD4:
add rsp, 8
pop rbx
pop r14
retn
| long long js_typed_array_finalizer(long long a1, long long a2)
{
long long result; // rax
long long *v3; // rbx
_QWORD *v4; // rax
long long v5; // rcx
_QWORD *v6; // rsi
int v7; // eax
long long v8; // rax
long long ( *v9)(_QWORD, long long *); // rcx
v3 = *(long long **)(a2 + 48);
if ( v3 )
{
v4 = (_QWORD *)v3[1];
if ( v4 )
{
v5 = *v3;
*(_QWORD *)(v5 + 8) = v4;
*v4 = v5;
*(_OWORD *)v3 = 0LL;
}
v6 = (_QWORD *)v3[3];
v7 = (*(_DWORD *)v6)--;
if ( v7 <= 1 )
js_free_value_rt(a1, v6, -1);
--*(_QWORD *)(a1 + 40);
v8 = (*(long long ( **)(long long *))(a1 + 32))(v3);
v9 = *(long long ( **)(_QWORD, long long *))(a1 + 16);
*(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v8 - 8;
return v9(*(_QWORD *)(a1 + 64), v3);
}
return result;
}
| js_typed_array_finalizer:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,qword ptr [RSI + 0x30]
TEST RBX,RBX
JZ 0x0013add4
MOV R14,RDI
MOV RAX,qword ptr [RBX + 0x8]
TEST RAX,RAX
JZ 0x0013ad87
MOV RCX,qword ptr [RBX]
MOV qword ptr [RCX + 0x8],RAX
MOV qword ptr [RAX],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
LAB_0013ad87:
MOV RSI,qword ptr [RBX + 0x18]
MOV EAX,dword ptr [RSI]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RSI],ECX
CMP EAX,0x1
JG 0x0013ada6
MOV RDI,R14
MOV RDX,-0x1
CALL 0x00121266
LAB_0013ada6:
DEC qword ptr [R14 + 0x28]
MOV RDI,RBX
CALL qword ptr [R14 + 0x20]
MOV RCX,qword ptr [R14 + 0x10]
MOV RDX,qword ptr [R14 + 0x30]
SUB RDX,RAX
ADD RDX,-0x8
MOV qword ptr [R14 + 0x30],RDX
MOV RDI,qword ptr [R14 + 0x40]
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP RCX
LAB_0013add4:
ADD RSP,0x8
POP RBX
POP R14
RET
|
void js_typed_array_finalizer(long param_1,long param_2)
{
int iVar1;
long *plVar2;
long *plVar3;
int *piVar4;
long lVar5;
plVar2 = *(long **)(param_2 + 0x30);
if (plVar2 != (long *)0x0) {
plVar3 = (long *)plVar2[1];
if (plVar3 != (long *)0x0) {
lVar5 = *plVar2;
*(long **)(lVar5 + 8) = plVar3;
*plVar3 = lVar5;
*plVar2 = 0;
plVar2[1] = 0;
}
piVar4 = (int *)plVar2[3];
iVar1 = *piVar4;
*piVar4 = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(param_1,piVar4,0xffffffffffffffff);
}
*(long *)(param_1 + 0x28) = *(long *)(param_1 + 0x28) + -1;
lVar5 = (**(code **)(param_1 + 0x20))(plVar2);
lVar5 = (*(long *)(param_1 + 0x30) - lVar5) + -8;
*(long *)(param_1 + 0x30) = lVar5;
/* WARNING: Could not recover jumptable at 0x0013add2. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(param_1 + 0x10))
(*(int8 *)(param_1 + 0x40),plVar2,lVar5,*(code **)(param_1 + 0x10));
return;
}
return;
}
|
|
3,091 | js_typed_array_finalizer | bluesky950520[P]quickjs/quickjs.c | static void js_typed_array_finalizer(JSRuntime *rt, JSValue val)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSTypedArray *ta = p->u.typed_array;
if (ta) {
/* during the GC the finalizers are called in an arbitrary
order so the ArrayBuffer finalizer may have been called */
if (ta->link.next) {
list_del(&ta->link);
}
JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_OBJECT, ta->buffer));
js_free_rt(rt, ta);
}
} | O3 | c | js_typed_array_finalizer:
pushq %r14
pushq %rbx
pushq %rax
movq 0x30(%rsi), %rbx
testq %rbx, %rbx
je 0x3c35f
movq %rdi, %r14
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x3c312
movq (%rbx), %rcx
movq %rax, 0x8(%rcx)
movq %rcx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq 0x18(%rbx), %rsi
movl (%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%rsi)
cmpl $0x1, %eax
jg 0x3c331
movq %r14, %rdi
movq $-0x1, %rdx
callq 0x219cc
decq 0x28(%r14)
movq %rbx, %rdi
callq *0x20(%r14)
movq 0x10(%r14), %rcx
movq 0x30(%r14), %rdx
subq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x30(%r14)
movq 0x40(%r14), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rcx
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| js_typed_array_finalizer:
push r14
push rbx
push rax
mov rbx, [rsi+30h]
test rbx, rbx
jz short loc_3C35F
mov r14, rdi
mov rax, [rbx+8]
test rax, rax
jz short loc_3C312
mov rcx, [rbx]
mov [rcx+8], rax
mov [rax], rcx
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
loc_3C312:
mov rsi, [rbx+18h]
mov eax, [rsi]
lea ecx, [rax-1]
mov [rsi], ecx
cmp eax, 1
jg short loc_3C331
mov rdi, r14
mov rdx, 0FFFFFFFFFFFFFFFFh
call js_free_value_rt
loc_3C331:
dec qword ptr [r14+28h]
mov rdi, rbx
call qword ptr [r14+20h]
mov rcx, [r14+10h]
mov rdx, [r14+30h]
sub rdx, rax
add rdx, 0FFFFFFFFFFFFFFF8h
mov [r14+30h], rdx
mov rdi, [r14+40h]
mov rsi, rbx
add rsp, 8
pop rbx
pop r14
jmp rcx
loc_3C35F:
add rsp, 8
pop rbx
pop r14
retn
| long long js_typed_array_finalizer(long long a1, long long a2)
{
long long result; // rax
long long *v3; // rbx
_QWORD *v4; // rax
long long v5; // rcx
_QWORD *v6; // rsi
int v7; // eax
long long v8; // rax
long long ( *v9)(_QWORD, long long *); // rcx
v3 = *(long long **)(a2 + 48);
if ( v3 )
{
v4 = (_QWORD *)v3[1];
if ( v4 )
{
v5 = *v3;
*(_QWORD *)(v5 + 8) = v4;
*v4 = v5;
*(_OWORD *)v3 = 0LL;
}
v6 = (_QWORD *)v3[3];
v7 = (*(_DWORD *)v6)--;
if ( v7 <= 1 )
js_free_value_rt(a1, v6, -1);
--*(_QWORD *)(a1 + 40);
v8 = (*(long long ( **)(long long *))(a1 + 32))(v3);
v9 = *(long long ( **)(_QWORD, long long *))(a1 + 16);
*(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v8 - 8;
return v9(*(_QWORD *)(a1 + 64), v3);
}
return result;
}
| js_typed_array_finalizer:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,qword ptr [RSI + 0x30]
TEST RBX,RBX
JZ 0x0013c35f
MOV R14,RDI
MOV RAX,qword ptr [RBX + 0x8]
TEST RAX,RAX
JZ 0x0013c312
MOV RCX,qword ptr [RBX]
MOV qword ptr [RCX + 0x8],RAX
MOV qword ptr [RAX],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
LAB_0013c312:
MOV RSI,qword ptr [RBX + 0x18]
MOV EAX,dword ptr [RSI]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RSI],ECX
CMP EAX,0x1
JG 0x0013c331
MOV RDI,R14
MOV RDX,-0x1
CALL 0x001219cc
LAB_0013c331:
DEC qword ptr [R14 + 0x28]
MOV RDI,RBX
CALL qword ptr [R14 + 0x20]
MOV RCX,qword ptr [R14 + 0x10]
MOV RDX,qword ptr [R14 + 0x30]
SUB RDX,RAX
ADD RDX,-0x8
MOV qword ptr [R14 + 0x30],RDX
MOV RDI,qword ptr [R14 + 0x40]
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP RCX
LAB_0013c35f:
ADD RSP,0x8
POP RBX
POP R14
RET
|
void js_typed_array_finalizer(long param_1,long param_2)
{
int iVar1;
long *plVar2;
long *plVar3;
int *piVar4;
long lVar5;
plVar2 = *(long **)(param_2 + 0x30);
if (plVar2 != (long *)0x0) {
plVar3 = (long *)plVar2[1];
if (plVar3 != (long *)0x0) {
lVar5 = *plVar2;
*(long **)(lVar5 + 8) = plVar3;
*plVar3 = lVar5;
*plVar2 = 0;
plVar2[1] = 0;
}
piVar4 = (int *)plVar2[3];
iVar1 = *piVar4;
*piVar4 = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(param_1,piVar4,0xffffffffffffffff);
}
*(long *)(param_1 + 0x28) = *(long *)(param_1 + 0x28) + -1;
lVar5 = (**(code **)(param_1 + 0x20))(plVar2);
lVar5 = (*(long *)(param_1 + 0x30) - lVar5) + -8;
*(long *)(param_1 + 0x30) = lVar5;
/* WARNING: Could not recover jumptable at 0x0013c35d. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(param_1 + 0x10))
(*(int8 *)(param_1 + 0x40),plVar2,lVar5,*(code **)(param_1 + 0x10));
return;
}
return;
}
|
|
3,092 | js_array_pop | bluesky950520[P]quickjs/quickjs.c | static JSValue js_array_pop(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int shift)
{
JSValue obj, res = JS_UNDEFINED;
int64_t len, newLen;
JSValue *arrp;
uint32_t count32;
obj = JS_ToObject(ctx, this_val);
if (js_get_length64(ctx, &len, obj))
goto exception;
newLen = 0;
if (len > 0) {
newLen = len - 1;
/* Special case fast arrays */
if (js_get_fast_array(ctx, obj, &arrp, &count32) && count32 == len) {
JSObject *p = JS_VALUE_GET_OBJ(obj);
if (shift) {
res = arrp[0];
memmove(arrp, arrp + 1, (count32 - 1) * sizeof(*arrp));
p->u.array.count--;
} else {
res = arrp[count32 - 1];
p->u.array.count--;
}
} else {
if (shift) {
res = JS_GetPropertyInt64(ctx, obj, 0);
if (JS_IsException(res))
goto exception;
if (JS_CopySubArray(ctx, obj, 0, 1, len - 1, +1))
goto exception;
} else {
res = JS_GetPropertyInt64(ctx, obj, newLen);
if (JS_IsException(res))
goto exception;
}
if (JS_DeletePropertyInt64(ctx, obj, newLen, JS_PROP_THROW) < 0)
goto exception;
}
}
if (JS_SetProperty(ctx, obj, JS_ATOM_length, js_int64(newLen)) < 0)
goto exception;
JS_FreeValue(ctx, obj);
return res;
exception:
JS_FreeValue(ctx, res);
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
} | O1 | c | js_array_pop:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, %r12d
movq %rdi, %rbx
callq 0x261c9
movq %rax, %r14
movq %rdx, %r15
movq %rax, 0x40(%rsp)
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
movq %rax, %rdx
movq %r15, %rcx
callq 0x21ec8
testl %eax, %eax
je 0x4c6b5
movl $0x3, %r12d
xorl %r13d, %r13d
movq 0x18(%rbx), %rdi
addq $0x18, %rbx
movq %r13, %rsi
movq %r12, %rdx
callq 0x1ccb2
movl $0x6, %r12d
xorl %r13d, %r13d
movq (%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1ccb2
movq %r13, %rax
movq %r12, %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x38(%rsp), %rax
testq %rax, %rax
jle 0x4c724
movq %r14, 0x20(%rsp)
cmpl $-0x1, %r15d
jne 0x4c6e0
movq 0x20(%rsp), %rcx
cmpw $0x2, 0x6(%rcx)
jne 0x4c6e0
testb $0x8, 0x5(%rcx)
jne 0x4c837
xorl %ecx, %ecx
leaq -0x1(%rax), %rbp
testb %cl, %cl
je 0x4c734
movl %edx, %ecx
cmpq %rcx, %rax
jne 0x4c734
movq 0x40(%rsp), %rax
testl %r12d, %r12d
je 0x4c7bb
movq (%rdi), %r13
movq 0x8(%rdi), %r12
leaq 0x10(%rdi), %rsi
decl %edx
shlq $0x4, %rdx
movq %rax, 0x30(%rsp)
callq 0xe710
movq 0x30(%rsp), %rax
jmp 0x4c7ca
movl $0x3, %r12d
xorl %ebp, %ebp
xorl %r13d, %r13d
jmp 0x4c7cd
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
testl %r12d, %r12d
je 0x4c783
xorl %ecx, %ecx
callq 0x235a0
movq %rax, %r13
movq %rdx, %r12
cmpl $0x6, %r12d
je 0x4c676
movl $0x1, (%rsp)
movl $0x1, %r8d
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
movq %rbp, %r9
callq 0x4c845
testl %eax, %eax
jne 0x4c676
jmp 0x4c79b
movq %rbp, %rcx
callq 0x235a0
movq %rax, %r13
movq %rdx, %r12
cmpl $0x6, %r12d
je 0x4c676
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbp, %rcx
movl $0x4000, %r8d # imm = 0x4000
callq 0x267dd
testl %eax, %eax
jns 0x4c7cd
jmp 0x4c676
decl %edx
shlq $0x4, %rdx
movq (%rdi,%rdx), %r13
movq 0x8(%rdi,%rdx), %r12
decl 0x40(%rax)
movslq %ebp, %rax
xorl %ecx, %ecx
cmpq %rbp, %rax
movl %eax, %eax
cvtsi2sd %rbp, %xmm0
movq %xmm0, %r8
cmoveq %rax, %r8
movl $0x7, %r9d
cmoveq %rcx, %r9
movq %r14, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x18(%rsp)
movl $0x4000, 0x10(%rsp) # imm = 0x4000
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl $0x32, %ecx
callq 0x23774
testl %eax, %eax
js 0x4c676
addq $0x18, %rbx
jmp 0x4c692
movl 0x40(%rcx), %edx
movq 0x38(%rcx), %rdi
movb $0x1, %cl
jmp 0x4c6e2
| js_array_pop:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r12d, r9d
mov rbx, rdi
call JS_ToObject
mov r14, rax
mov r15, rdx
mov [rsp+78h+var_38], rax
lea rsi, [rsp+78h+var_40]
mov rdi, rbx
mov rdx, rax
mov rcx, r15
call js_get_length64
test eax, eax
jz short loc_4C6B5
mov r12d, 3
xor r13d, r13d
loc_4C676:
mov rdi, [rbx+18h]
add rbx, 18h
mov rsi, r13
mov rdx, r12
call JS_FreeValueRT
mov r12d, 6
xor r13d, r13d
loc_4C692:
mov rdi, [rbx]
mov rsi, r14
mov rdx, r15
call JS_FreeValueRT
mov rax, r13
mov rdx, r12
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4C6B5:
mov rax, [rsp+78h+var_40]
test rax, rax
jle short loc_4C724
mov qword ptr [rsp+78h+var_58], r14
cmp r15d, 0FFFFFFFFh
jnz short loc_4C6E0
mov rcx, qword ptr [rsp+78h+var_58]
cmp word ptr [rcx+6], 2
jnz short loc_4C6E0
test byte ptr [rcx+5], 8
jnz loc_4C837
loc_4C6E0:
xor ecx, ecx
loc_4C6E2:
lea rbp, [rax-1]
test cl, cl
jz short loc_4C734
mov ecx, edx
cmp rax, rcx
jnz short loc_4C734
mov rax, [rsp+78h+var_38]
test r12d, r12d
jz loc_4C7BB
mov r13, [rdi]
mov r12, [rdi+8]
lea rsi, [rdi+10h]
dec edx
shl rdx, 4
mov [rsp+78h+var_48], rax
call _memmove
mov rax, [rsp+78h+var_48]
jmp loc_4C7CA
loc_4C724:
mov r12d, 3
xor ebp, ebp
xor r13d, r13d
jmp loc_4C7CD
loc_4C734:
mov rdi, rbx
mov rsi, r14
mov rdx, r15
test r12d, r12d
jz short loc_4C783
xor ecx, ecx
call JS_GetPropertyInt64
mov r13, rax
mov r12, rdx
cmp r12d, 6
jz loc_4C676
mov dword ptr [rsp+78h+var_78], 1
mov r8d, 1
mov rdi, rbx
mov rsi, r14
mov rdx, r15
xor ecx, ecx
mov r9, rbp
call JS_CopySubArray
test eax, eax
jnz loc_4C676
jmp short loc_4C79B
loc_4C783:
mov rcx, rbp
call JS_GetPropertyInt64
mov r13, rax
mov r12, rdx
cmp r12d, 6
jz loc_4C676
loc_4C79B:
mov rdi, rbx
mov rsi, r14
mov rdx, r15
mov rcx, rbp
mov r8d, 4000h
call JS_DeletePropertyInt64
test eax, eax
jns short loc_4C7CD
jmp loc_4C676
loc_4C7BB:
dec edx
shl rdx, 4
mov r13, [rdi+rdx]
mov r12, [rdi+rdx+8]
loc_4C7CA:
dec dword ptr [rax+40h]
loc_4C7CD:
movsxd rax, ebp
xor ecx, ecx
cmp rax, rbp
mov eax, eax
cvtsi2sd xmm0, rbp
movq r8, xmm0
cmovz r8, rax
mov r9d, 7
cmovz r9, rcx
mov qword ptr [rsp+78h+var_58], r14
mov qword ptr [rsp+78h+var_58+8], r15
movups xmm0, [rsp+78h+var_58]
movups [rsp+78h+var_78], xmm0
mov [rsp+78h+var_60], 0
mov [rsp+78h+var_68], 4000h
mov rdi, rbx
mov rsi, r14
mov rdx, r15
mov ecx, 32h ; '2'
call JS_SetPropertyInternal2
test eax, eax
js loc_4C676
add rbx, 18h
jmp loc_4C692
loc_4C837:
mov edx, [rcx+40h]
mov rdi, [rcx+38h]
mov cl, 1
jmp loc_4C6E2
| _DWORD * js_array_pop(
_QWORD *a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
int v14; // r12d
long long v15; // rbx
_DWORD *v16; // r14
unsigned long long v17; // rdx
unsigned long long v18; // r15
int v19; // edx
double v20; // xmm4_8
double v21; // xmm5_8
long long v22; // r12
_DWORD *PropertyInt64; // r13
long long v24; // rdi
long long *v25; // rbx
char v27; // cl
unsigned long long v28; // rbp
_DWORD *v29; // rax
long long v30; // rdx
double v31; // xmm4_8
double v32; // xmm5_8
long long v33; // rdx
long long v34; // rdx
double v35; // r8
long long v36; // r9
__m128 v37; // [rsp+20h] [rbp-58h]
_DWORD *v38; // [rsp+30h] [rbp-48h]
long long v39; // [rsp+38h] [rbp-40h] BYREF
_DWORD *v40; // [rsp+40h] [rbp-38h]
v14 = a6;
v15 = (long long)a1;
v16 = JS_ToObject((long long)a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v18 = v17;
v40 = v16;
if ( (unsigned int)js_get_length64((long long)a1, &v39, (int)v16, v17) )
{
v22 = 3LL;
PropertyInt64 = 0LL;
}
else
{
if ( v39 <= 0 )
{
v22 = 3LL;
v28 = 0LL;
PropertyInt64 = 0LL;
}
else
{
if ( (_DWORD)v18 == -1 && *((_WORD *)v16 + 3) == 2 && (*((_BYTE *)v16 + 5) & 8) != 0 )
{
v19 = v16[16];
a1 = (_QWORD *)*((_QWORD *)v16 + 7);
v27 = 1;
}
else
{
v27 = 0;
}
v28 = v39 - 1;
if ( v27 && v39 == v19 )
{
v29 = v40;
if ( v14 )
{
PropertyInt64 = (_DWORD *)*a1;
v22 = a1[1];
v38 = v40;
memmove(a1, a1 + 2, 16LL * (unsigned int)(v19 - 1));
v29 = v38;
}
else
{
v34 = 2LL * (unsigned int)(v19 - 1);
PropertyInt64 = (_DWORD *)a1[v34];
v22 = a1[v34 + 1];
}
--v29[16];
}
else
{
if ( v14 )
{
PropertyInt64 = (_DWORD *)JS_GetPropertyInt64(v15, (long long)v16, v18, 0LL);
v22 = v30;
if ( (_DWORD)v30 == 6 || (unsigned int)JS_CopySubArray(v15, (_DWORD)v16, v18, 0, 1, v28, 1) )
goto LABEL_3;
}
else
{
PropertyInt64 = (_DWORD *)JS_GetPropertyInt64(v15, (long long)v16, v18, v39 - 1);
v22 = v33;
if ( (_DWORD)v33 == 6 )
goto LABEL_3;
}
if ( (int)JS_DeletePropertyInt64(v15, (long long)v16, v18, v28, 0x4000, a7, a8, a9, a10, v31, v32, a13, a14) < 0 )
goto LABEL_3;
}
}
v35 = (double)(int)v28;
if ( (int)v28 == v28 )
*(_QWORD *)&v35 = (unsigned int)v28;
v36 = 7LL;
if ( (int)v28 == v28 )
v36 = 0LL;
v37.m128_u64[0] = (unsigned long long)v16;
v37.m128_u64[1] = v18;
if ( (int)JS_SetPropertyInternal2(
v15,
(long long)v16,
v18,
0x32u,
*(_DWORD **)&v35,
v36,
v37,
a8,
a9,
a10,
v20,
v21,
a13,
a14,
(long long)v16,
v18,
0x4000u,
0LL) >= 0 )
{
v25 = (long long *)(v15 + 24);
goto LABEL_4;
}
}
LABEL_3:
v24 = *(_QWORD *)(v15 + 24);
v25 = (long long *)(v15 + 24);
JS_FreeValueRT(v24, PropertyInt64, v22);
PropertyInt64 = 0LL;
LABEL_4:
JS_FreeValueRT(*v25, v16, v18);
return PropertyInt64;
}
| js_array_pop:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R12D,R9D
MOV RBX,RDI
CALL 0x001261c9
MOV R14,RAX
MOV R15,RDX
MOV qword ptr [RSP + 0x40],RAX
LEA RSI,[RSP + 0x38]
MOV RDI,RBX
MOV RDX,RAX
MOV RCX,R15
CALL 0x00121ec8
TEST EAX,EAX
JZ 0x0014c6b5
MOV R12D,0x3
XOR R13D,R13D
LAB_0014c676:
MOV RDI,qword ptr [RBX + 0x18]
ADD RBX,0x18
MOV RSI,R13
MOV RDX,R12
CALL 0x0011ccb2
MOV R12D,0x6
XOR R13D,R13D
LAB_0014c692:
MOV RDI,qword ptr [RBX]
MOV RSI,R14
MOV RDX,R15
CALL 0x0011ccb2
MOV RAX,R13
MOV RDX,R12
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014c6b5:
MOV RAX,qword ptr [RSP + 0x38]
TEST RAX,RAX
JLE 0x0014c724
MOV qword ptr [RSP + 0x20],R14
CMP R15D,-0x1
JNZ 0x0014c6e0
MOV RCX,qword ptr [RSP + 0x20]
CMP word ptr [RCX + 0x6],0x2
JNZ 0x0014c6e0
TEST byte ptr [RCX + 0x5],0x8
JNZ 0x0014c837
LAB_0014c6e0:
XOR ECX,ECX
LAB_0014c6e2:
LEA RBP,[RAX + -0x1]
TEST CL,CL
JZ 0x0014c734
MOV ECX,EDX
CMP RAX,RCX
JNZ 0x0014c734
MOV RAX,qword ptr [RSP + 0x40]
TEST R12D,R12D
JZ 0x0014c7bb
MOV R13,qword ptr [RDI]
MOV R12,qword ptr [RDI + 0x8]
LEA RSI,[RDI + 0x10]
DEC EDX
SHL RDX,0x4
MOV qword ptr [RSP + 0x30],RAX
CALL 0x0010e710
MOV RAX,qword ptr [RSP + 0x30]
JMP 0x0014c7ca
LAB_0014c724:
MOV R12D,0x3
XOR EBP,EBP
XOR R13D,R13D
JMP 0x0014c7cd
LAB_0014c734:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
TEST R12D,R12D
JZ 0x0014c783
XOR ECX,ECX
CALL 0x001235a0
MOV R13,RAX
MOV R12,RDX
CMP R12D,0x6
JZ 0x0014c676
MOV dword ptr [RSP],0x1
MOV R8D,0x1
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
XOR ECX,ECX
MOV R9,RBP
CALL 0x0014c845
TEST EAX,EAX
JNZ 0x0014c676
JMP 0x0014c79b
LAB_0014c783:
MOV RCX,RBP
CALL 0x001235a0
MOV R13,RAX
MOV R12,RDX
CMP R12D,0x6
JZ 0x0014c676
LAB_0014c79b:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
MOV RCX,RBP
MOV R8D,0x4000
CALL 0x001267dd
TEST EAX,EAX
JNS 0x0014c7cd
JMP 0x0014c676
LAB_0014c7bb:
DEC EDX
SHL RDX,0x4
MOV R13,qword ptr [RDI + RDX*0x1]
MOV R12,qword ptr [RDI + RDX*0x1 + 0x8]
LAB_0014c7ca:
DEC dword ptr [RAX + 0x40]
LAB_0014c7cd:
MOVSXD RAX,EBP
XOR ECX,ECX
CMP RAX,RBP
MOV EAX,EAX
CVTSI2SD XMM0,RBP
MOVQ R8,XMM0
CMOVZ R8,RAX
MOV R9D,0x7
CMOVZ R9,RCX
MOV qword ptr [RSP + 0x20],R14
MOV qword ptr [RSP + 0x28],R15
MOVUPS XMM0,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x18],0x0
MOV dword ptr [RSP + 0x10],0x4000
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
MOV ECX,0x32
CALL 0x00123774
TEST EAX,EAX
JS 0x0014c676
ADD RBX,0x18
JMP 0x0014c692
LAB_0014c837:
MOV EDX,dword ptr [RCX + 0x40]
MOV RDI,qword ptr [RCX + 0x38]
MOV CL,0x1
JMP 0x0014c6e2
|
int1 [16] js_array_pop(int8 *param_1)
{
long lVar1;
int iVar2;
long lVar3;
int8 uVar4;
ulong extraout_RDX;
ulong uVar5;
ulong uVar6;
int8 *__dest;
double dVar7;
int in_R9D;
int8 uVar8;
int8 uVar9;
bool bVar10;
int1 auVar11 [16];
int1 auVar12 [16];
int4 local_58;
ulong local_40;
long local_38;
auVar11 = JS_ToObject();
uVar4 = auVar11._8_8_;
lVar3 = auVar11._0_8_;
__dest = param_1;
local_38 = lVar3;
iVar2 = js_get_length64(param_1,&local_40,lVar3);
lVar1 = local_38;
if (iVar2 != 0) {
auVar12 = ZEXT816(3) << 0x40;
goto LAB_0014c676;
}
if ((long)local_40 < 1) {
uVar6 = 0;
auVar12 = ZEXT816(3) << 0x40;
LAB_0014c7cd:
bVar10 = (long)(int)uVar6 == uVar6;
dVar7 = (double)(long)uVar6;
if (bVar10) {
dVar7 = (double)(uVar6 & 0xffffffff);
}
uVar8 = 7;
if (bVar10) {
uVar8 = 0;
}
local_58 = auVar11._0_4_;
iVar2 = JS_SetPropertyInternal2
(param_1,lVar3,uVar4,0x32,dVar7,uVar8,local_58,auVar11._8_4_,0x4000,0);
if (-1 < iVar2) goto LAB_0014c692;
}
else {
if (((auVar11._8_4_ == -1) && (*(short *)(lVar3 + 6) == 2)) && ((*(byte *)(lVar3 + 5) & 8) != 0)
) {
uVar5 = (ulong)*(uint *)(lVar3 + 0x40);
__dest = *(int8 **)(lVar3 + 0x38);
bVar10 = true;
}
else {
bVar10 = false;
uVar5 = extraout_RDX;
}
uVar6 = local_40 - 1;
if ((bVar10) && (local_40 == (uVar5 & 0xffffffff))) {
if (in_R9D == 0) {
uVar5 = (ulong)((int)uVar5 - 1);
uVar8 = __dest[uVar5 * 2];
uVar9 = __dest[uVar5 * 2 + 1];
}
else {
uVar8 = *__dest;
uVar9 = __dest[1];
memmove(__dest,__dest + 2,(ulong)((int)uVar5 - 1) << 4);
}
auVar12._8_8_ = uVar9;
auVar12._0_8_ = uVar8;
*(int *)(lVar1 + 0x40) = *(int *)(lVar1 + 0x40) + -1;
goto LAB_0014c7cd;
}
if (in_R9D == 0) {
auVar12 = JS_GetPropertyInt64(param_1,lVar3,uVar4,uVar6);
if (auVar12._8_4_ != 6) goto LAB_0014c79b;
}
else {
auVar12 = JS_GetPropertyInt64(param_1,lVar3,uVar4,0);
if ((auVar12._8_4_ != 6) &&
(iVar2 = JS_CopySubArray(param_1,lVar3,uVar4,0,1,uVar6,1), iVar2 == 0)) {
LAB_0014c79b:
iVar2 = JS_DeletePropertyInt64(param_1,lVar3,uVar4,uVar6,0x4000);
if (-1 < iVar2) goto LAB_0014c7cd;
}
}
}
LAB_0014c676:
JS_FreeValueRT(param_1[3],auVar12._0_8_,auVar12._8_8_);
auVar12 = ZEXT816(6) << 0x40;
LAB_0014c692:
JS_FreeValueRT(param_1[3],lVar3,uVar4);
return auVar12;
}
|
|
3,093 | js_string_charAt | bluesky950520[P]quickjs/quickjs.c | static JSValue js_string_charAt(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue val, ret;
JSString *p;
int idx, c;
val = JS_ToStringCheckObject(ctx, this_val);
if (JS_IsException(val))
return val;
p = JS_VALUE_GET_STRING(val);
if (JS_ToInt32Sat(ctx, &idx, argv[0])) {
JS_FreeValue(ctx, val);
return JS_EXCEPTION;
}
if (idx < 0 || idx >= p->len) {
ret = JS_AtomToString(ctx, JS_ATOM_empty_string);
} else {
c = string_get(p, idx);
ret = js_new_string_char(ctx, c);
}
JS_FreeValue(ctx, val);
return ret;
} | O0 | c | js_string_charAt:
subq $0x98, %rsp
movq %rsi, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
movq %rdi, 0x70(%rsp)
movl %ecx, 0x6c(%rsp)
movq %r8, 0x60(%rsp)
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
callq 0x76ac0
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0xd94ba
movq 0x50(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x90(%rsp)
jmp 0xd95cf
movq 0x50(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x70(%rsp), %rdi
movq 0x60(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
leaq 0x34(%rsp), %rsi
callq 0x3e970
cmpl $0x0, %eax
je 0xd9514
movq 0x70(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x29f80
movl $0x0, 0x88(%rsp)
movq $0x6, 0x90(%rsp)
jmp 0xd95cf
cmpl $0x0, 0x34(%rsp)
jl 0xd9533
movl 0x34(%rsp), %eax
movq 0x38(%rsp), %rcx
movq 0x4(%rcx), %rcx
andq $0x7fffffff, %rcx # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jl 0xd9562
movq 0x70(%rsp), %rdi
movl $0x2f, %esi
callq 0x2f2f0
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x48(%rsp)
jmp 0xd95a1
movq 0x38(%rsp), %rdi
movl 0x34(%rsp), %esi
callq 0x62ec0
movl %eax, 0x30(%rsp)
movq 0x70(%rsp), %rdi
movl 0x30(%rsp), %eax
movzwl %ax, %esi
callq 0x66740
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
movq (%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x70(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x29f80
movq 0x40(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x88(%rsp), %rax
movq 0x90(%rsp), %rdx
addq $0x98, %rsp
retq
nopw (%rax,%rax)
| js_string_charAt:
sub rsp, 98h
mov [rsp+98h+var_20], rsi
mov [rsp+98h+var_18], rdx
mov [rsp+98h+var_28], rdi
mov [rsp+98h+var_2C], ecx
mov [rsp+98h+var_38], r8
mov rdi, [rsp+98h+var_28]
mov rsi, [rsp+98h+var_20]
mov rdx, [rsp+98h+var_18]
call JS_ToStringCheckObject
mov [rsp+98h+var_78], rax
mov [rsp+98h+var_70], rdx
mov rax, [rsp+98h+var_78]
mov [rsp+98h+var_48], rax
mov rax, [rsp+98h+var_70]
mov [rsp+98h+var_40], rax
mov rdi, [rsp+98h+var_48]
mov rsi, [rsp+98h+var_40]
call JS_IsException_1
cmp eax, 0
jz short loc_D94BA
mov rax, [rsp+98h+var_48]
mov [rsp+98h+var_10], rax
mov rax, [rsp+98h+var_40]
mov [rsp+98h+var_8], rax
jmp loc_D95CF
loc_D94BA:
mov rax, [rsp+98h+var_48]
mov [rsp+98h+var_60], rax
mov rdi, [rsp+98h+var_28]
mov rax, [rsp+98h+var_38]
mov rdx, [rax]
mov rcx, [rax+8]
lea rsi, [rsp+98h+var_64]
call JS_ToInt32Sat
cmp eax, 0
jz short loc_D9514
mov rdi, [rsp+98h+var_28]
mov rsi, [rsp+98h+var_48]
mov rdx, [rsp+98h+var_40]
call JS_FreeValue
mov dword ptr [rsp+98h+var_10], 0
mov [rsp+98h+var_8], 6
jmp loc_D95CF
loc_D9514:
cmp [rsp+98h+var_64], 0
jl short loc_D9533
mov eax, [rsp+98h+var_64]
mov rcx, [rsp+98h+var_60]
mov rcx, [rcx+4]
and rcx, 7FFFFFFFh
cmp eax, ecx
jl short loc_D9562
loc_D9533:
mov rdi, [rsp+98h+var_28]
mov esi, 2Fh ; '/'
call JS_AtomToString
mov [rsp+98h+var_88], rax
mov [rsp+98h+var_80], rdx
mov rax, [rsp+98h+var_88]
mov [rsp+98h+var_58], rax
mov rax, [rsp+98h+var_80]
mov [rsp+98h+var_50], rax
jmp short loc_D95A1
loc_D9562:
mov rdi, [rsp+98h+var_60]
mov esi, [rsp+98h+var_64]
call string_get
mov [rsp+98h+var_68], eax
mov rdi, [rsp+98h+var_28]
mov eax, [rsp+98h+var_68]
movzx esi, ax
call js_new_string_char
mov [rsp+98h+var_98], rax
mov [rsp+98h+var_90], rdx
mov rax, [rsp+98h+var_98]
mov [rsp+98h+var_58], rax
mov rax, [rsp+98h+var_90]
mov [rsp+98h+var_50], rax
loc_D95A1:
mov rdi, [rsp+98h+var_28]
mov rsi, [rsp+98h+var_48]
mov rdx, [rsp+98h+var_40]
call JS_FreeValue
mov rax, [rsp+98h+var_58]
mov [rsp+98h+var_10], rax
mov rax, [rsp+98h+var_50]
mov [rsp+98h+var_8], rax
loc_D95CF:
mov rax, [rsp+98h+var_10]
mov rdx, [rsp+98h+var_8]
add rsp, 98h
retn
| long long js_string_charAt(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v14; // rdx
long long v15; // rdx
long long v16; // rdx
unsigned __int16 v18; // [rsp+30h] [rbp-68h]
int v19; // [rsp+34h] [rbp-64h] BYREF
long long v20; // [rsp+38h] [rbp-60h]
long long v21; // [rsp+40h] [rbp-58h]
long long v22; // [rsp+48h] [rbp-50h]
long long v23; // [rsp+50h] [rbp-48h]
long long v24; // [rsp+58h] [rbp-40h]
long long v25; // [rsp+60h] [rbp-38h]
int v26; // [rsp+6Ch] [rbp-2Ch]
long long v27; // [rsp+70h] [rbp-28h]
long long v28; // [rsp+78h] [rbp-20h]
long long v29; // [rsp+80h] [rbp-18h]
long long v30; // [rsp+88h] [rbp-10h]
long long v31; // [rsp+90h] [rbp-8h]
v28 = a2;
v29 = a3;
v27 = a1;
v26 = a4;
v25 = a5;
v23 = JS_ToStringCheckObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v24 = v14;
if ( JS_IsException_1(v23, v14) )
{
v30 = v23;
v31 = v24;
}
else
{
v20 = v23;
if ( (unsigned int)JS_ToInt32Sat(v27, (long long)&v19, *(_DWORD **)v25, *(_QWORD *)(v25 + 8)) )
{
JS_FreeValue(v27, v23, v24);
LODWORD(v30) = 0;
v31 = 6LL;
}
else
{
if ( v19 >= 0 && v19 < (*(_DWORD *)(v20 + 4) & 0x7FFFFFFF) )
{
v18 = string_get(v20, v19);
v21 = js_new_string_char(v27, v18);
v22 = v16;
}
else
{
v21 = JS_AtomToString(v27, 0x2Fu);
v22 = v15;
}
JS_FreeValue(v27, v23, v24);
v30 = v21;
v31 = v22;
}
}
return v30;
}
| js_string_charAt:
SUB RSP,0x98
MOV qword ptr [RSP + 0x78],RSI
MOV qword ptr [RSP + 0x80],RDX
MOV qword ptr [RSP + 0x70],RDI
MOV dword ptr [RSP + 0x6c],ECX
MOV qword ptr [RSP + 0x60],R8
MOV RDI,qword ptr [RSP + 0x70]
MOV RSI,qword ptr [RSP + 0x78]
MOV RDX,qword ptr [RSP + 0x80]
CALL 0x00176ac0
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x58],RAX
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x58]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x001d94ba
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x90],RAX
JMP 0x001d95cf
LAB_001d94ba:
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x38],RAX
MOV RDI,qword ptr [RSP + 0x70]
MOV RAX,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x34]
CALL 0x0013e970
CMP EAX,0x0
JZ 0x001d9514
MOV RDI,qword ptr [RSP + 0x70]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
CALL 0x00129f80
MOV dword ptr [RSP + 0x88],0x0
MOV qword ptr [RSP + 0x90],0x6
JMP 0x001d95cf
LAB_001d9514:
CMP dword ptr [RSP + 0x34],0x0
JL 0x001d9533
MOV EAX,dword ptr [RSP + 0x34]
MOV RCX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RCX + 0x4]
AND RCX,0x7fffffff
CMP EAX,ECX
JL 0x001d9562
LAB_001d9533:
MOV RDI,qword ptr [RSP + 0x70]
MOV ESI,0x2f
CALL 0x0012f2f0
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x48],RAX
JMP 0x001d95a1
LAB_001d9562:
MOV RDI,qword ptr [RSP + 0x38]
MOV ESI,dword ptr [RSP + 0x34]
CALL 0x00162ec0
MOV dword ptr [RSP + 0x30],EAX
MOV RDI,qword ptr [RSP + 0x70]
MOV EAX,dword ptr [RSP + 0x30]
MOVZX ESI,AX
CALL 0x00166740
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],RDX
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x48],RAX
LAB_001d95a1:
MOV RDI,qword ptr [RSP + 0x70]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
CALL 0x00129f80
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x90],RAX
LAB_001d95cf:
MOV RAX,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
ADD RSP,0x98
RET
|
int1 [16]
js_string_charAt(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 *param_5)
{
int1 auVar1 [16];
int2 uVar2;
int iVar3;
int local_64;
long local_60;
int1 local_58 [16];
int1 local_48 [16];
int8 *local_38;
int4 local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
local_48 = JS_ToStringCheckObject(param_1,param_2,param_3);
iVar3 = JS_IsException(local_48._0_8_,local_48._8_8_);
if (iVar3 == 0) {
local_60 = local_48._0_8_;
iVar3 = JS_ToInt32Sat(local_28,&local_64,*local_38,local_38[1]);
if (iVar3 == 0) {
if ((local_64 < 0) || ((int)((uint)*(int8 *)(local_60 + 4) & 0x7fffffff) <= local_64)) {
local_58 = JS_AtomToString(local_28,0x2f);
}
else {
uVar2 = string_get(local_60,local_64);
local_58 = js_new_string_char(local_28,uVar2);
}
JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_);
local_10 = local_58._0_4_;
uStack_c = local_58._4_4_;
local_8 = local_58._8_8_;
}
else {
JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_);
local_10 = 0;
local_8 = 6;
}
}
else {
local_10 = local_48._0_4_;
uStack_c = local_48._4_4_;
local_8 = local_48._8_8_;
}
auVar1._4_4_ = uStack_c;
auVar1._0_4_ = local_10;
auVar1._8_8_ = local_8;
return auVar1;
}
|
|
3,094 | ftxui::RadioboxOption::Simple() | Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/component/component_options.cpp | RadioboxOption RadioboxOption::Simple() {
auto option = RadioboxOption();
option.transform = [](const EntryState& s) {
#if defined(FTXUI_MICROSOFT_TERMINAL_FALLBACK)
// Microsoft terminal do not use fonts able to render properly the default
// radiobox glyph.
auto prefix = text(s.state ? "(*) " : "( ) "); // NOLINT
#else
auto prefix = text(s.state ? "◉ " : "○ "); // NOLINT
#endif
auto t = text(s.label);
if (s.active) {
t |= bold;
}
if (s.focused) {
t |= inverted;
}
return hbox({prefix, t});
};
return option;
} | O0 | cpp | ftxui::RadioboxOption::Simple():
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x18(%rbp)
movq %rdi, %rax
movq %rax, -0x20(%rbp)
movq %rdi, -0x8(%rbp)
movb $0x0, -0x9(%rbp)
xorl %esi, %esi
movl $0x70, %edx
callq 0xd2d0
movq -0x18(%rbp), %rdi
callq 0x7ac30
movq -0x18(%rbp), %rdi
addq $0x20, %rdi
leaq -0xa(%rbp), %rsi
callq 0x758a0
movb $0x1, -0x9(%rbp)
testb $0x1, -0x9(%rbp)
jne 0x75894
movq -0x18(%rbp), %rdi
callq 0x7acc0
movq -0x20(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
| _ZN5ftxui14RadioboxOption6SimpleEv:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_18], rdi
mov rax, rdi
mov [rbp+var_20], rax
mov [rbp+var_8], rdi
mov [rbp+var_9], 0
xor esi, esi
mov edx, 70h ; 'p'
call _memset
mov rdi, [rbp+var_18]; this
call _ZN5ftxui14RadioboxOptionC2Ev; ftxui::RadioboxOption::RadioboxOption(void)
mov rdi, [rbp+var_18]
add rdi, 20h ; ' '
lea rsi, [rbp+var_A]
call _ZNSt8functionIFSt10shared_ptrIN5ftxui4NodeEERKNS1_10EntryStateEEEaSIZNS1_14RadioboxOption6SimpleEvE3$_0EENSt9enable_ifIXsrNS8_9_CallableIT_NSC_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISE_E4typeEE4typeES8_EE5valueESt5decayISE_EE4type4typeESt15__invoke_resultIRSP_JS6_EEEE5valueERS8_E4typeEOSE_
mov [rbp+var_9], 1
test [rbp+var_9], 1
jnz short loc_75894
mov rdi, [rbp+var_18]; this
call _ZN5ftxui14RadioboxOptionD2Ev; ftxui::RadioboxOption::~RadioboxOption()
loc_75894:
mov rax, [rbp+var_20]
add rsp, 20h
pop rbp
retn
| ftxui::RadioboxOption * ftxui::RadioboxOption::Simple(ftxui::RadioboxOption *this)
{
_BYTE v2[2]; // [rsp+16h] [rbp-Ah] BYREF
ftxui::RadioboxOption *v3; // [rsp+18h] [rbp-8h]
v3 = this;
v2[1] = 0;
memset(this, 0LL, 112LL);
ftxui::RadioboxOption::RadioboxOption(this);
std::function<std::shared_ptr<ftxui::Node> ()(ftxui::EntryState const&)>::operator=<ftxui::RadioboxOption::Simple(void)::$_0>(
(char *)this + 32,
v2);
return this;
}
| Simple:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x18],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0x20],RAX
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],0x0
XOR ESI,ESI
MOV EDX,0x70
CALL 0x0010d2d0
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0017ac30
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x20
LEA RSI,[RBP + -0xa]
CALL 0x001758a0
MOV byte ptr [RBP + -0x9],0x1
TEST byte ptr [RBP + -0x9],0x1
JNZ 0x00175894
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0017acc0
LAB_00175894:
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x20
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x0017588b) */
/* ftxui::RadioboxOption::Simple() */
RadioboxOption * __thiscall ftxui::RadioboxOption::Simple(RadioboxOption *this)
{
__0 local_12;
int1 local_11;
RadioboxOption *local_10;
local_11 = 0;
local_10 = this;
memset(this,0,0x70);
RadioboxOption(this);
std::function<std::shared_ptr<ftxui::Node>(ftxui::EntryState_const&)>::operator=
((function<std::shared_ptr<ftxui::Node>(ftxui::EntryState_const&)> *)(this + 0x20),
&local_12);
return this;
}
|
|
3,095 | my_wc_to_printable_8bit | eloqsql/strings/ctype.c | int
my_wc_to_printable_8bit(CHARSET_INFO *cs, my_wc_t wc,
uchar *str, uchar *end)
{
/*
Special case: swe7 does not have the backslash character.
Use dot instead of backslash for escaping.
*/
uint bs= cs->tab_to_uni && cs->tab_to_uni['\\'] != '\\' ? '.' : '\\';
DBUG_ASSERT(cs->mbminlen == 1);
/*
Additionally, if the original swe7 string contains backslashes,
replace them to dots, so this error message:
Invalid swe7 character string: '\xEF\xBC\xB4'
is displayed as:
Invalid swe7 character string: '.xEF.xBC.xB4'
which is more readable than what would happen without '\'-to-dot mapping:
Invalid swe7 character string: '.005CxEF.005CxBC.005CxB4'
*/
if (bs == '.' && wc == '\\')
wc= '.';
return my_wc_to_printable_ex(cs, wc, str, end, bs, 1, 1);
} | O3 | c | my_wc_to_printable_8bit:
movq 0x68(%rdi), %rax
testq %rax, %rax
je 0xd1aa5
cmpw $0x5c, 0xb8(%rax)
setne %al
movl $0x2e, %r9d
movl $0x5c, %r8d
cmovnel %r9d, %r8d
jmp 0xd1aad
movl $0x5c, %r8d
xorl %eax, %eax
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
testb %al, %al
movl $0x2e, %eax
cmoveq %rsi, %rax
cmpq $0x5c, %rsi
cmovneq %rsi, %rax
movl $0x1, (%rsp)
movq %rax, %rsi
movl $0x1, %r9d
callq 0xd18d8
addq $0x10, %rsp
popq %rbp
retq
| my_wc_to_printable_8bit:
mov rax, [rdi+68h]
test rax, rax
jz short loc_D1AA5
cmp word ptr [rax+0B8h], 5Ch ; '\'
setnz al
mov r9d, 2Eh ; '.'
mov r8d, 5Ch ; '\'
cmovnz r8d, r9d
jmp short loc_D1AAD
loc_D1AA5:
mov r8d, 5Ch ; '\'
xor eax, eax
loc_D1AAD:
push rbp
mov rbp, rsp
sub rsp, 10h
test al, al
mov eax, 2Eh ; '.'
cmovz rax, rsi
cmp rsi, 5Ch ; '\'
cmovnz rax, rsi
mov [rsp+18h+var_18], 1
mov rsi, rax
mov r9d, 1
call my_wc_to_printable_ex
add rsp, 10h
pop rbp
retn
| long long my_wc_to_printable_8bit(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
long long v4; // rax
bool v5; // zf
bool v6; // al
char v7; // r8
unsigned long long v8; // rax
v4 = *(_QWORD *)(a1 + 104);
if ( v4 )
{
v5 = *(_WORD *)(v4 + 184) == 92;
v6 = *(_WORD *)(v4 + 184) != 92;
v7 = 92;
if ( !v5 )
v7 = 46;
}
else
{
v7 = 92;
v6 = 0;
}
v5 = !v6;
v8 = 46LL;
if ( v5 )
v8 = a2;
if ( a2 != 92 )
v8 = a2;
return my_wc_to_printable_ex(a1, v8, a3, a4, v7, 1u, 1u);
}
| my_wc_to_printable_8bit:
MOV RAX,qword ptr [RDI + 0x68]
TEST RAX,RAX
JZ 0x001d1aa5
CMP word ptr [RAX + 0xb8],0x5c
SETNZ AL
MOV R9D,0x2e
MOV R8D,0x5c
CMOVNZ R8D,R9D
JMP 0x001d1aad
LAB_001d1aa5:
MOV R8D,0x5c
XOR EAX,EAX
LAB_001d1aad:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
TEST AL,AL
MOV EAX,0x2e
CMOVZ RAX,RSI
CMP RSI,0x5c
CMOVNZ RAX,RSI
MOV dword ptr [RSP],0x1
MOV RSI,RAX
MOV R9D,0x1
CALL 0x001d18d8
ADD RSP,0x10
POP RBP
RET
|
void my_wc_to_printable_8bit(long param_1,long param_2,int8 param_3,int8 param_4)
{
long lVar1;
int8 uVar2;
bool bVar3;
if (*(long *)(param_1 + 0x68) == 0) {
uVar2 = 0x5c;
bVar3 = false;
}
else {
bVar3 = *(short *)(*(long *)(param_1 + 0x68) + 0xb8) != 0x5c;
uVar2 = 0x5c;
if (bVar3) {
uVar2 = 0x2e;
}
}
lVar1 = 0x2e;
if (!bVar3) {
lVar1 = param_2;
}
if (param_2 != 0x5c) {
lVar1 = param_2;
}
my_wc_to_printable_ex(param_1,lVar1,param_3,param_4,uVar2,1,1);
return;
}
|
|
3,096 | my_strnncollsp_nchars_generic | eloqsql/strings/ctype.c | int my_strnncollsp_nchars_generic(CHARSET_INFO *cs,
const uchar *str1, size_t len1,
const uchar *str2, size_t len2,
size_t nchars)
{
int error;
len1= my_well_formed_length(cs, (const char *) str1,
(const char *) str1 + len1,
nchars, &error);
len2= my_well_formed_length(cs, (const char *) str2,
(const char *) str2 + len2,
nchars, &error);
DBUG_ASSERT((cs->state & MY_CS_NOPAD) == 0);
return cs->coll->strnncollsp(cs, str1, len1, str2, len2);
} | O0 | c | my_strnncollsp_nchars_generic:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
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 -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq -0x18(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0x34(%rbp), %r8
callq 0xa48a0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x20(%rbp), %rdx
addq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0x34(%rbp), %r8
callq 0xa48a0
movq %rax, -0x28(%rbp)
jmp 0xa4874
movq -0x8(%rbp), %rax
movq 0xc0(%rax), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
callq *%rax
addq $0x40, %rsp
popq %rbp
retq
nop
| my_strnncollsp_nchars_generic:
push rbp
mov rbp, rsp
sub rsp, 40h
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 rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_10]
add rdx, [rbp+var_18]
mov rcx, [rbp+var_30]
lea r8, [rbp+var_34]
call my_well_formed_length
mov [rbp+var_18], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_20]
add rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
lea r8, [rbp+var_34]
call my_well_formed_length
mov [rbp+var_28], rax
jmp short $+2
loc_A4874:
mov rax, [rbp+var_8]
mov rax, [rax+0C0h]
mov rax, [rax+10h]
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov r8, [rbp+var_28]
call rax
add rsp, 40h
pop rbp
retn
| long long my_strnncollsp_nchars_generic(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6)
{
_BYTE v7[4]; // [rsp+Ch] [rbp-34h] BYREF
long long v8; // [rsp+10h] [rbp-30h]
long long v9; // [rsp+18h] [rbp-28h]
long long v10; // [rsp+20h] [rbp-20h]
long long v11; // [rsp+28h] [rbp-18h]
long long v12; // [rsp+30h] [rbp-10h]
long long v13; // [rsp+38h] [rbp-8h]
v13 = a1;
v12 = a2;
v11 = a3;
v10 = a4;
v9 = a5;
v8 = a6;
v11 = my_well_formed_length(a1, a2, a3 + a2, a6, v7);
v9 = my_well_formed_length(v13, v10, v9 + v10, v8, v7);
return (*(long long ( **)(long long, long long, long long, long long, long long))(*(_QWORD *)(v13 + 192) + 16LL))(
v13,
v12,
v11,
v10,
v9);
}
| my_strnncollsp_nchars_generic:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x10]
ADD RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x30]
LEA R8,[RBP + -0x34]
CALL 0x001a48a0
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x20]
ADD RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
LEA R8,[RBP + -0x34]
CALL 0x001a48a0
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001a4874
LAB_001a4874:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RAX + 0x10]
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV R8,qword ptr [RBP + -0x28]
CALL RAX
ADD RSP,0x40
POP RBP
RET
|
void my_strnncollsp_nchars_generic
(long param_1,long param_2,long param_3,long param_4,long param_5,int8 param_6)
{
int1 local_3c [4];
int8 local_38;
long local_30;
long local_28;
long local_20;
long local_18;
long local_10;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_20 = my_well_formed_length(param_1,param_2,param_2 + param_3,param_6,local_3c);
local_30 = my_well_formed_length(local_10,local_28,local_28 + local_30,local_38,local_3c);
(**(code **)(*(long *)(local_10 + 0xc0) + 0x10))(local_10,local_18,local_20,local_28,local_30);
return;
}
|
|
3,097 | safe_lexcstrdup_root | eloqsql/mysys/my_alloc.c | LEX_CSTRING safe_lexcstrdup_root(MEM_ROOT *root, const LEX_CSTRING str)
{
LEX_CSTRING res;
if (str.length)
res.str= strmake_root(root, str.str, str.length);
else
res.str= (const char *)"";
res.length= str.length;
return res;
} | O3 | c | safe_lexcstrdup_root:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdx, %rbx
testq %rdx, %rdx
je 0xbe448
movq %rbx, %rdx
callq 0xbe3ad
jmp 0xbe44f
leaq 0x449b8(%rip), %rax # 0x102e07
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax)
| safe_lexcstrdup_root:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdx
test rdx, rdx
jz short loc_BE448
mov rdx, rbx
call strmake_root
jmp short loc_BE44F
loc_BE448:
lea rax, aTotalKeyblocks+30h; ""
loc_BE44F:
mov rdx, rbx
add rsp, 8
pop rbx
pop rbp
retn
| char * safe_lexcstrdup_root(long long a1, long long a2, long long a3)
{
if ( a3 )
return strmake_root(a1, a2, a3);
else
return "";
}
| safe_lexcstrdup_root:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDX
TEST RDX,RDX
JZ 0x001be448
MOV RDX,RBX
CALL 0x001be3ad
JMP 0x001be44f
LAB_001be448:
LEA RAX,[0x202e07]
LAB_001be44f:
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int1 [16] safe_lexcstrdup_root(int8 param_1,int8 param_2,long param_3)
{
char *pcVar1;
int1 auVar2 [16];
if (param_3 == 0) {
pcVar1 = "";
}
else {
pcVar1 = (char *)strmake_root(param_1,param_2,param_3);
}
auVar2._8_8_ = param_3;
auVar2._0_8_ = pcVar1;
return auVar2;
}
|
|
3,098 | fmt::v11::basic_appender<char> fmt::v11::detail::write_significand<fmt::v11::basic_appender<char>, char, unsigned long, fmt::v11::detail::digit_grouping<char>>(fmt::v11::basic_appender<char>, unsigned long, int, int, char, fmt::v11::detail::digit_grouping<char> const&) | zkingston[P]unknot/build_O1/_deps/fmt-src/include/fmt/format.h | FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
int significand_size, int integral_size,
Char decimal_point,
const Grouping& grouping) -> OutputIt {
if (!grouping.has_separator()) {
return write_significand(out, significand, significand_size, integral_size,
decimal_point);
}
auto buffer = basic_memory_buffer<Char>();
write_significand(basic_appender<Char>(buffer), significand, significand_size,
integral_size, decimal_point);
grouping.apply(
out, basic_string_view<Char>(buffer.data(), to_unsigned(integral_size)));
return detail::copy_noinline<Char>(buffer.data() + integral_size,
buffer.end(), out);
} | O1 | c | fmt::v11::basic_appender<char> fmt::v11::detail::write_significand<fmt::v11::basic_appender<char>, char, unsigned long, fmt::v11::detail::digit_grouping<char>>(fmt::v11::basic_appender<char>, unsigned long, int, int, char, fmt::v11::detail::digit_grouping<char> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x218, %rsp # imm = 0x218
movl %ecx, %ebp
movq %rdi, %rbx
cmpq $0x0, 0x28(%r9)
je 0x45cbf
movq %r9, %r14
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, -0x20(%r15)
leaq -0x6059(%rip), %rax # 0x3fbfe
movq %rax, -0x8(%r15)
movq %r15, -0x20(%r15)
movq $0x1f4, -0x10(%r15) # imm = 0x1F4
movsbl %r8b, %r8d
movq %rsp, %rdi
movl %ebp, %ecx
callq 0x4582e
movq (%rsp), %rdx
movl %ebp, %ecx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x41f14
movq (%rsp), %rsi
movslq %ebp, %rdi
addq %rsi, %rdi
addq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x3ffd9
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x45cae
callq 0xfc50
movq %rbx, %rax
addq $0x218, %rsp # imm = 0x218
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movsbl %r8b, %r8d
movq %rbx, %rdi
movl %ebp, %ecx
addq $0x218, %rsp # imm = 0x218
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4582e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x45ceb
callq 0xfc50
movq %rbx, %rdi
callq 0x101c0
| _ZN3fmt3v116detail17write_significandINS0_14basic_appenderIcEEcPKcNS1_14digit_groupingIcEEEET_S9_T1_iiT0_RKT2_:
push rbp
push r15
push r14
push rbx
sub rsp, 218h
mov ebp, ecx
mov rbx, rdi
cmp qword ptr [r9+28h], 0
jz short loc_45CBF
mov r14, r9
xorps xmm0, xmm0
lea r15, [rsp+238h+var_218]
movaps xmmword ptr [r15-20h], xmm0
lea rax, _ZN3fmt3v1119basic_memory_bufferIcLm500ENS0_6detail9allocatorIcEEE4growERNS2_6bufferIcEEm; fmt::v11::basic_memory_buffer<char,500ul,fmt::v11::detail::allocator<char>>::grow(fmt::v11::detail::buffer<char> &,ulong)
mov [r15-8], rax
mov [r15-20h], r15
mov qword ptr [r15-10h], 1F4h
movsx r8d, r8b
mov rdi, rsp
mov ecx, ebp
call _ZN3fmt3v116detail17write_significandINS0_14basic_appenderIcEEcEET_S5_PKciiT0_; fmt::v11::detail::write_significand<fmt::v11::basic_appender<char>,char>(fmt::v11::basic_appender<char>,char const*,int,int,char)
mov rdx, [rsp+238h+var_238]
mov ecx, ebp
mov rdi, r14
mov rsi, rbx
call _ZNK3fmt3v116detail14digit_groupingIcE5applyINS0_14basic_appenderIcEEcEET_S7_NS0_17basic_string_viewIT0_EE; fmt::v11::detail::digit_grouping<char>::apply<fmt::v11::basic_appender<char>,char>(fmt::v11::basic_appender<char>,fmt::v11::basic_string_view<char>)
mov rsi, [rsp+238h+var_238]
movsxd rdi, ebp
add rdi, rsi
add rsi, [rsp+238h+var_230]
mov rdx, rbx
call _ZN3fmt3v116detail13copy_noinlineIcPcNS0_14basic_appenderIcEEEET1_T0_S7_S6_; fmt::v11::detail::copy_noinline<char,char *,fmt::v11::basic_appender<char>>(char *,char *,fmt::v11::basic_appender<char>)
mov rbx, rax
mov rdi, [rsp+238h+var_238]
cmp rdi, r15
jz short loc_45CAE
call _free
loc_45CAE:
mov rax, rbx
add rsp, 218h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_45CBF:
movsx r8d, r8b
mov rdi, rbx
mov ecx, ebp
add rsp, 218h
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN3fmt3v116detail17write_significandINS0_14basic_appenderIcEEcEET_S5_PKciiT0_; fmt::v11::detail::write_significand<fmt::v11::basic_appender<char>,char>(fmt::v11::basic_appender<char>,char const*,int,int,char)
mov rbx, rax
mov rdi, [rsp+0]
cmp rdi, r15
jz short loc_45CEB
call _free
loc_45CEB:
mov rdi, rbx
call __Unwind_Resume
| long long fmt::v11::detail::write_significand<fmt::v11::basic_appender<char>,char,char const*,fmt::v11::detail::digit_grouping<char>>(
long long a1,
long long a2,
int a3,
int a4,
char a5,
long long a6)
{
long long v8; // rbx
__int128 v10; // [rsp+0h] [rbp-238h] BYREF
long long v11; // [rsp+10h] [rbp-228h]
long long ( *v12)(long long *, unsigned long long); // [rsp+18h] [rbp-220h]
_BYTE v13[536]; // [rsp+20h] [rbp-218h] BYREF
if ( !*(_QWORD *)(a6 + 40) )
return fmt::v11::detail::write_significand<fmt::v11::basic_appender<char>,char>(a1, a2, a3, a4, a5);
v10 = 0LL;
v12 = fmt::v11::basic_memory_buffer<char,500ul,fmt::v11::detail::allocator<char>>::grow;
*(_QWORD *)&v10 = v13;
v11 = 500LL;
fmt::v11::detail::write_significand<fmt::v11::basic_appender<char>,char>((long long)&v10, a2, a3, a4, a5);
fmt::v11::detail::digit_grouping<char>::apply<fmt::v11::basic_appender<char>,char>(
(unsigned __int8 **)a6,
a1,
v10,
a4);
v8 = fmt::v11::detail::copy_noinline<char,char *,fmt::v11::basic_appender<char>>(
v10 + a4,
*((_QWORD *)&v10 + 1) + v10,
a1);
if ( (_BYTE *)v10 != v13 )
free(v10);
return v8;
}
| write_significand<fmt::v11::basic_appender<char>,char,char_const*,fmt::v11::detail::digit_grouping<char>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x218
MOV EBP,ECX
MOV RBX,RDI
CMP qword ptr [R9 + 0x28],0x0
JZ 0x00145cbf
MOV R14,R9
XORPS XMM0,XMM0
LEA R15,[RSP + 0x20]
MOVAPS xmmword ptr [R15 + -0x20],XMM0
LEA RAX,[0x13fbfe]
MOV qword ptr [R15 + -0x8],RAX
MOV qword ptr [R15 + -0x20],R15
MOV qword ptr [R15 + -0x10],0x1f4
LAB_00145c67:
MOVSX R8D,R8B
MOV RDI,RSP
MOV ECX,EBP
CALL 0x0014582e
MOV RDX,qword ptr [RSP]
MOV ECX,EBP
MOV RDI,R14
MOV RSI,RBX
CALL 0x00141f14
MOV RSI,qword ptr [RSP]
MOVSXD RDI,EBP
ADD RDI,RSI
ADD RSI,qword ptr [RSP + 0x8]
MOV RDX,RBX
CALL 0x0013ffd9
LAB_00145c9d:
MOV RBX,RAX
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x00145cae
CALL 0x0010fc50
LAB_00145cae:
MOV RAX,RBX
ADD RSP,0x218
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00145cbf:
MOVSX R8D,R8B
MOV RDI,RBX
MOV ECX,EBP
ADD RSP,0x218
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0014582e
|
/* fmt::v11::basic_appender<char>
fmt::v11::detail::write_significand<fmt::v11::basic_appender<char>, char, char const*,
fmt::v11::detail::digit_grouping<char> >(fmt::v11::basic_appender<char>, char const*, int, int,
char, fmt::v11::detail::digit_grouping<char> const&) */
int8
fmt::v11::detail::
write_significand<fmt::v11::basic_appender<char>,char,char_const*,fmt::v11::detail::digit_grouping<char>>
(int8 param_1,int8 param_2,int8 param_3,int param_4,char param_5,
long param_6)
{
int8 uVar1;
int1 *local_238;
long lStack_230;
int8 local_228;
code *local_220;
int1 local_218 [504];
if (*(long *)(param_6 + 0x28) != 0) {
lStack_230 = 0;
local_220 = basic_memory_buffer<char,500ul,fmt::v11::detail::allocator<char>>::grow;
local_228 = 500;
/* try { // try from 00145c67 to 00145c9c has its CatchHandler @ 00145cda */
local_238 = local_218;
write_significand<fmt::v11::basic_appender<char>,char>
(&local_238,param_2,param_3,param_4,(int)param_5);
digit_grouping<char>::apply<fmt::v11::basic_appender<char>,char>
(param_6,param_1,local_238,param_4);
uVar1 = copy_noinline<char,char*,fmt::v11::basic_appender<char>>
(local_238 + param_4,local_238 + lStack_230,param_1);
if (local_238 != local_218) {
free(local_238);
}
return uVar1;
}
uVar1 = write_significand<fmt::v11::basic_appender<char>,char>
(param_1,param_2,param_3,param_4,(int)param_5);
return uVar1;
}
|
|
3,099 | ma_base_info_write | eloqsql/storage/maria/ma_open.c | uint _ma_base_info_write(File file, MARIA_BASE_INFO *base)
{
uchar buff[MARIA_BASE_INFO_SIZE], *ptr=buff;
bmove(ptr, maria_uuid, MY_UUID_SIZE);
ptr+= MY_UUID_SIZE;
mi_sizestore(ptr,base->keystart); ptr+= 8;
mi_sizestore(ptr,base->max_data_file_length); ptr+= 8;
mi_sizestore(ptr,base->max_key_file_length); ptr+= 8;
mi_rowstore(ptr,base->records); ptr+= 8;
mi_rowstore(ptr,base->reloc); ptr+= 8;
mi_int4store(ptr,base->mean_row_length); ptr+= 4;
mi_int4store(ptr,base->reclength); ptr+= 4;
mi_int4store(ptr,base->pack_reclength); ptr+= 4;
mi_int4store(ptr,base->min_pack_length); ptr+= 4;
mi_int4store(ptr,base->max_pack_length); ptr+= 4;
mi_int4store(ptr,base->min_block_length); ptr+= 4;
mi_int2store(ptr,base->fields); ptr+= 2;
mi_int2store(ptr,base->fixed_not_null_fields); ptr+= 2;
mi_int2store(ptr,base->fixed_not_null_fields_length); ptr+= 2;
mi_int2store(ptr,base->max_field_lengths); ptr+= 2;
mi_int2store(ptr,base->pack_fields); ptr+= 2;
mi_int2store(ptr,base->extra_options) ptr+= 2;
mi_int2store(ptr,base->null_bytes); ptr+= 2;
mi_int2store(ptr,base->original_null_bytes); ptr+= 2;
mi_int2store(ptr,base->field_offsets); ptr+= 2;
mi_int2store(ptr,base->language); ptr+= 2;
mi_int2store(ptr,base->block_size); ptr+= 2;
*ptr++= base->rec_reflength;
*ptr++= base->key_reflength;
*ptr++= base->keys;
*ptr++= base->auto_key;
*ptr++= base->born_transactional;
*ptr++= base->compression_algorithm;
mi_int2store(ptr,base->pack_bytes); ptr+= 2;
mi_int2store(ptr,base->blobs); ptr+= 2;
mi_int2store(ptr,base->max_key_block_length); ptr+= 2;
mi_int2store(ptr,base->max_key_length); ptr+= 2;
mi_int2store(ptr,base->extra_alloc_bytes); ptr+= 2;
*ptr++= base->extra_alloc_procent;
mi_int3store(ptr, base->s3_block_size); ptr+= 3;
bzero(ptr,13); ptr+= 13; /* extra */
DBUG_ASSERT((ptr - buff) == MARIA_BASE_INFO_SIZE);
return mysql_file_write(file, buff, (size_t) (ptr-buff), MYF(MY_NABP)) != 0;
} | O3 | c | ma_base_info_write:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xe0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
leaq 0x397619(%rip), %rax # 0x405cb0
movaps (%rax), %xmm0
movaps %xmm0, -0xa0(%rbp)
movq (%rsi), %rax
bswapq %rax
movq %rax, -0x90(%rbp)
movq 0x8(%rsi), %rax
bswapq %rax
movq %rax, -0x88(%rbp)
movq 0x10(%rsi), %rax
bswapq %rax
movq %rax, -0x80(%rbp)
movq 0x20(%rsi), %rax
bswapq %rax
movq %rax, -0x78(%rbp)
movq 0x28(%rsi), %rax
bswapq %rax
movq %rax, -0x70(%rbp)
movl 0x30(%rsi), %eax
bswapl %eax
movl %eax, -0x68(%rbp)
movl 0x38(%rsi), %eax
bswapl %eax
movl %eax, -0x64(%rbp)
movl 0x40(%rsi), %eax
bswapl %eax
movl %eax, -0x60(%rbp)
movl 0x48(%rsi), %eax
bswapl %eax
movl %eax, -0x5c(%rbp)
movl 0x50(%rsi), %eax
bswapl %eax
movl %eax, -0x58(%rbp)
movl 0x58(%rsi), %eax
bswapl %eax
movl %eax, -0x54(%rbp)
movzwl 0x68(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x50(%rbp)
movzwl 0x6c(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x4e(%rbp)
movzwl 0x70(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x4c(%rbp)
movzwl 0x74(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x4a(%rbp)
movzwl 0x78(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x48(%rbp)
movzwl 0xc8(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x46(%rbp)
movzwl 0x9c(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x44(%rbp)
movzwl 0x98(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x42(%rbp)
movzwl 0xa0(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x40(%rbp)
movzwl 0xcc(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x3e(%rbp)
movzwl 0xbc(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x3c(%rbp)
movdqu 0x80(%rsi), %xmm0
pand 0x7193d(%rip), %xmm0 # 0xe00f0
packuswb %xmm0, %xmm0
packuswb %xmm0, %xmm0
movd %xmm0, -0x3a(%rbp)
movb 0xec(%rsi), %al
movb %al, -0x36(%rbp)
movb 0xd0(%rsi), %al
movb %al, -0x35(%rbp)
movzwl 0x94(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x34(%rbp)
movzwl 0x90(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x32(%rbp)
movzwl 0xa4(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x30(%rbp)
movzwl 0xa8(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x2e(%rbp)
movzwl 0xac(%rsi), %eax
rolw $0x8, %ax
movl %edi, %ebx
movw %ax, -0x2c(%rbp)
movb 0xb0(%rsi), %al
movb %al, -0x2a(%rbp)
movq 0x60(%rsi), %rax
movl %eax, %ecx
rolw $0x8, %cx
movw %cx, -0x28(%rbp)
shrl $0x10, %eax
movb %al, -0x29(%rbp)
xorl %eax, %eax
movq %rax, -0x21(%rbp)
movq %rax, -0x26(%rbp)
leaq 0x320a0b(%rip), %rax # 0x38f258
movq (%rax), %rax
leaq -0xf0(%rbp), %rdi
movl %ebx, %esi
movl $0x7, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x6e8a9
leaq -0xa0(%rbp), %rsi
movl $0x87, %edx
movl $0x4, %ecx
movl %ebx, %edi
callq 0x30a78
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
setne %cl
movq %fs:0x28, %rdx
cmpq -0x18(%rbp), %rdx
jne 0x6e8c9
movb %cl, %al
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq -0xa0(%rbp), %rdx
leaq -0xa8(%rbp), %r14
movq %rax, %rdi
movl %ebx, %esi
movq %r14, %rcx
callq 0x2e339
movq (%r14), %rcx
jmp 0x6e884
callq 0x2a270
| _ma_base_info_write:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 0E0h
mov rax, fs:28h
mov [rbp+var_18], rax
lea rax, maria_uuid
movaps xmm0, xmmword ptr [rax]
movaps [rbp+var_A0], xmm0
mov rax, [rsi]
bswap rax
mov [rbp+var_90], rax
mov rax, [rsi+8]
bswap rax
mov [rbp+var_88], rax
mov rax, [rsi+10h]
bswap rax
mov [rbp+var_80], rax
mov rax, [rsi+20h]
bswap rax
mov [rbp+var_78], rax
mov rax, [rsi+28h]
bswap rax
mov [rbp+var_70], rax
mov eax, [rsi+30h]
bswap eax
mov [rbp+var_68], eax
mov eax, [rsi+38h]
bswap eax
mov [rbp+var_64], eax
mov eax, [rsi+40h]
bswap eax
mov [rbp+var_60], eax
mov eax, [rsi+48h]
bswap eax
mov [rbp+var_5C], eax
mov eax, [rsi+50h]
bswap eax
mov [rbp+var_58], eax
mov eax, [rsi+58h]
bswap eax
mov [rbp+var_54], eax
movzx eax, word ptr [rsi+68h]
rol ax, 8
mov [rbp+var_50], ax
movzx eax, word ptr [rsi+6Ch]
rol ax, 8
mov [rbp+var_4E], ax
movzx eax, word ptr [rsi+70h]
rol ax, 8
mov [rbp+var_4C], ax
movzx eax, word ptr [rsi+74h]
rol ax, 8
mov [rbp+var_4A], ax
movzx eax, word ptr [rsi+78h]
rol ax, 8
mov [rbp+var_48], ax
movzx eax, word ptr [rsi+0C8h]
rol ax, 8
mov [rbp+var_46], ax
movzx eax, word ptr [rsi+9Ch]
rol ax, 8
mov [rbp+var_44], ax
movzx eax, word ptr [rsi+98h]
rol ax, 8
mov [rbp+var_42], ax
movzx eax, word ptr [rsi+0A0h]
rol ax, 8
mov [rbp+var_40], ax
movzx eax, word ptr [rsi+0CCh]
rol ax, 8
mov [rbp+var_3E], ax
movzx eax, word ptr [rsi+0BCh]
rol ax, 8
mov [rbp+var_3C], ax
movdqu xmm0, xmmword ptr [rsi+80h]
pand xmm0, cs:xmmword_E00F0
packuswb xmm0, xmm0
packuswb xmm0, xmm0
movd [rbp+var_3A], xmm0
mov al, [rsi+0ECh]
mov [rbp+var_36], al
mov al, [rsi+0D0h]
mov [rbp+var_35], al
movzx eax, word ptr [rsi+94h]
rol ax, 8
mov [rbp+var_34], ax
movzx eax, word ptr [rsi+90h]
rol ax, 8
mov [rbp+var_32], ax
movzx eax, word ptr [rsi+0A4h]
rol ax, 8
mov [rbp+var_30], ax
movzx eax, word ptr [rsi+0A8h]
rol ax, 8
mov [rbp+var_2E], ax
movzx eax, word ptr [rsi+0ACh]
rol ax, 8
mov ebx, edi
mov [rbp+var_2C], ax
mov al, [rsi+0B0h]
mov [rbp+var_2A], al
mov rax, [rsi+60h]
mov ecx, eax
rol cx, 8
mov [rbp+var_28], cx
shr eax, 10h
mov [rbp+var_29], al
xor eax, eax
mov [rbp+var_21], rax
mov [rbp-26h], rax
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_F0]
mov esi, ebx
mov edx, 7
call qword ptr [rax+158h]
test rax, rax
jnz short loc_6E8A9
lea rsi, [rbp+var_A0]
mov edx, 87h
mov ecx, 4
mov edi, ebx
call my_write
mov rcx, rax
loc_6E884:
xor eax, eax
test rcx, rcx
setnz cl
mov rdx, fs:28h
cmp rdx, [rbp+var_18]
jnz short loc_6E8C9
mov al, cl
add rsp, 0E0h
pop rbx
pop r14
pop rbp
retn
loc_6E8A9:
lea rdx, [rbp+var_A0]
lea r14, [rbp+var_A8]
mov rdi, rax
mov esi, ebx
mov rcx, r14
call _ma_base_info_write_cold_1
mov rcx, [r14]
jmp short loc_6E884
loc_6E8C9:
call ___stack_chk_fail
| bool ma_base_info_write(unsigned int a1, const __m128i *a2)
{
__m128i v2; // xmm0
__m128i v3; // xmm0
long long v4; // rax
long long v5; // rax
long long v6; // rcx
_BYTE v9[72]; // [rsp+0h] [rbp-F0h] BYREF
long long v10; // [rsp+48h] [rbp-A8h] BYREF
__int128 v11; // [rsp+50h] [rbp-A0h] BYREF
unsigned long long v12; // [rsp+60h] [rbp-90h]
unsigned long long v13; // [rsp+68h] [rbp-88h]
unsigned long long v14; // [rsp+70h] [rbp-80h]
unsigned long long v15; // [rsp+78h] [rbp-78h]
unsigned long long v16; // [rsp+80h] [rbp-70h]
unsigned __int32 v17; // [rsp+88h] [rbp-68h]
unsigned __int32 v18; // [rsp+8Ch] [rbp-64h]
unsigned __int32 v19; // [rsp+90h] [rbp-60h]
unsigned __int32 v20; // [rsp+94h] [rbp-5Ch]
unsigned __int32 v21; // [rsp+98h] [rbp-58h]
unsigned __int32 v22; // [rsp+9Ch] [rbp-54h]
__int16 v23; // [rsp+A0h] [rbp-50h]
__int16 v24; // [rsp+A2h] [rbp-4Eh]
__int16 v25; // [rsp+A4h] [rbp-4Ch]
__int16 v26; // [rsp+A6h] [rbp-4Ah]
__int16 v27; // [rsp+A8h] [rbp-48h]
__int16 v28; // [rsp+AAh] [rbp-46h]
__int16 v29; // [rsp+ACh] [rbp-44h]
__int16 v30; // [rsp+AEh] [rbp-42h]
__int16 v31; // [rsp+B0h] [rbp-40h]
__int16 v32; // [rsp+B2h] [rbp-3Eh]
__int16 v33; // [rsp+B4h] [rbp-3Ch]
int v34; // [rsp+B6h] [rbp-3Ah]
__int8 v35; // [rsp+BAh] [rbp-36h]
__int8 v36; // [rsp+BBh] [rbp-35h]
__int16 v37; // [rsp+BCh] [rbp-34h]
__int16 v38; // [rsp+BEh] [rbp-32h]
__int16 v39; // [rsp+C0h] [rbp-30h]
__int16 v40; // [rsp+C2h] [rbp-2Eh]
__int16 v41; // [rsp+C4h] [rbp-2Ch]
__int8 v42; // [rsp+C6h] [rbp-2Ah]
char v43; // [rsp+C7h] [rbp-29h]
__int16 v44; // [rsp+C8h] [rbp-28h]
_BYTE v45[13]; // [rsp+CAh] [rbp-26h] BYREF
unsigned long long v46; // [rsp+D8h] [rbp-18h]
v46 = __readfsqword(0x28u);
v11 = maria_uuid;
v12 = _byteswap_uint64(a2->m128i_i64[0]);
v13 = _byteswap_uint64(a2->m128i_u64[1]);
v14 = _byteswap_uint64(a2[1].m128i_u64[0]);
v15 = _byteswap_uint64(a2[2].m128i_u64[0]);
v16 = _byteswap_uint64(a2[2].m128i_u64[1]);
v17 = _byteswap_ulong(a2[3].m128i_u32[0]);
v18 = _byteswap_ulong(a2[3].m128i_u32[2]);
v19 = _byteswap_ulong(a2[4].m128i_u32[0]);
v20 = _byteswap_ulong(a2[4].m128i_u32[2]);
v21 = _byteswap_ulong(a2[5].m128i_u32[0]);
v22 = _byteswap_ulong(a2[5].m128i_u32[2]);
v23 = __ROL2__(a2[6].m128i_i16[4], 8);
v24 = __ROL2__(a2[6].m128i_i16[6], 8);
v25 = __ROL2__(a2[7].m128i_i16[0], 8);
v26 = __ROL2__(a2[7].m128i_i16[2], 8);
v27 = __ROL2__(a2[7].m128i_i16[4], 8);
v28 = __ROL2__(a2[12].m128i_i16[4], 8);
v29 = __ROL2__(a2[9].m128i_i16[6], 8);
v30 = __ROL2__(a2[9].m128i_i16[4], 8);
v31 = __ROL2__(a2[10].m128i_i16[0], 8);
v32 = __ROL2__(a2[12].m128i_i16[6], 8);
v33 = __ROL2__(a2[11].m128i_i16[6], 8);
v2 = _mm_and_si128(_mm_loadu_si128(a2 + 8), (__m128i)xmmword_E00F0);
v3 = _mm_packus_epi16(v2, v2);
v34 = _mm_cvtsi128_si32(_mm_packus_epi16(v3, v3));
v35 = a2[14].m128i_i8[12];
v36 = a2[13].m128i_i8[0];
v37 = __ROL2__(a2[9].m128i_i16[2], 8);
v38 = __ROL2__(a2[9].m128i_i16[0], 8);
v39 = __ROL2__(a2[10].m128i_i16[2], 8);
v40 = __ROL2__(a2[10].m128i_i16[4], 8);
v41 = __ROL2__(a2[10].m128i_i16[6], 8);
v42 = a2[11].m128i_i8[0];
v4 = a2[6].m128i_i64[0];
v44 = __ROL2__(v4, 8);
v43 = BYTE2(v4);
memset(v45, 0, sizeof(v45));
v5 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v9, a1, 7LL);
if ( v5 )
{
ma_base_info_write_cold_1(v5, a1, (long long)&v11, &v10);
v6 = v10;
}
else
{
v6 = my_write(a1, (long long)&v11, 135LL, 4LL);
}
return v6 != 0;
}
| _ma_base_info_write:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0xe0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
LEA RAX,[0x505cb0]
MOVAPS XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RBP + -0xa0],XMM0
MOV RAX,qword ptr [RSI]
BSWAP RAX
MOV qword ptr [RBP + -0x90],RAX
MOV RAX,qword ptr [RSI + 0x8]
BSWAP RAX
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RSI + 0x10]
BSWAP RAX
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RSI + 0x20]
BSWAP RAX
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RSI + 0x28]
BSWAP RAX
MOV qword ptr [RBP + -0x70],RAX
MOV EAX,dword ptr [RSI + 0x30]
BSWAP EAX
MOV dword ptr [RBP + -0x68],EAX
MOV EAX,dword ptr [RSI + 0x38]
BSWAP EAX
MOV dword ptr [RBP + -0x64],EAX
MOV EAX,dword ptr [RSI + 0x40]
BSWAP EAX
MOV dword ptr [RBP + -0x60],EAX
MOV EAX,dword ptr [RSI + 0x48]
BSWAP EAX
MOV dword ptr [RBP + -0x5c],EAX
MOV EAX,dword ptr [RSI + 0x50]
BSWAP EAX
MOV dword ptr [RBP + -0x58],EAX
MOV EAX,dword ptr [RSI + 0x58]
BSWAP EAX
MOV dword ptr [RBP + -0x54],EAX
MOVZX EAX,word ptr [RSI + 0x68]
ROL AX,0x8
MOV word ptr [RBP + -0x50],AX
MOVZX EAX,word ptr [RSI + 0x6c]
ROL AX,0x8
MOV word ptr [RBP + -0x4e],AX
MOVZX EAX,word ptr [RSI + 0x70]
ROL AX,0x8
MOV word ptr [RBP + -0x4c],AX
MOVZX EAX,word ptr [RSI + 0x74]
ROL AX,0x8
MOV word ptr [RBP + -0x4a],AX
MOVZX EAX,word ptr [RSI + 0x78]
ROL AX,0x8
MOV word ptr [RBP + -0x48],AX
MOVZX EAX,word ptr [RSI + 0xc8]
ROL AX,0x8
MOV word ptr [RBP + -0x46],AX
MOVZX EAX,word ptr [RSI + 0x9c]
ROL AX,0x8
MOV word ptr [RBP + -0x44],AX
MOVZX EAX,word ptr [RSI + 0x98]
ROL AX,0x8
MOV word ptr [RBP + -0x42],AX
MOVZX EAX,word ptr [RSI + 0xa0]
ROL AX,0x8
MOV word ptr [RBP + -0x40],AX
MOVZX EAX,word ptr [RSI + 0xcc]
ROL AX,0x8
MOV word ptr [RBP + -0x3e],AX
MOVZX EAX,word ptr [RSI + 0xbc]
ROL AX,0x8
MOV word ptr [RBP + -0x3c],AX
MOVDQU XMM0,xmmword ptr [RSI + 0x80]
PAND XMM0,xmmword ptr [0x001e00f0]
PACKUSWB XMM0,XMM0
PACKUSWB XMM0,XMM0
MOVD dword ptr [RBP + -0x3a],XMM0
MOV AL,byte ptr [RSI + 0xec]
MOV byte ptr [RBP + -0x36],AL
MOV AL,byte ptr [RSI + 0xd0]
MOV byte ptr [RBP + -0x35],AL
MOVZX EAX,word ptr [RSI + 0x94]
ROL AX,0x8
MOV word ptr [RBP + -0x34],AX
MOVZX EAX,word ptr [RSI + 0x90]
ROL AX,0x8
MOV word ptr [RBP + -0x32],AX
MOVZX EAX,word ptr [RSI + 0xa4]
ROL AX,0x8
MOV word ptr [RBP + -0x30],AX
MOVZX EAX,word ptr [RSI + 0xa8]
ROL AX,0x8
MOV word ptr [RBP + -0x2e],AX
MOVZX EAX,word ptr [RSI + 0xac]
ROL AX,0x8
MOV EBX,EDI
MOV word ptr [RBP + -0x2c],AX
MOV AL,byte ptr [RSI + 0xb0]
MOV byte ptr [RBP + -0x2a],AL
MOV RAX,qword ptr [RSI + 0x60]
MOV ECX,EAX
ROL CX,0x8
MOV word ptr [RBP + -0x28],CX
SHR EAX,0x10
MOV byte ptr [RBP + -0x29],AL
XOR EAX,EAX
MOV qword ptr [RBP + -0x21],RAX
MOV qword ptr [RBP + -0x26],RAX
LEA RAX,[0x48f258]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0xf0]
MOV ESI,EBX
MOV EDX,0x7
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0016e8a9
LEA RSI,[RBP + -0xa0]
MOV EDX,0x87
MOV ECX,0x4
MOV EDI,EBX
CALL 0x00130a78
MOV RCX,RAX
LAB_0016e884:
XOR EAX,EAX
TEST RCX,RCX
SETNZ CL
MOV RDX,qword ptr FS:[0x28]
CMP RDX,qword ptr [RBP + -0x18]
JNZ 0x0016e8c9
MOV AL,CL
ADD RSP,0xe0
POP RBX
POP R14
POP RBP
RET
LAB_0016e8a9:
LEA RDX,[RBP + -0xa0]
LEA R14,[RBP + -0xa8]
MOV RDI,RAX
MOV ESI,EBX
MOV RCX,R14
CALL 0x0012e339
MOV RCX,qword ptr [R14]
JMP 0x0016e884
LAB_0016e8c9:
CALL 0x0012a270
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
bool _ma_base_info_write(int4 param_1,ulong *param_2)
{
uint uVar1;
ulong uVar2;
char cVar3;
short sVar7;
short sVar8;
short sVar9;
long lVar10;
long in_FS_OFFSET;
ushort uVar11;
short sVar12;
ushort uVar15;
ushort uVar16;
ushort uVar17;
ushort uVar18;
ushort uVar19;
ushort uVar20;
ushort uVar21;
int1 local_f8 [72];
long local_b0;
int8 local_a8 [2];
ulong local_98;
ulong local_90;
ulong local_88;
ulong local_80;
ulong local_78;
uint local_70;
uint local_6c;
uint local_68;
uint local_64;
uint local_60;
uint local_5c;
ushort local_58;
ushort local_56;
ushort local_54;
ushort local_52;
ushort local_50;
ushort local_4e;
ushort local_4c;
ushort local_4a;
ushort local_48;
ushort local_46;
ushort local_44;
int4 local_42;
int1 local_3e;
int1 local_3d;
ushort local_3c;
ushort local_3a;
ushort local_38;
ushort local_36;
ushort local_34;
int1 local_32;
int1 local_31;
ushort local_30;
int5 uStack_2e;
int3 local_29;
int5 uStack_26;
long local_20;
char cVar4;
char cVar5;
char cVar6;
int4 uVar13;
int6 uVar14;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
local_a8[0] = maria_uuid._0_8_;
local_a8[1] = maria_uuid._8_8_;
uVar2 = *param_2;
local_98 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |
(uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |
(uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;
uVar2 = param_2[1];
local_90 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |
(uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |
(uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;
uVar2 = param_2[2];
local_88 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |
(uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |
(uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;
uVar2 = param_2[4];
local_80 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |
(uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |
(uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;
uVar2 = param_2[5];
local_78 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |
(uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |
(uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;
uVar1 = (uint)param_2[6];
local_70 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
uVar1 = (uint)param_2[7];
local_6c = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
uVar1 = (uint)param_2[8];
local_68 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
uVar1 = (uint)param_2[9];
local_64 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
uVar1 = (uint)param_2[10];
local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
uVar1 = (uint)param_2[0xb];
local_5c = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
local_58 = (ushort)param_2[0xd] << 8 | (ushort)param_2[0xd] >> 8;
local_56 = *(ushort *)((long)param_2 + 0x6c) << 8 | *(ushort *)((long)param_2 + 0x6c) >> 8;
local_54 = (ushort)param_2[0xe] << 8 | (ushort)param_2[0xe] >> 8;
local_52 = *(ushort *)((long)param_2 + 0x74) << 8 | *(ushort *)((long)param_2 + 0x74) >> 8;
local_50 = (ushort)param_2[0xf] << 8 | (ushort)param_2[0xf] >> 8;
local_4e = (ushort)param_2[0x19] << 8 | (ushort)param_2[0x19] >> 8;
local_4c = *(ushort *)((long)param_2 + 0x9c) << 8 | *(ushort *)((long)param_2 + 0x9c) >> 8;
local_4a = (ushort)param_2[0x13] << 8 | (ushort)param_2[0x13] >> 8;
local_48 = (ushort)param_2[0x14] << 8 | (ushort)param_2[0x14] >> 8;
local_46 = *(ushort *)((long)param_2 + 0xcc) << 8 | *(ushort *)((long)param_2 + 0xcc) >> 8;
local_44 = *(ushort *)((long)param_2 + 0xbc) << 8 | *(ushort *)((long)param_2 + 0xbc) >> 8;
uVar11 = (ushort)param_2[0x10] & _DAT_001e00f0;
uVar15 = *(ushort *)((long)param_2 + 0x82) & _UNK_001e00f2;
uVar16 = *(ushort *)((long)param_2 + 0x84) & _UNK_001e00f4;
uVar17 = *(ushort *)((long)param_2 + 0x86) & _UNK_001e00f6;
uVar18 = (ushort)param_2[0x11] & _UNK_001e00f8;
uVar19 = *(ushort *)((long)param_2 + 0x8a) & _UNK_001e00fa;
uVar20 = *(ushort *)((long)param_2 + 0x8c) & _UNK_001e00fc;
uVar21 = *(ushort *)((long)param_2 + 0x8e) & _UNK_001e00fe;
cVar3 = (0 < (short)uVar11) * ((short)uVar11 < 0x100) * (char)uVar11 - (0xff < (short)uVar11);
sVar12 = CONCAT11((0 < (short)uVar15) * ((short)uVar15 < 0x100) * (char)uVar15 -
(0xff < (short)uVar15),cVar3);
cVar4 = (0 < (short)uVar16) * ((short)uVar16 < 0x100) * (char)uVar16 - (0xff < (short)uVar16);
uVar13 = CONCAT13((0 < (short)uVar17) * ((short)uVar17 < 0x100) * (char)uVar17 -
(0xff < (short)uVar17),CONCAT12(cVar4,sVar12));
cVar5 = (0 < (short)uVar18) * ((short)uVar18 < 0x100) * (char)uVar18 - (0xff < (short)uVar18);
uVar14 = CONCAT15((0 < (short)uVar19) * ((short)uVar19 < 0x100) * (char)uVar19 -
(0xff < (short)uVar19),CONCAT14(cVar5,uVar13));
cVar6 = (0 < (short)uVar20) * ((short)uVar20 < 0x100) * (char)uVar20 - (0xff < (short)uVar20);
sVar7 = (short)((uint)uVar13 >> 0x10);
sVar8 = (short)((uint6)uVar14 >> 0x20);
sVar9 = (short)(CONCAT17((0 < (short)uVar21) * ((short)uVar21 < 0x100) * (char)uVar21 -
(0xff < (short)uVar21),CONCAT16(cVar6,uVar14)) >> 0x30);
local_42 = CONCAT13((0 < sVar9) * (sVar9 < 0x100) * cVar6 - (0xff < sVar9),
CONCAT12((0 < sVar8) * (sVar8 < 0x100) * cVar5 - (0xff < sVar8),
CONCAT11((0 < sVar7) * (sVar7 < 0x100) * cVar4 - (0xff < sVar7),
(0 < sVar12) * (sVar12 < 0x100) * cVar3 - (0xff < sVar12))))
;
local_3e = *(int1 *)((long)param_2 + 0xec);
local_3d = (int1)param_2[0x1a];
local_3c = *(ushort *)((long)param_2 + 0x94) << 8 | *(ushort *)((long)param_2 + 0x94) >> 8;
local_3a = (ushort)param_2[0x12] << 8 | (ushort)param_2[0x12] >> 8;
local_38 = *(ushort *)((long)param_2 + 0xa4) << 8 | *(ushort *)((long)param_2 + 0xa4) >> 8;
local_36 = (ushort)param_2[0x15] << 8 | (ushort)param_2[0x15] >> 8;
local_34 = *(ushort *)((long)param_2 + 0xac) << 8 | *(ushort *)((long)param_2 + 0xac) >> 8;
local_32 = (int1)param_2[0x16];
uVar11 = (ushort)param_2[0xc];
local_30 = uVar11 << 8 | uVar11 >> 8;
local_31 = (int1)(param_2[0xc] >> 0x10);
uStack_26 = 0;
uStack_2e = 0;
local_29 = 0;
lVar10 = (**(code **)(PSI_server + 0x158))(local_f8,param_1,7);
if (lVar10 == 0) {
local_b0 = my_write(param_1,local_a8,0x87,4);
}
else {
_ma_base_info_write_cold_1(lVar10,param_1,local_a8,&local_b0);
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return local_b0 != 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.