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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
29,700 | mi_get_status | eloqsql/storage/myisam/mi_locking.c | my_bool mi_get_status(void* param, my_bool concurrent_insert)
{
MI_INFO *info=(MI_INFO*) param;
DBUG_ENTER("mi_get_status");
DBUG_PRINT("info",("name: %s key_file: %lu data_file: %lu rows: %lu concurrent_insert: %d",
info->s->index_file_name,
(ulong) info->s->state.state.key_file_length,
(ulong) info->s->state.state.data_file_length,
(ulong) info->s->state.state.records,
concurrent_insert));
#ifndef DBUG_OFF
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->state->key_file_length,
(long) info->state->data_file_length));
#endif
info->save_state=info->s->state.state;
info->state= &info->save_state;
info->append_insert_at_end= concurrent_insert;
if (concurrent_insert)
info->s->state.state.uncacheable= TRUE;
DBUG_RETURN(0);
} | O0 | c | mi_get_status:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xb256c
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rsi
addq $0x18, %rsi
movl $0x38, %edx
callq 0x2a090
movq -0x18(%rbp), %rcx
addq $0x10, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movb -0x9(%rbp), %cl
movq -0x18(%rbp), %rax
movb %cl, 0x33a(%rax)
cmpb $0x0, -0x9(%rbp)
je 0xb25b7
movq -0x18(%rbp), %rax
movq (%rax), %rax
movb $0x1, 0x4c(%rax)
jmp 0xb25b9
jmp 0xb25bb
xorl %eax, %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mi_get_status:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, sil
mov [rbp+var_8], rdi
mov [rbp+var_9], al
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
jmp short $+2
loc_B256C:
mov rdi, [rbp+var_18]
add rdi, 10h
mov rax, [rbp+var_18]
mov rsi, [rax]
add rsi, 18h
mov edx, 38h ; '8'
call _memcpy
mov rcx, [rbp+var_18]
add rcx, 10h
mov rax, [rbp+var_18]
mov [rax+8], rcx
mov cl, [rbp+var_9]
mov rax, [rbp+var_18]
mov [rax+33Ah], cl
cmp [rbp+var_9], 0
jz short loc_B25B7
mov rax, [rbp+var_18]
mov rax, [rax]
mov byte ptr [rax+4Ch], 1
loc_B25B7:
jmp short $+2
loc_B25B9:
jmp short $+2
loc_B25BB:
xor eax, eax
add rsp, 20h
pop rbp
retn
| long long mi_get_status(long long a1, char a2)
{
memcpy(a1 + 16, *(_QWORD *)a1 + 24LL, 56LL);
*(_QWORD *)(a1 + 8) = a1 + 16;
*(_BYTE *)(a1 + 826) = a2;
if ( a2 )
*(_BYTE *)(*(_QWORD *)a1 + 76LL) = 1;
return 0LL;
}
| mi_get_status:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],AL
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001b256c
LAB_001b256c:
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x10
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX]
ADD RSI,0x18
MOV EDX,0x38
CALL 0x0012a090
MOV RCX,qword ptr [RBP + -0x18]
ADD RCX,0x10
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],RCX
MOV CL,byte ptr [RBP + -0x9]
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x33a],CL
CMP byte ptr [RBP + -0x9],0x0
JZ 0x001b25b7
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV byte ptr [RAX + 0x4c],0x1
LAB_001b25b7:
JMP 0x001b25b9
LAB_001b25b9:
JMP 0x001b25bb
LAB_001b25bb:
XOR EAX,EAX
ADD RSP,0x20
POP RBP
RET
|
int8 mi_get_status(long *param_1,char param_2)
{
memcpy(param_1 + 2,(void *)(*param_1 + 0x18),0x38);
param_1[1] = (long)(param_1 + 2);
*(char *)((long)param_1 + 0x33a) = param_2;
if (param_2 != '\0') {
*(int1 *)(*param_1 + 0x4c) = 1;
}
return 0;
}
| |
29,701 | LefDefParser::lefiNonDefault::clear() | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiNonDefault.cpp | void
lefiNonDefault::clear()
{
int i;
lefiSpacing *sr;
lefiVia *vr;
for (i = 0; i < numProps_; i++) {
lefFree(names_[i]);
lefFree(values_[i]);
dvalues_[i] = 0;
}
numProps_ = 0;
for (i = 0; i < numLayers_; i++) {
lefFree(layerName_[i]);
layerName_[i] = 0;
}
numLayers_ = 0;
for (i = 0; i < numVias_; i++) {
vr = viaRules_[i];
vr->Destroy();
lefFree((char*) (viaRules_[i]));
viaRules_[i] = 0;
}
numVias_ = 0;
for (i = 0; i < numSpacing_; i++) {
sr = spacingRules_[i];
sr->Destroy();
lefFree((char*) (spacingRules_[i]));
spacingRules_[i] = 0;
}
numSpacing_ = 0;
hardSpacing_ = 0;
for (i = 0; i < numUseVias_; i++) {
lefFree((char*) (useViaName_[i]));
}
numUseVias_ = 0;
for (i = 0; i < numUseViaRules_; i++) {
lefFree((char*) (useViaRuleName_[i]));
}
numUseViaRules_ = 0;
for (i = 0; i < numMinCuts_; i++) {
lefFree((char*) (cutLayerName_[i]));
}
numMinCuts_ = 0;
} | O3 | cpp | LefDefParser::lefiNonDefault::clear():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0xf0(%rdi)
jle 0x1f255
xorl %r14d, %r14d
movq 0xf8(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x26040
movq 0x100(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x26040
movq 0x108(%rbx), %rax
movq $0x0, (%rax,%r14,8)
incq %r14
movslq 0xf0(%rbx), %rax
cmpq %rax, %r14
jl 0x1f217
movl $0x0, 0xf0(%rbx)
cmpl $0x0, 0x10(%rbx)
jle 0x1f28d
xorl %r14d, %r14d
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x26040
movq 0x18(%rbx), %rax
movq $0x0, (%rax,%r14,8)
incq %r14
movslq 0x10(%rbx), %rax
cmpq %rax, %r14
jl 0x1f268
movl $0x0, 0x10(%rbx)
cmpl $0x0, 0x90(%rbx)
jle 0x1f2de
xorl %r14d, %r14d
movq 0x98(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x13eb4
movq 0x98(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x26040
movq 0x98(%rbx), %rax
movq $0x0, (%rax,%r14,8)
incq %r14
movslq 0x90(%rbx), %rax
cmpq %rax, %r14
jl 0x1f2a0
movl $0x0, 0x90(%rbx)
cmpl $0x0, 0xa0(%rbx)
jle 0x1f332
xorl %r14d, %r14d
movq 0xa8(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x121b2
movq 0xa8(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x26040
movq 0xa8(%rbx), %rax
movq $0x0, (%rax,%r14,8)
incq %r14
movslq 0xa0(%rbx), %rax
cmpq %rax, %r14
jl 0x1f2f4
xorl %eax, %eax
movl %eax, 0xa0(%rbx)
movl %eax, 0xb0(%rbx)
cmpl %eax, 0xb4(%rbx)
jle 0x1f36a
xorl %r14d, %r14d
movq 0xc0(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x26040
incq %r14
movslq 0xb4(%rbx), %rax
cmpq %rax, %r14
jl 0x1f34b
movl $0x0, 0xb4(%rbx)
cmpl $0x0, 0xc8(%rbx)
jle 0x1f39f
xorl %r14d, %r14d
movq 0xd0(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x26040
incq %r14
movslq 0xc8(%rbx), %rax
cmpq %rax, %r14
jl 0x1f380
movl $0x0, 0xc8(%rbx)
cmpl $0x0, 0xd8(%rbx)
jle 0x1f3d4
xorl %r14d, %r14d
movq 0xe0(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x26040
incq %r14
movslq 0xd8(%rbx), %rax
cmpq %rax, %r14
jl 0x1f3b5
movl $0x0, 0xd8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZN12LefDefParser14lefiNonDefault5clearEv:
push r14
push rbx
push rax
mov rbx, rdi
cmp dword ptr [rdi+0F0h], 0
jle short loc_1F255
xor r14d, r14d
loc_1F217:
mov rax, [rbx+0F8h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rbx+100h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rbx+108h]
mov qword ptr [rax+r14*8], 0
inc r14
movsxd rax, dword ptr [rbx+0F0h]
cmp r14, rax
jl short loc_1F217
loc_1F255:
mov dword ptr [rbx+0F0h], 0
cmp dword ptr [rbx+10h], 0
jle short loc_1F28D
xor r14d, r14d
loc_1F268:
mov rax, [rbx+18h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rbx+18h]
mov qword ptr [rax+r14*8], 0
inc r14
movsxd rax, dword ptr [rbx+10h]
cmp r14, rax
jl short loc_1F268
loc_1F28D:
mov dword ptr [rbx+10h], 0
cmp dword ptr [rbx+90h], 0
jle short loc_1F2DE
xor r14d, r14d
loc_1F2A0:
mov rax, [rbx+98h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefiVia7DestroyEv; LefDefParser::lefiVia::Destroy(void)
mov rax, [rbx+98h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rbx+98h]
mov qword ptr [rax+r14*8], 0
inc r14
movsxd rax, dword ptr [rbx+90h]
cmp r14, rax
jl short loc_1F2A0
loc_1F2DE:
mov dword ptr [rbx+90h], 0
cmp dword ptr [rbx+0A0h], 0
jle short loc_1F332
xor r14d, r14d
loc_1F2F4:
mov rax, [rbx+0A8h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser11lefiSpacing7DestroyEv; LefDefParser::lefiSpacing::Destroy(void)
mov rax, [rbx+0A8h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rbx+0A8h]
mov qword ptr [rax+r14*8], 0
inc r14
movsxd rax, dword ptr [rbx+0A0h]
cmp r14, rax
jl short loc_1F2F4
loc_1F332:
xor eax, eax
mov [rbx+0A0h], eax
mov [rbx+0B0h], eax
cmp [rbx+0B4h], eax
jle short loc_1F36A
xor r14d, r14d
loc_1F34B:
mov rax, [rbx+0C0h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
inc r14
movsxd rax, dword ptr [rbx+0B4h]
cmp r14, rax
jl short loc_1F34B
loc_1F36A:
mov dword ptr [rbx+0B4h], 0
cmp dword ptr [rbx+0C8h], 0
jle short loc_1F39F
xor r14d, r14d
loc_1F380:
mov rax, [rbx+0D0h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
inc r14
movsxd rax, dword ptr [rbx+0C8h]
cmp r14, rax
jl short loc_1F380
loc_1F39F:
mov dword ptr [rbx+0C8h], 0
cmp dword ptr [rbx+0D8h], 0
jle short loc_1F3D4
xor r14d, r14d
loc_1F3B5:
mov rax, [rbx+0E0h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
inc r14
movsxd rax, dword ptr [rbx+0D8h]
cmp r14, rax
jl short loc_1F3B5
loc_1F3D4:
mov dword ptr [rbx+0D8h], 0
add rsp, 8
pop rbx
pop r14
retn
| long long LefDefParser::lefiNonDefault::clear(LefDefParser::lefiNonDefault *this, void *a2)
{
long long v2; // r14
long long v3; // r14
long long v4; // r14
long long v5; // r14
long long result; // rax
long long v7; // r14
long long v8; // r14
long long v9; // r14
if ( *((int *)this + 60) > 0 )
{
v2 = 0LL;
do
{
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 31) + 8 * v2), a2);
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 32) + 8 * v2), a2);
*(_QWORD *)(*((_QWORD *)this + 33) + 8 * v2++) = 0LL;
}
while ( v2 < *((int *)this + 60) );
}
*((_DWORD *)this + 60) = 0;
if ( *((int *)this + 4) > 0 )
{
v3 = 0LL;
do
{
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 3) + 8 * v3), a2);
*(_QWORD *)(*((_QWORD *)this + 3) + 8 * v3++) = 0LL;
}
while ( v3 < *((int *)this + 4) );
}
*((_DWORD *)this + 4) = 0;
if ( *((int *)this + 36) > 0 )
{
v4 = 0LL;
do
{
LefDefParser::lefiVia::Destroy(*(LefDefParser ***)(*((_QWORD *)this + 19) + 8 * v4), a2);
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 19) + 8 * v4), a2);
*(_QWORD *)(*((_QWORD *)this + 19) + 8 * v4++) = 0LL;
}
while ( v4 < *((int *)this + 36) );
}
*((_DWORD *)this + 36) = 0;
if ( *((int *)this + 40) > 0 )
{
v5 = 0LL;
do
{
LefDefParser::lefiSpacing::Destroy(*(LefDefParser::lefiSpacing **)(*((_QWORD *)this + 21) + 8 * v5), a2);
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 21) + 8 * v5), a2);
*(_QWORD *)(*((_QWORD *)this + 21) + 8 * v5++) = 0LL;
}
while ( v5 < *((int *)this + 40) );
}
result = 0LL;
*((_DWORD *)this + 40) = 0;
*((_DWORD *)this + 44) = 0;
if ( *((int *)this + 45) > 0 )
{
v7 = 0LL;
do
{
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 24) + 8 * v7++), a2);
result = *((int *)this + 45);
}
while ( v7 < result );
}
*((_DWORD *)this + 45) = 0;
if ( *((int *)this + 50) > 0 )
{
v8 = 0LL;
do
{
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 26) + 8 * v8++), a2);
result = *((int *)this + 50);
}
while ( v8 < result );
}
*((_DWORD *)this + 50) = 0;
if ( *((int *)this + 54) > 0 )
{
v9 = 0LL;
do
{
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 28) + 8 * v9++), a2);
result = *((int *)this + 54);
}
while ( v9 < result );
}
*((_DWORD *)this + 54) = 0;
return result;
}
| clear:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP dword ptr [RDI + 0xf0],0x0
JLE 0x0011f255
XOR R14D,R14D
LAB_0011f217:
MOV RAX,qword ptr [RBX + 0xf8]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x00126040
MOV RAX,qword ptr [RBX + 0x100]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x00126040
MOV RAX,qword ptr [RBX + 0x108]
MOV qword ptr [RAX + R14*0x8],0x0
INC R14
MOVSXD RAX,dword ptr [RBX + 0xf0]
CMP R14,RAX
JL 0x0011f217
LAB_0011f255:
MOV dword ptr [RBX + 0xf0],0x0
CMP dword ptr [RBX + 0x10],0x0
JLE 0x0011f28d
XOR R14D,R14D
LAB_0011f268:
MOV RAX,qword ptr [RBX + 0x18]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x00126040
MOV RAX,qword ptr [RBX + 0x18]
MOV qword ptr [RAX + R14*0x8],0x0
INC R14
MOVSXD RAX,dword ptr [RBX + 0x10]
CMP R14,RAX
JL 0x0011f268
LAB_0011f28d:
MOV dword ptr [RBX + 0x10],0x0
CMP dword ptr [RBX + 0x90],0x0
JLE 0x0011f2de
XOR R14D,R14D
LAB_0011f2a0:
MOV RAX,qword ptr [RBX + 0x98]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x00113eb4
MOV RAX,qword ptr [RBX + 0x98]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x00126040
MOV RAX,qword ptr [RBX + 0x98]
MOV qword ptr [RAX + R14*0x8],0x0
INC R14
MOVSXD RAX,dword ptr [RBX + 0x90]
CMP R14,RAX
JL 0x0011f2a0
LAB_0011f2de:
MOV dword ptr [RBX + 0x90],0x0
CMP dword ptr [RBX + 0xa0],0x0
JLE 0x0011f332
XOR R14D,R14D
LAB_0011f2f4:
MOV RAX,qword ptr [RBX + 0xa8]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x001121b2
MOV RAX,qword ptr [RBX + 0xa8]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x00126040
MOV RAX,qword ptr [RBX + 0xa8]
MOV qword ptr [RAX + R14*0x8],0x0
INC R14
MOVSXD RAX,dword ptr [RBX + 0xa0]
CMP R14,RAX
JL 0x0011f2f4
LAB_0011f332:
XOR EAX,EAX
MOV dword ptr [RBX + 0xa0],EAX
MOV dword ptr [RBX + 0xb0],EAX
CMP dword ptr [RBX + 0xb4],EAX
JLE 0x0011f36a
XOR R14D,R14D
LAB_0011f34b:
MOV RAX,qword ptr [RBX + 0xc0]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x00126040
INC R14
MOVSXD RAX,dword ptr [RBX + 0xb4]
CMP R14,RAX
JL 0x0011f34b
LAB_0011f36a:
MOV dword ptr [RBX + 0xb4],0x0
CMP dword ptr [RBX + 0xc8],0x0
JLE 0x0011f39f
XOR R14D,R14D
LAB_0011f380:
MOV RAX,qword ptr [RBX + 0xd0]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x00126040
INC R14
MOVSXD RAX,dword ptr [RBX + 0xc8]
CMP R14,RAX
JL 0x0011f380
LAB_0011f39f:
MOV dword ptr [RBX + 0xc8],0x0
CMP dword ptr [RBX + 0xd8],0x0
JLE 0x0011f3d4
XOR R14D,R14D
LAB_0011f3b5:
MOV RAX,qword ptr [RBX + 0xe0]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x00126040
INC R14
MOVSXD RAX,dword ptr [RBX + 0xd8]
CMP R14,RAX
JL 0x0011f3b5
LAB_0011f3d4:
MOV dword ptr [RBX + 0xd8],0x0
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* LefDefParser::lefiNonDefault::clear() */
void __thiscall LefDefParser::lefiNonDefault::clear(lefiNonDefault *this)
{
long lVar1;
if (0 < *(int *)(this + 0xf0)) {
lVar1 = 0;
do {
lefFree(*(void **)(*(long *)(this + 0xf8) + lVar1 * 8));
lefFree(*(void **)(*(long *)(this + 0x100) + lVar1 * 8));
*(int8 *)(*(long *)(this + 0x108) + lVar1 * 8) = 0;
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 0xf0));
}
*(int4 *)(this + 0xf0) = 0;
if (0 < *(int *)(this + 0x10)) {
lVar1 = 0;
do {
lefFree(*(void **)(*(long *)(this + 0x18) + lVar1 * 8));
*(int8 *)(*(long *)(this + 0x18) + lVar1 * 8) = 0;
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 0x10));
}
*(int4 *)(this + 0x10) = 0;
if (0 < *(int *)(this + 0x90)) {
lVar1 = 0;
do {
lefiVia::Destroy(*(lefiVia **)(*(long *)(this + 0x98) + lVar1 * 8));
lefFree(*(void **)(*(long *)(this + 0x98) + lVar1 * 8));
*(int8 *)(*(long *)(this + 0x98) + lVar1 * 8) = 0;
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 0x90));
}
*(int4 *)(this + 0x90) = 0;
if (0 < *(int *)(this + 0xa0)) {
lVar1 = 0;
do {
lefiSpacing::Destroy(*(lefiSpacing **)(*(long *)(this + 0xa8) + lVar1 * 8));
lefFree(*(void **)(*(long *)(this + 0xa8) + lVar1 * 8));
*(int8 *)(*(long *)(this + 0xa8) + lVar1 * 8) = 0;
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 0xa0));
}
*(int4 *)(this + 0xa0) = 0;
*(int4 *)(this + 0xb0) = 0;
if (0 < *(int *)(this + 0xb4)) {
lVar1 = 0;
do {
lefFree(*(void **)(*(long *)(this + 0xc0) + lVar1 * 8));
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 0xb4));
}
*(int4 *)(this + 0xb4) = 0;
if (0 < *(int *)(this + 200)) {
lVar1 = 0;
do {
lefFree(*(void **)(*(long *)(this + 0xd0) + lVar1 * 8));
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 200));
}
*(int4 *)(this + 200) = 0;
if (0 < *(int *)(this + 0xd8)) {
lVar1 = 0;
do {
lefFree(*(void **)(*(long *)(this + 0xe0) + lVar1 * 8));
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 0xd8));
}
*(int4 *)(this + 0xd8) = 0;
return;
}
| |
29,702 | plan | eloqsql/unittest/mytap/tap.c | void
plan(int count)
{
char *config= getenv("MYTAP_CONFIG");
size_t i;
start_time= start_timer();
if (config)
skip_big_tests= strcmp(config, "big");
setvbuf(tapout, 0, _IONBF, 0); /* provide output at once */
/*
Install signal handler
*/
for (i= 0; i < sizeof(install_signal)/sizeof(*install_signal); ++i)
signal(install_signal[i].signo, install_signal[i].handler);
g_test.plan= count;
switch (count)
{
case NO_PLAN:
break;
default:
if (count > 0)
{
fprintf(tapout, "1..%d\n", count);
fflush(tapout);
}
break;
}
} | O0 | c | plan:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
leaq 0x54e09(%rip), %rdi # 0x7b22b
callq 0x25470
movq %rax, -0x10(%rbp)
callq 0x26510
movq %rax, 0x361451(%rip) # 0x387888
cmpq $0x0, -0x10(%rbp)
je 0x26454
movq -0x10(%rbp), %rdi
leaq 0x592bf(%rip), %rsi # 0x7f708
callq 0x25510
movl %eax, 0x1a9bbc(%rip) # 0x1d0010
movq 0x1a9b5d(%rip), %rax # 0x1cffb8
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %ecx
movl $0x2, %edx
movq %rcx, %rsi
callq 0x25040
movq $0x0, -0x18(%rbp)
cmpq $0xb, -0x18(%rbp)
jae 0x264bb
movq -0x18(%rbp), %rcx
leaq 0x1a9b97(%rip), %rax # 0x1d0020
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %edi
movq -0x18(%rbp), %rcx
leaq 0x1a9b83(%rip), %rax # 0x1d0020
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rsi
callq 0x25430
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x26477
movl -0x4(%rbp), %eax
movl %eax, 0x361334(%rip) # 0x3877f8
movl -0x4(%rbp), %eax
testl %eax, %eax
jne 0x264cf
jmp 0x264cd
jmp 0x26501
cmpl $0x0, -0x4(%rbp)
jle 0x264ff
movq 0x1a9adc(%rip), %rax # 0x1cffb8
movq (%rax), %rdi
movl -0x4(%rbp), %edx
leaq 0x54d4f(%rip), %rsi # 0x7b238
movb $0x0, %al
callq 0x25530
movq 0x1a9ac1(%rip), %rax # 0x1cffb8
movq (%rax), %rdi
callq 0x25410
jmp 0x26501
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| plan:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
lea rdi, aMytapConfig; "MYTAP_CONFIG"
call _getenv
mov [rbp+var_10], rax
call start_timer
mov cs:start_time, rax
cmp [rbp+var_10], 0
jz short loc_26454
mov rdi, [rbp+var_10]
lea rsi, aUndoRecordTooB+10h; "big"
call _strcmp
mov cs:skip_big_tests, eax
loc_26454:
mov rax, cs:stdout_ptr
mov rdi, [rax]
xor eax, eax
mov ecx, eax
mov edx, 2
mov rsi, rcx
call _setvbuf
mov [rbp+var_18], 0
loc_26477:
cmp [rbp+var_18], 0Bh
jnb short loc_264BB
mov rcx, [rbp+var_18]
lea rax, install_signal
shl rcx, 4
add rax, rcx
mov edi, [rax]
mov rcx, [rbp+var_18]
lea rax, install_signal
shl rcx, 4
add rax, rcx
mov rsi, [rax+8]
call _signal
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short loc_26477
loc_264BB:
mov eax, [rbp+var_4]
mov cs:g_test, eax
mov eax, [rbp+var_4]
test eax, eax
jnz short loc_264CF
jmp short $+2
loc_264CD:
jmp short loc_26501
loc_264CF:
cmp [rbp+var_4], 0
jle short loc_264FF
mov rax, cs:stdout_ptr
mov rdi, [rax]
mov edx, [rbp+var_4]
lea rsi, a1D; "1..%d\n"
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
loc_264FF:
jmp short $+2
loc_26501:
add rsp, 20h
pop rbp
retn
| long long plan(int a1)
{
long long result; // rax
unsigned long long i; // [rsp+8h] [rbp-18h]
long long v3; // [rsp+10h] [rbp-10h]
v3 = getenv("MYTAP_CONFIG");
start_time = start_timer();
if ( v3 )
skip_big_tests = strcmp(v3, "big");
setvbuf(stdout, 0LL, 2LL);
for ( i = 0LL; i < 0xB; ++i )
signal(*((unsigned int *)&install_signal + 4 * i), *((_QWORD *)&install_signal + 2 * i + 1));
g_test = a1;
result = (unsigned int)a1;
if ( a1 > 0 )
{
fprintf(stdout, "1..%d\n", a1);
return fflush(stdout);
}
return result;
}
| plan:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
LEA RDI,[0x17b22b]
CALL 0x00125470
MOV qword ptr [RBP + -0x10],RAX
CALL 0x00126510
MOV qword ptr [0x00487888],RAX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00126454
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x17f708]
CALL 0x00125510
MOV dword ptr [0x002d0010],EAX
LAB_00126454:
MOV RAX,qword ptr [0x002cffb8]
MOV RDI,qword ptr [RAX]
XOR EAX,EAX
MOV ECX,EAX
MOV EDX,0x2
MOV RSI,RCX
CALL 0x00125040
MOV qword ptr [RBP + -0x18],0x0
LAB_00126477:
CMP qword ptr [RBP + -0x18],0xb
JNC 0x001264bb
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x2d0020]
SHL RCX,0x4
ADD RAX,RCX
MOV EDI,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x2d0020]
SHL RCX,0x4
ADD RAX,RCX
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x00125430
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00126477
LAB_001264bb:
MOV EAX,dword ptr [RBP + -0x4]
MOV dword ptr [0x004877f8],EAX
MOV EAX,dword ptr [RBP + -0x4]
TEST EAX,EAX
JNZ 0x001264cf
JMP 0x001264cd
LAB_001264cd:
JMP 0x00126501
LAB_001264cf:
CMP dword ptr [RBP + -0x4],0x0
JLE 0x001264ff
MOV RAX,qword ptr [0x002cffb8]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RBP + -0x4]
LEA RSI,[0x17b238]
MOV AL,0x0
CALL 0x00125530
MOV RAX,qword ptr [0x002cffb8]
MOV RDI,qword ptr [RAX]
CALL 0x00125410
LAB_001264ff:
JMP 0x00126501
LAB_00126501:
ADD RSP,0x20
POP RBP
RET
|
void plan(uint param_1)
{
char *__s1;
ulong local_20;
__s1 = getenv("MYTAP_CONFIG");
start_time = start_timer();
if (__s1 != (char *)0x0) {
skip_big_tests = strcmp(__s1,"big");
}
setvbuf(*(FILE **)PTR_stdout_002cffb8,(char *)0x0,2,0);
for (local_20 = 0; local_20 < 0xb; local_20 = local_20 + 1) {
signal(*(int *)(install_signal + local_20 * 0x10),
*(__sighandler_t *)(install_signal + local_20 * 0x10 + 8));
}
g_test = param_1;
if ((param_1 != 0) && (0 < (int)param_1)) {
fprintf(*(FILE **)PTR_stdout_002cffb8,"1..%d\n",(ulong)param_1);
fflush(*(FILE **)PTR_stdout_002cffb8);
}
return;
}
| |
29,703 | translog_set_sent_to_disk | eloqsql/storage/maria/ma_loghandler.c | static void translog_set_sent_to_disk(struct st_translog_buffer *buffer)
{
LSN lsn= buffer->last_lsn;
TRANSLOG_ADDRESS in_buffers= buffer->next_buffer_offset;
DBUG_ENTER("translog_set_sent_to_disk");
mysql_mutex_lock(&log_descriptor.sent_to_disk_lock);
DBUG_PRINT("enter", ("lsn: " LSN_FMT " in_buffers: " LSN_FMT " "
"in_buffers_only: " LSN_FMT " start: " LSN_FMT " "
"sent_to_disk: " LSN_FMT,
LSN_IN_PARTS(lsn),
LSN_IN_PARTS(in_buffers),
LSN_IN_PARTS(log_descriptor.log_start),
LSN_IN_PARTS(log_descriptor.in_buffers_only),
LSN_IN_PARTS(log_descriptor.sent_to_disk)));
/*
We write sequentially (first part of following assert) but we rewrite
the same page in case we started mysql and shut it down immediately
(second part of the following assert)
*/
DBUG_ASSERT(cmp_translog_addr(lsn, log_descriptor.sent_to_disk) >= 0 ||
cmp_translog_addr(lsn, log_descriptor.log_start) < 0);
log_descriptor.sent_to_disk= lsn;
/* LSN_IMPOSSIBLE == 0 => it will work for very first time */
if (cmp_translog_addr(in_buffers, log_descriptor.in_buffers_only) > 0)
{
log_descriptor.in_buffers_only= in_buffers;
DBUG_PRINT("info", ("set new in_buffers_only"));
}
mysql_mutex_unlock(&log_descriptor.sent_to_disk_lock);
DBUG_VOID_RETURN;
} | O0 | c | translog_set_sent_to_disk:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x100000(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x100018(%rax), %rax
movq %rax, -0x18(%rbp)
leaq 0x41c59f(%rip), %rdi # 0x47a660
addq $0x800cc0, %rdi # imm = 0x800CC0
leaq 0xf4eea(%rip), %rsi # 0x152fb9
movl $0x8e9, %edx # imm = 0x8E9
callq 0x510a0
jmp 0x5e0db
jmp 0x5e0dd
jmp 0x5e0df
movq -0x10(%rbp), %rax
movq %rax, 0xc1d216(%rip) # 0xc7b300
movq -0x18(%rbp), %rax
subq 0xc1d223(%rip), %rax # 0xc7b318
cmpq $0x0, %rax
jle 0x5e10a
movq -0x18(%rbp), %rax
movq %rax, 0xc1d212(%rip) # 0xc7b318
jmp 0x5e108
jmp 0x5e10a
leaq 0x41c54f(%rip), %rdi # 0x47a660
addq $0x800cc0, %rdi # imm = 0x800CC0
callq 0x51110
jmp 0x5e11f
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| translog_set_sent_to_disk:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rax, [rax+100000h]
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rax, qword ptr ds:loc_100018[rax]
mov [rbp+var_18], rax
lea rdi, log_descriptor
add rdi, 800CC0h
lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 8E9h
call inline_mysql_mutex_lock_8
jmp short $+2
loc_5E0DB:
jmp short $+2
loc_5E0DD:
jmp short $+2
loc_5E0DF:
mov rax, [rbp+var_10]
mov cs:qword_C7B300, rax
mov rax, [rbp+var_18]
sub rax, cs:qword_C7B318
cmp rax, 0
jle short loc_5E10A
mov rax, [rbp+var_18]
mov cs:qword_C7B318, rax
jmp short $+2
loc_5E108:
jmp short $+2
loc_5E10A:
lea rdi, log_descriptor
add rdi, 800CC0h
call inline_mysql_mutex_unlock_8
jmp short $+2
loc_5E11F:
add rsp, 20h
pop rbp
retn
| long long translog_set_sent_to_disk(long long a1)
{
long long v2; // [rsp+8h] [rbp-18h]
long long v3; // [rsp+10h] [rbp-10h]
v3 = *(_QWORD *)(a1 + 0x100000);
v2 = *(_QWORD *)((char *)&loc_100018 + a1);
inline_mysql_mutex_lock_8(
(long long)&log_descriptor[1048984],
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x8E9u);
qword_C7B300 = v3;
if ( v2 - qword_C7B318 > 0 )
qword_C7B318 = v2;
return inline_mysql_mutex_unlock_8((long long)&log_descriptor[1048984]);
}
| translog_set_sent_to_disk:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x100000]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x100018]
MOV qword ptr [RBP + -0x18],RAX
LEA RDI,[0x57a660]
ADD RDI,0x800cc0
LEA RSI,[0x252fb9]
MOV EDX,0x8e9
CALL 0x001510a0
JMP 0x0015e0db
LAB_0015e0db:
JMP 0x0015e0dd
LAB_0015e0dd:
JMP 0x0015e0df
LAB_0015e0df:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [0x00d7b300],RAX
MOV RAX,qword ptr [RBP + -0x18]
SUB RAX,qword ptr [0x00d7b318]
CMP RAX,0x0
JLE 0x0015e10a
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [0x00d7b318],RAX
JMP 0x0015e108
LAB_0015e108:
JMP 0x0015e10a
LAB_0015e10a:
LEA RDI,[0x57a660]
ADD RDI,0x800cc0
CALL 0x00151110
JMP 0x0015e11f
LAB_0015e11f:
ADD RSP,0x20
POP RBP
RET
|
void translog_set_sent_to_disk(long param_1)
{
int8 uVar1;
long lVar2;
uVar1 = *(int8 *)(param_1 + 0x100000);
lVar2 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0xf);
inline_mysql_mutex_lock
(&DAT_00d7b320,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x8e9);
if (0 < lVar2 - DAT_00d7b318) {
DAT_00d7b318 = lVar2;
}
DAT_00d7b300 = uVar1;
inline_mysql_mutex_unlock(&DAT_00d7b320);
return;
}
| |
29,704 | diff | eloqsql/strings/dtoa.c | static Bigint *diff(Bigint *a, Bigint *b, Stack_alloc *alloc)
{
Bigint *c;
int i, wa, wb;
ULong *xa, *xae, *xb, *xbe, *xc;
ULLong borrow, y;
i= cmp(a,b);
if (!i)
{
c= Balloc(0, alloc);
c->wds= 1;
c->p.x[0]= 0;
return c;
}
if (i < 0)
{
c= a;
a= b;
b= c;
i= 1;
}
else
i= 0;
c= Balloc(a->k, alloc);
c->sign= i;
wa= a->wds;
xa= a->p.x;
xae= xa + wa;
wb= b->wds;
xb= b->p.x;
xbe= xb + wb;
xc= c->p.x;
borrow= 0;
do
{
y= (ULLong)*xa++ - *xb++ - borrow;
borrow= y >> 32 & (ULong)1;
*xc++= (ULong) (y & FFFFFFFF);
}
while (xb < xbe);
while (xa < xae)
{
y= *xa++ - borrow;
borrow= y >> 32 & (ULong)1;
*xc++= (ULong) (y & FFFFFFFF);
}
while (!*--xc)
wa--;
c->wds= wa;
return c;
} | O0 | c | diff:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x7e6e0
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0x7e51e
movq -0x20(%rbp), %rsi
xorl %edi, %edi
callq 0x7dbf0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl $0x1, 0x14(%rax)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movl $0x0, (%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x7e6ca
cmpl $0x0, -0x2c(%rbp)
jge 0x7e545
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x1, -0x2c(%rbp)
jmp 0x7e54c
movl $0x0, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %edi
movq -0x20(%rbp), %rsi
callq 0x7dbf0
movq %rax, -0x28(%rbp)
movl -0x2c(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movslq -0x30(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movslq -0x34(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x40(%rbp)
movl (%rax), %eax
movq -0x50(%rbp), %rcx
movq %rcx, %rdx
addq $0x4, %rdx
movq %rdx, -0x50(%rbp)
movl (%rcx), %ecx
subq %rcx, %rax
subq -0x68(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
shrq $0x20, %rax
andq $0x1, %rax
movq %rax, -0x68(%rbp)
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x70(%rbp), %rax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, -0x60(%rbp)
movl %ecx, (%rax)
movq -0x50(%rbp), %rax
cmpq -0x58(%rbp), %rax
jb 0x7e5cd
jmp 0x7e637
movq -0x40(%rbp), %rax
cmpq -0x48(%rbp), %rax
jae 0x7e68d
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x40(%rbp)
movl (%rax), %eax
subq -0x68(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
shrq $0x20, %rax
andq $0x1, %rax
movq %rax, -0x68(%rbp)
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x70(%rbp), %rax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, -0x60(%rbp)
movl %ecx, (%rax)
jmp 0x7e637
jmp 0x7e68f
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $-0x4, %rcx
movq %rcx, -0x60(%rbp)
cmpl $0x0, -0x4(%rax)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x7e6ad
jmp 0x7e6b8
movl -0x30(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x7e68f
movl -0x30(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| diff:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call cmp
mov [rbp+var_2C], eax
cmp [rbp+var_2C], 0
jnz short loc_7E51E
mov rsi, [rbp+var_20]
xor edi, edi
call Balloc
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov dword ptr [rax+14h], 1
mov rax, [rbp+var_28]
mov rax, [rax]
mov dword ptr [rax], 0
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
jmp loc_7E6CA
loc_7E51E:
cmp [rbp+var_2C], 0
jge short loc_7E545
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_10], rax
mov rax, [rbp+var_28]
mov [rbp+var_18], rax
mov [rbp+var_2C], 1
jmp short loc_7E54C
loc_7E545:
mov [rbp+var_2C], 0
loc_7E54C:
mov rax, [rbp+var_10]
mov edi, [rax+8]
mov rsi, [rbp+var_20]
call Balloc
mov [rbp+var_28], rax
mov ecx, [rbp+var_2C]
mov rax, [rbp+var_28]
mov [rax+10h], ecx
mov rax, [rbp+var_10]
mov eax, [rax+14h]
mov [rbp+var_30], eax
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
movsxd rcx, [rbp+var_30]
shl rcx, 2
add rax, rcx
mov [rbp+var_48], rax
mov rax, [rbp+var_18]
mov eax, [rax+14h]
mov [rbp+var_34], eax
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
movsxd rcx, [rbp+var_34]
shl rcx, 2
add rax, rcx
mov [rbp+var_58], rax
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_60], rax
mov [rbp+var_68], 0
loc_7E5CD:
mov rax, [rbp+var_40]
mov rcx, rax
add rcx, 4
mov [rbp+var_40], rcx
mov eax, [rax]
mov rcx, [rbp+var_50]
mov rdx, rcx
add rdx, 4
mov [rbp+var_50], rdx
mov ecx, [rcx]
sub rax, rcx
sub rax, [rbp+var_68]
mov [rbp+var_70], rax
mov rax, [rbp+var_70]
shr rax, 20h
and rax, 1
mov [rbp+var_68], rax
mov rax, 0FFFFFFFFh
and rax, [rbp+var_70]
mov ecx, eax
mov rax, [rbp+var_60]
mov rdx, rax
add rdx, 4
mov [rbp+var_60], rdx
mov [rax], ecx
mov rax, [rbp+var_50]
cmp rax, [rbp+var_58]
jb short loc_7E5CD
jmp short $+2
loc_7E637:
mov rax, [rbp+var_40]
cmp rax, [rbp+var_48]
jnb short loc_7E68D
mov rax, [rbp+var_40]
mov rcx, rax
add rcx, 4
mov [rbp+var_40], rcx
mov eax, [rax]
sub rax, [rbp+var_68]
mov [rbp+var_70], rax
mov rax, [rbp+var_70]
shr rax, 20h
and rax, 1
mov [rbp+var_68], rax
mov rax, 0FFFFFFFFh
and rax, [rbp+var_70]
mov ecx, eax
mov rax, [rbp+var_60]
mov rdx, rax
add rdx, 4
mov [rbp+var_60], rdx
mov [rax], ecx
jmp short loc_7E637
loc_7E68D:
jmp short $+2
loc_7E68F:
mov rax, [rbp+var_60]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_60], rcx
cmp dword ptr [rax-4], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_7E6AD
jmp short loc_7E6B8
loc_7E6AD:
mov eax, [rbp+var_30]
add eax, 0FFFFFFFFh
mov [rbp+var_30], eax
jmp short loc_7E68F
loc_7E6B8:
mov ecx, [rbp+var_30]
mov rax, [rbp+var_28]
mov [rax+14h], ecx
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
loc_7E6CA:
mov rax, [rbp+var_8]
add rsp, 70h
pop rbp
retn
| long long diff(unsigned int **a1, unsigned int **a2, long long a3)
{
unsigned int *v3; // rax
unsigned int *v4; // rcx
_DWORD *v5; // rax
unsigned int *v6; // rax
_DWORD *v7; // rax
_DWORD *v8; // rax
unsigned long long v10; // [rsp+0h] [rbp-70h]
unsigned long long v11; // [rsp+0h] [rbp-70h]
long long v12; // [rsp+8h] [rbp-68h]
_DWORD *v13; // [rsp+10h] [rbp-60h]
unsigned long long v14; // [rsp+18h] [rbp-58h]
unsigned int *v15; // [rsp+20h] [rbp-50h]
unsigned long long v16; // [rsp+28h] [rbp-48h]
unsigned int *v17; // [rsp+30h] [rbp-40h]
int v18; // [rsp+40h] [rbp-30h]
int v19; // [rsp+44h] [rbp-2Ch]
int v20; // [rsp+44h] [rbp-2Ch]
long long v21; // [rsp+48h] [rbp-28h]
long long v22; // [rsp+48h] [rbp-28h]
unsigned int **v24; // [rsp+58h] [rbp-18h]
unsigned int **v25; // [rsp+60h] [rbp-10h]
v25 = a1;
v24 = a2;
v19 = cmp(a1, a2);
if ( v19 )
{
if ( v19 >= 0 )
{
v20 = 0;
}
else
{
v25 = a2;
v24 = a1;
v20 = 1;
}
v22 = Balloc(*((_DWORD *)v25 + 2), a3);
*(_DWORD *)(v22 + 16) = v20;
v18 = *((_DWORD *)v25 + 5);
v17 = *v25;
v16 = (unsigned long long)&(*v25)[v18];
v15 = *v24;
v14 = (unsigned long long)&(*v24)[*((int *)v24 + 5)];
v13 = *(_DWORD **)v22;
v12 = 0LL;
do
{
v3 = v17++;
v4 = v15++;
v10 = *v3 - (unsigned long long)*v4 - v12;
v12 = HIDWORD(v10) & 1;
v5 = v13++;
*v5 = v10;
}
while ( (unsigned long long)v15 < v14 );
while ( (unsigned long long)v17 < v16 )
{
v6 = v17++;
v11 = *v6 - v12;
v12 = HIDWORD(v11) & 1;
v7 = v13++;
*v7 = v11;
}
while ( 1 )
{
v8 = v13--;
if ( *(v8 - 1) )
break;
--v18;
}
*(_DWORD *)(v22 + 20) = v18;
return v22;
}
else
{
v21 = Balloc(0, a3);
*(_DWORD *)(v21 + 20) = 1;
**(_DWORD **)v21 = 0;
return v21;
}
}
| diff:
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 RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0017e6e0
MOV dword ptr [RBP + -0x2c],EAX
CMP dword ptr [RBP + -0x2c],0x0
JNZ 0x0017e51e
MOV RSI,qword ptr [RBP + -0x20]
XOR EDI,EDI
CALL 0x0017dbf0
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX + 0x14],0x1
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0017e6ca
LAB_0017e51e:
CMP dword ptr [RBP + -0x2c],0x0
JGE 0x0017e545
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x18],RAX
MOV dword ptr [RBP + -0x2c],0x1
JMP 0x0017e54c
LAB_0017e545:
MOV dword ptr [RBP + -0x2c],0x0
LAB_0017e54c:
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x8]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x0017dbf0
MOV qword ptr [RBP + -0x28],RAX
MOV ECX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX + 0x10],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOVSXD RCX,dword ptr [RBP + -0x30]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOVSXD RCX,dword ptr [RBP + -0x34]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV qword ptr [RBP + -0x68],0x0
LAB_0017e5cd:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x40],RCX
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x50]
MOV RDX,RCX
ADD RDX,0x4
MOV qword ptr [RBP + -0x50],RDX
MOV ECX,dword ptr [RCX]
SUB RAX,RCX
SUB RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x70]
SHR RAX,0x20
AND RAX,0x1
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x70]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RDX,RAX
ADD RDX,0x4
MOV qword ptr [RBP + -0x60],RDX
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x50]
CMP RAX,qword ptr [RBP + -0x58]
JC 0x0017e5cd
JMP 0x0017e637
LAB_0017e637:
MOV RAX,qword ptr [RBP + -0x40]
CMP RAX,qword ptr [RBP + -0x48]
JNC 0x0017e68d
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x40],RCX
MOV EAX,dword ptr [RAX]
SUB RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x70]
SHR RAX,0x20
AND RAX,0x1
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x70]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RDX,RAX
ADD RDX,0x4
MOV qword ptr [RBP + -0x60],RDX
MOV dword ptr [RAX],ECX
JMP 0x0017e637
LAB_0017e68d:
JMP 0x0017e68f
LAB_0017e68f:
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,RAX
ADD RCX,-0x4
MOV qword ptr [RBP + -0x60],RCX
CMP dword ptr [RAX + -0x4],0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x0017e6ad
JMP 0x0017e6b8
LAB_0017e6ad:
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x0017e68f
LAB_0017e6b8:
MOV ECX,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX + 0x14],ECX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
LAB_0017e6ca:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x70
POP RBP
RET
|
int8 * diff(int8 *param_1,int8 *param_2,int8 param_3)
{
uint *puVar1;
uint *puVar2;
int iVar3;
ulong uVar4;
uint *puVar5;
uint *puVar6;
int4 *puVar7;
ulong local_70;
int4 *local_68;
uint *local_58;
uint *local_48;
int local_38;
uint local_34;
int8 *local_20;
int8 *local_18;
int8 *local_10;
iVar3 = cmp(param_1,param_2);
if (iVar3 == 0) {
local_10 = (int8 *)Balloc(0,param_3);
*(int4 *)((long)local_10 + 0x14) = 1;
*(int4 *)*local_10 = 0;
}
else {
local_20 = param_2;
local_18 = param_1;
if (iVar3 < 0) {
local_20 = param_1;
local_18 = param_2;
}
local_34 = (uint)(iVar3 < 0);
local_10 = (int8 *)Balloc(*(int4 *)(local_18 + 1),param_3);
*(uint *)(local_10 + 2) = local_34;
local_38 = *(int *)((long)local_18 + 0x14);
puVar1 = (uint *)*local_18;
iVar3 = *(int *)((long)local_20 + 0x14);
puVar2 = (uint *)*local_20;
local_70 = 0;
local_68 = (int4 *)*local_10;
local_58 = puVar2;
local_48 = puVar1;
do {
puVar5 = local_48 + 1;
puVar6 = local_58 + 1;
uVar4 = ((ulong)*local_48 - (ulong)*local_58) - local_70;
local_70 = uVar4 >> 0x20 & 1;
puVar7 = local_68 + 1;
*local_68 = (int)uVar4;
local_68 = puVar7;
local_58 = puVar6;
local_48 = puVar5;
} while (puVar6 < puVar2 + iVar3);
while (local_48 < puVar1 + local_38) {
uVar4 = *local_48 - local_70;
local_70 = uVar4 >> 0x20 & 1;
*local_68 = (int)uVar4;
local_68 = local_68 + 1;
local_48 = local_48 + 1;
}
while (local_68[-1] == 0) {
local_38 = local_38 + -1;
local_68 = local_68 + -1;
}
*(int *)((long)local_10 + 0x14) = local_38;
}
return local_10;
}
| |
29,705 | diff | eloqsql/strings/dtoa.c | static Bigint *diff(Bigint *a, Bigint *b, Stack_alloc *alloc)
{
Bigint *c;
int i, wa, wb;
ULong *xa, *xae, *xb, *xbe, *xc;
ULLong borrow, y;
i= cmp(a,b);
if (!i)
{
c= Balloc(0, alloc);
c->wds= 1;
c->p.x[0]= 0;
return c;
}
if (i < 0)
{
c= a;
a= b;
b= c;
i= 1;
}
else
i= 0;
c= Balloc(a->k, alloc);
c->sign= i;
wa= a->wds;
xa= a->p.x;
xae= xa + wa;
wb= b->wds;
xb= b->p.x;
xbe= xb + wb;
xc= c->p.x;
borrow= 0;
do
{
y= (ULLong)*xa++ - *xb++ - borrow;
borrow= y >> 32 & (ULong)1;
*xc++= (ULong) (y & FFFFFFFF);
}
while (xb < xbe);
while (xa < xae)
{
y= *xa++ - borrow;
borrow= y >> 32 & (ULong)1;
*xc++= (ULong) (y & FFFFFFFF);
}
while (!*--xc)
wa--;
c->wds= wa;
return c;
} | O3 | c | diff:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x14(%rdi), %eax
movslq 0x14(%rsi), %rdi
subl %edi, %eax
jne 0x5e947
movq (%rbx), %rax
leaq (%rax,%rdi,4), %rcx
movq (%rsi), %r8
leaq (%r8,%rdi,4), %rdi
addq $-0x4, %rdi
movl -0x4(%rcx), %r8d
movl (%rdi), %r9d
cmpl %r9d, %r8d
jne 0x5e93d
addq $-0x4, %rcx
addq $-0x4, %rdi
cmpq %rax, %rcx
ja 0x5e905
xorl %edi, %edi
movq %rdx, %rsi
callq 0x5e3c4
movl $0x1, 0x14(%rax)
movq (%rax), %rcx
movl $0x0, (%rcx)
jmp 0x5e9e3
xorl %eax, %eax
cmpl %r9d, %r8d
sbbl %eax, %eax
orl $0x1, %eax
movl %eax, %r14d
shrl $0x1f, %r14d
testl %eax, %eax
movq %rsi, %r15
cmovsq %rbx, %r15
cmovsq %rsi, %rbx
movl 0x8(%rbx), %edi
movq %rdx, %rsi
callq 0x5e3c4
movl %r14d, 0x10(%rax)
movslq 0x14(%rbx), %rcx
movq (%rbx), %r8
movslq 0x14(%r15), %rdx
movq (%r15), %r9
leaq (%r9,%rdx,4), %r10
movq (%rax), %rdx
xorl %edi, %edi
movq %r8, %rsi
movl (%r9), %r11d
addq %rdi, %r11
movl (%rsi), %edi
addq $0x4, %rsi
addq $0x4, %r9
subq %r11, %rdi
movl %edi, (%rdx)
shrq $0x20, %rdi
andl $0x1, %edi
addq $0x4, %rdx
cmpq %r10, %r9
jb 0x5e984
leaq (%r8,%rcx,4), %r8
cmpq %r8, %rsi
jae 0x5e9cf
movl (%rsi), %r9d
addq $0x4, %rsi
subq %rdi, %r9
movq %r9, %rdi
shrq $0x20, %rdi
andl $0x1, %edi
movl %r9d, (%rdx)
addq $0x4, %rdx
jmp 0x5e9ad
incl %ecx
addq $-0x4, %rdx
decl %ecx
cmpl $0x0, (%rdx)
leaq -0x4(%rdx), %rdx
je 0x5e9d5
movl %ecx, 0x14(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| diff:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
mov eax, [rdi+14h]
movsxd rdi, dword ptr [rsi+14h]
sub eax, edi
jnz short loc_5E947
mov rax, [rbx]
lea rcx, [rax+rdi*4]
mov r8, [rsi]
lea rdi, [r8+rdi*4]
add rdi, 0FFFFFFFFFFFFFFFCh
loc_5E905:
mov r8d, [rcx-4]
mov r9d, [rdi]
cmp r8d, r9d
jnz short loc_5E93D
add rcx, 0FFFFFFFFFFFFFFFCh
add rdi, 0FFFFFFFFFFFFFFFCh
cmp rcx, rax
ja short loc_5E905
xor edi, edi
mov rsi, rdx
call Balloc
mov dword ptr [rax+14h], 1
mov rcx, [rax]
mov dword ptr [rcx], 0
jmp loc_5E9E3
loc_5E93D:
xor eax, eax
cmp r8d, r9d
sbb eax, eax
or eax, 1
loc_5E947:
mov r14d, eax
shr r14d, 1Fh
test eax, eax
mov r15, rsi
cmovs r15, rbx
cmovs rbx, rsi
mov edi, [rbx+8]
mov rsi, rdx
call Balloc
mov [rax+10h], r14d
movsxd rcx, dword ptr [rbx+14h]
mov r8, [rbx]
movsxd rdx, dword ptr [r15+14h]
mov r9, [r15]
lea r10, [r9+rdx*4]
mov rdx, [rax]
xor edi, edi
mov rsi, r8
loc_5E984:
mov r11d, [r9]
add r11, rdi
mov edi, [rsi]
add rsi, 4
add r9, 4
sub rdi, r11
mov [rdx], edi
shr rdi, 20h
and edi, 1
add rdx, 4
cmp r9, r10
jb short loc_5E984
lea r8, [r8+rcx*4]
loc_5E9AD:
cmp rsi, r8
jnb short loc_5E9CF
mov r9d, [rsi]
add rsi, 4
sub r9, rdi
mov rdi, r9
shr rdi, 20h
and edi, 1
mov [rdx], r9d
add rdx, 4
jmp short loc_5E9AD
loc_5E9CF:
inc ecx
add rdx, 0FFFFFFFFFFFFFFFCh
loc_5E9D5:
dec ecx
cmp dword ptr [rdx], 0
lea rdx, [rdx-4]
jz short loc_5E9D5
mov [rax+14h], ecx
loc_5E9E3:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long diff(unsigned int **a1, unsigned int **a2, long long a3)
{
unsigned int **v3; // rbx
int v4; // eax
long long v5; // rdi
int v6; // eax
unsigned long long v7; // rcx
unsigned int *i; // rdi
unsigned int v9; // r8d
long long result; // rax
unsigned int v11; // r14d
unsigned int **v12; // r15
long long v13; // rcx
unsigned int *v14; // r8
unsigned int *v15; // r9
unsigned long long v16; // r10
_DWORD *v17; // rdx
long long v18; // rdi
unsigned int *v19; // rsi
long long v20; // r11
long long v21; // rdi
long long v22; // rdi
unsigned long long v23; // r8
long long v24; // r9
long long v25; // r9
int v26; // ecx
_DWORD *v27; // rdx
v3 = a1;
v4 = *((_DWORD *)a1 + 5);
v5 = *((int *)a2 + 5);
v6 = v4 - v5;
if ( !v6 )
{
v7 = (unsigned long long)&(*v3)[v5];
for ( i = &(*a2)[v5 - 1]; ; --i )
{
v9 = *(_DWORD *)(v7 - 4);
if ( v9 != *i )
break;
v7 -= 4LL;
if ( v7 <= (unsigned long long)*v3 )
{
result = Balloc(0, a3);
*(_DWORD *)(result + 20) = 1;
**(_DWORD **)result = 0;
return result;
}
}
v6 = v9 < *i ? -1 : 1;
}
v11 = (unsigned int)v6 >> 31;
v12 = a2;
if ( v6 < 0 )
{
v12 = v3;
v3 = a2;
}
result = Balloc(*((_DWORD *)v3 + 2), a3);
*(_DWORD *)(result + 16) = v11;
v13 = *((int *)v3 + 5);
v14 = *v3;
v15 = *v12;
v16 = (unsigned long long)&(*v12)[*((int *)v12 + 5)];
v17 = *(_DWORD **)result;
v18 = 0LL;
v19 = *v3;
do
{
v20 = v18 + *v15;
v21 = *v19++;
++v15;
v22 = v21 - v20;
*v17 = v22;
v18 = BYTE4(v22) & 1;
++v17;
}
while ( (unsigned long long)v15 < v16 );
v23 = (unsigned long long)&v14[v13];
while ( (unsigned long long)v19 < v23 )
{
v24 = *v19++;
v25 = v24 - v18;
v18 = BYTE4(v25) & 1;
*v17++ = v25;
}
v26 = v13 + 1;
v27 = v17 - 1;
do
--v26;
while ( *v27-- == 0 );
*(_DWORD *)(result + 20) = v26;
return result;
}
| diff:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV EAX,dword ptr [RDI + 0x14]
MOVSXD RDI,dword ptr [RSI + 0x14]
SUB EAX,EDI
JNZ 0x0015e947
MOV RAX,qword ptr [RBX]
LEA RCX,[RAX + RDI*0x4]
MOV R8,qword ptr [RSI]
LEA RDI,[R8 + RDI*0x4]
ADD RDI,-0x4
LAB_0015e905:
MOV R8D,dword ptr [RCX + -0x4]
MOV R9D,dword ptr [RDI]
CMP R8D,R9D
JNZ 0x0015e93d
ADD RCX,-0x4
ADD RDI,-0x4
CMP RCX,RAX
JA 0x0015e905
XOR EDI,EDI
MOV RSI,RDX
CALL 0x0015e3c4
MOV dword ptr [RAX + 0x14],0x1
MOV RCX,qword ptr [RAX]
MOV dword ptr [RCX],0x0
JMP 0x0015e9e3
LAB_0015e93d:
XOR EAX,EAX
CMP R8D,R9D
SBB EAX,EAX
OR EAX,0x1
LAB_0015e947:
MOV R14D,EAX
SHR R14D,0x1f
TEST EAX,EAX
MOV R15,RSI
CMOVS R15,RBX
CMOVS RBX,RSI
MOV EDI,dword ptr [RBX + 0x8]
MOV RSI,RDX
CALL 0x0015e3c4
MOV dword ptr [RAX + 0x10],R14D
MOVSXD RCX,dword ptr [RBX + 0x14]
MOV R8,qword ptr [RBX]
MOVSXD RDX,dword ptr [R15 + 0x14]
MOV R9,qword ptr [R15]
LEA R10,[R9 + RDX*0x4]
MOV RDX,qword ptr [RAX]
XOR EDI,EDI
MOV RSI,R8
LAB_0015e984:
MOV R11D,dword ptr [R9]
ADD R11,RDI
MOV EDI,dword ptr [RSI]
ADD RSI,0x4
ADD R9,0x4
SUB RDI,R11
MOV dword ptr [RDX],EDI
SHR RDI,0x20
AND EDI,0x1
ADD RDX,0x4
CMP R9,R10
JC 0x0015e984
LEA R8,[R8 + RCX*0x4]
LAB_0015e9ad:
CMP RSI,R8
JNC 0x0015e9cf
MOV R9D,dword ptr [RSI]
ADD RSI,0x4
SUB R9,RDI
MOV RDI,R9
SHR RDI,0x20
AND EDI,0x1
MOV dword ptr [RDX],R9D
ADD RDX,0x4
JMP 0x0015e9ad
LAB_0015e9cf:
INC ECX
ADD RDX,-0x4
LAB_0015e9d5:
DEC ECX
CMP dword ptr [RDX],0x0
LEA RDX,[RDX + -0x4]
JZ 0x0015e9d5
MOV dword ptr [RAX + 0x14],ECX
LAB_0015e9e3:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void diff(ulong *param_1,ulong *param_2,int8 param_3)
{
uint uVar1;
uint *puVar2;
uint uVar3;
int8 *puVar4;
int iVar5;
ulong uVar6;
int *piVar7;
ulong *puVar8;
uint *puVar9;
uint *puVar10;
long lVar11;
uint *puVar12;
iVar5 = *(int *)((long)param_2 + 0x14);
uVar3 = *(int *)((long)param_1 + 0x14) - iVar5;
if (uVar3 == 0) {
uVar6 = *param_1 + (long)iVar5 * 4;
puVar10 = (uint *)(*param_2 + (long)iVar5 * 4);
do {
puVar10 = puVar10 + -1;
if (*(uint *)(uVar6 - 4) != *puVar10) {
uVar3 = -(uint)(*(uint *)(uVar6 - 4) < *puVar10) | 1;
goto LAB_0015e947;
}
uVar6 = uVar6 - 4;
} while (*param_1 < uVar6);
puVar4 = (int8 *)Balloc(0,param_3);
*(int4 *)((long)puVar4 + 0x14) = 1;
*(int4 *)*puVar4 = 0;
}
else {
LAB_0015e947:
puVar8 = param_1;
if ((int)uVar3 < 0) {
puVar8 = param_2;
param_2 = param_1;
}
puVar4 = (int8 *)Balloc((int)puVar8[1],param_3);
*(uint *)(puVar4 + 2) = uVar3 >> 0x1f;
iVar5 = *(int *)((long)puVar8 + 0x14);
puVar2 = (uint *)*puVar8;
puVar12 = (uint *)*param_2;
puVar10 = puVar12 + *(int *)((long)param_2 + 0x14);
piVar7 = (int *)*puVar4;
uVar6 = 0;
puVar9 = puVar2;
do {
uVar3 = *puVar12;
uVar1 = *puVar9;
puVar9 = puVar9 + 1;
puVar12 = puVar12 + 1;
lVar11 = (ulong)uVar1 - (uVar3 + uVar6);
*piVar7 = (int)lVar11;
uVar6 = (ulong)((uint)((ulong)lVar11 >> 0x20) & 1);
piVar7 = piVar7 + 1;
} while (puVar12 < puVar10);
for (; puVar9 < puVar2 + iVar5; puVar9 = puVar9 + 1) {
lVar11 = *puVar9 - uVar6;
uVar6 = (ulong)((uint)((ulong)lVar11 >> 0x20) & 1);
*piVar7 = (int)lVar11;
piVar7 = piVar7 + 1;
}
iVar5 = iVar5 + 1;
do {
piVar7 = piVar7 + -1;
iVar5 = iVar5 + -1;
} while (*piVar7 == 0);
*(int *)((long)puVar4 + 0x14) = iVar5;
}
return;
}
| |
29,706 | my_strxfrm_desc_and_reverse | eloqsql/strings/ctype-simple.c | void
my_strxfrm_desc_and_reverse(uchar *str, uchar *strend,
uint flags, uint level)
{
if (flags & (MY_STRXFRM_DESC_LEVEL1 << level))
{
if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level))
{
for (strend--; str <= strend;)
{
uchar tmp= *str;
*str++= ~*strend;
*strend--= ~tmp;
}
}
else
{
for (; str < strend; str++)
*str= ~*str;
}
}
else if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level))
{
for (strend--; str < strend;)
{
uchar tmp= *str;
*str++= *strend;
*strend--= tmp;
}
}
} | O3 | c | my_strxfrm_desc_and_reverse:
pushq %rbp
movq %rsp, %rbp
movl %edx, %r8d
shrl %cl, %r8d
movl $0x10000, %eax # imm = 0x10000
shll %cl, %eax
btl $0x8, %r8d
jae 0xb75b8
testl %edx, %eax
je 0xb75eb
decq %rsi
cmpq %rdi, %rsi
jb 0xb75fa
incq %rdi
movb -0x1(%rdi), %al
movb (%rsi), %cl
notb %cl
movb %cl, -0x1(%rdi)
notb %al
movb %al, (%rsi)
decq %rsi
leaq 0x1(%rdi), %rax
cmpq %rsi, %rdi
movq %rax, %rdi
jbe 0xb7599
jmp 0xb75fa
testl %edx, %eax
setne %al
decq %rsi
cmpq %rdi, %rsi
seta %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xb75fa
incq %rdi
movb -0x1(%rdi), %al
movb (%rsi), %cl
movb %cl, -0x1(%rdi)
movb %al, (%rsi)
decq %rsi
leaq 0x1(%rdi), %rax
cmpq %rsi, %rdi
movq %rax, %rdi
jb 0xb75d0
jmp 0xb75fa
cmpq %rsi, %rdi
jae 0xb75fa
notb (%rdi)
incq %rdi
cmpq %rsi, %rdi
jne 0xb75f0
popq %rbp
retq
| my_strxfrm_desc_and_reverse:
push rbp
mov rbp, rsp
mov r8d, edx
shr r8d, cl
mov eax, offset stru_10000
shl eax, cl
bt r8d, 8
jnb short loc_B75B8
test eax, edx
jz short loc_B75EB
dec rsi
cmp rsi, rdi
jb short loc_B75FA
inc rdi
loc_B7599:
mov al, [rdi-1]
mov cl, [rsi]
not cl
mov [rdi-1], cl
not al
mov [rsi], al
dec rsi
lea rax, [rdi+1]
cmp rdi, rsi
mov rdi, rax
jbe short loc_B7599
jmp short loc_B75FA
loc_B75B8:
test eax, edx
setnz al
dec rsi
cmp rsi, rdi
setnbe cl
and cl, al
cmp cl, 1
jnz short loc_B75FA
inc rdi
loc_B75D0:
mov al, [rdi-1]
mov cl, [rsi]
mov [rdi-1], cl
mov [rsi], al
dec rsi
lea rax, [rdi+1]
cmp rdi, rsi
mov rdi, rax
jb short loc_B75D0
jmp short loc_B75FA
loc_B75EB:
cmp rdi, rsi
jnb short loc_B75FA
loc_B75F0:
not byte ptr [rdi]
inc rdi
cmp rdi, rsi
jnz short loc_B75F0
loc_B75FA:
pop rbp
retn
| char my_strxfrm_desc_and_reverse(_BYTE *a1, _BYTE *a2, unsigned int a3, char a4)
{
int v4; // eax
_BYTE *v5; // rsi
_BYTE *v6; // rdi
char v7; // al
_BYTE *v9; // rsi
_BYTE *v10; // rdi
char v11; // al
v4 = (_DWORD)&stru_10000 << a4;
if ( ((a3 >> a4) & 0x100) != 0 )
{
if ( (a3 & v4) != 0 )
{
v5 = a2 - 1;
if ( v5 >= a1 )
{
v6 = a1 + 1;
do
{
v7 = *(v6 - 1);
*(v6 - 1) = ~*v5;
*v5-- = ~v7;
LOBYTE(v4) = (_BYTE)v6 + 1;
}
while ( v6++ <= v5 );
}
}
else if ( a1 < a2 )
{
do
{
*a1 = ~*a1;
++a1;
}
while ( a1 != a2 );
}
}
else
{
LOBYTE(v4) = (a3 & v4) != 0;
v9 = a2 - 1;
if ( ((unsigned __int8)v4 & (v9 > a1)) == 1 )
{
v10 = a1 + 1;
do
{
v11 = *(v10 - 1);
*(v10 - 1) = *v9;
*v9-- = v11;
LOBYTE(v4) = (_BYTE)v10 + 1;
}
while ( v10++ < v9 );
}
}
return v4;
}
| my_strxfrm_desc_and_reverse:
PUSH RBP
MOV RBP,RSP
MOV R8D,EDX
SHR R8D,CL
MOV EAX,0x10000
SHL EAX,CL
BT R8D,0x8
JNC 0x001b75b8
TEST EAX,EDX
JZ 0x001b75eb
DEC RSI
CMP RSI,RDI
JC 0x001b75fa
INC RDI
LAB_001b7599:
MOV AL,byte ptr [RDI + -0x1]
MOV CL,byte ptr [RSI]
NOT CL
MOV byte ptr [RDI + -0x1],CL
NOT AL
MOV byte ptr [RSI],AL
DEC RSI
LEA RAX,[RDI + 0x1]
CMP RDI,RSI
MOV RDI,RAX
JBE 0x001b7599
JMP 0x001b75fa
LAB_001b75b8:
TEST EAX,EDX
SETNZ AL
DEC RSI
CMP RSI,RDI
SETA CL
AND CL,AL
CMP CL,0x1
JNZ 0x001b75fa
INC RDI
LAB_001b75d0:
MOV AL,byte ptr [RDI + -0x1]
MOV CL,byte ptr [RSI]
MOV byte ptr [RDI + -0x1],CL
MOV byte ptr [RSI],AL
DEC RSI
LEA RAX,[RDI + 0x1]
CMP RDI,RSI
MOV RDI,RAX
JC 0x001b75d0
JMP 0x001b75fa
LAB_001b75eb:
CMP RDI,RSI
JNC 0x001b75fa
LAB_001b75f0:
NOT byte ptr [RDI]
INC RDI
CMP RDI,RSI
JNZ 0x001b75f0
LAB_001b75fa:
POP RBP
RET
|
void my_strxfrm_desc_and_reverse(byte *param_1,byte *param_2,uint param_3,byte param_4)
{
byte bVar1;
uint uVar2;
byte *pbVar3;
bool bVar4;
uVar2 = 0x10000 << (param_4 & 0x1f);
if (((param_3 >> (param_4 & 0x1f)) >> 8 & 1) == 0) {
param_2 = param_2 + -1;
if (param_1 < param_2 && (uVar2 & param_3) != 0) {
pbVar3 = param_1 + 1;
do {
bVar1 = pbVar3[-1];
pbVar3[-1] = *param_2;
*param_2 = bVar1;
param_2 = param_2 + -1;
bVar4 = pbVar3 < param_2;
pbVar3 = pbVar3 + 1;
} while (bVar4);
}
}
else if ((uVar2 & param_3) == 0) {
if (param_1 < param_2) {
do {
*param_1 = ~*param_1;
param_1 = param_1 + 1;
} while (param_1 != param_2);
}
}
else {
param_2 = param_2 + -1;
if (param_1 <= param_2) {
pbVar3 = param_1 + 1;
do {
bVar1 = pbVar3[-1];
pbVar3[-1] = ~*param_2;
*param_2 = ~bVar1;
param_2 = param_2 + -1;
bVar4 = pbVar3 <= param_2;
pbVar3 = pbVar3 + 1;
} while (bVar4);
}
}
return;
}
| |
29,707 | ma_decrement_open_count | eloqsql/storage/maria/ma_locking.c | int _ma_decrement_open_count(MARIA_HA *info, my_bool lock_tables)
{
uchar buff[2];
register MARIA_SHARE *share= info->s;
int lock_error=0,write_error=0;
DBUG_ENTER("_ma_decrement_open_count");
if (share->global_changed)
{
uint old_lock=info->lock_type;
share->global_changed=0;
lock_error= (my_disable_locking || ! lock_tables ? 0 :
maria_lock_database(info, F_WRLCK));
/* Its not fatal even if we couldn't get the lock ! */
if (share->state.open_count > 0)
{
CRASH_IF_S3_TABLE(share);
share->state.open_count--;
share->changed= 1; /* We have to update state */
/*
For temporary tables that will just be deleted, we don't have
to decrement state. For transactional tables the state will be
updated in maria_close().
*/
if (!share->temporary && !share->now_transactional)
{
mi_int2store(buff,share->state.open_count);
write_error= (int) my_pwrite(share->kfile.file, buff, sizeof(buff),
sizeof(share->state.header) +
MARIA_FILE_OPEN_COUNT_OFFSET,
MYF(MY_NABP));
}
}
if (!lock_error && !my_disable_locking && lock_tables)
lock_error=maria_lock_database(info,old_lock);
}
DBUG_RETURN(MY_TEST(lock_error || write_error));
} | O0 | c | ma_decrement_open_count:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpb $0x0, 0x7df(%rax)
je 0x35bc4
movq -0x8(%rbp), %rax
movl 0x664(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
movb $0x0, 0x7df(%rax)
leaq 0xc4c7cd(%rip), %rax # 0xc822a8
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x35ae9
cmpb $0x0, -0x9(%rbp)
jne 0x35af0
xorl %eax, %eax
movl %eax, -0x2c(%rbp)
jmp 0x35b01
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x34ef0
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, 0x16c(%rax)
jbe 0x35b98
jmp 0x35b1a
jmp 0x35b1c
movq -0x18(%rbp), %rax
movl 0x16c(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x16c(%rax)
movq -0x18(%rbp), %rax
movb $0x1, 0x7de(%rax)
movq -0x18(%rbp), %rax
cmpb $0x0, 0x7d9(%rax)
jne 0x35b96
movq -0x18(%rbp), %rax
cmpb $0x0, 0x7e7(%rax)
jne 0x35b96
movq -0x18(%rbp), %rax
movl 0x16c(%rax), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
movb %al, -0xa(%rbp)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, -0xb(%rbp)
movq -0x18(%rbp), %rax
movl 0x760(%rax), %edi
leaq -0xb(%rbp), %rsi
movl $0x2, %edx
movl $0x18, %ecx
movl $0x4, %r8d
callq 0xf4240
movl %eax, -0x20(%rbp)
jmp 0x35b98
cmpl $0x0, -0x1c(%rbp)
jne 0x35bc2
leaq 0xc4c703(%rip), %rax # 0xc822a8
cmpb $0x0, (%rax)
jne 0x35bc2
movsbl -0x9(%rbp), %eax
cmpl $0x0, %eax
je 0x35bc2
movq -0x8(%rbp), %rdi
movl -0x24(%rbp), %esi
callq 0x34ef0
movl %eax, -0x1c(%rbp)
jmp 0x35bc4
jmp 0x35bc6
movb $0x1, %al
cmpl $0x0, -0x1c(%rbp)
movb %al, -0x2d(%rbp)
jne 0x35bdb
cmpl $0x0, -0x20(%rbp)
setne %al
movb %al, -0x2d(%rbp)
movb -0x2d(%rbp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ma_decrement_open_count:
push rbp
mov rbp, rsp
sub rsp, 40h
mov al, sil
mov [rbp+var_8], rdi
mov [rbp+var_9], al
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_18], rax
mov [rbp+var_1C], 0
mov [rbp+var_20], 0
mov rax, [rbp+var_18]
cmp byte ptr [rax+7DFh], 0
jz loc_35BC4
mov rax, [rbp+var_8]
mov eax, [rax+664h]
mov [rbp+var_24], eax
mov rax, [rbp+var_18]
mov byte ptr [rax+7DFh], 0
lea rax, my_disable_locking
movsx eax, byte ptr [rax]
cmp eax, 0
jnz short loc_35AE9
cmp [rbp+var_9], 0
jnz short loc_35AF0
loc_35AE9:
xor eax, eax
mov [rbp+var_2C], eax
jmp short loc_35B01
loc_35AF0:
mov rdi, [rbp+var_8]
mov esi, 1
call maria_lock_database
mov [rbp+var_2C], eax
loc_35B01:
mov eax, [rbp+var_2C]
mov [rbp+var_1C], eax
mov rax, [rbp+var_18]
cmp dword ptr [rax+16Ch], 0
jbe loc_35B98
jmp short $+2
loc_35B1A:
jmp short $+2
loc_35B1C:
mov rax, [rbp+var_18]
mov ecx, [rax+16Ch]
add ecx, 0FFFFFFFFh
mov [rax+16Ch], ecx
mov rax, [rbp+var_18]
mov byte ptr [rax+7DEh], 1
mov rax, [rbp+var_18]
cmp byte ptr [rax+7D9h], 0
jnz short loc_35B96
mov rax, [rbp+var_18]
cmp byte ptr [rax+7E7h], 0
jnz short loc_35B96
mov rax, [rbp+var_18]
mov eax, [rax+16Ch]
mov [rbp+var_28], eax
mov eax, [rbp+var_28]
mov [rbp+var_A], al
mov eax, [rbp+var_28]
shr eax, 8
mov [rbp+var_B], al
mov rax, [rbp+var_18]
mov edi, [rax+760h]
lea rsi, [rbp+var_B]
mov edx, 2
mov ecx, 18h
mov r8d, 4
call my_pwrite
mov [rbp+var_20], eax
loc_35B96:
jmp short $+2
loc_35B98:
cmp [rbp+var_1C], 0
jnz short loc_35BC2
lea rax, my_disable_locking
cmp byte ptr [rax], 0
jnz short loc_35BC2
movsx eax, [rbp+var_9]
cmp eax, 0
jz short loc_35BC2
mov rdi, [rbp+var_8]
mov esi, [rbp+var_24]
call maria_lock_database
mov [rbp+var_1C], eax
loc_35BC2:
jmp short $+2
loc_35BC4:
jmp short $+2
loc_35BC6:
mov al, 1
cmp [rbp+var_1C], 0
mov [rbp+var_2D], al
jnz short loc_35BDB
cmp [rbp+var_20], 0
setnz al
mov [rbp+var_2D], al
loc_35BDB:
mov dl, [rbp+var_2D]
xor eax, eax
mov ecx, 1
test dl, 1
cmovnz eax, ecx
mov [rbp+var_34], eax
mov eax, [rbp+var_34]
add rsp, 40h
pop rbp
retn
| _BOOL8 ma_decrement_open_count(long long a1, char a2)
{
__int16 v2; // kr00_2
bool v4; // [rsp+13h] [rbp-2Dh]
int v5; // [rsp+14h] [rbp-2Ch]
int v6; // [rsp+1Ch] [rbp-24h]
int v7; // [rsp+20h] [rbp-20h]
int v8; // [rsp+24h] [rbp-1Ch]
long long v9; // [rsp+28h] [rbp-18h]
_BYTE v10[2]; // [rsp+35h] [rbp-Bh] BYREF
char v11; // [rsp+37h] [rbp-9h]
long long v12; // [rsp+38h] [rbp-8h]
v12 = a1;
v11 = a2;
v9 = *(_QWORD *)a1;
v8 = 0;
v7 = 0;
if ( *(_BYTE *)(*(_QWORD *)a1 + 2015LL) )
{
v6 = *(_DWORD *)(v12 + 1636);
*(_BYTE *)(v9 + 2015) = 0;
if ( !my_disable_locking && v11 )
v5 = maria_lock_database(v12, 1);
else
v5 = 0;
v8 = v5;
if ( *(_DWORD *)(v9 + 364) )
{
--*(_DWORD *)(v9 + 364);
*(_BYTE *)(v9 + 2014) = 1;
if ( !*(_BYTE *)(v9 + 2009) && !*(_BYTE *)(v9 + 2023) )
{
v2 = *(_DWORD *)(v9 + 364);
v10[0] = HIBYTE(v2);
v10[1] = v2;
v7 = my_pwrite(*(unsigned int *)(v9 + 1888), v10, 2LL, 24LL);
}
}
if ( !v5 && !my_disable_locking && v11 )
v8 = maria_lock_database(v12, v6);
}
v4 = 1;
if ( !v8 )
return v7 != 0;
return v4;
}
| _ma_decrement_open_count:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV AL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV dword ptr [RBP + -0x1c],0x0
MOV dword ptr [RBP + -0x20],0x0
MOV RAX,qword ptr [RBP + -0x18]
CMP byte ptr [RAX + 0x7df],0x0
JZ 0x00135bc4
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x664]
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x7df],0x0
LEA RAX,[0xd822a8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JNZ 0x00135ae9
CMP byte ptr [RBP + -0x9],0x0
JNZ 0x00135af0
LAB_00135ae9:
XOR EAX,EAX
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x00135b01
LAB_00135af0:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
CALL 0x00134ef0
MOV dword ptr [RBP + -0x2c],EAX
LAB_00135b01:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x16c],0x0
JBE 0x00135b98
JMP 0x00135b1a
LAB_00135b1a:
JMP 0x00135b1c
LAB_00135b1c:
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RAX + 0x16c]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x16c],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x7de],0x1
MOV RAX,qword ptr [RBP + -0x18]
CMP byte ptr [RAX + 0x7d9],0x0
JNZ 0x00135b96
MOV RAX,qword ptr [RBP + -0x18]
CMP byte ptr [RAX + 0x7e7],0x0
JNZ 0x00135b96
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x16c]
MOV dword ptr [RBP + -0x28],EAX
MOV EAX,dword ptr [RBP + -0x28]
MOV byte ptr [RBP + -0xa],AL
MOV EAX,dword ptr [RBP + -0x28]
SHR EAX,0x8
MOV byte ptr [RBP + -0xb],AL
MOV RAX,qword ptr [RBP + -0x18]
MOV EDI,dword ptr [RAX + 0x760]
LEA RSI,[RBP + -0xb]
MOV EDX,0x2
MOV ECX,0x18
MOV R8D,0x4
CALL 0x001f4240
MOV dword ptr [RBP + -0x20],EAX
LAB_00135b96:
JMP 0x00135b98
LAB_00135b98:
CMP dword ptr [RBP + -0x1c],0x0
JNZ 0x00135bc2
LEA RAX,[0xd822a8]
CMP byte ptr [RAX],0x0
JNZ 0x00135bc2
MOVSX EAX,byte ptr [RBP + -0x9]
CMP EAX,0x0
JZ 0x00135bc2
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0x24]
CALL 0x00134ef0
MOV dword ptr [RBP + -0x1c],EAX
LAB_00135bc2:
JMP 0x00135bc4
LAB_00135bc4:
JMP 0x00135bc6
LAB_00135bc6:
MOV AL,0x1
CMP dword ptr [RBP + -0x1c],0x0
MOV byte ptr [RBP + -0x2d],AL
JNZ 0x00135bdb
CMP dword ptr [RBP + -0x20],0x0
SETNZ AL
MOV byte ptr [RBP + -0x2d],AL
LAB_00135bdb:
MOV DL,byte ptr [RBP + -0x2d]
XOR EAX,EAX
MOV ECX,0x1
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x34],EAX
MOV EAX,dword ptr [RBP + -0x34]
ADD RSP,0x40
POP RBP
RET
|
bool _ma_decrement_open_count(long *param_1,char param_2)
{
int4 uVar1;
long lVar2;
int local_34;
int local_28;
int local_24;
int1 local_13;
int1 local_12;
char local_11;
long *local_10;
lVar2 = *param_1;
local_24 = 0;
local_28 = 0;
if (*(char *)(lVar2 + 0x7df) != '\0') {
uVar1 = *(int4 *)((long)param_1 + 0x664);
*(int1 *)(lVar2 + 0x7df) = 0;
local_11 = param_2;
local_10 = param_1;
if ((my_disable_locking == '\0') && (param_2 != '\0')) {
local_34 = maria_lock_database(param_1,1);
}
else {
local_34 = 0;
}
local_24 = local_34;
if (*(int *)(lVar2 + 0x16c) != 0) {
*(int *)(lVar2 + 0x16c) = *(int *)(lVar2 + 0x16c) + -1;
*(int1 *)(lVar2 + 0x7de) = 1;
if ((*(char *)(lVar2 + 0x7d9) == '\0') && (*(char *)(lVar2 + 0x7e7) == '\0')) {
local_12 = (int1)*(int4 *)(lVar2 + 0x16c);
local_13 = (int1)((uint)*(int4 *)(lVar2 + 0x16c) >> 8);
local_28 = my_pwrite(*(int4 *)(lVar2 + 0x760),&local_13,2,0x18,4);
}
}
if (((local_34 == 0) && (my_disable_locking == '\0')) && (local_11 != '\0')) {
local_24 = maria_lock_database(local_10,uVar1);
}
}
return local_24 != 0 || local_28 != 0;
}
| |
29,708 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [10], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [10], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [10], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char const (&) [10], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&) | llama.cpp/common/json.hpp | inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
} | O3 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [10], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [10], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [10], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char const (&) [10], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x216c0
movq %rax, %rbp
addq 0x8(%r12), %rbp
movq %r15, %rdi
callq 0x216c0
addq %rax, %rbp
addq 0x8(%r14), %rbp
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x21ea0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x21bc0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
callq 0x21590
movq %rbx, %rdi
movq %r15, %rsi
callq 0x21bc0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x21590
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq (%rsp), %rdi
je 0x89d72
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x21180
movq %r14, %rdi
callq 0x21b70
| _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA10_KcS8_SB_S8_EEET_DpOT0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r8
mov r15, rcx
mov r12, rdx
mov r13, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rsp+38h+var_38], rax
mov [rdi], rax
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
call _strlen
mov rbp, rax
add rbp, [r12+8]
mov rdi, r15
call _strlen
add rbp, rax
add rbp, [r14+8]
mov rdi, rbx
mov rsi, rbp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r12]
mov rdx, [r12+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong)
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, [rsp+0]
jz short loc_89D72
mov rax, [rsp+0]
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_89D72:
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[10],std::string,char const(&)[10],std::string>(
long long a1,
long long a2,
_QWORD *a3,
long long a4,
_QWORD *a5)
{
long long v8; // rbp
long long v9; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v8 = a3[1] + strlen(a2);
v9 = strlen(a4);
std::string::reserve(a1, a5[1] + v9 + v8);
std::string::append(a1, a2);
std::string::append(a1, *a3, a3[1]);
std::string::append(a1, a4);
std::string::append(a1, *a5, a5[1]);
return a1;
}
| concat<std::__cxx11::string,char_const(&)[10],std::__cxx11::string,char_const(&)[10],std::__cxx11::string>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV R13,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RSP],RAX
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,RSI
CALL 0x001216c0
MOV RBP,RAX
ADD RBP,qword ptr [R12 + 0x8]
MOV RDI,R15
CALL 0x001216c0
ADD RBP,RAX
ADD RBP,qword ptr [R14 + 0x8]
LAB_00189d04:
MOV RDI,RBX
MOV RSI,RBP
CALL 0x00121ea0
MOV RDI,RBX
MOV RSI,R13
CALL 0x00121bc0
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV RDI,RBX
CALL 0x00121590
MOV RDI,RBX
MOV RSI,R15
CALL 0x00121bc0
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV RDI,RBX
CALL 0x00121590
LAB_00189d45:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [10], std::__cxx11::string, char const (&) [10], std::__cxx11::string >(char const (&) [10],
std::__cxx11::string&&, char const (&) [10], std::__cxx11::string&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[10],std::__cxx11::string,char_const(&)[10],std::__cxx11::string>
(detail *this,char *param_1,string *param_2,char *param_3,string *param_4)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
strlen(param_1);
strlen(param_3);
/* try { // try from 00189d04 to 00189d44 has its CatchHandler @ 00189d57 */
std::__cxx11::string::reserve((ulong)this);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::append((char *)this,*(ulong *)param_2);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::append((char *)this,*(ulong *)param_4);
return this;
}
| |
29,709 | change_key_cache_param | eloqsql/mysys/mf_keycache.c | void change_key_cache_param(KEY_CACHE *keycache, uint division_limit,
uint age_threshold)
{
if (keycache->key_cache_inited)
{
pthread_mutex_lock(&keycache->op_lock);
keycache->interface_funcs->change_param(keycache->keycache_cb,
division_limit,
age_threshold);
pthread_mutex_unlock(&keycache->op_lock);
}
} | O3 | c | change_key_cache_param:
cmpb $0x0, 0x48(%rdi)
je 0x9fcf7
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
leaq 0x58(%rdi), %r12
movq %r12, %rdi
callq 0x2a200
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rax
movl %r14d, %esi
movl %ebx, %edx
callq *0x10(%rax)
movq %r12, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2a1d0
retq
| change_key_cache_param:
cmp byte ptr [rdi+48h], 0
jz short locret_9FCF7
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov ebx, edx
mov r14d, esi
mov r15, rdi
lea r12, [rdi+58h]
mov rdi, r12
call _pthread_mutex_lock
mov rdi, [r15+8]
mov rax, [r15+10h]
mov esi, r14d
mov edx, ebx
call qword ptr [rax+10h]
mov rdi, r12
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp _pthread_mutex_unlock
locret_9FCF7:
retn
| long long change_key_cache_param(long long a1, unsigned int a2, unsigned int a3)
{
long long result; // rax
if ( *(_BYTE *)(a1 + 72) )
{
pthread_mutex_lock(a1 + 88);
(*(void ( **)(_QWORD, _QWORD, _QWORD))(*(_QWORD *)(a1 + 16) + 16LL))(*(_QWORD *)(a1 + 8), a2, a3);
return pthread_mutex_unlock(a1 + 88);
}
return result;
}
| change_key_cache_param:
CMP byte ptr [RDI + 0x48],0x0
JZ 0x0019fcf7
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV EBX,EDX
MOV R14D,ESI
MOV R15,RDI
LEA R12,[RDI + 0x58]
MOV RDI,R12
CALL 0x0012a200
MOV RDI,qword ptr [R15 + 0x8]
MOV RAX,qword ptr [R15 + 0x10]
MOV ESI,R14D
MOV EDX,EBX
CALL qword ptr [RAX + 0x10]
MOV RDI,R12
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x0012a1d0
LAB_0019fcf7:
RET
|
void change_key_cache_param(long param_1,int4 param_2,int4 param_3)
{
if (*(char *)(param_1 + 0x48) != '\0') {
pthread_mutex_lock((pthread_mutex_t *)(param_1 + 0x58));
(**(code **)(*(long *)(param_1 + 0x10) + 0x10))(*(int8 *)(param_1 + 8),param_2,param_3);
pthread_mutex_unlock((pthread_mutex_t *)(param_1 + 0x58));
return;
}
return;
}
| |
29,710 | inline_mysql_file_open | eloqsql/include/mysql/psi/mysql_file.h | static inline File
inline_mysql_file_open(
#ifdef HAVE_PSI_FILE_INTERFACE
PSI_file_key key, const char *src_file, uint src_line,
#endif
const char *filename, int flags, myf myFlags)
{
File file;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_OPEN, filename,
&locker);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line);
file= my_open(filename, flags, myFlags);
PSI_FILE_CALL(end_file_open_wait_and_bind_to_descriptor)(locker, file);
return file;
}
#endif
file= my_open(filename, flags, myFlags);
return file;
} | O0 | c | inline_mysql_file_open:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x266e90(%rip), %rax # 0x2bf0b8
movq (%rax), %rax
movq 0x148(%rax), %rax
movl -0x8(%rbp), %esi
movq -0x20(%rbp), %rcx
leaq -0x88(%rbp), %rdi
movl $0x2, %edx
leaq -0x40(%rbp), %r8
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x582c2
leaq 0x266e42(%rip), %rax # 0x2bf0b8
movq (%rax), %rax
movq 0x1f0(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq *%rax
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rdx
callq 0xf3c20
movl %eax, -0x34(%rbp)
leaq 0x266e11(%rip), %rax # 0x2bf0b8
movq (%rax), %rax
movq 0x200(%rax), %rax
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %esi
callq *%rax
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x582db
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rdx
callq 0xf3c20
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| inline_mysql_file_open_0:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+148h]
mov esi, [rbp+var_8]
mov rcx, [rbp+var_20]
lea rdi, [rbp+var_88]
mov edx, 2
lea r8, [rbp+var_40]
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_582C2
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1F0h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
call rax
mov rdi, [rbp+var_20]
mov esi, [rbp+var_24]
mov rdx, [rbp+var_30]
call my_open
mov [rbp+var_34], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+200h]
mov rdi, [rbp+var_40]
mov esi, [rbp+var_34]
call rax
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
jmp short loc_582DB
loc_582C2:
mov rdi, [rbp+var_20]
mov esi, [rbp+var_24]
mov rdx, [rbp+var_30]
call my_open
mov [rbp+var_34], eax
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
loc_582DB:
mov eax, [rbp+var_4]
add rsp, 90h
pop rbp
retn
| long long inline_mysql_file_open_0(
unsigned int a1,
long long a2,
unsigned int a3,
long long a4,
unsigned int a5,
long long a6)
{
_BYTE v7[72]; // [rsp+8h] [rbp-88h] BYREF
long long v8; // [rsp+50h] [rbp-40h] BYREF
unsigned int v9; // [rsp+5Ch] [rbp-34h]
long long v10; // [rsp+60h] [rbp-30h]
unsigned int v11; // [rsp+6Ch] [rbp-24h]
long long v12; // [rsp+70h] [rbp-20h]
unsigned int v13; // [rsp+7Ch] [rbp-14h]
long long v14; // [rsp+80h] [rbp-10h]
unsigned int v15; // [rsp+88h] [rbp-8h]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11 = a5;
v10 = a6;
v8 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(v7, a1, 2LL, a4, &v8);
if ( v8 )
{
((void ( *)(long long, long long, _QWORD))PSI_server[62])(v8, v14, v13);
v9 = my_open(v12, v11, v10);
((void ( *)(long long, _QWORD))PSI_server[64])(v8, v9);
}
else
{
return (unsigned int)my_open(v12, v11, v10);
}
return v9;
}
| inline_mysql_file_open:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3bf0b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x148]
MOV ESI,dword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x88]
MOV EDX,0x2
LEA R8,[RBP + -0x40]
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001582c2
LEA RAX,[0x3bf0b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1f0]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,dword ptr [RBP + -0x24]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x001f3c20
MOV dword ptr [RBP + -0x34],EAX
LEA RAX,[0x3bf0b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x200]
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,dword ptr [RBP + -0x34]
CALL RAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001582db
LAB_001582c2:
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,dword ptr [RBP + -0x24]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x001f3c20
MOV dword ptr [RBP + -0x34],EAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
LAB_001582db:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x90
POP RBP
RET
|
int4
inline_mysql_file_open
(int4 param_1,int8 param_2,int4 param_3,int8 param_4,
int4 param_5,int8 param_6)
{
int1 local_90 [72];
long local_48;
int4 local_3c;
int8 local_38;
int4 local_2c;
int8 local_28;
int4 local_1c;
int8 local_18;
int4 local_10;
int4 local_c;
local_38 = param_6;
local_2c = param_5;
local_28 = param_4;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
local_48 = (**(code **)(PSI_server + 0x148))(local_90,param_1,2,param_4,&local_48);
if (local_48 == 0) {
local_c = my_open(local_28,local_2c,local_38);
}
else {
(**(code **)(PSI_server + 0x1f0))(local_48,local_18,local_1c);
local_3c = my_open(local_28,local_2c,local_38);
(**(code **)(PSI_server + 0x200))(local_48,local_3c);
local_c = local_3c;
}
return local_c;
}
| |
29,711 | uf_space_prespace_selected | eloqsql/storage/maria/ma_packrec.c | static void uf_space_prespace_selected(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 (get_bit(bit_buff))
{
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);
}
else
decode_bytes(rec,bit_buff,to,end);
}
} | O3 | c | uf_space_prespace_selected:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r13
movl 0x4(%rsi), %eax
testl %eax, %eax
je 0x45bf4
movl (%r14), %r15d
decl %eax
movl %eax, 0x4(%r14)
btl %eax, %r15d
jb 0x45c69
testl %eax, %eax
jne 0x45c11
movq %r14, %rdi
callq 0x45308
movl $0x1f, 0x4(%r14)
movl (%r14), %r15d
testl %r15d, %r15d
jns 0x45c8a
movl $0x1f, %eax
jmp 0x45c1d
movq %r14, %rdi
callq 0x45308
movl $0x1f, 0x4(%r14)
movl (%r14), %r15d
movl $0x1f, %eax
testl %r15d, %r15d
js 0x45c69
decl %eax
movl %eax, 0x4(%r14)
btl %eax, %r15d
jae 0x45c8a
movq %r13, %rdx
movl 0x24(%r13), %r13d
movl %eax, %ecx
subl %r13d, %ecx
movq %rdx, -0x30(%rbp)
jae 0x45c95
subl %eax, %r13d
movl %eax, %eax
leaq 0x9b3e5(%rip), %rcx # 0xe1020
andl (%rcx,%rax,4), %r15d
movl %r13d, %ecx
shll %cl, %r15d
movq %r14, %rdi
callq 0x45308
movl $0x20, %eax
subl %r13d, %eax
movl %eax, 0x4(%r14)
movl (%r14), %eax
negl %r13d
movl %r13d, %ecx
shrl %cl, %eax
addl %eax, %r15d
jmp 0x45caa
subq %r12, %rbx
movq %r12, %rdi
movl $0x20, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x292b0
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
jmp 0x45cdc
movl %ecx, 0x4(%r14)
shrl %cl, %r15d
movl 0x24(%rdx), %eax
leaq 0x9b37a(%rip), %rcx # 0xe1020
andl (%rcx,%rax,4), %r15d
movl %r15d, %edx
leaq (%r12,%rdx), %r13
cmpq %rbx, %r13
jbe 0x45cc0
movl $0x1, 0x28(%r14)
jmp 0x45cf2
movq %r12, %rdi
movl $0x20, %esi
callq 0x292b0
cmpq %rbx, %r13
je 0x45cf2
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x454c5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| uf_space_prespace_selected:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r12, rdx
mov r14, rsi
mov r13, rdi
mov eax, [rsi+4]
test eax, eax
jz short loc_45BF4
mov r15d, [r14]
dec eax
mov [r14+4], eax
bt r15d, eax
jb loc_45C69
test eax, eax
jnz short loc_45C11
mov rdi, r14
call fill_buffer
mov dword ptr [r14+4], 1Fh
mov r15d, [r14]
test r15d, r15d
jns loc_45C8A
mov eax, 1Fh
jmp short loc_45C1D
loc_45BF4:
mov rdi, r14
call fill_buffer
mov dword ptr [r14+4], 1Fh
mov r15d, [r14]
mov eax, 1Fh
test r15d, r15d
js short loc_45C69
loc_45C11:
dec eax
mov [r14+4], eax
bt r15d, eax
jnb short loc_45C8A
loc_45C1D:
mov rdx, r13
mov r13d, [r13+24h]
mov ecx, eax
sub ecx, r13d
mov [rbp+var_30], rdx
jnb short loc_45C95
sub r13d, eax
mov eax, eax
lea rcx, mask
and r15d, [rcx+rax*4]
mov ecx, r13d
shl r15d, cl
mov rdi, r14
call fill_buffer
mov eax, 20h ; ' '
sub eax, r13d
mov [r14+4], eax
mov eax, [r14]
neg r13d
mov ecx, r13d
shr eax, cl
add r15d, eax
jmp short loc_45CAA
loc_45C69:
sub rbx, r12
mov rdi, r12
mov esi, 20h ; ' '
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _memset
loc_45C8A:
mov rdi, r13
mov rsi, r14
mov rdx, r12
jmp short loc_45CDC
loc_45C95:
mov [r14+4], ecx
shr r15d, cl
mov eax, [rdx+24h]
lea rcx, mask
and r15d, [rcx+rax*4]
loc_45CAA:
mov edx, r15d
lea r13, [r12+rdx]
cmp r13, rbx
jbe short loc_45CC0
mov dword ptr [r14+28h], 1
jmp short loc_45CF2
loc_45CC0:
mov rdi, r12
mov esi, 20h ; ' '
call _memset
cmp r13, rbx
jz short loc_45CF2
mov rdi, [rbp+var_30]
mov rsi, r14
mov rdx, r13
loc_45CDC:
mov rcx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp decode_bytes
loc_45CF2:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long uf_space_prespace_selected(long long a1, unsigned int *a2, _BYTE *a3, _BYTE *a4)
{
unsigned int v6; // eax
unsigned int v7; // r15d
unsigned int v8; // eax
unsigned int v9; // eax
unsigned int v10; // r13d
unsigned int v11; // ecx
int v12; // r13d
int v13; // r15d
long long result; // rax
unsigned int v15; // r15d
_BYTE *v16; // rdx
_BYTE *v17; // r13
v6 = a2[1];
if ( !v6 )
{
fill_buffer((long long)a2);
a2[1] = 31;
v7 = *a2;
v8 = 31;
if ( (*a2 & 0x80000000) == 0 )
goto LABEL_7;
return memset(a3, 32LL, a4 - a3);
}
v7 = *a2;
v8 = v6 - 1;
a2[1] = v8;
if ( _bittest((const int *)&v7, v8) )
return memset(a3, 32LL, a4 - a3);
if ( !v8 )
{
fill_buffer((long long)a2);
a2[1] = 31;
v7 = *a2;
if ( (*a2 & 0x80000000) != 0 )
{
v9 = 31;
goto LABEL_8;
}
LABEL_11:
v16 = a3;
return (long long)decode_bytes(a1, (long long)a2, v16, a4);
}
LABEL_7:
v9 = v8 - 1;
a2[1] = v9;
if ( !_bittest((const int *)&v7, v9) )
goto LABEL_11;
LABEL_8:
v10 = *(_DWORD *)(a1 + 36);
v11 = v9 - v10;
if ( v9 >= v10 )
{
a2[1] = v11;
result = *(unsigned int *)(a1 + 36);
v15 = mask[result] & (v7 >> v11);
}
else
{
v12 = v10 - v9;
v13 = (mask[v9] & v7) << v12;
fill_buffer((long long)a2);
a2[1] = 32 - v12;
result = *a2 >> -(char)v12;
v15 = result + v13;
}
v17 = &a3[v15];
if ( v17 > a4 )
{
a2[10] = 1;
return result;
}
result = memset(a3, 32LL, v15);
if ( v17 != a4 )
{
v16 = &a3[v15];
return (long long)decode_bytes(a1, (long long)a2, v16, a4);
}
return result;
}
| uf_space_prespace_selected:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R12,RDX
MOV R14,RSI
MOV R13,RDI
MOV EAX,dword ptr [RSI + 0x4]
TEST EAX,EAX
JZ 0x00145bf4
MOV R15D,dword ptr [R14]
DEC EAX
MOV dword ptr [R14 + 0x4],EAX
BT R15D,EAX
JC 0x00145c69
TEST EAX,EAX
JNZ 0x00145c11
MOV RDI,R14
CALL 0x00145308
MOV dword ptr [R14 + 0x4],0x1f
MOV R15D,dword ptr [R14]
TEST R15D,R15D
JNS 0x00145c8a
MOV EAX,0x1f
JMP 0x00145c1d
LAB_00145bf4:
MOV RDI,R14
CALL 0x00145308
MOV dword ptr [R14 + 0x4],0x1f
MOV R15D,dword ptr [R14]
MOV EAX,0x1f
TEST R15D,R15D
JS 0x00145c69
LAB_00145c11:
DEC EAX
MOV dword ptr [R14 + 0x4],EAX
BT R15D,EAX
JNC 0x00145c8a
LAB_00145c1d:
MOV RDX,R13
MOV R13D,dword ptr [R13 + 0x24]
MOV ECX,EAX
SUB ECX,R13D
MOV qword ptr [RBP + -0x30],RDX
JNC 0x00145c95
SUB R13D,EAX
MOV EAX,EAX
LEA RCX,[0x1e1020]
AND R15D,dword ptr [RCX + RAX*0x4]
MOV ECX,R13D
SHL R15D,CL
MOV RDI,R14
CALL 0x00145308
MOV EAX,0x20
SUB EAX,R13D
MOV dword ptr [R14 + 0x4],EAX
MOV EAX,dword ptr [R14]
NEG R13D
MOV ECX,R13D
SHR EAX,CL
ADD R15D,EAX
JMP 0x00145caa
LAB_00145c69:
SUB RBX,R12
MOV RDI,R12
MOV ESI,0x20
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001292b0
LAB_00145c8a:
MOV RDI,R13
MOV RSI,R14
MOV RDX,R12
JMP 0x00145cdc
LAB_00145c95:
MOV dword ptr [R14 + 0x4],ECX
SHR R15D,CL
MOV EAX,dword ptr [RDX + 0x24]
LEA RCX,[0x1e1020]
AND R15D,dword ptr [RCX + RAX*0x4]
LAB_00145caa:
MOV EDX,R15D
LEA R13,[R12 + RDX*0x1]
CMP R13,RBX
JBE 0x00145cc0
MOV dword ptr [R14 + 0x28],0x1
JMP 0x00145cf2
LAB_00145cc0:
MOV RDI,R12
MOV ESI,0x20
CALL 0x001292b0
CMP R13,RBX
JZ 0x00145cf2
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,R14
MOV RDX,R13
LAB_00145cdc:
MOV RCX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001454c5
LAB_00145cf2:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void uf_space_prespace_selected(long param_1,uint *param_2,void *param_3,void *param_4)
{
uint uVar1;
uint uVar2;
uint uVar3;
byte bVar4;
void *pvVar5;
uint uVar6;
pvVar5 = param_3;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar6 = *param_2;
uVar3 = 0x1f;
if ((int)uVar6 < 0) goto LAB_00145c69;
LAB_00145c11:
uVar3 = uVar3 - 1;
param_2[1] = uVar3;
if ((uVar6 >> (uVar3 & 0x1f) & 1) == 0) goto LAB_00145cdc;
}
else {
uVar6 = *param_2;
uVar3 = param_2[1] - 1;
param_2[1] = uVar3;
if ((uVar6 >> (uVar3 & 0x1f) & 1) != 0) {
LAB_00145c69:
memset(param_3,0x20,(long)param_4 - (long)param_3);
return;
}
if (uVar3 != 0) goto LAB_00145c11;
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar6 = *param_2;
if (-1 < (int)uVar6) goto LAB_00145cdc;
uVar3 = 0x1f;
}
uVar1 = *(uint *)(param_1 + 0x24);
if (uVar3 < uVar1) {
uVar2 = (&mask)[uVar3];
bVar4 = (byte)(uVar1 - uVar3);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar1 - uVar3);
uVar6 = ((uVar6 & uVar2) << (bVar4 & 0x1f)) + (*param_2 >> (-bVar4 & 0x1f));
}
else {
param_2[1] = uVar3 - uVar1;
uVar6 = uVar6 >> ((byte)(uVar3 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x24)];
}
pvVar5 = (void *)((long)param_3 + (ulong)uVar6);
if (param_4 < pvVar5) {
param_2[10] = 1;
}
else {
memset(param_3,0x20,(ulong)uVar6);
if (pvVar5 != param_4) {
LAB_00145cdc:
decode_bytes(param_1,param_2,pvVar5,param_4);
return;
}
}
return;
}
| |
29,712 | common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int>> const&, bool) | monkey531[P]llama/common/common.cpp | std::string common_detokenize(const struct llama_vocab * vocab, const std::vector<llama_token> & tokens, bool special) {
std::string text;
text.resize(std::max(text.capacity(), tokens.size()));
int32_t n_chars = llama_detokenize(vocab, tokens.data(), (int32_t)tokens.size(), &text[0], (int32_t)text.size(), false, special);
if (n_chars < 0) {
text.resize(-n_chars);
n_chars = llama_detokenize(vocab, tokens.data(), (int32_t)tokens.size(), &text[0], (int32_t)text.size(), false, special);
GGML_ASSERT(n_chars <= (int32_t)text.size()); // whitespace trimming is performed after per-token detokenization
}
text.resize(n_chars);
// NOTE: the original tokenizer decodes bytes after collecting the pieces.
return text;
} | O3 | cpp | common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int>> const&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x8(%rdx), %rax
subq (%rdx), %rax
sarq $0x2, %rax
cmpq $0x10, %rax
movl $0xf, %esi
cmovaeq %rax, %rsi
xorl %edx, %edx
callq 0x1a260
movq (%r15), %rsi
movq 0x8(%r15), %rdx
subq %rsi, %rdx
shrq $0x2, %rdx
movq (%rbx), %rcx
movl 0x8(%rbx), %r8d
movzbl %bpl, %ebp
movl %ebp, (%rsp)
movq %r14, %rdi
xorl %r9d, %r9d
callq 0x1a0d0
testl %eax, %eax
jns 0x76290
negl %eax
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x1a260
movq (%r15), %rsi
movq 0x8(%r15), %rdx
subq %rsi, %rdx
shrq $0x2, %rdx
movq (%rbx), %rcx
movl 0x8(%rbx), %r8d
movl %ebp, (%rsp)
movq %r14, %rdi
xorl %r9d, %r9d
callq 0x1a0d0
cmpl 0x8(%rbx), %eax
jg 0x762ad
movslq %eax, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1a260
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x78b0d(%rip), %rdi # 0xeedc1
leaq 0x6ff61(%rip), %rdx # 0xe621c
leaq 0x791a1(%rip), %rcx # 0xef463
movl $0x6e2, %esi # imm = 0x6E2
xorl %eax, %eax
callq 0x1aea0
jmp 0x762d0
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x762e7
movq (%r12), %rsi
incq %rsi
callq 0x1a8e0
movq %r14, %rdi
callq 0x1af90
| _Z17common_detokenizeB5cxx11PK11llama_vocabRKSt6vectorIiSaIiEEb:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov ebp, ecx
mov r15, rdx
mov r14, rsi
mov rbx, rdi
lea r12, [rdi+10h]
mov [rdi], r12
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rax, [rdx+8]
sub rax, [rdx]
sar rax, 2
cmp rax, 10h
mov esi, 0Fh
cmovnb rsi, rax
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov rsi, [r15]
mov rdx, [r15+8]
sub rdx, rsi
shr rdx, 2
mov rcx, [rbx]
mov r8d, [rbx+8]
movzx ebp, bpl
mov [rsp+38h+var_38], ebp
mov rdi, r14
xor r9d, r9d
call _llama_detokenize
test eax, eax
jns short loc_76290
neg eax
mov rdi, rbx
mov rsi, rax
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov rsi, [r15]
mov rdx, [r15+8]
sub rdx, rsi
shr rdx, 2
mov rcx, [rbx]
mov r8d, [rbx+8]
mov [rsp+38h+var_38], ebp
mov rdi, r14
xor r9d, r9d
call _llama_detokenize
cmp eax, [rbx+8]
jg short loc_762AD
loc_76290:
movsxd rsi, eax
mov rdi, rbx
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov rax, rbx
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_762AD:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNCharsInt32TTe; "n_chars <= (int32_t)text.size()"
mov esi, 6E2h
xor eax, eax
call _ggml_abort
jmp short $+2
loc_762D0:
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r12
jz short loc_762E7
mov rsi, [r12]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_762E7:
mov rdi, r14
call __Unwind_Resume
| _QWORD * common_detokenize[abi:cxx11](_QWORD *a1, long long a2, _QWORD *a3, long long a4)
{
unsigned __int8 v4; // bp
_QWORD *v7; // r12
long long v8; // rsi
int v9; // eax
long long v10; // rcx
long long v12; // r14
v4 = a4;
v7 = a1 + 2;
*a1 = a1 + 2;
a1[1] = 0LL;
*((_BYTE *)a1 + 16) = 0;
v8 = 15LL;
if ( (unsigned long long)((long long)(a3[1] - *a3) >> 2) >= 0x10 )
v8 = (long long)(a3[1] - *a3) >> 2;
std::string::resize(a1, v8, 0LL, a4);
v9 = llama_detokenize(a2, *a3, (a3[1] - *a3) >> 2, *a1, *((unsigned int *)a1 + 2), 0LL, v4);
if ( v9 < 0 )
{
std::string::resize(a1, (unsigned int)-v9, 0LL, v10);
v9 = llama_detokenize(a2, *a3, (a3[1] - *a3) >> 2, *a1, *((unsigned int *)a1 + 2), 0LL, v4);
if ( v9 > *((_DWORD *)a1 + 2) )
{
v12 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",
1762LL,
"GGML_ASSERT(%s) failed",
"n_chars <= (int32_t)text.size()");
if ( (_QWORD *)*a1 != v7 )
operator delete((void *)*a1, *v7 + 1LL);
_Unwind_Resume(v12);
}
}
std::string::resize(a1, v9, 0LL, v10);
return a1;
}
| common_detokenize[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV EBP,ECX
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
LEA R12,[RDI + 0x10]
MOV qword ptr [RDI],R12
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RAX,qword ptr [RDX + 0x8]
SUB RAX,qword ptr [RDX]
SAR RAX,0x2
CMP RAX,0x10
MOV ESI,0xf
CMOVNC RSI,RAX
LAB_00176227:
XOR EDX,EDX
CALL 0x0011a260
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
SUB RDX,RSI
SHR RDX,0x2
MOV RCX,qword ptr [RBX]
MOV R8D,dword ptr [RBX + 0x8]
LAB_00176243:
MOVZX EBP,BPL
MOV dword ptr [RSP],EBP
MOV RDI,R14
XOR R9D,R9D
CALL 0x0011a0d0
TEST EAX,EAX
JNS 0x00176290
NEG EAX
MOV RDI,RBX
MOV RSI,RAX
XOR EDX,EDX
CALL 0x0011a260
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
SUB RDX,RSI
SHR RDX,0x2
MOV RCX,qword ptr [RBX]
MOV R8D,dword ptr [RBX + 0x8]
MOV dword ptr [RSP],EBP
MOV RDI,R14
XOR R9D,R9D
CALL 0x0011a0d0
CMP EAX,dword ptr [RBX + 0x8]
JG 0x001762ad
LAB_00176290:
MOVSXD RSI,EAX
MOV RDI,RBX
XOR EDX,EDX
CALL 0x0011a260
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001762ad:
LEA RDI,[0x1eedc1]
LEA RDX,[0x1e621c]
LEA RCX,[0x1ef463]
MOV ESI,0x6e2
XOR EAX,EAX
CALL 0x0011aea0
|
/* common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int> > const&,
bool) */
llama_vocab * common_detokenize_abi_cxx11_(llama_vocab *param_1,vector *param_2,bool param_3)
{
int iVar1;
ulong uVar2;
int1 in_CL;
int7 in_register_00000011;
long *plVar3;
ulong uVar4;
plVar3 = (long *)CONCAT71(in_register_00000011,param_3);
*(llama_vocab **)param_1 = param_1 + 0x10;
*(int8 *)(param_1 + 8) = 0;
param_1[0x10] = (llama_vocab)0x0;
uVar2 = plVar3[1] - *plVar3 >> 2;
uVar4 = 0xf;
if (0xf < uVar2) {
uVar4 = uVar2;
}
/* try { // try from 00176227 to 0017622d has its CatchHandler @ 001762ce */
std::__cxx11::string::resize((ulong)param_1,(char)uVar4);
/* try { // try from 00176243 to 001762cd has its CatchHandler @ 001762d0 */
iVar1 = llama_detokenize(param_2,*plVar3,(ulong)(plVar3[1] - *plVar3) >> 2,*(int8 *)param_1,
*(int4 *)(param_1 + 8),0,in_CL);
if (iVar1 < 0) {
std::__cxx11::string::resize((ulong)param_1,-(char)iVar1);
iVar1 = llama_detokenize(param_2,*plVar3,(ulong)(plVar3[1] - *plVar3) >> 2,
*(int8 *)param_1,*(int4 *)(param_1 + 8),0,in_CL);
if (*(int *)(param_1 + 8) < iVar1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",0x6e2
,"GGML_ASSERT(%s) failed","n_chars <= (int32_t)text.size()");
}
}
std::__cxx11::string::resize((ulong)param_1,(char)iVar1);
return param_1;
}
| |
29,713 | my_hrtime | eloqsql/mysys/my_getsystime.c | my_hrtime_t my_hrtime()
{
my_hrtime_t hrtime;
#if defined(_WIN32)
ulonglong newtime;
GetSystemTimePreciseAsFileTime((FILETIME*)&newtime);
hrtime.val= (newtime - OFFSET_TO_EPOC)/10;
#elif defined(HAVE_CLOCK_GETTIME)
struct timespec tp;
clock_gettime(CLOCK_REALTIME, &tp);
hrtime.val= tp.tv_sec*1000000ULL+tp.tv_nsec/1000ULL;
#else
struct timeval t;
/* The following loop is here because gettimeofday may fail */
while (gettimeofday(&t, NULL) != 0) {}
hrtime.val= t.tv_sec*1000000ULL + t.tv_usec;
#endif
DBUG_EXECUTE_IF("system_time_plus_one_hour", hrtime.val += 3600*1000000ULL;);
DBUG_EXECUTE_IF("system_time_minus_one_hour", hrtime.val -= 3600*1000000ULL;);
return hrtime;
} | O3 | c | my_hrtime:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
leaq -0x18(%rbp), %rbx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x292d0
imulq $0xf4240, (%rbx), %rcx # imm = 0xF4240
movq 0x8(%rbx), %rax
shrq $0x3, %rax
movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF
mulq %rdx
shrq $0x4, %rdx
addq %rdx, %rcx
movq %rcx, %rax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
| my_hrtime:
push rbp
mov rbp, rsp
push rbx
sub rsp, 18h
lea rbx, [rbp+var_18]
xor edi, edi
mov rsi, rbx
call _clock_gettime
imul rcx, [rbx], 0F4240h
mov rax, [rbx+8]
shr rax, 3
mov rdx, 20C49BA5E353F7CFh
mul rdx
shr rdx, 4
add rcx, rdx
mov rax, rcx
add rsp, 18h
pop rbx
pop rbp
retn
| unsigned long long my_hrtime()
{
long long v1; // [rsp+8h] [rbp-18h] BYREF
unsigned long long v2; // [rsp+10h] [rbp-10h]
clock_gettime(0LL, &v1);
return v2 / 0x3E8 + 1000000 * v1;
}
| my_hrtime:
PUSH RBP
MOV RBP,RSP
PUSH RBX
SUB RSP,0x18
LEA RBX,[RBP + -0x18]
XOR EDI,EDI
MOV RSI,RBX
CALL 0x001292d0
IMUL RCX,qword ptr [RBX],0xf4240
MOV RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
MOV RDX,0x20c49ba5e353f7cf
MUL RDX
SHR RDX,0x4
ADD RCX,RDX
MOV RAX,RCX
ADD RSP,0x18
POP RBX
POP RBP
RET
|
long my_hrtime(void)
{
timespec local_20;
clock_gettime(0,&local_20);
return local_20.tv_sec * 1000000 + (ulong)local_20.tv_nsec / 1000;
}
| |
29,714 | js_aggregate_error_constructor | bluesky950520[P]quickjs/quickjs.c | static JSValue js_aggregate_error_constructor(JSContext *ctx,
JSValue errors)
{
JSValue obj;
obj = JS_NewObjectProtoClass(ctx,
ctx->native_error_proto[JS_AGGREGATE_ERROR],
JS_CLASS_ERROR);
if (JS_IsException(obj))
return obj;
JS_DefinePropertyValue(ctx, obj, JS_ATOM_errors, js_dup(errors),
JS_PROP_WRITABLE | JS_PROP_CONFIGURABLE);
return obj;
} | O0 | c | js_aggregate_error_constructor:
subq $0x58, %rsp
movq %rsi, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x108(%rax), %rsi
movq 0x110(%rax), %rdx
movl $0x3, %ecx
callq 0x28be0
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0x94849
jmp 0x94896
movq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x20410
movq 0x8(%rsp), %rdi
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x10(%rsp), %r8
movq 0x18(%rsp), %r9
movl $0x35, %ecx
movl $0x3, (%rsp)
callq 0x35ef0
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rdx
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
| js_aggregate_error_constructor:
sub rsp, 58h
mov [rsp+58h+var_20], rsi
mov [rsp+58h+var_18], rdx
mov [rsp+58h+var_28], rdi
mov rdi, [rsp+58h+var_28]
mov rax, [rsp+58h+var_28]
mov rsi, [rax+108h]
mov rdx, [rax+110h]
mov ecx, 3
call JS_NewObjectProtoClass
mov [rsp+58h+var_38], rax
mov [rsp+58h+var_30], rdx
mov rax, [rsp+58h+var_38]
mov [rsp+58h+var_10], rax
mov rax, [rsp+58h+var_30]
mov [rsp+58h+var_8], rax
mov rdi, [rsp+58h+var_10]
mov rsi, [rsp+58h+var_8]
call JS_IsException_1
cmp eax, 0
jz short loc_94849
jmp short loc_94896
loc_94849:
mov rax, [rsp+58h+var_28]
mov [rsp+58h+var_50], rax
mov rdi, [rsp+58h+var_20]
mov rsi, [rsp+58h+var_18]
call js_dup
mov rdi, [rsp+58h+var_50]
mov [rsp+58h+var_48], rax
mov [rsp+58h+var_40], rdx
mov rsi, [rsp+58h+var_10]
mov rdx, [rsp+58h+var_8]
mov r8, [rsp+58h+var_48]
mov r9, [rsp+58h+var_40]
mov ecx, 35h ; '5'
mov [rsp+58h+var_58], 3
call JS_DefinePropertyValue
loc_94896:
mov rax, [rsp+58h+var_10]
mov rdx, [rsp+58h+var_8]
add rsp, 58h
retn
| long long js_aggregate_error_constructor(
long long a1,
_DWORD *a2,
unsigned int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long v11; // rdx
long long v12; // rdx
__m128 v13; // xmm4
__m128 v14; // xmm5
_DWORD *v16; // [rsp+10h] [rbp-48h]
long long v17; // [rsp+20h] [rbp-38h]
long long v19; // [rsp+50h] [rbp-8h]
v17 = JS_NewObjectProtoClass(a1, *(_QWORD *)(a1 + 264), *(_QWORD *)(a1 + 272), 3u);
v19 = v11;
if ( !JS_IsException_1(v17, v11) )
{
v16 = js_dup(a2, a3);
JS_DefinePropertyValue(a1, v17, v19, 0x35u, v16, v12, a4, a5, a6, a7, v13, v14, a10, a11, 3);
}
return v17;
}
| js_aggregate_error_constructor:
SUB RSP,0x58
MOV qword ptr [RSP + 0x38],RSI
MOV qword ptr [RSP + 0x40],RDX
MOV qword ptr [RSP + 0x30],RDI
MOV RDI,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RAX + 0x108]
MOV RDX,qword ptr [RAX + 0x110]
MOV ECX,0x3
CALL 0x00128be0
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x50],RAX
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x50]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x00194849
JMP 0x00194896
LAB_00194849:
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x40]
CALL 0x00120410
MOV RDI,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
MOV R8,qword ptr [RSP + 0x10]
MOV R9,qword ptr [RSP + 0x18]
MOV ECX,0x35
MOV dword ptr [RSP],0x3
CALL 0x00135ef0
LAB_00194896:
MOV RAX,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
ADD RSP,0x58
RET
|
int1 [16] js_aggregate_error_constructor(long param_1,int8 param_2,int8 param_3)
{
int iVar1;
int1 auVar2 [16];
int1 auVar3 [16];
auVar2 = JS_NewObjectProtoClass
(param_1,*(int8 *)(param_1 + 0x108),*(int8 *)(param_1 + 0x110),3);
iVar1 = JS_IsException(auVar2._0_8_,auVar2._8_8_);
if (iVar1 == 0) {
auVar3 = js_dup(param_2,param_3);
JS_DefinePropertyValue(param_1,auVar2._0_8_,auVar2._8_8_,0x35,auVar3._0_8_,auVar3._8_8_,3);
}
return auVar2;
}
| |
29,715 | js_aggregate_error_constructor | bluesky950520[P]quickjs/quickjs.c | static JSValue js_aggregate_error_constructor(JSContext *ctx,
JSValue errors)
{
JSValue obj;
obj = JS_NewObjectProtoClass(ctx,
ctx->native_error_proto[JS_AGGREGATE_ERROR],
JS_CLASS_ERROR);
if (JS_IsException(obj))
return obj;
JS_DefinePropertyValue(ctx, obj, JS_ATOM_errors, js_dup(errors),
JS_PROP_WRITABLE | JS_PROP_CONFIGURABLE);
return obj;
} | O3 | c | js_aggregate_error_constructor:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x108(%rdi), %rsi
movq 0x110(%rdi), %rdx
movl $0x3, %ecx
callq 0x20a15
movq %rax, %r12
movq %rdx, %r13
cmpl $0x6, %r13d
je 0x57169
cmpl $-0x9, %ebx
jb 0x57149
incl (%r14)
movl $0x3, (%rsp)
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movl $0x35, %ecx
movq %r14, %r8
movq %rbx, %r9
callq 0x26541
movq %r12, %rax
movq %r13, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| js_aggregate_error_constructor:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov rsi, [rdi+108h]
mov rdx, [rdi+110h]
mov ecx, 3
call JS_NewObjectProtoClass
mov r12, rax
mov r13, rdx
cmp r13d, 6
jz short loc_57169
cmp ebx, 0FFFFFFF7h
jb short loc_57149
inc dword ptr [r14]
loc_57149:
mov [rsp+38h+var_38], 3
mov rdi, r15
mov rsi, r12
mov rdx, r13
mov ecx, 35h ; '5'
mov r8, r14
mov r9, rbx
call JS_DefinePropertyValue
loc_57169:
mov rax, r12
mov rdx, r13
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| long long js_aggregate_error_constructor(
long long a1,
int *a2,
long long a3,
double a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long v12; // rax
long long v13; // rdx
__m128 v14; // xmm4
__m128 v15; // xmm5
long long v16; // r12
v12 = JS_NewObjectProtoClass(a1, *(_QWORD *)(a1 + 264), *(_QWORD *)(a1 + 272), 3u);
v16 = v12;
if ( (_DWORD)v13 != 6 )
{
if ( (unsigned int)a3 >= 0xFFFFFFF7 )
++*a2;
JS_DefinePropertyValue(a1, v12, v13, 53LL, a2, a3, a4, a5, a6, a7, v14, v15, a10, a11, 3);
}
return v16;
}
| js_aggregate_error_constructor:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV RSI,qword ptr [RDI + 0x108]
MOV RDX,qword ptr [RDI + 0x110]
MOV ECX,0x3
CALL 0x00120a15
MOV R12,RAX
MOV R13,RDX
CMP R13D,0x6
JZ 0x00157169
CMP EBX,-0x9
JC 0x00157149
INC dword ptr [R14]
LAB_00157149:
MOV dword ptr [RSP],0x3
MOV RDI,R15
MOV RSI,R12
MOV RDX,R13
MOV ECX,0x35
MOV R8,R14
MOV R9,RBX
CALL 0x00126541
LAB_00157169:
MOV RAX,R12
MOV RDX,R13
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
int1 [16] js_aggregate_error_constructor(long param_1,int *param_2,int8 param_3)
{
int1 auVar1 [16];
auVar1 = JS_NewObjectProtoClass
(param_1,*(int8 *)(param_1 + 0x108),*(int8 *)(param_1 + 0x110),3);
if (auVar1._8_4_ != 6) {
if (0xfffffff6 < (uint)param_3) {
*param_2 = *param_2 + 1;
}
JS_DefinePropertyValue(param_1,auVar1._0_8_,auVar1._8_8_,0x35,param_2,param_3,3);
}
return auVar1;
}
| |
29,716 | display_result_metadata | eloqsql/tests/mysql_client_test.c | void display_result_metadata(MYSQL_FIELD *field,
uint num_fields)
{
MYSQL_FIELD* field_end;
mct_log("Catalog\tDatabase\tTable\tTable_alias\tColumn\t"
"Column_alias\tType\tLength\tMax length\tIs_null\t"
"Flags\tDecimals\tCharsetnr\n");
for (field_end= field+num_fields; field < field_end; field++)
{
mct_log("%s\t", field->catalog);
mct_log("%s\t", field->db);
mct_log("%s\t", field->org_table);
mct_log("%s\t", field->table);
mct_log("%s\t", field->org_name);
mct_log("%s\t", field->name);
mct_log("%u\t", field->type);
mct_log("%lu\t", field->length);
mct_log("%lu\t", field->max_length);
mct_log("%s\t", (IS_NOT_NULL(field->flags) ? "N" : "Y"));
mct_log("%u\t", field->flags);
mct_log("%u\t", field->decimals);
mct_log("%u\n", field->charsetnr);
}
} | O0 | c | display_result_metadata:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
leaq 0xefcf9(%rip), %rdi # 0x12dc4f
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
shlq $0x7, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x3e0c0
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rsi
leaq 0xefd33(%rip), %rdi # 0x12dcbf
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rsi
leaq 0xefd1d(%rip), %rdi # 0x12dcbf
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rsi
leaq 0xefd07(%rip), %rdi # 0x12dcbf
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
leaq 0xefcf1(%rip), %rdi # 0x12dcbf
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
leaq 0xefcdb(%rip), %rdi # 0x12dcbf
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movq (%rax), %rsi
leaq 0xefcc6(%rip), %rdi # 0x12dcbf
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movl 0x70(%rax), %esi
leaq 0xefcb5(%rip), %rdi # 0x12dcc3
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rsi
leaq 0xefca3(%rip), %rdi # 0x12dcc7
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rsi
leaq 0xefc8d(%rip), %rdi # 0x12dcc7
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movl 0x64(%rax), %ecx
andl $0x1, %ecx
leaq 0xf88e6(%rip), %rsi # 0x136938
leaq 0x10bb4d(%rip), %rax # 0x149ba6
cmpl $0x0, %ecx
cmovneq %rax, %rsi
leaq 0xefc58(%rip), %rdi # 0x12dcbf
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movl 0x64(%rax), %esi
leaq 0xefc47(%rip), %rdi # 0x12dcc3
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movl 0x68(%rax), %esi
leaq 0xefc32(%rip), %rdi # 0x12dcc3
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
movl 0x6c(%rax), %esi
leaq 0x106cc8(%rip), %rdi # 0x144d6e
movb $0x0, %al
callq 0x3dd80
movq -0x8(%rbp), %rax
addq $0x80, %rax
movq %rax, -0x8(%rbp)
jmp 0x3df6f
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| display_result_metadata:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
lea rdi, aCatalogDatabas; "Catalog\tDatabase\tTable\tTable_alias\t"...
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
shl rcx, 7
add rax, rcx
mov [rbp+var_18], rax
loc_3DF6F:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_18]
jnb loc_3E0C0
mov rax, [rbp+var_8]
mov rsi, [rax+28h]
lea rdi, aS_2; "%s\t"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov rsi, [rax+20h]
lea rdi, aS_2; "%s\t"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov rsi, [rax+18h]
lea rdi, aS_2; "%s\t"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov rsi, [rax+10h]
lea rdi, aS_2; "%s\t"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov rsi, [rax+8]
lea rdi, aS_2; "%s\t"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov rsi, [rax]
lea rdi, aS_2; "%s\t"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov esi, [rax+70h]
lea rdi, aU; "%u\t"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov rsi, [rax+38h]
lea rdi, aLu; "%lu\t"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov rsi, [rax+40h]
lea rdi, aLu; "%lu\t"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov ecx, [rax+64h]
and ecx, 1
lea rsi, aColumnKey+9; "Y"
lea rax, aEucCn+5; "N"
cmp ecx, 0
cmovnz rsi, rax
lea rdi, aS_2; "%s\t"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov esi, [rax+64h]
lea rdi, aU; "%u\t"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov esi, [rax+68h]
lea rdi, aU; "%u\t"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
mov esi, [rax+6Ch]
lea rdi, aGotProgressCou+2Eh; "%u\n"
mov al, 0
call mct_log
mov rax, [rbp+var_8]
add rax, 80h
mov [rbp+var_8], rax
jmp loc_3DF6F
loc_3E0C0:
add rsp, 20h
pop rbp
retn
| unsigned long long display_result_metadata(
unsigned 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; // r8
long long v16; // r9
__m128 v17; // xmm4
__m128 v18; // xmm5
long long v19; // rcx
unsigned long long result; // rax
long long v21; // rdx
long long v22; // rcx
long long v23; // r8
long long v24; // r9
__m128 v25; // xmm4
__m128 v26; // xmm5
long long v27; // rdx
long long v28; // rcx
long long v29; // r8
long long v30; // r9
__m128 v31; // xmm4
__m128 v32; // xmm5
long long v33; // rdx
long long v34; // rcx
long long v35; // r8
long long v36; // r9
__m128 v37; // xmm4
__m128 v38; // xmm5
long long v39; // rdx
long long v40; // rcx
long long v41; // r8
long long v42; // r9
__m128 v43; // xmm4
__m128 v44; // xmm5
long long v45; // rdx
long long v46; // rcx
long long v47; // r8
long long v48; // r9
__m128 v49; // xmm4
__m128 v50; // xmm5
long long v51; // rdx
long long v52; // rcx
long long v53; // r8
long long v54; // r9
__m128 v55; // xmm4
__m128 v56; // xmm5
long long v57; // rdx
long long v58; // rcx
long long v59; // r8
long long v60; // r9
__m128 v61; // xmm4
__m128 v62; // xmm5
long long v63; // rdx
long long v64; // rcx
long long v65; // r8
long long v66; // r9
__m128 v67; // xmm4
__m128 v68; // xmm5
long long v69; // rdx
long long v70; // r8
long long v71; // r9
__m128 v72; // xmm4
__m128 v73; // xmm5
long long v74; // rcx
char *v75; // rsi
long long v76; // rdx
long long v77; // rcx
long long v78; // r8
long long v79; // r9
__m128 v80; // xmm4
__m128 v81; // xmm5
long long v82; // rdx
long long v83; // rcx
long long v84; // r8
long long v85; // r9
__m128 v86; // xmm4
__m128 v87; // xmm5
long long v88; // rdx
long long v89; // rcx
long long v90; // r8
long long v91; // r9
__m128 v92; // xmm4
__m128 v93; // xmm5
char v94; // [rsp+0h] [rbp-20h]
char v95; // [rsp+0h] [rbp-20h]
char v96; // [rsp+0h] [rbp-20h]
char v97; // [rsp+0h] [rbp-20h]
char v98; // [rsp+0h] [rbp-20h]
char v99; // [rsp+0h] [rbp-20h]
char v100; // [rsp+0h] [rbp-20h]
char v101; // [rsp+0h] [rbp-20h]
char v102; // [rsp+0h] [rbp-20h]
char v103; // [rsp+0h] [rbp-20h]
char v104; // [rsp+0h] [rbp-20h]
char v105; // [rsp+0h] [rbp-20h]
char v106; // [rsp+0h] [rbp-20h]
char v107; // [rsp+0h] [rbp-20h]
unsigned long long v108; // [rsp+8h] [rbp-18h]
unsigned long long v109; // [rsp+18h] [rbp-8h]
v109 = a1;
mct_log(
(long long)"Catalog\tDatabase\tTable\tTable_alias\tColumn\tColumn_alias\tType\tLength\tMax length\tIs_null\tFlags\tDeci"
"mals\tCharsetnr\n",
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v94);
v19 = (unsigned long long)(unsigned int)a2 << 7;
v108 = v19 + a1;
while ( 1 )
{
result = v109;
if ( v109 >= v108 )
break;
mct_log((long long)"%s\t", *(_QWORD *)(v109 + 40), v14, v19, v15, v16, a7, a8, a9, a10, v17, v18, a13, a14, v95);
mct_log((long long)"%s\t", *(_QWORD *)(v109 + 32), v21, v22, v23, v24, a7, a8, a9, a10, v25, v26, a13, a14, v96);
mct_log((long long)"%s\t", *(_QWORD *)(v109 + 24), v27, v28, v29, v30, a7, a8, a9, a10, v31, v32, a13, a14, v97);
mct_log((long long)"%s\t", *(_QWORD *)(v109 + 16), v33, v34, v35, v36, a7, a8, a9, a10, v37, v38, a13, a14, v98);
mct_log((long long)"%s\t", *(_QWORD *)(v109 + 8), v39, v40, v41, v42, a7, a8, a9, a10, v43, v44, a13, a14, v99);
mct_log((long long)"%s\t", *(_QWORD *)v109, v45, v46, v47, v48, a7, a8, a9, a10, v49, v50, a13, a14, v100);
mct_log(
(long long)"%u\t",
*(unsigned int *)(v109 + 112),
v51,
v52,
v53,
v54,
a7,
a8,
a9,
a10,
v55,
v56,
a13,
a14,
v101);
mct_log((long long)"%lu\t", *(_QWORD *)(v109 + 56), v57, v58, v59, v60, a7, a8, a9, a10, v61, v62, a13, a14, v102);
mct_log((long long)"%lu\t", *(_QWORD *)(v109 + 64), v63, v64, v65, v66, a7, a8, a9, a10, v67, v68, a13, a14, v103);
v74 = *(_DWORD *)(v109 + 100) & 1;
v75 = "Y";
if ( (_DWORD)v74 )
v75 = "N";
mct_log((long long)"%s\t", (long long)v75, v69, v74, v70, v71, a7, a8, a9, a10, v72, v73, a13, a14, v104);
mct_log(
(long long)"%u\t",
*(unsigned int *)(v109 + 100),
v76,
v77,
v78,
v79,
a7,
a8,
a9,
a10,
v80,
v81,
a13,
a14,
v105);
mct_log(
(long long)"%u\t",
*(unsigned int *)(v109 + 104),
v82,
v83,
v84,
v85,
a7,
a8,
a9,
a10,
v86,
v87,
a13,
a14,
v106);
mct_log(
(long long)"%u\n",
*(unsigned int *)(v109 + 108),
v88,
v89,
v90,
v91,
a7,
a8,
a9,
a10,
v92,
v93,
a13,
a14,
v107);
v109 += 128LL;
}
return result;
}
| display_result_metadata:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
LEA RDI,[0x22dc4f]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
SHL RCX,0x7
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
LAB_0013df6f:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x0013e0c0
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x28]
LEA RDI,[0x22dcbf]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x20]
LEA RDI,[0x22dcbf]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x18]
LEA RDI,[0x22dcbf]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x10]
LEA RDI,[0x22dcbf]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x8]
LEA RDI,[0x22dcbf]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX]
LEA RDI,[0x22dcbf]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x70]
LEA RDI,[0x22dcc3]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x38]
LEA RDI,[0x22dcc7]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x40]
LEA RDI,[0x22dcc7]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x64]
AND ECX,0x1
LEA RSI,[0x236938]
LEA RAX,[0x249ba6]
CMP ECX,0x0
CMOVNZ RSI,RAX
LEA RDI,[0x22dcbf]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x64]
LEA RDI,[0x22dcc3]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x68]
LEA RDI,[0x22dcc3]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x6c]
LEA RDI,[0x244d6e]
MOV AL,0x0
CALL 0x0013dd80
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x80
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0013df6f
LAB_0013e0c0:
ADD RSP,0x20
POP RBP
RET
|
void display_result_metadata(int8 *param_1,uint param_2)
{
char *pcVar1;
int8 *local_10;
mct_log(
"Catalog\tDatabase\tTable\tTable_alias\tColumn\tColumn_alias\tType\tLength\tMax length\tIs_null\tFlags\tDecimals\tCharsetnr\n"
);
for (local_10 = param_1; local_10 < param_1 + (ulong)param_2 * 0x10; local_10 = local_10 + 0x10) {
mct_log(&DAT_0022dcbf,local_10[5]);
mct_log(&DAT_0022dcbf,local_10[4]);
mct_log(&DAT_0022dcbf,local_10[3]);
mct_log(&DAT_0022dcbf,local_10[2]);
mct_log(&DAT_0022dcbf,local_10[1]);
mct_log(&DAT_0022dcbf,*local_10);
mct_log(&DAT_0022dcc3,*(int4 *)(local_10 + 0xe));
mct_log(&DAT_0022dcc7,local_10[7]);
mct_log(&DAT_0022dcc7,local_10[8]);
pcVar1 = "Y";
if ((*(uint *)((long)local_10 + 100) & 1) != 0) {
pcVar1 = "N";
}
mct_log(&DAT_0022dcbf,pcVar1);
mct_log(&DAT_0022dcc3,*(int4 *)((long)local_10 + 100));
mct_log(&DAT_0022dcc3,*(int4 *)(local_10 + 0xd));
mct_log("%u\n",*(int4 *)((long)local_10 + 0x6c));
}
return;
}
| |
29,717 | pagecache_unpin_by_link | eloqsql/storage/maria/ma_pagecache.c | void pagecache_unpin_by_link(PAGECACHE *pagecache,
PAGECACHE_BLOCK_LINK *block,
LSN lsn)
{
DBUG_ENTER("pagecache_unpin_by_link");
DBUG_PRINT("enter", ("block: %p fd: %u page: %lu",
block, (uint) block->hash_link->file.file,
(ulong) block->hash_link->pageno));
pagecache_pthread_mutex_lock(&pagecache->cache_lock);
/*
As soon as we keep lock cache can be used, and we have lock because want
unlock.
*/
DBUG_ASSERT(pagecache->can_be_used);
/* we can't unpin such page without unlock */
DBUG_ASSERT((block->status & PCBLOCK_DIRECT_W) == 0);
inc_counter_for_resize_op(pagecache);
if (lsn != LSN_IMPOSSIBLE)
check_and_set_lsn(pagecache, lsn, block);
/*
We can just unpin only with keeping read lock because:
a) we can't pin without any lock
b) we can't unpin keeping write lock
*/
if (make_lock_and_pin(pagecache, block,
PAGECACHE_LOCK_LEFT_READLOCKED,
PAGECACHE_UNPIN, FALSE))
DBUG_ASSERT(0); /* should not happend */
/*
Link the block into the LRU chain if it's the last submitted request
for the block and block will not be pinned.
See NOTE for pagecache_unlock about registering requests.
*/
unreg_request(pagecache, block, 1);
dec_counter_for_resize_op(pagecache);
pagecache_pthread_mutex_unlock(&pagecache->cache_lock);
DBUG_VOID_RETURN;
} | O3 | c | pagecache_unpin_by_link:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
leaq 0xc8(%rdi), %rbx
cmpq $0x0, 0x108(%rdi)
jne 0x325fd
movq %rbx, %rdi
callq 0x29220
incq 0x68(%r14)
testq %r12, %r12
je 0x3259f
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x31eca
decl 0x64(%r15)
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x320f7
decq 0x68(%r14)
jne 0x325e1
movq 0x110(%r14), %rax
testq %rax, %rax
je 0x325e1
movq 0x88(%rax), %r15
movq 0x38(%r15), %rdi
addq $0x8, %r15
testq %rdi, %rdi
jne 0x32628
movq %r15, %rdi
callq 0x295c0
movq 0x108(%r14), %rdi
testq %rdi, %rdi
jne 0x32616
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x291e0
leaq 0xa6fae(%rip), %rsi # 0xd95b2
movq %rbx, %rdi
movl $0xdad, %edx # imm = 0xDAD
callq 0x2eb8f
jmp 0x32588
leaq 0x3539f3(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x325ed
leaq 0x3539e1(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x170(%rax)
jmp 0x325d9
| pagecache_unpin_by_link:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r12, rdx
mov r15, rsi
mov r14, rdi
lea rbx, [rdi+0C8h]
cmp qword ptr [rdi+108h], 0
jnz short loc_325FD
mov rdi, rbx
call _pthread_mutex_lock
loc_32588:
inc qword ptr [r14+68h]
test r12, r12
jz short loc_3259F
mov rdi, r14
mov rsi, r12
mov rdx, r15
call check_and_set_lsn
loc_3259F:
dec dword ptr [r15+64h]
mov rdi, r14
mov rsi, r15
mov edx, 1
call unreg_request
dec qword ptr [r14+68h]
jnz short loc_325E1
mov rax, [r14+110h]
test rax, rax
jz short loc_325E1
mov r15, [rax+88h]
mov rdi, [r15+38h]
add r15, 8
test rdi, rdi
jnz short loc_32628
loc_325D9:
mov rdi, r15
call _pthread_cond_signal
loc_325E1:
mov rdi, [r14+108h]
test rdi, rdi
jnz short loc_32616
loc_325ED:
mov rdi, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp _pthread_mutex_unlock
loc_325FD:
lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rbx
mov edx, 0DADh
call psi_mutex_lock
jmp loc_32588
loc_32616:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_325ED
loc_32628:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+170h]
jmp short loc_325D9
| long long pagecache_unpin_by_link(_QWORD *a1, long long a2, signed long long a3)
{
_QWORD *v5; // rbx
long long v7; // rax
long long v8; // r15
long long v9; // rdi
long long v10; // r15
v5 = a1 + 25;
if ( a1[33] )
psi_mutex_lock(
(long long)(a1 + 25),
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0xDADu);
else
pthread_mutex_lock(a1 + 25);
++a1[13];
if ( a3 )
check_and_set_lsn((long long)a1, a3, a2);
--*(_DWORD *)(a2 + 100);
unreg_request(a1, a2, 1);
if ( a1[13]-- == 1LL )
{
v7 = a1[34];
if ( v7 )
{
v8 = *(_QWORD *)(v7 + 136);
v9 = *(_QWORD *)(v8 + 56);
v10 = v8 + 8;
if ( v9 )
PSI_server[46]();
pthread_cond_signal(v10);
}
}
if ( a1[33] )
PSI_server[44]();
return pthread_mutex_unlock(v5);
}
| pagecache_unpin_by_link:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R12,RDX
MOV R15,RSI
MOV R14,RDI
LEA RBX,[RDI + 0xc8]
CMP qword ptr [RDI + 0x108],0x0
JNZ 0x001325fd
MOV RDI,RBX
CALL 0x00129220
LAB_00132588:
INC qword ptr [R14 + 0x68]
TEST R12,R12
JZ 0x0013259f
MOV RDI,R14
MOV RSI,R12
MOV RDX,R15
CALL 0x00131eca
LAB_0013259f:
DEC dword ptr [R15 + 0x64]
MOV RDI,R14
MOV RSI,R15
MOV EDX,0x1
CALL 0x001320f7
DEC qword ptr [R14 + 0x68]
JNZ 0x001325e1
MOV RAX,qword ptr [R14 + 0x110]
TEST RAX,RAX
JZ 0x001325e1
MOV R15,qword ptr [RAX + 0x88]
MOV RDI,qword ptr [R15 + 0x38]
ADD R15,0x8
TEST RDI,RDI
JNZ 0x00132628
LAB_001325d9:
MOV RDI,R15
CALL 0x001295c0
LAB_001325e1:
MOV RDI,qword ptr [R14 + 0x108]
TEST RDI,RDI
JNZ 0x00132616
LAB_001325ed:
MOV RDI,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x001291e0
LAB_001325fd:
LEA RSI,[0x1d95b2]
MOV RDI,RBX
MOV EDX,0xdad
CALL 0x0012eb8f
JMP 0x00132588
LAB_00132616:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001325ed
LAB_00132628:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x170]
JMP 0x001325d9
|
void pagecache_unpin_by_link(long param_1,long param_2,long param_3)
{
long *plVar1;
pthread_mutex_t *__mutex;
long lVar2;
__mutex = (pthread_mutex_t *)(param_1 + 200);
if (*(long *)(param_1 + 0x108) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0xdad);
}
*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;
if (param_3 != 0) {
check_and_set_lsn(param_1,param_3,param_2);
}
*(int *)(param_2 + 100) = *(int *)(param_2 + 100) + -1;
unreg_request(param_1,param_2,1);
plVar1 = (long *)(param_1 + 0x68);
*plVar1 = *plVar1 + -1;
if ((*plVar1 == 0) && (*(long *)(param_1 + 0x110) != 0)) {
lVar2 = *(long *)(*(long *)(param_1 + 0x110) + 0x88);
if (*(long *)(lVar2 + 0x38) != 0) {
(**(code **)(PSI_server + 0x170))();
}
pthread_cond_signal((pthread_cond_t *)(lVar2 + 8));
}
if (*(long *)(param_1 + 0x108) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return;
}
| |
29,718 | rapidjson::GenericDocument<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>, rapidjson::CrtAllocator>::ClearStack() | mnn-tts/MNN/3rd_party/rapidjson/document.h | void ClearStack() {
if (Allocator::kNeedFree)
while (stack_.GetSize() > 0) // Here assumes all elements in stack array are GenericValue (Member is actually 2 GenericValue objects)
(stack_.template Pop<ValueType>(1))->~ValueType();
else
stack_.Clear();
stack_.ShrinkToFit();
} | O0 | c | rapidjson::GenericDocument<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>, rapidjson::CrtAllocator>::ClearStack():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq %rdi, 0x8(%rsp)
addq $0x20, %rdi
callq 0xfe10
movq 0x8(%rsp), %rdi
addq $0x20, %rdi
callq 0xfea0
addq $0x18, %rsp
retq
nop
| _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_E10ClearStackEv:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rdi, [rsp+18h+var_8]
mov [rsp+18h+var_10], rdi
add rdi, 20h ; ' '
call _ZN9rapidjson8internal5StackINS_12CrtAllocatorEE5ClearEv; rapidjson::internal::Stack<rapidjson::CrtAllocator>::Clear(void)
mov rdi, [rsp+18h+var_10]
add rdi, 20h ; ' '
call _ZN9rapidjson8internal5StackINS_12CrtAllocatorEE11ShrinkToFitEv; rapidjson::internal::Stack<rapidjson::CrtAllocator>::ShrinkToFit(void)
add rsp, 18h
retn
| long long rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::ClearStack(
long long a1)
{
rapidjson::internal::Stack<rapidjson::CrtAllocator>::Clear(a1 + 32);
return rapidjson::internal::Stack<rapidjson::CrtAllocator>::ShrinkToFit(a1 + 32);
}
| ClearStack:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RDI
ADD RDI,0x20
CALL 0x0010fe10
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x20
CALL 0x0010fea0
ADD RSP,0x18
RET
|
/* rapidjson::GenericDocument<rapidjson::UTF8<char>,
rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>, rapidjson::CrtAllocator>::ClearStack()
*/
void __thiscall
rapidjson::
GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>
::ClearStack(GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>
*this)
{
internal::Stack<rapidjson::CrtAllocator>::Clear((Stack<rapidjson::CrtAllocator> *)(this + 0x20));
internal::Stack<rapidjson::CrtAllocator>::ShrinkToFit
((Stack<rapidjson::CrtAllocator> *)(this + 0x20));
return;
}
| |
29,719 | OpenGL_Compatibility_Init | SDL3Lite/dependencies/OpenGL.h | void OpenGL_Compatibility_Init(int major, int minor)
{
OpenGL_LoadLibrary();
if (major == 1 && minor == 0)
{
OpenGL_Init_1_0();
}
else if (major == 1 && minor == 1)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
}
else if (major == 1 && minor == 2)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
}
else if (major == 1 && minor == 3)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
}
else if (major == 1 && minor == 4)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
}
else if (major == 1 && minor == 5)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
}
else if (major == 2 && minor == 0)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
}
else if (major == 2 && minor == 1)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
}
else if (major == 3 && minor == 0)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
}
else if (major == 3 && minor == 1)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
}
else if (major == 3 && minor == 2)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
}
else if (major == 3 && minor == 3)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
}
else if (major == 4 && minor == 0)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
}
else if (major == 4 && minor == 1)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
}
else if (major == 4 && minor == 2)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
}
else if (major == 4 && minor == 3)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
OpenGL_Init_4_3();
}
else if (major == 4 && minor == 4)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
OpenGL_Init_4_3();
OpenGL_Init_4_4();
}
else if (major == 4 && minor == 5)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
OpenGL_Init_4_3();
OpenGL_Init_4_4();
OpenGL_Init_4_5();
}
else if (major == 4 && minor == 6)
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
OpenGL_Init_4_3();
OpenGL_Init_4_4();
OpenGL_Init_4_6();
}
} | O3 | c | OpenGL_Compatibility_Init:
pushq %rax
movl %edi, 0x4(%rsp)
movl %esi, (%rsp)
callq 0x1eb00
cmpl $0x1, 0x4(%rsp)
jne 0x23a04
cmpl $0x0, (%rsp)
jne 0x23a04
callq 0x1eb70
jmp 0x23f10
cmpl $0x1, 0x4(%rsp)
jne 0x23a20
cmpl $0x1, (%rsp)
jne 0x23a20
callq 0x1eb70
callq 0x20230
jmp 0x23f0e
cmpl $0x1, 0x4(%rsp)
jne 0x23a41
cmpl $0x2, (%rsp)
jne 0x23a41
callq 0x1eb70
callq 0x20230
callq 0x20470
jmp 0x23f0c
cmpl $0x1, 0x4(%rsp)
jne 0x23a67
cmpl $0x3, (%rsp)
jne 0x23a67
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
jmp 0x23f0a
cmpl $0x1, 0x4(%rsp)
jne 0x23a92
cmpl $0x4, (%rsp)
jne 0x23a92
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
jmp 0x23f08
cmpl $0x1, 0x4(%rsp)
jne 0x23ac2
cmpl $0x5, (%rsp)
jne 0x23ac2
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
jmp 0x23f06
cmpl $0x2, 0x4(%rsp)
jne 0x23af7
cmpl $0x0, (%rsp)
jne 0x23af7
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
jmp 0x23f04
cmpl $0x2, 0x4(%rsp)
jne 0x23b31
cmpl $0x1, (%rsp)
jne 0x23b31
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
callq 0x21410
jmp 0x23f02
cmpl $0x3, 0x4(%rsp)
jne 0x23b70
cmpl $0x0, (%rsp)
jne 0x23b70
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
callq 0x21410
callq 0x21490
jmp 0x23f00
cmpl $0x3, 0x4(%rsp)
jne 0x23bb4
cmpl $0x1, (%rsp)
jne 0x23bb4
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
callq 0x21410
callq 0x21490
callq 0x21ad0
jmp 0x23efe
cmpl $0x3, 0x4(%rsp)
jne 0x23bfd
cmpl $0x2, (%rsp)
jne 0x23bfd
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
callq 0x21410
callq 0x21490
callq 0x21ad0
callq 0x21bc0
jmp 0x23efc
cmpl $0x3, 0x4(%rsp)
jne 0x23c4b
cmpl $0x3, (%rsp)
jne 0x23c4b
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
callq 0x21410
callq 0x21490
callq 0x21ad0
callq 0x21bc0
callq 0x21d30
jmp 0x23efa
cmpl $0x4, 0x4(%rsp)
jne 0x23c9e
cmpl $0x0, (%rsp)
jne 0x23c9e
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
callq 0x21410
callq 0x21490
callq 0x21ad0
callq 0x21bc0
callq 0x21d30
callq 0x22190
jmp 0x23ef8
cmpl $0x4, 0x4(%rsp)
jne 0x23cf6
cmpl $0x1, (%rsp)
jne 0x23cf6
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
callq 0x21410
callq 0x21490
callq 0x21ad0
callq 0x21bc0
callq 0x21d30
callq 0x22190
callq 0x22500
jmp 0x23ef6
cmpl $0x4, 0x4(%rsp)
jne 0x23d53
cmpl $0x2, (%rsp)
jne 0x23d53
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
callq 0x21410
callq 0x21490
callq 0x21ad0
callq 0x21bc0
callq 0x21d30
callq 0x22190
callq 0x22500
callq 0x22b90
jmp 0x23ef4
cmpl $0x4, 0x4(%rsp)
jne 0x23db5
cmpl $0x3, (%rsp)
jne 0x23db5
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
callq 0x21410
callq 0x21490
callq 0x21ad0
callq 0x21bc0
callq 0x21d30
callq 0x22190
callq 0x22500
callq 0x22b90
callq 0x22c80
jmp 0x23ef2
cmpl $0x4, 0x4(%rsp)
jne 0x23e1c
cmpl $0x4, (%rsp)
jne 0x23e1c
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
callq 0x21410
callq 0x21490
callq 0x21ad0
callq 0x21bc0
callq 0x21d30
callq 0x22190
callq 0x22500
callq 0x22b90
callq 0x22c80
callq 0x22fc0
jmp 0x23ef0
cmpl $0x4, 0x4(%rsp)
jne 0x23e85
cmpl $0x5, (%rsp)
jne 0x23e85
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
callq 0x21410
callq 0x21490
callq 0x21ad0
callq 0x21bc0
callq 0x21d30
callq 0x22190
callq 0x22500
callq 0x22b90
callq 0x22c80
callq 0x22fc0
callq 0x23070
jmp 0x23eee
cmpl $0x4, 0x4(%rsp)
jne 0x23eec
cmpl $0x6, (%rsp)
jne 0x23eec
callq 0x1eb70
callq 0x20230
callq 0x20470
callq 0x204c0
callq 0x20830
callq 0x20bb0
callq 0x20d20
callq 0x21410
callq 0x21490
callq 0x21ad0
callq 0x21bc0
callq 0x21d30
callq 0x22190
callq 0x22500
callq 0x22b90
callq 0x22c80
callq 0x22fc0
callq 0x23990
jmp 0x23eee
jmp 0x23ef0
jmp 0x23ef2
jmp 0x23ef4
jmp 0x23ef6
jmp 0x23ef8
jmp 0x23efa
jmp 0x23efc
jmp 0x23efe
jmp 0x23f00
jmp 0x23f02
jmp 0x23f04
jmp 0x23f06
jmp 0x23f08
jmp 0x23f0a
jmp 0x23f0c
jmp 0x23f0e
jmp 0x23f10
popq %rax
retq
nopw %cs:(%rax,%rax)
| OpenGL_Compatibility_Init:
push rax
mov [rsp+8+var_4], edi
mov [rsp+8+var_8], esi
call OpenGL_LoadLibrary
cmp [rsp+8+var_4], 1
jnz short loc_23A04
cmp [rsp+8+var_8], 0
jnz short loc_23A04
call OpenGL_Init_1_0
jmp loc_23F10
loc_23A04:
cmp [rsp+8+var_4], 1
jnz short loc_23A20
cmp [rsp+8+var_8], 1
jnz short loc_23A20
call OpenGL_Init_1_0
call OpenGL_Init_1_1
jmp loc_23F0E
loc_23A20:
cmp [rsp+8+var_4], 1
jnz short loc_23A41
cmp [rsp+8+var_8], 2
jnz short loc_23A41
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
jmp loc_23F0C
loc_23A41:
cmp [rsp+8+var_4], 1
jnz short loc_23A67
cmp [rsp+8+var_8], 3
jnz short loc_23A67
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
jmp loc_23F0A
loc_23A67:
cmp [rsp+8+var_4], 1
jnz short loc_23A92
cmp [rsp+8+var_8], 4
jnz short loc_23A92
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
jmp loc_23F08
loc_23A92:
cmp [rsp+8+var_4], 1
jnz short loc_23AC2
cmp [rsp+8+var_8], 5
jnz short loc_23AC2
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
jmp loc_23F06
loc_23AC2:
cmp [rsp+8+var_4], 2
jnz short loc_23AF7
cmp [rsp+8+var_8], 0
jnz short loc_23AF7
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
jmp loc_23F04
loc_23AF7:
cmp [rsp+8+var_4], 2
jnz short loc_23B31
cmp [rsp+8+var_8], 1
jnz short loc_23B31
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
call OpenGL_Init_2_1
jmp loc_23F02
loc_23B31:
cmp [rsp+8+var_4], 3
jnz short loc_23B70
cmp [rsp+8+var_8], 0
jnz short loc_23B70
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
call OpenGL_Init_2_1
call OpenGL_Init_3_0
jmp loc_23F00
loc_23B70:
cmp [rsp+8+var_4], 3
jnz short loc_23BB4
cmp [rsp+8+var_8], 1
jnz short loc_23BB4
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
call OpenGL_Init_2_1
call OpenGL_Init_3_0
call OpenGL_Init_3_1
jmp loc_23EFE
loc_23BB4:
cmp [rsp+8+var_4], 3
jnz short loc_23BFD
cmp [rsp+8+var_8], 2
jnz short loc_23BFD
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
call OpenGL_Init_2_1
call OpenGL_Init_3_0
call OpenGL_Init_3_1
call OpenGL_Init_3_2
jmp loc_23EFC
loc_23BFD:
cmp [rsp+8+var_4], 3
jnz short loc_23C4B
cmp [rsp+8+var_8], 3
jnz short loc_23C4B
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
call OpenGL_Init_2_1
call OpenGL_Init_3_0
call OpenGL_Init_3_1
call OpenGL_Init_3_2
call OpenGL_Init_3_3
jmp loc_23EFA
loc_23C4B:
cmp [rsp+8+var_4], 4
jnz short loc_23C9E
cmp [rsp+8+var_8], 0
jnz short loc_23C9E
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
call OpenGL_Init_2_1
call OpenGL_Init_3_0
call OpenGL_Init_3_1
call OpenGL_Init_3_2
call OpenGL_Init_3_3
call OpenGL_Init_4_0
jmp loc_23EF8
loc_23C9E:
cmp [rsp+8+var_4], 4
jnz short loc_23CF6
cmp [rsp+8+var_8], 1
jnz short loc_23CF6
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
call OpenGL_Init_2_1
call OpenGL_Init_3_0
call OpenGL_Init_3_1
call OpenGL_Init_3_2
call OpenGL_Init_3_3
call OpenGL_Init_4_0
call OpenGL_Init_4_1
jmp loc_23EF6
loc_23CF6:
cmp [rsp+8+var_4], 4
jnz short loc_23D53
cmp [rsp+8+var_8], 2
jnz short loc_23D53
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
call OpenGL_Init_2_1
call OpenGL_Init_3_0
call OpenGL_Init_3_1
call OpenGL_Init_3_2
call OpenGL_Init_3_3
call OpenGL_Init_4_0
call OpenGL_Init_4_1
call OpenGL_Init_4_2
jmp loc_23EF4
loc_23D53:
cmp [rsp+8+var_4], 4
jnz short loc_23DB5
cmp [rsp+8+var_8], 3
jnz short loc_23DB5
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
call OpenGL_Init_2_1
call OpenGL_Init_3_0
call OpenGL_Init_3_1
call OpenGL_Init_3_2
call OpenGL_Init_3_3
call OpenGL_Init_4_0
call OpenGL_Init_4_1
call OpenGL_Init_4_2
call OpenGL_Init_4_3
jmp loc_23EF2
loc_23DB5:
cmp [rsp+8+var_4], 4
jnz short loc_23E1C
cmp [rsp+8+var_8], 4
jnz short loc_23E1C
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
call OpenGL_Init_2_1
call OpenGL_Init_3_0
call OpenGL_Init_3_1
call OpenGL_Init_3_2
call OpenGL_Init_3_3
call OpenGL_Init_4_0
call OpenGL_Init_4_1
call OpenGL_Init_4_2
call OpenGL_Init_4_3
call OpenGL_Init_4_4
jmp loc_23EF0
loc_23E1C:
cmp [rsp+8+var_4], 4
jnz short loc_23E85
cmp [rsp+8+var_8], 5
jnz short loc_23E85
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
call OpenGL_Init_2_1
call OpenGL_Init_3_0
call OpenGL_Init_3_1
call OpenGL_Init_3_2
call OpenGL_Init_3_3
call OpenGL_Init_4_0
call OpenGL_Init_4_1
call OpenGL_Init_4_2
call OpenGL_Init_4_3
call OpenGL_Init_4_4
call OpenGL_Init_4_5
jmp short loc_23EEE
loc_23E85:
cmp [rsp+8+var_4], 4
jnz short loc_23EEC
cmp [rsp+8+var_8], 6
jnz short loc_23EEC
call OpenGL_Init_1_0
call OpenGL_Init_1_1
call OpenGL_Init_1_2
call OpenGL_Init_1_3
call OpenGL_Init_1_4
call OpenGL_Init_1_5
call OpenGL_Init_2_0
call OpenGL_Init_2_1
call OpenGL_Init_3_0
call OpenGL_Init_3_1
call OpenGL_Init_3_2
call OpenGL_Init_3_3
call OpenGL_Init_4_0
call OpenGL_Init_4_1
call OpenGL_Init_4_2
call OpenGL_Init_4_3
call OpenGL_Init_4_4
call OpenGL_Init_4_6
loc_23EEC:
jmp short $+2
loc_23EEE:
jmp short $+2
loc_23EF0:
jmp short $+2
loc_23EF2:
jmp short $+2
loc_23EF4:
jmp short $+2
loc_23EF6:
jmp short $+2
loc_23EF8:
jmp short $+2
loc_23EFA:
jmp short $+2
loc_23EFC:
jmp short $+2
loc_23EFE:
jmp short $+2
loc_23F00:
jmp short $+2
loc_23F02:
jmp short $+2
loc_23F04:
jmp short $+2
loc_23F06:
jmp short $+2
loc_23F08:
jmp short $+2
loc_23F0A:
jmp short $+2
loc_23F0C:
jmp short $+2
loc_23F0E:
jmp short $+2
loc_23F10:
pop rax
retn
| unsigned long long OpenGL_Compatibility_Init(unsigned int a1, unsigned int a2)
{
OpenGL_LoadLibrary();
if ( a1 != 1 || a2 )
{
if ( a1 == 1 && a2 == 1 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
}
else if ( a1 == 1 && a2 == 2 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
}
else if ( a1 == 1 && a2 == 3 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
}
else if ( a1 == 1 && a2 == 4 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
}
else if ( a1 == 1 && a2 == 5 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
}
else if ( a1 != 2 || a2 )
{
if ( a1 == 2 && a2 == 1 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
}
else if ( a1 != 3 || a2 )
{
if ( a1 == 3 && a2 == 1 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
}
else if ( a1 == 3 && a2 == 2 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
}
else if ( a1 == 3 && a2 == 3 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
}
else if ( a1 != 4 || a2 )
{
if ( a1 == 4 && a2 == 1 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
}
else if ( a1 == 4 && a2 == 2 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
}
else if ( a1 == 4 && a2 == 3 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
OpenGL_Init_4_3();
}
else if ( a1 == 4 && a2 == 4 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
OpenGL_Init_4_3();
OpenGL_Init_4_4();
}
else if ( a1 == 4 && a2 == 5 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
OpenGL_Init_4_3();
OpenGL_Init_4_4();
OpenGL_Init_4_5();
}
else if ( a1 == 4 && a2 == 6 )
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
OpenGL_Init_4_3();
OpenGL_Init_4_4();
OpenGL_Init_4_6();
}
}
else
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
}
}
else
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
}
}
else
{
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
}
}
else
{
OpenGL_Init_1_0();
}
return __PAIR64__(a1, a2);
}
| OpenGL_Compatibility_Init:
PUSH RAX
MOV dword ptr [RSP + 0x4],EDI
MOV dword ptr [RSP],ESI
CALL 0x0011eb00
CMP dword ptr [RSP + 0x4],0x1
JNZ 0x00123a04
CMP dword ptr [RSP],0x0
JNZ 0x00123a04
CALL 0x0011eb70
JMP 0x00123f10
LAB_00123a04:
CMP dword ptr [RSP + 0x4],0x1
JNZ 0x00123a20
CMP dword ptr [RSP],0x1
JNZ 0x00123a20
CALL 0x0011eb70
CALL 0x00120230
JMP 0x00123f0e
LAB_00123a20:
CMP dword ptr [RSP + 0x4],0x1
JNZ 0x00123a41
CMP dword ptr [RSP],0x2
JNZ 0x00123a41
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
JMP 0x00123f0c
LAB_00123a41:
CMP dword ptr [RSP + 0x4],0x1
JNZ 0x00123a67
CMP dword ptr [RSP],0x3
JNZ 0x00123a67
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
JMP 0x00123f0a
LAB_00123a67:
CMP dword ptr [RSP + 0x4],0x1
JNZ 0x00123a92
CMP dword ptr [RSP],0x4
JNZ 0x00123a92
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
JMP 0x00123f08
LAB_00123a92:
CMP dword ptr [RSP + 0x4],0x1
JNZ 0x00123ac2
CMP dword ptr [RSP],0x5
JNZ 0x00123ac2
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
JMP 0x00123f06
LAB_00123ac2:
CMP dword ptr [RSP + 0x4],0x2
JNZ 0x00123af7
CMP dword ptr [RSP],0x0
JNZ 0x00123af7
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
JMP 0x00123f04
LAB_00123af7:
CMP dword ptr [RSP + 0x4],0x2
JNZ 0x00123b31
CMP dword ptr [RSP],0x1
JNZ 0x00123b31
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
CALL 0x00121410
JMP 0x00123f02
LAB_00123b31:
CMP dword ptr [RSP + 0x4],0x3
JNZ 0x00123b70
CMP dword ptr [RSP],0x0
JNZ 0x00123b70
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
CALL 0x00121410
CALL 0x00121490
JMP 0x00123f00
LAB_00123b70:
CMP dword ptr [RSP + 0x4],0x3
JNZ 0x00123bb4
CMP dword ptr [RSP],0x1
JNZ 0x00123bb4
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
CALL 0x00121410
CALL 0x00121490
CALL 0x00121ad0
JMP 0x00123efe
LAB_00123bb4:
CMP dword ptr [RSP + 0x4],0x3
JNZ 0x00123bfd
CMP dword ptr [RSP],0x2
JNZ 0x00123bfd
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
CALL 0x00121410
CALL 0x00121490
CALL 0x00121ad0
CALL 0x00121bc0
JMP 0x00123efc
LAB_00123bfd:
CMP dword ptr [RSP + 0x4],0x3
JNZ 0x00123c4b
CMP dword ptr [RSP],0x3
JNZ 0x00123c4b
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
CALL 0x00121410
CALL 0x00121490
CALL 0x00121ad0
CALL 0x00121bc0
CALL 0x00121d30
JMP 0x00123efa
LAB_00123c4b:
CMP dword ptr [RSP + 0x4],0x4
JNZ 0x00123c9e
CMP dword ptr [RSP],0x0
JNZ 0x00123c9e
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
CALL 0x00121410
CALL 0x00121490
CALL 0x00121ad0
CALL 0x00121bc0
CALL 0x00121d30
CALL 0x00122190
JMP 0x00123ef8
LAB_00123c9e:
CMP dword ptr [RSP + 0x4],0x4
JNZ 0x00123cf6
CMP dword ptr [RSP],0x1
JNZ 0x00123cf6
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
CALL 0x00121410
CALL 0x00121490
CALL 0x00121ad0
CALL 0x00121bc0
CALL 0x00121d30
CALL 0x00122190
CALL 0x00122500
JMP 0x00123ef6
LAB_00123cf6:
CMP dword ptr [RSP + 0x4],0x4
JNZ 0x00123d53
CMP dword ptr [RSP],0x2
JNZ 0x00123d53
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
CALL 0x00121410
CALL 0x00121490
CALL 0x00121ad0
CALL 0x00121bc0
CALL 0x00121d30
CALL 0x00122190
CALL 0x00122500
CALL 0x00122b90
JMP 0x00123ef4
LAB_00123d53:
CMP dword ptr [RSP + 0x4],0x4
JNZ 0x00123db5
CMP dword ptr [RSP],0x3
JNZ 0x00123db5
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
CALL 0x00121410
CALL 0x00121490
CALL 0x00121ad0
CALL 0x00121bc0
CALL 0x00121d30
CALL 0x00122190
CALL 0x00122500
CALL 0x00122b90
CALL 0x00122c80
JMP 0x00123ef2
LAB_00123db5:
CMP dword ptr [RSP + 0x4],0x4
JNZ 0x00123e1c
CMP dword ptr [RSP],0x4
JNZ 0x00123e1c
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
CALL 0x00121410
CALL 0x00121490
CALL 0x00121ad0
CALL 0x00121bc0
CALL 0x00121d30
CALL 0x00122190
CALL 0x00122500
CALL 0x00122b90
CALL 0x00122c80
CALL 0x00122fc0
JMP 0x00123ef0
LAB_00123e1c:
CMP dword ptr [RSP + 0x4],0x4
JNZ 0x00123e85
CMP dword ptr [RSP],0x5
JNZ 0x00123e85
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
CALL 0x00121410
CALL 0x00121490
CALL 0x00121ad0
CALL 0x00121bc0
CALL 0x00121d30
CALL 0x00122190
CALL 0x00122500
CALL 0x00122b90
CALL 0x00122c80
CALL 0x00122fc0
CALL 0x00123070
JMP 0x00123eee
LAB_00123e85:
CMP dword ptr [RSP + 0x4],0x4
JNZ 0x00123eec
CMP dword ptr [RSP],0x6
JNZ 0x00123eec
CALL 0x0011eb70
CALL 0x00120230
CALL 0x00120470
CALL 0x001204c0
CALL 0x00120830
CALL 0x00120bb0
CALL 0x00120d20
CALL 0x00121410
CALL 0x00121490
CALL 0x00121ad0
CALL 0x00121bc0
CALL 0x00121d30
CALL 0x00122190
CALL 0x00122500
CALL 0x00122b90
CALL 0x00122c80
CALL 0x00122fc0
CALL 0x00123990
LAB_00123eec:
JMP 0x00123eee
LAB_00123eee:
JMP 0x00123ef0
LAB_00123ef0:
JMP 0x00123ef2
LAB_00123ef2:
JMP 0x00123ef4
LAB_00123ef4:
JMP 0x00123ef6
LAB_00123ef6:
JMP 0x00123ef8
LAB_00123ef8:
JMP 0x00123efa
LAB_00123efa:
JMP 0x00123efc
LAB_00123efc:
JMP 0x00123efe
LAB_00123efe:
JMP 0x00123f00
LAB_00123f00:
JMP 0x00123f02
LAB_00123f02:
JMP 0x00123f04
LAB_00123f04:
JMP 0x00123f06
LAB_00123f06:
JMP 0x00123f08
LAB_00123f08:
JMP 0x00123f0a
LAB_00123f0a:
JMP 0x00123f0c
LAB_00123f0c:
JMP 0x00123f0e
LAB_00123f0e:
JMP 0x00123f10
LAB_00123f10:
POP RAX
RET
|
int8 OpenGL_Compatibility_Init(int param_1,int param_2)
{
int8 local_8;
local_8 = CONCAT44(param_1,param_2);
OpenGL_LoadLibrary();
if ((param_1 == 1) && (param_2 == 0)) {
OpenGL_Init_1_0();
}
else if ((param_1 == 1) && (param_2 == 1)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
}
else if ((param_1 == 1) && (param_2 == 2)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
}
else if ((param_1 == 1) && (param_2 == 3)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
}
else if ((param_1 == 1) && (param_2 == 4)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
}
else if ((param_1 == 1) && (param_2 == 5)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
}
else if ((param_1 == 2) && (param_2 == 0)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
}
else if ((param_1 == 2) && (param_2 == 1)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
}
else if ((param_1 == 3) && (param_2 == 0)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
}
else if ((param_1 == 3) && (param_2 == 1)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
}
else if ((param_1 == 3) && (param_2 == 2)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
}
else if ((param_1 == 3) && (param_2 == 3)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
}
else if ((param_1 == 4) && (param_2 == 0)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
}
else if ((param_1 == 4) && (param_2 == 1)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
}
else if ((param_1 == 4) && (param_2 == 2)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
}
else if ((param_1 == 4) && (param_2 == 3)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
OpenGL_Init_4_3();
}
else if ((param_1 == 4) && (param_2 == 4)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
OpenGL_Init_4_3();
OpenGL_Init_4_4();
}
else if ((param_1 == 4) && (param_2 == 5)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
OpenGL_Init_4_3();
OpenGL_Init_4_4();
OpenGL_Init_4_5();
}
else if ((param_1 == 4) && (param_2 == 6)) {
OpenGL_Init_1_0();
OpenGL_Init_1_1();
OpenGL_Init_1_2();
OpenGL_Init_1_3();
OpenGL_Init_1_4();
OpenGL_Init_1_5();
OpenGL_Init_2_0();
OpenGL_Init_2_1();
OpenGL_Init_3_0();
OpenGL_Init_3_1();
OpenGL_Init_3_2();
OpenGL_Init_3_3();
OpenGL_Init_4_0();
OpenGL_Init_4_1();
OpenGL_Init_4_2();
OpenGL_Init_4_3();
OpenGL_Init_4_4();
OpenGL_Init_4_6();
}
return local_8;
}
| |
29,720 | common_params_get_system_info[abi:cxx11](common_params const&) | monkey531[P]llama/common/common.cpp | std::string common_params_get_system_info(const common_params & params) {
std::ostringstream os;
os << "system_info: n_threads = " << params.cpuparams.n_threads;
if (params.cpuparams_batch.n_threads != -1) {
os << " (n_threads_batch = " << params.cpuparams_batch.n_threads << ")";
}
#if defined(_WIN32) && (_WIN32_WINNT >= 0x0601) && !defined(__MINGW64__) // windows 7 and later
// TODO: windows + arm64 + mingw64
DWORD logicalProcessorCount = GetActiveProcessorCount(ALL_PROCESSOR_GROUPS);
os << " / " << logicalProcessorCount << " | " << llama_print_system_info();
#else
os << " / " << std::thread::hardware_concurrency() << " | " << llama_print_system_info();
#endif
return os.str();
} | O0 | cpp | common_params_get_system_info[abi:cxx11](common_params const&):
subq $0x1e8, %rsp # imm = 0x1E8
movq %rdi, 0x30(%rsp)
movq %rdi, %rax
movq %rax, 0x38(%rsp)
movq %rdi, 0x1e0(%rsp)
movq %rsi, 0x1d8(%rsp)
leaq 0x60(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x5a050
movq 0x40(%rsp), %rdi
leaq 0x1239f3(%rip), %rsi # 0x20d3e2
callq 0x599f0
movq %rax, 0x48(%rsp)
jmp 0xe99fb
movq 0x48(%rsp), %rdi
movq 0x1d8(%rsp), %rax
movl 0x274(%rax), %esi
callq 0x59550
jmp 0xe9a15
movq 0x1d8(%rsp), %rax
cmpl $-0x1, 0x488(%rax)
je 0xe9a8f
leaq 0x1239cf(%rip), %rsi # 0x20d3fc
leaq 0x60(%rsp), %rdi
callq 0x599f0
movq %rax, 0x28(%rsp)
jmp 0xe9a3e
movq 0x28(%rsp), %rdi
movq 0x1d8(%rsp), %rax
movl 0x488(%rax), %esi
callq 0x59550
movq %rax, 0x20(%rsp)
jmp 0xe9a5d
movq 0x20(%rsp), %rdi
leaq 0x129486(%rip), %rsi # 0x212eef
callq 0x599f0
jmp 0xe9a70
jmp 0xe9a8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x59f70
jmp 0xe9b1a
leaq 0x12397b(%rip), %rsi # 0x20d411
leaq 0x60(%rsp), %rdi
callq 0x599f0
movq %rax, 0x18(%rsp)
jmp 0xe9aa7
callq 0x59e00
movq 0x18(%rsp), %rdi
movl %eax, %esi
callq 0x59e60
movq %rax, 0x10(%rsp)
jmp 0xe9abf
movq 0x10(%rsp), %rdi
leaq 0x12986b(%rip), %rsi # 0x213336
callq 0x599f0
movq %rax, 0x8(%rsp)
jmp 0xe9ad7
callq 0x59050
movq %rax, (%rsp)
jmp 0xe9ae2
movq (%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x599f0
jmp 0xe9af2
movq 0x30(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x5a3c0
jmp 0xe9b03
leaq 0x60(%rsp), %rdi
callq 0x59f70
movq 0x38(%rsp), %rax
addq $0x1e8, %rsp # imm = 0x1E8
retq
movq 0x58(%rsp), %rdi
callq 0x59b80
nopw %cs:(%rax,%rax)
| _Z29common_params_get_system_infoB5cxx11RK13common_params:
sub rsp, 1E8h
mov [rsp+1E8h+var_1B8], rdi
mov rax, rdi
mov [rsp+1E8h+var_1B0], rax
mov [rsp+1E8h+var_8], rdi
mov [rsp+1E8h+var_10], rsi
lea rdi, [rsp+1E8h+var_188]
mov [rsp+1E8h+var_1A8], rdi
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov rdi, [rsp+1E8h+var_1A8]
lea rsi, aSystemInfoNThr; "system_info: n_threads = "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+1E8h+var_1A0], rax
jmp short $+2
loc_E99FB:
mov rdi, [rsp+1E8h+var_1A0]
mov rax, [rsp+1E8h+var_10]
mov esi, [rax+274h]
call __ZNSolsEi; std::ostream::operator<<(int)
jmp short $+2
loc_E9A15:
mov rax, [rsp+1E8h+var_10]
cmp dword ptr [rax+488h], 0FFFFFFFFh
jz short loc_E9A8F
lea rsi, aNThreadsBatch; " (n_threads_batch = "
lea rdi, [rsp+1E8h+var_188]
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+1E8h+var_1C0], rax
jmp short $+2
loc_E9A3E:
mov rdi, [rsp+1E8h+var_1C0]
mov rax, [rsp+1E8h+var_10]
mov esi, [rax+488h]
call __ZNSolsEi; std::ostream::operator<<(int)
mov [rsp+1E8h+var_1C8], rax
jmp short $+2
loc_E9A5D:
mov rdi, [rsp+1E8h+var_1C8]
lea rsi, a09401910201912+51h; ")"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_E9A70:
jmp short loc_E9A8F
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
lea rdi, [rsp+arg_58]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
jmp loc_E9B1A
loc_E9A8F:
lea rsi, asc_20D411; " / "
lea rdi, [rsp+1E8h+var_188]; this
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+1E8h+var_1D0], rax
jmp short $+2
loc_E9AA7:
call __ZNSt6thread20hardware_concurrencyEv; std::thread::hardware_concurrency(void)
mov rdi, [rsp+1E8h+var_1D0]
mov esi, eax
call __ZNSolsEj; std::ostream::operator<<(uint)
mov [rsp+1E8h+var_1D8], rax
jmp short $+2
loc_E9ABF:
mov rdi, [rsp+1E8h+var_1D8]
lea rsi, asc_213335+1; " | "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+1E8h+var_1E0], rax
jmp short $+2
loc_E9AD7:
call _llama_print_system_info
mov [rsp+1E8h+var_1E8], rax
jmp short $+2
loc_E9AE2:
mov rsi, [rsp+1E8h+var_1E8]
mov rdi, [rsp+1E8h+var_1E0]
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_E9AF2:
mov rdi, [rsp+1E8h+var_1B8]
lea rsi, [rsp+1E8h+var_188]
call __ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv; std::ostringstream::str(void)
jmp short $+2
loc_E9B03:
lea rdi, [rsp+1E8h+var_188]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
mov rax, [rsp+1E8h+var_1B0]
add rsp, 1E8h
retn
loc_E9B1A:
mov rdi, [rsp+arg_50]
call __Unwind_Resume
| long long common_params_get_system_info[abi:cxx11](long long a1, long long a2)
{
unsigned int v2; // eax
long long v3; // rdi
long long v5; // [rsp+0h] [rbp-1E8h]
long long v6; // [rsp+8h] [rbp-1E0h]
long long v7; // [rsp+18h] [rbp-1D0h]
long long v8; // [rsp+20h] [rbp-1C8h]
long long v9; // [rsp+28h] [rbp-1C0h]
long long v12; // [rsp+48h] [rbp-1A0h]
_BYTE v13[376]; // [rsp+60h] [rbp-188h] BYREF
long long v14; // [rsp+1D8h] [rbp-10h]
long long v15; // [rsp+1E0h] [rbp-8h]
v15 = a1;
v14 = a2;
std::ostringstream::basic_ostringstream(v13);
v12 = std::operator<<<std::char_traits<char>>(v13, "system_info: n_threads = ");
std::ostream::operator<<(v12, *(unsigned int *)(v14 + 628));
if ( *(_DWORD *)(v14 + 1160) != -1 )
{
v9 = std::operator<<<std::char_traits<char>>(v13, " (n_threads_batch = ");
v8 = std::ostream::operator<<(v9, *(unsigned int *)(v14 + 1160));
std::operator<<<std::char_traits<char>>(v8, ")");
}
v7 = std::operator<<<std::char_traits<char>>(v13, " / ");
v2 = std::thread::hardware_concurrency((std::thread *)v13);
v3 = std::ostream::operator<<(v7, v2);
v6 = std::operator<<<std::char_traits<char>>(v3, " | ");
v5 = llama_print_system_info();
std::operator<<<std::char_traits<char>>(v6, v5);
std::ostringstream::str(a1, v13);
std::ostringstream::~ostringstream(v13);
return a1;
}
| common_params_get_system_info[abi:cxx11]:
SUB RSP,0x1e8
MOV qword ptr [RSP + 0x30],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x38],RAX
MOV qword ptr [RSP + 0x1e0],RDI
MOV qword ptr [RSP + 0x1d8],RSI
LEA RDI,[RSP + 0x60]
MOV qword ptr [RSP + 0x40],RDI
CALL 0x0015a050
MOV RDI,qword ptr [RSP + 0x40]
LAB_001e99e8:
LEA RSI,[0x30d3e2]
CALL 0x001599f0
MOV qword ptr [RSP + 0x48],RAX
JMP 0x001e99fb
LAB_001e99fb:
MOV RDI,qword ptr [RSP + 0x48]
MOV RAX,qword ptr [RSP + 0x1d8]
MOV ESI,dword ptr [RAX + 0x274]
CALL 0x00159550
JMP 0x001e9a15
LAB_001e9a15:
MOV RAX,qword ptr [RSP + 0x1d8]
CMP dword ptr [RAX + 0x488],-0x1
JZ 0x001e9a8f
LEA RSI,[0x30d3fc]
LEA RDI,[RSP + 0x60]
CALL 0x001599f0
MOV qword ptr [RSP + 0x28],RAX
JMP 0x001e9a3e
LAB_001e9a3e:
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x1d8]
MOV ESI,dword ptr [RAX + 0x488]
CALL 0x00159550
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001e9a5d
LAB_001e9a5d:
MOV RDI,qword ptr [RSP + 0x20]
LEA RSI,[0x312eef]
CALL 0x001599f0
JMP 0x001e9a70
LAB_001e9a70:
JMP 0x001e9a8f
LAB_001e9a8f:
LEA RSI,[0x30d411]
LEA RDI,[RSP + 0x60]
CALL 0x001599f0
MOV qword ptr [RSP + 0x18],RAX
JMP 0x001e9aa7
LAB_001e9aa7:
CALL 0x00159e00
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,EAX
CALL 0x00159e60
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001e9abf
LAB_001e9abf:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x313336]
CALL 0x001599f0
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001e9ad7
LAB_001e9ad7:
CALL 0x00159050
MOV qword ptr [RSP],RAX
JMP 0x001e9ae2
LAB_001e9ae2:
MOV RSI,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001599f0
JMP 0x001e9af2
LAB_001e9af2:
MOV RDI,qword ptr [RSP + 0x30]
LEA RSI,[RSP + 0x60]
CALL 0x0015a3c0
LAB_001e9b01:
JMP 0x001e9b03
LAB_001e9b03:
LEA RDI,[RSP + 0x60]
CALL 0x00159f70
MOV RAX,qword ptr [RSP + 0x38]
ADD RSP,0x1e8
RET
|
/* common_params_get_system_info[abi:cxx11](common_params const&) */
common_params * common_params_get_system_info_abi_cxx11_(common_params *param_1)
{
uint uVar1;
ostream *poVar2;
char *pcVar3;
long in_RSI;
ostringstream local_188 [376];
long local_10;
common_params *local_8;
local_10 = in_RSI;
local_8 = param_1;
std::__cxx11::ostringstream::ostringstream(local_188);
/* try { // try from 001e99e8 to 001e9b00 has its CatchHandler @ 001e9a72 */
poVar2 = std::operator<<((ostream *)local_188,"system_info: n_threads = ");
std::ostream::operator<<(poVar2,*(int *)(local_10 + 0x274));
if (*(int *)(local_10 + 0x488) != -1) {
poVar2 = std::operator<<((ostream *)local_188," (n_threads_batch = ");
poVar2 = (ostream *)std::ostream::operator<<(poVar2,*(int *)(local_10 + 0x488));
std::operator<<(poVar2,")");
}
poVar2 = std::operator<<((ostream *)local_188," / ");
uVar1 = std::thread::hardware_concurrency();
poVar2 = (ostream *)std::ostream::operator<<(poVar2,uVar1);
poVar2 = std::operator<<(poVar2," | ");
pcVar3 = (char *)llama_print_system_info();
std::operator<<(poVar2,pcVar3);
std::__cxx11::ostringstream::str();
std::__cxx11::ostringstream::~ostringstream(local_188);
return param_1;
}
| |
29,721 | minja::Value::for_each(std::function<void (minja::Value&)> const&) const | monkey531[P]llama/common/minja.hpp | void for_each(const std::function<void(Value &)> & callback) const {
if (is_null())
throw std::runtime_error("Undefined value or reference");
if (array_) {
for (auto& item : *array_) {
callback(item);
}
} else if (object_) {
for (auto & item : *object_) {
Value key(item.first);
callback(key);
}
} else if (is_string()) {
for (char c : primitive_.get<std::string>()) {
auto val = Value(std::string(1, c));
callback(val);
}
} else {
throw std::runtime_error("Value is not iterable: " + dump());
}
} | O2 | cpp | minja::Value::for_each(std::function<void (minja::Value&)> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x63740
testb %al, %al
jne 0x6d974
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x6d898
movq (%rax), %r14
movq 0x8(%rax), %r15
cmpq %r15, %r14
je 0x6d962
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6dab2
addq $0x50, %r14
jmp 0x6d87e
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x6d8da
movq (%rax), %r14
movq 0x8(%rax), %r12
leaq 0x48(%rsp), %r15
cmpq %r12, %r14
je 0x6d962
movq %r15, %rdi
movq %r14, %rsi
callq 0x6776e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6dab2
movq %r15, %rdi
callq 0x62f68
addq $0x60, %r14
jmp 0x6d8ad
cmpb $0x3, 0x40(%r14)
jne 0x6d9a4
addq $0x40, %r14
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x63e20
movq (%r15), %r13
movq 0x8(%r15), %rbp
xorl %r15d, %r15d
leaq 0x28(%rsp), %r14
leaq 0x48(%rsp), %r12
cmpq %r15, %rbp
je 0x6d958
movsbl (%r13,%r15), %edx
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %r14, %rdi
pushq $0x1
popq %rsi
callq 0x23a40
movq %r12, %rdi
movq %r14, %rsi
callq 0x65f46
movq %r14, %rdi
callq 0x241f8
movq %rbx, %rdi
movq %r12, %rsi
callq 0x6dab2
movq %r12, %rdi
callq 0x62f68
incq %r15
jmp 0x6d90d
leaq 0x8(%rsp), %rdi
callq 0x241f8
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x23470
movq %rax, %rbx
leaq 0x46364(%rip), %rsi # 0xb3cea
movq %rax, %rdi
callq 0x23330
movq 0x9065b(%rip), %rsi # 0xfdff0
movq 0x905bc(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23f40
pushq $0x10
popq %rdi
callq 0x23470
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x63156
leaq 0x46d12(%rip), %rsi # 0xb46da
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x58886
movb $0x1, %bpl
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e70
xorl %ebp, %ebp
movq 0x90600(%rip), %rsi # 0xfdff0
movq 0x90561(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23f40
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0x241f8
jmp 0x6da14
movq %rax, %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x241f8
testb %bpl, %bpl
jne 0x6da2a
jmp 0x6da6e
jmp 0x6da27
movq %rax, %r14
movq %rbx, %rdi
callq 0x236a0
jmp 0x6da6e
movq %rax, %r14
jmp 0x6da55
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x241f8
jmp 0x6da55
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0x62f68
leaq 0x8(%rsp), %rdi
callq 0x241f8
jmp 0x6da6e
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0x62f68
movq %r14, %rdi
callq 0x23fc0
| _ZNK5minja5Value8for_eachERKSt8functionIFvRS0_EE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov rbx, rsi
mov r14, rdi
call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void)
test al, al
jnz loc_6D974
mov rax, [r14+10h]
test rax, rax
jz short loc_6D898
mov r14, [rax]
mov r15, [rax+8]
loc_6D87E:
cmp r14, r15
jz loc_6D962
mov rdi, rbx
mov rsi, r14
call _ZNKSt8functionIFvRN5minja5ValueEEEclES2_; std::function<void ()(minja::Value &)>::operator()(minja::Value &)
add r14, 50h ; 'P'
jmp short loc_6D87E
loc_6D898:
mov rax, [r14+20h]
test rax, rax
jz short loc_6D8DA
mov r14, [rax]
mov r12, [rax+8]
lea r15, [rsp+0C8h+var_80]
loc_6D8AD:
cmp r14, r12
jz loc_6D962
mov rdi, r15
mov rsi, r14
call _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE; minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rdi, rbx
mov rsi, r15
call _ZNKSt8functionIFvRN5minja5ValueEEEclES2_; std::function<void ()(minja::Value &)>::operator()(minja::Value &)
mov rdi, r15; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
add r14, 60h ; '`'
jmp short loc_6D8AD
loc_6D8DA:
cmp byte ptr [r14+40h], 3
jnz loc_6D9A4
add r14, 40h ; '@'
lea r15, [rsp+0C8h+var_C0]
mov rdi, r15
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov r13, [r15]
mov rbp, [r15+8]
xor r15d, r15d
lea r14, [rsp+0C8h+var_A0]
lea r12, [rsp+0C8h+var_80]
loc_6D90D:
cmp rbp, r15
jz short loc_6D958
movsx edx, byte ptr [r13+r15+0]
lea rax, [rsp+0C8h+var_90]
mov [rsp+0C8h+var_A0], rax
mov rdi, r14
push 1
pop rsi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
mov rdi, r12
mov rsi, r14
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
mov rsi, r12
call _ZNKSt8functionIFvRN5minja5ValueEEEclES2_; std::function<void ()(minja::Value &)>::operator()(minja::Value &)
mov rdi, r12; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
inc r15
jmp short loc_6D90D
loc_6D958:
lea rdi, [rsp+0C8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_6D962:
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6D974:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aUndefinedValue; "Undefined value or reference"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_6D9A4:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0C8h+var_C0]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aValueIsNotIter; "Value is not iterable: "
lea rdi, [rsp+0C8h+var_80]
lea rdx, [rsp+0C8h+var_C0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+0C8h+var_80]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+0C8h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6DA14
mov r14, rax
mov bpl, 1
loc_6DA14:
lea rdi, [rsp+0C8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_6DA2A
jmp short loc_6DA6E
jmp short $+2
loc_6DA27:
mov r14, rax
loc_6DA2A:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_6DA6E
mov r14, rax
jmp short loc_6DA55
mov r14, rax
lea rdi, [rsp+0C8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6DA55
mov r14, rax
lea rdi, [rsp+0C8h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_6DA55:
lea rdi, [rsp+0C8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6DA6E
mov r14, rax
lea rdi, [rsp+0C8h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_6DA6E:
mov rdi, r14
call __Unwind_Resume
| void minja::Value::for_each(long long a1, long long a2)
{
long long *v2; // rax
long long v3; // r14
long long v4; // r15
unsigned __int8 **v5; // rax
unsigned __int8 *v6; // r14
unsigned __int8 *v7; // r12
long long v8; // r13
long long v9; // rbp
long long i; // r15
long long v11; // rdx
std::runtime_error *exception; // rbx
void *v13; // rbx
_QWORD v14[4]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v15[2]; // [rsp+28h] [rbp-A0h] BYREF
char v16; // [rsp+38h] [rbp-90h] BYREF
_OWORD v17[8]; // [rsp+48h] [rbp-80h] BYREF
if ( minja::Value::is_null((minja::Value *)a1) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Undefined value or reference");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v2 = *(long long **)(a1 + 16);
if ( v2 )
{
v3 = *v2;
v4 = v2[1];
while ( v3 != v4 )
{
std::function<void ()(minja::Value &)>::operator()(a2, v3);
v3 += 80LL;
}
}
else
{
v5 = *(unsigned __int8 ***)(a1 + 32);
if ( v5 )
{
v6 = *v5;
v7 = v5[1];
while ( v6 != v7 )
{
minja::Value::Value(v17, v6);
std::function<void ()(minja::Value &)>::operator()(a2, v17);
minja::Value::~Value((minja::Value *)v17);
v6 += 96;
}
}
else
{
if ( *(_BYTE *)(a1 + 64) != 3 )
{
v13 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v14, a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v17, (long long)"Value is not iterable: ", (long long)v14);
std::runtime_error::runtime_error(v13, v17);
__cxa_throw(
v13,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v14,
a1 + 64);
v8 = v14[0];
v9 = v14[1];
for ( i = 0LL; v9 != i; ++i )
{
v11 = (unsigned int)*(char *)(v8 + i);
v15[0] = &v16;
std::string::_M_construct(v15, 1LL, v11);
minja::Value::Value((long long)v17, (long long)v15);
std::string::~string(v15);
std::function<void ()(minja::Value &)>::operator()(a2, v17);
minja::Value::~Value((minja::Value *)v17);
}
std::string::~string(v14);
}
}
}
| for_each:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV RBX,RSI
MOV R14,RDI
CALL 0x00163740
TEST AL,AL
JNZ 0x0016d974
MOV RAX,qword ptr [R14 + 0x10]
TEST RAX,RAX
JZ 0x0016d898
MOV R14,qword ptr [RAX]
MOV R15,qword ptr [RAX + 0x8]
LAB_0016d87e:
CMP R14,R15
JZ 0x0016d962
MOV RDI,RBX
MOV RSI,R14
CALL 0x0016dab2
ADD R14,0x50
JMP 0x0016d87e
LAB_0016d898:
MOV RAX,qword ptr [R14 + 0x20]
TEST RAX,RAX
JZ 0x0016d8da
MOV R14,qword ptr [RAX]
MOV R12,qword ptr [RAX + 0x8]
LEA R15,[RSP + 0x48]
LAB_0016d8ad:
CMP R14,R12
JZ 0x0016d962
MOV RDI,R15
MOV RSI,R14
CALL 0x0016776e
LAB_0016d8c1:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0016dab2
LAB_0016d8cc:
MOV RDI,R15
CALL 0x00162f68
ADD R14,0x60
JMP 0x0016d8ad
LAB_0016d8da:
CMP byte ptr [R14 + 0x40],0x3
JNZ 0x0016d9a4
ADD R14,0x40
LEA R15,[RSP + 0x8]
MOV RDI,R15
MOV RSI,R14
CALL 0x00163e20
MOV R13,qword ptr [R15]
MOV RBP,qword ptr [R15 + 0x8]
XOR R15D,R15D
LEA R14,[RSP + 0x28]
LEA R12,[RSP + 0x48]
LAB_0016d90d:
CMP RBP,R15
JZ 0x0016d958
MOVSX EDX,byte ptr [R13 + R15*0x1]
LEA RAX,[RSP + 0x38]
MOV qword ptr [RSP + 0x28],RAX
LAB_0016d922:
MOV RDI,R14
PUSH 0x1
POP RSI
CALL 0x00123a40
LAB_0016d92d:
MOV RDI,R12
MOV RSI,R14
CALL 0x00165f46
MOV RDI,R14
CALL 0x001241f8
LAB_0016d940:
MOV RDI,RBX
MOV RSI,R12
CALL 0x0016dab2
LAB_0016d94b:
MOV RDI,R12
CALL 0x00162f68
INC R15
JMP 0x0016d90d
LAB_0016d958:
LEA RDI,[RSP + 0x8]
CALL 0x001241f8
LAB_0016d962:
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016d974:
PUSH 0x10
POP RDI
CALL 0x00123470
MOV RBX,RAX
LAB_0016d97f:
LEA RSI,[0x1b3cea]
MOV RDI,RAX
CALL 0x00123330
LAB_0016d98e:
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123f40
LAB_0016d9a4:
PUSH 0x10
POP RDI
CALL 0x00123470
MOV RBX,RAX
LAB_0016d9af:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00163156
LAB_0016d9c1:
LEA RSI,[0x1b46da]
LEA RDI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
CALL 0x00158886
MOV BPL,0x1
LAB_0016d9da:
LEA RSI,[RSP + 0x48]
MOV RDI,RBX
CALL 0x00123e70
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123f40
|
/* minja::Value::for_each(std::function<void (minja::Value&)> const&) const */
void __thiscall minja::Value::for_each(Value *this,function *param_1)
{
int8 *puVar1;
Value *pVVar2;
basic_json *pbVar3;
char cVar4;
runtime_error *prVar5;
Value *pVVar6;
basic_json *pbVar7;
long lVar8;
string local_c0 [8];
long local_b8;
int1 *local_a0 [2];
int1 local_90 [16];
Value local_80 [80];
cVar4 = is_null(this);
if (cVar4 != '\0') {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016d97f to 0016d98d has its CatchHandler @ 0016da27 */
std::runtime_error::runtime_error(prVar5,"Undefined value or reference");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
puVar1 = *(int8 **)(this + 0x10);
if (puVar1 == (int8 *)0x0) {
puVar1 = *(int8 **)(this + 0x20);
if (puVar1 == (int8 *)0x0) {
if (this[0x40] != (Value)0x3) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016d9af to 0016d9c0 has its CatchHandler @ 0016da25 */
dump_abi_cxx11_((int)local_c0,SUB81(this,0));
/* try { // try from 0016d9c1 to 0016d9d6 has its CatchHandler @ 0016da0e */
std::operator+((char *)local_80,(string *)"Value is not iterable: ");
/* try { // try from 0016d9da to 0016d9fe has its CatchHandler @ 0016d9ff */
std::runtime_error::runtime_error(prVar5,(string *)local_80);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_c0,this + 0x40);
for (lVar8 = 0; local_b8 != lVar8; lVar8 = lVar8 + 1) {
local_a0[0] = local_90;
/* try { // try from 0016d922 to 0016d92c has its CatchHandler @ 0016da34 */
std::__cxx11::string::_M_construct((ulong)local_a0,'\x01');
/* try { // try from 0016d92d to 0016d937 has its CatchHandler @ 0016da39 */
Value(local_80,(string *)local_a0);
std::__cxx11::string::~string((string *)local_a0);
/* try { // try from 0016d940 to 0016d94a has its CatchHandler @ 0016da48 */
std::function<void(minja::Value&)>::operator()
((function<void(minja::Value&)> *)param_1,local_80);
~Value(local_80);
}
std::__cxx11::string::~string(local_c0);
}
else {
pbVar3 = (basic_json *)puVar1[1];
for (pbVar7 = (basic_json *)*puVar1; pbVar7 != pbVar3; pbVar7 = pbVar7 + 0x60) {
Value(local_80,pbVar7);
/* try { // try from 0016d8c1 to 0016d8cb has its CatchHandler @ 0016da61 */
std::function<void(minja::Value&)>::operator()
((function<void(minja::Value&)> *)param_1,local_80);
~Value(local_80);
}
}
}
else {
pVVar2 = (Value *)puVar1[1];
for (pVVar6 = (Value *)*puVar1; pVVar6 != pVVar2; pVVar6 = pVVar6 + 0x50) {
std::function<void(minja::Value&)>::operator()
((function<void(minja::Value&)> *)param_1,pVVar6);
}
}
return;
}
| |
29,722 | my_wc_mb_utf8mb4_no_range | eloqsql/strings/ctype-utf8.c | static int
my_wc_mb_utf8mb4_no_range(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *r)
{
int count;
if (wc < 0x80)
count= 1;
else if (wc < 0x800)
count= 2;
else if (wc < 0x10000)
count= 3;
else if (wc < 0x200000)
count= 4;
else
return MY_CS_ILUNI;
switch (count)
{
case 4: r[3]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0x10000;
/* fall through */
case 3: r[2]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0x800;
/* fall through */
case 2: r[1]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0xc0;
/* fall through */
case 1: r[0]= (uchar) wc;
}
return count;
} | O3 | c | my_wc_mb_utf8mb4_no_range:
pushq %rbp
movq %rsp, %rbp
movl $0x1, %eax
cmpq $0x80, %rdi
jb 0x8a7cd
movl $0x2, %eax
cmpq $0x800, %rdi # imm = 0x800
jb 0x8a7b7
movl $0x3, %eax
cmpq $0x10000, %rdi # imm = 0x10000
jb 0x8a7a1
xorl %eax, %eax
cmpq $0x1fffff, %rdi # imm = 0x1FFFFF
ja 0x8a7d0
movl %edi, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x3(%rsi)
shrq $0x6, %rdi
orq $0x10000, %rdi # imm = 0x10000
movl $0x4, %eax
movl %edi, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x2(%rsi)
shrq $0x6, %rdi
orq $0x800, %rdi # imm = 0x800
movl %edi, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x1(%rsi)
shrq $0x6, %rdi
orq $0xc0, %rdi
movb %dil, (%rsi)
popq %rbp
retq
| my_wc_mb_utf8mb4_no_range:
push rbp
mov rbp, rsp
mov eax, 1
cmp rdi, 80h
jb short loc_8A7CD
mov eax, 2
cmp rdi, 800h
jb short loc_8A7B7
mov eax, 3
cmp rdi, 10000h
jb short loc_8A7A1
xor eax, eax
cmp rdi, offset unk_1FFFFF
ja short loc_8A7D0
mov eax, edi
and al, 3Fh
or al, 80h
mov [rsi+3], al
shr rdi, 6
or rdi, 10000h
mov eax, 4
loc_8A7A1:
mov ecx, edi
and cl, 3Fh
or cl, 80h
mov [rsi+2], cl
shr rdi, 6
or rdi, 800h
loc_8A7B7:
mov ecx, edi
and cl, 3Fh
or cl, 80h
mov [rsi+1], cl
shr rdi, 6
or rdi, 0C0h
loc_8A7CD:
mov [rsi], dil
loc_8A7D0:
pop rbp
retn
| long long my_wc_mb_utf8mb4_no_range(unsigned long long a1, _BYTE *a2)
{
long long result; // rax
result = 1LL;
if ( a1 >= 0x80 )
{
result = 2LL;
if ( a1 >= 0x800 )
{
result = 3LL;
if ( a1 >= 0x10000 )
{
result = 0LL;
if ( a1 > (unsigned long long)&unk_1FFFFF )
return result;
a2[3] = a1 & 0x3F | 0x80;
a1 = (a1 >> 6) | 0x10000;
result = 4LL;
}
a2[2] = a1 & 0x3F | 0x80;
a1 = (a1 >> 6) | 0x800;
}
a2[1] = a1 & 0x3F | 0x80;
a1 = (a1 >> 6) | 0xC0;
}
*a2 = a1;
return result;
}
| my_wc_mb_utf8mb4_no_range:
PUSH RBP
MOV RBP,RSP
MOV EAX,0x1
CMP RDI,0x80
JC 0x0018a7cd
MOV EAX,0x2
CMP RDI,0x800
JC 0x0018a7b7
MOV EAX,0x3
CMP RDI,0x10000
JC 0x0018a7a1
XOR EAX,EAX
CMP RDI,0x1fffff
JA 0x0018a7d0
MOV EAX,EDI
AND AL,0x3f
OR AL,0x80
MOV byte ptr [RSI + 0x3],AL
SHR RDI,0x6
OR RDI,0x10000
MOV EAX,0x4
LAB_0018a7a1:
MOV ECX,EDI
AND CL,0x3f
OR CL,0x80
MOV byte ptr [RSI + 0x2],CL
SHR RDI,0x6
OR RDI,0x800
LAB_0018a7b7:
MOV ECX,EDI
AND CL,0x3f
OR CL,0x80
MOV byte ptr [RSI + 0x1],CL
SHR RDI,0x6
OR RDI,0xc0
LAB_0018a7cd:
MOV byte ptr [RSI],DIL
LAB_0018a7d0:
POP RBP
RET
|
int8 my_wc_mb_utf8mb4_no_range(ulong param_1,int1 *param_2)
{
int8 uVar1;
uVar1 = 1;
if (0x7f < param_1) {
uVar1 = 2;
if (0x7ff < param_1) {
uVar1 = 3;
if (0xffff < param_1) {
if (0x1fffff < param_1) {
return 0;
}
param_2[3] = (byte)param_1 & 0x3f | 0x80;
param_1 = param_1 >> 6 | 0x10000;
uVar1 = 4;
}
param_2[2] = (byte)param_1 & 0x3f | 0x80;
param_1 = param_1 >> 6 | 0x800;
}
param_2[1] = (byte)param_1 & 0x3f | 0x80;
param_1 = param_1 >> 6 | 0xc0;
}
*param_2 = (char)param_1;
return uVar1;
}
| |
29,723 | MyCTX_nopad::update_source_tail(unsigned char const*, unsigned int) | eloqsql/mysys_ssl/my_crypt.cc | void update_source_tail(const uchar* src, uint slen)
{
if (!slen)
return;
uint new_tail_len= (source_tail_len + slen) % MY_AES_BLOCK_SIZE;
if (new_tail_len)
{
if (slen + source_tail_len < MY_AES_BLOCK_SIZE)
{
memcpy(source_tail + source_tail_len, src, slen);
}
else
{
DBUG_ASSERT(slen > new_tail_len);
memcpy(source_tail, src + slen - new_tail_len, new_tail_len);
}
}
source_tail_len= new_tail_len;
} | O0 | cpp | MyCTX_nopad::update_source_tail(unsigned char const*, unsigned int):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpl $0x0, -0x14(%rbp)
jne 0xe2116
jmp 0xe21a7
movq -0x20(%rbp), %rax
movl 0xdc(%rax), %eax
addl -0x14(%rbp), %eax
andl $0xf, %eax
movl %eax, -0x18(%rbp)
cmpl $0x0, -0x18(%rbp)
je 0xe219a
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
addl 0xdc(%rcx), %eax
cmpl $0x10, %eax
jae 0xe2168
movq -0x20(%rbp), %rax
movq %rax, %rdi
addq $0xf0, %rdi
movl 0xdc(%rax), %eax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x29090
jmp 0xe2198
jmp 0xe216a
jmp 0xe216c
movq -0x20(%rbp), %rdi
addq $0xf0, %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %eax
addq %rax, %rsi
movl -0x18(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
subq %rcx, %rax
addq %rax, %rsi
movl -0x18(%rbp), %eax
movl %eax, %edx
callq 0x29090
jmp 0xe219a
movq -0x20(%rbp), %rax
movl -0x18(%rbp), %ecx
movl %ecx, 0xdc(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN11MyCTX_nopad18update_source_tailEPKhj:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
cmp [rbp+var_14], 0
jnz short loc_E2116
jmp loc_E21A7
loc_E2116:
mov rax, [rbp+var_20]
mov eax, [rax+0DCh]
add eax, [rbp+var_14]
and eax, 0Fh
mov [rbp+var_18], eax
cmp [rbp+var_18], 0
jz short loc_E219A
mov rcx, [rbp+var_20]
mov eax, [rbp+var_14]
add eax, [rcx+0DCh]
cmp eax, 10h
jnb short loc_E2168
mov rax, [rbp+var_20]
mov rdi, rax
add rdi, 0F0h
mov eax, [rax+0DCh]
add rdi, rax
mov rsi, [rbp+var_10]
mov eax, [rbp+var_14]
mov edx, eax
call _memcpy
jmp short loc_E2198
loc_E2168:
jmp short $+2
loc_E216A:
jmp short $+2
loc_E216C:
mov rdi, [rbp+var_20]
add rdi, 0F0h
mov rsi, [rbp+var_10]
mov eax, [rbp+var_14]
add rsi, rax
mov eax, [rbp+var_18]
mov ecx, eax
xor eax, eax
sub rax, rcx
add rsi, rax
mov eax, [rbp+var_18]
mov edx, eax
call _memcpy
loc_E2198:
jmp short $+2
loc_E219A:
mov rax, [rbp+var_20]
mov ecx, [rbp+var_18]
mov [rax+0DCh], ecx
loc_E21A7:
add rsp, 20h
pop rbp
retn
| MyCTX_nopad * MyCTX_nopad::update_source_tail(MyCTX_nopad *this, const unsigned __int8 *a2, unsigned int a3)
{
MyCTX_nopad *result; // rax
unsigned int v4; // [rsp+8h] [rbp-18h]
result = this;
if ( a3 )
{
v4 = ((_BYTE)a3 + (unsigned __int8)*((_DWORD *)this + 55)) & 0xF;
if ( (((_BYTE)a3 + (unsigned __int8)*((_DWORD *)this + 55)) & 0xF) != 0 )
{
if ( *((_DWORD *)this + 55) + a3 >= 0x10 )
memcpy((char *)this + 240, &a2[a3 - v4], v4);
else
memcpy((char *)this + *((unsigned int *)this + 55) + 240, a2, a3);
}
result = this;
*((_DWORD *)this + 55) = v4;
}
return result;
}
| update_source_tail:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
CMP dword ptr [RBP + -0x14],0x0
JNZ 0x001e2116
JMP 0x001e21a7
LAB_001e2116:
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX + 0xdc]
ADD EAX,dword ptr [RBP + -0x14]
AND EAX,0xf
MOV dword ptr [RBP + -0x18],EAX
CMP dword ptr [RBP + -0x18],0x0
JZ 0x001e219a
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,dword ptr [RCX + 0xdc]
CMP EAX,0x10
JNC 0x001e2168
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,RAX
ADD RDI,0xf0
MOV EAX,dword ptr [RAX + 0xdc]
ADD RDI,RAX
MOV RSI,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x14]
MOV EDX,EAX
CALL 0x00129090
JMP 0x001e2198
LAB_001e2168:
JMP 0x001e216a
LAB_001e216a:
JMP 0x001e216c
LAB_001e216c:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0xf0
MOV RSI,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x14]
ADD RSI,RAX
MOV EAX,dword ptr [RBP + -0x18]
MOV ECX,EAX
XOR EAX,EAX
SUB RAX,RCX
ADD RSI,RAX
MOV EAX,dword ptr [RBP + -0x18]
MOV EDX,EAX
CALL 0x00129090
LAB_001e2198:
JMP 0x001e219a
LAB_001e219a:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0xdc],ECX
LAB_001e21a7:
ADD RSP,0x20
POP RBP
RET
|
/* MyCTX_nopad::update_source_tail(unsigned char const*, unsigned int) */
void __thiscall MyCTX_nopad::update_source_tail(MyCTX_nopad *this,uchar *param_1,uint param_2)
{
uint uVar1;
if (param_2 != 0) {
uVar1 = *(int *)(this + 0xdc) + param_2 & 0xf;
if (uVar1 != 0) {
if (param_2 + *(int *)(this + 0xdc) < 0x10) {
memcpy(this + (ulong)*(uint *)(this + 0xdc) + 0xf0,param_1,(ulong)param_2);
}
else {
memcpy(this + 0xf0,param_1 + ((ulong)param_2 - (ulong)uVar1),(ulong)uVar1);
}
}
*(uint *)(this + 0xdc) = uVar1;
}
return;
}
| |
29,724 | fini_one_value | eloqsql/mysys/my_getopt.c | static void fini_one_value(const struct my_option *option, void *variable,
longlong value __attribute__ ((unused)))
{
DBUG_ENTER("fini_one_value");
switch ((option->var_type & GET_TYPE_MASK)) {
case GET_STR_ALLOC:
my_free(*((char**) variable));
*((char**) variable)= NULL;
break;
default: /* dummy default to avoid compiler warnings */
break;
}
DBUG_VOID_RETURN;
} | O0 | c | fini_one_value:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x30(%rax), %eax
andl $0x3f, %eax
subl $0xa, %eax
jne 0x7ba0e
jmp 0x7b9f5
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x7e1c0
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
jmp 0x7ba10
jmp 0x7ba10
jmp 0x7ba12
jmp 0x7ba14
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| fini_one_value:
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_8]
mov eax, [rax+30h]
and eax, 3Fh
sub eax, 0Ah
jnz short loc_7BA0E
jmp short $+2
loc_7B9F5:
mov rax, [rbp+var_10]
mov rdi, [rax]
call my_free
mov rax, [rbp+var_10]
mov qword ptr [rax], 0
jmp short loc_7BA10
loc_7BA0E:
jmp short $+2
loc_7BA10:
jmp short $+2
loc_7BA12:
jmp short $+2
loc_7BA14:
add rsp, 20h
pop rbp
retn
| _QWORD * fini_one_value(long long a1, _QWORD *a2)
{
_QWORD *result; // rax
result = (_QWORD *)((*(_DWORD *)(a1 + 48) & 0x3Fu) - 10);
if ( (*(_DWORD *)(a1 + 48) & 0x3F) == 0xA )
{
my_free(*a2);
result = a2;
*a2 = 0LL;
}
return result;
}
| fini_one_value:
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 + -0x8]
MOV EAX,dword ptr [RAX + 0x30]
AND EAX,0x3f
SUB EAX,0xa
JNZ 0x0017ba0e
JMP 0x0017b9f5
LAB_0017b9f5:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x0017e1c0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],0x0
JMP 0x0017ba10
LAB_0017ba0e:
JMP 0x0017ba10
LAB_0017ba10:
JMP 0x0017ba12
LAB_0017ba12:
JMP 0x0017ba14
LAB_0017ba14:
ADD RSP,0x20
POP RBP
RET
|
void fini_one_value(long param_1,int8 *param_2)
{
if ((*(uint *)(param_1 + 0x30) & 0x3f) == 10) {
my_free(*param_2);
*param_2 = 0;
}
return;
}
| |
29,725 | mysql_stmt_prepare_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_stmt_prepare_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_prepare,
(parms->stmt, parms->query, parms->length),
parms->stmt->mysql,
int,
r_int)
} | O0 | c | mysql_stmt_prepare_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x38(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdx
callq 0x45070
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| mysql_stmt_prepare_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+38h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov rax, [rbp+var_10]
mov rdx, [rax+10h]
call mysql_stmt_prepare
mov [rbp+var_14], eax
mov ecx, [rbp+var_14]
mov rax, [rbp+var_20]
mov [rax+8], ecx
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| _DWORD * mysql_stmt_prepare_start_internal(long long *a1)
{
_DWORD *result; // rax
_DWORD *v2; // [rsp+0h] [rbp-20h]
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(*a1 + 56) + 1152LL) + 40LL);
v2[2] = mysql_stmt_prepare(*a1, a1[1], a1[2]);
result = v2;
*v2 = 0;
return result;
}
| mysql_stmt_prepare_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x10]
CALL 0x00145070
MOV dword ptr [RBP + -0x14],EAX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_stmt_prepare_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_prepare(*param_1,param_1[1],param_1[2]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
29,726 | stmt_fetch_close | eloqsql/libmariadb/unittest/libmariadb/cursor.c | void stmt_fetch_close(Stmt_fetch *fetch)
{
unsigned i;
for (i= 0; i < fetch->column_count; ++i)
free(fetch->out_data[i]);
free(fetch->out_data);
free(fetch->out_data_length);
free(fetch->bind_array);
mysql_stmt_close(fetch->handle);
} | O0 | c | stmt_fetch_close:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x38(%rcx), %eax
jae 0x1542e
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0xc(%rbp), %ecx
movq (%rax,%rcx,8), %rdi
callq 0x13520
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x15403
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x315a0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| stmt_fetch_close:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov [rbp+var_C], 0
loc_15403:
mov eax, [rbp+var_C]
mov rcx, [rbp+var_8]
cmp eax, [rcx+38h]
jnb short loc_1542E
mov rax, [rbp+var_8]
mov rax, [rax+28h]
mov ecx, [rbp+var_C]
mov rdi, [rax+rcx*8]
call _free
mov eax, [rbp+var_C]
add eax, 1
mov [rbp+var_C], eax
jmp short loc_15403
loc_1542E:
mov rax, [rbp+var_8]
mov rdi, [rax+28h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+30h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+20h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+10h]
call mysql_stmt_close
add rsp, 10h
pop rbp
retn
| long long stmt_fetch_close(long long a1)
{
unsigned int i; // [rsp+4h] [rbp-Ch]
for ( i = 0; i < *(_DWORD *)(a1 + 56); ++i )
free(*(_QWORD *)(*(_QWORD *)(a1 + 40) + 8LL * i));
free(*(_QWORD *)(a1 + 40));
free(*(_QWORD *)(a1 + 48));
free(*(_QWORD *)(a1 + 32));
return mysql_stmt_close(*(_QWORD *)(a1 + 16));
}
| stmt_fetch_close:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],0x0
LAB_00115403:
MOV EAX,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x38]
JNC 0x0011542e
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x28]
MOV ECX,dword ptr [RBP + -0xc]
MOV RDI,qword ptr [RAX + RCX*0x8]
CALL 0x00113520
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x1
MOV dword ptr [RBP + -0xc],EAX
JMP 0x00115403
LAB_0011542e:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x28]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x30]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x20]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x001315a0
ADD RSP,0x10
POP RBP
RET
|
void stmt_fetch_close(long param_1)
{
int4 local_14;
for (local_14 = 0; local_14 < *(uint *)(param_1 + 0x38); local_14 = local_14 + 1) {
free(*(void **)(*(long *)(param_1 + 0x28) + (ulong)local_14 * 8));
}
free(*(void **)(param_1 + 0x28));
free(*(void **)(param_1 + 0x30));
free(*(void **)(param_1 + 0x20));
mysql_stmt_close(*(int8 *)(param_1 + 0x10));
return;
}
| |
29,727 | testing::internal::SuiteApiResolver<FindPeaksCppTest>::GetSetUpCaseOrSuite(char const*, int) | giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/include/gtest/internal/gtest-internal.h | static SetUpTearDownSuiteFuncType GetSetUpCaseOrSuite(const char* filename,
int line_num) {
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_
SetUpTearDownSuiteFuncType test_case_fp =
GetNotDefaultOrNull(&T::SetUpTestCase, &Test::SetUpTestCase);
SetUpTearDownSuiteFuncType test_suite_fp =
GetNotDefaultOrNull(&T::SetUpTestSuite, &Test::SetUpTestSuite);
GTEST_CHECK_(!test_case_fp || !test_suite_fp)
<< "Test can not provide both SetUpTestSuite and SetUpTestCase, please "
"make sure there is only one present at "
<< filename << ":" << line_num;
return test_case_fp != nullptr ? test_case_fp : test_suite_fp;
#else
(void)(filename);
(void)(line_num);
return &T::SetUpTestSuite;
#endif
} | O1 | c | testing::internal::SuiteApiResolver<FindPeaksCppTest>::GetSetUpCaseOrSuite(char const*, int):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
movl $0x1, %edi
callq 0x11be8
testb %al, %al
jne 0xd663
leaq 0x32e79(%rip), %rdx # 0x4042c
leaq 0xc(%rsp), %rdi
movl $0x3, %esi
movl $0x201, %ecx # imm = 0x201
callq 0x16e72
movq 0x4ba1a(%rip), %rdi # 0x58fe8
leaq 0x32ee6(%rip), %rsi # 0x404bb
movl $0x32, %edx
callq 0x85b0
movq 0x4ba02(%rip), %r15 # 0x58fe8
leaq 0x32f01(%rip), %rsi # 0x404ee
movl $0x6a, %edx
movq %r15, %rdi
callq 0x85b0
testq %r14, %r14
je 0xd61b
movq %r14, %rdi
callq 0x8200
movq 0x4b9da(%rip), %rdi # 0x58fe8
movq %r14, %rsi
movq %rax, %rdx
callq 0x85b0
jmp 0xd633
movq (%r15), %rax
movq -0x18(%rax), %rax
leaq (%r15,%rax), %rdi
movl 0x20(%r15,%rax), %esi
orl $0x1, %esi
callq 0x8930
movq 0x4b9ae(%rip), %rdi # 0x58fe8
leaq 0x36190(%rip), %rsi # 0x437d1
movl $0x1, %edx
callq 0x85b0
movq 0x4b996(%rip), %rdi # 0x58fe8
movl %ebx, %esi
callq 0x8950
leaq 0xc(%rsp), %rdi
callq 0x16fb4
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x16fb4
movq %rbx, %rdi
callq 0x8990
| _ZN7testing8internal16SuiteApiResolverI16FindPeaksCppTestE19GetSetUpCaseOrSuiteEPKci:
push r15
push r14
push rbx
sub rsp, 10h
mov ebx, esi
mov r14, rdi
mov edi, (offset dword_0+1); this
call _ZN7testing8internal6IsTrueEb; testing::internal::IsTrue(bool)
test al, al
jnz loc_D663
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+28h+var_1C]
mov esi, 3
mov ecx, 201h
call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int)
mov rdi, cs:_ZSt4cerr_ptr
lea rsi, aConditionTestC; "Condition !test_case_fp || !test_suite_"...
mov edx, 32h ; '2'
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r15, cs:_ZSt4cerr_ptr
lea rsi, aTestCanNotProv; "Test can not provide both SetUpTestSuit"...
mov edx, 6Ah ; 'j'
mov rdi, r15
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
test r14, r14
jz short loc_D61B
mov rdi, r14
call _strlen
mov rdi, cs:_ZSt4cerr_ptr
mov rsi, r14
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_D633
loc_D61B:
mov rax, [r15]
mov rax, [rax-18h]
lea rdi, [r15+rax]
mov esi, [r15+rax+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_D633:
mov rdi, cs:_ZSt4cerr_ptr
lea rsi, aTrace+6; ":"
mov edx, 1
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, cs:_ZSt4cerr_ptr
mov esi, ebx
call __ZNSolsEi; std::ostream::operator<<(int)
lea rdi, [rsp+28h+var_1C]; this
call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog()
loc_D663:
xor eax, eax
add rsp, 10h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_4]; this
call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog()
mov rdi, rbx
call __Unwind_Resume
| long long testing::internal::SuiteApiResolver<FindPeaksCppTest>::GetSetUpCaseOrSuite(long long a1, BOOL a2)
{
long long v2; // rax
_BYTE v4[28]; // [rsp+Ch] [rbp-1Ch] BYREF
if ( !(unsigned __int8)testing::internal::IsTrue((testing::internal *)((char *)&dword_0 + 1), a2) )
{
testing::internal::GTestLog::GTestLog(
v4,
3LL,
"/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/include/gte"
"st/internal/gtest-internal.h",
513LL);
std::__ostream_insert<char,std::char_traits<char>>(
&std::cerr,
"Condition !test_case_fp || !test_suite_fp failed. ",
50LL);
std::__ostream_insert<char,std::char_traits<char>>(
&std::cerr,
"Test can not provide both SetUpTestSuite and SetUpTestCase, please make sure there is only one present at ",
106LL);
if ( a1 )
{
v2 = strlen(a1);
std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, a1, v2);
}
else
{
std::ios::clear(
(char *)&std::cerr + *(_QWORD *)(std::cerr - 24LL),
*(_DWORD *)((char *)&std::cerr + *(_QWORD *)(std::cerr - 24LL) + 32) | 1u);
}
std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, ":", 1LL);
std::ostream::operator<<(&std::cerr, a2);
testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)v4);
}
return 0LL;
}
| GetSetUpCaseOrSuite:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV EBX,ESI
MOV R14,RDI
MOV EDI,0x1
CALL 0x00111be8
TEST AL,AL
JNZ 0x0010d663
LEA RDX,[0x14042c]
LEA RDI,[RSP + 0xc]
MOV ESI,0x3
MOV ECX,0x201
CALL 0x00116e72
LAB_0010d5c7:
MOV RDI,qword ptr [0x00158fe8]
LEA RSI,[0x1404bb]
MOV EDX,0x32
CALL 0x001085b0
MOV R15,qword ptr [0x00158fe8]
LEA RSI,[0x1404ee]
MOV EDX,0x6a
MOV RDI,R15
CALL 0x001085b0
TEST R14,R14
JZ 0x0010d61b
MOV RDI,R14
CALL 0x00108200
MOV RDI,qword ptr [0x00158fe8]
MOV RSI,R14
MOV RDX,RAX
CALL 0x001085b0
JMP 0x0010d633
LAB_0010d61b:
MOV RAX,qword ptr [R15]
MOV RAX,qword ptr [RAX + -0x18]
LEA RDI,[R15 + RAX*0x1]
MOV ESI,dword ptr [R15 + RAX*0x1 + 0x20]
OR ESI,0x1
CALL 0x00108930
LAB_0010d633:
MOV RDI,qword ptr [0x00158fe8]
LEA RSI,[0x1437d1]
MOV EDX,0x1
CALL 0x001085b0
MOV RDI,qword ptr [0x00158fe8]
MOV ESI,EBX
CALL 0x00108950
LAB_0010d659:
LEA RDI,[RSP + 0xc]
CALL 0x00116fb4
LAB_0010d663:
XOR EAX,EAX
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* testing::internal::SuiteApiResolver<FindPeaksCppTest>::GetSetUpCaseOrSuite(char const*, int) */
int8
testing::internal::SuiteApiResolver<FindPeaksCppTest>::GetSetUpCaseOrSuite
(char *param_1,int param_2)
{
int *puVar1;
char cVar2;
size_t sVar3;
GTestLog local_1c [4];
cVar2 = IsTrue(true);
if (cVar2 == '\0') {
GTestLog::GTestLog(local_1c,3,
"/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/include/gtest/internal/gtest-internal.h"
,0x201);
/* try { // try from 0010d5c7 to 0010d658 has its CatchHandler @ 0010d66f */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cerr_00158fe8,"Condition !test_case_fp || !test_suite_fp failed. ",
0x32);
puVar1 = PTR_cerr_00158fe8;
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cerr_00158fe8,
"Test can not provide both SetUpTestSuite and SetUpTestCase, please make sure there is only one present at "
,0x6a);
if (param_1 == (char *)0x0) {
std::ios::clear(puVar1 + *(long *)(*(long *)puVar1 + -0x18),
*(uint *)(puVar1 + *(long *)(*(long *)puVar1 + -0x18) + 0x20) | 1);
}
else {
sVar3 = strlen(param_1);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cerr_00158fe8,param_1,sVar3)
;
}
std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cerr_00158fe8,":",1);
std::ostream::operator<<((ostream *)PTR_cerr_00158fe8,param_2);
GTestLog::~GTestLog(local_1c);
}
return 0;
}
| |
29,728 | js_function_apply | bluesky950520[P]quickjs/quickjs.c | static JSValue js_function_apply(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int magic)
{
JSValue this_arg, array_arg;
uint32_t len;
JSValue *tab, ret;
if (check_function(ctx, this_val))
return JS_EXCEPTION;
this_arg = argv[0];
array_arg = argv[1];
if ((JS_VALUE_GET_TAG(array_arg) == JS_TAG_UNDEFINED ||
JS_VALUE_GET_TAG(array_arg) == JS_TAG_NULL) && magic != 2) {
return JS_Call(ctx, this_val, this_arg, 0, NULL);
}
tab = build_arg_list(ctx, &len, array_arg);
if (!tab)
return JS_EXCEPTION;
if (magic & 1) {
ret = JS_CallConstructor2(ctx, this_val, this_arg, len, tab);
} else {
ret = JS_Call(ctx, this_val, this_arg, len, tab);
}
free_arg_list(ctx, tab, len);
return ret;
} | O0 | c | js_function_apply:
subq $0xa8, %rsp
movq %rsi, 0x88(%rsp)
movq %rdx, 0x90(%rsp)
movq %rdi, 0x80(%rsp)
movl %ecx, 0x7c(%rsp)
movq %r8, 0x70(%rsp)
movl %r9d, 0x6c(%rsp)
movq 0x80(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
callq 0x6da80
cmpl $0x0, %eax
je 0x64d9b
movl $0x0, 0x98(%rsp)
movq $0x6, 0xa0(%rsp)
jmp 0x64f55
movq 0x70(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x58(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x48(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
cmpl $0x3, %eax
je 0x64ddc
movq 0x50(%rsp), %rax
cmpl $0x2, %eax
jne 0x64e2c
cmpl $0x2, 0x6c(%rsp)
je 0x64e2c
movq 0x80(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq 0x60(%rsp), %r8
xorl %r9d, %r9d
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0x3a050
movq %rax, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
jmp 0x64f55
movq 0x80(%rsp), %rdi
movq 0x48(%rsp), %rdx
movq 0x50(%rsp), %rcx
leaq 0x44(%rsp), %rsi
callq 0x65b20
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x64e71
movl $0x0, 0x98(%rsp)
movq $0x6, 0xa0(%rsp)
jmp 0x64f55
movl 0x6c(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x64ed2
movq 0x80(%rsp), %rdi
movl 0x44(%rsp), %r9d
movq 0x38(%rsp), %rax
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq 0x60(%rsp), %r8
movq %rax, (%rsp)
callq 0x48090
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0x64f25
movq 0x80(%rsp), %rdi
movl 0x44(%rsp), %r9d
movq 0x38(%rsp), %rax
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq 0x60(%rsp), %r8
movq %rax, (%rsp)
callq 0x3a050
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x80(%rsp), %rdi
movq 0x38(%rsp), %rsi
movl 0x44(%rsp), %edx
callq 0x65e10
movq 0x28(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x98(%rsp), %rax
movq 0xa0(%rsp), %rdx
addq $0xa8, %rsp
retq
nopl (%rax)
| js_function_apply:
sub rsp, 0A8h
mov [rsp+0A8h+var_20], rsi
mov [rsp+0A8h+var_18], rdx
mov [rsp+0A8h+var_28], rdi
mov [rsp+0A8h+var_2C], ecx
mov [rsp+0A8h+var_38], r8
mov [rsp+0A8h+var_3C], r9d
mov rdi, [rsp+0A8h+var_28]
mov rsi, [rsp+0A8h+var_20]
mov rdx, [rsp+0A8h+var_18]
call check_function
cmp eax, 0
jz short loc_64D9B
mov dword ptr [rsp+0A8h+var_10], 0
mov [rsp+0A8h+var_8], 6
jmp loc_64F55
loc_64D9B:
mov rax, [rsp+0A8h+var_38]
mov rcx, [rax]
mov [rsp+0A8h+var_50], rcx
mov rax, [rax+8]
mov [rsp+0A8h+var_48], rax
mov rax, [rsp+0A8h+var_38]
mov rcx, [rax+10h]
mov [rsp+0A8h+var_60], rcx
mov rax, [rax+18h]
mov [rsp+0A8h+var_58], rax
mov rax, [rsp+0A8h+var_58]
cmp eax, 3
jz short loc_64DDC
mov rax, [rsp+0A8h+var_58]
cmp eax, 2
jnz short loc_64E2C
loc_64DDC:
cmp [rsp+0A8h+var_3C], 2
jz short loc_64E2C
mov rdi, [rsp+0A8h+var_28]
mov rsi, [rsp+0A8h+var_20]
mov rdx, [rsp+0A8h+var_18]
mov rcx, [rsp+0A8h+var_50]
mov r8, [rsp+0A8h+var_48]
xor r9d, r9d
xor eax, eax
mov [rsp+0A8h+var_A8], 0
call JS_Call
mov [rsp+0A8h+var_10], rax
mov [rsp+0A8h+var_8], rdx
jmp loc_64F55
loc_64E2C:
mov rdi, [rsp+0A8h+var_28]
mov rdx, [rsp+0A8h+var_60]
mov rcx, [rsp+0A8h+var_58]
lea rsi, [rsp+0A8h+var_64]
call build_arg_list
mov [rsp+0A8h+var_70], rax
cmp [rsp+0A8h+var_70], 0
jnz short loc_64E71
mov dword ptr [rsp+0A8h+var_10], 0
mov [rsp+0A8h+var_8], 6
jmp loc_64F55
loc_64E71:
mov eax, [rsp+0A8h+var_3C]
and eax, 1
cmp eax, 0
jz short loc_64ED2
mov rdi, [rsp+0A8h+var_28]
mov r9d, [rsp+0A8h+var_64]
mov rax, [rsp+0A8h+var_70]
mov rsi, [rsp+0A8h+var_20]
mov rdx, [rsp+0A8h+var_18]
mov rcx, [rsp+0A8h+var_50]
mov r8, [rsp+0A8h+var_48]
mov [rsp+0A8h+var_A8], rax
call JS_CallConstructor2
mov [rsp+0A8h+var_90], rax
mov [rsp+0A8h+var_88], rdx
mov rax, [rsp+0A8h+var_90]
mov [rsp+0A8h+var_80], rax
mov rax, [rsp+0A8h+var_88]
mov [rsp+0A8h+var_78], rax
jmp short loc_64F25
loc_64ED2:
mov rdi, [rsp+0A8h+var_28]
mov r9d, [rsp+0A8h+var_64]
mov rax, [rsp+0A8h+var_70]
mov rsi, [rsp+0A8h+var_20]
mov rdx, [rsp+0A8h+var_18]
mov rcx, [rsp+0A8h+var_50]
mov r8, [rsp+0A8h+var_48]
mov [rsp+0A8h+var_A8], rax
call JS_Call
mov [rsp+0A8h+var_A0], rax
mov [rsp+0A8h+var_98], rdx
mov rax, [rsp+0A8h+var_A0]
mov [rsp+0A8h+var_80], rax
mov rax, [rsp+0A8h+var_98]
mov [rsp+0A8h+var_78], rax
loc_64F25:
mov rdi, [rsp+0A8h+var_28]
mov rsi, [rsp+0A8h+var_70]
mov edx, [rsp+0A8h+var_64]
call free_arg_list
mov rax, [rsp+0A8h+var_80]
mov [rsp+0A8h+var_10], rax
mov rax, [rsp+0A8h+var_78]
mov [rsp+0A8h+var_8], rax
loc_64F55:
mov rax, [rsp+0A8h+var_10]
mov rdx, [rsp+0A8h+var_8]
add rsp, 0A8h
retn
| long long js_function_apply(long long a1, long long a2, long long a3, int a4, long long *a5, int a6)
{
long long v6; // rdx
long long v7; // rdx
long long v9; // [rsp+28h] [rbp-80h]
long long v10; // [rsp+30h] [rbp-78h]
long long v11; // [rsp+38h] [rbp-70h]
unsigned int v12; // [rsp+44h] [rbp-64h] BYREF
long long v13; // [rsp+48h] [rbp-60h]
long long v14; // [rsp+50h] [rbp-58h]
long long v15; // [rsp+58h] [rbp-50h]
long long v16; // [rsp+60h] [rbp-48h]
int v17; // [rsp+6Ch] [rbp-3Ch]
long long *v18; // [rsp+70h] [rbp-38h]
int v19; // [rsp+7Ch] [rbp-2Ch]
long long v20; // [rsp+80h] [rbp-28h]
long long v21; // [rsp+88h] [rbp-20h]
long long v22; // [rsp+90h] [rbp-18h]
long long v23; // [rsp+98h] [rbp-10h]
long long v24; // [rsp+A0h] [rbp-8h]
v21 = a2;
v22 = a3;
v20 = a1;
v19 = a4;
v18 = a5;
v17 = a6;
if ( (unsigned int)check_function(a1, a2, a3) )
{
LODWORD(v23) = 0;
v24 = 6LL;
}
else
{
v15 = *v18;
v16 = v18[1];
v13 = v18[2];
v14 = v18[3];
if ( ((_DWORD)v14 == 3 || (_DWORD)v14 == 2) && v17 != 2 )
{
v23 = JS_Call(v20, v21, v22, v15, v16, 0, 0LL);
v24 = v6;
}
else
{
v11 = build_arg_list(v20, &v12, v13, v14);
if ( v11 )
{
if ( (v17 & 1) != 0 )
v9 = JS_CallConstructor2(v20, v21, v22, v15, v16, v12, v11);
else
v9 = JS_Call(v20, v21, v22, v15, v16, v12, v11);
v10 = v7;
free_arg_list(v20, v11, v12);
v23 = v9;
v24 = v10;
}
else
{
LODWORD(v23) = 0;
v24 = 6LL;
}
}
}
return v23;
}
| js_function_apply:
SUB RSP,0xa8
MOV qword ptr [RSP + 0x88],RSI
MOV qword ptr [RSP + 0x90],RDX
MOV qword ptr [RSP + 0x80],RDI
MOV dword ptr [RSP + 0x7c],ECX
MOV qword ptr [RSP + 0x70],R8
MOV dword ptr [RSP + 0x6c],R9D
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
CALL 0x0016da80
CMP EAX,0x0
JZ 0x00164d9b
MOV dword ptr [RSP + 0x98],0x0
MOV qword ptr [RSP + 0xa0],0x6
JMP 0x00164f55
LAB_00164d9b:
MOV RAX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP + 0x58],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x48],RCX
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x50]
CMP EAX,0x3
JZ 0x00164ddc
MOV RAX,qword ptr [RSP + 0x50]
CMP EAX,0x2
JNZ 0x00164e2c
LAB_00164ddc:
CMP dword ptr [RSP + 0x6c],0x2
JZ 0x00164e2c
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
MOV RCX,qword ptr [RSP + 0x58]
MOV R8,qword ptr [RSP + 0x60]
XOR R9D,R9D
XOR EAX,EAX
MOV qword ptr [RSP],0x0
CALL 0x0013a050
MOV qword ptr [RSP + 0x98],RAX
MOV qword ptr [RSP + 0xa0],RDX
JMP 0x00164f55
LAB_00164e2c:
MOV RDI,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RSP + 0x48]
MOV RCX,qword ptr [RSP + 0x50]
LEA RSI,[RSP + 0x44]
CALL 0x00165b20
MOV qword ptr [RSP + 0x38],RAX
CMP qword ptr [RSP + 0x38],0x0
JNZ 0x00164e71
MOV dword ptr [RSP + 0x98],0x0
MOV qword ptr [RSP + 0xa0],0x6
JMP 0x00164f55
LAB_00164e71:
MOV EAX,dword ptr [RSP + 0x6c]
AND EAX,0x1
CMP EAX,0x0
JZ 0x00164ed2
MOV RDI,qword ptr [RSP + 0x80]
MOV R9D,dword ptr [RSP + 0x44]
MOV RAX,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
MOV RCX,qword ptr [RSP + 0x58]
MOV R8,qword ptr [RSP + 0x60]
MOV qword ptr [RSP],RAX
CALL 0x00148090
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x30],RAX
JMP 0x00164f25
LAB_00164ed2:
MOV RDI,qword ptr [RSP + 0x80]
MOV R9D,dword ptr [RSP + 0x44]
MOV RAX,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
MOV RCX,qword ptr [RSP + 0x58]
MOV R8,qword ptr [RSP + 0x60]
MOV qword ptr [RSP],RAX
CALL 0x0013a050
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x30],RAX
LAB_00164f25:
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x38]
MOV EDX,dword ptr [RSP + 0x44]
CALL 0x00165e10
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x98],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0xa0],RAX
LAB_00164f55:
MOV RAX,qword ptr [RSP + 0x98]
MOV RDX,qword ptr [RSP + 0xa0]
ADD RSP,0xa8
RET
|
int1 [16]
js_function_apply(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 *param_5,uint param_6)
{
int iVar1;
long lVar2;
int1 auVar3 [16];
int8 local_78;
int4 local_64;
int8 local_60;
int8 local_58;
int8 local_50;
int8 local_48;
uint local_3c;
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_3c = param_6;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
iVar1 = check_function(param_1,param_2,param_3);
if (iVar1 == 0) {
local_50 = *local_38;
local_48 = local_38[1];
local_60 = local_38[2];
local_58 = local_38[3];
if ((((int)local_58 == 3) || ((int)local_58 == 2)) && (local_3c != 2)) {
auVar3 = JS_Call(local_28,local_20,local_18,local_50,local_48,0,0);
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
}
else {
lVar2 = build_arg_list(local_28,&local_64,local_60,local_58);
if (lVar2 == 0) {
local_10 = 0;
local_8 = 6;
}
else {
if ((local_3c & 1) == 0) {
auVar3 = JS_Call(local_28,local_20,local_18,local_50,local_48,local_64,lVar2);
}
else {
auVar3 = JS_CallConstructor2(local_28,local_20,local_18,local_50,local_48,local_64,lVar2);
}
local_78 = auVar3._8_8_;
free_arg_list(local_28,lVar2,local_64);
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
local_8 = local_78;
}
}
}
else {
local_10 = 0;
local_8 = 6;
}
auVar3._4_4_ = uStack_c;
auVar3._0_4_ = local_10;
auVar3._8_8_ = local_8;
return auVar3;
}
| |
29,729 | js_function_apply | bluesky950520[P]quickjs/quickjs.c | static JSValue js_function_apply(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int magic)
{
JSValue this_arg, array_arg;
uint32_t len;
JSValue *tab, ret;
if (check_function(ctx, this_val))
return JS_EXCEPTION;
this_arg = argv[0];
array_arg = argv[1];
if ((JS_VALUE_GET_TAG(array_arg) == JS_TAG_UNDEFINED ||
JS_VALUE_GET_TAG(array_arg) == JS_TAG_NULL) && magic != 2) {
return JS_Call(ctx, this_val, this_arg, 0, NULL);
}
tab = build_arg_list(ctx, &len, array_arg);
if (!tab)
return JS_EXCEPTION;
if (magic & 1) {
ret = JS_CallConstructor2(ctx, this_val, this_arg, len, tab);
} else {
ret = JS_Call(ctx, this_val, this_arg, len, tab);
}
free_arg_list(ctx, tab, len);
return ret;
} | O1 | c | js_function_apply:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, %r13d
movq %r8, %rbp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
callq 0x415b1
movl $0x6, %r14d
testl %eax, %eax
je 0x3f194
xorl %r15d, %r15d
xorl %ecx, %ecx
jmp 0x3f2c6
movq (%rbp), %r9
movq 0x8(%rbp), %r8
movq 0x18(%rbp), %rcx
movl %ecx, %eax
andl $-0x2, %eax
cmpl $0x2, %eax
setne %al
cmpl $0x2, %r13d
sete %dl
orb %al, %dl
jne 0x3f20d
movl $0x0, 0x38(%rsp)
movq $0x3, 0x40(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
movl $0x2, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r9, %rcx
xorl %r9d, %r9d
callq 0x284ca
movq %rax, %r15
movq %rdx, %r14
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %rax, %rcx
jmp 0x3f2c6
movq %r9, 0x28(%rsp)
movq %r8, 0x30(%rsp)
movq 0x10(%rbp), %rdx
leaq 0x24(%rsp), %rsi
movq %rbx, %rdi
callq 0x3f55b
testq %rax, %rax
je 0x3f18a
movq %rax, %rbp
movl 0x24(%rsp), %r9d
testb $0x1, %r13b
jne 0x3f280
movl $0x0, 0x38(%rsp)
movq $0x3, 0x40(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbp, 0x10(%rsp)
movl $0x2, 0x18(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
callq 0x284ca
jmp 0x3f2a4
movq %rbp, (%rsp)
movl $0x2, 0x8(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
callq 0x2fa61
movq %rax, %r15
movq %rdx, %r14
movl 0x24(%rsp), %edx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x3f6cd
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %r15, %rcx
movl %r15d, %eax
orq %rcx, %rax
movq %r14, %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_function_apply:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r13d, r9d
mov rbp, r8
mov r15, rdx
mov r12, rsi
mov rbx, rdi
call check_function
mov r14d, 6
test eax, eax
jz short loc_3F194
loc_3F18A:
xor r15d, r15d
xor ecx, ecx
jmp loc_3F2C6
loc_3F194:
mov r9, [rbp+0]
mov r8, [rbp+8]
mov rcx, [rbp+18h]
mov eax, ecx
and eax, 0FFFFFFFEh
cmp eax, 2
setnz al
cmp r13d, 2
setz dl
or dl, al
jnz short loc_3F20D
mov dword ptr [rsp+78h+var_40], 0
mov qword ptr [rsp+78h+var_40+8], 3
movups xmm0, [rsp+78h+var_40]
movups [rsp+78h+var_78], xmm0
mov [rsp+78h+var_60], 2
mov [rsp+78h+var_68], 0
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov rcx, r9
xor r9d, r9d
call JS_CallInternal
mov r15, rax
mov r14, rdx
mov rcx, 0FFFFFFFF00000000h
and rcx, rax
jmp loc_3F2C6
loc_3F20D:
mov [rsp+78h+var_50], r9
mov [rsp+78h+var_48], r8
mov rdx, [rbp+10h]
lea rsi, [rsp+78h+var_54]
mov rdi, rbx
call build_arg_list
test rax, rax
jz loc_3F18A
mov rbp, rax
mov r9d, [rsp+78h+var_54]
test r13b, 1
jnz short loc_3F280
mov dword ptr [rsp+78h+var_40], 0
mov qword ptr [rsp+78h+var_40+8], 3
movups xmm0, [rsp+78h+var_40]
movups [rsp+78h+var_78], xmm0
mov [rsp+78h+var_68], rbp
mov [rsp+78h+var_60], 2
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov rcx, [rsp+78h+var_50]
mov r8, [rsp+78h+var_48]
call JS_CallInternal
jmp short loc_3F2A4
loc_3F280:
mov qword ptr [rsp+78h+var_78], rbp
mov dword ptr [rsp+78h+var_78+8], 2
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov rcx, [rsp+78h+var_50]
mov r8, [rsp+78h+var_48]
call JS_CallConstructorInternal
loc_3F2A4:
mov r15, rax
mov r14, rdx
mov edx, [rsp+78h+var_54]
mov rdi, rbx
mov rsi, rbp
call free_arg_list
mov rcx, 0FFFFFFFF00000000h
and rcx, r15
loc_3F2C6:
mov eax, r15d
or rax, rcx
mov rdx, r14
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long js_function_apply(
long long a1,
long long a2,
long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11,
long long a12,
long long a13,
int a14)
{
long long v16; // r15
__m128 v17; // xmm4
__m128 v18; // xmm5
unsigned long long v19; // rcx
long long v20; // r9
long long v21; // r8
unsigned long long v22; // rax
long long v23; // rax
__m128 v24; // xmm4
__m128 v25; // xmm5
long long v26; // rbp
unsigned long long v27; // rax
unsigned int v29; // [rsp+24h] [rbp-54h] BYREF
unsigned long long v30; // [rsp+28h] [rbp-50h]
long long v31; // [rsp+30h] [rbp-48h]
__m128 v32; // [rsp+38h] [rbp-40h]
v16 = a3;
if ( (unsigned int)check_function(a1, a2, a3) )
goto LABEL_2;
v20 = *(_QWORD *)a13;
v21 = *(_QWORD *)(a13 + 8);
if ( (*(_DWORD *)(a13 + 24) & 0xFFFFFFFE) == 2 && a14 != 2 )
{
v32.m128_i32[0] = 0;
v32.m128_u64[1] = 3LL;
v22 = JS_CallInternal(a1, a2, v16, v20, v21, 0LL, v32, a5, a6, a7, v17, v18, a10, a11, 0, 3, 0LL, 2u);
LODWORD(v16) = v22;
v19 = v22 & 0xFFFFFFFF00000000LL;
return v19 | (unsigned int)v16;
}
v30 = *(_QWORD *)a13;
v31 = v21;
v23 = build_arg_list(a1, &v29, *(_QWORD *)(a13 + 16));
if ( !v23 )
{
LABEL_2:
LODWORD(v16) = 0;
v19 = 0LL;
}
else
{
v26 = v23;
if ( (a14 & 1) != 0 )
{
v27 = JS_CallConstructorInternal(a1, a2, v16, v30, v31, v29, a4, a5, a6, a7, v24, v25, a10, a11, v23, 2);
}
else
{
v32.m128_i32[0] = 0;
v32.m128_u64[1] = 3LL;
v27 = JS_CallInternal(a1, a2, v16, v30, v31, v29, v32, a5, a6, a7, v24, v25, a10, a11, 0, 3, v23, 2u);
}
v16 = v27;
free_arg_list(a1, v26, v29);
v19 = v16 & 0xFFFFFFFF00000000LL;
}
return v19 | (unsigned int)v16;
}
| |||
29,730 | cxxopts::values::parser_tool::SplitInteger(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | zkingston[P]unknot/build_O1/_deps/cxxopts-src/include/cxxopts.hpp | inline IntegerDesc SplitInteger(const std::string &text)
{
static const std::basic_regex<char> integer_matcher(integer_pattern);
std::smatch match;
std::regex_match(text, match, integer_matcher);
if (match.length() == 0)
{
throw_or_mimic<exceptions::incorrect_argument_type>(text);
}
IntegerDesc desc;
desc.negative = match[1];
desc.base = match[2];
desc.value = match[3];
if (match.length(4) > 0)
{
desc.base = match[5];
desc.value = "0";
return desc;
}
return desc;
} | O1 | cpp | cxxopts::values::parser_tool::SplitInteger(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 $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movb 0x306e4d(%rip), %al # 0x336c80
testb %al, %al
je 0x30191
vxorps %xmm0, %xmm0, %xmm0
leaq 0x20(%rsp), %rdx
vmovups %ymm0, (%rdx)
movq (%r14), %rdi
movq 0x8(%r14), %rsi
addq %rdi, %rsi
leaq 0x306e07(%rip), %rcx # 0x336c60
xorl %r8d, %r8d
vzeroupper
callq 0x2f18d
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rdx
movq %rdx, %rax
subq %rcx, %rax
leaq -0x48(%rdx), %rsi
cmpq $0x48, %rax
movq %rcx, %rax
cmoveq %rsi, %rax
cmpq %rcx, %rdx
cmoveq %rsi, %rax
cmpb $0x1, 0x10(%rax)
jne 0x2fe99
movq (%rax), %rcx
cmpq %rcx, 0x8(%rax)
jne 0x2fea1
movq %r14, %rdi
callq 0x2f145
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
xorl %ecx, %ecx
movq %rcx, 0x8(%rbx)
movb %cl, 0x10(%rbx)
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rbx)
movq %rcx, 0x28(%rbx)
movb %cl, 0x30(%rbx)
leaq 0x50(%rbx), %rax
movq %rax, 0x40(%rbx)
movq %rcx, 0x48(%rbx)
movb %cl, 0x50(%rbx)
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rax
movabsq $-0x5555555555555555, %rbp # imm = 0xAAAAAAAAAAAAAAAB
cmpq %rax, %rdx
je 0x2ff01
movq %rax, %rcx
subq %rdx, %rcx
sarq $0x3, %rcx
imulq %rbp, %rcx
addq $-0x5, %rcx
cmpq $-0x2, %rcx
setb %cl
addq $0x18, %rdx
addq $-0x48, %rax
testb %cl, %cl
cmovneq %rdx, %rax
cmpb $0x1, 0x10(%rax)
leaq 0x10(%rsp), %r13
jne 0x2ff2e
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %r13, (%rdi)
callq 0x259d2
jmp 0x2ff40
movq %r13, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xfc80
movq (%r14), %rdi
cmpq %r13, %rdi
je 0x2ff63
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xfa70
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rax
cmpq %rax, %rcx
je 0x2ff8d
movq %rax, %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
addq $-0x6, %rdx
cmpq $-0x3, %rdx
setb %dl
jmp 0x2ff8f
xorl %edx, %edx
addq $0x30, %rcx
addq $-0x48, %rax
testb %dl, %dl
cmovneq %rcx, %rax
cmpb $0x1, 0x10(%rax)
jne 0x2ffb7
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %r13, (%rdi)
callq 0x259d2
jmp 0x2ffc9
movq %r13, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x20(%rbx), %r14
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xfc80
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x2fff0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xfa70
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rax
cmpq %rax, %rcx
je 0x3001a
movq %rax, %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
addq $-0x7, %rdx
cmpq $-0x4, %rdx
setb %dl
jmp 0x3001c
xorl %edx, %edx
addq $0x48, %rcx
addq $-0x48, %rax
testb %dl, %dl
cmovneq %rcx, %rax
cmpb $0x1, 0x10(%rax)
jne 0x30044
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %r13, (%rdi)
callq 0x259d2
jmp 0x30056
movq %r13, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x40(%rbx), %r15
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xfc80
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x3007e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xfa70
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
cmpq %rcx, %rax
je 0x300a9
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
addq $-0x8, %rdx
cmpq $-0x5, %rdx
setb %dil
jmp 0x300ab
xorl %edi, %edi
leaq 0x60(%rax), %rsi
leaq -0x48(%rcx), %rdx
testb %dil, %dil
cmoveq %rdx, %rsi
cmpb $0x1, 0x10(%rsi)
jne 0x30168
movq 0x8(%rsi), %rdi
subq (%rsi), %rdi
testq %rdi, %rdi
jle 0x30168
cmpq %rcx, %rax
je 0x300f1
subq %rax, %rcx
sarq $0x3, %rcx
imulq %rbp, %rcx
addq $-0x9, %rcx
cmpq $-0x6, %rcx
setb %cl
jmp 0x300f3
xorl %ecx, %ecx
addq $0x78, %rax
testb %cl, %cl
cmovneq %rax, %rdx
cmpb $0x1, 0x10(%rdx)
jne 0x30117
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
movq %rsp, %rdi
movq %r13, (%rdi)
callq 0x259d2
jmp 0x30129
movq %r13, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq %rsp, %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0xfc80
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x3014d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xfa70
movq 0x48(%rbx), %rdx
leaq 0x2807fc(%rip), %rcx # 0x2b0954
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0xffa0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x3017f
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0xfa70
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x306ae8(%rip), %rdi # 0x336c80
callq 0x10230
testl %eax, %eax
je 0x2fe3b
leaq 0x306ab4(%rip), %rdi # 0x336c60
leaq 0x2602dc(%rip), %rsi # 0x29048f
movl $0x10, %edx
callq 0x158d6
leaq -0x1a884(%rip), %rdi # 0x15940
leaq 0x306a95(%rip), %rsi # 0x336c60
leaq 0x305806(%rip), %rdx # 0x3359d8
callq 0xf910
leaq 0x306aa2(%rip), %rdi # 0x336c80
callq 0xf680
jmp 0x2fe3b
movq %rax, %r14
leaq 0x306a8e(%rip), %rdi # 0x336c80
callq 0xf660
jmp 0x30228
jmp 0x30201
jmp 0x30201
jmp 0x30201
jmp 0x30201
movq %rax, %r14
movq %rbx, %rdi
callq 0x30230
jmp 0x30211
movq %rax, %r14
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x30228
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0xfa70
movq %r14, %rdi
callq 0x101c0
| _ZN7cxxopts6values11parser_tool12SplitIntegerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r14, rsi
mov rbx, rdi
mov al, cs:_ZGVZN7cxxopts6values11parser_tool12SplitIntegerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE15integer_matcherB5cxx11; `guard variable for'cxxopts::values::parser_tool::SplitInteger(std::string const&)::integer_matcher
test al, al
jz loc_30191
loc_2FE3B:
vxorps xmm0, xmm0, xmm0
lea rdx, [rsp+78h+var_58]
vmovups ymmword ptr [rdx], ymm0
mov rdi, [r14]
mov rsi, [r14+8]
add rsi, rdi
lea rcx, _ZZN7cxxopts6values11parser_tool12SplitIntegerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE15integer_matcherB5cxx11; cxxopts::values::parser_tool::SplitInteger(std::string const&)::integer_matcher
xor r8d, r8d
vzeroupper
call _ZNSt8__detail17__regex_algo_implIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS5_9sub_matchISB_EEEcNS5_12regex_traitsIcEELNS_20_RegexExecutorPolicyE0ELb1EEEbT_SI_RNS5_13match_resultsISI_T0_EERKNS5_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE; std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,true>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> &,std::basic_regex<char,std::regex_traits<char>> const&,std::regex_constants::match_flag_type)
mov rcx, [rsp+78h+var_58]
mov rdx, [rsp+78h+var_50]
mov rax, rdx
sub rax, rcx
lea rsi, [rdx-48h]
cmp rax, 48h ; 'H'
mov rax, rcx
cmovz rax, rsi
cmp rdx, rcx
cmovz rax, rsi
cmp byte ptr [rax+10h], 1
jnz short loc_2FE99
mov rcx, [rax]
cmp [rax+8], rcx
jnz short loc_2FEA1
loc_2FE99:
mov rdi, r14; int
call _ZN7cxxopts14throw_or_mimicINS_10exceptions23incorrect_argument_typeEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; cxxopts::throw_or_mimic<cxxopts::exceptions::incorrect_argument_type>(std::string const&)
loc_2FEA1:
lea rax, [rbx+10h]
mov [rbx], rax
xor ecx, ecx
mov [rbx+8], rcx
mov [rbx+10h], cl
lea rax, [rbx+30h]
mov [rbx+20h], rax
mov [rbx+28h], rcx
mov [rbx+30h], cl
lea rax, [rbx+50h]
mov [rbx+40h], rax
mov [rbx+48h], rcx
mov [rbx+50h], cl
mov rdx, [rsp+78h+var_58]
mov rax, [rsp+78h+var_50]
mov rbp, 0AAAAAAAAAAAAAAABh
cmp rdx, rax
jz short loc_2FF01
mov rcx, rax
sub rcx, rdx
sar rcx, 3
imul rcx, rbp
add rcx, 0FFFFFFFFFFFFFFFBh
cmp rcx, 0FFFFFFFFFFFFFFFEh
setb cl
loc_2FF01:
add rdx, 18h
add rax, 0FFFFFFFFFFFFFFB8h
test cl, cl
cmovnz rax, rdx
cmp byte ptr [rax+10h], 1
lea r13, [rsp+78h+var_68]
jnz short loc_2FF2E
mov rsi, [rax]
mov rdx, [rax+8]
mov rdi, rsp
mov [rdi], r13
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
jmp short loc_2FF40
loc_2FF2E:
mov [rsp+78h+var_78], r13
mov [rsp+78h+var_70], 0
mov byte ptr [rsp+78h+var_68], 0
loc_2FF40:
mov r14, rsp
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r14]; void *
cmp rdi, r13
jz short loc_2FF63
mov rsi, [rsp+78h+var_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2FF63:
mov rcx, [rsp+78h+var_58]
mov rax, [rsp+78h+var_50]
cmp rcx, rax
jz short loc_2FF8D
mov rdx, rax
sub rdx, rcx
sar rdx, 3
imul rdx, rbp
add rdx, 0FFFFFFFFFFFFFFFAh
cmp rdx, 0FFFFFFFFFFFFFFFDh
setb dl
jmp short loc_2FF8F
loc_2FF8D:
xor edx, edx
loc_2FF8F:
add rcx, 30h ; '0'
add rax, 0FFFFFFFFFFFFFFB8h
test dl, dl
cmovnz rax, rcx
cmp byte ptr [rax+10h], 1
jnz short loc_2FFB7
mov rsi, [rax]
mov rdx, [rax+8]
mov rdi, rsp
mov [rdi], r13
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
jmp short loc_2FFC9
loc_2FFB7:
mov [rsp+78h+var_78], r13
mov [rsp+78h+var_70], 0
mov byte ptr [rsp+78h+var_68], 0
loc_2FFC9:
lea r14, [rbx+20h]
mov r15, rsp
mov rdi, r14
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r15]; void *
cmp rdi, r13
jz short loc_2FFF0
mov rsi, [rsp+78h+var_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2FFF0:
mov rcx, [rsp+78h+var_58]
mov rax, [rsp+78h+var_50]
cmp rcx, rax
jz short loc_3001A
mov rdx, rax
loc_30002:
sub rdx, rcx
sar rdx, 3
imul rdx, rbp
add rdx, 0FFFFFFFFFFFFFFF9h
cmp rdx, 0FFFFFFFFFFFFFFFCh
setb dl
jmp short loc_3001C
loc_3001A:
xor edx, edx
loc_3001C:
add rcx, 48h ; 'H'
add rax, 0FFFFFFFFFFFFFFB8h
test dl, dl
cmovnz rax, rcx
cmp byte ptr [rax+10h], 1
jnz short loc_30044
mov rsi, [rax]
mov rdx, [rax+8]
mov rdi, rsp
mov [rdi], r13
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
jmp short loc_30056
loc_30044:
mov [rsp+78h+var_78], r13
mov [rsp+78h+var_70], 0
mov byte ptr [rsp+78h+var_68], 0
loc_30056:
lea r15, [rbx+40h]
mov r12, rsp
mov rdi, r15
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r12]; void *
cmp rdi, r13
jz short loc_3007E
mov rsi, [rsp+78h+var_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3007E:
mov rax, [rsp+78h+var_58]
mov rcx, [rsp+78h+var_50]
cmp rax, rcx
jz short loc_300A9
mov rdx, rcx
sub rdx, rax
sar rdx, 3
imul rdx, rbp
add rdx, 0FFFFFFFFFFFFFFF8h
cmp rdx, 0FFFFFFFFFFFFFFFBh
setb dil
jmp short loc_300AB
loc_300A9:
xor edi, edi
loc_300AB:
lea rsi, [rax+60h]
lea rdx, [rcx-48h]
test dil, dil
cmovz rsi, rdx
cmp byte ptr [rsi+10h], 1
jnz loc_30168
mov rdi, [rsi+8]
sub rdi, [rsi]
test rdi, rdi
jle loc_30168
cmp rax, rcx
jz short loc_300F1
sub rcx, rax
sar rcx, 3
imul rcx, rbp
add rcx, 0FFFFFFFFFFFFFFF7h
cmp rcx, 0FFFFFFFFFFFFFFFAh
setb cl
jmp short loc_300F3
loc_300F1:
xor ecx, ecx
loc_300F3:
add rax, 78h ; 'x'
test cl, cl
cmovnz rdx, rax
cmp byte ptr [rdx+10h], 1
jnz short loc_30117
mov rsi, [rdx]
mov rdx, [rdx+8]
mov rdi, rsp
mov [rdi], r13
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
jmp short loc_30129
loc_30117:
mov [rsp+78h+var_78], r13
mov [rsp+78h+var_70], 0
mov byte ptr [rsp+78h+var_68], 0
loc_30129:
mov r12, rsp
mov rdi, r14
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r12]; void *
cmp rdi, r13
jz short loc_3014D
mov rsi, [rsp+78h+var_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3014D:
mov rdx, [rbx+48h]
lea rcx, aLibopenglSo0+0Dh; "0"
mov r8d, 1
mov rdi, r15
xor esi, esi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
loc_30168:
mov rdi, [rsp+78h+var_58]; void *
test rdi, rdi
jz short loc_3017F
mov rsi, [rsp+78h+var_48]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3017F:
mov rax, rbx
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_30191:
lea rdi, _ZGVZN7cxxopts6values11parser_tool12SplitIntegerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE15integer_matcherB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_2FE3B
lea rdi, _ZZN7cxxopts6values11parser_tool12SplitIntegerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE15integer_matcherB5cxx11; cxxopts::values::parser_tool::SplitInteger(std::string const&)::integer_matcher
lea rsi, a0x09aZaZ0x0; "(-)?(0x)?([0-9a-zA-Z]+)|((0x)?0)"
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN7cxxopts6values11parser_tool12SplitIntegerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE15integer_matcherB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN7cxxopts6values11parser_tool12SplitIntegerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE15integer_matcherB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_2FE3B
mov r14, rax
lea rdi, _ZGVZN7cxxopts6values11parser_tool12SplitIntegerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE15integer_matcherB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_30228
jmp short loc_30201
jmp short loc_30201
jmp short loc_30201
jmp short $+2
loc_30201:
mov r14, rax
mov rdi, rbx; this
call _ZN7cxxopts6values11parser_tool11IntegerDescD2Ev; cxxopts::values::parser_tool::IntegerDesc::~IntegerDesc()
jmp short loc_30211
mov r14, rax
loc_30211:
mov rdi, [rsp+arg_18]; void *
test rdi, rdi
jz short loc_30228
mov rsi, [rsp+arg_28]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_30228:
mov rdi, r14
call __Unwind_Resume
| long long cxxopts::values::parser_tool::SplitInteger(long long a1, long long *a2, __m128 _XMM0)
{
_BYTE *v7; // rax
bool v8; // cl
char *v9; // rax
_BYTE *v10; // rsi
long long v11; // rdx
bool v12; // dl
char *v13; // rax
_BYTE *v14; // rsi
long long v15; // rdx
bool v16; // dl
char *v17; // rax
_BYTE *v18; // rsi
long long v19; // rdx
bool v20; // di
char *v21; // rsi
char *v22; // rdx
_BYTE *v24; // rsi
long long v25; // rdx
_QWORD *v27; // [rsp+0h] [rbp-78h] BYREF
long long v28; // [rsp+8h] [rbp-70h]
_QWORD v29[2]; // [rsp+10h] [rbp-68h] BYREF
void *v30; // [rsp+20h] [rbp-58h] BYREF
_BYTE *v31; // [rsp+28h] [rbp-50h]
long long v32; // [rsp+30h] [rbp-48h]
if ( !(_BYTE)`guard variable for'cxxopts::values::parser_tool::SplitInteger(std::string const&)::integer_matcher[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'cxxopts::values::parser_tool::SplitInteger(std::string const&)::integer_matcher[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&cxxopts::values::parser_tool::SplitInteger(std::string const&)::integer_matcher[abi:cxx11],
(long long)"(-)?(0x)?([0-9a-zA-Z]+)|((0x)?0)",
0x10u,
_XMM0);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&cxxopts::values::parser_tool::SplitInteger(std::string const&)::integer_matcher[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'cxxopts::values::parser_tool::SplitInteger(std::string const&)::integer_matcher[abi:cxx11]);
}
__asm { vxorps xmm0, xmm0, xmm0 }
_RDX = &v30;
__asm
{
vmovups ymmword ptr [rdx], ymm0
vzeroupper
}
std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,true>(
*a2,
(void *)(*a2 + a2[1]),
(long long)&v30,
(long long)&cxxopts::values::parser_tool::SplitInteger(std::string const&)::integer_matcher[abi:cxx11],
0,
_XMM0);
v7 = v30;
if ( v31 - (_BYTE *)v30 == 72 )
v7 = v31 - 72;
if ( v31 == v30 )
v7 = v31 - 72;
if ( v7[16] != 1 || *((_QWORD *)v7 + 1) == *(_QWORD *)v7 )
cxxopts::throw_or_mimic<cxxopts::exceptions::incorrect_argument_type>((int)a2);
*(_QWORD *)a1 = a1 + 16;
v8 = 0;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 32) = a1 + 48;
*(_QWORD *)(a1 + 40) = 0LL;
*(_BYTE *)(a1 + 48) = 0;
*(_QWORD *)(a1 + 64) = a1 + 80;
*(_QWORD *)(a1 + 72) = 0LL;
*(_BYTE *)(a1 + 80) = 0;
if ( v30 != v31 )
v8 = 0xAAAAAAAAAAAAAAABLL * ((v31 - (_BYTE *)v30) >> 3) - 5 < 0xFFFFFFFFFFFFFFFELL;
v9 = v31 - 72;
if ( v8 )
v9 = (char *)v30 + 24;
if ( v9[16] == 1 )
{
v10 = *(_BYTE **)v9;
v11 = *((_QWORD *)v9 + 1);
v27 = v29;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(&v27, v10, v11);
}
else
{
v27 = v29;
v28 = 0LL;
LOBYTE(v29[0]) = 0;
}
std::string::operator=(a1, &v27);
if ( v27 != v29 )
operator delete(v27, v29[0] + 1LL);
v12 = v30 != v31 && 0xAAAAAAAAAAAAAAABLL * ((v31 - (_BYTE *)v30) >> 3) - 6 < 0xFFFFFFFFFFFFFFFDLL;
v13 = v31 - 72;
if ( v12 )
v13 = (char *)v30 + 48;
if ( v13[16] == 1 )
{
v14 = *(_BYTE **)v13;
v15 = *((_QWORD *)v13 + 1);
v27 = v29;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(&v27, v14, v15);
}
else
{
v27 = v29;
v28 = 0LL;
LOBYTE(v29[0]) = 0;
}
std::string::operator=(a1 + 32, &v27);
if ( v27 != v29 )
operator delete(v27, v29[0] + 1LL);
v16 = v30 != v31 && 0xAAAAAAAAAAAAAAABLL * ((v31 - (_BYTE *)v30) >> 3) - 7 < 0xFFFFFFFFFFFFFFFCLL;
v17 = v31 - 72;
if ( v16 )
v17 = (char *)v30 + 72;
if ( v17[16] == 1 )
{
v18 = *(_BYTE **)v17;
v19 = *((_QWORD *)v17 + 1);
v27 = v29;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(&v27, v18, v19);
}
else
{
v27 = v29;
v28 = 0LL;
LOBYTE(v29[0]) = 0;
}
std::string::operator=(a1 + 64, &v27);
if ( v27 != v29 )
operator delete(v27, v29[0] + 1LL);
v20 = v30 != v31 && 0xAAAAAAAAAAAAAAABLL * ((v31 - (_BYTE *)v30) >> 3) - 8 < 0xFFFFFFFFFFFFFFFBLL;
v21 = (char *)v30 + 96;
v22 = v31 - 72;
if ( !v20 )
v21 = v31 - 72;
if ( v21[16] == 1 && (long long)(*((_QWORD *)v21 + 1) - *(_QWORD *)v21) > 0 )
{
if ( v30 != v31 && 0xAAAAAAAAAAAAAAABLL * ((v31 - (_BYTE *)v30) >> 3) - 9 < 0xFFFFFFFFFFFFFFFALL )
v22 = (char *)v30 + 120;
if ( v22[16] == 1 )
{
v24 = *(_BYTE **)v22;
v25 = *((_QWORD *)v22 + 1);
v27 = v29;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(&v27, v24, v25);
}
else
{
v27 = v29;
v28 = 0LL;
LOBYTE(v29[0]) = 0;
}
std::string::operator=(a1 + 32, &v27);
if ( v27 != v29 )
operator delete(v27, v29[0] + 1LL);
std::string::_M_replace(a1 + 64, 0LL, *(_QWORD *)(a1 + 72), "0", 1LL);
}
if ( v30 )
operator delete(v30, v32 - (_QWORD)v30);
return a1;
}
| SplitInteger:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R14,RSI
MOV RBX,RDI
MOV AL,byte ptr [0x00436c80]
TEST AL,AL
JZ 0x00130191
LAB_0012fe3b:
VXORPS XMM0,XMM0,XMM0
LEA RDX,[RSP + 0x20]
VMOVUPS ymmword ptr [RDX],YMM0
MOV RDI,qword ptr [R14]
MOV RSI,qword ptr [R14 + 0x8]
ADD RSI,RDI
LAB_0012fe52:
LEA RCX,[0x436c60]
XOR R8D,R8D
VZEROUPPER
CALL 0x0012f18d
MOV RCX,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
MOV RAX,RDX
SUB RAX,RCX
LEA RSI,[RDX + -0x48]
CMP RAX,0x48
MOV RAX,RCX
CMOVZ RAX,RSI
CMP RDX,RCX
CMOVZ RAX,RSI
CMP byte ptr [RAX + 0x10],0x1
JNZ 0x0012fe99
MOV RCX,qword ptr [RAX]
CMP qword ptr [RAX + 0x8],RCX
JNZ 0x0012fea1
LAB_0012fe99:
MOV RDI,R14
CALL 0x0012f145
LAB_0012fea1:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
XOR ECX,ECX
MOV qword ptr [RBX + 0x8],RCX
MOV byte ptr [RBX + 0x10],CL
LEA RAX,[RBX + 0x30]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x28],RCX
MOV byte ptr [RBX + 0x30],CL
LEA RAX,[RBX + 0x50]
MOV qword ptr [RBX + 0x40],RAX
MOV qword ptr [RBX + 0x48],RCX
MOV byte ptr [RBX + 0x50],CL
MOV RDX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x28]
MOV RBP,-0x5555555555555555
CMP RDX,RAX
JZ 0x0012ff01
MOV RCX,RAX
SUB RCX,RDX
SAR RCX,0x3
IMUL RCX,RBP
ADD RCX,-0x5
CMP RCX,-0x2
SETC CL
LAB_0012ff01:
ADD RDX,0x18
ADD RAX,-0x48
TEST CL,CL
CMOVNZ RAX,RDX
CMP byte ptr [RAX + 0x10],0x1
LEA R13,[RSP + 0x10]
JNZ 0x0012ff2e
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
MOV RDI,RSP
MOV qword ptr [RDI],R13
LAB_0012ff27:
CALL 0x001259d2
JMP 0x0012ff40
LAB_0012ff2e:
MOV qword ptr [RSP],R13
MOV qword ptr [RSP + 0x8],0x0
MOV byte ptr [RSP + 0x10],0x0
LAB_0012ff40:
MOV R14,RSP
MOV RDI,RBX
MOV RSI,R14
CALL 0x0010fc80
MOV RDI,qword ptr [R14]
CMP RDI,R13
JZ 0x0012ff63
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0010fa70
LAB_0012ff63:
MOV RCX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x28]
CMP RCX,RAX
JZ 0x0012ff8d
MOV RDX,RAX
SUB RDX,RCX
SAR RDX,0x3
IMUL RDX,RBP
ADD RDX,-0x6
CMP RDX,-0x3
SETC DL
JMP 0x0012ff8f
LAB_0012ff8d:
XOR EDX,EDX
LAB_0012ff8f:
ADD RCX,0x30
ADD RAX,-0x48
TEST DL,DL
CMOVNZ RAX,RCX
CMP byte ptr [RAX + 0x10],0x1
JNZ 0x0012ffb7
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
MOV RDI,RSP
MOV qword ptr [RDI],R13
LAB_0012ffb0:
CALL 0x001259d2
JMP 0x0012ffc9
LAB_0012ffb7:
MOV qword ptr [RSP],R13
MOV qword ptr [RSP + 0x8],0x0
MOV byte ptr [RSP + 0x10],0x0
LAB_0012ffc9:
LEA R14,[RBX + 0x20]
MOV R15,RSP
MOV RDI,R14
MOV RSI,R15
CALL 0x0010fc80
MOV RDI,qword ptr [R15]
CMP RDI,R13
JZ 0x0012fff0
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0010fa70
LAB_0012fff0:
MOV RCX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x28]
CMP RCX,RAX
JZ 0x0013001a
MOV RDX,RAX
SUB RDX,RCX
SAR RDX,0x3
IMUL RDX,RBP
ADD RDX,-0x7
CMP RDX,-0x4
SETC DL
JMP 0x0013001c
LAB_0013001a:
XOR EDX,EDX
LAB_0013001c:
ADD RCX,0x48
ADD RAX,-0x48
TEST DL,DL
CMOVNZ RAX,RCX
CMP byte ptr [RAX + 0x10],0x1
JNZ 0x00130044
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
MOV RDI,RSP
MOV qword ptr [RDI],R13
LAB_0013003d:
CALL 0x001259d2
JMP 0x00130056
LAB_00130044:
MOV qword ptr [RSP],R13
MOV qword ptr [RSP + 0x8],0x0
MOV byte ptr [RSP + 0x10],0x0
LAB_00130056:
LEA R15,[RBX + 0x40]
MOV R12,RSP
MOV RDI,R15
MOV RSI,R12
CALL 0x0010fc80
MOV RDI,qword ptr [R12]
CMP RDI,R13
JZ 0x0013007e
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0010fa70
LAB_0013007e:
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x28]
CMP RAX,RCX
JZ 0x001300a9
MOV RDX,RCX
SUB RDX,RAX
SAR RDX,0x3
IMUL RDX,RBP
ADD RDX,-0x8
CMP RDX,-0x5
SETC DIL
JMP 0x001300ab
LAB_001300a9:
XOR EDI,EDI
LAB_001300ab:
LEA RSI,[RAX + 0x60]
LEA RDX,[RCX + -0x48]
TEST DIL,DIL
CMOVZ RSI,RDX
CMP byte ptr [RSI + 0x10],0x1
JNZ 0x00130168
MOV RDI,qword ptr [RSI + 0x8]
SUB RDI,qword ptr [RSI]
TEST RDI,RDI
JLE 0x00130168
CMP RAX,RCX
JZ 0x001300f1
SUB RCX,RAX
SAR RCX,0x3
IMUL RCX,RBP
ADD RCX,-0x9
CMP RCX,-0x6
SETC CL
JMP 0x001300f3
LAB_001300f1:
XOR ECX,ECX
LAB_001300f3:
ADD RAX,0x78
TEST CL,CL
CMOVNZ RDX,RAX
CMP byte ptr [RDX + 0x10],0x1
JNZ 0x00130117
MOV RSI,qword ptr [RDX]
MOV RDX,qword ptr [RDX + 0x8]
MOV RDI,RSP
MOV qword ptr [RDI],R13
LAB_00130110:
CALL 0x001259d2
JMP 0x00130129
LAB_00130117:
MOV qword ptr [RSP],R13
MOV qword ptr [RSP + 0x8],0x0
MOV byte ptr [RSP + 0x10],0x0
LAB_00130129:
MOV R12,RSP
MOV RDI,R14
MOV RSI,R12
CALL 0x0010fc80
MOV RDI,qword ptr [R12]
CMP RDI,R13
JZ 0x0013014d
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0010fa70
LAB_0013014d:
MOV RDX,qword ptr [RBX + 0x48]
LAB_00130151:
LEA RCX,[0x3b0954]
MOV R8D,0x1
MOV RDI,R15
XOR ESI,ESI
CALL 0x0010ffa0
LAB_00130168:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x0013017f
MOV RSI,qword ptr [RSP + 0x30]
SUB RSI,RDI
CALL 0x0010fa70
LAB_0013017f:
MOV RAX,RBX
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00130191:
LEA RDI,[0x436c80]
CALL 0x00110230
TEST EAX,EAX
JZ 0x0012fe3b
LAB_001301a5:
LEA RDI,[0x436c60]
LEA RSI,[0x39048f]
MOV EDX,0x10
CALL 0x001158d6
LAB_001301bd:
LEA RDI,[0x115940]
LEA RSI,[0x436c60]
LEA RDX,[0x4359d8]
CALL 0x0010f910
LEA RDI,[0x436c80]
CALL 0x0010f680
JMP 0x0012fe3b
|
/* cxxopts::values::parser_tool::SplitInteger(std::__cxx11::string const&) */
parser_tool * __thiscall
cxxopts::values::parser_tool::SplitInteger(parser_tool *this,string *param_1)
{
int iVar1;
long *plVar2;
bool bVar3;
int1 *local_78;
int8 local_70;
int1 local_68;
int7 uStack_67;
long *local_58;
long *plStack_50;
long lStack_48;
int8 uStack_40;
if (SplitInteger(std::__cxx11::string_const&)::integer_matcher_abi_cxx11_ == '\0') {
iVar1 = __cxa_guard_acquire(&SplitInteger(std::__cxx11::string_const&)::
integer_matcher_abi_cxx11_);
if (iVar1 != 0) {
/* try { // try from 001301a5 to 001301bc has its CatchHandler @ 001301e8 */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
SplitInteger(std::__cxx11::string_const&)::integer_matcher_abi_cxx11_,
"(-)?(0x)?([0-9a-zA-Z]+)|((0x)?0)",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
SplitInteger(std::__cxx11::string_const&)::integer_matcher_abi_cxx11_,
&__dso_handle);
__cxa_guard_release(&SplitInteger(std::__cxx11::string_const&)::integer_matcher_abi_cxx11_);
}
}
local_58 = (long *)0x0;
plStack_50 = (long *)0x0;
lStack_48 = 0;
uStack_40 = 0;
/* try { // try from 0012fe52 to 0012fea0 has its CatchHandler @ 0013020e */
std::__detail::
__regex_algo_impl<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>,char,std::__cxx11::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,true>
(*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1,&local_58,
SplitInteger(std::__cxx11::string_const&)::integer_matcher_abi_cxx11_,0);
plVar2 = local_58;
if ((long)plStack_50 - (long)local_58 == 0x48) {
plVar2 = plStack_50 + -9;
}
if (plStack_50 == local_58) {
plVar2 = plStack_50 + -9;
}
if (((char)plVar2[2] != '\x01') || (plVar2[1] == *plVar2)) {
throw_or_mimic<cxxopts::exceptions::incorrect_argument_type>(param_1);
}
*(parser_tool **)this = this + 0x10;
bVar3 = false;
*(int8 *)(this + 8) = 0;
this[0x10] = (parser_tool)0x0;
*(parser_tool **)(this + 0x20) = this + 0x30;
*(int8 *)(this + 0x28) = 0;
this[0x30] = (parser_tool)0x0;
*(parser_tool **)(this + 0x40) = this + 0x50;
*(int8 *)(this + 0x48) = 0;
this[0x50] = (parser_tool)0x0;
if (local_58 != plStack_50) {
bVar3 = ((long)plStack_50 - (long)local_58 >> 3) * -0x5555555555555555 - 5U < 0xfffffffffffffffe
;
}
plVar2 = plStack_50 + -9;
if (bVar3) {
plVar2 = local_58 + 3;
}
local_78 = &local_68;
if ((char)plVar2[2] == '\x01') {
/* try { // try from 0012ff27 to 0012ff2b has its CatchHandler @ 00130201 */
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(&local_78,*plVar2,plVar2[1]);
}
else {
local_70 = 0;
local_68 = 0;
}
std::__cxx11::string::operator=((string *)this,(string *)&local_78);
if (local_78 != &local_68) {
operator_delete(local_78,CONCAT71(uStack_67,local_68) + 1);
}
if (local_58 == plStack_50) {
bVar3 = false;
}
else {
bVar3 = ((long)plStack_50 - (long)local_58 >> 3) * -0x5555555555555555 - 6U < 0xfffffffffffffffd
;
}
plVar2 = plStack_50 + -9;
if (bVar3) {
plVar2 = local_58 + 6;
}
if ((char)plVar2[2] == '\x01') {
local_78 = &local_68;
/* try { // try from 0012ffb0 to 0012ffb4 has its CatchHandler @ 001301ff */
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(&local_78,*plVar2,plVar2[1]);
}
else {
local_70 = 0;
local_68 = 0;
local_78 = &local_68;
}
std::__cxx11::string::operator=((string *)(this + 0x20),(string *)&local_78);
if (local_78 != &local_68) {
operator_delete(local_78,CONCAT71(uStack_67,local_68) + 1);
}
if (local_58 == plStack_50) {
bVar3 = false;
}
else {
bVar3 = ((long)plStack_50 - (long)local_58 >> 3) * -0x5555555555555555 - 7U < 0xfffffffffffffffc
;
}
plVar2 = plStack_50 + -9;
if (bVar3) {
plVar2 = local_58 + 9;
}
if ((char)plVar2[2] == '\x01') {
local_78 = &local_68;
/* try { // try from 0013003d to 00130041 has its CatchHandler @ 001301fd */
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(&local_78,*plVar2,plVar2[1]);
}
else {
local_70 = 0;
local_68 = 0;
local_78 = &local_68;
}
std::__cxx11::string::operator=((string *)(this + 0x40),(string *)&local_78);
if (local_78 != &local_68) {
operator_delete(local_78,CONCAT71(uStack_67,local_68) + 1);
}
if (local_58 == plStack_50) {
bVar3 = false;
}
else {
bVar3 = ((long)plStack_50 - (long)local_58 >> 3) * -0x5555555555555555 - 8U < 0xfffffffffffffffb
;
}
plVar2 = local_58 + 0xc;
if (!bVar3) {
plVar2 = plStack_50 + -9;
}
if (((char)plVar2[2] == '\x01') && (plVar2[1] != *plVar2 && -1 < plVar2[1] - *plVar2)) {
if (local_58 == plStack_50) {
bVar3 = false;
}
else {
bVar3 = ((long)plStack_50 - (long)local_58 >> 3) * -0x5555555555555555 - 9U <
0xfffffffffffffffa;
}
plVar2 = plStack_50 + -9;
if (bVar3) {
plVar2 = local_58 + 0xf;
}
if ((char)plVar2[2] == '\x01') {
local_78 = &local_68;
/* try { // try from 00130110 to 00130114 has its CatchHandler @ 001301f9 */
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(&local_78,*plVar2,plVar2[1]);
}
else {
local_70 = 0;
local_68 = 0;
local_78 = &local_68;
}
std::__cxx11::string::operator=((string *)(this + 0x20),(string *)&local_78);
if (local_78 != &local_68) {
operator_delete(local_78,CONCAT71(uStack_67,local_68) + 1);
}
/* try { // try from 00130151 to 00130167 has its CatchHandler @ 001301fb */
std::__cxx11::string::_M_replace((ulong)(this + 0x40),0,*(char **)(this + 0x48),0x3b0954);
}
if (local_58 != (long *)0x0) {
operator_delete(local_58,lStack_48 - (long)local_58);
}
return this;
}
| |
29,731 | mi_calc_blob_length | eloqsql/storage/myisam/mi_dynrec.c | ulong _mi_calc_blob_length(uint length, const uchar *pos)
{
switch (length) {
case 1:
return (uint) (uchar) *pos;
case 2:
return (uint) uint2korr(pos);
case 3:
return uint3korr(pos);
case 4:
return uint4korr(pos);
default:
break;
}
return 0; /* Impossible */
} | O0 | c | mi_calc_blob_length:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movl -0xc(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x20(%rbp)
subl $0x3, %eax
ja 0xb00c2
movq -0x20(%rbp), %rax
leaq 0xb56a6(%rip), %rcx # 0x16570c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %eax
movq %rax, -0x8(%rbp)
jmp 0xb00cc
movq -0x18(%rbp), %rax
movzwl (%rax), %eax
movl %eax, %eax
movq %rax, -0x8(%rbp)
jmp 0xb00cc
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
movq %rax, -0x8(%rbp)
jmp 0xb00cc
movq -0x18(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x8(%rbp)
jmp 0xb00cc
jmp 0xb00c4
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _mi_calc_blob_length:
push rbp
mov rbp, rsp
mov [rbp+var_C], edi
mov [rbp+var_18], rsi
mov eax, [rbp+var_C]
dec eax; switch 4 cases
mov ecx, eax
mov [rbp+var_20], rcx
sub eax, 3
ja short def_B006D; jumptable 00000000000B006D default case
mov rax, [rbp+var_20]
lea rcx, jpt_B006D
movsxd rax, ds:(jpt_B006D - 16570Ch)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_B006F:
mov rax, [rbp+var_18]; jumptable 00000000000B006D case 1
movzx eax, byte ptr [rax]
mov eax, eax
mov [rbp+var_8], rax
jmp short loc_B00CC
loc_B007E:
mov rax, [rbp+var_18]; jumptable 00000000000B006D case 2
movzx eax, word ptr [rax]
mov eax, eax
mov [rbp+var_8], rax
jmp short loc_B00CC
loc_B008D:
mov rax, [rbp+var_18]; jumptable 00000000000B006D case 3
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
mov [rbp+var_8], rax
jmp short loc_B00CC
loc_B00B6:
mov rax, [rbp+var_18]; jumptable 00000000000B006D case 4
mov eax, [rax]
mov [rbp+var_8], rax
jmp short loc_B00CC
def_B006D:
jmp short $+2; jumptable 00000000000B006D default case
loc_B00C4:
mov [rbp+var_8], 0
loc_B00CC:
mov rax, [rbp+var_8]
pop rbp
retn
| long long mi_calc_blob_length(int a1, unsigned __int8 *a2)
{
long long v3; // [rsp+18h] [rbp-8h]
switch ( a1 )
{
case 1:
v3 = *a2;
break;
case 2:
v3 = *(unsigned __int16 *)a2;
break;
case 3:
v3 = (a2[2] << 16) | (unsigned int)*(unsigned __int16 *)a2;
break;
case 4:
v3 = *(unsigned int *)a2;
break;
default:
v3 = 0LL;
break;
}
return v3;
}
| _mi_calc_blob_length:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0xc],EDI
MOV qword ptr [RBP + -0x18],RSI
MOV EAX,dword ptr [RBP + -0xc]
DEC EAX
MOV ECX,EAX
MOV qword ptr [RBP + -0x20],RCX
SUB EAX,0x3
JA 0x001b00c2
MOV RAX,qword ptr [RBP + -0x20]
LEA RCX,[0x26570c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV EAX,EAX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001b00cc
caseD_2:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX]
MOV EAX,EAX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001b00cc
caseD_3:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001b00cc
caseD_4:
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001b00cc
default:
JMP 0x001b00c4
LAB_001b00c4:
MOV qword ptr [RBP + -0x8],0x0
LAB_001b00cc:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
uint _mi_calc_blob_length(int4 param_1,uint *param_2)
{
uint uVar1;
switch(param_1) {
case 1:
uVar1 = (uint)(byte)*param_2;
break;
case 2:
uVar1 = (uint)(ushort)*param_2;
break;
case 3:
uVar1 = (uint)(uint3)*param_2;
break;
case 4:
uVar1 = *param_2;
break;
default:
uVar1 = 0;
}
return uVar1;
}
| |
29,732 | mi_calc_blob_length | eloqsql/storage/myisam/mi_dynrec.c | ulong _mi_calc_blob_length(uint length, const uchar *pos)
{
switch (length) {
case 1:
return (uint) (uchar) *pos;
case 2:
return (uint) uint2korr(pos);
case 3:
return uint3korr(pos);
case 4:
return uint4korr(pos);
default:
break;
}
return 0; /* Impossible */
} | O3 | c | mi_calc_blob_length:
pushq %rbp
movq %rsp, %rbp
decl %edi
cmpl $0x3, %edi
ja 0x7dea5
leaq 0x6cc91(%rip), %rax # 0xeab10
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movzbl (%rsi), %eax
jmp 0x7dea7
movzwl (%rsi), %ecx
movzbl 0x2(%rsi), %eax
shll $0x10, %eax
orq %rcx, %rax
jmp 0x7dea7
movl (%rsi), %eax
jmp 0x7dea7
movzwl (%rsi), %eax
jmp 0x7dea7
xorl %eax, %eax
popq %rbp
retq
| _mi_calc_blob_length:
push rbp
mov rbp, rsp
dec edi; switch 4 cases
cmp edi, 3
ja short def_7DE86; jumptable 000000000007DE86 default case
lea rax, jpt_7DE86
movsxd rcx, ds:(jpt_7DE86 - 0EAB10h)[rax+rdi*4]
add rcx, rax
jmp rcx; switch jump
loc_7DE88:
movzx eax, byte ptr [rsi]; jumptable 000000000007DE86 case 1
jmp short loc_7DEA7
loc_7DE8D:
movzx ecx, word ptr [rsi]; jumptable 000000000007DE86 case 3
movzx eax, byte ptr [rsi+2]
shl eax, 10h
or rax, rcx
jmp short loc_7DEA7
loc_7DE9C:
mov eax, [rsi]; jumptable 000000000007DE86 case 4
jmp short loc_7DEA7
loc_7DEA0:
movzx eax, word ptr [rsi]; jumptable 000000000007DE86 case 2
jmp short loc_7DEA7
def_7DE86:
xor eax, eax; jumptable 000000000007DE86 default case
loc_7DEA7:
pop rbp
retn
| unsigned long long mi_calc_blob_length(int a1, unsigned __int8 *a2)
{
unsigned long long result; // rax
switch ( a1 )
{
case 1:
result = *a2;
break;
case 2:
result = *(unsigned __int16 *)a2;
break;
case 3:
result = *(unsigned __int16 *)a2 | (unsigned long long)(a2[2] << 16);
break;
case 4:
result = *(unsigned int *)a2;
break;
default:
result = 0LL;
break;
}
return result;
}
| _mi_calc_blob_length:
PUSH RBP
MOV RBP,RSP
DEC EDI
CMP EDI,0x3
JA 0x0017dea5
LEA RAX,[0x1eab10]
MOVSXD RCX,dword ptr [RAX + RDI*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_1:
MOVZX EAX,byte ptr [RSI]
JMP 0x0017dea7
caseD_3:
MOVZX ECX,word ptr [RSI]
MOVZX EAX,byte ptr [RSI + 0x2]
SHL EAX,0x10
OR RAX,RCX
JMP 0x0017dea7
caseD_4:
MOV EAX,dword ptr [RSI]
JMP 0x0017dea7
caseD_2:
MOVZX EAX,word ptr [RSI]
JMP 0x0017dea7
default:
XOR EAX,EAX
LAB_0017dea7:
POP RBP
RET
|
uint _mi_calc_blob_length(int4 param_1,uint *param_2)
{
uint uVar1;
switch(param_1) {
case 1:
uVar1 = (uint)(byte)*param_2;
break;
case 2:
uVar1 = (uint)(ushort)*param_2;
break;
case 3:
uVar1 = (uint)(uint3)*param_2;
break;
case 4:
uVar1 = *param_2;
break;
default:
uVar1 = 0;
}
return uVar1;
}
| |
29,733 | mysql_close_options | eloqsql/libmariadb/libmariadb/mariadb_lib.c | static void mysql_close_options(MYSQL *mysql)
{
if (mysql->options.init_command)
{
char **begin= (char **)mysql->options.init_command->buffer;
char **end= begin + mysql->options.init_command->elements;
for (;begin < end; begin++)
free(*begin);
ma_delete_dynamic(mysql->options.init_command);
free(mysql->options.init_command);
}
free(mysql->options.user);
free(mysql->options.host);
free(mysql->options.password);
free(mysql->options.unix_socket);
free(mysql->options.db);
free(mysql->options.my_cnf_file);
free(mysql->options.my_cnf_group);
free(mysql->options.charset_dir);
free(mysql->options.charset_name);
free(mysql->options.bind_address);
free(mysql->options.ssl_key);
free(mysql->options.ssl_cert);
free(mysql->options.ssl_ca);
free(mysql->options.ssl_capath);
free(mysql->options.ssl_cipher);
if (mysql->options.extension)
{
struct mysql_async_context *ctxt;
if ((ctxt = mysql->options.extension->async_context))
{
my_context_destroy(&ctxt->async_context);
free(ctxt);
mysql->options.extension->async_context= 0;
}
free(mysql->options.extension->plugin_dir);
free(mysql->options.extension->default_auth);
free(mysql->options.extension->db_driver);
free(mysql->options.extension->ssl_crl);
free(mysql->options.extension->ssl_crlpath);
free(mysql->options.extension->tls_fp);
free(mysql->options.extension->tls_fp_list);
free(mysql->options.extension->tls_pw);
free(mysql->options.extension->tls_version);
free(mysql->options.extension->url);
free(mysql->options.extension->connection_handler);
free(mysql->options.extension->proxy_header);
if(ma_hashtbl_inited(&mysql->options.extension->connect_attrs))
ma_hashtbl_free(&mysql->options.extension->connect_attrs);
if (ma_hashtbl_inited(&mysql->options.extension->userdata))
ma_hashtbl_free(&mysql->options.extension->userdata);
free(mysql->options.extension->restricted_auth);
free(mysql->options.extension->rpl_host);
}
free(mysql->options.extension);
/* clear all pointer */
memset(&mysql->options, 0, sizeof(mysql->options));
} | O0 | c | mysql_close_options:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x3d8(%rax)
je 0x2545d
movq -0x8(%rbp), %rax
movq 0x3d8(%rax), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
movq 0x3d8(%rcx), %rcx
movl 0x8(%rcx), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x2543d
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x13520
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x10(%rbp)
jmp 0x25419
movq -0x8(%rbp), %rax
movq 0x3d8(%rax), %rdi
callq 0x4ac90
movq -0x8(%rbp), %rax
movq 0x3d8(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x3b8(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x3b0(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x3c0(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x3c8(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x3d0(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x3e0(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x3e8(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x3f0(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x3f8(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x448(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x400(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x408(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x410(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x418(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x420(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
cmpq $0x0, 0x480(%rax)
je 0x25728
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x255a1
movq -0x20(%rbp), %rdi
addq $0x38, %rdi
callq 0x47420
movq -0x20(%rbp), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq $0x0, 0x28(%rax)
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq (%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x8(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x88(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x10(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x18(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x90(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x98(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0xa0(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0xc0(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0xb0(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0xd0(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x130(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
cmpq $0x0, 0x48(%rax)
je 0x256ce
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rdi
addq $0x30, %rdi
callq 0x4c8f0
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
cmpq $0x0, 0xf8(%rax)
je 0x256fa
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rdi
addq $0xe0, %rdi
callq 0x4c8f0
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x150(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x158(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rdi
addq $0x390, %rdi # imm = 0x390
xorl %esi, %esi
movl $0xf8, %edx
callq 0x13250
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mysql_close_options:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+3D8h], 0
jz short loc_2545D
mov rax, [rbp+var_8]
mov rax, [rax+3D8h]
mov rax, [rax]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
mov rcx, [rcx+3D8h]
mov ecx, [rcx+8]
shl rcx, 3
add rax, rcx
mov [rbp+var_18], rax
loc_25419:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_18]
jnb short loc_2543D
mov rax, [rbp+var_10]
mov rdi, [rax]
call _free
mov rax, [rbp+var_10]
add rax, 8
mov [rbp+var_10], rax
jmp short loc_25419
loc_2543D:
mov rax, [rbp+var_8]
mov rdi, [rax+3D8h]
call ma_delete_dynamic
mov rax, [rbp+var_8]
mov rdi, [rax+3D8h]
call _free
loc_2545D:
mov rax, [rbp+var_8]
mov rdi, [rax+3B8h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+3B0h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+3C0h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+3C8h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+3D0h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+3E0h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+3E8h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+3F0h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+3F8h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+448h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+400h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+408h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+410h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+418h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+420h]
call _free
mov rax, [rbp+var_8]
cmp qword ptr [rax+480h], 0
jz loc_25728
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
cmp rax, 0
jz short loc_255A1
mov rdi, [rbp+var_20]
add rdi, 38h ; '8'
call my_context_destroy
mov rdi, [rbp+var_20]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov qword ptr [rax+28h], 0
loc_255A1:
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+8]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+88h]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+10h]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+18h]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+90h]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+98h]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+0A0h]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+0C0h]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+0B0h]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+0D0h]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+130h]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
cmp qword ptr [rax+48h], 0
jz short loc_256CE
mov rax, [rbp+var_8]
mov rdi, [rax+480h]
add rdi, 30h ; '0'
call ma_hashtbl_free
loc_256CE:
mov rax, [rbp+var_8]
mov rax, [rax+480h]
cmp qword ptr [rax+0F8h], 0
jz short loc_256FA
mov rax, [rbp+var_8]
mov rdi, [rax+480h]
add rdi, 0E0h
call ma_hashtbl_free
loc_256FA:
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+150h]
call _free
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rdi, [rax+158h]
call _free
loc_25728:
mov rax, [rbp+var_8]
mov rdi, [rax+480h]
call _free
mov rdi, [rbp+var_8]
add rdi, 390h
xor esi, esi
mov edx, 0F8h
call _memset
add rsp, 20h
pop rbp
retn
| long long mysql_close_options(long long a1)
{
long long v2; // [rsp+0h] [rbp-20h]
_QWORD *v3; // [rsp+8h] [rbp-18h]
_QWORD *v4; // [rsp+10h] [rbp-10h]
if ( *(_QWORD *)(a1 + 984) )
{
v4 = **(_QWORD ***)(a1 + 984);
v3 = &v4[*(unsigned int *)(*(_QWORD *)(a1 + 984) + 8LL)];
while ( v4 < v3 )
free(*v4++);
ma_delete_dynamic(*(_QWORD *)(a1 + 984));
free(*(_QWORD *)(a1 + 984));
}
free(*(_QWORD *)(a1 + 952));
free(*(_QWORD *)(a1 + 944));
free(*(_QWORD *)(a1 + 960));
free(*(_QWORD *)(a1 + 968));
free(*(_QWORD *)(a1 + 976));
free(*(_QWORD *)(a1 + 992));
free(*(_QWORD *)(a1 + 1000));
free(*(_QWORD *)(a1 + 1008));
free(*(_QWORD *)(a1 + 1016));
free(*(_QWORD *)(a1 + 1096));
free(*(_QWORD *)(a1 + 1024));
free(*(_QWORD *)(a1 + 1032));
free(*(_QWORD *)(a1 + 1040));
free(*(_QWORD *)(a1 + 1048));
free(*(_QWORD *)(a1 + 1056));
if ( *(_QWORD *)(a1 + 1152) )
{
v2 = *(_QWORD *)(*(_QWORD *)(a1 + 1152) + 40LL);
if ( v2 )
{
my_context_destroy(v2 + 56);
free(v2);
*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 40LL) = 0LL;
}
free(**(_QWORD **)(a1 + 1152));
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 8LL));
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 136LL));
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 16LL));
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 24LL));
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 144LL));
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 152LL));
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 160LL));
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 192LL));
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 176LL));
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 208LL));
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 304LL));
if ( *(_QWORD *)(*(_QWORD *)(a1 + 1152) + 72LL) )
ma_hashtbl_free(*(_QWORD *)(a1 + 1152) + 48LL);
if ( *(_QWORD *)(*(_QWORD *)(a1 + 1152) + 248LL) )
ma_hashtbl_free(*(_QWORD *)(a1 + 1152) + 224LL);
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 336LL));
free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 344LL));
}
free(*(_QWORD *)(a1 + 1152));
return memset(a1 + 912, 0LL, 248LL);
}
| mysql_close_options:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x3d8],0x0
JZ 0x0012545d
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x3d8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX + 0x3d8]
MOV ECX,dword ptr [RCX + 0x8]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
LAB_00125419:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x0012543d
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x8
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00125419
LAB_0012543d:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x3d8]
CALL 0x0014ac90
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x3d8]
CALL 0x00113520
LAB_0012545d:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x3b8]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x3b0]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x3c0]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x3c8]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x3d0]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x3e0]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x3e8]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x3f0]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x3f8]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x448]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x400]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x408]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x410]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x418]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x420]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x480],0x0
JZ 0x00125728
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JZ 0x001255a1
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x38
CALL 0x00147420
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV qword ptr [RAX + 0x28],0x0
LAB_001255a1:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0x88]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0x18]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0x90]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0x98]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0xa0]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0xc0]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0xb0]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0xd0]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0x130]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
CMP qword ptr [RAX + 0x48],0x0
JZ 0x001256ce
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x480]
ADD RDI,0x30
CALL 0x0014c8f0
LAB_001256ce:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
CMP qword ptr [RAX + 0xf8],0x0
JZ 0x001256fa
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x480]
ADD RDI,0xe0
CALL 0x0014c8f0
LAB_001256fa:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0x150]
CALL 0x00113520
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0x158]
CALL 0x00113520
LAB_00125728:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x480]
CALL 0x00113520
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x390
XOR ESI,ESI
MOV EDX,0xf8
CALL 0x00113250
ADD RSP,0x20
POP RBP
RET
|
void mysql_close_options(long param_1)
{
void *__ptr;
int8 *puVar1;
int8 *local_18;
if (*(long *)(param_1 + 0x3d8) != 0) {
local_18 = (int8 *)**(long **)(param_1 + 0x3d8);
puVar1 = local_18 + *(uint *)(*(long *)(param_1 + 0x3d8) + 8);
for (; local_18 < puVar1; local_18 = local_18 + 1) {
free((void *)*local_18);
}
ma_delete_dynamic(*(int8 *)(param_1 + 0x3d8));
free(*(void **)(param_1 + 0x3d8));
}
free(*(void **)(param_1 + 0x3b8));
free(*(void **)(param_1 + 0x3b0));
free(*(void **)(param_1 + 0x3c0));
free(*(void **)(param_1 + 0x3c8));
free(*(void **)(param_1 + 0x3d0));
free(*(void **)(param_1 + 0x3e0));
free(*(void **)(param_1 + 1000));
free(*(void **)(param_1 + 0x3f0));
free(*(void **)(param_1 + 0x3f8));
free(*(void **)(param_1 + 0x448));
free(*(void **)(param_1 + 0x400));
free(*(void **)(param_1 + 0x408));
free(*(void **)(param_1 + 0x410));
free(*(void **)(param_1 + 0x418));
free(*(void **)(param_1 + 0x420));
if (*(long *)(param_1 + 0x480) != 0) {
__ptr = *(void **)(*(long *)(param_1 + 0x480) + 0x28);
if (__ptr != (void *)0x0) {
my_context_destroy((long)__ptr + 0x38);
free(__ptr);
*(int8 *)(*(long *)(param_1 + 0x480) + 0x28) = 0;
}
free((void *)**(int8 **)(param_1 + 0x480));
free(*(void **)(*(long *)(param_1 + 0x480) + 8));
free(*(void **)(*(long *)(param_1 + 0x480) + 0x88));
free(*(void **)(*(long *)(param_1 + 0x480) + 0x10));
free(*(void **)(*(long *)(param_1 + 0x480) + 0x18));
free(*(void **)(*(long *)(param_1 + 0x480) + 0x90));
free(*(void **)(*(long *)(param_1 + 0x480) + 0x98));
free(*(void **)(*(long *)(param_1 + 0x480) + 0xa0));
free(*(void **)(*(long *)(param_1 + 0x480) + 0xc0));
free(*(void **)(*(long *)(param_1 + 0x480) + 0xb0));
free(*(void **)(*(long *)(param_1 + 0x480) + 0xd0));
free(*(void **)(*(long *)(param_1 + 0x480) + 0x130));
if (*(long *)(*(long *)(param_1 + 0x480) + 0x48) != 0) {
ma_hashtbl_free(*(long *)(param_1 + 0x480) + 0x30);
}
if (*(long *)(*(long *)(param_1 + 0x480) + 0xf8) != 0) {
ma_hashtbl_free(*(long *)(param_1 + 0x480) + 0xe0);
}
free(*(void **)(*(long *)(param_1 + 0x480) + 0x150));
free(*(void **)(*(long *)(param_1 + 0x480) + 0x158));
}
free(*(void **)(param_1 + 0x480));
memset((void *)(param_1 + 0x390),0,0xf8);
return;
}
| |
29,734 | compute_laplacian | tsotchke[P]eshkol/src/core/utils/vector.c | float compute_laplacian(Arena* arena, ScalarFieldFunc f, const VectorF* v) {
assert(arena != NULL);
assert(f != NULL);
assert(v != NULL);
// Compute the Laplacian using finite differences
const float h = 1e-4f; // Step size for finite differences
const float f_v = f(v); // Value of f at v
float laplacian = 0.0f;
// For each dimension, compute the second partial derivative
for (size_t i = 0; i < v->dim; i++) {
// Create perturbed vectors
VectorF perturbed_plus = *v;
perturbed_plus.data[i] += h;
VectorF perturbed_minus = *v;
perturbed_minus.data[i] -= h;
// Compute the second partial derivative using central differences
float f_plus = f(&perturbed_plus);
float f_minus = f(&perturbed_minus);
laplacian += (f_plus - 2.0f * f_v + f_minus) / (h * h);
}
return laplacian;
} | O0 | c | compute_laplacian:
pushq %rbp
movq %rsp, %rbp
andq $-0x20, %rsp
subq $0xa0, %rsp
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movq %rdx, 0x78(%rsp)
cmpq $0x0, 0x88(%rsp)
je 0x86c1
jmp 0x86e0
leaq 0x1b0d(%rip), %rdi # 0xa1d5
leaq 0x3089(%rip), %rsi # 0xb758
movl $0x57e, %edx # imm = 0x57E
leaq 0x394e(%rip), %rcx # 0xc029
callq 0x1090
cmpq $0x0, 0x80(%rsp)
je 0x86ed
jmp 0x870c
leaq 0x21eb(%rip), %rdi # 0xa8df
leaq 0x305d(%rip), %rsi # 0xb758
movl $0x57f, %edx # imm = 0x57F
leaq 0x3922(%rip), %rcx # 0xc029
callq 0x1090
cmpq $0x0, 0x78(%rsp)
je 0x8716
jmp 0x8735
leaq 0x2a64(%rip), %rdi # 0xb181
leaq 0x3034(%rip), %rsi # 0xb758
movl $0x580, %edx # imm = 0x580
leaq 0x38f9(%rip), %rcx # 0xc029
callq 0x1090
movss 0x3013(%rip), %xmm0 # 0xb750
movss %xmm0, 0x74(%rsp)
movq 0x80(%rsp), %rax
movq 0x78(%rsp), %rdi
callq *%rax
movss %xmm0, 0x70(%rsp)
xorps %xmm0, %xmm0
movss %xmm0, 0x6c(%rsp)
movq $0x0, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq 0x78(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x886d
movq 0x78(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x40(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x48(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x50(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x60(%rsp), %rax
movss 0x2f9d(%rip), %xmm0 # 0xb750
addss 0x40(%rsp,%rax,4), %xmm0
movss %xmm0, 0x40(%rsp,%rax,4)
movq 0x78(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x20(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x28(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x30(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x60(%rsp), %rax
movss 0x20(%rsp,%rax,4), %xmm0
movss 0x2f56(%rip), %xmm1 # 0xb750
subss %xmm1, %xmm0
movss %xmm0, 0x20(%rsp,%rax,4)
leaq 0x40(%rsp), %rdi
callq *0x80(%rsp)
movss %xmm0, 0x1c(%rsp)
leaq 0x20(%rsp), %rdi
callq *0x80(%rsp)
movss %xmm0, 0x18(%rsp)
movss 0x1c(%rsp), %xmm0
movss 0x70(%rsp), %xmm1
addss %xmm1, %xmm1
subss %xmm1, %xmm0
addss 0x18(%rsp), %xmm0
movss 0x2f0a(%rip), %xmm1 # 0xb754
divss %xmm1, %xmm0
addss 0x6c(%rsp), %xmm0
movss %xmm0, 0x6c(%rsp)
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
jmp 0x876a
movss 0x6c(%rsp), %xmm0
movq %rbp, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| compute_laplacian:
push rbp
mov rbp, rsp
and rsp, 0FFFFFFFFFFFFFFE0h
sub rsp, 0A0h
mov [rsp+0A0h+var_18], rdi
mov [rsp+0A0h+var_20], rsi
mov [rsp+0A0h+var_28], rdx
cmp [rsp+0A0h+var_18], 0
jz short loc_86C1
jmp short loc_86E0
loc_86C1:
lea rdi, aArenaNull; "arena != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 57Eh
lea rcx, aFloatComputeLa; "float compute_laplacian(Arena *, Scalar"...
call ___assert_fail
loc_86E0:
cmp [rsp+0A0h+var_20], 0
jz short loc_86ED
jmp short loc_870C
loc_86ED:
lea rdi, aMfNull+1; "f != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 57Fh
lea rcx, aFloatComputeLa; "float compute_laplacian(Arena *, Scalar"...
call ___assert_fail
loc_870C:
cmp [rsp+0A0h+var_28], 0
jz short loc_8716
jmp short loc_8735
loc_8716:
lea rdi, aVNull; "v != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 580h
lea rcx, aFloatComputeLa; "float compute_laplacian(Arena *, Scalar"...
call ___assert_fail
loc_8735:
movss xmm0, cs:dword_B750
movss [rsp+0A0h+var_2C], xmm0
mov rax, [rsp+0A0h+var_20]
mov rdi, [rsp+0A0h+var_28]
call rax
movss [rsp+0A0h+var_30], xmm0
xorps xmm0, xmm0
movss [rsp+0A0h+var_34], xmm0
mov [rsp+0A0h+var_40], 0
loc_876A:
mov rax, [rsp+0A0h+var_40]
mov rcx, [rsp+0A0h+var_28]
cmp rax, [rcx+10h]
jnb loc_886D
mov rax, [rsp+0A0h+var_28]
mov rcx, [rax]
mov [rsp+0A0h+var_60], rcx
mov rcx, [rax+8]
mov [rsp+0A0h+var_58], rcx
mov rcx, [rax+10h]
mov [rsp+0A0h+var_50], rcx
mov rax, [rax+18h]
mov [rsp+0A0h+var_48], rax
mov rax, [rsp+0A0h+var_40]
movss xmm0, cs:dword_B750
addss xmm0, dword ptr [rsp+rax*4+0A0h+var_60]
movss dword ptr [rsp+rax*4+0A0h+var_60], xmm0
mov rax, [rsp+0A0h+var_28]
mov rcx, [rax]
mov [rsp+0A0h+var_80], rcx
mov rcx, [rax+8]
mov [rsp+0A0h+var_78], rcx
mov rcx, [rax+10h]
mov [rsp+0A0h+var_70], rcx
mov rax, [rax+18h]
mov [rsp+0A0h+var_68], rax
mov rax, [rsp+0A0h+var_40]
movss xmm0, dword ptr [rsp+rax*4+0A0h+var_80]
movss xmm1, cs:dword_B750
subss xmm0, xmm1
movss dword ptr [rsp+rax*4+0A0h+var_80], xmm0
lea rdi, [rsp+0A0h+var_60]
call [rsp+0A0h+var_20]
movss [rsp+0A0h+var_84], xmm0
lea rdi, [rsp+0A0h+var_80]
call [rsp+0A0h+var_20]
movss [rsp+0A0h+var_88], xmm0
movss xmm0, [rsp+0A0h+var_84]
movss xmm1, [rsp+0A0h+var_30]
addss xmm1, xmm1
subss xmm0, xmm1
addss xmm0, [rsp+0A0h+var_88]
movss xmm1, cs:dword_B754
divss xmm0, xmm1
addss xmm0, [rsp+0A0h+var_34]
movss [rsp+0A0h+var_34], xmm0
mov rax, [rsp+0A0h+var_40]
add rax, 1
mov [rsp+0A0h+var_40], rax
jmp loc_876A
loc_886D:
movss xmm0, [rsp+0A0h+var_34]
mov rsp, rbp
pop rbp
retn
| float compute_laplacian(long long a1, float ( *a2)(_QWORD *), _QWORD *a3)
{
float v4; // [rsp+18h] [rbp-88h]
float v5; // [rsp+1Ch] [rbp-84h]
_QWORD v6[4]; // [rsp+20h] [rbp-80h] BYREF
_QWORD v7[4]; // [rsp+40h] [rbp-60h] BYREF
unsigned long long i; // [rsp+60h] [rbp-40h]
float v9; // [rsp+6Ch] [rbp-34h]
float v10; // [rsp+70h] [rbp-30h]
int v11; // [rsp+74h] [rbp-2Ch]
_QWORD *v12; // [rsp+78h] [rbp-28h]
float ( *v13)(_QWORD *); // [rsp+80h] [rbp-20h]
long long v14; // [rsp+88h] [rbp-18h]
v14 = a1;
v13 = a2;
v12 = a3;
if ( !a1 )
__assert_fail(
"arena != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
1406LL,
"float compute_laplacian(Arena *, ScalarFieldFunc, const VectorF *)");
if ( !v13 )
__assert_fail(
"f != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
1407LL,
"float compute_laplacian(Arena *, ScalarFieldFunc, const VectorF *)");
if ( !v12 )
__assert_fail(
"v != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
1408LL,
"float compute_laplacian(Arena *, ScalarFieldFunc, const VectorF *)");
v11 = 953267991;
v10 = v13(v12);
v9 = 0.0;
for ( i = 0LL; i < v12[2]; ++i )
{
v7[0] = *v12;
v7[1] = v12[1];
v7[2] = v12[2];
v7[3] = v12[3];
*((float *)v7 + i) = *((float *)v7 + i) + 0.000099999997;
v6[0] = *v12;
v6[1] = v12[1];
v6[2] = v12[2];
v6[3] = v12[3];
*((float *)v6 + i) = *((float *)v6 + i) - 0.000099999997;
v5 = v13(v7);
v4 = v13(v6);
v9 = (float)((float)((float)(v5 - (float)(v10 + v10)) + v4) / 0.0000000099999991) + v9;
}
return v9;
}
| compute_laplacian:
PUSH RBP
MOV RBP,RSP
AND RSP,-0x20
SUB RSP,0xa0
MOV qword ptr [RSP + 0x88],RDI
MOV qword ptr [RSP + 0x80],RSI
MOV qword ptr [RSP + 0x78],RDX
CMP qword ptr [RSP + 0x88],0x0
JZ 0x001086c1
JMP 0x001086e0
LAB_001086c1:
LEA RDI,[0x10a1c3]
LEA RSI,[0x10b724]
MOV EDX,0x57e
LEA RCX,[0x10bfe3]
CALL 0x00101090
LAB_001086e0:
CMP qword ptr [RSP + 0x80],0x0
JZ 0x001086ed
JMP 0x0010870c
LAB_001086ed:
LEA RDI,[0x10a8cd]
LEA RSI,[0x10b724]
MOV EDX,0x57f
LEA RCX,[0x10bfe3]
CALL 0x00101090
LAB_0010870c:
CMP qword ptr [RSP + 0x78],0x0
JZ 0x00108716
JMP 0x00108735
LAB_00108716:
LEA RDI,[0x10b16f]
LEA RSI,[0x10b724]
MOV EDX,0x580
LEA RCX,[0x10bfe3]
CALL 0x00101090
LAB_00108735:
MOVSS XMM0,dword ptr [0x0010b71c]
MOVSS dword ptr [RSP + 0x74],XMM0
MOV RAX,qword ptr [RSP + 0x80]
MOV RDI,qword ptr [RSP + 0x78]
CALL RAX
MOVSS dword ptr [RSP + 0x70],XMM0
XORPS XMM0,XMM0
MOVSS dword ptr [RSP + 0x6c],XMM0
MOV qword ptr [RSP + 0x60],0x0
LAB_0010876a:
MOV RAX,qword ptr [RSP + 0x60]
MOV RCX,qword ptr [RSP + 0x78]
CMP RAX,qword ptr [RCX + 0x10]
JNC 0x0010886d
MOV RAX,qword ptr [RSP + 0x78]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP + 0x40],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x48],RCX
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x50],RCX
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOVSS XMM0,dword ptr [0x0010b71c]
ADDSS XMM0,dword ptr [RSP + RAX*0x4 + 0x40]
MOVSS dword ptr [RSP + RAX*0x4 + 0x40],XMM0
MOV RAX,qword ptr [RSP + 0x78]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP + 0x20],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x28],RCX
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x30],RCX
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOVSS XMM0,dword ptr [RSP + RAX*0x4 + 0x20]
MOVSS XMM1,dword ptr [0x0010b71c]
SUBSS XMM0,XMM1
MOVSS dword ptr [RSP + RAX*0x4 + 0x20],XMM0
LEA RDI,[RSP + 0x40]
CALL qword ptr [RSP + 0x80]
MOVSS dword ptr [RSP + 0x1c],XMM0
LEA RDI,[RSP + 0x20]
CALL qword ptr [RSP + 0x80]
MOVSS dword ptr [RSP + 0x18],XMM0
MOVSS XMM0,dword ptr [RSP + 0x1c]
MOVSS XMM1,dword ptr [RSP + 0x70]
ADDSS XMM1,XMM1
SUBSS XMM0,XMM1
ADDSS XMM0,dword ptr [RSP + 0x18]
MOVSS XMM1,dword ptr [0x0010b720]
DIVSS XMM0,XMM1
ADDSS XMM0,dword ptr [RSP + 0x6c]
MOVSS dword ptr [RSP + 0x6c],XMM0
MOV RAX,qword ptr [RSP + 0x60]
ADD RAX,0x1
MOV qword ptr [RSP + 0x60],RAX
JMP 0x0010876a
LAB_0010886d:
MOVSS XMM0,dword ptr [RSP + 0x6c]
MOV RSP,RBP
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
float compute_laplacian(long param_1,code *param_2,int8 *param_3)
{
float fVar1;
float fVar2;
int8 local_a0;
int8 local_98;
int8 local_90;
int8 local_88;
int8 local_80;
int8 local_78;
int8 local_70;
int8 local_68;
ulong local_60;
float local_54;
float local_50;
float local_4c;
int8 *local_48;
code *local_40;
long local_38;
local_48 = param_3;
local_40 = param_2;
local_38 = param_1;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("arena != NULL","/workspace/llm4binary/github2025/eshkol/src/core/utils/vector.c",
0x57e,"float compute_laplacian(Arena *, ScalarFieldFunc, const VectorF *)");
}
if (param_2 != (code *)0x0) {
if (param_3 != (int8 *)0x0) {
local_4c = DAT_0010b71c;
local_50 = (float)(*param_2)(param_3);
local_54 = 0.0;
for (local_60 = 0; local_60 < (ulong)local_48[2]; local_60 = local_60 + 1) {
local_80 = *local_48;
local_78 = local_48[1];
local_70 = local_48[2];
local_68 = local_48[3];
*(float *)((long)&local_80 + local_60 * 4) =
DAT_0010b71c + *(float *)((long)&local_80 + local_60 * 4);
local_a0 = *local_48;
local_98 = local_48[1];
local_90 = local_48[2];
local_88 = local_48[3];
*(float *)((long)&local_a0 + local_60 * 4) =
*(float *)((long)&local_a0 + local_60 * 4) - DAT_0010b71c;
fVar1 = (float)(*local_40)(&local_80);
fVar2 = (float)(*local_40)(&local_a0);
local_54 = ((fVar1 - (local_50 + local_50)) + fVar2) / _DAT_0010b720 + local_54;
}
return local_54;
}
/* WARNING: Subroutine does not return */
__assert_fail("v != NULL","/workspace/llm4binary/github2025/eshkol/src/core/utils/vector.c",
0x580,"float compute_laplacian(Arena *, ScalarFieldFunc, const VectorF *)");
}
/* WARNING: Subroutine does not return */
__assert_fail("f != NULL","/workspace/llm4binary/github2025/eshkol/src/core/utils/vector.c",0x57f,
"float compute_laplacian(Arena *, ScalarFieldFunc, const VectorF *)");
}
| |
29,735 | init_simple_key_cache | eloqsql/mysys/mf_keycache.c | static
int init_simple_key_cache(SIMPLE_KEY_CACHE_CB *keycache,
uint key_cache_block_size,
size_t use_mem, uint division_limit,
uint age_threshold, uint changed_blocks_hash_size)
{
size_t blocks, hash_links;
size_t length;
int error;
DBUG_ENTER("init_simple_key_cache");
DBUG_ASSERT(key_cache_block_size >= 512);
KEYCACHE_DEBUG_OPEN;
if (keycache->key_cache_inited && keycache->disk_blocks > 0)
{
DBUG_PRINT("warning",("key cache already in use"));
DBUG_RETURN(0);
}
keycache->blocks_used= keycache->blocks_unused= 0;
keycache->global_blocks_changed= 0;
keycache->global_cache_w_requests= keycache->global_cache_r_requests= 0;
keycache->global_cache_read= keycache->global_cache_write= 0;
keycache->disk_blocks= -1;
if (! keycache->key_cache_inited)
{
keycache->key_cache_inited= 1;
keycache->hash_factor= 1;
/*
Initialize these variables once only.
Their value must survive re-initialization during resizing.
*/
keycache->in_resize= 0;
keycache->resize_in_flush= 0;
keycache->cnt_for_resize_op= 0;
keycache->waiting_for_resize_cnt.last_thread= NULL;
keycache->in_init= 0;
mysql_mutex_init(key_KEY_CACHE_cache_lock,
&keycache->cache_lock, MY_MUTEX_INIT_FAST);
keycache->resize_queue.last_thread= NULL;
}
keycache->key_cache_mem_size= use_mem;
keycache->key_cache_block_size= key_cache_block_size;
DBUG_PRINT("info", ("key_cache_block_size: %u",
key_cache_block_size));
blocks= use_mem / (sizeof(BLOCK_LINK) + 2 * sizeof(HASH_LINK) +
sizeof(HASH_LINK*) * 5/4 + key_cache_block_size);
/* Changed blocks hash needs to be a power of 2 */
changed_blocks_hash_size= my_round_up_to_next_power(MY_MAX(changed_blocks_hash_size,
MIN_CHANGED_BLOCKS_HASH_SIZE));
/* It doesn't make sense to have too few blocks (less than 8) */
if (blocks >= 8)
{
for ( ; ; )
{
/* Set my_hash_entries to the next bigger 2 power */
if ((keycache->hash_entries= next_power((uint)blocks)) < blocks * 5/4)
keycache->hash_entries<<= 1;
hash_links= 2 * blocks;
#if defined(MAX_THREADS)
if (hash_links < MAX_THREADS + blocks - 1)
hash_links= MAX_THREADS + blocks - 1;
#endif
while ((length= (ALIGN_SIZE(blocks * sizeof(BLOCK_LINK)) +
ALIGN_SIZE(hash_links * sizeof(HASH_LINK)) +
ALIGN_SIZE(sizeof(HASH_LINK*) *
keycache->hash_entries) +
sizeof(BLOCK_LINK*)* ((size_t)changed_blocks_hash_size*2))) +
(blocks * keycache->key_cache_block_size) > use_mem && blocks > 8)
blocks--;
keycache->allocated_mem_size= blocks * keycache->key_cache_block_size;
if ((keycache->block_mem= my_large_malloc(&keycache->allocated_mem_size,
MYF(0))))
{
/*
Allocate memory for blocks, hash_links and hash entries;
For each block 2 hash links are allocated
*/
if (my_multi_malloc_large(key_memory_KEY_CACHE, MYF(MY_ZEROFILL),
&keycache->block_root,
(ulonglong) (blocks * sizeof(BLOCK_LINK)),
&keycache->hash_root,
(ulonglong) (sizeof(HASH_LINK*) *
keycache->hash_entries),
&keycache->hash_link_root,
(ulonglong) (hash_links * sizeof(HASH_LINK)),
&keycache->changed_blocks,
(ulonglong) (sizeof(BLOCK_LINK*) *
changed_blocks_hash_size),
&keycache->file_blocks,
(ulonglong) (sizeof(BLOCK_LINK*) *
changed_blocks_hash_size),
NullS))
break;
my_large_free(keycache->block_mem, keycache->allocated_mem_size);
keycache->block_mem= 0;
}
if (blocks < 8)
{
my_errno= ENOMEM;
my_error(EE_OUTOFMEMORY, MYF(ME_FATAL),
blocks * keycache->key_cache_block_size);
goto err;
}
blocks= blocks / 4*3;
}
keycache->blocks_unused= blocks;
keycache->disk_blocks= (int) blocks;
keycache->hash_links= (int)hash_links;
keycache->hash_links_used= 0;
keycache->free_hash_list= NULL;
keycache->blocks_used= keycache->blocks_changed= 0;
keycache->global_blocks_changed= 0;
keycache->blocks_available=0; /* For debugging */
/* The LRU chain is empty after initialization */
keycache->used_last= NULL;
keycache->used_ins= NULL;
keycache->free_block_list= NULL;
keycache->keycache_time= 0;
keycache->warm_blocks= 0;
keycache->min_warm_blocks= (division_limit ?
blocks * division_limit / 100 + 1 :
blocks);
keycache->age_threshold= (age_threshold ?
blocks * age_threshold / 100 :
blocks);
keycache->changed_blocks_hash_size= changed_blocks_hash_size;
keycache->can_be_used= 1;
keycache->waiting_for_hash_link.last_thread= NULL;
keycache->waiting_for_block.last_thread= NULL;
DBUG_PRINT("exit",
("disk_blocks: %d block_root: %p hash_entries: %d\
hash_root: %p hash_links: %d hash_link_root: %p",
keycache->disk_blocks, keycache->block_root,
keycache->hash_entries, keycache->hash_root,
keycache->hash_links, keycache->hash_link_root));
}
else
{
/* key_buffer_size is specified too small. Disable the cache. */
keycache->can_be_used= 0;
}
keycache->blocks= keycache->disk_blocks > 0 ? keycache->disk_blocks : 0;
DBUG_RETURN((int) keycache->disk_blocks);
err:
error= my_errno;
keycache->disk_blocks= 0;
keycache->blocks= 0;
if (keycache->block_mem)
{
my_large_free((uchar*) keycache->block_mem, keycache->allocated_mem_size);
keycache->block_mem= NULL;
}
if (keycache->block_root)
{
my_free(keycache->block_root);
keycache->block_root= NULL;
}
my_errno= error;
keycache->can_be_used= 0;
DBUG_RETURN(0);
} | O3 | c | init_simple_key_cache:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r9d, %ebx
movq %rdx, %r9
movl %esi, %r13d
movq %rdi, %r10
movb (%rdi), %al
testb %al, %al
je 0x5400e
xorl %r14d, %r14d
cmpl $0x0, 0x48(%r10)
jg 0x5447a
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%r10)
movups %xmm0, 0x138(%r10)
movups %xmm0, 0x148(%r10)
movq $0x0, 0x158(%r10)
movl $0xffffffff, 0x48(%r10) # imm = 0xFFFFFFFF
testb %al, %al
movq %r10, -0x30(%rbp)
movq %r9, -0x50(%rbp)
jne 0x540e1
movw $0x1, (%r10)
movl $0x1, 0x164(%r10)
xorl %r15d, %r15d
movb %r15b, 0x2(%r10)
movq %r15, 0x70(%r10)
movq %r15, 0x110(%r10)
movb %r15b, 0x168(%r10)
leaq 0x35a982(%rip), %rax # 0x3ae9fc
movl (%rax), %edi
leaq 0xc0(%r10), %r14
leaq 0x2dc2c6(%rip), %rax # 0x330350
movq (%rax), %rax
movq %r14, %rsi
movl %ecx, -0x34(%rbp)
movl %r8d, %r12d
callq *0x40(%rax)
movq -0x30(%rbp), %rcx
movq %rax, 0x100(%rcx)
movq -0x30(%rbp), %rax
movq %r14, 0xf8(%rax)
movq -0x30(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0xe8(%rax)
leaq 0x35b64c(%rip), %rsi # 0x3af710
movq %r14, %rdi
callq 0x28570
movl %r12d, %r8d
movq -0x50(%rbp), %r9
movl -0x34(%rbp), %ecx
movq -0x30(%rbp), %r10
movq %r15, 0x108(%r10)
movq %r9, 0x8(%r10)
movl %r13d, 0x18(%r10)
movl %r13d, %esi
addq $0xda, %rsi
movq %r9, %rax
xorl %edx, %edx
divq %rsi
movq %rax, %rdi
cmpl $0x81, %ebx
movl $0x80, %eax
cmovael %ebx, %eax
cmpq $0x8, %rdi
jb 0x54322
decl %eax
movl %eax, %edx
shrl %edx
orl %eax, %edx
movl %edx, %eax
shrl $0x2, %eax
orl %edx, %eax
movl %eax, %edx
shrl $0x4, %edx
orl %eax, %edx
movl %edx, %eax
shrl $0x8, %eax
orl %edx, %eax
movl %eax, %edx
shrl $0x10, %edx
orl %eax, %edx
incl %edx
movl %edx, -0x38(%rbp)
movl %edx, %edx
movq %rdx, %rax
shlq $0x4, %rax
movq %rax, -0x98(%rbp)
leaq 0x10(%r10), %rax
movq %rax, -0x90(%rbp)
leaq 0xa0(%r10), %rax
movq %rax, -0x48(%rbp)
leaq 0x80(%r10), %rax
movq %rax, -0x70(%rbp)
leaq 0x88(%r10), %rax
movq %rax, -0x68(%rbp)
leaq 0x128(%r10), %rax
movq %rax, -0x60(%rbp)
shlq $0x3, %rdx
movq %rdx, -0x78(%rbp)
leaq 0x130(%r10), %rax
movq %rax, -0x58(%rbp)
movl %r8d, -0x3c(%rbp)
movl %r8d, %r11d
movl %ecx, -0x34(%rbp)
movl %ecx, %r12d
movq %r10, %r8
movq %r11, -0x80(%rbp)
leal -0x1(%rdi), %eax
movl %eax, %ecx
shrl %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x8, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x10, %ecx
orl %eax, %ecx
leal 0x2(,%rcx,2), %edx
movq %rdi, %rax
shrq $0x2, %rax
addq %rdi, %rax
cmpq %rdx, %rax
seta %cl
shll %cl, %edx
movl %edx, 0x38(%r8)
movq %rdi, %rax
shlq $0x5, %rax
leaq (%rax,%rax,2), %rax
movq %rax, -0xa0(%rbp)
movl %r13d, %eax
leaq 0x1(%rdi), %r14
movq %r11, %r13
imulq %r14, %r13
movq %r12, %rbx
imulq %r14, %rbx
movq %r14, %rcx
imulq %rax, %rcx
leaq 0xd0(%rax), %rsi
imulq %rdi, %rsi
addq -0x98(%rbp), %rsi
leaq (%rsi,%rdx,8), %rsi
movq $-0x70, %rdx
subq %rax, %rdx
movq %rdi, -0x88(%rbp)
imulq $0x70, %rdi, %r15
addq $0x70, %r15
decq %r14
subq %r11, %r13
subq %r12, %rbx
subq %rax, %rcx
addq $-0x70, %r15
cmpq $0x9, %r14
jb 0x5426e
leaq (%rsi,%rdx), %rdi
cmpq %r9, %rsi
movq %rdi, %rsi
ja 0x5424c
movq %rcx, 0x10(%r8)
movq -0x90(%rbp), %rdi
xorl %esi, %esi
callq 0x6031c
movq -0x30(%rbp), %r8
movq %rax, 0xa8(%r8)
testq %rax, %rax
je 0x54303
leaq 0x35b101(%rip), %rax # 0x3af398
movl (%rax), %edi
movl 0x38(%r8), %r9d
shlq $0x3, %r9
subq $0x8, %rsp
movl $0x20, %esi
movq -0x48(%rbp), %rdx
movq %r15, %rcx
movq %r8, %r15
movq -0x70(%rbp), %r8
xorl %eax, %eax
pushq $0x0
movq -0x78(%rbp), %r10
pushq %r10
pushq -0x58(%rbp)
pushq %r10
pushq -0x60(%rbp)
pushq -0xa0(%rbp)
pushq -0x68(%rbp)
callq 0x57d61
addq $0x40, %rsp
testq %rax, %rax
jne 0x543c6
movq 0x10(%r15), %rsi
movq 0xa8(%r15), %rdi
callq 0x607cb
movq $0x0, 0xa8(%r15)
movq %r15, %r8
cmpq $0x7, %r14
jbe 0x54330
shrq $0x2, %r14
leaq (%r14,%r14,2), %rdi
movl 0x18(%r8), %r13d
movq -0x50(%rbp), %r9
movq -0x80(%rbp), %r11
jmp 0x541ad
movb $0x0, 0x3(%r10)
movl 0x48(%r10), %r14d
jmp 0x5446a
callq 0x5c086
movl $0xc, (%rax)
movq -0x30(%rbp), %rax
movl 0x18(%rax), %eax
imulq %rax, %r14
xorl %r15d, %r15d
movl $0x1000, %esi # imm = 0x1000
movl $0x5, %edi
movq %r14, %rdx
xorl %eax, %eax
callq 0x588af
callq 0x5c086
movq -0x30(%rbp), %rcx
movl (%rax), %ebx
movl %r15d, 0x48(%rcx)
movl %r15d, 0x160(%rcx)
movq 0xa8(%rcx), %rdi
testq %rdi, %rdi
je 0x54397
movq 0x10(%rcx), %rsi
callq 0x607cb
movq -0x30(%rbp), %rax
movq $0x0, 0xa8(%rax)
movq -0x48(%rbp), %r14
movq (%r14), %rdi
testq %rdi, %rdi
je 0x543af
callq 0x5a5f2
movq $0x0, (%r14)
callq 0x5c086
movl %ebx, (%rax)
movq -0x30(%rbp), %rax
movb $0x0, 0x3(%rax)
xorl %r14d, %r14d
jmp 0x5447a
movq %r14, 0x58(%r15)
movl %r14d, 0x48(%r15)
movq -0x88(%rbp), %rax
addl %eax, %eax
movl %eax, 0x40(%r15)
movl $0x0, 0x44(%r15)
xorl %eax, %eax
movq %rax, 0x50(%r15)
movq %rax, 0x138(%r15)
movq %rax, 0x78(%r15)
movq %rax, 0x30(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%r15)
movups %xmm0, 0x90(%r15)
movups %xmm0, 0xb0(%r15)
movabsq $0x28f5c28f5c28f5c3, %rcx # imm = 0x28F5C28F5C28F5C3
movq %r14, %rdx
cmpl $0x0, -0x34(%rbp)
movq %r15, %r10
je 0x54437
shrq $0x2, %rbx
movq %rbx, %rax
mulq %rcx
shrq $0x2, %rdx
incq %rdx
movq %rdx, 0x20(%r10)
movq %r14, %rdx
cmpl $0x0, -0x3c(%rbp)
je 0x54452
shrq $0x2, %r13
movq %r13, %rax
mulq %rcx
shrq $0x2, %rdx
movq %rdx, 0x28(%r10)
movl -0x38(%rbp), %eax
movl %eax, 0x3c(%r10)
movb $0x1, 0x3(%r10)
movups %xmm0, 0x118(%r10)
xorl %eax, %eax
testl %r14d, %r14d
cmovgl %r14d, %eax
movl %eax, 0x160(%r10)
movl %r14d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| init_simple_key_cache:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov ebx, r9d
mov r9, rdx
mov r13d, esi
mov r10, rdi
mov al, [rdi]
test al, al
jz short loc_5400E
xor r14d, r14d
cmp dword ptr [r10+48h], 0
jg loc_5447A
loc_5400E:
xorps xmm0, xmm0
movups xmmword ptr [r10+50h], xmm0
movups xmmword ptr [r10+138h], xmm0
movups xmmword ptr [r10+148h], xmm0
mov qword ptr [r10+158h], 0
mov dword ptr [r10+48h], 0FFFFFFFFh
test al, al
mov [rbp+var_30], r10
mov [rbp+var_50], r9
jnz loc_540E1
mov word ptr [r10], 1
mov dword ptr [r10+164h], 1
xor r15d, r15d
mov [r10+2], r15b
mov [r10+70h], r15
mov [r10+110h], r15
mov [r10+168h], r15b
lea rax, key_KEY_CACHE_cache_lock
mov edi, [rax]
lea r14, [r10+0C0h]
lea rax, PSI_server
mov rax, [rax]
mov rsi, r14
mov [rbp+var_34], ecx
mov r12d, r8d
call qword ptr [rax+40h]
mov rcx, [rbp+var_30]
mov [rcx+100h], rax
mov rax, [rbp+var_30]
mov [rax+0F8h], r14
mov rax, [rbp+var_30]
xorps xmm0, xmm0
movups xmmword ptr [rax+0E8h], xmm0
lea rsi, my_fast_mutexattr
mov rdi, r14
call _pthread_mutex_init
mov r8d, r12d
mov r9, [rbp+var_50]
mov ecx, [rbp+var_34]
mov r10, [rbp+var_30]
mov [r10+108h], r15
loc_540E1:
mov [r10+8], r9
mov [r10+18h], r13d
mov esi, r13d
add rsi, 0DAh
mov rax, r9
xor edx, edx
div rsi
mov rdi, rax
cmp ebx, 81h
mov eax, 80h
cmovnb eax, ebx
cmp rdi, 8
jb loc_54322
dec eax
mov edx, eax
shr edx, 1
or edx, eax
mov eax, edx
shr eax, 2
or eax, edx
mov edx, eax
shr edx, 4
or edx, eax
mov eax, edx
shr eax, 8
or eax, edx
mov edx, eax
shr edx, 10h
or edx, eax
inc edx
mov [rbp+var_38], edx
mov edx, edx
mov rax, rdx
shl rax, 4
mov [rbp+var_98], rax
lea rax, [r10+10h]
mov [rbp+var_90], rax
lea rax, [r10+0A0h]
mov [rbp+var_48], rax
lea rax, [r10+80h]
mov [rbp+var_70], rax
lea rax, [r10+88h]
mov [rbp+var_68], rax
lea rax, [r10+128h]
mov [rbp+var_60], rax
shl rdx, 3
mov [rbp+var_78], rdx
lea rax, [r10+130h]
mov [rbp+var_58], rax
mov [rbp+var_3C], r8d
mov r11d, r8d
mov [rbp+var_34], ecx
mov r12d, ecx
mov r8, r10
mov [rbp+var_80], r11
loc_541AD:
lea eax, [rdi-1]
mov ecx, eax
shr ecx, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or eax, ecx
mov ecx, eax
shr ecx, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 10h
or ecx, eax
lea edx, ds:2[rcx*2]
mov rax, rdi
shr rax, 2
add rax, rdi
cmp rax, rdx
setnbe cl
shl edx, cl
mov [r8+38h], edx
mov rax, rdi
shl rax, 5
lea rax, [rax+rax*2]
mov [rbp+var_A0], rax
mov eax, r13d
lea r14, [rdi+1]
mov r13, r11
imul r13, r14
mov rbx, r12
imul rbx, r14
mov rcx, r14
imul rcx, rax
lea rsi, [rax+0D0h]
imul rsi, rdi
add rsi, [rbp+var_98]
lea rsi, [rsi+rdx*8]
mov rdx, 0FFFFFFFFFFFFFF90h
sub rdx, rax
mov [rbp+var_88], rdi
imul r15, rdi, 70h ; 'p'
add r15, 70h ; 'p'
loc_5424C:
dec r14
sub r13, r11
sub rbx, r12
sub rcx, rax
add r15, 0FFFFFFFFFFFFFF90h
cmp r14, 9
jb short loc_5426E
lea rdi, [rsi+rdx]
cmp rsi, r9
mov rsi, rdi
ja short loc_5424C
loc_5426E:
mov [r8+10h], rcx
mov rdi, [rbp+var_90]
xor esi, esi
call my_large_malloc
mov r8, [rbp+var_30]
mov [r8+0A8h], rax
test rax, rax
jz short loc_54303
lea rax, key_memory_KEY_CACHE
mov edi, [rax]
mov r9d, [r8+38h]
shl r9, 3
sub rsp, 8
mov esi, 20h ; ' '
mov rdx, [rbp+var_48]
mov rcx, r15
mov r15, r8
mov r8, [rbp+var_70]
xor eax, eax
push 0
mov r10, [rbp+var_78]
push r10
push [rbp+var_58]
push r10
push [rbp+var_60]
push [rbp+var_A0]
push [rbp+var_68]
call my_multi_malloc_large
add rsp, 40h
test rax, rax
jnz loc_543C6
mov rsi, [r15+10h]
mov rdi, [r15+0A8h]
call my_large_free
mov qword ptr [r15+0A8h], 0
mov r8, r15
loc_54303:
cmp r14, 7
jbe short loc_54330
shr r14, 2
lea rdi, [r14+r14*2]
mov r13d, [r8+18h]
mov r9, [rbp+var_50]
mov r11, [rbp+var_80]
jmp loc_541AD
loc_54322:
mov byte ptr [r10+3], 0
mov r14d, [r10+48h]
jmp loc_5446A
loc_54330:
call _my_thread_var
mov dword ptr [rax], 0Ch
mov rax, [rbp+var_30]
mov eax, [rax+18h]
imul r14, rax
xor r15d, r15d
mov esi, 1000h
mov edi, 5
mov rdx, r14
xor eax, eax
call my_error
call _my_thread_var
mov rcx, [rbp+var_30]
mov ebx, [rax]
mov [rcx+48h], r15d
mov [rcx+160h], r15d
mov rdi, [rcx+0A8h]
test rdi, rdi
jz short loc_54397
mov rsi, [rcx+10h]
call my_large_free
mov rax, [rbp+var_30]
mov qword ptr [rax+0A8h], 0
loc_54397:
mov r14, [rbp+var_48]
mov rdi, [r14]
test rdi, rdi
jz short loc_543AF
call my_free
mov qword ptr [r14], 0
loc_543AF:
call _my_thread_var
mov [rax], ebx
mov rax, [rbp+var_30]
mov byte ptr [rax+3], 0
xor r14d, r14d
jmp loc_5447A
loc_543C6:
mov [r15+58h], r14
mov [r15+48h], r14d
mov rax, [rbp+var_88]
add eax, eax
mov [r15+40h], eax
mov dword ptr [r15+44h], 0
xor eax, eax
mov [r15+50h], rax
mov [r15+138h], rax
mov [r15+78h], rax
mov [r15+30h], rax
xorps xmm0, xmm0
movups xmmword ptr [r15+60h], xmm0
movups xmmword ptr [r15+90h], xmm0
movups xmmword ptr [r15+0B0h], xmm0
mov rcx, 28F5C28F5C28F5C3h
mov rdx, r14
cmp [rbp+var_34], 0
mov r10, r15
jz short loc_54437
shr rbx, 2
mov rax, rbx
mul rcx
shr rdx, 2
inc rdx
loc_54437:
mov [r10+20h], rdx
mov rdx, r14
cmp [rbp+var_3C], 0
jz short loc_54452
shr r13, 2
mov rax, r13
mul rcx
shr rdx, 2
loc_54452:
mov [r10+28h], rdx
mov eax, [rbp+var_38]
mov [r10+3Ch], eax
mov byte ptr [r10+3], 1
movups xmmword ptr [r10+118h], xmm0
loc_5446A:
xor eax, eax
test r14d, r14d
cmovg eax, r14d
mov [r10+160h], eax
loc_5447A:
mov eax, r14d
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long init_simple_key_cache(
char *a1,
unsigned int a2,
unsigned long long a3,
long long a4,
long long a5,
unsigned int a6)
{
unsigned long long v7; // r9
unsigned int v8; // r13d
char *v9; // r10
char v10; // al
unsigned long long v11; // r14
int v12; // r12d
unsigned long long v13; // rdi
int v14; // eax
unsigned int v15; // eax
unsigned int v16; // eax
long long v17; // r11
long long v18; // r12
char *v19; // r8
unsigned long long v20; // rdx
long long v21; // rdx
long long v22; // rax
unsigned long long v23; // r13
unsigned long long v24; // rbx
long long v25; // rcx
unsigned long long v26; // rsi
long long v27; // rdx
int v28; // r15d
bool v29; // cc
char *v30; // rdi
const char *v31; // rsi
long long v32; // rax
const char *v33; // rsi
int v34; // ecx
int v35; // r8d
int v36; // r9d
int v37; // ebx
long long v38; // rdi
long long v39; // rdi
unsigned long long v40; // rdx
unsigned long long v41; // rdx
int v42; // eax
long long v44; // [rsp+0h] [rbp-A0h]
char *v45; // [rsp+10h] [rbp-90h]
int v46; // [rsp+18h] [rbp-88h]
long long i; // [rsp+20h] [rbp-80h]
int v48; // [rsp+30h] [rbp-70h]
long long v49; // [rsp+38h] [rbp-68h]
long long v50; // [rsp+40h] [rbp-60h]
long long v51; // [rsp+48h] [rbp-58h]
long long *v53; // [rsp+58h] [rbp-48h]
int v54; // [rsp+64h] [rbp-3Ch]
unsigned int v55; // [rsp+68h] [rbp-38h]
int v56; // [rsp+6Ch] [rbp-34h]
int v57; // [rsp+6Ch] [rbp-34h]
v7 = a3;
v8 = a2;
v9 = a1;
v10 = *a1;
if ( *a1 )
{
LODWORD(v11) = 0;
if ( *((int *)a1 + 18) > 0 )
return (unsigned int)v11;
}
*((_OWORD *)a1 + 5) = 0LL;
*(_OWORD *)(a1 + 312) = 0LL;
*(_OWORD *)(a1 + 328) = 0LL;
*((_QWORD *)a1 + 43) = 0LL;
*((_DWORD *)a1 + 18) = -1;
if ( !v10 )
{
*(_WORD *)a1 = 1;
*((_DWORD *)a1 + 89) = 1;
a1[2] = 0;
*((_QWORD *)a1 + 14) = 0LL;
*((_QWORD *)a1 + 34) = 0LL;
a1[360] = 0;
v56 = a4;
v12 = a5;
*((_QWORD *)a1 + 32) = ((long long ( *)(_QWORD, char *, unsigned long long, long long, long long, unsigned long long))PSI_server[8])(
key_KEY_CACHE_cache_lock,
a1 + 192,
a3,
a4,
a5,
a3);
*((_QWORD *)a1 + 31) = a1 + 192;
*(_OWORD *)(a1 + 232) = 0LL;
pthread_mutex_init(a1 + 192, &my_fast_mutexattr);
LODWORD(a5) = v12;
v7 = a3;
LODWORD(a4) = v56;
v9 = a1;
*((_QWORD *)a1 + 33) = 0LL;
}
*((_QWORD *)v9 + 1) = v7;
*((_DWORD *)v9 + 6) = a2;
v13 = v7 / ((unsigned long long)a2 + 218);
v14 = 128;
if ( a6 >= 0x81 )
v14 = a6;
if ( v13 < 8 )
{
v9[3] = 0;
LODWORD(v11) = *((_DWORD *)v9 + 18);
goto LABEL_28;
}
v15 = (v14 - 1) | ((unsigned int)(v14 - 1) >> 1) | (((v14 - 1) | ((unsigned int)(v14 - 1) >> 1)) >> 2);
v16 = v15 | (v15 >> 4) | ((v15 | (v15 >> 4)) >> 8);
v55 = (v16 | HIWORD(v16)) + 1;
v45 = v9 + 16;
v53 = (long long *)(v9 + 160);
v48 = (_DWORD)v9 + 128;
v49 = (long long)(v9 + 136);
v50 = (long long)(v9 + 296);
v51 = (long long)(v9 + 304);
v54 = a5;
v17 = (unsigned int)a5;
v57 = a4;
v18 = (unsigned int)a4;
v19 = v9;
for ( i = v17; ; v17 = i )
{
v20 = 2
* (((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2)) >> 4) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2)) >> 4)) >> 8) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2)) >> 4) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2)) >> 4)) >> 8)) >> 16))
+ 2;
v21 = (unsigned int)((_DWORD)v20 << (v13 + (v13 >> 2) > v20));
*((_DWORD *)v19 + 14) = v21;
v44 = 96 * v13;
v22 = v8;
v11 = v13 + 1;
v23 = (v13 + 1) * v17;
v24 = (v13 + 1) * v18;
v25 = v22 * (v13 + 1);
v26 = 16LL * v55 + v13 * (v22 + 208) + 8 * v21;
v27 = -112 - v22;
v46 = v13;
v28 = 112 * v13 + 112;
do
{
--v11;
v23 -= v17;
v24 -= v18;
v25 -= v22;
v28 -= 112;
if ( v11 < 9 )
break;
v29 = v26 <= v7;
v26 += v27;
}
while ( !v29 );
*((_QWORD *)v19 + 2) = v25;
v30 = v45;
v31 = 0LL;
v32 = my_large_malloc(v45, 0LL, v27);
v19 = a1;
*((_QWORD *)a1 + 21) = v32;
if ( v32 )
break;
LABEL_15:
if ( v11 <= 7 )
{
*(_DWORD *)my_thread_var(v30, v31) = 12;
v33 = "open64" + 3;
my_error(5, 4096, *((_DWORD *)a1 + 6) * v11, v34, v35, v36);
v37 = *(_DWORD *)my_thread_var(5LL, "n64");
*((_DWORD *)a1 + 18) = 0;
*((_DWORD *)a1 + 88) = 0;
v38 = *((_QWORD *)a1 + 21);
if ( v38 )
{
v33 = (const char *)*((_QWORD *)a1 + 2);
my_large_free(v38, v33);
*((_QWORD *)a1 + 21) = 0LL;
}
v39 = *v53;
if ( *v53 )
{
my_free(v39);
*v53 = 0LL;
}
*(_DWORD *)my_thread_var(v39, v33) = v37;
a1[3] = 0;
LODWORD(v11) = 0;
return (unsigned int)v11;
}
v13 = 3 * (v11 >> 2);
v8 = *((_DWORD *)v19 + 6);
v7 = a3;
}
if ( !my_multi_malloc_large(
key_memory_KEY_CACHE,
32,
(_DWORD)v53,
v28,
v48,
8 * *((_DWORD *)a1 + 14),
v49,
v44,
v50,
8LL * v55,
v51,
8LL * v55,
0LL) )
{
v31 = (const char *)*((_QWORD *)a1 + 2);
v30 = (char *)*((_QWORD *)a1 + 21);
my_large_free(v30, v31);
*((_QWORD *)a1 + 21) = 0LL;
v19 = a1;
goto LABEL_15;
}
*((_QWORD *)a1 + 11) = v11;
*((_DWORD *)a1 + 18) = v11;
*((_DWORD *)a1 + 16) = 2 * v46;
*((_DWORD *)a1 + 17) = 0;
*((_QWORD *)a1 + 10) = 0LL;
*((_QWORD *)a1 + 39) = 0LL;
*((_QWORD *)a1 + 15) = 0LL;
*((_QWORD *)a1 + 6) = 0LL;
*((_OWORD *)a1 + 6) = 0LL;
*((_OWORD *)a1 + 9) = 0LL;
*((_OWORD *)a1 + 11) = 0LL;
v40 = v11;
v9 = a1;
if ( v57 )
v40 = v24 / 0x64 + 1;
*((_QWORD *)a1 + 4) = v40;
v41 = v11;
if ( v54 )
v41 = v23 / 0x64;
*((_QWORD *)a1 + 5) = v41;
*((_DWORD *)a1 + 15) = v55;
a1[3] = 1;
*(_OWORD *)(a1 + 280) = 0LL;
LABEL_28:
v42 = 0;
if ( (int)v11 > 0 )
v42 = v11;
*((_DWORD *)v9 + 88) = v42;
return (unsigned int)v11;
}
| init_simple_key_cache:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV EBX,R9D
MOV R9,RDX
MOV R13D,ESI
MOV R10,RDI
MOV AL,byte ptr [RDI]
TEST AL,AL
JZ 0x0015400e
XOR R14D,R14D
CMP dword ptr [R10 + 0x48],0x0
JG 0x0015447a
LAB_0015400e:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R10 + 0x50],XMM0
MOVUPS xmmword ptr [R10 + 0x138],XMM0
MOVUPS xmmword ptr [R10 + 0x148],XMM0
MOV qword ptr [R10 + 0x158],0x0
MOV dword ptr [R10 + 0x48],0xffffffff
TEST AL,AL
MOV qword ptr [RBP + -0x30],R10
MOV qword ptr [RBP + -0x50],R9
JNZ 0x001540e1
MOV word ptr [R10],0x1
MOV dword ptr [R10 + 0x164],0x1
XOR R15D,R15D
MOV byte ptr [R10 + 0x2],R15B
MOV qword ptr [R10 + 0x70],R15
MOV qword ptr [R10 + 0x110],R15
MOV byte ptr [R10 + 0x168],R15B
LEA RAX,[0x4ae9fc]
MOV EDI,dword ptr [RAX]
LEA R14,[R10 + 0xc0]
LEA RAX,[0x430350]
MOV RAX,qword ptr [RAX]
MOV RSI,R14
MOV dword ptr [RBP + -0x34],ECX
MOV R12D,R8D
CALL qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x30]
MOV qword ptr [RCX + 0x100],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0xf8],R14
MOV RAX,qword ptr [RBP + -0x30]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0xe8],XMM0
LEA RSI,[0x4af710]
MOV RDI,R14
CALL 0x00128570
MOV R8D,R12D
MOV R9,qword ptr [RBP + -0x50]
MOV ECX,dword ptr [RBP + -0x34]
MOV R10,qword ptr [RBP + -0x30]
MOV qword ptr [R10 + 0x108],R15
LAB_001540e1:
MOV qword ptr [R10 + 0x8],R9
MOV dword ptr [R10 + 0x18],R13D
MOV ESI,R13D
ADD RSI,0xda
MOV RAX,R9
XOR EDX,EDX
DIV RSI
MOV RDI,RAX
CMP EBX,0x81
MOV EAX,0x80
CMOVNC EAX,EBX
CMP RDI,0x8
JC 0x00154322
DEC EAX
MOV EDX,EAX
SHR EDX,0x1
OR EDX,EAX
MOV EAX,EDX
SHR EAX,0x2
OR EAX,EDX
MOV EDX,EAX
SHR EDX,0x4
OR EDX,EAX
MOV EAX,EDX
SHR EAX,0x8
OR EAX,EDX
MOV EDX,EAX
SHR EDX,0x10
OR EDX,EAX
INC EDX
MOV dword ptr [RBP + -0x38],EDX
MOV EDX,EDX
MOV RAX,RDX
SHL RAX,0x4
MOV qword ptr [RBP + -0x98],RAX
LEA RAX,[R10 + 0x10]
MOV qword ptr [RBP + -0x90],RAX
LEA RAX,[R10 + 0xa0]
MOV qword ptr [RBP + -0x48],RAX
LEA RAX,[R10 + 0x80]
MOV qword ptr [RBP + -0x70],RAX
LEA RAX,[R10 + 0x88]
MOV qword ptr [RBP + -0x68],RAX
LEA RAX,[R10 + 0x128]
MOV qword ptr [RBP + -0x60],RAX
SHL RDX,0x3
MOV qword ptr [RBP + -0x78],RDX
LEA RAX,[R10 + 0x130]
MOV qword ptr [RBP + -0x58],RAX
MOV dword ptr [RBP + -0x3c],R8D
MOV R11D,R8D
MOV dword ptr [RBP + -0x34],ECX
MOV R12D,ECX
MOV R8,R10
MOV qword ptr [RBP + -0x80],R11
LAB_001541ad:
LEA EAX,[RDI + -0x1]
MOV ECX,EAX
SHR ECX,0x1
OR ECX,EAX
MOV EAX,ECX
SHR EAX,0x2
OR EAX,ECX
MOV ECX,EAX
SHR ECX,0x4
OR ECX,EAX
MOV EAX,ECX
SHR EAX,0x8
OR EAX,ECX
MOV ECX,EAX
SHR ECX,0x10
OR ECX,EAX
LEA EDX,[0x2 + RCX*0x2]
MOV RAX,RDI
SHR RAX,0x2
ADD RAX,RDI
CMP RAX,RDX
SETA CL
SHL EDX,CL
MOV dword ptr [R8 + 0x38],EDX
MOV RAX,RDI
SHL RAX,0x5
LEA RAX,[RAX + RAX*0x2]
MOV qword ptr [RBP + -0xa0],RAX
MOV EAX,R13D
LEA R14,[RDI + 0x1]
MOV R13,R11
IMUL R13,R14
MOV RBX,R12
IMUL RBX,R14
MOV RCX,R14
IMUL RCX,RAX
LEA RSI,[RAX + 0xd0]
IMUL RSI,RDI
ADD RSI,qword ptr [RBP + -0x98]
LEA RSI,[RSI + RDX*0x8]
MOV RDX,-0x70
SUB RDX,RAX
MOV qword ptr [RBP + -0x88],RDI
IMUL R15,RDI,0x70
ADD R15,0x70
LAB_0015424c:
DEC R14
SUB R13,R11
SUB RBX,R12
SUB RCX,RAX
ADD R15,-0x70
CMP R14,0x9
JC 0x0015426e
LEA RDI,[RSI + RDX*0x1]
CMP RSI,R9
MOV RSI,RDI
JA 0x0015424c
LAB_0015426e:
MOV qword ptr [R8 + 0x10],RCX
MOV RDI,qword ptr [RBP + -0x90]
XOR ESI,ESI
CALL 0x0016031c
MOV R8,qword ptr [RBP + -0x30]
MOV qword ptr [R8 + 0xa8],RAX
TEST RAX,RAX
JZ 0x00154303
LEA RAX,[0x4af398]
MOV EDI,dword ptr [RAX]
MOV R9D,dword ptr [R8 + 0x38]
SHL R9,0x3
SUB RSP,0x8
MOV ESI,0x20
MOV RDX,qword ptr [RBP + -0x48]
MOV RCX,R15
MOV R15,R8
MOV R8,qword ptr [RBP + -0x70]
XOR EAX,EAX
PUSH 0x0
MOV R10,qword ptr [RBP + -0x78]
PUSH R10
PUSH qword ptr [RBP + -0x58]
PUSH R10
PUSH qword ptr [RBP + -0x60]
PUSH qword ptr [RBP + -0xa0]
PUSH qword ptr [RBP + -0x68]
CALL 0x00157d61
ADD RSP,0x40
TEST RAX,RAX
JNZ 0x001543c6
MOV RSI,qword ptr [R15 + 0x10]
MOV RDI,qword ptr [R15 + 0xa8]
CALL 0x001607cb
MOV qword ptr [R15 + 0xa8],0x0
MOV R8,R15
LAB_00154303:
CMP R14,0x7
JBE 0x00154330
SHR R14,0x2
LEA RDI,[R14 + R14*0x2]
MOV R13D,dword ptr [R8 + 0x18]
MOV R9,qword ptr [RBP + -0x50]
MOV R11,qword ptr [RBP + -0x80]
JMP 0x001541ad
LAB_00154322:
MOV byte ptr [R10 + 0x3],0x0
MOV R14D,dword ptr [R10 + 0x48]
JMP 0x0015446a
LAB_00154330:
CALL 0x0015c086
MOV dword ptr [RAX],0xc
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX + 0x18]
IMUL R14,RAX
XOR R15D,R15D
MOV ESI,0x1000
MOV EDI,0x5
MOV RDX,R14
XOR EAX,EAX
CALL 0x001588af
CALL 0x0015c086
MOV RCX,qword ptr [RBP + -0x30]
MOV EBX,dword ptr [RAX]
MOV dword ptr [RCX + 0x48],R15D
MOV dword ptr [RCX + 0x160],R15D
MOV RDI,qword ptr [RCX + 0xa8]
TEST RDI,RDI
JZ 0x00154397
MOV RSI,qword ptr [RCX + 0x10]
CALL 0x001607cb
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0xa8],0x0
LAB_00154397:
MOV R14,qword ptr [RBP + -0x48]
MOV RDI,qword ptr [R14]
TEST RDI,RDI
JZ 0x001543af
CALL 0x0015a5f2
MOV qword ptr [R14],0x0
LAB_001543af:
CALL 0x0015c086
MOV dword ptr [RAX],EBX
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX + 0x3],0x0
XOR R14D,R14D
JMP 0x0015447a
LAB_001543c6:
MOV qword ptr [R15 + 0x58],R14
MOV dword ptr [R15 + 0x48],R14D
MOV RAX,qword ptr [RBP + -0x88]
ADD EAX,EAX
MOV dword ptr [R15 + 0x40],EAX
MOV dword ptr [R15 + 0x44],0x0
XOR EAX,EAX
MOV qword ptr [R15 + 0x50],RAX
MOV qword ptr [R15 + 0x138],RAX
MOV qword ptr [R15 + 0x78],RAX
MOV qword ptr [R15 + 0x30],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15 + 0x60],XMM0
MOVUPS xmmword ptr [R15 + 0x90],XMM0
MOVUPS xmmword ptr [R15 + 0xb0],XMM0
MOV RCX,0x28f5c28f5c28f5c3
MOV RDX,R14
CMP dword ptr [RBP + -0x34],0x0
MOV R10,R15
JZ 0x00154437
SHR RBX,0x2
MOV RAX,RBX
MUL RCX
SHR RDX,0x2
INC RDX
LAB_00154437:
MOV qword ptr [R10 + 0x20],RDX
MOV RDX,R14
CMP dword ptr [RBP + -0x3c],0x0
JZ 0x00154452
SHR R13,0x2
MOV RAX,R13
MUL RCX
SHR RDX,0x2
LAB_00154452:
MOV qword ptr [R10 + 0x28],RDX
MOV EAX,dword ptr [RBP + -0x38]
MOV dword ptr [R10 + 0x3c],EAX
MOV byte ptr [R10 + 0x3],0x1
MOVUPS xmmword ptr [R10 + 0x118],XMM0
LAB_0015446a:
XOR EAX,EAX
TEST R14D,R14D
CMOVG EAX,R14D
MOV dword ptr [R10 + 0x160],EAX
LAB_0015447a:
MOV EAX,R14D
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong init_simple_key_cache
(char *param_1,uint param_2,ulong param_3,uint param_4,uint param_5,uint param_6)
{
pthread_mutex_t *__mutex;
long *plVar1;
int4 uVar2;
bool bVar3;
uint uVar4;
int iVar5;
int8 uVar6;
ulong uVar7;
int4 *puVar8;
long lVar9;
uint uVar10;
long lVar11;
ulong uVar12;
ulong uVar13;
ulong uVar14;
ulong uVar15;
ulong uVar16;
long lVar17;
uVar12 = (ulong)param_2;
if ((*param_1 == '\0') || (uVar16 = 0, *(int *)(param_1 + 0x48) < 1)) {
param_1[0x50] = '\0';
param_1[0x51] = '\0';
param_1[0x52] = '\0';
param_1[0x53] = '\0';
param_1[0x54] = '\0';
param_1[0x55] = '\0';
param_1[0x56] = '\0';
param_1[0x57] = '\0';
param_1[0x58] = '\0';
param_1[0x59] = '\0';
param_1[0x5a] = '\0';
param_1[0x5b] = '\0';
param_1[0x5c] = '\0';
param_1[0x5d] = '\0';
param_1[0x5e] = '\0';
param_1[0x5f] = '\0';
param_1[0x138] = '\0';
param_1[0x139] = '\0';
param_1[0x13a] = '\0';
param_1[0x13b] = '\0';
param_1[0x13c] = '\0';
param_1[0x13d] = '\0';
param_1[0x13e] = '\0';
param_1[0x13f] = '\0';
param_1[0x140] = '\0';
param_1[0x141] = '\0';
param_1[0x142] = '\0';
param_1[0x143] = '\0';
param_1[0x144] = '\0';
param_1[0x145] = '\0';
param_1[0x146] = '\0';
param_1[0x147] = '\0';
param_1[0x148] = '\0';
param_1[0x149] = '\0';
param_1[0x14a] = '\0';
param_1[0x14b] = '\0';
param_1[0x14c] = '\0';
param_1[0x14d] = '\0';
param_1[0x14e] = '\0';
param_1[0x14f] = '\0';
param_1[0x150] = '\0';
param_1[0x151] = '\0';
param_1[0x152] = '\0';
param_1[0x153] = '\0';
param_1[0x154] = '\0';
param_1[0x155] = '\0';
param_1[0x156] = '\0';
param_1[0x157] = '\0';
param_1[0x158] = '\0';
param_1[0x159] = '\0';
param_1[0x15a] = '\0';
param_1[0x15b] = '\0';
param_1[0x15c] = '\0';
param_1[0x15d] = '\0';
param_1[0x15e] = '\0';
param_1[0x15f] = '\0';
param_1[0x48] = -1;
param_1[0x49] = -1;
param_1[0x4a] = -1;
param_1[0x4b] = -1;
if (*param_1 == '\0') {
param_1[0] = '\x01';
param_1[1] = '\0';
param_1[0x164] = '\x01';
param_1[0x165] = '\0';
param_1[0x166] = '\0';
param_1[0x167] = '\0';
param_1[2] = '\0';
param_1[0x70] = '\0';
param_1[0x71] = '\0';
param_1[0x72] = '\0';
param_1[0x73] = '\0';
param_1[0x74] = '\0';
param_1[0x75] = '\0';
param_1[0x76] = '\0';
param_1[0x77] = '\0';
param_1[0x110] = '\0';
param_1[0x111] = '\0';
param_1[0x112] = '\0';
param_1[0x113] = '\0';
param_1[0x114] = '\0';
param_1[0x115] = '\0';
param_1[0x116] = '\0';
param_1[0x117] = '\0';
param_1[0x168] = '\0';
__mutex = (pthread_mutex_t *)(param_1 + 0xc0);
uVar6 = (**(code **)(PSI_server + 0x40))(key_KEY_CACHE_cache_lock,__mutex);
*(int8 *)(param_1 + 0x100) = uVar6;
*(pthread_mutex_t **)(param_1 + 0xf8) = __mutex;
param_1[0xe8] = '\0';
param_1[0xe9] = '\0';
param_1[0xea] = '\0';
param_1[0xeb] = '\0';
param_1[0xec] = '\0';
param_1[0xed] = '\0';
param_1[0xee] = '\0';
param_1[0xef] = '\0';
param_1[0xf0] = '\0';
param_1[0xf1] = '\0';
param_1[0xf2] = '\0';
param_1[0xf3] = '\0';
param_1[0xf4] = '\0';
param_1[0xf5] = '\0';
param_1[0xf6] = '\0';
param_1[0xf7] = '\0';
pthread_mutex_init(__mutex,(pthread_mutexattr_t *)&my_fast_mutexattr);
param_1[0x108] = '\0';
param_1[0x109] = '\0';
param_1[0x10a] = '\0';
param_1[0x10b] = '\0';
param_1[0x10c] = '\0';
param_1[0x10d] = '\0';
param_1[0x10e] = '\0';
param_1[0x10f] = '\0';
}
*(ulong *)(param_1 + 8) = param_3;
*(uint *)(param_1 + 0x18) = param_2;
uVar7 = param_3 / ((ulong)param_2 + 0xda);
uVar10 = 0x80;
if (0x80 < param_6) {
uVar10 = param_6;
}
if (7 < uVar7) {
uVar10 = uVar10 - 1 >> 1 | uVar10 - 1;
uVar10 = uVar10 >> 2 | uVar10;
uVar10 = uVar10 >> 4 | uVar10;
uVar10 = uVar10 >> 8 | uVar10;
uVar10 = (uVar10 >> 0x10 | uVar10) + 1;
plVar1 = (long *)(param_1 + 0xa0);
lVar11 = (ulong)uVar10 << 3;
do {
uVar4 = (int)uVar7 - 1;
uVar4 = uVar4 >> 1 | uVar4;
uVar4 = uVar4 >> 2 | uVar4;
uVar4 = uVar4 >> 4 | uVar4;
uVar4 = uVar4 >> 8 | uVar4;
uVar4 = (uVar4 >> 0x10 | uVar4) * 2 + 2;
uVar4 = uVar4 << ((ulong)uVar4 < (uVar7 >> 2) + uVar7);
*(uint *)(param_1 + 0x38) = uVar4;
uVar16 = uVar7 + 1;
uVar15 = param_5 * uVar16;
uVar13 = param_4 * uVar16;
lVar9 = uVar16 * uVar12;
lVar17 = uVar7 * 0x70 + 0x70;
uVar14 = (uVar12 + 0xd0) * uVar7 + (ulong)uVar10 * 0x10 + (ulong)uVar4 * 8;
do {
uVar16 = uVar16 - 1;
uVar15 = uVar15 - param_5;
uVar13 = uVar13 - param_4;
lVar9 = lVar9 - uVar12;
lVar17 = lVar17 + -0x70;
if (uVar16 < 9) break;
bVar3 = param_3 < uVar14;
uVar14 = uVar14 + (-0x70 - uVar12);
} while (bVar3);
*(long *)(param_1 + 0x10) = lVar9;
lVar9 = my_large_malloc(param_1 + 0x10,0);
*(long *)(param_1 + 0xa8) = lVar9;
if (lVar9 != 0) {
lVar9 = my_multi_malloc_large
(key_memory_KEY_CACHE,0x20,plVar1,lVar17,param_1 + 0x80,
(ulong)*(uint *)(param_1 + 0x38) << 3,param_1 + 0x88,uVar7 * 0x60,
param_1 + 0x128,lVar11,param_1 + 0x130,lVar11,0);
if (lVar9 != 0) {
*(ulong *)(param_1 + 0x58) = uVar16;
*(int *)(param_1 + 0x48) = (int)uVar16;
*(int *)(param_1 + 0x40) = (int)uVar7 * 2;
param_1[0x44] = '\0';
param_1[0x45] = '\0';
param_1[0x46] = '\0';
param_1[0x47] = '\0';
param_1[0x50] = '\0';
param_1[0x51] = '\0';
param_1[0x52] = '\0';
param_1[0x53] = '\0';
param_1[0x54] = '\0';
param_1[0x55] = '\0';
param_1[0x56] = '\0';
param_1[0x57] = '\0';
param_1[0x138] = '\0';
param_1[0x139] = '\0';
param_1[0x13a] = '\0';
param_1[0x13b] = '\0';
param_1[0x13c] = '\0';
param_1[0x13d] = '\0';
param_1[0x13e] = '\0';
param_1[0x13f] = '\0';
param_1[0x78] = '\0';
param_1[0x79] = '\0';
param_1[0x7a] = '\0';
param_1[0x7b] = '\0';
param_1[0x7c] = '\0';
param_1[0x7d] = '\0';
param_1[0x7e] = '\0';
param_1[0x7f] = '\0';
param_1[0x30] = '\0';
param_1[0x31] = '\0';
param_1[0x32] = '\0';
param_1[0x33] = '\0';
param_1[0x34] = '\0';
param_1[0x35] = '\0';
param_1[0x36] = '\0';
param_1[0x37] = '\0';
param_1[0x60] = '\0';
param_1[0x61] = '\0';
param_1[0x62] = '\0';
param_1[99] = '\0';
param_1[100] = '\0';
param_1[0x65] = '\0';
param_1[0x66] = '\0';
param_1[0x67] = '\0';
param_1[0x68] = '\0';
param_1[0x69] = '\0';
param_1[0x6a] = '\0';
param_1[0x6b] = '\0';
param_1[0x6c] = '\0';
param_1[0x6d] = '\0';
param_1[0x6e] = '\0';
param_1[0x6f] = '\0';
param_1[0x90] = '\0';
param_1[0x91] = '\0';
param_1[0x92] = '\0';
param_1[0x93] = '\0';
param_1[0x94] = '\0';
param_1[0x95] = '\0';
param_1[0x96] = '\0';
param_1[0x97] = '\0';
param_1[0x98] = '\0';
param_1[0x99] = '\0';
param_1[0x9a] = '\0';
param_1[0x9b] = '\0';
param_1[0x9c] = '\0';
param_1[0x9d] = '\0';
param_1[0x9e] = '\0';
param_1[0x9f] = '\0';
param_1[0xb0] = '\0';
param_1[0xb1] = '\0';
param_1[0xb2] = '\0';
param_1[0xb3] = '\0';
param_1[0xb4] = '\0';
param_1[0xb5] = '\0';
param_1[0xb6] = '\0';
param_1[0xb7] = '\0';
param_1[0xb8] = '\0';
param_1[0xb9] = '\0';
param_1[0xba] = '\0';
param_1[0xbb] = '\0';
param_1[0xbc] = '\0';
param_1[0xbd] = '\0';
param_1[0xbe] = '\0';
param_1[0xbf] = '\0';
uVar12 = uVar16;
if (param_4 != 0) {
uVar12 = uVar13 / 100 + 1;
}
*(ulong *)(param_1 + 0x20) = uVar12;
uVar12 = uVar16;
if (param_5 != 0) {
uVar12 = uVar15 / 100;
}
*(ulong *)(param_1 + 0x28) = uVar12;
*(uint *)(param_1 + 0x3c) = uVar10;
param_1[3] = '\x01';
param_1[0x118] = '\0';
param_1[0x119] = '\0';
param_1[0x11a] = '\0';
param_1[0x11b] = '\0';
param_1[0x11c] = '\0';
param_1[0x11d] = '\0';
param_1[0x11e] = '\0';
param_1[0x11f] = '\0';
param_1[0x120] = '\0';
param_1[0x121] = '\0';
param_1[0x122] = '\0';
param_1[0x123] = '\0';
param_1[0x124] = '\0';
param_1[0x125] = '\0';
param_1[0x126] = '\0';
param_1[0x127] = '\0';
goto LAB_0015446a;
}
my_large_free(*(int8 *)(param_1 + 0xa8),*(int8 *)(param_1 + 0x10));
param_1[0xa8] = '\0';
param_1[0xa9] = '\0';
param_1[0xaa] = '\0';
param_1[0xab] = '\0';
param_1[0xac] = '\0';
param_1[0xad] = '\0';
param_1[0xae] = '\0';
param_1[0xaf] = '\0';
}
if (uVar16 < 8) goto LAB_00154330;
uVar7 = (uVar16 >> 2) * 3;
uVar12 = (ulong)*(uint *)(param_1 + 0x18);
} while( true );
}
param_1[3] = '\0';
uVar16 = (ulong)*(uint *)(param_1 + 0x48);
LAB_0015446a:
iVar5 = 0;
if (0 < (int)uVar16) {
iVar5 = (int)uVar16;
}
*(int *)(param_1 + 0x160) = iVar5;
}
LAB_0015447a:
return uVar16 & 0xffffffff;
LAB_00154330:
puVar8 = (int4 *)_my_thread_var();
*puVar8 = 0xc;
my_error(5,0x1000,uVar16 * *(uint *)(param_1 + 0x18));
puVar8 = (int4 *)_my_thread_var();
uVar2 = *puVar8;
param_1[0x48] = '\0';
param_1[0x49] = '\0';
param_1[0x4a] = '\0';
param_1[0x4b] = '\0';
param_1[0x160] = '\0';
param_1[0x161] = '\0';
param_1[0x162] = '\0';
param_1[0x163] = '\0';
if (*(long *)(param_1 + 0xa8) != 0) {
my_large_free(*(long *)(param_1 + 0xa8),*(int8 *)(param_1 + 0x10));
param_1[0xa8] = '\0';
param_1[0xa9] = '\0';
param_1[0xaa] = '\0';
param_1[0xab] = '\0';
param_1[0xac] = '\0';
param_1[0xad] = '\0';
param_1[0xae] = '\0';
param_1[0xaf] = '\0';
}
if (*plVar1 != 0) {
my_free();
*plVar1 = 0;
}
puVar8 = (int4 *)_my_thread_var();
*puVar8 = uVar2;
param_1[3] = '\0';
uVar16 = 0;
goto LAB_0015447a;
}
| |
29,736 | ma_insert_dynamic | eloqsql/libmariadb/libmariadb/ma_array.c | my_bool ma_insert_dynamic(DYNAMIC_ARRAY *array, void *element)
{
void *buffer;
if (array->elements == array->max_element)
{ /* Call only when necessary */
if (!(buffer=ma_alloc_dynamic(array)))
return TRUE;
}
else
{
buffer=array->buffer+(array->elements * array->size_of_element);
array->elements++;
}
memcpy(buffer,element,(size_t) array->size_of_element);
return FALSE;
} | O0 | c | ma_insert_dynamic:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jne 0xa752b
movq -0x10(%rbp), %rdi
callq 0xa7580
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0xa7529
movb $0x1, -0x1(%rbp)
jmp 0xa7571
jmp 0xa7557
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movl 0x8(%rcx), %ecx
movq -0x10(%rbp), %rdx
imull 0x14(%rdx), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, %edx
callq 0x600e0
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| ma_insert_dynamic:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov eax, [rax+8]
mov rcx, [rbp+var_10]
cmp eax, [rcx+0Ch]
jnz short loc_A752B
mov rdi, [rbp+var_10]
call ma_alloc_dynamic
mov [rbp+var_20], rax
cmp rax, 0
jnz short loc_A7529
mov [rbp+var_1], 1
jmp short loc_A7571
loc_A7529:
jmp short loc_A7557
loc_A752B:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rcx, [rbp+var_10]
mov ecx, [rcx+8]
mov rdx, [rbp+var_10]
imul ecx, [rdx+14h]
mov ecx, ecx
add rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov ecx, [rax+8]
add ecx, 1
mov [rax+8], ecx
loc_A7557:
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_18]
mov rax, [rbp+var_10]
mov eax, [rax+14h]
mov edx, eax
call _memcpy
mov [rbp+var_1], 0
loc_A7571:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char ma_insert_dynamic(long long a1, long long a2)
{
long long v3; // [rsp+0h] [rbp-20h]
if ( *(_DWORD *)(a1 + 8) != *(_DWORD *)(a1 + 12) )
{
v3 = (unsigned int)(*(_DWORD *)(a1 + 20) * (*(_DWORD *)(a1 + 8))++) + *(_QWORD *)a1;
LABEL_6:
memcpy(v3, a2, *(unsigned int *)(a1 + 20));
return 0;
}
v3 = ma_alloc_dynamic(a1);
if ( v3 )
goto LABEL_6;
return 1;
}
| ma_insert_dynamic:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0xc]
JNZ 0x001a752b
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001a7580
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JNZ 0x001a7529
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001a7571
LAB_001a7529:
JMP 0x001a7557
LAB_001a752b:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x8]
MOV RDX,qword ptr [RBP + -0x10]
IMUL ECX,dword ptr [RDX + 0x14]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x8]
ADD ECX,0x1
MOV dword ptr [RAX + 0x8],ECX
LAB_001a7557:
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x14]
MOV EDX,EAX
CALL 0x001600e0
MOV byte ptr [RBP + -0x1],0x0
LAB_001a7571:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 ma_insert_dynamic(long *param_1,void *param_2)
{
void *local_28;
if ((int)param_1[1] == *(int *)((long)param_1 + 0xc)) {
local_28 = (void *)ma_alloc_dynamic(param_1);
if (local_28 == (void *)0x0) {
return 1;
}
}
else {
local_28 = (void *)(*param_1 + (ulong)(uint)((int)param_1[1] * *(int *)((long)param_1 + 0x14)));
*(int *)(param_1 + 1) = (int)param_1[1] + 1;
}
memcpy(local_28,param_2,(ulong)*(uint *)((long)param_1 + 0x14));
return 0;
}
| |
29,737 | maria_write_data_suffix | eloqsql/storage/maria/ma_check.c | int maria_write_data_suffix(MARIA_SORT_INFO *sort_info, my_bool fix_datafile)
{
MARIA_HA *info=sort_info->new_info;
if (info->s->data_file_type == COMPRESSED_RECORD && fix_datafile)
{
uchar buff[MEMMAP_EXTRA_MARGIN];
bzero(buff,sizeof(buff));
if (my_b_write(&info->rec_cache,buff,sizeof(buff)))
{
_ma_check_print_error(sort_info->param,
"%d when writing to datafile",my_errno);
return 1;
}
sort_info->param->read_cache.end_of_file+=sizeof(buff);
}
return 0;
} | O0 | c | maria_write_data_suffix:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %sil, %al
movq %fs:0x28, %rcx
movq %rcx, -0x8(%rbp)
movq %rdi, -0x20(%rbp)
movb %al, -0x21(%rbp)
movq -0x20(%rbp), %rax
movq 0x88(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
cmpl $0x2, 0x7d0(%rax)
jne 0xa0c37
movsbl -0x21(%rbp), %eax
cmpl $0x0, %eax
je 0xa0c37
leaq -0xf(%rbp), %rdi
xorl %esi, %esi
movl $0x7, %edx
callq 0x2a2f0
movq -0x30(%rbp), %rdi
addq $0x4b8, %rdi # imm = 0x4B8
leaq -0xf(%rbp), %rsi
movl $0x7, %edx
callq 0xa6ff0
cmpl $0x0, %eax
je 0xa0c1a
movq -0x20(%rbp), %rax
movq 0x90(%rax), %rax
movq %rax, -0x38(%rbp)
callq 0x122520
movq -0x38(%rbp), %rdi
movl (%rax), %edx
leaq 0xe0f23(%rip), %rsi # 0x181b2d
movb $0x0, %al
callq 0x2b640
movl $0x1, -0x14(%rbp)
jmp 0xa0c3e
movq -0x20(%rbp), %rax
movq 0x90(%rax), %rax
movq 0x20bb8(%rax), %rcx
addq $0x7, %rcx
movq %rcx, 0x20bb8(%rax)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xa0c5f
movl -0x3c(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
callq 0x2a290
nopw %cs:(%rax,%rax)
| maria_write_data_suffix:
push rbp
mov rbp, rsp
sub rsp, 40h
mov al, sil
mov rcx, fs:28h
mov [rbp+var_8], rcx
mov [rbp+var_20], rdi
mov [rbp+var_21], al
mov rax, [rbp+var_20]
mov rax, [rax+88h]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov rax, [rax]
cmp dword ptr [rax+7D0h], 2
jnz loc_A0C37
movsx eax, [rbp+var_21]
cmp eax, 0
jz short loc_A0C37
lea rdi, [rbp+var_F]
xor esi, esi
mov edx, 7
call _memset
mov rdi, [rbp+var_30]
add rdi, 4B8h
lea rsi, [rbp+var_F]
mov edx, 7
call my_b_write_1
cmp eax, 0
jz short loc_A0C1A
mov rax, [rbp+var_20]
mov rax, [rax+90h]
mov [rbp+var_38], rax
call _my_thread_var
mov rdi, [rbp+var_38]
mov edx, [rax]
lea rsi, aDWhenWritingTo; "%d when writing to datafile"
mov al, 0
call _ma_check_print_error
mov [rbp+var_14], 1
jmp short loc_A0C3E
loc_A0C1A:
mov rax, [rbp+var_20]
mov rax, [rax+90h]
mov rcx, qword ptr ds:stru_20BB8.r_offset[rax]
add rcx, 7
mov qword ptr ds:stru_20BB8.r_offset[rax], rcx
loc_A0C37:
mov [rbp+var_14], 0
loc_A0C3E:
mov eax, [rbp+var_14]
mov [rbp+var_3C], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_A0C5F
mov eax, [rbp+var_3C]
add rsp, 40h
pop rbp
retn
loc_A0C5F:
call ___stack_chk_fail
| long long maria_write_data_suffix(
long long a1,
char a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
long long v10; // rdx
long long v11; // rcx
long long v12; // r8
long long v13; // r9
unsigned int *v14; // rax
long long v15; // rcx
long long v16; // r8
long long v17; // r9
__m128 v18; // xmm4
__m128 v19; // xmm5
char v21; // [rsp+0h] [rbp-40h]
long long v22; // [rsp+8h] [rbp-38h]
long long v23; // [rsp+10h] [rbp-30h]
_BYTE v25[7]; // [rsp+31h] [rbp-Fh] BYREF
unsigned long long v26; // [rsp+38h] [rbp-8h]
v26 = __readfsqword(0x28u);
v23 = *(_QWORD *)(a1 + 136);
if ( *(_DWORD *)(*(_QWORD *)v23 + 2000LL) != 2 || !a2 )
return 0;
memset(v25, 0LL, sizeof(v25));
if ( !(unsigned int)my_b_write_1(v23 + 1208, v25, 7LL) )
{
*(unsigned long long *)((char *)&stru_20BB8.r_offset + *(_QWORD *)(a1 + 144)) += 7LL;
return 0;
}
v22 = *(_QWORD *)(a1 + 144);
v14 = (unsigned int *)my_thread_var(v23 + 1208, v25, v10, v11, v12, v13);
ma_check_print_error(
v22,
(long long)"%d when writing to datafile",
*v14,
v15,
v16,
v17,
a3,
a4,
a5,
a6,
v18,
v19,
a9,
a10,
v21);
return 1;
}
| maria_write_data_suffix:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV AL,SIL
MOV RCX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RCX
MOV qword ptr [RBP + -0x20],RDI
MOV byte ptr [RBP + -0x21],AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x88]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x7d0],0x2
JNZ 0x001a0c37
MOVSX EAX,byte ptr [RBP + -0x21]
CMP EAX,0x0
JZ 0x001a0c37
LEA RDI,[RBP + -0xf]
XOR ESI,ESI
MOV EDX,0x7
CALL 0x0012a2f0
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0x4b8
LEA RSI,[RBP + -0xf]
MOV EDX,0x7
CALL 0x001a6ff0
CMP EAX,0x0
JZ 0x001a0c1a
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x90]
MOV qword ptr [RBP + -0x38],RAX
CALL 0x00222520
MOV RDI,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RAX]
LEA RSI,[0x281b2d]
MOV AL,0x0
CALL 0x0012b640
MOV dword ptr [RBP + -0x14],0x1
JMP 0x001a0c3e
LAB_001a0c1a:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x90]
MOV RCX,qword ptr [RAX + 0x20bb8]
ADD RCX,0x7
MOV qword ptr [RAX + 0x20bb8],RCX
LAB_001a0c37:
MOV dword ptr [RBP + -0x14],0x0
LAB_001a0c3e:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001a0c5f
MOV EAX,dword ptr [RBP + -0x3c]
ADD RSP,0x40
POP RBP
RET
LAB_001a0c5f:
CALL 0x0012a290
|
int4 maria_write_data_suffix(long param_1,char param_2)
{
long *plVar1;
int8 uVar2;
int iVar3;
int4 *puVar4;
long in_FS_OFFSET;
int4 local_1c;
int1 local_17 [7];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
plVar1 = *(long **)(param_1 + 0x88);
if ((*(int *)(*plVar1 + 2000) == 2) && (param_2 != '\0')) {
memset(local_17,0,7);
iVar3 = my_b_write(plVar1 + 0x97,local_17,7);
if (iVar3 != 0) {
uVar2 = *(int8 *)(param_1 + 0x90);
puVar4 = (int4 *)_my_thread_var();
_ma_check_print_error(uVar2,"%d when writing to datafile",*puVar4);
local_1c = 1;
goto LAB_001a0c3e;
}
*(long *)(*(long *)(param_1 + 0x90) + 0x20bb8) =
*(long *)(*(long *)(param_1 + 0x90) + 0x20bb8) + 7;
}
local_1c = 0;
LAB_001a0c3e:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_1c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
29,738 | translog_wait_for_writers | eloqsql/storage/maria/ma_loghandler.c | static void translog_wait_for_writers(struct st_translog_buffer *buffer)
{
DBUG_ENTER("translog_wait_for_writers");
DBUG_PRINT("enter", ("Buffer #%u %p copies in progress: %u "
"is closing %u File: %d size: %lu",
(uint) buffer->buffer_no, buffer,
(uint) buffer->copy_to_buffer_in_progress,
(uint) buffer->is_closing_buffer,
(buffer->file ? buffer->file->handler.file : -1),
(ulong) buffer->size));
translog_buffer_lock_assert_owner(buffer);
while (buffer->copy_to_buffer_in_progress)
{
DBUG_PRINT("info", ("wait for writers... buffer: #%u %p",
(uint) buffer->buffer_no, buffer));
DBUG_ASSERT(buffer->file != NULL);
mysql_cond_wait(&buffer->waiting_filling_buffer, &buffer->mutex);
DBUG_PRINT("info", ("wait for writers done buffer: #%u %p",
(uint) buffer->buffer_no, buffer));
}
DBUG_VOID_RETURN;
} | O3 | c | translog_wait_for_writers:
cmpl $0x0, 0x100078(%rdi)
je 0x4ffcd
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x100040(%rdi), %r14
leaq 0x100090(%rdi), %r15
leaq 0x8b1b1(%rip), %r12 # 0xdb141
cmpq $0x0, 0x100070(%rbx)
jne 0x4ffb0
movq %r14, %rdi
movq %r15, %rsi
callq 0x29430
cmpl $0x0, 0x100078(%rbx)
jne 0x4ff90
jmp 0x4ffc5
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl $0x806, %ecx # imm = 0x806
callq 0x2eea0
jmp 0x4ffa5
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| translog_wait_for_writers:
cmp ds:dword_100078[rdi], 0
jz short locret_4FFCD
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rdi
lea r14, unk_100040[rdi]
lea r15, unk_100090[rdi]
lea r12, aWorkspaceLlm4b_7; "/workspace/llm4binary/github2025/eloqsq"...
loc_4FF90:
cmp ds:qword_100070[rbx], 0
jnz short loc_4FFB0
mov rdi, r14
mov rsi, r15
call _pthread_cond_wait
loc_4FFA5:
cmp ds:dword_100078[rbx], 0
jnz short loc_4FF90
jmp short loc_4FFC5
loc_4FFB0:
mov rdi, r14
mov rsi, r15
mov rdx, r12
mov ecx, 806h
call psi_cond_wait
jmp short loc_4FFA5
loc_4FFC5:
pop rbx
pop r12
pop r14
pop r15
pop rbp
locret_4FFCD:
retn
| long long translog_wait_for_writers(long long a1)
{
char *v1; // r14
char *v2; // r15
long long result; // rax
if ( *(int *)((char *)&dword_100078 + a1) )
{
v1 = (char *)&unk_100040 + a1;
v2 = (char *)&unk_100090 + a1;
do
{
if ( *(long long *)((char *)&qword_100070 + a1) )
result = psi_cond_wait(
(long long)v1,
(long long)v2,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x806u);
else
result = pthread_cond_wait(v1, v2);
}
while ( *(int *)((char *)&dword_100078 + a1) );
}
return result;
}
| translog_wait_for_writers:
CMP dword ptr [RDI + 0x100078],0x0
JZ 0x0014ffcd
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RDI
LEA R14,[RDI + 0x100040]
LEA R15,[RDI + 0x100090]
LEA R12,[0x1db141]
LAB_0014ff90:
CMP qword ptr [RBX + 0x100070],0x0
JNZ 0x0014ffb0
MOV RDI,R14
MOV RSI,R15
CALL 0x00129430
LAB_0014ffa5:
CMP dword ptr [RBX + 0x100078],0x0
JNZ 0x0014ff90
JMP 0x0014ffc5
LAB_0014ffb0:
MOV RDI,R14
MOV RSI,R15
MOV RDX,R12
MOV ECX,0x806
CALL 0x0012eea0
JMP 0x0014ffa5
LAB_0014ffc5:
POP RBX
POP R12
POP R14
POP R15
POP RBP
LAB_0014ffcd:
RET
|
void translog_wait_for_writers(long param_1)
{
pthread_cond_t *__cond;
pthread_mutex_t *__mutex;
if (*(int *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_type + param_1) != 0) {
__cond = (pthread_cond_t *)((long)&Elf64_Phdr_ARRAY_00100040[0].p_type + param_1);
__mutex = (pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + param_1);
do {
if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[0].p_align + param_1) == 0) {
pthread_cond_wait(__cond,__mutex);
}
else {
psi_cond_wait(__cond,__mutex,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",0x806
);
}
} while (*(int *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_type + param_1) != 0);
}
return;
}
| |
29,739 | unsigned char ByteBuffer::read<unsigned char>(unsigned long) const | SylCore-WoTLK/src/server/shared/Packets/ByteBuffer.h | [[nodiscard]] T read(std::size_t pos) const
{
if (pos + sizeof(T) > size())
{
throw ByteBufferPositionException(false, pos, sizeof(T), size());
}
T val = *((T const*)&_storage[pos]);
EndianConvert(val);
return val;
} | O0 | c | unsigned char ByteBuffer::read<unsigned char>(unsigned long) const:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
movq %rdi, 0x18(%rsp)
movq 0x38(%rsp), %rax
addq $0x4, %rax
movq %rax, 0x20(%rsp)
callq 0x83580
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jbe 0x988da
movl $0x28, %edi
callq 0x217b0
movq 0x18(%rsp), %rdi
movq %rax, 0x8(%rsp)
movq %rax, (%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
callq 0x83580
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
movq %rax, %r8
xorl %esi, %esi
movl $0x4, %ecx
callq 0x94b20
jmp 0x988aa
movq (%rsp), %rdi
leaq 0x335e7b(%rip), %rsi # 0x3ce730
leaq -0x46c(%rip), %rdx # 0x98450
callq 0x21ca0
movq (%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
callq 0x22360
jmp 0x9890c
movq 0x18(%rsp), %rdi
addq $0x18, %rdi
movq 0x38(%rsp), %rsi
callq 0x985e0
movss (%rax), %xmm0
movss %xmm0, 0x28(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x87bd0
movss 0x28(%rsp), %xmm0
addq $0x48, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x21d50
nopw %cs:(%rax,%rax)
| _ZNK10ByteBuffer4readIfEET_m:
sub rsp, 48h
mov [rsp+48h+var_8], rdi
mov [rsp+48h+var_10], rsi
mov rdi, [rsp+48h+var_8]; this
mov [rsp+48h+var_30], rdi
mov rax, [rsp+48h+var_10]
add rax, 4
mov [rsp+48h+var_28], rax
call _ZNK10ByteBuffer4sizeEv; ByteBuffer::size(void)
mov rcx, rax
mov rax, [rsp+48h+var_28]
cmp rax, rcx
jbe short loc_988DA
mov edi, 28h ; '('; thrown_size
call ___cxa_allocate_exception
mov rdi, [rsp+48h+var_30]; this
mov [rsp+48h+var_40], rax
mov [rsp+48h+var_48], rax
mov rax, [rsp+48h+var_10]
mov [rsp+48h+var_38], rax
call _ZNK10ByteBuffer4sizeEv; ByteBuffer::size(void)
mov rdi, [rsp+48h+var_40]; this
mov rdx, [rsp+48h+var_38]; unsigned __int64
mov r8, rax; unsigned __int64
xor esi, esi; bool
mov ecx, 4; unsigned __int64
call _ZN27ByteBufferPositionExceptionC2Ebmmm; ByteBufferPositionException::ByteBufferPositionException(bool,ulong,ulong,ulong)
jmp short $+2
loc_988AA:
mov rdi, [rsp+48h+var_48]; void *
lea rsi, _ZTI27ByteBufferPositionException; lptinfo
lea rdx, _ZN27ByteBufferPositionExceptionD2Ev; void (*)(void *)
call ___cxa_throw
mov rdi, [rsp+48h+var_48]; void *
mov rcx, rax
mov eax, edx
mov [rsp+48h+var_18], rcx
mov [rsp+48h+var_1C], eax
call ___cxa_free_exception
jmp short loc_9890C
loc_988DA:
mov rdi, [rsp+48h+var_30]
add rdi, 18h
mov rsi, [rsp+48h+var_10]
call _ZNKSt6vectorIhSaIhEEixEm; std::vector<uchar>::operator[](ulong)
movss xmm0, dword ptr [rax]
movss [rsp+48h+var_20], xmm0
lea rdi, [rsp+48h+var_20]
call _Z13EndianConvertIfEvRT_; EndianConvert<float>(float &)
movss xmm0, [rsp+48h+var_20]
add rsp, 48h
retn
loc_9890C:
mov rdi, [rsp+48h+var_18]
call __Unwind_Resume
| float ByteBuffer::read<float>(ByteBuffer *a1, long long a2)
{
long long v2; // rax
ByteBufferPositionException *exception; // [rsp+0h] [rbp-48h]
float v5; // [rsp+28h] [rbp-20h]
if ( a2 + 4 > (unsigned long long)ByteBuffer::size(a1) )
{
exception = (ByteBufferPositionException *)__cxa_allocate_exception(0x28uLL);
v2 = ByteBuffer::size(a1);
ByteBufferPositionException::ByteBufferPositionException(exception, 0, a2, 4LL, v2);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'ByteBufferPositionException,
(void (*)(void *))ByteBufferPositionException::~ByteBufferPositionException);
}
v5 = *(float *)std::vector<unsigned char>::operator[]((_QWORD *)a1 + 3, a2);
EndianConvert<float>();
return v5;
}
| read<float>:
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]
ADD RAX,0x4
MOV qword ptr [RSP + 0x20],RAX
CALL 0x00183580
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x20]
CMP RAX,RCX
JBE 0x001988da
MOV EDI,0x28
CALL 0x001217b0
MOV RDI,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x00183580
MOV RDI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
MOV R8,RAX
LAB_0019889c:
XOR ESI,ESI
MOV ECX,0x4
CALL 0x00194b20
LAB_001988a8:
JMP 0x001988aa
LAB_001988aa:
MOV RDI,qword ptr [RSP]
LEA RSI,[0x4ce730]
LEA RDX,[0x198450]
CALL 0x00121ca0
LAB_001988da:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x18
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x001985e0
MOVSS XMM0,dword ptr [RAX]
MOVSS dword ptr [RSP + 0x28],XMM0
LEA RDI,[RSP + 0x28]
CALL 0x00187bd0
MOVSS XMM0,dword ptr [RSP + 0x28]
ADD RSP,0x48
RET
|
/* float ByteBuffer::read<float>(unsigned long) const */
float __thiscall ByteBuffer::read<float>(ByteBuffer *this,ulong param_1)
{
ulong uVar1;
ByteBufferPositionException *this_00;
ulong uVar2;
float *pfVar3;
float local_20 [4];
ulong local_10;
ByteBuffer *local_8;
local_10 = param_1;
local_8 = this;
uVar1 = size(this);
if (uVar1 < param_1 + 4) {
this_00 = (ByteBufferPositionException *)__cxa_allocate_exception(0x28);
uVar1 = local_10;
uVar2 = size(this);
/* try { // try from 0019889c to 001988a7 has its CatchHandler @ 001988c1 */
ByteBufferPositionException::ByteBufferPositionException(this_00,false,uVar1,4,uVar2);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,&ByteBufferPositionException::typeinfo,
ByteBufferPositionException::~ByteBufferPositionException);
}
pfVar3 = (float *)std::vector<unsigned_char,std::allocator<unsigned_char>>::operator[]
((vector<unsigned_char,std::allocator<unsigned_char>> *)(this + 0x18),
local_10);
local_20[0] = *pfVar3;
EndianConvert<float>(local_20);
return local_20[0];
}
| |
29,740 | unsigned char ByteBuffer::read<unsigned char>(unsigned long) const | SylCore-WoTLK/src/server/shared/Packets/ByteBuffer.h | [[nodiscard]] T read(std::size_t pos) const
{
if (pos + sizeof(T) > size())
{
throw ByteBufferPositionException(false, pos, sizeof(T), size());
}
T val = *((T const*)&_storage[pos]);
EndianConvert(val);
return val;
} | O3 | c | unsigned char ByteBuffer::read<unsigned char>(unsigned long) const:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
leaq 0x4(%rsi), %rcx
movq 0x18(%rdi), %rax
movq 0x20(%rdi), %rdx
subq %rax, %rdx
cmpq %rdx, %rcx
ja 0x4cc2b
movss (%rax,%rbx), %xmm0
popq %rbx
popq %r14
popq %r15
retq
movq %rdi, %r15
movl $0x28, %edi
callq 0x1b6a0
movq %rax, %r14
movq 0x20(%r15), %r8
subq 0x18(%r15), %r8
movl $0x4, %ecx
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x4acba
leaq 0x119c4c(%rip), %rsi # 0x1668a8
leaq -0x5539(%rip), %rdx # 0x4772a
movq %r14, %rdi
callq 0x1baf0
movq %rax, %rbx
movq %r14, %rdi
callq 0x1c130
movq %rbx, %rdi
callq 0x1bba0
| _ZNK10ByteBuffer4readIfEET_m:
push r15
push r14
push rbx
mov rbx, rsi
lea rcx, [rsi+4]
mov rax, [rdi+18h]
mov rdx, [rdi+20h]
sub rdx, rax
cmp rcx, rdx
ja short loc_4CC2B
movss xmm0, dword ptr [rax+rbx]
pop rbx
pop r14
pop r15
retn
loc_4CC2B:
mov r15, rdi
mov edi, 28h ; '('; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov r8, [r15+20h]
sub r8, [r15+18h]; unsigned __int64
mov ecx, 4; unsigned __int64
mov rdi, rax; this
xor esi, esi; bool
mov rdx, rbx; unsigned __int64
call _ZN27ByteBufferPositionExceptionC2Ebmmm; ByteBufferPositionException::ByteBufferPositionException(bool,ulong,ulong,ulong)
lea rsi, _ZTI27ByteBufferPositionException; lptinfo
lea rdx, _ZN19ByteBufferExceptionD2Ev; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
mov rdi, rbx
call __Unwind_Resume
| float ByteBuffer::read<float>(long long a1, long long a2)
{
long long v2; // rax
ByteBufferPositionException *exception; // r14
v2 = *(_QWORD *)(a1 + 24);
if ( a2 + 4 > (unsigned long long)(*(_QWORD *)(a1 + 32) - v2) )
{
exception = (ByteBufferPositionException *)__cxa_allocate_exception(0x28uLL);
ByteBufferPositionException::ByteBufferPositionException(
exception,
0,
a2,
4LL,
*(_QWORD *)(a1 + 32) - *(_QWORD *)(a1 + 24));
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'ByteBufferPositionException,
(void (*)(void *))ByteBufferException::~ByteBufferException);
}
return *(float *)(v2 + a2);
}
| read<float>:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
LEA RCX,[RSI + 0x4]
MOV RAX,qword ptr [RDI + 0x18]
MOV RDX,qword ptr [RDI + 0x20]
SUB RDX,RAX
CMP RCX,RDX
JA 0x0014cc2b
MOVSS XMM0,dword ptr [RAX + RBX*0x1]
POP RBX
POP R14
POP R15
RET
LAB_0014cc2b:
MOV R15,RDI
MOV EDI,0x28
CALL 0x0011b6a0
MOV R14,RAX
MOV R8,qword ptr [R15 + 0x20]
SUB R8,qword ptr [R15 + 0x18]
LAB_0014cc43:
MOV ECX,0x4
MOV RDI,RAX
XOR ESI,ESI
MOV RDX,RBX
CALL 0x0014acba
LAB_0014cc55:
LEA RSI,[0x2668a8]
LEA RDX,[0x14772a]
MOV RDI,R14
CALL 0x0011baf0
|
/* float ByteBuffer::read<float>(unsigned long) const */
float __thiscall ByteBuffer::read<float>(ByteBuffer *this,ulong param_1)
{
ByteBufferPositionException *this_00;
if (param_1 + 4 <= (ulong)(*(long *)(this + 0x20) - *(long *)(this + 0x18))) {
return *(float *)(*(long *)(this + 0x18) + param_1);
}
this_00 = (ByteBufferPositionException *)__cxa_allocate_exception(0x28);
/* try { // try from 0014cc43 to 0014cc54 has its CatchHandler @ 0014cc6b */
ByteBufferPositionException::ByteBufferPositionException
(this_00,false,param_1,4,*(long *)(this + 0x20) - *(long *)(this + 0x18));
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,&ByteBufferPositionException::typeinfo,
ByteBufferException::~ByteBufferException);
}
| |
29,741 | sp_get_geometry_mbr | eloqsql/storage/maria/ma_sp_key.c | static int sp_get_geometry_mbr(uchar *(*wkb), uchar *end, uint n_dims,
double *mbr, int top)
{
int res;
uchar byte_order;
uint wkb_type;
byte_order = *(*wkb);
++(*wkb);
wkb_type = uint4korr((*wkb));
(*wkb) += 4;
switch ((enum wkbType) wkb_type)
{
case wkbPoint:
res = sp_get_point_mbr(wkb, end, n_dims, byte_order, mbr);
break;
case wkbLineString:
res = sp_get_linestring_mbr(wkb, end, n_dims, byte_order, mbr);
break;
case wkbPolygon:
res = sp_get_polygon_mbr(wkb, end, n_dims, byte_order, mbr);
break;
case wkbMultiPoint:
{
uint n_items;
n_items = uint4korr((*wkb));
(*wkb) += 4;
for (; n_items > 0; --n_items)
{
byte_order = *(*wkb);
++(*wkb);
(*wkb) += 4;
if (sp_get_point_mbr(wkb, end, n_dims, byte_order, mbr))
return -1;
}
res = 0;
break;
}
case wkbMultiLineString:
{
uint n_items;
n_items = uint4korr((*wkb));
(*wkb) += 4;
for (; n_items > 0; --n_items)
{
byte_order = *(*wkb);
++(*wkb);
(*wkb) += 4;
if (sp_get_linestring_mbr(wkb, end, n_dims, byte_order, mbr))
return -1;
}
res = 0;
break;
}
case wkbMultiPolygon:
{
uint n_items;
n_items = uint4korr((*wkb));
(*wkb) += 4;
for (; n_items > 0; --n_items)
{
byte_order = *(*wkb);
++(*wkb);
(*wkb) += 4;
if (sp_get_polygon_mbr(wkb, end, n_dims, byte_order, mbr))
return -1;
}
res = 0;
break;
}
case wkbGeometryCollection:
{
uint n_items;
if (!top)
return -1;
n_items = uint4korr((*wkb));
(*wkb) += 4;
for (; n_items > 0; --n_items)
{
if (sp_get_geometry_mbr(wkb, end, n_dims, mbr, 0))
return -1;
}
res = 0;
break;
}
default:
res = -1;
}
return res;
} | O0 | c | sp_get_geometry_mbr:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movb (%rax), %al
movb %al, -0x31(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
incq %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
movl -0x38(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x50(%rbp)
subl $0x6, %eax
ja 0x9c3d7
movq -0x50(%rbp), %rax
leaq 0xbcfb7(%rip), %rcx # 0x159114
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movb -0x31(%rbp), %al
movq -0x28(%rbp), %r8
movzbl %al, %ecx
callq 0x9c3f0
movl %eax, -0x30(%rbp)
jmp 0x9c3de
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movb -0x31(%rbp), %al
movq -0x28(%rbp), %r8
movzbl %al, %ecx
callq 0x9c430
movl %eax, -0x30(%rbp)
jmp 0x9c3de
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movb -0x31(%rbp), %al
movq -0x28(%rbp), %r8
movzbl %al, %ecx
callq 0x9c4c0
movl %eax, -0x30(%rbp)
jmp 0x9c3de
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x3c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
cmpl $0x0, -0x3c(%rbp)
jbe 0x9c24c
movq -0x10(%rbp), %rax
movq (%rax), %rax
movb (%rax), %al
movb %al, -0x31(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movb -0x31(%rbp), %al
movq -0x28(%rbp), %r8
movzbl %al, %ecx
callq 0x9c3f0
cmpl $0x0, %eax
je 0x9c23f
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9c3e4
jmp 0x9c241
movl -0x3c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x9c1e6
movl $0x0, -0x30(%rbp)
jmp 0x9c3de
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
cmpl $0x0, -0x40(%rbp)
jbe 0x9c2d8
movq -0x10(%rbp), %rax
movq (%rax), %rax
movb (%rax), %al
movb %al, -0x31(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movb -0x31(%rbp), %al
movq -0x28(%rbp), %r8
movzbl %al, %ecx
callq 0x9c430
cmpl $0x0, %eax
je 0x9c2cb
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9c3e4
jmp 0x9c2cd
movl -0x40(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x9c272
movl $0x0, -0x30(%rbp)
jmp 0x9c3de
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x44(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
cmpl $0x0, -0x44(%rbp)
jbe 0x9c364
movq -0x10(%rbp), %rax
movq (%rax), %rax
movb (%rax), %al
movb %al, -0x31(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movb -0x31(%rbp), %al
movq -0x28(%rbp), %r8
movzbl %al, %ecx
callq 0x9c4c0
cmpl $0x0, %eax
je 0x9c357
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9c3e4
jmp 0x9c359
movl -0x44(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x9c2fe
movl $0x0, -0x30(%rbp)
jmp 0x9c3de
cmpl $0x0, -0x2c(%rbp)
jne 0x9c37c
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9c3e4
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
cmpl $0x0, -0x48(%rbp)
jbe 0x9c3ce
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movq -0x28(%rbp), %rcx
xorl %r8d, %r8d
callq 0x9c0f0
cmpl $0x0, %eax
je 0x9c3c1
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9c3e4
jmp 0x9c3c3
movl -0x48(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x9c396
movl $0x0, -0x30(%rbp)
jmp 0x9c3de
movl $0xffffffff, -0x30(%rbp) # imm = 0xFFFFFFFF
movl -0x30(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
| sp_get_geometry_mbr:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], r8d
mov rax, [rbp+var_10]
mov rax, [rax]
mov al, [rax]
mov [rbp+var_31], al
mov rax, [rbp+var_10]
mov rcx, [rax]
inc rcx
mov [rax], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_38], eax
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
mov eax, [rbp+var_38]
dec eax; switch 7 cases
mov ecx, eax
mov [rbp+var_50], rcx
sub eax, 6
ja def_9C164; jumptable 000000000009C164 default case
mov rax, [rbp+var_50]
lea rcx, jpt_9C164
movsxd rax, ds:(jpt_9C164 - 159114h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_9C166:
mov rdi, [rbp+var_10]; jumptable 000000000009C164 case 1
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
mov al, [rbp+var_31]
mov r8, [rbp+var_28]
movzx ecx, al
call sp_get_point_mbr
mov [rbp+var_30], eax
jmp loc_9C3DE
loc_9C188:
mov rdi, [rbp+var_10]; jumptable 000000000009C164 case 2
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
mov al, [rbp+var_31]
mov r8, [rbp+var_28]
movzx ecx, al
call sp_get_linestring_mbr
mov [rbp+var_30], eax
jmp loc_9C3DE
loc_9C1AA:
mov rdi, [rbp+var_10]; jumptable 000000000009C164 case 3
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
mov al, [rbp+var_31]
mov r8, [rbp+var_28]
movzx ecx, al
call sp_get_polygon_mbr
mov [rbp+var_30], eax
jmp loc_9C3DE
loc_9C1CC:
mov rax, [rbp+var_10]; jumptable 000000000009C164 case 4
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_3C], eax
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
loc_9C1E6:
cmp [rbp+var_3C], 0
jbe short loc_9C24C
mov rax, [rbp+var_10]
mov rax, [rax]
mov al, [rax]
mov [rbp+var_31], al
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 1
mov [rax], rcx
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
mov al, [rbp+var_31]
mov r8, [rbp+var_28]
movzx ecx, al
call sp_get_point_mbr
cmp eax, 0
jz short loc_9C23F
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_9C3E4
loc_9C23F:
jmp short $+2
loc_9C241:
mov eax, [rbp+var_3C]
add eax, 0FFFFFFFFh
mov [rbp+var_3C], eax
jmp short loc_9C1E6
loc_9C24C:
mov [rbp+var_30], 0
jmp loc_9C3DE
loc_9C258:
mov rax, [rbp+var_10]; jumptable 000000000009C164 case 5
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_40], eax
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
loc_9C272:
cmp [rbp+var_40], 0
jbe short loc_9C2D8
mov rax, [rbp+var_10]
mov rax, [rax]
mov al, [rax]
mov [rbp+var_31], al
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 1
mov [rax], rcx
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
mov al, [rbp+var_31]
mov r8, [rbp+var_28]
movzx ecx, al
call sp_get_linestring_mbr
cmp eax, 0
jz short loc_9C2CB
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_9C3E4
loc_9C2CB:
jmp short $+2
loc_9C2CD:
mov eax, [rbp+var_40]
add eax, 0FFFFFFFFh
mov [rbp+var_40], eax
jmp short loc_9C272
loc_9C2D8:
mov [rbp+var_30], 0
jmp loc_9C3DE
loc_9C2E4:
mov rax, [rbp+var_10]; jumptable 000000000009C164 case 6
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_44], eax
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
loc_9C2FE:
cmp [rbp+var_44], 0
jbe short loc_9C364
mov rax, [rbp+var_10]
mov rax, [rax]
mov al, [rax]
mov [rbp+var_31], al
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 1
mov [rax], rcx
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
mov al, [rbp+var_31]
mov r8, [rbp+var_28]
movzx ecx, al
call sp_get_polygon_mbr
cmp eax, 0
jz short loc_9C357
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_9C3E4
loc_9C357:
jmp short $+2
loc_9C359:
mov eax, [rbp+var_44]
add eax, 0FFFFFFFFh
mov [rbp+var_44], eax
jmp short loc_9C2FE
loc_9C364:
mov [rbp+var_30], 0
jmp short loc_9C3DE
loc_9C36D:
cmp [rbp+var_2C], 0; jumptable 000000000009C164 case 7
jnz short loc_9C37C
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_9C3E4
loc_9C37C:
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_48], eax
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
loc_9C396:
cmp [rbp+var_48], 0
jbe short loc_9C3CE
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
mov rcx, [rbp+var_28]
xor r8d, r8d
call sp_get_geometry_mbr
cmp eax, 0
jz short loc_9C3C1
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_9C3E4
loc_9C3C1:
jmp short $+2
loc_9C3C3:
mov eax, [rbp+var_48]
add eax, 0FFFFFFFFh
mov [rbp+var_48], eax
jmp short loc_9C396
loc_9C3CE:
mov [rbp+var_30], 0
jmp short loc_9C3DE
def_9C164:
mov [rbp+var_30], 0FFFFFFFFh; jumptable 000000000009C164 default case
loc_9C3DE:
mov eax, [rbp+var_30]
mov [rbp+var_4], eax
loc_9C3E4:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long sp_get_geometry_mbr(unsigned __int8 **a1, long long a2, unsigned int a3, long long a4, int a5)
{
int v6; // [rsp+8h] [rbp-48h]
int v7; // [rsp+Ch] [rbp-44h]
int v8; // [rsp+10h] [rbp-40h]
int v9; // [rsp+14h] [rbp-3Ch]
int v10; // [rsp+18h] [rbp-38h]
unsigned __int8 v11; // [rsp+1Fh] [rbp-31h]
unsigned __int8 v12; // [rsp+1Fh] [rbp-31h]
unsigned __int8 v13; // [rsp+1Fh] [rbp-31h]
unsigned __int8 v14; // [rsp+1Fh] [rbp-31h]
v11 = *(*a1)++;
v10 = *(_DWORD *)*a1;
*a1 += 4;
switch ( v10 )
{
case 1:
return (unsigned int)sp_get_point_mbr(a1, a2, a3, v11, a4);
case 2:
return (unsigned int)sp_get_linestring_mbr(a1, a2, a3, v11, a4);
case 3:
return (unsigned int)sp_get_polygon_mbr(a1, a2, a3, v11, a4);
case 4:
v9 = *(_DWORD *)*a1;
*a1 += 4;
while ( 2 )
{
if ( !v9 )
return 0;
v12 = *(*a1)++;
*a1 += 4;
if ( !(unsigned int)sp_get_point_mbr(a1, a2, a3, v12, a4) )
{
--v9;
continue;
}
return (unsigned int)-1;
}
case 5:
v8 = *(_DWORD *)*a1;
*a1 += 4;
while ( 2 )
{
if ( !v8 )
return 0;
v13 = *(*a1)++;
*a1 += 4;
if ( !(unsigned int)sp_get_linestring_mbr(a1, a2, a3, v13, a4) )
{
--v8;
continue;
}
return (unsigned int)-1;
}
case 6:
v7 = *(_DWORD *)*a1;
*a1 += 4;
while ( 2 )
{
if ( !v7 )
return 0;
v14 = *(*a1)++;
*a1 += 4;
if ( !(unsigned int)sp_get_polygon_mbr(a1, a2, a3, v14, a4) )
{
--v7;
continue;
}
break;
}
return (unsigned int)-1;
case 7:
if ( !a5 )
return (unsigned int)-1;
v6 = *(_DWORD *)*a1;
*a1 += 4;
break;
default:
return (unsigned int)-1;
}
while ( v6 )
{
if ( (unsigned int)sp_get_geometry_mbr(a1, a2, a3, a4, 0LL) )
return (unsigned int)-1;
--v6;
}
return 0;
}
| sp_get_geometry_mbr:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV dword ptr [RBP + -0x2c],R8D
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x31],AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
INC RCX
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x38],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
MOV EAX,dword ptr [RBP + -0x38]
DEC EAX
MOV ECX,EAX
MOV qword ptr [RBP + -0x50],RCX
SUB EAX,0x6
JA 0x0019c3d7
MOV RAX,qword ptr [RBP + -0x50]
LEA RCX,[0x259114]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
MOV AL,byte ptr [RBP + -0x31]
MOV R8,qword ptr [RBP + -0x28]
MOVZX ECX,AL
CALL 0x0019c3f0
MOV dword ptr [RBP + -0x30],EAX
JMP 0x0019c3de
caseD_2:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
MOV AL,byte ptr [RBP + -0x31]
MOV R8,qword ptr [RBP + -0x28]
MOVZX ECX,AL
CALL 0x0019c430
MOV dword ptr [RBP + -0x30],EAX
JMP 0x0019c3de
caseD_3:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
MOV AL,byte ptr [RBP + -0x31]
MOV R8,qword ptr [RBP + -0x28]
MOVZX ECX,AL
CALL 0x0019c4c0
MOV dword ptr [RBP + -0x30],EAX
JMP 0x0019c3de
caseD_4:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
LAB_0019c1e6:
CMP dword ptr [RBP + -0x3c],0x0
JBE 0x0019c24c
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x31],AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
MOV AL,byte ptr [RBP + -0x31]
MOV R8,qword ptr [RBP + -0x28]
MOVZX ECX,AL
CALL 0x0019c3f0
CMP EAX,0x0
JZ 0x0019c23f
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019c3e4
LAB_0019c23f:
JMP 0x0019c241
LAB_0019c241:
MOV EAX,dword ptr [RBP + -0x3c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x0019c1e6
LAB_0019c24c:
MOV dword ptr [RBP + -0x30],0x0
JMP 0x0019c3de
caseD_5:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x40],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
LAB_0019c272:
CMP dword ptr [RBP + -0x40],0x0
JBE 0x0019c2d8
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x31],AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
MOV AL,byte ptr [RBP + -0x31]
MOV R8,qword ptr [RBP + -0x28]
MOVZX ECX,AL
CALL 0x0019c430
CMP EAX,0x0
JZ 0x0019c2cb
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019c3e4
LAB_0019c2cb:
JMP 0x0019c2cd
LAB_0019c2cd:
MOV EAX,dword ptr [RBP + -0x40]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x40],EAX
JMP 0x0019c272
LAB_0019c2d8:
MOV dword ptr [RBP + -0x30],0x0
JMP 0x0019c3de
caseD_6:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x44],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
LAB_0019c2fe:
CMP dword ptr [RBP + -0x44],0x0
JBE 0x0019c364
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x31],AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
MOV AL,byte ptr [RBP + -0x31]
MOV R8,qword ptr [RBP + -0x28]
MOVZX ECX,AL
CALL 0x0019c4c0
CMP EAX,0x0
JZ 0x0019c357
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019c3e4
LAB_0019c357:
JMP 0x0019c359
LAB_0019c359:
MOV EAX,dword ptr [RBP + -0x44]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x44],EAX
JMP 0x0019c2fe
LAB_0019c364:
MOV dword ptr [RBP + -0x30],0x0
JMP 0x0019c3de
caseD_7:
CMP dword ptr [RBP + -0x2c],0x0
JNZ 0x0019c37c
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019c3e4
LAB_0019c37c:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x48],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
LAB_0019c396:
CMP dword ptr [RBP + -0x48],0x0
JBE 0x0019c3ce
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x28]
XOR R8D,R8D
CALL 0x0019c0f0
CMP EAX,0x0
JZ 0x0019c3c1
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019c3e4
LAB_0019c3c1:
JMP 0x0019c3c3
LAB_0019c3c3:
MOV EAX,dword ptr [RBP + -0x48]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x48],EAX
JMP 0x0019c396
LAB_0019c3ce:
MOV dword ptr [RBP + -0x30],0x0
JMP 0x0019c3de
default:
MOV dword ptr [RBP + -0x30],0xffffffff
LAB_0019c3de:
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x4],EAX
LAB_0019c3e4:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int4
sp_get_geometry_mbr(long *param_1,int8 param_2,int4 param_3,int8 param_4,
int param_5)
{
int1 uVar1;
int4 uVar2;
int iVar3;
int local_50;
int local_4c;
int local_48;
int local_44;
int4 local_38;
uVar1 = *(int1 *)*param_1;
*param_1 = *param_1 + 1;
uVar2 = *(int4 *)*param_1;
*param_1 = *param_1 + 4;
switch(uVar2) {
case 1:
local_38 = sp_get_point_mbr(param_1,param_2,param_3,uVar1,param_4);
break;
case 2:
local_38 = sp_get_linestring_mbr(param_1,param_2,param_3,uVar1,param_4);
break;
case 3:
local_38 = sp_get_polygon_mbr(param_1,param_2,param_3,uVar1,param_4);
break;
case 4:
local_44 = *(int *)*param_1;
*param_1 = *param_1 + 4;
for (; local_44 != 0; local_44 = local_44 + -1) {
uVar1 = *(int1 *)*param_1;
*param_1 = *param_1 + 1;
*param_1 = *param_1 + 4;
iVar3 = sp_get_point_mbr(param_1,param_2,param_3,uVar1,param_4);
if (iVar3 != 0) {
return 0xffffffff;
}
}
local_38 = 0;
break;
case 5:
local_48 = *(int *)*param_1;
*param_1 = *param_1 + 4;
for (; local_48 != 0; local_48 = local_48 + -1) {
uVar1 = *(int1 *)*param_1;
*param_1 = *param_1 + 1;
*param_1 = *param_1 + 4;
iVar3 = sp_get_linestring_mbr(param_1,param_2,param_3,uVar1,param_4);
if (iVar3 != 0) {
return 0xffffffff;
}
}
local_38 = 0;
break;
case 6:
local_4c = *(int *)*param_1;
*param_1 = *param_1 + 4;
for (; local_4c != 0; local_4c = local_4c + -1) {
uVar1 = *(int1 *)*param_1;
*param_1 = *param_1 + 1;
*param_1 = *param_1 + 4;
iVar3 = sp_get_polygon_mbr(param_1,param_2,param_3,uVar1,param_4);
if (iVar3 != 0) {
return 0xffffffff;
}
}
local_38 = 0;
break;
case 7:
if (param_5 == 0) {
return 0xffffffff;
}
local_50 = *(int *)*param_1;
*param_1 = *param_1 + 4;
for (; local_50 != 0; local_50 = local_50 + -1) {
iVar3 = sp_get_geometry_mbr(param_1,param_2,param_3,param_4,0);
if (iVar3 != 0) {
return 0xffffffff;
}
}
local_38 = 0;
break;
default:
local_38 = 0xffffffff;
}
return local_38;
}
| |
29,742 | get_src_account | corpus-core[P]colibri-stateless/src/chains/eth/verifier/call_ctx.h | static ssz_ob_t get_src_account(evmone_context_t* ctx, const address_t address, bool allow_missing) {
size_t len = ssz_len(ctx->src_accounts);
for (int i = 0; i < len; i++) {
ssz_ob_t account = ssz_at(ctx->src_accounts, i);
bytes_t addr = ssz_get(&account, "address").bytes;
if (memcmp(addr.data, address, 20) == 0)
return account;
}
if (ctx->parent)
return get_src_account(ctx->parent, address, allow_missing);
if (!ctx->ctx->state.error && !allow_missing) ctx->ctx->state.error = bprintf(NULL, "Missing account proof for 0x%x", bytes(address, 20));
return (ssz_ob_t) {0};
} | O0 | c | get_src_account:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x70(%rbp)
movb %cl, %al
movq %rdi, -0x68(%rbp)
movq %rsi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rax
addq $0x10, %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x9f1e0
movl %eax, %eax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movslq -0x24(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x2b1fc
movq -0x70(%rbp), %rdi
movq -0x8(%rbp), %rax
addq $0x10, %rax
movl -0x24(%rbp), %esi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x9ef30
movq -0x70(%rbp), %rsi
leaq -0x50(%rbp), %rdi
leaq 0xb0170(%rip), %rdx # 0xdb32b
callq 0xa05c0
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x14, %edx
callq 0x23100
cmpl $0x0, %eax
jne 0x2b1ec
jmp 0x2b288
jmp 0x2b1ee
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x2b175
movq -0x8(%rbp), %rax
cmpq $0x0, 0x90(%rax)
je 0x2b22c
movq -0x70(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x90(%rax), %rsi
movq -0x10(%rbp), %rdx
movb -0x11(%rbp), %al
andb $0x1, %al
movzbl %al, %ecx
callq 0x2b120
jmp 0x2b288
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
cmpq $0x0, 0x78(%rax)
jne 0x2b278
testb $0x1, -0x11(%rbp)
jne 0x2b278
movl $0x14, -0x60(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movl -0x60(%rbp), %edx
movq -0x58(%rbp), %rcx
xorl %eax, %eax
movl %eax, %edi
leaq 0xb008c(%rip), %rsi # 0xdb2ee
movb $0x0, %al
callq 0x9d5a0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x78(%rax)
movq -0x70(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x23140
movq -0x68(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| get_src_account:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_70], rdi
mov al, cl
mov [rbp+var_68], rdi
mov [rbp+var_8], rsi
mov [rbp+var_10], rdx
and al, 1
mov [rbp+var_11], al
mov rax, [rbp+var_8]
add rax, 10h
mov rcx, [rax]
mov [rsp+90h+var_90], rcx
mov rcx, [rax+8]
mov [rsp+90h+var_88], rcx
mov rax, [rax+10h]
mov [rsp+90h+var_80], rax
call ssz_len
mov eax, eax
mov [rbp+var_20], rax
mov [rbp+var_24], 0
loc_2B175:
movsxd rax, [rbp+var_24]
cmp rax, [rbp+var_20]
jnb short loc_2B1FC
mov rdi, [rbp+var_70]
mov rax, [rbp+var_8]
add rax, 10h
mov esi, [rbp+var_24]
mov rcx, [rax]
mov [rsp+90h+var_90], rcx
mov rcx, [rax+8]
mov [rsp+90h+var_88], rcx
mov rax, [rax+10h]
mov [rsp+90h+var_80], rax
call ssz_at
mov rsi, [rbp+var_70]
lea rdi, [rbp+var_50]
lea rdx, aCodeAddress+7; "address"
call ssz_get
mov rax, [rbp+var_50]
mov [rbp+var_38], rax
mov rax, [rbp+var_48]
mov [rbp+var_30], rax
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_10]
mov edx, 14h
call _memcmp
cmp eax, 0
jnz short loc_2B1EC
jmp loc_2B288
loc_2B1EC:
jmp short $+2
loc_2B1EE:
mov eax, [rbp+var_24]
add eax, 1
mov [rbp+var_24], eax
jmp loc_2B175
loc_2B1FC:
mov rax, [rbp+var_8]
cmp qword ptr [rax+90h], 0
jz short loc_2B22C
mov rdi, [rbp+var_70]
mov rax, [rbp+var_8]
mov rsi, [rax+90h]
mov rdx, [rbp+var_10]
mov al, [rbp+var_11]
and al, 1
movzx ecx, al
call get_src_account
jmp short loc_2B288
loc_2B22C:
mov rax, [rbp+var_8]
mov rax, [rax+8]
cmp qword ptr [rax+78h], 0
jnz short loc_2B278
test [rbp+var_11], 1
jnz short loc_2B278
mov [rbp+var_60], 14h
mov rax, [rbp+var_10]
mov [rbp+var_58], rax
mov edx, [rbp+var_60]
mov rcx, [rbp+var_58]
xor eax, eax
mov edi, eax
lea rsi, aMissingAccount; "Missing account proof for 0x%x"
mov al, 0
call bprintf
mov rcx, rax
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rax+78h], rcx
loc_2B278:
mov rdi, [rbp+var_70]
xor esi, esi
mov edx, 18h
call _memset
loc_2B288:
mov rax, [rbp+var_68]
add rsp, 90h
pop rbp
retn
| long long get_src_account(long long a1, _QWORD *a2, long long a3, char a4, int a5, int a6)
{
int v6; // edx
int v7; // r8d
int v8; // r9d
long long v9; // rax
long long v11; // [rsp+40h] [rbp-50h] BYREF
long long v12; // [rsp+48h] [rbp-48h]
long long v13; // [rsp+58h] [rbp-38h]
long long v14; // [rsp+60h] [rbp-30h]
int i; // [rsp+6Ch] [rbp-24h]
unsigned long long v16; // [rsp+70h] [rbp-20h]
char v17; // [rsp+7Fh] [rbp-11h]
long long v18; // [rsp+80h] [rbp-10h]
_QWORD *v19; // [rsp+88h] [rbp-8h]
v19 = a2;
v18 = a3;
v17 = a4 & 1;
v16 = (unsigned int)ssz_len(a1, (_DWORD)a2, a3, a2[3], a5, a6, a2[2], a2[3], a2[4]);
for ( i = 0; i < v16; ++i )
{
ssz_at(a1, i, v6, v19[3], v7, v8, v19[2], v19[3], v19[4]);
ssz_get(&v11, a1, "address");
v13 = v11;
v14 = v12;
if ( !(unsigned int)memcmp(v12, v18, 20LL) )
return a1;
}
if ( v19[18] )
{
get_src_account(a1, v19[18], v18, v17 & 1);
}
else
{
if ( !*(_QWORD *)(v19[1] + 120LL) && (v17 & 1) == 0 )
{
v9 = bprintf(0, (unsigned int)"Missing account proof for 0x%x", 20, v18, v7, v8);
*(_QWORD *)(v19[1] + 120LL) = v9;
}
memset(a1, 0LL, 24LL);
}
return a1;
}
| get_src_account:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x70],RDI
MOV AL,CL
MOV qword ptr [RBP + -0x68],RDI
MOV qword ptr [RBP + -0x8],RSI
MOV qword ptr [RBP + -0x10],RDX
AND AL,0x1
MOV byte ptr [RBP + -0x11],AL
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x10
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x0019f1e0
MOV EAX,EAX
MOV qword ptr [RBP + -0x20],RAX
MOV dword ptr [RBP + -0x24],0x0
LAB_0012b175:
MOVSXD RAX,dword ptr [RBP + -0x24]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x0012b1fc
MOV RDI,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x10
MOV ESI,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x0019ef30
MOV RSI,qword ptr [RBP + -0x70]
LEA RDI,[RBP + -0x50]
LEA RDX,[0x1db32b]
CALL 0x001a05c0
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0x14
CALL 0x00123100
CMP EAX,0x0
JNZ 0x0012b1ec
JMP 0x0012b288
LAB_0012b1ec:
JMP 0x0012b1ee
LAB_0012b1ee:
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,0x1
MOV dword ptr [RBP + -0x24],EAX
JMP 0x0012b175
LAB_0012b1fc:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x90],0x0
JZ 0x0012b22c
MOV RDI,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x90]
MOV RDX,qword ptr [RBP + -0x10]
MOV AL,byte ptr [RBP + -0x11]
AND AL,0x1
MOVZX ECX,AL
CALL 0x0012b120
JMP 0x0012b288
LAB_0012b22c:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
CMP qword ptr [RAX + 0x78],0x0
JNZ 0x0012b278
TEST byte ptr [RBP + -0x11],0x1
JNZ 0x0012b278
MOV dword ptr [RBP + -0x60],0x14
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x58],RAX
MOV EDX,dword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x58]
XOR EAX,EAX
MOV EDI,EAX
LEA RSI,[0x1db2ee]
MOV AL,0x0
CALL 0x0019d5a0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x78],RCX
LAB_0012b278:
MOV RDI,qword ptr [RBP + -0x70]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00123140
LAB_0012b288:
MOV RAX,qword ptr [RBP + -0x68]
ADD RSP,0x90
POP RBP
RET
|
void * get_src_account(void *param_1,long param_2,void *param_3,byte param_4,int8 param_5,
int8 param_6)
{
uint uVar1;
int iVar2;
int8 uVar3;
int8 uVar4;
int8 uVar5;
int8 local_58;
void *local_50;
int8 local_40;
void *local_38;
int local_2c;
ulong local_28;
byte local_19;
void *local_18;
long local_10;
local_19 = param_4 & 1;
uVar3 = *(int8 *)(param_2 + 0x10);
uVar4 = *(int8 *)(param_2 + 0x18);
uVar5 = *(int8 *)(param_2 + 0x20);
local_18 = param_3;
local_10 = param_2;
uVar1 = ssz_len();
local_28 = (ulong)uVar1;
local_2c = 0;
while( true ) {
if (local_28 <= (ulong)(long)local_2c) {
if (*(long *)(local_10 + 0x90) == 0) {
if ((*(long *)(*(long *)(local_10 + 8) + 0x78) == 0) && ((local_19 & 1) == 0)) {
uVar3 = bprintf(0,"Missing account proof for 0x%x",0x14,local_18,param_5,param_6,uVar3,
uVar4,uVar5);
*(int8 *)(*(long *)(local_10 + 8) + 0x78) = uVar3;
}
memset(param_1,0,0x18);
}
else {
get_src_account(param_1,*(int8 *)(local_10 + 0x90),local_18,local_19 & 1);
}
return param_1;
}
uVar3 = *(int8 *)(local_10 + 0x10);
uVar4 = *(int8 *)(local_10 + 0x18);
uVar5 = *(int8 *)(local_10 + 0x20);
ssz_at(param_1,local_2c);
ssz_get(&local_58,param_1,"address");
local_40 = local_58;
local_38 = local_50;
iVar2 = memcmp(local_50,local_18,0x14);
if (iVar2 == 0) break;
local_2c = local_2c + 1;
}
return param_1;
}
| |
29,743 | queue_remove | eloqsql/mysys/queues.c | uchar *queue_remove(QUEUE *queue, uint idx)
{
uchar *element;
DBUG_ASSERT(idx >= 1);
DBUG_ASSERT(idx <= queue->elements);
element= queue->root[idx];
queue->root[idx]= queue->root[queue->elements--];
queue_replace(queue, idx);
return element;
} | O3 | c | queue_remove:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rax
movl %esi, %ecx
movq (%rax,%rcx,8), %rbx
movl 0x10(%rdi), %edx
leal -0x1(%rdx), %r8d
movl %r8d, 0x10(%rdi)
movq (%rax,%rdx,8), %rdx
movq %rdx, (%rax,%rcx,8)
callq 0xc1c9f
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| queue_remove:
push rbp
mov rbp, rsp
push rbx
push rax
mov rax, [rdi]
mov ecx, esi
mov rbx, [rax+rcx*8]
mov edx, [rdi+10h]
lea r8d, [rdx-1]
mov [rdi+10h], r8d
mov rdx, [rax+rdx*8]
mov [rax+rcx*8], rdx
call queue_replace
mov rax, rbx
add rsp, 8
pop rbx
pop rbp
retn
| long long queue_remove(long long *a1, unsigned int a2)
{
long long v2; // rax
long long v3; // rbx
long long v4; // rdx
v2 = *a1;
v3 = *(_QWORD *)(*a1 + 8LL * a2);
v4 = *((unsigned int *)a1 + 4);
*((_DWORD *)a1 + 4) = v4 - 1;
*(_QWORD *)(v2 + 8LL * a2) = *(_QWORD *)(v2 + 8 * v4);
queue_replace(a1);
return v3;
}
| queue_remove:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RAX,qword ptr [RDI]
MOV ECX,ESI
MOV RBX,qword ptr [RAX + RCX*0x8]
MOV EDX,dword ptr [RDI + 0x10]
LEA R8D,[RDX + -0x1]
MOV dword ptr [RDI + 0x10],R8D
MOV RDX,qword ptr [RAX + RDX*0x8]
MOV qword ptr [RAX + RCX*0x8],RDX
CALL 0x001c1c9f
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int8 queue_remove(long *param_1,uint param_2)
{
uint uVar1;
long lVar2;
int8 uVar3;
lVar2 = *param_1;
uVar3 = *(int8 *)(lVar2 + (ulong)param_2 * 8);
uVar1 = *(uint *)(param_1 + 2);
*(uint *)(param_1 + 2) = uVar1 - 1;
*(int8 *)(lVar2 + (ulong)param_2 * 8) = *(int8 *)(lVar2 + (ulong)uVar1 * 8);
queue_replace();
return uVar3;
}
| |
29,744 | 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>> 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>::erase<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>>, 0>(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>>) | monkey531[P]llama/common/json.hpp | IteratorType erase(IteratorType pos)
{
// make sure iterator fits the current value
if (JSON_HEDLEY_UNLIKELY(this != pos.m_object))
{
JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
}
IteratorType result = end();
switch (m_data.m_type)
{
case value_t::boolean:
case value_t::number_float:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::string:
case value_t::binary:
{
if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin()))
{
JSON_THROW(invalid_iterator::create(205, "iterator out of range", this));
}
if (is_string())
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.string, 1);
m_data.m_value.string = nullptr;
}
else if (is_binary())
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.binary, 1);
m_data.m_value.binary = nullptr;
}
m_data.m_type = value_t::null;
assert_invariant();
break;
}
case value_t::object:
{
result.m_it.object_iterator = m_data.m_value.object->erase(pos.m_it.object_iterator);
break;
}
case value_t::array:
{
result.m_it.array_iterator = m_data.m_value.array->erase(pos.m_it.array_iterator);
break;
}
case value_t::null:
case value_t::discarded:
default:
JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
}
return result;
} | 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>> 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>::erase<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>>, 0>(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>>):
subq $0x138, %rsp # imm = 0x138
movq %rdx, 0x50(%rsp)
movq %rdi, 0x58(%rsp)
movq %rdi, %rax
movq %rax, 0x60(%rsp)
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
movq %rdx, 0x120(%rsp)
movq 0x128(%rsp), %rax
movq %rax, 0x68(%rsp)
cmpq (%rdx), %rax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xc13c1
jmp 0xc14a7
movb $0x1, 0xeb(%rsp)
movl $0x20, %edi
callq 0x51570
movq %rax, 0x40(%rsp)
leaq 0xff(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0x51dd0
movq 0x48(%rsp), %rdx
leaq 0xfd452(%rip), %rsi # 0x1be848
leaq 0x100(%rsp), %rdi
callq 0x57a70
jmp 0xc1405
movq 0x68(%rsp), %rcx
movq 0x40(%rsp), %rdi
movl $0xca, %esi
leaq 0x100(%rsp), %rdx
callq 0xc1ec0
jmp 0xc1423
movq 0x40(%rsp), %rdi
movb $0x0, 0xeb(%rsp)
leaq 0x179e09(%rip), %rsi # 0x23b240
leaq 0xc32(%rip), %rdx # 0xc2070
callq 0x51930
jmp 0xc18b3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
jmp 0xc147f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0x100(%rsp), %rdi
callq 0x52140
leaq 0xff(%rsp), %rdi
callq 0x52120
testb $0x1, 0xeb(%rsp)
jne 0xc1498
jmp 0xc14a2
movq 0x40(%rsp), %rdi
callq 0x51cb0
jmp 0xc18a6
movq 0x68(%rsp), %rsi
movq 0x58(%rsp), %rdi
callq 0xc10c0
movq 0x68(%rsp), %rax
movzbl (%rax), %eax
movq %rax, 0x38(%rsp)
subq $0x9, %rax
ja 0xc17d2
movq 0x38(%rsp), %rax
leaq 0xf9c6f(%rip), %rcx # 0x1bb148
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x50(%rsp), %rdi
addq $0x8, %rdi
addq $0x10, %rdi
callq 0xc22d0
xorb $-0x1, %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xc1503
jmp 0xc15e9
movb $0x1, 0xc6(%rsp)
movl $0x20, %edi
callq 0x51570
movq %rax, 0x28(%rsp)
leaq 0xc7(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x51dd0
movq 0x30(%rsp), %rdx
leaq 0xfd334(%rip), %rsi # 0x1be86c
leaq 0xc8(%rsp), %rdi
callq 0x57a70
jmp 0xc1547
movq 0x68(%rsp), %rcx
movq 0x28(%rsp), %rdi
movl $0xcd, %esi
leaq 0xc8(%rsp), %rdx
callq 0xc1ec0
jmp 0xc1565
movq 0x28(%rsp), %rdi
movb $0x0, 0xc6(%rsp)
leaq 0x179cc7(%rip), %rsi # 0x23b240
leaq 0xaf0(%rip), %rdx # 0xc2070
callq 0x51930
jmp 0xc18b3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
jmp 0xc15c1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0xc8(%rsp), %rdi
callq 0x52140
leaq 0xc7(%rsp), %rdi
callq 0x52120
testb $0x1, 0xc6(%rsp)
jne 0xc15da
jmp 0xc15e4
movq 0x28(%rsp), %rdi
callq 0x51cb0
jmp 0xc18a6
movq 0x68(%rsp), %rdi
callq 0xa8440
testb $0x1, %al
jne 0xc15fc
jmp 0xc1680
leaq 0xc5(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x586f0
movq 0x68(%rsp), %rax
movq 0x20(%rsp), %rdi
movq 0x8(%rax), %rsi
callq 0x58c80
movq 0x68(%rsp), %rax
movq 0x20(%rsp), %rdi
movq 0x8(%rax), %rsi
movl $0x1, %edx
callq 0x59180
jmp 0xc163b
movq 0x68(%rsp), %rax
movq $0x0, 0x8(%rax)
leaq 0xc5(%rsp), %rdi
callq 0x5ba70
jmp 0xc1716
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0xc5(%rsp), %rdi
callq 0x5ba70
jmp 0xc18a6
movq 0x68(%rsp), %rdi
callq 0xc22f0
testb $0x1, %al
jne 0xc1693
jmp 0xc1714
leaq 0xc4(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xa96d0
movq 0x68(%rsp), %rax
movq 0x18(%rsp), %rdi
movq 0x8(%rax), %rsi
callq 0xa96e0
movq 0x68(%rsp), %rax
movq 0x18(%rsp), %rdi
movq 0x8(%rax), %rsi
movl $0x1, %edx
callq 0xa9710
jmp 0xc16d2
movq 0x68(%rsp), %rax
movq $0x0, 0x8(%rax)
leaq 0xc4(%rsp), %rdi
callq 0xa9740
jmp 0xc1714
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0xc4(%rsp), %rdi
callq 0xa9740
jmp 0xc18a6
jmp 0xc1716
movq 0x68(%rsp), %rdi
movb $0x0, (%rdi)
movl $0x1, %esi
callq 0xa6580
jmp 0xc1899
movq 0x50(%rsp), %rax
movq 0x68(%rsp), %rcx
movq 0x8(%rcx), %rdi
movq 0x8(%rax), %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rsi
callq 0xc2310
movq %rax, %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0xb8(%rsp)
movq 0xb8(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0xc1899
movq 0x50(%rsp), %rsi
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
addq $0x8, %rsi
addq $0x8, %rsi
leaq 0xa0(%rsp), %rdi
callq 0xc23f0
movq 0x10(%rsp), %rdi
movq 0xa0(%rsp), %rsi
callq 0xc2380
movq %rax, %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0xa8(%rsp)
movq 0xa8(%rsp), %rcx
movq %rcx, 0x10(%rax)
jmp 0xc1899
jmp 0xc17d2
movb $0x1, 0x77(%rsp)
movl $0x20, %edi
callq 0x51570
movq 0x68(%rsp), %rdi
movq %rax, 0x8(%rsp)
callq 0xa7050
movq %rax, 0x78(%rsp)
leaq 0xfd086(%rip), %rsi # 0x1be882
leaq 0x80(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0xc25e0
jmp 0xc1810
movq 0x68(%rsp), %rcx
movq 0x8(%rsp), %rdi
movl $0x133, %esi # imm = 0x133
leaq 0x80(%rsp), %rdx
callq 0xc2430
jmp 0xc182e
movq 0x8(%rsp), %rdi
movb $0x0, 0x77(%rsp)
leaq 0x1798d9(%rip), %rsi # 0x23b118
leaq -0x1a746(%rip), %rdx # 0xa7100
callq 0x51930
jmp 0xc18b3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
jmp 0xc1884
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x52140
testb $0x1, 0x77(%rsp)
jne 0xc188d
jmp 0xc1897
movq 0x8(%rsp), %rdi
callq 0x51cb0
jmp 0xc18a6
movq 0x60(%rsp), %rax
addq $0x138, %rsp # imm = 0x138
retq
movq 0xf0(%rsp), %rdi
callq 0x51980
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_:
sub rsp, 138h
mov qword ptr [rsp+138h+var_E8], rdx; char
mov qword ptr [rsp+138h+var_E0], rdi; int
mov rax, rdi
mov qword ptr [rsp+138h+var_D8], rax; int
mov [rsp+138h+var_8], rdi
mov qword ptr [rsp+138h+var_10], rsi
mov [rsp+138h+var_18], rdx
mov rax, qword ptr [rsp+138h+var_10]
mov qword ptr [rsp+138h+var_D0], rax; int
cmp rax, [rdx]
setnz al
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_C13C1
jmp loc_C14A7
loc_C13C1:
mov [rsp+138h+var_4D], 1
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov [rsp+138h+var_F8], rax; __int64
lea rdi, [rsp+138h+var_39]
mov qword ptr [rsp+138h+var_F0], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+138h+var_F0]
lea rsi, aIteratorDoesNo; "iterator does not fit current value"
lea rdi, [rsp+138h+var_39+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_C1405:
mov rcx, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_F8]; int
mov esi, 0CAh
lea rdx, [rsp+138h+var_39+1]
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
jmp short $+2
loc_C1423:
mov rdi, [rsp+138h+var_F8]; void *
mov [rsp+138h+var_4D], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorD2Ev; void (*)(void *)
call ___cxa_throw
jmp loc_C18B3
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
jmp short loc_C147F
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
lea rdi, [rsp+arg_F8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_C147F:
lea rdi, [rsp+arg_F7]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
test [rsp+arg_E3], 1
jnz short loc_C1498
jmp short loc_C14A2
loc_C1498:
mov rdi, [rsp+arg_38]; void *
call ___cxa_free_exception
loc_C14A2:
jmp loc_C18A6
loc_C14A7:
mov rsi, qword ptr [rsp+138h+var_D0]
mov rdi, qword ptr [rsp+138h+var_E0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3endEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::end(void)
mov rax, qword ptr [rsp+138h+var_D0]
movzx eax, byte ptr [rax]
mov qword ptr [rsp+138h+var_100], rax; int
sub rax, 9; switch 10 cases
ja def_C14E0; jumptable 00000000000C14E0 default case
mov rax, qword ptr [rsp+138h+var_100]
lea rcx, jpt_C14E0
movsxd rax, ds:(jpt_C14E0 - 1BB148h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_C14E2:
mov rdi, qword ptr [rsp+138h+var_E8]; jumptable 00000000000C14E0 cases 3-8
add rdi, 8
add rdi, 10h; this
call _ZNK8nlohmann16json_abi_v3_11_36detail20primitive_iterator_t8is_beginEv; nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::is_begin(void)
xor al, 0FFh
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_C1503
jmp loc_C15E9
loc_C1503:
mov [rsp+138h+var_72], 1
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov [rsp+138h+var_110], rax; int
lea rdi, [rsp+138h+var_71]
mov qword ptr [rsp+138h+var_108], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+138h+var_108]
lea rsi, aIteratorOutOfR; "iterator out of range"
lea rdi, [rsp+138h+var_71+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_C1547:
mov rcx, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_110]; int
mov esi, 0CDh
lea rdx, [rsp+138h+var_71+1]
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
jmp short $+2
loc_C1565:
mov rdi, [rsp+138h+var_110]; void *
mov [rsp+138h+var_72], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorD2Ev; void (*)(void *)
call ___cxa_throw
jmp loc_C18B3
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
jmp short loc_C15C1
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
lea rdi, [rsp+arg_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_C15C1:
lea rdi, [rsp+arg_BF]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
test [rsp+arg_BE], 1
jnz short loc_C15DA
jmp short loc_C15E4
loc_C15DA:
mov rdi, [rsp+arg_20]; void *
call ___cxa_free_exception
loc_C15E4:
jmp loc_C18A6
loc_C15E9:
mov rdi, qword ptr [rsp+138h+var_D0]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_stringEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_string(void)
test al, 1
jnz short loc_C15FC
jmp loc_C1680
loc_C15FC:
lea rdi, [rsp+138h+var_73]
mov [rsp+138h+var_118], rdi
call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev; std::allocator<std::string>::allocator(void)
mov rax, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_118]
mov rsi, [rax+8]
call _ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE7destroyIS5_EEvRS6_PT_; std::allocator_traits<std::allocator<std::string>>::destroy<std::string>(std::allocator<std::string>&,std::string *)
mov rax, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_118]
mov rsi, [rax+8]
mov edx, 1
call _ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE10deallocateERS6_PS5_m; std::allocator_traits<std::allocator<std::string>>::deallocate(std::allocator<std::string>&,std::string*,ulong)
jmp short $+2
loc_C163B:
mov rax, qword ptr [rsp+138h+var_D0]
mov qword ptr [rax+8], 0
lea rdi, [rsp+138h+var_73]
call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator()
jmp loc_C1716
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
lea rdi, [rsp+arg_BD]
call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator()
jmp loc_C18A6
loc_C1680:
mov rdi, qword ptr [rsp+138h+var_D0]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_binaryEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_binary(void)
test al, 1
jnz short loc_C1693
jmp loc_C1714
loc_C1693:
lea rdi, [rsp+138h+var_74]
mov [rsp+138h+var_120], rdi
call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEC2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::allocator(void)
mov rax, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_120]
mov rsi, [rax+8]
call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE7destroyIS6_EEvRS7_PT_; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>> *)
mov rax, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_120]
mov rsi, [rax+8]
mov edx, 1
call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE10deallocateERS7_PS6_m; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::deallocate(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>*,ulong)
jmp short $+2
loc_C16D2:
mov rax, qword ptr [rsp+138h+var_D0]
mov qword ptr [rax+8], 0
lea rdi, [rsp+138h+var_74]
call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator()
jmp short loc_C1714
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
lea rdi, [rsp+arg_BC]
call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator()
jmp loc_C18A6
loc_C1714:
jmp short $+2
loc_C1716:
mov rdi, qword ptr [rsp+138h+var_D0]
mov byte ptr [rdi], 0
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
jmp loc_C1899
loc_C172D:
mov rax, qword ptr [rsp+138h+var_E8]; jumptable 00000000000C14E0 case 1
mov rcx, qword ptr [rsp+138h+var_D0]
mov rdi, [rcx+8]
mov rax, [rax+8]
mov [rsp+138h+var_88], rax
mov rsi, [rsp+138h+var_88]
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEE; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::erase(__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>>>>)
mov rcx, rax
mov rax, qword ptr [rsp+138h+var_E0]
mov [rsp+138h+var_80], rcx
mov rcx, [rsp+138h+var_80]
mov [rax+8], rcx
jmp loc_C1899
loc_C1775:
mov rsi, qword ptr [rsp+138h+var_E8]; jumptable 00000000000C14E0 case 2
mov rax, qword ptr [rsp+138h+var_D0]
mov rax, [rax+8]
mov [rsp+138h+var_128], rax
add rsi, 8
add rsi, 8
lea rdi, [rsp+138h+var_98]
call _ZN9__gnu_cxx17__normal_iteratorIPKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEC2IPSF_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISN_SM_EE7__valueESJ_E6__typeEEE
mov rdi, [rsp+138h+var_128]
mov rsi, [rsp+138h+var_98]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKSD_SF_EE; 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>>::erase(__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> const*,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>>>)
mov rcx, rax
mov rax, qword ptr [rsp+138h+var_E0]
mov [rsp+138h+var_90], rcx
mov rcx, [rsp+138h+var_90]
mov [rax+10h], rcx
jmp loc_C1899
loc_C17D0:
jmp short $+2; jumptable 00000000000C14E0 cases 0,9
def_C14E0:
mov [rsp+138h+var_C1], 1; jumptable 00000000000C14E0 default case
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rdi, qword ptr [rsp+138h+var_D0]
mov [rsp+138h+var_130], rax; int
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
mov qword ptr [rsp+138h+var_C0], rax; int
lea rsi, aCannotUseErase; "cannot use erase() with "
lea rdi, [rsp+138h+var_B8]; int
lea rdx, [rsp+138h+var_C0]; int
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA25_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[25],char const*>(char const(&)[25],char const* &&)
jmp short $+2
loc_C1810:
mov rcx, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_130]; int
mov esi, 133h
lea rdx, [rsp+138h+var_B8]
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
jmp short $+2
loc_C182E:
mov rdi, [rsp+138h+var_130]; void *
mov [rsp+138h+var_C1], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *)
call ___cxa_throw
jmp short loc_C18B3
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
jmp short loc_C1884
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
lea rdi, [rsp+arg_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_C1884:
test [rsp+arg_6F], 1
jnz short loc_C188D
jmp short loc_C1897
loc_C188D:
mov rdi, [rsp+arg_0]; void *
call ___cxa_free_exception
loc_C1897:
jmp short loc_C18A6
loc_C1899:
mov rax, qword ptr [rsp+138h+var_D8]
add rsp, 138h
retn
loc_C18A6:
mov rdi, [rsp+arg_E8]
call __Unwind_Resume
loc_C18B3:
nop word ptr [rax+rax+00000000h]
nop dword ptr [rax]
| long long ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_(
long long a1,
unsigned __int8 *a2,
unsigned __int8 **a3)
{
long long v3; // rdx
long long v4; // rdx
long long v5; // rcx
long long v6; // r8
long long v7; // r9
long long v8; // rcx
long long v9; // r8
long long v10; // r9
int v11; // ecx
int v12; // r8d
int v13; // r9d
int v15; // [rsp+0h] [rbp-138h]
int v16; // [rsp+0h] [rbp-138h]
int v17; // [rsp+8h] [rbp-130h]
void *v18; // [rsp+8h] [rbp-130h]
int v19; // [rsp+8h] [rbp-130h]
void *v20; // [rsp+8h] [rbp-130h]
int v21; // [rsp+10h] [rbp-128h]
long long v22; // [rsp+10h] [rbp-128h]
int v23; // [rsp+10h] [rbp-128h]
long long v24; // [rsp+18h] [rbp-120h]
char v25; // [rsp+18h] [rbp-120h]
int v26; // [rsp+20h] [rbp-118h]
int v27; // [rsp+28h] [rbp-110h]
int v28; // [rsp+28h] [rbp-110h]
void *v29; // [rsp+28h] [rbp-110h]
int v30; // [rsp+30h] [rbp-108h]
int v31; // [rsp+38h] [rbp-100h]
int v32; // [rsp+38h] [rbp-100h]
void *v33; // [rsp+40h] [rbp-F8h]
void *exception; // [rsp+40h] [rbp-F8h]
void *v35; // [rsp+40h] [rbp-F8h]
int v36; // [rsp+48h] [rbp-F0h]
char v38; // [rsp+70h] [rbp-C8h]
int v39[2]; // [rsp+78h] [rbp-C0h] BYREF
int v40; // [rsp+80h] [rbp-B8h] BYREF
int v41; // [rsp+88h] [rbp-B0h]
char v42; // [rsp+90h] [rbp-A8h]
long long v43; // [rsp+A0h] [rbp-98h] BYREF
long long v44; // [rsp+A8h] [rbp-90h]
char v45; // [rsp+C4h] [rbp-74h] BYREF
_BYTE v46[2]; // [rsp+C5h] [rbp-73h] BYREF
int v47[9]; // [rsp+C7h] [rbp-71h] BYREF
char v48; // [rsp+EBh] [rbp-4Dh]
int v49[8]; // [rsp+FFh] [rbp-39h] BYREF
unsigned __int8 **v50; // [rsp+120h] [rbp-18h]
int v51[2]; // [rsp+128h] [rbp-10h]
long long v52; // [rsp+130h] [rbp-8h]
v52 = a1;
*(_QWORD *)v51 = a2;
v50 = a3;
if ( a2 != *a3 )
{
exception = __cxa_allocate_exception(0x20uLL);
std::allocator<char>::allocator(v49, a2, v3);
std::string::basic_string<std::allocator<char>>(
(long long)v49 + 1,
(long long)"iterator does not fit current value",
(long long)v49);
ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
(int)exception,
v15,
v17,
v21,
v24,
v26,
v27,
v30,
v31,
(long long)exception,
(int)v49,
(char)a3,
a1,
a1,
(int)a2,
v38,
v39[0],
v40,
v41,
v42);
v48 = 0;
__cxa_throw(
v35,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator,
nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_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>::end(
a1,
(long long)a2);
v32 = *a2;
switch ( *a2 )
{
case 1u:
*(_QWORD *)(a1 + 8) = nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::erase(
*((_QWORD *)a2 + 1),
a3[1]);
break;
case 2u:
v22 = *((_QWORD *)a2 + 1);
__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> const*,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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>*>(
&v43,
a3 + 2);
v44 = 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>>::erase(
v22,
v43);
*(_QWORD *)(a1 + 16) = v44;
break;
case 3u:
case 4u:
case 5u:
case 6u:
case 7u:
case 8u:
if ( (nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::is_begin((nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t *)(a3 + 3)) & 1) == 0 )
{
v28 = (unsigned int)__cxa_allocate_exception(0x20uLL);
std::allocator<char>::allocator(v47, a2, v4);
std::string::basic_string<std::allocator<char>>(
(long long)v47 + 1,
(long long)"iterator out of range",
(long long)v47);
ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
v28,
v15,
v17,
v21,
v24,
v26,
v28,
(int)v47,
v32,
(long long)v33,
v36,
(char)a3,
a1,
a1,
(int)a2,
v38,
v39[0],
v40,
v41,
v42);
v46[1] = 0;
__cxa_throw(
v29,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator,
nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_iterator);
}
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_string(a2) )
{
std::allocator<std::string>::allocator((long long)v46);
std::allocator_traits<std::allocator<std::string>>::destroy<std::string>((long long)v46, *((_QWORD *)a2 + 1));
std::allocator_traits<std::allocator<std::string>>::deallocate(
(long long)v46,
*((_QWORD *)a2 + 1),
1LL,
v5,
v6,
v7);
*((_QWORD *)a2 + 1) = 0LL;
std::allocator<std::string>::~allocator((long long)v46);
}
else 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_binary(a2) & 1) != 0 )
{
std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::allocator((long long)&v45);
std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>(
(long long)&v45,
*((_QWORD *)a2 + 1));
std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::deallocate(
(long long)&v45,
*((_QWORD *)a2 + 1),
1LL,
v8,
v9,
v10);
*((_QWORD *)a2 + 1) = 0LL;
std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::~allocator((long long)&v45);
}
*a2 = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((long long)a2);
break;
default:
v18 = __cxa_allocate_exception(0x20uLL);
*(_QWORD *)v39 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a2);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[25],char const*>(
(int)&v40,
(int)"cannot use erase() with ",
(int)v39,
v11,
v12,
v13,
v15,
v18,
v21,
v24);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
v19,
v16,
v19,
v23,
v25,
v26,
v27,
v30,
v32,
(long long)v33,
v36,
(char)a3,
a1,
a1,
(int)a2,
v38,
v39[0],
v40,
v41,
v42);
__cxa_throw(
v20,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::type_error::~type_error);
}
return a1;
}
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_:
SUB RSP,0x138
MOV qword ptr [RSP + 0x50],RDX
MOV qword ptr [RSP + 0x58],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x60],RAX
MOV qword ptr [RSP + 0x130],RDI
MOV qword ptr [RSP + 0x128],RSI
MOV qword ptr [RSP + 0x120],RDX
MOV RAX,qword ptr [RSP + 0x128]
MOV qword ptr [RSP + 0x68],RAX
CMP RAX,qword ptr [RDX]
SETNZ AL
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x001c13c1
JMP 0x001c14a7
LAB_001c13c1:
MOV byte ptr [RSP + 0xeb],0x1
MOV EDI,0x20
CALL 0x00151570
MOV qword ptr [RSP + 0x40],RAX
LEA RDI,[RSP + 0xff]
MOV qword ptr [RSP + 0x48],RDI
CALL 0x00151dd0
MOV RDX,qword ptr [RSP + 0x48]
LAB_001c13ef:
LEA RSI,[0x2be848]
LEA RDI,[RSP + 0x100]
CALL 0x00157a70
JMP 0x001c1405
LAB_001c1405:
MOV RCX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x40]
MOV ESI,0xca
LEA RDX,[RSP + 0x100]
CALL 0x001c1ec0
JMP 0x001c1423
LAB_001c1423:
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0xeb],0x0
LEA RSI,[0x33b240]
LEA RDX,[0x1c2070]
CALL 0x00151930
LAB_001c14a7:
MOV RSI,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x001c10c0
MOV RAX,qword ptr [RSP + 0x68]
MOVZX EAX,byte ptr [RAX]
MOV qword ptr [RSP + 0x38],RAX
SUB RAX,0x9
JA 0x001c17d2
MOV RAX,qword ptr [RSP + 0x38]
LEA RCX,[0x2bb148]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_3:
MOV RDI,qword ptr [RSP + 0x50]
ADD RDI,0x8
ADD RDI,0x10
CALL 0x001c22d0
XOR AL,0xff
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x001c1503
JMP 0x001c15e9
LAB_001c1503:
MOV byte ptr [RSP + 0xc6],0x1
MOV EDI,0x20
CALL 0x00151570
MOV qword ptr [RSP + 0x28],RAX
LEA RDI,[RSP + 0xc7]
MOV qword ptr [RSP + 0x30],RDI
CALL 0x00151dd0
MOV RDX,qword ptr [RSP + 0x30]
LAB_001c1531:
LEA RSI,[0x2be86c]
LEA RDI,[RSP + 0xc8]
CALL 0x00157a70
JMP 0x001c1547
LAB_001c1547:
MOV RCX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,0xcd
LEA RDX,[RSP + 0xc8]
CALL 0x001c1ec0
JMP 0x001c1565
LAB_001c1565:
MOV RDI,qword ptr [RSP + 0x28]
MOV byte ptr [RSP + 0xc6],0x0
LEA RSI,[0x33b240]
LEA RDX,[0x1c2070]
CALL 0x00151930
LAB_001c15e9:
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x001a8440
TEST AL,0x1
JNZ 0x001c15fc
JMP 0x001c1680
LAB_001c15fc:
LEA RDI,[RSP + 0xc5]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x001586f0
MOV RAX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x00158c80
MOV RAX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX + 0x8]
LAB_001c162f:
MOV EDX,0x1
CALL 0x00159180
JMP 0x001c163b
LAB_001c163b:
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RAX + 0x8],0x0
LEA RDI,[RSP + 0xc5]
CALL 0x0015ba70
JMP 0x001c1716
LAB_001c1680:
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x001c22f0
TEST AL,0x1
JNZ 0x001c1693
JMP 0x001c1714
LAB_001c1693:
LEA RDI,[RSP + 0xc4]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x001a96d0
MOV RAX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001a96e0
MOV RAX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX + 0x8]
LAB_001c16c6:
MOV EDX,0x1
CALL 0x001a9710
LAB_001c16d0:
JMP 0x001c16d2
LAB_001c16d2:
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RAX + 0x8],0x0
LEA RDI,[RSP + 0xc4]
CALL 0x001a9740
JMP 0x001c1714
LAB_001c1714:
JMP 0x001c1716
LAB_001c1716:
MOV RDI,qword ptr [RSP + 0x68]
MOV byte ptr [RDI],0x0
MOV ESI,0x1
CALL 0x001a6580
JMP 0x001c1899
caseD_1:
MOV RAX,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RCX + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0xb0],RAX
MOV RSI,qword ptr [RSP + 0xb0]
CALL 0x001c2310
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0xb8],RCX
MOV RCX,qword ptr [RSP + 0xb8]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x001c1899
caseD_2:
MOV RSI,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x10],RAX
ADD RSI,0x8
ADD RSI,0x8
LEA RDI,[RSP + 0xa0]
CALL 0x001c23f0
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0xa0]
CALL 0x001c2380
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0xa8],RCX
MOV RCX,qword ptr [RSP + 0xa8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001c1899
caseD_0:
JMP 0x001c17d2
default:
MOV byte ptr [RSP + 0x77],0x1
MOV EDI,0x20
CALL 0x00151570
MOV RDI,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001a7050
MOV qword ptr [RSP + 0x78],RAX
LAB_001c17f5:
LEA RSI,[0x2be882]
LEA RDI,[RSP + 0x80]
LEA RDX,[RSP + 0x78]
CALL 0x001c25e0
JMP 0x001c1810
LAB_001c1810:
MOV RCX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x133
LEA RDX,[RSP + 0x80]
CALL 0x001c2430
JMP 0x001c182e
LAB_001c182e:
MOV RDI,qword ptr [RSP + 0x8]
MOV byte ptr [RSP + 0x77],0x0
LEA RSI,[0x33b118]
LEA RDX,[0x1a7100]
CALL 0x00151930
LAB_001c1899:
MOV RAX,qword ptr [RSP + 0x60]
ADD RSP,0x138
RET
|
long _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
(long param_1,
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_2,long *param_3)
{
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>>>
*pvVar1;
byte bVar2;
ulong uVar3;
int8 uVar4;
char *local_c0;
detail local_b8 [32];
int8 local_98 [2];
long local_88;
allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
local_74;
allocator<std::__cxx11::string> local_73;
int1 local_72;
allocator local_71;
string local_70 [35];
int1 local_4d;
allocator local_39;
string local_38 [32];
long *local_18;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_10;
long local_8;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
if (param_2 !=
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*param_3) {
local_4d = 1;
uVar4 = __cxa_allocate_exception(0x20);
std::allocator<char>::allocator();
/* try { // try from 001c13ef to 001c1402 has its CatchHandler @ 001c1448 */
std::__cxx11::string::string<std::allocator<char>>
(local_38,"iterator does not fit current value",&local_39);
/* try { // try from 001c1405 to 001c1442 has its CatchHandler @ 001c145e */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar4,0xca,local_38,param_2);
local_4d = 0;
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_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>
::end();
switch(*param_2) {
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x9:
default:
uVar4 = __cxa_allocate_exception(0x20);
local_c0 = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_2);
/* try { // try from 001c17f5 to 001c180d has its CatchHandler @ 001c184d */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[25],char_const*>
(local_b8,"cannot use erase() with ",&local_c0);
/* try { // try from 001c1810 to 001c184a has its CatchHandler @ 001c1863 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar4,0x133,local_b8,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::type_error::~type_error);
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1:
local_88 = param_3[1];
uVar4 = nlohmann::json_abi_v3_11_3::
ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::erase(*(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)(param_2 + 8),local_88);
*(int8 *)(param_1 + 8) = uVar4;
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2:
pvVar1 = *(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>>>
**)(param_2 + 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>const*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::
__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>*>
((__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>const*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*)local_98,(__normal_iterator *)(param_3 + 2));
uVar4 = 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>>>
::erase(pvVar1,local_98[0]);
*(int8 *)(param_1 + 0x10) = uVar4;
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x3:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x4:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x5:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x6:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x7:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x8:
bVar2 = nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::is_begin
((primitive_iterator_t *)(param_3 + 3));
if (((bVar2 ^ 0xff) & 1) != 0) {
local_72 = 1;
uVar4 = __cxa_allocate_exception(0x20);
std::allocator<char>::allocator();
/* try { // try from 001c1531 to 001c1544 has its CatchHandler @ 001c158a */
std::__cxx11::string::string<std::allocator<char>>(local_70,"iterator out of range",&local_71)
;
/* try { // try from 001c1547 to 001c1584 has its CatchHandler @ 001c15a0 */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar4,0xcd,local_70,param_2);
local_72 = 0;
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_iterator);
}
uVar3 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_string(param_2);
if ((uVar3 & 1) == 0) {
uVar3 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_binary(param_2);
if ((uVar3 & 1) != 0) {
std::
allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::allocator(&local_74);
std::
allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::
destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
((allocator *)&local_74,*(byte_container_with_subtype **)(param_2 + 8));
/* try { // try from 001c16c6 to 001c16cf has its CatchHandler @ 001c16ee */
std::
allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::deallocate((allocator *)&local_74,*(byte_container_with_subtype **)(param_2 + 8),1);
*(int8 *)(param_2 + 8) = 0;
std::
allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::~allocator(&local_74);
}
}
else {
std::allocator<std::__cxx11::string>::allocator(&local_73);
std::allocator_traits<std::allocator<std::__cxx11::string>>::destroy<std::__cxx11::string>
((allocator *)&local_73,*(string **)(param_2 + 8));
/* try { // try from 001c162f to 001c1638 has its CatchHandler @ 001c165a */
std::allocator_traits<std::allocator<std::__cxx11::string>>::deallocate
((allocator *)&local_73,*(string **)(param_2 + 8),1);
*(int8 *)(param_2 + 8) = 0;
std::allocator<std::__cxx11::string>::~allocator(&local_73);
}
*param_2 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(param_2,0));
}
return param_1;
}
| |
29,745 | 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>> 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>::erase<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>>, 0>(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>>) | monkey531[P]llama/common/json.hpp | IteratorType erase(IteratorType pos)
{
// make sure iterator fits the current value
if (JSON_HEDLEY_UNLIKELY(this != pos.m_object))
{
JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
}
IteratorType result = end();
switch (m_data.m_type)
{
case value_t::boolean:
case value_t::number_float:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::string:
case value_t::binary:
{
if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin()))
{
JSON_THROW(invalid_iterator::create(205, "iterator out of range", this));
}
if (is_string())
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.string, 1);
m_data.m_value.string = nullptr;
}
else if (is_binary())
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.binary, 1);
m_data.m_value.binary = nullptr;
}
m_data.m_type = value_t::null;
assert_invariant();
break;
}
case value_t::object:
{
result.m_it.object_iterator = m_data.m_value.object->erase(pos.m_it.object_iterator);
break;
}
case value_t::array:
{
result.m_it.array_iterator = m_data.m_value.array->erase(pos.m_it.array_iterator);
break;
}
case value_t::null:
case value_t::discarded:
default:
JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
}
return result;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> 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>::erase<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>>, 0>(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>>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
cmpq %rsi, (%rdx)
jne 0x4aa3b
movq %rdx, %r15
movq %rdi, %rbx
movq %r14, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x18(%rdi)
callq 0x4af74
movzbl (%r14), %eax
leal -0x3(%rax), %ecx
cmpl $0x6, %ecx
jae 0x4a9a8
cmpq $0x0, 0x18(%r15)
jne 0x4aa9e
cmpl $0x8, %eax
je 0x4a9c9
cmpl $0x3, %eax
jne 0x4a9fc
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
movq (%rdi), %rax
leaq 0x10(%rdi), %rcx
cmpq %rcx, %rax
je 0x4a9a1
movq (%rcx), %rsi
incq %rsi
movq %rax, %rdi
callq 0x186a0
movq (%r15), %rdi
movl $0x20, %esi
jmp 0x4a9f0
cmpl $0x1, %eax
je 0x4aa1d
cmpl $0x2, %eax
jne 0x4aafe
movq 0x8(%r14), %rdi
movq 0x10(%r15), %rsi
callq 0x4b708
movq %rax, 0x10(%rbx)
jmp 0x4aa0d
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
movq (%rdi), %rax
testq %rax, %rax
je 0x4a9eb
movq 0x10(%rdi), %rsi
subq %rax, %rsi
movq %rax, %rdi
callq 0x186a0
movq (%r15), %rdi
movl $0x28, %esi
callq 0x186a0
movq $0x0, (%r15)
movb $0x0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x3ecbc
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %r12
addq $0x8, %r12
movq 0x8(%r14), %rdi
movq 0x8(%r15), %rsi
leaq 0x30(%rsi), %rdx
callq 0x4b232
movq %rax, (%r12)
jmp 0x4aa0d
movl $0x20, %edi
callq 0x18350
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x61339(%rip), %rsi # 0xabd91
leaq 0x61355(%rip), %rdx # 0xabdb4
leaq 0x8(%rsp), %rdi
callq 0x1ded4
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xca, %esi
movq %r14, %rcx
callq 0x4ad72
xorl %ebp, %ebp
leaq 0x91966(%rip), %rsi # 0xdc3f0
leaq 0x2be5(%rip), %rdx # 0x4d676
movq %rbx, %rdi
callq 0x18b50
jmp 0x4ab5c
movl $0x20, %edi
callq 0x18350
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x612fa(%rip), %rsi # 0xabdb5
leaq 0x61308(%rip), %rdx # 0xabdca
leaq 0x8(%rsp), %rdi
callq 0x1ded4
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xcd, %esi
movq %r14, %rcx
callq 0x4ad72
xorl %ebp, %ebp
leaq 0x91903(%rip), %rsi # 0xdc3f0
leaq 0x2b82(%rip), %rdx # 0x4d676
movq %rbx, %rdi
callq 0x18b50
jmp 0x4ab5c
movl $0x20, %edi
callq 0x18350
movq %rax, %rbx
movq %r14, %rdi
callq 0x3f3b0
leaq 0x28(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x612a9(%rip), %rsi # 0xabdcb
leaq 0x8(%rsp), %rdi
callq 0x4b1a9
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x133, %esi # imm = 0x133
movq %r14, %rcx
callq 0x4afda
xorl %ebp, %ebp
leaq 0x9177b(%rip), %rsi # 0xdc2c8
leaq 0x2b22(%rip), %rdx # 0x4d676
movq %rbx, %rdi
callq 0x18b50
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x4ab82
jmp 0x4ab8f
jmp 0x4ab96
jmp 0x4ab75
jmp 0x4ab96
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4ab8f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
testb %bpl, %bpl
jne 0x4ab99
jmp 0x4aba1
movq %rax, %r14
movq %rbx, %rdi
callq 0x184f0
movq %r14, %rdi
callq 0x18bc0
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_:
push rbp; int
push r15; int
push r14; char
push r12; int
push rbx; __int64
sub rsp, 30h
mov r14, rsi
cmp [rdx], rsi
jnz loc_4AA3B
mov r15, rdx
mov rbx, rdi
mov [rdi], r14
xorps xmm0, xmm0
movups xmmword ptr [rdi+8], xmm0
mov rax, 8000000000000000h
mov [rdi+18h], rax
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_end(void)
movzx eax, byte ptr [r14]
lea ecx, [rax-3]
cmp ecx, 6
jnb short loc_4A9A8
cmp qword ptr [r15+18h], 0
jnz loc_4AA9E
cmp eax, 8
jz short loc_4A9C9
cmp eax, 3
jnz loc_4A9FC
lea r15, [r14+8]
mov rdi, [r14+8]
mov rax, [rdi]
lea rcx, [rdi+10h]
cmp rax, rcx
jz short loc_4A9A1
mov rsi, [rcx]
inc rsi; unsigned __int64
mov rdi, rax; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, [r15]
loc_4A9A1:
mov esi, 20h ; ' '
jmp short loc_4A9F0
loc_4A9A8:
cmp eax, 1
jz short loc_4AA1D
cmp eax, 2
jnz loc_4AAFE
mov rdi, [r14+8]
mov rsi, [r15+10h]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPSD_SF_EE; 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>>::_M_erase(__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>>>)
mov [rbx+10h], rax
jmp short loc_4AA0D
loc_4A9C9:
lea r15, [r14+8]
mov rdi, [r14+8]
mov rax, [rdi]
test rax, rax
jz short loc_4A9EB
mov rsi, [rdi+10h]
sub rsi, rax; unsigned __int64
mov rdi, rax; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, [r15]; void *
loc_4A9EB:
mov esi, 28h ; '('; unsigned __int64
loc_4A9F0:
call __ZdlPvm; operator delete(void *,ulong)
mov qword ptr [r15], 0
loc_4A9FC:
mov byte ptr [r14], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
loc_4AA0D:
mov rax, rbx
add rsp, 30h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_4AA1D:
mov r12, rbx
add r12, 8
mov rdi, [r14+8]
mov rsi, [r15+8]
lea rdx, [rsi+30h]
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEESP_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::erase(__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>>>>,__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>>>>)
mov [r12], rax
jmp short loc_4AA0D
loc_4AA3B:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r15, [rsp+58h+var_40]
mov [r15-10h], r15
lea rsi, aIteratorDoesNo; "iterator does not fit current value"
lea rdx, aIteratorDoesNo+23h; ""
lea rdi, [rsp+58h+var_50]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov bpl, 1
lea rdx, [rsp+58h+var_50]
mov rdi, rbx; this
mov esi, 0CAh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp loc_4AB5C
loc_4AA9E:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r15, [rsp+58h+var_40]
mov [r15-10h], r15
lea rsi, aIteratorOutOfR; "iterator out of range"
lea rdx, aIteratorOutOfR+15h; ""
lea rdi, [rsp+58h+var_50]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov bpl, 1
lea rdx, [rsp+58h+var_50]
mov rdi, rbx; this
mov esi, 0CDh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_4AB5C
loc_4AAFE:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+58h+var_30]
mov [rdx], rax
lea rsi, aCannotUseErase; "cannot use erase() with "
lea rdi, [rsp+58h+var_50]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA25_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[25],char const*>(char const(&)[25],char const* &&)
mov bpl, 1
lea rdx, [rsp+58h+var_50]
mov rdi, rbx; this
mov esi, 133h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_4AB5C:
mov r14, rax
lea rax, [rsp+58h+var_40]
mov rdi, [rax-10h]
cmp rdi, rax
jnz short loc_4AB82
jmp short loc_4AB8F
jmp short loc_4AB96
jmp short loc_4AB75
jmp short loc_4AB96
loc_4AB75:
mov r14, rax
mov rdi, [rsp+58h+var_50]; void *
cmp rdi, r15
jz short loc_4AB8F
loc_4AB82:
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4AB8F:
test bpl, bpl
jnz short loc_4AB99
jmp short loc_4ABA1
loc_4AB96:
mov r14, rax
loc_4AB99:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_4ABA1:
mov rdi, r14
call __Unwind_Resume
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x30
MOV R14,RSI
CMP qword ptr [RDX],RSI
JNZ 0x0014aa3b
MOV R15,RDX
MOV RBX,RDI
MOV qword ptr [RDI],R14
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x8],XMM0
MOV RAX,-0x8000000000000000
MOV qword ptr [RDI + 0x18],RAX
CALL 0x0014af74
MOVZX EAX,byte ptr [R14]
LEA ECX,[RAX + -0x3]
CMP ECX,0x6
JNC 0x0014a9a8
CMP qword ptr [R15 + 0x18],0x0
JNZ 0x0014aa9e
CMP EAX,0x8
JZ 0x0014a9c9
CMP EAX,0x3
JNZ 0x0014a9fc
LEA R15,[R14 + 0x8]
MOV RDI,qword ptr [R14 + 0x8]
MOV RAX,qword ptr [RDI]
LEA RCX,[RDI + 0x10]
CMP RAX,RCX
JZ 0x0014a9a1
MOV RSI,qword ptr [RCX]
INC RSI
MOV RDI,RAX
CALL 0x001186a0
MOV RDI,qword ptr [R15]
LAB_0014a9a1:
MOV ESI,0x20
JMP 0x0014a9f0
LAB_0014a9a8:
CMP EAX,0x1
JZ 0x0014aa1d
CMP EAX,0x2
JNZ 0x0014aafe
MOV RDI,qword ptr [R14 + 0x8]
MOV RSI,qword ptr [R15 + 0x10]
CALL 0x0014b708
MOV qword ptr [RBX + 0x10],RAX
JMP 0x0014aa0d
LAB_0014a9c9:
LEA R15,[R14 + 0x8]
MOV RDI,qword ptr [R14 + 0x8]
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x0014a9eb
MOV RSI,qword ptr [RDI + 0x10]
SUB RSI,RAX
MOV RDI,RAX
CALL 0x001186a0
MOV RDI,qword ptr [R15]
LAB_0014a9eb:
MOV ESI,0x28
LAB_0014a9f0:
CALL 0x001186a0
MOV qword ptr [R15],0x0
LAB_0014a9fc:
MOV byte ptr [R14],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x0013ecbc
LAB_0014aa0d:
MOV RAX,RBX
ADD RSP,0x30
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0014aa1d:
MOV R12,RBX
ADD R12,0x8
MOV RDI,qword ptr [R14 + 0x8]
MOV RSI,qword ptr [R15 + 0x8]
LEA RDX,[RSI + 0x30]
CALL 0x0014b232
MOV qword ptr [R12],RAX
JMP 0x0014aa0d
LAB_0014aa3b:
MOV EDI,0x20
CALL 0x00118350
MOV RBX,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LAB_0014aa51:
LEA RSI,[0x1abd91]
LEA RDX,[0x1abdb4]
LEA RDI,[RSP + 0x8]
CALL 0x0011ded4
MOV BPL,0x1
LAB_0014aa6c:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0xca
MOV RCX,R14
CALL 0x0014ad72
XOR EBP,EBP
LEA RSI,[0x1dc3f0]
LEA RDX,[0x14d676]
MOV RDI,RBX
CALL 0x00118b50
LAB_0014aa9e:
MOV EDI,0x20
CALL 0x00118350
MOV RBX,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LAB_0014aab4:
LEA RSI,[0x1abdb5]
LEA RDX,[0x1abdca]
LEA RDI,[RSP + 0x8]
CALL 0x0011ded4
MOV BPL,0x1
LAB_0014aacf:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0xcd
MOV RCX,R14
CALL 0x0014ad72
XOR EBP,EBP
LEA RSI,[0x1dc3f0]
LEA RDX,[0x14d676]
MOV RDI,RBX
CALL 0x00118b50
LAB_0014aafe:
MOV EDI,0x20
CALL 0x00118350
MOV RBX,RAX
MOV RDI,R14
CALL 0x0013f3b0
LEA RDX,[RSP + 0x28]
MOV qword ptr [RDX],RAX
LAB_0014ab1b:
LEA RSI,[0x1abdcb]
LEA RDI,[RSP + 0x8]
CALL 0x0014b1a9
MOV BPL,0x1
LAB_0014ab2f:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0x133
MOV RCX,R14
CALL 0x0014afda
XOR EBP,EBP
LEA RSI,[0x1dc2c8]
LEA RDX,[0x14d676]
MOV RDI,RBX
CALL 0x00118b50
|
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>>
* _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
(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>>
*param_1,
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_2,long *param_3)
{
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
bVar1;
void *pvVar2;
int8 uVar3;
ulong uVar4;
int8 *puVar5;
int1 *local_50 [2];
int1 local_40 [16];
char *local_30;
if ((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*param_3 != param_2) {
uVar3 = __cxa_allocate_exception(0x20);
local_50[0] = local_40;
/* try { // try from 0014aa51 to 0014aa68 has its CatchHandler @ 0014ab96 */
std::__cxx11::string::_M_construct<char_const*>
(local_50,"iterator does not fit current value","");
/* try { // try from 0014aa6c to 0014aa98 has its CatchHandler @ 0014ab75 */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar3,0xca,local_50,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)param_1 = param_2;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
*(int8 *)(param_1 + 0x18) = 0x8000000000000000;
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::set_end(param_1);
bVar1 = *param_2;
if (5 < (byte)bVar1 - 3) {
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
uVar3 = nlohmann::json_abi_v3_11_3::
ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::erase(*(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)(param_2 + 8),param_3[1],param_3[1] + 0x30);
*(int8 *)(param_1 + 8) = uVar3;
return param_1;
}
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
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>>>
::_M_erase(*(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>>>
**)(param_2 + 8),param_3[2]);
*(int8 *)(param_1 + 0x10) = uVar3;
return param_1;
}
uVar3 = __cxa_allocate_exception(0x20);
local_30 = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_2);
/* try { // try from 0014ab1b to 0014ab2b has its CatchHandler @ 0014ab6f */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[25],char_const*>
((detail *)local_50,"cannot use erase() with ",&local_30);
/* try { // try from 0014ab2f to 0014ab5b has its CatchHandler @ 0014ab5c */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar3,0x133,local_50,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if (param_3[3] != 0) {
uVar3 = __cxa_allocate_exception(0x20);
local_50[0] = local_40;
/* try { // try from 0014aab4 to 0014aacb has its CatchHandler @ 0014ab73 */
std::__cxx11::string::_M_construct<char_const*>(local_50,"iterator out of range","");
/* try { // try from 0014aacf to 0014aafb has its CatchHandler @ 0014ab71 */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar3,0xcd,local_50,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x8) {
puVar5 = *(int8 **)(param_2 + 8);
pvVar2 = (void *)*puVar5;
if (pvVar2 != (void *)0x0) {
operator_delete(pvVar2,puVar5[2] - (long)pvVar2);
puVar5 = *(int8 **)(param_2 + 8);
}
uVar4 = 0x28;
}
else {
if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x3) goto LAB_0014a9fc;
puVar5 = *(int8 **)(param_2 + 8);
if ((long *)*puVar5 != puVar5 + 2) {
operator_delete((long *)*puVar5,puVar5[2] + 1);
puVar5 = *(int8 **)(param_2 + 8);
}
uVar4 = 0x20;
}
operator_delete(puVar5,uVar4);
*(int8 *)(param_2 + 8) = 0;
LAB_0014a9fc:
*param_2 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(param_2,0));
return param_1;
}
| ||
29,746 | codegen_handle_compose_n | tsotchke[P]eshkol/src/backend/codegen/closures.c | bool codegen_handle_compose_n(CodegenContext* context, const AstNode* node, FILE* output) {
assert(context != NULL);
assert(node != NULL);
assert(node->type == AST_CALL);
assert(output != NULL);
// Get diagnostics context
DiagnosticContext* diagnostics = codegen_context_get_diagnostics(context);
// Debug message
diagnostic_debug(diagnostics, node->line, node->column, "Handling compose-n call");
// First, generate a block that will contain our composition logic
fprintf(output, "({ ");
// Handle the case with no arguments
if (node->as.call.arg_count == 0) {
// Return the identity function
fprintf(output, "eshkol_closure_create("
"(void* (*)(EshkolEnvironment*, void**))({ "
"void* _identity_function(EshkolEnvironment* _env, void** _args) { "
"return _args[0]; "
"} "
"_identity_function; "
"}), "
"eshkol_environment_create(env, 0, %lu), "
"NULL, NULL, 1"
")", node->scope_id);
fprintf(output, "; })");
return true;
}
// Handle the case with one argument
if (node->as.call.arg_count == 1) {
// Return the function as is
fprintf(output, "EshkolClosure* _single_func = ");
if (!codegen_generate_expression(context, node->as.call.args[0])) {
return false;
}
fprintf(output, "; ");
// Validate the function
fprintf(output, "if (_single_func == NULL) { "
"fprintf(stderr, \"Error: NULL function in compose-n\\n\"); "
"exit(1); "
"} ");
fprintf(output, "_single_func");
fprintf(output, "; })");
return true;
}
// For multiple functions, we need to create an array of functions
fprintf(output, "EshkolClosure* _funcs[%zu] = {", node->as.call.arg_count);
// Generate the function array
for (size_t i = 0; i < node->as.call.arg_count; i++) {
if (i > 0) {
fprintf(output, ", ");
}
if (!codegen_generate_expression(context, node->as.call.args[i])) {
return false;
}
}
fprintf(output, "};\n");
// Validate each function in the array
for (size_t i = 0; i < node->as.call.arg_count; i++) {
fprintf(output, "if (_funcs[%zu] == NULL) { "
"fprintf(stderr, \"Error: NULL function at position %zu in compose-n\\n\", %zu); "
"exit(1); "
"} ", i, i, i);
}
// Create a new closure that will apply the functions in sequence
fprintf(output, "eshkol_closure_create("
"(void* (*)(EshkolEnvironment*, void**))({ "
"void* _composed_function(EshkolEnvironment* _env, void** _args) { "
// Validate environment
"if (_env == NULL) { "
" fprintf(stderr, \"Error: NULL environment in compose-n function\\n\"); "
" exit(1); "
"} "
// Get captured variables from environment with validation
"void* _func_array_ptr = NULL; "
"void* _func_count_ptr = NULL; "
"if (_env->value_count >= 2) { "
" _func_array_ptr = _env->values[0]; "
" _func_count_ptr = _env->values[1]; "
"} else { "
" fprintf(stderr, \"Error: Invalid environment in compose-n (expected 2 values, got %zu)\\n\", "
" _env->value_count); "
" exit(1); "
"} "
"EshkolClosure** _func_array = (EshkolClosure**)_func_array_ptr;"
"size_t _func_count = (size_t)_func_count_ptr;"
// Validate function array
"if (_func_array == NULL) {"
" fprintf(stderr, \"Error: NULL function array in composition\\n\");"
" exit(1);"
"}"
"void* _result = _args[0];"
"for (size_t i = _func_count; i > 0; i--) {"
" if (_func_array[i-1] == NULL) {"
" fprintf(stderr, \"Error: NULL function at position %zu in composition at runtime\\n\", i-1);"
" exit(1);"
" }"
" _result = eshkol_closure_call(_func_array[i-1], (void*[]){_result});"
"}"
"return _result;"
"} "
"_composed_function; "
"}), "
// Create a new environment that captures the function array and count
"({ "
"EshkolEnvironment* _compose_env = eshkol_environment_create(env, 2, 0xFFFFFFFF);" // Using node scope_id: %llu
"eshkol_environment_add(_compose_env, _funcs, NULL, \"funcs\");"
"eshkol_environment_add(_compose_env, (void*)(size_t)node->as.call.arg_count, NULL, \"count\");"
"_compose_env; "
"}), "
// Return type and parameter types (NULL for now)
"NULL, NULL, 1"
")", node->scope_id, node->as.call.arg_count);
fprintf(output, "; })");
return true;
} | O3 | c | codegen_handle_compose_n:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x10a91
movq %rsi, %r14
testq %rsi, %rsi
je 0x10ab0
cmpl $0x19, (%r14)
jne 0x10acf
movq %rdx, %rbx
testq %rdx, %rdx
je 0x10aee
movq %rdi, %r15
callq 0xb340
movl 0x8(%r14), %esi
movl 0x10(%r14), %edx
leaq 0xe7b5(%rip), %rcx # 0x1f091
movq %rax, %rdi
callq 0x3f78
leaq 0xe7be(%rip), %rdi # 0x1f0a9
movl $0x3, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x22c0
movq 0x58(%r14), %rdx
cmpq $0x1, %rdx
je 0x1092a
testq %rdx, %rdx
jne 0x109aa
movq 0x30(%r14), %rdx
leaq 0xe792(%rip), %rsi # 0x1f0ad
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2200
jmp 0x10a6c
leaq 0xe860(%rip), %rdi # 0x1f191
movl $0x1e, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x22c0
movq 0x50(%r14), %rax
movq (%rax), %rsi
movq %r15, %rdi
callq 0x10f0c
testb %al, %al
je 0x10a51
leaq 0xfa6e(%rip), %rdi # 0x203cf
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x22c0
leaq 0xe836(%rip), %rdi # 0x1f1b0
movl $0x5f, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x22c0
leaq 0xe87d(%rip), %rdi # 0x1f210
movl $0xc, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x22c0
jmp 0x10a6c
leaq 0xe86c(%rip), %rsi # 0x1f21d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2200
cmpq $0x0, 0x58(%r14)
je 0x10a03
xorl %r13d, %r13d
leaq 0xfa50(%rip), %r12 # 0x2041c
testq %r13, %r13
je 0x109e6
movl $0x2, %esi
movl $0x1, %edx
movq %r12, %rdi
movq %rbx, %rcx
callq 0x22c0
movq 0x50(%r14), %rax
movq (%rax,%r13,8), %rsi
movq %r15, %rdi
callq 0x10f0c
testb %al, %al
je 0x10a51
incq %r13
cmpq 0x58(%r14), %r13
jb 0x109cc
leaq 0xe832(%rip), %rdi # 0x1f23c
movl $0x3, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x22c0
cmpq $0x0, 0x58(%r14)
je 0x10a55
leaq 0xe816(%rip), %r15 # 0x1f240
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r12, %rcx
movq %r12, %r8
xorl %eax, %eax
callq 0x2200
incq %r12
movq 0x58(%r14), %rcx
cmpq %rcx, %r12
jb 0x10a2d
jmp 0x10a57
xorl %eax, %eax
jmp 0x10a87
xorl %ecx, %ecx
movq 0x30(%r14), %rdx
leaq 0xe852(%rip), %rsi # 0x1f2b4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2200
leaq 0xfae4(%rip), %rdi # 0x20557
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x22c0
movb $0x1, %al
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x92c7(%rip), %rdi # 0x19d5f
leaq 0xde04(%rip), %rsi # 0x1e8a3
leaq 0xe5a1(%rip), %rcx # 0x1f047
movl $0x255, %edx # imm = 0x255
callq 0x2180
leaq 0xae18(%rip), %rdi # 0x1b8cf
leaq 0xdde5(%rip), %rsi # 0x1e8a3
leaq 0xe582(%rip), %rcx # 0x1f047
movl $0x256, %edx # imm = 0x256
callq 0x2180
leaq 0xe445(%rip), %rdi # 0x1ef1b
leaq 0xddc6(%rip), %rsi # 0x1e8a3
leaq 0xe563(%rip), %rcx # 0x1f047
movl $0x257, %edx # imm = 0x257
callq 0x2180
leaq 0xbd9b(%rip), %rdi # 0x1c890
leaq 0xdda7(%rip), %rsi # 0x1e8a3
leaq 0xe544(%rip), %rcx # 0x1f047
movl $0x258, %edx # imm = 0x258
callq 0x2180
| codegen_handle_compose_n:
push r15
push r14
push r13
push r12
push rbx
test rdi, rdi
jz loc_10A91
mov r14, rsi
test rsi, rsi
jz loc_10AB0
cmp dword ptr [r14], 19h
jnz loc_10ACF
mov rbx, rdx
test rdx, rdx
jz loc_10AEE
mov r15, rdi
call codegen_context_get_diagnostics
mov esi, [r14+8]
mov edx, [r14+10h]
lea rcx, aHandlingCompos; "Handling compose-n call"
mov rdi, rax
call diagnostic_debug
lea rdi, asc_1F0A9; "({ "
mov esi, 3
mov edx, 1
mov rcx, rbx
call _fwrite
mov rdx, [r14+58h]
cmp rdx, 1
jz short loc_1092A
test rdx, rdx
jnz loc_109AA
mov rdx, [r14+30h]
lea rsi, aEshkolClosureC_3; "eshkol_closure_create((void* (*)(Eshkol"...
mov rdi, rbx
xor eax, eax
call _fprintf
jmp loc_10A6C
loc_1092A:
lea rdi, aEshkolclosureS; "EshkolClosure* _single_func = "
mov esi, 1Eh
mov edx, 1
mov rcx, rbx
call _fwrite
mov rax, [r14+50h]
mov rsi, [rax]
mov rdi, r15
call codegen_generate_expression
test al, al
jz loc_10A51
lea rdi, aCharBuffer1024+19h; "; "
mov esi, 2
mov edx, 1
mov rcx, rbx
call _fwrite
lea rdi, aIfSingleFuncNu; "if (_single_func == NULL) { fprintf(std"...
mov esi, 5Fh ; '_'
mov edx, 1
mov rcx, rbx
call _fwrite
lea rdi, aSingleFunc; "_single_func"
mov esi, 0Ch
mov edx, 1
mov rcx, rbx
call _fwrite
jmp loc_10A6C
loc_109AA:
lea rsi, aEshkolclosureF; "EshkolClosure* _funcs[%zu] = {"
mov rdi, rbx
xor eax, eax
call _fprintf
cmp qword ptr [r14+58h], 0
jz short loc_10A03
xor r13d, r13d
lea r12, aCharBuffer64Sn+3Ah; ", "
loc_109CC:
test r13, r13
jz short loc_109E6
mov esi, 2
mov edx, 1
mov rdi, r12
mov rcx, rbx
call _fwrite
loc_109E6:
mov rax, [r14+50h]
mov rsi, [rax+r13*8]
mov rdi, r15
call codegen_generate_expression
test al, al
jz short loc_10A51
inc r13
cmp r13, [r14+58h]
jb short loc_109CC
loc_10A03:
lea rdi, asc_1F23C; "};\n"
mov esi, 3
mov edx, 1
mov rcx, rbx
call _fwrite
cmp qword ptr [r14+58h], 0
jz short loc_10A55
lea r15, aIfFuncsZuNullF; "if (_funcs[%zu] == NULL) { fprintf(stde"...
xor r12d, r12d
loc_10A2D:
mov rdi, rbx
mov rsi, r15
mov rdx, r12
mov rcx, r12
mov r8, r12
xor eax, eax
call _fprintf
inc r12
mov rcx, [r14+58h]
cmp r12, rcx
jb short loc_10A2D
jmp short loc_10A57
loc_10A51:
xor eax, eax
jmp short loc_10A87
loc_10A55:
xor ecx, ecx
loc_10A57:
mov rdx, [r14+30h]
lea rsi, aEshkolClosureC_4; "eshkol_closure_create((void* (*)(Eshkol"...
mov rdi, rbx
xor eax, eax
call _fprintf
loc_10A6C:
lea rdi, aVectorFGetComp_0+4Eh; "; })"
mov esi, 4
mov edx, 1
mov rcx, rbx
call _fwrite
mov al, 1
loc_10A87:
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
loc_10A91:
lea rdi, aContextNull; "context != NULL"
lea rsi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolCodegenHan_1; "_Bool codegen_handle_compose_n(CodegenC"...
mov edx, 255h
call ___assert_fail
loc_10AB0:
lea rdi, aNodeNull; "node != NULL"
lea rsi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolCodegenHan_1; "_Bool codegen_handle_compose_n(CodegenC"...
mov edx, 256h
call ___assert_fail
loc_10ACF:
lea rdi, aNodeTypeAstCal; "node->type == AST_CALL"
lea rsi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolCodegenHan_1; "_Bool codegen_handle_compose_n(CodegenC"...
mov edx, 257h
call ___assert_fail
loc_10AEE:
lea rdi, aContextOutputN+9; "output != NULL"
lea rsi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolCodegenHan_1; "_Bool codegen_handle_compose_n(CodegenC"...
mov edx, 258h
call ___assert_fail
| char codegen_handle_compose_n(long long a1, long long a2, long long a3)
{
long long diagnostics; // rax
long long v5; // r8
long long v6; // r9
long long v7; // rdx
long long v8; // r13
unsigned long long v9; // r12
unsigned long long v10; // rcx
if ( !a1 )
__assert_fail(
"context != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/closures.c",
597LL,
"_Bool codegen_handle_compose_n(CodegenContext *, const AstNode *, FILE *)");
if ( !a2 )
__assert_fail(
"node != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/closures.c",
598LL,
"_Bool codegen_handle_compose_n(CodegenContext *, const AstNode *, FILE *)");
if ( *(_DWORD *)a2 != 25 )
__assert_fail(
"node->type == AST_CALL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/closures.c",
599LL,
"_Bool codegen_handle_compose_n(CodegenContext *, const AstNode *, FILE *)");
if ( !a3 )
__assert_fail(
"output != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/closures.c",
600LL,
"_Bool codegen_handle_compose_n(CodegenContext *, const AstNode *, FILE *)");
diagnostics = codegen_context_get_diagnostics(a1);
diagnostic_debug(diagnostics, *(_DWORD *)(a2 + 8), *(_DWORD *)(a2 + 16), (long long)"Handling compose-n call", v5, v6);
fwrite("({ ", 3LL, 1LL, a3);
v7 = *(_QWORD *)(a2 + 88);
if ( v7 == 1 )
{
fwrite("EshkolClosure* _single_func = ", 30LL, 1LL, a3);
if ( (unsigned __int8)codegen_generate_expression(a1, **(_QWORD **)(a2 + 80)) )
{
fwrite("; ", 2LL, 1LL, a3);
fwrite(
"if (_single_func == NULL) { fprintf(stderr, \"Error: NULL function in compose-n\\n\"); exit(1); } ",
95LL,
1LL,
a3);
fwrite("_single_func", 12LL, 1LL, a3);
goto LABEL_23;
}
return 0;
}
if ( v7 )
{
fprintf(a3, "EshkolClosure* _funcs[%zu] = {", v7);
if ( !*(_QWORD *)(a2 + 88) )
{
LABEL_16:
fwrite("};\n", 3LL, 1LL, a3);
if ( *(_QWORD *)(a2 + 88) )
{
v9 = 0LL;
do
{
fprintf(
a3,
"if (_funcs[%zu] == NULL) { fprintf(stderr, \"Error: NULL function at position %zu in compose-n\\n\", %zu); exit(1); } ",
v9,
v9,
v9);
++v9;
v10 = *(_QWORD *)(a2 + 88);
}
while ( v9 < v10 );
}
else
{
v10 = 0LL;
}
fprintf(
a3,
"eshkol_closure_create((void* (*)(EshkolEnvironment*, void**))({ void* _composed_function(EshkolEnvironment* _env"
", void** _args) { if (_env == NULL) { fprintf(stderr, \"Error: NULL environment in compose-n function\\n\"); "
" exit(1); } void* _func_array_ptr = NULL; void* _func_count_ptr = NULL; if (_env->value_count >= 2) { _func_ar"
"ray_ptr = _env->values[0]; _func_count_ptr = _env->values[1]; } else { fprintf(stderr, \"Error: Invalid envi"
"ronment in compose-n (expected 2 values, got %zu)\\n\", _env->value_count); exit(1); } EshkolClosure"
"** _func_array = (EshkolClosure**)_func_array_ptr;size_t _func_count = (size_t)_func_count_ptr;if (_func_array ="
"= NULL) { fprintf(stderr, \"Error: NULL function array in composition\\n\"); exit(1);}void* _result = _args[0]"
";for (size_t i = _func_count; i > 0; i--) { if (_func_array[i-1] == NULL) { fprintf(stderr, \"Error: NULL fu"
"nction at position %zu in composition at runtime\\n\", i-1); exit(1); } _result = eshkol_closure_call(_func"
"_array[i-1], (void*[]){_result});}return _result;} _composed_function; }), ({ EshkolEnvironment* _compose_env = "
"eshkol_environment_create(env, 2, 0xFFFFFFFF);eshkol_environment_add(_compose_env, _funcs, NULL, \"funcs\");eshk"
"ol_environment_add(_compose_env, (void*)(size_t)node->as.call.arg_count, NULL, \"count\");_compose_env; }), NULL, NULL, 1)",
*(_QWORD *)(a2 + 48),
v10);
goto LABEL_23;
}
v8 = 0LL;
while ( 1 )
{
if ( v8 )
fwrite(", ", 2LL, 1LL, a3);
if ( !(unsigned __int8)codegen_generate_expression(a1, *(_QWORD *)(*(_QWORD *)(a2 + 80) + 8 * v8)) )
return 0;
if ( (unsigned long long)++v8 >= *(_QWORD *)(a2 + 88) )
goto LABEL_16;
}
}
fprintf(
a3,
"eshkol_closure_create((void* (*)(EshkolEnvironment*, void**))({ void* _identity_function(EshkolEnvironment* _env, vo"
"id** _args) { return _args[0]; } _identity_function; }), eshkol_environment_create(env, 0, %lu), NULL, NULL, 1)",
*(_QWORD *)(a2 + 48));
LABEL_23:
fwrite("; })", 4LL, 1LL, a3);
return 1;
}
| codegen_handle_compose_n:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
TEST RDI,RDI
JZ 0x00110a91
MOV R14,RSI
TEST RSI,RSI
JZ 0x00110ab0
CMP dword ptr [R14],0x19
JNZ 0x00110acf
MOV RBX,RDX
TEST RDX,RDX
JZ 0x00110aee
MOV R15,RDI
CALL 0x0010b340
MOV ESI,dword ptr [R14 + 0x8]
MOV EDX,dword ptr [R14 + 0x10]
LEA RCX,[0x11f091]
MOV RDI,RAX
CALL 0x00103f78
LEA RDI,[0x11f0a9]
MOV ESI,0x3
MOV EDX,0x1
MOV RCX,RBX
CALL 0x001022c0
MOV RDX,qword ptr [R14 + 0x58]
CMP RDX,0x1
JZ 0x0011092a
TEST RDX,RDX
JNZ 0x001109aa
MOV RDX,qword ptr [R14 + 0x30]
LEA RSI,[0x11f0ad]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x00102200
JMP 0x00110a6c
LAB_0011092a:
LEA RDI,[0x11f191]
MOV ESI,0x1e
MOV EDX,0x1
MOV RCX,RBX
CALL 0x001022c0
MOV RAX,qword ptr [R14 + 0x50]
MOV RSI,qword ptr [RAX]
MOV RDI,R15
CALL 0x00110f0c
TEST AL,AL
JZ 0x00110a51
LEA RDI,[0x1203cf]
MOV ESI,0x2
MOV EDX,0x1
MOV RCX,RBX
CALL 0x001022c0
LEA RDI,[0x11f1b0]
MOV ESI,0x5f
MOV EDX,0x1
MOV RCX,RBX
CALL 0x001022c0
LEA RDI,[0x11f210]
MOV ESI,0xc
MOV EDX,0x1
MOV RCX,RBX
CALL 0x001022c0
JMP 0x00110a6c
LAB_001109aa:
LEA RSI,[0x11f21d]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x00102200
CMP qword ptr [R14 + 0x58],0x0
JZ 0x00110a03
XOR R13D,R13D
LEA R12,[0x12041c]
LAB_001109cc:
TEST R13,R13
JZ 0x001109e6
MOV ESI,0x2
MOV EDX,0x1
MOV RDI,R12
MOV RCX,RBX
CALL 0x001022c0
LAB_001109e6:
MOV RAX,qword ptr [R14 + 0x50]
MOV RSI,qword ptr [RAX + R13*0x8]
MOV RDI,R15
CALL 0x00110f0c
TEST AL,AL
JZ 0x00110a51
INC R13
CMP R13,qword ptr [R14 + 0x58]
JC 0x001109cc
LAB_00110a03:
LEA RDI,[0x11f23c]
MOV ESI,0x3
MOV EDX,0x1
MOV RCX,RBX
CALL 0x001022c0
CMP qword ptr [R14 + 0x58],0x0
JZ 0x00110a55
LEA R15,[0x11f240]
XOR R12D,R12D
LAB_00110a2d:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R12
MOV RCX,R12
MOV R8,R12
XOR EAX,EAX
CALL 0x00102200
INC R12
MOV RCX,qword ptr [R14 + 0x58]
CMP R12,RCX
JC 0x00110a2d
JMP 0x00110a57
LAB_00110a51:
XOR EAX,EAX
JMP 0x00110a87
LAB_00110a55:
XOR ECX,ECX
LAB_00110a57:
MOV RDX,qword ptr [R14 + 0x30]
LEA RSI,[0x11f2b4]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x00102200
LAB_00110a6c:
LEA RDI,[0x120557]
MOV ESI,0x4
MOV EDX,0x1
MOV RCX,RBX
CALL 0x001022c0
MOV AL,0x1
LAB_00110a87:
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
LAB_00110a91:
LEA RDI,[0x119d5f]
LEA RSI,[0x11e8a3]
LEA RCX,[0x11f047]
MOV EDX,0x255
CALL 0x00102180
LAB_00110ab0:
LEA RDI,[0x11b8cf]
LEA RSI,[0x11e8a3]
LEA RCX,[0x11f047]
MOV EDX,0x256
CALL 0x00102180
LAB_00110acf:
LEA RDI,[0x11ef1b]
LEA RSI,[0x11e8a3]
LEA RCX,[0x11f047]
MOV EDX,0x257
CALL 0x00102180
LAB_00110aee:
LEA RDI,[0x11c890]
LEA RSI,[0x11e8a3]
LEA RCX,[0x11f047]
MOV EDX,0x258
CALL 0x00102180
|
int8 codegen_handle_compose_n(long param_1,int *param_2,FILE *param_3)
{
char cVar1;
int8 uVar2;
ulong uVar3;
ulong uVar4;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("context != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/closures.c"
,0x255,"_Bool codegen_handle_compose_n(CodegenContext *, const AstNode *, FILE *)"
);
}
if (param_2 == (int *)0x0) {
/* WARNING: Subroutine does not return */
__assert_fail("node != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/closures.c"
,0x256,"_Bool codegen_handle_compose_n(CodegenContext *, const AstNode *, FILE *)"
);
}
if (*param_2 != 0x19) {
/* WARNING: Subroutine does not return */
__assert_fail("node->type == AST_CALL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/closures.c"
,599,"_Bool codegen_handle_compose_n(CodegenContext *, const AstNode *, FILE *)");
}
if (param_3 != (FILE *)0x0) {
uVar2 = codegen_context_get_diagnostics();
diagnostic_debug(uVar2,param_2[2],param_2[4],"Handling compose-n call");
fwrite(&DAT_0011f0a9,3,1,param_3);
if (*(long *)(param_2 + 0x16) == 1) {
fwrite("EshkolClosure* _single_func = ",0x1e,1,param_3);
cVar1 = codegen_generate_expression(param_1,**(int8 **)(param_2 + 0x14));
if (cVar1 == '\0') {
return 0;
}
fwrite("; ",2,1,param_3);
fwrite("if (_single_func == NULL) { fprintf(stderr, \"Error: NULL function in compose-n\\n\"); exit(1); } "
,0x5f,1,param_3);
fwrite("_single_func",0xc,1,param_3);
}
else if (*(long *)(param_2 + 0x16) == 0) {
fprintf(param_3,
"eshkol_closure_create((void* (*)(EshkolEnvironment*, void**))({ void* _identity_function(EshkolEnvironment* _env, void** _args) { return _args[0]; } _identity_function; }), eshkol_environment_create(env, 0, %lu), NULL, NULL, 1)"
,*(int8 *)(param_2 + 0xc));
}
else {
fprintf(param_3,"EshkolClosure* _funcs[%zu] = {");
if (*(long *)(param_2 + 0x16) != 0) {
uVar4 = 0;
do {
if (uVar4 != 0) {
fwrite(", ",2,1,param_3);
}
cVar1 = codegen_generate_expression
(param_1,*(int8 *)(*(long *)(param_2 + 0x14) + uVar4 * 8));
if (cVar1 == '\0') {
return 0;
}
uVar4 = uVar4 + 1;
} while (uVar4 < *(ulong *)(param_2 + 0x16));
}
fwrite(&DAT_0011f23c,3,1,param_3);
if (*(long *)(param_2 + 0x16) == 0) {
uVar4 = 0;
}
else {
uVar3 = 0;
do {
fprintf(param_3,
"if (_funcs[%zu] == NULL) { fprintf(stderr, \"Error: NULL function at position %zu in compose-n\\n\", %zu); exit(1); } "
,uVar3,uVar3,uVar3);
uVar3 = uVar3 + 1;
uVar4 = *(ulong *)(param_2 + 0x16);
} while (uVar3 < uVar4);
}
fprintf(param_3,
"eshkol_closure_create((void* (*)(EshkolEnvironment*, void**))({ void* _composed_function(EshkolEnvironment* _env, void** _args) { if (_env == NULL) { fprintf(stderr, \"Error: NULL environment in compose-n function\\n\"); exit(1); } void* _func_array_ptr = NULL; void* _func_count_ptr = NULL; if (_env->value_count >= 2) { _func_array_ptr = _env->values[0]; _func_count_ptr = _env->values[1]; } else { fprintf(stderr, \"Error: Invalid environment in compose-n (expected 2 values, got %zu)\\n\", _env->value_count); exit(1); } EshkolClosure** _func_array = (EshkolClosure**)_func_array_ptr;size_t _func_count = (size_t)_func_count_ptr;if (_func_array == NULL) { fprintf(stderr, \"Error: NULL function array in composition\\n\"); exit(1);}void* _result = _args[0];for (size_t i = _func_count; i > 0; i--) { if (_func_array[i-1] == NULL) { fprintf(stderr, \"Error: NULL function at position %zu in composition at runtime\\n\", i-1); exit(1); } _result = eshkol_closure_call(_func_array[i-1], (void*[]){_result});}return _result;} _composed_function; }), ({ EshkolEnvironment* _compose_env = eshkol_environment_create(env, 2, 0xFFFFFFFF);eshkol_environment_add(_compose_env, _funcs, NULL, \"funcs\");eshkol_environment_add(_compose_env, (void*)(size_t)node->as.call.arg_count, NULL, \"count\");_compose_env; }), NULL, NULL, 1)"
,*(int8 *)(param_2 + 0xc),uVar4);
}
fwrite("; })",4,1,param_3);
return 1;
}
/* WARNING: Subroutine does not return */
__assert_fail("output != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/closures.c"
,600,"_Bool codegen_handle_compose_n(CodegenContext *, const AstNode *, FILE *)");
}
| |
29,747 | file_create_directories | tsotchke[P]eshkol/src/core/utils/file_io.c | bool file_create_directories(const char* path) {
assert(path != NULL);
// Copy the path
char* path_copy = strdup(path);
if (!path_copy) {
set_last_error(FILE_ERROR_OUT_OF_MEMORY);
return false;
}
// Create directories
char* p = path_copy;
// Skip leading slashes
while (*p == '/' || *p == '\\') {
p++;
}
// Create each directory
while (*p) {
// Find the next slash
char* slash = p;
while (*slash && *slash != '/' && *slash != '\\') {
slash++;
}
// Save the slash
char save = *slash;
*slash = '\0';
// Create the directory
if (!file_exists(path_copy)) {
if (!file_create_directory(path_copy)) {
free(path_copy);
return false;
}
}
// Restore the slash
*slash = save;
// Skip to the next component
if (!*slash) {
break;
}
p = slash + 1;
// Skip multiple slashes
while (*p == '/' || *p == '\\') {
p++;
}
}
free(path_copy);
set_last_error(FILE_ERROR_NONE);
return true;
} | O0 | c | file_create_directories:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x5ff5
jmp 0x6014
leaq 0x1f4c(%rip), %rdi # 0x7f48
leaq 0x1dce(%rip), %rsi # 0x7dd1
movl $0x343, %edx # imm = 0x343
leaq 0x21cb(%rip), %rcx # 0x81da
callq 0x2170
movq -0x10(%rbp), %rdi
callq 0x22e0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x603b
movl $0x7, %edi
callq 0x4920
movb $0x0, -0x1(%rbp)
jmp 0x6187
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movsbl (%rax), %ecx
movb $0x1, %al
cmpl $0x2f, %ecx
movb %al, -0x2a(%rbp)
je 0x6064
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x5c, %eax
sete %al
movb %al, -0x2a(%rbp)
movb -0x2a(%rbp), %al
testb $0x1, %al
jne 0x606d
jmp 0x607b
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x6043
jmp 0x607d
movq -0x20(%rbp), %rax
cmpb $0x0, (%rax)
je 0x6173
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x2b(%rbp)
je 0x60c4
movq -0x28(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x2f, %ecx
movb %al, -0x2b(%rbp)
je 0x60c4
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x5c, %eax
setne %al
movb %al, -0x2b(%rbp)
movb -0x2b(%rbp), %al
testb $0x1, %al
jne 0x60cd
jmp 0x60db
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x6092
movq -0x28(%rbp), %rax
movb (%rax), %al
movb %al, -0x29(%rbp)
movq -0x28(%rbp), %rax
movb $0x0, (%rax)
movq -0x18(%rbp), %rdi
callq 0x4f40
testb $0x1, %al
jne 0x6116
movq -0x18(%rbp), %rdi
callq 0x5f60
testb $0x1, %al
jne 0x6114
movq -0x18(%rbp), %rdi
callq 0x2040
movb $0x0, -0x1(%rbp)
jmp 0x6187
jmp 0x6116
movb -0x29(%rbp), %cl
movq -0x28(%rbp), %rax
movb %cl, (%rax)
movq -0x28(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x612a
jmp 0x6173
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movsbl (%rax), %ecx
movb $0x1, %al
cmpl $0x2f, %ecx
movb %al, -0x2c(%rbp)
je 0x6157
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x5c, %eax
sete %al
movb %al, -0x2c(%rbp)
movb -0x2c(%rbp), %al
testb $0x1, %al
jne 0x6160
jmp 0x616e
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x6136
jmp 0x607d
movq -0x18(%rbp), %rdi
callq 0x2040
xorl %edi, %edi
callq 0x4920
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| file_create_directories:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
cmp [rbp+var_10], 0
jz short loc_5FF5
jmp short loc_6014
loc_5FF5:
lea rdi, aSrcPathNull+4; "path != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 343h
lea rcx, aBoolFileCreate_0; "_Bool file_create_directories(const cha"...
call ___assert_fail
loc_6014:
mov rdi, [rbp+var_10]
call _strdup
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jnz short loc_603B
mov edi, 7
call set_last_error
mov [rbp+var_1], 0
jmp loc_6187
loc_603B:
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
loc_6043:
mov rax, [rbp+var_20]
movsx ecx, byte ptr [rax]
mov al, 1
cmp ecx, 2Fh ; '/'
mov [rbp+var_2A], al
jz short loc_6064
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax]
cmp eax, 5Ch ; '\'
setz al
mov [rbp+var_2A], al
loc_6064:
mov al, [rbp+var_2A]
test al, 1
jnz short loc_606D
jmp short loc_607B
loc_606D:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp short loc_6043
loc_607B:
jmp short $+2
loc_607D:
mov rax, [rbp+var_20]
cmp byte ptr [rax], 0
jz loc_6173
mov rax, [rbp+var_20]
mov [rbp+var_28], rax
loc_6092:
mov rax, [rbp+var_28]
movsx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 0
mov [rbp+var_2B], al
jz short loc_60C4
mov rax, [rbp+var_28]
movsx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 2Fh ; '/'
mov [rbp+var_2B], al
jz short loc_60C4
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, 5Ch ; '\'
setnz al
mov [rbp+var_2B], al
loc_60C4:
mov al, [rbp+var_2B]
test al, 1
jnz short loc_60CD
jmp short loc_60DB
loc_60CD:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_6092
loc_60DB:
mov rax, [rbp+var_28]
mov al, [rax]
mov [rbp+var_29], al
mov rax, [rbp+var_28]
mov byte ptr [rax], 0
mov rdi, [rbp+var_18]
call file_exists
test al, 1
jnz short loc_6116
mov rdi, [rbp+var_18]
call file_create_directory
test al, 1
jnz short loc_6114
mov rdi, [rbp+var_18]
call _free
mov [rbp+var_1], 0
jmp short loc_6187
loc_6114:
jmp short $+2
loc_6116:
mov cl, [rbp+var_29]
mov rax, [rbp+var_28]
mov [rax], cl
mov rax, [rbp+var_28]
cmp byte ptr [rax], 0
jnz short loc_612A
jmp short loc_6173
loc_612A:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_20], rax
loc_6136:
mov rax, [rbp+var_20]
movsx ecx, byte ptr [rax]
mov al, 1
cmp ecx, 2Fh ; '/'
mov [rbp+var_2C], al
jz short loc_6157
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax]
cmp eax, 5Ch ; '\'
setz al
mov [rbp+var_2C], al
loc_6157:
mov al, [rbp+var_2C]
test al, 1
jnz short loc_6160
jmp short loc_616E
loc_6160:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp short loc_6136
loc_616E:
jmp loc_607D
loc_6173:
mov rdi, [rbp+var_18]
call _free
xor edi, edi
call set_last_error
mov [rbp+var_1], 1
loc_6187:
mov al, [rbp+var_1]
and al, 1
add rsp, 30h
pop rbp
retn
| char file_create_directories(long long a1)
{
bool v2; // [rsp+4h] [rbp-2Ch]
bool v3; // [rsp+5h] [rbp-2Bh]
bool v4; // [rsp+6h] [rbp-2Ah]
char v5; // [rsp+7h] [rbp-29h]
char *j; // [rsp+8h] [rbp-28h]
char *i; // [rsp+10h] [rbp-20h]
long long v8; // [rsp+18h] [rbp-18h]
if ( !a1 )
__assert_fail(
"path != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/file_io.c",
835LL,
"_Bool file_create_directories(const char *)");
v8 = strdup(a1);
if ( v8 )
{
for ( i = (char *)v8; ; ++i )
{
v4 = 1;
if ( *i != 47 )
v4 = *i == 92;
if ( !v4 )
break;
}
while ( *i )
{
for ( j = i; ; ++j )
{
v3 = 0;
if ( *j )
{
v3 = 0;
if ( *j != 47 )
v3 = *j != 92;
}
if ( !v3 )
break;
}
v5 = *j;
*j = 0;
if ( (file_exists(v8) & 1) == 0 && (file_create_directory(v8) & 1) == 0 )
{
free(v8);
return 0;
}
*j = v5;
if ( !*j )
break;
for ( i = j + 1; ; ++i )
{
v2 = 1;
if ( *i != 47 )
v2 = *i == 92;
if ( !v2 )
break;
}
}
free(v8);
set_last_error(0);
return 1;
}
else
{
set_last_error(7u);
return 0;
}
}
| file_create_directories:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00105ff5
JMP 0x00106014
LAB_00105ff5:
LEA RDI,[0x107f12]
LEA RSI,[0x107dad]
MOV EDX,0x343
LEA RCX,[0x1081a4]
CALL 0x00102170
LAB_00106014:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001022e0
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x0010603b
MOV EDI,0x7
CALL 0x00104920
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00106187
LAB_0010603b:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
LAB_00106043:
MOV RAX,qword ptr [RBP + -0x20]
MOVSX ECX,byte ptr [RAX]
MOV AL,0x1
CMP ECX,0x2f
MOV byte ptr [RBP + -0x2a],AL
JZ 0x00106064
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x5c
SETZ AL
MOV byte ptr [RBP + -0x2a],AL
LAB_00106064:
MOV AL,byte ptr [RBP + -0x2a]
TEST AL,0x1
JNZ 0x0010606d
JMP 0x0010607b
LAB_0010606d:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x00106043
LAB_0010607b:
JMP 0x0010607d
LAB_0010607d:
MOV RAX,qword ptr [RBP + -0x20]
CMP byte ptr [RAX],0x0
JZ 0x00106173
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x28],RAX
LAB_00106092:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x2b],AL
JZ 0x001060c4
MOV RAX,qword ptr [RBP + -0x28]
MOVSX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,0x2f
MOV byte ptr [RBP + -0x2b],AL
JZ 0x001060c4
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x5c
SETNZ AL
MOV byte ptr [RBP + -0x2b],AL
LAB_001060c4:
MOV AL,byte ptr [RBP + -0x2b]
TEST AL,0x1
JNZ 0x001060cd
JMP 0x001060db
LAB_001060cd:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00106092
LAB_001060db:
MOV RAX,qword ptr [RBP + -0x28]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x29],AL
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],0x0
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00104f40
TEST AL,0x1
JNZ 0x00106116
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00105f60
TEST AL,0x1
JNZ 0x00106114
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00102040
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00106187
LAB_00106114:
JMP 0x00106116
LAB_00106116:
MOV CL,byte ptr [RBP + -0x29]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x28]
CMP byte ptr [RAX],0x0
JNZ 0x0010612a
JMP 0x00106173
LAB_0010612a:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
LAB_00106136:
MOV RAX,qword ptr [RBP + -0x20]
MOVSX ECX,byte ptr [RAX]
MOV AL,0x1
CMP ECX,0x2f
MOV byte ptr [RBP + -0x2c],AL
JZ 0x00106157
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x5c
SETZ AL
MOV byte ptr [RBP + -0x2c],AL
LAB_00106157:
MOV AL,byte ptr [RBP + -0x2c]
TEST AL,0x1
JNZ 0x00106160
JMP 0x0010616e
LAB_00106160:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x00106136
LAB_0010616e:
JMP 0x0010607d
LAB_00106173:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00102040
XOR EDI,EDI
CALL 0x00104920
MOV byte ptr [RBP + -0x1],0x1
LAB_00106187:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x30
POP RBP
RET
|
int1 file_create_directories(char *param_1)
{
char cVar1;
char *__ptr;
ulong uVar2;
bool bVar3;
char *local_30;
char *local_28;
int1 local_9;
if (param_1 == (char *)0x0) {
/* WARNING: Subroutine does not return */
__assert_fail("path != NULL","/workspace/llm4binary/github2025/eshkol/src/core/utils/file_io.c",
0x343,"_Bool file_create_directories(const char *)");
}
__ptr = strdup(param_1);
local_28 = __ptr;
if (__ptr == (char *)0x0) {
set_last_error(7);
local_9 = 0;
}
else {
while( true ) {
bVar3 = true;
if (*local_28 != '/') {
bVar3 = *local_28 == '\\';
}
if (!bVar3) break;
local_28 = local_28 + 1;
}
while (*local_28 != '\0') {
local_30 = local_28;
while( true ) {
bVar3 = false;
if ((*local_30 != '\0') && (bVar3 = false, *local_30 != '/')) {
bVar3 = *local_30 != '\\';
}
if (!bVar3) break;
local_30 = local_30 + 1;
}
cVar1 = *local_30;
*local_30 = '\0';
uVar2 = file_exists(__ptr);
if (((uVar2 & 1) == 0) && (uVar2 = file_create_directory(__ptr), (uVar2 & 1) == 0)) {
free(__ptr);
return 0;
}
*local_30 = cVar1;
if (*local_30 == '\0') break;
do {
local_28 = local_30 + 1;
bVar3 = true;
if (*local_28 != '/') {
bVar3 = *local_28 == '\\';
}
local_30 = local_28;
} while (bVar3);
}
free(__ptr);
set_last_error(0);
local_9 = 1;
}
return local_9;
}
| |
29,748 | file_create_directories | tsotchke[P]eshkol/src/core/utils/file_io.c | bool file_create_directories(const char* path) {
assert(path != NULL);
// Copy the path
char* path_copy = strdup(path);
if (!path_copy) {
set_last_error(FILE_ERROR_OUT_OF_MEMORY);
return false;
}
// Create directories
char* p = path_copy;
// Skip leading slashes
while (*p == '/' || *p == '\\') {
p++;
}
// Create each directory
while (*p) {
// Find the next slash
char* slash = p;
while (*slash && *slash != '/' && *slash != '\\') {
slash++;
}
// Save the slash
char save = *slash;
*slash = '\0';
// Create the directory
if (!file_exists(path_copy)) {
if (!file_create_directory(path_copy)) {
free(path_copy);
return false;
}
}
// Restore the slash
*slash = save;
// Skip to the next component
if (!*slash) {
break;
}
p = slash + 1;
// Skip multiple slashes
while (*p == '/' || *p == '\\') {
p++;
}
}
free(path_copy);
set_last_error(FILE_ERROR_NONE);
return true;
} | O3 | c | file_create_directories:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x4f33
callq 0x22d0
testq %rax, %rax
je 0x4f18
movq %rax, %rbx
movq %rax, %r14
movzbl (%r14), %ebp
cmpl $0x2f, %ebp
je 0x4ea8
cmpl $0x5c, %ebp
jne 0x4efe
incq %r14
jmp 0x4e9a
testb %bpl, %bpl
je 0x4ec9
movzbl %bpl, %eax
cmpl $0x2f, %eax
je 0x4ec9
cmpl $0x5c, %eax
je 0x4ec9
movb 0x1(%r14), %bpl
incq %r14
jmp 0x4ead
movb $0x0, (%r14)
movq %rbx, %rdi
callq 0x4335
testb %al, %al
jne 0x4ee5
movq %rbx, %rdi
callq 0x4e25
testb %al, %al
je 0x4f29
movb %bpl, (%r14)
testb %bpl, %bpl
je 0x4f02
incq %r14
movzbl (%r14), %ebp
cmpl $0x2f, %ebp
je 0x4eed
cmpl $0x5c, %ebp
je 0x4eed
testl %ebp, %ebp
jne 0x4ead
movq %rbx, %rdi
callq 0x2040
movl $0x0, 0x4270(%rip) # 0x9184
movb $0x1, %al
jmp 0x4f24
movl $0x7, 0x4262(%rip) # 0x9184
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
callq 0x2040
jmp 0x4f22
leaq 0x1fea(%rip), %rdi # 0x6f24
leaq 0x1e6c(%rip), %rsi # 0x6dad
leaq 0x226e(%rip), %rcx # 0x71b6
movl $0x343, %edx # imm = 0x343
callq 0x2170
| file_create_directories:
push rbp
push r14
push rbx
test rdi, rdi
jz loc_4F33
call _strdup
test rax, rax
jz loc_4F18
mov rbx, rax
mov r14, rax
loc_4E9A:
movzx ebp, byte ptr [r14]
cmp ebp, 2Fh ; '/'
jz short loc_4EA8
cmp ebp, 5Ch ; '\'
jnz short loc_4EFE
loc_4EA8:
inc r14
jmp short loc_4E9A
loc_4EAD:
test bpl, bpl
jz short loc_4EC9
movzx eax, bpl
cmp eax, 2Fh ; '/'
jz short loc_4EC9
cmp eax, 5Ch ; '\'
jz short loc_4EC9
mov bpl, [r14+1]
inc r14
jmp short loc_4EAD
loc_4EC9:
mov byte ptr [r14], 0
mov rdi, rbx
call file_exists
test al, al
jnz short loc_4EE5
mov rdi, rbx
call file_create_directory
test al, al
jz short loc_4F29
loc_4EE5:
mov [r14], bpl
test bpl, bpl
jz short loc_4F02
loc_4EED:
inc r14
movzx ebp, byte ptr [r14]
cmp ebp, 2Fh ; '/'
jz short loc_4EED
cmp ebp, 5Ch ; '\'
jz short loc_4EED
loc_4EFE:
test ebp, ebp
jnz short loc_4EAD
loc_4F02:
mov rdi, rbx
call _free
mov cs:g_last_error, 0
mov al, 1
jmp short loc_4F24
loc_4F18:
mov cs:g_last_error, 7
loc_4F22:
xor eax, eax
loc_4F24:
pop rbx
pop r14
pop rbp
retn
loc_4F29:
mov rdi, rbx
call _free
jmp short loc_4F22
loc_4F33:
lea rdi, aSrcPathNull+4; "path != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolFileCreate_0; "_Bool file_create_directories(const cha"...
mov edx, 343h
call ___assert_fail
| char file_create_directories(long long a1)
{
long long v1; // rax
long long v2; // rbx
_BYTE *i; // r14
int v4; // ebp
if ( !a1 )
__assert_fail(
"path != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/file_io.c",
835LL,
"_Bool file_create_directories(const char *)");
v1 = strdup(a1);
if ( v1 )
{
v2 = v1;
for ( i = (_BYTE *)v1; ; ++i )
{
v4 = (unsigned __int8)*i;
if ( v4 != 47 && v4 != 92 )
break;
}
while ( 1 )
{
if ( !v4 )
{
LABEL_17:
free(v2);
g_last_error = 0;
return 1;
}
while ( (_BYTE)v4 && (unsigned __int8)v4 != 47 && (unsigned __int8)v4 != 92 )
LOBYTE(v4) = *++i;
*i = 0;
if ( !file_exists(v2) && !(unsigned __int8)file_create_directory(v2) )
break;
*i = v4;
if ( !(_BYTE)v4 )
goto LABEL_17;
do
{
do
v4 = (unsigned __int8)*++i;
while ( v4 == 47 );
}
while ( v4 == 92 );
}
free(v2);
}
else
{
g_last_error = 7;
}
return 0;
}
| file_create_directories:
PUSH RBP
PUSH R14
PUSH RBX
TEST RDI,RDI
JZ 0x00104f33
CALL 0x001022d0
TEST RAX,RAX
JZ 0x00104f18
MOV RBX,RAX
MOV R14,RAX
LAB_00104e9a:
MOVZX EBP,byte ptr [R14]
CMP EBP,0x2f
JZ 0x00104ea8
CMP EBP,0x5c
JNZ 0x00104efe
LAB_00104ea8:
INC R14
JMP 0x00104e9a
LAB_00104ead:
TEST BPL,BPL
JZ 0x00104ec9
MOVZX EAX,BPL
CMP EAX,0x2f
JZ 0x00104ec9
CMP EAX,0x5c
JZ 0x00104ec9
MOV BPL,byte ptr [R14 + 0x1]
INC R14
JMP 0x00104ead
LAB_00104ec9:
MOV byte ptr [R14],0x0
MOV RDI,RBX
CALL 0x00104335
TEST AL,AL
JNZ 0x00104ee5
MOV RDI,RBX
CALL 0x00104e25
TEST AL,AL
JZ 0x00104f29
LAB_00104ee5:
MOV byte ptr [R14],BPL
TEST BPL,BPL
JZ 0x00104f02
LAB_00104eed:
INC R14
MOVZX EBP,byte ptr [R14]
CMP EBP,0x2f
JZ 0x00104eed
CMP EBP,0x5c
JZ 0x00104eed
LAB_00104efe:
TEST EBP,EBP
JNZ 0x00104ead
LAB_00104f02:
MOV RDI,RBX
CALL 0x00102040
MOV dword ptr [0x00109184],0x0
MOV AL,0x1
JMP 0x00104f24
LAB_00104f18:
MOV dword ptr [0x00109184],0x7
LAB_00104f22:
XOR EAX,EAX
LAB_00104f24:
POP RBX
POP R14
POP RBP
RET
LAB_00104f29:
MOV RDI,RBX
CALL 0x00102040
JMP 0x00104f22
LAB_00104f33:
LEA RDI,[0x106f24]
LEA RSI,[0x106dad]
LEA RCX,[0x1071b6]
MOV EDX,0x343
CALL 0x00102170
|
int8 file_create_directories(char *param_1)
{
char *pcVar1;
char cVar2;
char *__ptr;
int8 uVar3;
char cVar4;
char *pcVar5;
if (param_1 == (char *)0x0) {
/* WARNING: Subroutine does not return */
__assert_fail("path != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/file_io.c"
,0x343,"_Bool file_create_directories(const char *)");
}
__ptr = strdup(param_1);
pcVar5 = __ptr;
if (__ptr == (char *)0x0) {
g_last_error = 7;
LAB_00104f22:
uVar3 = 0;
}
else {
for (; (cVar4 = *pcVar5, cVar4 == '/' || (cVar4 == '\\')); pcVar5 = pcVar5 + 1) {
}
while (cVar4 != '\0') {
while (((cVar4 != '\0' && (cVar4 != '/')) && (cVar4 != '\\'))) {
pcVar1 = pcVar5 + 1;
pcVar5 = pcVar5 + 1;
cVar4 = *pcVar1;
}
*pcVar5 = '\0';
cVar2 = file_exists(__ptr);
if ((cVar2 == '\0') && (cVar2 = file_create_directory(__ptr), cVar2 == '\0')) {
free(__ptr);
goto LAB_00104f22;
}
*pcVar5 = cVar4;
if (cVar4 == '\0') break;
do {
do {
pcVar5 = pcVar5 + 1;
cVar4 = *pcVar5;
} while (cVar4 == '/');
} while (cVar4 == '\\');
}
free(__ptr);
g_last_error = 0;
uVar3 = 1;
}
return uVar3;
}
| |
29,749 | float const& gguf_kv::get_val<float>(unsigned long) const | llama.cpp/ggml/src/gguf.cpp | const T & get_val(const size_t i = 0) const {
GGML_ASSERT(type_to_gguf_type<T>::value == type);
if constexpr (std::is_same<T, std::string>::value) {
GGML_ASSERT(data_string.size() >= i+1);
return data_string[i];
}
const size_t type_size = gguf_type_size(type);
GGML_ASSERT(data.size() % type_size == 0);
GGML_ASSERT(data.size() >= (i+1)*type_size);
return reinterpret_cast<const T *>(data.data())[i];
} | O3 | cpp | float const& gguf_kv::get_val<float>(unsigned long) const:
pushq %rax
cmpl $0x6, 0x24(%rdi)
jne 0x40995
movq 0x6aa04(%rip), %rcx # 0xab330
testq %rcx, %rcx
je 0x40961
leaq 0x6a9f0(%rip), %rax # 0xab328
xorl %edx, %edx
cmpl $0x6, 0x20(%rcx)
setl %dl
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rdx,8), %rcx
testq %rcx, %rcx
jne 0x40938
leaq 0x6a9d2(%rip), %rcx # 0xab328
cmpq %rcx, %rax
je 0x40961
cmpl $0x6, 0x20(%rax)
jle 0x4098f
xorl %r8d, %r8d
movq 0x28(%rdi), %r9
movq 0x30(%rdi), %rcx
subq %r9, %rcx
movq %rcx, %rax
xorl %edx, %edx
divq %r8
testq %rdx, %rdx
jne 0x409b1
leaq 0x1(%rsi), %rax
imulq %rax, %r8
cmpq %r8, %rcx
jb 0x409cd
leaq (%r9,%rsi,4), %rax
popq %rcx
retq
movq 0x28(%rax), %r8
jmp 0x40964
leaq 0x193a9(%rip), %rdi # 0x59d45
leaq 0x9cab(%rip), %rdx # 0x4a64e
leaq 0x19b65(%rip), %rcx # 0x5a50f
movl $0xb7, %esi
jmp 0x409e7
leaq 0x1938d(%rip), %rdi # 0x59d45
leaq 0x9c8f(%rip), %rdx # 0x4a64e
leaq 0x198ad(%rip), %rcx # 0x5a273
movl $0xbd, %esi
jmp 0x409e7
leaq 0x19371(%rip), %rdi # 0x59d45
leaq 0x9c73(%rip), %rdx # 0x4a64e
leaq 0x19b51(%rip), %rcx # 0x5a533
movl $0xbe, %esi
xorl %eax, %eax
callq 0x17c80
| _ZNK7gguf_kv7get_valIfEERKT_m:
push rax
cmp dword ptr [rdi+24h], 6
jnz short loc_40995
mov rcx, cs:qword_AB330
test rcx, rcx
jz short loc_40961
lea rax, unk_AB328
loc_40938:
xor edx, edx
cmp dword ptr [rcx+20h], 6
setl dl
cmovge rax, rcx
mov rcx, [rcx+rdx*8+10h]
test rcx, rcx
jnz short loc_40938
lea rcx, unk_AB328
cmp rax, rcx
jz short loc_40961
cmp dword ptr [rax+20h], 6
jle short loc_4098F
loc_40961:
xor r8d, r8d
loc_40964:
mov r9, [rdi+28h]
mov rcx, [rdi+30h]
sub rcx, r9
mov rax, rcx
xor edx, edx
div r8
test rdx, rdx
jnz short loc_409B1
lea rax, [rsi+1]
imul r8, rax
cmp rcx, r8
jb short loc_409CD
lea rax, [r9+rsi*4]
pop rcx
retn
loc_4098F:
mov r8, [rax+28h]
jmp short loc_40964
loc_40995:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTypeToGgufType; "type_to_gguf_type<T>::value == type"
mov esi, 0B7h
jmp short loc_409E7
loc_409B1:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCtxKvKeyIdData+10h; "data.size() % type_size == 0"
mov esi, 0BDh
jmp short loc_409E7
loc_409CD:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aDataSizeI1Type; "data.size() >= (i+1)*type_size"
mov esi, 0BEh
loc_409E7:
xor eax, eax
call _ggml_abort
| long long gguf_kv::get_val<float>(
long long a1,
long long a2,
long long a3,
long long a4,
unsigned long long a5,
long long a6)
{
long long v6; // rcx
int *v7; // rax
char *v9; // rcx
int v10; // esi
if ( *(_DWORD *)(a1 + 36) != 6 )
{
v9 = "type_to_gguf_type<T>::value == type";
v10 = 183;
goto LABEL_17;
}
v6 = qword_AB330;
if ( !qword_AB330 )
goto LABEL_9;
v7 = (int *)&unk_AB328;
do
{
if ( *(int *)(v6 + 32) >= 6 )
v7 = (int *)v6;
v6 = *(_QWORD *)(v6 + 8LL * (*(_DWORD *)(v6 + 32) < 6) + 16);
}
while ( v6 );
if ( v7 != (int *)&unk_AB328 && v7[8] <= 6 )
a5 = *((_QWORD *)v7 + 5);
else
LABEL_9:
a5 = 0LL;
a6 = *(_QWORD *)(a1 + 40);
if ( (*(_QWORD *)(a1 + 48) - a6) % a5 )
{
v9 = "data.size() % type_size == 0";
v10 = 189;
goto LABEL_17;
}
a5 *= a2 + 1;
if ( *(_QWORD *)(a1 + 48) - a6 < a5 )
{
v9 = "data.size() >= (i+1)*type_size";
v10 = 190;
LABEL_17:
ggml_abort(
(unsigned int)"/workspace/llm4binary/github2025/llama.cpp/ggml/src/gguf.cpp",
v10,
(unsigned int)"GGML_ASSERT(%s) failed",
(_DWORD)v9,
a5,
a6);
}
return a6 + 4 * a2;
}
| get_val<float>:
PUSH RAX
CMP dword ptr [RDI + 0x24],0x6
JNZ 0x00140995
MOV RCX,qword ptr [0x001ab330]
TEST RCX,RCX
JZ 0x00140961
LEA RAX,[0x1ab328]
LAB_00140938:
XOR EDX,EDX
CMP dword ptr [RCX + 0x20],0x6
SETL DL
CMOVGE RAX,RCX
MOV RCX,qword ptr [RCX + RDX*0x8 + 0x10]
TEST RCX,RCX
JNZ 0x00140938
LEA RCX,[0x1ab328]
CMP RAX,RCX
JZ 0x00140961
CMP dword ptr [RAX + 0x20],0x6
JLE 0x0014098f
LAB_00140961:
XOR R8D,R8D
LAB_00140964:
MOV R9,qword ptr [RDI + 0x28]
MOV RCX,qword ptr [RDI + 0x30]
SUB RCX,R9
MOV RAX,RCX
XOR EDX,EDX
DIV R8
TEST RDX,RDX
JNZ 0x001409b1
LEA RAX,[RSI + 0x1]
IMUL R8,RAX
CMP RCX,R8
JC 0x001409cd
LEA RAX,[R9 + RSI*0x4]
POP RCX
RET
LAB_0014098f:
MOV R8,qword ptr [RAX + 0x28]
JMP 0x00140964
LAB_00140995:
LEA RDI,[0x159d45]
LEA RDX,[0x14a64e]
LEA RCX,[0x15a50f]
MOV ESI,0xb7
JMP 0x001409e7
LAB_001409b1:
LEA RDI,[0x159d45]
LEA RDX,[0x14a64e]
LEA RCX,[0x15a273]
MOV ESI,0xbd
JMP 0x001409e7
LAB_001409cd:
LEA RDI,[0x159d45]
LEA RDX,[0x14a64e]
LEA RCX,[0x15a533]
MOV ESI,0xbe
LAB_001409e7:
XOR EAX,EAX
CALL 0x00117c80
|
/* float const& gguf_kv::get_val<float>(unsigned long) const */
float * __thiscall gguf_kv::get_val<float>(gguf_kv *this,ulong param_1)
{
long lVar1;
long lVar2;
ulong uVar3;
char *pcVar4;
int8 uVar5;
ulong uVar6;
if (*(int *)(this + 0x24) != 6) {
pcVar4 = "type_to_gguf_type<T>::value == type";
uVar5 = 0xb7;
goto LAB_001409e7;
}
if (GGUF_TYPE_SIZE._16_8_ == 0) {
LAB_00140961:
uVar6 = 0;
}
else {
lVar1 = 0x1ab328;
lVar2 = GGUF_TYPE_SIZE._16_8_;
do {
if (5 < *(int *)(lVar2 + 0x20)) {
lVar1 = lVar2;
}
lVar2 = *(long *)(lVar2 + 0x10 + (ulong)(*(int *)(lVar2 + 0x20) < 6) * 8);
} while (lVar2 != 0);
if ((lVar1 == 0x1ab328) || (6 < *(int *)(lVar1 + 0x20))) goto LAB_00140961;
uVar6 = *(ulong *)(lVar1 + 0x28);
}
uVar3 = *(long *)(this + 0x30) - *(long *)(this + 0x28);
if (uVar3 % uVar6 == 0) {
if (uVar6 * (param_1 + 1) <= uVar3) {
return (float *)(*(long *)(this + 0x28) + param_1 * 4);
}
pcVar4 = "data.size() >= (i+1)*type_size";
uVar5 = 0xbe;
}
else {
pcVar4 = "data.size() % type_size == 0";
uVar5 = 0xbd;
}
LAB_001409e7:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/ggml/src/gguf.cpp",uVar5,
"GGML_ASSERT(%s) failed",pcVar4);
}
| |
29,750 | my_block_write | eloqsql/mysys/mf_iocache.c | int my_block_write(IO_CACHE *info, const uchar *Buffer, size_t Count,
my_off_t pos)
{
size_t length;
int error=0;
/*
Assert that we cannot come here with a shared cache. If we do one
day, we might need to add a call to copy_to_read_buffer().
*/
DBUG_ASSERT(!info->share);
DBUG_ASSERT(!(info->myflags & MY_ENCRYPT));
if (pos < info->pos_in_file)
{
/* Of no overlap, write everything without buffering */
if (pos + Count <= info->pos_in_file)
return (int)mysql_file_pwrite(info->file, Buffer, Count, pos,
info->myflags | MY_NABP);
/* Write the part of the block that is before buffer */
length= (uint) (info->pos_in_file - pos);
if (mysql_file_pwrite(info->file, Buffer, length, pos, info->myflags | MY_NABP))
info->error= error= -1;
Buffer+=length;
pos+= length;
Count-= length;
}
/* Check if we want to write inside the used part of the buffer.*/
length= (size_t) (info->write_end - info->buffer);
if (pos < info->pos_in_file + length)
{
size_t offset= (size_t) (pos - info->pos_in_file);
length-=offset;
if (length > Count)
length=Count;
memcpy(info->buffer+offset, Buffer, length);
Buffer+=length;
Count-= length;
/* Fix length of buffer if the new data was larger */
if (info->buffer+length > info->write_pos)
info->write_pos=info->buffer+length;
if (!Count)
return (error);
}
/* Write at the end of the current buffer; This is the normal case */
if (_my_b_write(info, Buffer, Count))
error= -1;
return error;
} | O0 | c | my_block_write:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x0, -0x34(%rbp)
jmp 0x70761
jmp 0x70763
jmp 0x70765
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x70856
movq -0x28(%rbp), %rax
addq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
ja 0x707c9
movq -0x10(%rbp), %rax
movl 0xd4(%rax), %edx
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %r8
movq -0x28(%rbp), %r9
movq -0x10(%rbp), %rax
movq 0xf8(%rax), %rax
orq $0x4, %rax
leaq 0x6a818(%rip), %rdi # 0xdafcb
movl $0x673, %esi # imm = 0x673
movq %rax, (%rsp)
callq 0x70950
movl %eax, -0x4(%rbp)
jmp 0x70947
movq -0x10(%rbp), %rax
movq (%rax), %rax
subq -0x28(%rbp), %rax
movl %eax, %eax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl 0xd4(%rax), %edx
movq -0x18(%rbp), %rcx
movq -0x30(%rbp), %r8
movq -0x28(%rbp), %r9
movq -0x10(%rbp), %rax
movq 0xf8(%rax), %rax
orq $0x4, %rax
leaq 0x6a7c5(%rip), %rdi # 0xdafcb
movl $0x676, %esi # imm = 0x676
movq %rax, (%rsp)
callq 0x70950
cmpq $0x0, %rax
je 0x7082f
movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movl $0xffffffff, 0xe4(%rax) # imm = 0xFFFFFFFF
movq -0x30(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x30(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x30(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x20(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
addq -0x30(%rbp), %rcx
cmpq %rcx, %rax
jae 0x70924
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
subq (%rcx), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x20(%rbp), %rax
jbe 0x708b5
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
addq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x282a0
movq -0x30(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x30(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
addq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x40(%rcx), %rax
jbe 0x70913
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
addq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
cmpq $0x0, -0x20(%rbp)
jne 0x70922
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x70947
jmp 0x70924
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x6f7e0
cmpl $0x0, %eax
je 0x70941
movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
| my_block_write:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_34], 0
jmp short $+2
loc_70761:
jmp short $+2
loc_70763:
jmp short $+2
loc_70765:
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
cmp rax, [rcx]
jnb loc_70856
mov rax, [rbp+var_28]
add rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx]
ja short loc_707C9
mov rax, [rbp+var_10]
mov edx, [rax+0D4h]
mov rcx, [rbp+var_18]
mov r8, [rbp+var_20]
mov r9, [rbp+var_28]
mov rax, [rbp+var_10]
mov rax, [rax+0F8h]
or rax, 4
lea rdi, aWorkspaceLlm4b_17; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 673h
mov [rsp+50h+var_50], rax
call inline_mysql_file_pwrite_2
mov [rbp+var_4], eax
jmp loc_70947
loc_707C9:
mov rax, [rbp+var_10]
mov rax, [rax]
sub rax, [rbp+var_28]
mov eax, eax
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov edx, [rax+0D4h]
mov rcx, [rbp+var_18]
mov r8, [rbp+var_30]
mov r9, [rbp+var_28]
mov rax, [rbp+var_10]
mov rax, [rax+0F8h]
or rax, 4
lea rdi, aWorkspaceLlm4b_17; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 676h
mov [rsp+50h+var_50], rax
call inline_mysql_file_pwrite_2
cmp rax, 0
jz short loc_7082F
mov [rbp+var_34], 0FFFFFFFFh
mov rax, [rbp+var_10]
mov dword ptr [rax+0E4h], 0FFFFFFFFh
loc_7082F:
mov rax, [rbp+var_30]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rax, [rbp+var_30]
add rax, [rbp+var_28]
mov [rbp+var_28], rax
mov rcx, [rbp+var_30]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
loc_70856:
mov rax, [rbp+var_10]
mov rax, [rax+48h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+20h]
sub rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
add rcx, [rbp+var_30]
cmp rax, rcx
jnb loc_70924
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
sub rax, [rcx]
mov [rbp+var_40], rax
mov rcx, [rbp+var_40]
mov rax, [rbp+var_30]
sub rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
cmp rax, [rbp+var_20]
jbe short loc_708B5
mov rax, [rbp+var_20]
mov [rbp+var_30], rax
loc_708B5:
mov rax, [rbp+var_10]
mov rdi, [rax+20h]
add rdi, [rbp+var_40]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_30]
call _memcpy
mov rax, [rbp+var_30]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rcx, [rbp+var_30]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rax, [rax+20h]
add rax, [rbp+var_30]
mov rcx, [rbp+var_10]
cmp rax, [rcx+40h]
jbe short loc_70913
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
add rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov [rax+40h], rcx
loc_70913:
cmp [rbp+var_20], 0
jnz short loc_70922
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
jmp short loc_70947
loc_70922:
jmp short $+2
loc_70924:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _my_b_write
cmp eax, 0
jz short loc_70941
mov [rbp+var_34], 0FFFFFFFFh
loc_70941:
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
loc_70947:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long my_block_write(long long a1, long long a2, unsigned long long a3, unsigned long long a4)
{
unsigned long long v5; // [rsp+10h] [rbp-40h]
unsigned int v6; // [rsp+1Ch] [rbp-34h]
long long v7; // [rsp+20h] [rbp-30h]
long long v8; // [rsp+20h] [rbp-30h]
unsigned long long v9; // [rsp+20h] [rbp-30h]
unsigned long long v10; // [rsp+28h] [rbp-28h]
unsigned long long v11; // [rsp+30h] [rbp-20h]
long long v12; // [rsp+38h] [rbp-18h]
v12 = a2;
v11 = a3;
v10 = a4;
v6 = 0;
if ( a4 < *(_QWORD *)a1 )
{
if ( a3 + a4 <= *(_QWORD *)a1 )
return (unsigned int)inline_mysql_file_pwrite_2(
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
1651,
*(_DWORD *)(a1 + 212),
a2,
a3,
a4,
*(_QWORD *)(a1 + 248) | 4LL);
v7 = (unsigned int)*(_QWORD *)a1 - (unsigned int)a4;
if ( inline_mysql_file_pwrite_2(
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
1654,
*(_DWORD *)(a1 + 212),
a2,
(unsigned int)*(_QWORD *)a1 - (unsigned int)a4,
a4,
*(_QWORD *)(a1 + 248) | 4LL) )
{
v6 = -1;
*(_DWORD *)(a1 + 228) = -1;
}
v12 = a2 + v7;
v10 += v7;
v11 -= v7;
}
v8 = *(_QWORD *)(a1 + 72) - *(_QWORD *)(a1 + 32);
if ( v10 >= v8 + *(_QWORD *)a1 )
goto LABEL_20;
v5 = v10 - *(_QWORD *)a1;
v9 = v8 - v5;
if ( v9 > v11 )
v9 = v11;
memcpy(v5 + *(_QWORD *)(a1 + 32), v12, v9);
v12 += v9;
v11 -= v9;
if ( v9 + *(_QWORD *)(a1 + 32) > *(_QWORD *)(a1 + 64) )
*(_QWORD *)(a1 + 64) = v9 + *(_QWORD *)(a1 + 32);
if ( v11 )
{
LABEL_20:
if ( (unsigned int)my_b_write(a1, v12, v11) )
return (unsigned int)-1;
return v6;
}
else
{
return v6;
}
}
| my_block_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
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 + -0x34],0x0
JMP 0x00170761
LAB_00170761:
JMP 0x00170763
LAB_00170763:
JMP 0x00170765
LAB_00170765:
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX]
JNC 0x00170856
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX]
JA 0x001707c9
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0xd4]
MOV RCX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x20]
MOV R9,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xf8]
OR RAX,0x4
LEA RDI,[0x1dafcb]
MOV ESI,0x673
MOV qword ptr [RSP],RAX
CALL 0x00170950
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00170947
LAB_001707c9:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
SUB RAX,qword ptr [RBP + -0x28]
MOV EAX,EAX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0xd4]
MOV RCX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x30]
MOV R9,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xf8]
OR RAX,0x4
LEA RDI,[0x1dafcb]
MOV ESI,0x676
MOV qword ptr [RSP],RAX
CALL 0x00170950
CMP RAX,0x0
JZ 0x0017082f
MOV dword ptr [RBP + -0x34],0xffffffff
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xe4],0xffffffff
LAB_0017082f:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_00170856:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x48]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
ADD RCX,qword ptr [RBP + -0x30]
CMP RAX,RCX
JNC 0x00170924
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,qword ptr [RCX]
MOV qword ptr [RBP + -0x40],RAX
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x001708b5
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x30],RAX
LAB_001708b5:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x20]
ADD RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x001282a0
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
ADD RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x40]
JBE 0x00170913
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
ADD RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x40],RCX
LAB_00170913:
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x00170922
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00170947
LAB_00170922:
JMP 0x00170924
LAB_00170924:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x0016f7e0
CMP EAX,0x0
JZ 0x00170941
MOV dword ptr [RBP + -0x34],0xffffffff
LAB_00170941:
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
LAB_00170947:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int4 my_block_write(ulong *param_1,void *param_2,ulong param_3,ulong param_4)
{
int4 uVar1;
int iVar2;
long lVar3;
int4 local_3c;
size_t local_38;
ulong local_30;
ulong local_28;
void *local_20;
local_3c = 0;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
if (param_4 < *param_1) {
if (param_4 + param_3 <= *param_1) {
uVar1 = inline_mysql_file_pwrite
("/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x673,
*(int4 *)((long)param_1 + 0xd4),param_2,param_3,param_4,
param_1[0x1f] | 4);
return uVar1;
}
local_28 = (ulong)(uint)((int)*param_1 - (int)param_4);
lVar3 = inline_mysql_file_pwrite
("/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x676,
*(int4 *)((long)param_1 + 0xd4),param_2,local_28,param_4,
param_1[0x1f] | 4);
if (lVar3 != 0) {
local_3c = 0xffffffff;
*(int4 *)((long)param_1 + 0xe4) = 0xffffffff;
}
local_20 = (void *)(local_28 + (long)param_2);
local_30 = local_28 + param_4;
local_28 = param_3 - local_28;
}
if (local_30 < *param_1 + (param_1[9] - param_1[4])) {
local_38 = (param_1[9] - param_1[4]) - (local_30 - *param_1);
if (local_28 < local_38) {
local_38 = local_28;
}
memcpy((void *)(param_1[4] + (local_30 - *param_1)),local_20,local_38);
local_20 = (void *)(local_38 + (long)local_20);
local_28 = local_28 - local_38;
if (param_1[8] < param_1[4] + local_38) {
param_1[8] = param_1[4] + local_38;
}
if (local_28 == 0) {
return local_3c;
}
}
iVar2 = _my_b_write(param_1,local_20,local_28);
if (iVar2 != 0) {
local_3c = 0xffffffff;
}
return local_3c;
}
| |
29,751 | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::unget() | hkr04[P]cpp-mcp/common/json.hpp | void unget()
{
next_unget = true;
--position.chars_read_total;
// in case we "unget" a newline, we have to also decrement the lines_read
if (position.chars_read_current_line == 0)
{
if (position.lines_read > 0)
{
--position.lines_read;
}
}
else
{
--position.chars_read_current_line;
}
if (JSON_HEDLEY_LIKELY(current != char_traits<char_type>::eof()))
{
JSON_ASSERT(!token_string.empty());
token_string.pop_back();
}
} | O0 | cpp | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::unget():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movb $0x1, 0x18(%rax)
movq 0x20(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x20(%rax)
cmpq $0x0, 0x28(%rax)
jne 0x32729
movq 0x8(%rsp), %rax
cmpq $0x0, 0x30(%rax)
jbe 0x32727
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x30(%rax)
jmp 0x3273a
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x28(%rax)
movq 0x8(%rsp), %rax
movl 0x14(%rax), %eax
movl %eax, 0x4(%rsp)
callq 0x30fa0
movl %eax, %ecx
movl 0x4(%rsp), %eax
cmpl %ecx, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x32760
jmp 0x3276e
movq 0x8(%rsp), %rdi
addq $0x38, %rdi
callq 0x331f0
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rax, [rsp+18h+var_8]
mov [rsp+18h+var_10], rax
mov byte ptr [rax+18h], 1
mov rcx, [rax+20h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+20h], rcx
cmp qword ptr [rax+28h], 0
jnz short loc_32729
mov rax, [rsp+18h+var_10]
cmp qword ptr [rax+30h], 0
jbe short loc_32727
mov rax, [rsp+18h+var_10]
mov rcx, [rax+30h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+30h], rcx
loc_32727:
jmp short loc_3273A
loc_32729:
mov rax, [rsp+18h+var_10]
mov rcx, [rax+28h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+28h], rcx
loc_3273A:
mov rax, [rsp+18h+var_10]
mov eax, [rax+14h]
mov [rsp+18h+var_14], eax
call _ZNSt11char_traitsIcE3eofEv; std::char_traits<char>::eof(void)
mov ecx, eax
mov eax, [rsp+18h+var_14]
cmp eax, ecx
setnz al
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_32760
jmp short loc_3276E
loc_32760:
mov rdi, [rsp+18h+var_10]
add rdi, 38h ; '8'
call _ZNSt6vectorIcSaIcEE8pop_backEv; std::vector<char>::pop_back(void)
loc_3276E:
add rsp, 18h
retn
| char nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(
long long a1)
{
int v1; // ecx
char result; // al
int v3; // [rsp+4h] [rbp-14h]
*(_BYTE *)(a1 + 24) = 1;
--*(_QWORD *)(a1 + 32);
if ( *(_QWORD *)(a1 + 40) )
{
--*(_QWORD *)(a1 + 40);
}
else if ( *(_QWORD *)(a1 + 48) )
{
--*(_QWORD *)(a1 + 48);
}
v3 = *(_DWORD *)(a1 + 20);
v1 = std::char_traits<char>::eof();
result = v3 != v1;
if ( v3 != v1 )
return std::vector<char>::pop_back(a1 + 56);
return result;
}
| unget:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
MOV byte ptr [RAX + 0x18],0x1
MOV RCX,qword ptr [RAX + 0x20]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x20],RCX
CMP qword ptr [RAX + 0x28],0x0
JNZ 0x00132729
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0x30],0x0
JBE 0x00132727
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RAX + 0x30]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x30],RCX
LAB_00132727:
JMP 0x0013273a
LAB_00132729:
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RAX + 0x28]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x28],RCX
LAB_0013273a:
MOV RAX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RSP + 0x4],EAX
CALL 0x00130fa0
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,ECX
SETNZ AL
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x00132760
JMP 0x0013276e
LAB_00132760:
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x38
CALL 0x001331f0
LAB_0013276e:
ADD RSP,0x18
RET
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::unget() */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::unget(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
int iVar1;
int iVar2;
this[0x18] = (lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
)0x1;
*(long *)(this + 0x20) = *(long *)(this + 0x20) + -1;
if (*(long *)(this + 0x28) == 0) {
if (*(long *)(this + 0x30) != 0) {
*(long *)(this + 0x30) = *(long *)(this + 0x30) + -1;
}
}
else {
*(long *)(this + 0x28) = *(long *)(this + 0x28) + -1;
}
iVar1 = *(int *)(this + 0x14);
iVar2 = std::char_traits<char>::eof();
if (iVar1 != iVar2) {
std::vector<char,std::allocator<char>>::pop_back
((vector<char,std::allocator<char>> *)(this + 0x38));
}
return;
}
| |
29,752 | ma_scramble_323 | eloqsql/libmariadb/libmariadb/ma_password.c | char *ma_scramble_323(char *to, const char *message, const char *password)
{
struct rand_struct rand_st;
ulong hash_pass[2], hash_message[2];
if (password && password[0])
{
char extra, *to_start=to;
const char *end_scramble323= message + SCRAMBLE_LENGTH_323;
ma_hash_password(hash_pass,password, (uint) strlen(password));
/* Don't use strlen, could be > SCRAMBLE_LENGTH_323 ! */
ma_hash_password(hash_message, message, SCRAMBLE_LENGTH_323);
ma_randominit(&rand_st, hash_pass[0] ^ hash_message[0],
hash_pass[1] ^ hash_message[1]);
for (; message < end_scramble323; message++)
*to++= (char) (floor(rnd(&rand_st) * 31) + 64);
extra=(char) (floor(rnd(&rand_st) * 31));
while (to_start != to)
*(to_start++)^= extra;
}
*to= 0;
return to;
} | O0 | c | ma_scramble_323:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x4c9df
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x4c9df
movq -0x8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x78(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x18(%rbp), %rdi
callq 0x131b0
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
movl %eax, %eax
movl %eax, %edx
callq 0x4c590
leaq -0x60(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x8, %edx
callq 0x4c590
movq -0x50(%rbp), %rsi
xorq -0x60(%rbp), %rsi
movq -0x48(%rbp), %rdx
xorq -0x58(%rbp), %rdx
leaq -0x38(%rbp), %rdi
callq 0x4c470
movq -0x10(%rbp), %rax
cmpq -0x78(%rbp), %rax
jae 0x4c996
leaq -0x38(%rbp), %rdi
callq 0x4c4f0
movsd 0x716c(%rip), %xmm1 # 0x53ac8
mulsd %xmm1, %xmm0
callq 0x13740
movsd 0x7163(%rip), %xmm1 # 0x53ad0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x4c941
leaq -0x38(%rbp), %rdi
callq 0x4c4f0
movsd 0x7121(%rip), %xmm1 # 0x53ac8
mulsd %xmm1, %xmm0
callq 0x13740
cvttsd2si %xmm0, %eax
movb %al, -0x61(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x8(%rbp), %rax
je 0x4c9dd
movsbl -0x61(%rbp), %edx
movq -0x70(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x70(%rbp)
movsbl (%rax), %ecx
xorl %edx, %ecx
movb %cl, (%rax)
jmp 0x4c9b7
jmp 0x4c9df
movq -0x8(%rbp), %rax
movb $0x0, (%rax)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| ma_scramble_323:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
cmp [rbp+var_18], 0
jz loc_4C9DF
mov rax, [rbp+var_18]
movsx eax, byte ptr [rax]
cmp eax, 0
jz loc_4C9DF
mov rax, [rbp+var_8]
mov [rbp+var_70], rax
mov rax, [rbp+var_10]
add rax, 8
mov [rbp+var_78], rax
lea rax, [rbp+var_50]
mov [rbp+var_88], rax
mov rax, [rbp+var_18]
mov [rbp+var_80], rax
mov rdi, [rbp+var_18]
call _strlen
mov rdi, [rbp+var_88]
mov rsi, [rbp+var_80]
mov eax, eax
mov edx, eax
call ma_hash_password
lea rdi, [rbp+var_60]
mov rsi, [rbp+var_10]
mov edx, 8
call ma_hash_password
mov rsi, [rbp+var_50]
xor rsi, [rbp+var_60]
mov rdx, [rbp+var_48]
xor rdx, [rbp+var_58]
lea rdi, [rbp+var_38]
call ma_randominit
loc_4C941:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_78]
jnb short loc_4C996
lea rdi, [rbp+var_38]
call rnd
movsd xmm1, cs:qword_53AC8
mulsd xmm0, xmm1
call _floor
movsd xmm1, cs:qword_53AD0
addsd xmm0, xmm1
cvttsd2si eax, xmm0
mov cl, al
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_4C941
loc_4C996:
lea rdi, [rbp+var_38]
call rnd
movsd xmm1, cs:qword_53AC8
mulsd xmm0, xmm1
call _floor
cvttsd2si eax, xmm0
mov [rbp+var_61], al
loc_4C9B7:
mov rax, [rbp+var_70]
cmp rax, [rbp+var_8]
jz short loc_4C9DD
movsx edx, [rbp+var_61]
mov rax, [rbp+var_70]
mov rcx, rax
add rcx, 1
mov [rbp+var_70], rcx
movsx ecx, byte ptr [rax]
xor ecx, edx
mov [rax], cl
jmp short loc_4C9B7
loc_4C9DD:
jmp short $+2
loc_4C9DF:
mov rax, [rbp+var_8]
mov byte ptr [rax], 0
mov rax, [rbp+var_8]
add rsp, 90h
pop rbp
retn
| _BYTE * ma_scramble_323(_BYTE *a1, _BYTE *a2, _BYTE *a3)
{
unsigned int v3; // eax
double v4; // xmm0_8
double v5; // xmm0_8
_BYTE *v6; // rax
double v7; // xmm0_8
_BYTE *v8; // rax
_BYTE *v10; // [rsp+10h] [rbp-80h]
_BYTE *v11; // [rsp+18h] [rbp-78h]
_BYTE *v12; // [rsp+20h] [rbp-70h]
char v13; // [rsp+2Fh] [rbp-61h]
_QWORD v14[2]; // [rsp+30h] [rbp-60h] BYREF
_QWORD v15[3]; // [rsp+40h] [rbp-50h] BYREF
_BYTE v16[32]; // [rsp+58h] [rbp-38h] BYREF
_BYTE *v17; // [rsp+78h] [rbp-18h]
_BYTE *v18; // [rsp+80h] [rbp-10h]
_BYTE *v19; // [rsp+88h] [rbp-8h]
v19 = a1;
v18 = a2;
v17 = a3;
if ( a3 && *v17 )
{
v12 = v19;
v11 = v18 + 8;
v10 = v17;
v3 = strlen(v17);
ma_hash_password(v15, v10, v3);
ma_hash_password(v14, v18, 8LL);
ma_randominit((long long)v16, v14[0] ^ v15[0], v14[1] ^ v15[1]);
while ( v18 < v11 )
{
v4 = rnd((long long)v16);
v5 = floor(v4 * 31.0);
v6 = v19++;
*v6 = (int)(v5 + 64.0);
++v18;
}
v7 = rnd((long long)v16);
v13 = (int)floor(v7 * 31.0);
while ( v12 != v19 )
{
v8 = v12++;
*v8 ^= v13;
}
}
*v19 = 0;
return v19;
}
| ma_scramble_323:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0014c9df
MOV RAX,qword ptr [RBP + -0x18]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x0014c9df
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x8
MOV qword ptr [RBP + -0x78],RAX
LEA RAX,[RBP + -0x50]
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x80],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001131b0
MOV RDI,qword ptr [RBP + -0x88]
MOV RSI,qword ptr [RBP + -0x80]
MOV EAX,EAX
MOV EDX,EAX
CALL 0x0014c590
LEA RDI,[RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0x8
CALL 0x0014c590
MOV RSI,qword ptr [RBP + -0x50]
XOR RSI,qword ptr [RBP + -0x60]
MOV RDX,qword ptr [RBP + -0x48]
XOR RDX,qword ptr [RBP + -0x58]
LEA RDI,[RBP + -0x38]
CALL 0x0014c470
LAB_0014c941:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x78]
JNC 0x0014c996
LEA RDI,[RBP + -0x38]
CALL 0x0014c4f0
MOVSD XMM1,qword ptr [0x00153ac8]
MULSD XMM0,XMM1
CALL 0x00113740
MOVSD XMM1,qword ptr [0x00153ad0]
ADDSD XMM0,XMM1
CVTTSD2SI EAX,XMM0
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x0014c941
LAB_0014c996:
LEA RDI,[RBP + -0x38]
CALL 0x0014c4f0
MOVSD XMM1,qword ptr [0x00153ac8]
MULSD XMM0,XMM1
CALL 0x00113740
CVTTSD2SI EAX,XMM0
MOV byte ptr [RBP + -0x61],AL
LAB_0014c9b7:
MOV RAX,qword ptr [RBP + -0x70]
CMP RAX,qword ptr [RBP + -0x8]
JZ 0x0014c9dd
MOVSX EDX,byte ptr [RBP + -0x61]
MOV RAX,qword ptr [RBP + -0x70]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x70],RCX
MOVSX ECX,byte ptr [RAX]
XOR ECX,EDX
MOV byte ptr [RAX],CL
JMP 0x0014c9b7
LAB_0014c9dd:
JMP 0x0014c9df
LAB_0014c9df:
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x90
POP RBP
RET
|
byte * ma_scramble_323(byte *param_1,ulong param_2,char *param_3)
{
size_t sVar1;
double dVar2;
byte *local_78;
ulong local_68;
ulong local_60;
ulong local_58;
ulong local_50;
int1 local_40 [32];
char *local_20;
ulong local_18;
byte *local_10;
local_10 = param_1;
if ((param_3 != (char *)0x0) && (*param_3 != '\0')) {
local_20 = param_3;
local_18 = param_2;
sVar1 = strlen(param_3);
ma_hash_password(&local_58,param_3,sVar1 & 0xffffffff);
ma_hash_password(&local_68,local_18,8);
ma_randominit(local_40,local_58 ^ local_68,local_50 ^ local_60);
for (; local_18 < param_2 + 8; local_18 = local_18 + 1) {
dVar2 = (double)rnd(local_40);
dVar2 = floor(dVar2 * DAT_00153ac8);
*local_10 = (byte)(int)(dVar2 + DAT_00153ad0);
local_10 = local_10 + 1;
}
dVar2 = (double)rnd(local_40);
dVar2 = floor(dVar2 * DAT_00153ac8);
local_78 = param_1;
while (local_78 != local_10) {
*local_78 = *local_78 ^ (byte)(int)dVar2;
local_78 = local_78 + 1;
}
}
*local_10 = 0;
return local_10;
}
| |
29,753 | ma_scramble_323 | eloqsql/libmariadb/libmariadb/ma_password.c | char *ma_scramble_323(char *to, const char *message, const char *password)
{
struct rand_struct rand_st;
ulong hash_pass[2], hash_message[2];
if (password && password[0])
{
char extra, *to_start=to;
const char *end_scramble323= message + SCRAMBLE_LENGTH_323;
ma_hash_password(hash_pass,password, (uint) strlen(password));
/* Don't use strlen, could be > SCRAMBLE_LENGTH_323 ! */
ma_hash_password(hash_message, message, SCRAMBLE_LENGTH_323);
ma_randominit(&rand_st, hash_pass[0] ^ hash_message[0],
hash_pass[1] ^ hash_message[1]);
for (; message < end_scramble323; message++)
*to++= (char) (floor(rnd(&rand_st) * 31) + 64);
extra=(char) (floor(rnd(&rand_st) * 31));
while (to_start != to)
*(to_start++)^= extra;
}
*to= 0;
return to;
} | O3 | c | ma_scramble_323:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
testq %rdx, %rdx
je 0x35707
movq %rdx, %r15
cmpb $0x0, (%rdx)
je 0x35707
movq %rsi, %r14
movq %r15, %rdi
callq 0x131d0
movl %eax, %edx
leaq -0x50(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x35358
leaq -0x40(%rbp), %r15
movl $0x8, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x35358
movq (%r15), %rsi
movq 0x8(%r15), %rcx
xorq (%r12), %rsi
xorq 0x8(%r12), %rcx
movabsq $0x400000011, %r12 # imm = 0x400000011
movq %rsi, %rax
mulq %r12
movq %rsi, %r13
subq %rdx, %r13
shrq %r13
addq %rdx, %r13
shrq $0x1d, %r13
movq %r13, %rax
shlq $0x1e, %rax
subq %rax, %r13
addq %rsi, %r13
movq %rcx, %rax
mulq %r12
movq %rcx, %rsi
subq %rdx, %rsi
shrq %rsi
addq %rdx, %rsi
shrq $0x1d, %rsi
movq %rsi, %rax
shlq $0x1e, %rax
subq %rax, %rsi
addq %rcx, %rsi
xorl %r15d, %r15d
leaq (,%r13,2), %rcx
addq %r13, %rcx
addq %rsi, %rcx
movq %rcx, %rax
mulq %r12
movq %rcx, %r13
subq %rdx, %r13
shrq %r13
addq %rdx, %r13
shrq $0x1d, %r13
movq %r13, %rax
shlq $0x1e, %rax
subq %rax, %r13
addq %rcx, %r13
leaq (%rsi,%r13), %r14
addq $0x21, %r14
xorps %xmm0, %xmm0
cvtsi2sd %r13d, %xmm0
divsd 0x634d(%rip), %xmm0 # 0x3b9a8
mulsd 0x634d(%rip), %xmm0 # 0x3b9b0
callq 0x13790
addsd 0x6348(%rip), %xmm0 # 0x3b9b8
cvttsd2si %xmm0, %eax
movb %al, (%rbx,%r15)
movq %r14, %rax
mulq %r12
incq %r15
movq %r14, %rsi
subq %rdx, %rsi
shrq %rsi
addq %rdx, %rsi
shrq $0x1d, %rsi
movq %rsi, %rax
shlq $0x1e, %rax
subq %rax, %rsi
addq %r14, %rsi
cmpq $0x8, %r15
jne 0x35612
leal (%r13,%r13,2), %eax
addl %eax, %esi
leaq (%rsi,%rsi,4), %rax
shrq $0x20, %rax
movl %esi, %ecx
subl %eax, %ecx
shrl %ecx
addl %eax, %ecx
shrl $0x1d, %ecx
movl %ecx, %eax
shll $0x1e, %eax
subl %eax, %ecx
addl %esi, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
divsd 0x62ce(%rip), %xmm0 # 0x3b9a8
mulsd 0x62ce(%rip), %xmm0 # 0x3b9b0
callq 0x13790
cvttsd2si %xmm0, %eax
movd %eax, %xmm0
punpcklbw %xmm0, %xmm0 # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0,4,5,6,7]
movq (%rbx), %xmm1
pxor %xmm0, %xmm1
movq %xmm1, (%rbx)
addq %r15, %rbx
movb $0x0, (%rbx)
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ma_scramble_323:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdi
test rdx, rdx
jz loc_35707
mov r15, rdx
cmp byte ptr [rdx], 0
jz loc_35707
mov r14, rsi
mov rdi, r15
call _strlen
mov edx, eax
lea r12, [rbp+var_50]
mov rdi, r12
mov rsi, r15
call ma_hash_password
lea r15, [rbp+var_40]
mov edx, 8
mov rdi, r15
mov rsi, r14
call ma_hash_password
mov rsi, [r15]
mov rcx, [r15+8]
xor rsi, [r12]
xor rcx, [r12+8]
mov r12, 400000011h
mov rax, rsi
mul r12
mov r13, rsi
sub r13, rdx
shr r13, 1
add r13, rdx
shr r13, 1Dh
mov rax, r13
shl rax, 1Eh
sub r13, rax
add r13, rsi
mov rax, rcx
mul r12
mov rsi, rcx
sub rsi, rdx
shr rsi, 1
add rsi, rdx
shr rsi, 1Dh
mov rax, rsi
shl rax, 1Eh
sub rsi, rax
add rsi, rcx
xor r15d, r15d
loc_35612:
lea rcx, ds:0[r13*2]
add rcx, r13
add rcx, rsi
mov rax, rcx
mul r12
mov r13, rcx
sub r13, rdx
shr r13, 1
add r13, rdx
shr r13, 1Dh
mov rax, r13
shl rax, 1Eh
sub r13, rax
add r13, rcx
lea r14, [rsi+r13]
add r14, 21h ; '!'
xorps xmm0, xmm0
cvtsi2sd xmm0, r13d
divsd xmm0, cs:qword_3B9A8
mulsd xmm0, cs:qword_3B9B0
call _floor
addsd xmm0, cs:qword_3B9B8
cvttsd2si eax, xmm0
mov [rbx+r15], al
mov rax, r14
mul r12
inc r15
mov rsi, r14
sub rsi, rdx
shr rsi, 1
add rsi, rdx
shr rsi, 1Dh
mov rax, rsi
shl rax, 1Eh
sub rsi, rax
add rsi, r14
cmp r15, 8
jnz loc_35612
lea eax, [r13+r13*2+0]
add esi, eax
lea rax, [rsi+rsi*4]
shr rax, 20h
mov ecx, esi
sub ecx, eax
shr ecx, 1
add ecx, eax
shr ecx, 1Dh
mov eax, ecx
shl eax, 1Eh
sub ecx, eax
add ecx, esi
xorps xmm0, xmm0
cvtsi2sd xmm0, ecx
divsd xmm0, cs:qword_3B9A8
mulsd xmm0, cs:qword_3B9B0
call _floor
cvttsd2si eax, xmm0
movd xmm0, eax
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
movq xmm1, qword ptr [rbx]
pxor xmm1, xmm0
movq qword ptr [rbx], xmm1
add rbx, r15
loc_35707:
mov byte ptr [rbx], 0
mov rax, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| __m128i * ma_scramble_323(__m128i *a1, unsigned __int8 *a2, unsigned __int8 *a3)
{
__m128i *v3; // rbx
unsigned int v5; // eax
unsigned long long v6; // r13
unsigned long long v7; // rsi
long long i; // r15
__m128i v9; // xmm0
long long v11[2]; // [rsp+0h] [rbp-50h] BYREF
long long v12[8]; // [rsp+10h] [rbp-40h] BYREF
v3 = a1;
if ( a3 && *a3 )
{
v5 = strlen(a3);
ma_hash_password(v11, a3, v5);
ma_hash_password(v12, a2, 8LL);
v6 = (v11[0] ^ v12[0]) % 0x3FFFFFFFuLL;
v7 = (v11[1] ^ v12[1]) % 0x3FFFFFFFuLL;
for ( i = 0LL; i != 8; ++i )
{
v6 = (v7 + 3 * v6) % 0x3FFFFFFF;
a1->m128i_i8[i] = (int)(floor((double)(int)v6 / 1073741823.0 * 31.0) + 64.0);
v7 = (v7 + v6 + 33) % 0x3FFFFFFF;
}
v9 = _mm_cvtsi32_si128((int)floor((double)((3 * (int)v6 + (int)v7) % 0x3FFFFFFFu) / 1073741823.0 * 31.0));
a1->m128i_i64[0] = _mm_xor_si128(_mm_loadl_epi64(a1), _mm_shufflelo_epi16(_mm_unpacklo_epi8(v9, v9), 0)).m128i_u64[0];
v3 = (__m128i *)&a1->m128i_u64[1];
}
v3->m128i_i8[0] = 0;
return v3;
}
| ma_scramble_323:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
TEST RDX,RDX
JZ 0x00135707
MOV R15,RDX
CMP byte ptr [RDX],0x0
JZ 0x00135707
MOV R14,RSI
MOV RDI,R15
CALL 0x001131d0
MOV EDX,EAX
LEA R12,[RBP + -0x50]
MOV RDI,R12
MOV RSI,R15
CALL 0x00135358
LEA R15,[RBP + -0x40]
MOV EDX,0x8
MOV RDI,R15
MOV RSI,R14
CALL 0x00135358
MOV RSI,qword ptr [R15]
MOV RCX,qword ptr [R15 + 0x8]
XOR RSI,qword ptr [R12]
XOR RCX,qword ptr [R12 + 0x8]
MOV R12,0x400000011
MOV RAX,RSI
MUL R12
MOV R13,RSI
SUB R13,RDX
SHR R13,0x1
ADD R13,RDX
SHR R13,0x1d
MOV RAX,R13
SHL RAX,0x1e
SUB R13,RAX
ADD R13,RSI
MOV RAX,RCX
MUL R12
MOV RSI,RCX
SUB RSI,RDX
SHR RSI,0x1
ADD RSI,RDX
SHR RSI,0x1d
MOV RAX,RSI
SHL RAX,0x1e
SUB RSI,RAX
ADD RSI,RCX
XOR R15D,R15D
LAB_00135612:
LEA RCX,[R13*0x2]
ADD RCX,R13
ADD RCX,RSI
MOV RAX,RCX
MUL R12
MOV R13,RCX
SUB R13,RDX
SHR R13,0x1
ADD R13,RDX
SHR R13,0x1d
MOV RAX,R13
SHL RAX,0x1e
SUB R13,RAX
ADD R13,RCX
LEA R14,[RSI + R13*0x1]
ADD R14,0x21
XORPS XMM0,XMM0
CVTSI2SD XMM0,R13D
DIVSD XMM0,qword ptr [0x0013b9a8]
MULSD XMM0,qword ptr [0x0013b9b0]
CALL 0x00113790
ADDSD XMM0,qword ptr [0x0013b9b8]
CVTTSD2SI EAX,XMM0
MOV byte ptr [RBX + R15*0x1],AL
MOV RAX,R14
MUL R12
INC R15
MOV RSI,R14
SUB RSI,RDX
SHR RSI,0x1
ADD RSI,RDX
SHR RSI,0x1d
MOV RAX,RSI
SHL RAX,0x1e
SUB RSI,RAX
ADD RSI,R14
CMP R15,0x8
JNZ 0x00135612
LEA EAX,[R13 + R13*0x2]
ADD ESI,EAX
LEA RAX,[RSI + RSI*0x4]
SHR RAX,0x20
MOV ECX,ESI
SUB ECX,EAX
SHR ECX,0x1
ADD ECX,EAX
SHR ECX,0x1d
MOV EAX,ECX
SHL EAX,0x1e
SUB ECX,EAX
ADD ECX,ESI
XORPS XMM0,XMM0
CVTSI2SD XMM0,ECX
DIVSD XMM0,qword ptr [0x0013b9a8]
MULSD XMM0,qword ptr [0x0013b9b0]
CALL 0x00113790
CVTTSD2SI EAX,XMM0
MOVD XMM0,EAX
PUNPCKLBW XMM0,XMM0
PSHUFLW XMM0,XMM0,0x0
MOVQ XMM1,qword ptr [RBX]
PXOR XMM1,XMM0
MOVQ qword ptr [RBX],XMM1
ADD RBX,R15
LAB_00135707:
MOV byte ptr [RBX],0x0
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
ulong * ma_scramble_323(ulong *param_1,int8 param_2,char *param_3)
{
int iVar1;
size_t sVar2;
ulong uVar3;
ulong uVar4;
long lVar5;
int1 uVar8;
int1 uVar9;
int1 uVar10;
double dVar6;
int1 auVar7 [16];
ulong local_58;
ulong local_50;
ulong local_48;
ulong local_40;
if ((param_3 != (char *)0x0) && (*param_3 != '\0')) {
sVar2 = strlen(param_3);
ma_hash_password(&local_58,param_3,sVar2 & 0xffffffff);
ma_hash_password(&local_48,param_2,8);
uVar4 = (local_48 ^ local_58) % 0x3fffffff;
uVar3 = (local_40 ^ local_50) % 0x3fffffff;
lVar5 = 0;
do {
uVar4 = (uVar4 * 3 + uVar3) % 0x3fffffff;
dVar6 = floor(((double)(int)uVar4 / _DAT_0013b9a8) * _DAT_0013b9b0);
*(char *)((long)param_1 + lVar5) = (char)(int)(dVar6 + _DAT_0013b9b8);
lVar5 = lVar5 + 1;
uVar3 = (uVar3 + uVar4 + 0x21) % 0x3fffffff;
} while (lVar5 != 8);
dVar6 = floor(((double)((uint)((int)uVar3 + (int)uVar4 * 3) % 0x3fffffff) / _DAT_0013b9a8) *
_DAT_0013b9b0);
iVar1 = (int)dVar6;
uVar10 = (int1)((uint)iVar1 >> 0x18);
uVar9 = (int1)((uint)iVar1 >> 0x10);
uVar8 = (int1)((uint)iVar1 >> 8);
auVar7._4_4_ = (int)(CONCAT35(CONCAT21(CONCAT11(uVar10,uVar10),uVar9),CONCAT14(uVar9,iVar1)) >>
0x20);
auVar7[3] = uVar8;
auVar7[2] = uVar8;
auVar7[0] = (int1)iVar1;
auVar7[1] = auVar7[0];
auVar7._8_8_ = 0;
auVar7 = pshuflw(auVar7,auVar7,0);
*param_1 = *param_1 ^ auVar7._0_8_;
param_1 = param_1 + 1;
}
*(int1 *)param_1 = 0;
return param_1;
}
| |
29,754 | my_thread_destory_thr_mutex | eloqsql/mysys/my_thr_init.c | static void my_thread_destory_thr_mutex(struct st_my_thread_var *var)
{
mysql_mutex_destroy(&var->mutex);
mysql_cond_destroy(&var->suspend);
} | O3 | c | my_thread_destory_thr_mutex:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x40(%rdi), %r14
movq 0x80(%rdi), %rdi
testq %rdi, %rdi
je 0x265a3
leaq 0x2c928e(%rip), %rax # 0x2ef820
movq (%rax), %rax
callq *0x48(%rax)
movq $0x0, 0x80(%rbx)
movq %r14, %rdi
callq 0x243c0
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
jne 0x265c4
addq $0x8, %rbx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x246d0
leaq 0x2c9255(%rip), %rax # 0x2ef820
movq (%rax), %rax
callq *0x68(%rax)
movq $0x0, 0x38(%rbx)
jmp 0x265b4
| my_thread_destory_thr_mutex:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
lea r14, [rdi+40h]
mov rdi, [rdi+80h]
test rdi, rdi
jz short loc_265A3
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+48h]
mov qword ptr [rbx+80h], 0
loc_265A3:
mov rdi, r14
call _pthread_mutex_destroy
mov rdi, [rbx+38h]
test rdi, rdi
jnz short loc_265C4
loc_265B4:
add rbx, 8
mov rdi, rbx
pop rbx
pop r14
pop rbp
jmp _pthread_cond_destroy
loc_265C4:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+68h]
mov qword ptr [rbx+38h], 0
jmp short loc_265B4
| long long my_thread_destory_thr_mutex(long long a1)
{
if ( *(_QWORD *)(a1 + 128) )
{
(*((void (**)(void))PSI_server[0] + 9))();
*(_QWORD *)(a1 + 128) = 0LL;
}
pthread_mutex_destroy(a1 + 64);
if ( *(_QWORD *)(a1 + 56) )
{
(*((void (**)(void))PSI_server[0] + 13))();
*(_QWORD *)(a1 + 56) = 0LL;
}
return pthread_cond_destroy(a1 + 8);
}
| my_thread_destory_thr_mutex:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
LEA R14,[RDI + 0x40]
MOV RDI,qword ptr [RDI + 0x80]
TEST RDI,RDI
JZ 0x001265a3
LEA RAX,[0x3ef820]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x48]
MOV qword ptr [RBX + 0x80],0x0
LAB_001265a3:
MOV RDI,R14
CALL 0x001243c0
MOV RDI,qword ptr [RBX + 0x38]
TEST RDI,RDI
JNZ 0x001265c4
LAB_001265b4:
ADD RBX,0x8
MOV RDI,RBX
POP RBX
POP R14
POP RBP
JMP 0x001246d0
LAB_001265c4:
LEA RAX,[0x3ef820]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x68]
MOV qword ptr [RBX + 0x38],0x0
JMP 0x001265b4
|
void my_thread_destory_thr_mutex(long param_1)
{
if (*(long *)(param_1 + 0x80) != 0) {
(**(code **)(PSI_server + 0x48))();
*(int8 *)(param_1 + 0x80) = 0;
}
pthread_mutex_destroy((pthread_mutex_t *)(param_1 + 0x40));
if (*(long *)(param_1 + 0x38) != 0) {
(**(code **)(PSI_server + 0x68))();
*(int8 *)(param_1 + 0x38) = 0;
}
pthread_cond_destroy((pthread_cond_t *)(param_1 + 8));
return;
}
| |
29,755 | lunasvg::SVGUseElement::build() | dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp | void SVGUseElement::build()
{
if(auto targetElement = getTargetElement(document())) {
if(auto newElement = cloneTargetElement(targetElement)) {
addChild(std::move(newElement));
}
}
SVGGraphicsElement::build();
} | O0 | cpp | lunasvg::SVGUseElement::build():
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
addq $0x98, %rax
movq %rax, -0x38(%rbp)
callq 0x1dc90
movq -0x38(%rbp), %rdi
movq %rax, %rsi
callq 0x1a360
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x1b711
movq -0x40(%rbp), %rsi
movq -0x10(%rbp), %rdx
leaq -0x18(%rbp), %rdi
callq 0x1b730
leaq -0x18(%rbp), %rdi
callq 0x21290
testb $0x1, %al
jne 0x1b6bd
jmp 0x1b708
leaq -0x20(%rbp), %rdi
movq %rdi, -0x48(%rbp)
leaq -0x18(%rbp), %rsi
callq 0x20160
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x19170
jmp 0x1b6dd
leaq -0x20(%rbp), %rdi
callq 0xfea0
jmp 0x1b708
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x20(%rbp), %rdi
callq 0xfea0
leaq -0x18(%rbp), %rdi
callq 0x201b0
jmp 0x1b720
leaq -0x18(%rbp), %rdi
callq 0x201b0
movq -0x40(%rbp), %rdi
callq 0x19da0
addq $0x50, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0xb6c0
nopl (%rax)
| _ZN7lunasvg13SVGUseElement5buildEv:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
mov [rbp+var_40], rdi
mov rax, rdi
add rax, 98h
mov [rbp+var_38], rax
call _ZNK7lunasvg7SVGNode8documentEv; lunasvg::SVGNode::document(void)
mov rdi, [rbp+var_38]; this
mov rsi, rax; lunasvg::Document *
call _ZNK7lunasvg15SVGURIReference16getTargetElementEPKNS_8DocumentE; lunasvg::SVGURIReference::getTargetElement(lunasvg::Document const*)
mov [rbp+var_10], rax
cmp [rbp+var_10], 0
jz short loc_1B711
mov rsi, [rbp+var_40]; lunasvg::SVGElement *
mov rdx, [rbp+var_10]
lea rdi, [rbp+var_18]; this
call _ZN7lunasvg13SVGUseElement18cloneTargetElementEPNS_10SVGElementE; lunasvg::SVGUseElement::cloneTargetElement(lunasvg::SVGElement *)
lea rdi, [rbp+var_18]
call _ZNKSt10unique_ptrIN7lunasvg10SVGElementESt14default_deleteIS1_EEcvbEv; std::unique_ptr<lunasvg::SVGElement>::operator bool(void)
test al, 1
jnz short loc_1B6BD
jmp short loc_1B708
loc_1B6BD:
lea rdi, [rbp+var_20]
mov [rbp+var_48], rdi
lea rsi, [rbp+var_18]
call _ZNSt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS1_EEC2INS0_10SVGElementES2_IS6_EvEEOS_IT_T0_E; std::unique_ptr<lunasvg::SVGNode>::unique_ptr<lunasvg::SVGElement,std::default_delete<lunasvg::SVGElement>,void>(std::unique_ptr&&<lunasvg::SVGElement,std::default_delete<lunasvg::SVGElement>>)
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
call _ZN7lunasvg10SVGElement8addChildESt10unique_ptrINS_7SVGNodeESt14default_deleteIS2_EE; lunasvg::SVGElement::addChild(std::unique_ptr<lunasvg::SVGNode>)
jmp short $+2
loc_1B6DD:
lea rdi, [rbp+var_20]
call _ZNSt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS1_EED2Ev; std::unique_ptr<lunasvg::SVGNode>::~unique_ptr()
jmp short loc_1B708
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
lea rdi, [rbp+var_20]
call _ZNSt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS1_EED2Ev; std::unique_ptr<lunasvg::SVGNode>::~unique_ptr()
lea rdi, [rbp+var_18]
call _ZNSt10unique_ptrIN7lunasvg10SVGElementESt14default_deleteIS1_EED2Ev; std::unique_ptr<lunasvg::SVGElement>::~unique_ptr()
jmp short loc_1B720
loc_1B708:
lea rdi, [rbp+var_18]
call _ZNSt10unique_ptrIN7lunasvg10SVGElementESt14default_deleteIS1_EED2Ev; std::unique_ptr<lunasvg::SVGElement>::~unique_ptr()
loc_1B711:
mov rdi, [rbp+var_40]; this
call _ZN7lunasvg10SVGElement5buildEv; lunasvg::SVGElement::build(void)
add rsp, 50h
pop rbp
retn
loc_1B720:
mov rdi, [rbp+var_28]
call __Unwind_Resume
| long long lunasvg::SVGUseElement::build(lunasvg::SVGUseElement *this)
{
const lunasvg::Document *v1; // rax
_BYTE v3[8]; // [rsp+30h] [rbp-20h] BYREF
_BYTE v4[8]; // [rsp+38h] [rbp-18h] BYREF
lunasvg::SVGNode *v6; // [rsp+48h] [rbp-8h]
v6 = this;
v1 = (const lunasvg::Document *)lunasvg::SVGNode::document(this);
if ( lunasvg::SVGURIReference::getTargetElement((lunasvg::SVGUseElement *)((char *)this + 152), v1) )
{
lunasvg::SVGUseElement::cloneTargetElement((lunasvg::SVGUseElement *)v4, this);
if ( (std::unique_ptr<lunasvg::SVGElement>::operator bool(v4) & 1) != 0 )
{
std::unique_ptr<lunasvg::SVGNode>::unique_ptr<lunasvg::SVGElement,std::default_delete<lunasvg::SVGElement>,void>(
v3,
v4);
lunasvg::SVGElement::addChild(this, (long long)v3);
std::unique_ptr<lunasvg::SVGNode>::~unique_ptr((long long)v3);
}
std::unique_ptr<lunasvg::SVGElement>::~unique_ptr(v4);
}
return lunasvg::SVGElement::build(this);
}
| build:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x40],RDI
MOV RAX,RDI
ADD RAX,0x98
MOV qword ptr [RBP + -0x38],RAX
CALL 0x0011dc90
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,RAX
CALL 0x0011a360
MOV qword ptr [RBP + -0x10],RAX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0011b711
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x10]
LEA RDI,[RBP + -0x18]
CALL 0x0011b730
LEA RDI,[RBP + -0x18]
CALL 0x00121290
TEST AL,0x1
JNZ 0x0011b6bd
JMP 0x0011b708
LAB_0011b6bd:
LEA RDI,[RBP + -0x20]
MOV qword ptr [RBP + -0x48],RDI
LEA RSI,[RBP + -0x18]
CALL 0x00120160
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
LAB_0011b6d6:
CALL 0x00119170
LAB_0011b6db:
JMP 0x0011b6dd
LAB_0011b6dd:
LEA RDI,[RBP + -0x20]
CALL 0x0010fea0
JMP 0x0011b708
LAB_0011b708:
LEA RDI,[RBP + -0x18]
CALL 0x001201b0
LAB_0011b711:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00119da0
ADD RSP,0x50
POP RBP
RET
|
/* lunasvg::SVGUseElement::build() */
void __thiscall lunasvg::SVGUseElement::build(SVGUseElement *this)
{
bool bVar1;
Document *pDVar2;
unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>> local_28 [8];
SVGElement local_20 [8];
long local_18;
SVGUseElement *local_10;
local_10 = this;
pDVar2 = (Document *)SVGNode::document((SVGNode *)this);
local_18 = SVGURIReference::getTargetElement((SVGURIReference *)(this + 0x98),pDVar2);
if (local_18 != 0) {
cloneTargetElement(local_20);
bVar1 = std::unique_ptr::operator_cast_to_bool((unique_ptr *)local_20);
if (bVar1) {
std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>::
unique_ptr<lunasvg::SVGElement,std::default_delete<lunasvg::SVGElement>,void>
(local_28,(unique_ptr *)local_20);
/* try { // try from 0011b6d6 to 0011b6da has its CatchHandler @ 0011b6e8 */
SVGElement::addChild((SVGElement *)this,local_28);
std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>::~unique_ptr(local_28)
;
}
std::unique_ptr<lunasvg::SVGElement,std::default_delete<lunasvg::SVGElement>>::~unique_ptr
((unique_ptr<lunasvg::SVGElement,std::default_delete<lunasvg::SVGElement>> *)local_20)
;
}
SVGElement::build((SVGElement *)this);
return;
}
| |
29,756 | test_conc334 | eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c | static int test_conc334(MYSQL *mysql)
{
MYSQL_STMT *stmt= mysql_stmt_init(mysql);
MYSQL_RES *result;
MYSQL_FIELD *field;
int rc;
rc= mysql_stmt_prepare(stmt, SL("SHOW ENGINES"));
check_stmt_rc(rc, stmt);
rc= mysql_stmt_execute(stmt);
check_stmt_rc(rc, stmt);
result= mysql_stmt_result_metadata(stmt);
if (!result)
{
diag("Couldn't retrieve result set");
mysql_stmt_close(stmt);
return FAIL;
}
mysql_field_seek(result, 0);
while ((field= mysql_fetch_field(result)))
{
FAIL_IF(field->name_length == 0, "Invalid name length (0)");
FAIL_IF(field->table_length == 0, "Invalid name length (0)");
}
mysql_free_result(result);
mysql_stmt_close(stmt);
return OK;
} | O0 | c | test_conc334:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x44950
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
leaq 0x4e983(%rip), %rsi # 0x669b7
movl $0xc, %edx
callq 0x45070
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
je 0x18079
movq -0x18(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x4d536(%rip), %rdi # 0x65590
leaq 0x4e00c(%rip), %rdx # 0x6606d
movl $0x1346, %ecx # imm = 0x1346
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x181a4
jmp 0x1807b
movq -0x18(%rbp), %rdi
callq 0x46580
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
je 0x180bf
movq -0x18(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x4d4f0(%rip), %rdi # 0x65590
leaq 0x4dfc6(%rip), %rdx # 0x6606d
movl $0x1349, %ecx # imm = 0x1349
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x181a4
jmp 0x180c1
movq -0x18(%rbp), %rdi
callq 0x46a90
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x180f8
leaq 0x4e8e8(%rip), %rdi # 0x669c4
movb $0x0, %al
callq 0x2fc40
movq -0x18(%rbp), %rdi
callq 0x43eb0
movl $0x1, -0x4(%rbp)
jmp 0x181a4
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x3a750
movq -0x20(%rbp), %rdi
callq 0x3a330
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x1818b
jmp 0x18118
movq -0x28(%rbp), %rax
cmpl $0x0, 0x48(%rax)
jne 0x1814c
leaq 0x4d467(%rip), %rdi # 0x65590
leaq 0x4e8b1(%rip), %rsi # 0x669e1
leaq 0x4df36(%rip), %rdx # 0x6606d
movl $0x1357, %ecx # imm = 0x1357
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x181a4
jmp 0x1814e
jmp 0x18150
movq -0x28(%rbp), %rax
cmpl $0x0, 0x50(%rax)
jne 0x18184
leaq 0x4d42f(%rip), %rdi # 0x65590
leaq 0x4e879(%rip), %rsi # 0x669e1
leaq 0x4defe(%rip), %rdx # 0x6606d
movl $0x1358, %ecx # imm = 0x1358
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x181a4
jmp 0x18186
jmp 0x18103
movq -0x20(%rbp), %rdi
callq 0x31900
movq -0x18(%rbp), %rdi
callq 0x43eb0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| test_conc334:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov rdi, [rbp+var_10]
call mysql_stmt_init
mov [rbp+var_18], rax
mov rdi, [rbp+var_18]
lea rsi, aShowEngines; "SHOW ENGINES"
mov edx, 0Ch
call mysql_stmt_prepare
mov [rbp+var_2C], eax
cmp [rbp+var_2C], 0
jz short loc_18079
mov rdi, [rbp+var_18]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1346h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_181A4
loc_18079:
jmp short $+2
loc_1807B:
mov rdi, [rbp+var_18]
call mysql_stmt_execute
mov [rbp+var_2C], eax
cmp [rbp+var_2C], 0
jz short loc_180BF
mov rdi, [rbp+var_18]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1349h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_181A4
loc_180BF:
jmp short $+2
loc_180C1:
mov rdi, [rbp+var_18]
call mysql_stmt_result_metadata
mov [rbp+var_20], rax
cmp [rbp+var_20], 0
jnz short loc_180F8
lea rdi, aCouldnTRetriev; "Couldn't retrieve result set"
mov al, 0
call diag
mov rdi, [rbp+var_18]
call mysql_stmt_close
mov [rbp+var_4], 1
jmp loc_181A4
loc_180F8:
mov rdi, [rbp+var_20]
xor esi, esi
call mysql_field_seek
loc_18103:
mov rdi, [rbp+var_20]
call mysql_fetch_field
mov [rbp+var_28], rax
cmp rax, 0
jz short loc_1818B
jmp short $+2
loc_18118:
mov rax, [rbp+var_28]
cmp dword ptr [rax+48h], 0
jnz short loc_1814C
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aInvalidNameLen; "Invalid name length (0)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1357h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_181A4
loc_1814C:
jmp short $+2
loc_1814E:
jmp short $+2
loc_18150:
mov rax, [rbp+var_28]
cmp dword ptr [rax+50h], 0
jnz short loc_18184
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aInvalidNameLen; "Invalid name length (0)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1358h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_181A4
loc_18184:
jmp short $+2
loc_18186:
jmp loc_18103
loc_1818B:
mov rdi, [rbp+var_20]
call mysql_free_result
mov rdi, [rbp+var_18]
call mysql_stmt_close
mov [rbp+var_4], 0
loc_181A4:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long test_conc334(long long a1)
{
int v1; // eax
int v2; // r8d
int v3; // r9d
int v4; // eax
int v5; // r8d
int v6; // r9d
int v7; // edx
int v8; // ecx
int v9; // r8d
int v10; // r9d
int v11; // r8d
int v12; // r9d
long long field; // [rsp+8h] [rbp-28h]
long long v15; // [rsp+10h] [rbp-20h]
long long v16; // [rsp+18h] [rbp-18h]
v16 = mysql_stmt_init(a1);
if ( (unsigned int)mysql_stmt_prepare(v16, "SHOW ENGINES", 12LL) )
{
v1 = mysql_stmt_error(v16);
diag(
(unsigned int)"Error: %s (%s: %d)",
v1,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4934,
v2,
v3);
return 1;
}
else if ( (unsigned int)mysql_stmt_execute(v16) )
{
v4 = mysql_stmt_error(v16);
diag(
(unsigned int)"Error: %s (%s: %d)",
v4,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4937,
v5,
v6);
return 1;
}
else
{
v15 = mysql_stmt_result_metadata(v16);
if ( v15 )
{
mysql_field_seek(v15, 0LL);
while ( 1 )
{
field = mysql_fetch_field(v15);
if ( !field )
break;
if ( !*(_DWORD *)(field + 72) )
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"Invalid name length (0)",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4951,
v11,
v12);
return 1;
}
if ( !*(_DWORD *)(field + 80) )
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"Invalid name length (0)",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4952,
v11,
v12);
return 1;
}
}
mysql_free_result(v15);
mysql_stmt_close(v16);
return 0;
}
else
{
diag((unsigned int)"Couldn't retrieve result set", (unsigned int)"SHOW ENGINES", v7, v8, v9, v10);
mysql_stmt_close(v16);
return 1;
}
}
}
| test_conc334:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00144950
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x18]
LEA RSI,[0x1669b7]
MOV EDX,0xc
CALL 0x00145070
MOV dword ptr [RBP + -0x2c],EAX
CMP dword ptr [RBP + -0x2c],0x0
JZ 0x00118079
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x1346
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001181a4
LAB_00118079:
JMP 0x0011807b
LAB_0011807b:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00146580
MOV dword ptr [RBP + -0x2c],EAX
CMP dword ptr [RBP + -0x2c],0x0
JZ 0x001180bf
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x1349
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001181a4
LAB_001180bf:
JMP 0x001180c1
LAB_001180c1:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00146a90
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x001180f8
LEA RDI,[0x1669c4]
MOV AL,0x0
CALL 0x0012fc40
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00143eb0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001181a4
LAB_001180f8:
MOV RDI,qword ptr [RBP + -0x20]
XOR ESI,ESI
CALL 0x0013a750
LAB_00118103:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0013a330
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JZ 0x0011818b
JMP 0x00118118
LAB_00118118:
MOV RAX,qword ptr [RBP + -0x28]
CMP dword ptr [RAX + 0x48],0x0
JNZ 0x0011814c
LEA RDI,[0x165590]
LEA RSI,[0x1669e1]
LEA RDX,[0x16606d]
MOV ECX,0x1357
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001181a4
LAB_0011814c:
JMP 0x0011814e
LAB_0011814e:
JMP 0x00118150
LAB_00118150:
MOV RAX,qword ptr [RBP + -0x28]
CMP dword ptr [RAX + 0x50],0x0
JNZ 0x00118184
LEA RDI,[0x165590]
LEA RSI,[0x1669e1]
LEA RDX,[0x16606d]
MOV ECX,0x1358
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001181a4
LAB_00118184:
JMP 0x00118186
LAB_00118186:
JMP 0x00118103
LAB_0011818b:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00131900
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00143eb0
MOV dword ptr [RBP + -0x4],0x0
LAB_001181a4:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 test_conc334(int8 param_1)
{
int iVar1;
int8 uVar2;
long lVar3;
long lVar4;
uVar2 = mysql_stmt_init(param_1);
iVar1 = mysql_stmt_prepare(uVar2,"SHOW ENGINES",0xc);
if (iVar1 == 0) {
iVar1 = mysql_stmt_execute(uVar2);
if (iVar1 == 0) {
lVar3 = mysql_stmt_result_metadata(uVar2);
if (lVar3 == 0) {
diag("Couldn\'t retrieve result set");
mysql_stmt_close(uVar2);
}
else {
mysql_field_seek(lVar3,0);
do {
lVar4 = mysql_fetch_field(lVar3);
if (lVar4 == 0) {
mysql_free_result(lVar3);
mysql_stmt_close(uVar2);
return 0;
}
if (*(int *)(lVar4 + 0x48) == 0) {
diag("Error: %s (%s: %d)","Invalid name length (0)",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c"
,0x1357);
return 1;
}
} while (*(int *)(lVar4 + 0x50) != 0);
diag("Error: %s (%s: %d)","Invalid name length (0)",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1358);
}
}
else {
uVar2 = mysql_stmt_error(uVar2);
diag("Error: %s (%s: %d)",uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1349);
}
}
else {
uVar2 = mysql_stmt_error(uVar2);
diag("Error: %s (%s: %d)",uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",0x1346)
;
}
return 1;
}
| |
29,757 | add_reloc | bluesky950520[P]quickjs/quickjs.c | static RelocEntry *add_reloc(JSContext *ctx, LabelSlot *ls, uint32_t addr, int size)
{
RelocEntry *re;
re = js_malloc(ctx, sizeof(*re));
if (!re)
return NULL;
re->addr = addr;
re->size = size;
re->next = ls->first_reloc;
ls->first_reloc = re;
return re;
} | O2 | c | add_reloc:
pushq %rbp
pushq %r14
pushq %rbx
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, %rbx
pushq $0x10
popq %rsi
callq 0x17214
testq %rax, %rax
je 0x5db60
movl %r14d, 0x8(%rax)
movl %ebp, 0xc(%rax)
movq 0x10(%rbx), %rcx
movq %rcx, (%rax)
movq %rax, 0x10(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
| add_reloc:
push rbp
push r14
push rbx
mov ebp, ecx
mov r14d, edx
mov rbx, rsi
push 10h
pop rsi
call js_malloc
test rax, rax
jz short loc_5DB60
mov [rax+8], r14d
mov [rax+0Ch], ebp
mov rcx, [rbx+10h]
mov [rax], rcx
mov [rbx+10h], rax
loc_5DB60:
pop rbx
pop r14
pop rbp
retn
| long long add_reloc(long long a1, long long a2, int a3, int a4)
{
long long result; // rax
result = js_malloc(a1, 16LL);
if ( result )
{
*(_DWORD *)(result + 8) = a3;
*(_DWORD *)(result + 12) = a4;
*(_QWORD *)result = *(_QWORD *)(a2 + 16);
*(_QWORD *)(a2 + 16) = result;
}
return result;
}
| add_reloc:
PUSH RBP
PUSH R14
PUSH RBX
MOV EBP,ECX
MOV R14D,EDX
MOV RBX,RSI
PUSH 0x10
POP RSI
CALL 0x00117214
TEST RAX,RAX
JZ 0x0015db60
MOV dword ptr [RAX + 0x8],R14D
MOV dword ptr [RAX + 0xc],EBP
MOV RCX,qword ptr [RBX + 0x10]
MOV qword ptr [RAX],RCX
MOV qword ptr [RBX + 0x10],RAX
LAB_0015db60:
POP RBX
POP R14
POP RBP
RET
|
void add_reloc(int8 param_1,long param_2,int4 param_3,int4 param_4)
{
int8 *puVar1;
puVar1 = (int8 *)js_malloc(param_1,0x10);
if (puVar1 != (int8 *)0x0) {
*(int4 *)(puVar1 + 1) = param_3;
*(int4 *)((long)puVar1 + 0xc) = param_4;
*puVar1 = *(int8 *)(param_2 + 0x10);
*(int8 **)(param_2 + 0x10) = puVar1;
}
return;
}
| |
29,758 | testing::TestInfo* testing::RegisterTest<testing::internal::InsertSyntheticTestCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::internal::CodeLocation, bool)::$_0>(char const*, char const*, char const*, char const*, char const*, int, testing::internal::InsertSyntheticTestCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::internal::CodeLocation, bool)::$_0)::FactoryImpl::CreateTest() | AlayaLite/build_O3/_deps/googletest-src/googletest/include/gtest/gtest.h | Test* CreateTest() override { return factory_(); } | O3 | c | testing::TestInfo* testing::RegisterTest<testing::internal::InsertSyntheticTestCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::internal::CodeLocation, bool)::$_0>(char const*, char const*, char const*, char const*, char const*, int, testing::internal::InsertSyntheticTestCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::internal::CodeLocation, bool)::$_0)::FactoryImpl::CreateTest():
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %r14
movl $0x60, %edi
callq 0x11190
movq %rax, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x18f38
addq $0x48, %r14
movq %rsp, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x72162
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x724d9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11120
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x72504
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11120
jmp 0x72504
movq %rax, %r14
movl $0x60, %esi
movq %rbx, %rdi
callq 0x11120
movq %r14, %rdi
callq 0x11760
| _ZZN7testing12RegisterTestITpTnRiJEZNS_8internal34TypeParameterizedTestSuiteRegistry22CheckForInstantiationsEvE3$_0EEPNS_8TestInfoEPKcS8_S8_S8_S8_iT0_EN11FactoryImpl10CreateTestEv:
push r15
push r14
push rbx
sub rsp, 20h
mov r14, rdi
mov edi, 60h ; '`'; unsigned __int64
call __Znwm; operator new(ulong)
mov rbx, rax
lea r15, [rsp+38h+var_28]
mov [r15-10h], r15
mov rsi, [r14+8]
mov rdx, [r14+10h]
add rdx, rsi
mov rdi, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
add r14, 48h ; 'H'
mov rdx, rsp
mov rdi, rbx
mov rsi, r14
call _ZN7testing8internal12_GLOBAL__N_111FailureTestC2ERKNS0_12CodeLocationENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb; testing::internal::`anonymous namespace'::FailureTest::FailureTest(testing::internal::CodeLocation const&,std::string,bool)
mov rdi, [rsp+38h+var_38]; void *
cmp rdi, r15
jz short loc_724D9
mov rsi, [rsp+38h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_724D9:
mov rax, rbx
add rsp, 20h
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_72504
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_72504
mov r14, rax
loc_72504:
mov esi, 60h ; '`'; unsigned __int64
mov rdi, rbx; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, r14
call __Unwind_Resume
| long long ZZN7testing12RegisterTestITpTnRiJEZNS_8internal34TypeParameterizedTestSuiteRegistry22CheckForInstantiationsEvE3__0EEPNS_8TestInfoEPKcS8_S8_S8_S8_iT0_EN11FactoryImpl10CreateTestEv(
long long a1)
{
long long v1; // rbx
void *v3[2]; // [rsp+0h] [rbp-38h] BYREF
_QWORD v4[5]; // [rsp+10h] [rbp-28h] BYREF
v1 = operator new(0x60uLL);
v3[0] = v4;
std::string::_M_construct<char *>((long long)v3, *(_BYTE **)(a1 + 8), *(_QWORD *)(a1 + 8) + *(_QWORD *)(a1 + 16));
testing::internal::`anonymous namespace'::FailureTest::FailureTest(v1, a1 + 72, (long long)v3);
if ( v3[0] != v4 )
operator delete(v3[0], v4[0] + 1LL);
return v1;
}
| _ZZN7testing12RegisterTestITpTnRiJEZNS_8internal34TypeParameterizedTestSuiteRegistry22CheckForInstantiationsEvE3$_0EEPNS_8TestInfoEPKcS8_S8_S8_S8_iT0_EN11FactoryImpl10CreateTestEv:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x20
MOV R14,RDI
MOV EDI,0x60
CALL 0x00111190
MOV RBX,RAX
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV RSI,qword ptr [R14 + 0x8]
MOV RDX,qword ptr [R14 + 0x10]
ADD RDX,RSI
LAB_001724a9:
MOV RDI,RSP
CALL 0x00118f38
ADD R14,0x48
LAB_001724b5:
MOV RDX,RSP
MOV RDI,RBX
MOV RSI,R14
CALL 0x00172162
LAB_001724c3:
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x001724d9
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00111120
LAB_001724d9:
MOV RAX,RBX
ADD RSP,0x20
POP RBX
POP R14
POP R15
RET
|
FailureTest *
_ZZN7testing12RegisterTestITpTnRiJEZNS_8internal34TypeParameterizedTestSuiteRegistry22CheckForInstantiationsEvE3__0EEPNS_8TestInfoEPKcS8_S8_S8_S8_iT0_EN11FactoryImpl10CreateTestEv
(long param_1)
{
FailureTest *pFVar1;
long *local_38 [2];
long local_28 [2];
pFVar1 = (FailureTest *)operator_new(0x60);
local_38[0] = local_28;
/* try { // try from 001724a9 to 001724b0 has its CatchHandler @ 00172501 */
std::__cxx11::string::_M_construct<char*>
(local_38,*(long *)(param_1 + 8),*(long *)(param_1 + 0x10) + *(long *)(param_1 + 8));
/* try { // try from 001724b5 to 001724c2 has its CatchHandler @ 001724e6 */
testing::internal::(anonymous_namespace)::FailureTest::FailureTest(pFVar1,param_1 + 0x48,local_38)
;
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
return pFVar1;
}
| |
29,759 | to_utf32_buf | bluesky950520[P]quickjs/quickjs.c | static int to_utf32_buf(JSContext *ctx, JSString *p, uint32_t **pbuf)
{
uint32_t *b;
int i, j, n;
j = -1;
n = p->len;
b = js_malloc(ctx, max_int(1, n) * sizeof(*b));
if (b)
for (i = j = 0; i < n;)
b[j++] = string_getc(p, &i);
*pbuf = b;
return j;
} | O1 | c | to_utf32_buf:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movl $0x7fffffff, %ebp # imm = 0x7FFFFFFF
andl 0x4(%rsi), %ebp
cmpl $0x2, %ebp
pushq $0x1
popq %rsi
cmovgel %ebp, %esi
shlq $0x2, %rsi
callq 0xf082
movq %rax, %r15
testq %rax, %rax
je 0x12ac5
andl $0x0, 0x4(%rsp)
xorl %r12d, %r12d
testl %ebp, %ebp
je 0x12ac9
leaq 0x4(%rsp), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x50609
movl %eax, (%r15,%r12,4)
incq %r12
cmpl %ebp, 0x4(%rsp)
jl 0x12aab
jmp 0x12ac9
pushq $-0x1
popq %r12
movq %r15, (%rbx)
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| to_utf32_buf:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov r14, rsi
mov ebp, 7FFFFFFFh
and ebp, [rsi+4]
cmp ebp, 2
push 1
pop rsi
cmovge esi, ebp
shl rsi, 2
call js_malloc
mov r15, rax
test rax, rax
jz short loc_12AC5
and [rsp+38h+var_34], 0
xor r12d, r12d
test ebp, ebp
jz short loc_12AC9
lea r13, [rsp+38h+var_34]
loc_12AAB:
mov rdi, r14
mov rsi, r13
call string_getc
mov [r15+r12*4], eax
inc r12
cmp [rsp+38h+var_34], ebp
jl short loc_12AAB
jmp short loc_12AC9
loc_12AC5:
push 0FFFFFFFFFFFFFFFFh
pop r12
loc_12AC9:
mov [rbx], r15
mov eax, r12d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long to_utf32_buf(long long a1, long long a2, long long *a3)
{
long long v3; // rax
int v6; // ebp
long long v7; // rsi
long long v8; // r15
long long v9; // r12
int v11[13]; // [rsp+0h] [rbp-34h] BYREF
v11[0] = HIDWORD(v3);
v6 = *(_DWORD *)(a2 + 4) & 0x7FFFFFFF;
v7 = 1LL;
if ( v6 >= 2 )
v7 = (unsigned int)v6;
v8 = js_malloc(a1, 4 * v7);
if ( v8 )
{
v11[0] = 0;
v9 = 0LL;
if ( v6 )
{
do
*(_DWORD *)(v8 + 4 * v9++) = string_getc(a2, v11);
while ( v11[0] < v6 );
}
}
else
{
LODWORD(v9) = -1;
}
*a3 = v8;
return (unsigned int)v9;
}
| to_utf32_buf:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV EBP,0x7fffffff
AND EBP,dword ptr [RSI + 0x4]
CMP EBP,0x2
PUSH 0x1
POP RSI
CMOVGE ESI,EBP
SHL RSI,0x2
CALL 0x0010f082
MOV R15,RAX
TEST RAX,RAX
JZ 0x00112ac5
AND dword ptr [RSP + 0x4],0x0
XOR R12D,R12D
TEST EBP,EBP
JZ 0x00112ac9
LEA R13,[RSP + 0x4]
LAB_00112aab:
MOV RDI,R14
MOV RSI,R13
CALL 0x00150609
MOV dword ptr [R15 + R12*0x4],EAX
INC R12
CMP dword ptr [RSP + 0x4],EBP
JL 0x00112aab
JMP 0x00112ac9
LAB_00112ac5:
PUSH -0x1
POP R12
LAB_00112ac9:
MOV qword ptr [RBX],R15
MOV EAX,R12D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong to_utf32_buf(int8 param_1,long param_2,long *param_3)
{
uint in_EAX;
int4 uVar1;
long lVar2;
uint uVar3;
ulong uVar4;
int8 uStack_38;
uVar3 = *(uint *)(param_2 + 4) & 0x7fffffff;
uVar4 = 1;
if (1 < uVar3) {
uVar4 = (ulong)uVar3;
}
uStack_38._0_4_ = in_EAX;
lVar2 = js_malloc(param_1,uVar4 << 2);
if (lVar2 == 0) {
uVar4 = 0xffffffffffffffff;
}
else {
uStack_38 = (ulong)(uint)uStack_38;
uVar4 = 0;
if (uVar3 != 0) {
do {
uVar1 = string_getc(param_2,(long)&uStack_38 + 4);
*(int4 *)(lVar2 + uVar4 * 4) = uVar1;
uVar4 = uVar4 + 1;
} while (uStack_38._4_4_ < (int)uVar3);
}
}
*param_3 = lVar2;
return uVar4 & 0xffffffff;
}
| |
29,760 | mi_cmp_dynamic_unique | eloqsql/storage/myisam/mi_dynrec.c | int _mi_cmp_dynamic_unique(MI_INFO *info, MI_UNIQUEDEF *def,
const uchar *record, my_off_t pos)
{
uchar *rec_buff,*old_record;
int error;
DBUG_ENTER("_mi_cmp_dynamic_unique");
if (!(old_record=my_alloca(info->s->base.reclength)))
DBUG_RETURN(1);
/* Don't let the compare destroy blobs that may be in use */
rec_buff=info->rec_buff;
if (info->s->base.blobs)
info->rec_buff=0;
error=_mi_read_dynamic_record(info,pos,old_record);
if (!error)
error=mi_unique_comp(def, record, old_record, def->null_are_equal);
if (info->s->base.blobs)
{
my_free(mi_get_rec_buff_ptr(info, info->rec_buff));
info->rec_buff=rec_buff;
}
my_afree(old_record);
DBUG_RETURN(error);
} | O3 | c | mi_cmp_dynamic_unique:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r13
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x140(%rax), %rsi
xorl %edi, %edi
xorl %edx, %edx
callq 0x9fdb5
testq %rax, %rax
je 0x79315
movq %rax, %r14
movq (%rbx), %rax
movq 0x120(%rbx), %rcx
movq %rcx, -0x30(%rbp)
cmpl $0x0, 0x188(%rax)
je 0x792a3
movq $0x0, 0x120(%rbx)
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x78f40
movl $0xffffffff, %r13d # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x792d2
movsbl 0x3(%r12), %ecx
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x8774e
movl %eax, %r13d
movq (%rbx), %rax
cmpl $0x0, 0x188(%rax)
je 0x7930b
movq 0x120(%rbx), %rcx
leaq -0x18(%rcx), %rdi
testq %rcx, %rcx
cmoveq %rcx, %rdi
testb $0x1, 0x318(%rax)
cmoveq %rcx, %rdi
callq 0x9ffe2
movq -0x30(%rbp), %rax
movq %rax, 0x120(%rbx)
movq %r14, %rdi
callq 0x9ffe2
jmp 0x7931b
movl $0x1, %r13d
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _mi_cmp_dynamic_unique:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r13, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
mov rax, [rdi]
mov rsi, [rax+140h]
xor edi, edi
xor edx, edx
call my_malloc
test rax, rax
jz loc_79315
mov r14, rax
mov rax, [rbx]
mov rcx, [rbx+120h]
mov [rbp+var_30], rcx
cmp dword ptr [rax+188h], 0
jz short loc_792A3
mov qword ptr [rbx+120h], 0
loc_792A3:
mov rdi, rbx
mov rsi, r13
mov rdx, r14
call _mi_read_dynamic_record
mov r13d, 0FFFFFFFFh
test eax, eax
jnz short loc_792D2
movsx ecx, byte ptr [r12+3]
mov rdi, r12
mov rsi, r15
mov rdx, r14
call mi_unique_comp
mov r13d, eax
loc_792D2:
mov rax, [rbx]
cmp dword ptr [rax+188h], 0
jz short loc_7930B
mov rcx, [rbx+120h]
lea rdi, [rcx-18h]
test rcx, rcx
cmovz rdi, rcx
test byte ptr [rax+318h], 1
cmovz rdi, rcx
call my_free
mov rax, [rbp+var_30]
mov [rbx+120h], rax
loc_7930B:
mov rdi, r14
call my_free
jmp short loc_7931B
loc_79315:
mov r13d, 1
loc_7931B:
mov eax, r13d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mi_cmp_dynamic_unique(_QWORD *a1, long long a2, long long a3, long long a4)
{
_WORD *v7; // rax
_WORD *v8; // r14
int dynamic_record; // eax
unsigned int v10; // r13d
long long v11; // rax
long long v12; // rcx
long long v13; // rdi
long long v15; // [rsp+0h] [rbp-30h]
v7 = (_WORD *)my_malloc(0LL, *(_QWORD *)(*a1 + 320LL), 0LL);
if ( v7 )
{
v8 = v7;
v15 = a1[36];
if ( *(_DWORD *)(*a1 + 392LL) )
a1[36] = 0LL;
dynamic_record = mi_read_dynamic_record(a1, a4, v7);
v10 = -1;
if ( !dynamic_record )
v10 = mi_unique_comp(a2, a3, v8, (unsigned int)*(char *)(a2 + 3));
v11 = *a1;
if ( *(_DWORD *)(*a1 + 392LL) )
{
v12 = a1[36];
v13 = v12 - 24;
if ( !v12 )
v13 = 0LL;
if ( (*(_BYTE *)(v11 + 792) & 1) == 0 )
v13 = a1[36];
my_free(v13);
a1[36] = v15;
}
my_free(v8);
}
else
{
return 1;
}
return v10;
}
| _mi_cmp_dynamic_unique:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R13,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RAX + 0x140]
XOR EDI,EDI
XOR EDX,EDX
CALL 0x0019fdb5
TEST RAX,RAX
JZ 0x00179315
MOV R14,RAX
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x120]
MOV qword ptr [RBP + -0x30],RCX
CMP dword ptr [RAX + 0x188],0x0
JZ 0x001792a3
MOV qword ptr [RBX + 0x120],0x0
LAB_001792a3:
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R14
CALL 0x00178f40
MOV R13D,0xffffffff
TEST EAX,EAX
JNZ 0x001792d2
MOVSX ECX,byte ptr [R12 + 0x3]
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
CALL 0x0018774e
MOV R13D,EAX
LAB_001792d2:
MOV RAX,qword ptr [RBX]
CMP dword ptr [RAX + 0x188],0x0
JZ 0x0017930b
MOV RCX,qword ptr [RBX + 0x120]
LEA RDI,[RCX + -0x18]
TEST RCX,RCX
CMOVZ RDI,RCX
TEST byte ptr [RAX + 0x318],0x1
CMOVZ RDI,RCX
CALL 0x0019ffe2
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBX + 0x120],RAX
LAB_0017930b:
MOV RDI,R14
CALL 0x0019ffe2
JMP 0x0017931b
LAB_00179315:
MOV R13D,0x1
LAB_0017931b:
MOV EAX,R13D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int4 _mi_cmp_dynamic_unique(long *param_1,long param_2,int8 param_3,int8 param_4)
{
long lVar1;
long lVar2;
int iVar3;
int4 uVar4;
long lVar5;
long lVar6;
lVar5 = my_malloc(0,*(int8 *)(*param_1 + 0x140),0);
if (lVar5 == 0) {
uVar4 = 1;
}
else {
lVar1 = param_1[0x24];
if (*(int *)(*param_1 + 0x188) != 0) {
param_1[0x24] = 0;
}
iVar3 = _mi_read_dynamic_record(param_1,param_4,lVar5);
uVar4 = 0xffffffff;
if (iVar3 == 0) {
uVar4 = mi_unique_comp(param_2,param_3,lVar5,(int)*(char *)(param_2 + 3));
}
if (*(int *)(*param_1 + 0x188) != 0) {
lVar2 = param_1[0x24];
lVar6 = lVar2 + -0x18;
if (lVar2 == 0) {
lVar6 = lVar2;
}
if ((*(byte *)(*param_1 + 0x318) & 1) == 0) {
lVar6 = lVar2;
}
my_free(lVar6);
param_1[0x24] = lVar1;
}
my_free(lVar5);
}
return uVar4;
}
| |
29,761 | div_by_z | corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/vect.c | static void div_by_z(limb_t val[])
{
static const limb_t z[] = { TO_LIMB_T(0xd201000000010000) };
size_t loop, z_len = sizeof(z)/sizeof(z[0]);
limb_t d_lo, d_hi;
d_lo = (sizeof(z) == sizeof(limb_t)) ? 0 : z[z_len - 2];
d_hi = z[z_len - 1];
for (loop = z_len, z_len--; loop--;) {
limb_t q = div_3_limbs(val + loop + z_len, d_lo, d_hi);
(void)quot_rem_64(val + loop, z, q);
}
/* remainder is in low half of val[], quotient is in high */
} | O0 | c | div_by_z:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq $0x1, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x18(%rbp), %rcx
subq $0x1, %rcx
leaq 0x1f195(%rip), %rax # 0x55c20
movq (%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x10(%rbp)
cmpq $0x0, %rax
je 0x36b08
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x18(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x48ca0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x30(%rbp), %rdx
leaq 0x1f11f(%rip), %rsi # 0x55c20
callq 0x48d60
jmp 0x36aa7
addq $0x30, %rsp
popq %rbp
retq
nop
| div_by_z:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_18], 1
mov [rbp+var_20], 0
mov rcx, [rbp+var_18]
sub rcx, 1
lea rax, div_by_z_z
mov rax, [rax+rcx*8]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_10], rax
mov rax, [rbp+var_18]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_18], rax
loc_36AA7:
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_10], rcx
cmp rax, 0
jz short loc_36B08
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
shl rax, 3
add rdi, rax
mov rax, [rbp+var_18]
shl rax, 3
add rdi, rax
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
call div_3_limbs
mov [rbp+var_30], rax
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
shl rax, 3
add rdi, rax
mov rdx, [rbp+var_30]
lea rsi, div_by_z_z
call quot_rem_64
jmp short loc_36AA7
loc_36B08:
add rsp, 30h
pop rbp
retn
| long long div_by_z(long long a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-30h]
long long i; // [rsp+20h] [rbp-10h]
for ( i = 1LL; ; quot_rem_64(8 * i + a1, div_by_z_z, v2) )
{
result = i--;
if ( !result )
break;
v2 = div_3_limbs(8 * i + a1, 0LL, div_by_z_z[0]);
}
return result;
}
| div_by_z:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x18],0x1
MOV qword ptr [RBP + -0x20],0x0
MOV RCX,qword ptr [RBP + -0x18]
SUB RCX,0x1
LEA RAX,[0x155c20]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x18],RAX
LAB_00136aa7:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x10],RCX
CMP RAX,0x0
JZ 0x00136b08
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
SHL RAX,0x3
ADD RDI,RAX
MOV RAX,qword ptr [RBP + -0x18]
SHL RAX,0x3
ADD RDI,RAX
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00148ca0
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
SHL RAX,0x3
ADD RDI,RAX
MOV RDX,qword ptr [RBP + -0x30]
LEA RSI,[0x155c20]
CALL 0x00148d60
JMP 0x00136aa7
LAB_00136b08:
ADD RSP,0x30
POP RBP
RET
|
void div_by_z(long param_1)
{
int8 uVar1;
int8 uVar2;
long lVar3;
long local_18;
uVar1 = div_by_z_z;
local_18 = 1;
while( true ) {
lVar3 = local_18 + -1;
if (local_18 == 0) break;
uVar2 = div_3_limbs(param_1 + lVar3 * 8,0,uVar1);
quot_rem_64(param_1 + lVar3 * 8,&div_by_z_z,uVar2);
local_18 = lVar3;
}
return;
}
| |
29,762 | SchemaConverter::format_grammar[abi:cxx11]() | monkey531[P]llama/common/json-schema-to-grammar.cpp | std::string format_grammar() {
std::stringstream ss;
for (const auto & kv : _rules) {
ss << kv.first << " ::= " << kv.second << std::endl;
}
return ss.str();
} | O2 | cpp | SchemaConverter::format_grammar[abi:cxx11]():
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x190, %rsp # imm = 0x190
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x22590
movq 0x40(%r14), %r12
addq $0x30, %r14
leaq 0x18(%rsp), %r15
leaq 0x15220(%rip), %r13 # 0xa5a1c
cmpq %r14, %r12
je 0x9083b
leaq 0x20(%r12), %rsi
movq %r15, %rdi
callq 0x226d0
movq %rax, %rdi
movq %r13, %rsi
callq 0x227c0
leaq 0x40(%r12), %rsi
movq %rax, %rdi
callq 0x226d0
movq %rax, %rdi
callq 0x223d0
movq %r12, %rdi
callq 0x22570
movq %rax, %r12
jmp 0x907fc
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x22c00
leaq 0x8(%rsp), %rdi
callq 0x225e0
movq %rbx, %rax
addq $0x190, %rsp # imm = 0x190
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x90868
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x225e0
movq %rbx, %rdi
callq 0x22da0
nop
| _ZN15SchemaConverter14format_grammarB5cxx11Ev:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 190h
mov r14, rsi
mov rbx, rdi
lea rdi, [rsp+1B8h+var_1B0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
mov r12, [r14+40h]
add r14, 30h ; '0'
lea r15, [rsp+1B8h+var_1A0]
lea r13, asc_A5A1C; " ::= "
loc_907FC:
cmp r12, r14
jz short loc_9083B
lea rsi, [r12+20h]
mov rdi, r15
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rdi, rax
mov rsi, r13
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
lea rsi, [r12+40h]
mov rdi, rax
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rdi, rax
call __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_; std::endl<char,std::char_traits<char>>(std::ostream &)
mov rdi, r12
call __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base *)
mov r12, rax
jmp short loc_907FC
loc_9083B:
lea rsi, [rsp+1B8h+var_198]
mov rdi, rbx
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
lea rdi, [rsp+1B8h+var_1B0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
mov rax, rbx
add rsp, 190h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
jmp short $+2
loc_90868:
mov rbx, rax
lea rdi, [rsp+arg_0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
mov rdi, rbx
call __Unwind_Resume
| long long SchemaConverter::format_grammar[abi:cxx11](long long a1, long long a2)
{
long long i; // r12
long long v3; // rax
long long v4; // rax
long long v5; // rax
_BYTE v7[16]; // [rsp+8h] [rbp-1B0h] BYREF
_BYTE v8[8]; // [rsp+18h] [rbp-1A0h] BYREF
_BYTE v9[408]; // [rsp+20h] [rbp-198h] BYREF
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v7);
for ( i = *(_QWORD *)(a2 + 64); i != a2 + 48; i = std::_Rb_tree_increment(i) )
{
v3 = std::operator<<<char>(v8, i + 32);
v4 = std::operator<<<std::char_traits<char>>(v3, " ::= ");
v5 = std::operator<<<char>(v4, i + 64);
std::endl<char,std::char_traits<char>>(v5);
}
std::stringbuf::str(a1, v9);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(v7);
return a1;
}
| format_grammar[abi:cxx11]:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x190
MOV R14,RSI
MOV RBX,RDI
LEA RDI,[RSP + 0x8]
CALL 0x00122590
MOV R12,qword ptr [R14 + 0x40]
ADD R14,0x30
LEA R15,[RSP + 0x18]
LEA R13,[0x1a5a1c]
LAB_001907fc:
CMP R12,R14
JZ 0x0019083b
LEA RSI,[R12 + 0x20]
LAB_00190806:
MOV RDI,R15
CALL 0x001226d0
MOV RDI,RAX
MOV RSI,R13
CALL 0x001227c0
LEA RSI,[R12 + 0x40]
MOV RDI,RAX
CALL 0x001226d0
MOV RDI,RAX
CALL 0x001223d0
MOV RDI,R12
CALL 0x00122570
MOV R12,RAX
JMP 0x001907fc
LAB_0019083b:
LEA RSI,[RSP + 0x20]
LAB_00190840:
MOV RDI,RBX
CALL 0x00122c00
LAB_00190848:
LEA RDI,[RSP + 0x8]
CALL 0x001225e0
MOV RAX,RBX
ADD RSP,0x190
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* SchemaConverter::format_grammar[abi:cxx11]() */
void SchemaConverter::format_grammar_abi_cxx11_(void)
{
ostream *poVar1;
_Rb_tree_node_base *p_Var2;
long in_RSI;
stringstream local_1b0 [16];
ostream local_1a0 [376];
std::__cxx11::stringstream::stringstream(local_1b0);
for (p_Var2 = *(_Rb_tree_node_base **)(in_RSI + 0x40);
p_Var2 != (_Rb_tree_node_base *)(in_RSI + 0x30);
p_Var2 = (_Rb_tree_node_base *)std::_Rb_tree_increment(p_Var2)) {
/* try { // try from 00190806 to 0019082d has its CatchHandler @ 00190868 */
poVar1 = std::operator<<(local_1a0,(string *)(p_Var2 + 0x20));
poVar1 = std::operator<<(poVar1," ::= ");
poVar1 = std::operator<<(poVar1,(string *)(p_Var2 + 0x40));
std::endl<char,std::char_traits<char>>(poVar1);
}
/* try { // try from 00190840 to 00190847 has its CatchHandler @ 00190866 */
std::__cxx11::stringbuf::str();
std::__cxx11::stringstream::~stringstream(local_1b0);
return;
}
| |
29,763 | SchemaConverter::format_grammar[abi:cxx11]() | monkey531[P]llama/common/json-schema-to-grammar.cpp | std::string format_grammar() {
std::stringstream ss;
for (const auto & kv : _rules) {
ss << kv.first << " ::= " << kv.second << std::endl;
}
return ss.str();
} | O3 | cpp | SchemaConverter::format_grammar[abi:cxx11]():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp # imm = 0x188
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %rdi
callq 0x19570
movq 0x40(%r14), %r15
addq $0x30, %r14
cmpq %r14, %r15
je 0xaa263
leaq 0x10(%rsp), %r12
leaq 0x1882f(%rip), %r13 # 0xc2a25
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
movq %r12, %rdi
callq 0x198d0
movq %rax, %rbp
movl $0x5, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x198d0
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rdx
movq %rbp, %rdi
callq 0x198d0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x19790
movsbl %al, %esi
movq %rbp, %rdi
callq 0x19040
movq %rax, %rdi
callq 0x19520
movq %r15, %rdi
callq 0x19550
movq %rax, %r15
cmpq %r14, %rax
jne 0xaa1f6
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x19c10
movq 0x46cc1(%rip), %rsi # 0xf0f38
movq %rsp, %rdi
callq 0x195b0
leaq 0x80(%rsp), %rdi
callq 0x19240
movq %rbx, %rax
addq $0x188, %rsp # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xaa2a3
movq %rax, %rbx
movq 0x46c8b(%rip), %rsi # 0xf0f38
movq %rsp, %rdi
callq 0x195b0
leaq 0x80(%rsp), %rdi
callq 0x19240
movq %rbx, %rdi
callq 0x19dc0
| _ZN15SchemaConverter14format_grammarB5cxx11Ev:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 188h
mov r14, rsi
mov rbx, rdi
mov rdi, rsp
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
mov r15, [r14+40h]
add r14, 30h ; '0'
cmp r15, r14
jz short loc_AA263
lea r12, [rsp+1B8h+var_1A8]
lea r13, asc_C2A25; " ::= "
loc_AA1F6:
mov rsi, [r15+20h]
mov rdx, [r15+28h]
mov rdi, r12
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rbp, rax
mov edx, 5
mov rdi, rax
mov rsi, 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 rsi, [r15+40h]
mov rdx, [r15+48h]
mov rdi, rbp
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rbp, rax
mov rax, [rax]
mov rdi, [rax-18h]
add rdi, rbp
mov esi, 0Ah
call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char)
movsx esi, al; char
mov rdi, rbp; this
call __ZNSo3putEc; std::ostream::put(char)
mov rdi, rax; this
call __ZNSo5flushEv; std::ostream::flush(void)
mov rdi, r15
call __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base *)
mov r15, rax
cmp rax, r14
jnz short loc_AA1F6
loc_AA263:
lea rsi, [rsp+1B8h+var_1A0]
mov rdi, rbx
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
mov rdi, rsp
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+1B8h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rax, rbx
add rsp, 188h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_AA2A3:
mov rbx, rax
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
mov rdi, rsp
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+arg_78]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
| long long SchemaConverter::format_grammar[abi:cxx11](long long a1, long long a2)
{
_QWORD *i; // r15
long long v3; // rbp
std::ostream *v4; // rbp
char v5; // al
std::ostream *v6; // rax
_BYTE v8[16]; // [rsp+0h] [rbp-1B8h] BYREF
_BYTE v9[8]; // [rsp+10h] [rbp-1A8h] BYREF
_BYTE v10[104]; // [rsp+18h] [rbp-1A0h] BYREF
_BYTE v11[312]; // [rsp+80h] [rbp-138h] BYREF
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v8);
for ( i = *(_QWORD **)(a2 + 64); i != (_QWORD *)(a2 + 48); i = (_QWORD *)std::_Rb_tree_increment(i) )
{
v3 = std::__ostream_insert<char,std::char_traits<char>>(v9, i[4], i[5]);
std::__ostream_insert<char,std::char_traits<char>>(v3, " ::= ", 5LL);
v4 = (std::ostream *)std::__ostream_insert<char,std::char_traits<char>>(v3, i[8], i[9]);
v5 = std::ios::widen((char *)v4 + *(_QWORD *)(*(_QWORD *)v4 - 24LL), 10LL);
v6 = (std::ostream *)std::ostream::put(v4, v5);
std::ostream::flush(v6);
}
std::stringbuf::str(a1, v10);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(
v8,
&`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>);
std::ios_base::~ios_base((std::ios_base *)v11);
return a1;
}
| format_grammar[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x188
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSP
CALL 0x00119570
MOV R15,qword ptr [R14 + 0x40]
ADD R14,0x30
CMP R15,R14
JZ 0x001aa263
LEA R12,[RSP + 0x10]
LEA R13,[0x1c2a25]
LAB_001aa1f6:
MOV RSI,qword ptr [R15 + 0x20]
MOV RDX,qword ptr [R15 + 0x28]
LAB_001aa1fe:
MOV RDI,R12
CALL 0x001198d0
MOV RBP,RAX
MOV EDX,0x5
MOV RDI,RAX
MOV RSI,R13
CALL 0x001198d0
MOV RSI,qword ptr [R15 + 0x40]
MOV RDX,qword ptr [R15 + 0x48]
MOV RDI,RBP
CALL 0x001198d0
MOV RBP,RAX
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBP
MOV ESI,0xa
CALL 0x00119790
MOVSX ESI,AL
MOV RDI,RBP
CALL 0x00119040
MOV RDI,RAX
CALL 0x00119520
MOV RDI,R15
CALL 0x00119550
MOV R15,RAX
CMP RAX,R14
JNZ 0x001aa1f6
LAB_001aa263:
LEA RSI,[RSP + 0x18]
LAB_001aa268:
MOV RDI,RBX
CALL 0x00119c10
LAB_001aa270:
MOV RSI,qword ptr [0x001f0f38]
MOV RDI,RSP
CALL 0x001195b0
LEA RDI,[RSP + 0x80]
CALL 0x00119240
MOV RAX,RBX
ADD RSP,0x188
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* SchemaConverter::format_grammar[abi:cxx11]() */
void SchemaConverter::format_grammar_abi_cxx11_(void)
{
ostream *poVar1;
_Rb_tree_node_base *p_Var2;
long in_RSI;
stringstream asStack_1b8 [16];
ostream local_1a8 [112];
ios_base local_138 [264];
std::__cxx11::stringstream::stringstream(asStack_1b8);
p_Var2 = *(_Rb_tree_node_base **)(in_RSI + 0x40);
if (p_Var2 != (_Rb_tree_node_base *)(in_RSI + 0x30)) {
do {
/* try { // try from 001aa1fe to 001aa252 has its CatchHandler @ 001aa2a3 */
poVar1 = std::__ostream_insert<char,std::char_traits<char>>
(local_1a8,*(char **)(p_Var2 + 0x20),*(long *)(p_Var2 + 0x28));
std::__ostream_insert<char,std::char_traits<char>>(poVar1," ::= ",5);
poVar1 = std::__ostream_insert<char,std::char_traits<char>>
(poVar1,*(char **)(p_Var2 + 0x40),*(long *)(p_Var2 + 0x48));
std::ios::widen((char)*(int8 *)(*(long *)poVar1 + -0x18) + (char)poVar1);
std::ostream::put((char)poVar1);
std::ostream::flush();
p_Var2 = (_Rb_tree_node_base *)std::_Rb_tree_increment(p_Var2);
} while (p_Var2 != (_Rb_tree_node_base *)(in_RSI + 0x30));
}
/* try { // try from 001aa268 to 001aa26f has its CatchHandler @ 001aa2a1 */
std::__cxx11::stringbuf::str();
std::__cxx11::stringstream::~stringstream(asStack_1b8);
std::ios_base::~ios_base(local_138);
return;
}
| |
29,764 | expand_tilde | eloqsql/mysys/mf_pack.c | static char * expand_tilde(char **path)
{
if (path[0][0] == FN_LIBCHAR)
return home_dir; /* ~/ expanded to home */
#ifdef HAVE_GETPWNAM
{
char *str,save;
struct passwd *user_entry;
if (!(str=strchr(*path,FN_LIBCHAR)))
str=strend(*path);
save= *str; *str= '\0';
user_entry=getpwnam(*path);
*str=save;
endpwent();
if (user_entry)
{
*path=str;
return user_entry->pw_dir;
}
}
#endif
return (char *) 0;
} | O0 | c | expand_tilde:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
jne 0xeacee
leaq 0xb99976(%rip), %rax # 0xc84658
movq (%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0xead6f
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movl $0x2f, %esi
callq 0x2a400
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0xead19
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x14f6f0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movb (%rax), %al
movb %al, -0x19(%rbp)
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x2a560
movq %rax, -0x28(%rbp)
movb -0x19(%rbp), %cl
movq -0x18(%rbp), %rax
movb %cl, (%rax)
callq 0x2a840
cmpq $0x0, -0x28(%rbp)
je 0xead67
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0xead6f
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| expand_tilde:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
jnz short loc_EACEE
lea rax, home_dir
mov rax, [rax]
mov [rbp+var_8], rax
jmp loc_EAD6F
loc_EACEE:
mov rax, [rbp+var_10]
mov rdi, [rax]
mov esi, 2Fh ; '/'
call _strchr
mov [rbp+var_18], rax
cmp rax, 0
jnz short loc_EAD19
mov rax, [rbp+var_10]
mov rdi, [rax]
call strend
mov [rbp+var_18], rax
loc_EAD19:
mov rax, [rbp+var_18]
mov al, [rax]
mov [rbp+var_19], al
mov rax, [rbp+var_18]
mov byte ptr [rax], 0
mov rax, [rbp+var_10]
mov rdi, [rax]
call _getpwnam
mov [rbp+var_28], rax
mov cl, [rbp+var_19]
mov rax, [rbp+var_18]
mov [rax], cl
call _endpwent
cmp [rbp+var_28], 0
jz short loc_EAD67
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_28]
mov rax, [rax+20h]
mov [rbp+var_8], rax
jmp short loc_EAD6F
loc_EAD67:
mov [rbp+var_8], 0
loc_EAD6F:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| long long expand_tilde(char **a1)
{
long long v2; // [rsp+8h] [rbp-28h]
char v3; // [rsp+17h] [rbp-19h]
char *v4; // [rsp+18h] [rbp-18h]
if ( **a1 == 47 )
return home_dir;
v4 = (char *)strchr(*a1, 47LL);
if ( !v4 )
v4 = (char *)strend(*a1);
v3 = *v4;
*v4 = 0;
v2 = getpwnam(*a1);
*v4 = v3;
endpwent();
if ( !v2 )
return 0LL;
*a1 = v4;
return *(_QWORD *)(v2 + 32);
}
| expand_tilde:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
JNZ 0x001eacee
LEA RAX,[0xd84658]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001ead6f
LAB_001eacee:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV ESI,0x2f
CALL 0x0012a400
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JNZ 0x001ead19
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x0024f6f0
MOV qword ptr [RBP + -0x18],RAX
LAB_001ead19:
MOV RAX,qword ptr [RBP + -0x18]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x19],AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x0012a560
MOV qword ptr [RBP + -0x28],RAX
MOV CL,byte ptr [RBP + -0x19]
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],CL
CALL 0x0012a840
CMP qword ptr [RBP + -0x28],0x0
JZ 0x001ead67
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001ead6f
LAB_001ead67:
MOV qword ptr [RBP + -0x8],0x0
LAB_001ead6f:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
char * expand_tilde(int8 *param_1)
{
char cVar1;
passwd *ppVar2;
char *local_20;
char *local_10;
if (*(char *)*param_1 == '/') {
local_10 = home_dir;
}
else {
local_20 = strchr((char *)*param_1,0x2f);
if (local_20 == (char *)0x0) {
local_20 = (char *)strend(*param_1);
}
cVar1 = *local_20;
*local_20 = '\0';
ppVar2 = getpwnam((char *)*param_1);
*local_20 = cVar1;
endpwent();
if (ppVar2 == (passwd *)0x0) {
local_10 = (char *)0x0;
}
else {
*param_1 = local_20;
local_10 = ppVar2->pw_dir;
}
}
return local_10;
}
| |
29,765 | minja::Parser::parseConstant() | monkey531[P]llama/common/minja.hpp | std::shared_ptr<Value> parseConstant() {
auto start = it;
consumeSpaces();
if (it == end) return nullptr;
if (*it == '"' || *it == '\'') {
auto str = parseString();
if (str) return std::make_shared<Value>(*str);
}
static std::regex prim_tok(R"(true\b|True\b|false\b|False\b|None\b)");
auto token = consumeToken(prim_tok);
if (!token.empty()) {
if (token == "true" || token == "True") return std::make_shared<Value>(true);
if (token == "false" || token == "False") return std::make_shared<Value>(false);
if (token == "None") return std::make_shared<Value>(nullptr);
throw std::runtime_error("Unknown constant token: " + token);
}
auto number = parseNumber(it, end);
if (!number.is_null()) return std::make_shared<Value>(number);
it = start;
return nullptr;
} | O2 | cpp | minja::Parser::parseConstant():
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rsi), %r12
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x62d24
movq 0x20(%r14), %rax
cmpq 0x18(%r14), %rax
je 0x6765d
movzbl (%rax), %eax
cmpl $0x27, %eax
je 0x67632
cmpl $0x22, %eax
jne 0x67670
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x6834a
movq (%r15), %rsi
testq %rsi, %rsi
je 0x67668
movq %rbx, %rdi
callq 0x683a0
movq %rsp, %rdi
callq 0x683be
jmp 0x67759
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
jmp 0x67759
movq %rsp, %rdi
callq 0x683be
leaq 0x98bb1(%rip), %rax # 0x100228
movb (%rax), %al
testb %al, %al
je 0x6778f
leaq 0x98b80(%rip), %rdx # 0x100208
movq %rsp, %r15
pushq $0x1
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x61e1a
cmpq $0x0, 0x8(%r15)
je 0x676d8
leaq 0x44b43(%rip), %rsi # 0xac1ea
movq %rsp, %rdi
callq 0x3af56
testb %al, %al
jne 0x676c6
leaq 0x4db9e(%rip), %rsi # 0xb5258
movq %rsp, %rdi
callq 0x3af56
testb %al, %al
je 0x67706
leaq 0x20(%rsp), %rsi
movb $0x1, (%rsi)
movq %rbx, %rdi
callq 0x683d8
jmp 0x67751
leaq 0x20(%r14), %r15
leaq 0x18(%r14), %rcx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x68414
cmpb $0x0, 0x20(%rsp)
je 0x6773e
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x686dd
jmp 0x67747
leaq 0x477c6(%rip), %rsi # 0xaeed3
movq %rsp, %rdi
callq 0x3af56
testb %al, %al
jne 0x6772c
leaq 0x4db3d(%rip), %rsi # 0xb525d
movq %rsp, %rdi
callq 0x3af56
testb %al, %al
je 0x67769
leaq 0x20(%rsp), %rsi
movb $0x0, (%rsi)
movq %rbx, %rdi
callq 0x683d8
jmp 0x67751
movq %r12, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
leaq 0x20(%rsp), %rdi
callq 0x3ecc6
movq %rsp, %rdi
callq 0x242a8
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4df08(%rip), %rsi # 0xb5678
movq %rsp, %rdi
callq 0x3af56
testb %al, %al
je 0x677e4
leaq 0x20(%rsp), %rsi
andq $0x0, (%rsi)
movq %rbx, %rdi
callq 0x683f6
jmp 0x67751
leaq 0x98a92(%rip), %rdi # 0x100228
callq 0x240b0
testl %eax, %eax
je 0x67681
leaq 0x98a5e(%rip), %rdi # 0x100208
leaq 0x4dea2(%rip), %rsi # 0xb5653
pushq $0x10
popq %rdx
callq 0x47dc4
leaq -0x1f7d6(%rip), %rdi # 0x47fea
leaq 0x98a41(%rip), %rsi # 0x100208
leaq 0x9818a(%rip), %rdx # 0xff958
callq 0x237c0
leaq 0x98a4e(%rip), %rdi # 0x100228
callq 0x235e0
jmp 0x67681
pushq $0x10
popq %rdi
callq 0x23470
movq %rax, %r14
leaq 0x4de87(%rip), %rsi # 0xb567d
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x3b0bc
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x23ed0
xorl %ebp, %ebp
movq 0x977cc(%rip), %rsi # 0xfefe8
movq 0x97725(%rip), %rdx # 0xfef48
movq %r14, %rdi
callq 0x23fb0
movq %rax, %rbx
leaq 0x989f3(%rip), %rdi # 0x100228
callq 0x235d0
jmp 0x6788a
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x242a8
testb %bpl, %bpl
jne 0x67853
jmp 0x67875
movq %rax, %rbx
movq %r14, %rdi
callq 0x23690
jmp 0x67875
jmp 0x67872
jmp 0x67872
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3ecc6
jmp 0x67875
jmp 0x67872
movq %rax, %rbx
movq %rsp, %rdi
callq 0x242a8
jmp 0x6788a
movq %rax, %rbx
movq %rsp, %rdi
callq 0x683be
movq %rbx, %rdi
callq 0x24030
| _ZN5minja6Parser13parseConstantEv:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 40h
mov r14, rsi
mov rbx, rdi
mov r12, [rsi+20h]
push 1
pop rsi
mov rdi, r14
call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling)
mov rax, [r14+20h]
cmp rax, [r14+18h]
jz short loc_6765D
movzx eax, byte ptr [rax]
cmp eax, 27h ; '''
jz short loc_67632
cmp eax, 22h ; '"'
jnz short loc_67670
loc_67632:
mov r15, rsp
mov rdi, r15
mov rsi, r14
call _ZN5minja6Parser11parseStringB5cxx11Ev; minja::Parser::parseString(void)
mov rsi, [r15]
test rsi, rsi
jz short loc_67668
mov rdi, rbx
call _ZSt11make_sharedIN5minja5ValueEJRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::Value,std::string &>(std::string &)
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
jmp loc_67759
loc_6765D:
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
jmp loc_67759
loc_67668:
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
loc_67670:
lea rax, _ZGVZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; `guard variable for'minja::Parser::parseConstant(void)::prim_tok
mov al, [rax]
test al, al
jz loc_6778F
loc_67681:
lea rdx, _ZZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; minja::Parser::parseConstant(void)::prim_tok
mov r15, rsp
push 1
pop rcx
mov rdi, r15
mov rsi, r14
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
cmp qword ptr [r15+8], 0
jz short loc_676D8
lea rsi, aTrue; "true"
mov rdi, rsp
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jnz short loc_676C6
lea rsi, aTrue_0; "True"
mov rdi, rsp
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jz short loc_67706
loc_676C6:
lea rsi, [rsp+68h+var_48]
mov byte ptr [rsi], 1
mov rdi, rbx
call _ZSt11make_sharedIN5minja5ValueEJbEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::Value,bool>(bool &&)
jmp short loc_67751
loc_676D8:
lea r15, [r14+20h]
lea rcx, [r14+18h]
lea rdi, [rsp+68h+var_48]
mov rsi, r14
mov rdx, r15
call _ZN5minja6Parser11parseNumberERN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKSB_; minja::Parser::parseNumber(__gnu_cxx::__normal_iterator<char const*,std::string> &,__gnu_cxx::__normal_iterator<char const*,std::string> const&)
cmp [rsp+68h+var_48], 0
jz short loc_6773E
lea rsi, [rsp+68h+var_48]
mov rdi, rbx
call _ZSt11make_sharedIN5minja5ValueEJRN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::Value,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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 loc_67747
loc_67706:
lea rsi, aAdvancedOption+0ABh; "false"
mov rdi, rsp
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jnz short loc_6772C
lea rsi, aFalse; "False"
mov rdi, rsp
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jz short loc_67769
loc_6772C:
lea rsi, [rsp+68h+var_48]
mov byte ptr [rsi], 0
mov rdi, rbx
call _ZSt11make_sharedIN5minja5ValueEJbEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::Value,bool>(bool &&)
jmp short loc_67751
loc_6773E:
mov [r15], r12
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
loc_67747:
lea rdi, [rsp+68h+var_48]
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_67751:
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_67759:
mov rax, rbx
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_67769:
lea rsi, aNone_0; "None"
mov rdi, rsp
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jz short loc_677E4
lea rsi, [rsp+68h+var_48]
and qword ptr [rsi], 0
mov rdi, rbx
call _ZSt11make_sharedIN5minja5ValueEJDnEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::Value,decltype(nullptr)>(decltype(nullptr) &&)
jmp short loc_67751
loc_6778F:
lea rdi, _ZGVZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_67681
lea rdi, _ZZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; minja::Parser::parseConstant(void)::prim_tok
lea rsi, aTrueBTrueBFals; "true\\b|True\\b|false\\b|False\\b|None"...
push 10h
pop rdx
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_67681
loc_677E4:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aUnknownConstan; "Unknown constant token: "
lea rdi, [rsp+68h+var_48]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
mov bpl, 1
lea rsi, [rsp+68h+var_48]
mov rdi, r14
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_6788A
mov rbx, rax
lea rdi, [rsp+68h+var_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_67853
jmp short loc_67875
mov rbx, rax
loc_67853:
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_67875
jmp short loc_67872
jmp short loc_67872
mov rbx, rax
lea rdi, [rsp+68h+var_48]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp short loc_67875
jmp short $+2
loc_67872:
mov rbx, rax
loc_67875:
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6788A
mov rbx, rax
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
loc_6788A:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseConstant(minja::Parser *this, long long a2)
{
long long v2; // r12
unsigned __int8 *v3; // rax
int v4; // eax
void *exception; // r14
_QWORD v7[4]; // [rsp+0h] [rbp-68h] BYREF
_QWORD v8[9]; // [rsp+20h] [rbp-48h] BYREF
v2 = *(_QWORD *)(a2 + 32);
minja::Parser::consumeSpaces(a2, 1);
v3 = *(unsigned __int8 **)(a2 + 32);
if ( v3 == *(unsigned __int8 **)(a2 + 24) )
{
*(_OWORD *)this = 0LL;
return this;
}
v4 = *v3;
if ( v4 == 39 || v4 == 34 )
{
minja::Parser::parseString[abi:cxx11](v7, a2);
if ( v7[0] )
{
std::make_shared<minja::Value,std::string &>(this);
std::unique_ptr<std::string>::~unique_ptr(v7);
return this;
}
std::unique_ptr<std::string>::~unique_ptr(v7);
}
if ( !(_BYTE)`guard variable for'minja::Parser::parseConstant(void)::prim_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseConstant(void)::prim_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseConstant(void)::prim_tok[abi:cxx11],
(long long)"true\\b|True\\b|false\\b|False\\b|None\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseConstant(void)::prim_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseConstant(void)::prim_tok[abi:cxx11]);
}
minja::Parser::consumeToken(v7, a2, (long long)&minja::Parser::parseConstant(void)::prim_tok[abi:cxx11], 1u);
if ( v7[1] )
{
if ( std::operator==<char>((long long)v7) || std::operator==<char>((long long)v7) )
{
LOBYTE(v8[0]) = 1;
std::make_shared<minja::Value,bool>(this, v8);
}
else if ( std::operator==<char>((long long)v7) || std::operator==<char>((long long)v7) )
{
LOBYTE(v8[0]) = 0;
std::make_shared<minja::Value,bool>(this, v8);
}
else
{
if ( !std::operator==<char>((long long)v7) )
{
exception = __cxa_allocate_exception(0x10uLL);
std::operator+<char>((long long)v8, (long long)"Unknown constant token: ", (long long)v7);
std::runtime_error::runtime_error(exception, v8);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v8[0] = 0LL;
std::make_shared<minja::Value,decltype(nullptr)>(this, v8);
}
}
else
{
minja::Parser::parseNumber(v8, a2, a2 + 32, a2 + 24);
if ( LOBYTE(v8[0]) )
{
std::make_shared<minja::Value,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &>(
this,
v8);
}
else
{
*(_QWORD *)(a2 + 32) = v2;
*(_OWORD *)this = 0LL;
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v8);
}
std::string::~string(v7);
return this;
}
| parseConstant:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV R14,RSI
MOV RBX,RDI
MOV R12,qword ptr [RSI + 0x20]
PUSH 0x1
POP RSI
MOV RDI,R14
CALL 0x00162d24
MOV RAX,qword ptr [R14 + 0x20]
CMP RAX,qword ptr [R14 + 0x18]
JZ 0x0016765d
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x27
JZ 0x00167632
CMP EAX,0x22
JNZ 0x00167670
LAB_00167632:
MOV R15,RSP
MOV RDI,R15
MOV RSI,R14
CALL 0x0016834a
MOV RSI,qword ptr [R15]
TEST RSI,RSI
JZ 0x00167668
LAB_00167648:
MOV RDI,RBX
CALL 0x001683a0
LAB_00167650:
MOV RDI,RSP
CALL 0x001683be
JMP 0x00167759
LAB_0016765d:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
JMP 0x00167759
LAB_00167668:
MOV RDI,RSP
CALL 0x001683be
LAB_00167670:
LEA RAX,[0x200228]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x0016778f
LAB_00167681:
LEA RDX,[0x200208]
MOV R15,RSP
PUSH 0x1
POP RCX
MOV RDI,R15
MOV RSI,R14
CALL 0x00161e1a
CMP qword ptr [R15 + 0x8],0x0
JZ 0x001676d8
LEA RSI,[0x1ac1ea]
MOV RDI,RSP
CALL 0x0013af56
TEST AL,AL
JNZ 0x001676c6
LEA RSI,[0x1b5258]
MOV RDI,RSP
CALL 0x0013af56
TEST AL,AL
JZ 0x00167706
LAB_001676c6:
LEA RSI,[RSP + 0x20]
MOV byte ptr [RSI],0x1
LAB_001676ce:
MOV RDI,RBX
CALL 0x001683d8
JMP 0x00167751
LAB_001676d8:
LEA R15,[R14 + 0x20]
LEA RCX,[R14 + 0x18]
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV RDX,R15
CALL 0x00168414
CMP byte ptr [RSP + 0x20],0x0
JZ 0x0016773e
LAB_001676f7:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x001686dd
JMP 0x00167747
LAB_00167706:
LEA RSI,[0x1aeed3]
MOV RDI,RSP
CALL 0x0013af56
TEST AL,AL
JNZ 0x0016772c
LEA RSI,[0x1b525d]
MOV RDI,RSP
CALL 0x0013af56
TEST AL,AL
JZ 0x00167769
LAB_0016772c:
LEA RSI,[RSP + 0x20]
MOV byte ptr [RSI],0x0
LAB_00167734:
MOV RDI,RBX
CALL 0x001683d8
JMP 0x00167751
LAB_0016773e:
MOV qword ptr [R15],R12
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
LAB_00167747:
LEA RDI,[RSP + 0x20]
CALL 0x0013ecc6
LAB_00167751:
MOV RDI,RSP
CALL 0x001242a8
LAB_00167759:
MOV RAX,RBX
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00167769:
LEA RSI,[0x1b5678]
MOV RDI,RSP
CALL 0x0013af56
TEST AL,AL
JZ 0x001677e4
LEA RSI,[RSP + 0x20]
AND qword ptr [RSI],0x0
LAB_00167785:
MOV RDI,RBX
CALL 0x001683f6
JMP 0x00167751
LAB_0016778f:
LEA RDI,[0x200228]
CALL 0x001240b0
TEST EAX,EAX
JZ 0x00167681
LAB_001677a3:
LEA RDI,[0x200208]
LEA RSI,[0x1b5653]
PUSH 0x10
POP RDX
CALL 0x00147dc4
LAB_001677b9:
LEA RDI,[0x147fea]
LEA RSI,[0x200208]
LEA RDX,[0x1ff958]
CALL 0x001237c0
LEA RDI,[0x200228]
CALL 0x001235e0
JMP 0x00167681
LAB_001677e4:
PUSH 0x10
POP RDI
CALL 0x00123470
MOV R14,RAX
LAB_001677ef:
LEA RSI,[0x1b567d]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x0013b0bc
MOV BPL,0x1
LAB_00167806:
LEA RSI,[RSP + 0x20]
MOV RDI,R14
CALL 0x00123ed0
XOR EBP,EBP
MOV RSI,qword ptr [0x001fefe8]
MOV RDX,qword ptr [0x001fef48]
MOV RDI,R14
CALL 0x00123fb0
|
/* minja::Parser::parseConstant() */
void minja::Parser::parseConstant(void)
{
char cVar1;
int8 uVar2;
bool bVar3;
int iVar4;
runtime_error *this;
__normal_iterator *in_RSI;
string *in_RDI;
long local_68;
long local_60;
ulong local_48 [4];
uVar2 = *(int8 *)(in_RSI + 0x20);
consumeSpaces();
if (*(char **)(in_RSI + 0x20) == *(char **)(in_RSI + 0x18)) {
*(int8 *)in_RDI = 0;
*(int8 *)(in_RDI + 8) = 0;
return;
}
cVar1 = **(char **)(in_RSI + 0x20);
if ((cVar1 == '\'') || (cVar1 == '\"')) {
parseString_abi_cxx11_();
if (local_68 != 0) {
/* try { // try from 00167648 to 0016764f has its CatchHandler @ 0016787f */
std::make_shared<minja::Value,std::__cxx11::string&>(in_RDI);
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_68);
return;
}
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_68);
}
if ((parseConstant()::prim_tok_abi_cxx11_ == '\0') &&
(iVar4 = __cxa_guard_acquire(&parseConstant()::prim_tok_abi_cxx11_), iVar4 != 0)) {
/* try { // try from 001677a3 to 001677b8 has its CatchHandler @ 0016782b */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseConstant()::prim_tok_abi_cxx11_,"true\\b|True\\b|false\\b|False\\b|None\\b",0x10
);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseConstant()::prim_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseConstant()::prim_tok_abi_cxx11_);
}
consumeToken(&local_68);
if (local_60 == 0) {
/* try { // try from 001676d8 to 001676ef has its CatchHandler @ 00167870 */
parseNumber((__normal_iterator *)local_48,in_RSI);
if (local_48[0]._0_1_ ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0) {
*(int8 *)(in_RSI + 0x20) = uVar2;
*(int8 *)in_RDI = 0;
*(int8 *)(in_RDI + 8) = 0;
}
else {
/* try { // try from 001676f7 to 00167703 has its CatchHandler @ 00167861 */
std::
make_shared<minja::Value,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&>
(in_RDI);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_48);
}
else {
bVar3 = std::operator==((string *)&local_68,"true");
if ((bVar3) || (bVar3 = std::operator==((string *)&local_68,"True"), bVar3)) {
local_48[0] = CONCAT71(local_48[0]._1_7_,1);
/* try { // try from 001676ce to 001676d5 has its CatchHandler @ 00167872 */
std::make_shared<minja::Value,bool>((bool *)in_RDI);
}
else {
bVar3 = std::operator==((string *)&local_68,"false");
if ((bVar3) || (bVar3 = std::operator==((string *)&local_68,"False"), bVar3)) {
local_48[0] = local_48[0] & 0xffffffffffffff00;
/* try { // try from 00167734 to 0016773b has its CatchHandler @ 0016785f */
std::make_shared<minja::Value,bool>((bool *)in_RDI);
}
else {
bVar3 = std::operator==((string *)&local_68,"None");
if (!bVar3) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001677ef to 00167802 has its CatchHandler @ 00167850 */
std::operator+((char *)local_48,(string *)"Unknown constant token: ");
/* try { // try from 00167806 to 0016782a has its CatchHandler @ 0016783c */
std::runtime_error::runtime_error(this,(string *)local_48);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001fefe8,PTR__runtime_error_001fef48);
}
local_48[0] = 0;
/* try { // try from 00167785 to 0016778c has its CatchHandler @ 0016785d */
std::make_shared<minja::Value,decltype(nullptr)>((_func_decltype_nullptr **)in_RDI);
}
}
}
std::__cxx11::string::~string((string *)&local_68);
return;
}
| |
29,766 | void reaction::ObserverGraph::resetNode<reaction::ObserverDataNode>(std::shared_ptr<reaction::ObserverDataNode>) | reaction/include/reaction/observerNode.h | void resetNode(std::shared_ptr<NodeType> node) {
if constexpr (std::is_same_v<typename NodeType::SourceType, DataNode>) {
for (auto dep : m_dataDependents[node]) {
m_dataObservers[dep].erase(node);
}
m_dataDependents[node].clear();
} else {
for (auto dep : m_actionDependents[node]) {
m_actionObservers[dep].erase(node);
}
m_actionDependents[node].clear();
}
} | O0 | c | void reaction::ObserverGraph::resetNode<reaction::ObserverDataNode>(std::shared_ptr<reaction::ObserverDataNode>):
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rsi, -0x58(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x50(%rbp)
callq 0x13120
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x13150
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0x13180
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x131b0
xorb $-0x1, %al
testb $0x1, %al
jne 0x127f4
jmp 0x1285e
leaq -0x20(%rbp), %rdi
callq 0x131e0
movq %rax, %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x68(%rbp)
callq 0x12890
movq -0x50(%rbp), %rdi
movq -0x68(%rbp), %rsi
addq $0x38, %rdi
callq 0x13210
movq %rax, -0x60(%rbp)
jmp 0x12824
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rdi
callq 0x13240
jmp 0x12833
leaq -0x38(%rbp), %rdi
callq 0xbed0
leaq -0x20(%rbp), %rdi
callq 0x13270
jmp 0x127df
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
callq 0xbed0
jmp 0x12879
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdi
callq 0x13120
movq %rax, %rdi
callq 0x132a0
addq $0x70, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x32a0
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_58], rsi
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
mov [rbp+var_50], rdi
call _ZNSt13unordered_mapISt10shared_ptrIN8reaction16ObserverDataNodeEESt13unordered_setIS3_St4hashIS3_ESt8equal_toIS3_ESaIS3_EES6_S8_SaISt4pairIKS3_SA_EEEixERSC_; std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>::operator[](std::shared_ptr<reaction::ObserverDataNode> const&)
mov [rbp+var_18], rax
mov rdi, [rbp+var_18]
call _ZNSt13unordered_setISt10shared_ptrIN8reaction16ObserverDataNodeEESt4hashIS3_ESt8equal_toIS3_ESaIS3_EE5beginEv; std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>::begin(void)
mov [rbp+var_20], rax
mov rdi, [rbp+var_18]
call _ZNSt13unordered_setISt10shared_ptrIN8reaction16ObserverDataNodeEESt4hashIS3_ESt8equal_toIS3_ESaIS3_EE3endEv; std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>::end(void)
mov [rbp+var_28], rax
loc_127DF:
lea rdi, [rbp+var_20]
lea rsi, [rbp+var_28]
call _ZNSt8__detaileqERKNS_19_Node_iterator_baseISt10shared_ptrIN8reaction16ObserverDataNodeEELb0EEES7_; std::__detail::operator==(std::__detail::_Node_iterator_base<std::shared_ptr<reaction::ObserverDataNode>,false> const&,std::__detail::_Node_iterator_base<std::shared_ptr<reaction::ObserverDataNode>,false> const&)
xor al, 0FFh
test al, 1
jnz short loc_127F4
jmp short loc_1285E
loc_127F4:
lea rdi, [rbp+var_20]
call _ZNKSt8__detail14_Node_iteratorISt10shared_ptrIN8reaction16ObserverDataNodeEELb1ELb0EEdeEv; std::__detail::_Node_iterator<std::shared_ptr<reaction::ObserverDataNode>,true,false>::operator*(void)
mov rsi, rax
lea rdi, [rbp+var_38]
mov [rbp+var_68], rdi
call _ZNSt10shared_ptrIN8reaction16ObserverDataNodeEEC2ERKS2_; std::shared_ptr<reaction::ObserverDataNode>::shared_ptr(std::shared_ptr<reaction::ObserverDataNode> const&)
mov rdi, [rbp+var_50]
mov rsi, [rbp+var_68]
add rdi, 38h ; '8'
call _ZNSt13unordered_mapISt10shared_ptrIN8reaction16ObserverDataNodeEES_IS3_St8functionIFvbEESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S6_EEES8_SA_SaISB_ISC_SF_EEEixERSC_; std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void ()(bool)>>>::operator[](std::shared_ptr<reaction::ObserverDataNode> const&)
mov [rbp+var_60], rax
jmp short $+2
loc_12824:
mov rsi, [rbp+var_58]
mov rdi, [rbp+var_60]
call _ZNSt13unordered_mapISt10shared_ptrIN8reaction16ObserverDataNodeEESt8functionIFvbEESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S6_EEE5eraseERSC_; std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void ()(bool)>>::erase(std::shared_ptr<reaction::ObserverDataNode> const&)
jmp short $+2
loc_12833:
lea rdi, [rbp+var_38]
call _ZNSt10shared_ptrIN8reaction16ObserverDataNodeEED2Ev; std::shared_ptr<reaction::ObserverDataNode>::~shared_ptr()
lea rdi, [rbp+var_20]
call _ZNSt8__detail14_Node_iteratorISt10shared_ptrIN8reaction16ObserverDataNodeEELb1ELb0EEppEv; std::__detail::_Node_iterator<std::shared_ptr<reaction::ObserverDataNode>,true,false>::operator++(void)
jmp short loc_127DF
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
lea rdi, [rbp+var_38]
call _ZNSt10shared_ptrIN8reaction16ObserverDataNodeEED2Ev; std::shared_ptr<reaction::ObserverDataNode>::~shared_ptr()
jmp short loc_12879
loc_1285E:
mov rsi, [rbp+var_58]
mov rdi, [rbp+var_50]
call _ZNSt13unordered_mapISt10shared_ptrIN8reaction16ObserverDataNodeEESt13unordered_setIS3_St4hashIS3_ESt8equal_toIS3_ESaIS3_EES6_S8_SaISt4pairIKS3_SA_EEEixERSC_; std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>::operator[](std::shared_ptr<reaction::ObserverDataNode> const&)
mov rdi, rax
call _ZNSt13unordered_setISt10shared_ptrIN8reaction16ObserverDataNodeEESt4hashIS3_ESt8equal_toIS3_ESaIS3_EE5clearEv; std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>::clear(void)
add rsp, 70h
pop rbp
retn
loc_12879:
mov rdi, [rbp+var_40]
call __Unwind_Resume
| long long ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E(
long long a1,
long long a2)
{
long long v2; // rax
long long v3; // rax
long long v5; // [rsp+10h] [rbp-60h]
_BYTE v6[16]; // [rsp+38h] [rbp-38h] BYREF
long long v7; // [rsp+48h] [rbp-28h] BYREF
long long v8; // [rsp+50h] [rbp-20h] BYREF
long long v9; // [rsp+58h] [rbp-18h]
long long v10; // [rsp+60h] [rbp-10h]
long long v11; // [rsp+68h] [rbp-8h]
v11 = a1;
v10 = a2;
v9 = ((long long (*)(void))std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>::operator[])();
v8 = std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>::begin(v9);
v7 = std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>::end(v9);
while ( (std::__detail::operator==(&v8, &v7) & 1) == 0 )
{
v2 = std::__detail::_Node_iterator<std::shared_ptr<reaction::ObserverDataNode>,true,false>::operator*(&v8);
std::shared_ptr<reaction::ObserverDataNode>::shared_ptr(v6, v2);
v5 = std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void ()(bool)>>>::operator[](
a1 + 56,
v6);
std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void ()(bool)>>::erase(v5, a2);
std::shared_ptr<reaction::ObserverDataNode>::~shared_ptr((long long)v6);
std::__detail::_Node_iterator<std::shared_ptr<reaction::ObserverDataNode>,true,false>::operator++(&v8);
}
v3 = std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>::operator[](
a1,
a2);
return std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>::clear(v3);
}
| _ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x58],RSI
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x50],RDI
CALL 0x00113120
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00113150
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00113180
MOV qword ptr [RBP + -0x28],RAX
LAB_001127df:
LEA RDI,[RBP + -0x20]
LEA RSI,[RBP + -0x28]
CALL 0x001131b0
XOR AL,0xff
TEST AL,0x1
JNZ 0x001127f4
JMP 0x0011285e
LAB_001127f4:
LEA RDI,[RBP + -0x20]
CALL 0x001131e0
MOV RSI,RAX
LEA RDI,[RBP + -0x38]
MOV qword ptr [RBP + -0x68],RDI
CALL 0x00112890
MOV RDI,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x68]
ADD RDI,0x38
LAB_00112819:
CALL 0x00113210
MOV qword ptr [RBP + -0x60],RAX
JMP 0x00112824
LAB_00112824:
MOV RSI,qword ptr [RBP + -0x58]
MOV RDI,qword ptr [RBP + -0x60]
CALL 0x00113240
LAB_00112831:
JMP 0x00112833
LAB_00112833:
LEA RDI,[RBP + -0x38]
CALL 0x0010bed0
LEA RDI,[RBP + -0x20]
CALL 0x00113270
JMP 0x001127df
LAB_0011285e:
MOV RSI,qword ptr [RBP + -0x58]
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x00113120
MOV RDI,RAX
CALL 0x001132a0
ADD RSP,0x70
POP RBP
RET
|
void _ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E
(unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>>>
*param_1,shared_ptr *param_2)
{
unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>
*this;
shared_ptr *psVar1;
unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void(bool)>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>>>
*this_00;
byte bVar2;
shared_ptr<reaction::ObserverDataNode> local_40 [16];
int8 local_30;
int8 local_28;
unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>
*local_20;
shared_ptr *local_18;
unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>>>
*local_10;
local_18 = param_2;
local_10 = param_1;
local_20 = (unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>
*)std::
unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>>>
::operator[](param_1,param_2);
local_28 = std::
unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>
::begin(local_20);
local_30 = std::
unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>
::end();
while( true ) {
bVar2 = std::__detail::operator==
((_Node_iterator_base *)&local_28,(_Node_iterator_base *)&local_30);
if (((bVar2 ^ 0xff) & 1) == 0) break;
psVar1 = (shared_ptr *)
std::__detail::_Node_iterator<std::shared_ptr<reaction::ObserverDataNode>,true,false>::
operator*((_Node_iterator<std::shared_ptr<reaction::ObserverDataNode>,true,false> *)
&local_28);
std::shared_ptr<reaction::ObserverDataNode>::shared_ptr(local_40,psVar1);
/* try { // try from 00112819 to 00112830 has its CatchHandler @ 00112847 */
this_00 = (unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void(bool)>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>>>
*)std::
unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void(bool)>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void(bool)>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>>>>>>
::operator[]((unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void(bool)>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void(bool)>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>>>>>>
*)(param_1 + 0x38),local_40);
std::
unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void(bool)>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>>>
::erase(this_00,param_2);
std::shared_ptr<reaction::ObserverDataNode>::~shared_ptr(local_40);
std::__detail::_Node_iterator<std::shared_ptr<reaction::ObserverDataNode>,true,false>::
operator++((_Node_iterator<std::shared_ptr<reaction::ObserverDataNode>,true,false> *)&local_28);
}
this = (unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>
*)std::
unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>>>
::operator[](param_1,param_2);
std::
unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>
::clear(this);
return;
}
| |
29,767 | mp_sqrtrem_dec | bluesky950520[P]quickjs/libbf.c | int mp_sqrtrem_dec(bf_context_t *s, limb_t *tabs, limb_t *taba, limb_t n)
{
limb_t tmp_buf1[8];
limb_t *tmp_buf;
mp_size_t n2;
n2 = n / 2 + 1;
if (n2 <= countof(tmp_buf1)) {
tmp_buf = tmp_buf1;
} else {
tmp_buf = bf_malloc(s, sizeof(limb_t) * n2);
if (!tmp_buf)
return -1;
}
taba[n] = mp_sqrtrem_rec_dec(tabs, taba, n, tmp_buf);
if (tmp_buf != tmp_buf1)
bf_free(s, tmp_buf);
return 0;
} | O1 | c | mp_sqrtrem_dec:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rsp, %rbp
movq %rbp, %r13
cmpq $0x10, %rcx
jb 0x8dec2
movq %r14, %rax
andq $-0x2, %rax
leaq 0x8(,%rax,4), %rdx
movq (%rbx), %rdi
xorl %esi, %esi
callq *0x8(%rbx)
movq %rax, %r13
testq %rax, %rax
je 0x8def1
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x8df09
movq %rax, (%r15,%r14,8)
cmpq %rbp, %r13
je 0x8deec
movq (%rbx), %rdi
xorl %r14d, %r14d
movq %r13, %rsi
xorl %edx, %edx
callq *0x8(%rbx)
jmp 0x8def7
xorl %r14d, %r14d
jmp 0x8def7
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| mp_sqrtrem_dec:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r14, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
mov rbp, rsp
mov r13, rbp
cmp rcx, 10h
jb short loc_8DEC2
mov rax, r14
and rax, 0FFFFFFFFFFFFFFFEh
lea rdx, ds:8[rax*4]
mov rdi, [rbx]
xor esi, esi
call qword ptr [rbx+8]
mov r13, rax
test rax, rax
jz short loc_8DEF1
loc_8DEC2:
mov rdi, r12
mov rsi, r15
mov rdx, r14
mov rcx, r13
call mp_sqrtrem_rec_dec
mov [r15+r14*8], rax
cmp r13, rbp
jz short loc_8DEEC
mov rdi, [rbx]
xor r14d, r14d
mov rsi, r13
xor edx, edx
call qword ptr [rbx+8]
jmp short loc_8DEF7
loc_8DEEC:
xor r14d, r14d
jmp short loc_8DEF7
loc_8DEF1:
mov r14d, 0FFFFFFFFh
loc_8DEF7:
mov eax, r14d
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mp_sqrtrem_dec(_QWORD *a1, long long a2, long long a3, unsigned long long a4)
{
_QWORD *v6; // r13
unsigned int v7; // r14d
_QWORD savedregs[15]; // [rsp+0h] [rbp+0h] BYREF
v6 = savedregs;
if ( a4 < 0x10
|| (v6 = (_QWORD *)((long long ( *)(_QWORD, _QWORD, unsigned long long))a1[1])(
*a1,
0LL,
4 * (a4 & 0xFFFFFFFFFFFFFFFELL) + 8)) != 0LL )
{
*(_QWORD *)(a3 + 8 * a4) = mp_sqrtrem_rec_dec(a2, a3, a4, v6);
v7 = 0;
if ( v6 != savedregs )
((void ( *)(_QWORD, _QWORD *, _QWORD))a1[1])(*a1, v6, 0LL);
}
else
{
return (unsigned int)-1;
}
return v7;
}
| mp_sqrtrem_dec:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R14,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
MOV RBP,RSP
MOV R13,RBP
CMP RCX,0x10
JC 0x0018dec2
MOV RAX,R14
AND RAX,-0x2
LEA RDX,[0x8 + RAX*0x4]
MOV RDI,qword ptr [RBX]
XOR ESI,ESI
CALL qword ptr [RBX + 0x8]
MOV R13,RAX
TEST RAX,RAX
JZ 0x0018def1
LAB_0018dec2:
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
MOV RCX,R13
CALL 0x0018df09
MOV qword ptr [R15 + R14*0x8],RAX
CMP R13,RBP
JZ 0x0018deec
MOV RDI,qword ptr [RBX]
XOR R14D,R14D
MOV RSI,R13
XOR EDX,EDX
CALL qword ptr [RBX + 0x8]
JMP 0x0018def7
LAB_0018deec:
XOR R14D,R14D
JMP 0x0018def7
LAB_0018def1:
MOV R14D,0xffffffff
LAB_0018def7:
MOV EAX,R14D
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 mp_sqrtrem_dec(int8 *param_1,int8 param_2,long param_3,ulong param_4)
{
int1 *puVar1;
int8 uVar2;
int1 auStack_78 [72];
puVar1 = auStack_78;
if ((0xf < param_4) &&
(puVar1 = (int1 *)
(*(code *)param_1[1])(*param_1,0,(param_4 & 0xfffffffffffffffe) * 4 + 8),
puVar1 == (int1 *)0x0)) {
return 0xffffffff;
}
uVar2 = mp_sqrtrem_rec_dec(param_2,param_3,param_4,puVar1);
*(int8 *)(param_3 + param_4 * 8) = uVar2;
if (puVar1 != auStack_78) {
(*(code *)param_1[1])(*param_1,puVar1,0);
}
return 0;
}
| |
29,768 | mp_sqrtrem_dec | bluesky950520[P]quickjs/libbf.c | int mp_sqrtrem_dec(bf_context_t *s, limb_t *tabs, limb_t *taba, limb_t n)
{
limb_t tmp_buf1[8];
limb_t *tmp_buf;
mp_size_t n2;
n2 = n / 2 + 1;
if (n2 <= countof(tmp_buf1)) {
tmp_buf = tmp_buf1;
} else {
tmp_buf = bf_malloc(s, sizeof(limb_t) * n2);
if (!tmp_buf)
return -1;
}
taba[n] = mp_sqrtrem_rec_dec(tabs, taba, n, tmp_buf);
if (tmp_buf != tmp_buf1)
bf_free(s, tmp_buf);
return 0;
} | O2 | c | mp_sqrtrem_dec:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rsp, %rbp
movq %rbp, %r13
cmpq $0x10, %rcx
jb 0x768fe
movq %r14, %rax
andq $-0x2, %rax
leaq 0x8(,%rax,4), %rdx
movq (%rbx), %rdi
xorl %esi, %esi
callq *0x8(%rbx)
movq %rax, %r13
testq %rax, %rax
je 0x7692d
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x76943
movq %rax, (%r15,%r14,8)
cmpq %rbp, %r13
je 0x76928
movq (%rbx), %rdi
xorl %r14d, %r14d
movq %r13, %rsi
xorl %edx, %edx
callq *0x8(%rbx)
jmp 0x76931
xorl %r14d, %r14d
jmp 0x76931
pushq $-0x1
popq %r14
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| mp_sqrtrem_dec:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r14, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
mov rbp, rsp
mov r13, rbp
cmp rcx, 10h
jb short loc_768FE
mov rax, r14
and rax, 0FFFFFFFFFFFFFFFEh
lea rdx, ds:8[rax*4]
mov rdi, [rbx]
xor esi, esi
call qword ptr [rbx+8]
mov r13, rax
test rax, rax
jz short loc_7692D
loc_768FE:
mov rdi, r12
mov rsi, r15
mov rdx, r14
mov rcx, r13
call mp_sqrtrem_rec_dec
mov [r15+r14*8], rax
cmp r13, rbp
jz short loc_76928
mov rdi, [rbx]
xor r14d, r14d
mov rsi, r13
xor edx, edx
call qword ptr [rbx+8]
jmp short loc_76931
loc_76928:
xor r14d, r14d
jmp short loc_76931
loc_7692D:
push 0FFFFFFFFFFFFFFFFh
pop r14
loc_76931:
mov eax, r14d
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mp_sqrtrem_dec(_QWORD *a1, long long a2, long long a3, unsigned long long a4)
{
_QWORD *v6; // r13
unsigned int v7; // r14d
_QWORD savedregs[15]; // [rsp+0h] [rbp+0h] BYREF
v6 = savedregs;
if ( a4 < 0x10
|| (v6 = (_QWORD *)((long long ( *)(_QWORD, _QWORD, unsigned long long))a1[1])(
*a1,
0LL,
4 * (a4 & 0xFFFFFFFFFFFFFFFELL) + 8)) != 0LL )
{
*(_QWORD *)(a3 + 8 * a4) = mp_sqrtrem_rec_dec(a2, a3, a4, v6);
v7 = 0;
if ( v6 != savedregs )
((void ( *)(_QWORD, _QWORD *, _QWORD))a1[1])(*a1, v6, 0LL);
}
else
{
return (unsigned int)-1;
}
return v7;
}
| mp_sqrtrem_dec:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R14,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
MOV RBP,RSP
MOV R13,RBP
CMP RCX,0x10
JC 0x001768fe
MOV RAX,R14
AND RAX,-0x2
LEA RDX,[0x8 + RAX*0x4]
MOV RDI,qword ptr [RBX]
XOR ESI,ESI
CALL qword ptr [RBX + 0x8]
MOV R13,RAX
TEST RAX,RAX
JZ 0x0017692d
LAB_001768fe:
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
MOV RCX,R13
CALL 0x00176943
MOV qword ptr [R15 + R14*0x8],RAX
CMP R13,RBP
JZ 0x00176928
MOV RDI,qword ptr [RBX]
XOR R14D,R14D
MOV RSI,R13
XOR EDX,EDX
CALL qword ptr [RBX + 0x8]
JMP 0x00176931
LAB_00176928:
XOR R14D,R14D
JMP 0x00176931
LAB_0017692d:
PUSH -0x1
POP R14
LAB_00176931:
MOV EAX,R14D
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int4 mp_sqrtrem_dec(int8 *param_1,int8 param_2,long param_3,ulong param_4)
{
int1 *puVar1;
int8 uVar2;
int1 auStack_78 [72];
puVar1 = auStack_78;
if ((0xf < param_4) &&
(puVar1 = (int1 *)
(*(code *)param_1[1])(*param_1,0,(param_4 & 0xfffffffffffffffe) * 4 + 8),
puVar1 == (int1 *)0x0)) {
return 0xffffffff;
}
uVar2 = mp_sqrtrem_rec_dec(param_2,param_3,param_4,puVar1);
*(int8 *)(param_3 + param_4 * 8) = uVar2;
if (puVar1 != auStack_78) {
(*(code *)param_1[1])(*param_1,puVar1,0);
}
return 0;
}
| |
29,769 | my_sleep | eloqsql/mysys/my_sleep.c | void my_sleep(ulong m_seconds)
{
#if defined(_WIN32)
Sleep(m_seconds/1000+1); /* Sleep() has millisecond arg */
#elif defined(HAVE_SELECT)
struct timeval t;
t.tv_sec= m_seconds / 1000000L;
t.tv_usec= m_seconds % 1000000L;
select(0,0,0,0,&t); /* sleep */
#else
uint sec= (uint) ((m_seconds + 999999L) / 1000000L);
ulong start= (ulong) time((time_t*) 0);
while ((ulong) time((time_t*) 0) < start+sec);
#endif
} | O3 | c | my_sleep:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
movq %rdi, %rax
mulq %rcx
shrq $0x12, %rdx
leaq -0x10(%rbp), %r8
movq %rdx, (%r8)
imulq $0xf4240, %rdx, %rax # imm = 0xF4240
subq %rax, %rdi
movq %rdi, 0x8(%r8)
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x29060
addq $0x10, %rsp
popq %rbp
retq
| my_sleep:
push rbp
mov rbp, rsp
sub rsp, 10h
mov rcx, 431BDE82D7B634DBh
mov rax, rdi
mul rcx
shr rdx, 12h
lea r8, [rbp+var_10]
mov [r8], rdx
imul rax, rdx, 0F4240h
sub rdi, rax
mov [r8+8], rdi
xor edi, edi
xor esi, esi
xor edx, edx
xor ecx, ecx
call _select
add rsp, 10h
pop rbp
retn
| long long my_sleep()
{
return select(0LL, 0LL, 0LL, 0LL);
}
| my_sleep:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV RCX,0x431bde82d7b634db
MOV RAX,RDI
MUL RCX
SHR RDX,0x12
LEA R8,[RBP + -0x10]
MOV qword ptr [R8],RDX
IMUL RAX,RDX,0xf4240
SUB RDI,RAX
MOV qword ptr [R8 + 0x8],RDI
XOR EDI,EDI
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
CALL 0x00129060
ADD RSP,0x10
POP RBP
RET
|
void my_sleep(ulong param_1)
{
timeval local_18;
local_18.tv_sec = param_1 / 1000000;
local_18.tv_usec = param_1 % 1000000;
select(0,(fd_set *)0x0,(fd_set *)0x0,(fd_set *)0x0,&local_18);
return;
}
| |
29,770 | _JS_NewAtomInit | bluesky950520[P]quickjs/quickjs.c | static JSAtom __JS_NewAtomInit(JSRuntime *rt, const char *str, int len,
int atom_type)
{
JSString *p;
p = js_alloc_string_rt(rt, len, 0);
if (!p)
return JS_ATOM_NULL;
memcpy(p->u.str8, str, len);
p->u.str8[len] = '\0';
return __JS_NewAtom(rt, p, atom_type);
} | O1 | c | _JS_NewAtomInit:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %r14
movslq %edx, %r15
leaq 0x19(%r15), %rsi
callq 0xece0
testq %rax, %rax
je 0xf488
movq %rax, %r13
movl $0x1, (%rax)
andl $0x7fffffff, %ebp # imm = 0x7FFFFFFF
movq %rbp, 0x4(%rax)
andl $0x0, 0xc(%rax)
testq %r13, %r13
je 0xf477
leaq 0x18(%r13), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xe5a0
movb $0x0, 0x18(%r13,%r15)
movq %r14, %rdi
movq %r13, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1f629
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r13d, %r13d
jmp 0xf442
| __JS_NewAtomInit:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebx, ecx
mov ebp, edx
mov r12, rsi
mov r14, rdi
movsxd r15, edx
lea rsi, [r15+19h]
call js_malloc_rt
test rax, rax
jz short loc_F488
mov r13, rax
mov dword ptr [rax], 1
and ebp, 7FFFFFFFh
mov [rax+4], rbp
and dword ptr [rax+0Ch], 0
loc_F442:
test r13, r13
jz short loc_F477
lea rdi, [r13+18h]
mov rsi, r12
mov rdx, r15
call _memcpy
mov byte ptr [r13+r15+18h], 0
mov rdi, r14
mov rsi, r13
mov edx, ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __JS_NewAtom
loc_F477:
xor eax, eax
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_F488:
xor r13d, r13d
jmp short loc_F442
| long long _JS_NewAtomInit(long long a1, long long a2, int a3, unsigned int a4)
{
long long v6; // r15
long long v7; // rax
long long v8; // r13
v6 = a3;
v7 = js_malloc_rt(a1, a3 + 25LL);
if ( v7 )
{
v8 = v7;
*(_DWORD *)v7 = 1;
*(_QWORD *)(v7 + 4) = a3 & 0x7FFFFFFF;
*(_DWORD *)(v7 + 12) = 0;
}
else
{
v8 = 0LL;
}
if ( !v8 )
return 0LL;
memcpy(v8 + 24, a2, v6);
*(_BYTE *)(v8 + v6 + 24) = 0;
return _JS_NewAtom(a1, v8, a4);
}
| __JS_NewAtomInit:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBX,ECX
MOV EBP,EDX
MOV R12,RSI
MOV R14,RDI
MOVSXD R15,EDX
LEA RSI,[R15 + 0x19]
CALL 0x0010ece0
TEST RAX,RAX
JZ 0x0010f488
MOV R13,RAX
MOV dword ptr [RAX],0x1
AND EBP,0x7fffffff
MOV qword ptr [RAX + 0x4],RBP
AND dword ptr [RAX + 0xc],0x0
LAB_0010f442:
TEST R13,R13
JZ 0x0010f477
LEA RDI,[R13 + 0x18]
MOV RSI,R12
MOV RDX,R15
CALL 0x0010e5a0
MOV byte ptr [R13 + R15*0x1 + 0x18],0x0
MOV RDI,R14
MOV RSI,R13
MOV EDX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0011f629
LAB_0010f477:
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0010f488:
XOR R13D,R13D
JMP 0x0010f442
|
int8 __JS_NewAtomInit(int8 param_1,void *param_2,uint param_3,int4 param_4)
{
int4 *puVar1;
int8 uVar2;
size_t __n;
__n = (size_t)(int)param_3;
puVar1 = (int4 *)js_malloc_rt(param_1,__n + 0x19);
if (puVar1 == (int4 *)0x0) {
puVar1 = (int4 *)0x0;
}
else {
*puVar1 = 1;
*(ulong *)(puVar1 + 1) = (ulong)(param_3 & 0x7fffffff);
puVar1[3] = 0;
}
if (puVar1 != (int4 *)0x0) {
memcpy(puVar1 + 6,param_2,__n);
*(int1 *)((long)puVar1 + __n + 0x18) = 0;
uVar2 = __JS_NewAtom(param_1,puVar1,param_4);
return uVar2;
}
return 0;
}
| |
29,771 | _JS_NewAtomInit | bluesky950520[P]quickjs/quickjs.c | static JSAtom __JS_NewAtomInit(JSRuntime *rt, const char *str, int len,
int atom_type)
{
JSString *p;
p = js_alloc_string_rt(rt, len, 0);
if (!p)
return JS_ATOM_NULL;
memcpy(p->u.str8, str, len);
p->u.str8[len] = '\0';
return __JS_NewAtom(rt, p, atom_type);
} | O3 | c | _JS_NewAtomInit:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %ecx, %ebx
movq %rsi, %r12
movq %rdi, %r14
movslq %edx, %r15
leaq 0x19(%r15), %rsi
callq 0xecff
testq %rax, %rax
je 0xf4bb
movq %rax, %r13
movl $0x1, (%rax)
movl %r15d, %eax
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
movq %rax, 0x4(%r13)
andl $0x0, 0xc(%r13)
movq %r13, %rdi
addq $0x18, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xe5a0
movb $0x0, 0x18(%r13,%r15)
movq %r14, %rdi
movq %r13, %rsi
movl %ebx, %edx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1fd32
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| __JS_NewAtomInit:
push r15
push r14
push r13
push r12
push rbx
mov ebx, ecx
mov r12, rsi
mov r14, rdi
movsxd r15, edx
lea rsi, [r15+19h]
call js_malloc_rt
test rax, rax
jz short loc_F4BB
mov r13, rax
mov dword ptr [rax], 1
mov eax, r15d
and eax, 7FFFFFFFh
mov [r13+4], rax
and dword ptr [r13+0Ch], 0
mov rdi, r13
add rdi, 18h
mov rsi, r12
mov rdx, r15
call _memcpy
mov byte ptr [r13+r15+18h], 0
mov rdi, r14
mov rsi, r13
mov edx, ebx
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp __JS_NewAtom
loc_F4BB:
xor eax, eax
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| long long _JS_NewAtomInit(long long a1, long long a2, int a3, unsigned int a4)
{
long long v5; // r15
long long v6; // rax
long long v7; // r13
v5 = a3;
v6 = js_malloc_rt(a1, a3 + 25LL);
if ( !v6 )
return 0LL;
v7 = v6;
*(_DWORD *)v6 = 1;
*(_QWORD *)(v6 + 4) = v5 & 0x7FFFFFFF;
*(_DWORD *)(v6 + 12) = 0;
memcpy(v6 + 24, a2, v5);
*(_BYTE *)(v7 + v5 + 24) = 0;
return _JS_NewAtom(a1, v7, a4);
}
| __JS_NewAtomInit:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV EBX,ECX
MOV R12,RSI
MOV R14,RDI
MOVSXD R15,EDX
LEA RSI,[R15 + 0x19]
CALL 0x0010ecff
TEST RAX,RAX
JZ 0x0010f4bb
MOV R13,RAX
MOV dword ptr [RAX],0x1
MOV EAX,R15D
AND EAX,0x7fffffff
MOV qword ptr [R13 + 0x4],RAX
AND dword ptr [R13 + 0xc],0x0
MOV RDI,R13
ADD RDI,0x18
MOV RSI,R12
MOV RDX,R15
CALL 0x0010e5a0
MOV byte ptr [R13 + R15*0x1 + 0x18],0x0
MOV RDI,R14
MOV RSI,R13
MOV EDX,EBX
POP RBX
POP R12
POP R13
POP R14
POP R15
JMP 0x0011fd32
LAB_0010f4bb:
XOR EAX,EAX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
int8 __JS_NewAtomInit(int8 param_1,void *param_2,uint param_3,int4 param_4)
{
int4 *puVar1;
int8 uVar2;
size_t __n;
__n = (size_t)(int)param_3;
puVar1 = (int4 *)js_malloc_rt(param_1,__n + 0x19);
if (puVar1 != (int4 *)0x0) {
*puVar1 = 1;
*(ulong *)(puVar1 + 1) = (ulong)(param_3 & 0x7fffffff);
puVar1[3] = 0;
memcpy(puVar1 + 6,param_2,__n);
*(int1 *)((long)puVar1 + __n + 0x18) = 0;
uVar2 = __JS_NewAtom(param_1,puVar1,param_4);
return uVar2;
}
return 0;
}
| |
29,772 | ma_store_bin_pack_key | eloqsql/storage/maria/ma_search.c | void _ma_store_bin_pack_key(MARIA_KEYDEF *keyinfo __attribute__((unused)),
register uchar *key_pos,
register MARIA_KEY_PARAM *s_temp)
{
uchar *org_key_pos= key_pos;
size_t length= s_temp->totlength - s_temp->ref_length;
store_key_length_inc(key_pos,s_temp->ref_length);
memcpy(key_pos, s_temp->key+s_temp->ref_length, length);
key_pos+= length;
if (s_temp->next_key_pos)
{
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);
key_pos+= s_temp->prev_length;
}
}
s_temp->changed_length= (uint) (key_pos - org_key_pos);
} | O3 | c | ma_store_bin_pack_key:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movl 0x20(%rdx), %eax
movl 0x30(%rdx), %r12d
subl %eax, %r12d
cmpl $0xfe, %eax
ja 0x7079a
leaq 0x1(%r14), %r15
movb %al, (%r14)
jmp 0x707af
movb $-0x1, (%r14)
movzwl 0x20(%rbx), %eax
rolw $0x8, %ax
movw %ax, 0x1(%r14)
leaq 0x3(%r14), %r15
movl 0x20(%rbx), %esi
addq (%rbx), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x2a0a0
addq %r12, %r15
cmpq $0x0, 0x10(%rbx)
je 0x7080b
movl 0x28(%rbx), %eax
cmpl $0xfe, %eax
ja 0x707dc
movb %al, (%r15)
incq %r15
jmp 0x707f1
movb $-0x1, (%r15)
movzwl 0x28(%rbx), %eax
rolw $0x8, %ax
movw %ax, 0x1(%r15)
addq $0x3, %r15
movl 0x38(%rbx), %edx
testq %rdx, %rdx
je 0x7080b
movq 0x8(%rbx), %rsi
movq %r15, %rdi
callq 0x2a0a0
movl 0x38(%rbx), %eax
addq %rax, %r15
subl %r14d, %r15d
movl %r15d, 0x40(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _ma_store_bin_pack_key:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rdx
mov r14, rsi
mov eax, [rdx+20h]
mov r12d, [rdx+30h]
sub r12d, eax
cmp eax, 0FEh
ja short loc_7079A
lea r15, [r14+1]
mov [r14], al
jmp short loc_707AF
loc_7079A:
mov byte ptr [r14], 0FFh
movzx eax, word ptr [rbx+20h]
rol ax, 8
mov [r14+1], ax
lea r15, [r14+3]
loc_707AF:
mov esi, [rbx+20h]
add rsi, [rbx]
mov rdi, r15
mov rdx, r12
call _memcpy
add r15, r12
cmp qword ptr [rbx+10h], 0
jz short loc_7080B
mov eax, [rbx+28h]
cmp eax, 0FEh
ja short loc_707DC
mov [r15], al
inc r15
jmp short loc_707F1
loc_707DC:
mov byte ptr [r15], 0FFh
movzx eax, word ptr [rbx+28h]
rol ax, 8
mov [r15+1], ax
add r15, 3
loc_707F1:
mov edx, [rbx+38h]
test rdx, rdx
jz short loc_7080B
mov rsi, [rbx+8]
mov rdi, r15
call _memcpy
mov eax, [rbx+38h]
add r15, rax
loc_7080B:
sub r15d, r14d
mov [rbx+40h], r15d
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| __int16 ma_store_bin_pack_key(long long a1, long long a2, long long a3)
{
unsigned int v4; // eax
long long v5; // r12
long long v6; // r15
unsigned int v7; // eax
_BYTE *v8; // r15
v4 = *(_DWORD *)(a3 + 32);
v5 = *(_DWORD *)(a3 + 48) - v4;
if ( v4 > 0xFE )
{
*(_BYTE *)a2 = -1;
*(_WORD *)(a2 + 1) = __ROL2__(*(_WORD *)(a3 + 32), 8);
v6 = a2 + 3;
}
else
{
v6 = a2 + 1;
*(_BYTE *)a2 = v4;
}
LOWORD(v7) = memcpy(v6, *(_QWORD *)a3 + *(unsigned int *)(a3 + 32), v5);
v8 = (_BYTE *)(v5 + v6);
if ( *(_QWORD *)(a3 + 16) )
{
v7 = *(_DWORD *)(a3 + 40);
if ( v7 > 0xFE )
{
*v8 = -1;
LOWORD(v7) = __ROL2__(*(_WORD *)(a3 + 40), 8);
*(_WORD *)(v8 + 1) = v7;
v8 += 3;
}
else
{
*v8++ = v7;
}
if ( *(_DWORD *)(a3 + 56) )
{
memcpy(v8, *(_QWORD *)(a3 + 8), *(unsigned int *)(a3 + 56));
v7 = *(_DWORD *)(a3 + 56);
LODWORD(v8) = v7 + (_DWORD)v8;
}
}
*(_DWORD *)(a3 + 64) = (_DWORD)v8 - a2;
return v7;
}
| _ma_store_bin_pack_key:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RDX
MOV R14,RSI
MOV EAX,dword ptr [RDX + 0x20]
MOV R12D,dword ptr [RDX + 0x30]
SUB R12D,EAX
CMP EAX,0xfe
JA 0x0017079a
LEA R15,[R14 + 0x1]
MOV byte ptr [R14],AL
JMP 0x001707af
LAB_0017079a:
MOV byte ptr [R14],0xff
MOVZX EAX,word ptr [RBX + 0x20]
ROL AX,0x8
MOV word ptr [R14 + 0x1],AX
LEA R15,[R14 + 0x3]
LAB_001707af:
MOV ESI,dword ptr [RBX + 0x20]
ADD RSI,qword ptr [RBX]
MOV RDI,R15
MOV RDX,R12
CALL 0x0012a0a0
ADD R15,R12
CMP qword ptr [RBX + 0x10],0x0
JZ 0x0017080b
MOV EAX,dword ptr [RBX + 0x28]
CMP EAX,0xfe
JA 0x001707dc
MOV byte ptr [R15],AL
INC R15
JMP 0x001707f1
LAB_001707dc:
MOV byte ptr [R15],0xff
MOVZX EAX,word ptr [RBX + 0x28]
ROL AX,0x8
MOV word ptr [R15 + 0x1],AX
ADD R15,0x3
LAB_001707f1:
MOV EDX,dword ptr [RBX + 0x38]
TEST RDX,RDX
JZ 0x0017080b
MOV RSI,qword ptr [RBX + 0x8]
MOV RDI,R15
CALL 0x0012a0a0
MOV EAX,dword ptr [RBX + 0x38]
ADD R15,RAX
LAB_0017080b:
SUB R15D,R14D
MOV dword ptr [RBX + 0x40],R15D
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void _ma_store_bin_pack_key(int8 param_1,int1 *param_2,long *param_3)
{
uint uVar1;
ulong __n;
int1 *puVar2;
uVar1 = *(uint *)(param_3 + 4);
__n = (ulong)((int)param_3[6] - uVar1);
if (uVar1 < 0xff) {
puVar2 = param_2 + 1;
*param_2 = (char)uVar1;
}
else {
*param_2 = 0xff;
*(ushort *)(param_2 + 1) = *(ushort *)(param_3 + 4) << 8 | *(ushort *)(param_3 + 4) >> 8;
puVar2 = param_2 + 3;
}
memcpy(puVar2,(void *)((ulong)*(uint *)(param_3 + 4) + *param_3),__n);
puVar2 = puVar2 + __n;
if (param_3[2] != 0) {
if (*(uint *)(param_3 + 5) < 0xff) {
*puVar2 = (char)*(uint *)(param_3 + 5);
puVar2 = puVar2 + 1;
}
else {
*puVar2 = 0xff;
*(ushort *)(puVar2 + 1) = *(ushort *)(param_3 + 5) << 8 | *(ushort *)(param_3 + 5) >> 8;
puVar2 = puVar2 + 3;
}
if ((ulong)*(uint *)(param_3 + 7) != 0) {
memcpy(puVar2,(void *)param_3[1],(ulong)*(uint *)(param_3 + 7));
puVar2 = puVar2 + *(uint *)(param_3 + 7);
}
}
*(int *)(param_3 + 8) = (int)puVar2 - (int)param_2;
return;
}
| |
29,773 | my_coll_lexem_num_to_str | eloqsql/strings/ctype-uca.c | static const char *
my_coll_lexem_num_to_str(my_coll_lexem_num term)
{
switch (term)
{
case MY_COLL_LEXEM_EOF: return "EOF";
case MY_COLL_LEXEM_SHIFT: return "Shift";
case MY_COLL_LEXEM_RESET: return "&";
case MY_COLL_LEXEM_CHAR: return "Character";
case MY_COLL_LEXEM_OPTION: return "Bracket option";
case MY_COLL_LEXEM_EXTEND: return "/";
case MY_COLL_LEXEM_CONTEXT:return "|";
case MY_COLL_LEXEM_ERROR: return "ERROR";
}
return NULL;
} | O0 | c | my_coll_lexem_num_to_str:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq %rax, -0x18(%rbp)
subq $0x9, %rax
ja 0x52840
movq -0x18(%rbp), %rax
leaq 0xf2835(%rip), %rcx # 0x145004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2c6e9(%rip), %rax # 0x7eec8
movq %rax, -0x8(%rbp)
jmp 0x52848
leaq 0x2c6e0(%rip), %rax # 0x7eecc
movq %rax, -0x8(%rbp)
jmp 0x52848
leaq 0x2ca5d(%rip), %rax # 0x7f256
movq %rax, -0x8(%rbp)
jmp 0x52848
leaq 0x2c6cc(%rip), %rax # 0x7eed2
movq %rax, -0x8(%rbp)
jmp 0x52848
leaq 0x2c6c9(%rip), %rax # 0x7eedc
movq %rax, -0x8(%rbp)
jmp 0x52848
leaq 0x2ad98(%rip), %rax # 0x7d5b8
movq %rax, -0x8(%rbp)
jmp 0x52848
leaq 0x2c6be(%rip), %rax # 0x7eeeb
movq %rax, -0x8(%rbp)
jmp 0x52848
leaq 0x2c6b3(%rip), %rax # 0x7eeed
movq %rax, -0x8(%rbp)
jmp 0x52848
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nop
| my_coll_lexem_num_to_str:
push rbp
mov rbp, rsp
mov [rbp+var_C], edi
mov eax, [rbp+var_C]
mov [rbp+var_18], rax
sub rax, 9; switch 10 cases
ja short def_527D6; jumptable 00000000000527D6 default case, cases 2,3
mov rax, [rbp+var_18]
lea rcx, jpt_527D6
movsxd rax, ds:(jpt_527D6 - 145004h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_527D8:
lea rax, aEof; jumptable 00000000000527D6 case 0
mov [rbp+var_8], rax
jmp short loc_52848
loc_527E5:
lea rax, aShift; jumptable 00000000000527D6 case 1
mov [rbp+var_8], rax
jmp short loc_52848
loc_527F2:
lea rax, asc_7F255+1; jumptable 00000000000527D6 case 4
mov [rbp+var_8], rax
jmp short loc_52848
loc_527FF:
lea rax, aCharacter; jumptable 00000000000527D6 case 5
mov [rbp+var_8], rax
jmp short loc_52848
loc_5280C:
lea rax, aBracketOption; jumptable 00000000000527D6 case 7
mov [rbp+var_8], rax
jmp short loc_52848
loc_52819:
lea rax, word_7D5B8; jumptable 00000000000527D6 case 8
mov [rbp+var_8], rax
jmp short loc_52848
loc_52826:
lea rax, asc_7EEEB; jumptable 00000000000527D6 case 9
mov [rbp+var_8], rax
jmp short loc_52848
loc_52833:
lea rax, aError; jumptable 00000000000527D6 case 6
mov [rbp+var_8], rax
jmp short loc_52848
def_527D6:
mov [rbp+var_8], 0; jumptable 00000000000527D6 default case, cases 2,3
loc_52848:
mov rax, [rbp+var_8]
pop rbp
retn
| char * my_coll_lexem_num_to_str(int a1)
{
char *v2; // [rsp+10h] [rbp-8h]
switch ( a1 )
{
case 0:
v2 = "EOF";
break;
case 1:
v2 = "Shift";
break;
case 4:
v2 = "&";
break;
case 5:
v2 = "Character";
break;
case 6:
v2 = "ERROR";
break;
case 7:
v2 = "Bracket option";
break;
case 8:
v2 = (char *)&word_7D5B8;
break;
case 9:
v2 = "|";
break;
default:
v2 = 0LL;
break;
}
return v2;
}
| my_coll_lexem_num_to_str:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0xc],EDI
MOV EAX,dword ptr [RBP + -0xc]
MOV qword ptr [RBP + -0x18],RAX
SUB RAX,0x9
JA 0x00152840
MOV RAX,qword ptr [RBP + -0x18]
LEA RCX,[0x245004]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
LEA RAX,[0x17eec8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00152848
caseD_1:
LEA RAX,[0x17eecc]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00152848
caseD_4:
LEA RAX,[0x17f256]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00152848
caseD_5:
LEA RAX,[0x17eed2]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00152848
caseD_7:
LEA RAX,[0x17eedc]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00152848
caseD_8:
LEA RAX,[0x17d5b8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00152848
caseD_9:
LEA RAX,[0x17eeeb]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00152848
caseD_6:
LEA RAX,[0x17eeed]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00152848
caseD_2:
MOV qword ptr [RBP + -0x8],0x0
LAB_00152848:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
char * my_coll_lexem_num_to_str(int4 param_1)
{
char *local_10;
switch(param_1) {
case 0:
local_10 = "EOF";
break;
case 1:
local_10 = "Shift";
break;
default:
local_10 = (char *)0x0;
break;
case 4:
local_10 = "&";
break;
case 5:
local_10 = "Character";
break;
case 6:
local_10 = "ERROR";
break;
case 7:
local_10 = "Bracket option";
break;
case 8:
local_10 = "/";
break;
case 9:
local_10 = "|";
}
return local_10;
}
| |
29,774 | LefDefParser::lefiMacro::propNum(int) const | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMacro.cpp | double
lefiMacro::propNum(int index) const
{
char msg[160];
if (index < 0 || index >= numProperties_) {
sprintf(msg, "ERROR (LEFPARS-1352): The index number %d given for the macro property is invalid.\nValid index is from 0 to %d", index, numProperties_);
lefiError(0, 1352, msg);
return 0;
}
return propNums_[index];
} | O3 | cpp | LefDefParser::lefiMacro::propNum(int) const:
movl %esi, %edx
testl %esi, %esi
setns %al
movl 0x124(%rdi), %ecx
cmpl %esi, %ecx
setg %sil
testb %sil, %al
je 0x380ef
movq 0x140(%rdi), %rax
movl %edx, %ecx
movsd (%rax,%rcx,8), %xmm0
retq
pushq %rbx
subq $0xa0, %rsp
leaq 0x28c73(%rip), %rsi # 0x60d71
movq %rsp, %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2050
xorl %edi, %edi
movl $0x548, %esi # imm = 0x548
movq %rbx, %rdx
callq 0x33d78
xorps %xmm0, %xmm0
addq $0xa0, %rsp
popq %rbx
retq
| _ZNK12LefDefParser9lefiMacro7propNumEi:
mov edx, esi
test esi, esi
setns al
mov ecx, [rdi+124h]
cmp ecx, esi
setnle sil
test al, sil
jz short loc_380EF
mov rax, [rdi+140h]
mov ecx, edx
movsd xmm0, qword ptr [rax+rcx*8]
retn
loc_380EF:
push rbx
sub rsp, 0A0h
lea rsi, aErrorLefpars13_24; "ERROR (LEFPARS-1352): The index number "...
mov rbx, rsp
mov rdi, rbx
xor eax, eax
call _sprintf
xor edi, edi; this
mov esi, 548h; int
mov rdx, rbx; int
call _ZN12LefDefParser9lefiErrorEiiPKc; LefDefParser::lefiError(int,int,char const*)
xorps xmm0, xmm0
add rsp, 0A0h
pop rbx
retn
| double LefDefParser::lefiMacro::propNum(LefDefParser::lefiMacro *this, signed int a2)
{
int v2; // ecx
const char *v4; // rcx
_BYTE v5[168]; // [rsp-A8h] [rbp-A8h] BYREF
v2 = *((_DWORD *)this + 73);
if ( v2 > a2 && a2 >= 0 )
return *(double *)(*((_QWORD *)this + 40) + 8LL * (unsigned int)a2);
sprintf(
v5,
"ERROR (LEFPARS-1352): The index number %d given for the macro property is invalid.\nValid index is from 0 to %d",
a2,
v2);
LefDefParser::lefiError(0LL, 1352, (long long)v5, v4);
return 0.0;
}
| propNum:
MOV EDX,ESI
TEST ESI,ESI
SETNS AL
MOV ECX,dword ptr [RDI + 0x124]
CMP ECX,ESI
SETG SIL
TEST AL,SIL
JZ 0x001380ef
MOV RAX,qword ptr [RDI + 0x140]
MOV ECX,EDX
MOVSD XMM0,qword ptr [RAX + RCX*0x8]
RET
LAB_001380ef:
PUSH RBX
SUB RSP,0xa0
LEA RSI,[0x160d71]
MOV RBX,RSP
MOV RDI,RBX
XOR EAX,EAX
CALL 0x00102050
XOR EDI,EDI
MOV ESI,0x548
MOV RDX,RBX
CALL 0x00133d78
XORPS XMM0,XMM0
ADD RSP,0xa0
POP RBX
RET
|
/* LefDefParser::lefiMacro::propNum(int) const */
int8 __thiscall LefDefParser::lefiMacro::propNum(lefiMacro *this,int param_1)
{
char acStack_a8 [160];
if (-1 < param_1 && param_1 < *(int *)(this + 0x124)) {
return *(int8 *)(*(long *)(this + 0x140) + (ulong)(uint)param_1 * 8);
}
sprintf(acStack_a8,
"ERROR (LEFPARS-1352): The index number %d given for the macro property is invalid.\nValid index is from 0 to %d"
);
lefiError(0,0x548,acStack_a8);
return 0;
}
| |
29,775 | alloc_dynamic | eloqsql/mysys/array.c | void *alloc_dynamic(DYNAMIC_ARRAY *array)
{
DBUG_ENTER("alloc_dynamic");
DBUG_ASSERT(array->size_of_element); /* Ensure init() is called */
if (array->elements == array->max_element)
{
char *new_ptr;
if (array->malloc_flags & MY_INIT_BUFFER_USED)
{
/*
In this scenario, the buffer is statically preallocated,
so we have to create an all-new malloc since we overflowed
*/
if (!(new_ptr= (char *) my_malloc(array->m_psi_key,
(array->max_element+
array->alloc_increment) *
array->size_of_element,
MYF(array->malloc_flags | MY_WME))))
DBUG_RETURN(0);
if (array->elements)
memcpy(new_ptr, array->buffer,
array->elements * array->size_of_element);
array->malloc_flags&= ~MY_INIT_BUFFER_USED;
}
else if (!(new_ptr=(char*)
my_realloc(array->m_psi_key, array->buffer,
(array->max_element+ array->alloc_increment) *
array->size_of_element,
MYF(MY_WME | MY_ALLOW_ZERO_PTR |
array->malloc_flags))))
DBUG_RETURN(0);
array->buffer= (uchar*) new_ptr;
array->max_element+=array->alloc_increment;
}
DBUG_RETURN(array->buffer+(array->elements++ * array->size_of_element));
} | O0 | c | alloc_dynamic:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
jmp 0x27e7e
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jne 0x27fa7
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
andq $0x100, %rax # imm = 0x100
cmpq $0x0, %rax
je 0x27f3a
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x10(%rcx), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %esi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdx
orq $0x10, %rdx
callq 0x32270
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x27ef5
jmp 0x27ee8
movq $0x0, -0x8(%rbp)
jmp 0x27fd0
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0x27f22
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
callq 0x25230
movq -0x10(%rbp), %rax
movabsq $0xfffffeff, %rcx # imm = 0xFFFFFEFF
andq 0x20(%rax), %rcx
movq %rcx, 0x20(%rax)
jmp 0x27f8b
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x10(%rcx), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
orq $0x50, %rcx
callq 0x32440
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x27f89
jmp 0x27f7f
movq $0x0, -0x8(%rbp)
jmp 0x27fd0
jmp 0x27f8b
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x10(%rbp), %rax
addl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
jmp 0x27fa9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rdx
movl 0x8(%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, 0x8(%rdx)
movq -0x10(%rbp), %rdx
imull 0x14(%rdx), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| alloc_dynamic:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
jmp short $+2
loc_27E7E:
mov rax, [rbp+var_10]
mov eax, [rax+8]
mov rcx, [rbp+var_10]
cmp eax, [rcx+0Ch]
jnz loc_27FA7
mov rax, [rbp+var_10]
mov rax, [rax+20h]
and rax, 100h
cmp rax, 0
jz loc_27F3A
mov rax, [rbp+var_10]
mov edi, [rax+18h]
mov rax, [rbp+var_10]
mov eax, [rax+0Ch]
mov rcx, [rbp+var_10]
add eax, [rcx+10h]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov esi, eax
mov rax, [rbp+var_10]
mov rdx, [rax+20h]
or rdx, 10h
call my_malloc
mov [rbp+var_18], rax
cmp rax, 0
jnz short loc_27EF5
jmp short $+2
loc_27EE8:
mov [rbp+var_8], 0
jmp loc_27FD0
loc_27EF5:
mov rax, [rbp+var_10]
cmp dword ptr [rax+8], 0
jz short loc_27F22
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rsi, [rax]
mov rax, [rbp+var_10]
mov eax, [rax+8]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov edx, eax
call _memcpy
loc_27F22:
mov rax, [rbp+var_10]
mov rcx, 0FFFFFEFFh
and rcx, [rax+20h]
mov [rax+20h], rcx
jmp short loc_27F8B
loc_27F3A:
mov rax, [rbp+var_10]
mov edi, [rax+18h]
mov rax, [rbp+var_10]
mov rsi, [rax]
mov rax, [rbp+var_10]
mov eax, [rax+0Ch]
mov rcx, [rbp+var_10]
add eax, [rcx+10h]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov edx, eax
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
or rcx, 50h
call my_realloc
mov [rbp+var_18], rax
cmp rax, 0
jnz short loc_27F89
jmp short $+2
loc_27F7F:
mov [rbp+var_8], 0
jmp short loc_27FD0
loc_27F89:
jmp short $+2
loc_27F8B:
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_10]
mov ecx, [rax+10h]
mov rax, [rbp+var_10]
add ecx, [rax+0Ch]
mov [rax+0Ch], ecx
loc_27FA7:
jmp short $+2
loc_27FA9:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+8]
mov esi, ecx
add esi, 1
mov [rdx+8], esi
mov rdx, [rbp+var_10]
imul ecx, [rdx+14h]
mov ecx, ecx
add rax, rcx
mov [rbp+var_8], rax
loc_27FD0:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
| long long alloc_dynamic(long long *a1)
{
long long v1; // rax
int v2; // ecx
long long v4; // [rsp+8h] [rbp-18h]
if ( *((_DWORD *)a1 + 2) != *((_DWORD *)a1 + 3) )
goto LABEL_11;
if ( (a1[4] & 0x100) == 0 )
{
v4 = my_realloc(
*((unsigned int *)a1 + 6),
*a1,
(unsigned int)(*((_DWORD *)a1 + 5) * (*((_DWORD *)a1 + 4) + *((_DWORD *)a1 + 3))),
a1[4] | 0x50);
if ( !v4 )
return 0LL;
goto LABEL_10;
}
v4 = my_malloc(
*((unsigned int *)a1 + 6),
(unsigned int)(*((_DWORD *)a1 + 5) * (*((_DWORD *)a1 + 4) + *((_DWORD *)a1 + 3))),
a1[4] | 0x10);
if ( v4 )
{
if ( *((_DWORD *)a1 + 2) )
memcpy(v4, *a1, (unsigned int)(*((_DWORD *)a1 + 5) * *((_DWORD *)a1 + 2)));
a1[4] &= 0xFFFFFEFFuLL;
LABEL_10:
*a1 = v4;
*((_DWORD *)a1 + 3) += *((_DWORD *)a1 + 4);
LABEL_11:
v1 = *a1;
v2 = *((_DWORD *)a1 + 2);
*((_DWORD *)a1 + 2) = v2 + 1;
return (unsigned int)(*((_DWORD *)a1 + 5) * v2) + v1;
}
return 0LL;
}
| alloc_dynamic:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
JMP 0x00127e7e
LAB_00127e7e:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0xc]
JNZ 0x00127fa7
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
AND RAX,0x100
CMP RAX,0x0
JZ 0x00127f3a
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xc]
MOV RCX,qword ptr [RBP + -0x10]
ADD EAX,dword ptr [RCX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x20]
OR RDX,0x10
CALL 0x00132270
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JNZ 0x00127ef5
JMP 0x00127ee8
LAB_00127ee8:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00127fd0
LAB_00127ef5:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x8],0x0
JZ 0x00127f22
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV EDX,EAX
CALL 0x00125230
LAB_00127f22:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,0xfffffeff
AND RCX,qword ptr [RAX + 0x20]
MOV qword ptr [RAX + 0x20],RCX
JMP 0x00127f8b
LAB_00127f3a:
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xc]
MOV RCX,qword ptr [RBP + -0x10]
ADD EAX,dword ptr [RCX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
OR RCX,0x50
CALL 0x00132440
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JNZ 0x00127f89
JMP 0x00127f7f
LAB_00127f7f:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00127fd0
LAB_00127f89:
JMP 0x00127f8b
LAB_00127f8b:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
ADD ECX,dword ptr [RAX + 0xc]
MOV dword ptr [RAX + 0xc],ECX
LAB_00127fa7:
JMP 0x00127fa9
LAB_00127fa9:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x8]
MOV ESI,ECX
ADD ESI,0x1
MOV dword ptr [RDX + 0x8],ESI
MOV RDX,qword ptr [RBP + -0x10]
IMUL ECX,dword ptr [RDX + 0x14]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x8],RAX
LAB_00127fd0:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
long alloc_dynamic(long *param_1)
{
long lVar1;
void *local_20;
if ((int)param_1[1] == *(int *)((long)param_1 + 0xc)) {
if ((param_1[4] & 0x100U) == 0) {
local_20 = (void *)my_realloc((int)param_1[3],*param_1,
(*(int *)((long)param_1 + 0xc) + (int)param_1[2]) *
*(int *)((long)param_1 + 0x14),param_1[4] | 0x50);
if (local_20 == (void *)0x0) {
return 0;
}
}
else {
local_20 = (void *)my_malloc((int)param_1[3],
(*(int *)((long)param_1 + 0xc) + (int)param_1[2]) *
*(int *)((long)param_1 + 0x14),param_1[4] | 0x10);
if (local_20 == (void *)0x0) {
return 0;
}
if ((int)param_1[1] != 0) {
memcpy(local_20,(void *)*param_1,
(ulong)(uint)((int)param_1[1] * *(int *)((long)param_1 + 0x14)));
}
param_1[4] = param_1[4] & 0xfffffeff;
}
*param_1 = (long)local_20;
*(int *)((long)param_1 + 0xc) = (int)param_1[2] + *(int *)((long)param_1 + 0xc);
}
lVar1 = param_1[1];
*(int *)(param_1 + 1) = (int)lVar1 + 1;
return *param_1 + (ulong)(uint)((int)lVar1 * *(int *)((long)param_1 + 0x14));
}
| |
29,776 | alloc_dynamic | eloqsql/mysys/array.c | void *alloc_dynamic(DYNAMIC_ARRAY *array)
{
DBUG_ENTER("alloc_dynamic");
DBUG_ASSERT(array->size_of_element); /* Ensure init() is called */
if (array->elements == array->max_element)
{
char *new_ptr;
if (array->malloc_flags & MY_INIT_BUFFER_USED)
{
/*
In this scenario, the buffer is statically preallocated,
so we have to create an all-new malloc since we overflowed
*/
if (!(new_ptr= (char *) my_malloc(array->m_psi_key,
(array->max_element+
array->alloc_increment) *
array->size_of_element,
MYF(array->malloc_flags | MY_WME))))
DBUG_RETURN(0);
if (array->elements)
memcpy(new_ptr, array->buffer,
array->elements * array->size_of_element);
array->malloc_flags&= ~MY_INIT_BUFFER_USED;
}
else if (!(new_ptr=(char*)
my_realloc(array->m_psi_key, array->buffer,
(array->max_element+ array->alloc_increment) *
array->size_of_element,
MYF(MY_WME | MY_ALLOW_ZERO_PTR |
array->malloc_flags))))
DBUG_RETURN(0);
array->buffer= (uchar*) new_ptr;
array->max_element+=array->alloc_increment;
}
DBUG_RETURN(array->buffer+(array->elements++ * array->size_of_element));
} | O3 | c | alloc_dynamic:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rdi), %eax
cmpl 0xc(%rdi), %eax
jne 0x273c3
movq 0x20(%rbx), %rcx
btl $0x8, %ecx
movl 0x18(%rbx), %edi
jb 0x273c8
addl 0x10(%rbx), %eax
movq (%rbx), %rsi
imull 0x14(%rbx), %eax
orq $0x50, %rcx
movq %rax, %rdx
callq 0x2d898
movq %rax, %r14
testq %rax, %rax
jne 0x27405
jmp 0x27423
movq (%rbx), %r14
jmp 0x27411
addl 0x10(%rbx), %eax
imull 0x14(%rbx), %eax
orq $0x10, %rcx
movq %rax, %rsi
movq %rcx, %rdx
callq 0x2d775
testq %rax, %rax
je 0x27423
movq %rax, %r14
movl 0x8(%rbx), %edx
testl %edx, %edx
je 0x273fc
movq (%rbx), %rsi
imull 0x14(%rbx), %edx
movq %r14, %rdi
callq 0x24250
movl $0xfffffeff, %eax # imm = 0xFFFFFEFF
andq %rax, 0x20(%rbx)
movq %r14, (%rbx)
movl 0x8(%rbx), %eax
movl 0x10(%rbx), %ecx
addl %ecx, 0xc(%rbx)
leal 0x1(%rax), %ecx
movl %ecx, 0x8(%rbx)
imull 0x14(%rbx), %eax
addq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
xorl %eax, %eax
jmp 0x2741e
| alloc_dynamic:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
mov eax, [rdi+8]
cmp eax, [rdi+0Ch]
jnz short loc_273C3
mov rcx, [rbx+20h]
bt ecx, 8
mov edi, [rbx+18h]
jb short loc_273C8
add eax, [rbx+10h]
mov rsi, [rbx]
imul eax, [rbx+14h]
or rcx, 50h
mov rdx, rax
call my_realloc
mov r14, rax
test rax, rax
jnz short loc_27405
jmp short loc_27423
loc_273C3:
mov r14, [rbx]
jmp short loc_27411
loc_273C8:
add eax, [rbx+10h]
imul eax, [rbx+14h]
or rcx, 10h
mov rsi, rax
mov rdx, rcx
call my_malloc
test rax, rax
jz short loc_27423
mov r14, rax
mov edx, [rbx+8]
test edx, edx
jz short loc_273FC
mov rsi, [rbx]
imul edx, [rbx+14h]
mov rdi, r14
call _memcpy
loc_273FC:
mov eax, 0FFFFFEFFh
and [rbx+20h], rax
loc_27405:
mov [rbx], r14
mov eax, [rbx+8]
mov ecx, [rbx+10h]
add [rbx+0Ch], ecx
loc_27411:
lea ecx, [rax+1]
mov [rbx+8], ecx
imul eax, [rbx+14h]
add rax, r14
loc_2741E:
pop rbx
pop r14
pop rbp
retn
loc_27423:
xor eax, eax
jmp short loc_2741E
| long long alloc_dynamic(long long *a1)
{
int v2; // eax
long long v3; // rcx
long long v4; // rdi
long long v5; // r14
long long v6; // rax
int v7; // edx
v2 = *((_DWORD *)a1 + 2);
if ( v2 != *((_DWORD *)a1 + 3) )
{
v5 = *a1;
LABEL_11:
*((_DWORD *)a1 + 2) = v2 + 1;
return v5 + (unsigned int)(*((_DWORD *)a1 + 5) * v2);
}
v3 = a1[4];
v4 = *((unsigned int *)a1 + 6);
if ( (v3 & 0x100) == 0 )
{
v5 = my_realloc(v4, *a1, (unsigned int)(*((_DWORD *)a1 + 5) * (*((_DWORD *)a1 + 4) + v2)), v3 | 0x50);
if ( !v5 )
return 0LL;
goto LABEL_10;
}
v6 = my_malloc(v4, (unsigned int)(*((_DWORD *)a1 + 5) * (*((_DWORD *)a1 + 4) + v2)));
if ( v6 )
{
v5 = v6;
v7 = *((_DWORD *)a1 + 2);
if ( v7 )
memcpy(v6, *a1, (unsigned int)(*((_DWORD *)a1 + 5) * v7));
a1[4] &= 0xFFFFFEFFuLL;
LABEL_10:
*a1 = v5;
v2 = *((_DWORD *)a1 + 2);
*((_DWORD *)a1 + 3) += *((_DWORD *)a1 + 4);
goto LABEL_11;
}
return 0LL;
}
| alloc_dynamic:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV EAX,dword ptr [RDI + 0x8]
CMP EAX,dword ptr [RDI + 0xc]
JNZ 0x001273c3
MOV RCX,qword ptr [RBX + 0x20]
BT ECX,0x8
MOV EDI,dword ptr [RBX + 0x18]
JC 0x001273c8
ADD EAX,dword ptr [RBX + 0x10]
MOV RSI,qword ptr [RBX]
IMUL EAX,dword ptr [RBX + 0x14]
OR RCX,0x50
MOV RDX,RAX
CALL 0x0012d898
MOV R14,RAX
TEST RAX,RAX
JNZ 0x00127405
JMP 0x00127423
LAB_001273c3:
MOV R14,qword ptr [RBX]
JMP 0x00127411
LAB_001273c8:
ADD EAX,dword ptr [RBX + 0x10]
IMUL EAX,dword ptr [RBX + 0x14]
OR RCX,0x10
MOV RSI,RAX
MOV RDX,RCX
CALL 0x0012d775
TEST RAX,RAX
JZ 0x00127423
MOV R14,RAX
MOV EDX,dword ptr [RBX + 0x8]
TEST EDX,EDX
JZ 0x001273fc
MOV RSI,qword ptr [RBX]
IMUL EDX,dword ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x00124250
LAB_001273fc:
MOV EAX,0xfffffeff
AND qword ptr [RBX + 0x20],RAX
LAB_00127405:
MOV qword ptr [RBX],R14
MOV EAX,dword ptr [RBX + 0x8]
MOV ECX,dword ptr [RBX + 0x10]
ADD dword ptr [RBX + 0xc],ECX
LAB_00127411:
LEA ECX,[RAX + 0x1]
MOV dword ptr [RBX + 0x8],ECX
IMUL EAX,dword ptr [RBX + 0x14]
ADD RAX,R14
LAB_0012741e:
POP RBX
POP R14
POP RBP
RET
LAB_00127423:
XOR EAX,EAX
JMP 0x0012741e
|
long alloc_dynamic(long *param_1)
{
ulong uVar1;
int iVar2;
void *__dest;
long lVar3;
iVar2 = (int)param_1[1];
if (iVar2 == *(int *)((long)param_1 + 0xc)) {
uVar1 = param_1[4];
if (((uint)uVar1 >> 8 & 1) == 0) {
__dest = (void *)my_realloc((int)param_1[3],*param_1,
(iVar2 + (int)param_1[2]) * *(int *)((long)param_1 + 0x14),
uVar1 | 0x50);
if (__dest != (void *)0x0) {
LAB_00127405:
*param_1 = (long)__dest;
iVar2 = (int)param_1[1];
*(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + (int)param_1[2];
goto LAB_00127411;
}
}
else {
__dest = (void *)my_malloc((int)param_1[3],
(iVar2 + (int)param_1[2]) * *(int *)((long)param_1 + 0x14),
uVar1 | 0x10);
if (__dest != (void *)0x0) {
if ((int)param_1[1] != 0) {
memcpy(__dest,(void *)*param_1,
(ulong)(uint)((int)param_1[1] * *(int *)((long)param_1 + 0x14)));
}
param_1[4] = param_1[4] & 0xfffffeff;
goto LAB_00127405;
}
}
lVar3 = 0;
}
else {
__dest = (void *)*param_1;
LAB_00127411:
*(int *)(param_1 + 1) = iVar2 + 1;
lVar3 = (ulong)(uint)(iVar2 * *(int *)((long)param_1 + 0x14)) + (long)__dest;
}
return lVar3;
}
| |
29,777 | ma_print_keydata | eloqsql/storage/maria/ma_dbug.c | void _ma_print_keydata(FILE *stream, register HA_KEYSEG *keyseg,
const uchar *key, uint length)
{
int flag;
short int s_1;
long int l_1;
float f_1;
double d_1;
const uchar *end;
const uchar *key_end= key + length;
fputs("Key: \"",stream);
flag=0;
for (; keyseg->type && key < key_end ;keyseg++)
{
if (flag++)
putc('-',stream);
end= key+ keyseg->length;
if (keyseg->flag & HA_NULL_PART)
{
/* A NULL value is encoded by a 1-byte flag. Zero means NULL. */
if (! *(key++))
{
fprintf(stream,"NULL");
continue;
}
end++;
}
switch (keyseg->type) {
case HA_KEYTYPE_BINARY:
if (!(keyseg->flag & HA_SPACE_PACK) && keyseg->length == 1)
{ /* packed binary digit */
fprintf(stream,"%d",(uint) *key++);
break;
}
/* fall through */
case HA_KEYTYPE_TEXT:
case HA_KEYTYPE_NUM:
if (keyseg->flag & HA_SPACE_PACK)
{
fprintf(stream,"%.*s",(int) *key,key+1);
key+= (int) *key+1;
}
else
{
fprintf(stream,"%.*s",(int) keyseg->length,key);
key=end;
}
break;
case HA_KEYTYPE_INT8:
fprintf(stream,"%d",(int) *((const signed char*) key));
key=end;
break;
case HA_KEYTYPE_SHORT_INT:
s_1= mi_sint2korr(key);
fprintf(stream,"%d",(int) s_1);
key=end;
break;
case HA_KEYTYPE_USHORT_INT:
{
ushort u_1;
u_1= mi_uint2korr(key);
fprintf(stream,"%u",(uint) u_1);
key=end;
break;
}
case HA_KEYTYPE_LONG_INT:
l_1=mi_sint4korr(key);
fprintf(stream,"%ld",l_1);
key=end;
break;
case HA_KEYTYPE_ULONG_INT:
l_1=mi_uint4korr(key);
fprintf(stream,"%lu",(ulong) l_1);
key=end;
break;
case HA_KEYTYPE_INT24:
fprintf(stream,"%ld",(long) mi_sint3korr(key));
key=end;
break;
case HA_KEYTYPE_UINT24:
fprintf(stream,"%lu",(ulong) mi_uint3korr(key));
key=end;
break;
case HA_KEYTYPE_FLOAT:
mi_float4get(f_1,key);
fprintf(stream,"%g",(double) f_1);
key=end;
break;
case HA_KEYTYPE_DOUBLE:
mi_float8get(d_1,key);
fprintf(stream,"%g",d_1);
key=end;
break;
#ifdef HAVE_LONG_LONG
case HA_KEYTYPE_LONGLONG:
{
char buff[21];
longlong10_to_str(mi_sint8korr(key),buff,-10);
fprintf(stream,"%s",buff);
key=end;
break;
}
case HA_KEYTYPE_ULONGLONG:
{
char buff[21];
longlong10_to_str(mi_sint8korr(key),buff,10);
fprintf(stream,"%s",buff);
key=end;
break;
}
#endif
case HA_KEYTYPE_BIT:
{
uint i;
fputs("0x",stream);
for (i=0 ; i < keyseg->length ; i++)
fprintf(stream, "%02x", (uint) *key++);
key= end;
break;
}
case HA_KEYTYPE_VARTEXT1: /* VARCHAR and TEXT */
case HA_KEYTYPE_VARTEXT2: /* VARCHAR and TEXT */
case HA_KEYTYPE_VARBINARY1: /* VARBINARY and BLOB */
case HA_KEYTYPE_VARBINARY2: /* VARBINARY and BLOB */
{
uint tmp_length;
get_key_length(tmp_length,key);
/*
The following command sometimes gives a warning from valgrind.
Not yet sure if the bug is in valgrind, glibc or mysqld
*/
fprintf(stream,"%.*s",(int) tmp_length,key);
key+=tmp_length;
break;
}
default: break; /* This never happens */
}
}
fputs("\"\n",stream);
return;
} | O3 | c | ma_print_keydata:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %r15d
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %rsi
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq 0x722d2(%rip), %rdi # 0xfe0ad
movq %rsi, -0x60(%rbp)
callq 0x2a310
cmpb $0x0, 0x18(%rbx)
sete %al
testl %r15d, %r15d
sete %cl
orb %al, %cl
jne 0x8c162
movl %r15d, %eax
addq %r13, %rax
movq %rax, -0x70(%rbp)
leaq 0x18(%rbx), %r14
xorl %r12d, %r12d
testl %r12d, %r12d
je 0x8be1d
movl $0x2d, %edi
movq -0x60(%rbp), %rsi
callq 0x2a2f0
movzwl 0x14(%rbx), %ecx
leaq (%rcx,%r13), %rdi
movzwl 0x12(%rbx), %eax
testb $0x10, %al
jne 0x8be32
movq %r13, %r15
jmp 0x8be40
leaq 0x1(%r13), %r15
cmpb $0x0, (%r13)
je 0x8be73
incq %rdi
movq -0x60(%rbp), %r13
movzbl (%r14), %edx
decl %edx
cmpl $0x12, %edx
ja 0x8be8a
leaq 0x79b5a(%rip), %rsi # 0x1059b0
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movzbl (%r15), %r13d
cmpl $0xff, %r13d
je 0x8be92
movl $0x1, %eax
jmp 0x8bea4
movq -0x60(%rbp), %rdi
movl $0x1, %esi
leaq 0x6dc54(%rip), %rdx # 0xf9ad7
xorl %eax, %eax
callq 0x2a210
movq %r15, %rcx
jmp 0x8c136
movzwl 0x1(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %r13d
movl $0x3, %eax
addq %rax, %r15
movq -0x60(%rbp), %rdi
movl $0x1, %esi
leaq 0x77fe5(%rip), %rdx # 0x103e9c
movl %r13d, %ecx
movq %r15, %r8
xorl %eax, %eax
callq 0x2a210
movl %r13d, %ecx
addq %r15, %rcx
jmp 0x8c136
movzbl (%r15), %esi
movl %esi, %eax
shll $0x10, %eax
movzbl 0x1(%r15), %ecx
shll $0x8, %ecx
movzbl 0x2(%r15), %edx
movq %rdi, %r14
testb %sil, %sil
js 0x8c111
orl %edx, %eax
orl %ecx, %eax
jmp 0x8c11a
movl (%r15), %eax
bswapl %eax
movslq %eax, %rcx
movq %rdi, %r14
jmp 0x8c11d
movzwl 0x1(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movzbl (%r15), %ecx
shll $0x10, %ecx
orq %rax, %rcx
jmp 0x8c0a1
movl %r12d, -0x54(%rbp)
movq %r13, %r12
movq %rdi, %r13
movq (%r15), %rdi
bswapq %rdi
leaq -0x50(%rbp), %r14
movq %r14, %rsi
movl $0xfffffff6, %edx # imm = 0xFFFFFFF6
jmp 0x8c072
movl %eax, %edx
andl $0x1, %edx
movl %ecx, %esi
xorl $0x1, %esi
orw %dx, %si
jne 0x8bf77
movzbl (%r15), %ecx
incq %r15
movq %r13, %rdi
movl $0x1, %esi
leaq 0x71522(%rip), %rdx # 0xfd48d
xorl %eax, %eax
callq 0x2a210
jmp 0x8be8a
testb $0x1, %al
jne 0x8bf9c
movq %rdi, %r14
movq %r13, %rdi
movl $0x1, %esi
leaq 0x77f0f(%rip), %rdx # 0x103e9c
movq %r15, %r8
xorl %eax, %eax
callq 0x2a210
jmp 0x8c133
movzbl (%r15), %ecx
leaq 0x1(%r15), %r8
movq %r13, %rdi
movl $0x1, %esi
leaq 0x77ee9(%rip), %rdx # 0x103e9c
xorl %eax, %eax
callq 0x2a210
movzbl (%r15), %eax
leaq (%r15,%rax), %rcx
incq %rcx
jmp 0x8c136
movzbl 0x1(%r15), %eax
movzbl (%r15), %ecx
shll $0x8, %ecx
movswl %cx, %ecx
orl %eax, %ecx
jmp 0x8c00f
movzwl (%r15), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
movq %rdi, %r14
movq %r13, %rdi
movl $0x1, %esi
leaq 0x6d0c3(%rip), %rdx # 0xf90bd
jmp 0x8c021
movl (%r15), %eax
bswapl %eax
movd %eax, %xmm0
cvtss2sd %xmm0, %xmm0
jmp 0x8c038
movsbl (%r15), %ecx
movq %rdi, %r14
movq %r13, %rdi
movl $0x1, %esi
leaq 0x7146c(%rip), %rdx # 0xfd48d
xorl %eax, %eax
callq 0x2a210
jmp 0x8c133
movq (%r15), %rax
bswapq %rax
movq %rax, %xmm0
movq %rdi, %r14
movq %r13, %rdi
movl $0x1, %esi
leaq 0x74007(%rip), %rdx # 0x100051
movb $0x1, %al
callq 0x2a210
jmp 0x8c133
movl %r12d, -0x54(%rbp)
movq %r13, %r12
movq %rdi, %r13
movq (%r15), %rdi
bswapq %rdi
leaq -0x50(%rbp), %r14
movq %r14, %rsi
movl $0xa, %edx
callq 0xf545e
movq %r12, %rdi
movl -0x54(%rbp), %r12d
movl $0x1, %esi
leaq 0x7114b(%rip), %rdx # 0xfd1d5
movq %r14, %rcx
xorl %eax, %eax
callq 0x2a210
movq %r13, %rcx
jmp 0x8c136
movl (%r15), %ecx
bswapl %ecx
movq %rdi, %r14
movq %r13, %rdi
movl $0x1, %esi
leaq 0x6c85a(%rip), %rdx # 0xf890d
jmp 0x8c12c
movq %rdi, -0x68(%rbp)
leaq 0x71ff8(%rip), %rdi # 0xfe0b8
movq %r13, %rsi
callq 0x2a310
cmpw $0x0, 0x14(%rbx)
je 0x8c15c
movl %r12d, -0x54(%rbp)
xorl %r14d, %r14d
movq %r13, %r12
leaq 0x71fd7(%rip), %r13 # 0xfe0bb
movzbl (%r15,%r14), %ecx
movq %r12, %rdi
movl $0x1, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x2a210
movzwl 0x14(%rbx), %eax
incq %r14
cmpl %eax, %r14d
jb 0x8c0e4
movq -0x68(%rbp), %rcx
movl -0x54(%rbp), %r12d
jmp 0x8c136
orl %edx, %ecx
addl %ecx, %eax
addl $0xff000000, %eax # imm = 0xFF000000
movslq %eax, %rcx
movq %r13, %rdi
movl $0x1, %esi
leaq 0x71f88(%rip), %rdx # 0xfe0b4
xorl %eax, %eax
callq 0x2a210
movq %r14, %rcx
cmpb $0x0, 0x38(%rbx)
je 0x8c162
incl %r12d
leaq 0x20(%rbx), %rax
addq $0x38, %rbx
movq %rbx, %r14
movq %rax, %rbx
movq %rcx, %r13
cmpq -0x70(%rbp), %rcx
jb 0x8be0a
jmp 0x8c162
movq -0x68(%rbp), %rcx
jmp 0x8c136
leaq 0x71f57(%rip), %rdi # 0xfe0c0
movq -0x60(%rbp), %rsi
callq 0x2a310
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x8c190
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2a280
nopl (%rax)
| _ma_print_keydata:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r15d, ecx
mov r13, rdx
mov rbx, rsi
mov rsi, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea rdi, aKey; "Key: \""
mov [rbp+var_60], rsi
call _fputs
cmp byte ptr [rbx+18h], 0
setz al
test r15d, r15d
setz cl
or cl, al
jnz loc_8C162
mov eax, r15d
add rax, r13
mov [rbp+var_70], rax
lea r14, [rbx+18h]
xor r12d, r12d
loc_8BE0A:
test r12d, r12d
jz short loc_8BE1D
mov edi, 2Dh ; '-'
mov rsi, [rbp+var_60]
call _putc
loc_8BE1D:
movzx ecx, word ptr [rbx+14h]
lea rdi, [rcx+r13]
movzx eax, word ptr [rbx+12h]
test al, 10h
jnz short loc_8BE32
mov r15, r13
jmp short loc_8BE40
loc_8BE32:
lea r15, [r13+1]
cmp byte ptr [r13+0], 0
jz short loc_8BE73
inc rdi
loc_8BE40:
mov r13, [rbp+var_60]
movzx edx, byte ptr [r14]
dec edx; switch 19 cases
cmp edx, 12h
ja short def_8BE5D; jumptable 000000000008BE5D default case
lea rsi, jpt_8BE5D
movsxd rdx, ds:(jpt_8BE5D - 1059B0h)[rsi+rdx*4]
add rdx, rsi
jmp rdx; switch jump
loc_8BE5F:
movzx r13d, byte ptr [r15]; jumptable 000000000008BE5D cases 15-18
cmp r13d, 0FFh
jz short loc_8BE92
mov eax, 1
jmp short loc_8BEA4
loc_8BE73:
mov rdi, [rbp+var_60]
mov esi, 1
lea rdx, aNull; "NULL"
xor eax, eax
call ___fprintf_chk
def_8BE5D:
mov rcx, r15; jumptable 000000000008BE5D default case
jmp loc_8C136
loc_8BE92:
movzx eax, word ptr [r15+1]
rol ax, 8
movzx r13d, ax
mov eax, 3
loc_8BEA4:
add r15, rax
mov rdi, [rbp+var_60]
mov esi, 1
lea rdx, aS_1+3; "%.*s"
mov ecx, r13d
mov r8, r15
xor eax, eax
call ___fprintf_chk
mov ecx, r13d
add rcx, r15
jmp loc_8C136
loc_8BECF:
movzx esi, byte ptr [r15]; jumptable 000000000008BE5D case 12
mov eax, esi
shl eax, 10h
movzx ecx, byte ptr [r15+1]
shl ecx, 8
movzx edx, byte ptr [r15+2]
mov r14, rdi
test sil, sil
js loc_8C111
or eax, edx
or eax, ecx
jmp loc_8C11A
loc_8BEFA:
mov eax, [r15]; jumptable 000000000008BE5D case 4
bswap eax
movsxd rcx, eax
mov r14, rdi
jmp loc_8C11D
loc_8BF0A:
movzx eax, word ptr [r15+1]; jumptable 000000000008BE5D case 13
rol ax, 8
movzx eax, ax
movzx ecx, byte ptr [r15]
shl ecx, 10h
or rcx, rax
jmp loc_8C0A1
loc_8BF25:
mov [rbp+var_54], r12d; jumptable 000000000008BE5D case 10
mov r12, r13
mov r13, rdi
mov rdi, [r15]
bswap rdi
lea r14, [rbp+var_50]
mov rsi, r14
mov edx, 0FFFFFFF6h
jmp loc_8C072
loc_8BF46:
mov edx, eax; jumptable 000000000008BE5D case 2
and edx, 1
mov esi, ecx
xor esi, 1
or si, dx
jnz short loc_8BF77; jumptable 000000000008BE5D cases 1,7
movzx ecx, byte ptr [r15]
inc r15
mov rdi, r13
mov esi, 1
lea rdx, aPage9sRow3dHas_0+67h; "%d"
xor eax, eax
call ___fprintf_chk
jmp def_8BE5D; jumptable 000000000008BE5D default case
loc_8BF77:
test al, 1; jumptable 000000000008BE5D cases 1,7
jnz short loc_8BF9C
mov r14, rdi
mov rdi, r13
mov esi, 1
lea rdx, aS_1+3; "%.*s"
mov r8, r15
xor eax, eax
call ___fprintf_chk
jmp loc_8C133
loc_8BF9C:
movzx ecx, byte ptr [r15]
lea r8, [r15+1]
mov rdi, r13
mov esi, 1
lea rdx, aS_1+3; "%.*s"
xor eax, eax
call ___fprintf_chk
movzx eax, byte ptr [r15]
lea rcx, [r15+rax]
inc rcx
jmp loc_8C136
loc_8BFCA:
movzx eax, byte ptr [r15+1]; jumptable 000000000008BE5D case 3
movzx ecx, byte ptr [r15]
shl ecx, 8
movsx ecx, cx
or ecx, eax
jmp short loc_8C00F
loc_8BFDD:
movzx eax, word ptr [r15]; jumptable 000000000008BE5D case 8
rol ax, 8
movzx ecx, ax
mov r14, rdi
mov rdi, r13
mov esi, 1
lea rdx, aBlockSizeInCon+49h; "%u"
jmp short loc_8C021
loc_8BFFC:
mov eax, [r15]; jumptable 000000000008BE5D case 5
bswap eax
movd xmm0, eax
cvtss2sd xmm0, xmm0
jmp short loc_8C038
loc_8C00B:
movsx ecx, byte ptr [r15]; jumptable 000000000008BE5D case 14
loc_8C00F:
mov r14, rdi
mov rdi, r13
mov esi, 1
lea rdx, aPage9sRow3dHas_0+67h; "%d"
loc_8C021:
xor eax, eax
call ___fprintf_chk
jmp loc_8C133
loc_8C02D:
mov rax, [r15]; jumptable 000000000008BE5D case 6
bswap rax
movq xmm0, rax
loc_8C038:
mov r14, rdi
mov rdi, r13
mov esi, 1
lea rdx, aOptionSValueGA+22h; "%g"
mov al, 1
call ___fprintf_chk
jmp loc_8C133
loc_8C056:
mov [rbp+var_54], r12d; jumptable 000000000008BE5D case 11
mov r12, r13
mov r13, rdi
mov rdi, [r15]
bswap rdi
lea r14, [rbp+var_50]
mov rsi, r14
mov edx, 0Ah
loc_8C072:
call int10_to_str
mov rdi, r12
mov r12d, [rbp+var_54]
mov esi, 1
lea rdx, aBitmapPageLuS+10h; "%s"
mov rcx, r14
xor eax, eax
call ___fprintf_chk
mov rcx, r13
jmp loc_8C136
loc_8C09C:
mov ecx, [r15]; jumptable 000000000008BE5D case 9
bswap ecx
loc_8C0A1:
mov r14, rdi
mov rdi, r13
mov esi, 1
lea rdx, aLu+1; "%lu"
jmp short loc_8C12C
loc_8C0B5:
mov [rbp+var_68], rdi; jumptable 000000000008BE5D case 19
lea rdi, a0x; "0x"
mov rsi, r13
call _fputs
cmp word ptr [rbx+14h], 0
jz loc_8C15C
mov [rbp+var_54], r12d
xor r14d, r14d
mov r12, r13
lea r13, a02x; "%02x"
loc_8C0E4:
movzx ecx, byte ptr [r15+r14]
mov rdi, r12
mov esi, 1
mov rdx, r13
xor eax, eax
call ___fprintf_chk
movzx eax, word ptr [rbx+14h]
inc r14
cmp r14d, eax
jb short loc_8C0E4
mov rcx, [rbp+var_68]
mov r12d, [rbp+var_54]
jmp short loc_8C136
loc_8C111:
or ecx, edx
add eax, ecx
add eax, 0FF000000h
loc_8C11A:
movsxd rcx, eax
loc_8C11D:
mov rdi, r13
mov esi, 1
lea rdx, aLd; "%ld"
loc_8C12C:
xor eax, eax
call ___fprintf_chk
loc_8C133:
mov rcx, r14
loc_8C136:
cmp byte ptr [rbx+38h], 0
jz short loc_8C162
inc r12d
lea rax, [rbx+20h]
add rbx, 38h ; '8'
mov r14, rbx
mov rbx, rax
mov r13, rcx
cmp rcx, [rbp+var_70]
jb loc_8BE0A
jmp short loc_8C162
loc_8C15C:
mov rcx, [rbp+var_68]
jmp short loc_8C136
loc_8C162:
lea rdi, asc_FE0C0; "\"\n"
mov rsi, [rbp+var_60]
call _fputs
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_8C190
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8C190:
call ___stack_chk_fail
| unsigned long long ma_print_keydata(long long a1, long long a2, unsigned __int8 *a3, int a4)
{
long long v6; // rbx
_BYTE *v7; // r14
int v8; // r12d
long long v9; // rcx
unsigned __int8 *v10; // rdi
__int16 v11; // ax
unsigned __int8 *v12; // r15
int v13; // r13d
long long v14; // rax
unsigned long long v15; // rcx
const char *v16; // r15
int v17; // eax
int v18; // ecx
int v19; // edx
unsigned long long v20; // r14
int v21; // eax
long long v22; // rcx
unsigned long long v23; // rcx
long long v24; // r12
unsigned long long v25; // r13
unsigned long long v26; // rdi
long long v27; // rdx
int v28; // ecx
long long v29; // rcx
double v30; // xmm0_8
long long v31; // rdi
long long v32; // r14
unsigned __int8 *v34; // [rsp+0h] [rbp-70h]
int v36; // [rsp+1Ch] [rbp-54h]
char v37[32]; // [rsp+20h] [rbp-50h] BYREF
unsigned long long v38; // [rsp+40h] [rbp-30h]
v6 = a2;
v38 = __readfsqword(0x28u);
fputs("Key: \"", a1);
if ( *(_BYTE *)(a2 + 24) != 0 && a4 != 0 )
{
v34 = &a3[a4];
v7 = (_BYTE *)(a2 + 24);
v8 = 0;
while ( 1 )
{
if ( v8 )
putc(45LL, a1);
v9 = *(unsigned __int16 *)(v6 + 20);
v10 = &a3[v9];
v11 = *(_WORD *)(v6 + 18);
if ( (v11 & 0x10) == 0 )
break;
v12 = a3 + 1;
if ( *a3 )
{
++v10;
LABEL_9:
switch ( *v7 )
{
case 1:
case 7:
goto LABEL_23;
case 2:
if ( !(*(_WORD *)(v6 + 18) & 1 | (unsigned __int16)v9 ^ 1) )
{
v28 = *v12++;
__fprintf_chk(a1, 1LL, "%d", v28);
goto LABEL_13;
}
LABEL_23:
if ( (v11 & 1) != 0 )
{
__fprintf_chk(a1, 1LL, "%.*s", *v12, (const char *)v12 + 1);
v15 = (unsigned long long)&v12[*v12 + 1];
}
else
{
v20 = (unsigned long long)v10;
__fprintf_chk(a1, 1LL, "%.*s", v9, (const char *)v12);
LABEL_45:
v15 = v20;
}
break;
case 3:
v29 = v12[1] | (unsigned int)(__int16)(*v12 << 8);
goto LABEL_30;
case 4:
v22 = (int)_byteswap_ulong(*(_DWORD *)v12);
v20 = (unsigned long long)v10;
goto LABEL_44;
case 5:
v30 = COERCE_FLOAT(_byteswap_ulong(*(_DWORD *)v12));
goto LABEL_33;
case 6:
v30 = COERCE_DOUBLE(_byteswap_uint64(*(_QWORD *)v12));
LABEL_33:
v20 = (unsigned long long)v10;
__fprintf_chk(a1, 1LL, "%g", v30);
goto LABEL_45;
case 8:
v20 = (unsigned long long)v10;
__fprintf_chk(a1, 1LL, "%u", (unsigned __int16)__ROL2__(*(_WORD *)v12, 8));
goto LABEL_45;
case 9:
v23 = _byteswap_ulong(*(_DWORD *)v12);
goto LABEL_37;
case 0xA:
v36 = v8;
v24 = a1;
v25 = (unsigned long long)v10;
v26 = _byteswap_uint64(*(_QWORD *)v12);
v27 = 4294967286LL;
goto LABEL_35;
case 0xB:
v36 = v8;
v24 = a1;
v25 = (unsigned long long)v10;
v26 = _byteswap_uint64(*(_QWORD *)v12);
v27 = 10LL;
LABEL_35:
int10_to_str(v26, v37, v27);
v31 = v24;
v8 = v36;
__fprintf_chk(v31, 1LL, "%s", v37);
v15 = v25;
goto LABEL_46;
case 0xC:
v17 = *v12 << 16;
v18 = v12[1] << 8;
v19 = v12[2];
v20 = (unsigned long long)v10;
if ( (*v12 & 0x80u) != 0 )
v21 = (v19 | v18) + v17 - 0x1000000;
else
v21 = v18 | v19 | v17;
v22 = v21;
LABEL_44:
__fprintf_chk(a1, 1LL, "%ld", v22);
goto LABEL_45;
case 0xD:
v23 = (unsigned __int16)__ROL2__(*(_WORD *)(v12 + 1), 8) | (unsigned long long)(*v12 << 16);
LABEL_37:
v20 = (unsigned long long)v10;
__fprintf_chk(a1, 1LL, "%lu", v23);
goto LABEL_45;
case 0xE:
v29 = (unsigned int)(char)*v12;
LABEL_30:
v20 = (unsigned long long)v10;
__fprintf_chk(a1, 1LL, "%d", v29);
goto LABEL_45;
case 0xF:
case 0x10:
case 0x11:
case 0x12:
v13 = *v12;
if ( v13 == 255 )
{
v13 = (unsigned __int16)__ROL2__(*(_WORD *)(v12 + 1), 8);
v14 = 3LL;
}
else
{
v14 = 1LL;
}
v16 = (const char *)&v12[v14];
__fprintf_chk(a1, 1LL, "%.*s", v13, v16);
v15 = (unsigned long long)&v16[v13];
goto LABEL_46;
case 0x13:
fputs("0x", a1);
if ( *(_WORD *)(v6 + 20) )
{
v32 = 0LL;
do
__fprintf_chk(a1, 1LL, "%02x", v12[v32++]);
while ( (unsigned int)v32 < *(unsigned __int16 *)(v6 + 20) );
v15 = (unsigned long long)v10;
}
else
{
v15 = (unsigned long long)v10;
}
goto LABEL_46;
default:
goto LABEL_13;
}
goto LABEL_46;
}
__fprintf_chk(a1, 1LL, "NULL");
LABEL_13:
v15 = (unsigned long long)v12;
LABEL_46:
if ( *(_BYTE *)(v6 + 56) )
{
++v8;
v7 = (_BYTE *)(v6 + 56);
v6 += 32LL;
a3 = (unsigned __int8 *)v15;
if ( v15 < (unsigned long long)v34 )
continue;
}
goto LABEL_50;
}
v12 = a3;
goto LABEL_9;
}
LABEL_50:
fputs("\"\n", a1);
return __readfsqword(0x28u);
}
| _ma_print_keydata:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R15D,ECX
MOV R13,RDX
MOV RBX,RSI
MOV RSI,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA RDI,[0x1fe0ad]
MOV qword ptr [RBP + -0x60],RSI
CALL 0x0012a310
CMP byte ptr [RBX + 0x18],0x0
SETZ AL
TEST R15D,R15D
SETZ CL
OR CL,AL
JNZ 0x0018c162
MOV EAX,R15D
ADD RAX,R13
MOV qword ptr [RBP + -0x70],RAX
LEA R14,[RBX + 0x18]
XOR R12D,R12D
LAB_0018be0a:
TEST R12D,R12D
JZ 0x0018be1d
MOV EDI,0x2d
MOV RSI,qword ptr [RBP + -0x60]
CALL 0x0012a2f0
LAB_0018be1d:
MOVZX ECX,word ptr [RBX + 0x14]
LEA RDI,[RCX + R13*0x1]
MOVZX EAX,word ptr [RBX + 0x12]
TEST AL,0x10
JNZ 0x0018be32
MOV R15,R13
JMP 0x0018be40
LAB_0018be32:
LEA R15,[R13 + 0x1]
CMP byte ptr [R13],0x0
JZ 0x0018be73
INC RDI
LAB_0018be40:
MOV R13,qword ptr [RBP + -0x60]
MOVZX EDX,byte ptr [R14]
DEC EDX
CMP EDX,0x12
JA 0x0018be8a
LEA RSI,[0x2059b0]
MOVSXD RDX,dword ptr [RSI + RDX*0x4]
ADD RDX,RSI
switchD:
JMP RDX
caseD_f:
MOVZX R13D,byte ptr [R15]
CMP R13D,0xff
JZ 0x0018be92
MOV EAX,0x1
JMP 0x0018bea4
LAB_0018be73:
MOV RDI,qword ptr [RBP + -0x60]
MOV ESI,0x1
LEA RDX,[0x1f9ad7]
XOR EAX,EAX
CALL 0x0012a210
LAB_0018be8a:
MOV RCX,R15
JMP 0x0018c136
LAB_0018be92:
MOVZX EAX,word ptr [R15 + 0x1]
ROL AX,0x8
MOVZX R13D,AX
MOV EAX,0x3
LAB_0018bea4:
ADD R15,RAX
MOV RDI,qword ptr [RBP + -0x60]
MOV ESI,0x1
LEA RDX,[0x203e9c]
MOV ECX,R13D
MOV R8,R15
XOR EAX,EAX
CALL 0x0012a210
MOV ECX,R13D
ADD RCX,R15
JMP 0x0018c136
caseD_c:
MOVZX ESI,byte ptr [R15]
MOV EAX,ESI
SHL EAX,0x10
MOVZX ECX,byte ptr [R15 + 0x1]
SHL ECX,0x8
MOVZX EDX,byte ptr [R15 + 0x2]
MOV R14,RDI
TEST SIL,SIL
JS 0x0018c111
OR EAX,EDX
OR EAX,ECX
JMP 0x0018c11a
caseD_4:
MOV EAX,dword ptr [R15]
BSWAP EAX
MOVSXD RCX,EAX
MOV R14,RDI
JMP 0x0018c11d
caseD_d:
MOVZX EAX,word ptr [R15 + 0x1]
ROL AX,0x8
MOVZX EAX,AX
MOVZX ECX,byte ptr [R15]
SHL ECX,0x10
OR RCX,RAX
JMP 0x0018c0a1
caseD_a:
MOV dword ptr [RBP + -0x54],R12D
MOV R12,R13
MOV R13,RDI
MOV RDI,qword ptr [R15]
BSWAP RDI
LEA R14,[RBP + -0x50]
MOV RSI,R14
MOV EDX,0xfffffff6
JMP 0x0018c072
caseD_2:
MOV EDX,EAX
AND EDX,0x1
MOV ESI,ECX
XOR ESI,0x1
OR SI,DX
JNZ 0x0018bf77
MOVZX ECX,byte ptr [R15]
INC R15
MOV RDI,R13
MOV ESI,0x1
LEA RDX,[0x1fd48d]
XOR EAX,EAX
CALL 0x0012a210
JMP 0x0018be8a
caseD_1:
TEST AL,0x1
JNZ 0x0018bf9c
MOV R14,RDI
MOV RDI,R13
MOV ESI,0x1
LEA RDX,[0x203e9c]
MOV R8,R15
XOR EAX,EAX
CALL 0x0012a210
JMP 0x0018c133
LAB_0018bf9c:
MOVZX ECX,byte ptr [R15]
LEA R8,[R15 + 0x1]
MOV RDI,R13
MOV ESI,0x1
LEA RDX,[0x203e9c]
XOR EAX,EAX
CALL 0x0012a210
MOVZX EAX,byte ptr [R15]
LEA RCX,[R15 + RAX*0x1]
INC RCX
JMP 0x0018c136
caseD_3:
MOVZX EAX,byte ptr [R15 + 0x1]
MOVZX ECX,byte ptr [R15]
SHL ECX,0x8
MOVSX ECX,CX
OR ECX,EAX
JMP 0x0018c00f
caseD_8:
MOVZX EAX,word ptr [R15]
ROL AX,0x8
MOVZX ECX,AX
MOV R14,RDI
MOV RDI,R13
MOV ESI,0x1
LEA RDX,[0x1f90bd]
JMP 0x0018c021
caseD_5:
MOV EAX,dword ptr [R15]
BSWAP EAX
MOVD XMM0,EAX
CVTSS2SD XMM0,XMM0
JMP 0x0018c038
caseD_e:
MOVSX ECX,byte ptr [R15]
LAB_0018c00f:
MOV R14,RDI
MOV RDI,R13
MOV ESI,0x1
LEA RDX,[0x1fd48d]
LAB_0018c021:
XOR EAX,EAX
CALL 0x0012a210
JMP 0x0018c133
caseD_6:
MOV RAX,qword ptr [R15]
BSWAP RAX
MOVQ XMM0,RAX
LAB_0018c038:
MOV R14,RDI
MOV RDI,R13
MOV ESI,0x1
LEA RDX,[0x200051]
MOV AL,0x1
CALL 0x0012a210
JMP 0x0018c133
caseD_b:
MOV dword ptr [RBP + -0x54],R12D
MOV R12,R13
MOV R13,RDI
MOV RDI,qword ptr [R15]
BSWAP RDI
LEA R14,[RBP + -0x50]
MOV RSI,R14
MOV EDX,0xa
LAB_0018c072:
CALL 0x001f545e
MOV RDI,R12
MOV R12D,dword ptr [RBP + -0x54]
MOV ESI,0x1
LEA RDX,[0x1fd1d5]
MOV RCX,R14
XOR EAX,EAX
CALL 0x0012a210
MOV RCX,R13
JMP 0x0018c136
caseD_9:
MOV ECX,dword ptr [R15]
BSWAP ECX
LAB_0018c0a1:
MOV R14,RDI
MOV RDI,R13
MOV ESI,0x1
LEA RDX,[0x1f890d]
JMP 0x0018c12c
caseD_13:
MOV qword ptr [RBP + -0x68],RDI
LEA RDI,[0x1fe0b8]
MOV RSI,R13
CALL 0x0012a310
CMP word ptr [RBX + 0x14],0x0
JZ 0x0018c15c
MOV dword ptr [RBP + -0x54],R12D
XOR R14D,R14D
MOV R12,R13
LEA R13,[0x1fe0bb]
LAB_0018c0e4:
MOVZX ECX,byte ptr [R15 + R14*0x1]
MOV RDI,R12
MOV ESI,0x1
MOV RDX,R13
XOR EAX,EAX
CALL 0x0012a210
MOVZX EAX,word ptr [RBX + 0x14]
INC R14
CMP R14D,EAX
JC 0x0018c0e4
MOV RCX,qword ptr [RBP + -0x68]
MOV R12D,dword ptr [RBP + -0x54]
JMP 0x0018c136
LAB_0018c111:
OR ECX,EDX
ADD EAX,ECX
ADD EAX,0xff000000
LAB_0018c11a:
MOVSXD RCX,EAX
LAB_0018c11d:
MOV RDI,R13
MOV ESI,0x1
LEA RDX,[0x1fe0b4]
LAB_0018c12c:
XOR EAX,EAX
CALL 0x0012a210
LAB_0018c133:
MOV RCX,R14
default:
CMP byte ptr [RBX + 0x38],0x0
JZ 0x0018c162
INC R12D
LEA RAX,[RBX + 0x20]
ADD RBX,0x38
MOV R14,RBX
MOV RBX,RAX
MOV R13,RCX
CMP RCX,qword ptr [RBP + -0x70]
JC 0x0018be0a
JMP 0x0018c162
LAB_0018c15c:
MOV RCX,qword ptr [RBP + -0x68]
JMP 0x0018c136
LAB_0018c162:
LEA RDI,[0x1fe0c0]
MOV RSI,qword ptr [RBP + -0x60]
CALL 0x0012a310
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0018c190
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018c190:
CALL 0x0012a280
|
void _ma_print_keydata(FILE *param_1,long param_2,ulong *param_3,uint param_4)
{
ushort uVar1;
ushort uVar2;
ulong *puVar3;
double dVar4;
uint uVar5;
ulong uVar6;
char *pcVar7;
int8 uVar8;
int *puVar9;
int1 *puVar10;
ulong *puVar11;
int iVar12;
long lVar13;
ulong *puVar14;
long in_FS_OFFSET;
int1 local_58 [32];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
fputs("Key: \"",param_1);
if (param_4 != 0 && *(char *)(param_2 + 0x18) != '\0') {
puVar3 = (ulong *)((ulong)param_4 + (long)param_3);
puVar10 = (int1 *)(param_2 + 0x18);
iVar12 = 0;
do {
if (iVar12 != 0) {
putc(0x2d,param_1);
}
uVar1 = *(ushort *)(param_2 + 0x14);
puVar11 = (ulong *)((ulong)uVar1 + (long)param_3);
uVar2 = *(ushort *)(param_2 + 0x12);
puVar14 = param_3;
if ((uVar2 & 0x10) != 0) {
if ((byte)*param_3 != 0) {
puVar11 = (ulong *)((long)puVar11 + 1);
puVar14 = (ulong *)((long)param_3 + 1);
goto LAB_0018be40;
}
__fprintf_chk(param_1,1,&DAT_001f9ad7);
param_3 = (ulong *)((long)param_3 + 1);
goto switchD_0018be5d_default;
}
LAB_0018be40:
param_3 = puVar14;
switch(*puVar10) {
case 1:
case 7:
switchD_0018be5d_caseD_1:
if ((uVar2 & 1) == 0) {
__fprintf_chk(param_1,1,&DAT_00203e9c,(ulong)uVar1,puVar14);
param_3 = puVar11;
}
else {
__fprintf_chk(param_1,1,&DAT_00203e9c,(byte)*puVar14,(byte *)((long)puVar14 + 1));
param_3 = (ulong *)((long)puVar14 + (ulong)(byte)*puVar14 + 1);
}
break;
case 2:
if (uVar1 != 1 || (uVar2 & 1) != 0) goto switchD_0018be5d_caseD_1;
__fprintf_chk(param_1,1,"%d",(byte)*puVar14);
param_3 = (ulong *)((long)puVar14 + 1);
break;
case 3:
uVar5 = (int)(short)((ushort)(byte)*puVar14 << 8) | (uint)*(byte *)((long)puVar14 + 1);
goto LAB_0018c00f;
case 4:
uVar5 = (uint)*puVar14;
uVar5 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;
goto LAB_0018c11d;
case 5:
uVar5 = (uint)*puVar14;
dVar4 = (double)(float)(uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |
uVar5 << 0x18);
goto LAB_0018c038;
case 6:
uVar6 = *puVar14;
dVar4 = (double)(uVar6 >> 0x38 | (uVar6 & 0xff000000000000) >> 0x28 |
(uVar6 & 0xff0000000000) >> 0x18 | (uVar6 & 0xff00000000) >> 8 |
(uVar6 & 0xff000000) << 8 | (uVar6 & 0xff0000) << 0x18 |
(uVar6 & 0xff00) << 0x28 | uVar6 << 0x38);
LAB_0018c038:
__fprintf_chk(dVar4,param_1,1,"%g");
param_3 = puVar11;
break;
case 8:
uVar5 = (uint)(ushort)((ushort)*puVar14 << 8 | (ushort)*puVar14 >> 8);
pcVar7 = "%u";
goto LAB_0018c021;
case 9:
uVar5 = (uint)*puVar14;
uVar6 = (ulong)(uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |
uVar5 << 0x18);
goto LAB_0018c0a1;
case 10:
uVar6 = *puVar14;
uVar6 = uVar6 >> 0x38 | (uVar6 & 0xff000000000000) >> 0x28 |
(uVar6 & 0xff0000000000) >> 0x18 | (uVar6 & 0xff00000000) >> 8 |
(uVar6 & 0xff000000) << 8 | (uVar6 & 0xff0000) << 0x18 | (uVar6 & 0xff00) << 0x28 |
uVar6 << 0x38;
uVar8 = 0xfffffff6;
goto LAB_0018c072;
case 0xb:
uVar6 = *puVar14;
uVar6 = uVar6 >> 0x38 | (uVar6 & 0xff000000000000) >> 0x28 |
(uVar6 & 0xff0000000000) >> 0x18 | (uVar6 & 0xff00000000) >> 8 |
(uVar6 & 0xff000000) << 8 | (uVar6 & 0xff0000) << 0x18 | (uVar6 & 0xff00) << 0x28 |
uVar6 << 0x38;
uVar8 = 10;
LAB_0018c072:
int10_to_str(uVar6,local_58,uVar8);
__fprintf_chk(param_1,1,"%s",local_58);
param_3 = puVar11;
break;
case 0xc:
uVar5 = (uint)(byte)*puVar14 * 0x10000;
if ((char)(byte)*puVar14 < '\0') {
uVar5 = (uVar5 + CONCAT11(*(byte *)((long)puVar14 + 1),*(byte *)((long)puVar14 + 2))) -
0x1000000;
}
else {
uVar5 = uVar5 | *(byte *)((long)puVar14 + 2) | (uint)*(byte *)((long)puVar14 + 1) << 8;
}
LAB_0018c11d:
uVar6 = (ulong)(int)uVar5;
puVar9 = &DAT_001fe0b4;
LAB_0018c12c:
__fprintf_chk(param_1,1,puVar9,uVar6);
param_3 = puVar11;
break;
case 0xd:
uVar6 = (ulong)CONCAT12((byte)*puVar14,
*(ushort *)((long)puVar14 + 1) << 8 |
*(ushort *)((long)puVar14 + 1) >> 8);
LAB_0018c0a1:
puVar9 = &DAT_001f890d;
goto LAB_0018c12c;
case 0xe:
uVar5 = (uint)(char)(byte)*puVar14;
LAB_0018c00f:
pcVar7 = "%d";
LAB_0018c021:
__fprintf_chk(param_1,1,pcVar7,uVar5);
param_3 = puVar11;
break;
case 0xf:
case 0x10:
case 0x11:
case 0x12:
uVar6 = (ulong)(byte)*puVar14;
if ((byte)*puVar14 == 0xff) {
uVar6 = (ulong)(ushort)(*(ushort *)((long)puVar14 + 1) << 8 |
*(ushort *)((long)puVar14 + 1) >> 8);
lVar13 = 3;
}
else {
lVar13 = 1;
}
__fprintf_chk(param_1,1,&DAT_00203e9c,uVar6,(byte *)((long)puVar14 + lVar13));
param_3 = (ulong *)((byte *)((long)puVar14 + lVar13) + uVar6);
break;
case 0x13:
fputs("0x",param_1);
param_3 = puVar11;
if (*(short *)(param_2 + 0x14) != 0) {
lVar13 = 0;
do {
__fprintf_chk(param_1,1,&DAT_001fe0bb,*(byte *)((long)puVar14 + lVar13));
lVar13 = lVar13 + 1;
} while ((uint)lVar13 < (uint)*(ushort *)(param_2 + 0x14));
}
}
switchD_0018be5d_default:
if (*(char *)(param_2 + 0x38) == '\0') break;
iVar12 = iVar12 + 1;
puVar10 = (int1 *)(param_2 + 0x38);
param_2 = param_2 + 0x20;
} while (param_3 < puVar3);
}
fputs("\"\n",param_1);
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return;
}
| |
29,778 | bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0, emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent&&) | angrymouse[P]emittra/include/concurrentqueue.h | inline bool enqueue(U&& element)
{
index_t currentTailIndex = this->tailIndex.load(std::memory_order_relaxed);
index_t newTailIndex = 1 + currentTailIndex;
if ((currentTailIndex & static_cast<index_t>(BLOCK_SIZE - 1)) == 0) {
// We reached the end of a block, start a new one
auto head = this->headIndex.load(std::memory_order_relaxed);
assert(!details::circular_less_than<index_t>(currentTailIndex, head));
if (!details::circular_less_than<index_t>(head, currentTailIndex + BLOCK_SIZE) || (MAX_SUBQUEUE_SIZE != details::const_numeric_max<size_t>::value && (MAX_SUBQUEUE_SIZE == 0 || MAX_SUBQUEUE_SIZE - BLOCK_SIZE < currentTailIndex - head))) {
return false;
}
#ifdef MCDBGQ_NOLOCKFREE_IMPLICITPRODBLOCKINDEX
debug::DebugLock lock(mutex);
#endif
// Find out where we'll be inserting this block in the block index
BlockIndexEntry* idxEntry;
if (!insert_block_index_entry<allocMode>(idxEntry, currentTailIndex)) {
return false;
}
// Get ahold of a new block
auto newBlock = this->parent->ConcurrentQueue::template requisition_block<allocMode>();
if (newBlock == nullptr) {
rewind_block_index_tail();
idxEntry->value.store(nullptr, std::memory_order_relaxed);
return false;
}
#ifdef MCDBGQ_TRACKMEM
newBlock->owner = this;
#endif
newBlock->ConcurrentQueue::Block::template reset_empty<implicit_context>();
MOODYCAMEL_CONSTEXPR_IF (!MOODYCAMEL_NOEXCEPT_CTOR(T, U, new (static_cast<T*>(nullptr)) T(std::forward<U>(element)))) {
// May throw, try to insert now before we publish the fact that we have this new block
MOODYCAMEL_TRY {
new ((*newBlock)[currentTailIndex]) T(std::forward<U>(element));
}
MOODYCAMEL_CATCH (...) {
rewind_block_index_tail();
idxEntry->value.store(nullptr, std::memory_order_relaxed);
this->parent->add_block_to_free_list(newBlock);
MOODYCAMEL_RETHROW;
}
}
// Insert the new block into the index
idxEntry->value.store(newBlock, std::memory_order_relaxed);
this->tailBlock = newBlock;
MOODYCAMEL_CONSTEXPR_IF (!MOODYCAMEL_NOEXCEPT_CTOR(T, U, new (static_cast<T*>(nullptr)) T(std::forward<U>(element)))) {
this->tailIndex.store(newTailIndex, std::memory_order_release);
return true;
}
} | O0 | c | bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0, emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent&&):
subq $0xc8, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x20(%rsp)
addq $0x20, %rax
movq %rax, 0xc0(%rsp)
movl $0x0, 0xbc(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0xbc(%rsp), %edi
movl $0xffff, %esi # imm = 0xFFFF
callq 0x6420
movl %eax, 0xb8(%rsp)
movl 0xbc(%rsp), %eax
movl %eax, 0x34(%rsp)
decl %eax
subl $0x2, %eax
jb 0x14cf8
jmp 0x14cdb
movl 0x34(%rsp), %eax
subl $0x5, %eax
je 0x14d0a
jmp 0x14ce6
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xb0(%rsp)
jmp 0x14d1a
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xb0(%rsp)
jmp 0x14d1a
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
movq 0x58(%rsp), %rax
andq $0x1f, %rax
cmpq $0x0, %rax
jne 0x14e9c
movq 0x20(%rsp), %rax
addq $0x28, %rax
movq %rax, 0xa8(%rsp)
movl $0x0, 0xa4(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x10(%rsp)
movl 0xa4(%rsp), %edi
movl $0xffff, %esi # imm = 0xFFFF
callq 0x6420
movl %eax, 0xa0(%rsp)
movl 0xa4(%rsp), %eax
movl %eax, 0x1c(%rsp)
decl %eax
subl $0x2, %eax
jb 0x14dba
jmp 0x14d9d
movl 0x1c(%rsp), %eax
subl $0x5, %eax
je 0x14dcc
jmp 0x14da8
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x98(%rsp)
jmp 0x14ddc
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x98(%rsp)
jmp 0x14ddc
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
movq 0x58(%rsp), %rsi
addq $0x20, %rsi
callq 0xc700
testb $0x1, %al
jne 0x14e0a
movb $0x0, 0x77(%rsp)
jmp 0x14f60
movq 0x20(%rsp), %rdi
movq 0x58(%rsp), %rdx
leaq 0x40(%rsp), %rsi
callq 0x180a0
testb $0x1, %al
jne 0x14e2c
movb $0x0, 0x77(%rsp)
jmp 0x14f60
movq 0x20(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0x186a0
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x14e6f
movq 0x20(%rsp), %rdi
callq 0x18710
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x16e30
movb $0x0, 0x77(%rsp)
jmp 0x14f60
movq 0x38(%rsp), %rdi
callq 0x18850
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
movq 0x38(%rsp), %rsi
xorl %edx, %edx
callq 0x16e30
movq 0x20(%rsp), %rax
movq 0x38(%rsp), %rcx
movq %rcx, 0x40(%rax)
movq 0x20(%rsp), %rax
movq 0x40(%rax), %rdi
movq 0x58(%rsp), %rsi
callq 0x16b20
movq %rax, %rdi
movq 0x60(%rsp), %rsi
callq 0x188f0
movq 0x20(%rsp), %rcx
addq $0x20, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x90(%rsp)
movq %rax, 0x88(%rsp)
movl $0x3, 0x84(%rsp)
movq 0x90(%rsp), %rax
movq %rax, (%rsp)
movl 0x84(%rsp), %edi
movl $0xffff, %esi # imm = 0xFFFF
callq 0x6420
movl %eax, 0x80(%rsp)
movl 0x84(%rsp), %eax
movl %eax, 0xc(%rsp)
movq 0x88(%rsp), %rcx
movq %rcx, 0x78(%rsp)
subl $0x3, %eax
je 0x14f41
jmp 0x14f28
movl 0xc(%rsp), %eax
subl $0x5, %eax
je 0x14f4f
jmp 0x14f33
movq (%rsp), %rax
movq 0x78(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x14f5b
movq (%rsp), %rax
movq 0x78(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x14f5b
movq (%rsp), %rcx
movq 0x78(%rsp), %rax
xchgq %rax, (%rcx)
movb $0x1, 0x77(%rsp)
movb 0x77(%rsp), %al
andb $0x1, %al
addq $0xc8, %rsp
retq
nop
| _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer7enqueueILNS5_14AllocationModeE0ES3_EEbOT0_:
sub rsp, 0C8h
mov [rsp+0C8h+var_60], rdi
mov [rsp+0C8h+var_68], rsi
mov rax, [rsp+0C8h+var_60]
mov [rsp+0C8h+var_A8], rax
add rax, 20h ; ' '
mov [rsp+0C8h+var_8], rax
mov [rsp+0C8h+var_C], 0
mov rax, [rsp+0C8h+var_8]
mov [rsp+0C8h+var_A0], rax
mov edi, [rsp+0C8h+var_C]
mov esi, 0FFFFh
call _ZStanSt12memory_orderSt23__memory_order_modifier; std::operator&(std::memory_order,std::__memory_order_modifier)
mov [rsp+0C8h+var_10], eax
mov eax, [rsp+0C8h+var_C]
mov [rsp+0C8h+var_94], eax
dec eax
sub eax, 2
jb short loc_14CF8
jmp short $+2
loc_14CDB:
mov eax, [rsp+0C8h+var_94]
sub eax, 5
jz short loc_14D0A
jmp short $+2
loc_14CE6:
mov rax, [rsp+0C8h+var_A0]
mov rax, [rax]
mov [rsp+0C8h+var_18], rax
jmp short loc_14D1A
loc_14CF8:
mov rax, [rsp+0C8h+var_A0]
mov rax, [rax]
mov [rsp+0C8h+var_18], rax
jmp short loc_14D1A
loc_14D0A:
mov rax, [rsp+0C8h+var_A0]
mov rax, [rax]
mov [rsp+0C8h+var_18], rax
loc_14D1A:
mov rax, [rsp+0C8h+var_18]
mov [rsp+0C8h+var_70], rax
mov rax, [rsp+0C8h+var_70]
add rax, 1
mov [rsp+0C8h+var_78], rax
mov rax, [rsp+0C8h+var_70]
and rax, 1Fh
cmp rax, 0
jnz loc_14E9C
mov rax, [rsp+0C8h+var_A8]
add rax, 28h ; '('
mov [rsp+0C8h+var_20], rax
mov [rsp+0C8h+var_24], 0
mov rax, [rsp+0C8h+var_20]
mov [rsp+0C8h+var_B8], rax
mov edi, [rsp+0C8h+var_24]
mov esi, 0FFFFh
call _ZStanSt12memory_orderSt23__memory_order_modifier; std::operator&(std::memory_order,std::__memory_order_modifier)
mov [rsp+0C8h+var_28], eax
mov eax, [rsp+0C8h+var_24]
mov [rsp+0C8h+var_AC], eax
dec eax
sub eax, 2
jb short loc_14DBA
jmp short $+2
loc_14D9D:
mov eax, [rsp+0C8h+var_AC]
sub eax, 5
jz short loc_14DCC
jmp short $+2
loc_14DA8:
mov rax, [rsp+0C8h+var_B8]
mov rax, [rax]
mov [rsp+0C8h+var_30], rax
jmp short loc_14DDC
loc_14DBA:
mov rax, [rsp+0C8h+var_B8]
mov rax, [rax]
mov [rsp+0C8h+var_30], rax
jmp short loc_14DDC
loc_14DCC:
mov rax, [rsp+0C8h+var_B8]
mov rax, [rax]
mov [rsp+0C8h+var_30], rax
loc_14DDC:
mov rax, [rsp+0C8h+var_30]
mov [rsp+0C8h+var_80], rax
mov rdi, [rsp+0C8h+var_80]
mov rsi, [rsp+0C8h+var_70]
add rsi, 20h ; ' '
call _ZN10moodycamel7detailsL18circular_less_thanImEEbT_S2_; moodycamel::details::circular_less_than<ulong>(ulong,ulong)
test al, 1
jnz short loc_14E0A
mov [rsp+0C8h+var_51], 0
jmp loc_14F60
loc_14E0A:
mov rdi, [rsp+0C8h+var_A8]
mov rdx, [rsp+0C8h+var_70]
lea rsi, [rsp+0C8h+var_88]
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer24insert_block_index_entryILNS5_14AllocationModeE0EEEbRPNS6_15BlockIndexEntryEm; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::insert_block_index_entry<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::BlockIndexEntry *&,ulong)
test al, 1
jnz short loc_14E2C
mov [rsp+0C8h+var_51], 0
jmp loc_14F60
loc_14E2C:
mov rax, [rsp+0C8h+var_A8]
mov rdi, [rax+50h]
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE17requisition_blockILNS5_14AllocationModeE0EEEPNS5_5BlockEv; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::requisition_block<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>(void)
mov [rsp+0C8h+var_90], rax
cmp [rsp+0C8h+var_90], 0
jnz short loc_14E6F
mov rdi, [rsp+0C8h+var_A8]
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer23rewind_block_index_tailEv; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::rewind_block_index_tail(void)
mov rdi, [rsp+0C8h+var_88]
add rdi, 8
xor eax, eax
mov esi, eax
xor edx, edx
call _ZNSt6atomicIPN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS0_28ConcurrentQueueDefaultTraitsEE5BlockEE5storeES8_St12memory_order; std::atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block *>::store(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block *,std::memory_order)
mov [rsp+0C8h+var_51], 0
jmp loc_14F60
loc_14E6F:
mov rdi, [rsp+0C8h+var_90]
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE5Block11reset_emptyILNS5_17InnerQueueContextE0EEEvv; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block::reset_empty<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::InnerQueueContext)0>(void)
mov rdi, [rsp+0C8h+var_88]
add rdi, 8
mov rsi, [rsp+0C8h+var_90]
xor edx, edx
call _ZNSt6atomicIPN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS0_28ConcurrentQueueDefaultTraitsEE5BlockEE5storeES8_St12memory_order; std::atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block *>::store(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block *,std::memory_order)
mov rax, [rsp+0C8h+var_A8]
mov rcx, [rsp+0C8h+var_90]
mov [rax+40h], rcx
loc_14E9C:
mov rax, [rsp+0C8h+var_A8]
mov rdi, [rax+40h]
mov rsi, [rsp+0C8h+var_70]
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE5BlockixEm; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block::operator[](ulong)
mov rdi, rax
mov rsi, [rsp+0C8h+var_68]
call _ZN7emittra7Emittra11QueuedEventC2EOS1_; emittra::Emittra::QueuedEvent::QueuedEvent(emittra::Emittra::QueuedEvent&&)
mov rcx, [rsp+0C8h+var_A8]
add rcx, 20h ; ' '
mov rax, [rsp+0C8h+var_78]
mov [rsp+0C8h+var_38], rcx
mov [rsp+0C8h+var_40], rax
mov [rsp+0C8h+var_44], 3
mov rax, [rsp+0C8h+var_38]
mov [rsp+0C8h+var_C8], rax
mov edi, [rsp+0C8h+var_44]
mov esi, 0FFFFh
call _ZStanSt12memory_orderSt23__memory_order_modifier; std::operator&(std::memory_order,std::__memory_order_modifier)
mov [rsp+0C8h+var_48], eax
mov eax, [rsp+0C8h+var_44]
mov [rsp+0C8h+var_BC], eax
mov rcx, [rsp+0C8h+var_40]
mov [rsp+0C8h+var_50], rcx
sub eax, 3
jz short loc_14F41
jmp short $+2
loc_14F28:
mov eax, [rsp+0C8h+var_BC]
sub eax, 5
jz short loc_14F4F
jmp short $+2
loc_14F33:
mov rax, [rsp+0C8h+var_C8]
mov rcx, [rsp+0C8h+var_50]
mov [rax], rcx
jmp short loc_14F5B
loc_14F41:
mov rax, [rsp+0C8h+var_C8]
mov rcx, [rsp+0C8h+var_50]
mov [rax], rcx
jmp short loc_14F5B
loc_14F4F:
mov rcx, [rsp+0C8h+var_C8]
mov rax, [rsp+0C8h+var_50]
xchg rax, [rcx]
loc_14F5B:
mov [rsp+0C8h+var_51], 1
loc_14F60:
mov al, [rsp+0C8h+var_51]
and al, 1
add rsp, 0C8h
retn
| char moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0,emittra::Emittra::QueuedEvent>(
_QWORD *a1,
long long a2)
{
long long v2; // rax
volatile long long *v4; // [rsp+0h] [rbp-C8h]
long long v5; // [rsp+38h] [rbp-90h]
_QWORD v6[2]; // [rsp+40h] [rbp-88h] BYREF
long long v7; // [rsp+50h] [rbp-78h]
long long v8; // [rsp+58h] [rbp-70h]
long long v9; // [rsp+60h] [rbp-68h]
_QWORD *v10; // [rsp+68h] [rbp-60h]
long long v12; // [rsp+78h] [rbp-50h]
int v13; // [rsp+80h] [rbp-48h]
int v14; // [rsp+84h] [rbp-44h]
long long v15; // [rsp+88h] [rbp-40h]
_QWORD *v16; // [rsp+90h] [rbp-38h]
long long v17; // [rsp+98h] [rbp-30h]
int v18; // [rsp+A0h] [rbp-28h]
int v19; // [rsp+A4h] [rbp-24h]
_QWORD *v20; // [rsp+A8h] [rbp-20h]
long long v21; // [rsp+B0h] [rbp-18h]
int v22; // [rsp+B8h] [rbp-10h]
int v23; // [rsp+BCh] [rbp-Ch]
_QWORD *v24; // [rsp+C0h] [rbp-8h]
v10 = a1;
v9 = a2;
v24 = a1 + 4;
v23 = 0;
v22 = std::operator&(0, 0xFFFF);
v21 = a1[4];
v8 = v21;
v7 = v21 + 1;
if ( (v21 & 0x1F) == 0 )
{
v20 = a1 + 5;
v19 = 0;
v18 = std::operator&(0, 0xFFFF);
v17 = a1[5];
v6[1] = v17;
if ( !moodycamel::details::circular_less_than<unsigned long>(v17, v8 + 32) )
return 0;
if ( (moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::insert_block_index_entry<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>(
a1,
v6,
v8) & 1) == 0 )
return 0;
v5 = moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::requisition_block<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>(a1[10]);
if ( !v5 )
{
moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::rewind_block_index_tail(a1);
std::atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block *>::store(
v6[0] + 8LL,
0LL,
0LL);
return 0;
}
moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block::reset_empty<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::InnerQueueContext)0>(v5);
std::atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block *>::store(
v6[0] + 8LL,
v5,
0LL);
a1[8] = v5;
}
v2 = moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block::operator[](
a1[8],
v8);
emittra::Emittra::QueuedEvent::QueuedEvent(v2, v9);
v16 = a1 + 4;
v15 = v7;
v14 = 3;
v4 = a1 + 4;
v13 = std::operator&(3u, 0xFFFF);
v12 = v15;
if ( v14 == 3 )
{
*v4 = v12;
}
else if ( v14 == 5 )
{
_InterlockedExchange64(v4, v12);
}
else
{
*v4 = v12;
}
return 1;
}
| enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0,emittra::Emittra::QueuedEvent>:
SUB RSP,0xc8
MOV qword ptr [RSP + 0x68],RDI
MOV qword ptr [RSP + 0x60],RSI
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x20],RAX
ADD RAX,0x20
MOV qword ptr [RSP + 0xc0],RAX
MOV dword ptr [RSP + 0xbc],0x0
MOV RAX,qword ptr [RSP + 0xc0]
MOV qword ptr [RSP + 0x28],RAX
MOV EDI,dword ptr [RSP + 0xbc]
MOV ESI,0xffff
CALL 0x00106420
MOV dword ptr [RSP + 0xb8],EAX
MOV EAX,dword ptr [RSP + 0xbc]
MOV dword ptr [RSP + 0x34],EAX
DEC EAX
SUB EAX,0x2
JC 0x00114cf8
JMP 0x00114cdb
LAB_00114cdb:
MOV EAX,dword ptr [RSP + 0x34]
SUB EAX,0x5
JZ 0x00114d0a
JMP 0x00114ce6
LAB_00114ce6:
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xb0],RAX
JMP 0x00114d1a
LAB_00114cf8:
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xb0],RAX
JMP 0x00114d1a
LAB_00114d0a:
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xb0],RAX
LAB_00114d1a:
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x58]
ADD RAX,0x1
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x58]
AND RAX,0x1f
CMP RAX,0x0
JNZ 0x00114e9c
MOV RAX,qword ptr [RSP + 0x20]
ADD RAX,0x28
MOV qword ptr [RSP + 0xa8],RAX
MOV dword ptr [RSP + 0xa4],0x0
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x10],RAX
MOV EDI,dword ptr [RSP + 0xa4]
MOV ESI,0xffff
CALL 0x00106420
MOV dword ptr [RSP + 0xa0],EAX
MOV EAX,dword ptr [RSP + 0xa4]
MOV dword ptr [RSP + 0x1c],EAX
DEC EAX
SUB EAX,0x2
JC 0x00114dba
JMP 0x00114d9d
LAB_00114d9d:
MOV EAX,dword ptr [RSP + 0x1c]
SUB EAX,0x5
JZ 0x00114dcc
JMP 0x00114da8
LAB_00114da8:
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x98],RAX
JMP 0x00114ddc
LAB_00114dba:
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x98],RAX
JMP 0x00114ddc
LAB_00114dcc:
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x98],RAX
LAB_00114ddc:
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x58]
ADD RSI,0x20
CALL 0x0010c700
TEST AL,0x1
JNZ 0x00114e0a
MOV byte ptr [RSP + 0x77],0x0
JMP 0x00114f60
LAB_00114e0a:
MOV RDI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x58]
LEA RSI,[RSP + 0x40]
CALL 0x001180a0
TEST AL,0x1
JNZ 0x00114e2c
MOV byte ptr [RSP + 0x77],0x0
JMP 0x00114f60
LAB_00114e2c:
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RAX + 0x50]
CALL 0x001186a0
MOV qword ptr [RSP + 0x38],RAX
CMP qword ptr [RSP + 0x38],0x0
JNZ 0x00114e6f
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00118710
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
XOR EAX,EAX
MOV ESI,EAX
XOR EDX,EDX
CALL 0x00116e30
MOV byte ptr [RSP + 0x77],0x0
JMP 0x00114f60
LAB_00114e6f:
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x00118850
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
MOV RSI,qword ptr [RSP + 0x38]
XOR EDX,EDX
CALL 0x00116e30
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x38]
MOV qword ptr [RAX + 0x40],RCX
LAB_00114e9c:
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RSP + 0x58]
CALL 0x00116b20
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x60]
CALL 0x001188f0
MOV RCX,qword ptr [RSP + 0x20]
ADD RCX,0x20
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x90],RCX
MOV qword ptr [RSP + 0x88],RAX
MOV dword ptr [RSP + 0x84],0x3
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP],RAX
MOV EDI,dword ptr [RSP + 0x84]
MOV ESI,0xffff
CALL 0x00106420
MOV dword ptr [RSP + 0x80],EAX
MOV EAX,dword ptr [RSP + 0x84]
MOV dword ptr [RSP + 0xc],EAX
MOV RCX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x78],RCX
SUB EAX,0x3
JZ 0x00114f41
JMP 0x00114f28
LAB_00114f28:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,0x5
JZ 0x00114f4f
JMP 0x00114f33
LAB_00114f33:
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x78]
MOV qword ptr [RAX],RCX
JMP 0x00114f5b
LAB_00114f41:
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x78]
MOV qword ptr [RAX],RCX
JMP 0x00114f5b
LAB_00114f4f:
MOV RCX,qword ptr [RSP]
MOV RAX,qword ptr [RSP + 0x78]
XCHG qword ptr [RCX],RAX
LAB_00114f5b:
MOV byte ptr [RSP + 0x77],0x1
LAB_00114f60:
MOV AL,byte ptr [RSP + 0x77]
AND AL,0x1
ADD RSP,0xc8
RET
|
/* bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,
moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,
moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0,
emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent&&) */
bool __thiscall
moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>
::ImplicitProducer::
enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0,emittra::Emittra::QueuedEvent>
(ImplicitProducer *this,QueuedEvent *param_1)
{
bool bVar1;
ImplicitProducer *pIVar2;
Block *this_00;
QueuedEvent *this_01;
BlockIndexEntry *local_88;
ulong local_80;
long local_78;
ulong local_70;
QueuedEvent *local_68;
ImplicitProducer *local_60;
int local_44;
long local_40;
ImplicitProducer *local_38;
ulong local_30;
int4 local_28;
int local_24;
ImplicitProducer *local_20;
ulong local_18;
int4 local_10;
int local_c;
ImplicitProducer *local_8;
pIVar2 = this + 0x20;
local_c = 0;
local_68 = param_1;
local_60 = this;
local_8 = pIVar2;
local_10 = std::operator&(0,0xffff);
if (local_c - 1U < 2) {
local_18 = *(ulong *)pIVar2;
}
else if (local_c == 5) {
local_18 = *(ulong *)pIVar2;
}
else {
local_18 = *(ulong *)pIVar2;
}
local_70 = local_18;
local_78 = local_18 + 1;
if ((local_18 & 0x1f) == 0) {
pIVar2 = this + 0x28;
local_24 = 0;
local_20 = pIVar2;
local_28 = std::operator&(0,0xffff);
if (local_24 - 1U < 2) {
local_30 = *(ulong *)pIVar2;
}
else if (local_24 == 5) {
local_30 = *(ulong *)pIVar2;
}
else {
local_30 = *(ulong *)pIVar2;
}
local_80 = local_30;
bVar1 = details::circular_less_than<unsigned_long>(local_30,local_70 + 0x20);
if (!bVar1) {
return false;
}
bVar1 = insert_block_index_entry<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>
(this,&local_88,local_70);
if (!bVar1) {
return false;
}
this_00 = requisition_block<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>
(*(ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>
**)(this + 0x50));
if (this_00 == (Block *)0x0) {
rewind_block_index_tail(this);
std::
atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block*>
::store((atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block*>
*)(local_88 + 8),0,0);
return false;
}
Block::
reset_empty<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::InnerQueueContext)0>
(this_00);
std::
atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block*>
::store((atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block*>
*)(local_88 + 8),this_00,0);
*(Block **)(this + 0x40) = this_00;
}
this_01 = (QueuedEvent *)Block::operator[](*(Block **)(this + 0x40),local_70);
emittra::Emittra::QueuedEvent::QueuedEvent(this_01,local_68);
pIVar2 = this + 0x20;
local_40 = local_78;
local_44 = 3;
local_38 = pIVar2;
std::operator&(3,0xffff);
if (local_44 == 3) {
*(long *)pIVar2 = local_40;
}
else if (local_44 == 5) {
LOCK();
*(long *)pIVar2 = local_40;
UNLOCK();
}
else {
*(long *)pIVar2 = local_40;
}
return true;
}
| |
29,779 | bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0, emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent&&) | angrymouse[P]emittra/include/concurrentqueue.h | inline bool enqueue(U&& element)
{
index_t currentTailIndex = this->tailIndex.load(std::memory_order_relaxed);
index_t newTailIndex = 1 + currentTailIndex;
if ((currentTailIndex & static_cast<index_t>(BLOCK_SIZE - 1)) == 0) {
// We reached the end of a block, start a new one
auto head = this->headIndex.load(std::memory_order_relaxed);
assert(!details::circular_less_than<index_t>(currentTailIndex, head));
if (!details::circular_less_than<index_t>(head, currentTailIndex + BLOCK_SIZE) || (MAX_SUBQUEUE_SIZE != details::const_numeric_max<size_t>::value && (MAX_SUBQUEUE_SIZE == 0 || MAX_SUBQUEUE_SIZE - BLOCK_SIZE < currentTailIndex - head))) {
return false;
}
#ifdef MCDBGQ_NOLOCKFREE_IMPLICITPRODBLOCKINDEX
debug::DebugLock lock(mutex);
#endif
// Find out where we'll be inserting this block in the block index
BlockIndexEntry* idxEntry;
if (!insert_block_index_entry<allocMode>(idxEntry, currentTailIndex)) {
return false;
}
// Get ahold of a new block
auto newBlock = this->parent->ConcurrentQueue::template requisition_block<allocMode>();
if (newBlock == nullptr) {
rewind_block_index_tail();
idxEntry->value.store(nullptr, std::memory_order_relaxed);
return false;
}
#ifdef MCDBGQ_TRACKMEM
newBlock->owner = this;
#endif
newBlock->ConcurrentQueue::Block::template reset_empty<implicit_context>();
MOODYCAMEL_CONSTEXPR_IF (!MOODYCAMEL_NOEXCEPT_CTOR(T, U, new (static_cast<T*>(nullptr)) T(std::forward<U>(element)))) {
// May throw, try to insert now before we publish the fact that we have this new block
MOODYCAMEL_TRY {
new ((*newBlock)[currentTailIndex]) T(std::forward<U>(element));
}
MOODYCAMEL_CATCH (...) {
rewind_block_index_tail();
idxEntry->value.store(nullptr, std::memory_order_relaxed);
this->parent->add_block_to_free_list(newBlock);
MOODYCAMEL_RETHROW;
}
}
// Insert the new block into the index
idxEntry->value.store(newBlock, std::memory_order_relaxed);
this->tailBlock = newBlock;
MOODYCAMEL_CONSTEXPR_IF (!MOODYCAMEL_NOEXCEPT_CTOR(T, U, new (static_cast<T*>(nullptr)) T(std::forward<U>(element)))) {
this->tailIndex.store(newTailIndex, std::memory_order_release);
return true;
}
} | O1 | c | bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0, emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rdi), %r15
movq %r15, %r12
andq $0x1f, %r12
je 0x7e7f
incq %r15
movq 0x40(%rbx), %rax
leaq (%r12,%r12,4), %rcx
movups (%r14), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x10(%r14), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
xorl %edx, %edx
movq %rdx, 0x10(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq %rdx, 0x20(%rax,%rcx,8)
movups 0x18(%r14), %xmm0
movq %rdx, 0x20(%r14)
movups %xmm0, 0x18(%rax,%rcx,8)
movq %rdx, 0x18(%r14)
movq %r15, 0x20(%rbx)
movb $0x1, %al
jmp 0x7f6a
movq 0x28(%rbx), %rax
subq %r15, %rax
movabsq $0x7fffffffffffffdf, %rcx # imm = 0x7FFFFFFFFFFFFFDF
addq %rcx, %rax
orq $0x20, %rcx
cmpq %rcx, %rax
jae 0x7f68
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x7f12
movq 0x8(%rax), %rdx
incq %rdx
movq (%rax), %rcx
movq 0x18(%rax), %rsi
decq %rcx
andq %rdx, %rcx
movq (%rsi,%rcx,8), %r13
movq (%r13), %rdx
cmpq $0x1, %rdx
je 0x7f06
movq 0x8(%r13), %rdx
testq %rdx, %rdx
je 0x7f06
movq %rbx, %rdi
callq 0x83d0
testb %al, %al
je 0x7f16
movq 0x60(%rbx), %rax
movq 0x8(%rax), %rcx
incq %rcx
movq (%rax), %rdx
movq 0x18(%rax), %rsi
decq %rdx
andq %rcx, %rdx
movq (%rsi,%rdx,8), %r13
movq %r15, (%r13)
movq %rdx, 0x8(%rax)
jmp 0x7f0e
movq %r15, (%r13)
movq %rcx, 0x8(%rax)
movb $0x1, %al
jmp 0x7f18
xorl %eax, %eax
jmp 0x7f18
xorl %eax, %eax
testb %al, %al
je 0x7f68
movq 0x50(%rbx), %rdi
callq 0x867c
testq %rax, %rax
je 0x7f3f
movq $0x0, 0x508(%rax)
movq %rax, 0x8(%r13)
movq %rax, 0x40(%rbx)
jmp 0x7f5f
movq 0x60(%rbx), %rcx
movq 0x8(%rcx), %rdx
decq %rdx
movq (%rcx), %rsi
decq %rsi
andq %rdx, %rsi
movq %rsi, 0x8(%rcx)
movq $0x0, 0x8(%r13)
testq %rax, %rax
jne 0x7e34
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer7enqueueILNS5_14AllocationModeE0ES3_EEbOT0_:
push r15
push r14
push r13
push r12
push rbx
mov r14, rsi
mov rbx, rdi
mov r15, [rdi+20h]
mov r12, r15
and r12, 1Fh
jz short loc_7E7F
loc_7E34:
inc r15
mov rax, [rbx+40h]
lea rcx, [r12+r12*4]
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [rax+rcx*8], xmm0
mov rdx, [r14+10h]
mov [rax+rcx*8+10h], rdx
xor edx, edx
mov [r14+10h], rdx
xorps xmm0, xmm0
movups xmmword ptr [r14], xmm0
mov [rax+rcx*8+20h], rdx
movups xmm0, xmmword ptr [r14+18h]
mov [r14+20h], rdx
movups xmmword ptr [rax+rcx*8+18h], xmm0
mov [r14+18h], rdx
mov [rbx+20h], r15
mov al, 1
jmp loc_7F6A
loc_7E7F:
mov rax, [rbx+28h]
sub rax, r15
mov rcx, 7FFFFFFFFFFFFFDFh
add rax, rcx
or rcx, 20h
cmp rax, rcx
jnb loc_7F68
mov rax, [rbx+60h]
test rax, rax
jz short loc_7F12
mov rdx, [rax+8]
inc rdx
mov rcx, [rax]
mov rsi, [rax+18h]
dec rcx
and rcx, rdx
mov r13, [rsi+rcx*8]
mov rdx, [r13+0]
cmp rdx, 1
jz short loc_7F06
mov rdx, [r13+8]
test rdx, rdx
jz short loc_7F06
mov rdi, rbx
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer15new_block_indexEv; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::new_block_index(void)
test al, al
jz short loc_7F16
mov rax, [rbx+60h]
mov rcx, [rax+8]
inc rcx
mov rdx, [rax]
mov rsi, [rax+18h]
dec rdx
and rdx, rcx
mov r13, [rsi+rdx*8]
mov [r13+0], r15
mov [rax+8], rdx
jmp short loc_7F0E
loc_7F06:
mov [r13+0], r15
mov [rax+8], rcx
loc_7F0E:
mov al, 1
jmp short loc_7F18
loc_7F12:
xor eax, eax
jmp short loc_7F18
loc_7F16:
xor eax, eax
loc_7F18:
test al, al
jz short loc_7F68
mov rdi, [rbx+50h]
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE17requisition_blockILNS5_14AllocationModeE0EEEPNS5_5BlockEv; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::requisition_block<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>(void)
test rax, rax
jz short loc_7F3F
mov qword ptr [rax+508h], 0
mov [r13+8], rax
mov [rbx+40h], rax
jmp short loc_7F5F
loc_7F3F:
mov rcx, [rbx+60h]
mov rdx, [rcx+8]
dec rdx
mov rsi, [rcx]
dec rsi
and rsi, rdx
mov [rcx+8], rsi
mov qword ptr [r13+8], 0
loc_7F5F:
test rax, rax
jnz loc_7E34
loc_7F68:
xor eax, eax
loc_7F6A:
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| char moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0,emittra::Emittra::QueuedEvent>(
_QWORD *a1,
long long a2)
{
_QWORD *v2; // r13
long long v3; // r15
long long v4; // rax
long long v5; // rcx
__int128 v6; // xmm0
_QWORD *v8; // rax
long long v9; // rcx
_QWORD *v10; // rax
long long v11; // rdx
char v12; // al
long long v13; // rax
v3 = a1[4];
if ( (v3 & 0x1F) != 0 )
{
LABEL_2:
v4 = a1[8];
v5 = 5 * (v3 & 0x1F);
*(_OWORD *)(v4 + 8 * v5) = *(_OWORD *)a2;
*(_QWORD *)(v4 + 8 * v5 + 16) = *(_QWORD *)(a2 + 16);
*(_QWORD *)(a2 + 16) = 0LL;
*(_OWORD *)a2 = 0LL;
*(_QWORD *)(v4 + 8 * v5 + 32) = 0LL;
v6 = *(_OWORD *)(a2 + 24);
*(_QWORD *)(a2 + 32) = 0LL;
*(_OWORD *)(v4 + 8 * v5 + 24) = v6;
*(_QWORD *)(a2 + 24) = 0LL;
a1[4] = v3 + 1;
return 1;
}
if ( (unsigned long long)(a1[5] - v3 + 0x7FFFFFFFFFFFFFDFLL) < 0x7FFFFFFFFFFFFFFFLL )
{
v8 = (_QWORD *)a1[12];
if ( v8 )
{
v9 = (v8[1] + 1LL) & (*v8 - 1LL);
v2 = *(_QWORD **)(v8[3] + 8 * v9);
if ( *v2 == 1LL || !v2[1] )
{
*v2 = v3;
v8[1] = v9;
}
else
{
if ( !(unsigned __int8)moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::new_block_index(a1) )
{
v12 = 0;
goto LABEL_13;
}
v10 = (_QWORD *)a1[12];
v11 = (v10[1] + 1LL) & (*v10 - 1LL);
v2 = *(_QWORD **)(v10[3] + 8 * v11);
*v2 = v3;
v10[1] = v11;
}
v12 = 1;
}
else
{
v12 = 0;
}
LABEL_13:
if ( v12 )
{
v13 = moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::requisition_block<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>(a1[10]);
if ( v13 )
{
*(_QWORD *)(v13 + 1288) = 0LL;
v2[1] = v13;
a1[8] = v13;
}
else
{
*(_QWORD *)(a1[12] + 8LL) = (*(_QWORD *)(a1[12] + 8LL) - 1LL) & (*(_QWORD *)a1[12] - 1LL);
v2[1] = 0LL;
}
if ( v13 )
goto LABEL_2;
}
}
return 0;
}
| enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0,emittra::Emittra::QueuedEvent>:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
MOV R15,qword ptr [RDI + 0x20]
MOV R12,R15
AND R12,0x1f
JZ 0x00107e7f
LAB_00107e34:
INC R15
MOV RAX,qword ptr [RBX + 0x40]
LEA RCX,[R12 + R12*0x4]
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [RAX + RCX*0x8],XMM0
MOV RDX,qword ptr [R14 + 0x10]
MOV qword ptr [RAX + RCX*0x8 + 0x10],RDX
XOR EDX,EDX
MOV qword ptr [R14 + 0x10],RDX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14],XMM0
MOV qword ptr [RAX + RCX*0x8 + 0x20],RDX
MOVUPS XMM0,xmmword ptr [R14 + 0x18]
MOV qword ptr [R14 + 0x20],RDX
MOVUPS xmmword ptr [RAX + RCX*0x8 + 0x18],XMM0
MOV qword ptr [R14 + 0x18],RDX
MOV qword ptr [RBX + 0x20],R15
MOV AL,0x1
JMP 0x00107f6a
LAB_00107e7f:
MOV RAX,qword ptr [RBX + 0x28]
SUB RAX,R15
MOV RCX,0x7fffffffffffffdf
ADD RAX,RCX
OR RCX,0x20
CMP RAX,RCX
JNC 0x00107f68
MOV RAX,qword ptr [RBX + 0x60]
TEST RAX,RAX
JZ 0x00107f12
MOV RDX,qword ptr [RAX + 0x8]
INC RDX
MOV RCX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x18]
DEC RCX
AND RCX,RDX
MOV R13,qword ptr [RSI + RCX*0x8]
MOV RDX,qword ptr [R13]
CMP RDX,0x1
JZ 0x00107f06
MOV RDX,qword ptr [R13 + 0x8]
TEST RDX,RDX
JZ 0x00107f06
MOV RDI,RBX
CALL 0x001083d0
TEST AL,AL
JZ 0x00107f16
MOV RAX,qword ptr [RBX + 0x60]
MOV RCX,qword ptr [RAX + 0x8]
INC RCX
MOV RDX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x18]
DEC RDX
AND RDX,RCX
MOV R13,qword ptr [RSI + RDX*0x8]
MOV qword ptr [R13],R15
MOV qword ptr [RAX + 0x8],RDX
JMP 0x00107f0e
LAB_00107f06:
MOV qword ptr [R13],R15
MOV qword ptr [RAX + 0x8],RCX
LAB_00107f0e:
MOV AL,0x1
JMP 0x00107f18
LAB_00107f12:
XOR EAX,EAX
JMP 0x00107f18
LAB_00107f16:
XOR EAX,EAX
LAB_00107f18:
TEST AL,AL
JZ 0x00107f68
MOV RDI,qword ptr [RBX + 0x50]
CALL 0x0010867c
TEST RAX,RAX
JZ 0x00107f3f
MOV qword ptr [RAX + 0x508],0x0
MOV qword ptr [R13 + 0x8],RAX
MOV qword ptr [RBX + 0x40],RAX
JMP 0x00107f5f
LAB_00107f3f:
MOV RCX,qword ptr [RBX + 0x60]
MOV RDX,qword ptr [RCX + 0x8]
DEC RDX
MOV RSI,qword ptr [RCX]
DEC RSI
AND RSI,RDX
MOV qword ptr [RCX + 0x8],RSI
MOV qword ptr [R13 + 0x8],0x0
LAB_00107f5f:
TEST RAX,RAX
JNZ 0x00107e34
LAB_00107f68:
XOR EAX,EAX
LAB_00107f6a:
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,
moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,
moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0,
emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent&&) */
bool __thiscall
moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>
::ImplicitProducer::
enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0,emittra::Emittra::QueuedEvent>
(ImplicitProducer *this,QueuedEvent *param_1)
{
int8 *puVar1;
ulong uVar2;
long lVar3;
long *plVar4;
int8 uVar5;
bool bVar6;
char cVar7;
Block *pBVar8;
ulong uVar9;
ulong uVar10;
ulong *unaff_R13;
uVar2 = *(ulong *)(this + 0x20);
uVar10 = uVar2 & 0x1f;
if (uVar10 == 0) {
if ((*(long *)(this + 0x28) - uVar2) + 0x7fffffffffffffdf < 0x7fffffffffffffff) {
plVar4 = *(long **)(this + 0x60);
if (plVar4 == (long *)0x0) {
bVar6 = false;
}
else {
uVar9 = *plVar4 - 1U & plVar4[1] + 1U;
unaff_R13 = *(ulong **)(plVar4[3] + uVar9 * 8);
if ((*unaff_R13 == 1) || (unaff_R13[1] == 0)) {
*unaff_R13 = uVar2;
plVar4[1] = uVar9;
}
else {
cVar7 = new_block_index(this);
if (cVar7 == '\0') {
bVar6 = false;
goto LAB_00107f18;
}
plVar4 = *(long **)(this + 0x60);
uVar9 = *plVar4 - 1U & plVar4[1] + 1U;
unaff_R13 = *(ulong **)(plVar4[3] + uVar9 * 8);
*unaff_R13 = uVar2;
plVar4[1] = uVar9;
}
bVar6 = true;
}
LAB_00107f18:
if (bVar6) {
pBVar8 = requisition_block<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>
(*(ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>
**)(this + 0x50));
if (pBVar8 != (Block *)0x0) {
*(int8 *)(pBVar8 + 0x508) = 0;
unaff_R13[1] = (ulong)pBVar8;
*(Block **)(this + 0x40) = pBVar8;
goto LAB_00107e34;
}
plVar4 = *(long **)(this + 0x60);
plVar4[1] = *plVar4 - 1U & plVar4[1] - 1U;
unaff_R13[1] = 0;
}
}
bVar6 = false;
}
else {
LAB_00107e34:
lVar3 = *(long *)(this + 0x40);
uVar5 = *(int8 *)(param_1 + 8);
puVar1 = (int8 *)(lVar3 + uVar10 * 0x28);
*puVar1 = *(int8 *)param_1;
puVar1[1] = uVar5;
*(int8 *)(lVar3 + 0x10 + uVar10 * 0x28) = *(int8 *)(param_1 + 0x10);
*(int8 *)(param_1 + 0x10) = 0;
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(lVar3 + 0x20 + uVar10 * 0x28) = 0;
uVar5 = *(int8 *)(param_1 + 0x20);
*(int8 *)(param_1 + 0x20) = 0;
puVar1 = (int8 *)(lVar3 + 0x18 + uVar10 * 0x28);
*puVar1 = *(int8 *)(param_1 + 0x18);
puVar1[1] = uVar5;
*(int8 *)(param_1 + 0x18) = 0;
*(ulong *)(this + 0x20) = uVar2 + 1;
bVar6 = true;
}
return bVar6;
}
| |
29,780 | bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0, emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent&&) | angrymouse[P]emittra/include/concurrentqueue.h | inline bool enqueue(U&& element)
{
index_t currentTailIndex = this->tailIndex.load(std::memory_order_relaxed);
index_t newTailIndex = 1 + currentTailIndex;
if ((currentTailIndex & static_cast<index_t>(BLOCK_SIZE - 1)) == 0) {
// We reached the end of a block, start a new one
auto head = this->headIndex.load(std::memory_order_relaxed);
assert(!details::circular_less_than<index_t>(currentTailIndex, head));
if (!details::circular_less_than<index_t>(head, currentTailIndex + BLOCK_SIZE) || (MAX_SUBQUEUE_SIZE != details::const_numeric_max<size_t>::value && (MAX_SUBQUEUE_SIZE == 0 || MAX_SUBQUEUE_SIZE - BLOCK_SIZE < currentTailIndex - head))) {
return false;
}
#ifdef MCDBGQ_NOLOCKFREE_IMPLICITPRODBLOCKINDEX
debug::DebugLock lock(mutex);
#endif
// Find out where we'll be inserting this block in the block index
BlockIndexEntry* idxEntry;
if (!insert_block_index_entry<allocMode>(idxEntry, currentTailIndex)) {
return false;
}
// Get ahold of a new block
auto newBlock = this->parent->ConcurrentQueue::template requisition_block<allocMode>();
if (newBlock == nullptr) {
rewind_block_index_tail();
idxEntry->value.store(nullptr, std::memory_order_relaxed);
return false;
}
#ifdef MCDBGQ_TRACKMEM
newBlock->owner = this;
#endif
newBlock->ConcurrentQueue::Block::template reset_empty<implicit_context>();
MOODYCAMEL_CONSTEXPR_IF (!MOODYCAMEL_NOEXCEPT_CTOR(T, U, new (static_cast<T*>(nullptr)) T(std::forward<U>(element)))) {
// May throw, try to insert now before we publish the fact that we have this new block
MOODYCAMEL_TRY {
new ((*newBlock)[currentTailIndex]) T(std::forward<U>(element));
}
MOODYCAMEL_CATCH (...) {
rewind_block_index_tail();
idxEntry->value.store(nullptr, std::memory_order_relaxed);
this->parent->add_block_to_free_list(newBlock);
MOODYCAMEL_RETHROW;
}
}
// Insert the new block into the index
idxEntry->value.store(newBlock, std::memory_order_relaxed);
this->tailBlock = newBlock;
MOODYCAMEL_CONSTEXPR_IF (!MOODYCAMEL_NOEXCEPT_CTOR(T, U, new (static_cast<T*>(nullptr)) T(std::forward<U>(element)))) {
this->tailIndex.store(newTailIndex, std::memory_order_release);
return true;
}
} | O3 | c | bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0, emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rdi), %r15
movq %r15, %r12
andq $0x1f, %r12
je 0x7da3
movq 0x40(%rbx), %rax
incq %r15
leaq (%r12,%r12,4), %rcx
movups (%r14), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x10(%r14), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
xorl %edx, %edx
movq %rdx, 0x10(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq %rdx, 0x20(%rax,%rcx,8)
movups 0x18(%r14), %xmm0
movq %rdx, 0x20(%r14)
movups %xmm0, 0x18(%rax,%rcx,8)
movq %rdx, 0x18(%r14)
movq %r15, 0x20(%rbx)
movb $0x1, %al
jmp 0x7e7e
movq 0x28(%rbx), %rax
subq %r15, %rax
movabsq $0x7fffffffffffffdf, %rcx # imm = 0x7FFFFFFFFFFFFFDF
addq %rcx, %rax
orq $0x20, %rcx
cmpq %rcx, %rax
jae 0x7e7c
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x7e7c
movq 0x8(%rax), %rdx
incq %rdx
movq (%rax), %rcx
movq 0x18(%rax), %rsi
decq %rcx
andq %rdx, %rcx
movq (%rsi,%rcx,8), %r13
movq (%r13), %rdx
cmpq $0x1, %rdx
je 0x7e2e
movq 0x8(%r13), %rdx
testq %rdx, %rdx
je 0x7e2e
movq %rbx, %rdi
callq 0x8296
testb %al, %al
je 0x7e7c
movq 0x60(%rbx), %rax
movq 0x8(%rax), %rcx
incq %rcx
movq (%rax), %rdx
movq 0x18(%rax), %rsi
decq %rdx
andq %rcx, %rdx
movq (%rsi,%rdx,8), %r13
movq %r15, (%r13)
movq %rdx, 0x8(%rax)
jmp 0x7e36
movq %r15, (%r13)
movq %rcx, 0x8(%rax)
movq 0x50(%rbx), %rdi
callq 0x8554
testq %rax, %rax
je 0x7e5c
movq $0x0, 0x508(%rax)
movq %rax, 0x8(%r13)
movq %rax, 0x40(%rbx)
jmp 0x7d5c
movq 0x60(%rbx), %rax
movq 0x8(%rax), %rcx
decq %rcx
movq (%rax), %rdx
decq %rdx
andq %rcx, %rdx
movq %rdx, 0x8(%rax)
movq $0x0, 0x8(%r13)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer7enqueueILNS5_14AllocationModeE0ES3_EEbOT0_:
push r15
push r14
push r13
push r12
push rbx
mov r14, rsi
mov rbx, rdi
mov r15, [rdi+20h]
mov r12, r15
and r12, 1Fh
jz short loc_7DA3
mov rax, [rbx+40h]
loc_7D5C:
inc r15
lea rcx, [r12+r12*4]
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [rax+rcx*8], xmm0
mov rdx, [r14+10h]
mov [rax+rcx*8+10h], rdx
xor edx, edx
mov [r14+10h], rdx
xorps xmm0, xmm0
movups xmmword ptr [r14], xmm0
mov [rax+rcx*8+20h], rdx
movups xmm0, xmmword ptr [r14+18h]
mov [r14+20h], rdx
movups xmmword ptr [rax+rcx*8+18h], xmm0
mov [r14+18h], rdx
mov [rbx+20h], r15
mov al, 1
jmp loc_7E7E
loc_7DA3:
mov rax, [rbx+28h]
sub rax, r15
mov rcx, 7FFFFFFFFFFFFFDFh
add rax, rcx
or rcx, 20h
cmp rax, rcx
jnb loc_7E7C
mov rax, [rbx+60h]
test rax, rax
jz loc_7E7C
mov rdx, [rax+8]
inc rdx
mov rcx, [rax]
mov rsi, [rax+18h]
dec rcx
and rcx, rdx
mov r13, [rsi+rcx*8]
mov rdx, [r13+0]
cmp rdx, 1
jz short loc_7E2E
mov rdx, [r13+8]
test rdx, rdx
jz short loc_7E2E
mov rdi, rbx
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer15new_block_indexEv; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::new_block_index(void)
test al, al
jz short loc_7E7C
mov rax, [rbx+60h]
mov rcx, [rax+8]
inc rcx
mov rdx, [rax]
mov rsi, [rax+18h]
dec rdx
and rdx, rcx
mov r13, [rsi+rdx*8]
mov [r13+0], r15
mov [rax+8], rdx
jmp short loc_7E36
loc_7E2E:
mov [r13+0], r15
mov [rax+8], rcx
loc_7E36:
mov rdi, [rbx+50h]
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE17requisition_blockILNS5_14AllocationModeE0EEEPNS5_5BlockEv; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::requisition_block<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>(void)
test rax, rax
jz short loc_7E5C
mov qword ptr [rax+508h], 0
mov [r13+8], rax
mov [rbx+40h], rax
jmp loc_7D5C
loc_7E5C:
mov rax, [rbx+60h]
mov rcx, [rax+8]
dec rcx
mov rdx, [rax]
dec rdx
and rdx, rcx
mov [rax+8], rdx
mov qword ptr [r13+8], 0
loc_7E7C:
xor eax, eax
loc_7E7E:
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| char moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0,emittra::Emittra::QueuedEvent>(
_QWORD *a1,
long long a2)
{
long long v2; // r15
long long v3; // rax
long long v4; // rcx
__int128 v5; // xmm0
_QWORD *v7; // rax
long long v8; // rcx
_QWORD *v9; // r13
_QWORD *v10; // rax
long long v11; // rdx
v2 = a1[4];
if ( (v2 & 0x1F) != 0 )
{
v3 = a1[8];
LABEL_3:
v4 = 5 * (v2 & 0x1F);
*(_OWORD *)(v3 + 8 * v4) = *(_OWORD *)a2;
*(_QWORD *)(v3 + 8 * v4 + 16) = *(_QWORD *)(a2 + 16);
*(_QWORD *)(a2 + 16) = 0LL;
*(_OWORD *)a2 = 0LL;
*(_QWORD *)(v3 + 8 * v4 + 32) = 0LL;
v5 = *(_OWORD *)(a2 + 24);
*(_QWORD *)(a2 + 32) = 0LL;
*(_OWORD *)(v3 + 8 * v4 + 24) = v5;
*(_QWORD *)(a2 + 24) = 0LL;
a1[4] = v2 + 1;
return 1;
}
if ( (unsigned long long)(a1[5] - v2 + 0x7FFFFFFFFFFFFFDFLL) < 0x7FFFFFFFFFFFFFFFLL )
{
v7 = (_QWORD *)a1[12];
if ( v7 )
{
v8 = (v7[1] + 1LL) & (*v7 - 1LL);
v9 = *(_QWORD **)(v7[3] + 8 * v8);
if ( *v9 == 1LL || !v9[1] )
{
*v9 = v2;
v7[1] = v8;
}
else
{
if ( !(unsigned __int8)moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::new_block_index(a1) )
return 0;
v10 = (_QWORD *)a1[12];
v11 = (v10[1] + 1LL) & (*v10 - 1LL);
v9 = *(_QWORD **)(v10[3] + 8 * v11);
*v9 = v2;
v10[1] = v11;
}
v3 = moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::requisition_block<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>(a1[10]);
if ( v3 )
{
*(_QWORD *)(v3 + 1288) = 0LL;
v9[1] = v3;
a1[8] = v3;
goto LABEL_3;
}
*(_QWORD *)(a1[12] + 8LL) = (*(_QWORD *)(a1[12] + 8LL) - 1LL) & (*(_QWORD *)a1[12] - 1LL);
v9[1] = 0LL;
}
}
return 0;
}
| enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0,emittra::Emittra::QueuedEvent>:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
MOV R15,qword ptr [RDI + 0x20]
MOV R12,R15
AND R12,0x1f
JZ 0x00107da3
MOV RAX,qword ptr [RBX + 0x40]
LAB_00107d5c:
INC R15
LEA RCX,[R12 + R12*0x4]
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [RAX + RCX*0x8],XMM0
MOV RDX,qword ptr [R14 + 0x10]
MOV qword ptr [RAX + RCX*0x8 + 0x10],RDX
XOR EDX,EDX
MOV qword ptr [R14 + 0x10],RDX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14],XMM0
MOV qword ptr [RAX + RCX*0x8 + 0x20],RDX
MOVUPS XMM0,xmmword ptr [R14 + 0x18]
MOV qword ptr [R14 + 0x20],RDX
MOVUPS xmmword ptr [RAX + RCX*0x8 + 0x18],XMM0
MOV qword ptr [R14 + 0x18],RDX
MOV qword ptr [RBX + 0x20],R15
MOV AL,0x1
JMP 0x00107e7e
LAB_00107da3:
MOV RAX,qword ptr [RBX + 0x28]
SUB RAX,R15
MOV RCX,0x7fffffffffffffdf
ADD RAX,RCX
OR RCX,0x20
CMP RAX,RCX
JNC 0x00107e7c
MOV RAX,qword ptr [RBX + 0x60]
TEST RAX,RAX
JZ 0x00107e7c
MOV RDX,qword ptr [RAX + 0x8]
INC RDX
MOV RCX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x18]
DEC RCX
AND RCX,RDX
MOV R13,qword ptr [RSI + RCX*0x8]
MOV RDX,qword ptr [R13]
CMP RDX,0x1
JZ 0x00107e2e
MOV RDX,qword ptr [R13 + 0x8]
TEST RDX,RDX
JZ 0x00107e2e
MOV RDI,RBX
CALL 0x00108296
TEST AL,AL
JZ 0x00107e7c
MOV RAX,qword ptr [RBX + 0x60]
MOV RCX,qword ptr [RAX + 0x8]
INC RCX
MOV RDX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x18]
DEC RDX
AND RDX,RCX
MOV R13,qword ptr [RSI + RDX*0x8]
MOV qword ptr [R13],R15
MOV qword ptr [RAX + 0x8],RDX
JMP 0x00107e36
LAB_00107e2e:
MOV qword ptr [R13],R15
MOV qword ptr [RAX + 0x8],RCX
LAB_00107e36:
MOV RDI,qword ptr [RBX + 0x50]
CALL 0x00108554
TEST RAX,RAX
JZ 0x00107e5c
MOV qword ptr [RAX + 0x508],0x0
MOV qword ptr [R13 + 0x8],RAX
MOV qword ptr [RBX + 0x40],RAX
JMP 0x00107d5c
LAB_00107e5c:
MOV RAX,qword ptr [RBX + 0x60]
MOV RCX,qword ptr [RAX + 0x8]
DEC RCX
MOV RDX,qword ptr [RAX]
DEC RDX
AND RDX,RCX
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [R13 + 0x8],0x0
LAB_00107e7c:
XOR EAX,EAX
LAB_00107e7e:
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,
moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,
moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0,
emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent&&) */
bool __thiscall
moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>
::ImplicitProducer::
enqueue<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0,emittra::Emittra::QueuedEvent>
(ImplicitProducer *this,QueuedEvent *param_1)
{
ulong uVar1;
long *plVar2;
int8 uVar3;
bool bVar4;
char cVar5;
Block *pBVar6;
ulong uVar7;
ulong uVar8;
ulong *puVar9;
uVar1 = *(ulong *)(this + 0x20);
uVar8 = uVar1 & 0x1f;
if (uVar8 == 0) {
if (((*(long *)(this + 0x28) - uVar1) + 0x7fffffffffffffdf < 0x7fffffffffffffff) &&
(plVar2 = *(long **)(this + 0x60), plVar2 != (long *)0x0)) {
uVar7 = *plVar2 - 1U & plVar2[1] + 1U;
puVar9 = *(ulong **)(plVar2[3] + uVar7 * 8);
if ((*puVar9 == 1) || (puVar9[1] == 0)) {
*puVar9 = uVar1;
plVar2[1] = uVar7;
}
else {
cVar5 = new_block_index(this);
if (cVar5 == '\0') goto LAB_00107e7c;
plVar2 = *(long **)(this + 0x60);
uVar7 = *plVar2 - 1U & plVar2[1] + 1U;
puVar9 = *(ulong **)(plVar2[3] + uVar7 * 8);
*puVar9 = uVar1;
plVar2[1] = uVar7;
}
pBVar6 = requisition_block<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>
(*(ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>
**)(this + 0x50));
if (pBVar6 != (Block *)0x0) {
*(int8 *)(pBVar6 + 0x508) = 0;
puVar9[1] = (ulong)pBVar6;
*(Block **)(this + 0x40) = pBVar6;
goto LAB_00107d5c;
}
plVar2 = *(long **)(this + 0x60);
plVar2[1] = *plVar2 - 1U & plVar2[1] - 1U;
puVar9[1] = 0;
}
LAB_00107e7c:
bVar4 = false;
}
else {
pBVar6 = *(Block **)(this + 0x40);
LAB_00107d5c:
uVar3 = *(int8 *)(param_1 + 8);
*(int8 *)(pBVar6 + uVar8 * 0x28) = *(int8 *)param_1;
*(int8 *)(pBVar6 + uVar8 * 0x28 + 8) = uVar3;
*(int8 *)(pBVar6 + uVar8 * 0x28 + 0x10) = *(int8 *)(param_1 + 0x10);
*(int8 *)(param_1 + 0x10) = 0;
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(pBVar6 + uVar8 * 0x28 + 0x20) = 0;
uVar3 = *(int8 *)(param_1 + 0x20);
*(int8 *)(param_1 + 0x20) = 0;
*(int8 *)(pBVar6 + uVar8 * 0x28 + 0x18) = *(int8 *)(param_1 + 0x18);
*(int8 *)(pBVar6 + uVar8 * 0x28 + 0x18 + 8) = uVar3;
*(int8 *)(param_1 + 0x18) = 0;
*(ulong *)(this + 0x20) = uVar1 + 1;
bVar4 = true;
}
return bVar4;
}
| |
29,781 | js_array_lastIndexOf | bluesky950520[P]quickjs/quickjs.c | static JSValue js_array_lastIndexOf(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj, val;
int64_t len, n;
JSValue *arrp;
uint32_t count;
obj = JS_ToObject(ctx, this_val);
if (js_get_length64(ctx, &len, obj))
goto exception;
if (len > 0) {
n = len - 1;
if (argc > 1) {
if (JS_ToInt64Clamp(ctx, &n, argv[1], -1, len - 1, len))
goto exception;
}
if (js_get_fast_array(ctx, obj, &arrp, &count) && count == len) {
for (; n >= 0; n--) {
if (js_strict_eq2(ctx, js_dup(argv[0]), js_dup(arrp[n]),
JS_EQ_STRICT)) {
goto done;
}
}
}
for (; n >= 0; n--) {
int present = JS_TryGetPropertyInt64(ctx, obj, n, &val);
if (present < 0)
goto exception;
if (present) {
if (js_strict_eq2(ctx, js_dup(argv[0]), val, JS_EQ_STRICT)) {
goto done;
}
}
}
}
n = -1;
done:
JS_FreeValue(ctx, obj);
return js_int64(n);
exception:
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
} | O1 | c | js_array_lastIndexOf:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r12
movl %ecx, %ebp
movq %rdi, %r14
callq 0x26ddd
movq %rax, %r15
movq %rdx, %rbx
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x22adc
testl %eax, %eax
je 0x75e0e
movq 0x18(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1d8c6
movl $0x6, %edx
xorl %eax, %eax
xorl %ecx, %ecx
jmp 0x75f53
movq 0x28(%rsp), %r13
testq %r13, %r13
jle 0x75f06
leaq -0x1(%r13), %r9
movq %r9, 0x10(%rsp)
cmpl $0x2, %ebp
jl 0x75e50
movq 0x10(%r12), %rdx
movq 0x18(%r12), %rcx
movq %r13, (%rsp)
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
movq $-0x1, %r8
callq 0x27858
testl %eax, %eax
jne 0x75df1
movq %r15, 0x18(%rsp)
movb $0x1, %al
cmpl $-0x1, %ebx
jne 0x75e72
movq 0x18(%rsp), %rcx
cmpw $0x2, 0x6(%rcx)
jne 0x75e72
testb $0x8, 0x5(%rcx)
jne 0x76017
xorl %edx, %edx
testb %al, %al
je 0x75f65
movq 0x10(%rsp), %r13
testq %r13, %r13
js 0x75f01
leaq 0x18(%rsp), %rbp
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r13, %rcx
movq %rbp, %r8
callq 0x4d6d1
testl %eax, %eax
js 0x75ee1
je 0x75edd
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rsi, 0x30(%rsp)
cmpl $-0x9, %edx
jb 0x75ebf
movq 0x30(%rsp), %rax
incl (%rax)
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %r8
movq %r14, %rdi
xorl %r9d, %r9d
callq 0x3a124
movl $0x6, %ecx
testl %eax, %eax
jne 0x75ee6
xorl %ecx, %ecx
jmp 0x75ee6
movl $0x2, %ecx
testl %ecx, %ecx
jne 0x75feb
leaq -0x1(%r13), %rax
testq %r13, %r13
movq %rax, %r13
jg 0x75e8b
movq $-0x1, %r13
movq %r13, 0x10(%rsp)
movq $-0x1, 0x10(%rsp)
movq 0x18(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1d8c6
movq 0x10(%rsp), %rax
movslq %eax, %rcx
xorl %esi, %esi
cmpq %rax, %rcx
cvtsi2sd %rax, %xmm0
movl %ecx, %eax
movq %xmm0, %rdi
cmoveq %rax, %rdi
movl $0x7, %edx
cmoveq %rsi, %rdx
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %rdi, %rcx
movl %edi, %eax
orq %rcx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq %rdx, %r13
jne 0x75e7c
cmpq $0x0, 0x10(%rsp)
js 0x75e7c
movq 0x10(%rsp), %r13
movq %r13, %rax
shlq $0x4, %rax
leaq (%rax,%rcx), %rbp
addq $0x8, %rbp
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rsi, 0x18(%rsp)
cmpl $-0x9, %edx
jb 0x75fa8
movq 0x18(%rsp), %rax
incl (%rax)
movq -0x8(%rbp), %rcx
movq (%rbp), %r8
movq %rcx, 0x18(%rsp)
cmpl $-0x9, %r8d
jb 0x75fc2
movq 0x18(%rsp), %rax
incl (%rax)
movq %r14, %rdi
xorl %r9d, %r9d
callq 0x3a124
testl %eax, %eax
jne 0x76003
leaq -0x1(%r13), %rax
addq $-0x10, %rbp
testq %r13, %r13
movq %rax, %r13
jg 0x75f8e
movq %rax, 0x10(%rsp)
jmp 0x75e7c
cmpl $0x2, %ecx
je 0x7600d
cmpl $0x4, %ecx
jne 0x76003
movq %r13, 0x10(%rsp)
xorl %eax, %eax
xorl %ecx, %ecx
jmp 0x75f53
movq %r13, 0x10(%rsp)
jmp 0x75f0f
movq %r13, 0x10(%rsp)
jmp 0x75df1
movl 0x40(%rcx), %edx
movq 0x38(%rcx), %rcx
xorl %eax, %eax
jmp 0x75e74
| js_array_lastIndexOf:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r12, r8
mov ebp, ecx
mov r14, rdi
call JS_ToObject
mov r15, rax
mov rbx, rdx
lea rsi, [rsp+68h+var_40]
mov rdi, r14
mov rdx, rax
mov rcx, rbx
call js_get_length64
test eax, eax
jz short loc_75E0E
loc_75DF1:
mov rdi, [r14+18h]
mov rsi, r15
mov rdx, rbx
call JS_FreeValueRT
mov edx, 6
xor eax, eax
xor ecx, ecx
jmp loc_75F53
loc_75E0E:
mov r13, [rsp+68h+var_40]
test r13, r13
jle loc_75F06
lea r9, [r13-1]
mov [rsp+68h+var_58], r9
cmp ebp, 2
jl short loc_75E50
mov rdx, [r12+10h]
mov rcx, [r12+18h]
mov [rsp+68h+var_68], r13
lea rsi, [rsp+68h+var_58]
mov rdi, r14
mov r8, 0FFFFFFFFFFFFFFFFh
call JS_ToInt64Clamp
test eax, eax
jnz short loc_75DF1
loc_75E50:
mov [rsp+68h+var_50], r15
mov al, 1
cmp ebx, 0FFFFFFFFh
jnz short loc_75E72
mov rcx, [rsp+68h+var_50]
cmp word ptr [rcx+6], 2
jnz short loc_75E72
test byte ptr [rcx+5], 8
jnz loc_76017
loc_75E72:
xor edx, edx
loc_75E74:
test al, al
jz loc_75F65
loc_75E7C:
mov r13, [rsp+68h+var_58]
test r13, r13
js short loc_75F01
lea rbp, [rsp+68h+var_50]
loc_75E8B:
mov rdi, r14
mov rsi, r15
mov rdx, rbx
mov rcx, r13
mov r8, rbp
call JS_TryGetPropertyInt64
test eax, eax
js short loc_75EE1
jz short loc_75EDD
mov rsi, [r12]
mov rdx, [r12+8]
mov [rsp+68h+var_38], rsi
cmp edx, 0FFFFFFF7h
jb short loc_75EBF
mov rax, [rsp+68h+var_38]
inc dword ptr [rax]
loc_75EBF:
mov rcx, [rsp+68h+var_50]
mov r8, [rsp+68h+var_48]
mov rdi, r14
xor r9d, r9d
call js_strict_eq2
mov ecx, 6
test eax, eax
jnz short loc_75EE6
loc_75EDD:
xor ecx, ecx
jmp short loc_75EE6
loc_75EE1:
mov ecx, 2
loc_75EE6:
test ecx, ecx
jnz loc_75FEB
lea rax, [r13-1]
test r13, r13
mov r13, rax
jg short loc_75E8B
mov r13, 0FFFFFFFFFFFFFFFFh
loc_75F01:
mov [rsp+68h+var_58], r13
loc_75F06:
mov [rsp+68h+var_58], 0FFFFFFFFFFFFFFFFh
loc_75F0F:
mov rdi, [r14+18h]
mov rsi, r15
mov rdx, rbx
call JS_FreeValueRT
mov rax, [rsp+68h+var_58]
movsxd rcx, eax
xor esi, esi
cmp rcx, rax
cvtsi2sd xmm0, rax
mov eax, ecx
movq rdi, xmm0
cmovz rdi, rax
mov edx, 7
cmovz rdx, rsi
mov rcx, 0FFFFFFFF00000000h
and rcx, rdi
mov eax, edi
loc_75F53:
or rax, rcx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_75F65:
cmp r13, rdx
jnz loc_75E7C
cmp [rsp+68h+var_58], 0
js loc_75E7C
mov r13, [rsp+68h+var_58]
mov rax, r13
shl rax, 4
lea rbp, [rax+rcx]
add rbp, 8
loc_75F8E:
mov rsi, [r12]
mov rdx, [r12+8]
mov [rsp+68h+var_50], rsi
cmp edx, 0FFFFFFF7h
jb short loc_75FA8
mov rax, [rsp+68h+var_50]
inc dword ptr [rax]
loc_75FA8:
mov rcx, [rbp-8]
mov r8, [rbp+0]
mov [rsp+68h+var_50], rcx
cmp r8d, 0FFFFFFF7h
jb short loc_75FC2
mov rax, [rsp+68h+var_50]
inc dword ptr [rax]
loc_75FC2:
mov rdi, r14
xor r9d, r9d
call js_strict_eq2
test eax, eax
jnz short loc_76003
lea rax, [r13-1]
add rbp, 0FFFFFFFFFFFFFFF0h
test r13, r13
mov r13, rax
jg short loc_75F8E
mov [rsp+68h+var_58], rax
jmp loc_75E7C
loc_75FEB:
cmp ecx, 2
jz short loc_7600D
cmp ecx, 4
jnz short loc_76003
mov [rsp+68h+var_58], r13
xor eax, eax
xor ecx, ecx
jmp loc_75F53
loc_76003:
mov [rsp+68h+var_58], r13
jmp loc_75F0F
loc_7600D:
mov [rsp+68h+var_58], r13
jmp loc_75DF1
loc_76017:
mov edx, [rcx+40h]
mov rcx, [rcx+38h]
xor eax, eax
jmp loc_75E74
| unsigned long long js_array_lastIndexOf(
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)
{
int v15; // ebp
_DWORD *v16; // r15
long long v17; // rdx
long long v18; // rbx
_DWORD *v19; // rcx
long long v20; // rax
unsigned long long v21; // rcx
long long v22; // r13
char v23; // al
long long v24; // rdx
signed long long v25; // r13
int PropertyInt64; // eax
_DWORD *v27; // rsi
long long v28; // rdx
BOOL v29; // eax
int v30; // ecx
bool v31; // cc
double v32; // rdi
long long *v34; // rbp
_DWORD *v35; // rsi
long long v36; // rdx
_DWORD *v37; // rcx
long long v38; // r8
long long v39; // rax
long long v40; // [rsp+10h] [rbp-58h] BYREF
_DWORD *v41[2]; // [rsp+18h] [rbp-50h] BYREF
long long v42; // [rsp+28h] [rbp-40h] BYREF
_DWORD *v43; // [rsp+30h] [rbp-38h]
v15 = a4;
v16 = JS_ToObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v18 = v17;
if ( (unsigned int)js_get_length64(a1, &v42, (int)v16, v17) )
goto LABEL_2;
v22 = v42;
if ( v42 > 0 )
{
v40 = v42 - 1;
if ( v15 >= 2
&& (unsigned int)JS_ToInt64Clamp(
a1,
(unsigned long long *)&v40,
*(_DWORD **)(a5 + 16),
*(_QWORD *)(a5 + 24),
-1LL,
v42 - 1,
v42) )
{
goto LABEL_2;
}
v41[0] = v16;
v23 = 1;
if ( (_DWORD)v18 == -1 && (v19 = v41[0], *((_WORD *)v41[0] + 3) == 2) && (*((_BYTE *)v41[0] + 5) & 8) != 0 )
{
v24 = v41[0][16];
v19 = (_DWORD *)*((_QWORD *)v41[0] + 7);
v23 = 0;
}
else
{
v24 = 0LL;
}
if ( !v23 && v22 == v24 && v40 >= 0 )
{
v25 = v40;
v34 = (long long *)&v19[4 * v40 + 2];
while ( 1 )
{
v35 = *(_DWORD **)a5;
v36 = *(_QWORD *)(a5 + 8);
v41[0] = *(_DWORD **)a5;
if ( (unsigned int)v36 >= 0xFFFFFFF7 )
++*v41[0];
v37 = (_DWORD *)*(v34 - 1);
v38 = *v34;
v41[0] = v37;
if ( (unsigned int)v38 >= 0xFFFFFFF7 )
++*v41[0];
if ( js_strict_eq2(a1, v35, v36, v37, v38, 0, *(double *)a7.m128_u64, (__m128d)a8) )
goto LABEL_39;
v39 = v25 - 1;
v34 -= 2;
v31 = v25-- <= 0;
if ( v31 )
{
v40 = v39;
break;
}
}
}
v25 = v40;
if ( v40 >= 0 )
{
while ( 1 )
{
PropertyInt64 = JS_TryGetPropertyInt64(a1, (long long)v16, v18, v25, (long long)v41);
if ( PropertyInt64 < 0 )
{
v30 = 2;
}
else
{
if ( !PropertyInt64 )
goto LABEL_17;
v27 = *(_DWORD **)a5;
v28 = *(_QWORD *)(a5 + 8);
v43 = *(_DWORD **)a5;
if ( (unsigned int)v28 >= 0xFFFFFFF7 )
++*v43;
v29 = js_strict_eq2(a1, v27, v28, v41[0], (long long)v41[1], 0, *(double *)a7.m128_u64, (__m128d)a8);
v30 = 6;
if ( !v29 )
LABEL_17:
v30 = 0;
}
if ( v30 )
break;
v31 = v25-- <= 0;
if ( v31 )
{
v25 = -1LL;
goto LABEL_22;
}
}
if ( v30 != 2 )
{
LABEL_39:
v40 = v25;
goto LABEL_24;
}
v40 = v25;
LABEL_2:
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v16, v18);
v20 = 0LL;
v21 = 0LL;
return v21 | v20;
}
LABEL_22:
v40 = v25;
}
v40 = -1LL;
LABEL_24:
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v16, v18);
v32 = (double)(int)v40;
if ( (int)v40 == v40 )
*(_QWORD *)&v32 = (unsigned int)v40;
v21 = *(_QWORD *)&v32 & 0xFFFFFFFF00000000LL;
v20 = LODWORD(v32);
return v21 | v20;
}
| js_array_lastIndexOf:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R12,R8
MOV EBP,ECX
MOV R14,RDI
CALL 0x00126ddd
MOV R15,RAX
MOV RBX,RDX
LEA RSI,[RSP + 0x28]
MOV RDI,R14
MOV RDX,RAX
MOV RCX,RBX
CALL 0x00122adc
TEST EAX,EAX
JZ 0x00175e0e
LAB_00175df1:
MOV RDI,qword ptr [R14 + 0x18]
MOV RSI,R15
MOV RDX,RBX
CALL 0x0011d8c6
MOV EDX,0x6
XOR EAX,EAX
XOR ECX,ECX
JMP 0x00175f53
LAB_00175e0e:
MOV R13,qword ptr [RSP + 0x28]
TEST R13,R13
JLE 0x00175f06
LEA R9,[R13 + -0x1]
MOV qword ptr [RSP + 0x10],R9
CMP EBP,0x2
JL 0x00175e50
MOV RDX,qword ptr [R12 + 0x10]
MOV RCX,qword ptr [R12 + 0x18]
MOV qword ptr [RSP],R13
LEA RSI,[RSP + 0x10]
MOV RDI,R14
MOV R8,-0x1
CALL 0x00127858
TEST EAX,EAX
JNZ 0x00175df1
LAB_00175e50:
MOV qword ptr [RSP + 0x18],R15
MOV AL,0x1
CMP EBX,-0x1
JNZ 0x00175e72
MOV RCX,qword ptr [RSP + 0x18]
CMP word ptr [RCX + 0x6],0x2
JNZ 0x00175e72
TEST byte ptr [RCX + 0x5],0x8
JNZ 0x00176017
LAB_00175e72:
XOR EDX,EDX
LAB_00175e74:
TEST AL,AL
JZ 0x00175f65
LAB_00175e7c:
MOV R13,qword ptr [RSP + 0x10]
TEST R13,R13
JS 0x00175f01
LEA RBP,[RSP + 0x18]
LAB_00175e8b:
MOV RDI,R14
MOV RSI,R15
MOV RDX,RBX
MOV RCX,R13
MOV R8,RBP
CALL 0x0014d6d1
TEST EAX,EAX
JS 0x00175ee1
JZ 0x00175edd
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV qword ptr [RSP + 0x30],RSI
CMP EDX,-0x9
JC 0x00175ebf
MOV RAX,qword ptr [RSP + 0x30]
INC dword ptr [RAX]
LAB_00175ebf:
MOV RCX,qword ptr [RSP + 0x18]
MOV R8,qword ptr [RSP + 0x20]
MOV RDI,R14
XOR R9D,R9D
CALL 0x0013a124
MOV ECX,0x6
TEST EAX,EAX
JNZ 0x00175ee6
LAB_00175edd:
XOR ECX,ECX
JMP 0x00175ee6
LAB_00175ee1:
MOV ECX,0x2
LAB_00175ee6:
TEST ECX,ECX
JNZ 0x00175feb
LEA RAX,[R13 + -0x1]
TEST R13,R13
MOV R13,RAX
JG 0x00175e8b
MOV R13,-0x1
LAB_00175f01:
MOV qword ptr [RSP + 0x10],R13
LAB_00175f06:
MOV qword ptr [RSP + 0x10],-0x1
LAB_00175f0f:
MOV RDI,qword ptr [R14 + 0x18]
MOV RSI,R15
MOV RDX,RBX
CALL 0x0011d8c6
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RCX,EAX
XOR ESI,ESI
CMP RCX,RAX
CVTSI2SD XMM0,RAX
MOV EAX,ECX
MOVQ RDI,XMM0
CMOVZ RDI,RAX
MOV EDX,0x7
CMOVZ RDX,RSI
MOV RCX,-0x100000000
AND RCX,RDI
MOV EAX,EDI
LAB_00175f53:
OR RAX,RCX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00175f65:
CMP R13,RDX
JNZ 0x00175e7c
CMP qword ptr [RSP + 0x10],0x0
JS 0x00175e7c
MOV R13,qword ptr [RSP + 0x10]
MOV RAX,R13
SHL RAX,0x4
LEA RBP,[RAX + RCX*0x1]
ADD RBP,0x8
LAB_00175f8e:
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV qword ptr [RSP + 0x18],RSI
CMP EDX,-0x9
JC 0x00175fa8
MOV RAX,qword ptr [RSP + 0x18]
INC dword ptr [RAX]
LAB_00175fa8:
MOV RCX,qword ptr [RBP + -0x8]
MOV R8,qword ptr [RBP]
MOV qword ptr [RSP + 0x18],RCX
CMP R8D,-0x9
JC 0x00175fc2
MOV RAX,qword ptr [RSP + 0x18]
INC dword ptr [RAX]
LAB_00175fc2:
MOV RDI,R14
XOR R9D,R9D
CALL 0x0013a124
TEST EAX,EAX
JNZ 0x00176003
LEA RAX,[R13 + -0x1]
ADD RBP,-0x10
TEST R13,R13
MOV R13,RAX
JG 0x00175f8e
MOV qword ptr [RSP + 0x10],RAX
JMP 0x00175e7c
LAB_00175feb:
CMP ECX,0x2
JZ 0x0017600d
CMP ECX,0x4
JNZ 0x00176003
MOV qword ptr [RSP + 0x10],R13
XOR EAX,EAX
XOR ECX,ECX
JMP 0x00175f53
LAB_00176003:
MOV qword ptr [RSP + 0x10],R13
JMP 0x00175f0f
LAB_0017600d:
MOV qword ptr [RSP + 0x10],R13
JMP 0x00175df1
LAB_00176017:
MOV EDX,dword ptr [RCX + 0x40]
MOV RCX,qword ptr [RCX + 0x38]
XOR EAX,EAX
JMP 0x00175e74
|
ulong js_array_lastIndexOf
(long param_1,int8 param_2,int8 param_3,int param_4,int8 *param_5)
{
int8 uVar1;
bool bVar2;
double dVar3;
int iVar4;
int iVar5;
int *piVar6;
ulong uVar7;
int *piVar8;
ulong uVar9;
int *piVar10;
int1 auVar11 [16];
ulong local_58;
int *local_50;
int8 local_48;
ulong local_40;
int *local_38;
auVar11 = JS_ToObject();
piVar10 = auVar11._8_8_;
piVar6 = auVar11._0_8_;
piVar8 = piVar10;
iVar4 = js_get_length64(param_1,&local_40,piVar6);
if (iVar4 == 0) {
if (0 < (long)local_40) {
local_58 = local_40 - 1;
if (1 < param_4) {
piVar8 = (int *)param_5[3];
iVar4 = JS_ToInt64Clamp(param_1,&local_58,param_5[2],piVar8,0xffffffffffffffff,local_58,
local_40);
if (iVar4 != 0) goto LAB_00175df1;
}
bVar2 = true;
if (((auVar11._8_4_ == -1) && (piVar8 = piVar6, *(short *)((long)piVar6 + 6) == 2)) &&
((*(byte *)((long)piVar6 + 5) & 8) != 0)) {
uVar7 = (ulong)(uint)piVar6[0x10];
piVar8 = *(int **)(piVar6 + 0xe);
bVar2 = false;
}
else {
uVar7 = 0;
}
uVar9 = local_58;
local_50 = piVar6;
if (((!bVar2) && (local_40 == uVar7)) && (-1 < (long)local_58)) {
piVar8 = piVar8 + local_58 * 4 + 2;
uVar7 = local_58;
do {
if (0xfffffff6 < (uint)param_5[1]) {
*(int *)*param_5 = *(int *)*param_5 + 1;
}
local_50 = *(int **)(piVar8 + -2);
if (0xfffffff6 < (uint)*(int8 *)piVar8) {
*local_50 = *local_50 + 1;
}
iVar4 = js_strict_eq2(param_1);
if (iVar4 != 0) goto LAB_00175f0f;
uVar9 = uVar7 - 1;
piVar8 = piVar8 + -4;
bVar2 = 0 < (long)uVar7;
uVar7 = uVar9;
} while (bVar2);
}
local_58 = uVar9;
if (-1 < (long)local_58) {
uVar7 = local_58;
do {
iVar4 = JS_TryGetPropertyInt64(param_1,piVar6,piVar10,uVar7,&local_50);
if (iVar4 < 0) {
iVar4 = 2;
}
else {
if (iVar4 != 0) {
local_38 = (int *)*param_5;
uVar1 = param_5[1];
if (0xfffffff6 < (uint)uVar1) {
*local_38 = *local_38 + 1;
}
iVar5 = js_strict_eq2(param_1,local_38,uVar1,local_50,local_48,0);
iVar4 = 6;
if (iVar5 != 0) goto LAB_00175ee6;
}
iVar4 = 0;
}
LAB_00175ee6:
if (iVar4 != 0) {
local_58 = uVar7;
if (iVar4 == 2) goto LAB_00175df1;
if (iVar4 != 4) goto LAB_00175f0f;
uVar7 = 0;
uVar9 = 0;
goto LAB_00175f53;
}
bVar2 = 0 < (long)uVar7;
uVar7 = uVar7 - 1;
} while (bVar2);
}
}
local_58 = 0xffffffffffffffff;
uVar7 = local_58;
LAB_00175f0f:
local_58 = uVar7;
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),piVar6,piVar10);
dVar3 = (double)(long)local_58;
if ((long)(int)local_58 == local_58) {
dVar3 = (double)(local_58 & 0xffffffff);
}
uVar9 = (ulong)dVar3 & 0xffffffff00000000;
uVar7 = (ulong)dVar3 & 0xffffffff;
}
else {
LAB_00175df1:
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),piVar6,piVar10);
uVar7 = 0;
uVar9 = 0;
}
LAB_00175f53:
return uVar7 | uVar9;
}
| |
29,782 | ma_store_length | eloqsql/storage/maria/ma_blockrec.c | uchar *ma_store_length(uchar *to, ulong nr)
{
if (nr < 251)
{
*to=(uchar) nr;
return to+1;
}
if (nr < 65536)
{
if (nr <= 255)
{
to[0]= (uchar) 251;
to[1]= (uchar) nr;
return to+2;
}
to[0]= (uchar) 252;
int2store(to+1, nr);
return to+3;
}
if (nr < 16777216)
{
*to++= (uchar) 253;
int3store(to, nr);
return to+3;
}
*to++= (uchar) 254;
int4store(to, nr);
return to+4;
} | O3 | c | ma_store_length:
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rcx
movq %rdi, %rax
cmpq $0xfa, %rsi
ja 0x4db59
movb %cl, (%rax)
movl $0x1, %ecx
addq %rcx, %rax
popq %rbp
retq
cmpq $0xffff, %rcx # imm = 0xFFFF
ja 0x4db78
cmpq $0xff, %rcx
ja 0x4db97
movb $-0x5, (%rax)
movb %cl, 0x1(%rax)
movl $0x2, %ecx
jmp 0x4db54
cmpq $0xffffff, %rcx # imm = 0xFFFFFF
ja 0x4dba5
movb $-0x3, (%rax)
movb %cl, 0x1(%rax)
movb %ch, 0x2(%rax)
shrl $0x10, %ecx
movb %cl, 0x3(%rax)
movl $0x4, %ecx
jmp 0x4db54
movb $-0x4, (%rax)
movw %cx, 0x1(%rax)
movl $0x3, %ecx
jmp 0x4db54
movb $-0x2, (%rax)
movl %ecx, 0x1(%rax)
movl $0x5, %ecx
jmp 0x4db54
| ma_store_length:
push rbp
mov rbp, rsp
mov rcx, rsi
mov rax, rdi
cmp rsi, 0FAh
ja short loc_4DB59
mov [rax], cl
mov ecx, 1
loc_4DB54:
add rax, rcx
pop rbp
retn
loc_4DB59:
cmp rcx, 0FFFFh
ja short loc_4DB78
cmp rcx, 0FFh
ja short loc_4DB97
mov byte ptr [rax], 0FBh
mov [rax+1], cl
mov ecx, 2
jmp short loc_4DB54
loc_4DB78:
cmp rcx, 0FFFFFFh
ja short loc_4DBA5
mov byte ptr [rax], 0FDh
mov [rax+1], cl
mov [rax+2], ch
shr ecx, 10h
mov [rax+3], cl
mov ecx, 4
jmp short loc_4DB54
loc_4DB97:
mov byte ptr [rax], 0FCh
mov [rax+1], cx
mov ecx, 3
jmp short loc_4DB54
loc_4DBA5:
mov byte ptr [rax], 0FEh
mov [rax+1], ecx
mov ecx, 5
jmp short loc_4DB54
| long long ma_store_length(long long a1, unsigned long long a2)
{
long long v2; // rcx
if ( a2 > 0xFA )
{
if ( a2 > 0xFFFF )
{
if ( a2 > 0xFFFFFF )
{
*(_BYTE *)a1 = -2;
*(_DWORD *)(a1 + 1) = a2;
v2 = 5LL;
}
else
{
*(_BYTE *)a1 = -3;
*(_WORD *)(a1 + 1) = a2;
*(_BYTE *)(a1 + 3) = BYTE2(a2);
v2 = 4LL;
}
}
else if ( a2 > 0xFF )
{
*(_BYTE *)a1 = -4;
*(_WORD *)(a1 + 1) = a2;
v2 = 3LL;
}
else
{
*(_BYTE *)a1 = -5;
*(_BYTE *)(a1 + 1) = a2;
v2 = 2LL;
}
}
else
{
*(_BYTE *)a1 = a2;
v2 = 1LL;
}
return v2 + a1;
}
| ma_store_length:
PUSH RBP
MOV RBP,RSP
MOV RCX,RSI
MOV RAX,RDI
CMP RSI,0xfa
JA 0x0014db59
MOV byte ptr [RAX],CL
MOV ECX,0x1
LAB_0014db54:
ADD RAX,RCX
POP RBP
RET
LAB_0014db59:
CMP RCX,0xffff
JA 0x0014db78
CMP RCX,0xff
JA 0x0014db97
MOV byte ptr [RAX],0xfb
MOV byte ptr [RAX + 0x1],CL
MOV ECX,0x2
JMP 0x0014db54
LAB_0014db78:
CMP RCX,0xffffff
JA 0x0014dba5
MOV byte ptr [RAX],0xfd
MOV byte ptr [RAX + 0x1],CL
MOV byte ptr [RAX + 0x2],CH
SHR ECX,0x10
MOV byte ptr [RAX + 0x3],CL
MOV ECX,0x4
JMP 0x0014db54
LAB_0014db97:
MOV byte ptr [RAX],0xfc
MOV word ptr [RAX + 0x1],CX
MOV ECX,0x3
JMP 0x0014db54
LAB_0014dba5:
MOV byte ptr [RAX],0xfe
MOV dword ptr [RAX + 0x1],ECX
MOV ECX,0x5
JMP 0x0014db54
|
int1 * ma_store_length(int1 *param_1,ulong param_2)
{
int1 uVar1;
long lVar2;
uVar1 = (int1)param_2;
if (param_2 < 0xfb) {
*param_1 = uVar1;
lVar2 = 1;
}
else if (param_2 < 0x10000) {
if (param_2 < 0x100) {
*param_1 = 0xfb;
param_1[1] = uVar1;
lVar2 = 2;
}
else {
*param_1 = 0xfc;
*(short *)(param_1 + 1) = (short)param_2;
lVar2 = 3;
}
}
else if (param_2 < 0x1000000) {
*param_1 = 0xfd;
param_1[1] = uVar1;
param_1[2] = (char)(param_2 >> 8);
param_1[3] = (char)(param_2 >> 0x10);
lVar2 = 4;
}
else {
*param_1 = 0xfe;
*(int *)(param_1 + 1) = (int)param_2;
lVar2 = 5;
}
return param_1 + lVar2;
}
| |
29,783 | stbi_load_from_file | SDL3Lite/dependencies/stb_image.h | STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)
{
unsigned char *result;
stbi__context s;
stbi__start_file(&s,f);
result = stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp);
if (result) {
// need to 'unget' all the characters in the IO buffer
fseek(f, - (int) (s.img_buffer_end - s.img_buffer), SEEK_CUR);
}
return result;
} | O0 | c | stbi_load_from_file:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp # imm = 0x110
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq -0x8(%rbp), %rsi
leaq -0x110(%rbp), %rdi
callq 0x27f50
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %r8d
leaq -0x110(%rbp), %rdi
callq 0x27f80
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x27f38
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movq -0x50(%rbp), %rcx
subq %rcx, %rax
movl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movslq %eax, %rsi
movl $0x1, %edx
callq 0x1a2f0
movq -0x30(%rbp), %rax
addq $0x110, %rsp # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)
| stbi_load_from_file:
push rbp
mov rbp, rsp
sub rsp, 110h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov rsi, [rbp+var_8]
lea rdi, [rbp+var_110]
call _ZL16stbi__start_fileP13stbi__contextP8_IO_FILE; stbi__start_file(stbi__context *,_IO_FILE *)
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov r8d, [rbp+var_24]
lea rdi, [rbp+var_110]
call _ZL31stbi__load_and_postprocess_8bitP13stbi__contextPiS1_S1_i; stbi__load_and_postprocess_8bit(stbi__context *,int *,int *,int *,int)
mov [rbp+var_30], rax
cmp [rbp+var_30], 0
jz short loc_27F38
mov rdi, [rbp+var_8]
mov rax, [rbp+var_48]
mov rcx, [rbp+var_50]
sub rax, rcx
mov ecx, eax
xor eax, eax
sub eax, ecx
movsxd rsi, eax
mov edx, 1
call _fseek
loc_27F38:
mov rax, [rbp+var_30]
add rsp, 110h
pop rbp
retn
| long long stbi_load_from_file(long long a1, long long a2, long long a3, long long a4, unsigned int a5)
{
_BYTE v6[192]; // [rsp+0h] [rbp-110h] BYREF
long long v7; // [rsp+C0h] [rbp-50h]
long long v8; // [rsp+C8h] [rbp-48h]
long long v9; // [rsp+E0h] [rbp-30h]
unsigned int v10; // [rsp+ECh] [rbp-24h]
long long v11; // [rsp+F0h] [rbp-20h]
long long v12; // [rsp+F8h] [rbp-18h]
long long v13; // [rsp+100h] [rbp-10h]
long long v14; // [rsp+108h] [rbp-8h]
v14 = a1;
v13 = a2;
v12 = a3;
v11 = a4;
v10 = a5;
stbi__start_file(v6, a1);
v9 = stbi__load_and_postprocess_8bit(v6, v13, v12, v11, v10);
if ( v9 )
fseek(v14, (int)v7 - (int)v8, 1LL);
return v9;
}
| stbi_load_from_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x110
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[RBP + -0x110]
CALL 0x00127f50
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV R8D,dword ptr [RBP + -0x24]
LEA RDI,[RBP + -0x110]
CALL 0x00127f80
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
JZ 0x00127f38
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x50]
SUB RAX,RCX
MOV ECX,EAX
XOR EAX,EAX
SUB EAX,ECX
MOVSXD RSI,EAX
MOV EDX,0x1
CALL 0x0011a2f0
LAB_00127f38:
MOV RAX,qword ptr [RBP + -0x30]
ADD RSP,0x110
POP RBP
RET
|
long stbi_load_from_file(_IO_FILE *param_1,int *param_2,int *param_3,int *param_4,int param_5)
{
stbi__context local_118 [192];
int local_58;
int local_50;
long local_38;
int local_2c;
int *local_28;
int *local_20;
int *local_18;
_IO_FILE *local_10;
local_2c = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
stbi__start_file(local_118,param_1);
local_38 = stbi__load_and_postprocess_8bit(local_118,local_18,local_20,local_28,local_2c);
if (local_38 != 0) {
fseek(local_10,(long)-(local_50 - local_58),1);
}
return local_38;
}
| |
29,784 | stbi_load_from_file | SDL3Lite/dependencies/stb_image.h | STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)
{
unsigned char *result;
stbi__context s;
stbi__start_file(&s,f);
result = stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp);
if (result) {
// need to 'unget' all the characters in the IO buffer
fseek(f, - (int) (s.img_buffer_end - s.img_buffer), SEEK_CUR);
}
return result;
} | O3 | c | stbi_load_from_file:
subq $0x118, %rsp # imm = 0x118
movq %rdi, 0x110(%rsp)
movq %rsi, 0x108(%rsp)
movq %rdx, 0x100(%rsp)
movq %rcx, 0xf8(%rsp)
movl %r8d, 0xf4(%rsp)
movq 0x110(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x28270
movq 0x108(%rsp), %rsi
movq 0x100(%rsp), %rdx
movq 0xf8(%rsp), %rcx
movl 0xf4(%rsp), %r8d
leaq 0x8(%rsp), %rdi
callq 0x282a0
movq %rax, 0xe8(%rsp)
cmpq $0x0, 0xe8(%rsp)
je 0x2825c
movq 0x110(%rsp), %rdi
movq 0xd0(%rsp), %rax
movq 0xc8(%rsp), %rcx
subq %rcx, %rax
movl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movslq %eax, %rsi
movl $0x1, %edx
callq 0x1a2f0
movq 0xe8(%rsp), %rax
addq $0x118, %rsp # imm = 0x118
retq
nopl (%rax)
| stbi_load_from_file:
sub rsp, 118h
mov [rsp+118h+var_8], rdi
mov [rsp+118h+var_10], rsi
mov [rsp+118h+var_18], rdx
mov [rsp+118h+var_20], rcx
mov [rsp+118h+var_24], r8d
mov rsi, [rsp+118h+var_8]
lea rdi, [rsp+118h+var_110]
call _ZL16stbi__start_fileP13stbi__contextP8_IO_FILE; stbi__start_file(stbi__context *,_IO_FILE *)
mov rsi, [rsp+118h+var_10]
mov rdx, [rsp+118h+var_18]
mov rcx, [rsp+118h+var_20]
mov r8d, [rsp+118h+var_24]
lea rdi, [rsp+118h+var_110]
call _ZL31stbi__load_and_postprocess_8bitP13stbi__contextPiS1_S1_i; stbi__load_and_postprocess_8bit(stbi__context *,int *,int *,int *,int)
mov [rsp+118h+var_30], rax
cmp [rsp+118h+var_30], 0
jz short loc_2825C
mov rdi, [rsp+118h+var_8]
mov rax, [rsp+118h+var_48]
mov rcx, [rsp+118h+var_50]
sub rax, rcx
mov ecx, eax
xor eax, eax
sub eax, ecx
movsxd rsi, eax
mov edx, 1
call _fseek
loc_2825C:
mov rax, [rsp+118h+var_30]
add rsp, 118h
retn
| long long stbi_load_from_file(long long a1, long long a2, long long a3, long long a4, unsigned int a5)
{
_BYTE v6[192]; // [rsp+8h] [rbp-110h] BYREF
long long v7; // [rsp+C8h] [rbp-50h]
long long v8; // [rsp+D0h] [rbp-48h]
long long v9; // [rsp+E8h] [rbp-30h]
unsigned int v10; // [rsp+F4h] [rbp-24h]
long long v11; // [rsp+F8h] [rbp-20h]
long long v12; // [rsp+100h] [rbp-18h]
long long v13; // [rsp+108h] [rbp-10h]
long long v14; // [rsp+110h] [rbp-8h]
v14 = a1;
v13 = a2;
v12 = a3;
v11 = a4;
v10 = a5;
stbi__start_file(v6, a1);
v9 = stbi__load_and_postprocess_8bit(v6, v13, v12, v11, v10);
if ( v9 )
fseek(v14, (int)v7 - (int)v8, 1LL);
return v9;
}
| stbi_load_from_file:
SUB RSP,0x118
MOV qword ptr [RSP + 0x110],RDI
MOV qword ptr [RSP + 0x108],RSI
MOV qword ptr [RSP + 0x100],RDX
MOV qword ptr [RSP + 0xf8],RCX
MOV dword ptr [RSP + 0xf4],R8D
MOV RSI,qword ptr [RSP + 0x110]
LEA RDI,[RSP + 0x8]
CALL 0x00128270
MOV RSI,qword ptr [RSP + 0x108]
MOV RDX,qword ptr [RSP + 0x100]
MOV RCX,qword ptr [RSP + 0xf8]
MOV R8D,dword ptr [RSP + 0xf4]
LEA RDI,[RSP + 0x8]
CALL 0x001282a0
MOV qword ptr [RSP + 0xe8],RAX
CMP qword ptr [RSP + 0xe8],0x0
JZ 0x0012825c
MOV RDI,qword ptr [RSP + 0x110]
MOV RAX,qword ptr [RSP + 0xd0]
MOV RCX,qword ptr [RSP + 0xc8]
SUB RAX,RCX
MOV ECX,EAX
XOR EAX,EAX
SUB EAX,ECX
MOVSXD RSI,EAX
MOV EDX,0x1
CALL 0x0011a2f0
LAB_0012825c:
MOV RAX,qword ptr [RSP + 0xe8]
ADD RSP,0x118
RET
|
long stbi_load_from_file(_IO_FILE *param_1,int *param_2,int *param_3,int *param_4,int param_5)
{
stbi__context local_110 [192];
int local_50;
int local_48;
long local_30;
int local_24;
int *local_20;
int *local_18;
int *local_10;
_IO_FILE *local_8;
local_24 = param_5;
local_20 = param_4;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
stbi__start_file(local_110,param_1);
local_30 = stbi__load_and_postprocess_8bit(local_110,local_10,local_18,local_20,local_24);
if (local_30 != 0) {
fseek(local_8,(long)-(local_48 - local_50),1);
}
return local_30;
}
| |
29,785 | 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 0xb0c53
jmp 0xb0bdb
jmp 0xb0bdd
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x38(%rcx), %rax
jb 0xb0c0f
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x28(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x40(%rcx), %rax
jae 0xb0c15
jmp 0xb0c11
jmp 0xb0c13
jmp 0xb0c15
movq -0x10(%rbp), %rax
movq (%rax), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movl $0x38, %edx
callq 0x2a090
jmp 0xb0c34
jmp 0xb0c36
jmp 0xb0c38
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 0xb0cf7
movq -0x10(%rbp), %rdi
addq $0x220, %rdi # imm = 0x220
callq 0xe1ef0
cmpl $0x0, %eax
je 0xb0ce4
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0xae280
movq -0x10(%rbp), %rax
movq (%rax), %rax
movzbl 0xf0(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0xf0(%rax)
jmp 0xb0cc9
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0xa2c49(%rip), %rdx # 0x153921
movl $0x164, %ecx # imm = 0x164
callq 0x2af70
jmp 0xb0ce4
movq -0x10(%rbp), %rax
movl 0x1c8(%rax), %ecx
andl $-0x11, %ecx
movl %ecx, 0x1c8(%rax)
jmp 0xb0cf9
jmp 0xb0cfb
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_B0C53
jmp short $+2
loc_B0BDB:
jmp short $+2
loc_B0BDD:
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_B0C0F
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_B0C15
loc_B0C0F:
jmp short $+2
loc_B0C11:
jmp short $+2
loc_B0C13:
jmp short $+2
loc_B0C15:
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_B0C34:
jmp short $+2
loc_B0C36:
jmp short $+2
loc_B0C38:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+2F8h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+0F8h]
call rax
loc_B0C53:
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_B0CF7
mov rdi, [rbp+var_10]
add rdi, 220h
call end_io_cache
cmp eax, 0
jz short loc_B0CE4
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_B0CC9:
mov rdi, [rbp+var_10]
xor eax, eax
mov esi, eax
lea rdx, aWorkspaceLlm4b_27; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 164h
call _mi_report_crashed
jmp short $+2
loc_B0CE4:
mov rax, [rbp+var_10]
mov ecx, [rax+1C8h]
and ecx, 0FFFFFFEFh
mov [rax+1C8h], ecx
loc_B0CF7:
jmp short $+2
loc_B0CF9:
jmp short $+2
loc_B0CFB:
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 0x001b0c53
JMP 0x001b0bdb
LAB_001b0bdb:
JMP 0x001b0bdd
LAB_001b0bdd:
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 0x001b0c0f
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 0x001b0c15
LAB_001b0c0f:
JMP 0x001b0c11
LAB_001b0c11:
JMP 0x001b0c13
LAB_001b0c13:
JMP 0x001b0c15
LAB_001b0c15:
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 0x0012a090
JMP 0x001b0c34
LAB_001b0c34:
JMP 0x001b0c36
LAB_001b0c36:
JMP 0x001b0c38
LAB_001b0c38:
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_001b0c53:
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 0x001b0cf7
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x220
CALL 0x001e1ef0
CMP EAX,0x0
JZ 0x001b0ce4
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x001ae280
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 0x001b0cc9
LAB_001b0cc9:
MOV RDI,qword ptr [RBP + -0x10]
XOR EAX,EAX
MOV ESI,EAX
LEA RDX,[0x253921]
MOV ECX,0x164
CALL 0x0012af70
JMP 0x001b0ce4
LAB_001b0ce4:
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x1c8]
AND ECX,0xffffffef
MOV dword ptr [RAX + 0x1c8],ECX
LAB_001b0cf7:
JMP 0x001b0cf9
LAB_001b0cf9:
JMP 0x001b0cfb
LAB_001b0cfb:
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;
}
| |
29,786 | 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;
} | O3 | c | mi_update_status:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
leaq 0x10(%rdi), %rcx
cmpq %rcx, %rax
jne 0x7c542
movq (%rbx), %rcx
movq 0x30(%rax), %rdx
movq %rdx, 0x48(%rcx)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x38(%rcx)
movups %xmm1, 0x28(%rcx)
movups %xmm0, 0x18(%rcx)
movq (%rbx), %rax
movq 0xf8(%rbx), %rdi
callq *0x2f8(%rax)
movq (%rbx), %rax
addq $0x18, %rax
movq %rax, 0x8(%rbx)
movb $0x0, 0x33a(%rbx)
testb $0x10, 0x1c8(%rbx)
je 0x7c5a8
leaq 0x220(%rbx), %rdi
callq 0x962f3
testl %eax, %eax
je 0x7c5a1
movq (%rbx), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0x7ad3a
movq (%rbx), %rax
orb $0x2, 0xf0(%rax)
leaq 0x5f38f(%rip), %rdx # 0xdb921
movq %rbx, %rdi
xorl %esi, %esi
movl $0x164, %ecx # imm = 0x164
callq 0x3048c
andb $-0x11, 0x1c8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mi_update_status:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
mov rax, [rdi+8]
lea rcx, [rdi+10h]
cmp rax, rcx
jnz short loc_7C542
mov rcx, [rbx]
mov rdx, [rax+30h]
mov [rcx+48h], rdx
movups xmm0, xmmword ptr [rax]
movups xmm1, xmmword ptr [rax+10h]
movups xmm2, xmmword ptr [rax+20h]
movups xmmword ptr [rcx+38h], xmm2
movups xmmword ptr [rcx+28h], xmm1
movups xmmword ptr [rcx+18h], xmm0
mov rax, [rbx]
mov rdi, [rbx+0F8h]
call qword ptr [rax+2F8h]
loc_7C542:
mov rax, [rbx]
add rax, 18h
mov [rbx+8], rax
mov byte ptr [rbx+33Ah], 0
test byte ptr [rbx+1C8h], 10h
jz short loc_7C5A8
lea rdi, [rbx+220h]
call end_io_cache
test eax, eax
jz short loc_7C5A1
mov rax, [rbx]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
mov rax, [rbx]
or byte ptr [rax+0F0h], 2
lea rdx, aWorkspaceLlm4b_15; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rbx
xor esi, esi
mov ecx, 164h
call _mi_report_crashed
loc_7C5A1:
and byte ptr [rbx+1C8h], 0EFh
loc_7C5A8:
add rsp, 8
pop rbx
pop rbp
retn
| void mi_update_status(_BYTE *a1)
{
__int128 *v1; // rax
long long v2; // rcx
__int128 v3; // xmm0
__int128 v4; // xmm1
v1 = (__int128 *)*((_QWORD *)a1 + 1);
if ( v1 == (__int128 *)(a1 + 16) )
{
v2 = *(_QWORD *)a1;
*(_QWORD *)(v2 + 72) = *((_QWORD *)v1 + 6);
v3 = *v1;
v4 = v1[1];
*(_OWORD *)(v2 + 56) = v1[2];
*(_OWORD *)(v2 + 40) = v4;
*(_OWORD *)(v2 + 24) = v3;
(*(void ( **)(_QWORD))(*(_QWORD *)a1 + 760LL))(*((_QWORD *)a1 + 31));
}
*((_QWORD *)a1 + 1) = *(_QWORD *)a1 + 24LL;
a1[826] = 0;
if ( (a1[456] & 0x10) != 0 )
{
if ( (unsigned int)end_io_cache(a1 + 544) )
{
mi_report_error(126, *(_QWORD *)(*(_QWORD *)a1 + 616LL));
*(_BYTE *)(*(_QWORD *)a1 + 240LL) |= 2u;
mi_report_crashed();
}
a1[456] &= ~0x10u;
}
}
| mi_update_status:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x8]
LEA RCX,[RDI + 0x10]
CMP RAX,RCX
JNZ 0x0017c542
MOV RCX,qword ptr [RBX]
MOV RDX,qword ptr [RAX + 0x30]
MOV qword ptr [RCX + 0x48],RDX
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS XMM1,xmmword ptr [RAX + 0x10]
MOVUPS XMM2,xmmword ptr [RAX + 0x20]
MOVUPS xmmword ptr [RCX + 0x38],XMM2
MOVUPS xmmword ptr [RCX + 0x28],XMM1
MOVUPS xmmword ptr [RCX + 0x18],XMM0
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RBX + 0xf8]
CALL qword ptr [RAX + 0x2f8]
LAB_0017c542:
MOV RAX,qword ptr [RBX]
ADD RAX,0x18
MOV qword ptr [RBX + 0x8],RAX
MOV byte ptr [RBX + 0x33a],0x0
TEST byte ptr [RBX + 0x1c8],0x10
JZ 0x0017c5a8
LEA RDI,[RBX + 0x220]
CALL 0x001962f3
TEST EAX,EAX
JZ 0x0017c5a1
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x0017ad3a
MOV RAX,qword ptr [RBX]
OR byte ptr [RAX + 0xf0],0x2
LEA RDX,[0x1db921]
MOV RDI,RBX
XOR ESI,ESI
MOV ECX,0x164
CALL 0x0013048c
LAB_0017c5a1:
AND byte ptr [RBX + 0x1c8],0xef
LAB_0017c5a8:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mi_update_status(long *param_1)
{
long *plVar1;
long lVar2;
int4 uVar3;
int4 uVar4;
int4 uVar5;
int4 uVar6;
int4 uVar7;
int4 uVar8;
long lVar9;
long lVar10;
long lVar11;
long lVar12;
long lVar13;
int iVar14;
plVar1 = (long *)param_1[1];
if (plVar1 == param_1 + 2) {
lVar2 = *param_1;
*(long *)(lVar2 + 0x48) = plVar1[6];
lVar9 = *plVar1;
uVar3 = *(int4 *)((long)plVar1 + 4);
lVar10 = plVar1[1];
uVar4 = *(int4 *)((long)plVar1 + 0xc);
lVar11 = plVar1[2];
uVar5 = *(int4 *)((long)plVar1 + 0x14);
lVar12 = plVar1[3];
uVar6 = *(int4 *)((long)plVar1 + 0x1c);
uVar7 = *(int4 *)((long)plVar1 + 0x24);
lVar13 = plVar1[5];
uVar8 = *(int4 *)((long)plVar1 + 0x2c);
*(int *)(lVar2 + 0x38) = (int)plVar1[4];
*(int4 *)(lVar2 + 0x3c) = uVar7;
*(int *)(lVar2 + 0x40) = (int)lVar13;
*(int4 *)(lVar2 + 0x44) = uVar8;
*(int *)(lVar2 + 0x28) = (int)lVar11;
*(int4 *)(lVar2 + 0x2c) = uVar5;
*(int *)(lVar2 + 0x30) = (int)lVar12;
*(int4 *)(lVar2 + 0x34) = uVar6;
*(int *)(lVar2 + 0x18) = (int)lVar9;
*(int4 *)(lVar2 + 0x1c) = uVar3;
*(int *)(lVar2 + 0x20) = (int)lVar10;
*(int4 *)(lVar2 + 0x24) = uVar4;
(**(code **)(*param_1 + 0x2f8))(param_1[0x1f]);
}
param_1[1] = *param_1 + 0x18;
*(int1 *)((long)param_1 + 0x33a) = 0;
if ((*(byte *)(param_1 + 0x39) & 0x10) != 0) {
iVar14 = end_io_cache(param_1 + 0x44);
if (iVar14 != 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);
}
*(byte *)(param_1 + 0x39) = *(byte *)(param_1 + 0x39) & 0xef;
}
return;
}
| |
29,787 | find_or_create_program(PFS_thread*, enum_object_type, char const*, unsigned int, char const*, unsigned int) | eloqsql/storage/perfschema/pfs_program.cc | PFS_program*
find_or_create_program(PFS_thread *thread,
enum_object_type object_type,
const char *object_name,
uint object_name_length,
const char *schema_name,
uint schema_name_length)
{
bool is_enabled, is_timed;
LF_PINS *pins= get_program_hash_pins(thread);
if (unlikely(pins == NULL))
{
global_program_container.m_lost++;
return NULL;
}
/* Prepare program key */
PFS_program_key key;
set_program_key(&key, object_type,
object_name, object_name_length,
schema_name, schema_name_length);
PFS_program **entry;
PFS_program *pfs= NULL;
uint retry_count= 0;
const uint retry_max= 3;
pfs_dirty_state dirty_state;
search:
entry= reinterpret_cast<PFS_program**>
(lf_hash_search(&program_hash, pins,
key.m_hash_key, key.m_key_length));
if (entry && (entry != MY_ERRPTR))
{
/* If record already exists then return its pointer. */
pfs= *entry;
lf_hash_search_unpin(pins);
return pfs;
}
lf_hash_search_unpin(pins);
/*
First time while inserting this record to program array we need to
find out if it is enabled and timed.
*/
lookup_setup_object(thread, object_type,
schema_name, schema_name_length,
object_name, object_name_length,
&is_enabled, &is_timed);
/* Else create a new record in program stat array. */
pfs= global_program_container.allocate(& dirty_state);
if (pfs != NULL)
{
/* Do the assignments. */
memcpy(pfs->m_key.m_hash_key, key.m_hash_key, key.m_key_length);
pfs->m_key.m_key_length= key.m_key_length;
pfs->m_type= object_type;
pfs->m_object_name= pfs->m_key.m_hash_key + 1;
pfs->m_object_name_length= object_name_length;
pfs->m_schema_name= pfs->m_object_name + object_name_length + 1;
pfs->m_schema_name_length= schema_name_length;
pfs->m_enabled= is_enabled;
pfs->m_timed= is_timed;
/* Insert this record. */
pfs->m_lock.dirty_to_allocated(& dirty_state);
int res= lf_hash_insert(&program_hash, pins, &pfs);
if (likely(res == 0))
{
return pfs;
}
global_program_container.deallocate(pfs);
if (res > 0)
{
/* Duplicate insert by another thread */
if (++retry_count > retry_max)
{
/* Avoid infinite loops */
global_program_container.m_lost++;
return NULL;
}
goto search;
}
/* OOM in lf_hash_insert */
global_program_container.m_lost++;
return NULL;
}
return NULL;
} | O3 | cpp | find_or_create_program(PFS_thread*, enum_object_type, char const*, unsigned int, char const*, unsigned int):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movl %r9d, %ebx
movq %r8, %r14
movl %ecx, %r15d
movq %rdi, %r12
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq 0x848(%rdi), %rax
movq %rax, -0xe0(%rbp)
testq %rax, %rax
movl %esi, -0xcc(%rbp)
je 0x35af7
leaq -0xbc(%rbp), %r13
movq %r13, %rdi
movq %rdx, -0x100(%rbp)
movl %r15d, %ecx
movq %r14, %r8
movl %ebx, %r9d
callq 0x35b44
movq %r13, %rdx
leaq -0xc8(%rbp), %rax
movq $0x0, (%rax)
movl %r15d, %eax
movq %rax, -0xf8(%rbp)
movl $0x4, %eax
leaq 0x39afed(%rip), %rdi # 0x3d0940
movq -0xe0(%rbp), %r13
movl %eax, -0xd0(%rbp)
movl -0x34(%rbp), %ecx
movq %r13, %rsi
callq 0x2c4ea
cmpq $0x2, %rax
jae 0x35ac3
xorl %eax, %eax
xchgq %rax, 0x10(%r13)
movq %r12, -0xe8(%rbp)
movq %r12, %rdi
movl -0xcc(%rbp), %r12d
movl %r12d, %esi
movq %r14, -0xf0(%rbp)
movq %r14, %rdx
movl %ebx, %ecx
movq -0x100(%rbp), %r8
movl %r15d, %r9d
leaq -0xbd(%rbp), %rax
pushq %rax
leaq -0xbe(%rbp), %rax
pushq %rax
callq 0x33454
addq $0x10, %rsp
leaq 0x38fea3(%rip), %rdi # 0x3c5868
leaq -0xd4(%rbp), %rsi
callq 0x35ef6
movq %rax, -0xc8(%rbp)
testq %rax, %rax
movl $0x0, %ecx
je 0x35ad3
movq %rax, %r14
leaq 0x34(%rax), %rdi
movl -0x34(%rbp), %edx
leaq -0xbc(%rbp), %rsi
callq 0x26290
movl -0x34(%rbp), %eax
movl %eax, 0xbc(%r14)
movl %r12d, 0x10(%r14)
leaq 0x35(%r14), %rax
movq %rax, 0x18(%r14)
movl %r15d, 0x20(%r14)
movq -0xf8(%rbp), %rax
leaq 0x36(%r14,%rax), %rax
movq %rax, 0x28(%r14)
movl %ebx, 0x30(%r14)
movb -0xbe(%rbp), %al
movb %al, 0x4(%r14)
movb -0xbd(%rbp), %al
movq -0xc8(%rbp), %rcx
movb %al, 0x5(%rcx)
movq -0xc8(%rbp), %rax
movl -0xd4(%rbp), %ecx
andl $-0x4, %ecx
addl $0x6, %ecx
xchgl %ecx, (%rax)
leaq 0x39aee0(%rip), %rdi # 0x3d0940
movq %r13, %rsi
leaq -0xc8(%rbp), %rdx
callq 0x2bc8b
movq -0xc8(%rbp), %rcx
testl %eax, %eax
je 0x35ad3
movq 0x8(%rcx), %rdx
movl (%rcx), %esi
andl $-0x4, %esi
xchgl %esi, (%rcx)
xorl %ecx, %ecx
movb %cl, (%rdx)
leaq 0x38fdd8(%rip), %rdx # 0x3c5868
movb %cl, 0x9(%rdx)
testl %eax, %eax
movl -0xd0(%rbp), %eax
jle 0x35b1c
decl %eax
movq -0xf0(%rbp), %r14
movq -0xe8(%rbp), %r12
leaq -0xbc(%rbp), %rdx
leaq 0x39ae85(%rip), %rdi # 0x3d0940
jne 0x3595a
jmp 0x35b1c
movq (%rax), %rcx
movq %rcx, -0xc8(%rbp)
xorl %eax, %eax
xchgq %rax, 0x10(%r13)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x35b2a
movq %rcx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x1, 0x39af0a(%rip) # 0x3d0a08
jne 0x35b1c
movq %rdx, %r13
leaq 0x39ae5e(%rip), %rdi # 0x3d0968
callq 0x2bab0
movq %rax, 0x848(%r12)
testq %rax, %rax
jne 0x35b2f
leaq 0x38fd45(%rip), %rax # 0x3c5868
incq (%rax)
xorl %ecx, %ecx
jmp 0x35ad3
callq 0x263b0
movq %rax, -0xe0(%rbp)
movl -0xcc(%rbp), %esi
movq %r13, %rdx
jmp 0x3590d
| _Z22find_or_create_programP10PFS_thread16enum_object_typePKcjS3_j:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0D8h
mov ebx, r9d
mov r14, r8
mov r15d, ecx
mov r12, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi+848h]
mov [rbp+var_E0], rax
test rax, rax
mov [rbp+var_CC], esi
jz loc_35AF7
loc_3590D:
lea r13, [rbp+var_BC]
mov rdi, r13
mov [rbp+var_100], rdx
mov ecx, r15d
mov r8, r14
mov r9d, ebx
call _ZL15set_program_keyP15PFS_program_key16enum_object_typePKcjS3_j; set_program_key(PFS_program_key *,enum_object_type,char const*,uint,char const*,uint)
mov rdx, r13
lea rax, [rbp+var_C8]
mov qword ptr [rax], 0
mov eax, r15d
mov [rbp+var_F8], rax
mov eax, 4
lea rdi, program_hash
mov r13, [rbp+var_E0]
loc_3595A:
mov [rbp+var_D0], eax
mov ecx, [rbp+var_34]
mov rsi, r13
call lf_hash_search
cmp rax, 2
jnb loc_35AC3
xor eax, eax
xchg rax, [r13+10h]
mov [rbp+var_E8], r12
mov rdi, r12
mov r12d, [rbp+var_CC]
mov esi, r12d
mov [rbp+var_F0], r14
mov rdx, r14
mov ecx, ebx
mov r8, [rbp+var_100]
mov r9d, r15d
lea rax, [rbp+var_BD]
push rax
lea rax, [rbp+var_BE]
push rax
call _Z19lookup_setup_objectP10PFS_thread16enum_object_typePKciS3_iPbS4_; lookup_setup_object(PFS_thread *,enum_object_type,char const*,int,char const*,int,bool *,bool *)
add rsp, 10h
lea rdi, global_program_container
lea rsi, [rbp+var_D4]
call _ZN29PFS_buffer_scalable_containerI11PFS_programLi1024ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE8allocateEP15pfs_dirty_state; PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>>::allocate(pfs_dirty_state *)
mov [rbp+var_C8], rax
test rax, rax
mov ecx, 0
jz loc_35AD3
mov r14, rax
lea rdi, [rax+34h]
mov edx, [rbp+var_34]
lea rsi, [rbp+var_BC]
call _memcpy
mov eax, [rbp+var_34]
mov [r14+0BCh], eax
mov [r14+10h], r12d
lea rax, [r14+35h]
mov [r14+18h], rax
mov [r14+20h], r15d
mov rax, [rbp+var_F8]
lea rax, [r14+rax+36h]
mov [r14+28h], rax
mov [r14+30h], ebx
mov al, [rbp+var_BE]
mov [r14+4], al
mov al, [rbp+var_BD]
mov rcx, [rbp+var_C8]
mov [rcx+5], al
mov rax, [rbp+var_C8]
mov ecx, [rbp+var_D4]
and ecx, 0FFFFFFFCh
add ecx, 6
xchg ecx, [rax]
lea rdi, program_hash
mov rsi, r13
lea rdx, [rbp+var_C8]
call lf_hash_insert
mov rcx, [rbp+var_C8]
test eax, eax
jz short loc_35AD3
mov rdx, [rcx+8]
mov esi, [rcx]
and esi, 0FFFFFFFCh
xchg esi, [rcx]
xor ecx, ecx
mov [rdx], cl
lea rdx, global_program_container
mov [rdx+9], cl
test eax, eax
mov eax, [rbp+var_D0]
jle short loc_35B1C
dec eax
mov r14, [rbp+var_F0]
mov r12, [rbp+var_E8]
lea rdx, [rbp+var_BC]
lea rdi, program_hash
jnz loc_3595A
jmp short loc_35B1C
loc_35AC3:
mov rcx, [rax]
mov [rbp+var_C8], rcx
xor eax, eax
xchg rax, [r13+10h]
loc_35AD3:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_35B2A
mov rax, rcx
add rsp, 0D8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_35AF7:
cmp cs:_ZL19program_hash_inited, 1; program_hash_inited
jnz short loc_35B1C
mov r13, rdx
lea rdi, unk_3D0968
call lf_pinbox_get_pins
mov [r12+848h], rax
test rax, rax
jnz short loc_35B2F
loc_35B1C:
lea rax, global_program_container
inc qword ptr [rax]
xor ecx, ecx
jmp short loc_35AD3
loc_35B2A:
call ___stack_chk_fail
loc_35B2F:
mov [rbp+var_E0], rax
mov esi, [rbp+var_CC]
mov rdx, r13
jmp loc_3590D
| volatile __int32 * find_or_create_program(
long long a1,
long long a2,
long long a3,
unsigned int a4,
long long a5,
unsigned int a6)
{
long long v9; // r12
int v10; // eax
volatile __int32 **v11; // rax
long long v12; // rdi
unsigned int v13; // r12d
volatile __int32 *v14; // rax
volatile __int32 *v15; // rcx
volatile __int32 *v16; // r14
int v17; // eax
_BYTE *v18; // rdx
long long v20; // r13
long long pins; // rax
long long v22; // [rsp+0h] [rbp-100h]
long long v23; // [rsp+10h] [rbp-F0h]
long long v24; // [rsp+18h] [rbp-E8h]
volatile long long *v25; // [rsp+20h] [rbp-E0h]
int v26; // [rsp+2Ch] [rbp-D4h] BYREF
int v27; // [rsp+30h] [rbp-D0h]
unsigned int v28; // [rsp+34h] [rbp-CCh]
volatile __int32 *v29; // [rsp+38h] [rbp-C8h] BYREF
char v30; // [rsp+42h] [rbp-BEh] BYREF
char v31; // [rsp+43h] [rbp-BDh] BYREF
_BYTE v32[136]; // [rsp+44h] [rbp-BCh] BYREF
unsigned int v33; // [rsp+CCh] [rbp-34h]
unsigned long long v34; // [rsp+D0h] [rbp-30h]
v9 = a1;
v34 = __readfsqword(0x28u);
v25 = *(volatile long long **)(a1 + 2120);
v28 = a2;
if ( !v25 )
{
if ( program_hash_inited != 1
|| (v20 = a3, pins = lf_pinbox_get_pins((long long)&unk_3D0968), (*(_QWORD *)(a1 + 2120) = pins) == 0LL) )
{
LABEL_13:
++global_program_container[0];
return 0LL;
}
v25 = (volatile long long *)pins;
a2 = v28;
a3 = v20;
}
v22 = a3;
set_program_key(v32, a2, a3, a4, a5, a6);
v29 = 0LL;
v10 = 4;
while ( 1 )
{
v27 = v10;
v11 = (volatile __int32 **)lf_hash_search((long long)&program_hash, v25, (long long)v32, v33);
if ( (unsigned long long)v11 >= 2 )
break;
_InterlockedExchange64(v25 + 2, 0LL);
v24 = v9;
v12 = v9;
v13 = v28;
v23 = a5;
lookup_setup_object(v12, v28, a5, a6, v22, a4, &v30, &v31);
v14 = (volatile __int32 *)PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>>::allocate(
global_program_container,
&v26);
v29 = v14;
v15 = 0LL;
if ( !v14 )
return v15;
v16 = v14;
memcpy(v14 + 13, v32, v33);
*((_DWORD *)v16 + 47) = v33;
*((_DWORD *)v16 + 4) = v13;
*((_QWORD *)v16 + 3) = (char *)v16 + 53;
*((_DWORD *)v16 + 8) = a4;
*((_QWORD *)v16 + 5) = (char *)v16 + a4 + 54;
*((_DWORD *)v16 + 12) = a6;
*((_BYTE *)v16 + 4) = v30;
*((_BYTE *)v29 + 5) = v31;
_InterlockedExchange(v29, (v26 & 0xFFFFFFFC) + 6);
v17 = lf_hash_insert((long long)&program_hash, (long long)v25, (long long)&v29);
v15 = v29;
if ( !v17 )
return v15;
v18 = (_BYTE *)*((_QWORD *)v29 + 1);
_InterlockedExchange(v29, *v29 & 0xFFFFFFFC);
*v18 = 0;
BYTE1(global_program_container[1]) = 0;
if ( v17 > 0 )
{
v10 = v27 - 1;
a5 = v23;
v9 = v24;
if ( v27 != 1 )
continue;
}
goto LABEL_13;
}
v15 = *v11;
v29 = *v11;
_InterlockedExchange64(v25 + 2, 0LL);
return v15;
}
| find_or_create_program:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xd8
MOV EBX,R9D
MOV R14,R8
MOV R15D,ECX
MOV R12,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI + 0x848]
MOV qword ptr [RBP + -0xe0],RAX
TEST RAX,RAX
MOV dword ptr [RBP + -0xcc],ESI
JZ 0x00135af7
LAB_0013590d:
LEA R13,[RBP + -0xbc]
MOV RDI,R13
MOV qword ptr [RBP + -0x100],RDX
MOV ECX,R15D
MOV R8,R14
MOV R9D,EBX
CALL 0x00135b44
MOV RDX,R13
LEA RAX,[RBP + -0xc8]
MOV qword ptr [RAX],0x0
MOV EAX,R15D
MOV qword ptr [RBP + -0xf8],RAX
MOV EAX,0x4
LEA RDI,[0x4d0940]
MOV R13,qword ptr [RBP + -0xe0]
LAB_0013595a:
MOV dword ptr [RBP + -0xd0],EAX
MOV ECX,dword ptr [RBP + -0x34]
MOV RSI,R13
CALL 0x0012c4ea
CMP RAX,0x2
JNC 0x00135ac3
XOR EAX,EAX
XCHG qword ptr [R13 + 0x10],RAX
MOV qword ptr [RBP + -0xe8],R12
MOV RDI,R12
MOV R12D,dword ptr [RBP + -0xcc]
MOV ESI,R12D
MOV qword ptr [RBP + -0xf0],R14
MOV RDX,R14
MOV ECX,EBX
MOV R8,qword ptr [RBP + -0x100]
MOV R9D,R15D
LEA RAX,[RBP + -0xbd]
PUSH RAX
LEA RAX,[RBP + -0xbe]
PUSH RAX
CALL 0x00133454
ADD RSP,0x10
LEA RDI,[0x4c5868]
LEA RSI,[RBP + -0xd4]
CALL 0x00135ef6
MOV qword ptr [RBP + -0xc8],RAX
TEST RAX,RAX
MOV ECX,0x0
JZ 0x00135ad3
MOV R14,RAX
LEA RDI,[RAX + 0x34]
MOV EDX,dword ptr [RBP + -0x34]
LEA RSI,[RBP + -0xbc]
CALL 0x00126290
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [R14 + 0xbc],EAX
MOV dword ptr [R14 + 0x10],R12D
LEA RAX,[R14 + 0x35]
MOV qword ptr [R14 + 0x18],RAX
MOV dword ptr [R14 + 0x20],R15D
MOV RAX,qword ptr [RBP + -0xf8]
LEA RAX,[R14 + RAX*0x1 + 0x36]
MOV qword ptr [R14 + 0x28],RAX
MOV dword ptr [R14 + 0x30],EBX
MOV AL,byte ptr [RBP + -0xbe]
MOV byte ptr [R14 + 0x4],AL
MOV AL,byte ptr [RBP + -0xbd]
MOV RCX,qword ptr [RBP + -0xc8]
MOV byte ptr [RCX + 0x5],AL
MOV RAX,qword ptr [RBP + -0xc8]
MOV ECX,dword ptr [RBP + -0xd4]
AND ECX,0xfffffffc
ADD ECX,0x6
XCHG dword ptr [RAX],ECX
LEA RDI,[0x4d0940]
MOV RSI,R13
LEA RDX,[RBP + -0xc8]
CALL 0x0012bc8b
MOV RCX,qword ptr [RBP + -0xc8]
TEST EAX,EAX
JZ 0x00135ad3
MOV RDX,qword ptr [RCX + 0x8]
MOV ESI,dword ptr [RCX]
AND ESI,0xfffffffc
XCHG dword ptr [RCX],ESI
XOR ECX,ECX
MOV byte ptr [RDX],CL
LEA RDX,[0x4c5868]
MOV byte ptr [RDX + 0x9],CL
TEST EAX,EAX
MOV EAX,dword ptr [RBP + -0xd0]
JLE 0x00135b1c
DEC EAX
MOV R14,qword ptr [RBP + -0xf0]
MOV R12,qword ptr [RBP + -0xe8]
LEA RDX,[RBP + -0xbc]
LEA RDI,[0x4d0940]
JNZ 0x0013595a
JMP 0x00135b1c
LAB_00135ac3:
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBP + -0xc8],RCX
XOR EAX,EAX
XCHG qword ptr [R13 + 0x10],RAX
LAB_00135ad3:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00135b2a
MOV RAX,RCX
ADD RSP,0xd8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00135af7:
CMP byte ptr [0x004d0a08],0x1
JNZ 0x00135b1c
MOV R13,RDX
LEA RDI,[0x4d0968]
CALL 0x0012bab0
MOV qword ptr [R12 + 0x848],RAX
TEST RAX,RAX
JNZ 0x00135b2f
LAB_00135b1c:
LEA RAX,[0x4c5868]
INC qword ptr [RAX]
XOR ECX,ECX
JMP 0x00135ad3
LAB_00135b2a:
CALL 0x001263b0
LAB_00135b2f:
MOV qword ptr [RBP + -0xe0],RAX
MOV ESI,dword ptr [RBP + -0xcc]
MOV RDX,R13
JMP 0x0013590d
|
/* find_or_create_program(PFS_thread*, enum_object_type, char const*, unsigned int, char const*,
unsigned int) */
uint * find_or_create_program
(long param_1,ulong param_2,int8 param_3,uint param_4,int8 param_5,
uint param_6)
{
uint uVar1;
int iVar2;
int8 *puVar3;
uint *puVar4;
uint *puVar5;
long in_FS_OFFSET;
long local_e8;
uint local_dc;
int local_d8;
uint local_d4;
uint *local_d0;
int1 local_c6;
int1 local_c5;
int1 local_c4 [136];
uint local_3c;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_e8 = *(long *)(param_1 + 0x848);
local_d4 = (uint)param_2;
if (local_e8 == 0) {
if (program_hash_inited != '\x01') goto LAB_00135b1c;
local_e8 = lf_pinbox_get_pins(0x4d0968);
*(long *)(param_1 + 0x848) = local_e8;
if (local_e8 == 0) goto LAB_00135b1c;
param_2 = (ulong)local_d4;
}
set_program_key(local_c4,param_2,param_3,param_4,param_5,param_6);
local_d0 = (uint *)0x0;
iVar2 = 4;
do {
local_d8 = iVar2;
puVar3 = (int8 *)lf_hash_search(program_hash,local_e8,local_c4,local_3c);
uVar1 = local_d4;
if ((int8 *)0x1 < puVar3) {
puVar5 = (uint *)*puVar3;
LOCK();
*(int8 *)(local_e8 + 0x10) = 0;
UNLOCK();
local_d0 = puVar5;
goto LAB_00135ad3;
}
LOCK();
*(int8 *)(local_e8 + 0x10) = 0;
UNLOCK();
lookup_setup_object(param_1,local_d4,param_5,param_6,param_3,param_4,&local_c6,&local_c5);
puVar4 = (uint *)PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>>
::allocate((PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>>
*)&global_program_container,(pfs_dirty_state *)&local_dc);
puVar5 = (uint *)0x0;
local_d0 = puVar4;
if (puVar4 == (uint *)0x0) goto LAB_00135ad3;
memcpy(puVar4 + 0xd,local_c4,(ulong)local_3c);
puVar4[0x2f] = local_3c;
puVar4[4] = uVar1;
*(long *)(puVar4 + 6) = (long)puVar4 + 0x35;
puVar4[8] = param_4;
*(ulong *)(puVar4 + 10) = (long)puVar4 + (ulong)param_4 + 0x36;
puVar4[0xc] = param_6;
*(int1 *)(puVar4 + 1) = local_c6;
*(int1 *)((long)local_d0 + 5) = local_c5;
LOCK();
uVar1 = *local_d0;
*local_d0 = (local_dc & 0xfffffffc) + 6;
UNLOCK();
iVar2 = lf_hash_insert(program_hash,local_e8,&local_d0,uVar1);
puVar5 = local_d0;
if (iVar2 == 0) goto LAB_00135ad3;
LOCK();
*local_d0 = *local_d0 & 0xfffffffc;
UNLOCK();
**(int1 **)(local_d0 + 2) = 0;
DAT_004c5871 = 0;
} while ((0 < iVar2) && (iVar2 = local_d8 + -1, iVar2 != 0));
LAB_00135b1c:
global_program_container = global_program_container + 1;
puVar5 = (uint *)0x0;
LAB_00135ad3:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return puVar5;
}
| |
29,788 | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t) | monkey531[P]llama/common/json.hpp | static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38834(%rip), %rsi # 0xafd4c
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x25c26
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movl %ebp, %edx
callq 0x3cec2
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x3cf38
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r14, %rcx
callq 0x3ce59
leaq 0x10(%rsp), %rdi
callq 0x24158
leaq 0x50(%rsp), %rdi
callq 0x24158
leaq 0x30(%rsp), %rdi
callq 0x24158
movq 0x70(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x429ac
leaq 0x70(%rsp), %rdi
callq 0x24158
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
jmp 0x775d1
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x24158
jmp 0x775bd
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x24158
jmp 0x775cc
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x24158
jmp 0x775db
movq %rax, %rbx
movq %rbx, %rdi
callq 0x23f10
nop
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r14
push rbx
sub rsp, 90h
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rsi, aTypeError; "type_error"
lea rdi, [rsp+0A8h+var_78]
lea rdx, [rsp+0A8h+var_99]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_58]
lea rsi, [rsp+0A8h+var_78]
mov edx, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0A8h+var_98]
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsB5cxx11EDn; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics(decltype(nullptr))
lea rdi, [rsp+0A8h+var_38]
lea rsi, [rsp+0A8h+var_58]
lea rdx, [rsp+0A8h+var_98]
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&)
lea rdi, [rsp+0A8h+var_98]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdx, [rsp+0A8h+var_38]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail10type_errorC2EiPKc; nlohmann::json_abi_v3_11_3::detail::type_error::type_error(int,char const*)
lea rdi, [rsp+0A8h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 90h
pop rbx
pop r14
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_68]
jmp short loc_775D1
mov rbx, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_775BD
mov rbx, rax
loc_775BD:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_775CC
mov rbx, rax
loc_775CC:
lea rdi, [rsp+arg_28]; void *
loc_775D1:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_775DB
mov rbx, rax
loc_775DB:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::type_error * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::type_error *this,
int a2,
long long a3)
{
_QWORD v5[4]; // [rsp+10h] [rbp-98h] BYREF
_QWORD v6[4]; // [rsp+30h] [rbp-78h] BYREF
_BYTE v7[32]; // [rsp+50h] [rbp-58h] BYREF
char *v8[7]; // [rsp+70h] [rbp-38h] BYREF
std::string::basic_string<std::allocator<char>>(v6, (long long)"type_error");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v7, (long long)v6, a2);
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics[abi:cxx11](v5);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(
(long long)v8,
(long long)v7,
(long long)v5,
a3);
std::string::~string(v5);
std::string::~string(v7);
std::string::~string(v6);
nlohmann::json_abi_v3_11_3::detail::type_error::type_error(this, a2, v8[0]);
std::string::~string(v8);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x90
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LAB_00177511:
LEA RSI,[0x1afd4c]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0xf]
CALL 0x00125c26
LAB_00177527:
LEA RDI,[RSP + 0x50]
LEA RSI,[RSP + 0x30]
MOV EDX,EBP
CALL 0x0013cec2
LAB_00177538:
LEA RDI,[RSP + 0x10]
XOR ESI,ESI
CALL 0x0013cf38
LAB_00177544:
LEA RDI,[RSP + 0x70]
LEA RSI,[RSP + 0x50]
LEA RDX,[RSP + 0x10]
MOV RCX,R14
CALL 0x0013ce59
LEA RDI,[RSP + 0x10]
CALL 0x00124158
LEA RDI,[RSP + 0x50]
CALL 0x00124158
LEA RDI,[RSP + 0x30]
CALL 0x00124158
MOV RDX,qword ptr [RSP + 0x70]
LAB_0017757e:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x001429ac
LAB_00177588:
LEA RDI,[RSP + 0x70]
CALL 0x00124158
MOV RAX,RBX
ADD RSP,0x90
POP RBX
POP R14
POP RBP
RET
|
type_error *
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(type_error *param_1,int param_2,string *param_3)
{
allocator local_99;
string local_98 [32];
string local_78 [32];
exception local_58 [32];
char *local_38 [4];
/* try { // try from 00177511 to 00177526 has its CatchHandler @ 001775d8 */
std::__cxx11::string::string<std::allocator<char>>(local_78,"type_error",&local_99);
/* try { // try from 00177527 to 00177537 has its CatchHandler @ 001775c9 */
nlohmann::json_abi_v3_11_3::detail::exception::name(local_58,local_78,param_2);
/* try { // try from 00177538 to 00177543 has its CatchHandler @ 001775ba */
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics_abi_cxx11_
((_func_decltype_nullptr *)local_98);
/* try { // try from 00177544 to 0017755a has its CatchHandler @ 001775ab */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_38,(string *)local_58,local_98,param_3);
std::__cxx11::string::~string(local_98);
std::__cxx11::string::~string((string *)local_58);
std::__cxx11::string::~string(local_78);
/* try { // try from 0017757e to 00177587 has its CatchHandler @ 001775a1 */
nlohmann::json_abi_v3_11_3::detail::type_error::type_error(param_1,param_2,local_38[0]);
std::__cxx11::string::~string((string *)local_38);
return param_1;
}
| |
29,789 | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t) | monkey531[P]llama/common/json.hpp | static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x4b987(%rip), %rsi # 0xebd3a
leaq 0x4b98a(%rip), %rdx # 0xebd44
leaq 0x28(%rsp), %rdi
callq 0x21540
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x57b42
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq 0x8(%r15), %rsi
addq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x1ad20
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1a250
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1a250
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1a250
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0xa045d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1a890
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa0478
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1a890
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xa048f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a890
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x57db0
leaq 0x87abb(%rip), %rax # 0x127f60
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xa04c3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a890
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xa0551
movq 0x18(%rsp), %rsi
jmp 0xa0549
movq %rax, %rbx
jmp 0xa053a
movq %rax, %rbx
jmp 0xa0551
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xa0513
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a890
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x88(%rsp), %r12
movq %r14, %rsi
movq %r15, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0x1bef4
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xa0551
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a890
movq %rbx, %rdi
callq 0x1af20
nop
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rdx
mov ebp, esi
mov rbx, rdi
lea r13, [rsp+0C8h+var_90]
mov [r13-10h], r13
lea rsi, aTypeError; "type_error"
lea rdx, aTypeError+0Ah; ""
lea rdi, [rsp+0C8h+var_A0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0C8h+var_80]; int
lea rsi, [rsp+0C8h+var_A0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea r14, [rsp+0C8h+var_50]
mov [r14-10h], r14
xor eax, eax
mov [r14-8], rax
mov [r14], al
lea r12, [rsp+0C8h+var_B0]
mov [r12-10h], r12
mov [r12-8], rax
mov [r12], al
mov rsi, [r15+8]
add rsi, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, qword ptr [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0C8h+var_60]; void *
cmp rdi, r14
jz short loc_A045D
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A045D:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_A0478
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A0478:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_A048F
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A048F:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail10type_errorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::type_error
add rax, 10h
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_A04C3
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A04C3:
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r12
jz short loc_A0551
mov rsi, [rsp+arg_10]
jmp short loc_A0549
mov rbx, rax
jmp short loc_A053A
mov rbx, rax
jmp short loc_A0551
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_A0513
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A0513:
lea rdi, [rsp+arg_60]
lea rdx, [rsp+arg_40]
lea r12, [rsp+arg_80]
mov rsi, r14
mov rcx, r15
mov r8d, ebx
mov r9, r12
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5__cold_1
mov rbx, [r12]
loc_A053A:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_A0551
mov rsi, [rsp+arg_30]
loc_A0549:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A0551:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
_QWORD *a3)
{
char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF
int v9[2]; // [rsp+48h] [rbp-80h] BYREF
long long v10; // [rsp+50h] [rbp-78h]
long long v11; // [rsp+58h] [rbp-70h] BYREF
void *v12; // [rsp+68h] [rbp-60h]
long long v13; // [rsp+70h] [rbp-58h]
_QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>((long long)v7, "type_error", (long long)"");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2);
v12 = v14;
v13 = 0LL;
LOBYTE(v14[0]) = 0;
v5[0] = (char *)v6;
v5[1] = 0LL;
LOBYTE(v6[0]) = 0;
std::string::reserve(v5, v10 + a3[1]);
std::string::_M_append(v5, *(_QWORD *)v9, v10);
std::string::_M_append(v5, v12, v13);
std::string::_M_append(v5, *a3, a3[1]);
if ( v12 != v14 )
operator delete(v12, v14[0] + 1LL);
if ( *(long long **)v9 != &v11 )
operator delete(*(void **)v9, v11 + 1);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]);
*(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::type_error + 2;
if ( (_QWORD *)v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R15,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_001a03ac:
LEA RSI,[0x1ebd3a]
LEA RDX,[0x1ebd44]
LEA RDI,[RSP + 0x28]
CALL 0x00121540
LAB_001a03c4:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x00157b42
LEA R14,[RSP + 0x78]
MOV qword ptr [R14 + -0x10],R14
XOR EAX,EAX
MOV qword ptr [R14 + -0x8],RAX
MOV byte ptr [R14],AL
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],RAX
MOV byte ptr [R12],AL
MOV RSI,qword ptr [R15 + 0x8]
ADD RSI,qword ptr [RSP + 0x50]
LAB_001a0403:
LEA RDI,[RSP + 0x8]
CALL 0x0011ad20
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
LEA RDI,[RSP + 0x8]
CALL 0x0011a250
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
LEA RDI,[RSP + 0x8]
CALL 0x0011a250
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x0011a250
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R14
JZ 0x001a045d
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x0011a890
LAB_001a045d:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001a0478
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0011a890
LAB_001a0478:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x001a048f
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011a890
LAB_001a048f:
MOV RDX,qword ptr [RSP + 0x8]
LAB_001a0494:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x00157db0
LAB_001a049e:
LEA RAX,[0x227f60]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x001a04c3
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a890
LAB_001a04c3:
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(exception *param_1,int param_2,ulong *param_3)
{
char *local_c0;
int8 local_b8;
char local_b0;
int7 uStack_af;
long *local_a0 [2];
long local_90 [2];
long *local_80 [2];
long local_70 [2];
int1 *local_60;
int8 local_58;
int1 local_50;
int7 uStack_4f;
/* try { // try from 001a03ac to 001a03c3 has its CatchHandler @ 001a04f1 */
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char_const*>(local_a0,"type_error","");
/* try { // try from 001a03c4 to 001a03d4 has its CatchHandler @ 001a04ec */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_80,(string *)local_a0,param_2);
local_58 = 0;
local_50 = 0;
local_b8 = 0;
local_b0 = '\0';
/* try { // try from 001a0403 to 001a0445 has its CatchHandler @ 001a04f6 */
local_c0 = &local_b0;
local_60 = &local_50;
std::__cxx11::string::reserve((ulong)&local_c0);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60);
std::__cxx11::string::_M_append((char *)&local_c0,*param_3);
if (local_60 != &local_50) {
operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1);
}
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 1);
}
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
/* try { // try from 001a0494 to 001a049d has its CatchHandler @ 001a04d8 */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0);
*(int ***)param_1 = &PTR__exception_00227f70;
if (local_c0 != &local_b0) {
operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1);
}
return param_1;
}
| |
29,790 | change_simple_key_cache_param | eloqsql/mysys/mf_keycache.c | static
void change_simple_key_cache_param(SIMPLE_KEY_CACHE_CB *keycache, uint division_limit,
uint age_threshold)
{
DBUG_ENTER("change_simple_key_cache_param");
keycache_pthread_mutex_lock(&keycache->cache_lock);
if (division_limit)
keycache->min_warm_blocks= (keycache->disk_blocks *
division_limit / 100 + 1);
if (age_threshold)
keycache->age_threshold= (keycache->disk_blocks *
age_threshold / 100);
keycache_pthread_mutex_unlock(&keycache->cache_lock);
DBUG_VOID_RETURN;
} | O0 | c | change_simple_key_cache_param:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
leaq 0x6600b(%rip), %rsi # 0xd9bff
movl $0x399, %edx # imm = 0x399
callq 0x71150
cmpl $0x0, -0xc(%rbp)
je 0x73c27
movq -0x8(%rbp), %rax
movl 0x48(%rax), %eax
imull -0xc(%rbp), %eax
movl $0x64, %ecx
xorl %edx, %edx
divl %ecx
addl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
cmpl $0x0, -0x10(%rbp)
je 0x73c4d
movq -0x8(%rbp), %rax
movl 0x48(%rax), %eax
imull -0x10(%rbp), %eax
movl $0x64, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
callq 0x71b70
jmp 0x73c5f
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| change_simple_key_cache_param:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov rdi, [rbp+var_8]
add rdi, 0C0h
lea rsi, aWorkspaceLlm4b_19; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 399h
call inline_mysql_mutex_lock_9
cmp [rbp+var_C], 0
jz short loc_73C27
mov rax, [rbp+var_8]
mov eax, [rax+48h]
imul eax, [rbp+var_C]
mov ecx, 64h ; 'd'
xor edx, edx
div ecx
add eax, 1
mov eax, eax
mov ecx, eax
mov rax, [rbp+var_8]
mov [rax+20h], rcx
loc_73C27:
cmp [rbp+var_10], 0
jz short loc_73C4D
mov rax, [rbp+var_8]
mov eax, [rax+48h]
imul eax, [rbp+var_10]
mov ecx, 64h ; 'd'
xor edx, edx
div ecx
mov eax, eax
mov ecx, eax
mov rax, [rbp+var_8]
mov [rax+28h], rcx
loc_73C4D:
mov rdi, [rbp+var_8]
add rdi, 0C0h
call inline_mysql_mutex_unlock_9
jmp short $+2
loc_73C5F:
add rsp, 10h
pop rbp
retn
| long long change_simple_key_cache_param(long long a1, int a2, int a3)
{
inline_mysql_mutex_lock_9(a1 + 192, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0x399u);
if ( a2 )
*(_QWORD *)(a1 + 32) = a2 * *(_DWORD *)(a1 + 72) / 0x64u + 1;
if ( a3 )
*(_QWORD *)(a1 + 40) = a3 * *(_DWORD *)(a1 + 72) / 0x64u;
return inline_mysql_mutex_unlock_9(a1 + 192);
}
| change_simple_key_cache_param:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
LEA RSI,[0x1d9bff]
MOV EDX,0x399
CALL 0x00171150
CMP dword ptr [RBP + -0xc],0x0
JZ 0x00173c27
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x48]
IMUL EAX,dword ptr [RBP + -0xc]
MOV ECX,0x64
XOR EDX,EDX
DIV ECX
ADD EAX,0x1
MOV EAX,EAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x20],RCX
LAB_00173c27:
CMP dword ptr [RBP + -0x10],0x0
JZ 0x00173c4d
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x48]
IMUL EAX,dword ptr [RBP + -0x10]
MOV ECX,0x64
XOR EDX,EDX
DIV ECX
MOV EAX,EAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x28],RCX
LAB_00173c4d:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
CALL 0x00171b70
JMP 0x00173c5f
LAB_00173c5f:
ADD RSP,0x10
POP RBP
RET
|
void change_simple_key_cache_param(long param_1,int param_2,int param_3)
{
inline_mysql_mutex_lock
(param_1 + 0xc0,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",0x399);
if (param_2 != 0) {
*(ulong *)(param_1 + 0x20) = (ulong)((uint)(*(int *)(param_1 + 0x48) * param_2) / 100 + 1);
}
if (param_3 != 0) {
*(ulong *)(param_1 + 0x28) = (ulong)(uint)(*(int *)(param_1 + 0x48) * param_3) / 100;
}
inline_mysql_mutex_unlock(param_1 + 0xc0);
return;
}
| |
29,791 | minja::DictExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
auto result = Value::object();
for (const auto& [key, value] : elements) {
if (!key) throw std::runtime_error("Dict key is null");
if (!value) throw std::runtime_error("Dict value is null");
result.set(key->evaluate(context), value->evaluate(context));
}
return result;
} | O2 | cpp | minja::DictExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x4968a
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4b9ba
leaq 0x10(%rsp), %rdi
callq 0x302a2
movq 0x20(%r15), %r13
movq 0x28(%r15), %rbp
leaq 0x68(%rsp), %r15
leaq 0x18(%rsp), %r12
cmpq %rbp, %r13
je 0x4b797
movq (%r13), %rsi
testq %rsi, %rsi
je 0x4b7ac
cmpq $0x0, 0x10(%r13)
je 0x4b7c8
movq %r15, %rdi
movq %r14, %rdx
callq 0x3c2ec
movq 0x10(%r13), %rsi
movq %r12, %rdi
movq %r14, %rdx
callq 0x3c2ec
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x4b874
movq %r12, %rdi
callq 0x3c57c
movq %r15, %rdi
callq 0x3c57c
addq $0x20, %r13
jmp 0x4b744
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x20380
movq %rax, %r15
leaq 0x447b5(%rip), %rsi # 0x8ff73
movq %rax, %rdi
callq 0x20270
jmp 0x4b7e2
pushq $0x10
popq %rdi
callq 0x20380
movq %rax, %r15
leaq 0x447aa(%rip), %rsi # 0x8ff84
movq %rax, %rdi
callq 0x20270
movq 0x83807(%rip), %rsi # 0xceff0
movq 0x83780(%rip), %rdx # 0xcef70
movq %r15, %rdi
callq 0x20b30
jmp 0x4b7fa
movq %rax, %r14
movq %r15, %rdi
callq 0x20510
jmp 0x4b82a
movq %rax, %r14
jmp 0x4b819
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x3c57c
leaq 0x68(%rsp), %rdi
callq 0x3c57c
jmp 0x4b82a
jmp 0x4b827
movq %rax, %r14
movq %rbx, %rdi
callq 0x3c57c
movq %r14, %rdi
callq 0x20ba0
| _ZNK5minja8DictExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea r12, [rsp+0E8h+var_E0]
mov rdi, r12
call _ZSt11make_sharedIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEEJEESt10shared_ptrIT_EDpOT0_; std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>()
mov rdi, rbx
mov rsi, r12
call _ZN5minja5ValueC2ERKSt10shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS3_10basic_jsonIS4_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES0_St4lessISG_ESaISt4pairIKSG_S0_EEEEE; minja::Value::Value(std::shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>> const&)
lea rdi, [rsp+0E8h+var_D8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov r13, [r15+20h]
mov rbp, [r15+28h]
lea r15, [rsp+0E8h+var_80]
lea r12, [rsp+0E8h+var_D0]
loc_4B744:
cmp r13, rbp
jz short loc_4B797
mov rsi, [r13+0]
test rsi, rsi
jz short loc_4B7AC
cmp qword ptr [r13+10h], 0
jz short loc_4B7C8
mov rdi, r15
mov rdx, r14
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rsi, [r13+10h]
mov rdi, r12
mov rdx, r14
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rdi, rbx; this
mov rsi, r15; minja::Value *
mov rdx, r12; minja::Value *
call _ZN5minja5Value3setERKS0_S2_; minja::Value::set(minja::Value const&,minja::Value const&)
mov rdi, r12; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, r15; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
add r13, 20h ; ' '
jmp short loc_4B744
loc_4B797:
mov rax, rbx
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4B7AC:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aDictKeyIsNull; "Dict key is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_4B7E2
loc_4B7C8:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aDictValueIsNul; "Dict value is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_4B7E2:
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short $+2
loc_4B7FA:
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_4B82A
mov r14, rax
jmp short loc_4B819
mov r14, rax
lea rdi, [rsp+0E8h+var_D0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_4B819:
lea rdi, [rsp+0E8h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_4B82A
jmp short $+2
loc_4B827:
mov r14, rax
loc_4B82A:
mov rdi, rbx; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, r14
call __Unwind_Resume
| minja::Value * minja::DictExpr::do_evaluate(minja::Value *this, long long a2)
{
void (****v2)(void); // r13
void (****v3)(void); // rbp
std::runtime_error *exception; // r15
_BYTE v6[8]; // [rsp+8h] [rbp-E0h] BYREF
long long v7; // [rsp+10h] [rbp-D8h] BYREF
_BYTE v8[80]; // [rsp+18h] [rbp-D0h] BYREF
_BYTE v9[128]; // [rsp+68h] [rbp-80h] BYREF
std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>((long long)v6);
minja::Value::Value(this, v6);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v7);
v2 = *(void (*****)(void))(a2 + 32);
v3 = *(void (*****)(void))(a2 + 40);
while ( v2 != v3 )
{
if ( !*v2 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Dict key is null");
goto LABEL_9;
}
if ( !v2[2] )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Dict value is null");
LABEL_9:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Expression::evaluate((long long)v9, *v2);
minja::Expression::evaluate((long long)v8, v2[2]);
minja::Value::set(this, (const minja::Value *)v9, (const minja::Value *)v8);
minja::Value::~Value((minja::Value *)v8);
minja::Value::~Value((minja::Value *)v9);
v2 += 4;
}
return this;
}
| do_evaluate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA R12,[RSP + 0x8]
MOV RDI,R12
CALL 0x0014968a
MOV RDI,RBX
MOV RSI,R12
CALL 0x0014b9ba
LEA RDI,[RSP + 0x10]
CALL 0x001302a2
MOV R13,qword ptr [R15 + 0x20]
MOV RBP,qword ptr [R15 + 0x28]
LEA R15,[RSP + 0x68]
LEA R12,[RSP + 0x18]
LAB_0014b744:
CMP R13,RBP
JZ 0x0014b797
MOV RSI,qword ptr [R13]
TEST RSI,RSI
JZ 0x0014b7ac
CMP qword ptr [R13 + 0x10],0x0
JZ 0x0014b7c8
LAB_0014b759:
MOV RDI,R15
MOV RDX,R14
CALL 0x0013c2ec
MOV RSI,qword ptr [R13 + 0x10]
LAB_0014b768:
MOV RDI,R12
MOV RDX,R14
CALL 0x0013c2ec
LAB_0014b773:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R12
CALL 0x0014b874
LAB_0014b781:
MOV RDI,R12
CALL 0x0013c57c
MOV RDI,R15
CALL 0x0013c57c
ADD R13,0x20
JMP 0x0014b744
LAB_0014b797:
MOV RAX,RBX
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014b7ac:
PUSH 0x10
POP RDI
CALL 0x00120380
MOV R15,RAX
LAB_0014b7b7:
LEA RSI,[0x18ff73]
MOV RDI,RAX
CALL 0x00120270
LAB_0014b7c6:
JMP 0x0014b7e2
LAB_0014b7c8:
PUSH 0x10
POP RDI
CALL 0x00120380
MOV R15,RAX
LAB_0014b7d3:
LEA RSI,[0x18ff84]
MOV RDI,RAX
CALL 0x00120270
LAB_0014b7e2:
MOV RSI,qword ptr [0x001ceff0]
MOV RDX,qword ptr [0x001cef70]
MOV RDI,R15
CALL 0x00120b30
|
/* minja::DictExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
DictExpr * __thiscall minja::DictExpr::do_evaluate(DictExpr *this,shared_ptr *param_1)
{
int8 *puVar1;
runtime_error *this_00;
int8 *puVar2;
shared_ptr local_e0 [8];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_d8 [8];
Expression local_d0 [80];
Expression local_80 [80];
std::
make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>>
();
Value::Value((Value *)this,local_e0);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_d8);
puVar2 = *(int8 **)(param_1 + 0x20);
puVar1 = *(int8 **)(param_1 + 0x28);
while( true ) {
if (puVar2 == puVar1) {
return this;
}
if ((shared_ptr *)*puVar2 == (shared_ptr *)0x0) break;
if (puVar2[2] == 0) {
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0014b7d3 to 0014b7e1 has its CatchHandler @ 0014b7f8 */
std::runtime_error::runtime_error(this_00,"Dict value is null");
goto LAB_0014b7e2;
}
/* try { // try from 0014b759 to 0014b763 has its CatchHandler @ 0014b827 */
Expression::evaluate(local_80,(shared_ptr *)*puVar2);
/* try { // try from 0014b768 to 0014b772 has its CatchHandler @ 0014b807 */
Expression::evaluate(local_d0,(shared_ptr *)puVar2[2]);
/* try { // try from 0014b773 to 0014b780 has its CatchHandler @ 0014b80c */
Value::set((Value *)this,(Value *)local_80,(Value *)local_d0);
Value::~Value((Value *)local_d0);
Value::~Value((Value *)local_80);
puVar2 = puVar2 + 4;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0014b7b7 to 0014b7c5 has its CatchHandler @ 0014b7fa */
std::runtime_error::runtime_error(this_00,"Dict key is null");
LAB_0014b7e2:
/* try { // try from 0014b7e2 to 0014b7f7 has its CatchHandler @ 0014b825 */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_001ceff0,PTR__runtime_error_001cef70);
}
| |
29,792 | mi_ck_write | eloqsql/storage/myisam/mi_write.c | int _mi_ck_write(MI_INFO *info, uint keynr, uchar *key, uint key_length)
{
DBUG_ENTER("_mi_ck_write");
if (info->bulk_insert && is_tree_inited(&info->bulk_insert[keynr]))
{
DBUG_RETURN(_mi_ck_write_tree(info, keynr, key, key_length));
}
else
{
DBUG_RETURN(_mi_ck_write_btree(info, keynr, key, key_length));
}
} | O3 | c | mi_ck_write:
movq %rdi, %rax
movq 0x80(%rdi), %rdi
testq %rdi, %rdi
je 0x889be
movl %esi, %r8d
imulq $0x298, %r8, %r8 # imm = 0x298
cmpq $0x0, (%rdi,%r8)
je 0x889be
pushq %rbp
movq %rsp, %rbp
addq %r8, %rdi
movq (%rax), %rax
addl 0x338(%rax), %ecx
movq 0x230(%rdi), %rax
movq %rdx, %rsi
movl %ecx, %edx
movq %rax, %rcx
callq 0xa5142
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
shll $0x7, %ecx
movl %ecx, %eax
popq %rbp
retq
movq %rax, %rdi
jmp 0x88a0b
| _mi_ck_write:
mov rax, rdi
mov rdi, [rdi+80h]
test rdi, rdi
jz short loc_889BE
mov r8d, esi
imul r8, 298h
cmp qword ptr [rdi+r8], 0
jz short loc_889BE
push rbp
mov rbp, rsp
add rdi, r8
mov rax, [rax]
add ecx, [rax+338h]
mov rax, [rdi+230h]
mov rsi, rdx
mov edx, ecx
mov rcx, rax
call tree_insert
xor ecx, ecx
test rax, rax
setz cl
shl ecx, 7
mov eax, ecx
pop rbp
retn
loc_889BE:
mov rdi, rax
jmp _mi_ck_write_btree
| long long mi_ck_write(_QWORD *a1, unsigned int a2, long long a3, int a4)
{
long long v5; // rdi
long long v6; // r8
v5 = a1[16];
if ( v5 && (v6 = 664LL * a2, *(_QWORD *)(v5 + v6)) )
return (unsigned __int8)(tree_insert(
v6 + v5,
a3,
(unsigned int)(*(_DWORD *)(*a1 + 824LL) + a4),
*(_QWORD *)(v6 + v5 + 560)) == 0) << 7;
else
return mi_ck_write_btree(a1);
}
| _mi_ck_write:
MOV RAX,RDI
MOV RDI,qword ptr [RDI + 0x80]
TEST RDI,RDI
JZ 0x001889be
MOV R8D,ESI
IMUL R8,R8,0x298
CMP qword ptr [RDI + R8*0x1],0x0
JZ 0x001889be
PUSH RBP
MOV RBP,RSP
ADD RDI,R8
MOV RAX,qword ptr [RAX]
ADD ECX,dword ptr [RAX + 0x338]
MOV RAX,qword ptr [RDI + 0x230]
MOV RSI,RDX
MOV EDX,ECX
MOV RCX,RAX
CALL 0x001a5142
XOR ECX,ECX
TEST RAX,RAX
SETZ CL
SHL ECX,0x7
MOV EAX,ECX
POP RBP
RET
LAB_001889be:
MOV RDI,RAX
JMP 0x00188a0b
|
long _mi_ck_write(long *param_1,ulong param_2,int8 param_3,int param_4)
{
long lVar1;
long lVar2;
lVar1 = param_1[0x10];
if ((lVar1 != 0) && (lVar2 = (param_2 & 0xffffffff) * 0x298, *(long *)(lVar1 + lVar2) != 0)) {
lVar1 = lVar1 + lVar2;
lVar1 = tree_insert(lVar1,param_3,param_4 + *(int *)(*param_1 + 0x338),
*(int8 *)(lVar1 + 0x230));
return (ulong)(lVar1 == 0) << 7;
}
lVar1 = _mi_ck_write_btree(param_1);
return lVar1;
}
| |
29,793 | my_caseup_str_mb | eloqsql/strings/ctype-mb.c | size_t my_caseup_str_mb(CHARSET_INFO * cs, char *str)
{
register uint32 l;
register const uchar *map= cs->to_upper;
char *str_orig= str;
while (*str)
{
/* Pointing after the '\0' is safe here. */
if ((l= my_ismbchar(cs, str, str + cs->mbmaxlen)))
str+= l;
else
{
*str= (char) map[(uchar)*str];
str++;
}
}
return (size_t) (str - str_orig);
} | O3 | c | my_caseup_str_mb:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
cmpb $0x0, (%rsi)
movq %rsi, %rax
je 0x39c88
movq %rdi, %r14
movq 0x50(%rdi), %r12
movq %rbx, %r15
movl 0x9c(%r14), %edx
addq %r15, %rdx
movq 0xb8(%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xc0(%rax)
cmpl $0x2, %eax
jge 0x39c78
movzbl (%r15), %eax
movb (%r12,%rax), %al
movb %al, (%r15)
movl $0x1, %ecx
jmp 0x39c7a
movl %eax, %ecx
leaq (%r15,%rcx), %rax
cmpb $0x0, (%r15,%rcx)
movq %rax, %r15
jne 0x39c44
subq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| my_caseup_str_mb:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rsi
cmp byte ptr [rsi], 0
mov rax, rsi
jz short loc_39C88
mov r14, rdi
mov r12, [rdi+50h]
mov r15, rbx
loc_39C44:
mov edx, [r14+9Ch]
add rdx, r15
mov rax, [r14+0B8h]
mov rdi, r14
mov rsi, r15
call qword ptr [rax+0C0h]
cmp eax, 2
jge short loc_39C78
movzx eax, byte ptr [r15]
mov al, [r12+rax]
mov [r15], al
mov ecx, 1
jmp short loc_39C7A
loc_39C78:
mov ecx, eax
loc_39C7A:
lea rax, [r15+rcx]
cmp byte ptr [r15+rcx], 0
mov r15, rax
jnz short loc_39C44
loc_39C88:
sub rax, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long my_caseup_str_mb(long long a1, _BYTE *a2)
{
_BYTE *v2; // rax
long long v3; // r12
_BYTE *v4; // r15
int v5; // eax
long long v6; // rcx
bool v7; // zf
v2 = a2;
if ( *a2 )
{
v3 = *(_QWORD *)(a1 + 80);
v4 = a2;
do
{
v5 = (*(long long ( **)(long long, _BYTE *, _BYTE *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v4,
&v4[*(unsigned int *)(a1 + 156)]);
if ( v5 >= 2 )
{
v6 = (unsigned int)v5;
}
else
{
*v4 = *(_BYTE *)(v3 + (unsigned __int8)*v4);
v6 = 1LL;
}
v2 = &v4[v6];
v7 = v4[v6] == 0;
v4 += v6;
}
while ( !v7 );
}
return v2 - a2;
}
| my_caseup_str_mb:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RSI
CMP byte ptr [RSI],0x0
MOV RAX,RSI
JZ 0x00139c88
MOV R14,RDI
MOV R12,qword ptr [RDI + 0x50]
MOV R15,RBX
LAB_00139c44:
MOV EDX,dword ptr [R14 + 0x9c]
ADD RDX,R15
MOV RAX,qword ptr [R14 + 0xb8]
MOV RDI,R14
MOV RSI,R15
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
JGE 0x00139c78
MOVZX EAX,byte ptr [R15]
MOV AL,byte ptr [R12 + RAX*0x1]
MOV byte ptr [R15],AL
MOV ECX,0x1
JMP 0x00139c7a
LAB_00139c78:
MOV ECX,EAX
LAB_00139c7a:
LEA RAX,[R15 + RCX*0x1]
CMP byte ptr [R15 + RCX*0x1],0x0
MOV R15,RAX
JNZ 0x00139c44
LAB_00139c88:
SUB RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
long my_caseup_str_mb(long param_1,byte *param_2)
{
byte *pbVar1;
long lVar2;
uint uVar3;
byte *pbVar4;
ulong uVar5;
byte *pbVar6;
pbVar4 = param_2;
if (*param_2 != 0) {
lVar2 = *(long *)(param_1 + 0x50);
pbVar6 = param_2;
do {
uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))
(param_1,pbVar6,pbVar6 + *(uint *)(param_1 + 0x9c));
if ((int)uVar3 < 2) {
*pbVar6 = *(byte *)(lVar2 + (ulong)*pbVar6);
uVar5 = 1;
}
else {
uVar5 = (ulong)uVar3;
}
pbVar4 = pbVar6 + uVar5;
pbVar1 = pbVar6 + uVar5;
pbVar6 = pbVar4;
} while (*pbVar1 != 0);
}
return (long)pbVar4 - (long)param_2;
}
| |
29,794 | google::protobuf::compiler::java::(anonymous namespace)::TypeName[abi:cxx11](google::protobuf::FieldDescriptor const*, google::protobuf::compiler::java::ClassNameResolver*, bool) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/map_field_lite.cc | std::string TypeName(const FieldDescriptor* field,
ClassNameResolver* name_resolver, bool boxed) {
if (GetJavaType(field) == JAVATYPE_MESSAGE) {
return name_resolver->GetImmutableClassName(field->message_type());
} else if (GetJavaType(field) == JAVATYPE_ENUM) {
return name_resolver->GetImmutableClassName(field->enum_type());
} else {
return boxed ? BoxedPrimitiveTypeName(GetJavaType(field))
: PrimitiveTypeName(GetJavaType(field));
}
} | O3 | cpp | google::protobuf::compiler::java::(anonymous namespace)::TypeName[abi:cxx11](google::protobuf::FieldDescriptor const*, google::protobuf::compiler::java::ClassNameResolver*, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x43f76
cmpl $0x8, %eax
jne 0xdb01c
movq %r15, %rdi
callq 0x11d7ce
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
movl $0x1, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x47ac2
movq %r15, %rdi
callq 0x43f76
movq %r15, %rdi
cmpl $0x7, %eax
jne 0xdb04e
callq 0x11fc2c
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
movl $0x1, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x47b7a
callq 0x43f76
movl %eax, %edi
testb %bpl, %bpl
je 0xdb061
callq 0x44082
jmp 0xdb066
callq 0x43ff8
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f1d0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| _ZN6google8protobuf8compiler4java12_GLOBAL__N_18TypeNameB5cxx11EPKNS0_15FieldDescriptorEPNS2_17ClassNameResolverEb_0:
push rbp
push r15
push r14
push rbx
push rax
mov ebp, ecx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov rdi, rsi; this
call _ZN6google8protobuf8compiler4java11GetJavaTypeEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::GetJavaType(google::protobuf::FieldDescriptor const*)
cmp eax, 8
jnz short loc_DB01C
mov rdi, r15; this
call _ZNK6google8protobuf15FieldDescriptor12message_typeEv; google::protobuf::FieldDescriptor::message_type(void)
mov rdi, rbx
mov rsi, r14; google::protobuf::FieldDescriptor *
mov rdx, rax
mov ecx, 1
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN6google8protobuf8compiler4java17ClassNameResolver12GetClassNameB5cxx11EPKNS0_10DescriptorEb; google::protobuf::compiler::java::ClassNameResolver::GetClassName(google::protobuf::Descriptor const*,bool)
loc_DB01C:
mov rdi, r15; this
call _ZN6google8protobuf8compiler4java11GetJavaTypeEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::GetJavaType(google::protobuf::FieldDescriptor const*)
mov rdi, r15; this
cmp eax, 7
jnz short loc_DB04E
call _ZNK6google8protobuf15FieldDescriptor9enum_typeEv; google::protobuf::FieldDescriptor::enum_type(void)
mov rdi, rbx
mov rsi, r14; google::protobuf::FieldDescriptor *
mov rdx, rax
mov ecx, 1
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN6google8protobuf8compiler4java17ClassNameResolver12GetClassNameB5cxx11EPKNS0_14EnumDescriptorEb; google::protobuf::compiler::java::ClassNameResolver::GetClassName(google::protobuf::EnumDescriptor const*,bool)
loc_DB04E:
call _ZN6google8protobuf8compiler4java11GetJavaTypeEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::GetJavaType(google::protobuf::FieldDescriptor const*)
mov edi, eax
test bpl, bpl
jz short loc_DB061
call _ZN6google8protobuf8compiler4java22BoxedPrimitiveTypeNameENS2_8JavaTypeE; google::protobuf::compiler::java::BoxedPrimitiveTypeName(google::protobuf::compiler::java::JavaType)
jmp short loc_DB066
loc_DB061:
call _ZN6google8protobuf8compiler4java17PrimitiveTypeNameENS2_8JavaTypeE; google::protobuf::compiler::java::PrimitiveTypeName(google::protobuf::compiler::java::JavaType)
loc_DB066:
lea rdx, [rsp+28h+var_21]
mov rdi, rbx
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&)
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long google::protobuf::compiler::java::`anonymous namespace'::TypeName[abi:cxx11](
long long a1,
google::protobuf::FieldDescriptor *a2,
long long a3,
char a4)
{
long long v4; // rax
long long v8; // rax
long long v10; // rax
unsigned int JavaType; // edi
long long v12; // rax
_BYTE v13[33]; // [rsp+1h] [rbp-21h] BYREF
v13[0] = HIBYTE(v4);
if ( (unsigned int)google::protobuf::compiler::java::GetJavaType(a2, a2) == 8 )
{
v8 = google::protobuf::FieldDescriptor::message_type(a2);
return google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](a1, a3, v8, 1LL);
}
else if ( (unsigned int)google::protobuf::compiler::java::GetJavaType(a2, a2) == 7 )
{
v10 = google::protobuf::FieldDescriptor::enum_type(a2);
return google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](a1, a3, v10, 1LL);
}
else
{
JavaType = google::protobuf::compiler::java::GetJavaType(a2, a2);
if ( a4 )
v12 = (long long)google::protobuf::compiler::java::BoxedPrimitiveTypeName(JavaType);
else
v12 = google::protobuf::compiler::java::PrimitiveTypeName(JavaType);
return std::string::basic_string(a1, v12, v13);
}
}
| TypeName[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBP,ECX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x00143f76
CMP EAX,0x8
JNZ 0x001db01c
MOV RDI,R15
CALL 0x0021d7ce
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RAX
MOV ECX,0x1
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00147ac2
LAB_001db01c:
MOV RDI,R15
CALL 0x00143f76
MOV RDI,R15
CMP EAX,0x7
JNZ 0x001db04e
CALL 0x0021fc2c
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RAX
MOV ECX,0x1
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00147b7a
LAB_001db04e:
CALL 0x00143f76
MOV EDI,EAX
TEST BPL,BPL
JZ 0x001db061
CALL 0x00144082
JMP 0x001db066
LAB_001db061:
CALL 0x00143ff8
LAB_001db066:
LEA RDX,[RSP + 0x7]
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0011f1d0
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::compiler::java::(anonymous
namespace)::TypeName[abi:cxx11](google::protobuf::FieldDescriptor const*,
google::protobuf::compiler::java::ClassNameResolver*, bool) */
void __thiscall
google::protobuf::compiler::java::(anonymous_namespace)::TypeName_abi_cxx11_
(_anonymous_namespace_ *this,FieldDescriptor *param_1,ClassNameResolver *param_2,
bool param_3)
{
int iVar1;
int4 uVar2;
char *pcVar3;
allocator local_21;
iVar1 = GetJavaType(param_1);
if (iVar1 == 8) {
FieldDescriptor::message_type(param_1);
ClassNameResolver::GetClassName_abi_cxx11_((Descriptor *)this,SUB81(param_2,0));
return;
}
iVar1 = GetJavaType(param_1);
if (iVar1 == 7) {
FieldDescriptor::enum_type(param_1);
ClassNameResolver::GetClassName_abi_cxx11_((EnumDescriptor *)this,SUB81(param_2,0));
return;
}
uVar2 = GetJavaType(param_1);
if (param_3) {
pcVar3 = (char *)BoxedPrimitiveTypeName();
}
else {
pcVar3 = (char *)PrimitiveTypeName(uVar2);
}
std::__cxx11::string::string((string *)this,pcVar3,&local_21);
return;
}
| |
29,795 | minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&) | monkey531[P]llama/common/minja.hpp | inline std::shared_ptr<Context> Context::make(Value && values, const std::shared_ptr<Context> & parent) {
return std::make_shared<Context>(values.is_null() ? Value::object() : std::move(values), parent);
} | O3 | cpp | minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq 0x10(%rsi), %rdx
movq 0x20(%rsi), %rax
movq %rax, %rcx
orq %rdx, %rcx
sete %cl
cmpb $0x0, 0x40(%rsi)
movq %rdi, %rbx
sete %sil
andb %cl, %sil
movq 0x30(%r15), %rcx
testq %rcx, %rcx
sete %bpl
andb %sil, %bpl
cmpb $0x1, %bpl
jne 0x9d10e
movl $0x30, %edi
callq 0x1a870
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x8d36c(%rip), %rcx # 0x12a448
addq $0x10, %rcx
movq %rcx, (%rax)
leaq 0x10(%rax), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
leaq 0x10(%rsp), %rsi
movq %rax, 0x8(%rsi)
movq %rcx, (%rsi)
leaq 0x20(%rsp), %rdi
callq 0x8fad6
jmp 0x9d18a
leaq 0x40(%r15), %rdi
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %r12
movaps %xmm0, -0x40(%r12)
movq %rdx, -0x30(%r12)
movq 0x18(%r15), %rdx
xorl %r13d, %r13d
movq %r13, 0x18(%r15)
movq %rdx, -0x28(%r12)
movq %r13, 0x10(%r15)
movq %rax, -0x20(%r12)
movq 0x28(%r15), %rax
movq %r13, 0x28(%r15)
movq %rax, -0x18(%r12)
movq %r13, 0x20(%r15)
movq %rcx, -0x10(%r12)
movq 0x38(%r15), %rax
movq %r13, 0x38(%r15)
movq %rax, -0x8(%r12)
movq %r13, 0x30(%r15)
movups (%rdi), %xmm0
movaps %xmm0, (%r12)
xorl %esi, %esi
callq 0x595aa
movb $0x0, 0x40(%r15)
movq %r13, 0x48(%r15)
movq %r12, %rdi
movl $0x1, %esi
callq 0x595aa
leaq 0xf(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rcx
callq 0x9d4d4
leaq 0x60(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x595aa
movq %r14, %rdi
callq 0x5ea98
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0x9d1c4
callq 0x6e4bc
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x9d1d3
callq 0x6e4bc
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x9d1e2
callq 0x6e4bc
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x9d218
movq 0x8ed95(%rip), %rax # 0x12bf88
cmpb $0x0, (%rax)
je 0x9d203
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x9d20d
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x9d218
movq (%rdi), %rax
callq *0x18(%rax)
testb %bpl, %bpl
je 0x9d22c
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x9d22c
callq 0x6e4bc
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x86fa6
testb %bpl, %bpl
je 0x9d25f
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x9d25f
callq 0x6e4bc
movq %rbx, %rdi
callq 0x1af20
nop
| _ZN5minja7Context4makeEONS_5ValueERKSt10shared_ptrIS0_E:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r14, rdx
mov r15, rsi
mov rdx, [rsi+10h]
mov rax, [rsi+20h]
mov rcx, rax
or rcx, rdx
setz cl
cmp byte ptr [rsi+40h], 0
mov rbx, rdi
setz sil
and sil, cl
mov rcx, [r15+30h]
test rcx, rcx
setz bpl
and bpl, sil
cmp bpl, 1
jnz short loc_9D10E
mov edi, 30h ; '0'; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, 100000001h
mov [rax+8], rcx
lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEESaISN_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2>
add rcx, 10h
mov [rax], rcx
lea rcx, [rax+10h]
xorps xmm0, xmm0
movups xmmword ptr [rax+10h], xmm0
mov qword ptr [rax+20h], 0
lea rsi, [rsp+0A8h+var_98]
mov [rsi+8], rax
mov [rsi], rcx
lea rdi, [rsp+0A8h+var_88]
call _ZN5minja5ValueC2ERKSt10shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS3_10basic_jsonIS4_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES0_St4lessISG_ESaISt4pairIKSG_S0_EEEEE; minja::Value::Value(std::shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>> const&)
jmp short loc_9D18A
loc_9D10E:
lea rdi, [r15+40h]
xorps xmm0, xmm0
lea r12, [rsp+0A8h+var_48]
movaps xmmword ptr [r12-40h], xmm0
mov [r12-30h], rdx
mov rdx, [r15+18h]
xor r13d, r13d
mov [r15+18h], r13
mov [r12-28h], rdx
mov [r15+10h], r13
mov [r12-20h], rax
mov rax, [r15+28h]
mov [r15+28h], r13
mov [r12-18h], rax
mov [r15+20h], r13
mov [r12-10h], rcx
mov rax, [r15+38h]
mov [r15+38h], r13
mov [r12-8], rax
mov [r15+30h], r13
movups xmm0, xmmword ptr [rdi]
movaps xmmword ptr [r12], xmm0
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r15+40h], 0
mov [r15+48h], r13
mov rdi, r12
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
loc_9D18A:
lea rsi, [rsp+0A8h+var_99]
lea rdx, [rsp+0A8h+var_88]
mov rdi, rbx
mov rcx, r14
call _ZNSt12__shared_ptrIN5minja7ContextELN9__gnu_cxx12_Lock_policyE2EEC2ISaIS1_EJNS0_5ValueERKSt10shared_ptrIS1_EEEESt20_Sp_alloc_shared_tagIT_EDpOT0_; std::__shared_ptr<minja::Context,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<minja::Context>,minja::Value,std::shared_ptr<minja::Context> const&>(std::_Sp_alloc_shared_tag<std::allocator<minja::Context>>,minja::Value,std::shared_ptr<minja::Context> const&)
lea r14, [rsp+0A8h+var_48]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [r14-8]
test rdi, rdi
jz short loc_9D1C4
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9D1C4:
mov rdi, [rsp+0A8h+var_60]
test rdi, rdi
jz short loc_9D1D3
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9D1D3:
mov rdi, [rsp+0A8h+var_70]
test rdi, rdi
jz short loc_9D1E2
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9D1E2:
mov rdi, [rsp+0A8h+var_80]
test rdi, rdi
jz short loc_9D218
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_9D203
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_9D20D
loc_9D203:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_9D20D:
cmp eax, 1
jnz short loc_9D218
mov rax, [rdi]
call qword ptr [rax+18h]
loc_9D218:
test bpl, bpl
jz short loc_9D22C
mov rdi, [rsp+0A8h+var_90]
test rdi, rdi
jz short loc_9D22C
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9D22C:
mov rax, rbx
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_18]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
test bpl, bpl
jz short loc_9D25F
mov rdi, [rsp+arg_10]
test rdi, rdi
jz short loc_9D25F
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9D25F:
mov rdi, rbx
call __Unwind_Resume
| long long minja::Context::make(long long a1, long long a2, long long a3)
{
__int128 v4; // rax
long long v6; // rcx
bool v7; // bp
long long v8; // rax
volatile signed __int32 *v9; // rax
volatile signed __int32 *v10; // rax
long long v11; // rdi
signed __int32 v12; // eax
char v14; // [rsp+Fh] [rbp-99h] BYREF
long long v15; // [rsp+10h] [rbp-98h] BYREF
volatile signed __int32 *v16; // [rsp+18h] [rbp-90h]
__int128 v17; // [rsp+20h] [rbp-88h] BYREF
long long v18; // [rsp+30h] [rbp-78h]
volatile signed __int32 *v19; // [rsp+38h] [rbp-70h]
long long v20; // [rsp+40h] [rbp-68h]
volatile signed __int32 *v21; // [rsp+48h] [rbp-60h]
long long v22; // [rsp+50h] [rbp-58h]
volatile signed __int32 *v23; // [rsp+58h] [rbp-50h]
_OWORD v24[4]; // [rsp+60h] [rbp-48h] BYREF
*((_QWORD *)&v4 + 1) = *(_QWORD *)(a2 + 16);
*(_QWORD *)&v4 = *(_QWORD *)(a2 + 32);
v6 = *(_QWORD *)(a2 + 48);
v7 = v4 == 0 && *(_BYTE *)(a2 + 64) == 0 && v6 == 0;
if ( v7 )
{
v8 = operator new(0x30uLL);
*(_QWORD *)(v8 + 8) = 0x100000001LL;
*(_QWORD *)v8 = &`vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_OWORD *)(v8 + 16) = 0LL;
*(_QWORD *)(v8 + 32) = 0LL;
v16 = (volatile signed __int32 *)v8;
v15 = v8 + 16;
minja::Value::Value((long long)&v17, &v15);
}
else
{
v17 = 0LL;
v18 = *((_QWORD *)&v4 + 1);
*((_QWORD *)&v4 + 1) = *(_QWORD *)(a2 + 24);
*(_QWORD *)(a2 + 24) = 0LL;
v19 = (volatile signed __int32 *)*((_QWORD *)&v4 + 1);
*(_QWORD *)(a2 + 16) = 0LL;
v20 = v4;
v9 = *(volatile signed __int32 **)(a2 + 40);
*(_QWORD *)(a2 + 40) = 0LL;
v21 = v9;
*(_QWORD *)(a2 + 32) = 0LL;
v22 = v6;
v10 = *(volatile signed __int32 **)(a2 + 56);
*(_QWORD *)(a2 + 56) = 0LL;
v23 = v10;
*(_QWORD *)(a2 + 48) = 0LL;
v24[0] = *(_OWORD *)(a2 + 64);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a2 + 64));
*(_BYTE *)(a2 + 64) = 0;
*(_QWORD *)(a2 + 72) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v24);
}
std::__shared_ptr<minja::Context,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<minja::Context>,minja::Value,std::shared_ptr<minja::Context> const&>(
a1,
&v14,
&v17,
a3);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v24);
if ( v23 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v23);
if ( v21 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v21);
if ( v19 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v19);
v11 = *((_QWORD *)&v17 + 1);
if ( *((_QWORD *)&v17 + 1) )
{
if ( _libc_single_threaded )
{
v12 = *(_DWORD *)(*((_QWORD *)&v17 + 1) + 12LL);
*(_DWORD *)(*((_QWORD *)&v17 + 1) + 12LL) = v12 - 1;
}
else
{
v12 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v17 + 1) + 12LL), 0xFFFFFFFF);
}
if ( v12 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v11 + 24LL))(v11, 0LL);
}
if ( v7 && v16 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v16);
return a1;
}
| make:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R14,RDX
MOV R15,RSI
MOV RDX,qword ptr [RSI + 0x10]
MOV RAX,qword ptr [RSI + 0x20]
MOV RCX,RAX
OR RCX,RDX
SETZ CL
CMP byte ptr [RSI + 0x40],0x0
MOV RBX,RDI
SETZ SIL
AND SIL,CL
MOV RCX,qword ptr [R15 + 0x30]
TEST RCX,RCX
SETZ BPL
AND BPL,SIL
CMP BPL,0x1
JNZ 0x0019d10e
MOV EDI,0x30
CALL 0x0011a870
MOV RCX,0x100000001
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[0x22a448]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
LEA RCX,[RAX + 0x10]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOV qword ptr [RAX + 0x20],0x0
LEA RSI,[RSP + 0x10]
MOV qword ptr [RSI + 0x8],RAX
MOV qword ptr [RSI],RCX
LEA RDI,[RSP + 0x20]
CALL 0x0018fad6
JMP 0x0019d18a
LAB_0019d10e:
LEA RDI,[R15 + 0x40]
XORPS XMM0,XMM0
LEA R12,[RSP + 0x60]
MOVAPS xmmword ptr [R12 + -0x40],XMM0
MOV qword ptr [R12 + -0x30],RDX
MOV RDX,qword ptr [R15 + 0x18]
XOR R13D,R13D
MOV qword ptr [R15 + 0x18],R13
MOV qword ptr [R12 + -0x28],RDX
MOV qword ptr [R15 + 0x10],R13
MOV qword ptr [R12 + -0x20],RAX
MOV RAX,qword ptr [R15 + 0x28]
MOV qword ptr [R15 + 0x28],R13
MOV qword ptr [R12 + -0x18],RAX
MOV qword ptr [R15 + 0x20],R13
MOV qword ptr [R12 + -0x10],RCX
MOV RAX,qword ptr [R15 + 0x38]
MOV qword ptr [R15 + 0x38],R13
MOV qword ptr [R12 + -0x8],RAX
MOV qword ptr [R15 + 0x30],R13
MOVUPS XMM0,xmmword ptr [RDI]
MOVAPS xmmword ptr [R12],XMM0
XOR ESI,ESI
CALL 0x001595aa
MOV byte ptr [R15 + 0x40],0x0
MOV qword ptr [R15 + 0x48],R13
MOV RDI,R12
MOV ESI,0x1
CALL 0x001595aa
LAB_0019d18a:
LEA RSI,[RSP + 0xf]
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV RCX,R14
CALL 0x0019d4d4
LAB_0019d19f:
LEA R14,[RSP + 0x60]
MOV RDI,R14
XOR ESI,ESI
CALL 0x001595aa
MOV RDI,R14
CALL 0x0015ea98
MOV RDI,qword ptr [R14 + -0x8]
TEST RDI,RDI
JZ 0x0019d1c4
CALL 0x0016e4bc
LAB_0019d1c4:
MOV RDI,qword ptr [RSP + 0x48]
TEST RDI,RDI
JZ 0x0019d1d3
CALL 0x0016e4bc
LAB_0019d1d3:
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x0019d1e2
CALL 0x0016e4bc
LAB_0019d1e2:
MOV RDI,qword ptr [RSP + 0x28]
TEST RDI,RDI
JZ 0x0019d218
MOV RAX,qword ptr [0x0022bf88]
CMP byte ptr [RAX],0x0
JZ 0x0019d203
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0019d20d
LAB_0019d203:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0019d20d:
CMP EAX,0x1
JNZ 0x0019d218
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0019d218:
TEST BPL,BPL
JZ 0x0019d22c
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x0019d22c
CALL 0x0016e4bc
LAB_0019d22c:
MOV RAX,RBX
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&) */
Context * __thiscall minja::Context::make(Context *this,Value *param_1,shared_ptr *param_2)
{
int *piVar1;
Value VVar2;
long lVar3;
long lVar4;
long lVar5;
int iVar6;
int1 local_99;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_98;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_90;
int8 local_88;
long *plStack_80;
long local_78;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_70;
long local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60;
long local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50;
int8 local_48;
int8 uStack_40;
lVar3 = *(long *)(param_1 + 0x10);
lVar4 = *(long *)(param_1 + 0x20);
VVar2 = param_1[0x40];
lVar5 = *(long *)(param_1 + 0x30);
if (lVar5 != 0 || (VVar2 != (Value)0x0 || (lVar4 != 0 || lVar3 != 0))) {
local_88 = 0;
plStack_80 = (long *)0x0;
local_70 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_1 + 0x18);
*(int8 *)(param_1 + 0x18) = 0;
*(int8 *)(param_1 + 0x10) = 0;
local_60 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_1 + 0x28);
*(int8 *)(param_1 + 0x28) = 0;
*(int8 *)(param_1 + 0x20) = 0;
local_50 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_1 + 0x38);
*(int8 *)(param_1 + 0x38) = 0;
*(int8 *)(param_1 + 0x30) = 0;
local_48 = *(int8 *)(param_1 + 0x40);
uStack_40 = *(int8 *)(param_1 + 0x48);
local_78 = lVar3;
local_68 = lVar4;
local_58 = lVar5;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(param_1 + 0x40,0));
param_1[0x40] = (Value)0x0;
*(int8 *)(param_1 + 0x48) = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_48,0));
}
else {
local_90 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)operator_new(0x30);
*(int8 *)(local_90 + 8) = 0x100000001;
*(int ***)local_90 = &PTR___Sp_counted_ptr_inplace_0022a458;
local_98 = local_90 + 0x10;
*(int8 *)(local_90 + 0x10) = 0;
*(int8 *)(local_90 + 0x18) = 0;
*(int8 *)(local_90 + 0x20) = 0;
Value::Value((Value *)&local_88,(shared_ptr *)&local_98);
}
/* try { // try from 0019d18a to 0019d19e has its CatchHandler @ 0019d23e */
std::__shared_ptr<minja::Context,(__gnu_cxx::_Lock_policy)2>::
__shared_ptr<std::allocator<minja::Context>,minja::Value,std::shared_ptr<minja::Context>const&>
((__shared_ptr<minja::Context,(__gnu_cxx::_Lock_policy)2> *)this,&local_99,&local_88,
param_2);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)&local_48,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_48);
if (local_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_50);
}
if (local_60 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_60);
}
if (local_70 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_70);
}
if (plStack_80 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022bf88 == '\0') {
LOCK();
piVar1 = (int *)((long)plStack_80 + 0xc);
iVar6 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar6 = *(int *)((long)plStack_80 + 0xc);
*(int *)((long)plStack_80 + 0xc) = iVar6 + -1;
}
if (iVar6 == 1) {
(**(code **)(*plStack_80 + 0x18))();
}
}
if ((lVar5 == 0 && (VVar2 == (Value)0x0 && (lVar4 == 0 && lVar3 == 0))) &&
(local_90 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0)) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_90);
}
return this;
}
| |
29,796 | translog_page_validator | eloqsql/storage/maria/ma_loghandler.c | static my_bool translog_page_validator(int res, PAGECACHE_IO_HOOK_ARGS *args)
{
uchar *page= args->page;
pgcache_page_no_t page_no= args->pageno;
uint this_page_page_overhead;
uint flags;
uchar *page_pos;
TRANSLOG_FILE *data= (TRANSLOG_FILE *) args->data;
#ifndef DBUG_OFF
pgcache_page_no_t offset= page_no * TRANSLOG_PAGE_SIZE;
#endif
DBUG_ENTER("translog_page_validator");
data->was_recovered= 0;
if (res)
{
DBUG_RETURN(1);
}
if ((pgcache_page_no_t) uint3korr(page) != page_no ||
(uint32) uint3korr(page + 3) != data->number)
{
DBUG_PRINT("error", ("Page " LSN_FMT ": "
"page address written in the page is incorrect: "
"File %lu instead of %lu or page %lu instead of %lu",
(uint)data->number, (uint)offset,
(ulong) uint3korr(page + 3), (ulong) data->number,
(ulong) uint3korr(page),
(ulong) page_no));
DBUG_RETURN(1);
}
flags= (uint)(page[TRANSLOG_PAGE_FLAGS]);
this_page_page_overhead= page_overhead[flags];
if (flags & ~(TRANSLOG_PAGE_CRC | TRANSLOG_SECTOR_PROTECTION |
TRANSLOG_RECORD_CRC))
{
DBUG_PRINT("error", ("Page " LSN_FMT ": "
"Garbage in the page flags field detected : %x",
(uint) data->number, (uint) offset,
(uint) flags));
DBUG_RETURN(1);
}
page_pos= page + (3 + 3 + 1);
if (flags & TRANSLOG_PAGE_CRC)
{
uint32 crc= translog_crc(page + this_page_page_overhead,
TRANSLOG_PAGE_SIZE -
this_page_page_overhead);
if (crc != uint4korr(page_pos))
{
DBUG_PRINT("error", ("Page " LSN_FMT ": "
"CRC mismatch: calculated: %lx on the page %lx",
(uint) data->number, (uint) offset,
(ulong) crc, (ulong) uint4korr(page_pos)));
DBUG_RETURN(1);
}
page_pos+= CRC_SIZE; /* Skip crc */
}
if (flags & TRANSLOG_SECTOR_PROTECTION &&
translog_check_sector_protection(page, data))
{
DBUG_RETURN(1);
}
DBUG_RETURN(0);
} | O3 | c | translog_page_validator:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq (%rsi), %r14
movq 0x8(%rsi), %rax
movq 0x10(%rsi), %r15
movb $0x0, 0x50(%r15)
movb $0x1, %bl
testl %edi, %edi
jne 0x6dd0a
movzwl (%r14), %ecx
movzbl 0x2(%r14), %edx
shll $0x10, %edx
orq %rcx, %rdx
cmpq %rax, %rdx
jne 0x6dd0a
movzwl 0x3(%r14), %eax
movzbl 0x5(%r14), %ecx
shll $0x10, %ecx
orl %eax, %ecx
cmpl (%r15), %ecx
jne 0x6dd0a
movzbl 0x6(%r14), %r12d
cmpl $0x7, %r12d
ja 0x6dd0a
testb $0x1, %r12b
je 0x6dcf3
leaq 0xb9dac8(%rip), %rax # 0xc0b7a0
movl (%rax,%r12,4), %esi
movl $0x2000, %edx # imm = 0x2000
subl %esi, %edx
addq %r14, %rsi
xorl %edi, %edi
callq 0xaf86c
cmpl 0x7(%r14), %eax
jne 0x6dd0a
testb $0x2, %r12b
je 0x6dd08
movq %r14, %rdi
movq %r15, %rsi
callq 0x6dd15
testb %al, %al
jne 0x6dd0a
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| translog_page_validator:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r14, [rsi]
mov rax, [rsi+8]
mov r15, [rsi+10h]
mov byte ptr [r15+50h], 0
mov bl, 1
test edi, edi
jnz short loc_6DD0A
movzx ecx, word ptr [r14]
movzx edx, byte ptr [r14+2]
shl edx, 10h
or rdx, rcx
cmp rdx, rax
jnz short loc_6DD0A
movzx eax, word ptr [r14+3]
movzx ecx, byte ptr [r14+5]
shl ecx, 10h
or ecx, eax
cmp ecx, [r15]
jnz short loc_6DD0A
movzx r12d, byte ptr [r14+6]
cmp r12d, 7
ja short loc_6DD0A
test r12b, 1
jz short loc_6DCF3
lea rax, page_overhead
mov esi, [rax+r12*4]
mov edx, 2000h
sub edx, esi
add rsi, r14
xor edi, edi
call my_checksum
cmp eax, [r14+7]
jnz short loc_6DD0A
loc_6DCF3:
test r12b, 2
jz short loc_6DD08
mov rdi, r14
mov rsi, r15
call translog_check_sector_protection
test al, al
jnz short loc_6DD0A
loc_6DD08:
xor ebx, ebx
loc_6DD0A:
mov eax, ebx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long translog_page_validator(int a1, unsigned __int16 **a2)
{
unsigned int v2; // ebx
unsigned __int16 *v3; // r14
unsigned __int16 *v4; // rax
unsigned __int16 *v5; // r15
long long v6; // r12
v3 = *a2;
v4 = a2[1];
v5 = a2[2];
*((_BYTE *)v5 + 80) = 0;
LOBYTE(v2) = 1;
if ( !a1
&& (unsigned __int16 *)(*v3 | (unsigned long long)(*((unsigned __int8 *)v3 + 2) << 16)) == v4
&& (*(unsigned __int16 *)((char *)v3 + 3) | (*((unsigned __int8 *)v3 + 5) << 16)) == *(_DWORD *)v5 )
{
v6 = *((unsigned __int8 *)v3 + 6);
if ( (unsigned int)v6 <= 7
&& ((v6 & 1) == 0
|| (unsigned int)my_checksum(0LL, (char *)v3 + *((unsigned int *)&page_overhead + v6)) == *(_DWORD *)((char *)v3 + 7))
&& ((v6 & 2) == 0 || !(unsigned __int8)translog_check_sector_protection(v3, v5)) )
{
return 0;
}
}
return v2;
}
| translog_page_validator:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14,qword ptr [RSI]
MOV RAX,qword ptr [RSI + 0x8]
MOV R15,qword ptr [RSI + 0x10]
MOV byte ptr [R15 + 0x50],0x0
MOV BL,0x1
TEST EDI,EDI
JNZ 0x0016dd0a
MOVZX ECX,word ptr [R14]
MOVZX EDX,byte ptr [R14 + 0x2]
SHL EDX,0x10
OR RDX,RCX
CMP RDX,RAX
JNZ 0x0016dd0a
MOVZX EAX,word ptr [R14 + 0x3]
MOVZX ECX,byte ptr [R14 + 0x5]
SHL ECX,0x10
OR ECX,EAX
CMP ECX,dword ptr [R15]
JNZ 0x0016dd0a
MOVZX R12D,byte ptr [R14 + 0x6]
CMP R12D,0x7
JA 0x0016dd0a
TEST R12B,0x1
JZ 0x0016dcf3
LEA RAX,[0xd0b7a0]
MOV ESI,dword ptr [RAX + R12*0x4]
MOV EDX,0x2000
SUB EDX,ESI
ADD RSI,R14
XOR EDI,EDI
CALL 0x001af86c
CMP EAX,dword ptr [R14 + 0x7]
JNZ 0x0016dd0a
LAB_0016dcf3:
TEST R12B,0x2
JZ 0x0016dd08
MOV RDI,R14
MOV RSI,R15
CALL 0x0016dd15
TEST AL,AL
JNZ 0x0016dd0a
LAB_0016dd08:
XOR EBX,EBX
LAB_0016dd0a:
MOV EAX,EBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
ulong translog_page_validator(int param_1,long *param_2)
{
byte bVar1;
uint3 *puVar2;
ulong uVar3;
uint *puVar4;
char cVar5;
int iVar6;
int8 unaff_RBX;
ulong uVar7;
puVar2 = (uint3 *)*param_2;
uVar3 = param_2[1];
puVar4 = (uint *)param_2[2];
*(int1 *)(puVar4 + 0x14) = 0;
uVar7 = CONCAT71((int7)((ulong)unaff_RBX >> 8),1);
if (((param_1 == 0) && (*puVar2 == uVar3)) && ((uint)*(uint3 *)((long)puVar2 + 3) == *puVar4)) {
bVar1 = *(byte *)((long)puVar2 + 6);
if (bVar1 < 8) {
if ((bVar1 & 1) != 0) {
iVar6 = my_checksum(0,(ulong)*(uint *)(page_overhead + (ulong)bVar1 * 4) + (long)puVar2,
0x2000 - *(uint *)(page_overhead + (ulong)bVar1 * 4));
if (iVar6 != *(int *)((long)puVar2 + 7)) goto LAB_0016dd0a;
}
if ((bVar1 & 2) != 0) {
cVar5 = translog_check_sector_protection(puVar2,puVar4);
if (cVar5 != '\0') goto LAB_0016dd0a;
}
uVar7 = 0;
}
}
LAB_0016dd0a:
return uVar7 & 0xffffffff;
}
| |
29,797 | bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::insert_block_index_entry<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::BlockIndexEntry*&, unsigned long) | angrymouse[P]emittra/include/concurrentqueue.h | inline bool insert_block_index_entry(BlockIndexEntry*& idxEntry, index_t blockStartIndex)
{
auto localBlockIndex = blockIndex.load(std::memory_order_relaxed); // We're the only writer thread, relaxed is OK
if (localBlockIndex == nullptr) {
return false; // this can happen if new_block_index failed in the constructor
}
size_t newTail = (localBlockIndex->tail.load(std::memory_order_relaxed) + 1) & (localBlockIndex->capacity - 1);
idxEntry = localBlockIndex->index[newTail];
if (idxEntry->key.load(std::memory_order_relaxed) == INVALID_BLOCK_BASE ||
idxEntry->value.load(std::memory_order_relaxed) == nullptr) {
idxEntry->key.store(blockStartIndex, std::memory_order_relaxed);
localBlockIndex->tail.store(newTail, std::memory_order_release);
return true;
}
// No room in the old block index, try to allocate another one!
MOODYCAMEL_CONSTEXPR_IF (allocMode == CannotAlloc) {
return false;
}
else if (!new_block_index()) {
return false;
}
else {
localBlockIndex = blockIndex.load(std::memory_order_relaxed);
newTail = (localBlockIndex->tail.load(std::memory_order_relaxed) + 1) & (localBlockIndex->capacity - 1);
idxEntry = localBlockIndex->index[newTail];
assert(idxEntry->key.load(std::memory_order_relaxed) == INVALID_BLOCK_BASE);
idxEntry->key.store(blockStartIndex, std::memory_order_relaxed);
localBlockIndex->tail.store(newTail, std::memory_order_release);
return true;
} | O0 | c | bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::insert_block_index_entry<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::BlockIndexEntry*&, unsigned long):
subq $0x178, %rsp # imm = 0x178
movq %rdi, 0xa0(%rsp)
movq %rsi, 0x98(%rsp)
movq %rdx, 0x90(%rsp)
movq 0xa0(%rsp), %rdi
movq %rdi, 0x78(%rsp)
addq $0x60, %rdi
xorl %esi, %esi
callq 0x17d90
movq %rax, 0x88(%rsp)
cmpq $0x0, 0x88(%rsp)
jne 0x180f7
movb $0x0, 0xaf(%rsp)
jmp 0x1868e
movq 0x88(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x170(%rsp)
movl $0x0, 0x16c(%rsp)
movq 0x170(%rsp), %rax
movq %rax, 0x68(%rsp)
movl 0x16c(%rsp), %edi
movl $0xffff, %esi # imm = 0xFFFF
callq 0x6420
movl %eax, 0x168(%rsp)
movl 0x16c(%rsp), %eax
movl %eax, 0x74(%rsp)
decl %eax
subl $0x2, %eax
jb 0x1816c
jmp 0x1814f
movl 0x74(%rsp), %eax
subl $0x5, %eax
je 0x1817e
jmp 0x1815a
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x160(%rsp)
jmp 0x1818e
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x160(%rsp)
jmp 0x1818e
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x160(%rsp)
movq 0x160(%rsp), %rax
incq %rax
movq 0x88(%rsp), %rcx
movq (%rcx), %rcx
decq %rcx
andq %rcx, %rax
movq %rax, 0x80(%rsp)
movq 0x88(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x80(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x98(%rsp), %rax
movq %rcx, (%rax)
movq 0x98(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x158(%rsp)
movl $0x0, 0x154(%rsp)
movq 0x158(%rsp), %rax
movq %rax, 0x58(%rsp)
movl 0x154(%rsp), %edi
movl $0xffff, %esi # imm = 0xFFFF
callq 0x6420
movl %eax, 0x150(%rsp)
movl 0x154(%rsp), %eax
movl %eax, 0x64(%rsp)
decl %eax
subl $0x2, %eax
jb 0x18249
jmp 0x1822c
movl 0x64(%rsp), %eax
subl $0x5, %eax
je 0x1825b
jmp 0x18237
movq 0x58(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x148(%rsp)
jmp 0x1826b
movq 0x58(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x148(%rsp)
jmp 0x1826b
movq 0x58(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x148(%rsp)
cmpq $0x1, 0x148(%rsp)
je 0x18296
movq 0x98(%rsp), %rax
movq (%rax), %rdi
addq $0x8, %rdi
xorl %esi, %esi
callq 0x12570
cmpq $0x0, %rax
jne 0x1840c
movq 0x98(%rsp), %rax
movq (%rax), %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x128(%rsp)
movq %rax, 0x120(%rsp)
movl $0x0, 0x11c(%rsp)
movq 0x128(%rsp), %rax
movq %rax, 0x48(%rsp)
movl 0x11c(%rsp), %edi
movl $0xffff, %esi # imm = 0xFFFF
callq 0x6420
movl %eax, 0x118(%rsp)
movl 0x11c(%rsp), %eax
movl %eax, 0x54(%rsp)
movq 0x120(%rsp), %rcx
movq %rcx, 0x110(%rsp)
subl $0x3, %eax
je 0x18328
jmp 0x1830b
movl 0x54(%rsp), %eax
subl $0x5, %eax
je 0x1833a
jmp 0x18316
movq 0x48(%rsp), %rax
movq 0x110(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x1834a
movq 0x48(%rsp), %rax
movq 0x110(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x1834a
movq 0x48(%rsp), %rcx
movq 0x110(%rsp), %rax
xchgq %rax, (%rcx)
movq 0x88(%rsp), %rcx
addq $0x8, %rcx
movq 0x80(%rsp), %rax
movq %rcx, 0x108(%rsp)
movq %rax, 0x100(%rsp)
movl $0x3, 0xfc(%rsp)
movq 0x108(%rsp), %rax
movq %rax, 0x38(%rsp)
movl 0xfc(%rsp), %edi
movl $0xffff, %esi # imm = 0xFFFF
callq 0x6420
movl %eax, 0xf8(%rsp)
movl 0xfc(%rsp), %eax
movl %eax, 0x44(%rsp)
movq 0x100(%rsp), %rcx
movq %rcx, 0xf0(%rsp)
subl $0x3, %eax
je 0x183dd
jmp 0x183c0
movl 0x44(%rsp), %eax
subl $0x5, %eax
je 0x183ef
jmp 0x183cb
movq 0x38(%rsp), %rax
movq 0xf0(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x183ff
movq 0x38(%rsp), %rax
movq 0xf0(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x183ff
movq 0x38(%rsp), %rcx
movq 0xf0(%rsp), %rax
xchgq %rax, (%rcx)
movb $0x1, 0xaf(%rsp)
jmp 0x1868e
movq 0x78(%rsp), %rdi
callq 0x175e0
testb $0x1, %al
jne 0x18427
movb $0x0, 0xaf(%rsp)
jmp 0x1868e
movq 0x78(%rsp), %rdi
addq $0x60, %rdi
xorl %esi, %esi
callq 0x17d90
movq %rax, 0x88(%rsp)
movq 0x88(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x140(%rsp)
movl $0x0, 0x13c(%rsp)
movq 0x140(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0x13c(%rsp), %edi
movl $0xffff, %esi # imm = 0xFFFF
callq 0x6420
movl %eax, 0x138(%rsp)
movl 0x13c(%rsp), %eax
movl %eax, 0x34(%rsp)
decl %eax
subl $0x2, %eax
jb 0x184b4
jmp 0x18497
movl 0x34(%rsp), %eax
subl $0x5, %eax
je 0x184c6
jmp 0x184a2
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x130(%rsp)
jmp 0x184d6
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x130(%rsp)
jmp 0x184d6
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x130(%rsp)
movq 0x130(%rsp), %rax
incq %rax
movq 0x88(%rsp), %rcx
movq (%rcx), %rcx
decq %rcx
andq %rcx, %rax
movq %rax, 0x80(%rsp)
movq 0x88(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x80(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x98(%rsp), %rax
movq %rcx, (%rax)
movq 0x98(%rsp), %rax
movq (%rax), %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0xe8(%rsp)
movq %rax, 0xe0(%rsp)
movl $0x0, 0xdc(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0xdc(%rsp), %edi
movl $0xffff, %esi # imm = 0xFFFF
callq 0x6420
movl %eax, 0xd8(%rsp)
movl 0xdc(%rsp), %eax
movl %eax, 0x24(%rsp)
movq 0xe0(%rsp), %rcx
movq %rcx, 0xd0(%rsp)
subl $0x3, %eax
je 0x185af
jmp 0x18592
movl 0x24(%rsp), %eax
subl $0x5, %eax
je 0x185c1
jmp 0x1859d
movq 0x18(%rsp), %rax
movq 0xd0(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x185d1
movq 0x18(%rsp), %rax
movq 0xd0(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x185d1
movq 0x18(%rsp), %rcx
movq 0xd0(%rsp), %rax
xchgq %rax, (%rcx)
movq 0x88(%rsp), %rcx
addq $0x8, %rcx
movq 0x80(%rsp), %rax
movq %rcx, 0xc8(%rsp)
movq %rax, 0xc0(%rsp)
movl $0x3, 0xbc(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x8(%rsp)
movl 0xbc(%rsp), %edi
movl $0xffff, %esi # imm = 0xFFFF
callq 0x6420
movl %eax, 0xb8(%rsp)
movl 0xbc(%rsp), %eax
movl %eax, 0x14(%rsp)
movq 0xc0(%rsp), %rcx
movq %rcx, 0xb0(%rsp)
subl $0x3, %eax
je 0x18664
jmp 0x18647
movl 0x14(%rsp), %eax
subl $0x5, %eax
je 0x18676
jmp 0x18652
movq 0x8(%rsp), %rax
movq 0xb0(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x18686
movq 0x8(%rsp), %rax
movq 0xb0(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x18686
movq 0x8(%rsp), %rcx
movq 0xb0(%rsp), %rax
xchgq %rax, (%rcx)
movb $0x1, 0xaf(%rsp)
movb 0xaf(%rsp), %al
andb $0x1, %al
addq $0x178, %rsp # imm = 0x178
retq
nop
| _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer24insert_block_index_entryILNS5_14AllocationModeE0EEEbRPNS6_15BlockIndexEntryEm:
sub rsp, 178h
mov [rsp+178h+var_D8], rdi
mov [rsp+178h+var_E0], rsi
mov [rsp+178h+var_E8], rdx
mov rdi, [rsp+178h+var_D8]
mov [rsp+178h+var_100], rdi
add rdi, 60h ; '`'
xor esi, esi
call _ZNKSt6atomicIPN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS0_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer16BlockIndexHeaderEE4loadESt12memory_order; std::atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::BlockIndexHeader *>::load(std::memory_order)
mov [rsp+178h+var_F0], rax
cmp [rsp+178h+var_F0], 0
jnz short loc_180F7
mov [rsp+178h+var_C9], 0
jmp loc_1868E
loc_180F7:
mov rax, [rsp+178h+var_F0]
add rax, 8
mov [rsp+178h+var_8], rax
mov [rsp+178h+var_C], 0
mov rax, [rsp+178h+var_8]
mov [rsp+178h+var_110], rax
mov edi, [rsp+178h+var_C]
mov esi, 0FFFFh
call _ZStanSt12memory_orderSt23__memory_order_modifier; std::operator&(std::memory_order,std::__memory_order_modifier)
mov [rsp+178h+var_10], eax
mov eax, [rsp+178h+var_C]
mov [rsp+178h+var_104], eax
dec eax
sub eax, 2
jb short loc_1816C
jmp short $+2
loc_1814F:
mov eax, [rsp+178h+var_104]
sub eax, 5
jz short loc_1817E
jmp short $+2
loc_1815A:
mov rax, [rsp+178h+var_110]
mov rax, [rax]
mov [rsp+178h+var_18], rax
jmp short loc_1818E
loc_1816C:
mov rax, [rsp+178h+var_110]
mov rax, [rax]
mov [rsp+178h+var_18], rax
jmp short loc_1818E
loc_1817E:
mov rax, [rsp+178h+var_110]
mov rax, [rax]
mov [rsp+178h+var_18], rax
loc_1818E:
mov rax, [rsp+178h+var_18]
inc rax
mov rcx, [rsp+178h+var_F0]
mov rcx, [rcx]
dec rcx
and rax, rcx
mov [rsp+178h+var_F8], rax
mov rax, [rsp+178h+var_F0]
mov rax, [rax+18h]
mov rcx, [rsp+178h+var_F8]
mov rcx, [rax+rcx*8]
mov rax, [rsp+178h+var_E0]
mov [rax], rcx
mov rax, [rsp+178h+var_E0]
mov rax, [rax]
mov [rsp+178h+var_20], rax
mov [rsp+178h+var_24], 0
mov rax, [rsp+178h+var_20]
mov [rsp+178h+var_120], rax
mov edi, [rsp+178h+var_24]
mov esi, 0FFFFh
call _ZStanSt12memory_orderSt23__memory_order_modifier; std::operator&(std::memory_order,std::__memory_order_modifier)
mov [rsp+178h+var_28], eax
mov eax, [rsp+178h+var_24]
mov [rsp+178h+var_114], eax
dec eax
sub eax, 2
jb short loc_18249
jmp short $+2
loc_1822C:
mov eax, [rsp+178h+var_114]
sub eax, 5
jz short loc_1825B
jmp short $+2
loc_18237:
mov rax, [rsp+178h+var_120]
mov rax, [rax]
mov [rsp+178h+var_30], rax
jmp short loc_1826B
loc_18249:
mov rax, [rsp+178h+var_120]
mov rax, [rax]
mov [rsp+178h+var_30], rax
jmp short loc_1826B
loc_1825B:
mov rax, [rsp+178h+var_120]
mov rax, [rax]
mov [rsp+178h+var_30], rax
loc_1826B:
cmp [rsp+178h+var_30], 1
jz short loc_18296
mov rax, [rsp+178h+var_E0]
mov rdi, [rax]
add rdi, 8
xor esi, esi
call _ZNKSt6atomicIPN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS0_28ConcurrentQueueDefaultTraitsEE5BlockEE4loadESt12memory_order; std::atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block *>::load(std::memory_order)
cmp rax, 0
jnz loc_1840C
loc_18296:
mov rax, [rsp+178h+var_E0]
mov rcx, [rax]
mov rax, [rsp+178h+var_E8]
mov [rsp+178h+var_50], rcx
mov [rsp+178h+var_58], rax
mov [rsp+178h+var_5C], 0
mov rax, [rsp+178h+var_50]
mov [rsp+178h+var_130], rax
mov edi, [rsp+178h+var_5C]
mov esi, 0FFFFh
call _ZStanSt12memory_orderSt23__memory_order_modifier; std::operator&(std::memory_order,std::__memory_order_modifier)
mov [rsp+178h+var_60], eax
mov eax, [rsp+178h+var_5C]
mov [rsp+178h+var_124], eax
mov rcx, [rsp+178h+var_58]
mov [rsp+178h+var_68], rcx
sub eax, 3
jz short loc_18328
jmp short $+2
loc_1830B:
mov eax, [rsp+178h+var_124]
sub eax, 5
jz short loc_1833A
jmp short $+2
loc_18316:
mov rax, [rsp+178h+var_130]
mov rcx, [rsp+178h+var_68]
mov [rax], rcx
jmp short loc_1834A
loc_18328:
mov rax, [rsp+178h+var_130]
mov rcx, [rsp+178h+var_68]
mov [rax], rcx
jmp short loc_1834A
loc_1833A:
mov rcx, [rsp+178h+var_130]
mov rax, [rsp+178h+var_68]
xchg rax, [rcx]
loc_1834A:
mov rcx, [rsp+178h+var_F0]
add rcx, 8
mov rax, [rsp+178h+var_F8]
mov [rsp+178h+var_70], rcx
mov [rsp+178h+var_78], rax
mov [rsp+178h+var_7C], 3
mov rax, [rsp+178h+var_70]
mov [rsp+178h+var_140], rax
mov edi, [rsp+178h+var_7C]
mov esi, 0FFFFh
call _ZStanSt12memory_orderSt23__memory_order_modifier; std::operator&(std::memory_order,std::__memory_order_modifier)
mov [rsp+178h+var_80], eax
mov eax, [rsp+178h+var_7C]
mov [rsp+178h+var_134], eax
mov rcx, [rsp+178h+var_78]
mov [rsp+178h+var_88], rcx
sub eax, 3
jz short loc_183DD
jmp short $+2
loc_183C0:
mov eax, [rsp+178h+var_134]
sub eax, 5
jz short loc_183EF
jmp short $+2
loc_183CB:
mov rax, [rsp+178h+var_140]
mov rcx, [rsp+178h+var_88]
mov [rax], rcx
jmp short loc_183FF
loc_183DD:
mov rax, [rsp+178h+var_140]
mov rcx, [rsp+178h+var_88]
mov [rax], rcx
jmp short loc_183FF
loc_183EF:
mov rcx, [rsp+178h+var_140]
mov rax, [rsp+178h+var_88]
xchg rax, [rcx]
loc_183FF:
mov [rsp+178h+var_C9], 1
jmp loc_1868E
loc_1840C:
mov rdi, [rsp+178h+var_100]
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer15new_block_indexEv; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::new_block_index(void)
test al, 1
jnz short loc_18427
mov [rsp+178h+var_C9], 0
jmp loc_1868E
loc_18427:
mov rdi, [rsp+178h+var_100]
add rdi, 60h ; '`'
xor esi, esi
call _ZNKSt6atomicIPN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS0_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer16BlockIndexHeaderEE4loadESt12memory_order; std::atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::BlockIndexHeader *>::load(std::memory_order)
mov [rsp+178h+var_F0], rax
mov rax, [rsp+178h+var_F0]
add rax, 8
mov [rsp+178h+var_38], rax
mov [rsp+178h+var_3C], 0
mov rax, [rsp+178h+var_38]
mov [rsp+178h+var_150], rax
mov edi, [rsp+178h+var_3C]
mov esi, 0FFFFh
call _ZStanSt12memory_orderSt23__memory_order_modifier; std::operator&(std::memory_order,std::__memory_order_modifier)
mov [rsp+178h+var_40], eax
mov eax, [rsp+178h+var_3C]
mov [rsp+178h+var_144], eax
dec eax
sub eax, 2
jb short loc_184B4
jmp short $+2
loc_18497:
mov eax, [rsp+178h+var_144]
sub eax, 5
jz short loc_184C6
jmp short $+2
loc_184A2:
mov rax, [rsp+178h+var_150]
mov rax, [rax]
mov [rsp+178h+var_48], rax
jmp short loc_184D6
loc_184B4:
mov rax, [rsp+178h+var_150]
mov rax, [rax]
mov [rsp+178h+var_48], rax
jmp short loc_184D6
loc_184C6:
mov rax, [rsp+178h+var_150]
mov rax, [rax]
mov [rsp+178h+var_48], rax
loc_184D6:
mov rax, [rsp+178h+var_48]
inc rax
mov rcx, [rsp+178h+var_F0]
mov rcx, [rcx]
dec rcx
and rax, rcx
mov [rsp+178h+var_F8], rax
mov rax, [rsp+178h+var_F0]
mov rax, [rax+18h]
mov rcx, [rsp+178h+var_F8]
mov rcx, [rax+rcx*8]
mov rax, [rsp+178h+var_E0]
mov [rax], rcx
mov rax, [rsp+178h+var_E0]
mov rcx, [rax]
mov rax, [rsp+178h+var_E8]
mov [rsp+178h+var_90], rcx
mov [rsp+178h+var_98], rax
mov [rsp+178h+var_9C], 0
mov rax, [rsp+178h+var_90]
mov [rsp+178h+var_160], rax
mov edi, [rsp+178h+var_9C]
mov esi, 0FFFFh
call _ZStanSt12memory_orderSt23__memory_order_modifier; std::operator&(std::memory_order,std::__memory_order_modifier)
mov [rsp+178h+var_A0], eax
mov eax, [rsp+178h+var_9C]
mov [rsp+178h+var_154], eax
mov rcx, [rsp+178h+var_98]
mov [rsp+178h+var_A8], rcx
sub eax, 3
jz short loc_185AF
jmp short $+2
loc_18592:
mov eax, [rsp+178h+var_154]
sub eax, 5
jz short loc_185C1
jmp short $+2
loc_1859D:
mov rax, [rsp+178h+var_160]
mov rcx, [rsp+178h+var_A8]
mov [rax], rcx
jmp short loc_185D1
loc_185AF:
mov rax, [rsp+178h+var_160]
mov rcx, [rsp+178h+var_A8]
mov [rax], rcx
jmp short loc_185D1
loc_185C1:
mov rcx, [rsp+178h+var_160]
mov rax, [rsp+178h+var_A8]
xchg rax, [rcx]
loc_185D1:
mov rcx, [rsp+178h+var_F0]
add rcx, 8
mov rax, [rsp+178h+var_F8]
mov [rsp+178h+var_B0], rcx
mov [rsp+178h+var_B8], rax
mov [rsp+178h+var_BC], 3
mov rax, [rsp+178h+var_B0]
mov [rsp+178h+var_170], rax
mov edi, [rsp+178h+var_BC]
mov esi, 0FFFFh
call _ZStanSt12memory_orderSt23__memory_order_modifier; std::operator&(std::memory_order,std::__memory_order_modifier)
mov [rsp+178h+var_C0], eax
mov eax, [rsp+178h+var_BC]
mov [rsp+178h+var_164], eax
mov rcx, [rsp+178h+var_B8]
mov [rsp+178h+var_C8], rcx
sub eax, 3
jz short loc_18664
jmp short $+2
loc_18647:
mov eax, [rsp+178h+var_164]
sub eax, 5
jz short loc_18676
jmp short $+2
loc_18652:
mov rax, [rsp+178h+var_170]
mov rcx, [rsp+178h+var_C8]
mov [rax], rcx
jmp short loc_18686
loc_18664:
mov rax, [rsp+178h+var_170]
mov rcx, [rsp+178h+var_C8]
mov [rax], rcx
jmp short loc_18686
loc_18676:
mov rcx, [rsp+178h+var_170]
mov rax, [rsp+178h+var_C8]
xchg rax, [rcx]
loc_18686:
mov [rsp+178h+var_C9], 1
loc_1868E:
mov al, [rsp+178h+var_C9]
and al, 1
add rsp, 178h
retn
| char moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::insert_block_index_entry<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>(
long long a1,
_QWORD *a2,
long long a3)
{
_QWORD *v4; // [rsp+18h] [rbp-160h]
_QWORD *v5; // [rsp+48h] [rbp-130h]
_QWORD *v6; // [rsp+58h] [rbp-120h]
long long v7; // [rsp+80h] [rbp-F8h]
long long v8; // [rsp+80h] [rbp-F8h]
_QWORD *v9; // [rsp+88h] [rbp-F0h]
_QWORD *v10; // [rsp+88h] [rbp-F0h]
v9 = (_QWORD *)std::atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::BlockIndexHeader *>::load(
a1 + 96,
0);
if ( !v9 )
return 0;
std::operator&(0, 0xFFFF);
v7 = (*v9 - 1LL) & (v9[1] + 1LL);
*a2 = *(_QWORD *)(v9[3] + 8 * v7);
v6 = (_QWORD *)*a2;
std::operator&(0, 0xFFFF);
if ( *v6 != 1LL
&& std::atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block *>::load(
*a2 + 8LL,
0) )
{
if ( (moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::new_block_index(a1) & 1) != 0 )
{
v10 = (_QWORD *)std::atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::BlockIndexHeader *>::load(
a1 + 96,
0);
std::operator&(0, 0xFFFF);
v8 = (*v10 - 1LL) & (v10[1] + 1LL);
*a2 = *(_QWORD *)(v10[3] + 8 * v8);
v4 = (_QWORD *)*a2;
std::operator&(0, 0xFFFF);
*v4 = a3;
std::operator&(3u, 0xFFFF);
v10[1] = v8;
return 1;
}
else
{
return 0;
}
}
else
{
v5 = (_QWORD *)*a2;
std::operator&(0, 0xFFFF);
*v5 = a3;
std::operator&(3u, 0xFFFF);
v9[1] = v7;
return 1;
}
}
| insert_block_index_entry<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>:
SUB RSP,0x178
MOV qword ptr [RSP + 0xa0],RDI
MOV qword ptr [RSP + 0x98],RSI
MOV qword ptr [RSP + 0x90],RDX
MOV RDI,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0x78],RDI
ADD RDI,0x60
XOR ESI,ESI
CALL 0x00117d90
MOV qword ptr [RSP + 0x88],RAX
CMP qword ptr [RSP + 0x88],0x0
JNZ 0x001180f7
MOV byte ptr [RSP + 0xaf],0x0
JMP 0x0011868e
LAB_001180f7:
MOV RAX,qword ptr [RSP + 0x88]
ADD RAX,0x8
MOV qword ptr [RSP + 0x170],RAX
MOV dword ptr [RSP + 0x16c],0x0
MOV RAX,qword ptr [RSP + 0x170]
MOV qword ptr [RSP + 0x68],RAX
MOV EDI,dword ptr [RSP + 0x16c]
MOV ESI,0xffff
CALL 0x00106420
MOV dword ptr [RSP + 0x168],EAX
MOV EAX,dword ptr [RSP + 0x16c]
MOV dword ptr [RSP + 0x74],EAX
DEC EAX
SUB EAX,0x2
JC 0x0011816c
JMP 0x0011814f
LAB_0011814f:
MOV EAX,dword ptr [RSP + 0x74]
SUB EAX,0x5
JZ 0x0011817e
JMP 0x0011815a
LAB_0011815a:
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x160],RAX
JMP 0x0011818e
LAB_0011816c:
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x160],RAX
JMP 0x0011818e
LAB_0011817e:
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x160],RAX
LAB_0011818e:
MOV RAX,qword ptr [RSP + 0x160]
INC RAX
MOV RCX,qword ptr [RSP + 0x88]
MOV RCX,qword ptr [RCX]
DEC RCX
AND RAX,RCX
MOV qword ptr [RSP + 0x80],RAX
MOV RAX,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RSP + 0x80]
MOV RCX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RSP + 0x98]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x158],RAX
MOV dword ptr [RSP + 0x154],0x0
MOV RAX,qword ptr [RSP + 0x158]
MOV qword ptr [RSP + 0x58],RAX
MOV EDI,dword ptr [RSP + 0x154]
MOV ESI,0xffff
CALL 0x00106420
MOV dword ptr [RSP + 0x150],EAX
MOV EAX,dword ptr [RSP + 0x154]
MOV dword ptr [RSP + 0x64],EAX
DEC EAX
SUB EAX,0x2
JC 0x00118249
JMP 0x0011822c
LAB_0011822c:
MOV EAX,dword ptr [RSP + 0x64]
SUB EAX,0x5
JZ 0x0011825b
JMP 0x00118237
LAB_00118237:
MOV RAX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x148],RAX
JMP 0x0011826b
LAB_00118249:
MOV RAX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x148],RAX
JMP 0x0011826b
LAB_0011825b:
MOV RAX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x148],RAX
LAB_0011826b:
CMP qword ptr [RSP + 0x148],0x1
JZ 0x00118296
MOV RAX,qword ptr [RSP + 0x98]
MOV RDI,qword ptr [RAX]
ADD RDI,0x8
XOR ESI,ESI
CALL 0x00112570
CMP RAX,0x0
JNZ 0x0011840c
LAB_00118296:
MOV RAX,qword ptr [RSP + 0x98]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x128],RCX
MOV qword ptr [RSP + 0x120],RAX
MOV dword ptr [RSP + 0x11c],0x0
MOV RAX,qword ptr [RSP + 0x128]
MOV qword ptr [RSP + 0x48],RAX
MOV EDI,dword ptr [RSP + 0x11c]
MOV ESI,0xffff
CALL 0x00106420
MOV dword ptr [RSP + 0x118],EAX
MOV EAX,dword ptr [RSP + 0x11c]
MOV dword ptr [RSP + 0x54],EAX
MOV RCX,qword ptr [RSP + 0x120]
MOV qword ptr [RSP + 0x110],RCX
SUB EAX,0x3
JZ 0x00118328
JMP 0x0011830b
LAB_0011830b:
MOV EAX,dword ptr [RSP + 0x54]
SUB EAX,0x5
JZ 0x0011833a
JMP 0x00118316
LAB_00118316:
MOV RAX,qword ptr [RSP + 0x48]
MOV RCX,qword ptr [RSP + 0x110]
MOV qword ptr [RAX],RCX
JMP 0x0011834a
LAB_00118328:
MOV RAX,qword ptr [RSP + 0x48]
MOV RCX,qword ptr [RSP + 0x110]
MOV qword ptr [RAX],RCX
JMP 0x0011834a
LAB_0011833a:
MOV RCX,qword ptr [RSP + 0x48]
MOV RAX,qword ptr [RSP + 0x110]
XCHG qword ptr [RCX],RAX
LAB_0011834a:
MOV RCX,qword ptr [RSP + 0x88]
ADD RCX,0x8
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x108],RCX
MOV qword ptr [RSP + 0x100],RAX
MOV dword ptr [RSP + 0xfc],0x3
MOV RAX,qword ptr [RSP + 0x108]
MOV qword ptr [RSP + 0x38],RAX
MOV EDI,dword ptr [RSP + 0xfc]
MOV ESI,0xffff
CALL 0x00106420
MOV dword ptr [RSP + 0xf8],EAX
MOV EAX,dword ptr [RSP + 0xfc]
MOV dword ptr [RSP + 0x44],EAX
MOV RCX,qword ptr [RSP + 0x100]
MOV qword ptr [RSP + 0xf0],RCX
SUB EAX,0x3
JZ 0x001183dd
JMP 0x001183c0
LAB_001183c0:
MOV EAX,dword ptr [RSP + 0x44]
SUB EAX,0x5
JZ 0x001183ef
JMP 0x001183cb
LAB_001183cb:
MOV RAX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RSP + 0xf0]
MOV qword ptr [RAX],RCX
JMP 0x001183ff
LAB_001183dd:
MOV RAX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RSP + 0xf0]
MOV qword ptr [RAX],RCX
JMP 0x001183ff
LAB_001183ef:
MOV RCX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RSP + 0xf0]
XCHG qword ptr [RCX],RAX
LAB_001183ff:
MOV byte ptr [RSP + 0xaf],0x1
JMP 0x0011868e
LAB_0011840c:
MOV RDI,qword ptr [RSP + 0x78]
CALL 0x001175e0
TEST AL,0x1
JNZ 0x00118427
MOV byte ptr [RSP + 0xaf],0x0
JMP 0x0011868e
LAB_00118427:
MOV RDI,qword ptr [RSP + 0x78]
ADD RDI,0x60
XOR ESI,ESI
CALL 0x00117d90
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0x88]
ADD RAX,0x8
MOV qword ptr [RSP + 0x140],RAX
MOV dword ptr [RSP + 0x13c],0x0
MOV RAX,qword ptr [RSP + 0x140]
MOV qword ptr [RSP + 0x28],RAX
MOV EDI,dword ptr [RSP + 0x13c]
MOV ESI,0xffff
CALL 0x00106420
MOV dword ptr [RSP + 0x138],EAX
MOV EAX,dword ptr [RSP + 0x13c]
MOV dword ptr [RSP + 0x34],EAX
DEC EAX
SUB EAX,0x2
JC 0x001184b4
JMP 0x00118497
LAB_00118497:
MOV EAX,dword ptr [RSP + 0x34]
SUB EAX,0x5
JZ 0x001184c6
JMP 0x001184a2
LAB_001184a2:
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x130],RAX
JMP 0x001184d6
LAB_001184b4:
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x130],RAX
JMP 0x001184d6
LAB_001184c6:
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x130],RAX
LAB_001184d6:
MOV RAX,qword ptr [RSP + 0x130]
INC RAX
MOV RCX,qword ptr [RSP + 0x88]
MOV RCX,qword ptr [RCX]
DEC RCX
AND RAX,RCX
MOV qword ptr [RSP + 0x80],RAX
MOV RAX,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RSP + 0x80]
MOV RCX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RSP + 0x98]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0xe8],RCX
MOV qword ptr [RSP + 0xe0],RAX
MOV dword ptr [RSP + 0xdc],0x0
MOV RAX,qword ptr [RSP + 0xe8]
MOV qword ptr [RSP + 0x18],RAX
MOV EDI,dword ptr [RSP + 0xdc]
MOV ESI,0xffff
CALL 0x00106420
MOV dword ptr [RSP + 0xd8],EAX
MOV EAX,dword ptr [RSP + 0xdc]
MOV dword ptr [RSP + 0x24],EAX
MOV RCX,qword ptr [RSP + 0xe0]
MOV qword ptr [RSP + 0xd0],RCX
SUB EAX,0x3
JZ 0x001185af
JMP 0x00118592
LAB_00118592:
MOV EAX,dword ptr [RSP + 0x24]
SUB EAX,0x5
JZ 0x001185c1
JMP 0x0011859d
LAB_0011859d:
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0xd0]
MOV qword ptr [RAX],RCX
JMP 0x001185d1
LAB_001185af:
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0xd0]
MOV qword ptr [RAX],RCX
JMP 0x001185d1
LAB_001185c1:
MOV RCX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0xd0]
XCHG qword ptr [RCX],RAX
LAB_001185d1:
MOV RCX,qword ptr [RSP + 0x88]
ADD RCX,0x8
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0xc8],RCX
MOV qword ptr [RSP + 0xc0],RAX
MOV dword ptr [RSP + 0xbc],0x3
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x8],RAX
MOV EDI,dword ptr [RSP + 0xbc]
MOV ESI,0xffff
CALL 0x00106420
MOV dword ptr [RSP + 0xb8],EAX
MOV EAX,dword ptr [RSP + 0xbc]
MOV dword ptr [RSP + 0x14],EAX
MOV RCX,qword ptr [RSP + 0xc0]
MOV qword ptr [RSP + 0xb0],RCX
SUB EAX,0x3
JZ 0x00118664
JMP 0x00118647
LAB_00118647:
MOV EAX,dword ptr [RSP + 0x14]
SUB EAX,0x5
JZ 0x00118676
JMP 0x00118652
LAB_00118652:
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0xb0]
MOV qword ptr [RAX],RCX
JMP 0x00118686
LAB_00118664:
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0xb0]
MOV qword ptr [RAX],RCX
JMP 0x00118686
LAB_00118676:
MOV RCX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0xb0]
XCHG qword ptr [RCX],RAX
LAB_00118686:
MOV byte ptr [RSP + 0xaf],0x1
LAB_0011868e:
MOV AL,byte ptr [RSP + 0xaf]
AND AL,0x1
ADD RSP,0x178
RET
|
/* WARNING: Removing unreachable block (ram,0x00118645) */
/* WARNING: Removing unreachable block (ram,0x00118650) */
/* WARNING: Removing unreachable block (ram,0x001184b4) */
/* WARNING: Removing unreachable block (ram,0x001184c6) */
/* WARNING: Removing unreachable block (ram,0x0011833a) */
/* WARNING: Removing unreachable block (ram,0x0011825b) */
/* WARNING: Removing unreachable block (ram,0x0011817e) */
/* WARNING: Removing unreachable block (ram,0x0011816c) */
/* WARNING: Removing unreachable block (ram,0x00118249) */
/* WARNING: Removing unreachable block (ram,0x00118328) */
/* WARNING: Removing unreachable block (ram,0x001183be) */
/* WARNING: Removing unreachable block (ram,0x001183ef) */
/* WARNING: Removing unreachable block (ram,0x001183c9) */
/* WARNING: Removing unreachable block (ram,0x001185af) */
/* WARNING: Removing unreachable block (ram,0x00118676) */
/* WARNING: Removing unreachable block (ram,0x001185c1) */
/* bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,
moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::insert_block_index_entry<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,
moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,
moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::BlockIndexEntry*&, unsigned long) */
bool __thiscall
moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>
::ImplicitProducer::
insert_block_index_entry<(moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0>
(ImplicitProducer *this,BlockIndexEntry **param_1,ulong param_2)
{
BlockIndexEntry *pBVar1;
long *plVar2;
ulong uVar3;
long lVar4;
bool local_c9;
plVar2 = (long *)std::
atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::BlockIndexHeader*>
::load((atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::BlockIndexHeader*>
*)(this + 0x60),0);
if (plVar2 == (long *)0x0) {
local_c9 = false;
}
else {
std::operator&(0,0xffff);
uVar3 = plVar2[1] + 1U & *plVar2 - 1U;
*param_1 = *(BlockIndexEntry **)(plVar2[3] + uVar3 * 8);
pBVar1 = *param_1;
std::operator&(0,0xffff);
if ((*(long *)pBVar1 == 1) ||
(lVar4 = std::
atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block*>
::load((atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::Block*>
*)(*param_1 + 8),0), lVar4 == 0)) {
pBVar1 = *param_1;
std::operator&(0,0xffff);
*(ulong *)pBVar1 = param_2;
std::operator&(3,0xffff);
plVar2[1] = uVar3;
local_c9 = true;
}
else {
uVar3 = new_block_index(this);
if ((uVar3 & 1) == 0) {
local_c9 = false;
}
else {
plVar2 = (long *)std::
atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::BlockIndexHeader*>
::load((atomic<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::BlockIndexHeader*>
*)(this + 0x60),0);
std::operator&(0,0xffff);
uVar3 = plVar2[1] + 1U & *plVar2 - 1U;
*param_1 = *(BlockIndexEntry **)(plVar2[3] + uVar3 * 8);
pBVar1 = *param_1;
std::operator&(0,0xffff);
*(ulong *)pBVar1 = param_2;
std::operator&(3,0xffff);
plVar2[1] = uVar3;
local_c9 = true;
}
}
}
return local_c9;
}
| |
29,798 | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::vector<char, std::allocator<char>>>>>::scan_comment() | monkey531[P]llama/common/./json.hpp | bool scan_comment()
{
switch (get())
{
// single-line comments skip input until a newline or EOF is read
case '/':
{
while (true)
{
switch (get())
{
case '\n':
case '\r':
case char_traits<char_type>::eof():
case '\0':
return true;
default:
break;
}
}
}
// multi-line comments skip input until */ is read
case '*':
{
while (true)
{
switch (get())
{
case char_traits<char_type>::eof():
case '\0':
{
error_message = "invalid comment; missing closing '*/'";
return false;
}
case '*':
{
switch (get())
{
case '/':
return true;
default:
{
unget();
continue;
}
}
}
default:
continue;
}
}
}
// unexpected character after reading '/'
default:
{
error_message = "invalid comment; expecting '/' or '*' after '/'";
return false;
}
}
} | O0 | cpp | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::vector<char, std::allocator<char>>>>>::scan_comment():
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x24c080
movl %eax, %ecx
movl %ecx, 0x14(%rsp)
subl $0x2a, %eax
je 0x24aed2
jmp 0x24ae85
movl 0x14(%rsp), %eax
subl $0x2f, %eax
jne 0x24af35
jmp 0x24ae94
jmp 0x24ae96
movq 0x8(%rsp), %rdi
callq 0x24c080
movl %eax, %ecx
movl %ecx, %eax
incl %eax
movl %ecx, 0x4(%rsp)
subl $0x2, %eax
jb 0x24aec7
jmp 0x24aeb1
movl 0x4(%rsp), %eax
subl $0xa, %eax
je 0x24aec7
jmp 0x24aebc
movl 0x4(%rsp), %eax
subl $0xd, %eax
jne 0x24aece
jmp 0x24aec7
movb $0x1, 0x27(%rsp)
jmp 0x24af4a
jmp 0x24aed0
jmp 0x24ae96
jmp 0x24aed4
movq 0x8(%rsp), %rdi
callq 0x24c080
movl %eax, %ecx
movl %ecx, %eax
incl %eax
movl %ecx, (%rsp)
subl $0x2, %eax
jb 0x24aef8
jmp 0x24aeee
movl (%rsp), %eax
subl $0x2a, %eax
je 0x24af0f
jmp 0x24af33
movq 0x8(%rsp), %rax
leaq 0x98760(%rip), %rcx # 0x2e3664
movq %rcx, 0x70(%rax)
movb $0x0, 0x27(%rsp)
jmp 0x24af4a
movq 0x8(%rsp), %rdi
callq 0x24c080
subl $0x2f, %eax
jne 0x24af27
jmp 0x24af20
movb $0x1, 0x27(%rsp)
jmp 0x24af4a
movq 0x8(%rsp), %rdi
callq 0x24c160
jmp 0x24aed4
jmp 0x24aed4
movq 0x8(%rsp), %rax
leaq 0x98749(%rip), %rcx # 0x2e368a
movq %rcx, 0x70(%rax)
movb $0x0, 0x27(%rsp)
movb 0x27(%rsp), %al
andb $0x1, %al
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
nop
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS5_IcSA_EEEEEE12scan_commentEv:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov rdi, [rsp+28h+var_10]
mov [rsp+28h+var_20], rdi
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS5_IcSA_EEEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::vector<char>>>>::get(void)
mov ecx, eax
mov [rsp+28h+var_14], ecx
sub eax, 2Ah ; '*'
jz short loc_24AED2
jmp short $+2
loc_24AE85:
mov eax, [rsp+28h+var_14]
sub eax, 2Fh ; '/'
jnz loc_24AF35
jmp short $+2
loc_24AE94:
jmp short $+2
loc_24AE96:
mov rdi, [rsp+28h+var_20]
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS5_IcSA_EEEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::vector<char>>>>::get(void)
mov ecx, eax
mov eax, ecx
inc eax
mov [rsp+28h+var_24], ecx
sub eax, 2
jb short loc_24AEC7
jmp short $+2
loc_24AEB1:
mov eax, [rsp+28h+var_24]
sub eax, 0Ah
jz short loc_24AEC7
jmp short $+2
loc_24AEBC:
mov eax, [rsp+28h+var_24]
sub eax, 0Dh
jnz short loc_24AECE
jmp short $+2
loc_24AEC7:
mov [rsp+28h+var_1], 1
jmp short loc_24AF4A
loc_24AECE:
jmp short $+2
loc_24AED0:
jmp short loc_24AE96
loc_24AED2:
jmp short $+2
loc_24AED4:
mov rdi, [rsp+28h+var_20]
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS5_IcSA_EEEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::vector<char>>>>::get(void)
mov ecx, eax
mov eax, ecx
inc eax
mov [rsp+28h+var_28], ecx
sub eax, 2
jb short loc_24AEF8
jmp short $+2
loc_24AEEE:
mov eax, [rsp+28h+var_28]
sub eax, 2Ah ; '*'
jz short loc_24AF0F
jmp short loc_24AF33
loc_24AEF8:
mov rax, [rsp+28h+var_20]
lea rcx, aInvalidComment; "invalid comment; missing closing '*/'"
mov [rax+70h], rcx
mov [rsp+28h+var_1], 0
jmp short loc_24AF4A
loc_24AF0F:
mov rdi, [rsp+28h+var_20]
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS5_IcSA_EEEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::vector<char>>>>::get(void)
sub eax, 2Fh ; '/'
jnz short loc_24AF27
jmp short $+2
loc_24AF20:
mov [rsp+28h+var_1], 1
jmp short loc_24AF4A
loc_24AF27:
mov rdi, [rsp+28h+var_20]
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS5_IcSA_EEEEEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::vector<char>>>>::unget(void)
jmp short loc_24AED4
loc_24AF33:
jmp short loc_24AED4
loc_24AF35:
mov rax, [rsp+28h+var_20]
lea rcx, aInvalidComment_0; "invalid comment; expecting '/' or '*' a"...
mov [rax+70h], rcx
mov [rsp+28h+var_1], 0
loc_24AF4A:
mov al, [rsp+28h+var_1]
and al, 1
add rsp, 28h
retn
| char nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::vector<char>>>>::scan_comment(
long long a1)
{
int v2; // [rsp+0h] [rbp-28h]
int v3; // [rsp+4h] [rbp-24h]
int v4; // [rsp+14h] [rbp-14h]
v4 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::vector<char>>>>::get(a1);
if ( v4 == 42 )
{
while ( 1 )
{
do
{
v2 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::vector<char>>>>::get(a1);
if ( (unsigned int)(v2 + 1) < 2 )
{
*(_QWORD *)(a1 + 112) = "invalid comment; missing closing '*/'";
return 0;
}
}
while ( v2 != 42 );
if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::vector<char>>>>::get(a1) == 47 )
break;
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::vector<char>>>>::unget(a1);
}
return 1;
}
else if ( v4 == 47 )
{
do
v3 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::vector<char>>>>::get(a1);
while ( (unsigned int)(v3 + 1) >= 2 && v3 != 10 && v3 != 13 );
return 1;
}
else
{
*(_QWORD *)(a1 + 112) = "invalid comment; expecting '/' or '*' after '/'";
return 0;
}
}
| __get_helper<0ul,std::__cxx11::string*,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>::create<std::__cxx11::string,char_const(&)[24]>(char_const(&)[24])::{lambda(std::__cxx11::string*)#1}>:
PUSH RAX
MOV qword ptr [RSP],RDI
MOV RDI,qword ptr [RSP]
CALL 0x0024ae70
POP RCX
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::__cxx11::string*& std::__get_helper<0ul, std::__cxx11::string*,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::create<std::__cxx11::string, char const (&) [24]>(char const (&)
[24])::{lambda(std::__cxx11::string*)#1}>(std::_Tuple_impl<0ul, std::__cxx11::string*,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::create<std::__cxx11::string, char const (&) [24]>(char const (&)
[24])::{lambda(std::__cxx11::string*)#1}>&) */
string ** std::
__get_helper<0ul,std::__cxx11::string*,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>::create<std::__cxx11::string,char_const(&)[24]>(char_const(&)[24])::_lambda(std::__cxx11::string*)_1_>
(_Tuple_impl *param_1)
{
string **ppsVar1;
ppsVar1 = (string **)
_Tuple_impl<0ul,std::__cxx11::string*,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>::create<std::__cxx11::string,char_const(&)[24]>(char_const(&)[24])::{lambda(std::__cxx11::string*)#1}>
::_M_head(param_1);
return ppsVar1;
}
| |
29,799 | common_sampler_clone(common_sampler*) | monkey531[P]llama/common/sampling.cpp | struct common_sampler * common_sampler_clone(common_sampler * gsmpl) {
return new common_sampler {
/* .params = */ gsmpl->params,
/* .grmr = */ llama_sampler_clone(gsmpl->grmr),
/* .chain = */ llama_sampler_clone(gsmpl->chain),
/* .prev = */ gsmpl->prev,
/* .cur = */ gsmpl->cur,
/* .cur_p = */ gsmpl->cur_p,
};
} | O1 | cpp | common_sampler_clone(common_sampler*):
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x1b8, %edi # imm = 0x1B8
callq 0x1b8b0
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x5572e
movq 0x138(%r14), %rdi
callq 0x1b600
movq %rax, 0x138(%rbx)
movq 0x140(%r14), %rdi
callq 0x1b600
movq %rax, 0x140(%rbx)
movups 0x148(%r14), %xmm0
movups 0x158(%r14), %xmm1
movups %xmm0, 0x148(%rbx)
movups %xmm1, 0x158(%rbx)
movl $0x168, %esi # imm = 0x168
leaq (%rbx,%rsi), %r15
addq %r14, %rsi
movq %r15, %rdi
callq 0x55d74
movl $0x180, %esi # imm = 0x180
movq %rbx, %rdi
addq %rsi, %rdi
addq %r14, %rsi
callq 0xd0a64
movups 0x198(%r14), %xmm0
movups 0x1a8(%r14), %xmm1
movups %xmm1, 0x1a8(%rbx)
movups %xmm0, 0x198(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%r15), %rdi
testq %rdi, %rdi
je 0xcf90e
movq 0x178(%rbx), %rsi
subq %rdi, %rsi
callq 0x1b8e0
jmp 0xcf90e
movq %rax, %r14
jmp 0xcf916
movq %rax, %r14
movq %rbx, %rdi
callq 0x231c8
movl $0x1b8, %esi # imm = 0x1B8
movq %rbx, %rdi
callq 0x1b8e0
movq %r14, %rdi
callq 0x1bfb0
| _Z20common_sampler_cloneP14common_sampler:
push r15
push r14
push rbx
mov r14, rdi
mov edi, 1B8h; unsigned __int64
call __Znwm; operator new(ulong)
mov rbx, rax
mov rdi, rax; this
mov rsi, r14; common_params_sampling *
call _ZN22common_params_samplingC2ERKS_; common_params_sampling::common_params_sampling(common_params_sampling const&)
mov rdi, [r14+138h]
call _llama_sampler_clone
mov [rbx+138h], rax
mov rdi, [r14+140h]
call _llama_sampler_clone
mov [rbx+140h], rax
movups xmm0, xmmword ptr [r14+148h]
movups xmm1, xmmword ptr [r14+158h]
movups xmmword ptr [rbx+148h], xmm0
movups xmmword ptr [rbx+158h], xmm1
mov esi, 168h
lea r15, [rbx+rsi]
add rsi, r14
mov rdi, r15
call _ZNSt6vectorIiSaIiEEC2ERKS1_; std::vector<int>::vector(std::vector<int> const&)
mov esi, 180h
mov rdi, rbx
add rdi, rsi
add rsi, r14
call _ZNSt6vectorI16llama_token_dataSaIS0_EEC2ERKS2_; std::vector<llama_token_data>::vector(std::vector<llama_token_data> const&)
movups xmm0, xmmword ptr [r14+198h]
movups xmm1, xmmword ptr [r14+1A8h]
movups xmmword ptr [rbx+1A8h], xmm1
movups xmmword ptr [rbx+198h], xmm0
mov rax, rbx
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, [r15]; void *
test rdi, rdi
jz short loc_CF90E
mov rsi, [rbx+178h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_CF90E
mov r14, rax
jmp short loc_CF916
mov r14, rax
loc_CF90E:
mov rdi, rbx; this
call _ZN22common_params_samplingD2Ev; common_params_sampling::~common_params_sampling()
loc_CF916:
mov esi, 1B8h; unsigned __int64
mov rdi, rbx; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, r14
call __Unwind_Resume
| long long common_sampler_clone(common_params_sampling *a1)
{
long long v1; // rbx
__int128 v2; // xmm1
__int128 v3; // xmm0
v1 = operator new(0x1B8uLL);
common_params_sampling::common_params_sampling((common_params_sampling *)v1, a1);
*(_QWORD *)(v1 + 312) = llama_sampler_clone(*((_QWORD *)a1 + 39));
*(_QWORD *)(v1 + 320) = llama_sampler_clone(*((_QWORD *)a1 + 40));
v2 = *(_OWORD *)((char *)a1 + 344);
*(_OWORD *)(v1 + 328) = *(_OWORD *)((char *)a1 + 328);
*(_OWORD *)(v1 + 344) = v2;
std::vector<int>::vector(v1 + 360, (long long *)a1 + 45);
std::vector<llama_token_data>::vector(v1 + 384, (char *)a1 + 384);
v3 = *(_OWORD *)((char *)a1 + 408);
*(_OWORD *)(v1 + 424) = *(_OWORD *)((char *)a1 + 424);
*(_OWORD *)(v1 + 408) = v3;
return v1;
}
| common_sampler_clone:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDI
MOV EDI,0x1b8
CALL 0x0011b8b0
MOV RBX,RAX
LAB_001cf84d:
MOV RDI,RAX
MOV RSI,R14
CALL 0x0015572e
MOV RDI,qword ptr [R14 + 0x138]
LAB_001cf85f:
CALL 0x0011b600
MOV qword ptr [RBX + 0x138],RAX
MOV RDI,qword ptr [R14 + 0x140]
CALL 0x0011b600
MOV qword ptr [RBX + 0x140],RAX
MOVUPS XMM0,xmmword ptr [R14 + 0x148]
MOVUPS XMM1,xmmword ptr [R14 + 0x158]
MOVUPS xmmword ptr [RBX + 0x148],XMM0
MOVUPS xmmword ptr [RBX + 0x158],XMM1
MOV ESI,0x168
LEA R15,[RBX + RSI*0x1]
ADD RSI,R14
MOV RDI,R15
CALL 0x00155d74
MOV ESI,0x180
MOV RDI,RBX
ADD RDI,RSI
ADD RSI,R14
LAB_001cf8be:
CALL 0x001d0a64
LAB_001cf8c3:
MOVUPS XMM0,xmmword ptr [R14 + 0x198]
MOVUPS XMM1,xmmword ptr [R14 + 0x1a8]
MOVUPS xmmword ptr [RBX + 0x1a8],XMM1
MOVUPS xmmword ptr [RBX + 0x198],XMM0
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* common_sampler_clone(common_sampler*) */
common_params_sampling * common_sampler_clone(common_sampler *param_1)
{
int8 uVar1;
int8 uVar2;
common_params_sampling *this;
int8 uVar3;
this = (common_params_sampling *)operator_new(0x1b8);
/* try { // try from 001cf84d to 001cf857 has its CatchHandler @ 001cf906 */
common_params_sampling::common_params_sampling(this,(common_params_sampling *)param_1);
/* try { // try from 001cf85f to 001cf8af has its CatchHandler @ 001cf90b */
uVar3 = llama_sampler_clone(*(int8 *)(param_1 + 0x138));
*(int8 *)(this + 0x138) = uVar3;
uVar3 = llama_sampler_clone(*(int8 *)(param_1 + 0x140));
*(int8 *)(this + 0x140) = uVar3;
uVar3 = *(int8 *)(param_1 + 0x150);
uVar1 = *(int8 *)(param_1 + 0x158);
uVar2 = *(int8 *)(param_1 + 0x160);
*(int8 *)(this + 0x148) = *(int8 *)(param_1 + 0x148);
*(int8 *)(this + 0x150) = uVar3;
*(int8 *)(this + 0x158) = uVar1;
*(int8 *)(this + 0x160) = uVar2;
std::vector<int,std::allocator<int>>::vector
((vector<int,std::allocator<int>> *)(this + 0x168),(vector *)(param_1 + 0x168));
/* try { // try from 001cf8be to 001cf8c2 has its CatchHandler @ 001cf8ea */
std::vector<llama_token_data,std::allocator<llama_token_data>>::vector
((vector<llama_token_data,std::allocator<llama_token_data>> *)(this + 0x180),
(vector *)(param_1 + 0x180));
uVar3 = *(int8 *)(param_1 + 0x198);
uVar1 = *(int8 *)(param_1 + 0x1a0);
uVar2 = *(int8 *)(param_1 + 0x1b0);
*(int8 *)(this + 0x1a8) = *(int8 *)(param_1 + 0x1a8);
*(int8 *)(this + 0x1b0) = uVar2;
*(int8 *)(this + 0x198) = uVar3;
*(int8 *)(this + 0x1a0) = uVar1;
return this;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.